CategoryEnglish

Vacation in Bulgaria

Why you should avoid Bulgaria for your vacation.

  1. If you reserve an apartment or house this doesn’t mean that you will stay for the whole period of the reservation. Also the prices are changing every day and you will be nice surprised that you must pay more at the end of your visit just because the neighborhoods have been rised the prices.
  2. The restaurants are awful, all of them know that you would not return, so they serve outdated food and behave with you like scum.
  3. The car driving is dangerous because there are no rules on the roads. No cops are looking for the law, at least they are sitting in the shadow and feeling well while a few meters of them is happening situation.
  4. There is no normal roads in Bulgaria you will break your car or amortize it with 5 years for a single trip.
  5. The beach is dirty. The sea is dirty and crowd. Newer hotels that are build at the seashore have thrown their rubbish at the sea, and you will find with the sand some terracotta pieces etc.
  6. The ski lifts are expensive and crowded, you pay, and then wait on big tail go get on the lift.
  7. Skiing pists and Sea hotels are build on protected territories which becomes dirty and crowded in a few months.
  8. The prices on the holiday resorts in Bulgaria are doubled for foreigners and to keep the native citizens away.
  9. People are not nice. It is a fake legend that the Bulgarians are nice housekeepers.
  10. If you plan to use taxi you will be 100% cheated if you don’t speak Bulgarian.

Please share with me your experience with your vacation in Bulgaria, negative or positive.

more here

Dagens PS and PS Spy

We have launched the website PS Spy. It is a news monitoring website. The website is written using Ruby on Rails, MySQL and Python code and a little bit Java on some key parts.

I am very pround of the webhunter and the accuracy with which we find and deliver news.

Maybe it is good idea to launch a toolbar, we have developed many toolbars for our clients and we have a lot experience in this field, there are free solutions on Internet also.

Here is what the internet says :)

http://www.ifra.de/website/news.nsf/wuis/2247F329A7D9498AC12574BE0049E98E?OpenDocument&0&E&

Hacking Tools

Hack distributions

  • BackTrack is the most Top rated linux live distribution focused on penetration testing.
  • NST
  • Steganos Hacker Tools here ->
    (E-mail: www@serials.ws Name: www.serials.ws Serial: 50GWR0N-F71A39F)

    <- hidden text here

Metasploit

TOP100 tools

exploit search list – > http://milw0rm.com/links/

Benchmarking web application

Load test with tsung – a erlang project. The nice stuff is that the test can be runned on multi machines which will do the tests. Works with proxy. I think it is very nice idea to test it on my next load test.

http://tsung.erlang-projects.org/

Source code websites

http://www.refactormycode.com

http://snippets.dzone.com/tag/split

http://www.splunk.com

Articles: http://thedailywtf.com/

Firefox is not a browser – it is OS !

I want to add two check-marks under this link from the Firefox website. In case the link is outdated here is an  to get for what I am talking about.

My theory is that Firefox is an Operating System :)

  1. It boot like OS (I mean slow)  – X for Firefox, V – for IE
  2. It takes huge memory (like some modern OS)   – X for Firefox, V – for IE
  3. With Firefox you can browse less pages than with an IE/other browser – X for Firefox, V – IE
  4. I asked google two queries (sorry FF) :
    1. why ie is better than ff 
      –  Results 1 – 10 of about 11,300,000 for why ie is better than ff. (0.37 seconds) 
    2. why ff is better than ie
       – Results 1 – 10 of about 11,200,000 for why ff is better than ie. (0.32 seconds) 
Now the result is little bit changed.

 

Rails caching notes

General Notes

Very nice tutorial for rails 2.1 caching.

API references: Fragments, Sweepers, the Store

Post how to move the page cache in a folder with some server examples

Observing Controllers with Sweepers

Here is described how you can use the Sweepers to observe controller actions. I totaly agree that the documenation is very bad on the sweepers and it is like a rule book of MTG than usefull rdoc.

Here is what I have found on the naming of the callbacks.

Checking the source code in sweeping.rb shows that the callbacks that are used for the controller are constructed in this way:

controller_callback_method_name = "#{timing}_#{controller.controller_name.underscore}"
action_callback_method_name = "#{controller_callback_method_name}_#{controller.action_name}"

This means that the method which will be called in the sweeper will be named

  • after/before_user – for the controller UserController
  • after/before_user_login – for the action login in the controller UserController

Here is an example.

class Dagens::UserController < Dagens::BaseController
  cache_sweeper DagensAgentSweeper, :only => [:do_login, :do_delete_account, :do_logout]
  def do_login
  end
  ....
end

class DagensAgentSweeper < ActionController::Caching::Sweeper
  observe DagensAgent

  def after_user_do_login
    puts "after do login \n \n \n \n \n \n \n "
    expire_cache_for(@logged_user)
  end
end

Skipping callbacks from an observer

I know that it is not good idea, but some times there is no time/way to do skip it. I have found a plugin and this post here. I have choose to use the second one in my project. Here is the example

class DagensAgentSweeper < ActionController::Caching::Sweeper
  observe DagensAgent

  def self.skip_callback(callback, &block)
    method = instance_method(callback)
    remove_method(callback) if respond_to?(callback)
    define_method(callback) { true }
    result = yield
    remove_method(callback)
    define_method(callback, method)
    result
  end
........
end

And later in the controller….model…

      DagensAgentSweeper.skip_callback(:after_update) do
        @agent.shown_times += 1
        @agent.save
      end

timed_fragment_cache

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

I have notice that timed_fragment_cache (or the patch) have a problem with expiring the cache from the controller. In the documenation it is stated that it is ok to expire the cache only in the controller with

when_fragment_expired  "_last_update",  Time.now + 1.minutes  do

and there is no need to expire it in the view, but you MUST expire it in the view.

cache "_last_update" do

must be

cache "_last_update", Time.now + 1.minutes  do



		
	

Bash tips and tricks

Nice quick bash book

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html (loops)

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

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

Display timestamp

date -d @1231351762

Nginx with Rails

downloaded from here
documentation here
If you want to try different solution check it haproxy Continue reading

Semantic web

http://www.powerset.com/

http://www.trueknowledge.com/

http://www.spock.com/

good blog (bg)

lecutre in bg

Forum based search engine http://www.omgili.com/

© 2024 Gudasoft

Theme by Anders NorénUp ↑