Posts

json - set date without time in D3 js -

i working on d3 js. lerner , trying render multi line graph not able set proper date format.i wanted remove 12 pm .example april 12 pm wed 02 below code var margin = { top: 40, right: 40, bottom: 35, left: 85 }, width = 800 - margin.left - margin.right, height = 350 - margin.top - margin.bottom; var parsedate = d3.time.format("%y%m%d").parse; var x = d3.time.scale() .range([0, width]); var y = d3.scale.linear() .range([height, 0]); var color = d3.scale.category10(); var xaxis = d3.svg.axis() .scale(x) .orient("bottom"); var yaxis = d3.svg.axis() .scale(y) .orient("left"); var line = d3.svg.line() .interpolate("basis") .x(function (d) { return x(d.date); }) .y(function (d) { return y(d.request); }); var svg = d3.select("body").append("svg") .attr("width", width + margin.left + margin.right) .attr("height",...

Publish an app for Office that is packaged as an autohosted app for SharePoint Online Portal -

Image
my aim develop excel application , use on sharepoint online 2013 portal. developed excel task pane app on napa. downloaded visual studio , open on visual studio 2012. after changed it's project type app office auto hosted app sharepoint , publish it, got .app file. opened sharepoint online portal app catalog site , upload .app file apps sharepoint library. can see app(addresscleaner) below image. after of these steps went site content , click add app. can't see app in available apps. can't find solution. followed -> post what i'm missing? suggestion wrong? thanks i solved problem. didn't understand cause solved. downloaded project again napa , changed package type in visual studio. after uploaded apps sharepoint library in app catalog site. installed it. added catalog site trusted site excel file , inserted app. thats all.

mysql - How to store a value of the form 2.00 in databse in php? -

hii new in php , want store value 2.00 in database, storing 2 in database, used datatype int,double,float,decimal, no 1 works, please me sort out problem. in advance something decimal (10,2) . you can adjust scale , precision fit needs of numbers need store for ex:example: decimal(5,2) number has 3 digits before decimal , 2 digits after decimal

javascript - Jquery animation work only first time -

i have ajax load page after completion of ajax animate div (parent of changing content) animate once(first time). can give me description error or other way this. my code: $.ajax({ type: "post", url: "page.php", data:'', //data success: function(data){ $('#last_saved_text').html(displaycurrenttime()); /* below animation work once*/ $('#last_saved_text').parent('div').animate({'background-color':'rgb(212, 72, 54)'},{ duration: 1500, complete: function(e){ $('#last_saved_text').parent('div').css('background-color','rgb(249, 249, 249)');} }); }, fail: function( jqxhr, textstatus ) {} });

shell - Android root commands not working in application -

i experimenting shell commands on rooted nexus 7 tablet , found commands seem wouldn't need root privilege being executed. for example, if call: process process = runtime.getruntime().exec("su -c mkdir /sdcard/test"); the directory created. if call: process process = runtime.getruntime().exec("su -c mkdir /system/test"); nothing happens. (i have tried sorts of commands, , tried sorts of different syntax in case off, commands wouldn't need root access executed) when try execute command, popup superuser , grant application root privilege there else missing? have looked around , far can tell should work. thanks. you must quote argument mkdir , otherwise su assume /system/test user name , fail run. process process = runtime.getruntime().exec("su -c \"mkdir /path/to/test\""); some areas of filesystem, such /system , read due way filesystem organized/mounted. root access won't change that, command stil...

convert a code from java into python -

now trying change program java python, when fix 3 problems on code , run it. shows me error. traceback (most recent call last): file "serial.py", line 4, in <module> import serial file "/home/pi/serial.py", line , in <module> port=serial.serial( attributeerror:'module' object has no attribute 'serial' how can fix it? if need source code , problems had fix, let me know. please me it. you've named file serial.py or maybe serial.py. rename file else, "testserial.py" if you're desperate keep name. golden rule of python: never give file same name module importing from

MongoDB Java pull -

i tried remove embedded document without succcess. i'm looking java way of following instruction: db.games.update({'_id': 73}, {$pull: {'goals': {'goal': 4}}}) the java documentation pretty clear, constructing bson objects match respective json counterparts used in shell: basicdbobject query = new basicdbobject("_id", 73); basicdbobject fields = new basicdbobject("goals", new basicdbobject( "goal", 4)); basicdbobject update = new basicdbobject("$pull",fields); games.update( query, update );