Saturday, April 5, 2014

Mini-link/video-plosion

tiii.me - A website that counts up the time you spent watching shows... Give me a few days to add all of mine in...

Short Horror Film about a girl's misadventure at a lake:

Richard Hickey - Francis from Not To Scale on Vimeo.

Cheat sheets and free Books on technological stuff: http://slickdeals.net/f/6825056

Doge2048 - Doge version of Threes:http://doge2048.com/

The Oxford Comma:


Crazy Dance Moves

Honest Trailers did their take on Game of Thrones (Seasons 1-3) (NSFW):
Non-spoiler version: https://www.youtube.com/watch?v=CK9YjEBM_GY
Spoiler version: https://www.youtube.com/watch?v=SVaD8rouJn0

In the words of Lauren Davis @ io9, "what happens when a lonely woman meets a cosmonaut on chat roulette"?

Russian Roulette from Ben Aston on Vimeo.

Loki as Elsa in the Frozen song - Let It Go (Actually it's pretty accurate...):


Netflix has been releasing some of the top series like House of Cards and Orange is the new Black, and now Amazon is stepping into that realm with Bosch: 


Binge watching... for those in real trouble, for the rest I say "Meh (shrug)":


Courtesy:
io9
io9
The Mary Sue
The Mary Sue
The Mary Sue
Gizmodo
Gizmodo

Sunday, March 16, 2014

Awkwardly weirdly awesome week? (Awaw)

Well basically this week has been almost a black-belt leveled hell!

To start off, Monday marked my 1st month anniversary at SD (whee~)

Tuesday classes and work... bleh

Wednesday work and cram for exam....

Thursday cram in all the slides for the exam on Friday.... Also there was π-Day competition (well π day was on Friday - 3/14/14 - which is getting close to 3/14/15 next year!). ACM and Tau Beta Pi decided to host a coding + analytical challenge contest with Qs related to π. 45-mins each for coding and analytical part, and the whole contest was only 45mins long. See how the math works, and you can be by yourself or in a team of 2. Even if you are in a team of 2, you can only work on one problem at a time. Aka, you must finish 1 of them in under 45mins to get the next challenge. The coding problem was sooooooooooo easy I was done with it in under 10mins and won a Raspberry Pi
And after completing the analytical part, I won a Raspberry Pie
So at the end of the day, I had a Raspberry Pi and Pie \(^_^)/ Me is happy \(^_^)/
Note: I was only able to participate since the competition didn't have anything against me or graduate students.... And I was hinted at, that next time there will be explicit rules baring me from it (~_~) honestly... how much damage can I cause? (*innocent face*)... well to be fair, I did walk saying, "Howdy people, I'm here to crush this competition" (*smirk*), but they all survived at the end... no casualties... so I don't see why I should be barred from participating...

Friday go through a 45 page, 4745 points, 61 question exam - took me about 5hrs before I said "Enough!" - It started at 8am and went on for about roughly 6hrs before everyone (11 people) was done. At least the professor provided us with food (donuts, chips, cookies) and half-way through with Hershey's milk chocolate with almonds bar as a sign of victory badge for surviving 3hrs. Honestly it was a bloody battle ~_~

Saturday work! After 10hrs of that, game night at the office! Catan, Tsuro and We Didn't Playtest This Either. My first time playing Catan, and of course people being people, ganged up on me (>_<)  And then towards the end they wanted my help to block someone else from winning (-_-") honestly.... Game night lasted till the wee hours. Nonetheless it was fun and gave me some insight into the psychology of my coworkers outside work.

And it is spring break which means an entire week off, no classes.... but... more work~ sigh....

Friday, March 7, 2014

Past 2 weeks summarized...

With work and classes for masters, I am back to my old schedule despite graduating... It's a shocker! I know... And yes, being a graduate student does give you a lot of time to do stuff like, oh I don't know, play games, socialize, have fun? Add work into that mix and the end result is same as last 4.5 years of my life. Anyhow, I've been saving some juicy stuff to put together in a blog post, turns out this one is going to have a video-plosion (you've been warned).

First of all Vikings is back!!!! With 2 episodes out it is already getting more amazing :D


So is Hannibal, right after Vikings:


Today I watched 300: Rise of an Empire:

It turned out to be more of like Spartacus v2.0, 3D version having blood, arrows, spears, swords and explosions coming at you. 300 vs 300: Rise of an Empire, overall both were good stories with some amount of goriness in each, none near matching those in Spartacus.

And of course the next Transformers movie, Transformers: Age of Extinction:

I don't know, after watching it, it looks more like the first Transformers movie combined with a bit of Real Steel elements.

And next movie I'm looking forward to is Transcendence:


And finally, Karen Gillan (Doctor Who) & Katee Sackhoff (Battlestar Galactica & Longmire) is back in a horror movie Oculus. Anyone interested?:

Also there was a moment around Sunday midnight, Monday morning, when TigerDirect, had a price error on their site, roughly $2 for 2-3TB NAS drives... Of course I ordered a ridiculous amount of drives all to be rejected by TigerDirect later during the week... sigh.... Earlier this week, I meet Ace, a police canine, and he was humongous... literally could take down anyone by his sheer mass. Also got Hadoop to finally work on a single-node cluster (guide coming up later on), now to attempt it on a cloud instance and make a multi-node cluster out of it.

Almost done with the Guild Hunter series, and now to pick with series to listen to next... suggestions anyone?

Courtesy: The Mary Sue (for making me aware of the Oculus trailer)

P.S.: My Bachelor's diploma finally came in, whee....

Tuesday, February 18, 2014

Linux Mod - Part 1

A while back, long time ago, I made a post about Sublime Text Editor and apps for Mac that aid with programming environment.

Here on I am trying to fully integrate linux into my coding environment. Well when I say fully integrate, I mean explore more into its potential.

Well first I decided to mess around with the bash prompt on the terminal (I use iTerm2 on Mac) and here is the version so thus far (tested cloning a git directory and creating/adding/committing/pushing file):

and yes, I got a dragon on top of my terminal sprouting words of wisdom or silliness or non-sense:

Now to dive into my config file (.bash_profile on Mac and .bashrc on Ubuntu):
1:  fortune | cowsay -f dragon  
2:    
3:  # get current branch in git repo  
4:  function parse_git_branch() {  
5:    BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`  
6:    if [ ! "${BRANCH}" == "" ]  
7:    then  
8:      STAT=`parse_git_dirty`  
9:      echo "[${BRANCH}${STAT}]"  
10:    else  
11:      echo ""  
12:    fi  
13:  }  
14:     
15:  # get current status of git repo  
16:  function parse_git_dirty {  
17:    status=`git status 2>&1 | tee`  
18:    dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"`  
19:    untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"`  
20:    ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"`  
21:    newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"`  
22:    renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"`  
23:    deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"`  
24:    bits=''  
25:    if [ "${renamed}" == "0" ]; then  
26:      bits=">${bits}"  
27:    fi  
28:    if [ "${ahead}" == "0" ]; then  
29:      bits="*${bits}"  
30:    fi  
31:    if [ "${newfile}" == "0" ]; then  
32:      bits="+${bits}"  
33:    fi  
34:    if [ "${untracked}" == "0" ]; then  
35:      bits="?${bits}"  
36:    fi  
37:    if [ "${deleted}" == "0" ]; then  
38:      bits="x${bits}"  
39:    fi  
40:    if [ "${dirty}" == "0" ]; then  
41:      bits="!${bits}"  
42:    fi  
43:    if [ ! "${bits}" == "" ]; then  
44:      echo " ${bits}"  
45:    else  
46:      echo ""  
47:    fi  
48:  }  
49:     
50:  function nonzero_return() {  
51:    RETVAL=$?  
52:    # [ $RETVAL -ne 0 ] &&   
53:    echo "[$RETVAL]"  
54:  }  
55:     
56:     
57:  ############################################  
58:  # Modified from emilis bash prompt script  
59:  # from https://github.com/emilis/emilis-config/blob/master/.bash_ps1  
60:  #  
61:  # Modified for Mac OS X by  
62:  # @corndogcomputer  
63:  ###########################################  
64:  # Fill with minuses  
65:  # (this is recalculated every time the prompt is shown in function prompt_command):  
66:  fill="--- "  
67:     
68:  reset_style='\[\033[00m\]'  
69:  status_style=$reset_style'\[\033[00;90m\]' # gray color; use 0;37m for lighter color  
70:  prompt_style=$reset_style  
71:  command_style=$reset_style #'\[\033[1;29m\]'01; # black  
72:    
73:  # Prompt variable:  
74:  tt="\[\e[00;31m\][\[\e[m\]\[\e[00;31m\]\t\[\e[m\]\[\e[00;31m\]]\[\e[m\]"  
75:  uh="\[\e[00;32m\][\[\e[m\]\[\e[00;32m\]\u\[\e[m\]\[\e[00;37m\]@\[\e[m\]\[\e[00;34m\]\h\[\e[m\]\[\e[00;32m\]]\[\e[m\]"  
76:  wd="\[\e[00;34m\][\[\e[m\]\[\e[00;34m\]\w\[\e[m\]\[\e[00;34m\]]\[\e[m\]"  
77:  et="\[\e[00;35m\]\[\e[00;35m\]\`nonzero_return\`\[\e[m\]\[\e[m\]"  
78:  gt="\[\e[33m\]\`parse_git_branch\`\[\e[m\]"  
79:  pt="\[\e[00;32m\]\\$\[\e[m\]"  
80:  tag="$tt$wd$et$gt$pt"  
81:  PS1="$status_style"'$fill \t\n'"$prompt_style$tag$command_style "  
82:     
83:  # Reset color for command output  
84:  # (this one is invoked every time before a command is executed):  
85:  trap 'echo -ne "\033[0m"' DEBUG  
86:     
87:  function prompt_command {  
88:    # create a $fill of all screen width minus the time string and a space:  
89:    let fillsize=${COLUMNS}-9  
90:    fill=""  
91:    while [ "$fillsize" -gt "0" ]  
92:    do  
93:      fill="-${fill}" # fill with underscores to work on  
94:      let fillsize=${fillsize}-1  
95:    done  
96:    
97:    # If this is an xterm set the title to user@host:dir  
98:    case "$TERM" in  
99:    xterm*|rxvt*)  
100:      bname=`basename "${PWD/$HOME/~}"`  
101:      echo -ne "\033]0;${bname}: ${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"  
102:      ;;  
103:    *)  
104:        ;;  
105:    esac  
106:  }  
107:     
108:  PROMPT_COMMAND=prompt_command  

cowsay - basically ASCII creatures that think or say your message
fortune - fortune cookie sayings
3-48 - these functions are for bringing up git status in the prompt [ezprompt]
50-54 - this function is for bringing up error code in the prompt (error code 0 = success) [ezprompt + a bit of modification]
57-108 - bash prompt layout I found on emilis' git-page - but I modified it to include my color and content format

Helper sites:
ezprompt - helps with building the initial layout with color
jamiedubs - a nice introduction to bash prompt and various formats
colors - contains various options for text and colors
emilis - contains the config to place horizontal separators after execution of a bash command

next up tmux....

Saturday, February 1, 2014

Mini Link & Video-plosion

Funny tennis game:


Yes, I know this is a long video, but it gets better with each serve :D :


Downton Abbey + Cats = Downton Tabbies:


Top 10 uses of linux.

Help find disk systems for NASA.

Courtesy - io9, gizmodo, the mary sue.