Blog

Ausflug nach Cremona

Am 07.11. war ich mit Katharina und Lars in Cremona. Ja ich weiß, der 07.11. ist schon länger vorbei, aber ich hatte in letzter Zeit sehr viel zu tun.

Wie auch immer, Cremona ist jedenfalls eine schöne Stadt mit dem höchsten Glockenturms Italiens, wenn ich mich richtig erinnere und ist die Stadt der Geigenbauer: Stradivari, Amati und Guarneri haben hier gelebt und gewirkt.

Ich muss allerdings gestehen, dass wir es in keines der Geigenbauermuseen geschafft haben, dafür waren wir am Turm (sehr empfehlenswert!) und im Dom. Und wir hatten Wetterglück: In genau dem Augenblick, in dem wir den Turm erklommen haben, hat uns die Sonne angelacht! Vorher leichter Regen, nachher leichter Regen.

Blick auf den Dom von Cremona Der höchste Glockenturm Italiens Blick vom Glockenturm gerade nach unten

Alle Bilder von Cremona wie immer auf der Homepage: http://klasseonline.aboehler.at/cms/index.php/pictures/category/36-cremona09

2015/02/19 22:18 · Andreas Böhler

Connect to a specific BSSID/AP in a WDS network

Windows Vista and Windows Seven have one problem: Virtually no WiFi manufacturer has created a wireless utility, all configuration is done through Windows. In most cases, this is OK, but what to do when you are on a WDS network and one Access Point does not work? How can you specify another AP to connect to even though the signal strength is worse?

Fortunately, Lenovo is the answer. If you are the proud owner of a Lenovo Notebook, you already know Lenovo Access Connections. This nice utility can change the WiFi network and disable Roaming. And even if you are not on a Lenovo notebook, you can use this utility. Just download it and install. You will get an error message about your platform not being supported, don't worry, just ignore it or read on for a fix :)

I found this page dealing about Lenovo AC on non-lenovo notebooks (including Download Links): http://forums.laptopvideo2go.com/topic/23480-finally-a-client-utility-for-atheros-wlan-and-vistawindows-7-x86x64/

The fix is as simple as: Start → Run → regedit. Navigate to \HKEY_LOCAL_MACHINE\SOFTWARE\LENOVO\Access Connections\Install\ and create a new DWORD Value “TPCHK” with value “0”. Reboot and all is fine.

I successfully tested this procedure on an Acer Aspire One with an Atheros-based Gigabyte WiFi card on Windows Seven.

2015/02/19 22:07 · Andreas Böhler · 1 Comment

Python, Direct3D and Font Sizes

Never ever try to display a font on screen so that it has a certain real size.

  • Direct3D displays a font always at 72dpi - regardless of the current DPI setting (at least on Windows Seven)
  • Every font interprets point sizes differently
  • Point size does not equal Pixel Size

So my solution now is: Display a 200pixel bar and ask the user to measure the length on his monitor. We now know the size of one pixel. For visual acuity testing the distance from the screen is also important.

The following Python Code now scales the letters for the font “Courier New Bold” to display correctly on the screen:

        # Formula found online at sciencedirect:
        # Using a high-resolution display for screening visual acuity for near vision, A. Hoffman, 1996
        gap = math.tan(math.pi/180.0 * (1.0 / 60.0)) * self.db['distance']*10
        pixel_density = self.db['font_line'] / 200.0
        num_pixels = gap / pixel_density
        height = round(num_pixels * 5.0 * 1.27 * 96.0/72.0)

To explain that a bit: The calculation is done for visual acuity of 1.0, that is normal sight. At first the gap of a letter is calculated, the “E” for instance consists of two gaps and three bars.

Then, the pixel density as calculated from the 200px line and the real length.

num_pixels is then the number of pixels necessary to represent one gap. Finally, the height of the letter (or to be exact: the size to pass to d3d.Font) is calculated: 5.0, because 2 gaps and 3 bars for “E”, 1.27 is the scale factor for Courier New Bold, 96.0/72.0 is the scaling to 72dpi. This is necessary, because I measured the scale factor for the font at 96dpi, that is the resolution of my external screen and Windows' default setting. At this setting, a font with 96pt should equal 1 inch on screen. I actually did the measurements digitally using The GIMP, I should've done that a 72dpi to simplify the formula.

Whatever, it seems to work fine, at least on my machine.

2015/02/19 22:04 · Andreas Böhler

Erasmus Placement und alles ist anders

Ich mache ja in Italien mein Berufspraktikum und bin daher zwar ein Erasmus-Student, aber im Programm “Erasmus Placement”. Das heißt, dass zwischen meiner Uni zu Hause und der Uni in Italien kein Abkommen besteht, sondern nur ein Ausbildungsvertrag (Training Agreement and Quality Committment) zwischen dem Labor hier, mir und meiner Universität.

Jedenfalls bekomme ich dafür ebenfalls eine Erasmus-Förderung, sie heißt nur anders. Sollte man meinen.

In Wirklichkeit habe ich nun doch beschlossen, mich hier um ein Busticket zu kümmern (normalerweise kostet das für Studenten nur €10,- pro Jahr!). Da ich an der Uni hier nicht inskribiert bin (dank Erasmus Placement) ist das wiedermal nicht so einfach. Also E-Mail an das Ufficio Mobilità Studentesca geschickt mit der Bitte um Anweisungen, wie ich denn den Fahrausweis erhalten könnte. Bisherige Antwort: Ich bin der erste Erasmus-Placement Student, der darum ansucht, sie wissen es ganz einfach nicht.

Fazit: Erasmus Placement ist anders. So anders, dass man sich sowieso um alles selbst kümmern muss (Sprachkurs, Unterkunft, Busausweis, ESN-Karte, …) und das dann auch noch anders funktioniert! Naja, wenigstens funktioniert mein Fahrrad wieder (neue Pedale, neue Bremsen, frisch geschmiert, …).

2015/02/19 22:02 · Andreas Böhler

Data Acquisition and Lenovo Active Protection System

Just a short note to remember: Whenever you acquire some data for instance in a car with a Lenovo laptop, remember to SWITCH OFF HD-APS.

We acquired one frame per second along with 500Hz data from gyros/accelerometers. Afterwards, I found out that about 30 images are missing, because the harddisk had switched itself off during acquisition. The 500Hz dataset was buffered, so no problem at all, but some images were simply lost.

2015/02/19 22:01 · Andreas Böhler
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies