My high end Apple service department….

I’ve mentioned cobbling together iBooks a few days ago.

Adam asked me to look at an out of warranty iBook that had a dysfunctional screen, and another one with dead logic board (magic smoke run out). I had an iBook without screen and without power distribution board.

After a long day I had 2 functional and one totally dead iBook.

One might ask what a high end iBook repair facility such as mine looks like.

Well, ask no longer.


Here you see my hightech repair facility (living room’s floor) with one functional iBook and 3 dysfunctional ones. Well, 2 dysfunctional and one mostly functional.

Mostly functional iBook in process of undergoing hardware tests.

Floating Point numbers Part I

Here is an easy example to see if your mathematical software deals with floating point correctly.

You want to divide two thirds by five sixths. So you use GNU bc

stany@Gilva:~[11:13 PM]$ echo  "(2/3) / (5/6)" | bc -l
.79999999999999999999
stany@Gilva:~[11:14 PM]$ 

Matlab, which is arguably better at math then bc is, gives me this:

EDU>> (2/3) / (5/6)

ans =

    0.8000

EDU>> 

2*6 / 3*5 = 12/15 = 4/5 = 0.8 so Matlab is correct, and bc is wrong.

It’s March…

While doing a mock midterm I had a realization.

It’s March already.

That means new recurring expenses – cell phone, phone, real estate taxes, hydro, electricity, you name it. But that also means that we survived one more winter, scarred, jaded, yet alive.

Snow will start melting. Buds will start opening, and flowers will start blooming. Birds will come back.

Something ends, and something begins….

I am looking forward to the future.

P.S. And I believe that those of you who haven’t read Andrzej Sapkowski‘s novels, do miss out.

Checking for mail and DNS problems

Dave’s recent arcicle about problems with Mail.app reminded me that sometimes mail (and DNS) problems occure on the sending end, and some time on the receiving.

So I’ld like to take this opportunity to plug DNS Report, which is a really handy tool for rooting out problems with DNS and mail configs (or at least checking if DNS and mail are configured properly).

Here are a couple of examples:

DNS and mail config for theconsultant.net
DNS and mail config for sherman.ca

I am not linking to my own domain, as it shows so much red, that I am embarrassed.

P.S. Dave, you might want to at least fix mail to postmaster. Thankfully stoopid folks from rfcignorant.org picked up their toys and left the sandbox. I hope so did the sheeple that used rfcignorant.org RBL.

Ok, rant time…

RBLs are a great idea in theory, folks. Sure, I know Dave, we have similar ideas about what e-mail is useless, so if he doesn’t like e-mail from Sonya Abacha, most likely I’d not want to read it either. However, what happened to every bloody RBL out there is that the moment it got sufficiently big, folks who created it (and they tend to be loudmouthed, obnoxious and highly opinionated folks, kind of like me) decide that they need to force their opinions on to others.

They tell the rest of the world that no, they are not forcing their opinion onto others, and that people are free not to use their RBL system. Vaild opinion. But how many e-mail systems come with RBLs enabled by default, and how many people heard that “Gee, RBLs are great, they stop spam cold!”, an d enabled it, only to start losing valid mail?

In particular I had an axe to grind with rfcignorant.org. I had a /27 sub-allocated and routed to me from achilles.net. At one point Achilles had a problem with spam to postmaster (that by RFC must exist and must be read by humans), that Andrew Hutton started replying to all postmaster mails with auto-reply with a phone number and e-mail address that was read.

Some dumbass reported achilles.net to rfcignorant because this was “against the internet rules”.

Another dumbass at RFCignorant promptly added entire Achilless netblock to their RBL.

And for the next 2 years chaos ensued – Andrew Hutton instead of giving out an e-mail addy that was actually read promptly started to /dev/null all spam coming to postmaster, generating illusion of postmaster being a valid e-mail address, I had problems with my own e-mail (that I hosted on DSL link from achilless, under a different domain name, and which was technically a totally separate organization just buying inet access from achilless) because entire Achilless IP space was blacklisted, attempts to get de-listed from the RBL proved to be futile, because dumbass at rfcignorant would add, but never remove entries, etc.

I learned about it when some of my e-mails replying to a mailing list question (“I am not subscribed, so please CC me on any replies”) got bounced with apropriate reply.

People that really got screwed on the deal were the rest of the interweb, I feel, as those who used rfcignorant RBL missed out on my insightful, witty e-mail commentary. Or something like that.

Oh well. That’s all water over the bridge now….

On the other hand, I have no moral qualms about bouncing all mail from Korea, or all mail from hotmail.com… Talk about double standards….

iLife 06 and G3 processor and rant about Pacifist.app

After cobbling together an iBook (long story, but iBook in question is 600Mhz G3 with 100Mhz bus (as opposed to 600Mhz with 66Mhz bus that would make it much closer to molasses) 40 gig HD and combo drive), and throwing a clean install of 10.4.5 onto it today, I proceeded to turn it into a master disk image.

Every once in a blue moon I create an up to date install of OS with all the apps, system configured how I like it, accounts set up as I like them, and then use asr to back them onto an external hard drive. Then, in event I need to quickly roll out a system or recover from disaster I’d just need to asr the image back.

Two words about asr. Personally, I love asr. It can act as a poor man’s backup tool to create an identical bootable disk on a different drive (especially useful if you have some sort of bootable CD/DVD from which you can boot, as then asr would use fast block copy to copy data from disk to disk). Coincidentially, vast majority of macs (Let’s not talk about x86 ones. I am not yet sure I like them) supports firewire disk target mode. asr is also useful in creating and restoring from disk images.

Sadly for things like recovery disk I tend to use junky drives, as it’s not really a priority, just convinience, and coincidentially there is no funding for it. A disk with my last image died, so I decided to take advantage of the opportunity, as I were setting up a new system from scratch, with no baggage of software archeologies.

When I put in iLife 06 DVD into iBook and attempted to install it, I were told that iLife 06 only works with G4 and up processors.

So not being deferred, I’ve used Pacifist (See rant about Pacifist at the bottom) to extract iMovie package into a folder, to see what it is that Apple is trying to do on me.

I’ve talked about Fat files and lipo earlier, in case you feel like a review.

So a quick check with lipo confirmed what Apple is saying…. the compiled the binary for G4 and x86 processors only, obsoleting G3s. *sigh* First the cut off was presence of Firewire, then with iWork 05 (which was like 650 megs, yet shipped on DVD) it was presence of DVD, but now it’s G4 and up. I got to give a credit to the marketing/built in obsolescence people at Apple – they are good!

stany@Ghostwheel:~/Desktop/Root/Applications/iMovie HD.app/Contents/MacOS[03:46 AM]$ lipo -detailed_info iMovie HD 
Fat header in: iMovie HD
fat_magic 0xcafebabe
nfat_arch 2
architecture i386
    cputype CPU_TYPE_I386
    cpusubtype CPU_SUBTYPE_I386_ALL
    offset 4096
    size 3217924
    align 2^12 (4096)
architecture ppc7400
    cputype CPU_TYPE_POWERPC
    cpusubtype CPU_SUBTYPE_POWERPC_7400
    offset 3223552
    size 3327624
    align 2^12 (4096)
stany@Ghostwheel:~/Desktop/Root/Applications/iMovie HD.app/Contents/MacOS[03:46 AM]$ 

7400 is, of course, G4.

Attempts to run it generate ldynamic linker errors:

stany@Ghostwheel:~/Desktop/Root/Applications/iMovie HD.app/Contents/MacOS[03:46 AM]$ ./iMovie HD 
dyld: incompatible cpu-subtype
Trace/BPT trap
stany@Ghostwheel:~/Desktop/Root/Applications/iMovie HD.app/Contents/MacOS[03:54 AM]$

Now a quick rant about Pacifist.

Dear Charles Srstka.

I like Pacifist. I’ve not registered it using a pirated serial, and see 15 second time out each time I start it. One of these days I’ll even send you some money to support your effort (which seem to have been stalled since 2004). But, can you give me an answer to one question: Why the heck does Pacifist ask for administrator password each time one attempts to extract a file out of a package? Shouldn’t it only do that if one doesn’t have write permissions to the folder one is extracting files into? If I have read/write rights to files in package and to Desktop onto which I want to extract package’s contents, why does Pacifist want my password? Isn’t that getting users used to Pavlovian response of typing in admin password every time there is a prompt on screen, regardless of the need?
Please, think of the users, esp in view of the recent series of Mac OS worms that also ask for admin passwords.

Damn, if you fix it to actually check (and tell user why) if it needs admin password, and e-mail me about it, I’ll buy a license for Pacifist.

Sharing Realities

It seems that Richard Ostrofsky published a book.

Subject seems sufficiently interesting that maybe I should stop by his bookstore on Sunnyside, look at the book, and maybe even buy it.

Of course right now my interest is more due to attempt to “understand” Gödel’s completeness (Everything that is ‘true’ can be logically ‘proven’, and everything that can be logically ‘proven’ is ‘true’.) and incompleteness (in any description of ‘reality’ it is possible to construct some statement that is ‘true’ in the context of reality, yet can’t be proven) theorems. Of course Kurt Gödel went insane. I, on the other hand, am doing this as part of MATH 4802 course at Carletonia.

Hidden Cambodia

I am generally not a big fan of LiveJournal – it is way too annoying to use if one is not a member of LJ, and vast majority of folks using LJ tend to be not the folks whose posts I want to read. There are folks who throw hissy fits over being “friended” or “defriended”, and some of the users seem to have nothing more productive to say then the fact that they drank alot and then threw up. Reading people’s comments on LJ is about as essential as reading comments on slashdot – vast majority is drivel.

Occasionally there are great exceptions to the above that sadly just underscore the general mediocrity of interweb in general and LJ specifically. I came upon travelogue of stickgirl who writes of her experiences in Cambodia, while touring it on a dirt bike for a week.

She signed up with Hidden Cambodia Adventure Tours in Siem Reap and went on a 6 day tour of Cambodia country side on dirt bike, accompanied with two local (English speaking) guides. In process, she took tons of great photos, and her background explanations are fascinating and captivating read.

So, without firther ado, some (direct) links:

  • Day 1 – Arrival in Siem Reap
  • Day 2 – Pol Pot and Pot Holes
  • Day 3– Monkeys and Mountains
  • Day 4 – The Eating Kind
  • Day 5 – I haven’t met anyone who woted for him
  • Day 6 – End of the Road
  • Day 7 – Temples, Monkeys and Monks
  • Day 8 – Big Lake, Big Birds, Big City
  • Days 9-10

  • What do you know about Cambodia? Were you to ask me this question yesterday, I’d say that not much: It was a colony, it was called Kampuchea at one point (I think the switchover happened around 1989 as I have stamps labeled Kampuchea from around then), there was a civil war between monarchists and Pop Pot lead Khmer Rouge, and that’s about it…

    What do I know now? Well, carrying pigs on motorcycles seems to be a Cambodian national sport, with bonus points for squeals being heard way in advance of a rider. Blunt weapons are a better option when one needs to kill off 20 – 25% of the population, as bullets are expensive. 7th century temples are sadly neglected, and big trees can grow right over them (Actually that is kind of creepy. There were some shots similar to this in “Baraka“). I’ve actually ate snake in the warmer climates many moons ago (This was not in a chinese or french restorant, and it probably want’s prepared “properly”, but with all the vertibrae it resembled chicken or goose neck), so I now wonder which snakes are not “the eating kind”.

    BTW, CMAC is Cambodian Mine Action Center (one of the photos on Day 3). “This minefield is funded by French Government”

    I were curious what kind of gear one takes with him/her on a tour like that. Turned out that she took five 1 gig CF cards and 4 sets of batteries.

    P.S. stickgirl did a 3 week trip to africa in 2004, and also posted tons of photos and apropriate descriptions. Finding them using LJ interface is left as an excercise for the gentle reader (not sure if reader will be gentle by the time s/he is done)

    Sexual imagery in disco songs

    So here I am sitting in a coffee shop, editing DV footage, and listening to 80s disco. In process it occured to me that a whole number of songs that are catchy and were really popular back in the day have tons of really explicit and suggestive sexual content in their lyrics.

    Here is an example from “Abracadabra” by Steve Miller Band:

    […]
    I feel the magic in your caress
    I feel magic when I touch your dress
    Silk and satin, leather and lace
    Black panties with a ninja’s face

    I see magic in your eyes
    I hear the magic in your sighs
    Just when I think I’m gonna get away
    I hear those words that you always say

    Abra abra cadabra
    I want to reach out and grab ya
    Abra abra cadabra
    Abracadabra

    Every time you call my name
    I heat up like a burnin’ flame
    Burnin’ flame full of desire
    Kiss me baby, let the fire get higher
    […]

    MP3 will be available until it is no-longer available.

    Black panties with a ninja’s face. I like.

    As an aside…. Can’t get enough ninjas? Look no further! Clicking on the “Shirts and Clothing” and then on “Intimates” on the sidebar provides some entertainment.

    Then there is the infamous hooligan of the 70s, Tom Jones, with “Sex Bomb”:

    […]
    I’m gonna fire, shoot me right
    I’m gonna like the way you fight
    And I love the way you fight, baby

    Now you found the secret code I use to wash away my lonely blues
    So I can’t deny or lie cause you’re the only one to make me fly
    You know what you are you are a…

    Sex bomb sex bomb you’re a sex bomb Uh, huh
    You can give it to me when I need to come along give it to me
    Sex bomb sex bomb you’re my sex bomb
    And baby you can turn me on
    You know what you’re doing to me don’t you, I know you do

    Now Don’t get me wrong ain’t gonna do you no harm
    This bomb’s made for lovin’ and you can shoot it far
    I’m your main target come and help me ignite Ow
    Love struck holding you tight Hold me tight darlin’

    Make me explode although you know the route to go to sex me slow Slow baby
    And yes I must react to claims of those who say that you are not all that Huh, Huh, Huh

    Sex bomb sex bomb you’re my sex bomb
    […]

    MP3 will be available until it is no-longer available.

    Of course Tom Jones also sang “Delilah”, which is a murder ballad worthy of Nick Cave and Bad Seeds

    So, I guess an obligatory opinion… I don’t care. I listen to these songs, I recognize the sexual undertones, but are these songs any worse then Boney M’s Daddy Cool? I mean, from a point of view of a bible thumper, isn’t that song advocating incest? Does that mean that everyone should stop listening to it?

    There are two problems with this thinking that I see. For starters, “who died and made you judge” problem – in other words, how can anyone decide for anyone else? It might work in certain percentage of the cases, but isn’t a function of a parent to teach by example, and teach children enough morality to form their own opinions that would be “apropriate”?

    Second problem is the divide between obscenity and the art. Is “Sex Bomb” art? What about Nick Cave’s “Stagger Lee“?

    P.S. (and wild wild tangent that explains how I got familiar with Nick Cave’s songs) Many years ago, William Lee Irwin 3rd, back then at Purdue finishing a math degree , would drop by #unix on efnet (or on Unixnet, it has been a few years) in the wee hours in the morning, drunk, and quote verses out of “Stagger Lee” with every “Lee” replaced with “wli”. Then again, this was normal for #unix.

    *** wli is wli@holomorphy.com (William Lee Irwin III)
    *** on channels: #chess #prolog @#barbie_doll_torture @#unix @#haskell 
    +@#fp @#compsci @#math @#scheme @#mathdepravity
    *** on irc via server irc.idle.net ([216.34.2.113] Phoenix Rising)
    

    Those were the times.

    *** stany has changed the topic on channel #unix to <wli> 3 cigarettes 
    +from now, I suppose I have to put pants on
    > Good old vintage wli.
    <wli> stany: heh
    <wli> stany: Things aren't that different today. =)
    

    I miss wli.

    Bait

    In previous post I gave a link to David Gerrold’s The Martian Child.

    The Martian Child is supposed to be light fiction. In other words, most of the elements in it are supposed to be real. So when I’ve read in that story a reference to Jeff Duntemann, a Hugo award nominee turned programming book writer, I got curious, and googled.

    The results didn’t disappoint.

    Reading STORMY will take you at most 3 minutes, yet I am sure you will enjoy it as much as I did.