Posts

Docker: save internal hd contents -

is there way save contents of container's "internal" hd. have tried use docker commit when shut down container , turn on again, contents have downloaded or generated inside container (logs, etc) gone. when start container use docker start or docker run ? docker run -i -t docker/image /bin/bash start new container information original imagefile. docker start {dockercontainerid} restart running container. can list of previous dockers docker ps -a if have save docker docker commit {runningdocker} docker/image2 use new image name. ie `docker run -ti docker/image2 /bin/bash

how to filter the list written in bracket in blackberry? -

i using link place holder text on autocompletefield in blackberry i want filter list when user wite on text field .current filter first text of string array .example if write "f" filter "friday" want should filter whatever text written in bracket example if have select "m" .if show "wednesday-(man)", string[] days = {"monday(tas)","tuesday-(paq)","wednesday-(man)", "thursday","friday","saturday","sunday(i_)"}; customautocompletefield.java package mypackage; import net.rim.device.api.collection.util.basicfilteredlist; import net.rim.device.api.collection.util.basicfilteredlistresult; import net.rim.device.api.system.application; import net.rim.device.api.ui.color; import net.rim.device.api.ui.graphics; import net.rim.device.api.ui.component.autocompletefield; import net.rim.device.api.ui.component.listfield; class customautocompletefield...

data binding - View updates everywhere but in current controller - angularJS -

edit: asked, i'll explain bit more efficiently ! i've been sitting in front of annoying problem recently, whenever update value inside directive, controllers i'm not "in" ones updated properly. scenario example: profile page made of 2 controllers. navbar_controller displaying user name : <div ng-if="auth.isauthenticated">hello, {{auth.getcurrentuser().name}}</div> the second controller , profile_controller here update user values. simple function in angular first controller, updates currentuser: $scope.updateuser = function (type, form) { if (!$scope.modif) return ; $http.put('/api/users/' + auth.getcurrentuser()._id + '/update', {type:type, modif:$scope.modif}) .success(function (data, status) { $scope.user = auth.setnewuser(data); }) .error(function () { console.log("error"); }); }; when update, exampl...

css - I need to decrease the size of the header background color -

how can decrease size of header in logo class? logo contains name " pied piepr". background image quite big in header. tried decreasing height attribute didnt work. style sheet: body{ margin: 100%; margin: 0; } .container{ position: relative; height: 50px; width: 1100px; } .masthead{ background: #4fc3f7; width: 100%; top: 0; position: fixed; color: white; } .logo{ position: relative; float: left; left: 90px; font-family: josefin slab; font-size: 21px; } a:link {color: white; text-decoration: none; } a:visited {color: white; text-decoration: none; } a:hover {color: white; text-decoration: none; } a:active {color: white; text-decoration: none; } li{ position: relative; left: 155px; list-style: none; font-family: raleway; float: left; margi...

cpu - Shortest Remaining Time Scheduling -

can results of shortest remaining time schedule same preemptive , non preemptive? like, can still same times @ end of both or impossible? it not impossible.it depends on arrival time , burst time of processes. for example:if have processes following arrival time , burst times. p1 1,2 p2 2,4 p3 3,5 it gives same result,be preemptive or non preemptive.

SQL server and PHP - specify datetime format -

i have table datetime columns. in sql server management studio, can see date in yyyy-mm-dd hh:mm:ss.mmmm format, when select data php mssql extension , - srp 1 2014 12:00:00:000 (instead of 2014-08-01 12:00:00.000 ). is there way change datetime format? (i don't want parse localized datetime in php.) so found solution... ini_set("mssql.datetimeconvert", "off"); it turns off localized datetime formatting in mssql extension , datetime yyyy-mm-dd hh:mm:ss , suitable me.

fft - Why the model "FourierAnalysis" does not run on OpenModelica? error: lvalue required as unary '&' operand -

the test model "testsine" package "sensors.tests.fourieranalysis" xogeny library: https://github.com/xogeny/sensors not run on openmodelica. the error message is: "error: lvalue required unary '&' operand". in c-file generated openmodelica, message error lines: infostreamprint(log_events, 0, "reinit $panalysis$pai$lb1$rb = %f", 0.0); copy_real_array_data_mem(&0.0, &$panalysis$pai$lb1$rb); i don't understand message , want use block "fourieranalysis" openmodelica. it implementation bug in openmodelica; has been fixed in r22261 . note: bug reports should ideally reported https://trac.openmodelica.org/openmodelica/newticket