February 2010
1 post
csc309 webserver & javascript cookies
Here is the pickling and cookie webserver example using webpy that I presented in tutorial: #!/usr/bin/env python import os import web from pickle import load, dump urls = ( '/', 'Index' ) app = web.application(urls, globals()) # global session store & session id SESSION_COUNT = 0 SESSIONS = {} # methods to save & load data to files to persist # session changes across restarts...
Feb 12th
-1 notes
September 2009
1 post
find files in linux by modification time →
Sep 8th
-1 notes
April 2009
3 posts
upgrading Ubuntu 8.04 to 8.10 to 9.04
I finally upgraded Ubuntu on my IBM T43 laptop.  I was waiting for 9.04 because I heard lots of problems about the 8.04 to 8.10 upgrade process but then I found out I had to upgrade to 8.10 before I could get to 9.04 - so it goes. The upgrade went smoother than my previous one though. Sound: sound stopped working but I was expecting this because PulseAudio caused this in the previous upgrade,...
Apr 29th
electric bikes review
there are lots of interesting electric bikes.  i found a good comparison at http://www.electricvehiclesnw.com/main/ebike-comp.htm i like the following models: Giant Twist DX & Twist Lite - $2,100 & $1,700 eZee Forza - $2,200 iZip - one of the cheaper ones at $600 because it uses SLA and not Lithium Ion batteries which are cheaper and shorter lasting and heavier Optibike - the...
Apr 20th
-1 notes
Basic XSL & Ajax Tutorial
Some simple programming examples of XSL & AJAX: XSL (eXtensible Stylesheet Language) (see http://www.w3schools.com/xsl/ ) XSL is a style sheet language for XML documents.  It describes how to display an XML document of a given type, so in a way it is similar to CSS but it adds a transformation language for XML documents called XSLT which is most often used to transform XML data into HTML but...
Apr 9th
March 2009
5 posts
csc309 tomcat & js cookies
# Using Tomcat # the following are commands to run on cdf # download Tomcat wget http://apache.sunsite.ualberta.ca/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz tar xzf apache-tomcat-6.0.18.tar.gz # configure Tomcat cd apache-tomcat-6.0.18 pico conf/server.xml # change 8080’s to your assigned port number # run Tomcat bash export JAVA_HOME=/local/packages/jdk1.6.0_07/...
Mar 12th
how to keep track of your (business) reputation
Google Alerts - get notified as Google updates its search index TweetBeep - get notified as people tweet about you BackType - get notified about comments on blogs and websites
Mar 12th
-1 notes
django middleware
might be useful for other wsgi projects conditional GET CSRF protection others.. but are these Django specific..?
Mar 10th
functional languages i need to check out
went through the Wikipedia Category on functional languages the other week and I found a bunch of interesting languages I want to check out Scala JVM-based, java with less syntax + functional aspects F# Microsoft’s .NET functional language (only interesting to me if the Mono implementation is complete) Clojure JVM-based, may be good for concurrent programming Boo python-like .NET...
Mar 9th
-1 notes
continuation based web frameworks
only the cool languages have them :) Seaside for Smalltalk / Squeak Continue for PLT Scheme Weblocks for Lisp UnCommon Web for Common Lisp
Mar 9th
-1 notes
February 2009
4 posts
some interesting parts of Python Paste
directory diffs mapping urls to different wsgi apps internal app requests via internal redirects & forwards gzipper middleware log requests in apache log format authentication web app exception handling with interactive browser-based debugging (very cool) file monitor to restart server when code changes dictionary that can hold multiple values at each key (multidict) framework for...
Feb 16th
-1 notes
fetching & displaying favicons
via Google: http://www.google.com/s2/favicons?domain=www.wired.com produces
Feb 11th
-1 notes
csc309 apache & dhtmlx
to setup apache on cdf: grab the apache.tar.gz file from the Student Guide on the course site (there is also an apache.htm page which has instructions similar to these) extract apache.tar.gz to your home directory on cdf which creates a folder called apache run the apache/bin/start.sh file to start apache (and apache/bin/stop.sh to stop apache before you logout of cdf) when prompted use the...
Feb 6th
-1 notes
no famous CS blogs?
thought i might try to expand my horizons by following what famous researchers/professors in CS are thinking and doing via their blogs.  you know Turing Award winners and such alas, i could find practically none of them blogging… sad, the profession that creates the web isn’t fully utilizing it in the end i’ve subscribed to Mark Guzdial’s Amazon blog and i found a number...
Feb 1st
January 2009
10 posts
upgrading Ubuntu Server →
see the section at the bottom of the page for upgrading without the update-manager gui
Jan 31st
-1 notes
get linux IP address in a shell script →
Jan 31st
-1 notes
port forwarding with a VirtualBox guest OS →
Jan 31st
-1 notes
using screen
* screen o Run a new screen session * screen -R o Reattach to a previously detatched session * Ctrl-a c o Create a new window. * Ctrl-a k o Kill the current window - after confirmation * Ctrl-a Ctrl-a o Switch to the other window * Ctrl-a S o Split the current window in two. * Ctrl-a TAB o Move between split sections of the screen. * Ctrl-a A o Give the the current window a name. *...
Jan 31st
-1 notes
basic sed
file global replace using regex (old_file should not be the same as new_file) sed ‘s/old/new/; s/old2/new2/’ old_file > new_file from Oracle sed article
Jan 31st
-1 notes
git & github
clone a repository to work on locally git clone git://github.com/user/project.git add a repository for pushing & pulling git remote add <repo alias> git://github.com/user/project.git see available repositories git remote pull changes from another repository git pull <repo alias> <branch> commit changes, auto-adding changed files git commit -a -m...
Jan 30th
-1 notes
csc309 HTML/CSS/Javascript & DOM
HTML reference (I recommend using XHTML 1.0 Transitional for your pages) http://www.w3schools.com/tags/ref_byfunc.asp http://www.html-reference.com/ a basic template - http://www.webstandards.org/learn/reference/templates/xhtml10t/ validate your pages to find errors - http://validator.w3.org/ CSS reference http://www.w3schools.com/CSS/CSS_reference.asp box model -...
Jan 30th
-1 notes
neural networks in javascript →
for decoding captchas
Jan 24th
-1 notes
diigo bookmarklet
because the diigolet and the diigo extension do too much javascript:(function(){ window.open('http://www.diigo.com/post?url='+ encodeURIComponent(document.location), 'DiigoBookmark','width=490,height=630, toolbar=0,resizable=0, location=0,scrollbars=0,menubar=0') })(); i can’t create a link b/c tumblr escapes the javascript and breaks the link but to get it to work just...
Jan 19th
-1 notes