Posts

extjs - How can I get the current row in a grid with a combobox editor -

i have editorgridpanel combobox in 1 of columns. within 'select' event listener combobox, i'd know grid row (not combobox row) on. reason i'd update different column in grid every time item selected. think i'm missing obvious. thanks help. as of 4.1, might best use edit event of grid instead. passed in event contains edited record. http://docs.sencha.com/ext-js/4-1/#!/api/ext.grid.panel-event-edit

assembly - Moving contents of RAX to C variable (x86-64 asm) -

this rather naive question. i'm playing around allocating executable memory , manually assembling x86 code run in it. i'm bit confused how addressing works in 64-bit mode. if have variable in c code, , want move contents of rax variable, form of mov instruction should use? (this isn't using inline assembly, can't compiler me; have value of &var play with.) using intel syntax, mov [var],rax , var 64-bit immediate address. i think intel call mov moffs64*,rax in "intel® 64 , ia-32 architectures software developer’s manual".

include - JSTL taglibs not recognized when declared in common header -

i had idea while put of taglib declarations (uri's, etc) in common header file don't have manually write them of jsps. initially, things seemed fine, although don't use actual taglibs as simple el syntax. however, i'm having trouble in jsp files except 1 explicitly has taglibs declared. of other jsp's (that include header file) treat <c:something.../> tag if it's html , don't evaluate it. did googling , found this post on o'reilly suggesting i'm trying can done, i'm doing wrong. what's more other stuff in header file (common page headers, page titles, etc.) show fine. header file , sample of inclusion below. header file: <%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <%@ page session="false" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" ...

http - Python urllib2, how to avoid errors - need help -

i using python urllib2 download pages web. not using kind of user_agent etc. getting below sample errors. can tell me easy way avoid them. http://www.rottentomatoes.com/m/foxy_brown/ server couldn't fulfill request. error code: 403 http://www.spiritus-temporis.com/marc-platt-dancer-/ server couldn't fulfill request. error code: 503 http://www.golf-equipment-guide.com/news/mark-nichols-(golfer).html!! server couldn't fulfill request. error code: 500 http://www.ehx.com/blog/mike-matthews-in-fuzz-documentary!! failed reach server. reason: timed out incompleteread(5621 bytes read) traceback (most recent call last): file "download.py", line 43, in <module> localfile.write(response.read()) file "/usr/lib/python2.6/socket.py", line 327, in read data = self._sock.recv(rbufsize) file "/usr/lib/python2.6/httplib.py", line 517, in read return self._read_chunked(amt) file "/usr/lib/python2.6/httplib.py...

How to initialize Qt resources from a shared library? -

i can not figure out how initialize qt resources declared in , used shared library under red hat enterprise linux 5.2. i added qt resource file shared library, added prefix named "resource", , added file "files/stylesheet.xsl". resource file named "resources.qrc". qfile::exists returns false? mysharedlib::mysharedlib() { // think q_init_resource expands this: // resource file named "resources.qrc" extern int qinitresources_resources(); qinitresources_resources(); qstring resourcepath = ":/resource/files/stylesheet.xsl"; if( false == qfile::exists(resourcepath)) { printf("*** error - resource path not found : \"%s\"\n", resourcepath.tolatin1().data()); } } thanks in advance tips or suggestions, the problem under linux, can not have identically named qt resource files (*.qrc) in both shared library , application. not problem under windows under lin...

ios - Zooming frame graphics in Flash CS5 -

i developing flash cs5 ios app. on 1 of frames drawing many rectangles in particular pattern. use two-finger zoom , gestures zoom these rectangles on frame keep general pattern of these rectangles same. once zoomed in, user need pan around enlarged graphics. i know create event handler when zoom in adds width , height each of rectangles have worry increasing x , y positions of each of rectangles keep same distance between each 1 , forth. i there easier way this? thanks if you're drawing rectangles vectors, should able use scale property think, otherwise might need redraw bitmap rectangles based on new scale. to use zoom gesture must first set inputmode touch: multitouch.inputmode = multitouchinputmode.gesture; and you'll need listen transformgestureevent.zoom , use event's scalex,scaley: yourrectangles.addeventlistener(transformgestureevent.zoom,onzoom); function onzoom(event:transformgestureevent):void{ trace(event.scalex,event.scaley); } ...

Web analytics application guidelines (HTML5 or Silverlight) -

i have been asked implement web analytics application display charts. performance important. either thinking of using html 5 or silverlight. suggestions? the main aim of application include drill down charts (line, bar, pie) animations. components recommend (for html5 or silverlight)? do recommend books preferred technology? as performance important might better measurement rather rely on (albeit informed) opinion. take 1 of metrics , implement key features in html5 , silverlight , compare performance. use technology delivers best times.