2011-08-17

Emacs syntax highlighting for PHP and AutoIT

After installing Emacs from http://www.gnu.org/software/emacs/, copy those two files below to your "%AppData%\.emacs.d" directory:


Edit the "%AppData%\.emacs" file and add the following lines:

(global-font-lock-mode 1)
(add-to-list 'load-path "~/.emacs.d")

(require 'php-mode)
(setq auto-mode-alist
(append '(("\\.php$" . php-mode)
("\\.module$" . php-mode))
auto-mode-alist))

(require 'au3-mode)
(setq auto-mode-alist
(append '(("\\.au2$" . au3-mode)
("\\.au3$" . au3-mode))
auto-mode-alist))

2011-08-16

Process execution timing in batch file


Core


Imagine that you are running a process that takes a long time to perform (eg. build, code generation, maintenance batch, file transfer, etc.) and that you want to see how long it takes. You can use the idea from the sample below. I used a simple "sleep" command in place of a real process, but I believe that you will get the idea.


Usage: In order to use the "timediff" command add the two files
timedff-calc.bat and timediff-sub.bat
to a directory that is in your PATH environment variable (eg. "C:\bin").




Helpers


Consider also adding the following batch script to your toolbox:


Testing


Last but not least, please see the timediff-test.bat file for sample invokations and formats supported:


2011-08-03

Those cool user interfaces I wish I had in my software



Hi all,

Long time no hear. I'm back with a new domain and a series of articles about software engineering. Today I'd like to come back on a few user interfaces that I noticed in the past few years and that I really love.







How cool would that be to have the Firefox Error Console in your own application: selecting
whether you want to display errors, warnings, informations?...












Imagine that you have an interface made of business intelligence charts about how you are doing, like in the
Bloomberg terminal or like in the Sonar code profiler...





















Last but not least, my favorite one: the mighty tree-grid! The fatastic mutant control that allows multi-dimensional representation of data. First I saw this was in SAP actually, now it's just about everywhere. Soon in my own sofware :D