apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
EngierkO_ has joined #ruby
xeno has joined #ruby
EngierkO has quit [Ping timeout: 252 seconds]
pwh has quit [Ping timeout: 260 seconds]
mikepack has quit [Ping timeout: 260 seconds]
_bart has quit [Remote host closed the connection]
pwh has joined #ruby
stringoO has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
senj has quit [Quit: Sleep Now]
tkuchiki has joined #ruby
tvw has quit []
<xeno> So, I'm trying to get threads on logs while I execute other things.
Roxja has joined #ruby
EngierkO_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xeno> I may just be executing the threads wrong, but I am also afraid I may need to force the thread to flush, or the tail to flush, though the latter seems unlikely.
<xeno> I'm executing this on an Ubuntu system.
[krisbulman] is now known as krisbulman
<MJBrune> ... fuck me
bigmac is now known as i8igmac
slowcon has joined #ruby
slash____ has quit [Quit: leaving]
<MJBrune> http://pastebin.com/zmRWymFd first one to see the moronic error I made that drove me crazy for 6 minutes now
<MJBrune> ... wins
jamto11 has quit []
<Riking> ti is a new variable
<Riking> you wanted t1, right
<Riking> MJBrune, do i win?
bleak has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Ping timeout: 252 seconds]
<RubyTitmouse> It would take a big prize to get me clicking on pastebin lol
<Riking> i have adblock, don't matter to me
<Riking> it's kinda nice to go back and look at everything i've pasted
<RubyTitmouse> I have adblock and noscript, how is that going to make me _less_ snobby?!
predator217 has joined #ruby
<Riking> I was referring to the fact that the site has ads
zcreative has joined #ruby
<xeno> It works for real for me when I put a t1 for the ti, but it's much less ugly when you put a sleep 1 in the loop.
angusiguess has joined #ruby
mansi has joined #ruby
<xeno> Or you can pipe standard out to grep IN
<xeno> What is the point of it?
tyl_ has joined #ruby
rootshift has joined #ruby
Guest69229 has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 260 seconds]
Guest69229 has joined #ruby
glanotte has joined #ruby
glanotte has quit [Client Quit]
nomenkun has joined #ruby
<benzrf> why isnt do after while a syntax error?
<benzrf> >> while true do puts "wat" end
bricker has quit [Quit: leaving]
workmad3 has quit [Read error: Operation timed out]
angusiguess has quit [Ping timeout: 245 seconds]
fumduq has joined #ruby
<MJBrune> Riking: yes
vermele has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
stringoO has quit [Quit: stringoO]
krisbulman is now known as [krisbulman]
aryaching has quit [Quit: sayonara! ^_^]
Steve445 has quit [Quit: Steve445]
Guest69229 has quit [Changing host]
Guest69229 has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Guest69229 is now known as Speed
codeFiend has joined #ruby
Wolland has joined #ruby
jefflyne has joined #ruby
<RubyTitmouse> while conditional [do]
<RubyTitmouse> end
<RubyTitmouse> code
havenwood has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Zunonia has joined #ruby
angusiguess has joined #ruby
<benzrf> huh
yasushi has quit [Remote host closed the connection]
Tomasso has quit [Ping timeout: 246 seconds]
pika_pika has quit [Ping timeout: 272 seconds]
<RubyTitmouse> benzrf: IMO it would be less confusing if it let you use a {} block
ner0x has joined #ruby
<RubyTitmouse> the do is sortof a lie, but if {} was allowed, it would be a good lie
thesheff17 has joined #ruby
<RubyTitmouse> STDOUT.sync = true
<RubyTitmouse> that will autoflush, no idea if that helps, I avoid threads like the complex plague they are (fork+IPC is less complex and usually superior)
bcz has quit [Remote host closed the connection]
nateberkopec has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
freezey has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 260 seconds]
bcz has joined #ruby
nateberkopec has quit [Client Quit]
alexherbo2 has joined #ruby
nobitanobi has joined #ruby
Megtastique has quit []
Deele has quit [Ping timeout: 260 seconds]
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0a2/20140203004003]]
zz_karupanerura is now known as karupanerura
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pel_daniel has left #ruby [#ruby]
aspires has quit []
<xeno> RubyTitmouse
tyl_ has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse> peep
<xeno> I haven't gotten flushing to work.
<xeno> I'll go try again...
<xeno> Oh, I'm sorry. I already knew that.
<xeno> The problem isn't the file getting the data. The problem is the thread seeing it.
<RubyTitmouse> You probably have to have the threads do lots of waiting around if you don't want them to be racing
<xeno> If I tail in a separate shell, I see the output.
<xeno> But from the thread, I don't get it.
srji_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lpvn has quit [Quit: Saindo]
wgosling has joined #ruby
<xeno> What I am doing is setting up tails of logs, then I run a command, and after that I want to join my tail threads.
<xeno> But these cannot be Ruby tail objects because I am doing it over an ssh connection executed on a `shellcmd`.
<RubyTitmouse> if you form and use IPC you can just block on reading/writing the IPC sockets
jamto11 has joined #ruby
<RubyTitmouse> s/form/fork/
<xeno> No, I need to use tail like:
<xeno> ssh u@host tail /var/log/syslog
<RubyTitmouse> so? that should be easy
<xeno> But my present test, as you can see, is local.
<xeno> And the local thread doesn't continue getting the data from the tail.
[krisbulman] is now known as krisbulman
srji has quit [Ping timeout: 252 seconds]
<xeno> So it appears the main thing I need to do is make that example see the tail data that is in fact there. I need to tail inside...
bricker_ has quit [Ping timeout: 245 seconds]
<RubyTitmouse> I don't see how your problem benefits from the complexity of thread management
Kricir has quit [Remote host closed the connection]
tjr9898 has joined #ruby
Hiall has joined #ruby
<xeno> Okay, I tried this (and it didn't work):
wgosling has quit [Client Quit]
<xeno> threads << Thread.new { STDOUT.sync = true; Thread.current[:output] = `tail -f /tmp/lstestdir/d.lst` }
`petey` has quit [Remote host closed the connection]
`petey` has joined #ruby
<xeno> Oh, the problem is I want to automate the logs to run threads of tails in a program instead of interactively, which is tedious.
griffindy has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
<Nowaker> xeno: you cant do it like you wrote
<xeno> I believe it.
<xeno> Can you recommend a new and improved way to try?
<Nowaker> you should use popen if i remember correctly the name
bcz has quit [Read error: Connection reset by peer]
yarou has joined #ruby
<xeno> The main thing is I need to start the tail before another command, and end the tail thread after said subject command ends.
bcz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<xeno> I'll look up popen. JAM....
<Nowaker> using var = 'tail -f file' means var will be there after tail command exits. and tail -f never exits.
Roxja has quit [Quit: Roxja]
<Nowaker> thats why you need popen that you will instruct to fetch every new line and do something with it
<lagweezle> After doing a search on the web, it looks like `tail blahblah` waits until tail actually finishes the file and exits. Because you specify -... oh. What Nowaker said.
sambao21 has joined #ruby
`petey` has quit [Ping timeout: 248 seconds]
x1337807x has quit [Remote host closed the connection]
gigetoo has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
bcz has quit [Remote host closed the connection]
gigetoo has joined #ruby
<lagweezle> Ooh. Caltrain time. See you folks on the other side.
<xeno> Okay, I'm gonna try it with popen. I'll try to get results quickly.
sambao21 has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
<benzrf> bye
wiku5_ has quit [Ping timeout: 250 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
tjr9898 has quit [Remote host closed the connection]
bcz has joined #ruby
closer has quit [Ping timeout: 256 seconds]
recurrence has joined #ruby
closer has joined #ruby
krisbulman is now known as [krisbulman]
nobitanobi has quit [Quit: Leaving]
kitak has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
tkuchiki has joined #ruby
Hanmac1 has joined #ruby
Es0teric_ has joined #ruby
slowcon has quit [Quit: slowcon]
ctp has quit [Quit: Leaving...]
thomasxie has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Es0teric has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
robustus has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
bcz has quit [Remote host closed the connection]
bcz has joined #ruby
Guest97765 has quit [Changing host]
Guest97765 has joined #ruby
Guest97765 is now known as digifiv5e
magoo has joined #ruby
griffindy has quit [Ping timeout: 250 seconds]
enape_101 has quit [Ping timeout: 260 seconds]
Hanmac has joined #ruby
binaryhat has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
griffindy has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
Hanmac1 has quit [Ping timeout: 245 seconds]
tauebel1 has quit [Quit: Leaving.]
enape_101 has joined #ruby
[krisbulman] is now known as krisbulman
tjr9898 has joined #ruby
bricker has joined #ruby
ffranz has joined #ruby
bcz has quit [Ping timeout: 272 seconds]
x77686d has quit [Quit: x77686d]
bcz has joined #ruby
snath has quit [Ping timeout: 253 seconds]
axsuul has quit [Read error: No route to host]
bricker has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
i8igmac has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
nateberkopec has quit [Quit: Leaving...]
i8igmac has joined #ruby
mojjojo has quit [Quit: mojjojo]
habanany has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Remote host closed the connection]
daxroc1 has quit [Quit: Leaving.]
rickruby has quit [Remote host closed the connection]
slowcon has joined #ruby
dx7 has joined #ruby
phutchins has joined #ruby
IceyEC has joined #ruby
araujo has joined #ruby
kenrick has joined #ruby
b00stfr3ak has quit [Ping timeout: 248 seconds]
jonah_k has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
bcz has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
jonah_k has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
jamto11 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 248 seconds]
ctp has joined #ruby
Shidash has joined #ruby
jrobertfox has quit [Read error: Connection reset by peer]
kenrick has left #ruby [#ruby]
grzywacz has quit [Read error: Operation timed out]
mary5030 has joined #ruby
krisbulman is now known as [krisbulman]
dx7_ has joined #ruby
jrobertfox has joined #ruby
[krisbulman] is now known as krisbulman
rickruby has joined #ruby
Wolland has quit []
x77686d has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
venkat has quit []
dr0ff has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
Sleepee has joined #ruby
ctp has quit [Ping timeout: 245 seconds]
agent_white has quit [Quit: brb]
mforrester has quit [Quit: Leaving]
brunops has quit [Ping timeout: 248 seconds]
cashnguns has joined #ruby
codeFiend has quit [Quit: codeFiend]
dubsteph has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
doodlehaus has joined #ruby
griffindy has quit [Ping timeout: 260 seconds]
magoo has quit [Quit: WeeChat 0.4.2]
tyfighter has quit [Quit: tyfighter]
brian____ has joined #ruby
kenrick has joined #ruby
RoxasShadowRS has quit [Quit: Leaving]
griffindy has joined #ruby
saarinen has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
Dude007 has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
Dude007 has joined #ruby
snath has joined #ruby
micho has joined #ruby
danshultz has joined #ruby
saarinen has quit [Client Quit]
tjr9898 has joined #ruby
codeFiend has joined #ruby
mando has quit []
jamto11 has joined #ruby
araujo has quit [Remote host closed the connection]
freerobby1 has quit [Quit: Leaving.]
brunops has joined #ruby
Dude007 has quit [Ping timeout: 265 seconds]
Atrumx has quit [Quit: Leaving]
axsuul has joined #ruby
osvico has joined #ruby
micho has quit [Quit: Leaving]
codeFiend has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
vlad_starkov has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
enape_101 has quit [Ping timeout: 260 seconds]
IceyEC has quit [Quit: IceyEC]
<Riking> rate these statements 1-3 disagree←→agree:
<Riking> Ruby and Rails don't have the history of total anarchy that PHP does for a couple reasons.
<Riking> (1) Rails didn't exist ten years ago. (2) Rails is a framework that is meant to deliver clean code, and nobody used Ruby before Rails.
thumpba_ has quit [Remote host closed the connection]
<centrx> (3) PHP is an abomination and a scourge on the face of the earth.
<centrx> (4) PHP was designed and maintained by dimwits
thumpba has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Riking> the man's argument is that Rails is the reason that ruby code doesn't suck
<Riking> I'm kinda meh on the agree/disagree of that
<centrx> That is not true
<centrx> Ruby 1.8 was released in 2003, before Rails
<centrx> Ruby was a good language before Rails ever existed
<Riking> (this was posted a year ago)
jlast has joined #ruby
<Riking> (so now it has been around 10 years)
<Riking> actually, yeah, i kinda disagree, after reading more stuff on the thread
<bnagy> well 4 is absolutely true
<Riking> ^
<benzrf> php is the worst thing in the world
<bnagy> however rails isn't looking too hot lately either
<Riking> hm?
<Riking> ooh, took me a sec
<bnagy> and I expect it will only get worse now a few good security guys are taking a serious interest
streblo1 has joined #ruby
tuttinator has joined #ruby
<streblo1> I keep getting the error "Your Ruby version is 1.8.7, but your Gemfile specified 2.1.0" on OSX. Is there a way to fix this without using rvm?
thumpba has quit [Ping timeout: 245 seconds]
<Riking> gem something something update
<Riking> uh
saarinen has joined #ruby
<Riking> gem install rubygems-update
<bnagy> install a reasonable version of ruby
<bnagy> without using rvm
<Riking> then run update_rubygems
<Riking> streblo1, ^
xcv has joined #ruby
<Riking> i think that's right
<streblo1> does rubygems-update install update_rubygems?
<Riking> yeh
saarinen has quit [Client Quit]
mansi has quit [Quit: Leaving...]
tylersmith has joined #ruby
eka has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
havenwood has joined #ruby
krisbulman is now known as [krisbulman]
[krisbulman] is now known as krisbulman
tylersmith has quit [Ping timeout: 245 seconds]
plotter has joined #ruby
plotter has quit [Client Quit]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
Voodoofish430 has quit [Quit: Leaving.]
plotter has quit [Client Quit]
plotter has joined #ruby
plotter has quit [Changing host]
plotter has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
_maes_ has joined #ruby
habanany has joined #ruby
gja has joined #ruby
streblo1 has quit [Quit: Leaving.]
<centrx> As an experiment, I have now joined ##php, #python, and #Node.js
vlad_starkov has quit [Read error: Connection reset by peer]
<skyjumper> what's the experiment
eka has joined #ruby
ner0x has quit [Quit: Leaving]
mikepack has joined #ruby
<centrx> skyjumper, What do you think it should be
mikepack has quit [Remote host closed the connection]
<skyjumper> judge the culture of the language's users
doodlehaus has quit [Remote host closed the connection]
<skyjumper> or maybe have-a-clue level
gja has quit [Client Quit]
<havenwood> centrx: compare the feel, look, smell and taste of the channels: http://i.stanford.edu/~julian/pdfs/icdm2012.pdf
bean has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<havenwood> centrx: compare percent of norse versus saxon origin English words
Spami has joined #ruby
<havenwood> centrx: amounts of swearing graphed against +1s
<havenwood> centrx: how often each chan mentions the other langs
<centrx> These are good
<havenwood> centrx: amount of people banned
Wolland has joined #ruby
<centrx> I was thinking of a more a subjective experiment. I will add the science later to suit my impressions
krz has joined #ruby
<havenwood> centrx: compare the overlap of people in the irc channels, with VIN diagrams
gja has joined #ruby
kate_r has joined #ruby
tt1187 has quit [Ping timeout: 272 seconds]
<centrx> "omg python is making me feel like an idiot!!!"
kcombs has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
eka has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tjr9898_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
tjr9898 has quit []
<benzrf> i think #python tends to be more formal than #ruby def
tjr9898_ has quit [Client Quit]
<benzrf> havenwood: why not euler diagrams?
russt_ has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
* benzrf has gained 1 pedantry point!
<havenwood> benzrf: mm, good ;)
tjr9898 has quit [Client Quit]
<skyjumper> centrx: ask the same generic coding question in all channels, see what kind of resopnses you get
<centrx> That's a good idea
tjr9898 has joined #ruby
<havenwood> venn**
<havenwood> >.>
byaruhaf has joined #ruby
rickruby has quit [Remote host closed the connection]
<agent_white> We are tigrmesh. One of us.
<centrx> Before I asked "What is the latest X news?". Python: Zen answer of "Yes" - Node.js: Linked to the blog on the official Node.js website - PHP: No response
existensil has joined #ruby
<agent_white> mt.
nowthatsamatt has joined #ruby
sensen has joined #ruby
mary5030 has joined #ruby
binaryhat has quit [Quit: Leaving]
<agent_white> centrx: Ask a trivial question and see what happens.
Megtastique has joined #ruby
habanany has quit [Read error: Connection timed out]
<centrx> I have a question
<centrx> When I do print Hello I get an error?
top4o has quit [Ping timeout: 265 seconds]
<benzrf> go on...
ctp has joined #ruby
nateberkopec has joined #ruby
nari has joined #ruby
<centrx> "Are you using Python 3" - "What's that?"
<centrx> Ooo I am good
<skyjumper> trolling on the downlow
<benzrf> =_=
rickruby has joined #ruby
jlast has quit [Remote host closed the connection]
griffindy has quit [Ping timeout: 260 seconds]
habanany has joined #ruby
jlast has joined #ruby
freerobby has joined #ruby
<centrx> Okay, #python wins this round
<centrx> Node.js people are berating me, PHP channel is dead
xcv has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 252 seconds]
e^0 has joined #ruby
<centrx> "how are you trying to print hello" - "print Hello?" - "why would that work?" - "cause it prints hello?"
<centrx> NO HELP AT ALL FROM #ruby
<centrx> God you guys
<benzrf> kek kek kek
_reset has joined #ruby
lethjakman has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
louism2wash has joined #ruby
ctp has quit [Ping timeout: 248 seconds]
agent_white has quit [Read error: Connection reset by peer]
Megtastique has quit []
<centrx> "print is not part of javascript"
<louism2wash> Hey guys, noob question, if I have code broken up into multiple files all in the same directory how do I load those files from inside a class so I can call methods?
<centrx> "print hello also is not part of javascript"
<benzrf> louism2wash: just use require
<centrx> Learn something new every day
<skyjumper> i wanna see this played out on the vi and emacs channels
Dude007 has joined #ruby
<benzrf> vim woo woo
agent_white has joined #ruby
reset has quit [Ping timeout: 245 seconds]
enape_101 has joined #ruby
<centrx> That is a brilliant idea!
<louism2wash> benzrf: thanks, it's not working so I must be doing something wrong
Sleepee has quit [Quit: Leaving]
<louism2wash> benzrf: to the docs!!!
sailias has joined #ruby
codeFiend has joined #ruby
<centrx> "Hi, my hands have been getting really cramped from pressing Ctrl-X this Ctrl-M that all the time. What should I do?"
<skyjumper> ahah
i8igmac has quit [Ping timeout: 245 seconds]
<centrx> Wow these guys are on the ball, I got three different answers in 5 seconds
_reset has quit [Ping timeout: 245 seconds]
<skyjumper> "can someone recommend the best keyboard for this editor"
<louism2wash> benzrf: it works when I use load instead of require…. any ideas
<skyjumper> "i really need top efficiency"
<centrx> Although the first answer was "Try a different editor", so even they don't like emacs
<centrx> "Hi, I opened up vim but it is frozen?"
lethjakman has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<centrx> I don't know, I am starting to feel bad
lethjakman is now known as Guest83842
<centrx> Now the vim guys are ragging on vim!
<centrx> What is this
chrisan has quit [Ping timeout: 265 seconds]
<agent_white> Hahah.
<louism2wash> benzrf: I had to use require './filename' rather than '/filename'
griffindy has joined #ruby
<agent_white> I like it here because my trivial questions don't spawn circlejerks :)
louism2wash has quit [Quit: This computer has gone to sleep]
maximski has quit []
dx7_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
fgo has quit [Remote host closed the connection]
streblo1 has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
jonah_k has quit [Remote host closed the connection]
dx7 has joined #ruby
saarinen has joined #ruby
freerobby has quit [Quit: Leaving.]
jefflyne has joined #ruby
top4o has joined #ruby
gnephiak has joined #ruby
jlast has quit [Remote host closed the connection]
jefflyne has quit [Client Quit]
jlast has joined #ruby
f1ay has joined #ruby
mlpinit_ has quit [Quit: Leaving...]
Zunonia has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
<xeno> Well, so far all the popen examples I find are crappy. If anyone has a good one I'd appreciate it.
streblo1 has quit [Ping timeout: 265 seconds]
ffranz has quit [Quit: Leaving]
griffindy has quit [Ping timeout: 260 seconds]
Atrumx has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
codeFiend has quit [Quit: codeFiend]
bricker has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
<xeno> I just want to execute tail -f file from something like a popen, to begin with.
kiba has joined #ruby
<kiba> hi
griffindy has joined #ruby
<centrx> Ahoy
carif has quit [Quit: Ex-Chat]
plotter has quit [Quit: Leaving]
baroquebobcat has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
withnale has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
top4o has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
Giddeon has quit []
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`petey` has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<kiba> I am trying to connect to rubygems.org with HTTP
pkrnj has joined #ruby
<kiba> with port should I be using?
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<kiba> I figured out
nobitanobi has joined #ruby
<kiba> host should be www.rubygems.org, not http://rubygems.org
<centrx> ah
jonah_k has joined #ruby
werdnativ has quit [Quit: werdnativ]
`petey` has quit [Remote host closed the connection]
`petey` has joined #ruby
nateberkopec has joined #ruby
jwest has quit [Quit: WeeChat 0.4.1]
Hanmac has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
jwest has joined #ruby
nateberkopec has joined #ruby
<Riking> Opinions on the format of the pinned topics https://meta-discourse.r.worldssl.net/uploads/default/3224/29ccdcb87314ac7c.png
<Riking> specifically, the colspan 3 with OP avatar
<Riking> versus: (A) colspan 2 with all avatars (B) the picture (C) colspan 3 with no avatars
<centrx> There is only one picture?
<centrx> It looks a little cluttered with all the avatars
`petey` has quit [Ping timeout: 245 seconds]
hobodave has joined #ruby
<Riking> yeah the pic is option b
<Riking> here's A: http://imgur.com/YeduJ3i
Spami has quit [Quit: This computer has gone to sleep]
e^0 has quit [Quit: WeeChat 0.4.2]
`petey` has joined #ruby
yacks has joined #ruby
nfk has quit [Quit: yawn]
benzrf has left #ruby [#ruby]
jle` has quit [Ping timeout: 272 seconds]
withnale has joined #ruby
kenrick has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: Computer has gone to sleep.]
jefflyne has joined #ruby
<centrx> Riking, I think it is too cluttered, especially since an avatar doesn't necessarily _mean_ anything, it is not someone's actual face
<centrx> Riking, But I don't like social media in general
fgo has joined #ruby
<Riking> i kinda agree, actually
gja has quit [Quit: This computer has gone to sleep]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
Hanmac1 has joined #ruby
byaruhaf has quit [Quit: Leaving.]
<xeno> This simple program does not yield a response to text appended to /tmp/testfile.lst:
<xeno> Sorry, testout.lst.
danshultz has quit [Remote host closed the connection]
pfg has joined #ruby
bigmac has joined #ruby
<xeno> So, that doesn't work either. There must be some simple thing that works.
Vivekananda has quit [Quit: Ex-Chat]
danshultz has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
<xeno> The worst thing on the planet is an apparently simple operation that nobody has any idea how to do.
fgo has quit [Ping timeout: 248 seconds]
dx7 has quit [Ping timeout: 260 seconds]
bleak has joined #ruby
Zunonia has joined #ruby
<bnagy> I don't think you want to use capture3 for tail -f
danshultz has quit [Ping timeout: 248 seconds]
gzfrancisco has joined #ruby
<bnagy> just popen3 and then blat lines as you read them off stdout
<jwest> xeno: flori.github.io/file-tail/ ?
gzfrancisco has quit [Client Quit]
snuffeluffegus has joined #ruby
AlexRussia has quit [Remote host closed the connection]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
AlexRussia has joined #ruby
mikepack has joined #ruby
Zunonia has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
zenojis has quit [Read error: Connection reset by peer]
byaruhaf has joined #ruby
<xeno> No, I need ANY output, not just tail. I need something that reads what there, then blocks waiting for more until it is made to exit.
mikepack has quit [Ping timeout: 246 seconds]
mikepack_ has joined #ruby
<xeno> If pipeline on open3 would just block that might do it.
Megtastique has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
jle` has joined #ruby
ctp has joined #ruby
<xeno> I'm sorry. The problem is, though Pipeline DOES block it re-executes every time so you get overlapping output.
<bnagy> xeno: popen3
<bnagy> then loop
<xeno> No, that didn't do it...well I'll try again..
<xeno> Perhaps...
as_ has joined #ruby
Dude007 has quit [Remote host closed the connection]
hypnosb has joined #ruby
<hypnosb> join #networking
Dude007 has joined #ruby
mikepack_ has quit [Ping timeout: 245 seconds]
robert_ has quit [Quit: Connection reset by traffic clause.]
ctp has quit [Ping timeout: 245 seconds]
<bnagy> xeno: meh seems to work fine for me
<bnagy> Open3.popen3("tail -f ~/scratch/blah") {|si,so,se| so.each {|l| puts l}} is what I did in irb
axsuul has joined #ruby
CourtJesterG has joined #ruby
russt_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Dude007 has quit [Ping timeout: 260 seconds]
<xeno> Okay,, that might do it. It does seem to work. Thank you bnagy. I'd better go catch my bus. Sorry guys. Thanks!
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<bnagy> np
crus` has quit [Ping timeout: 252 seconds]
oso96_2000 is now known as oso|away
MattStratton has joined #ruby
angusiguess has quit [Ping timeout: 265 seconds]
crus has joined #ruby
bleak has quit [Ping timeout: 265 seconds]
enape_101 has quit [Ping timeout: 265 seconds]
jonah_k has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
f1ay has quit [Ping timeout: 272 seconds]
Megtastique has quit []
vlad_starkov has joined #ruby
kpshek has joined #ruby
zachallett has joined #ruby
radic has quit [Ping timeout: 245 seconds]
zachalle_ has joined #ruby
zachallett has quit [Read error: Connection reset by peer]
alvaro_o_ has quit [Quit: Ex-Chat]
sepp2k has quit [Read error: Connection reset by peer]
bleak has joined #ruby
havenwood has quit [Remote host closed the connection]
radic has joined #ruby
troyready has quit [Ping timeout: 250 seconds]
Yahkob has joined #ruby
streblo1 has joined #ruby
<agent_white> How would I compare sub-elements in a vector? I'm trying to find out if rows have comparable values. Implemented the 2d array as `Array.new(3) { Array.new(3) }`
<bnagy> use Vector
<bnagy> or Matrix, or whatever
jefflyne has joined #ruby
<agent_white> Ah damn. So there's no way to do this as it's setup now?
<bnagy> probably?
Guest83842 has quit [Ping timeout: 260 seconds]
<bnagy> but why, if you want a Matrix use matrix
<centrx> No, if you want a matrix use Matrix
<agent_white> bnagy: I'll change it to that, but now I'm just curious! :P
Wolland has quit [Remote host closed the connection]
Tobarja_yikes is now known as Tobarja
<centrx> agent_white, You can see how Matrix does it, it is in Ruby
crus` has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<bnagy> centrx: require 'matrix'; m = Matrix.new
Tobarja is now known as Tobarja_test
<centrx> hmmm
Tobarja_test is now known as Tobarja
Cache_Money_ has joined #ruby
<centrx> touche
<bnagy> my caps win yours sux
mehlah has quit [Quit: Leaving...]
crus has quit [Ping timeout: 272 seconds]
ehaliewicz has joined #ruby
* bnagy victory lap
streblo1 has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
braincrash has quit [Quit: bye bye]
aspires has quit []
nowthatsamatt has joined #ruby
Es0teric_ has quit [Ping timeout: 245 seconds]
cmpitg has joined #ruby
braincrash has joined #ruby
x77686d has quit [Quit: x77686d]
rickruby has quit [Remote host closed the connection]
<TigerWolf> Are ruby strings Comparable? http://www.ruby-doc.org/core-2.1.0/Comparable.html
<bnagy> guess
<TigerWolf> yes
<bnagy> DING DING DING
jbueza has joined #ruby
<lagweezle> Aliens.
jbueza has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
pu22l3r has joined #ruby
<bnagy> man I was 100% sure there was going to be a real question following that
<bnagy> 2 is bigger than 1, lexically
ukd1 has joined #ruby
<TigerWolf> but 19.95?
<TigerWolf> so it just grabs the first char
<bnagy> just like b > abracadabra, lexically, yes
mgdixon has joined #ruby
<TigerWolf> thanks
thomasxie has quit [Quit: Leaving.]
rickruby has joined #ruby
<bnagy> np :)
<TigerWolf> although I feel worse for asking the question
mgdixon has quit [Client Quit]
micho has joined #ruby
<micho> hello. why is that: Kernel.stub!(:rand).and_return(1.5) not setting rand(whatever) value to 1.5?
tylersmith has joined #ruby
<TigerWolf> ["250","26"].max => "26" : ["250","23"].max => "250" - so it does a check on each char
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has joined #ruby
Zunonia has joined #ruby
<bnagy> TigerWolf: it's a lexical comparison, it's like when you look stuff up in a dictionary
tjr9898 has joined #ruby
<TigerWolf> sweet, thanks
sailias has quit [Ping timeout: 265 seconds]
<bnagy> micho: dunno what you're using, some testing thing, I guess, but maybe it only stubs rand() and not rand(n)
<TigerWolf> now I understand why this code doesnt work and whoever coded it didnt take this into consideration. Duh, Types are important.
<micho> bnagy: it's RSpec
angusiguess has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bnagy> is that some testing thing?
<pipecloud> bnagy: What is testing?
<pipecloud> TigerWolf: When you say types are important, what do you mean?
<micho> bnagy: yes, it is. I try to set the rand() to always return 1.5
<bnagy> WOO FIVE FOR FIVE
`petey` has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 248 seconds]
<bnagy> micho: normal rand() returns [0,1) afaik
<micho> it should be super simple, but it's 4 am here, and I have no idea why it does not work
<pipecloud> My rand functions always return 12.
Cache_Money_ has quit [Quit: Cache_Money_]
<micho> bnagy: you're right, but I call it rand(1.2..1.8)
<TigerWolf> I mean pipecloud to not run .min or .max on an array of string, but to convert everything in that array to int or float if thats what you actually want to compare.
dubsteph has joined #ruby
<pipecloud> TigerWolf: Why does the type matter? Doesn't it matter that they all quack appropriately?
<bnagy> micho: so my hypothesis, although I'm just guessing, is that rand() and rand(range) and rand(n) don't all get stubbed
<pipecloud> micho: Try to find out where the rand method comes from.
<micho> bnagy: I am just checking it now
<bnagy> micho: you could try, for example, hi*rand() + lo
<bnagy> see if it's any different
<pipecloud> TigerWolf: Sounds like, rather than ensuring type, you could ensure that they all respond to certain methods like #to_i before calling #max on the collection.
angusiguess has quit [Ping timeout: 246 seconds]
<bnagy> >> %w(19.9 2).max_by &:to_f
<eval-in> bnagy => "19.9" (https://eval.in/98823)
havenwood has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<TigerWolf> pipecloud: dont quite understand what you are trying to say. A price should never be compared as a string.
dubsteph has quit [Ping timeout: 245 seconds]
<pipecloud> TigerWolf: Well, it's less about caring about types and more about validation of data and adhering to an expected interface. You'll go far if you think like that rather than thinking about types.
nowthatsamatt has quit [Quit: nowthatsamatt]
<TigerWolf> Yeah
Kricir has joined #ruby
fgo has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
rm_ has quit [Read error: Connection reset by peer]
Cache_Money_ has joined #ruby
rm__ has joined #ruby
f1ay has joined #ruby
Noldorin has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit []
rm__ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
rm__ has joined #ruby
louism2wash has joined #ruby
rickruby has quit [Remote host closed the connection]
<louism2wash> Hey guys, this might be a dumb question but which exceptions should I be rescuing? Should I just be working under the assumption that any that can go wrong, can and will, so it's better to be safe than sorry?
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
bluntman has joined #ruby
<bnagy> you probably only want to rescue StandardError children
<bnagy> like, RuntimeError blah blah blah
gja has joined #ruby
halfie has joined #ruby
<bnagy> mainly what I mean is don't rescue Exception ( all exceptions )
zachalle_ has quit [Remote host closed the connection]
<louism2wash> bnagy: ok, so it sounds like other than system errors I should be rescuing almost everything…. i.e. errors that arise from my code, invalid user input, network connection issues, etc
jonr22 has quit [Remote host closed the connection]
ukd1 has quit [Quit: Leaving...]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bnagy> I prefer to have fairly tight rescue scenarios, though
<bnagy> just imvho etc
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jonr22 has joined #ruby
<bnagy> that way you only rescue stuff you know you can actually handle, and you know more precisely where things went wrong
<bnagy> otherwise you get crazy exception spaghetti
<bnagy> and if you add that to a complex system like eventmachine / rails / whatever things Go Wrong
havenwood has quit [Remote host closed the connection]
nobitanobi has quit [Quit: Leaving]
danshultz has joined #ruby
<bnagy> you can always reraise, as well, don't try and carry the world on your shoulders if some other component might be able to deal with it
framling has quit [Ping timeout: 272 seconds]
<bnagy> that enrages me when gems do it
bluntman has quit [Quit: WeeChat 0.3.8]
Hanmac has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
jonr22 has quit [Read error: Operation timed out]
ctp has joined #ruby
enape_101 has joined #ruby
havenwood has joined #ruby
danshultz has quit [Ping timeout: 250 seconds]
gja has quit [Quit: This computer has gone to sleep]
yasushi has joined #ruby
robbyoconnor has joined #ruby
Yahkob has quit [Remote host closed the connection]
<RubyTitmouse> I almost never rescue anything other than networking
ctp has quit [Ping timeout: 245 seconds]
Yahkob has joined #ruby
pu22l3r has quit [Remote host closed the connection]
bean has joined #ruby
bean has quit [Client Quit]
bean has joined #ruby
Yahkob has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
vlad_starkov has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
krisbulman is now known as [krisbulman]
bricker has joined #ruby
kpshek has quit []
brian____ has quit [Quit: brian____]
xxpor has joined #ruby
Hanmac has joined #ruby
Yahkob has joined #ruby
ixti has quit [Ping timeout: 260 seconds]
Hanmac1 has quit [Ping timeout: 245 seconds]
Yahkob has quit [Remote host closed the connection]
Yahkob has joined #ruby
b00stfr3ak has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
streblo1 has joined #ruby
<krz> foo = 'left'; how do i do something like @#{foo}_side = 'string'
mocfive has quit [Remote host closed the connection]
aagdbl has joined #ruby
<krz> basically i want to define a var named left_side = 'string'
vch1 has joined #ruby
<krz> do i need send for this?
Cache_Money_ has quit [Quit: Cache_Money_]
mocfive has joined #ruby
Yahkob has quit [Ping timeout: 245 seconds]
Hobogrammer has joined #ruby
vch1 has left #ruby [#ruby]
enape_101 has quit [Ping timeout: 260 seconds]
streblo1 has quit [Ping timeout: 245 seconds]
<krz> instance_variable_set
<RubyTitmouse> yes, often
mocfive has quit [Ping timeout: 245 seconds]
<krz> well what if i needed to combine this with ||=
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<krz> is there a way to do that?
<pipecloud> krz: Use instance_variable_get
<pipecloud> instance_variable_set unless instance_variable_get
<krz> ah
Cache_Money_ has joined #ruby
<havenwood> krz: instead of local variables maybe consider using keys of a hash
russt_ has quit [Quit: russt_]
<havenwood> >> hash = {}; 'a'.upto('f') { |char| hash[char.to_sym] = rand(1..6) }; hash
<eval-in> havenwood => {:a=>5, :b=>4, :c=>5, :d=>4, :e=>6, :f=>4} (https://eval.in/98869)
kitak_ has joined #ruby
gja has quit [Client Quit]
Steve445 has joined #ruby
<Steve445> Anyone use GitHub or gitLab for Time Tracking? (tracking the number of hours you spend on a issue or code commit)
<pipecloud> Steve445: I don't think it provides features for that directly. But I'm sure you could use it that way.
<Steve445> There is not official feature. I am looking to see if anyone uses it for that anyways in some inventive way
fgo has joined #ruby
gja has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
Yahkob has joined #ruby
habanany has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Steve445 has quit [Client Quit]
Deele has joined #ruby
SHyx0rmZ has joined #ruby
nowthatsamatt has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
sski has joined #ruby
craigp has joined #ruby
nowthatsamatt has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
f1ay has quit [Quit: Lost terminal]
CourtJesterG has quit [Quit: Please Donate: Litecoin payments: LUJnwfYNhNVNeP7DCxrewbJD9zZNR1nZ3E]
amclain has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<kiba> what is a lightweight way to do concurrency in ruby again?
evilbug has quit [Quit: Leaving]
<pipecloud> kiba: Threads.
<pipecloud> Or fibers, depending.
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<slowcon> currently writing a script that goes to a forum and saves some information like Post title and Port URL. would you suggest saving these to a .csv, or database?
makara has joined #ruby
AlexRussia has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<havenwood> slowcon: If you're going to use a flat file, maybe look at Psych::Store or PStore (YAML or Marshall, respectively). Or a database.
gja has quit [Quit: This computer has gone to sleep]
<n88> slowcon: just write straight to a db
<tamouse__> slowcon: it really depends on how you intend to use it after that
<havenwood> slowcon: Redis. Next question!
mikepack has joined #ruby
<n88> if you are planning on LOAD DATA INFILE'ing the csv into a db... just pull it into the db in the first place
<tamouse__> redis is always the answer
<slowcon> hahaha
<slowcon> the file will be used to check against links so it doesn't download them agai
Atrumx has quit [Quit: Leaving]
<slowcon> probably database
bigmac has quit [Ping timeout: 260 seconds]
<slowcon> is mysql with ruby hard
<havenwood> slowcon: the redis gem with Redis or sequel gem with Sqlite are both easy
<n88> slowcon: mysql is really easy as well
<n88> writing data to it through ruby as we speak
<havenwood> slowcon: no harder than outside of ruby
* kiba had absolutely no idea how to use ruby
<kiba> err
<kiba> ruby fiber
<slowcon> n88: I use mysql and tsql every day
<slowcon> n88: so hopefully it won't be too tough
<slowcon> just started ruby today though
jonah_k has joined #ruby
<slowcon> havenwood: thanks
bigmac has joined #ruby
<agent_white> centrx/bnagy: This Matrix class is horrendous.
mikepack has quit [Ping timeout: 252 seconds]
<centrx> agent_white, :)
<centrx> The standard library definitely needs a code review
<havenwood> slowcon: I'm really looking forward to ROM being ready, but the MySQL adapter isn't done yet: https://github.com/rom-rb/rom#readme
<centrx> agent_white, What is wrong with Matrix?
brennanMKE has quit [Remote host closed the connection]
<tamouse__> lets heave to, centrx !
<tamouse__> midnite code revies
<tamouse__> reviews*
<slowcon> havenwood: bookmarked
<tamouse__> crikey, that'd be an awesome podcast if you got the right people together
<agent_white> centrx: Well, one example is enough. To set an element, you either use `Matrix.send :[]=, col, row, val`, or open the class and define your own method.
IceDragon has quit [Quit: Space~~~]
<agent_white> No way, Matrix[i][j] = k would be FAR too easy!
<agent_white> D:
<centrx> agent_white, Oh, a Matrix is like an Integer constant
<agent_white> centrx: Fuck dude I'm just building tic-tac-toe.
volhit has joined #ruby
<centrx> agent_white, It is designed so that if you want to change the matrix, you create/transform into a _new_ one
slowcon has quit [Quit: slowcon]
mgberlin has joined #ruby
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
<centrx> agent_white, Like if you wanted to change the number 10 into 20, you would not have some scheme where you do 10[0] = 2 to change the first digit of the integer
<kiba> HI, I am still working on my survival analysis project
<kiba> thanks anybody who's still supporting me via gittip despite no words from me for weeks...
<mgberlin> can anyone tell me how to make this method not quite so damn ugly? https://gist.github.com/mgberlin/e0c7534da3e4a2a90710
<centrx> agent_white, A matrix like [ 1 0 ] [ 0 1 ] is a fundamental object itself
<centrx> agent_white, That is the idea anyway
iamsean has joined #ruby
<agent_white> centrx: hm. I would need to find a use for it before I understand it :P
<mgberlin> mostly with regard to the if/elsif blocks that are almost identical but not quite
<mgberlin> i feel like i could use a proc with the <=> operator somehow, but i'm not sure
nycjv321 has joined #ruby
slowcon has joined #ruby
<agent_white> centrx: I'm tempted to get back to my 2d array instead. This is like bringing a philosoph and a jackhammer to punch in a nail.
OdNairy has joined #ruby
<centrx> agent_white, what are you doing?
<havenwood> mgberlin: A start would be to favor implicit returns and put everything inside the if statement: https://gist.github.com/havenwood/6c33474b64083fadfce2
<agent_white> centrx: Shit you, I do not. I am building tic-tac-toe :)
<bnagy> well don't use a matrix then
<agent_white> centrx: And it came down to checking for "horizontal" wins.
<agent_white> >.>
<centrx> hmm
<bnagy> matrix is not for tic-tac-toe
<bnagy> unless you want to play it on your GPU
<centrx> Use TicTacToeMatrix
<mgberlin> havenwood: thanks
bleak has quit [Read error: Connection reset by peer]
<agent_white> D: This game will never see the light.
<mgberlin> i forgot that it would be implicit even if it's not the last line of the method
mary5030 has quit [Remote host closed the connection]
ctp has joined #ruby
bleak has joined #ruby
kenndel has joined #ruby
m104 has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kiba> SO!
<centrx> Well then!
<kiba> Proc is how to do threading in ruby, right?
<centrx> Tell us about this survival analysis project.
<centrx> Is this related to zombies?
<nycjv321> kiba: no
<kiba> centrx: it's related to the survival of gems
craigp has quit [Remote host closed the connection]
<havenwood> mgberlin: then maybe next extract method and dry it up a bit: https://gist.github.com/havenwood/6c33474b64083fadfce2
<kiba> I did a bunch of work before, downloading gems, analyzing them, etc, and so on
<kiba> well, not the analysis part
<mgberlin> havenwood: i've heard harsh things about using send
<pipecloud> kiba: Thread is how to thread in ruby
<pipecloud> Fancy that.
ctp has quit [Ping timeout: 272 seconds]
<nycjv321> pipecloud: who would've thought? =D
<havenwood> mgberlin: sure you're not thinking `eval`?
<pipecloud> centrx: He's trying to see if he could survive as a rubyist.
<mgberlin> oh yeah, that was it
<mgberlin> is send okay to use?
<havenwood> mgberlin: #send isn't dangerous, it just calls the method
<pipecloud> mgberlin: It ignores visibility.
<bnagy> send is wrong
<kiba> pipecloud: what?
<pipecloud> public_send is okay
<bnagy> if you use send your code is bad
<havenwood> fine, public_send
<pipecloud> bnagy: No it isn't. If you use send for day to day code, you should probably rethink.
<havenwood> bnagy: what is wrong?
<pipecloud> I use it for metapgrogramming all the time.
<havenwood> bnagy: how do you prefer to dynamically call a method?
<bnagy> I just believe that unanswerable questions deserve hyperbole
<nycjv321> send is useful for unit testing
<pipecloud> nycjv321: No it isn't.
<bnagy> like.. it wouldn't be in the language if it were universally bad
Yahkob has quit [Remote host closed the connection]
<pipecloud> You shouldn't unit test private methods. Test them indirectly by exercising your public interface.
<nycjv321> pipecloud: really?
<bnagy> .. ignoring that fact that classvars exist, for a minute :|
<pipecloud> Really.
<nycjv321> mind blown
Yahkob has joined #ruby
<havenwood> bnagy: on class variables or eval i'd agree, but send isn't offensive to me
<pipecloud> nycjv321: Do you test internal state of objects too?
<nycjv321> no thats stupid
<bnagy> meh I've used eval
<pipecloud> I've used every form of eval, but only when admittedly doing bad things in order to do nice things elsewhere.
<bnagy> well procs don't serialize, so there's some distributed map / reduce stuff where there's no other option that's not even worse
mrnugget has joined #ruby
fgo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
* kiba first benchmark the result
CaptainJet has quit []
pwh has quit [Ping timeout: 260 seconds]
<bnagy> benchmark whatnow?
<pipecloud> bnagy: They sure do serialize! They just don't deserialize well. :p
* pipecloud is so funneh :(
<bnagy> >> Marshal.dump(Proc.new{})
<eval-in> bnagy => no _dump_data is defined for class Proc (TypeError) ... (https://eval.in/98883)
Yahkob_ has joined #ruby
<kiba> seems like my DNS went a bit wonky
Yahkob has quit [Ping timeout: 245 seconds]
<pipecloud> bnagy: Serialization and marshalling are similar but not strictly the same.
Cache_Money_ has quit [Quit: Cache_Money_]
<nycjv321> pipecloud: whats the difference
<bnagy> off you go then, serialize a proc. With anything.
<nycjv321> pipecloud: I'm a noob tell me :D
artm has joined #ruby
<havenwood> >> Psych.dump(->{})
<eval-in> havenwood => uninitialized constant Psych (NameError) ... (https://eval.in/98884)
<havenwood> oops
<pipecloud> >> gem 'psych'; Marshall.dump(Psych.new)
<eval-in> pipecloud => (https://eval.in/98886)
mgberlin has quit [Quit: mgberlin]
* pipecloud is curious
<pipecloud> >> gem 'pry'; binding.pry
<eval-in> pipecloud => (https://eval.in/98887)
<pipecloud> Probably timeouts or just returns nil
<centrx> >> puts "Please let me sleep!"
<eval-in> centrx => Please let me sleep! ... (https://eval.in/98888)
sensen has quit [Ping timeout: 260 seconds]
volhit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BackEndCoder has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
streblo1 has joined #ruby
BrixSat has quit [Remote host closed the connection]
danijoo has joined #ruby
BrixSat has joined #ruby
yasushi has quit [Remote host closed the connection]
slowcon has quit [Quit: slowcon]
Yahkob_ has quit []
streblo1 has quit [Ping timeout: 248 seconds]
micho has quit [Quit: Leaving]
sethen has quit [Remote host closed the connection]
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby
brennanMKE has joined #ruby
sethen has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
vlad_starkov has quit [Remote host closed the connection]
amritanshu_RnD has joined #ruby
amritanshu_RnD has quit [Client Quit]
vlad_starkov has joined #ruby
amritanshu_RnD has joined #ruby
Naoe-Kanno has joined #ruby
amritanshu_RnD is now known as Guest779
SHyx0rmZ has quit [Ping timeout: 272 seconds]
Liothen has quit [Quit: System of a down……]
* nycjv321 is deeply saddened to know that JetBrains provides a "Community edition" for their Python Ide but not Ruby :(
<pipecloud> nycjv321: They have a demo. And there's always vim.
brennanMKE has quit [Ping timeout: 248 seconds]
<nycjv321> pipecloud: once you get code completion, refactoring with a couple of clicks theres no way back :)
<pipecloud> nycjv321: Code completion is possible in vim.
<nycjv321> pipecloud: I bought the personal developer edition of RubyMine last month. Its amazing.
<pipecloud> The refactoring, I'm not sure. I don't think anyone can even get drunk enough to implement the refactoring feature.
<pipecloud> In vimscript, that is.
estebistec has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
sensen has joined #ruby
<pipecloud> nycjv321: Someone I pear a lot with uses rubymine. It's neat enough for people who like IDEs.
<nycjv321> RubyMine has code completion, refactoring, rails, cucumber, rspec integration (just to state some of its features)
mocfive has joined #ruby
<pipecloud> nycjv321: Vim has all of those as well, actually.
<pipecloud> Extensible, but what you pay for is a tailored environment anyways, hence IDE.
<agent_white> But you can't use your mouse D:
<pipecloud> agent_white: Yes you can.
<nycjv321> pipecloud: yep
<agent_white> pipecloud: I know, it's a joke ;)
<pipecloud> agent_white: Be funnier next time. :(
<nycjv321> I forgot to mention version control, but I bet their is a vim plugin for that also
<pipecloud> There's many vim plugins for that.
<agent_white> pipecloud: I haven't drank enough yet :D
fgo has joined #ruby
<pipecloud> A great many.
<nycjv321> I don't have to download a plugin for each feature with an IDE.
<nycjv321> thats really why I would prefer it, in addition to mouse + right click support. ;)
<agent_white> You don'
<agent_white> You don't need many plugins to roll!
<pipecloud> nycjv321: Yeah that's why you use a pre-integrated development environment.
<agent_white> NERDTree/Surround/Synctastic + vimrc for auto completion and I'm happy.
<pipecloud> It's not really the presence of features, it's the completeness and the integration.
<pipecloud> Because in vim and other editors, we have all those features.
* nycjv321 wishes JetBrains would release a community edition of RubyMine. They must do it for financial reasons. There isn't one for php either.
gja has quit [Quit: This computer has gone to sleep]
<nycjv321> their marketers are smart lol
<pipecloud> nycjv321: They have an open source license for open source projects, but it requires an application.
centrx has quit [Quit: Leaving]
<agent_white> IDE's have just been too much for me, personally. If I don't use majority of the buttons, I wonder why they're there.
<pipecloud> agent_white: I think it's funny when your editor takes up more memory than 4 instances of your application.
<nycjv321> pipecloud: that has a web presense*
<pipecloud> presence**
<nycjv321> I emailed them asking about it. Basically they only give the license if your application is well known established open source project
browndawg has joined #ruby
joelroa has joined #ruby
<nycjv321> pipecloud: thank you for the correction*
<nycjv321> well known | established*
ndrei has joined #ruby
b00stfr3ak has quit [Ping timeout: 248 seconds]
bigmac has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
nycjv321 has quit [Quit: leaving]
kevinykc_ has quit [Ping timeout: 245 seconds]
yarou has quit [Remote host closed the connection]
bigmac has joined #ruby
Guest83842 has joined #ruby
sensen has quit [Ping timeout: 272 seconds]
Guest83842 has quit [Client Quit]
sski has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
sski has joined #ruby
amclain has quit [Quit: Leaving]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
axsuul has quit [Read error: Connection reset by peer]
kevinykchan has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
kevinykchan has joined #ruby
bigmac has quit [Ping timeout: 265 seconds]
JasmeetQA has joined #ruby
Spami has joined #ruby
sski has quit [Ping timeout: 248 seconds]
baroquebobcat has joined #ruby
_HolyCow has quit [Ping timeout: 269 seconds]
tyl has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_HolyCow has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
brunops has quit [Quit: leaving]
kevinykchan has joined #ruby
dik_dak has quit [Quit: Leaving]
rm__ has quit [Remote host closed the connection]
noop has joined #ruby
craigp has joined #ruby
sski has joined #ruby
tagrudev has joined #ruby
withnale has quit [Read error: Operation timed out]
estebistec has quit [Remote host closed the connection]
Axsuul_ has joined #ruby
bricker has joined #ruby
ctp has joined #ruby
sensen has joined #ruby
Aldo has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
dseitz has joined #ruby
jrobertfox has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
rushed has joined #ruby
Axsuul_ has quit [Ping timeout: 250 seconds]
bricker has quit [Ping timeout: 252 seconds]
ctp has quit [Ping timeout: 260 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
heftig has quit [Quit: Quitting]
jprovazn has joined #ruby
m00nlight has joined #ruby
Aldo has quit [Quit: Linkinus - http://linkinus.com]
mary5030 has joined #ruby
dr0ff has left #ruby [#ruby]
mary5030 has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
aagdbl has joined #ruby
havenwood has quit [Remote host closed the connection]
ctp has joined #ruby
streblo1 has joined #ruby
havenwood has joined #ruby
venkat_ has joined #ruby
thams has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m00nlight has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
streblo1 has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
brennanMKE has joined #ruby
m104 has quit [Quit: bye]
rm_ has joined #ruby
browndawg has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
tylersmith has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
jefflyne has joined #ruby
bigmac has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bal has joined #ruby
m00nlight has joined #ruby
jefflyne has quit [Client Quit]
tylersmith has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
rm_ has quit [Ping timeout: 272 seconds]
yacks has quit [Quit: Leaving]
artm has quit [Ping timeout: 250 seconds]
gja has joined #ruby
mikepack has joined #ruby
bwk1 has joined #ruby
mikepack has quit [Ping timeout: 250 seconds]
dubsteph has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
blaxter has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dubsteph has quit [Ping timeout: 250 seconds]
sski has quit [Remote host closed the connection]
Vivekananda has joined #ruby
sski has joined #ruby
blaxter has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
pavilionXP has quit [Read error: Operation timed out]
ktosiek has joined #ruby
sethen has quit [Read error: Connection reset by peer]
teenwolf has joined #ruby
bleak has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
pavilionXP has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sski has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
mengu has joined #ruby
browndawg has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
crus has joined #ruby
aagdbl has joined #ruby
crus` has quit [Ping timeout: 265 seconds]
uglybandersnatch has quit [Quit: Leaving.]
grzywacz has joined #ruby
nighter has joined #ruby
JasmeetQA1 has joined #ruby
abra has quit [Ping timeout: 245 seconds]
sski has joined #ruby
JasmeetQA has quit [Ping timeout: 272 seconds]
dagobah has joined #ruby
mengu has quit [Remote host closed the connection]
<nighter> Hi, I use bundle package all to package some gems for an ruby application. In the vendor folder it says "vendor/ruby/1.9.1/ .." why does it default to an specific ruby version? To I need to add something in my Gemfile?
<pipecloud> nighter: It uses the version directory for your ruby version.
<pipecloud> If it's 1.9, it always goes into 1.9.1, backwards compatibility crap.
blaxter has joined #ruby
abra has joined #ruby
mengu has joined #ruby
<nighter> ruby -v
<nighter> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
<nighter> it says 1.9.3 on my box
<pipecloud> "If it's 1.9, it always goes into 1.9.1, backwards compatibility crap."
<nighter> aha ok
<nighter> how do I resolve that the application does not seems to works since it depends on 1.9.1 of ruby
<nighter> as it seems.
havenwood has quit [Ping timeout: 246 seconds]
craigp has quit [Read error: Connection reset by peer]
<pipecloud> it doesn't.
<pipecloud> Ruby 1.9.x looks in 1.9.1 for gems
<pipecloud> All is well.
<pipecloud> Even if it's a bit confusing. :(
<tamouse__> carry on
craigp has joined #ruby
Kricir has quit [Remote host closed the connection]
ndrei has joined #ruby
atmosx has joined #ruby
ehaliewicz has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
artm has joined #ruby
Wolland has joined #ruby
havenwood has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
streblo1 has joined #ruby
jonah_k has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
streblo1 has quit [Ping timeout: 245 seconds]
ctp has quit [Quit: Leaving...]
Lightstalker has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
zenojis has joined #ruby
thumpba has joined #ruby
aganov has joined #ruby
gja has joined #ruby
drumusician has joined #ruby
Lightstalker has joined #ruby
xue has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
thumpba has quit [Read error: Operation timed out]
<nighter> Sorry had to leave for a meeting. Hmm maybe not that's the issue then I try to start the application and check the error message I just thought it was ruby version isuses. I have no experience with ruby just the developers come to me because they can't sort this out themself. :(
brennanMKE has quit [Ping timeout: 260 seconds]
rm__ has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
yacks has joined #ruby
closer has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
closer has joined #ruby
rootshift has joined #ruby
artm has quit [Ping timeout: 260 seconds]
rm__ has quit [Ping timeout: 272 seconds]
<nighter> vendor/bundle/ruby/1.9.1/gems/kgio-2.8.1/lib/kgio.rb:21:in `require': libruby.so.1.9: cannot open shared object file: No such file or directory
<nighter> hmm maybe is not the ruby version issue just it can't find that shared object file.
craigp has quit [Remote host closed the connection]
<nighter> ahh thinks I know whats wrong
ahawkins has joined #ruby
jackneill has joined #ruby
tylersmith has joined #ruby
pavilionXP has quit [Read error: Connection timed out]
dangerousdave has joined #ruby
phansch has joined #ruby
bigmac has joined #ruby
mengu has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
tylersmith has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
razibog has joined #ruby
Roxja has joined #ruby
relix has joined #ruby
AxonetBE has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
tongcx_ has joined #ruby
<tongcx_> hi guys, in sinatra, what is 'stream'? a class, a function?
coder_neo has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
drumusician has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
<agent_white> A stream is a river of data. A class holds behavior and attributes. A function is an action.
troessner has joined #ruby
skaflem has joined #ruby
alexherbo2 has joined #ruby
<agent_white> Don't listen to me. I may be speaking from my buttocks.
artm has joined #ruby
<pipecloud> tongcx_: It's a body of water in motion.
<pipecloud> tongcx_: Ruby doesn't have 'functions', it has methods.
<tongcx_> right, but i cannot find the definition of 'stream' in the code
<agent_white> Like Halle Barry on a waterbed.
bricker has joined #ruby
<pipecloud> tongcx_: You probably oculd.
<pipecloud> could*
<agent_white> Whooaaaa hold on there.
<agent_white> pipecloud: Is that just terminology difference? Or 'deeper' than that?
Xeago has joined #ruby
<tongcx_> pipecloud: thanks for the second link
<pipecloud> agent_white: what do you mean?
weems has joined #ruby
<agent_white> Well in my C++ course we called them functions. But in Java we called them methods. I always figured it was two different ways to say the same thing?
echevemaster has quit [Quit: Leaving]
<pipecloud> agent_white: methods are functions bound to an object.
<ryanf> it depends on the language
<ryanf> but yeah, that's the reasoning for ruby calling them methods afaik
<pipecloud> A method is a kind of function, but not all functions are method.
<pipecloud> methods
<ryanf> a proc in ruby is not a method, but it's a function
<pipecloud> agent_white: They're functions whose first implicit argument is self, which is the object.
<pipecloud> ryanf: Well, a proc is an object.
<pipecloud> And proc is a method, is it not?
<ryanf> everything* is an object
bricker`LA has quit [Ping timeout: 245 seconds]
<workmad3> ryanf: you could also argue that a proc is an anonymous method implicitly bound to 'self' in the context it was created ;)
<pipecloud> There's very few things in ruby that aren't objects.
<tobiasvl> agent_white: you can read up on "pure functional programming" (only has functions) and "object oriented programming" (usually has methods) for the difference. ruby is "multi-paradigm" so it can do both to some extent
<pipecloud> workmad3: created or the binding in which it was called?
<ryanf> workmad3: yeah, that's fair, but not the terminology ruby uses
<pipecloud> Because you can change the binding of a proc.
<ryanf> like I said, function vs method or whatever is really just language-specific terminology I think, with some vague shared conceptual stuff
bricker has quit [Ping timeout: 260 seconds]
<pipecloud> tobiasvl: That's not quite the same.
<ryanf> for example, methods in clojure have nothing to do with objects
claymore has joined #ruby
<workmad3> pipecloud: yeah, but then it's explicit... and you can do that with methods too
<workmad3> (ish)
greenarrow has joined #ruby
<pipecloud> You can write your methods in a functional nature but it's still a method.
<pipecloud> workmad3: It's explicit in the C code too.
<pipecloud> Whose level of abstraction are we playing by here?
razibog has quit [Quit: Leaving.]
razibog has joined #ruby
<workmad3> pipecloud: C code doesn't have receivers at all, implicit or explicit (as there are no objects in C)
<agent_white> Keep going, this is feeding my curiousity hahah.
Xeago has quit [Ping timeout: 272 seconds]
<pipecloud> workmad3: There's structs which are your 'object' and functions are called with the explicit argument of the struct.
Emmanuel_Chanel has joined #ruby
<pipecloud> agent_white: We're just playing joust-with-e-peenor
<workmad3> ^^
<pipecloud> agent_white: Anyways, a method is a function that belongs to an object. It's a type of function.
ephemerian has joined #ruby
<agent_white> pipecloud: It's entertaining! :D
<workmad3> pipecloud: I'd suggest that structs are conceptually different to objects, so going that low in your abstraction is going too far
craigp has joined #ruby
<pipecloud> workmad3: They're the closest thing to objects in C.
<workmad3> pipecloud: and I'd also suggest that what you described is how you do 'object-style' coding in C, rather than them being objects
<workmad3> pipecloud: in the same way you can do functional-style stuff in ruby, but (mostly) you're not dealing with functions :)
<pipecloud> workmad3: I'm pretty sure even the special C bible calls them objects at some point.
<pipecloud> K&R
JasmeetQA1 has quit [Quit: Leaving.]
heftig has joined #ruby
mengu has quit []
<pipecloud> Look for "Unlike structs"
<agent_white> Hearing "C does not have classes" and "Structs are the closest thing to objects that C has" is frightening. But I've been wanting to learn it for some time.
<pipecloud> I don't have the K&R book on hand to search and quote.
tongcx_ has quit [Ping timeout: 265 seconds]
<pipecloud> workmad3: The point is that the metaphor only reaches so far anways. Functions aren't the lowest turtle on the stack.
mocfive has quit [Remote host closed the connection]
<workmad3> pipecloud: ah, you mean the comment about 'not first class objects'?
<pipecloud> agent_white: Anyways, do you get the point?
coder_neo has quit [Quit: This computer has gone to sleep]
<agent_white> pipecloud/ryanf/tobiasvl/workmad3: Thank ya for the knowledge though :D
mocfive has joined #ruby
<pipecloud> workmad3: Yeah, usually when someone says "something, unlike something else, is not a thing" they usually mean that the something else is that thing.
<workmad3> pipecloud: I take that to be using 'object' in the sense of 'object as generic term for thing' rather than 'object as in Object Oriented Programming'
<agent_white> pipecloud: Yup! A function is an classless(ish) action?
<workmad3> pipecloud: it's an overloaded term
<pipecloud> agent_white: Look up 'first class functions' to see what normal functions are like. Python has them. That's why python methods actually pass self.
vlad_starkov has quit [Remote host closed the connection]
<pipecloud> workmad3: It's one K&R uses, and that's the C bible.
<workmad3> pipecloud: yes, but that doesn't mean that object in that sense == object in OO sense
<pipecloud> workmad3: So?
<workmad3> pipecloud: it means that you're trying to change the meaning of a phrase behind the scenes
<pipecloud> It's an object, an encapsulation of data. Functions can be bound to that object making them methods. Sure they dont' hide data.
<workmad3> pipecloud: because two concepts are (annoyingly) represented by the same string of characters
<pipecloud> workmad3: Not really. If anything, OO changed structs being objects.
<pipecloud> workmad3: OO is the interloper here.
<workmad3> pipecloud: most likely, but that doesn't alter anything about what I just said
<pipecloud> workmad3: I'm just saying that my use takes precedence.
<workmad3> pipecloud: that still doesn't alter anything
<pipecloud> workmad3: I apologize that the world slighted you by overloading a term.
<workmad3> pipecloud: it didn't slight me
<pipecloud> You seem rustled.
<workmad3> pipecloud: you're just trying to argue a point by changing definition halfway through an argument (which is what is annoying :P)
<agent_white> pipecloud: So Ruby has first-class functions too?
mocfive has quit [Ping timeout: 245 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
<pipecloud> agent_white: Negative.
<workmad3> pipecloud: anyway, I'd guess we've taken the discussion far enough ;)
bricker`LA has joined #ruby
<pipecloud> One can never go far enough, only sober up too much. :(
osvico has quit [Ping timeout: 260 seconds]
tyl has joined #ruby
tyl has quit [Changing host]
tyl has joined #ruby
<agent_white> pipecloud: I'll have to read up on it... I just opened irb and defined 'first_name', 'last_name' functions that returned strings, and a 'full_name' function. Passed those two to the latter and it worked?
<agent_white> I'll wiki a bit more though. ;D
<pipecloud> agent_white: Those are methods on the Main object instance.
withnale has quit [Read error: Connection reset by peer]
<pipecloud> Err main instance of Object
<pipecloud> agent_white: `self` is main, which has a `self.class` of Object.
<pipecloud> It's an instance of object.
poulson has joined #ruby
<pipecloud> Object*
<agent_white> Main always exists as long as code does?
withnale has joined #ruby
<agent_white> pipecloud: Ohhh I see mean there.
<pipecloud> Well, it exists as long as any other object tends to exist.
nettoweb has joined #ruby
<agent_white> **I see what you mean. accidentally a there
Wolland has quit [Remote host closed the connection]
<workmad3> pipecloud: ok - then in the vein of beating a dead pony... when we seem to be in agreement about what a term means I'll leave it be... but when it seems that we've reached a disagreement, I'll tend to clarify with what I was referring to... to then try a bait-and-switch on the definition and claim that 'your definition has precedence' is annoying, frustrating and completely irrelevant... which definition 'came first' doesn't
Xeago has joined #ruby
Wolland has joined #ruby
joelroa has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pipecloud> workmad3: It's almost as if you're stuck in a state of now and disregard context in order to further your correct assertion that words may have multiple meanings, much to your chagrin.
byaruhaf has quit [Quit: Leaving.]
havenwood has joined #ruby
<workmad3> pipecloud: I'm not the one who tried a bait and switch here ;)
<agent_white> agent_white -> "well... I made it print 'hello'..."
byaruhaf has joined #ruby
<pipecloud> workmad3: Just saiyan.
<pipecloud> agent_white: print is a method.
Al___ has joined #ruby
Zunonia has quit [Read error: Connection reset by peer]
<pipecloud> IO I believe.
Zunonia has joined #ruby
<workmad3> pipecloud: tbh, I'm not really sure what you said in that last instance... it seemed to me to be mostly devoid of meaning
<pipecloud> workmad3: It was complaining about your disregard for pedantry.
<agent_white> Because it nationless?! Sounds like a citizen of mother earth to me :D
<workmad3> pipecloud: huh? if anything, I was being pedantic to the extreme there!
skaflem has quit [Quit: Leaving]
timonv has joined #ruby
<workmad3> pipecloud: I was being pedantic about when it's allowable to be pedantic about word choices!
<agent_white> So in general: Functions just hippies who chill with everyone, while methods are hipsters who need a posse to know how to act?
<pipecloud> agent_white: For the most part.
<tobiasvl> lol
andikr has joined #ruby
kitak has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
benlieb has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
m00nlight has quit [Quit: Konversation terminated!]
sk87 has joined #ruby
asmodlol has joined #ruby
vlad_starkov has joined #ruby
streblo1 has joined #ruby
LadyRainicorn has joined #ruby
kitak has joined #ruby
timonv_ has joined #ruby
gja has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
<agent_white> Sweet. Functional programming sounds different to say the least haha.
timonv has quit [Ping timeout: 250 seconds]
e^0 has joined #ruby
e^0 has quit [Client Quit]
kitak has quit [Ping timeout: 245 seconds]
ayaz_ has joined #ruby
streblo1 has quit [Ping timeout: 272 seconds]
speakingcode has joined #ruby
e^0 has joined #ruby
mikepack has joined #ruby
e^0 is now known as Guest9913
phansch has quit [Quit: Leaving]
brennanMKE has joined #ruby
jomofcw has joined #ruby
<jomofcw> Hello !
<jomofcw> I still have this problem trying to install JSON module require by Redmine : http://pastebin.com/bqGt6tkQ , any idea about a fix ? Please.
olivier_bK has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Al___ has quit [Ping timeout: 250 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
Guest9913 has quit [Client Quit]
mikecmpbll has joined #ruby
e^0_ has joined #ruby
e^0_ has quit [Client Quit]
Al___ has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
drumusician has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
mikepack has quit [Ping timeout: 248 seconds]
rm__ has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
elaptics`away is now known as elaptics
_bart has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iMe is now known as iMe_away
[lewellyn] has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
rm__ has quit [Ping timeout: 245 seconds]
ephemerian has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
msuszczy has joined #ruby
browndawg has quit [Quit: Leaving.]
ephemerian has joined #ruby
ace_striker has joined #ruby
ace_striker is now known as Guest49632
iamsean has quit [Quit: iamsean]
[gmi] has joined #ruby
top4o has joined #ruby
JasmeetQA has joined #ruby
Slavox has quit [Ping timeout: 272 seconds]
Slavox has joined #ruby
obs has joined #ruby
grzywacz has quit [Quit: :wq]
obs has quit [Client Quit]
phansch has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
mojjojo has joined #ruby
predator117 has joined #ruby
tvw has joined #ruby
mojjojo has quit [Client Quit]
greenarrow has quit [Quit: 500]
karupanerura is now known as zz_karupanerura
mojjojo has joined #ruby
Guest49632 is now known as mojombo
greenarrow has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
timonv has quit [Read error: No route to host]
kobain has quit []
kitak has joined #ruby
jzigmund is now known as limited_cosmos
<agent_white> krz: Don't think I can help, but try going to "http://api2.getresponse.com/ping.json" in your browser. Already it's throwing errors.
jlebrech has joined #ruby
<agent_white> woops, mt.
<agent_white> Ignore my above... ;D
jomofcw has left #ruby [#ruby]
Hiall has quit [Quit: hiall]
nism has joined #ruby
withnale has quit [Read error: Operation timed out]
lewellyn has joined #ruby
<dagobah> Anyone good with blocks, DSLs etc? Been struggling over this little problem: https://gist.github.com/kotay/8859883
DaniG2k has joined #ruby
shredding has joined #ruby
stonevil___ has joined #ruby
klaut has joined #ruby
Atrumx has joined #ruby
havenwood has joined #ruby
venkat_ has quit []
colli5ion has joined #ruby
wallerdev has quit [Quit: wallerdev]
maasha has joined #ruby
<LadyRainicorn> dagobah: Raise an exception.
<dagobah> I'll try that..
<maasha> Without going into to much detail, here is a funny observation from a Unit Test: <"foobar"> expected but was <"102\n111\n111\n98\n97\n114\n">. How did that happen? :o)
<LadyRainicorn> (Unless you want to return a specific value instead of raising an exception, in which case use catch/throw.)
* maasha thinks it is an artifact from msgpack
greenarrow has quit [Quit: 500]
<LadyRainicorn> Maybe you forgot to unpack something?
havenwood has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Ping timeout: 265 seconds]
streblo1 has joined #ruby
aagdbl has quit [Ping timeout: 245 seconds]
<dagobah> LadyRainicorn: I want to just leave the block but continue running anything else.. raise just bombs out.
<maasha> LadyRainicorn: maybe, but it is still a strange string. msgpacked foobar is different.
<LadyRainicorn> Probably have to look at the code then.
<LadyRainicorn> dagobah: catch/throw may be what you want..
<dagobah> LadyRainicorn: Thanks, I'll take a look.
<maasha> Ok, its not presentable at the moment. Just wondering if anyone had seen such before.
withnale has joined #ruby
hamed_r has joined #ruby
marr has joined #ruby
<LadyRainicorn> dagobah: It looks like an numbers.join("\n")
<LadyRainicorn> Are you doing that anywhere?
<LadyRainicorn> Oh, but there's a newline at the end.
<LadyRainicorn> Maybe a StringIO?
as_ has quit [Ping timeout: 245 seconds]
streblo1 has quit [Ping timeout: 250 seconds]
<maasha> LadyRainicorn: yes, its StringIO
<maasha> .o0(does StringIO insert \n all over strings?)
aagdbl has joined #ruby
<LadyRainicorn> No, but stringio.puts(str) will.
mehlah has joined #ruby
<LadyRainicorn> Which is presumably what's occurring.
<maasha> LadyRainicorn: Ah, that is probably it.
enape_101 has joined #ruby
greenarrow has joined #ruby
brennanMKE has joined #ruby
Zunonia_ has joined #ruby
hewhomust has joined #ruby
hewhomust has left #ruby [#ruby]
gja has quit [Quit: This computer has gone to sleep]
Zunonia has quit [Ping timeout: 245 seconds]
AndChat| has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
<maasha> LadyRainicorn: hm? StringIO.new("", 'w').puts "foobar" => nil
lkba has quit [Read error: Connection reset by peer]
gja has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
enape_101 has quit [Ping timeout: 248 seconds]
vermmele has joined #ruby
<LadyRainicorn> maasha: StringIO.new.tap{|s|s.puts('MATHEMATICAL!');s.seek(0)}.read
rm__ has joined #ruby
Zunonia_ has quit [Client Quit]
Zunonia_ has joined #ruby
vermmele has quit [Client Quit]
vermele has joined #ruby
avalarion has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
dachi has joined #ruby
bricker`LA has joined #ruby
vermele has left #ruby [#ruby]
AndChat| has quit [Ping timeout: 250 seconds]
eka has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
<dachi> hi
Zunonia_ has quit [Ping timeout: 245 seconds]
rm__ has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
vermele has joined #ruby
mojjojo has quit [Quit: mojjojo]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
JasmeetQA1 has joined #ruby
bricker has joined #ruby
mojjojo has joined #ruby
shaunbaker has joined #ruby
vermele has quit [Client Quit]
vermele has joined #ruby
JasmeetQA has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vermele has quit [Read error: Connection reset by peer]
vermele has joined #ruby
<LadyRainicorn> Hi
<maasha> LadyRainicorn: first I was trying to reproduce the f\no\no\nb\na\nr\n
<LadyRainicorn> maasha: StringIO.new.tap{|s|'MATHEMATICAL!'.each_char{|c|s.puts(c)};s.seek(0)}.read
vermele has quit [Client Quit]
kitak has quit [Remote host closed the connection]
vermele has joined #ruby
Hiall has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
dubsteph has joined #ruby
vermele has quit [Client Quit]
vermele has joined #ruby
himsin has joined #ruby
vermele has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
_bart has quit [Remote host closed the connection]
colli5ion has quit []
vermele has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
vermele has quit [Read error: Connection reset by peer]
larissa has joined #ruby
tyl has joined #ruby
vermele has joined #ruby
Dwarf has quit [Ping timeout: 265 seconds]
<olivier_bK> i use a curl command for pass mysql migration on my instance but sometimes the instance has already the last migration and i want to get this in my script
<olivier_bK> do you have an idea how i can do that
<olivier_bK> ,?
bigmac has joined #ruby
<LadyRainicorn> olivier_bK: That sounds incoherent, but more importantly something that belongs in #RubyOnRails
Dwarf has joined #ruby
dubsteph has quit [Ping timeout: 245 seconds]
Roxja has quit [Quit: Roxja]
<olivier_bK> euhh ...
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 240 seconds]
zeeraw has joined #ruby
xue has quit [Remote host closed the connection]
sk87 has joined #ruby
elementz has joined #ruby
zegerjan has joined #ruby
agent_white has quit [Quit: leaving]
canton7-mac has joined #ruby
canton7-mac has quit [Remote host closed the connection]
canton7-mac has joined #ruby
ddpunk has joined #ruby
phansch has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
timonv has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
<alex88> is there a shorter way to @var.elem1 = othervar[:elem1]; @var.elem2 = othervar[:elem2]; @var.elem3 = othervar[:elem3]; ... ?
DrCode has joined #ruby
Guest779 has quit [Quit: Leaving]
<LadyRainicorn> alex88: many.times{|i| e="elem#{i+1}"; @var.send(e+'=', othervar(e.to_sym))}
RoxasShadowRS has joined #ruby
sk87 has joined #ruby
<LadyRainicorn> But you should probably be using an array.
<alex88> LadyRainicorn: yeah I thought that, since the elem* things are always the same
<alex88> I could just each that array and call that
stonevil___ has quit [Quit: Computer has gone to sleep.]
<alex88> thanks for the tip!
<LadyRainicorn> Also you might like Struct.
stonevil___ has joined #ruby
Bumptious has quit [Remote host closed the connection]
Roxja has joined #ruby
Bumptious has joined #ruby
mikepack has joined #ruby
havenwood has joined #ruby
benlieb has quit [Quit: benlieb]
stonevil___ has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 245 seconds]
streblo1 has joined #ruby
drumusician has quit [Read error: Operation timed out]
shredding has quit [Read error: Connection reset by peer]
raphaelivan has joined #ruby
hamakn has joined #ruby
shredding has joined #ruby
_bart has joined #ruby
streblo1 has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
stonevil___ has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hamakn has quit [Ping timeout: 245 seconds]
rm__ has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
sensen has quit [Quit: leaving]
nari has joined #ruby
axsuul has joined #ruby
prc has quit [Ping timeout: 265 seconds]
mojombo has quit [Ping timeout: 245 seconds]
rm__ has quit [Ping timeout: 272 seconds]
Hanmac has quit [Remote host closed the connection]
Hanmac has joined #ruby
danshultz has joined #ruby
_bart has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has joined #ruby
_bart has joined #ruby
Hanmac has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
dangerousdave has joined #ruby
Xeago has joined #ruby
withnale has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
Xeago_ has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
sikor_sxe has joined #ruby
JasmeetQA1 has quit [Ping timeout: 248 seconds]
<sikor_sxe> hello, can i use proc composition with .first?
nari has quit [Ping timeout: 248 seconds]
_bart has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
<sikor_sxe> in map i can use "&:first" and it works, however i am not able to compose functions like this. "firstIsAString = isAString * &:first" (the proc class has been extended by the * operator)
lxsameer has joined #ruby
_bart has joined #ruby
brian___ has joined #ruby
withnale has joined #ruby
<whowantstolivefo> does anyone around used shoes.rb ?
drumusician has joined #ruby
<dachi> whowhatstolivefo #shoes
<whowantstolivefo> dachi: thank you
Wolland has joined #ruby
garybrett has joined #ruby
fedesilva has joined #ruby
<LadyRainicorn> When did Proc get *?
<LadyRainicorn> At 2.1.0 it doesn't work.
garybrett has quit [Client Quit]
chrisan has joined #ruby
garybrett has joined #ruby
Hanmac has joined #ruby
<sikor_sxe> LadyRainicorn, i extended it myself
fedesilv_ has quit [Ping timeout: 245 seconds]
<LadyRainicorn> Ah I see.
relix has joined #ruby
garybrett has quit [Client Quit]
<LadyRainicorn> &:first only works in method calls.
<LadyRainicorn> (& is actually passing it as the block)
garybrett has joined #ruby
<sikor_sxe> "firstIsAString = isAString * :first.to_proc" works seems to work :/
<LadyRainicorn> You need to use .to_proc for that to work.
<sikor_sxe> ahhh :)
<sikor_sxe> block/proc fuzzyness, sry i am new to ruby
<LadyRainicorn> Alternatively, isAString.*(&:first)
<LadyRainicorn> (only if you accept a block will that work, though)
tesuji has joined #ruby
dr0ff has joined #ruby
zeeraw has joined #ruby
havenwood has joined #ruby
tobago has joined #ruby
nhhagen has joined #ruby
EngierkO has joined #ruby
_bart has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
supersym has joined #ruby
_bart_ has joined #ruby
Hanmac1 has joined #ruby
danshultz has joined #ruby
nari has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
streblo1 has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
ndrei has joined #ruby
pabloh has joined #ruby
shredding has quit [Quit: shredding]
streblo1 has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
puppeh has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<puppeh> anyone here used tmm1's oobgc?
<puppeh> for 2.1
thumpba has joined #ruby
kamsky has joined #ruby
edbond has joined #ruby
bricker has joined #ruby
brennanMKE has joined #ruby
rushed has quit [Quit: rushed]
thomasxie has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<kamsky> hi guys, I installed RVM in a fresh linux VM. Then I installed the latest version of ruby and just in case an old 1.9.3 one. After creating a new gemset I went ahead and installed Ciphersurfer (https://github.com/thesp0nge/ciphersurfer), no errors and it seemed to install all the dependencies (including rainbow). But when I try to run it it keeps s
<kamsky> aying the color method is undefined (it belongs to the rainbow gem). I've tried running IRB, requiring rainbow (successfully) and then calling that method and I get the same error.. any idea?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
thumpba has quit [Read error: Operation timed out]
doodlehaus has quit [Remote host closed the connection]
<edbond> kamsky, post error and gem versions
<edbond> I meant backtrace
angusiguess has joined #ruby
zxq9 has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
sk87 has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
EngierkO has quit [Read error: Connection timed out]
EngierkO has joined #ruby
Xeago has joined #ruby
<kamsky> edbond:antonio@Mint-x64-Dev ~/Desktop/ciphersurfer $ irb
<kamsky> 1.9.3-p484 :001 > require 'rainbow'
<kamsky> => true
<kamsky> from (irb):2
<kamsky> NoMethodError: undefined method `color' for "red":String
<kamsky> 1.9.3-p484 :002 > puts "aa" + "red".color(:red)
<kamsky> from /home/antonio/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `<main>'
<kamsky> 1.9.3-p484 :003 > exit
nichtdiebohne has joined #ruby
rm__ has quit [Ping timeout: 248 seconds]
<edbond> kamsky, according to https://github.com/sickill/rainbow you need some Rainbow wrapper
<edbond> try Rainbow("hello").color(:yellow)
garybrett has quit [Quit: Leaving...]
akemrir has joined #ruby
<kamsky> hmmm, let me change that in the main gem and see if it works
rmorello has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
<edbond> kamsky, there is a colorize gem http://rdoc.info/github/fazibear/colorize
<edbond> that allows to "i'm red".red things
puppeh has left #ruby ["Leaving..."]
<kamsky> edbond:problem I didnt'write the Ciphersurfer gem, just trying to get it to work
<edbond> kamsky, oh, take a look also at https://github.com/sickill/rainbow#string-mixin
<edbond> and where does error happens in Ciphersurfer gem?
_bart_ has quit []
_bart has joined #ruby
<kamsky> averytime it calls the color function
dangerousdave has joined #ruby
<kamsky> just fixed it with the Rainbow('') thing
<kamsky> it works now
<kamsky> thx a lot
krz has quit [Quit: WeeChat 0.4.2]
<edbond> np
<edbond> kamsky, rainbow recently "disable string mixin by default" -> see https://github.com/sickill/rainbow/blob/master/Changelog.md#200-2014-01-24
<edbond> that's why is starts failing
<edbond> you may want to require that in your code before Ciphersurfer
<kamsky> that makes sense
<edbond> and create an issue for Ciphersurfer
ndrei has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
nateberkopec has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
<supersym> can anyone tell me the difference in asciidoc and asciidoctor in the way they terminate the stdin it receives?
<supersym> when I test it from the cli, both have the dash - as means of processing the asciidoc input
nettoweb has quit [Read error: Connection reset by peer]
<supersym> but asciidoctor terminates on ^D
<supersym> and asciidoc doesn't
<tamouse__> is this a ruby question?
<supersym> isn't it a ruby lib? :P
<tamouse__> i don't konw
<tamouse__> i thought asciidoc was a format
<supersym> haha ... well atleast as far as the gems go, trying to update the redmine plugin wrapper but its using open3 so thats why
max96at has joined #ruby
greenarrow has quit [Quit: 500]
vlad_sta_ has joined #ruby
nettoweb has joined #ruby
<supersym> asciidoc indeed is
<lectrick> Can anyone explain what happens when a process with an open socket is forked? What happens to that socket and how is it not clobbered by child processes?
<lectrick> Is there like an automatic mutex on the socket?
verywiseman has joined #ruby
<lectrick> or the file descriptor, whatever?
<supersym> I don't think that is a good idea
vlad_sta_ has quit [Remote host closed the connection]
<LadyRainicorn> lectrick: No.
dr0ff has quit []
AlexRussia has quit [Remote host closed the connection]
griffindy has joined #ruby
<LadyRainicorn> It would be the same as if you used a thread.
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
<tamouse__> when you fork, the child process has it's own copy of the parent's descriptors
brennanMKE has joined #ruby
AlexRussia has joined #ruby
<lectrick> LadyRainicorn: Basically, my question is "how does Unicorn not have to manage socket access at the process level" lol. I believe it takes advantage of unix-layer stuff...
<tamouse__> there are no mutexes
<lectrick> so 2+ processes could read from or write to the socket at the same time and clobber each other?
<bahar> hey guys, i'm stumped on something... how do i extract numbers from a bigger number... say, if i had 3962 and i wanted just the first 2 characters, 39 (or the last 2 characters, 62)? first thing i tried 3962[0..1] which obviously didn't work, and a bunch of other tries after that didn't work either. any suggestions?
<LadyRainicorn> lectrick: Yes.
tkuchiki has joined #ruby
<tamouse__> bahar: make it into a string first?
<LadyRainicorn> bahar: 3692.div(10**2)
<tamouse__> or the mathsy way
<LadyRainicorn> Or, more generally, x.div(10**(Math.log(x, 10).ceil-2))
<bahar> i tried that, this way: .to_s.scan(/\d/).map {|i| i.to_i} but that was no go
kamsky has left #ruby [#ruby]
<bahar> .div(10**2) works though, returns 39
<LadyRainicorn> (The first one will only work on 4 digit numbers btw.)
stonevil___ has quit [Read error: Connection reset by peer]
Liothen has joined #ruby
angusigu1ss has joined #ruby
stonevil___ has joined #ruby
<tamouse__> >> 1234.to_s.scan(/\d/).count
<eval-in> tamouse__ => 4 (https://eval.in/98999)
<tamouse__> >> 1234.to_s.scan(/\d{,2}/).count
<eval-in> tamouse__ => 3 (https://eval.in/99000)
brennanMKE has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 250 seconds]
<tamouse__> >> 1234.to_s.scan(/\d{,2}/)
<eval-in> tamouse__ => ["12", "34", ""] (https://eval.in/99001)
<tamouse__> huh
chipotle has quit [Quit: cya]
<tamouse__> >> 1234.to_s.scan(/\d{2}/)
<eval-in> tamouse__ => ["12", "34"] (https://eval.in/99002)
<LadyRainicorn> Making it into a string is stupid.
nateberkopec has quit [Quit: Leaving...]
<LadyRainicorn> It's not a string question.
raphaelivan has quit [Quit: Leaving.]
<tamouse__> might be
greenarrow has joined #ruby
<bahar> 3962.div(10**2)
<LadyRainicorn> bahar: x.div(10**(Math.log(x, 10).ceil-2)) if you want it to work on anything but 4 digit numbers.
<tamouse__> depends on how the result is to be used
angusiguess has quit [Ping timeout: 260 seconds]
obs has joined #ruby
charliesome has joined #ruby
ndrei has joined #ruby
<bahar> what about the last 2 digits?
obs has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<LadyRainicorn> x % 1e2
<lectrick> I don't think a string conversion is necessarily "bad" just because you can do it with math. I think it's based on the question and if the question is "the first 2 characters" or "the last 2 characters", that's a very string-y problem.
<LadyRainicorn> Err, 10**2
mikepack has joined #ruby
<LadyRainicorn> Do you want a string or a number as the result?
tvw has quit [Ping timeout: 250 seconds]
<bahar> a number
<bahar> if i got a string i'd have convert it back to a fixnm
<LadyRainicorn> Then converting it to a string is bad.
<tamouse__> then maths
<LadyRainicorn> Also log is a cheaper than to_s.
yalue has joined #ruby
tvw has joined #ruby
Dude007 has joined #ruby
<bahar> sorry, LadyRainicorn, 10**2?
<LadyRainicorn> 100
<LadyRainicorn> (1e2 would return a float)
<bahar> div(10**(Math.log(x, 10).ceil-2)) works on 4 digit numbers too
<bahar> returns the first two numbers
<bahar> still trying to figure out last two
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 272 seconds]
<tamouse__> >> 1234.module(10**2)
<eval-in> tamouse__ => undefined method `module' for 1234:Fixnum (NoMethodError) ... (https://eval.in/99005)
<tamouse__> heh
<tamouse__> >> 1234.modulo(10**2)
<eval-in> tamouse__ => 34 (https://eval.in/99006)
<tamouse__> muscle memory
<bahar> math ninja
<tamouse__> not really
blaxter has quit [Ping timeout: 260 seconds]
<bahar> compared to me
<tamouse__> i would still be working on the general form
bricker`LA has quit [Read error: Operation timed out]
<LadyRainicorn> def first_digits(num, places) l=Math.log(num, 10).ceil; l>places ? num.div(10**(l-places)) : num; end
<bahar> .modulo(10**2) works perfect
<LadyRainicorn> def last_digits(num, places) num % 10**places; end
<LadyRainicorn> bahar: modulo gives the last digits.
nhhagen has quit [Remote host closed the connection]
<LadyRainicorn> First requires the more complex one with log I gave.
<bahar> i thought it gave the remainder?
<LadyRainicorn> That's the same thing.
<LadyRainicorn> (well, if 10**digits)
<LadyRainicorn> You can replace 10 for any other base and these still work.
<bahar> ahhhhh
<bahar> awesome. thanks
nhhagen has joined #ruby
srji_ has quit [Quit: leaving]
catphish has joined #ruby
nhhagen has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
ixti has joined #ruby
<supersym> Ooh.... 'pry' is really nice ^^
berkes has joined #ruby
<catphish> i'm having trouble with remote port forwards not working in net::ssh, i can't explain the problem very well, there are no exceptions raised, but the forwarding just doesn't get started, local forwarding works fine, and the same remote forward works fine using command line ssh
popl has quit [Read error: Operation timed out]
havenwood has joined #ruby
dweeb_ has joined #ruby
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
nhhagen has joined #ruby
nichtdiebohne has joined #ruby
<catphish> the net::ssh documentation says "If the remote server is not able to begin the listener for this request, an exception will be raised asynchronously." but i don't know how to receive the exception (if there is one)
stonevil___ has quit [Quit: Computer has gone to sleep.]
stonevil___ has joined #ruby
nhhagen has quit [Remote host closed the connection]
TheLarkInn has joined #ruby
nhhagen has joined #ruby
<TheLarkInn> Anyone a fan of the HTTP request and parse gem Mechanize?
hetre85 has joined #ruby
mehlah has joined #ruby
<tamouse__> i use it a bit
<TheLarkInn> I've got an api I want to test out but requires I set a header variable X-API-VERSION to 2.
streblo1 has joined #ruby
<TheLarkInn> Have you ever done this before?
<tamouse__> sorry, no
sepp2k has joined #ruby
<TheLarkInn> Yeah I wasn't too sure myself.
decoponio has joined #ruby
<TheLarkInn> I saw agent.headers=
IceyEC has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<TheLarkInn> but it doesn't work like I expected
pabloh has quit [Ping timeout: 245 seconds]
_bart has quit [Remote host closed the connection]
shredding has joined #ruby
<TheLarkInn> "curl -u LOGIN:API_KEY -H X-API-Version:VERSION URL"
redintellect has joined #ruby
<TheLarkInn> this would be the curl format,
<TheLarkInn> I'm guessing there is some way to specify it with mechanize
<tamouse__> i think you want request_headers, not headers
<tamouse__> not sure, tho
<redintellect> Hi. sorry to bother you, I need some resource to start learning ruby, what do you suggest?
stonevil___ has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<TheLarkInn> oh yeah request_headers, sorry yeah
maximski has joined #ruby
danijoo has joined #ruby
<tamouse__> redintellect: what is your general history with programming?
<TheLarkInn> well it looks like a hash so maybe I set the X-API-VERSION as a string key
<tamouse__> that should do it, TheLarkInn
<redintellect> tamouse__, I have python, c and c++ experience.
iMe_away is now known as iMe
<TheLarkInn> Sweet it worked tamouse__ thanks for the encouragement
<tamouse__> sure
streblo1 has quit [Ping timeout: 260 seconds]
<tamouse__> redintellect: i'd avoid the hand-holding sites like codeacademy, etc
<TheLarkInn> I always suggest www.codecademy.com, it might start iff slow for the existing programmer, but there are some core concepts which I believe everyone should revisit.
<TheLarkInn> BAHAH
<tamouse__> go for the pickaxe book, latest edition
<TheLarkInn> we said opposite things at the same time
_bart has joined #ruby
<tamouse__> my main issue with those sites is that you must enter *exactly* what they expect
<tamouse__> even though what you enter may be correct and even better ruby
<tamouse__> they're just robots
<redintellect> I see.
brian___ has quit [Quit: brian___]
<tamouse__> but, really, that's entirely my personal opinion based upon how i learn
<TheLarkInn> Oh yeah, I agree with you tamouse__
<tamouse__> so do take that with a huge grain of salt
Wolland has quit [Remote host closed the connection]
<TheLarkInn> Or just understand that since you are coming from c, c+, and python that there are 13124124 magical ways of doing the same thing in ruby
<redintellect> I see.
<TheLarkInn> I find that for me, I have always wanted use the language to accomplish something, so is there something specifically you want to accomplish?
<redintellect> Thank you for your help.
RaCx has joined #ruby
<TheLarkInn> np
berkes has quit [Quit: Ex-Chat]
Wolland has joined #ruby
pabloh has joined #ruby
nhhagen_ has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Squarepy has quit [Read error: Connection reset by peer]
tyl has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
rm__ has joined #ruby
nszceta has joined #ruby
fedesilva has quit [Remote host closed the connection]
nhhagen_ has quit [Remote host closed the connection]
nhhagen has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bean has joined #ruby
jkamenik has joined #ruby
rm__ has quit [Ping timeout: 272 seconds]
mehlah has quit [Quit: Leaving...]
nhhagen has quit [Remote host closed the connection]
marcoecc has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
yasushi has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Lewix has quit [Remote host closed the connection]
nfk has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
[krisbulman] is now known as krisbulman
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
russt_ has joined #ruby
russt_ has quit [Client Quit]
poulson has quit [Read error: Operation timed out]
DaniG2k has quit [Quit: leaving]
mark_locklear has joined #ruby
TheLarkInn has left #ruby [#ruby]
agjacome has joined #ruby
poulson has joined #ruby
jle` has quit [Ping timeout: 248 seconds]
phansch has joined #ruby
razibog has quit [Ping timeout: 245 seconds]
LadyRainicorn has quit [Ping timeout: 245 seconds]
aryaching has quit []
stringoO has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
brennanMKE has joined #ruby
vlad_starkov has joined #ruby
Roxja has quit [Quit: Roxja]
Dwarf has quit [Ping timeout: 265 seconds]
xiphiasx1 has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 246 seconds]
echevemaster has joined #ruby
aq has joined #ruby
phansch_ has joined #ruby
Megtastique has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
akemrir has quit [Quit: WeeChat 0.4.2]
brennanMKE has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
mforrester has joined #ruby
Xeago has joined #ruby
phansch__ has joined #ruby
Xeago_ has joined #ruby
Asher has quit [Quit: Leaving.]
<aq> Hello everyone. So I'm working on a little project trying to pick up ruby and I'm getting an error on lines 18 and 24 saying "unexpected tIDENTIFIER, expecting keyword_end". I think I have all my ends in the right place though. I stripped the function down to basically nothing but still get the error. Anyone wanna point out where I'm screwing up? http://pastebin.com/qeQVa55L
xiphiasx_ has joined #ruby
kaldrenon has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
phansch__ is now known as phansch
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
<elaptics> aq: you can't start variable names with a number
phansch_ has quit [Ping timeout: 252 seconds]
<elaptics> change your 3x3 variable name to something else
dreamchaser has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 260 seconds]
dblessing has joined #ruby
<aq> Oh, wow, thanks elaptics! That was dumb of me. I just kept looking at the "end"s trying to figure out why the error was talking about that.
<aq> Thanks!
<elaptics> np :)
albertgrala has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
fedesilva has joined #ruby
slowcon has joined #ruby
dreamchaser has joined #ruby
dreamchaser is now known as Guest23455
endash has joined #ruby
coder_neo has joined #ruby
byaruhaf has quit [Ping timeout: 250 seconds]
coder_neo has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
Bumptious has quit [Read error: Connection reset by peer]
yacks has quit [Quit: Leaving]
Bumptious has joined #ruby
ndrei has joined #ruby
sree has joined #ruby
stonevil___ has joined #ruby
EngierkO has quit [Remote host closed the connection]
bricker has joined #ruby
Dwarf has joined #ruby
postmodern has quit [Quit: Leaving]
slowcon has quit [Quit: slowcon]
jlast has joined #ruby
stonevil___ has quit [Client Quit]
havenwood has joined #ruby
ffranz has joined #ruby
stonevil___ has joined #ruby
sree has quit []
nettoweb has quit [Quit: nettoweb]
[gmi] has quit [Read error: Connection reset by peer]
bricker has quit [Read error: Operation timed out]
EngierkO has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
makara has quit [Read error: Operation timed out]
jsilver has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ktosiek has quit [Read error: Operation timed out]
ktosiek has joined #ruby
streblo1 has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
no0code has joined #ruby
<no0code> hey people
<no0code> greetings :)
EngierkO has joined #ruby
<shevy> aq the error handling in ruby is not very good
havenwood has quit [Ping timeout: 248 seconds]
<no0code> is datamapper (datamapper.org) still useable?
<shevy> aq btw "if fill == true" is cleaner to be written as "if fill"
<no0code> or is there a newer, better project?
[gmi] has joined #ruby
<aq> thanks shevy!
stonevil___ has quit [Quit: Computer has gone to sleep.]
mforrester has quit [Quit: Leaving]
<no0code> can someone tell me how i find data in a complex datamapper dataset?
tolbakh has joined #ruby
stonevil___ has joined #ruby
sk87 has joined #ruby
krisbulman is now known as [krisbulman]
mavcunha has joined #ruby
<workmad3> no0code: datamapper2 got renamed as ROM (ruby object mapper) and is currently in development, I believe
redintellect has left #ruby ["Ex-Chat"]
<no0code> is rom stable to use?
<workmad3> no0code: pass... I've yet to use it
streblo1 has quit [Ping timeout: 260 seconds]
<no0code> on their page is no documentation
<no0code> so i stay at datamapper
EngierkO has quit [Ping timeout: 248 seconds]
<no0code> can someone tell me how i find a datasend in a nested dataset with has n and belongs to?
TejasDinkar has joined #ruby
[krisbulman] is now known as krisbulman
nhhagen has quit [Remote host closed the connection]
gja has quit [Ping timeout: 272 seconds]
krisbulman is now known as krisbulman|afk
chipotle has joined #ruby
nateberkopec has joined #ruby
EngierkO has joined #ruby
banister has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
tjr9898 has joined #ruby
EngierkO has joined #ruby
MindfulMonk has joined #ruby
angusigu1ss has quit [Ping timeout: 246 seconds]
sree has joined #ruby
rm__ has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
EngierkO has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
chipotle_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
zeeraw has joined #ruby
endash has quit [Quit: endash]
claymore has quit [Ping timeout: 252 seconds]
rm__ has quit [Ping timeout: 250 seconds]
EngierkO has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
EngierkO has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
sree_ has joined #ruby
sree has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 260 seconds]
sree_ is now known as Guest2760
Guest2760 has quit [Client Quit]
jonahR has joined #ruby
rh1n0 has joined #ruby
sergicles has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
EngierkO has quit [Ping timeout: 250 seconds]
Astralum has quit [Ping timeout: 248 seconds]
maximski has quit [Ping timeout: 252 seconds]
EngierkO has joined #ruby
jerius has joined #ruby
zachallett has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<whowantstolivefo> is there any tool else like shoesrb or hackety-hack ?
mikepack has joined #ruby
krisbulman|afk is now known as [krisbulman|afk]
claymore has joined #ruby
endash has joined #ruby
snooc has joined #ruby
coder_neo has joined #ruby
mikepack_ has joined #ruby
[krisbulman|afk] is now known as krisbulman
mlpinit has joined #ruby
iMe is now known as iMe_away
hamakn has joined #ruby
tvw has quit []
fantazo has joined #ruby
nism has quit [Remote host closed the connection]
aryaching has joined #ruby
havenwood has joined #ruby
himsin has quit [Quit: himsin]
ndrei has joined #ruby
mikepack_ has quit [Ping timeout: 260 seconds]
browndawg has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
hamakn has quit [Ping timeout: 250 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
arietis has joined #ruby
drumusician has joined #ruby
momomomomo has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
`petey` has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
fgo has quit [Remote host closed the connection]
johnmilton has joined #ruby
burlyscudd has joined #ruby
johnmilton has quit [Max SendQ exceeded]
tyl has joined #ruby
bigmac is now known as i8igmac
endash has quit [Quit: endash]
|PiP| has joined #ruby
johnmilton has joined #ruby
ndrei has quit [Read error: Operation timed out]
stonevil___ has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
yasushi has quit [Remote host closed the connection]
iMe_away is now known as iMe
Davey has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
fedesilv_ has joined #ruby
EngierkO has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
failshell has joined #ruby
drumusician has quit [Remote host closed the connection]
fedesil__ has joined #ruby
EngierkO has joined #ruby
drumusician has joined #ruby
elementz has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
ndrei has joined #ruby
fedesilva has quit [Ping timeout: 260 seconds]
drumusician has quit [Remote host closed the connection]
fedesilv_ has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
nism has joined #ruby
evilbug has joined #ruby
EngierkO has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
pu22l3r has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Asher has joined #ruby
sambao21 has joined #ruby
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
axsuul has joined #ruby
tongcx_ has joined #ruby
EngierkO has joined #ruby
streblo1 has joined #ruby
`petey` has quit [Remote host closed the connection]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
DaniG2k has joined #ruby
`petey` has joined #ruby
EngierkO_ has joined #ruby
rm__ has joined #ruby
tjr9898 has quit []
ctp has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
dkamioka has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
drumusician has quit [Ping timeout: 246 seconds]
EngierkO has quit [Ping timeout: 245 seconds]
`petey` has quit [Read error: Connection reset by peer]
`petey`_ has joined #ruby
streblo1 has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
elementz has joined #ruby
EngierkO has joined #ruby
angusigu1ss has joined #ruby
rudisimo has joined #ruby
EngierkO_ has quit [Ping timeout: 252 seconds]
lmickh has joined #ruby
ndrei has joined #ruby
razibog has joined #ruby
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
Kricir has joined #ruby
<waxjar> would this be an acceptable way to do mocking / #expects thingies? https://gist.github.com/britishtea/8864541
EngierkO_ has joined #ruby
mansi has joined #ruby
Hanmac has joined #ruby
EngierkO has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
EngierkO has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
bleak has joined #ruby
x77686d has joined #ruby
IceDragon has joined #ruby
EngierkO_ has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 250 seconds]
ddpunk has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Remote host closed the connection]
mrsolo has joined #ruby
speakingcode has quit [Ping timeout: 260 seconds]
EngierkO_ has joined #ruby
i8igmac has quit [Ping timeout: 245 seconds]
tongcx_ has quit [Quit: leaving]
Emmanuel_Chanel has joined #ruby
tylersmith has joined #ruby
EngierkO has quit [Ping timeout: 245 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Astralum has joined #ruby
EngierkO has joined #ruby
slowcon has joined #ruby
snath has quit [Ping timeout: 246 seconds]
<slowcon> morning guys
arietis has quit [Quit: Computer has gone to sleep.]
<Astralum> slowcon, good day
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
mrsolo has quit [Client Quit]
nomenkun has joined #ruby
Engierk__ has joined #ruby
EngierkO_ has quit [Ping timeout: 245 seconds]
stonevil___ has joined #ruby
bean has joined #ruby
rayners has joined #ruby
brennanMKE has joined #ruby
EngierkO has quit [Ping timeout: 245 seconds]
phutchins has quit [Ping timeout: 246 seconds]
enape_101 has joined #ruby
dkamioka has quit [Remote host closed the connection]
v0n has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Engierk__ has quit [Ping timeout: 245 seconds]
EngierkO has joined #ruby
stonevil___ has quit [Ping timeout: 245 seconds]
phantasm66 has quit [Quit: *poof*]
Davey has quit [Quit: Computer has gone to sleep.]
razibog has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby
mikepack has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
EngierkO has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
griffindy has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
msuszczy has quit [Quit: leaving]
salmon_ has joined #ruby
einarj has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
Kneferilis has quit [Ping timeout: 245 seconds]
<salmon_> hello, do you know similar library to https://github.com/liufengyun/hashdiff which works on ruby 1.8 ?
tagrudev has quit [Quit: Me = Awesome]
bigmac has joined #ruby
bigmac is now known as i8igmac
nism has quit [Ping timeout: 260 seconds]
EngierkO has quit [Ping timeout: 248 seconds]
Xeago_ has quit [Remote host closed the connection]
<slowcon> Astralum: hows your day so far
EngierkO has joined #ruby
<kiba> George VI even volunteered to join the army to take part in the Normandy landings, although this was mostly a Batman Gambit to stop Churchill using his Prime Ministerial authority to reactivate his own commission and have himself ordered to take part.
<kiba> O_o
hobodave has joined #ruby
<kiba> Edward II of England would hunt down bandits personally, on one occasion challenging a bandit leader to a joust, on condition that if the bandit lost he would give up his life of crime. The king won. Ultimately, however, he was more interested in bricklaying than fighting, and ended up being deposed and probably murdered.
nhhagen has joined #ruby
Noldorin has joined #ruby
zachallett has quit [Remote host closed the connection]
EngierkO has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
i8igmac has quit [Ping timeout: 252 seconds]
jfoy has joined #ruby
EngierkO has joined #ruby
<cout> what is a batman gambit?
heftig has quit [Quit: Quitting]
edbond has left #ruby ["Leaving"]
jprovazn is now known as jprovazn_bbl
parduse has quit [Ping timeout: 245 seconds]
coder_neo has quit [Quit: This computer has gone to sleep]
jfoy has quit [Client Quit]
sergicles has quit [Quit: sergicles]
parduse has joined #ruby
zachallett has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
TejasDinkar has quit [Quit: This computer has gone to sleep]
EngierkO has joined #ruby
<kiba> cout: whoops wrong channel. Look up batman gambit in tvtropes
jfoy has joined #ruby
Es0teric has joined #ruby
deception has joined #ruby
IceDragon has joined #ruby
Hobogrammer has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
freeone3000 has joined #ruby
puppeh has joined #ruby
bricker has joined #ruby
_bart has quit [Remote host closed the connection]
joonty_ has joined #ruby
EngierkO has quit [Ping timeout: 248 seconds]
stryek has joined #ruby
dkamioka has joined #ruby
baordog has joined #ruby
arya_ has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby
EngierkO has joined #ruby
arya_ is now known as aryaching_
aryaching_ has quit [Client Quit]
sski has quit [Remote host closed the connection]
joonty_ has quit [Client Quit]
endash has joined #ruby
arya_ has joined #ruby
fedesil__ has quit [Remote host closed the connection]
sski has joined #ruby
arya_ is now known as aryaching_
joonty has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
aryaching_ is now known as aryaching
ddpunk has joined #ruby
snath has joined #ruby
Spami has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
stonevil___ has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 250 seconds]
fedesilva has joined #ruby
EngierkO has joined #ruby
razibog has joined #ruby
pwh has joined #ruby
speakingcode has joined #ruby
daxroc has joined #ruby
stef_204 has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
maasha has quit [Ping timeout: 245 seconds]
stonevil___ has quit [Client Quit]
sski has quit [Ping timeout: 272 seconds]
stonevil___ has joined #ruby
ndrei has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
kenndel has joined #ruby
DrCode has quit [Remote host closed the connection]
EngierkO has quit [Ping timeout: 248 seconds]
aryaching has quit []
Solnse has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
`petey`_ has quit [Remote host closed the connection]
EngierkO has joined #ruby
i_s has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
chipotle_ has quit [Quit: cya]
Es0teric has quit [Quit: Computer has gone to sleep.]
DrCode has joined #ruby
aryaching has joined #ruby
stonevil___ has quit [Ping timeout: 260 seconds]
Vivekananda has joined #ruby
phutchins has joined #ruby
larissa has quit [Quit: Leaving]
jrobertfox has joined #ruby
Noldorin has quit []
IceDragon has joined #ruby
Noldorin has joined #ruby
`petey`_ has joined #ruby
EngierkO has quit [Ping timeout: 260 seconds]
alex88 has quit [Quit: Leaving...]
EngierkO has joined #ruby
dangerousdave has joined #ruby
noop has quit [Ping timeout: 260 seconds]
<linduxed> is there no difference between %w[] and %w() ?
jlebrech has quit [Quit: Konversation terminated!]
streblo1 has joined #ruby
DrCode has quit [Remote host closed the connection]
sikor_sxe has quit [Quit: Verlassend]
EngierkO has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
aryaching has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ddpunk has quit [Remote host closed the connection]
EngierkO has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<Uranio> irb(main):020:0> %w(1 "algo" Time.now)==%w[1 "algo" Time.now]
<Uranio> => true
andikr has quit [Remote host closed the connection]
<Uranio> I guest the answer is "NO" :-/
streblo1 has quit [Ping timeout: 272 seconds]
chrisramon has joined #ruby
sk87 has joined #ruby
mlpinit_ has joined #ruby
EngierkO has quit [Ping timeout: 248 seconds]
codeFiend has joined #ruby
_maes_ has joined #ruby
mlpinit_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
angusigu1ss has joined #ruby
bal has quit [Quit: bal]
EngierkO has joined #ruby
ixti has quit [Read error: Operation timed out]
mlpinit_ has joined #ruby
drumusician has joined #ruby
nomenkun_ has joined #ruby
nomenku__ has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 260 seconds]
zz_jrhorn424 is now known as jrhorn424
mavcunha has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 260 seconds]
flujan has joined #ruby
zeeraw has quit [Quit: Textual IRC Client: www.textualapp.com]
EngierkO has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
drumusician has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 265 seconds]
nomenkun_ has quit [Ping timeout: 260 seconds]
EngierkO has joined #ruby
einarj has joined #ruby
mikepack has quit [Remote host closed the connection]
kleinerdrache has joined #ruby
<flujan> hello guys. I wrote a simple app that receive connection on port 25000 and subscribe it to a Channel. I use a server on port 26000 to connect, and send messages to the 25000 subscribers... http://pastie.org/8709155
<flujan> sometimes during the day, the server just stop sending data to the subscribers... how can I debug it?
Sir_Funk has joined #ruby
senj has joined #ruby
<jsilver> logs
<flujan> I am using event machine. Do you use it or recommend other software?
nomenkun_ has joined #ruby
<jsilver> log when everything is done
<jsilver> then when something breaks
ahawkins has quit [Remote host closed the connection]
<jsilver> go to the string next to what broke
<jsilver> directly before or after
<jsilver> then find the silently failing line
<jsilver> gl
pr0ggie has joined #ruby
<jsilver> yes, I mean to add log lines EVERYWHERE
<jsilver> as conservatively or liberally as you want
hobodave has quit [Read error: Connection reset by peer]
<jsilver> not literally every line
aryaching has joined #ruby
nomenku__ has quit [Ping timeout: 252 seconds]
<jsilver> unless you want to
nomenk___ has joined #ruby
hobodave has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
EngierkO has joined #ruby
DrCode has joined #ruby
mikepack has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 260 seconds]
shaunbaker has quit [Remote host closed the connection]
bleak has quit [Ping timeout: 265 seconds]
Uranio has quit [Quit: WeeChat 0.3.2]
chrisbolton has joined #ruby
mikepack_ has joined #ruby
nomenkun_ has quit [Ping timeout: 248 seconds]
albertgrala has quit [Quit: Leaving]
hamakn has joined #ruby
jobewan has joined #ruby
nhhagen has joined #ruby
wallerdev has quit [Quit: wallerdev]
nomenk___ has quit [Ping timeout: 248 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chrisbolton> Trying to solve a kata and having trouble the test is seven(plus(five)) should return 12. But aliasing plus isn't working out as easy as I'd hoped. This is what I was thinking but it's not working ... https://gist.github.com/Iknewthisguy/8866186
<chrisbolton> Any help would be appreciated.
EngierkO has quit [Ping timeout: 248 seconds]
stonevil___ has joined #ruby
enape_101 has quit [Ping timeout: 245 seconds]
dkamioka has quit [Remote host closed the connection]
EngierkO has joined #ruby
nhhagen_ has joined #ruby
robbyoconnor has joined #ruby
bleak has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
shaunbaker has joined #ruby
mikepack_ has quit [Ping timeout: 248 seconds]
nhhagen_ has quit [Read error: Operation timed out]
Xeago has joined #ruby
gja has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Client Quit]
sabooky has quit [Quit: Page closed]
drumusician has quit [Remote host closed the connection]
malthe has quit [Ping timeout: 260 seconds]
drumusician has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EngierkO has quit [Ping timeout: 260 seconds]
<havenwood> >> def plus n; self + n end; [5.plus(5), 'this'.plus(' as well')]
<eval-in> havenwood => private method `plus' called for 5:Fixnum (NoMethodError) ... (https://eval.in/99054)
EngierkO has joined #ruby
fieldfirst has joined #ruby
<chrisbolton> That's the same problem I was getting.
<chrisbolton> Private method plus
<havenwood> chrisbolton: When you monkey patch, don't do it in `main`.
razibog has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
OdNairy has joined #ruby
_bart has joined #ruby
<chrisbolton> I was testing in irb. Is that my problem?
<havenwood> chrisbolton: so if you want to monkey patch a core class like Fixnum, go inside the class first: class Fixnum; def plus n end
pfg has joined #ruby
stonevil___ has quit [Ping timeout: 260 seconds]
jfoy has quit [Quit: jfoy]
<chrisbolton> havenwood: Awesome. Thanks. I'm going to go test. I appreciate your help.
coder_neo has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
MindfulMonk has quit [Ping timeout: 248 seconds]
EngierkO has joined #ruby
tjr9898 has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
b3h3m0th has joined #ruby
b3h3m0th is now known as _root_
jrhorn424 is now known as zz_jrhorn424
_root_ is now known as __root__
__root__ is now known as _r00t_
drumusician has quit [Remote host closed the connection]
_r00t_ is now known as __r00t__
bigmac has joined #ruby
troessner has quit [Quit: Leaving]
drumusician has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
tjaco has joined #ruby
Kricir_ has joined #ruby
elementz has quit [Ping timeout: 245 seconds]
LadyRainicorn has joined #ruby
<havenwood> flujan: Might want to look at kgio or nio4r and Celluloid::IO.
EngierkO has quit [Ping timeout: 248 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
duggiefresh has joined #ruby
nomenkun has joined #ruby
freeone3000 has left #ruby ["Konversation terminated!"]
<havenwood> linduxed: [] and () are just two of many options, you can even do evil things like using a whitespace to begin and end.
Kricir has quit [Read error: Operation timed out]
zz_jrhorn424 is now known as jrhorn424
EngierkO has joined #ruby
banister has joined #ruby
ayaz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
marcoecc has joined #ruby
marcoecc is now known as Guest57197
x77686d has quit [Quit: x77686d]
robert___ has joined #ruby
<havenwood> >> %s omgwtfbbq
<eval-in> havenwood => /tmp/execpad-7f34bae6f7fe/source-7f34bae6f7fe:3: syntax error, unexpected tCONSTANT, expecting keyword_end (https://eval.in/99060)
Guest57197 has quit [Client Quit]
mansi_ has joined #ruby
<LadyRainicorn> haha
<havenwood> Well, foiled by evail-in, but it works. :P
<havenwood> #=> :omgwtfbbq
<LadyRainicorn> I wonder why it doesn't work.
b00stfr3ak has joined #ruby
tylersmith has quit [Remote host closed the connection]
<havenwood> LadyRainicorn: charliesome must strip whitespace off the end?
<havenwood> LadyRainicorn: usually you don't have meaningful whitespace trailing... >.>
nomenkun has quit [Ping timeout: 245 seconds]
rubyracer has joined #ruby
tylersmith has joined #ruby
<LadyRainicorn> >> %s(&)
<eval-in> LadyRainicorn => :& (https://eval.in/99066)
EngierkO has quit [Ping timeout: 260 seconds]
fantazo has quit [Ping timeout: 246 seconds]
<LadyRainicorn> huh
<chrisbolton> havenwood or anyone else. I'm getting undefined method 'times' for main:Object. Still working on understanding what I'm doing wrong. https://gist.github.com/Iknewthisguy/8866186
<evilbug> what's the difference between single quotes and double quotes? is it just preference?
<havenwood> LadyRainicorn: A space in place of "(" and ")" will work in irb but not evil-in.
EngierkO has joined #ruby
<havenwood> evilbug: Just a stylistic preference. I prefer single unless interpolating as a general rule.
<havenwood> chrisbolton: #times is already taken, a peril of monkeypatching core classes
<linduxed> havenwood: thx for the info!
mlpinit_ has quit [Remote host closed the connection]
<LadyRainicorn> >> def s(y=5) y; end; 5 %s(3)
<eval-in> LadyRainicorn => 2 (https://eval.in/99067)
<havenwood> >> 3.times { puts 'I promise not to override existing core class methods!' }
<eval-in> havenwood => I promise not to override existing core class methods! ... (https://eval.in/99069)
<evilbug> havenwood: ok, thanks for that.
EngierkO_ has joined #ruby
<chrisbolton> havenwood: I wouldn't if it weren't for this freaking kata.
Kricir_ has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
stkowski has joined #ruby
jroes has joined #ruby
EngierkO has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
<jroes> hey yall, I need to override the definition of a module method within a block context, what's the best way to do that, some sort of define_method magic?
yasushi has quit [Remote host closed the connection]
<jroes> first attempt was something like def with_redefined; old_def = Module.method; Module.method = new_def; yield; ensure; Module.method = old_def; end
<jroes> but that didn't work out because method= is not defined
nomenkun_ has joined #ruby
EngierkO_ has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
stonevil___ has joined #ruby
Guest23455 is now known as dreamchaser
mrsolo has quit [Remote host closed the connection]
jonah_k has joined #ruby
EngierkO has joined #ruby
dreamchaser is now known as Guest47792
elementz has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<LadyRainicorn> Yes, define_method.
Xeago has quit [Remote host closed the connection]
nomenku__ has joined #ruby
mlpinit has joined #ruby
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
lepht has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
salmon_ has left #ruby [#ruby]
endash has quit [Quit: endash]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|PiP| has quit [Write error: Broken pipe]
senj has quit [Quit: Sleep Now]
lepht has joined #ruby
deception has quit [Quit: Goodbye]
burlyscudd has joined #ruby
nomenkun_ has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
x77686d has joined #ruby
EngierkO has quit [Ping timeout: 260 seconds]
Kricir has quit [Read error: Connection reset by peer]
<jroes> LadyRainicorn: hm, I was trying some things with it, but the module definition is pretty janky
nomenkun_ has joined #ruby
yarou has joined #ruby
Kricir has joined #ruby
mlpinit has quit [Read error: No route to host]
<LadyRainicorn> Alternatively, just reopen the module.
_bart has quit [Remote host closed the connection]
EngierkO has joined #ruby
<LadyRainicorn> (probably easier)
<jroes> module Module; FOO = ...; def FOO.bar; ...; end; end
_bart has joined #ruby
<jroes> if I reopen, do I just re-reopen in my ensure block?
user258467 has quit [Quit: Quitte]
Xeago_ has joined #ruby
dagobah has quit [Quit: Leaving...]
_bart has quit [Remote host closed the connection]
<jroes> s/do I/can I
senj has joined #ruby
<LadyRainicorn> Yes.
JustinAiken has joined #ruby
<jroes> well damn, shoulda done that in the first place. thankya :)
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<LadyRainicorn> (Be careful with dynamic method definition, however,as it can be unexpectedly bad for performance.)
_bart has joined #ruby
shaunbak_ has joined #ruby
DaniG2k has quit [Quit: leaving]
pitzips has joined #ruby
nomenku__ has quit [Ping timeout: 272 seconds]
mlpinit_ has joined #ruby
RaCx has joined #ruby
<havenwood> jroes: I think for sure be wary like LadyRainicorn says, but here is my pre-coffee stab: https://gist.github.com/havenwood/e9cd1e2bc719ae46d48c
zz_jrhorn424 is now known as jrhorn424
<jroes> ah cool. in this case this is just happening for testing something that needs a certain context
nomenkun has quit [Ping timeout: 252 seconds]
<jroes> havenwood: ah sweet, thanks!
nomenkun has joined #ruby
geggam has joined #ruby
<jroes> yeah apparently reopening isn't going to cut it: module definition in method body (SyntaxError)
Hobogrammer has joined #ruby
<havenwood> jroes: yeah, i'm guessing you'll indeed want to `ensure` etc
Xeago has quit [Ping timeout: 260 seconds]
EngierkO has quit [Ping timeout: 246 seconds]
binaryhat has joined #ruby
jmmoore has joined #ruby
<havenwood> jroes: no prob
mikecmpbll has quit [Quit: ciao.]
EngierkO has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
shredding has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
phutchins has quit [Quit: leaving]
nomenkun_ has quit [Ping timeout: 252 seconds]
<jroes> hum, I think your shot is pretty similar to my first attempt with define_method, but I think what's confusing is how to access something that is defined in that weird way I mentioned above
<jroes> module Module; FOO = ...; def FOO.bar; ...; end; end
streblo has joined #ruby
<jroes> what is the proper usage of method to get access to Module::FOO.bar
olivier_bK has quit [Ping timeout: 245 seconds]
shaunbak_ has quit [Remote host closed the connection]
shredding has joined #ruby
<__r00t__> I am not able include a ruby module by "require 'msf/core/constants'" . I am having a hard time replacing all include statements in config files with "require '/usr/share/metasploit-framework/lib/msf/core/constants'". Unfortunately, the script I am running is dependant on many modules. How do I fix this ?
bigmac has quit [Read error: Connection timed out]
<jroes> __r00t__: you probably need to fix the core of the problem, which is that your LOAD_PATH isn't set the way you need it
<jroes> a standard require '...' will look for ruby code in the LOAD_PATH
DrCode has joined #ruby
EngierkO has quit [Ping timeout: 248 seconds]
EngierkO has joined #ruby
puppeh has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
streblo has quit [Read error: Operation timed out]
daxroc has quit [Ping timeout: 260 seconds]
maximski has quit []
recurrence has joined #ruby
yarou has quit [Remote host closed the connection]
bigmac has joined #ruby
chrisramon has quit [Quit: chrisramon]
LadyRainicorn has quit [Ping timeout: 250 seconds]
kindjal has joined #ruby
dkamioka has joined #ruby
zigomir has joined #ruby
LadyRainicorn has joined #ruby
angusigu1ss has joined #ruby
thumpba has joined #ruby
EngierkO has quit [Ping timeout: 260 seconds]
werdnativ has joined #ruby
chrisseaton has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
pabloh has quit [Quit: Saliendo]
EngierkO has joined #ruby
vlad_starkov has joined #ruby
jrhorn424 is now known as zz_jrhorn424
EngierkO has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
EngierkO has joined #ruby
tjr9898 has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
aspires has joined #ruby
nomenkun_ has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
yarou has joined #ruby
DrCode has joined #ruby
jonahR has quit [Quit: jonahR]
Spami has quit [Quit: This computer has gone to sleep]
zachallett has quit [Remote host closed the connection]
daxroc has joined #ruby
drocsid has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
pel_daniel has joined #ruby
jonah_k has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
EngierkO has quit [Ping timeout: 248 seconds]
roolo has joined #ruby
ghr_ has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Read error: Operation timed out]
EngierkO has joined #ruby
Al___ has quit [Quit: Al___]
interactionjaxsn has quit [Remote host closed the connection]
rudisimo has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Al___ has joined #ruby
heftig has joined #ruby
rudisimo has joined #ruby
DrCode has joined #ruby
fedesilv_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
jfoy has joined #ruby
rm__ has joined #ruby
maletor has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
verywiseman has quit [Read error: Connection reset by peer]
ggordan has joined #ruby
danijoo has joined #ruby
verywiseman has joined #ruby
havenn has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
EngierkO has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
fedesilva has quit [Ping timeout: 252 seconds]
shabgard has joined #ruby
EngierkO has joined #ruby
rudisimo has quit [Ping timeout: 265 seconds]
kleinerdrache has quit [Quit: Ex-Chat]
wallerdev has joined #ruby
tauebel has joined #ruby
canton7-mac has quit [Remote host closed the connection]
EngierkO has quit [Read error: Connection reset by peer]
rh1n0 has quit [Quit: Hopefully you don't see this...]
S0da has joined #ruby
EngierkO has joined #ruby
alexherbo2 has joined #ruby
ndrei has joined #ruby
fedesilva has joined #ruby
maletor has quit [Ping timeout: 260 seconds]
streblo has joined #ruby
streblo has quit [Client Quit]
chipotle has joined #ruby
DrCode has quit [Remote host closed the connection]
maletor has joined #ruby
troyready has joined #ruby
fedesilv_ has quit [Ping timeout: 245 seconds]
ace_striker has joined #ruby
EngierkO has quit [Ping timeout: 248 seconds]
jefflyne has joined #ruby
saarinen has joined #ruby
ace_striker is now known as Guest52368
codeFiend has quit [Quit: codeFiend]
patarr1 has joined #ruby
<patarr1> hey guys. I'm having issues getting ruby running on my ubuntu box. After compiling and installing ruby 2.1, builder still thinks I have ruby 1.9.2
EngierkO has joined #ruby
bricker has joined #ruby
<patarr1> And so does gem. I downloaded the newest gem tgz, ruby setup.rb, and gem --version still proclaims 1.8 Any ideas?
pr0ggie has quit [Ping timeout: 245 seconds]
jefflyne has quit [Client Quit]
greenarrow has quit [Quit: 500]
jonah_k has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JustinAiken> how'd you compile/install ruby 2.1? What does "ruby -v" and "which ruby" say?
yarou has quit [Remote host closed the connection]
EngierkO has left #ruby [#ruby]
saarinen has quit [Client Quit]
speakingcode has quit [Ping timeout: 245 seconds]
fedesilv_ has joined #ruby
yarou has joined #ruby
<patarr1> JustinAiken: configure, make, make install
<patarr1> and ruby --version says 2.1
hamed_r has quit [Quit: Ex-Chat]
<JustinAiken> "which ruby" and "which gem" ?
bricker has quit [Ping timeout: 272 seconds]
nomenkun has joined #ruby
<patarr1> both are in /usr/local/bin
saarinen has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
Sir_Funk has quit [Ping timeout: 265 seconds]
noop has joined #ruby
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
fedesilva has quit [Ping timeout: 248 seconds]
JustinAiken has left #ruby [#ruby]
nomenkun_ has quit [Ping timeout: 245 seconds]
roolo has quit [Quit: Linkinus - http://linkinus.com]
ndrei has quit [Ping timeout: 260 seconds]
nomenkun_ has joined #ruby
ndrei has joined #ruby
klaut has quit [Remote host closed the connection]
<patarr1> apt-get remove rubygems did the trick. Thanks to all 900+ here!
patarr1 has left #ruby [#ruby]
Wolland has quit [Remote host closed the connection]
jrobertfox has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 245 seconds]
poulson has quit [Read error: Connection reset by peer]
flujan has quit [Quit: flujan]
philcrissman has joined #ruby
tylersmith has joined #ruby
i_s has joined #ruby
aspires has quit []
jrobertfox has joined #ruby
streblo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
hobodave has quit [Quit: Computer has gone to sleep.]
allaire has joined #ruby
phansch_ has joined #ruby
Briareos1 has joined #ruby
<streblo> can anyone help me understand what the hell is going wrong here: http://dpaste.com/1591086/
apeiros has joined #ruby
aq has quit [Ping timeout: 245 seconds]
xlogic has joined #ruby
skinny_much_ is now known as skinny_much
stkowski has quit [Quit: stkowski]
interactionjaxsn has joined #ruby
aspires has joined #ruby
momomomomo has quit [Quit: momomomomo]
Briareos1 has quit [Remote host closed the connection]
venkat_ has joined #ruby
__r00t__ has quit [Ping timeout: 245 seconds]
phansch has quit [Ping timeout: 252 seconds]
dachi_ has joined #ruby
vocoder has joined #ruby
<streblo> anyone? i'm totally baffled
burlyscudd has joined #ruby
dachi has quit [Quit: Linkinus - http://linkinus.com]
dachi_ is now known as dachi
<lagweezle> 'which bundle' is where I'd start.
kenrick has joined #ruby
tobago has quit [Remote host closed the connection]
<streblo> which bundler: /usr/local/opt/ruby/bin/bundler
DrCode has joined #ruby
jkamenik has quit [Quit: Leaving.]
CaptainJet has joined #ruby
<streblo> which bundle: /usr/bin/bundle
DrCode has quit [Remote host closed the connection]
Tomasso has joined #ruby
Spami has joined #ruby
<streblo> uninstalling and reinstalling results in the same problem
nism has joined #ruby
jprovazn_bbl has quit [Quit: Odcházím]
<shevy> hehe
pimpthink has joined #ruby
<pimpthink> hi guys
<pimpthink> hi guys
<pimpthink> Does anyone here tend to use a Ruby IDE?
<shevy> the path /usr/local/opt/ruby/bin/bundler looks very messed up
mven has quit [Quit: Leaving]
havenn has quit []
<shevy> streblo where does your normal ruby binary reside?
<billiam> pimpthink: I use rubymine, then everybody tells me I'm an idiot.
<dachi> hi I use RubyMine
einarj has quit [Remote host closed the connection]
DrCode has joined #ruby
<dachi> and TextMate
<shevy> billiam no you are not an idiot. after all you don't use vim or emacs
allaire has quit [Ping timeout: 245 seconds]
<supersym> streblo: thought about using rvm?
<pimpthink> I have a project which I like to add small incremental changes to periodically - I currently use vim. Which I code well with - but having to read through all of the source files to recall the hierarchy
<streblo> supersym: i really dont want to go down that route again
<supersym> haha
<workmad3> shevy: are you claiming that only idiots use vim or emacs?
<supersym> I can understand ;)
<pimpthink> each time I have 5 minutes spare to add something new... is a ridiculous overhead
<shevy> workmad3 no, I don't claim it, it is merely stating a fact :)
<pimpthink> shevy: what do you use?
<shevy> pimpthink proudly bluefish 1.0.7 !
jhass|off is now known as jhass
enape_101 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
mansi_ has quit [Read error: Connection reset by peer]
<streblo> shevy: i upgraded ruby using brew, and that changed the paths
<shevy> they downgraded bluefish with their upgrades though so I am in need of a new editor eventually :( most likely sublime perhaps but it just doesn't feel the same
<workmad3> shevy: heh :) I guess I'm an idiot then :P
mansi has joined #ruby
<shevy> workmad3 I would never insinuate such!
mven has joined #ruby
<shevy> streblo hmm #machomebrew people are clever
cmpitg has quit [Ping timeout: 245 seconds]
<workmad3> shevy: I use vim
<supersym> any redmine guru around by any chance?
zachallett has joined #ruby
<workmad3> shevy: by your previous statement, I am an idiot
<shevy> workmad3 no need to embarass you now man!
<shevy> workmad3 let's keep it a secret
<shevy> we all have our dark past
<workmad3> shevy: I'm not ashamed of it!
bettyclamp has left #ruby [#ruby]
<shevy> I was using PHP and I am very ashamed of it :(
<workmad3> shevy: I'm obviously too much of an idiot to feel such shame ;)
x77686d has quit [Quit: x77686d]
tylersmi_ has joined #ruby
<supersym> I'm forced to use PHP for this stupid webshop of ours :(
<supersym> I'm thinking to lobby for spree ;)
fedesilv_ has quit [Remote host closed the connection]
<shevy> supersym, what database do you use?
<supersym> Special Magento hosting, MySQL InnoDB farm
tylersm__ has joined #ruby
baroquebobcat has joined #ruby
stonevil___ has quit [Quit: Computer has gone to sleep.]
<shevy> at work I am the only dude who sits in front of a windows PC (what were they thinking...), rest of the team works in linux environment. I am to use postgre to build something for the web (query taxonomical data from different species, and mix in a difference of genome data, proteome data and in-house assembly data)
tylersmi_ has quit [Read error: Connection reset by peer]
<shevy> mysql! lucky you
<workmad3> bleh, mysql
tylersmith has quit [Ping timeout: 250 seconds]
<supersym> lol
<workmad3> postgres forevar!
<supersym> Datomic FTW
<workmad3> (well, until something better comes along :) )
stonevil___ has joined #ruby
fedesilva has joined #ruby
<billiam> pimpthink: I use vim for infrequent editing. Aren't there plugins to help with that kind of navigation? Nerd Tree or some such?
<vpretzel> shevy: They gave you the windows box as a way of saying "please leave"
<vpretzel> that's how i take it when they give me window boxes
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
<pimpthink> workmad3: yeah actually I never used postgres - my impression these days is that it has "caught up" with mysql, and serves pretty much as a better replacement altogether
ndrei has quit [Ping timeout: 248 seconds]
<workmad3> pimpthink: tbh, it's always been pretty ahead of mysql except in terms of ease-of-install and support
bbloom has joined #ruby
<shevy> vpretzel yeah
<workmad3> pimpthink: those two areas, it's now caught up with
VTLob has quit [Quit: VTLob]
<lagweezle> Whee. Work is intersing/fun today. :)
DrCode has quit [Remote host closed the connection]
<shevy> vpretzel in fairness I should point out that they also offered to get a laptop for me (but they have to run through administrative crap which takes some days) and I was stupid enough to state "hey windows is fine, as long as I can use ruby" ......
x77686d has joined #ruby
enebo has joined #ruby
<pimpthink> workmad3: I know it's an expansive topic, but would you be able to say which areas it's ahead on, as such?
<vpretzel> lolololol
<workmad3> pimpthink: unfortunately, postgres started with 'Field of Dreams' style marketing... and mysql beat them hands down with an actual marketing strategy
<supersym> its cute,..those RDBMSs but with stuff like that Magento setup (250 tables, EAV arch) I want to stab my eyes out with integers
<vpretzel> The nice guy always loses
philcrissman has quit [Remote host closed the connection]
tylersm__ has quit [Read error: Connection reset by peer]
<shevy> hehe
centrx has joined #ruby
<workmad3> pimpthink: well, there's the lovely detail that postgres has always had proper relational support... mysql before InnoDB was really a flat file pretending... postgres uses more sophisticated locking with adjustable transactional-isolation levels... mysql afaik still just supports row-locking for updates...
tylersmith has joined #ruby
<shevy> it's like coding with a handicap
tvw has joined #ruby
<shevy> the editor I have to use is notepad++ which is semi-ok
<streblo> why is it even possible for your system to get so out of whack
<workmad3> pimpthink: there's also the lovely things like pl-sql not being sucky in postgres ;) not to mention that you can even install extensions like pl-ruby if you wanted to write ruby directly in your db
stonevil___ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
mikepack_ has joined #ruby
<centrx> MySQL has always been unstable for me
<streblo> ruby 2.1, gem uses 2.1, gemfile states 2.1, bundle uses 1.8
<streblo> wtf, honestly
<streblo> how is that even possible
<pimpthink> workmad3: ruby right in your db.. that sounds nice
<centrx> streblo, Is Ruby 1.8 installed?
<workmad3> pimpthink: then there's the new stuff postgres has been adding recently... json and hstore datatypes, the ability to use uuids generated directly in the db as primary keys... and older stuff like CTEs, partial indexes, reasonable compliance to the SQL standard...
<streblo> centrx: i have no idea
<streblo> i mean, apparently it is
<shevy> streblo it probably was installed at one point
<streblo> it was originally, yes
chipotle has quit [Quit: cya]
duggiefresh has joined #ruby
<pimpthink> workmad3: CTEs are bloody nice..!
mrsolo has joined #ruby
razibog has joined #ruby
mrsolo has left #ruby [#ruby]
angusigu1ss has joined #ruby
<workmad3> anyway, I'm being called away for food
<workmad3> and it is friday
<workmad3> so hf all :)
<pimpthink> thanks workmad3 - nice insights :)
Niamkik_ has quit [Quit: Caught sigterm, terminating...]
mikepack_ has quit [Ping timeout: 248 seconds]
<Radar> supersym: #spree :)
mocfive has joined #ruby
rh1n0 has joined #ruby
<Radar> supersym: you totally should switch to Spree!
elementz has quit [Ping timeout: 245 seconds]
<Radar> (note: slight bias. I am the community manager for Spree)
vlad_starkov has quit [Read error: Connection reset by peer]
rudisimo has joined #ruby
RaCx has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
* catphish makes a note of Radar's existence, always good to know who works at ruby product companies
Kricir has quit [Remote host closed the connection]
no0code has quit [Quit: Lost terminal]
<centrx> catphish, Would you call that Radar radar?
interactionjaxsn has quit [Remote host closed the connection]
datandroiddude has joined #ruby
<catphish> perhaps
<catphish> i once sold a product called radar
angusigu1ss has quit [Ping timeout: 260 seconds]
<datandroiddude> HI does anyone know where I should look to create an application for chatting with my own server?
<datandroiddude> Sorry if I come of as a n00b
burlyscudd has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
bigmac has quit [Ping timeout: 248 seconds]
<catphish> datandroiddude: look up how to use tcp sockets
p8952 has quit [Quit: Leaving]
<datandroiddude> wait can I private message you?
<bleak> i believe the gserve mdoule includes TCP support
burlyscudd has joined #ruby
lfox has joined #ruby
lfox has quit [Max SendQ exceeded]
hobodave has joined #ruby
interactionjaxsn has joined #ruby
dik_dak has joined #ruby
datandroiddude is now known as EPaphus
nobitanobi has joined #ruby
mehlah has joined #ruby
EPaphus is now known as Epaphus
ndrei has joined #ruby
lfox has joined #ruby
<Epaphus> SO?
bigmac has joined #ruby
<Epaphus> can i PM you?
kirun has joined #ruby
vocoder has quit [Remote host closed the connection]
coder_neo has quit [Quit: Leaving]
Epaphus has quit [Quit: Leaving]
meatherly has joined #ruby
LLKCKfan has joined #ruby
x77686d has quit [Quit: x77686d]
<LLKCKfan> Hello
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
kenrick has left #ruby [#ruby]
<centrx> LLKCKfan, Stretching and exercise
<shevy> LLKCKfan sex
brennanMKE has quit [Remote host closed the connection]
<centrx> Foods
brennanMKE has joined #ruby
<centrx> #ruby, the one-stop shop for all your problems!
<LLKCKfan> centrx I have been doing that not helping
<LLKCKfan> shevy No
<centrx> What is in pain
elementz has joined #ruby
<LLKCKfan> Hip
tauebel has quit [Read error: Connection reset by peer]
failshel_ has joined #ruby
tauebel has joined #ruby
Lewix has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<centrx> LLKCKfan, What stretches and exercises are you doing now, and how frequently?
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
bigkevmcd has quit [Remote host closed the connection]
centrx is now known as DrCentrX
DrCentrX is now known as Dr_Centrx
tjr9898 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sepp2k1 has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<LLKCKfan> WALKING
<LLKCKfan> Everyday
brennanMKE has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
tauebel1 has joined #ruby
catphish has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
senj has quit [Quit: Sleep Now]
failshell has quit [Ping timeout: 245 seconds]
tauebel has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
<Dr_Centrx> LLKCKfan, Okay, walking can be good, however it could exacerbate hip pain. Have you tried bicycling?
<Dr_Centrx> LLKCKfan, Are you doing any stretches?
larissa has joined #ruby
<LLKCKfan> es
<LLKCKfan> no bike
Astralum has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 248 seconds]
elementz has quit [Ping timeout: 260 seconds]
havv has joined #ruby
codeFiend has joined #ruby
Nyyx has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Dr_Centrx> LLKCKfan, Here are the exercises I do regularly: http://gregsadetsky.com/_files/5bx-plan.pdf and http://www.mkprojects.com/pf_TibetanRites.htm
<Nyyx> how do you distribute ruby applications to end users?
<Dr_Centrx> Nyyx, As a gem
<Nyyx> do end users have gem?
Guest52368 has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
<Dr_Centrx> Nyyx, Yes
<Nyyx> why would I expect an end user to install ruby apps through a development tool
OdNairy has joined #ruby
<Dr_Centrx> Nyyx, rubygems usually comes with the ruby package...
<shevy> Nyyx why do you state it is a development tool?
verywiseman has quit [Ping timeout: 260 seconds]
<LLKCKfan> What else can I do to help get rid of the pain
codeFiend has quit [Client Quit]
nism has quit [Quit: Leaving]
<shevy> LLKCKfan sex NOW
jroes has left #ruby [#ruby]
<LLKCKfan> NO_
<shevy> :(
<Nyyx> shabgard: because you have to invoke it through the command line
verywiseman has joined #ruby
verywiseman has joined #ruby
verywiseman has quit [Changing host]
failshel_ has quit []
`petey`_ has quit [Remote host closed the connection]
<Nyyx> I'm talking about .dmg and .msi insteallers or something
<Nyyx> .app/.exe
<LLKCKfan> No streatches
<shabgard> Nyyx, typo?
verywiseman has quit [Read error: Connection reset by peer]
<LLKCKfan> They do not help
`petey` has joined #ruby
raphaelivan has joined #ruby
flujan has joined #ruby
rudisimo has quit [Remote host closed the connection]
<Dr_Centrx> Nyyx, You can package anything with those installers, including Ruby gems
carraroj has joined #ruby
Kricir has joined #ruby
Davey has joined #ruby
rudisimo has joined #ruby
<Dr_Centrx> LLKCKfan, You are going to be in pain with that attitude
<shevy> Dr_Centrx well he already is in pain
`petey` has quit [Read error: Connection reset by peer]
<shevy> I think at this point all is left is to wail in agony
`petey` has joined #ruby
yarou has quit [Remote host closed the connection]
russt_ has joined #ruby
<LLKCKfan> no
<shevy> :\
<Dr_Centrx> shevy, Yes, there is nothing else that can be done with this attitude
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> why do you keep on saying no man
<LLKCKfan> I have tried streatching it makes the pain worse
<shevy> you are so negative
<shevy> perhaps you suck at stretching?
<Nyyx> found the answer myself
<lagweezle> Perhaps, LLKCKfan, you should seek a professional...
<Dr_Centrx> Hey, I am a professional
<Nyyx> idk what you guys are smoking thinking gem is a suitable tool to deploy with
<lagweezle> Dr_Centrx: A professional physical therapist? ;)
<Dr_Centrx> Gee whiz, people are really angry today
<LLKCKfan> lagweezle Cannot afford to
<lagweezle> LLKCKfan: That sucks. :(
zachallett has quit [Remote host closed the connection]
<Dr_Centrx> LLKCKfan, You are going to have to trust someone. It might as well be someone on a programming channel in IRC with Doctor in his nick.
<shevy> Nyyx yeah it is suitable
<LLKCKfan> I HAVE TRIED STREATCHING
<LLKCKfan> MADE THE PAIN WORE
<shevy> LLKCKfan how did you try it exactly
rudisimo has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 265 seconds]
krisbulman is now known as [krisbulman]
AxonetBE has joined #ruby
havv has quit [Quit: Leaving]
[krisbulman] is now known as krisbulman
phansch_ has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Dr_Centrx is now known as centrx
yarou has joined #ruby
vlad_starkov has joined #ruby
razibog has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
kcombs has joined #ruby
flujan has left #ruby [#ruby]
gja has joined #ruby
rm__ has quit [Remote host closed the connection]
jtdowney has joined #ruby
araujo has joined #ruby
streblo has left #ruby [#ruby]
bricker has joined #ruby
Sir_Funk has joined #ruby
blackmesa has joined #ruby
aryaching_ has joined #ruby
bricker_ has joined #ruby
Kricir has joined #ruby
jonahR has joined #ruby
bricker_ is now known as bricker`work
AxonetBE has quit [Quit: AxonetBE]
gja has quit [Client Quit]
<LLKCKfan> Hello
shredding has quit [Quit: shredding]
relix has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
IcyDragon has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 245 seconds]
wald0 has joined #ruby
zachallett has joined #ruby
rh1n0 has quit [Quit: im out!]
raphaelivan has quit [Quit: Leaving.]
zegerjan has quit [Ping timeout: 260 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zz_jrhorn424 is now known as jrhorn424
sambao21 has quit [Quit: Computer has gone to sleep.]
mocfive has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
mocfive has joined #ruby
<bricker`work> :wave:
chrisbolton has quit [Quit: chrisbolton]
DaniG2k has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
danman has joined #ruby
vlad_starkov has joined #ruby
IcyDragon is now known as IceDragon
LLKCKfan has quit [Read error: Connection reset by peer]
rins has quit [Remote host closed the connection]
LLKCKfan has joined #ruby
<LLKCKfan> Hello
DrCode has joined #ruby
mocfive_ has joined #ruby
sambao21 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
codeFiend has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
codeFiend has left #ruby [#ruby]
sumark has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
Hiall has quit [Ping timeout: 248 seconds]
sumark has joined #ruby
rmorello has joined #ruby
mrnugget has quit [Quit: mrnugget]
agjacome has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
traws has joined #ruby
ace_striker has joined #ruby
ctp has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
_reset has joined #ruby
timonv has quit [Remote host closed the connection]
reset has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 272 seconds]
chrisbolton has joined #ruby
jonah_k has quit [Remote host closed the connection]
Noldorin has quit []
nari has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mehlah has quit [Quit: Leaving...]
jonah_k has joined #ruby
coderhs has joined #ruby
venkat_ has quit [Remote host closed the connection]
venkat_ has joined #ruby
agjacome has joined #ruby
chrisbolton has quit [Client Quit]
fedesilva has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
senj has joined #ruby
Fire-Dragon-DoL has joined #ruby
<shevy> :death_to_everyone_wave:
Kricir has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
rm__ has joined #ruby
decoponio has quit [Quit: Leaving...]
<shevy> I feel so dirty
<shevy> generating raw and hardcoded SQL strings
<shevy> :(
venkat_ has quit [Ping timeout: 245 seconds]
bleak2 has joined #ruby
arg0sy has joined #ruby
<centrx> shevy, Why are you doing this
gnephiak has quit [Quit: Konversation terminated!]
breakingthings has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
baordog has quit [Remote host closed the connection]
<shevy> centrx I need to populate a postgre database from a windows machine with data
sambao21 has quit [Quit: Computer has gone to sleep.]
bleak has quit [Ping timeout: 248 seconds]
philcrissman has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 272 seconds]
ace_striker has quit [Ping timeout: 245 seconds]
highpointe has joined #ruby
Smoochict has joined #ruby
sambao21 has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
afhammad has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
<arg0sy> if feel like there's a better way of doing this, but my ruby-fu is pretty weak
<arg0sy> s/if/I/
<arg0sy> ['a', nil].map {|item| [nil, :undef].include? item }.include? false
jrobertfox has quit [Remote host closed the connection]
pushpak has joined #ruby
<shevy> what is this doing
<highpointe> attempting to do something super simple but Ruby is foreign to me so any help is appreciated. I have an array that I need to append the same suffix to each entry. A simple for i in... loop in bash. Just can't figure out the Ruby way.
<apeiros> arg0sy: look at .all?, .any? and .none?
<shevy> highpointe this sounds like .map or .map!
<shevy> for instance:
<apeiros> highpointe: with_suffixes = ary.map { |str| str+suffix }
<shevy> >> %( abc def ).map {|entry| 'cats are cool '+entry}
<eval-in> shevy => undefined method `map' for " abc def ":String (NoMethodError) ... (https://eval.in/99162)
<centrx> sniped
<shevy> >> %w( abc def ).map {|entry| 'cats are cool '+entry}
<eval-in> shevy => ["cats are cool abc", "cats are cool def"] (https://eval.in/99163)
venkat_ has joined #ruby
chipotle has quit [Quit: cya]
sergicles has joined #ruby
tylersmith has joined #ruby
i_s has quit [Read error: Connection reset by peer]
Smoochict has left #ruby [#ruby]
`petey` has quit [Remote host closed the connection]
i_s has joined #ruby
<highpointe> thanks @shevy @apeiros, I'll check out those methods.
<shevy> \o/
sambao21 has quit [Ping timeout: 245 seconds]
ggordan has quit [Remote host closed the connection]
`petey` has joined #ruby
<arg0sy> apeiros: I hadn't looked at methods for Enumerable. Thanks!
ctp_ has joined #ruby
<apeiros> arg0sy: why don't you test the initial array directly?
timonv has joined #ruby
<apeiros> !(ary.include?(nil) || ary.include?(:undef))
ctp has quit [Read error: Operation timed out]
<apeiros> alternatively: !([nil, :undef] - ary).empty?
framling has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
coderhs has quit [Quit: Leaving]
vt102 has quit [Ping timeout: 272 seconds]
`petey` has quit [Read error: Connection reset by peer]
`petey`_ has joined #ruby
venkat_ has quit [Remote host closed the connection]
aryaching_ has quit []
venkat_ has joined #ruby
<arg0sy> well the variables i need to test could each be :undef, nil or some other data structure entirely. I was using literals in an array in irb to try and work out the best way of testing
DaniG2k has quit [Ping timeout: 245 seconds]
<arg0sy> without turning out spaghetti code and trying to adhere as much as possible to DRY
vermele has quit [Quit: Leaving]
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sambao21 has joined #ruby
<arg0sy> .all? is terse enough for me. thanks again for pointing it out
tauebel1 has quit [Quit: Leaving.]
venkat_ has quit [Ping timeout: 252 seconds]
arianit has joined #ruby
tjr9898 has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
aryaching has joined #ruby
mehlah has joined #ruby
i_s has joined #ruby
sergicles has quit [Quit: sergicles]
tjr9898_ has joined #ruby
xeno has quit [Ping timeout: 245 seconds]
<shevy> so terse
<shevy> so pretty
<shevy> so ruby
noop has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
thesheff17 has quit [Quit: Leaving]
<lagweezle> Arg brain hurty ..
<shevy> so hurty
<shevy> so brainy
afhammad has quit [Remote host closed the connection]
<lagweezle> rspec testing a class which includes a module. The class uses methods from that module. Thestuff I'm seeing online says you use stub on the class you are testing...? O.o
afhammad has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
afhammad has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
<lagweezle> Ah.
bwk1 has quit [Read error: Connection reset by peer]
<shevy> so headache
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
<shevy> so lagweezly
<shevy> lagweezle I am feeling with you emotionally here
Wolland has joined #ruby
<lagweezle> In that example, o would behave like a normal Object but ONLY the stubs defined by the any_instance bits would be overriden?
<lagweezle> hehe shevy
einarj has joined #ruby
Kricir has joined #ruby
banister has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<shevy> I never wrote mocks so far
tylersmith has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
jonah_k_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drumusician has quit [Ping timeout: 246 seconds]
tjaco has quit [Ping timeout: 248 seconds]
jrobertfox has joined #ruby
<pimpthink> How could I best generate object graphs for my application?
jonah_k has quit [Ping timeout: 250 seconds]
<pimpthink> I'd like to be able to glance at it when I want to add something to it every now and then, having not touched it for ages -- without needing to read all of the source code just to get up to speed on the architecture
DaniG2k has quit [Quit: Lost terminal]
geggam has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
breakingthings has joined #ruby
Eran34 has joined #ruby
ixti has joined #ruby
ndrei has quit [Read error: Operation timed out]
Adawerk__ has joined #ruby
Adawerk__ has quit [Max SendQ exceeded]
jrobertfox has quit [Quit: Take it easy.]
interactionjaxsn has joined #ruby
<apeiros> pimpthink: rdoc afaik can generate graphs, using dot.
mven has quit [Read error: Connection reset by peer]
RoryHughes has joined #ruby
wald0 has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
failshell has joined #ruby
Noldorin has joined #ruby
tauebel has joined #ruby
elementz has joined #ruby
craigp has quit []
mven has joined #ruby
axsuul has joined #ruby
rdark has quit [Quit: leaving]
geggam has joined #ruby
mikepack_ has joined #ruby
zcreative has joined #ruby
elementz has quit [Read error: Operation timed out]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
aagdbl has joined #ruby
highpointe has quit []
mocfive_ has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
mocfive has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenndel has quit [Ping timeout: 265 seconds]
razibog has joined #ruby
Sou|cutter has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 245 seconds]
mikepack_ has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
`petey`_ has quit [Remote host closed the connection]
danijoo has joined #ruby
`petey` has joined #ruby
mocfive has quit [Ping timeout: 265 seconds]
nomadic has quit [Remote host closed the connection]
fedesilva has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
thesheff17 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
RaCx has quit [Quit: Computer has gone to sleep.]
jiri has joined #ruby
fedesilva has joined #ruby
`petey` has quit [Ping timeout: 245 seconds]
nomadic has joined #ruby
carraroj has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
tylersmith has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
tylersmith has joined #ruby
nomenkun has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rins has joined #ruby
jle` has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
slash_me is now known as slash_nick
elementz has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
sweeper_ is now known as sweeper
Doc_IX is now known as Doc_X
angusigu1ss has joined #ruby
Doc_X is now known as dylannorthrup
jonah_k_ has quit [Remote host closed the connection]
stryek has joined #ruby
jonah_k has joined #ruby
rootshift has joined #ruby
sambao21 has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
xeno has joined #ruby
burlyscudd has joined #ruby
xlogic has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
mary5030_ has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
tylersmith has joined #ruby
`petey` has joined #ruby
vlad_starkov has joined #ruby
tauebel has quit [Quit: Leaving.]
alvaro_o_ has joined #ruby
<slowcon> writing a scraper using css selectors. does this syntax look correct?
<slowcon> artist_title = page.css("a#thread_title_#{POST_ID} title.threadtitle_unread")
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<slowcon> POST_ID = /.+/
tibounise has joined #ruby
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
<tibounise> Hello !
lethjakman has joined #ruby
<lethjakman> so...my irb and pry both don't have a prompt.
<lethjakman> with pry if I press enter it shows up above my current line....
<lethjakman> any clue what could cause that?
venkat_ has joined #ruby
venkat_ has quit [Remote host closed the connection]
venkat_ has joined #ruby
enape_101 has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
aspires has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<tibounise> I currently have a problem : I want to organize an array of articles into hash, to organize them by year. So I wrote this code : http://pastebin.archlinux.fr/487850
nfk has quit [Quit: yawn]
<tibounise> But it doesn't work :(
aspires has joined #ruby
agent_wh1te has joined #ruby
<tibounise> (the first comment indicates that the first "puts" instructions gives me the expected results, be the second comment indicates that I don't get the expected result :/)
aagdbl has quit [Quit: This computer has gone to sleep]
RaCx has joined #ruby
<tibounise> Have an idea ?
Hamburglr has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
<centrx> One moment
elementz has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 245 seconds]
<pipecloud> centrx: You can have two, but no more.
jailbot has joined #ruby
<tibounise> :D
<centrx> tibounise, The native Ruby way to do this is: articles.group_by { |article| article["pubdate"].year }
<pipecloud> I don't even want to touch that. :D
<tibounise> oh thank's ! I'll try this now !
jailbot has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
didge has joined #ruby
<tibounise> Thank's it works great ! :)
<centrx> Welcome to Ruby!
<jhass> tibounise: iirc keep_if is self modifying
fieldfirst has quit [Ping timeout: 260 seconds]
<jhass> tibounise: I think you wanted reject instead. but yeah group_by is nice solution
razibog has quit [Remote host closed the connection]
tauebel has joined #ruby
didge has left #ruby [#ruby]
rm__ has quit [Read error: Connection reset by peer]
<jhass> er or select rather
Lewix has joined #ruby
rm__ has joined #ruby
chipotle_ has joined #ruby
binaryhat has quit [Quit: Leaving]
sambao21 has joined #ruby
Al___ has quit [Quit: Al___]
mehlah has quit [Quit: Leaving...]
nfk has joined #ruby
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
xeno has quit [Ping timeout: 245 seconds]
enape_101 has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
oso|away is now known as oso96_2000
LuvLinuxOS has quit [Quit: Leaving]
klaut has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Leaving]
speakingcode has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> LLKCKfan sex man
<shevy> LLKCKfan say yes
venkat_ has quit [Read error: Connection reset by peer]
elementz has joined #ruby
chipotle has joined #ruby
venkat_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
stryek has quit [Ping timeout: 245 seconds]
jackneill has quit [Ping timeout: 260 seconds]
cbw has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
caveat- has quit [Ping timeout: 264 seconds]
chipotle_ has quit [Ping timeout: 250 seconds]
mikepack has quit [Remote host closed the connection]
drumusician has joined #ruby
caveat- has joined #ruby
danman has quit [Quit: danman]
krisbulman is now known as [krisbulman]
maletor has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
xlogic has joined #ruby
mikepack has joined #ruby
<shevy> LLKCKfan speak up
<shevy> LLKCKfan perhaps talking about the pain makes it go away
speakingcode has quit [Ping timeout: 260 seconds]
speakingcode has joined #ruby
jonah_k has quit [Remote host closed the connection]
<MJBrune> finally I got a job. Took me like a month!
<tibounise> LLKCKfan : Sugar water seems to be a good pain relief
<tibounise> MJBrune : Congrats !
mocfive has joined #ruby
<MJBrune> tibounise: :D thanks.
tibounise has left #ruby [#ruby]
tibounise has joined #ruby
thumpba_ has joined #ruby
russt_ has quit [Quit: russt_]
Hobogrammer has quit [Ping timeout: 260 seconds]
<MJBrune> my last company decided to tell me that they would pay me 2 weeks after my let go date for compensation then paid me like for like a day of work after.
<shevy> MJBrune what kind of job?
<MJBrune> shevy: product engineer in product realization.
<shevy> not sure I understand what that means
<shevy> :)
`petey` has quit [Remote host closed the connection]
txdv has quit [Read error: Operation timed out]
failshel_ has joined #ruby
baordog has joined #ruby
`petey` has joined #ruby
jonah_k has joined #ruby
jiri has quit [Quit: leaving]
tylersmi_ has joined #ruby
<MJBrune> To be honest I had to figure out what exactly it meant too but product realization is the realization of the work and time a product needs to get to be successful
failshel_ has quit [Read error: Connection reset by peer]
stryek has joined #ruby
<MJBrune> and product engineering is like an application engineer, software engineer and etc.
fedesilva has quit [Ping timeout: 248 seconds]
<MJBrune> all I can think about though is that it beats working in support.
thumpba_ has quit [Remote host closed the connection]
LadyRainicorn has quit [Quit: Bye]
arietis has quit [Quit: Computer has gone to sleep.]
`petey`_ has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
`petey` has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 272 seconds]
txdv has joined #ruby
agent_wh1te has quit [Ping timeout: 260 seconds]
<shevy> hehe
tylersmith has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
tylersmi_ has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
p8952 has joined #ruby
<apeiros> MJBrune: US?
arianit has quit [Quit: Leaving]
aspires has quit []
tylersmi_ has joined #ruby
verywiseman has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
jonah_k has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
kcombs has quit [Remote host closed the connection]
rm__ has quit [Read error: Connection reset by peer]
benzrf has joined #ruby
<benzrf> im sitting in a starbucks talkin about ruby
Wolland has joined #ruby
<benzrf> god i feel like such a stereotype
xlogic has quit [Remote host closed the connection]
rm_ has joined #ruby
<benzrf> at least im not usin a macbook
snooc has quit [Quit: Textual IRC Client: www.textualapp.com]
_bart has quit [Remote host closed the connection]
venkat_ has quit []
<benzrf> sup ruby peoples
bigmac has joined #ruby
Jetchisel has joined #ruby
angusiguess has joined #ruby
RaCx_ has joined #ruby
aspires has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
RaCx_ is now known as RaCx
sambao21 has joined #ruby
russt_ has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
lessless has quit [Remote host closed the connection]
tvw has joined #ruby
failshell has joined #ruby
momomomomo has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
ctp_ has quit [Ping timeout: 260 seconds]
tauebel1 has joined #ruby
ctp has quit [Ping timeout: 245 seconds]
DrCode has quit [Remote host closed the connection]
ctp has joined #ruby
tylersmi_ has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Client Quit]
ctp_ has joined #ruby
tauebel has quit [Ping timeout: 260 seconds]
chipotle_ has joined #ruby
Liothen has quit [Remote host closed the connection]
<shevy> damn
<shevy> why are you in starbucks
jmmoore has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 272 seconds]
nszceta has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
ctp has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
tylersmi_ has joined #ruby
<apeiros> benzrf: hipster fail. unless you code ruby on your google glass…
tylersmith has quit [Ping timeout: 253 seconds]
benlieb has joined #ruby
<benzrf> shevy: waiting for mom
<benzrf> apeiros: i can only wish i had glass
<benzrf> google uses python & ruby anyway
<benzrf> *python & java
pfg has joined #ruby
banister has joined #ruby
Kricir_ has joined #ruby
<benlieb> crosspost: what's the best technique for making symmetrically encrypted strings for urls?
philcrissman has quit [Ping timeout: 245 seconds]
shadoi1 has joined #ruby
<lethjakman> benlieb: they're migrating away from python for most applications.
<lethjakman> it's not quite fast enough.
tylersmith has joined #ruby
<benlieb> lethjakman: ?
<lethjakman> what's your question? lol.
<benlieb> oh that must have been for benzrf
<benzrf> rubys slower tho
pu22l3r has quit [Remote host closed the connection]
<benzrf> benlieb: why do you need to encrypt urls
<benzrf> that smells of bad practice
<benzrf> o:
tylersmi_ has quit [Ping timeout: 248 seconds]
<benlieb> I want to have a url /contrller/action/myencryptedstring
<benzrf> ok, why do you need an encrypted strin
<benlieb> something like /mailing/unsubscribe/asldfkasdfasfdsf
<benzrf> g
<benzrf> why not just something random?
Kricir has quit [Ping timeout: 248 seconds]
<benzrf> for that matter you should not be using url params for non-idempotent actions
<benzrf> make it post-only
<benzrf> and pass the id thru post
zachallett has quit [Remote host closed the connection]
<benzrf> even further, the mere existance of this url is silly
<benzrf> you should make it a thing where they log in
<benzrf> unless you dont have accounts?
failshell has quit []
habanany has joined #ruby
traws has quit []
iamsean has joined #ruby
habanany has quit [Max SendQ exceeded]
karl___ has quit [Ping timeout: 264 seconds]
`petey`_ has quit [Ping timeout: 250 seconds]
habanany has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
Eran34 has quit []
AxonetBE has joined #ruby
ndrei has joined #ruby
jovon has quit [Quit: Leaving]
philcris_ has joined #ruby
tauebel1 has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
<MJBrune> apeiros: yes
Sir_Funk has quit [Ping timeout: 265 seconds]
tjr9898 has joined #ruby
tauebel has joined #ruby
agent_white has joined #ruby
mikepack_ has joined #ruby
mark_locklear has quit [Quit: Leaving]
Hobogrammer has joined #ruby
chipotle has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jerius has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
dblessing has quit [Quit: dblessing]
snuffeluffegus has joined #ruby
kirun has quit [Quit: Client exiting]
lmickh has quit [Ping timeout: 248 seconds]
jerius has joined #ruby
mikepack_ has quit [Ping timeout: 246 seconds]
S0da has quit [Read error: Connection reset by peer]
chipotle_ has quit [Ping timeout: 260 seconds]
`petey` has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> MJBrune: you don't have unemployment insurance in the US, no?
tylersmith has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
joelroa has joined #ruby
Lewix has joined #ruby
shadoi1 has quit [Quit: Leaving.]
lmickh has joined #ruby
IceyEC has quit [Quit: IceyEC]
rootshift has joined #ruby
MattStratton has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lkba has quit [Ping timeout: 250 seconds]
LLKCKfan has quit [Read error: Connection reset by peer]
aesptux has joined #ruby
prc has joined #ruby
LLKCKfan has joined #ruby
kpshek has quit []
yalue has quit [Ping timeout: 260 seconds]
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
<xybre> There's unemployment insurance in the US.
<xybre> People seem to forget that its *insurance* and so a lot of peopel consider it handouts, even though everyone pays into it.
kpshek has joined #ruby
xeno_ has joined #ruby
<apeiros> xybre: is it mandatory?
freggles has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<xybre> apeiros: If you're classified as an employee, or are an employer with over a certain threshold of employees (I think its 50).
aloysius_ has quit [Quit: No Ping reply in 180 seconds.]
rins has quit []
<xybre> Employers pay into it too. Their rates go up if they fire people.
aloysius_ has joined #ruby
kaldrenon has quit [Ping timeout: 250 seconds]
shadoi1 has joined #ruby
rayners has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
tjr9898 has quit []
troyready has quit [Ping timeout: 245 seconds]
tiguser has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Ping timeout: 252 seconds]
sputnik13 has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiguser has joined #ruby
philcris_ has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
lfox has quit [Quit: ZZZzzz…]
xeno_ has quit [Ping timeout: 245 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
aloysius_ has quit [Quit: No Ping reply in 180 seconds.]
aloysius_ has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit_ has quit [Remote host closed the connection]
iamsean has quit [Quit: iamsean]
jrist has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
vpretzel has quit [Quit: Adios!]
pfg has joined #ruby
angusiguess has quit [Ping timeout: 247 seconds]
byprdct has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
byprdct has quit [Client Quit]
shadoi1 has quit [Read error: Connection reset by peer]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> wait
shadoi1 has joined #ruby
<shevy> what goes up when people get fired?
baroquebobcat has joined #ruby
sedat has joined #ruby
<apeiros> the rates the employers pay
danijoo has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
danijoo has joined #ruby
<sedat> hi
ndrei has quit [Ping timeout: 260 seconds]
sedat has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
jrist has joined #ruby
<benzrf> hello seoNinjaWarrior
<benzrf> *sedat
<benzrf> oh derp
stryek has quit [Ping timeout: 260 seconds]
zachallett has quit [Remote host closed the connection]
<seoNinjaWarrior> hello?
<seoNinjaWarrior> oh lol
<seoNinjaWarrior> wrong person
kpshek has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
freezey has joined #ruby
afhammad has joined #ruby
sambao21 has joined #ruby
figgleberry has joined #ruby
venkat_ has joined #ruby
sambao21 has quit [Client Quit]
MindfulMonk has joined #ruby
Lewix has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
yasushi has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<apeiros> seoNinjaWarrior: you're not a ninja! I can see you!
Noldorin has quit []
Es0teric has joined #ruby
ndrei has joined #ruby
<tibounise> :D
<seoNinjaWarrior> perhaps it's just the hologram I planted to distract you
Kricir_ has quit [Remote host closed the connection]
<seoNinjaWarrior> while I SEO your site, muahahaha
larissa has quit [Quit: Leaving]
Kricir has joined #ruby
Noldorin has joined #ruby
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
stkowski has joined #ruby
<xybre> shevy: the unemployment insurance rates. Same as like peopel who get into a car wreck, their rates go up.
havenwood has joined #ruby
TMM has quit [Quit: Ex-Chat]
<shevy> ah, now I understand
krnflake has quit [Ping timeout: 252 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<xybre> hehe I just compared employees to car wrecks
jhass is now known as jhass|off
`petey` has quit [Remote host closed the connection]
`petey` has joined #ruby
mlpinit has joined #ruby
Tomasso has quit [Ping timeout: 245 seconds]
papito has joined #ruby
centrx has joined #ruby
benzrf has quit [Quit: leaving]
speakingcode has quit [Ping timeout: 272 seconds]
<shevy> well that makes sense
<shevy> both are expendable
stringoO has quit [Quit: stringoO]
<xybre> Haha
afhammad has quit []
chipotle has joined #ruby
meatherly has quit [Remote host closed the connection]
bean has joined #ruby
meatherly has joined #ruby
Waikiki has joined #ruby
jlast has quit [Remote host closed the connection]
Waikiki has quit [Client Quit]
philcrissman has joined #ruby
nateberkopec has quit [Quit: Leaving...]
`petey` has quit [Ping timeout: 248 seconds]
einarj has quit [Remote host closed the connection]
jle` has quit [Quit: WeeChat 0.4.2]
Azure has joined #ruby
sailias has quit [Quit: Leaving.]
aesptux has quit []
razibog has joined #ruby
baordog has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
RaCx has quit [Ping timeout: 248 seconds]
meatherly has quit [Ping timeout: 252 seconds]
jerius has quit []
jle` has joined #ruby
razibog has quit [Client Quit]
ctp has joined #ruby
RaCx has joined #ruby
tyl has joined #ruby
Sir_Funk has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caveat- has quit [Ping timeout: 246 seconds]
<tibounise> I have to go ! Good bye everyone !
<centrx> So long
tibounise has quit [Quit: tibounise]
<lagweezle> ... and thanks for all the fish.
tyl has quit [Client Quit]
<shevy> I did not get any fish!
* centrx jumps into the sea
ctp_ has quit [Ping timeout: 250 seconds]
hobodave has quit [Ping timeout: 272 seconds]
<shevy> man, the poor fish
<shevy> did you wash before you jumped?
* xybre fishes centrx out and feeds it to shevy
ctp has quit [Ping timeout: 246 seconds]
caveat- has joined #ruby
`petey` has joined #ruby
nateberkopec has joined #ruby
<shevy> poison :(
vlad_starkov has joined #ruby
Spami has joined #ruby
dkamioka has quit [Remote host closed the connection]
artm has quit [Ping timeout: 260 seconds]
fryss has joined #ruby
fedesilva has joined #ruby
sambao21 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
jle` has quit [Ping timeout: 246 seconds]
thesheff17 has quit [Quit: Leaving]
nateberkopec has quit [Client Quit]
`petey`_ has joined #ruby
* xybre was not fishing off japan's coast
duggiefresh has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fryss has quit [Client Quit]
Xeago has joined #ruby
`petey` has quit [Ping timeout: 245 seconds]
jobewan has quit [Quit: Leaving]
speakingcode has joined #ruby
geggam has quit [Quit: Leaving]
`petey`_ has quit [Ping timeout: 272 seconds]
depesz has joined #ruby
freezey has quit [Ping timeout: 260 seconds]
slowcon has quit []
<depesz> hi. I need to escape "special" characters to use in system() call - but I'm on ruby 1.8.7. Is there any sane and safe solution? Aside from writing my own regexp to do it?
thedonvaughn has quit [Quit: leaving]
RoryHughes has quit []
drumusician has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
drumusician has joined #ruby
einarj has joined #ruby
<bricker`work> maybe that'll help
verywiseman has quit [Ping timeout: 248 seconds]
<shevy> depesz just run a batch of .gsubs
yasushi has joined #ruby
<apeiros> bricker`work: thoughtbot did a bad job there
<apeiros> bricker`work. depesz: shellwords from stdlib
RoryHughes has joined #ruby
<apeiros> instead of badly reinventing wheels like thoughtbot…
einarj has quit [Ping timeout: 245 seconds]
<depesz> apeiros: afaik it's not in 1.8.7
<apeiros> depesz: it's in loooong before 1.8.7
<depesz> apeiros: i don't see it in http://www.ruby-doc.org/stdlib-1.8.7/
<apeiros> depesz: probably because it doesn't define its own module. it patches String
<shevy> :D
<apeiros> just fire up your irb and try `require 'shellwords'`
<depesz> it is here, though": http://www.ruby-doc.org/stdlib-1.9.3/
<depesz> false
Lewix has joined #ruby
<shevy> ack
<apeiros> depesz: yeah, false means "loaded just ok"
<apeiros> if it failed, it'd raise.
<depesz> wow. it's there. Oh my god. thanks apeiros
itadder has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
<itadder> hi
<itadder> what is heurko good for
<itadder> is this a VPS to allow me to code rails apps
venkat_ has joined #ruby
Kricir_ has joined #ruby
<apeiros> itadder: what are you talking about?
<itadder> heroku.com
Kricir_ has quit [Remote host closed the connection]
<itadder> what type of playlist do you listen to while your coding?
<apeiros> aha, heurko = heroku
<shevy> just like apieros is apeiros!
<itadder> I suck at spelling
<itadder> and I am dylsexic
<apeiros> the website doesn't tell you?
<shevy> I am also dlysexy
Lewix has quit [Remote host closed the connection]
<MJBrune> anyone here have experience with qtruby? I am trying to use a qt timer and some qt::widgets within an application to run a function
<itadder> from what i read it a container for you ruby app
<apeiros> I guess that doesn't make coding the easiest exercise OO
<shevy> MJBrune I tried but I gave up due to no docu
Kricir has quit [Read error: Operation timed out]
<MJBrune> im having trouble and would love an example.
<shevy> we'd all love that
<MJBrune> shevy: what alternative did you end with?
<centrx> I could use some serious help
<shevy> Hanmac works on rxw wxwidget bindings in ruby. until then ruby-gnome is ok
<shevy> MJBrune ruby-gnome
<MJBrune> shevy: is that simple?
<itadder> to start my omnifocus to ruby app
<havenwood> itadder: lolroku is getting nicer and nicer, they have a transient file system now and you can use any gems you like
<itadder> I want to create a ruby webfront end for omnifocus
mercwithamouth has joined #ruby
<itadder> havenwood: oh, so do I get ssh access
<shevy> MJBrune well
<havenwood> itadder: It is dead simple, go try a free deploy of a sinatra app or whatever.
<shevy> MJBrune GUI things are never really "simple"
<itadder> I should first start on creating a cli interface from ruby to omnifocs and then think of a webfront end
claymore has quit [Quit: Leaving]
<havenwood> itadder: heroku push origin master
<centrx> People still use GUIs?
aryaching has quit [Ping timeout: 252 seconds]
<shevy> MJBrune but before you continue you should perhaps lower your expectations in the first place
<shevy> centrx yes!
<MJBrune> shevy: expectations of a gui system?
<shevy> MJBrune yes, especially in ruby
<itadder> I try not to
<MJBrune> well I know at the very least I could use ruby sfml
<itadder> expect I use textmate
<shevy> what is sfml
RaCx has quit [Ping timeout: 250 seconds]
<MJBrune> shevy: its like SDL but for C++
<shevy> hmm
<shevy> C++
<MJBrune> its a graphical library directed towards like video games.
<shevy> thought you use ruby :P
<MJBrune> shevy: it has ruby bindings
<shevy> yeah, you can use gosu too
pel_daniel has left #ruby [#ruby]
RaCx has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<MJBrune> what is gosu?
Dreamer3 has quit [Ping timeout: 265 seconds]
<shevy> I have yet to see a GUI app in any of that
jtdowney has quit []
<itadder> so those are my first steps havenwood
<shevy> video games are often like super simplified GUIs. you can click... and things move around... if you are VERY lucky you can even input text... that was it mostly
LastWhisper has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby
brunops has joined #ruby
<itadder> what would I need to do to create a omnifocus client in ruby
<itadder> what information do I need from Omnifocous?
aryaching has joined #ruby
<havenwood> itadder: Yeah, you take a git repo and push it to heroku, they automate the deploy as long as you're using an app framework they support.
<itadder> I have two options, one would be to read the database stored on my mac, and use ruby to read that data, or hook in to omnifocus webdav server that is used to sync omnifocus with the Ipad, Iphone and mac
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> i have no clue what an omnifocus is
<itadder> I think it would be best to do this in rales
<havenwood> rales: #rubyonrails
griffindy has quit [Quit: Computer has gone to sleep.]
caveat- has quit [Ping timeout: 246 seconds]
<itadder> omnifocus is my all time favortie task management tool, that only works on Mac, Iphone and Ipad
MindfulMonk has quit [Ping timeout: 248 seconds]
<MJBrune> shevy: so what I making is a phone sms checker. When I get a text message it should pop up a message box and a textfield and submit button. I can do this in SFML easily. I've been trying to do this in QT but their system is so... different and odd and not well explained. Like Ruby will stop at the application.exec and just stop processing and fully just process the application only. Which is fine but then it gets into slots/signals which is not fine beca
Dreamer3 has quit [Max SendQ exceeded]
stkowski has quit [Ping timeout: 265 seconds]
<MJBrune> s/compile/runtime/
<shevy> no idea
<shevy> I stopped soon after I saw there was no docu
<tchebb> Is there any way I can override Ruby's uncaught exception formatting (the message and backtrace) with a custom function without wrapping all my code in a begin/rescue?
<shevy> they told me "use the official qt docu"
<shevy> boring
<MJBrune> lol
<MJBrune> I've been trying to convert
<shevy> ruby-gnome has a wiki and examples
<AntelopeSalad> has anyone used the brightbox ppa for a long period of time?
pfg has joined #ruby
<MJBrune> ill probably switch to ruby-gnome then
<shevy> yeah the slots are strange
<shevy> ruby-gnome has only signals
<MJBrune> hmm are signal just window events?
<shevy> widget.signal_connect(:name_of_action_here)
<shevy> the widget recieves all events it can recieve, all the time
<shevy> you enable what you want to respond to
bean has joined #ruby
<MJBrune> so how do you connect a signal to run a function?
<centrx> tchebb, I don't know, you could try overriding #backtrace and #message in the Exception class
mansi has joined #ruby
<shevy> MJBrune you attach the signal to the method
<shevy> in ruby we use methods by the way
<shevy> window.signal_connect(:button_press_event) do |widget, event|
<shevy> if event.event_type == Gdk::Event::BUTTON2_PRESS
troyready has joined #ruby
<itadder> this is omnifocus www.omnigroup.com/omnifocus
<shevy> p "double click"; run_method_here()
<MJBrune> oh I see it's like an event loop.
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah, some main loop running in GLib
mansi has quit [Read error: Connection reset by peer]
stkowski has joined #ruby
mansi has joined #ruby
<shevy> Gtk.main_iteration
stkowski has quit [Client Quit]
<MJBrune> okay. and in ruby I thought you could still have functions or methods depending on if the code was inside a class.
<MJBrune> (usually thats the difference betwen a method and function)
<shevy> everything in ruby is attached to somewhere
vlad_starkov has quit [Read error: Connection reset by peer]
<MJBrune> "attached"?
<shevy> if you open a file foo.rb and do: "def bla", it is somehow attached to class Object
<shevy> yeah, it is always attached to something
lethjakman1 has joined #ruby
<shevy> show me an unattached function in ruby!
v0n has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
<MJBrune> shevy: puts?
<shevy> hmm
<shevy> I think this is Kernel.puts ?
lethjakman has quit [Ping timeout: 245 seconds]
Sir_Funk has quit [Ping timeout: 265 seconds]
<MJBrune> oh so you literally mean everything is tied some how to an object?
<shevy> yeah
<MJBrune> odd. I didn't realize.
<shevy> I think by default ruby does an "include Kernel" so you dont have to prefix these methods
<shevy> "The Kernel module is included by class Object, so its methods are available in every Ruby object."
<shevy> cool
<MJBrune> wow ruby is crazy about oop awesomeness.
<shevy> there is even syscall()
Hobogrammer has quit [Ping timeout: 260 seconds]
<shevy> I dont think I used that one before hmm
<tchebb> centrx: Yeah, that's what I have now, but there's still the filename and line info. What I'd like to have is an exception class which just prints out the message and nothing else. When certain "expected" errors occur, I'll raise an exception of that type with a short message describing what needs to be fixed.
<shevy> syscall 4, 1, "hello\n", 6
caveat- has joined #ruby
shabgard has quit [Ping timeout: 260 seconds]
<shevy> that should be the same as
<tchebb> Currently, the message gets hidden in all the backtrace and filename info which is useless to the user.
<shevy> puts "hello"
<shevy> :P
aryaching has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
<MJBrune> lol weird. Alright well I will have to dive into the world of ruby a bit more.
<shevy> who of you guys knows where every method in the ruby stdlib resides?
<shevy> I wanna test someone
<shevy> where can I find #owned?
<centrx> tchebb, Wrap everything in a rescue :) That is what you are doing...
lmickh has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 260 seconds]
tolbakh has quit [Ping timeout: 260 seconds]
karl___ has joined #ruby
<itadder> so what do I need to look for with www.omnigroup.com/omnifocus web front end
firefly20131 has quit [Ping timeout: 260 seconds]
firefly2013 has joined #ruby
kobain has joined #ruby
fedesilva has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tchebb> centrx: Yeah, I guess so. I was just hoping there was some overridable method that got called to print out the backtrace
mikepack_ has joined #ruby
joelroa has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
clamstar has quit [Remote host closed the connection]
thesheff17 has joined #ruby
firefly20131 has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
JBreit has quit [Read error: Connection reset by peer]
freezey_ has joined #ruby
karl___ has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby
firefly2013 has quit [Ping timeout: 272 seconds]
iamsean has joined #ruby
mikepack_ has quit [Ping timeout: 252 seconds]
freggles has joined #ruby
[gmi] has quit [Quit: Leaving]
devdazed has quit [Quit: Bye]
<havenwood> shevy: i would cheat and use: http://www.omniref.com/
z has quit [Quit: Lost terminal]
<shevy> :\
rm_ has quit [Remote host closed the connection]
lethjakman1 has quit [Quit: WeeChat 0.4.0]
itadder has quit []
habanany has quit [Ping timeout: 272 seconds]
habanany has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
yarou has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Remote host closed the connection]
stryek has joined #ruby
brennanMKE has joined #ruby
JBreit has joined #ruby
<lagweezle> havenwood: that is shiny
yasushi has quit [Remote host closed the connection]
jle` has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
ktosiek has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
jonr22 has joined #ruby
george2|chakra has joined #ruby
benzrf has joined #ruby
<benzrf> hallo
<benzrf> http://67signals.com/ <- lol
george2|chakra has quit [Remote host closed the connection]
george2 has quit [Ping timeout: 252 seconds]
maletor has quit [Read error: Connection reset by peer]
einarj has joined #ruby
tvw has quit []
maletor has joined #ruby
vlad_starkov has joined #ruby
crus` has joined #ruby
crus has quit [Ping timeout: 272 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]