Posts

Identifying content displayed inside QTP -

i trying identify content displayed inside frame using qtp. asking page frames match description , collection of frames. take first frame collection reason seems object doesn't exist, , therefore can't reach content displayed inside. idea how can extract content inside frame, , why doesn't qtp recognize an existing object? (remark: intentionally didn't use repository identify frame cause frame has unique location in page dynamic indexes identify location) thanks, nathan code description: set targetpage= browser(...).page(...) set objdesc = description.create() objdesc("micclass").value = "frame" objdesc("html id").value = "id" objdesc("html tag").value = "iframe" objdesc("name").value = "id" set framescollection = targetpage.childobjects(objdesc) print framescollection .count-> prints number >0 set firstframe=framescollection(0) firstframe.exist-> returns false ...

iphone - OpenGL 3D Collision Detection -

i done quick search collision detection opengl things come 2d examples using cgrectintersectsrect. use cgrectintersectsrect 3d detection to? making basic 3d maze game , want stop people walking through walls squares (made triangles) opposed imported objects (yep, new this). thanks, simon you struggle. consider using unity3d , allow access nvidia physx , type of 3d physics solution want. conversely, start scratch this! http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.4.5881&rep=rep1&type=pdf conversely, become expert in something this http://www.ode.org/ can conceivably use opengl, http://www.ogre3d.org/about/features , etc. here important clarification regarding comments on "images": images utterly unrelated collision detection. opengl has utterly no relationship, whatsoever in way collision detection or physics of kind. images have absolutely no connection, whatsoever, collision detection. there no connection, zero, between openg...

MySQL: SELECT an extra column categorizing another column based on IF statements -

suppose command: select sessionid, sessionlength mytable; generates table: +-----------+---------------+ | sessionid | sessionlength | +-----------+---------------+ | 1 | 00:20:31 | | 2 | 00:19:54 | | 3 | 00:04:01 | ... | 7979 | 00:00:15 | | 7980 | 00:00:00 | | 7981 | 00:00:00 | +-----------+---------------+ 7981 rows in set (0.92 sec) but want generate table this: +-----------+---------------+--------+ | sessionid | sessionlength | size | +-----------+---------------+--------+ | 1 | 00:20:31 | big | | 2 | 00:19:54 | big | | 3 | 00:04:01 | medium | ... | 7979 | 00:00:15 | small | | 7980 | 00:00:00 | small | | 7981 | 00:00:00 | small | +-----------+---------------+--------+ 7981 rows in set (0.92 sec) something big when it's sessionlength > 10 something medium when it's sessionlength <= 10 , sessi...

Help with intent starting on Android -

i trying learn few things http://code.google.com/p/iosched/source/checkout . wanted see how implemented ui patterns talking on i/o. in homeactivity use code fire notesactivity : /* launch list of notes user has taken*/ public void onnotesclick(view v) { startactivity(new intent(intent.action_view, notes.content_uri)); } notes class in schedulecontract class , looks : public static class notes implements notescolumns, basecolumns { public static final uri content_uri = base_content_uri.buildupon().appendpath(path_notes).build(); public static final uri content_export_uri = content_uri.buildupon().appendpath(path_export).build(); /** {@link sessions#session_id} note references. */ public static final string session_id = "session_id"; /** default "order by" clause. */ public static final string default_sort = notescolumns.note_time + " desc"; public static final string content_type = ...

Javascript regex to find a base URL -

i'm going mad regex in js: var patt1=/^http(s)?:\/\/[a-z0-9-]+(.[a-z0-9-]+)*?(:[0-9]+)?(\/)?$/i; if give input string "http://www.eitb.com/servicios/concursos/516522/" regex it's supossed return null, because there "folder" after base url. works in php, not in javascript, in script: <script type="text/javascript"> var str="http://www.eitb.com/servicios/concursos/516522/"; var patt1=/^http(s)?:\/\/[a-z0-9-]+(.[a-z0-9-]+)*?(:[0-9]+)?(\/)?$/i; document.write(str.match(patt1)); </script> it returns http://www.eitb.com/servicios/concursos/516522/,,/516522,,/ the question is: why not working? how make work? the idea implement regex in function null when url passed not in correct format: http://www.eitb.com/ -> correct http://www.eitb.com/something -> incorrect thanks i'm no javascript pro, accustomed perl regexp, i'll give try; . in middle of regexp might need escaped, can map / , j...

asp.net user control scroolIntoView is scrolling entire page -

i there i'm using asp.net user control tree view. when load page want scrool user control selected node in tree view. i'm using js function .scrollintoview(true). scrolling entire page (not inside user control) here's code //js function scrooltofirstselectedcheckbox(ctrlid) { event.observe(window, 'load', function() { var tree = document.getelementbyid(ctrlid + '_mytreeview'); var checkboxes = tree.getelementsbytagname("input"); var checkboxescount = checkboxes.length; (var = 0; < checkboxescount; i++) { if (checkboxes[i].checked) { checkboxes[i].scrollintoview(true); break; } } } ); } //aspx.cs page.clientscript.registerclientscriptblock(this.gettype(), "scrolltoselectedcheckbox", string.format("scrooltofirstselectedcheckbox('{0}...

version control - Lightweight versioning system for standalone development -

i develop lot of prototypes while trying out stuff. wish have lightweight versioning system keep backup of these , make easy me find them next time. me in keeping track of various techiniques have tried solving particular problem. i know suggestions on using right tool job. update: simple google have given me names of version control apps , git preferred choice. know lightest app job , why. dont want single repo take gbs of space. git efficient in handling space thats claim. check link below https://git.wiki.kernel.org/index.php/gitbenchmarks#git.2c_mercurial.2c_bazaar_repository_size_benchmark