Archive for 2012

Eclipse + PDT + Mercurial + Win 7 = Very slow. Solution

2012-03-13   

I had this MF problem: I was using latest PDT (3.0.x) bundle, with latest Java on Windows 7 64 bit. When I was working on projects with Mercurial source control I've experienced huge hangs/lag when I was clicking on the project folder/name or right-clicking on it. After hours of frustration I finally found a solution:

  • rename .hg dir to something different for example .hg-tmp
  • refresh the project in Eclipse
  • Create a linked resource ( New -> File  -> Advanced -> Link to file in the file system ). Name it .hg
  • on filesystem: rename .hg-tmp back to .hg
  • refresh the project in Eclipse

Now things should be fine.

I am not sure why exactly above steps have positive effect but it has something to do with .hg dir slowing down Eclipse/PDT (even thou I had no hg plug-in installed in Eclipse (I use external tool -- TortoiseHg)).

Новите неща в PHP 5.4 -- I-ва част

2012-03-04   

Изненадващо (поне за мен) онзи ден забелязах, че е излязло PHP 5.4. След всичките проблеми покрай разработката на PHP6 (за това ще има отделна публикация) си мислех, че PHP е обречено да се развива единствено в 5.3.х клона. За щастие, здравият разум "най-сетне" надделя и PHP "core" разработчиците решиха да backport-нат някои от нещата от PHP 6. Поставил съм "най-сетне" в кавички, защото идеята им беше нещата да са излезли Q2/3 на 2011, а се появяват чак сега, но важното, все пак е, че вече са налични.
По-важните неща първо "съвсем" накратко:

  • Добавена е поддръжка за traits (характерности). Те представляват (more…)

Downloading Android source as zip

2012-01-27   

I needed the source of Anroid Froyo in order to be able to debug it in Eclipse. On the official download page there  is a description how to download it under Linux (or cygwin) but at the time I did not had either so I tried to find plain, simple, good old zip that contains the entire source but it took me quite some time googling in order to find a site that provides such downloads. In order to save you from wasting time here it is:

http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

If you need the source in order to debug it in Eclipse: download appropriate JAR (for example android-2.2_r1.1-sources.jar) , open it with zip and extract it in <android-sdk-dir>\platforms\<android-version>\sources (you may need to create "sources" subdir). Restart Eclipse and debug should work.