…what we released to our user, they'd only be able to print receipts if they knew how to use an IRB prompt. That might seem ridiculous, but we've gone a long way to solving the problem, and we could probably spike a simple script that let them do it from the command-line without much risk.
For our second iteration, we can talk to the customer about that command-line interface, then write a new implementation of VetsHelper , perhaps using some of Aruba's DSL, which goes through …
Customizing IRB, 2010 edition. IRB customization with wirble , hirb , awesome_print and a few others choice libraries. What makes Iain's .irbrc so awesome is the way it handles loading of dependencies (which may or may not be available).
A few git tips you didn't know about. Guaranteed to make you a Git Ninja, or at the very least, much more productive with the command line.
Terminal Tips and Tricks For Mac OS X . Just what it says on the label.
Armed Robots Deployed By South Korea in Demilitarized Zone on Trial Basis | Singularity Hub - Okay, science fiction is truly here today. Thinking of the voice activated robot sentries in Judge Dredd.
Customizing IRB, 2010 edition at Adventures with Ruby - Updated .irbrc to include a bunch of new hotness for your irb sessions
…terminal. While I'll save my terminal customizations for another time, I'll show you my IRB tweaks in this post.
There are several tools to improve your IRB, and some of them have been around for ages. But the arrival of Bundler makes it difficult to use them. Bundler creates a bubble in which you have to specify your dependencies explicitly. Furthermore, with project specific gemsets, provided by the ever so awesome RVM , we need to install these IRB extensions …
To make sure that RubyCocoa you'll need to pop open an IRB session: irb require 'osx/cocoa'
If everything has gone well, you'll see the shell return ‘true' and you're ready to install the Passenger Preference Pane
Installing and Configuring Passenger
Note: If you already had a development environment up and running, you'll need to re-install your gems into the new RVM'd environment. When installing a gem into an RVM'd environment, …
So go back to your IRB session and evaluate the following statements: # Set the user name and correct password o = { :username=>'admin', :password=>'camping'}
# Post to the Sessions resource p0 = Restr.post(u0,o)
In TcpTrace you should see the request and the response containing the serialized user:
In IRB you should also see the returned user instance, deserialized from XML
7. Finish the REST Sessions controller
The remaining part of our …
For our first test consumer will use IRB, so open up a session and let's define 3 variables for: url of our provider, key and secret (use your own values) of our registered consumer: @ site={:site=>"http://localhost:3301"} @ mykey="SQnIXDQyhFB5q3wfZyMY" @ mysecret="PmW02FNs7rXG97sAVXMWhFoJVZ98cnj21vv6p1ad"
Now let's require oauth and let's instantiate an OAuth consumer: require 'oauth' @ consumer = OAuth::Consumer.new(@mykey,@mysecret,@site) …
…demonstrated with this simple toy example. (Also, you can easily follow by copying and pasting the code to IRB and play with it.)
What do you do once you discover that you also have to apply the same formatting to a Set in a different location of your program? Right, you make it a function and write something like: def format_list(enum) puts "<ul>" enum.each do |x| puts " <li>#{x}</li>" end puts "</ul>" end
In other …
Also in this release, we've fixed a bug where IRB would try to parse shef's command line options, and made rspec and cucumber optional when installing chef from source. It should be much easier to ride the edge, if you so choose.
We are also releasing Ohai 0.5.4. We were so busy getting our last release out the door that we didn't take time to announce all of the improvements in Ohai 0.5.2, so I'm going to talk about the improvements in both releases. The MVP for this …