Archive

Author Archive

Python One-liner

April 20th, 2010 Fu4ny 2 comments

Dạo này cứ thấy đề nào đơn giản là máu viết = python one-liner (code python chỉ trên 1 dòng). Lang thang trên diễn đàn thì gặp flamebait, mình thì chả care đề bài mấy, nhưng mà tự nhiên máu viết bằng python =)).

Luyện one-liner để hiểu thêm về các cách code bài toán thôi, chứ ko phải là practice để dùng nó =))

Viết chương trình nhập vào số nguyên dương n, hãy tính tổng và tích các chữ số của nó.

1
reduce(lambda x,y:(x[0]*y,x[1]+y),[(1,0)]+[int(i) for i in list(str(raw_input('->')))])
Categories: Post Tags: ,

That’s where all great wishes start

April 3rd, 2010 Fu4ny No comments

You cant. You have to carry the fire
I don't know how to.
Yes you do.
Is it real? The fire?
Yes it is.
Where is it? I dont know where it is.
Yes you do. It's inside you. It was always there. I can see it.

Because that's where all great wishes start....

Categories: Post Tags:

Google đang làm gì

February 12th, 2010 Fu4ny 4 comments
Gazelle: ¿El Google Chrome OS de Microsoft?
Image by Carlos Gutiérrez G. via Flickr

Lâu lâu Tết nhất mới có hứng viết lách, đọc được review về benchmark Carakan ( Js Engine của Opera ), lại nhân vụ Google ra mắt Google Buzz, muốn viết loanh quanh về Google.

Bài viết thể hiện quan điểm của tui, thế nên sai đúng thì đừng có ném tạ =))

Read more...

The future

February 7th, 2010 Fu4ny No comments

Yep, it'll(Flash) be dead and replaced by HTML5, SVG, h.264, VRML and a host of other hot new technologies!
Oh and on the same day, Windows will lose it's marketshare position, Linus will relicense Linux under commercial terms, Richard Stallman will buy an iPad and Steve Jobs will switch to Ubuntu.
Imagine the possibilities!

The future is unpredictable ;)

Taken from /.

Categories: Post Tags:

Thứ 7 máu chảy về tim – Ep2

January 30th, 2010 Fu4ny 9 comments

[0:34] me: Thích
[0:34] me: =)
[0:35] me: Lười
[0:35] me: :">
[0:37] me: Sau này
[0:37] me: Cưới tớ nhé

[0:37] Thu: thế chờ nhá
[0:37] Thu: 6 năm nữa
[0:37] me: Làm gì những 6 năm
[0:37] me: Lâu thế

[0:37] Thu: tuổi tớ lấy chồng sớm là khổ lắm ấy ạ
[0:38] me: 27 xấu lắm
[0:38] me: Ai cưới tuổi ấy

[0:38] Thu: 26
[0:38] me: 26 thì còn tạm được
[0:38] me: 25-26
[0:38] me: nhé

[0:38] Thu: ờ
[0:38] Thu: cơ mà

Post từ mobile, chưa kịp retouch cho font chữ nó đẹp tý, mai làm :">

Categories: Post Tags: ,

8 Things That Suck About the iPad

January 28th, 2010 Fu4ny 5 comments

iPad sucksiPad = tampon

A lot of people at Gizmodo are psyched about the iPad. Not me! My god, am I underwhelmed by it. It has some absolutely backbreaking failures that will make buying one the last thing I would want to do. Updated

Big, Ugly Bezel
Have you seen the bezel on this thing?! It's huge! I know you don't want to accidentally input a command when your thumb is holding it, but come on.

No Multitasking
This is a backbreaker. If this is supposed to be a replacement for netbooks, how can it possibly not have multitasking? Are you saying I can't listen to Pandora while writing a document? I can't have my Twitter app open at the same time as my browser? I can't have AIM open at the same time as my email? Are you kidding me? This alone guarantees that I will not buy this product.

No Cameras
No front facing camera is one thing. But no back facing camera either? Why the hell not? I can't imagine what the downside was for including at least one camera. Could this thing not handle video iChat?

Touch Keyboard
So much for Apple revolutionizing tablet inputs; this is the same big, ugly touchscreen keyboard we've seen on other tablets, and unless you're lying on the couch with your knees propping it up, it'll be awkward to use.

No HDMI Out
Want to watch those nice HD videos you downloaded from iTunes on your TV? Too damned bad! If you were truly loyal, you'd just buy an AppleTV already.

The Name iPad
Get ready for Maxi pad jokes, and lots of 'em!

No Flash
No Flash is annoying but not a dealbreaker on the iPhone and iPod Touch. On something that's supposed to be closer to a netbook or laptop? It will leave huge, gaping holes in websites. I hope you don't care about streaming video! God knows not many casual internet users do. Oh wait, nevermind, they all do.

Adapters, Adapters, Adapters
So much for those smooth lines. If you want to plug anything into this, such as a digital camera, you need all sorts of ugly adapters. You need an adapter for USB for god's sake.

Update: Why stop at 8? Here are more things we are discovering that suck about the iPad.

It's Not Widescreen
Widescreen movies look lousy on this thing thanks to its 4:3 screen, according to Blam, who checked out some of Star Trek on one. It's like owning a 4:3 TV all over again!

Doesn't Support T-Mobile 3G
Sure, it's "unlocked." But it won't work on T-Mobile, and it uses microSIMs that literally no one else uses.

A Closed App Ecosystem
The iPad only runs apps from the App Store. The same App Store that is notorious for banning apps for no real reason, such as Google Voice. Sure, netbooks might not have touchscreens, but you can install whatever software you'd like on them. Want to run a different browser on your iPad? Too bad!

via 8 Things That Suck About the iPad - apple ipad - Gizmodo.

Categories: Post Tags: ,

Say goodbye to Yesterday

January 24th, 2010 Fu4ny 3 comments

It's nearly 2 years, time changed me so much.

Everything I thought would stay forever are gone, is it normal or it's just me who got changed.

Finally I realized somethings that are important to me, somethings I should think of,  somethings I should take care of.

It's only half a month until New Year Eve, hope that tomorrow is worth my wait.

Be my sunshine after the rain.

And last, Happy birthday to my friend

Monkey Cappuccino Coffee

Forever be your cappuccino :)

Categories: Post Tags: , ,

Fu4ny@2010-01-23

January 23rd, 2010 Fu4ny No comments
  • Waiting for #Dell Studio with core-i5 and GMA HD #
Categories: Asides Tags: ,

6 bước để cưa bạn Thu

January 14th, 2010 Fu4ny 2 comments
Thợ Cưa

Thợ Cưa

  1. Liệt kê danh sách các hoạt động của bạn ý từ năm nhất
  2. Hỏi các bạn trong lớp hoặc trong nhóm ( tốt nhất là có tay trong ) và xin 1 cái ảnh
  3. Cọ cọ cái ảnh xuống đất ( cho cũ =)) ),  sau đó tìm gặp.
  4. "A em có phải là cái em blah...blah...."
  5. ....
  6. Please Login or Register to read the rest of this content.

Hình ảnh chỉ mang tính minh họa :">

Categories: Post Tags:

Python factorial handbook

January 10th, 2010 Fu4ny No comments

Here is a small code-snippet I found and collected.

It takes extract 1 argument and return its factiorial ( n! )

Read more...

Categories: Post Tags: ,