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

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

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

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

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

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

said on

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

said on

Blogging is, basically:

Look At My Navel Lint!

Stop blogging. Nobody wants to see that. -MC

said on

ruby newbie…

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

what’d I do wrong?

said on

Try:

 irb -r rubygems
 >> require 'urirequire'

It successfully installed, did it?

said on

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

Goodbye SVN :externals!

said on

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

Heh.

said on

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

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

hi, newbie question:

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

thank you so much.

said on

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

Comments are closed for this entry.