Programmin

31Aug 2015

Most of the yum repos doesn’t include PHP5.4.X on current releases for the time being. So if you need PHP5.4.X, you need to compile and build it for your self. I decided to put all required packages to the compilation, so most probably you wouldn’t need additional packages, just a quick tip, if you need […]

03Dec 2014

Most of the yum repos doesn’t include PHP5.6.X on current releases for the time being. So if you need PHP5.6.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

25Oct 2013

Most of the yum repos doesn’t include PHP5.5.X on current releases for the time being. So if you need PHP5.5.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

31Dec 2012

Last time I get into an embedded project I realised that I am getting tired of USART interface errors and I should definetely switch to a better organized tracing system. While sending debug data or any relevant data through network interface you can use an open source  syslog server available through google. I used Syslog […]

21Dec 2012

Opening an sql connection from your game isn’t really safe. So you should write, use a server software or find another solution like the one I wrote this article. Why you should use http protocol instead of server software doing this ? These software might have bugs and if you don’t know any low level […]

25Nov 2012

In this post, i’m gonna explain how to connect to a LDAP server via using PHP. First i wanna talk about some definitions; LDAP means Lightweight Directory Access Protocol. As you can understand from it’s name, it is a database which uses directory-tree based structure. It’s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory […]

24Aug 2012

mod_python is one of the easiest ways to use your Python Scripts as web pages. To install mod_python on your Centos 6 server, simply follow the steps below. We also recommend using our LAMP installer, this method can easily be implemented with our installer. To install mod_python, we need the EPEL repositories: rpm –import https://fedoraproject.org/static/0608B895.txt […]

19Jun 2012

Using short open tags, such as <? on your PHP code is not so clever. Other than the debate going on whether short open tags won’t be available on PHP6 or not, it is possible that your shared hosting has disabled it for some reason, or you might have to migrate your code sometime somewhere […]

22May 2012

Even though major system scripting is usually done via bash (or other shell) scripting, it’s almost as common to see Python as a system administration scripting platform. Today, most major installers, daemons and package management software are written in Python. While using Python as a system scripting tool, it’s essential to keep using the standard […]

17May 2012

Hi there, it’s me again. Today, i’m gonna talk about CSS3 border features. By using CSS3, you can; create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries) box shadows (it was also a big problem) use image files as border without using a design program […]

17May 2012

Below I’ll describe a couple of nice methods to generate passwords using Python and Bash. Actually there are a lot of ways you can accomplish this especially with bash, but using the /dev/urandom file seems to be the most clever one. The /dev/urandom device doesn’t only generate read-friendly characters, so it’s best to filter out […]

25Apr 2012

Here is a clumsy script to check on an FTP Service on a remote server if running or down. The script is written in Python and is a very draft one, but does the job. The main goal is to check whether we get any response from the FTP server while we try to connect […]

04Mar 2012

Here’s something very basic yet poorly documented. That’s why it looks like almost everybody’s trying to hack their way into this module, the yum module for Python. First of all don’t forget that this module is only available if you’re using a Red Hat branch of distribution (fedora, centos etc.) For other distributions, such as […]

18Jul 2011

You wanna create a web based application, you have ideas but you have no idea about where to start. That is exactly where you should start using a MVC Framework. So what is a MVC Framework ? MVC is a programming pattern that comes with 3 components. M -> Model V -> View C -> […]

05May 2011

I cannot get my flv files to load in Firefox but they work perfect in IE… My system is running apache. Finally, I found out that the problem was related with the Hotlink Protection implemented by some hosts through the .htaccess file and the fact that Flash does not send the referrer and Firefox does […]

22Apr 2011

I find Joomla non-developer friendly for the most of the time; documentation is poor and not having any continuity. I searched the net for displaying errors to the screen in Joomla 1.5 and up and here is the code: JError::raiseWarning(‘101’, “message to be displayed”); This bunch of code is especially useful if you are developing […]