Posts by dan.hawk
NetBeans launches support for symfony
0Probably there are a few people that have been expecting this for some time. Netbeans support for symfony is finally here.
http://blogs.sun.com/netbeansphp/entry/symfony_support_finished
Inspiration songs
0What can be better than a great song while working you brains to get something done … these should be an example of such songs
… hope at least some will enjoy
)
D. Batistatos – Beyond The Ocean
Flunk – See through you
Ailo – Chronos
Squazoid – Selmangel
Daydin – Carnival in Xanthi
Did you ever regret sending an email after a night out?
0Well i surely did … unfortunatelly, this little plugin for Gmail was not there when I needed it the most …
Just enable Mail Goggles in the Labs page of your Gmail options, and you’ll find youself infront of a math problem whenever you want to send an email. We all know how difficult math is after a night out
) You can even tune the plugin in the General tab of the options panel after you enable it.
Enjoy
JQuery true background changer
0While looking for a background changer, i couldn’t find one that would fit my needs … that’s when i realize that it would take less to make one myself … while it might not work just perfect yet, it was just enough for what i needed … damn laziness …
Test case: http://www.insightmed.eu/showcase.html
JScript plugin: http://www.insightmed.eu/media/interactive/vendor.jquery.js
Usage: $(‘selector’).bgChange({ images: ['image 1', 'image 2', 'image 3', 'etc.'], dir: ‘images dir’, apply_classes: ['apply these classes to the helper used for the effect'] });
A saturday afternoon on the bike
0There are some things in life, that simply disconnect you from anything you were doing, taking you mind and breath away. This, at least for me, just did that … this guy’s “stunts” make me somehow sad … he does stuff on bike better than i can with my two feet … anyway … that’s another story
)
[rb] sfWebBrowser login asp.net
1* this post depends on the work of Fabien Potencier and he’s symfony library together with the work of Francois Zaninotto and he’s sfWebBrowser Plugin for the symfony framework
** if using mozilla browser use firebug and it’s Net function with the “Persist” button ON.
function executeSomeaction(sfWebRequest $r) {
//set some headers, so we'll be ridding mozilla web browser
$b = new sfWebBrowser(array("Accept" => "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language" => "en-gb,en;q=0.8,en-us;q=0.6,fr-fr;q=0.4,en;q=0.2", "Accept-Encoding"=> "gzip,deflate", "Accept-Charset" => "UTF-8,*", "Keep-Alive" => "115", "Connection" => "keep-alive"), 'sfCurlAdapter', array('cookies' => true, 'followlocation' => false, "verbose_log" => true));
//not sure if necessary, but get the "new" asp.net hidden fields
$content = $b->get('http://someweb/someloginform')->getResponseBody();
$view_state = preg_match("/<[^>]*name=\"__VIEWSTATE\"[^>]*value=\"([^\"]+)[^>]*>/i", $content, $vc);
$event_validation = preg_match("/<[^>]*name=\"__EVENTVALIDATION\"[^>]*value=\"([^\"]+)[^>]*>/i", $content, $vd);
//print_r($vd);exit();
$b->post('http://someweb/someformpostpage', array(
'ImageButtonLogin.x' => 26,
'ImageButtonLogin.y' => 15,
'TextBoxPassword' => 'somepassword',
'TextBoxUserName' => 'someusername',
'__EVENTVALIDATION' => $vd[1],
'__VIEWSTATE' => $vc[1]
))
}
Maatkit – mysql open-source database toolkit
0Maatkit is a toolkit for those who spend their time working around open-source databases. While easy to start with, it offers some powerfull features for keeping databases in shape.
For more information about it, check the links below:
Developer blog: http://hackmysql.com/blog/
Official website: http://www.maatkit.org/
