<robwri32_>
does some one have a second to guide me a google search for an issue i'm having?
devoldmx has quit [Ping timeout: 246 seconds]
mleung has quit [Quit: mleung]
Exuma has quit [Client Quit]
iamninja has joined #ruby
braincrash has joined #ruby
howdoi has joined #ruby
<nofxx>
?ask
<ruboto>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<robwri32_>
word, just wasn't sure anyone was here
nux443 has quit [Ping timeout: 240 seconds]
<nofxx>
robwri32_, that's imprecise... we often kill each other to whom will help you first. The last one usually commits hakiri.
pawnbox has joined #ruby
<robwri32_>
ok so i'm pretty new, and say i'm working through a guide/book/tutorial there is a gem file its got the decencies and all listed in it. so about 90% of these i've tried i am constantly running into build/compile errors
robh71 has quit [Ping timeout: 260 seconds]
<robwri32_>
should i be trying to match versions of rails/ruby to what i'm trying to work thru?
<shevy>
you should address these build errors
<robwri32_>
so i keep hitting these bundle install errors then i run bundlee update
iamninja has quit [Ping timeout: 246 seconds]
<robwri32_>
so i eventually have to word through those errors updating version and name to current stuff in that gem file
<nofxx>
robwri32_, you realize that's totally language agnostic. Imo you should go last version everywhere/everytime.
Musashi007 has joined #ruby
<robwri32_>
last or latest
<shevy>
if there is a ruby gem that is a binding to some C program, then it must be compiled, which will require the prior dependencies in particular the .h files to exist
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
<robwri32_>
@nofxx i don't think i follow what your saying.
<robwri32_>
could the code i'm following be affected by me chaning versions of gems
<shevy>
sure
nerdoncall has joined #ruby
nux443 has joined #ruby
<shevy>
but you know that this is a pretty meta discussion as long as you don't give specific names :)
pyon has quit [Quit: Stupid Emacs.]
saddad has joined #ruby
<nofxx>
robwri32_, I saying that's not ruby specific. Also, do you know how the numbering works?
jeadre has quit [Remote host closed the connection]
<robwri32_>
@shevy you talking to me
<nofxx>
0.0.1 -> 0.0.1 vs 1.0.0 -> 2.0.0 for instance robwri32_
pyon has joined #ruby
<robwri32_>
@nofxx yes i do
<nofxx>
robwri32_, you should not have any issues if the major version doesn't change
<nofxx>
if it does change, I would search for a new tutorial, or just have the changelog side by side
<robwri32_>
@nofxx can i show you the link i'm working thur and maybe you can figure out if this guy is off base?
<robwri32_>
ok thnks guys i've got to turn in, try again in the morning
cndiv has joined #ruby
graydot has joined #ruby
preyalone has joined #ruby
robwri32_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimeh has joined #ruby
Musashi007 has quit [Quit: Musashi007]
r1cem0n has quit [Remote host closed the connection]
Klumben has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
psy_ has joined #ruby
ta has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has joined #ruby
arian0n has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arian0n has joined #ruby
Lucky__ has quit [Ping timeout: 250 seconds]
graydot has quit [Quit: graydot]
Musashi007 has joined #ruby
ta has quit [Ping timeout: 246 seconds]
Eiam_ has joined #ruby
lipoqil has joined #ruby
mistermo_ has joined #ruby
graydot has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
hyy has quit [Ping timeout: 252 seconds]
nux443 has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cheerio]
hyy has joined #ruby
nux443 has joined #ruby
cndiv has quit [Quit: Quit]
pawnbox has quit [Remote host closed the connection]
baweaver has joined #ruby
bigredboots has quit [Remote host closed the connection]
lipoqil has quit [Ping timeout: 256 seconds]
jhack32 has quit [Ping timeout: 250 seconds]
hyy has quit [Ping timeout: 252 seconds]
nux443 has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
arian0n has quit [Ping timeout: 256 seconds]
nux443 has joined #ruby
kies has quit [Ping timeout: 255 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
arian0n has joined #ruby
<Eiam_>
anyone have a light weight suggestion/example for a structure to hang some basic Sequel stuff off? just like creating your database, setting up the tables, creating your models, rake tasks for creation/migrations ? I found a couple gists that were from 2011 of rake tasks, but it looks like Sequel has added a lot of that support already.
mistermocha has joined #ruby
<Eiam_>
I'm just using db/database.rb for initials connections, db/migrations/001_.rb for up/downs and /models/blah.rb for my actual models
pawnbox has joined #ruby
<baweaver>
Might be worthwhile to read into how Rails does it.
sdwrage_ has quit [Quit: This computer has gone to sleep]
nux443 has quit [Ping timeout: 250 seconds]
<baweaver>
really depends, why do you need 'lightweight'?
pen has joined #ruby
<Eiam_>
rails brings in too much magic, i want to be able to easily follow whats going on or have someone else follow it without having to know rails magic
<Eiam_>
(I'm using sinatra)
<Eiam_>
so lightweight = simple to follow
<baweaver>
the problem is that by foregoing rails you end up reinventing half of it.
<baweaver>
you can just use ActiveRecord for Sinatra.
<baweaver>
That being said, reading around on ORMs in that same domain
<baweaver>
not sure is Sequel has that or not.
Musashi007 has quit [Quit: Musashi007]
<baweaver>
DataMapper looks to do a lot of what you're interested in, but that's not Sequel so if you're bound there...
<Eiam_>
datamapper is deaddd
<baweaver>
noted.
jeadre has quit [Remote host closed the connection]
<Eiam_>
(last i checked they were focused on their next release, a rewrite)
oo_ has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<Eiam_>
okay well, ill just go with what i've got then, figure out some rake tasks
Torrieri has joined #ruby
<baweaver>
yeah, not finding anything relevant from a cursory glance.
nux443 has joined #ruby
jeadre has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
jeadre has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
graydot has quit [Quit: graydot]
jeadre has joined #ruby
oo_ has joined #ruby
nux443 has quit [Ping timeout: 256 seconds]
Torrieri has quit [Ping timeout: 240 seconds]
rehat has joined #ruby
rehat has quit [Remote host closed the connection]
rehat has joined #ruby
nux443 has joined #ruby
bigredboots has joined #ruby
Musashi007 has joined #ruby
casadei has joined #ruby
allcentury has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Client Quit]
auzty has joined #ruby
lemur has joined #ruby
rbowlby has joined #ruby
nux443 has quit [Ping timeout: 264 seconds]
hubcaps has quit [Quit: Leaving.]
hubcaps has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
lemur has quit [Ping timeout: 246 seconds]
dimasg has joined #ruby
Hobbyboy has quit [Quit: I think the BNC broke.]
jackjackdripper has quit [Quit: Leaving.]
valeri_ufo has quit [Quit: ...]
bronson has joined #ruby
haasn has quit [Quit: haasn]
casadei has quit [Remote host closed the connection]
Jewry has joined #ruby
graydot has joined #ruby
yfeldblum has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
Flipez has quit [Ping timeout: 250 seconds]
rbowlby has quit []
krz has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
haasn has joined #ruby
Hobbyboy has joined #ruby
bigredboots has quit [Remote host closed the connection]
christiandsg has joined #ruby
ta has joined #ruby
mary5030 has joined #ruby
laurentide_ has joined #ruby
poli has quit [Ping timeout: 260 seconds]
laurentide has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 256 seconds]
Rinzlit1 has joined #ruby
Jewry has quit [Quit: Page closed]
christiandsg has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
d2dchat has joined #ruby
mistermocha has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
rakm has joined #ruby
krz has quit [Quit: WeeChat 1.2]
khebbie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 265 seconds]
robh71 has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
riotjones has joined #ruby
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
mary5030_ has joined #ruby
devoldmx has joined #ruby
sdothum has quit [Ping timeout: 245 seconds]
hubcaps has quit [Quit: Leaving.]
opensource_ninja has quit [Quit: opensource_ninja]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
opensource_ninja has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
codenapper has joined #ruby
opensource_ninja has quit [Client Quit]
tkuchiki has joined #ruby
jenrzzz has joined #ruby
robh71 has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
Vile` has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
tkuchiki has quit [Ping timeout: 256 seconds]
Torrieri has joined #ruby
r0x0rZ has joined #ruby
khebbie has joined #ruby
weemsledeux has joined #ruby
tkuchiki has joined #ruby
iamninja has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
r0x0rZ has quit [Ping timeout: 245 seconds]
iamninja has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
choke has joined #ruby
Torrieri has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
Mendenhall has joined #ruby
amclain has quit [Quit: Leaving]
r0x0rZ has joined #ruby
jeadre has quit [Remote host closed the connection]
<apeiros>
the strings which make the cells will have an encoding and when you write the row to an IO, the IO's encoding will determine whether and how that is translated
<mytrile>
But chinese chars looks like garbage in excel, although in regular text editor everything is fine
<mytrile>
apeiros: good point :)
<apeiros>
excel does not understand csv
<apeiros>
it claims so but it uses its own format and it's somewhat difficult to instruct it to use a specific encoding
andikr has joined #ruby
<apeiros>
and the default encoding it uses depends on things I didn't fully figure
<mytrile>
yep, unfortunately clients use it and "excel sucks" does not fix the problem
tomaz_b has joined #ruby
ta has joined #ruby
<apeiros>
mytrile: indeed. good luck finding where the encoding setting for csv import is. or figuring which encoding your client uses (and hope they have the same on all machines)
<mytrile>
thanks for your thoughts apeiros
solocshaw has joined #ruby
<apeiros>
and good luck writing a manual for your client they actually understand :)
* apeiros
been there, done that, it's not pleasant
<mytrile>
:)
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Konstruktionist has joined #ruby
ta has quit [Ping timeout: 260 seconds]
jesterfraud has joined #ruby
xhosae has joined #ruby
Konstruktionist has quit [Client Quit]
eightfold has joined #ruby
acke_ has quit [Remote host closed the connection]
chatterb8 has joined #ruby
bgh13 has joined #ruby
acke has joined #ruby
mistermocha has joined #ruby
stan has joined #ruby
solars has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
stardiviner has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
_blizzy_ has joined #ruby
Macaveli has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nux443 has quit [Ping timeout: 240 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
freezevee has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
deryl has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
juanpaucar has joined #ruby
AlphaAtom has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
mytrile has quit [Ping timeout: 246 seconds]
deryl is now known as ddd
nux443 has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Max SendQ exceeded]
ecnalyr has joined #ruby
juanpaucar has joined #ruby
nux443 has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
juanpauc_ has quit [Ping timeout: 265 seconds]
juanpauc_ has joined #ruby
ecnalyr has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
lipoqil has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 245 seconds]
eGGsha is now known as eGGshke
juanpaucar has joined #ruby
Ox0dea has quit [Ping timeout: 240 seconds]
Torrieri has joined #ruby
elepedus has joined #ruby
ddd has quit [Quit: leaving]
juanpaucar has quit [Read error: Connection reset by peer]
jeadre has quit [Remote host closed the connection]
juanpauc_ has quit [Ping timeout: 264 seconds]
juanpaucar has joined #ruby
bronson has quit [Remote host closed the connection]
eightfold has quit [Quit: eightfold]
jeadre has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
oo_ has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
juanpauc_ has joined #ruby
nux443 has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
Torrieri has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
oo_ has joined #ruby
juanpaucar has joined #ruby
araujo_ has quit [Ping timeout: 260 seconds]
hmnhf has joined #ruby
juanpauc_ has quit [Ping timeout: 255 seconds]
juanpauc_ has joined #ruby
ta has joined #ruby
livathinos has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
casadei has joined #ruby
allcentury has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
chipotle has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
m3ow1504_x_io has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
casadei has quit [Ping timeout: 264 seconds]
anandubajith has quit [Quit: Connection closed for inactivity]
m3ow1504_x_io has quit [Max SendQ exceeded]
juanpaucar has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
m3ow1504_x_io has joined #ruby
juanpaucar has joined #ruby
nux443 has quit [Ping timeout: 250 seconds]
Pupeno has quit [Remote host closed the connection]
nux443 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
chipotle has joined #ruby
juanpauc_ has quit [Ping timeout: 250 seconds]
JaReAx has joined #ruby
juanpauc_ has joined #ruby
pabs has quit [Ping timeout: 255 seconds]
dumdedum has joined #ruby
pabs has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
hmnhf has quit [Quit: Konversation terminated!]
christiandsg has joined #ruby
juanpaucar has joined #ruby
dionysus69 has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
ghr has joined #ruby
dgutierrez1287 has joined #ruby
aganov has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
<adaedra>
hello
<apeiros>
moin
<adaedra>
we're still in registered-only mode?
<sevenseacat>
I wonder why that switch was flipped.
christiandsg has quit [Ping timeout: 265 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
troulouliou_div2 has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livathinos has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
sdfgsdfg has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
sdwrage_ has joined #ruby
platzhirsch has quit [Ping timeout: 250 seconds]
juanpauc_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
ruby-lang015 has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
devoldmx has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
<apeiros>
moin
<yorickpeterse>
morning
_joes__ has quit [Read error: Connection reset by peer]
terlar has quit [Quit: WeeChat 1.3]
astrobun_ has quit [Remote host closed the connection]
<apeiros>
lukebyrne: if you search this tree often, I'd probably transform it into a form which is more suitable for searching
<lukebyrne>
Its only going to once for a data import
<apeiros>
lukebyrne: presumably for every when in the tree then, though?
astrobun_ has joined #ruby
<lukebyrne>
apeiros: yes
<lukebyrne>
aperios: what would u consider a better data format?
<apeiros>
{wine => [region1, region2, …], …}
<apeiros>
and you can achieve that by walking the tree and successively writing out the result
eGGsha is now known as eGGshke
juanpauc_ has quit [Ping timeout: 246 seconds]
<apeiros>
you know how to walk a tree?
rubie has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Read error: Connection reset by peer]
<lukebyrne>
yeh, so u reckon flatten in
joonty has quit [Read error: Connection reset by peer]
<lukebyrne>
and have some duplication
_joes__ has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
terlar has joined #ruby
<atmosx>
there's a JS workshop at this open-space I'm in, in Athens. There ratio is 3 females for every male in the audience, which I think is kinda strange. I didn't knew women were so much into programmers (these days).
<apeiros>
lukebyrne: ah, can a wine grow in multiple regions?
chatterb8 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
eGGshke is now known as eGGsha
<lukebyrne>
apeiros: no it can not, apperently regions are very stricly defined, multiple regions can grow the same verietal such as an AUstralian or New Zealand Chardonay
startupality has joined #ruby
<zenspider>
lukebyrne: would you like to improve at recursion in general?
<lukebyrne>
zenspider: yes I would
<zenspider>
pick up a copy of the little schemer and work through it at least once
<lukebyrne>
I am just looking back at this solution which someone from this irc came up with
<lukebyrne>
thinking I can use it to flatten the hash like apeiros suggested
arup_r has joined #ruby
codecop has quit [Ping timeout: 240 seconds]
Voker57 has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
ruby-lang015 has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 255 seconds]
flughafen has joined #ruby
<flughafen>
shevy: !
supergeek has quit [Remote host closed the connection]
donske has joined #ruby
einarj has joined #ruby
codecop has joined #ruby
krz has quit [Ping timeout: 260 seconds]
nux443 has quit [Ping timeout: 240 seconds]
Gnomethrower is now known as uphoria
nux443 has joined #ruby
bruno- has joined #ruby
marr has joined #ruby
astrobun_ has quit [Remote host closed the connection]
valeri_ufo has joined #ruby
<gregf__>
lukebyrne: thats only 3 levels so not sure why you would need recursion :/. can you not do it with a loop?
charliesome has joined #ruby
yashinbasement has joined #ruby
<lukebyrne>
gregf__: it can go n + levels deep
<gregf__>
lukebyrne: ah - ok
<apeiros>
gregf__: a non-recursive solution would probably even be more complex anyway
nux443 has quit [Ping timeout: 265 seconds]
gizmore has joined #ruby
pawnbox has quit [Remote host closed the connection]
<apeiros>
not quite sure how that partition_regions method is supposed to be used, though
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
krz has joined #ruby
<lukebyrne>
apeiros: its used to convert a json tree so that I can used the jquery chainable library
<apeiros>
I see
joonty has joined #ruby
<apeiros>
well, those are specifics you didn't mention
edwardly has quit [Max SendQ exceeded]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
chouhoul_ has quit [Remote host closed the connection]
<lukebyrne>
apeiros: sorry the partition_regions is only there as an example
<lukebyrne>
I am just trying to either flatten this hash to an array like you suggested or search it like in the gist
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
my suggestion is actually to invert it, and still have a hash. just with wine being key and region-stack being the value ;-)
jas02 has quit [Quit: jas02]
benlovell has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
Macaveli_ has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
sdfgsdfg has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
arup_r has quit [Remote host closed the connection]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
<lukebyrne>
Can you just invert hashes like that?
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
Torrieri has joined #ruby
Torrieri has joined #ruby
suchness has joined #ruby
benlovell has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
jas02 has joined #ruby
<apeiros>
lukebyrne: I tried it. was 12 lines of non-clever code for me.
devoldmx has joined #ruby
<lukebyrne>
apeiros: did it work?
<apeiros>
yes. maybe I should have said "did" instead of "tried" :)
codecop has quit [Remote host closed the connection]
<lukebyrne>
could u paste it in the gist?
nfk has joined #ruby
<apeiros>
I can help you come up with your own solution
<lukebyrne>
ok, how?
tkuchiki has quit [Remote host closed the connection]
<apeiros>
start without recursion. only care about the first level. you for testing, you should add a wine on the top level (directly under australia).
<apeiros>
write code which iterates only that top level, finds all wines and adds it to a result hash.
tkuchiki has joined #ruby
<apeiros>
can you do that?
<lukebyrne>
yeh
blackmesa has joined #ruby
nux443 has joined #ruby
Torrieri has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
misalias is now known as prosodyContexte
<apeiros>
lukebyrne: ok. do that and gist it when you're done. we'll get you there step by step ;-)
<apeiros>
ah, right, but needs "require 'yaml'", of course
charliesome has quit [Client Quit]
yashinbasement has quit [Quit: Leaving]
misewmn is now known as miswear
<apeiros>
lukebyrne: use '{"australia":["some", "wines"]}' as json. your result now contains "australia" as key instead of the wine. we want the keys "some" and "wines" in the result
Valeness has joined #ruby
miswear is now known as miswism
<apeiros>
lukebyrne: I've got to go for lunch. I'll be back in ~30min
<adaedra>
bonap
<sevenseacat>
bonan apetiton!
<lukebyrne>
apeiros, its 6pm my time here, i have to head out as well, can I email u to see if youa re free antoher time to continue?
<apeiros>
lukebyrne: I'm almost always here
<lukebyrne>
ok, will log back in
* [k-
notes down apeiros's lunchtime
<apeiros>
sometimes it might take a while until I respond, though
livathinos has joined #ruby
* sevenseacat
notes down that lukebyrne is in the same timezone as me
* apeiros
senses [k- is up for mischief!
<lukebyrne>
sevenseacat: perth
<lukebyrne>
?
<sevenseacat>
lukebyrne: aye.
Asher has quit [Quit: Leaving.]
<lukebyrne>
u go to rails meetup?
pawnbox has quit [Remote host closed the connection]
<sevenseacat>
aye. have we met? :)
Asher has joined #ruby
<apeiros>
heh, small world…
<lukebyrne>
sevenseacat: i have only been to one, possibly we have met
charliesome has joined #ruby
elepedus has joined #ruby
<sevenseacat>
cool :) come along to the next one!
arup_r has joined #ruby
christiandsg has joined #ruby
<[k->
you guys need to identify yourselves to each other
jas02 has quit [Quit: jas02]
<sevenseacat>
actually i may not be able to make it to the next one, i may be off on a work trip
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
bankair: Hash's docs go into this to some degree, the general data structure Hash implements is the hashmap
<bankair>
I'll get back to those basics
crdpink has joined #ruby
<bankair>
thanks for your time
krz has joined #ruby
jidar has joined #ruby
teotwaki has joined #ruby
16WAANP8U has joined #ruby
gizmore has joined #ruby
yfeldblu_ has joined #ruby
jeadre has joined #ruby
CHVNX has joined #ruby
Klumben has joined #ruby
nullwarp has joined #ruby
sevenseacat has joined #ruby
rushed has joined #ruby
bffff_ has joined #ruby
iamninja has joined #ruby
surs has joined #ruby
gf3 has joined #ruby
jamo_ has joined #ruby
musl has joined #ruby
Guest74353 has joined #ruby
elton has joined #ruby
QKO has joined #ruby
lupine has joined #ruby
v0n has joined #ruby
hostess has joined #ruby
DarkBushido has joined #ruby
rfmind_ has joined #ruby
nitrix has joined #ruby
BLuEGoD has joined #ruby
Dwarf has joined #ruby
julie_harshaw has joined #ruby
jzigmund has joined #ruby
cats has joined #ruby
hal_9000 has joined #ruby
devn has joined #ruby
NightMonkey has joined #ruby
Seich has joined #ruby
jalljo has joined #ruby
terrellt has joined #ruby
ZeeNoodleyGamer has joined #ruby
unsymbol has joined #ruby
joast has joined #ruby
Papierkorb has joined #ruby
demophoon has joined #ruby
colstrom has joined #ruby
johnhamelink has joined #ruby
Schmidt has joined #ruby
lotherk has joined #ruby
gsingh93 has joined #ruby
j416 has joined #ruby
mjmac has joined #ruby
duoi has joined #ruby
harryk has joined #ruby
skarn has joined #ruby
wookiehangover has joined #ruby
asi_ has joined #ruby
exceion has joined #ruby
segy has joined #ruby
epochwolf has joined #ruby
Pupeno has joined #ruby
chrisarcand has joined #ruby
rehat has joined #ruby
iooner has joined #ruby
znz_jp has joined #ruby
trampi has joined #ruby
eregon has joined #ruby
larissa has joined #ruby
Liam` has joined #ruby
alem0lars has joined #ruby
hanmac has joined #ruby
cschneid has joined #ruby
skakri has joined #ruby
zenspider has joined #ruby
tubulife| has joined #ruby
verdoc has joined #ruby
blackjid has joined #ruby
Helheim has quit [Max SendQ exceeded]
Zarthus has joined #ruby
<jhass>
bankair: the gist of how it works is that it keeps an array buckets and a linked list in each bucket, the bucket for the item is determined by its .hash modulo the number of available buckets
<jhass>
bankair: so if the .hash changes you need to be extremely lucky for the new hash to end up in the same bucket
jackjackdripper has quit [Quit: Leaving.]
<jhass>
if the candidates (the bucket) is found, the item is selected by comparing it with eql? (iirc) to the key in question
Zai00 has quit [Quit: Zai00]
laurentide has joined #ruby
Torrieri has joined #ruby
<zenspider>
bankair: `ri Object.hash`
Torrieri has joined #ruby
<jhass>
heh, already pointed to the docs before you joined :P
m3ow1504_x_io has quit [Read error: Connection reset by peer]
m3ow1504_x_io has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli_ has joined #ruby
radgeRayden has quit [Ping timeout: 250 seconds]
Voker57 has quit [Read error: Connection reset by peer]
dimasg has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
Torrieri has quit [Ping timeout: 260 seconds]
livathinos is now known as livathinos|away
Averna has joined #ruby
Averna has quit [Read error: Connection reset by peer]
nux443 has joined #ruby
solocshaw has joined #ruby
wald0 has joined #ruby
sevenseacat has quit [Quit: .]
ndrei has joined #ruby
Averna has joined #ruby
livathinos|away is now known as livathinos
ecnalyr has joined #ruby
sarkyniin has joined #ruby
joonty has joined #ruby
riffraff has quit [Quit: Leaving]
nettoweb has joined #ruby
urd7 has quit [Remote host closed the connection]
but3k4 has joined #ruby
ecnalyr has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
dumdedum has quit [Quit: foo]
rushed has quit [Quit: rushed]
<tsunamie>
hellow there, I am a little lost about what the unit test is acatully doing under "include_recipe Method" in the following guide https://docs.chef.io/chefspec.html
<tsunamie>
can someone school me what the unit tests is checking? I don't get why you would need to define both like this?
<jhass>
tsunamie: that seems specific to Chef, try #chef
dhjondoh has quit [Quit: dhjondoh]
codecop has joined #ruby
elepedus has joined #ruby
<zenspider>
I'm not sure I'd call that a unit test... let alone much of a test.
elepedus has quit [Client Quit]
<zenspider>
tsunamie: do you understand rspec in general?
<tsunamie>
zenspider, I wish to learn ow great teacher san
Gribo has joined #ruby
rodfersou has quit [Ping timeout: 272 seconds]
<tsunamie>
zenspider, I am franticly googeling now on unit tests for ruby
revoohc has joined #ruby
rodfersou has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
<zenspider>
substitute the let block contents whereever the let name is used.
<zenspider>
then read the expect line ... it pretty much says exactly what it is doing
bigredboots has quit [Read error: Connection reset by peer]
bigredbo_ has joined #ruby
freerobby has joined #ruby
riotjones has joined #ruby
bigredbo_ has quit [Remote host closed the connection]
acke has quit [Remote host closed the connection]
j_mcnally has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has joined #ruby
Iskarlar has quit [Client Quit]
einarj has quit [Remote host closed the connection]
Rinzlit has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
bigredboots has joined #ruby
DCameronMauch has joined #ruby
mjuszczak has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
Iskarlar_ has joined #ruby
javascriptstuden has joined #ruby
<javascriptstuden>
how can you find out what methods to use
ndrei has joined #ruby
<adaedra>
javascriptstuden: by reading the documentation.
<javascriptstuden>
i have an object but it's javascript
<javascriptstuden>
i have a lot of properties in that object and i wanted to return the number of objects it has but people in ##javascript aren't answering my question
<lagweezle>
What about temporarily stupid people? I'm temporarily stupid on occasion, but it goes away fairly quickly.
jamesaxl|2 has quit [Ping timeout: 246 seconds]
<quazimodo>
as far as i'm aware, celluloid uses 1 os thread per actor on MRI ruby, is that correct?
<[k->
your message will not reach us, so you can hide your stupidity
<adaedra>
lagweezle: that's ok. Not the stupid I was aiming.
<lagweezle>
woo!
<[k->
all we get to see is you solving the problem cleverly
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa>
sevenseacat: oh well
jstudent has left #ruby [#ruby]
<wasamasa>
lagweezle: I'd say that pretty much everyone is temporarily stupid
rooby has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<wasamasa>
lagweezle: which is different from being stupid on purpose and pestering this channel for weeks with the worst trolling ever
<rooby>
if you want to return the number of properties in an object how would you do that?
<havenwood>
!mute rooby
chouhoulis has joined #ruby
mistermocha has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
El3ktra has quit [Ping timeout: 250 seconds]
<[k->
this. is. not. JavaScript.
<havenwood>
!ban rooby !T 1d ban evasion
rooby was kicked from #ruby by ChanServ [Banned: ban evasion]
<lagweezle>
Well THERE is an interesting mental conundrum. I read "!mute rooby" as "not mute rooby," or, "don't mute rooby" due to the logic inversion.
<[k->
treat ! as a command prefix
<havenwood>
lagweezle: !!mute then ;)
mjuszczak has quit []
chouhoulis has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
<quazimodo>
lol
<[k->
no, then the actual command would be !mute
<[k->
and not mute
<[k->
which is wrong
chouhoulis has joined #ruby
j3r0 has joined #ruby
jamesaxl|2 has joined #ruby
<Papierkorb>
havenwood: but !!mute would just be true :(
g0ram has joined #ruby
leat1 has joined #ruby
<g0ram>
i need help
jeadre has quit [Remote host closed the connection]
<g0ram>
i have an object and i would like to return the number of properties it has... how would i do that?
<havenwood>
!ban g0ram !T 1d ban evasion
g0ram was banned on #ruby by ChanServ [g0ram!*@*]
g0ram was kicked from #ruby by ChanServ [Banned: ban evasion]
Spami has quit [Quit: Leaving]
<adaedra>
>_>
<[k->
he should do a Google search
<Papierkorb>
now that's getting tedious. first fail, well ok, but now, really?
<[k->
how about we all ignore him for the rest of the day
<[k->
ignore everything about js
jeadre has joined #ruby
<[k->
don't feed the trolls!
americanhero1924 has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<Kellin>
random question - I was working with YAML for the first time over the last few days, and while I found my answers and got the code working, I was bothered than I couldn't find them in the manuals. stuff like YAML.load_file() is not anywere I could find on http://ruby-doc.org/stdlib-2.0.0/libdoc/yaml/rdoc/YAML.html - can someone point me at how to find those particular docs?
<[k->
yes, until there is someone else who needs help
amsterdame has joined #ruby
<amsterdame>
so you're abusing op privileges
<havenwood>
!kick amsterdame ban evasion
amsterdame was kicked from #ruby by ruboto [ban evasion]
astrobun_ has quit [Remote host closed the connection]
ehth77 has joined #ruby
<adaedra>
[k-: awful.
jeadre has quit [Remote host closed the connection]
mjuszczak has joined #ruby
jamalross has joined #ruby
nux443 has quit [Ping timeout: 244 seconds]
skade has joined #ruby
<Papierkorb>
Kellin: interesting obversation. Well, there's load() and dump() to deserialize and serialize data, there most interesting fact about this though is that this is convention, so e.g. JSON has the same methods for the same purpose, and so on. load_file() is new to me
DCameronMauch has quit [Quit: Leaving...]
<lagweezle>
[k-: I know. It's just "reading" it led to an interesting thought pattern.
<lagweezle>
Huh. 'amsterdame' is an amusing combination of words for a name. Amsterdam, dame. I like.
<lagweezle>
I may be slghtly weird today due to excruciating levels of pain and heavy use of painkillers. Woo.
<jamalross>
why are the ops in this channel rogue and don't follow their own rules and make up their own rules?
leat1 has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
<havenwood>
jamalross: Feel free to discuss the rules in #ruby-community or #ruby-offtopic but not here.
<lagweezle>
op: "I am the law!"
<havenwood>
?offtopic jamalross
<ruboto>
jamalross, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
leat1 has joined #ruby
weemsledeux has quit [Ping timeout: 255 seconds]
Narzew has joined #ruby
<jamalross>
lagweezle: lol tru dat
jamalross was kicked from #ruby by jhass [ban evasion]
[Butch] has joined #ruby
meatherly has joined #ruby
<lagweezle>
I do actually mean it, though. Things not covered by the rules, but 'bad' are where the ops get to use judgement and act to keep the community (and channel) a nice place to be.
<adaedra>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<wasamasa>
lagweezle: see the freenode rules
<wasamasa>
lagweezle: they clearly mention that ban evasion is a reason for a permaban
<lagweezle>
wasamasa: Nice!
<wasamasa>
lagweezle: and that you better discuss things on #freenode
jamesaxl|2 has quit [Ping timeout: 246 seconds]
<wasamasa>
what this person does is facetious
<lagweezle>
Related, would a question about modeling and interactions be better suited for here, or the RoR channel?
<jhass>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra>
lagweezle: depends, I guess
vdamewood has quit [Quit: Life beckons.]
pawnbox has joined #ruby
canttouchthis has joined #ruby
<Kellin>
Papierkorb: not having dug into the internals, does the YAML.load() require slurping the full file into a string object to load it up?
<canttouchthis>
seriously though where on the channel rules does it forbid to evade bans?
<wasamasa>
freenode rules
patrick_star has joined #ruby
<wasamasa>
so, stop
UtkarshRay has joined #ruby
<lagweezle>
freenode rules supercede channel rules, I suspect
<havenwood>
!ban canttouchthis !T 1d ban evasion
canttouchthis was banned on #ruby by ChanServ [canttouchthis!*@*]
canttouchthis was kicked from #ruby by ChanServ [Banned: ban evasion]
mjuszczak has quit []
<wasamasa>
correct
<wasamasa>
you're on this network, you play by its rules
<adaedra>
like the US: You're tied to federal AND state rules.
<havenwood>
Ruby.
<havenwood>
How many days till 2.3.0?
<adaedra>
too many
* Kellin
is amused that this drama happens the first time he has a legit ruby question to ask. heh. My personal curse continues :op
<havenwood>
~118 days
<havenwood>
Frozen literals enabled with a flag!
* havenwood
shivers
petricore has joined #ruby
<havenwood>
I remember back in the good ole days when Strings were mutable.
<dfockler>
first frozen literals, then static typing!
<havenwood>
When Regexps just compiled over and over, we'd walk up hills both ways.
shadeslayer has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
umgrosscol has quit [Remote host closed the connection]
marcoecc has quit [Remote host closed the connection]
jamesaxl|2 has joined #ruby
shadeslayer has joined #ruby
<dfockler>
I think frozen literals will be nice for bigger applications though
dopamean1 has joined #ruby
<jhass>
sounds like crystal :P
<dfockler>
can't just change state willy nilly
nux443 has joined #ruby
aKiKKim has joined #ruby
aKiKKim was kicked from #ruby by ChanServ [Banned: ban evasion]
atomical has joined #ruby
pauly_oc has joined #ruby
marcoecc has joined #ruby
gh has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
gh has quit [Client Quit]
nux443 has quit [Ping timeout: 240 seconds]
jxpx777 has joined #ruby
towski_ has joined #ruby
casadei has joined #ruby
ehth77 has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
marcoecc has quit [Ping timeout: 244 seconds]
lipoqil has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has joined #ruby
dwithers has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
dwithers has joined #ruby
sferik has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lipoqil has quit [Ping timeout: 246 seconds]
EllisTAA has joined #ruby
nux443 has joined #ruby
radgeRayden_ has quit [Ping timeout: 265 seconds]
hanmac has quit [Ping timeout: 244 seconds]
theery has joined #ruby
m3ow1504_x_io has joined #ruby
nanoz has joined #ruby
nux443 has quit [Ping timeout: 244 seconds]
pyon has quit [Quit: Damn you, Emacs. F...ix yourself.]
senayar has quit []
zendrix has joined #ruby
nux443 has joined #ruby
Chau has joined #ruby
m3ow1504_x has quit [Read error: Connection reset by peer]
polpak has joined #ruby
m3ow1504_x has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
pyon has joined #ruby
OrbitalKitten has joined #ruby
i4pcbr has quit [Ping timeout: 245 seconds]
Lucky__ has joined #ruby
OrbitalKitten has quit [Read error: Connection reset by peer]
<quazimodo>
dfockler: i think so, but i'm not that certain
nux443 has quit [Ping timeout: 246 seconds]
<quazimodo>
lot's of people seem to hate on eventmachine (i don't know why, i don't really use it) so the state of concurrency in ru
<quazimodo>
You sonuvabitch!
<quazimodo>
Don't play with my heart strings.
mleung has joined #ruby
<quazimodo>
Space Dandy IS ending, though I doubt a return of CB would be announced like this. Pray for the best. No anime has engaged me like CB since it finished.
<quazimodo>
akh. accidentaly copy paste (linux + trackpad + middle mouse emulation). My bad
nux443 has joined #ruby
towski_ has quit [Remote host closed the connection]
DonOtreply has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
maletor has joined #ruby
devoldmx has joined #ruby
<darix>
quazimodo: dont worry. we wont tell anyone
<dfockler>
quazimodo: some people didn't like eventmachine for a number of reasons, but basically in ruby you've got celluloid or jruby/rubinius for 'real' threading
sferik has joined #ruby
<shevy>
quazimodo I have not used eventmachine but I seem to remember having heard hard to debug bugs or problems
<radens>
In python to get a slice of an array from the second element to the end you do: arr[1:-1]
<centrx>
radens, arr[1..-1]
<shevy>
radens almost same in ruby, you could try 1..-1 or perhaps 1..-2 or 2..-1 :)
rubie has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
fast_scooter has quit [Quit: fast_scooter]
devoldmx has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 264 seconds]
<jhass>
radens: or depending on your situation .drop(1)
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 260 seconds]
AlexAltea has quit [Read error: Connection reset by peer]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<quazimodo>
So i don't actually use these frequenty at all tbh. And it occured to me that forking really isn't so bad if we were to use messaging & actors on light threads. I mean, unix forked processes are pretty cheap and we only need as many processes as we have processors (2-16 right) - that should be somewhat manageable. So the ruby concurrency 'thing' has me all confused
<quazimodo>
so the state of ruby concurrency has me all confuzled
<quazimodo>
I thought celluloid's goal was to handle this, although it looks like each actor gets it's own native (expensive) thread
leafybasil has quit [Remote host closed the connection]
KINGSABRI has joined #ruby
shinnya has joined #ruby
<quazimodo>
And really all I really want is to have some websockets so i can continue to use ruby to model my domain challenges, because tbh I am piss pathetic at modelling problems in JS...
<shevy>
that already sounds rather complicated to me what you have described so far :)
<havenwood>
A couple days left to submit a proposal.
zendrix has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 240 seconds]
<shevy>
quazimodo I wouldn't know the first thing about it being applied to code, anything above Thread.new is outside my area
zendrix has joined #ruby
<quazimodo>
heh
<quazimodo>
so I thought celluloid is pretty awesome
<KINGSABRI>
I need to do multiple acctoins (GETs, POSTs) request after a basci http authentication
<quazimodo>
but i don't know if it's actors are light enough to have a hundred thousand of them lying around waiting for some possbile future IO (think chat webservers)
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<KINGSABRI>
I now how to do a basic auth but the issue how to keep cookies(including session) on hand to do father authintcated actions
bootstrappm has joined #ruby
<KINGSABRI>
Any idea, plz
pen has quit [Remote host closed the connection]
<bootstrappm>
ask again, I just here :)
<bootstrappm>
^ KINGSABRI
<KINGSABRI>
I've to do multiple http actions (GETs and POST) but all of it are after authentication
mleung has quit [Read error: Connection reset by peer]
mleung has joined #ruby
<KINGSABRI>
I need to do basic auth and keep authentication information(cookies) to do the father actions
c0m0 has quit [Ping timeout: 260 seconds]
<KINGSABRI>
I need like a place holder for cookies to reuse it for farther actions
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<jhass>
?context
<ruboto>
Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
voltalio has joined #ruby
mjuszczak has joined #ruby
jhack32 has quit [Quit: jhack32]
<bootstrappm>
KINGSABRI I'd say 1. Do what jhass says and give us your real world problem. 2. Don't confuse cookies with state. You're asking how do you keep state right? (In this case how do you keep a use logged in after auth)
mustmodify has joined #ruby
mustmodify has left #ruby [#ruby]
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
Chau has quit [Quit: Leaving]
Meow-J has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
bigkevmcd has quit [Quit: Outta here...]
ponga has joined #ruby
wldcordeiro has joined #ruby
jxpx777 has quit [Quit: Leaving...]
bronson has joined #ruby
mjuszczak has quit [Ping timeout: 255 seconds]
northfurr has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
AlexAltea has joined #ruby
Stumbler has quit [Ping timeout: 244 seconds]
ivanskie has joined #ruby
northfurr has joined #ruby
<miah>
guh. tea isnt brewed. but i have an egg. i guess thats breakfast.
<darix>
miah: you could have used the water from boiling the egg ;)
<darix>
so
<miah>
boiling egg? wtf.
<miah>
i fried this =)
choke has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
<miah>
my tea will be ready soon i guess.
snockerton has quit [Ping timeout: 265 seconds]
<havenwood>
KINGSABRI: ^ There's some using the HTTP.rb gem to consider. Is that anything like what you're trying to do? Like others mentioned, say more!
<havenwood>
some example code*
snockerton has joined #ruby
rfmind_ has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
rfmind_ has joined #ruby
jamesaxl|2 has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
johnflux has joined #ruby
<quazimodo>
miah: me too, except mine's actually tea
<quazimodo>
and none of that green crap
<quazimodo>
mine's brown, like the well suntanned rump of a coconut beach adonis
Valeness has left #ruby [#ruby]
<johnflux>
Is there any way to use a regex to match: apple,bannana so like: /(apple|bannana)+/ but then how do I specify that they are seperated with a comma?
<lagweezle>
quazimodo: Brown, as in, rooibos, or an herbal, or just some form of black tea that has been properly steeped?
ghr has joined #ruby
tsou has joined #ruby
<quazimodo>
lagweezle: properly steeped, ahmad earl grey
<miah>
my tea is actually chai
<lagweezle>
quazimodo: mmmmm
<quazimodo>
miah: chai means tea.
<miah>
right =)
<quazimodo>
so
<quazimodo>
yeha
<quazimodo>
:)
<shevy>
tea-tea
<lagweezle>
It's all just camellia sinensis anyways... ;)
<quazimodo>
shevy: ya, like naan bread. Mudafuck naan means bread
<shevy>
hehe
jxpx777 has joined #ruby
<miah>
chai has more than camellia though
<lagweezle>
johnflux: Er, so you want <stuff> then literally "apple,bannana" then othe <stuff>, but only want to select the comma-paired fruit names?
<lagweezle>
It is fascinating that green, oolong, and black tea are all the same thing, just different levels of oxidation...
pen has joined #ruby
<Kellin>
Papierkorb: (so back from lunch now) - so what's the danger in slurping in a full YAML file, or is the expectation on that module that because YAML itself should not be trusted from random sources, you will know the size of the file being slurped?
B5X has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
<johnflux>
lagweezle: right, comma-seperated fruit names
<lagweezle>
johnflux: I'm not quite sure what you are asking for, in that ... Well ..
<lagweezle>
johnflux: So you just want to select a pair (?) of words that are comma-joined?
<johnflux>
a list
Gribo has quit [Read error: Connection reset by peer]
B5X has quit [Client Quit]
<johnflux>
so: /(apple|bannana)(,apple|,bannana)+/
banjara has joined #ruby
* lagweezle
ponders.
<johnflux>
like that, but if there's any nicer way of writing it
<johnflux>
so: /(apple|bannana)(,apple|,bannana)*/ rather
<lagweezle>
Are the specific words important, or you just want whatever words there are, with one or more words, where the case of more than one word has commas between them? Or ...
<johnflux>
lagweezle: specific words are important
blackmesa has quit [Ping timeout: 250 seconds]
greenbigfrog has left #ruby [#ruby]
<lagweezle>
Are you after the case where you have a string with 'apple' in it, 'banana' in it, or 'apple,banana' in it, such that any of those three ocurences (sp?) are positive matches, and the specific one of those triggering the match are extracted as the matcher?
<johnflux>
lagweezle: sorry quick side question - how do I include one regex in another?
<suchness>
johnflux: ()
<lagweezle>
johnflux: Are you thinking along the lines of a recursive regex? Not sure that is actually supported. Alternatively, you can just write a more complex regex...
mary5030 has joined #ruby
<johnflux>
like: regex1 = /(apple|bannana)/
timonv has joined #ruby
Iskarlar has joined #ruby
<lagweezle>
So, it's dumb, but /(apple,banana|apple|banana)/ works ...
podman has joined #ruby
* lagweezle
ponders.
<johnflux>
regex2 = /#{regex1}(,#{regex1})*/
ghr has quit [Ping timeout: 246 seconds]
craysiii has joined #ruby
bronson has joined #ruby
m3ow1504_x has quit [Read error: Connection reset by peer]
tsujp has joined #ruby
klaas has joined #ruby
<lagweezle>
johnflux: Is it important that you actually capture the comma, or just wanting to make sure that if you capture more than one word they are paired by being comma seperated?
enebo has quit [Quit: enebo]
m3ow1504_x has joined #ruby
<johnflux>
lagweezle: the latter
enebo has joined #ruby
<johnflux>
I think I've solved it. This works: regex2 = /#{regex1}(,#{regex1})*/
Mendenhall has joined #ruby
<johnflux>
( I mean , I think it works. not checked yet)
<lagweezle>
I don't think that will capture as you want, though.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruboto>
I'm just a bot. You don't need to address me.
zendrix has quit [Remote host closed the connection]
<jhass>
XF: $adminbot is nil (and globals are evil, avoid using them
jackjackdripper has quit [Client Quit]
snockerton1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
<XF>
oh
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Also if you're using Cinch, as it seems to be the case, why write RAW IRC commands? Cinch most certainly has a method to send messages to a channel
<darix>
jhass: wouldnt that give a nice endless loop?
vdamewood has joined #ruby
<jhass>
huh, where's a loop?
<radens>
jhass: okay, what if element is a hash and I want the element which has the :isnamevar key?
<Mon_Ouie>
index accepts a block
<jhass>
^
<darix>
a=%w{ a a b c d d e e f } ; n=a.count('e') ; a.reject! { |e| e == 'e' } ; n.times { a.unshift 'e' } ; a
<radens>
ah cool
mistermocha has joined #ruby
<jhass>
uh, didn't read the requirements as putting all of them at the start, only the first match
<Mon_Ouie>
?example radens
<ruboto>
radens, Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
Guest8326 has quit [Quit: Page closed]
nobitanobi has quit [Remote host closed the connection]
ruby-lang342 has joined #ruby
EllisTAA has joined #ruby
<radens>
jhass: actually just the first one will probably do.
<jhass>
then index with a block should suffice
zendrix has joined #ruby
Logan__ has joined #ruby
skade has joined #ruby
zendrix has quit [Remote host closed the connection]
Logan__ is now known as Guest64617
<radens>
yay, thanks jhass
Bokrug has left #ruby [#ruby]
blackmesa has joined #ruby
monk has joined #ruby
Guest64617 has quit [Client Quit]
monk is now known as Guest27289
nobitanobi has joined #ruby
_Logan_ has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
andikr has quit [Read error: Connection reset by peer]
ruby-lang342 has quit [Ping timeout: 246 seconds]
<_savage>
so if the Gemfile asks for 2.1.3 i need to run bundle using that version of ruby?
mistermocha has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
rubie has joined #ruby
baweaver has joined #ruby
nobitanobi has quit [Ping timeout: 272 seconds]
d5sx43 has joined #ruby
jhack_ has joined #ruby
jhack_ has left #ruby [#ruby]
<jhass>
yes sadly
tsujp has quit [Quit: tsujp is snoozing]
<jhass>
I think patchlevel locks are not really necessary these days
* baweaver
shrugs
iateadonut has quit [Quit: Leaving.]
<jhass>
I tend to just edit those out and run the latest version of the minor
m3ow1504_x has quit [Remote host closed the connection]
Guest27289 has quit [Quit: Leaving]
maletor has quit []
rubie has quit [Remote host closed the connection]
kidoz has quit [Quit: Ухожу я от вас]
<miah>
at work, we make our .ruby-version call '2.x.x'. our systems use rbenv, so we install the newest release of ruby as '2.x.x'. it works.
<baweaver>
1.9.2 -> 1.9.3 was the last one that would have been a real pain.
jhack_ has joined #ruby
<jhass>
miah: it's just working around an rbenv anti-feature IMO
<miah>
ya
jhack has quit [Quit: jhack]
leat1 has quit [Ping timeout: 250 seconds]
<miah>
ive been meaning to switch the systems to chruby, i just havent yet
<jhass>
it's the main reason I do not recommend rbenv actually
jhack_ has left #ruby [#ruby]
d5sx43 has quit [Remote host closed the connection]
<havenwood>
chruby \o/
polpak has quit [Quit: leaving]
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
webopsx has joined #ruby
<jhass>
rvm and chruby are both fine with 2.0, 2.1, 2.2 but no rbenv has to be special
d5sx43 has joined #ruby
enebo has joined #ruby
_savage has quit [Quit: leaving]
leat1 has joined #ruby
codecop has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m3ow1504_x has joined #ruby
lkba has joined #ruby
ghr has joined #ruby
dagda1 has joined #ruby
arup_r has joined #ruby
radgeRayden_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
DLSteve has joined #ruby
PaulCapestany has quit [Quit: .]
denisemccoy has quit [Remote host closed the connection]
tuxero has quit [Quit: tuxero]
pencilcheck has quit [Remote host closed the connection]
ruby-lang284 has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 240 seconds]
_Logan_ has quit [Ping timeout: 246 seconds]
PaulCapestany has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
leat1 has quit [Remote host closed the connection]
sshuff|gone is now known as sshuff
leat1 has joined #ruby
Legitkrillin has quit [Quit: Leaving]
__Logan__ has joined #ruby
christiandsg has joined #ruby
sarkyniin has joined #ruby
toretore has joined #ruby
DEA7TH_ has joined #ruby
DEA7TH_ is now known as DEA7TH
<failshell>
i want to stream the output of commands running on a shell to something viewable with with a browser. i could use sinatra. anything else you can think of?
Lucky__ has quit [Ping timeout: 250 seconds]
<baweaver>
I would put it in a cronjob, aggregate the relevant data in either log files or a database, and go off of there
<baweaver>
question is if you really need a stream or not
PaulCapestany has quit [Quit: .]
<baweaver>
if you do, that involves a lot more work, mainly around something like Kafka or Logstash
<failshell>
i do
<failshell>
we already have that. that's not what i want
<baweaver>
which 'that' are you referring to?
<failshell>
logstash
<baweaver>
what's wrong with it?
christiandsg has quit [Ping timeout: 265 seconds]
PaulCapestany has joined #ruby
<failshell>
not the same use case. i need to have a browser opened and look at the job output
<failshell>
logstash doesnt really fit that case
<baweaver>
Kafka would work.
pietr0 has quit [Quit: pietr0]
<baweaver>
though I would more suggest getting a NodeJS server on there.
ttilley has joined #ruby
ttilley has joined #ruby
HoloIRCUser6 has joined #ruby
<baweaver>
it'd work better to use the websocket features there
quazimodo has joined #ruby
<baweaver>
Rails / Sinatra don't exactly play nicely with streams
<baweaver>
it can be done, no doubt, but you'll have less headaches just using express
<havenwood>
ActionCable to the rescue!
<baweaver>
Rails 5
allcentury has quit [Ping timeout: 250 seconds]
[k- has quit [Ping timeout: 264 seconds]
<baweaver>
admittedly I don't have much confidence in that after ActionController Live
<baweaver>
but to each their own
<wasamasa>
ActionAction
<lagweezle>
Hmmm.
<lagweezle>
'oauth' the gem had it's last releast Sept 4, 2012 ... this makes me wary.
<lagweezle>
Is there a different OAuth v1 gem I should be using?
<dfockler>
Doesn't OAuth v2 exist?
<havenwood>
failshell: Considered event-stream?
<lagweezle>
dfockler: Yes, but I don't *think* that JIRA is using it...
<dfockler>
ah
<lagweezle>
I *kind of* understand OAuth, and I'm pretty sure they are completely incompatible.
<jhass>
dfockler: doesn't make oauthv1 useless. Let's keep in mind the oauth1 author had his name removed from the oauth2 rfc
<dfockler>
whoa!
<dfockler>
didn't know about that drama
<havenwood>
failshell: ^ one example, looking for better
<lagweezle>
Basically, I understand it enough to use it, but not in a way that I would yet trust it for a "secure" system. I'm working with relatively low-risk data.
<lagweezle>
dfockler: Yah! It's ... kind of terrifying.
<failshell>
havenwood: thanks looking at it now
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lagweezle>
(that he went so far as to say he doesn't want his name on the OAuth2 RFC)
ghr has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
<lagweezle>
dfockler: I'm using it. It doesn't handle the OAuth handshaking and token/secret exchanges, it only, optionally, uses the access token, once acquired, as a means of authentication.
<dfockler>
ah sorry for being so uninformed :P
allcentury has joined #ruby
<lagweezle>
dfockler: Heh. I greatly appreciate the effort! I'm re-writing our chat bot using a very different approach (REST service with webhook triggers) vs XMPP live connection. While doing so, I'm trying to be smart... Trying.
<dfockler>
at least you are trying
<baweaver>
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”
Pumukel has joined #ruby
<baweaver>
- Brian Kernighan
<lagweezle>
Oooooh ... 'oauth' is a CORE library ...
<wasamasa>
don't kill it
septor has joined #ruby
<wasamasa>
or ruby is doomed
<lagweezle>
That may explain why rubygems.org doesn't list a homepage, and has a really old last update time.
<septor>
?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?
<lagweezle>
wasamasa: wha'?
<jhass>
!mute septor
<baweaver>
!mute septor
<jhass>
oh well
<wasamasa>
lagweezle: you called it a CORE library
<baweaver>
there it goes
northfurr has quit [Ping timeout: 250 seconds]
<lagweezle>
wasamasa: I suspect I'm missing something ...
* wasamasa
stabs lagweezle into the core
<craysiii>
im glad you just mute people and dont outright ban them.
kirun has joined #ruby
* lagweezle
feels very dense right now. :3
voltalio has joined #ruby
<jhass>
craysiii: makes you sound like one of them
<jhass>
but ?ot
ghr has quit [Ping timeout: 264 seconds]
<jhack>
b
<baweaver>
hehe
<baweaver>
?ot craysiii
<ruboto>
craysiii, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
EllisTAA_ has joined #ruby
<jhack>
does colloquy automatically have sasl activateD?
HoloIRCUser6 has quit [Remote host closed the connection]
EllisTAA has quit [Ping timeout: 240 seconds]
EllisTAA_ is now known as EllisTAA
<baweaver>
Most of the time you have to enable it on any client
yqt has joined #ruby
<jhack>
ook
<baweaver>
all else fails, look into the docs.
jhack has left #ruby [#ruby]
BlueShoesYes has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
Limix has joined #ruby
ReK2 has quit [Remote host closed the connection]
EllisTAA has quit [Client Quit]
Musashi007 has joined #ruby
BlueShoesYes has quit [Remote host closed the connection]
JoshL has quit []
zenguy_pc has quit [Read error: Connection reset by peer]
fast_scooter has quit [Quit: fast_scooter]
zenguy_pc has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
Limix has quit [Client Quit]
zenguy_pc has quit [Read error: Connection reset by peer]
roxtrong_ has joined #ruby
zenguy_pc has joined #ruby
TheWhiteOx has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<apeiros>
yeah. sadly stdlib sometimes deviates from conventions.
<apeiros>
optparse being another example.
<apeiros>
and it'd be *so easy* to deprecate.
nanoz has quit [Quit: <3]
<baweaver>
I rarely use them so I always forget :P
<baweaver>
BlueShoesYes: but briefly, yes, they're different
dionysus69 has joined #ruby
bigredboots has quit []
pyon has quit [Read error: Connection reset by peer]
<BlueShoesYes>
gotcha, I was just making sure there was some form of similarity because it sounded a lot like a c++ struct to me when it was being explained. So to be clear, use hashes until i understand more reasons to use a struct.
<jhass>
OpenStruct != Struct
<jhass>
quite distinct things in fact
pyon has joined #ruby
<jhass>
but yeah, stick to hashes for now
sarkyniin has quit [Quit: Quit]
sshuff is now known as sshuff|gone
<Mon_Ouie>
And you'd probably use a regular class more often, so you can define methods other than readers/writers to manipulate your data
<baweaver>
^
<jhass>
well, Struct.new does take a block which you can define methods in
sargas has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
pyon has quit [Remote host closed the connection]
<BlueShoesYes>
that makes sense. My inquiry springs from me going through RailsForZombies.
denisemccoy has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
Right, I mean as opposed to hashes
lipoqil has joined #ruby
pyon has joined #ruby
Dzejmskrokan has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
jxpx777 has quit [Quit: Leaving...]
umgrosscol has quit [Remote host closed the connection]
jeadre has quit [Remote host closed the connection]
sdwrage_ has quit [Ping timeout: 265 seconds]
jeadre has joined #ruby
m3ow1504_x has quit [Read error: No route to host]
m3ow1504_x has joined #ruby
xet7_ has joined #ruby
vdamewood has quit [Quit: Life beckons.]
pen has quit [Remote host closed the connection]
xet7_ has left #ruby [#ruby]
TheWhiteOx has joined #ruby
jgt has joined #ruby
xet7bot has joined #ruby
emdub has left #ruby [#ruby]
Lucky__ has joined #ruby
anisha has quit [Quit: Leaving]
silkfox has joined #ruby
chrissonar has joined #ruby
chrissonar has quit [Client Quit]
<BlueShoesYes_>
Anyone have an opinion on LearnRubyTheHardWay? I'm not terribly far into it but it seems helpful so far.
freerobby has quit [Quit: Leaving.]
bronson has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<craysiii>
it has high praises here.
denisemccoy has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
ruby-lang344 has joined #ruby
chrissonar has joined #ruby
mary5030 has joined #ruby
chrissonar has quit [Client Quit]
<baweaver>
It's decent
<baweaver>
though really depends on your skill level honestly.
silkfox has quit [Ping timeout: 244 seconds]
roxtrong_ has quit [Read error: Connection reset by peer]
roxtrong_ has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
<baweaver>
For people who want to know the ruby way of things, Eloquent Ruby tends to win.
<baweaver>
Well Grounded Rubyist tends to be a good intro
<baweaver>
The Ruby Way is a broad overview of everything.
<BlueShoesYes_>
Skill level noob imo. Ive made some very basic apps (calculator, string manipulation kinda stuff) and i have some very mild experience in c/c++
<baweaver>
WGR and Practical Object Oriented Design in Ruby
<baweaver>
LRtHW is decent
jxpx777 has quit [Quit: Leaving...]
DEA7TH has quit [Quit: DEA7TH]
tlolczyk has quit [Quit: Leaving]
ruby-lang344 has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
bluish has joined #ruby
<pipework>
BlueShoesYes_: I'm a fan of picking up metaprogramming ruby first, reading the first half which teaches the object model ruby uses, then going for the black book, The Well-Grounded Rubyist. After that, there's a lot of fun stuff.
pen has joined #ruby
ckinniburgh has quit [Quit: Leaving]
Novice201y has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
<Novice201y>
Hello. Is there cloud IDE for RailsCast color syntax?
mrtomme has joined #ruby
<BlueShoesYes_>
pipework: woah. Book hopping huh? Is there a reason you do not like/use LRtHW
dagda1 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
<pipework>
BlueShoesYes_: I just don't jive well with zed's voice as an author.
<pipework>
He's perfectly fine and chummy though, if not a bit confrontational, if you don't mind that.
<pipework>
Though I'm not, nor have I ever been, his intended audience.
rubie has quit [Remote host closed the connection]
dagda1 has joined #ruby
xelkarin has joined #ruby
<baweaver>
It's decent, I just think other books are better honestly.
<pipework>
BlueShoesYes_: The latter half of metaprogramming ruby is fun and exciting, but it's not really all that beneficial to someone learning ruby.
<BlueShoesYes_>
pipework: gotcha. So far I like the whole: "Actually type and run this" approach. Which I guess you could implement in any other kind of book.
<pipework>
BlueShoesYes_: Most books come with "You'll learn better by typing this out" these days, at least from online publishers.
<BlueShoesYes_>
baweaver: fair enough, I'm gunna make a list of the books you and others have recommended and look em up once I'm home from work
<baweaver>
Just be dead sure to not try and make everything into metaprogramming
sargas has quit [Quit: This computer has gone to sleep]
<pipework>
Everything is already metaprogramming, you'll get there yourself too!
<baweaver>
9/10 times you won't need it and it'll make a huge mess. That 1/10 time though makes it worth it.
<BlueShoesYes_>
pipework: what does that mean?
<pipework>
BlueShoesYes_: You'll get it when you get there.
* baweaver
just doesn't like cleaning up after metaprogramming messes
Soda has quit [Remote host closed the connection]
<pipework>
Turtles, delegation, that kind of thing.
m3ow1504_x has quit [Read error: Connection reset by peer]
victortyau has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m3ow1504_x has joined #ruby
christiandsg has joined #ruby
victortyau has joined #ruby
yeticry has joined #ruby
RossBuchenwald has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
<jhass>
!ban RossBuchenwald !T 1d bad nick
RossBuchenwald was banned on #ruby by ChanServ [RossBuchenwald!*@*]
RossBuchenwald was kicked from #ruby by ChanServ [Banned: bad nick]
arooni-mobile has quit [Ping timeout: 246 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
<atmosx>
hello
<atmosx>
lots of kb lately on ruby
bluish has quit [Quit: WeeChat 1.2]
christiandsg has quit [Ping timeout: 265 seconds]
arup_r has quit [Quit: Leaving]
<pipework>
jhass: How is RossBuchenwald a bad nick?
<baweaver>
?ot pipework
<ruboto>
pipework, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
vickleton has joined #ruby
<jhass>
pipework: background is in #ruby-offtopic and try wikipedia
<pipework>
Ah cause all I was seeing was memorials to someone else of another name.
Torrieri has joined #ruby
Torrieri has joined #ruby
djcp has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: leaving]
<pipework>
I would suggest to consider the common pattern of using #ruby-ops for other things of that nature. I'd gladly join there to ask, but would rather not expose myself to the offtopic channel.
DEA7TH has joined #ruby
ldnunes has quit [Quit: Leaving]
sdwrage__ has quit [Read error: Connection reset by peer]
<pipework>
s/another/the same/
northfurr has quit [Quit: northfurr]
<jhass>
pipework: if you want to discuss bans please join #ruby-banned (I believe we mention that in the rules)
rbennace_ has joined #ruby
<pipework>
jhass: I'm good. I was just suggesting to follow the norm, though I don't have any doubt that I will be heard in earnest about it.
arooni-mobile has joined #ruby
<atmosx>
jhass: is that the real name of DPR from SR?
fmcgeough has quit [Quit: fmcgeough]
* atmosx
being curious
<jhass>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<shevy>
god
rodfersou has quit [Ping timeout: 250 seconds]
<shevy>
this usage of ?ot is so childish
<atmosx>
god or good?
<pipework>
shevy: There are new leaders in charge miaow. Best to conform.
opensource_ninja has quit [Quit: opensource_ninja]
<pipework>
shevy: Can I query you, sir?
TheWhiteOx has joined #ruby
sdwrage__ has joined #ruby
<shevy>
I don't know! I have to click on the tab ... :(
D9 has quit [Quit: Leaving]
rbennacer has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Quit: DEA7TH]
DylanJ has joined #ruby
rbennace_ has quit [Ping timeout: 240 seconds]
<atmosx>
xcha on linux
<atmosx>
should work with some shortcut shevey, ctrl + 1,2,3
phillip has left #ruby ["Leaving"]
<shevy>
what about 11 tabs :)
<shevy>
though that reminds me, I should use an IRC client in ruby
<pipework>
shevy: Weechat has ruby stuff.
Mia has quit [Quit: Leaving]
<shevy>
yeah but for some reason, and I am not sure, I often mispaste in irssi and weechat like clients
AkashicLegend has joined #ruby
<AkashicLegend>
which is easier for web development
<AkashicLegend>
ruby on rails or django. I already know some python but 0 ruby
<jhass>
?rails AkashicLegend
<ruboto>
AkashicLegend, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<shevy>
you probably have to invest some time to pick up ruby first, so django may be easier
baweaver has quit [Remote host closed the connection]
<shevy>
you could possibly try padrino + sinatra
<AkashicLegend>
yeah but I'm a lazy guy. I don't want to spend hours trying to do something simple.
<pipework>
AkashicLegend: Ease is a hard thing to quantify.
<AkashicLegend>
django looks like a lot of configuration
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
indeed
<shevy>
I don't know if any of these frameworks are simple really
cornerma1 has joined #ruby
JoshGlzBrk has joined #ruby
<shevy>
back in the old .cgi era we didn't even know what a database was!
TheWhiteOx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jxpx777 has joined #ruby
<shevy>
Anyone knows of any gems that does a lot of introspection? We have the ruby Method#source_location... we also have pry + method_source ... I wonder if there is any other project worth to look into in this regards
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
nettoweb has quit [Max SendQ exceeded]
Mon_Ouie has quit [Ping timeout: 245 seconds]
nzst has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
workmad3 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
wldcordeiro has quit [Read error: Connection reset by peer]
northfurr has joined #ruby
k3asd` has joined #ruby
devoldmx has joined #ruby
v4n has joined #ruby
PaulCapestany has quit [Quit: .]
Azure|dc has quit [Quit: Oops.]
sdwrage__ has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 250 seconds]
Azure has joined #ruby
JoshL has joined #ruby
PaulCapestany has joined #ruby
denisemccoy has quit []
devoldmx has quit [Ping timeout: 245 seconds]
Dzejmskrokan has quit []
The_Phoenix has quit [Quit: Leaving.]
Musashi007 has quit [Quit: Musashi007]
devdazed has quit [Quit: Computer has gone to sleep.]
theery has quit [Remote host closed the connection]
rehat_ has joined #ruby
siaw has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
<siaw>
so #sort and #sort_by are essentially the same thing?
<pipework>
no
NeverDie has joined #ruby
<eam>
siaw: sort {|a,b| a <=> b}
<siaw>
if no, then it means the #sort in [1, "5", 2, "7", "3"].map(&:to_i).sort is only sorting just the integers
<siaw>
i get it
<siaw>
:)
robbyoconnor has joined #ruby
<siaw>
<eam>
siaw: with sort, you have full control over the sort function - sort_by is just a way to do a simple universal translation
dagda1_ has joined #ruby
moss has quit [Read error: Connection reset by peer]
theery has joined #ruby
theery has quit [Remote host closed the connection]
baweaver has joined #ruby
codecop has quit [Quit: Išeinu]
pauly_oc has quit [Ping timeout: 255 seconds]
sdwrage__ has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
victortyau has quit [Quit: Leaving]
dfockler has joined #ruby
BlueShoesYes_ has quit [Ping timeout: 246 seconds]
decoponio has quit [Read error: Connection reset by peer]
gamename has quit [Remote host closed the connection]
decoponio has joined #ruby
gamename has joined #ruby
BlueShoesYes has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
<siaw>
ok so i’m learning about the #sort method in ruby. here i have a class. without creating the #<=> method i get an error, after creating it the error is gone and the #sort works. but i didn’t create any def sort; blah blah; end methods. how’s that? https://gist.github.com/siaw23/be613c1048d15393707d
gamename has quit [Ping timeout: 244 seconds]
stef204 has joined #ruby
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
siaw, #sort is on Array, and uses the #<=> method of the elements of the array
<siaw>
centrx: thanks. so if sort is on the array, which couldn’t it sort the items in the array that i put?
<siaw>
why did i have to define #<=>?
<centrx>
Because it is a class you created, you have to define the method for it, specifying in this case which attribute to compare on for the class
jackjackdripper has joined #ruby
<centrx>
The class might have had more than one instance variable, for instance
<centrx>
Or you may have wanted to define <=> differently
<siaw>
centrx: makes sense. thank you :)
WhereIsMySpoon_ has left #ruby [#ruby]
<apeiros>
siaw: while sort is on the Array, <=> has to be on the items in the array. you don't compare the array after all to sort it. you compare the contained items.
<siaw>
apeiros:
kirun has quit [Quit: Client exiting]
Yzguy has joined #ruby
v4n has quit []
Billias has quit [Read error: Connection reset by peer]
linuxboy_ has joined #ruby
sumah has joined #ruby
sarkyniin has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
Yzguy has quit [Client Quit]
RobertBirnie has joined #ruby
dhollinger has quit [Remote host closed the connection]
linuxboytoo has quit [Ping timeout: 265 seconds]
<monsieurp>
coming from Perl, I would expect this code to count from 1 to 23: http://ideone.com/afrvxe
<jhass>
yes, idiomatic ruby. Use .each_with_index(1) do |line, i|
<monsieurp>
I read English.rb and it clearly says: alias $INPUT_LINE_NUMBER $.
foxprob has joined #ruby
<monsieurp>
right
andrewcarter has quit [Quit: Connection closed for inactivity]
<monsieurp>
so this variable is complete bollocks then?
DLSteve has joined #ruby
<jhass>
well, no. File.readlines reads the file fully, so by the time you hit .each it's 23
<jhass>
You "want" File.foreach
Kallis has joined #ruby
<monsieurp>
lemme see
Kallis has quit [Max SendQ exceeded]
<monsieurp>
better
robbyoconnor has quit [Quit: Konversation terminated!]
<monsieurp>
thanks
AkashicLegend has left #ruby [#ruby]
xelkarin has quit [Quit: WeeChat 1.1.1]
<foxprob>
Is it possible to remove hex escaped bytes from a string? For example: "\x00\xc1ISO002" or "\x01eISO002"; in both cases I would like to keep only "ISO002".
<jhass>
foxprob: passing them to String#delete should work fine
doublemalt_ has joined #ruby
Musashi007 has quit [Read error: No route to host]
<foxprob>
jhass: the problem is that I don't know them
<jhass>
what do you know about the string?
Musashi007 has joined #ruby
mjuszczak has joined #ruby
<foxprob>
jhass: that it might have one or two hex escaped bytes in the beginning (but I don't know what comes after)
<jhass>
note that in one of your examples the e is a plain e
<jhass>
those look like ANSI escape codes
solocshaw has quit [Ping timeout: 240 seconds]
<jhass>
which would make it possible to list them
<foxprob>
but it isn't
workmad3 has quit [Ping timeout: 245 seconds]
SCHAAP137 has quit [Quit: Leaving]
DoubleMalt has quit [Ping timeout: 250 seconds]
<jhass>
can you define what bytes (characters) are valid for the "after" part?
Rinzlit has joined #ruby
<apeiros>
foxprob: "\x01" is a single character. do you mean you want to delete all control characters?
<foxprob>
jhass: on those examples, the after part would be ISO
<apeiros>
those are usually shown as an escape sequence
<jhass>
foxprob: yes, with your examples you could just write a literal "ISO002" into your code
axyz` has joined #ruby
Narzew has quit [Ping timeout: 264 seconds]
<jhass>
they're insufficient to form a general rule from, hence I'm asking
<apeiros>
though, a better question would probably be: why are there control characters in your string in the first place?
jenrzzz has joined #ruby
<foxprob>
jhass: interesting, thank you for pointing that
<shevy>
control characters are used to control strings!
arooni-mobile has quit [Ping timeout: 244 seconds]
renanoronfle has quit [Remote host closed the connection]
<shevy>
"move to the left ... shuffle to the right ... dance to the jiggly tune!"
<jhass>
is there one for "make shevy use UTF-8"?
<shevy>
hmm
<shevy>
probably when I really need it
AlexAltea has quit [Ping timeout: 244 seconds]
<shevy>
the snowman is one pro
<jhass>
also all the cookies you missed out
<shevy>
wait
<shevy>
they were given to ruboto not me...
<jhass>
no, ruboto's handing them out
<jhass>
?cookie shevy
<ruboto>
shevy, here's your cookie:
<shevy>
hmmm
<shevy>
oh damn
jackjackdripper has quit [Quit: Leaving.]
whippythellama has quit [Quit: WeeChat 1.3]
foxprob has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cheerio]
lipoqil has quit [Remote host closed the connection]
cschneid_ has joined #ruby
lipoqil has joined #ruby
<dfockler>
How do I mock a chained callback in minitest?
<pipework>
don't!
<dfockler>
Testing against databases :(
<shevy>
oh oh oh a minitest question, now if zenspider is awake you'd have someone who would have a lot of domain knowledge there
<pipework>
shevy: He actually responded to someone in #minitest earlier saying the same thing.
DonOtreply has quit [Quit: DonOtreply]
lipoqil_ has joined #ruby
lipoqil has quit [Ping timeout: 244 seconds]
DonOtreply has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DonOtreply has quit [Client Quit]
casadei has quit [Remote host closed the connection]
<dfockler>
well it'll have to wait until next week! thanks anyways :P
* apeiros
sobs
<apeiros>
WHY did I make so many remotes again?
dfockler has quit []
<apeiros>
(git)
<jhass>
dunno, for me I have hub to blame for creating them
northfurr has quit [Quit: northfurr]
<apeiros>
ah well, this is an old setup where I have a repo (and thus remote) for each env instead of a shared repo for all envs :-/
willharrison has joined #ruby
Porfa has joined #ruby
<apeiros>
I should change the setup to my newer one
<apeiros>
and additionally an "origin" repo
baweaver has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
atomical has joined #ruby
christiandsg has joined #ruby
Alayde has quit [Ping timeout: 264 seconds]
lipoqil_ has left #ruby [#ruby]
jtdoncas has quit [Ping timeout: 245 seconds]
k3asd` has quit [Ping timeout: 244 seconds]
lipoqil has joined #ruby
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
mistermocha has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
christiandsg has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
KensoDev has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 1.3]
juanpablo_ has quit [Ping timeout: 256 seconds]
dopie has quit [Quit: This computer has gone to sleep]
grenierm has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
northfurr has joined #ruby
baweaver has joined #ruby
vickleton has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
Voker57 has quit [Read error: Connection reset by peer]
m3ow1504_x has quit [Read error: Connection reset by peer]
jxpx777 has quit [Ping timeout: 246 seconds]
m3ow1504_x has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
<darix>
apeiros: past apeiros was thinking "how can i ruin future apeiros evening" :p
anon__ has quit [Ping timeout: 250 seconds]
s00pcan has quit [Ping timeout: 260 seconds]
felltir has joined #ruby
Musashi007 has joined #ruby
Porfa has quit [Quit: Porfa]
joneshf-laptop has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
<shevy>
via beer
freerobby has quit [Quit: Leaving.]
<shevy>
does anyone here happen to use a statically compiled ruby?
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
ddrmanxbxfr has joined #ruby
<shevy>
supposedly via --disable-shared --with-static-linked-ext
<shevy>
I got stuck at this, strange as it is...
<shevy>
Generating RDoc documentation ruby-2.2.3/.ext/x86_64-linux/enc/encdb.so: [BUG] Segmentation fault at 0x00000000000000
Vile` has quit [Ping timeout: 245 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
Vile` has joined #ruby
_djbkd has quit [Remote host closed the connection]
<Ox0dea>
TIL RDoc can dereference null pointers.
<shevy>
hmm
<shevy>
I will retry via --disable-install-rdoc --disable-install-doc
anon__ has joined #ruby
<Ox0dea>
But then how will you know how to use this crazy language?
sdwrage__ has quit [Quit: This computer has gone to sleep]
<felltir>
TIL that =~ is defined on Object
<Ox0dea>
Utter madness.
<shevy>
I need a working ruby not a working docu
<ddrmanxbxfr>
wow i've been having pains on arm build today :(
Limix has quit [Quit: Limix]
<ddrmanxbxfr>
i've had some ruby app that works when I start it manually
<ddrmanxbxfr>
but if I do STDOUT or STDERR redirection the app hangs :(
<ddrmanxbxfr>
and stays at 100 % forever
<apeiros>
hm, what's a common english format to write dayname + day of month + month?
<apeiros>
saturday, 29th of aug.?
<apeiros>
or saturday, 29/8?
<baweaver>
Sat Aug 29th
<apeiros>
ok, thanks
<baweaver>
English \o/
<ddrmanxbxfr>
Was there anything related to STDOUT or STDERR hanging in ruby 2.1 ? I'll try compiling 2.2.3 (and in a few horus test it out, ARM is so slow :( ).
<bradland>
apeiros: when localizing for english, you'll have to specify US english, or everybody else :)
bb010g has quit [Quit: Connection closed for inactivity]
<bradland>
Sat Aug 29th is unambiguous enough though
<apeiros>
bradland: swiss english, of course!
<baweaver>
bradland: there is no other english
<baweaver>
bradland: only zuul
<bradland>
the US is strange. we frequently put month before day
<Ox0dea>
Frequently?
<apeiros>
not sure whether AE or BE is more widespread in europe
<baweaver>
let's not get into our measurements
<Ox0dea>
baweaver: How many furlongs to a hogshead?
michael_mbp has joined #ruby
<baweaver>
~15,000 or 40 rods
[k- has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
nzst has joined #ruby
j_mcnall_ has joined #ruby
<apeiros>
don't ask people who've got units installed :D
luksaur has quit [Quit: youth]
<ddrmanxbxfr>
it's so weird that : ruby myapp.rb works on my system but ruby myapp.rb > log_file 2>&1 makes it crash :(
j_mcnally has quit [Ping timeout: 244 seconds]
<centrx>
weird
<jhass>
any isatty? checks in the code?
<ddrmanxbxfr>
plain and simple puts and sleep loop
<ddrmanxbxfr>
that's it
<ddrmanxbxfr>
and a ruby shebang at the top
<ddrmanxbxfr>
runtime is ARMv7 Processor rev 5 (v7l) though not x86
Mendenhall has joined #ruby
jgt has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nzst has quit [Ping timeout: 256 seconds]
I has joined #ruby
I is now known as Guest35913
dorei has quit []
siaw has quit [Quit: siaw]
Limix has joined #ruby
rehat_ has quit [Remote host closed the connection]
<apeiros>
oh, did I complain before about too many repos? turns out I actually even moved that website to a new VM already, using the newer setup with a single repo. and did not yet remove the old one >.<
mjuszczak has quit []
_djbkd has joined #ruby
EricTheAwful has joined #ruby
nerdoncall has joined #ruby
iHatesJews has joined #ruby
EricTheAwful has quit [Client Quit]
dseitz has joined #ruby
baweaver has quit [Remote host closed the connection]
iHatesJews has left #ruby [#ruby]
j3r0 has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 244 seconds]
northfurr has quit [Ping timeout: 250 seconds]
linuxboy_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
m3ow1504_x has quit [Read error: Connection reset by peer]
linuxboytoo has joined #ruby
Guest35913 has quit [Quit: Leaving]
northfurr has joined #ruby
m3ow1504_x has joined #ruby
dopie has joined #ruby
pietr0 has quit [Quit: pietr0]
havenwood has joined #ruby
dopamean_ has joined #ruby
[k- has quit [Quit: -a- IRC for Android 2.1.23]
devoldmx has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
linuxboytoo has quit [Ping timeout: 245 seconds]
northfurr has quit [Read error: Connection reset by peer]
sdwrage__ has joined #ruby
lipoqil_ has joined #ruby
kies has quit [Ping timeout: 246 seconds]
felltir has quit []
jamesaxl|2 has quit [Remote host closed the connection]