Jul 08

New Look

As you might have noticed, foscode has gone through a make up process.Much like those shows seen on HGTV where people decided to do a home makeover, our changes weren’t uneventful, but nonetheless, worth it. I hope you guys enjoy the new look, I like to think it makes it a little easier on the eyes and a better user experience, and while you are at it, don’t forget to also leave a comment in many of our articles and share our site with your friends. Thanks for stopping by once again and remember, please share with others, after all, code should be free.foscode.com | because code should be free

Feb 17

Dynamic DNS with 1&1

I’ve been using afraid.org FreeDNS as my dynamic dns servers for my domains registered with 1&1 for the past few years. They offer great service and have a large variety of options when it comes down to configuration and so forth. With that being said, just recently I started noticing their servers weren’t responding and my site all of a sudden went down since the dns data wasn’t getting updated. I’ve started doing searches on alternatives and found a few, but none as straight forward as FreeDNS from afraid.org … until last night.

Continue reading

Dec 29

ExtJS Treepanel with MySQL data

In this tutorial I’ll show you how to build an ExtJS treepanel using data coming from MySQL, while using PHP to create the json array sent to the treepanel. Here’s how:

Continue reading

Sep 23

How to connect to Microsoft SQL server from Linux via command line

Although 95% of my work is done in Linux and MySQL, there are those unfortunate times I need to manipulate some data on a Microsoft SQL server. I didn’t want to install any apps on my computer that weren’t open source and I didn’t want to use a Micro$uck app through wine either. So after a few searches I came across an open source project called Sqsh. In this tutorial I’ll show you how to install sqsh and access a Microsoft SQL server from the Linux command line.

Continue reading

Aug 19

Apache Virtual Hosts in Ubuntu in 5 easy steps

In this tutorial I’ll walk you through setting up 3 Apache virtual hosts running on a single Ubuntu server. An Apache virtual host, as explained by Apache, refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. Virtual hosts can be “IP-based” or “name-based”. By default, Ubuntu already has this capability enabled, so things are much easier to configure these days. Enough with the intro, this is how you do it:

Continue reading