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.

parent - jquery this child selector? -

hey, quick question, couldn't find on web. have parent div , child div inside of it. select css say: #parent .child {} in jquery have var parent element, how can select child this? know it's easy create new var, i'm curious if it's possible? var parent = $('#parent'); parent.click(function() { $(this > '.child').hide(); thank you the correct syntax is: $(".child", this) if want direct children: $("> .child", this) (credit goes gumbo mentioning this) update, 2 years later : you can use $(this).find('> .child')

testing - How to get text in png file using Java -

i want check if particular string present in image. possible? pngj can that? my file contain graph , legends. want check if legends correct. no, can't pngj. text visible in png image not internally stored text. need ocr software if wish identify text. however much better if data in format easier parse computer.

css - What are the pros and cons of using percentages as your dimension standard for HTML pages -

i've been using pixel defined width , height dimensions html elements far. works out pretty fine except when you're faced bigger screens. what pros , cons of using percentages standard? p.s.also how handle size of fonts? good article read on topic. fixed vs fluid vs elastic layouts

visual c++ - Problems with refreshing a draggable MFC window -

greetings. i have make draggable mfc dialog window, has background - used that: http://www.codeproject.com/kb/graphics/picturewindow.aspx - , has several picturebox controls. have tried 2 approaches, , while work, have problems. first approach "manual" - on lbuttondown message check if it;s on clean area of window, , set flag variable. on mousemove, flag checked , if it's set, movewindow function called, , then, invalidate(1). on lbuttonup, flag unset. approach works correctly , redraws needed, somehow slow - if i'm moving cursor fast, window falls behing , isn't dragged, cursor's not on window anymore. the second approach "automatic" - call defwindowproc(wm_syscommand, sc_move+2,makelparam(point.x,point.y)); on lbuttondown, , handles rest, it's quick , never fall behind, when drag on screen's edge ( part of window gets invisible), when drag back, controls invisible , not refreshed, background okay. suppose that's because...

Displaying multilanguage characters in pdf through itext(java) -

i facing problem displaying chinese , russian etc local languages characters.it showing blank there.using itext. there standard encoding , font after converting every character unicode hexadecimal take care. make pdf encoding utf-8 use font supports unicode, here similar question basefont unicode = basefont.createfont("c:/windows/fonts/arialuni.ttf", basefont.identity_h, basefont.embedded); also see: example code

iPhone/iPad HTTP streaming library or server -

is there available open-source (preferred) or commercial library on-fly segmenting , streaming of video iphone / ipad? also, there open-source/commercial server (alternative wowza) supports this? apple offers mediastreamsegmenter: http://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/streamingmediaguide/usinghttplivestreaming/usinghttplivestreaming.html you might want peek @ best practices creating , deploying http live streaming media iphone , ipad: http://developer.apple.com/library/ios/#technotes/tn2010/tn2224.html there's darwin streaming server, may not need it.

asp.net - Why can't I debug/step-into FormsAuthentication.Authenticate? -

i having trouble active directory authentication using formsauthentication in asp.net mvc 2 (vs 2010). as understand should able step into/through microsoft source code formsauthentication.authenticate if check 'enable source server support' , 'enable .net framework source stepping' in options->debug->general , specify 'microsoft symbol servers' in options->debug->symbols. i have done , can step whole bunch of ms source code, not formsauthentication.authenticate . debugger simple steps on it. can tell me why is? if step formsauthentication.authenticate make life whole lot easier. thanks. ok, stupid. i should have been using membership.validateuser not formsauthentication.authenticate. my problems solved :) however, never figured out why not step formsauthentication.authenticate. guess remain mystery...