Demystifying Release Engineering - A Guide to Build Scripts

When it comes to software development, one of the key steps in making sure that your code transforms into a working application is the “build process.” Every software platform, be it Unix, Windows, or something else, offers its own way to script this process. You might have heard of Unix shell scripts, Windows batch files, or make files that serve as build scripts. These scripts are essentially a checklist that the computer follows to compile your code into an executable program. ...

7 May 2011 · Shafiq Alibhai

OpenSuse 11.4 [screenshots]

13 March 2011 · Shafiq Alibhai

A Simple Guide to Installing Both Firefox 4 and Firefox 3 on Ubuntu

Step 1: Add the Mozilla Daily PPA Repository First, open up your terminal window. Once it’s up, type in the command below to add the Ubuntu Mozilla Daily PPA repository to your system: sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa You’ll be prompted to enter your password. Go ahead and do that, then hit Enter to confirm the addition of the repository. Step 2: Update Your Package List After adding the repository, it’s crucial to update the package list to ensure you get the latest software. Type the following command: ...

7 February 2011 · Shafiq Alibhai

Puppet Error – Could not file class in namespace – [solved]

How to Solve the Puppet Error: Could not find class in namespace Sometimes, when working with Puppet, you may encounter an error message that does not accurately reflect the actual problem. For example, if you see this error: err: Could not retrieve catalogue: Could not find class php in namespaces standardbuild at /etc/puppet/manifests/templates.pp:15 on domain.internal.com One of the possible causes could be a missing curly bracket in your code. This can be hard to spot and can waste a lot of your time. To avoid this, make sure you check your syntax carefully and use a code editor that can highlight any errors for you.

18 January 2011 · Shafiq Alibhai

ERROR: phpize failed [solved]

How to install PHP development files If you want to run phpize on your system, you need to install the development files of PHP first. Otherwise, you might get an error message like this: sh: phpize: not found ERROR: `phpize' failed To install the PHP development files on Ubuntu/Debian, you can use the following command in the terminal: apt-get install php5-dev That should solve the problem. 🙂

17 January 2011 · Shafiq Alibhai

Bug found on Google Chrome Extension Labs Website

You forgot to change the path google developers ! link -> https://web.archive.org/web/2014/http://code.google.com/chrome/extensions/apps.html

8 December 2010 · Shafiq Alibhai

How To Disable Google Analytics

You don´t like Google Analytics? Go to http://tools.google.com/dlpage/gaoptout and install a browser plugin to disable Google Analytics.

30 September 2010 · Shafiq Alibhai

How To Get The Current Epoch Time (Unix Timestamp)

PHP PostgreSQL powershell Python ruby shell sql server unix Unix Timestamp vbscript Perl: time PHP: time() Ruby: Time.now # (or Time.new). To display the epoch: Time.now.to_i Python: import time # first, then int(time.time()) Java: long epoch = System.currentTimeMillis()/1000; Microsoft .NET C#: epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000; VBScript/ASP: DateDiff("s", "01/01/1970 00:00:00", Now()) Erlang: calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600. # OR element(1, now()) * 10000 + element(2, now()). MySQL: SELECT unix_timestamp(now()) PostgreSQL: SELECT extract(epoch FROM now()); Oracle PL/SQL: SELECT (SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60 FROM DUAL SQL Server: SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE()) JavaScript: Math.round(new Date().getTime()/1000.0) // getTime() returns time in milliseconds. Unix/Linux Shell: date +%s PowerShell: Get-Date -UFormat "%s" # Produces: 1279152364.63599 Actionscript: (new Date()).time Other OS’s Command line: perl -e "print time" # (If Perl is installed on your system) ColdFusion (CFML) MX 6.1+: #int( getTickCount() / 1000 )# Bash Command Line: date +%s

30 September 2010 · Shafiq Alibhai

Database Integration – some points to keep in mind

**Always Have a Single, Authoritative Source For Your Schema ** Everyone should know where the official schema resides, and have a frictionless experience in getting a fresh database setup. One should be able to walk up to a computer, get the latest from source control, build, and run a simple tool to setup the database (in many scenarios, the build process can even setup a database if none exists, so the process is one step shorter). ...

18 September 2010 · Shafiq Alibhai

Perl – system load

To find the system load use the following perl snippet : System load of last one minute : my $system_load = exec('<a class="zem_slink" title="Uptime" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uptime">uptime</a> | awk -F "load average: " \'{ print $2 }\' | cut -d, -f1'); my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f1'); System load of last 5 minutes : my $system_load = exec('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f2'); my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f2'); System load of last 15 minutes : my $system_load = exec('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f3'); my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f3');

7 September 2010 · Shafiq Alibhai