1. about:config
  2. middlemouse.paste: true
Now you can paste from your clipboard with just the middle click. Pretty handy.

27 comments Posted by Wai Kit at 8:07 AM

  1. Escape Adsense code with http://www.accessify.com/tools-and-wizards/developer-tools/quick-escape/default.php
  2. Find
    <b:if cond='data:blog.pageType == "item"'>
    PUT YOUR CODE HERE
    </b:if>
  3. Put the code below above it
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
     PLACE AD CODE HERE
    </b:if>

0 comments Posted by Wai Kit at 7:55 PM

  1. Tweak the page render time from 250ms to 0ms
    nglayout.initialpaint.delay to 0.
  2. network.http.pipelining: true
    network.http.pipelining.maxrequests: 8 (maxes out at 8)
    network.http.proxy.pipelining: true
  3. Increase RAM cache setting value
    browser.cache.memory.capacity
    Physical RAM Memory Cache (in KB)
    32 MB 2048
    64 MB 4096
    128 MB 6144
    256 MB 10240
    512 MB 14336
    1 GB 18432
    2 GB 24576
    4 GB 30720
    8 GB and up 32768
  4. content.notify.backoffcount: 5
  5. config.trim_on_minimize: true
  6. network.prefetch-next: true

0 comments Posted by Wai Kit at 10:25 AM

  1. Locate http://i61.photobucket.com/albums/h59/c_stavanger/hello/bg.png
  2. Replace with http://img580.imageshack.us/img580/7343/bg2v.png

0 comments Posted by Wai Kit at 2:03 AM

Firefox Gets Laggy

(Sunday, September 25, 2011)

Mozilla Firefox is a fast browser, but with the lapse of time it starts working much slowly. The reason is fragmentation of profile databases. A free tool SpeedyFox is designed specially to resolve that problem. The method used in SpeedyFox is 100% safe for your profile (e.g. bookmars, passwords, etc), it's well documented and tested on millions computers.

Use this. http://www.crystalidea.com/speedyfox

0 comments Posted by Wai Kit at 9:07 PM

Android Market 3.1.5

(Friday, September 23, 2011)

New Android Market 3.1.5 is here.

Update:
September 24, 2011: Link

0 comments Posted by Wai Kit at 12:36 PM

How to Import Sample Android Projects to Eclipse?

(Thursday, September 22, 2011)

  1. In Eclipse>Window>Preferences>Android, make sure you have set the SDK Location then Apply and press OK
  2. Select File>New>Android Project
  3. Click on Create project from existing samples
  4. Select the SDK version and select the sample you want

0 comments Posted by Wai Kit at 7:05 AM

Close the project, reopen it and delete.

2 comments Posted by Wai Kit at 6:54 AM

If the size of the emulator is too big. You can resize it by:

  1. Run Run Configurations
  2. Pick the "Target" tab
  3. Scroll down to Additional Emulator Command Line Options and put in: "-scale 0.8" or another number

0 comments Posted by Wai Kit at 5:50 AM

From The Social Network 2010

(Thursday, September 15, 2011)

From The Social Network 2010:


1529
01:14:01,851 --> 01:14:03,284
What is happening on that?
1530
01:14:03,352 --> 01:14:05,445
l have my final coming up
for Postwar and Contemporary Art
1531
01:14:05,521 --> 01:14:06,783
and l haven't been to class.
1532
01:14:06,856 --> 01:14:08,118
l'm supposed to write about
these four paintings.
1533
01:14:08,491 --> 01:14:09,822
That's a Facebook page?
1534
01:14:09,925 --> 01:14:10,949
Yeah. l opened it under an alias.
1535
01:14:11,026 --> 01:14:12,459
l posted the paintings
and asked people to comment.
1536
01:14:12,528 --> 01:14:15,520
Every once in a while, l hop on
and stir the pot to get a good debate going.
Why not Google?

0 comments Posted by Wai Kit at 2:52 PM


Next in the list. Should make a fine read.

Update:
21 September, 2011: The Accidental Billionaires, checked. Looking for the next good book.

0 comments Posted by Wai Kit at 12:46 AM

Blogger Comment Block

(Wednesday, September 14, 2011)

A sample of the comment block code in theme template that reflects the changes in the comment block.

<b:includable id='comments' var='post'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'><h3>Comments</h3>
<div id='commentblock'>
<a name='comments'/>
<b:if cond='data:post.allowComments'>
<b:if cond='data:post.numComments != 0'>
<p id='comments'>
<b:if cond='data:post.numComments == 1'>
One Response to &#8220;<data:post.title/>&#8221;
<b:else/>
<data:post.numComments/> Responses to &#8220;<data:post.title/>&#8221;
</b:if>
</p>
</b:if>
 
<b:if cond='data:post.commentPagingRequired'>
<span class='paging-control-container'>
<a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a>
&#160;
<a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>
&#160;
<data:post.commentRangeText/>
&#160;
<a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a>
&#160;
<a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a>
</span>
</b:if>
 
<ol class='commentlist'>
<b:loop values='data:post.comments' var='comment'>
<li>
<b:if cond='data:comment.favicon'>
<img expr:src='data:comment.favicon' height='50px' style='margin-bottom:-2px;' width='50px'/>
</b:if>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:blog.enabledCommentProfileImages'>
<data:comment.authorAvatarImage/>
</b:if>
<span class='auth-name'>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
</span><br/>
<span class='auth-time'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
<div class='commenttext'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p>
<data:comment.body/>
<span class='interaction-iframe-guide'/>
</p>
</b:if>
</div>
</li>
</b:loop>
</ol>
 
<b:if cond='data:post.commentPagingRequired'>
<span class='paging-control-container'>
<a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'>
<data:post.oldestLinkText/>
</a>
<a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'>
<data:post.olderLinkText/>
</a>
&#160;
<data:post.commentRangeText/>
&#160;
<a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'>
<data:post.newerLinkText/>
</a>
<a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'>
<data:post.newestLinkText/>
</a>
</span>
</b:if>
 
<p class='comment-footer'>
<b:if cond='data:post.embedCommentForm'>
<b:if cond='data:post.allowNewComments'>
<b:include data='post' name='comment-form'/>
<b:else/>
<data:post.noNewCommentsText/>
</b:if>
<b:else/>
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>
</b:if>
</b:if>
 
</p><b:else/><p class='nocomments'>Comments are closed.</p>
</b:if>
 
<div id='backlinks-container'>
<div expr:id='data:widget.instanceId + &quot;_backlinks-container&quot;'>
<b:if cond='data:post.showBacklinks'>
<b:include data='post' name='backlinks'/>
</b:if>
</div>
</div>
</div>
</b:if>
</b:includable>

0 comments Posted by Wai Kit at 5:16 AM

How to Prevent Keylogger?

(Tuesday, September 13, 2011)

A little program I use to prevent keylogger when I'm using a guest computer. Just a precaution. Download the portable version and you don't have to install. Click out your password or email, drag and drop. I'm sure there are something better or alternatives, discuss.

Neo’s SafeKeys v3: http://www.aplin.com.au/

0 comments Posted by Wai Kit at 4:22 PM

How to Add Facebook Like Button in Blog Post?

(Monday, September 12, 2011)

Here’s how you add a Facebook Like button to your blog post. Copy the code below and paste it in your HTML format post. Paste it wherever you want the button to be, for example, paste it before your post if you want it to appear at the top of your post.
<div class="wlWriterHeaderFooter" style="float:none; margin:0px; padding:4px 0px 4px 0px;"><iframe src="http://www.facebook.com/widgets/like.php?href=http://waikitsays.blogspot.com/2011/09/test_12.html" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe></div>

Update:
12 September, 2011: Change its height to 30px, looks better that way.
24 September, 2011: Scrap that. 30px hides the profile thumbnails, too small for them, 80px doesn't.

Labels: , , 0 comments Posted by Wai Kit at 5:14 PM

Working on a new blog in WordPress. Will move my blog over and post the link here once it's up and ready. Thank you all for your support and I hope to see you around in the new blog.

Update: Here's my new blog: http://waikitsays.wordpress.com/

Update:
There is a new blog, but it isn't in WordPress. Too much restrictions, everything needs money, can't even edit the HTML my own. Plus, no ads. Decided to stay in Blogger and changed to a new name. Need to furnish it a bit here and there, simple look will do. Nothing flashy.

3 comments Posted by Wai Kit at 6:33 AM

There are quite a few of sharing widgets out there. Some offers amazing amount of sharing sites while some, like this one here, only shares a few. However, it has the cool drop down feature that I really like and the icons are really nice. Here’s a list of the sites you are able to share and bookmark with with this widget.

2 comments Posted by Wai Kit at 10:18 PM

Client Server Coding

(Saturday, June 26, 2010)

My first client server java coding:

   1: import javax.swing.*;
   2: import java.awt.*;
   3: import java.io.*;
   4: import javax.swing.border.*;
   5: import java.net.*;
   6: import java.awt.event.*;
   7:  
   8: class Server extends JFrame implements ActionListener
   9: {
  10:     private JTextArea jtaSend=new JTextArea();
  11:     private JTextArea jtaReceive=new JTextArea();
  12:     private JButton jbtSend=new JButton("Send");
  13:     
  14:     DataOutputStream output;
  15:     DataInputStream input;
  16:     
  17:     public Server()
  18:     {
  19:         jbtSend.addActionListener(this);
  20:     
  21:         try
  22:         {
  23:             ServerSocket server=new ServerSocket(8000);
  24:             Socket socket=server.accept();//wait connection from a client
  25:             System.out.println("connected to a client");
  26:         
  27:             output=new DataOutputStream(socket.getOutputStream());
  28:             input=new DataInputStream(socket.getInputStream());
  29:         
  30:             getContentPane().setLayout(new GridLayout(2,1));
  31:             JScrollPane scp=new JScrollPane(jtaSend);
  32:             scp.setBorder(new TitledBorder("Type your message here"));
  33:         
  34:             JPanel panel=new JPanel();
  35:             panel.setLayout(new BorderLayout());
  36:             panel.add(scp,BorderLayout.CENTER);
  37:             panel.add(jbtSend,BorderLayout.SOUTH);
  38:             getContentPane().add(panel);    
  39:         
  40:             getContentPane().add(new JScrollPane(jtaReceive));
  41:             setTitle("Server");
  42:             setSize(300,300);
  43:         
  44:             setLocation(20,30);
  45:             setVisible(true);
  46:         
  47:             while(true)
  48:             {
  49:                 jtaReceive.setText(input.readUTF());
  50:             }
  51:         }
  52:         catch(IOException ex)
  53:         {
  54:             ex.printStackTrace();
  55:         }
  56:     }
  57:  
  58:     public static void main(String[]args)
  59:     {
  60:         JFrame frame=new Server();
  61:     }
  62:  
  63:     public void actionPerformed(ActionEvent e)
  64:     {
  65:         try
  66:         {
  67:             output.writeUTF(jtaSend.getText());
  68:         }
  69:         catch(Exception ex)
  70:         {
  71:         }
  72:     }
  73: }
Takes in messages from a user and send it to the other. Incomplete code.

4 comments Posted by Wai Kit at 10:05 PM

No doubt the Night Sky 2.0 Blogger template by Ray Creations is one of the best templates I’ve ever seen. There are other templates by Ray Creations which are as good too. You can check out more of its works here.

However, there is a bug in the template. I find the end of my right sidebar cuts off and goes to the far left side of the screen in posts page (not main page) whenever I add widgets on the sidebar to the extent that the sidebar’s height exceeds that of the post’s.

I figured this is because the sidebar-bottom is made to float:left; margin-left:20px. So, whenever there is no post on its left for the sidebar to “hold on to”, the sidebar will eventually floats itself to the most left that it can find with 20px margin from the left.

Here is the original extract from the template:

   1:  #sidebar-bottom {
   2:    width: 240px;
   3:    height:40px;
   4:    padding-right: 0px;
   5:    background: url(http://lh5.ggpht.com/_qYQcA5cg1OY/SsMdZU-8OAI/AAAAAAAAAG8/fRV84_un7sQ/rightsidePanelbottom.jpg) no-repeat right bottom;
   6:    float: left;
   7:    margin-left:20px;
   8:    overflow: hidden;      /* fix for long non-text content breaking IE sidebar float */


To fix this:
  1. Go to Design >> Edit HTML.
  2. Remember to always backup your template first before you do any changes in your HTML.
  3. Search for “sidebar-bottom” using your browser’s search function and you should see codes resembling the above extract.
  4. Change line 6: float: left; to float: right;
  5. Change line 7: margin-left:20px; to margin-right:11px;
  6. It should look like this:
       1:  #sidebar-bottom {
       2:    width: 240px;
       3:    height:40px;
       4:    padding-right: 0px;
       5:    background: url(http://lh5.ggpht.com/_qYQcA5cg1OY/SsMdZU-8OAI/AAAAAAAAAG8/fRV84_un7sQ/rightsidePanelbottom.jpg) no-repeat right bottom;
       6:    float: right;
       7:    margin-right:11px;
       8:    overflow: hidden;      /* fix for long non-text content breaking IE sidebar float */
  7. Click on Save Template and you’re done.
Note: I’m no HTML expert whatsoever. I did this fix by experimenting the template in Adobe Dreamweaver and by changing the codes one by one, retrying, re-fixing and refreshing the pages over and over again. It’s hard work. Try this fix at your own risk. I shall not be hold responsible for any damages caused in your blog for using this fix. Like what I said, I’m no HTML expert so there may be other solutions to this but this is the only one that I found that works. If you are going to post this somewhere please inform, credit me and post a direct link to this page.

0 comments Posted by Wai Kit at 1:23 PM

 
Copyright 2005-2007. Hello Wiki designed by Fen, Blogger Templates by Blogcrowds. Wai Kit Says logo designed by Wai Yen.