The Accidental Billionaires
(Thursday, September 15, 2011)
Update:
21 September, 2011: The Accidental Billionaires, checked. Looking for the next good book.
0 comments Posted by Wai Kit at 12:46 AM
0 comments Posted by Wai Kit at 12:46 AM
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 != "static_page"'><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 “<data:post.title/>”
<b:else/>
<data:post.numComments/> Responses to “<data:post.title/>”
</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>
 
<a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>
 
<data:post.commentRangeText/>
 
<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>
<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>
 
<data:post.commentRangeText/>
 
<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 + "_backlinks-container"'>
<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
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
<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>
Labels: Blog, Facebook, HTML 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
2 comments Posted by Wai Kit at 10:18 PM
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: }
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 */
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 */
0 comments Posted by Wai Kit at 1:23 PM
1: <!-- TWITTER RETWEET BUTTON START -->
2: <script type='text/javascript'>
3: tweetmeme_source = '[TwitterUserName]';
4: tweetmeme_url = '<data:post.url/>';
5: </script>
6: <script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/>
7: <!-- TWITTER RETWEET BUTTON END -->
1: <data:post.body/>
0 comments Posted by Wai Kit at 10:52 PM