Category: Funny Stuff
Posted by: wessite

Get Flash to see this video. Item URL: Tropic Thunder Trailer

This movie is just hilarious, it's created by Ben Stiller who is also starring in the movie. The part with the panda bear is just too funny for words, couldn't find it on the internet though.

Plot: Ben Stiller, Jack Black and Robert Downey Jr. lead an ensemble cast in "Tropic Thunder,' an action comedy about a group of self-absorbed actors who set out to make the most expensive war film. After ballooning costs force the studio to cancel the movie, the frustrated director refuses to stop shooting, leading his cast into the jungles of Southeast Asia, where they encounter real bad guys.

Website: www.tropicthunder.com
Category: PHP/MySQL
Posted by: wessite
A few days ago I was looking for a php function that showed the date/time format like on the site Digg (ex: 15 min 20 sec ago). I found two different php functions on the internet that almost achieved what I was looking for, at these links:

woork.blogspot.com/2007/10/time-and-date-difference-using-php.html
drupal.org/node/61565

But it wasn't exactly what I wanted so I wrote my own php function for it, check it out below.

function timeAgo($timestamp, $granularity=2, $format='Y-m-d H:i:s'){

        $difference = time() - $timestamp;
       
        if($difference < 0) return '0 seconds ago';             // if difference is lower than zero check server offset
        elseif($difference < 864000){                                   // if difference is over 10 days show normal time form
       
                $periods = array('week' => 604800,'day' => 86400,'hr' => 3600,'min' => 60,'sec' => 1);
                $output = '';
                foreach($periods as $key => $value){
               
                        if($difference >= $value){
                       
                                $time = round($difference / $value);
                                $difference %= $value;
                               
                                $output .= ($output ? ' ' : '').$time.' ';
                                $output .= (($time > 1 && $key == 'day') ? $key.'s' : $key);
                               
                                $granularity--;
                        }
                        if($granularity == 0) break;
                }
                return ($output ? $output : '0 seconds').' ago';
        }
        else return date($format, $timestamp);
}

» Read More

Category: Funny Stuff
Posted by: wessite

Get Flash to see this video. Item URL: You Don't Mess with the Zohan

Check out the trailer for Adam Sandler's new movie "You Don't Mess With The Zohan". It's hilarious; “smell it, smell it, smell it, now take it”
Category: Web Development
Posted by: wessite
Get Noticed
Your website is just one of the billion sites parked on the World Wide Web. Chances are, you don’t think yours will ever get noticed. We hear your cries for cyber attention. Here are five ways to get people clicking on to your site.

1. Make sure it’s professional looking
No one likes looking at website that reminds them of a book report they wrote back in school. Invest in learning a good web design program (Dreamweaver MX and Microsoft Frontpage are good picks), and let your creative juices flow. Make sure it’s compelling, well-designed, and organized. People don’t exactly find it fun to weed through haystacks of cyberfiles to get the information that they want. On that note, don’t make it a heavy site. Putting up some flash intros may be great eye candy, but the average internet surfer only waits 10 seconds for a page to load, and then they’re off to the next.

» Read More

Category: Earn Money
Posted by: wessite
Dollar Roll
Would you believe there are tens of thousands of people who have found ways to make money online? Not only that, but their incomes are significant and growing, due to little competition and low cost of entry. If I can do it, then there is no reason why you can't. You can literally begin making money right away. There are many, many, opportunities online, but here are the 5 factors you really need to consider, to guarantee your success:

1. Set your goals
As with any business you need to set goals. Goals help you visualize where you want to go, and keep you motivated when you get up in the morning. You goal may be to earn $500 or $10000 a month, it may be to take that dream vacation, or it may be to give up your job. These are all great goals. It is imperative that you write them down and reread them often. You need a short term goal - e.g monthly goal, to keep you motivated from day to day and a longer term goal 1-2 years - to keep you on track and prevent you from chucking it in. I am confident that if you adopt a positive attitude and embrace your goals then you will soon be making money online.

» Read More

Category: Funny Stuff
Posted by: wessite
Check out this trailer of The Love Guru, it slap silly amusing.

Get Flash to see this video. Item URL: The Love Guru Trailer

Story: Pitka (Meyers) an American raised outside of his country by gurus, returns to the States in order to break into the self-help business. His first challenge: To settle the romantic troubles and subsequent professional skid of a star hockey player (Malco) whose wife left him for a rival athlete (Timberlake).

Featuring: Mike Myers, Jessica Alba, Justin Timberlake, Ben Kingsley, Meagan Good, John Oliver, Verne Troyer, Romany Malco, Jim Gaffigan.
Category: Apple
Posted by: wessite
Lately I have been seeing a lot of websites which you can use to retrieve the flv url of a YouTube video. If you are browsing in a safari browser of apple it's actually very easy to get this url of the video file without using such a retrieval website. Because the addresses of everything which is downloaded to see an internet page is stored temporarily in the Activity monitor. Just click "window" in the upper menu of safari and choose "Activity monitor". Now a window will open, something like this:

Safari's Activity Monitor

Now just select the flv url, copy it, enter it in your browser url box and there you go. You can use this method on almost every flash video website for that matter.
Category: Javascript
Posted by: wessite
A while back I was searching on the internet for a decent photo popup script but I didn't find the one I was looking for. I started to code one of my own using bits and peaces of other scripts. This is the code I ended up with and I'm pretty satisfied with it. It is pretty simple and does the things I want it to do.

function Foto(img,txt,width,height) {

        foto1 = document.createElement('img');
        foto1.src = img;
       
        if(!txt) {txt=img}
        vars="width="+width+",height="+height+",left="+((screen.width-width)/2)+",top="+((screen.height-height)/2);
       
        newwindow=window.open("","newwindow",vars);
        newwindow.document.clear();
        newwindow.document.write("<html>\n<head>\n<title>"+txt+"</title>\n");
        newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
        newwindow.document.write("</head>\n\n<body style=\"margin:0px; padding:0px; cursor:pointer;\" onblur=\"javascript:window.close();\">\n");
        newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close();\">\n");
        newwindow.document.write("</body>\n</html>\n");
        if(newwindow.document.focus) {newwindow.document.focus();}
        newwindow.document.close();
}

To use this script save this code in a file called popup.js or click here to download it and upload it to your server with your favorite ftp client. The next step is to add a small piece of code to your head part of your page, something like this:

<script type="text/javascript" src="/popup.js"></script>

Now you can add popup links to your pictures by using a link format like the following:

<a href="/img/bigimage.jpg" onclick="Foto(this.href, 'My Photo Title', '800', '600'); return false;">Link</a>

Notice the href attribute just points to the image url not a javascript function, so when a visitor who has javascript disabled clicks the link or thumbnail he will still go to the big image in the same window. This is also the case with the crawlers of search engines, so your images will still get indexed.
Category: Nucleus
Posted by: wessite
Last month I wanted to make a zebra effect for the headlines list on my nucleus site bmxaction.net. I didn't find a plugin or something for it so I wrote a little script for it. It's actually really easy to get this effect.

First I made a little zebra.php file with the following code:

<?php
global $z;
if($z % 2 !== 0) {
      echo " class=\"zebra\"";$z = 1;
}
$z++;
?>


To add the this in the iteration of my items I went to the my headline template and added this in a phpinclude tag like so:

<li<%phpinclude(zebra.php)%>>
<div class="date"><%date%></div>
<h2><a href="<%itemlink%>" title="Read entry: <%title(attribute)%>"><%syndicate_title(50)%></a></h2>
</li>


The last step is to add some css to make a difference in background:

.zebra
{
      background:#CCC;
}


That's it! Now you have a cool zebra effect.
Category: Earn Money
Posted by: wessite
Get Started wtih AdBrite Today - Browse the Marketplace - Click Here
Never start your pricing too high. It is better to error on the low side and get advertisers hooked, because then they will be willing to pay higher prices for your inventory when the pricing increases.

Make sure your placement is worth buying, the popular sellers in the marketplace tend to be sites with the most premium inventory. Spend some time tagging your site, and giving proper demographic information. In your site description provide ideas of advertisers that you think might convert well. You know your audience best. AdBrite is more successful if you sell a FEW premium placements as oppposed to just MANY backfill placements. Hard code all placements because of the concreteness of "your ad here". Putting AdBrite in rotation doesn't perform as well.

Allow a ramping period. AdBrite is a tool to help sell your own inventory, and think of it as a virtual salesperson for you. Any salesperson needs some time to gain traction. Just like an auction, the beginning price is never the final price. Entice advertisers with specials. You have full control to set pricing so make occasional specials to entice advertisers. Enable AdBrite’s auto pricing which will raise automatically as inventory sells, and lower itself as vacant inventory sits unsold.
<   NOVEMBER 2008   >
MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930