Wednesday, April 30, 2008

FrameAway 3.0

A preview on how FrameAway version 3.0 looks at this point:

Wednesday, April 23, 2008

LoudHush weird message when auto updating?

If you're seeing a message such as the one below when auto-updating LoudHush, the most likely cause is that you have renamed the LoudHush application.


The update archive didn't contain an application with the name I was expecting (/var/tmp/tmp.0.xz9xho/LoudHush 2.app). Remember, the updated app's file name must be identical to the running app's filename!

Wednesday, April 16, 2008

UDP traffic over 3G modem cut after 2 minutes?

On Leopard 10.5.2, UDP traffic over the Vodafone 3G Modem is cut after 2-3 minutes.
I'm not sure what's to blame, symptoms are

  • ping showing a message I've never seen before



  • some-macbook-pro:~ u$ ping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1): 56 data bytes
    ping: sendto: No buffer space available


  • and a message in the system.log


  • dlil_output: output error retval = 37



The solution that works in my case is to stop the Cisco VPN client:


sudo SystemStarter stop CiscoVPN


And this is the thread over at Apple Discussions that discusses the problem and possible solutions.

Thursday, April 10, 2008

MacBook's life expectancy decreasing steadily

Google shows 91 results when searching for "disk0s2: 0xe0030005 (UNDEFINED)"

Make this the 92nd:


Apr 10 09:05:15 cristi kernel[0]: disk0s2: 0xe0030005 (UNDEFINED).
Apr 10 09:05:15 cristi kernel[0]:
Apr 10 09:05:24: --- last message repeated 1 time ---

Tuesday, April 01, 2008

cgdisplayfade

The code snippet below fades the display to a solid blue color and back

cd:~ diciu$ cat testfade.c
#include <stdio.h>
#include <ApplicationServices/ApplicationServices.h>

int main()
{
fprintf(stdout, "Fading to blue...\n");

CGDisplayFadeReservationToken token;
CGError err = CGAcquireDisplayFadeReservation(10, &token);
CGDisplayFade(token, 2.0, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, .1, .3, 1.0, true);
CGDisplayFade(token, 2.0, kCGDisplayBlendSolidColor,kCGDisplayBlendNormal, .1, .3, 1.0, true);
err = CGReleaseDisplayFadeReservation(token);
}
cd:~ diciu$gcc -framework ApplicationServices testfade.c
cd:~ diciu$ ./a.out
Fading to blue...