Friday, December 18, 2009

Kiforditott ruha

Atoltozeskor a pulovert es az alatta levo trikot egyutt veszem le, igy gyorsabban lehet legkozelebb felvenni. Nem is az a rohelyes, hogy igy csinalom, hanem hogy errol irok, de azert teszem mert tesom is ilyen, es o lany. Viszont ennel meg furcsabbak vagyunk, ezt figyeld. Reggel a pizsamat ugy veszem le, hogy elofordul kiforditodik. A legtobb ember visszaforditja vagy azonnal, vagy amikor ujra felveszi. Ilyen osszehajtom dolgot felejts el, az nem en vagyok. Namost en este nem forditom ki mielott felveszem, minek, reggel ha megint ugy sikerul levennem, pont jo lesz :D

Namost ezen paran mar csodalkoztak, harman vagyunk, nem beszeltunk ossze es csak nevetunk rajta. Egy mosolyt azert megert, nem?

;)

Thursday, December 17, 2009

Back again?

More than a month passed without writing anything boring, but that's maybe right. Nobody's reading it anyway :)

I have been too busy by living my life, working and I started to bore people on facebook. It's just another way of advertising yourself, why? Not sure but I learned that I need to find out how to sell myself better.

The next time will post some pictures of Christmas fares from Vienna and Bratislava. Pictures from exhibition of Schiele, Munch, Goya, Ansel Adams just to mention few of the bigs. Happy holidays if we would not meet then. From saturday I'm planning to go home to my parents and stay there till 4th of January. The best that I will be without internet there, you should try it. Today it was snowing and it's freezing, if it will last for longer I would be able to skate on the lake, will see.

bye.

Monday, October 26, 2009

Kovacsi - Kovacovske kopce

Takze, dlhsie som nic nepisal, v oktobri sa toho dost udialo, tak aspon kratky vylet po Kovacovskych kopcoch, viac info cez odkazy

Naucne chodniky
Hiking.sk

A jedna fotka aby to nebolo take suche ;)


Danube, basilica

Thursday, September 10, 2009

Three frames magic

Lately found a site with three frame animations and said I could try that. The weekend was bothering my sister to help me but she refused :)

Three frame apng
I needed no more, found APNG Edit for firefox and created this animated image, GIF has 256 colour limitation, flash is too much for a simple job.

The first version of this post was not animated, you need apng support and need a storage for your picture different as blogger or picasa, they messed my animation.

Monday, September 7, 2009

Windows 7 with new NVIDIA driver results in oversaturated odd colors - solution

Here's how to set (probably) correct colors for nvidia on win7:

control panel ->appearance and personalization ->display ->change display settings->advanced settings->GeForce 9300M GS->start the NVIDIA Control Panel->adjust desktop color settings:

set digital vibrance to 0% from 79%

was it easy? what a smart person was it to set it as default and overriding even calibrated monitors. Congrats.

Use regular expression in your C++ program (vbscript and groups)

There's a great tutorial how to reuse VB6 regular expressions in C++ on sourceforge and here's how to use it in more depth. Unfortunately there are not many examples how to use it in C++ and figuring out how to access groups was not hard, just took a while. The key is to use the version 2 of all the classes, starting with IRegExp2Ptr. So just an example how to do it:

IRegExp2Ptr regExp;
regExp.CreateInstance(__uuidof(RegExp));
regExp->Pattern = _bstr_t("^(\\d+)-(..)-(.*)\\.44$");

if (regExp->Test("11-ab-33.44") == VBOOL_TRUE)
{
IMatchCollection2Ptr matches = regExp->Execute("11-ab-33.44");
IMatch2Ptr match = matches->Item[0];
ISubMatchesPtr sbm = match->GetSubMatches();
_bstr_t val = _bstr_t(sbm->Item[0]); //11
_bstr_t val = _bstr_t(sbm->Item[1]); //ab
_bstr_t val = _bstr_t(sbm->Item[2]); //33
}

Monday, August 24, 2009

Local village fest - pics

Her legs and the old lady

The arguae of old friendsThinking, don't disturbMore thinking, let's close...

Young couples
and the local devils

Sunday, August 23, 2009

Stockholm - day x - Just Animals

Wild squirrel in SkansenReindeer
Bear and her three kids
Surikataa feeding time, sad end of the chickens
Lemur (maki) of Madagascar, wanna go home :(

Stockholm - day x - People & Animals

The crow and the asian love pair
Reindeer in Skansen and their admirer
Baboons, bunny and the blondes
Crocodile and the little Red Riding Hood
Touching the snake and the spider
Gooses of Stockholm
Hiding in the shade

Thursday, August 20, 2009

MSXML append xml fragment as child

A C/C++ method used to append XML text to an MSXML node/element as child. The appendChild function can append only node/element objects. Sometimes it's easier or more convenient to create the XML with text concatenation than by building it using MSXML. And the code:

void appendXmlText(MSXML2::IXMLDOMElementPtr elem, _bstr_t xmlText)
{
//only one root elem is allowed!
_bstr_t xmlFragment = "<fragment>" + xmlText + "</fragment>";

MSXML2::IXMLDOMDocument2Ptr _doc;
TESTHR(_doc.CreateInstance(__uuidof(MSXML2::DOMDocument40)));
_doc->validateOnParse = false;
_doc->resolveExternals = false;

_doc->loadXML(xmlFragment);
MSXML2::IXMLDOMElementPtr root = _doc->documentElement;
MSXML2::IXMLDOMNodeListPtr childs = root->childNodes;
long childCount = root->childNodes->length;
for (long i = 0; i < childCount; ++i)
{
MSXML2::IXMLDOMNodePtr childNode = root->childNodes->item[i];
elem->appendChild(childNode->cloneNode(VBOOL_TRUE));
//VBOOL_TRUE is -1
}
}

Friday, August 7, 2009

What does Chrome stand for?

Google's browser Chrome has a funny meaning in Slovak/Czech. Any guess?

It means "LAME" :D

Don't you believe? Try to translate on your own, try here.

Stockholm - Day x - Soldiers & Guards

The other topic of Stockholm photos will be about soldiers and guards. Enjoy :)




Stockholm - Day x - Street performers

There are many pics of Stockholm I would like to share but would be pointless to publish them by days as there would be so many. There are better ways, like I'm going to try, publish by topics. Today street performers and musicians.





Wednesday, July 29, 2009

Stockholm - Day 1

Arrived to Stockholm Skavsta, a small airport southward, regular and convenient Flygbuss and Ryanair buses to centre, one and a half hour. The central station is huge, buses, trains, metro lines. We bought 16 tickets but used only 4, they were quite expensive (180SEK), we figured that our hotel is not so far from our interests and we don't mind walking.

At 18:00 we arrived to hotel Backfickan, a new, very clean one, own bathroom and toilets (that was a must) and for surprise we had a small kitchen corner but no pans :) After unpacking we headed to see at least few things around the hotel area. There have been two parks, small observatory, few churches, restaurants, pubs, empty streets.

Beach crawling Bratislava

A sunny summer tuesday the party starts after the work ends. We met at the T-Com beach at the Danube: nothing special, crowded, slow waiters, high prices. So the story in photos and short comments:

There are many girls and women, also men to hunt them...

As time passes and beers + mojitos pass, women get more attractive...

And with drinks the ideas come: let's visit the other two beaches! So we had to move on.

Only the lovers can stand the attack of mosquito troops, fortunately the lovely waitress offered us repellent

The last Mohican's at the third beach, too much mojito from now on

Time to get home, it's getting foggy.

Monday, July 27, 2009

Helyszinelok

Egy talan igaz - talan nem tortenet hazai helyszineloinkrol:

Ket rendor halottat talal:
- Te, csak par meterre van a korzethatartol!
- ?!

[... >-|o ...]

- [Radio] Fonok, nem a mi esetunk, korzeten kivul van.
[... megjonnek a masik korzet rendorei]
[Feszkelodes, helyszineles...]
- [Radio2] Fonok, gond van! A pasi lehet meg elt, visszamaszott a mi felunkre!

;-)

Thursday, July 23, 2009

Hecsedli

Mi? Hecsedli, csipkebogyo megszabaditva a magoktol, ebbol keszul a csipkebogyo lekvar. Most ertunk haza Stockholmbol, ott sikerult csipkebogyo dzsuszt inni ;) meg hoztunk lekvart is. Innen jott az elfelejtett tortenet is:

Anyum kapott regen hecsedlit, ekkor tudtam meg mi is az es fozott belole lekvart. Keresztapamek voltak nalunk vendegsegben es anyum adott nekik megkostolni. Keresztapam valoszinu nem figyelt mit kap, megkostolta: Hmm, latod Mari, ez a jo kecsup!

Kovetkezo napokban fogok igyekezni kivalogatni par kepet a kirandulasrol es folyamatosan megosztani valahol. A hetvege lagziskodassal telik majd, azert megprobalok valamit osszehozni.

Friday, July 10, 2009

C/C++ CreateProcess command line param problem

Back to some tech stuff, a simple task yesterday made me much headaches. I needed to run pdftk.exe from our program. I figured out the params and all worked as a dream. Let's implement it:
CreateProcess("pdftk.exe", "a.pdf b.pdf cat output c.pdf dont_ask", ...)

And it did not work. I failed to get any error, any output. Then I tried with cmd:

CreateProcess("cmd.exe", "/C pdftk.exe a.pdf b.pdf cat output c.pdf dont_ask", ...)

And it worked, but why? And I don't want the cmd.exe to be involved. I saw an example where program name was null:

CreateProcess(NULL, "pdftk.exe a.pdf b.pdf cat output c.pdf dont_ask", ...)

And it worked, ok, we got rid of cmd.exe.
WTF? The program name is null and the params, wait, command line!

The flexibility of the CreateProcess() function (and a possible point of confusion) arises when you pass a valid string pointer to both the ApplicationName and CommandLine parameters. This allows you to specify the application to be executed as well as the complete command line that is passed to the application. One might assume that the command line passed to the created application is a composite of the ApplicationName and CommandLine parameters, but this is not the case. As a result, a process created by CreateProcess can receive a value other than its .exe name as its "argv[0]" parameter. The following is an example of a call to CreateProcess that produces this "abnormal" behavior:
   CreateProcess( "c:\\MyApp.exe", "Param1 Param2 Param3", ...)
MyApp's arguments will be as follow:
  argv[0] == "Param1"
argv[1] == "Param2"
argv[2] == "Param3"
Read more about it here. Hope it will save you some time :)

Wednesday, June 24, 2009

Promised pics from my Fed3b

Many months ago I wrote about my new old camera and promised to publish pics from it as soon as I manage to scan them. It happened. But I was disappointed. The quality was not as good as I was expecting, maybe because of the scanner or probably the camera's lens (Industar-61) are not so sharp and in condition. The noise was not so pleasing and quite remarkable for the FP4, I needed to adjust the levels as the scans were quite gray and flat.

This was the first roll of negative I've ever shot, with no exposure meter and with an old camera. Perhaps the quality is not what I expected, but as time passes and the more often I think about the pics... maybe I'll give it one more chance :) So here are the pics:






Tuesday, June 9, 2009

Saveing images from Lightbox

Another hack how to save images from web pages that try to implement some protection,
this time Lightbox.

  • Disable javascript support in your browser, after clicking the image is displayed.
After experimenting, you'll find many other ways how to save images. You can also save images from Lightbox list too (slide shows).

Monday, June 8, 2009

Street & Documentary

5.6.2009, Friday, a day before elections to the European Parliament.



Members of the half military, nationalist Magyar Garda group from Hungary. But the most sad is they have been supported by ~14% of the population (as Jobbik) :S