<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Mac-Forums.com - OS X - Darwin and Development</title>
		<link>http://www.mac-forums.com/forums/</link>
		<description>Darwin is the base from which OS X runs. It is a fork of the BSD devloped UNIX operating system</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 02:02:11 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.mac-forums.com/forums/mac_images/images/misc/rss.jpg</url>
			<title>Mac-Forums.com - OS X - Darwin and Development</title>
			<link>http://www.mac-forums.com/forums/</link>
		</image>
		<item>
			<title>Distributed Objects</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=176885&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 19:13:32 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I've given myself a headache trying to figure out how to run this Distributed Objects demo.  I can run it just fine locally on the same machine. 
 
Here's the situation.  I have a Server App that spawns a Client App [with OpenGLView] on a remote machine. 
 
I can do this easy with...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I've given myself a headache trying to figure out how to run this Distributed Objects demo.  I can run it just fine locally on the same machine.<br />
<br />
Here's the situation.  I have a Server App that spawns a Client App [with OpenGLView] on a remote machine.<br />
<br />
I can do this easy with AppleScript.<br />
<br />
The Client App seems to Vend it's OpenGLView window OK:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">clientPort = [[NSSocketPort alloc] initWithTCPPort:SERVER_PORT];<br />
if(clientPort == nil) continue; else NSLog(@&quot;Port OK&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
clientConnection = [NSConnection connectionWithReceivePort:clientPort sendPort:nil];<br />
if(clientConnection == nil) continue; else NSLog(@&quot;Conn OK&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
[[NSSocketPortNameServer sharedInstance] registerPort:clientPort name:@&quot;DOTest3_0&quot;];<br />
<br />
//Vend Object<br />
@try {<br />
[clientConnection setRootObject:object];<br />
NSLog([NSString stringWithFormat:@&quot;Port &#37;d: Vend OK&quot;, (SERVER_PORT + i)]);<br />
return;<br />
} @catch (...) {<br />
NSLog([NSString stringWithFormat:@&quot;Port %d: Vend Next&quot;, (SERVER_PORT + i)]);<br />
}</code><hr />
</div>The Server App finds the Port and Connection, but Raises a TimeOut exception:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// Create temporary Pointer to kGLView Object.<br />
&nbsp; id &lt;NSCoding, kGLViewProtocol&gt; openGLView;<br />
<br />
&nbsp; &nbsp; &nbsp; // Setup Port, Connection, &amp; Proxy<br />
&nbsp; &nbsp; &nbsp; portTest = (NSSocketPort *)[[NSSocketPortNameServer sharedInstance] portForName:@&quot;DOTest3_0&quot; host:@&quot;*&quot;];<br />
&nbsp; &nbsp; &nbsp; if (portTest == nil ) continue ; else NSLog(@&quot;Port OK&quot;);<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; connTest = [NSConnection&nbsp; connectionWithReceivePort:nil sendPort:portTest];<br />
&nbsp; &nbsp; &nbsp; if (connTest == nil ) continue ; else NSLog(@&quot;Conn OK&quot;);<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; openGLView = [[connTest rootProxy] retain];<br />
&nbsp; &nbsp; &nbsp; if (openGLView == nil ) continue ; else NSLog(@&quot;OpenGL OK&quot;);<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; [openGLView drawWithRotation: rotationAngle];<br />
<br />
&nbsp; }</code><hr />
</div>And I can't figure out for the life of Me WHY.<br />
<br />
I get in the Console of the Client PC:<br />
&quot;Port OK&quot;<br />
&quot;Conn OK&quot;<br />
&quot;Port 8081: Vend OK&quot;<br />
<br />
I get in the Console of the Server PC:<br />
&quot;Port OK&quot;<br />
&quot;Conn OK&quot;<br />
11/18/09 2:05:36 PM DOTest3[15278] [NSPortCoder sendBeforeTime:sendReplyPort:] timed out (10280263936.092180 280263936.092642) 1 <br />
<br />
Even if the TimeOuts are both set to 60 seconds.<br />
<br />
Help!<br />
<br />
-Stephen<br />
<br />
---<br />
Server: MacMini OS X 10.5<br />
Client: MacPro OS X 10.6<br />
Remote Login, Management, etc. are all enabled.</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>sfurlani</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=176885</guid>
		</item>
		<item>
			<title>Lazarus + OSX 10.6 ??</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=176056&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 15:20:47 GMT</pubDate>
			<description>Is anybody running Lazarus on OSX 10.6? 
 
When I upgraded to 10.6 the GNU debugger in Lazarus stopped working.  Lazarus forum has been little help.</description>
			<content:encoded><![CDATA[<div>Is anybody running Lazarus on OSX 10.6?<br />
<br />
When I upgraded to 10.6 the GNU debugger in Lazarus stopped working.  Lazarus forum has been little help.</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>mbohn</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=176056</guid>
		</item>
		<item>
			<title>Apple Script</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175852&amp;goto=newpost</link>
			<pubDate>Sat, 14 Nov 2009 02:12:36 GMT</pubDate>
			<description><![CDATA[Hi guys!  Well I'm pretty new at apple script and I was wondering if it would be capable of printing an excel spread sheet and updating it to the current day.  So for example I have an excel spreadsheet with a "payment plan" type thing  for someone who has bought land from me.  I mail them an...]]></description>
			<content:encoded><![CDATA[<div>Hi guys!  Well I'm pretty new at apple script and I was wondering if it would be capable of printing an excel spread sheet and updating it to the current day.  So for example I have an excel spreadsheet with a &quot;payment plan&quot; type thing  for someone who has bought land from me.  I mail them an updated copy of their payment history every month. I have the spread sheet set up so that it show's their payments until it's paid off and I just want it to print to the current month.  Do you know if this can be done and how I should try to do it?</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>cmwarre</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175852</guid>
		</item>
		<item>
			<title><![CDATA[php can't connect to mysql]]></title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175620&amp;goto=newpost</link>
			<pubDate>Thu, 12 Nov 2009 23:43:50 GMT</pubDate>
			<description>Hi 
  
 I have php 5.3.0 installed on my snow leopard mac. mysql 5.1 is installed and running. everything is local. I can log into mysql from the command line but for some reason even tho I am feeding my php scripts the correct login and they used to work they can no longer connect to my local...</description>
			<content:encoded><![CDATA[<div>Hi<br />
 <br />
 I have php 5.3.0 installed on my snow leopard mac. mysql 5.1 is installed and running. everything is local. I can log into mysql from the command line but for some reason even tho I am feeding my php scripts the correct login and they used to work they can no longer connect to my local mysql install.<br />
<br />
 I could use some help troubleshooting this.<br />
<br />
 Specifically this line used to work:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if (!($connection = @ mysql_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;shhhhh&quot;)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; die(&quot;Could not connect&quot;);</code><hr />
</div>now this script jumps right to the die line.<br />
<br />
I'm honestly not sure what changed here.<br />
 :shrug:<br />
help!</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>tdunphy</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175620</guid>
		</item>
		<item>
			<title>Ccode C++ input file</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175546&amp;goto=newpost</link>
			<pubDate>Thu, 12 Nov 2009 15:44:46 GMT</pubDate>
			<description><![CDATA[Question why is this not working? 
 
//*********************************************** 
// Input 
//  
// Noll Roberts 2009-11-12 
/* 
*/ 
//************************************************ 
#include <iostream>  // endl  cout]]></description>
			<content:encoded><![CDATA[<div>Question why is this not working?<br />
<br />
//***********************************************<br />
// Input<br />
// <br />
// Noll Roberts 2009-11-12<br />
/*<br />
*/<br />
//************************************************<br />
#include &lt;iostream&gt;  // endl  cout<br />
#include &lt;iomanip&gt;   // setw<br />
#include &lt;fstream&gt;   // <br />
#include &lt;string&gt;    // string variables<br />
using namespace std;<br />
<br />
int main (int argc, char * const argv[]) {<br />
//Declarations<br />
  float a;<br />
  float b;<br />
  float c;<br />
	<br />
// Input<br />
  ifstream inData;<br />
  inData.open(&quot;data.dat&quot;);<br />
  if (!inData) <br />
  {<br />
    cout &lt;&lt; &quot;Can't open input file.&quot; &lt;&lt; endl;<br />
	return 1;<br />
  }<br />
<br />
   inData &gt;&gt; a;<br />
   inData &gt;&gt; b;<br />
   inData &gt;&gt; c;<br />
<br />
    return 0;<br />
}<br />
<br />
data file <br />
19.5 18.7 19<br />
<br />
I added the data file to my Xcode project<br />
<br />
error message<br />
/Users/nollroberts/Xcode/indata/build/Release/indata ; exit;<br />
noll-roberts-imac-2:~ nollroberts$ /Users/nollroberts/Xcode/indata/build/Release/indata ; exit;<br />
Can't open input file.<br />
logout<br />
<br />
[Process completed]<br />
<br />
<br />
Question <br />
Why is this not working?</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>noll</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175546</guid>
		</item>
		<item>
			<title>Software beta testers needed.</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175154&amp;goto=newpost</link>
			<pubDate>Tue, 10 Nov 2009 14:40:05 GMT</pubDate>
			<description><![CDATA[From this thread (http://www.mac-forums.com/forums/anything-goes/163837-modified-cars.html) I know a lot of you are motorheads and I could use some help from 3 or 4 of you. 
 
For the past couple of years I've been developing an engine simulation code.  It's at the point where some feedback from...]]></description>
			<content:encoded><![CDATA[<div>From <a href="!163837!http://www.mac-forums.com/forums/anything-goes/163837-modified-cars.html" target="_blank">this thread</a> I know a lot of you are motorheads and I could use some help from 3 or 4 of you.<br />
<br />
For the past couple of years I've been developing an engine simulation code.  It's at the point where some feedback from users would be a big help.  <br />
<br />
Basically, if you've ever wanted to design an engine on paper and then find out how well it performed, this project may be of interest to you.<br />
<br />
It would be best if you had a good working understanding of engine components and performance parameters, but you don't necessarily need to be an engineer.<br />
<br />
If you are interested, drop me a PM.</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>mbohn</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175154</guid>
		</item>
		<item>
			<title>Shell Script in GeekTool trouble ...</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175146&amp;goto=newpost</link>
			<pubDate>Tue, 10 Nov 2009 10:57:32 GMT</pubDate>
			<description>Hello all. 
 
Am a noob to this writing scripts and what not. I am ATM using GeekTool to make my active desktop and am not doing to bad.  
I have been finding scripts and tweaking and playing with them to suit myself and very slowly learning the code. 
 
My problem is the script i have for my...</description>
			<content:encoded><![CDATA[<div>Hello all.<br />
<br />
Am a noob to this writing scripts and what not. I am ATM using GeekTool to make my active desktop and am not doing to bad. <br />
I have been finding scripts and tweaking and playing with them to suit myself and very slowly learning the code.<br />
<br />
My problem is the script i have for my weather is from a site on other side of the world and hasnt up to date info for where i live.<br />
<br />
I havnt found away to make it run with my weather site i use here in Australia.<br />
The URL other[s/ or most of the scripts are for <a href="http://www.wunderground.com" target="_blank">www.wunderland.com</a> and the code is <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">curl http://m.wund.com/global/stations/94975.html|sed -n '21p' | sed -e 's/&lt;span class=&quot;nowrap&quot;&gt;&lt;b&gt;//g' | sed -e 's/&lt;\/b.*//g'</code><hr />
</div>And no i havnt had any joy with the code for the use of <font face="Arial Black">lynx</font> so have to use curl.<br />
<br />
I am wanting a script so i can use <a href="http://www.eldersweather.com.au/tas/lower-derwent/hobart?fc=9329" target="_blank">www.eldersweather.com</a><br />
<br />
I have played with the above mentioned and for the life of me cant do it. <br />
<br />
When i use Elders in the script i get &quot; &lt;: Code used in public domain&quot; or something to that effect.<br />
Can anyone point me in the right direction ?? Would be greatly appreciated.<br />
<br />
ANd i really hope this all makes sense BC as i said before im so NEW to this code thing..<br />
<br />
Thanks in advance people :)</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>tattooedmac</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175146</guid>
		</item>
		<item>
			<title>iPhone Developer Program on PowerPC G4</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175071&amp;goto=newpost</link>
			<pubDate>Mon, 09 Nov 2009 20:47:13 GMT</pubDate>
			<description>Hi, 
I have a mac mini powerpc g4. I am desperate to sign up for the iphone developer program with apple but it states that i need an intel based mac. can i still use it with a powerpc g4? any help appreciated</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have a mac mini powerpc g4. I am desperate to sign up for the iphone developer program with apple but it states that i need an intel based mac. can i still use it with a powerpc g4? any help appreciated</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>bnjmnmcfc</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175071</guid>
		</item>
		<item>
			<title>How to initialize window of my application?</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=175009&amp;goto=newpost</link>
			<pubDate>Mon, 09 Nov 2009 09:46:28 GMT</pubDate>
			<description><![CDATA[Hello 
 
I'm a newbie in a cocoa development. I'm trying to write my first application. 
My application window have one Button, one NSComboBox and one NSTextField. 
 
I define action to my controller class from button. 
Also defines outlets from controller class to NSComboBox and NSTextField. 
...]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I'm a newbie in a cocoa development. I'm trying to write my first application.<br />
My application window have one Button, one NSComboBox and one NSTextField.<br />
<br />
I define action to my controller class from button.<br />
Also defines outlets from controller class to NSComboBox and NSTextField.<br />
<br />
But.... I don't understand - how write initial values to combo and textfield when my application startups? I wrote method 'init'. But it isn't helps to me.<br />
<br />
At this moment I have following behavior of my app:<br />
<br />
1. Init of controller class (there I'm trying to initialize outlets fields)<br />
2. applicationDidFinishLaunching from ...AppDelegate.m<br />
3. EventLoop of my Application.<br />
<br />
I need some tips to resolving my problem....</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>mrTuborg</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=175009</guid>
		</item>
		<item>
			<title><![CDATA[OpenGL compatibility & Snow Leopard]]></title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174913&amp;goto=newpost</link>
			<pubDate>Sun, 08 Nov 2009 04:36:28 GMT</pubDate>
			<description><![CDATA[A bit over two years ago I created a screen saver applet which uses OpenGL (called Mani X).  It currently runs under OS X 10.4 and 10.5, but not, I'm told, under Snow Leopard. I was planning to borrow or lease a newer Mac laptop for a few weeks and try a recompile under 10.6 to see if that would...]]></description>
			<content:encoded><![CDATA[<div>A bit over two years ago I created a screen saver applet which uses OpenGL (called Mani X).  It currently runs under OS X 10.4 and 10.5, but not, I'm told, under Snow Leopard. I was planning to borrow or lease a newer Mac laptop for a few weeks and try a recompile under 10.6 to see if that would fix the problem.  But I also understand that there have been some compatibility issues with OpenGL under Snow Leopard, and I'm wondering whether a future update to Snow Leopard may well fix the problem for me.  If there is anyone here who can advise me, I'd love to hear from you.  Thanks in advance for your kind help.<br />
In gratitude,<br />
Bodhi :Sleeping:</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>bodhirayo</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174913</guid>
		</item>
		<item>
			<title>Use Framework... Declared in...</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174884&amp;goto=newpost</link>
			<pubDate>Sat, 07 Nov 2009 23:35:30 GMT</pubDate>
			<description><![CDATA[I'm reading the Mac OS X Reference Library and find 
Framework	 aFramework -- specifically Accelerate/vecLib 
Declared in aHeader -- specifically vDSP.h 
 
The Overview says, "This document describes the C API...".  So I created a new project on Xcode (2.5) on Tiger (10.4.11) Intel. 
 
File | New...]]></description>
			<content:encoded><![CDATA[<div>I'm reading the Mac OS X Reference Library and find<br />
Framework	 aFramework -- specifically Accelerate/vecLib<br />
Declared in aHeader -- specifically vDSP.h<br />
<br />
The Overview says, &quot;This document describes the C API...&quot;.  So I created a new project on Xcode (2.5) on Tiger (10.4.11) Intel.<br />
<br />
File | New Project | Command Line Utility | Standard Tool<br />
&quot;This project builds a command-line tool written in C.&quot;<br />
<br />
I spotlight &quot;Accelerate&quot; and found /System/Library/Frameworks/Accelerate.framework<br />
<br />
So I Project | Add to Project... this Accelerate.framework.  I also checked &quot;Copy items into destination group's folder (if needed)&quot;.<br />
<br />
I then tried to declare any of the data types in this function FFTSetupD vDSP_create_fftsetupD (vDSP_Length log2n, FFTRadix radix);<br />
<br />
such as<br />
vDSP_Length log2n;<br />
<br />
but get 'parse error before log2n' as if it doesn't know about this data type?<br />
<br />
I also tried #include &lt;vDSP.h&gt; which I think would be redundant after adding the framework.<br />
<br />
What do I need to do to use vDSP_create_fftsetupD and related functions and data types?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>nub4evr</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174884</guid>
		</item>
		<item>
			<title>Problem with launching x11 applications</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174883&amp;goto=newpost</link>
			<pubDate>Sat, 07 Nov 2009 23:16:34 GMT</pubDate>
			<description><![CDATA[Let me try to explain my problem as best as I can. Please bear with me and let me know what other information I need to provide to troubleshoot this. 
 
Machine description: 
Macbook 13.3", Mac OSX 10.5.8, Darwin Kernel Version 9.8.0 
 
Problem description: 
It all started when darwinport failed to...]]></description>
			<content:encoded><![CDATA[<div>Let me try to explain my problem as best as I can. Please bear with me and let me know what other information I need to provide to troubleshoot this.<br />
<br />
Machine description:<br />
Macbook 13.3&quot;, Mac OSX 10.5.8, Darwin Kernel Version 9.8.0<br />
<br />
Problem description:<br />
It all started when darwinport failed to install kdegames4 (and my efforts thereafter to get that installed!). I can no longer launch any x11 applications --e.g., xterm, xpdf, xdvi, inkscape, molden, gnuplot with x11. After the problem had started, if  I tried to start any of these, the X icon would begin bouncing in the dock and go away just to come back a few seconds later --- this would keep going on and on --- even if I tried to kill them by finding them in the terminal. Whenever I moused-over the X icon on the dock it would just freeze everything --- and I had to kill the dock to get my computer responding again (luckily I could use spotlight and terminal to get this done). Before this problem, everything used to work flawlessly.<br />
<br />
Disgusted, I installed the Xquartz from <br />
<a href="http://xquartz.macosforge.org/trac/wiki" target="_blank">XQuartz</a><br />
but that did not help me much. The same problem comes back while launching (by directly clicking or from terminal) any x11 application, only this time it does not cause everything to freeze up when I mouse over the bouncing X icon.<br />
<br />
Funny that I can access x11 applications from another account on the same machine. This is why I believe that the X11 installation on my machine is OK and it's an OSX specific problem caused by messing up some config files on the problematic account.<br />
<br />
I didn't find any reasonable differences between the settings in the two accounts -- except for the fact that the problematic account is my main account and it has lots of other applications installed. Grrrrrrrrrr!<br />
<br />
<br />
Now it's time for some output:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">18:05:57 [438]$ echo $DISPLAY<br />
/tmp/launch-Cy3Z7G/:0</code><hr />
</div><br />
Result of running startx:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">font_cache: Updating FC cache<br />
xauth:&nbsp; creating new authority file /Users/kousik/.serverauth.13609<br />
xauth: (argv):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;list&quot; command<br />
xauth: (stdin):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;add&quot; command<br />
<br />
font_cache: Done<br />
<br />
waiting for X server to begin accepting connections .<br />
..<br />
..</code><hr />
</div>Then it puts dots for a while and at the end says:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">..Quitting Xquartz...<br />
Xquartz: start_x11_server: (ipc/send) invalid destination port<br />
<br />
giving up.<br />
/usr/X11/bin/xinit:&nbsp; Connection refused (errno 61):&nbsp; unable to connect to X server<br />
/usr/X11/bin/xinit:&nbsp; No such process (errno 3):&nbsp; unexpected signal 2.<br />
xauth: (argv):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;remove&quot; command</code><hr />
</div><br />
Trying it again gives:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">font_cache: Scanning user font directories to generate X11 font caches<br />
font_cache: Updating FC cache<br />
xauth:&nbsp; creating new authority file /Users/kousik/.serverauth.20610<br />
xauth: (argv):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;list&quot; command<br />
xauth: (stdin):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;add&quot; command<br />
<br />
Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11<br />
Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly<br />
/opt/local/bin:/opt/local/sbin:/Users/kousik/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin<br />
X11.app: main(): argc=2<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[1] = --listenonly<br />
Waiting for startup parameters via Mach IPC.<br />
X11.app: do_start_x11_server(): argc=6<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[0] = /usr/X11/bin/X<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[1] = :1<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[2] = -nolisten<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[3] = tcp<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[4] = -auth<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[5] = /Users/kousik/.serverauth.20610<br />
<br />
Fatal server error:<br />
Server is already active for display 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; If this server is no longer running, remove /tmp/.X1-lock<br />
&nbsp; &nbsp; &nbsp; &nbsp; and start again.<br />
<br />
&nbsp;  AbortDDX<br />
Quitting Xquartz...<br />
Xquartz: start_x11_server: (ipc/mig) server died<br />
font_cache: Done<br />
giving up.<br />
/usr/X11/bin/xinit:&nbsp; Connection refused (errno 61):&nbsp; unable to connect to X server<br />
/usr/X11/bin/xinit:&nbsp; No such process (errno 3):&nbsp; Server error.<br />
xauth: (argv):1:&nbsp; bad display name &quot;kousiks-apple:1&quot; in &quot;remove&quot; command</code><hr />
</div>Looks like it's setting the DISPLAY to localhost:1 (&quot;kousiks-apple&quot; is the hostname). But I don't see where and how since the output of &quot;echo $DISPLAY&quot; is the same as above!<br />
<br />
It spits out the PATH variable at the top because I put &quot;echo $PATH&quot; in the script /Applications/Utilities/X11.app/Contents/MacOS/X11.<br />
<br />
I followed the instructions on this page<br />
<a href="http://homepage.mac.com/sao1/X11/index.html" target="_blank">Leopard and X11</a><br />
but that too did not help me.<br />
<br />
<br />
Output of running xinit<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11<br />
Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly<br />
/opt/local/bin:/opt/local/sbin:/Users/kousik/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin<br />
X11.app: main(): argc=2<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[1] = --listenonly<br />
Waiting for startup parameters via Mach IPC.<br />
X11.app: do_start_x11_server(): argc=2<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[0] = X<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv[1] = :0<br />
Xquartz starting:<br />
X.Org X Server 1.5.3-apple14<br />
Build Date: 20090812<br />
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base<br />
(EE) XKB: No components provided for device Virtual core keyboard<br />
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base<br />
(EE) XKB: No components provided for device keyboard<br />
<br />
waiting for X server to shut down</code><hr />
</div>I installed the package xkeyboard-config-1.7 to fix the problem with xkb as told somewhere else -- without any visible effect.<br />
<br />
<br />
In the following link you can find a snapshot of my ~/Library/Prefereces/org.x.X11.plist file<br />
<a href="http://picasaweb.google.com/kousikonline/Technical#5401516121416768722" target="_blank">Picasa Web Albums - kousik - Technical</a><br />
<br />
Please please pleeeeease............. help me solve this problem!</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>kousik</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174883</guid>
		</item>
		<item>
			<title>GCC creates console app</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174501&amp;goto=newpost</link>
			<pubDate>Wed, 04 Nov 2009 17:34:18 GMT</pubDate>
			<description><![CDATA[Hey folks, 
I'm using GCC (specifically G++) to compile&link a simple project using Carbon. The problem is, it always creates a console app -> when run from finder it shows an additional console and does not show itself in the list of apps. What should I do?]]></description>
			<content:encoded><![CDATA[<div>Hey folks,<br />
I'm using GCC (specifically G++) to compile&amp;link a simple project using Carbon. The problem is, it always creates a console app -&gt; when run from finder it shows an additional console and does not show itself in the list of apps. What should I do?</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>meldaproduction</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174501</guid>
		</item>
		<item>
			<title>Object-C Newbie Question</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174448&amp;goto=newpost</link>
			<pubDate>Wed, 04 Nov 2009 08:02:40 GMT</pubDate>
			<description><![CDATA[Edit: The "Object-C" was a typo, sorry...objective :) 
 
Hello guys, I just got this great book (Programming in Objective-C 2.0) and I'm already working on the typical "hello world" program. I typed in the code, debugging ended normally on Xcode but I didn't get anything on screen. Here's the code:...]]></description>
			<content:encoded><![CDATA[<div>Edit: The &quot;Object-C&quot; was a typo, sorry...objective :)<br />
<br />
Hello guys, I just got this great book (Programming in Objective-C 2.0) and I'm already working on the typical &quot;hello world&quot; program. I typed in the code, debugging ended normally on Xcode but I didn't get anything on screen. Here's the code: <br />
<br />
#import &lt;Foundation/Foundation.h&gt;<br />
<br />
int main (int argc, const char * argv[]) {<br />
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];<br />
<br />
    // insert code here...<br />
    NSLog(@&quot;Hello World&quot;);<br />
	NSLog(@&quot;Hello World 2&quot;);<br />
    [pool drain];<br />
    return 0;<br />
}<br />
<br />
I pressed Build and Go and I got nothing. Was I supposed to get something on the terminal or anything?? Thanks!</div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>iMarco</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174448</guid>
		</item>
		<item>
			<title>AppleScript memory leak, then crash</title>
			<link>http://www.mac-forums.com/forums/showthread.php?t=174381&amp;goto=newpost</link>
			<pubDate>Tue, 03 Nov 2009 20:28:47 GMT</pubDate>
			<description><![CDATA[Hi everybody. I'm new to AppleScript, and I'm having a serious problem with my first real script. 
 
I work for a college radio station and I'm writing this script to run 24x7 in the background and record our DJ's shows using Audio Hijack Pro. It works fine for a few hours, sometimes a few days,...]]></description>
			<content:encoded><![CDATA[<div>Hi everybody. I'm new to AppleScript, and I'm having a serious problem with my first real script.<br />
<br />
I work for a college radio station and I'm writing this script to run 24x7 in the background and record our DJ's shows using Audio Hijack Pro. It works fine for a few hours, sometimes a few days, but Script Editor's memory usage grows to multiple Gigabytes and it eventually crashes. Ideally, this script would run continuously for the entire semester (about 5 months).<br />
<br />
I've uploaded the script at this link so people can see it. By the way, feel free to copy any or all of the code if it's useful to you.<br />
<a href="http://public.me.com/ix/ebalsley/Recording%20Script.scpt" target="_blank">http://public.me.com/ix/ebalsley/Rec...%20Script.scpt</a><br />
If anyone can help me I would really appreciate it!<br />
<br />
Elliott Balsley<br />
<img src="http://public.me.com/ix/ebalsley/helpemailsig.png" border="0" alt="" /></div>

]]></content:encoded>
			<category domain="http://www.mac-forums.com/forums/forumdisplay.php?f=20">OS X - Darwin and Development</category>
			<dc:creator>spookybathtub</dc:creator>
			<guid isPermaLink="true">http://www.mac-forums.com/forums/showthread.php?t=174381</guid>
		</item>
	</channel>
</rss>
