Wednesday February 8, 2012 @ 00:07:45 GMT+10 ( Weather: n/a )
|
|
|
|
|
Powered byD's Bloggie
| Weblog Main complete archive ... |
|
|
Last edited: Sat 2006-09-30 @ 23:20 , by DaRen 1 time(s)
Site updates completed. Introducing D's Bloggie v3.1 ! - 8:55 pm
Also arming my site with rifles and bobby traps...
Personal , Security , Site Issue , Site Updates - DaRen
Test... Test... Testing 1 2 3...
Ladies and gentlemen, I 'officially' announce that the updates on my site has completed! This update took me almost 3 months to finish. That's pretty long time, since all the updates are on local and I don't focus on this everyday, so sometimes I tend to forget where I stop the last time. Anyway, this update is accompanied by the release of D's Bloggie v3.1 . Weblog is the main content on my site. So for most of the time, whenever there is a major site update, my D's Bloggie will be updated too, and vice versa.
This site update, like most of the major updates, which heavily involved in backend changes. For database part, I've created 5 new tables, added 21 new columns to existing tables and dropped 5 existing columns. This is not fun, I've to change lines of lines of codes. I've also revised most of the sql queries and remove any duplicate queries. On a full standard page it usually needs around 30 queries, after the tuning, it now requires only around 20 queries =) For search engine optimization (SEO) part, I added 'description' and 'keyword' to the HTML <META> tag. Depending on the page's content, different or custom descriptions and keywords will be used. I'm not sure why Google indexed my main page but not the rest of other pages. I even added new rewrite rules to rewrite all the URLs that points to weblog and shout entries. For example, ' /weblog/100/' will now be rewrote to ' /weblog/100.html'. So I hope this will help abit for Google... although Yahoo has already crawled almost all the pages on my site. That's weird eh ?
Weblog entries are now able to carry multiple tags/categories instead of just a single tag/category. Tag and category is an exchangable term on my site. I've expended from originally 9 categories to 41 categories in this update. The new categories can be arranged into hierarchy format, which means every category can be a parent category and allowed to have sub categories beneath it. The public is also able to perform a search on the weblog entries, by matching the entry's title, description and content. The default search mode will be 'exact search', and it's the only search mode available right now. Read my other entry Stucked with "homemade" search engine for own weblog for more info.
This site update also indicates the starting of the battle between my site and spammers. Now, this site is armed with site-wide banning (IP range, hostname). On top of that, suspicious private message/shouts/comments will not be added. You're free to view my blacklisted list. For security, CAPTCHA (aka verification code) is used on several new pages as well as extra tracking to strengthen site's security.
For tools section, I added a few new tools. Most of them are for administrative purpose. Only URL Extract is opened for public. For weather report, I added new weather reports that cover most of the cities/capitals in Australia.
The most noticeable layout changes will be the new logo design and the side navigation menu. The side navigation menu is moved to the right hand side. This is also a part of the SEO, data comes first  On this update, side navigation menu is break down into modules, every page can choose to load the required or preset module instead of displaying all. For example, the shoutbox will only be loaded on the main page's side navigation menu. It will never appear in other pages because it's not needed.
For D's Bloggie part...
What's new in D's Bloggie v3.1
- ! Multibyte-safe parser and related classes since the site's default encoding is changed to UTF-8 (from ISO-8859-1) -- 2006.06.10
- ! Changes on the BBCode parser's rendering/parsing part. Right now using 2 phase parse instead of single phase. 2 phase parsing is a more "clean" way to deal with certain tags like [code], [nobb] etc
- + New [table] tag. This tag is inspired by the Wiki Table using pipe syntax. See http://meta.wikimedia.org/wiki/Help:Table -- 2006.06.12
- + Check the wellformedness of the content -- 2006.06.12
- + Allow dumping the raw structure for specific entry -- 2006.06.12
- + [code] Tag: Rewrote major part for this tag. Syntax changed. New attributes 'lang' 'linenum' 'nojs' 'title'. Now individual code snippet/fragment has their own options to highlight, show line number and etc. All this is done by setting the attributes in the [code] tag instead of controlling via settings of individual blog entry.
- + [url] Tag: Added a new attribute 'external' 'local' 'clean'. Originally needed 4 regex matching (include [lurl] tag), now simplified down to 1 regex matching only
- + [img] Tag: Rewrote almost the whole part for this tag. Syntax changed. Now support flexible attributes such as image position(left,right,center), image size, additional caption, image thumbnail. Inspired from Wikipedia.
- - New [left], [right] tag for text alignment
- - New [bquote] tag for blockquoting
- - New [pre] tag for preformatted text
- - New [ nobb ] tag for disabling bbcode parsing on certain context
- - Dropped [lurl] tag. Use the 'local' attribute in [url] instead
- - Dropped a markup tag that uses regex "===(.+)?==="
- - Added new smiley icons, also dropped/renamed a few ones
- - In this new update, anchor links from an image can be achieved with [img=pic.jpg|link=somewhere.html]. In previous version, this can only be archieved with [link=somwhere.html][img][/img][/link]
- - % WEBLOG % now points to a new folder path to avoid confusion between the virtual rewrote url and actual path
- - Dropped the 'Highlight Coding' option in the create blog page as a result affected by the changes of [code] tag
For more info, checkout here.
Again, please report any bugs or weird CSS rendering. You can also contact me and let me know.
*Update 2006-09-30* Forget to mentioned duplicate sql thing.
Where is the cute donkey ?? - 12:31 pm
eDonkey is history ??
Internet , News - DaRen
Another file-sharing is targeted and ordered to shutdown by recording industries.
Quote:The firm behind popular online file-sharing software eDonkey has agreed to pay $30 million to avoid potential copyright infringement lawsuits from the recording industry, according to court documents filed Tuesday.
...
New York-based MetaMachine was one of seven technology firms to receive letters from the recording industry last fall warning them to shut down or prepare to face lawsuits.
...
Under terms of the latest agreement, MetaMachine and its top executives, Sam Yagan and Jed McCaleb, agreed to immediately cease distributing eDonkey, eDonkey 2000, Overnet and other software versions.
Sad ending I would say. $30 million to avoid lawsuits ? I guess that's another alternate way how the recording industries are making(milking) money. Anyway, on yesterday, the eDonkey website is wipe out clean, only leaving a message behind:
Quote:
The eDonkey2000 Network is no longer available.
If you steal music or movies, you are breaking the law.
Courts around the world -- including the United States Supreme Court --
have ruled that businesses and individuals can be prosecuted for illegal
downloading.
You are not anonymous when you illegally download copyrighted material.
Your IP address is xxx.xxx.xxx.xxx and has been logged.
Respect the music, download legally.
Goodbye Everyone.
Goodbye, eDonkey! I think LimeWire will joined you pretty soon since the recording companies filed a copyright infringement lawsuit LimeWire back in August.
Read more news on Wired
Stucked with "homemade" search engine for own weblog - 11:40 pm
help me ! help me !
Site Issue , SQL - DaRen
It's weekend again, it's also time for me to make progress on updating my site. This time I've completed alot of things that's on my todo list, I would say this will be another major site update. However, it will be backend-wise, nothing much unless I do some cosmectic updates (which is also on my todo list @@)
Anyway, the biggest problem I encountered right now is building my own search engine that search through my weblog entries with ability to sort results by relevancy/date/topic/category. There are few easy ways to do this, one is using MySQL built-in "Full-Text Search" function, which also includes boolean full-text searches using IN BOOLEAN MODE modifier (eg using + - etc signs). Another way to do this is using a simple sql query with LIKE %string% clause.
Everything sounds so sweet and nice before I realize that my blog entries contains bbcode tags. The content of the weblog entries are rendered on-the-fly. So if you searched a keyword that's used for a bbcode tag, then the return result will not be accurate. MySQL also requires pre-indexing the data before you can use the full-text search, that means you'll need extra database storage for indexes and slower performance too.
So, I want to do a search on my rendered weblog entries instead of entries in raw format. That's possible, but that will probably be done with regex in gayness loops in PHP rather than MySQL (well, at least that's the way I can think of). If not then I'll have to stripped the bbcode tags and build my own indexing system. That's kinda redundant and I won't implement it with a complicated relevancy matching algo, so what's the point eh ?
I read some articles/guide/how-to but neither of them mentioned or have solution to the problem I mentioned. So I went to a few other people's weblog/forums to test this. The test results surprised me. Just try yourself in those "homemade" personal website/blogs and compare the ones that uses systems like phpbb/blogger.com. Use search query like "[b ]" or "<b>" and you'll know what I mean.
For now, I'll just see what I can come out with. If anybody has experience in this or knows great resources please let me know *scratching head... *
Some readings:
MySQL Full-Text Search Functions
Solano Systems - MySQL Relevancy Search
1920 x 1200 screen shot of my website - 4:50 pm
Photo , Random Shots - DaRen
Screen shot of my website on 1920 x 1200 resolution =)
Click on this link to view the image.
Last edited: Sun 2006-09-03 @ 19:58 , by DaRen 1 time(s)
Another Dell notebook on fire - 2:53 pm
Model: Latitude C600 (oh well, 2nd hand)
Computing , Hardware , News - DaRen
 Dell notebook with battery problem Another alert message to all Dell notebook users out there: A family from Leicestershire in England was left in shock after their Dell laptop exploded "like fireworks" and set fire to their carpet and lounge.
According to a story in the Leicester Mercury, Shaun Allen, 39, said the drama experienced by him, his wife and children. The offending laptop was a Dell Latitude C600 bought from a shop in Coventry, about a year before for about £500.
Quote:
"There are six batteries inside a compartment, and they were shooting out like fireworks, like rockets. "
"They even bounced off the ceiling, they went up that high."
"I tried to extinguish the laptop and cover it over with a towel. I tried to carry it outside, but it was still exploding and I let go of it."
"As I dropped it, more batteries came out like fireworks. A couple of them hit the ceiling then bounced on the floor. Another one hit the ceiling and set fire to the carpet. My wife was jumping on it to put it out."
An investigator examined the Allens' laptop.
A Dell spokesman said that although they believed the battery which exploded was not the original supplied by Dell, the company was supplying a new laptop as a gesture of goodwill for the family's co-operation with the investigation.
Last month, Dell formally requested 4.1m customers around the world return batteries shipped with its notebooks sold between 1 April 2004 and 18 July 2006. The recalled lithium-ion batteries were made by Sony, saying that Dell branded batteries with cells manufactured by Sony could, under rare conditions, overheat
After reading this, should I just remove my battery from notebook? I run it on AC power 24/7 and the weather is starting to turn warm now... This worried me because I'm using a Latitude C640 purchased on 2003, although it does not falls under the time period for recall. I really don't wan't fireworks going on in my room, or even got hit by fireworks...also, did I forgot to mention I got 2 batteries... ? OMG ~~~ !
程序员的爱情 - 6:37 pm
Funny Stuff - DaRen
今天在 某人的博客看到一段有趣的一段code:
难道程序员的爱情 就注定是无趣的 是冷酷的吗?!
程序员的爱情 in C# [ Hide ] using Life;
using Life.Love;
namespace love
{
/// <summary>;
/// love 的摘要说明。
/// </summary>;
public class love :Life.Love
{
void love(boy, girl)
{
if(boy.有房() && boy.有车())
{
boy.Set(Nothing);
return girl.嫁给(boy);
}
else if(girl.愿意等())
{
next_year:
for(day=1; day<=365; day++)
{
if(day == 情人节)
{
if(boy.GiveGirl(玫瑰))
girl.感情++;
else
girl.感情--;
}
if(day == girl.生日)
{
if( boy.GiveGirl(玫瑰) )
girl.感情++;
else
girl.感情--;
}
boy.拼命赚钱();
}
年龄++;
girl.感情--;
if(boy.有房() && boy.有车())
{
boy.Set(Nothing);
return girl.嫁给(boy);
}
else if(boy.赚钱 > 100,000 && girl.感情 > 8 )
goto next_year;
else
return girl.goto(another_boy);
}
return girl.goto(another_boy);
}
}
}
呵呵,看来程序员的爱情还蛮寂寞的说。。。
ps: 兄弟,有几个地方的syntax错了,还有最好不要用 goto。。。 呵呵 开玩笑的。。。
Firefox 1.5.0.6 failed to wrap up a long string - 8:58 pm
Browser , Bug - DaRen
Stupid Firefox 1.5.0.6 unable to wrap up one long url link in one of the blog entry, causing the whole page has a "wide screen" view.
The fault
http://www.microsoft.com/downloads/details.aspx? familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
I purposely put a space after the details.aspx? to avoid weird rendering in Firefox browser. Opera and IE wraps/breaks up the string on "-" but obviously Firefox doesn't treat that "-" as a point to break up long string
Microsoft Windows Vista available for pre-order - 4:58 pm
Computing , News , Software - DaRen
Amazon.com has started to offer Microsoft Windows Vista operating systems for pre-order.
You can own the Microsoft Windows Vista Ultimate DVD-Rom at the price of $USD399.00 (or around $AUD523.00) and it will be available on 30th January, 2007.
However, according to Amazon, item can be shipped only within the U.S. for now. It seems DVD will be the main-stream media used. Geez, I'll get a new computer when Windows Vista is availabe next year, my notebook does not comes with DVD-rom, and I doubt it will be able to run those nice AERO-style animation in Vista... so I'll get a new desktop then ^^
Pricing info on more Windows Vista products
- MS Vista Ultimate Upgrade - $USD259.00 (around $AUD339)
- MS Vista Home Premium - $USD239.00 (around $AUD313)
- MS Vista Home Premium Upgrade - $USD159.00 (around $AUD208)
- MS Vista Home Basic - $USD199.00 (around $AUD261)
- MS Vista Home Basic Upgrade - $USD99.95 (around $AUD131)
By the way, a new copy of Microsoft Windows Vista Ultimate is over AUD500, I just think it's too pricey !!! Anybody going for a Linux switch and forget about their favourite MMORPG ??
Random Shots: Snacks on my table - 9:28 pm
Photo , Random Shots - DaRen
Played around a bit with my phone and took a few shots...
| Subject |
Snacks on my table |
| Location |
My desk |
| Date |
2006.08.28 |
| Time |
Around 6pm |
| Equipment |
Sony Ericsson K800 |
| Picture Size |
Scaled from 2048 x 1536 |
Router sold us out to neighbours ! - 8:15 pm
what a router....
Internet , Personal , Security - DaRen
Internet connection speed got slowed lately, that sounds normal to some people if their quota from ISP is reached. But that's not the case to me. It' unsual. So the house owner login to the router and guess what ? An unknown computer has connected (wireless) to the router and gain access to internet, also stealing our bandwidth... moron neighbours ! Well, it's not that we have unsecured wireless opened for public usage. It's just that somehow the router screwed up and lost the WEP configuration while I last reboot it, which is quite a while ago. Our wireless network has gone public without our notice.
Now the house owner has got WEP authentication up again and sealing up the "backdoor" for any unauthorized access. Well, if that moron is smart enough, he can crack our WEP key and use our network as a reward for him (we didn't use MAC address filtering and the router's logging system is lame...hehe..)
Anyway, opening your wireless network as unsecured network which allows other people (or neighbours) to access the internet isn't really a bad thing too. You'll theoretically be able to share all of the music on P2P networks without worrying about an RIAA lawsuit.
Quote:
In fact, this even had some people suggesting that, if you want to win a lawsuit from the RIAA, you're best off opening up your WiFi network to neighbors. It seems like this strategy might actually be working. Earlier this month the inability to prove who actually did the file sharing caused the RIAA to drop a case in Oklahoma and now it looks like the same defense has worked in a California case as well. In both cases, though, as soon as the RIAA realized the person was using this defense, they dropped the case, rather than lose it and set a precedent showing they really don't have the unequivocal evidence they claim they do.
soure: Techdirt
In fact, there are people purposely turned off the security to avoid trouble. What can I say ? Crazy world with crazy people having crazy ideas in their crazy mind... everything is possible !
|
|
|
|
|