Posts

android - Nexus 7 not detected in Eclipse -

i have 2013 nexus 7, , im trying application development through eclipse. i have installed google usb drivers android sdk manager , confirms installed. device isnt detected in eclipse. can see device in computer media device cant run application through eclipse onto nexus 7? tired of using emulators, , try debugging on device. can help?

android - Add a Button and Add String Resources -

i new world of android app creation. going through tutorials. having trouble adding strings , buttons. great. thanks to add button lets "id" "button1" declare on main activity below. button submit = (button)findviewbyid(r.id.button1); // of yout button found in ur xml file.

geolocation - Convert longitude/latitude to country, city in MaxMind -

i using maxmind geoip2 database determine client's location (longitude, latitude, city, country) based on ip address. i'm using python library geoip2 , local geolite2-city.mmdb database. in order more precise result want use html5 geolocation in addition returns coordinates of client. i want use existing maxmind local database country , city based on coordinates html5 method. is possible , how? you might want check services provide (i did not see them having looking for), , maybe contecting support more assistance. anyways, use reverce geocoding service provides rest interface determining country (and actuall more accurate address), suggest reconsider requirements on utilizing original provider purpose. if reason need have geo-location users in same city, after reverce geocoding city & country, use values (without actual street address) geocoding service 'center' of city.

python - String comparing between output system command with defined variable -

i tried compare output of command line variable that's defined logic throw false instead of true. $ sudo hdparm -i /dev/sda | grep serial | awk '{print $3}' 6ra3x34p in python: hdserial="6ra3x34p" cmd1="sudo hdparm -i /dev/sda | grep serial | awk '{print $3}'" output = subprocess.check_output(cmd1, shell=true) def check_serial(string): if string != hdserial: print '\nquitting..' sys.exit() check_serial(output) why comparison failing? the output of command contains trailing newline. should remove using str.strip or str.rstrip : output = subprocess.check_output(cmd1, shell=true).strip()

php - How to pass post data after url rewrite in .htaccess -

i use following code in htaccess file located in /projects/testsite addtype x-mapp-php5 .php rewriteengine on rewritebase / options -multiviews rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . projects/testsite/index.php [l,qsa] #errordocument 404 /404.php when in http://www.mydomain.com/projects/testsite/admin/articles/1/edit , press save redirects request http://www.mydomain.com/projects/testsite/admin/articles/1/save all post data lost. what if try debug post: array print_r: array ( ) get: array print_r: array ( ) what should .htaccess file keep redirecting requests index.php preserving post data? thank in advance! p.s. site works if set in windows server web.config rewrite rules. update #1 from firefox live http headers see significant issue: 301 moved permanently header captured in apache (this not happening in iis) http/1.1 301 moved permanently date: sun, 06 apr 2014 13:48:06 gmt server: apache location: http:/...

normalisation of audio signal and reverting to original matlab -

i doing project in audio stenography. need embed text in audio signal(.wav file) . converted audio signal ranging -1 1(double) -32767 +32767(int16) cold embed data in lsb of coefficients. problem don't know how values int16 respective double equivalents. i have used following code normalization: [y, fs, nbits,opts]=wavread('one.wav'); y2=y-(min(y)); y2=y2/max(y2); y2=y2* (2^16 - 1) - 2^15; y2b=int16(y2); can guide me reverse process of this? looks need save (and store) ymin = min(y) , y2max = max(y2) reversal. double version ofthe int16 , perform reversal procedure needed: y3 = double(y2b); y3 = (y3 + 2^15) / (2^16 - 1); y3 = y3 * y2max; y3 = y3 + ymin; then store y3 output file needed.

winrt xaml - how to set up MS Advertisement SDK with a windows store app developed in C++/CX -

i added advertisement sdk reference, added adcontrol xaml control main page , compiled project threw no errors.however, on running app comexception (winrt information: system.typeloadexception: not load type appname.common.relaycommand' assembly 'mscorlib, version=4.0.0.0, culture=neutra) is there guide on how set advertisement sdk c++/cx windows store app.