apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
nycjv321 has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
<nycjv321> anyone use Ruby Roo?
pkrnj has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<nycjv321> Looking at the API solved it although it would be nice if they udpated the exmaples found in the main documentation
ILoveYou has quit [Read error: Connection reset by peer]
jonathanwallace1 has joined #ruby
Ry0_ has joined #ruby
ILoveYou has joined #ruby
jblack has quit [Ping timeout: 276 seconds]
gnutz has joined #ruby
thetristan has quit [Quit: thetristan]
djbkd has quit [Quit: Leaving]
doritostains has joined #ruby
<popl> nycjv321: file a bug report
<popl> nycjv321: complaining about it here makes absolutely zero difference. :)
Ry0_ has quit [Ping timeout: 248 seconds]
<zendeavor> nycjv321: submit a patch to the docs
<zendeavor> or feature request
<popl> or better yet, offer a patch and be part of the team: https://github.com/Empact/roo
<popl> \o/
<popl> FOSS, bitches!
tjbiddle has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
MrPoT4tO has quit [Remote host closed the connection]
tjbiddle has quit [Client Quit]
<mcatch> Can someone help explain to my why Hash[*x.split("\n")] returns a populated hash while Hash[x.split("\n")] (missing the *) returns an empty hash? in both cases, x.split("\n") returns an even numbered array, so shouldn'
<mcatch> Hash[] be able to take it?
nomenkun has joined #ruby
momomomomo has quit [Quit: momomomomo]
hakunin has quit [Remote host closed the connection]
odrade has quit [Read error: Connection reset by peer]
zodiak has joined #ruby
saarinen has quit [Quit: saarinen]
Shirakawasuna has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
tommyvyo has quit [Quit:]
fooo has quit [Ping timeout: 256 seconds]
ssvo has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
jonkri has quit [Quit: jonkri]
nomenkun has quit [Ping timeout: 264 seconds]
danslo has joined #ruby
cj3kim has quit [Remote host closed the connection]
justsee has quit [Remote host closed the connection]
rsahae has quit [Ping timeout: 268 seconds]
banachtarski has joined #ruby
ssvo has joined #ruby
<banachtarski> how do i run bash commands as a different user from within ruby
rsahae has joined #ruby
momomomomo has joined #ruby
lele has quit [Ping timeout: 264 seconds]
atno has quit [Read error: Connection reset by peer]
ILoveYou has quit [Read error: Connection reset by peer]
arya__ has quit [Ping timeout: 248 seconds]
ILoveYou has joined #ruby
hakunin has joined #ruby
lele has joined #ruby
arya_ has joined #ruby
julweber_ has joined #ruby
emmanuelux has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
bigkm has joined #ruby
bigkm has quit [Max SendQ exceeded]
rsahae has quit [Ping timeout: 264 seconds]
rsahae has joined #ruby
reset has joined #ruby
<alainus> who knows how to use arel ?
julweber has quit [Ping timeout: 264 seconds]
<alainus> banachtarski, you should probable use su - user or sudo
Nisstyre has joined #ruby
<zendeavor> i would recommend against running shell scripts at all
<zendeavor> but that's just me.
ILoveYou has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 264 seconds]
ILoveYou has joined #ruby
burlyscudd has joined #ruby
jalcine has joined #ruby
lwt has quit [Ping timeout: 276 seconds]
zastern has quit [Remote host closed the connection]
DonRichie has quit [Ping timeout: 268 seconds]
v0n has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
gnutz has quit [Quit: Konversation terminated!]
nomenkun has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
angusiguess has joined #ruby
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ILoveYou has quit [Read error: Connection reset by peer]
skoovdebo has joined #ruby
ILoveYou has joined #ruby
skoovdebo has quit [Client Quit]
superscott[8] has quit [Quit: superscott[8]]
rickmasta has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
_ffio_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
ffio_ has quit [Ping timeout: 264 seconds]
weldan has quit [Quit: Ex-Chat]
angusiguess has quit [Ping timeout: 268 seconds]
mikepack has quit [Remote host closed the connection]
arubin has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 268 seconds]
<MarcWeber> http://dpaste.com/1290734/ line 221 why do I get task_container undefined method when requiring this file using require_relative?
seejohnrun has joined #ruby
ephemerian has quit [Quit: Leaving.]
cj3kim has quit [Read error: Connection reset by peer]
pitzips has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
ILoveYou[ has joined #ruby
devoldmx3 has joined #ruby
ravster has joined #ruby
odrade has joined #ruby
freerobby has quit [Quit: Leaving.]
MrZYX is now known as MrZYX|off
havenwood has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
ILoveYou has quit [Ping timeout: 276 seconds]
nerder has joined #ruby
<nerder> hello
<nerder> i'm not so confident with ruby
<nerder> but someone could explain to me how run this file?
<nerder> i already install ruby-mail
<nerder> if i run from the terminal
<nerder> as "ruby file.rb"
<nerder> the program looks like is in a loop
ericmathison has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
<MarcWeber> renderful: what happens if you press ctrl-c?
blitz has quit [Quit: This computer has gone to sleep]
<fryguy> nerder: you pipe mail into it
<fryguy> cat somemailstuff | ruby script.rb
<r0bgleeson> line 12 is the line that is blocking like fryguy says
rsahae has quit [Quit: rsahae]
<fryguy> (or one of the many other ways to pump stdin into a running program, depending on your shell and stuff)
Mars` has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
<nerder> so
<nerder> cat test@test.lol | ruby test.rb
<nerder> ?
<MarcWeber> nerder: You know what stdin/out/err is?
<nerder> no sorry
<MarcWeber> nerder: each app has 3 input/output channels
<jmimi1> MarcWeber: i think you should use Rumake::TaskContainer
<MarcWeber> stdin: input( either keyboard or something which gets piped)
<MarcWeber> stdout/err : print characters
<MarcWeber> Open a terminal, just type cat
<MarcWeber> cat echoes stdin to stdout.
<MarcWeber> so try typing hello, the hit return, the text will be printed to terminal
<MarcWeber> if you run the ruby scirpt it'll wait for you typing a mail into the terminal.
Hanmac has joined #ruby
<MarcWeber> jmimi1: It should be a default instance, not the class
<MarcWeber> renderful: raw_incoming_mail= STDIN.read(mail_size_limit)
<MarcWeber> That tells ruby to read from stdin till stdin is clossed.
<MarcWeber> you close stdin by typing ctrl-d into the terminal.
<MarcWeber> raw_incoming_mail does not look like an "email address"
<jmimi1> MarcWeber: if it is instance so, use Rmake.task_container (dot not double colon)
<MarcWeber> so cat foo.bar@x.de | your-script will try to read the file foo.bar@x.de and pipe it into the ruby script (instead of you typing it)
Guest79785 is now known as banghouse
adeponte has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
<nerder> MarcWeber, thx
<MarcWeber> nerder: so what you really want to is open an editor, type Subject: header To: receiver two blank lines, then the body of the message.
<MarcWeber> then you can pipe that email by cat textfile | script
<MarcWeber> or easier: srcipt < textfile
<MarcWeber> Read any tutorial about bash to learn all about this stuff
<nerder> but for example in java is the same
<nerder> java file.java < test.txt
<nerder> read from input
Solnse has quit [Remote host closed the connection]
<nerder> with > test.txt put the output
<nerder> in a file named test.txt
<MarcWeber> nerder: you have to compile java probably.
<MarcWeber> javac file.java then java file (or file.class)
<nerder> handler.rb:15:in `<main>': undefined method `gsub' for nil:NilClass (NoMethodError)
<nerder> yep yep
<nerder> sorry
<nerder> without .java
<nerder> but if i put a mail return this
<nerder> ruby file.rb < test.txt
ddagradi has joined #ruby
<nerder> inside a test.txt i put a mail
<MarcWeber> nerder: with header?
<MarcWeber> nerder: can you try explaining what you want to do?L
<fryguy> nerder: then you didn't put it in the right format
nomenkun has joined #ruby
<nerder> i have to put the mail like
ddagradi has left #ruby [#ruby]
<nerder> MarcWeber, i just want to execute this
<MarcWeber> nerder: to do what?
<MarcWeber> do you want to sort mail, index mail, send mail, delete mail?
<nerder> i just want to list
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
<nerder> cause if you see at line 34
<nerder> there's a list of aviable command
<MarcWeber> nerder: list what?
<MarcWeber> You don't know at all how to use the tools you're trying to use.
<MarcWeber> So the best way to help you is trying to understand what you want to do.
<nerder> so this tool dnt have an iterface or something
<nerder> i just put input from a file
<MarcWeber> nerder: Reply like this: "I want this script to ...."
<Dekade> should of stayed in F1 marc :p
Shirakawasuna has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
<nerder> ok MarcWeber, i'm just playing a CTF
<nerder> and this one is a challs
<nerder> there's a mail in there
<nerder> i have to get the flag
<MarcWeber> nerder: ctf is a game?
<nerder> yep
Shirakawasuna has quit [Client Quit]
<nerder> is a capture the flag game
<MarcWeber> And that game is about "solving little ruby tasks"?
<Dekade> "hacking" game
Shirakawasuna has joined #ruby
<Dekade> reverse engineering and stuff
<nerder> white hacking game
<nerder> yep
seejohnrun has quit [Ping timeout: 248 seconds]
<bnagy> ctf is definitely not about getting IRC to solve problems for you
<MarcWeber> nerder: and how does the flag look like you're trying to get?
<bnagy> go fail level 1 by yourself
<nerder> but i'm not so confident with ruby
<fryguy> nerder: so instead of taking other people's solutions and just trying to run them without knowing what's going on, how about taking some time and learning the basics and going line by line through this and figuring it out yourself? you know, the entire point of games like this
<MarcWeber> bnagy: It still can be fun :)
<nerder> bnegy i'm just ask for how to use
<nerder> not to get the flag
<nerder> ok fryguy no problem
shadoi1 has joined #ruby
<bnagy> what's the ctf link?
arubin has joined #ruby
<nerder> all the web stuff are in ruby at this time
<nerder> so not veryt good for me xD
vlad_starkov has joined #ruby
<nerder> anywy that's pretty fun
<nerder> so i'm definetly not albe to solve that Challs atm ;)
shadoi has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: io_syl]
sambao21 has joined #ruby
sailias has joined #ruby
Binauralman has joined #ruby
nettoweb has quit [Quit: nettoweb]
seejohnrun has joined #ruby
sailias has quit [Read error: Connection reset by peer]
<nerder> however think that ruby is a pretty nice programming lang
jonathanwallace1 has quit [Quit: WeeChat 0.4.0]
sailias1 has joined #ruby
sailias1 is now known as sailias
vlad_starkov has quit [Ping timeout: 256 seconds]
osvico has quit [Ping timeout: 256 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
freerobby has joined #ruby
<MarcWeber> nerder: try getting thunderbird and open the mail using that.
jonathanwallace has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
<nerder> that's pretty good idea
<MarcWeber> nerder: Of course you can also use ruby, python to decode mime etc.
moos3 has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Guest9040 is now known as mephux_
mephux_ has quit [Changing host]
mephux_ has joined #ruby
<nerder> MarcWeber, but is not just Base64?
<MarcWeber> nerder: You already have decoded that message?
<nerder> yep
sailias has quit [Ping timeout: 264 seconds]
<bnagy> so this code is running on a server somewhere I assume
freerobby has quit [Ping timeout: 248 seconds]
<nerder> yep that's the scenario i suppose
<nerder> you say this one?
<MarcWeber> If you log into the ctf.sigint.ccc.de there are many tasks.
<MarcWeber> At the bottom the last one is called mail under headline "cloud"
<bnagy> the one you posted before - I'd imagine there's an arb read
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<MarcWeber> it contains a mime encoded mail which has an attachement. One of the bzipped files attached is the .rb script nerder pasted
<bnagy> and yu need to send the correct mails at it to trigger it
<nerder> guys we are OT i think
<nerder> i query you
<bnagy> WE are not anything
<bnagy> YOU are trying to cheat on a ctf
<nerder> a channel if you want talk
<nerder> about this
<MarcWeber> bnagy: I guess there are enough tasks left, its one out of 19, at it only gives 100 points (some tasks give 100)
<MarcWeber> give 400
<bnagy> who cares how many points? It's a ctf, and it's for money
<nerder> yep yep is that true
<nerder> lol
ravster has quit [Quit: Leaving.]
<nerder> MarcWeber, there are divided by category
<nerder> there's web stuff
<nerder> RE stuff
brennanMKE has quit [Remote host closed the connection]
<nerder> crypto and so on
sailias has joined #ruby
<MarcWeber> The problem is I don't even understand what to do ..
<Dekade> you might piss someone off nerder when they find out :p
<bnagy> oh they already have
<nerder> MarcWeber, you talking about "mail" challs?
<MarcWeber> There is a email given in the mail.
burlyscudd has joined #ruby
<MarcWeber> So it looks like you have to send a special mail to that server.
<nerder> yep
<nerder> i think so
moos3 has quit [Quit: Computer has gone to sleep.]
<nerder> "you may access it through test@b3.ctf.sigint.ccc.de"
theRoUS has quit [Ping timeout: 276 seconds]
<MarcWeber> nerder: half of the time is gone, is there any chance left to win ? :)
<nerder> i dnt know
<nerder> if you start right now i dnt think
<nerder> ;)
<nerder> usually we play this game in team
atno has joined #ruby
<nerder> so i'm not doing this just by myself
<nerder> we solved something
<nerder> but we are not so expert
<bnagy> which team?
danslo has quit [Quit: danslo]
<MarcWeber> you can register as team. I've seen it
nbouscal has joined #ruby
Es0teric has quit [Remote host closed the connection]
<nerder> tasteless is the name of mine
<bnagy> thanks
<nerder> we have just 200points
<nerder> xD
Qwadlecks is now known as Quadlex
Quadlex is now known as Guest36554
lethjakman has quit [Ping timeout: 264 seconds]
<MarcWeber> nerder: Have you already signed up?
<nerder> yep
Guest36554 is now known as kvodlecks
nomenkun has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Ping timeout: 276 seconds]
kvodlecks is now known as Guest63537
<MarcWeber> nerder: By "signed up" I mean have you sent the sign up email to the server?
<nerder> ow no
Guest63537 is now known as Qwadlex
<nerder> i misunderstand
<MarcWeber> nerder: Set the file you've been looking at is running at the server.
<MarcWeber> Its not your task to run it in any way.
<MarcWeber> Its your task to read it and understand it.
<nerder> that's the hard part for me
<nerder> ;)
<MarcWeber> Then you have to send mails to make the server respond with the flag (whatever that is)
<nerder> i prefer asm than ruby
Mars` has joined #ruby
<MarcWeber> First thing to note: the bzip2 contained a hidden file.
<nerder> okok
<MarcWeber> If you know asm, you can learn ruby, too.
<nerder> i already saw
<nerder> in /user/
<MarcWeber> And everything else is just "try and error" till you got it ..
<nerder> ;)
<nerder> thx MarcWeber
havenwood has quit [Remote host closed the connection]
<bnagy> nerder: rubular.com
nomenkun has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
platzhirsch has left #ruby [#ruby]
<nerder> nice
Spooner has quit [Remote host closed the connection]
<nerder> that looks similar to php regex
hogeo has joined #ruby
<bnagy> regex engines vary very little across languages
DanKnox is now known as DanKnox_away
<bnagy> because ew who wants to write that stuff more than once
tkuchiki has joined #ruby
fangari has quit [Quit: fangari]
<nerder> and that's easy to understan as well
cj3kim has joined #ruby
<bnagy> basically parsing email addresses with regex is a bad idea
<nerder> why?
havenwood has joined #ruby
<bnagy> that's what this exercise aims to demonstrate
<bnagy> rubular is a good way for you to test crafted inputs against a given regex quickly
<fryguy> i've seen some regexes that manage to get decent chunks of the RFC implemented before. they were a few dozen lines long
reset has quit [Ping timeout: 276 seconds]
<bnagy> yeah this server.. not so much
zets has joined #ruby
Axsuul has joined #ruby
thepumpkin has quit [Remote host closed the connection]
fangari has joined #ruby
Guest37668 is now known as heftig
tommyvyo has joined #ruby
thepumpkin has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Mars` has quit [Quit: Lost terminal]
brennanMKE has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Levin_22 has joined #ruby
Guest85414__ has joined #ruby
cooldman224 has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
kapowaz has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
dotemacs has joined #ruby
nomenkun has joined #ruby
queston has joined #ruby
robustus has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
kofno has joined #ruby
julweber_ has quit [Remote host closed the connection]
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
nomenkun has quit [Ping timeout: 264 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
gildo has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
jalcine has quit [Quit: Quit]
vlad_starkov has joined #ruby
kinginky has quit [Quit: Leaving]
fgo has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
jalcine has joined #ruby
freerobby has joined #ruby
nettoweb has joined #ruby
generalissimo has quit [Remote host closed the connection]
unstable has left #ruby [#ruby]
kofno has quit [Remote host closed the connection]
digifiv5e has joined #ruby
tommyvyo has quit [Quit:]
burlyscudd has quit [Ping timeout: 264 seconds]
nothnks has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
Mars` has joined #ruby
osvico has joined #ruby
seejohnrun has quit [Ping timeout: 268 seconds]
radic__ has joined #ruby
dhruvasagar has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
<alainus> Im having trouble with Arel
<alainus> Im trying to expand an array into a where clause
<alainus> But it outputs as pure zeros when the array values are strings
CaptainJet_ has quit []
<alainus> Im using %w() for the array
<alainus> Apprently it only works with numbers
<bnagy> >> %w(1 2 3).map &:to_i
<eval-in_> bnagy => [1, 2, 3] (https://eval.in/36607)
<alainus> .where(users[:email].matches_all(emails))
nomenkun has joined #ruby
<alainus> And emails = %w(bla bla bla)
<bnagy> ok, I don't know what Arel is, so the rest sounds like a question for their documentation
<alainus> When I use [1,2,3,4] instead of emails it works though
CaptainJet has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
verto has joined #ruby
nothnks has quit [Quit: Page closed]
julweber has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
generalissimo has joined #ruby
jmimi1 has quit [Ping timeout: 276 seconds]
pitzips has joined #ruby
fangari has left #ruby [#ruby]
DanKnox_away is now known as DanKnox
julweber has quit [Ping timeout: 256 seconds]
fomatin has joined #ruby
Yakko has joined #ruby
Yakko_ has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
ILoveYou[ has quit [Ping timeout: 264 seconds]
ntzrmtthihu777 has joined #ruby
Guest21555 is now known as Niichan
Niichan has quit [Changing host]
Niichan has joined #ruby
<ntzrmtthihu777> Hanmac: you here?
freakazoid0223 has quit [Read error: Connection reset by peer]
Levin_22 has quit [Quit: Levin_22]
<ntzrmtthihu777> Niichan: okaerimasu, O-Nii-chan~!
AlbireoX has quit [Remote host closed the connection]
<ntzrmtthihu777> </badjapanese>
freerobby has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
jmimi has joined #ruby
sayan has joined #ruby
<ntzrmtthihu777> I don't suppose anyone here has jruby 1.7.4 + lwjgl experience?
t-mart_ has quit [Remote host closed the connection]
Dekade has quit []
brennanMKE has quit [Remote host closed the connection]
Guga_ has quit [Quit: ~]
freakazoid0223 has joined #ruby
<popl> ntzrmtthihu777: If you have a ruby question just ask, and if someone knows or wants to help they probably will.
nomenkun has joined #ruby
<ntzrmtthihu777> popl: ah durr, I know better than that XD, my bad. the question:
<ntzrmtthihu777> basically I'm following this n00bie tut here: http://www.compoundtheory.com/?action=displayPost&ID=559 , and when I run the script with rvm + jruby I get NameError: uninitialized constant OpenGL. am I missing something here?
codesoda has joined #ruby
DanKnox is now known as DanKnox_away
fomatin has quit [Quit: Computer has gone to sleep.]
cha1tanya has joined #ruby
<havenwood> ntzrmtthihu777: If you add `require 'openssl'` does it help?
<fryguy> ntzrmtthihu777: show us the actual code you wrote
thesheff17 has quit [Ping timeout: 276 seconds]
<fryguy> ntzrmtthihu777: and the exact error message
nomenkun has quit [Ping timeout: 248 seconds]
<ntzrmtthihu777> havenwood: openssl? you for real? :P
RichardBaker has joined #ruby
<ntzrmtthihu777> fryguy: http://paste.ubuntu.com/5848699/
queston has quit [Remote host closed the connection]
<ntzrmtthihu777> my filetree is as follows: http://paste.ubuntu.com/5848691/ and the test.rb script is more or less identical to the one at that link.
odrade has quit [Quit: leaving]
<havenwood> 'opengl' >.>
<popl> hurr
<ntzrmtthihu777> havenwood: actually I tried it with require 'OpenGl', should I lowercase that instead?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<havenwood> convention is lowercase
<popl> that file tree does nothing to help us figure out your problem btw
Opettaja has quit [Quit: WeeChat 0.4.1]
<ntzrmtthihu777> popl: ah. i thought maybe knowing where I had lwjgl stored and all may make a dif.
<fryguy> still waiting for exact error
araujo has quit [Quit: Leaving]
<ntzrmtthihu777> fryguy: NameError: unitialized constant OpenGl \n const_missing at org/jruby/RubyModule.java:2631 \n (root) at test.rb:8
<ntzrmtthihu777> havenwood: trying with require 'OpenGl' and require 'opengl' both returns LoadError: no such file to load -- opengl
<popl> do you have opengl installed?
<popl> gem list|grep opengl
<havenwood> ntzrmtthihu777: gem install opengl
burlyscudd has joined #ruby
<ntzrmtthihu777> havenwood: doing.
<ntzrmtthihu777> popl: thought that came with lwjgl, one sec whil havenwood's command finishes up :P
Guedes0 has joined #ruby
<popl> heh
<havenwood> popl: Can just do `gem list opengl` but <3 grep.
<popl> ok, good to know
<ntzrmtthihu777> grep rocks :P
<ntzrmtthihu777> havenwood: NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
<havenwood> ntzrmtthihu777: ah, yeah no C-exts in JRuby
Guedes0 has quit [Client Quit]
<havenwood> ntzrmtthihu777: Ruby or RBX only
<ntzrmtthihu777> havenwood: oh yeah, forgot about that. one reason I like it :P
thecommongeek has joined #ruby
DanKnox_away is now known as DanKnox
wargasm1 has quit [Ping timeout: 248 seconds]
paissad_ has quit [Quit: This computer has gone to sleep]
burlyscudd has quit [Ping timeout: 264 seconds]
GeissT has joined #ruby
thesheff17 has joined #ruby
ejnahc has quit [Read error: Operation timed out]
Binauralman has quit [Ping timeout: 264 seconds]
heidar has joined #ruby
cj3kim has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 256 seconds]
cads has quit [Ping timeout: 256 seconds]
mahmoudimus has joined #ruby
dmiller has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ejnahc has joined #ruby
chxane has quit [Quit: Leaving]
cooldman224 has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 268 seconds]
wargasm has joined #ruby
<ntzrmtthihu777> havenwood: popl: I'ma head over to #jruby, as this is more for that. I do, however, thank you for your assistance.
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
postmodern has quit [Quit: Leaving]
nomenkun has joined #ruby
asgardBSD has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
<mcatch> Can someone help me wrap my head around this regex? puts "Scripting language" if "Python" =~ /P(erl|ython)/
<bnagy> | is or
nettoweb has quit [Quit: nettoweb]
cha1tanya has quit [Ping timeout: 276 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
ra4king has joined #ruby
DanKnox is now known as DanKnox_away
<ra4king> boo
<ra4king> BOO!
* ra4king waits for someone to be scared
<popl> s/scared/annoyed/ # :P
* ra4king bows head in sadness
* ra4king cries
* ra4king runs away
ra4king has left #ruby ["Leaving"]
Node has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
havenwood has quit [Remote host closed the connection]
Node has quit [Client Quit]
thesheff17 has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
vdandre has joined #ruby
cj3kim has joined #ruby
moeSeth has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
mikepack has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Mars` has quit [Ping timeout: 276 seconds]
bluehavana has joined #ruby
guilleiguaran_ has joined #ruby
sarcilav has joined #ruby
mroth has joined #ruby
jonathanwallace has joined #ruby
chriskk has quit [Ping timeout: 256 seconds]
davidboy has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
dnyy has joined #ruby
wargasm has quit [Ping timeout: 264 seconds]
cofin has joined #ruby
stkowski has quit [Quit: stkowski]
nfk has quit [Quit: yawn]
wargasm has joined #ruby
xerxas has joined #ruby
niftylettuce has joined #ruby
headius has joined #ruby
reset has joined #ruby
cool has joined #ruby
NimeshNeema has joined #ruby
nomenkun has joined #ruby
wargasm has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
Bry8Star{T2 has joined #ruby
ForSpareParts has quit [Read error: Connection reset by peer]
ForSpareParts has joined #ruby
Heero has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
jhowarth_ has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
asgardBSD has quit [Remote host closed the connection]
strax has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
momomomomo has joined #ruby
arubin has joined #ruby
ziyadb has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
osvico has quit [Ping timeout: 276 seconds]
burlyscudd has joined #ruby
didlix has joined #ruby
chuk has joined #ruby
notbrent___ has joined #ruby
huoxito has quit [Quit: Leaving]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
freerobby has joined #ruby
_seanc_ has joined #ruby
stef_204 has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
randym_ has joined #ruby
r0bgleeson has quit [Read error: Connection reset by peer]
harrymoreno has joined #ruby
r0bgleeson has joined #ruby
mogsy has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
pyx has joined #ruby
cj3kim has joined #ruby
keyvan has joined #ruby
geoffw8_ has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 248 seconds]
karnowski has joined #ruby
axeman- has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ArnaudR has joined #ruby
[0x1a] has joined #ruby
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
wargasm has joined #ruby
browndawg has joined #ruby
Mars` has joined #ruby
[Neurotic] has joined #ruby
pootler has quit [Ping timeout: 268 seconds]
pootler__ has quit [Ping timeout: 264 seconds]
pootler_ has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
pootler has joined #ruby
pootler_ has joined #ruby
pootler__ has joined #ruby
JoeTheGuest has joined #ruby
shaileshg has joined #ruby
postmodern has joined #ruby
generalissimo has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 248 seconds]
stillEPIK has quit [Ping timeout: 264 seconds]
pcarrier has joined #ruby
stef_204 has joined #ruby
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
subbyyy has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
havenwood has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
generalissimo has joined #ruby
_seanc_ has quit [Quit: _seanc_]
fomatin has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
momomomomo has quit [Quit: momomomomo]
emergion has joined #ruby
YaNakilon has quit [Ping timeout: 245 seconds]
YaNakilon has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
blischalk has quit [Ping timeout: 264 seconds]
_ffio_ has quit [Quit: WeeChat 0.4.1]
generalissimo has quit [Remote host closed the connection]
anay has joined #ruby
axeman- has quit [Remote host closed the connection]
browndawg has joined #ruby
mogsy has quit [Quit: Leaving]
anay has quit [Remote host closed the connection]
coderhut has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
felixjet__ has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
samuelkadolph has quit [Quit: Quitting]
nomenkun has joined #ruby
samuelkadolph has joined #ruby
havenwood has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 264 seconds]
thecommongeek has quit [Quit: Leaving]
jonahR has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
sayan has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
freerobby has joined #ruby
<fbernier> saw a use of @@mutex = Mutex.new in the wild ... any reason to make amutex a class variable ?
harrymoreno has quit [Ping timeout: 256 seconds]
<bnagy> there's almost no reason to use a Mutex
<bnagy> and none to use a @@class_var
<bnagy> my guess is that they were trying for a half-assed Singleton pattern
freerobby has quit [Ping timeout: 268 seconds]
<fbernier> the mutex is the only class variable ...
julweber has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
ananthakumaran has joined #ruby
Evixion has quit [Remote host closed the connection]
Evixion has joined #ruby
ffio has joined #ruby
harrymoreno has joined #ruby
Myconix has joined #ruby
havenwood has joined #ruby
Pacra has joined #ruby
cofin has quit [Quit: cofin]
jbueza has quit [Quit: Leaving.]
Astral_ has quit [Quit: Leaving]
nomenkun has joined #ruby
smlgs has quit [Ping timeout: 256 seconds]
BarneyRubble has joined #ruby
badquanta has joined #ruby
cofin has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
io_syl has joined #ruby
banghouse has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 248 seconds]
Pacra has quit [Quit: Pacra]
pyx has quit [Quit: WeeChat 0.4.1]
ravenzz has joined #ruby
<ravenzz> hello
<Mars`> ravenzz: hi
<ravenzz> hi Mars`
akashj87 has joined #ruby
<popl> ravenzz: Do you have a Ruby question?
<ravenzz> I need Ruby and RubyGems to set up a Jekyll blog which eventually will be hosted on github. Which version of ruby should I download? the RubyInstaller or the DevKit?
<ravenzz> popl not really but yeah ruby-related
<ravenzz> oh I am on windows btw
<bnagy> devkit is not a version of ruby
<bnagy> it's an adjunct to the rubyinstaller
<ravenzz> yeah
freerobby has joined #ruby
<ravenzz> version was the wrong word :)
<BarneyRubble> ravenzz, you want to write haml, scss etc?
<ravenzz> why not
<ravenzz> in these cases I wish I had a linux box
<popl> vm?
<bnagy> vm
<BarneyRubble> if so take a look at http://alphapixels.com/prepros/ free win/mac for haml/css/less etc
<ravenzz> indeed, but just for the server part
fgo has quit [Remote host closed the connection]
<ravenzz> oh is it like CodeKit but free?
<BarneyRubble> yeah, if it is close to what you want definitely worth downloading and trying it, i use it myself
Mars` has quit [Ping timeout: 248 seconds]
freerobby has quit [Ping timeout: 276 seconds]
<ravenzz> I'll definitely give it a try. It should be useful for small projects. Anyway what I really need now is Ruby and RubyGem in order to install a local copy of Jekyll
<ravenzz> thanks by the way
<BarneyRubble> yeah, that is how i got to prepos, i got stuck on installing ruby etc, so i cant help there :)
<ravenzz> yeah same situation here. So did you manage to setup a jekyll blog locally with prepos?
<BarneyRubble> I gave up on the jekyll and went another way, but if you need a project to have scss/compass/haml etc then i dont see why prepos wouldnt work
arya_ has quit []
<ravenzz> yes it could be handy. Although I already have a bunch of grunt tasks to do so
tomzx_mac has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
zeromodulus has quit [Remote host closed the connection]
<ravenzz> I apparently I did it, ruby is up and running :)
lewis has joined #ruby
<ravenzz> thanks for the suggestion though!
<lewis> hi
cofin has quit [Quit: cofin]
harrymoreno has quit [Quit: harrymoreno]
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
nomenkun has joined #ruby
jbueza has joined #ruby
lethjakman has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
ananthakumaran has quit [Ping timeout: 268 seconds]
nomenkun has quit [Ping timeout: 268 seconds]
rickmasta has quit [Quit: Leaving...]
burlyscudd has joined #ruby
timeout has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
nycjv321 has quit [Quit: leaving]
burlyscudd has quit [Ping timeout: 248 seconds]
thebastl has joined #ruby
freerobby has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 268 seconds]
CaptainJet has quit []
tvw has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
lethjakm1 has joined #ruby
nomenkun has joined #ruby
tacos1de_ has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 264 seconds]
tacos1de has joined #ruby
zmike123 has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
burlyscudd has joined #ruby
iamjbecker has joined #ruby
iamjbecker has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
threesome has joined #ruby
axeman- has joined #ruby
lethjakm1 is now known as lethjakman
Deele has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
freerobby has joined #ruby
nomenkun has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
axeman- has quit [Remote host closed the connection]
akashj87 has joined #ruby
Gruu has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
axeman- has joined #ruby
akashj87_ has joined #ruby
akashj87 has quit [Ping timeout: 276 seconds]
Gruu has quit [Client Quit]
binw has quit [Read error: Connection reset by peer]
codesoda has quit [Remote host closed the connection]
sayan has joined #ruby
AlHafoudh has joined #ruby
staafl has joined #ruby
rickruby has joined #ruby
binw has joined #ruby
axeman- has quit [Remote host closed the connection]
axeman- has joined #ruby
paissad has joined #ruby
axeman- has quit [Remote host closed the connection]
doritostains has quit [Quit: Linkinus - http://linkinus.com]
anay has joined #ruby
freerobby has joined #ruby
zodiak has quit [Ping timeout: 268 seconds]
sayan has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
ciziar has joined #ruby
Hanmac1 has joined #ruby
ciziar has quit [Client Quit]
BarneyRubble has quit [Quit: Leaving]
tonini has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
MrZYX|off is now known as MrZYX
subbyyy has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
lewis has quit [Ping timeout: 264 seconds]
lewix has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
araujo has joined #ruby
ciziar has joined #ruby
marr has joined #ruby
Nahra_ has quit [Quit: leaving]
burlyscudd has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
zz_jinie is now known as jinie
dash_ has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
anay has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
Myconix has quit [Quit: Setting up VirtualBox]
axeman- has joined #ruby
Myconix has joined #ruby
lethjakman has quit [Ping timeout: 248 seconds]
unstable has joined #ruby
danslo has quit [Quit: danslo]
Ry0_ has joined #ruby
rickruby has quit [Remote host closed the connection]
jds has joined #ruby
alainus is now known as alainus[-_-]
poseid has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
anay has joined #ruby
jds has quit [Remote host closed the connection]
jds has joined #ruby
freerobby has joined #ruby
xardas has joined #ruby
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
jds has quit [Ping timeout: 276 seconds]
jefflyne has joined #ruby
akashj87_ has quit [Read error: Connection timed out]
anay has quit [Remote host closed the connection]
akashj87_ has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
skattyadz has joined #ruby
ffio_ has joined #ruby
ffio has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
marr has quit [Read error: Connection reset by peer]
echevemaster has quit [Remote host closed the connection]
skattyadz has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
alainus[-_-] is now known as alainus
popl has quit [Quit: We must make an idol of our fear, and call it God.]
poseid has quit [Quit: poseid]
dash_ has quit [Quit: Time to beer :)]
relix has joined #ruby
anay has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
ssvo has quit [Ping timeout: 268 seconds]
Ry0_ has quit [Remote host closed the connection]
Spooner has joined #ruby
rubarlion has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
poseid has joined #ruby
spider-mario has joined #ruby
freerobby has joined #ruby
Axsuul has quit [Ping timeout: 276 seconds]
thebastl has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
jinie is now known as zz_jinie
Shirakawasuna has quit [Ping timeout: 256 seconds]
browndawg has left #ruby [#ruby]
julweber has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gildo has quit [Ping timeout: 256 seconds]
ciziar has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
cj3kim_ has quit [Remote host closed the connection]
akashj87 has joined #ruby
io_syl has quit [Quit: io_syl]
akashj87_ has quit [Ping timeout: 276 seconds]
poga has joined #ruby
anay has quit [Remote host closed the connection]
Es0teric has joined #ruby
Ry0_ has joined #ruby
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777> correct me if I'm wrong, but "and" and "&&" are the same in rubyscripting, yeah?
devoldmx has joined #ruby
<nouitfvf> +
<apeiros> ntzrmtthihu777: no
<apeiros> they're almost the same. but they differ in precedence.
poseid has quit [Quit: poseid]
<ntzrmtthihu777> apeiros: hmm. but if I were to take a script using nothing but && and replace them all with and, it would work the same?
<apeiros> no.
<apeiros> as said. the two differ in precedence.
<ntzrmtthihu777> apeiros: I was thinking you meant like && > and, or vice versa.
<apeiros> if all your code uses () in all places where precedence could matter, then yes.
<apeiros> but since barely any code I know makes precedence explicit that way: no, you can't just replace all `&&` with `and` or the other way round
jds has joined #ruby
nomenkun has quit [Remote host closed the connection]
<ntzrmtthihu777> apeiros: alrighty, just a question :P. having a look at the openrgss gem's source code.
<apeiros> and just gave an answer :-p
<apeiros> *and I
<ntzrmtthihu777> and I'm grateful for it :D
anderson has joined #ruby
jds has quit [Remote host closed the connection]
<apeiros> example of it going wrong:
<apeiros> >> a,b = 1&&2,3
<eval-in_> apeiros => [2, 3] (https://eval.in/36616)
<apeiros> a,b = 1 and 2,3
<apeiros> >> a,b = 1 and 2,3
<eval-in_> apeiros => /tmp/execpad-039f08a34ba0/source-039f08a34ba0:2: syntax error, unexpected keyword_and, expecting keyword_end ... (https://eval.in/36617)
jds has joined #ruby
kofno has joined #ruby
<ntzrmtthihu777> mhmm, interesting. I really like ya'lls bot :P
Es0teric has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
h8R has joined #ruby
<nouitfvf> >> local_variables
<eval-in_> nouitfvf => [:e] (https://eval.in/36618)
<nouitfvf> =))
emergion has quit [Quit: Computer has gone to sleep.]
<nouitfvf> >> RUBY_DESCRIPTION
<eval-in_> nouitfvf => "ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]" (https://eval.in/36619)
kofno has quit [Ping timeout: 256 seconds]
jds has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<nouitfvf> funny
<nouitfvf> >> self
<eval-in_> nouitfvf => main (https://eval.in/36620)
AlSquire has joined #ruby
Myconix has quit [Quit: I love you, zsh <3]
tomaw has quit [Quit: Quitting]
devoldmx3 has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
reset has quit [Ping timeout: 276 seconds]
devoldmx27 has joined #ruby
thebastl has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
LennyLinux has joined #ruby
miclen has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
<apeiros> nouitfvf: the bot is for purposes only. please experiment in private messages.
LennyLinux is now known as Virunga
<apeiros> hm, though seems charlie didn't add pm support yet :-/
Jefus has quit [Ping timeout: 256 seconds]
<nouitfvf> sorry :)
alem0lars has joined #ruby
tomaw has joined #ruby
goshakkk has joined #ruby
pskosinski has joined #ruby
tonini has joined #ruby
jonahR has quit [Quit: jonahR]
crumblebee has joined #ruby
rubarlio_ has joined #ruby
Kar- has joined #ruby
DestinyAwaits has joined #ruby
lewix has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
thebastl has quit [Remote host closed the connection]
rubarlio_ has quit [Remote host closed the connection]
lwt has joined #ruby
rubarlion has quit [Ping timeout: 268 seconds]
miclen has quit [Quit: Leaving]
burlyscudd has joined #ruby
emergion has joined #ruby
<Hanmac1> ntzrmtthihu777: huhu you wants to talk to me?
Hanmac1 is now known as Hanmac
tonini has quit [Ping timeout: 248 seconds]
marr has joined #ruby
<ntzrmtthihu777> Hanmac: sup man :P
<ntzrmtthihu777> was having an issue with lwjgl + jruby,, thought you may have some info for me
burlyscudd has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
noop has joined #ruby
tvw has quit []
m8 has joined #ruby
freerobby has joined #ruby
akashj87 has quit [Max SendQ exceeded]
nomenkun has quit [Ping timeout: 248 seconds]
akashj87 has joined #ruby
osvico has joined #ruby
alexwh has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
Hanmac1 has joined #ruby
shashin has joined #ruby
alainus is now known as alainus[-_-]
Hanmac has quit [Ping timeout: 268 seconds]
ismlages has joined #ruby
Jackneill has quit [Quit: Leaving]
Jackneill_ has joined #ruby
cads has joined #ruby
Jackneill_ has quit [Client Quit]
Jackneill_ has joined #ruby
Hanmac1 is now known as Hanmac
Jackneill_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
akashj87 has quit [Read error: Connection timed out]
ntzrmtthihu777 has quit [Quit: leaving]
Jackneill has joined #ruby
poga has quit [Remote host closed the connection]
timonv has joined #ruby
lewix has joined #ruby
maxmanders has joined #ruby
cj3kim has joined #ruby
cads has quit [Ping timeout: 256 seconds]
statarb3 has joined #ruby
rubarlion has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
cj3kim has quit [Ping timeout: 268 seconds]
lewix has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
renderful has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
dpdawson has joined #ruby
noop has quit [Ping timeout: 248 seconds]
jimg has quit [Remote host closed the connection]
<dpdawson> Anyone awake who uses rbenv-gemsets and bundler in rails?
freerobby has quit [Read error: Connection reset by peer]
alainus[-_-] is now known as alainus
jds has joined #ruby
freerobby has joined #ruby
alem0lars has quit [Ping timeout: 268 seconds]
Quashie_ has joined #ruby
statarb3 has quit [Quit: Leaving]
tonini has joined #ruby
jds has quit [Ping timeout: 256 seconds]
zmike123 has quit [Ping timeout: 276 seconds]
Quashie has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 268 seconds]
anay has joined #ruby
Ziarkaen has quit [Ping timeout: 256 seconds]
Meatant has quit [Quit: now where did i put that whatchyamacallit]
shashin has quit [Quit: shashin]
Neomex has joined #ruby
Neomex has quit [Client Quit]
swordsmanz has quit [Quit: swordsmanz]
vlad_starkov has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
timeout has quit [Quit: leaving]
soulcake has quit [Ping timeout: 240 seconds]
TheHodge has joined #ruby
romockee has quit [Quit: romockee]
vlad_starkov has quit [Ping timeout: 248 seconds]
mnms has quit [Ping timeout: 256 seconds]
axeman- has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
zmike123 has joined #ruby
burlyscudd has joined #ruby
kirun has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
anay has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
axeman- has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
ffio_ has quit [Ping timeout: 264 seconds]
dpdawson has quit [Quit: Page closed]
mnms has joined #ruby
Ry0_ has quit [Remote host closed the connection]
RomainT has joined #ruby
nomenkun has joined #ruby
optimusprimem has joined #ruby
hamed_r has joined #ruby
viszu has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
Hanmac1 is now known as Hanmac
<RomainT> Hello there
Ry0_ has joined #ruby
axeman- has quit [Remote host closed the connection]
renderful has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<RomainT> I have trouble understanding the behaviour of a variable
<RomainT> Here is the script: https://gist.github.com/Sephi-Chan/5939616
<RomainT> (one can run it very easily)
axeman- has joined #ruby
<RomainT> Can someone take a look plz?
jimg has joined #ruby
<canton7> RomainT, arrays are passed by reference - they're not copied before being passed
freeayu has joined #ruby
<canton7> so everyting's modifying the same array
jds has joined #ruby
<RomainT> At where point do I pass an array by reference? :s
<RomainT> dispatchable_groups ?
<canton7> hmm misread it a little, one sec
ffio_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Spooner has quit [Remote host closed the connection]
<canton7> is that the full output? you haven't removed any lines?
<RomainT> Yes
Spooner has joined #ruby
<RomainT> (exect the line 8 of the log, i added it myself to emphasis the problem ^^)
postmodern has joined #ruby
<RomainT> You can run the script as is via ruby 10_script.rb
axeman- has quit [Remote host closed the connection]
<canton7> yeah that makes sense, I think
<canton7> so both of the "Add game_search ..." messages are from the same call to dispatchable_groups_for_format
renderful has quit [Ping timeout: 264 seconds]
<RomainT> Hmm…
<RomainT> That's right
<canton7> dispatchable_groups_for_format gets called initially, and there are two items in other_game_searches. it loops through them, calls dispatchable_groups_for_format for the first one. in that call, there are no items in other_game_searches, so it prints "Initialse...", then exits. second time around the loop it prints the second "Add game_search ..."
<canton7> (why #map, btw, not #each?)
jimg has quit [Ping timeout: 264 seconds]
<RomainT> It's 1 character less for the same effect.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RomainT> (just kidding i don't really care about that :p)
<MrZYX> in theory
<MrZYX> #map consumes more memory
Heero` has joined #ruby
<canton7> yeah, but we're not playing golf :P when I see a #map, I'm looking for the return value to be used somewhere
<canton7> it's about intention :P
<RomainT> Yes, i was just kidding (i planned to use a reduce style)
<canton7> cool, no worries
<RomainT> Though i don't really get what i should do :/
<cool> canton7: why would I worry?
<RomainT> xD
<canton7> cool, hah! nice. you needn't
relix has joined #ruby
<cool> :D
<MrZYX> RomainT: I think line 16 should be remaining_game_searches = other_game_searches - selected_game_searches
rubarlio_ has joined #ruby
Heero has quit [Ping timeout: 256 seconds]
Pacra has joined #ruby
<MrZYX> hm, no, that doesn't change anything
<RomainT> Yep
workmad3 has joined #ruby
rubarlio_ has quit [Remote host closed the connection]
<RomainT> Hm
<RomainT> I have to reset selected_game_searches to the empty array when i dispatch it
rubarlion has quit [Ping timeout: 264 seconds]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
fgo has joined #ruby
<RomainT> Between lines 18 and 19 in have to add selected_game_searches = []
emergion has quit [Quit: Computer has gone to sleep.]
coderhut has quit [Quit: Page closed]
Zeeraw has joined #ruby
queston has joined #ruby
fgo has quit [Remote host closed the connection]
<RomainT> Thank you canton7 and MrZYX for helping me! :)
<canton7> np :)
thepumpk_ has joined #ruby
<RomainT> (it's the match maker of my webgame! It allowed to compose teams with players in common. Quite weird. :p)
<RomainT> (I couldn't play chess against myself :/)
thepumpkin has quit [Ping timeout: 264 seconds]
alainus is now known as alainus[-_-]
swordsmanz has joined #ruby
atno has quit [Quit: Leaving]
tonini has quit [Ping timeout: 248 seconds]
cantonic has joined #ruby
jefflyne has joined #ruby
hamakn_ has quit [Remote host closed the connection]
lwt has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
rubarlio_ has joined #ruby
rubarlio_ has left #ruby [#ruby]
rubarlio_ has joined #ruby
<rubarlio_> can someone tell me why I get a "wordFrequencies.rb:5:in `initialize': No such file or directory - lipsum (Errno::ENOENT)" error
jmsbrwr has joined #ruby
atmosx has joined #ruby
<rubarlio_> i used puts Dir.pwd to confirm it looks in the right directory
Virunga has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<nouitfvf> try passing './lipsum' to script
jimg has joined #ruby
<rubarlio_> same error
tonini has joined #ruby
lwt has joined #ruby
renderful has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
Guga_ has joined #ruby
moos3 has joined #ruby
renderful has quit [Ping timeout: 276 seconds]
Ry0_ has quit [Remote host closed the connection]
soulcake has joined #ruby
queston has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
Quashie_ has quit [Ping timeout: 256 seconds]
burlyscudd has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
wargasm has quit [Read error: Connection reset by peer]
jds has quit [Remote host closed the connection]
wargasm has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
shaunbaker has joined #ruby
nomenkun has joined #ruby
lwt has quit [Ping timeout: 268 seconds]
tonini has quit [Ping timeout: 248 seconds]
anderson has quit [Read error: Connection reset by peer]
Ry0_ has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
ffio_ has quit [Quit: WeeChat 0.4.1]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lwt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
tacos1de has joined #ruby
vdandre has quit [Quit: leaving]
alem0lars has joined #ruby
<Spooner> Daft question, but does the file lipsum actually exist in the folder? And it definitely isn't lipsum.txt on Windows ;)
<Spooner> rubarlio_, And a bit more Rubyish: https://gist.github.com/Spooner/5939750
<rubarlio_> its on a mac
<Spooner> Odd.
havenwood has quit [Remote host closed the connection]
<Spooner> Are you running it from that same directory?
crumblebee has left #ruby [#ruby]
DestinyAwaits has quit [Read error: Connection reset by peer]
<Spooner> That is, ruby script.rb, not ruby /path/to/script.rb
<atmosx> Spooner: what's the diff?
goshakkk has joined #ruby
DestinyAwaits has joined #ruby
NoNMaDDeN has joined #ruby
<nouitfvf> rubarlio_, http://paste.ubuntu.com/5849674/
<nouitfvf> heh
sambao21 has joined #ruby
DestinyAwaits has quit [Read error: Connection reset by peer]
NoNMaDDeN has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 248 seconds]
gildo has joined #ruby
<rubarlio_> yes, im running it from the same directory
<rubarlio_> let me try some other files also
DestinyAwaits has joined #ruby
atno has joined #ruby
dougireton has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
eka has joined #ruby
rickmasta has joined #ruby
<rubarlio_> OH
<rubarlio_> success!
<nouitfvf> what
<rubarlio_> i had 2 directories with the same name...
<rubarlio_> sorry guys
<rubarlio_> thank you
gildo has quit [Ping timeout: 248 seconds]
<Spooner> Ah, "programmer error" ;)
octarine has joined #ruby
julweber has joined #ruby
daidoji has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arietis has joined #ruby
gildo has joined #ruby
lwt has quit [Ping timeout: 268 seconds]
kofno has quit [Remote host closed the connection]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
arya_ has joined #ruby
jimg has joined #ruby
agjacome has joined #ruby
hamakn has joined #ruby
jimg has quit [Ping timeout: 256 seconds]
phasma has joined #ruby
GeissT has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
hamakn has quit [Ping timeout: 268 seconds]
pskosinski has quit [Ping timeout: 240 seconds]
danslo has joined #ruby
Ry0_ has quit [Remote host closed the connection]
hamed_r has quit [Quit: Leaving]
dougireton has quit [Quit: Leaving.]
fenicks has joined #ruby
burlyscudd has joined #ruby
ravenzz has quit [Ping timeout: 264 seconds]
swordsmanz has quit [Ping timeout: 264 seconds]
BizarreCake has joined #ruby
pskosinski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
EPIK has joined #ruby
mzelinka has joined #ruby
mzelinka has left #ruby ["Leaving"]
Hanmac1 has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
jonkri has quit [Ping timeout: 276 seconds]
alainus[-_-] is now known as alainus
Hanmac has quit [Ping timeout: 264 seconds]
jds has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
RomainT has left #ruby [#ruby]
axeman- has joined #ruby
JZTech101 has joined #ruby
jds has quit [Ping timeout: 256 seconds]
braincra- has joined #ruby
lwt has joined #ruby
alem0lars has quit [Ping timeout: 276 seconds]
braincrash has quit [Ping timeout: 248 seconds]
rubarlio_ has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
Ry0_ has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
braincrash has joined #ruby
braincra- has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
workmad3 has joined #ruby
seejohnrun has joined #ruby
takezawa has joined #ruby
Ry0__ has joined #ruby
Ry0_ has quit [Read error: Connection reset by peer]
v0n has joined #ruby
shaunbaker has quit [Remote host closed the connection]
subbyyy has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
stozza has joined #ruby
stozza has left #ruby [#ruby]
AndChat| has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
seejohnrun has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: Leaving.]
sambao21 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
alem0lars has joined #ruby
hogeo has quit [Remote host closed the connection]
ILoveYou has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
ntus1017 has joined #ruby
ILoveYou[ has joined #ruby
Virunga has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
predator117 has joined #ruby
kofno has joined #ruby
ILoveYou has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
wesside has joined #ruby
browndawg has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
bluenemo has quit [Quit: Verlassend]
ciziar has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
jimg has quit [Ping timeout: 248 seconds]
kofno has quit [Ping timeout: 276 seconds]
wesside has quit [Client Quit]
kpshek has joined #ruby
cantonic has joined #ruby
gustavn has joined #ruby
jztech101_ has joined #ruby
chxane has joined #ruby
cofin has joined #ruby
wesside has joined #ruby
freerobby has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
kpshek has quit [Ping timeout: 268 seconds]
jztech101_ has quit [Client Quit]
Ortuna has joined #ruby
JZTech101 has joined #ruby
burlyscudd has joined #ruby
shaunbaker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 264 seconds]
Jackneill has quit [Remote host closed the connection]
anay has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
visof has joined #ruby
vlad_starkov has joined #ruby
sambao21 has joined #ruby
ravenzz has joined #ruby
ravenzz has quit [Changing host]
ravenzz has joined #ruby
visof has quit [Client Quit]
sambao21 has quit [Client Quit]
Ry0__ has quit []
leonid__ has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Ry0_ has joined #ruby
wallerdev has joined #ruby
akashj87 has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
anay has quit [Remote host closed the connection]
jalcine has quit [Excess Flood]
bklane has joined #ruby
pskosinski_ has joined #ruby
Dekade has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
seejohnrun has joined #ruby
DaniG2k has joined #ruby
sambao21 has joined #ruby
takezawa has quit [Remote host closed the connection]
maxmanders has joined #ruby
_serial_ has joined #ruby
freeayu has quit [Remote host closed the connection]
pskosinski_ is now known as pskosinski
_serial_ has quit [Client Quit]
maxmanders has quit [Ping timeout: 256 seconds]
akashj87_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
pitzips has joined #ruby
akashj87 has quit [Ping timeout: 276 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
atno has quit [Remote host closed the connection]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
seejohnrun has quit [Ping timeout: 264 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jefflyne has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
r0bgleeson has quit [Ping timeout: 256 seconds]
akashj87__ has joined #ruby
julweber has quit [Remote host closed the connection]
noop has joined #ruby
atno has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
akashj87_ has quit [Ping timeout: 276 seconds]
cburyta_ has joined #ruby
jimg has joined #ruby
Binauralman has joined #ruby
kofno has joined #ruby
atno has quit [Remote host closed the connection]
denver has joined #ruby
atno has joined #ruby
vdandre has joined #ruby
poseid has joined #ruby
jalcine- has joined #ruby
akashj87_ has joined #ruby
ILoveYou[ has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 248 seconds]
ILoveYou has joined #ruby
sailias has joined #ruby
akashj87__ has quit [Ping timeout: 276 seconds]
relix has joined #ruby
ravster has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<alem0lars> I'm trying to use FFI to declare a struct stat using FFI::Struct, however it doesn't work. I'm supposing that it doesn't find the types. Is this correct: https://gist.github.com/alem0lars/5940149
tkuchiki has joined #ruby
poseid has quit [Quit: poseid]
gustavn has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
cam`_ has joined #ruby
DestinyAwaits1 has joined #ruby
ILoveYou has quit [Read error: Connection reset by peer]
poseid has joined #ruby
arya__ has joined #ruby
julweber has joined #ruby
ravster has left #ruby [#ruby]
IceDragon has joined #ruby
ILoveYou has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
DestinyAwaits has quit [Ping timeout: 256 seconds]
DestinyAwaits1 is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
cburyta_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jonathanwallace1 has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
freerobby has quit [Ping timeout: 248 seconds]
shaunbaker has quit [Remote host closed the connection]
generalissimo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Mattix has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
ILoveYou has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
nomenkun has joined #ruby
cofin has joined #ruby
cburyta_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ILoveYou has joined #ruby
ntus1017 has quit [Remote host closed the connection]
akashj87__ has joined #ruby
DaniG2k has left #ruby [#ruby]
nomenkun has quit [Ping timeout: 248 seconds]
JZTech101 has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
akashj87_ has quit [Ping timeout: 276 seconds]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
pythogorian has joined #ruby
wallerdev has quit [Quit: wallerdev]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
axeman- has quit [Ping timeout: 268 seconds]
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
axeman- has joined #ruby
<alem0lars> how can i use an already defined C struct (struct stat) using FFI?
ryanhirsch has joined #ruby
ravenzz has quit []
flaritycat has joined #ruby
<flaritycat> Hi, could anyone point me in the right direction of reading good examplecode for Ruby? I am interested in examples that are alike to UDF's and such.
ciziar has quit [Quit: Computer has gone to sleep.]
nuba_ is now known as nuba
meowsus has joined #ruby
Ry0_ has joined #ruby
workmad3 has joined #ruby
ravster has joined #ruby
sayan has quit [Ping timeout: 268 seconds]
arietis has joined #ruby
blischalk has joined #ruby
JZTech101 has joined #ruby
ashleyis has joined #ruby
havenwood has joined #ruby
Pacra has quit [Quit: Pacra]
nbouscal has joined #ruby
r0bgleeson has joined #ruby
thepumpk_ has quit [Remote host closed the connection]
IcyDragon has joined #ruby
ILoveYou has quit [Read error: Connection reset by peer]
ILoveYou has joined #ruby
Ry0_ has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 264 seconds]
ntus1017 has joined #ruby
kofno has joined #ruby
brennanMKE has joined #ruby
ravster has quit [Ping timeout: 256 seconds]
Astralum has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Ry0_ has joined #ruby
lwt has quit [Ping timeout: 264 seconds]
ntus1017 has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
jonathanwallace2 has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jonathanwallace1 has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
Davey has joined #ruby
arubin has joined #ruby
AlHafoudh has joined #ruby
joshcheek has joined #ruby
jimg has joined #ruby
jonathanwallace3 has joined #ruby
joshcheek has quit [Read error: Connection reset by peer]
subbyyy has quit [Read error: Connection reset by peer]
jonathanwallace2 has quit [Ping timeout: 268 seconds]
joshcheek has joined #ruby
subbyyy has joined #ruby
gustavn has joined #ruby
joshcheek has quit [Read error: Connection reset by peer]
<alainus> I have an array made like this: %w(bla bla bla), but Arel (a SQL query builder) only takes symbols, so I need to convert the array to [:bla, :bla, :bla], any tips ?
joshcheek has joined #ruby
Pacra has joined #ruby
<Morrolan> alainus: array.map(&:to_sym)
<havenwood> $i(blah blah blah); #=> [:blah, :blah, :blah]
joshcheek has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
<havenwood> yeah, or #map(&:to_sym) if you aren't the one making it
<havenwood> %i()
<havenwood> $ was a typo >.>
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Morrolan> Oh, wasn't aware fo the %i shorthand. :)
ILoveYou has quit [Read error: Connection reset by peer]
<r0bgleeson> its new
<havenwood> Morrolan: New in 2.0. :D Tenderlove's contribution.
jimg has quit [Ping timeout: 264 seconds]
<alainus> is that legal? I mean, isn't it weird that the gem only takes symbols as values ?
<alainus> any ideas on why that could be ?
ILoveYou has joined #ruby
<Morrolan> The stacktrace might show what he's trying to do, respectively why it must be a symbol.
vlad_starkov has joined #ruby
wallerdev has joined #ruby
<alainus> after converting the words with %i, now it's properly a hash, right ?
<alainus> not an array
Hanmac has joined #ruby
<Morrolan> >> %i(a b c)
<eval-in_> Morrolan => [:a, :b, :c] (https://eval.in/36631)
Ry0_ has quit [Remote host closed the connection]
<Morrolan> Nope, array of symbols.
<havenwood> alainus: nope, an array of symbols
ravster has joined #ruby
<alainus> thanks guys
snearch has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
<alainus> now I'd like to convert each :blabla to :%blabla%. I'm trying arr.map! { |i| i=":%i%" }
Hanmac1 has quit [Ping timeout: 248 seconds]
<alainus> but apparently they stop being symbols after that
seme has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ILoveYou has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
relix has joined #ruby
seme is now known as Guest79761
<alainus> >> %w(a b c).map!(|i| i = "%#{i}%").map(&:to_sym)
<eval-in_> alainus => /tmp/execpad-94012a1939fc/source-94012a1939fc:2: syntax error, unexpected '|', expecting ')' ... (https://eval.in/36633)
ILoveYou has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<havenwood> no need for `i =` and :%syntax_error%
<alainus> >> %w(a b c).map!(|i| "%#{i}%").map(&:to_sym)
<eval-in_> alainus => /tmp/execpad-fbabec8a23b4/source-fbabec8a23b4:2: syntax error, unexpected '|', expecting ')' ... (https://eval.in/36636)
burlyscudd has joined #ruby
<Morrolan> There's a few things wrong with that example. You can not assign to the block variable, you are lacking string interpolation, and a string needs to be converted to a symbol again.
<havenwood> alainus: You can have a Symbol like :"%why%" but not :%never%
<havenwood> but why?
<Morrolan> Oh, welp, I was scrolled up.
ravster has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
zodiak has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
<alainus> havenwood, I'm trying to use Arel as a SQL builder. It works like this: user.project(:id).where(user[:email].matches_any(emails)) where emails = %i(a b c). That'll output: SELECT id FROM user WHERE (email LIKE "a" OR email LIKE "b" OR email LIKE "c")
<alainus> However, I need SELECT id FROM user WHERE (email LIKE "%a%" OR email LIKE "%b%" OR email LIKE "%c%")
<havenwood> alainus: Pretty fugly...: %i(a b c).map { |e| :"%#{e}%" }; #=> [:"%a%", :"%b%", :"%c%"]
<r0bgleeson> huh that makes for an annoying API
<r0bgleeson> are you sure it doesn't take strings?
ILoveYou has quit [Read error: Connection reset by peer]
<alainus> r0bgleeson, yep, it outputs the strings as zeros
<alainus> can anyone suggest another method? maybe it's best to build the SQL query with string manipulation ...
vlad_starkov has joined #ruby
<r0bgleeson> >> %i(%a% %b% %c%)
<eval-in_> r0bgleeson => [:"%a%", :"%b%", :"%c%"] (https://eval.in/36637)
ToApolytoXaos has joined #ruby
<r0bgleeson> man that looks fucked up
<havenwood> r0bgleeson: hehe, nice
<havenwood> very
burlyscudd has quit [Ping timeout: 276 seconds]
ILoveYou has joined #ruby
nomenkun has joined #ruby
goshakkk has joined #ruby
Axsuul has joined #ruby
hogeo has joined #ruby
kofno has quit [Remote host closed the connection]
<alainus> yeah it does.
<alainus> I was hoping sqldsl could work, as it is much simpler to use
jonkri_ has joined #ruby
<alainus> but the thing hasn't been updated in about 5 years
<r0bgleeson> why not use Sequel?
banghouse has joined #ruby
<alainus> r0bgleeson, that was the alternative. But I'm concerned that it only works when you have an active_record connection and corresponding database structure (i.e. Person.where("id" = 1) --> SELECT 'people' WHERE ('id' = 1); )
<alainus> I don't know if you can use it with any database
<alainus> which is what I'm doing
<r0bgleeson> why do you think it only works with an AR schema?
jonkri has quit [Ping timeout: 264 seconds]
<r0bgleeson> i mean, im sure it uses foreign keys in the same way
<r0bgleeson> the focus isn't on being *just* an ORM though
vlad_starkov has quit [Ping timeout: 248 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
arietis has joined #ruby
Ortuna has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
ILoveYou has quit [Read error: Connection reset by peer]
<alainus> r0bgleeson, I'll investigate. Arel has a pretty complicated usage, and algo it only works when the connection to the database is made with ActiveRecord (ActiveRecord::Base.establish_connection()). I'd like to use mysql2 for simplicity.
<alainus> Not to mention it has zero documentation
<havenwood> Sequel gem is nice.
Ry0_ has joined #ruby
ILoveYou has joined #ruby
<alainus> how would you guys do it ? If you had to build a script to do some simple-to-not-so-simple MySQL queries on a database, but keep the queries dynamically built from arrays, external files, etc.
robscomputer_ has joined #ruby
Emmanuel_Chanel has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<r0bgleeson> I'd use sequel
<havenwood> If the DB is MySQL, I'd use Sequel.
<alainus> ok I'm going for that then. Bye bye Arel
<alainus> Thanksx
sayan has joined #ruby
anay has joined #ruby
cburyta_ has quit [Remote host closed the connection]
<havenwood> Ruby Object Mapper looks really interesting for the future: http://rom-rb.org
<havenwood> Datamapper 2 ^
robscomputer has quit [Ping timeout: 264 seconds]
<Morrolan> Oh? Neat. I used DM a while ago when working with a legacy scheme, worked like a charm.
ravster has joined #ruby
Shirakawasuna has joined #ruby
viszu has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 248 seconds]
jefflyne has joined #ruby
ILoveYou has quit [Read error: Connection reset by peer]
jonathanwallace4 has joined #ruby
Hanmac has quit [Remote host closed the connection]
<havenwood> rom is using ruby-install/chruby for their Ruby setup on vagrant: https://github.com/rom-rb/rom-vagrant/blob/master/cookbooks/main/recipes/default.rb
thebastl has joined #ruby
<havenwood> \o/
agjacome has quit [Quit: leaving]
jonathanwallace3 has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
<Morrolan> You're quite fond of these two tools, eh? :P
cofin has quit [Quit: cofin]
viszu has joined #ruby
<r0bgleeson> i switched to chruby
<r0bgleeson> still using ruby-build though
<r0bgleeson> now its just ruby-build 2.0.0.-p0 ~/.rubies/2.0.0.-p0
browndawg has quit [Quit: Leaving.]
<r0bgleeson> i like that chruby fuzzy matches when you version switch
<alainus> Now that's what I call documentation =D
<r0bgleeson> i can say 'chruby 2.0.0' and it'll figure it out.
<alainus> Sequel
sambao21 has joined #ruby
atno has quit [Ping timeout: 264 seconds]
<r0bgleeson> yup, good docs
<r0bgleeson> it doesnt focus on the ORM
Ry0_ has quit [Remote host closed the connection]
<r0bgleeson> ping
pythogorian has quit [Ping timeout: 276 seconds]
sambao21 has quit [Client Quit]
<havenwood> r0bgleeson: w00t, yeah ruby-install is just barely ready for prime time
<havenwood> Morrolan: yup, i'm a fan boi
predator117 has quit [Ping timeout: 256 seconds]
<r0bgleeson> havenwood: i think adding 'rbenv install' was probably a bad idea
freerobby has joined #ruby
sambao21 has joined #ruby
<r0bgleeson> havenwood: it removed the separation of responsibilities from user and made them visible just to the developers
mcatch has quit [Quit: Page closed]
<r0bgleeson> i forgot ruby-build even existed for a while :)
Davey has quit [Quit: Computer has gone to sleep.]
sam113101 is now known as sam113101_afk
_Andres has joined #ruby
Quashie has joined #ruby
Gruu has joined #ruby
Gruu has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 256 seconds]
predator117 has joined #ruby
jonathanwallace4 has quit [Ping timeout: 268 seconds]
havenwood has quit [Ping timeout: 268 seconds]
lwt has joined #ruby
<alainus> can rescue * => e be used in a begin .. end block to get ANY error into "e" ?
<MrZYX> just omit the *. Note though that's a code smell
havenwood has joined #ruby
poseid has quit [Quit: poseid]
<alainus> MrZYX, what's that?
jmimi has quit [Ping timeout: 256 seconds]
<MrZYX> you should almost always list the exceptions you expect
<MrZYX> an indicator for bad code
<alainus> I mean, I have the ones I expect, but I'd like to do something when something I don't expect comes up
sambao21 has quit [Quit: Computer has gone to sleep.]
<alainus> Which, possibly, is just being paranoid
<MrZYX> yeah, you'll notice soon enough if something bubbles up you don't expect :P
<MrZYX> rescuing everything and then log it usually just leads to you ignoring them :P
Davey has joined #ruby
<r0bgleeson> if im making network calls i always rescue SystemCallError
thecommongeek has joined #ruby
<r0bgleeson> MrZYX: in a Rails app its not uncommon for a background job to rescue everything and pass the exception to Airbrake.notify
<MrZYX> sure, that's why I'm using "usually", "almost" etc all the time ;)
<MrZYX> it's not the general case however
<r0bgleeson> yeah, it can be hard to rescue the right exceptions sometimes though
<r0bgleeson> APIs rarely document that
Pacra has quit [Quit: Pacra]
<MrZYX> so I guess all I really wanted to emphasize is that rescuing all exceptions should be a very conscious decision and not laziness
snearch has quit [Quit: Verlassend]
<r0bgleeson> yup
<MrZYX> and that's why I always consider such a statement as something to review
codezombie has joined #ruby
Pacra has joined #ruby
Pacra has quit [Client Quit]
<r0bgleeson> for example when i am using wrappers for web services or APIs sometimes it just isnt documented what happens in the event of error, so I rescue SystemCallError & usually a generic error class that might also cover the SystemCallError, hard to know
jimg has joined #ruby
<r0bgleeson> it might just be for a bad API response
vdandre has quit [Quit: leaving]
blischalk has quit [Ping timeout: 245 seconds]
ryanhirsch has quit [Ping timeout: 264 seconds]
popl has joined #ruby
cofin has joined #ruby
Ortuna has quit [Ping timeout: 268 seconds]
wesside has joined #ruby
takezawa has joined #ruby
Ortuna has joined #ruby
Binauralman has quit [Ping timeout: 276 seconds]
v0n has quit [Ping timeout: 276 seconds]
predator117 has quit [Ping timeout: 248 seconds]
tomzx_mac has joined #ruby
<havenwood> Anyone doing CTF? https://ctf.sigint.ccc.de
jimg has quit [Ping timeout: 256 seconds]
codecop has quit [Remote host closed the connection]
Ry0_ has joined #ruby
Ry0_ has quit [Remote host closed the connection]
<havenwood> a nice Rack challenge this time
Ortuna has quit [Read error: No route to host]
Ry0_ has joined #ruby
Ortuna has joined #ruby
ryanhirsch has joined #ruby
viszu has quit [Quit: Leaving.]
predator117 has joined #ruby
kobain has quit [Ping timeout: 276 seconds]
<alainus> In a rescue Exception => e, how do I output the line number ?
<alainus> Uh, no matter
Ry0_ has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
burlyscudd has joined #ruby
cofin has quit [Quit: cofin]
cantonic has quit [Quit: cantonic]
hamakn has quit [Remote host closed the connection]
blackmesa has joined #ruby
vlad_starkov has joined #ruby
visof has joined #ruby
<visof> hello
cburyta_ has joined #ruby
<MrZYX> alainus: e.backtrace contains the backtrace as an array
burlyscudd has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
Neomex1 has joined #ruby
queston has joined #ruby
abbsi has joined #ruby
meowsus has left #ruby [#ruby]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
<r0bgleeson> a string is a crappy representation of a backtrace though
<visof> i'm write a script that create a file then use `External command working on this file` but the command sees the file empty but when i check it using cat it has a content
<visof> is there any issues using ` ` ?
queston_ has joined #ruby
Neomex has joined #ruby
<Neomex> does qtruby support ruby 2.0.0? can't make it work
<Neomex> it says it cant find qtruby4.so (LoadError), though this file exist
queston has quit [Read error: Connection reset by peer]
<Neomex> ive installed qtbindings gem on windows
JZTech101 has joined #ruby
Neomex1 has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 276 seconds]
<Neomex> alternatively, what other ruby2 compatible GUI library would you recommend?
<MrZYX> visof: put a minimal example to reproduce into a gist
lewix has joined #ruby
ssvo has joined #ruby
fomatin has joined #ruby
<Neomex> even require 'qt' causes this
<popl> Neomex: can you paste the exact error message to gist?
workmad3 has quit [Ping timeout: 256 seconds]
Kar- has quit [Remote host closed the connection]
<r0bgleeson> Neomex: if youre on windows why is it looking for a .so file?
ryanhirsch has quit [Ping timeout: 276 seconds]
subbyyy has quit [Ping timeout: 248 seconds]
<Neomex> no idea, what might cause it, is it on IDE side or ruby SDK?
<r0bgleeson> .so is a dynamically linked library but for linux
<r0bgleeson> maybe it is a .dll in disguise? im not sure
hogeo has quit [Remote host closed the connection]
leonid__ has quit [Ping timeout: 268 seconds]
<visof> the error i got error: File rpmbuild/SPECS/cookbooks.spec does not appear to be a specfile.
<popl> Neomex: are you using require 'Qt4' in your code?
arietis has quit [Quit: Computer has gone to sleep.]
<visof> when i do check this spec file it has the content
<visof> i don't know what is the problem
cj3kim has joined #ruby
<visof> i have tried running the command using `` and exec and system
Es0teric has joined #ruby
<visof> but the same error i got
<r0bgleeson> visof: dont know if its the issue or not, but you should close the file so ruby is forced to flush its buffers (if any)
<Neomex> popl: I wasn't, but it doesnt work with it either
<visof> r0bgleeson, oh
<popl> Neomex: How did you install Qt4?
<visof> that's the issue
<visof> i will check
<MrZYX> visof: that neither uses `` nor is it self contained to reproduce whatever issue with `` you have. However your issue is that you use open & write without closing it before invoking the command. Use File.write instead
<Neomex> popl: through JetBrains gem manager
<visof> thanks r0bgleeson MrZYX
<popl> Neomex: I mean the Qt4 library.
<popl> Neomex: You're on Windows. You need to install that if you want to use Qt4
<popl> well I guess you'd need to install it anywayss
<popl> *anyways
Ortuna has quit [Quit: Computer has gone to sleep.]
<Neomex> Ahh, I thought gem includes all the needed files
txdv_ has quit [Read error: Operation timed out]
<popl> no, dude :)
txdv has joined #ruby
<Neomex> thats probably the cause, going to try it :)
ryanhirsch has joined #ruby
ryanhirsch has quit [Max SendQ exceeded]
<popl> that's definitely the cause
<popl> :)
cj3kim has quit [Read error: Connection reset by peer]
<r0bgleeson> way too hot
<r0bgleeson> bring on the winter
ryanhirsch has joined #ruby
cj3kim has joined #ruby
lethjakman has joined #ruby
Ry0_ has joined #ruby
<alainus> In an ar = [{:a => 1}, {:b => 2}, {:c => 3}], how do I get ar = [1, 2, 3]
<alainus> >> [{:a => 1}, {:b => 2}, {:c => 3}].map(&.keys)
<eval-in_> alainus => /tmp/execpad-67e1f7b5799f/source-67e1f7b5799f:2: syntax error, unexpected '.' ... (https://eval.in/36645)
<MrZYX> >> [{:a => 1}, {:b => 2}, {:c => 3}].map(&:values).flatten(1)
<eval-in_> MrZYX => [1, 2, 3] (https://eval.in/36646)
freerobby has joined #ruby
<havenwood> flat_map(&:first)
cburyta_ has quit []
<yxhuvud> >> [{:a => 1}, {:b => 2}, {:c => 3}].flat_map &:values
<eval-in_> yxhuvud => [1, 2, 3] (https://eval.in/36647)
<alainus> awesome. Thank you
arietis has joined #ruby
tommyvyo has quit [Quit:]
<r0bgleeson> >> [{a: 1}, {b: 2}, {c: 3}].inject(&:merge).values
<eval-in_> r0bgleeson => [1, 2, 3] (https://eval.in/36648)
<havenwood> err, what yxhuvud said - dunno why i put :first there >.>
Ry0_ has quit [Read error: Connection reset by peer]
gokul has joined #ruby
abbsi has quit []
adkron has joined #ruby
ericmathison has joined #ruby
Ry0_ has joined #ruby
sayan has quit [Quit: Leaving]
seejohnrun has joined #ruby
ryanhirsch has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 268 seconds]
adkron_ has quit [Ping timeout: 276 seconds]
Ry0_ has quit [Remote host closed the connection]
queston_ has quit [Remote host closed the connection]
<r0bgleeson> when did flat_map get added
Quashie has quit [Quit: Leaving]
<yxhuvud> 1.9 sometime.
<popl> something something IKEA
<havenwood> 1.9.2 it looks like
<havenwood> yeah, no #flat_map in 1.9.1
adkron has quit [Ping timeout: 256 seconds]
<r0bgleeson> awesome
noop has quit [Ping timeout: 264 seconds]
adkron has joined #ruby
ryanhirsch has joined #ruby
Jefus has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
akashj87__ has quit [Quit: Leaving]
Guest79761 has quit [Ping timeout: 264 seconds]
seejohnrun has quit [Ping timeout: 256 seconds]
Ortuna has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
AlHafoudh has joined #ruby
nbouscal has joined #ruby
jimg has joined #ruby
noop has joined #ruby
visof has quit [Quit: Leaving]
cofin has joined #ruby
ryanhirsch has quit [Ping timeout: 276 seconds]
yacks has quit [Ping timeout: 268 seconds]
jimg has quit [Ping timeout: 264 seconds]
bklane has quit [Remote host closed the connection]
ryanhirsch has joined #ruby
reset has joined #ruby
hogeo has joined #ruby
bnagy has quit [Ping timeout: 268 seconds]
queston has joined #ruby
poseid has joined #ruby
<alainus> Where can I find docs on the splat operator ? (*), it doesn't seem to be on the Array class
workmad3 has joined #ruby
v0n has joined #ruby
<r0bgleeson> i dont think its documented in the docs
freerobby has joined #ruby
staafl has quit [Read error: Connection reset by peer]
hogeo has quit [Ping timeout: 268 seconds]
thecommongeek has quit [Quit: This computer has gone to sleep]
<alainus> Thanks MrZYX
burlyscudd has joined #ruby
pkrnj has joined #ruby
ryanhirsch has quit [Ping timeout: 268 seconds]
freerobby has quit [Ping timeout: 248 seconds]
pipework has joined #ruby
Xeago has joined #ruby
nari has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
jonathanwallace4 has joined #ruby
matematikaadit has joined #ruby
ryanhirsch has joined #ruby
nomenkun has joined #ruby
pythogorian has joined #ruby
EPIK has quit [Ping timeout: 256 seconds]
lethjakman has quit [Ping timeout: 248 seconds]
DandyPandy_ has joined #ruby
Xeago_ has joined #ruby
bnagy has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
<DandyPandy_> Hi everyone. I have an object on which I would like to update multiple attributes on an existing. Is there a general method that applies to all objects to make multiple attribute assignments, or do I have to assign each attribute individually?
yacks has joined #ruby
<DandyPandy_> wow, that sentence was messed up. *an existing object
DandyPandy_ is now known as DandyPandy
m8 has quit [Read error: Connection reset by peer]
echevemaster has joined #ruby
Neomex has quit []
nomenkun has quit [Ping timeout: 264 seconds]
Ortuna has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
<waxjar> "attributes" (instance variables, really) can only be accessed trough method calls (attr_accessor & friends just define methods)
bklane has joined #ruby
<DandyPandy> waxjar: I'm barely inducted into the world of ruby. I'm coming to it via chef, so my nomeclature is surely to be off
queston has quit [Remote host closed the connection]
jbpros has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
anay has quit [Remote host closed the connection]
<Morrolan> DandyPandy: Might be a good idea if you uploaded some example code on gist.github.com, and described your desired behaviour? :)
brennanMKE has quit [Remote host closed the connection]
bondar has joined #ruby
ryanhirsch has quit [Ping timeout: 264 seconds]
<DandyPandy> So I'm using fog (fog.io) to create/update dns records via chef. This is what I'm doing and the highlighted area is where I'm wondering if there might be a better way of doing it. https://gist.github.com/anonymous/2b08268610719caeddae#file-gistfile1-rb-L15-L19
pitzips has quit [Ping timeout: 248 seconds]
ffio has joined #ruby
pitzips has joined #ruby
pythogorian has quit [Quit: leaving]
b0oh has joined #ruby
ffio has quit [Client Quit]
pythogorian has joined #ruby
<DandyPandy> What I have works, but I'm going to try to make the cookbook public and don't want to embarrass mysql
seejohnrun has joined #ruby
<fbernier> Why would the mutex be a class variable here? https://github.com/ysbaddaden/prax/blob/master/lib/prax/spawner.rb#L6
Virunga has quit [Remote host closed the connection]
<r0bgleeson> fbernier: locked shared by all instances, probably
<r0bgleeson> lock*
cj3kim has quit [Remote host closed the connection]
<r0bgleeson> so when one instance hits #synchronize other instances in different threads will need to wait
<r0bgleeson> probably because there is shared state
Asher1 has joined #ruby
<fbernier> makes sens, thanks
sam113101_afk is now known as sam113101
b0oh has left #ruby [#ruby]
jonkri_ has quit [Quit: jonkri_]
Asher has quit [Ping timeout: 264 seconds]
jds has joined #ruby
DanKnox_away is now known as DanKnox
pitzips has quit [Ping timeout: 256 seconds]
pythogorian has left #ruby [#ruby]
poseid has quit [Quit: poseid]
<matematikaadit> DandyPandy: your example is fine as it is. But if you prefer you could iterate over a symbol and use #instance_variable_get #instance_variable_set
Hugo_Henrique has joined #ruby
berkes has joined #ruby
Hugo_Henrique has left #ruby [#ruby]
<DandyPandy> matematikaadit: thanks for taking a look
jonahR has joined #ruby
pythogorian has joined #ruby
pythogorian has quit [Quit: Lost terminal]
Node has joined #ruby
Ry0_ has joined #ruby
<matematikaadit> DandyPandy: np
atno has joined #ruby
Mars` has joined #ruby
vlad_starkov has joined #ruby
Ry0_ has quit [Ping timeout: 248 seconds]
Jefus has quit [Ping timeout: 268 seconds]
Asher1 has quit [Ping timeout: 268 seconds]
matematikaadit has quit [Quit: Leaving]
jds has quit [Remote host closed the connection]
pythogorian has joined #ruby
jds has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
queston has joined #ruby
seejohnrun has quit [Ping timeout: 264 seconds]
pythogorian has quit [Client Quit]
Hare has joined #ruby
queston has quit [Remote host closed the connection]
james_ has joined #ruby
<Hare> Im trying to use reg ex to extractthe body of an email sent from yahoo(dunno if that matters) anyways I have ot working.. but my code seems sloppy.. can anyone tell me if there is a better way to do it. http://pastebin.com/qarm2SWq
james_ is now known as Guest60757
jimg has joined #ruby
thecommongeek has joined #ruby
jds has quit [Ping timeout: 264 seconds]
troker has quit [Quit: troker]
brennanMKE has joined #ruby
lateralus has joined #ruby
fenicks has quit [Ping timeout: 264 seconds]
queston has joined #ruby
tjbiddle has joined #ruby
jbpros has quit [Quit: jbpros]
lateralus has quit [Client Quit]
ntus1017 has joined #ruby
Asher has joined #ruby
altivec has joined #ruby
altivec has quit [Client Quit]
jimg has quit [Ping timeout: 264 seconds]
fenicks has joined #ruby
petru has joined #ruby
<petru> Hi. Can anyone please point me to a simple IRC framework that works and is fairly well documented?
Ry0_ has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
kindjal has joined #ruby
Jefus has joined #ruby
gnutz has joined #ruby
_s14_ has quit [Ping timeout: 248 seconds]
BizarreCake has quit [Remote host closed the connection]
<kindjal> rubygems.org is down?
tjbiddle has quit [Quit: tjbiddle]
<kindjal> 54.245.255.174
freerobby has joined #ruby
<dominikh> correct IP, works here though.
<kindjal> hmm.. there it is
<kindjal> weird
<petru> r0bgleeson, mm, I've looked into it before, but something went wrong
chattmatt has joined #ruby
zigomir has joined #ruby
flaritycat has quit [Ping timeout: 240 seconds]
Virunga has joined #ruby
ssvo has quit [Ping timeout: 248 seconds]
matematikaadit has joined #ruby
jonathanwallace4 has quit [Ping timeout: 268 seconds]
freerobby has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
reset has quit [Quit: Leaving...]
nomenkun has joined #ruby
momomomomo has joined #ruby
queston has quit [Remote host closed the connection]
thepumpkin has joined #ruby
denver has quit [Remote host closed the connection]
iamjbecker has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Guest60757 has quit [Quit: Leaving]
seejohnrun has joined #ruby
generalissimo has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 268 seconds]
seejohnrun has quit [Ping timeout: 264 seconds]
goganchi_ has joined #ruby
Ry0_ has joined #ruby
goganchi_ has quit [Client Quit]
Ry0_ has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
ashleyis_ has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
ashleyis has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtree has joined #ruby
mtree has left #ruby ["WeeChat 0.4.0"]
thoolihan has joined #ruby
reset has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
jalcine- has quit [Excess Flood]
freerobby has joined #ruby
thesheff17 has quit [Remote host closed the connection]
Node has quit [Ping timeout: 256 seconds]
goganchic has joined #ruby
axeman- has quit [Remote host closed the connection]
jmimi has joined #ruby
cj3kim has joined #ruby
ravster has quit [Quit: Leaving.]
generalissimo has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
jonahR has quit [Ping timeout: 276 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Davey has quit [Quit: Computer has gone to sleep.]
braincra- has joined #ruby
braincrash has quit [Ping timeout: 248 seconds]
braincra- is now known as braincrash
matematikaadit has quit [Quit: Leaving]
cj3kim has quit [Ping timeout: 248 seconds]
thoolihan has quit [Quit: thoolihan]
pythogorian has joined #ruby
Hare has quit [Quit: Page closed]
Axsuul has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
Ry0_ has joined #ruby
popl has quit [Quit: gotta go]
pythogorian has quit [Client Quit]
cads has joined #ruby
jimg has joined #ruby
v0n has quit [Ping timeout: 268 seconds]
thepumpkin has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
goganchic has left #ruby [#ruby]
epochwolf has quit [Max SendQ exceeded]
Davey has joined #ruby
wsterling has joined #ruby
arya__ is now known as arya
jalcine has joined #ruby
arya is now known as Guest76890
Guest76890 is now known as arya_
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
jimg has quit [Ping timeout: 256 seconds]
epochwolf has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
thoolihan has joined #ruby
jds has joined #ruby
AndChat| has quit [Quit: Bye]
soulcake has quit [Quit: ZNC - http://znc.in]
lkba has joined #ruby
thoolihan has quit [Client Quit]
soulcake has joined #ruby
zmike123 has quit [Ping timeout: 268 seconds]
gnutz has quit [Quit: Konversation terminated!]
ndngvr` has quit [Read error: Connection reset by peer]
poseid has joined #ruby
codecop has joined #ruby
BombStrike has quit [Quit: ZNC - http://znc.sourceforge.net]
whowantstolivefo has joined #ruby
jds has quit [Ping timeout: 264 seconds]
wesside has quit [Quit: I think I heard an ice cream truck..]
kindjal has quit [Ping timeout: 264 seconds]
BombStrike has joined #ruby
freerobby has joined #ruby
wesside has joined #ruby
diegoviola has joined #ruby
lwt has quit [Ping timeout: 248 seconds]
thoolihan has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
Astralum has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 276 seconds]
lwt has joined #ruby
icecandy has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
goshakkk has joined #ruby
nomenkun has joined #ruby
icecandy has quit [Remote host closed the connection]
cofin has joined #ruby
icecandy has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
Ry0_ has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
queston has joined #ruby
ryanhirsch has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
fomatin has joined #ruby
kaichanvong has quit [Read error: Operation timed out]
headius has joined #ruby
alem0lars has joined #ruby
kaichanvong has joined #ruby
queston has quit [Ping timeout: 264 seconds]
Shirakawasuna has quit [Quit: Leaving]
machuga- is now known as machuga
cofin has quit [Quit: cofin]
headius has quit [Client Quit]
destruct1re has quit [Read error: Operation timed out]
colonolGron has quit [Quit: Lost terminal]
generalissimo has quit [Remote host closed the connection]
destructure has joined #ruby
<alainus> Given a = [1,2,3,4,5], how can I build: "ELT(1+rand()*4, [1, 2, 3, 4, 5])", I'm attempting with Splat, but it doesn't work: "ELT(1+rand()*#{a.count-1}, #{*a})"
queston has joined #ruby
<alainus> I'm sorry, what I need to build is: "ELT(1+rand()*4, 1, 2, 3, 4, 5)"
gokul has quit [Ping timeout: 248 seconds]
<alainus> "ELT(1+rand()*4, [1, 2, 3, 4, 5])" is what I DON'T want
<MrZYX> ELT(1+rand*4, *a)
<alainus> 4 needs to be a-1
<waxjar> "ELT(1+rand*#{a.count - 1}, #{a.join ","}"
<alainus> a.count-1 sorry
<MrZYX> so, what, the important part is , *a)
<alainus> waxjar, That's it. Stupid of me. Thanks
<waxjar> :)
<MrZYX> oh, that should be a string
<alainus> I get caught in the sophistication of Ruby and forget the basics
Matip has joined #ruby
queston has quit [Ping timeout: 264 seconds]
<waxjar> the splat operator is used to catch a couple of arguments as an Array: if you have a method with the signature name(one, *two), the first argument will be caught by "one" and the rest of the arguments will be caught as an Array in "two".
<waxjar> it's also used in variable assignment like so: one, two = *[1, 2]
<waxjar> one is now 1, two is 2
<MrZYX> uhm, one, two = [1, 2] work just fine since = 1, 2 is an implicit array
Mattix has quit [Ping timeout: 248 seconds]
<MrZYX> also the splat can be used when calling a method to pass an array to as individual arguments, def foo(one, two); end; foo(*[1, 2])
thebastl has quit [Remote host closed the connection]
<waxjar> oh wow, i did not know that
<alainus> this is great
<MrZYX> and on the left hand side of an assignment to eat up the rest, one, *other = [1, 2, 3]; other #=> [2, 3]
<MrZYX> or even *other, three = [1, 2, 3]; other #=> [1, 2]
freerobby has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
<MrZYX> now lets combine that with array decomposition: (one, *two_and_three), (four, *five_and_six) = [1, 2, 3], [4, 5, 6]
<MrZYX> and yes, you can use that in method definitions too
iamjbeck_ has joined #ruby
txdv has quit [Ping timeout: 248 seconds]
iamjbecker has quit [Ping timeout: 268 seconds]
Asher has joined #ruby
chattmatt has quit [Quit: chattmatt]
Virunga has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
brennanMKE has joined #ruby
staafl has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
txdv has joined #ruby
popl has joined #ruby
Astralum has joined #ruby
iamjbeck_ has quit [Remote host closed the connection]
jimg has joined #ruby
berkes has quit [Ping timeout: 264 seconds]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
stkowski has joined #ruby
CaptainJet has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
ssvo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
goshakkk has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<jmsbrwr> My project is telling me it can't require a gem that bundler installed. If there were something going wrong with the gem, would I still get a 'cannot load such file' error when requiring it
pskosinski has quit [Remote host closed the connection]
braincra- has joined #ruby
pskosinski has joined #ruby
tjbiddle has joined #ruby
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby
s0ber_ has joined #ruby
braincrash has quit [Ping timeout: 264 seconds]
iamjbecker has joined #ruby
s0ber has quit [Ping timeout: 246 seconds]
s0ber_ is now known as s0ber
freerobby has joined #ruby
staafl has quit [Quit: Leaving]
Davey has joined #ruby
reset has joined #ruby
_seanc_ has joined #ruby
_seanc_ has quit [Client Quit]
lethjakman has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
_seanc_ has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
riku has quit [Ping timeout: 246 seconds]
poseid has quit [Quit: poseid]
marr has joined #ruby
riku has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
`p has quit [Read error: Operation timed out]
echevemaster has quit [Quit: Leaving]
icecandy has quit [Remote host closed the connection]
xardas has quit [Ping timeout: 268 seconds]
<prsn> does anyone here use the ruby emacs mode? And if so, have you found a way to fix its horrible overindentation of function args on new lines?
postmodern has joined #ruby
thepumpkin has joined #ruby
xardas has joined #ruby
axe has joined #ruby
subbyyy has joined #ruby
axe has quit []
Davey has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
lwt has quit [Ping timeout: 268 seconds]
dwirc has quit [Ping timeout: 268 seconds]
mickeyd has joined #ruby
nettoweb has quit [Quit: nettoweb]
freerobby has joined #ruby
lwt has joined #ruby
<mickeyd> im trying to write a ruby script and I defined a method at the bottom of the script but when i try to refer to it, it says its an undefined method what am I doing wrong? https://gist.github.com/anonymous/3f2bd174101b975f7776
<MrZYX> you called it before you defined it
<mickeyd> oh! thanks :D
brennanMKE has quit [Remote host closed the connection]
<MrZYX> foo; def foo; end; doesn't work. note though that def bar; foo; end; def foo; end; bar; would work
freerobby has quit [Ping timeout: 248 seconds]
Node has joined #ruby
alem0lars has quit [Ping timeout: 264 seconds]
asellus has quit [Quit: WeeChat 0.4.0]
ssvo has quit [Ping timeout: 264 seconds]
jmimi has quit [Ping timeout: 264 seconds]
kaichanvong has quit [Quit: _]
jimg has joined #ruby
alem0lars has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
cofin has joined #ruby
rickruby has joined #ruby
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
cofin has quit [Ping timeout: 276 seconds]
Asher has quit [Ping timeout: 276 seconds]
braincra- has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
dwirc has joined #ruby
_seanc_ has quit [Quit: _seanc_]
zigomir has quit [Ping timeout: 276 seconds]
pkrnj has joined #ruby
ericmathison has quit [Quit: leaving]
_seanc_ has joined #ruby
thibauts_ has quit [Ping timeout: 268 seconds]
thibauts has joined #ruby
braincrash has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
Mars^ has joined #ruby
brennanMKE has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
verto has quit [Ping timeout: 276 seconds]
thibauts has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
Node has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 276 seconds]
jmimi has joined #ruby
dwirc has quit [Read error: Connection reset by peer]
_seanc_ has quit [Quit: _seanc_]
dwirc has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Pholey has joined #ruby
<Pholey> allrighty
thibauts has joined #ruby
<Pholey> in python there is is something called input, which run's python code in it's parameters
<Pholey> well
<Pholey> what the user entered as python code
brennanMKE has quit [Ping timeout: 276 seconds]
blischalk has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
<Morrolan> In Python 2, that is. Python 3's input() is equivalent to Python 2's raw_input().
<Morrolan> Got a feeling there's more to your question though, eh. ;)
<Pholey> yeah haha
<Pholey> basically, i have a random string of ruby code
<Pholey> that i would like to execute
<Morrolan> Aaand you feel the need to evaluate it.
<Pholey> aha
<Pholey> yes
<Pholey> thanks
<MrZYX> where do you have that string? in a file? in the shell? in a ruby program?
<Pholey> ruby program
<Pholey> but eval was what i needed
rickruby has quit [Remote host closed the connection]
<Pholey> eval(ruby_code)
<Pholey> i am writing a brainfuck to ruby interpreter
<MrZYX> hm, can you describe the actual usecase? I never had the need to use eval in ruby yet
<MrZYX> a
<MrZYX> h
<MrZYX> hm
<MrZYX> "to"?
<Pholey> well,
bklane has quit [Remote host closed the connection]
<Pholey> lets say i have x, x = gets
<Pholey> lets say the user enters "puts 'hello'"
<Pholey> i want it to print back "hello"
kaichanvong has joined #ruby
<MrZYX> well, that's irb or ruby -e
<Morrolan> So far it sounds like you're replicating irb or pry.
<Morrolan> *snrk*
<Pholey> sorta
<Pholey> like i said its an interpreter
<Pholey> from brainfuck to ruby
codecop has quit [Remote host closed the connection]
<MrZYX> still not sure what the "to" here means
kindjal has joined #ruby
<MrZYX> a brainfuck to ruby converter? a brainfuck interpreter in ruby?
<Pholey> convert brainfuck code into ruby code
<Pholey> in ruby
<Pholey> so both haha
<MrZYX> so why do you need to eval it then?
<MrZYX> just print the result
<Pholey> well, because after it is done translating, i want it to run
<MrZYX> I wouldn't expect a converter to actually run it
queston has joined #ruby
<MrZYX> ruby bf_converter.rb inputfile.bf | ruby ?
<MrZYX> should be up to the user what to do with it IMO
iamjbecker has quit [Remote host closed the connection]
<Pholey> yes, but i want it to stay inside the interpreter entirely
generalissimo has joined #ruby
<MrZYX> well then it's an interpreter
<Pholey> so no shell commands
<MrZYX> no need to generate ruby at all
Es0teric has quit [Remote host closed the connection]
<Pholey> well
<Pholey> its brainfuck to ruby
dwirc has quit [Ping timeout: 276 seconds]
<MrZYX> but if the generated shall only ever be executed and never leave the thing, why bother generating it at all?
suporte85 has joined #ruby
<MrZYX> *generated ruby
<MrZYX> feels pointless
<Pholey> you misunderstand
danslo has quit [Quit: danslo]
<Pholey> ./bf.rb inputfile.bf
<Pholey> ok
`p has joined #ruby
Mars^ has quit [Ping timeout: 248 seconds]
<Pholey> so after *converting* i need to execute
<Pholey> think brainfuck with ruby syntax
<Xeago_> then don't convert it, just interpret it
<Xeago_> no need to translate it into ruby
<Pholey> but i am telling you i need to
<MrZYX> yeah, all you need is a counter and print iirc
<MrZYX> you gave no reason yet
<Pholey> its complicated.. haha
<Pholey> can we just trust that its for a good reason
<MrZYX> nope :P
<Pholey> :/
<Pholey> well
queston has quit [Ping timeout: 252 seconds]
<MrZYX> I guess I should get some sleep instead :P
<Pholey> better yet
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<Pholey> code = "puts 'hello"
<Pholey> in a ruby script, how would i put "code" as part of the script itself
<Pholey> code = "puts 'hello"
ToApolytoXaos has quit [Quit: Leaving]
<Pholey> end = " world"
<Pholey> how would i get hello world with given information
<Pholey> and not "puts hello world"
<MrZYX> gsub("puts ", "") ? scnr
<Pholey> :/
<Pholey> but without any substitution methods
<Morrolan> You know the obligatory question now, yes?
<Pholey> ?
<Morrolan> "Why without substitution?" :P
pitzips has joined #ruby
jbueza has joined #ruby
<Pholey> because i want the variable "code" to be run as just that, code.
jbueza has quit [Max SendQ exceeded]
dwirc has joined #ruby
braincra- has joined #ruby
<MrZYX> eval can do that. However the real issue is again why you need it. Unless you're building a REPL of some sort there's almost always a better way for the user to input the information and for you to process it
jbueza has joined #ruby
<Pholey> ok,
<Pholey> let me see if i can explain
nettoweb has joined #ruby
jbueza has quit [Client Quit]
<prsn> pholey, do you understand why people are giving you a hard time about eval?
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
queston has joined #ruby
<Pholey> not really haha
<prsn> it's because in general it's incredibly dangerous.
<Pholey> sure
<prsn> not to mention error-prone
<Pholey> ^
<prsn> so it's much nicer to do things a different way, usually
v0n has joined #ruby
<prsn> if you are just making something for your own amusement, go ahead and use it
<Pholey> that is puts "hello world" in brainfuck
braincrash has quit [Ping timeout: 248 seconds]
<prsn> but if you want to learn good programming practices, don't
<Pholey> thats what i am doing
<Pholey> just for fun
<prsn> the OTHER issue here is why you seem to think that you want both a translator AND an interpreter
<Pholey> because brainfuck only has 8 items in it's syntax
<prsn> those are pretty different tasks, and it seems weird to smoosh them together
<MrZYX> pholey: and here are 60 lines C that can interpret that https://github.com/FabianM/brainfuck/blob/master/src/brainfuck.c
<prsn> what does that have to do with it?
<MrZYX> without using eval
<MrZYX> I bet you can translate that to ruby, can't you?
<Pholey> meaning, it cannot translate very well into ruby, since it can only really use basic programming things
<Pholey> well, i have a pure brainfuck interpreter already
<Pholey> no eval
<Pholey> it works just fine
freerobby has joined #ruby
<prsn> ok, so what is actual new use case you want to support?
<Pholey> however if i want to use ruby syntax with brainfuck...
<prsn> what do you mean "use with"?
<Pholey> so i can for example use "http.get"
<Pholey> translate it to a string, then run in ruby
queston has quit [Ping timeout: 248 seconds]
<prsn> why do you want the string? what will you do with it?
<Pholey> because there is nothing for http get in brainfuck
<Morrolan> As in, use Brainfuck to create an arbitrary string, then execute it in Ruby?
<Pholey> ^
<Pholey> winner
sailias has joined #ruby
<Pholey> its mainly a "pass the time" project
<prsn> ahhhh, that was VERY unclear ^_^
<Pholey> i didn't know how to explain it haha
<Pholey> so yes, while eval might be unsafe, it is as unsafe as running a normal script in this case
ybart has joined #ruby
<Pholey> at least i would think so
<MrZYX> I still think you should do that with ruby bf.rb input | ruby
<prsn> so wait, is the idea to write brainfuck programs that, WHEN RUN, output ruby programs?
maxmanders has joined #ruby
<prsn> or do you want to be able to somehow mix ruby into brainfuck programs?
<prsn> like, extend brainfuck's syntax with an "eval as ruby" operator?
<Pholey> well, i intend to mix brainfuck into ruby programs as well,
pitzips has quit [Ping timeout: 256 seconds]
CaptainJet has quit [Ping timeout: 248 seconds]
<Pholey> but currently when run, they output ruby programs
freerobby has quit [Ping timeout: 256 seconds]
<Pholey> but only when a special argument is passed however
<Pholey> otherwise it just falls back to the normal brainfuck interpreter
<prsn> but the brainfuck you mix in is not going to just do what you want it to do, it's going to output ruby that does what you want it to do?
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<Pholey> uhh
<prsn> so you'll have a source file that has some lines which are ruby that should just run, and some lines which are brainfuck that produces ruby strings that should run?
<Pholey> yes?
<Pholey> lol
<Pholey> i think so
<Pholey> if i understand you correctly
<prsn> okay. that's pretty weird ^_^
<Pholey> ahah
<Pholey> except i don't want it to output a file, make it look like it is all the "interpreter's doing"
<Pholey> make sense?
<prsn> yes
JZTech101 has joined #ruby
<prsn> but i think you can still avoid eval
<Pholey> how so?
r0bby has quit [Read error: Connection reset by peer]
<Pholey> to make things simpler, lets use the previous example code
maxmanders has quit [Ping timeout: 256 seconds]
<Pholey> code = "puts 'hello"
<Pholey> end = "world"
v0n has quit [Ping timeout: 264 seconds]
<Pholey> how do i get "hello world" without substitution or eval?
fomatin has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby
thepumpkin has quit [Remote host closed the connection]
<prsn> just keep the "file" in memory. write a script that has two parts: 1) a preprocessor reads in the file line by line, executes the brainfuck and replaces those lines with the results. 2) pipe the result to a ruby process
blischalk has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
robbyoconnor is now known as r0bby
<prsn> I think the only real reason to avoid eval though is like, separation of concerns. You are really doing two different things (preprocessing/interpreting brainfuck, and then running a ruby sourcefile) and it makes sense to keep them separate, e.g., not do them in the same ruby runtime
<prsn> with eval there could be namespace issues
<Pholey> i see
arya_ has quit [Ping timeout: 248 seconds]
ffio has joined #ruby
r0bby is now known as robbyoconnor
CaptainJet has quit [Client Quit]
<prsn> but i mean, it's your for-fun project, so do what you like :)
nettoweb has quit [Quit: nettoweb]
nettoweb has joined #ruby
DanKnox is now known as DanKnox_away
eka has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
fomatin has joined #ruby
brennanMKE has joined #ruby
thoolihan has quit [Quit: thoolihan]
pskosinski has joined #ruby
thepumpkin has joined #ruby
thoolihan has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
CaptainJet has joined #ruby
wargasm has quit [Ping timeout: 268 seconds]
thecommongeek has quit [Quit: This computer has gone to sleep]
blischalk has joined #ruby
danslo has joined #ruby
Node has joined #ruby
Node has quit [Client Quit]
Beoran_ has joined #ruby
JZTech101 has joined #ruby
redramires has joined #ruby
freerobby has joined #ruby
MrZYX is now known as MrZYX|off
arya_ has quit [Ping timeout: 248 seconds]
Beoran__ has quit [Ping timeout: 248 seconds]
renderful has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ruby
arya_ has joined #ruby
CaptainJet has quit []
freerobby has quit [Ping timeout: 248 seconds]
statarb3 has quit [Quit: Leaving]
xardas has quit [Ping timeout: 276 seconds]
brandon has joined #ruby
cj3kim has joined #ruby
brandon is now known as Guest73681
niklasb has joined #ruby
danslo has quit [Quit: danslo]
thoolihan has quit [Quit: thoolihan]
<Pholey> still on prsn?
<Pholey> this eval method is only accepting numbers :(
blischalk has quit [Ping timeout: 245 seconds]
yashshah has joined #ruby
predator217 has joined #ruby
alem0lars has quit [Quit: Leaving]
EPIK has joined #ruby
thoolihan has joined #ruby
<Morrolan> >> eval('x = 2 ** 3; puts "--#{x}--"')
<eval-in_> Morrolan => --8-- ... (https://eval.in/36672)
<Morrolan> Definitely doesn't. :)
<Pholey> hold on..
predator117 has quit [Ping timeout: 264 seconds]
<Pholey> `eval': can't convert Fixnum into String (TypeError)
<Pholey> what
<Pholey> its a string though
pitzips has joined #ruby
CaptainJet has joined #ruby
<Morrolan> Well, seemingly it's not. :)
<Morrolan> Do a `puts string.inspect` before eval-ing it. :)
<Pholey> ah
<Pholey> 0
<Pholey> there is a 0 floating arount in there for some reason
<Pholey> however,
<Pholey> when i do code.to_s, the 0 vanishes
<Pholey> odd
* Morrolan blinks
tjbiddle has quit [Quit: tjbiddle]
<Pholey> gahh
wallerdev has quit [Quit: wallerdev]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Pholey> ok, converting it to a string just causes eval to print out the command in the parentheses
<Morrolan> It's hard, if not impossible, to help you without a specific example of what you are feeding into eval, and what it returns to you.
serp` has joined #ruby
kindjal has quit [Ping timeout: 256 seconds]
shammancer has left #ruby ["Leaving."]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pholey> main does the dirty work
fomatin has joined #ruby
<Pholey> but that 0 comes out of nowhere
robscomputer_ has quit [Remote host closed the connection]
kindjal has joined #ruby
thoolihan has quit [Quit: thoolihan]
<Morrolan> What input are you running it with? :)
<Pholey> ah
<Pholey> well
<Pholey> let me link it for you
zets has quit [Ping timeout: 256 seconds]
Spooner has quit [Remote host closed the connection]
relix has joined #ruby
freerobby has joined #ruby
Spooner has joined #ruby
IcyDragon has quit [Ping timeout: 268 seconds]
Xeago_ has quit [Remote host closed the connection]
cofin has joined #ruby
ybart has quit [Quit: ybart]
wallerdev has joined #ruby
ntus1017 has quit [Remote host closed the connection]
snearch has joined #ruby
zets has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Morrolan> pholey: Well, 0 is the return value of the 'start' function.
<Morrolan> Now in main you assign ruby = start(args), and then try to eval(ruby).
<Pholey> gahh
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Xeago has quit [Remote host closed the connection]
doug1 has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
<Pholey> uhh
<doug1> newb question... return a value from a function? "foo"? return "foo" ?
Guest76890 has joined #ruby
<Pholey> how do i get rid of it?
<Morrolan> doug1: If there is no 'return' in a function, the last value will be returned implicitly.
<Pholey> it was working just a minute ago :/
<Pholey> without "0"
generalissimo has quit [Remote host closed the connection]
lwt has quit [Remote host closed the connection]
<kindjal> For rails + rbenv + passenger, why can't my rails app see gems installed by "bundle install"
<kindjal> I'm wondering if my apache config needs some SetEnv settings or something.
arya_ has quit [Ping timeout: 248 seconds]
<doug1> Morrolan: something else is up then. Working with puppet custom facts. I've got Facter.add("instance_type") do "unknown" end... and it's not returning 'unknown'
IcyDragon has joined #ruby
Guest76890 has quit [Client Quit]
fomatin has quit [Quit: Computer has gone to sleep.]
<Morrolan> kindjal: Might be a good idea to ask #rubyonrails as well. :)
<kindjal> Morrolan: aha, thanks
BlueProtoman has joined #ruby
<BlueProtoman> /join #sass
<BlueProtoman> Oops
arya_ has joined #ruby
thesheff17 has joined #ruby
petru is now known as Petru_
<Morrolan> doug1: The return value of this function call will depend on the code which gets executed *after* the block has been executed.
echevemaster has joined #ruby
petru has joined #ruby
Petru_ has quit [Quit: Leaving]
<doug1> Morrolan: well, I had it working at one point. :(