no-entry Just today, i have noticed that my bandwidth usage surge up 2 times it normally does. A trouble of having your site suspended and having to pay for the extra bandwidth the other people are stealing (mostly Myspace users).

To end this horror, i have decided to edit my .htaccess file and prevent all websites to hotlink on the images i have uploaded to my server. Yes, i have marked them private, any referrer other than my domain name will be denied access to my site's images including Google and the other search engines.

So here is code for preventing people from hotlinking my images:

   1:  RewriteEngine on
   2:   
   3:  RewriteCond %{HTTP_REFERER} !^$
   4:  RewriteCond %{HTTP_REFERER} !^http://tildemark.com/.*$ [NC]
   5:  RewriteCond %{HTTP_REFERER} !^http://www.tildemark.com/.*$ [NC]
   6:  ReWriteRule .*\.(png|gif|jpg)$ - [N,F,L]

Its been several days since i started getting this annoying error. It lets me open a document but won't save them. I tried running the other office apps and they seemed to be working just fine except for Outlook which gives the same error.

Outlook could not create the work file, check the temp environment variable.

temp-variable

I tried moving the temp folder to root but its no use. i even changed its attributes and removed the read only check mark. I kept on checking Word if the problem was gone, kept restarting my PC, and uninstalled Office a couple of times. It will return the same error message:

Word could not create the work file, check the temp environment variable.

I am getting desperate and planned to reinstall Windows. Then, i have recalled that the problem started when i got back from vacation which i eventually removed one of my hard drives out. Thinking Windows might have rearranged my drives, i checked the registry for my temp folder settings and the cache was assigned to the wrong drive which is now a DVD ROM. DriveClone Pro must have changed my TEMP folder when I installed it.

My Solution:

I simply pointed the registry entry to my temp folder start Word and it works fine. Navigate to the registry key below:

cache-error

HKEY_CURRENT_USER > Software > Microsoft >Windows > CurrentVersion > Explorer > User Shell Folders > Cache

Change: the value to your TEMP folder like %USERPROFILE%\TEMP

To open the registry:

  1. click on START > RUN then
  2. type in regedit

starcraft Just found out that the new StarCraft Patch has removed the CD check on both StarCraft original and the Expansion Version, Brood War. Now, i don't have to always bring with me my StarCraft CD whenever i go. This is a great news for me and i thought i would like to share this with you. Considering most of my friends loves StarCraft and are still playing it up until now. I thought it was a joke, so i tried it myself. Yes the CD check is gone on the 1.15.2 patch.

Its been more than 10 years since its initial release way back in 1998. Imagine how many CDs have been sold and even today people are still buying it. So, i guess Blizzard has considered this as a bonus to StarCraft fans. I still consider StarCraft as the most balanced game i have ever played.

See for yourself and download the patch:

FTP: http://ftp.blizzard.com/pub/starcraft/patches/

HTTP: http://www.blizzard.com/us/patches/

To play without the CD, please follow the following instructions:

Windows Users:
- Make sure you have "Hide extensions for known types" unchecked. To do this please use the following steps:
    - Click Start -> Programs -> Accessories -> Windows Explorer
    - Click on Tools -> Folder options (Windows Vista users may have to press the Alt key to see the tools option at the top of the window)
    - Click on the View Tab In the list, look for the "Hide extensions for known file types" option, and make sure that it is unchecked.
    - Click OK to save the changes.
    - Now you will need to copy some files from the Game CDs

- If you own only StarCraft, copy "INSTALL.EXE" from the StarCraft CD to your StarCraft folder and rename it to "StarCraft.mpq".

- If you own StarCraft: Brood War, copy "INSTALL.EXE" from the StarCraft: Brood War CD to your StarCraft folder and rename it to "BroodWar.mpq".  If you wish to play the StarCraft original missions then please copy and rename the install file from the original StarCraft CD as well, as listed directly above.
Mac users:
- If you own only StarCraft, copy "StarCraft Archive" from the StarCraft CD to your StarCraft/StarCraft Files/ folder.
- If you own StarCraft: Brood War, copy "Brood War Archive" from the StarCraft: Brood War CD to your StarCraft/StarCraft Files/ folder.  If you wish to play the StarCraft original missions then please copy the Starcraft Archive file from the original StarCraft CD as well, as listed directly above.


Linksys Compact Wireless G USB
Just recently bought this Linksys WUSB54GC USB wifi adapter. I was surprised that it was not plug in play considering it was created just recently and from a prominent company, Linksys.

Like with what you have probably thought right now, 'why not download the driver from their website?'. Tried that one and the download link is not working, at first i thuoght i need to register my device before i can download but it turned out be the same.

The download link for Linksys Wireless-G USB Adapater at the their website is not working and i was not able to go online that time. Tried search for it for more than an hour, which somehow made me regret buying it. When i arrived home, i zipped the driver from the CD that came with my purchase and i'm uploading them here.

Download Linksys Compact Wireless-G Adapter WUSB54GC


Windows Live Writer is a desktop application used to instantly update multiple blogs without logging into each of them using the browser. You can setup popular blog programs like Wordpress, Movable Type, Sharepoint, TypePad, blogger, LiveJournal or other blog that uses the XML-RPC protocol.

Needed
We need to download Windows Live Writer before we begin. You can also install other applications that comes together with the install. You can select the applications by clicking on their corresponding check boxes. It will take you some time before you can install Windows Live Writer especially if you have selected all of the applications that came with it.

Run the application
After installing, run the application from your desktop or by navigating via the start menu. Let us add your Movable Type blog into Windows Live Writer.

livewriter

  • Navigate to Tools -> Accounts
  • On the Accounts box, click on Add
  • You will then be presented with a wizard, select Other blog service for Movable Type
  • Enter your blog URL, Username, and your Web Service Password.

Your Web Services Password is not your Movable Type login password. You may find your Web services Password at your profile page. Just click reveal on your profile then copy and paste to the Windows Live Writer textbox. See the Image below.

tmpassword

  • On the next window, you will be asked to input your blog provider. Choose Movable Type.
  • On the Remote posting URL field edit it to your xml-rpc cgi file. mine is http://www.tildemark.com/cgi-bin/mt4/mt-xmlrpc.cgi
  • Proceed by clicking OK, then add a meaningful name to your blog.
  • Do the same procedure with your other blog accounts. You can then start adding blog entries by selecting the account via the Blog menu at the toolbar.

This blog entry was posted using Windows Live Writer.

Most of the times WHM and Cpanel ports are disabled by sysadmins for security reasons. There are several ways to login to WHM and Cpanel without specifying a port. You may add the 'whm' right after the domain name or use it as a subdomain.

Secured SSL connection to WHM:

https://domain.com/whm
https://whm.domain.com
https://domain.com:2087

Regular connection to WHM:

http://domain.com/whm
http://whm.domain.com
http://domain.com:2086


Secured SSL connection to CPanel:

https://domain.com/cpanel
https://cpanel.domain.com
https://domain.com:2083

Regular connection to WHM:

http://domain.com/cpanel
http://cpanel.domain.com
http://domain.com:2082


Warning: Error in parsing value for property 'display'. Declaration dropped.
Warning: Error in parsing value for property 'white-space'. Declaration dropped.
Warning: Unknown property 'filter'. Declaration dropped.
Warning: Unknown property '-khtml-user-select'. Declaration dropped.

Just updated my blog to the latest movable type version MT4.25. Unfortunately, i got so many problems during the update that i can't seem to edit my entry body. It is displaying blank. The other fields where there and are editable.

The errors above are displayed in the javascript error console. I suspect its the javascript at first and somehow they were not uploaded completely so re uploaded all the javascript files including the ones found at the mt-static folder. The result is still a failure so figured it might me an mt script not functioning well, so uploaded the entire movable type installation again.

It cost me the entire day trying to figure out what went wrong. I tried logging in with the new uploaded installation and still, it did not work. My last resort was to check the DB, but I don't think thats problem, so i skipped.

My Solution
I tried disabling all the plugins i have installed. I am so desperate that i have disabled even the ones that come with the standard MT installation. I was surprised when the entry field has become editable again. Now, all i need to do is to find which plugin is having the error.

So, i have enabled/disabled each plugin one at a time while testing the entry body field until i found the culprit. It was the InLinks plugin 1.0. I was trying this plugin a few months before to test whether it has a good potential to work and on how it will affect of search engine optimization in general. It turned out that is not as good as google adsense, not to mention that you will be adding no-follow links to your posts. Since, I am not using the plugin, I might as well disable it now that it is causing a conflict on my movable type installation.

Disable InLinks Plugin
Inlinks.com plugin is causing the entry body to display as blank. The only solution is to disable it or until they are able to provide a work around on this problem.
Pacman is one of my personal favorite arcade game. Even today, I can still imagine myself playing some old school games, and i must admit i still miss them. Pacman, one of the games that does not seem to end. Difficulty increases while moving up a level. Relying on your perception and your keyboard typing skills can sometimes become frustrating. I still hear myself saying "Damn, this keyboard is defective." even though its not, just another alibi for not passing a level. Some other arcade games that i like were Digdug, Arkanoid, and Invaders.

These programs runs on my 80286 personal pc with that 180KB single sided - single density floppy diskette. You will be surprise how much technology has envolved since then. Today my Flash disk is able to hold 16GB of data that is almost 100% times more than the capacity of the early storage devices. Anyway, what am i talking about, im supposed to be talking pacman. here is a playable version here, got it somewhere on the net, i don't know where. You may download this swf copy if you want to play pacman offline; you will need an offline flash player to play pacman.

Blogging can be fun, but earning and at the same time having fun is way much better. Here's how to make the most of your blog using some simple online tools. Adsense would probably top the list for most bloggers. Getting $100 a month can be very exciting, generating a 4 digit income will probably give you a career. But what if your not getting the $100 mark?

There are some other ways to earn more!
Search engines loves text, the more you have them the better. However, most people would tend to get attracted to images so that's why Adsense offered image ads. Did you know that you can also use Amazon Associates to generate images for you? Well, you probably are using Amazon for your wish list. Now, earn some more using amazon to display images on your blog. Now are you stealing images from some other peoples' blog or website? Amazon Associates will fix that.

For example, if you are writing about the basics of blogging and you will probably add pictures of books from the internet for reference purposes then using amazon associates will help earn more like this:



Earning additional money can be as easy as this:
Get your Amazon Associates ID
Get A topic to blog
No Adsense ads yet?
Attach Associates link or code
Publish your blog

A few more notes:
Getting your site indexed on Google will be faster if you are using paid domain names for your blog like www.tildemark.com. Tildemark blogs is hosted at Cazimi Web for years now and so far this site has generated more than 20x the cost I used to run it. 
mercury-logo.jpgThis is my first time to use Mercury on XAMPP, I never had a mail project before so I guess I'm gonna blog it for future reference. Obviously, we will be using SMTP to send mails and POP3 to receive them. Since we do not have sendmail installed in Windows XP.

Using Mercury bundled witn XAMPP is so straight forward. I am assuming you have already installed XAMPP and Mercury Mail Transport is already running. I also assume you already know how to setup a mail client (eg Outlook, Outlook Express, ThunderBird, EudoraMail are few of them). Setting up a mail client is not covered here. 




Requirements:
  • XAMPP - Our webserver
  • Codeigniter - PHP Framework
  • Mail Client - Receive mails
  • Text Editor - TextMate is a very good editor but I use notepad

xampp-control-panel.jpg
Now, all we need to do is Add Users for testing: 
1. Open XAMPP Control Panel and Click on Start on the Mercury Section
2. Click on the Admin Button to Add Users
3. On the Mercury Menu, go to Configuration -> Manage Local Users
4. To Add an account Click on ADD 
5. Add your desired test Accounts by filling in the Username, Name and Password field
6. Then click OK, then click Close


Before testing, you might want to configure codeigniter's config to store your sender accounts. To do that: 
1. Navigate to your codeigniter application->config folder 
2. You may create you own config file or add them in the email.php config
3. if email.php does not exist you may create one. 
4. You can use the basic config for sending smtp/pop3 below:

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'localhost';

5. You may add your test account so you don't have to manually type them whenever you send.Take note, I used localhost.com as my host name. Mail clients may not permit you to add an account with just localhost so adding .com, .net, .org will do the trick.

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'localhost';
$config['email_address'] = 'sender@localhost.com';
$config['email_name'] = 'Localhost test';

6. Remember not to close your <?php tag 
7. If you want to, you can also configure codeigniter to autoload the email config by adding it at the autoload.php file

We can now start sending mail with code igniter:
1. At the application->controllers create a controller class: 
<?php
class Test_Mail extends Controller {
function Test_Mail()
{
parent::Controller();
}	
function index()
{
// get config data
$from = $this->config->item('email_address', 'email');
$from_name = $this->config->item('email_name', 'email');
$to = 'tildemark@localhost.com'; 
$to_name = "To Name";
// we load the email library and send a mail
$this->load->library('email');
$this->email->from($from, $from_name);
$this->email->to($to, $to_name);
$this->email->subject('Email subject');
$this->email->message('Testing the email class.');
$this->email->send();
//to debug we can use print_debugger()
echo $this->email->print_debugger();
}
}
2. On your browser, type in http://localhost/codeigniter/test_mail
3. Check you mail client for new mails. 
4. Thats it! We have successfully sent a mail using Mercury on XAMPP on in your local computer.

test-mail-success.jpg

Please the codeigniter manual for more resource about its email class. 



Recent Comments

Close