Philipps Blog


2009/03/29  Preparation for counter update

Filed under:PHP,Snippets,Tech — philipp @ 1:39 am

So after a long time i plan to give my counter-engine (^^) an update.
The main Problem is, that the counter itself was perfect for ~2000 counts. But now with 5000 count, the presentation of the results is just not readable anymore.
So i plan the following things to do during the next days (i hope i will finish this during tomorrow):

  • using a new drawing method: instead of drawing the whole graph, i will draw just time-slices of a particular periode. So e.g. if you want to plot the current graph with this method, it would be necessary to draw 24 slices with a month periode.
  • to get read of lots of code within the counter/presentation script, i want to use the build-in date-calculation functions of mysql.
    So e.g.
    SELECT something FROM `counts` WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;
    Should be perfect :-) .
  • To use this functions, i have to use the build-in datetime Datatype. At the moment i am storring all counts with a unix timestamp. To make the move, i have to do three steps:
    1. creating a new field: ALTER TABLE `counts` ADD `created` DATETIME NOT NULL;
    2. migrate the old dates: UPDATE `counts` SET created = from_unixtime(unixtime);
    3. finally i had to change to insert statement within the counter script:
      “INSERT INTO `counts` ( … user_string, created) VALUES … ‘”.$user_string.”‘, NOW()) “;

More next time…

  http://askaninja.com/piratebay…

Filed under:Personal,Video — philipp @ 12:26 am

http://askaninja.com/piratebay great show.

2009/01/11  what to do, if you locked yourself out from Mac OS?

Filed under:Mac,Personal,Snippets,Tech — philipp @ 1:32 pm

Yesterday I found myself in a strange situation:

Every Shell Command I tried to use ended up with a “command not found“. This happened with sudo, nano … you name it.

After a short time, I figured out that the folder /usr/bin (where all these programs are stored) had only executable rights for the owner (so admin:wheel).

As a normal user I was not able to use them.

So how to change this if you cannot sudo ?

As always in MacOS, the best way to fix this, is to boot into Singe User Mode (restart and press the Apple/Command Key + “S”).
After you got into the Terminal view you have to scan the filesystem for errors:

/sbin/fsck -fy 

And then remount it as writable:

/sbin/mount -wu /

Now, you can alter the user rights for /usr/bin with:

chmod 755 /usr/bin

After a reboot you are again able to execute the commands.
If you still have problems you should control your PATH-settings.

echo $PATH 

It should contain /usr/bin near the beginning.

2009/01/03  Nachlese: 25C3

Filed under:CCC,Geek,Personal,Video — philipp @ 3:43 pm

Guten Tag Welt,
Hello World,

I wish you all the best for the future and a great year 2009!


Heute mal wieder was auf Deutsch.
Today again in german!

 

Zum Ende des Jahres 2008 habe ich mit einem Kollegen den Chaos Communication Congress in Berlin besucht.
Wir waren zum ersten (und definitiv nicht zum letzten) Mal dort.
Anfangs ein paar grundlegende Tipps um dort zu überleben:

Essentiell wichtig ist es, für die eigene Infrastruktur zu sorgen:

1. Mehrfachstecker (mindestens 6-fach, besser noch mehr).
2. Netzwerk-Switch – je mehr Anschlüsse man über hat, desto eher kann man sich wo anschließen.
3. Eine externe Festplatte (am besten 2,5″ mit USB-Stromversorgung, da der Strom zeitweise ausfiel und so die Festplatte vom Laptop Strom erhalten kann)
4. Laptop oder Netbook (das scheint wirklich der Trend zu sein in diesem Jahr)
5. Gute und bequeme Kopfhörer (es werden alle Vorträge im Netz übertragen, sodass man diese auch gut am Laptop verfolgen kann)

Das waren so die Dinge, die mir aufgefallen sind.
Letzendlich waren es _VIELE_ Menschen in dem kleineren BCC.

Bei den meisten Vorträgen musste man schon sehr früh innerhalb des Vortragsraumes sein.
Die Vorträge waren durchgehend sehr informativ und auch durchgehend auf hohem Niveau.
Ich habe wirklich sehr viele Anregungen mitgenommen.
Interessant war es, zeitgleich die Reaktionen der deutschen News-Portale mit zu verfolgen…

Also…. dieses Jahr fahre ich wieder hin!…. Aber deutlich besser vorbereitet :D .

Abschließend noch ein Video von dem “DDoS-Angriff” auf Dunkin’ Donuts:

2008/10/17  Safari, Spotlight Craches after Timemachine Restore

Filed under:Mac,Personal,Tech — philipp @ 2:05 pm

So i almost gave up with solving some strange Software Crashes
For Example:

Spotlight wasn’t active. There was even no Spotlight icon.
Safari Crashes when i type the second word into a google search field.

After a while i browsed through my folder-tree and so i detected, that the tmp folder.
I remember that i set /tmp to be excluded during TM-Backups so save so Disk Space.
So after i restored this folder with

   cd /
   sudo ln -s /private/tmp /tmp
   sudo chmod 1777 /tmp

everything works fine again. IMHO it is a bug in the TM-System-Restore Workflow.

Blogged with the Flock Browser

2008/10/11  Subversion in a nexenta zone

Filed under:NAS,nexenta,Tech — philipp @ 11:44 pm

To sort Things out, i will use another feature of Nexenta (OpenSolaris): Zones.
So i am sure, that my Subversion Server is in its own enviroment and has its own ip.

There are two great howtos:

1. Creating a New Zone in Nexenta
2. Installing SVN 1.4 in a Nexenta Zone

I am almost done with backing up all my stuff.
I really hope to improve the network performance with a hardware upgrade :-) .

Blogged with the Flock Browser

2008/08/31  Nexenta iSCSI Target Setup

Filed under:NAS,nexenta,Personal,Snippets,Tech — philipp @ 5:48 pm
root@sunny:~# zfs create tank/home
root@sunny:~# zfs create tank/home/philipp
root@sunny:~# zfs create -V 250M tank/home/philipp/TM
root@sunny:~# zfs set shareiscsi=on tank/home/philipp/TM
root@sunny:~# iscsitadm modify target -p 1 tank/home/philipp/TM
root@sunny:~# zfs list
NAME                             USED  AVAIL  REFER  MOUNTPOINT
syspool                          689M  16.6G    23K  none
syspool/rootfs-nmu-000           688M  16.6G   641M  legacy
syspool/rootfs-nmu-000@initial  47.3M      -   631M  -
tank                             250M  1.34T    21K  /tank
tank/home                        250M  1.34T  27.5K  /tank/home
tank/home/philipp                250M  1.34T    27K  /tank/home/philipp
tank/home/philipp/TM             250M  1.34T    24K  -
tank/media                        18K  1.34T    18K  /tank/media
root@sunny:~# iscsitadm list target -v
Target: tank/home/philipp/TM
    iSCSI Name: iqn.1986-03.com.sun:02:f683c44e-e774-c018-9f6f-89ef914db75b
    Alias: tank/home/philipp/TM
    Connections: 0
    ACL list:
    TPGT list:
        TPGT: 1
    LUN information:
        LUN: 0
            GUID: 0
            VID: SUN
            PID: SOLARIS
            Type: disk
            Size:  250M
            Backing store: /dev/zvol/rdsk/tank/home/philipp/TM
            Status: online

(via Solaris iSCSI Target with ESX 3.02 Server)

Blogged with the Flock Browser

  Sunny-Notes

Filed under:NAS,nexenta,Tech — philipp @ 5:17 pm

Network-Driver:

myamanet-vel (2.6.0)
Driver for VIA VT6122 GbE chipset
myamanet-vfe (2.6.2a-1)
Driver for VIA Rhine family fast ethernet chipset

iSCSI-Update [1]

To be continued….

Blogged with the Flock Browser

  Sunny Setup Part 1

Filed under:NAS,nexenta,Personal,Tech — philipp @ 5:09 pm

Neues Wochenende, neues Glück :-) .

Ich habe mittlerweile auch die anderen Betriebssysteme durch:

FreeBSD:
Obwohl dies einer meiner Favoriten war, werde ich nicht FreeBSD einsetzen. Die ZFS-Unterstützung ist teilweise noch erschreckend.
Ohne angepassten Kernel gibt es wohl noch des öfteren Kernelpanics. Weiterhin scheint bei dem FreeBSD-Projekt selber nach einer Umstellung des Packet-Servers auf ZFS
ein paar Probleme aufgetaucht zu sein.
pro:

  • Sehr schmale Installation möglich.
  • Unterstützung der eingebauten Encryption-Hardware (siehe VIA-Eden-Plattform)
  • Unterstützung von encrypted devices

contra:

  • Warnmeldung bei Netzwerkzugriffen (Packet lost/Packet Timeout)
  • ZFS ohne “Kernel-Hacking” nicht ausreichend stabil.

Zu Milax ist nicht viel zu sagen. Es ist scheint für einen kleineren Desktop eine gute Wahl zu sein (graphisch macht es schon etwas her und nutzt nur wenig Ressourcen).
Für einen Server ist es aber wohl wenig geeignet. Es gibt zwar eine spezielle Server-Version, allerdings ist auch hier die Unterstützung der VIA-NICs nicht gegeben.

Nachtrag:
OpenSolaris. Da OpenSolaris schon erfolgreich in NAS-Systemen eingesetzt wird [1,2,3], habe ich mir die Developer-Preview von Project Indiana besorg und testweise installiert.
Leider scheint es out of the Box nur möglich zu sein, eine Komplettinstallation mit Gnome usw. durchzuführen. Das ist schade, verspricht der Weg, den Sun mit Project Indiana eingeschlagen hat, doch durchaus vielversprechend zu sein. Aber anscheinend scheint auch hier die Hardwareunterstützungen auf reine Intel/AMD-Systeme beschränkt zu sein.

Nun sitze ich als wieder vor einem Nexenta-System.
Ich bin gerade dabei, ein iSCSI-Target aufzusetzen um dann mal einen aussagekräftigen Wert für die Datenübertragung erhalten zu können.

Blogged with the Flock Browser

2008/08/26  Software Update

Filed under:NAS,nexenta,Tech — philipp @ 1:09 am

Ich hatte mittlerweile etwas Zeit, mich um eine allererste Softwareinstallation meines NAS-Systemes zu kümmern.
Die Grundausstattung des Mainboards ist etwas mau. Es liegt eine CD (mit Treibern und PDF-Handbuch) bei, eine kleine Karte mit der Beschreibung des Lieferumfangs und ein IDE-Kabel.
Die Kabel für die 4 Sata-Anschlüsse muss man sich dann erst noch kaufen.

Was mir bisher auffiel:

  • Das Bios hat eine genial animierte Laufleiste. Erinnert irgendwie an Windows 2000.
  • Das Bios scheint sehr Buggy zu sein – veränderte Einstellungen (wie ein neues Boot-Device) werden nicht abgespeichert.
  • Man erhält beim Starten durch Drücken von F11 ein Startmenü.

Abschließend meine bisherigen Ergebnisse:
Das System ist _SEHR_ leise – bis auf den Lüfter des Netzteiles hört man nichts. Okay das DVD-Laufwerk dann noch.
Die Einschätzung der Geschwindigkeit ist schwierig – dazu später mehr. Als NAS aber denke ich ausreichend.

Software-Tests:

Nexenta Core Platform 1.0.1 (NexentaCore):
pro:

  • Root- (Boot-) Partition ist ZFS-Device.
  • Da ich nur eine schmale Installation gewählt habe (um die 256 MB), kann man mit dem System gut arbeiten.
  • SSH, Sata (RAID im Bios ausstellen) und Netzwerk werden auf Anhieb gefunden.

contra:

  • Niedrige Netzwerkperformance (1-2 MB). Ich denke mal einfach, dass selbst eine 1 GHz CPU sicherlich mehr schaffen wird.

Solaris: Project Indiana – Developer Preview:
pro:

  • Grafischer Installer

contra

  • Größerer footprint (ab 1,5 GB)
  • Netzwerkkarten nicht erkannt
  • Oberfläche sehr langsam

Bisher haben mich beide Systeme nicht wirklich überzeugen können – Schade eigentlich, waren das doch meine Favoriten.
ich werde mich nun befassen mit Milax und FreeBSD.

Vielleicht sollte ich die Tage dann noch ein paar Worte zu meinen Anforderungen an das OS verlieren :-) .

Blogged with the Flock Browser
« Newer PostsOlder Posts »