Catching stdout/stderr inside process

Last time I stuck with catching 3rd party error messages to log them manually. Library I’m using (Stackless 3.2.2) is doing all print out and error logging to stdout/stderr. This is very inconvinient for GUI app, when there is no console, but sometimes we need to get last printout. Then, I found good, working solution to catch stdout/stderr inside process and analyze/display it manually. There is code for this solution attached, feel free to use it as you want. Solution […] Continue reading

Why you should avoid using PHP

Just a bunch of links to another articles about why PHP sucks, I totally agree with them. In the meantime, I’m going to take extensive look at Django – Python seems to be one of best designed high-level languages I’ve seen since now. Enjoy! Why PHP Sucks by Darren Stuart Embry I’m sorry, but PHP sucks by Jonas Maurus What I don’t like about PHP by Edwin Martin I hate PHP by Keith Devens Experiences of Using PHP in Large […] Continue reading

Thank you, Anonymous

Anonymous logo

I didn’t take part in anti-ACTA protest on my blog. That is – I didn’t hide this site under black overlay, claiming it will save free Internet. Reason is easy – with about 95% of visits from outside Poland there is no reason to complicate your lives. Yet still, I dedicate my heart to thank all and every person standing against polish goverment, no matter what reason is. I want to thank all DDoSers, hackers, people standing in front of […] Continue reading

Tablet PC – how it should be

As I promised in 2011 summary, this post will be about Tablet PC devices and how I see their future in current market. Well, I’m not a witch and I can’t see future, but my guesses and wishes may not be worse than any existing. To be honest, my first contact with Tablet PC was in 2006 and I’m using touch-enabled notebook since 2009, so there is some experience base about TPC market and usability. What user requires First and […] Continue reading

Mobile 2011 – Summary

2011 was quite interesting in case of what changed in mobile world. Now, when it’s several days after end of 2011, I think I’m ready to summarize what was changed, shown, presented, prepared, announced and designed during last year. This summary is category list, with winner in each. Categories are not always typical for comparisions like that. We’ll start with good things. Warning: this is from my point of view, it may not reflect opinions of any other person. Try […] Continue reading

How to change timeout for WebClient in System.Net

As API says: you can’t. As practice says: you can. It’s not obvious and it relies on using HttpRequest internally, but method is simple and work. Everything you have to do is to derive from WebClient class, override GetWebRequest(Uri) method and set timeout in here. Example implementation with constant timeout: protected override WebRequest GetWebRequest(Uri address) { WebRequest w = base.GetWebRequest(address); w.Timeout = 1000 * 60 * 30; // your timeout return w; } Of course, you can add param in […] Continue reading

New year, new actions

It’s one of most popular topics on blogs. Well, date change is good time to summarize last year achievements and make plans for next 365.2426 days. How it usually ends – we all know it, chance to really get everything done are next to zero. Learned by last several todo lists, I’m not going to make the same mistake again. So, in 2012, no plans and no to-do But, still, as summary of last year, I found some patterns I […] Continue reading

Back on the Internet

Hello World again! I’m back with new, fresh blog, because I’m literally unable to find any recent backup of my old blog. It seems like installing MySQL via Microsoft Web Tools have copid all previous MySQL databases to it and changed configuration for them. I have copy only from time before MySQL installation – it means about half a year of lost. This is the reason to not leave a hole in history, but just start over (again). My comeback […] Continue reading