Archive for the Category 'internet'

Verfügbarkeit Facebook

Friday, September 24th, 2010

Ist Facebook für 2.5 h nicht erreichbar, schafft es diese Neuigkeit gleich in die Zeitung. Die Abhängigkeit ist gross und die Ausfallszeit scheint lange.

Klar, es hat niemand ein Anrecht auf die Verfügbarkeit von Facebook. Im Geschäftsalltag werden vielfach Verträge für kritische Dienste mit prozentualen Verfügbarkeiten abgeschlossen. Im Grunde genommen hat man das beim ADSL auch. Die meistens garantierte Verfügbarkeit “Best Effort” ist eine Übersetzung nicht wert.

Betrachtet man eine Verfügbarkeit von 99.9% scheint das hoch. Aufs ganze Jahr wird aber eine Ausfallszeit von fast 9 Stunden toleriert. Einen Arbeitstag ohne Email oder ERP? Kaum vorstellbar.

Zurück zu Facebook: Nimmt man an, dass in diesen 2.5 h 50 Millionen Besucher je 10 Rappen an Werbeeinnahmen generiert hätten, dann hat Facebook 5 Millionen Franken in den Sand gesetzt. Und das wäre nur ein Faktor, vielleicht weitaus schlimmer, aber nicht bezifferbar ist der Imageschaden.

Hochverfügbarkeit ist eine komplexe und teure Angelegenheit. Grund genug ab nächster Woche der Sache beruflich nachzugehen.

Offline Wikipedia and unicode support

Tuesday, January 26th, 2010

There is an excellent tutorial which describes the procedure to get an offline version of wikipedia. The description can be found here Building a (fast) Wikipedia offline reader (download the all in one file, plus the mediawiki_sa.tar.7z and un7zip it, run the Makefile). The big wikipedia file can be downloaded from here Wikipedia database download

It works pretty straightforward.

The problem which I faced was with the typical German umlauts like ä,ö,ü. If you enter Pfäffikon (my hometown) than you get a nice exception. Of course there is a solution for this problem (have a look for the modified views.py file on the first mentioned site). But because of the lack of internet I solved the problem by myself.

Here the short explanation:
The script receives the HTTP Data in unicode but uses it with the default encoding of Python. The default encoding can be displayed by printing sys.getdefaultencoding(). On my Debian machine it was ascii. So the script tries to change the Umlauts from unicode to ascii, which can’t work.

Two solutions:
Either you add two lines to the file (/etc/python2.5/sitecustomize.py) and set your default encoding to UTF-8
import sys
sys.setdefaultencoding('utf-8')

or

you do the following in the views.py file:
After line 7 (def article(request, article):)
add
article = article.encode('utf-8')
and
replace the line 71 (searchData = request.GET['data'])
with the following line
searchData = request.GET['data'].encode('utf-8')

Now the offline Wikipedia reader should handle umlauts properly

Skype mit alsamixer auf einem T60

Monday, September 21st, 2009

Alsamixer ist nicht leicht zu bedienen und damit das Mikrofon über Skype funktioniert muss einiges eingestellt werden.

Bei mir hat es mit diesen Einstellungen funktioniert.

  • alsamixer in der Konsole aufrufen
  • Pfeiltaste links, bis zum Mic auf 60 stellen
  • M drücken, so dass Mic eingeschalten ist
  • Wechseln zu Mic Boost auf 33 einschalten
  • Mit Tabulator in Reiter Capture wechseln
  • Mic auswählen und Space drücken (es erscheint rot L R CAPTUR)
  • Capture auswählen und Space drücken (es erscheint rot L R CAPTUR)
  • Capture auf 47 stellen
  • Wechseln nach Digital und auf 70 stellen
  • Mit diesen Schritten hat bei mir die Konfiguration funktioniert. Die Soundqualität ist noch nicht die beste, da muss man ein bisschen mit den Parametern spielen.

    imapsync

    Monday, July 27th, 2009

    Die Zeit kommt näher und ich verlasse diesen Kontinent. Das bringt einige Umstellungen in meiner Serverlandschaft mit sich. Mein Mail- und Webserver, der in der Waschküche vor sich hinwerkelt und an einem minderwertigen ADSL-Anschluss hängt, hat ausgedient. Es wird alles zu einem Schweizer Provider gezügelt.

    Für den Mailaccount ist das Tool imapsync ein Traum. Es bietet vielfältige Möglichkeiten, um Mails zwischen zwei Konten zu synchronisieren.

    Nach 5 Stunden Synchronisation waren alle Mails auf dem neuen Account. Irgendwann in den nächsten Wochen wird dann definitiv umgestellt und in der Waschküche kehrt Ruhe ein.

    Zoneedit down?

    Monday, March 02nd, 2009

    Seit heute Morge komme ich nicht mehr von aussen auf meine Server. Nun bin ich zu Hause und suche den Grund. Meine Domain betreibe ich über Zoneedit, was eigentlich ziemlich gut geklappt hat.

    Die Situation ist nun folgende: Ich kann meine dynamische IP bei Zoneedit eintragen, bzw. eintragen lassen (mit ddclient). Im Webinterface zeigt es die eingetragene IP an. Die DNS Server, welche für meine Domain zuständig sind, stellen sich dumm. Sie beantworten die gestellten Requests nicht mit der eingetragenen IP Adresse, sondern mit irgendeiner anderen.

    Was kann ich tun? Nichts.

    Warten vielleicht und mein Zimmer aufräumen :(

    Wenn Du diesen Eintrag liest, dann funktioniert es bereits wieder :) oder du hältst dich unerlaubterweise in meinem Netzwerk auf ;)

    SMTP Relay Checker

    Sunday, January 04th, 2009

    Unter http://www.rbl.jp/svcheck.php findet man einen Test, welcher den mitgegebenen Server auf Mailrelayfunktionen überprüft.

    Kapo ZH Suche = Kuhbild

    Tuesday, December 30th, 2008

    Der 25. Chaos Communication Congress ist durch und die cheiben Hacker haben es auch auf die Kantonspolizei Zürich abgesehen.
    Dem Suchfeld kann man scheinbar beliebige Bilder übergeben.
    Das Beispiel unter dieser URL:25C3
    Und meine Spielerei hier:
    Kuh
    oder
    Affe

    Viel Spass :D

    DNS Sackmesser

    Tuesday, December 02nd, 2008

    http://www.dnsminer.com/

    ddclient und Zoneedit

    Tuesday, June 03rd, 2008

    Mitten in den Ferien lag mein Email ab. Wieso? Die Antwort und Lösung findet man hier: http://www.held.org.il/blog/?p=63

    Webcalendar with Lightning and Webdav

    Thursday, April 10th, 2008

    My motivation for this how to is to leave the google calendar. This because I want to reduce the data which I spend to google.

    Preconditions
    Working webdav server
    ics File of your google or whatever calendar

    Install phpicalendar
    First of all we install phpicalendar to view the calendars in the webbrowser.
    The steps:
    - Download
    - Extract
    - copy the phpicalendar directory into your webdav directory of the webserver
    - The directory structure should look like this:

    http://www.server.com/webdav/

    http://www.server.com/webdav/calendar <= all phpicalendar stuff
    http://www.server.com/webdav/calendar/calendars/ <= space for your calendars
    - rename the configuration file to config.inc.php

    Create a calendar in Lightning
    Do a right click below the Calendar in Lightning and choose New Calendar
    The new Calendar is on the Network
    Next
    Format iCalendar (ICS)
    Location http://www.server.com/webdav/calendar/calendars/newcal.ics (for exampel)
    Next
    Name and Color … whatever you want
    Next
    Finish

    Do a right click on the new created calendar and choose Publish Calendar. You need permission to write on your webdav server.
    Publishing URL: same URL as above
    Click on Publish
    After a few seconds the new calendar is created on your server
    Close the window

    Now copy your backup ics into your calendars directory on the webdav server. Name the file exactly as the new created (for example newcal.ics). You can reload your calendar in lightning (left click on the calendar -> Reload Remote Calendars). The events from your backup ics should appear.

    When you create a new event, this event should be automatically uploaded to your webdav server. May be, there are some problems with the permissions (in this case, check if the webserver has rights to write the calendar file).

    Nice Features
    If you want to read your calendars offline, there is a check box in the properties of each calendar. You can check this, but be aware, that this feature is still experimental.

    When your tasks are attached to a calendar you have already uploaded, the tasks are visible in phpicalendar. Are your tasks in a own calendar, just do the steps above.

    After this how to you can definitely say goodbye to the google calendar.