Use the following to open apps from the command line in osX:
open /path/to/your.app
From the Desk of Roger C. Clermont
Use the following to open apps from the command line in osX:
open /path/to/your.app
The typical default install of MySQL server only permits connections from localhost (127.0.0.1); this is presumably for reasons of security. While this is certainly secure, in some cases it is undesirable. This post explains how to permit network access to a MySQL server from remote clients.
Locate the my.cnf file, which is the master configuration file for MySQL server. (On a Ubuntu system this file may be located in /etc/mysql.)
Open this file in your favorite editor and look for the following entry:
bind-address = 127.0.0.1
bind-address = 0.0.0.0
sudo /etc/init.d/mysql restart
netstat -anp | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN -
The preprocessor in Microsoft VisualStudio 2003 (VC++ 7.1) does not support variable argument lists in macros; instead it spews syntax errors when compiling. However, there is a way to get around this limitation and indeed gain this ability.
In a project I'm working on, we use macros to construct portions of our logging system. A typical declaration looks as such:#define LOG_TRACE(...) log_routine(__FILE__, __LINE__, __VA_ARGS__)
However this fails to compile on VisualStudio.Net 2003, because as stated before, its preprocessor does not support variable argument lists.
A workaround is to instead use a class to handle the semantics of the variable argument list; observe:class tracing_output_va
{
private:
const char* m_file;
int m_line;
public:
tracing_output_va(
const char* p_File,
const int p_Line) :
m_file( p_File ),
m_line( p_Line )
{
}
void operator()( const char* p_Format, ... )
{
va_list marker ;
va_start( marker, p_Format ) ;
LoggingOutVa(
m_file,
m_line,
p_Format,
marker ) ;
va_end( marker );
}
};
And then redefine the macro as such:#define LOG_TRACE_APPLIB (tracing_output_va(__FILE__, __LINE__) )
This will indeed compile and perform as expected in VC++ 7.1
The elegance to this solution is that one need only modify the declaration of this macro, and that existing calls to this macro need not change.
For what it's worth the routine LoggingOutVa( )
wraps the actual magic of formatting and file output.
Cite: http://www.codeproject.com/KB/debug/location_trace.aspx
VMWare Fusion allows one to use folders on the OSX filesystem from within the guest OS via Shared Folders.
This is useful if you need to access files from both the host OS (OSX) or the guest OS running in VMWare Fusion.
However I have found limitations with this arrangement when the guest OS is a Linux-based system -- it seems that VMWare's driver for Shared Folders does not support all of the linux filesystem operations (most specifically hard links).
Observe (/mnt/hgfs/wa points to a shared folder residing on the OSX filesystem) :
clermontr@synergy:/mnt/hgfs/wa/test$ touch tree
clermontr@synergy:/mnt/hgfs/wa/test$ ln tree shrub
ln: creating hard link `shrub' to `tree': Operation not permitted
clermontr@synergy:/mnt/hgfs/wa/test$ ln -s tree shrub
clermontr@synergy:/mnt/hgfs/wa/test$ ll
total 1
lrwxr-xr-x 1 clermontr ccm_root 4 2008-05-15 14:17 shrub -> tree
-rw-r--r-- 1 clermontr ccm_root 0 2008-05-15 14:16 tree
clermontr@synergy:/mnt/hgfs/wa/test$
If when compiling MySQL5 you get an error similar to the following:
sed: can't read y.tab.c: No such file or directory
make[2]: *** [sql_yacc.cc] Error 2
sudo apt-get install bison
make distclean; ./configure; make
This post explains how to connect to a Leopard Remote Desktop session from a Ubuntu client machine using VNC. It is assumed that Remote Desktop is enabled on their Mac (you should also read this regarding a password on your Leopard Remote Desktop server).
The Leopard Remote Desktop speaks a flavor of vnc, albeit one which common vnc clients seem to have difficulty with. I tried both Ubuntu's default vnc client in addition to a realVNC client, both without success. However I did find that the tightvncviewer successfully connects.
To get xtightvncviewer, install this package:
sudo apt-get install xtightvncviewer
xtightvncviewer ip.of.your.mac
Quicktime doesn't seem to work by default in Firefox on Ubuntu.
To get it working, you'll need to check/install plugins which Firefox uses to play video.
First, remove any other firefox plugins related to video; on my system these included:
sudo apt-get remove mozilla-mplayer(I had previously installed these in attempts to get Quicktime working.)
sudo apt-get remove mozilla-plugin-vlc
sudo apt-get install gstreamer0.10-gl