Archive for category Computers

Displaying stocks on your mac desktop

If you are into trading and have mac and want to be really update with your stock market, here is a little tip:

Install Geektool 3 download my little Yahoo Script and you can display any symbol right on your desktop. Set your own custom refresh rate.

It display red when negative, green when positive and white when stale.

Feel free to use it, and modify it the Yahoo Codes are here


#!/bin/bash
STOCK=$1
VALUE=`curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=$STOCK&f=l1"`
GAIN=`curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=$STOCK&f=c1"`
GAINP=`curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=$STOCK&f=p2"|sed -e 's/"//g'`

ESC=`printf "\e"`
WAY=`echo $GAIN|grep "^-" -c`

ZERO=`echo $GAIN|grep "^0.000" -c`

if [ "$ZERO" == "1" ]; then
echo "$ESC[37m $STOCK $VALUE $GAINP $ESC[0m"
elif [ "$WAY" == "1" ]; then
echo "$ESC[31m $STOCK $VALUE $GAINP $ESC[0m"
else
echo "$ESC[32m $STOCK $VALUE $GAINP $ESC[0m"
fi

, ,

1 Comment

gotta love mac!

You gotta love your mac and this site! For mac users only copy paste this:

 osascript -e 'say "oh This is a silly song silly song silly song this is the silliest song ive ever ever heard So why keep you listening listening listening while you are supposed to work to work to work to work its because i hate my job hate my job hate my job its because i hate my job more than anything else No its because youve no life youve no life youve no life and you better go get one after forwarding this crap" using "cellos"'

 

,

No Comments

netPong on Mac books

You remember that first game you have ever played on TV, video game ping pong there is one version for mac as well, but this version has some extras! and you will love it , it works on my powerbook as well! Mac has gyroscope inside i guess for safety issues of hard drives etc. So it detect position of the notebook x y z and  here you go see it for your self.

YouTube Preview Image 

 

get the game 

No Comments

$100 laptop for every child

  nigerian-machine.jpgI am sure most of you have heard about $100 notebook, Me too , i have seen some pictures and i must say that i would buy it for my kids ( or maybe me!?) as well! But image the happy Africans or Asian kids hardly seeing modern technology words, when they get LAPTOP from their school and they can play with it and potentially hack into it! I am aready exited for them! I love this project, hopefully it make heaps of people (the little ones) happy , check the site out

No Comments

linux xgl


YouTube Preview Image

No Comments

CapsOFF & Piss oFF Caps lock

I found great and fun site & petition, those guys are annoyed too much by Caps Lock Key and they do not wish to be there any more ever! I support them! What is this key for anyway? What is the last time you have used it (not accidentally) ? 

 http://capsoff.org/

Petr 

No Comments