Tag Archives | How to

How to Install socket.io on Node.js on Windows 7

Windows 7 32bit Step 1: install Node.js Download the Windows Installer: Eg:http://nodejs.org/dist/v0.10.5/node-v0.10.5-x86.msi You can find more available version of node js here: https://nodejs.org/en/download/releases/ You install Node.js … Step 2: run CMD as Administrator change dir to your application folder (ex: D:\AppServ\www\chat) Step 3: install Socket.io Use command: npm install socket.io@0.8.4 Result: D:\AppServ\www\chat>npm install socket.io@0.8.4 npm […]

Read full story Comments { 0 }
How to Install RAR/UnRAR on CentOS Linux

How to Install RAR/UnRAR on CentOS Linux

The rar and unrar packages are not available from the default yum repositories on CentOS Linux so you will need to install the rpmforge repo to install these packages via yum. Read this article for steps on how to install the RPMforge repository on CentOS Linux. Once installed you can install rar and unrar using […]

Read full story Comments { 0 }

How to configure Virtual Hosting on AppServ

With this tutorial, we are going to take a look at the best way to configure a local web server to serve fake domain/subdomains (or virtual hosts) accessible via our browser of choice. Using virtual hosts is a really useful solution to isolate configurations for each virtual host–and it’s easier to migrate code. We are […]

Read full story Comments { 0 }

How to installing Remi Repository on LINUX

In this tutorial we will learn how to install and add the Remi Repository into LINUX (RHEL/CentOS 5-6, Fedora 12-17). Follow the simple steps below and the rpmforge repo will be installed in seconds. 1. Verify 32 Bit or 64 Bit: Verify if your server is 32 bit or 64 bit. Use this tutorialspots.com article […]

Read full story Comments { 0 }

MYSQL: How to DELETE with INNER JOIN

MYSQL: How to DELETE with INNER JOIN There are 2 tables, proxy and proxy2, and I need to delete data from proxy. proxy.md5 = proxy2.md5 is the only thing that “connect” the tables. I have tried this script but it doesn’t work: Result: #1064 – You have an error in your SQL syntax; check the […]

Read full story Comments { 0 }

How to save animated GIF in Adobe Image Ready

Question: I want to make an animated GIF in Adobe ImageReady and save it out as a .gif file. I’ve made the animation Ok, but when i go to ‘saved optimized as’ and i can’t see Gif type. How to save animated GIF in Adobe Image Ready? Answer: Go to Window>Optimize and a panel will […]

Read full story Comments { 0 }

How to find out version of CentOS Linux via SSH

Step 1: Log in to SSH. Step 2: You can check centOS version installed on your dedicated derver / VPS using below SSH command: cat /etc/*release* Result: [root@vps ~]# cat /etc/*release* CentOS release 5.3 (Final) version of centos ssh How to check version of CentOS Linux by SSH The easiest way to check your CentOS […]

Read full story Comments { 0 }
PHP: How to determine the center of a Polygon

PHP: How to determine the center of a Polygon

How to determine the center of a Polygon. Read first: PHP: How to calculate signed area of a Polygon Method 1: Result: array(2) { [0]=> float(1.55555555556) [1]=> int(3) } Example 2: Result: array(2) { [0]=> int(0) [1]=> int(0) }

Read full story Comments { 0 }
PHP: How to check if polygon is concave or convex?

PHP: How to check if polygon is concave or convex?

How to check if polygon is concave or convex? Note: It is assumed that the polygon is simple (does not intersect itself or have holes) Example: Result: int(-1) The algorithm is built on base of the cross product of 2 vectors: We know that the cross product of 2 vectors: In the special case, 2 […]

Read full story Comments { 0 }
PHP: How to calculate signed area of a Polygon

PHP: How to calculate signed area of a Polygon

Calculating the signed area for an polygon can be found when you know the coordinates of the vertices. We offer 3 methods below: Method 1: Method 2: Method 3: Method 4: Note: If you list the points in a clockwise order instead of counterclockwise, you will get the negative of the area. Hence this can […]

Read full story Comments { 0 }