apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
casadei_ has joined #ruby
chills42 has joined #ruby
devoldmx has joined #ruby
dfockler has quit [Remote host closed the connection]
lncdslnc has joined #ruby
<[spoiler]> yorickpeterse: oh I had a random epiphany. Are you using OS X? I remember a friend of mine was complaining about the same issue with the overly-soft AA of fonts and he did something to fix it
<[spoiler]> I could ask him if you want
lncdslnc has quit [Remote host closed the connection]
<Ox0dea> Infinality uber alles.
marr has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 264 seconds]
D9 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grvgr has joined #ruby
<[spoiler]> Ja!
mary5030 has quit [Remote host closed the connection]
<[spoiler]> Nein!
grvgr has quit [Client Quit]
Thomas-0725 has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42_ has joined #ruby
grvgr has joined #ruby
shazaum has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
avitzurel is now known as KensoDev
troulouliou_div2 has quit [Quit: Leaving]
dimasg has quit [Ping timeout: 244 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
choke has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
KensoDev has quit []
KensoDev has joined #ruby
nofxx has joined #ruby
jeadr has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 272 seconds]
dr3w has quit [Ping timeout: 255 seconds]
blueOxigen has joined #ruby
<[spoiler]> Ox0dea: Wouldn't the German word word for infiniality be "unfinalit:at" (`:a` is the letter `a` with a diaeresis; can't type it)
<[spoiler]> infinality*
bruno- has quit [Ping timeout: 260 seconds]
Uuku has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jeadr has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
<Ox0dea> [spoiler]: I haven't the foggiest.
<[spoiler]> Haha okay, it's a random topic anyway :P
jenrzzz has quit [Ping timeout: 244 seconds]
chills42_ has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
nettoweb has joined #ruby
TheNet has quit [Quit: Leaving...]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uwa667 has joined #ruby
nettoweb has quit [Max SendQ exceeded]
blackmesa has joined #ruby
frozen3 has joined #ruby
nettoweb has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Max SendQ exceeded]
uwa667 has quit [Client Quit]
Akkad has quit [Excess Flood]
nettoweb has joined #ruby
shock_one has joined #ruby
grvgr has quit [Quit: grvgr]
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
shmilan has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Akkad has joined #ruby
baweaver has joined #ruby
nettoweb has quit [Max SendQ exceeded]
Spami has joined #ruby
nettoweb has joined #ruby
bigmac has joined #ruby
nettoweb has quit [Max SendQ exceeded]
devbug has joined #ruby
nettoweb has joined #ruby
frozen3 has quit [Remote host closed the connection]
Spami has quit [Client Quit]
<nofxx> what's a good name for a class that'll group pages of a specific subject. Study? Theme maybe, but that resembles more design
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
juanpablo___ has quit [Quit: (null)]
choke has quit [Client Quit]
juanpablo___ has joined #ruby
juanpablo___ has quit [Client Quit]
juanpablo___ has joined #ruby
surfs^ has quit [Remote host closed the connection]
nettoweb has quit [Max SendQ exceeded]
banisterfiend has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
<Ox0dea> A group of pages is called a book. :P
rbowlby has quit [Remote host closed the connection]
carlosoliveira has quit [Quit: Connection closed for inactivity]
Oog has joined #ruby
juanpablo___ has quit [Ping timeout: 244 seconds]
<baweaver> Ox0dea: +1
<baweaver> nofxx
gusrub has quit [Quit: Leaving]
nettoweb has quit [Max SendQ exceeded]
<Ox0dea> baweaver: Did you win?
<baweaver> straight murdered :P
<baweaver> Ironically I cannot play to save my life
<baweaver> even working on the dang console.
timanema has joined #ruby
nettoweb has joined #ruby
timanema has quit [Client Quit]
nettoweb has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
vt102 has quit [Ping timeout: 244 seconds]
timanema has joined #ruby
hazelux has joined #ruby
vt102 has joined #ruby
pengin has quit [Remote host closed the connection]
charliesome has joined #ruby
KensoDev has quit [Remote host closed the connection]
KensoDev has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
veduardo has joined #ruby
[k- has joined #ruby
banister has joined #ruby
KensoDev has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
<[spoiler]> Ox0dea: Lol
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 245 seconds]
<[spoiler]> nofxx: Maybe PageCollection, it's neutral
apeiros has quit [Ping timeout: 272 seconds]
dvabr has quit [Ping timeout: 272 seconds]
rbowlby has joined #ruby
shmilan has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
<shevy> hmm I see this in old code
<shevy> entry[0,1] == '/'
<shevy> should I rather rewrite this to .start_with?
avahey has quit [Quit: Connection closed for inactivity]
<nofxx> Ox0dea, maybe booklet? Book you kind expect lots of pages, this might contain 1 or 2 pages per group.
cpruitt has quit [Quit: cpruitt]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dvabr has joined #ruby
<Ox0dea> shevy: [0,1] is just [0] there, no?
apeiros has joined #ruby
saddad has joined #ruby
pauly_oc has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
einarj has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
<[spoiler]> what he said might be best, but String#start_with? will also be better than that
<Ox0dea> I disagree emphatically.
michaeldeol has quit [Client Quit]
<[spoiler]> Ox0dea: with what? o.o
<shevy> I am semi-undecided, I find start_with? more intuitive or logical but the [] is shorter
<[spoiler]> shevy: the start_with? might be faster
<Ox0dea> [spoiler]: With preferring and proselytizing for the verbose "human-readable" methods where there exist perfectly succinct symbolic ones.
<[spoiler]> and it reads
<nofxx> Ox0dea, nah... Book is great =D
chills42 has joined #ruby
<shevy> if it is really faster then we have a winner :D
<Ox0dea> Any programmer worth her salt should be able to "read" square brackets without skipping a beat, in my opinion.
<Ox0dea> nofxx: Excellent! :P
<[spoiler]> Ox0dea: of course, but why not use it if it's there (and better?)
funguy2 has joined #ruby
jtdoncas has joined #ruby
towski_ has quit [Remote host closed the connection]
<funguy2> hi alllllllllllllllll
<Ox0dea> [spoiler]: Well, sure, in this case the verbose method is better because it's faster because it does less, but there are many other instances where that's not the case.
dgutierrez1287 has joined #ruby
<[spoiler]> Ox0dea: it's a matter of style in most other cases
lucyinthesky has quit [Quit: Leaving]
<[spoiler]> funguy2: hello :)
dr3w has joined #ruby
<[spoiler]> I like to use the english methods. I'm not *really* sure why I like them (maybe I find them nice?). But, I understand why someone wouldn't like them
<shevy> well
funguy2 has quit []
<shevy> my code is like half [x,y] and one half .start_with?
<shevy> and I don't like that, it looks as if I am drunk half the time
soulcake has quit [Quit: Quack.]
robh71 has joined #ruby
<Ox0dea> Tim Toady approves.
casadei_ has joined #ruby
<shevy> that old drunkard
shock_one has quit [Remote host closed the connection]
<[spoiler]> haha
<[spoiler]> shevy: Use what you're more comfortable with :D
<shevy> []
<[spoiler]> and what you think is more understandable
<shevy> .start_with?
<[spoiler]> damn
<[spoiler]> That's conflicting
<shevy> nah it's ok, to be fair, I did not know about .start_with? for a long time
<shevy> then I settled for [] because that is common for strings and arrays alike
<[spoiler]> shevy: it also accepts a list of args, just a side note
devoldmx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<[spoiler]> string.starts_with? *%w{ a e i o u }
<shevy> hmm
<shevy> killing 7 flies with one strike
dr3w has quit [Ping timeout: 245 seconds]
frozen3 has joined #ruby
bruno- has joined #ruby
christiandsg has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
zenspider has joined #ruby
nettoweb has joined #ruby
Mia has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
<zenspider> rawr
workmad3 has quit [Ping timeout: 272 seconds]
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Axy has quit [Ping timeout: 255 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
ff7f00 has left #ruby [#ruby]
lele|w has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
lele|w has joined #ruby
<[spoiler]> zenspider: oh no, a spider!
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
nettoweb has quit [Max SendQ exceeded]
lannonbr has quit [Quit: WeeChat 1.2]
mary5030 has joined #ruby
saddad has quit [Ping timeout: 255 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
<zenspider> did I miss anything exciting?
nettoweb has joined #ruby
<Ox0dea> I discovered Errno::EDOOFUS.
<Ox0dea> It's a codification of PEBKAC from the FreeBSD project.
<[spoiler]> we have a pebkac baton in our office
<Ox0dea> Does it see frequent utilization?
Axy has joined #ruby
episage has quit [Ping timeout: 246 seconds]
<[spoiler]> Fortunately no, but I did get whacked once because I pulled my mouse cord out with my foot and three of us were trying to debug wtf is up with my mouse
nettoweb has quit [Max SendQ exceeded]
<shevy> lol
nettoweb has joined #ruby
maletor has quit []
Mia has quit [Ping timeout: 244 seconds]
<[spoiler]> "Is it plugged in?" - "Yes, it worked a second ago"; "Did you check? - Lies, "yes, of course I checked!"
<[spoiler]> that is how it begun
<[spoiler]> Our ~5 minute adventure
chills42 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
arta82 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nettoweb has quit [Client Quit]
mary5030 has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
sarkyniin has quit [Quit: Quit]
s00pcan has joined #ruby
<shevy> Ox0dea are you stalking nobu?
<[spoiler]> Ox0dea: what... You aren't?
<[spoiler]> shevy*
mary5030 has quit [Ping timeout: 246 seconds]
<[spoiler]> Everyone who uses Ruby stalks him. It means you're cultured!
<Ox0dea> shevy: It's not my fault he deserves his Patch Monster title.
<shevy> [spoiler] not only omits some characters, now he talks to the wrong people! :D
<shevy> [spoiler] I stalk the whole ruby changelog crew
<shevy> well, save for the 1 commit in 365 days people because I don't know them at all... but nobu... ko1 ... mr. tenderlove...
<shevy> all get stalked!
hazelux has quit []
kies has joined #ruby
veduardo has quit [Ping timeout: 252 seconds]
<zenspider> haha. I fall into the 1/365 camp these days. (yay!)
juanpablo___ has joined #ruby
jimbeaudoin has quit [Quit: Connection closed for inactivity]
scottschecter has joined #ruby
<[spoiler]> zenspider: should be we be happy because you are taking more time for yourself, or should we feel bad because you have less time now?
yh has quit [Ping timeout: 244 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<zenspider> I finally got minitest to be installed as a real gem, so I don't have merge hell into ruby anymore
<[spoiler]> Ah
<zenspider> I want the same to happen for rdoc and rake (and nearly everything else in ext and lib, honestly)
<[spoiler]> it does sound like a good idea yeah
<zenspider> not gonna happen anytime soon, unfortunately. but whatever. their pain is less my concern these days
juanpablo___ has quit [Ping timeout: 265 seconds]
lwu_ has quit [Quit: This computer has gone to sleep]
Oog has quit []
<[spoiler]> oh wait I thought rdoc was moved
<[spoiler]> I thought that was done ages ago, actually
<[spoiler]> Bah
scripore has joined #ruby
Volsus has quit [Quit: Leaving]
dorei has quit []
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
ni291187 has joined #ruby
<ni291187> |\|1993R
ni291187 is now known as |\|1993R
chouhoulis has quit [Remote host closed the connection]
|\|1993R is now known as N1993|2
<Ox0dea> I've never seen the name Nigel spelt that way.
gizmore has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
yuung has quit [Quit: Leaving]
knrz has joined #ruby
frozen3 has quit [Remote host closed the connection]
belteshazzar has joined #ruby
frozen3 has joined #ruby
rbowlby has quit [Remote host closed the connection]
jonee has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
frozen3 has quit [Ping timeout: 250 seconds]
aspiers has quit [Ping timeout: 246 seconds]
lucyinthesky has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
knrz has quit [Quit: Textual IRC Client: www.textualapp.com]
knrz has joined #ruby
knrz has quit [Client Quit]
knrz has joined #ruby
knrz has quit [Client Quit]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
tkuchiki has joined #ruby
diegoviola has joined #ruby
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
s00pcan has quit [Ping timeout: 272 seconds]
mago0_ has quit [Ping timeout: 252 seconds]
jonee has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
howdoico1 has quit [Ping timeout: 250 seconds]
lannonbr has joined #ruby
danman has quit [Quit: danman]
s00pcan has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
mago0_ has joined #ruby
<havenwood> !mute N1993|2
tkuchiki has quit [Remote host closed the connection]
Oog has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
happy_dev has joined #ruby
skryking has joined #ruby
tkuchiki has joined #ruby
skryking has quit [Remote host closed the connection]
<happy_dev> hey all not sure if this is the right place to ask this, but my heroku web app stopped working
ivanskie has joined #ruby
<happy_dev> it was a reddit image scraper
<happy_dev> i didnt do any code changes, but it just randomly stopped working since today
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<[spoiler]> Goodnight everyone! (happy_dev: did you you see their recent changes in the way free dynos are handled, also make sure they didn't do something on their DNS again)
<happy_dev> http://i.imgur.com/0VVuWUf.png this is the exact error
<happy_dev> [spoiler]: and no, i didnt hear about those changes, ill check it out
poguez_ has quit [Quit: Connection closed for inactivity]
RickHull has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<happy_dev> oh i just read the error again ._. maybe i just have to use https
jonee has joined #ruby
mikecmpbll has joined #ruby
<happy_dev> yep that was it lol
scripore has quit [Quit: This computer has gone to sleep]
<RickHull> dumb question: is appending to an Array threadsafe? or should I use a queue?
<RickHull> a Thread::Queue, that is
jeadr1 has joined #ruby
<RickHull> i'm not reading from the datastructure until all threads have finished
<RickHull> interesting, it looks like C code effectively atomic due to GIL
<RickHull> so I should be able to just append to an Array
happy_dev has left #ruby [#ruby]
<RickHull> (under MRI)
cschneid_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
saddad has joined #ruby
einarj has joined #ruby
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
<RickHull> going with this approach: https://github.com/ruby-concurrency/thread_safe
djbkd has joined #ruby
jonee has quit [Ping timeout: 244 seconds]
jeadr has joined #ruby
jeadr1 has joined #ruby
arta82 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has quit [Quit: EllisTAA]
einarj has quit [Ping timeout: 246 seconds]
surfs^ has joined #ruby
shmilan has joined #ruby
gambl0re has joined #ruby
tkuchiki has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
scripore has joined #ruby
mikecmpbll has joined #ruby
djbkd has joined #ruby
N1993|2 has quit [Remote host closed the connection]
mary5030 has joined #ruby
juanpablo___ has joined #ruby
s2013 has joined #ruby
surfs^ has quit [Remote host closed the connection]
aperios has quit [Ping timeout: 250 seconds]
ruby-lang886 has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
jtdoncas has quit [Ping timeout: 265 seconds]
lucyinthesky has quit [Quit: Leaving]
robh71 has joined #ruby
roolo has quit [Remote host closed the connection]
robh71 has quit [Client Quit]
hakunin has quit []
umgrosscol has joined #ruby
tkuchiki has joined #ruby
davedev2_ has joined #ruby
hololeap has quit [Ping timeout: 246 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
pocketprotector has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
djbkd has quit [Remote host closed the connection]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mikecmpbll has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frozen3 has joined #ruby
speaking1ode has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ribbons has joined #ruby
<RickHull> yeah, pretty slick :)
<RickHull> i'm a ruby guy in a Java shop these days
<RickHull> i figure i'll be firing up jruby in anger sooner or later
<havenwood> RickHull: nice
Asher has quit [Quit: Leaving.]
lwu has joined #ruby
lwu has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 246 seconds]
mancomunado has joined #ruby
<havenwood> ^ that comment could really use some clarifying
<mancomunado> Which text reader simultaneously scroll both texts?
<havenwood> the grey stuff is mostly a lie
<havenwood> mancomunado: text reader?
darkf has joined #ruby
<RickHull> havenwood: how would you characterize it? "because of MRI's GIL ..."
<mancomunado> havenwood, exacly
<RickHull> mancomunado: both texts?
frozen3 has quit [Ping timeout: 244 seconds]
<mancomunado> RickHull, yes
<RickHull> mancomunado: indeed
Asher has joined #ruby
chouhoulis has joined #ruby
<RickHull> what do you mean by `both texts`?
<RickHull> also `cat` is a reasonable text reader
<mancomunado> RickHull, havenwood two opened texts
<RickHull> see also: less, more
<RickHull> mancomunado: are you on windows?
<mancomunado> .pdf .txt or whatever opened side by side with another same type
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mancomunado> RickHull, linux
<mancomunado> debian
<RickHull> this isn't really a ruby question
workmad3 has joined #ruby
<RickHull> however, many document readers will let you have two windows side by side, or two panes of the same window
bigmac has quit [Ping timeout: 250 seconds]
robh71 has joined #ruby
chills42 has joined #ruby
<mancomunado> RickHull, by scrolling will both windows scroll toguether?
<RickHull> i'm not familiar with any document readers that explicitly handle both .pdf and .txt
frozen3 has joined #ruby
<RickHull> mancomunado: are you thinking of some sort of diff tool?
<RickHull> to compare 2 docs?
<mancomunado> any, .pdf or .txt was just an example since you wasn't understanding
<mancomunado> to compare yes
grvgr has joined #ruby
<RickHull> i'm not aware of any multi-paned doc readers with synchronized scrolling
<RickHull> not really a ruby question. maybe try #debian or #freedesktop
chills42 has quit [Remote host closed the connection]
<mancomunado> you really passed on this whole series of questions just to fuck around, twat rat?
chills42 has joined #ruby
patrick_star has quit [Ping timeout: 264 seconds]
<mancomunado> cocksucker
mancomunado has left #ruby ["Leaving"]
Musashi007 has joined #ruby
patrick_star has joined #ruby
DmitryM has left #ruby [#ruby]
pocketprotector has joined #ruby
<RickHull> coherent communication is apparently a growth area for mancomunado
workmad3 has quit [Ping timeout: 250 seconds]
<RickHull> one might say he's ...
<RickHull> incommunicado
* RickHull puts on sunglasses
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
XoRoN has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
arta82 has joined #ruby
devoldmx has joined #ruby
<havenwood> RickHull: Maybe something like: Hashes and Arrays are already thread-safe in CRuby because of the Global VM Lock (GVL).
braincrash has quit [Quit: bye bye]
<RickHull> yeah, that's the idea
<RickHull> as i understand
<Ox0dea> > i'm not aware of any multi-paned doc readers with synchronized scrolling
<Ox0dea> :set scrollbind
<Ox0dea> RickHull: Do you even Vim, mate?
benlieb has quit [Quit: benlieb]
<RickHull> eight megs and constantly swapping
<Ox0dea> Wrong one.
<RickHull> emacs > imacs
<havenwood> RickHull: I'm was just having a pedantic nit with the "never runs code in parallel" bit.
<havenwood> no matter
devoldmx has quit [Ping timeout: 260 seconds]
<RickHull> oh, right, you were answering my question
<RickHull> sorry :)
siemprefresco has joined #ruby
tkuchiki has joined #ruby
The_Phoenix has joined #ruby
oo_ has quit [Remote host closed the connection]
baweaver has joined #ruby
braincrash has joined #ruby
<siemprefresco> Hello all, I was hoping I could get some guidance. I'm interested in writing an automated script that would continually monitor a json API and save off specific information to Firebase on any changes. What would be the best method to go about creating something like this?
<siemprefresco> I'd want it to hit an endpoint every 5 seconds and save of certain info on change.
AndyBotwin has joined #ruby
bricker has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
scripore has joined #ruby
xcesariox has joined #ruby
whiteline has quit [Ping timeout: 246 seconds]
<RickHull> i like https://github.com/rickhull/mudbug for JSON APIs
decoponio has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: i've nodded off.]
<RickHull> that client will yield the json response as a native ruby object. you can walk the object / structure for the data you need. as for scheduling the requests, there are lots of options. I'd suggest a short-running script scheduled by crontab, to start with
<RickHull> rather than a long-running script that does its own scheduling
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
<havenwood> RickHull: 5 sec is a bit quick for cron, no?
<havenwood> RickHull: mudbug looks neat, i want to take a look!
<RickHull> oh, good point
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<siemprefresco> some context, the short request window is because it's monitoring nba game data and I'd like it to update in as realtime as possible
umgrosscol has quit [Remote host closed the connection]
<havenwood> siemprefresco: If you care about time slipping from say sleeping 5 seconds then the extra time from each job, see a gem like Timers: https://github.com/celluloid/timers#readme
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcarmich has joined #ruby
<RickHull> basically: do you need consistent intervals that average exactly 5 seconds, or do you just need some interval that's around 5 seconds?
The_Phoenix has joined #ruby
<Ox0dea> > Do The Right Thing 80% of the time every time
<Ox0dea> :+1: READMEMES = <3
<RickHull> Ox there are more :)
<havenwood> siemprefresco: Here's HTTP.rb, another of the many nice HTTP clients in Ruby: https://github.com/httprb/http#readme
<siemprefresco> nba feed updates every 5 seconds so i'd like to match their update cycle
<siemprefresco> Cool, I'll check out these three libraries
<RickHull> Ox I'm especially proud of deleting facebook :p
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
hfp has left #ruby [#ruby]
davedev2_ has quit []
hfp has joined #ruby
hfp has left #ruby [#ruby]
Volsus has joined #ruby
dgutierrez1287 has joined #ruby
rubie has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
njr has joined #ruby
gwendall has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
rakm has joined #ruby
Musashi007 has quit [Quit: Musashi007]
rakm has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
Rickmasta has joined #ruby
decoponio has joined #ruby
baweaver_ has joined #ruby
belteshazzar has quit [Ping timeout: 265 seconds]
hololeap has joined #ruby
davedev24 has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
graft_ has joined #ruby
lwu_ has joined #ruby
jonee has joined #ruby
baweaver_ has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
graft_ is now known as graft
malcolmva has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 256 seconds]
davedev24 has quit []
socialjackie_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
diegoviola has quit [Quit: WeeChat 1.2]
mikecmpbll has joined #ruby
Oog has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
dopieee has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozen3 has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 244 seconds]
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
snowkidind has joined #ruby
jeadr has joined #ruby
jeadr1 has joined #ruby
psy_ has joined #ruby
jonee has quit [Ping timeout: 245 seconds]
socialjackie_ has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
lannonbr has quit [Quit: WeeChat 1.2]
bricker has quit [Ping timeout: 250 seconds]
jpfuentes2 has joined #ruby
gix has joined #ruby
vdamewood has joined #ruby
frozen3 has joined #ruby
christiandsg has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw_ has joined #ruby
howdoi has joined #ruby
devoldmx has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
frozen3 has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seanmclaren has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
arta82 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 256 seconds]
malcolmva has joined #ruby
jonee has joined #ruby
gwendall has quit [Remote host closed the connection]
mary5030 has joined #ruby
AccordsLTN has joined #ruby
woodruffw_ has left #ruby ["And then he took off."]
Hal_9000_ has joined #ruby
saddad has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
<seanmclaren> bd
AccordLTN has quit [Ping timeout: 245 seconds]
LMity has joined #ruby
einarj has joined #ruby
woodruffw has joined #ruby
juanpablo___ has joined #ruby
s2013 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has joined #ruby
mikecmpbll has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
juanpablo___ has quit [Ping timeout: 245 seconds]
_aeris_ has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 250 seconds]
christiandsg has quit [Remote host closed the connection]
_aeris_ has joined #ruby
chills42 has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
allcentury has quit [Ping timeout: 260 seconds]
lessless has joined #ruby
j4cknewt has joined #ruby
oo_ has joined #ruby
djbkd has quit [Quit: My people need me...]
phutchins has quit [Ping timeout: 264 seconds]
shmilan has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
jonee has quit [Ping timeout: 265 seconds]
christiandsg has quit [Remote host closed the connection]
blue_deref has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
allcentury has joined #ruby
workmad3 has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 272 seconds]
<RickHull> havenwood: what's the verdict on mudbug. don't hesitate to watch, star, or fork it
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> RickHull: have been distracted and haven't had a chance to look past my first glance
<havenwood> RickHull: i will though!
<RickHull> no worries. i have some doubts about the project, but it's been very useful for me
jonee has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
GarethAdams has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 244 seconds]
stallmen has quit [Quit: WeeChat 1.1.1]
GarethAdams has joined #ruby
seanmclaren has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
jonee has quit [Ping timeout: 260 seconds]
claw has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Lewix has joined #ruby
<Lewix> i think i prefer coding on mac than on linux hands down
<Ox0dea> lewix: Are you sure you're not bringing a match to a flamewar?
tkuchiki has joined #ruby
<Lewix> I recently switched to a pc then i installed linux
<Lewix> I'm not nearly as productive
Juanchito has quit [Quit: Connection closed for inactivity]
Vile` has quit [Ping timeout: 272 seconds]
AlphaAtom has joined #ruby
Vile` has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
joe2 has quit [K-Lined]
jokester has quit [K-Lined]
AlphaAtom has quit [Client Quit]
Yzguy has quit [Quit: Zzz...]
blue_deref has quit [Quit: bbn]
joe2 has joined #ruby
jokester has joined #ruby
<RickHull> lewix: what are you missing?
psy_ has quit [Read error: Connection reset by peer]
lordkryss has quit [Quit: Connection closed for inactivity]
Gribo has joined #ruby
darkxploit has joined #ruby
jonee has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
AndyBotwin has quit [Quit: Leaving]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
darkxploit has quit [Max SendQ exceeded]
tmtwd has joined #ruby
tmtwd has quit [Remote host closed the connection]
darkxploit has joined #ruby
graft has quit [Quit: Lost terminal]
Rickmasta has joined #ruby
sevenseacat has joined #ruby
speaking1ode has quit [Ping timeout: 246 seconds]
* baweaver grabs popcorn
martinium has quit [Remote host closed the connection]
darkxploit has quit [Max SendQ exceeded]
<baweaver> ohai sevenseacat
<sevenseacat> seems i have good timing.
<baweaver> Hm?
<baweaver> no prior context if that's what you're thinking.
jonee has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
rbowlby has joined #ruby
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
nso95 has joined #ruby
nso95 has quit [Client Quit]
nso95 has joined #ruby
Lewix has quit [Ping timeout: 246 seconds]
nso95 has quit [Changing host]
nso95 has joined #ruby
tkuchiki has joined #ruby
towski_ has joined #ruby
darkxploit has joined #ruby
jack_rabbit has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
jack_rabbit has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
<Aeyrix> I heard popcorn
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
rbowlby has quit []
shinnya has quit [Ping timeout: 240 seconds]
Volsus has quit [Quit: Leaving]
<RickHull> more than 3 seconds between pops :(
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
youngbaks has joined #ruby
tkuchiki has joined #ruby
Hal_9000_ has quit [Quit: Hal_9000_]
mikecmpbll has quit [Quit: i've nodded off.]
casadei_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
psy_ has joined #ruby
revoohc has joined #ruby
allcentury has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
bronson has joined #ruby
baweaver has quit [Remote host closed the connection]
youngbaks has quit [Quit: WeeChat 1.2]
allcentury has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: This computer has gone to sleep]
rippa has joined #ruby
revoohc has quit [Quit: revoohc]
_ht has joined #ruby
postmodern has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
chriswang has joined #ruby
ranchodev has joined #ruby
mary5030 has joined #ruby
rippa has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 264 seconds]
frozen3 has joined #ruby
chriswang has quit [Remote host closed the connection]
rippa has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
juanpablo___ has joined #ruby
bruno- has joined #ruby
mikecmpbll has joined #ruby
khebbie has quit [Remote host closed the connection]
frozen3 has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 252 seconds]
timanema has quit [Ping timeout: 244 seconds]
juanpablo___ has quit [Ping timeout: 272 seconds]
snowkidind has quit [Quit: snowkidind]
lwu_ has quit [Quit: This computer has gone to sleep]
gambl0re has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
s2013 has joined #ruby
shock_one has joined #ruby
Iskarlar has joined #ruby
einarj has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
einarj has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
Musashi007 has joined #ruby
duderonomy has quit []
workmad3 has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devbug has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
AlexRussia has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
khebbie has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
khebbie has quit [Remote host closed the connection]
Spami has joined #ruby
_blizzy_ has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
devoldmx has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
nso95 has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
shock_one has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
lessless has joined #ruby
_blizzy_ has joined #ruby
RickHull has left #ruby [#ruby]
howdoi has joined #ruby
psy_ has quit [Ping timeout: 260 seconds]
skade has joined #ruby
symm- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shock_one has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
amclain has quit [Quit: Leaving]
thiagovsk has joined #ruby
darkxploit has quit [Ping timeout: 256 seconds]
hololeap has quit [Ping timeout: 256 seconds]
rehat has quit [Remote host closed the connection]
sameerynho has joined #ruby
flegercovateam has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Oka has quit [Quit: さようなら]
mikecmpbll has joined #ruby
jtdoncas has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pabs has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
jinx123 has quit [Quit: leaving]
PaulVern has joined #ruby
_ht has quit [Ping timeout: 244 seconds]
<PaulVern> Hi, what's the best terminal based IDE/editor for Ruby
<PaulVern> with autocomplete?
salusinarduis has joined #ruby
pabs has joined #ruby
leat has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
rhg135 has quit [Ping timeout: 255 seconds]
<PaulVern> or rather, what are some good editors?
solars has quit [Ping timeout: 255 seconds]
AlexAltea has quit [Ping timeout: 240 seconds]
<salusinarduis> PaulVern: Rubymine is nice
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<flegercovateam> PaulVern: Rubymine is probably the most complete but not free. Try JEdit or Netbeans for free.
<flegercovateam> Thanks for this troll !
workmad3 has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ribbons has quit [Read error: Connection reset by peer]
roolo has joined #ruby
ndrei has joined #ruby
jimms has joined #ruby
Iskarlar has joined #ruby
allcentury has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<atmosx> hello
PaulVern has quit [Ping timeout: 245 seconds]
<atmosx> hm inconsolata at 14pt, anti-aliased, looks incredibly clean and rounded on my imac 27".
<bnagy> Envy Code R > everything fight me
allcentury has quit [Ping timeout: 264 seconds]
<bnagy> actually Mesch, which is a Menlo fork is OK, but I don't like the angle bracekets
dopieee has quit [Quit: This computer has gone to sleep]
yardenbar has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
skade has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
jamesaxl has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
<atmosx> bnagy: does Mesh support non-ascii chars?
<atmosx> I need to write Greek in the terminal, unfortunately.
juanpablo___ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
* apeiros still happy with deja-vu
Trynemjoel has joined #ruby
_blizzy_ has quit [Ping timeout: 260 seconds]
juanpablo___ has quit [Ping timeout: 256 seconds]
salusinarduis has quit [Quit: My computer has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
pawel2 has joined #ruby
<Ox0dea> apeiros: That's called indoctrination. :P
aperios has joined #ruby
salusinarduis has joined #ruby
allcentury has joined #ruby
<apeiros> Ox0dea: hm no, that'd require somebody indoctrinating me
<ekleog> Hi there! I have a Logger "global variable" (actually a module @@variable). I'm using MiniTest through rake. Is there a way to set this variable to output to STDERR in case it is run through rake test, yet default to STDOUT for normal programs?
<apeiros> &ri Module#class_variable_set
<apeiros> ^ ekleog
<apeiros> or provide a proper method for it
<apeiros> (preferred)
dopie has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
<ekleog> Well, I must have poorly explained my issue: I don't know where in the Rakefile I could put the line that sets it to output to STDERR -- the only way I could think of would be to put a line at the beginning of each test case -- clearly a bad idea
<ekleog> (and when trying to put it inside the TestTast definition the path seems not to be setup yet for module requisition)
<ekleog> s/Tast/Task/
<apeiros> ekleog: that's what test setup method exists for
devoldmx has joined #ruby
<ekleog> This would mean I have to put one for each MiniTest::Test class; isn't it ?
Musashi007 has quit [Quit: Musashi007]
<ekleog> Oh, just thought about adding an intermediate class inbetween my tests and MiniTest::Test ; thanks!
stardiviner has quit [Quit: WeeChat 1.2]
<zenspider> ekleog: what are you trying to do?
<zenspider> I totally don't understand your description
mcr_ has joined #ruby
<ekleog> zenspider: Basically, I have to initialize a global state before any test is run
mrtg9970 has quit [Quit: Leaving]
einarj has joined #ruby
<zenspider> but... only if it is run through rake? not via ruby? why?
<zenspider> ruby -Ilib test/test_something.rb should behave differently than rake?
mcr_ has quit [Client Quit]
<ekleog> Not only if it is run through rake, but only for the tests -- and if I do not have to repeat the global state setup for each test file I feel better. The solution of which was to make my tests inherit from MyTest instead of MiniTest::Test ; and to do the global state setup in MyTest.setup
mikecmpbll has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
<zenspider> ekleog: that's a solution. do you have a test_helper file?
lessless has joined #ruby
j4cknewt has quit [Ping timeout: 246 seconds]
<ekleog> zenspider: Is this name any special? I have a helper file in which I have put the MyTest class definition; but searching for "ruby test_helper" only brought up stuff about rails
<zenspider> it's a common pattern. test/test_helper.rb and then you require test_helper at the top of all your tests
<zenspider> I generally don't use it, but I'm wierd like that
<zenspider> but it sounds like all you want to do is to put class X; @@logger = TestLogger.new ; end in there
<zenspider> no need to change all your tests to use a new superclass
marr has joined #ruby
* ekleog is too used to languages requiring a "main" function
marr has quit [Excess Flood]
<ekleog> Thanks!
<zenspider> I'm not sure how that's relevant
tkuchiki has joined #ruby
marr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
salusinarduis has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ledestin has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
eGGsha has joined #ruby
_ht has joined #ruby
salusinarduis has joined #ruby
salusinarduis has quit [Client Quit]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
lkba has quit [Quit: Bye]
krz has joined #ruby
gard has joined #ruby
jimms has joined #ruby
eGGsha has quit [Ping timeout: 264 seconds]
DifferentLambda has joined #ruby
Olipro has quit [Ping timeout: 240 seconds]
Olipro has joined #ruby
devoldmx has quit [Remote host closed the connection]
lordkryss has joined #ruby
FernandoBasso has joined #ruby
absolutejam has joined #ruby
last_staff has joined #ruby
gard has quit [Ping timeout: 240 seconds]
PaulVern has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
ledestin has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
lessless has joined #ruby
einarj has joined #ruby
salusinarduis has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 250 seconds]
PaulVern has quit [Ping timeout: 250 seconds]
TomyLobo has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ndrei has quit [Ping timeout: 264 seconds]
darkxploit has joined #ruby
allcentury has joined #ruby
charliesome has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
bruno- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawel2 has quit [Quit: WeeChat 1.2]
_blizzy_ has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 272 seconds]
dopie has quit [Quit: This computer has gone to sleep]
juanpablo___ has joined #ruby
meph has joined #ruby
_blizzy_ has joined #ruby
markserver has joined #ruby
jonee has joined #ruby
allcentury has joined #ruby
juanpablo___ has quit [Ping timeout: 250 seconds]
<markserver> Hello, i've installed mysql2 gem, so i call a stored procedure via client.query(".....") how can i verify if the query is done successful? Thanks
lessless has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yh has joined #ruby
jonee has quit [Ping timeout: 240 seconds]
<markserver> Hello, i've installed mysql2 gem, so i call a stored procedure via client.query(".....") how can i verify if the query is executed successful? Thanks
<markserver> I can post my code if needed
allcentury has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
jimms has quit [Remote host closed the connection]
ruby-lang591 has joined #ruby
shock_one has quit [Remote host closed the connection]
ruby-lang591 has quit [Client Quit]
<jhass> usually it should raise an error if it failed
<jhass> markserver: ^
<markserver> @db.query("CALL Transfer(#{@account_id}, #{recipient_id}, #{amount})") i've done this but it doesn't return true
frozen3 has joined #ruby
DLSteve has joined #ruby
<markserver> jhass : ^
speaking1ode has joined #ruby
<jhass> what does it return? ;)
<markserver> an array of result
<markserver> but the stored procedure doesn't have OUT parameter
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> are you sure it's an array? what's in it?
frozen3 has quit [Ping timeout: 256 seconds]
jonee has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
j5s7 has joined #ruby
j5s7 has quit [Client Quit]
<markserver> jhass: i've done puts @db.query("CALL Transfer(#{@account_id}, #{recipient_id}, #{amount})").inspect and it return nil
<markserver> so i think it's an empty array
<jhass> no, it's nil
jonee has quit [Ping timeout: 244 seconds]
<jhass> >> puts nil.inspect
<ruboto> jhass # => nil ...check link for more (https://eval.in/417084)
<jhass> I think everything's fine
rodfersou has joined #ruby
<jhass> markserver: btw there's p which does just that
<jhass> >> p nil
<ruboto> jhass # => nil ...check link for more (https://eval.in/417085)
AlphaAtom has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby [#ruby]
salusinarduis has left #ruby ["Connection closing."]
<markserver> jhass: nil.inspect return nil, sorry for too many question i'm newbie with ruby
<jhass> no worries
<markserver> one second, i post my code on gist
<jhass> are you really sure something is broken?
<markserver> no, the query is executed succesfully but i'm not sure how to outpout a result
sarkyniin has joined #ruby
LMity has joined #ruby
charliesome has joined #ruby
tkuchiki has joined #ruby
<markserver> jhass: https://gist.github.com/anonymous/21f6020e6085e517f159 this is the function
Pathfinder has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<markserver> jhass: and this is the menu choice with the code https://gist.github.com/anonymous/c71db3d54a7245e45d2f
<jhass> markserver: just say it's successful in the line after executing the query. iirc it will raise so you may want to rescue an error and say it failed then
tkuchiki has joined #ruby
<markserver> it's a very simple bank application
<jhass> but verify what i said by running a failing query
<jhass> so yeah, just return true and rescue Mysql2::Error or whatever it was (verify!) and return false
<markserver> so : if Mysql2::Error return false else return true
frozen3 has joined #ruby
<markserver> jhass: ^
Iskarlar has joined #ruby
ndrei has joined #ruby
<jhass> rescue, not if
sarkyniin has quit [Remote host closed the connection]
<jhass> so more like def foo; query; true; rescue Mysql2::Error; false; end;
LMity has quit [Ping timeout: 240 seconds]
abdoudjanifresh has quit [Ping timeout: 244 seconds]
abdoudjanifresh has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang886 has quit [Ping timeout: 246 seconds]
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
mutuma has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Pathfinder has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jeadr has joined #ruby
jeadr1 has joined #ruby
jimms has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<markserver> jhass: i need to put begin at the start of the function?
<jhass> no, it's implicit for method definitions (no functions in ruby ;) )
dEPy has joined #ruby
<markserver> even in php are methods, i forgot thath i'm writing a class
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mutuma is now known as Pathfinder
nofxx has quit [Ping timeout: 252 seconds]
speaking1ode has quit [Ping timeout: 265 seconds]
<markserver> jhass: thanks, works very good
<jhass> yw
postmodern has joined #ruby
chabil has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
HexMan has joined #ruby
pengin has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danieli has joined #ruby
yeticry_ has joined #ruby
bruno- has joined #ruby
ndrei has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
ht__ has joined #ruby
allcentury has joined #ruby
UtkarshRay has joined #ruby
pengin has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has joined #ruby
workmad3 has joined #ruby
Iskarlar has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
jespada has quit [Client Quit]
Iskarlar has quit [Client Quit]
banister has joined #ruby
nanoz has joined #ruby
_blizzy_ has joined #ruby
banister has quit [Client Quit]
banister has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
fantazo has quit [Quit: Verlassend]
nfk has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
PaulVern has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<nanoz> why we need to learn ruby ?
allcentury has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
meph has quit [Remote host closed the connection]
<jhass> nanoz: because it's fun
<jhass> nanoz: what languages do you know?
tkuchiki has joined #ruby
Iskarlar has joined #ruby
ishahnaz has joined #ruby
erts has joined #ruby
djbkd has joined #ruby
khebbie has joined #ruby
khebbie has quit [Read error: Connection reset by peer]
<pontiki> no one needs to learn ruby
<pontiki> but it sure it fun
einarj has joined #ruby
khebbie has joined #ruby
erts has quit [Client Quit]
erts has joined #ruby
Rickmasta has joined #ruby
PaulVern has quit [Ping timeout: 256 seconds]
northfurr has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
bzf has joined #ruby
mandarinkin has quit [Quit: Leaving]
episage has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
<ekleog> The reason I'm learning ruby: It's the only multiline-lambda interpreted language I know of
<ekleog> (except lisp, but lisp is lisp)
jonee has joined #ruby
<Ox0dea> ekleog: I see what you did there.
juanpablo___ has joined #ruby
khebbie has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 244 seconds]
cornerma1 has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Disconnected by services]
Anthony__ has joined #ruby
Anthony__ is now known as _blizzy_
<ekleog> Actually I learn ruby for a single project that makes heavy use of these lambdas, given no language I know of allows overloading the "if" "operator" [writing a DSL]
<HexMan> Will Ruby be there for Summer Of Code next year ?
cornerman has quit [Ping timeout: 256 seconds]
<HexMan> It wasn't present in any of the years before 2014 , I think.
cornerma1 is now known as cornerman
<Ox0dea> ekleog: But you just said you know of Lisp?
whiteline has joined #ruby
shmilan has joined #ruby
amystephen has joined #ruby
<ekleog> Ox0dea: Just heard of lisp, but frankly it really has far too many parentheses for me to be willing to jump in -- and an if_ function taking a lambda as a parameter should work
<pontiki> i've never understood that stance
<Ox0dea> It's so stupid.
<Ox0dea> You take the opening parenthesis and put it on the other side of the function name, and prefix notation often *saves* you a few parentheses by not requiring explicit grouping.
Vile` has quit [Ping timeout: 260 seconds]
<ekleog> Yes it is, but I had a choice to make (and (+ a b) feels unintuitive to me). Besides, just checking, multithreading supports seems pretty ill-supported in CommonLISP to my unexperienced eye
last_staff has quit [Read error: Connection reset by peer]
<Ox0dea> This guy.
<Ox0dea> You just like the sound of your own keyboard, I reckon.
shock_one has joined #ruby
lannonbr has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
roolo_ has joined #ruby
northfurr has joined #ruby
scripore has joined #ruby
<ekleog> Is there anything else than https://common-lisp.net/project/bordeaux-threads/ for multithreading in LISP ? It has seen no release for two years, and its mailman seems down
dimasg has joined #ruby
Vile` has joined #ruby
<ekleog> (and still learning english, sorry for any mistake)
<Ox0dea> ekleog: https://news.ycombinator.com/ is written in Arc, a Lisp dialect.
yeticry_ has quit [Ping timeout: 245 seconds]
tobacco_joe has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
<ekleog> I completely trust you on that, but I do need multithreading (well, I could simulate multithreading by scheduling threads myself I guess, but that would be masochism)
<Ox0dea> The server itself is written in Arc.
banister has joined #ruby
banister has quit [Read error: Connection reset by peer]
PaulVern has joined #ruby
<Ox0dea> In any case, many Lisp implementations support threading just fine, but that's rather obviously not what's stopping you from "diving in".
scripore has quit [Quit: This computer has gone to sleep]
* jhass checks
<jhass> nope, not #lisp
Pathfinder has quit [Quit: Pathfinder]
<Ox0dea> >> method(:lambda) # but kinda
<ruboto> Ox0dea # => #<Method: Object(Kernel)#lambda> (https://eval.in/417102)
yeticry has joined #ruby
davedev24 has joined #ruby
AlphaAtom has joined #ruby
ishahnaz has quit []
AlphaAtom has quit [Max SendQ exceeded]
bronson has joined #ruby
AlphaAtom has joined #ruby
<ekleog> Ox0dea: When I search for "arc multithreading", I fall upon an Objective-C library... And I would most likely try lisp, should I ever feel a need for it (until 2 weeks ago I never even thought of learning ruby, until this project came to my mind and I was faced with learning ruby or lisp -- and chose ruby without any other insight than having seen a few pieces of code in both, and thinking the dsl based on ruby would look cleaner)
<ekleog> Anyway, it doesn't really matter, does it?
<Ox0dea> What doesn't really matter?
[k- has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
markserver has quit [Ping timeout: 246 seconds]
unclouded has quit [Ping timeout: 246 seconds]
<ekleog> My arbitrary choice of language
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Ruby lets us use the lambda calculus to determine the number of common bits between two small integers. How is it not a Lisp?
bronson has quit [Ping timeout: 260 seconds]
<jhass> i don't care?
<[k-> horrifyingly cool
<Ox0dea> Glad you like. :)
<Ox0dea> I expect it can be simplified considerably, but factoring lambdas is hard.
<[k-> i read an article about expressing true and false in lambda calculus
<[k-> but it was in coffeescript
<[k-> so i ...
blueOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
<wasamasa> lambda calculus becomes mostly unnecessary once you introduce named bindings
<Ox0dea> Huh?
stardiviner has joined #ruby
<wasamasa> still enough of a neat party trick
<Ox0dea> wasamasa: Binding is in the semantics of the lambda calculus, so I'm not sure what exactly you meant there.
northfurr has quit [Quit: northfurr]
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
<stardiviner> Why [1, 2, 3, 4][4] is nil, but [1, 2, 3, 4][4, 0] is [] ? I don't understand why.
binaryplease has joined #ruby
shock_one has quit [Remote host closed the connection]
stardiviner has quit [Changing host]
stardiviner has joined #ruby
krz has quit [Quit: WeeChat 1.2]
stardiviner has quit [Client Quit]
stardiviner has joined #ruby
Sembei has quit [Ping timeout: 250 seconds]
<stardiviner> Why [1, 2, 3][3] is nil, but [1,2,3][3, 0] is [] ? I don't understand.
<[k-> &ri Array#[]
<`derpy> http://www.rubydoc.info/stdlib/core/Array#%5B%5D-instance_method
frozen3 has quit [Remote host closed the connection]
<[k-> Ruby arrays are 0-indexed
<Ox0dea> stardiviner: Indexing and slicing are subtly different operations.
<[k-> this means we start from zero
<wasamasa> Ox0dea: "<Earnestly> wasamasa: It's kind of like the lambda calculus thing; adding named bindings obviates quite a lot of it"
<[k-> [3,0] tells ruby to take 0 elements after the index 3
<Ox0dea> Earnestly from #archlinux?
<wasamasa> uhuh
<wasamasa> "<Earnestly> Anyway, it's all very clever and pretty nice, but it is truely impractical and inefficient. Also having named bindings makes most of lambda-calculus pretty unnecessary"
<Ox0dea> [k-: s/after/from/
<Ox0dea> wasamasa: You posted my lambda calculus thing in #archlinux? :/
<[k-> how do you take elements from an index
<stardiviner> [k-: I see, thanks
<wasamasa> Ox0dea: no, that's an old quote
<wasamasa> Ox0dea: I didn't make clear I was citing someone else
<Ox0dea> Named bindings is *part* of the lambda calculus.
<stardiviner> [k-: I misunderstand the slicing operating, thought it is indexing from 3 to 0.
<Ox0dea> stardiviner: No, that's not right either.
<Ox0dea> foo[3, 0] says "give me zero elements starting from index 3".
<Ox0dea> But the 3 isn't *quite* an index there since, as mentioned, indexing and slicing don't have quite the same semantics in Ruby.
<stardiviner> Ox0dea: so slicing's index is from 1, but indexing's index is from 0?
<Ox0dea> If only it were so simple as that.
<wasamasa> Ox0dea: he also deems macros unelegant and a crutch that was invented to avoid repeating yourself
<Ox0dea> stardiviner: Here's a convenient visual aid: http://stackoverflow.com/a/3568281
jokke has left #ruby ["WeeChat 1.2"]
<Ox0dea> stardiviner: I suspect this behavior was at least partially influenced by C, wherein accessing the element one beyond an array's bound is actually well-defined behavior.
northfurr has joined #ruby
<Ox0dea> It's worth nothing that the semantics hold for any "collection" type, not just Array:
<Ox0dea> >> ['foo'[3], 'foo'[3, 0]]
<ruboto> Ox0dea # => [nil, ""] (https://eval.in/417106)
<Ox0dea> s/nothing/noting/
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sembei has joined #ruby
yardenbar has joined #ruby
<[k-> Ox0dea: you shouldnt have s/after/from, since the sentence became a sentence that wasnt your meaning as well :/
<[k-> should be s/after/beginning from/ instead
<stardiviner> Ox0dea: now, I understand through your link visual graph, the "array bound" 4 is still in array. some kind of barely.
sdothum has joined #ruby
<Ox0dea> [k-: "from" and "beginning from" are equivalent in the sentence in question.
<Ox0dea> "Start counting from ten."
<[k-> I interpreted it as taking something from something else
<[k-> aka, extract
<Ox0dea> stardiviner: Aye, the wording is a little wonky, but I think it makes it at least slightly clearer what's going on during slicing.
<Ox0dea> [k-: The word's primary definition and usage is as a preposition denoting a starting point.
<Ox0dea> I didn't make the rules, I just bend 'em.
<Ox0dea> (See what I did with the spliced comma there?)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> feel for me :'(
<stardiviner> Ox0dea: What if there is a way to change this default behavior in Ruby like configure software with options will be very cool. Aha.
<Ox0dea> stardiviner: Fortran lets you specify which indexing strategy you want, per instance!
<[k-> you can change the behaviour, but im not going to suggest anything
<Ox0dea> Which is totally batshit until you realize how often it must come in handy for the sorts of programs one tends to write in Fortran.
workmad3 has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
<Ox0dea> [k-: Instigation of sin is commission, if you ask me. :P
Meow-J has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
<[k-> You can investigate, and stumble upon why people love ruby
northfurr has quit [Quit: northfurr]
<[k-> but do not do this in production code
<Ox0dea> Who said anything about an investigation?
<Ox0dea> Did you phone the authorities?
<[k-> or code others will eventually maintain for you
<[k-> i contacted the League
<[k-> the League will condemn the code
<Ox0dea> There are several of them floating about just now.
<Ox0dea> "The Justice League of Extraordinary Gentlelegends."
juanpablo___ has joined #ruby
<[k-> In exchange for your little ease, you violate ruby
<stardiviner> I think people should have the right to change anything. Those things are same with Ruby Code Style, it's not forced.
<[k-> stardiviner: people expect it to start from zero
<[k-> this is the coding style
workmad3 has quit [Ping timeout: 264 seconds]
<[k-> you will ruin the lives of many if you do this
<[k-> do you really want to sacrifice the joy of others for your little urge at this point in time?
<stardiviner> [k-: right, what if I just want to use the code by myself, then I still have no way to change thing. I think language should leave out space for user to modify. Of course this is basically said. not on a specific problem.
<[k-> in a few months, you'd feel stupid for doing this
<[k-> i guarantee it
<Ox0dea> stardiviner: I think you must not realize which language you're talking about.
<Ox0dea> In any case, Dijkstra is pretty convincing on the matter: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html
<[k-> ruby must be your favorite language, stardiviner
<stardiviner> Ruby & Lisp are my faviourite languages,
<Ox0dea> stardiviner: Click the (PDF) link at the top; EWD's argument is even more convincing if you read it in the man's own hand.
<Ox0dea> > faviourite
ramfjord has joined #ruby
<[k-> Ruby has the facilities to do this
<Ox0dea> And then some.
<[k-> yes, and then some
<stardiviner> Ox0dea: Oh, thanks for you link,
juanpablo___ has quit [Ping timeout: 240 seconds]
jonee has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
yashinbasement has joined #ruby
ishahnaz has joined #ruby
quimrstorres has joined #ruby
<stardiviner> Ox0dea: right, this is a good article
millerti has joined #ruby
<Ox0dea> stardiviner: I'm quite glad you've come to that conclusion.
<Ox0dea> Still, if your sickness has not been entirely cured: https://gist.github.com/0x0dea/52594e82463c899c05c6
<[k-> you are strongly discouraged to modify how Arrays work in Ruby
danieli has quit [Read error: Connection reset by peer]
<Ox0dea> you are strongly discouraged to modify how Arrays work in Ruby
<jhass> just use a refinement
<[k-> you are strongly discouraged to make your life painful for yourself in the future
<Ox0dea> A life, in being a metaphysical entity, cannot, in and of itself, experience pain.
<[k-> why are you modifying the array twice
<[k-> that is inefficient
<[k-> array access is very common in ruby
<[k-> please optimise
<Ox0dea> [k-: What do you suggest?
djbkd has joined #ruby
* [k- looks at the code again
<Ox0dea> Can't use `args[0] -= 1` on account of being in the definition of #[].
ndrei has joined #ruby
<Ox0dea> map!.with_index or some such nonsense would not be an improvement.
<Ox0dea> Besides, Ruby uses shared memory for arrays, so #shift and #unshift aren't terrible for performance.
<[k-> mind blown
<stardiviner> [k-: sorry, I didn't mean to that, really
<[k-> def [] first, *args
<Ox0dea> [k-: What're you on about?
<[k-> aref first.pred, *args
einarj has joined #ruby
<Ox0dea> Too many names.
<Ox0dea> Needs more generality.
<Ox0dea> Also doesn't handle negative indices.
<Ox0dea> If 1 is the first element, 0 should be the last, right?
<Ox0dea> Hm, we didn't think this through.
jimms has quit [Remote host closed the connection]
<[k-> i relied on your solution
Iskarlar has joined #ruby
* [k- absolves all responsibility
<[k-> Ox0dea, the aref will handle that
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> It's almost like somebody sat down and thought this shit out at some point.
jonee has joined #ruby
<stardiviner> .... oh, what a ... I will forget this thing ....
einarj has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
victortyau has joined #ruby
djbkd has quit [Remote host closed the connection]
<Ox0dea> stardiviner: It was a pleasure to observe your enlightenment.
<[k-> it was hardly a pleasure diverting this crisis
<Ox0dea> In hindsight, I guess you probably weren't using "this thing" to refer to 1-based indexing.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stardiviner> Ox0dea: ok, I will be grade to particiate in this pleasure.
<PaulVern> exit
<stardiviner> [k-: right, discuss this 1-based indexing is not my current interest, I might be happy to talk about this when I'm good at Ruby. But now, not a good chance to play it
PaulVern has quit [Remote host closed the connection]
<stardiviner> Ox0dea: yeah, just a generally thing.
leat has quit [Ping timeout: 245 seconds]
<stardiviner> Newbie like me can't play with masters like you.
<waxjar> consistency is important when programming. if your language uses 0-based indexes, use 0-based indexes. if it uses 1-based indexes, use 1-based indexes :)
<stardiviner> waxjar: yeah, keep consistency is important when collaborating with others, I just myself, it does not matter anyway.
<[k-> it does matter, eventually it becomes a habit
<[k-> a language influences how a person thinks, afterall
<waxjar> it does :) you will forget you had the ingenious idea to use 1-based indexing when you need to fix a bug in your code quickly after a couple of months
phutchins has joined #ruby
DLSteve has joined #ruby
<waxjar> you'll curse yourself, after you figure out after a few hours, that your indexing is off by one
gwendall has joined #ruby
<[k-> [21:07:07] <[k-> a language influences how a person thinks, afterall
<Ox0dea> stardiviner: Do you know of Theseus' ship?
gwendall has quit [Remote host closed the connection]
<stardiviner> [k-: seems make sense.
quimrstorres has quit [Remote host closed the connection]
<stardiviner> Alright, I give up....
dimasg has quit [Quit: leaving]
<stardiviner> This really gave me a englightenment.
dimasg has joined #ruby
<stardiviner> s/a/an
<[k-> give up or adopt?
<Ox0dea> stardiviner: In essence, Present You and Future You are "different" people.
<stardiviner> Now I feel this weird interesting.
dorei has joined #ruby
jimms has joined #ruby
gwendall has joined #ruby
<[k-> Ox0dea: you should maintain a presence in ot
* Ox0dea grumbles something about hangman and "guys".
<stardiviner> Ox0dea: good philosophy .
quimrstorres has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
bodgix has joined #ruby
crazydiamond has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
episage has quit [Ping timeout: 265 seconds]
binaryplease has quit [Quit: WeeChat 1.2]
_blizzy_ has joined #ruby
jbw has quit [Ping timeout: 272 seconds]
dimasg has quit [Ping timeout: 272 seconds]
jbw has joined #ruby
atomical has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
atomical has quit [Client Quit]
scripore has joined #ruby
atomical has joined #ruby
matp has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
darthez has joined #ruby
Ropeney has joined #ruby
darthez has left #ruby [#ruby]
Guest70057 has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
j4cknewt has joined #ruby
jonee has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
bodgix has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
danieli has joined #ruby
dimasg has joined #ruby
belteshazzar has joined #ruby
rodfersou has quit [Ping timeout: 244 seconds]
stardiviner has quit [Quit: WeeChat 1.2]
yashinbasement has quit [Quit: Leaving]
jonee has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
jimms has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has joined #ruby
juanpablo___ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
uwa667 has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 244 seconds]
juanpablo___ has quit [Ping timeout: 246 seconds]
cabreraM516 has joined #ruby
dimasg has quit [Ping timeout: 264 seconds]
dimasg has joined #ruby
bruno- has joined #ruby
sameerynho has quit [Quit: Leaving]
jonee has quit [Ping timeout: 246 seconds]
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
HexMan has quit [Quit: Leaving]
Thomas-0725 has joined #ruby
ishahnaz has quit []
nerio_ has joined #ruby
havenwood has joined #ruby
thmzlt has joined #ruby
towski_ has joined #ruby
thisisasttesot12 has joined #ruby
Norrin has joined #ruby
thmzlt has quit [Client Quit]
compac has joined #ruby
compac has left #ruby ["Leaving"]
ishahnaz has joined #ruby
dimasg has quit [Ping timeout: 256 seconds]
thmzlt has joined #ruby
thmzlt has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
caseypatrickdris has joined #ruby
caseypatrickdris has quit [Client Quit]
jonee has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
banister has joined #ruby
flegercovateam has quit [Ping timeout: 272 seconds]
thisisasttesot12 has quit [Quit: Page closed]
workmad3 has joined #ruby
sepp2k has joined #ruby
yh has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
olitreadwell has joined #ruby
darkxploit has quit [Quit: Leaving]
darkxploit has joined #ruby
ramfjord has joined #ruby
FernandoBasso has joined #ruby
mary5030 has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
darkxploit has quit [Client Quit]
chabil has quit [Quit: WeeChat 1.2]
jackjackdripper has joined #ruby
chinmay_dd has joined #ruby
banister has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
atomical has quit [Client Quit]
rodfersou has joined #ruby
jackjackdripper has quit [Client Quit]
<nanoz> i'm bit confused what to learn , so many language i have next ruby,lisp,C,C++,D dont know what to chose o_O
<[k-> what languages do you know
<nanoz> i know js and java
<[k-> what do you want to achieve as a programmer
<shevy> enlightenment
<shevy> through php
lordkryss has quit [Quit: Connection closed for inactivity]
thmzlt has joined #ruby
<[k-> he already did javs
<[k-> java*
<jhass> nanoz: ruby is a good candidate now
<jhass> strong OO, dynamically typed
<[k-> lisp!
yeticry has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
thmzlt has quit [Client Quit]
yeticry has joined #ruby
<nanoz> as ruby programmer what u can achieve ?
<Ox0dea> All the things.
<[k-> you can achieve fizzbuzz
radgeRayden_ has quit [Ping timeout: 244 seconds]
<Ox0dea> No, I recently read a paper that proved FizzBuzz is NP-hard.
<jhass> nanoz: even if you won't stick to Ruby, you'll learn a couple of styles and ways that'll improve your coding skills regardless of language. That's true for pretty much any language but given JS and Java, Ruby fits well into the path now IMO
sarkyniin has joined #ruby
<nanoz> what about lisp ?
chinmay_dd has quit [Remote host closed the connection]
<nanoz> everyone says lisp lisp lisp .... i'm confused now
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkyniin has quit [Read error: No route to host]
<jhass> I'd say go to a FP language after Ruby, be it lisp or haskell, scala, elixir, erlang, closure, ... whatever
ftj has joined #ruby
<[k-> usually people go to ruby from java
<[k-> like me
sarkyniin has joined #ruby
<Ox0dea> nanoz: Learn QBasic.
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siempref_ has joined #ruby
<Ox0dea> (That was my first language. I am become dust.)
<shevy> nanoz lisp is way too old, it's not used by anyone serious: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html ranked 26
siemprefresco has quit [Ping timeout: 246 seconds]
<Ox0dea> It's faster horses all the way down. :'(
<shevy> speed rules the computing world
<darix> i think all those emacs fan bois would like to disagree ;)
<shevy> TIOBE is nothing but the truth
<Ox0dea> shevy: My comment had nothing to do with performance, oddly enough.
<[k-> if speed rules the computing world, ruby would not be near the top
<redlegion> quite true
lessless has joined #ruby
<redlegion> [k-: rust is an excellent compromise
<Ox0dea> shevy: "If I had asked people what they wanted, they would have said faster horses." -- Henry Ford
<[k-> tiobe uses php, hence it cannot be reliable
<[k-> it is biased towards php
<Ox0dea> * is biased toward the LCD.
<[k-> least common denominator?
<Ox0dea> Aye, in whatever form it might take.
tkuchiki has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishahnaz has quit []
<waxjar> doesn't tiobe rank by search queries or something?
yh has joined #ruby
<havenwood> waxjar: In the most bizarre way possible, probably some sort of performance art.
d0lph1n98 has joined #ruby
tkuchiki has joined #ruby
eGGsha has joined #ruby
episage has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
chinmay_dd has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<shevy> Ox0dea faster horses are fast
<Ox0dea> shevy: But they're not automobiles.
<Thomas-0725> is there a way to create a Proc from a defined method?
<shevy> yeah cars are faster than horses
dgutierrez1287 has quit [Remote host closed the connection]
<Ox0dea> Thomas-0725: Method instances essentially behave like Procs.
<shevy> it's a problem in biology that a tyre beats legs
Iskarlar has joined #ruby
scripore has joined #ruby
ruurd has quit [Ping timeout: 264 seconds]
<Thomas-0725> Ox0dea: I have a method that accepts a block. If no block is given, I would like to assign default_method to the proc and then call ... oh, how silly of me. default_method(params) instead of prc.call.
<Ox0dea> Well, glad you got that sorted, then. :P
Coldblackice has quit [Ping timeout: 260 seconds]
<Ox0dea> >> Fixnum.instance_method(:+).bind(1).call(2) # for future reference
<ruboto> Ox0dea # => 3 (https://eval.in/417162)
sevenseacat has quit [Quit: .]
khebbie has joined #ruby
chinmay_dd has quit [Quit: See ya!]
<Ox0dea> That's an UnboundMethod, though; regular Method instances do have #to_proc if you ever really find yourself in need of such a thing.
speaking1ode has joined #ruby
hashrocket has joined #ruby
shock_one has joined #ruby
marr has quit [Ping timeout: 264 seconds]
Juanchito has joined #ruby
dopie has joined #ruby
Semtex-H has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
einarj has joined #ruby
chinmay_dd has joined #ruby
lkba has joined #ruby
snowkidind has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
bigkevmcd has quit [Quit: Outta here...]
chinmay_dd has quit [Quit: See ya!]
shai_free has joined #ruby
chinmay_dd has joined #ruby
<shai_free> Hi :) I'd like to know if it is possible to generate a random number for the hour in the cronjob schedule to generate a number between 22pm and 2am?
mary5030 has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
flegercovateam has joined #ruby
<nanoz> can we do games in ruby ?
mary5030 has joined #ruby
<wasamasa> sure
<flegercovateam> Hi, nanoz. Yes sure !
<nanoz> any games built on ruby ? links ?
FernandoBasso has quit [Quit: May the force be with you.]
<wasamasa> I bet the game frameworks have examples of smaller stuff
RobertBirnie has joined #ruby
kristian_on_linu has joined #ruby
<wasamasa> if you're wondering about actual, popular games, forget it
<jhass> >> h = 22 + rand(0..4); h -= 24 if h >= 24; h # shai_free though it feels like I'm missing something smarter
<ruboto> jhass # => 23 (https://eval.in/417165)
<kristian_on_linu> hi all
lannonbr has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 246 seconds]
chinmay_dd has quit [Quit: See ya!]
<flegercovateam> nanoz: this language
chinmay_dd has joined #ruby
d0lph1n98 has quit [Quit: leaving]
<flegercovateam> permit programming a large panel of games.
<jhass> >> h = rand(22..26); h -= 24 if h >= 24; h # not much better
<ruboto> jhass # => 22 (https://eval.in/417166)
<nanoz> wasamasa> if you're wondering about actual, popular games, forget it ? , yes popular games
rodfersou has quit [Remote host closed the connection]
<flegercovateam> It(s the same of plenty other language. What are you want to do is the first question ;)
<wasamasa> nanoz: what I mean is that pretty much any AAA title out there was written with an already existing game engine made with C++
<[k-> h = rand(2..6)+20
<nanoz> i like creating games of different type as a hobby so thats what i thought doing in ruby
<[k-> :o
juanpablo___ has joined #ruby
<[k-> that looks wrong still
<wasamasa> nanoz: sure, feel free to do that
<wasamasa> nanoz: but be aware that you'll never catch up with the big fish :P
autrilla has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
christiandsg has joined #ruby
<[k-> ([1,2]<<[*22..24]).sample?
<[k-> not elegant as well :/
bruno- has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<jhass> and not working
<jhass> you meant .concat
sts has joined #ruby
<jhass> but still allocates two arrays without need
<[k-> i pondered using+
<jhass> + would create yet another array
sts is now known as Guest97877
sumark has quit [Read error: Connection reset by peer]
<atmosx> i had no idea that touble click on the terminal opens a query window
<[k-> could allocate it before hand
<atmosx> iTerm is smart, or I'm getting paranoid
<[k-> so that it is only created once
<jhass> [*0..2, *22..23].sample but meh
<Norrin> what's a query window?
<atmosx> Norrin: private chat
<atmosx> Norrin: like if I /query Norrin
<[k-> o, you can do that?
<jhass> yeah
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> [k-: apparently yeah, iTerm -> ssh -> tmux & weechat and works
juanpablo___ has quit [Ping timeout: 246 seconds]
<nanoz> wasamasa , i dont understand " you'll never catch up with the big fish"
<Norrin> weechat eh
<Norrin> better than irssi?
<atmosx> Norrin: yes
<Norrin> what's weechat written in?
<atmosx> Norrin: no idea, c?
<Norrin> ah, what's better about it?
<atmosx> Norrin: why are yu planning to inspect the source code?
leat has joined #ruby
<Norrin> if it was ruby, yeah
<atmosx> Norrin: it's more advanced, more plugins, more protocols, better otr support and so forth.
<atmosx> Norrin: supports ruby plugins, python, lua, etc.
<Norrin> interesting
<Norrin> i'll try to remember it
<nanoz> i doing tryruby and codeacademy is that enough to get a grip on ruby ?
khebbie has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<Norrin> it's a good start i think
<wasamasa> tias
Thomas-0725 has joined #ruby
<Norrin> then i'd say the pixaxe book
<Norrin> and then programming ruby 2.x whatever the latest edition is
chouhoulis has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ht__ has quit [Quit: Konversation terminated!]
<absolutejam> you got a link to the that book, Norrin ?
sumark has joined #ruby
<kristian_on_linu> I have some very basic syntax question
<kristian_on_linu> s
khebbie has joined #ruby
scripore has joined #ruby
<jhass> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<kristian_on_linu> here: https://github.com/inukshuk/jekyll-scholar#bibliography-filters ... how do I make it list ONLY an exact author?
<atmosx> the pickaxe was kind of hard for me at the beginning
<kristian_on_linu> jhass: chill ;)
<atmosx> I did fine with Peter Cooper's book thugh
<flegercovateam> nanoz: My book reference is "ruby programming" (1.9-2.0).Dave Thomas.2013
<Norrin> not sure if that's the latest edition
Zamyatin has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> kristian_on_linu: that's not ruby
<kristian_on_linu> jhass: what is it then?
<jhass> not sure, neither xpath, must be something bibtex specific
<Norrin> flegerCovateam, nanoz yeah that's the one i linked to
<kristian_on_linu> hurm
<Norrin> atmosx, thanks i'll keep that in mind
<flegercovateam> Norrin: ;-)
<shai_free> >> h = 22 + rand(0..4); h -= 24 if h >= 24; h
<ruboto> shai_free # => 0 (https://eval.in/417169)
<shai_free> >> h = 22 + rand(0..4); h -= 24 if h >= 24; h
<ruboto> shai_free # => 1 (https://eval.in/417170)
<shai_free> jhass: thanks :) a lot!
<shai_free> >> h = 22 + rand(0..4); h -= 24 if h >= 24; h
<ruboto> shai_free # => 22 (https://eval.in/417171)
symm- has joined #ruby
<jhass> ?experiment shai_free
<ruboto> shai_free, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<jhass> ;)
_blizzy_ has quit [Ping timeout: 260 seconds]
<shai_free> jhass: agreed ... i'm outty :)
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
s00pcan has quit [Ping timeout: 256 seconds]
chadwtaylor has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kristian_on_linu> I'm almost positive I've never seen stuff like this in TeX ... to clarify, what I'm trying to grok is the != and = and ~= related stuff
s00pcan has joined #ruby
<kristian_on_linu> yes, I saw that already
<kristian_on_linu> but thanks
<jhass> not sure where the format is documented though
shock_one has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kristian_on_linu> hurm, double pipes seems to be an option
Torrieri has joined #ruby
<kristian_on_linu> thanks
<kristian_on_linu> and this is no known syntax?
workmad3 has joined #ruby
ftj has joined #ruby
<kristian_on_linu> jekyll-scholar is really cool, but there is a lot of time spent trying to figure it out :)
<jhass> none that I know
<kristian_on_linu> ok, thanks
hanmac has quit [Ping timeout: 246 seconds]
towski_ has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: See ya!]
howdoi has quit [Quit: Connection closed for inactivity]
ponga has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Ping timeout: 260 seconds]
dcarmich has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<kristian_on_linu> to be honest, it's all gibberish to me ... I can't really code
xcesariox has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
<jhass> hang around, maybe inukshuk wakes up from the highlights sometime and has some docs for it we couldn't find :P
iateadonut has quit [Quit: Leaving.]
Vile` has joined #ruby
Iskarlar has joined #ruby
<kristian_on_linu> I actually went here as to not open another amateurish issue :)
<[spoiler]> Hello! :)
phutchins has joined #ruby
darkf has quit [Quit: Leaving]
BillSussman has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 240 seconds]
countryHick has joined #ruby
Vile` has joined #ruby
lessless has quit [Max SendQ exceeded]
scottschecter has quit [Quit: Leaving]
hanmac has joined #ruby
shai_free has quit [Ping timeout: 246 seconds]
youch has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
djbkd has joined #ruby
intuxicated has quit [Quit: Leaving]
devoldmx has joined #ruby
LMity has joined #ruby
marr has joined #ruby
perturbation has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
frozen3 has joined #ruby
LMity has quit [Ping timeout: 240 seconds]
rideh has joined #ruby
rideh has quit [Client Quit]
rehat has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
juanpablo___ has joined #ruby
jbw has joined #ruby
khebbie has joined #ruby
mary5030 has joined #ruby
symm- has joined #ruby
frozen3 has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
juanpablo___ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
DLSteve has quit [Ping timeout: 244 seconds]
Yzguy has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
valetudo has joined #ruby
toretore has joined #ruby
<hubcaps> quit
hubcaps has quit [Quit: leaving]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
robh71 has joined #ruby
hubcaps has joined #ruby
jeadr has joined #ruby
ramfjord has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
jeadr1 has joined #ruby
jonee has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
<atmosx> hello [spoiler]
chouhoul_ has joined #ruby
victortyau has quit [Quit: Leaving]
_aeris_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
gwendall has quit [Remote host closed the connection]
_aeris_ has joined #ruby
khebbie has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
khebbie has joined #ruby
Torrieri has quit [Quit: Be back later ...]
scripore has quit [Quit: This computer has gone to sleep]
runinsquares has joined #ruby
VeganGreg has joined #ruby
<nanoz> what are fun parts of ruby
<[spoiler]> nanoz: below the belt parts
<[spoiler]> Just kidding!
<[spoiler]> nanoz: Well, I find almost all parts of Ruby fun in some way. Do you have an idea of what you'd like to use Ruby for?
amcoder has quit []
<VeganGreg> nanoz: the same parts as make any programming language fun
<atmosx> I have this feeling nanoz's idea of 'fun' is similar to snowbarding, racing cars, etc. I'm not sure that does apply to programming
<atmosx> *snowboarding*
<[k-> >> def method_missing meth, *args; ($yay && $yay << meth) || $yay = [] end; i love ruby!; $yay.map(&:to_s) * ' '
<ruboto> [k- # => "love i" (https://eval.in/417187)
frozen3 has joined #ruby
<[k-> well that didnt go well
<atmosx> it was close though
<rehat> can someone tell me what this '*' in this line does : Hash[*[[:first_name, 'Shane'], [:last_name, 'Harvie']].flatten]
<nanoz> solving problems ?
dEPy has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<[k-> >> def method_missing meth, *args; $yay ||= []; $yay << meth end; i love ruby! ; $yay.map(&:to_s) * ' '
<ruboto> [k- # => "ruby! love i" (https://eval.in/417188)
<[k-> oh, i(love(ruby!))
<[k-> silly me
<atmosx> rehat: I know that expression creates a hash like first_name: ..., last_name: ... but why do we put the * I have no idea
<[k-> ruby! is evaluated first
<[k-> this can be solved by using .unshift instead of <<
gwendall has joined #ruby
khebbie has quit [Remote host closed the connection]
frozen3 has quit [Ping timeout: 246 seconds]
<[k-> anyway, Ruby loves you too
<[k-> that was what Ruby was trying to say :)
AlexRussia has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
jimbeaudoin has joined #ruby
einarj has joined #ruby
nertzy has joined #ruby
yfeldblum has joined #ruby
<toretore> atmosx, rehat: Hash#[] expects a list of arguments (i.e. not one argument that is an array), hence the splat
<toretore> Hash.[] i should say
<toretore> >>Hash[1, 2, 3, 4]
<ruboto> toretore # => {1=>2, 3=>4} (https://eval.in/417189)
<toretore> >>Hash[[1, 2, 3, 4]]
<ruboto> toretore # => /tmp/execpad-b30efe05cf67/source-b30efe05cf67:2: warning: wrong element type Fixnum at 0 (expected a ...check link for more (https://eval.in/417190)
<rehat> toretore: ahh thank you I was looking for the name of that, splat :)
dgutierrez1287 has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
nonparfumee has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
djbkd has quit []
tkuchiki has joined #ruby
yfeldblu_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> toretore: oh, nice thanks
blue_deref has joined #ruby
<nanoz> wow its easy :P
bruno- has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<nanoz> wish i cud do this projecteuler/hackerrank since java made me terrible :/
tkuchiki has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
danieli has quit [Quit: Leaving]
AlexAltea has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
exadeci has joined #ruby
VeganGreg has quit [Ping timeout: 240 seconds]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<livcd> how production ready is opal ?
lkba has quit [Ping timeout: 250 seconds]
darkxploit has joined #ruby
hololeap has joined #ruby
frem has joined #ruby
tobacco_joe has quit [Read error: No route to host]
tobacco_joe has joined #ruby
<[spoiler]> atmosx, rehat it's the "splat operator"
tobacco_joe has quit [Read error: No route to host]
<[spoiler]> oh
<[spoiler]> scrollback lagged
<[spoiler]> nvm me
<[spoiler]> livcd: I used it in a an experimental project, and it was OK. There's gonna be a performance penalty, a some parts are more JS than Ruby (to avoid impacting performance)
<livcd> [spoiler]: i thought it's just a transpiler like coffeescript
<livcd> and the performance penalty should be negligible
<[spoiler]> livcd: it's not the same as CoffeeScript. CS is JS with syntactic sugar, while Ruby is a different language
<shevy> \o/
<shevy> livcd I tried the example at the opal website
<[k-> you know, WITH A STANDARD LIBRARY
<shevy> it worked, and it was ok-ish but it sorta confuses me. I like am not sure what to do with it really
<shevy> I had hoped I could use only ruby and never javascript
<[spoiler]> A lot of Ruby staff needs to be emulated inside JS
<livcd> [spoiler]: i do not know how opal works tbh..but i would say that coffee script syntactic sugare is pretty "drastic"
<livcd> ok right
<[spoiler]> livcd: it's not drastic at all :)
<[k-> opal is much worse
<[k-> much much worse
<shevy> I am having a strange thing with coffeescript... I don't think we should require such a thing in the first place. it only happens because javascript exists and is the monopoly
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> it includes the standard library
<livcd> [k-: ok
<shevy> we need to JVM everything!
<[k-> like your brain, bcuz it needs to be garbage collected
<[k-> oooo buuuuuuurn
<livcd> i thought BEAM is the new hotness not JVM
<livcd> :D
<[spoiler]> JAVA VIRTUAL MACHINE! \o_ (3 minutes later) ALL THE THINGS!
<[spoiler]> [k- that was so harsh :(
<[k-> :3
<livcd> there is so many things these days
khebbie has joined #ruby
<shevy> [k- nah that does not translate, remember - many different people could target a JVM on the cloud concurrently. you don't get that with a human brain
<shevy> the zombies tried to build a unified brain CPU
<[k-> i meant, jvm your brain
<pipework> shevy's on some good shit these days.
<[k-> so it is optimised away
<shevy> biology does not translate well!
<[k-> buuuuuuuurn!!!
<[k-> go with the flow, shevy
<shevy> perhaps with 3D printing it can become better
<pipework> shevy: You wanna know why coffeescript sucks? Because they hate var and use closures around everything, and those two things make coffeescript a pain in the ass.
saddad has joined #ruby
<pipework> Dart or die! :D
<shevy> :\
<shevy> dart will destroy javascript
<pipework> Probably not. :(
<livcd> dart is destroyed already
<pipework> TypeScript has a better chance of making any kind of impact.
<pipework> Though it's just some weird stuff that looks similar to ES6 + compile-time type checking.
<[k-> eww typescript
<pipework> livcd: Nah, it's just stunted.
<[k-> its java
<[k-> defo java or C#
<pipework> [k-: Not remotely.
<pipework> Type-checking does not a java make.
chipotle has quit [Read error: Connection reset by peer]
<shevy> well like there is java in javascript right?
<[k-> the syntax
<pipework> [k-: not really even then
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
<[k-> well it looked ugly the last time i checked
<shevy> dart looks totally future ready:
<[k-> and i cant recall
<shevy> "On April 18, 2015, Google announced that the Dart Editor would be retired in favor of the JetBrains IDEs.[17]"
<pipework> I think it looks ugly, but not because of why you say it does.
chipotle has joined #ruby
<pipework> shevy: I just write dart code the same way I write any other code.
<pipework> The IDE was for IDE users.
khebbie has quit [Ping timeout: 256 seconds]
Yzguy has quit [Quit: Zzz...]
<[k-> you dont use an ide for java?
juanpablo___ has joined #ruby
jeadr has joined #ruby
jtdoncas has joined #ruby
<pipework> I don't typically write java, I read it and translate it to other jvm languages. :D
jeadr1 has joined #ruby
jtdoncas has quit [Client Quit]
<livcd> jruby?
<[k-> frege!
workmad3 has joined #ruby
niko has quit [Ping timeout: 608 seconds]
<pipework> There are some IDE features that I don't get with my setup today, but I feel that my setup has less YAGNI and I have a lot more control over it. I feel that IDE's, as configurable as they might be, don't really put my workflow at the forefront and since it doesn't fit the kind of user they target, I end up frustrated.
<shevy> pipework what editor do you use?
ElSif has quit [Read error: Connection reset by peer]
kidoz has joined #ruby
<pipework> shevy: Hammer and chisel.
<shevy> lol
Guest24 has quit [Quit: Coyote finally caught me]
<livcd> are you communist ?
hfp has joined #ruby
<shevy> I like hammers
ruby-lang869 has joined #ruby
juanpablo___ has quit [Ping timeout: 256 seconds]
dr3w has joined #ruby
<[spoiler]> I am very content with Atom these days (ex Sublime Text user)
ruby-lang869 has quit [Client Quit]
<livcd> atom still feels sluggish to me
workmad3 has quit [Ping timeout: 244 seconds]
vikf4m3 has joined #ruby
<[spoiler]> it only feels sluggish when I work with huge files
<[spoiler]> Which is mostly not the case; my code is usually not all in a single file
<[spoiler]> huge as in ~5-10k lines
<hfp> Hey all, this doesnt work to access a hash with the dot notation in a module: https://gist.github.com/Coaxial/d9621590f048ea682295. How should I go about it so foo.bar returns foo[:bar] ?
fantazo has joined #ruby
niko has joined #ruby
<[spoiler]> hfp: don't understand what you want to do
<[spoiler]> What's foo?
<[k-> foo.my_method
bruno- has joined #ruby
<hfp> [spoiler]: I want to include MyModule in another class and be able to do my_method.bar
<livcd> it does not make sense
<hfp> sorry my_method.foo
<hfp> ugh I'm tired
<hfp> so yeah I'd like my_method.foo to return "bar", same as doing my_method[:foo]
<[spoiler]> hfp: You'd use foo.my_method[:foo]
<[spoiler]> Ah
<hfp> I thought attr_reader would do the trick but it seems not
<[spoiler]> Then my-method needs to return an instance of an object which implements method_missing and looks for keys based on the method name that was called
Musashi007 has quit [Quit: Musashi007]
leat has quit [Ping timeout: 240 seconds]
<[spoiler]> attr_reader just does this: def attr_name; return @attr_name; end
<hfp> oh ok
<[k-> (actually it's optimised)
<[spoiler]> hfp: if you're using rails, there's hash with indifferent access, or http://ruby-doc.org/core-2.2.2/Struct.html
Torrieri has joined #ruby
<hfp> Alright I'll keep accessing it with [], I don't want to make this an OpenStruct. No I'm not using Rails
ponga has quit [Remote host closed the connection]
<hfp> Thanks [spoiler]
gard has joined #ruby
Musashi007 has joined #ruby
gwendall has quit [Remote host closed the connection]
vikf4m3 has quit [Quit: Page closed]
bruno- has quit [Ping timeout: 252 seconds]
Torrieri has quit [Client Quit]
rehat has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
amcoder has joined #ruby
flegercovateam has quit [Quit: Leaving.]
quimrstorres has joined #ruby
UtkarshRay has quit [Quit: Leaving]
scripore has joined #ruby
galeido has joined #ruby
<[spoiler]> hfp: np
kristian_on_linu has quit [Quit: Leaving]
attamusc has joined #ruby
absolutejam has quit [Ping timeout: 244 seconds]
icarus_ has joined #ruby
tenderlove has joined #ruby
_socialjackie has joined #ruby
amcoder has quit []
WeeBeanie has joined #ruby
vF3hNGxc47h8 has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ght has left #ruby [#ruby]
ght has joined #ruby
<WeeBeanie> Question: I have a MySQL formatted datetime value: 2001-01-01 00:00:00 +0000
<WeeBeanie> And when I try to declare a DateTime object using that value, I'm presented with the error "comparison of Time with 0 failed"
<WeeBeanie> When I research the DateTime documentation, it appears that every format it takes is one with, for example, a T in between the date and time, a trailing Z, etc.
<WeeBeanie> Any thoughts here besides breaking up and re-creating the string in a format DateTime.new() likes?
<WeeBeanie> is there some DateTime method for dealing with standard SQL-formatted DateTime values?
lkba has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
countryHick has quit [Quit: Connection closed for inactivity]
<_socialjackie> hmm...
<[spoiler]> WeeBeanie: weird. I think DateTime::parse should work on MySQL dates
Yzguy has joined #ruby
chipotle has quit [Quit: cheerio]
absolutejam has joined #ruby
<WeeBeanie> Well, FYI, it doesn't.
<_socialjackie> This is what I get:
<_socialjackie> DateTime.parse("2001-01-01 00:00:00 +0000") #=> #<DateTime: 2001-01-01T00:00:00+00:00 ((2451911j,0s,0n),+0s,2299161j)>
<WeeBeanie> ahh, .parse(), nice.
<WeeBeanie> Thank you socialjackie.
<[spoiler]> :/ I did say parse
<pipework> RIF
postmodern has quit [Quit: Leaving]
matp has joined #ruby
arooni-mobile has joined #ruby
towski_ has joined #ruby
psy_ has quit [Ping timeout: 245 seconds]
yardenbar has joined #ruby
psy_ has joined #ruby
towski_ has quit [Ping timeout: 260 seconds]
Cache_Money has joined #ruby
psy_ has quit [Max SendQ exceeded]
<toretore> WeeBeanie: what you're describing is ISO8601
psy_ has joined #ruby
<toretore> and what you should be using in your case is strptime
<WeeBeanie> Well, DateTime.parse() worked when passing it the stored SQL DateTime value.
<WeeBeanie> But you're saying I shouldn't use that to declare a DateTime Ruby object?
<WeeBeanie> Incidentally, the other DateTime object I'm attempting to create involes an XMLRPC::DateTime value returned from a remote API
nerio_ has quit [Ping timeout: 244 seconds]
robh71 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
<WeeBeanie> [spoiler]: Apologies, I missed you saying .parse(). I had been using .new() and was looking over documentation at the other methods, .httpdate(), .iso8601, .jd(), etc.
quimrstorres has quit [Remote host closed the connection]
<[spoiler]> WeeBeanie: It's ok :P
FernandoBasso has joined #ruby
<[spoiler]> WeeBeanie: although, what toretore suggested might be a better idea
<WeeBeanie> I have it down to one line of code, simply my_dt_var = DateTime.parse(stored_dt_value_in_db)
<WeeBeanie> Those aren't the actual var names of course.
<WeeBeanie> But there's something quicker than that?
<[spoiler]> WeeBeanie: there's even a DateTime::iso8601 (not the same as DateTime#iso8601)
nonparfumee has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
blue_deref has joined #ruby
<WeeBeanie> Any experience with XMLRPC::DateTime values?
AlexRussia has joined #ruby
<[spoiler]> Nope
bodgix has joined #ruby
<WeeBeanie> werd.
<[spoiler]> does xmlrpc use a specific time format?
dimasg has joined #ruby
<WeeBeanie> DateTime.new() and .parse() aren't working with this returned XMLRPC::DateTime format, and if I search for XMLRPC on the DateTime documentation page I don't see anything.
<WeeBeanie> There's the documentation for the XMLRPC::DateTime
nanoz has quit [Quit: <3]
BloodyHistory has joined #ruby
dionysus69 has joined #ruby
<[spoiler]> WeeBeanie: seems like you'll need to parse the date using DateTime::iso8601
<[spoiler]> something like
youch has quit [Quit: Konversation terminated!]
juanpablo___ has joined #ruby
<[spoiler]> >> DateTime.parse("2015-08-15 20:57:00 +0000").year
<ruboto> [spoiler] # => uninitialized constant DateTime (NameError) ...check link for more (https://eval.in/417232)
<[spoiler]> >> require'date'; DateTime.parse("2015-08-15 20:57:00 +0000").year
<ruboto> [spoiler] # => 2015 (https://eval.in/417233)
<[spoiler]> parse the time (store as dt, say) and XMLRPC::DateTime.new(dt.year, dt.month, dt.day) etc
shinnya has joined #ruby
<WeeBeanie> [spoiler]: good call
sarkyniin has quit [Ping timeout: 240 seconds]
juanpablo___ has quit [Ping timeout: 240 seconds]
chinmay_dd has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
jbw has joined #ruby
sarkyniin has joined #ruby
gwendall has joined #ruby
baweaver has joined #ruby
bruno- has joined #ruby
jeadr1 has quit [Remote host closed the connection]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> WeeBeanie: still, parsing with DateTime::iso8601 might be better
kidoz has quit [Quit: Ухожу я от вас]
Cohedrin has joined #ruby
<Cohedrin> hey guys
gwendall has quit [Ping timeout: 260 seconds]
<Cohedrin> if anyone is able to help me with solving an algorithm, that would be great
<Cohedrin> basically
<Cohedrin> I have a bunch of "items" that all have different values
MVPhelp has quit [Ping timeout: 240 seconds]
<Cohedrin> theres multiple users that need to be paid out accoriding to the values of the items
<Cohedrin> so I need to develop some sort of heuristic, that gives the best combination of items to all the users, within a reasonable time
<Cohedrin> I'm a bit lost as to where to start with this, and any help would be much appreciated
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
jeadr has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 272 seconds]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
Torrieri has joined #ruby
BloodyHistory has quit [Quit: Textual IRC Client: www.textualapp.com]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
jeadr has joined #ruby
kadoppe has joined #ruby
robh71 has joined #ruby
sivsushruth has joined #ruby
quimrstorres has joined #ruby
<[spoiler]> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<[spoiler]> ?guys Cohedrin
<ruboto> Cohedrin, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<[spoiler]> Cohedrin: Also, we know nothing about the items
<[spoiler]> What is their structure?
blue_deref has quit [Quit: bbn]
<Cohedrin> ok
<Cohedrin> the items structure can really be anything you would like
<Cohedrin> currently this is a rails object, but the structure doens't really matter, at least for me
<[spoiler]> Cohedrin: Okay. What do you need to do? Loop over the items?
<Cohedrin> sorta
<[spoiler]> Rails object meaning ActiveRecord?
<Cohedrin> so there can be anywhere from 1-600 items
<Cohedrin> yeah active record
<Cohedrin> and I can
<Cohedrin> I can't do every possible combination, because that would take far too long, no one wants to wait for 4 hours to have their items
<Cohedrin> so I need help figuring out some sort of algorithm that would efficiently find a solution that works, meaning that most of the users get items closest to what they should get
<[spoiler]> Cohedrin: I still have no idea what you want to achieve, though
<Cohedrin> ok
<Cohedrin> so for example: User 1: $200; User 2:$30 User 3: $50
fantazo has quit [Quit: Verlassend]
<[spoiler]> Cohedrin: if it's N-to-M you will need to loop over each of them in some way or another
<Cohedrin> Items: 1: $24; 2: $64; 3: $90 etc...
<Cohedrin> yeah I know I have to loop over the items
<Cohedrin> the problem is
<Cohedrin> I cant go over every combination, that won't work
<Cohedrin> this is similar to the knapsack problem if you're familar
<Cohedrin> just a bit different becasue there are multiple "knapsacks"
arup_r has joined #ruby
rehat has joined #ruby
marsjaninzmarsa has joined #ruby
<[spoiler]> I know about the knapsack problem, but I am not clever enough to apply it to your problem :P
<Cohedrin> ah see thats the problem
<Cohedrin> neither am I haha
<[spoiler]> :D
perturbation has quit [Remote host closed the connection]
<snowkidind> How does ruby know whether it is in a development, test, or production mode (secrets.yml)
<snowkidind> (rails)
quimrstorres has quit [Ping timeout: 272 seconds]
<[spoiler]> snowkidind: environment variables
<snowkidind> where is that setting?
<[spoiler]> Depends
<[spoiler]> What is your stack?
<[spoiler]> Apache|nginx + Passenger + Rails, something else?
<snowkidind> ubuntu / apache / passenger
<snowkidind> rails
<[spoiler]> Then you can set RailsEnv in htaccess
quimrstorres has joined #ruby
<snowkidind> what right in the project directory?
yqt has joined #ruby
<[spoiler]> inside {rails}/public/.htaccess
<[spoiler]> or in the VirtualHost
<[spoiler]> wherever, really
<miah> doh
<snowkidind> are you solid with passenger?
<snowkidind> trying to figure something else out regarding the install
houhoulis has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 255 seconds]
<snowkidind> sudo passenger-memory-stats
<snowkidind> shows passenger process but not apache
Yiota has joined #ruby
MVPhelp has joined #ruby
workmad3 has joined #ruby
BillSussman has quit [Quit: Leaving]
sivsushruth has quit [Ping timeout: 265 seconds]
<snowkidind> pretty much the error I am trying to resolve is that it is looking for secret_token and secret_key_base
<snowkidind> the browser: Incomplete response received from application
swgillespie has joined #ruby
<[spoiler]> snowkidind: hmm odd response
<[spoiler]> memort-stats shouldn't show apache IIRC
whiteline has quit [Remote host closed the connection]
allcentury has joined #ruby
<snowkidind> i think it is working just something about ruby not allowing the site to be displayed
whiteline has joined #ruby
<snowkidind> because of this secrets.yml - but secrets looks good i think
<[spoiler]> snowkidind: it might be that those secrets aren't defined?
workmad3 has quit [Ping timeout: 240 seconds]
<[spoiler]> that's the only reason why rails would bitch
<snowkidind> how does one define them, is that not what the file is for?
<[spoiler]> ?rails snowkidind
<ruboto> snowkidind, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<[spoiler]> you might have more luck there ^
<snowkidind> nobody is over there
<[spoiler]> snowkidind: they are defined only for development (and/or testing) by default
<snowkidind> and they all are programming from their mac
<[spoiler]> Cohedrin: btw I think there's a channel dedicated to algorithms on freenode, but maybe I am imagining it
vF3hNGxc47h8 has quit [Ping timeout: 245 seconds]
<snowkidind> so then technically i could change the env to development
<snowkidind> in the .htaccess
<[spoiler]> snowkidind: the production values will be read from environment variables probably
<jhass> over 550 people are in #RubyOnRails
<shevy> we beat them!
marsjaninzmarsa has joined #ruby
<snowkidind> hahah 549 are osx
scripore has quit [Quit: This computer has gone to sleep]
<shevy> lol
<[spoiler]> That's so you don't accidentally commit the secrets to cersion control
<[spoiler]> version*
<[spoiler]> shevy: the typos started
<[spoiler]> :D
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chabil has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
robh71 has joined #ruby
<[spoiler]> snowkidind: does the secerts file contain <%= ENV['...'] %> ?
<snowkidind> been going back and forth between that and a rake
<snowkidind> uhh whatever command that was to generate one
<[spoiler]> if so, you can either use SetEnv in apache's v host to set those env variables, or you can set them in the environment
dionysus69 has quit [Ping timeout: 272 seconds]
<[spoiler]> Also, passenger starts your apps through `bash -l -c` so it also loads the contents of your .bashrc file
<[spoiler]> you could export the environment variable there
darkxploit has quit [Ping timeout: 246 seconds]
<snowkidind> so...
<[spoiler]> not *yours* sorry, but the user's the passenger app is running under
quimrstorres has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
symm- has quit [Quit: Leaving...]
<snowkidind> 000-default.conf -> <VirtualHost *:80> SetEnv SECRET_KEY_BASE dfkjsbdfshdfjkshdf
<[spoiler]> yes
<[spoiler]> but erm, the key might need to be a hex string
<[spoiler]> I am not 100% sure
<[spoiler]> actually
<[spoiler]> I'm 99% sure
<[spoiler]> it's just a key represented in hex
<toretore> >> "i\thate\nString#\rsplit".split(' ')
<ruboto> toretore # => ["i", "hate", "String#", "split"] (https://eval.in/417235)
marsjaninzmarsa has quit [Ping timeout: 265 seconds]
<snowkidind> well appears to be getting somewhere. how do i convert the hash to a hex string
<[spoiler]> toretore: lol I didn't know it did that
allcentury has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
<[spoiler]> it is a key
<toretore> here's another one:
>>'c,s,v,,,'.split(',')
<Ox0dea> >> "a \t\n\v\f\r b".split
<ruboto> Ox0dea # => ["a", "b"] (https://eval.in/417236)
<toretore> >>'c,s,v,,,'.split(',')
<ruboto> toretore # => ["c", "s", "v"] (https://eval.in/417237)
<[spoiler]> oh I knew about that one
<Ox0dea> toretore: You need to use the two-argument for such cases.
<Ox0dea> +form
marsjaninzmarsa has joined #ruby
<toretore> i know, it should just be the default
<snowkidind> so then do i store the hex string in the secrets.yml file?
<snowkidind> or the original plaintxt
<[spoiler]> snowkidind: no, it's not good for security
<toretore> it's surprising as shit
<snowkidind> oh i get it
<Ox0dea> toretore: But then File.read(foo).split wouldn't be so nice.
<[spoiler]> you might commit the secrets to a version control by acciden
<Ox0dea> And then the reflog is your worst enemy.
<snowkidind> so the hex goes into the apache VH cofig and ruby retrieves it by ENV
<[spoiler]> Yep
<toretore> Ox0dea: what makes it nice now?
<[spoiler]> toretore: it's charming, but not nice
blue_deref has joined #ruby
davedev2_ has joined #ruby
<[spoiler]> String#split is the Casanova of Ruby
allcentury has quit [Ping timeout: 240 seconds]
davedev24 has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
christiandsg has joined #ruby
<shevy> lol
<toretore> Ox0dea: also, doing weird shit whn i don't supply an argument is fine, but when i explicitly give it a ' ', that's just rude
marsjaninzmarsa has quit [Ping timeout: 250 seconds]
decaff_ has joined #ruby
<Ox0dea> toretore: Yes, I agree. I bitched about it just yesterday.
robbyoconnor has joined #ruby
<toretore> i bitch about it once a month
darkxploit has joined #ruby
<Ox0dea> >> 'a b'.split(/ /) # not sure whether this is any consolation
<ruboto> Ox0dea # => ["a", "", "", "b"] (https://eval.in/417238)
j4cknewt has joined #ruby
<Coraline> There's always .each_char
jamesaxl has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<[spoiler]> Coraline: we're lazy people, don't expect us to do things the language's stdlib *should* do for us!
<[spoiler]> (this was sarcastic, obviously)
pauly_oc has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
nocturnalviolet has quit [Quit: Connection closed for inactivity]
guardian has quit [Ping timeout: 244 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
jackjackdripper has joined #ruby
radgeRayden_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkyniin has quit [Ping timeout: 264 seconds]
guardian has joined #ruby
gwendall has joined #ruby
uwa667 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Motoservo has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 260 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Ping timeout: 244 seconds]
dfrakk has quit [Read error: Connection reset by peer]
mutuma has joined #ruby
mutuma is now known as Pathfinder
decaff_ has quit [Remote host closed the connection]
ofdtrinity has joined #ruby
swgillespie has joined #ruby
nertzy has joined #ruby
gwendall has quit [Ping timeout: 264 seconds]
<Ox0dea> Coraline: For splitting on spaces?
Motoservo has joined #ruby
jeadr has quit [Remote host closed the connection]
lele has joined #ruby
<[spoiler]> Ox0dea: if String#split doesn't do it for you the way you want it
dgutierrez1287 has joined #ruby
jeadr has joined #ruby
<Ox0dea> [spoiler]: But split('') *does* do it the "way you want", and I also think the zero-argument form returning "words" makes sense.
phutchins has joined #ruby
chinmay_dd has quit [Quit: See ya!]
<Ox0dea> It's that split(' ') doesn't split non-greedily on *only* 0x20 that bothers me.
episage has quit [Ping timeout: 255 seconds]
c355E3B has joined #ruby
allcentury has joined #ruby
yfeldblum has joined #ruby
darix has quit [Quit: may the packets be with you...]
mikecmpbll has quit [Quit: ciao.]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
scripore has joined #ruby
quimrstorres has joined #ruby
kachi8 has joined #ruby
diegoviola has quit [Remote host closed the connection]
<[spoiler]> ah
<[spoiler]> then you'd have to implement that type of splitting yourself I suppose. I think what confuses it is that it treats ' ' as the default case
mac_ has joined #ruby
nofxx has joined #ruby
<[spoiler]> which is to split greedily
diegoviola has joined #ruby
scripore has quit [Read error: Connection reset by peer]
<[spoiler]> and to remove non-whirespaces
uwa667 has joined #ruby
<[spoiler]> s/remove/replace at/
tommek has quit [Ping timeout: 264 seconds]
tommek_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Max SendQ exceeded]
nofxx has joined #ruby
symm- has joined #ruby
ayonkhan has joined #ruby
nofxx has quit [Max SendQ exceeded]
uwa667 has quit [Client Quit]
nofxx has joined #ruby
quimrstorres has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
nofxx has quit [Max SendQ exceeded]
nofxx has joined #ruby
bronson has joined #ruby
darix has joined #ruby
nofxx has quit [Max SendQ exceeded]
nofxx has joined #ruby
malconis has joined #ruby
Wolland has joined #ruby
nofxx has quit [Max SendQ exceeded]
Wolland has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has joined #ruby
malconis has quit [Client Quit]
nofxx has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
Cust0sLim3n has joined #ruby
erts has quit [Quit: erts]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
<shevy> whirespaces
tenderlove has quit [Ping timeout: 244 seconds]
<[spoiler]> I just realised I can collapse a HTML element in atom, and the move it up/down with alt+arrows
mac_ has joined #ruby
<[spoiler]> s/alt/ctrl/
arup_r has quit [Quit: Leaving]
juanpablo___ has joined #ruby
tenderlove has joined #ruby
Coldblackice has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
socialjackie_ has joined #ruby
postmodern has quit [Quit: Leaving]
workmad3 has joined #ruby
juanpablo___ has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
timanema has joined #ruby
Pathfinder has left #ruby [#ruby]
PooPoo has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
PooPooBoy has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
scripore has joined #ruby
PooPoo has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
<shevy> when reading a large file line by line
<shevy> what should one use?
PooPooBoy has quit [Client Quit]
timanema has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
<Ox0dea> shevy: Depending on what you're doing with those lines, `file.lazy.each` might be best.
phutchins1 has joined #ruby
_ht has quit [Quit: Konversation terminated!]
yeticry has quit [Read error: Connection reset by peer]
<shevy> .lazy is a thing?
<[spoiler]> it's lazy enumeration (although I had no idea File supported it)
yeticry has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
<[spoiler]> I suppose it won't fetch the file in advance, but it will return an enumerator which will give you access to the file (not sure if those will be bytes or lines, though)
<Ox0dea> shevy: Be thou cereal?
Rickmast_ has joined #ruby
<Ox0dea> Enumerator::Lazy is probably my favorite class.
<Ox0dea> Enumerator::Yielder is pretty sexy too.
<shevy> never used it, I am way too suspicious of the name
<Ox0dea> shevy: Why perform unnecessary calculation?
Rickmasta has quit [Ping timeout: 252 seconds]
frem has quit [Quit: Connection closed for inactivity]
<shevy> because I am not lazy
<shevy> I calculate all the things
<Ox0dea> Well, that's dumb.
<[spoiler]> haha
<[spoiler]> It means lazy because it's "lazily evaluated" (or enumerated)
<[spoiler]> it's called*
<[spoiler]> the same way `&&` does it
djbkd has quit [Remote host closed the connection]
<Ox0dea> shevy: And here I thought you appreciated the wisdom of Larry Wall.
<Ox0dea> [spoiler]: Short-circuiting and lazy evaulation aren't quite the same.
<Ox0dea> *evaluation
<[spoiler]> it won't evaluate the right hand side unless left-hand side is truey
uwa667 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> Ox0dea: I know, it was just an analogy
yeticry has quit [Ping timeout: 256 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
j4cknewt has quit [Remote host closed the connection]
ndrei has joined #ruby
djbkd has joined #ruby
jackjackdripper has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
NeverDie has joined #ruby
bodgix has quit [Quit: Leaving.]
<shevy> Ox0dea Larry was a hero in the 1980s
<shevy> we are soon at 2020!
allcentury has quit [Ping timeout: 244 seconds]
bodgix_ has joined #ruby
bodgix_ is now known as bodgix
<Ox0dea> You think so weird. :P
<Ox0dea> Some ideas are timeless.
<shevy> I want to use common patterns
<Ox0dea> Seems we've ended up on different pages.
jackjackdripper has quit [Client Quit]
<Ox0dea> Wall's three great virtues will remain with us long after he's gone.
robbyoconnor has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> That's got nothing to do with whether or not you've got the sense to utilize lazy evaluation where appropriate. :)
christiandsg has joined #ruby
nonparfumee has joined #ruby
last_staff has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 250 seconds]
bodgix has quit [Quit: ZNC - http://znc.in]
_socialjackie has quit [Quit: Leaving]
Trynemjoel has joined #ruby
bodgix has joined #ruby
_socialjackie has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
bodgix has left #ruby [#ruby]
workmad3 has joined #ruby
swgillespie has joined #ruby
charliesome has joined #ruby
Oka has joined #ruby
bodgix has joined #ruby
<shevy> he was a hero but didn't see PHP at that time
ledestin has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
kies has quit [Ping timeout: 240 seconds]
marsjaninzmarsa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silox| has joined #ruby
khebbie has joined #ruby
michaeldeol has joined #ruby
<aibo> nobody should have seen PHP
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Client Quit]
kobain has joined #ruby
jeadr has quit [Remote host closed the connection]
jeadr has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 255 seconds]
rubie has joined #ruby
Thomas-0725 has joined #ruby
rubie has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
vickleton has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
rubie_ has joined #ruby
marsjaninzmarsa has joined #ruby
yardenbar has quit [Remote host closed the connection]
runinsquares has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
<jhass> shevy: my answer would be File.foreach
<jhass> (with a block of course)
PhantomSpank has joined #ruby
robh71 has joined #ruby
kies has joined #ruby
dimasg has quit [Quit: Lost terminal]
bluOxigen has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dymk has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<dymk> Hi, I'm looking for a gem that lets you define Ruby objects similar to ActiveModel or Struct, but adds type information to the PORO's methods
<dymk> I remember seeing it a while ago, and can't remember the name
dr3w has quit [Ping timeout: 260 seconds]
<dymk> hmm I want to say it's virtus
<Ox0dea> dymk: Yep, sounds like Virtus.
<jhass> glad we could help!
thiagovsk has quit [Quit: Connection closed for inactivity]
<Ox0dea> dymk: It's perhaps worth noting that even the original author has largely disavowed such things.
<Ox0dea> > 4 years after [Virtus'] first release I have to say I no longer like this concept.
<dymk> Is that so? Hm, any particular reason?
phutchins1 has quit [Ping timeout: 244 seconds]
<Ox0dea> In essence, solnic has seen the functional light.
gwendall has joined #ruby
<dymk> Sure, I don't see that as being a reasonable approach to writing Ruby code, but to each his own
uwa667 has quit [Remote host closed the connection]
allcentury has joined #ruby
<dymk> Not to say I don't love #map, #filter, etc
<Ox0dea> But do you use them?
<dymk> All over the place, functional programming is great when it comes to manipulating lists
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ox0dea> s/lists/data/
<dymk> sure, that can be generalized to data
<Ox0dea> And what're we working with?
<dymk> I've tried to apply other functional concepts to Ruby though, like immutable objects, and the language just lacks features to make it worth it IMO
<Ox0dea> Immutability isn't really a necessary condition for practical functional programming.
<dymk> I've got a rails app with a fairly complex model graph, and modeling that as a bunch of immutable objects doesn't work with activerecord (which is more of a tooling problem), and it doesn't perform well
ranchodev has quit [Ping timeout: 260 seconds]
lele is now known as Guest24
veduardo has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<dymk> right, but once you get rid of immutable objects, you've started slipping back into OO land, and I'm not sure where the line is that you've crossed between the two paradigms
robh71 has joined #ruby
gwendall has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<dymk> i honestly think it's more of a rails thing though, the "standard" way of writing rails apps doesn't lend itself well to FP
decoponio has joined #ruby
<Ox0dea> It's not as if managed state is some lofty pipe dream, for what that's worth.
tyl has joined #ruby
<dymk> Could you explain what you mean?
swgillespie has joined #ruby
<Ox0dea> I'll need you to clarify "slipping" first.
symm- has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
<Ox0dea> That is, you seem to have used the term pejoratively, as if object orientation is inherently "bad".
Fluent has quit [Ping timeout: 244 seconds]
<dymk> Ah, no, I didn't mean to use it pejoratively, it's a paradigm that works quite well for my app
<dymk> One of the primary differences between FP and OO as I see it is FP mutates data by making copies, OO mutates data directly
mrtg9970 has joined #ruby
<Ox0dea> Copying isn't mutation; that's sort of the whole point?
<shevy> Anyone here using ruby + tk and dares to admit it?
vyorkin has joined #ruby
<shevy> jhass ok
vyorkin has quit [Client Quit]
<dymk> Well yes, that's just how you'd do the analogous operations in the FP world, by making copies; everything is immutable
<Ox0dea> dymk: Except that's grossly ill-informed.
<[spoiler]> shevy: I did once, but I stopped
<dymk> Probably, I'm no FP expert
<shevy> I have to use tcl for some university-project, now oddly enough I feel like first writing stuff in ruby-tk before having to go deeper into tcl
rubie_ has quit [Remote host closed the connection]
<shevy> [spoiler] haha yeah that is how I already feel about that as well :(
<[spoiler]> :)
<Ox0dea> Functional languages provide primitives for managing mutation, but you're free to apply similar discipline in your Ruby code.
dgutierrez1287 has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 245 seconds]
veduardo has quit [Ping timeout: 244 seconds]
banister has joined #ruby
<[spoiler]> anyway, people! It's an early night for me. Goodnight! <3
<Ox0dea> Aur revoir.
Fluent has joined #ruby
jackjackdripper has joined #ruby
<Ox0dea> -r
<Ox0dea> I can't even into French. :/
Torrieri has quit [Quit: Be back later ...]
Torrieri has joined #ruby
<dymk> That's true, but I'm skeptical how code written in FP fashion would perform given how Ruby isn't optimized for "allocate every time you want to change a field on a structure"
<Ox0dea> dymk: In any case, I realize I'm being overly pedantic. The beauty of Ruby is that it well deserves its "functional object orientation" badge.
<Ox0dea> And you're right that the line between the two paradigms can be perilously thin.
<dymk> Indeed, sometimes being pedantic about languages can be fun though ;)
[k- has quit [Ping timeout: 252 seconds]
<Ox0dea> Yes, I quite enjoy it. :P
<nofxx> dymk, FP also dictates you should avoid data change anyways
Guest24 is now known as lele
Caius has quit [Ping timeout: 256 seconds]
<dymk> nofxx, what's it give you in return to perform meaningful computation, then?
<shevy> cookies
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
radgeRayden_ has quit [Quit: Leaving]
robbyoconnor has joined #ruby
Torrieri has quit [Ping timeout: 264 seconds]
robh71 has joined #ruby
einarj has quit [Remote host closed the connection]
chabil has quit [Quit: WeeChat 1.2]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ?cookie shevy
<ruboto> shevy, here's your cookie:
<nofxx> dymk, not sure I'm following. Also, have in mind I really don't dig neither read theoretical/pseudo practices. For me OO vs FP in ruby is class vs a module with self.foo
diegoviola has quit [Quit: WeeChat 1.2]
<Ox0dea> Wat.
<nofxx> which works better in my case is what I'm using. Don't follow a pattern for everything, actually that's the beauty in ruby, as Ox0dea pointed otu
Caius has joined #ruby
Cohedrin has quit [Ping timeout: 246 seconds]
mrtg9970 has quit [Quit: Leaving]
nertzy has quit [Quit: This computer has gone to sleep]
gard has quit [Ping timeout: 265 seconds]
<nofxx> Ox0dea, I mean 10 lines of code vs 10 paragraphs of boring text. Which you prefer to understand some practice/pattern?
* jhass fetches popcorn
<Ox0dea> Are you decrying knowledge or something?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> Ox0dea, nope, I'm an uncorrectable aforist
<Ox0dea> nofxx: "Just write code until it works" is the quintessential Bad Idea.
<nofxx> that's not what I mean
aswen has joined #ruby
<Ox0dea> I'm not even sure how practices and/or patterns came into this, mind.
nertzy has joined #ruby
<Ox0dea> It's a shame how widespread is the belief that functional programming is just some ivory tower plaything.
<iszak> Ox0dea: I am not sure this is the case, I see it becoming very popular in the JS area
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
allcentury has joined #ruby
<yo61> I'm using ruby 2.2.0 installed under rbenv on OSX
veduardo has joined #ruby
kirun has quit [Quit: Client exiting]
<yo61> I'm trying to run "bundle install" from this repo: https://github.com/richardc/puppet-datacat
<yo61> It fails to install debugger as it can't find ./220/ruby_debug.h
<jhass> yo61: try bundle install --without development
<jhass> doubt you'll need it
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yo61> OK, that worked
<yo61> Thanks
<nofxx> jez, worst brands ever << :dlink ... no wonder they will go bankrupt very soon. go go huawei. Need to buy an adsl modem. Ox0dea enlight us with some functional EXAMPLES ;)
<nofxx> that's what I meant, theory means shit with computation... show me the code.
MyMind has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
vickleton has quit [Ping timeout: 240 seconds]
<Ox0dea> nofxx: I don't sexually identify as a search engine (yet).
Sembei has quit [Ping timeout: 260 seconds]
ofdtrinity has quit [Quit: Leaving]
<miah> huawei isnt great
djbkd has joined #ruby
<yo61> jhass: how about if I do need those development gems?
veduardo has quit [Ping timeout: 244 seconds]
<jhass> yo61: replace debugger with byebug or use Ruby 1.9 (I'd strongly prefer the former)
episage has joined #ruby
<yo61> I'm guessing debugger is pulled in my pry-debugger
tyl has left #ruby ["Textual IRC Client: www.textualapp.com"]
<yo61> *by
<jhass> yes, there's pry-debug
<jhass> er, pry-byebug
<nofxx> Ox0dea, hehe...if it was brainfuck you'll be willing to help =P
robh71 has joined #ruby
<iszak> Ox0dea: that's so sad
<nofxx> miah, my dream now is that someone hacked my router. That'll mean I'm connected.
<nofxx> at > 10kbps.... ah.. rebooting it, again (every even day =/
djbkd has quit [Client Quit]
<jhass> openwrt all the things <3
<yo61> Hmm, still saying "Gems in the group development were not installed"
LMity has joined #ruby
<jhass> yo61: yes, without is remembered, bundle install --with development to undo
<yo61> Have changed pry-debugger to pry-byebug
<yo61> I already tried that: Unknown switches '--with'
<iszak> nofxx: are you aware some routers provide a publically accessable wireless AP for say <insert ISP> members?
<jhass> needs bundler 1.10
<yo61> k
<jhass> prior edit .bundle/config by hand
<dymk> from its github page: "It's developed as a C extension, so it's fast."
juanpablo___ has joined #ruby
<Ox0dea> iszak: What's that?
<dymk> I'm sure it is fast, but i chuckle a little bit when I see that line of reasoning
<yo61> Hmm, think I need to get back to the author - spec tests still not running. Getting a Syck error
<Ox0dea> nofxx: Procs are "functional"; you're familiar with those, I trust?
edwardly has quit [Ping timeout: 244 seconds]
nofxx has quit [Disconnected by services]
nofxxx has joined #ruby
towski_ has joined #ruby
<jhass> yo61: https://github.com/richardc/puppet-datacat/blob/master/.travis.yml#L4-L6 guess it's just stuck in the past :/
<yo61> Looks that way
<nofxxx> miah, honestly don't know which is good, even bought a expensive siemens once... another piece of crap.
<yo61> I guess I can rbenv switch to 1.9.3
Yzguy has quit [Quit: Cya]
radgeRayden has joined #ruby
juanpablo___ has quit [Ping timeout: 272 seconds]
ohaibbq has joined #ruby
dr3w has joined #ruby
LMity has quit [Ping timeout: 260 seconds]
<iszak> Ox0dea: that people want more FP but won't accept "technical functional JS"
towski_ has quit [Ping timeout: 244 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
speaking1ode has quit [Ping timeout: 260 seconds]
Vile` has quit [Ping timeout: 250 seconds]
belteshazzar has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 260 seconds]
speaking1ode has joined #ruby
Yzguy has joined #ruby
ayonkhan has quit []
Yzguy has quit [Client Quit]
hydrozen has joined #ruby
hubcaps has quit [Ping timeout: 256 seconds]
nonparfumee has joined #ruby
Vile` has joined #ruby
dr3w has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
swgillespie has joined #ruby
hubcaps has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
dr3w has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
_socialjackie has quit [Quit: Leaving]
s00pcan has quit [Ping timeout: 240 seconds]
ruurd has quit [Client Quit]
nettoweb has joined #ruby
nonparfumee has quit [Quit: Textual IRC Client: www.textualapp.com]
Cache_Money has quit [Quit: Cache_Money]
s00pcan has joined #ruby
gwendall has joined #ruby
jeadr has quit [Remote host closed the connection]
<shevy> people want free beer
jeadr has joined #ruby
gwendall has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxxx> shevy, make mine a bourbon. Or an irish.
devoldmx has quit [Ping timeout: 252 seconds]
jbw has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
jbw has joined #ruby
speaking1ode has quit [Ping timeout: 250 seconds]
decaff_ has joined #ruby
mary5030 has joined #ruby
workmad3 has joined #ruby
<shevy> you drink beer too :)
decaff_ has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
rubie has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
<shevy> Has anyone here written a (commandline) text adventure or text game in ruby?
robbyoconnor has quit [Quit: Konversation terminated!]
d10n-work has joined #ruby
dr3w has quit [Ping timeout: 244 seconds]
marsjaninzmarsa has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
KensoDev has joined #ruby
Cache_Money has joined #ruby
fedexo has joined #ruby
einarj has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
aswen has quit [Quit: WeeChat 1.1.1]
Trynemjoel has joined #ruby
ramfjord has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
hj2007 has joined #ruby
<hj2007> anyone using Ruby for Android development?
swgillespie has joined #ruby
<Ox0dea> shevy: CYOA or RPG?
<Ox0dea> hj2007: If anyone is, they're likely using Ruboto: http://ruboto.org/
socialjackie_ has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 250 seconds]
<nofxxx> hj2007, I use for cordova building/helpers... rake actually. There's ruboto for android too.
<nofxxx> shevy, first ever program I wrote was a truco for cli and irc bot. Truco is a kinda of card play famous here in Brazil.
jonee has joined #ruby
RobertBirnie has joined #ruby
<shevy> Ox0dea hmm anything that I can study and learn from, RPG preferred. I even struggle with things such as how to save character dataset data
<shevy> nofxxx does that game still work?
Trynemjoel has joined #ruby
<Ox0dea> >> Marshal # shevy
<ruboto> Ox0dea # => Marshal (https://eval.in/417252)
<baweaver> shevy: Give me and Ox0deaa bit to get our Pokemon variant up
troulouliou_dev has joined #ruby
<baweaver> or snarf some of the RPG Maker source
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Ick.
<nofxxx> shevy, no, dunno why I even mentioned... not helping hehe. But I remember some code let me try to find.
<baweaver> RMVXA is a good portion Ruby 1.9.2
KensoDev has quit [Remote host closed the connection]
<shevy> you guys wrote a pokemon variant?
KensoDev has joined #ruby
<Ox0dea> shevy: There needs to be a sqlite2classes utility, like, yesterday.
np0 has joined #ruby
<baweaver> we mused about it, and never did anything
Silox| has quit [Quit: Connection closed for inactivity]
hydrozen has joined #ruby
<Ox0dea> Veekun has a SQLite database containing all the Pokémon data one might ever need, but massaging it into a coherent object model isn't trivial.
<Ox0dea> I have a little DSL for creating monsters, but it's not at all comprehensive.
christiandsg has joined #ruby
<baweaver> We should make that some time though
<baweaver> shevy can be our mascot or something
<Ox0dea> Aye, glueing all the formulae together and seeing the right numbers come out during battles would be a joyous thing.
swgillespie has joined #ruby
KensoDev has quit [Ping timeout: 245 seconds]
<Ox0dea> Literally thousands of special cases, though...
<baweaver> Most of the annoying part is just getting the modeling done.
lannonbr has joined #ruby
marsjaninzmarsa has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
kies has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
KensoDev has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
kies has joined #ruby
KensoDev has quit [Remote host closed the connection]
KensoDev has joined #ruby
djbkd has joined #ruby
Yzguy has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Yzguy has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KensoDev has quit [Ping timeout: 240 seconds]
christiandsg has quit [Remote host closed the connection]
axl_ has joined #ruby
rubie has quit [Remote host closed the connection]
aperios has quit [Ping timeout: 252 seconds]
hj2007 has quit [Ping timeout: 246 seconds]
<np0> is it recommended for people who are just learning ruby to use an alternative to irb, like pry?
<nofxxx> np0, pry isn't an alternative. You are actually using both
<nofxxx> np0, are you having fun? when that answer is no you're doing ruby wrong ;)
northfurr has quit [Quit: northfurr]
snowkidind has quit [Quit: snowkidind]
Yzguy has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
<np0> nofxxx: so is it some sort of wrapper for irb that adds functionality? and yes, so far i am :)
northfurr has joined #ruby
<nofxxx> pry == a vortex in time that opens a portal to: irb
<nofxxx> np0, trying to put in simple words for you ;)
<np0> ah i see
<darix> np0: pry is irb on steroids. really strong steroids.
<np0> maybe i should stick with irb untill i'm writing large bodies of code so i don't confuse myself
<np0> darix: gotcha. since i'm not doing any heavy lifting with ruby, i don't think i'll need supplements just yet :P
<darix> np0: here is some neato feature you will love quickly
<darix> require 'pry'; binding.pry
<nofxxx> np0, ahh, you're using as irb (calling from the bash). No problem. I was thinking you was using pry inline. eg: anywhere on your code you may call `binding.pry`
<shevy> I found that making games is a LOT of work...
<darix> a pry shell right in the spot of your program
<shevy> and I am unsure why
marsjaninzmarsa has quit [Ping timeout: 244 seconds]
<darix> shevy: catering to gamers is no fun ;)
<darix> been there done that.