Sunday, July 26, 2009

Google taps YouTube videos for ads

Here is a how to, on setting up Google AdSense Video Units via YouTube.


Step 1: Go to your AdSense Set Up Page and click on the YouTube (Video Units)


Step 2: Agree to legal disclaimer (first time only)


Step 3: Confirm your AdSense account with YouTube (first time only)

YouTube after you agree to the disclaimer. This is where you plugin your AdSense account information, so YouTube and AdSense can communicate.


Step 4: When that is done, it should tell you they have associated your account with YouTube.


Step 5: Then you set up your first player. You define the player name and description, the layout and the colors also.


Step 6: Define the content matching options. You can let Google figure out your content and provide relevant video ads, or you can help with hints or by specifying the content you want on your site.


Step 7:Then you just click the generate ad code

Paste the code into your page, like I did here below and you should see an add related to search stuff. The next time you go to your Google AdSense set up page and click on video units, you will be taken to a page that shows you your old units and gives you the ability to create new ones or remove old ones.


That pretty much is the detailed walk through of how to set up Google AdSense Video Units.

What are PHP and MySQL?

PHP was at first created as a simple scripting platform called "Personal Home Page". Nowadays PHP (the short for Hypertext Preprocessor) is an alternative of Microsoft's Active Server Pages (ASP) technology.

PHP is an open source server-side language which is used for creating dynamic web pages. It can be embedded into HTML. PHP is usually used in conjunction with a MySQL database on Linux/UNIX web servers. It is probably the most popular scripting language.

PHP is a widely-used general-purpose scripting language and interpreter that is freely available. A full explanation of all the PHP tags, complete user manual and lots of tutorials can be found on the PHP's official page.



MySQL is a freely available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL).

SQL is the most popular language for adding, accessing and managing content in a database. It is most noted for its quick processing, proven reliability, ease and flexibility of use. MySQL is an essential part of almost every open source PHP application. Good examples for PHP/MySQL-based scripts are phpBB, osCommerce, and Joomla.

A QuickGuide To Streaming Video From PC to DBox

A QuickGuide To Streaming Video From PC to DBox
By the way, video can be DivX, Xvid, OGG, MPEG, ....etc.
The instructions in this guide assumes the following:
01. The DBox is configured and fully operational.
02. The DBox is accessible from the PC that will be streaming the video. Try doing a "ping". For example, if your DBox
has the address 192.168.0.5, enter:
ping 192.168.0.5
in a windows command prompt. You should observe 0% packet loss.
03. All the information described in this guide was tried on a PC running Windows XP Professional. Note, all firewalls are turned off.
04. Search and download vlc-0.7.2 from the internet. Do not get the latest version (currently vlc-0.8.2)!
On the PC, create a new local user. Right click my computer, Manage, User & Groups, Expand User & Groups, right click Users, New User, Username = dbox2, Password = dbox2. Untick "User must change password at next logon".
Now, share a folder containing videos. I chose to share the following folder:
c:\Movies shared as Movies
To share a folder, right mouse click on it, Properties, Sharing, Share this folder, Permissions, Add, Locations, Select the name of your PC, OK, enter dbox2 in the object names field, click ok, click ok again. One more ok.

Is it just me or am I correct in saying that people who refers to directories as folders are mostly Mac users?
Anyway, install vlc-0.7.2 onto the PC.

Grab the remote, press the dbox button, Settings, Network, Mount/CIFS
volume. Edit the first line:
type: CIFS
IP: xxx.xxx.xxx.xxx (IP address of the PC) directory share: Movies (note the capital M) localdir: /var/mnt/movies
mount on startup: yes mount options:rw,soft,udp
mount options: nolock,rsize=8192,wsize=8192
CIFS Username: dbox2
CIFS Password: dbox2
Select "Mount Now" Exit the menu screen.
Now press the dbox button, Settings, Movieplayer: Set Streaming Server to on
Confgiure the IP address to that of the PC
Configure the port number to 8081 (normally 8080 but I had to change this) Configure DVD drive letter to D (change this accordingly)
Change directory to C:\Movies (note the capital M) Leave 1000 for data rate
Leave 192 for audio rate
Leave all other settings as per default
//Winodws//
Open up a command prompt. Change directories to where vlc was installed. Here is what I typed in on my PC:
c:
cd "Program Files\VideoLAN\VLC\"

The default port number that vlc uses is "8080". Unfortunately, I already had some other application using this port and had to change it to use
port "8081" instead. This is what I typed in the command prompt to change the port (permanently):
vlc --save-config --http-host=:8081
Close the vlc window and type in the following to start vlc properly:
vlc --extraintf=http
This is all we need to do on the PC. Don't touch the PC and go look for the dbox remote.
Press the dbox button, Movieplayer, File via VLC.
At this point, if everything is working correctly, you should see a listing of the videos in your movies directory. Using the dbox remote, select the file you like to play and press the "ok" button on the remote. If you don't see the list of files, just navigate to them. Remember, they will be in "/var/mnt/movies".
You should see a dialogue box on your TV with a message about "connecting to the streaming server". This box disappears shortly and is replaced
with another dialogue box with a message about "Buffering". This buffering takes a few seconds (max). At this point, I got moving
pictures on my TV as well as sound. Neat or what?
I'm not sure what is the best way to stop the streaming but it seems pressing the "home" button on the remote stops the playback and takes me to the Movieplayer menu.

Notes to myself and others
===================
To be able to stream video from the PC to the DBox, you will need a powerful PC. This is a must! Not sure exactly what the minimum requirements are but I ended up using a Pentium 4 2.8 GHz PC.
Can people provide some feedback as to your PC setup for video streaming from PC to DBox?
Initially, I tried vlc-0.8.2 but this did not work. The symptoms:
blank screen but audio stream plays okay. Tried various video
formats but the result was always the same.
The ethernet interface in the DBox is 10Mbit/s. DVD video with a DTS
audio stream can easily saturate this ethernet speed. I have not tried this personally but my guess is DVD streaming will either not work or be really choppy.
Certain files when streamed can still be a problem. For example, video/audio synch issues. I am not 100% sure but this seems to be related to the size of the file. File sizes around 300MB plays okay for me but anything bigger, say 1GB, are played poorly.
The Sportster 1.73 JFFS2 image I used does not have the "movies" directory in "/mnt". But this directory exist in "/var/mnt/movies" instead.
You can telnet into the dbox from the PC. Just type "telnet xxx.xxx.xxx.xxx" and replace the xxx with the IP address of your DBox. Login as user root - no password required. Once you have logged in, you can do anything you like. For example, create the "movies" directory in "/mnt". Mentioned here for those who are unfamiliar with UNIX.

Install Apps on iPhone/iTouch 3.0 via Cydia [ipa]

Ever buy an app and realize it was complete garbage? Well for better or worse after you complete this guide you won’t have to pay for an app again. However if you do like the application you should pay for it, as you will be notified when updates are available and that developer spent a lot of time creating the app.
You will need:
• Jail Broken iPhone / iTouch . iPhone 3GS currently cannot be jail broken.
Steps
1. Open Cydia, this is an application that is installed when you jail break your device.
2. Go to the Manage tab, the “tabs” are located at the bottom.
3. Select the Sources option
4. Select the Edit button, this is located in the top right.
5. Select the Add button, this is located in the top left.
6. Input cydia.hackulo.us in the text box it should read http://cydia.hackulo.us/ and press Add Source
7. You may get a warning, select “Add Anyway“
8. As it will update every source not just the one we added, you may get errors in which you can ignore.
9. Once it is all done go back to the main cydia menu and press the search tab
10. Search for “AppSync” and install “AppSync for OS 3.0″.
11. Restart your iPhone.
12. You can now drag and drop .IPA files into your iTunes application section, sync your phone and run them!
Note: A great place to find pirated apps is: http://appulo.us/appdb/

How to Set Up a Disposable Email Address

Introduction

With the proliferation of Spam on the Internet, many people have taken to using disposable email addresses to help slow the flood of unsolicited emails into their primary email account. Instead of providing their real address and password when signing up for websites, services or filling out registration forms online, users will instead use their disposable address. In the case that their disposable email address starts to receive spam, they can simply delete (or "dispose") of their temporary address and start a new one. While using disposable email addresses is only one of the many ways that you can help eliminate spam, it is one of the most powerful.

Why Set Up a Disposable Address
There are a number of good reasons for using a disposable email address: If you use your Real email address to sign up for a service online, there is a good chance that it will fall into the hands of spammers. If this happens, you're inbox will be inundated with junk mail - making it hard for you to identify and manage your Real messages. While many of the websites and services that you access online will claim to be secure and promise not to let your personal information get into the wrong hands, it is nearly impossible for them to ensure complete security. Some (more nefarious) site owners may even sell the email address information they collect directly to spammers or direct marketers. Disposable email addresses are Free and can be used or disposed of at your convenience. They can also be configured to meet your specific needs.

How to Use Your Disposable Address
One of the great things about disposable email addresses is that they can be configured or set up to meet your specific needs. From message forwarding, RSS feeds, multiple aliases and spam maps, disposable email accounts offer many different features to help you identify and manage spam. While not all disposable email services will offer all of these features, you should have no problem finding one to meet your needs.

Message Forwarding
One of the great things about disposable email accounts is that you can set them up so that any messages you receive will be forwarded directly to your primary account. This way you can manage all of your accounts from one email account. If any of your disposable addresses start getting spam, you can simply delete the account and the messages will stop being forwarded to your primary email address.

Multiple Aliases
Many disposable email services will allow users to set up multiple accounts (or "Aliases"). This can be helpful if you want to use different accounts to manage emails from many different services. Also, when you do start getting spam, it can help you identify which of the services was responsible for letting your email address get into the wrong hands.

Expiration Date
Another helpful feature of disposable email addresses is that they can often be set up to automatically expire after a certain amount of time. While some disposable email services have a set amount of time until their accounts expire (such as 10 Minute Mail), others will let you specify exactly how long you want the account to be active for. Also, some accounts can be set up to automatically expire after a certain amount of email addresses have been received.

Spam Maps
Although it may not serve a practical purpose for casual Internet users, this feature is still pretty cool. Since disposable email services are basically just magnets for spam, they have the ability to collect large amounts of data on where that spam is coming from. That data can be used to create a Spam Map that visually represents where the junk mail that they receive is coming from.

RSS Feeds
Disposable email services that offer RSS (Really Simple Syndication) feeds for your temporary email account make it easy for you to subscribe and keep an eye on the messages that you are receiving. This can be an alternative to having your mail forwarded to your primary email address.

Disposable Email Services
Here are some of the most popular disposable email services, with brief descriptions of the various services they offer: Mailinator: Receive-only email, No Sign-Up required, RSS feeds, Widget, Spam Map
10 Minute Mail: Automatically expires after 10 Minutes, changes domains regularly
2Prong.com: Receive-only email, temporary email accounts, Open Source platform, changes domains
SpamGourmet: Mail forwarding, custom aliases, requires registration