Mobil Mewah

Salah satu sumber Inspirasi.

Tuesday, 2 December 2014

Lightweight Battery Monitoring in Debian

I use Fluxbox in my desktop laptop with Debian 7 OS. I need a battery status monitor which is easy to spot the battery status. So i found this small application, xbattbar which can monitor battery status via acpi which many laptop support nowdays. Just install and run it with the startup of the fluxbox. To run it call the application with : $xbattbar To run with acpi : $xbattbar -c Here are some preview of my desktop. The green bar below is...

Friday, 14 November 2014

Centralized vs Decentralized application portfolio strategy

In managing IT startegy, especially Application portfolio, there are 2 management style which are Centralized and Decentralized in decision making. And for better understanding deeper about the 2 style, there are 4 type matrix for the strategy in detailed view using below matrix. Source: John Ward and Joe Peppard, Strategic Planning for Information System p.336...

Tuesday, 11 November 2014

Highlight text in PDF

We all use pdf, because many documents also use pdf for their publishing formats. Even ebooks come with pdf, and sometimes when reading it, we need to jot down notes on it or highlight it as we used to with a books. So with pdf, we can do highlight the important one, and even the original pdf still intanct. Here come the application that can do this. Xournal is a pdf highlight application, which create a new file to overlay the highlight of pdf....

Saturday, 8 November 2014

IT Cost by Critical Success Factor perspective

In measuring IT cost, we can also use Critical success factor (CSF). This can be use to measure the startegic performance through IT which relate the CSF with the IT cost needed. With this CSF, organization will have specific target and measurement within IT strategic investment decision. IT Cost by Critical Success Factor matrix ...

IT Balance Scorecard perspective

When relate IT to cost, IT always relate to High Cost, especially in initial stage. We need to measure the value of the IT investment made by company related to company performance and metrics, especially understandable by business people. We are IT people talk about technical performance, and Business people understand about money, reveneu, profit, and other financial measure. So there is gap between IT and business. Coma the Balance Scorecard...

Saturday, 25 October 2014

Django optimizing Memcache and Nginx

I have a django application which complete and ready to deploy. One of the requirement are : It will run 24x7 with minimum interupption Down Time will be only 3 hours every monday User will access concurrently around 17 users So with this requirement, i want to have my django app high performance without glitch and fast. What already implemented in code are using some method which are : Using Postgresql Database in a separate machine. Using...

Monday, 6 October 2014

PDF generation in Django Apps

One of the beautiful thing when using Django is the rich set of application ready to use as a plugin in your project. Is it use at is or modify/extend with a little effort. One of my project need to generate a PDF and the time is come to get some Django PDF application plugin. So Django documentation officially told to use reportlab. I try the reportlab, but got error with first try from the code in Django documentation stated here. Then look further, i found pisa is very neat to generate a PDF for you with a common Django way. How does pisa do the job? Well it still need reportlab, and html5lib , and it just convert your HTML output into pdf...

Wednesday, 1 October 2014

Display disk usage in graphical way

Recently, i got my disk usage 100% in my home folder. With using only du in linux, we got only text output about the disk usage. I need to see which folder occupy most of the disk space in a quick way, in a glance and in an interesting way, using graphical representation. So i search for the application to do this in linux, and i found Baobab. This application name not imply its usage, but very neat. We can see the disk usage in a graphical way,...

Sunday, 28 September 2014

Shellshock Vulnerability CVE-2014-6271

The Bash Shell have a new exploit named shellshock. From Thursday 25 september 2014, Bash have a bug that realy make everybody paranoid. The exploit is CVE-2014-6271 which enable the attacker to run any code even without authenticating to the server, especially with DHCP services. Stephane Chazelas discoverd this vulnerability in bash, related with the how the environment variables are processed by bash and this affect many of the linux / unix system which by default utilize bash shell. This affect Bash released 20years ago back to version 1.3 Lucky for me, i am in the BSD bandwagon, which by default not using Bash, but using tcsh or csh,...

Tuesday, 2 September 2014

Control Cache directive for Web Server

When dealing with a Web application, the web server is our gateway to the application server. The best practice to separate the load between application code and static files are the task of the web server. This to make sure the application server just handle the thing they good of, the application.  Let the burden to handle the serving of static files be lifted from the application server. Have mercy for the application server. So the best practice is the static files handled by web server directly, and the application generated content goes to the application server. Now the load already separated. Now to get more of your application...

Monday, 16 June 2014

Add Vmware client as a service in windows

So how to make Virtual machine running with VMware workstation run as a service with windows. This will allow a VM keep running when log out form windows sessions. We can do this with windows resource toolkit to register a service in windows server. First download from microsoft website the Windows 2003 resource tool kit by search in microsoft website windows 2003 resource tool kit. Then after install the resource toolkit, we need to run the instsrv.exe to register, and use srvany.exe . The default installed to program files folder. VMware can be initialized within command line, so we use the command to start the VM from the service console. Here...

Monday, 2 June 2014

Multiple Network Configuration in Linux

I have a Debian linux OS and use it in my office and in my home. The network configuration i use is using static configuration. I have problem with this, when i swicth from home to office network, the configuration is different, the routing also different. Everytime I switch network, I have to open the configuration file in /etc/network/interfaces  and enable / disable configuration line. So I do some research and found that we can create...

Saturday, 17 May 2014

Use Bash in FreeBSD machine

FreeBSD using C shell for the root user, and the user got sh for their shell by default. And there are so many shell can be used. But why you want to use bash at the first place, in FreeBSD terminal ? One thing for sure, every Linux distribution by default using Bash as their shell of choice. This will get some compatibility if you create script which not run in Bash. So the options was you use bash or you change your script. So the option to...

Thursday, 15 May 2014

Git Branching Model for Great Project

I got a development bump when using GIT. Currently i do the master branch only with git and develop all in master branch and log back to the master branch. Now i start using the git branching for development of new feature, and all the way, i got confuse if i merge back to master, the current running stable version i cannot revert. I remember the git tag usage, so i can tag the point where the code was stable, the same way when using svn for source...

Wednesday, 14 May 2014

Django Collectstatic usage

After some project completed and had a common project template layout directory , usually we will want to reuse the previous project template. But there are some static files which not belong to new project anymore. This needs time to fix. The question is, can we put the static files for an application in their own static folder, not in the project static file it self? so when we use the app in django project, we also no need to copy to project...

Friday, 18 April 2014

The Best Compression available

When working with files, especially large files and need to be transfered over the network, one optimization can be done is with the file size. We can compress the file to the smallest size, but how small is small ? So i look up for some comparison about the file compression to be used in linux system. For usual compression in linux, the compression used was .tar.gz or .tar.bz2 . I prefer use .tar.bz2 because better than .tar.gz . But you know...

Monday, 14 April 2014

Heartbleed SSL Vulnerability

Recently the IT Security community had a security event  about OpenSSL bug which is widely use by server that implement SSL/TLS secure connection. The bug enable an attacker to see 64k size of memory content of the server without leaving a trace. This including the primary data, which is private key of the encryption. The bug revealed by Neel Mehta of Google's security team and reported the defect on April 1, 2014 to the OpenSSL team. The Heartbleed name it self come from a Finnish cybersecurity company, which also created the bleeding heart logo, and launched the domain Heartbleed.com to explain the bug to the public, which called codenomicon....

Monday, 7 April 2014

Text To Speech in Linux Debian

Do you know that in linux, you can enjoy a good quality of text to speech application with good quality like the one available in Windows. And just like other high quality open source software, these application are free to use. The one i found out and used it is quite easy to use. I will share it in here so you can benefit with the application. First you need libreOffice, which will become the GUI. Neat right, because we usually use libreOffice...

Tuesday, 1 April 2014

Debian linux Routing configuration

In Debian linux, i need to add some IP specific routing config. I have a default route for internet, and have other gateway for other services to access. So i need to be able make the routing configuration is injected when the network services loaded. How to do this are, in your /etc/network/interfaces add this : auto eth0 iface eth0 inet static   hwaddress 00:1b:24:b0:b7:8f   address 192.168.113.109   netmask 255.255.255.0   broadcast 192.168.113.255   gateway 192.168.113.224   up route add -net 172.16.0.0 netmask 255.255.0.0 gw 192.168.113.204   up route add -net 172.30.0.0 netmask 255.255.0.0 gw 192.168.113.205  ...

Wednesday, 12 March 2014

Upgrade from Django15 to Django16

Here again I am trying to upgrade my application from Django1.5 to Django1.6 which I documented here. The bump I found in my code was the url import in urls.py Before we import urls like this : from django.conf.urls.defaults import * In Django1.5 there was warning that this will be deprecated. Now in Django1.6 , the app wont start. Instead we must use this for the import : from django.conf.urls import * The package moved to other place....

Tuesday, 11 March 2014

Testing web application performance

For developers, we need to know how to test the performance of our application. Some tools are available to hit your application and know about the maximum performance you can get. Of course the test done on the same machine of production or just in your local development machine. Why we need to make this test ? Actually is it a simple question. For most of the test done, we need to know the baseline of the application, and if we make some improvement, we need to know how it is affect the application performance. For new application baked from your development lab, of course the result give use some baseline for the application performance. After...

Sunday, 9 March 2014

Upgrade Django 1.4 to Django 1.5

After successfully upgrade my Django app from using Django 1.3 to Django 1.4, now i try to upgrade my app to be running Django 1.5.5 Some method i use are : + OS Debian 7 + Python 2.7 + Virtualenv Django 1.5.5 released around October 2013. Here are the Official Release Notes The deprecated feature was the new way of handling url in template. What i got was the project template still the same with Django 1.4.10 . After running I got bumped...

Saturday, 8 March 2014

Virtualenv with Virtualenvwrapper power

Work with python, you should know about virtualenv which enable us as python developer to build great thing with different setup. For the newbie, a quick info is you can run your app with different python version and different package version without version conflict. For example we have twitterclient application. It build on python2.7 and Django1.3 . Now i need to test it using Django1.4 . So how we do this ? We not need to uninstall the Django1.3, but we use virtualenv, and use virtualenvwrapper on top of it. It makes developer life easier. Lets dive in to the usage. First you have pip already installed, if not install it using : # easy_install...

Sunday, 26 January 2014

Resize LVM partition in Debian Linux

I have my Lenovo T430 laptop with Debian Wheezy installed. My setup was a root partition / with 5Gb size, and 70Gb /home partition.  I use Fluxbox desktop in my laptop and happy with the customization i can do. The problem now is the root partition is getting full as the application installed under root partition. So i need to extend the size. Lucky i use LVM in linux. so i can just resize it. Always keep your installation CD because it is needed now. Some step i make i documented here so i can refer back to the procedure. here we go the step i was done : 1. Boot using the install CD. 2. Choose advanced - rescue mode 3. Do not select...

Tuesday, 21 January 2014

Install Node JS in Debian Squeeze

Using my debian 6.0 squeeze, i need to set node js machine. Debian Squeeze currently don't have any package for node js. So we need to install it manually using the source code. The node version are v0.10.24 , you can download from www.nodejs.org the source code. The to prepare the compilation make sure you have the curl package, openssl and SSL lib. $ sudo apt-get install curl openssl libssl-dev Then start install node js : $ sudo ./configure --openssl-libpath=/usr/lib/ssl $ sudo make $ sudo make test $ sudo make install $node -v   You will get the node version. And start install node package using NPM, which is included in the...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More