Posts

objective c - ipad programming guidance -

i'm @ startup level in ipad/iphone programming. there project in mind, need guidance on key points: fundemental requirements: 1)user interface , interaction wired magazine app(playing movies on page,etc) 2)accessing timeuser spent on pages , videos more: -accessing application's data (and let's application can give permission, if there so) maybe these easy things figure out, if point me pleased. ps: have more 10+ top seller ebooks on ipad/ios/iphone programming , i'm started reading them. clear, names of these concepts (in way should research accessing time user spent on page- did try on google on own words not desired result)or material pointing issues ease way. the ui portion of question should pretty easy to, take learning lot of cocoa touch library, bit of core foundation. there 2 books highly recommend: programming ios 4 iphone programming: big nerd ranch i recommend programming ios 4, because has been updated xcode 4. to answer othe...

ex - Vim command for "edit a copy of this file" -

a pattern seem following right is: edit file until it :w another-file use starting point another-file :e another-file polish another-file is there existing ex command latter 2 steps @ once? :writeandedit another-file ? i can fake 1 using vimscript, want know if there's existing command. could :saveas job? :sav[eas][!] [++opt] {file} save current buffer under name {file} , set filename of current buffer {file}. previous name used alternate file name.

iphone - UITableView adding cells dynamically -

i have uitableview in nib file , dynamically add content each of cells in tableview. there way this? have array of text display in tableview array of pictures. you need implement uitableviewdatasource protocol , override the - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath and - (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section methods. want return length of array tableview:numberofrowsinsection: method. in tableview:cellforrowatindexpath: method create uitableviewcell (dequeue 1 if available) , add uiview s want hold data (i.e. uiimage, etc.). access data populate view using indexpath.row index array(s). make sense? sounds bit more complicated in practice. here documentation uitableviewdatasource protocol

javascript - Printing ZPL (txt) from browser (Coldfusion scripted) -

we have developed webshop using coldfusion. adding new functionality printing labels on internet. what happens, or rather should happen is: the customer logs in @ shop , selects order print labels. our coldfusion code creates label use of native zpl language: label saved on server plain text file zpl instructions. javascript used open text file in new window. the problem is: printing text file browser doesn't work. not when set printing not show additional header , footer details. when request source code , print it, labels printed. have tested on ie9 , ff7. so questions are: is way use javascript send plain text printer, without html mark up? came across javascript code embeds text html mark , using window.print() command. not option. or there way make printing of plain text file out browser work properly? thank attention! if service limited windows users, can have them install ups activex control direct zpl code connected thermal printer. ups thermal...

Scroll event of big-size items within Android ListView -

i have listview containing big-sized items. each item may occupy more 1 screen. objective calculate offset (view.gettop()) of first visible item on screen. i use setonscrolllistener capture scrolling event. problem onscroll event triggered when visible item changed. if 1 item vertically spanned bigger screen size, onscroll event not triggered during scrolling of big item. is there other event capture achieve objective? thanks

css - Strange Chrome behavior: calculates all margin percentages right except for margin-top! -

when declare style div: #fbinner{ position: absolute; margin: 11.2% 9.7% 0% 26.4%; width: 63.5%; height: 54.6%; overflow: visible; /*max-height: 190px; max-width: 490px;*/ font-size: 11px; font-family: "lucida grande",tahoma,verdana,arial,sans-serif; color: #fff; /*border: solid 2px gray;*/ } chrome sets every margin right except of margin top, set smaller in other browsers ... strange, other margins displayed should ... what reason that? there workaround still uses percentages? seeing x-browser css question, resetting css styles valuable first step - maybe solution. haven't disclosed html code, can't know other tags or styles affecting #fbinner in case, here "meyerweb reset" stylesheet: http://meyerweb.com/eric/tools/css/reset/ link topmost in html file. break site, that's thing. @ least should equally broken in browsers now. when you've fixed of page, should work in most/all browser...

python - How to check if end of list was reached? -

if have list, a=[1,2,3] , , want see if a[4] null , there way that, without using exception or assertion? len tell length of list. quote docs: len(s)     return length (the number of items) of object. argument may sequence     (string, tuple or list) or mapping (dictionary). of course, if want final element in list , tuple , or string , since indexes 0 based, , length of item element count, a[len(a)-1] last item. as aside, generally, proper way access last element in object allows numeric indexing (str, list, tuple, etc) using a[-1] . obviously, not involve len though.