Posts

javascript - Convert timestamp to date using Angular 2 pipes -

i'm trying convert timestamp date format using angular 2 pipes, code follows: {{load.loaddate | date}} where loaddate attribute of load class, of type number. i weird results, example timestamp 1468251287 (which matches 11/7/2016) displayed "jan 18, 1970" . i know how can fix issue. as mentioned @perry need provide date in milliseconds. angular 2 reference date have: expression date object or number (milliseconds since utc epoch) or iso string so can be: {{load.loaddate * 1000 | date}}

java - Wicket JQuery AbstractFormDialog does not render RadioChoice of Enumeration -

i have dialog box form. form contains radio choice consisting of enum types. when dialog opens, single circle gets displayed. expected 3 circles names of enums. what's error in code? public class mynewdialog extends abstractformdialog { public mynewdialog( string id ) { super( id, "dialog title" ); form = new form( "dialogform" ); this.add( form ); radiochoice<gender> genders = new radiochoice<gender>( "list", getgenderlist(), new enumchoicerenderer<gender>( ) ); genders.setsuffix( " - " ); genders.setrequired( true ); form.add( genders ); } private list<gender> getgenderlist() { return arrays.aslist<gender>( gender.values() ); } //--- enum class "gender" public enum gender { male, female, family }; //--- html markup in file "mynewdialog.html" <html xmlns:wicket="org.apache.wicket"><body><wicket:panel> <form wicket:...

Golang: multidimensional string array instead of maps -

in project need read value global variable using maps (global variable) var url = make(map[string]string) and error "concurrent writes" assign value in function (cant assign global gives error non-declarative statement). url["test"] = "http://google.com" in php through multidimensioanl array , read value. there way use multidimensional array or maps in go assign , read in function? any appreciated. the concurrent writes error happens when go runtime detects concurrent writes map different goroutines. feature added in go1.6: https://blog.golang.org/go1.6 the runtime has added lightweight, best-effort detection of concurrent misuse of maps. always, if 1 goroutine writing map, no other goroutine should reading or writing map concurrently. if runtime detects condition, prints diagnosis , crashes program. best way find out more problem run under race detector, more reliably identify race , give more detail. you can initiali...

maximo anywhere - MaximoAnwhere-7.6 Android Apps Development -

Image
we developing maximoanwhere-7.6 android application using maximoanwhere server source code while trying login android environment can't able login , there no error. remove server code android environment , tried recreate , login successfully. want know below issues, how re-generate apps features plugin eg: map,barcode scanner ...etc while accesing workorder detail view workorder list view, there no response , keep on loading only. while checking logs android logcat getting following error, uncaught typeerror: win.doc.getcsscanvascontext not function note : getting above error of few screens. thanks the error "uncaught typeerror: win.doc.getcsscanvascontext not function" has been addressed in fix ibm. can find article on stackoverflow related same thing. can provide fix work around this. alleviate never-ending loading screen.

laravel - Stop PHP from rounding my numbers -

Image
i've created invoice creator keeps rounding numbers. how stop this? you see @ stukprijs = 206,61 , total 206 total needs 206,61 well. my code: public function makepdf(request $request){ $data = $request->all(); $data['totaal1'] = $data['stukprijs1'] * $data['aantal1']; i sent values form field post. the app build in laravel. you need both elements in multiplication floats if don't want php force round on result. $data['totaal1'] = floatval($data['stukprijs1']) * floatval($data['aantal1']);

how to covert Sql Query to linq -

anyone please convert following sql query linq select personrank, amount, (select sum(p2.amount) @personrank p2 p2.personrank <= p1.personrank) @personrank p1 order personrank try this var result = db.personrank(i => new { personrank = i.personrank, amount = i.amount, personranksum = (db.personrank .where(t => t.personrank <= i.personrank) .sum(t => t.amount) ) }).orderby(i => i.personrank);

android - Cordova Opening External URL with no Cache -

i have working web application trying open using cordova container, works fine far problem facing have clear cache of mobile application whenever there update on server. is there anyways can disable caching permanently view latest state of application.