Updates from RSS Toggle Comment Threads | Keyboard Shortcuts

  • mcphersonz 1:37 am on November 12, 2009 Permalink | Reply  

    /etc/hosts file is reverting to a previous state in OS X?!? 

    Problem: I make changes to my /etc/hosts file — but they don’t seem to “stick”. They take affect, but after some time (hours, a day) the changes I made are lost.

    Solution: When changing the /etc/hosts file, make sure you are NOT connected to the VPN (at least if you are using Network Connect by Juniper Networks.)

    Story: For a long time I have noticed that when I make changes to my /etc/hosts file it reverts back to a old state at the end of the day (or eventually). It has been very annoying as you can imagine. I have been keeping all my entries in a separate file & add them to my hosts file when I need them. Ugg. I got a clue via aardvark that it may be VPN related.

    It turns out that when I disconnect from the VPN the hosts file reverts to the state it was in before I connected to VPN. Ahh…. but If I make changes before being connected to VPN, then they stick.  I would connect to VPN, make changes to /etc/hosts, then eventually time out or disconnect from VPN… poof! Changes are gone & the next day begins.

    This was not obvious to me because 99% of the changes I make to the /etc/hosts file require the VPN to work to begin with! In addition, I mostly work remote — so it is rare that I will be in the office (not connected to VPN) and make changes to my hosts file.

    Now I know to make changes to my /etc/hosts file before connecting to my VPN :)

     
  • mcphersonz 6:41 am on November 11, 2009 Permalink | Reply  

    UltraEdit released for Linux! 

    I am writing this post because I am excited to announce that one of my favorite editors of all time, UltraEdit, has just been officially released for linux!

    UltraEdit is a commercial text editor for programmers. It is full of features & in my opinion is the best choice for a commercial programmers text editor.

    Some Key features of UltraEdit include:

    • Group related files and folders with Projects
    • Column/block mode editing
    • Syntax highlighting for 100’s of languages
    • Find/Replace with regular expressions
    • Robust Find in Files and Replace in Files
    • Execute applications/shell commands
    • Function list for easy navigation in code
    • Code folding, brace matching, auto-indent
    • Large file handling
    • Automate tasks with Macros or Scripting
    • Unicode/UTF-8 support
    • Drag-n-drop horizontal/vertical split window
    • HEX editing
    • Configurable keyboard mapping
    • Recallable text snippets with Templates
    • File change detection

    For more info, check out the UltraEdit homepage.

     
  • mcphersonz 10:11 pm on July 28, 2009 Permalink | Reply  

    Chinny Fight! 

    I neglected to feed my chinchillas for a day — then I fed them & was surprised to find myself in the midst of a …… CHINCHILLA FIGHT!!!!

     
    • slopsbox 12:58 pm on November 2, 2009 Permalink | Reply

      Better be careful with that. I once negleted my 3 hamsters for a few days. Came back to only find 1 and a shitload of tiny bones.

  • mcphersonz 4:18 am on June 3, 2009 Permalink | Reply  

    Why I choose git over Perforce, SVN and other source control systems… 

    Here are the top reasons I am a git fan:

    - price. Depending in the implementation choice, it can be free (as in free beer!). Using a service like github.com to facilitate in a centralized workflow is super cheep. Currently for a year’s service for 10 developers we are paying about $25 a year per developer for the github service (and 20 “private” repositories). Scaled up a bit it’s relatively the same cost at $24 a month per developer for 1 year (100 developers, 300 private repositories).

    - cheap local branching, merging & tagging. It’s sinfully easy to do. As fast as you can 10 characters and a branch name, it is done. It’s all local, so it’s virtually instant. Easy branching means you are more likely to do it & that can lead to better development as a whole. Isolating a feature, bug fix or re-factoring into a branch as a standard can be very rewarding. Merging is relatively straight forward, fast & in some cases completely automatic. Tagging allows for you to give the code a name at any point in time — like “release 1.2″, or “hotfix”. You can very easily switch to a given tag (or any commit) and work on it via a new local branch.

    - Fast. everything is local. Besides syncing up with other people, pretty much every interaction with the source control is local. This becomes a huge time saver — and again, when it’s quick you are more inclined to use it. Branching, merging,  looking at code history and committing are all practically instant tasks. Yes, git is faster than most source control systems out there. Oh yeah, and all revisions of every file are always locally available for you to inspect. Again, this can be a big performance booster of you are comfortable with the command prompt. When you do need to do network opperations like pulls & pushes, it is also very fast. Git uses diffs and compression to make these also very fast. “raw, blistering speed.” Does that make you think of other source control systems?? no? didn’t think so….   :)

    - several workflows. You can follow the traditional centralized repository approach as we currently do with github. A master repository is designated, and people pull/push to that repository using it as a centralized sync area. This is very similar to the perforce workflow. Alternatively though, there is a “Dictator and Lieutenants” workflow that basically allows for anyone to sync up with anyone else’s repository. A “circle of trust” is applied here each developer trusts other developers in their commits — and each developer trusts certain people with that they have contributed. This works well for larger groups. Think of a triangle scheme, with the sr. developer (the dictator) trusts a few others (lieutenants), and those lieutenants each trust a few others, etc.

    - easy to learn. You basically learn what you need to do your tasks. You may only need to do a few things with the files you are putting under source control. Maybe you only need to know “git pull”.  If you only need to make sure you have backups of a file locally then you only need to know 1 or 2 commands. Done. If you are a source control master, there’s more git functionality than I can shake a stick at…. I get by using probably 2% of git’s core functionality. And when I need more, I do a google search & there’s a ton of user contributed info on how to accomplish a given task at hand.

    The important thing to note here is that git has some major benefits in certain cases & although it is not for everyone, I think it has some major wins in certain situations.

    As Mr. Natural said “Get the right tool for the right job”. In other words, one tool may not be a good fit for any job at hand.

    Oh yeah, github.com is the bomb. Look out for http://fi.github.com. It look killer if you need a github UI but internally (possibly due to corporate policies / restrictions)

     
  • mcphersonz 8:39 am on May 13, 2009 Permalink | Reply  

    The RSpec Book by David Chelimsky, Dave Astels, Zach Dennis, Aslak Hellesøy, Bryan Helmkamp, Dan North 

    I felt compelled to post this because this book is just great & I wanted to share it with anyone who is interested. If you are just getting into behavior driven development (BDD), RSpec or cucumber then I have a book to recommend to you! Having heard nothing but good things, I recently purchased “The RSpec Book” by David Chelimsky, Dave Astels, Zach Dennis, Aslak Hellesøy, Bryan Helmkamp, Dan North from Pragmatic Programmers.

    It’s a easy read that is packed with great tips on how to approach BDD – as well as detailed info on rspec’s features, and tons of other very useful stuff.

    The book is in beta right now (not finished) but you can purchase & get the PDF right now. As updates are made you can re-download the PDF. Once the book is actually finished as paperback will be sent to me. I can’t wait!

    Worth mentioning is that I  am just a fan — not affiliated with anyone who makes money from this, nor do I make any money for posting this or my website in general. :)

     
  • mcphersonz 8:32 am on May 13, 2009 Permalink | Reply  

    Key Features for Rails v2.2, Rails v2.3 and the upcoming Rails v3.0 

    Rails 2.2 new features of interest
    - Ruby 1.9 and JRuby support
    - Transactional Migrations that allow multi-step migrations to be rolled into a transaction.
    - Memoization for caching methods for a request. Allows caching based on passed params as well.
    - *!* Connection Pooling lets Rails distribute database requests across a pool of database connections
    - find_last_by_attribute finder, for example to get the last user who signed up from London:  User.find_last_by_city(‘London’)
    - Layouts for ActionMailer – you can now use layouts in your ActionMailer views.
    - *!* To avoid deployment issues and make Rails applications more self-contained, it’s possible to place copies of all of the gems that your Rails application requires in /vendor/gems.
    # rake gems:install to install missing gems to the computer
    # rake gems:unpack to place a copy of the required gems into /vendor/gems
    # rake gems:unpack:dependencies to get copies of the required gems and their dependencies into /vendor/gems

    Rails 2.3 new features of interest
    - ruby 1.9.1 support
    - Engines allow for nested rails applications.
    - Metal allows you to define a area of code that completely bypasses most rails things – does not go through routing, no logging, etc – for areas that need high performance or that get called frequently.
    - Nested transactions within ActiveRecord
    - Dynamic Scopes: Order.scoped_by_customer_id(12).scoped_by_status(“open”)  — no definition needed for dynamic scopes, just works.
    - Multiple Conditions for Callbacks. When using Active Record callbacks, you can now combine :if and :unless options on the same callback, and supply multiple conditions as an array:
    for example: before_save :update_credit_rating, :if => :active,  :unless => [:admin, :cash_only]

    Rails 3.0 new features of interest (David Heinemeier Hansson KEYNOTE FROM RAILSCONF09)
    DHH’s Philosophy of rails 3:
    - Lock up all the unicorns. You can’t please everyone all the time, so don’t focus on the unicorns.
    - No holy cows. Nothing is sacred in rails & everything is up for debate. Don’t look any anything we have & feel like that is the way it has to be.
    Major Themes:
    - New routes. Faster, route by subdomain, user agents, etc. Rack to other rack machinery.
    - XSS protection (cross side injection). By default all output in views will be escaped. No more use of <%= h something %>. Assumed by default.
    - Javascript goes Unobtrusive & Agnostic. Much less JS is injected into page & instead unobtrusive JS is used to achieve same effect.
    - More Agnosticism.
    - Action ORM is a slim proxy wrapper for ORM tools that allows for easy swapping of ORM implementation,
    - Generators (script/generator) will for example allow you to specify that rspec is used, so script/generate model will create a rspec test file for model.
    - Refactoring
    - Abstract Controller takes similarities between for example ActionController & ActionMailer and combines them into one code base.
    - Cherry picking from ActiveSupport allowing you to pick parts that are used instead of pulling in the entire library.
    - Increased performance / speed with callbacks.

     
  • mcphersonz 8:30 am on May 13, 2009 Permalink | Reply  

    Recommended Gems, Plugins and various notes on what’s hot in the ruby on rails world 

    Performance Optimization
    ————————
    - optimization doesn’t end with speeding up my Ruby code (or Rails itself).
    The performance of production application heavily depends on its environment – server filesystems, databases, load balancing solutions.

    Testing
    ——-
    - use gems like UnitRecord or dust to cut off the database for unit testing. Mock all unit tests out to speed things up drastically.
    - to scale large tests you can offload them to remote BAMs(Bad Ass Machines), or send tests to multiple processors. Deep Test allows you to spawn multiple remote threads to run functional tests
    - to benchmark a specific url you can use the ab (Apache HTTP server benchmarking tool) command:  ab -n 100 http://localhost:3000/quick_reply/list
    - Errorlytics web service detects 404 errors via JS & redirects user based on rules that you define at errorlytics.com – http://www.errorlytics.com/
    - Using factories instead of fixtures.
    - Fixtures are more brittle & they seperate the data from the test, creating a assumption that the data already exists & is correct to begin with.
    - Factories …. Fixjour, Factory Girl, Object_daddy and Machinist are plugins that aim at creating factories.
    - Cucumber tips: http://media.railscasts.com/videos/159_more_on_cucumber.mov

    Cucumber
    ——–
    - Write tests first, the run cucumber. To run a specific feature run: cucumber features/name.feature
    - Use output of cucumber to create stub step definitions.
    - Make each test pass, from the top down.

    Feature: title
    In Order To [business value]
    As a [role]
    I want to [action] some feature

    Scenatio: title
    When [context]
    And [more contect]
    When I do [action]
    And [other action]
    Then I should see [outcome]
    But I should not see [outcome]

    Database
    ——–
    - CouchDB is a new way to think about database storage. Schema-less design. http://couchdb.apache.org/

    Video / Screen / Pod casts
    ————————–
    http://railscasts.com/episodes
    http://peepcode.com
    http://pivotallabs.com/talks/
    http://www.railsenvy.com/podcast
    http://confreaks.com/events

     
  • mcphersonz 10:10 am on March 21, 2009 Permalink | Reply  

    Favorite applications for OS X, Ubuntu and Windows 

    <!–
    Below is a list of my favorite applications for either OS X, Ubuntu linux, or Windows.

    When I moved from windows to Ubuntu I kept looking for software that did what my favorite windows applications did. Similarly when I moved to OS X from Ubuntu I looked for more software that met my needs in Ubuntu or Windows. Although there are generally less options for OS X software, what is out there (or built into the OS) seems to work just as well or better than what I have been used to in my former favorite operating systems.

    Here’s a list that I put together based on software that I use & applications that I would recommend for the three operating system types that I have had daily experience with.

    Functionality OS X Ubuntu Windows
    Audio Backup (create MP3) iTunes Audio CD Extractor FreeRip, iTunes
    Calendar iCal Thunderbird, Evolution Outlook
    Data Backup Time Machine Time Vault DataKeeper, Norton Ghost
    Database Development MySQL Administrator, SQLDeveloper MySQL Administrator, SQLDeveloper MySQL Administrator, SQLDeveloper
    Drive Manager / Partition Disk Utility.app gparted Partition Magic
    Drive Usage Mapper Disk Inventory X.app Disk Usage Analyzer Drive Doppler
    DVD Movie Backup JackTheRipper k9copy DVDShrink, RipIt4Me
    DVD Player DVD Player.app Totem PowerDVD
    Email Mail.app, Entourage Thunderbird, Evolution Outlook, Eudora
    FTP Client Transmit gFTP FlashFXP, CuteFTP, WS_FTP, Filezilla
    FTP Server built in FTP server built in FTP server GuildFTP, Serv-U
    Graphic Manipulation Gimp, Photoshop Gimp Gimp, Photoshop, Paint Shop Pro
    Instant Messaging Adium, iChat Pidgin, Gaim Trillian
    Media Player VLC, QuickTime Player.app VLC, Totem VLC, MediaPlayerClassic
    Music Player iTunes Totem, Rhythmbox WinAmp, iTunes
    Office Suites Open Office, Microsoft Office Open Office Open Office, Microsoft Office
    PDF Viewer Preview, Acrobat Acrobat Acrobat
    Peer to Peer / Fileshare Azureus/VUSE, Acquisition, BitTorrent Azureus/VUSE, Transmission Azureus/VUSE, Shareaza, LimeWire
    Photo Album iPhoto F-spot ACDSee
    Programmer Text Editor TextMate, TextEdit Kate, Komodo, Gedit UltraEdit, EditPad, Notepad
    Remote Control VNC, Screen Sharing.app, CoRD VNC, Remote Desktop Viewer VNC, Remote Desktop
    Terminal Client Terminal.app gnome-terminal Putty
    Video Editing iMovie avidemux VirtualDub
    Virtualization VMware Fusion, VirtualBox VMware Workstation, VirtualBox VMware Workstation, VirtualBox
    Web Browser Firefox, Safari Firefox Firefox, IE
     
  • mcphersonz 9:52 am on March 7, 2009 Permalink | Reply  

    Finally made the switch to the other side… (AKA: a former windows user that moved to Mac OS X) 

    It’s official. Apple’s Mac OS X is my favorite operating system.

    Here’s the story if you are at all interested:

    My first computer was a Apple IIe (that was before windows existed, of course). I then had a Mac SE (released around the time Microsoft windows was released). My parents then bought me a killer computer – it was a 100 mhz 486 that ran Windows 3.1.

    I used windows for another 15 years. Windows 3.1, Windows 95, Windows 98, Windows 98se, Windows NT 4, Windows 2000, Windows XP…… Wow. Been there, done that. It was cool for a while because I didn’t know a lot. I kept learning & kept using windows.

    Over and over again I had to deal with the same old Windows crap. Bad performance. Bad UI. Bad experiences in general…

    So I looked for alternative solutions. I was anti-mac for a long time. I had hard feeling about mac because of the lack of software at the time, the proprietary hardware, the lack of auxiliary hardware, the high prices…. well almost all of that has changed (basically everything but the high prices).

    I made a dedicated switched to Ubuntu a few years ago – meaning that I ran it as my primary OS & basically only ran windows when I had to & would do so via a virtual machine anytime I could. Ubuntu Linux is a beautiful operating system & idea in general. It has huge potential & has had a huge impact in the overall acceptance of Linux based operating systems.

    I can’t say this enough. I love Linux. I also love OS X…

    About six months my employer bought me a MacBook Pro. My goodness, I have not looked back.

    Not only is it basically built on Linux, OS X has an amazing GUI and unparalleled stability. That’s what sold me. The GUI is more intuitive & less obtrusive then any windows or Linux solution I have ever encountered.

    Compatibility is also amazing. Many Linux apps run under OS X, and if I ever need to I can run windows & ubuntu with great performance via virtual machines.

    Stability is better than windows or ubuntu with my experience & my usage patterns. Adding and removing software, tweaking settings, applying system updates, etc all seem to not affect my system’s stability. Rarely do I have to restart my system or end applications.

    Toss windows. Embrace Linux. Use OS X.

     
    • Jim Schimpf 6:33 pm on March 7, 2009 Permalink | Reply

      Congratulations, you made a very good move. The time you spent with Ubuntu and switching when necessary to Windows is just what you need with OS X. There will always be something that you need that won’t be available in OS X. Unlike others you won’t just quit OS X, but just boot up Windows and “get’er done”. There is a huge lack of choice in OS X which I actually like, I just use it and don’t spend time tweeking it.

      Also your now developed Linux reflexes will most often be right in OS X. And now I put on my “Well actually hat”. The great similarity of OS X and Linux is because they have the same UNIX heritage. OS X came out of the BSD tradition so will be different in philosophy in some things than Linux. They are the same more than different and I am more confused by Windows these days.

    • Daithí 2:46 pm on May 12, 2009 Permalink | Reply

      Hello.
      I’m kinda in the same situation, allow me to explain…
      Being a Linux (ubuntu and debian) user for years, and being Linux my favourite OS so far, there are things that, unfortunatlly, make the Linux OS still not desktop ready. My laptop, a 2 year old Sony Vaio, works way better in Linux than with Vista (it runs faster, more stable, the battery lasts longer, all hardware is supported out-of-the-box, etc). But, Ekiga doesn’t work as good as VoipBuster (audio quality and stability), Skype is years back when compared to the windows version, hardware support is very very good, but not as good as it should be, PluseAudio is still not ready for it, and I have an iPod Touch 2nd that makes me sometimes boot Vista to sync and update. So, for a guy like me that loves the Gnome interface, the *nix chassi, and every other positive aspect about the linux world, I’m guessing that the way to go is Mac, because I do not want to go back to Windows and I want something that is similar to Linux but without its weak points..

      …But….

      I have no mac experience (I’ve tried it 10 mins and found it hard – yes, I’m really saying that), I don’t want an OS that will treat me like a newbie hiding the tech stuff and showing me only happy and undetailed warnings, I want to continue to use free software alternatives (in windows there is a lot of good freeware that does a better job than some comercial apps), and I want an SO that doesn’t keep doing things in the background (windows again).

      Is the mac really the best choice for me!? I don’t wanto to be stuck with a cute laptop with the base OS because I woun’t have money to buy expensive software to do what I always did for free….

      • Anonymous 3:47 am on May 13, 2009 Permalink | Reply

        Daithí, I know it can be a bit painful to make the transition, but it is well worth it!

        I feel compelled to give you a nice lengthly response because this is something I feel compassionate about. I am a recent convert after over a decade of windows use spackled with linux experience & after about a year of OSX usage as my main personal & business OS of choice I am convinced this is the best OS for my needs at this current point in time.

        I agree that most linux operating systems out there still have a way to go for them to compete with Mac OSX or god forbid windows for most of us….. I do not want to go into the specifics because that is not the point of this post but I will say that when I went from windows to linux I was happy, but when I went from linux to OS X I was happier. Don’t get me wrong, I absolutely love linux and everything it stand for but for day to day use I find OS X more pleasant, intuitive and … reliable given my day to day usage & usage patterns.

        I _hated_ apple and mac for over 10 years. Then eventually I noticed that a lot of people in my community (ruby developers, graphic designers, …. casual users) started using it — a lot.

        The UI does take some getting used to but with time I felt that it was superior to other UIs I have worked with.

        I had to get used to using the apple/command key (Alt) instead of the control key for most commands….. CTRL+A, CTRL+C, CTRL+N, etc. Took a while, but I feel comfortable with it now.

        I only have a mac laptop — a macbookpro — so I had to get used to no more page up/down, del/insert, home/end buttons. That was a drag, but I learned equivalent keyboard shortcuts. That sucked, but I feel comfortable with it now.

        OSX hides stuff because that is what a good OS should do: be as unobstrusive as possible. The operating system should be transparent — you should not have to see or deal with it unless you need to. I think that is what OS X does & it feels right once you get used to it. Now when I switch over to my ubuntu (or umm…. winblows) system at home I feel like the OS is always announcing itself….

        That said, OS X has a lot of linux behavior in it — file structure, command prompt, services, etc. It has a ton of stuff that can be configured under the hood just like any other linux OS. It is extremely powerful & very customizable.

        As far as free software there is a ton of free software out there. Many people over the last few years have released some killer free OS X software. Most of what I use is free (or even better build in to the OS). I did buy a copy of TextMate (the best text editer out there), Office (for Word, Excel, Powerpoint, etc), and VMware (for virtualization). I think you have to but most of that stuff in windows — for linux there are always free alternatives. On the flip side, the way I look at it is that by buying software you are supporting developers — the very people that make that software possible. If it where not for developers, none of this stuff would be around. It’s quality software as well. None of this MS crap…..

        I can’t speak for you but the mac was the best choice for me. I got it for free from my employer, and I would buy one for myself if I did not have one already. The next desktop I buy may just be a mac. Oh, and as a added bonus yes, my laptop looks slick compared to the other bulky, boxy, thick & plastic laptops that I see out there. That’s insult to injury right there!

        :)

    • Daithí 3:40 am on May 14, 2009 Permalink | Reply

      Anonymous, thanks for the reply, really apreciate :)
      Well, you are answering to all my questions with your post… About the free software, don’t get me wrong, I want to support good work from developers, I meant to say that I am not like some people that, for example, do some casual word processing and for that are going to get the latest MS Office version (ilegal) for their 4 year old computer, when they could use OpenOffice for that! If there is free software that doesn what I want I’ll stick with it, otherwise, I’ll search for paid alternatives.

      About the OS announcing itself, well, that is relative… With Vista it announces itself everytime it is idle (my poor poor hard drive), Linux announces itself by not making your life very easy (but in a positive and good way!) and making you go deep in the OS and expand your knowledge. I’m afraid to start do get lazy with OSX :p

      “when I went from windows to linux I was happy, but when I went from linux to OS X I was happier” – This my friend, this says it all! Although I do not have a rich mac experience, I guess that this will be happening to me. Having a fully supported comercial *nix OS without the things that, unfortunatelly, are still wrong with linux will make me the most happy guy on the planet!

      Cheers

  • mcphersonz 3:01 am on August 27, 2008 Permalink | Reply  

    autotest+mumbles for Growl like notifications 

    I was working with a colleague today who was kind enough to introduce me to autotest for continuous test integration. Change a file in your app & tests are automatically run for you… Nice.

    my mumble alert

    screenshot of my mumble alert (top-right)

    One thing that really stood out aesthetically was how status messages were passed to Growl (in OSX) for eye-pleasing popup notifications outside of a terminal window.

    Being a ubuntu user, I started looking for a similar solution for linux. It turns out there is a great utility for linux that resembles Growl — it’s called Mumbles. The challenge was getting Mumbles to work with autotest.

    After searching google, I found one post that got me started. This is a good post, but I had to fill in a few blanks to get everything to work.

    Here’s what I did:

    1. Install ZenTest:
    • sudo gem install ZenTest
    1. Install Mumbles
      • grab the latest .deb file or source from the mumbles-project page:
      • wget https://sourceforge.net/project/showfiles.php?group_id=193587&package_id=227998
      • test out mumbles by running:
      • mumbles &
      • mumbles-send ‘a title’ ‘it works!!’
      • assuming mumbles has been installed correctly, you should see a little notification pop up. I recommend that at this point you add mumbles to your system session so it will start when you login to ubuntu.
      • gnome-session-properties
      • add -> “mumbles” for name & command -> ok
    2. Install ruby-dbus. I could not find a gem, so install manually:
      • irb
      • irb(main):001:0> require ‘dbus’
      • => true
    3. Create a .autotest file in your application root directory (or your home directory to make the settings global) Thanks to CaffinatedCode for this script — they wrote it:
    • require ‘dbus’def send_message(title, message, icon)
      begin
      bus = DBus::SessionBus.instance
      mumbles_service = bus.service(“org.mumblesproject.Mumbles”)
      mumbles = mumbles_service.object(“/org/mumblesproject/Mumbles”)
      mumbles.introspect
      mumbles_iface = mumbles["org.mumblesproject.Mumbles"]
      sig = mumbles_iface.signals["Notify"]
      bus.emit(mumbles_service, mumbles, mumbles_iface, sig, title, message, icon)
      rescue Exception => e
      end
      end

      Autotest.add_hook :ran_command do |at|
      begin
      output = at.results.last.slice(/(\d+) examples?, (\d+) failures?(, \d+ pending)?/)
      if output =~ /.*[1-9] failure.*/ then
      send_message(“FAIL”, “#{output}”, “fail.png”)
      else
      send_message(“PASS”, “#{output}”, “pass.png”)
      end
      rescue Exception => e
      end
      end

    Now for the fun part. From within your app root, type:

    autotest

    If everything works out, you should see a few things flash by – I get a error about “Insecure world writable dir” in my home dir. I just ignored that. After that, you should see a test summary in the terminal window, followed by a mumbles popup notificaton. Kick ass!

     
    • joban 10:27 am on December 31, 2008 Permalink | Reply

      cool topic .. really helpful !!

    • khellls 11:09 pm on January 9, 2009 Permalink | Reply

      where did u put the icons? cause for me i couldn’t c the icons

    • Shannon McPherson 12:17 am on January 11, 2009 Permalink | Reply

      I think I put the images in the same location as I put the script from step 3 — so either in your application root directory or your home directory. I can’t confirm though, because I traded in my t60 with ubuntu for a nice macbookpro — have not looked back since!

      (still running ubuntu on my home machine — but I never configured mumbles on that one)

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel