Have some fun with Google Maps - guys dragging body into lake... observers watch. »
 
Not sure what this is, guys dragging a body to throw into the water? Another guy to the north watches the act?

Guy drags a body onto the dock and into the water on google maps

Hope this isn't real. good speculation link though.

-enjoy




How to find your Facebook ID (developer) »

How to find my (your) Facebook ID (developer)

I know I specify "developer" in the title, but anyone can find their facebook id through this method.

Sometimes an app or website will ask for your ID, but it's not prevelant in the account settings area. Here is how you find it.

First - Log into facebook

Then - go here: https://developers.facebook.com/tools/explorer

Note: It may be a blank page for you (this means you've never let facebook's api explorer application get information about you.) If this is the case, Click "Get Access Token". Don't check any boxes, click the "Get Access Token" button again on this pop-up.


How to find my facebook ID


Everywhere you see 1234567 - that is your facebook ID.

Simple right.

-enjoy.

PS - You can remove access to this facebook app by going into your account settings - app settings.



What are the top performing Ad Banner sizes »

What are the top performing Ad Banner sizes
Top 4 best Ad banner sizes for performance


According to Google AdSense (a post created within the last year or so from the date of this article), the following add sizes are the best performing ones:

  • Medium Rectangle - 300 pixel width by 250 pixel height (300 x 250)
  • Large Rectanble - 336 pixel width by 280 pixel height (336 x 280)
  • Leaderboard - 728 pixel width by 90 pixel height (728 x 90)
  • Wide Skyscraper -  160 pixel width by 600 pixel height (160 x 600)

Out of the 4, if you sign up with Google AdSense and serve up the Medium Rectangle, Large Rectangle, or Leaderboard on your site - You may actually also get Youtube video content displaying - Pretty Cool!!!  

Other ad sizes that will show video ads also (on top of text and image) = 250 x 250, 200 x 200

- enjoy

source - http://support.google.com/adsense/bin/answer.py?hl=en&answer=2953032




How to Turn Off Google Chrome / Firefox Autocomplete using code (HTML) »

How to disable Autocomplete using code (HTML)
How to disable Autocomplete in internet explorer using code (HTML)
How to disable autocompletion in the form tag



1
2
3
4
5
<form method="post"action="http://www.example.com/form.cgi" autocomplete="off">

<!-- Your Fields/html here -->

</form>



Note, you can also add this attribute to each input field if you don't want just a specific field to be autocompleted.


1
<input type="text" name="firstName" autocomplete="off" />


For Internet Explorer the form declaration sometimes does not work and the input method may be required.

- enjoy



PHP tip: URLENCODE vs RAWURLENCODE »

PHP tip: URLENCODE vs RAWURLENCODE - A PHP example of when to use rawurlencode instead of urlencode

There are these boring syntax definitions and documents called RFC

RFC stands for Request For Comment

In the computer world, it's a method for defining interoptibility.

RAWURLENCODE follows RFC 3986
This is general syntax of a URI

URLENCODE follows RFC 1738
This is general syntax of a URL

NOTE (un-related) Difference between a URL vs. URI vs URN found here

The main difference between the two is the encoding of a [SPACE]

URLENCODE - encodes a space as a plus sign '+'

RAWURLENCODE - encodes a space as '%20'

Example usage

Let's say you have an anchor tag for a contact form for an email (mailto:)

You want to populate subject line and the body of the email.

PHP urlencode would produce something like this: 
<a href="mailto:notreal@phphaven.com?body=Hi+I+would+like+to+contact+you+about+this+opportunity&subject=New+Opportunity">Contact us about this</a>

PHP rawurlencode would produce something like this: 
<a href="mailto:notreal@phphaven.com?body=Hi%20I%20would%20like%20to%20contact%20you%20about%20this%20opportunity&subject=New%20Opportunity">Contact us about this</a>

Why use rawurlencode?
In this example (although a bit dated), we want the default mail program to open on the user's machine (client) and populate the to, subject, and body.

If we use urlencode, the body and subject will populate with the '+' plus signs.

If we use rawurlencode, the body and subject will populate correctly and your link will be valid as of RFC 3986

Nuff said.
=D



       
Search postings
Learning
Learn PHP
Need Help?
If you need help, ping me!
About Me
My name is Jeremy

I am still trying to figure out what I want to do in life, father time be damned.

I run: Conception X
I've built: Jaywire
I'm working on an agency directory

I love my family, playing video games, and developing for the web and mobile.