Something I Need To Drill Into My Brain - Python
The operation of the slicing operator:
>>> word[:2] # The first two characters
'He'
>>> word[2:] # Everything except the first two characters
'lpA'
The operation of the slicing operator:
>>> word[:2] # The first two characters
'He'
>>> word[2:] # Everything except the first two characters
'lpA'
I converted a wmv video to a few different formats (mp4 and flv) and still couldn’t get the audio to play in Prezi. However, videos with the following codec settings will work:

Solution: Open your video with Handbrake and convert it to H264 with AAC as the selected audio codec and it will play just fine.
Make a shell script saying the following:
./ser2sock -b 115200 -c -w 5000 -p 10000 -s /dev/ttyUSB0 -d -g 3
Follow these instructions: http://jonathonhill.net/2009-04-23/auto-start-a-shell-script-on-ubuntu-server/
http://askubuntu.com/questions/1722/basic-ubuntu-ftp-server
“I’m going to recommend PureFTPD because it’s been the simplest and easiest to use in my opinion. You’ll need to install it first: sudo apt-get install pure-ftpd once it’s installed it’ll start itself up.”
The Big Badass List of Bootstrap Resources
Also, an user named Billy Cravens on Meetup.com left a ton of good bootstrap links (bootsnip looks especially awesome) in this post: http://www.meetup.com/HoustonCFUG/events/79862792/
Twitter Bootstrap:
https://getbootstrap.com/
Bootswatch: (free Bootstrap themes)
http://www.bootswatch.com
Wrap Bootstrap (premium Bootstrap themes)
http://www.wrapbootstrap.com
Common Bootstrap Snippets
http://www.bootsnipp.com
Some nice date plugins for Bootstrap
http://www.eyecon.ro/bootstrap-datepicker/ https://github.com/dangrossman/bootstrap-daterangepicker
Bootstrap WYSIWYG editor plugin
https://github.com/jhollingworth/bootstrap-wysihtml5
Integrating Bootstrap with jQueryValidate
jQuery form validation with Bootstrap styles
Nice data grids:
http://www.datatables.net
Integrate Bootstrap with Data Tables:
http://datatables.net/blog/Twitter_Bootstrap_2
I saw this javascript library in the code for the Mozilla Support page (really well done). It looks like it adds HTML5 functionality to older versions of IE. Looks like it should be really useful in the future.
if($_FILES["zip_file"]["name"]) {
$filename = $_FILES["zip_file"]["name"];
$name = explode(".", $filename);
$continue = strtolower(end($name)) == 'zip' ? true : false;
if(!$continue) {
$message = "The file you are trying to upload is not a .zip file. Please try again.";
} else {
$message = "File Is .zip";
}
}
require_once 'excel_reader2.php';
foreach($reader->sheets as $k=>$data)
{
echo "\n\n ".$reader->boundsheets[$k]."\n\n";
foreach($data['cells'] as $row)
{
foreach($row as $cell)
{
echo "$cell\t";
}
echo "\n";
}
}
http://learningthreejs.com/blog/2013/03/12/move-a-cube-with-your-head/
Had no idea this was even possible, but that’s an example of head tracking in the browser done with WEBRTC.
Demo: http://jeromeetienne.github.com/tquery/plugins/headtrackr/examples/demo.html
From an user named miku:
>>> import datetime
>>> d = datetime.datetime.now()
# => datetime.datetime(2009, 12, 15, 13, 50, 35, 833175)
# check if weekday is 1..5
>>> d.isoweekday in range(1, 6)
True
# check if hour is 10..15
>>> d.hour in range(10, 15)
True
# check if minute is 30
>>> d.minute==30
False