Friday, January 23, 2015

IFT6266 Week 2

Test Vincent Dumoulin's dataset (https://github.com/vdumoulin/ift6266h15/tree/dataset/code/pylearn2/datasets) and get a baseline with a simple convnet or fully connected net.

Monday, January 12, 2015

IFT6266 Week 1

Current plans:

GoogleNet (almost done)
OxfordNet
DeepCNet/Deep Sparse Network (Benjamin Graham)
Deep Scattering Networks (Mallat)
Convolutional Kernel Networks (Mairal)
Disjunctive Normal Networks (this paper)

Friday, November 28, 2014

FreeDNS Cron Update


A Dynamic DNS Bash Script for FreeDNS
First, make sure you have registered an account for FreeDNS, and set up a subdomain as an A record at http://freedns.afraid.org/subdomain/


Save the contents below as dns.sh, making sure to change /path/to/log/dns.log , <YOUR_API_KEY> , <YOUR_SUBDOMAIN>. You can get both your API Key and the domain from http://freedns.afraid.org/api/ . The domain should be something like mycooldomain.ignorelist.com (or mycooldomain.chickenkiller.com or one of the other FreeDNS domains).


You can get the full update line (https address and the full wget call, seen in the if statement below) from your FreeDNS dashboard, under Main Menu -> Dynamic DNS -> quick cron example , toward the bottom of the page.



#!/bin/bash                                                                     
LOG='/path/to/log/dns.log'                                                    
                                                                                
echo "-----------------------" >> $LOG                                          
echo "Running dns.sh" >> $LOG                                                   
echo $(date) >> $LOG                                                            
                                                                                
# get the current ip...                                                         
CURRENT_IP=$(wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//')
                                                                                
echo "Current IP:"$CURRENT_IP >> $LOG                                           
                                                                                
#FreeDNS updater script                                                         
UPDATE_URL="https://freedns.afraid.org/dynamic/update.php?<YOUR_API_KEY>"
SUBDOMAIN="<YOUR_SUBDOMAIN>"                                                  
                                                                                
PREVIOUS_IP=$(nslookup $SUBDOMAIN | tail -n2 | grep A | sed s/[^0-9.]//g)                
                                                                                
echo "Previous IP:"$PREVIOUS_IP >> $LOG                                         
                                                                                
if [ "$CURRENT_IP" != "$PREVIOUS_IP" ]                                          
    then                                                                        
        echo "Current and previous IP differ! Updating FreeDNS..." >> $LOG      
        wget -q -O /dev/null $UPDATEURL                                         
        echo "DNS updated on:"$(date) >> $LOG                                   
    fi                                                                          
echo "-----------------------" >> $LOG



Crontab
 
Now run sudo vim /etc/crontab , adding this line at the bottom,
replacing /path/to/script/dns.sh with the path you saved dns.sh to,
and replacing <USER> with your username
  
 
*/5 * * * * <USER> /path/to/script/dns.sh

Tuesday, August 12, 2014

Install Acrobat Reader in Ubuntu

cd ~/Downloads && wget -c http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb

sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb

For 64 bit, you also need compatibility libs:
sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libstdc++6:i386

Tuesday, July 22, 2014

Checking Out GitHub PRs

Example .git/config

[remote "upstream"]                                                            
    url = https://github.com/scikit-learn/scikit-learn                         
    fetch = +refs/heads/*:refs/remotes/upstream/*                              
    fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*

Tuesday, July 8, 2014

Saturday, June 7, 2014

Force google-chrome to start new session

This command will force Google Chrome to start a new session, and disables any proxy settings you currently have

google-chrome --user-data-dir=/tmp --no-proxy-server