ICC Virus Cleaner

8 09 2009

Recently, one of my computers got infected with this Internet Counter Check virus. When it infects a pc, the virus traces any ftp client for saved passports, and simulates an ftp client. It logs on automatically and infects every php and htm file it finds.

Yesterday, I cleaned 1800 pages of infected files via an automated tool I wrote. You can grab it from the following URL:

http://www.filefactory.com/file/ah682h4/n/Cleaner_rar

I made it quickly, so it doesn’t have an auto-search function. You can use windows search function for php and html files, and drag it to window for processing.





Creating a PostgreSQL Database with TUniScript

8 08 2009

Amazing, just amazing. Some software and some developers can not be praised enough. I’m talking about PostgreSQL Database Server, and its excellent features, and its price.

I newly started using PostgreSQL, and believe me, it is one of the most advanced database server in the world.

Combined with a form of fusion (Universal Database Access Components – UniDAC), the Delphi coders found all the energy the would ever need.

I’m to explain how to create a PostgreSQL Database with TUniScript component. I am unable to find a real world example when I first started using UniDAC components.

So here we go. Drop TUniConnection, TPostgreSQLUniProvider and TUniScript components to a form.

Set TUniConnection’s properties, but leave the Database property blank. Set UniScript’s NoPreconnect property to True, and paste this into the SQL property of UniScript component.

DROP DATABASE IF EXISTS "mydatabase";
CREATE DATABASE "mydatabase"
WITH OWNER = postgres
ENCODING = 'UTF8';

Because we didn’t specify a database while setting properties of UniConnection component, we should set it in our code after our database is created:

UniScript1.Execute;
Sleep(5000); // Delay for database creation
UniConnection1.Database := 'mydatabase';

I have added another TUniScript component for adding tables, and it includes table creation data and referential integrity information. After database is created, I’m calling it to create tables:

UniScript2.Execute

And that’s it. We have created a PostgreSQL with Delphi and created tables at runtime. UniDAC is an extremely powerful native component set for Delphi.

A must for a serious programmer.





An update system with an idiotic approach.

13 06 2009

Let me introduce you an update approach for disturbing your users, make them suffer and increase potential murder count in your userbase:

1. Make the updates hidden.
2. Require registration for updates. Who cares public usage?
3. Use InstallAware for your software and update distribution platform.
4. Expect all of your users to have broadband internet connection.
5. Force your users to redownload 500 mb’s of update everytime with a new installation. Yes, there are no computers in this world which are part of a development team, and there is nothing called as a network installation.

If a huge company like Embarcadero (CodeGear?) follows this approach, probably it is a right thing, and you should follow them too.

Do anything you want, but stay away from me.





Delphi 2009 Update 1: Now we’re talking

19 01 2009

The guys at CodeGear have a habit of providing unstable products for a long time now. Delphi 2007 was not an exception. But I can assure you that, with the latest update to Delphi, it became really beautiful.

With update 1 for Delphi 2009, the IDE itself became extremely stable and robust. I really like it.

For the old-heads like me, forget about component palette. I did, and I do not regret this decision. I got lots of “wow” effect with the new features came with this version of Delphi.

Delphi 2009 is a really beautiful product. Delphi has really returned this time.

Try it, buy it, use it. The future is bright for us, Delphi developers.





An excellent blog about coding

5 12 2008

I don’t know why I didn’t put a link to it (I think I’m quite busy), one of my best friends (probably the best one) since 11 years, and he has an excellent blog on programming and IT related stuff.

I’m talking about Bora Bilgin, who is currently studying on computer technologies at Niagara College, Canada. His blog has a few posts, but it is friendly and highly informative. He is working with lots of programming languages, especially on Delphi and C++.

Check it out. You will be pleased :)

Bora Bilgin’s blog

Keep coding :)





Innovation…

28 10 2008

Product: Delphi 1 Client/Server
Year:1995

Delphi 1 on Windows 3.1

Product: Delphi 2009
Year:2008
Delphi 2009 on Windows Vista

As you can see, this is really a dedication to innovate. Same components after 13 years. Go Delphi! Go Embarcadero! Go Developers!





Rick Astley, you rule!

4 10 2008

According to BBC, Rick Astley is shortlisted for MTV “best act ever” award. I really hope this voting works well.

I realized that, I love this guy more than other “stars”. He is certainly at my top #5 stars of all time, by heart.

Go Rick! I love you!

Note: There are some guys at http://www.bestactever.com/ who makes voting easy. Just for info and educational purposes, I do not recommend cheating :)





Delphi 2009.. Cool but, wtf?

31 08 2008
Delphi 2009

Delphi 2009

This is the new version of Delphi, called 2009. Its features are good, but wtf? CodeGear developers certainly deserves a “Software complexity award”. Where’s the simplicity of Delphi 7? Clean design?

Good luck with an IDE like this.





Why .NET sucks

3 08 2008

Alright, .NET is a great framework for doing stuff, the easy way. It supports lots of classes, easy to to learn methods, and enough power to create a multi-threaded server.

But yesterday, I have ported my Excessive CD Manager (a software which lets you choose applications, and launches it to install) to Visual Studio 2008, and used .NET Framework 2.0. I have burned a cd, and tried it at my brother’s pc.

I tried there because, it is almost certain that the cd will work in my development environment.

But I had a surprise, because it just didn’t work. I have then realized that I have to ship .NET Framework 2.0 with my executable.  My executable size is only 160 kb, my cd is filled with software (around 690 mb), and there is no room for a huge framework like .NET.

I wish we could have an option to include only the classes we need, which will be embedded to executable. .NET framework entirely sucks with this approach.

Good old Delphi. I love you. I’ll always love you. Forever.





Fallout 3: A post nuclear F***ing FPS.

27 07 2008

We were always skeptical about Fallout 3, and it turned out that we were right.

Here’s the trailer taken from game:

http://www.gametrailers.com/player/36197.html

To all who said Bethesda will do Fallout 3 great: F*ck you.

I’ll go fishing today, to keep myself happy.