apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
zastaph has quit []
oooPaul has quit [Quit: Ciao for now!]
good_afternoon has quit [Ping timeout: 276 seconds]
pika_pika has quit [Ping timeout: 272 seconds]
indian has quit [Ping timeout: 244 seconds]
kenperkins has quit [Read error: Operation timed out]
prometheus has quit [Ping timeout: 252 seconds]
josefig has quit [Ping timeout: 244 seconds]
jimeh2 has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
SegFault1X|work2 is now known as SegFaultAX|work2
Soul_Est has quit [Quit: WeeChat 0.3.7]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
cj3kim has joined #ruby
lockweel has joined #ruby
vladiim has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
jimeh2 has quit [Ping timeout: 272 seconds]
keithcelt has quit [Remote host closed the connection]
zeromodulus has quit [Remote host closed the connection]
weasels has quit [Quit: Leaving]
otters has joined #ruby
vladiim has quit [Client Quit]
mengu has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 272 seconds]
BlissOfBeing has quit [Quit: This computer has gone to sleep]
liluo has quit [Remote host closed the connection]
L-----D has joined #ruby
lockweel has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
iocor has quit [Quit: Computer has gone to sleep.]
Dr_Acula is now known as Chiron
wilmoore has quit [Remote host closed the connection]
fayimora has joined #ruby
panpainter has quit [Quit: panpainter]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
neohunter has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
fayimora has quit [Ping timeout: 271 seconds]
sohocoke has quit [Quit: sohocoke]
cj3kim has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
minijupe has joined #ruby
savant has joined #ruby
ConstantineXVI has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
Guest84680 has quit [Quit: Leaving]
sam1131011 has joined #ruby
sam113101 has quit [Ping timeout: 245 seconds]
keithcelt has joined #ruby
krusty_ar has quit [Ping timeout: 248 seconds]
theRoUS is now known as RoUS
sam1131011 has quit [Client Quit]
adamkitt_ has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Remote host closed the connection]
sam113101 has joined #ruby
nobitanobi has quit [Quit: Leaving.]
savant has quit [Quit: Leaving.]
stewart_ has joined #ruby
bobdobbs has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
savant has joined #ruby
fayimora has joined #ruby
Solnse has joined #ruby
liluo has joined #ruby
shagin has joined #ruby
redgetan has joined #ruby
snip_it_ has quit [Quit: snip_it_]
Icehawk78 has quit [Read error: Operation timed out]
Icehawk78 has joined #ruby
ZachBeta has joined #ruby
vladiim has joined #ruby
stewart_ has left #ruby [#ruby]
<robert_> ugh
<robert_> when I try to open a uri, I get
<robert_> "OpenSSL::SSL::SSLError: SSL_set_tlsext_host_name:\n"
adeponte has quit [Remote host closed the connection]
stewart_ has joined #ruby
stewart_ has left #ruby [#ruby]
stewart_ has joined #ruby
keithcelt has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
mvangala has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
vladiim has quit [Quit: vladiim]
stewart_ has left #ruby [#ruby]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Icehawk78 has quit [Remote host closed the connection]
Icehawk78 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
eywu has quit [Quit: Leaving.]
becom33 has quit [Ping timeout: 260 seconds]
becom33 has joined #ruby
stkowski has quit [Quit: stkowski]
robert_ has quit [Ping timeout: 272 seconds]
jayrulez has quit [Ping timeout: 244 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
banisterfiend has quit [Remote host closed the connection]
jayrulez has joined #ruby
Icehawk78 has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
sohocoke has joined #ruby
robert_ has joined #ruby
jcblitz has joined #ruby
CheeToS has joined #ruby
<jcblitz> Can someone tell me what the "#<#<" part of "undefined method `user_signed_in?' for #<#<Class:0x007f8bfc3bbe58>:0x007f8bfc2c12a0>" means? Is it trying to call a nested method?
Alpha_Omega has joined #ruby
TandemAdam has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
vladiim has joined #ruby
<felipec> jcblitz: a class object?
<jcblitz> I'm not sure, I'm using the Devise gem and this error just started happening.
seanstickle has joined #ruby
<benwoody> jcblitz: Paste the line you call that method on
wilmoore has joined #ruby
vladiim has quit [Quit: vladiim]
jcblitz has quit [Quit: jcblitz]
davidpk has joined #ruby
sohocoke has quit [Quit: sohocoke]
dhaskew has joined #ruby
dhaskew_ has quit [Read error: Connection reset by peer]
pen_isident has quit [Ping timeout: 272 seconds]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
vladiim has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
greyEAX has quit [Remote host closed the connection]
mikepack has joined #ruby
nu7hatch has left #ruby [#ruby]
wvms has left #ruby [#ruby]
savage- has quit [Remote host closed the connection]
exchgr has quit [Quit: exchgr]
Yarou_ has quit [Quit: Leaving]
Yarou has joined #ruby
dv310p3r has joined #ruby
kvirani has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
ConstantineXVI has joined #ruby
Araxia_ has quit [Quit: Araxia_]
moosya has quit [Read error: Connection reset by peer]
moosya has joined #ruby
cj3kim has joined #ruby
keithcelt has joined #ruby
artm has joined #ruby
ConstantineXVI has quit [Ping timeout: 240 seconds]
sohocoke has joined #ruby
jayrulez has quit [Read error: Connection reset by peer]
mvangala has quit [Remote host closed the connection]
ConstantineXVI has joined #ruby
amalvagomes has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
dwon has quit [Ping timeout: 276 seconds]
mvangala has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
MissionCritical has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
eka has quit [Quit: Leaving]
chson has joined #ruby
ConstantineXVI has quit [Ping timeout: 252 seconds]
keithcelt has quit [Remote host closed the connection]
sohocoke has quit [Quit: sohocoke]
radic has quit [Disconnected by services]
radic_ has joined #ruby
TandemAdam has joined #ruby
radic_ is now known as radic
wvms has joined #ruby
yugui_zzz is now known as yugui
christianrojas has quit [Quit: Linkinus - http://linkinus.com]
vladiim has quit [Quit: vladiim]
<offby1> Is there a simple way to use a compound value as a hash key? Glomming the bits together into a string doesn't count as simple.
Alpha_Omega has quit [Quit: Leaving]
tds has quit [Quit: tds]
<offby1> hmm, 1.9 docs imply that any type can be used as a key. Time to see for myself.
manizzle has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
ThatDudeGuy_ has joined #ruby
x0F_ is now known as x0F
nfluxx has quit [Ping timeout: 244 seconds]
ThatDudeGuy_ has left #ruby [#ruby]
mahmoudimus has quit [Client Quit]
kenichi has quit [Remote host closed the connection]
ThatDudeGuy_ has joined #ruby
Juul has joined #ruby
jayrulez has joined #ruby
indeterminate has joined #ruby
indian has quit [Quit: Leaving]
indian has joined #ruby
Targen has joined #ruby
vladiim has joined #ruby
<seanstickle> You can use an array as a key if you want
<seanstickle> Whatever!
* rking waits for the inevitable counter-example of the /one thing/ that can't be used as a key.
sei has quit [Ping timeout: 252 seconds]
MissionCritical has joined #ruby
<offby1> seanstickle: sure looks that way. Even in 1.8. Dunno why I thought you couldn't.
<seanstickle> :)
StoSun has quit []
<offby1> rking: I can't stand the suspense
<rking> offby1: I'm not sure how esoteric the answer is, but there is surely something that breaks the rule.
savant has left #ruby [#ruby]
xaq has quit [Remote host closed the connection]
<offby1> waah
igotnolegs has joined #ruby
pen_isident has joined #ruby
luxurymode has joined #ruby
noodletraveler has joined #ruby
<apeiros_> rking: anything not implementing #hash and #eql?
<apeiros_> but since Object already defines that, you must quite explicitly remove those.
<rking> There we go.
<apeiros_> I haven't encountered anything yet which does that.
<rking> What things are BasicObject but not Object?
<ThatDudeGuy_> I just created a hash using a hash as a key. I feel dirty.
* rking tries using a hash as a key to itself.
googya has joined #ruby
<apeiros_> ah, BasicObject doesn't implement #hash
Gavilan has joined #ruby
artm has quit [Quit: artm]
<rking> So you definitely can use a hash as its own key.
<Veejay> Hashception
dwon has joined #ruby
<rking> But that modifies it, so to get at that value, you have to have previously cloned it.
<ThatDudeGuy_> that is awesome.
brianpWins has joined #ruby
<rking> Ugh, pry-doc has made my days so much better. Saying $ h.hash is nice.
<rking> (And you have to follow that up with my c 'rb_exec_recursive_outer' function if you want the party to keep going)
stephenjudkins has quit [Quit: stephenjudkins]
Mohan has quit [Ping timeout: 240 seconds]
brianpWins has quit [Client Quit]
banjara has quit [Quit: Leaving.]
vitoravelino is now known as vitoravelino`afk
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
Gonzih has quit [Ping timeout: 265 seconds]
<offby1> does pry play well with Emacs?
<ThatDudeGuy_> I haven't heard of pry-doc before… is there a good documentation page? I can only find a blank readme
<seanstickle> ThatDudeGuy_: http://pry.github.com/
<ThatDudeGuy_> oops! just saw it referenced in pry's readme
ThatDudeGuy_ has quit [Quit: ThatDudeGuy_]
ThatDudeGuy_ has joined #ruby
ThatDudeGuy_ has quit [Client Quit]
mvangala has quit [Remote host closed the connection]
Gonzih has joined #ruby
zeknox has joined #ruby
* offby1 plays with it now -- damned slick
araujo has quit [Ping timeout: 248 seconds]
amalvagomes_ has joined #ruby
ryanf has joined #ruby
luxurymode has quit [Quit: Computer has gone to sleep.]
amalvagomes has quit [Ping timeout: 244 seconds]
amalvagomes_ is now known as amalvagomes
wargasm has quit [Read error: Connection reset by peer]
Chryson has quit [Quit: Leaving]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
mikaello has joined #ruby
mikaello has left #ruby [#ruby]
Juul has quit [Remote host closed the connection]
mvangala has joined #ruby
felipec has quit [Quit: Leaving]
sepp2k1 has quit [Remote host closed the connection]
deobald__ has joined #ruby
vladiim has quit [Quit: vladiim]
noodletraveler has quit [Ping timeout: 248 seconds]
ryanf has quit [Quit: leaving]
TheIronWolf has quit [Quit: zonk]
shagin has left #ruby [#ruby]
emmanuelux has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
TheIronWolf has joined #ruby
yugui is now known as yugui_zzz
TheIronWolf has quit [Client Quit]
gmci has quit [Ping timeout: 250 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
radic_ is now known as radic
mvangala has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
CheeToS has quit [Ping timeout: 256 seconds]
prezjordan_ has joined #ruby
<prezjordan_> I've forked and modified a gem to my liking, how do I go about using this custom gem on heroku?
voodoofish430 has quit [Quit: Leaving.]
noodletraveler has joined #ruby
<seanstickle> prezjordan_: publish the gem
<seanstickle> prezjordan_: either on rubygems.org or a personal (but Internet-accessible) gem server
xclite has joined #ruby
<prezjordan_> seanstickle: okay, I wasn't sure if there were a way to include the .gem file and somehow reference it
redgetan has left #ruby ["Leaving"]
<seanstickle> prezjordan_: You can also cache your gems in vendor
<prezjordan_> and if I'm not using rails?
mvangala has joined #ruby
<seanstickle> Consult your framework's documentation
zodiak has joined #ruby
beneggett has quit [Ping timeout: 260 seconds]
mvangala has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
beneggett has joined #ruby
<prezjordan_> the gem I'm talking about is toto: https://github.com/cloudhead/toto, I've changed a couple lines of code to add a feature I want, but I'm not sure how to use this updated gem on heroku. i guess I could try publishing the new gem
<seanstickle> That'll be the easiest way
<David_Mi1ler> I am having a hard time debugging an exception that doesn't get rescued, maybe someone has some insight
keanehsiao has joined #ruby
<David_Mi1ler> I am actually catching it inside a rescue block and then raising it again
<David_Mi1ler> rescue Exception => ex
<prezjordan_> seanstickle: thanks for your help
<David_Mi1ler> raise ex
<David_Mi1ler> does nothing
<David_Mi1ler> but if I put raise "some text"
<David_Mi1ler> I can catch that one fine
xclite has quit [Quit: Leaving]
<David_Mi1ler> so raising the already created Exception doesn't work, but raising a new one in the exact same place works, I can't figure that out
xclite has joined #ruby
peterhil` has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby
peterhil has joined #ruby
BrokenCog has joined #ruby
noodletraveler has quit [Ping timeout: 260 seconds]
<bnagy> David_Mi1ler: you can inspect ex
<bnagy> from memory, only StandardException gets rescued by default
vladiim has joined #ruby
<zeknox> why would i get an undefined method for grep? start.rb:57:in `block (2 levels) in <main>': undefined method `grep' for #<Strin
oktapodi has joined #ruby
<bnagy> because there's no grep method for String?
<offby1> because strings don't have a method by that name?
<offby1> curse bnagy and his fast fingers
<bnagy> it's an amazingly logical language sometimes :)
<xclite> when all else fails, the error tells you exactly what's wrong
<zeknox> i dont get it, it was just working
<bnagy> zeknox: not unless you were in a parallel universe or you were operating on an Array before
<banisterfiend> offby1: sup
prezjordan_ has quit [Quit: prezjordan_]
<offby1> damn, "pry" is slick: I type ``cd ""'', and then ``ls'', and I can see all the methods.
<offby1> Previously in irb I'd typed `` ("".methods - Object.methods).sort '', which is tedious.
<banisterfiend> offby1: does it rock out your D.
<bnagy> offby1: don't praise pry! banisterfiend is annoying enough without swelling his head ;)
<offby1> bnagy: too late
<banisterfiend> bnagy: it rocks out my D
<zeknox> does anyone see my problem with grep? http://pastie.org/3928690
<offby1> zeknox: that used to work?
<zeknox> offby1: yeah
<bnagy> up is a string
<zeknox> bnagy: you cant grep a string?
<bnagy> no
<offby1> zeknox: split it up into smaller bits, write unit tests for 'em
<banisterfiend> offby1: btw just typing: ls "" works too
noodletraveler has joined #ruby
<offby1> banisterfiend: ooh
<banisterfiend> offby1: if u pass a parameter to ls it'll just operate on that parameter without u having to change scope
<offby1> banisterfiend: so, is there a M-x pry command for emacs? I'm half-serious
<bnagy> I don't know exactly what logic you want but something like if up=~/Up/ # get the ip end
<banisterfiend> offby1: i try to be as analogous to the normal system shell as possible
L-----D has quit [Ping timeout: 250 seconds]
<bnagy> zeknox: your second grep (after split) should work
<banisterfiend> offby1: nah, though somsone was working on emacs integration at some point, but my energies are usually exerted into bringing cool functionality in a cross-editor way rather than sticking to emacs, unfortunately emacs use isn't that prevalent in ruby
<xclite> zeknox: just checked in irb and strings will let you grep, though I'm not getting any errors when grepping on strings or arrays (the things that should be recipients of the grep message in your pastie)
<bnagy> or while (line=file.gets); next unless line=~/Up/; more stuff
yugui_zzz is now known as yugui
Mohan has quit [Ping timeout: 248 seconds]
<bnagy> xclite: no idea what you typed, but String does not have grep.
<bnagy> String.instance_methods.include? :grep => false
<offby1> zeknox: my guess is you want a "next unless up.match (/Up/)" right after the "while"
<zeknox> offby1: yeah thats a great idea!
<bnagy> offby1: XD (points upwards)
chimkan_ has quit [Quit: chimkan_]
* offby1 shifts uncomfortably
Mohan has joined #ruby
* offby1 checks to make sure this isn't #perl
<xclite> bnagy: agreed, though "asl".grep(/a/) returns ["asl"]
mahmoudimus has joined #ruby
<bnagy> no, it returns NoMethodError
weasels has joined #ruby
<bnagy> what interpreter / version are you running?
weasels has quit [Client Quit]
<David_Mi1ler> I give up and am doing this:
weasels has joined #ruby
<David_Mi1ler> raise "#{ex.message}"
weasels has quit [Changing host]
weasels has joined #ruby
<David_Mi1ler> lol
otters has quit [Disconnected by services]
weasels has quit [Remote host closed the connection]
<bnagy> David_Mi1ler: what is the exception, anyway?
otters has joined #ruby
<David_Mi1ler> its a 404 from net http, a regular Exception as far as I can tell
<apeiros_> David_Mi1ler: do you do "#{"hello"}" too?
<xclite> bnagy: there we go - 1.8.7 has grep and 1.9.1 does not
<bnagy> xclite: maybe some old version used to...right
<xclite> bnagy: would like to know when my system swapped ruby to 1.8
<bnagy> ok well I learned something today. And it's only just after 9am!
<David_Mi1ler> apeiros_: I am trying to do it right but its not working
test34 has quit [Ping timeout: 260 seconds]
<bnagy> David_Mi1ler: he just means you can raise ex.message
<David_Mi1ler> ahh indeed :)
<David_Mi1ler> but I want to do raise ex
niklasb has quit [Read error: Operation timed out]
<bnagy> David_Mi1ler: inspect it! look at ex.class! Enquiring minds and all that...
<apeiros_> raise without args reraises the last exception
<David_Mi1ler> yeah I inspected it and its a regular Exception
<David_Mi1ler> afaict
jayrulez has quit [Read error: Operation timed out]
<bnagy> what class?
<apeiros_> but if you did (as I read in the backlog) rescue Exception => ex; raise ex; end - then that should work the same as a plain raise without args.
altiouz has joined #ruby
<bnagy> like Exception instead of StandardException is not same same
<bnagy> sounds like a busted lib, based on limited information - you should never have to rescue Exception
<zeknox> bnagy: hey thanks, I tweaked it and its working! http://pastie.org/3928721
<David_Mi1ler> well it is part of some hairy retry logic that I inherited
<David_Mi1ler> #<Exception: Error occurred while ..... is what I get from ex.inspect
h4mz1d has joined #ruby
<bnagy> zeknox: using to_s on an Array when you probably mean join is a bad habit, and I would call the line 'line' not 'up' cause you don't know if it's up yet
<David_Mi1ler> and I get Exception from ex.class.name
Norrin__ has quit [Ping timeout: 245 seconds]
<bnagy> zeknox: apart from that, looks good, dude :)
<apeiros_> David_Mi1ler: ew… whoever raised Exception directly should be flayed
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
<bnagy> David_Mi1ler: yeah, they Did It Wrong
<zeknox> bnagy: thanks man, just getting started@
<zeknox> !*
<apeiros_> doesn't explain the observed behavior. anyway, gotta get some sleep. 05.40 here…
<bnagy> David_Mi1ler: they should have just raised RuntimeError or subclassed like NotFoundError < StandardException
<bnagy> David_Mi1ler: you can make your own exception class for them, then reraise their Exception as a NotFoundError or whatever
Norrin_ has joined #ruby
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<bnagy> annoyingly, you have to actually really try to raise Exception - like it defaults to RuntimeError
<David_Mi1ler> well the exception actually comes from net/http, we handle it in the very last rescue section after we have checked for more specific ones
TheHunter_1039 has quit [Quit: TheHunter_1039]
<David_Mi1ler> and then we call our method recursively haha
<David_Mi1ler> it is a mess
<David_Mi1ler> I am leaving well enough alone, one day I will understand it maybe
Zolrath has quit [Quit: Computer has gone to sleep.]
<David_Mi1ler> thanks all
dbgster has quit [Quit: dbgster]
<bnagy> np
TheHunter_1039 has joined #ruby
TheHunter_1039 has quit [Client Quit]
libertyprime has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby
libertyprime has joined #ruby
shiki has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
davidpk has joined #ruby
Haydos has joined #ruby
stevieB has joined #ruby
raul782 has joined #ruby
bluOxigen has joined #ruby
chimkan has joined #ruby
vladiim has quit [Quit: vladiim]
fowl has quit [Ping timeout: 244 seconds]
vladiim has joined #ruby
raul782 has left #ruby [#ruby]
xclite has quit [Remote host closed the connection]
alexim has quit [Quit: bye]
amalvagomes has quit [Quit: amalvagomes]
nlc has quit [Quit: Leaving]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
wargasm has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
stevieB has quit []
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
Mohan has quit [Read error: Operation timed out]
L-----D has joined #ruby
savage- has joined #ruby
Progster has quit [Ping timeout: 245 seconds]
L-----D has quit [Client Quit]
altiouz has quit [Ping timeout: 272 seconds]
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
visof has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
neohunter has quit [Quit: Linkinus - http://linkinus.com]
nikhgupta has joined #ruby
nikhgupta has quit [Client Quit]
andantino has joined #ruby
andantino has quit [Changing host]
andantino has joined #ruby
rpk_ has joined #ruby
<rpk_> I'm trying to delete a key from Rails.cache (memory cache). When I call the method, I get an error saying that module/class X not found. So immediately before it, I add X (by itself, to load the class in dev), and now I'm getting "X can't be referred" on the line where I call delete. Any suggestions?
<bnagy> #rubyonrails maybe
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<rpk_> bnagy: yeah, I've tried a couple times now
<banisterfiend> anyone here knowledgeable with EM?
<rpk_> but I've had luck the last couple times here after RoR failed
rippa has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
cha1tanya has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
noodletraveler has joined #ruby
digitalcakestudi has joined #ruby
d3c has joined #ruby
macmartine has joined #ruby
noodletraveler has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
oktapodi_ has joined #ruby
JivaD has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
macmartine has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby
oktapod__ has joined #ruby
oktapodi_ has quit [Read error: Connection reset by peer]
oktapodi has quit [Read error: No route to host]
stewart_ has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
oktapodi has joined #ruby
noodletraveler has joined #ruby
oktapodi has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
oktapod__ has quit [Ping timeout: 244 seconds]
yugui is now known as yugui_zzz
noodletraveler has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
iamjarvo has quit [Quit: Leaving.]
noodletraveler has joined #ruby
inteq has quit []
wallerdev has quit [Quit: wallerdev]
yugui_zzz is now known as yugui
wvdschel_ has quit [Read error: Operation timed out]
manizzle has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
noodletraveler has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<bambanx> guys how i can include other files with classes into my current file? i mean for not write all my classes on the same file
noodletraveler has joined #ruby
cryptfu has quit [Ping timeout: 272 seconds]
fowl has joined #ruby
wilmoore has quit [Remote host closed the connection]
<shevy> bambanx that is no different from including modules, first you must "load" or "require" these files
<shevy> have you done so already?
xaq has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tomzx has quit [Ping timeout: 240 seconds]
wilmoore has joined #ruby
<bambanx> shevy require 'myfile.rb' ?
tvw has joined #ruby
<shevy> bambanx yeah
<shevy> if you are on 1.9.x you may have to use require './myfile.rb'
<shevy> or require_relative 'myfile.rb'
<shevy> or, bundle it into a project, then install that project, then you can do require 'myfile.rb'
<shevy> and another option is to modify load path... I think this is the variable %:
<shevy> oops
<shevy> $:
xiaotian has joined #ruby
<bambanx> require 'machine.rb' is not working
<bambanx> i am on 1.9 version
noodletraveler has quit [Ping timeout: 245 seconds]
yugui is now known as yugui_zzz
<bambanx> shevy, check pls http://pastebin.com/QHYWQzQG
noodletraveler has joined #ruby
<shevy> bambanx read what I typed pls
<bambanx> ok
<shevy> <shevy> if you are on 1.9.x you may have to use require './myfile.rb'
<shevy> is machine.rb in the same directory too?
<shevy> require './machine.rb'
<bambanx> thanks shevy =)
<shevy> it works?
TheIronWolf has joined #ruby
<bambanx> yeah
<shevy> ok good
<bambanx> requiere './myfile.rb'
<shevy> if it works, you can think of all required files as "one huge .rb file"
<bambanx> require*
<shevy> as if you would have pasted everything into one .rb file
wilmoore has quit [Remote host closed the connection]
<shevy> now you can use all modules and classes from those files
<bambanx> o nice
<bambanx> is like a pattern?
<shevy> most ruby people will eventually write one parent module, and put everything into that module, when they have many different .rb files
<bambanx> this is when some people talk about patterns?
Haydos has quit [Quit: Leaving]
<shevy> bambanx, more like the way how you work in ruby
mikepack has joined #ruby
<shevy> for instance, let's say you have a project called "foo"
<shevy> typically you would create a module called
<shevy> module Foo
<shevy> and inside that module, you will put all your classes
<shevy> module Foo
<shevy> class Bar
<shevy> class Ble
<shevy> end
<bambanx> ok
<shevy> and often, people will write class Bar in file bar.rb and class Ble in file ble.rb
<shevy> you see?
<bambanx> yeah
<shevy> bambanx, it is more a convention
<shevy> it can make life easier, because you know what goes where by the name alone
<bambanx> is more order i think
<shevy> yeah
<bambanx> more nice programming
<shevy> not everyone uses that convention, but I like it
<bambanx> thanks for share your tricks
noodletraveler has quit [Ping timeout: 245 seconds]
<shevy> :)
lxsameer has joined #ruby
lxsameer has joined #ruby
wilmoore has joined #ruby
<bambanx> shevy
<bambanx> if for example
<bambanx> in my program
<bambanx> i use a variable
<bambanx> and later in the program i dont use any more
<bambanx> its variable is using memory yet?
<bambanx> i should destroy it?
noodletraveler has joined #ruby
lkba has joined #ruby
shiki_ has joined #ruby
vladiim has quit [Quit: vladiim]
noganex has quit [Ping timeout: 244 seconds]
stewart_ has left #ruby [#ruby]
<benwoody> You'd only need to nil it if you use it in the same namespace again
<bambanx> what u mean with nil
shiki has quit [Ping timeout: 272 seconds]
lkba has quit [Remote host closed the connection]
TheIronWolf has quit [Quit: cheers]
noganex has joined #ruby
<benwoody> Give it a nil value
<bnagy> bambanx: No. This is not C. You don't need to do your own memory management.
<bambanx> @.@
<bnagy> (also you should never need to 'nil' a variable. How is that even a thing?)
digitalcakestudi has quit [Ping timeout: 240 seconds]
noodletraveler has quit [Ping timeout: 250 seconds]
<rking> bnagy: You've got to be kidding me. You can imagine of no case where you'd want to set something to nil?
<bnagy> rking: not for memory management
<rking> Aha, gotcha. =)
<rking> But even then you'd have to break cycles, no?
noodletraveler has joined #ruby
<bnagy> break whatnow?
vladiim has joined #ruby
keanehsiao has quit [Quit: Leaving...]
mdw has joined #ruby
<shevy> bambanx the ruby garbage collector tries to handle the memory stuff for you. when a variable is no longer needed, it is freed from the memory location
<bambanx> thanks shevy
<rking> If A refers to B, and B refers to A, their refcounts will forever be >0, right?
<shevy> hmm
<bambanx> shevy, you have skills of teacher :)
<shevy> rking even when both are nil?
JohnBat26 has joined #ruby
<rking> bambanx: Now don't go and say stuff like that. He'll get the big head.
<bnagy> wow, totally good point. I bet they never thought of what to di if they both go out of scope
<bnagy> you should totally write them a note and let them know
<rking> shevy: How can nil refer to anything?
<shevy> yeah rking I dont know :)
gosshedd has joined #ruby
Resure has joined #ruby
nipra has joined #ruby
<bambanx> rking, ?
<rking> bambanx: Kidding.
gokul has joined #ruby
<fowl> rking, what about nil+3?
<bambanx> :P
<bnagy> fowl: ahha! You mean 7!
<pradeepto> rking: I got it working, it worked the way you recommended. By removing the double quotes inside the `s.
<pradeepto> Thanks.
noganex has quit [Read error: Operation timed out]
<rking> pradeepto: Sweet. =)
<rking> bnagy: It's a nontrivial problem. If Ruby solved it then it's one of the few dynamic languages that has.
Resure has quit [Remote host closed the connection]
shiki_ has quit [Remote host closed the connection]
noodletraveler has quit [Ping timeout: 240 seconds]
Solnse has quit []
vitor-br has joined #ruby
<rking> bnagy: Besides, if you have a long-running object that refers to something large-but-obsolete, then you would nil it to allow the GC to free it.
noodletraveler has joined #ruby
noganex has joined #ruby
dwon has quit [Quit: Leaving]
bambanx has quit [Ping timeout: 255 seconds]
ewag has quit [Ping timeout: 260 seconds]
<bnagy> rking: sorry I was looking for some links on the triviality of collecting circular refernced items
<bnagy> but I got bored
<bnagy> so you can google it yourself :)
googya has left #ruby [#ruby]
* rking doubts that.
<bnagy> bascically, can't reach from root -> good to collect
bambanx has joined #ruby
<bnagy> s/sc/s/
<rking> Maybe Ruby was designed from the start with it in mind, but I'm sure other languages have this problem.
noodletraveler has quit [Ping timeout: 244 seconds]
<bnagy> maybe ones from the 80s
<bnagy> if you do nothing but refcounting you would have it, yeah, but things move on
<rippa> Another solution is to periodically use a tracing garbage collector to reclaim cycles. Since cycles typically constitute a relatively small amount of reclaimed space, the collection cycles can be spaced much farther apart than with an ordinary tracing garbage collector.
adeponte has joined #ruby
<bnagy> one of the links I found that said 'ruby doesn't have this problem' is from 2006
noodletraveler has joined #ruby
<bnagy> but it didn't have details so I didn't consider it useful reference material
gosshedd has quit [Read error: Connection reset by peer]
gosshedd has joined #ruby
<rking> Hrm, yeah, I do need to learn more about Ruby GC — but I still wouldn't come close to saying nil'ing things is never needed.
manizzle has quit [Ping timeout: 260 seconds]
<bnagy> *shouldn't veer be
<bnagy> and it shouldn't
kil0byte_ has joined #ruby
<shevy> veer be? beer ve?
<shevy> alcohol again, man... always chatting about it...
<bnagy> there are some good habits you can employ, as well, like using methods to handle potentially big objects
gosshedd has quit [Read error: Connection reset by peer]
<bnagy> just to make things easy for the GC
kil0byte has quit [Ping timeout: 252 seconds]
vladiim has quit [Quit: vladiim]
noodletraveler has quit [Ping timeout: 245 seconds]
<bnagy> MRI GC will look like it's leaking sometimes, cause it is quite conservative
<bnagy> but it's actually not, mostly
<bnagy> ime my leaks have always been C extensions, or me being a retard in FFI code
noodletraveler has joined #ruby
<bnagy> jruby jruby something garbage collection jruby
batmanian has joined #ruby
<bnagy> morning shevy
<bnagy> you're up early
gosshedd has joined #ruby
ewag has joined #ruby
weasels has joined #ruby
otters has quit [Read error: Connection reset by peer]
<Beoran__> in ruby cyclical garbage is collected too, but if something isn't garbage it isn't collected
<Beoran__> that means, if you keep a freference somewhere, the object wn't be colected
<Beoran__> such "forgotten" references can wok a lot like a memory leak
manizzle has joined #ruby
<bnagy> if that's 'working like' a memory leak, then what's an actual memory leak? ;)
MasterLambaster has joined #ruby
noodletraveler has quit [Ping timeout: 252 seconds]
zeromodulus has joined #ruby
yxhuvud has joined #ruby
noodletraveler has joined #ruby
gosshedd has quit [Read error: Connection reset by peer]
gosshedd has joined #ruby
shiki has joined #ruby
gosshedd has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
araujo has quit [Quit: Leaving]
noodletraveler has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
xiaotian has quit [Quit: Computer has gone to sleep.]
gosshedd has joined #ruby
d3vic3 has joined #ruby
CheeToS has joined #ruby
gosshedd has quit [Read error: Connection reset by peer]
TandemAdam has quit [Ping timeout: 255 seconds]
noodletraveler has quit [Ping timeout: 252 seconds]
pdtpatrick has joined #ruby
noodletraveler has joined #ruby
<pradeepto> Is there a way to do what Net::Http::get_response does but is non-blocking?
octobrainz is now known as cephalopod
gosshedd has joined #ruby
<pradeepto> I just want to make once such call, so not sure if it make sense to use delayed_job or Typhoeus just for that.
andantino has quit [Quit: Leaving]
<diegoviola> i wish something like npm existed for ruby...
<pradeepto> diegoviola: gem/bundler?
noodletraveler has quit [Ping timeout: 244 seconds]
macmartine has quit [Read error: Connection reset by peer]
vladiim has joined #ruby
sparrovv has joined #ruby
macmartine has joined #ruby
noodletraveler has joined #ruby
yankov has joined #ruby
banisterfiend has joined #ruby
maletor has joined #ruby
shevy has joined #ruby
looopy has quit [Remote host closed the connection]
cryptfu has joined #ruby
maletor has quit [Client Quit]
noodletraveler has quit [Ping timeout: 245 seconds]
weasels has quit [Read error: Connection reset by peer]
otters has joined #ruby
noodletraveler has joined #ruby
gosshedd has quit [Read error: Connection reset by peer]
gosshedd has joined #ruby
gosshedd has quit [Read error: Connection reset by peer]
bambanx_ has joined #ruby
NemesisD has joined #ruby
cephalopod has quit [Quit: Never look down on someone unless you're helping them up.]
wmoxam has quit [Ping timeout: 240 seconds]
d3c has quit [Read error: Connection reset by peer]
savage- has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 248 seconds]
bambanx has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
jayrulez has joined #ruby
gosshedd has joined #ruby
<diegoviola> pradeepto: yeah thanks
gosshedd has quit [Read error: Connection reset by peer]
Carson_ has joined #ruby
<diegoviola> it seems that bundler was made to fill a gap of rubygems
Vert has quit [Read error: Connection reset by peer]
gosshedd has joined #ruby
<diegoviola> i'd like to have a package manager for local installation only, that easily allows me to change prefix.
<diegoviola> something simple, KISS.
Carson_ has quit [Client Quit]
<diegoviola> npm-like
looopy has joined #ruby
ABK has joined #ruby
<diegoviola> bundler seems to be close to what i need but it seems to do a lot more too, so it's a bit overkill in that sense
<Mon_Ouie> Can't you do that easily with gem?
sparrovv has quit [Ping timeout: 252 seconds]
<diegoviola> gem install foobar -i -n apparently allows me to specify a different path
djdb has joined #ruby
xrq has joined #ruby
<xrq> hai
<Mon_Ouie> You can set $GEM_HOME whenever you want
<diegoviola> -i, --install-dir DIR -n, --bindir DIR
<diegoviola> Mon_Ouie: oh
<diegoviola> let me try
kil0byte_ has quit []
gosshedd has quit [Read error: Connection reset by peer]
<bambanx_> HI
bambanx_ has quit [Quit: Saliendo]
<diegoviola> Mon_Ouie: that sort of works, almost... expect that my bin goes into ~/.gem still, so I still need to specify -i and -n, annoying.
bambanx has joined #ruby
gosshedd has joined #ruby
<diegoviola> *except
<bambanx> guys what good tool we have for debug in ruby? i have a error and i cannt find it :/
altiouz has joined #ruby
<shevy> bambanx I use pp usually
<bambanx> shevy, what is pp ?
<shevy> require 'pp'
<shevy> pretty print
<shevy> bambanx, try to narrow the bug down, so you know where it occurs
<bambanx> ok
<shevy> and put that part on pastie.org :)
<bnagy> bambanx: *an error <-- found it for you
MasterLambaster has quit [Quit: MasterLambaster]
<bambanx> I FIND !!
<bambanx> :)
<shevy> what error was it?
keanehsiao has joined #ruby
<bambanx> i change a constant in my main
macmartine has quit [Quit: macmartine]
<bambanx> but not in the other file
<bambanx> the file i include
mikepack has quit [Remote host closed the connection]
Karmaon has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
altiouz has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Remote host closed the connection]
JivaD has quit [Quit: Leaving.]
twinturbo has joined #ruby
snearch has joined #ruby
otters has quit [Read error: Connection reset by peer]
eph3meral has quit [Remote host closed the connection]
otters has joined #ruby
<Mon_Ouie> diegoviola: there's ~/.gemrc too
JivaD has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
visof has quit [Ping timeout: 272 seconds]
JivaD has quit [Client Quit]
shruggar has joined #ruby
lxsameer has quit [Quit: Leaving]
schovi has joined #ruby
senny has joined #ruby
tonini has joined #ruby
corburn has joined #ruby
<bambanx> bnagy, what you mean with : bambanx: *an error <-- found it for you
corburn has quit [Quit: Leaving]
gosshedd has quit [Ping timeout: 245 seconds]
<xrq> <bambanx> guys what good tool we have for debug in ruby? i have a error and i cannt find it :/
<xrq> ^ irb
<bambanx> is a command? i should include on my program?
<bnagy> you said 'a error', which is an error
<bambanx> i am not using irb
<bnagy> this is joke, yes?
<bambanx> prompt i use for run
<bambanx> :$
<xrq> bambanx: irb is a tool people use for debugging
<xrq> among other things
tewecske has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
<shevy> bambanx what kind of constant
<shevy> usually you need to define a constant only once
<bnagy> dunno, irb is great for checking individual statements, but not so hot for debugging actual scripts
<bambanx> i fixed
<shevy> yay!
<bambanx> :)
<diegoviola> Mon_Ouie: gempath in ~/.gemrc kind of works but then i still get shit in ~/gem dir (bin, cache, specifications, etc), rubygems seems to be broken in design.
<xrq> bnagy: no
<bambanx> rubymine have a good tools for debug
yugui_zzz is now known as yugui
<bambanx> but is not free and i dont like heavy editors
<bambanx> i use sublime text
bluOxigen has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
fukushima has quit [Quit: Leaving...]
dhaskew_ has joined #ruby
<bambanx> rubymine is for ladies
<bnagy> I barely even have a use case for pry, let alone a full debugger. 'p' is plenty, for me
<bnagy> (99.99% of the time)
<diegoviola> ~/.gem*
<xrq> irb is great for refining code until it works properly with all inputs
corburn has joined #ruby
<xrq> and feeding inputs to methods and seeing what comes out. hence allowing you to debug
maesbn has joined #ruby
<rking> xrq: That sounds more like unit tests' realm.
<rking> (Because as you tweak the code your old input is still run.)
<xrq> unit testing *is* part of debugging
<bnagy> yeah but unit tests are for sissies
<rking> =|
<shevy> I am like bnagy except that I usually use pp rather than p
<rking> shevy: That's twice as heavyweight a solution.
<bnagy> lol
<shevy> but it is prettier
<shevy> I am really superficial. when it looks good on the outside, I am fine with it
becom33 has quit [Remote host closed the connection]
oliwer has joined #ruby
sparrovv has joined #ruby
NemesisD has quit [Quit: leaving]
TheHunter_1039 has joined #ruby
robotmay has joined #ruby
vladiim has quit [Quit: vladiim]
wilmoore has quit [Remote host closed the connection]
macer1 has joined #ruby
fukushima has joined #ruby
mdw has quit [Remote host closed the connection]
novodinia has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
monzie has joined #ruby
vladiim has joined #ruby
otters has quit [Read error: Connection reset by peer]
otters has joined #ruby
Morkel has joined #ruby
becom33 has joined #ruby
<becom33> shevy, hi
<becom33> i got my problem worked out last night
yugui is now known as yugui_zzz
schovi has quit [Remote host closed the connection]
macer1 has quit [Ping timeout: 260 seconds]
<bambanx> guys this plugin is for debug ? https://github.com/maltize/sublime-text-2-ruby-tests
zeromodu_ has joined #ruby
vertroa has quit [Read error: Connection reset by peer]
igotnolegs has quit [Quit: Computer has gone to sleep.]
vertroa has joined #ruby
deobald__ has quit [Ping timeout: 260 seconds]
<hemanth> Hello Ruby hacker wrote about JSON parsing in ruby one-liner, need your review! http://h3manth.com/content/json-parsing-ruby-one-liner
zeromodulus has quit [Ping timeout: 272 seconds]
gilead has joined #ruby
MasterLambaster has joined #ruby
MasterLambaster has quit [Read error: Connection reset by peer]
<td123> hemanth: I don't think you need crack for that right?
<td123> hemanth: (just the json gem is enough
vladiim has quit [Quit: vladiim]
<bnagy> also, it's not really a one-liner if you're installing someone's gem and running a JSON.parse method
<td123> so JSON.parse RestClient.get url
<shevy> becom33 really? how did you manage
becom33 has quit [Ping timeout: 248 seconds]
<xrq> <bnagy> yeah but unit tests are for sissies
<xrq> sure.. that's why I write bug-free code the first time :P
banisterfiend has joined #ruby
shruggar has quit [Ping timeout: 252 seconds]
<hemanth> bnagy, technically yes, but to code it's a one liner
becom33 has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
<hemanth> td123, require 'json' you mean?
<bnagy> saying something fits on one line doesn't make it a one-liner
<td123> hemanth: yes
<hemanth> heh heh true!
<bnagy> 'here's a great one-liner to assign the value 4 to a variable called a'
<rking> LOL
<hemanth> :D
<td123> hemanth: my example uses only 2 libs :P
banisterfiend has quit [Remote host closed the connection]
<hemanth> come one bnagy
<hemanth> /one/on
<xrq> bnagy: feeling pedantic are we?
<hemanth> td123, json gem is bundled by default?
<shevy> my problem with unit testing is that it feels a lot like satisfying a compiler
<becom33> shevy, you there ?
<shevy> what's the advantage of a "scripting" language when you have to go to great lengths to satisfy this or that part of the code with more tests
<shevy> becom33 no I am not
<becom33> :/
<xrq> my problem with unit testing is I like ending up with lots of bugs filed against the software
<bnagy> my problem is shoehorning tests onto complex behaviours that can't be tested atomically
<shevy> bugs happen with or without unit testing too, bugs are reported with or without unit testing as well
<bnagy> it's a cult, and it's not always a rational development approach
<shevy> yeah
<bnagy> also, it's for sissies :)
<xrq> shevy: that's true. bugs that you find and fix will still happen anyways
blabla3 has joined #ruby
<shevy> bugs that are fixed are fixed
strnx has quit [Excess Flood]
<xrq> shevy: really? you seem to be indicating the opposite
banisterfiend has joined #ruby
<shevy> and you seem to be indicating to be talking outta your ass
<banisterfiend> shevy: hey shev
<shevy> hey banisteur
<shevy> I am going to call you the french way
rpk_ has quit [Quit: Page closed]
<xrq> says the person who says that with unit testing bugs will still be reported
<banisterfiend> shevy: mademoiselle banisteure
<xrq> sure, rare bugs will be reported
<shevy> xrq where did I say that
<becom33> shevy, I thought putting the source to git . would you help me to fix the wrong codes . not errors . like help to better code
<xrq> but not obvious ones that you catch in your unit testing
<xrq> shevy: you said it a minute ago
<xrq> <shevy> bugs happen with or without unit testing too
<shevy> <shevy> bugs happen with or without unit testing too, bugs are reported with or without unit testing as well
<shevy> do not quote a part of it xrq
clockwize has joined #ruby
<xrq> I can quote the entire thing, it doesn't matter
<shevy> it for sure does matter
<shevy> "bugs are reported with or without unit testing as well"
<shevy> here I quote it for you again xrq
<xrq> your argument sounds like "we're all going to die anyways, let's walk in front of a train"
<shevy> I can understand that you wish to defend unit testing
petercs has joined #ruby
<shevy> after all you must unit test all your software
<bnagy> becom33: you can just pastie any file, I'm sure we'll find plenty of improvements
<shevy> and as you said, you find bugs only if you unit test right? :>
<xrq> shevy: I don't need to defend unit testing, your argument doesn't hold water
<bnagy> becom33: then you can go and refactor the rest with the stuff you learn :)
<shevy> xrq my argument is just fine, but you need to learn to quote properly man
<xrq> shevy: I didn't need to quote your entire statement because it was redundant
<xrq> <shevy> bugs happen with or without unit testing too, bugs are reported with
<xrq> or without unit testing as well
<shevy> xrq it is not redundant in any way, it is not even connected either
<xrq> I quoted your entire quote, it's still incorrect. there.
<shevy> how is it not correct?
looopy has quit [Remote host closed the connection]
<shevy> do you imply that without unit testing bugs can't happen?
banisterfiend has quit [Remote host closed the connection]
<xrq> fewer bugs are reported when you performed proper unit testing
<xrq> that's the whole point
<bnagy> yeah that's an assertion
weasels has joined #ruby
abra has quit [Ping timeout: 276 seconds]
otters has quit [Read error: Connection reset by peer]
<becom33> bnagy, ??
<xrq> in fact, if you did exhaustive unit testing, there would be no bugs reported at all
<bnagy> hahaha
<shevy> oh man
<bnagy> omg I just blew coke out my nose
<bnagy> (the soft drink)
cephalopod has joined #ruby
<becom33> bnagy, lol
<shevy> it's a good quote though
<bnagy> becom33: I'm saying that I'm sure that any sample of your code will be enough for people to give you some tips
<bnagy> becom33: you're not going to be able to absorb enough to make your coding 'perfect' in one sitting, it's an iterative process
bluelf has joined #ruby
Eldariof-ru has joined #ruby
CheeToS has quit [Ping timeout: 252 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JohnBat26 has quit [Remote host closed the connection]
<becom33> bnagy, the problem is I can't post everycode in my app
<shevy> perfect code :)
araujo has joined #ruby
<bnagy> becom33: so, you learn a bit, get some tips, then go and improve the rest of your code with that. It's called 'refactoring' - making working code more betterer
<becom33> thats why I thought maby shevy might able to help
<shevy> becom33, every time you have a problem with ruby code, you should try to isolate the part that has the problem in the simplest way, so that others can solve the problem in that code
<bnagy> becom33: it's good that you have a bromance with shevy, but there are a few other decent programmers on here as well, who might also give tips
<bnagy> after all, we don't want to wear shevy out
<becom33> bnagy, yes yes im sure . aha what romance O_O
<shevy> yeah I keep on telling him that he should not PM and instead ask everyone but it is to no avail :(
mdw has joined #ruby
<shevy> I think the PM-happy folks tend to be impatient
<becom33> shevy,
<becom33> bnagy,
<shevy> but he is improving
<shevy> <becom33> i got my problem worked out last night
<becom33> :D
batmanian has quit [Quit: Computer has gone to sleep.]
khakimov has quit [Quit: Computer has gone to sleep.]
<shevy> becom33 the problem with queries (PMs) in my IRC client is that I have to click on the tab, and then type things into that tab, here on #ruby it is a lot easier as the tab is already active, and more things happen too
moshee has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
moshee has joined #ruby
crankyco_ has joined #ruby
<shevy> so it's like a PM with everyone else too at the same time!
<shevy> O_o
<shevy> o_O
<xrq> bromance. hehe.
banisterfiend has joined #ruby
<becom33> :D
crankycoder has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
Alantas has joined #ruby
<becom33> shevy, i know its public everyone can help
strnx has joined #ruby
abra has joined #ruby
<xrq> no, I can't help
banister_ has joined #ruby
h4mz1d has quit [Ping timeout: 265 seconds]
<becom33> xrl, whats bromance ?
schovi has joined #ruby
<xrq> judging by the way the letters are constructed, I'd say romance with a bro
<shevy> becom33 if you ever want to learn how to unit test in ruby, xrq is your man
yankov has quit [Quit: yankov]
<keanehsiao> hi
banisterfiend has quit [Ping timeout: 272 seconds]
<keanehsiao> anybody use goliath?
stefanp has joined #ruby
stefanp has quit [Changing host]
stefanp has joined #ruby
keanehsiao_ has joined #ruby
<keanehsiao_> hi
<keanehsiao_> anybody use goliath?
looopy has joined #ruby
<bnagy> we heard you the first time :)
<banister_> bnagy: be naggy
<keanehsiao_> wondering.. can I write bdd for goliath?
<bnagy> having just googled, that looks kind of funky, not sure about using anything based on EM anymore though :(
<bnagy> evening, banister_
<banister_> bnagy: sup
<keanehsiao_> bnagy: were u just answered me?? :p
rushed has joined #ruby
<hemanth> bnagy, thanks for the enlightenment, changed the title to JSON parsing with ruby one-liner ? ;)
* hemanth a simple symbol can change the game ;)
<bnagy> keanehsiao_: not directly, no, sorry. I've never heard of goliath before just then
<shevy> David and Goliath
<keanehsiao_> :p
<shevy> siao, is that chinese? I remember singaporeans using "wa liao!" back on my mIRC days on galaxynet
<keanehsiao_> goliath is a framework based on EM
<bnagy> hemanth: honestly, that title irritates me almost exactly the same amount
SmoothSage has joined #ruby
<bnagy> keanehsiao_: yes, I know, I just googled. It looks like a cool idea
<bnagy> apart from the fact that I'm not sure about EM's future
<hemanth> bnagy, sorry for that, will write a better one soon :)
<keanehsiao_> shevy: did u mean "Goliath" ? XD
<shevy> EM will die?
<bnagy> hemanth: the tl;dr summary of your post was 'JSON parsers parse JSON'
ackz has quit [Ping timeout: 245 seconds]
<bnagy> shevy: I'm not sure, I'm not in that scene anymore, but I thought they went off to work on celluloid now
altiouz has joined #ruby
<bnagy> plus I hear people complaining that the EM channel is a bit thin now
<bnagy> but I have nothing other than rumour and innuendo
robotmay has quit [Remote host closed the connection]
<bambanx> what is EM ?
weasels has quit [Read error: Connection reset by peer]
<bnagy> EventMachine
otters has joined #ruby
<bnagy> it's an event driven 'Reactor' for ruby
ph^ has joined #ruby
<keanehsiao_> bnagy: celluloid is cool. yet, if I'm going to pick another event-driven framework (which means I need to learn a new framework).. I rather use EM or just use erlang or scala… @@
ennui has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
<bnagy> I like the goliath approach, bury all the async in Fibers, hide it from the user
<keanehsiao_> I use EM heavily in production and it's quite stable & fast ..
<bnagy> callbacky reactor stuff always starts out fun but ends up in tears
roolo has joined #ruby
<keanehsiao_> bnagy: it's smart, but perhaps it's also the weakness, because u never know what happened at behind..
skogis has joined #ruby
<bnagy> meh EM's a bit like that anyway, poking the reactor internals is a world of weird
<bambanx> in simple words what you can do with golliath?
adamkittelson has joined #ruby
<bambanx> :$
<keanehsiao_> bambanx: api :)
<bambanx> o
examancer has joined #ruby
<bambanx> like node.js?
<keanehsiao_> bambanx: we use it for api with concurrent.
<keanehsiao_> yes
<bambanx> cool !!!
<banister_> bnagy: have you seen EM-synchrony
<bnagy> sooon, soooooon jvm coroutines
<bnagy> banister_: no I haven't touched EM for 2 years
Helius has joined #ruby
<banister_> bnagy: so what do you use now
b1rkh0ff has joined #ruby
<bnagy> 0mq / beanstalkd
<keanehsiao_> 0mq is really cool…
<bluelf> hey all, is pair programming good for learning if both of the persons involved are novices and just started web dev ?
bier_ has quit [Ping timeout: 245 seconds]
<bnagy> probably, assuming pair programming is ever good
Criztian has joined #ruby
blabla3 has quit [Quit: WeeChat 0.3.7]
pawdro has joined #ruby
batmanian has joined #ruby
crankycoder has joined #ruby
batmanian has quit [Client Quit]
nipra has quit [Ping timeout: 255 seconds]
shruggar has joined #ruby
<xrq> pair programming is great for that bromance
ukwiz has joined #ruby
clockwize has quit [Ping timeout: 256 seconds]
crankyco_ has quit [Ping timeout: 255 seconds]
RoUS has quit [Read error: Connection reset by peer]
keanehsiao_ has quit [Quit: keanehsiao_]
keanehsiao has quit [Quit: Leaving...]
<bnagy> yeah the one on top can write the code and the other one can write the unit tests
<xrq> ohhh too legit
zeromodu_ is now known as zeromodulus
<shevy> lol bnagy
maahes has quit [Ping timeout: 260 seconds]
nej has quit [Quit: nej]
<shevy> it also almost sounds like sex
<xrq> pair programming's a great idea when one person can't move their limbs
<bluelf> bnagy do you have bitter experiences of pair programming ?
<bnagy> The set of my experiences of pair programming does not contain 'bitter'
<bluelf> bnagy then what is the problem?
<bnagy> didn't know there was a problem?
vladiim has joined #ruby
<bluelf> bnagy so is it good for learning ?
c0rn has joined #ruby
bier_ has joined #ruby
<bnagy> well any programming is good for learning programming
punkrawkR has joined #ruby
<xrq> code review where one experienced programmer discusses coding problems makes for better learning
<bnagy> insofar as pair programming is a good learning tool, and I have no idea if that's the case, I can't imagine that the relative skills of the parties makes such a huge difference
maahes has joined #ruby
mahmoudimus has joined #ruby
<xrq> peer programming works when both programmers are in over their heads and have to collaborate on something... that shouldn't happen too ofter
<bluelf> xrq problem is both of us are new
<xrq> *often
<xrq> typically people work on completely different code to prevent having to do that
<bnagy> also, whether it's a good learning tool is a different question to whether it's a good way to produce good code
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
vladiim has left #ruby [#ruby]
yankov has joined #ruby
<bnagy> will 2 noobs in a pair produce better code then either of them would individually?
<bnagy> who can say. Bring me data.
robotmay has joined #ruby
<bnagy> as a learning tool, though, intuitively I can't see how it would be worse
<banister_> bnagy: they'll egg eachother on two great ugly frankenstein monstrosities
<banister_> to create*
<banister_> jeez im dialexic
<banister_> dyslexic*
<xrq> so, this dyslexic walks into a bra
<banister_> hehe
<bnagy> as a dyslexic who just had a double mastectomy, I find that joke offensive
<banister_> haha
* hemanth is a dsylexic
imami|afk is now known as banseljaj
<xrq> I am too. dyslexics untie!
<banister_> :D
<bnagy> LOL
iocor has joined #ruby
<hemanth> D:
adamkittelson has quit [Remote host closed the connection]
* hemanth submits the above lines to bash.org
<Hanmac> if you cant write dsylexic because of your dsylexic, then you have a BIG problem ;P
<hemanth> :|
yankov has quit [Quit: yankov]
<bnagy> dyslexia is not a barrier anymore - like that fashion guy who is dyslexic AND has tourette's
bluelf has left #ruby ["Leaving"]
<shevy> is that where you scream at the top of your lungs?
nipra has joined #ruby
dv310p3r has quit [Ping timeout: 272 seconds]
<bnagy> Yes. It's a joke about FCUK.
cola_zero has left #ruby [#ruby]
<bnagy> shevy just... sucks all the humour out of the room sometimes :|
<banister_> bnagy: he's german
<bnagy> inorite?
<banister_> have you ever seen a german laugh? they dont laugh, they just sit there with a serious expression and say "i laugh"
<xrq> and start cursing like a sailor
<banister_> (that's when they find something funny)
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
minijupe has quit [Quit: minijupe]
timonv has joined #ruby
Poapfel has joined #ruby
<bnagy> We shouldn't be mean to shevy.
<bnagy> he'll invade Poland
<banister_> haha
<banister_> i'll be hiding in the attic
clockwize has joined #ruby
<bnagy> Frankly, I don't find that refernce amusing
<banister_> :P /me thinks of reddit pun threads
dv310p3r has joined #ruby
<bnagy> I'm waiting on a software component that someone else is developing. Can you tell?
<banister_> bnagy: i figured you were smoking the famous himalayan dank
<bnagy> so, OT, does anyone know how I can have a git repo, and also release almost all of the code on github?
<bnagy> like, all but 2-3 dirs
<xrq> bnagy: you too, huh?
looopy has quit [Remote host closed the connection]
<bnagy> is this a common request? :
<xrq> bnagy: no, I'm waiting on people to finish code so I can integrate
<bnagy> ahha
<xrq> you could do it with aliases or a script that copies code maybe
<banister_> bnagy: you'll need to filter-branch
<banister_> otherwise they could still find the directores in previous commits
<bnagy> ooh filter-branch
<bnagy> shiny tell me more
<bnagy> I tried branch, deletesecret stuff
<bnagy> but when I rebased on master it all comes back
<banister_> yeah delete scecret stuff will only remove it from that commit at best
<banister_> a fervernt hacker could easily retrieve it from history
<banister_> fervent*
<banister_> wouldn't eve have to be fervent, it's pretty easy
<banister_> bnagy: filter-branch rewrites every single commit in history to remove a file or directory
<banister_> it's what you should use if you want to hide content that's present somewhere in your history
Vainoharhainen has joined #ruby
<bnagy> ok... but then say I remove sekritdir, go and make a lot of commits in master, and now I want to pull all that into public-branch (but still not have sekritdir from master)
<bambanx> gn guys thanks for all
Boohbah has quit [Ping timeout: 276 seconds]
<bnagy> night
<banister_> i wouldnt keep 'branch-with-secrets-removed' alive at all, that is i wouldn't later try to put commits from master on it
snearch has quit [Quit: Verlassend]
bambanx has quit [Quit: Saliendo]
fayimora has quit [Quit: Busy…..zzzzz]
<banister_> instead i would just regenerate the branch-with-secrets-removed fresh each time u wanted to push
<banister_> by rerunning your filter-branch script on master
<bnagy> hm... ok yeah that's doable
<banister_> but it would be kind of useless
<bnagy> but if I'm going to do that I may as well use rsync with a manifest
<bnagy> which is my leading option
xaq has quit [Remote host closed the connection]
kaspernj has joined #ruby
sandGorgon has joined #ruby
nai has joined #ruby
keanehsiao has joined #ruby
keanehsiao_ has joined #ruby
nai has quit [Remote host closed the connection]
jimeh2 has joined #ruby
ddv has joined #ruby
novodinia has quit [Read error: Operation timed out]
ukwiz has quit [Quit: Leaving]
rushed has quit [Ping timeout: 245 seconds]
fr0gprince_mac has joined #ruby
fixl has joined #ruby
sandGorgon has quit [Ping timeout: 272 seconds]
Shahor has joined #ruby
Shahor has quit [Client Quit]
xhh has joined #ruby
xhh has left #ruby [#ruby]
djdb has quit [Read error: Operation timed out]
ronniy has joined #ruby
djdb has joined #ruby
banseljaj is now known as imami|afk
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby
TheHunter_1039 has quit [Quit: TheHunter_1039]
xaq has joined #ruby
sandGorgon has joined #ruby
ph^ has quit [Remote host closed the connection]
francisfish has joined #ruby
flype has joined #ruby
Facefox has joined #ruby
jameshyde has quit [Remote host closed the connection]
dhaskew has joined #ruby
dhaskew_ has quit [Read error: Connection reset by peer]
tomb_ has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
cantonic has quit [Ping timeout: 248 seconds]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
c0rn has quit []
corburn has quit [Quit: Leaving]
noodletraveler has quit [Ping timeout: 265 seconds]
zii has quit [Read error: Connection reset by peer]
noodletraveler has joined #ruby
zii has joined #ruby
zii is now known as Guest54445
test34- has joined #ruby
test34- has quit [Changing host]
test34- has joined #ruby
test34 has quit [Ping timeout: 260 seconds]
gabrtv has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
kaspernj__ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jackiechan0 has joined #ruby
vladyn has joined #ruby
<jackiechan0> hello
A124 has joined #ruby
A124 has left #ruby [#ruby]
kaspernj has quit [Ping timeout: 265 seconds]
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
davidcelis_ has joined #ruby
Guest54445 has quit [Read error: Connection reset by peer]
visof has joined #ruby
<keanehsiao_> halo
manizzle has joined #ruby
Guest54445 has joined #ruby
davidcelis has quit [Ping timeout: 245 seconds]
Guest54445 is now known as sie
sie has quit [Changing host]
sie has joined #ruby
Muz has quit [Ping timeout: 250 seconds]
<xrq> loha
gabrtv has joined #ruby
Muz has joined #ruby
Muz has quit [Changing host]
Muz has joined #ruby
davidcelis_ has quit [Read error: Connection reset by peer]
davidcelis_ has joined #ruby
yekta has joined #ruby
yekta has left #ruby [#ruby]
pietr0 has quit [Ping timeout: 276 seconds]
cordoval has joined #ruby
pietr0 has joined #ruby
cordoval has left #ruby [#ruby]
cha1tanya has quit [Ping timeout: 251 seconds]
ph^ has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
visof has quit [Ping timeout: 272 seconds]
imami|afk is now known as banseljaj
asnad has joined #ruby
adeponte has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
tonini has quit [Remote host closed the connection]
altiouz has quit [Read error: Connection reset by peer]
altiouz has joined #ruby
foofoobar has joined #ruby
altiouz has quit [Ping timeout: 252 seconds]
ctp_ has joined #ruby
ctp-_ has joined #ruby
simao has joined #ruby
berkes has joined #ruby
mneorr has joined #ruby
cha1tanya has joined #ruby
artm has joined #ruby
ctp_ has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
Boohbah has joined #ruby
artm_ has joined #ruby
artm has quit [Read error: Connection reset by peer]
artm_ is now known as artm
jackiechan0 has quit [Quit: Sto andando via]
xrq has quit [Ping timeout: 255 seconds]
gabrtv has quit [Ping timeout: 272 seconds]
artm has quit [Quit: artm]
gabrtv has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
artm has joined #ruby
jbw has quit [Ping timeout: 272 seconds]
ecolitan has joined #ruby
virunga has joined #ruby
crankycoder has quit [Remote host closed the connection]
fermion has joined #ruby
TheNumb has quit [Ping timeout: 276 seconds]
jbw has joined #ruby
pietr0 has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
artm has quit [Quit: artm]
diegoviola has joined #ruby
matti has joined #ruby
pietr0 has joined #ruby
matti has quit [Client Quit]
etehtsea has quit [Ping timeout: 245 seconds]
Stefunel has joined #ruby
d3vic3 has quit [Ping timeout: 250 seconds]
<Stefunel> is there a one liner for something like a = b, but if b == nil, a = c ?
<bnagy> Stefunel: a=b || c
eka has joined #ruby
d3vic3 has joined #ruby
<banister_> Stefunel: also, a = b.nil? ? b : c
<Stefunel> thanks
<Stefunel> just tried the first one and works perfect
<banister_> yeah naggy's one is cuter
foofoobar has quit [Quit: bb]
<bnagy> yeah cause ternary sux
<banister_> esp when u get crap lke this: a.b? ?
<banister_> looks stupid
<Hanmac> banister_ you are wrong, yours should be a = b.nil? ? c : b
<Hanmac> or better a = b ? b : c
<bnagy> Stefunel: there is a difference between banister's and mine
gyre007 has joined #ruby
<banister_> Hanmac: mine was correct in spirit though, and my heart was in the right place
<bnagy> mine will not assign b if it were false, his would
<bnagy> usually not important, but illustrates 'truthy' in ruby
<bnagy> versus a specific test for nil
Foxandxss has joined #ruby
maxok has joined #ruby
stefanp_ has joined #ruby
sohocoke has joined #ruby
stefanp- has joined #ruby
virunga has quit [Quit: Sto andando via]
stefanp has quit [Ping timeout: 265 seconds]
googya has joined #ruby
cantonic has joined #ruby
shiki has quit [Remote host closed the connection]
banister_ is now known as banisterfiend
waseem_ has joined #ruby
<banisterfiend> bnagy: this channel is dying
stefanp_ has quit [Ping timeout: 265 seconds]
<banisterfiend> is #ruby-lang more active?
waseem_ has left #ruby ["WeeChat 0.3.7"]
b1rkh0ff has quit [Ping timeout: 265 seconds]
waseem_ has joined #ruby
<Hanmac> i think the otherone is allready in zombie mode
<banisterfiend> Hanmac: do you hang out on #ruby-de too?
<banisterfiend> Hanmac: join there
rushed has joined #ruby
<Hanmac> normaly i am on ruby-de too ... but the only ones that are posting on -de are you and shevy
<banisterfiend> Hanmac: haha ok, i just posted a new msg there now
<banisterfiend> Hanmac: can u guess what it was
<shevy> I haven't been on #ruby-de since years
<banisterfiend> shevy: join it
<shevy> they mostly talk about non-ruby stuff there too so it's kinda a useless channel
<banisterfiend> i'm having great fun
<banisterfiend> shevy: they dont even properly talk afaict, they just exchange encrypted messages using weird unicode characters
<shevy> yeah
<shevy> it is called "spamming"
<waseem_> I have a directory with a bunch of files with names like 12345.some_fixed_string_120518.csv. The first number i.e. 12345 is not unknown to me and is generated by an external program. 120518 is today's date(Date.today.strftime("%y%m%d"). There is only one file with a datestamp. I'm not sure how to read a file with today's date. How do I be _clear_ about that unknown number?
<shevy> how is the number generated again?
<shevy> you could try Dir.glob submatches
<waseem_> shevy: That's random.
<waseem_> shevy: Thanks I will look at its documentation.
sohocoke has quit [Quit: sohocoke]
<banisterfiend> shevy: ich glaub ich hab dieses jahr noch keine einzige zeile ruby geschrieben
<waseem_> shevy: Thanks. I think that is what I need. :)
b1rkh0ff has joined #ruby
<banisterfiend> shevy: ?
Guedes_out is now known as Guedes
foofoobar has joined #ruby
moosya has quit [Quit: moosya]
liluo has quit [Remote host closed the connection]
maxok has quit [Quit: Linkinus - http://linkinus.com]
fr0gprince_mac has quit [Quit: Leaving...]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
markjwlee has joined #ruby
shiki has joined #ruby
<markjwlee> hi everyone... im a newbie... having trouble installing a ruby app. Can someone help? The instructions say to run the following command: to start the server: bundle exec ./script/server -p 3001
<markjwlee> The problem is, how do I then stop the server?
sohocoke has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
twinturbo has quit [Ping timeout: 245 seconds]
Hanmac has quit [Remote host closed the connection]
banister_ is now known as banisterfien
banisterfien is now known as banisterfiend
zeromodu_ has joined #ruby
emmanuelux has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
twinturbo has joined #ruby
twinturbo has quit [Client Quit]
banister_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
Hanmac has joined #ruby
pu22l3r has joined #ruby
<banisterfiend> Hanmac: wb
shiki has quit [Remote host closed the connection]
<Hanmac> do you know why i am kicked? because i wanted to ignore you
lxsameer has quit [Quit: Leaving]
<banisterfiend> Hanmac: what? how does that work
zeromodulus has quit [Disconnected by services]
<Hanmac> it was a bug in my pidgin
zeromodu_ is now known as zeromodulus
<banisterfiend> Hanmac: it's fate telling u that you shouldn't ignore me
zeromodu_ has joined #ruby
ctp_ has joined #ruby
<shevy> banisterfiend "I think I did not write a single line of ruby code this year"
<banisterfiend> shevy: thanks
ctp_ has quit [Client Quit]
bluenemo has joined #ruby
zeromodu_ is now known as zeromodulus_
<shevy> the channel I miss the most is #gobolinux from 5 years ago :(
zeromodulus has quit [Disconnected by services]
ctp_ has joined #ruby
zeromodulus_ is now known as zeromodulus
ctp-_ has quit [Ping timeout: 265 seconds]
bluenemo has quit [Ping timeout: 245 seconds]
noodletraveler has quit [Quit: leaving]
Jackneill has joined #ruby
keanehsiao has quit [Read error: Connection reset by peer]
keanehsiao_ has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 272 seconds]
sandGorgon has quit [Ping timeout: 252 seconds]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
raul782 has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
keanehsiao has joined #ruby
keanehsiao_ has joined #ruby
kpshek has joined #ruby
kiela has quit [Ping timeout: 260 seconds]
jonatha__ has quit [Remote host closed the connection]
kiela has joined #ruby
bluenemo has joined #ruby
nanderoo has joined #ruby
jonathanwallace has joined #ruby
Mohan has quit [Ping timeout: 245 seconds]
rh1n0 has joined #ruby
akem has quit [Ping timeout: 245 seconds]
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
<burgestrand> markjwlee: CTRL-C
jonathanwallace has quit [Ping timeout: 245 seconds]
Telg has quit [Read error: Connection reset by peer]
<banisterfiend> burgestrand: more parsing homework
<banisterfiend> :*
sutha has joined #ruby
<sutha> how can i fix this error /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead
<burgestrand> banisterfiend: I’m behind on my course, my real school is giving me hell :p
<banisterfiend> burgestrand: heh heh
<burgestrand> sutha: you use String#encode instead
<burgestrand> sutha: iconv will be deprecated in the future
<sutha> burgestrand: i am install redmine .. don't know ruby
<Hanmac> burgestrand its not sutha's fault ... activesupport is the evil one
jonathanwallace has joined #ruby
<burgestrand> sutha: it is a warning, not an error
<sutha> Hanmac: i am trying to install redmine stock with mongrel_rails start witht hat error
<sutha> burgestrand: /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- dispatcher (LoadError)
<sutha> burgestrand: http://dpaste.com/749797/
<Hanmac> sutha join #rubyonrails ...
emmanuelux has quit [Read error: Connection reset by peer]
sutha is now known as xerophyte
dv310p3r has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
emmanuelux has joined #ruby
rohit has joined #ruby
Kamijou_Touma has joined #ruby
crankycoder has joined #ruby
Progster has joined #ruby
TheNumb has joined #ruby
raul782 has quit [Remote host closed the connection]
nicoulaj has joined #ruby
Helius has quit [Read error: Operation timed out]
Mohan has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
waseem_ has left #ruby ["WeeChat 0.3.7"]
Mohan has joined #ruby
dnyy has quit [Remote host closed the connection]
krusty_ar has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
keanehsiao has quit [Read error: Connection reset by peer]
keanehsiao_ has quit [Read error: Connection reset by peer]
aibo has joined #ruby
geekbri has joined #ruby
<aibo> hi, I have question about Mechanize gem, I need to save page html content to be able to use it locally, how can I do it?
jonatha__ has joined #ruby
geekbri has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 272 seconds]
gmci has joined #ruby
jonatha__ has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr_ has joined #ruby
bigkm has joined #ruby
gokul has quit [Quit: Leaving]
rohit has quit [Quit: Leaving]
fbernier has joined #ruby
sepp2k has joined #ruby
rippa has quit [Quit: derp herp]
mneorr has quit [Ping timeout: 265 seconds]
geekbri has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby
snearch has joined #ruby
sie has left #ruby ["WeeChat 0.3.7"]
wmoxam has joined #ruby
liluo has joined #ruby
gazler_ has joined #ruby
theRoUS has joined #ruby
elake is now known as etank
iamjarvo has quit [Ping timeout: 244 seconds]
josephwilk has quit [Remote host closed the connection]
Mohan has quit [Ping timeout: 240 seconds]
Kamijou_Touma is now known as nfk
nfk is now known as Tsunashi_Takuto
Tsunashi_Takuto is now known as Harima_Kenji
Harima_Kenji is now known as it_tard
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
nachtschatt3n has joined #ruby
<nachtschatt3n> hi
<nachtschatt3n> maybe someone please give me a clue
<shevy> aibo not sure with mechanize, you can use ruby's open module to open and save a page tho
<shevy> nachtschatt3n funny nick you got there ;)
<aibo> shevy, thx, mechanize has 'save' method :)
<nachtschatt3n> shevy: thx :)
weasels has joined #ruby
<shevy> it really has?
weasels has quit [Changing host]
weasels has joined #ruby
<shevy> been ages since I last used it
NoobNoob has joined #ruby
otters has quit [Read error: Connection reset by peer]
<nachtschatt3n> if a have a each in a each
yekta has joined #ruby
<Hanmac> and?
yekta has quit [Client Quit]
<nachtschatt3n> say a.each do |acc| { Model.fields.each do |field| { puts ":#{field} => '#{acc.field}'," }}
<banisterfiend> shevy: what does his nickname mean in english
<nachtschatt3n> banisterfiend: nightshadow
<shevy> banisterfiend it's a really cool word, nacht = night, schatten = shadow
<banisterfiend> i thought it meant "not chatting"
<shevy> but it's one of the few words that sounds better in german than in english
<shevy> it's also some kind of plant
<bnagy> nachtschatt3n: assuming that weren't a syntax error.. what's the question? :)
<shevy> the "Nachtschattengewächse"
<shevy> german is really king when it comes to creating super long words
<Hanmac> shevy Dampfschifffahrtsgesellschaft?
fixl has quit [Ping timeout: 248 seconds]
<shevy> haha
<shevy> it gets even longer!
<shevy> The old Donaudampfschifffahrtsgesellschaft
<shevy> LOL
<shevy> banisterfiend, it was founded in 1829 for the danube... the few ships on it
<Hanmac> nachtschatten: a.each {|acc| Model.fields.each {|field| puts ":#{field} => '#{acc.field}'," }}
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
tommyvyo has joined #ruby
tilde` has joined #ruby
<nachtschatt3n> bnagy: the question is
chson has quit [Remote host closed the connection]
<nachtschatt3n> bnagy: "how can i use the acc with the field var"
wmoxam has quit [Ping timeout: 256 seconds]
jrist-afk is now known as jrist
wangr has joined #ruby
<nachtschatt3n> bnagy: it's like a model "car" with "color","name" … usw
<nachtschatt3n> bnagy: and i want do generate a seed file
jgarvey has joined #ruby
<bnagy> if acc responds to #field then that code will work
<bnagy> if it doesn't it won't obviously...
<nachtschatt3n> a = Account.all
<nachtschatt3n> a.each do |acc|
<nachtschatt3n> puts "Account.create ("
<nachtschatt3n> Account.fields.each do |field|
<nachtschatt3n> puts ":#{field} => '#{acc.field}',"
<nachtschatt3n> end
<nachtschatt3n> puts ")"
<nachtschatt3n> end
<nachtschatt3n> that's the code
<bnagy> argh use pastie please
<nachtschatt3n> ah sry
<Hanmac> you may want this: acc.send(field)
Morkel has quit [Quit: Morkel]
<bnagy> Hanmac: why would that work if acc.field doesn't?
<bnagy> ohhh I see send whatever is in the variable field
jonathanwallace has joined #ruby
<bnagy> zzz
<nachtschatt3n> TypeError: is not a symbol
<bnagy> eh? what ruby version?
stefanp- has quit [Ping timeout: 265 seconds]
<nachtschatt3n> Loading production environment (Rails 3.1.3)
<nachtschatt3n> mom
<nachtschatt3n> 1.9.1
<bnagy> acc.send(field.to_sym), probably old ruby
<nachtschatt3n> field is a Enumerator
<nachtschatt3n> NoMethodError: undefined method `to_sym'
Criztian has quit [Remote host closed the connection]
<nachtschatt3n> puts ":#{field} => '#{acc.send(field.to_sym)}',"
jayrulez has quit [Read error: Connection reset by peer]
<bnagy> wtf
mneorr_ has quit [Remote host closed the connection]
<bnagy> why would field be an Enumerator? What kind of broken fricking design is this?
dv310p3r has joined #ruby
jayrulez has joined #ruby
<bnagy> why can't an account object just marshal itself anyway?
<nachtschatt3n> bnagy: ok from the beginnig
macmartine has joined #ruby
<nachtschatt3n> i want a script that create a text output like this " http://pastie.org/3930396
<nachtschatt3n> to export all my data from the database in a seed file
<bnagy> and you're going to eval this I guess
<nachtschatt3n> so i do a each to get all the records
<bnagy> ok this is broken front to back and top to bottom
<bnagy> someone else can help, hopefully
<nachtschatt3n> and i want an each to get all the fields from the model
googya has quit [Quit: Leaving.]
<nachtschatt3n> bnagy: well im a php to ruby guy :P and i have to lern a lot i guess
digitalcakestudi has joined #ruby
<shevy> cool
<shevy> you use php nachtschatt3n ?
<nachtschatt3n> shevy: a long time :) but i think ruby is the future
<shevy> hehe
<shevy> ruby is 80% perfect
<shevy> php somewhere at 20%
<nachtschatt3n> :)
<nachtschatt3n> well you have to start somehere
<shevy> yeah
<shevy> I felt I was limited in PHP with web-only
<shevy> ruby works very fine as replacement for shell-tasks
<shevy> and shell scripts
pika_pika has joined #ruby
<shevy> it also works for the www
chson has joined #ruby
nacengineer has quit [Quit: Leaving.]
sbanwart has joined #ruby
iamjarvo has joined #ruby
eka has quit [Remote host closed the connection]
artm has joined #ruby
philcrissman has joined #ruby
artm has quit [Client Quit]
nipra has quit [Ping timeout: 265 seconds]
altious has joined #ruby
chson has quit [Remote host closed the connection]
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
StoSun has joined #ruby
crankycoder has quit [Remote host closed the connection]
<nachtschatt3n> shevy: jup i worked with it in metasploid and works like charm
crankycoder has joined #ruby
<nachtschatt3n> shevy: but i got my noob problems with vars and casting usw
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
tomzx has joined #ruby
<shevy> hehe
ukwiz has joined #ruby
<shevy> well "casting" is usually done via the .to_* methods. or, if you use it in a string, "foo #{bar}" and bar will automatically become a string here
r126l has quit [Remote host closed the connection]
foofooba1 has joined #ruby
<nachtschatt3n> jup
StoSun has quit [Client Quit]
mneorr has joined #ruby
StoSun has joined #ruby
<nachtschatt3n> the next level is to apply that on models and objects
StoSun has quit [Client Quit]
<nachtschatt3n> like Account.fields.each do |f| { puts f.to_str }
<nachtschatt3n> :(
StoSun has joined #ruby
<nachtschatt3n> Account.fields.each do |f| { puts "#{f}" }
internet_user has joined #ruby
<shevy> well
<nachtschatt3n> nothing :/
<shevy> in that example you would not need that
<shevy> puts f
<shevy> should work
hynkle has joined #ruby
<shevy> nachtschatt3n
nacengineer has joined #ruby
<shevy> Account.fields.each { |f| puts "#{f}" }
devdazed has quit [Quit: Bye]
<shevy> oops
<shevy> Account.fields.each { |f| puts f }
foofoobar has quit [Ping timeout: 265 seconds]
clockwize has quit [Read error: Connection reset by peer]
<Sgeo> Isn't do redundant with { }
<Sgeo> ?
clockwize has joined #ruby
<Sgeo> Oh, that's what shevy's describing
<Sgeo> I think
<Sgeo> Why am I in this channel
<nachtschatt3n> :)
<shevy> Sgeo so that you can give newcomers advice
<nachtschatt3n> shevy: yea that worked
<Sgeo> But I don't want to have anything to do with Ruby
<Sgeo> >.>
bglusman has joined #ruby
<shevy> Sgeo hmm
ghanima has joined #ruby
Vert has joined #ruby
<shevy> Sgeo then you can stay here because of the free beer
<Sgeo> Well, I had an interest in Ruby months ago, so that's really why
digitalcakestudi has quit [Ping timeout: 244 seconds]
mvangala has joined #ruby
ElitestFX has joined #ruby
dustybrains has joined #ruby
<nachtschatt3n> :)
<nachtschatt3n> free beer sounds good :)
jayrulez has quit [Quit: Leaving]
Vert has quit [Client Quit]
altious has quit [Ping timeout: 260 seconds]
ackz has joined #ruby
Jake232 has joined #ruby
rorymckinley2 has quit [Quit: Leaving]
L-----D has joined #ruby
Morkel has joined #ruby
uris has joined #ruby
devdazed has joined #ruby
keanehsiao has joined #ruby
<nachtschatt3n> YEEEAA
<nachtschatt3n> i got it
<nachtschatt3n> the problem was fields
<nachtschatt3n> Account.column_names.each
<nachtschatt3n> and everything runs smooth
perryh is now known as perryh_away
keanehsiao_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tomzx has quit [Ping timeout: 272 seconds]
IPGlider has joined #ruby
mneorr has quit [Remote host closed the connection]
carloslopes has joined #ruby
tilde` has quit [Ping timeout: 245 seconds]
stefanp has joined #ruby
stefanp has quit [Changing host]
stefanp has joined #ruby
td123 has quit [Read error: Connection reset by peer]
savage- has joined #ruby
maesbn has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
bigkm has quit [Quit: Computer has gone to sleep.]
petercs has quit [Ping timeout: 240 seconds]
yonggu has quit [Quit: yonggu]
wingdspur has joined #ruby
artm has joined #ruby
<banisterfiend> errbody upvote: http://news.ycombinator.com/item?id=3991632
FatherCarbon has quit [Ping timeout: 244 seconds]
<banisterfiend> that includes u be naggy (bnagy) ;)
NoobNoob has left #ruby [#ruby]
fr0gprince_mac has joined #ruby
test34- has quit [Ping timeout: 260 seconds]
iocor has joined #ruby
tilde` has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
<shevy> hmm
dv310p3r has quit [Ping timeout: 245 seconds]
<shevy> I logged in, clicked on the + but nothing changed
<banisterfiend> shevy: hey shevrolet
<shevy> do you need positive karma for upvotes?
<banisterfiend> shevy: looking forward to our night on the town?
icrazyhack has joined #ruby
csavola has joined #ruby
<shevy> banisterfiend I am in a bad mood, I always get downvoted
<banisterfiend> shevy: that's becuase you're the king of trolls
<shevy> :(
LongkerDandy has joined #ruby
TheHunter_1039 has joined #ruby
L-----D has quit [*.net *.split]
nanderoo has quit [*.net *.split]
gyre007 has quit [*.net *.split]
bluenemo has quit [*.net *.split]
ecolitan has quit [*.net *.split]
francisfish has quit [*.net *.split]
bier_ has quit [*.net *.split]
cephalopod has quit [*.net *.split]
skogis has quit [*.net *.split]
musl has quit [*.net *.split]
mfridh has quit [*.net *.split]
Ammar01 has quit [*.net *.split]
Shamgar has quit [*.net *.split]
lindenle_ has quit [*.net *.split]
patronus has quit [*.net *.split]
xoebus has quit [*.net *.split]
brian- has quit [*.net *.split]
ged has quit [*.net *.split]
nanderoo1 has joined #ruby
yugui_zzz is now known as yugui
mfridh has joined #ruby
L-----D has joined #ruby
bier_ has joined #ruby
bluenemo has joined #ruby
nanderoo has joined #ruby
ecolitan has joined #ruby
musl has joined #ruby
francisfish has joined #ruby
cephalopod has joined #ruby
gyre007 has joined #ruby
lindenle_ has joined #ruby
Ammar01 has joined #ruby
Shamgar has joined #ruby
xoebus has joined #ruby
patronus has joined #ruby
brian- has joined #ruby
ged has joined #ruby
vladyn has quit [Quit: vladyn]
musl has quit [Max SendQ exceeded]
ecolitan has quit [Excess Flood]
skogis has joined #ruby
exchgr has joined #ruby
L-----D has quit [Ping timeout: 252 seconds]
nanderoo has quit [Ping timeout: 252 seconds]
musl has joined #ruby
crankycoder has quit [Remote host closed the connection]
ecolitan has joined #ruby
jonatha__ has joined #ruby
dkr has left #ruby ["Leaving"]
stabby_lambda has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
stabby_lambda is now known as rjsamson1
dhaskew has joined #ruby
crankyco_ has joined #ruby
jonatha__ has quit [Remote host closed the connection]
jonathanwallace has quit [Read error: Connection reset by peer]
dv310p3r has joined #ruby
jonatha__ has joined #ruby
kstephens has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
ecolitan has quit [Remote host closed the connection]
ecolitan has joined #ruby
<becom33> shevy, ?
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
rjsamson1 has left #ruby [#ruby]
<shevy> becom33 what
kstephens has joined #ruby
<becom33> whats up ?
<shevy> banisterfiend thinks I am the king of trolls
jeebster has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
<becom33> shevy, ha ha
<becom33> shevy, seriously . is it too . I think Im done with my framework . need some stuff fixed . shevy can you help ?
tilde` has quit [Ping timeout: 245 seconds]
clockwize has quit [Quit: clockwize]
jeebster has quit [Ping timeout: 245 seconds]
jeebster has joined #ruby
ABK has quit [Ping timeout: 272 seconds]
artm has quit [Quit: artm]
cha1tanya has quit [Ping timeout: 248 seconds]
<shevy> becom33 depends on the problem
<shevy> :)
jonatha__ has quit [Remote host closed the connection]
tilde` has joined #ruby
nachtschatt3n has quit [Remote host closed the connection]
<becom33> shevy, its not a problem actually . I dont think I've done it in to a correct standerd
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
ananthakumaran1 has joined #ruby
<shevy> well what standard precisely
<shevy> becom33, you just find your own style to program
xbayrockx has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 260 seconds]
mvangala has quit [Remote host closed the connection]
Icehawk78 has joined #ruby
<shevy> and it improves itself automatically the more you write
C0deMaver1ck has joined #ruby
xbayrockx has joined #ruby
<becom33> shevy, i want a another coder for this open source project :/
C0deMaver1ck is now known as Guest76543
<becom33> :( don't you wanna contribute a project ?
Guest76543 has quit [Client Quit]
moshee has quit [Ping timeout: 240 seconds]
<shevy> becom33 dont think I have the time, #gamebox and #pry are on a higher priority already
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<shevy> and right now I am fixing a bug in an old project of mine (so boring...)
<becom33> shevy, do you know anyone who would be intrusted in ?
<shevy> becom33 are you on github with this?
<shevy> a project should be useful to others (if you want to attract contributors)
<becom33> shevy, at the moment no . but Im about to put it to github . but looking for a private git untill its completely done
<becom33> shevy, don't worry this is going to be usefull
roolo has quit [Quit: Linkinus - http://linkinus.com]
Mr_mandude has joined #ruby
Mr_mandude is now known as C0deMaver1ck
C0deMaver1ck is now known as Mr_mandude
Mr_mandude is now known as C0deMaver1ck
C0deMaver1ck has quit [Changing host]
C0deMaver1ck has joined #ruby
minijupe has joined #ruby
<Icehawk78> Is there any reason a non-threaded application using Sequel to access a sqlite3 database (which is not being accessed by anything else) would be raising database lock/busy exceptions?
mengu has quit [Read error: Operation timed out]
hynkle has quit [Read error: Connection reset by peer]
hynkle has joined #ruby
mneorr has joined #ruby
robdodson has joined #ruby
mengu has joined #ruby
snickersnack has joined #ruby
gazler_ has quit [Ping timeout: 272 seconds]
chson has joined #ruby
hynkle has quit [Client Quit]
ABK has joined #ruby
savage- has quit [Remote host closed the connection]
busybox42 has quit [Quit: Leaving.]
bbttxu has joined #ruby
busybox42 has joined #ruby
PaciFisT has joined #ruby
wookiehangover has quit [Ping timeout: 272 seconds]
robdodson has quit [Quit: robdodson]
kevinbond has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
LongkerDandy has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 244 seconds]
rasbonics has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
fr0gprince_mac has quit [Ping timeout: 272 seconds]
yugui is now known as yugui_zzz
bigkm has joined #ruby
btanaka has joined #ruby
thone has quit [Ping timeout: 244 seconds]
schaerli has quit [Ping timeout: 250 seconds]
RegEchse has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
thone has joined #ruby
gazler_ has joined #ruby
phantasm66 has joined #ruby
niku4i has joined #ruby
adeponte has joined #ruby
icrazyhack has quit [Ping timeout: 244 seconds]
fmcgeough has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
tomb_ has joined #ruby
ghanima has quit [Quit: Leaving.]
SmoothSage has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
CheeToS has joined #ruby
strnx has quit [Excess Flood]
heftig has joined #ruby
strnx has joined #ruby
yugui_zzz is now known as yugui
Criztian has joined #ruby
fbernier has joined #ruby
<geekbri> Is there an easy way to be able to capture the stdout and stderror of a thread and store it in a variable?
<geekbri> but also not prevent it from streaming to stdout
phantasm66 has quit [Quit: *poof*]
savage- has joined #ruby
v0n has quit [Quit: Quitte]
maesbn has joined #ruby
schaerli has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
enroxorz has joined #ruby
hynkle has joined #ruby
hynkle has quit [Client Quit]
pdtpatr1ck has joined #ruby
sbanwart has quit [Quit: Konversation terminated!]
SmoothSage has joined #ruby
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
maesbn has quit [Remote host closed the connection]
headius has joined #ruby
felipec has joined #ruby
avtobiff has joined #ruby
<felipec> is there a nicer way to do this? http://pastie.org/3930835
<avtobiff> hi! i am total ruby beginner but want to modify sup so tests can be run. is it safe to modify something like File.size(@f) to @f.size ???
jankly_ has quit [Read error: Connection reset by peer]
<avtobiff> the crux is that tests are using stringio to create mboxes that sup will parse, but sup assumes the mbox file to be a file (right?) and not stringio...
jankly_ has joined #ruby
jeebster has quit [Quit: Leaving.]
yankov has joined #ruby
v0n has joined #ruby
hynkle has joined #ruby
ecolitan has quit [Read error: Connection reset by peer]
sbanwart has joined #ruby
deryl has quit [Ping timeout: 260 seconds]
Targen has joined #ruby
<Alantas> felipec: b.concat(b.map{|e|a[e]})
digitalcakestudi has joined #ruby
deryl has joined #ruby
ermines has joined #ruby
<Alantas> Or rather, just: b.map{|e| a[e]}
ananthakumaran1 has quit [Quit: Leaving.]
<Hanmac> or b.map(&a.method(:[]))
weasels has quit [Read error: Connection reset by peer]
<avtobiff> hi!
<avtobiff> is there some intricate detail about changing File.size(@f) into @f.size ???
mfojtik has joined #ruby
TandemAdam has joined #ruby
albemuth has joined #ruby
<felipec> Alantas: Hanmac: none of those do what I want
gosshedd has joined #ruby
<mfojtik> hi guys, do you know if there is a way how to get the default value of an optional method parameter? like: def t(a, b={}) => I want to get the '{}'
<Alantas> avtobiff: File.size(@f) returns the size of the file named by @f. @f.size returns the size of the filename itself.
<avtobiff> Alantas, aha. so what do i do if @f is stringio?
perryh_away is now known as perryh
<heftig> mfojtik: nope.
<Hanmac> fellpec they do ecactly the same as your code
<felipec> Alantas: Hanmac: maybe this makes it clearer: http://pastie.org/3930900
niku4i has quit [Remote host closed the connection]
<Alantas> felipec: b.map{ |e| a[e] } should do exactly that.
cmarques has joined #ruby
<Alantas> I assume you want it to produce ["one", "three"] in this case?
<Alantas> Or from within the method: keys.map{ |key| self[key] }
<becom33> whats a private git service ?
ipoval has left #ruby [#ruby]
asnad has quit [Ping timeout: 250 seconds]
<geekbri> becom33: github or bitbucket are two popular ones
oooPaul has joined #ruby
<geekbri> alternatively you could just run your own git server
seanstickle has joined #ruby
<JonnieCache> COME ON NASDAQ. my popcorn is going to get cold at this rate...
<becom33> geekbri, does github give private hostin ?
sbanwart has quit [Quit: Konversation terminated!]
<JonnieCache> yes but it costs $$$
<felipec> Alantas: ahh, you are right, I ran b.concat(b.map{|e|a[e]}) first, and that messed up the rest of the results
<geekbri> i think bitbucket might allow you a handeful of privte repos for free.
<Alantas> Yeah, I had misinterpreted your original paste.
amalvagomes has joined #ruby
<Alantas> Missed the [] you used for initializing the reduce block.
<geekbri> I prefer github personally. I also don't have any non opensource work, but the github micro plan is only $7 a month
deryl has quit [Ping timeout: 245 seconds]
<Alantas> (btw, one would normally use "t + foo" rather than "t << foo"; the object will be passed back into the next loop, you don't need to mutate it)
mikepack has joined #ruby
<geekbri> becom33: https://bitbucket.org/ seems to say right on the front page "free unlimited private repos"
Gavilan has left #ruby [#ruby]
<becom33> geekbri, thanks
flip_digits has joined #ruby
jeebster has joined #ruby
sbanwart has joined #ruby
<felipec> Alantas: right
snickersnack has quit [Quit: Leaving...]
raul782 has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
chson has quit [Remote host closed the connection]
ermines has quit [*.net *.split]
felipec has quit [*.net *.split]
nanderoo1 has quit [*.net *.split]
Morkel has quit [*.net *.split]
macmartine has quit [*.net *.split]
theRoUS has quit [*.net *.split]
nicoulaj has quit [*.net *.split]
kpshek has quit [*.net *.split]
Alantas has quit [*.net *.split]
mdw has quit [*.net *.split]
noganex has quit [*.net *.split]
wargasm has quit [*.net *.split]
x0F has quit [*.net *.split]
stroem has quit [*.net *.split]
Asher1 has quit [*.net *.split]
rlankfo_ has quit [*.net *.split]
UNIXgod has quit [*.net *.split]
idoru has quit [*.net *.split]
gate has quit [*.net *.split]
pureluck_ has quit [*.net *.split]
Tomasso has quit [*.net *.split]
niv has quit [*.net *.split]
classix has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
alindeman has quit [*.net *.split]
jjp has quit [*.net *.split]
Mchl has quit [*.net *.split]
al-ol_ has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
nick_h_ has quit [*.net *.split]
daed has quit [*.net *.split]
thorncp has quit [*.net *.split]
drmegahertz has quit [*.net *.split]
mahlon has quit [*.net *.split]
AnswerGu1 has quit [*.net *.split]
iaj has quit [*.net *.split]
pingveno has quit [*.net *.split]
limed has quit [*.net *.split]
gate has joined #ruby
gate has joined #ruby
ermines has joined #ruby
nanderoo1 has joined #ruby
nicoulaj has joined #ruby
Morkel has joined #ruby
macmartine has joined #ruby
wargasm has joined #ruby
felipec has joined #ruby
x0F has joined #ruby
theRoUS has joined #ruby
stroem has joined #ruby
Asher1 has joined #ruby
rlankfo_ has joined #ruby
thorncp has joined #ruby
UNIXgod has joined #ruby
pureluck_ has joined #ruby
Tomasso has joined #ruby
niv has joined #ruby
jjp has joined #ruby
Emmanuel_Chanel has joined #ruby
Mchl has joined #ruby
RubyPanther has joined #ruby
al-ol_ has joined #ruby
nick_h_ has joined #ruby
AnswerGu1 has joined #ruby
daed has joined #ruby
drmegahertz has joined #ruby
mahlon has joined #ruby
iaj has joined #ruby
limed has joined #ruby
pingveno has joined #ruby
classix has joined #ruby
idoru has joined #ruby
noganex has joined #ruby
mdw has joined #ruby
Morkel has quit [Max SendQ exceeded]
macmartine has quit [Max SendQ exceeded]
nicoulaj has quit [Max SendQ exceeded]
kpshek has joined #ruby
araujo has quit [Read error: Connection reset by peer]
alindeman has joined #ruby
nanderoo1 has quit [Max SendQ exceeded]
ckrailo has joined #ruby
altious has joined #ruby
Alantas has joined #ruby
<shevy> Atlantis is back!
araujo has joined #ruby
nicoulaj has joined #ruby
* Alantas is risen.
<seanstickle> Watch out for this chtulhoid infestations
<seanstickle> *those
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
td123 has joined #ruby
kenperkins has joined #ruby
SQLStud has joined #ruby
nanderoo has joined #ruby
mockillo has quit [Ping timeout: 252 seconds]
mockillo has joined #ruby
mneorr has joined #ruby
baroquebobcat has joined #ruby
webusnix has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
niklasb has joined #ruby
<ekaleido> i like ruby but i hate rails
oooPaul is now known as SheldonCooper
<ekaleido> inconvenient spot to be in
<seanstickle> Good to know
looopy has joined #ruby
SheldonCooper is now known as oooPaul
TandemAdam has quit [Ping timeout: 272 seconds]
tds has joined #ruby
chson has joined #ruby
<felipec> all right, if anybody is interested, heres some nice ruby code to compare a git, and a mercurial repository :) http://pastie.org/3930972
d3c has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
<avtobiff> I just used Tempfile instead of StringIO and it works :)
asnad has joined #ruby
lauris has joined #ruby
wookiehangover has joined #ruby
carloslopes has quit [Ping timeout: 265 seconds]
macer1 has joined #ruby
savage- has quit [Remote host closed the connection]
<JonnieCache> AND WE'RE OFF! http://www.google.com/finance?q=NASDAQ:FB
<JonnieCache> WOOOOOOOOOO!
macer1 has quit [Changing host]
macer1 has joined #ruby
fbernier has quit [Ping timeout: 272 seconds]
chrismcg is now known as zz_chrismcg
christianrojas has joined #ruby
dv310p3r has quit [Ping timeout: 272 seconds]
flype has joined #ruby
schaerli has quit [Ping timeout: 245 seconds]
foofooba1 has quit [Quit: bb]
jrist has quit [Ping timeout: 260 seconds]
<geekbri> Anybody have an idea of how i would store STDOUT to a variable as well as still having it written to STDOUT
Eldariof-ru has quit [Ping timeout: 252 seconds]
bglusman has quit [Remote host closed the connection]
saltnvinegar has joined #ruby
liluo has quit [Remote host closed the connection]
wmoxam has joined #ruby
jrist has joined #ruby
dv310p3r has joined #ruby
zastaph has joined #ruby
schaerli has joined #ruby
kinesis has joined #ruby
schaerli has quit [Read error: Connection reset by peer]
<kinesis> hey guys, what's the deal with interpreting quotes inside ruby strings? http://pastebin.com/Cvh7XZ60
akem has joined #ruby
mickn has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
schaerli_ has joined #ruby
gosshedd has quit [Ping timeout: 244 seconds]
<Synthead> with Dir.glob, can I do something like this? Dir['**/file[0-9]+.txt']
yugui is now known as yugui_zzz
<heftig> kinesis: you need to escape the #
jackiechan0 has joined #ruby
jackiechan0 has quit [Read error: Connection reset by peer]
jackiechan0 has joined #ruby
schovi has quit [Remote host closed the connection]
schaerli_ has quit [Remote host closed the connection]
codefarmer has joined #ruby
brianpWins has joined #ruby
td123 has quit [Read error: Connection reset by peer]
pdtpatr1ck has quit [Quit: pdtpatr1ck]
btanaka has quit [Remote host closed the connection]
lauris has quit [Quit: Leaving]
td123 has joined #ruby
petercs has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
ABK has quit [Ping timeout: 248 seconds]
schovi has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
schovi has quit [Remote host closed the connection]
<jeebster> any tips for turning an array into a hash?
<heftig> Hash[]
jgrevich has joined #ruby
<jeebster> well yes, but I supposed I have to map out my array
<jeebster> I'm dealing with a pretty deep json page hierarchy that I', hoping to easily access with hashie
<heftig> what does your array look like, and what should the hash look like?
<jeebster> I have an array of hashes, the values are an array of hashes
ananthakumaran has joined #ruby
<forestbird> how do I execute two statements like that? puts host and print "yes" unless `nmap -PN #{host} -oG -`.grep(/^[^#].*/).any?
<forestbird> the "and" doesn't work...
nlc has joined #ruby
<heftig> that's because "puts" returns nil
<heftig> unless ...; puts host; print "yes"; end
sspiff has quit [Remote host closed the connection]
<heftig> (puts host; print "yes") unless ...
<forestbird> ok... thanks
eka has joined #ruby
robotmay has quit [Remote host closed the connection]
<heftig> jeebster: doesn't make sense to me to transform the arrays
senny has quit [Remote host closed the connection]
akem has quit [Ping timeout: 244 seconds]
bfrog has joined #ruby
mickn has quit [Quit: Leaving]
adeponte has joined #ruby
<bfrog> is there a reason this isn't possible, IO.new(3)
<Synthead> There's File.extname() that will return the extension of a file. Is there a method that will return the name without the extension?
bluOxigen has quit [Ping timeout: 244 seconds]
<bfrog> trying to use erlectricity but apparently fd 3 and 4 are now special, anyway to tell ruby not to have those be special?
<heftig> ruby 3>foo -e 'IO.new(3).write("bar")'
<heftig> this works fine here
<Hanmac> synthead File.basename
<Synthead> Hanmac: that still returns the extension
<Mon_Ouie> I do get ArgumentError: The given fd is not accessible because RubyVM reserves itArgumentError: The given fd is not accessible because RubyVM reserves it
<heftig> Synthead: File.basename(file, File.extname(file))
zastaph has quit [Ping timeout: 245 seconds]
khakimov has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
minijupe has quit [Quit: minijupe]
<Synthead> heftig, Hanmac: ooooh, I see! thanks!
<Mon_Ouie> Well, I get that when there's no fd 3 actually
<becom33> i know this has nothing to do with ruby . but how can I add all the files to git ?
enroxorz has quit [Ping timeout: 245 seconds]
<bfrog> yeah, its apparently reserved now in 1.9.3
<bfrog> but not before that
<bfrog> github.com/mojombo/erlectricity uses those
nlc has quit [Ping timeout: 244 seconds]
cordoval has joined #ruby
<C0deMaver1ck> ok so I have a web app that will be running on minimal hardware e.g. 1.6 ghz and 1 gig of ram
<C0deMaver1ck> how well do any of you think ruby can handle running on such low memory?
alanp_ has joined #ruby
<heftig> bfrog: the FDs are a pipe used by the timer thread
mdw has quit [Remote host closed the connection]
cordoval has left #ruby [#ruby]
<heftig> (and they don't have to be 3 and 4)
alanp has quit [Read error: Operation timed out]
<banisterfiend> becom33: git add .
<codefarmer> what is the difference between a_hash["a_key"] and a_hash[:a_key] ?
<becom33> banisterfiend, it doesnt work :/ it says git is uptodate :/
khakimov has quit [Quit: Computer has gone to sleep.]
<becom33> but only my READFILE is there
<becom33> README *
<bfrog> heftig: well I mean, using those makes things a lot easier
mikeycgto has joined #ruby
<codefarmer> it's something i dont fully understand about ruby yet
<banisterfiend> codefarmer: same as the difference between a_hash["a_key"] and a_hash[1312312]
<bfrog> can still do puts and print
<bfrog> using stdio instead means a lot of headaches
<geekbri> is there a way to mimic the functionality of 'tee' with ruby? IE I want to write stdout to a file but also have it continue to be written to stdout as well
<codefarmer> and i should be using a_hash["a_key"] to declare keys in the hash ?
<codefarmer> like use string names for them ?
khakimov has joined #ruby
<banisterfiend> codefarmer: learn about symbols, read up on ruby 'symbols'
<codefarmer> tx
jrist is now known as jrist-afk
luxurymode has joined #ruby
barefoot has joined #ruby
brasten has joined #ruby
tilde` has quit [Quit: leaving]
dcolebatch2 has joined #ruby
gyre007 has quit [Quit: Ex-Chat]
timonv has quit [Remote host closed the connection]
etehtsea has joined #ruby
nlc has joined #ruby
<heftig> bfrog: so use other fds
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ has joined #ruby
dhaskew_ is now known as dhaskew
BeLucid has quit [Read error: Connection reset by peer]
etehtsea has quit [Client Quit]
keithcelt has joined #ruby
savage- has joined #ruby
heftig has quit [Quit: leaving]
<becom33> shevy, do you wanna see my code in gits
<becom33> >
<becom33> ?
BeLucid has joined #ruby
pdtpatrick has joined #ruby
nicoulaj has quit [Quit: nicoulaj]
pika_pika has joined #ruby
alanp_ has quit [Remote host closed the connection]
hynkle has quit [Quit: hynkle]
<shevy> becom33 ewwwwww
<shevy> becom33 your code wants to take out my eyes!
<becom33> shevy,
<shevy> I dream in ruby poetry
<becom33> :(
d3vic3_ has joined #ruby
<shevy> becom33, you gotta have to find your own style
pen_isident has quit [Ping timeout: 260 seconds]
<shevy> you can paste a link to your code here on #ruby though
<becom33> umm
<becom33> are you on bitbucket.org ?
alanp has joined #ruby
<shevy> i dunno
<shevy> I hope not
<shevy> github github github
<shevy> Assembla is worse than both github and bitbucket
ananthakumaran1 has joined #ruby
dcolebatch2 has quit [Quit: reboot]
<shevy> on github you just click on a file to see the source!
brasten has quit [Quit: brasten]
<becom33> ok ok no need to yell
felipec has quit [Ping timeout: 240 seconds]
<shevy> :)
nilg` has quit [Ping timeout: 272 seconds]
<shevy> becom33 come to the dark side man
<shevy> join github!
<becom33> shevy, seriously bro :/ I need to make it compelete before making it public
* Hanmac is on both bitbucket and github
ananthakumaran has quit [Ping timeout: 244 seconds]
kenichi has joined #ruby
tvw has joined #ruby
jameshyde has joined #ruby
vertroa has quit [Remote host closed the connection]
brasten has joined #ruby
yoklov has joined #ruby
CheeToS has quit [Ping timeout: 252 seconds]
<becom33> http://goo.gl/B8Cq0 its public
<shevy> Test::test()
<shevy> I'd use
<shevy> Test.test
<shevy> instead
<becom33> shevy, yea those are just test files
<becom33> well I have some issues
khakimov has quit [Quit: Computer has gone to sleep.]
<becom33> shevy, if you could try downloadin it and run .
<becom33> shevy, yes
<shevy> self.command_ingnitor(cmd) <--- the self. is not needed
alanp has quit [Remote host closed the connection]
<shevy> becom33 I am too scared to run it, it could eat something :)
<becom33> shevy, :/ please I know Im a horrible coder
LtHummus has joined #ruby
<becom33> but come on
<shevy> btw
cmarques has quit [Ping timeout: 248 seconds]
<becom33> shevy, seriously I woudnt come after you unless I need some serious help
bluenemo has quit [Remote host closed the connection]
<shevy> I think you should cut down on the amount of # comments
<shevy> becom33 I am not giving out notes, to me it does not matter if you are good or bad
<becom33> shevy, kept the comments coz still on aa develeoper mood
<shevy> yeah but if the code works, you wont need the # code parts really
alanp has joined #ruby
wingdspur has quit [Quit: Leaving]
<becom33> shevy, do you know anyone who'd like to join with me and continue the core coding ?
cmarques has joined #ruby
<shevy> ask here
<shevy> becom33 also try to ask on geeklist
mneorr has quit [Ping timeout: 252 seconds]
Cicloid has joined #ruby
<becom33> shevy, see from the begining I've after this . atleast run and see its whole lota useless work in it :/
<becom33> i was *
<becom33> shevy, you busy ?
<shevy> no but lazy
yankov has quit [Quit: yankov]
<TTilus> srsly, wtf is this
corburn has joined #ruby
gilead has quit [Quit: Leaving]
<becom33> TTilus, :)
<becom33> WHY ?
<TTilus> ~ backup files in vc
<TTilus> "exploits"?!
<becom33> TTilus, yes
a_a_g has joined #ruby
<TTilus> empty README
rrichards has joined #ruby
minijupe has joined #ruby
lkba has joined #ruby
<becom33> TTilus, I just uploaded it
<TTilus> i gather
felipec has joined #ruby
<TTilus> what is it?
bglusman has joined #ruby
bglusman_ has joined #ruby
<shevy> it's becom33's dream of immortality
<shevy> but he does not want to dream it alone
<TTilus> i see
mahmoudimus has joined #ruby
<becom33> exactly .
<shevy> he needs friends to dream with him
senny has joined #ruby
<shevy> you could be his helpful friend TTilus :)
<becom33> shevy, I need a GOD
<banisterfiend> becom33: can u sing me the song of your country
tatsuya_o has quit [Remote host closed the connection]
<becom33> banisterfiend, why ?
* TTilus cant dream with you cos you not tellin what you deamin
<banisterfiend> becom33: curiuos
<shevy> becom33, but god doesn't exist. it's all people's work and imagination... you need to write it all by yourself for a start, until it is USEFUL enough for others to help you ;)
<becom33> banisterfiend, im from srilanka
<banisterfiend> becom33: sing me
<shevy> do you have good weather there becom33?
<becom33> TTilus, well basically its a web pentesting framework
<TTilus> prolly waybit warmer that here =D
<TTilus> becom33: ok, now you go write that to your README
<becom33> but I can write the modules and exploits , the problem is I need to core done correctly
<shevy> I was in Malaysia once. It was absolutely wonderful (except Kuala Lumpur, that is one dirty town...). The weather was hot, and very humid. The hotness I had no problem with, I just drank more water, but the humidity totally killed me
<limed> shevy: but theres lots of good food!
iamjarvo has quit [Quit: Leaving.]
<shevy> yeah limed I ate lots of satay
<TTilus> becom33: no, first you need synopsis and a couple of loose usecases/goals in a form of examples
<shevy> and they had some strange coconut drink
<TTilus> becom33: of course they could be bdd style tests or epics, but just a couple of examples how your software should be used, should suffice
<TTilus> becom33: kinda README driven development, if you see what i mean
<TTilus> becom33: first you explain your sw like you were explaining to a potential user
<TTilus> becom33: then you go and make it happen
<becom33> TTilus, gimme a few minits i'll write a simple README and let you know .
<becom33> read it and tell me Alright ?
keithcelt has quit [Remote host closed the connection]
* TTilus is waiting =D
Araxia_ has joined #ruby
<kinesis> hey guys how do i set this in a string varaible : !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
abra has quit [Ping timeout: 276 seconds]
davidcelis_ has quit [Quit: K-Lined]
davidcelis has joined #ruby
abra has joined #ruby
jrist-afk is now known as jrist
<TTilus> kinesis: why would you want to?
<TTilus> kinesis: having a string with that kinda content smells bad
nlc has quit [Quit: Leaving]
<TTilus> kinesis: im about 97.3% sure you are crafting a complicated solution to a simple problem
TheFuzzball has joined #ruby
simao has quit [Ping timeout: 250 seconds]
<kinesis> TTilus: yeah im making chargen (old school unix daemon) in text for ruy
<kinesis> Ruby
bigkevmcd has quit [Quit: outta here]
<becom33> TTilus, check now . I see there are some spelling some grammer mistakes :/
<becom33> don't mind them
dcolebatch2 has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<TTilus> kinesis: so you need printable ascii as string?
<TTilus> kinesis: would (33..126).map(&:chr).join do it?
Dreamer3 has joined #ruby
nanderoo has quit [Quit: Leaving.]
moos3 has joined #ruby
lilin has joined #ruby
fermion has quit [Quit: P]
<TTilus> becom33: rough around the edges but not completely hostile anymore
yankov has joined #ruby
<becom33> TTilus, i guess you have a clean idea what am I doing there
d9n is now known as danheberden
felipec has quit [Ping timeout: 240 seconds]
vitor-br has quit [Quit: Saindo]
francisfish has quit [Remote host closed the connection]
hynkle has joined #ruby
yosinof has joined #ruby
<becom33> TTilus,
<TTilus> becom33: how would i?
dv310p3r has quit [Ping timeout: 272 seconds]
<TTilus> becom33: see my first session http://pastie.org/3931550
<becom33> TTilus, beta its not public . im still develeoping it . didnt upload people to use it :/ I cant write help command until Im done with all of the script
<TTilus> becom33: yes you can
<becom33> TTilus, try show exploit
<TTilus> becom33: and thats totally what im trying to tell you to do
hadees has joined #ruby
lilin has quit [Quit: Leaving.]
<TTilus> becom33: no i don't :)
<becom33> it wont burn your computer :/
senny has quit [Remote host closed the connection]
Ammar01 has quit [Quit: Leaving]
<TTilus> becom33: you go write more README or something helpful for the prompt that somebody else will have a possibility to get going without you holding hands with him
becom33_ has joined #ruby
<becom33_> TTilus, i would really some ones help in the core develeoping :/
nlc has joined #ruby
A124 has joined #ruby
<TTilus> becom33_: im doing it right now
<TTilus> becom33_: you didnt notice?
A124 has left #ruby [#ruby]
<becom33_> TTilus, type "show exploits"
felipec has joined #ruby
lilin has joined #ruby
<becom33_> TTilus, umm should i keep talk in public or is it alright if I PM ?
slap_stick has joined #ruby
<TTilus> becom33_: you can pm
<becom33_> thank you :)
<TTilus> becom33_: i wont be answering ;)
<becom33_> :/
<becom33_> alright public it is then
<becom33_> please dont troll me :/
<slap_stick> hey, i was wondering how i would go about using a variable inside a variable i.e. this_1="a" this_2="b" (1..2).each_do |i| if this_#{i} == "a" print "true" end end
ukwiz has quit [Quit: Leaving]
<TTilus> becom33_: i do private jobs only with paying customers
adamkittelson has joined #ruby
becom33 has quit [Ping timeout: 265 seconds]
shruggar has left #ruby [#ruby]
<becom33_> TTilus, ok how much just to code the core
<becom33_> I have done almost . just have some minor issues :/
<TTilus> becom33_: believe me, the next best thing you can do is to make your prompt hint about ?/help and make ?/help list commands and the basic usage
<banisterfiend> becom33_: TTilus is talking about back-alley jobs, and they're private/secret because most of his customers are republican senators
<becom33_> banisterfiend, so no one does open source now O_O
<TTilus> banisterfiend: id (almost) kill for having a senator as a client =D
<TTilus> banisterfiend: even if it were republican
<becom33_> TTilus, kk im not rich :/ just need some who would like to help a person on a open source project :/ I dont gets a penny from this
<TTilus> banisterfiend: ive actually had one, now that you mention it, see http://kasvi.org/index.php?eng
josefig has quit [Quit: Leaving]
<TTilus> banisterfiend: only minor hacking a long time ago ;)
<TTilus> becom33_: there are quite a few people here to help you
<becom33_> yes :) i know
<TTilus> becom33_: if i were you i'd keep coming again and again and always take seriously the advice i receive
<becom33_> TTilus, i do take advices seriously . at the moment Im working on the help command
<bnagy> omg a web pentesting framework?
<TTilus> becom33_: \o/ i love you!
<becom33_> TTilus, did u try "show exploits"
* bnagy dies laughing
<becom33_> bnagy, :/ yea
<TTilus> bnagy: tell me about it =D
<JonnieCache> its friday night and i feel alright
<TTilus> bnagy: just dont look inside
<JonnieCache> enjoy this amusing article ruby channel http://nathan.ca/2012/04/introducing-sdfry-the-modern-programming-language/
<TTilus> bnagy: its pretty gross, but looks like becom33_ is capable of receiving advice ;)
nlc has quit [Read error: Operation timed out]
<bnagy> srsly?
<bnagy> becom33_: don't do it
cmarques has quit [Quit: Computer has gone to sleep]
<bnagy> there are too many already, and they're all better than yours
<becom33_> TTilus, fine fine . Im a horrible coder .
<TTilus> becom33_: bnagy is totally right about that
<becom33_> bnagy, i'm sure there are alot better than mine :)
maletor has joined #ruby
<bnagy> the world needs another 'web pentesting framework' like it needs more cow farts from south america
<TTilus> becom33_: but you could still pretend it doesnt matter, go forward with your stuff and learn to code when hacking it
<becom33_> i dont have code
<becom33_> wow bro seriously your helpign alot bnagy
carloslopes has joined #ruby
<TTilus> becom33_: but dont fool yourself to thinking that your frame will be the next big thing
<bnagy> what? TTilus said you took advice
<pradeepto> Is there a way to add custom commandline switches to a Sinatra app? I am trying to use Trollop, but sinatra itself uses optionparser which comes in the way.
<TTilus> bnagy: i did not promise! :)
<becom33_> TTilus, hmm ok guys thanks alot for the help
SQLStud has quit [Ping timeout: 256 seconds]
<JonnieCache> pradeepto: write your sinatra app as a proper class, then write a wrapper script which deals with the command line and brings up the sinatra app
<TTilus> becom33_: if you are fine with the previous, ill be happy to help you learn coding
erratic has quit []
jrist is now known as jrist-mtg
<becom33_> TTilus, its fine dude . I'll do the way I can . Im not a expert in coding . but atleast I dont make fun out people when they came for help :D
felipec has quit [Quit: Leaving]
<TTilus> becom33_: after the help, the next thing would be to refactor your stuff along the lines of "standard" ruby app layout
lilin has left #ruby [#ruby]
<bnagy> I wasn't making fun of you, becom33_, I'm just telling you you're...um.. biting off more than you can chew
<lindenle_> Hi guys trying to use te %x syntax with temp pipes in bash and keep getting unexpected "(" error. Can someone give me a hand?
<burgestrand> lindenle_: paste the code somewhere online and link to it, along with the error. It sounds like a syntax error but it’s impossible to tell you exactly why it happens without any information.
<bnagy> becom33_: it's a stupidly overpopulated market, and only small parts of it are actually automateable in a sound fashion
<becom33_> ok your telling me stop doing this right
<becom33_> ?
<bnagy> becom33_: web pentesting is the death of even solid dev teams in security powerhouses
<TTilus> becom33_: ./lib/ for all the code, class per file, ./lib/class_name.rb contains class ClassName, ./lib/module_name/class_name.rb for module ModuleName; class ClassName; ...; end; end;
<bnagy> becom33_: No, I'm suggesting that it will never be taken seriously by anyone else
zastaph has joined #ruby
<bnagy> which is not the same as telling you not to do it
<TTilus> becom33_: ...and you need to be fine wit that
<JonnieCache> becom33_: dont listen to them. do it and you will learn so much and it will probably help you get a job
<David_Mi1ler> what is the differenct between 'rescue Exception' and just plain 'rescue'?
<becom33_> TTilus, im fine with it . I dont care if anyone take it seriously
<TTilus> becom33_: then ./bin/ for executables
<TTilus> becom33_: ok, good
amalvagomes has quit [Quit: amalvagomes]
<bnagy> David_Mi1ler: rescue rescues StandardException and children
<bnagy> there are other Exceptions, most of which you probably don't want to be rescuing routinely
mdw has joined #ruby
<becom33_> umm TTilus
asnad has quit [Remote host closed the connection]
<TTilus> becom33_: ./bin/ is something you add to shell path
<David_Mi1ler> so StandardException is a child of Exception
<David_Mi1ler> I would miss Exceptions if I just did a naked rescue
<David_Mi1ler> that explains alot actually :)
<bnagy> uh, apparently I am high according to irb
<bnagy> StandardError, sorry
tomb_ has quit [Quit: Computer has gone to sleep.]
<becom33_> :/ damn
amalvagomes has joined #ruby
<bnagy> StandardError.superclass => Exception
elliomax has joined #ruby
mrsolo has joined #ruby
mneorr has joined #ruby
<David_Mi1ler> bnagy: thanks alot you have helped this newb alot
macer1 has quit [Ping timeout: 272 seconds]
<elliomax> What are the benefits to using something like Pry?
becom33_ has left #ruby ["Leaving"]
<TTilus> becom33_: executables look pretty much like http://pastie.org/3931679
<Synthead> how can I use net/http to post an xml file to a webserver (that uses a username, password, and a non-standard port)?
<banisterfiend> elliomax: watch the screencast here to get an idea: http://pry.github.com
becom33_ has joined #ruby
<elliomax> Synthead: isnt an example of this on the rdocs for nethttp
csavola_ has joined #ruby
<bnagy> David_Mi1ler: if you are on 1.9 do this: ObjectSpace.each_object {|o| p o if o.superclass==Exception rescue next}
<lindenle_> <burgestrand>:http://pastie.org/3931686
<bnagy> and see why most of those you don't want to try and rescue
fbernier has joined #ruby
<TTilus> becom33_: need to go put boys to sleep, dunno if i come back this evening
<elliomax> banisterfiend: just did, I will use it over irb just cause I can but how can I use pry in a TDD enviroment?
<becom33_> TTilus, its fine :) thanks for the help
<TTilus> elliomax: binding.pry
<TTilus> elliomax: or what do you mean?
<elliomax> TTilus: just looking for ideas of use
csavola has quit [Ping timeout: 272 seconds]
<banisterfiend> elliomax: in TDD this might help: https://github.com/banister/plymouth
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<banisterfiend> but im not sure how stable it is these days
rippa has joined #ruby
<David_Mi1ler> bnagy: but won't I get everything with rescue Exception?
<TTilus> banisterfiend: is there something hammertime-like for pry?
<elliomax> so throwing binding.pry is a quick way to view vars during tests
<TTilus> elliomax: exactly
<burgestrand> lindenle_: the error is not coming from ruby, and I believe the reason is that the command really is more complex than just a single command
<elliomax> hell ill do that then
<TTilus> elliomax: use it like a breakpoint
macer1 has joined #ruby
<burgestrand> I can’t really help you with this one
<burgestrand> Perhaps somebody else can
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<lindenle_> <burgestrand>: it must just be some sort of escaping I need to get it to the shell
<bnagy> David_Mi1ler: yeah, which is why you shouldn't do it
macer1 has quit [Ping timeout: 246 seconds]
<elliomax> Started
<elliomax> From: ../test/ColumbusPowell/../../lib/ColumbusPowell.rb @ line 167 ColumbusPowell.recordset:
<elliomax> 162: end
<elliomax> 163: recordsets.push permit_html unless permit_html.empty?
<elliomax> 164: rescue => e
<elliomax> 165: puts "error: #{e}"
<elliomax> 166: end
<elliomax> => 167: binding.pry
<elliomax> 168: recordsets
<elliomax> 169: end
<elliomax> 170:
<elliomax> 171: def self.permit_date(dataset)
<elliomax> 172: permit_date = dataset['permit_date'].strip
<elliomax> So I got this:
<bnagy> elliomax: never do that again, please
<elliomax> what now?
<elliomax> kk
nfluxx has joined #ruby
<banisterfiend> elliomax: wtf r u up to
<elliomax> hell idk just trying to use this tool
shruggar has joined #ruby
<jeebster> what is the ruby convention for method variables inside a module? instance?
davidpk has joined #ruby
<David_Mi1ler> bnagy: I'm afraid I don't understand, can you clarify why rescue Exception is bad?
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bnagy> David_Mi1ler: cause you're rescuing a whole bunch of exceptions that you can't ever recover from
<banisterfiend> elliomax: i spent like a month writing documentation for pry, please read it ;)
<becom33_> elliomax, <bnagy>
<banisterfiend> elliomax: https://github.com/pry/pry/wiki
nfluxx has quit [Remote host closed the connection]
<becom33_> elliomax, pastie.org *
<banisterfiend> elliomax: you're a reals programmer right?
<bnagy> jeebster: usually not
nfluxx has joined #ruby
<banisterfiend> raila*
<elliomax> alright, I just heard you were on here so I though who better
<banisterfiend> rails*
<bnagy> jeebster: cause then you're polluting the namespace of the class you get included into
<David_Mi1ler> bnagy: OK i see, that is what I want because this is happening in a job thread that is going to report the error via another channel
<banisterfiend> elliomax: if u want to ask detailed questions about pry, join #pry :)
<bnagy> David_Mi1ler: what is happening, exactly?
<jeebster> bnagy, so is the convention to use local variables, then?
<bnagy> jeebster: ideally. modules should be discreet and unassuming
senny has joined #ruby
sohocoke has quit [Ping timeout: 272 seconds]
robert_ has quit [Ping timeout: 272 seconds]
<jeebster> ok, cool. I'm using some class variables but they're present to be called without initializing the module
minijupe has quit [Read error: Connection reset by peer]
<David_Mi1ler> bnagy: I am using eventmachine to run a bunch of jobs concurrently with its EM.defer method which runs a proc in another thread and passes the result to another proc
<bnagy> if I wanted something to bust in and start messing up my namespace after I included it I'd get married
<David_Mi1ler> my thread in the defer was failing silently
<David_Mi1ler> and never returning to the callback proc
<bnagy> ai ai ai debuggin EM can indeed be tricky
<David_Mi1ler> so I want to catch everything
<jeebster> good one, bnagy
minijupe has joined #ruby
bluenemo has joined #ruby
<David_Mi1ler> catch/rescue
<bnagy> David_Mi1ler: well... if you do then rescue Exception => e and then warn e.inspect or something
shruggar has quit [Ping timeout: 252 seconds]
<bnagy> but take it out when you're done, it's a dirty habit
<bnagy> oh, with EM you might want to $stderr.flush after you warn, as well
weasels has joined #ruby
ermines has quit [Read error: Connection reset by peer]
<bnagy> jeebster: using @@class_vars is always wrong, in every case
<bnagy> until you can argue the toss and win (which will probably never happen)
<jeebster> so why do they exist then?
<jeebster> lol
<bnagy> to trick people
macmartine has joined #ruby
<jeebster> ^ rhetorical
<David_Mi1ler> bnagy: yeah this is a network operation so the Exceptions aren't just from buggy code, but can be from network failures so I think I need to leave the rescue in there
<bnagy> and for 1-2 cases where they're right
cmarques has joined #ruby
francisfish has joined #ruby
<bnagy> David_Mi1ler: network code should never raise raw Exception
albemuth has quit [Quit: Computer has gone to sleep.]
<bnagy> unless someone wrote it with their feet
<David_Mi1ler> ok I see, our code is indeed directly raising them
<fowl> bnagy, what about instance variables on classes
<fowl> is that wrong too
SQLStud has joined #ruby
<David_Mi1ler> can you indulge me again and tell me why that's bad?
<bnagy> fowl: class ivars are the 'normal' replacement, yep
<shevy> who wants to kiss someone here
voodoofish430 has joined #ruby
<becom33_> :(
<bnagy> David_Mi1ler: because raw Exception is supposed to bypass normal rescue
<fowl> bnagy, wouldnt it be nice if @@ was a shortcut for the class instance vars
lxsameer has quit [Quit: Leaving]
<bnagy> fowl: it would save a lot of people writing stupid code and inconvenience like 3 libs, so probably :)
hynkle has quit [Ping timeout: 244 seconds]
<bnagy> mostly imho people use @@ because they're like "SCOPE! How does it work??"
<jeebster> if I reference a method within a method, do I have access to the referenced method's variables?
<jeebster> wanna DRY up some code if possible
<fowl> no you only have what the method returns
<becom33_> shevy, bnagy kissed me while ago
<bnagy> jeebster: the only sensible way to get access to a methods vars is to get them on return
<David_Mi1ler> ok so these exceptions should probably be StandardErrors
<jeebster> ok, so I should return the variables
<jeebster> cool
<shevy> bnagy hmm do you think the @@ are a positive feature or a misfeature?
<fowl> David_Mi1ler, class SexyError < StandardError and raise those
nlc has joined #ruby
<bnagy> David_Mi1ler: the 'normal' pattern is to have all your custom exceptions as WidgetNotFrobbedException < StandardError
<David_Mi1ler> ok thanks alot guys, huge help
c0rn has joined #ruby
<bnagy> shevy: it's a feature, it's just incredibly tempting to misuse
stephenjudkins has joined #ruby
elliomax has quit [Remote host closed the connection]
<yxhuvud> misfeature, because the functionality of sharing stuff with decendants are better solved by other methods.
<bnagy> *usually better solved
albemuth has joined #ruby
<bnagy> or 'almost always'
iamjarvo has joined #ruby
<bnagy> or 'in such an overwhelming majority of cases that the exceptions are barely worth noticing'
<bnagy> but still :)
hynkle has joined #ruby
LBRapid has joined #ruby
<Synthead> how do I set a username and password when POSTing with net/http?
<bnagy> insecurely
Choobie has joined #ruby
shruggar has joined #ruby
<Synthead> bnagy: it's over an SSH tunnel :p
gchristensen has joined #ruby
<gchristensen> Hi, is there a way to have groups default to off in bundler?
<bnagy> Synthead: http over ssh. nice.
sepp2k has quit [Remote host closed the connection]
brasten has quit [Quit: brasten]
<bnagy> Synthead: there are basic auth examples with the doc, btw
<becom33_> bnagy, do you know any good artical places I can learn more about ruby OOP ?
<becom33_> shevy, ^
brasten has joined #ruby
<bnagy> becom33_: what I usually say? Github
<bnagy> go read a lot of code
zastaph has quit [Ping timeout: 256 seconds]
SmoothSage has quit [Ping timeout: 244 seconds]
<bnagy> or, ideally write a lot of code
francisfish has quit [Remote host closed the connection]
sepp2k has joined #ruby
<bnagy> and read other people's, also :)
Urthwhyte has joined #ruby
<Urthwhyte> Morning - any recommendations for a state machine gem?
<bnagy> Urthwhyte: wow
<bnagy> context? :)
<bnagy> celluloid is kind of an implicit state machine
<Urthwhyte> Um...I don't want to write my own?
<bnagy> or you want to build parsers, or...
<Urthwhyte> I have an API export/import thing to deal with that has to go through several phases
<Urthwhyte> and retry on any failure in transition
davidpk has quit [Quit: Computer has gone to sleep.]
<examancer> Urthwhyte: this is a decent gem: https://github.com/rubyist/aasm
mdw has quit [Remote host closed the connection]
pawdro_ has joined #ruby
sebastorama has joined #ruby
francisfish has joined #ruby
<Urthwhyte> Any particular reason you would pick it over state_machine?
timonv has joined #ruby
davidpk has joined #ruby
<bnagy> ooh shiny
cmarques has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
<becom33_> jeez its hard to find a ruby codes in github . 99% of codes are rails
pawdro has quit [Ping timeout: 252 seconds]
<Urthwhyte> Usually 1/2 started projects too
petercs has quit [Ping timeout: 245 seconds]
<Hanmac> most of rails are fails
<bnagy> hmmm ok it's not that shiny
cmarques has joined #ruby
<Urthwhyte> examancer, bnagy: Just went through the APIs for both, think I'm going to go for state_machine since AASM seems to focus on working with models
<bnagy> Urthwhyte: what's the link for state_machine ?
WashIrving has joined #ruby
<WashIrving> Is http://ruby-doc.org being a dick to anyone else?
<bnagy> I just skimmed aasm and kind of winced
<WashIrving> Public class methods aren't being rendered/displayed
Eldariof-ru has joined #ruby
francisfish has quit [Remote host closed the connection]
<shevy> becom33_ did you work through "learn to program" from chris pine already?
<becom33_> umm link ?
davidpk has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<bnagy> holy crap the state_machine authors got a little ocd
<Hanmac> i like infinite state maschines ...
<bnagy> like...it's just an fsa dudes :|
<LiquidInsect> good luck enumerating that
<shevy> becom33_ http://pine.fm/LearnToProgram/?Chapter=01 most of it will be known to you already, but read it anyway, some things you may see new
<Urthwhyte> bnagy: When using someone else's library a little OCD is nice ;)
<bnagy> yeah but it's HUUUUUUGE
<Urthwhyte> not complaining
<bnagy> usually as soon as I see Active* I run :)
WashIrving has left #ruby [#ruby]
manizzle has quit [Ping timeout: 252 seconds]
rrichards has quit [Quit: Leaving...]
thecreators has quit [Quit: thecreators]
minijupe has quit [Quit: minijupe]
sparrovv has quit [Ping timeout: 244 seconds]
<bnagy> right bedtime
xrq has joined #ruby
<Synthead> bnagy: I am having a really hard time, even with the docs :p
jobicoppola has joined #ruby
<Synthead> bnagy: right now I'm using Net::HTTP.post_form(URI.parse("http://#{User}:#{Pass}@127.0.0.1:8080/path/to/post"), File.read(xmlFile)), but the server says that this is invalid xml data
<Synthead> bnagy: the data is definitely valid
keanehsiao_ has quit [Quit: keanehsiao_]
keanehsiao has quit [Quit: Leaving...]
cbuxton has quit [Quit: Leaving.]
codefarmer has quit [Quit: codefarmer]
weasels has quit [Quit: Leaving]
francisfish has joined #ruby
otters has joined #ruby
wvms has quit [Read error: Connection reset by peer]
wvms has joined #ruby
xaq has quit [Remote host closed the connection]
davidcelis_ has joined #ruby
davidcelis_ has quit [Remote host closed the connection]
dv310p3r has joined #ruby
<Synthead> bnagy: if I use curl (from a linux command line), it POSTs fine
shruggar has quit [Ping timeout: 256 seconds]
mdw has joined #ruby
hadees_ has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
rh1n0 has joined #ruby
rh1n0 has quit [Client Quit]
yosinof has quit [Ping timeout: 246 seconds]
<zeromodulus> I am available for contract work. I guarantee results or no payment. I will tell you beforehand if I think your plans are feasible for me. PM me if interested.
<fowl> be gone, robot
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ has joined #ruby
<zeromodulus> beep boop beep...
dhaskew has joined #ruby
dhaskew_ has quit [Read error: Connection reset by peer]
<zeromodulus> does not compute...
yosinof has joined #ruby
hadees has quit [Ping timeout: 276 seconds]
hadees_ is now known as hadees
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
kuranai|off is now known as kuranai
LBRapid has quit [Quit: Computer has gone to sleep.]
macer1 has joined #ruby
macer1 has quit [Changing host]
macer1 has joined #ruby
dnyy has joined #ruby
<zeromodulus> no, seriously, you'll see very little which can be regarded as an afterthought in my designs.
<zeromodulus> I am not a robot, I am a very proficient developer.
<shevy> lol
<shevy> good that you say that
ronniy has quit [Remote host closed the connection]
<shevy> I would have thought you were a faulty robot otherwise
timonv has quit [Remote host closed the connection]
<zeromodulus> heh. I've got a sense of humor too, hopefully, or at least... I think so.
urlwolf has joined #ruby
<zeromodulus> I'm very choosy with the work I perform, so, I won't accept anything I'm sure is doomed to fail.
<Urthwhyte> You seem to be attempting to find contract work on a programming channel
<Urthwhyte> That seems doomed to fail
<any-key> you'd be surprised
<zeromodulus> Not even trying seems even more doomed to fail.
<any-key> some people don't have time to do everything and will hire a contractor regardless as to how good of a dev they are
imami|afk is now known as banseljaj
hadees_ has joined #ruby
axl__ has joined #ruby
<avtobiff> sup has a failing test case that reports "RuntimeError: no Redwood::HookManager instance defined in method call to run!" on that line
samsonjs has joined #ruby
seanstickle has joined #ruby
<avtobiff> zeromodulus, pro bono work for you ^^
samsonjs has quit [Client Quit]
samsonjs has joined #ruby
hadees has quit [Ping timeout: 244 seconds]
hadees_ is now known as hadees
fbernier has quit [Ping timeout: 244 seconds]
<any-key> yeah, zeromodulus I have some pro bono things you could work on
<any-key> like this SQL query
<avtobiff> or if anyone else just want to help out i would be a very happy ruby noob
axl_ has quit [Ping timeout: 265 seconds]
axl__ is now known as axl_
mneorr_ has joined #ruby
Eldariof59-ru has joined #ruby
zastaph has joined #ruby
hynkle has quit [Quit: hynkle]
mneorr has quit [Ping timeout: 245 seconds]
schovi has joined #ruby
Eldariof-ru has quit [Ping timeout: 256 seconds]
<bfrog> is it pretty easy to redirect all the stuff that would normally go to stdout to stderr?
<bfrog> like puts, printf, etc
<avtobiff> $stderr << stdout
<avtobiff> ???
c0rn has quit [Quit: Computer has gone to sleep.]
weasels has joined #ruby
otters has quit [Read error: Connection reset by peer]
caaakeeey has joined #ruby
weasels has quit [Remote host closed the connection]
otters has joined #ruby
mikeycgto has quit [Quit: Leaving]
mnaser has quit [Quit: Computer has gone to sleep.]
abra has quit [Quit: Leaving]
<urlwolf> should I use the ruby that comes with my OS (gentoo: 1.8.7) or is 1.9 really worth the trouble?
<seanstickle> urlwolf: use 1.9
slap_stick has quit [Quit: Leaving]
<seanstickle> urlwolf: there is no debate
<urlwolf> aha
<urlwolf> any link to 'what's new'?
<urlwolf> and why are most distros packaging the old one :)?
sparrovv has joined #ruby
<seanstickle> urlwolf: I am sure you can google other ones as well
<seanstickle> urlwolf: not to mention speed increases, and that everyone who is writing Ruby is moving (or has already moved) to 1.9
<seanstickle> Why Gentoo does things is beyond my ken
<seanstickle> Some people probably use Perl 4 as well.
<bfrog> avtobiff: thanks
<seanstickle> But I wouldn't recommend it.
<bfrog> avtobiff: need that to use ruby as an erlang port
* avtobiff <3 erlang
<avtobiff> bfrog, i am not sure about the redirect. totally noob myself.
mdw has quit [Remote host closed the connection]
<avtobiff> seanstickle, some people using is not the same thing as why distros choose to package or use a certain version by default
<seanstickle> Distro managers are peculiar people with mysterious ways!
<avtobiff> urlwolf, distros use the old one until all the ruby packages can build and run with the new version
<avtobiff> if you are a dev you probably don't have thousands of packages that depend on ruby and has to work. you maybe have a few libs and programs and the stuff you develop yourself
DRCALKIN has joined #ruby
caaakeeey has quit [Quit: Leaving]
stephenjudkins has quit [Quit: stephenjudkins]
<urlwolf> so is rvm the best way to go? sorry, found lots of posts, but things seem to be moving really fast...
<any-key> yeah, rvm is neato
macer1 has quit [Ping timeout: 246 seconds]
<any-key> don't believe the haters
ryanf has joined #ruby
LBRapid has joined #ruby
Zolrath has joined #ruby
robotmay has joined #ruby
davidpk has joined #ruby
<bfrog> yeah simple $stdout = $stderr works fine
<bfrog> duh
<bfrog> ok next question
<seanstickle> rvm is lovely stuff
<TTilus> rbenv is even moar lovelier ;)
Guest38008 has joined #ruby
<wmoxam> neither is ideal
mneorr_ has quit [Remote host closed the connection]
<any-key> rvm is has no faults
<wmoxam> lol
iocor has joined #ruby
jrist-mtg is now known as jrist
christianrojas has quit [Quit: Leaving...]
<any-key> Wayne is my homeboy
<wmoxam> it's PERFECT IN EVARY WAY
<bfrog> is there a way to have puts use \r\n as the line ending instead of just \r
<bfrog> er \n
Asher1 has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
Asher has joined #ruby
mdw has joined #ruby
<any-key> def foo(stuff); puts "#{foo}\r"; end
diegoviola has joined #ruby
<any-key> or override puts :P
<fowl> i was gonna say that too lol
stefanp has quit [Remote host closed the connection]
Eldariof59-ru has quit []
dv310p3r has quit [Ping timeout: 246 seconds]
<any-key> it's ruby, nothing is sacred
<shevy> bfrog I think so
minijupe has joined #ruby
<shevy> one of the $ variable
<shevy> is the delimiter variable
<any-key> ooh you're correct
<any-key> stupid globals
<avtobiff> bfrog, just out of curiosity. what are you using the ruby port for?
<Hanmac> any-key: def foo(stuff); puts "#{foo}\r"; end << your line is wrong
<shevy> but I cant remember which $ it was
<shevy> any-key, yeah, now I dont even know how to search for it
akem has joined #ruby
<any-key> Hanmac: I'm working on other stuff, I clumsily pulled that out of my ass
<any-key> so to speak
<bfrog> easier access to databases
<shevy> $\ output record separator
<shevy> hmm perhaps this one?
<bfrog> generating complex queries in erlang is... not cool man
xaq has joined #ruby
codefarmer has joined #ruby
<shevy> how does it look in erlang?
<avtobiff> bfrog, complex queries?
<avtobiff> everything is cool in erlang
techhelp has joined #ruby
cpruitt has quit [Quit: cpruitt]
manizzle has joined #ruby
<any-key> false
<any-key> syntax is not
<Urthwhyte> Is there a ruby equivalent to the python interpreter's -I flag?
<Urthwhyte> It drops you into the environment after you run a script
<Urthwhyte> or should I just use pry?
timonv has joined #ruby
<shevy> pry!
<any-key> pryprypry
francisfish has quit [Remote host closed the connection]
<shevy> I think you could try to use the ruby debugger or something
<shevy> but it always was way too complicated for me
diegoviola has quit [Read error: Connection reset by peer]
<fowl> shevy, im about to smoke a bowl, in the name of FREEDOM
<sepp2k> Urthwhyte: irb -r bla.rb works (unless I misunderstood what you want). You're perfectly free to use pry though.
<avtobiff> any-key, erlang syntax is cool. it is just a step learning curve. when you know it all comes naturally
<shevy> can you show me erlang syntax
<shevy> I wanna look at it in pure awe
<any-key> well, most things are like that, doesn't make it okay
<any-key> functional programming languages are good at quicksort :P
<avtobiff> well, i recently had a baby. the baby basically does not know anything from the start. everything is learning from the very start. it is not only ok, it is the way life is.
dv310p3r has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
<any-key> learning is for chumps
ctp_ has quit [Quit: Leaving...]
<avtobiff> what exactly does chump mean? :)
dv310p3r has quit [Max SendQ exceeded]
<avtobiff> any-key, you were born already knowing ruby? cool mutation.
<any-key> it's a blessing and a curse, really
techhelp has left #ruby ["Leaving"]
dv310p3r has joined #ruby
jobicoppola has quit [Read error: Connection reset by peer]
* any-key goes to a meeting
<avtobiff> :)
jameshyde has quit [Remote host closed the connection]
<shevy> avtobiff it's more like the thinking
<shevy> I can think in ruby
<shevy> the next generation of mankind will have ruby hardwired into their brains
<shevy> hopefully not python though. they'd constantly have to think about "self."
<shevy> selfish guys
<shevy> :(
francisfish has joined #ruby
Drewch has quit [Ping timeout: 244 seconds]
tchebb has quit [Quit: Leaving.]
manizzle has quit [Ping timeout: 245 seconds]
dv310p3r has quit [Max SendQ exceeded]
diegoviola has joined #ruby
mdw has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
b1rkh0ff has quit [Ping timeout: 248 seconds]
<seanstickle> Monkeypatching your neocortex has some hazards
mdw has joined #ruby
dv310p3r has joined #ruby
mdw_ has joined #ruby
cobragoat has joined #ruby
corburn has quit [Ping timeout: 245 seconds]
cdepue has joined #ruby
otters has quit [Read error: Connection reset by peer]
weasels has joined #ruby
mdw has quit [Ping timeout: 256 seconds]
brasten has quit [Quit: brasten]
codefarmer_ has joined #ruby
dv310p3r has quit [Ping timeout: 246 seconds]
Guest38008 has quit [Ping timeout: 244 seconds]
fmcgeough has quit [Quit: fmcgeough]
indian has quit [Ping timeout: 244 seconds]
krz has joined #ruby
codefarmer has quit [Ping timeout: 240 seconds]
codefarmer_ is now known as codefarmer
greyEAX has joined #ruby
zastaph_ has joined #ruby
zastaph has quit [Ping timeout: 260 seconds]
brasten has joined #ruby
christianrojas has joined #ruby
mcwise has joined #ruby
<avtobiff> i am not a native english speaker but when i speak a lot of english i tend to start thinking in english also. i rarely actually think in syntax though, mostly really abstract boxes and lines and flows.
tchebb has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
yxhuvud has quit [Ping timeout: 244 seconds]
SmoothSage has joined #ruby
Guedes is now known as Guedes_out
chimkan has quit [Quit: chimkan]
weasels has quit [Quit: Leaving]
otters has joined #ruby
heftig has joined #ruby
robotmay has quit [Remote host closed the connection]
luckyruby has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
tchebb has quit [Quit: Leaving.]
pawdro_ is now known as pawdro
minijupe has quit [Quit: minijupe]
minijupe has joined #ruby
Guest38008 has joined #ruby
alexim has joined #ruby
yannis has joined #ruby
jameshyde has joined #ruby
tchebb has joined #ruby
luxurymode has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
davidpk has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Ping timeout: 244 seconds]
ZachBeta has joined #ruby
<Synthead> bnagy: right now I'm using Net::HTTP.post_form(URI.parse("http://#{User}:#{Pass}@127.0.0.1:8080/path/to/post"), File.read(xmlFile)), but the server says that this is invalid xml data
<Synthead> oops
robdodson has joined #ruby
codefarmer has quit [Ping timeout: 276 seconds]
mengu has quit [Quit: Konversation terminated!]
beneggett has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
luyang has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
<luyang> hi lads and gals, can I learn to use ruby and create killer scripts which simplify my mac life?
davidpk has joined #ruby
pawdro has quit [Remote host closed the connection]
<Hanmac> you could simplify your life if you switch to linux
<shevy> luyang scripts that solve certain tasks - yes
Alantas has quit [Quit: The sum of the universe is zero.]
<luyang> shevy: I think homebrew was written in Ruby right? so what is the difference between python and ruby?
<shevy> yes homebrew is written in ruby
<Hanmac> python and ruby are like twin sisters
<luyang> really?
<shevy> luyang, that is hard to define. if you are only interested in the differences, I think the really biggest one are the philosophies
<luyang> one uses underscores and the other one doesn't right?
stephenjudkins has quit [Quit: stephenjudkins]
<shevy> you can use underscores in ruby methods too
<luyang> shevy: ok so what are the philosophy differences? I hate that Python 2 and 3 are incompatible.
a_a_g has quit [Quit: Leaving.]
eka has quit [Ping timeout: 246 seconds]
<shevy> as a whole, I think the biggest difference is the OOP model and how one tends to "think" when solving a problem in ruby, as opposed to "think" when solving the same problem in python
<shevy> in python one has to carry explicit self into methods
<shevy> def foo(self)
<luyang> oic
<luyang> that is an interesting differenc
<shevy> i.e. python objects are not very clever, as they dont know themselves :D
<luyang> e
<shevy> then, in ruby it is more natural to do
<luyang> shevy: LOL! good point
<shevy> foo.each
<shevy> collection.each
<shevy> in python they tend to prefer to use [] conditions... dunno like ... [for x in y blabla]
<shevy> it's hard to describe, but it's a different way to think
<luyang> I see
<luyang> I come from a Java background
<luyang> used to write in C++ and C too though
nlc has quit [Ping timeout: 246 seconds]
s0ber_ has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
<shevy> then there is something that ruby took from perl, which is that one tends to be creative, innovative and agile when a problem comes. "there is more than one way to approach something". this can be confusing sometimes for people, python prefers to consolidate on one way that works
<luyang> so I dunno if Ruby or Python would be best for me to learn and if I can use them easier than just using java
<shevy> both are good choices
<luyang> shevy: I see…
<shevy> I switched from PHP to ruby
<shevy> back then, I considered both languages
<luyang> interesting… I just wonder if I can write things to solve everyday tasks in ruby
<shevy> the deciding factor for me was a matz interview :)
<luyang> I guess what I want is to find examples of how to solve things in ruby, not just learn the syntax
<shevy> luyang, I think it was this interview here http://www.artima.com/intv/rubyP.html
<shevy> matz has a "beautiful mind" in my opinion
<shevy> perhaps guido has too, but back then I could not find such an interview
<shevy> luyang well, it depends on the problem you want to solve
<shevy> it can always be hard brain work :\
<shevy> I try to avoid that by coding in a way as to never have to think about anything
<shevy> I write only dumb code
<luyang> I wanna do things like create all my sub folders to git repositories, find files that contain certain text, fetch web pages from the internet that meet criteria , etc
<shevy> others write super clever META MAGIC SUPER code
s0ber has quit [Ping timeout: 265 seconds]
s0ber_ is now known as s0ber
<shevy> luyang, yes. that sounds very easy
<shevy> File.readlines() to read in a file into an array
<shevy> .grep and .glob to find matches
<shevy> the fileutils module to create subfolders
<luyang> that sounds very powerful!
<shevy> URI open() to fetch web pages
<shevy> luyang, I think you can do the same in python. keep an open mind about both languages :)
<Synthead> nobody knows? :s
<shevy> for me, I could have perhaps been using python. but now I am very used to ruby, it's hard to switch. Plus, with the current transition to python 3 and the mess, I really dont wanna learn it right now
<Synthead> I've been hacking at this for hours :/
<luyang> shevy thanks for all that info I think I will give ruby a try
<luyang> just gotta find tasks to solve
<shevy> I think it is a mistake to want to transition to a new version, but people are unable or unwilling to follow
<shevy> that just splits up a community
<shevy> like perl 5 to perl 6
jnoob22 has joined #ruby
<shevy> though perl 6 will never be finished anyway :P
<luyang> that's what they said about java 7
<luyang> or it felt like it
clockwize has joined #ruby
<shevy> hmm
<shevy> I think it is different with the compiled languages
<shevy> I mean, if I think about all the commercial software
<shevy> that really changes the evolution of a language
fowl has quit [Ping timeout: 260 seconds]
<luyang> I see
robotmay has joined #ruby
cantonic has quit [Quit: cantonic]
c0rn has joined #ruby
ElitestFX has quit [Quit: Page closed]
a_a_g has joined #ruby
eka has joined #ruby
dustybrains has quit [Quit: leaving]
<shevy> luyang though
<shevy> if you happen to end up using ruby + machomebrew
techhelp has joined #ruby
<shevy> convince 'em to push a port for linux as OS as well ;)
<luyang> yeah? but why want that I mean you have like apt-get or something?
<luyang> or yum?
<luyang> are you using linux?
<shevy> I hate all the linux package managers with a passion
<shevy> filthy apt-get (or rather dpkg) requires a perl module too
<shevy> die, perl, die!
nlc has joined #ruby
<a_a_g> thats valid perl syntax!
<shevy> omg
<shevy> :(
<a_a_g> no, probably not. the ! at the end wont compile (probably)
<luyang> a_a_g: omg
<luyang> lol
cbuxton has joined #ruby
cobragoat has quit [Ping timeout: 245 seconds]
ilyam has joined #ruby
sbanwart has quit [Ping timeout: 272 seconds]
davidcelis has quit [Remote host closed the connection]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
jeebster has quit [Quit: Leaving.]
kpshek has quit []
mengu has joined #ruby
nlc has quit [Ping timeout: 246 seconds]
robotmay has quit [Remote host closed the connection]
yosinof has quit [Read error: Operation timed out]
yosinof has joined #ruby
mmokrysz has joined #ruby
crankyco_ has quit [Remote host closed the connection]
thecreators has joined #ruby
chico_chicote has joined #ruby
crankycoder has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
brasten has quit [Quit: brasten]
wilmoore has joined #ruby
<markjwlee> hi everyone... im a newbie... having trouble installing a ruby app. Can someone help? The instructions say to run the following command: to start the server: bundle exec ./script/server -p 3001
<markjwlee> The problem is, how do I then stop the server?
NotreDev has joined #ruby
jnoob22 has quit [Quit: Leaving]
<NotreDev> i have different functions daemonize throughout my project. when i call daemonize, how do i know which daemonize is being used?
brasten has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yosinof has quit [Ping timeout: 252 seconds]
zastaph_ has quit [Ping timeout: 245 seconds]
nlc has joined #ruby
fowl has joined #ruby
fowl has joined #ruby
bbttxu has quit [Quit: bbttxu]
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
minijupe has quit [Quit: minijupe]
becom33_ has quit [Quit: Leaving]
internet_user has quit [Remote host closed the connection]
exchgr has quit [Quit: exchgr]
<shevy> markjwlee dunno, I never trusted bundle
<chico_chicote> how can i do a regex sub but keep one of the captured groups?
<shevy> markjwlee if you started from commandline, try some key combinations. ctrl-c or ctrl-d or ctrl-z
xrq has quit [Ping timeout: 246 seconds]
luyang has left #ruby [#ruby]
<shevy> chico_chicote can you give a string input example, and the target string output example you want to achieve?
BeLucid has quit [Read error: Connection reset by peer]
BeLucid has joined #ruby
mmokrysz has quit [Quit: Leaving.]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
<chico_chicote> the input would be something like: (group with variable number of zeroes)<something_else>$
<chico_chicote> i'd like to remove the zeroes, but keep the 'something_else' at the end
<shevy> ok so something like
<shevy> "00000000055151$"
<shevy> right?
<chico_chicote> shevy: yes
Guest38008 has quit [Ping timeout: 260 seconds]
<shevy> hmm
<shevy> not easy I think
<shevy> \d+ matches to 0 too
virunga has joined #ruby
<shevy> HELLO RUBY GURUS WHO KNOWS REGEXES
<shevy> chico_chicote well
<shevy> oh
cmarques has quit [Quit: Computer has gone to sleep]
<shevy> now I see why you cant use .gsub
berserkr has joined #ruby
<shevy> because it could be "00000000055150258025051$" too
<shevy> chico_chicote you could write a short method perhaps
geekbri has quit [Remote host closed the connection]
<lambdan> is there away to make ruby check an string if it has http:// or https:// in it
<shevy> that would tell you when the first first non-0 occurs
yosinof has joined #ruby
<shevy> lambdan, string.include? 'http://'
<chico_chicote> lambdan: str =~ http[s]://
<shevy> you have to test for both though
<shevy> ah that is better
<chico_chicote> lambdan: str =~ /http[s]:\/\//
<lambdan> so using that
<lambdan> if the string was "asdmaksdklm" it would be ok
Jade has joined #ruby
<lambdan> but if the string was "asdasd http://ruby.org asd" it would not be ok?
<Mon_Ouie> %r{https?://}
<Mon_Ouie> [s] is the same as s
<chico_chicote> i think i just mixed regex syntaxes
headius has quit [Quit: headius]
sepp2k has quit [Ping timeout: 246 seconds]
yannis has quit [Read error: Connection timed out]
yannis has joined #ruby
ackz has quit [Quit: Leaving...]
jameshyde has quit [Remote host closed the connection]
snearch has quit [Quit: Verlassend]
sebastorama has quit [Quit: Computer has gone to sleep.]
jrist is now known as jrist-afk
amalvagomes has quit [Quit: amalvagomes]
<lambdan> can anyone see the problem? :(
tayy has joined #ruby
zastaph has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
ph^ has quit [Remote host closed the connection]
v0n has quit [Quit: Quitte]
shadoi has joined #ruby
crankycoder has quit [Read error: Connection reset by peer]
<philcrissman_> lambdan: the [s] is not optional
<philcrissman_> lambdan: you probably want /https?:\/\//
khakimov has joined #ruby
markjwlee has quit []
csavola_ has quit [Quit: csavola_]
<lambdan> ill try
<lambdan> actually
<lambdan> wouldnt
<lambdan> having 2 lines work? one for http and one for https?
kaspernj__ has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
<shevy> yea
<chico_chicote> shevy: thanks, the short method worked
<Synthead> can I use FileUtils.mv to copy two files to the same destination? like in linux, $ cp this that there/, but in ruby FileUtils.mv this, that, there ?
<lambdan> yep it works
<lambdan> thanks everyone
<shevy> chico_chicote \o/
yugui_zzz is now known as yugui
<shevy> Synthead FileUtils.mv by default may behave a bit oddly. for instance an exception may be raised sometimes
chico_chicote has quit [Quit: bye great ruby ppl]
<shevy> Synthead, what I usually do is use my own method to copy or move something
<shevy> def cp(source, target)
<shevy> # do some checks here
<shevy> same with def mv()
<Synthead> shevy: what do you do then? `cp "#{source}" "#{target}"` ?
<shevy> no, why would you use ``
carloslopes has quit [Quit: Leaving]
<shevy> oh
<shevy> you did not mean to do ``
<shevy> you just wanted to highlight your ruby code right?
<shevy> `ls` would be valid ruby for example
<shevy> if you are on unix
<shevy> Synthead I then do
<shevy> cp foo, bar
<shevy> hmm
<shevy> cp foo bar
<shevy> may be nicer
minijupe has joined #ruby
Ontolog has joined #ruby
graft has joined #ruby
<shevy> but I dont know if that is possible at all
<Synthead> shevy: what do you put in your def cp(...) ?
<shevy> inside the method? just try Synthead
<shevy> you could put the method into a begin/rescue block
<graft> hi... i'm using rvm, i installed thin, and it tells me i need the rails 2.3.5 gem - but that shows up in my gem list, so what gives?
<Synthead> shevy: I don't understand. cp() doesn't do any copy operations from what you've described
<shevy> or do some checks. if ! File.exist?(input)
<shevy> Synthead, oh, you still have to use FileUtils of course
<Synthead> shevy: oh, I see.
<shevy> I dont know of any other way for ruby itself to copy or move something other than FileUtils
<shevy> Synthead you could try to use FileUtils directly, but in my experience it raises errors in certain situations, which can be annoying
seanstickle has quit [Quit: seanstickle]
hadees has quit [Quit: hadees]
mikeg has joined #ruby
corburn has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
akem has quit [Ping timeout: 252 seconds]
acrocity_ has joined #ruby
chson has quit [Remote host closed the connection]
corburn has quit [Read error: Connection reset by peer]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
yannis has quit [Read error: Connection timed out]
yannis has joined #ruby
kaspernj__ has joined #ruby
gmci has joined #ruby
Criztian has quit [Remote host closed the connection]
<shadoi> Always wrap file operations in a rescue block.
cdepue has quit [Remote host closed the connection]
adamkittelson has quit [Ping timeout: 276 seconds]
<Veejay> begin/ensure is sweet stuff for file operations yeah
jgarvey has quit [Quit: Leaving]
mikeycgto has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
nimred has quit [Ping timeout: 260 seconds]
gchristensen has quit [Ping timeout: 244 seconds]
mnaser has joined #ruby
mnaser has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
minijupe has quit [Quit: minijupe]
urlwolf has quit [Ping timeout: 246 seconds]
urlwolf has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
gh has joined #ruby
gh has quit [Client Quit]
cdepue has joined #ruby
yannis has quit [Quit: Bye!]
axl_ has quit [Quit: axl_]
joshman_ has joined #ruby
hadees has joined #ruby
wangr has quit [Ping timeout: 244 seconds]
adamkittelson has joined #ruby
adamkittelson has quit [Read error: Connection reset by peer]
adamkittelson has joined #ruby
joshman_ has quit [Read error: Operation timed out]
berkes has quit [Ping timeout: 252 seconds]
azm has quit [Ping timeout: 272 seconds]
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
mcwise has quit [Quit: I quit]
minijupe has joined #ruby
cmarques has joined #ruby
NotreDev has quit [Quit: NotreDev]
amalvagomes has joined #ruby
PaciFisT has quit [Quit: Leaving.]
ABK has joined #ruby
saltnvinegar has quit [Quit: saltnvinegar]
ABK has quit [Read error: Connection reset by peer]
cmarques has quit [Client Quit]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
clockwize has quit [Quit: clockwize]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
virunga has quit [Quit: Sto andando via]
ennui has quit [Ping timeout: 265 seconds]
NotreDev has joined #ruby
<Synthead> I have a net-ssh connection open (that works fine). If I do a sshConnection.sftp.upload!(thisFile, thatFile), it completely hangs. Why?
graft has left #ruby [#ruby]
ABK has quit [Read error: Connection reset by peer]
<Synthead> is there some sort of way I can "verbosify" a line of ruby? like strace kinda?
<shadoi> Synthead: the ! means it blocks until the upload is done.
<shadoi> That's the whole purpose of that method.
<Synthead> shadoi: but it never uploads
<shadoi> add verbose: true as the 3rd arg
ddv has quit [Quit: *poof*]
SmoothSage has quit [Ping timeout: 260 seconds]
<Synthead> shadoi: interesting, .scp does the same thing
raul782 has quit [Remote host closed the connection]
<Synthead> shadoi: (it hangs too) I added { :verbose => true }, but I'm not getting anything. tried a puts before the command too
wmoxam has joined #ruby
<Synthead> shadoi: the ssh connection is forked as a background thread, would this cause problems?
weasels has joined #ruby
otters has quit [Read error: Connection reset by peer]
cdepue has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
<shadoi> nope
<Synthead> maybe it's waiting for stdin internally somewhere?
<shadoi> are you using keys?
FatherCarbon has joined #ruby
banseljaj is now known as imami|afk
<shadoi> if not then you need to provide the username/password
<shadoi> see the examples in the README
<Synthead> shadoi: I'm using an already-alive backgrounded ssh connection with a stored password
<Synthead> shadoi: they're used for forwards, and I'm positive that they're working
<shadoi> I'm thinking you're not using the connection you think you are.
gchristensen has joined #ruby
<Synthead> @sshConnection = Net::SSH.start(...)
<Synthead> @sshTunnelPid = fork { @sshConnection.loop { true } }
<Synthead> @sshConnection.scp.upload!(...)
<Synthead> the last line is what hangs
<Synthead> it's forked, but I can run puts @sshConnection.inspect right before the .upload line and I get all the ssh connection data
it_tard has quit [Quit: yawn]
<Synthead> shadoi: ^
<Synthead> shadoi: I can open a second ssh connection and it'll work, but I think that's silly :p
<shadoi> You probably need to do that upload in the forked process
ABK has joined #ruby
aibo has quit [Quit: Leaving]
sohocoke has joined #ruby
baroquebobcat_ has joined #ruby
C0deMaver1ck has quit [Remote host closed the connection]
<Synthead> shadoi: hmm. even if @sshConnection is defined outside of the fork?
<shadoi> So… if it works without forking, then that's your answer.
<Synthead> shadoi: yeah ... no easy way to really do that with my code. I'll open a second ssh connection for this specific dealio
baroquebobcat has quit [Ping timeout: 244 seconds]
baroquebobcat_ is now known as baroquebobcat
bglusman_ has quit [Remote host closed the connection]
bglusman has joined #ruby
uris has quit [Quit: leaving]
ciopte7_ has joined #ruby
skogis has quit [Ping timeout: 244 seconds]
pika_pika has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
tds has quit [Ping timeout: 272 seconds]
NotreDev has quit [Quit: NotreDev]
<Synthead> shadoi: I really appreciate the help :)
Asher has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
bglusman has quit [Ping timeout: 246 seconds]
schovi has quit [Remote host closed the connection]
frogstarr78 has joined #ruby
cj3kim has quit [Quit: Leaving]
Squarepy has quit [Quit: Leaving]
Urthwhyte is now known as Urth|Away
wmoxam has joined #ruby
zodiak has quit [Quit: Leaving]
jeremy_c has joined #ruby
d3c has quit [Quit: Sleep]
philcrissman has quit [Remote host closed the connection]
robdodson_ has joined #ruby
Urth|Away is now known as Urthwhyte
Urthwhyte is now known as Urth|Away
sparrovv has quit [Ping timeout: 240 seconds]
ratnikov has quit [Remote host closed the connection]
Karmaon has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
looopy has quit [Remote host closed the connection]
robdodson has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
robdodson_ has quit [Ping timeout: 252 seconds]
brasten has quit [Quit: brasten]
techhelp has quit [Quit: This computer has gone to sleep]
robacarp has quit [Quit: leaving]
a_a_g has quit [Quit: Leaving.]
dcolebatch2 has quit [Quit: Leaving]
Chryson has joined #ruby
SQLStud has quit [Quit: Leaving]
kil0byte has joined #ruby
luckyruby has quit [Remote host closed the connection]
rasbonics has quit [Quit: rasbonics]
robacarp has joined #ruby
weasels has quit [Quit: Leaving]
otters has joined #ruby
fualo has joined #ruby
otters has quit [Changing host]
otters has joined #ruby
<fualo> are there any ruby-based command line GFM markdown renderers? redcarpet is nice, but it's rendering really crappily
tomb_ has joined #ruby
looopy has joined #ruby
Progster has quit [Ping timeout: 252 seconds]
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
tvw has quit [Remote host closed the connection]
dv_ has quit [Ping timeout: 252 seconds]
christianrojas has quit [Quit: Leaving...]
christianrojas has joined #ruby
Foxandxss has joined #ruby
peterhil has quit [Ping timeout: 260 seconds]
christianrojas has quit [Client Quit]
sparrovv has joined #ruby
looopy has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
gchristensen has quit [Quit: WeeChat 0.3.7]
greyEAX has quit [Quit: Leaving]
greyEAX has joined #ruby
sohocoke has quit [Quit: sohocoke]
tewecske has quit [Quit: Leaving.]
senny has quit [Remote host closed the connection]
altious has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 252 seconds]
DRCALKIN has quit [Ping timeout: 245 seconds]
ben_m has joined #ruby
raul782 has joined #ruby
tayy has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
DRCALKIN has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
zastaph has quit []
frogstarr77 has joined #ruby
brianpWins has quit [Quit: brianpWins]
weasels has joined #ruby
mrsolo has quit [Quit: Leaving]
frogstarr77 has quit [Client Quit]
martianlobster has joined #ruby
otters has quit [Ping timeout: 276 seconds]
oooPaul has quit [Quit: Ciao for now!]
DRCALKIN has quit [Ping timeout: 248 seconds]
Ontolog has quit [Read error: Connection reset by peer]
dhaskew has quit [Read error: Connection reset by peer]
dhaskew has joined #ruby
davidcelis has quit [Quit: K-Lined]
martianlobster has left #ruby [#ruby]
luckyruby has joined #ruby
amalvagomes_ has joined #ruby
ozzloy is now known as newname
newname is now known as ozzloy
wmoxam has quit [Ping timeout: 250 seconds]
peterhil has joined #ruby
cdepue has joined #ruby
kaspernj__ has quit [Ping timeout: 246 seconds]
jacks- has joined #ruby
amalvagomes has quit [Ping timeout: 276 seconds]
amalvagomes_ is now known as amalvagomes
SegFaultAX|work2 has quit [Ping timeout: 248 seconds]
jacks- has quit [Client Quit]
pika_pika has joined #ruby
`damien has joined #ruby
ABK has quit [Read error: Connection reset by peer]
iocor has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
codefarmer has joined #ruby
chico has joined #ruby
chico is now known as chico_chicote
<codefarmer> hi, if anybody got a minute to have a look, what's the proper way to do this in ruby : https://gist.github.com/2728216 ?
tomzx has joined #ruby
nlc has quit [Ping timeout: 240 seconds]
dv_ has joined #ruby
kaspernj__ has joined #ruby
kenichi has quit [Remote host closed the connection]
<offby1> codefarmer: what are you trying to do?
<offby1> I see your code but I don't know what problem it solves.
<codefarmer> thanks for having a look. i guess i wasn't specific in my question. the eval didn't seem like good practice. the code works
<codefarmer> but i now figured out that sending the key directly as a parameter to the function works
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<apeiros_> codefarmer: why do you think a plain v[key] wouldn't work?
<apeiros_> oh, you pass it a string…
<codefarmer> yea that was in fact the problem
<codefarmer> but i can just pass :key_name
<apeiros_> why don't you just pass it a symbol?
<codefarmer> yepp , i had a gap of knowledge havnt used ruby in a while. that solves many of my questions
<apeiros_> also, String#to_sym, no need to use an eval
<codefarmer> tx
<codefarmer> ah cool