Photoshop online

September 11th, 2011 No comments

Was looking for a tool to quickly edit some picture at work – http://pixlr.com/editor/ is all you need.

Categories: General Tags:

Notify on cbr.ru rates change

June 28th, 2011 No comments

script for cron:

#!/bin/bash
TOMMOROW=$(date +"%d.%m.%Y" --date="next day")
touch /var/tmp/cbr.log # just so that it exist
curl http://cbr.ru/currency_base/D_print.aspx?date_req=01.01.2099 |\
sed 's/Курсы валют за 01.01.2099 не зарегистрированы\.//' |\
sed '/<!--/,/-->/d' |\
sed '/<script/,/<\/script>/d' > /tmp/cbr.html

if [ -z `cat /var/tmp/cbr.log | grep "$TOMMOROW"` ]
then
   if [ -n `cat /tmp/cbr.html | grep "$TOMMOROW"` ]
   then
      echo "$TOMMOROW" > /var/tmp/cbr.log
      echo "Курсы во вложении"| mutt me@example.com -s "ЦБР обновил курс!" -a /tmp/cbr.html
   fi;
fi;
Categories: General Tags:

zip individual files recursively

January 26th, 2011 No comments

Zip up every fb2 file in a book collection to save some space since reader can read them from zip files anyway:

my zipbooks.sh:

bookroot=`pwd`;
find -type d | while read DIR
do
	cd "$DIR"
	find -type f | grep fb2| grep -v "zip"| while read FILE
		do
			zip -mj9 "$FILE.zip" "$FILE"
		done
	cd "$bookroot"
done

edit: Haven’t tested it, but should do the same:

find . -type f -execdir zip '{}'.zip '{}' \;
Categories: General Tags:

The surprising truth about what motivates us

July 21st, 2010 No comments

Categories: General Tags:

Range check 3.3.5 Proof of concept code – AVR style.

July 5th, 2010 No comments

eRange_PoC

- Range setting taken from DBM /range – need to set it first.
- Friendly nameplates and overlapping nameplates has to be enabled for this to work, however there is a code that tries to hide everything, but name.

For those who will QQ that blizz will now break something else because of this – I believe that having an opportunity for the addon to exist only means that someone will eventually use it and keep it private to gain advantage over those who can’t make their own version, therefore releasing this to keep the balance of the force.

Everyone is free to to improve it and add some boss mods.

I’d be happy if someone would just write functions to determine Camera position from 2+ friendly nameplates on screen and make AVR work again.
I realized I don’t remember math that well anymore and it might take me few days to get back on track with those matrix transformations >:(

p.s. Code is a quick hack, so it is probably messy. There is no OnUpdate throttling – it doesn’t seem to affect my fps even in raids, cba.

Categories: Addons, World of Warcraft Tags:

Wii Sex

March 6th, 2010 No comments

Categories: General Tags:

Win7 Activation

March 4th, 2010 No comments

Looks like MS deployed some patch today (KB971033 it seems) that fixed windows activation with loader. This gets you back in action:

http://hazarforums.49.forumer.com/viewtopic.php?f=5&t=61#p394

Categories: General Tags:

Remi Gaillard

January 15th, 2010 No comments

I was bored at work looking what to do I’ve noticed a friend of mine staring at his screen and couldn’t stop giggling. He pointed me to this guy and his videos.

A compilation to get an idea, but I strongly suggest watching other ones:

Categories: General Tags:

Funny WoW ad parody

January 15th, 2010 No comments

Categories: General Tags:

The Website Is Down- Sales Guy vs. Web Dude

September 7th, 2009 No comments
Categories: General Tags: