poniedziałek, 22 lutego 2010

Warszawska Karta Miejska

Gdyby kto pytał i szukał: Aplet do projektowania spersonalizowanej warszawskiej karty miejskiej działa tylko pod > IE7 z najnowszym flashem. Gratulujemy wykonania. Dla zatwardziałych Linuksiarzy, potrzeba maszyny wirtualnej z Windowsem w celu wykonania takiej karty i odstawienia w kąt wszelkich przeglądarek (Firefox, Opera, Chrome). Pod Firefoxem na Windowsie też nie działa. Tyle powiem.

piątek, 19 lutego 2010

Mandelbrot. My own. My first


This one was generated by 8 processor working in a MPI Task Farm model. The code, Mechanic is a part of my PhD. For testing purpose I created small module which computes Mandelbrot fractal. The code will be committed soon, check git.astri.umk.pl for updates.

czwartek, 4 lutego 2010

The Man or the Nothing Box

What was the first? The man or the nothing box?

If the God is a woman, it means, that very important functionality of man's mind is not documented. If the God is man, it means, that he didn't have to document it at all!

wtorek, 19 stycznia 2010

Firefox background position SOLVED

Allright, here is a problem:
You want to have background image specifically positioned on your page. CSS works in IE, Safari, Chrome etc. But not in Firefox. An example problem was on mechanics.astri.umk.pl, which I develop. I want to have background image (with well known Lorem Ipsum) positioned just before the logotype. The logotype has almost 400px padding-top.

The solution is here:

.front #branding{
padding: 300px 0 50px 0;
background: #000;
background-image: url(images/mechanics2010-front.png);
background-repeat: no-repeat;
background-position: left 100px; //important: pixels at the end (I think)
}

Voila! Now, the site looks similar in almost every webrowser.

poniedziałek, 18 stycznia 2010

Wchodzi mechanik do manekina

Wchodzi mechanik do manekina:
Dzięsiątka wytrawna z sosem pomidorowym proszę!

(z pamiętnika Czarka Migaszewskiego)

sobota, 14 listopada 2009

Frappe Killer

Ha! Now it's time for something useful:) The Frappe Killer drink.

Ingredients:
  • Cold Milk
  • IceCoffee (i.e. Nescape Frappe or so)
  • Malibu

Fill the glass or shaker whatever proportions you like, mix them and that's it!

Now sit down and drink. If You can stand up then, take another Frappe Killer.

Enjoy!

niedziela, 8 listopada 2009

Shift-Enter never ever

Allright, there is one special keyboard shortcut in word processors, such as OOWriter or Word, which makes me angrrry: SHIFT-ENTER. It creates a soft-linebreak, without paragraph break (hard-linebreak), which in most cases is a total distaster when preparing a document to print. When you turn on view of non-printing chars, you will see soft-linebreak as a down-left-arrow, similar to the arrow of an ENTER key. Hard-linebreak shows up as a reversed P.

The problem is, when user uses SHIFT-ENTER to create line breaks, and not an ENTER. Then you'll have many many soft-linebreaks to remove. Doing it by hand is a simple, but time wasting task. Fortunately we have a Find&Replace tool in OOwriter which will help us.

What we have to do?
1) Open Find&Replace tool
2) Show more options
3) Use regular expressions
4) In "Find" put '\n' (without quotes)
5) In "Replace to" put '\n' (without quotes)
6) Replace all. And THAT'S IT! All SHIFT-ENTER breaks will turn to hard linebreaks.

Uff. Then I have more time for coffee breaks:)