Emile

SOUTH AFRICA


Joined November 2nd 2006

Number of Posts:
5

Number of Comments:
14

Karma:
4



Blogs

Emile's Blogs

739 Vote(s)
10 Comment(s)
5 Post(s)

I mentor these bloggers

Learn more about the Orble Mentoring Program.


I do not mentor any bloggers.

Recent Posts

Classes and Objects (Visual Basic .NET)

November 12th 2006 08:00
I’m writing my Visual Basic .NET exam in a few days, and my one friend keeps on asking me what the purpose of a class is – so here goes my conceptual and brief explanation of classes (and please, correct me if I’m wrong.)

Say that you are a programmer, and you want to program virtual persons (something like Sims.) Now there’s two ways you can go about doing this:

1) You can program each and every one of them from scratch: limb by limb, toe by toe, hair by hair.

2) You can first program a generic mold for a person, and then just modify the mold each time you want a different person.

The mold in option 2 is exactly what a class is.

First you ask yourself: What does all persons have? That’s easy: A name, weight, length, head, two arms, two legs, and a torso. This attributes is essential for any person mold (and this attributes are known as the properties of your class.)

But everyone is unique, right? This means that we need a way to make each person with a different name, weight, length, and so on. We need a way to tailor our mold to match the specifications of the specific person we are programming. Imagine that we do this by using a control panel that allows you change the shape of the head, or length of the arms inside the mold for example. This ability to change your mold is the most important aspect of classes, and is known as the methods of the class.

Look at this example of a class: (Note that the class consists of properties and methods.)



Now we actually want to start programming people. The actual person that comes out of the mold is called an object.

Let’s program three people: Jojo, Bob and Sydney. We will use the dot as a way to indicate which method is applied to which property, i.e Name.Change Name = “Emile.” This means that we used the Change Name method to change the Name property to “Emile.”

The specs for each of our three persons will look something like this:







See the beauty of classes yet? We used one mold to program three very unique persons, using only their methods to distinguish them.

So what is a class? A class is a grouping of properties and methods. It allows you to change these properties via methods. Imagine the power that classes puts at your fingertips: you can now add more distinguishing methods to the class – for example, you can program your persons so that they have the ability to run, jump, kick and shout. All three of the persons will do these actions very differently.

Classes sure make programming a whole lot easier.

155
Vote
Shared on
   


Enter, Digital Camera

November 8th 2006 19:41
My good and longtime friend received his brand new Nikon D80 today, and even I must admit, from a non-photographer perspective, that it's a nice looking little camera.

Click here to read a review on it.

You can also view my friend's photography on his deviantART page.

If you take a photo with your digital camera, light bounces of your subject and enters the camera through the lens. Because it is a digital camera, the photo has to be digitized. This is the process whereby the light waves that enter your camera, is translated into a language a computer can understand, called bits. These bits form long strings of 1’s and 0’s, which are broken down into tiny dots of color, called pixels.

A normal analog camera has a piece of film inside that captures the light when the shutters quickly open. Similarly, a digital camera has a sensor that converts light into electrical pulses.

The amount of detail a digital camera can capture is called resolution, measured in pixels. That’s why it’s important that the mega pixels your camera can take on are high enough.

The interesting is that the sensors are colorblind – they only measure light intensity. Filtering is used to filter the light into the three primary colors: blue, red, and green. High quality cameras have a filter for each of the primary colors, and use a beam splitter to split the image so that each one of the filters receive equal amounts of light. Because of the filters, it only responds to that particular primary color. The camera uses these three colors to create any other color in the color spectrum.

What’s nice about a digital camera is that the photos are all stored on a flash memory card. This makes accessing the photos obviously very easy – no more photo labs, just plug in into your PC and voila!

After all the excitement I shared with my friend today, I’m thinking of getting myself a digital camera (but that’ll have to wait until my bank account allows it.)
126
Vote
Shared on
   


Last night I had a dream about me asking my warfare-obsessed college buddy how stealth jets remained invisible. And as usual with dreams, I can’t remember what his answer was. So I decided to find out for myself.

A radar system works something like sonar. It sends out bursts of radio signals. When these signals bounce off objects, it return to the radar antenna, which calculates the time it took to get back. This is how it knows how far away the object is.

To ensure that your standard airplane is aerodynamic, the chassis is rounded. The round shape ensures that no matter where the signal hits, some of it get reflected back (but hey, I prefer to be detected when I fly thousands of feet above the ground in a piece of metal.)

Stealth jets, on the other hand, have other motives. Like bombing. And for this they need to be invisible to the enemy radar. This can be done in two ways. One is by shaping the airplane in such a way that it won’t reflect radar signals. The other way is to make the plane out of a material that absorbs the radar signals.

A stealth aircraft is made of flat surfaces and sharp edges. When the radar signals hit the aircraft, the signals get reflected into all sorts of weird angles – but nowhere near the angle from where the signal originally came from. The result: the plane appears to be a small bird (they’re in for a surprise.)

There is a small catch however. When the plane banks, there is a probability that one of the panels could directly reflect a radar signal back to the antenna. I’ll guess when this happen, the stealth jet can expect to have some heavy anti-air missiles locked onto them very soon.
120
Vote
Shared on
   


Mosquitoes...the eleventh plague?

November 3rd 2006 06:32
I like summer. When the sun shines.

Oh but when the sun sets behind the horizon, the vampires awake and abandon their crypts to hunt for fresh blood


[ Click here to read more ]
135
Vote
Shared on
   


In the beginning God said...

November 2nd 2006 06:36
Let there be light. And a few million years later, humans are sitting in front of flat surfaces, looking at them tinkle and change as our fingers tap away on small buttons on another flat surface. Periodically, when the urge bubbles over, the humans will get up from in front of the flat surfaces, do a zombie march to the kitchen, where they will brew a cup of potion (known to the inner circle-members as coffee.) After that, they do a zombie march back to the flat surfaces and resume their insane tapping away (occasionally sipping on their potion.)

What do they do, you ask


[ Click here to read more ]
183
Vote
Shared on
   


 

Recent Comments

Comment by Emile
on Women’s Rights

November 13th 2006 08:17
To be honest, I don't know. If I find out, I'll be sure to post it here

Comment by Emile
on “Thou shall not judge others”

November 12th 2006 09:15
I know exactly what you mean about Christians and their "little agendas," and them using it to their own advantages, like belong to a social group at church, that would not be possible otherwise if they weren't a "Christian", for example. In many cases, they practice hypocrisy better that the unconditional love that Jesus teaches - and that's exactly what's disappointing me about Christianity as a religion - it's choke full of posers.

I admit that I judge people quite regularly, and exactly for that "self-lift of confidence." I have however decided to take action on this behavior. I decided, for example, that I won't ask about other studens' marks, and I also wouldn't tell anyone mine. That cultivates humbleness and keeps jealously and judging at bay.

Comment by Emile
on Fact: Rabbits and Hares

November 12th 2006 08:50

Comment by Emile
on Fact: S.O.S

November 12th 2006 08:48
Interesting. I didn't know that it was incorrect to put the fullstops in, and that it didn't stand for Save Our Souls, et c.

Comment by Emile
on Computers

November 12th 2006 08:45
Ha ha! Brilliant I really enjoyed this. I obviously agree with the men. And I'm going to send it to my girlfriend right now to see with who she agrees (not that I'm or she's sexist to even the slightest extent, but hey, it's worth an opinion.)

Comment by Emile
on Women’s Rights

November 12th 2006 08:40
That is really interesting, and effective I should imagine.

Comment by Emile
on Iraq: Saddam to hang

November 12th 2006 08:37
I can' t really imagine answers to any of your questions, but one thing I know for sure: I doubt that his death will bring about any immediate aftereffects, especially peace.

It's a real mess out there, and I think everyone wishes deep down in their secret hearts that it would just stop.

Comment by Emile
on Who Was Your First?

November 5th 2006 07:05
Funny thing is: my parents did not (and still don't) listen to any music.

Being the oldest of three boys, I was first to step into and start exploring the world of music. This happened when I was at a friends house one day. I was about seven. My friend played a track form his much older brother's CD.

It was Metallica's Master of Puppets, and it just blasted my mind away. That's where it all started for me.

From there it went to Saron Gas (the South African band that's known as Seether today,) and Live. Then it lead to System of a Down - which stopped abruptly when I first heard Tool.

On this day, I'm Tool-obsessed and will eat anything that has the letters TOOL on them. I also listen to Pink Floyd and one of my favorite recently discovered - Tchaikovsky.

My two brothers' taste went a bit into the other direction. They constantly (and I really mean constantly - even when they sleep) have a Children of Bodom, Arch Enemy, Inflames or Cradle of Filth song blaring from their rooms. They also play in a death metal band called Black Fury. Scary stuff.

Comment by Emile
on Fact: Cheetah

November 3rd 2006 09:26
In my mother tongue, a cheetah is called a jagluiperd. Literally it means, hunting leopard.

Comment by Emile
on Spam mails! Don’t you hate them?

November 3rd 2006 09:21
Jessica,

I have had a Yahoo! Mail account since...since I could remember. It was also my first email account. And nope - never had any real problems with it.

Afterwards I got a domain email address too, for personal use.

About the spam. Yahoo! Mail has the functionality of marking messages as spam, and it adds the sender's address to a kind of black list (or spam list.) Very handy.