Posts RSS Comments RSS 133 Posts and 258 Comments till now

Archive for April, 2007

How to Traverse a Website Programmatically

Have you ever creating offline archive of a website that you like? Which “offline downloader” did you use? Hopefully this post will give you rough idea on how to traverse the website ( and do whatever you want to do with the content ). My idea of traversing a website represented in the following steps:

  1. Define the startup page
  2. Collect all hyper-links that have not been visited and put it into queue
  3. Do something with the content
  4. Dequeue a hyper-link and return to step 2
  5. Repeat until no more links in the queue.

I have build my own prototype that suit my needs. I might need further tweaks and improvements before releasing it to the public. My main goal would be adding functionality to define characteristics of the page that will be traversed in step 2, and functionality of what you can do with the content of the page. Stay tuned for further updates.

Firing Blanks at Your Blog? Nudge .. Nudge .. Wink-Wink .. Say No More

I was reading my RSS Bandit (thanks to Kang Kombor) when I bumped an article about classification of blog posts. I will write down the excerpt here:

  1. The SpeedLinker
    This is where you gather links to something interesting in other blogs.
  2. The Quoter
    This is when you saw other people saying good things in their blog and you rewrite it in your own blog.
  3. The Entertainer
    This is where you entertain your readers by putting hilarious video from Youtube.com
  4. The Questioner
    This is where you ask your readers a question to start a discussion. You definitely need readers to begin with :-)
  5. The Updater
    This is where you inform your readers regarding the progress of an ongoing project. It could be report on your own project/blog
  6. The Newsreader
    This is where you share interesting news you get from press release or newspaper.
  7. The Recycler
    This is where you put your old post as new, with additional update of course
  8. The Guest Poster
    This is where you let someone else creating post in your blog.
  9. The Announcer
    This is where you announce something to your readers. DOH!

Source
The 9 Essential Posts that Every Blogger Should Know

 

And I think this post itself will become the example of ‘The Quoter’ type of post.

CSS Font-Size Illustrated

After frustated unable to get my source codes displayed smaller, I decided to play around with CSS’ font-size for our amusement.

font-family font-size Target
Testing Font
Possible value:
Verdana
Arial
Helvetica
Sans-Serif
.. any font installed on your system
Possible values:
pixel, example: 10px 8px
point, example: 8pt
old-school HTML, example: 1 2 3 … 8
ems, example: 0.8em 1em
 

 

Done using Javascript:

<script language="javascript">

function UpdateFont()
{
    var objTarget = document.getElementById('divtarget'); // a div
    var objSourceFont = document.getElementById('txbFont'); // a textbox
    var objSourceSize = document.getElementById('txbSize'); // a textbox
    if (objTarget != null && objSourceFont != null && objSourceSize != null)
   {
       objTarget.style.fontSize = objSourceSize.value;
       objTarget.style.fontFamily = objSourceFont.value;
   }
}

  </script>

 

Resources:
W3C Standard
W3School Tutorial
 

The Best Way To Learn a New Programming Language

During my university days, I learned C/C++, C#, Java, and Assembly language. During my Industrial Attachment I involved a lot with Java projects. On my final year I also using Java. But on my first job I did VB.NET. I also had been involved in a project using Coldfusion for quite sometime. Personally I prefer to use C# to solve my daily computing problem. But when you need to dig the windows deeper, you need to use the native C++ to do that.

 . 

On other platform I have been meddling with Linux, having fun with Bash scripts, playing around with Perl. But unfortunately I did not even use TCL/TK at all.

 . 

When I was wowed by Rails, there’s a small part of me that wants to learn Ruby. So I googled around, lo and behold … I found the Best Guidebook In The World.

 . 

Quick … run ….

 . 

Ruby .. here I come …

 . 

hey wait … you have not tell us how to learn a new programming language ….!!!

 . 

oh right .. well basically to start you need to find something similar to the Best Guidebook In The World, download the necessary tookit, practice everyday, create something useful for yourself and the community, and keep believing that you read this posting because of your destiny =).

 . 

Oh man … I regret above paragraph, I mean … unrelated Title and Content should classify as a Prank right?

An Even Better Quote of The Day for Your Website

To celebrate April’s Fools Day, I decided to create yet another Quote of the Day :-). The additional feature is a link to the Wikipedia article of the person quoted will be included. You also make it reload different quote every specified time. And it no longer forces you to link back to my Website. But I will be really grateful if you could link back to my blog :-)

Features
Link to biography/article of the author at Wikipedia.

Auto refresh. You can change how many minutes passed before the quotes is repaced with a new one.

Do you have feature-request?

Known Bugs
The CSS is broken when displayed on IE. has something to do with the DOM.

Have you found another bug?

<p style="color:#FF34FF; background-color:#EEEEEE">
  <script langugage="javascript" type="text/javascript"></p>

/*
  Quote of The Day user Guide:
     qotd_style, a string value for CSS of the QOTD.
               Default: no CSS
               example: qotd_style =”color:#FF34FF”;

    reloadTime, an integer value to regulate how many minutes before the QOTD is refreshed.
               Default: not refreshed.
               example: reloadTime = 5; //QOTD will be refreshed every 5 minutes.

    isUsingWikipedia, a boolean value to indicate whether a link to Wikipedia.org’s related article will be included.
               Default: true.
               example: isUsingWikipedia = false; //no link to wikipedia.org

    isItalic, a boolean value to indicate whether the quotation is diplayed in italics.
               Default: false
 */
  var reloadTime = 1;
  var isItalic = true;
  var qotd_style = “color:#FF34FF; background-color:#EEEEEE”;

</script>

<script language="javascript" type="text/javascript" src="http://sodeve.net/qotd2/qotd.js" ></script><h5><a href="http://sodeve.net/quotes/">Sodeve’s QOTD</a></h5> 
</p>

If you have any problem installing the script in your website, feel free to drop a comment.

Pages (6): « First ... « 3 4 5 [6]

Close
E-mail It
Socialized through Gregarious 42