hackalive
Members-
Posts
652 -
Joined
-
Last visited
Everything posted by hackalive
-
gettin the QRcode to save as a temp image would also be a solution if anyone can tell me how to do it
-
I am using this QRCode https://github.com/jeromeetienne/jquery-qrcode. No I need to turn it into an image so I can use it like <img src="qrcode.php"> I have added "header("Content-type: image/png");" but I cannot get this to work. Any and all help/advice is greatly appreciated. It is starting to really annoy me Cheers in advance.
-
bump A few more opinions would be appreciated
-
Im using this code <?php $w=$_GET['w']; $h=isset($_GET['h'])?$_GET['h']:$w; // h est facultatif, =w par défaut $x=isset($_GET['x'])?$_GET['x']:0; // x est facultatif, 0 par défaut $y=isset($_GET['y'])?$_GET['y']:0; // y est facultatif, 0 par défaut $filename=$_GET['src']; header('Content-type: image/jpg'); header('Content-Disposition: attachment; filename='.$src); $image = imagecreatefromjpeg($filename); $crop = imagecreatetruecolor($w,$h); imagefilter($image, IMG_FILTER_GRAYSCALE); imagefilter($image, IMG_FILTER_CONTRAST, -100); imagecopy ( $crop, $image, 0, 0, $x, $y, $w, $h ); imagejpeg($crop); ?> problem is, its doing like a "zoom in" I need it to keep the aspect ratio. Any ideas how I can do this?
-
Hi guys I am after a PHP OCR which works relatively well with scanned images. Any suggestions? Must allow multi-character Have tried: http://www.phpclasses.org/package/2874-PHP-Recognize-text-objects-in-graphical-images.html but it does not do multiple characters, so its no good. Thanks in advance.
-
joel24, have you got something you have used before that is perhaps better?
-
Hi guys I am using this http://www.webismymind.be/editablegrid/ to do inline table edits, my only issue is how to make AJAX write the edits back live to the DB? What PHP do I need for that? For the record I am not using the XML mode I am using the attach to HTML table mode. Many many thanks for any advice in advance.
-
Hi guys, I am after some GD/PHP code that selects out an area of a larger picture. It must use x1, y1 to x1, y2 rather than x1, y1 and then a dimension, that is it must use coordinates. It must then parse the selection to a php function, not sure how to do this, but one idea is for it to send the selection to a tmp folder then parse the new image file Any help is very much appreciated.
-
ok, I am also having a visual problem, when i set the margins etc, they are not working They are not printing accurately, and I need them to If you can help out with that it would be very much appreciated. http://www.phpfreaks.com/forums/index.php?topic=346732.0
-
Hi guys, Im presuming some of you are familiar with the MS Access row/table edit mode, where when you enter data into a row it auto adds a new row and when you click within a cell you edit that cell and your cursor is not taken to the first cell of the row selected. Now I have so far been unable to find a jquery plugin supporting PHP/MySQL, with the potential for AJAX as well for live edit/update that meets the above criteria or even the criteria of "when you click within a cell you edit that cell and your cursor is not taken to the first cell of the row selected" So if you guys know of one, or how I can modify one easily, that would be much appreciated. Cheers in advance. PS I have been trying to get this sorted for several days, just cant seem to find/modify to do what I want. So all your help / advice is much appreciated.
-
The reason I need it to be "mm" 'perfect' so to speak, is because I am generating an OMR (Optical Marks Recognition) sheet with it and need it to be accurate.
-
Hi guys I am using the firefox plugin JSPRINT, but my margins are not working out , any ideas why this is not working? This is my code (so should do A4 page) <script type="text/javascript"> // set the printer (based on your printer name) jsPrintSetup.setPrinter('TX820 Artisan830(Network)'); jsPrintSetup.setOption('paperHeight', 9); jsPrintSetup.setOption('paperWidth', 9); jsPrintSetup.setOption('shrinkToFit', 0); jsPrintSetup.setOption('numCopies', 1); // set top margins in millimeters jsPrintSetup.setOption('marginTop', 0); jsPrintSetup.setOption('marginBottom', 0); jsPrintSetup.setOption('marginLeft', 0); jsPrintSetup.setOption('marginRight', 0); // Set Headers & Footers jsPrintSetup.setOption('headerStrLeft', ''); jsPrintSetup.setOption('headerStrRight', ''); jsPrintSetup.setOption('footerStrLeft', ''); jsPrintSetup.setOption('footerStrRight', ''); // sets silent printing (skip the print settings dialog box) jsPrintSetup.setSilentPrint(true); // print the page jsPrintSetup.print(); </script> <body style="padding:0; margin:0; width:210mm; height: 297mm;"> <div style="margin: 15mm 15mm 15mm 15mm; border:1px solid #000000;"> </div> </body>
-
Hi guys, I need some form of thing like http://jsprintsetup.mozdev.org/reference.html that allows me to set printer trays! The jsPrint does the "behind the scenes" print I need, but does not allow me to select trays If anyone has any PHP/jQuery/JS code that I can do it all with, it would be much appreciated.
-
Hi guys, I need some PHP/jquery code that constantly checks a folder for when files are added to it, then grabs the file/s and processes them through a php function. Any ideas how I can automate this, I am happy for a browser window to have to be open to do it (that would be the only way I think) but now I just need the web based code to go with it. Any help/suggestions are much appreciated. Cheers in advance.
-
Thanks KingPhilip, if any one else has any input please feel free to post.
-
correct me if i am wrong Systems Infrastructure Software Development (that has been developed) Solutions ???? How would this work? ? Network Design & Implementation? Services Consulting Project Management
-
For an IT Company how would you define: systems solutions services as offerings of the company (relative to each other)? how would one differ from the other
-
I actually am going to use it with left and right, however .... Kira, I need to use $tag1 and $tag2 not integrated like your demo code. Anyway we can do that? tried $tag2 = '"h2\"'; $pattern = '/\"h\"\.*)\"2\"\:\[\s(.*)\s\$tag2\}/'; but does not work
-
Kira, I don't need randomrandomrandom randomrandomrandomo randomrandomrandomp randomrandomrandomq at all. I need preg_match_all('/\"h\"\.*)\"2\"\:\[\s(.*)\s\"h2\"\}/', $string, $matches); to work with $tag1 and $tag2, please If it does not make sense what I want, let me know Cheers
-
thanks but what happened to the opening h ? I need that as well!! and it needs to use the variables $tag1 and $tag2, please Thanks for you help so far. appreciated
-
UPDATE: I tried $tag1 = '"h".*?)"2":['; $tag2 = '"h2"}'; preg_match('/$tag1(.*?)$tag2/', $data, $matches); my data set looks like this (don't as why, it just does ) "h":randomrandomrandom"2":[ needtogetthisdataintostrings "h2"} "h":randomrandomrandomo"2":[ needtogetthisdataintostringso "h2"} "h":randomrandomrandomp"2":[ needtogetthisdataintostringsp "h2"} "h":randomrandomrandomq"2":[ needtogetthisdataintostringsq "h2"} so i end up needing an array with the values: needtogetthisdataintostrings needtogetthisdataintostringso needtogetthisdataintostringsp needtogetthisdataintostringsq as I sai before, any and all help much appreciated
-
Hi guys, I have been using this code: preg_match('/<h2>(.*?)<\/h2>/', $data, $matches); which i changed to: $tag1 = 'h2'; $tag2 = 'h2'; preg_match('/$tag1(.*?)$tag2/', $data, $matches); however i need it to work allowing variables (of any character or symbol) within $tag1. I tried $tag1 = 'h(.*?)2'; $tag2 = 'h2'; preg_match('/$tag1(.*?)$tag2/', $data, $matches); but that does not work .... essentiall the whole thing would work like this (example only): firstpartoftag1VARIABLE1lastpartoftag1VARIABLE2tag2 ps the preg_match should only capture the VARIABLE2 data not VARIABLE1 any ideas or help would be much appreciated cheers in advance