development blog for the wicked stuff we encounter

I recently found a way to do a distinct operation on the DataTable class in dotnet 2.0: DataTable products = GetProductList(); DataView dv = new DataView(products); products = dv.ToTable("products", true, new string[] {"ArticleId","ArticleName","Description"}); And the products DataTable will be a distinct list of all products (in this case, one product can belong to two categories as well - so there are duplicate items with different price, attributes etc.).

I have a true love for Wikipedia: I always wanted to take the power of information with in my pocket. My good old iPod, which i bought in 2005 was not good enough for the task: you'd need to install a linux on it to get the work done - well, Linux is fine on the Desktop, but not my gadgets! :D The world had to wait until 2008, when Mr Patric Collison came out with the ultimate software, an interface to the wikipedia bulk xml based database dump. On his site, you can find all information on installing Wikipedia on your iPod Touch or iPhone. I advise you to download the English dump file via The Pirate Bay, the best torrent tracker on Planet Earth. I created a dummy video about my progress:

I got my iPod Touch as a gift from my previous company for Christmas, and I'm so happy with it - thank you guys again :D Being a geek myself, of course I found a way to hack it; and optimized my sites and stuff to be usable on the new platform: Apple Safari Mobile. With the new 1.1.4 software upgrade, you can add nice webicon to the Touch's interface: All you need to do is to create a custom PNG image like this one:  and reference it in the parent webpage's header section: <link href="/img/apple-icon.png" rel="apple-touch-icon" type="image/png" />

Create a new file in init.d (i like nano for file editing): nano /etc/init.d/makefull100mode type in: ethtool -s eth0 speed 100 duplex full autoneg off exit. in shell, type: chmod +x /etc/makefull100mode update-rc.d makefull100mode defaults when you reboot the machine or restart the network stack, the interface will come up with true full duplex.

I like to use my own User Controls and Web Controls in my web projects, and when I was building the current one on a lovely morning at 4am, Visual Studio 2005 bombed me with 365 warnings (one for each day of the year:))  stating there's a type conflict in my project. What the hell?:) I really hate errors and warning messages, so I checked what happened:  when i created a web control in my project, and dropped the control to a webpage in design view, visual studio 2005 added the /bin/projectname.dll as a reference to the project itself - and when i was building, the two dlls (the old and the new) had the same types. the solution was to remove the self-reference... update: i found the same error reported on Microsoft Connect.