Posts

Windows 8 javascript change the attribute of branding to name -

i have windows 8 application updating tiles periodically. in tile update wish logo replaced application name.did analysis on same , found attribute value"branding" changed name.but setattribute method throws "0x800a01b6 - javascript runtime error: object doesn't support property or method 'setattributes'" below code snippet placed in default.js var squaretilexml = notifications.tileupdatemanager.gettemplatecontent(notifications.tiletemplatetype.tilesquaretext04); var tileattributenode = squaretilexml.getelementsbytagname("binding"); tileattributenode[0].setattributes("branding","name"); the error correct. instead, try setattribute() , see if farther.

php - Can't see parse error -

Image
working on first php script interacts sql. i'm close can smell it! i'm trying return max date in table , received following message date should be: parse error: syntax error, unexpected t_variable in /applications/xampp/xamppfiles/htdocs/tslocal/themes/myname/views/reports/get_vote_date.php on line 25 line 25 $result = mysqli_query($dbc, $query); in script below. here script, i've stared @ till eyes bleed there's uncertainty it's "wrong" because i'm new this: <?php # script get_vote_date // file contains db info // file establishes mysql connection, connects db , gets recent vote date particular page (incident_id). define ('db_user', 'myname'); define ('db_password', 'somepass123'); define ('db_host', 'localhost'); define ('db_name', 'sitename'); // make db connection $dbc = @mysqli_connect('db_host','db_user','db_password','db_name...

Trying to Implement Node.js and Socket.io on dedicated server -

recently, have been experimenting node.js , socket.io. successfully, have been able implement these on localhost. use functionality on dedicated server. hosting server own home , cannot node , socket run outside of localhost. importance of can use 2 different computers while testing out site. here code follows: app.js: var app = require('express')() , server = require('http').createserver(app) , io = require('socket.io').listen(server); server.listen(80); app.get('/', function (req, res) { res.sendfile(__dirname + '/index.html'); }); io.sockets.on('connection', function (socket) { socket.emit('news', { hello: 'world' }); socket.on('my other event', function (data) { console.log(data); }); }); index.html: <script src="http://localhost:8080/socket.io/socket.io.js"></script> <script> var socket = io.connect('http://localhost:8080'); ...

ios - Delete files in tmp directory on background -

i have phonegap application puts files in <application>\tmp directory . need remove files when application backgrounded, pause event has restrictions on ios: this means cannot call console.log (and variants), or calls plugins or cordova api. i suppose modify cordova library handle applicationdidenterbackground , maintaining change on different versions pain. how cleanup tmp folder when application backgrounded?

bytearray - Assigning values to a public byte array in one line C# -

i working public byte array , assign values, assign arrays inside method, i.e byte[] foo = {0x32, 0x00, 0x1e, 0x00}; but when define values forced do foo[0] = 0x32; foo[1] = 0x00; foo[2] = 0x1e; foo[3] = 0x00; if use first example vs gives error "only assignment, call, increment, decrement, await, , new object expressions can used statement" if helps any, array 4 bytes. my code public byte[] setspeed = new byte[4]; private void trackbar1_scroll(object sender, eventargs e) { if (trackbar1.value == 0) { try { stop = true; updatesthread.abort(); thread.sleep(350); } catch { } setspeed = {0x00,0x00,0x00,0x00}; writemem(getplayer() + status_offset, setspeed); label1.text = "normal"; } } your first example fine may used in declaration . elements must implicitly convertible element type. size determined number of elements given. ...

makefile - Android kernel compilation -

for compiling kernel android below steps: $ export arch=arm $ export subarch=arm $ export cross_compile=arm-eabi- $ cd omap $ git checkout <commit_from_first_step> $ make tuna_defconfig $ make i want change default configuration of kernel editing .config file (enabling flags multimedia , v4l2). when try perform "make", .config file overwritten default values , kernel compiled these values. tried editing .config file , performing "make oldconfig" same result. any way edit .config file ? .config file auto generated file, changing flags in .config not affect kernel configuration. change kernel configuration need open configuration window typing below command in kernel folder: make arch=arm menuconfig ps:: if using ubuntu 12.04 may error while executing 'make arch=arm menuconfig' command, rid of try (atleast worked me): sudo apt-get install lib32ncurses5-dev

vb.net - SQL Server 2005 SSIS Issuse with Debugging and Saving Script Tasks -

last week had interesting issue arise when building new ssis package script task. @ 1 point in process of building , debugging debugger stop hitting break points. @ time thought maybe debugger got hung or weird that. did restart on server , re-opened ssis. when opened package had been working on last few days, , opened script task. script task empty (had default code when create new script task) lost work. started building again had idea on had built. rebuilt few functions , tried debug, not hit break points still. saved current progress , rebooted again. after reboot opened script task, again lost work. @ point unable ssis save script task , unable debug script task code, including built packages. have scoured net looking answer , have found no clue going on. help! prior happening, had no issues debugging or saving packages. have reinstalled ssis once , still same thing...