JQuery: How To Get URL Parameters & Values http://bit.ly/hkEzhU
15 Sites Web Developers and Designers Should Know http://ping.fm/u8NZl
Windows: 8 Desktop and Window Management Shortcuts http://ping.fm/Pkq1U
Drupal: Add a Command Line Interface using the Drush Module http://ping.fm/XucVd
http://ping.fm/SfrqQ Drupal: Add a Command-line Interface with the Drush Module: The Drush module for Drupal allows you to have a command-line interface and a scripting environment for your Drupal website if you are accustomed to using the command prompt (mostly available to dedicated and virtual private servers). drush means Drupal Shell.
How to Resize an Image Using PHP
Source:http://www.4wordsystems.com/php_image_resize.php
Part I: The HTML Form
<form action="upload.php" method="post" enctype="multipart/form-data" >
<input type="file" name="uploadfile"/>
<input type="submit"/>
</form>
Part II: Getting at the file, resizing the image, and saving to the server. (upload.php)
<?php
// This is the temporary file created by PHP
$uploadedfile = $_FILES['uploadfile']['tmp_name'];
// Create an Image from it so we can do the resize
$src = imagecreatefromjpeg($uploadedfile);
// Capture the original size of the uploaded image
list($width,$height)=getimagesize($uploadedfile);
// For our purposes, I have resized the image to be
// 600 pixels wide, and maintain the original aspect
// ratio. This prevents the image from being "stretched"
// or "squashed". If you prefer some max width other than
// 600, simply change the $newwidth variable
$newwidth=600;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);
// this line actually does the image resizing, copying from the original
// image into the $tmp image
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
// now write the resized image to disk. I have assumed that you want the
// resized, uploaded image file to reside in the ./images subdirectory.
$filename = "images/". $_FILES['uploadfile']['name'];
imagejpeg($tmp,$filename,100);
imagedestroy($src);
imagedestroy($tmp); // NOTE: PHP will clean up the temp file it created when the request
// has completed.
?>
Get Email From a String in PHP
<?php
/*
Snippet Name: Get Emails from Strings
Author : Hermawan Haryanto
Email : hermawan@codewalkers.com
Homepage: http://hermawan.com
Blog : http://hermawan.codewalkers.com
*/
function get_emails ($str)
{
$emails = array();
preg_match_all("/\b\w+\@\w+[\.\w+]+\b/", $str, $output);
foreach($output[0] as $email) array_push ($emails, strtolower($email));
if (count ($emails) >= 1) return $emails;
else return false;
}
# Here is how to use it.
# Sample string containing email addresses;
$str = "test test@test.com ha ha heHe@test.com bla bla bla@test.com";
# Get the emails on arrays;
$emails = get_emails ($str);
# Print that arrays;
print_r ($emails);
?>
There Are Only 10 Types of People In This World
Those who can understand binary, and those who cannot.
Source: somewhere in the internet…
Speed Up Torrents With Low Or Zero Seeders
source: http://filesharefreak.com/tutorials/how-to-speed-up-torrents-with-low-seeders/
Simple. Just copy/paste this list of public trackers into your torrent’s tracker list.
NOTE: Do not attempt this trick with private torrents – it’ll only get you banned from the tracker. Use this tip with torrents you find at mininova, thepiratebay, etc.
http://tracker2.istole.it:60500/announce
http://inferno.demonoid.com:3407/announce
http://vip.tracker.thepiratebay.org/announce
http://track.sextorrent.to:2710/announce
http://tracker.deluxebits.to:3552/announce
http://denis.stalker.h3q.com:6969/announce
http://tracker.thepiratebay.org/announce
http://tracker.torrentbox.com:2710/announce
http://tracker.hexagon.cc:2710/announce
http://tracker.torrent.to:2710/announce
http://axxo.sladinki007.net:6500/announce
http://220.162.244.175:53880/announce
http://tpb.tracker.prq.to/announce
http://open.tracker.thepiratebay.org/announce
http://eztv.sladinki007.net:60500/announce
http://tv.tracker.prq.to/announce
http://218.145.160.136:8080/announce
http://tracker.prq.to/announce
http://tracker.torrenty.org:6969/announce
http://tpb.tracker.thepiratebay.org/announce
http://t.ppnow.net:2710/announce
http://www.torrentvideos.com:6969/announce
http://tracker.bitebbs.com:6969/announce
http://www.torrent-downloads.to:2710/announce
http://eztv.sladinki007.eu:60500/announce
http://www.ipmart-forum.com:2710/announce
http://tracker.ydy.com:83/announce
http://bt1.the9.com:6969/announce
http://tracker.sladinki007.net:6500/announce
http://tracker.ydy.com:102/announce
http://tracker.paradise-tracker.com:12000/announce
http://moviesb4time.biz/announce.php
http://tracker.deadfrog.us:42426/announce
http://mpggalaxy.mine.nu:6969/announce
http://www.sumotracker.org/announce
If you don’t know how to do it, click the source I mentioned above for instructions.




