Friday, August 31, 2007
Wednesday, August 29, 2007
Timing cached reads: 666 MB in 2.00 seconds = 332.28 MB/sec
which is absolutely correct.
Here is some code that spits that (adapted from the benchmark program):
unsigned int total_MB = 666;
double elapsed = 2.00435;
printf("%3u MB in %5.2f seconds = %6.2f MB/sec\n",
total_MB, elapsed, total_MB / elapsed);
P.S. It was much slower than swapping on the hard disk and yes, I did use a hi-speed port.
Tuesday, August 28, 2007
A few years ago, someone showed me how to awake feelings through music. He said that music is mathematics and showed me how the sequence and combination of certain notes evokes certain feelings. I didn't fully understand the mechanics of this, because I'm not very musically literate, but I certainly got the idea. The guy expertly confirmed something I was already suspecting.
There is beauty in mathematics. There is beauty in physics, biology, psychology, just as there is beauty in art, history or philosophy. There is a great deal of beauty in computing, and there is a lot of philosophy there also. There is a lot of philosophy in every science, and there is beauty in thought.
There is beauty in engineering. A skilled engineer can recognize an elegant solution to a problem when they see one, and that evokes certain positive feelings. Good engineers are creative. They just work on a different level, not with words and colors but with nuts, bolts and electrons.
Take the human body, or the body of any living thing for that matter. One can't start to really see its beauty until one dissects it, studies it under the microscope, studies its functioning in greater and greater detail, until finally realizing that what they see is an incredibly complicated and finely-tuned machine! That is true beauty, and it's no wonder that many feel that our bodies are the careful work of a highly skilled engineer. Some call the engineer God, some call it Evolution. This makes it even more beautiful. Some even say that God engineered humans by means of evolution.
It doesn't even matter, for our minds are too small to comprehend God if "God existed". This is a reason why beauty will never fade away, because the more things we learn, the more things pop up that have to be studied and learned. But not before being perceived, felt. Our minds are small and our souls are primitive. Cosmically, we are but ants. And there is infinite beauty in the Cosmos.
So even if we accepted that understanding destroys beauty, that wouldn't be a problem. But understanding does not destroy beauty. I understand rainbows quite well but still find them beautiful. Especially similar phenomena that happen at night when the moon is full. I understand why I see the moon the way I see it, but I still find it very beautiful. And this could go on for days.
So, saying that feelings are somehow superior to logic and rejecting mathematical beauty simply leads to ignorance. It reminds me of an age not-so-long gone, an age of witch hunting, astronomer bunrning and other stuff. You can't praise the moonlandings, the microprocessor, the Internet, modern medicine, and not accept mathematical beauty. It's not ethical, not correct, not just. There is so much joy in discovering, in understanding, and there is so much beauty in the world on so many levels! The only thing I find no beauty in is dogma.
* Image:Aries-symbol.png - Aries (The Ram) (fire, cardinal, personal): Keyword: "I am". Freedom-loving, assertive, individualistic, independent, intellectual, pioneering, leader, action-oriented, fiery, straightforward, passionate, powerful. Can be extreme, arrogant, intemperate, violent, headstrong, impulsive .
* Image:Taurus-symbol.png - Taurus (The Bull) (earth, fixed, personal): Keyword: "I have". Resourceful, thorough, devoted, patient, sensual, affectionate, cautious, musical, artistic, solid, earthy, strong, sturdy, kind. Can be slow, possessive, stubborn, acquisitive, indulgent.
* Image:Gemini-symbol.png - Gemini (The Twins) (air, mutable, personal): Keyword: "I think". Logical, inquisitive, lively, active, curious, multi-tasking, talkative, sociable, duality, mercurial, whimsical. Can be superficial, two-faced, inconstant, restless.
* Image:Cancer-symbol.png - Cancer (The Crab) (water, cardinal, personal): Keyword: "I feel". Protective, sensitive, tenacious, family and home oriented, helpful, nurturing, watery, emotional, loving. Can be crabby, clinging, moody, worrying, pessismistic.
* Image:Leo-symbol.png - Leo (The Lion) (fire, fixed, social): Keyword: "I will". Generous, proud, theatrical, passionate, sunny, bright, kingly, powerful, loves attention, dramatic, independent, noble, creative, leader. Can be arrogant, bossy, boastful, egotistic, snobbish.
* Image:Virgo-symbol.png - Virgo (The Virgin) (earth, mutable, social): Keyword: "I analyze". Practical, efficient, critical, work and service oriented, common sense, modest, health conscious, mentally active, helpful, flexible. Can be pedantic, fussy, over-critical, worrying, over fastidious.
* Image:Libra-symbol.png - Libra (The Scales) (air, cardinal, social): Keyword: "I balance". Co-operative, diplomatic, urbane, fair, needs partnerships, refined, balanced, graceful, charming, debative, just, open-minded, social. Can be lazy, indecisive, rationalizing.
* Image:Scorpio-symbol.png - Scorpio (The Scorpion) (water, fixed, social): Keyword: "I desire". Passionate, secretive, powerful, keenly perceptive, deep, complex, analytical, inquisitive, resourceful, magnetic, intense, hypnotic, sexual, perspicacious, creative, vigorous, untameable, ambitious. Can be jealous, controlling, possessive, aggressive, cunning, cruel.
* Image:Sagittarius-symbol.png - Sagittarius (The Archer) (fire, mutable, universal): Keyword: "I perceive". Freedom loving, straightforward, extrovert, philosophical, intellectual, fun-loving, arrogant, adventurous, expansive, optimistic. Can be blundering, scattered, careless, tactless.
* Image:Capricorn-symbol.png - Capricorn (The Sea-goat) (earth, cardinal, universal): Keyword: "I use". Prudent, cautious, patient, methodical, practical, reserved, ambitious, authoritative, competent. Can be saturnine, suspicious, rigid, cunning, over-cautious, pessimistic.
* Image:Aquarius-symbol.png - Aquarius (The Water Carrier) (air, fixed, universal): Keyword: "I know". Democratic, unconventional, detached, friendship oriented, humanitarian, cause-oriented, believes in the group, society, progressive, sophisticated, objective. Can be eccentric, elitist, dogmatic, aloof.
* Image:Pisces-symbol.png - Pisces (The Fishes) (water, mutable, universal): Keyword: "I believe". Imaginative, sensitive, compassionate, feeling, idealistic, spiritual, accepting, undiscriminating, creative, mystic, self-sacrificing, artistic. Can be impractical, neglectful, escapist, lazy, distracted.
Have a nice day :)
Monday, August 27, 2007
yesterday night they reported gunfire in the city center. two women were attacked, and one injured. it was really scary, one might have felt that it wasn't safe to walk on the streets anymore. today, they reported "scenes reminiscent of American action movies", after which they revealed the truth: it was a paintball gun and probably just a joke.
Thursday, August 23, 2007
Check this out. And this, esp. the part about quotes.
Dude, you can write <big><b>shit</big></b> and get a big bold shit, and it's valid HTML. But that's an exception and it's certainly not legal XML, and as a programmer I cannot write ' "Fuck," Bill said ' , because it's stupid. And as Wikipedia explains, it's an outdated tradition due to technical reasons having to do with typesetting, rather than some legitimate language rule. I wouldn't care anyway.
Sunday, August 12, 2007
with certain notable exceptions, the press is a whore. they exploit every possible event and distort the truth in order to gain viewers / readers. everybody knows (should know) that. but if being a whore wasn't bad enough, a certain part of the press can justly be labeled a stupid whore. For instance: after a month-long drought followed by a day of light rain, mr. weather reporter reports: "starting tomorrow we're finally getting rid of the rain". But this is only a mild example. It makes me want to live in Afghanistan with all the uneducated people there using primitive tools instead of electricity when I hear people measuring energy in "kW/h". And I'm talking about people in the hi-tech, computers-magazine-type press. Dude, I mean, he only played a significant role in the industrial revolution that ultimately brought you all this comfort and gadgetry, why the hell should you know what a watt is?! Right? In school I was expected to know the year, month, day and preferrably hour when Johnny Walkman the Great signed the ass-kissing treaty of Cockpissville, plus all the mountains, mountain passes (with height to four significant digits), mountain peaks (with height to four significant digits), hills (with height to...), plains (), rivers (length in km with four,,.,.....), bla-blas, cities with sexually-hinting and otherwise stupid names (with population, thankfully with only 1 significant digit), know all the blokes who are claimed to have written valuable literature, know their work,...... and people that report "news" to other millions of people don't even know what a watt-hour is, or that "knots" are a measure of speed. Yeah, today someone was reporting a boat's top speed in knots per hour. I smiled :) Maybe I should understand that in such a fast-moving, ever-changing world, people feel the need to think of everything as an acceleration. Or maybe I should re-re-evaluate the necessary bit width of stupid, again.
Tuesday, August 7, 2007
P.S.: Kids! Read The Friendly Manual!
A hammer is a useful thing. For example:
What to do when your design needs 38 macrocells so it won't fit in an XC9536 CPLD?
a) use an XC9572 at almost twice the cost and fill up the rest with
a.1. (a piece of) another design from a separate piece of hardware (see c.1)
a.2. a new, useful feature
a.3. a new, gratuitous feature ('because I can, dammit!')
b) move a small piece to external discrete logic (if possible)
c) repartition the design
c.1. move some functionality to other hardware
c.2. move some functionality to software
d) fuck the compiler/synthesizer/translator/mapper/fitter and hand-optimize (hopeless, the machine is always better than you)
d) use a hammer as pictured.
All hail the alias- and quantization-noise-ridden, superbly crappy picture.
Saturday, August 4, 2007
P.S. There are a lot of substances that, when properly burned, only release CO_2 and H_2O in the atmosphere, and no crap such as ash or lead, nitrogen, sulphur or phosphorous oxides. Problem is, they're expensive. One example is alcohol, which can be produced by bacteria from just about any oranic stuff, but it's more economically used as booze rather than fuel.
Thursday, August 2, 2007
Wednesday, August 1, 2007
axioms are a product of the mind.
the mind can understand its own structure?
an idea or thought that defines its own structure?
i feel like feeling something but i'm not sure what. because i'm defective.
i fear the sun and its deadly rays
the cold wind takes me away into the deepest night
and there is nothing in sight.
i've been sailing for centuries, all alone,
just me and the stars
and the thick black clouds that come and go
same wind, same sea, same stars, same moon
same quiet waves, same emptiness
same search for something i know nothing of
same expectation of change
i am trapped in a dark eternal one-sided shell.