apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
kevinykchan has quit [Quit: Computer has gone to sleep.]
sent-hil has joined #ruby
<sent-hil> what's a good alternative to fnordmetric?
<sent-hil> it looks like it's not maintained anymore
flowerhack has quit [Quit: Connection closed for inactivity]
jkamenik has joined #ruby
Exeia has quit [Ping timeout: 252 seconds]
dorei has quit []
newUser1234 has quit [Remote host closed the connection]
njs126 has quit [Ping timeout: 265 seconds]
afex has quit [Ping timeout: 240 seconds]
<arubin> It has been updated in the last four months.
ephemerian has quit [Quit: Leaving.]
tjr9898 has joined #ruby
<shevy> hehehe
<shevy> how can two different people come to so different conclusions
rylev has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<arubin> I do not know.
<arubin> I just looked at its repo.
<arubin> It was last updated about four months ago.
Jonah11_ has joined #ruby
gerep has quit [Quit: Connection closed for inactivity]
ziprar has joined #ruby
AlexRussia has joined #ruby
benzrf is now known as benzrf|offline
<shevy> >> %w{ Hey there how do you do } * ", "
<eval-in> shevy => "Hey, there, how, do, you, do" (https://eval.in/132249)
Avahey_ has joined #ruby
<shevy> >> "[%s]" % "Pretty insane."
<eval-in> shevy => "[Pretty insane.]" (https://eval.in/132250)
dik_dak has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
zipace has quit [Ping timeout: 255 seconds]
brucelee has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00stfr3ak has quit [Remote host closed the connection]
Speed has joined #ruby
<pontiki> that's different
njs126 has joined #ruby
<pontiki> i didn't know the * acts like join
chipotle has joined #ruby
<sent-hil> arubin: lol yes, but it barely works for me
tjr9898 has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> measuring fnords?
jonmorehouse has joined #ruby
Squarepy has quit [Quit: Leaving]
<shevy> yeah, * can be kinda weird
<shevy> I just noticed .backtrace method on exceptions
NightGriffin has joined #ruby
<shevy> I never seem to use it hmm
djbender has quit [Quit: djbender]
wallerdev has quit [Quit: wallerdev]
bronson has joined #ruby
codenapper has quit [Quit: codenapper]
<shevy> anyone of you using a ruby script
<shevy> that allows upload of a local image file to a remote image host?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
\-en has joined #ruby
<selina345> how do you know what gems you need to include in the gemfile for any given app?
cspray has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jorts has quit [Quit: jorts]
<jhass> selina345: you include the gems you need for the app
<Jamo> basically if you need to require smthing that is not in the std library
wallerdev has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
zorak has quit [Read error: Connection reset by peer]
afex has joined #ruby
maxxe has joined #ruby
<maxxe> beginners book please
lukec has quit [Quit: lukec]
chipotle has quit [Ping timeout: 240 seconds]
chipotle_ has joined #ruby
chichou has quit [Remote host closed the connection]
randomnick_ has quit [Quit: Leaving]
mrsolo has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
dx7 has quit [Remote host closed the connection]
davy_ has quit [Remote host closed the connection]
reset has quit [Quit: Linkinus - http://linkinus.com]
<wallerdev> whats up rubynation
x77686d has quit [Quit: x77686d]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
derek__ has joined #ruby
eka has joined #ruby
cj3kim has quit [Remote host closed the connection]
<wallerdev> guess everyones gone home for the weekend :(
dapz has joined #ruby
bronson has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
reset has joined #ruby
<mozzarella> I'm learning calculus
ndrei has quit [Ping timeout: 268 seconds]
<mozzarella> I don't know WHY
<wallerdev> oh nice
<wallerdev> single or multivariable?
<wallerdev> they removed multivariable calculus from the requirements for my major the semester after i took it lol
dstynchula has quit []
<wallerdev> or maybe it was differential equations
<wallerdev> one of those
flowerpot has quit [Quit: leaving]
Lewix has joined #ruby
RaptorJesus_ is now known as RaptorJesus
combusean has quit [Ping timeout: 268 seconds]
brunops has quit [Ping timeout: 240 seconds]
Aquilo has quit [Ping timeout: 252 seconds]
Aquilo has joined #ruby
ndrei has joined #ruby
Shidash has joined #ruby
Celm_ has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
jzig has joined #ruby
<mozzarella> differential calculus
Celm has joined #ruby
<mozzarella> I'm learning it on khan
<wallerdev> oh
<wallerdev> then you're crazy
<wallerdev> :p
siwica has joined #ruby
razrunelord has quit []
pwh has joined #ruby
lmickh has joined #ruby
rm_ has joined #ruby
brunops has joined #ruby
jzig has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
glanzi has joined #ruby
hermanmunster has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
brunops has quit [Changing host]
brunops has joined #ruby
LexicalScope` has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
RyanV has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
MrJoshua has quit [Quit: MrJoshua]
soahccc has joined #ruby
zorak has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
tjr9898 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
niklasb has quit [Read error: Operation timed out]
ghr has joined #ruby
bronson has quit [Quit: bronson]
jetblack has quit [Quit: leaving]
lukec has joined #ruby
Cache_Money has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has joined #ruby
Celm has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghr has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
advorak has quit [Read error: Connection reset by peer]
weems has quit [Quit: Leaving]
mikepack has joined #ruby
denken has left #ruby [#ruby]
linuxer1 has joined #ruby
Kricir has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
hfp is now known as hfp`away
hfp`away is now known as hfp
Hobogrammer has quit [Ping timeout: 240 seconds]
afex has quit [Ping timeout: 240 seconds]
supermarin____ has quit [Quit: Computer has gone to sleep.]
nfk has quit [Quit: yawn]
supermarin____ has joined #ruby
vallieres_ has joined #ruby
vallieres_ has quit [Max SendQ exceeded]
hfp is now known as hfp`away
subbyyy_ has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
mikepack has quit [Ping timeout: 268 seconds]
ner0x has joined #ruby
thomasxie has joined #ruby
tjr9898 has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
tjr9898 has joined #ruby
supermarin____ has quit [Ping timeout: 240 seconds]
siwica has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Quit: Leaving.]
tjr9898 has quit [Remote host closed the connection]
jhass is now known as jhass|off
selina345 has quit [Ping timeout: 240 seconds]
glanzi has quit [Remote host closed the connection]
whatasunnyday has quit [Quit: whatasunnyday]
gigetoo has quit [Remote host closed the connection]
brunops has quit [Quit: leaving]
teddyp1cker has joined #ruby
jkamenik has quit [Quit: Leaving.]
mary5030 has joined #ruby
gigetoo has joined #ruby
kori has joined #ruby
kori has left #ruby [#ruby]
goleldar has quit [Remote host closed the connection]
iliketurtles has joined #ruby
kukyakya has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
eynj has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
wallerdev has quit [Quit: wallerdev]
Musashi1 has joined #ruby
cj3kim has joined #ruby
pel_daniel has left #ruby [#ruby]
whatasunnyday has joined #ruby
<whatasunnyday> exit
whatasunnyday has quit [Client Quit]
combusean has joined #ruby
iml has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
<RubyPanther> that's where I go for math. I don't need to remember that stuff, only where to find it
fgo has joined #ruby
jamto11 has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chitopunk has quit [Quit: Leaving.]
drocsid has quit [Ping timeout: 240 seconds]
cspray has quit [Remote host closed the connection]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
hooper has quit [Ping timeout: 255 seconds]
armstrjare has joined #ruby
nateberkopec has joined #ruby
maximski has joined #ruby
pontiki` has joined #ruby
timonv has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
thomasxie has joined #ruby
benzrf|offline is now known as benzrf
eythorium has joined #ruby
pontiki has quit [Ping timeout: 255 seconds]
<benzrf> sup yall
<benzrf> RubyPanther: have you tried quick yet :-D
pwh has quit [Ping timeout: 240 seconds]
<RubyPanther> benzrf: no is it good?
snath has quit [Ping timeout: 240 seconds]
<benzrf> its amzing
<benzrf> RubyPanther: u will need libfuse-dev
<benzrf> then gem install quick
<BraddBitt> does File.open create the file if it doesn't exist?
timonv has quit [Ping timeout: 240 seconds]
<benzrf> BraddBitt: if writing yes
pwh has joined #ruby
<BraddBitt> cool, thank you
Celm has joined #ruby
reset has quit [Ping timeout: 240 seconds]
pontiki` is now known as pontiki
<RubyPanther> benzrf: why do I need Smalltalkish thing for a Smalltalkish language?
<benzrf> RubyPanther: try it out o=
<benzrf> check the typescript in the repo for a demo :#
<centrx> Wow, four releases in one day.
<centrx> Impressive
chuk has quit [Quit: This computer has gone to sleep]
<benzrf> centrx: huh?
rm_ has joined #ruby
<centrx> benzrf, http://rubygems.org/gems/quick shows four versions, all released on the same day
<benzrf> whoa
<benzrf> that seems wrong o.O
chipotle_ has quit [Quit: cya]
<RubyPanther> benzrf: I'm browsing the documentation, it is not immediately obvious what to do with this
<centrx> The author must be a real freak
<benzrf> RubyPanther: the documentatoin?
<benzrf> there is no docs
markisonfire has quit [Quit: markisonfire]
<benzrf> RubyPanther: check the demo typescript :u
snath has joined #ruby
dx7 has joined #ruby
<RubyPanther> That you didn't know it was there explains why I had to wait for them to generate...
nateberkopec has quit [Quit: Leaving...]
eynj has joined #ruby
thomasxie has quit [Remote host closed the connection]
brucelee has quit [Ping timeout: 268 seconds]
<benzrf> oh, those docs
<benzrf> i thought you meant likemike
<benzrf> *like
<benzrf> official written-up docs
<benzrf> this is meant to be used mainly as a cmdline tool, not as a lib
<RubyPanther> egads, nice escape codes
<benzrf> tellin u dude watch the typescript
rm_ has quit [Ping timeout: 252 seconds]
<RubyPanther> [?1049h[r[m[2J[H[?7h[?1;4;6l[4l[?1h=[0m(B[1;33r[H[2J[H[2Jbenzrf@benzrf-laptop:~/quick_example$ ls -a
<benzrf> yes, it is a typescript
* benzrf bonks RubyPanther
<centrx> Is this an example of code in your new language: [?1049h[r[m[2J[H[?7h[?1;4;6l[4l[?1h=[0m(B[1;33r[H[2J[H[2J
<benzrf> yes
<benzrf> its definitely not escape codes from a typescript
<centrx> Is typescript a Microsoft product
* benzrf facepalms
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<benzrf> typescript as in the thing created by script(1)
x77686d has joined #ruby
<centrx> Script started, file is typescript
* benzrf sighs
<benzrf> 1 SecretAgent
<benzrf> *sec
<benzrf> centrx: use `scriptreplay` to play back a typescript
<benzrf> scriptreplay typescript_file -ttiming_file
karmatr0n has quit [Remote host closed the connection]
<pipework> But who would want to use TypeScript?
<pipework> Probably the same people who would even consider using rails on windows. Maybe some that wouldn't.
* benzrf facepalms
<benzrf> pipework: typescripts in this context are a form of terminal output recording
<benzrf> like a text-based screencast
<benzrf> most unices come with script(1) for making them
<pipework> like a transcript?
<benzrf> yea
<benzrf> that may be the same thing
<benzrf> script(1) also can generate timing files
<benzrf> so that it plays back the same as it displayed
<benzrf> i got a script/timing file pair in the Quick repo that shows how u use it
browndawg has joined #ruby
chipotle has joined #ruby
thomasxie has joined #ruby
weems has joined #ruby
narcan has quit [Ping timeout: 240 seconds]
taf2 has quit [Quit: taf2]
taf2 has joined #ruby
diegoviola has joined #ruby
rasputin has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
radic has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
<rasputin> Can anyone tell me how I can "catch", althought it's not quite an exception, but anyway - how I can this: I set a bunch of limits (rlimit) in the parent, then execute a child process - the child process wants more than my limit has allowed it to have...
maximski has quit []
<rasputin> so it crashes - instead of a backtrace - I'd like to simply catch the child death as "child tried to use more cpu than allocated" or vmem, or whatever.
radic has joined #ruby
<rasputin> basically i don't have control over what the child processes do - so need to prevent them from bringing the system down, and be able to report back to the caller that this specific child was being naughty.
linuxer1 has quit [Quit: linuxer1]
tkuchiki has quit [Remote host closed the connection]
Kricir has joined #ruby
Celm has quit [Remote host closed the connection]
taf2 has quit [Quit: taf2]
charliesome has joined #ruby
tkuchiki has joined #ruby
nateberkopec has joined #ruby
tjr9898 has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
<arubin> How are you creating the child process?
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<rasputin> arubin: http://pastebin.com/8qw151Aq
x1337807x has joined #ruby
<RubyPanther> "It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the type‐ script file can be printed out later with lpr(1)"
<benzrf> lol!
<benzrf> RubyPanther: did u check out the demo
tkuchiki has quit [Ping timeout: 268 seconds]
<RubyPanther> I haven't used lpr in... ages
<rasputin> and the child script is just something to try and exhaust a limit: http://pastebin.com/7eaWv2qM
<RubyPanther> benzrf: not yet
Lewix has quit [Remote host closed the connection]
<benzrf> RubyPanther: nonsense
<RubyPanther> I'm working on a flappy bird clone
<benzrf> fft
<benzrf> thats old shit
<benzrf> 2048 clones are the new flappy bird clones
<RubyPanther> Yes, and I plan to add another few hundred
jason__ has joined #ruby
amclain_ has joined #ruby
robbyoconnor has joined #ruby
yfeldblum has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
<RubyPanther> benzrf: Pretty good
amclain has quit [Ping timeout: 255 seconds]
<RubyPanther> but incorrectly easy
<benzrf> centrx: got 524288 B)
<RubyPanther> Mine has to splat when it hits a barrier, because that is when I slap the advertisement on the unwitting user
<benzrf> absolutely disgusting
<benzrf> brb
larsam has left #ruby [#ruby]
benzrf is now known as benzrf|offline
Exeia has joined #ruby
oo_ has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
<arubin> rasputin: Did you look at the documentation? http://ruby-doc.org/core-1.9.3/Process.html#method-c-wait
<arubin> "Waits for a child process to exit, returns its process id, and sets $? to a Process::Status object containing information on that process."
<arubin> Perhaps the Process::Status object contains the information that you need.
amclain has joined #ruby
amclain_ has quit [Ping timeout: 265 seconds]
supersyy has quit []
Avahey_ has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
centrx has quit [Quit: All this computer hacking is making me thirsty]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
<rasputin> arubin: well the first issue is stopping the crash from dumping traces all over the console
<rasputin> the parent process is producing the stderr data when the child crashes
robbyoconnor has quit [Ping timeout: 240 seconds]
<arubin> Redirect its output.
<rasputin> looking at that right now (im new to ruby), then I'll look at the Process::Status in detail and let you know :D
brucelee has joined #ruby
Hobogrammer has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
blackavr has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
<rasputin> arubin: okay, so now I do child = Process.waitpid(pid, Process::WNOHANG) - but child just equates to nil
benzrf|offline is now known as benzrf
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
tjr9898 has quit [Remote host closed the connection]
danshultz has joined #ruby
tcstar has quit [Ping timeout: 268 seconds]
<rasputin> waitall gives more information than wait though
<arubin> rasputin: I do not know much about Ruby's process creation libraries.
robbyoconnor has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
<rasputin> arubin: that's cool - thank you for the help so far -
javierbuilder has joined #ruby
<rasputin> I think i have enough for now anyway - a SIGABRT is not a bad start for now
icole has quit [Ping timeout: 268 seconds]
taf2 has joined #ruby
dapz has joined #ruby
s2013 has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
braincrash has quit [Quit: bye bye]
taf2 has quit [Quit: taf2]
braincrash has joined #ruby
pwh has quit []
taf2 has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
phansch has joined #ruby
s2013 has quit [Remote host closed the connection]
Krakapow has quit [Quit: Page closed]
browndawg has joined #ruby
danshultz has quit [Ping timeout: 268 seconds]
pu22l3r has joined #ruby
JacobHayes has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
keen_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
toastynerd has joined #ruby
mikecmpbll has quit [Quit: ciao.]
coderhs has joined #ruby
teddyp1cker has joined #ruby
helpa has quit [Remote host closed the connection]
pontiki has quit [Read error: Connection reset by peer]
eynj has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
helpa has joined #ruby
<pontiki> re-hi
eynj has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
linuxer1 has joined #ruby
timonv has joined #ruby
JacobHayes has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 268 seconds]
brucelee has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
jamto11 has joined #ruby
wjlafrance has joined #ruby
mary5030 has joined #ruby
popl has joined #ruby
popl has joined #ruby
oo_ has quit [Remote host closed the connection]
sent-hil has quit [Quit: Connection closed for inactivity]
jamto11 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
linuxer1 has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 240 seconds]
kennym has quit [Quit: Leaving.]
Jon30 has joined #ruby
kennym has joined #ruby
karmatr0n has joined #ruby
yfeldblum has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
yfeldblum has joined #ruby
hermanmunster has quit [Remote host closed the connection]
Royalb15_1 has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
george2 has joined #ruby
pontiki has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
s2013 has joined #ruby
pontiki has joined #ruby
x1337807x has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Royalb15 has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
rm_ has joined #ruby
centrx has joined #ruby
jgrevich has joined #ruby
centrx has quit [Client Quit]
Xaitec has joined #ruby
yacks has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 255 seconds]
chichou has quit [Remote host closed the connection]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
chrisseaton has quit []
javierbuilder has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 255 seconds]
hemanth has joined #ruby
cj3kim has joined #ruby
nari has joined #ruby
robustus has joined #ruby
browndawg has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
_justin has joined #ruby
sepp2k has quit [Quit: Leaving.]
yakko has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
s_e has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
_justin has quit [Ping timeout: 240 seconds]
sarlalian has quit [Ping timeout: 252 seconds]
ckinni has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
_justin has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
hermanmunster has joined #ruby
bronson has joined #ruby
<droptone> anyone know how to use a paperclip url for the jplayer path to a file?
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<droptone> for example, using mp3: "http://ourdomain.com#{<%= current_user.profile.music_file_1.url %>}"
wjlafrance has quit [Quit: This computer has gone to sleep]
<droptone> I've tried it with and without string interpolation, doesn't work
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
ch_ has joined #ruby
ch_ has left #ruby [#ruby]
ch_ has joined #ruby
ch_ has left #ruby [#ruby]
toastynerd has joined #ruby
mrsolo has joined #ruby
tylersmith has quit [Remote host closed the connection]
wjlafrance has joined #ruby
yfeldblum has quit [Read error: Operation timed out]
yakko has quit []
bronson has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
Shidash has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
sarlalian has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
nateberkopec has quit [Quit: Leaving...]
toastynerd has quit [Remote host closed the connection]
Xaitec has quit [Remote host closed the connection]
armstrjare has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
willb1 has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
<benzrf> be back tmorrow
<benzrf> sleep (60 * 60 * 9)
benzrf is now known as benzrf|offline
Xavier89 has joined #ruby
Xavier89 has left #ruby [#ruby]
browndawg has quit [Quit: Leaving.]
ivanf has joined #ruby
ivanf has left #ruby [#ruby]
thomasxie has quit [Ping timeout: 268 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
jason__ has quit [Remote host closed the connection]
jason__ has joined #ruby
badhatter has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
ch_ has joined #ruby
ch_ has quit [Client Quit]
chipotle has joined #ruby
tgkokk has joined #ruby
cj3kim has joined #ruby
ch_ has joined #ruby
chipotle has quit [Client Quit]
ch_ is now known as aquaturtle
aquaturtle has left #ruby [#ruby]
mary5030 has joined #ruby
LexicalScope has quit [Ping timeout: 240 seconds]
showaz has left #ruby ["Textual IRC Client: www.textualapp.com"]
tgkokk has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 240 seconds]
derek__ has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willb1 has joined #ruby
joelteon has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
m104 has joined #ruby
cj3kim has joined #ruby
rm_ has joined #ruby
chris_thomson has quit [Quit: Zzz...]
jason__ has quit [Remote host closed the connection]
jason__ has joined #ruby
Exeia has quit [Ping timeout: 240 seconds]
NightGriffin has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
pigzzcanfly has joined #ruby
davedev24 has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 268 seconds]
jason__ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
derek_c has joined #ruby
bbloom has joined #ruby
ghr has joined #ruby
pu22l3r has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
JacobHayes has joined #ruby
pu22l3r has quit [Remote host closed the connection]
glide has joined #ruby
<glide> Hey everyone. Anyone around to help me with an array question?
pu22l3r has joined #ruby
mary5030 has quit [Remote host closed the connection]
oo_ has joined #ruby
aquaturtle has joined #ruby
mary5030 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
brucelee has joined #ruby
fgo has joined #ruby
niklasb has joined #ruby
advorak has joined #ruby
chuk has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
chipotle has joined #ruby
oo_ has quit [Remote host closed the connection]
<advorak> Object.class_eval("Array") #=> Array ----------- given that, is there an easier way to return a class based on a given string?
mary5030 has quit [Ping timeout: 268 seconds]
pu22l3r has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
jzig has joined #ruby
chipotle has quit [Client Quit]
oo_ has joined #ruby
LetErikTry has joined #ruby
__END__ is now known as Azure
<RubyPanther> >> Object.const_get('Array') # advorak
<eval-in> RubyPanther => Array (https://eval.in/132314)
<mozzarella> >> eval('Array')
<eval-in> mozzarella => Array (https://eval.in/132315)
<RubyPanther> X.x
timonv has joined #ruby
derek_ has joined #ruby
<advorak> mozzarella, thanks!
<RubyPanther> never eval
foooobear has joined #ruby
<mozzarella> never eval user input, unless you know for sure it's safe
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
sigurding has joined #ruby
Megtastique has joined #ruby
atmosx has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
<advorak> of course ..
crystal77 has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
toastynerd has joined #ruby
teddyp1cker has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ktosiek has joined #ruby
pu22l3r has joined #ruby
pinage404 has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
toastynerd has quit [Remote host closed the connection]
advorak has quit [Quit: Leaving]
<RubyPanther> No, that is some other language!
teddyp1cker has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
pinage404 has joined #ruby
<RubyPanther> in Ruby you never eval at all unless you're writing a REPL. We have things like const_get and send to handle dynamic code
Lewix has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
jarray52 has quit [Ping timeout: 240 seconds]
ktosiek has quit [Read error: Connection reset by peer]
derek_c has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
<glide> Hey guys. I have a long array and I want to break it up into 5 different arrays, separating them at specific slots.
derek_c has joined #ruby
zorak has quit [Ping timeout: 240 seconds]
codezomb has joined #ruby
chipotle has joined #ruby
<mozzarella> that's great
Deele has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
arietis has joined #ruby
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
jamto11 has joined #ruby
x77686d has quit [Quit: x77686d]
<glide> But I'm stumped on how to do it. I was hoping that there'd be a method to do that exactly, but I don't see one in the doc's.
<glide> I'm a newb. Can someone give me a hint?
<jacky> Think on it
<jacky> if it's a long lump of ham, in order to make it smaller, you'd _____ it
<glide> slice, right?
cj3kim has quit [Remote host closed the connection]
<jacky> yup
<jacky> if you know where you wanna start and end, slicing an array's straightforward
<glide> Ok. The headers are years, so should I find the index of each year with a search method, then slice from index# to index#?
meatherly has joined #ruby
evenix has joined #ruby
<sigurding> are there any recommendations regarding console applications when using optionparser?
jackneill has joined #ruby
zorak has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<combusean> glide: you basically have an array of years or what?
aquaturtle has quit []
<glide> No: ["2004", "cats", "dogs", "zebras", "2005", "insects", "bugs", "2006", etc]
<combusean> oh jesus
<combusean> how did you end up with that?
<glide> LOL. I'm a newb. This is my first program actually.
jarray52 has joined #ruby
<combusean> your data structure sucks man
<combusean> you need to be thinking about hashes
luckyruby has quit [Remote host closed the connection]
<glide> I have a list of people on a list for each year, and I'm trying to make a program to determine whether anyone shows up on consecutive years.
arietis has quit [Quit: Computer has gone to sleep.]
<combusean> {"2004" => ["cats", "dogs", "zebras"], "2005" => ["insects", "bugs"] }
pigzzcanfly has joined #ruby
tfittsy has quit []
bean__ has joined #ruby
<combusean> aha
<glide> Ok. So the key is the year, and the value is an array?
meatherly has quit [Ping timeout: 268 seconds]
<combusean> yeah.
<glide> Ok. What's the benefit of putting them into a hash, if I have to make an array anyway?
<combusean> well it depends on your source data
pu22l3r has joined #ruby
toastynerd has joined #ruby
<glide> It's just a text document I copied and pasted into.
<s_e> because this way you know the relationship of year to animal
DEA7TH has joined #ruby
<s_e> in a flat array, you have an implicit relationship based on the order of the items, but with a hashmap it's explicit
<combusean> the idea is that you have your years and list of people, then you traverse that array to make a hash containing the user as the key and the value of years in the array
<combusean> format the data and you're done
julian-delphiki has quit [Ping timeout: 240 seconds]
julian-delphiki has joined #ruby
m104 has quit [Quit: bye]
browndawg has joined #ruby
bean__ has quit [Ping timeout: 240 seconds]
<glide> Hmm.
<glide> s_e, implicit relationship between what? The entries in the array?
toastynerd has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
bean__ has joined #ruby
sigurding has quit [Quit: sigurding]
<s_e> glide: yeah, so in your flat array, you only know 'cats' was in 2004 because it's next to it in the array, but that relies on you knowing that in advance. In the hash, that information is clear to you
<combusean> attendees = Hash.new([]); years_hash.each { |year,people| people.each { |person| attendees[person] << year } }
<combusean> something like that.
jcs222 has joined #ruby
<glide> s_e, but what if I move all slots in the big array to a smaller array named "2004" filled with only those entries?
<combusean> erm, years_has.each_pair
<s_e> glide: that's exactly what's happening in the hash
<glide> Ok. I'm trying to grasp all this. Gimme a few seconds
fgo has quit [Remote host closed the connection]
<glide> combusean, so the keys are the attendees, the values are the years?
julian-delphiki has quit [Ping timeout: 240 seconds]
wjlafrance has quit [Quit: This computer has gone to sleep]
<combusean> in the first hash, the one that represents the data you have, years are the key and the array of attendees is the value
pu22l3r_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<glide> As an aside, this involves fundamental issues and concepts in programming, right?
<combusean> um
<combusean> you're transforming data
<combusean> and you apparently just learned the hash data type today
<combusean> :)
<glide> Hehe. I think it was Tuesday :)
Shidash has quit [Ping timeout: 255 seconds]
<combusean> so is a list of attendees and the years they showed up good enough?
<s_e> you're making good progress :P
<glide> combusean, I'd like to build on it so that I can see (a) who has attended most often, (b) who has attended in consecutive years, etc. Just playing around and learning mostly.
<glide> s_e, thanks :)
<combusean> try first making the data fit to the { year => [people] } data type
<combusean> than that code snippet I gave you should let you transform it
<glide> Ok.
olalonde has joined #ruby
<olalonde> hi all I kind of forgot how to use jekyll. I tried the "rake" command to get a list of rake tasks but getting this error: ake aborted!
<olalonde> cannot load such file -- bundler/setup
<combusean> did you run bundle before rake?
<olalonde> no, oops
<olalonde> zsh: command not found: bundle
\-en has quit [Quit: Leaving]
<olalonde> I guess I need to "gem install bundle" ?
Megtastique has quit []
<combusean> gem install bundler yeah.
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
<combusean> depends on where your ruby's coming from.
<olalonde> thanks
<glide> combusean & s_e: thank you! I am going to work on this, read some documentation, and figure it out. Have a nice evening!
<olalonde> it's the one that ships with OS X
<combusean> that one is old and sucks
<olalonde> I just use ruby to generate my blog :o
hooper has joined #ruby
<olalonde> I guess the brew package would be more up to date?
<combusean> oh wait, it's 2.0.0 in mavericks
<combusean> no olalonde, if you're gonna be doing this seriously you need a ruby version manager
<olalonde> yea, ruby 2.0.0p247
<olalonde> well as I said, I just need ruby to generate my blog :P
<olalonde> I'll use rvm when I need to do some ruby dev :)
<combusean> ahh
<olalonde> or w/e version manager is recommended nowadays
yfeldblum has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<combusean> yeah it shouldn't be too tough to upgrade or migrate
pu22l3r has joined #ruby
<combusean> when you get there :)
<olalonde> :)
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
cj3kim has joined #ruby
<soahccc> Hmm can I replace a folder with another using FileUtils? I thought #mv could do that but unfortunately "force: true" literally means "no error"… it just silently doesn't do anything if the target exists :(
pu22l3r has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
njs126 has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
dx7 has quit [Read error: Connection reset by peer]
njs126 has joined #ruby
dx7 has joined #ruby
sigurding has joined #ruby
Megtastique has joined #ruby
saarinen has joined #ruby
mary5030 has joined #ruby
Merks has joined #ruby
bronson has joined #ruby
meatherly has joined #ruby
pu22l3r has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 240 seconds]
dx7 has quit [Remote host closed the connection]
zigomir has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
dx7 has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
IceDragon has quit [Quit: Space~~~]
meatherly has quit [Ping timeout: 268 seconds]
momomomomo has quit [Quit: momomomomo]
cj3kim has joined #ruby
Megtastique has quit []
pu22l3r_ has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
ktosiek has joined #ruby
jgrevich has quit [Quit: jgrevich]
saarinen has quit [Quit: saarinen]
tvw has joined #ruby
arietis has joined #ruby
JacobHayes has quit [Read error: Connection reset by peer]
timonv has joined #ruby
JacobHayes has joined #ruby
jack_rabbit has joined #ruby
Cache_Money_ has joined #ruby
jzig has quit [Remote host closed the connection]
Cache_Money has quit [Read error: Connection reset by peer]
jzig has joined #ruby
mrsolo has joined #ruby
relix has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
mrsolo has quit [Client Quit]
Shidash has quit [Ping timeout: 240 seconds]
noop has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 255 seconds]
hemanth has quit [Quit: This computer has gone to sleep]
_Andres has joined #ruby
JacobHayes has quit [Read error: Connection reset by peer]
JacobHayes has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
funburn has joined #ruby
skaflem has joined #ruby
Cache_Money_ has quit [Quit: Cache_Money_]
evenix has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
ayaz has joined #ruby
rm_ has joined #ruby
charliesome has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Morkel has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
_justin has joined #ruby
chipotle has quit [Quit: cya]
karmatr0n has quit [Ping timeout: 240 seconds]
cover has joined #ruby
narcan has joined #ruby
glide has quit [Quit: Leaving]
ghr has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
thomasxie has joined #ruby
monkegji_ has joined #ruby
<combusean> there's like 5 different variables declared throughout this project, all with the same constant value
* combusean sighs
coderhs has joined #ruby
claymore has joined #ruby
<combusean> and it's a small project
_justin has quit [Quit: _justin]
centrx has quit [Quit: All this computer hacking is making me thirsty]
tvw has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
banister has joined #ruby
oo_ has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
Royalb15_1 has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 268 seconds]
evenix has joined #ruby
meatherly has joined #ruby
arietis has joined #ruby
_justin has joined #ruby
olalonde has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 240 seconds]
olalonde has joined #ruby
monkegji_ has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
oo_ has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
monkegjinni has joined #ruby
tvw has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
pigzzcanfly has joined #ruby
aesptux has joined #ruby
<certainty> moin
deadlock has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
bronson has joined #ruby
coderhs has joined #ruby
evenix has quit [Remote host closed the connection]
wjlafrance has joined #ruby
WormDrink has joined #ruby
claymore has quit [Read error: Operation timed out]
jamto11 has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
jzig has joined #ruby
brucelee has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Morkel has quit [Quit: Morkel]
jamto11 has quit [Ping timeout: 255 seconds]
jarray52 has left #ruby [#ruby]
Jon30 has quit [Ping timeout: 255 seconds]
CaptainJet has quit []
cj3kim has quit [Remote host closed the connection]
codenapper has joined #ruby
jxf has joined #ruby
claymore has joined #ruby
mrnugget has joined #ruby
francisfish has quit [Remote host closed the connection]
maroloccio has joined #ruby
tvw has quit []
cpmgraf has joined #ruby
rm_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
soahccc has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
klaut has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
cpmgraf has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
aesptux has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
aesptux has joined #ruby
_justin has quit [Quit: _justin]
tgkokk has joined #ruby
aesptux_ has joined #ruby
sheihru has joined #ruby
noop has quit [Ping timeout: 268 seconds]
aesptux has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
aesptux_ has quit [Client Quit]
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
soahccc has joined #ruby
maximski has joined #ruby
olalonde has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
tgkokk has quit [Ping timeout: 240 seconds]
soahccc^ has joined #ruby
blackmesa has joined #ruby
soahccc has quit [Ping timeout: 240 seconds]
JacobHayes has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
dx7 has joined #ruby
mrnugget has quit [Quit: mrnugget]
olalonde has joined #ruby
andrewlio has joined #ruby
nfk has joined #ruby
mrsolo has joined #ruby
_|x|_ has joined #ruby
noop has joined #ruby
_|x|_ has left #ruby ["tty | killall -3"]
cj3kim has joined #ruby
mehlah has joined #ruby
kaspergrubbe has joined #ruby
dx7 has quit [Ping timeout: 268 seconds]
brucelee has joined #ruby
_Andres has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
SHyx0rmZ has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
sheihru has quit [Ping timeout: 255 seconds]
koderok has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
VytasG has joined #ruby
browndawg has quit [Quit: Leaving.]
meatherly has joined #ruby
_justin has joined #ruby
claymore has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
_Andres has joined #ruby
VytasG has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 240 seconds]
keeguon has joined #ruby
emergion has joined #ruby
dyoko has joined #ruby
ryanuber has joined #ruby
derek_ has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 268 seconds]
emergion has quit [Ping timeout: 260 seconds]
drocsid has joined #ruby
_justin has quit [Quit: _justin]
timonv has joined #ruby
Merks has quit []
jack_rabbit has quit [Quit: Leaving]
jack_rabbit has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
ikaros has joined #ruby
glanzi has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<shevy> dumdedum
User458764 is now known as User458764_NotHe
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brucelee has quit [Ping timeout: 240 seconds]
<certainty> shevy: \o
<shevy> o/
srji_ has quit [Quit: leaving]
ktosiek_ has joined #ruby
AlSquire has joined #ruby
ktosiek has quit [Read error: Operation timed out]
aagdbl has joined #ruby
rm_ has joined #ruby
timonv has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
bluOxigen has joined #ruby
<shevy> everyone code faster!
brucelee has joined #ruby
rylev has joined #ruby
ghr has joined #ruby
koderok has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 240 seconds]
casheew has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
tacos1de has joined #ruby
endash_ has joined #ruby
Jonah11_ has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
<BraddBitt> if i just create a hash variable in standard ruby.rb file with no namespacing
<BraddBitt> what is it namespaced under?
funburn has quit [Quit: funburn]
<apeiros> BraddBitt: what kind of variable? a local? then it's not namespaced anywhere because you can't reach it outside that file.
hemanth has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
<BraddBitt> okay, exactly what i thought
<BraddBitt> its 2:30 my brain isnt working correctly
<BraddBitt> ( ≖‿≖)
soahccc^ is now known as soahccc
atmosx has quit [Remote host closed the connection]
<shevy> hmm
<soahccc> BraddBitt: Not sure but I think you're in the main namespace there, if you're using just local variables it doesn't matter at all though
<BraddBitt> right
<shevy> local_variables()
<BraddBitt> i used a module, things are better now
<shevy> apparently Kernel somehow knows about them
<shevy> ID lid = cfp->iseq->local_table[i];
chuk has quit [Quit: This computer has gone to sleep]
carraroj has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
Celm has joined #ruby
meatherl_ has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
maximski has quit []
Celm has quit [Ping timeout: 252 seconds]
meatherl_ has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
atmosx has joined #ruby
olalonde has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
olalonde has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
chuk has joined #ruby
jamto11 has joined #ruby
rippa has joined #ruby
jaw22 has joined #ruby
shabgard has joined #ruby
shabgard has joined #ruby
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 252 seconds]
pigzzcanfly has quit [Remote host closed the connection]
User458764 is now known as User458764_NotHe
michael_lee has joined #ruby
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
michael_lee has quit [Max SendQ exceeded]
michael_lee has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
ikaros has quit [Quit: Ex-Chat]
zigomir has quit []
skammer has joined #ruby
ndrei has joined #ruby
rm_ has joined #ruby
nicoulaj has joined #ruby
hemanth has joined #ruby
michael_lee has quit [Max SendQ exceeded]
keeguon has quit [Quit: keeguon]
rm_ has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
spider-mario has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
carraroj has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
bkzl_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
penzur has joined #ruby
jollyy has joined #ruby
michael_lee has joined #ruby
agjacome has joined #ruby
dyoko has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
alex88 has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Lucky_Red has joined #ruby
bronson has quit [Quit: bronson]
teddyp1cker has joined #ruby
meatherly has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
okdas has joined #ruby
jollyy has quit [Quit: jollyy]
brucelee has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
kaspergrubbe has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
francisfish has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 240 seconds]
maximski has quit []
Lewix has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Lewix has joined #ruby
RaptorJesus has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
Rickmast- has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
alex88 has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Rickmasta has joined #ruby
Lewix has quit [Remote host closed the connection]
tgkokk has joined #ruby
Lewix has joined #ruby
casheew has quit [Quit: Lost terminal]
browndawg has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
rm_ has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
jollyy has joined #ruby
maximski has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Cyrus has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
decoponio has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
Bumptious has quit [Ping timeout: 255 seconds]
funburn has joined #ruby
kaspergrubbe has joined #ruby
dyoko has joined #ruby
winny has joined #ruby
bkzl_ has quit [Quit: Computer has gone to sleep.]
arietis has joined #ruby
bkzl__ has joined #ruby
ghr has joined #ruby
<winny> is there a way to access top level variables from a function in ruby? example: http://sprunge.us/QeYD?rb gives NameError on a_var
aagdbl has quit [Quit: Connection closed for inactivity]
<danijoo> @winny you could make the variable global
<danijoo> $a_var = "hello world"
ghr has quit [Ping timeout: 240 seconds]
<danijoo> ant then in your method: puts $a_var
<winny> I'm a big Ruby newbie, so a variable name starting with a dollar sign is a globally accessible variable?
<danijoo> yeah
<danijoo> $ = global
<danijoo> @ = instance variable
<danijoo> @@ class variable
<winny> thanks!
<danijoo> yw
JasmeetQA has joined #ruby
JasmeetQA has quit [Client Quit]
yfeldblum has joined #ruby
<certainty> i say use globals for everything
tgkokk has quit [Remote host closed the connection]
<certainty> one global $arguments which has to be set before you invoke a method. It holds the arguments for that method so you don't have to pass them. You could also name it $stack
<certainty> you should put the arguments in reverse order you want the method to receive them
<certainty> then you can push the result of the method back to the stack
Soda has joined #ruby
<certainty> i'm full of great ideas again
enthrops has joined #ruby
ner0x has quit [Quit: Leaving]
bkzl__ has quit [Quit: Lingo - http://www.lingoirc.com]
yfeldblum has quit [Ping timeout: 265 seconds]
enthrops has quit [Client Quit]
kaspergrubbe has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
jaw22 has left #ruby [#ruby]
eka has joined #ruby
aagdbl has joined #ruby
casheew has joined #ruby
Celm has joined #ruby
meatherly has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
chrisseaton has joined #ruby
mercwithamouth has joined #ruby
Celm has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
popl has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
funburn has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
maximski has quit []
coderhs has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
popl has quit [Ping timeout: 268 seconds]
carif has joined #ruby
jackneill has quit [Ping timeout: 255 seconds]
jamto11 has quit [Read error: Operation timed out]
sigurding has quit [Quit: sigurding]
browndawg has quit [Ping timeout: 255 seconds]
teddyp1c_ has joined #ruby
jackneill has joined #ruby
jonno11 has joined #ruby
fgo has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
coderhs has joined #ruby
timonv has quit [Remote host closed the connection]
dx7 has joined #ruby
maximski has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
sigurding has joined #ruby
chipotle has joined #ruby
dx7 has quit [Ping timeout: 255 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
rm_ has joined #ruby
olalonde has quit [Ping timeout: 240 seconds]
olalonde has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
elaptics`away is now known as elaptics
olalonde has quit [Ping timeout: 255 seconds]
Merks has joined #ruby
arietis has joined #ruby
jollyy has quit [Quit: jollyy]
browndawg has joined #ruby
olalonde has joined #ruby
melvinram has joined #ruby
claymore has joined #ruby
<melvinram> On http://www.ruby-doc.org/stdlib-2.1.1/libdoc/set/rdoc/Set.html, it mentions “Set assumes that the identity of each element does not change while it is stored. Modifying an element of a set will render the set to an unreliable state.” Does anyone have some code/article to illustrate this a bit more clearly?
Shidash has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
chrisseaton has quit []
zommi has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
penzur has quit [Quit: wadiwasi]
casheew has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
ndrei has joined #ruby
claymore has quit [Quit: Leaving]
carif has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 268 seconds]
mrmargolis has joined #ruby
psyko666 has quit [Quit: Leaving]
glanzi has quit [Quit: Leaving...]
Kneferilis has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
olalonde has quit [Ping timeout: 268 seconds]
ayaz has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
olalonde has joined #ruby
meatherly has joined #ruby
<shevy> certainty aaaah
<shevy> certainty why use $globals when you could use @@almost_globals!
mrnugget has joined #ruby
<certainty> shevy: i like the adrenalin rush
<shevy> lol
<shevy> that's the funniest answer I've ever read in regards to pro or contra globals
<certainty> :)
derebos has joined #ruby
maximski has quit []
Celm has quit [Ping timeout: 265 seconds]
Naoe-Kanno has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
SHyx0rmZ has quit [Ping timeout: 240 seconds]
jollyy has joined #ruby
ktosiek_ has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
Shidash has quit [Ping timeout: 268 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
Terminus- has quit [Quit: i hope the damned profiles don't blow up]
<apeiros> melvinram: it's the same as for hash keys
<apeiros> melvinram: example:
mjs2600 has joined #ruby
<apeiros> >> require 'set'; ele = [1,2]; set = Set.new([ele]); ele << 3; set.include?(ele)
<eval-in> apeiros => false (https://eval.in/132559)
fgo has quit [Remote host closed the connection]
<apeiros> why it happens:
<apeiros> >> ele = [1,2]; hash_value_before = ele.hash; ele << 3; {before: hash_value_before, after: ele.hash}
<eval-in> apeiros => {:before=>-94847881, :after=>814503822} (https://eval.in/132561)
jonmorehouse has joined #ruby
codenapper has quit [Quit: codenapper]
<apeiros> the hash value is used to determine in which bucket the object is stored. on a lookup, identical hash values will lead to the same bucket. elements in the same bucket are then tested using .eql? to determine whether it's just a hash collision or indeed the same object
mjs2600 has quit [Remote host closed the connection]
sepp2k has joined #ruby
<apeiros> since your .hash value changes, Set/Hash ends up looking in the wrong bucket
charlies_ has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
jonmorehouse has quit [Ping timeout: 255 seconds]
mjs2600 has joined #ruby
elaptics is now known as elaptics`away
aagdbl has joined #ruby
spacemud has quit [Ping timeout: 268 seconds]
hfp`away is now known as hfp
Shidash has joined #ruby
pinage404 has quit [Ping timeout: 240 seconds]
aagdbl has quit [Client Quit]
coder_neo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sailias has joined #ruby
pigzzcanfly has joined #ruby
tkuchiki has joined #ruby
coder_neo has quit [Client Quit]
meatherly has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
meatherl_ has joined #ruby
kirun has joined #ruby
gitt has joined #ruby
sepp2k has quit [Quit: Leaving.]
meatherly has quit [Ping timeout: 268 seconds]
davedev24 has joined #ruby
badhatter has joined #ruby
chipotle has quit [Quit: cya]
<gitt> Hi guys. Just wanted some opinion - I have a class which is composed of (to abstract) another (which came in a gem). The gem class is heavily dependent upon an external resource. How could I effectively TDD the class I'd like to make?
tkuchiki has quit [Remote host closed the connection]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
<apeiros> gitt: faaar too vague
<apeiros> I can give you an equivalently vague answer if you want…
<gitt> I could check whether the gem class's methods are invoked, even with which parameters -- but I worry that my test would basically be duplicating the implementation there
sailias has quit [Ping timeout: 255 seconds]
<apeiros> why'd you want to test which methods on are invoked on the target?
davedev24 has quit [Read error: Connection reset by peer]
<apeiros> test behaviour
davedev24 has joined #ruby
<apeiros> that is, for a given input, you expect a given "output" (either return value or side-effect)
coderhs has quit [Ping timeout: 240 seconds]
glanzi has joined #ruby
<gitt> apeiros: that's my point - that wouldn't seem proper; the "output" would require a list of objects that are created in the gem class based upon the response from the external resource (over HTTP)
<gitt> apeiros: of course, I don't want to access the external resource - I'm not sure the appropriate strategy here
mjs2600 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 252 seconds]
spacemud has joined #ruby
<apeiros> external resource: stub
mjs2600 has joined #ruby
<apeiros> you try to never depend on anything when you do an isolation test
<apeiros> to achieve that, you stub out all dependencies
mjs2600 has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
timonv has joined #ruby
yfeldblum has joined #ruby
<gitt> apeiros: right - so I have: MyOuterClass --> GemClass --> [Unknown Gem Dependencies]
<gitt> apeiros: essentially I just stub out the responses of GemClass that are requested from MyOuterClass, right?
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
davedev24 has quit [Client Quit]
userx has joined #ruby
Speed has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
lukec has joined #ruby
njs126 has quit [Quit: Leaving]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> gitt: yes
davedev24 has joined #ruby
Celm has joined #ruby
coderhs has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Client Quit]
combusean has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 240 seconds]
Celm has quit [Ping timeout: 265 seconds]
thomasxie has quit [Remote host closed the connection]
dyoko has quit [Quit: Leaving.]
hfp is now known as hfp`away
benzrf|offline is now known as benzrf
<benzrf> hey yo
centrx has joined #ruby
mr_snowf1ake has joined #ruby
thomasxie has joined #ruby
montyboy has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
hfp`away is now known as hfp
jonmorehouse has joined #ruby
<shevy> yo benzrf
<shevy> docu docu docu
Megtastique has joined #ruby
dyoko has joined #ruby
_justin has joined #ruby
jamto11 has joined #ruby
dx7 has joined #ruby
<benzrf> l8r
<shevy> hehe
keen_ has left #ruby [#ruby]
jonmorehouse has quit [Ping timeout: 255 seconds]
keeguon has joined #ruby
blackmesa has joined #ruby
jamto11 has quit [Read error: Operation timed out]
_justin has quit [Ping timeout: 252 seconds]
dx7 has quit [Ping timeout: 252 seconds]
_axx has joined #ruby
tjr9898 has joined #ruby
Lewix has joined #ruby
jhass|off is now known as jhass
derebos has quit [Quit: Leaving]
timonv has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
_justin has quit [Client Quit]
glanzi has quit [Quit: Leaving...]
jonno11 has joined #ruby
RubyPanther has quit [Ping timeout: 240 seconds]
chuk has quit [Quit: This computer has gone to sleep]
rm_ has joined #ruby
rylev has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
lukec has quit [Quit: lukec]
chuk has joined #ruby
chuk has quit [Client Quit]
rm_ has quit [Ping timeout: 252 seconds]
pigzzcanfly has joined #ruby
root_empire has joined #ruby
jason_ has joined #ruby
Shidash has joined #ruby
michael_lee has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Ping timeout: 255 seconds]
Speed has quit [Read error: Connection reset by peer]
Speed has joined #ruby
ce_afk is now known as cescalante
Megtastique has quit []
jason_ has quit [Ping timeout: 255 seconds]
root_empire has quit [Max SendQ exceeded]
pigzzcanfly has quit [Remote host closed the connection]
jollyy has quit [Quit: jollyy]
tjr9898 has quit [Remote host closed the connection]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
RubyPanther has joined #ruby
ndrei has joined #ruby
maximski has joined #ruby
Mohan__ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep has joined #ruby
yfeldblum has joined #ruby
lxsameer has quit [Quit: Leaving]
DouweM has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
rylev has joined #ruby
mrmargolis has quit [Remote host closed the connection]
timonv has joined #ruby
roflik has quit [Ping timeout: 240 seconds]
roflik has joined #ruby
nateberkopec has joined #ruby
Speed has quit [Read error: Connection reset by peer]
Nukepuppy has joined #ruby
Speed has joined #ruby
ktosiek has joined #ruby
mrmargolis has joined #ruby
gverri has joined #ruby
shredding has joined #ruby
jorts has joined #ruby
carif has joined #ruby
ckinni has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
txdv_ has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
mynyml has joined #ruby
mynyml has left #ruby [#ruby]
txdv_ has quit [Client Quit]
txdv has joined #ruby
tgkokk has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
glanzi has joined #ruby
pigzzcanfly has joined #ruby
rylev has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
Deele has joined #ruby
olalonde has quit [Quit: olalonde]
banister has quit [Ping timeout: 240 seconds]
relix has joined #ruby
sambao21 has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
meatherly has joined #ruby
jonno11 has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
noop has quit [Quit: Leaving]
mrnugget has quit [Quit: mrnugget]
Soda has joined #ruby
Lucky_Red has quit [Quit: Leaving...]
Krajsnick has joined #ruby
meatherly has quit [Ping timeout: 255 seconds]
Krajsnick has quit [Client Quit]
vt102 has quit [Remote host closed the connection]
mikemac has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka has joined #ruby
eka has quit [Client Quit]
thomasxie has quit [Quit: Leaving.]
vjt_ has joined #ruby
Ziarkaen has quit [Ping timeout: 268 seconds]
vjt_ has quit [Client Quit]
mr_red has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
timonv has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
Lewix has joined #ruby
jzig has joined #ruby
jason_ has joined #ruby
jxf has joined #ruby
Lewix has quit [Remote host closed the connection]
ktosiek has quit [Read error: Connection reset by peer]
redmaverick has joined #ruby
_justin has joined #ruby
Jon30 has joined #ruby
Solnse has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
evenix has joined #ruby
crystal77 has joined #ruby
cpruitt has quit [Client Quit]
eka has joined #ruby
ghr has joined #ruby
Jonah11_ has joined #ruby
dx7 has joined #ruby
jason_ has quit [Remote host closed the connection]
jason_ has joined #ruby
danshultz has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gverri has joined #ruby
jonno11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 240 seconds]
ktosiek has joined #ruby
Jonah11_ has quit [Ping timeout: 268 seconds]
IceDragon has quit [Read error: No route to host]
jason_ has quit [Ping timeout: 240 seconds]
bluOxigen has quit []
sambao21 has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
Royalb15 has joined #ruby
Speed has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
_justin has quit [Quit: _justin]
Speed has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby
<benzrf> sup |jemc|
Mon_Ouie has joined #ruby
<|jemc|> hey
tjr9898 has joined #ruby
miezis has joined #ruby
jzig has quit [Remote host closed the connection]
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jzig has joined #ruby
freggles has joined #ruby
tjr9898 has quit [Remote host closed the connection]
carif has quit [Quit: Ex-Chat]
jzig has quit [Ping timeout: 268 seconds]
Celm has joined #ruby
rm_ has joined #ruby
NightGriffin has joined #ruby
mr_red has joined #ruby
jamto11 has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 268 seconds]
Lewix has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
rm_ has quit [Ping timeout: 268 seconds]
gverri has joined #ruby
rylev has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
tjr9898 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
hfp is now known as hfp`away
DrCode has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 255 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrCode has joined #ruby
jamto11 has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
osvico has quit [Read error: Connection reset by peer]
jorts has quit [Quit: jorts]
osvico has joined #ruby
mercwithamouth has joined #ruby
jamto11 has quit [Ping timeout: 268 seconds]
ctp has joined #ruby
browndawg has quit [Quit: Leaving.]
chichou has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
shredding has quit [Quit: shredding]
_justin has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
treehug88 has quit []
hfp`away is now known as hfp
Lewix has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
karmatr0n has joined #ruby
<Emmanuel_Chanel> Hello!
gverri has joined #ruby
<Emmanuel_Chanel> I know ruby little.
<benzrf> sup Emmanuel_Chanel
|jemc| has left #ruby ["WeeChat 0.4.3"]
<Emmanuel_Chanel> I'm trying coding something with ruby.
<benzrf> ok
<Emmanuel_Chanel> I don't plan but I wonder if there is a way to code a ruby library without coding C or so.
benzrf is now known as benzrf|offline
<certainty> Emmanuel_Chanel: there is
<Emmanuel_Chanel> I always use very many things with perl. So I feel it a bit hard to understand how to code in ruby.
glanzi has quit [Remote host closed the connection]
<apeiros> Emmanuel_Chanel: C knowledge is not required to code ruby
<Emmanuel_Chanel> Right.
<Emmanuel_Chanel> When I search how to code a ruby library with Bing, the top hits are about coding with C. So I wondered.
_justin has quit [Quit: _justin]
jarto has joined #ruby
Royalb15_1 has joined #ruby
<certainty> Emmanuel_Chanel: no need to wonder. There are many ruby libraries out there that don't involve C
<redmaverick> If you have to search for the existence of 20 strings within in a 20 MB file how would you do it? Would use a database or grep it?
combusean has joined #ruby
<Emmanuel_Chanel> certainty: ok.
miezis has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
<certainty> redmaverick: the command-line grep?
<atmosx> redmaverick: grep of course.
<atmosx> gnu grep tha tis
Royalb15 has quit [Ping timeout: 255 seconds]
<redmaverick> certainty: atmosx: More context. User inputs a string. App generates 20 strings and I want to search whether these exist in a 20 MB file
<redmaverick> I meant using grep in system command in ruby
dx7 has joined #ruby
<jhass> what is that 20MB file?
IcyDragon has joined #ruby
<atmosx> redmaverick: the file is a string file right
<jhass> a log? some xml?
dx7 has quit [Read error: Connection reset by peer]
<atmosx> redmaverick: I'd use the '-' method
<jhass> csv?
<jhass> how often do you need to do it?
<redmaverick> kind of like a log file. Each row is a string
dx7 has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
<redmaverick> I need to do it atleast 5000 times a day.
agjacome has quit [Quit: Lost terminal]
claymore has joined #ruby
<jhass> do you want to know if any of these exist or if all exist or do you want all that do exist?
<atmosx> redmaverick: you should start benchmarking approaches and see what fits.
<jhass> is RAM usage an issue? do you spawn a new ruby process per request or is it like a webapp or something?
pigzzcanfly has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
<redmaverick> I am building a domain name suggestor. I am able to generate domain names based on user input. I have a huge domain name file and I need to tell the user if the domain name has been taken
atno has joined #ruby
soahccc^ has joined #ruby
<jhass> that sounds like you want that in a database
Soda has quit [Remote host closed the connection]
soahccc has quit [Read error: Operation timed out]
<redmaverick> wanted to use Redis but it is expensive on the cloud
hfp is now known as hfp`away
hfp`away is now known as hfp
x1337807x has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
sputnik13 has joined #ruby
niklasb has joined #ruby
<certainty> redmaverick: for which tlds do you do this?
<Emmanuel_Chanel> certainty and so on: Is there a good page to teach how to make a ruby library?
<redmaverick> certainty: only .com
x1337807x has quit [Client Quit]
<shevy> Emmanuel_Chanel a "library" in ruby is really mostly just a bunch of .rb files that reside in a lib/ directory, and usually have a common namespace
kaspergr_ has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
<shevy> Emmanuel_Chanel it will be easier if you already have finished writing some ruby files
<shevy> after that you can easily change that to use a common namespace or package it up as a .gem release
randomnick_ has joined #ruby
jameswlane has joined #ruby
<Emmanuel_Chanel> shevy: I haven't really finished coding something.
<redmaverick> So user enters "detroit" and app generates "cooldetroit.com" "detroitcity.com". I have a text file cool.txt and city.txt which has all the domains registered so far with "cool" and "city"
\marrub has joined #ruby
<jhass> Emmanuel_Chanel: http://guides.rubygems.org/
Photism has quit [Quit: Leaving]
<Emmanuel_Chanel> jhass: Thx. I check.
<redmaverick> cool.txt and city.txt are a few MB each.
yevon has joined #ruby
<certainty> redmaverick: alright. So you have a list that gets updated on a regular basis that you use to check the availaility
<jhass> redmaverick: I'd probably try if a sqlite database performs well
Photism has joined #ruby
yfeldblum has joined #ruby
<certainty> redmaverick: i'd probably go with bdb, leveldb or somesuch
<redmaverick> The list never gets updated.
<certainty> never?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<redmaverick> yeah. This will give an approximate guess. The user needs to double click it to make sure that domain name is really available
<redmaverick> Then I call who is directly.
kaspergrubbe has quit [Ping timeout: 255 seconds]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> hmm i don't see why you don't update on a regular basis then. Naturally your cache miss ration will increase but even worse domains that are free again will be flagged as non free
ctp has joined #ruby
<certainty> this will give you false positives
<Emmanuel_Chanel> Nice page.
<certainty> ratio
<redmaverick> certainty: I will eventually do that. Now, I am prototyping. Can the sqlite db store 1.3 GB of data. RAM is an issue. The micro instance on amazon is 213 mb only.
<shevy> that's quite a lot
jonmorehouse has joined #ruby
lukec has joined #ruby
hfp is now known as hfp`away
karmatr0n has joined #ruby
<redmaverick> my plan is split 1.3 GB domain data into keyword.txt (like city.txt great.txt happy.txt etc) each of which is around 1 - 3 MB only.
<certainty> shevy: i'd slurp the entire file in and store it in a global :)
shredding has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
meatherly has joined #ruby
niklasb has quit [Quit: WeeChat 0.4.3]
_justin has joined #ruby
<redmaverick> I think I would do that. Just keep the entire 20 MB in memory and check.
jonmorehouse has quit [Ping timeout: 255 seconds]
<certainty> redmaverick: not in a global of course. I wasn't serious with that one
<redmaverick> certainty: ok.
Celm has joined #ruby
arietis has joined #ruby
karmatr0n has quit [Remote host closed the connection]
rm_ has joined #ruby
IcyDragon is now known as IceDragon
toastynerd has joined #ruby
Celm has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 268 seconds]
rm_ has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
jason_ has joined #ruby
jason_ has quit [Remote host closed the connection]
jason_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rylev has joined #ruby
chichou has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
chris_thomson has joined #ruby
toastynerd has quit [Remote host closed the connection]
<redmaverick> atmosx: http://www.convalesco.org/blog/2012/10/25/comparing-arrays-in-ruby/ This link is super useful. Just checked out the - method. Thanks!
swks has joined #ruby
yevon has quit [Ping timeout: 255 seconds]
jason_ has quit [Ping timeout: 268 seconds]
karmatr0n has joined #ruby
redmaverick has left #ruby [#ruby]
Martxel has joined #ruby
mr_red has quit [Ping timeout: 268 seconds]
rylev has quit [Ping timeout: 268 seconds]
eynj has quit [Quit: Leaving.]
machete has joined #ruby
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
mr_red has joined #ruby
x1337807x has joined #ruby
chrisseaton has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cgore has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Client Quit]
momomomomo has joined #ruby
x1337807x has joined #ruby
brucelee has joined #ruby
jibran has joined #ruby
evenix has quit [Remote host closed the connection]
Merks has quit [Read error: Connection reset by peer]
jonmorehouse has joined #ruby
The_NetZ has joined #ruby
chichou has joined #ruby
soahccc^ has quit [Ping timeout: 268 seconds]
fudanchii has quit [Quit: #LaLaLaYeYeYe]
IcyDragon is now known as IceDragon
Bumptious has joined #ruby
hfp`away is now known as hfp
glide has joined #ruby
nateberkopec has quit [Quit: Leaving...]
crystal77 has joined #ruby
momomomomo has quit [Quit: momomomomo]
jonmorehouse has quit [Ping timeout: 255 seconds]
Speed has joined #ruby
Krajsnick has joined #ruby
Xiti has joined #ruby
ylluminate has joined #ruby
yfeldblum has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
JBreit has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
JBreit has left #ruby [#ruby]
MatthewsFace has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
klaut has joined #ruby
ghr has joined #ruby
timonv has quit [Remote host closed the connection]
arietis has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
blackavr has joined #ruby
x77686d has joined #ruby
porco has joined #ruby
_justin has quit [Quit: _justin]
hemanth has joined #ruby
bean__ has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
nateberkopec has joined #ruby
chichou has quit [Remote host closed the connection]
chichou has joined #ruby
<shevy> dumdedum
<shevy> not much going on today eh?
<certainty> a usual saturday
<maxxe> not seems so
<certainty> shevy: tell me a joke
taf2 has quit [Quit: taf2]
<maxxe> damn. i don't want a usual saturday. i want something better
alex88 has joined #ruby
<shevy> hehe
<shevy> I have to use the weekend to prepare for the week :(
kaspergrubbe has joined #ruby
arubin has joined #ruby
kukyakya has quit [Remote host closed the connection]
rylev has joined #ruby
<maxxe> shevy: same here often
banister has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
kaspergr_ has quit [Ping timeout: 252 seconds]
hemanth has quit [Quit: This computer has gone to sleep]
karmatr0_ has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
cj3kim has quit [Read error: Connection reset by peer]
rylev has quit [Read error: Operation timed out]
cj3kim has joined #ruby
_justin has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
cj3kim has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
ce_afk is now known as cescalante
Celm has joined #ruby
rm_ has joined #ruby
predator117 has joined #ruby
horofox has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Celm has quit [Ping timeout: 265 seconds]
rm_ has quit [Ping timeout: 252 seconds]
cgore has quit [Ping timeout: 255 seconds]
chuk has joined #ruby
cj3kim has joined #ruby
ffranz has quit [Quit: Leaving]
havenwood has joined #ruby
byennen_ has joined #ruby
_justin has quit [Quit: _justin]
cescalante is now known as ce_afk
Ziarkaen has joined #ruby
byennen has quit [Ping timeout: 265 seconds]
aagdbl has joined #ruby
Royalb15_1 has quit [Read error: Connection reset by peer]
coderhs has quit [Remote host closed the connection]
jamto11 has joined #ruby
Shidash has joined #ruby
Solnse has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 268 seconds]
jhass|off is now known as jhass
mattmcclure has joined #ruby
Nukepuppy has quit [Ping timeout: 268 seconds]
mjs2600 has joined #ruby
Aquilo has quit []
sambao21 has joined #ruby
Exeia has joined #ruby
swks has quit [Remote host closed the connection]
Hanmac1 has quit [Quit: Leaving.]
jonmorehouse has joined #ruby
Hanmac has joined #ruby
aniM has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
havenwood has quit [Remote host closed the connection]
Azzurrio has joined #ruby
Moeh has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
pdtpatrick has joined #ruby
locriani has quit [Ping timeout: 252 seconds]
pdtpatrick has quit [Client Quit]
pdtpatrick has joined #ruby
mary5030 has joined #ruby
byennen_ has quit []
shabgrd has joined #ruby
iuzuiiirerre has joined #ruby
dyoko has quit [Quit: Leaving.]
sambao21 has joined #ruby
cj3kim has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
keeguon has quit [Quit: keeguon]
shabgard has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
<shevy> god
agjacome has joined #ruby
<shevy> #ruby is so dead during weekends
treehug88 has joined #ruby
cj3kim has joined #ruby
<shevy> what is the practical difference between alias and alias_method
lolmaus has joined #ruby
maximski has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
treehug88 has quit [Client Quit]
Exeia has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<Moeh> Hey, I have a TCPServer and I would like to write everything that gets send to it to the command line. What is the best way to do that?
yfeldblum has joined #ruby
sambao21 has joined #ruby
<dorei> hello
Exeia has joined #ruby
Jonah11_ has joined #ruby
<dorei> is there an integer method that returns both the result of / and modulo?
eka has quit [Ping timeout: 240 seconds]
ndrei has quit [Remote host closed the connection]
txdv has quit [Quit: No Ping reply in 180 seconds.]
txdv has joined #ruby
<jhass> dorei: yes, divmod
<dorei> merci jhass :)
mary5030 has quit [Ping timeout: 268 seconds]
Shidash has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
RaptorJesus has joined #ruby
cocotton has joined #ruby
Kricir has joined #ruby
sambao21 has joined #ruby
nvll has joined #ruby
ndrei has joined #ruby
nvll has left #ruby [#ruby]
soahccc has joined #ruby
porco has quit [Quit: Linkinus - http://linkinus.com]
nolic has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
Terminus has joined #ruby
vlad_starkov has joined #ruby
<Terminus> hello. is there something in ruby like virtualenv in python? i just want to isolate libs to specific projects while using the ruby version that comes with the system.
rylev has joined #ruby
_1_chic23 has joined #ruby
<Terminus> rvm and rbenv both install a different ruby version right?
<jhass> Terminus: you can use the system ruby with both (not sure about rbenv). The general concept you want to google is "gemset"
sailias has quit [Ping timeout: 240 seconds]
RaptorJesus_ has joined #ruby
<jhass> note that bundler does a very good job at loading specific versions for an app without the need to install them all over again
Lewix has joined #ruby
papercode has joined #ruby
<Terminus> jhass: yeah, i'm looking at bundler right now. the virtualenv feature that i'm really looking for is i can just do "source myapp/bin/activate" and when i do "pip install foo", everything is installed in "myapp" and the env is automatically modified to take that into account.
CaptainJet has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
RaptorJesus has quit [Ping timeout: 252 seconds]
<jhass> well with bundler all you do is editing your Gemfile and running bundle and more importantly all your colleagues/contributors only need to do bundle since that file is checked into the repo
havenwood has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
RaptorJesus_ is now known as RaptorJesus
ce_afk is now known as cescalante
twiceaday has joined #ruby
Celm has joined #ruby
<Terminus> jhass: and running bundle with the Gemfile will automatically put all the gems in "myapp01", "myapp02", etc. with RUBYLIB modified?
<jhass> you'd use your normal per user or system $GEM_HOME
rm_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
<jhass> bundle is an alias to bundle install and ensures all the gems are installed
<Terminus> i'm looking for more than just per user. i want to isolate on a per-project basis, within a single user.
<jhass> but you can also pass it --path local_dir_typically_vendor and it will install and load gems to/from there
s2013 has joined #ruby
<jhass> bundler isolates the loading mechanism to the allowed gems, not the installation
<jhass> at project level
mrsolo has joined #ruby
cocotton has quit [Remote host closed the connection]
_1_chic23 has quit [Remote host closed the connection]
soahccc has quit [Quit: Legalize it!]
<Terminus> jhass: i see... was hoping for both installation and loading isolation. i haven't decided yet if i can let go of isolating installation.
hemanth has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
<Terminus> jhass: thanks for the answers. i guess i'll just have to try them all and see what works best for me. =)
tgkokk has joined #ruby
<jhass> what is the pro of isolating installation?
reset has joined #ruby
amclain has joined #ruby
<Terminus> jhass: that's why i haven't decided yet if it's important or not. =)
newUser1234 has joined #ruby
shabgrd is now known as shabgard
shabgard has left #ruby ["Bye!"]
mary5030 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
jonmorehouse has quit [Quit: WeeChat 0.4.4-dev]
pdtpatrick has quit [Quit: pdtpatrick]
cj3kim has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
skaflem has quit [Quit: Leaving]
cescalante is now known as ce_afk
newUser1234 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
iuzuiiirerre has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 251 seconds]
scarolan_ has joined #ruby
eka has quit [Client Quit]
lolmaus has joined #ruby
newUser1234 has quit [Remote host closed the connection]
amclain_ has joined #ruby
amclain_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 268 seconds]
scarolan has quit [Ping timeout: 268 seconds]
mrsolo has left #ruby ["Leaving"]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
aagdbl has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 268 seconds]
scarolan_ has quit [Ping timeout: 255 seconds]
Ziarkaen has quit [Read error: Operation timed out]
mrmargolis has joined #ruby
amclain has quit [Ping timeout: 255 seconds]
pskosinski has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
montyboy has joined #ruby
horofox has quit [Quit: horofox]
Musashi1 has joined #ruby
Musashi1 has quit [Client Quit]
maxxe is now known as dj|maxxe
taf2 has joined #ruby
AntelopeSalad_ has joined #ruby
pigzzcanfly has joined #ruby
tgkokk has quit [Ping timeout: 252 seconds]
AntelopeSalad has quit [Ping timeout: 252 seconds]
eka has joined #ruby
Hanmac1 has joined #ruby
dx7 has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
dx7 has joined #ruby
ndrei has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
wjlafrance has joined #ruby
camilasan has joined #ruby
ylluminate` has joined #ruby
arubin has joined #ruby
ylluminate has quit [Read error: Connection reset by peer]
wjlafrance has quit [Client Quit]
benzrf|offline is now known as benzrf
Kricir has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 240 seconds]
Slavox|AFK is now known as Slavox
<benzrf> hey yo
Kricir has joined #ruby
shredding has quit [Quit: shredding]
<The_NetZ> benzrf: hey, skilled in extconf.rb-foo?
OZzl has joined #ruby
<centrx> I heard benzrf is an extconf.rb master
<benzrf> na
Exeia has quit [Ping timeout: 240 seconds]
<dj|maxxe> http://railscasts.com/pro pretty elite
<The_NetZ> see, from what I understand extconf.rb is useful mainly for making gem-type objects; what I want to do, is something along those lines that will compile my executable with embedded ruby (static linking, whatnot)
saarinen has quit [Quit: saarinen]
lolmaus has quit [Ping timeout: 252 seconds]
karmatr0_ has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Remote host closed the connection]
<shevy> extconf.rb can create a Makefile
sambao21 has joined #ruby
Hobogrammer has joined #ruby
Terminus has quit [Ping timeout: 268 seconds]
jorts has joined #ruby
renklaf has joined #ruby
Es0teric has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
<The_NetZ> shevy: ayup, I just need to know how to make it produce a ruby binary instead of shared object
Xeago has joined #ruby
<havenwood> The_NetZ: Have you looked at mruby?
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
scarolan has joined #ruby
jibran has left #ruby [#ruby]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<The_NetZ> havenwood: yes, but I'd rather not have a chopped down version
Musashi1 has joined #ruby
eka_ has joined #ruby
ce_afk is now known as cescalante
mary5030 has joined #ruby
foooobear_ has joined #ruby
vlad_starkov has quit []
rylev has joined #ruby
eka has quit [Ping timeout: 268 seconds]
ktosiek has joined #ruby
amclain has joined #ruby
kitak has quit [Remote host closed the connection]
foooobear has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
RoryHughes has quit [Quit: ZNC - http://znc.in]
danshultz has joined #ruby
s3ri0us has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
s3ri0us has left #ruby [#ruby]
<shevy> hehe
s3ri0us has joined #ruby
arietis has joined #ruby
<shevy> the world of ruby
<shevy> is a world of pain
<shevy> use perl!
heftig has quit [Quit: Quitting]
RoryHughes has joined #ruby
<The_NetZ> actually I'm loving ruby more and more now that i've learned how to write c++ extensions without swig bs :P
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
jackneill has quit [Remote host closed the connection]
jamto11 has joined #ruby
<shevy> hah
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> you are following in Hanmac1's footsteps
mostlybadfly has quit [Quit: Connection closed for inactivity]
<shevy> he wrote some bindings
Hanmac1 is now known as Hanmac
<Mon_Ouie> Compile with -lruby and you just need to init ruby yourself before you can use the API
* Hanmac now weirs a black cloak - "Yes! come to the dark side of programming" ;P
<Mon_Ouie> (ruby_sysinit, RUBY_INIT_STACK, ruby_init, ruby_init_loadpath)
renklaf has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
circuit has joined #ruby
horofox has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
gverri has joined #ruby
saarinen has joined #ruby
crystal77 has joined #ruby
<shevy> Hanmac you are only wearing that cloak and nothing else, right?
lmickh has quit [Ping timeout: 252 seconds]
zommi has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<The_NetZ> shevy: lol.
<The_NetZ> shevy: I know Hanmac, we're actually working on a similar sort of project.
<The_NetZ> Mon_Ouie: probably -lruby-static, for my goals.
horofox has quit [Quit: horofox]
<The_NetZ> Mon_Ouie: at least on archlinux; not sure if other distros provide a static library to link in.
x1337807x has joined #ruby
jlast has joined #ruby
<The_NetZ> Hanmac: on that note, feel like talking?
* Hanmac is currently reading fanfiction ... maybe at another time
<The_NetZ> Hanmac: I bet its slashfiction XD
decoponio has quit [Quit: Leaving...]
<Hanmac> nope, mostly crossover
<The_NetZ> heh
chichou has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
<The_NetZ> Hanmac: might I ask which opengl library you're using?
jamto11 has joined #ruby
<Hanmac> i used gosu, but it was not nice enoth ... then i switched to SFML
rm_ has joined #ruby
lolmaus has joined #ruby
<The_NetZ> Hanmac: I'm using glfw; its like glut/freeglut in many ways, but I think I prefer it :P
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
<The_NetZ> Hanmac: was also using jsoncpp, but I figured I'd be better off using a marshalled ruby object to handle configurations.
<The_NetZ> you know, to cut down on external libraries.
rm_ has quit [Ping timeout: 255 seconds]
carraroj has quit [Ping timeout: 240 seconds]
<The_NetZ> Hanmac: I believe you attempted to recruit me at some point; I'd like to make a counter-offer
pigzzcanfly has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
<Hanmac> nah i still have to much to do ... and shevy would kill me if i abort rwx ;P
<shevy> hehe
graft has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
tgkokk has joined #ruby
<atmosx> hello
<shevy> hey atmosx
<shevy> railsing on the weekend?
jxf has joined #ruby
<The_NetZ> Hanmac: I was talking about the game :P
<atmosx> shevy: nah, studying pharmacology, actually I should study... didn't study shit.
<atmosx> shevy: I'll try tomorrow 6-12 am
<atmosx> then another two hours in the afternoon then on Monday morning another 4 hours and I'll be fine
<shevy> cool
<shevy> you have to memorize drug structures as well?
<atmosx> ah no no
<atmosx> just drug and categories
banister has quit [Ping timeout: 252 seconds]
<atmosx> and several side-effects, MoA and staff like that
<atmosx> shevy: you studied chemistry or biology?
jorts has quit [Quit: jorts]
<atmosx> not pharmacy iirc
<The_NetZ> atmosx: your name reminds me of the one I used long ago :P
CorySimmons has joined #ruby
brucelee has quit [Ping timeout: 240 seconds]
<atmosx> The_NetZ: My nicknames online where: kinder, blade (this one stacked for years), then atma (this one was hard to get at any place I was hanging) and I ended up as 'atmosx'. Seemed rather unique :-)
<shevy> atmosx biology years ago, these days chemistry
<CorySimmons> hey guys, i'm trying to install the spree_cmd gem globally so i can use spree's (rails ecomm) command line tool a la their getting started tut (http://guides.spreecommerce.com/developer/getting_started_tutorial.html) but even if I gem install spree_cmd, spree comes back as an unknown command. any ideas?
<dorei> atmosx: there's a trance music producer by the name atmos :p
<shevy> atmosx I may have a larger pharmacognosy exam in perhaps half a year
<benzrf> dorei: but it is atm osx
<atmosx> CorySimmons: find / -name 'spree_cmd' would be a good start. Then check out if spree_cmd is in $PATH
elaptics`away is now known as elaptics
maloik has quit [Ping timeout: 255 seconds]
<atmosx> CorySimmons: I get you're using something unix-like. If you are on windows I feel for you but I can't do more. Others might be able to help.
<CorySimmons> on osx
<atmosx> dorei: oh well, there's an 'x' between us
<atmosx> CorySimmons: mdfind spree_cmd
<CorySimmons> maybe i need to install with sudo
<atmosx> CorySimmons: you used system-wide ruby?!
Zhann has quit [Ping timeout: 245 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
maloik has joined #ruby
<CorySimmons> yeah this is my home machine i don't care if it gets polluted with system gems
<CorySimmons> rarely use it
<CorySimmons> atmosx: the find command is returning a ton of dirs with "permission denied" attached to them
<atmosx> shevy: you're doing a master or Ph.D. or it's another bacherlos degree?
<atmosx> CorySimmons: the mdfind?!
<CorySimmons> atmosx: no
<CorySimmons> the other one
<atmosx> CorySimmons: if you are on OSX use mdfind, stop the other one
<CorySimmons> mdfind returns one "/Users/cory/Dropbox/Projects/fireworks-store/Gemfile.lock"
derek_ has joined #ruby
<atmosx> CorySimmons: just that?
<CorySimmons> this is for a gemfile in rails
<CorySimmons> yea
<atmosx> CorySimmons: you sure you installed spree_cmd ?
<shevy> atmosx not for that exam in half a year, master in immunology at some point however, but it will be interrupted by work every now and then
derek_c has joined #ruby
<atmosx> a master in immunology
<atmosx> good
<CorySimmons> atmosx: I tried gem install spree_cmd from command line. the fireworks-store i added spree (not spree_cmd) to my gemfile
havenwood has quit [Remote host closed the connection]
<CorySimmons> even trying to add spree_cmd to gemfile doesn't fix it
<CorySimmons> now the mdfind returns /Users/cory/Dropbox/Projects/fireworks-store/Gemfile.lock; /Users/cory/Dropbox/Projects/fireworks-store/Gemfile
<atmosx> I keep my proects dropbox synced too hehe some of them at least
chrisseaton has quit []
<CorySimmons> :)
<CorySimmons> i hear it's actually buggy sometimes
<CorySimmons> haven't ran into it yet (maybe this is the first time)
Zhann has joined #ruby
chrisseaton has joined #ruby
Kricir has joined #ruby
<shevy> atmosx hmm can you sync from the commandline?
locriani has joined #ruby
<atmosx> shevy: I think you can. But I wouldn't use dropbox anymore... I'd search through alternatives. I keep it for the time being because I'm too bored to configure wuala/spideroak
<atmosx> or owncloud paying a premium for more ram on my vps
<CorySimmons> i don't think this is it
<CorySimmons> not sure what the problem is
<atmosx> CorySimmons: gem list|grep -i spree
jason__ has joined #ruby
<atmosx> what does that command return?
<CorySimmons> atmosx: http://i.imgur.com/TbEwhoW.png
<The_NetZ> atmosx: I used to use the handle atomsk_guitar; from that anime FLCL
<atmosx> The_NetZ: cool
<The_NetZ> atmosx: this was back when I still thought gaiaonline was the ultimate online comunity XD
<atmosx> CorySimmons: okay, so there it is.
<CorySimmons> ?
<atmosx> CorySimmons: what path does 'which gem' return?
<CorySimmons> which gem spree_cmd; /Users/cory/.rbenv/shims/gem
<atmosx> The_NetZ: gaia-online? :-)
<atmosx> The_NetZ: from Escaflwne? that gaia?
<CorySimmons> which spree returns nothing
<The_NetZ> atmosx: nah. it was a forum/chatsite with anime-chibi avatars and such.
tgkokk has quit [Ping timeout: 255 seconds]
<atmosx> CorySimmons: which spree_cmd
<atmosx> ?
<CorySimmons> ^
poguez_ has joined #ruby
<CorySimmons> above
<The_NetZ> CorySimmons: you'll have to add your gem's bin folder to $PATH
arietis has joined #ruby
<CorySimmons> so add /Users/cory/.rbenv/shims/gem to my path
<CorySimmons> ?
<atmosx> CorySimmons: yes
linojon has joined #ruby
<The_NetZ> CorySimmons: probably .rbenv/shims/gem/bin or something like that.
<atmosx> CorySimmons: export PATH="/Users/cory/.rbenv/shims/gem:$PATH"
Lewix has quit [Remote host closed the connection]
<The_NetZ> CorySimmons: find the binary's location, where you can do ./spree and get a result, then add that folder to $PATH.
<atmosx> CorySimmons: but there must be a nicer way handled by rbenv... I use rvm so I wouldn't know really, rvm handles these things out of the box
<The_NetZ> personally since switching to arch linux I've forgotten all my rvm stuffs, since we get the latest ruby almost immediatly :P
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
* combusean vouches for rvm
locriani has quit [Remote host closed the connection]
<The_NetZ> only reason I used it on *buntu is that was the only easyish way to have the latest ruby and jruby :P
<atmosx> The_NetZ: well, getting the latest is not really the point. Having various version's depending on the project and specfici gemsets is important.
<atmosx> The_NetZ: I like the flexibility
<combusean> i haven't been exposed much to rbenv until coming in here and it seems like there's just issues with it.
<atmosx> combusean: from my experience, most of these issues are due to lack of basic unix understanding (paths more specifically and how they work) on behalf of many ruby (especially rails) programmers
heftig has joined #ruby
<The_NetZ> atmosx: true enough; its a useful tool when needed, but as I don't use much in the way of gems and I'm building my own extensions I have no use for it :P
<dorei> linux + rvm :)
<atmosx> The_NetZ: oh nice then
<atmosx> linux osx freebsd... as long as it's not windows I'm good with it
<Veejay> Hi, I wanted to test the code provided on the documentation for Ruby queues (located at http://ruby-doc.org/stdlib-1.9.3/libdoc/thread/rdoc/Queue.html) with two producers (cause YOLO right). So I produced this: https://gist.github.com/Veejay/1c6f872845d997e73b96
Kricir has quit [Ping timeout: 240 seconds]
<Veejay> That though, doesn't work and produces a deadlock
<combusean> well yeah, but what's the point of an environment manager if you have to be fiddling with your path anyways
<combusean> more than once
<Veejay> I'm not sure I really understand why. If anyone can enlighten me here, that'd be great
evenix has joined #ruby
jason__ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
jason__ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
Advocation has quit [Quit: Advocation]
wjlafrance has joined #ruby
eka_ has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
jason__ has quit [Ping timeout: 252 seconds]
michael_lee has joined #ruby
rylev has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
rylev has quit [Read error: No route to host]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
CorySimmons has quit [Quit: Leaving.]
rylev has joined #ruby
JacobHayes has joined #ruby
jason__ has joined #ruby
coderhs has joined #ruby
melvinram has quit [Quit: melvinram]
Moeh has quit [Quit: Moeh]
coderhs has quit [Client Quit]
<certainty> Veejay: how do you tell it deadlocks?
wjlafrance has quit [Quit: This computer has gone to sleep]
<benzrf> why is rubinius not very widespread?
<benzrf> is it just the plan 9 effect?
<certainty> benzrf: probably. I like it though
<The_NetZ> what is the plan 9 effect?
reset has joined #ruby
<certainty> The_NetZ: you know what plan9 is?
Takumo has quit [Read error: Connection reset by peer]
derek_ has quit [Quit: Leaving]
<The_NetZ> certainty: never heard of it.
pigzzcanfly has quit [Remote host closed the connection]
<arubin> heh
rylev has quit [Ping timeout: 240 seconds]
<centrx> benzrf, Rubinius is kind of dead
<Veejay> Rubinius (and JRuby for that matter) are not more widespread because they have much bigger a task than MRI. Basically they work on a floating "spec" which is really thousands of C lines
<arubin> centrx: How so?
<benzrf> o=
<certainty> The_NetZ: :) an operating system that has some neat ideas on how to make resources available
<Veejay> And all the Ruby ecosystem is de facto MRI because of that
<Veejay> certainty: The error message
<Veejay> Goes: deploy.rb:27:in `join': No live threads left. Deadlock? (fatal)
<Veejay> from deploy.rb:27:in `<main>'
<The_NetZ> not to mention writing a java gem for jruby is as far as I can find far too much of a pain in the ass
<Veejay> So I guess I'm joining on a thread that is already dead
hemanth has quit [Quit: This computer has gone to sleep]
<Veejay> Also, some perspective on what I'm trying to achieve with that: The example provided in the docs specifies the number of values sent to the queue, I want that to be arbitrary (i.e. not hardcoded)
skammer has quit [Ping timeout: 255 seconds]
<Veejay> And I would like to use popen in the producer threads to launch two commands, capture their output and send it to the queue
melvinram has joined #ruby
<Veejay> So that I can then later pop that off the queue and display that on the screen
<centrx> arubin, Well, a month ago at least. Rubinius docs said it still only supported 1.8, and the one active developer said he was moving on to something else.
<BraddBitt> does anyone know what command is issued in heroku when you push new code?
<BraddBitt> some terminating signal/command but im not sure which
RowdyChild|Away is now known as RowdyChildren
<arubin> centrx: It supports 1.9.x and 2.x.
<centrx> arubin, It says that now
skammer has joined #ruby
m0s^away is now known as m0s
<arubin> centrx: There is a blog post from months ago stating that.
predator117 has quit [Ping timeout: 252 seconds]
dapz has joined #ruby
<jhass> >> Thread.new {}.tap {|t| t.join; sleep 1; t.join }
<eval-in> jhass => (https://eval.in/132618)
<centrx> arubin, Where? I'm looking at the blog right now
<arubin> That is from October.
<jhass> Veejay: ^ okay eval-in doesn't like threads, but if you try that you'll see that joining a dead thread is no issue
<Veejay> OK
<centrx> arubin, Rubinius 2.0 is expected to be compatible with Ruby 2.1. That sounds like pre-release.
<centrx> arubin, And at that time, the docs still said 1.8.7
cj3kim has joined #ruby
<Veejay> jhass: mmm, OK. I'm still getting an error though, there must be something in that code that isn't right
<arubin> centrx: Well, it is being actively developed.
<arubin> centrx: Brian just gave a talk and did a hack night here recently.
cj3kim has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
cj3kim has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<certainty> Veejay: apparently this happens if you pop more messages in the consumer than you push in the producer. I currently don't know why. I would expect the consumer to just block then
chipotle has quit [Quit: cya]
Hanmac has quit [Ping timeout: 252 seconds]
<centrx> arubin, Brian "Ruby is a dying language" Shirai is almost the only developer
<Veejay> Ah... Since I'm using while to pop I guess it pops one time too many
<certainty> but 1) i don't know much about ruby threads 2) i'm probably too tired to notice the obvious
lukec has quit [Quit: lukec]
momomomomo has joined #ruby
<Veejay> centrx: He only said that because he fears that the current statu quo will lead to Ruby dying from not being able to adapt
mumin has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<mumin> ola
<Veejay> "New" languages are emerging left and right with features that are enticing for people and he feels that MRI Ruby is not being steered in the right direction
<Veejay> And probably frustrated because he feels non-MRI implems have solutions to offer that are not being given proper consideration
claymore has quit [Quit: Leaving]
cj3kim has quit [Ping timeout: 265 seconds]
<Veejay> He's been working on Ruby for many years, real hard at that, it's not like he doesn't like the language
<centrx> Veejay, It's a fashion mindset
javierbuilder has joined #ruby
<centrx> Veejay, His post was basically about not doing Ruby any more
javierbuilder has quit [Max SendQ exceeded]
<centrx> *Not doing Rubinius rather
<Veejay> He was most likely frustrated and discouraged
rm_ has joined #ruby
dx7 has joined #ruby
jxf has quit [Ping timeout: 268 seconds]
<jhass> certainty: probably because all threads are in the blocking state ruby detects the deadlock
jason__ has quit [Remote host closed the connection]
<certainty> i wish he would continue to write the documentation on rubinius' vm
atno has quit [Remote host closed the connection]
kennym has quit [Ping timeout: 240 seconds]
<arubin> I believe that he is on vacation in Japan right now, but he is usually in #rubinius.
kennym has joined #ruby
<certainty> jhass: hmm wouldn't it be possible to emulate that by putting a blocking read in the consumer and then trying to join it?
<centrx> It makes it look like there is something wrong with the project if it takes six years to support 1.9/update the introduction to the docs to say it supports 1.9
<centrx> *There is something wrong
<momomomomo> who are we talking about?
rm_ has quit [Ping timeout: 268 seconds]
<centrx> momomomomo, http://rubini.us/blog/
brunops has joined #ruby
<jhass> certainty: emulate what? threads have different states, blocking means that they wait for some other thread to do something (so that he receives a notify that puts him into the waiting state). If all threads are blocking (join puts a thread in blocking too), none can send a notify and you got a deadlock
<momomomomo> the january post centrx ?
MissionCritical has quit [Ping timeout: 252 seconds]
<momomomomo> Sounds like they’re doing some hard work on ruby, not abandoning it
<momomomomo> “There are huge challenges given the engineering tasks, but also tremendous opportunities to demonstrate how powerful Ruby is and can be."
<centrx> momomomomo, More so the previous person. Anyway, it's the person
<centrx> *previous posts
<momomomomo> and actually, I’m being driven to Go for one project, but that’s after trying with JRuby & torquebox / rails
<momomomomo> speed is something AR doesn’t really provide
<momomomomo> but for all other apps of mine, it’s still ruby
<momomomomo> and jruby + torquebox is just so beautiful once it gets working :p
meatherly has quit [Remote host closed the connection]
atno has joined #ruby
<certainty> jhass: see. I told you I don't know much about ruby's threads. What makes the sheduler decide that a thread should be put into blocking state?
graft has joined #ruby
_Andres has joined #ruby
<momomomomo> certainty: There’s a GIL
<momomomomo> global interpreter lock
chipotle has joined #ruby
<jhass> certainty: this is not really ruby specific. Things like Mutex#synchronize do
gfunc has quit [Read error: Connection reset by peer]
<momomomomo> sleep
<momomomomo> etc.
tgkokk has joined #ruby
<combusean> jhass, can you explain more about how this issue isn't ruby specific? haven't worked with threads before and am intrigued by this discussion
Ziarkaen has joined #ruby
Celm has joined #ruby
popl has quit [Read error: Operation timed out]
<Veejay> So yeah, the issue is that I'm popping a value from an empty queue, which blocks (it's actually written in the documentation). If I try to pop(true) to make it non-blocking, then I get a ThreadError: queue empty
<jhass> combusean: ruby (since 1.9) spawns a OS level thread for each ruby thread, so the general mechanisms apply
[42] has quit [Quit: Gone...]
<certainty> ok in our case the primordial thread waits for the consumer which is presumably waiting for some resource. #pop is likely to use a mutex internally. Then the primordial thread is put into blocking state which means that all running states are blocking which leads to the error?
<combusean> ah
<jhass> combusean: the GIL (GVL since 1.9) just makes sure that no (thread unsafe) MRI code is run at the same time, the normal scheduling rules still apply
atno has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<jhass> certainty: yes
<certainty> s/states/threads/
aniM has quit [Ping timeout: 252 seconds]
pigzzcanfly has joined #ruby
robert___ has joined #ruby
LexicalScope has joined #ruby
<certainty> ok got it
<Veejay> So, reframing the issue: How does one pop values from a queue when you don't know when to stop popping
robert_ has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
<jhass> Veejay: don't block on the consumer thread, block on the producer threads and tell the consumer to kill itself afterwards
dx7 has quit [Remote host closed the connection]
michael_lee has quit [Quit: Ex-Chat]
<jhass> the consumer can then decide to still empty the queue before it exists
dx7 has joined #ruby
hfp is now known as hfp`away
<jhass> once you told itself to finish you can block on it
atno has joined #ruby
<Veejay> jhass: What do you mean "blocking on the producer"?
tgkokk has quit [Ping timeout: 255 seconds]
<Veejay> +by
[42] has joined #ruby
kennym has quit [Quit: Leaving.]
MissionCritical has joined #ruby
<jhass> [producer1, producer2].map(&:join) instead of consumer.join
<certainty> jhass: this behaviour is not the same on all implementations that feature green threads. A least CHICKEN does not do it this way. That's probably whay I was confused.
<jhass> yeah the jvm chooses to randomly notify threads too if it thinks it's a good thing to do. I think MRI differentiates between a mutex and an IO block here and detects the deadlock
atno has quit [Remote host closed the connection]
nisstyre has quit [Quit: WeeChat 0.4.3]
cj3kim has joined #ruby
<certainty> i see. thanks
<certainty> time to recharge my batteries. Have a good night everyone
<benzrf> bbl
benzrf is now known as benzrf|offline
<Veejay> jhass: Yep that works great. The only issue now is that I don't get the messages from the threads as they happen
atno has joined #ruby
<jhass> you don't?
<jhass> have updated code?
<Veejay> Well, maybe I didn't do it the "right" way
<Veejay> Yes
Kricir has joined #ruby
spicerack has joined #ruby
<Veejay> In that case it's waiting for the producers to finish and then start popping stuff off the queue, right?
<jhass> well, that's clear, you spawn the consumer only after you waited for the other threads
<Veejay> Ah, let me try pull a switcheroo on that code then
<jhass> you'd still supposed to be starting the consumer before joining on the producers
<Veejay> +to
chuk has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
spider-mario has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 255 seconds]
homelinen has joined #ruby
mostlybadfly has joined #ruby
kennym has joined #ruby
atno has quit [Remote host closed the connection]
nateberkopec has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<Veejay> jhass: http://goo.gl/QS3vQg or http://goo.gl/V6BUJi, whatever applies
MatthewsFace has joined #ruby
nari has quit [Ping timeout: 240 seconds]
<Veejay> It's working mo' better now, time to introduce the popen magic and make some magic happen. Thank you.
nateberkopec has quit [Read error: No route to host]
<jhass> you're welcome
nateberkopec has joined #ruby
foooobear_ has quit [Ping timeout: 252 seconds]
<apeiros> Veejay: queue.size.times do # <-- this only works if all jobs have been pushed before starting the consumer
<apeiros> (which sounds like an unlikely scenario as it somewhat obviates the need for threads)
nateberkopec has quit [Read error: No route to host]
<noocode> hello :)
nateberkopec has joined #ruby
<noocode> how do i use ssl with sinatra?
<heftig> depends on your application server, i guess
<heftig> typically you have a reverse proxy in front, like apache, which terminates the ssl connection
<Veejay> apeiros: Yes, I've replaced that by while message = queue.pop
<Veejay> heftig: I swear I'm not being zany, real talk. Is Apache still widely used?
evenix has quit [Remote host closed the connection]
eynj has joined #ruby
<noocode> oho, and when i use direct thin or puma - how does ssl then work?
<Veejay> I was under the impression that nginx has somehow become extremely widespread. But I might be living in a bubble.
<jhass> Veejay: I think it's far more popular still, especially in shared hosting
evenix has joined #ruby
rylev has joined #ruby
<Veejay> Ah, makes sense.
<heftig> Veejay: if you want to believe Wikipedia it's still at >50%
<Veejay> Damn
MatthewsFace has quit [Quit: This computer has gone to sleep]
LexicalScope has quit [Ping timeout: 252 seconds]
evenix_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mumin_ has joined #ruby
mary5030 has joined #ruby
MatthewsFace has joined #ruby
graft has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
evenix has quit [Ping timeout: 255 seconds]
rylev has quit [Ping timeout: 255 seconds]
carraroj has joined #ruby
mumin has quit [Ping timeout: 240 seconds]
JacobHayes has quit [Remote host closed the connection]
carraroj has quit [Client Quit]
jaimef has quit [Excess Flood]
mary5030 has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
flak has joined #ruby
sambao21 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
MatthewsFace has joined #ruby
Martxel has quit [Ping timeout: 268 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
JacobHayes has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
Martxel has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rm_ has joined #ruby
jaimef has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
kirun_ has joined #ruby
eynj has quit [Ping timeout: 268 seconds]
m0s is now known as m0s^away
dx7 has quit [Quit: Leaving...]
rm_ has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
atno has joined #ruby
ktun has joined #ruby
m0s^away is now known as m0s
kirun has quit [Ping timeout: 255 seconds]
ckinni has joined #ruby
<benzrf> "This is actually good news!" the Bitcoin advocate shouted, as his body was consumed by fire, charred flesh slapping the ground as it landed
<benzrf> oops
<benzrf> wc
Yayo has quit [Read error: Connection reset by peer]
<atmosx> ..
meatherly has joined #ruby
atno has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
Shidash has joined #ruby
ktun_ has joined #ruby
nouitfvf_ has quit [Ping timeout: 268 seconds]
jeffreybaird has joined #ruby
<shevy> is it bad to have a class that has more than 3200 lines
meatherly has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
<jhass> yes
atno has joined #ruby
<centrx> That sounds awful
kaspergrubbe has quit [Ping timeout: 252 seconds]
<centrx> I bet you could rewrite the whole program to be less than 3200 lines
<jhass> in > 98% of the cases
jhn has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<atmosx> 3200 lines
<atmosx> I can't even imagine how hat would look like
ziprar has quit [Quit: Leaving]
jmeeuwen has joined #ruby
zipace has joined #ruby
zipace has quit [Changing host]
zipace has joined #ruby
nouitfvf has joined #ruby
sqwirl has joined #ruby
SegFaultAX has quit [Ping timeout: 246 seconds]
randomnick_ has quit [Quit: Leaving]
mumin has joined #ruby
ktun2 has joined #ruby
SegFaultAX has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> haha
<ktun2> hi
<shevy> it's not going to become any shorter
<shevy> a few more thousand lines have to be ported still
mumin_ has quit [Ping timeout: 240 seconds]
ktun2 has quit [Client Quit]
agjacome has quit [Quit: leaving]
atno has quit [Remote host closed the connection]
olivier_bK has joined #ruby
pwh has quit []
alex88 has quit [Quit: Leaving...]
<shevy> if only I could get rid of all lines :(
crystal77 has joined #ruby
tjr9898 has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
atno has joined #ruby
<jhass> shevy: throw some OOP against it
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> shevy: 3.2KLoC for a single class can indicate a class which has an identity crisis
<apeiros> see single responsibility principle (SRP)
riotjones has quit [Ping timeout: 240 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noocode has quit [Ping timeout: 246 seconds]
<jhass> shevy: also see http://en.wikipedia.org/wiki/Cohesion_(computer_science) as a more general term
pigzzcanfly has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
ktun_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> jhass: I like the list of cohesion types
melvinram has quit [Quit: melvinram]
melvinram has joined #ruby
<shevy> where do you guys store the VERSION constant usually?
reset has quit [Quit: Leaving...]
SteveBenner09 has joined #ruby
<apeiros> hm, "Communicational cohesion" has the same description as "Informational cohesion"
<apeiros> shevy: in the gem's namespace
<apeiros> MyGem::Version
<shevy> hmm
noocode has joined #ruby
SteveBenner09 has quit [Client Quit]
aniM has joined #ruby
eynj has joined #ruby
<jhass> apeiros: compare the german version.
benzrf is now known as benzrf|offline
<apeiros> different ordering :D
kirun_ has quit [Quit: Client exiting]
<jhass> :P
LexicalScope has joined #ruby
banister has joined #ruby
rylev has joined #ruby
banister has quit [Max SendQ exceeded]
userx- has joined #ruby
userx- has quit [Changing host]
userx- has joined #ruby
tjr9898 has quit [Remote host closed the connection]
banister has joined #ruby
slawrence00 has joined #ruby
banister has quit [Max SendQ exceeded]
keeguon has joined #ruby
gverri has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
momomomomo has left #ruby [#ruby]
banister has quit [Max SendQ exceeded]
ktosiek has quit [Ping timeout: 252 seconds]
userx has quit [Ping timeout: 255 seconds]
banister has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<matled> is iconv just removed from stdlib or completely deprecated for ruby? I cannot see any support for transliteration in the stdlib and iconv appears to work well for that.
rylev has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
TripTastic has joined #ruby
banister has quit [Max SendQ exceeded]
<apeiros> matled: it has been deprecated a loong time ago
<apeiros> matled: by now it has been removed too
<apeiros> matled: so if you still depend on it, you have to install it as a gem
<matled> apeiros: gem install still works :)
<matled> well, I'm writing a new script
banister has joined #ruby
TripTastic is now known as JBreit2
<matled> and want to replace accents and umlauts with transliterations (i.e. strip off the accent or replace ä with ae)
banister has quit [Max SendQ exceeded]
<apeiros> matled: active support has transliteration
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<apeiros> I built one too, but that's because I needed ruby & javascript transliteration to match
JBreit2 has left #ruby [#ruby]
alaibe has joined #ruby
banister has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
aniM has quit [Ping timeout: 255 seconds]
banister has joined #ruby
<matled> thanks, I'll take a look at the activesupport function for this
banister has quit [Max SendQ exceeded]
kaspergr_ has quit [Ping timeout: 268 seconds]
banister has joined #ruby
nicoulaj has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
mary5030 has joined #ruby
alaibe has quit [Quit: leaving]
kennym has quit [Quit: Leaving.]
alaibe has joined #ruby
alaibe has quit [Client Quit]
alaibe has joined #ruby
alaibe has quit [Client Quit]
alaibe has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
ktun_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
Ziarkaen has joined #ruby
RaptorJesus is now known as HarryPotter
HarryPotter is now known as RaptorJesus
danijoo has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 268 seconds]
RaptorJesus is now known as MmmmmDrugs
danijoo has joined #ruby
MmmmmDrugs is now known as StoneyPothead
pdtpatrick has joined #ruby
rm_ has joined #ruby
alaibe has quit [Quit: leaving]
nfk has quit [Quit: yawn]
ktosiek has joined #ruby
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby
mjmac has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
reset has joined #ruby
<matled> uh, iconv needs 2.6s, active support 12.5s (baseline is 1s without transliteration)
rm_ has quit [Ping timeout: 268 seconds]
Celm has quit [Remote host closed the connection]
greenarrow has joined #ruby
jack_rabbit has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<centrx> matled, Does String#encode not do transliteration?
mikecmpbll has quit [Client Quit]
<matled> no, I haven't seen any option for that
melvinram has quit [Quit: melvinram]
olalonde has joined #ruby
<matled> it can replace/remove characters
<matled> replace all with the same (e.g. a beautiful question mark :)
meatherly has joined #ruby
mjmac has joined #ruby
<matled> if I guard the transliterate with #ascii_only? it's not too bad, was just a bit surprising that it would suddenly take 12s
Shidash has quit [Ping timeout: 252 seconds]
pigzzcanfly has joined #ruby
melvinram has joined #ruby
<centrx> matled, It looks like there are recent releases of iconv you can use? http://rubygems.org/gems/iconv
reset has quit [Ping timeout: 268 seconds]
<matled> yeah, I don't really understand the state of iconv. it can be installed from gems and has no deprecation warning, so I'm not sure if the library itself is deprecated or if it was just deprecated as part of stdlib
<apeiros> matled: it's deprecated *from ruby stdlib*, the lib itself isn't.
<apeiros> the deprecation warning says as much iirc
TripTastic has joined #ruby
jorts has joined #ruby
olalonde has quit [Ping timeout: 240 seconds]
<matled> ah, ok. I've not actually seen the warning myself, just searching for ruby transliteration showed a lot of discussions and confusion about the deprecation
aniM has joined #ruby
meatherly has quit [Ping timeout: 268 seconds]
pigzzcanfly has quit [Ping timeout: 252 seconds]
pigzzcanfly has joined #ruby
mikecmpbll has joined #ruby
greenarrow has quit [Quit: 500]
obs has joined #ruby
mary5030 has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
<mikecmpbll> .
<apeiros> if your transliteration needs are simple, #encode's replacement hash might be sufficient
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has quit [Remote host closed the connection]
ktun has joined #ruby
evenix_ has quit [Remote host closed the connection]
saarinen has joined #ruby
wjlafrance has joined #ruby
evenix has joined #ruby
ukd1 has joined #ruby
evenix_ has joined #ruby
pwh has joined #ruby
glide has quit [Ping timeout: 255 seconds]
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
andy__ has joined #ruby
danijoo has quit [Remote host closed the connection]
ktun has quit [Ping timeout: 255 seconds]
StoneyPothead is now known as RaptorJesus
evenix has quit [Ping timeout: 268 seconds]
reset has joined #ruby
benzrf|offline is now known as benzrf
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
keeguon has quit [Quit: keeguon]
grayWolf has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
pdtpatrick has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
predator117 has joined #ruby
Celm has joined #ruby
homelinen has quit [Remote host closed the connection]
grayWolf is now known as Speed
TripTastic has quit [Ping timeout: 240 seconds]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
yfeldblu_ has joined #ruby
lolmaus has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
aniM has quit [Ping timeout: 268 seconds]
Celm has quit [Ping timeout: 265 seconds]
ukd1 has quit [Quit: Leaving...]
kukyakya has joined #ruby
brucelee has joined #ruby
Celm has joined #ruby
reset has quit [Quit: Leaving...]
dorei has quit []
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
Celm has quit [Ping timeout: 265 seconds]
rylev has joined #ruby
centrx has left #ruby ["End transmission"]
elaptics is now known as elaptics`away
benzrf is now known as benzrf|offline
m0s is now known as m0s^away
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
klaut has quit [Remote host closed the connection]
JBreit has joined #ruby
Shidash has joined #ruby
centrx has joined #ruby
reset has joined #ruby
agent_white has joined #ruby
olalonde has joined #ruby
rylev has quit [Ping timeout: 268 seconds]
reset has quit [Client Quit]
<agent_white> Good evenin
lkba has joined #ruby
ndrei has joined #ruby
eka has joined #ruby
Ziarkaen has quit [Ping timeout: 268 seconds]
pdtpatrick has joined #ruby
funburn has joined #ruby
spicerack has joined #ruby
spicerack has quit [Client Quit]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
_justin has joined #ruby
melbicimni has joined #ruby
aniM has joined #ruby
SilkFox has joined #ruby
cover has quit [Remote host closed the connection]
melbicimni has left #ruby [#ruby]
mercwithamouth has joined #ruby
kukyakya has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 268 seconds]
jamto11 has joined #ruby
rm_ has joined #ruby
lukec has joined #ruby
_justin has joined #ruby
arubin has joined #ruby
Krajsnick has quit [Quit: Leaving...]
jamto11 has quit [Read error: Operation timed out]
Ziarkaen has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
NotproN has joined #ruby
jlast has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
Celm has joined #ruby
<NotproN> guys, i know nothing about ruby. But i am trying to install a software that requires me to gem install it. Then i found this post: http://stackoverflow.com/questions/14607193/installing-gem-or-updating-rubygems-fails-with-permissions-error
<NotproN> in which the guy suggests me to use rbenv
aniM has quit [Ping timeout: 255 seconds]
<NotproN> but what do i do with rbenv once it is installed?
_justin has quit [Quit: _justin]
tjr9898 has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]