Posts

Showing posts from 2010

Best free FTP program

There is no debate, if you need a good and free FTP program just run and download filezilla, and don't let anyone else tell you otherwise.

But what will you do when filezilla fails you?

Which program will you use?


It seems that most free FTP programs are shitty (sorry for the word - but they really are), but if filezilla isn't a solution try the following next 2 best options (which are reasonable enough even though they are under filezilla's league):
* CoreFTP (the free version)
* LeechFTP


If you have any other (better?) free ftp program, please add it in the comments.

King Quest Remakes

So you want to be king.

If you ever have that nostalgic mood and want to jump and play those good old king quest games, there is no need for a dosbox and the old text parsing games.

King Quests 1-4 have beautiful remakes with improved plots and a much better point and click interface.

Who created them? - fans.

Where can you find them?
It appears that three different groups had taken on themselves to remake the quests.

King Quest 1 & 2 were remade by AGDInteractive

King Quest 3 was remade by infamous adventures

King Quest 4 is being remaked by Magic Mirror Games

Iterate over your whole DB using hibernate

In this post I'll assume you already have your hibernate object corresponding to your DB schema.

What will we try to achieve here?
I will iterate all of the DB using hibernate objects, and here is a little java program which will attempt to achieve just that:

import org.hibernate.cfg.AnnotationConfiguration; import org.hibernate.HibernateException; import org.hibernate.SessionFactory; import org.hibernate.Session; import org.hibernate.Query; import org.hibernate.metadata.ClassMetadata;
import java.util.Map;
/** * Created by IntelliJ IDEA. * User: avih * Date: May 11, 2010 * Time: 7:43:37 AM */ public class Main { private static final SessionFactory ourSessionFactory;
static { try { ourSessionFactory = new AnnotationConfiguration(). configure("hibernate.cfg.xml"). buildSessionFactory(); } catch (Throwable ex) { throw new ExceptionInInitializerError(ex); } }
public static Session getSe…

The perfect PHP coding environment

Q: Which tools should one use in order to have the perfect PHP coding environment?

A:
1. Download XAMPP which contains Apache web server + php + perl + Mysql and much more.
http://www.apachefriends.org/en/xampp-windows.html

2. Download eclipse PDT (php IDE).
http://www.eclipse.org/pdt/

3. Install & configure a debugger for PHP (most recommended is Zend's debugger).
http://www.eclipse.org/pdt/articles/debugger/os-php-eclipse-pdt-debug-pdf.pdf

4. Install fiddler - a great web debugging proxy.
http://www.fiddler2.com/fiddler2/

5. Install wireshark if you have an external component (like an exrternal DB) and you want to sniff the traffic.
http://www.wireshark.org/

6. Configure your fiddler to catch traffic in your localhost (If your DB is internal).
http://blogs.microsoft.co.il/blogs/shair/archive/2008/12/15/how-to-use-fiddler-on-localhost.aspx


That's it,
You've got the tools,
Now it's all about you...