Wednesday, November 09, 2005

Mono: Compiling a WSDL

This post belongs to the I had a hard time finding this information so I put it somewhere I can easily find it again category.
I tried to compile a WSDL with mcs like this:

wsdl Service.wsdl
mcs /target:library Service.cs

and always got this error message:

Service.cs(22) error CS0234: The type or namespace name `Services' could not be found in namespace `System.Web'

I found this command after a long search on the Internet:

mcs /target:library Service.cs -r:System.Web.Services

Now everything seems to compile O.K. Let's see if the resulting .dll works.
I'll keep you posted.

InDesign CS2: Inherit a Color

I'm currently working on a book about using XML/XSLT with Adobe InDesign CS2. I have worked with the program and its competition like Quark XPress and FrameMaker (no link here since the Mac version ceased to exist) for quite some time now and I think that the XML support has matured quite a bit. It's not FrameMaker yet, but I keep my hopes up high that the program will eventually get there.
There is one aspect of the Character Formats which puzzled me, though. I could not find a way to change the color of such a format to nothing, the setting the format uses when it is created. If you change the color-assignment for the format in the GUI once, there is no way to get back to nothing, means the color from the enclosing paragraph format is inherited. Sure, one could simply create a new format and exchange it for the now non-working one. But in my case, the format is used (and mis-used) in a number of ways and I really don't want to check in all the places. So I came up with a simple AppleScript to do the switch:

tell application "Adobe InDesign CS2"
set myDoc to document 1
tell myDoc
set myCharFormat to character style "insert_cstyle_name"
set the fill color of myCharFormat to nothing
end tell
end tell

Yes, I know that this could have been done in a single line, but this line would not fit in this layout. (It might not fit on certain browsers anyway.) But still, here you go, switching back to nothing.

Wednesday, November 02, 2005

Writing: Organizing Ideas

After reading The end of One Big Text File at MacDevCenter.com, I found that I'm not alone in my approach. But (a big one, as always) I still advocate using lists, more than one, that is. As I wrote in my book Unix/Linux Survival Guide, I tend to keep lists leaning to a certain subject. They hold all the bits of information I deemed interesting at a time, but are too small or insignificant to create a whole file for one of them alone. On *NIX, these directories can be greped, on OS X they can be spotlight(ed) or greped.
Bigger ideas (think information spread over more than one paragraph) go into their own files with a speaking name. This mode of operation allows me to browse the little ideas or information on a certain subject for inspiration. No, they do not migrate into their own file if I expand on them. I want to preserve the bits a subject started from, when you start polishing something, a.k.a. rewrite it to fit a special purpose, some of the original information could get lost. Said information might give me an insight from a different angle and I don't want to loose that.

Movie: Kiss Kiss, Bang Bang

I went to see Kiss Kiss, Bang Bang a couple of days ago. Go and watch it, seriously.
A quick test if this movie is for you:

  • If the first word that came to mind after watching Pulp Fiction was WOW!

  • If you tried, like me, to buy another ticket for the same movie after watching The Usual Suspects.


Go see it, the script is great and I actually could not find anything that I did not like about the movie. Okay, there is one thing, no release date for the DVD, yet.
This movie is so not Hollywood (Will the audience get that joke or do we have to re-write?; OMG, the girl is naked, what shall we do about it?; What would be the target audience for this movie, and isn't it to intelligent for them?). In short: this is how movies should be made!

Confusing Adverts by IBM

Is it just me or should the guys in the new ads for the IBM Blades take a look at the link pointing to Tivoli?
The ad with the runner states: "If we are using Blade-Center, then we don't have to run to the machines." Didn't IBM buy Tivoli for that reason?
Just a thought.

Thursday, October 27, 2005

What's next, ASCII?

Read the article Who owns XML?, maybe it furthers the understanding that the whole system is flawed.

All the World's a ... Noise?

The article called "You Know What? Just Shut Up" over at Wired hits it on the spot. Point in case, some of my neighbors use their car-alarms to wake up the whole neighborhood at 3 AM, maybe it's not their fault, maybe it is.
While agreeing with the article, I have to admit, I wrote an AppleScript that makes my Mac call (as in shouting) me if mail from certain people arrives. Gives me freedom to roam the apartment, you know.
;-)

Thursday, October 20, 2005

The Curse of the Power-Supply

Yours truly treated himself to a new switch for the office. If you should be into making music or using things like hubs, switches, or something in that line of electronica, then you might already know what this rant is about.
Power-supplies that plug directly into the socket, just wide enough to block the neighboring sockets and render them unusable. The manufacturers of these things seem to believe that their appliance will be the only one in need for electrical power. Makes sense, people using things like switches will never use other devices that might need power as well. Who would use a switch to connect, I don't know, let's say computers for example?

Writing: First Review on Amazon.com

I got my first review on Amazon for the Unix/Linux Survival Guide.

Wednesday, October 19, 2005

Opinion: TV-Shows on Video iPod

The excellent Register has an opinion piece called Apple and Disney's two-inch disappointment. Granted there is a lot of truth in there, but (a big BUT) I'd be actually glad to pay for this content (being able to watch it the day after it aired) and not wait for an eternity, until some TV exec decides to show it in the part of the world I am at the moment. Regarding high-profile series like Lost or 4400, it is really hard not to stumble over spoilers that ruin all the excitement before I even had a chance to watch.
The article addresses this topic as well, but in the view of the world any TV exec seems to have, I'm not the customer, the ones that pay for the adverts are.
Just my 2 cents of wisdom ;-)

Tuesday, October 18, 2005

Internet Stamps?

My first reaction after reading the article Internet Stamps at ongoing was, this could actually work. On second thought, though, I really don't think so. (I want recognition for not using I don't think so, Tim. Did it anyway, damn!)
My point is, changes to websites would cost stamps as well. How will the cost (the needed stamps) be measured? Per link? Good, that would avoid link-farms – and punish people for linking into the Internet; who needs links anyway? Per website-change? What about link-farms?
Either I don't see it (only two cups of coffee so far) or the idea needs some more work.
IMHO, of course.

Listing Network-Connections

There are many ways to list the open connections on a *NIX-based system, the first option that comes to mind is usually netstat. The article CLI Magic: Trojan Scan at linux.com talks about two important things to keep in mind:

  1. There is always more than one way on *NIX

  2. There are tools on every *NIX box, waiting to be chained together to achieve results


I did not investigate the program the article is talking about, I will later, though. What tickled my fancy was the fact that I almost forgot that lsof can be used as well.
In a nutshell: lsof -Pni gives you a listing of the currently opened connections.

Friday, October 14, 2005

OS X: Getting used to Speech too much?

I found myself trying to instruct my Linux box via voice-commands this morning (before the first coffee). Am I getting too used to my Mac? Speech works like a charm. As long as my Sun does not start to do some serious work, that is. The frequency of the fans seem to cancel the reception of the microphone in my trusty PowerBook; same goes for loud traffic noises.
OTOH: If I'd start to talk to my Mac in the coffee-shop, who knows what people would think or do, anyway.

Thursday, October 13, 2005

Writing: YES!


It's not my first, but it is always exciting when an author gets to actually hold the result of countless hours in his hands.

Tuesday, October 04, 2005

You cannot Escape?

Sorry, long time no post ;-) (Excuse: books to read / books to write / Reason / DVDs to watch / take your pick)
Anyway, I rediscovered Speech on my Mac. Why rediscovered? Because I simply forgot about that feature and Apple emphasizes it not enough in their marketing material, IMHO.
To cut a long story short, I was punishing some more incompetent ad-servers in my hosts file and, all of a sudden, couldn't escape out of the insert-mode of vi.
<conspiracy theory>Should some of the bad guys know about my little secret? Duh! I already wrote about it.</conspiracy theory>
Then it struck me: Speech uses the ESC key to control if and when my Mac should actually listen to me! But I don't use the key, since I want the machine to listen continuously. You already guessed it, the key is blocked anyway.
The conclusion: you should really check out this feature, but don't forget to remap the ESC key if you are using vi.

Thursday, September 22, 2005

Writing: How to avoid being boring

Technical writing poses an inherent danger, if done according to some peoples will and fiercely guarded opinion, the result should be sold in your neighborhood pharmacy as sleeping-aid, possibly covered by Medicare. There are two opposing factions at war, actually. One of them thinks technical writing should never contain any humor, paint an understandable picture, or (god forbid) should be fun to read. The other faction thinks the opposite is true. There is some middle-ground, granted, but still…
I don't mean to advocate one or the other here. As a writer, I have to trust the editor and his/her knowledge of the intended audience, but when skimming over my bookshelves, the latter faction won – in my case, at least. The majority of my technical books works as reading material on the beach (in bed / in the bathroom / take your pick), as well. There is a minority of books I read once, found the contents interesting, but gathering dust by now, because, as stated, they were interesting, but not fun to read. There may be a connection regarding the style of my preferred fiction books, but hey, who says science has to be boring? It's about getting a point across, isn't it?
To illustrate my point here, head to the ISC website and read the article Follow the Bouncing Malware IX: eGOLDFINGER, it is an excellent example (some people might think a bit over the top, you have been warned) of how to write about a, sometimes kind of boring, subject, security. Tom Liston did a fantastic job describing a common malaise in today's IT-world. IMHO, of course ;-)
Speaking of painting a picture, I collect quotes, as most authors do. I stumbled over a nice quote in my collection yesterday: The herd instinct among economists makes sheep look like independent thinkers.

Monday, September 19, 2005

A Reason to upgrade?

I've been busy working on a music project that kind of dragged along (I promised to master a CD containing my tracks and didn't find the time to do it).
Originally I decided to postpone the upgrade of my favorite music software, Reason, until I would finish the project. Yeah right…
The temptation was too strong, the new mastering tools to interesting, and anyway, I was simply nosy how it would compare. So I installed the 3.0 version of the program: WOW!
First the downside, the new possibilities are tempting, one has a hard time to fight the temptation to just tweak that sound a little. I will resist (until tomorrow I guess). One of the reasons (pun intended) is the fact, that the latest patch (3.0.4) is a new install including the usual serial number shebang, etc. On the other hand, I'm glad and thankful that I do not have to use an USB dongle like in the other program I'm using. Actually using less often and thinking about abandoning it completely. Granted, one cannot compare the two programs, but using a dongle with my 12" PowerBook is a nuisance, PERIOD.
Back to Reason (couldn't resist), the new binary churns along on the last CD and should be ready within the next couple of minutes and I'm still entertaining the thought of staying on track, being strong, resist the temptation to change just some little things, blah, blah, blah…
The new mastering tools are awesome! You really have to hear for yourself, if you should be into music production, do yourself a favor, check this program out! (No, I do not get any favors from the Propellerheads for saying this.)
[update]The new binary didn't nag me about the serial number, let's hope it won't ask me about one of the additional CDs while I'm sitting on a plane or a train, let's keep the fingers crossed.

Friday, September 09, 2005

Advertising Stereotypes

There is an article called The modern rules of advertising? at the BBC News website, containing a list of advertising stereotypes. The list in itself, taken from a book by Michael Buerk, is very interesting, but the comments by the readers are worth looking at, as well.
Found it via Boing Boing

Thursday, September 01, 2005

Tiger: Slow browsing...

After I installed Tiger, the whole system felt quicker, more responsive. Certain websites rendered like molasses, though.
I kept wondering for some days now, until I remembered that the advertisement punishment system was not in place. Said system works like this: If an online ad does certain things, it (or better its host) gets punished by me:

  1. Playing sounds -- VERY BAD, I sometimes surf next to my sleeping girlfriend

  2. Using 1 pixel gifs or pngs -- VERY BAD, I don't like to be spied upon

  3. Distributing malware -- Do I really need to comment on this?

  4. Loading lots of small .js files -- Either do it right or don't do it!

  5. A couple of other things judged by a more personal nature...


You might guess where I am heading here: /etc/hosts.
Sites deserving punishment end up in my hosts-file with an IP-address of 0.0.0.0. Restart the lookupd or reboot, instant relief.
Don’t get me wrong here, I know that advertising funds many websites; that is the price I have to pay for free. The only thing I ask for is, do not annoy me! That’s all. I do not use any other ad-blocking software, that is my part of the deal.
BTW: Pop-Ups or Pop-Unders are VERY BAD.
;-)

Tiger: Weather Widget Woes...

The Weather Widget in Dashboard is a handy feature to get an idea what is going on weather-wise, but sometimes (especially in cities not located in the US) the display seems to be off or outright strange. If you are like me, adjusting the location and timezone data while on the road, then it sometimes works and sometimes tells you very strange things, e.g. you are sweating in a coffee-shop in blazing sunlight and the widget tells you that it is cold, raining, and in the middle of the night.
The reason is quite simple, if you change your location, then this change is transferred to the weather widget as well. But what works for your trusty *NIX system in regard to the information about your geographical location, will not always work out for Accuweather.com; the names of the cities are sometimes written differently, that’s all.
Just head to the website and navigate to the city you are in at the moment, the string after zipcode in the URL is what you need to copy to the weather widget. Confirm the entry by hitting Return, wait until the widget validates your entry, and you are set.