seawolfsanctuary

home :: blog :: rss feed :: identi.ca / twitter :: diaspora* :: last.fm :: rss

RVM + rSpec = Compatibility Fun!

September
26

rSpec lightbulbRubyists make a decision which version of which flavour is their preferred, either generally or for that project. But, does it not seem that sitting inside their chosen one a little closed-minded and unfriendly to others’ preferences? It does to me, so I’m combining the magic of RVM with my rSpec testing to make my software cross-version — and even cross-Ruby — compatible.

Read More

April
25

RVM: Ruby Projects in a World of their Own

March
19

RVM LogoWhether you’re just starting to use Ruby or have been for a while, when you pull in the first Gem you had better be using RVM, the Ruby Version Manager. Why? Well, RVM allows you to easily set-up not only multiple versions of Ruby but also per-project sets of Gems, and for you to seamlessly switch between them. By having a number of persistent Rubies on your system simultaneously, each project lives safely in it’s own world so you can reliably separate and distribute them without leaving anything out. All this can be done away from your system’s own Ruby version and Gem set, too.

Read More

On Firewood And Kindling

November
27

Thursday saw the latest monthly meet of Linux users in and around Chester; its Liverpudlian counterpart to follow this Wednesday. A member of each has recently added to their gadgetry a popular proprietary electronic book reader, the Kindle from onile retailer Amazon.

KindleThe thin, “revolutionary wireless reading device” aims to bring books into the digital age, both at leisure and on the move. A user purchases texts from Amazon’s online store or transfers DRM-free PDF documents to the device to read on it’s non-glare, paper-simulate screen. The wireless networking and 3G mobile Internet features are both free and world-wide, attractive to techies and non-techies alike to provide new and previously purchased material instantly, along with full Internet access on the go. Amazon even foot the 3G bill in the hope of re-cooperating enough from store purchases. All in all, the Kindle - and other eBook readers I dare say - is rather tempting to commuters and those wanting to travel light, taking all the good bits of a good book and rounding off the inconveniences of a cumbersome paper companion with modern technology.

KindlingSounds too good to be true? Possibly. I’ve recently reopened James Fray’s a million little pieces, and soon to start its sequel, my friend leonard. Both are available to buy as eBooks but for double what I paid for my second-hand paperbacks. Also on my reading list are crime fiction novels from Christopher Brookmyre and Jonathan Kellerman, only a selection of which are available electronically. Somewhat expected given they are hardly world-renowned classics! As are most of my personal PDFs, technical references that quickly become irrelevant as technology progresses. To compound this, any future downloads would be in the proprietary AWZ format, which may restrict me in the future should Amazon decide to lock-down. On the plus side, they can be read on other devices like my netbook and my Android mobile phone through Amazon’s Kindle application (which is sadly not available for Linux).

So: the perfect travelling companion if it can give you what you want. Until the issues are resolved, I’ll stand by my trusty netbook for a good balance of power and portability, alongside my paperbacks for availability and financial realism.

The turning point? Perhaps it is one already on the horizon: daily newspapers. When done with my book, I regularly read the… easy on the mind Metro and regional daily Manchester Evening News during my lunch-break or on the train home from work. If these were delivered to a Kindle everyday for a negligible amount alongside my livre du jour, I would become again interested. The Financial Times, Independent and others are already published in this way through a subscription, but I personally doubt my selection are considering such a distribution given they are already free and widely available. To those I say: prove me wrong.

Ruby/GTK+ Development in SliTaz: Part II

September
03

Last time, we got off to a flying start with a simple desktop application powered by Ruby. We shall run through completing the wizard with a simple selector widget (a spinner) and displaying that result in the final page. This is just to use one of the many widgets, show off the wizard and how to do some magic in it.

Read More

Ruby/GTK+ Development in SliTaz: Part I

August
27

One of my recent adventures has led to packaging the bindings I promised, so you can now develop GTK+ desktop applications that are powered by Ruby! The package I created is for SliTaz Linux, which I’ll be using in this series of posts to get you up and running. We shall walk through the process to get a basic application designed, built and running with the help of a couple of tools. I came up against a couple of problems just setting it up but this was new territory to me!

Read More

Ruby, Gtk+ & SliTaz… Nearly!

August
22

Just shy of two days was enough to let me make the lives of Ruby scribblers using the ever-awesome SliTaz Linux distribution that little bit sweeter. Sure, anyone with Ruby and its add-on system RubyGems can run web apps via Ruby on Rails in a snap, but what about desktop apps? Well…

Coming soon to a package manager near you:
GTK+ logoRuby logo
Ruby/Gtk+ !

The package is oh-so-very-nearly ready to be uploaded to the servers - I’ll just tidy up the build instructions a little and await a little feedback from the adventurous, before-hand. The only thing you devs will need to do is install the ruby-gtk2 package alongside the Gtk+-dev stuff and include one of these lines at the start of your Ruby code, depending on which bit you want:

require 'gtk2'
require 'libglade'

As I’m using Glade to design my interface for me (stop laughing) I also used the slightly older LibGlade library, which is being replaced by GtkBuilder, with a tool to link them together. It still works very well though, as I shall demonstrate in a couple of future posts on the subject.

Stay tuned!

Who Are You? And What Do You Want (to do with my stuff)?

May
10

Close to a Facebook logo Facebook has been hitting the headlines recently as users are enraged, frustrated and disappointed by the ways in which the company handle the users’ data. Well — according to Facebook’s Terms of Use the data doesn’t really belong to the user but Facebook Inc., the company behind the site. Go and have a quick read through them if you don’t believe me; you may be surprised at what you find…

Let’s start with the basics. Facebook’s Terms Of Service state that not only do they own your data (section 2.1), but if you don’t keep it up to date and accurate (section 4.6), they can terminate your account (section 14). You could argue that the terms are just protecting Facebook’s interests, and are not in practice enforced, but in the context of their other activities, this defense is pretty weak. As you’ll see, there’s no reason to give them the benefit of the doubt. Essentially, they see their customers as unpaid employees for crowd-sourcing ad-targeting data.

(Source: Gizmodo.)

Since the privacy settings were overhauled last year (and the year before, probably the one before that too), the Terms of Use have been altered slightly, step-by-step, with more and more control over the user and their data. The virtual-social hub of millions of teenagers, twenty-somethings and even the Silver Surfer has arguably turned from networking-do-gooder to personal-all-knower.

Sound harsh? Step back a little: your data on Facebook is your name, photos, friends, what school/college/university you attended, when you were there, what you send via message or post to your friends, what the say back… everything on the publicly-available website. I think this video says it best.


Fossunet

I’ve started using a free alternative, Fossunet. It is much the same comparison to Facebook as identi.ca (Status.net) is to Twitter in the micro-blogging world; the former being an open platform providing the same, if not more, functionality. Okay, Fossunet isn’t as developed as Facebook quite yet, but it shows a lot of promise. One could argue that only third-party application developers is what is needed to make identi.ca really steal Twitter’s thunder.

The real difference between corporate entities and the more open alternative is this: your data should be your own. We have this freedom in the real world; for example, when we introduce ourselves to a fellow dog owner in the park, we don’t expect to take our photograph and staple it to every lamp-post in town. That may sound silly but if you put information on Facebook for your friends’ benefit, Facebook can do exactly that. Not very respectful unless you happen to be running in an election.

Creative Commons: Build a Sharing CultureBy using free and open alternatives to the ‘because everyone else is’ mainstream, we can each ensure we are treated on our own terms. If you don’t like how they treat you, fork off. (Forking is the term used when a free product is duplicated by another person/company and run alongside, on their own.) We are even free to license our own content and data as we see fit, with the option of reproducing the whole site for ourselves if they don’t agree. The two sites here are licensed under slightly differing Creative Commons licences, like many on-line projects and creative media. This entitles you to have a look at how they work, fiddle with them on your own should you so wish, and even launch one of your own. I implore everyone to take a critical look at the services they use and consider: is there a better alternative? (Maybe not just in ethics and freedom, but perhaps features or even price!)

On Your Docs, Set, Sprint!

April
30

Writing

Internet giants Google run a Summer of Code programme, in which ‘students’ each work on an open-source project, guided by mentors from their selected project. It’s a fantastic idea with good momentum and hype behind it; 3,400 students in nearly 100 countries have been accepted since its 2005 inception.

On the back of this, an article recently asked where the “Summer of Documentation” was; this gave me an idea. My favourite lightweight Linux distribution, SliTaz, is a young but already-excellent product, but is in need of a little TLC. @jpeg recently posted on the SliTaz Forum that the handbook and cookbook have not seen quite as much attention as they deserve, especially with the release of the latest SliTaz 3. I’ve advised developers in a previous post to shout out how great their efforts are with (better?) documentation; SliTaz deserves to show the world how simple and easy-to-use/fix it really is and I think this is a perfect way to do it.

So… :-)

Read More

I’m Free!

As a software developer, the issue of copyright and distributivity can be a contentious issue. Some coders want to keep total control over their work, others want to share it among users.

Handshake

Usually, software developed in a proprietary manner; I define this as many developers working for one company, which hides the wares from anyone else. This one company wants to capitalise on their idea — and efforts — only for commercial gain. Secrets agreements or clauses in contracts Often binds the development team and their efforts to that one company; many developers work for just one cause, their employer.

I understand perfectly that this enhances the reputation of the company and arguably their value to the field for producing their wares. But why constrict the clever chaps (and chap-esses) to just that one company? They can show off their skills and hours to the world, while remaining affiliated with that company. Surely this is even more effective marketing than just quoting the millions of pounds made from purchases?

Open Source / Free SoftwareI license my code as free and open-source software (FOSS) so anyone can use obtain and use my work, however they want to. I do this for a number of reasons:

  • It allows anyone to use my work, without being restricted to a certain number of copies or, say, running it on a certain number of computers;
  • Anyone can include my work in theirs (as long as they reciprocate and attribute me!);
  • I can use others’ work and include it in my own, to solve problems or to add extra stuff;
  • Whoever is involved in the projects can gain exposure by creating such useful software, especially with the people to which it matters most;
  • Other people can provide support in forums, mailing lists, social networks and other resources more easily, by reading the code and the problem hoping to find the missing link between them;
  • The combination of exposure and support means that feedback and improvements can be provided from all people involved in its use, from end-users to senior figures.
  • The free software licensing ensures it is kept free forever.

My passion for and admiration of free and open source software has led me to join the Free Software Foundation, more specifically their European branch. I’m a proud member of this group as feel it also shows a true commitment to free software and my principles. By providing a financial donation equivalent to two pints of beer a month, I help sustain the Foundation and the awareness, industry protection, campaigns and communities it creates.fsfe Smart Card I carry around with me the smart-card; on it I store some geeky stuff for encryption, signing and logging in to my computer (yes, that geeky!). None of that was why I like this card, though; it signifies that I constantly and consistently abide by my free principles. Each time I open my wallet to show off a business card, borrow a library book or just buy a loaf of bread, the bold colours and title stands out for all to see.

All the code projects I am part of are free and open. Many cost no money to obtain. I am proud to be part of each and every one, in any case. I do so on the condition that the company also recognise my commitments, totally without force. Spreading the ideas and principles of free software and openness among the computing community — or any other — allows people like me to share my ideas and work more freely.

next »