Thứ Năm, 5 tháng 8, 2010

Cách tạo và chèn Facebook Like Box vào Blogspot

Bạn là một tín đồ của Blogger và Bạn đang là thành viên tích cực trên Facebook? Bạn muốn chia sẻ những thông tin của mình đến tất cả bạn bè? Bạn muốn kết nối và chia sẻ cùng bạn bè trên cộng đồng mạng?



Hiện nay, Facebook cung cấp rất nhiều công cụ để bạn có thể dễ dàng chia sẻ những bài viết, ứng dụng của bạn từ Blog lên Facebook và ngược lại. Những công cụ này đã và đang rất phổ biến và được nhiều Blogger sử dụng để thu hút sự quan tâm của bạn bè trên Facebook, hướng họ đến với Blog của mình.



Một trong những công cụ mà Facebook cung cấp là “Like Box”. Like Box như một trang Facebook thu nhỏ. Trong đó thể hiện Fans Page và những bài đăng trên trang Facebook riêng của bạn. Khi chèn Like Box vào Blog, bạn bè của bạn có thể xem nhanh nội dung trang Facebook của bạn và họ có thể kết nối để chia sẻ với bạn thông qua nút “Like” (thích) ngay phía trên hộp thoại.



Để tạo nút Like Box cho Blog, trước tiên bạn cần có một tài khoản trên Facebook và bạn cần tạo trang Facebook riêng.



Sau khi đã có tài khoản và trang Facebook riêng, bạn vào trang http://developers.facebook.com/docs/reference/plugins/like-box để bắt đầu.



Bạn chọn vào Like Box trong danh sách Plugin

Trang chủ sẽ xuất hiện như hình bên dưới

Tiếp theo, bạn vào trang Facebook riêng copy ID của trang.



Lưu ý: ID của trang chính là dãy số cuối cùng trên đường dẫn của trang.

Dán ID vào “Facebook Page ID” như trong hình bên dưới, hộp box sẽ thể hiện mẫu để bạn xem trước như trong hình:

Nhấn “Get code” để tạo code. Facebook tự tạo mã code để bạn chèn vào Blog.

Copy đoạn code trên vào đưa vào Blogspot. Để đưa vào Blogspot, bạn cần đăng nhập vào Blogger, chọn “Thiết kế”

Chọn “Thêm tiện ích”



Chọn tiện ích “HTML/ Javascrip” trong các tiện ích Blogspot cung cấp sẵn



Dán đoạn code vừa copy vào phần “Nội dung”



Lưu những thay đổi và vào Blog để xem kết quả.





Chúc bạn thành công!





Bài viết @ Xuân Hồng



Thứ Ba, 3 tháng 8, 2010

Return of the BORT

Showdown of Suckdom: 2010 Orioles vs 1988 Orioles

In the past, oh, 13 seasons of losing Baltimore baseball (and a few in the early 90's too), I have always been able to comfort myself, ever so slightly, with this thought: "Hey, I lived through 1988, I'll live through this too."

Now, I have to come to grips with reality...2010 is the new 1988. I have lived through two seasons that are equally horrific. I never thought I would see an Oriole season as terrible as '88 in my lifetime...but here we are. It may even be worse!

But as a distraction, I decided to see how these teams would stack up against each other, position by position, as the debate over which is the worst Oriole team in history begins.

Catcher: Matt Wieters vs. Mickey Tettleton

Sorry Matty, not thick enough yet (87 OPS+). In the battle of switch-hitting catchers,  Fruit Loops provided significant offense (113 OPS+) from behind the plate even if the defense was suspect.

Edge: '88 Orioles



First Base: Ty Wigginton vs Eddie Murray

Wigginton has been surprisingly solid for the O's this year (111 wRC+) but although Murray would never hit 30 homers again after the '87 season, '88 was still a pretty good season for Steady Eddie (140 wRC+).
Edge: '88 Orioles



Second Base: Julio Lugo/Brian Roberts vs Billy Ripken

Ripken has a really poor year at the plate and, from all accounts, was not so great in the field that year either. Even the paltry output from Lugo and a hobbled Roberts are a significant upgrade.

Advantage: '10 Orioles



Shortstop: Cesar Izturis vs. Cal Ripken, Jr.

Ripken was nearing the height of his fielding powers and turned in a nice season at the plate. (132 wRC+)  Izuris has been worse with the bat than usual (and that's saying something) and hasn't even been very good in the field.

Advantage: '88 Orioles



Third Base:  Miguel Tejada\Josh Bell vs. Rene Gonsalez\Rick Schu

If Tejada had stayed, he would win here because Gonzalez was so wretched. But Tejada is gone and Bell figures to struggle mightily over last two months of the season. Rick Schu, acquired in a mid-season trade from the Tigers, actually hit pretty well and played defense that was superior to Tejada certainly and probably better than Bell.

Advantage: '88 Orioles



Rightfield: Nick Markakis vs. Joe Orsulak

This is closer than you might think but Markakis' bat (122 wRC+) is in another class compared to Orsulak. (113 wRC+).

Advantage: '10 Orioles



Centerfield: Adam Jones vs. Fred Lynn\Brady Anderson

Jones (98 OPS+) has come around with the bat but has had his challenges in the field. Lynn was having a fine year before he was dealt to Detroit (122 OPS+) and young Brady Anderson took over and struggled mightily at the plate. (OPS+ 43) Lynn was solid in the field and Anderson was superior which makes this one awfully close to call. At this point, it's a push, with Jones probably overtaking the pair at year's end.

Advantage: Push



Leftfield: Corey Patterson\Felix Pie vs. Ken Gerhart\Pete Stanicek

Against all odds, Patterson has been at least a  league-average hitter this season (98 OPS+, wRC+ 107), has stolen 18 bases at an 86% success rate and, while he has not played his requisite fine defense, I think he has played better than his -4.4 UZR/150 shows. He's been a bright spot.

It would have been interesting to see what Pie could have done if not for his injury early this season. His hot start has been erased by his struggles since his return from the DL as he is not even replacement level this season (-0..6 WAR).

However, the combo of Gerhart and Stanicek posted wRC+ numbers of 75 and 88 respectively during the '88 season and neither were particularly adept with the glove. They abdicate the leftfield competition to Patterson and Pie.

Advantage: '10 Orioles



Designated Hitter: Luke Scott vs. Larry Sheets

Larry Sheets had just come off his career year in 1987, one of the greatest slugging seasons in Oriole history. Alas, that was not to continue as his ISO fell from .247 to .113 and his OPS+ dropped from 143 to a meager 83.

Luke Scott, on the other hand, continues his better-than-solid career with a monster .282/.348/.556 line and is by far the best hitter for Baltimore this season.

Advantage: '10 Orioles



Backup Catcher: Craig Tatum vs. Terry Kennedy

Craig Tatum came better than advertised...even if he finds himself back in Norfolk right now.

Terry Kennedy still had a couple good years left in him...but '88 wasn't one of them as his paltry OPS+ of 61 shows. By all accounts, he did not have a good year defensively either.

Advantage: '10 Orioles



Utility: Garret Atkins/Scott Moore vs. Jim Traber/Keith Hughes

Who would think that any combo involving Jim Traber would win in any comparison? I won't go into the gory details but Atkins was really, really bad, folks.

Advantage: '88 Orioles



SP: Jeremy Guthrie vs. Mike Boddicker

Guthrie has continued to battle this season, turning in league average numbers that are welcome in this season where the rest of the rotation has been a disaster.

Boddicker didn't have a great season for the Orioles in '88 (he saved that for the Red Sox after he was traded) but his peripherals show that his 101 ERA+ is greater than Guthrie's.
Advantage: '88 Orioles



SP: Kevin Millwood vs. Mike Morgan

Even though Morgan imploded as a starter early and was relegated to the bullpen, he is still providing more value than Millwood...and Millwood is headed in the wrong direction.

Advantage: '88 Orioles



SP: Brian Matusz vs. Jeff Ballard

Too depressing to detail, Jeff Ballard had a better "first full season" in the majors than Brian Matusz is having right now. You heard that right, Jeff Ballard > Brian Matusz. (sigh...)

Advantage: '88 Orioles



SP: Brad Bergesen vs. Jose Bautista

23-year-old Bautista was not great but was solid with a ERA+ of 93 over 171.2 innings in 1988. Brad Bergesen has posted an ERA+ of 64. Advantage Bautista.

Advantage: '88 Orioles



SP: Jake Arrieta vs. Jay Tibbs

Arrieta and Tibbs are similar levels of suckdom. Arrieta wins the ERA+ but he has also walked more than he has struck out. Different but equally bad for these guys.

Advantage: Push



RP: Alfredo Simon vs. Tom Niedenfurer

Niedenfurer was a journeyman reliever with a decent career and turned in a very respectable ERA+ of 112 with 18 saves. Simon has been average (ERA+ 103) and has exceeded expectations but the nod goes to Niedenfurer.

Advantage: '88 Orioles



RP: Jason Berken vs. Mark Williamson

Berken has been oustanding in middle relief with an ERA+ of 155. Williamson didn't strike batters out much, was wild and posted an ERA+ of 80.

Advantage: '10 Orioles



RP: Matt Albers vs. Dave Schmidt

Albers has edged his ERA+ up to 99 but the peripherals are pretty terrible. Schmidt's peripherals were better and he manged to put up an ERA+ of 115.

Advantage: '88 Orioles


RP: Mark Hendrickson vs. Mark Thurmond

In this battle of the lefties, Hendrickson has actually pitched better than his ERA this season. The peripherals are good but he has been hit unlucky. Thurmond had bad strikeout and walk rates but had better results overall. Tempted to give this to Hendrickson but in reality, it's another tie.

Advantage: Push


Final Un-scientific Results:

'88 Orioles - 11
'10 Orioles - 6
Push - 3

It's not even close. We are probably looking at the worst Oriole team since the franchise moved to Baltimore. Regardless of record (and the Orioles are on a pace to equal the '88 loss total, I can't make a very compelling argument that this version of the Orioles is better than the 1988 verison.

You're witnessing something historic Oriole fans. You are living through 2010.

Thứ Hai, 2 tháng 8, 2010

Cách tạo RSS cho Blog


Khi bạn muốn tạo Blog 1 cách hoàn chỉnh, thì Blog của bạn không thể thiếu những thành phần quan trọng như công cụ tìm kiếm, RSS, hay thành phần đếm số lượt người truy cập blog...

Sau đây tôi muốn trình bày cách thêm RSS cho blog của mình:

1. Cách 1: Đối với Blogger:
Đầu tiên các bạn copy đoạn mã sau vào vị trí trong Blog của bạn muốn đặt logo RSS



Thay các chữ Tên Blog của bạn bằng địa chỉ Blog của các bạn, thay dòng mô tả KIẾN THỨC TỔNG HỢP bằng các dòng bất kì theo ý thích. Vậy là xong.

2. Cách 2:
Bình thường, nếu không đăng ký FeedBurner và thay đổi Post Feed Redirect URL trong Site Feed (Settings -> Site Feed) liên kết đến Feed cho các bài đăng của blog sẽ có dạng: http://tencuaban.blogspot.com/feeds/posts/default. Từ chương trình đọc feed trên web hay các chương trình trên Windows người dùng có thể đọc một phần hoặc tất cả nội dung của một bài đăng dựa theo chế độ cài đặt của bạn tại Allow Blog Feeds.


Theo hướng dẫn của Blogger link đến Feed cho từng nhãn của bạn sẽ là:

http://tencuaban.blogspot.com/feeds/posts/default/-/labelname

Nhớ phải có dấu "-". Và như vậy có thể dùng link này kết hợp với một hình ảnh, bạn hoàn toàn có một một biểu tượng feed cho từng label.

Cách thực hiện:

- Đăng nhập Blogger và hãy bảo đảm bạn trên blog của bạn có ít nhất một tiện ích label được sử dụng.

- Tiếp theo vào Template -> Edit HTML, nhớ bấm Expand Widget Templates và tìm id='Label1' (hoặc id='Label2' nếu bạn sử dụng đến nhãn thứ 2 )( Có thể dùng Ctrl + F để tìm). Bạn lưu ý đoạn mã sẽ như thế này:

Photo Sharing and Video Hosting at Photobucket

Nào bây giờ hãy chép đoạn code:


Photo Sharing and Video Hosting at Photobucket

Trong đó Link đến biểu tượng Feed bạn có thể lựa chọn từ một trong các hình sau: (Đưa chuột phải lên hình bạn chọn và click Properties để lấy link) và dán theo một trong hai cách: phía dưới thẻ (hoặc phía dưới thẻ) để biểu tượng xuất hiện trước (hoặc sau tên của nhãn)

Chúc các bạn thành công!