Posts Tagged ‘Ruby’

nwrfc 0.0.8 gem is out

Friday, June 5th, 2015

I have just published a new version of the nwrfc gem with (as usual) very minor updates.

Ruby wrapper for NW RFC SDK using Ruby-FFI

Friday, February 17th, 2012

I have just started a project on GitHub for a library that I am writing which wraps the NW RFC SDK library using Ruby-FFI.


Javascript-style object-value assignment in Ruby

Monday, January 23rd, 2012

While I was working in Javascript extensively for a project, one of the things I really liked about it was how you could use the dot notation to access members of an object, just as you would call methods. After that, I would often find myself in an IRB shell, absent-mindedly trying to do the same thing with a Ruby Hash, only to be thrown a NoMethodError. The first reaction might be: “Ah, if only Ruby had this feature like Javascript does.”, but of course, it can!


Nice web server script to serve any directory using WEBrick

Wednesday, June 22nd, 2011

At present, I am doing some web development in the form of a rich Javascript client. Now I have a need to serve up pages locally, but I don’t want to run a heavy web server just for that. So I wrote a little Ruby script to allow me to start a WEBrick server in any directory on the fly, which is great for testing content locally.

ABAP source code search continued

Monday, January 11th, 2010

It’s been about half a year since I wrote about building a custom ABAP source code search using Ruby and Ferret. The other day I had a little time to resurrect the project, and I thought I should tell you a little about my findings.


Bitmap font tileset with Ruby and Imagemagick

Saturday, July 11th, 2009

My latest undertaking is writing mobile apps with Java ME. A problem I bumped into was creating tiles for bitmap fonts to use for displaying text in an application, in lieu of the Graphics.drawString() method, which may not always produce the most suitable output. Here I show you how you can use a Ruby script combined with ImageMagick to create a usable bitmap font tileset for your app.

Improved ABAP Source Code Search

Friday, June 19th, 2009

In my last post I showed you how to create your own searchable index of ABAP source code using Ruby in conjunction with the Ferret and saprfc extensions. Today I am going to show you a hugely improved version that will reduce the indexing time and give you a nicer search interface. (Amazingly, this whole thing came in rather handy for me in the last week!)

Custom ABAP source search with saprfc and Ferret

Friday, June 12th, 2009

Today we are going to build our own search engine to search through ABAP source code on an SAP system using our favourite language – Ruby! (With the help of some nice libraries). Sure, there is the “Find in source code” option in SE38, and apparently you can use TREX as well, but this is much more fun.

UPDATE (19 June 2009): Refer to the next post for an improved version of the solution.


Paperclip: Adding an annotation to an uploaded image

Monday, July 7th, 2008

This is a little late-night hack for my late-night project I’m doing for a friend. I’m using Paperclip for uploading image attachments, and one of the requirements was to add some text (watermark or annotation or whatever you call it) to an image to indicate the website as the source of the image.


Netbeans 6.0 M9 – now with Ruby + Rails support!

Tuesday, May 15th, 2007

Oh boy, it seems everyone is jumping on the bandwagon! I’ve just been over to Netbeans, where I saw that there is a preview release (M9) of Netbeans 6.0, and lo and behold – Ruby and Rails support! Mind you, I never bothered to check whether someone had created Ruby/Rails plugins for Netbeans, so I’m not sure whether this is the culmination of long-term work from another project. It sure comes as a surprise to me! (more…)