Posts

django - Post a form with urllib and move to that page like a web browser -

i want post form manually using urllib , redirect user page if had clicked submit button in web browser. the reason i'm doing because before submitting payment paypal, need store information db. want handle user paypal website without having him click again in "buy now" button. i'm using django, if matters somehow. is possible? thanks this tool might you: http://wwwsearch.sourceforge.net/mechanize/

Vim plugins, tips and tricks for Drupal development -

i looking usefull scripts, vim configurations , addons drupal development vim. i interested in experiences various scripts, personal favorites , on. drupal-vim vimrc configuring vim on drupal.org from useful vim plugins web development , design (php, html, css, javascript)? surround.vim enclose text in html tags jslint.vim check javascript errors , bad practices jslint jshint.vim check javascript errors , bad practices jshint (less brutal jslint) http://www.vim.org/scripts/script.php?script_id=1623 automatic folding of php syntastic automatic syntax checking of e.g. php exuberant ctags tagging of wide array of languages. taglist helps view/navigate source, displays call signature in status area. snipmate snipmate drupal texmate bundle . t-command kicks ass , not drupal development. love it. see video. https://wincent.com/products/command-t

Which is the shortest way to silently ignore a Ruby exception -

i'm looking this: raise exception rescue nil but shortest way i've found this: begin raise exception rescue exception end def ignore_exception begin yield rescue exception end end now write code ignore_exception { puts "ignoring exception"; raise exception; puts "this ignored" }

tabs - Eclipse: how to switch between console window and editor? -

i'm using eclipse python , r development. how can jump between editor tab , console window using keyboard shortcut / hotkey? go view console: shift + alt + q + c you can switch editor using ctrl + f7 . ctrl + shift + l displays shortcuts in eclipse.

php - im trying to change an image using GD library but its not working? -

<?php header('content-type:image/jpeg'); $image = imagecreatefromjpeg('suliduli.jpg'); //alpha channel parameter omitted below optional. imagefilter($image, img_filter_colorize, 50, 0, 0); imagejpeg($image, '', 90); imagedestroy($image); ?> i know have gd installed checked using php info! , file suliduli.jpg thier aswell, thier problem im not seeing thanks! :)) edit: when remove header: ÿØÿà�jfif������ÿþ�;creator: gd-jpeg v1.0 (using ijg jpeg v62), quality = 90 ÿÛ�c� ÿÛ�c ÿÀ�)³"�ÿÄ����������� ÿÄ�µ���}�!1aqa"q2‘¡#b±ÁrÑð$3br‚ %&'()*456789:cdefghijstuvwxyzcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ�������� ÿÄ�µ��w�!1aqaq"2b‘¡±Á #3rðbrÑ $4á%ñ&'()*56789:cdefghijstuvwxyzcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ���?�ûŽŽ}èïkíÖ¿ ?p¤Á§šbÜÔÜbÒsnÇ ü´Ä5ºsw§nÇjf<硨°ÐšsžÝ)¬{àÑŸcha‘Ò“¾i„sf{Ò´œŠ@cpf9Í`íÚ€Ô)�Í_b‰jj5¥4œš›ˆxmÝ;rŽ...

UNC path to File URI -

how convert unc path file uri.. application user give css unc path in test box : \\egng4573\d$\css\style.css how can change : file:///d:/css/style.css so firefox , ie both can access css desired path , apply on them.. please tell.... in .net, let unc = @"\\egng4573\d$\css\style.css" then new system.uri(unc) should it. val : system.uri = file://egng4573/d$/css/style.css

mysql - Grab a certain amount of database entries from a table -

is there way grab exact amount of entries database example. example had table had id , total visits columns. wanted grab 20 entries , sort them total visits. how go this? know how sort whole table, able grab top twenty total visits , sort them. thanks o , right using sqlite, know in future using mysql also. thanks try with: select * tablename order totalvisits limit 20