Tuesday, November 29, 2011

How to detect Visitor IP Address In PHP???

After a controversial incident, I have decided to look for IP address of my website's visitor. And what you know, there it is, a simple and short PHP script to do just that!!! Here it is:


// Example use of getenv() 
$ip getenv('REMOTE_ADDR');

// Or simply use a Superglobal ($_SERVER or $_ENV)

 $ip $_SERVER['REMOTE_ADDR'];

Autodesk Infrastructure Map Server 2012 is out!!!

This version is said to replace the infamous Autodesk Mapguide Enterprise. Let's explore what the "Infrastructure" version has to offer!!!

Autodesk Infrastructure Map Server 2012: Web maps and Web-based CAD, GIS, and asset data
Mapping Software for Sharing CAD, GIS & Asset Data
Autodesk® Infrastructure Map Server software is web-based mapping software that helps AEC professionals publish and share CAD, GIS, and other infrastructure asset information quickly and cost-effectively via the Internet. Easy to use and deploy, the software includes templates that enable users to quickly deliver information from AutoCAD® Map 3D software to the web.
  • Mobile viewer extension—Use Infrastructure Map Server with popular touch-screen devices
  • GeoREST extension—Repurpose existing server and Feature Data Objects (FDO) data using a RESTful web services protocol
  • WMS & WFS publishing—Simplify the publishing process with an OGC WMS & WFS publishing interface
  • Additional consumer map layers—Create context-rich maps
  • QuickPlot functionality—Quickly choose the area, rotation, resolution, map decorations, and paper size prior to plotting
  • Pre-caching of base layer tiles—Generate and populate tile caches
  • Stylization user interface—Create rich cartographic maps

Linux Mint 12 “Lisa” released!

Finally the long awaited GNOME 3 Ubuntu Variant aKa Linux Mint is out!!!
Linux Mint 12 “Lisa”
New features at a glance:
For a complete overview and to see screenshots of the new features, visit: “What’s new in Linux Mint 12“.
Important info and release notes:
The Release Notes are an important source of information. Here are some of the topics they cover:

  • Tips and Tricks
    • Information about DuckDuckGo
    • Switch to a single top panel
    • Switch to a black panel, menu and window list
    • Quickly preview files without opening them
    • Restart Gnome Shell when needed
    • Debug Gnome Shell (for developers or to troubleshoot)
    • Run Gnome Shell in Virtualbox (for testers and reviewers)
    • Install MATE from the CD edition
    • Workaround for a disappearing MATE panel
    • Workaround for 100% CPU usage in MATE
  • MATE
  • mint4win
  • Moonlight
  • Upstream issues
System requirements:
  • x86 processor (Linux Mint 64-bit requires a 64-bit processor. Linux Mint 32-bit works on both 32-bit and 64-bit processors).
  • 512 MB RAM (1GB recommended for a comfortable usage).
  • 5 GB of disk space
  • Graphics card capable of 800×600 resolution
  • CD/DVD drive or USB port
Upgrade instructions:
  • To upgrade from a previous version of Linux Mint follow these instructions.
  • To upgrade from Linux Mint 12 RC, simply apply any level 1 and 2 updates (if any), as well as level 3 “mate” and “caja” updates available in the Update Manager.