Rails caching

August 26th, 2008

Very nice tutorial for rails 2.1 caching.

Some patches on the timed_fragment_cache plugin.

Note how Jolyon Says suggest to expire the cache when you have time zone :

when_fragment_expired ‘tags_home_page’, Time.now + 10.minutes do

API references: Fragments, Sweepers, the Store

Bash tips and tricks

August 26th, 2008

How to check if files containt “this” and “that”

grep -i 'for nut in self._foundNuts:' `grep -ril "loop(1):" *`

Microsoft has locked Windows Vista Home to only one language

August 24th, 2008

Great!

One of my friends has bouth a new laptop from USA and I want to change the base language of his operating system to Bulgarian. The Bulgarian language is fully support by Microsoft. My surprise was big when I got the “Only language please…” from the Regional Settings language switcher pane.

I want to use one language but I don’t want English I want Bulgarian. Why I cant switch it?

The solution come from Vistalizator. This software has fixed all my troubles. Now I have two languages on my Windows Vista Home (who said that Vista Home dosn’t support two languages :) ?

Someone has made already forum/topic where you can express what you feel working with Microsoft products.

Magic the Gathering how to build or print deck

August 21st, 2008

Here are my resources.

Magic The Gathering Rule Book

This is THE program for building decks. It is java based so you can use it on your favourite OS (I hope).

You should follow this forum topic or this blog post here. It is not so hard

  • Download and extract a couple of zip files
  • Download the art via ready packages also with the java application from this link
  • Download some decks
  • Change the path to the art directory in the config.txt file
  • Start some of the .bat files from the directory you have extracted all the files
  • Drag & Drop

My first game was with decks from here and here

Post & Get requests

August 19th, 2008

Post using curl

curl  -A ‘Mozilla/4.0′  -F “vote=5&btnSubmit.x=34&btnSubmit.y=14&btnSubmit=%D0%A0%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B8%D1%80%D0%B0%D0%B9″ http://www.germanos-konkurs.com/

Not happy with Wordpress

August 11th, 2008

Dear Wordpress (and authors),

I am not happy that you are releasing versions every month. Read the rest of this entry »

Semantic web

August 5th, 2008

http://www.powerset.com/

http://www.trueknowledge.com/

http://www.spock.com/

good blog (bg)

lecutre in bg

SEO tools

August 4th, 2008

Check the links for a page

http://validator.w3.org/checklink?uri=http%3A%2F%2Fwww.cenite.com&hide_type=all&depth=&check=Check

lowercase the filenames

August 4th, 2008
#!/bin/sh
# lowerit
# convert all file names in the current directory to lower case
# only operates on plain files--does not change the name of directories
# will ask for verification before overwriting an existing file
# http://www.linuxjournal.com/content/convert-filenames-lowercase Read the rest of this entry »

Photo websites

August 4th, 2008

fun pictures - http://thehomebased.com/?p=63