Posts

forms - How convert PDF to ACROFORM type? -

i use pdftk filling forms. , when enter f:\googledisk\projects\comparepdfs>pdftk new/file.pdf fill_form new/b2bf7150aa9de8b2ef8edd20a5677f7f.fdf output new/temp_b2bf7150aa9de8b2 ef8edd20a5677f7f.pdf returned warning: input pdf not acroform, fields not filled. how fix or convert pdf acroform? i decided it. combine files in acrobat - , create new pdf. new pdf good.

Moving child resource to another parent in REST -

i have rest service. and need have functionality move child resources 1 parent another, example move book 1 author another. my variant is: post /api/books/x/moveto/y but how create such architect restful way? from rest point of view, urls should used locate resources rather expressing operations. express operations, existing http verbs should used. looks " move " operation replacing author of book. and put method seems way go: 4.3.4. put the put method requests state of target resource created or replaced state defined representation enclosed in request message payload. [...] so, can have endpoint following: put /api/books/{bookid}/author and request payload contain representation of new author.

VB6 SCGrid Textbox -

within vb6 form, i'm using scgrid object cells editable means of textbox. i suppose grid control creates textbox object user clicks cell. i need reference textbox. in particular, when user presses [left] or [right] key, need current position of cursor within textbox. can call textbox.selstart. does know how control used when editing cell? i figured out myself: ' declaration needed getting current position of cursor private type point x long y long end type private declare function getcaretpos lib "user32" (byref lppoint point) long ' function returns position of cursor within cell being edited textbox ' value expressed number of characters preceeding position private function getcaretposition() integer ' variables dim position point dim result long dim contents string ' position result = getcaretpos(position) ' convert number of characters ' figured out factor 15 trial , error ' don't ...

gdb - VxWorks debugging without workbench -

is possible debug vxworks task without workbench gdb or free debugger? looking online reported old command gdb (target vxworks id) not work anymore; after vxworks 5.3 has been introduced wdb protocol looks has never been ported gdb except 1 tentative on vetust version , powerpc platforms (i need debug x86 vxworks 6.9)

c++ - GDI Screenshot, results varying on different computer -

Image
i try take screenshot gdi, use in ffmpeg. screenshot works , ffmpeg handle without problem. but, on computer, image not want can see below. here code use init bitmap : //-- mimagebuffer = new unsigned char[mwxhxs]; memset(mimagebuffer, 0, mwxhxs); //-- hscreendc = getdc(0); hmemorydc = createcompatibledc(hscreendc); //-- bi.bmiheader.bisize = sizeof(bitmapinfoheader); bi.bmiheader.bibitcount = 24; bi.bmiheader.biwidth = mwidth; bi.bmiheader.biheight = mheight; bi.bmiheader.bicompression = bi_rgb; bi.bmiheader.biplanes = 1; bi.bmiheader.biclrused = 24; bi.bmiheader.biclrimportant = 256; hbitmap = createdibsection(hmemorydc, &bi, dib_rgb_colors, &mimagebuffer, 0, 0); selectobject(hmemorydc, hbitmap); and here each screenshot : if(bitblt( hmemorydc, 0, 0, mwidth, mheight, hscreendc, mpx, mpy, srccopy | captureblt )) i not have error running application ugly image , on computer. don't know difference causing on these compute...

javascript - MeteorJS : How do I check the data fetching from mongoDB on console client? -

we have deploy meteorjs code on ubuntu server. haven't created client access meteorjs service. first wanted verify service running properly. can 1 suggest steps check deployment correct. we install meteor on ubuntu : curl https://install.meteor.com/ | sh monogodb - install nodejs application - working! copy code meteor code server using winscp set mongodb path code : export mongo_url=mongodb://ip:27017/userdb run command start app: sudo nohup meteor --port 3001 --production & thanks.

ios - Unit Code testing of internal functions -

i newbie on testing , stumbling testing internal functionality on code parts. how test privateparseandcheck and/or privatefurtherprocessing functionality different input, dont want public functions? -(bool) publicfunction() { //some stuff network nserror* error; nsdata* data = load(&error); //now got data , parse , check bool result = privateparseandcheck(data, error, ...); if( result ) { privatefurtherprocessing(); } return result; } is re-writing code solution? interested in experiences tips/solutions on xcode server. if there straightforward way test want public methods, so. if not, have choice: can expose method test code. this common practice, not recommend this. inhibits other option… or, expose method completely. if makes feel uncomfortable, there class trying out. extract class (the methods want test , whatever else makes sense go them.) can test class. this helpful when coming different conditions (such different errors) dif...