February 2007 Archives

2007 Feb 28

.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




-----
70-648 certified people seem more valuable to employers and businesses. Online businesses need experts with 642-552 certifications. Cisco 642-892 exam addresses Demand for networking skilled people in the Telecommunications Market. 650-621 validates your practical experience and helps you earn more from your existing jobs. Oracle's market share in the database market creates a demand for 1z0-042 certified individuals even in small businesses.

2007 Feb 20

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.

2007 Feb 19

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

Yahoo 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.

2007 Feb 15

AOC_193FW.jpg

Its my new monitor! bought it for about $220. Though, I have to adjust my wallpapers to match its resolution. Now i am able to display two windows at a time with its wide screen display and when playing I could still use 1024x768 resolution, althought some games appears to be streched. I was going to use it main for programming so, the 1024x768 resolution for games is fine with me.

Here are the specs:

  • Resolution: 1440x900 at 60Hz

  • Response Time: 5ms

  • Contrast Ratio: 800:1

  • Silver & Black Color

  • PC & MAC Compatible

  • Brightness: 300 cd/m2

  • Analog RGB and DVI Digital Input

  • Narrow Bezel

  • Wall Mountable

  • Wide aspect 16:10

  • 300 cd/m² (typ), 550:1 (typ)

It does not come with its driver so well have to download it from here.
AOC 193FW driver download

2007 Feb 13

I'm currently playing this game and so far i have enjoyed it a lot. I like the way storm floats and the graphics is so much better on the TV compared to its PC version. Somehow, i don't really know why. There are so many cheats on this game and so far ive only used the techbits cheat which gives you 100000 techbits. You will not enjoy the game if you use the cheats, when i try to use them i dont save the game. And will reload after ive tested it.

Techbits
At forge or beast's equipment screen push:
Up, Up, Up, Down, Right, Right, Start

God Mode
Pause the game and push
Down, Up, Down, Up, Right, Down, Right, Left, Start

Unlimited Xtreme Tokens
Pause the game and push
Left, Down, Right, Down, Up, Up, Down, Up, START

Super Speed
Pause the game and push
Up, Up, Up, Down, Up, Down, START

Enable All Game Cinematics
In the Review Menu push
Left, Right, Right, Left, Down, Down, Left, Start

Enable All Comics
In the Review Menu push
Right, Left, Left, Right, Up, Up, Right, Start

Enable All Danger Room Courses
At the Danger Room Course Menu push
Right, Right, Left, Left, Up, Down, Up, Down, Start

Level to 99
In the Team Management Screen push
Up, Down, Up, Down, Left, Up, Left, Right, Start

Unlock Prof. Xavier, Deadpool and Ironman
In the Team Management Screen push
Right, Left, Left, Right, Up, Up, Up, Start

Massive Melee Damage
During game play push
Left, Left, Right, Left, Right, Up Start

2007 Feb 12

We could easily add a bookmark this site link or add to your favorite sites link using javascript by adding the following code to your website:

<script language="javascript">
function addBookmark()
{
bookmarkurl = "http://www.tildemark.com";
bookmarktitle="Tildemark blogs";
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
else if ( window.sidebar ) {
window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");
}
</script>

You can then place your bookmark link by adding an onClick function on your anchor tag like this:

<a href="javascript:addBookmark();">Bookmark this page!</a>

Here's a sample code:
Bookmark this page!

Please note that this code is browser dependent.

2007 Feb 8

To enable curl library with XAMPP we need to modify the php.ini files in our xampp folder.

1) Locate the following files:
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini

2) Uncomment the following line on your php.ini file by removing the semicolon.

;extension=php_curl.dll

3) Restart your apache server.

4) Check your phpinfo if curl was properly enabled.





-----
Demand by businesses for 650-393 certified people is fueling the drive for IT certifications. Microsoft 70-284 certification along with 70-528 can be helpful in boosting your career to the next level. Today, PMI-001 and other IT certifications especially CISCO 350-029 certification are becoming as marketable as academic degrees. CISCO 640-801 certification is opening doors for professionals to the most rewarding posts in networking field.

2007 Feb 8

#1062 - Duplicate entry indexed_field' for key 2

Mysql will return a duplicate entry error when trying to insert a duplicate value in an indexed field in the database. We could modify our sql insert state to check for primary key duplicate or index field duplicate and automatically update the first field with the updated value like this.


INSERT INTO table1 (a,b,c)
SELECT a,b,c
FROM table2
WHERE a IS NOT NULL
ON DUPLICATE KEY
UPDATE table1.a = table2.a

2007 Feb 2

Here's a website with an seo challenge service. It lets you compare websites with something i do not know.? I tried www.google.com and www.yahoo.com and somehow i do not know why google lost over to yahoo not to mention the annoying captcha.

i am suspecting its the number of backlinks to the site, that what makes yahoo.com the winner. anyway, they should have described it at least...

2007 Feb 2

Here are common linux command examplers for managing user accounts.

Displaying user details
Syntax: id {username}
shell> id tildemark

Create a new user with username tildemark
Syntax: useradd {username}
shell> useradd tildemark

Create a new user with username tildemark under group admin
Syntax: useradd -g {group} {username}
shell> useradd -g admin tildemark

Creating a new user with username tildemark and assign a home folder
Syntax: useradd -d {location} {user}
shell> useradd -d /home/tildemark tildemark

Creating a new user tildemark and assigning a password pass
Syntax: useradd -p {password} {username}
shell> useradd -p pass tildemark

assigning password to user tildemark
Syntax: passwd {username}
shell> passwd tildemark

Creating a new group
Syntax: groupadd {group}
shell> groupadd developers

Creating a new user and assigning it multiple groups admin, developers
Syntax: useradd -G {group1}, {group2} {,...}
shell> useradd -G admin, developers

Assigning user tildemark to group admin, developers
Syntax: usermod -G admin, developers tildemark

Delete an existing user
Syntax: userdel {username}
shell> userdel tildemark

About this Archive

This page is an archive of entries from February 2007 listed from newest to oldest.

January 2007 is the previous archive.

March 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Thursday

  • tildemark tweeted, "im having some problems with cron. it seem i cant automate tweet updates which is very necesary because my blog is published statically."
  • tildemark tweeted, "@jjdoblados a plugin from movable type"
  • tildemark tweeted, "added tweets on my blog, it looks kindda nice."
  • tildemark tweeted, "@barcampmanila good luck. i wish i was there."
  • tildemark tweeted, "just installed a my very own photo gallery. fire it up at http://www.tildemark.com/photo"

Wednesday

  • tildemark tweeted, "some php scripts are giving me 500 error on certain folders and runs on the other folder. which is very weird"

Tuesday

  • tildemark tweeted, "im upgrading my blog to anew version, hope goes well."
  • tildemark tweeted, "im currently testing mt4.2 i might be implementing this if all goes well."
  • tildemark tweeted, "i had to rename the wscript application to remove the virus. my pc is clean again."

Sunday

  • tildemark tweeted, "my pc has a virus and it has disbled the task manager, folder options and the tweakui. my antivus just expire last week. its driving me nuts"