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 check if the vertices of polygon are in clockwise or counter-clockwise order?

PHP: How to check if the vertices of polygon are in clockwise or counter-clockwise order?

How to check if the vertices of polygon are in clockwise or counter-clockwise order? There are many of method to check this. We offer some method below: Method 1: Use ComputeArea function: Method 2: Note: It is assumed that the polygon is simple (does not intersect itself or have holes) Example: Result: int(-1)

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 }
How to install mytop

How to install mytop

mytop is a ‘top’ clone for MySQL. mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of MySQL 3.22.x, 3.23.x, and 4.x servers. It runs on most Unix systems which have Perl, DBI, and Term::ReadKey installed. And with Term::ANSIColor installed you even get color. As of version 0.7, it even runs […]

Read full story Comments { 0 }

LXAdmin: Change the LXAdmin password

If you’ve forgotten your LXAdmin ‘admin’ password, you can change it by taking the following steps: 1. Connect to your VPS via ssh: Use Bitvise Tunnelier to login your VPS or dedicated server 2. Open new terminal console: 3. Run the following command. sh /script/resetpassword master newpassword Now you can use the new password to […]

Read full story Comments { 0 }
Twitter Style Blue Button hover

Twitter Style Blue Button hover

Twitter does not have anyone to use the site. Face Book – is next to the Twitter community website. In the United States of America can not run without the Twitter website as saying so that Twitter has become their life. Celebrities on Twitter is often higher than the Face book. Pop singers and politicians, […]

Read full story Comments { 0 }
Transform Transition menu

Transform Transition menu

HTML is the most used Internet application. html and can not do anything alone. then joined with the CSS program will only add to the beauty. Web pages can be easily designed with CSS taxes. Palakuvatarku CSS programs are all very difficult. Let’s see how to create a menu with CSS column. Using this menu […]

Read full story Comments { 0 }
Text Shadow In 3D Effect

Text Shadow In 3D Effect

Hello Friends Today we are discuss Text-Shadow With CSS.this Word Firefox,safari,Chrome and Internet explorer Is Not Working . The CSS 2 property text-shadow is supported in Safari since version 3 (also available for Windows), Opera since 9.5, Firefox since 3.1, Google Chrome since version 2, Konqueror and iCab.

Read full story Comments { 0 }
Google Maps JavaScript API v3: method Polygon.getBounds

Google Maps JavaScript API v3: method Polygon.getBounds

In Google Maps JavaScript API v2, Polygon had a getBounds() method, but that doesn’t exist for v3 Polygon. Here’s the solution: Here, we present a simplified method: Image copyright: Google maps

Read full story Comments { 0 }
Google Maps JavaScript API v3: method Polyline.getBounds

Google Maps JavaScript API v3: method Polyline.getBounds

In Google Maps JavaScript API v2, Polyline had a getBounds() method, but that doesn’t exist for v3 Polyline. I wrote some methods below: Method 1: Method 2: Method 3 is the shortest method. Image copyright: Google Maps

Read full story Comments { 0 }