tag:blogger.com,1999:blog-3317681194976291894.comments2023-03-27T00:43:40.769-07:00Able Pear SoftwareAble Pearhttp://www.blogger.com/profile/10972026256260166617noreply@blogger.comBlogger187125tag:blogger.com,1999:blog-3317681194976291894.post-3059900549950413072016-08-01T15:56:30.069-07:002016-08-01T15:56:30.069-07:00I haven't tested that, but I don't see why...I haven't tested that, but I don't see why not. Just compile all your .py files to .pyc and only include the compiled ones in the zip.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-35203172604826790392016-07-27T20:00:37.161-07:002016-07-27T20:00:37.161-07:00Ok and if you want to ensure you only include comp...Ok and if you want to ensure you only include compiled bytecode instead of exposing .py files....is this still the way to go?Nick Kayhttps://www.blogger.com/profile/16536129727446039055noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-78984099018051624032014-11-13T12:12:34.923-08:002014-11-13T12:12:34.923-08:00to avoid having to include pkg_resources just use ...to avoid having to include pkg_resources just use pkgutil.get_data() to access resources:<br /><br />print(StringIO.StringIO(pkgutil.get_data('resources', 'inFrance.txt')))<br /><br />pkg_resources uses pkgutil.get_data() anyway .. and watch out if loading unicode in python2, pkgutil.get_data returns binary data!Anonymoushttps://www.blogger.com/profile/14855687363713186046noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-90895836324436051252014-04-29T10:40:47.754-07:002014-04-29T10:40:47.754-07:00Cool stuff.Cool stuff.Rhitikhttps://www.blogger.com/profile/07340627089735445864noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-57124254503331882072013-08-26T19:08:03.413-07:002013-08-26T19:08:03.413-07:00If you do something like this:
NSString *s = @&...If you do something like this:<br /><br /> NSString *s = @"firstbit", @"secondbit";<br /><br />This will assign the result of (@"firstbit", @"secondbit") to s. If I remember correctly, the comma operator returns the result of the second expression, so s will point to @"secondbit".<br /><br />If you omit the comma, the compiler concatenates the Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-73356674655401124092013-08-26T19:00:26.186-07:002013-08-26T19:00:26.186-07:00What does this produce?
@"firstbit",@&...What does this produce?<br /><br /><br />@"firstbit",@"secondbit"Felixhttps://www.blogger.com/profile/03689421181380172231noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-78616926529888296342013-08-22T08:17:10.877-07:002013-08-22T08:17:10.877-07:00The templates are now uploaded to the right place ...The templates are now uploaded to the right place and available for everyone. Hope you find them useful!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-58849474660853282402013-08-21T21:25:39.110-07:002013-08-21T21:25:39.110-07:00Thanks for spotting this -- yes, it's a bug. ...Thanks for spotting this -- yes, it's a bug. Hold on for a bit and I'll get this fixed.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-13388711235105208542013-08-21T09:33:06.901-07:002013-08-21T09:33:06.901-07:00It seems to require a login to your intranet. Is ...It seems to require a login to your intranet. Is this a bug or are the templates no longer available?Matt Rhttps://www.blogger.com/profile/04343210108156629189noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-15290400681193618522013-08-17T10:51:59.086-07:002013-08-17T10:51:59.086-07:00Okay, working on adding support for monthly and ye...Okay, working on adding support for monthly and yearly reports. Should be easy to add, hopefully will finish it up next week (unfortunately very time constrained right now).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-35180717068352793052013-07-28T10:36:50.102-07:002013-07-28T10:36:50.102-07:00I didn't know Apple had added annual reports. ...I didn't know Apple had added annual reports. I'll look into it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-61734245693376017762013-07-28T09:36:00.401-07:002013-07-28T09:36:00.401-07:00Any change that this could be updated to collect t...Any change that this could be updated to collect the Year reports ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-39613624652261598322013-04-12T15:22:06.106-07:002013-04-12T15:22:06.106-07:00Don't feel bad about missing the __main__.py f...Don't feel bad about missing the __main__.py feature. It came out in python 2.6 (the docs saying 2.5 are in error) and they didn't do a great job of advertising and explaining it.<br /><br />Thanks for the post though. It gave me a good feeling of "suffering together" i.e. I'm not doing this part completely wrong, it's just weird in ways.Anonymoushttps://www.blogger.com/profile/18293281284863700642noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-32077484408361978502013-02-21T00:48:25.674-08:002013-02-21T00:48:25.674-08:00In my mind, easier use special application to crea...In my mind, easier use special application to create ICNS and iconset for Mac, such as <i>IconFly</i>.Anonymoushttps://www.blogger.com/profile/16193787632388090725noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-76612746234059645982012-12-03T01:31:32.264-08:002012-12-03T01:31:32.264-08:00In your example for NSDictionary literals... For t...In your example for NSDictionary literals... For the <b>// old style</b> example, shouldn't the keys be old style, too?<br /><br />......dictionaryWithObjectsAndKeys:<br />@"red", [NSNumber numberWithInt:1], <br />@"green", [NSNumber numberWithInt:2], <br />@"blue", [NSNumber numberWithInt:3], nil];Dave Higginshttps://www.blogger.com/profile/02722260118565458414noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-66547825416046733342012-10-18T11:22:15.598-07:002012-10-18T11:22:15.598-07:00@WinCrazy That's good to know. Is PY2EXE part...@WinCrazy That's good to know. Is PY2EXE part of the standard Python distribution on Windows?<br /><br />Given that Windows doesn't include Python by default like OS X and most Linux/UNIX systems, bundling Python.exe and the needed standard library files is probably the best way to go for distributing to Windows users.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-85287999566074119432012-10-18T10:47:14.186-07:002012-10-18T10:47:14.186-07:00The best way to make an EXE in MSW is to use PY2EX...The best way to make an EXE in MSW is to use PY2EXE. It packages the python interpreter DLL and every dependent file. It also makes this entire discussion moot !<br /><br />The downside to PY2EXE is that the simplest EXE will be 3 or 4 MB in size. However, disk space is extremely inexpensive these days.WinCrazyhttps://www.blogger.com/profile/16259119756851287084noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-33905560650401637392012-10-16T08:11:09.454-07:002012-10-16T08:11:09.454-07:00The quick and easy way is to give the zip file a u...The quick and easy way is to give the zip file a unique extension, like ".pyexe" and create an association between Python and that extension.<br /><br />The slicker way would be to create a small executable in C that searches the directories on the PATH environment variable until it finds Python.exe, then executes Python with the path to the small executable. Then you would embed the Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-70457969728776486222012-10-16T02:05:42.813-07:002012-10-16T02:05:42.813-07:00Nice and useful post! Is there a way to solve that...Nice and useful post! Is there a way to solve that last step (making the executable) in Windows?Davidehttps://www.blogger.com/profile/16434398577321853431noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-4184138483448999862012-09-28T22:05:41.631-07:002012-09-28T22:05:41.631-07:00Your example code does not seem to work in Xcode 4...Your example code does not seem to work in Xcode 4.4.1, apparently because of ARC.<br /><br />Error:<br />Cast of C pointer type 'CFStringRef' (aka 'const struct _CFString *') to Objective-C pointer type 'NSString *' requires a bridged cast<br /><br />Two fix-its offered. I chose this one:<br />Use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' Basil.Bourquehttps://www.blogger.com/profile/03457065228238134738noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-83696782292736737092012-08-07T16:02:44.642-07:002012-08-07T16:02:44.642-07:00Quite a few steps for creating ICNS files rather t...Quite a few steps for creating ICNS files rather than being able to simply export them from a template. Have you noticed any darkening/desaturation of the icons using this workflow too? I've been seeing a bit of difference between this and how we used to export them using IconBuilder (which sadly, no longer supports the full range of high res icon sizes).sonjahttps://www.blogger.com/profile/17967519198297530764noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-59193658718149358162012-03-14T09:07:28.416-07:002012-03-14T09:07:28.416-07:00@skugg: I guess great minds think alike :-p
@Appl...@skugg: I guess great minds think alike :-p<br /><br />@Apple: why did this take so long? Still, I'm glad to have it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-56880802613837147142012-03-14T03:19:59.649-07:002012-03-14T03:19:59.649-07:00I wished for this back in 2008:
http://skuggdev.w...I wished for this back in 2008:<br /><br />http://skuggdev.wordpress.com/2008/08/25/objective-c-syntax-sugar-wish-list/<br /><br />It was apparently old news already then, because the radar I filed was closed as a duplicate. :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-63077823292932777422012-03-02T02:54:17.611-08:002012-03-02T02:54:17.611-08:00I'm really looking forward to this. It's a...I'm really looking forward to this. It's a pity that Xcode 4.3 doesn't have this.nicktoumpelishttps://www.blogger.com/profile/00030722503918591650noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-44173719978492424832012-02-28T21:52:48.781-08:002012-02-28T21:52:48.781-08:00I absolutely cannot _wait_ until I am able to star...I absolutely cannot _wait_ until I am able to start using this!faceleghttps://www.blogger.com/profile/16378511337284152174noreply@blogger.com