Archiv

Archiv für April, 2008

[VIM] Tip

21. April 2008

Hi there,

guess you have a python file, filled up with tabstops and now someone comes in and tells you, that tabstops are uncool and overall indenting should only use 4 spaces.

With vim no problem:

:set tabstop=4
:set expandtab
:retab

Done! Greetings to PhiBo ;-)

Bye
Sven

linux

OCS Inventory

17. April 2008

Hi there,

today I tried to install OCS Inventory – an Open-Source tool for inventoring your PCs with mostly all data they provide. It took some time to figure out how to install the server in Scientific Linux 5, but after all – I got it ;-) Mehr…

linux ,

[Bash] Remaining Battery Power as Prompt

14. April 2008

Hi,

as seen at my pal Philipp, I also wanted to see the current battery power in the bash prompt. So here is a script which works fine on my X60s.

#!/bin/bash

REMAIN=`grep "remaining capacity" /proc/acpi/battery/BAT0/state | sed 's/remaining capacity:\(.*\)mWh/\1/'`
FULL=`grep "last full capacity" /proc/acpi/battery/BAT0/info | sed 's/last full capacity:\(.*\)mWh/\1/'`

echo $[ $REMAIN * 100 / $FULL ]

Just save it for example in your home directory as bat.sh and make it executable with ‘chmod +x bat.sh’. Then edit the .bashrc file in your home dir and add the following line at the end:

PS1='[`~/bat.sh`%] \W> '

The \W is some preference from me, to see only the directory I’m currently in and not the whole path.

Bye
Sven

linux ,

Hacking Digital Cameras

13. April 2008

Hi there,

I just red an article on the german website heise.de about hacking Canon Digital Cameras. The project is called CHDK. Sounds really interesting to enhance the features of a standard camera. The only problem… I have a Casio ;-)

Bye
Sven

programming ,

Just too cool :-)

12. April 2008

Hi,

just run the following and enjoy the movie in ASCII art (its Star Wars…):

telnet towel.blinkenlights.nl

Bye
Sven

entertainment

Windows XP für X60s von Cyberport

11. April 2008

Hi,

da ich mir den X60s von Cyberport zugelegt habe (war ein Schnäppchen mit 2GB RAM Upgrade), habe ich natürlich auch gleich das Linux meiner Wahl (http://www.ubuntu.com/) installiert.

Da ich jedoch auch das Windows XP Professional hin und wieder nutzen möchte (bspw. zum Testen wie eine Website im Internet Explorer aussieht) wollte ich dies natürlich wieder installieren – Pustekuchen!

Scheint irgendsoeine OEM Geschichte ohne Happy End zu sein.

Mal sehen was der Cyberport-Support auf meine (zugegeben) naive Anfrage schreibt. Hauptsache ich hab das XP jetzt nicht umsonst mitbezahlt, nur weil ich es vorher hätte “backuppen” müssen.

Hier meine Anfrage:


Es ist mir nicht möglich, mit dem am Laptop klebenden XP Lizenzsticker, eine normale XP Professional CD zu installieren. Der Key wird nicht akzeptiert. Kann es sein das der Sticker gefälscht ist? Oder gibt es eine andere Möglichkeit, XP wieder zu installieren. CDs wurden nicht mitgeliefert.

Mal sehn was rauskommt. Für Tipps wie ich das lizensierte XP wieder auf den Laptop bekomme bin ich natürlich dankbar :-)

Tschau
Sven

zwickau

Sipgate FFX für Firefox 3

11. April 2008

Update: Pete hat mir geschrieben das es eine neue Version für den Firefox 3.x gibt. Die Doku dazu gibts bei Sipgate und das Add-On dann über die Mozilla Seite.

Hallo,

vorweg: der Support von Sipgate ist wirklich fix. Anfrage 10:09 Uhr via Webinterface gestellt, 10:12 Uhr kam die Antwort.

Leider jedoch eine negative. Momentan gibt es bei Sipgate keine Version die mit dem neuen Firefox kompatibel ist (nicht mal eine Testversion). Da dieser jedoch bei Ubuntu Hardy standardmässig dabei ist und ich als Beta-Tester mitmache, ist das etwas schade. Abwarten und (Kaff|T)-ee trinken.

Tschau
Sven

misc ,

Grandstream GXP 1200 und T-Online

2. April 2008

Hi,

es hat mich etwas Zeit und Muehe gekostet, das GXP 1200 mit T-Online zum Funktionieren zu bewegen. Dank des VoIP Forums und Nutzer lango hat es schlussendlich geklappt.

Hier meine Einstellungen:

Account active: yes
Account name: Telekom
SIP Server: tel.t-online.de
Outbound proxy: (leer)
SIP User ID: (T-Online Telnr... 032xxxxxxxx)
Authenticate ID: (bei mir der erste Teil der Emailadresse vorm @)
Authenticate Password: (T-Online SIP Passwort)
Name: (T-Online Telnr... 032xxxxxxxx)

Use DNS Srv: Yes
User ID is Phone Nr: No
SIP Registration: Yes
Unregister on Reboot: Yes

Register Expiration: 15
local SIP Port: 5070
SIP Registration Failure Retry Wait Time: 20
SIP T1 Timeout: 1 sec
SIP T2 Interval: 4 sec

SIP Transport: UDP
Use RFC3581 Symmetric Routing: No

NAT Traversal (STUN): Yes
Subscribe for MWI: No
PUBLISH for Presence: No
Proxy-Require: (leer)
Voice Mail UserID: (leer)
Send DTMF: via RTP (RFC2833)
Early Dial: No
Dial Plan Prefix: (leer)
Delayed Call Forward Wait Time: 20

Enable Call Features: Yes
Cal Log: Log all Calls

Session Expiration: 180
Min-SE: 90

Caller Request-Timer: No
Callee Request-Timer: No
Force Timer: No

UAC Specify Refresher: Omit
UAS Specify Refresher: UAC

Force INVITE: No
Enable 100rel: No

Account Ring Tone: system ring tone

Send Anonymous: No
Anonymous Method: Use From Header
Anonymous Call Rejection: No
Auto Answer: No
Allow Auto Answer By Call-Info: No
Turn off speaker on remote disconnect: No

Check SIP User ID for INVITE: No
Refer-To Use Target Contact: No
Disable Multi Media Attribute in SDP: No

Prefered Vocoder: 1. PCMU, 2. PCMA, 3. G.723.1, 4. G.729A/B, 5. G726-32, 6. iLBC, 7. G.722 (wide-band), 8. GSM

SRTP Mode: Disabled

Special Feature: Standard

Viel Erfolg, Sipgate einzurichten war da wesentlich einfacher, zumal dort gleich passende Beschreibungen vorhanden waren.

Tschau
Sven

voip , ,