Programmer T-Shirts

Working as Programmer + Sysadmin is something that I never Imagine before. Look for bug and error while monitoring mysql memory usage using top command is never been easy. The only way to get happy is fix the bug and able to find out how to minimize server load :-)

I’ve seen so many quote around programmer that turn into programmer t-shirts which is good to see in various form. I’ve list it in this post for my future reference when I want to buy one or perhaps a clue for my gift :-)

code.org t-shirts

Keep Calm and Code ON

I'm a Programmer. I write code t-shirt with the word programmer being misspelled multiple times.

I’m a Programmer. I write code t-shirt with the word programmer being misspelled multiple times.

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots.

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots.

More

Random features product line. Great humorous products for the computer programmers in your life

Random features product line. Great humorous products for the computer programmers in your life

A Programmer, or application developer, is not an easy job. You have to know a lot of things and perform a lot of tasks. This design is the perfect job description for a programmer. It simply states what a programmer does every day of their career.

A Programmer, or application developer, is not an easy job. You have to know a lot of things and perform a lot of tasks. This design is the perfect job description for a programmer. It simply states what a programmer does every day of their career.

You consider 256 to be a nice, round number. You are annoyed when 10K means 10,000. You start counting from 0. Your sentences end with a semi-colon

You consider 256 to be a nice, round number. You are annoyed when 10K means 10,000. You start counting from 0. Your sentences end with a semi-colon

Programmer n. (proh-gram-er) an organism that turns caffeine and pizza into software

Programmer n. (proh-gram-er) an organism that turns caffeine and pizza into software

Geek T-Shirt

Physics T-shirt on Dark background. With the following words - Physics, Acceleration, Mass, Particles, Thermodynamics, gravity, hawking, big bang, black holes, electromagnetic, maxwell, quantum mechanics, strings, radiation, tesla, force, e=mc2, gas, atom, proton, nuclear, hertz, radiation, gamma , absolute 0, nanotech, orbit, frequency, weight

Physics T-shirt on Dark background. With the following words – Physics, Acceleration, Mass, Particles, Thermodynamics, gravity, hawking, big bang, black holes, electromagnetic, maxwell, quantum mechanics, strings, radiation, tesla, force, e=mc2, gas, atom, proton, nuclear, hertz, radiation, gamma , absolute 0, nanotech, orbit, frequency, weight

Geek by nature, linux by choice

Geek by nature, linux by choice

Error 404 Costume Not Found, Funny and clever Anti-Halloween Geek web programmer t-shirt is great for the guy who refuses to wear a costume.

Error 404 Costume Not Found, Funny and clever Anti-Halloween Geek web programmer t-shirt is great for the guy who refuses to wear a costume.

Hilarious 'Holy Shift! Look at the asymptote on that mother function' Math Geek T-Shirt.

Hilarious ‘Holy Shift! Look at the asymptote on that mother function’ Math Geek T-Shirt.

This is an original t-shirt design that celebrates science and some of the cool equipment you find in a lab. This would be perfect for any science geek.

This is an original t-shirt design that celebrates science and some of the cool equipment you find in a lab

And God said [Maxwell's equations] and there was light.

And God said [Maxwell’s equations] and there was light.

How to Install MariaDB 10 on FreeBSD 10

Today I have chance to visit my friend blog. He ask me to look for wordpress theme that not work  after recent wordpress upgrade. The solution is simple : reupload his theme :-) . One thing that bother me is his cpanel show me version of mysql server he use. His cpanel using mariadb 10.mariadb10

Wow. Its first time I see mariadb in cpanel. Remind me on my FreeBSD 10 server. I want it too :-) .

After jump into my freebsd box I realized that no ports available for mariadb 10 (at the moment) :

# ls | grep maria

mariadb-client
mariadb-scripts
mariadb-server
mariadb55-client
mariadb55-server

# cat mariadb-server/Makefile | more
# $FreeBSD: tags/RELEASE_10_0_0/databases/mariadb-server/Makefile 336187 2013-12-11 18:08:52Z bapt $ Continue reading

FreeBSD 10 pkg update and pkg upgrade

As ports lover I’m bit confuse when my friend told me about pkg. The page list the difference between pkg vs pkg_ command. I decide to try it on my experiment vps that almost abandoned. The machine already have a few package installed. A perfect companion for the experiment.

# pkg info
apache22-2.2.26                Version 2.2.x of Apache web server with prefork MPM.
apr-1.4.8.1.5.3                Apache Portability Library
autoconf-2.69                  Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
ca_root_nss-3.15.3.1           The root certificate bundle from the Mozilla Project
curl-7.33.0_1                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
db42-4.2.52_5                  The Berkeley DB package, revision 4.2
dialog4ports-0.1.5_2           Console Interface to configure ports
expat-2.1.0                    XML 1.0 parser written in C
freetype2-2.5.0.1              Free and portable TrueType font rendering engine
gdbm-1.10                      GNU database manager
gettext-0.18.3.1               GNU gettext package
gmake-3.82_1                   GNU version of ‘make’ utility
help2man-1.43.3_1              Automatically generating simple manual pages from program output
libtool-2.4.2_2                Generic shared library support script
libxml2-2.8.0_3                XML parser library for GNOME
m4-1.4.17,1                    GNU m4
p5-Locale-gettext-1.05_3       Message handling functions
pcre-8.33                      Perl Compatible Regular Expressions library
perl5-5.16.3_4                 Practical Extraction and Report Language
pkg-1.2.4_1                    New generation package manager
pkgconf-0.9.3                  Utility to help to configure compiler and linker flags

# pkg update
Updating repository catalogue
digests.txz                                                                                                                 100% 1821KB 121.4KB/s  80.7KB/s   00:15
packagesite.txz                                                                                                             100% 4628KB 112.9KB/s  78.2KB/s   00:41
Incremental update completed, 21447 packages processed:
0 packages updated, 0 removed and 21447 added. Continue reading

Remove all php on FreeBSD 10

Just quick note for my self. New php application use php 5.3+ and FreeBSD box have php 5.2 installed.

# pkg info | grep php
php52-5.2.17_15                PHP Scripting Language
php52-ctype-5.2.17_15          The ctype shared extension for php
php52-curl-5.2.17_15           The curl shared extension for php
php52-dom-5.2.17_15            The dom shared extension for php
php52-filter-5.2.17_15         The filter shared extension for php
php52-pcre-5.2.17_15           The pcre shared extension for php
php52-simplexml-5.2.17_15      The simplexml shared extension for php
php52-spl-5.2.17_15            The spl shared extension for php

Remove all php package (php 5.2) :

# pkg delete -x php
Deinstallation has been requested for the following 8 packages:

php52-ctype-5.2.17_15
php52-curl-5.2.17_15
php52-dom-5.2.17_15
php52-filter-5.2.17_15
php52-spl-5.2.17_15
php52-pcre-5.2.17_15
php52-simplexml-5.2.17_15
php52-5.2.17_15

The deinstallation will free 8 MB

Proceed with deinstalling packages [y/N]: y
[1/8] Deleting php52-ctype-5.2.17_15… done
[2/8] Deleting php52-curl-5.2.17_15… done
[3/8] Deleting php52-dom-5.2.17_15… done
[4/8] Deleting php52-filter-5.2.17_15… done
[5/8] Deleting php52-spl-5.2.17_15… done
[6/8] Deleting php52-pcre-5.2.17_15… done
[7/8] Deleting php52-simplexml-5.2.17_15… done
[8/8] Deleting php52-5.2.17_15…[preparing module `php5′ in /usr/local/etc/apache22/httpd.conf]
done

# pkg info
apache22-2.2.26                Version 2.2.x of Apache web server with prefork MPM.
apr-1.4.8.1.5.3                Apache Portability Library
autoconf-2.69                  Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
ca_root_nss-3.15.3.1           The root certificate bundle from the Mozilla Project
curl-7.33.0_1                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
db42-4.2.52_5                  The Berkeley DB package, revision 4.2
dialog4ports-0.1.5_2           Console Interface to configure ports
expat-2.1.0                    XML 1.0 parser written in C
freetype2-2.5.0.1              Free and portable TrueType font rendering engine
gdbm-1.10                      GNU database manager
gettext-0.18.3.1               GNU gettext package
gmake-3.82_1                   GNU version of ‘make’ utility
help2man-1.43.3_1              Automatically generating simple manual pages from program output
libtool-2.4.2_2                Generic shared library support script
libxml2-2.8.0_3                XML parser library for GNOME
m4-1.4.17,1                    GNU m4
p5-Locale-gettext-1.05_3       Message handling functions
pcre-8.33                      Perl Compatible Regular Expressions library
perl5-5.16.3_4                 Practical Extraction and Report Language
pkg-1.2.4_1                    New generation package manager
pkgconf-0.9.3                  Utility to help to configure compiler and linker flags

Nice.

Using multiple php inside one Ubuntu machine

programmer plus gamerAnother challenge came. One of our application finally updated. The application development use php 5.3 + and already pass with php 5.5+ version. Time for migration schedule and the requirement is obvious : the machine able to run 2 different php (php 5.2.17 is a must and other php version is at least 5.3+). The machine I use is Ubuntu 12.04 32 bit ( I prefer to use old supported version due to lower memory consumption than 14.04).

Quick google give me reference to phpfarm and other resources. As I said in previous post, php 5.2.17 successfully installed after applied a patch (installed on Ubuntu 14.04). For reference purpose I share my experience here. Target php extensions are standard like support for mysql, pdo and gd extension.

Note : if you want to to try / apply it using vps then You’ll need memory minimal 1GB. My box show this memory utilization (32 bit). Click here for hourly cheap vps.

# free -m
total       used       free     shared    buffers     cached
Mem:           873        786         87          0         78        569
-/+ buffers/cache:        138        734
Swap:          890          0        890

Disable php5 module (optional)

In case you already install php5 as apache module you must disable it first.

#a2dismod php5

Fixing locale

Locale error are pop up everywhere first time I install. I need to get rid from this error.

# locale

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=”en_US.UTF-8″
LC_NUMERIC=id_ID.UTF-8
LC_TIME=id_ID.UTF-8
LC_COLLATE=”en_US.UTF-8″
LC_MONETARY=id_ID.UTF-8
LC_MESSAGES=”en_US.UTF-8″
LC_PAPER=id_ID.UTF-8
LC_NAME=id_ID.UTF-8
LC_ADDRESS=id_ID.UTF-8
LC_TELEPHONE=id_ID.UTF-8
LC_MEASUREMENT=id_ID.UTF-8
LC_IDENTIFICATION=id_ID.UTF-8
LC_ALL=

# nano /etc/environment

Continue reading