Firefox 1.5.0.1 Automatic Updated

After started Firefox for 5 minutes, I got a notification for the latest version update Mozilla Firefox 1.5.0.1 Release Notes. Great! I don’t see any officially announcement to this version yet. Firefox is now the most up-to-date software in my laptop. It can beat update speed of anti-virus software.

Technorati Tags: , ,

Post2Blog 1.12 RC5

Wow! You must see how good Post2Blog can bring to me. The reported bug was fixed in 2 days!!! Today, Post2Blog 1.12 RC5 is available with minor bugs fixed to handle https URL correctly.

Technorati Tags: , , ,

Delete PC Directory in ABAP/4

Example:  We will delete directory ’Temp’ on drive C:

CALL FUNCTION ’GUI_REMOVE_DIRECTORY’      
EXPORTING         
DIRNAME            = ’C:\Temp’     
EXCEPTIONS         
FAILED              = 1         
OTHERS              = 2
            &

Create PC Directory in ABAP/4

Example:  We will create directory ’Temp’ on drive C:

CALL FUNCTION ’GUI_CREATE_DIRECTORY’      
EXPORTING         
DIRNAME            = ’C:\Temp’     
EXCEPTIONS         
FAILED              = 1         
OTHERS              = 2
              . 
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
ENDIF.

How to Get Name of Months in ABAP/4

You can get name of months by select table ’T247’

DATA: it_month_name TYPE TABLE OF t247 WITH HEADER LINE.

SELECT * INTO TABLE it_month_name FROM T247
WHERE spras = sy-langu.

or using function module ’MONTH_NAMES_GET’

DATA: it_month_name TYPE TABLE OF t247 WITH HEADER LINE.
CALL FUNCTION ’MONTH_NAMES_GET’
EXPORTING
LANGUAGE = SY-LANGU
* IMPORTING
* RETURN_CODE =
TABLES
MONTH_NAMES = it_month_name
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Ban IP that makes too many password failures using Fail2Ban

Today I have just found that my colleague’s server was hacked by someone to run IRC bot. Cool! This server didn’t run any services except only SSH. It is very secure. Anyway, after investigating /var/log/secure, I found out lots of login failed attempts from unknown sources. Eventually, the last attempt was successful and he/she changed root password to something I didn’t know. Fortunately, single user mode helped me to recover the machine back to my control again.