Posts

objective c - iphone - Calendar.app-like UITableView paging -

i'm developing app displays list of events in tableview. users should able switch between different weeks, meaning table view should reload data. want make switching nice :-) i how implemented calendar.app in day-overview mode: can swipe , switch between different days. how can make similar? thanks in advance! try one...its quite easy use , flexible edit per usage. klazuka / kal

Neo4j - How to get current version via REST -

how can current running neo4j-server version (or in general server informations) via rest? there "/status" uri or similar? making request against server data root return info: get http://localhost:7474/db/data/ the call return json object. server version in key "neo4j_version". documented here .

c# - Show unnecessary usings in Visual studio 2010 -

Image
i programing in c# using visual studio 2010. possible make show me usings not used in code? this must you... right click mouse on vs

Android custom widget based on existing widgets -

i hope problem understandable because i'm android beginner , english not native. i create custom widget group couple of textview, progressbar , button. goal able declare custom widget in xml layout file custom attributes define buttons texts, etc ... disposition of inner android widgets same , defined in class. i have found how declare custom attributes , create custom widget, didn't found documentation nor examples in simple case of placement of existing android widgets. i'am surprising maybe search in wrong direction. below simple code testing. custom class : public class castleviewitem extends view { private textview item; public castleviewitem (context c, attributeset attributes) { super(c, attributes); item = new textview(c); typedarray attrs = c.obtainstyledattributes(attributes, r.styleable.castleviewitem); item.settext(attrs.getstring(r.styleable.castleviewitem_name).tostring()); } @override protected ...

regex - How to search for all uppercase words in vim? -

i search uppercase words in file have no idea how (or if it's possible). found solution here on stackoverflow, doesn't work on vim. from command mode, assuming not have option ignorecase set: /\<[a-z]\+\> or /\v<[a-z]+> finds string of capital letters greater length 1 surrounded word boundaries. second form uses 'very-magic'. :help magic details

android - Creating bitmap from canvas java -

solution thanks @chandrasekhar's suggestions issue was passing in immutable bitmap canvas constructor. solution create copy of when using bitmapfactory.decodefile(); bitmap bmp = bitmapfactory.decodefile(imageurl).copy(bitmap.config.argb_8888, true); so have bitmap using bitmapfactory.decodefile() , works. able create bitmap, need create canvas , things weird. here's flow of happening. capture image, pass functiona sizes it, , saves out , returns file path. ( using phonegap cordova ) i pass url java , use saved image , manipulate in functionb code in question: // url image final jsonobject options = optionsarr.optjsonobject(0); string imageurl = options.optstring("image"); // create image bitmap bitmap bmp = bitmapfactory.decodefile(imageurl); bmp = bitmap.createbitmap(bmp,0,0,655,655); /* works fine until point */ // create image canvas canvas canvas = new canvas(bmp); bitmap 1 = bitmap.createbitmap(bmp); canvas.drawbitmap(one,0,0,null); i rece...

sql - Merging two csv files -

im new databases , programming. im trying find easy way combine data 2 csv files. there tools doing this? i'm trying combine these 2 tables 1 big table can run scripts on it. assuming 2 .csv files in same format , comma-separated-values text files, can combine 2 files using cat on linux , appropriate tool on windows. then, can load resultant, combined .csv file database's table. you 2 separate loads, 1 each of .csv files, using database managers load tool. assumes database table employs unique key , and 2 .csv files not contain duplicate data.