Posts

wordpress - Getting SVG to work on Android 2.* -

i creating website , it's using svg images due retina support. had use modernizer swap svg .png , use alternative .pngs ie8. i have problem images not showing on samsung galaxy ace android version 2.3.6. how can phone support svg images? thank kind people. the stock android browser didn't start supporting svg until android version 3.0, see http://caniuse.com/#feat=svg . you can find alternative free browsers support svg on android 2.3, such opera mobile (disclaimer: work @ opera). the modernizr solution should work fine ( see guide ), though pngs in stock browser on android 2.3.

jquery - javascript function doesn't execute -

hi,i have simple login form, fields validated javascript. don't why below code not working. my html , js code: <head> <script type="text/javascript"> function handlelogin() { var u = $("#username").val(); var p = $("#password").val(); if(u=="a" && p=="a") { window.location="/site/site.html"; } else { alert("fail"); } } </script> </head> <li dojotype="dojox.mobile.listitem"> <input dojotype="dojox.mobile.app.textbox" placeholder="username" type="text" id="username" name="username" /> </li> <li dojotype="dojox.mobile.listitem"> <input dojotype="dojox.mobil...

Ruby: Understanding _why's cloaker method -

i'm trying understand _why's cloaker method wrote in " a block costume ": class html def cloaker &blk (class << self; self; end).class_eval # ... rest of method end end end i realise class << self; self; end opens eigenclass of self , i've never seen inside instance method before. self @ point this? under impression self should receiver method called on, cloaker called inside method_missing : def method_missing tag, text = nil, &blk # ... if blk cloaker(&blk).bind(self).call end # ... end so self inside method_missing call? , self when call: ((class << self; self; end).class_eval) inside cloaker method? basically, want know whether we opening eignenclass of html class, or if doing specific instance of html class? inside cloaker method, self instance of html since you'll call on object, you're creating singleton method on html class instances. instance: class...

exception - java.io.EOFException When trying to read a serialized object -

i have serialized data object file , tried read object inside servelet.im getting below exception java.io.eofexception @ java.io.objectinputstream$peekinputstream.readfully(unknown source) @ java.io.objectinputstream$blockdatainputstream.readshort(unknown source) @ java.io.objectinputstream.readstreamheader(unknown source) @ java.io.objectinputstream.<init>(unknown source) my code is fileinputstream fin; try { fin = new fileinputstream( "g:\\search\\webapp\\datamanager\\wslist" ); objectinputstream ois = new objectinputstream( fin ); inforpc newobj = ( inforpc ) ois.readobject(); newobj.getcategories(); ois.close(); return newobj; } catch ( filenotfoundexception e ) { e.printstacktrace(); } catch ( ioexception e ) { e.printstacktrace(); } catch ( classnotfoundexception e ) { e.printstacktrace(); } any idea ?

terminal - Bower: Install 2 versions of jQuery -

how go installing 2 versions of jquery using bower ? want have v2.0 1.9.1 browser support fallback the issue i'm having if run bower install jquery#1.9.1 jquery#2.0.0 first version gets overwritten second because same component in dependencies part of bower.json can have this: "dependencies": { "jquery": "2.0.0", "jquery-1.9.1": "http://code.jquery.com/jquery-1.9.1.js" } one shouldn't have this, have maintain / migrate existing website (for whatever reason) uses different versions of jquery in different pages!

windows - Diagnostic Monitor Trace Listener -

i know if possible modify way trace recording trace information ? trace.listeners.add(new diagnosticmonitortracelistener()); trace.traceinformation("onstart"); i able use current wadlogstable , adding 1 or more custom columns table. right default table created diagnosticmonitorconfiguration looks that: partitionkey|rowkey|timestamp|eventtickcount|deploymentid|role|roleinstance|level|eventid|pid|tid|message| i add @ end custom columns : partitionkey|rowkey|timestamp|eventtickcount|deploymentid|role|roleinstance|level|eventid|pid|tid|message|custom1|custom2 so every time trace able add data 2 custom columns thanks i don't think you'll able this. while windows azure diagnostics quite extensible, you'll not able modify schema trace logging. recommend looking implementing custom diagnostics. may find link useful this: http://convective.wordpress.com/2009/12/08/custom-diagnostics-in-windows-azure/ .

bash - crontab failed with exit status 12 -

from syslog may 8 01:00:01 mvtspro-main /usr/sbin/cron[22645]: (root) cmd (/usr/local/ky4k0b/cdrs_backup_daily.sh) may 8 01:00:01 mvtspro-main /usr/sbin/cron[22638]: (cron) error (grandchild #22645 failed exit status 12) from /etc/crontab mvtspro-main:/cdrs/backup# cat /etc/crontab shell=/bin/sh path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) # 25 6 * * * root ntpdate pool.ntp.org 0 1 * * * root /usr/local/ky4k0b/cdrs_backup_daily.sh 0 2 1 * * root /usr/local/ky4k0b/cdrs_backup_monthly.sh 0 3 1 * * ...