Posts

eclipse - Android SDK Issues Ubuntu 10.04lts -

eclipse - Android SDK Issues Ubuntu 10.04lts - i have looked through other questions on here, , on other forums. answers didn't help issue. started out 11.10 thought there bug or stopping working. have had sdk , adt working eclipse on both 10.04 , 11.10 @ loss going wrong. the error follows: cannot finish install because 1 or more required items not found. software beingness installed: android traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534) missing requirement: android traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534) requires 'org.eclipse.ui 3.6.2' not found when ran sdk install sec time (after uninstalling it) noticed next error: stopping adb server failed (code -1). unable run 'adb': cannot run programme "/home/ben/android-sdk-linux/platform-tools/adb": java.io.ioexception: error=2, no such file o...

playframework - How can I use a compound key with the Play framework? -

playframework - How can I use a compound key with the Play framework? - i have tried follow instructions here http://docs.oracle.com/cd/b31017_01/web.1013/b28221/cmp30cfg001.htm along using generic model. end primary key class follows import javax.persistence.embeddable; import java.io.serializable; @embeddable public class dailypk implements serializable { private int match_id; private int user_id; public int getuser_id() { homecoming user_id; } public void setuser_id(int user_id) { this.user_id = user_id; } public int getmatch_id() { homecoming match_id; } public void setmatch_id(int match_id) { this.match_id = match_id; } public int hashcode() { homecoming match_id * 1000000 + user_id; } public boolean equals(object obj) { if (obj == this) homecoming true; if (!(obj instanceof dailypk)) homecoming false; if (obj == null) homecoming false; ...

internet explorer - jquery position() not working in IE9 -

internet explorer - jquery position() not working in IE9 - has else had problem position() working odd in ie? i'm trying homecoming left position of div centrally placed. chrome returns 342, right. ie9 returns 0.5. what's about? var sp = $('.jcarousel-container').position(); alert(sp.left) it seems .offset() work in ie9 in jsfiddle example: http://jsfiddle.net/fme6v/7/ here's code: var sp = $('.jcarousel-container').offset(); alert(sp.left) jquery internet-explorer internet-explorer-9 position

ios - Is there a way to access the files of application cache of safari using javascript? -

ios - Is there a way to access the files of application cache of safari using javascript? - i looked @ options access files cached in browser, not one. thing ended counting number of files beingness cached listening caching events. here code: var cachestatusvalues = []; cachestatusvalues[0] = 'uncached'; cachestatusvalues[1] = 'idle'; cachestatusvalues[2] = 'checking'; cachestatusvalues[3] = 'downloading'; cachestatusvalues[4] = 'updateready'; cachestatusvalues[5] = 'obsolete'; var cache = window.applicationcache; cache.addeventlistener('cached', logevent, false); cache.addeventlistener('checking', logevent, false); cache.addeventlistener('downloading', logevent, false); cache.addeventlistener('error', logevent, false); cache.addeventlistener('noupdate', logevent, false); cache.addeventlistener('obsolete', logevent, false); cache.addeventlistener('progress', logevent, fals...

EditText in dialog android -

EditText in dialog android - i have made edittext in dialog cant alter height. alertdialog.builder editalert = new alertdialog.builder(this); editalert.settitle("messagetitle"); editalert.setmessage("here message"); final edittext input = new edittext(this); linearlayout.layoutparams lp = new linearlayout.layoutparams( linearlayout.layoutparams.fill_parent, linearlayout.layoutparams.fill_parent); input.setlayoutparams(lp); editalert.setview(input); editalert.setpositivebutton("send via email", new dialoginterface.onclicklistener() { public void onclick(dialoginterface dialog, int whichbutton) { } }); editalert.show(); you can utilize this: edittext.setheight(100); android android-edittext android-alertdialog layoutparams

ruby on rails - Why do I have to precompile my assets in development? -

ruby on rails - Why do I have to precompile my assets in development? - lately have precompile assets see css changes in development environment. don't know why this, environment setting config.assets.debug still set true. find rather annoying, believe didn't have run precompile after every alter before. how create rails compile on page load again? i'm running rails 3.1.3. don't know other info provide, please allow me know need know solve this. try removing compiled assets , should reset default development behavior. otherwise, rails maintain trying load precompiled public/assets/ files before loading stuff under app/assets/ : rake assets:clean ruby-on-rails sass precompile

google app engine - How to bulk delete by keys with python and appengine? -

google app engine - How to bulk delete by keys with python and appengine? - is next solution work in case of 10000+ items ? q = db.gqlquery('select __key__ event date_create < [date(2012, 1, 23)]') db.delete(q) what right solution mass delete ? as shown in implementation, datastore module batch multiple delete rpcs if number of keys > max_delete_keys (500). you should in task queue might take more 60s, , trigger deadlineexceededexception . python google-app-engine