March 2008 Archives

2008 Mar 28
flashplayer_100x100.jpgDownloaded an swf file but you do not know how to open it? You try to download a flash player from its website but it only works on a web browser. the only option to you is to install Flash, this is impractical if you only want to open swf files and not edit them considering the cost of buying the software.

I usually go to some flash sites with online games, then later ill browse my temporary internet folder for these swf files. Store them in a folder on my drive, then later whenever i wanted to play these flash games i would just simply go over to my saved swf folder and run it from there.

Adobe flash actually has its stand alone flash player. i you just know where to locate them on their site. The only catch is that its description is not clearly defined and explained.

To get the stand alone flash player go to the flash download page and scroll down to the link marked similar to this "Adobe Flash Player Projector Content", Choose an OS version and download it. Double click on the downloaded application and drag swf into it to play.
2008 Mar 15

Obviously, its seldom to see people using batch files nowadays. Most people dont even know what it is. On, contrary i still use them on my daily tasks to automate things, its like having Perl on a Linux box. but things are changing now, i guess using batch files isn't the trend anymore these days. The same with Linux OS, Windows also comes in handy with some tools used to automate tasks and using batchfiles is one of them. Since we're using Windows XP now, its also wise to do things in GUI mode in contrary with the old style DOS mode edit.

While downloading some pictures from a camera, I found them hard to manually rename its filename to a more meaningful title and not some random "DSC001323.JPG". After rename 10 or 15 files, i got bored, thinking this would take me forerver to rename them all for they are more than a thousand in total. If you can still recall that neat application called Irfan View, my life would have been alot easier.

Well anyway, lets change things we normally do and instead of using batch files we use vb script. A zipped version of the mass renaming script is also available for download.

''''''''''''''''''''''''''''''''''''''''''
' Mass Rename Script by tildemark
' http://www.tildemark.com
'
'
' Usage:
'   Place this script on a list of files you wish to rename.
'   Run this script by double clicking on the filename.
'
'
' For bugs send it to tildemark@gmail.com
'
''''''''''''''''''''''''''''''''''''''''''

Dim fso, Path, Folder, Counter, Prefix, File, Extension

set fso = CreateObject("Scripting.FileSystemObject")

Path = InputBox("Input the location of the files to be renamed. ('.' means current folder)", "Mass Rename Script", ".")

Prefix = InputBox("Input the filename prefix", "Mass Rename Script")
If Prefix = "\" Then WScript.Quit

Extension = InputBox("Input the file extension to be renamed", "Mass Rename Script")
If Extension = "\" Then WScript.Quit

Counter = InputBox("Input the starting offset", "Mass Rename Script")

Set Folder = fso.GetFolder(Path)

For Each File In folder.Files

  If Not ((File.Attributes And 8) = 8) Then
    If fso.GetExtensionName(File.Path) = Extension Then 
      File.Name = Prefix & CStr(Counter) & "." & Extension
    End If
  End If
  Counter = Counter + 1
Next

MsgBox("Done")

2008 Mar 5
Do you know that you can use a laser to get your eyes fixed? Well, I found something cool today Laser-Assisted in situ Keratomileusis (LASIK) is a high tech surgery that uses light to fix near sightedness. The process is a type of Refractive Surgery performed by opthalmologists to correct myopia, hyperopia and astigmatism. This would be the best alternative next to glasses if you don't want to wear them. Below is an image describing the process.
lasik.jpg

2008 Mar 5
I fell like posting a new blog post yesterday but when i tried logging in, i got this message:

Got an error: Error opening file '/mt-config.cgi': No such file or directory
I was stunned, like being hit by Skeleton king's hammer. I haven't done anything to the installation and why this incident has happened? I begin checking the server hoping to find any problems, but there were none. I tried the forums and the documentation but there were no instance of the same problem recorded lately. Lastly i tried contacting my host to see if they have done something to the server. Well the only solution they have is to edit my cgi scripts manually and add a $ENV{'MT_HOME'} tag in it.

Here's is what i did before adding the lines above.
1. Check if your mt-config.cgi is really missing or what. if its there and you can edit it fine then it shouldn't be the problem. if its not there then edit the file mt-config.cgi.original, fill in the necessary fields and save it as mt-config.cgi.

2. If the error persists, check the file security of your mt-config.cgi. It should be 755. if its not, issue a CHMOD command.

3. If at this point the error is still there. Edit your mt.cgi script and the following line just below the use strict; line. Please note that this depends upon the location of your movable type files. In my case its at /cgi-bin/mt4 your might be different.

BEGIN { $ENV{'MT_HOME'} = '/home/username/public_html/cgi-bin/mt4'; }

your mt.cgi should look like:

use strict;
BEGIN { $ENV{'MT_HOME'} = '/home/username/public_html/cgi-bin/mt4'; }
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap App => 'MT::App::CMS';

4. Do the same with your mt-search.cgi. Insert the line above just below the use strict; line

UPDATE:
There is a much easier fix to this error. Instead of manually editing your .cgi files, edit the Bootstrap.pm located at

{MT HOME}/lib/MT/bootstrap.pm

Insert this line right after sub BEGIN {

$ENV{'MT_HOME'} = '/home/userfolder/public_html/cgi-bin/mt';

Edit the line above to match to your settings. 

Today is

About this Archive

This page is an archive of entries from March 2008 listed from newest to oldest.

February 2008 is the previous archive.

April 2008 is the next archive.

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

Recent Activity

Wednesday

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."