April 19, 2007

Blocking unwanted referrers

Filed under: Mod_rewrite Category RSS Feed Mod_rewrite

Looks like my post to avoid linking to hot images is not working, now i'm getting 85% bandwidth usage on my website. When i try to view the logs got numerous referrers from profiles.myspace.com. Alright, i have decided to block all traffic from myspace, will do it using .htaccess.

RewriteCond %{HTTP_USER_AGENT} QihooBot [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?profile.myspace.com.*$ [NC]
RewriteRule ^.* - [F]

Now, there is a bot that i have found so i added it anyway. :D If you wish to block some more add an or on the [NC] directive like this [NC,OR].

March 29, 2007

IE7 always keep a cache of the visited pages

Filed under: Browsers Category RSS Feed Browsers | Internet Category RSS Feed Internet | PHP Category RSS Feed PHP | Programming Category RSS Feed Programming

The new version Internet Explorer 7 has a problem in caching of the displayed specially if you are using some ajax applications. Even if you have use the meta tags that specifies no cache, the IE7 would ignore them.

<meta name="pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="cache-control" content="no-cache">

The above code does not work on IE7. You could force the browser to remove the cache by manually deleting it or by using the following code below in PHP:

// choose a date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// set the last modified date to today
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// if the browser supports HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// if the browser supports HTTP/1.0
header("Pragma: no-cache");

Another way is to add the meta tag code below in between your end body tag and your end html tags. It does not conform to the w3c standards, but it works. :D

</body>
<head>
<meta http-equiv="PRAGMA" content="NO-CACHE" />
</head>
</html>

March 23, 2007

Mobile Phone Tracking System

Filed under: Entertainment Category RSS Feed Entertainment

GPS - Know Your Exact Position Anywhere In The World
By: Sharon Albright
GPS [global positioning system] is a worldwide radio-navigation system formed from the constellation of 24 satellites and their ground stations. It is a system mainly used to locate the user’s position at a time. Although GPS was originally intended for military applications, but now it is mainly used in marine, location-based services and terrestrial navigation. GPS can work for 24 hours in any type of weather condition, irrespective of sun and rain. Working of GPS system GPS works in a wonderful way. The GPS satellite circles the earth twice a day in a precise orbit and transmits signal information to earth. GPS receivers take into this information and use “triangulation method” to calculate the user’s exact location. The meaning of “triangulation” is receiving radio signals from a distance. Along with knowing the distance, you also need to know exactly the position of the satellites in space. This is done with the help of high orbits and carefully monitoring the instruments for locating the satellites. Finally you also need to correct any type of delays that the signal can experience as it has to travel for a long distance through the atmosphere.

Visit the site to know your exact position now by clicking here.

March 22, 2007

Beatallica Torrents Downloads

Filed under: Music Category RSS Feed Music

If you are fun of the Beatallica's hilarious songs, you should have found that they have removed their torrent files from their website. But, the torrent files are still active which could be downloaded from this link below.

A Garage Dayz Nite (2001)

Beatallica (2004)

March 21, 2007

Rolling Star Lyrics by YUI Complete with Chords

Filed under: Music Category RSS Feed Music

After several weeks of listening to this song, i finally finished adding chords to the lyrics, anyway just done on my first try so there might be lots of errors. I beleive nobody has posted any lyrics to this song first other than my version, so there would be nothing to compare to. Please fell free to comment if you have found any mistakes on the lyrics to make it better.

Anyway its very hard to practice with your guitar without hearing the entire song, and most of the available mp3s on the net were just from the anime Bleach which is incomplete. You need to purchase the song in order for you to hear the entire lyrics. However, i have found an uploaded copy of song on the net. Look for the link a the end of this post.

Anyway, while adding the chords, i have watch so many of YUI's videos and the most weird thing is that she sounds a bit different, i dont know why, and on her video its seems like there wasn't any life at all, i really think its just a complete acting. I might be just speculating, but see for yourself. . Anyway, i still liked the song.

Continue reading "Rolling Star Lyrics by YUI Complete with Chords" »

March 13, 2007

IE7 Keyboard and Mouse Shortcuts

Filed under: Browsers Category RSS Feed Browsers | Internet Category RSS Feed Internet | Software Category RSS Feed Software

Most of us started using IE7 because of its tabs support. While using it we would just maximize its use. Here's a list of common Internet Explorer Shortcuts:

Keyboard shortcuts
Open links in a new tab in the background CTRL+click
Open links in a new tab in the foreground CTRL+SHIFT+click
Open a new tab in the foreground CTRL+T
Open a new tab from the Address bar ALT+ENTER
Open a new tab from the search box ALT+ENTER
Open Quick Tabs (thumbnail view) CTRL+Q
Switch between tabs CTRL+TAB/CTRL+SHIFT+TAB
Switch to a specific tab number CTRL+n (n can be 1-8)
Switch to the last tab CTRL+9
Close current tab CTRL+W
Close all tabs ALT+F4
Close other tabs CTRL+ALT+F4

Mouse shortcuts
Open a link in a background tab Click the middle mouse button on a link
Open a new tab Double-click the empty space to the right of the last tab
Close a tab Click the middle mouse button on the tab

March 5, 2007

A Politician's Life After Death

Filed under: Blogging Category RSS Feed Blogging

The Election buzz is here again. Individuals aspiring to take political seats are now busy doing massive campaigns through TV ads, flyers, banners, free shirts... and for the love of many, free BALUT calling it a sample BALUT with the politicians name written all over the egg shell. During elections, they the TRAPOS (traditional politicians) and newbies alike are alive announcing to the world their unwavering desire to serve. Some are good and have kept their word in one way or another.. but for most of them, they're gone into thin air as soon as they assume the office. Those were the type of politicians who never get the office back after their term is over. Some did run again, some got sick for sitting on their couches too long, some aged prematurely, some died.

Some may wonder where have all those cowboys gone. Just in case you're interested, here is a site with listings of Politicians featuring their past office, achievement, length of service and their life after the limelight. See if you can spot a familiar name... take George Lindemann for instance. Okay, he's a billionaire who supported those politicians, but look it up anyway.

The Benefactor Project

Filed under: Blogging Category RSS Feed Blogging

This is a project inviting companies and individuals to lend, at no interest, one million dollars to provide houses and jobs to those without them and others struggling with poverty across the United States of America. To keep track and for referrence of those who joined, the funds raised, listings of benefactors and details of houses built will be updated and posted in public through The BenefactorProject website.

The list of benefactors include Pres. George H.W. Bush, Simon Cowell, Sen. Trent Lott, George Lindemann Jr. , and other famous personalities.

This project is still continuing to expand with Americans reaching out to fellow Americans. Here's a quote from the person spearheading the project:

"I call it The Benefactor Project because no matter what your station in life we all can do something to help each other. With what we have, what we know or just how we can inspire or encourage. If you have a desire to help a fellow American here is my humble proposal offering what I have learned."

March 2, 2007

Command and Conquer 3 Tiberium Wars

Filed under: PC Games Category RSS Feed PC Games

CC3logo.jpg

Welcome back, Commander

Those are the first words that would appear when playing the Command and Conquer 3 Tiberium Wars demo. Downloaded it and i was amazed with its game details. I love the unit shadow and the new infantry that could fly, sorry i forgot its name. there's also a new race, bugs lots of them. heres a site that lists its GDI iconic units . So far, i am enjoying the demo, its only downside is that its pretty slow and i cant make the units to move a little faster.

anyway, its not yet out until March, however you can also preorder it from its website . if you want to try it out, you may download its torrent file . Downloading from fileplanet sucks, the queue is too long, i dont understand why should we pay just to download these free files. in the meantime try to check out more from its website

CC3preview.jpg

CC3_newrace.jpg

February 28, 2007

Enable htaccess on Apache

Filed under: Mod_rewrite Category RSS Feed Mod_rewrite | Servers Category RSS Feed Servers

.htaccess files allows us to change configurations on our servers per directory or subdirectory. we may enable htaccess files by editing our httpd.conf rewmoving the comment on line from

;LoadModule rewrite_module modules/mod_rewrite.so

to

LoadModule rewrite_module modules/mod_rewrite.so

we need to change the AllowOverride directive also from

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>

to

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</Directory>

You can also rename your .htaccess file by adding the line below on you httpd.conf file

AccessFileName [filename]

example: AccessFileName .configuration

February 20, 2007

Getting data between html tags or string phrases

Filed under: PHP Category RSS Feed PHP

Here's a function from the php manual that returns everything inside two tags or between two string phrases. As we all know, substr requires the integer position of the string to return, so it would be hard if we are only given with start string and end string but not its integer position.


function substring_between($haystack,$start,$end) {
if (strpos($haystack,$start) === false || strpos($haystack,$end) === false) {
return false;
} else {
$start_position = strpos($haystack,$start)+strlen($start);
$end_position = strpos($haystack,$end);
return substr($haystack,$start_position,$end_position-$start_position);
}
}
$content = '<title>Tildemark blogs</title>';
$title = substring_between($content,'<title>','</title>');

the code above returns the title of an html page.

February 19, 2007

Top Searched Keywords

Filed under: SEO Category RSS Feed SEO

lists their mosts searched keywords at the website. You can also search for by country.

also has its own version but it looks like a blog rather than a list, they call it Yahoo Buzz .

Lycos also has its own list here .

ZDNet has an interesting list of keywords here, so much for those top celebrities..

If you can afford WordTracker , its much better if we search from there. However, they also have a list of top searched keywords online.

We could also search for most searched keywords at Ask.com from here .


Categories

Navigation

Sponsored Links

  • Cagayan de Oro Portal
  • Paradise philippines

Login

Blog Status:
Entries: 72
Comments: 727
Statistics: