Re: [Moderator] Re: Securely limit the running an application by serial number

2009-07-04 Thread Ammar Ibrahim
I don't see how this is a "business" question, it's very technical. On Sat, Jul 4, 2009 at 7:23 AM, Scott Anguish wrote: > the discussion of software protection is off-limits for this list. take to > to the mac small business list. > > [moderator] > > > On 2009-07-03, at 6:48 PM, Peter Mulhollan

Re: Securely limit the running an application by serial number

2009-07-03 Thread Ammar Ibrahim
On Fri, Jul 3, 2009 at 11:09 PM, Nick Zitzmann wrote: > > On Jul 3, 2009, at 1:49 PM, Ammar Ibrahim wrote: > > can >> someone crack the software by avoiding the "if statement" that does the >> check? >> > > Yes. > > How can I secure my check

Re: Securely limit the running an application by serial number

2009-07-03 Thread Ammar Ibrahim
I meant "Securely limit the running *of* an application by serial number" On Fri, Jul 3, 2009 at 10:49 PM, Ammar Ibrahim wrote: > I want my application to run on specific computers that are licensed to use > the software. This is for limited use, and isn't a product f

Securely limit the running an application by serial number

2009-07-03 Thread Ammar Ibrahim
I want my application to run on specific computers that are licensed to use the software. This is for limited use, and isn't a product for the masses. I've realized that you can limit the software to run on specific computers by limiting using the serial number of the machine. how secure is it? can

External Drives Questions

2009-06-29 Thread Ammar Ibrahim
How can I do the following in Cocoa: 1- Get the list of mounted drives? 2- Get the serial number of the mounted drive/disk I would assume when you plugin a disk drive that was already configured to use Time Machine. Time machine would check the serial number, and start backing up if it's already "

Re: NSTask & curl

2009-06-06 Thread Ammar Ibrahim
On Sun, Jun 7, 2009 at 1:09 AM, Bill Bumgarner wrote: > On Jun 6, 2009, at 3:05 PM, Ammar Ibrahim wrote: > >> Thanks that fixed it! Although when you call it directly from the command >> line, it's fine to have the space there! >> > > I'd argue that fixe

Re: NSTask & curl

2009-06-06 Thread Ammar Ibrahim
On Sun, Jun 7, 2009 at 12:29 AM, Nick Zitzmann wrote: > > On Jun 6, 2009, at 3:18 PM, Ammar Ibrahim wrote: > > The problem is that in my delegate I can't access the file! Although I can >> see it on the filesystem and open it. even if I check if the file exists >> f

Re: NSTask & curl

2009-06-06 Thread Ammar Ibrahim
On Sun, Jun 7, 2009 at 12:29 AM, Andrew Farmer wrote: > On 6 Jun 2009, at 14:18, Ammar Ibrahim wrote: > >> I'm using NSTask to spawn a process to do some work as per the code below: >> >> > >> [task setLaunchPath:@"/usr/bin/curl"]; >

NSTask & curl

2009-06-06 Thread Ammar Ibrahim
I'm using NSTask to spawn a process to do some work as per the code below: -(void)downloadFile:(NSString *)downloadURL { mode = @"download"; downloadFilePath = [self generateUniqueTemporaryFileName]; task = [[NSTask init] alloc]; [task setLaunchPath:@"/usr/bin/curl"]; [task setArguments

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 3:16 AM, Shawn Erickson wrote: > On Thu, Jun 4, 2009 at 4:44 PM, Ammar Ibrahim > wrote: > > > Excuse me for the silly question. But I'm going to be doing hundreds of > > requests, and I have GC ON, how do I create these connections and retai

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 2:44 AM, Ammar Ibrahim wrote: > > > On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah > wrote: > >> >> On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote: >> >> On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska >> >wrote: >>

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah wrote: > > On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote: > > On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska > >wrote: >> >> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: >>> >>> Hello, I'm about t

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska wrote: > On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: > > Hello, I'm about to bang my head against the wall. Here's the situation, >> I'm >> trying to send many requests using the same request object, I have a

NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
Hello, I'm about to bang my head against the wall. Here's the situation, I'm trying to send many requests using the same request object, I have a method which I call frequently, which has the following piece of code: NSMutableURLRequest *newReq = [[NSMutableURLRequest alloc] init]; [newReq set

Re: Several Questions

2009-06-02 Thread Ammar Ibrahim
On Tue, Jun 2, 2009 at 3:48 AM, Todd Heberlein wrote: > Great, so I understand from what you're saying that I can launch a GUI app >> using launchd? >> > > Out of curiosity, I just tried this. I created a basic Cocoa app (I made no > changes to it, I just built the default skeleton application tha

Re: Several Questions

2009-06-02 Thread Ammar Ibrahim
On Mon, Jun 1, 2009 at 2:58 PM, Jelle De Laender wrote: > why should your app stops responding? > > Do you want to detect time-outs (network-times, IO-timeouts, ...) or will > your app be crap and full with bugs? I find your answer irritating. All software Apps I've used do crash, even once in

Re: Several Questions

2009-06-01 Thread Ammar Ibrahim
On Mon, Jun 1, 2009 at 6:04 AM, Chris Hanson wrote: > On May 30, 2009, at 11:18 PM, Ammar Ibrahim wrote: > >> On Sun, May 31, 2009 at 6:16 AM, Chris Hanson wrote: >> >> The best way to ensure your daemon or agent is always running is to have >>> it >>>

Re: Several Questions

2009-05-31 Thread Ammar Ibrahim
On Sun, May 31, 2009 at 3:57 PM, Uli Kusterer wrote: > Am 31.05.2009 um 12:12 schrieb Jelle De Laender: > >> Can you give us so more details? For example: What will the app do? >> Your description is very strange, lol. >> >> But indeed, you should create a normal cocoa app that do the stuff you >>

Re: Several Questions

2009-05-30 Thread Ammar Ibrahim
e "Daemons and Agents" tech > note; these will give you an overview of how Mac OS X used launchd to manage > these types of on-demand and always-on services. > > -- Chris > > > On May 30, 2009, at 5:57 PM, Ammar Ibrahim > wrote: > > On Sun, May 31, 2009 at 3:2

Re: Several Questions

2009-05-30 Thread Ammar Ibrahim
On Sun, May 31, 2009 at 4:56 AM, Kyle Sluder wrote: > Well in that case I don't understand what you mean by "no users will > be using the system." Do you mean you intend for your application to > run normally but unattended? I interpreted what you said to mean you > were writing a background da

Re: Several Questions

2009-05-30 Thread Ammar Ibrahim
On Sun, May 31, 2009 at 4:02 AM, Kyle Sluder wrote: > If you're not writing an application that connects to the > WindowServer, you can't do things like AppleScript or controlling > other apps. You should read TN2083, "Daemons and Agents": > http://developer.apple.com/technotes/tn2005/tn2083.htm

Re: Several Questions

2009-05-30 Thread Ammar Ibrahim
On Sun, May 31, 2009 at 3:27 AM, Kyle Sluder wrote: > On Sat, May 30, 2009 at 5:20 PM, Ammar Ibrahim > wrote: > > 1- How do you ensure only one instance of your app is running? How do you > > detect if it stops responding? Can you restart it using something like a > >

Several Questions

2009-05-30 Thread Ammar Ibrahim
Hello everyone, I'm writing an App, and I have the following list of questions, of which I couldn't find any satisfying answers elsewhere. 1- How do you ensure only one instance of your app is running? How do you detect if it stops responding? Can you restart it using something like a watchdog? An

Re: FTP Client Framework

2009-05-06 Thread Ammar Ibrahim
what are your questions? > > -Jason > > On May 3, 2009, at 7:02 AM, Ammar Ibrahim wrote: > > I'm building a client/server app. The client and server communicate using >> FTP. I added my own custom commands, since this application will be in a >> controlled en

FTP Client Framework

2009-05-04 Thread Ammar Ibrahim
I'm building a client/server app. The client and server communicate using FTP. I added my own custom commands, since this application will be in a controlled environment. The server part is done, now I'm working on the client. What is the easiest framework/class to embed in my app? I looked into Co

Re: Best Strategy to Control iTunes

2009-04-02 Thread Ammar Ibrahim
On Thu, Apr 2, 2009 at 12:07 AM, Bill Bumgarner wrote: > On Apr 1, 2009, at 2:04 PM, ammar.ibrahim wrote: > >> Right now, I'm more confused than I was, hehe. My question is: Why would I >>> care about thread safety? Assuming that everytime I communicate with >>> iTunes >>> I create a thread and h

Re: Best Strategy to Control iTunes

2009-04-01 Thread Ammar Ibrahim
On Wed, Apr 1, 2009 at 10:21 PM, Luca C. wrote: > 2009/4/1 Michael Ash > > > > > > No, don't do this. AppleScript is not safe to use outside the main > > thread. If you must run AppleScript asynchronously, either spawn a > > subprocess to run it or, better yet, don't use AS at all but send > > A

Re: Best Strategy to Control iTunes

2009-04-01 Thread Ammar Ibrahim
On Wed, Apr 1, 2009 at 2:25 PM, has wrote: > Michael Ash wrote: > > On Tue, Mar 31, 2009 at 3:57 PM, Luca C. >> wrote: >> >>> 2009/3/31 Ammar Ibrahim >>> >>>> If I want to add a track to iTunes, I need to make sure iTunes is >>&g

Re: Best Strategy to Control iTunes

2009-04-01 Thread Ammar Ibrahim
On Wed, Apr 1, 2009 at 12:15 AM, Nate Weaver wrote: > On Mar 30, 2009, at 5:44 PM, Ammar Ibrahim wrote: > >> >>>>- It's known that if any dialog is open in iTunes it freezes any >>>> communication through the scriptable interface, how can I detect that

Re: Best Strategy to Control iTunes

2009-03-30 Thread Ammar Ibrahim
> > > * Communcation with iTunes > > - What's the best interface to use? > > > > There are many approaches but if you don't tell us what are your purposes > we > can't tell you wich approach is the best for your use. However, i suggest > googling for ScriptingBridge. > My application will be

Best Strategy to Control iTunes

2009-03-30 Thread Ammar Ibrahim
I'm currently developing an App in iTunes, and I'm new to Cocoa and the entire Mac development world. So far, things are looking great. I have few questions, about which is the best strategy to follow in order to accomplish some tasks. This is a special purpose app, in a controlled environment. *

Re: Cocoa Client/Server App

2009-01-07 Thread Ammar Ibrahim
On Wed, Jan 7, 2009 at 4:59 PM, Jean-Daniel Dupas wrote: > Le 7 janv. 09 à 14:18, Ammar Ibrahim a écrit : > > > On Wed, Jan 7, 2009 at 2:38 PM, Jason Stephenson wrote: >> >> Ammar Ibrahim wrote: >>> >>> The sample you sent is deprecated. This is co

Re: Cocoa Client/Server App

2009-01-07 Thread Ammar Ibrahim
On Wed, Jan 7, 2009 at 2:38 PM, Jason Stephenson wrote: > Ammar Ibrahim wrote: > >> The sample you sent is deprecated. This is code from 1992 that uses old >> networking APIs. And I read a complete book about networking programming in >> C. But my goal is to do it in Obj

Re: Cocoa Client/Server App

2009-01-07 Thread Ammar Ibrahim
The sample you sent is deprecated. This is code from 1992 that uses old networking APIs. And I read a complete book about networking programming in C. But my goal is to do it in ObjC/Cocoa. I can't believe that there;s no up to date code to look at! Thanks, Ammar On Wed, Jan 7, 2009 at 1:58 PM, J

Cocoa Client/Server App

2009-01-06 Thread Ammar Ibrahim
Hello, I'm new to ObjC/Cocoa, I'm trying to write an App that is somehow similar rsync, but for a specific purpose. More or less it does the following: * The App is Leopard only. I don't care about Tiger. * A GUI Cocoa App which scans a certain directory for files and displays them in a table vie