Category Archive: Computers

Nov 25

Upgrading rubygems on Ubuntu

Maybe it’s me.  Maybe it’s a feature of ubuntu, but on two separate systems, when I went to upgrade rubygems to the latest via gem update –system it didn’t work for me.  So, I had to go the more extreme route of: gem install rubygems-updateupdatee_rubygems This is mostly for my own reference, it’s not the …

Continue reading »

Nov 14

Concatenation Note to Self

To concatenate in PHP you use a ‘.’, not a ‘+’.  Likewise, you don’t use ‘.’ to reference an object’s members, you use ‘->’.  Move along, nothing to see.

Nov 12

DIY Maps and Linux Firefox/Flash Quirks

First off, let me say that I really like DIY Map. It’s quick, and responsive, with an easy to use interface, as well as allowing you to make changes on the fly easily. That said, I discovered lastnight / this morning that there are some quirks with its updating through the Flash JavaScript Integration Kit. …

Continue reading »

Nov 11

YUI Datasources

Been a while since I’ve written.  I’ve been sick and working on a side project.  That said, I’ll be writing more…… Today’s note/reminder is a gotcha about YUI datasources.  If you have JSON feeding the datasource and you’re getting back more fields in the results than you’re expecting, the datasource will not behave properly.  For …

Continue reading »

Oct 08

Semantic Web

I have been doing some site scraping of late.  And as a result, I have really come to appreciate the semantic web.  It’d make life infinitely easier for grabbing data.  Of course there are other, better reasons for using the semantic web, but right now, it’d make a difference in my life.

Sep 25

JBoss run.sh may be harmful

A coworker and I discovered an issue with jboss’ run.sh (which starts the app server).  The problem lies in different flavours of unix (or unix-like) shells returning different values for wait. The relevant code is:

This is all well and good in linux — redhat uses /bin/bash and ubuntu uses /bin/dash for /bin/sh — …

Continue reading »

Sep 22

JRuby + jmx4r + rrd4j == Easy reporting on app servers (part I)

Portion of a JConsole screen

This is a how-to for using jmx and rrd4j, a java implementation of rrdtool, to report on app server statistics. Thanks to Jeff Mesnil(author of jmx4r), Werner Schuster (JMX the Ruby way with jmx4r), sishen (JRobin sucks), and the rrd4j team. You’ll need the following: JVM 1.5 or higher — JRE is not enough, you …

Continue reading »

Sep 22

JRuby to check connectivity…

I had an issue reported by a developer where their jboss connection pool wasn’t working properly. It looked good to me, so I decided to verify that everything worked in so far as connectivity from the box. So, I used the following jruby script to help:

Sep 12

Class is Class, and Instance, Instance, and never the twain shall meet

More about methods, it’s inspired/spurred by a comment on methods, public_methods, and private_methods by Pit Captain. It also corrects some misconceptions I had (and may have (wrongly) given others). I’ve added a new category, “eating crow” for this and any other postings where I step back and re-evaluate my posts. This is to keep me …

Continue reading »

Sep 11

methods, public_methods, and private_methods

Ruby’s Object has a method, methods. You can use it to see the methods which an object has. Sort of. In this post I’m examining methods, public_methods, and private_methods as well as some of their implications.

Continue reading »

Older posts «

» Newer posts