Archive for the ‘Technical’ Category

I was really hoping this would be a better version than AC3 was. Unfortunately, I have been let down again. If you haven’t already read my review on AC3, check it out. I go into great detail about why the game was ruined. AC4 is more of the same.

The fighting mechanics are now boring, and consist mainly of blocking an enemy, then pressing X to kill them. You can’t attempt to fight and block at the same time, because if you do, you’ll miss your opportunity to block the enemy’s incoming attack, and you will die. Period. This game is all about defensive fighting rather than offensive fighting. It leave a lot to be desired in comparison to the AC2 trilogy. They ruined this game by redesigning that.

Free-run is still broken. The fact that you can’t differentiate between run and climb mode, means that you are constantly climbing shit when you don’t want to. It’s stupid, and another thing that has ruined this game in comparison with the AC2 trilogy.

Bugs are still rampant. I took down a fort, then a ship outside that fort. I attempted to board that ship before going to the fort. Game got stuck, and I had to restart the mission. Had a couple other times where I Had to restart the mission because the game was totally lost. Bummer.

I don’t care what anyone says, I think the naval missions are stupid. This is not “Pirate’s Creed”. This is ASSASSIN’S CREED. I don’t want to be a god damn ship captain. I want to do what I did in the first 2 versions of AC. I want to kill people and climb on call buildings and stuff. That’s all gone now, and is hardly the majority of the game. It sucks that you can’t play the game without doing naval missions. I just want to be an assassin. Besides, the naval stuff is BORING, and extremely slow moving. Taking down ships takes forever, and you have to take down tons of ships to be able to upgrade your own ship to be able to continue to do missions. I think Ubisoft should make a pirate game. People would love it, but I wouldn’t buy it. I’m not dogging the gameplay itself, because they did a great job with the naval portion of the game… it’s just not my “cup of tea”.

Lots of great new things in this version of the game, and a lot of other great fixes compared to AC3. But the attention to being a pirate has brought me extreme boredom.

Advertisements

Windows 8 Review

Posted: January 10, 2013 in Rants & Raves, Technical

Windows8I’m a Windows application developer, and I’ve been playing a bit with the developer previews and betas of Windows 8 over the last few months. I’ve been working with the Windows 8 release version since its release, to consider upgrading. This is likely going to be an extremely negative review, with not a lot of positives, since all I’ve seen is everything that is negative in comparison to Windows 7. I suggest you get some popcorn, or maybe an entire meal, since this will not be a short review.

First, I’m an early adopter of Microsoft’s OS’s. Many people bitched about Vista, which I actually found to be a far better OS than XP, aside from its extremely obvious memory leakage. It was more stable, and overall a better UI than XP. But then, I tend to run a very specific set of 3rd party software. I run mostly Microsoft software that is designed to run properly in the current OS’s. Visual Studio, Office, etc. I use very little external hardware aside form printers, some bluetooth hardware, external hard drives, etc. All these items were very compatible with Vista, and therefore, I did not have the problems with Vista that many other users reported. Lastly, I don’t use anti-virus software. THE #1 item that causes the most issues with Windows, of EVERY version, is anti-virus software. IMO, anti-virus software, especially Norton software, is a virus itself. If users weren’t so lost and clueless, and they actually read messages before blindly clicking “YES”, they wouldn’t need anti-virus software. User Account Control (UAC) helped this in many ways, then they turn around and blame Microsoft for the OS problems from installing some stupid search bar into Internet Explorer. End users are generally oblivious, and will install anything onto their computers, because they just assume everything is OK to install. The fact is, the more crap you have on your computer, the worse it’s going to run.

Windows 7 then came out, and I was more than excited. It fixed all my issues I had with Vista, and finally brought us an OS that was far more stable, and wasn’t a memory hog. Also, by that time, driver developers had gotten past the hump of developing drivers for their hardware for the new driver structure of these Vista+ Operating Systems. Much more was compatible, and it was possible to use Vista drivers on Windows 7. I’ve run Windows 7 since the day it was released to MSDN subscribers, and have never been happier with any of Microsoft’s OS’s.

Now, on to the topic of Discussion: Windows 8. I have hated this stupid Metro looking (Modern UI) interface from the start. I’m annoyed by the loss of the start menu, and many other changes like GIANT buttons and other stupid stuff. Great concept, but some users don’t have any desire for that. I liked that in previous versions, I could disable the start screen and get the standard start menu, and I’ve wondered why they didn’t make that an available option in Windows 8. Now in the RTM, that ability is gone. You must use the start screen to do everything you want to do, which I find pretty stupid. I was so frustrated by trying to figure this out, that I actually went to Microsoft and opened a support incident to talk to someone well versed in all things Windows 8.

First, to educate all on proper terminology: The newer applications in Win8 are not called “Metro Applications”. Many people all over the internet are improperly educating people that they are called Metro applications, but they are not. Microsoft employees have been specifically told NOT to use the term Metro, when speaking of Windows 8 design. The proper term is “Modern Application” or “Desktop Application”. There are two types. What we know as a normal windowed application, is a desktop application, and these lame new full screen applications are known as modern apps. There are many arguments that these are or are not “tablet apps”, and the people at MS indeed confirm that the idea behind these apps is for “finger use”, or touch screen environments. That could be a tablet, or that could be newer touch screen laptops, and they also work fine on a desktop with a mouse.

Now, to explain the fine line between modern applications and desktop applications. Many applications that come with the OS that are on the start screen, are modern applications. One application that is both, is Internet Explorer 10. Personally I’ve hated IE for quite some time. I use it as a secondary for web sites that work better with it, but Google Chrome is my primary browser. I’m annoyed by the fact that I can’t start Internet Explorer as a desktop application from the start screen, without it opening up the modern application version of it. The only way to open the desktop version of IE is by having it pinned to the taskbar. I hate IE enough that I don’t want it pinned to my taskbar. This is easily solved by creating a shortcut to “c:\Program Files\Internet Explorer\iexplore.exe” in any location (i.e. the desktop), then right clicking that new shortcut and clicking “pin to start”. OR, you can go directly to: “c:\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs”, and create any shortcut you want, right in that folder. Coincidentally, going to the start menu\programs folder is how you also rename shortcuts within the start screen. There is no way to rename a shortcut on the start screen, from within the start screen itself. LAME!!!

What if you hate the modern applications from the start screen, and only want to use desktop applications? Just right click a tile on the start screen (make sure you have only right clicked ONE tile, since you can right click and check multiples at a time), and choose uninstall. This uninstalls the modern application version of that program. IE is an exception to this, as you can’t uninstall the modern IE without uninstalling the entire IE package.

When you bring up the start screen, you can just start typing on the keyboard to start searching for anything you want to use. A game, a file, an installed program, a news article, or whatever. This makes it easier than having to move to the right hand screen corners and click the search bar to start searching. However, this search routine is NOT capable of searching for the name of the program group in which a program is installed. So, if you install The “XYZ Program” and the “EFG Program” from “ABC Corporation”, and you know it’s in the ABC Corporation program, you cannot search for ABC. You must search for XYZ or EFG. Why they did this is beyond me.

Why the hell do I have to perform 132 different steps just to shut down the machine? Microsoft’s answer to this is that the Operating System no longer “shuts down”. Everything happens through hibernation, and sleep. When you click shut down, your computer actually hibernates. Microsoft’s shift in this area is to move towards leaving computers on all the time. They suggest changing the power settings to have your PC handle shutting down. If you want to have a way to quickly sleep or shut down your machine, they recommend setting your computer’s power button to perform that quick action, rather than having a shortcut to it on a menu somewhere. Another thing I find pretty LAME.

For those that aren’t familiar with what Aero is, it was an addition to Vista that caused window drawing to be offloaded onto a capable GPU, rather than being rendered by the CPU. This made windows operate more quickly overall. In Windows 8, Aero still exists, but they’ve scaled it back to become this 2D, flat, ugly interface with no transparencies, no rounded corners, and 2-tone lack of beauty. The explanation from Microsoft was that this is for lowering the number of GPU/CPU cycles needed to render windows elements. That’s great and all, and I get the idea, but I am working on an extremely powerful desktop computer with a somewhat powerful video card. I hardly need to save power in that case. However, I would love to have that option. If Microsoft had been smart, they would have tied these things to power plans, and allowed the user to select a power plan to change the look of windows. On a laptio, when I’m plugged in, it resembles Windows 7 Aero with transparencies, curved edges, shadows, highlights, etc. When I unplug and go to battery, it removes all these effects to gave GPU cycles, and give me greater battery life. Unfortunately Microsoft decided that it was better to NOT give people choice, and to give them what they thought was best… a disappointment in my eyes.

The start screen is definitely something that I love and hate all at the same time. I absolutely love the idea of live tiles, and at-your-fingertips information. The problem is, my name is not Michael J Fox (apologies for the tasteless joke), and I have exceptional mouse handling skills, and certainly can click on a tiny icon. I don’t need Duplo, infant sized blocks to start my programs. I was just fine with smaller versions of application icons within the old start menu. Why they would force this upon me, is confusing. Again, a lack of CHOICE from Microsoft. These tiles also cannot be resized if they are not a tile for a modern application. If they are, then they only get two sizes anyway. Large and small (rectangle and square). Even then, they are still tiles that are 4 times as large as my finger, no matter what resolution. I can fit all 5 fingers on one tile on my 22″ widescreen monitor at 1680×1050 resolution. That’s hardly an efficient use of space. Where’s my CHOICE to make them smaller? Very unfortunate that I have no options at all. But strangely, go to the all applications section of the start screen (right click a blank area of the start screen, and click all apps at the bottom right), and it’s small icons with titles next to them. Interesting change.

Live tiles are awesome, but why is it that ONLY Windows Store, Modern UI apps can have live tiles? Why can’t an application be a desktop version, and have a live tile? Why can’t I build an app for my end users, and give them a live tile, without it having to go through the windows store. My applications are, after all, privately developed and privately used only by employees of this company. I find it extremely odd that this requirement exists.

Modern apps can be shown to you in two ways: full screen, or docked. full screen lets you only see that application, and nothing else. You can’t put anything on top of it to see two things at once. You can drag it to the right of left of the screen (if you are using a widescreen monitor) and then run a desktop application in a square resolution, or another modern UI app, but that’s it. It’s like taking a step back to the days of DOS, and giving you the ability to switch back and forth between DOS applications. Wow, what innovation. Now, for a tablet, this makes perfect sense. For a desktop, it makes absolutely no sense at all. I would literally never use any of these modern applications. Even the new version of Skype is absolutely terrible in this modern mode. I prefer the desktop version of skype, and will never consider anything else.

What I want it CHOICE! I want the choice to use the start screen, or the start menu. To use only desktop apps, or modern apps. The choice to launch a desktop version of an app from the start screen, or the choice to launch a modern UI app from the taskbar. I have started using Start8 from StarDock Software, which is a fabulous solution for these problems, and a steal at only $4.99 for the full version. The only thing this application doesn’t give is the ability to better customize the Aero look of windows. This is nearly enough for me to consider upgrading my primary desktop machines to Windows 8.

Now, all of that terrible stuff said, most people are going to argue that it’s not that big of a deal. That I’m just complaining about a newer interface that I’m not willing to get used to. That I fear change, or something ludicrous to that effect. That couldn’t be further from the truth. I’m all for change, but this is one change that I really don’t care for. I’ve given it a chance, and every time I get back to my Windows 7 computer, it’s a relief that I don’t have to deal with that Duplo Blocks Windows 8 nonsense anymore. Windows 7 is prettier, cleaner, and just as fast. There are even many benchmarks out there that show games running more slowly in Windows 8 than Windows 7. There are no benchmarks showing a Windows 8 machine running better than a Windows 7 machine, aside from startup times, which is a joke since they are just looking at how long it takes to un-hibernate the machine. Do a true restart and there isn’t much of a difference between the two.

OK, time for some positives to Windows 8. I feel like this article has been loaded with shit talking, so now it’s time to point out the things I actually like about the OS.

I love that they’ve finally replaced MS Virtual PC with Hyper-V. This makes it easy for me to run smaller machines on my desktop machine, then move them off onto one of our servers that also runs Hyper-V. Hyper-V is more configurable, and a better overall setup than Virtual PC. Nice job Microsoft!

Multi-monitor support is definitely great in Windows 8, aside from a few flaws. I love that you can have multiple taskbars, and have each configured to have different programs, and then easily move the program from monitor to monitor, and it stays on that monitor. The annoyances I found were usually in animations. Click on an app icon on monitor, and the window animation comes from the start button location on monitor 1. But minimize an app, and it goes to the proper location. You also can’t run two modern apps on both displays, and due to this, when you have multiple displays, the start screen no longer scrolls left to right by simply moving the mouse to the side of the screen. You must click and drag, or use a scroll wheel. You can’t choose specifically which monitors you want the taskbars on. It’s either primary or all. In my case, I’d love to have it on monitor 1 and 2, but not 3 or 4. You can’t make the start screen span multiple displays. What in the hell is wrong with Microsoft? They definitely went half way on this multi-monitor support.

The new Task manager is pretty cool, adding the ability to see disk and network usage all in one place, rather than multiple tabs. I’m disappointed they took away the ability to see the activity of each CPU core. For this, you must use the more processor intensive Resource Monitor. The Task Manager also now adds App history, showing the usage levels of past running applications, including network usage amounts. You can now see windows startup items, and their impact on system startup. Processes are now better filtered by user, rather than just being sorted by a user. And you get an at-a-glance view of service status.

Reset and refresh is something I’ve wished Microsoft would add for years. I’ve always found it stupid that I must format and reinstall to get a clean system. Reset is the equivalent of taking a smartphone and resetting it to factory defaults, deleting all user specific data. Refresh removes all programs, but no personal data. This is a feature that IT departments will LOVE.

Windows to go is awesome, and it’s great to be able to have a small version of windows on a jump drive. Another feature that IT departments will love. Especially companies that use secure rooms for working on government projects. Long ago when I worked for Hughes Aircraft, they would install windows on Jaz (1GB) disks, and they would remove those disks each day and put them in a locked cabinet, in a locked safe, within a locked room. Each employee could use a different or same computer each day, and just drop in their Jaz disk. Now it’s all in a keychain. This even means you could have your own computer on your keys, and when you show up at a friend’s house, you can just boot into your own custom copy of Windows.

ISO disc images can now be mounted, and not just burned. This will save me tons of time by not having to extract an ISO file to disk just to be able to grab a single file off of it. Being an MSDN developer, MSDN stores EVERYTHING in ISO format, including something as simple as Office or even just Visio. Now I can extract a single file from that ISO without having to install winrar or something similar.

That’s it for now. If you are thinking about taking the plunge, I highly recommend not overwriting your Windows 7 install. There’s a high likelihood you will hate the new OS.

I have an iPad 3, and an iPhone 4. with iOS 6 just coming out, and me upgrading to an iPhone 5 on Friday when it’s delivered, I decided to upgrade everything to iOS 6 before the rest of the world bombards Apple’s servers with downloads. iPad upgrade worked flawlessly, my iPhone upgrade did not. Thankfully, I have iCloud set to back up the phone every night, except for my pictures. I have a feeling I just lost all my shit, as it’s restoring right now.

Don’t make the same mistake I did by trusting that the iOS upgrade process will work flawlessly.

I’ve been working with the HAI SDK for a couple weeks now, slowly building an application for myself, and that I can share with the public as it gets a bit better. This past weekend, things got ridiculous. I had this bright idea to add Kinect voice detection capabilities to the HAI application. Still a lot of work to be done to make it better, but so far this is pretty freakin cool. Eventually I can also use the Kinect to detect motion, and act based on certain rules (i.e. if security armed and motion detected, take video then send email notification)

The volume of the computer is a bit low, and this should be watched in 720p full screen to really be able to see what’s going on. But here’s my first version of Kinect and HAI together.

Just over 10 years ago, I bought my current townhome brand new, and wanted to have all kinds of automation in the house for lights and other stuff. I had a few X10 devices, which worked fine in my apartment at the time, so I stocked up and bought a few more before I moved into the new place. After moving in, I tried setting up X10 stuff, and it worked for awhile. After a bit, I started noticing lights randomly turning on and off. Then plug in switches started to fail, my fireplace started turning on randomly. Then suddenly, pretty much everything stopped. It seemed as if x10 items that are on the same circuit, work great, but if they are on different breakers, even if on the same phase, they didn’t work. For years I have used a simple X10 motion detector with the receiver used as an appliance module, to turn on my garage lights when I walk out to the garage. It works well because there’s no powerline usage. I was always disappointed, and I have a box with a few random X10 items that are brand spankin’ new.  Disappointing. So, I gave up on that adventure.

Several years ago, my boss came to me with a project to pick a home automation system for the new house he was having built. I looked at many systems from Crestron, to Control 4, to HAI, and other smaller names. Eventually, the pick came down to the HAI OmniPro II system, for several reasons. It can do most of what the super expensive systems can do, but at a much lower price point, and has the reliability of UPB. So, we chose the HAI system, and installed it in his new place. We integrated whole house audio, lighting on nearly every switch, security, video, motion detection, and blinds control. He has a button “Go to work” that will turn off all the lights and audio, open the blinds all the way so his plants get lots of light, and arm the security system. He had his basement done, and we wired in 2 outlets for a mirror ball, and a laser show. A button called “Dance” dims the lights very low, and turns on the mirror ball, laser show, and audio to a certain level. Unfortunately, we bought the system right before HAI came out with the OmniTouch 5.7e touchscreens which hook up straight to your ethernet network. He has a total of 6 5.7 touchscreens around the house, several scene switches, and audio in many rooms. I also have it st up so that when he sets the system to away, it automates the process of pushing his normally daily buttons… wake up, go to work, evening, go to bed, etc. Makes the house look very lived in.

Now it’s my turn…

Just recently, my girlfriend and I put a contract on a brand new house, that is being built as I write this. I don’t have the money my boss has. We spent nearly $15k implementing the system, including all the audio, and someone else doing the install in his house! So, I decided to look at other avenues for automation in our new home. After some research, I decided I would purchase an Elk security system, and couple it with an automation box line the Mi Casa Verde Vera/VeraLite, or the isy-99i. I ended up purchasing the VeraLite, and also a few insteon devices and PLM to communicate with the Vera. After over $500, and several days of tinkering, I came to realize that Insteon really sucks as much as X10. It was completely unreliable, half the time signals didn’t make it through. Even with a phase coupler installed, no signal would go across a phase. I had to have them on the same phase, and pretty close together. I even went around the house and unplugged both Plasma TV’s, and my UPS for my computer. No difference. While Insteon has dual-band capabilities, not all of their devices do. Specifically, find me a non-dimming switch for CFL or LED lights, that is dual-band. Sorry, doesn’t exist unless you buy a scene switch with a 15A relay in it. I was so frustrated, and jealous that my boss’ system works so flawlessly, I decided to abandon my project with Insteon, and set off for HAI land. I know the system well, and they are constantly doing updates that add new features. I returned all the Insteon junk, and sold the VeraLite on ebay.

After some more serious research, mostly to find the right vendor to buy from at the right price, I decided to purchase from http://www.discounthomeautomation.com (DHA). I shopped around on their site before I finally settled on what I would purchase for the system. Keep in mind, it’s currently March 2012, and the house will not be done until July 2012. I’m trying to not go overboard, but slowly collect until move-in day comes.

Here’s what I purchased from DHA:

3 HAI UPB Non-Dimming Wall Switch, 600W $175.56
1 HAI UPB Dimmer Wall Switch, 600W $58.52
1 HAI 8 Relay Module $55.86
1 HAI HLC Powerline Phase Coupler $49.88
1 HAI Extended Range Indoor/Outdoor Temp Sensor $42.56
1 HAI Omni IIe Controller with Enclosure $715.54
1 ELK AC Transformer with Ground, 24VAC 40VA $13.95
1 Interstate Batteries 12V 12AH SLA .187 FASTON $26.27
1 HAI UPB PIM to PC Cable $6.65
1 HAI UPB PIM & Cable $61.18
1 HAI Omni Console $111.72
5 Seco-Larm Enforcer Magnetic Contact $7.30
1 USP ST-1 Siren Horn Strobe $37.17

I also ordered a couple of garage door contacts from another place, and had the garage wired with 2 cat5 runs. One to the front, between the two garage doors, and one that goes where the garage door buttons are. That way I can sense if the doors are open, and shut them if they are open too long. I also plan on installing a simple on/off switch on a zone for turning on and off the auto garage function. The USP ST-1 siren/strobe will be on the wall with the buttons, to alert anyone in the garage that the door is about to close, if it’s been open too long. This uses 3 relays on the 8 relay board. A 4th relay will be used to control the fireplace, and the rest I have no use for yet. It was a $10 difference between the 4 relay board, and the 8 relay board. I figure it’s worth it if I need even one more relay.

Just the other day, I received the vast majority of my items from DHA, in an extremely timely fashion, with fabulous communication from them. Two of the items I ordered (one HAI switch, and the ST-1 siren) were backordered but would ship in 3-5 days. It shipped 3 days later, and should arrive today. Every item was brand new, in unopened HAI packages. Even the HAI system itself was factory sealed, and had the 3.10 firmware on it which has only been out for a few months. Bravo DHA! I highly recommend ordering from this place, and I know I’ll order all my stuff from them in the future. I considered ordering for surveillent.net because their prices are just slightly lower, but there are SO MANY negative reviews about them, that I didn’t want to take a chance. Even on ebay.

After hooking up the HAI system in a temporary place inside the house so I can play with it, program it, and more closely understand how I can use it, I decided to install one non-dimming switch in the kitchen to start testing. It was immediate failure, but I hadn’t yet installed the phase coupler. I decided to plug the PIM into an extension cord and plug it in at various places around the house. Failure again. I was becoming sure that the electrical system in my home was a serious problem. So, I did a bit of research, and looked into purchasing noise filters for certain devices, but it’s stupid to start buying filters without knowing what’s making the noise. There are many reports of people having a cell phone charger that destroyed their X10/Insteon communications, so I needed to test first. I found information on using UpStart software with the PIM plugged into the serial port of the computer. This is why I purchased the serial cable for the PIM. I started, then, by killing the power, and installing the phase coupler, and making sure it worked. Once that was done, I attempted to configure the kitchen light switch, from a plug in the kitchen which I had used the night before without success. Immediately it found the switch, and was able to configure it, communicate with it, and do whatever. I was excited! I started running noise tests, then ran around the house turning on computers, plasma TV’s, plugging in AC adapters, whatever. ZERO noise, VERY high signal. So, I moved the PIM back to the original outlet where the HAI system is. Perfect communication again, and even with all the electronics on. ZERO noise. I reset the PIM, plugged it back into the HAI system, and attempted to configure the kitchen light switch. First time it worked, and configured the switch! It seems that my entire problem was related to the phase coupler, and that UPB is definitely far more robust than Insteon and X10. I plan on hooking up a couple more switches in the house for the outside lights, but I don’t want to go overboard, as I have to remove all this stuff in a few months.

The new house will be pre-wired for a security system, which means all the windows and doors will have sensors, and there will be 3 locations for security pads, and a couple additional runs to other places. For now I just have one console, but I plan on buying 2 more, plus a few more switches, before we ever move in. The problem is, I don’t really know enough about what lights in the house I need switches for!

Additional things I plan on doing with the system:
-Doorbell monitoring and silencing (another relay output)
-Hot tub cabinet temperature monitoring for freeze protection
-X10 module for making use of some of the X10 stuff I have left, like motion sensors
-Garage door control through serial based RFID system
-HVAC control with HAI thermostat
-Carbon Monoxide detection

I’ll be collecting a bit more equipment in the coming months, and will be prepared to install this system in the house shortly after we move in.

SQL injection is a huge issue. Make sure you protect your sites. It’s easiest to do when first building a project, because other items in your code can affect this method. If you use addslashes() anywhere before inserting a value from form data into the DB, then you will want to stop using that function. This function will also handle html forms that pass data in POST as arrays. For example:

<form method="post">
<input type="text" name="values[0]">
<input type="text" name="values[1]">
<form>

In PHP, that comes out as

$_POST['values'][0]
and
$_POST['values'][1]

Using the mysql_real_escape_string() function that is built into PHP, it’s relatively easy to prepare a single value for entry into a SQL DB. This method makes it easy to process ANY 2 level array (i.e. a POST or GET array with arrays in it). Passing arrays one level deep, will work with this method. It’s easy to add on another level, as you can see:

Use this function:

function procformdata($var)
	{
		foreach($var as $i => $val)
		{
			if (is_array($val))
			{
				foreach($val as $i2 => $val2)
				{
					$val[$i2] = mysql_real_escape_string($val2);
				}
				$var[$i] = $val;
			}
			else
				$var[$i] = mysql_real_escape_string($val);
		}
		return $var;
	}

Then use these lines of code, to check your POST and GET data:

$_POST = procformdata($_POST);
$_GET = procformdata($_GET);

Note that once you have run these methods, the data is ready for insert into a mysql database. If you want to display any of this data, certain characters will be escaped, so you may want to run removeslashes() on the data to display it after being processed by this function.

I’ve been doing a bunch of Google Maps API v3 development lately, and I ran into an issue when loading kml layers onto a map. Tracks and points would work great, but any images were coming back as a 404 error. After some research and log watching I discovered the issue. The images for a kml are stored inside a kmz (zipped kml) file. These images are referenced to via a special script at http://www.google.com/mapsatt or maps.google.com/mapsatt.

I found that the API was trying to call
http://www.example.net/mapsatt?id=http://www.example.net/images/test.kmz&f=files/test.png&#8221;
instead of
http://maps.google.com/mapsatt?id=http://www.example.net/images/test.kmz&f=files/test.png&#8221;

I found this article: http://notes.coldshore.com/google-maps-kmz-overlay-images-missing

I had a few problems with some KML files and some URL’s, so I found another way to do it:

Create an index.php script in a folder called “mapsatt” from the root of your web site. There’s only one line of PHP code necessary:

header(“Location: http://www.google.com/mapsatt?$_SERVER%5BQUERY_STRING%5D&#8221;);

Enjoy