Meta
October 2025 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Blogroll
IP info
Programs
Поехали! 50 лет/Jahre/years
Posted in /dev/null, DE, EN, RU
Leave a comment
New IDA upgrade available (6.1)
Lovely. Hex-Rays released version 6.1 of IDA just today. I already requested my download and I am downloading as I type this.
See the changes here.
// Oliver
PS: sadly it’s the first version where I don’t get a Linux version. I occasionally used the Linux terminal version when no Win32 was nearby, but those days are gone 😥
Prosit
Auf den heutigen Tag und nach dem Streß der letzten Tage gibt es jetzt …
*trommelwirbel*
… einen Cognac.
Mein Opa meinte: die wärmsten Jacken sind noch immer die Konjacken. Recht hatte er. Auf die Gesundheit und die Erinnerung an die die nicht mehr unter uns weilen.
Posted in /dev/null, DE
Leave a comment
mydumper – nice alternative for mysqldump
I’m using MariaDB. Now, I had the idea for smaller DBs to use the SQL dump and store that in a version control system such as Mercurial or Git. However, the ordinary mysqldump
creates quite unreadable dumps. Since the version control systems use diffing algorithms I figured it would be best to use something that outputs more readable, less cluttered, output. Someone on the #mysql
channel over at FreeNode pointed me to mydumper
. Turns out he was the author.
In order to compile it for Debian (Squeeze) I had to install the following prerequisites:
apt-get install bzr cmake build-essential \ libpcre3-dev libglib2.0-dev libmariadbd-dev
… after that was done, the following was used to build:
bzr branch lp:mydumper cd mydumper cmake . make
… and as root
:
make
Very easy. Thanks Domas!
// Oliver
PS: On Debian 5 the required packages were bzr cmake build-essential libpcre3-dev libglib2.0-dev libmysqlclient15-dev zlib1g-dev
.
Posted in C/C++, EN, Linux, Programming, Python, Software, Unix and unixoid
2 Comments
Reykjavík, Nizza des Nordens
Kaum tauen die letzten Schneereste, wird Reykjavík wieder zum Nizza des Nordens: Hundekacke wo man geht und steht
// Oliver
PS: diese etwas eindimensionalen Eindrücke von Nizza rühren sicher daher, daß ich nicht “in der Saison” dort war.
Posted in DE
Leave a comment
GNU screen to the rescue
So I’m talking to a veeeeery slow device over serial connection. Meanwhile I have managed to talk to it using kermit
from within Linux – from within a GNU screen (actually byobu
) session to be more precise. The output that I initiated is a dump of memory contents, more precisely of the flash memory mapped at a particular location. 16 MiB of flash memory. Now consider that every line looks approximately like this:
XXXXXXXX: 00000000 00000000 00000000 00000000 ................
Of course for the Xs it’s an address and the zeros would be actual byte values corresponding to the contents at that address. This runs at 38400 Baud and is slooooow
To my horror I realized before finishing the first MiB, that this would take hours and that I have no means of killing it before it’s finished (e.g. Ctrl+C
does not work). However, the plan was anyway to abuse the textual form of it and convert that to the binary form. Fortunately GNU screen offers a logging feature and I knew it was there, although I didn’t remember the shortcut. Well, easy enough. I looked it up and enabled logging. Simply brilliant. It will run for a few more hours, but I have only “lost” less than 1 MiB at the front of the dump that I’m going to rerun tomorrow.
The solution for enabling logging:
C-a H
I’m not going to forget that one again
// Oliver
Posted in EN, Linux, Software
Leave a comment
Peculiar problems with mc under byobu
I’m using byobu
on a daily basis, but occasionally I also use mc
(Midnight Commander). Midnight Commander is a terminal-based two-panel file manager as they became well known with Norton Commander. If you look for a similar solution for Windows, I can recommend FAR (console) and SpeedCommander (GUI).
Running mc
under byobu
windows has a problem. Now, interestingly the Fn-keys F5 through F10 work normally, but F1 through F4 and F11 through F12 don’t. The problem doesn’t seem to be unique. The solution with mc.keymap
looks promising, but I have yet to test it.
For now, I found a workaround. It turns out that the four keys at the top of the key pad (Num
… -
) map exactly to F1 through F4. I’ll post a new entry when I find the proper solution.
// Oliver
So … PBXT or Aria?
I had changed the table storage engine format from MyISAM and InnoDB to PBXT for my blog and some other blogs I host. Little did I know.
Of course WordPress will hide any and all errors from plain sight, so the symptom I got to see was that I couldn’t write any new blog posts, or generally make any modification to the database at all.
When I decided to roll back, I got this:
ERROR 1598 (HY000): Binary logging not possible. Message: Statement-based format required for this statement, but not allowed by this combination of engines
Oops. That’s pretty nasty. I can’t even roll back? Well, turns out I could. First off all let’s check the current log format:
show global variables like 'binlog_%';
It requires MIXED
here, but is not properly set. We can set it for the current session, like so:
set session binlog_format = 'MIXED';
… but that is only a temporary workaround and only possible for our currently running session. I imagine it would be possible to use the global
keyword instead of session
, but I don’t know whether that survives DB server restarts. So, to be sure, I decided to set:
binlog_format = MIXED
… in my.cnf
. Ever since, even PBXT is happily running as the storage engine.
// Oliver
Posted in /dev/null
Leave a comment
XMPP S2S with Google and no TLS?
I’m running an ejabberd instance and it’s configured to use TLS in S2S (server to server) communications. It works perfectly fine with jabber.ccc.de, but Google’s server does not seem to like TLS.
Very awkward. First I thought it may be because of my certificate, but then I used the same as for the website (same domain, after all) and it still does not work.
No idea why it refuses to talk encrypted with Google.
// Oliver
Posted in EN, IT Security, Linux, Software, Unix and unixoid
3 Comments
F-Secure documentary about BRAIN
Watch it over here.
Posted in EN, IT Security, Reversing, Software
Leave a comment
iptables flowchart
Just uploaded a flowchart that shows the order of packet processing in iptables to my downloads. You can find it here. There is the Visio file from which I created it in the same folder, just in case you want to modify it to your taste.
// Oliver
Posted in EN, IT Security, Linux
Leave a comment
Billiger StackOverflow-Abklatsch auf Deutsch
Einfügung (Update 2): liebe aufgebrachte codekicker.de-Mitglieder. Für die offensichtliche und unbewußte Täuschung durch meinen durch die Zeit zurückgereisten bösen Klon kann ich mich nur entschuldigen. Dieser Beitrag wurde im Original am 10.3. um 3:21 (UTC, also 4:21 dt. Zeit) eingestellt. Das Update 1 wurde am 11.03. um 2:36 (auch UTC) eingestellt, also ebenfalls lange vor dem DAX-Thema (10.3. 16:22 MEZ) um welches sich in den Kommentaren alles zu drehen scheint. Mein böser (und zynischer Zwilling) hat also böserweise die in meinem Keller herumstehende Zeitreisevorrichtung benutzt um so zu tun als sei dieser Beitrag hier tatsächlich schon vor dem DAX-Thema auf codekicker.de (siehe Kommentare) entstanden. Das ist natürlich völlig unmöglich. Ich entschuldige mich für die Unannehmlichkeiten. Kalter Fusionsreaktor und Zeitmaschine sind wieder sicher verstaut. Ich hoffe daß er nicht noch irgendeine Dummheit macht. Bei diesen Klonen weiß man nie …
Leider hat mein Klon es auch geschafft, daß sich die Elektronen seiner Worte in der Datenbank eingebrannt haben, weshalb ich diesen Blogeintrag hier leider nicht einmal löschen kann (Hinzufügen geht noch).
Wer Ironie findet, darf sie behalten.
Leider hat mein Klon es auch geschafft, daß sich die Elektronen seiner Worte in der Datenbank eingebrannt haben, weshalb ich diesen Blogeintrag hier leider nicht einmal löschen kann (Hinzufügen geht noch).
Wer Ironie findet, darf sie behalten.
Unter codekicker.de findet sich ein Abklatsch von StackOverflow (SO) auf Deutsch. Aber warum kann es nur als Abklatsch gelten? Nun, dem typisch deutschen Kontrollwahn verfallen, ist eines der elementarsten (und meiner Meinung nach entscheidensten) Merkmale von SO nicht implementiert. Continue reading
Posted in DE, Gedanken, Programming, Software
4 Comments
Top ten disk space hogs in current folder
du -cks *|sort -rn|head -11|awk '{printf "%-8.2f MiB\t%s\n", $1/1024, $2}'
NB: first item is the total size, so it outputs eleven lines.
Update: a better version is this one:
du -cks *|sort -rn|head -11|awk '{printf "%-8.2f MiB\t", $1/1024;\ for(i=2; i<=NF; i++) {printf " %s", $i}; printf "\n"}'
... as it takes into account file names with spaces in them. You may also want to squeeze in a BEGIN { FS = " " }
at the beginning, so as to prevent tabs from being considered as field separators.
Posted in /dev/null, Bash, EN, Linux, Unix and unixoid
Leave a comment
WordPress/twentyten header image
Had some trouble with the built-in twentyten images. The header image is saved inside a serialized hash in the database complete with the protocol and server name as well as the blog home URI. The problem with this is if there are two different URLs under which the blog can be reached, the one under which the header image was set will be fine, but for the other one the header image will always be loaded from the alternate one.
My fix was to set the define HEADER_IMAGE
in wp_config.php
with full path and reset the header image in the twentyten settings:
define('HEADER_IMAGE' ...
// Oliver
Some changes to the blog
Despite the server change, which you may not even have noticed, I’m also blocking any and all login attempts, renamed the admin
user name (some people were apparently trying to get in) and the administration area is entirely off limits. This should not impede my readers’ ability to comment. But if it does, please let me know via the contact page.
// Oliver
Posted in /dev/null, EN, IT Security
3 Comments
More issues with MariaDB
… but solved.
When trying to install WordPress 3.1 as a vanilla installation, it failed:
WordPress database error: [Invalid default value for 'comment_date']
… this got repeated for several columns in several tables and obviously table creation failed. However, WordPress reported success despite all the errors. Of course nothing worked. After turning to the #maria
channel over at irc.freenode.net
, I was smarter: sql_mode
was apparently set too strict.
I have installed 5.2.5-MariaDB-mariadb99~squeeze-log
and the default setting in my.cnf
was this:
sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL
… turns out that the TRADITIONAL
“expands” to several other restrictions, including NO_ZERO_IN_DATE
and NO_ZERO_DATE
and those seem to be the problem in that they cause the DB engine to not accept 0000-00-00 00:00:00
as a default datetime
value.
Given that WordPress – although it is clearly at fault here – is an application I wanted to run on this server, I decided to relax the sql_mode
and of course the installation succeeded after that. My new sql_mode
is:
sql_mode = NO_ENGINE_SUBSTITUTION
Hope it helps someone else.
// Oliver
100000 Jahre alt
… bin ich jetzt. Ach übrigens, mir wurde mitgeteilt, daß es Leute gibt die binär lesen können und solche die es nicht können
Posted in /dev/null, DE
4 Comments
Installing MariaDB on Debian 6 (Squeeze)
Had some trouble installing MariaDB on Debian 6. The system was pretty much a vanilla Lenny (hadn’t used it much that’s why) upgraded to Squeeze only one week ago – and I wanted to install MariaDB instead of MySQL.
This KB entry at AskMonty gave me some guidance, but apt-get
simply did not want to install mysql-common
from the MariaDB package repository. Now, with the help of knielsen from the #maria channel over at irc.freenode.net, I managed to figure out how to work around it. Instead of apt-get
I used aptitude
. Continue reading
Debian bug 581612
etckeeper
(go look it up, it’s very useful) is a tool I use. Now, some behavior in cron
changed recently in Debian and apparently also Ubuntu, causing my log files to show the same as fetchmail
in the bug report.
Turns out etckeeper
returns an exit status of 1, if nothing has changed. Therefore whenever no changes would show up, I’d see this warning message but could not discern any details from it.
The fix was easy enough and is described in a reply to the bug report.
// Oliver
Posted in EN, Linux, Unix and unixoid
Leave a comment
Visual Studio 2003 and DEP
Some time ago I enabled the alwayson
setting for the noexecute
switch in boot.ini
. Turns out some older programs don’t like it. I had already found out at some point for Borland C++ Builder 6, but this time it was Visual Studio 2003.
Whenever opening the properties of a project I would get an exception (access violation). This was consistently so in Visual Studio 2003 but none of the newer versions exhibited the same behavior. Hence I decided to exclude Visual Studio 2003 (the devenv.exe
) from DEP … and it works. Mystery solved.
// Oliver
Posted in EN, Programming, Software
Leave a comment