Pages

Monday, June 6, 2011

How many possible 24bit 10Mp photos there can be?

This tweet came from Neil Creek and a simple tweet response was not going to be enough.
His original thought was 16777216 colours x 10 million pixels which is not enough. This number, whilst big, would only represent each pixel being changed through each colour, whilst the rest of the image stayed the same. This would be very boring.


What you need to calculate is 2^24 * 2^24 * 2^24 ... 10 million times. (2^24^10000000)
Since my computer has been sitting here for 10-15 minutes trying to calculate this value and I have been unable to find out how to simplify this sort of equation, we'll just have to make the question easier.


If there were 10,000,000 colours and we still work with 10 million pixels we end up with a number that starts with 1 and has 70 million 0's after it.
That's 1e70million.
Distance from earth to the sun is 1.5e8km
Distance from Earth to Alpha Centauri is 4e13km
Estimated distance across the universe is 1.5e24km


The reason I wanted to make a post out of this is imagine the sort of images that would be produced.

  • Works of Shakespeare
  • A picture of you looking at this large set of images
  • You could be arrested for looking at child pornography
  • You would eventually see the winning tattslotto numbers for the coming weekend
  • You would see an image of how you die
Not that it matters. If you looked at 14 of this pictures a second, you would only see 1.2 million a day.

Friday, March 18, 2011

Meta post

I just want to put it on record that I've gone through all of my posts to upload the images to blogger.
2 hours isn't really a long time to spend on it but it feels like it has been a week.

I got half way through and wondered if I should be uploading them to twit pic or flickr so that their existence isn't tied to the blog... 

Tuesday, February 15, 2011

So here I am

As I mentioned on the original post:

Hit the export button on word press.
Converted with http://wordpress2blogger.appspot.com/ because my blog is under 1MB.
Import to blogspot.
Delete the spam that came through.
Done.

Much nicer process than manually copying and pasting entries.
Although I've noticed that it didn't export the images. I'll have to get a copy of them, upload them somehow and relink them. Bit of a pain.

Problems?
So for when I'm typing a new post, when I press enter it goes back to the start of the current line AND appends a new line to the end. Very odd
There is also a word verification for creating a post?! You know who I am. I can't spam my own blog can I?
Hope that goes away...
(oh, apparently it is because I just imported all of my posts)

Thursday, January 27, 2011

De-booking

So the time has come when it no longer makes sense for me to keep some of my books.

Their age makes me wonder if anyone else could actually use them but I'd hate to just throw them out without trying.

Core Java 2 Fundamentals (Volume 1) (1999)
Guide to Linux Installation and Administration (2003)
Information Systems Development (2003)
Creating Web Pages with HTML and Dynamic HTML (2003)
C++ for Java Programmers (2000)
Simply SQL (2008)
Business Data Communications (2003)
Problem Solving and Program Design in C (1996)
Java. An Introduction to Computer Science& Programming (2001)
Structured Cobol Programming (1994)
Programming with Visual Basic 6.0 (1999)

These are all offered at the one low price of .... nothing. I just want to see them used. Leave comment or contact me the best way you know how if you are interested in any of them.

I'd also be interested to hear what I can do with these books if I can't get rid of them. Is there any value dropping them off to the Salvo's or are they closer to junk?
Are they the sort of thing to donate to a library or are they too old?

Saturday, November 6, 2010

What am I listening to?

For a while I have been listening to a number of podcasts.
Thought it would be worthwhile posting them up here just to share the love and hopefully hear what other people are listening to.

LUGradio was great but has since died. http://www.lugradio.org/

Best of YouTube takes some interesting videos (which are no longer meant to be from YouTube) and makes them available. I enjoy the variety and randomness of some of these videos. Sometimes they play videos that are a little dated but you have to take the good with the bad. http://bestofyoutube.mevio.com/

The Java Posse. Random java discussions including different languages that use the JVM. http://www.javaposse.com/

The Linux Action Show talks about random linux related things. They also talk about a heap of devices that get them excited. Every now and then they branch out into mac and windows discussions because they find something interesting to talk about there. http://www.jupiterbroadcasting.com/?cat=4

2600: The Hacker Quarterly is where I listen to random hacker related news. I always feel like I should be doing more when I'm listening to this one. http://www.2600.com/

The worst bit is that I'm probably a good 3-6 months behind on some of these podcasts and I haven't downloaded any in a month because I came close to my cap whilst downloading L4D2.

Wednesday, August 11, 2010

NBN and Net Filter

*edit*
Neil Creek asked to be credited for the thought provoking tweets. I originally left them off cause I just wanted to get out my opinion of the situation but am happy to link to him since it has become a two way discussion

-- Original post follows (with linking) --

I seen a tweet come up in my feed that made me want to reply.
The NBN will be a lot of money spent on today's tech. Speeds form new tech will rapidly overtake and make it redundant.

Technology is cruel. It is so expensive to start with and gets out of date quickly. My response to this tweet was:
Extremes do not work. My first computer was top of the line, $3000. My second was $1000 second hand. Then $4000. Get what fits.

Which was quickly followed by:
A good argument against NBN. Give it to those who need the speeds, not those who don't. It's one size fits all.

Which is a perfectly valid response and made me rethink why I feel the way I do about the NBN.
Backfired :( I'm for NBN and believe it should reach the many. 8 years is a long time and believe that 100mb/s is a good start.

It is at this point I realised that 140 characters is not enough (but a good start to the conversation).

I feel the Governments role is to redistribute wealth and make sure the country moves forward as a whole. Whilst it is probably fact that the majority of people wanting faster network access are city folk, people in country regions should be able to access the same sort of facilities.
ISPs are going to have a hard time justifying large costs to get the infrastructure out that far and whilst they could pass on the cost to those customers, the service would become so expensive that few would want it. The ISPs could share that cost amongst the city subscribers but then there services would be more expensive than other ISPs that just service city regions.
I feel like it is comparable to the roads. Just because they get used less out in the country, the roads should still be built to the same standards that roads in the city are built.

I'm reminded of a lecture in accounting. Monopoly isn't a bad word. Sometimes it is the best way to get something done. Power, Water, Government and Public Transport have the monopoly feel. There is basically only one way of getting them.
The only way we are going to get a major step forward in out internet connectivity to catch up with the rest of the world is if the majority of the infrastructure is treated as a monopoly. Otherwise it will be patches of improvements. I'm still waiting to get off 1.5mbs. I can't watch high def videos on Youtube because it isn't worth the wait.

Why have I lumped the Net Filter in with this post? The roads analogy. I'm torn between thing that the Net Filter is a coffee shop on the side of the road or whether they are the police that patrol the roads.

I would prefer them to be the coffee shop, because I don't like coffee, so can happily drive down the road without worry. This gives power to the driver and to the business that want to set up on the side of the road. Give you the options of Coffee, Hot Chocolate, Milkshakes etc.

It seems that the likes of Conroy would like the filter to be like police with an ever watchful eye. Being technically minded I guess I see a huge gap between physical danger and cyber danger. You can protect yourself online but it is hard for you to stop someone that has had too much to drink from driving into you.

Tuesday, April 13, 2010

Data encapsulation for tools

One of the nice things about java is a the abundance of additional libraries that are available.
I'm currently working on mapping software and thankfully, there is an open source library that handles most of the work.
The first task I've been given at my new job is to allow users to upload some files that puts an overlay on the map. Fortunately I just have to provide the glue between the app and the library that does the mapping.
Except...
I don't have complete control over the tools.
The tool provides an XML parser which has a private member for the handler. It is this handler that is given the contents of the file and passes around some values to construct geometries. Under some circumstances, this handler doesn't do what I would want it to do.
In the perfect DI world, I would just hand this parser the handler that I want it to use.
Because it is private, I have to use reflection to change the value of the handler in the parser after its construction.
If the member was protected, I could just extend the parser and change the value of the handler and I wouldn't feel so dirty.

I'm interested in input though, what is the value of "private" in a tool. Should the tool creator limit what can be achieved?