Category: MacOSX
May 01, 2013 Flattr this
Safari Web Inspector

webkit-icon-256.pngWith the update of Safari 6.0.4 i realized the Web Inspector changed in a way which makes it almost unusable for my needs. In 6.0.4, the Inspector wouldn't even properly show cascading css properties or inheritance for a selected element anymore! See the screenshots below for a comparison between Safari's and Chrome's Inspector.

I posted my frustration on Twitter and thanks to some keyword search running somewhere in a lonely cloud, a Safari Engineer got back to me. So thank you very much, Timothy! This blogpost is for you, because i couldn't fit it into 140 characters.

In this post, i will focus on one aspect of the Inspector only: Working with CSS. Because that's what i do most and because for JavaScript development, the tools at hand generally get the job done well for me.

Web Inspectors showing information for the exact same element (Safari to the left, Chrome to the right):

Safari Chrome

Preface

Shortcomings in the Safari Web Inspector and a lot of rendering bugs in Safari (which seem to be mostly ironed now) forced me to use Chrome more and more for my development needs. I never wanted to. I care for Safari. I still prefer the Safari UI over Chrome (just look at Chrome's Preferences-Screens – shudder) and don't know if i like where Google (the company) is headed to. But Chrome has compelling features and before i knew it, i was using Chrome during 95% of my development time.

Features i miss most in Safari's Inspector

  1. Being able to select an element in the source view of the Inspector and keep the element selected between reloads and navigating a site. Chrome supports this and if i remember right, Safari did at one time in the past.
    You won't believe how important that is for me and how often i need that during the day. Webdev often is rinse, repeat, reload (preferably via the Live Reload plugin).
  2. Edit a linked css file directly in the browser. This is often more convenient than fiddling with css in the styles pane of the inspector. Chrome supports that. Safari never did, afaik.
  3. Plugins, that work with file:// URLs. The live reload plugin is a huge timesaver when developing for the web. Unfortunately, Safari plugins are not allowed to work with file:// URLs, which i do most of the day while i develop (i just drag and drop a html file into my browser window). Chrome doesn't have that limitation.
  4. Easily check inheritance of certain values. Sometimes i just want to select an element in the source and e.g. quickly find out, where it inherited its font-size from, without having to endlessly scroll through all the rules and parse striked-through rules etc. I'd like to look at a property in the "Computed Style" section, klick on a little icon and together with a link to the respective line number in the css source, see the classname or id of the rule in the CSS displayed, which ultimately set the property. Chrome has this, but with a UI from hell.
  5. A toggle to simulate :active, :focus, :hover and :visited pseudo classes
  6. Inspector Preferences. Chrome's Inspector Preferences and Overrides are very, very useful. Also, as one get's older, a font-size setting for the inspector ui comes in pretty handy.

Features Safari's Inspector will hopefully soon get

Inspector toolbar

Timothy suggested i should check out the Inspector in Webkit Nightly (which i haven't done in a while). So that's what i just did. I looked at Webkit Nightly Build 8536.29.13, 537+. If all i see there makes it into Safari soon, things don't look so bad at all. Here's my comments on what i saw in the Nightly related to my above laundry list:

  • Live editing of linked css files is supported
  • Toggles to simulate :active, :focus, :hover and :visited pseudo classes are there
  • The proper display of cascading rules seems restored

Inspector pseudoclass new rule
New in Nightly: Nicely cleaned up Rules-Section with new pseudo elements toggles and a Button to quickly add a new rule (you missed a button to easily delete an added rule though). Further above you see a pretty nice new tooolbar.

Features still missing

Here's what's left from my above laundry list with comments about the nightly added (in bold):

  1. Being able to select an element in the source view of the Inspector and keep the element selected between reloads and navigating a site. Chrome supports this and if i remember right, Safari did at one time in the past.
    Selecting an Element in Source and reloading a page is totally buggy in the nightly (it's a beta, so that's ok).
  2. Edit a linked css file directly in the browser. This is often more convenient than fiddling with css in the styles pane of the inspector. Chrome supports that. Safari never did, afaik.
  3. Plugins, that work with file:// URLs. The live reload plugin is a huge timesaver when developing for the web. Unfortunately, Safari plugins are not allowed to work with file:// URLs, which i do most of the day while i develop (i just drag and drop a html file into my browser window). Chrome doesn't have that limitation.
  4. Easily check inheritance of certain values. Sometimes i just want to select an element in the source and e.g. quickly find out, where it inherited its font-size from, without having to endlessly scroll through all the rules and parse striked-through rules etc. I'd like to look at a property in the "Computed Style" section, klick on a little icon and together with a link to the respective line number in the css source, see the classname or id of the rule in the CSS displayed, which ultimately set the property. Chrome has this, but with a UI from hell.
  5. A toggle to simulate :active, :focus, :hover and :visited pseudo classes
  6. Inspector Preferences. Chrome's Inspector Preferences and Overrides are very, very useful. Also, as one get's older, a font-size setting for the inspector ui comes in pretty handy.

Inspector Design in Webkit Nightly

I am pretty sure, that the design we see in the nightlies won't make it into Safari without some additional designer-love, but let me offer some brief remarks anyway. Just in case. I really hope though, the new toolbar (i love it!) makes it into Safari (the current one is kind of overloaded and confusing).

  • Icon sizeThe icons in the toolbar seem too big for me (in relation to the label text-size), even when i set it to display small icons. I'd keep the icon size similar to the size of the 2 icons displayed to the left of the toolbar (the icons to close or dock the window).
  • I prefer the design of the icons very much over the coloured icons currently visible in the Safari Inspector. However, i think we don't need gradients in the icons. We also don't need color to indicate the selection, just make the icon for the selected section darker. Keep it simple.
  • I love the new "Instruments" display, where you - at a glance - see the number of resources loaded, total size, load time, console -logs, -errors and -warnings. However, i won't use fake glass. This is not a 90's version of iTunes. I believe an inset shadow around the area and light borders between the individual sections on hover will do. PS: the icon-size in here feels just right. That'd be a good size for the other toolbar icons too.
  • The area with the pseudo class toggles consumes too much vertical space. It should me much more condensed. Have a look at the chrome toolbar and use an 11" Air when you look at both toolbars, then you get my reasoning.
  • Same goes for the new "+ New Rule" area. Far too much top- and bottom-padding.

Conclusion

I was genuinely worried. Looking at Webkit Nightly, things look much better and some of my confidence is restored. Given, that what i see in the nightlies really makes it into Safari soon.

I still wonder, how it could happen, that Inspector in Safari 6.0.4 is in such a bad state and lost valuable features which it previously had. Is this just a bug that slipped in there due to sloppy QA or is it a case of terrible product management?

I hope, the importance of good developer tools in the form of the web inspector is clear to Apple. If we developers don't like the tools or if the tools slow us down, why should we use them? If we don't use them, we won't develop with the unique features of the platform (used) in mind and thus won't help drive it forward or keep afloat.

Thanks again Timothy for getting back to me! That was totally unexpected. If this feedback, which touches only very few specific points, is of any value to you and the Safari team, i can certainly post some more from time to time.

Posted in: , , by seiz | Comments (0)
December 01, 2012 Flattr this
Leistungsschutzrecht

IconMein Beitrag zum Thema ist eine Safari Erweiterung, die Einträge von Verlagen, die das Leistungsschutzrecht unterstützen, aus den Suchergebnissen von google.de, google.com und bing.com ausblendet.

Hier entlang bitte!

Posted in: , , by seiz | Comments (0)
March 04, 2010 Flattr this
How to avoid system.log from being flooded on Mac OS X

Console-Icon.jpgRecently i had noticed my system.log being flooded by messages from mDNSResponder which is Bonjour (or Zero Config and formerly Rendezvous).

I had tons of messages like the following flood my system.log every 10 seconds:


04.03.10 12:56:16	mDNSResponder[18]	Bad service type in ._MacOSXDupSuppress._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
04.03.10 12:56:26	mDNSResponder[18]	Bad service type in ._MacOSXDupSuppress._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
04.03.10 12:56:36	mDNSResponder[18]	Bad service type in ._MacOSXDupSuppress._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
04.03.10 12:56:46	mDNSResponder[18]	Bad service type in ._MacOSXDupSuppress._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>

The cause of the logs seem to be an older Mac OS X Server 10.3.9 box announcing a bonjour service which has a name longer than 14 characters. Short of being able to fix the cause, i was looking for a way to exclude such messages from being logged at all.

Syslogd and Filters

After a lot of googling, i discovered that on Mac OS X, syslogd not only uses /etc/syslogd.conf – as you probably knew – but also uses /etc/asl.com which offers some nice ways of configuring exactly what you want to be logged (see: man asl.conf and man asl). You can filter by log-lever, sender and even the specific contents of a message which is being logged.

Filtering by Sender

I my case, the sender of the log messages was mDNSResponder. So if i wanted to exclude anything from mDNSResponder is trying to log, i could add the following line to /etc/asl.conf:

? [= Sender mDNSResponder] ignore

After you made any changes to asl.conf, you need to restart syslogd to read the changed configuration. Syslogd is restarted with: sudo killall -HUP syslogd

Filtering by Message content

Filtering by Message content is equally trivial. In my case, the annoying message being constantly logged was Bad service type in ._MacOSXDupSuppress._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
You could just filter by message content, but to be save, i filter on both, sender and message content. Thank god, asl not only lets me filter by Message content but also by substring like so:

? [= Sender mDNSResponder] [S= Message Bad service type in ._MacOSXDupSuppress] ignore

Again, don't forget to restart syslogd after a change to asl.conf!

As it took me rather long googling a solution to my problem, i hope this post is being indexed nicely and will help others with a similar problem!

Update 2010-03-04 17:48 CET

It seems the above only really affects logging to the asl datastore. Messages filtered like above are not being displayed anymore if you use console.app and select ":All Messages" but unfortunately will still be written to /var/log/system.log.
Too bad.

Posted in: , by seiz | Comments (1)
October 19, 2009 Flattr this
Analytics to Earth for Mac OS X
Google Analytics to Google Earth

Analytics to Earth is a Mac OS X Utility which lets you view Google Analytics Geo Reports in Google Earth

Download | Release Notes

I believe, looking at Geo Reports in Google Earth in 3D offers far more insight into the world wide usage of your site than the flat, colored map in Google Analytics. Therefore i developed Analytics to Earth. Maybe one day, Google will integrate KML export right into Google Analytics.
In the KML files generated by Analytics to Earth, each page view is represented by a logarithmically scaled yellow line. Red lines represent more than 1.000 page views.

Using the Google Analytics API, Analytics to Earth downloads geo reports of a given timeframe, displays them in the built in browser or converts them into a .kml file which you can open in Google Earth.

AnalyticsToEarthScreenshot.jpg

Usage:
After you launch the App, simply enter your Google Analytics Email and Password (needed to log in to the GA API), then specify a timeframe by setting a start- and end date. Clicking on the "Save" will then save the KML file to disk, where you can open it using Google Earth. Clicking on "View" will display the report in the built in browser using the Google Earth Internet Plugin.

Requirements:

All traffic to the Google Analytics api is done securely via SSL.


Posted in: , , by seiz | Comments (0)
September 10, 2009 Flattr this
A different way to manage apps in iTunes

On September 10th, i promised on twitter to eventualy come up with a mockup of a better, more usable way of managing iPhone apps in itunes.
My point is, that i believe in the current itunes 9 implementation, Apple simply transferred the iPhone's quirky way to manage home screens onto the Mac and substituted the finger with a mouse. Not taking into account the benefits of a much larger screen size on the Mac (or – god beware – a PC).

So here's my take on the problem. Click on the image, play around with it and let me know what you think!
I can't guarantee, that this will work in any other browser than Safari of FireFox!

I am making use of the much bigger screen estate by placing the home screens side by side and by using a so called Dropzone where one can park icons to move them across screens (just like you park stuff on your desktop) which might not be visible and need to be scrolled to.
What is not implemented is multi-selects, reordering of home screens and sorting of apps (which is also needed e.g. sort by most used), as this is beyond the scope of my little experiment.

Better iTunes app management

This is a functional concept and not intended to show off my graphical skills.
Big thanks to jQuery for making it possible to sketch up such a simulation in almost no time!

Posted in: , by seiz | Comments (0)
March 17, 2008 Flattr this
Modal Dialog of the Day - by Adobe Acrobat

AdobeAcroobatDialog.jpg Not only is this dialog silly, but it actually was displayed in a never ending loop when updating my Adobe CS3 Design Standard Suite today. I closed all my open Apps except the Adobe Updater and clicked OK in the silly dialog above and it would constantly re-display this dialog...
Go figure.

Adobe: next time double check your dialog localisation - or maybe add a #todo tag in the Dialog-Title so you spot these before release ;-)

Posted in: , , by seiz | Comments (0)
February 27, 2008 Flattr this
Play NetNewsWire Video/Audio Enclosures in QuickTime Player

nnw-icon.jpgFor your Enjoyment, here's a little AppleScript which plays the Enclosure (type Video/QuickTime or Audio/Mpeg) of the current selection in QuickTime Player. If you're like me and don't automaticaly download enclosures, this helps you save the hassle of Copying the URL and pasting it into QT Player or such.

Installation:
Download the Script, unzip it and move it into NetNewsWire's Scripts-Folder (~Library/Application Support/NetNewsWire/Scripts/). Done.

This comes especially handy, if you add a Keyboard Shortcut for the Script in the Keyboard & Mouse System Preferences like so:

nnw-shortcut.jpg

Enjoy.

Posted in: , by seiz | Comments (0)
June 05, 2007 Flattr this
Mac OS X Calculator.app Problems?
Calculator.app IconIs your calculator suddenly not doing currency conversions correctly anymore? Do the currencies listed in the currency pulldown menus look funny with lots of blanks on either side?

Then you might experience the same problem i had which has an easy solution:

  1. Quit Calculator.app
  2. Open Terminal.app
  3. Type rm -r ~/Library/Caches/Calculator/

This will clear all Calculator cache files of which one was obviously corrupted in my case.

Posted in: , by seiz | Comments (0)
March 21, 2007 Flattr this
Mac OS X 10.4.9: Media Eject key delay

ejecticon.gif According to this apple technote, there's a new feature in 10.4.9 which puts a delay on the Eject Key to prevent accidential ejection of media.

Now how silly is this? Why do you need to prevent something which isn't a problem at all?
What happens when you accidentialy press the eject key? Well, a CD will be ejected. So what. You can always just pop it in again or press the eject key once more.

This is such a silly feature i would have only expected to see from Microsoft.

Will Leopard maybe contain a feature which puts a slight delay on all keys on the keyboard in order to prevent accidential typing? ;-)

Geeeeeeeeezzzzzzzzzzzzz.

Posted in: by seiz | Comments (2)
February 15, 2007 Flattr this
Why dot mac sucks

Because we have outages nearly every day and sometimes twice a day - according to the .mac system status:

2/10/2007
1% of members experienced difficulties with .Mac Mail for 1 hour. Normal service has been restored.

2/8/2007
.Mac members were unable to access any services. Duration: 1.5 hours. Some .Mac members were unable to access mail on the web. Duration: 1.5 hours. Normal services have been restored.

2/5/2007
1% of members experienced difficulties with .Mac Mail for 2 hours. Normal service has been restored.

2/5/2007
2% of members experienced difficulties with .Mac Mail for 1 hour. Normal service has been restored.

2/4/2007
2% of members experienced difficulties with .Mac Mail for 1 hour. Normal service has been restored.

2/4/07
Due to scheduled maintenance, some members might not have been able to access .Mac Mail for 20 minutes or less between 10pm PST on 2/3/07 and 1am PST on 2/4/07.

1/22/2007
4% of members experienced difficulties with .Mac Mail for 3.5 hours. Normal service has been restored.

1/21/2007
4% of members experienced difficulties with .Mac Mail for 30 minutes. Normal service has been restored.

1/16/2007
3% of members experienced difficulties with .Mac Mail for 10 hours. Normal service has been restored.

1/15/2007
3% of members experienced difficulties with .Mac Mail for 45 minutes.

1/11/2007
2% of members experienced difficulties with .Mac Mail for 2 hours.

1/10/2007
3% of members experienced difficulties with .Mac Mail for 1 hour.

Posted in: , by seiz | Comments (2)
December 05, 2006 Flattr this
WebKit Nightly Builds and Saft / SIMBL /Safari PlugIns

Here's my little christmas gift to all of you having either Saft or any SIMBL PlugIns installed and want to work with the WebKit nightly bulilds without crashing or having to manually disable the above mentioned PlugIns:

OpenWebKit

is a simple AppleScript App, that just does the following:

  • Rename /Library/InputManagers to /Library/xInputManagers
  • Start /Applications/WebKit (the nightly build you have installed)
  • Rename /Library/xInputManagers back to /Library/InputManagers

Installation notes:
Download, unpack and doubleclick.

Note: as this script needs to rename a folder in /Library, it will only work when you have Admin rights for your Mac!

Tada! No more hassle.

Enjoy!

PS: i wonder why the nightlies do not just already disable all input managers so we don't have to.

Posted in: , , , by seiz | Comments (0)
November 23, 2006 Flattr this
Website Statistics in Google Earth

Jacob Cord wrote a very nice little converter which takes a tab-text file, exported out of your Google Analytics Geo Map Report and converts it to a KML file which you can import into Google Earth.

The output of the original script didn't look all that exciting, so i modified it a little to produce some awesome visualisation of website traffic.


Click the image to see an animation (QuickTime required)

The longer the lines, the more pageviews are represented. If the pageviews are above a set limit, the lines are drawn in red instead of yellow.

Now isn't that an entirely different approach to website statistics visualisation? I'll soon follow up with a Mac OS X PPC binary of the converter and instructions.

August 07, 2006 Flattr this
Posted in: , by seiz | Comments (0)
August 08, 2005 Flattr this
Mighty Mouse - minor glitches

My Mighty Mouse recently arrived and i must say. Very well done. The nipple works perfectly fine - much better than traditional scroll wheels which tend to give you carpal tunnel and such. It is actualy a moving part, not just a sensor. The mouse also has a "real" mechanical click like the previous one. The sensors sense if you intended a right or left click.

Only the side buttons are not perfect for me if i am in nipple mode. Because when my hand is in the scroll position on the nipple, my thumb is way to far back on the mouse to reach the left side button. Apple should have made the side buttons wider (almost double the width). Also IMHO one needs to press too hard onthe side buttons to actualy make them do anything.

Minor grief also with the scrolling speed. Prior to installing the Mighty Mouse Drivers, i could adjust scrolling to a decent speed of my liking. After installing the driver, it got a little slower. Especially horizontal scrolling could be faster.

Even with the normal mouse (is that tiny mouse now), i would have always preferred to adjust the mouse (pointer) speed bejond the limit the OS offered me. Same now with the scrolling speed.

And now for some glitches with the current Apple Driver for the Mighty Mouse:

It doesn't care (or cares too much) about context. Imageine you're looking at a webpage which includes a TEXT AREA with scrolling content. When you move your mouse pointer over the Text Area, the nipple will scroll the text area which is fine - but once you reach the top or bottom of that textarea, the whole webpage suddelny starts scrolling. This is a major usability issue as it makes scrolling to the top or bottom of a text area nearly impossible. IMHO, reaching the top or bottom of a text area should just stop the scrolling - scrolling should NOT continue bejond the boundaries of the text ara. See the movie below for an explanation.


Another weird thing is related to quicktime content. Try loading an MP3 file embeded via the QuickTime Plugin into a Webpage for example (any podcast should do) and move the mouse pointer over the QuickTime Controller displayed in the Browser (I tried with Safari). Now scroll right/left. Here what happens to the volume? But the left/right scroll doesn't actualy change the controllers volume but rather the volume you could adjust via the movie properties in quicktime pro - which could lead to terrible distortion.

Tags:

Posted in: , , by seiz | Comments (0)
June 14, 2005 Flattr this
iSync Madness

Well, iSync in 10.4.1 still sucks big time. Not only does it refuse to sync properly (doesn't sync any Bookmarks for me), but it also displays totally insane Error dialogs:

StupidErrorDialog.jpg

Translated into English, this dialog would be:
No Problems
Do you want to review and correct this problems now?
[Quit]

Posted in: by seiz | Comments (0)
May 10, 2005 Flattr this
Tiger Install Hell

Here's a little help for all of you who fail to install tiger due to a corrupted disk - aka when diskutility reports it can't fix a broken disk.

Boot into singleuser mode by pressing APPLE-S when you turn your machine on.
When the System comes up with a textprompt, type:
fsck -fy
and hit enter.

You'll now get some output about errors fsck will find and apperantly try to repair (which it proved it can't in diskutility run by the Tiger installer already).
In the output, you'll notice it will print some numbers to identify bad files - something like:
Fixing bad file (1234567D)...

Write down all of these numbers (excluding any trailing LETTER - we only need the plain number - no A-Z).

Now type:
reboot (and hit enter)
to reboot into the OS already installe don your Harddisk.

By knowing these secret numbers reported by fsck, we can now find the actual files which cause the problems. After finding the files, i recommend to copy them to some external disk or a server as we are going to delete all of them!

To find those files, open Terminal.app again and type:
sudo find / -inum NNNNNN
where NNNNNN needs to be replaced by one of the secret numbers you wrote down previously.
The find comand will search for a while and finally output the real path and filename of the bad file. With this information, you can easily locate and delete the file from the finder.
Repeat the above "find / -inum NNNNNN" thing for as many of the secret numbers you had written down and delete all of the files "find" will find.

Now, you can boot into singleuser mode again (APPLE-S) run fsck -fy and it will fix your drive. Run fsck twice and when it is done type:
sync
type:
reboot
hold the "C" key to boot into your Tiger install DVD (in case it is still inserted) and you should be on your way to tiger.

Now if you mess up your machine, don't blame me!

[The above steps are not written for Geeks so i didn't combine the find and delete steps like a geek would have done ;-)]

Posted in: , , by seiz | Comments (1) | TrackBacks (1)
May 01, 2005 Flattr this
The Tiger Details List

Daring Fireball: The Tiger Details List: "I’ve been using the final developer build of Mac OS X 10.4 for the past few weeks, and I’m compiling a list of observations and interesting details. Things that are new, things that are different."

And here's what i found during the first hours of using Tiger:

Installation:

You need lots of available Space. I ran a little short on the harddisk of my 12" and sure enough, the installation stopped with an error. If i wouldn't have been as knowledgable as i am, i would have lost my previous USER-Data as i did an archive install.

I need a new installer option
Currently you have these options:
  • Updating the Current System
  • Archive Install which does a clean install but can preserve your user-settings and such but archives the Old System in a folder called "Previous System". Allthough this prev. System can not be used anymore (as written inthe installer help), it is archived and wastes space
  • Super Clean install which formats your Harddisk and cleanly installs the new OS.

I had just used the "Update prev. System" for the last couple of updates. My gut tells me however that a clean install will always result in a more stable system, so this time i picked the Archive Install to have a clean install but still keep my user settings. Now if you don't have huge harddisks or have the habbit of always filling them up, this Archive Install requires far too much harddisk space, as it needs to fit the NEW OS and the OLD OS on the same harddisk (you can't archive the old OS on another drive). Now i didn't have enough space available.

This gives the desire for a new INSTALLER option which either lets me archive the previous system to an external HD (not many people will be able to use this archived old system anyway) or even offers me to just OVERWRITE the old system and only keep my User-Settings (old home folder...) which would be my preferred way. This way, we save a couple of GIGs which is otherwise wasted by the archived and useles old System.

Spotlight:

I love spotlight and was really waiting for such a feature to finaly be available in a usable manner. It works pretty well but here's one minor glitch i wonder if this couldn't be a little bit more cleverly aproached.

It seems spotlight doesn't INDEX any of your iPhoto Libraries Metadata which i find strange. For example i have tons of photos taken on my various trips to Bali, Indonesia. The images of course have these weired filenames like "DSC00133.jpg" which doesn't mean much for indexing. However, all these images are nicely filed into an iPhoto Album called "Bali" and lot's of them even have keywords assigned. This means i had already taken the time to add META DATA to all the images. Sadly this META DATA is simply ignored by Spotlight as NONE of my Bali-Images is found when i search for BALI in spotlight. Some room for improvement.

Posted in: , , by seiz | Comments (0)
June 05, 2004 Flattr this
Importing a Self Signed SSL-Certificate into your Mac OS X Keychain

So here's how to import a self signed ssl-certificate into your System's Keychain on OSX in order to not have Safari complain.

Save your certificate (ours is named Certificate.cer) to your Desktop, then in terminal type:
sudo certtool i ~/Desktop/Certificate.cer k=/System/Library/Keychains/X509Anchors d

Here's what the flags mean:
i = import
k=xxx sets the target Keychain to import to
The "d" sets the cert-type to DER - if you have a PEM certificate, just leave the trailing "d" out.

Restart Safari and you're all set.
See "man certtool" for more info.

Posted in: by seiz | Comments (0)
February 16, 2004 Flattr this
Safari Rendering Glitch

Just came across a case where Safari does a bad job rendering a page as expected. I am not sure if this was the same before Safari V 1.2

Assume the following css formatting:
a { text-decoration: underline; padding: 1px;}
a:link { color: #0078F0; }
a:visited { color: #0078F0; }
a:hover { color: #fff; background-color: #0078F0; text-decoration: none; }
a img {
border: none;
}

Then a page with content similar to this:

<a href="#">Link Title<br />
<img width="100" src="image.jpg" /></a>
<br />
<a href="#">Link Title<br />
<img width="100" src="image.jpg" /></a>
<br />

With this, Safari will apply the background color of the a:hover style also to the image which is inline the <a> tag. You'll notice the background being applied to the right and bottom of the image which looks real ugly.

IE5 Mac renders this much better. See below:

Safari IE 5

Update: this seems to have been more a case of Safari not going into Quirks-Mode on my testcase and thus displaying the page as it did. The FIX for this is easy. Use: "display: block;" for the image tag (has side effects often unwanted) in your css or style="background-color:transparent; inline the a tag.
Posted in: by seiz | Comments (3)
December 12, 2003 Flattr this
Still missing in Safari

So Safari has undergone lots of fixes.

But what's still missing is Content Type multipart/x-mixed-replace.

We really need that. Will we ever get it?

Posted in: by seiz | Comments (0)
November 03, 2003 Flattr this
CGVirusscan minor Update

The CGVirusscan package has been updated. Due to the change to Perl 5.8 in Mac OS X 10.3, the updatevirex.pl script didn't work anymore.

The updated package contains a fixed version of updatevirex.pl which should run fine on Mac OS X 10.3 and lower.

Posted in: , , by seiz | Comments (1)
July 08, 2003 Flattr this
iSight / iChatAV / WWDC 2003
After being back home from WWDC and having the "Reality Distortion Field" slowly fade on me, i thought i had to comment on BBum's blog on iChatAV and the iSight:

Sure it was nice of Steve to give an iSight to each of us. Damn nice piece of hardware for sure. Much appreciated!

However, calling iChatAV "revolutionary" as lots of us Mac aficionados do, is - well - biased.

Being the first WWDC with an "Enterprise" track, here's what an "Enterprise" user like me feels is missing from iChatAV:

  • NetMeeting compatibility since this would also make it compatible with our professional video-conferencing system.
  • One To Many Conferences, since most of the time, a conference is really involving more than 2 persons.
  • Integrated whiteboard and screensharing in order to show others presentations and such.

Now all this isn't new and even exists on the Mac Today (more or less mature). For instance there is a promising looking video-conf App, which indeed is NetMeeting compatible, called ohphoneX.

Even a real interactive conferencing app incl. whiteboard and such is there. Never heard about it before i met the Developers on one of the couches at WWDC: Marratech.

To sum up: iChatAV is a nice start and i enjoy being able to chat with my Girlfriend here in Germany while attending WWDCs, but there's potential for much, much more...

Posted in: , , by seiz | Comments (3)
June 17, 2003 Flattr this
CGVirusscan 1.1

Since it seems John Ray isn't updating CGvirusscan anymore, i finally took the time to do some needed updates to it myself. I do hope that is OK with him.

So here it is.

Changes:
  • Got rid of munpack as it often crashes.
  • Updated it to support CommuniGate's EXT Filter API 2, so you can decide if poisoned mails get bounced or silently discarded.
  • Tweaked a few other bits and pieces and cleaned forking.
  • Added a simple installation script.

THIS Release does NOT contain a threaded version anymore because i am too lazy to maintain two versions and i figured no one has a threaded perl version on osx anyway...

To adjust if virusscan boundes or discards poisoned mails, edit virusscan-fork.pl with BBedit or Pico and modify LINE 16 to:

$bounces=0
(to DELETE)

$bounces=1
(to BOUNCE)

Since i updated the EXT Filter support, i am NOT SURE if this will run on CGP before 4.X Versions. I could only test it on a 4.0.6 Version.

How to install:
Download the Archive from: here

Open a Terminal Window (using Terminal.app).

Assuming you downloaded this archive to your DESKTOP, Type:
    cd ~/Desktop/
    tar -xzf cgvirusscan.tar.gz
    cd cgvirusscan

    READ the README File!!!!
    (more " README")
Feedback welcome via Comments!

Posted in: , by seiz | Comments (16)
June 07, 2003 Flattr this
That darn Finder
While reading Daring Fireball: Noted, i just remembered the most annoying Finder Bug i came across: In the Finder, navigate to any folder and switch to List-View (the MS Explorer like view), then:
  • Hit Apple-Shift-N to create a new folder
  • Click on that new folder to select it
  • Hit Apple-Shift-N to create yet another new subfolder in the folder just created
  • Watch how that new subfolder seems to be highlited/selected in the finder
  • Hit Apple-Backspace to delete the selected item
Surprise! You just deleted the parent Folder, not the Subfolder as anyone with a little brain might have thought.

darnedfinderbug.gif

This seems seriously broken to me, and i can't tell you how often i already deleted my whole "Documents" folder because of this rather annoying incosistency.

Posted in: by seiz | Comments (1)
Not so new at all

O'Reilly Network: New iSync Brings New Compatibility [June 07, 2003]:

Jason Deraleau writes:

But, while the new iSync might lack the ability to sync files, it does (finally) include some conflict resolving features. If entries on your various devices conflict, you are presented with a small window describing the conflict and allowing you to choose how you want to resolve it (i.e. which device takes precedence). You can also check a box to have all conflicts with the same devices involved be resolved in the same manner.

This is not new at all to me, i am quite sure, this feature has already been arround for quite some time.

However i agree 100% with him on his feature request about syncing files. I'd like to see this implemented by using .mac to ONLY store file-metadata and not actual files (as in Backup) and based on that metadata sync files from different macs.

In OS 9 we already had a similar feature. There was a Controlpanel (forgot the name) which let you sync files across harddisks or shares. It worked quite well and i do miss it a lot. Especially since i have various desktops and a AluBook which i'd really like to automatically keep in sync with the some files/folders from the desktops.

Posted in: by seiz | Comments (0)
June 04, 2003 Flattr this
Safari and Content-Type: multipart/x-mixed-replace

Update: 2005-11-15
Yikes! The WebKit Team just added multipart/x-mixed-replace. Thank you very much!

Surfin' Safari asks and i respond:


Random fun question. If you had to pick a W3C technology to implement next in WebCore, which one would you choose? Justify your answer. ;)

(1) XSLT
(2) XForms
(3) SVG
(4) MathML
(5) CSS3
(6) XHTML2
(7) Content-Type: multipart/x-mixed-replace


I vote for support of Content-Type: multipart/x-mixed-replace, something really old fasion but nonetheless handy. First of all, because this is such a great feature to have a server PUSH data out to a client. I often use this when writing CGIs which have long output, so i can push and display line by line to the browser and the person browsing actually immediately gets response (line by line) without having to wait for the cgi to finish its work...

Posted in: by seiz | Comments (7)
April 18, 2003 Flattr this
Safari Beta 2 is now available...

Ken Berskin of Apple writes:

Safari Beta 2 is now available and looks like the new features have been really well received. If you haven't tried it out yet, be sure to check out the new tabbed browsing and autofill forms features. These were without question, the top two requests that we heard from the very enthusiastic Safari community.

[Apple Ken Bereskin's Radio Weblog]

I really like the "Autofill" function especially for Logins/Passwords on variouis sites, i only wonder, why these Passwords aren't stored in the Keychain? At least to me it seems they aren't. On the other hand, safari stores username/password for regular HTTP-REALM authentication in the Keychain.


Go figure (well, it's a Beta after all).

Posted in: by seiz | Comments (0)
February 09, 2003 Flattr this
Switch

Heise just reported that Pixar is switching away from its Sun servers.

Surprisingly they aren't switching to Mac OS X or XServes but to some Intel based bladeservers from Rackspace.

I'd really like to know how Steve will justify this move ;-)

[heise online news]

Posted in: by seiz | Comments (2)
September 28, 2002 Flattr this
iSync BETA available
Just a heads up. Since i have written a little perl script which frequently checks the Apple Site, i got an early Notification SMS to my GSM-Phone that the iSync Beta is now online (that's what i love about UNIX - being able to do scripts like that):
here

Enjoy

Posted in: by seiz | Comments (1)
September 11, 2002 Flattr this
iCal and Entourage

[UPDATE 2005-08] The Text below is rather old. This method doesn't work anymore with recent versions of iCal!!! It may give you a startign point however.

Apple released iCal on Sept. 10. A great little piece of software. The only lack for me was, that iCal always wanted to use Mail.app to send out Calendar invitations and such.
Since this happens through AppleScript, it was easy for me to fix. Here's what you need to do in order to have iCal use Entourage instead of AppleScript:

Download these AppleScripts
DON'T use Stuffit to expand the archive because Stuffit can't handle long filenames. You have to expand the archive with some easy commands in a Terminal-Window. If you downloaded iCaltourage.tar to your desktop, simply open Terminal.app and type:

     cd Desktop
     tar -xf iCaltourage.tar
This will unpack 3 AppleScripts into a Folder named iCaltourage.

In the Finder, locate the iCal Application. Control-Click on the Application Icon and select "Show Package Contents" from the Context-Menu.
Navigate to: Contents->Resources AND just drop the 3 AppleScripts you downloaded into thie Resources Folder to replace similary named items.

Done. Thanks to AppleScript!

Posted in: by seiz | Comments (15)
August 26, 2002 Flattr this
Jaguar SHELL-initialisation: getting back the bells and whistles
For whatever reason, Apple decided to ship Jaguar with a tcsh shell without preconfigured aliases and such as it used to be with pre-jagwire versions. The engineers figured that the average user would be clever enought to do this by himself - which i doubt.
If you want to get back the pre 10.2 behaviour so all users automatically get a shell enviroment preconfigured with aliases and so on, there's a simple fix:

First let's back up:
mv /etc/csh.cshrc /etc/csh.cshrc.apple
mv /etc/csh.login /etc/csh.login.apple
mv /etc/csh.logout /etc/csh.logout.apple

Then just type these three commands in Terminal.app and you're all set:
echo "source /usr/share/tcsh/examples/rc" > /etc/csh.cshrc
echo "source /usr/share/tcsh/examples/login" > /etc/csh.login
echo "source /usr/share/tcsh/examples/logout" > /etc/csh.logout

As soon as you open a new Terminal Window, you have all your old settings back - as for instance the 'll' alias...

Posted in: by seiz | Comments (1)
July 15, 2002 Flattr this
Mac OS X FAQ: Searching for files using the command line
Chris Kurylak recently asked:
    "I was wondering if you could tell me how can i search for files using the command line? It drives me crazy that the gui does not show everything on the system unless you first know where to look."
Well, this is an easy one: there's the find command.

If you type man find in Terminal.app, it'l show you some help.

Here are some Examples:
find . -name "*test.pl" -print will search for any filename which ends in "test.pl" in the current directory (the period "." after the find command stands for the current working directory) and all it's subdirectories.

find / -name "*test.pl" -print will search for any filename which ends in "test.pl" in the servers root directory (the slash "/" after the find command stands for the root directory - similar to "cd /") and all it's subdirectories.

Let's say you want to find any html file anywhere on your server (incl. any mounted volumes) this would be find / -name "*.html" -print

And to limit this to html files which have been modified longer than 3 days ago, this little voodoo will help:
find / -name "*.html" -mtime +3 -print
Note: funny enough, there is no Creation-Time on UNIX.
There are plenty of tips on the find command available through google.

Posted in: by seiz | Comments (0)