Get Current URL in PHP

I know for most people, this has been done a million times… But it’s the little things that sometimes help. So this is how you would grab the current request URL and feed it into a local variable so you can play with it. <?php $url = (!empty($_SERVER[‘HTTPS’])) ? “https://”.$_SERVER[‘SERVER_NAME’].$_SERVER[‘REQUEST_URI’] : “http://”.$_SERVER[‘SERVER_NAME’].$_SERVER[‘REQUEST_URI’]; ?> It just says, if we have an

Quick Debugging Function

Sometimes it helps to have a variable checking function that simply spits out what values are contained in your variables. If you run into undefined errors (even object errors) its a good idea to check your variables and make sure your passing the correct values. Here’s a quick function to output most of your main sources of information. It’s handy

Create Custom Write Panels in WordPress

I recently needed to modify my portfolio items to display a bit differently than my blog posts. I also decided I didn’t want to hack a solution together and instead have a simple form in the backend where I could add portfolio pieces easily. I chose to make a custom write panel to accomplish this. Custom write panels like the

WordPress Custom Single Page Template

I needed to display my portfolio items in a different template than my blog posts. The problem is I post my portfolio items by adding another post and categorizing it as a portfolio item. WordPress generally treats all single posts the same, it refers to single.php and follows the template listed there. So I needed to “trick” WordPress into showing

Quick Tips on Hacking

With all the media coverage recently, I thought I just throw out some quick tips to getting started… Ports 21 – FTP 53 – DNS 80 – HTTP 110 – POP3 135 – Windows RPC 137 – Windows NetBIOS Tools Brutus – messaging tool QualisGaurd – Windows Tool Cain & Abel – Messaging/Windows Cracking Tool OmniPeek – Networking Tool ophcrack

Measuring User Scroll with jQuery

It’s super easy to measure the amount a user scrolls down with jQuery. In fact, it’s not hard to grab a percentage of the page the user has scrolled either. Which means you can add some interactive portions to your page depending on how much the user has scrolled down your site. It’s just another way to grab user attention

Programming Zebra Stripes

Recently, I needed to use a programming trick to make a for loop alternate every other time. This can be done using a little trick called “zebra striping.” It’s simple, set a variable to zero before the loop, then within the loop run the variable through an equation of 1 – variable. This will effectively make the loop either a

Scrolling Animation

Our class wanted some dynamic and animated elements to exist on our portfolio website. Since we are already basing the site on the parallax effect and scrolling, I thought we could tie the animation to the scroll event. I’m sure this has been done before, I’m just introducing my take on animation much the way they made the very first

Microsoft Tag – URL Shortcodes

For anyone out there who has had some trouble finding the shortcodes for Microsoft’s Tag URL tags, below is a list. Short Codes Postal Code Geo: {!PostalCode} Latitude: {!Lat} Longitude: {!Long} Device ID: {!deviceID} These URL shortcodes can be used when creating your tags to give you some information about who the scanner is and where they were scanning. Let’s

iSteg for Mac

Cool and easy to use tool for encrypting/decrypting hidden messages in images. It’s not the most versatile, but it does allow for encrypting and hiding zipped files (so you could hide multiple file types), its great for sending encrypted messages with low fingerprint and it’s easy to use on a mac. Just download the program here, install it and away you