Thursday, October 28, 2010

HD2 Energy Rom 10/14 steals battery!

Martin Podval
I really like energy rom for my HD2. After month and half I re-flashed HD2 device from later august energy rom to current one - 14.10.2010. I have chose great looking .Sencity theme, see attached screenshot. I love it.

But the worst surprise wait for me. After two weeks of using I can say that current energy version consumes two times more of battery. HD2 has drain the whole battery within three days, but current version is out easily in one or one and half day. Consider if you need to move on to new version!

I have suspected lock screen of Cookie Home Tab in beta 2 but switching to the normal build-in one didn't improve battery consumption and the only app I have installed is great Twitter MoTweets. Maybe it can be caused by the whole betaversion of CHT. NRG still supports CTH in final 1.8.5 version. So, I'll try it :-)

Wednesday, October 27, 2010

C#: LINQ and Foreach performance comparison

Martin Podval
I'm currently solving performance issues we have programmed within the last milestone. A lot of bugs were already fixed but very interesting issue hasn't.

I have liked and preferred LINQ queries over simple foreach command. Mentioned performance issue was based on the following query.

Entity e = entities.Where(e => e.Id.Equals(id)).FirstOrDefault();

Our list contains few items, for the worst case the only one. It's necessary to make the search because there can be obviously more items. I was surprised by results raised from simple test which is attached at the bottom of current article.

Test simply inserts 1, 50 and finally 100 unique entities to the list. Each entity holds only string identificator (UUID). Each listed algorithm try to find entity placed at the end.

I have tried these approaches:

  1. LINQ query
  2. simple foreach
  3. map having entity id as key

The result is very interesting as attached table and chart show. The map was included only for the confrontation, it obviously doesn't support any querying.

Conclusions: LINQ, foreach or dictionary?



It seems that querying above IList with using LINQ spent significant time to initialize the whole technology. LINQ query can be almost 10x worst than simple foreach for small amount of data. Note that for the described issue, the map is total winner because it has constant search response.



Reject LINQ? No!

The results are not so bad for LINQ as it can be seen. Consider that boundary 7 second is for one million of calls in the case of 50 items within list. So LINQ takes 7 microseconds for one search, foreach six. There is also almost no difference in absolute relations when there is small amount of items within list. LINQ 0.9 microsecond, foreach 0.1 micro. I believe that LINQ can be rejected only for very performance tuned solutions.

Sunday, October 17, 2010

JDownloader: hotfile, rapidshare best downloader

Martin Podval
I was used Free download manager to download my favorite TV series (e.g. IT Crowd or new interesting BBC's Sherlock) from well know data storages, like rapidshare or hotfile. I've tried JDownloader and I'm really impressed all those features which the tools provides in comparison with standard lightweight managers.


Interesting features
  • you can only copy links to download into the clipboard at your favorite forum, switch the focus back to JDownloader, it automatically use these links as datasource, add them into link grabber and than check their online status (if they are downloadable)! You can see their availability in a few seconds
  • support the usage of huge amount of paid accounts. You simply add your credentials into system, add links and it works - download files - you need obviously possess these accounts :-) 
  • build in extract support - if you add links to the data spread into more rars, the JDownloader's plugin can unrar them after successful download and even delete them when unrar is finally done
  • using pair and free account together - assume that you add two simultaneous downloads and trying to download another file placed on the same storage. JDownloader tries to use free account, wait until the captcha succeeded and download the last one via free account
  • JDownloader also creates container and directory wrapping each download so all files are not downloaded into one directory but spreads into new one according to the downloanded file names
  • great plugin support, automatic computer shutdown is supported too. JDownloader can be also up-dated by fine online updater, it simply download all new system parts or plugins
Downsides? Are you still waiting even with paid account?

I was about to uninstall JDownloader because it always waits even if I correctly set up the pair rapidshare account! What happen? Although I inserted credentials, I didn't enable this account globally for the whole application so JDownloader tries to download all files through free account. Rear. Described global switch is that small check button at the left down application corner.

Miniwelt - Mini World, Lichtenstein, Germany

Martin Podval
Do you want to see the best know buildings in the world ever all together at the large garden? Visit Lichtenstein, the small village near Dresden, east Germany. The miniwelt, means "mini world" in german, allow you to do that during one afternoon.


Eifell tower, pyramids, White house, Statue of Liberty, Pisa tower and a more and more. See the image gallery.

What else in the west Germany? Lichtenstein is about 80 kilometers far by higway E40 from Dresden. The town, totally destroyed by World War II. The historical center is now, 55 years later, amazingly rebuilt, worth to see. Note that all shopping centers are not opened on Sundays in Germany :-)

About me

Powered by Blogger.