Spread your wings

Janeiro 23, 2008

Become a Non-Autistic Calendar Counting Genius

Arquivado em: Misc — funrei @ 6:38 pm
Mentally finding out the day of the week for any date is a skill you can easily learn. You don’t need to be an autistic genius – all it takes is basic memorization effort and some trivial math.

When I first learned this technique many years ago, I did it just for fun. With time, I learned to enjoy the convenience of not needing a calendar anymore. It’s far more useful than I first thought, and with just a little practice, you’ll be able to find out the days of the week much faster than when reaching for a calendar.

<!– –>

The Method

To find out the days of the week for any date, use the formula:

[day of week] = (yearcode + monthcode + day) mod 7

If you’re not math-inclined, this may look quite scary at first, but don’t worry: using the formula is straightforward. Let’s walk through each one of of its parts.

Month and Year Codes

The month codes are one of the formula’s most troublesome parts, since they don’t follow a clear logic. We’ll have to memorize them, but don’t worry with that just yet, as we will focus on an easy way to do this later. For now, here they are for reference:

  • January: 1
  • February: 4
  • March: 4
  • April: 0
  • May: 2
  • June: 5
  • July: 0
  • August: 3
  • September: 6
  • October: 1
  • November: 4
  • December: 6

We also need the year code, which are also apparently arbitrary. You shouldn’t also worry about memorizing them at this point. For now, here are the ones you’ll most likely use:

  • 2005: 5
  • 2006: 6
  • 2007: 0
  • 2008: 2
  • 2009: 3
  • 2010: 4

Days of the Week

The result is always a number from 0 to 6, and its interpretation couldn’t be any easier:

  • 1: Sunday; 1st day of week
  • 2: Monday; 2nd day of week, and so on.
  • 3: Tuesday
  • 4: Wednesday
  • 5: Thursday
  • 6: Friday
  • 0: Saturday

The Calculation

Let me show you how the formula works with an example: December 25, 2008.

Step 1: Get the codes for month and year. According to the code tables, December is 6 and 2008 is 2.

Step 2: Apply the numbers in the formula:

  1. [day of week] = (yearcode + monthcode + day) mod 7
  2. [day of week] = (2 + 6 + 25) mod 7
  3. [day of week] = 33 mod 7; see below if you don`t know what ‘mod’ is
  4. [day of week] = 5

5 means Thursday. That’s the day of the week for December 25, 2008.

Tips for Faster Calculation

In case you’re unfamiliar with the modulo (mod) operator, all it does is give you the remainder of a division. Take, for example, 17 mod 7. If you divide 17 by 7, you get 2 and a remainder of 3. So, 17 mod 7 = 3.

Now, if you don’t like the idea of performing divisions mentally, there’s hope: you don’t really need to divide by 7 to get the number’s modulo. All you need is to cast out sevens of the number. That is: take the closest multiple of seven below your number and just take the difference between them. For example, in 17 mod 7, the closest multiple of 7 below 17 is 14. Casting 14 out of 17, there’s a leftover of 3. Therefore, 17 mod 7 = 3.

An additional tip to speed up the calculation: Instead of summing up all the three numbers and calculating the modulo thereafter, as the formula suggests, do it slightly differently: don’t wait until you have a big number to calculate its modulo. You can cast out sevens as you go. Let’s do the same calculation we did above (December 25, 2008), but casting out sevens as we go.

  1. [day of week] = (2 + 6 + 25); let’s cast out sevens for 25 before we go.
  2. [day of week] = (2 + 6 + 4);
  3. [day of week] = (8 + 4); let’s cast out sevens for 8 before we go
  4. [day of week] = (1 + 4);
  5. [day of week] = 5

Although there are extra steps, you will always work with small numbers, speeding up the process.

Adjustment for Leap Years

The only caveat in the formula (and it had to have one, right?) is that there will be an adjustment when dealing with leap years: you need to subtract one from the result, for the months of January and February. The other months are calculated just as any normal year.

Memorizing the Month Codes

The math is pretty easy, but unless you memorize the codes, you won’t be able to perform the entire technique in your head. The good news is that the month codes never change, so you just need to memorize them once and reuse them over and over again. For an easy and fun way of memorizing lists, I strongly suggest the pegging memory system. We’ll use it here, so if you’re unfamiliar with it, please take a look first.

For the peg system to work, our challenge is to come up with images for the months. Here are my suggestions, based on either similarities in word pronunciation or on cultural traditions.

  • January: Jacket
  • February: Freeze
  • March: March
  • April: Bunny
  • May: Flowers
  • June: Dune
  • July: Jungle
  • August: Barbecue
  • September: Scepter
  • October: Doberman
  • November: Turkey
  • December: Santa Claus

If these images don’t make much sense to you, feel free to substitute by your own. Remember that the list doesn’t need to follow any pattern or logic; the only requirement is that each association must come easily and quickly to you.

If you did like the images I suggested, here’s a graphical list to help you visualize and memorize them as pegs:

Months Memory Pegs

(click for larger image)

All right, now that we have the pegs, the next step is to create fun and remarkable scenes combining the month images with our previously learned number images. Just to illustrate, let me give you a personal example on how to do that:

August. Looking at our month code table, we see the code for August is 3. Let’s associate ‘barbecue’ (for August) with ‘heart’ (for number 3): Barbecue and heart? The first thing that comes to mind is a childhood memory of the movie Indiana Jones and the Temple of Doom. I always wondered what the bad guy did with those living throbbing hearts he extracted from people in that dark ritual. No more: what about a great barbecue outside, with pulsating hearts on the grill and everybody getting drunk with kegs of Kali Ma’s blood! Childhood memories work wonders for your memory. ;)

This technique only works if you use your own imagination, so now it’s up to you. Always remember to make it personal and fun.

Bonus: Extend the Technique for Any Year

For practical purposes, I memorize only the code for the current year. When a new year arrives and you need its code, you can find it pretty easily: find out the day for current year’s December 31th and just sum one and you’ll have the day of the week for next year’s January 1st. Now, the only variable left in the formula is the year code. Don’t forget about the adjustment for leap years when using this trick.

If, unlike myself, you want to go really wild and mentally find out the days for any year, you’ll need to grow some extra math and memorization muscles. Here’s the formula for the year code:

yearcode = (centurycode + [last two digits of year] + ([last two digits of year] div 4)) mod 7

‘Div’ is the operator for integer division. Just like ‘mod’ gets the remainder of a division, ‘div’ gets its integer quotient. For example, 17 div 7 = 2 (with a remainder of 3).

The century code follows a recurrent pattern, and can be used for any date in the Gregorian calendar:

  • 1600s: 6
  • 1700s: 4
  • 1800s: 2
  • 1900s: 0
  • 2000s: 6; repeating the pattern
  • 2100s: 4; 6-4-2-0 pattern goes on

Janeiro 17, 2008

peepo [2]

Arquivado em: Misc — funrei @ 5:56 pm

pepo
*update* foi se a imagem… hahahahahha

Janeiro 16, 2008

How to download anything*

Arquivado em: Internet — funrei @ 8:54 pm

If you’re going to illegally download stuff, please do it right so that you don’t get caught. Don’t use services like Kazaa or Limewire to get your goods. They’re filled with junk and can get you found out and sued by the copyright owners.If you are going to download music, games, software, movies, anything, use these simple steps.

  1. Get Peerguardian 2. Peerguardian blocks known government and anti-p2p groups. This keeps them from connecting to you via the tracker and knowing you are downloading. That means it will be a lot harder for them to nail you for downloading..
  2. Get a torrent program. I suggest either utorrent utorrent or Azureus. I usually don’t search for the actual files I need using these programs, just use them to download.
  3. Search for your torrent. I use The Pirate Bay and Mininova. Both still allow US visitors, and I can usually find what I need. There are also private trackers, but don’t worry about those for now. Once you get the hang of downloading, you can get join a private tracker
  4. Make sure that Peerguardian is running while your torrent program is downloading. Otherwise you could get caught
  5. Optional: Have your torrent program encrypt the data. This means that your ISP won’t detect that you are using the bittorrent protocol, which means it makes it harder for them to throttle your bandwidth just for bittorrent. You can find some good guides on TorrentFreak on how to encrypt

Be happy. You got your files and didn’t get caught. If you want optimization tips and tons more, check out TorrentFreak. And still scan everything for viruses before you use it.

*from:  http://www.dewknight.com/2007/12/13/how-to-download-anything/

Janeiro 11, 2008

hahahahahahahahahhaha

Arquivado em: Misc — funrei @ 9:27 pm

hahaha

Networking

Arquivado em: Internet — funrei @ 8:06 pm

Site simples, mas com algum conteúdo legal sobre networking. Enjoy:
Learn Networking

Janeiro 9, 2008

lol

Arquivado em: Misc — funrei @ 7:17 pm

Só pra fins estatísticos e posterior catalogação das risadas. Acabei de passar pelos blogs de toda a cambada que abertamente diz não gostar de mim. Gostei de ver que em TODOS eles têm posts de reclame da vida ruim, vestibular, ano novo de merda, bla bla bla. Não que eu seja vingativo, mas quem planta discórdia…

update
\o/

Leeeeroy jenkins

Arquivado em: Internet — funrei @ 5:49 pm

windowze

hahahahahahahahaha

\o/

Janeiro 8, 2008

StumbleUpon!

Arquivado em: Internet — funrei @ 7:41 pm

Há algum tempo atrás eu perdia grande parte do meu tempo livre na internet fuçando no orkut. De um tempo pra cá isso mudou. Esse tal de SU mudou radicalmente minha navegação na web, e tudo fica a um clique de distância ali no browser. É o alívio imediato para toda hora de chateação durante o dia.
Mais informações em: www.stumbleupon.com

16 rules

Arquivado em: Misc — funrei @ 7:18 pm

1. Get and stay out of your comfort zone. I believe that not much happens of any significance when we’re in our comfort zone. I hear people say, “But I’m concerned about security.” My response to that is simple: “Security is for cadavers.”

2. Never give up. Almost nothing works the first time it’s attempted. Just because what you’re doing does not seem to be working, doesn’t mean it won’t work. It just means that it might not work the way you’re doing it. If it was easy, everyone would be doing it, and you wouldn’t have an opportunity.

3. When you’re ready to quit, you’re closer than you think. There’s an old Chinese saying that I just love, and I believe it is so true. It goes like this: “The temptation to quit will be greatest just before you are about to succeed.”

4. With regard to whatever worries you, not only accept the worst thing that could happen, but make it a point to quantify what the worst thing could be. Very seldom will the worst consequence be anywhere near as bad as a cloud of “undefined consequences.” My father would tell me early on, when I was struggling and losing my shirt trying to get Parsons Technology going, “Well, Robert, if it doesn’t work, they can’t eat you.”

5. Focus on what you want to have happen. Remember that old saying, “As you think, so shall you be.” 6. Take things a day at a time. No matter how difficult your situation is, you can get through it if you don’t look too far into the future, and focus on the present moment. You can get through anything one day at a time.

7. Always be moving forward. Never stop investing. Never stop improving. Never stop doing something new. The moment you stop improving your organization, it starts to die. Make it your goal to be better each and every day, in some small way. Remember the Japanese concept of Kaizen. Small daily improvements eventually result in huge advantages.

8. Be quick to decide. Remember what the Union Civil War general, Tecumseh Sherman said: “A good plan violently executed today is far and away better than a perfect plan tomorrow.”

9. Measure everything of significance. I swear this is true. Anything that is measured and watched, improves.

10. Anything that is not managed will deteriorate. If you want to uncover problems you don’t know about, take a few moments and look closely at the areas you haven’t examined for a while. I guarantee you problems will be there.

11. Pay attention to your competitors, but pay more attention to what you’re doing. When you look at your competitors, remember that everything looks perfect at a distance. Even the planet Earth, if you get far enough into space, looks like a peaceful place.

12. Never let anybody push you around. In our society, with our laws and even playing field, you have just as much right to what you’re doing as anyone else, provided that what you’re doing is legal.

13. Never expect life to be fair. Life isn’t fair. You make your own breaks. You’ll be doing good if the only meaning fair has to you, is something that you pay when you get on a bus (i.e., fare).

14. Solve your own problems. You’ll find that by coming up with your own solutions, you’ll develop a competitive edge. Masura Ibuka, the co-founder of SONY, said it best: “You never succeed in technology, business, or anything by following the others.” There’s also an old Asian saying that I remind myself of frequently. It goes like this: “A wise man keeps his own counsel.”

15. Don’t take yourself too seriously. Lighten up. Often, at least half of what we accomplish is due to luck. None of us are in control as much as we like to think we are.

16. There’s always a reason to smile. Find it. After all, you’re really lucky just to be alive. Life is short. More and more, I agree with my little brother. He always reminds me: “We’re not here for a long time; we’re here for a good time.”

*from  http://www.bobparsons.com

Blog no WordPress.com.