hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

require 'thin_ice' #

by why in inspect

Danger. Danger. Danger. urirequire has been released. If you use this, the government will call you into their office. And they will punch through your top hat! And turn your umbrella inside out! And you will be tossed out the door with a sort of half-toss because the government guys didn’t even feel like giving you much of a toss anyway.

 require 'urirequire'
 require 'http://fhwang.net/urirequire_test'

Fortunately, Francis says other hilarious things to cheer us up:

Taglines which will probably make nobody download my lib but I think are funny anyway

urirequire: The network Pwns the computer!

urirequire: Now I’ll never get that job working for Bruce Schneier.

urirequire: It’s not just a solution looking for a problem. It’s a solution looking for a victim.

If you have RUBYOPT="-rurirequire", you can test out the latest release of Hobix (the code behind this site): ruby -e 'require "http://go.hobix.com/0.4/"'.

said on 02 Nov 2005 at 17:55

I’d like (but Ruby doesn’t pass it to Kernel.require):

 ruby -rhttp://go.hobix.com

You show me urirequire and I’ll show you an miniature apocalypse in its formative years.

said on 02 Nov 2005 at 18:13

I don’t know WHY I read this blog… Technical writing is supposed to be clear, if anything. We are taught that you should be concise, un-wordy, and professional.

This blog lacks all of those things, but it’s just so FUN trying to figure out what you are talking about sometimes ;)

said on 02 Nov 2005 at 18:57

Jomdom:Technical writing is supposed to be clear, if anything. We are taught that you should be concise, un-wordy, and professional.

Jomdom, it sounds like you’re pineing for the modern era. That was then and this is now postmodernity. Check your watch, calendar and the the current philosophical zeitgeist, you’ll see I’m right. Modernity was boring. Postmodernity promises to be much more interesting.

Hey, urirequire sounds like Web 2.0 to me! We should all jump in and use it often and with great enthusiasm!

said on 02 Nov 2005 at 19:59

I hope none of you out there ever stoop to technical writing. Or e-mail. I hear e-mail can be a tiresome chore.

said on 02 Nov 2005 at 20:05

_why: what about blogging? Kind of a gray area, no?

said on 02 Nov 2005 at 20:07

Yes, can someone please summarize blogging in five words or less? (Assume that the concise, single-word answer “blogging” is off-limits.)

said on 02 Nov 2005 at 20:52

Blogging is, basically:

Look At My Navel Lint!

Stop blogging. Nobody wants to see that. -MC

said on 02 Nov 2005 at 21:20

ruby newbie…

gem i -r urirequire irb >> require ‘urirequire’ no such file to load

what’d I do wrong?

said on 02 Nov 2005 at 22:17

Try:

 irb -r rubygems
 >> require 'urirequire'

It successfully installed, did it?

said on 03 Nov 2005 at 03:30

Hey, what about

uri_eval "microsoft.com/1234567890/some_code.vb"

or

class Fixnum
  include "http://rubyforge.org/projects/romani" 
 end
 p 42  #-> "XLIV"

or even

users.each &urlproc('fancyrubycodes.com/procs/japanize_name')

There is always a way to make it more online!

said on 03 Nov 2005 at 08:30

Goodbye SVN :externals!

said on 03 Nov 2005 at 09:19

require "urirequire" 
require "http://#{subdomain}.seework.com/eg.rb" 

Heh.

said on 03 Nov 2005 at 17:58

require ‘open-uri’

class URI ::Generic def to_proc() eval(read, nil, to_s).to_proc end end

def to_module()
  eval(read, nil, to_s)
end
def to_class()
  eval(read, nil, to_s)
end
def new(args, &block)
  self.to_class.new(args, &block)
end

def URI .flgr() result = Module.new class << result; self; end.module_eval do define_method(:const_missing) do |name| URI end alias_method :method_missing, :const_missing end return result end

(1 .. 10).each(&URI.flgr.action)

Echo = URI .flgr.echo Echo.new.x(10, 20).y

said on 03 Nov 2005 at 17:59

Grah, where’s the code tags when you need them?

require 'open-uri'

class URI::Generic
  def to_proc()
    eval(read, nil, to_s).to_proc
  end

  def to_module()
    eval(read, nil, to_s)
  end

  def to_class()
    eval(read, nil, to_s)
  end

  def new(*args, &block)
    self.to_class.new(*args, &block)
  end
end

def URI.flgr()
  result = Module.new
  class << result; self; end.module_eval do
    define_method(:const_missing) do |name|
      URI("http://flgr.0x42.net/code/#{name}.rb")
    end
    alias_method :method_missing, :const_missing
  end
  return result
end

(1 .. 10).each(&URI.flgr.action)

Echo = URI.flgr.echo
Echo.new.x(10, 20).y
said on 04 Nov 2005 at 00:03

hi, newbie question:

can someone plz explain how this gets rid of svn:externals?

thank you so much.

said on 17 Nov 2005 at 09:41

I can’t wait until this makes it into the ruby core ♥

Comments are closed for this entry.