Re: Apache Module

2009-11-30 Thread Jens Alfke
On Nov 30, 2009, at 8:48 AM, Mr. Gecko wrote: > I decided to write it like PHP CGI, it's working fine for me, and I'm able to > get all the information I need from the server by NSFileHandle and > NSProcessInfo. Cool. If you find that performance is a problem, you should look into using SCGI.

Re: Apache Module

2009-11-30 Thread Mr. Gecko
I decided to write it like PHP CGI, it's working fine for me, and I'm able to get all the information I need from the server by NSFileHandle and NSProcessInfo. I did make that example project for an Objective-C module that compiles the module for anyone who needs to write an Objective-C based mo

Re: Apache Module

2009-11-30 Thread Sherm Pendley
On Sat, Nov 28, 2009 at 1:19 PM, Mr. Gecko wrote: > Ok, I know your idea of a CGI Proxy like PHP CGI That's not what I said. Did you read the link I gave you? > On Nov 28, 2009, at 9:32 AM, Sherm Pendley wrote: > >> Keep in mind though, that I posted that nearly five years ago, and >> wrote the

Re: Apache Module

2009-11-28 Thread Mr. Gecko
Ok, I know your idea of a CGI Proxy like PHP CGI and I might try and see how that works. If it works great, I may use it instead of a module, but for now I finish making my first cocoa module at http://mrgeckosmedia.com/mod_example.zip Thanks for the help, Mr. Gecko On Nov 28, 2009, at 9:32 AM,

Re: Apache Module

2009-11-28 Thread Sherm Pendley
On Sat, Nov 28, 2009 at 7:54 AM, Sherm Pendley wrote: > On Fri, Nov 27, 2009 at 6:45 PM, Mr. Gecko wrote: >> Hello, I'm working to write an Apache Module that allows you to make >> websites in Objective-C > > Been there, done that. :-) > > Have a look at the list archives: >

Re: Apache Module

2009-11-28 Thread Sherm Pendley
On Fri, Nov 27, 2009 at 6:45 PM, Mr. Gecko wrote: > Hello, I'm working to write an Apache Module that allows you to make websites > in Objective-C Been there, done that. :-) Have a look at the list archives: sherm-- -- Cocoa

Re: Apache Module

2009-11-28 Thread Graham Cox
On 28/11/2009, at 5:21 PM, Jens Alfke wrote: > like building a machine shop in your garage instead of just going to Home > Depot. I do have a machine shop in my garage, you insensitive clod! --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Apache Module

2009-11-27 Thread Jens Alfke
On Nov 27, 2009, at 10:34 PM, Mr. Gecko wrote: > The reason I'm posting in this list is because I'm trying to write a module > in objective-c that will work with apache and this is a list on objective-c > and I know I wouldn't get much of a reply on the apache lists. The issues involved in thi

Re: Apache Module

2009-11-27 Thread Mr. Gecko
The reason I'm posting in this list is because I'm trying to write a module in objective-c that will work with apache and this is a list on objective-c and I know I wouldn't get much of a reply on the apache lists. And I'm not writing a apache module just for a web application, I'm writing it so

Re: Apache Module

2009-11-27 Thread Jens Alfke
On Nov 27, 2009, at 10:11 PM, Chris Hanson wrote: > I believe Mac OS X 10.5+ includes the FastCGI Apache module and C library, > which are for just this kind of use: Maintaining a pool of CGI-style servers > that use Apache to provide an HTTP front-end without the overhead of one > fork/exec p

Re: Apache Module

2009-11-27 Thread Jens Alfke
You absolutely do not want to write an Apache module to implement a web-app! That's massive overkill, like building a machine shop in your garage instead of just going to Home Depot. If you need more performance than the basic CGI interface provides, good ways to go are either SCGI (which will

Re: Apache Module

2009-11-27 Thread Chris Hanson
On Nov 27, 2009, at 4:52 PM, Bill Bumgarner wrote: Then again, HTTP server <-> backend server is a very well explored area of technology that may offer a pre-rolled solution for you. I believe Mac OS X 10.5+ includes the FastCGI Apache module and C library, which are for just this kind of

Re: Apache Module

2009-11-27 Thread Greg Guerin
Mr. Gecko wrote: ... and that does not solve my make my server speak things. CGI that runs /usr/bin/say? You'll want to rate-limit it, or exclusive-lock it, otherwise it can speak many things in parallel. You can try polyphony/cacaphony now with 'say ... &' in Terminal.app. -- GG _

Re: Apache Module

2009-11-27 Thread Mr. Gecko
The image is different for each and every person and I can't cache it. The disk will already be used to get the php to run which generates the page the image is on. I know this may sound like a Captcha, but it's not. I will continue to try and write this module and if it works out, then I'll be

Re: Apache Module

2009-11-27 Thread Bill Bumgarner
On Nov 27, 2009, at 5:08 PM, Mr. Gecko wrote: > My idea was to basically write a module that runs NSTask to start the cocoa > binary and just have a framework to like manage the server information and > talk to the module, by printf I guess, saying like which headers to return > and the data s

Re: Apache Module

2009-11-27 Thread Mr. Gecko
I know about that but for what I need it's extremely hard to do what I need and that does not solve my make my server speak things. On Nov 27, 2009, at 7:37 PM, Alexander Hartner wrote: > http://www.php.net/manual/en/image.examples-png.php > > Google is your friend. No need to reinvent the whee

Re: Apache Module

2009-11-27 Thread Alexander Hartner
http://www.php.net/manual/en/image.examples-png.php Google is your friend. No need to reinvent the wheel. Sent from my iPhone On 28 Nov 2009, at 01:08, "Mr. Gecko" wrote: My idea was to basically write a module that runs NSTask to start the cocoa binary and just have a framework to like man

Re: Apache Module

2009-11-27 Thread Mr. Gecko
My idea was to basically write a module that runs NSTask to start the cocoa binary and just have a framework to like manage the server information and talk to the module, by printf I guess, saying like which headers to return and the data so I can set the content-type to image/png if I wanted to

Re: Apache Module

2009-11-27 Thread Alexander Hartner
http://httpd.apache.org/docs/1.3/howto/cgi.html This tutorials covers creating dynamic content in c. Can't be all that different fir objective c. Sent from my iPhone On 28 Nov 2009, at 00:50, "Mr. Gecko" wrote: As I said, I couldn't find any other way to do this advanced stuff which I ha

Re: Apache Module

2009-11-27 Thread Bill Bumgarner
On Nov 27, 2009, at 4:30 PM, Mr. Gecko wrote: > Well I'm wanting to be able to write image generators and other things that > is near impossible to do in php or any other web scripting language, also > running compiled source is faster then a script. My idea is to write a module > so I can jus

Re: Apache Module

2009-11-27 Thread Mr. Gecko
As I said, I couldn't find any other way to do this advanced stuff which I have in mind, like I have an idea of a notification system that will use NSSpeechSynthesizer on my server. On Nov 27, 2009, at 6:46 PM, Alexander Hartner wrote: > Why not use standard plain old cgi to do that? > > Sent

Re: Apache Module

2009-11-27 Thread Mr. Gecko
Well I'm wanting to be able to write image generators and other things that is near impossible to do in php or any other web scripting language, also running compiled source is faster then a script. My idea is to write a module so I can just use a SDK that I will write to make different things i