Posts

android - Images not found in drawable-large nor drawable-small -

i have images in drawable-normal can load them via bitmap bm = bitmapfactory.decoderesource(mcontext.getresources(), resourceid, mbitmapfactoryoptions) when move images on drawable-large (and remove them drawable-normal ), images not loaded anymore. there no error, null bm . when move them drawable-hdpi or like, loaded again. does android handle -small, -normal , -large folders different other resource folders? described here , should load images -large folder. i guess found answer own question. reading aforementioned page more carefully, turns out, android searches drawable-*dpi folders automatically, other qualifiers looks in default folder if not find resource in more specific one. in other words, if not find resource in drawable-normal , looks in drawable , stops trying. it's drawable-*dpi folders android looks folders. guess i'll switch these. tanmay trying me.

c# - AOP: Custom Model Binder Attribute using Ninject -

in short: trying create custom model binder take in type of user , id, use service class retrieve typed object. if there better way this, please let me know. elabaration: i have ninject setup bindings within domainservice layer, 3 web ui's hooked domain service layer. each asp.net mvc app loads bindings kernal. //my custom model binder public class usermodelbinder : imodelbinder { private iauthenticationservice auth; public usermodelbinder(iauthenticationservice _auth, entityname type, string loggedonuserid) { this.auth = _auth; currentusertype = type; currentuserid = loggedonuserid; } public entityname currentusertype { get; private set; } private string currentuserid { get; set; } public object bindmodel(controllercontext controllercontext, modelbindingcontext bindingcontext) { object loggedonuser = null; if (current...

java - @ManyToMany with Hibernate and JPA -

i have 2 tables bound manytomany relationship. table 1 timeslot , has collection of documents created in time slot. table 2 documents , has collection of timeslots given document modified many times in different timeslots. in particular program each document find or create document row it. further find or create time slot represents epoch of action, create, update, delete. note: delete event performed on document, not on row represents it. in program there no deletes or removes performed against row of either table. however seeing many deletes against timeslot_document mapping table there inserts. my question this, why hibernate issuing deletes? appears related dirty update processing. why repeated deletes timeslot id=1? when had onetomany didn't see deletes model inaccurate (as might imagine). for every document determine date (hour accuracy only) action occured on, increment tally , add document collection. something else curious implement mvcc via @version anno...

Good and easy WCF EF4 or XML leaderboard to put into my MVC 3 web app for my WP7 games? Security? -

i realized basic attempt hackable. main issues deal when creating leaderboard? connection string need encrypted somehow ? else? hoping not complex.. anyone have references have used doing ? i understand problem now, based on comments above. may helpful rephrase original question. ok, can not prevent people getting credentials use call web service silverlight or jquery or other similar client side code. understand this, have think how silverlight works. silverlight code sent client. client can anyone, , not have control on except know understands silverlight code. so, here can accomplish: obfuscate code prevent people copying presentation logic: http://www.preemptive.com/products/dotfuscator/overview configure wcf endpoint use https talk clients. prevent people intercepting communication between these layers. put important code in wcf service. way, if decompiles , de-obfuscates silverlight code, don't lose critical code. this post explains same thin...

c# - How can I retrieve a List of entities from a many to many relationship? -

i'm trying retrieve list<student> database. basically, schema is: gradeparalelo ---- gradestudent ---- student where gradestudent table holds primary keys gradeparalelo , student. note: gradestudent table has column hold integer. not association table. here's i've tried far: colegiodbv2entities db = new colegiodbv2entities(); public list<student> findallstudentsfromgradeparalelo(int gradeparaleloid) { return (db.students .include("gradestudents") .include("gradestudents.gradeparalelo") .where<student>(s => s.studentid == gradeparaleloid)).tolist(); } but it's retrieving single student every gradeparalelo choose. understandably, because i'm comparing studentid gradeparaleloid. this not want. can suggest way retrieve collection? image want retrieve students in gradestudent table gradeparalelo id 6. basically this, in more elegant form: public list<student> find...

SQL Server performace optimization book -

i'm looking book sql server optimization , query tuning.i thought 'microsoft sql server 2000 performance optimization , tuning handbook ken england' or 'microsoft sql server 2000 performance tuning technical reference edward whalen' ,anyone have advise ? (if there , interesting book hear about) tx. inside microsoft sql server 2005: query tuning , optimization kalen delaney great book , many things in there still apply 2008.

fingerprint - How to recognize Finger and authenticate in iPhone -

how recognize user finger login authentication , capture finger image in iphone? the screen apple uses incapable of detecting fingerprint. detects changes in charge @ different points on screen, allowing detect touches, swipes, etc. can read more here @ howstuffworks .