Wednesday, September 16, 2009

new WebKit-based browsers

I like new developments in this direction:

Uzbl - a browser that adheres to the unix philosophy (www.uzbl.org/)

Firefox' Vimperator inspired:
Vim+Webkit = vimpression( https://projects.ring0.de/webkitbrowser/ )



Ultimately i'd like to have a tabbed vimperator-like-web-browser + emacs/epsilon-like-editor + Konsole-like terminal + mc all in one, with awesome/xmonad-like window-placement strategies ;-)))))

Friday, August 7, 2009

Archlinux: (IMHO) the best Linux distribution ever!

After a long time spent with all major Linux distributions,
I finally found one that suits me the best: Archlinux.

I really like its minimalist approach and nice pakage management system.
Thr later combines the Debian-like pacman (install binaries)
with an option to install from sources (see ABS&AUR) as if they are natives!

Furthermore it has a huge and friendly community and lots of helpfull wiki.


Recently i made a mistake:
i tried updating pacman without dependencies: "pacman -Sd pacman"
(since i had other staff depending on pacman... and thought it's ok to do like this: PLEASE, DO NOT DO IT!!!). Although i got a newer pacman - its dependency on libfetch become broken,
rendering pacman defunct: "pacman: error while loading shared libraries: libfetch.so: cannot open shared object file: No such file or directory" :(((

The solution (due to http://forum.arch-linux.pl/viewtopic.php?pid=41076) is simple:
manually build libfetch (from ABS with makepkg -s)
copy libfetch.so into /usr/lib (this will resurrect pacman!!!)
force installation of libfetch (with "pacman -Sf libfetch", to fix the pakage database)

I hope this will help somebody...

Wednesday, March 25, 2009

Last Winclone 1.6.6 for Tiger (Mac OS X 10.4)

It seems that the author of Winclone has switched to Leopard (Mac OS X 10.5)
without giving Tiger users any chances to use even an older version :(((

So here you go: the latest Winclone 1.6.6 for Tiger (Mac OS X 10.4),
is available from: http://rapidshare.com/files/213465124/wc_1_6_6.rar

Es scheint so zu sein als ob der Autor von Winclone hat auf Leopard gewechselt ohne
den Nutzern von Tiger eine Benutzungsmöglichkeit zu gewährleisten :(((

Also, das letztes Winclone 1.6.6 für Tiger (Mac OS X 10.4) ist verfügbar unter:
http://rapidshare.com/files/213465124/wc_1_6_6.rar

Thursday, February 5, 2009

HDF5 in Matlab!!!

Behold: last versions of Matlabsupport HDF5!
there are only 3 (!) upper level functions which can do a lot: hdf5 - read/write/info
plus : all the low level functions are also available (via wrappers)! (there are some Matlab-specific as well)

BUT:

don't forget to wrap read/write in try/catch statements since
they cannot delete/overwrite existingentries in a file and
thus will throw an exception on such an attempt...

moreover, hdf5read can be used to read attributes,
BUT consider the following innocent command: hdf5read(file, '/1');
it either reads the dataset '1' located in the root group OR
the attribute '1' of the root group! It's just tooo ambiguous for me!



% my very ML confusing example:
hdf5write('a.h5', struct('Location', '/', 'Name', '1'), 'What is right?', ...
struct('AttachedTo', '/', 'Name', '1', 'AttachType', 'group'), 'And what is wrong?');

% let's read attribute '1' of the root:

% naiive:
i = hdf5read('a.h5', '/1');

i.Data
% gives 'What is right?' to me, which is not what i wanted!

% and the attribute must be read as follows:
info = hdf5info('a.h5', 'ReadAttributes', true);

info.GroupHierarchy.Attributes.Value.Data
% gives 'And what is wrong?' to me

Saturday, January 31, 2009

Zacinit' muzyku z anime...

Elfen Lied Openning - duzhe klassna muzyka!!!
(tut pravda bagato variantiv razom zkompanovano)


A shcho nagaduje xxxHolic Ending?
Meni - Okean Elzy japons'koju!!!! :)

Number Three Idiot of 2008

A man, wanting to rob a downtown Bank of America, walked into the Branch and wrote this, 'Put all your muny in this bag.'
While standing in line, waiting to give his note to the teller, he began to worry that someone had seen him write the note and might call the police before he reached the teller's window.
So he left the Bank of America and crossed the street to the Wells Fargo Bank.
After waiting a few minutes in line, he handed his note to the Wells Fargo teller. She read it and, surmising from his spelling errors that he wasn't the brightest light in the harbor, told him that she could not accept his stickup note because it was written on a Bank of America deposit slip and that he would either have to fill out a Wells Fargo deposit slip or go back to Bank of America.
Looking somewhat defeated, the man said, 'OK' and left. He was arrested a few minutes later, as he was waiting in line back at Bank of America.

LOL :D

my geek code :)

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS$/CM/M$ d-(+) s: a- C++(+++)$ UL*A(+) P++(--) L++(+++) E(+) W++ N+ !o !K w++(--) M+(++) !PS PE Y PGP t 5 X R tv-- b++(+++) DI++ D G e+++(++++) h--
------END GEEK CODE BLOCK------

Sunday, January 11, 2009

MATLAB can get binary data and set Cookies!!!

After an overnight hopeless wandering around with this mad quest in mind i finally managed to read binary data correctly via http connection AND get Cookie at the same time!!! Moreover i can post some data with Cookie via http as well.

Please, if you don't care for Cookie - just DO use urlread!!! I DO mean it!

The only working way was to use Ice(Java) functions in Matlab, which are NOT documented in any way. Therefore one needs to experiment a lot with them!

So if you are not scared yet, here we go:

To read binary data use:

uint8( DataInputStream.read() )


To get cookie use:

CookieString = char(HttpURLConnection.getCookieManager().elements.nextElement.Cookie.toString)

or the following might also work

CookieString = char(HttpURLConnection.getCookieManager().getHeaderField('Set-Cookie') )


To set cookie use:

HttpURLConnection.setRequestProperty('Cookie', CookieString )



Since i am by no means an expert neither in Java nor in Matlab i might have overlooked something. Please do let me know if you know a better way.

ps: of course you start as follows:

URL = java.net.URL('http://example.url');
HttpURLConnection = URL.openConnection();