ruby

Latest

  • Snow Leopard Services in practice: Amazon S3 uploader

    by 
    Brett Terpstra
    Brett Terpstra
    09.06.2009

    I stumbled upon a great example of the Snow Leopard Services that I've been drooling over. The S3 Upload Service by August Lilleaas is available as a workflow which can be opened in Automator, so you can examine its inner workings. It uses AppleScript and Ruby, easily passed back and forth thanks to Automator's building-block-style workflow. It lets you upload a publicly-accessible file to an S3 bucket, and copies the URL into your clipboard upon successful upload. The workflow requires that you at least have RubyGems installed, and have an Amazon S3 account set up, but it will handle the rest. It asks for your S3 credentials with an AppleScript popup, which has the unfortunate side effect of not being able to be forced to the front very easily and tends to get lost behind other windows. There are workarounds to that, but no way to keep it on top once it's up. It looks possible to build custom nibs for your services, so I might play around with making a general-purpose utility panel popup to fill the void in my own projects. In the process of rolling my own Services in Snow Leopard, I've definitely found some limitations, but I'm having fun working around them. This one is a great example of passing results -- returned from different languages -- and processing them, all within Automator. It's not super-polished -- your mileage may vary -- but a big thanks to August for putting it out there for the rest of us to play with!

  • Friday Favorite: Dropzone

    by 
    Brett Terpstra
    Brett Terpstra
    08.21.2009

    One of my favorite new tools is Dropzone from Aptonic Software. Cory mentioned it back in early beta, but it's come a long way since then. Dropzone lets you set up "destinations," and when you click its icon in the dock it pops up a HUD-style window with icons for each destination. You can drop files and text onto each icon, or have them launch apps and run scripts with a click. It comes with ready-made destinations for everything from Flickr uploading of dropped images to zipping and emailing a collection of dropped files. The beauty of Dropzone is that the average user can set up all of the destinations they would normally launch other apps for, but users in more advanced stages of geekery can construct their own destinations using the Ruby-based Dropzone API. My personal Dropzone setup includes destinations for creating projects or opening files in TextMate, opening a folder in GitX, sending files to my Amazon S3 account (puts a publicly-accessible url in my clipboard), filing based on OpenMeta tags, mounting and unmounting FireWire drives, making quick Backpack reminders, and the list goes on. I've even got one that scans dropped text for "http://" links and creates a linkbun.ch for me. Some of these scripts I've written, some were just a matter of customizing the existing destinations. Either way, I've got all of these capabilities no more than a click or drag away. Creating your own destinations just requires a little Ruby-fu. "But I'm the farthest thing from a level 12 Ruby Mage," you say. Don't sweat it, let the community do it for you. Several scripts from my personal setup, along with a great selection of others, are available in the user-contributed actions section of the Aptonic Software website. Additionally, included actions like the application launcher allow full customization just by selecting the application to trigger. Dropzone is available for a free trial, and can be had for $10US. Give it a try and see if it doesn't speed up your workflow. If you create any scripts you'd like to share, be sure to let the author know!

  • WoWHorn tweets your achievements

    by 
    Mike Schramm
    Mike Schramm
    05.06.2009

    This is an interesting little system -- unfortunately, it's probably a little too complicated for most people to use, but the functionality is intriguing. WoWHorn is an open source application that basically monitors your achievements on the Armory, and will Twitter about it when you earn a new one. To get it up and running, you'll need the application itself of course, and you'll probably also need Ruby installed if you don't have it yet (OS X has it already, I believe, and Linux may as well). I don't think you'll need to input your actual WoW password (the program should be able to look up your info with just your character name and realm), but you will have to punch in your Twitter credentials if you want it to tweet for you. Once you've got everything working (and you'll have to ignore the errors, I got quite a few), you should see a tweet pop up in your feed whenever you get new points ingame.If you're a programmer type, you can read about the making of the app, and though, as I said, the app is probably a little too hacky for widespread use (it's not quite ready for primetime yet, and do you really want to run a separate application just to twitter about your achievements for you?), the functionality is the thing here. It would be cool for Blizzard to have the Armory interact officially with other networks on the Internet, either Twittering about your character or sending your profile out to Facebook.Not that anything like that should distract them from future content, of course. But if they want free advertising, allowing their subscribers to more easily share and disseminate information about their characters won't hurt.

  • Motorola Ruby (VE1) ditches weird spelling, not the RAZR look

    by 
    Darren Murph
    Darren Murph
    02.23.2009

    We'll hand it to Moto here -- it truly is admirable that it didn't use all caps and no vowels to name a phone that's so strikingly similar to the original RAZR, but we can't help but doubt this thing's ability to sell. The Motorola Ruby (or VE1), will reportedly boast a 5 megapixel camera, a standard flip phone design and... well, that's about it. Or, at least that's all we know of. For those still agile enough to mouse to the read link after the massive facepalm you surely just initiated, there are a few more images down there for your perusal. "Enjoy."

  • Motorola cancels RAZR3 / Ruby, era comes closer to an end

    by 
    Darren Murph
    Darren Murph
    11.29.2008

    Earlier this month, the almighty RAZR fell from the top spot as America's best selling handset. Now, we're finding that the RAZR3 / Ruby has been canned. Granted, the move isn't all that surprising -- after all, Moto's known for awhile now that it simply can't keep tweaking the RAZR instead of, you know, innovating. But honestly, if this signals that the company is serious about moving forward and possibly adopting Android on the double, we won't shed a tear. Okay, maybe one, but only after all the lights are out.[Via UnwiredView]

  • Apple Tutorial: Developing with MacRuby

    by 
    Mat Lu
    Mat Lu
    10.22.2008

    Apple has posted an interesting new tutorial on developing OS X applications with MacRuby. MacRuby is an implementation of the Ruby programming language "ported to run directly on top of Mac OS X core technologies such as the Objective-C common runtime and garbage collector, and the CoreFoundation framework."What this means is that applications written with MacRuby can be a full-fledged Cocoa application with all the advantages that entails. The tutorial will take you through the process of installing MacRuby as well as building a sample application with Xcode. So if you've ever wanted to get started thinking about developing for the Mac, but have always been intimidated by Objective-C (which pretty much describes me), playing around with MacRuby might be just the ticket to get you started. [via MacVolPlace]

  • Ruby Cipher HDD kit provides AES 256-bit hardware encryption

    by 
    Darren Murph
    Darren Murph
    09.16.2008

    Addonics is good for providing über-secure storage options, and this one does a fine job of keeping that legacy alive. The Ruby Cipher hard drive kit shows lots of love to any 2.5-inch SATA drive that you've got laying around, and once you slip it in there, you can rest assured that only you (and maybe your ghost) will see what files are within. The enclosure itself comes with inbuilt eSATA / SATA connectors, and there's also a SATA direct bridge to "isolate the SATA hard drive power and data connectors from the wears and tears incurred in some other removable SATA hard drive systems." Of course, you'll also find 256-bit AES hardware encryption, with a bundled flash key included to unlock the doors to your deepest, darkest secrets. Shame there's no price listed, but you know this level of security won't run you cheap.

  • WWDC schedule: Ajax to PDF

    by 
    Brett Terpstra
    Brett Terpstra
    05.16.2008

    Developers and other WWDC attendees looking for a simple printout of the sessions and labs at the conference may be disappointed with the results when printing out Apple's (very slick) Ajax calendars. You could save the pages to PDFs and have a calendar format, but for the purposes of a nice, list-format printout, I can't find a printable version. It's entirely possible I'm not looking hard enough, but at least one other person had the same problem ... and was resourceful enough to come up with a solution. Johannes Fahrenkrug is making available a Ruby script that will make a PDF with a nicely formatted table of all the sessions and labs offered at WWDC. You can grab the script at his blog and running it is a simple matter of unzipping and executing the wwdcpdf.rb file from Terminal (or wherever you like to do such things). The output is a simple table format with some classic Helvetica action. Those familiar with FPDF may be able to get more artistic with it, or simply build off of the existing code to output in other print or screen-friendly ways. Given that it's based off of an XML file, you can even do some sorting and filtering with a little bit of Ruby magic. Johannes states that he'd be happy to see the script enhanced!

  • 24 Hours of Leopard: Ruby on Rails built-in

    by 
    Mike Schramm
    Mike Schramm
    10.25.2007

    Feature: The most awesome, easy, groovy, Web 2.0 development platform ever is now built-in to OS X.How it works: Like buttah. Ruby, the language that powers RoR, has actually been built-in to OS X for a while (don't believe me? type "irb" in your terminal right now to access interactive Ruby), but Ruby on Rails has been mostly a pain to install around OS X. Packages need to be downloaded, settings need to be tweaked, and servers need to be config'd. No more. Ruby on Rails, free and installed on every new Mac. Developers, start your developing.Who will use it: Mostly people who develop applications for the web. But even though I personally don't code much, if you've ever done any coding, once you dive into Ruby and RoR, you'll probably have the same reaction that I do: wow this thing is neat! For a start in Ruby, check out the classic Why's Poignant Guide, and for a tutorial on RoR, hit up Curt Hibbs (he's from St. Louis, so you know he's a good guy). You can check out all our 24 Hours of Leopard posts here.

  • AMD keeps it dark with Athlon 64 X2 5000+ Black Edition

    by 
    Darren Murph
    Darren Murph
    09.26.2007

    Barely a month after showing off its Athlon 64 X2 6400+ Black Edition, AMD is apparently hoping to rope in a few more followers with a lower-priced CPU in the same family. This processor reportedly hums along at 2.6GHz, is built around 65-nanometer technology, boasts 1MB of L2 cache and will play nice with the firm's "580x or upcoming 700-series chipsets." 'Course, enthusiasts will love the "customizable clock multiplier for tunable performance," and word on the street has these new chips "available to channel partners" for just $136 apiece in groups of 1,000.[Via InformationWeek]

  • BBEdit version 8.7 released

    by 
    Mike Schramm
    Mike Schramm
    08.07.2007

    BBEdit 8.7, the latest version of the triple-A HTML editor, has been released.Update: OK, so the reason I originally thought that all the "new" 8.7 features sounded familiar is because I actually was looking at the release list for version 8.5. The 8.7 release notice is here, and it includes Lua programming support, an option to remember which documents and browsers are open after closing BBEdit, and a Python language module and lots of other fixes and improvements. Sorry about the mistake, and thanks to all our commenters (and to Bare Bones Software themselves) for the heads up.8.7 is a free update for 8.5 and 8.6 customers. If you haven't picked up BBEdit yet, you can try out the free demo here.

  • RubyCocoa 0.11.0 released

    by 
    Mat Lu
    Mat Lu
    05.24.2007

    RubyCocoa is a nifty "bridge" between Ruby and Objective-C (the language of Cocoa), that allows developers to "write full-stack Cocoa applications in Ruby" or a "Cocoa application that mixes Ruby and Objective-C code." It has just received a major update to version 0.11.0. The release notes list the considerable changes; these include compatibility with Ruby 1.9, support for Quartz Composer, support for 64-bit applications and much more. As it happens, I've been slowly learning Ruby, so I'm looking forward to learning how to use RubyCocoa to build Mac applications with Ruby on the back-end. RubyCocoa is free and open source; it's a free download from SourceForge.[via MacResearch]

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

    by 
    Mat Lu
    Mat Lu
    05.08.2007

    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

  • Skip the AppleScript with Ruby

    by 
    Mat Lu
    Mat Lu
    03.01.2007

    For a long time now I have been working on learning AppleScript, where "working on" means I bought an AppleScript book that sits on my table accusingly, but I've never actually picked it up and read through it. AppleScript is clearly a powerful and relatively easy way to get somewhat complex tasks accomplished on your Mac; heck with AppleScript Studio you can even write stand-alone applications of a sort. This story on MacDevCenter, however, has given me pause. AppleScript guru Matt Neuburg (who literally wrote, if not the, at least a book on AppleScript) has put up a nice tutorial on replacing AppleScript with rb-appscript, which is "a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Ruby scripts." Now everybody and his brother has been going on of late about how wonderful Ruby is for web development, particularly with Rails using TextMate, so now I have a dilemma. Should I actually try to learn Ruby instead and double my return, as it were? While I think that over, go check out Matt's tutorial and see for yourself how Ruby and Apple events can make beautiful music together.[Via MacVolPlace]

  • Ruby + AppleScript = RubyOSA

    by 
    David Chartier
    David Chartier
    10.26.2006

    Our friends at Download Squad have discovered a melding of two scripting worlds: AppleScript and Ruby. RubyOSA is the darling scriptenstein of these two languages, and while I don't know a lick of either, I'm willing to bet this could be a popular amongst the code ninjas in the audience. Ruby is a popular language (the 13th most popular, by their numbers), and it's the foundation of the Ruby on Rails framework which has given us such handy web 2.0 apps as Backpack, Odeo, Strongspace and many more.This is about the line, however, that I reach where I would need to start pretending I know more about any of these languages, so I'll let you check out RubyOSA for yourself to see if it gets your coding gears turning.

  • Sony Pearl VPL-VW50 1080p SXRD projector shown, dated and priced in Japan

    by 
    Richard Lawler
    Richard Lawler
    08.30.2006

    LCDs and LCoS RPTVs weren't all Sony had to show off today, they also displayed the eagerly-awaited smaller, cheaper and more efficient followup to their Ruby VPL-VW100 front projector, the Pearl VPL-VW50. Featuring the same third-generation .61-inch microdisplay that powers the RPTVs, this 1080p projector comes with a 200-watt lamp producing 900 lumens of brightness, two HDMI inputs as well and one component input for all the 1920x1080 high definition content you can feed it. Speaking of 1080p inputs, via HDMI it is ready for 1080/60p, 1080/50p and 1080/24p so no matter what framerate your Blu-ray or HD DVD player of the future outputs 1080p this can handle it without a problem. You can project an image of up to 300-inches just like the Ruby with a maximum 15,000:1 contrast ratio. Unlike the Ruby the Pearl features none of Sony's Digital Reality Creation (DRC) technology to enhance the quality of non-1080p content, so the quality of the deinterlacing on these lower-quality sources remains to be seen. Ship date is October 20 with a price of 735,000 yen ($6,290.65 US) compared to the 1,365,000 yen ($11,682 US) of the Ruby.[Via Impress]

  • More info and pics of the Sony's 1080p Pearl projector

    by 
    Matt Burns
    Matt Burns
    08.10.2006

    We brook the story about the new Sony Pearl a few days ago but info was sketchy at best. We still haven't heard directly from Sony about it yet but apparently they held a press conference about the Pearl across the Pacific within the last 24 hours. Like we said we still don't have a lot of info but we thought that you would be interested to know that it does in fact sport a component input that wasn't mentioned in our last bit of leaked info. It also looks like it has a VGA port, RS 232 & S-Vid/composite input along with rear controls. The Pearl shares the same remote as the Ruby, but sheds the 400-watt Xenon bulb for a smaller, and cheaper, 200-watt lamp. Once we hear more about the unit, we will let you know.[Thanks, zombieflanders]

  • Sony "Pearl" VPL-VW50 SXRD projector details leaked

    by 
    Paul Miller
    Paul Miller
    08.08.2006

    All the cool kids have 1080p projectors for their home theater setup, but the coolest kids have 1080p SXRD projectors from Sony. At least if looks are anything to go by. Sony's new VPL-VW50 "Pearl" unit, a followup to last year's VPL-VW100 "Ruby" of equal sexiness, matches its big brother nicely in the spec arena. The projector of course has the same 1080p action, imaging courtesy of three third-generation SXRD 0.61-inch panels, and the 200-watt bulb is half the wattage of the VW100, but Sony claims the bulb manages comparable results. Sony's VW50 also keeps up with the VW100's 15,000:1 contrast ratio, has a pair of HDMI inputs and a mere 22 decibels of fan noise. All this info is courtesy of a leaked press release dated August 7, 2005, so we're hoping that "2005" is a misprint and Sony hasn't just forgotten to release this thing for a whole year. If it does prove true, the projector should be out in October, and while there's no word on price, we're hoping they manage to squeeze this one under the VW100's $12,500 pricetag. More pics after the break.[Via HD Beat]

  • ActiveState releases Komodo 3.5.2 for OS X

    by 
    Scott McNulty
    Scott McNulty
    12.29.2005

    Komodo, a powerful IDE for various scripting languages and the like, has been released for OS X by ActiveState.Any time a company releases an IDE for OS X I do a little dance on the inside because it means that people are noticing the developer community that OS X has built up around it. More developers means more software for the Mac and that can't be a bad thing.