IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Anybody wanna hack some ruby for a KiloBuck?
I don't have time to write this but I need it yesterday. If I didn't, I'd do it myself.

I need a cheap and cheerful load balancer based on Apache mod_rewrite's RewriteMap. It must be in ruby.

I want a 1 user to 1 app process mapping. The script must keep a set of records - instanceKey (which appears in the URL), serverPort, pid, last-access. When a URL comes in with an instanceKey in it, it must generate an appropriate URL mapped to the appropriate serverPort. If there is no instanceKey, it should start a new process, register it, and write its state to a file in /tmp. The file in /tmp is there in case apache is restarted and it needs to recover its state. There is no reason to write the access time. On recovery, access time can be initialized to time.now(). This reduces file IO to fork and reap events.

There should be a reaper thread that clobbers unused processes if it hasn't been mapped in the last n seconds. It is OK to recover state from commands like ps if this is practical.

Applicants should email me at first initial, last name at mac dot com if they want to take this on. I have some functions that take apart urls already. I'm annoyed at ruby's file IO - can't get it working, and I"m short on time. I will pay flat rate mentioned above for solution. There are a couple other kinks I will share when emailed but this is basically it.






I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New I guess everyone has enough money and too little time



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New Don't care for ruby, actually.
Mostly hype, IMO, especially Rails.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Rails is OK
but compare to Seaside it just seems so last-century.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New Uh, yeah.
Actually, it has a few real problems as opposed to just not being fashionable.

No Unicode, for one thing. And Rails strikes me as yet another "get the simple stuff done whiz bango, but fall apart for hard stuff" framework.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I didn't mean fashionable
I meant, unwieldy. I like working on live systems. Live, as in running while I work on it. Live, as in, faults trigger debuggers, archive the execution state such that I can restore the entire program to examine it, and then keep going. Rails is a dead system. You have to kill the program to change it. How quaint.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New Fashionable == !quaint
You're the one using the words that way, not me. :-)

I've never been one to use debuggers, and a live system isn't worth the hassle of repository-based development. When I do Django development I never have to restart the program either. To each his own.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I code in the debugger
then execute it, write, step, write, step....

Guarantee's a high level of quality. If I write a line wrong, I just back up the PC to the outer context, change the line, and test it. I recently had to fix a Java web service and felt absolutely crippled because I couldn't write a couple lines for the wacky string manipulation I was about to do - just to make sure I had it right.

This is the way computers should work.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New I prefer to use unit tests to guarantee quality
They're repeatable and useful for regression testing. I don't have to worry about side effects, either.

As far as immediate Java testing, that's what the Bean Shell is for. Or use the remote debugger if you want. Either way.

Again, different strokes.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I do both
Cool thing about SUnit is you click on failed test - brings it up in a debugger - step, analyze, and fix.




I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New ROFL - Don't know Ruby.

Imric's Tips for Living
  • Paranoia Is a Survival Trait
  • Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
  • Even though everyone is out to get you, it doesn't matter unless you let them win.


Nothing is as simple as it seems in the beginning,
As hopeless as it seems in the middle,
Or as finished as it seems in the end.
 
 
New Nope -just you specified How the problem needed to be solved
I assume you've been learning Ruby, setting something up, so you wanted something to mesh with what you've already done. Maybe to be used as an example for your further education.

So you really don't want an operational solution, you want something to satisfy your curiosity.

I could envision the solution in a couple of hours of Perl, which means I wouldn't mind picking up the cash for it, but you don't want that.
New If I wanted to take lip from a script kiddie
I'd have offered a quart of Mickeys and an iPod.

If I wanted to satisfy my curiosity, I'd pick up a book and hack it out in a day. I don't happen to have the day. For me, a day is worth a kilobuck.

You, a one trick hack pushing dead tree spam, pretending you know anything at all about me and what I want or need is presumptuous.

Its a job son. If you want my nickel, you play my tune. But pseudo psycho analysis from an emotional pygmy is neither expected nor appreciated.

Sod off.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
Expand Edited by tuberculosis March 25, 2007, 04:35:15 AM EDT
New My, this is a long yesterday
Wasn't that when you needed it by?

This statement is what I based my assumptions on:

I'm annoyed at ruby's file IO - can't get it working, and I"m short on time

It's seems pretty clear cut, but then again, I DID say "I assume". Which means I can accept being wrong.

And then you decided to attack me. Wierd. So I'll make another assumption.

You REALLY don't like me.

That's OK. I don't mind you. You are interesting, and occasionally entertaining. And often educational.

Of course, that above statement will probably make you start seething, and kick back something about not needing my approval. So I'll beat you to it.

Happy?

Hope you get the solution you need.
New There are three other options.
c) I don't know Ruby.

d) I don't have time to do it, nor to learn Ruby to do it.

e) I didn't see your thread until just now.

Otherwise, I might have given it a go.

Wade.


Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please



-- "Anything but Ordinary" by Avril Lavigne.

· my ·
· [link|http://staticsan.livejournal.com/|blog] ·
· [link|http://yceran.org/|website] ·

New send me enough for a sixpack and download this
[link|http://packages.debian.org/unstable/misc/libsqlrelay-ruby|http://packages.debi.../libsqlrelay-ruby]
thanx,
bill
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
New Wrong spot in the chain
It is like this:

Apache->mod_rewrite->Squeak/Seaside->pgpool->postgres

I want a RewriteMap script for mod_rewrite to mux across multiple Squeak/Seaside images in a sticky way - I also want the script to track load and spawn new Squeaks as needed.




I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New maybe this will help
[link|http://httpd.apache.org/docs/2.0/misc/rewriteguide.html|http://httpd.apache....rewriteguide.html] that method of loadbalancing is addressed in a simple fashion, might give you enough ideas on how to ruby it.
thanx,
bill
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
New So why does it need to be Ruby?
Certainly not for speed. It's the slowest of the scripting languages.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Because I already have a bunch of maintenance script in it
And given that I do scripting so seldom that I have to lookup every line of code - I'd rather not have multiplle languages that I barely remember. No leverage.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
New Done
Insomnia is a useful thing some nights.



I4 NOW!


Impeach, Indict, Incarcerate, Inject
Bush, Cheney, Gonzalez, Rumsfeld, Rove, Rice
     Anybody wanna hack some ruby for a KiloBuck? - (tuberculosis) - (20)
         I guess everyone has enough money and too little time -NT - (tuberculosis) - (13)
             Don't care for ruby, actually. - (admin) - (7)
                 Rails is OK - (tuberculosis) - (6)
                     Uh, yeah. - (admin) - (5)
                         I didn't mean fashionable - (tuberculosis) - (4)
                             Fashionable == !quaint - (admin) - (3)
                                 I code in the debugger - (tuberculosis) - (2)
                                     I prefer to use unit tests to guarantee quality - (admin) - (1)
                                         I do both - (tuberculosis)
             ROFL - Don't know Ruby. -NT - (imric)
             Nope -just you specified How the problem needed to be solved - (crazy) - (2)
                 If I wanted to take lip from a script kiddie - (tuberculosis) - (1)
                     My, this is a long yesterday - (crazy)
             There are three other options. - (static)
         send me enough for a sixpack and download this - (boxley) - (4)
             Wrong spot in the chain - (tuberculosis) - (3)
                 maybe this will help - (boxley)
                 So why does it need to be Ruby? - (admin) - (1)
                     Because I already have a bunch of maintenance script in it - (tuberculosis)
         Done - (tuberculosis)

Maybe this is what seafood will do in a thousand years.
101 ms