niedziela, 24 października 2010

MacBook Pro 2010 + OpenMPI + o2 stick

One of the first thing after switching to MacOSX was to install all developer tools I use in my work -- having Vim already installed, I had to set up my localhost cluster with OpenMPI and HDF5. Well, standard compilation (after installing gcc4.6 with iso_c_bindings in Fortran) was not a problem. The problem was running it when connected to the Internet with my o2 stick. I searched a little Uncle G. for (openmpi + ppp0), found this thread: OpenMPI simply freezes (or hangs) when connected to modem, I don't why, right now I don't have time to do more research on this topic. But I applied a solution: In openmpi-mca-params.conf (system-wide or user's) type:


cross fingers and...

Welcome from Node 0
Welcome from Node 1
Welcome from Node 2
Welcome from Node 3

sobota, 31 lipca 2010

Drupal7. I'm impressed. I'm confused

I use Drupal. It's my tool for content managment on the web. I started with D5, extensively used D6, and testing upcoming D7 (as time of writing D7-alpha6). Over 50 modules included, CCK, ImageCache in core. Many user-interface improvement, installing modules and themes with the web interface. New default theme. Sqlite support. Menus reorganized. Admin interface reorganized.

In its current stage still feels incomplete. I'm not complaing, I'm really impressed of the work od Drupal Developers. But, personally, as a Drupal user, I miss such small things, that I will have to setup by self with help of external modules:

-- features of BetterFormats (the most)
-- some small ThemeAPI improvements, like overriding "submitted by" message within the template.php. This is especially useful when you want to create a theme containing only css file and template.php file -- yes, it is possible to create such theme, but you cannot override "submitted stuff" (maybe I will create or search for a module or sth)

There are of course, as of alpha stage, many minor things to improve. But as for now, new Drupal major release will be a huge step forward in cms world. Well, right now, after clean and standard installation of D7, the only thing I have to do is to install Views, Markdown and Colorbox modules. Do you feel the difference? (tip: in D6: Views, CCK, Imagefield, Imagecache, Markdown, Colorbox, Contact etc.)

And I have some small D8 list...

-- BetterFormats fully in core
-- NodeHierarchy2 instead of Book
-- Blog/Forum turned into content types integrated with Views
-- Yes, Views in core.

At beta-1 stage, I'm really impressed -- it is a huge improvement in webdevel/admin :D

niedziela, 21 marca 2010


No tak - to znalazłem pod artykułem,240,1,szatan_niestety_istnieje,kioskart.html

Ciekawe, nie?

sobota, 13 marca 2010

Logitech M505 @Gentoo

Well, I needed new mouse, so I bought Logitech M505 (wireless with unified adapter). In the user guide we read:

Side-to-side scrolling (...) This function doesn't work on Linux.

Well, actually, it works. What distribution they used for tests?

piątek, 5 marca 2010

o2 Prepaid ZTE MF100 @Gentoo

Well, I cannot live without Internet... So the first thing I did in Paderborn was to search for any Internet provider -- thus I found o2 prepaid offer pretty enough to try. It tooks me last 3 days...

Let's begin.
Forget about windows stuff -- the stick will work (sometimes), the software sucks, it differs from the included handbook, and you will get your hair off trying to figure out how it really works.

Let's try Ubuntu. First of all, the stick is recognized as a cd-rom (surprise!). After searching a lot, you can find usb_modeswitch utilty. Don't use it. You don't have to. Just eject (not unmount) the device. After a few seconds, you will see modem connection configuration screen. You run it by 4-click method, put the pin code and pray -- yes, I manage it to work only once. Surprised?

Now the funny thing. I don't want to use Ubuntu. And Windows XP on my VirtualBox at all. So I needed to find a way to connect with this o2 stick on my Gentoo box.

I don't want to describe step by step configuration -- you will find a lot of similar solutions on the web. Let me describe only some specific things:

1) using wvdial I have:

[Dialer o2]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = ;
Init1 = ATZ
Password = ;
Modem = /dev/ttyUSB2
Baud = 9600
Stupid Mode = 1

[Dialer pin]
Init3 = At+CPIN=[yourpin]
Modem = /dev/ttyUSB2

2) steps to connect to the Internet:
- put your stick in
- wait
- try to eject proper device: /dev/sr0 or so
- wait, in a few seconds the modem will appear
- now run wvdial pin to unlock the modem
- wait for green light from the modem
- try wvdial o2

If success, the modem will connect, ppp0 will get dns servers etc. etc.

You don't need to even edit /etc/conf.d/net etc. Just use wvdial.

For those who want to digg deeper: the device is ZTE MF100, with lsusb it is recognized as 19d2:2000, and after eject: 19d2:0031.

Now I need to create a script to do all the stuff automagically:)

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 for updates.