My 2 Cents: € oder $ – in alter Tradition

Der Euro fällt – nun ja – nur gegenüber dem Dollar. Und das – ist erstmal nicht die Bohne tragisch. Außer man hat als Amerikaner in Euro-Land investiert. Dann kann man schon mal die Krise bekommen.

Für einen Euro bekommen wir aktuell 1,23 USD. Das ist innerhalb von ein paar Monaten – schon ein böser verfall.

So – ich werfe aus alter Tradition – mal einen Blick in meine Kristall-Kugel.

Amerikaner: Immer wieder für eine Überraschung gut. Blöd nur – das Krieg führen so viel Geld kostet. Mal schauen ob die Chinesen die US-Schatzbriefe für einen eine Wiederholung des Korea-Kriegs kaufen  satire. Der Amerikaner an sich, ist Spar-Mässig, weit hinter den Europäern.
Die Keyen-Ianer (das sind Anhänger einer Wirtschaftstheorie im Angelsächsischen und in abgewandelter Form bei uns) haben ja aktuell das Zepter in der Hand.
Vorteil gegenüber Europa: Zentrale, handlungsfähige Regierung – Aussicht: ohne neue Kriege – gut.

Europa: Die Geschichte wiederholt sich (Deutscher Zollverein) im Europäischen Stil. Es gilt die egoistischen nationalen Interessen einem größeren nationalem Europäischen Interesse unterzuordnen. Wenn dies gelingt – und die Geschichte zeigt – es hängt zuviel Geld von allen daran – dann wird alles gut. Ob das dieses Jahr gelingt  - wohl eher nicht.
Wirtschaftlich: Ich sehe eine latente Erholung und leichtes Wachstum.

Vorsichtiger Optimismus bei leichtem Sarkasmus – ich prognostiziere hmmm: 1,15 USD pro EUR. Also noch etwas leicht unter dem heutigen Kurs.

Euer Joe

Posted in Allgemein, Deep Thoughts, Just Thoughts, Thoughts about News | Tagged , , , , , | Leave a comment

Iphone als USB-Laufwerk in VMware unter Mac OSx einbinden

Der folgende Heise-Artikel führte mich in Versuchung. Unter VMware kann man USB-Geräte seperat “einschalten”. Im Gegensatz zur Artikel-Darstellung funktioniert dies in der VMware-Umgebung völlig ohne Neustart des Iphones.

Iphone-USB-Verbindung an VMware

Nach dem Einschalten verbindet der “Auto-Mounter” unter Kubuntu das Iphone als “Kamera”.

Auto-Mount des Iphone unter Kubuntu/VMware

Hier sieht man dann die Verzeichnisse die er findet.

Dateiverzeichnis Iphone

Mich würde der Algorithmus interessieren mit dem die Musik-Datenbank verwaltet wird und insbesondere die Benamung der MP3s in die Verzeichnisse kopiert.

Iphone unter VMware als Kamera identifziert

Das Symbol das die VMware Instanz für das Iphone auswählt ist der Kopfhörer (*wunder*).

Posted in Allgemein, Joes Daylies, Joes Tests | Tagged , , , , , , | 1 Comment

SAP BI: Read Masterdata with compounded keys / RSAU_READ_MASTER_DATA

Hi SAP-BI-Folks,

this little template gives you the possibility to read on InfoObjects with compounded keys : I am normaly more a friend of my own Masterdata-Read-Routines – but i think it’s usefull to know:
released as usual under BSD-Licence:

TYPE-POOLS rsd.
DATA:
l_chavl        TYPE rsd_chavl           ,
t_dep_m        TYPE rrsv_t_dep          ,
s_dep_m        TYPE rrsv_s_dep          ,
l_chavl_m      TYPE rschavl             ,
wa_zmy_infoobject   TYPE /bic/mzmy_infoobject.

CLEAR l_chavl.
l_chavl = result_fields-/bic/zmy_infoobject .

CLEAR t_dep_m[].
s_dep_m-chanm     = 'ZCOMPOUND1' .
s_dep_m-chavl_int = result_fields-/bic/zcompound1 .
APPEND s_dep_m TO t_dep_m.
s_dep_m-chanm     = 'ZCOMPOUND2' .
s_dep_m-chavl_int = result_fields-comp_code .
APPEND s_dep_m TO t_dep_m.
s_dep_m-chanm     = 'ZMY_INFOOBJECT' .
s_dep_m-chavl_int = l_chavl .
APPEND s_dep_m TO t_dep_m.

CALL FUNCTION 'RRSV_CHA_VALUE_CONCATENATE'
EXPORTING
i_chanm        = 'ZMY_INFOOBJECT'
i_chavl_int    = l_chavl
IMPORTING
e_chavl_int    = l_chavl_m
CHANGING
c_t_dep        = t_dep_m
EXCEPTIONS
unknown_chanm  = 1
invalid_format = 2
no_input_given = 3
OTHERS         = 4.

REPLACE ALL OCCURRENCES OF '#' IN l_chavl_m WITH ` `.

CALL FUNCTION 'RSAU_READ_MASTER_DATA'
EXPORTING
i_iobjnm                = 'ZMY_INFOOBJECT'
i_chavl                 = l_chavl_m
IMPORTING
e_structure             = wa_zmy_infoobject
EXCEPTIONS
read_error              = 1
no_such_attribute       = 2
wrong_import_parameters = 3
chavl_not_found         = 4.
Posted in Allgemein, Joes Daylies, Joes Tests | Tagged , , , , | Leave a comment

Mac OSx export Adressbook/Adressbuch für AVM Fritzbox

ACHTUNG! Neue Version: http://www.web-dreamer.de/blog/2010/08/mac-adressbuch-fur-avm-fritzbox-version-2-os-x-ipyfritz.html

Für uns iPhone- und Mac-Jünger ist die Mac OS X Adressverwaltung wunderbar integriert. Leider fehlte mir bisher eine Möglichkeit zum abgleich des Adressbuchs mit der Fritzbox. Das folgende Programm schrieb ich, um dem abhilfe zu verschaffen. Ich suche noch immer nach einer Möglichkeit, das Programm per automatischen job einzuplanen – Hilfe wäre mir hier sehr willkommen!?

Das Python-Script zum ausführen und
Download: iPyFritz

Der Aufruf erfolgt nach dem entpacken per Doppelklick oder im Terminal mithilfe folgenden Befehls:

Python iPyFritz.py

Dies erzeugt die Datei: myfritz.adressbuch.xml  – welche in der Fritzbox unter “Telefonbuch – Wiederherstellen” eingespielt werden kann. VORSICHT – ALLE ALTEN EINTRÄGE WERDEN GELÖSCHT!!!

Für alle die ein paar Euro ausgeben möchten und können, könnte das hier interessanter sein: fritz.mac Suite. Wobei es in meinen Tests nicht die gleichen Ziele wie mein Adressbuch-exporter hat und die Fax-Anbindung an der 7370 zu abbrüchen führte…

Und hier das Coding / Thx a lot to programmish ); for releasing his snippet under public domain.

Update 11.04.2010
Nur Nickname-Fehler korrigiert

Mazo-Kategorie Update 17.04.2010
Das Script setzt das “Wichtig”-Flag für Personen die einen Nickname gepflegt haben im Adressbuch.

Update 23.04.2010
weitere Alternativen: Fakes Blog

Update 12.05.2010
Suche immer noch nach einer Möglichkeit per launchd (cron alternative) das Adressbuch automatisch zu syncen… Über einen Tipp würde ich mich sehr freuen.

Und wenn Ihnen Freie Software auch etwas Wert ist – Freue ich mich über eine Spende:

Posted in Allgemein, Joes Daylies, Joes Tests | Tagged , , , , , , | 34 Comments

Playing w/ IPv6 and IPsec under Mac OS X

I added myself a sixxs.net IPv6 IP twice. One for my Roadwarrior Macbook and one for my Macmini. Installing and running it was quite easy:
sudo port install aiccu
and configure it aftwardes as described.

As i am not very used to remembering v6 IPs  – i added the both in my /etc/hosts which works very well.

What actually drives me crazy is the setup for IPsec….
Here is what if done so far – with more or less help from this pages:

  1. Simple Configuration Sample of IPsec/Racoon
  2. IPsec
  3. IPsec HOWTO
  4. tech-net: IPsec vs. OSX

I created a racoon.conf with a pre-shared-key. Afterwards i added my Security Policy Database(SPD) telling it to use Authentication Header and Encrypted Payload between the both systems.
details followin’ later.

What’s drives me mad – is first of:
The errors given by the setkey command are nearly completly awkward: for example : “The Address family is not supported by the Protocoll Family” – what exactly should that mean. Or the same configuration running on the one system fails running with a parse error on the other.
Help will be much honored.

Update:

Hi all,

i tried a while now to connect my two macs via ipv6. This is cool and works fine (via sixxs.net). But i like to use ipsec on ipv6 (and enhance the firewall to allow all encrypted traffic) and came across this little tutorial

http://www.kame.net/newsletter/20001119/

Realising that the macs got all at hands needed to give a direct host-2-host encryption i thought this would be easy. But using setkey/racoon is quite of hard.

my actual setkey – config looks like this:

#!/usr/sbin/setkey -f
#
# Flush SAD and SPD
flush;
spdflush;
spdadd 2a01:XXX:XXX:XXX::2 XXXX:198:XXX:XXX::2 any -P out ipsec
esp/transport//require
ah/transport//require ;
spdadd XXXX:198:XXX:XXX::2 2a01:XXX:XXX:XXX::2 any -P in ipsec
esp/transport//require
ah/transport//require ;

and my racoon.conf looks like

path pre_shared_key "/etc/racoon/psk.txt" ;
remote 2a01:XXX:XXX:XXX::2 {
exchange_mode main;
my_identifier user_fqdn "joe@macmini.ipv6" ;
lifetime time 24 hour ;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group modp1024;
}
}
sainfo address 2a01:XXX:XXX:XXX::2 any address XXXX:198:XXX:XXX::2 any
{
pfs_group modp768;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}

This all starts very well – The ip’s are exchanged counterwise on the second mac – and everything starts – but a ping6 terminates with a request timeout and i’m quite sure that there is nothing encrypted inbetween.

Posted in Allgemein, Joes Tests | Tagged , , , , , , | Leave a comment

VNC Client under Mac OS X

Just for your information. Apple brings an fine VNC Server and client with the default delivery. The client is a bit hard to find as it is not indexed:
“/System/Library/CoreServices/Screen Sharing.app”

This tool is finaly just an VNC Client – and it is allready IPv6 capable.

Posted in Allgemein, Joes Daylies, Joes Tests | Tagged , , , , | Leave a comment

Sanitizing WordPress UTF-8 – or Howto get rid of mixed Latin1 and UTF8 mysql exports

Actually my attention comes to some weird characters in my wordpress blog. Such as ü or ö as represantants of ä and ö. So i had a look into my mysql-db and saw that it was still on latin1. On my way to the clearance i got over that explanation. But still all howtos doesn’t work out for me. There are others allready had a look into it like fischerlander or Haidong’s Blog.

The Problem is more complex as it may look in the first place. WordPress or PHPBB put the post in the database as they receive it from the Browser. While you can set your Browser on a special Characterset (iso-8859-1) – rather than auto-recognition – and ignore so the servers needs the result are this awkward entries. And furthermore i had the problem that the users had used Windows-1250, UTF-16 and iso-8859-1 mixed.

Startin’ to solve this problem i wrote first this little perl script to generate the awkward chars:

#!/usr/bin/perl

  use strict;
  use Encode qw/encode decode/;
  my @list = ( 0x00 .. 0xFFFF );
#  my $letter = "ä";

open CSV, ">lat_new.csv";
  foreach my $letter (@list){
  $letter = chr($letter);
  print CSV $letter.";;";
  my $utf8 = encode("UTF-8", $letter);
  print CSV $utf8.";;";
  my $utf16 = encode("UTF-16", $letter);
  print CSV $utf16."\n";
  }
  close CSV;

As this results in a big list and 99% of it is useless i just tried to identify the chars from the several codings that leads to my personal abuse. This results in the following little list of latin-code-combination and UTF-8 representants. It is very likely, if you have chinese or russian characters, you will have a slightly other list :-)

ö;ö;ß;ß;ü;ü;ö;ö;ü;ü;–;–;ö;ö;ü;ü; ; ;¡;¡;¢
;¢;£;£;¤;¤;Â¥;¥;¦;¦;§;§;¨;¨;©;©;ª;ª;«;«;¬;¬;­;­;
®;®;¯;¯;°;°;±;±;²;²;³;³;´;´;µ;µ;¶;¶;·;·;¸;¸;¹;¹;º;º;»;»;
¼;¼;½;½;¾;¾;¿;¿;À;À;Á;Á;Â;Â;Ã;Ã;Ä;Ä;Ã…;Å;Æ;
Æ;Ç;Ç;È;È;É;
É;Ê;Ê;Ë;Ë;ÃŒ;Ì;Í;Í;ÃŽ;Î;Ï;Ï;Ð;Ð;Ñ;Ñ;Ã’;Ò;Ó;Ó;Ô;Ô;Õ;Õ;Ö;Ö;×;×;Ø;Ø;Ù;Ù;Ú;Ú;Û;Û;Ü;Ü;Ý;Ý;Þ;Þ;ß;ß;à ;à;á;á;â;â;
ã;ã;ä;ä;Ã¥;å;æ;æ;ç;ç;è;è;é;é;ê;ê;ë;ë;ì;ì;í;í;î;î;ï;ï;ð;
ð;ñ;ñ;ò;ò;ó;ó;ô;ô;õ;õ;ö;ö;÷;÷;ø;ø;ù;ù;ú;ú;û;û;
ü;ü;ý;ý;þ;þ;ÿ;ÿ;

I used a little perl-script to sanitize my mysql-export and to dump it into a new file. For security purposes i created a new database in utf8.

#!/usr/bin/perl

use strict;

open CSV, "<my_csv.csv"; #List from above
$li =~ s/\n//;
close CSV;

#  use strict;
#  use Encode qw/encode decode/;
#  my @list = ( 0x00 .. 0xFFFE );
#  my $letter = "ä";
#  my %lat_utf;
#open CSV, ">lat_new.csv";
#  foreach my $letter (@list){
#  $letter = chr($letter);
#  print CSV $letter.";;";
#  my $utf8 = encode("UTF-8", $letter);
#  $lat_utf{$utf8} = $letter;
#  print CSV $utf8.";;";
#  my $utf16 = encode("UTF-16", $letter);
#  print CSV $utf16."\n";
#  }
#  close CSV;

my %lat_utf = split(/;/,$li);
#print %lat_utf;
open FILE, "<mydatabase.csv";
my @lines = <FILE>;
close FILE;

foreach my $key (keys %lat_utf){
#   print $key. "\n";
#@lines = map{ s/$key/$lat_utf{$key}/g } (@lines);
    my @nel;
    foreach my $lin (@lines){
#       print $lin."\n";
        if ( $lin =~ /$key/g ) {
            print $lin;
        }
        $lin =~ s/$key/$lat_utf{$key}/g;
#       print $lin."\n";
        push @nel, $lin;
    }
    @lines = @nel;
}

open FILE, ">wdrede_kjr-UTF-8_fixed_new.sql" or die $!;

foreach my $lin (@lines){
  print FILE $lin;
}

close FILE;

This results in my special case to a more or less clean wordpress-blog. BUT i realy would think that wordpress and phpbb should check the browser settings and in what codepage the user had put in the comment or content. Because – otherwise it wouldn’t help much to have this converted over a long time…

Posted in Allgemein, Joes Tests | Tagged , , , , , | 10 Comments