Posts

Featured post

c# - Twilio SMS messaging not working in Console Application -

i funded twilio account , working in console application. when go documentation (here: https://www.twilio.com/user/account/developer-tools/api-explorer/message-create ) , enter phone number request works. however, when copy code local console application nothing happens. literally copy code line line , make sure sid, token, , numbers correct , nothing happens @ all, console app runs end of execution. string accountsid = "mysid"; string authtoken = "myauthtoken"; var twilio = new twiliorestclient(accountsid, authtoken); var message = twilio.sendsmsmessage("+12222222222", "+13333333333","hello world"); console.writeline(message.sid); i run fiddler , raw packet. fiddler says result 401 status code. post https://api.twilio.com/2010-04-01/accounts/mysid/sms/messages.json http/1.1 authorization: basic {tonsofrandomcharactersthatlooklikeishouldhide} accept: application/json, application/xml, text/json, text/x-json, text/javascript,

java - Android-Controlled Car [General Info] -

this beginner's question. i'm trying control car on bluetooth on android device. although i'm no expert once know little, can start working on it. the functionality of car want control via android device is: fire engine (ignition) steer car's wheel accelerate gas pedal brake shift gears i know need mechanical micro-controllers don't have experience in field. question start , need do? , software might me it. for have start micro-controller implementation. make circuit can data bluetooth device , according it, micro-controller trigger relays above work. while in android app can make app send particular data (like 1,2,3,4 each work).

memory management - data type storage in C -

i want understand how declaring variable char saves memory declaring int or short. know fact declaring char reserves 1 byte in memory while 2 or 4 bytes reserved int. now, suppose in 16 bit processor, variable char stored @ location 0xabcd. since 16 bit processor, 1 byte or 8 bits of 16 bits @ address 0xabcd reserved char. int variable stored @ location 0xbcde, accordingly reserve 16 bits of 16 bits available @ location 0xbcde. want know happens 8 bits @ location 0xabcd left on after reserving memory char variable considering fact @ 1 memory location 1 variable can stored. memory addresses not work "variables". can not store 8 or 16 bits, can only , exclusively store exactly 8 bits (one single byte). (a) when int gets stored "at" address, takes more space -- not "in" same address, flowing on in next memory addresses, following "the" memory address. thus, if store char @ 0xabcd, compiler knows it's safe assume next value

Search and delete files owned by selected user through batch -

my objective is: - find files owned selected user - delete them my current code: @echo off /f %%f in ('dir /b /s') call :delete_file %%f goto :eof :delete_file ( set var=%1 dir /q %var%| find "\user" ) i'm looping files in current directory, i'm calling :delete_file parameter %%f (file path), in :delete_file i'm setting var first received parameter (%1 - file path). , now, i'm parsing again file (with /q paramter - output owner) in search of owner. question is, how set output of: dir /q %var%| find "\user" to variable? if output null, file not owned selected user, otherwise can delete file. how check this? this should echo del command files matching text if happy remove echo keyword , run real. i made text compare case insensitive. @echo off /f %%f in ('dir /b /s /a-d') ( dir /q "%%f"| find /v ":\" |find /i "%computername%\user">nul && echo del "%%f

how to share virtual sharepoint server and get it in host windows and visual studio? -

i installed windows 8.1 , installed visual studio 2013 on win 8.1 because need sharepoint server installed windows server 2012 r2 on windows 8.1 hyper-v , installed sql server 2012 , sharepoint server 2013 , create first farm server want create sharepoint app in visual studio installed on windows 8.1 when tap vs 2013 sharepoint solution give me same error if sharepoint not running on local machine . when browse sp server admin center in windows 8.1 browser it's able load sp server central admin installed sharepoint designer on windows 8.1 , it's able create site virtual sp server visual studio not able find virtual server ? please me how can add virtual sp server visual studio ( visual studio installed on win 8.1 ) ?? (forgive me bad english) best regards: raha install vs 2013 on hyper-v sharepoint server installed on. run vs 2013 inside hyper-v , should local sharepoint server. good luck

how to remove the base line on the yaxis of highcharts? -

Image
i need remove following encircled parts highcharts chart, 1 base line on y axis , other values label on x axis. i've tried several things mentioned in api haven't been able achieve yet. fiddle http://jsfiddle.net/ftaran/jbhdm/ $(function () { $('#container').highcharts({ chart: { type: 'bar' }, title: { text: null }, xaxis: { labels: { enabled: false } }, yaxis: { labels: { enabled: false }, tickwidth: 0, gridlinewidth: 0, labels: { enabled: false }, "startontick": true }, tooltip: { formatter: function () { return '<b>' + this.series.name + ':</b> ' + this.y + '<br/>' + this.percentage.tofixed(2) + '%';