Different name, fashion's the same: Styledash is now the StyleList Blog!
Posts with tag perl

Saving iPhone applications inside data URLs

This is really basically the same theory as the iPhone bookmarklets Mat posted earlier (squeezing content into a URL), but it's a little less about function and a little more about storage. Currently, the iPhone doesn't allow you to save actual files locally, but it does allow you save URLs, so the idea here is to save entire applications (or other HTML content) in the form of a data URL.

It's a pretty wonky hack, but it works-- you can convert whole HTML pages, or even applications, depending on the URL length the iPhone's bookmarks allow, into data URLs (with the Perl script on that page if you don't want to do it manually), and then those data URLs can be loaded into MobileSafari on the iPhone, even in Airplane mode. The suggestion is made that this could allow persistent storage for web applications on the iPhone, but wouldn't that require allowing the HTML page to write to and read from the iPhone's bookmarks? Is that possible?

At any rate, maybe it's a good thing, for a little while at least, that Apple didn't release a "real" SDK for the iPhone. Web programmers are making their code do all kinds of flips and tricks to get every bit of access they can on the iPhone. People have been talking about browser-based, OS independent applications for years-- maybe Apple's insistence that iPhone developers go through the browser will bring about that world sooner than we thought.

[via DF]

Platypus: create Mac applications from Ruby, Perl, shell scripts, etc.

MacResearch has posted a nice two part tutorial on using Platypus, a neat utility that allows you to "create native, flawlessly integrated Mac OS X applications from interpreted scripts." This include shell scripts, Perl, Ruby, Python, etc. With Platypus you can turn command-line only tools into full fledged, free-standing Mac applications that support drag and drop and even basic graphical feedback. Obviously this isn't going to make for a full GUI application, but it will allow you easily to create self-contained OS X applications that you can double-click to run. Especially for those in the science fields, and even for beginning (Ruby) script programmers like myself, Platypus makes it possible to get basic (and even not so basic) Mac app up and running very quickly.

Platypus is a free download from Sveinbjorn Thordarson, and donations are requested.

[Via MacResearch]

Update: fixed headline

Apple TV Perl plugin


Earlier we posted about a couple of cool drop-in plugins for the Apple TV. However, somebody we know around here was busy over the weekend and has hacked up a more user extensible plugin for the Apple TV that lets you run a perl script from the Apple TV interface. As Erica notes, many folks know how to write perl, but not Cocoa. So with this plugin you can easily write perl scripts to "scrape web pages, subscribe to RSS feeds," etc. Erica's examples include getting weather information, or date and time, etc., but obviously much more is possible. While it may not be quite as slick looking as those other plugins, it promises to be much more powerful, and of an entirely different order of geekiness. Check it out over at MacDevCenter. While you're there also have a look at Erica's State of the Hacks, that runs down what's now possible if you're willing to crack open your new toy,

Access Gmail through IMAP in Mail.app

Hawk Wings is at it again, and this time Tim Gaden has tracked down a method for using Gmail with IMAP in Mail.app. It might not be pretty - it's a Perl module that needs a little bit of finagling - but it apparently works. I can't even begin to fake that I know a lick about Perl, so I'm just going to have to point you to the original post to have at it yourself.

If any TUAW readers get this to work, feel free to post your thoughts on this most sought-after of (wholly necessary) Gmail features.

Switch iTMS countries via the command line

I think we can file this one under 'Just because I can.' Erica Sadun has written a perl script that allows you to change your currently selected country in the iTunes Music Store. Both iTunes and Safari have to be open for this script to function.

If you aren't a Terminal jockey you can just pop open the iTunes Music Store and choose your country from the pop up menu at the bottom of the main page, but who likes using GUI's anymore?

TUAW Features

back-to-school
Mac 101 ask-tuaw
Mac News
WWDC (251)
.Mac (66)
Accessories (653)
Airport (75)
Analysis / Opinion (1430)
Apple (1701)
Apple Corporate (583)
Apple Financial (200)
Apple History (53)
Apple Professional (54)
Apple TV (164)
Audio (451)
Bad Apple (132)
Beta Beat (155)
Blogging (87)
Bluetooth (20)
Bugs/Recalls (57)
Cult of Mac (879)
Deals (226)
Desktops (116)
Developer (282)
Education (112)
eMac (10)
Enterprise (148)
Features (414)
Freeware (400)
Gaming (403)
Graphic Design (40)
Hardware (1313)
Holidays (37)
Humor (591)
iBook (66)
iLife (240)
iMac (185)
Internet (341)
Internet Tools (1347)
iTS (985)
iTunes (824)
iWork (23)
Leopard (376)
Mac mini (112)
Mac Pro (54)
MacBook (207)
MacBook Air (83)
Macbook Pro (226)
MobileMe (47)
Multimedia (460)
Odds and ends (1498)
Open Source (283)
OS (943)
Peripherals (214)
Podcasting (183)
Podcasts (95)
Portables (198)
PowerBook (136)
PowerMac G5 (51)
Retail (615)
Retro Mac (50)
Rig of the Week (42)
Rumors (647)
Software (4482)
Software Update (429)
Steve Jobs (255)
Stocking Stuffers (50)
Surveys and Polls (98)
Switchers (115)
The Woz (35)
TUAW Business (257)
Universal Binary (281)
UNIX / BSD (61)
Video (909)
Weekend Review (84)
WIN Business (47)
Wireless (89)
Xserve (39)
iPhone/iPod News
iPhone (1813)
iPod Family (2133)
App Store (170)
SDK (30)
Mac Events
One More Thing (28)
Liveblog (2)
Other Events (228)
Macworld (489)
Mac Learning
AppleScript (4)
Ask TUAW (107)
Blogs (85)
Books (26)
Books and Blogs (62)
Cool tools (453)
Hacks (472)
How-tos (491)
Interviews (44)
Mods (191)
Productivity (592)
Reviews (114)
Security (167)
Terminal Tips (71)
Tips and tricks (577)
Troubleshooting (174)
TUAW Features
iPhone 101 (36)
TUAW Labs (4)
Blast From the Past (19)
TUAW Tips (151)
Flickr Find (39)
Found Footage (90)
Mac 101 (114)
TUAW Interview (31)
Widget Watch (198)
The Daily Best (1)
TUAW Faceoff (7)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Sponsored Links

The Unofficial Apple Weblog (TUAW) bloggers (30 days)

#BloggerPostsCmts
1Cory Bohon521
2Robert Palmer5037
3Steven Sande4913
4Dave Caolo310
5Mike Schramm280
6Erica Sadun251
7Michael Rose1921
8Giles Turnbull170
9Mat Lu138
10Christina Warren1326
11Brett Terpstra110
12TUAW Blogger70
13Victor Agreda, Jr.613
14Lisa Hoover32
15Jason Clarke10
16Joshua Ellis10

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Apple Vanity Plates
DiscPainter
Crash Bandicoot Nitro Kart 3D
Macworld Expo 2007 show floor
Apple Texas Hold 'Em
The Macworld Faithful in Line

 

    Most Commented On (7 days)

    Recent Comments

    More Apple Analysis

    More from AOL Money and Finance

    Other Weblogs Inc. Network blogs you might be interested in: