Home
Tips and Tricks
Gallery
Links
Downloads
About Me
Contact Me
rounding in Python PDF Print
Written by Administrator   
Thursday, 02 February 2012 22:52

Today for the first time after using Python for so many years I found that the representation of rounded floats is different depending how you print it:

test = round(0.1**0.1, 2)

print test
print [test]

#0.79
#[0.79000000000000004]

 

I never knew about this and it looked weird at first but then on further investigation I found that print value prints the str() conversion of the value, but print [value] prints the repr() of value instead.

 
Now when SOPA is over... PDF Print
Written by Administrator   
Thursday, 26 January 2012 18:11

... is it really over ?

I think not. Some days ago the founder of MegaUpload was arrested and the website shut down. The people should start seeing now in what world we are actually living.  People should start using more free software, start using Tor, if you are a programmer, be involved in free software, don't use eBooks or at least buy them directly from the author and not the publisher, if you are a hardware maker, make a hardware that's not locked and you can actually use for what you really want. Jacob Appelbaum describes it the best:

 

 
WEB GOES ON STRIKE! PDF Print
Written by Administrator   
Saturday, 14 January 2012 17:28

 

on January 18th in protest of the Internet Censorship Bills.

My website will be down on that date too.

 
2012 PDF Print
Written by Administrator   
Saturday, 24 December 2011 02:17

Several days before the end of 2011 , I wanted to write about what for me was the essence of this year.  Changes. You can see it everywhere. The status quo of the political regimes around the world has been challenged. It is happening not only in Iraq, not only in Lybia, not only in Greece , Moscow or  Wall Street. It is everywhere. The Mayan calendar says 2012 is the end of one era and new one will come. I can already see it happening, and I really think it's for good. What the people of the Occupy Wall Street movement started can not be stopped easily. I can see the fear in the governments creating things like "The Patriot Act" and "SOPA". Democratic governments trying to become totalitarian.This has never worked in the history before and I doubt it will work this time. The people will make the change. Have a great 2012!

 

 

 

 
Ice Age Continental Drift #2 PDF Print
Written by Administrator   
Thursday, 17 November 2011 18:10

The trailer for Ice Age Continental Drift is finally out! It looks awesome and you can see a little bit the pirates in the movie!

 

 

Here is a better quality trailer, but you need quicktime for it:

http://trailers.apple.com/trailers/fox/iceagecontinentaldrift/

 
Mathematics PDF Print
Written by Administrator   
Thursday, 27 October 2011 15:37

That's the most mathematically correct animation I have seen so far. Good job Aaardman! As always!

 

 
great Looney Tunes rigs PDF Print
Written by Administrator   
Wednesday, 05 October 2011 18:50

Here is the Looney Tunes VES submission which has some great rigs inside!

 

http://cgjosh.com/2011/08/looney-tunes-ves-submission/

 

The thing with the ghosted limbs is particularly good as it is very good characteristics of the traditional series! I wonder if it's actually a rig feature or a 2d effect made after that ? If anybody knows please comment.

 
More Articles...
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 30
Scroll-Lock

View Marin Petrov's profile on LinkedIn