Posts

php - Why Jenkins "BUILD SUCCESSFUL", but "Finished: FAILURE"? -

i set jenkins job php template http://jenkins-php.org/ , using https://github.com/sebastianbergmann/money test. after building finished, got message: build successful total time: 58 seconds [warnings] parsing warnings in console log parser php runtime [checkstyle] collecting checkstyle analysis files... [checkstyle] finding files match pattern build/logs/checkstyle.xml [checkstyle] parsing 1 file in /var/lib/jenkins/jobs/new job/workspace [checkstyle] parsed file /var/lib/jenkins/jobs/new job/workspace/build/logs/checkstyle.xml 0 unique warnings , 0 duplicates. [pmd] collecting pmd analysis files... [pmd] finding files match pattern build/logs/pmd.xml [pmd] parsing 1 file in /var/lib/jenkins/jobs/new job/workspace [pmd] parsed file /var/lib/jenkins/jobs/new job/workspace/build/logs/pmd.xml 0 unique warnings , 0 duplicates. [dry] collecting duplicate code analysis files... [dry] finding files match pattern build/logs/pmd-cpd.xml [dry] parsing 1 file in /var/lib/jenkins/jobs/new ...

jsf - commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated -

Image
sometimes, when using <h:commandlink> , <h:commandbutton> or <f:ajax> , action , actionlistener or listener method associated tag not being invoked. or, bean properties not updated submitted uiinput values. what possible causes , solutions this? introduction whenever uicommand component ( <h:commandxxx> , <p:commandxxx> , etc) fails invoke associated action method, or uiinput component ( <h:inputxxx> , <p:inputxxxx> , etc) fails process submitted values and/or update model values, , aren't seeing googlable exceptions and/or warnings in server log, not when configure ajax exception handler per exception handling in jsf ajax requests , nor when set below context parameter in web.xml , <context-param> <param-name>javax.faces.project_stage</param-name> <param-value>development</param-value> </context-param> and not seeing googlable errors and/or warnings in browser's jav...

Mysql workbench cannot connect to mysql server -

Image
since on ubuntu 15.10 (i on 14.10 before) can't connect mysql mysql-workbench, if connection test successful. there way make connection work? i have forced connection tcp, still doesn't work. mysql -u root -p --host=127.0.0.1 mysql -u root -p --protocol=tcp mysql ver 14.14 distrib 5.6.28, debian-linux-gnu (x86_64) using editline wrapper connection id: 55 current database: current user: root@localhost ssl: not in use current pager: stdout using outfile: '' using delimiter: ; server version: 5.6.28-0ubuntu0.15.10.1 (ubuntu) protocol version: 10 connection: localhost via tcp/ip server characterset: latin1 db characterset: latin1 client characterset: utf8 conn. characterset: utf8 tcp port: 3306 uptime: 9 min 38 sec

How to run php script without all limits? -

i know there many questions, how run php script without time execution limit, im curious, how run php script without limitations. (i think there max memory consumption, mysql timeout, etc...) i have script, mapping part of harddrive , reading directory , files content , storing data database. im expectating script take long time , huge chunk of memory. so question is, should set "infinite" script running maximum posible duration? as now, im using ini_set, reason script ends before finished. (and before 40 minutes time limit set) ini_set('max_execution_time', 2400); ini_set('display_errors',1); ini_set('mysql.connect_timeout', 2400); ini_set('default_socket_timeout', 2400); there's no way unset limit @ once. the best can @ php.ini directive , try figure out applies system, , increase them unlimited value, or when not applicable, big value. here's list of core php directives: https://secure.php.net/manual/en/ini.l...

swift - iOS: Passing Parameters to private Framework while Initializing a UIViewController -

i trying create custom framework can use across apps. when instantiate first viewcontroller framework in app, pass in 2 parameters. import uikit public class newvc: uiviewcontroller { public var startcolor: string? public var endcolor: string? public required init(startcolor: string, endcolor: string) { self.startcolor = startcolor self.endcolor = endcolor super.init(nibname: "sb", bundle: nil) } public required init?(coder adecoder: nscoder) { super.init(coder:adecoder) } } now, trying instantiate newvc in appdelegate : import newvcframework //... let vc = newvc(startcolor:"00ff33a", endcolor:"ff0c756") let s = uistoryboard(name: "sb", bundle: nsbundle(forclass: vc)) //i error on line above points @ vc self.window?.rootviewcontroller = s.instantiateinitialviewcontroller() below error get: error: cannot convert value of type 'newvc' expected argument type 'any...

android - Camera2 API picture taken wont show at gallery apps -

i have camera project , im using camera2 api link https://github.com/googlesamples/android-camera2basic i can save picture taken file manager located @ dcim/camera example, when open gallery, wont show last picture. can me? one more question, want make camera can list: example, when open "line" , want take picture camera, want camera appears , can chosen. this sample code tried saving picture custom path: @override public void onactivitycreated(bundle savedinstancestate) { super.onactivitycreated(savedinstancestate); mfile = new file("/storage/emulated/0/dcim/camera", "pic.jpg"); int counter=1; while (mfile.exists()) { mfile = new file("/storage/emulated/0/dcim/camera", "pic" + string.format("%02d", counter) + ".jpg"); counter++; } } to show images in gallery need add contentvalues, in example: https://github.com/googlesamples/android-camera2basic found ...

google app engine - appengine DataNucleus plugin 2.1.2 cache behaviour -

i have upgraded appengine sdk 1.8.0, appengine dn 2.1.2 , dn 3.1.3. working nice. in appengine docs states level2 caching enabled default. https://developers.google.com/appengine/docs/java/datastore/jpa/overview-dn2 i assume jpa l2 cache backed memcache. but when update entity datastore viewer jpa code still returning stale version of data. my jpa entity below @entity @cacheable(true) @namedqueries({ ....snip public class geolocationuser implements serializable { @id @generatedvalue(strategy = generationtype.identity) private key key; private double latitude; the query named query @namedquery(name = geolocationuser.find_by_user_key, query = "select p geolocationuser p p.parentkey = :userkey"), use case entity created using jpa code. i update field called 'latitude' in entity using datastore viewer '0.0' '1.0'. i run restful query on application using jpa. the entity returned has 'latitude' = '0.0...