Tuesday, January 7, 2014

Do You Know?

1. Your shoes are the first thing people subconsciously notice about you. Wear nice shoes.

2. If you sit for more than 11 hours a day, there's a 50% chance you'll die within the next 3 years

3. There are at least 6 people in the world who look exactly like you. There's a 9% chance that you'll meet one of them in your lifetime.

4. Sleeping without a pillow reduces back pain and keeps your spine stronger.

5. There are three things the human brain cannot resist noticing - Food, attractive people and danger

6. Right-handed people tend to chew food on their right side

7. You can survive without eating for weeks, but you will only live 11 days without sleeping.

8. People who laugh a lot are healthier than those who don’t.

9. Laziness and inactivity kills just as many people as smoking.

10. A human brain has a capacity to store 5 times as much information as Wikipedia

11 Our brain uses same amount power as 10-watt light bulb!!

12. Our body gives enough heat in 30 mins to boil 1.5 litres of water!!

Monday, January 6, 2014

Power digit sum

If you are a best programmer, can you able to find the answer for the following question?

Q.  215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.

What is the sum of the digits of the number 21000?

I found the answer using Scala programming.  

BigInt(2).pow(1000).toString().map(_.asDigit).sum

Can you able to write code to find the answer using your preferred programming language except Scala?  

Sunday, January 5, 2014

3D Apple

This 3D apple is designed by myself without using any external images. I used only Photoshop cs5.

Friday, January 3, 2014

Free Version Control Hosting for private repositories

You may have used any Version Control System to keep and maintain your multiple versions of your projects  or any related documents. For that you may also have used several hosting servers. 
But regardless of what Version Control System you use, you have to think about where you intend to store your code. It’s likely you’ve have heard of GitHub. That’s not surprising. GitHub is used by individuals and enterprises to host code, collaborate on documentation and track issues. It has some pretty big names using it.

Since last 3 years I was using Gihub to host my projects. It is simple and provides free hosting services for public projects. For a long time I was searching for a free hosting services for privates repositories. Finally I found a hosting server that they are providing free hosting servers for privates repositories named Bit Bucket

Here we can manage unlimited number of private repositories. It allows to contribute 5 users together as free. Otherwise we need to pay. Finally I started to using BitBucket for my projects hosting.



Thursday, January 2, 2014

Copyright statements on some websites

Today is 2nd of January 2014. I unexpectedly saw one of the world famous well know microsoft website's copyright statement. http://www.microsoft.com/en-us/default.aspx . It was year of 2013. I confused why they are showing past year in their copyright statements. 



Then I went to some other well know websites. They also used the static copyright statements.
This is the copyright statement of Google.





http://epay.lk/


http://www.linux.org/
But even facebook has changed their year.  What a hell people others??