You're comparing apples to tacos here. The SQLObject example contains the definition of the table, so that it can be automatically created if it does not already exist, where the ActiveRecord example depends on the existence of the table in the database.
As for the page example, clearly you have no idea what you're talking about. It says:
1. Expose an "index" URL as this method with the "wiki20/templates/page.html" template 2. Look up the content of the page in the database 3. Use docutils to parse the content of the page as a reStructuredText document, and get the result as an HTML fragment. 4. Encode the HTML fragment as UTF-8 5. Return a dictionary containing the page name and the HTML fragment for usage by the template (or a direct JSON request)
PyObjC, in theory, will run on GNUStep if someone steps up and puts in the effort to make that happen. It will, also in theory, run on the old NeXT stuff (that's where it came from) if someone takes the time to backport it (conditionally #ifdef out the new stuff). However, most of the recent advancements such as Key-Value Observing, Cocoa Bindings, etc. are not present in GNUStep, so it's not nearly as nice.
It is reasonable to use multiple front-ends to the same Python program, whether that's PyObjC and wxPython, PyGTK, PyQt, etc. None of them have remotely similar APIs to Cocoa, though, so you're not going to be sharing any view code. Most new Cocoa apps these days don't have much view code anyway, due to Cocoa Bindings and such.
You can get close to the metal in Python pretty easily, just write it in C (or anything else that can do C ABI) and link it in. Python is quite easy to extend by hand, with Pyrex (a Python-like-langauge that compiles to C extensions for Python), SWIG, BOOST.Python, etc.
ctypes and PyObjC are runtime foreign function interfaces for Python that let you talk to existing C and Objective-C libraries, without compiling any additional C code.
Re:Typical ignorant developer....
on
Hacking Mac OS X
·
· Score: 1
... Typical ignorant DBA.
Premature optimization is evil. Optimizing for a particular RDBMS with an application that may never need that kinda performance/integration is dumb.
Uh, this "dmg exploit" was fixed a long time ago, well before Tiger, soon after the exploit made the rounds. All they had to do was add a notification that you are opening a document or URL with an application that you have never explicitly run before. A relatively small change to LaunchServices.
Relatively few programs for Mac OS X demand an administrator password.
iTunes has always been shipped in a pkg.
I'm guessing your Mac OS X experience consists entirely of what you read in slashdot comments?
Uh, no. The internationalization services offered by Mac OS X are more than just strings. You can change anything you need to change to accommodate a new localization, including the size of the dialog and the layout of its buttons. The code doesn't need to change, because the UI and strings are outside of the executable. The application code doesn't need to know and shouldn't care which set of localized resources are being used.
The scripting APIs are whatever the developer makes them. You don't typically script the UI of an application, you script the actions, so the names of the buttons aren't relevant.
Aliases are like a hybrid of a symlink and a hard link with some sugar on top (like the ability to point to network shares or drives that may not be mounted). They're smarter than symlinks and have different semantics, so they can not be unified. Symlinks and hard links are still there. If you want a symlink, use one, all the GUI apps understand them just fine.
The *chip* is smaller than a grain of rice, but the antenna is not.
Re:What are people's opinion of comparisions
on
OpenGL Shading Language
·
· Score: 5, Insightful
The point is that the DX shader assembly code has *lost meaning* in the translation from whatever high level language it came from. There are many possible optimizations that could have been made with a cheap analysis of the high level language that would be very difficult to make from looking at the low level language.
Subversion (well mod_dav_svn) is built on a filesystem-over-http protocol, of course you can use it like a filesystem, on just about every platform, or from many applications, or through your web browser (to read it, anyway).
This sounds awfully worthless. Think about it, they have a set of up to 70 chemicals, not an electronic device with collision avoidance. Since you have these collisions, if you had two distinct CrossID codes within range, then the reader will do a binary OR of the codes.. the reader will report a third code entirely.
CoreFoundation is portable code, that's not in QT, but is statically linked into iTunes/Windows. Most, but not all, of it is open source.
I'm sure AppleSingle resources aren't a problem, whether or not they're in QT, given that we have some relatively short pure Python code that does them cross-platform, I'm sure Apple has some longer C code to do the same.
Once per year or two, if you want the latest and greatest software (they do support older releases with security updates and the like).
It's worth it though.
Re:Not the first time MORE has been on DVD...
on
Despairing of Pixar
·
· Score: 5, Informative
Ok sorry, it wasn't volume 13 but volume 7. It's been on DVD since [at least] Feb 1, 2000 according to here.
Not the first time MORE has been on DVD...
on
Despairing of Pixar
·
· Score: 5, Interesting
I picked MORE up on DVD two or three years ago. It was on a compilation of a bunch of indie shorts. I don't have it in front of me, but I believe it was volume 13 of something (utopia maybe?) and it definitely had a picture of a mushroom cloud on the cover.
That's called JSON.
You're comparing apples to tacos here. The SQLObject example contains the definition of the table, so that it can be automatically created if it does not already exist, where the ActiveRecord example depends on the existence of the table in the database.
As for the page example, clearly you have no idea what you're talking about. It says:
1. Expose an "index" URL as this method with the "wiki20/templates/page.html" template
2. Look up the content of the page in the database
3. Use docutils to parse the content of the page as a reStructuredText document, and get the result as an HTML fragment.
4. Encode the HTML fragment as UTF-8
5. Return a dictionary containing the page name and the HTML fragment for usage by the template (or a direct JSON request)
Only certain parts of the header, it's certainly possible to checksum the parts that shouldn't change.
PyObjC, in theory, will run on GNUStep if someone steps up and puts in the effort to make that happen. It will, also in theory, run on the old NeXT stuff (that's where it came from) if someone takes the time to backport it (conditionally #ifdef out the new stuff). However, most of the recent advancements such as Key-Value Observing, Cocoa Bindings, etc. are not present in GNUStep, so it's not nearly as nice.
It is reasonable to use multiple front-ends to the same Python program, whether that's PyObjC and wxPython, PyGTK, PyQt, etc. None of them have remotely similar APIs to Cocoa, though, so you're not going to be sharing any view code. Most new Cocoa apps these days don't have much view code anyway, due to Cocoa Bindings and such.
You can get close to the metal in Python pretty easily, just write it in C (or anything else that can do C ABI) and link it in. Python is quite easy to extend by hand, with Pyrex (a Python-like-langauge that compiles to C extensions for Python), SWIG, BOOST.Python, etc.
ctypes and PyObjC are runtime foreign function interfaces for Python that let you talk to existing C and Objective-C libraries, without compiling any additional C code.
... Typical ignorant DBA.
Premature optimization is evil. Optimizing for a particular RDBMS with an application that may never need that kinda performance/integration is dumb.
XL C/C++ Enterprise Edition compiler supports Objective-C.
Uh, this "dmg exploit" was fixed a long time ago, well before Tiger, soon after the exploit made the rounds. All they had to do was add a notification that you are opening a document or URL with an application that you have never explicitly run before. A relatively small change to LaunchServices.
Relatively few programs for Mac OS X demand an administrator password.
iTunes has always been shipped in a pkg.
I'm guessing your Mac OS X experience consists entirely of what you read in slashdot comments?
Uh, no. The internationalization services offered by Mac OS X are more than just strings. You can change anything you need to change to accommodate a new localization, including the size of the dialog and the layout of its buttons. The code doesn't need to change, because the UI and strings are outside of the executable. The application code doesn't need to know and shouldn't care which set of localized resources are being used.
The scripting APIs are whatever the developer makes them. You don't typically script the UI of an application, you script the actions, so the names of the buttons aren't relevant.
The "15-line" P2P program didn't use any libraries that don't ship with the Python interpreter. This uses several 3rd party packages.
It is more valuable than your work because people are willing to pay more for it.
Aliases are like a hybrid of a symlink and a hard link with some sugar on top (like the ability to point to network shares or drives that may not be mounted). They're smarter than symlinks and have different semantics, so they can not be unified. Symlinks and hard links are still there. If you want a symlink, use one, all the GUI apps understand them just fine.
The *chip* is smaller than a grain of rice, but the antenna is not.
The point is that the DX shader assembly code has *lost meaning* in the translation from whatever high level language it came from. There are many possible optimizations that could have been made with a cheap analysis of the high level language that would be very difficult to make from looking at the low level language.
Yes, but everyone who knows anything is under NDA so we can't tell you :)
quartz-wm looks (somewhat) like Aqua because it is. It won't run without Aqua.
Ever seen blades?
Subversion (well mod_dav_svn) is built on a filesystem-over-http protocol, of course you can use it like a filesystem, on just about every platform, or from many applications, or through your web browser (to read it, anyway).
This sounds awfully worthless. Think about it, they have a set of up to 70 chemicals, not an electronic device with collision avoidance. Since you have these collisions, if you had two distinct CrossID codes within range, then the reader will do a binary OR of the codes.. the reader will report a third code entirely.
There is no such thing as a resolution that is "too small".. only window managers that don't rasterize text/widgets properly for the current DPI.
CoreFoundation is portable code, that's not in QT, but is statically linked into iTunes/Windows. Most, but not all, of it is open source.
I'm sure AppleSingle resources aren't a problem, whether or not they're in QT, given that we have some relatively short pure Python code that does them cross-platform, I'm sure Apple has some longer C code to do the same.
Once per year or two, if you want the latest and greatest software (they do support older releases with security updates and the like).
It's worth it though.
Ok sorry, it wasn't volume 13 but volume 7. It's been on DVD since [at least] Feb 1, 2000 according to here.
I picked MORE up on DVD two or three years ago. It was on a compilation of a bunch of indie shorts. I don't have it in front of me, but I believe it was volume 13 of something (utopia maybe?) and it definitely had a picture of a mushroom cloud on the cover.
That's what you get for using .NET, what are you thinking?!