So, I did a complete upgrade of my mythTV system this past month and lost my script to thumbnail home videos and videos that don't have any info in the imbd database (hmmm..what could those be). I must have worked on the Perl version for a couple of hours before giving up and writing this ruby version in just about 10 minutes.
In essence, this script looks at all the videos without a cover file. The ones without a cover, it will find the length of the video and extract a frame about 35% into the video. It has to take into account storage groups as the file will be stored in 1 of many locations. This is the first time I've ever used the 'sequel' gem, which really simplifies db access https://gist.github.com/mcmoyer/5027882 On Jan 29, 2013, at 4:22 PM, Judah McAuley <[email protected]> wrote: > > Ruby is really pretty, it is a joy to read. > > There are some downsides to Ruby, however, and some things that CF does > that Ruby doesn't (like the ability to combine the use of positional, named > and optional arguments and argument collections in a function definition). > Ruby doesn't really have thread management. They've worked on performance > issues for a bit but there is a pretty vocal segment out there that says > that it hasn't been enough of a priority. That's behind some of the forks > of the language like JRuby which sits atop the JVM. > > Overall, I like Ruby and would like to do a lot more of it. Maybe not quite > as performant as the .Net code I'm doing in some cases, but in most cases > it doesn't need to be and the readability and maintainability is more > important anyway. > > Cheers, > Judah > > > On Tue, Jan 29, 2013 at 1:25 PM, Zaphod Beeblebrox < > [email protected]> wrote: > >> >> to me it is. >> >> There's so many things I do in ruby nowadays that aren't related to web >> dev. I use it for system admin quite a bit. I write scripts for my MythTV >> system in it. >> >> When I deploy sites, ruby's small enough where I can deploy to a 256mb VM >> so I'm able to use a new server for every app I create. I can deploy to a >> linode 512Mb slice without issue. I can have different versions of the >> language running on the same server if needed. >> >> ...and I love the syntax...To me it reads like English. >> >> >> >> >> >> On Tue, Jan 29, 2013 at 2:41 PM, Erika L. Rich <[email protected]> wrote: >> >>> >>> Is Ruby really that awesome? >>> >>> >>> >>> On Tue, Jan 22, 2013 at 7:38 PM, Zaphod Beeblebrox < >>> [email protected]> wrote: >>> >>>> >>>> I think you'd be hard pressed to find any Ruby developer that would >> want >>> to >>>> code in CF. I find it painful to go back to CF code nowadays and I did >>> it >>>> for years. >>>> >>>> Just today, I was testing out a gem that replaces your app's error page >>>> with a live connection back to the server inside the context of the >>> error. >>>> It allows you to manipulate objects and explore back up the stack >> trace. >>>> It's amazing stuff. >>>> >>>> >>>> On Tue, Jan 22, 2013 at 2:29 PM, Judah McAuley <[email protected]> >>>> wrote: >>>> >>>>> >>>>> Good luck with that. I think it is becoming increasingly difficult to >>>> find >>>>> experienced CF devs. It seems like, these days, you pretty much need >> to >>>>> either open up to telecommuting (not always possible on a contract >> that >>>>> requires clearance, I know) or find a good dev who you can train. I'd >>>>> consider maybe looking through the Ruby community as the languages >> have >>>>> some similarities around being script-based, duck typed and dynamic. >>>>> >>>>> Cheers, >>>>> Judah >>>>> >>>>> >>>>> On Tue, Jan 22, 2013 at 11:44 AM, Scott Stewart >>>>> <[email protected]>wrote: >>>>> >>>>>> >>>>>> Hey all, >>>>>> >>>>>> I need to ask some favors. The company that I work for is in need >> of >>>>>> mid and senior level ColdFusion developers for a DHS USCIS >> contract. >>> We >>>>>> haven't had a lot of luck with getting good candidates in the door. >>>>>> I've got two but I need two more. >>>>>> >>>>>> I'm posting this here, because posting on the jobs list is going to >>> get >>>>>> me more of the same, to be quite honest, and I wanted to reach out >> to >>>>>> people that I know are competent developers, to see if they know >>> anyone >>>>>> who's looking.. >>>>>> >>>>>> What we need is: >>>>>> >>>>>> Someone who has at least five years of experience. >>>>>> A US Citizen, it's a requirement for the contract. >>>>>> Someone who is clearable, and can maintain clearance. >>>>>> Versed in frameworks, although the in house one is very basic. >>>>>> Versed in CFC's and basic OO ColdFusion Development >>>>>> Some Agile/SCRUM experience would be nice. >>>>>> USCIS or DHS experience would be nice. >>>>>> >>>>>> They do need to either live in the DC Metro Area or be willing to >>>>>> relocate for a long term position. All work is to be done at our >> site >>>> in >>>>>> Tyson's Corner, VA. >>>>>> You would be an employee, we're not a recruiter or headhunter. We >>> have >>>>>> good benefits and competitive pay >>>>>> >>>>>> If you know someone, shoot me an email @ [email protected] >> , >>>> and >>>>>> I can send out the full req. >>>>>> >>>>>> Thanks all in advance. >>>>>> >>>>>> sas >>>>>> >>>>>> -- >>>>>> Scott Stewart >>>>>> Adobe Certified Expert / Instructor >>>>>> ColdFusion 8, 9 >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:361545 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm
