Slashdot Mirror


User: TheGS

TheGS's activity in the archive.

Stories
0
Comments
11
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 11

  1. Core Location Blacklist on Apple Can Remotely Disable iPhone Apps · · Score: 1, Redundant
    Other sites (like Daring Fireball) have noticed that the blacklist is hidden in CoreLocation (an API that uses various means - including GPS - to determine the phone's physical location), so here's how I choose to interpret it...

    EvilApp(tm): I'm going to secretly log your geospatial location and travel history (and how many times you've used a public toilet in the last week) using the built-in CoreLocation API and send the information to my creators for their nefarious purposes.
    Core Location Blacklist: Oh no you don't!

  2. Re:Compared to Intellij IDEA, XCode sucks on Steve Jobs thinks Objective C is Perfect? · · Score: 1

    Keep your NSStrings as NSStrings. There is always the option to adopt one of: OgreKit, the regex classes in MOKit, the AGRegex framework from AGKit, or the two regular expression classes in the OmniFoundation Kit frameworks. Every one of these options is Open Source with various different licenses, if you're not about to write your own classes.

    Adding a category to NSString is no problem, whatsoever. I'm sure it's been done (regex support as a category on NSString) a zillion times over.

  3. Re:Compared to Intellij IDEA, XCode sucks on Steve Jobs thinks Objective C is Perfect? · · Score: 1

    The POSIX regular expression library should be in libc.

    %man regex
          :
          :

    NAME
              regcomp, regexec, regerror, regfree - regular-expression library

    LIBRARY
              Standard C Library (libc, -lc)

    SYNOPSIS
              #include

              int
              regcomp(regex_t * restrict preg, const char * restrict pattern,
                              int cflags);

              int
              regexec(const regex_t * restrict preg, const char * restrict string,
                              size_t nmatch, regmatch_t pmatch[restrict], int eflags);

              size_t
              regerror(int errcode, const regex_t * restrict preg,
                              char * restrict errbuf, size_t errbuf_size);

              void
              regfree(regex_t *preg);

    Or, if you prefer PCRE, link that in and include the appropriate header file.

    If there is a desire for an object oriented interface to this functionality, nothing is stopping you from writing your own lightweight wrapper. And, if you use Objective-C++, you can write an extremely lightweight stack-based wrapper class in C++ with inline functions and use it alongside your otherwise Objective-C code.

    If you're wondering about why there isn't widespread use of regexes throughout the native platform Cocoa APIs... well, it seems to have gotten by without them well enough for the most part over the years. Is there any place where they're urgently needed but not already there?

  4. The "future" now. on New iMac Announced · · Score: 2, Insightful

    Now that I've had a few hours to digest the new appearance, it seems to me that the new iMac looks like a terminal/workstation out of a futuristic anime. I could imagine seeing it in an episode of Cowboy Bebop.

  5. Re:not to start a flame war... on MacHack Yields Clever Tricks With Apples · · Score: 1

    I was actually at the Hack Show, watching Steve present his hack in the wee hours of the morning, and it was really obvious that he didn't actually patch the Finder's trash routines themselves. When he hooked up his laptop to the projector, the screen resolution on his laptop changed and that caused a small problem for his presentation. His hack depended on the location of certain icons on the desktop.

    Basically, he created another folder with the same icon as the trash can, and carefully positioned it over the real trash can. Then, he attached a folder action to his new folder which watched for items dropped into the folder. The folder action would simply move most items into the real trash, or present a dialog if the item was a disk volume. The dialog would then ask the user if the disk should be ejected or erased.

  6. Re:Corel is doing a total makeover. on Corel Looking To Sell Linux Operations? · · Score: 1

    No box of CorelDRAW has ever had Greta Garbo on it. It was Hedy Lamarr that sued Corel over the box.

  7. Re:the kernel ain't bsd on Aqua DP4 Review And Screenshots · · Score: 1

    You're right.

    There's the pure Mach microkernel itself, an integrated kernel, and a full (but outdated!) Mach-based OS distribution derived from BSD.

    This URL provides more information about the different forms of Mach that are available:
    http://www.cs.cmu.edu/afs/cs.cmu.edu/project/mach/ public/FAQ/distribution.info

  8. Re:the kernel ain't bsd on Aqua DP4 Review And Screenshots · · Score: 1

    MACH is _not_ a BSD.

    Mach is a microkernel which can host different operating system personalities.

    One of those personalities is BSD (e.g. Darwin and MacOS X), another is Linux (e.g. MkLinux).

    GNU HURD also uses MACH as its microkernel.

  9. Re:Absolutely! on Can XML Replace Proprietary Document Formats? · · Score: 1

    Of course the thing is that we have to get a single DTD supported as a standard.
    Someone else pointed out that MSOffice 2K documents may be "XML-based", but I don't think their DTD is public for other vendors to support.
    For graphics, we now have the public standard of SVG, which seems like it might get a really high adoption rate.

  10. Re:My own experiences with it on MacOS X DP3 · · Score: 1
    In fact, I still can't su, as I can't figure out how to add myself to the friggin wheel group.

    To do it from the GUI:

    1. Launch /System/Administration/NetworkManager.app
    2. Make sure the "Users" icon is selected on the left, so you can edit users
    3. Make sure the "Users" tab is selected, so you're editing users and not groups
    4. Open up an editing window for one of the users in the list (double-click it, or click on the icon with a pencil - mousing over the icons will pop up tooltips)
    5. On the right-hand side of the editing window, there's an area for Groups. Click on the "Add..." button.
    6. Select wheel from the group list in the "Select groups to add" dialog and press "OK"
    7. If you're not logged in as root or Administrator, then a dialog will come up asking for authentication. "root" will be the default in the user field, and you can just supply the root password to enable editing
  11. Re:Cool on CodeWarrior for Linux: Reviewed · · Score: 2

    From my experience of CodeWarrior Pro 5.2 on Mac: While the .mcp format for CodeWarrior IDE 4.0.x looks like it's still binary, the IDE does allow import and export of an XML project file.
    The project file exporting options include exporting to an importable XML file (it includes the DTD!) or a simple file list. Either format can be diffed and compared by a human much more easily than the binary.