Connect Php code in Linux to Ms Sql Server using Freetds

Using Freetds we can connect php code in Linux to Microsoft Sql Server.

We start from a fresh installation of Ubuntu 11.04.

# apt-get install dpkg-dev
# apt-get install apache2
# apt-get install php5
# /etc/init.d/apache2 restart

To check that php5 works fine

# php -v
PHP 5.3.5-1ubuntu7.10 with Suhosin-Patch (cli) (built: Jun 19 2012 00:54:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Now if all works fine you can continue. Click here to continue reading Php code in Linux to Ms Sql Server using Freetds

How to setup an Android Development Environment for Samsung Galaxy Tab

In the next I will show you how to setup all the software related to the development of android applications for Samsung Galaxy Tab in Windows 7 (32 Bit) environment.

1) Create a folder named android that will contin all the software. It is important that the complete path MUST NOT contain any space to avoid aby problems !
For example: c:\android

2) Download & Install Java SE Development kit JDK 7, with all default option in path C:\android\jre7\
Link: http://www.oracle.com/technetwork/java/javase/downloads/index.htm
File Name: jdk-7-windows-i586.exe

3) Download & UnZip evolution IDE in c:\android\evolution Eclipse Classic v 3.7
Link: http://www.eclipse.org/downloads/
File Name:  eclipse-SDK-3.7-win32.zip
Att.: Evolution does not have a setup: it is only a zip with all the file inside

4) Download & Install Android SDK in path C:\android\android-sdk
Link: http://developer.android.com/sdk/index.html
File Name: installer_r12-windows.exe
Att: Sometimes it happened that when I launched the adroidSDK I got the error “Java SE development Kit (JDK) not found” (the launcher did not recognise the presence of JDK): in this case the solution it is to press the BACK button and then press the NEXT.
After the installation of Android SDK launch the SDK manager, and verify in “Installed Package” all the package installed in setup. I have installed only the follow, and uninstalled all the others.
– Android SDK Platform-tools, revision 6
– SDK Platform Android 2.2 API 8 revision 3
– Galaxy Tab Addon by Samsung Electronics, Android  API 8 revision 1

5) Start Eclipse and select Help -> Install New Software -> Add
Name: ADT
Location: https://dl-ssl.google.com/android/eclipse
Confirm & wait the end of refresh, and at the end install Android DDMS and Android Development Tools

6) In Eclipse select Window -> Preferences -> and select Android. Browse to select where you have installed the android sdk (C:\android\android-sdk).

Now we have to create the AVD (Android Virtual Device) to test/debug the application without the need to install these into a real physical device

From Eclipse Window -> “Android SDK and AVD Manager” -> Virtual Device -> New.

Name: Galaxy Test
Target: Select “Galaxy Tab Addon”

That’s all

Now it is possible to create an “Hello Word” project in Eclipse.
File -> New -> Android Project.