Posts

Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

iOS: How to get a proper Month name from a number? -

i know nsdateformatter suite of functionality boon mankind, @ same time confusing me. hope can me out. somewhere in code, there int representing month. so: 1 january, 2 february, etc. in user interface, display integer proper month name. moreover, should adhere locale of device. thank insights in mean time, have done following: int monthnumber = 11 nsstring * datestring = [nsstring stringwithformat: @"%d", monthnumber]; nsdateformatter* dateformatter = [[nsdateformatter alloc] init]; [dateformatter setdateformat:@"mm"]; nsdate* mydate = [dateformatter datefromstring:datestring]; [dateformatter release]; nsdateformatter *formatter = [[nsdateformatter alloc] init]; [formatter setdateformat:@"mmmm"]; nsstring *stringfromdate = [formatter stringfromdate:mydate]; [formatter release]; is way it? seems bit wordy. another option use monthsymbols method: int monthnumber = 11; //november nsdateformatter *df = [[[nsdateformatter alloc] ...

c++ - OpenCV: wrap image to cylindrical coordinates -

i'm trying create panoramic image using opencv library. based on this , need warp image cylindrical coordinates. got formula convert 3d cartesian (x,y,z) cylindrical coordinate(θ,v) panoramic image mosaic paper , is: θ = tan−1 (x/z) v = y/ √ (x^2 + z^2) i have read opencv mailing list thread cylindrical image warping, based on paper, don't think need use camera calibration matrix. and, in website, problem has not been solved. th question is, how can convert opencv iplimage cylindrical coordinate , display them correctly? thanks in advance. unfortunately, need camera calibration if wish warp image cartesian cylindrical coordinates. think it. if camera not calibrated, not know field of view of camera. if not field of view, can not map pixels optical rays. if not know optical ray corresponds pixel, there's no way express pixel in cylindrical coordinates.

How to reduce noise while recording sound in java? -

hi guys developing online audio recorder, need reduce noise while recording sound.how achieve this? current audio format is audioformat(8000.0f,16,1,true,false); you'll need implement digital signal filters on data. depending on kind of noise you're targeting, simple band pass filters might work, or go whole hog , implement dolby a/b

.net - Couple of VB.Net lines in C# -

i converting project vb.net, , have few lines unable convert propperly. system.runtime.caching.memorycache.default(me.name) in line, understand "me.name" has "this.name", error "non-invocable member 'system.runtime.caching.memorycache.default' cannot used method.". i have correctly added system.runtime.caching references also return new string[]; . have no idea how convert this. thanks in advance, rené it appears want call indexer (sometimes called item property). c# uses square-brackets [] purpose. system.runtime.caching.memorycache.default[this.name] i suggest 2 other changes: if there's no ambiguity, can leave out this. with appropriate using directive ( using system.runtime.caching; ), type doesn't have qualified. memorycache.default[name]

fedora - Error while connecting to sftp using shell script -

i getting following error while trying connect sftp server:- ncftpput: cannot open http://mydomain.com : unknown host. code using following:- ftpu="username" # ftp login name ftpp="password" # ftp password ftps="http://mydomain.com"# remote ftp server ftpf="/home" # remote ftp server directory $ftpu> & $ftpp locald="/localpath" ncftpput -m -u $ftpu -p $ftpp $ftps $ftpf $locald i running script on fedora 10... thanks..... ncftpput ftp client not support ssh (see faqs ). also, in script you're providing http url instead of server name. if mydomain.com runs ftp server, try ftps=mydomain.com instead.

How to send message to your follower in twitter using iPhone? -

i have iphone application in used xauth , can tweet want send message follower , don't know how send message particular follower. please give ideas stuff. in advance.. use mgtwitterengine send message particular follower.

full text search - FullText In Microsoft Sql Server - Returning exactly word -

can tell me how query fulltext table in sql server, , matches? example: i have records in table named "items": bath bathroom test testing i need query bath , 1 record, "bath", excluding word bathroom. same word "test", wich in context different "testing". have tried select column1, column2, ... [itens] ft_tbl inner join containstable([itens], *, 'bath') key_tbl on ft_tbl.unique_key_column = key_tbl.[key] http://msdn.microsoft.com/en-us/library/ms189760.aspx or select columnname [itens] contains(somecolumn, 'bath') http://msdn.microsoft.com/en-us/library/ms187787.aspx just noticed updated questions ( formatting applied ). if column holds keywords ( single word ) select column = 'keyword' . select columnname [itens] somecolumn = 'bath'