Jump to content

olsner

WFG Retired
  • Posts

    476
  • Joined

  • Last visited

Posts posted by olsner

  1. one gotcha with that though:

    getClass() returns the most derived class (i.e. the one used with new ) - instanceof is true if the object is of the same type *or* a type derived from it... in most cases, I wouldn't think that actually matters, but if you try to use the getClass() method when you actually mean to use instanceof, you could be in trouble.

    BTW, both of these operations are a bit costly (esp. instanceof), so you shouldn't generally use them to make dispatch-type things (i.e. one function that does many different things depending on the class of its input) - in those cases it's often better to introduce an integer type ID thingy or add an overridable callback function to provide the separate logic.

  2. ooh =) we're reading about RSA encryption in out Discrete Mathematics course at Uni right now actually :cool:

    The basic principle is that you take the string of 5 times 8 bits and treat it as a 40-bit binary number (that is: 310400273487) - then apply the RSA formula to that big number. In the real world, the file to encrypt would be split into 512-bit or 1024-bit blocks instead, and the blocks treated as 512-bit or 1024-bit integers in the same manner.

  3. Is it just me, or is that popup impossible to get rid of except by registering or loggin in?

    I say at least provide a way to close it, with a cross in the corner or something - that kind of popup thingies could be considered quite annoying by potential future members :(

  4. This'd be a mix of computer trivia and physics:

    You have two harddrives with a capacity of 2 gigs (you may assume that the drives are identical). You and a friend is standing on the top of the Empire State Building, and simultaneously drop the two drives on opposite sides of the building, one throwing the drive straight to the east and the other straight to the west.

    Which drive reaches the ground first, and which drive will impact with the greatest velocity?

  5. The way I read the spreadfirefox website, they aren't actually going to start the real campaign until the official 1.0 release is released (and anyway, I'd say that firefox has been perfectly stable at least since 0.7 - that's when I first tried it after having used Mozilla before). BTW, the 1.0 release is planned *soon* - November 9th - so I don't think this is such a bad time to start campaigning.

    And, according to their release schedule, they are going to release localized versions of firefox 1.0. I don't know if they'll all be complete on the release date together with the 1.0 release, or if they'll trickle in afterwards, but they do have a localization freeze (I guess that's a date after which you can't add any text to the UI) set to a while before the actual 1.0 release to give the translators some time.

  6. The mighty list of late-night creativity (or is that just brain-noice temporarily seeking verbal expression?)

    -- Overuse of "ye" and "yield" :D

    "Ye shall be crushed under the might of mine army!"

    "Yield now! And I shall spare you the humiliation!"

    "Yield! You filthy little maggot!"

    "Ye shall see my power, and ye shall be afraid. Ye shall be very afraid."

    -- A few ironic "hey, I just killed half your army, but that's no reason not to joke about it"

    "Oops.. Was that one of your guys?"

    "Oh, was that an army? Must've missed it..."

    "Are you sure your guys have weapons? My guys have..."

    "There's nothing wrong with what you're doing. I'm just doing it better."

    -- Monty Python

    (This could be a side-dish trigger-finger contest - the first user to send the counter-question wins :D )

    "What's the average flight speed of a swallow?"

    "An african or a european swallow?"

  7. Interresting!

    Yiuel: Your word for Speak. 'Qol' - is very similar to the Klingon word for language. Although the romanization for the klingon word is "HoL" (yes, capital H and capital L - don't know why), your description of your Q sound seems to be almost exactly the klingon sound for H.

    Also, really cool that you're learning japanese - me too =)

    anata mo nihongo wo benkyou sh-teru wa, sugoi da yo!

    (It is really great that you're also studying japanese!)

    wareware wa nihongo hanasanai bakayarou no minna wo korosu beki, ne? :ph34r:

    (Should mean something like "We should kill all non-japanese-speaking idiots, shouldn't we?".. It's probable more or less incorrect though)

  8. Crazy unneccesary lawsuits, like the McDonalds suit (many things american piss me off)

    People treated unfairly

    Let's hear a story about unfairly treated people. This was at the Stockholm scout district Counsil, and we were deciding about the stockholm delegates to the national counsil. The work-order was set so that all proposals would be fixed the night before the actual council to make it quicker, and no proposals would be accepted if they had not been submitted the night before. One half hour before the deadline, the work-group putting together the "official proposal" for the delegates changed their proposal and submitted the changed proposal without telling the candidates that were excluded. The excluded candidates would had no chance to submit themselves as candidates, since they thought they were already submitted! Anyhow, the work-order was torn so that the candidates could submit themselves again.

    Each candidate was asked whether they would vote in the national counsil exactly like the stockholm counsil decides, or as they thought themselves. Each candidate in turn said "Yes", but then came Miriams turn, and she tried to say that she would try to vote accordingly to the spirit of the district counsil and not neccessarily exactly like it had decided. After her first word, the old paragraph-riders of the counsil broke out in a chorus: "Yes or No! Yes or No!". It took about half a minute for the chairmen to silence the chorus and let the poor girl speak... It's really hard to properly convey how oppressive it was, but imagine one girl sitting on a chair trying to speak her opinion, with a 30-person mob standing in a ring around her, shouting "Yes or No! Yes or No!". That's how it must've felt for her, and sitting right behind her as I was, one could really share her anguish... One of the hardest half a minutes in my life, that was...

    Now, that's one thing that makes you angry! One of my nightmares is standing in court trying to answer something other than Yes or No, and getting the same "Yes or No!" from the judge... This was just like it..

  9. Just a little tidbit on Swedish grading systems :)

    In Sweden, in the dark ages (i.e. when my parents where kids ;-), there were A, B and C's, but they could be combined to form sub-grades, i.e. ordered by highest grade first:

    a, A, b, B, c, C (dunno if it continues beyond C, I think that C is a fail though)

    And the letters could be combined, so you could have Ab or Bc.. Quite advanced =) The grades would be given on the teachers subjective appreciation of the student's work, and there was a separate grade in Behaviour, as if it were a subject like any other.

    Then, some wiseguy introduced a 1-5 scale, where the average in each class should be a 3. Students couldn't always get the grade they deserved because there were too many good students.

    And then (I could have missed a few steps, these are the ones I know of), they introduced a criteria-based system (The ministry of education has standardized criteria for each grade), with three grades: G (passed), VG (well passed?), MVG (very well passed?). A fail is commonly refered to as an IG (not passed), but it is in reality a no-grade.

    The teacher can indicate subgrades by adding pluses and minuses - "strong" or "weak" G/VG/MVG - however the final grade must be an "integral" grade.

    If one gets a no-grade, it is always possible to re-examine the course or subject to get a G, but if you get a grade there are limitation on how you can re-examine it - you have to do another year of school and re-read the course completely.

    The latest proposal is to change to a 1-7 scale, where the EU average should be 3.5. This would be some kind of subjective appreciation as well, but a standardized system would mean easier european integration.. I don't like this at all. There should be strict standards for teachers to adhere to, like the IG/G/VG/MVG system, so that all grades are comparable and mean the same thing.

  10. - Forums feature quick and easily manageable separation of topics.

    Compare with IRC: if several topics are being discussed in the same IRC channel, the less popular topics are instantly drowned in the huge masses of traffic on the other topics. In Forums, these topics would be separate threads, and it is very easy to see which threads have new posts, and to select and read one topic to read about

    - Many people can come together and edit a document

    The first post is the text itself, one person is the main editor (the poster of the topic and first post). Everyone wishing to change or add to the text simply replies to the thread with the suggested changes/additions, and the main editor updates the first post accordingly.

  11. Naah.. By the way, just raw computing power doesn't really interest me. I'd rather have a crew of minions, completing all the ideas I've had but never realized, and I'd hire some brainiacs to figure out how I could drive Microsoft into destruction.

    After that, I'd broadcast the live-feeds of the Bill Gates Official Spanking Session (Bill being the subject of spanking, of course), Muahahaha!

    Not that any of this, besides the first idea of starting some risk capital business, is realistic.. And even that thing would probably require more money than just One Million Dollars...

  12. - xServe

    - xServe Raid

    - A decent workstation (SGI, perhaps ;-)

    And some screen switchers and cables, so that I don't have to have the noise around me all the time... Probably a couple of nice big 24" screens as well =)

    And, to top it up, Nice Phat Broadband (a gigabit should suffice for a while) so that I can use all my terabytes of storage...

    I'd need somewhere to live too.. somewhere close to the broadband =)

  13. 3.AM

    Beep Beep Beep Beep Beep Beep Beep

    Oh No! It's the smoke alarm! My house is on fire!

    I jump out of my bed, see the flames approaching. Maybe 30 seconds now. WHERE IS THE F**ING SCREWDRIVER!!? aah, Found it. Under the bed.

    25 seconds

    The screwdriver clenched between my teeth, i crawl under my desk. Thumbscrew 1. Thumbscrew 2. Computer case open.

    20 seconds

    I find Primary Master, the 10gig harddrive, the vessel of my life's work. Two screws on the opened side. Unscrew. Yank harddrive. It's STUCK. There are two screws on the *other* side tool. Darn!

    10 seconds

    My feet are very very warm indeed. Six screws left until the harddrive is free. I get two of them out, in a last craze of adrenalin, then realize where I am.

    I am doomed. Two ways out: through the solid concrete wall or through the inferno. I choose none, embrace the computer case - "Mommy!" - and spend the last seconds of my life burrowing my head in the soothing drippling of the plastic insulation melting off the wires.

×
×
  • Create New...