Posts

Tools for Wickets Development with IntelliJ's Idea

One of Java's most popular web frameworks is Wicket. If you want to start developing Wickets let me guide you through the installation of 2 plugins which will make your development much more productive. I will write the steps to install these plugins, but I will write them in a short way, if you want a more detailed guide please refer to this page: Installing Wicket Source 1. IntelliJ --> Settings --> Plugins --> Browse Repositories --> Search for "Wicket" --> Install Wicket Forge & Wicket Source. 2. Restart IntelliJ 2.5. You have installed the 2 plugins and you are set to go (the next steps are highly recommended but optional) - WicketForge lets IntelliJ understand Wicket (you can now start a new Wicket file etc), WicketSource lets IntelliJ understand the html wicket ids, which means that you can click on a wicket:id and jump to it's definition in the code / html. The following steps are optional and will enable your browser to ...

Start Working with AutoIT

I have decided I needed a quick GUI creator which can create a small exe file displaying the GUI, with no system dependencies like a .NET framework or Java runtime. What options do I have for a Quick GUI Creator? Maybe there are many options I am not aware of, but after extensive searching I found these two: Auto Hot keys AutoIT (Saw some recommendations to try Delphi or Pascal for this task but I passed) Both tools began from the same code source, autohotkeys branched off and continued to be open source while AutoIT is more commercial. I have compared the two (well, not actually compared, just google'd out other's comparisons) and found out that the AutoHotKeys is slightly better and is more open sourced (which makes it the better solution) but lacks in one field which is crucial for me - the script syntax is awful!  That tipped the balance (as a programmer i couldn't stand AHK's syntax) so I chose AutoIT. How to get Started with AutoI...

Quick GUI Creation

I am working on a project of recreating an old game of Sierra called King's Quest IV - The Perils of Rosella in 3d , I am not working alone, we are a whole team working together. We are using a gaming engine called AGS, which helps in creating games - especially quest games, anyway, this engine enables us to also play video files, but it supports natively only the compressed Theora format, which is an open source video codec which is the equivalent of DIVX just open source (Later on, Google bought the rights for this codec, and have [graded it and are actively using it, but they have left the previous version for the joy of the public). So our graphic designer has created several video files which then she wanted to convert to the Theora format, but apparently it is hard to find a decent codec converter which doesn't need a license in computer science in order to just use it, why? because it is an open source project so anybody who wants to use it needs to be an IT ge...

Amazing PHP site generator

Let's say I have a Database with data. Now, lets assume I want to have a site around this database, which users and admins can access and have access to the data using nice GUI'd tables with the specific data I want each group to be exposed to. When I think of designing such a site, I think of the following requirements: The site must be lightweight , there is no need for any heavy "Engine" here. The site should be built using good coding practices, so I want it to have an MVC engine. I want not to worry about the sql queries, I want not to worry about sql injection, I want DB schema changes to be minor (coding wise) in short - I want an ORM . I want some CRUD functionality I want a nice GUI which means using a lightweight Templating system like Smarty which will preferably use great JS libraries , Twitter Bootstrap, font Awesome etc . One would think I am asking for too much - well, nothing is too much, it just will take a lot of time to develop th...

APK Viewer

In a previous post I wrote about "How to read Android apk contents" , since then I have tested those apps and have drawn conclusions. There is no need for all of those apps, all one needs is two main apps which can do everything one might want with his apks! The clear winners are: APKInspector APK Multi Tool These two application complement each other and let you view any aspect of an APK (apkInspector) and change it as you wish (apk multi tool). I have explained a bit about APK Multi Tool in the previous post about reading android apk contents and so I want to clarify a bit about APK Inspector. APKInspector is a python application which runs only on linux and needs several packages to be installed for it to run. The above requirements can frighten many people so a virtual box (Oracle virtual box) was created using the  Ubuntu OS and all packages (as well as the main app) already are installed on it. In order to download this virtual machine ...

Java Stopwatch

In many cases, when programming, i want to measure the time some block of code has taken. This functionality is needed in many projects I work on, and on each project it is sometimes needed many times. The first few times i have done it manually, use getTimeInMillis() and deducted the end time from the starting time. When it occurred several more times I have built a Stopwatch class, which is the path many have gone on before. After tweaking that class several times, as my requirements became clearer to me, I have understood that I can do a decent job in the stopwatch class, but I can use a robust and maintained framework which has done a nicer job than mine, that was the stage where i went googling it out. And i have found many classes implementing the stopwatch functionality, after narrowing them down, 3 frameworks remained: 1. Apache commons 2. Spring 3. Google's Guava Which one did I pick? What are the differences between them? Basically th...

Localize Android app

You have created this great android app. Then you discover that the world is actually flat and your app will be downloaded by dudes all over the planet, and they want your app in their own language. How can you localize your app? Be sure that all of the text in the app is using strings.xml, please note that the actual java files as well as the layout xml files should refer to the strings.xml file. Create a directory for each language you want your app to be localized to, so if you want your app to be localized to 11 languages you will need to create 11 additional directories; These directories should be located in the "res" directory and should be named values-XX where XX is a 2 letter country code, which you can find here:  http://www.loc.gov/standards/iso639-2/php/code_list.php Copy your strings.xml file into each one of those directories Translate each one of those strings.xml files to their relevant languages (I managed to have those files translated i...