iOS 4 Mobile Data Fix – Fix my iPhone!

Das installierte Swisscom-APN-Profil

Bei mir (und vielen andern auch) verweigerte nach dem Upgrade auf iOS4 die Mobile Datenübertragung den Dienst. Werder 3G noch EDGE waren gewillt, auch nur ein Bit zu übertragen.

Schuld daran sind offenbar falsche APN-Daten.

Für Swisscom-Benutzer habe ich nun dafür ein Konfigurationsprofil erstellt:

Einfach mit dem iPhone http://wona.ch/swisscom-apn.mobileconfig ansurfen, das Profil installieren und gut ist. (Bei Bedarf ev den Flugmodus an- und wieder aussschalten)

Auf Anfrage kann ich auch Profile für andere Mobilfunkanbieter bereitstellen!

Hinweis: Auf einigen iPhones kann man die APN-Daten auch von Hand setzen. Sie sind unter Einstellungen -> Allgemein -> Netzwerk -> “Mobile Daten” zu finden.

Swisscom APN Settings
APN: gprs.swisscom.ch
Benutzername: leer
Passwort: leer
Proxy: leer
iPhone-Profil: http://wona.ch/swisscom-apn.mobileconfig

Orange APN Settings
APN: internet
Benutzername: leer
Passwort: leer
Proxy: leer
iPhone-Profil: http://wona.ch/orange-apn.mobileconfig

Fonic APN Settings
APN: pinternet.interkom.de
Benutzername: leer
Passwort: leer
Proxy: leer
iPhone-Profil: http://wona.ch/fonic-apn.mobileconfig

Congstar APN Settings
APN: internet.t-mobile
Benutzername: t-mobile
Passwort: tm
Proxy: leer
iPhone-Profil: http://wona.ch/congstar-apn.mobileconfig

Tele.Ring APN Settings
APN: web
Benutzername: web@telering.at
Passwort: web
Proxy: leer
iPhone-Profil: http://wona.ch/telering-apn.mobileconfig

E-Plus APN Settings Updated
APN: internet.eplus.de
Benutzername: eplus
Passwort: gprs
Proxy: leer
iPhone-Profil: http://wona.ch/eplus-apn.mobileconfig

A1
APN: a1.net
Benutzername: ppp@A1plus.at
Passwort: ppp
Proxy: leer
iPhone-Profil: http://wona.ch/eplus-apn.mobileconfig

Klarmobil
APN: internet.mobilcom
Benutzername: leer
Passwort: leer
Proxy: leer
iPhone-Profil: http://wona.ch/eplus-apn.mobileconfig

dratir.ch goes Casa di Mama!

Wie vor einigen Wochen berichtet, habe ich mich bei trnd als Produktetester angemeldet. Zugegeben, anfangs war ich skeptisch, je wieder was von trnd zu hoeren, doch heute war es so weit:

trnd / Casa di Mama: Du bist dabei!

Juhu! Ich darf also Fertigpizzas testen! Trifft sich, zumal ich auch zur Generation der chronisch kochfaulen Fertigpizzaindenofenschieber gehöre (grillieren mal ausgenommen).

Als erstes erhält man ein Startpaket:

Casa di Mama Startpaket

Casa di Mama Startpaket

Ich bin wirklich gespannt darauf! Gleich mal ‘ne Pizzaparty ankuenden ;-)

Übrigens: Es sind noch Plätze frei, also nix wie los und anmelden! :-)

Lehrer verteilt aus versehen Pornos

HOMOSASSA, Fla. — A Citrus County elementary student accidentally received a pornographic DVD from her teacher.

The sheriff’s office reports that the girl’s second-grade teacher had made 19 photo CDs for all the students in her class at Rock Crusher Elementary School. The CDs included pictures of the students throughout the year.

But when the 8-year-old girl went to play the disc Tuesday, adults on screen began to take their clothes off. A 12-year-old boy who was with the girl reportedly turned off the movie and told his mother.

Deputies found no pornography on the other 18 discs.

The teacher and her husband told investigators that the husband helped make the discs, and the adult DVD was his.

No criminal charges were anticipated, but the school was doing its own investigation.

Quelle: nwfdailynews.com

Warum zur Hölle ist uns sowas nie passiert? :D

Übersetzung: Eine 2. Klässlerin erhielt aus versehen eine DVD Pornos. Die Lehrerin hatte zuvor Fotos von ihren Schülern gemacht, und wollte diese nun als Foto-CD an die Kinder verteilen. Doch als die 8-Jährige die Disk zuhause abspielte, fand sie statdessen Videos von “Erwachsenen, die sich ausziehen” (Wie süss ^^). Der Ehemann der Lehrerin, welchem die DVD gehört, habe beim mithelfen offenbar die falsche Scheibe erwischt.

Produkte gratis testen mit trnd

trndBisher stand ich solchen Marktforschungsprogrammen eher skeptisch gegenueber. Thias’ Blogeintrag “Produkte gratis testen” auf eigent.li/ch hat mich dann aber doch neugierig gemacht. Hab mich darum jetzt auch mal registriert und mich gleich mal fuer das erste Projekt angemeldet.

Mal schaun was draus wird, ich halte euch auf dem laufenden! Falls ihr euch auch anmelden wollt, koennt ihr dies hier* tun.

*ja, das ist ein Referral Link und schreibt mir 3 “Wombats” (was auch immer das ist?) gut. Fuer euch aendert sich damit nix.

Bash Scripting Tips

Writing Shell (here: Bash) Scripts for productive systems can be a pain in the ass. Especially if you have varios flavors of linux in your environment.

I’d like to share some tricks I’ve learned in the past few weeks.

Make Bash fussy

This is something you REALLY wanna do:
[cc lang="bash"]#!/bin/bash -e
# or
set -e[/cc]
By either Modifying the Shebang or by using the [cci lang="bash"]set[/cci] command, you set Bash into “Fuzzy Mode”. This causes the script to exit whenever a command fails (and thus, the exit-code ist not 0/true).

You can disable this functionality for individual commands:
[cc lang="bash"]command_that_may_fail || true
# or
set +e
command_that_may_fail1
command_that_may_fail2
set -e[/cc]

Activate X-Ray (debug) Mode

[cc lang="bash"][ -n "$DEBUG" ] && set -x[/cc]
This turns -x on if DEBUG is set to a non-empty String and causes Bash to be VERY talkative.
Example. This is our Script:
[cc lang="bash"]#!/bin/bash -e
[ -n "$DEBUG" ] && set -x

w1=”Hello”
w2=’World’

echo “${w1} `echo $w2 | sed ‘s/World/Universe/’`!”[/cc]

And this is what we get:
[cc lang="bash"]dratir@ajax:~$ DEBUG=1 ./test.sh
+ w1=Hello
+ w2=World
++ echo World
++ sed s/World/Universe/
+ echo ‘Hello Universe!’
Hello Universe![/cc]

Get the absolute Path to the Script

This is basically an easy one, you just have to know it:
[cc lang="bash"]script=”`readlink -f $0`”
wdir=`dirname “$script”`[/cc]
However, if you use [cci lang="bash"]pwd[/cci] in your script prior to this call, it will fail

Check for needed commands

When working with many different installations, it’s a good idea to check if you’ve got everything you need in your Script:
[cc lang="bash"]for cmd in command1 install useradd groupadd command2
do
test -x “`which $cmd`”
done[/cc]
Because of -e (remember to set it), the script dies if a command can’t be found or executed.

Prevent infinite loops (and your Server from crashing)

Sometimes you need your script to restart itself. If you do it wrong [...] you may produce an infinite loop of self calling (which will cause your system to fail after the ~20’000st call, and thus, the ~60’000st open file).
So use this instead:
[cc lang="bash"]restart() {
pscount=`ps aux | grep $0 | wc -l` # count myself
[ $pscount -lt 10 ] || exit 1 # Exit if we are in a Loop
$script
# Don’t forget to fill $script with the absolute path to the script (see above)
exit 0 # to prevent the rest of the script to run
}[/cc]