After a first thousand of tests using Rspec I fount it very annoying to repeat my self testing the standard code as spec code is usually twice longer than code it test. I've started to look for a way to simplify the patterns and make it reusable. Among other nice rspec tricks there is possibility to write custom Rspec matchers. Spec the validation is just two lines of code for each attribute now.
Home » All posts
Advanced non-flat controllers hierarchy with rails
REST became the best practice for organizing CRUD server side interface.
But what to do when we have something more than hello-world application that
goes forward from data CRUD and provides many presentations
of the same data with different filters and different layouts?
But what to do when we have something more than hello-world application that
goes forward from data CRUD and provides many presentations
of the same data with different filters and different layouts?
Salary Raise Request Letter
How to ask your Boss for a salary increase?
One day you send a letter to your boss asking for an increase in your salary!
Dear Bo$$
In thi$ life, we all need $omething mo$t de$perately. I think you $hould be under$tanding of the need$ of u$ worker$ who have given $o much $upport including $weat and $ervice to your company .
I am $ure you will gue$$ what I mean and re$pond $oon.
Your$ $incerely,
The next day, you received this letter of reply :
Oh my dear:
I kNOw you have been working very hard. NOwadays, NOthing much has changed. You must have NOticed that our company is NOt doing NOticeably well as yet .
NOw the newspaper are saying the world`s leading ecoNOmists are NOt sure if the United States may go into aNOther recession. After the
NOvember presidential elections things may turn bad.
I have NOthing more to add NOw. You kNOw what I mean.
Yours truly,
Manager
Source: Forwarded email
50 Best Websites 2009, Time Version
- Flickr
- California Coastline
- Delicious
- Metafilter
- popurls
- Skype
- Boing Boing
- Academic Earth
- OpenTable
- YouTube
- Wolfram|Alpha
- Hulu
- Vimeo
- Fora TV
- Craiglook
- Shop Goodwill
- Amazon
- Kayak
- Netflix
- Etsy
- PropertyShark.com
- Redfin
- Wikipedia
- Internet Archive
- Kiva
- ConsumerSearch
- Metacritic
- Pollster
- Pandora and Last.fm
- Musicovery
- Spotify
- Supercook
- Yelp
- Visuwords
- CouchSurfing
- BabyNameWizard.com's NameVoyager
- Mint
- TripIt
- Aardvark
- drop.io
- Issuu
- Photosynth
- OMGPOP
- WorldWideTelescope
- Fonolo
- Get High Now
- Know Your Meme
Kamus Bahasa Sunda
Secara tidak sengaja, ternyata saya terdampar di sebuah blog yang menyediakan unduh gratis kamus bahasa sunda. Akhirnya saya putuskan untuk memindahkan filenya dari hostingan umum ke hosting pribadi (untuk memudahkan proses download).
Kamus ini sangat berguna buat temen-temen yang sedang merantau ke tanah sunda. Khususnya buat para mahasiswa. Jangan sampe gak bisa bahasa sunda setelah bertahun-tahun menimba ilmu di tanah sunda. Sip sip?
Tanpa panjang lebar, silakan unduh kamus bahasa sunda di bawah ini.
Kamus ini sangat berguna buat temen-temen yang sedang merantau ke tanah sunda. Khususnya buat para mahasiswa. Jangan sampe gak bisa bahasa sunda setelah bertahun-tahun menimba ilmu di tanah sunda. Sip sip?
Tanpa panjang lebar, silakan unduh kamus bahasa sunda di bawah ini.
Modus penipuan lewat email
Tidak dapat dipungkiri bahwa modus penipuan kini telah maju seiriing dengan perkembangan teknologi. Salah satunya adalah penipuan lewat email. Hal ini benar-benar terjadi karena teman dekat saya pernah tertipu ketika kami duduk di tingkat satu. Jika dulu sering ditemukan email lotere berbahasa inggris, sekarang ternyata mereka telah menggunakan bahasa Indonesia untuk menyesatkan orang awam yang baru mengenal email.
Di bawah ini adalah kutipan email yang saya terima dari seseorang yang bernama Mrs. Lilian Goldstraw.
"Dear pemenang nomor 7,
Mega lotere jutaan ingin menarik perhatian Anda ke alamat e_mail kenyataan bahwa Anda telah memenangkan 5,000.000.00 GBP (Lima Juta British Pound Sterling), yang terpilih sebagai salah satu dari tujuh pemenang lotere jackpot Mega Jutaan Lucky.
Untuk mengumpulkan uang Anda, men-download lampiran di atas dan ikuti instruksi.
Yours Sincerely,
Mrs. Lillian Goldstraw
Secretary."
Dari gaya bahasanya juga sudah kelihatan bahwa surat tersebut diterjemahkan dengan translator. Kemudian si penipu ini mengirimkan dokumen yang harus dilengkapi. Di bawah ini adalah contoh dokumennya.
Jutaan mega hadiah dan bagaimana untuk mendapatkan (contoh dokumen)
Salah satu isi paragraf dari dokumen tersebut adalah:
KESELAMATAN: Untuk alasan keamanan, itu adalah ONLINE diprogram. Pada titik ini, setiap orang yang dekat dengan Anda dapat menggunakan rincian menang untuk mengklaim hadiah Anda. Jadi, kita nasihat semua pemenang untuk memenangkan informasi rahasia mereka dari masyarakat sampai klaim Anda sampai dokumen diproses dan hadiah uang Anda ditransfer kepada Anda.
(intinya gak boleh ngelapor POLISI!)
Biasanya mereka mengirimkan alamat email menggunakan email umum, bukan email perusahaan. Jadi, berhati-hatilah. Semoga tidak ada yang tertipu lagi seperti teman saya.
Di bawah ini adalah kutipan email yang saya terima dari seseorang yang bernama Mrs. Lilian Goldstraw.
"Dear pemenang nomor 7,
Mega lotere jutaan ingin menarik perhatian Anda ke alamat e_mail kenyataan bahwa Anda telah memenangkan 5,000.000.00 GBP (Lima Juta British Pound Sterling), yang terpilih sebagai salah satu dari tujuh pemenang lotere jackpot Mega Jutaan Lucky.
Untuk mengumpulkan uang Anda, men-download lampiran di atas dan ikuti instruksi.
Yours Sincerely,
Mrs. Lillian Goldstraw
Secretary."
Dari gaya bahasanya juga sudah kelihatan bahwa surat tersebut diterjemahkan dengan translator. Kemudian si penipu ini mengirimkan dokumen yang harus dilengkapi. Di bawah ini adalah contoh dokumennya.
Jutaan mega hadiah dan bagaimana untuk mendapatkan (contoh dokumen)
Salah satu isi paragraf dari dokumen tersebut adalah:
KESELAMATAN: Untuk alasan keamanan, itu adalah ONLINE diprogram. Pada titik ini, setiap orang yang dekat dengan Anda dapat menggunakan rincian menang untuk mengklaim hadiah Anda. Jadi, kita nasihat semua pemenang untuk memenangkan informasi rahasia mereka dari masyarakat sampai klaim Anda sampai dokumen diproses dan hadiah uang Anda ditransfer kepada Anda.
(intinya gak boleh ngelapor POLISI!)
Biasanya mereka mengirimkan alamat email menggunakan email umum, bukan email perusahaan. Jadi, berhati-hatilah. Semoga tidak ada yang tertipu lagi seperti teman saya.
Emoticon khusus tanpa Karma
Mungkinkah menggunakan emoticon khusus tanpa Karma di Plurk? Jawabannya adalah sangat mungkin. Terima kasih buat cucu yang udah ngasih tahu caranya. Caranya sangat mudah, tinggal copas url emoticon ke status maupun komentar. Nanti akan muncul sendiri kok.
Di bawah ini adalah contoh penggunaan emoticon Kaskus untuk Plurk milik saya. Ingat, hanya copas url-nya.
Untuk mendapatkan url emoticon, silakan lihat di url blognya cucu berikut ini:
Emoticon Kaskus 1
Emoticon Kaskus 2
Emoticon Kaskus 3
Emoticon Kaskus 4
Selamat mencoba kawan :cendol
Di bawah ini adalah contoh penggunaan emoticon Kaskus untuk Plurk milik saya. Ingat, hanya copas url-nya.
Untuk mendapatkan url emoticon, silakan lihat di url blognya cucu berikut ini:
Emoticon Kaskus 1
Emoticon Kaskus 2
Emoticon Kaskus 3
Emoticon Kaskus 4
Selamat mencoba kawan :cendol
Filosofi Single
Hampir semua netter di Indonesia pastinya pada punya akun di jejaring sosial. Katakanlah friendster, facebook, plurk, twitter, koprol, dan tidak lupa blogger, hehe. Biasanya ketika ngeliat profil pemilik akun bersangkutan, suka ada keterangan basic profile dan kata “single.” Baiklah, saat ini akan saya jelaskan ada apa dibalik kata single. Karena jenis kelamin saya laki-laki, maka saya hanya akan menjelaskan filosofi single untuk kaum adam. Entah itu benar atau tidak, tapi dapat dipastikan benar. Setidaknya untuk saya sendiri (Mengatasnamakan kaum adam padahal curhatan pribadi, haha. Benar-benar sebuah konspirasi yang kejam, hehe)
Single, so what? Banyak temen-temen dan juga saya yang sering berdalih “Mending single, deket sama siapa pun gak ada yang ngelarang.” Well, that’s true but… Single bukan berarti tidak suka sama perempuan. Justru menjadi single adalah sebuah petaka tersendiri. Pasalnya kebanyakan pria single akan lebih mudah suka dengan perempuan, maksudnya mudah terpikat. Harap diperhatikan bahwa mudah suka tidak sama dengan mudah jatuh cinta. Jauh, dan sangaaat jauh.
Juga, pria single pun dapat jatuh cinta lho. Sebetulnya ini yang akan jadi titik berat cerita filosofi single. Pria single yang sedang jatuh cinta akan sangat sulit mengutarakan rasa cintanya kepada lawan jenis, setidaknya itu yang sedang dan pernah saya alami, haha. Single itu bisa malu tapi mau, bisa tidak mau terikat alias pengen bebas, bisa juga tidak mau diganggu (i.e. asik dengan dunianya sendiri, nerd abis ato autis). Dan mungkin yang lebih elegan adalah ingin memberikan kado utuh untuk istrinya suatu saat kelak.
Apapun alasannya, ketika seorang pria single jatuh cinta, dia akan memendam perasaan itu dalam-dalam. Atau bisa juga curhat ke temen-temen dekatnya (cowo pun bisa bergosip ria lho…). Jika status single yang ada di akun jejaring sosialnya telah melekat selama berabad-abad, ini akan sangat membahayakan si pemilik akun. Dia akan memposkan status berwarna pink, mendengarkan lagu-lagu cinta, menulis puisi cinta, tetapi tidak menyatakannya secara langsung. You might be call him a ‘coward.’
Percayalah, penyakit ini selalu menghinggapi pria single dimana pun dan kapan pun mereka sedang jatuh cinta. Jadi, jangan percaya kalimat “I’m single, and I’m very happy.” Dalam hati kecilnya tetap ada sebuah kekosongan dan berharap bahwa keberanian untuk menyatakan cinta itu muncul.
Single, so what? Banyak temen-temen dan juga saya yang sering berdalih “Mending single, deket sama siapa pun gak ada yang ngelarang.” Well, that’s true but… Single bukan berarti tidak suka sama perempuan. Justru menjadi single adalah sebuah petaka tersendiri. Pasalnya kebanyakan pria single akan lebih mudah suka dengan perempuan, maksudnya mudah terpikat. Harap diperhatikan bahwa mudah suka tidak sama dengan mudah jatuh cinta. Jauh, dan sangaaat jauh.
Juga, pria single pun dapat jatuh cinta lho. Sebetulnya ini yang akan jadi titik berat cerita filosofi single. Pria single yang sedang jatuh cinta akan sangat sulit mengutarakan rasa cintanya kepada lawan jenis, setidaknya itu yang sedang dan pernah saya alami, haha. Single itu bisa malu tapi mau, bisa tidak mau terikat alias pengen bebas, bisa juga tidak mau diganggu (i.e. asik dengan dunianya sendiri, nerd abis ato autis). Dan mungkin yang lebih elegan adalah ingin memberikan kado utuh untuk istrinya suatu saat kelak.
Apapun alasannya, ketika seorang pria single jatuh cinta, dia akan memendam perasaan itu dalam-dalam. Atau bisa juga curhat ke temen-temen dekatnya (cowo pun bisa bergosip ria lho…). Jika status single yang ada di akun jejaring sosialnya telah melekat selama berabad-abad, ini akan sangat membahayakan si pemilik akun. Dia akan memposkan status berwarna pink, mendengarkan lagu-lagu cinta, menulis puisi cinta, tetapi tidak menyatakannya secara langsung. You might be call him a ‘coward.’
Percayalah, penyakit ini selalu menghinggapi pria single dimana pun dan kapan pun mereka sedang jatuh cinta. Jadi, jangan percaya kalimat “I’m single, and I’m very happy.” Dalam hati kecilnya tetap ada sebuah kekosongan dan berharap bahwa keberanian untuk menyatakan cinta itu muncul.
How Facebook Is Redefining Privacy
Sometime in the next few weeks, Facebook will officially log its 500 millionth active citizen. If the website were granted terra firma, it would be the world's third largest country by population, two-thirds bigger than the U.S. More than 1 in 4 people who browse the Internet not only have a Facebook account but have returned to the site within the past 30 days.
Just six years after Harvard undergraduate Mark Zuckerberg helped found Facebook in his dorm room as a way for Ivy League students to keep tabs on one another, the company has joined the ranks of the Web's great superpowers. Microsoft made computers easy for everyone to use. Google helps us search out data. YouTube keeps us entertained. But Facebook has a huge advantage over those other sites: the emotional investment of its users. Facebook makes us smile, shudder, squeeze into photographs so we can see ourselves online later, fret when no one responds to our witty remarks, snicker over who got fat after high school, pause during weddings to update our relationship status to Married or codify a breakup by setting our status back to Single. (I'm glad we can still be friends, Elise.) (See pictures of Facebook's headquarters.)
Getting to the point where so many of us are comfortable living so much of our life on Facebook represents a tremendous cultural shift, particularly since 28% of the site's users are older than 34, Facebook's fastest-growing demographic. Facebook has changed our social DNA, making us more accustomed to openness. But the site is premised on a contradiction: Facebook is rich in intimate opportunities — you can celebrate your niece's first steps there and mourn the death of a close friend — but the company is making money because you are, on some level, broadcasting those moments online. The feelings you experience on Facebook are heartfelt; the data you're providing feeds a bottom line.
The willingness of Facebook's users to share and overshare — from descriptions of our bouts of food poisoning (gross) to our uncensored feelings about our bosses (not advisable) — is critical to its success. Thus far, the company's m.o. has been to press users to share more, then let up if too many of them complain. Because of this, Facebook keeps finding itself in the crosshairs of intense debates about privacy. It happened in 2007, when the default settings in an initiative called Facebook Beacon sent all your Facebook friends updates about purchases you made on certain third-party sites. Beacon caused an uproar among users — who were automatically enrolled — and occasioned a public apology from Zuckerberg. (See how to delete your Facebook profile.)
And it is happening again. To quell the latest concerns of users — and of elected officials in the U.S. and abroad — Facebook is getting ready to unveil enhanced privacy controls. The changes are coming on the heels of a complaint filed with the Federal Trade Commission (FTC) on May 5 by the Electronic Privacy Information Center, which takes issue with Facebook's frequent policy changes and tendency to design privacy controls that are, if not deceptive, less than intuitive. (Even a company spokesman got tripped up trying to explain to me why my co-worker has a shorter privacy-controls menu than I do.) The 38-page complaint asks the FTC to compel Facebook to clarify the privacy settings attached to each piece of information we post as well as what happens to that data after we share it.
Facebook is readjusting its privacy policy at a time when its stake in mining our personal preferences has never been greater. In April, it launched a major initiative called Open Graph, which lets Facebook users weigh in on what they like on the Web, from a story on TIME.com to a pair of jeans from Levi's. The logic is that if my friends recommend something, I'll be more inclined to like it too. And because Facebook has so many users — and because so many companies want to attract those users' eyeballs — Facebook is well positioned to display its members' preferences on any website, anywhere. Less than a month after Open Graph's rollout, more than 100,000 sites had integrated the technology. (See five Facebook no-nos for divorcing couples.)
"The mission of the company is to make the world more open and connected," Zuckerberg told me in early May. To him, expanding Facebook's function from enabling us to interact with people we like on the site to interacting with stuff our friends like on other sites is "a natural extension" of what the company has been doing.
In his keynote announcing Open Graph, Zuckerberg said, "We're building a Web where the default is social." But default settings are part of the reason Facebook is in the hot seat now. In the past, when Facebook changed its privacy controls, it tended to automatically set users' preferences to maximum exposure and then put the onus on us to go in and dial them back. In December, the company set the defaults for a lot of user information so that everyone — even non-Facebook members — could see such details as status updates and lists of friends and interests. Many of us scrambled for cover, restricting who gets to see what on our profile pages. But it's still nearly impossible to tease out how our data might be used in other places, such as Facebook applications or elsewhere on the Web. (See TIME's video on how people of all ages are connecting through Facebook.)
There's something unsettling about granting the world a front-row seat to all of our interests. But Zuckerberg is betting that it's not unsettling enough to enough people that we'll stop sharing all the big and small moments of our lives with the site. On the contrary, he's betting that there's almost no limit to what people will share and to how his company can benefit from it.
Source: http://www.time.com
Just six years after Harvard undergraduate Mark Zuckerberg helped found Facebook in his dorm room as a way for Ivy League students to keep tabs on one another, the company has joined the ranks of the Web's great superpowers. Microsoft made computers easy for everyone to use. Google helps us search out data. YouTube keeps us entertained. But Facebook has a huge advantage over those other sites: the emotional investment of its users. Facebook makes us smile, shudder, squeeze into photographs so we can see ourselves online later, fret when no one responds to our witty remarks, snicker over who got fat after high school, pause during weddings to update our relationship status to Married or codify a breakup by setting our status back to Single. (I'm glad we can still be friends, Elise.) (See pictures of Facebook's headquarters.)
Getting to the point where so many of us are comfortable living so much of our life on Facebook represents a tremendous cultural shift, particularly since 28% of the site's users are older than 34, Facebook's fastest-growing demographic. Facebook has changed our social DNA, making us more accustomed to openness. But the site is premised on a contradiction: Facebook is rich in intimate opportunities — you can celebrate your niece's first steps there and mourn the death of a close friend — but the company is making money because you are, on some level, broadcasting those moments online. The feelings you experience on Facebook are heartfelt; the data you're providing feeds a bottom line.
The willingness of Facebook's users to share and overshare — from descriptions of our bouts of food poisoning (gross) to our uncensored feelings about our bosses (not advisable) — is critical to its success. Thus far, the company's m.o. has been to press users to share more, then let up if too many of them complain. Because of this, Facebook keeps finding itself in the crosshairs of intense debates about privacy. It happened in 2007, when the default settings in an initiative called Facebook Beacon sent all your Facebook friends updates about purchases you made on certain third-party sites. Beacon caused an uproar among users — who were automatically enrolled — and occasioned a public apology from Zuckerberg. (See how to delete your Facebook profile.)
And it is happening again. To quell the latest concerns of users — and of elected officials in the U.S. and abroad — Facebook is getting ready to unveil enhanced privacy controls. The changes are coming on the heels of a complaint filed with the Federal Trade Commission (FTC) on May 5 by the Electronic Privacy Information Center, which takes issue with Facebook's frequent policy changes and tendency to design privacy controls that are, if not deceptive, less than intuitive. (Even a company spokesman got tripped up trying to explain to me why my co-worker has a shorter privacy-controls menu than I do.) The 38-page complaint asks the FTC to compel Facebook to clarify the privacy settings attached to each piece of information we post as well as what happens to that data after we share it.
Facebook is readjusting its privacy policy at a time when its stake in mining our personal preferences has never been greater. In April, it launched a major initiative called Open Graph, which lets Facebook users weigh in on what they like on the Web, from a story on TIME.com to a pair of jeans from Levi's. The logic is that if my friends recommend something, I'll be more inclined to like it too. And because Facebook has so many users — and because so many companies want to attract those users' eyeballs — Facebook is well positioned to display its members' preferences on any website, anywhere. Less than a month after Open Graph's rollout, more than 100,000 sites had integrated the technology. (See five Facebook no-nos for divorcing couples.)
"The mission of the company is to make the world more open and connected," Zuckerberg told me in early May. To him, expanding Facebook's function from enabling us to interact with people we like on the site to interacting with stuff our friends like on other sites is "a natural extension" of what the company has been doing.
In his keynote announcing Open Graph, Zuckerberg said, "We're building a Web where the default is social." But default settings are part of the reason Facebook is in the hot seat now. In the past, when Facebook changed its privacy controls, it tended to automatically set users' preferences to maximum exposure and then put the onus on us to go in and dial them back. In December, the company set the defaults for a lot of user information so that everyone — even non-Facebook members — could see such details as status updates and lists of friends and interests. Many of us scrambled for cover, restricting who gets to see what on our profile pages. But it's still nearly impossible to tease out how our data might be used in other places, such as Facebook applications or elsewhere on the Web. (See TIME's video on how people of all ages are connecting through Facebook.)
There's something unsettling about granting the world a front-row seat to all of our interests. But Zuckerberg is betting that it's not unsettling enough to enough people that we'll stop sharing all the big and small moments of our lives with the site. On the contrary, he's betting that there's almost no limit to what people will share and to how his company can benefit from it.
Source: http://www.time.com
25 Sites We Can’t Live Without
- Amazon.com
- BBC.co.uk
- Citysearch.com
- Craigslist.org
- Del.icio.us
- Digg.com
- Ebay.com
- ESPN.com
- Facebook.com
- FactCheck.org
- Flickr.com
- Google.com
- HowStuffWorks.com
- The Internet Movie Database
- YouTube
- Kayak.com
- National Geographic.com
- Netflix.com
- Technorati.com
- TMZ.com
- USA.gov
- Television WithoutPity.com
- WebMD.com
- Wikipedia.org
- Yahoo.com
Subscribe to:
Posts (Atom)Template Responsive Design
Label
Aneh Banget
Apresiasi
Artikel
Artis Unik
asmara
Berita Aneh
Berita unik
Blogging
Cerita Inspiratif
Christmas
Dahsyat
Dampak Media
Dewasa
Foto Unik
Free Download
Hewan Unik
Inspirational
Inspiring SMS
IT-related
Kesaksian
Kesehatan
Lucu
Misteri
motivasi
Motivational
Nama Allah
News
Olahraga Unik
orang terkenal
pengembangan diri
programming
Religi
Renungan
Resources
Second Coming
Sejarah
Selebriti
Seni
SEO
Sharing
Soal Asmara
Spiritual Reflection
Suara Hati
Tau Gak Sih
Tekno
Teknologi
Tempat Unik
Tips
Tips Unik
Tokoh
travel
Trik Kehidupan
True Love
True Story
Tumbuhan Unik
Unik
Wallpaper
Worship Video