Posts

Featured post

Block Reference Hyperlink property in AutoCAD 2014 with VBA? -

i have .dwg file has hundreds of block references. trying create hyperlink pdf file of block references. pdf on d drive. for example, names of block refernece are: '2:test', '26:test', '234:test' . hyperlink each point be: '2:test' hyperlink d:\reports\file-002.pdf ; '26:test' hyperlink d:\reports\file-026.pdf ; '234:test' hyperlink d:\reports\file-234.pdf . from block references number before ':', , matching pdf 'file-' followed number before ':' in 3 digits. there lot of these hands, , think can program this. i have enough basic programming knowledge manipulate string number , convert in 3 digits. question have and/or need how cycle through each block reference(for loop) on file , able write hyperlink property? possible? before coming here kind of looked @ these links did not prove helpful: link1 ; link2 ; link3 thanks hints update private sub commandbutton1_click() dim readdata string ...

HTML Form with input type 'Image' not responding to click -

in 1 of cells in table, have image. idea when user clicks on image, php script supposed run. image displays (as else), there no response click event. <td id="btn_delete" <form action="delete_item.php"> <input type="image" src="images/delete.png"> </form> </td>" i'm thinking maybe there no onclick event here??? read documentation, seems there is. doing wrong or there using image in form won't allow click event? if so, how can accomplish this? thanks! one issue see missing right arrow on first td: <td id="btn_delete" should be: <td id="btn_delete">

javascript - return highlighted cells to php -

so using example code link select cells on table dragging build grid of numbers 1-192 part works great, curious how return "highlighted" cells php? <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title></title> <style type="text/css" media="screen"> table td { width:50px; height:50px; text-align:center; vertical-align:middle; background-color:#ccc; } table td.highlighted { background-color:#999; } </style> </head> <body> <form action='test.php' method='post'> <table cellpadding="0" cellspacing="1" ...

java - Creating a room by reading from a file (for a game) -

basically have make game , need create room reading file, one: # # 0 d room0.txt 0 # 1 e room1.txt 0 # wwww0wwwww w w w w w w w w w w w w w w w w w w w 1 wwwwwwwwww the "#" means can skip lines(they're information) , "w" places need put wall, numbers doors , blank spaces floor. i figured best way create room create method receives file , reads , put "information" string[10][10], , create method(or in main) receives string[10][10] created , creates room(adds images room), having difficulties reading file if guys me part thankful. the error when run program on line: if(r[x][y].equals("w")) if guys need class, image of game should or else forgot show please let me know , help. public void generateroom(file file){ if(file.exists()){ scanner sc = null; string[][] r = new string[10][]; int row = 0; try { sc = new scanner(fi...

css - Cherry Framework 4 - Change footer bootstrap settings -

i have wordpress website uses cherry framework 4 , wonder how theme works. in footer see this: <footer id="footer" class="site-footer wide" role="contentinfo"> <div id="static-area-footer-top" class="footer-top static-area"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-5 col-lg-5 static-footer-menu"></div> <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 static-footer-logo"></div> </div> </div> </div> <div id="static-area-footer-bottom" class="footer-bottom static-area"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-5 col-lg-5 static-footer-info"></div> ...

bash - exit code from ssh command -

i'm trying retrieve code return script: #!/bin/bash echo "cm 1" ssh -i key/keyid.ppk user@x.x.x.x " grep blabla ddd if [ ! $? -eq 0 ]; exit 1; fi " echo $? but last command echo $? returns 0 instead of 1. and if try run separately (not script) : the ssh command: ssh -i key/keyid.ppk user@x.x.x.x grep blabla ddd => msg "grep: ddd: no such file or directory" then: if [ ! $? -eq 0 ]; exit 1; fi then: echo $? => returns 1 expected do have idea why doesn't work in script ? thank you this code ssh -i key/keyid.ppk user@x.x.x.x " grep blabla ddd if [ ! $? -eq 0 ]; exit 1; fi " evaluates $? in shell , not in remote one, because $ not escaped in single quotes. should escape reach desired behaviour. once avoid evaluation in local shell, second time avoid evaluation when passed bash on remote side. or rather put command single quotes: ssh -i key/keyid.ppk user@x.x.x.x ' grep blabla ddd if [ ! $? -eq ...

c++ - cocos2d-x: writing words on screen in multiple lines -

in cocos2d-x when use cclabelttf writes words in consecutive order. there class in cocos2d-x gets place,width, height , string inscribe in rectangle on screen , if string's length bigger rectangle's size, breaks in multiple lines? what method of cclabelttf class? bool initwithstring (const char *string, const char *fontname, float fontsize, const ccsize &dimensions, cctextalignment halignment, ccverticaltextalignment valignment)