Archive for lipiec, 2008

Jak wyłączyć kontrolę konta użytkownika w Windows Vista?

wtorek, lipiec 29th, 2008

Kontrola konta użytkownika - czy na pewno nie jesteś wielbłądem?

Jedną z najbardziej denerwujących rzeczy w Windows Vista jest “Kontrola konta użytkownika” - wyskakujące co chwila okienko pytające czy na pewno jesteś tym kim jesteś i czy na pewno chcesz zrobić to, co przed chwilą kliknąłeś.

Teoretycznie - taka weryfikacja powinna uniemożliwić dostęp do plików systemowych aplikacjom, których nie autoryzujesz (np. wirusom, itp.). W praktyce zupełnie się to nie sprawdza, stąd częste pytania czy da się to cholerstwo wyłączyć… Całe szczęście, że twórcy Visty pozostawili taką furtkę.

1. Otwieramy Panel Sterowania ( menu Start > Panel Sterowania ), wybieramy tam “Konta użytkowników”:

2. Wybieramy opcję “Włącz lub wyłącz funkcję Kontrola konta użytkownika”

3. Odznaczamy pole “Użyj funkcji …” i klikamy OK.

4. Restartujemy system i voila! Koniec z denerwującym okienkiem!

Thinking Sphinx as Windows service

sobota, lipiec 12th, 2008

If you use Windows (as I do) and Rails plugin thinking_sphinx you may find it annoying to open the console and type “rake ts:start” every time you restart your system (and this happens a lot :)). That’s why I’d like to run it as Windows service.

Sphinx has the ability to install itself as Windows service:

searchd --install --config c:\sphinx\sphinx.conf

Unfortunately thinking_sphinx plugin does not support it, so here’s Thinking Sphinx for Windows - a batch of simple rake tasks dedicated for Windows users. Now you can:

rake thinking_sphinx:service:install

It basically does two things - installs Windows service using thinking_sphinx configuration file and starts the service (NET START searchd). Other tasks are (obviously):

rake thinking_sphinx:service:delete
rake thinking_sphinx:service:start
rake thinking_sphinx:service:stop
rake thinking_sphinx:service:restart

Like in thinking_sphinx, there are shortcuts with rake thinking_sphinx:service: becoming just tsw: (so it takes short and sweet rake tsw:install to install & start the service).

Installation: just download the file and unpack it into vendor/plugins directory of your Rails project. You still have to have thinking_sphinx installed! Have fun.