Mobil Mewah

Salah satu sumber Inspirasi.

Friday, 11 September 2015

Make fabric using port other than standard ssh port

For deploying source code to production or UAT server , the fastest way is using fabric which we can automate, as we are developer are lazy :). Fabric can run all the same command you do to a server or a lot of server automaticaly, no typo and more workflow type of update. Don't do it manualy by typing ssh login and run command. what if you update to 100 production server ? are you still a diligent developer ? Fabric come for the help and i use...

Saturday, 29 August 2015

Django Choice form filtered base on logged username

With Django we have form which have many feature to faster development. I usually use Django Model Form, which get the meta data from a model and spit out a form ready to use and rendered to client in HTML form. Now i need to get a choice field in django , but the choice field get from a foreign key, and need to filter it base on the username logged in to system. So the purpose is to get a list of choice which only available for the specific...

Tuesday, 18 August 2015

Check windows process with Nagios Monitoring

I need to check a process running on windows machine from a monitoring server. The monitoring using Nagios. I want to get alert when the process is not running on the windows machine. This can be achieved by using Nagios NRPE client++ . Assume NRPE client++ already installed. To test on nagios machine do this : ./check_nt -H 10.10.10.10 -p 12489 -v PROCSTATE -d SHOWALL -l w3wp.exe If running, it will return : w3wp.exe: Running if not running, it will return : w3wp: not running this so simple is it...

Tuesday, 11 August 2015

Monitoring DNS with a vbscript

DNS on windows usually come with Active directory service. But also can used to query external Domain name as long as the server have internet connection. Hostname entries in DNS also rarely changed and some use local cache with TTL from server. Somehow, we need to monitor a change in DNS query result with alert when these changes happend. Let say it is other Domain name which not in our control, we want to know immidiately when the Address...

Sunday, 17 May 2015

Generate Highchart with Ajax request

Bar Chart Recently i have to create a dashboard. And a dashboard should have a graphical interface that showing chart. I look for the alternative solution from Flotr , goggle chart, and Highchart. After some search, i conclude to use highchart. Some criteria i made in the search are : Running in javascript Work in any web browser Can use ajax to load data Have multiple chart options Good documentation Full feature and basic needs for display...

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