apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
InhalingPixels has joined #ruby
<wallerdev> we have a qa team
<wallerdev> they test for us
<zenspider> ugh
axsuul has quit [Ping timeout: 240 seconds]
<wallerdev> and also an automation team who write automated tests for us
<zenspider> what sort of product?
<wallerdev> website
chrishough has joined #ruby
jdj_dk has joined #ruby
hooper has quit [Quit: Leaving.]
Wolland has joined #ruby
Deele has quit [Ping timeout: 245 seconds]
easier has quit [Write error: Connection reset by peer]
<wallerdev> social haha
error_mess has quit [Remote host closed the connection]
seanmarcia has quit [Excess Flood]
seanmarcia has joined #ruby
andrewjanssen has joined #ruby
<miah> wait.. so the dev team doesnt write tests? only automation team?
Deele has joined #ruby
andrewjanssen has quit [Client Quit]
<wallerdev> pretty much yeah
<waxjar> zenspider, idk. i mostly write simple stuff, don't work with big models or anything. they pretty much run instantly
chihhsin has quit [Ping timeout: 244 seconds]
bhaak has quit [Ping timeout: 244 seconds]
headius has quit [Ping timeout: 244 seconds]
ght has quit [Ping timeout: 244 seconds]
<wallerdev> we're thinking about starting though! :)
andrewjanssen has joined #ruby
Butthurthead_ has quit [Quit: Leaving]
bhaak has joined #ruby
ght has joined #ruby
<miah> tests are cool
chihhsin has joined #ruby
xcv has joined #ruby
<miah> they help give you confidence in your work
headius has joined #ruby
Takle_ has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
zkay11 has joined #ruby
cashnguns has joined #ruby
ddv has joined #ruby
Grantlyk has joined #ruby
<wallerdev> well we have i guess integration tests from the automation team
<wallerdev> that click around on the site and make sure things work
<wallerdev> not so much unit tests
jmbrown412 has quit [Remote host closed the connection]
pkrnj has joined #ruby
TC` has quit [Quit: Leaving]
sdouglas has joined #ruby
jmbrown412 has joined #ruby
earthquake has joined #ruby
<zenspider> miah: hey
thams has joined #ruby
maletor_ has joined #ruby
<miah> zenspider: hello
<zenspider> what's your average test time?
<miah> quick
<miah> Finished in 0.016240s, 2647.7833 runs/s, 3325.1232 assertions/s.
<wallerdev> wow
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<miah> fwiw; 43 runs, 54 assertions, 0 failures, 0 errors, 1 skips
<miah> a very small chef library im working on
<wallerdev> oh i thought you had 2600 tests lol
mary5030 has quit [Remote host closed the connection]
<miah> not quite =)
tylersmith has quit [Remote host closed the connection]
Lightsword_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
lagweezl1 has quit [Changing host]
lagweezl1 has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
lagweezl1 is now known as lagweezle
jmbrown412 has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
SilkFox_ has joined #ruby
bradleyprice has joined #ruby
cpruitt has quit [Quit: cpruitt]
<miah> im still too much of a newb to have a project with that many tests; but im sure i'll get ther e=)
sepp2k1 has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
zB0hs has joined #ruby
sepp2k has quit [Ping timeout: 272 seconds]
bradleyprice has quit [Ping timeout: 245 seconds]
alexju_ has quit [Remote host closed the connection]
Azure has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
Grantlyk has quit [Remote host closed the connection]
InhalingPixels has quit [Remote host closed the connection]
gkagan has joined #ruby
agent_white has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
compulsive has joined #ruby
narcan has joined #ruby
musl has joined #ruby
<compulsive> hello
<miah> hi
lw has joined #ruby
<C4rlosCardona> hey
zz_jrhorn424 is now known as jrhorn424
<compulsive> so I'm looking into learning a programming language and a lot of people tell me ruby never took off , it's dead. python is the new basic etc
<compulsive> is ruby in bad shape?
jdj_dk has quit [Ping timeout: 272 seconds]
<miah> lol no
<zenspider> yup
postmodern has quit [Ping timeout: 264 seconds]
<compulsive> lol
sdouglas has quit [Quit: Leaving...]
<androidbruce> do you have any fundamentals in programming in general compulsive ?
<compulsive> nope
<compulsive> I'm a complete idiot
<zenspider> miah: I'm assuming you're the same miah as on twitter that periodically tweets about minitest, no?
<miah> yes
<miah> thats me; we met briefly once as well =)
<compulsive> celebrity
philcrissman has joined #ruby
<zenspider> oh? where?
pr00t has joined #ruby
<miah> at one of the seattle ruby meetups; i was there with erikh
<C4rlosCardona> compulsive: no. ruby is in great shape. the community is extremely vibrant. The frameworks are great as well. Ruby is def my fav language.
<zenspider> compulsive: you might want to start with chris pine's "how to program"
<androidbruce> compulsive, C isone of the foundations
<miah> probably 2 years agoish
<compulsive> Chris pine Captain Kirk :-)
<zenspider> I barely remember last week :)
<miah> i remember too much
<compulsive> androidbruce it is ?
gkagan has quit [Ping timeout: 246 seconds]
<miah> anyways; ya i tweet about minitest and chef and awful things
<zenspider> haha
<miah> compulsive: lots of configuration management tools are written in ruby
<zenspider> glad that's an inclusive set :P
<compulsive> I have no idea what minirest is
Azure has quit [Quit: Blue Sky Fish]
ghr has joined #ruby
<miah> i dont consider minitest to be awful; its useful and hasn't been super confusing
agent_white has joined #ruby
<compulsive> miah seriously though I have seen so many people on irc rave about python and c. #
agent_white has quit [Read error: Connection reset by peer]
<miah> just getting into ruby i felt rspec was learning a new religion
<compulsive> they say ruby is dying lol
thams has quit [Quit: thams]
<miah> compulsive: people like to rave about their favorite thing because people
<androidbruce> ruby isn't dying
<miah> its a easy way to inflate your ego if you say that you're working in the most awesome thing and everyhthing else sucks
<androidbruce> some say perl is dead. i lol
<compulsive> lol
<miah> perl will sadly never die
<compulsive> perls not all that popular?
devdazed has quit [Remote host closed the connection]
<androidbruce> it
<androidbruce> is very popular
<compulsive> I was told it is a bitch to learn
<miah> basically; every computer language is popular around a specific set of problems
<miah> not that every language can only be used to solve a subset of problems
crdprink2 has quit [Quit: q term]
<mnemon> compulsive: it's easy to learn, but you can write very arcane code with it.
<zenspider> compulsive: the plural of anecdote is not data. IRC is a biased sample
crdprink2 has joined #ruby
<miah> but that sometimes they are better at solving certain problems; or that its easy to write certain types of abstractions with it
philcrissman has quit [Ping timeout: 245 seconds]
<miah> @work we write python, ruby, scala, clojure..
<miah> im sure i'm missing one,.. anyways. its rare to see anybody ever use a single language for everything for their entire career
<compulsive> ah
fabrice31 has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
<androidbruce> at work we use ruby and bash
ghr has quit [Ping timeout: 264 seconds]
<miah> so; ya ruby is useful and popular. you might find it as such too. but. its all about the problem you're solving; how you solve it; and if its the right problem space
zz_karupa is now known as karupa
<compulsive> miah I don't know how people learn so many languages
<compulsive> plus I suck at math
<miah> once you learn lambda calc everyhting is the same no? =)
<mnemon> ^
<compulsive> I never took calc
<compulsive> lol
<androidbruce> they all ahve similar rules
dc_ has quit []
agent_white has joined #ruby
<androidbruce> and foundations
<miah> i only got to pre-algebra in high school
<androidbruce> hashes, arrays, variables
agent_white has quit [Read error: Connection reset by peer]
<miah> i never went to college; i have a ged
<androidbruce> you learn concepts then apply them
InhalingPixels has joined #ruby
<miah> wikipedia and library to the rescue
<compulsive> lol
terrellt has quit [Ping timeout: 246 seconds]
hiall has quit [Quit: hiall]
<miah> but im one of those people who learns really well by themselves
oo_ has joined #ruby
<compulsive> I don't
<miah> anyways; im in my 30's i learned it =)
<compulsive> sadly
C4rlosCardona has quit [Quit: C4rlosCardona]
<androidbruce> compulsive, join a user group
<androidbruce> in your area
<miah> lots of youtube videos and such thankfully
<androidbruce> i started wwith bash
<compulsive> yeah there's a big one
<androidbruce> b/c of linux
<compulsive> 400 members
<miah> and lots of meetup.com usegroups for stuff
icole has joined #ruby
<miah> try to pick a smaller one; or see if they have 'newbie' type evenings that are more low key
<miah> here in SF area we have lots of meetups for people just getting into languages
<compulsive> yeah
<compulsive> that's Silicon Valley
<compulsive> that's why
<compulsive> programming Mecca
jrhorn424 is now known as zz_jrhorn424
godd2 has joined #ruby
<miah> ya; but its also 'people i cant stand mecca'
fabrice31 has quit [Ping timeout: 250 seconds]
<miah> so i rarely attend those events =)
<compulsive> lol
<miah> but i definitely encourage others to try them; it may work better for you
Photism has joined #ruby
yubrew has joined #ruby
postmodern has joined #ruby
<compulsive> lol
<compulsive> miah you would kick ass
agent_white has joined #ruby
<miah> some people would agree; but i find events to be anxiety fun times
agent_white has quit [Read error: Connection reset by peer]
<mnemon> i've only ever participated in one ug and it was more of a "lets drink booze, talk IT and let some company desperate to do some marketing pay the tab" ;)
<wallerdev> i figured out how to run our test suite for unit tests
<wallerdev> Executed 16 of 16 SUCCESS (0.022 secs / 0.021 secs)
<miah> mnemon: ya basically
crdpink has joined #ruby
<miah> especially in the 'devops' world.. everything is a drinkup
cpt_yossarian has quit [Ping timeout: 245 seconds]
<androidbruce> devops def has a lot of "brogrammer" types
crdprink2 has quit [Ping timeout: 245 seconds]
<nobitanobi> How can I share the variables that are assigned inside of a block to the outside? https://gist.github.com/novito/db3346a715896e96f988
<androidbruce> i just transitioned from a sysadmin role to a "devops" role
<androidbruce> and everyhting seems so "hip"
chrishough has joined #ruby
<miah> nobitanobi: make rendered_html_path a method that takes a argument and sets a variable?
<androidbruce> and this job is an 100% aws infrastructure ruby/rails app
<androidbruce> it's been fun learning rails/runy
mikepack has joined #ruby
<nobitanobi> an instance variable?
<androidbruce> ruby*
<miah> nobitanobi: depends on if you are in a class or not; use the appropriate thing
yubrew has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
<nobitanobi> miah: ok.
zz_jrhorn424 is now known as jrhorn424
thams has joined #ruby
snath has joined #ruby
tkuchiki has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
thams has quit [Client Quit]
oo_ has joined #ruby
peret has joined #ruby
<miah> is time for dinner
Azure has joined #ruby
JoshGlzBrk has joined #ruby
Brolen has joined #ruby
charliesome has quit [Quit: zzz]
PanPan has joined #ruby
wjimenez_ has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
<compulsive> so outside of. # ruby
agent_white has joined #ruby
<compulsive> ruby is supposedly dead lol
agent_white has quit [Read error: Connection reset by peer]
<compulsive> I think it's funny
<peret> says who?
<compulsive> all kinds of people on forums, socisl media
<compulsive> itc
<compulsive> irc
Brolen has left #ruby [#ruby]
jdj_dk has joined #ruby
<compulsive> ##programming is one
oso96_2000 is now known as oso|away
PanPan has quit [Client Quit]
<waxjar> i think that just by looking at the number of people in this channel, ruby is at least somewhat alive
thomasfedb_ has quit [Ping timeout: 256 seconds]
<waxjar> *you can tell that ruby
<compulsive> lol I know
bearish has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
kireevco has quit [Quit: Leaving.]
pkrnj has joined #ruby
pkrnj has quit [Client Quit]
wjimenez_ has quit [Ping timeout: 240 seconds]
axsuul_ has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
Shidash has joined #ruby
thomasfedb has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<miah> also; #rails =)
<miah> and #chef and #puppet
<compulsive> lol
oo_ has joined #ruby
<androidbruce> indeed
<androidbruce> rails, chef, puppet alllll rubyish
<androidbruce> it's far from dead
<androidbruce> i think what compulsive is getting at, is where should he spend his time.
bearish has quit [Ping timeout: 260 seconds]
<compulsive> yes
<androidbruce> once you get fundamentals you can then choose your language of choice
<androidbruce> in the earliest stages of your life in development/programming it won't matter what you use
<androidbruce> when you want to implement that code, that's different
<compulsive> ok
<compulsive> time to watch legends on TNT. Sean bean didn't die yet
djbkd has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<compulsive> thanks for advice
<waxjar> just dont go with php if you want sound fundamentals
<compulsive> lol
jrhorn424 is now known as zz_jrhorn424
benlieb has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<compulsive> I already saw what happened to mt gox because of php
charliesome has joined #ruby
agent_white has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
compulsive has quit [Remote host closed the connection]
aspires has quit []
<androidbruce> php4lyfe yo
<androidbruce> ;)
<androidbruce> i keed
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
St_Marx has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
edwardloveall has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
wlanboy has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
echooo has joined #ruby
r0bby_ is now known as robbyoconnor
<edwardloveall> silly question, when i'm making a gem, is there a way to require it before it's built?
<edwardloveall> or do I need to build it every time to test it
<miah> what you mean?
<miah> if you use bundler; it will set up your library paths properly if you include 'gemspec' in your Gemfile
cocotton has joined #ruby
<edwardloveall> ah ok that might work
<miah> also; you can pass 'libs' to your test task
sevenseacat has joined #ruby
<edwardloveall> just like `gem 'path/to/gem.gemspec`
<edwardloveall> missed a quote there but...
tlarevo has quit [Remote host closed the connection]
<miah> no
jdj_dk has quit [Ping timeout: 245 seconds]
<waxjar> you don't need to use bundler to do that
emmesswhy has quit [Quit: This computer has gone to sleep]
<waxjar> you can use require_relative or pass a "-I path/to/your/gem/lib/folder" to ruby
<miah> that too
agent_white has joined #ruby
<miah> but i hate sticking 'require_relative' all over my tests
<edwardloveall> alright, i'll read through this and try that
<miah> makes moving things around a pita
agent_white has quit [Read error: Connection reset by peer]
<edwardloveall> yeah true
<pipework> miah: bread?
<miah> yes
<edwardloveall> haha
<waxjar> yum
<miah> unfortunately it becomes a stale pita
<miah> so more like a hockey puck or sewage cover
tkuchiki has joined #ruby
tlarevo has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
bricker`work has quit [Ping timeout: 255 seconds]
iteratorP has joined #ruby
larissa has joined #ruby
tkuchiki has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rezzack has quit [Quit: Leaving.]
tkuchiki has joined #ruby
St_Marx has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 246 seconds]
dc has joined #ruby
b00stfr3ak has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
goleldar has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
snath has quit [Ping timeout: 255 seconds]
PanPan has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Takle has joined #ruby
dorei has quit []
bradleyprice has joined #ruby
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
maestrojed has joined #ruby
Channel6 has joined #ruby
Channel6 has left #ruby [#ruby]
ghostmoth has quit [Quit: ghostmoth]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k1 has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 272 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
gkagan has joined #ruby
agent_white has joined #ruby
sysx1000 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Bumptious has joined #ruby
troyready has quit [Ping timeout: 260 seconds]
britneywright has joined #ruby
yfeldblum has joined #ruby
dbasch has joined #ruby
gkagan has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ghr has joined #ruby
L3mce has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Girakrok has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
amclain has joined #ruby
AlexBlom has joined #ruby
lukeholder has joined #ruby
mikepack has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby
lukeholder has quit [Max SendQ exceeded]
Lightsword_ has quit [Ping timeout: 250 seconds]
lukeholder has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tylerker_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor_ has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
Spami has joined #ruby
jdj_dk has joined #ruby
aspires has joined #ruby
klmlfl has joined #ruby
starless has quit [Quit: Leaving]
helios157 has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
coreycondardo has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
nobitanobi has quit []
Ankhers has joined #ruby
klmlfl has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
kireevco has joined #ruby
beemo has joined #ruby
tkuchiki has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tlarevo has quit [Remote host closed the connection]
echooo1 has joined #ruby
alexju has joined #ruby
_reset has joined #ruby
<Ankhers> Is there a simple way of splitting a string into groups of x?
echooo has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
<Ankhers> x being an int. EG "apple" -> ["app", "le"] for groups of 3.
Fezzler has joined #ruby
icebourg has joined #ruby
tokik has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
amclain has quit [Quit: Leaving]
andrewjanssen has quit [Quit: Leaving...]
charliesome has quit [Quit: zzz]
Kricir has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
cy has quit [Quit: restarting client]
_reset has quit [Ping timeout: 255 seconds]
davzie has joined #ruby
<edwardloveall> there's probably a better way but you could try .scan(/.{3}|.+/)
cy has joined #ruby
<edwardloveall> basically saying, find me groups of any character 3 at a time, OR infinite characters
jdj_dk has quit [Read error: Connection reset by peer]
<miah> you could do something similar with a regular expression + #split
<edwardloveall> so it will try to do a group of 3 until it can't (when it gets to the end of a string) and grab what's left
<edwardloveall> @miah yeah i tried that first and couldn't figure it out
helios157 has left #ruby [#ruby]
jay__ has quit []
earthquake has quit [Quit: earthquake]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
jle` has joined #ruby
<Ankhers> is scan less efficient than split?
larissa has quit [Quit: Leaving]
<edwardloveall> not sure actually
tylersmith has joined #ruby
djbkd has quit [Remote host closed the connection]
<Ankhers> I was just wondering since split was brought up. This isn't exactly critical. Thanks for the help edwardloveall and miah.
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
w09x has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
21WAA1FDC has joined #ruby
Akagi201 has joined #ruby
Analyzer has joined #ruby
Vile` has quit [Remote host closed the connection]
beemo has quit [Remote host closed the connection]
beemo has joined #ruby
Vile` has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
maletor_ has quit [Quit: Computer has gone to sleep.]
uN{IQ}ue-18f has joined #ruby
uN{IQ}ue-18f has quit [Client Quit]
Sha^15^^ has joined #ruby
Sha^15^^ has quit [Client Quit]
Guest121538 has joined #ruby
selahattin has joined #ruby
selahattin has quit [Client Quit]
Sirine has joined #ruby
Sirine has quit [Client Quit]
Analyzer has quit [Excess Flood]
Lesbian[away] has joined #ruby
Lesbian[away] has quit [Client Quit]
Iogin has joined #ruby
Iogin has quit [Client Quit]
father has joined #ruby
father has quit [Client Quit]
LOLa-GIRL has joined #ruby
LOLa-GIRL has quit [Client Quit]
J_e_S_I_C_a has joined #ruby
J_e_S_I_C_a has quit [Client Quit]
aIevi has joined #ruby
adriyatik has joined #ruby
adriyatik has quit [Client Quit]
Wolland has quit [Remote host closed the connection]
Rosalinda^` has joined #ruby
Rosalinda^` has quit [Client Quit]
^Lesbian_ has joined #ruby
warr has joined #ruby
warr has quit [Client Quit]
BaBy[24] has joined #ruby
BaBy[24] has quit [Client Quit]
asli^^ has joined #ruby
asli^^ has quit [Client Quit]
HarDGirL__ has joined #ruby
HarDGirL__ has quit [Client Quit]
lady25` has joined #ruby
lady25` has quit [Client Quit]
Iewis has joined #ruby
Iewis has quit [Client Quit]
CyberGirl-with-g has joined #ruby
CyberGirl-with-g has quit [Client Quit]
avvci has joined #ruby
avvci has quit [Client Quit]
^^Hillary has joined #ruby
^^Hillary has quit [Client Quit]
escapee has joined #ruby
escapee has quit [Client Quit]
isabellaaa has joined #ruby
isabellaaa has quit [Client Quit]
seviyeIi has joined #ruby
seviyeIi has quit [Client Quit]
ayse_ has joined #ruby
ayse_ has quit [Client Quit]
CinDereIIa has joined #ruby
CinDereIIa has quit [Client Quit]
davidd has joined #ruby
davidd has quit [Client Quit]
DangerousGirl[ic has joined #ruby
DangerousGirl[ic has quit [Client Quit]
mesut has joined #ruby
mesut has quit [Client Quit]
Guest921032 has joined #ruby
Guest921032 has quit [Client Quit]
yoyo has joined #ruby
yoyo has quit [Client Quit]
deli_KIZ^^ has joined #ruby
deli_KIZ^^ has quit [Client Quit]
eagIe has joined #ruby
eagIe has quit [Client Quit]
kenan has joined #ruby
kenan has quit [Client Quit]
veysel has joined #ruby
veysel has quit [Client Quit]
feminist`18f` has joined #ruby
feminist`18f` has quit [Client Quit]
angelaaa has joined #ruby
angelaaa has quit [Client Quit]
macintosh has joined #ruby
macintosh has quit [Client Quit]
formuIa has joined #ruby
formuIa has quit [Client Quit]
sahra has joined #ruby
sahra has quit [Client Quit]
Iucy has joined #ruby
Iucy has quit [Client Quit]
veysel has joined #ruby
veysel has quit [Client Quit]
SeDa|f| has joined #ruby
SeDa|f| has quit [Client Quit]
bora has joined #ruby
bora has quit [Client Quit]
room has joined #ruby
room has quit [Client Quit]
Girl^^25^^ has joined #ruby
Girl^^25^^ has quit [Client Quit]
LaDy[uQ] has joined #ruby
LaDy[uQ] has quit [Client Quit]
tuRk-18f has joined #ruby
tuRk-18f has quit [Client Quit]
fatih has joined #ruby
fatih has quit [Client Quit]
|x-girL|_away has joined #ruby
|x-girL|_away has quit [Client Quit]
Girl^^22^^ has joined #ruby
Girl^^22^^ has quit [Client Quit]
sindoma has joined #ruby
sindoma has quit [Client Quit]
Jaxx[18f] has joined #ruby
Jaxx[18f] has quit [Client Quit]
DangerousGirl[ic has joined #ruby
DangerousGirl[ic has quit [Client Quit]
oIgun has joined #ruby
buse_kizgin has joined #ruby
buse_kizgin has quit [Client Quit]
susi has joined #ruby
susi has quit [Client Quit]
CyBerGirL18- has joined #ruby
CyBerGirL18- has quit [Client Quit]
mimar32 has joined #ruby
mimar32 has quit [Client Quit]
zeyynaa has joined #ruby
zeyynaa has quit [Client Quit]
baby^^15^^ has joined #ruby
baby^^15^^ has quit [Client Quit]
`Im_jSt_a_girI` has joined #ruby
`Im_jSt_a_girI` has quit [Client Quit]
CelinaDion has joined #ruby
CelinaDion has quit [Client Quit]
sHe[23] has joined #ruby
sHe[23] has quit [Client Quit]
firegirL_sorrowf has joined #ruby
[Baby15] has joined #ruby
[Baby15] has quit [Client Quit]
mateIot has joined #ruby
mateIot has quit [Client Quit]
oIgun has joined #ruby
oIgun has quit [Client Quit]
easy has joined #ruby
easy has quit [Client Quit]
bbg has joined #ruby
bbg has quit [Client Quit]
sahra has joined #ruby
Guest527948 has joined #ruby
Guest527948 has quit [Client Quit]
sahra has quit [Client Quit]
resat has joined #ruby
resat has quit [Client Quit]
Lady[20] has joined #ruby
Lady[20] has quit [Client Quit]
Guest987126 has joined #ruby
Guest987126 has quit [Client Quit]
yasemin has joined #ruby
yasemin has quit [Client Quit]
^cLeOpaTra_ has joined #ruby
holy-girl has joined #ruby
^_BaBY_^ has joined #ruby
Guest[G]irl has joined #ruby
Sevdali-KIZ has joined #ruby
aspendos has joined #ruby
ox has joined #ruby
necla has joined #ruby
KinG_GirL has joined #ruby
LaRax18f has joined #ruby
BaBy[14] has joined #ruby
Patricia^^ has joined #ruby
^^Hillary has joined #ruby
sHe[22] has joined #ruby
[LaDy15] has joined #ruby
laurisa has joined #ruby
GiRL[14] has joined #ruby
Cindy_not_away`P has joined #ruby
sWheeTy has joined #ruby
GirL`14` has joined #ruby
objee has joined #ruby
sakip has joined #ruby
LemonGirL` has joined #ruby
yeIkovan has joined #ruby
Barby[talkative] has joined #ruby
baby^^16^^ has joined #ruby
_PrettyGirl_ has joined #ruby
sindirella_____ has joined #ruby
ox is now known as Guest32011
LOLa-GIRL has joined #ruby
jordan23 has joined #ruby
^_^annie has joined #ruby
LaRax[15f] has joined #ruby
hearos has joined #ruby
tansu has joined #ruby
salise has joined #ruby
MeLiSSa_tHe_oRiG has joined #ruby
aqua_Baby has joined #ruby
nurguI has joined #ruby
B-a-B-Y- has joined #ruby
yavuz has joined #ruby
GirL`22` has joined #ruby
Samantha|18| has joined #ruby
sIow has joined #ruby
xGirl^bone-dry has joined #ruby
cIas has joined #ruby
salise has quit [K-Lined]
_PrettyGirl_ has quit [K-Lined]
sIow has quit [K-Lined]
aqua_Baby has quit [K-Lined]
^_^annie has quit [K-Lined]
baby^^16^^ has quit [K-Lined]
sHe[22] has quit [K-Lined]
BaBy[14] has quit [K-Lined]
holy-girl has quit [K-Lined]
aspendos has quit [K-Lined]
LOLa-GIRL has quit [K-Lined]
hearos has quit [K-Lined]
yeIkovan has quit [K-Lined]
GirL`14` has quit [K-Lined]
^_BaBY_^ has quit [K-Lined]
KinG_GirL has quit [K-Lined]
cIas has quit [K-Lined]
[LaDy15] has quit [K-Lined]
LaRax18f has quit [K-Lined]
Sevdali-KIZ has quit [K-Lined]
Guest32011 has quit [K-Lined]
jordan23 has quit [K-Lined]
tansu has quit [K-Lined]
Barby[talkative] has quit [K-Lined]
Cindy_not_away`P has quit [K-Lined]
^cLeOpaTra_ has quit [K-Lined]
necla has quit [K-Lined]
B-a-B-Y- has quit [K-Lined]
sWheeTy has quit [K-Lined]
Patricia^^ has quit [K-Lined]
^^Hillary has quit [K-Lined]
nurguI has quit [K-Lined]
MeLiSSa_tHe_oRiG has quit [K-Lined]
LemonGirL` has quit [K-Lined]
sindirella_____ has quit [K-Lined]
laurisa has quit [K-Lined]
GiRL[14] has quit [K-Lined]
yavuz has quit [K-Lined]
objee has quit [K-Lined]
xGirl^bone-dry has quit [K-Lined]
sakip has quit [K-Lined]
ScarletWoman has joined #ruby
[LaDy21] has joined #ruby
istanbuI has joined #ruby
neSHe-f has joined #ruby
LaRax[15f] has quit [K-Lined]
Guest[G]irl has quit [K-Lined]
neSHe-f has quit [K-Lined]
[LaDy21] has quit [K-Lined]
istanbuI has quit [K-Lined]
Samantha|18| has quit [K-Lined]
GirL`22` has quit [K-Lined]
deneycii has joined #ruby
^DangerousGirl has joined #ruby
wradbabyy has joined #ruby
alekst has quit [Quit: Leaving...]
tugay has joined #ruby
ScarletWoman has quit [K-Lined]
caner has joined #ruby
sandaI has joined #ruby
sandaI has quit [K-Lined]
caner has quit [K-Lined]
SilkFox_ has joined #ruby
^DangerousGirl has quit [Remote host closed the connection]
deneycii has quit [Remote host closed the connection]
wradbabyy has quit [Remote host closed the connection]
agent_white has joined #ruby
aspires has quit []
agent_white has quit [Read error: Connection reset by peer]
muslum has joined #ruby
lennybriscoe has joined #ruby
Sweet-lesbish has joined #ruby
Naw_rose-grL has joined #ruby
endie has joined #ruby
nastasia has joined #ruby
tugay has quit [Remote host closed the connection]
Lightsword has joined #ruby
^iCeGirL^ has joined #ruby
endie is now known as Guest70862
xcv has quit [Remote host closed the connection]
banu18 has joined #ruby
Guest597032 has joined #ruby
necla has joined #ruby
xcv has joined #ruby
pelin has joined #ruby
necla has quit [K-Lined]
^iCeGirL^ has quit [K-Lined]
muslum has quit [K-Lined]
Guest597032 has quit [K-Lined]
Guest70862 has quit [K-Lined]
pelin has quit [K-Lined]
banu18 has quit [K-Lined]
nastasia has quit [K-Lined]
Naw_rose-grL has quit [K-Lined]
Sweet-lesbish has quit [K-Lined]
xcv_ has joined #ruby
Channel6 has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
wallerdev has quit [Quit: wallerdev]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
xcv has quit [Ping timeout: 264 seconds]
Lightsword_ has joined #ruby
emmesswhy has joined #ruby
Lightsword has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 264 seconds]
beemo has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Lightsword_ has quit [Ping timeout: 240 seconds]
21WAA1FDC has quit [Quit: My people need me...]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
chrishough has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
lennybriscoe has left #ruby [#ruby]
sparrovv has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
beemo has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gkagan has joined #ruby
beemo has quit [Remote host closed the connection]
beemo has joined #ruby
sylvanica has quit [Remote host closed the connection]
yubrew has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beemo has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
Ankhers has quit [Ping timeout: 264 seconds]
beemo has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 260 seconds]
zz_anildigital is now known as anildigital
lobo_tuerto has joined #ruby
icebourg has quit []
bluOxigen has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lobo_tuerto has left #ruby [#ruby]
jdj_dk has joined #ruby
echooo has joined #ruby
wallerdev has joined #ruby
Wolland has joined #ruby
dte has joined #ruby
cpt_yossarian has joined #ruby
cocotton has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
agent_white has joined #ruby
dte has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
bearish has joined #ruby
snath has joined #ruby
beemo has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 250 seconds]
pkrnj has joined #ruby
maestrojed has joined #ruby
beemo has joined #ruby
xcv_ has quit [Remote host closed the connection]
dte has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
maestrojed has quit [Client Quit]
maletor_ has joined #ruby
meg4tr0n has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bearish has quit [Ping timeout: 260 seconds]
spastorino has joined #ruby
CiC_ has joined #ruby
sdwrage has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
JavaTheHut has joined #ruby
dte has quit [Ping timeout: 245 seconds]
Fezzler has quit [Quit: Leaving]
melik_ has quit [Quit: Computer has gone to sleep.]
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
echevemaster has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 240 seconds]
omosoj has quit [Quit: Leaving]
CiC_ has quit [Quit: Leaving]
mattmcclure has quit [Quit: Connection closed for inactivity]
davispuh has quit [Ping timeout: 245 seconds]
beemo_ has joined #ruby
tylerkern has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
beemo has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Ping timeout: 264 seconds]
Lewoco has joined #ruby
beemo_ has quit [Remote host closed the connection]
beemo has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
alvaro_o_ has quit [Quit: Ex-Chat]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
axsuul has joined #ruby
dte has joined #ruby
andrewjanssen has joined #ruby
kireevco has quit [Quit: Leaving.]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
w09x has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
maletor_ has quit [Quit: Computer has gone to sleep.]
peret has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
tokik has quit [Quit: leaving]
tokik has joined #ruby
thomasxie has joined #ruby
mikemac has quit [Quit: Konversation terminated!]
SilkFox_ has joined #ruby
agent_white has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
patrick99e99 has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
kireevco has joined #ruby
beemo_ has joined #ruby
freerobby has joined #ruby
edwardloveall has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 240 seconds]
w09x has quit []
TorpedoSkyline has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
beemo has quit [Ping timeout: 260 seconds]
<zenspider> why do we have beer && code and not scotch && code ?
braincrash has joined #ruby
<sevenseacat> because coders are plebs who dont enjoy the finer things in life.
beemo_ has quit [Remote host closed the connection]
<zenspider> clearly
<pipework> zenspider: I'm more of a long beach iced tea and code guy.
beemo has joined #ruby
<pipework> In fact, I may or may not practice the discipline at my dayjob.
<sevenseacat> i'm more a vodka && code or diet coke && code, but they werent options in the poll
yubrew has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<sevenseacat> i had a long island iced tea once. oh man/
jdj_dk has joined #ruby
michaeldeol has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
DrCode has quit [Remote host closed the connection]
gkagan has joined #ruby
DrCode has joined #ruby
day has quit [Ping timeout: 264 seconds]
beemo_ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
beemo__ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
beemo_ has quit [Read error: Connection reset by peer]
lukeholder has joined #ruby
SilkFox has joined #ruby
lukeholder has quit [Max SendQ exceeded]
day has joined #ruby
beemo__ has quit [Remote host closed the connection]
lukeholder has joined #ruby
beemo_ has joined #ruby
beemo has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
gkagan has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: Leaving]
craigp has joined #ruby
SilkFox has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
agent_white has joined #ruby
<pipework> sevenseacat: I drink long beach iced teas constantly.
agent_white has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Quit: Leaving...]
Shidash has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
<zenspider> bisectin' minitest... as you do...
agent_white has joined #ruby
yfeldblum has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
melik_ has joined #ruby
<pipework> I actually haven't tried minitest-bisect. It looks neat
echooo has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
oo_ has joined #ruby
Wolland has joined #ruby
agent_white has joined #ruby
InhalingPixels has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
echooo has joined #ruby
nobitanobi has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
cy has quit [Quit: :q!]
<nobitanobi> hihi
InhalingPixels has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tectonic has joined #ruby
arup_r has quit [Quit: Leaving.]
w09x has joined #ruby
<nobitanobi> jhass: I have been thinking more about the LinkedList implementation. How would you be able to create a looped linked list? For example, last element.next is the first element of the list?
maletor_ has joined #ruby
agent_white has joined #ruby
meg4tr0n has quit [Quit: Leaving]
britneywright has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
shedd has joined #ruby
beemo_ has quit [Remote host closed the connection]
shedd has quit [Client Quit]
krz has joined #ruby
<zenspider> RAWR! I GOTS IT
beemo has joined #ruby
<zenspider> nobitanobi: what's the question?
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
axsuul has quit [Ping timeout: 245 seconds]
<Lewoco> I'm trying to add some ruby stuff to my Vagrantfile and whenever I make an error it just spits out a stacktrace and exits. Is there some way I can make ruby put me into an interactive debugger instead?
<nobitanobi> zenspider: I have this implementation for a LinkedList: https://github.com/novito/linked_list_ruby/blob/master/linked_lists.rb
<nobitanobi> I am wondering how would I create a looped linked list with this approach
icebourg has joined #ruby
beemo has quit [Read error: Connection reset by peer]
<zenspider> Lewoco: `ruby -S ruby_cmd` is the same thing as `ruby_cmd`
freerobby has quit [Quit: Leaving.]
agent_white has joined #ruby
<zenspider> so you can do extra -rblah on the first version
agent_white has quit [Read error: Connection reset by peer]
<Lewoco> zenspider, Unfortunately on Windows I think it's using some sort of embedded copy of ruby.
<Lewoco> zenspider, vagrant is a windows .exe file rather than a shellscript wrapper.
<zenspider> then I can't help
<zenspider> nobitanobi: last.next = first --- surely you're asking something different
jelera has joined #ruby
<nobitanobi> zenspider: using the LinkedList class.
<nobitanobi> see the constructor
jelera has joined #ruby
<zenspider> I see it. yes. what's the problem?
<nobitanobi> How do you call the LinkedList constructor specifying a looped linked list?
jelera has quit [Client Quit]
philcris_ has joined #ruby
threesixes has joined #ruby
<zenspider> dude. I'm happy to help... but 1) this looks like homework, 2) you're just asking me how to do something and not showing me what you've tried, and 3) I pretty much answered this above, the impl details are up to you (AND arbitrary)
jdj_dk has joined #ruby
w09x_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<nobitanobi> zenspider: calm down. I wasn't even asking you
<zenspider> you could have an optional arg. you could have a subclass... it doesn't really matter what way you go on that.
<nobitanobi> this was from a previous conversation with jhass and other people in the channel
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
<sevenseacat> what do you mean you werent asking him
<sevenseacat> you asked him by name
<zenspider> oh fuck off
JBreit has joined #ruby
<zenspider> I'm done. have fun with that
<zenspider> do your own homework
michaeldeol has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philcris_ has quit [Ping timeout: 245 seconds]
JBreit has left #ruby [#ruby]
w09x has quit [Ping timeout: 250 seconds]
Girakrok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrL0ngbowman has joined #ruby
<nobitanobi> zenspider: My apologies. I wanted to talk to jhass about something we talked yesterday.
Wolland has joined #ruby
fabrice31 has joined #ruby
agent_white has joined #ruby
sinkensabe has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
yubrew has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
hamakn has joined #ruby
InhalingPixels has joined #ruby
saarinen has quit [Quit: saarinen]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
tlarevo has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
<Nowaker> zenspider: the conversation shouldn't have gone that way. if you are not interested in someone's homework, don't answer. that's better than telling someone to... go away ;) thanks.
Aranshada|W_ has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dte has quit [Remote host closed the connection]
Aranshada|W has quit [Ping timeout: 250 seconds]
Asher has quit [Quit: Leaving.]
<zenspider> Nowaker: please quote where I said anything like that.
jdj_dk has quit [Ping timeout: 260 seconds]
dte has joined #ruby
<zenspider> what I said was "dude. I'm happy to help... but 1) this looks like homework, ..."
<zenspider> nowhere did I say anything like "go away"
RandyT has quit [Ping timeout: 260 seconds]
<zenspider> Nowaker: you're also 15 minutes late. what's the point?
<nobitanobi> it actually looks like homework, but is not. Yesterday I showed an implementation of a Linked List by just using a Node class. jhass suggested to use some kind of wrapper (LinkedList in my code), and I just wanted to know, how could I use that approach if I wanted to build looped lists
bthesorceror has joined #ruby
<nobitanobi> that's why I directed my question to jhass directly.
<sevenseacat> except you didnt
pasties has quit [Ping timeout: 250 seconds]
<zenspider> nobitanobi: except you also asked me
mattp___ has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<zenspider> "<nobitanobi> zenspider: I have this implementation for a LinkedList: ..."
<nobitanobi> zenspider: I definitely did, after you wanted to know what was the question
bearish has joined #ruby
<zenspider> yes, so stop misrepresenting
<nobitanobi> ok zenspider, I am sorry
gkagan has joined #ruby
craigp has quit [Remote host closed the connection]
pasties has joined #ruby
ta has quit [Remote host closed the connection]
Asher has joined #ruby
ta has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
dte has quit [Remote host closed the connection]
<zenspider> so... anyone here have tests that fail randomly only some of the time?
gkagan has quit [Ping timeout: 240 seconds]
dte has joined #ruby
<sevenseacat> yes, but in rails apps where its a) factories generating random dodgy data sometimes or b) timing issues when running browser specs
dte has quit [Remote host closed the connection]
<sevenseacat> i have a feeling that doesnt apply to what youre working on >_>
Spami has joined #ruby
<zenspider> unfortunately no.
tlarevo_ has joined #ruby
<zenspider> this http://www.zenspider.com/~ryan/minitest_bisect.mov is where you have test order dependencies... one test run in the wrong order makes another fail
<zenspider> it can be really hard to track down
<zenspider> this code helps do that
dte has joined #ruby
dte has quit [Remote host closed the connection]
<sevenseacat> ah cool
Cache_Money has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
<zenspider> should work with ANY combination of files or tests... which makes it effectively NP complete and can take a lot of time, but it'll always be faster than a human trying
ta has quit [Ping timeout: 240 seconds]
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
sambao21 has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
sinkensabe has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
nobitanobi has quit []
AlexBlom has quit [Read error: Connection reset by peer]
arya_ has quit [Read error: Connection reset by peer]
arya__ has joined #ruby
AlexBlom has joined #ruby
CaptainJet has quit []
anildigital is now known as zz_anildigital
<pontiki> zenspider: we're currently having some intermittent failures with missing DOM elements created with JS
sambao21 has quit [Ping timeout: 246 seconds]
bearish has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<zenspider> pontiki: unless it is only in test, this doesn't apply
<pontiki> zenspider: yes, it only shows up on our travis-ci runs
<pontiki> *sometimes*
<pontiki> never in prod or dev
<zenspider> interesting. maybe this could help
<pontiki> is there a writeup? the movie goes by a bit fast for me to understand what's happening ...
ssvo has quit [Ping timeout: 255 seconds]
<zenspider> tho "missing DOM elements created with JS" says impl to me... not test setup. but that really depends on how you're testing and writing your tests
<zenspider> well... you're welcome to watch it slower. :)
<pontiki> oh, also, have not been able to reproduce during local test runs :(
oo_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> great :)
beemo has joined #ruby
beemo has quit [Remote host closed the connection]
beemo has joined #ruby
mindkeep has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mindkeep has left #ruby ["Ex-Chat"]
ssvo has joined #ruby
<pontiki> i don't disagree that it's more likely an implementation bug somewhere, and i'm afeared that it *will* show up in prod some time, and simply go unnoticed by the user. i haven't convinced my devlead to put some instrumentation in to catch it, yet
<pontiki> (or maybe it already is)
jdj_dk has joined #ruby
jhass is now known as jhass|off
txdv has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 246 seconds]
txdv has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
maletor_ has quit [Quit: Computer has gone to sleep.]
<zenspider> pontiki: *nod* that type of thing sucks. esp when you don't even know the conditions under which it reproduces
<zenspider> beer && code is ending... time to walk home
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Remote host closed the connection]
lxsameer has joined #ruby
anaeem1 has joined #ruby
arya__ has quit [Ping timeout: 240 seconds]
beemo_ has joined #ruby
beemo_ has quit [Remote host closed the connection]
agent_white has joined #ruby
beemo_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
melik_ has quit [Remote host closed the connection]
Guest21618 has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
EvanR is now known as Guest755
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Ping timeout: 250 seconds]
beemo has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
yubrew has joined #ruby
w09x has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
koderok has joined #ruby
koderok has quit [Client Quit]
w09x_ has quit [Ping timeout: 255 seconds]
sterlingcalder has joined #ruby
jerikl has joined #ruby
agent_white has joined #ruby
sterlingcalder has left #ruby [#ruby]
agent_white has quit [Read error: Connection reset by peer]
zz_anildigital is now known as anildigital
_tpavel has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
lxsameer has quit [Read error: No route to host]
lxsameer has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
apeiros has joined #ruby
IceDragon has quit [Quit: Space~~~]
mercwithamouth has joined #ruby
MrL0ngbowman has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
michaeldeol has joined #ruby
dseitz has left #ruby [#ruby]
Cache_Money has quit [Quit: Cache_Money]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
end_guy has quit [Ping timeout: 264 seconds]
gkagan has joined #ruby
GriffinHeart has joined #ruby
codecop has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gkagan has quit [Ping timeout: 272 seconds]
j_mcnall_ has joined #ruby
j_mcnall_ is now known as j_mcnally
end_guy has joined #ruby
toastynerd has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
jdj_dk has joined #ruby
bzitzow has quit [Read error: Connection reset by peer]
crdpink has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
godd2 has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
tylerkern has joined #ruby
lxsameer has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
toastynerd has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
ValicekB has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
aspires has joined #ruby
AlexBlom has quit [Quit: This computer has gone to sleep]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
neaer has joined #ruby
kyb3r_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
crdpink has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
osvico has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
anildigital is now known as zz_anildigital
jusmyth has left #ruby [#ruby]
zz_anildigital is now known as anildigital
Sauvin has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
peterhu has joined #ruby
Skwallinux has joined #ruby
hoelzro has quit [Remote host closed the connection]
agent_white has joined #ruby
wmoxam has quit [Ping timeout: 244 seconds]
agent_white has quit [Read error: Connection reset by peer]
hoelzro has joined #ruby
philcrissman has joined #ruby
sdouglas has joined #ruby
wmoxam has joined #ruby
toastynerd has joined #ruby
Aranshada|W_ is now known as Aranshada|W
maestrojed has joined #ruby
bijumon has quit [Ping timeout: 260 seconds]
coreycondardo has quit [Quit: coreycondardo]
w09x has quit []
Wolland_ has joined #ruby
bijumon has joined #ruby
r_s has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
maestrojed has quit [Client Quit]
philcrissman has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
kallen has quit [Quit: leaving]
maestrojed has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
maestrojed has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
totimkopf has joined #ruby
yubrew has joined #ruby
InhalingPixels has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 264 seconds]
InhalingPixels has quit [Ping timeout: 264 seconds]
icebourg has quit []
jdj_dk has quit [Ping timeout: 260 seconds]
jerikl has quit [Quit: jerikl]
hiall has joined #ruby
linojon has quit [Quit: linojon]
agent_white has joined #ruby
bal has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sea_local has joined #ruby
ht__th has joined #ruby
sparrovv has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
thomasxie has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Jarboe has quit []
dawkirst has joined #ruby
tectonic has quit []
SouL_ has joined #ruby
lkba has joined #ruby
sysx1000 has quit [Ping timeout: 255 seconds]
sysx1000 has joined #ruby
mattp___ has joined #ruby
Kricir has joined #ruby
gkagan has joined #ruby
aspires has quit []
davedev2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
davedev24_ has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
mijicd has joined #ruby
mijicd has quit [Client Quit]
mijicd has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
bthesorceror has joined #ruby
jrhorn424 is now known as zz_jrhorn424
mijicd has quit [Client Quit]
mijicd has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
doev has joined #ruby
Macaveli has joined #ruby
_lexjm has quit [Remote host closed the connection]
bearish has joined #ruby
_lexjm has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
ptrrr has joined #ruby
tobago has joined #ruby
fabrice31 has joined #ruby
diegoviola has joined #ruby
kies has joined #ruby
benzrf is now known as benzrf|offline
starkhalo has quit [Ping timeout: 246 seconds]
gauke has joined #ruby
bthesorceror has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Morkel has joined #ruby
bearish_ has joined #ruby
Morkel has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
doev has quit [Quit: Verlassend]
bearish has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
bearish_ has quit [Ping timeout: 260 seconds]
user232 has joined #ruby
Xeago has joined #ruby
HelperW has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<user232> rspec question: I want to power up some virtual machines befpre all tests. I want to control the exitcode of the vm start. here is my try: http://pastebin.com/23N3nfiQ I got: undefined method `describe' for #<RSpec::Core
_marsi_ has joined #ruby
benzrf|offline is now known as benzrf
mityaz has joined #ruby
dawkirst has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
LangeOortjes has joined #ruby
yacks has quit [Read error: Connection reset by peer]
sysx1000 has quit [Ping timeout: 250 seconds]
dawkirst has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has joined #ruby
tagrudev has joined #ruby
relix has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
dumdedum has joined #ruby
ta has joined #ruby
darkness has joined #ruby
darkness is now known as Guest26571
kireevco has quit [Quit: Leaving.]
InhalingPixels has joined #ruby
<vcoinminer____> hi, guys. one simple question. what is the purpose of opal gem ? a gem that you can write javascript in ruby?
mburns has joined #ruby
hellangel7 has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
<sevenseacat> no idea.
<Mon_Ouie> I thought it was a Ruby -> JS cross-compiler
<sevenseacat> it is
<vcoinminer____> does that means I can write front-end (web) js in ruby? or that means I can port all my backend ruby to node.js?
sparrovv has quit [Remote host closed the connection]
<sevenseacat> yes to the first, no to the last
Fractional has joined #ruby
dumdedum has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
<sevenseacat> i dont think the gem is a good idea tbh
<vcoinminer____> ok.. thanks. :)
InhalingPixels has quit [Ping timeout: 245 seconds]
tylersmith has quit [Remote host closed the connection]
<vcoinminer____> I wouldn't use it, just wondering what is that for..
bayed has joined #ruby
patrick99e99 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
BraddPitt has joined #ruby
root3d has joined #ruby
Xeago has joined #ruby
<Fractional> Is it bad design having objects in modules?
<sevenseacat> delightfully vague.
<Fractional> module Foo; @object = Bar.new; end
<Fractional> And then access it through a getter?
Aranshada|W has quit [Ping timeout: 245 seconds]
sparrovv has quit [Ping timeout: 260 seconds]
BraddBitt has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
adac has joined #ruby
yfeldblu_ has joined #ruby
<pontiki> it's how it's done
noop has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
amh345 has quit [Ping timeout: 250 seconds]
amh345_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
amh345_ has quit [Client Quit]
everett has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
sn0wb1rd has quit [Quit: See ya]
magic has quit [Ping timeout: 244 seconds]
everett has joined #ruby
dumdedum has joined #ruby
Fractional has quit [Remote host closed the connection]
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 255 seconds]
Ilyas_ has joined #ruby
krisquigley has joined #ruby
<user232> rspec -> serverspec: http://pastebin.com/17nyUyKs is there a way to print the stdout of the command to stdout? something like tried here: https://github.com/serverspec/serverspec/issues/384 ?
magic has joined #ruby
LangeOortjes has quit []
LangeOortjes has joined #ruby
thomasxie has joined #ruby
beemo_ has quit [Remote host closed the connection]
madzhuga has joined #ruby
gkagan has joined #ruby
mburns_ has joined #ruby
Wolland_ has quit [Remote host closed the connection]
hiall has quit [Quit: hiall]
JoshGlzB_ has joined #ruby
gkagan has quit [Ping timeout: 255 seconds]
brothmars has quit [Ping timeout: 272 seconds]
sn0wb1rd has joined #ruby
iteratorP has quit [Remote host closed the connection]
JoshGlzBrk has quit [Ping timeout: 260 seconds]
poulet_a has joined #ruby
poulet_a_ has joined #ruby
jprovazn has joined #ruby
arya_ has joined #ruby
v0n has quit [Read error: Connection reset by peer]
poulet_a has quit [Client Quit]
poulet_a_ has quit [Client Quit]
<Mon_Ouie> system('x') uses the parent's stdout for output
poulet_a has joined #ruby
iteratorP has joined #ruby
Macaveli has joined #ruby
philcrissman has joined #ruby
LangeOortjes has quit []
meinside has joined #ruby
ghr has joined #ruby
Jackneill has joined #ruby
Wolland has joined #ruby
LangeOortjes has joined #ruby
thomasxie has quit [Read error: Connection timed out]
philcrissman has quit [Ping timeout: 272 seconds]
krisquigley has quit [Remote host closed the connection]
beemo has joined #ruby
thomasxie has joined #ruby
beemo has quit [Read error: Connection reset by peer]
beemo has joined #ruby
beemo has quit [Remote host closed the connection]
shock_one has joined #ruby
beemo has joined #ruby
krisquigley has joined #ruby
beemo has quit [Read error: Connection reset by peer]
beemo has joined #ruby
beemo has quit [Remote host closed the connection]
axsuul has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has quit [Quit: This computer has gone to sleep]
beemo has joined #ruby
yacks has joined #ruby
LangeOortjes has quit []
anarang has joined #ruby
krisquigley has quit [Remote host closed the connection]
LangeOortjes has joined #ruby
<user232> Mon_Ouie: ok, but describe command(system('vagrant up vm')) do it { should return_exit_status 0 } end prints true or false and not the command itself.
yubrew has joined #ruby
<user232> Mon_Ouie: But your are right, thats prints the stdout of the command
<Mon_Ouie> What does your command method do?
bearish has joined #ruby
bearish has quit [Remote host closed the connection]
root3d has quit [Ping timeout: 255 seconds]
radic has joined #ruby
bearish has joined #ruby
<user232> Mon_Ouie: it starts a virtual machine.
Lewix has quit [Remote host closed the connection]
<Mon_Ouie> What does it do with its argument then…?
bradleyprice has quit [Remote host closed the connection]
Lewix has joined #ruby
gauke has quit [Quit: gauke]
spastorino has quit [Quit: Connection closed for inactivity]
<Mon_Ouie> I don't understand why you passed a string to command and now you're passing the return value of system
bradleyprice has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<Mon_Ouie> (which is true/false/nil)
radic_ has quit [Ping timeout: 240 seconds]
<user232> Mon_Ouie: Maybe I misundestood your answer to use system('x'). How can I use that for my test?
root3d has joined #ruby
gauke has joined #ruby
Soliah has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 250 seconds]
ptrrr has quit [Quit: ptrrr]
<Mon_Ouie> I don't know because I don't understand what command('x') does
Lewix has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
<user232> Mon_Ouie: For better understanding: I search a way to execute the system command 'vagrant up vm' and check it's return value. I can do that with: http://serverspec.org/resource_types.html#command, but that does not print the stdout of the executed command to stdout.
goshdarnyou has quit [Quit: Connection closed for inactivity]
<Mon_Ouie> All system('x') does is run the command you give it and it returns true if the exit status was 0
InhalingPixels has joined #ruby
<user232> Mon_Ouie: I know. And how would a rspec test for that look like?
BraddPitt has quit [Read error: Connection reset by peer]
<Mon_Ouie> I don't really use RSpec. I'd guess system(x).should == true
root3d has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
Xeago has joined #ruby
<sevenseacat> expect(system(x)).to be_true
goganchic has joined #ruby
BraddPitt has joined #ruby
root3d has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
hiall has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
hiall has quit [Client Quit]
yfeldblum has joined #ruby
madzhuga has quit [Quit: Computer has gone to sleep.]
<user232> Thats it!. Thanks.
<jokke> hi
<jokke> any chruby users here?
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madzhuga has joined #ruby
<sevenseacat> yep
<jokke> i thought i'd give it a try
oo_ has quit [Remote host closed the connection]
<jokke> sevenseacat: is it possible to set default make flags for ruby-install?
<sevenseacat> it gets out of my way and lets me do stuff. i honestly dont think ive looked at it once since installing it.
oo_ has joined #ruby
<sevenseacat> thats got nothing to do with chruby
<jokke> sevenseacat: yeah i like the approach
<jokke> well in a way.. it's the same dev
<sevenseacat> yeah, but two entirely separate projects
<jokke> i know that
SilkFox_ has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<jokke> well i shouldve asked: any ruby-install users here?
<sevenseacat> probably a better question :P
<jokke> i noticed it's building rubys with only one cpu core so i was looking for a way to pass -j5 to the make command
<jokke> ah
mikecmpbll has joined #ruby
<jokke> i just realized there's a MAKEFLAGS env var
user232 has quit [Quit: Page closed]
madzhuga has quit [Ping timeout: 245 seconds]
<jokke> awesome. That did the trick
* jokke enjoys 4 x faster ruby builds
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
Bumptious has quit [Remote host closed the connection]
jheg has joined #ruby
madzhuga has joined #ruby
Bumptious has joined #ruby
Wolland_ has joined #ruby
echooo1 has joined #ruby
Takle has joined #ruby
echooo has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 240 seconds]
arya_ has quit [Read error: Connection reset by peer]
LangeOortjes has quit []
jay__ has joined #ruby
LangeOortjes has joined #ruby
<jay__> I'm using OptionParser and this is my code and error: https://gist.github.com/anonymous/d936c0137c0b1388c661 Does anyone know what i'm doing wrong?
ptrrr has joined #ruby
YamakasY has joined #ruby
<YamakasY> hey guys!
goganchic has quit []
gkagan has joined #ruby
<riotjones> jay__, wrong arguments
<jay__> For the api call?
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<YamakasY> guys is it possible to run thought an array where there is automaticly added, first, second, third, etc ?
mercwithamouth has quit [Ping timeout: 240 seconds]
gkagan has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
<tobiasvl> YamakasY: it's probably possible, but can you please rephrase your question?
<tobiasvl> I don't understand what you want to achieve
arya_ has joined #ruby
<YamakasY> tobiasvl: just a sec, pastie
<YamakasY> tobiasvl: like here http://pastebin.com/AXKPzPSE
<YamakasY> each nic will have first, second, third... etc in the array... but I would actually have everything behind each number in the if
<tobiasvl> okay, I still don't understand your vague "first, second, third" and "each number" stuff
Fractional has joined #ruby
coderhs has joined #ruby
<Fractional> Is it common to see foo(people: 1, horses: 4) as a method call?
krisquigley has joined #ruby
kaspertidemann has joined #ruby
peret has joined #ruby
<Fractional> And what are the advantages/disadvantages of doing so compared to foo(1, 2)?
<YamakasY> tobiasvl: interfaces gives back an array
<YamakasY> that array will hold, first, second, third
beemo has quit [Read error: Connection reset by peer]
<tobiasvl> Fractional: advantages should be clear: it explicitly tells you what the arguments to the call is, and you can also switch the order around
<tobiasvl> disadvantages: none, I think? you need a new ruby…
<tobiasvl> YamakasY: yes. go on
<Fractional> tobiasvl: Do you know if there is any difference in performance?
<tobiasvl> no idea!
aspiers has joined #ruby
thomasxie has quit [Quit: Leaving.]
fold has quit [Ping timeout: 255 seconds]
<tobiasvl> it uses a hash internally, so might be, but you shouldn't shy away from nice things because of performance (ruby isn't that fast anyway)
yubrew has joined #ruby
agjacome has joined #ruby
<YamakasY> tobiasvl: ok so I want to loop though all, first, second, and so on... and getting it's values in an if
<tobiasvl> YamakasY: okay. you do already loop through them in the first line.
<tobiasvl> you get its values in the variable "int".
<tobiasvl> what do you mean you want to get it in an if?
<YamakasY> tobiasvl: yes, but my issue is, I need to add first, second, third in my tamplates to get the values, where i want to use one template
<YamakasY> *templates
Fractional has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
<YamakasY> tobiasvl: but how!
mattias_ has joined #ruby
<YamakasY> tobiasvl: i have interfaces.XXX.name which is my identifier for each
<tobiasvl> I don't know because I still cannot for the life of me understand what you mean
lkba has quit [Ping timeout: 260 seconds]
<diegoviola> what the hell
<YamakasY> tobiasvl: it's just an array what I get back of all nics but seperated with first, second,
<tobiasvl> YamakasY: yes, sure. so you can access that with int.name inside the block, right?
<mattias_> Hey, I've used a tutorial for making a template in haml, where I could pass some variables (context)... now I want to switch to ERB. Template shows, but how can I pass a variable?
<YamakasY> tobiasvl: no it doesn't :(
<YamakasY> tobiasvl: would .each do first, second, etc ?
<diegoviola> I've just talked to a potential client the other day and the person I talked to asked me for a reference, the reference was a person I happily worked with, and this potential client asked the reference what's my salary compensantion, without asking me first? *sigh*
arup_r has joined #ruby
<tobiasvl> YamakasY: please explain what you mean by "first, second, etc". you've used those words several times now. it's a very imprecise way of saying "does it iterate through all elements", if that's what you mean. the answer to that is yes, each would do that, and in fact it DOES already do that, in your very first line of code
<sevenseacat> if you gave the reference, everything is fair game
<diegoviola> sevenseacat: salary compensation is supposed to be a personal thing, isn't it?
<sevenseacat> that depends on a lot of things
lxsameer has quit [Ping timeout: 240 seconds]
<diegoviola> it's common sense
<YamakasY> tobiasvl: each nic is identifies with first, second, third in the array
<YamakasY> *identiefied
<sevenseacat> diegoviola: maybe inside your head
<diegoviola> I'm also told it's illegal to do that sort of thing in the US
<sevenseacat> whats the difference between the client asking you your last salary, or the client asking your reference directly
<tobiasvl> YamakasY: yes
<sevenseacat> unless you were planning on inflating it
<YamakasY> tobiasvl: so I need to get each value from first, second, third, etc into that block
<tobiasvl> you already do
<YamakasY> tobiasvl: it doesn;t recognize it
yacks has quit [Ping timeout: 246 seconds]
<YamakasY> just asec btw
<YamakasY> I changed something
<tobiasvl> doesn't recognize what??
<diegoviola> sevenseacat: I wasn't planning to inflate anything, what bothers me here is that they ask personal questions to my client and not me directly, he didn't even ask me if I would bill hourly or if I was expecting a salary
<diegoviola> sevenseacat: I wouldn't have an issue if they asked that question to me first and then my client
<sevenseacat> so?
<sevenseacat> i dont know why you have an issue at all
<YamakasY> tobiasvl: I'm using foreman as ENC... when something is not set you get an error
<diegoviola> it's called respecting people and not acting like a cheapskate
<sevenseacat> you seem to get worked up about a lot of really trivial things
<sevenseacat> news flash: everyone is a cheapskate
<tobiasvl> YamakasY: foreman? enc? what are those things? I have no idea what you're talking about. do you have an actual ruby question that you can phrase so we can understand it?
<diegoviola> sevenseacat: sorry, I'm just annoyed this happens a lot every time, people always trying to make people work for nothing...
<sevenseacat> and you'd do the same if you could
druznek has joined #ruby
alexherbo2 has joined #ruby
<YamakasY> tobiasvl: ok did it !
<diegoviola> right
<YamakasY> tobiasvl: it's a ruby based app
<YamakasY> tobiasvl: thanks for verifying
Zebroid has joined #ruby
gaussblurinc1 has joined #ruby
m8 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
jay__ has quit [Remote host closed the connection]
txdv has quit [Read error: Connection reset by peer]
root3d has quit [Ping timeout: 255 seconds]
bearish has joined #ruby
InhalingPixels has joined #ruby
bearish has quit [Remote host closed the connection]
txdv has joined #ruby
iteratorP has quit [Remote host closed the connection]
andrewlio has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
root3d has joined #ruby
SilkFox_ has joined #ruby
oo_ has joined #ruby
patrick99e99 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
druznek has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
pasties has quit [Ping timeout: 250 seconds]
iteratorP has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
mityaz has quit [Ping timeout: 245 seconds]
mityaz has joined #ruby
Soda has quit [Remote host closed the connection]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya_ has quit [Read error: No route to host]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pasties has joined #ruby
einarj has joined #ruby
yacks has joined #ruby
philcrissman has joined #ruby
Wolland_ has quit [Remote host closed the connection]
Wolland has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
gkagan has joined #ruby
jhass|off is now known as jhass
tlarevo has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
Wolland has quit [Ping timeout: 255 seconds]
gkagan has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
moritzs has joined #ruby
lw has joined #ruby
Takle has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
mattias_ has quit [Quit: leaving]
yubrew has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
whyy has quit [Remote host closed the connection]
arup_r has joined #ruby
lxsameer has joined #ruby
<shevy> in general for all programming languages
<shevy> is 2 spaces, 4 spaces or one level of tab-indent more widespread?
ctp has joined #ruby
Takle has joined #ruby
<matti> shevy: 8 spaces ;]
<matti> ;p
<tobiasvl> I'd guess one tab is most widespread probably? no stats to back it up, but that seems to be the default for many IDEs
<tobiasvl> or 8 spaces, yeah
<DefV> 2 spaces
<shevy> I am looking at a bash shell script right now, the guy who wrote it used 4 spaces
<tobiasvl> DefV: really. in all code worldwide, you think 2 spaces is more prevalent?
<DefV> no, I'm just bikeshedding with my own preference
<tobiasvl> hehe :)
<matti> Haha
<shevy> :)
<matti> DefV: :)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasvl> shevy: yeah, 4 spaces is very common. perhaps 2nd place after one tab or 8 spaces I'd guess
<shevy> hmmmm
<shevy> 8 spaces sounds devilish
<tobiasvl> it is
RedDwarf has joined #ruby
<workmad3> shevy: I tend to do things like bash scripts or java code with 4 spaces... 8 spaces always seems way too much to me
<DefV> how wide are your screens
<DefV> 8 spaces :-|
<tobiasvl> but it's prevalent because a tab usually is visualized as 8 spaces
Zackio has quit [Ping timeout: 264 seconds]
<tobiasvl> unless you actively change it
<shevy> my current resolution is 1920x1080
<tobiasvl> in windows to be sure, but also in linux (gnome) – open gedit and type a tab, and it's 8 spaces wide
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<workmad3> tobiasvl: I wonder how many tab-8space files were written by coders who had set the tab down to 4 spaces but not changed them to soft tabs... and then left the project, and someone else picked it up with the wrong settings and propagated an '8 space indent' meme :)
<tobiasvl> shudder
banister has joined #ruby
<shevy> hmm
<shevy> so we ruby guys are really not the norm when we use 2 spaces
<workmad3> shevy: no
<tobiasvl> hardly
whyy has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
<workmad3> shevy: iirc, pythoners tend to prefer 4-space soft-tabs
<tobiasvl> I also prefer 4-space soft-tabs tbh, and also use it for ruby
decoponio has joined #ruby
threesixes has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Takle has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 255 seconds]
craigp has quit [Remote host closed the connection]
<shevy> I like my scaly friends
Takle_ has joined #ruby
beemo has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
craigp has joined #ruby
sparrovv has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
Takle_ has quit [Remote host closed the connection]
root3d has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 250 seconds]
jds has joined #ruby
craigp has quit [Ping timeout: 255 seconds]
Fractional has joined #ruby
W0rmDr1nk has joined #ruby
ctp has quit [Ping timeout: 272 seconds]
craigp has joined #ruby
joonty has joined #ruby
kaspertidemann has quit []
SilkFox_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mengu has joined #ruby
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
coderhs has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
paolooo has joined #ruby
Advocation has joined #ruby
Azure has quit [Remote host closed the connection]
fabrice31 has joined #ruby
DEA7TH has joined #ruby
Soda has joined #ruby
duncannz has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 260 seconds]
druznek has joined #ruby
godd2 has joined #ruby
whyy has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 264 seconds]
Fractional has quit [Remote host closed the connection]
<godd2> morning, each
qba73 has joined #ruby
Photism has quit [Quit: Leaving]
<tobiasvl> freenode.channels[:ruby].users.each {|user| user.greet("morning") }
gkagan has joined #ruby
Azure has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
yubrew has joined #ruby
<godd2> Can you do the .each(&:greet) trick and still send "morning" somehow?
lukeholder has joined #ruby
<workmad3> godd2: not out the box, no
<tobiasvl> well we could have a method that bases its greeting on the time of day automatically
<workmad3> godd2: although .each_with_object("morning", &:greet) should do it...
lxsameer has joined #ruby
gkagan has quit [Ping timeout: 245 seconds]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
lukeholder has quit [Client Quit]
GriffinHeart has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
coderhs has joined #ruby
beemo has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
SCHAAP137 has joined #ruby
Guest26571 has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
inbox has joined #ruby
sambao21 has joined #ruby
shredding has quit [Quit: shredding]
lukeholder has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
<inbox> i can’t scrap this site? http://bus.go.kr/shortPath.jsp?mnuNm=5
kaspertidemann has joined #ruby
spider-mario has quit [Remote host closed the connection]
Blizzy has quit [Ping timeout: 240 seconds]
Skwallinux has quit [Ping timeout: 255 seconds]
tkuchiki_ has joined #ruby
bearish has joined #ruby
maximski has joined #ruby
bearish_ has joined #ruby
xenomorph is now known as {xenomorph}
EasyCo has quit [Quit: Connection closed for inactivity]
<inbox> ruby programmer, what are you doing?
<godd2> Programming ruby, of course
coderhs has quit [Ping timeout: 264 seconds]
karupa is now known as zz_karupa
<inbox> i can’t scrap this site? http://bus.go.kr/shortPath.jsp?mnuNm=5 help me godd2 ruby programmer.
tkuchiki has quit [Ping timeout: 250 seconds]
maximski has quit [Max SendQ exceeded]
tkuchiki_ has quit [Ping timeout: 240 seconds]
<georgesmith> scrap?
<tobiasvl> inbox: what are you talking about?
<inbox> yes
bearish has quit [Ping timeout: 260 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mijicd has quit [Remote host closed the connection]
spider-mario has joined #ruby
{xenomorph} is now known as xenomorph
<inbox> that site can’t not be scrapped?
Akagi201 has quit []
<georgesmith> what do you mean by scrapped?
<inbox> web scrap
maximski has joined #ruby
<georgesmith> scrape?
<inbox> yes
maximski has quit [Max SendQ exceeded]
<tobiasvl> is this a ruby related question?
Trynemjoel has joined #ruby
mijicd has joined #ruby
<inbox> of cource
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
xcv has joined #ruby
<georgesmith> i’m not sure it is
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
<shevy> inbox have you used open-uri yet
<shevy> require 'open-uri'; x = open(URL_GOES_HERE).read; puts x
<inbox> open url? what is it?
<poulet_a> or mechanize :3
<inbox> but site is strange.
<inbox> i think that sites have ajax.
<inbox> right?
<txdv> Sites have ajax
<txdv> MIND BLOWN
<inbox> right?
<inbox> then i can’t scrap that site?
Takle has quit [Remote host closed the connection]
<tobiasvl> who knows
<inbox> you know. :)
<tobiasvl> nope
<tobiasvl> I'm a ruby programmer, not a web programmer, and I never scrape websites
patrick99e99 has joined #ruby
<txdv> of course you can
<txdv> Just use phantomjs or whatever ruby has to offer
bearish_ has quit [Remote host closed the connection]
<inbox> phantomjs?
<inbox> what is it?
coderhs has joined #ruby
bearish has joined #ruby
DEA7TH has quit [Ping timeout: 246 seconds]
<inbox> txdv:
<txdv> yeah, let me fucking google that for you
jespada has joined #ruby
<inbox> oh thanks
<inbox> :)
gaussblurinc1 has quit [Quit: Leaving.]
patrick99e99 has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 255 seconds]
Grantlyk has joined #ruby
philcrissman has joined #ruby
TorpedoSkyline has joined #ruby
gccostabr has joined #ruby
TorpedoSkyline has quit [Client Quit]
nfk has joined #ruby
<godd2> What is this "web"? Some sort of delivery mechanism?
philcrissman has quit [Ping timeout: 250 seconds]
<txdv> its where spiders lay there eggs
himsin has joined #ruby
<godd2> I heard sometimes birds come and eat the spiders, and then they tweet.
workmad3 has quit [Ping timeout: 246 seconds]
emandari has joined #ruby
bearish has joined #ruby
TorpedoSkyline has joined #ruby
Guest8257 has quit [Quit: leaving]
yubrew has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
shock_one has joined #ruby
narcan has joined #ruby
crdpink has joined #ruby
gkagan has joined #ruby
crdprink2 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
dorei has joined #ruby
matrixis1 is now known as matrixise
beemo_ has joined #ruby
Skwallinux has joined #ruby
shredding has joined #ruby
whyy has joined #ruby
ht__th has quit [Remote host closed the connection]
nuck has quit [Read error: Connection reset by peer]
ht__th has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
bove_ has joined #ruby
<bove_> I'm trying to install Ruby and Rails on a Ubuntu 14 server, but rbenv have installed an old version of gem. How can I upgrade that?
xenomorph is now known as {xenomorph}
{xenomorph} is now known as xenomorph
nuck has joined #ruby
SilkFox_ has joined #ruby
osvico has joined #ruby
oo_ has quit [Remote host closed the connection]
Haiiro has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
<godd2> bove_ try asking over in #rubyonrails
Haiiro has quit [Quit: Textual IRC Client: www.textualapp.com]
malkomalko has joined #ruby
<bove_> godd2: thanks!
sambao21 has joined #ruby
InhalingPixels has joined #ruby
bove_ is now known as bove
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
osvico has quit [Ping timeout: 255 seconds]
Grantlyk has quit [Remote host closed the connection]
SilkFox has joined #ruby
<shevy> anyone can match to date string "2011-03-29 11:27" via a regex quickly
agjacome has quit [Quit: leaving]
<shevy> ah well
<shevy> I go the stupid route
<shevy> \d\d\d\d-\d\d-\d\d \d\d:\d\d
<gr33n7007h> Packet capturing/injecting disabled. (no PcapRub) <=# how to install this package in debian
<jhass> shevy: why not strptime?
<shevy> debian sucks
codecop has quit [Remote host closed the connection]
<shevy> jhass hmm
<jhass> or even just Time.parse
<godd2> \d{4}(-\d{2}){2} \d{2}:\d{2}
emandari has quit [Ping timeout: 272 seconds]
Haiiro has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
<shevy> hehe
<shevy> that is about as long as the other regex
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo__ has joined #ruby
<godd2> if you want to get fancier, you can make it longer but store to local hash vars
<jhass> >> require 'time'; Time.parse("2011-03-29 11:27")
<eval-in> jhass => 2011-03-29 11:27:00 +0000 (https://eval.in/181609)
oo_ has quit [Read error: Connection reset by peer]
<godd2> or yea use the tools that are shipped with ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
emandari has joined #ruby
<shevy> yeah, I need to store it as part of a longer capture group; I am trying to take http://ftp.gnome.org/pub/GNOME/sources/?C=M;O=D as input and then present something like "In the last 8 days, these programs had new releases: evince, geary, gtksourceview etc..."
Lewoco has quit [Quit: Leaving]
<jhass> grab a ftp client and query the mdates?
<godd2> I love how git shows your longest daily commit streak. It makes me want to keep every day green
<jhass> godd2: you mean github?
lkba has joined #ruby
<godd2> yes I did, thank you
osvico has joined #ruby
moritzs has joined #ruby
Lewix has joined #ruby
<shevy> I just typed "anonymouse logins"
<godd2> we are anonymouse. we will eat cheese. we do not forgive. we do not forget.
SilkFox has quit [Ping timeout: 272 seconds]
<shevy> lol
Takle has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
druznek has quit [Ping timeout: 245 seconds]
maximski has quit []
ctp has quit [Ping timeout: 255 seconds]
gaussblurinc1 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.0]
kriskropd has quit [Ping timeout: 250 seconds]
ctp has joined #ruby
mijicd has quit [Quit: leaving]
gnephiak has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
gnephiak is now known as khfeng
workmad3 has joined #ruby
workmad3 is now known as wm3|busy
dawkirst has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 264 seconds]
banister is now known as banisterfiend
mengu has quit [Remote host closed the connection]
Sgeo has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
agjacome has joined #ruby
qba73 has quit []
SilkFox has quit [Ping timeout: 272 seconds]
<shevy> wheeee
<shevy> 156) gthumb -> 2014-05-18 09:45
<shevy> 157) gdm -> 2014-05-16 17:24
Danibal has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has quit [Quit: Advocation]
kriskropd has joined #ruby
inbox has quit [Quit: inbox]
tkuchiki has joined #ruby
bearish has quit [Remote host closed the connection]
claymore has joined #ruby
bearish has joined #ruby
lukeholder has joined #ruby
bearish has quit [Remote host closed the connection]
<wasamasa> btw
<wasamasa> where the hell is gogohome
bearish has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<wasamasa> did he get bored?
phoo1234567 has joined #ruby
lukeholder has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
yubrew has joined #ruby
<wasamasa> "<gogohome> i want stop my programming now."
<wasamasa> oh well
kriskropd has joined #ruby
kriskropd has quit [Changing host]
kriskropd has joined #ruby
<godd2> "Telling computers what to do SUCKS BALLS"
hellangel7 has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
Skwallinux has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
Zebroid has quit [Remote host closed the connection]
kunday has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
kunday has left #ruby [#ruby]
<shevy> hopefully he went away
<shevy> godd2 yeah
<wasamasa> shevy: well, I'm not so sure about that
<shevy> one day programming will be different
<wasamasa> "40816.log:[08:18:04] <gogohome> i will stop programming anymore."
Advocation has joined #ruby
<shevy> imagine if we could instruct a computer to write the code that does something for us
<wasamasa> "40816.log:[09:44:51] <gogohome> i can do programming without help of #python?"
<wasamasa> he didn't hold out for more than an hour
<sonOfRa> If I have private methods in a module, will they end up as private methods in whatever includes them, or will they not be accessible?
<wasamasa> "40816.log:[09:46:10] *** gogohome is now known as fly2web_"
<godd2> shevy that's what a compiler is
<tobiasvl> oh lord fly2web
<shevy> man wasamasa
<shevy> you like gogohome way too much
Advocation has quit [Client Quit]
<wasamasa> shevy: well, he's the source of my entertainment
<shevy> I'll make sure to tell him to ask you to unban him when I see him again
<wasamasa> it's pretty bad entertainment, but hey, who cares
<shevy> godd2 the compiler can only convert existing code or?
TorpedoSkyline has joined #ruby
<shevy> sonOfRa it is very simple to test it - let's see
<shevy> >> module Foo; def bar; puts 'hi'; end; private :bar; end; class Bar; include Foo; end; Bar.new.bar
<eval-in> shevy => private method `bar' called for #<Bar:0x4114d96c> (NoMethodError) ... (https://eval.in/181620)
TorpedoSkyline has quit [Client Quit]
<shevy> sonOfRa so the answer is - they will become a private method in any class you include that module
<sonOfRa> as one would expect, thanks
<banisterfiend> apeiros ping
cocotton has joined #ruby
<shevy> godd2 it would be cool to describe to the computer what is wanted, then the computer will generate that code for you
<godd2> You just described compilation
<sonOfRa> and, to a degree, genetic algorithms
cocotton has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
Bish has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
Nahra has joined #ruby
aclearman037 has joined #ruby
<godd2> There's no processor out there that understands "int x = 3;". we have other programs (compilers) translate that to machine code for us
gkagan has joined #ruby
<shevy> godd2 ok can you show me the machine that will generate code for "please write a program for me that will fetch an URL and return all programs that were updated in the last 10 days"
tkuchiki has joined #ruby
LangeOortjes has quit []
<godd2> you mean write you a program in a computer language you understand?
<sonOfRa> it's called google
LangeOortjes has joined #ruby
<sonOfRa> :P
<godd2> cause you didnt say that before :)
<shevy> well it does not have to be a computer language the human understands
<shevy> the important part is that it would work
<shevy> google is unfortunately not intelligent
_5kg has quit [Ping timeout: 240 seconds]
inbox has joined #ruby
Blue_Ice has quit [Ping timeout: 255 seconds]
Bish has joined #ruby
kaspertidemann has quit []
<godd2> There isn't a language that engages in arbitrary English language parsing as far as I know
HelperW has quit [Remote host closed the connection]
Blue_Ice has joined #ruby
Blue_Ice has joined #ruby
Blue_Ice has quit [Changing host]
<godd2> The closest we have are higher level languages that have rudimentary parsers like Ruby
mengu has quit [Remote host closed the connection]
chaos___________ has quit [Ping timeout: 255 seconds]
HelperW has joined #ruby
<godd2> But fundamentally, when you write a ruby script, you're asking a program (ruby) to generate machine code for what you wrote
<sonOfRa> the folks of wolframalpha do pretty interesting natural language processing
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
cocotton has joined #ruby
Nahra has quit [Remote host closed the connection]
gkagan has quit [Ping timeout: 260 seconds]
<shevy> human beings have no difficulty with the english language
dawkirst has joined #ruby
<godd2> Also, and this is a personal belief, but humans are just glorifies machines, and a programmer is someone who generates code for English language requests
<godd2> glorified*
<shevy> ruby is just syntactic sugar over C :(
mary5030 has joined #ruby
krz has joined #ruby
britneywright has joined #ruby
Fire-Dragon-DoL has joined #ruby
<godd2> Ruby -> C -> ASM -> machine code
codecop has joined #ruby
_5kg has joined #ruby
<shevy> the next evolutionary step is voice based programming
<godd2> fun fact, did you know that in the Ruby source code, the code for `puts` uses a goto?
sparrovv has joined #ruby
<wasamasa> shevy: like that guy?
<shevy> I am way too scared to look at the ruby source code
<olivier_bK> shevy, the english language is not diffuclt
<shevy> eam said that the ruby parser is a thing of abomination
<inbox> i want study of newtwork realting tcp ip packet……. then how can i study?
SilkFox_ has joined #ruby
sambao21 has joined #ruby
<wasamasa> olivier_bK: yet you struggle at it
mary5030 has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 240 seconds]
<olivier_bK> wasamasa, it's not true : )
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
<shevy> is inbox actually gogohome?
<godd2> I laugh when people don't like to extract methods, but they're perfectly comfortable not knowing what puts does
<inbox> ?
<inbox> i m russian
<inbox> my name is sergei
<wasamasa> shevy: nah, his english is too good
<inbox> in siveria
<shevy> ok
<wasamasa> "<olivier_bK> how i can gsub [ i tyr like that / \ [ / but i get nothing normally it's a special character"
<wasamasa> doesn't look like mastery to me
<wasamasa> anyways
<godd2> well English isn't a regular language. maybe that's tripping him up
<inbox> i m not good at english. because i m Russian.
luckyruby has joined #ruby
<wasamasa> inbox: learn english, study books, write code
<wasamasa> inbox: that's the way it goes
tkuchiki has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
<wasamasa> inbox: oh and perhaps you'll have more success using C since most networking code uses that
<inbox> i just want know about internet like tcp ip packet
<shevy> wasamasa I dunno ... it too much reminds me of gogohome ...
<olivier_bK> wasamasa, when i asking this question i was drunk
<olivier_bK> :)
<olivier_bK> lol..
<godd2> inbox unless you want to code low level web stuff you probably don't need to know about that
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<inbox> i already know c, so i want know internet
<wasamasa> inbox: great, write your own implementation
lucianosousa has joined #ruby
<wasamasa> inbox: come back in three months
xcv has quit [Read error: Connection reset by peer]
<inbox> oh
tlarevo has quit [Read error: Connection reset by peer]
xcv has joined #ruby
<jhass> inbox: http://en.wikipedia.org/wiki/OSI_model gets you close enough
<inbox> thanks jhass
Takle has quit [Remote host closed the connection]
<inbox> other? jhass
<Nowaker> anyone used libvirt bindings in ruby? are they as well as python ones? i'll be soon starting my work on www.virtkick.io so that would be good to know in advance ;)
<jhass> inbox: all the articels linked there
<inbox> oh good
<pontiki> andy tanenbaum's books were all we had
<inbox> thanks
<pontiki> they were great
<inbox> :)
Takle has joined #ruby
<pontiki> that and the rfcs
peret has quit [Disconnected by services]
<jhass> inbox: also grab wireshark along the way and watch the theortical stuff there happen in your network
<inbox> oh
<inbox> i use wireshark. but i want grab other ip data instead of my ip data
<inbox> how can i do?
<jhass> start reading the linked resources and eventually you'll understand why there's no general answer to that
<inbox> ok i see i think that you are kind ruby programmer.
<inbox> jh
<inbox> jhass:
Takle has quit [Ping timeout: 240 seconds]
gkagan has joined #ruby
Danibal has quit [Read error: Connection reset by peer]
Danibal_ has joined #ruby
gogohome has joined #ruby
godd2 has quit [Remote host closed the connection]
maroloccio has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<tobiasvl> inbox: are you fly2web?
<inbox> ?
<inbox> what mean?
LangeOortjes has quit []
<inbox> i m Russian
<inbox> my name is sergei
<inbox> in siveria
Danibal_ has quit [Client Quit]
emocakes has joined #ruby
Nahra has joined #ruby
dawkirst has joined #ruby
RedDwarf is now known as Zackio
<inbox> tobiasvl: ?
druznek has joined #ruby
<tobiasvl> inbox: ok
<inbox> yw
inbox has left #ruby [#ruby]
TC` has joined #ruby
arya_ has joined #ruby
easier has joined #ruby
<TC`> Hello. Can anyone advise my, how can i parse any file name to rake without bracks [] ? For ex. 'rake run any_file_name.txt'
sparrovv has quit [Remote host closed the connection]
<TC`> advise me*
yfeldblum has quit [Remote host closed the connection]
poulet_a has quit [Quit: Quitte]
poulet_a has joined #ruby
xcv has quit [Remote host closed the connection]
Takle has joined #ruby
xcv has joined #ruby
HelperW_ has joined #ruby
<TC`> http://rake.rubyforge.org is offline :(
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
gr33n7007h has quit [Ping timeout: 245 seconds]
philcris_ has joined #ruby
<TC`> Thank you, jhass, very much!
HelperW has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
kedric has joined #ruby
tkuchiki has joined #ruby
philcris_ has quit [Ping timeout: 240 seconds]
Akagi201 has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
paulfm has joined #ruby
Haiiro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xenomorph is now known as {xenomorph}
tkuchiki has quit [Ping timeout: 245 seconds]
lukeholder has joined #ruby
<pontiki> rubyforge.org is gone entirely, isn't it?
lukeholder has quit [Max SendQ exceeded]
<jhass> seems like it
lukeholder has joined #ruby
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
<wasamasa> why does everything still link to it then
yacks has quit [Read error: Connection reset by peer]
obscured has joined #ruby
coderhs has joined #ruby
yubrew has joined #ruby
<jhass> because people
DeanH has joined #ruby
brothmars has joined #ruby
<wasamasa> I mean, rubygems has the power to not do it
<wasamasa> since it's dynamic and all
<pontiki> part of the fun with working with volunteers, wasamasa
dblessing has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lukeholder has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Dusty___ has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
bmurt has joined #ruby
qwyeth has joined #ruby
ValicekB has joined #ruby
{xenomorph} is now known as xenomorph
claymore has quit [Quit: Leaving]
frankle has joined #ruby
xcv_ has joined #ruby
minver has joined #ruby
<minver> Using Thor, how can I add data to end of a class? The #inject_into_class method adds text right after the class definition
anaeem1 has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 245 seconds]
xcv has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
freerobby has quit [Client Quit]
anildigital is now known as zz_anildigital
tylerkern has joined #ruby
pasv has quit [Ping timeout: 255 seconds]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
Ilyas_ has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
lukeholder has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
lukeholder has quit [Max SendQ exceeded]
paulfm has joined #ruby
Channel6 has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
lukeholder has joined #ruby
willbarrettdev has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
notodg has joined #ruby
<pontiki> minver, you'll probably have to figure out how to make insert_into_file work
_marsi_ has quit [Quit: Leaving]
livingstn has joined #ruby
jobewan has joined #ruby
lukeholder has quit [Client Quit]
moritzs has joined #ruby
yfeldblu_ has joined #ruby
devdazed has joined #ruby
druznek has quit [Quit: Leaving]
coderhs has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
axilla has joined #ruby
lolmaus has quit [Ping timeout: 250 seconds]
banister has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
jerius has joined #ruby
Aranshada|W has joined #ruby
banister has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
yfeldblu_ has quit [Ping timeout: 260 seconds]
klemanski has joined #ruby
<klemanski> Hi, I've got problem with regexp stopping Ruby (MRI/JRuby) - https://gist.github.com/kml/74f9b26a1eb39da7f8cd
freerobby has quit [Client Quit]
<klemanski> maybe you can have some suggestion what is wrong with it?
<klemanski> it looks quite simple
agent_white has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
Tenda has joined #ruby
momomomomo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
snath has quit [Ping timeout: 260 seconds]
Tenda has quit [Quit: Quit]
sambao21 has joined #ruby
zz_anildigital is now known as anildigital
agent_white has joined #ruby
Tenda has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
coreycondardo has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 272 seconds]
v0n has joined #ruby
InhalingPixels has joined #ruby
tylerkern has joined #ruby
lxsameer has quit [Quit: Leaving]
Ilyas has joined #ruby
doodlehaus has joined #ruby
ValicekB has joined #ruby
anarang has quit [Quit: Leaving]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yacks has joined #ruby
sylvanica1 is now known as sylvanica
mahtennek has joined #ruby
spastorino has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 250 seconds]
Neomex has joined #ruby
gogohome has left #ruby [#ruby]
Soda has quit [Remote host closed the connection]
agent_white has joined #ruby
<shevy> wasamasa usually it takes a little while for people to realize that some websites are gone
agent_white has quit [Write error: Connection reset by peer]
davispuh has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
jusmyth has joined #ruby
oo__ has quit [Remote host closed the connection]
jusmyth has left #ruby [#ruby]
mark_locklear has joined #ruby
maroloccio has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
Tenda has left #ruby [#ruby]
oo_ has joined #ruby
sandelius has joined #ruby
dpestilli has joined #ruby
sandelius has quit [Client Quit]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister is now known as banisterfiend
sonofflynn has left #ruby [#ruby]
tkuchiki has joined #ruby
ta has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dpestilli is now known as DaniG2k
oo_ has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
AlexBlom has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
TC` has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Channel6 has quit [Quit: Leaving]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
Lewix has quit [Remote host closed the connection]
coderhs has joined #ruby
lukeholder has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
lukeholder has quit [Max SendQ exceeded]
shock_one has quit [Quit: Computer has gone to sleep.]
shock_one has joined #ruby
lukeholder has joined #ruby
agent_white has joined #ruby
yubrew has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
mary5030 has joined #ruby
lukeholder has quit [Max SendQ exceeded]
cmoneylulz has joined #ruby
paulfm has quit []
lukeholder has joined #ruby
beemo_ has quit [Remote host closed the connection]
cmoneylulz has quit [Client Quit]
ringarin has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
georgesmith has left #ruby [#ruby]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bluenemo has quit [Quit: Verlassend]
_tpavel has quit [Quit: Leaving]
Takle has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
qmfnp has joined #ruby
moritzs has quit [Remote host closed the connection]
Aaaal has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
shackleford has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anildigital is now known as zz_anildigital
shackleford has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
havenwood has joined #ruby
starkhalo has joined #ruby
xenomorph is now known as {xenomorph}
linojon has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
{xenomorph} is now known as xenomorph
sindork has joined #ruby
sindork has quit [Changing host]
jsaak has joined #ruby
ffranz has joined #ruby
xcv_ has quit [Remote host closed the connection]
gregf has joined #ruby
xcv has joined #ruby
asteve has joined #ruby
agent_white has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
asteve has quit [Max SendQ exceeded]
agent_white has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
asteve has joined #ruby
asteve has quit [Max SendQ exceeded]
m8 has joined #ruby
lamasnik2 has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
asteve has joined #ruby
asteve has quit [Max SendQ exceeded]
hamakn has quit [Remote host closed the connection]
shock_one has joined #ruby
freerobby has joined #ruby
asteve has joined #ruby
dopie has quit [Remote host closed the connection]
AlexBlom has quit [Quit: This computer has gone to sleep]
hamakn has joined #ruby
Kruppe has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
asteve_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
iamjarvo has joined #ruby
momomomomo has quit [Quit: momomomomo]
asteve has quit [Ping timeout: 260 seconds]
shock_one has quit [Quit: Lingo - http://www.lingoirc.com]
Ankhers has joined #ruby
<Macaveli> Is it possible to do a each loop in ruby -1 ?
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 264 seconds]
amargherio has joined #ruby
momomomomo has joined #ruby
<havenwood> Macaveli: huh?
yubrew has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Zebroid has joined #ruby
<havenwood> Macaveli: like #downto or something else?
<Macaveli> havenwood i have an array of languages, i want to loop all the languages except of the last one
<havenwood> Macaveli: ahh, gotcha
mkaesz has joined #ruby
Zebroid has quit [Remote host closed the connection]
khfeng has quit [Quit: Konversation terminated!]
<jhass> Macaveli: I think you describe the solution you think you need to your actual problem here
agent_white has joined #ruby
<jhass> what's your actual problem?
agent_white has quit [Read error: Connection reset by peer]
<Macaveli> I don't know how to do it haha :p
amargherio has quit [Ping timeout: 250 seconds]
<jhass> let me rephrase: why do you need to loop over all except the last one?
xenomorph is now known as {xenomorph}
<Macaveli> let me illustrate
oo_ has quit [Ping timeout: 255 seconds]
<Macaveli> jhass ^
<Macaveli> havenwood ^
SilkFox_ has joined #ruby
hsps_ has joined #ruby
<jhass> Macaveli: see, you need: *alternate_languages, current_language = languages
TieSoul has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
<jhass> then map! over the alternate_languages
amargherio has joined #ruby
goshdarnyou has joined #ruby
agent_white has joined #ruby
{xenomorph} is now known as xenomorph
agent_white has quit [Write error: Connection reset by peer]
<Macaveli> jhass I need -> languages.reverse.drop(1).reverse
<jhass> what no
<jhass> if you don't want array decomposition: alternate_languages = languages[0..-2]
AlexBlom has joined #ruby
<Macaveli> how do you excecute code here again?
divi has joined #ruby
<Macaveli> i'll demonstrate
mahtennek has quit []
SilkFox_ has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
InhalingPixels has joined #ruby
treehug88 has joined #ruby
<jhass> now explain me why that's better than [0..-2]
bal has quit [Quit: bal]
<Macaveli> jhass the array can be any size
<Macaveli> aah yeah it's the same :p
<jhass> so
<Macaveli> my bad
<Macaveli> both solutions work :p
sdouglas has quit [Remote host closed the connection]
agent_white has joined #ruby
<jhass> and still
agent_white has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
<jhass> >> languages = %w(en fr nl de); *others, pick = languages; [others, pick]
<eval-in> jhass => [["en", "fr", "nl"], "de"] (https://eval.in/181668)
failshell has joined #ruby
<Macaveli> jhass your solution is 0.000001 times faster
<jhass> this is not about speed
philcrissman has joined #ruby
joonty has quit [Quit: Leaving]
InhalingPixels has quit [Ping timeout: 250 seconds]
lamasnik2 has joined #ruby
hsps_ has quit [Read error: Connection reset by peer]
<havenwood> and it *is* much faster
<havenwood> Macaveli: try a larger Array
beemo has joined #ruby
zeroNones has joined #ruby
<Macaveli> the array size is max 5
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<havenwood> Macaveli: more than one method to achieve your desired goal is silly here
<Macaveli> indeed:p
<havenwood> Macaveli: i could do it in 20 :P
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wm3|busy> Macaveli: doing a speed comparison on two solutions that only looks at 5 elements is unlikely to ever show a difference
Zenigor has joined #ruby
easier has quit [Ping timeout: 255 seconds]
<wm3|busy> Macaveli: the granularity of timing is going to have a larger impact on that than any processing
philcrissman has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
<wm3|busy> Macaveli: also, going for readability is preferable, especially if you know that your maximum count is going to be tiny :P
AlexRussia has quit [Ping timeout: 255 seconds]
aganov has quit [Remote host closed the connection]
tagrudev has quit [Quit: Me = Awesome]
tylerkern has joined #ruby
sysx1000 has joined #ruby
<sonOfRa> I have a wrapper class around Net::LDAP that handles my ldap operations. For error handling, should I raise custom exceptions with an error code, or should I have one exception for each kind of error?
Jim2007 has joined #ruby
<Macaveli> hhaha :p
<wm3|busy> Macaveli: and I don't know about you, but to me 'ary[0..-2]' is much more readable as 'everything but the last item' compared to 'ary.reverse.drop(1).reverse'
Takle has quit [Remote host closed the connection]
<wm3|busy> sonOfRa: depends on if/how you're planning on handling them
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<sonOfRa> In a rails context, generate a 500 page with a different error message depending on what happened
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
ddd has quit [Read error: Operation timed out]
<sonOfRa> so I could either rescue 5 exceptions, or rescue 1, and have a when in there to differentiate different error cases
tkuchiki has quit [Remote host closed the connection]
ddd has joined #ruby
tkuchiki has joined #ruby
ptrrr has quit [Quit: ptrrr]
<wm3|busy> sonOfRa: if you want to differentiate, I'd tend towards separate exceptions personally
madzhuga has quit [Quit: Computer has gone to sleep.]
<theRoUS> wm3|busy: how readable do you find ary[0...ary.size-1] ?
madzhuga has joined #ruby
<wm3|busy> theRoUS: not particularly... but still more so than '.reverse.drop(1).reverse' ;)
<jhass> theRoUS: -2, -1 is just a complicated .dup
DaniG2k has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
maroloccio has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
toastynerd has joined #ruby
terrellt has joined #ruby
TorpedoSkyline has joined #ruby
nemesit|znc has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
Takle has joined #ruby
agent_white has joined #ruby
TorpedoSkyline has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
Jim2007_ has joined #ruby
madzhuga has quit [Ping timeout: 255 seconds]
nemesit|znc has joined #ruby
Jim2007_ has quit [Client Quit]
paulfm_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
snath has joined #ruby
paulfm has quit [Ping timeout: 246 seconds]
aclearman037 has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
hsps_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
<theRoUS> jhass: i was speaking of the general case
notodg has quit [Remote host closed the connection]
aclearman037 has joined #ruby
patrick99e99 has joined #ruby
hooper has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
aclearman037 has quit [Client Quit]
klemanski has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
gauke has quit [Quit: gauke]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jfutbol has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
Kricir has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
maestrojed has joined #ruby
cocotton has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<miah> sup
joonty has quit [Quit: Leaving]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
bluenemo has quit [Quit: Verlassend]
jelera has joined #ruby
MrL0ngbowman has joined #ruby
jmbrown412 has joined #ruby
Girakrok has joined #ruby
agent_white has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
<lolmaus_> I would like to write a method that accepts arguments in a hash form. E. g. `foo bar: 'baz'`. But i would like to be able to pass some of those arguments as a variable, while passing the rest as a hash literal, e. g.: `foo bar, baz: 'quux'`. What is the best way to write such a method?
<miah> the same as you would write any other
<miah> but you build another method where you assemble the hash that you are sending to your other method
gr33n7007h has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<miah> and this method deals with the special 'key: variable' placement
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<miah> or
<miah> ignore my or
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
Lightsword has joined #ruby
cocotton has joined #ruby
jprovazn has quit [Quit: Leaving]
jmbrown412 has quit [Remote host closed the connection]
agent_white has joined #ruby
neaer has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
ringarin has quit [Quit: Leaving]
pandaant has quit [Remote host closed the connection]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amargherio has quit [Ping timeout: 240 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
Lightsword has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Zebroid has joined #ruby
krisquigley has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
Takle_ has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
axsuul has joined #ruby
CaptainJet has joined #ruby
HelperW__ has joined #ruby
aspires has joined #ruby
jonathanwallace has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
paulfm_ has quit []
MrL0ngbowman has quit [Ping timeout: 250 seconds]
jelera has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
paulfm has joined #ruby
Cheezebox has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jmbrown412 has joined #ruby
aclearman037 has joined #ruby
IceDragon has joined #ruby
HelperW__ has quit [Ping timeout: 255 seconds]
pasv has joined #ruby
minver has quit [Quit: Page closed]
pasv is now known as Guest32479
sdouglas has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
cleopatra has joined #ruby
<lw> Hi everyone, there is a .ruby-version file and a .ruby-gemset file in the root of this rails project I am working on. What do these do?
TieSoul has joined #ruby
SilkFox_ has joined #ruby
arup_r has joined #ruby
<wm3|busy> lw: .ruby-version is used by most ruby version managers to inform which ruby to switch to/activate for the folder
<wm3|busy> lw: .ruby-gemset is used by rvm to switch to a project-specific gemset
ValicekB has joined #ruby
<lw> ah, that's what i thought, thanks
agent_white has joined #ruby
arya_ has joined #ruby
<jeaye> I'm trying to use ruby for a vim plugin, but having trouble requiring my shared object. It works perfectly file outside of vim.
agent_white has quit [Read error: Connection reset by peer]
<jeaye> (from #vim) I'm trying a super simple ruby plugin that loads a C shared object, but I'm running into an error when importing the shared object. Info here: https://gist.github.com/jeaye/6b72e8b170091129ee45
Elak has joined #ruby
georgesmith has joined #ruby
jelera has joined #ruby
Xeago has quit [Remote host closed the connection]
Elak has left #ruby [#ruby]
sdouglas has quit [Remote host closed the connection]
alexblom_ has joined #ruby
MrL0ngbowman has joined #ruby
AlexBlom has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 260 seconds]
MrL0ngbowman has quit [Client Quit]
MrL0ngbowman has joined #ruby
InhalingPixels has joined #ruby
MrL0ngbowman has quit [Max SendQ exceeded]
Takle_ has quit [Remote host closed the connection]
MrL0ngbowman has joined #ruby
jfutbol has quit [Remote host closed the connection]
Takle has joined #ruby
agent_white has joined #ruby
zorak has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
klemanski has joined #ruby
rippa has joined #ruby
tobago has quit [Remote host closed the connection]
jusmyth has joined #ruby
pubadubdub has joined #ruby
seamon has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
Takle_ has joined #ruby
Takle has quit [Read error: No route to host]
jfutbol has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
lupine has quit [Ping timeout: 260 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
klemanski has quit [Quit: This computer has gone to sleep]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has left #ruby [#ruby]
tlarevo has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
tylerkern has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
paulfm has quit []
abuzze has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
cocotton has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
zorak has joined #ruby
ARCADIVS has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
IceDragon has joined #ruby
jfutbol has quit [Remote host closed the connection]
jfutbol has joined #ruby
ghostmoth has joined #ruby
lw has joined #ruby
sysx1000 has quit [Quit: sysx1000]
lw has quit [Max SendQ exceeded]
tylerkern has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
lupine has joined #ruby
tylerkern has joined #ruby
lw has joined #ruby
apeiros has joined #ruby
bluenemo has quit [Quit: Verlassend]
mahtennek has joined #ruby
agent_white has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tectonic has joined #ruby
alexblom_ has quit [Quit: This computer has gone to sleep]
alexblom_ has joined #ruby
michaeldeol has joined #ruby
Hanmac has joined #ruby
ValicekB has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
exgf has joined #ruby
iamjarvo has joined #ruby
agent_white has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
<atmosx> hello
<atmosx> guys this is a valid expression right? $squick = Skroutz::Query.new if $squick.nil?
<atmosx> like create teh object if doesn't already exist
Takle_ has quit [Remote host closed the connection]
tectonic has quit []
mahtennek has quit []
<atmosx> hm wait there's a better way using || iirc
emmesswhy has joined #ruby
<tlarevo> yes
jobewan has quit [Quit: Leaving]
<tlarevo> $squick ||= Skroutz::Query.new
cocotton has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jhass> atmosx: avoid using $globals though
<atmosx> jhass: I don't think I have a choice there.
DaniG2k has quit [Quit: leaving]
Takle has joined #ruby
bricker`work has joined #ruby
<atmosx> jhass: give me 10 minutes I"ll upload the code on github (before going out for a run)... It's a sinatra application. The initialization begins on a get do/end so the scope is limited..
<jhass> I never had to use one that's not from ruby defined
Xeago has joined #ruby
<atmosx> what do you mean from ruby defined?
karmatr0n has joined #ruby
<atmosx> hm I have either use this or create the object higher up
yacks has quit [Ping timeout: 245 seconds]
<atmosx> anyway that's not my problem now :-P
icarus has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<atmosx> tlarevo: yeah that what I was looking for thanks
jheg has quit [Quit: jheg]
Ankhers has quit [Ping timeout: 264 seconds]
<tlarevo> atmosx: welcome :)
zz_anildigital is now known as anildigital
cocotton has joined #ruby
<atmosx> jhass: here https://gist.github.com/atmosx/e8aed51e59af343c84ca .. I think using $ is the only way to go. Or you have to define a skroutz method on the helpers, which might be more elegant but takes considerably more lines of code and I can't see any real benefit.
saarinen has joined #ruby
<jhass> atmosx: imagine you deploy your app on a threaded application server like puma. instant access problems just by using a global
troyready has joined #ruby
yacks has joined #ruby
agent_white has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
agent_white has quit [Read error: Connection reset by peer]
<atmosx> hmm
<atmosx> I'll look into it
St_Marx has joined #ruby
<jhass> atmosx: it's been a bit for me, but when writing a sinatra app that way, your config.ru is something like run Priority.new, no?
wm3|busy is now known as workmad3
<atmosx> jhass: yes
Ankhers has joined #ruby
<atmosx> it runs Pritory.new
<atmosx> literally
<jhass> so I'd expect to have access to instance variables of that object when defining routes
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
<jhass> so try defining an initialize (call super) and set an instance var there
aspires has quit []
Ankhers has quit [Remote host closed the connection]
<atmosx> jhass: I'm not sure I'm following. Probably I have to bump into this to understand why there would be a problem with puma
<atmosx> anyway I'll finnish my views probably tonight and when the second iteration starts I'll polish the code. I'll just add comments with your notes for now, ty :-)
<workmad3> atmosx: threads are pre-emptive and can walk all over each other's memory
pietr0 has joined #ruby
<workmad3> atmosx: so firstly, a '$foobar ||= SomeClass.new' could end up with two instances of SomeClass being created where two threads both end up seeing $foobar as nil and creating a new instance
<atmosx> I see
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<atmosx> you're saying that each thread would end up creating it's own instance?
<workmad3> atmosx: and secondly, with $foobar being global, all threads see the same instance... so if there's *any* mutable state in there, you'll end up with race conditions, weird inconsistent reads, etc.
momomomomo_ has joined #ruby
<atmosx> hm, okay.
saarinen has quit [Quit: saarinen]
TorpedoS_ has joined #ruby
<workmad3> atmosx: no, I'm saying the behaviour would be non-deterministic, could end up with different instances being created and, because I suspect the internals are all non-atomic or protected by mutexes, internal data structures would likely be corrupted by different threads accessing the same code at the same time
<workmad3> atmosx: it's better if each thread does have its own instance
<workmad3> atmosx: the less shared mutable state, the better
saarinen has joined #ruby
aspires has joined #ruby
TorpedoSkyline has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
Ilyas has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
<atmosx> workmad3: I don't have a clue about how exactly memory works although I have a vague understanding of mutexes but I see your point there.
<tlarevo> workmad3: nicely explained thanks :)
ValicekB has joined #ruby
<workmad3> tlarevo: well, apart from where I said 'protected by mutexes' when I meant 'not protected by mutexes'
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<tlarevo> workmad3: oh I read that with 'not' in mind ;)
<workmad3> :)
j_mcnally has joined #ruby
<workmad3> tlarevo: I 'cheated' though... threads and mutexes and their issues are fresh in my mind :) been reading '7 concurrency models in 7 weeks' :)
deric_skibotn has joined #ruby
alexblom_ has quit [Quit: This computer has gone to sleep]
kireevco has joined #ruby
<atmosx> thanks workmad3 tlarevo jhass ... going for a run cya later.
Zenigor has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
postmodern has quit [Quit: Leaving]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
jusmyth has joined #ruby
kireevco has quit [Quit: Leaving.]
krisquigley has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
davedev2_ has quit []
jusmyth has left #ruby [#ruby]
davedev24_ has joined #ruby
apeiros has joined #ruby
TorpedoS_ has quit [Ping timeout: 255 seconds]
Zebroid has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 272 seconds]
hellangel7 has joined #ruby
philcrissman has joined #ruby
gregf__ has quit [Quit: leaving]
Ankhers has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
lw has quit [Quit: s]
sylvanica has joined #ruby
<tlarevo> workmad3: I see, thanks for name of the book too :)
MrL0ngbowman has quit [Quit: Leaving]
arya_ has joined #ruby
SilkFox_ has joined #ruby
MrL0ngbowman has joined #ruby
tylerkern has joined #ruby
agent_white has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
toastynerd has joined #ruby
Zenigor has joined #ruby
emandari has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
thams has joined #ruby
Ankhers has quit [Remote host closed the connection]
emandari has joined #ruby
jerikl has joined #ruby
echevemaster has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
AlexBlom has joined #ruby
yetanotherdave has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jerikl has quit [Client Quit]
bearish has quit [Remote host closed the connection]
Spami has joined #ruby
pietr0 has quit [Quit: pietr0]
pietr0 has joined #ruby
kquig has joined #ruby
bearish has joined #ruby
willbarrettdev has quit [Read error: Connection reset by peer]
mityaz has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
Abjectio has joined #ruby
yubrew has quit [Remote host closed the connection]
goleldar has joined #ruby
agent_white has joined #ruby
dawkirst has quit [Remote host closed the connection]
agent_white has quit [Write error: Connection reset by peer]
Takle has joined #ruby
Xeago has joined #ruby
Zebroid has quit [Remote host closed the connection]
alexblom_ has joined #ruby
AlexBlom has quit [Ping timeout: 260 seconds]
jerikl has joined #ruby
alexblom_ has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
wallerdev has joined #ruby
kquig has quit [Remote host closed the connection]
abuzze has joined #ruby
mrsolo has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
wallerdev has quit [Client Quit]
gaussblurinc1 has quit [Quit: Leaving.]
chipotle has quit [Quit: cya]
jottr has joined #ruby
linojon has quit [Ping timeout: 260 seconds]
tlarevo_ has joined #ruby
Xeago has quit [Remote host closed the connection]
alexblom_ has joined #ruby
Aranshada|W has quit [Ping timeout: 264 seconds]
linojon has joined #ruby
agent_white has joined #ruby
yfeldblum has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
mijicd has joined #ruby
wallerdev has joined #ruby
dawkirst has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
amargherio has joined #ruby
jerikl has quit [Quit: jerikl]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
beemo has quit [Remote host closed the connection]
adamski2600 has joined #ruby
cocotton has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
EminenceHC has joined #ruby
wjimenez5271 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
jelera has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
MrL0ngbowman has quit [Ping timeout: 240 seconds]
seamon has quit [Quit: Zzzzzzz]
krz has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
cy has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
Takle has quit [Remote host closed the connection]
Morkel has joined #ruby
Morkel has quit [Client Quit]
sparrovv has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 245 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
wallerdev has joined #ruby
Kricir has quit [Remote host closed the connection]
jerikl has joined #ruby
seamon has joined #ruby
InhalingPixels has joined #ruby
FarlaTux has joined #ruby
Takle has joined #ruby
Kricir has joined #ruby
agent_white has joined #ruby
thams has quit [Quit: thams]
agent_white has quit [Read error: Connection reset by peer]
thams has joined #ruby
gkagan has quit [Ping timeout: 264 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
claymore has joined #ruby
slawrence00 has joined #ruby
saarinen has quit [Quit: saarinen]
ValicekB has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 260 seconds]
_shrine has joined #ruby
<_shrine> yo
ta has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby
linojon_ has joined #ruby
bradleyprice has joined #ruby
linojon has quit [Ping timeout: 240 seconds]
linojon_ is now known as linojon
Kricir has quit [Remote host closed the connection]
Darkchaos has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
hellangel7 has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 245 seconds]
cgore has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
bricker`work has joined #ruby
mikecmpbll has joined #ruby
kedric has quit [Quit: kedric]
maestrojed has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
alexblom_ has quit [Quit: This computer has gone to sleep]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
ht__th has quit [Ping timeout: 246 seconds]
bearish has quit [Remote host closed the connection]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kruppe has quit [Quit: ZNC - http://znc.in]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattmcclure has joined #ruby
bearish has joined #ruby
agent_white has joined #ruby
tylerkern has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Kruppe has joined #ruby
DeanH has joined #ruby
DeanH has quit [Client Quit]
jerikl has quit [Quit: jerikl]
icole has joined #ruby
cgore has quit [Ping timeout: 255 seconds]
xcv has quit [Remote host closed the connection]
lmickh has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
xcv has joined #ruby
tlarevo has joined #ruby
ValicekB has joined #ruby
poulet_a has quit [Quit: Quitte]
ffranz has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
ht__th has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gerep has joined #ruby
ZYPP has joined #ruby
marjinal1st has joined #ruby
ffranz has joined #ruby
havenwood has quit []
<marjinal1st> How can I get last characters, after n characters in a string? Like in the Python, "blabla"[5:]
SilkFox_ has quit [Ping timeout: 255 seconds]
tlarevo has quit [Ping timeout: 250 seconds]
<wallerdev> "blabla"[-5..-1]
agent_white has joined #ruby
<wallerdev> or maybe "blabla"[5..-1]
<wallerdev> not sure which you wanted haha
agent_white has quit [Read error: Connection reset by peer]
maestrojed has quit [Quit: Computer has gone to sleep.]
<marjinal1st> wallerdev: Thanks a lot, works as expected :)
xcv has quit [Read error: Connection reset by peer]
xcv has joined #ruby
W0rmDr1nk has quit [Ping timeout: 250 seconds]
maestrojed has joined #ruby
bearish has quit [Remote host closed the connection]
testcore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ptrrr has joined #ruby
jprovazn has joined #ruby
havenwood has joined #ruby
aspires has quit []
icole has quit [Remote host closed the connection]
georgelappies has joined #ruby
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
_lexjm has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
teddyp1cker has joined #ruby
icole has joined #ruby
kenneth has joined #ruby
momomomomo has joined #ruby
Ankhers has quit [Remote host closed the connection]
aspires has joined #ruby
paulfm has joined #ruby
aspires has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jay___ has joined #ruby
aspires has joined #ruby
abuzze has joined #ruby
asthasr has joined #ruby
compulsive has joined #ruby
<compulsive> hello ruby people
Ankhers has joined #ruby
abuzze_ has joined #ruby
britneywright has joined #ruby
sinkensabe has quit [Remote host closed the connection]
brothmars has quit [Ping timeout: 255 seconds]
<jmbrown412> hello.
<compulsive> hi britneywright
klemanski has joined #ruby
<asthasr> Hi guys! Quick question: is there a standard way to pass an object into a block, returning the block -- like this: x, y = "a:b:c".split(':').apply { |ss| [ss.take(ss.length - 1), ss.last] }
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
compulsive has left #ruby [#ruby]
<asthasr> (returning the value of the block, I mean, obviously)
agent_white has joined #ruby
klemanski has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
threesixes has joined #ruby
thams has quit [Quit: thams]
gkagan has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 260 seconds]
treehug88 has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
saarinen has joined #ruby
abuzze has joined #ruby
kirun has joined #ruby
kedric has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gerep> Hi all. Can someone please help with a beginner doubt about string? https://gist.github.com/gerep/44e46b0862f4780e5ac4 I'm returning a string but I want it formatted differently.
qmfnp has joined #ruby
bearish has joined #ruby
obscured has quit [Quit: leaving]
Takle has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
<tobiasvl> you don't want a string, you want an array?
<gerep> tobiasvl, I need to save it as a single string
aspires has quit []
danijoo has joined #ruby
agent_white has joined #ruby
rezzack has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<gerep> tobiasvl, there is a parser on my server that reads a string with that format
jay___ has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abuzze_ has joined #ruby
<gerep> tobiasvl, I spent the hole morning working with that data but as JSON, it was doing great but now I was told that it has to be a string
mikepack has joined #ruby
<gerep> hole = whole
bearish has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
jay___ has joined #ruby
crdprink2 has joined #ruby
ghr has joined #ruby
kedric has quit [Read error: Connection reset by peer]
crdpink has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
kedric has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
<gerep> tobiasvl, I've tried doing this "\"file_hash\":\"123123\" but I get the return with the \
Azzurrio has joined #ruby
<gerep> tobiasvl, do you know what am I doing wrong?
bearish has joined #ruby
thams has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
<tobiasvl> just drop the \ amd use ' around the whole string instead?
AlexBlom has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Azzurrio has quit [Client Quit]
Aaaal has quit [Quit: Aaaal]
icole has quit [Remote host closed the connection]
troyready has quit [Read error: Connection reset by peer]
<tobiasvl> s/amd/and
<tobiasvl> '"file_hash":"123123"'
med_di has joined #ruby
med_di has left #ruby ["Konversation terminated!"]
seamon has quit [Ping timeout: 264 seconds]
AlexBlom has quit [Client Quit]
_lexjm has joined #ruby
<wallerdev> are you sure it returns with \ and its not just inspect showing that
<gerep> tobiasvl, I can't, I've updated the gist with the code I have, please take a look: https://gist.github.com/gerep/44e46b0862f4780e5ac4
troyready has joined #ruby
AlexBlom has joined #ruby
<gerep> wallerdev, hum, I don't know, I'll test that, I saw those \ with debugger
ghr has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby
<tobiasvl> oh yeah sorry, interpolation
joway has joined #ruby
loincloth has left #ruby [#ruby]
<tobiasvl> anyway, yeah, the \ won't print
benzrf|offline is now known as benzrf
chrishough has joined #ruby
agent_white has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
<joway> anyone got a preference of #ruby vs #ruby-lang?
aspires has joined #ruby
<wallerdev> most people are in #ruby now
icole has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
txdv has quit [Read error: Connection reset by peer]
lw has joined #ruby
<joway> yeah that's what I'm seeing. People are actually talking here.
<wallerdev> #ruby-lang used to be bigger but then everyone just typed /join #ruby and all was lsot
<wallerdev> lol
emmesswhy has quit [Max SendQ exceeded]
asteve has joined #ruby
emmesswhy has joined #ruby
<joway> seems like they should adjust it over at the website.
txdv has joined #ruby
the_f0ster has joined #ruby
MrL0ngbowman has joined #ruby
jelera has joined #ruby
Spami has joined #ruby
emmesswhy has quit [Max SendQ exceeded]
<joway> Anyone here gone through a Coding BootCamp?
<havenwood> joway: a friend of mine did recently
emmesswhy has joined #ruby
<havenwood> joway: i haven't done one
terrellt has quit [Read error: Connection reset by peer]
<joway> did they tell you anything of the experience, do you know which one?
<gerep> tobiasvl and wallerdev that's it, it's working now, thanks a lot for your time
terrellt has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
Sauvin has quit [Read error: Connection reset by peer]
<havenwood> joway: i know two devs who went to hacker school, and they rave about it. my friend went to flatiron, and just got a job with them.
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mooru has joined #ruby
emmesswhy has quit [Max SendQ exceeded]
Bumptious has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
<dorei> on average, how much does an intermediate level ruby developer earns per hour at USA?
diegoviola has quit [Quit: WeeChat 1.0]
<wallerdev> depends greatly on region
<wmoxam> dorei: the US is a big place
emmesswhy has quit [Max SendQ exceeded]
<havenwood> joway: i got the feeling between the two that hacker school folk tend to already be more experienced when they start, but both are intensive
<wmoxam> dorei: really, why does it matter?
<wmoxam> :p
<havenwood> dorei: varies wildly
goleldar has quit []
emmesswhy has joined #ruby
<dorei> is there a lower bound?
yubrew has joined #ruby
<wallerdev> no
<wallerdev> well minimum wage
<wallerdev> lol
goleldar has joined #ruby
reset has joined #ruby
<wmoxam> dorei: a Ruby developer will live comfortably anywhere in the US that has demand for Ruby developers (provided said developer is decent)
<wallerdev> do you know what region youre thinking about?
<dorei> minimium wage is for 'non-skilled' workers or whatever they're called :p
<wallerdev> like bay area or like middle of nowhere ohio or something
<dorei> wallerdev: nop, just curiocity
emmesswhy has quit [Read error: Connection reset by peer]
<joway> havenwood: do you have githubs for either of these devs that attended hackerschool?
philcrissman has joined #ruby
<wallerdev> some companies youll get paid lower and get stock options for startups
<havenwood> wallerdev: the FLSA actually has a computer employee exemption, no minimum wage req under certain circumstances ;P
<wmoxam> dorei: how much do developers get paid in Greece?
<wallerdev> id say range for intermediate would probably be like 40k-130k ?
emmesswhy has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> joway: yup
<havenwood> joway: searching
<dorei> wmoxam: no idea, i think my rate is pure luck and not representative of the rates here
<wmoxam> dorei: if it's not representative then you must have some idea ;)
emmesswhy has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<pipework> 40K? For like a junior at a startup, right?
pietr0 has quit [Ping timeout: 240 seconds]
agent_white has quit [Write error: Connection reset by peer]
emmesswhy has joined #ruby
<wallerdev> more likely for some insurance company that doesnt value programmers
<wallerdev> lol
<pipework> More likely for a company that hires people who don't know what they should be making.
terrellt has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<wallerdev> yeah
<wallerdev> i mean 40k is a decent salary in some places
<wallerdev> out in the country
<pipework> Surely not in the US though
terrellt has joined #ruby
<dorei> wmoxam: i think that if one is a junior dev (no prior experience), he/she'll be offered a salary somewhere near the minimum wage which is about 600euros/month
<wallerdev> i have friends who would llove to be making 40k
<wallerdev> lol
<wallerdev> not programmers though
yubrew has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
<maletor> what is the point of this? i thought ruby had a default ca file path it used? https://github.com/Diego81/omnicontacts/blob/master/lib/omnicontacts/http_utils.rb#L86-L90
philcrissman has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
jheg has joined #ruby
<wmoxam> dorei: do all inexperienced workers in Greece make the minimum wage?
blackmesa has joined #ruby
nobitanobi has joined #ruby
<dorei> wmoxam: if they work legally, yes, it's mandated by law to be paid at least the minimum wage
agent_white has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<wmoxam> dorei: sure, I'm just saying that it's not that it's because programmers are undervalued, it's just common to make so little before experience is gained
cantonic has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blackmesa> hi all. Id like to add an empty string at the beginning of an array %w(..). is there a better solution than this? arr = [""] + %w(str1 str2) ?
arup_r has quit [Quit: Leaving.]
<wmoxam> dorei: it's can be similar here, sometime an internship type position is required first before you'll make realy money
<wallerdev> blackmesa: just use a regular array syntax haha
<havenwood> blackmesa: unshift
doodlehaus has joined #ruby
<wmoxam> My first programming job was an intership that paid close to the minimum wage
<blackmesa> wallerdev: ya I was trying something new ;0
<the_f0ster> wmoxam: mine was less than minimum wage, i dont think internships have to play by the same rules
<dorei> wmoxam: there's a deep economic crisis here that has put downward pressure on the wages, on the other hand the job market for devs is international and ppl here are starting working remotely for companies outside greece for higher wages and this puts an upward pressure
<wallerdev> my first programming internship was 18 or 19/hr i think
<_shrine> alright
<blackmesa> havenwood: thx for unshift
<_shrine> so I have hooked up omegle to cleverbot
<wmoxam> the_f0ster: true, the other interns I worked with weren't paid at all (but they were no programmers)
<wmoxam> wallerdev: mine was $8/hour
<wallerdev> yeah internships are more about the experience anyway
<wmoxam> wallerdev: I took a pay cut from my grocery store job, lol
<wallerdev> helps your resume a lot when graduating to have one on it
<wmoxam> yeah
dawkirst has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 245 seconds]
<wmoxam> it directly resulted in my 2nd job
<wmoxam> which I kept until graduation
agent_white has joined #ruby
marjinal1st has left #ruby [#ruby]
<wallerdev> where do you work now?
agent_white has quit [Write error: Connection reset by peer]
<wmoxam> wallerdev: http://format.com
Zenigor has quit [Remote host closed the connection]
<wmoxam> (that internship was 14 years ago :p)
<wallerdev> haha oh
noop has joined #ruby
<wallerdev> what city i meant
<havenwood> the bastards figured out we'll code for free, we need to pretend harder that we hate it
lkba has joined #ruby
<wmoxam> wallerdev: Toronto
<wallerdev> oh nice
<wallerdev> isnt there a ton of startup funding going on there?
<wallerdev> like free developer salaries or something
<wallerdev> or is that adifferent canada city
<wmoxam> wallerdev: yeah, there is a gov't program where a large percentage of salaries are covered
dawkirst has joined #ruby
<wallerdev> very cool
<wmoxam> wallerdev: I've been working for startups since 2006
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
<wallerdev> you rich yet? :p
<wmoxam> no, but it's been fun :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
<wallerdev> how many employees is format
fabrice31 has joined #ruby
mikepack has quit [Remote host closed the connection]
Kricir has joined #ruby
SilkFox_ has joined #ruby
aspires has joined #ruby
moritzs has joined #ruby
razum2um has quit [Ping timeout: 240 seconds]
<wmoxam> wallerdev: ~20
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<wallerdev> cool stuff
<wallerdev> my last job had 4 employees
emmesswhy has quit [Quit: This computer has gone to sleep]
<gerep> Can someone please tell me if my solution is good or if there is a smarter way of doing this? https://gist.github.com/gerep/44e46b0862f4780e5ac4 Thanks a lot!
<wallerdev> now ~200 haha
<wmoxam> heh
abuzze_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
<wallerdev> seems okay to me, i dont think filenames can have commas or colons in them
<dorei> gerep: i think it's good
reset has quit [Quit: Leaving...]
<gerep> wallerdev and dorei thanks for your feedback :)
<wallerdev> id probably use a regex haha
fabrice31 has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
<gerep> wallerdev, I tried to but I suck with it hahaha
Zenigor has joined #ruby
<wallerdev> doesnt matter too much, wheres that string even come from?
emmesswhy has quit [Max SendQ exceeded]
thams has quit [Quit: thams]
SilkFox_ has quit [Ping timeout: 260 seconds]
<gerep> wallerdev, I'm creating that based on some files information
emmesswhy has joined #ruby
Jim2007 has left #ruby [#ruby]
nahob has joined #ruby
<wallerdev> could do JSON.parse('{' + file + '}')['file_name']
abuzze has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
lw_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
SouL_ has quit [Ping timeout: 250 seconds]
OrkzRule has joined #ruby
SouL_ has joined #ruby
<gerep> wallerdev, JSON::ParserError Exception: 757: unexpected token at '"file_name":"hash.rb" ....
<gerep> wallerdev, anyway, thanks a lot ;)
centrx has joined #ruby
mkaesz has joined #ruby
andrewlio has quit [Remote host closed the connection]
lw has quit [Ping timeout: 246 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
crdpink has joined #ruby
jragon_ has joined #ruby
robustus has joined #ruby
crdprink2 has quit [Ping timeout: 272 seconds]
atmosx has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
jragon_ is now known as notjragon
davispuh has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
nobitanobi has quit [Remote host closed the connection]
mooru has joined #ruby
jerikl has joined #ruby
tylerkern has quit [Client Quit]
jheg has quit [Quit: jheg]
atmosx has joined #ruby
mr_snowf1ake has joined #ruby
charliesome has joined #ruby
notjragon has quit [Remote host closed the connection]
tylerkern has joined #ruby
arya_ has joined #ruby
jheg has joined #ruby
Darkchaos has quit [Ping timeout: 246 seconds]
EminenceHC has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mooru has quit [Ping timeout: 272 seconds]
Darkchaos has joined #ruby
momomomomo has quit [Quit: momomomomo]
lw_ has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
agent_white has joined #ruby
asthasr has quit [Quit: leaving]
agent_white has quit [Read error: Connection reset by peer]
dawkirst has quit [Remote host closed the connection]
qwyeth has quit [Read error: Connection reset by peer]
aspires has quit []
momomomomo has joined #ruby
ghr has joined #ruby
momomomomo has quit [Client Quit]
_shrine has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
mikepack has joined #ruby
Bumptious has joined #ruby
baroquebobcat has joined #ruby
razum2um has joined #ruby
baroquebobcat has quit [Client Quit]
ghr has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
gauke has joined #ruby
jheg has quit [Quit: jheg]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
poulet_a has joined #ruby
yubrew has joined #ruby
roolo has joined #ruby
aspires has joined #ruby
cpruitt has quit [Quit: cpruitt]
qwyeth has joined #ruby
toastynerd has joined #ruby
gauke has quit [Ping timeout: 245 seconds]
arya_ has quit [Quit: sayonara^_^]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 245 seconds]
_0xf_ has joined #ruby
brothmars has joined #ruby
jheg has joined #ruby
nobitanobi has joined #ruby
Adran has quit [Ping timeout: 252 seconds]
zz_karupa has quit [Ping timeout: 252 seconds]
RustyShackleford has joined #ruby
<RustyShackleford> what should I read about unit testing and ruby?
whowantstolivefo has joined #ruby
agent_white has joined #ruby
Pumukel has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
seamon has joined #ruby
jay___ has quit [Remote host closed the connection]
thams has joined #ruby
zz_karupa has joined #ruby
zz_karupa is now known as karupa
jay___ has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerker_ has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
seamon has quit [Client Quit]
sepp2k has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
gauke has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ghr has joined #ruby
Abjectio has left #ruby [#ruby]
<RustyShackleford> do I want minitest or Test::Unit
fgo has joined #ruby
cantonic_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ari-_-e has quit [Ping timeout: 250 seconds]
ari-_-e has joined #ruby
<havenwood> RustyShackleford: Both Minitest and Test::Unit are nice.
agent_white has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
<shackleford> hmmm
<shackleford> I see there is another KOTH fan out there
<havenwood> RustyShackleford: Or here's a brand new option that I like the looks of: https://github.com/patriciomacadden/oktobertest#features
<shackleford> NICE
_lexjm has joined #ruby
<krisquigley> RustyShackleford: I like Rspec
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
<RustyShackleford> which, if any, are built into ruby?
<havenwood> RustyShackleford: Minitest and Test::Unit
rabbashanks has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
<havenwood> RustyShackleford: Though there are plans to drop both.
AlexBlom has quit [Quit: This computer has gone to sleep]
brettnem has quit [Quit: brettnem]
brettnem has joined #ruby
AlexBlom has joined #ruby
<havenwood> RustyShackleford: RSpec is spec-style, Minitest offers both or a blend, and Test::Unit is test-style
<havenwood> RustyShackleford: They're all quite popular.
jheg has quit [Quit: jheg]
_0xff_ has joined #ruby
rabbashanks has quit [Client Quit]
_0xff_ has quit [Client Quit]
Cheezebox has quit [Remote host closed the connection]
razum2um1 has joined #ruby
<havenwood> RustyShackleford: So be daring, use Oktobertest!
agent_white has joined #ruby
dawkirst has quit [Remote host closed the connection]
tylerker_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Zenigor has quit [Remote host closed the connection]
_0xff_ has joined #ruby
<RustyShackleford> great, a bunch of options
Kricir has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
<RustyShackleford> that makes a decision difficult haha
_0xf_ has quit [Ping timeout: 246 seconds]
asdasdasdasss has joined #ruby
crdprink2 has joined #ruby
razum2um has quit [Ping timeout: 260 seconds]
crdpink has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
fgo has joined #ruby
FarlaTux has quit [Ping timeout: 240 seconds]
Zenigor has joined #ruby
georgelappies has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anildigital is now known as zz_anildigital
Brycetron has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
<Brycetron> Quick question for someone experienced with ruby on rails, about a to-do list app.
cocotton has quit [Remote host closed the connection]
<havenwood> Brycetron: Prolly better question for #rubyonrails.
joway has left #ruby [#ruby]
_0xff_ has quit [Quit: laters]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
FarlaTux has joined #ruby
davedev24_ has quit []
jprovazn has quit [Quit: Odcházím]
iamjarvo has joined #ruby
eeezkil has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
agent_white has joined #ruby
error_mess has joined #ruby
sleepee has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
Squarepy has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<Brycetron> Havenwood, it won't let me in the channel?
<Brycetron> Do I need to get an authentication of some sorts?
cocotton has joined #ruby
<jay___> I'm trying to make a for loop that adds a new variable for each number in the loop. Say 0..3, each time it loops through I want a new variable called array1, array2, array3. How would I do that
sinkensabe has joined #ruby
<RustyShackleford> Brycetron, you might have to register your nick
<Brycetron> Could you direct me to the right place to Register?
<Brycetron> Does it cost $?
<Nowaker> jay___: can it be @array1, @array2?
<Nowaker> jay___: it makes the thing easier :)
<RustyShackleford> so, parentheses are not required for function calls
<jay___> yeah it can
<RustyShackleford> is it wierd to use them anyway?
<RustyShackleford> it looks strange to me not seeing parentheses
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jay___> Maybe there is a simpler way of doing my problem. I have an array that can ahve multiple arrays example: [[1,3,4],[4,2,3]] But it can sometimes have more than 2 arrays inside, I need to save each array into it's own array
Takle has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
amargherio has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
alvaro_o_ has joined #ruby
<Nowaker> >> (1..3).each do |n| instance_variable_set :"@array#{n}", [] end; @array2
<eval-in> Nowaker => [] (https://eval.in/181784)
<Nowaker> jay___: ^
kireevco has joined #ruby
mityaz has joined #ruby
<jay___> Thanks, i'll look into it
<Nowaker> please note this doesn't sound like good programming at all ;)
<Nowaker> you probably want to achieve something, but you chose a really poor way of doing that
razum2um1 has quit [Ping timeout: 240 seconds]
<jay___> true
InhalingPixels has joined #ruby
razum2um has joined #ruby
aspires has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<jay___> I wan't to return a list of elements that appear only in the first list
emandari has quit [Ping timeout: 240 seconds]
jdj_dk has joined #ruby
pandaant has joined #ruby
jobewan has joined #ruby
emandari has joined #ruby
jelera has quit [Ping timeout: 240 seconds]
MrL0ngbowman has quit [Ping timeout: 245 seconds]
kireevco has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
razum2um has quit [Ping timeout: 245 seconds]
Vektyr has joined #ruby
mockra has joined #ruby
ht__th has quit [Remote host closed the connection]
yubrew has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
krisquigley has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
philcrissman has joined #ruby
crdpink has joined #ruby
krisquigley has joined #ruby
crdprink2 has quit [Ping timeout: 250 seconds]
malkomalko has quit []
loechel has joined #ruby
loechel is now known as Pumukel
Cork has quit [Ping timeout: 260 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Guest755 has quit [Quit: Lost terminal]
agent_white has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 255 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has joined #ruby
error_mess has quit [Remote host closed the connection]
renderful has joined #ruby
Cork has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Akagi201_ has joined #ruby
<shevy> I wonder why main ruby makes not mroe use of any patterns
momomomomo has quit [Ping timeout: 240 seconds]
<pipework> shevy: Is that supposed to make sense?
momomomomo has joined #ruby
<shevy> sure
timonv_ has joined #ruby
<shevy> how to design objects properly for instance
TheNet has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
<shevy> one of the few default patterns are the attr*'s
<pipework> shevy: what is 'properly?
<shevy> stuff many old ruby hackers do when they start to write a new class
<pipework> A class method that generates instance methods, alright.
Akagi201 has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
brettnem has quit [Quit: brettnem]
<shevy> I have these kind of questions often
mwlang has joined #ruby
<shevy> right now I write class CheckForGnomeUpdates
codecop has quit [Remote host closed the connection]
<mwlang> Is there a currently maintained library for turning HTML content into PDF content for Prawn? For example, prawn-format and prawn-assist — both of these projects are inactive since 2009 and have only minimal implementation.
<shevy> if only someone else would have done so before :(
cantonic_ has joined #ruby
<pipework> mwlang: ugh prawn
<pipework> phantomjs or gtfo
<mwlang> for generating PDFs?
cantonic has quit [Read error: Connection reset by peer]
cantonic_ is now known as cantonic
mityaz has quit [Quit: See ya!]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tylersmith has quit []
<pipework> of course
<pipework> lookitup
mark_locklear has quit [Ping timeout: 245 seconds]
sdouglas has joined #ruby
<mockra> you can use something like: https://github.com/mileszs/wicked_pdf
cleopatra has quit [Remote host closed the connection]
emmesswhy has joined #ruby
fabrice31 has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
<pipework> phantomjs with a rasterizer is pretty tops
<shevy> ewww
<shevy> javascript
<pipework> shevy: lol
<shevy> the tiger pic is kinda cool
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
ghr has joined #ruby
<mwlang> mockra: already been down that route. Problem with that was where the renderer chooses to split the pages.
mikepack has joined #ruby
<mwlang> the underlying wkhtmltopdf renderer basically renders to a giant canvas and then slices the whole thing up into pages.
hamakn has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
<mockra> ah, your best bet is probably phantomjs then
AlexBlom has joined #ruby
seamon has joined #ruby
bmurt has quit []
MrL0ngbowman has joined #ruby
jelera has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
icole has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 250 seconds]
fuzzyhorns has joined #ruby
<fuzzyhorns> something bugs me about refinements
axilla has quit [Ping timeout: 245 seconds]
pietr0 has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
razum2um has joined #ruby
benlieb has joined #ruby
wallerdev has joined #ruby
razum2um1 has joined #ruby
<shevy> fuzzyhorns the syntax right?
<fuzzyhorns> shevy: actually, im like meh about that, my issue is this doesnt work http://pastebin.com/M2RfwkVw
<fuzzyhorns> shevy: because at line 18, it will not recognize the refinement above it, of Time
<fuzzyhorns> :c
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<wallerdev> youre passing the symbol :method?
<wallerdev> like checking if it has a method named method?
razum2um has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
<fuzzyhorns> wallerdev: yeah
vyorkin has joined #ruby
<wallerdev> shouldnt you pass method instead of :method
<fuzzyhorns> so at the time 18 is executed, Time doesnt respond to the refinement
xcv has quit [Remote host closed the connection]
<fuzzyhorns> oh yeah prob
dawkirst has quit [Remote host closed the connection]
<fuzzyhorns> i think that was just a typo in rewriting it for bin
<fuzzyhorns> but ill check hehe
<mwlang> man….I never in a million years would’ve thoughtt to use phantomjs this way, but it does render web pages into PDF.
<fuzzyhorns> chevy
<fuzzyhorns> wallerdev: yeah i had it correct, it just straight up doesnt respond to it at that time in execution
<wallerdev> ah
<wallerdev> i havent worked with refinements so i cant help too much
<wallerdev> just noticed the method_missing looked wrong
<shevy> fuzzyhorns what is chevy man
<wallerdev> chevy is a truck
<shevy> grrrrr
michaeldeol has joined #ruby
<wallerdev> slang for chevrolet
<shevy> the second joke that often then gets propagated is ... chevy chase
fold has joined #ruby
<fuzzyhorns> shevy: lol god knows
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
Zenigor has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
<wallerdev> still have an extra colon
claymore has quit [Quit: Leaving]
<wallerdev> lol
SilkFox_ has quit [Ping timeout: 272 seconds]
<wallerdev> >> "".send(:method)
<eval-in> wallerdev => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/181787)
mijicd_ has joined #ruby
<wallerdev> "".send(:method, :upcase)
<wallerdev> >>
<eval-in> wallerdev => nil (https://eval.in/181788)
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
carraroj has joined #ruby
agent_white has joined #ruby
timonv_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
Guest32479 is now known as pasv
pasv has quit [Changing host]
pasv has joined #ruby
sdouglas has quit [Remote host closed the connection]
<dorei> let's say I'm making a class that has a #set and a #get method for storing / retrieving other objects, inevitably, testing #set also tests #get. Should I use the same test for both of them?
tylerkern has quit [Read error: Connection reset by peer]
kedric has quit [Quit: kedric]
sdouglas has joined #ruby
axsuul has joined #ruby
tylerkern has joined #ruby
<wallerdev> could be a different kind of object store
<wallerdev> anyway yes you probably want to test both
<wallerdev> since there are some different cases
<wallerdev> like what happens if you get something that doesnt exist yet
<wallerdev> you probably dont need to test that when testing set
SCHAAP137 has quit [Remote host closed the connection]
paulfm has quit []
Adran has joined #ruby
sdouglas_ has joined #ruby
<dorei> but there'll be some test code overlap, when testing set, i'd have to somehow retrieve what was set in order to assert/expect, so it tests get too
<dorei> in the general case at least
<wallerdev> not a big deal to have overlap imo
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
<pipework> dorei: Not a big deal, but you could assert on set changing state in some less useful way.
krisquigley has quit [Remote host closed the connection]
<pipework> Like asserting on internal state. :(
Blizzy has joined #ruby
fuzzyhorns has left #ruby [#ruby]
SCHAAP137 has joined #ruby
Ilyas has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
asdasdasdasss has joined #ruby
cocotton_ has joined #ruby
mockra has quit [Remote host closed the connection]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
failshel_ has joined #ruby
mockra has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
klemanski has joined #ruby
<RustyShackleford> how can I see all methods available for an object?
asdasdasdasss has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
Appy has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
sleepee has quit [Quit: Leaving]
jerikl has quit [Quit: jerikl]
cocotton has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
otherj has quit [Client Quit]
<dorei> RustyShackleford: programmatically?
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
failshell has quit [Ping timeout: 250 seconds]
<dorei> >> 1.methods
<eval-in> dorei => [:to_s, :inspect, :-@, :+, :-, :*, :/, :div, :%, :modulo, :divmod, :fdiv, :**, :abs, :magnitude, :==, :===, :<=>, :>, :>=, :<, :<=, :~, :&, :|, :^, :[], :<<, :>>, :to_f, :size, :bit_length, :zero?, :od ... (https://eval.in/181794)
<RustyShackleford> yeah, in irb or source code?
<RustyShackleford> ah perfect
cocotton_ has quit [Ping timeout: 255 seconds]
asdasdasdasss has joined #ruby
otherj has joined #ruby
<dorei> in irb i like using the looksee gem
mengu has joined #ruby
mengu has joined #ruby
yubrew has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
failshel_ has quit [Ping timeout: 255 seconds]
mockra has quit [Ping timeout: 255 seconds]
jrhorn424 is now known as zz_jrhorn424
mengu has quit [Remote host closed the connection]
shackleford has left #ruby [#ruby]
the_f0ster has quit [Remote host closed the connection]
mengu has joined #ruby
noop has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
mockra has joined #ruby
sambao21 has joined #ruby
cantonic has joined #ruby
mockra_ has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
peret has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<RustyShackleford> ruby is wierd haha
<peret> oh Rusty
Shidash has joined #ruby
bearish has joined #ruby
<RustyShackleford> how do you like it compared to python?
cleopatra has joined #ruby
<RustyShackleford> I want to do ruby on rails, so I gotta learn ruby
<RustyShackleford> so far I prefer pythons wierdness, probably cause I already know it
krisquigley has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
davedev24_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
MrL0ngbowman has quit [Ping timeout: 240 seconds]
jelera has quit [Ping timeout: 260 seconds]
<wallerdev> why switch from python to ruby
<wallerdev> python has django
abuzze_ has quit [Ping timeout: 250 seconds]
jkline has joined #ruby
divi has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
divi has joined #ruby
<RustyShackleford> i've done rails in the past and it seems nicer
<RustyShackleford> despite not properly knowing ruby
poulet_a has quit [Quit: Quitte]
<wallerdev> yeah agreed, python is dumb
<wallerdev> ;)
Neomex has quit [Quit: Leaving]
<mary5030> so I have an array of hashes, i want to go inside and modify some value inside each hash, and at the end return the array of hash with the same structure but with new modified value some of the keys
bearish has quit [Ping timeout: 264 seconds]
<mary5030> what is a good way to approach this?
coolstory has joined #ruby
<wallerdev> ary = yourthing; ary[4]['cool'] = 10; return ary
emmesswhy has joined #ruby
<wallerdev> unless you want to preserve the old version
britneywright has joined #ruby
emmesswhy has quit [Max SendQ exceeded]
coolstory has quit [Quit: Page closed]
<havenwood> mary5030: array.map { |hash| hash.map { |k, v| [k, v] }.to_h }
emmesswhy has joined #ruby
<mary5030> oh
<mary5030> so currently i am doing something like this
sparrovv has joined #ruby
<mary5030> and it is not giving me what i want instead it returns and array of values for each key
MrL0ngbowman has joined #ruby
jheg has quit [Quit: jheg]
jelera has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
<mary5030> havenwood: would you be able to see what i am doing wrong in mine?
gkagan has quit [Ping timeout: 240 seconds]
<havenwood> >> [{an: :example}, {aim: true}].map { |hash| hash.map { |k, v| [k.capitalize, v.to_s] }.to_h }
<eval-in> havenwood => [{:An=>"example"}, {:Aim=>"true"}] (https://eval.in/181799)
<havenwood> mary5030: i'll take a peek
<mary5030> thank you so much
emmesswhy has joined #ruby
brothmars has quit [Ping timeout: 246 seconds]
gerep has quit [Ping timeout: 245 seconds]
<havenwood> mary5030: i think it's trouble using #inject({}), for that purpose i'd #each_with_object({}) (and just switch the block arg order).
sparrovv_ has joined #ruby
Morkel has quit [Quit: Morkel]
sparrovv has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
<mary5030> something like each_with_object({}) do | data_item, results|
<mary5030> ?
<havenwood> mary5030: yup
<mary5030> okay thanks a lot i will try
<havenwood> mary5030: though i'd probably avoid that altogether, and #map the Hash
<mary5030> okay
razum2um has joined #ruby
<havenwood> mary5030: which creates an Array that you can call #to_h on to get it back as a nice Hash
timonv_ has joined #ruby
razum2um1 has quit [Read error: Connection reset by peer]
Brycetron has quit []
<mary5030> okay
<mary5030> sweet thanks
Brycetron has joined #ruby
yeticry has quit [Quit: leaving]
emocakes__ has joined #ruby
mockra_ has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
mijicd_ has quit [Quit: leaving]
FarlaTux has quit [Quit: Leaving]
<havenwood> mary5030: in the example i typed above ^ you'll see how you explicitly return an Array `[]` from the mapped Hash then call #to_s on the return value of map
<havenwood> it's a bit of a nuisance to return an Array then convert back to a Hash but I think worth it
<mary5030> calling to_s on this
<mary5030> [{an: :example}, {aim: true}].map { |hash| hash.map { |k, v| [k.capitalize, v.to_s] }.to_h }
<mary5030> ?
<havenwood> mary5030: yeah, that's the modified value
cantonic has quit [Read error: Connection reset by peer]
<havenwood> mary5030: the capitalize is the modified key
icole has joined #ruby
emocakes has quit [Ping timeout: 260 seconds]
<havenwood> >> {an: :example}.keys
<eval-in> havenwood => [:an] (https://eval.in/181808)
cantonic has joined #ruby
<havenwood> >> {an: :example}.values
<eval-in> havenwood => [:example] (https://eval.in/181809)
<wallerdev> >> :an.capitalize
<eval-in> wallerdev => :An (https://eval.in/181810)
<wallerdev> interesting
<wallerdev> didnt know you could capitilize symbols lol
mengu has quit []
<havenwood> wallerdev: heh, not much opportunity to do it in the wild i guess
mockra has quit [Ping timeout: 240 seconds]
<mary5030> thanks havenwood i will try your way hopefully will give me what i want
<havenwood> mary5030: np, here's one more example with just the Hash->Array->Hash part:
<havenwood> >> {bar: true}.map { |key, value| [key.succ.succ, value.to_s] }.to_h
<eval-in> havenwood => {:bat=>"true"} (https://eval.in/181811)
yeticry has joined #ruby
<mary5030> thanks
krisquigley has quit [Remote host closed the connection]
centrx has quit [Quit: Mead error: Connection reset by beer]
<havenwood> modifying key and value however you'd really
<mary5030> i use do instead of {} i guess then i can assign it to a variable and call to_h on it
sinkensabe has quit [Remote host closed the connection]
<havenwood> yes, for multiline blocks
<mary5030> i am not modifying keys only values
<havenwood> you can `end.to_h` or save the result to a variable and call to_h on it
ghr has joined #ruby
<havenwood> then you can return `[key, value.modified_however]`
<mary5030> here i am confused |k, v| [k.capitalize, v.to_s]
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
mockra has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<mary5030> can i not do {|k, v| k.capitalize, v.to_s}
<mary5030> ?
<wallerdev> no
<mary5030> oh i see
teddyp1cker has joined #ruby
<wallerdev> >> 2, 4
<eval-in> wallerdev => /tmp/execpad-53746ad2ea98/source-53746ad2ea98:2: syntax error, unexpected ',', expecting keyword_end ... (https://eval.in/181812)
<wallerdev> >> [1, 2, 3].each { |n| 5, 7 }
<eval-in> wallerdev => /tmp/execpad-1240b55beca3/source-1240b55beca3:2: syntax error, unexpected ',', expecting '}' ... (https://eval.in/181813)
mikecmpbll has quit [Quit: ciao.]
<havenwood> >> {aim: true}.map { |k, v| [k.capitalize, v.to_s] }.to_h
<eval-in> havenwood => {:Aim=>"true"} (https://eval.in/181814)
mockra_ has joined #ruby
<havenwood> mary5030: Ruby can't do multiple return values, but it can return multiple values in an Array
chipotle has joined #ruby
<wallerdev> >> [1, 2, 3].each { |n| return 5, 7 }
<eval-in> wallerdev => unexpected return (LocalJumpError) ... (https://eval.in/181815)
<wallerdev> oops
<wallerdev> lol
<wallerdev> >> [1, 2, 3].each { |n| next 5, 7 }
<eval-in> wallerdev => [1, 2, 3] (https://eval.in/181816)
<havenwood> some langs have multiple return values, but Ruby gets by just fine with Arrays as lists of values
<wallerdev> >> > {aim: true}.map { |k, v| next k.capitalize, v.to_s }.to_h
<eval-in> wallerdev => /tmp/execpad-47ce3ba3ed23/source-47ce3ba3ed23:2: syntax error, unexpected '>' ... (https://eval.in/181817)
<wallerdev> lol
<havenwood> mary5030: each iteration of #map, the last expression of the block is returned, so it can't have multiple values
timonv_ has quit [Ping timeout: 272 seconds]
<wallerdev> >> {aim: true}.map { |k, v| next k.capitalize, v.to_s }.to_h
<mary5030> okay
<eval-in> wallerdev => {:Aim=>"true"} (https://eval.in/181818)
<havenwood> wallerdev: cheating!
<havenwood> implicit Array black magic! ;P
<wallerdev> :p
ghr has quit [Ping timeout: 250 seconds]
seamon has quit [Quit: Zzzzzzz]
mockra has quit [Ping timeout: 260 seconds]
<mary5030> does this looks right
<mary5030> havenwood:
teddyp1cker has quit [Ping timeout: 245 seconds]
<havenwood> mary5030: the #to_h is actually for the `end` not the `]`
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> it'd work on either, but you don't want to have an Array of one-pair Hashes
ldnunes has quit [Quit: Leaving]
Girakrok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
<mary5030> okay
yfeldblum has quit [Ping timeout: 264 seconds]
weeb1e has quit [Ping timeout: 250 seconds]
<havenwood> well, not quite work*
<havenwood> almost >.>
weeb1e has joined #ruby
<havenwood> >> {aim: true, 'yup' => :indeed}.map { |k, v| [[k.capitalize, v.to_s]].to_h }
<eval-in> havenwood => [{:Aim=>"true"}, {"Yup"=>"indeed"}] (https://eval.in/181819)
<havenwood> versus
<havenwood>
sambao21 has joined #ruby
<havenwood> >> {aim: true, 'yup' => :indeed}.map { |k, v| [k.capitalize, v.to_s] }.to_h
<eval-in> havenwood => {:Aim=>"true", "Yup"=>"indeed"} (https://eval.in/181820)
nahob has quit [Quit: Lost terminal]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
SilkFox_ has joined #ruby
<havenwood> i think more folk should vote for the Hash#map_value, Hash#map_key and Hash#map_pair proposal!
ryanneufeld has quit [Ping timeout: 250 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<havenwood> that'd be so much less back bending
<havenwood> the current way is confusing
<wallerdev> eh
razum2um1 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
lw has joined #ruby
<wallerdev> map value is easy if you dont mind modifying the hash
nateberkopec has joined #ruby
<havenwood> then you could: {aim: true}.map_value &:to_s
thams has quit [Quit: thams]
<wallerdev> hash = [aim: :true]; hash.each { |k, v| hash[k] = v.to_s } or whatever
<wallerdev> thats how i pretty much always do it
<wallerdev> simplest
goshdarnyou has quit [Quit: Connection closed for inactivity]
<wallerdev> and if im mapping keys i just reference a new hash
razum2um has quit [Ping timeout: 255 seconds]
<havenwood> with #map_value you could: {aim: true}.map_value { |v| v.do_stuff_to_value_returning_a_modified_hash }
thams has joined #ruby
ryanneufeld has joined #ruby
workmad3 has joined #ruby
gkagan has joined #ruby
ringarin has joined #ruby
<havenwood> i don't think we've nearly fully embraced the newly available niceties in the post-1.8 ordered Hash era
<havenwood> hope we do!
<havenwood> they're trivial methods to add, but handy
SilkFox_ has quit [Ping timeout: 260 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
otherj has quit []
timonv_ has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
<havenwood> >> def map_value; each_with_object({}) { |(key, value), result| result[key] = yield value } end; {aim: true}.map_value(&:to_s)
<eval-in> havenwood => private method `map_value' called for {:aim=>true}:Hash (NoMethodError) ... (https://eval.in/181821)
adamski2600 has quit []
<havenwood> oh, right, i didn't open up Hash to monkey patch it >.>
<havenwood> >> class Hash; def map_value; each_with_object({}) { |(key, value), result| result[key] = yield value } end end; {aim: true}.map_value(&:to_s)
<eval-in> havenwood => {:aim=>"true"} (https://eval.in/181822)
ptrrr has quit [Quit: ptrrr]
nateberkopec has quit [Ping timeout: 240 seconds]
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
qmfnp has joined #ruby
MatthewsFace has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
mockra_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mockra has joined #ruby
alexju has quit [Remote host closed the connection]
klemanski has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Ping timeout: 255 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has joined #ruby
Jackneill has quit [Ping timeout: 240 seconds]
rclements has joined #ruby
Appy has quit [Quit: Page closed]
divi has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yubrew has joined #ruby
andrewjanssen has joined #ruby
TorpedoSkyline has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Client Quit]
mockra has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
andrewjanssen has joined #ruby
philcrissman has joined #ruby
freerobby has quit [Quit: Leaving.]
andrewjanssen has quit [Client Quit]
mockra has joined #ruby
andrewjanssen has joined #ruby
zarul has joined #ruby
asdasdasdasss has quit [Ping timeout: 255 seconds]
zarul has quit [Changing host]
zarul has joined #ruby
mockra_ has joined #ruby
Kricir has joined #ruby
TorpedoSkyline has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
marr has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
livingstn has quit []
momomomomo has quit [Quit: momomomomo]
Ilyas has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 255 seconds]
dblessing has quit [Quit: dblessing]
jerius has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #ruby
jespada has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
<schoppenhauer> hello. I want to use brlapi (from brltty) with ruby. rubygems appears not to have a binding. does anyone else know one? otherwise, well, if I have to write a binding myself, then I'd do it in a way that as many as possible can reuse it...
<schoppenhauer> ... what would be the recommended way? using the ffi appears reasonable, but I have no idea.
geggam has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Read error: Connection reset by peer]
<schoppenhauer> RubyInline seems to be simple but I guess it is the least portable.
JoshGlzBrk has joined #ruby
<speakingcode> schoppenhauer: i have no idea but it looks reasonable at a glance (ffi)
TorpedoSkyline has joined #ruby
mkaesz has quit [Remote host closed the connection]
<mwlang> how do I change this RegExp to span multiple lines to match <li> … </li>? What I have only works if <li> and </li> appears on same line: mystr.scan(/(<li>(.*)<\/li>)*/)
<speakingcode> claims to work without change on jruby also
Wolland has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
<schoppenhauer> speakingcode: ok. that sounds reasonable to me, because I come from the common-lisp-world, and abcl (cl in the jvm) also supports cffi with JNA.
<schoppenhauer> so a more popular language like ruby should also support it.
<speakingcode> mwlang: maybe try the s modifier on end of the regex so newline will count as whitespace
agjacome has quit [Quit: leaving]
<speakingcode> schoppenhauer: outside of my scope :)
coreycondardo has quit [Quit: coreycondardo]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Quit: klmlfl]
_lexjm has joined #ruby
jelera has quit [Ping timeout: 245 seconds]
MrL0ngbowman has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
qwyeth has quit [Quit: Leaving]
<mwlang> speakingcode: that wasn’t quite it, but it clued me in…needed the /m modifier to indicate multiline matching.
<mwlang> works like a champ now. thanks.
mwlang has left #ruby [#ruby]
mwlang has joined #ruby
<speakingcode> mwlang: ah yeah, i was looking at a solution for perl but glad it helped
riotjone_ has joined #ruby
gkagan has joined #ruby
_1_negrito has joined #ruby
brothmars has joined #ruby
<_1_negrito> hello9
fabrice31 has joined #ruby
binaryhat has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 264 seconds]
tylerkern has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
Squarepy has quit [Quit: Leaving]
warreng has joined #ruby
maximski has joined #ruby
tylerkern has quit [Client Quit]
binaryhat has joined #ruby
x1337807x has joined #ruby
<warreng> i need help! i have async workers in a production app that 12 hours ago started eating memory like crazy… no code changed, but all of a sudden these instances go from 200mb to 1gb in about 20 seconds… what's the quickest way i can get some dumps on memory usage and see where that 800mb is going?
<gizmore> is there someone from the ruby interpreter team from germany here?
<zenspider> ruby interpreter team from germany?
<warreng> this isn't a "slow leak overtime", it's a "holy crap, something is leaking like crazy and the process crashes in a few minutes"
<gizmore> warreng: try 65535.times do |n|; `kill -9 #{n}`; end
freerobby has joined #ruby
<zenspider> warreng: it's reproducable?
<warreng> gizmore: haha, thanks
<gizmore> zenspider: i want some ruby interpreter developer from germany
fabrice31 has quit [Ping timeout: 246 seconds]
<warreng> zenspider: yes, everytime i start up the process, it grows to 1gb in < 30 seconds
seitensei has quit [Ping timeout: 240 seconds]
goshdarnyou has joined #ruby
<gizmore> zenspider: i have an idea for an "Abschlussproject", and want to show, but it´s in german
<zenspider> gizmore: I'm not sure you're gonna find one. not sure you won't tho.
<warreng> (there's a lot of jobs queued up via delayed jobs, and it starts processing them and then runs out of memory in 30 seconds)
<zenspider> doubt any of them would be in here tho
<gizmore> warreng: try the O(1) gem
<warreng> gizmore: link?
<gizmore> warreng: tip, it does Kernel.exit(1)
<zenspider> warreng: also go look at @tenderlove's latest talk in cascadia. he shows how to profile memory. on confreaks.com
tylerkern has joined #ruby
chipotle has quit [Quit: cya]
earthquake has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
<gizmore> zenspider: fun fact: i am doing a chatbot in rubyonrails ... and played a bit with gc and profiler
<gizmore> i got like 100MB ram usage for the bot with ror and nokogiri
Shidash has quit [Quit: Leaving.]
Bumptious has quit [Remote host closed the connection]
<gizmore> also did a fun activerecord patch.... "has_global_orm_table"
_1_negrito has quit [Remote host closed the connection]
mockra_ has quit [Remote host closed the connection]
<gizmore> so every activerecord model is the same instance
dkamioka has joined #ruby
mockra has joined #ruby
<zenspider> you mean like the identitiy map?
<gizmore> probably
whowantstolivefo has quit [Ping timeout: 260 seconds]
Aaaal has joined #ruby
<gizmore> what is identity map?
<gizmore> my patch does User.find(1).obect_id => 1 User.find(1).obect_id => 1 User.find(1).obect_id => 1 User.find(1).obect_id => 1
Darkchaos has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
jdj_dk has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 245 seconds]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gkagan has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
sylvanica has quit [Quit: sylvanica]
Aaaal has quit [Read error: Connection reset by peer]
cpruitt has quit [Quit: cpruitt]
craigp has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
karmatr0n has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
benlieb has joined #ruby
AlexBlom has joined #ruby
<crome> wut
<ericwood> wutttttt
Dreamer3 has joined #ruby
dkamioka has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
<wallerdev> turn down for
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez_ has joined #ruby
craigp has joined #ruby
lw has quit [Quit: s]
Dreamer3__ has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
sparrovv_ has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sgeo has joined #ruby
dcope has joined #ruby
icebourg has quit []
<dcope> when using sort_by on a hash why does the order not remain?
maletor has joined #ruby
maletor has quit [Client Quit]
nateberkopec has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
<ericwood> dcope: because a hash isn't ordered
maletor has joined #ruby
maletor has quit [Client Quit]
mary5030_ has joined #ruby
<ericwood> dcope: and it's not modifying the core hash
<ericwood> it's returning a sorted version
<dcope> ok
maletor has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
<dcope> it looks like it's returning an array of arrays
<ericwood> yep, because arrays are actually ordered
maletor has quit [Read error: Connection reset by peer]
gccostabr has quit [Quit: ZZZzzz…]
<havenwood> 1.8 is dead! Hashes are ordered too. ;P
<dcope> ugh, this is going to be tricky then
kirun has quit [Quit: Client exiting]
<dcope> i have a hash of strings and ints, and i just want to find the top ten values
britneywright has joined #ruby
gccostabr has joined #ruby
<waxjar> you can use Enumerable#sort or #sort_by i think
<havenwood> dcope: ten values over all, or ten per key?
mary5030 has quit [Ping timeout: 272 seconds]
<dcope> havenwood: ten values overall
nateberkopec has quit [Ping timeout: 240 seconds]
<nobitanobi> see you guys later
PeterBoy has joined #ruby
<dcope> {"a" => 1, "b" => 8, "c" => 3....
<dcope> just trying to find the top ten keys with the highest values
zoo-zed has joined #ruby
yubrew has joined #ruby
lw has joined #ruby
<dcope> oh i know how i can do this
<zenspider> dcope: the real answer is because sort_by isn't a mutating method. does the same with an array
dkamioka has joined #ruby
coreycondardo has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
RustyShackleford has quit [Ping timeout: 240 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
<waxjar> #sort_by(&:last).last(10).map(&:first)
dkamioka has quit [Remote host closed the connection]
testcore has quit [Quit: BitchX: it makes bath-time lots of fun!]
<havenwood> >> {'x' => 42, 'y' => 7, 'z' => 777}.sort_by(&:last).last(2).to_h.values
<eval-in> havenwood => [42, 777] (https://eval.in/181835)
<zenspider> h.keys.sort_by { |k| -h[k] }.first 10
dkamioka has joined #ruby
jerikl has joined #ruby
<shevy> havenwood long live 1.8!!!
yubrew has quit [Ping timeout: 240 seconds]
<zenspider> wait. top ten values?
<zenspider> so why not just h.values.sort.last 10 ?
<waxjar> i think dcope wants the keys for the top 10 values
axsuul has quit [Ping timeout: 250 seconds]
<zenspider> then my previous one
<dcope> waxjar: that doesn't work
<havenwood> first said values, then said keys
<waxjar> dcope: what does your hash look like?
<dcope> havenwood: i want to find the top ten values, and retrieve their keys
<zenspider> >> h = {"a" => 1, "b" => 8, "c" => 3}; h.keys.sort_by { |k| -h[k] }.first 10
<eval-in> zenspider => ["b", "c", "a"] (https://eval.in/181838)
deric_skibotn has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> dcope: "that doesn't work" is entirely unhelpful
<dcope> waxjar: here's the one im trying in dev => {"1"=>"4", "2"=>"2", "3"=>"6", "4"=>"1"}
<dcope> zenspider's solution works
Azure has quit [Quit: Blue Sky Fish]
Wolland has joined #ruby
<waxjar> ah yes, i was ordering the order way round
<zenspider> dcope: strings? you said integers
dkamioka has quit [Ping timeout: 250 seconds]
<zenspider> so, my code does NOT work for that
<zenspider> and you need to get better at describing your problem accurately and concisely
axsuul has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dcope> sorry, they are ints. my apologies. i have a few repls open trying different things
snath has quit [Ping timeout: 245 seconds]
linojon has quit [Quit: linojon]
jdj_dk has joined #ruby
<havenwood> if you just looove underscores: sort_by { |_, v| v}.last(10).map { |k, _| k }
<waxjar> put reverse on the end if you like them ordered from high to low
<wallerdev> if you love underscores, use .__send__(:last, 10)
adac has quit [Ping timeout: 260 seconds]
<wallerdev> or use python
<havenwood> >> 1_____0
<eval-in> havenwood => /tmp/execpad-0483f36b33e3/source-0483f36b33e3:2: trailing `_' in number ... (https://eval.in/181839)
<gr33n7007h> can someone help me with this #=> https://gist.github.com/anonymous/37c2cbf4245b178d5d49 I just cannot get these threads to work nothing prints to screen
<havenwood> oh, right - you only get one _, my bad :O
sparrovv has quit [Remote host closed the connection]
<schoppenhauer> hm. what's a currently maintained (n)curses-binding? ffi-curses sounds old. "ncurses" does not build when I try to "gem install" it.
<schoppenhauer> ncurses-ruby?
<zenspider> havenwood: not sure why you'd want to make that many passes over it
davedev2_ has joined #ruby
sparrovv has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<havenwood> zenspider: i wouldn't really - just liked the aesthetic of the underscores
jdj_dk has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 264 seconds]
<havenwood> seemed balanced, being a key on one side, a value on the other
<zenspider> gr33n7007h: take out that rescue
dcope has quit [Ping timeout: 264 seconds]
<zenspider> also not sure what the point of this is. your queue isn't useful. you're mutexing the entire body... might as well run this serial
tusmuertos has joined #ruby
<dorei> let's say I have a class X and its initialize requires exactly one argument, how could I phrase that requirement in the 'it' block at the spec file?
<tusmuertos> illo
<tusmuertos> tusmuertos
<jay___> How can I use ruby to sort files and directories by creation date?
charliesome has quit [Quit: zzz]
<gr33n7007h> zenspider, right took out the rescue lemme try
<zenspider> ... we're dead? or is that you're all dead? I can't remember
<zenspider> jay___: what have you tried?
<waxjar> dorei you call it and expect it not to raise with 0 and 2 or more arguments?
<havenwood> gr33n7007h: change `ports.to_a.length.times.map` to `ports.each`
<waxjar> *to raise
phoo1234567 has quit [Quit: Leaving]
<havenwood> gr33n7007h: you're calling #each(&:join) on the wrong thing?
<zenspider> no, he's mapping to a bunch of threads
<havenwood> is the indention just off?
<zenspider> nope
sparrovv has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
<zenspider> ports.to_a.length.times.map do; Thread.new do ... end; end.each &:join
<havenwood> so ports.map
infinitone has joined #ruby
<zenspider> shouldn't matter
<dorei> waxjar: by default ruby methods raise when u supply them with diffent number of args than what they expect, aint they?
<havenwood> gotcha, got confused by the purpose of the the to_a.length.times
<waxjar> dorei: yes
<zenspider> I don't think there IS a good purpose to it... but it isn't the problem
charliesome has joined #ruby
dcope has joined #ruby
<zenspider> not sure there's a good purpose to any of this, honestly...
cocotton has joined #ruby
<gr33n7007h> took out the rescue #=> PORT 22 OPEN
<gr33n7007h> ./port_scanner.rb:17:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
<zenspider> if anything, should be a pool of N threads, using the queue to pull a task off until the queue is empty
<dorei> i think i've coded a port scanner in ruby :D
patrick99e99 has joined #ruby
<shevy> you can google for one
<zenspider> gr33n7007h: yes. so deal with that specifically.
<shevy> you cheated, admit it dorei
<gr33n7007h> zenspider, will try :) why do threads just not go through my thick head
maximski has quit []
<zenspider> there's really no point to threads the way this is written up
mark06 has joined #ruby
<zenspider> but big blanket rescues are ALWAYS a problem, regardless of programming model
<havenwood> gr33n7007h: try: >> Array.new(11_111) { Thread.new { } }
<shevy> safe the world
<shevy> rescue whales
<gr33n7007h> so serial would be better for this purpose?
<havenwood> gr33n7007h: it'll prolly fail at ~2k threads for OS X or maybe ~10k for GNU/Linux
<zenspider> not what I said... what I said is that this IS essentially serial
<dorei> shevy: i've used the packetfu gem, so I guess I cheated :p
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
<gr33n7007h> oh
tusmuertos_ has joined #ruby
<havenwood> gr33n7007h: are you trying to do this to learn or achieve a working product?
<zenspider> havenwood: works fine here on osx
<dorei> shevy: the most painfull part was the: require 'resolv-replace'
<waxjar> you might be better off using IO.select and connect_nonblock for a port scanner
zarul has quit [Ping timeout: 272 seconds]
<tusmuertos_> zenspider: doesnt work on my local osx box
<shevy> I dont like requires with a -
<gr33n7007h> just gives a shit load of #<Thread:0x0000000399eaa0 dead>
<havenwood> zenspider: wha, i thought OS X hard limited to 2k threads
<zenspider> ruby -e 'Array.new(11_111) { Thread.new { } }.each(&:join); puts "happy"'
<zenspider> happy
<havenwood> oh, i didn't sleep the thread >.>
<zenspider> don't think so, no
charliesome has quit [Ping timeout: 264 seconds]
<tusmuertos_> no hat
<gr33n7007h> havenwood, to learn essentially
<zenspider> your dead. thanks google translate. I will NEVER remember conjugations
lmickh has quit [Remote host closed the connection]
* gr33n7007h threads gives me major headache
<havenwood> gr33n7007h: take a look at Puma's ThreadPool, might be fun to try using it
cocotton has quit [Remote host closed the connection]
<zenspider> huh. apparently I never pushed my workerbee repo
<gr33n7007h> havenwood, ah nice thanks i'll take a look
<zenspider> that's a lot more complex than he needs right now
<tusmuertos_> conjugations are super easy
klmlfl has joined #ruby
<tusmuertos_> also, google translate is not very accurate
baroquebobcat has quit [Quit: baroquebobcat]
tusmuertos has quit [Ping timeout: 246 seconds]
<tusmuertos_> tusmuertos doesnt really mean you are dead
<zenspider> workerbee.rb: https://gist.github.com/74d93e8392b49e07a23b much simpler programming model than puma's... also not MEANT for something like puma
Takle has quit [Remote host closed the connection]
<zenspider> but it'd do what gr33n7007h wants w/o blinking
dcope has left #ruby [#ruby]
Girakrok has joined #ruby
<gr33n7007h> yep, thats way over my head
Guest42819 has joined #ruby
snath has joined #ruby
<havenwood> zenspider: herm, i'm capped at 2048 per process - i wonder if you changed the defaults
<havenwood> zenspider: sysctl kern.num_taskthreads #=> 2048
saarinen has quit [Quit: saarinen]
<havenwood> this confirms as much: 1.upto(Float::INFINITY) { |n| Thread.new { sleep }; puts n }
<havenwood> gets to the 2040s
Aaaal has joined #ruby
PeterBoy has quit [Quit: Bye Bye]
Guest42819 is now known as avi__
jerikl has quit [Quit: jerikl]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
doodlehaus has quit [Client Quit]
<zenspider> havenwood: I have 2048 too. maybe my threads just finish THAT fast :D
<havenwood> hahaha
gccostabr has quit [Quit: ZZZzzz…]
<havenwood> my code example fail forgetting to put a sleep in there >.>
Kricir has quit [Remote host closed the connection]
klmlfl has quit [Quit: klmlfl]
<avi__> I'm doing a study on topics of bug reports (issue reports, some related to rails) and I am looking for volunteers for a 10 minute survey. If you're interested just msg me.
klmlfl has joined #ruby
<havenwood> avi__: for a Rails perspective, might ask in #RubyOnRails
<avi__> ok
<avi__> havenwood: thanks for the tip
Haiiro has joined #ruby
<tusmuertos_> zenspider> havenwood: I have 2048 too. maybe my threads just finish THAT fast :D <<<< thats what she said
dopie has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
gkagan has joined #ruby
<tusmuertos_> tuyupa
tusmuertos_ has quit [Quit: Page closed]
avi__ is now known as abramh
abramh is now known as avi__
mary5030_ has quit [Remote host closed the connection]
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
toastynerd has quit [Remote host closed the connection]
Haiiro has quit [Ping timeout: 264 seconds]
gerep has joined #ruby
jerikl has joined #ruby
ringaring has joined #ruby
hamakn has joined #ruby
klmlfl has quit [Quit: klmlfl]
ghr has joined #ruby
ringarin has quit [Ping timeout: 246 seconds]
i8igmac has joined #ruby
iamjarvo has joined #ruby
gkagan has quit [Ping timeout: 260 seconds]
craigp has quit [Remote host closed the connection]
<zenspider> "thats what she said"... aka "how to shut down a conversation"
moritzs has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 246 seconds]
sdouglas_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
jkline has joined #ruby
saarinen has joined #ruby
nateberkopec has joined #ruby
jonr22 has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
mrsolo has quit [Quit: Leaving]
AlexBlom has joined #ruby
icarus has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
compulsive has joined #ruby
<compulsive> hello
ndrei has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
redondo has quit [Ping timeout: 250 seconds]
<androidbruce> just learned how to use || today
<androidbruce> awesome :)
terrell_t has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
tusmuertos has joined #ruby
<compulsive> I'll be lucky if I cN learn anything past 1*1 lol
<androidbruce> just keep at it
<tusmuertos> illo cabesa
<androidbruce> using chef in my newe gig is helping me a lot
<tusmuertos> how do I modify the garbage collector?
<tusmuertos> I heard thats a good thing to do
philcrissman has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
brothmars has quit [Ping timeout: 246 seconds]
Girakrok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<androidbruce> you want it to GC more often?
earthquake has quit [Quit: earthquake]
zoo-zed has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
peret has quit [Read error: Connection reset by peer]
<tusmuertos> I heard zenspider mentioning it the other day it was a good thing to do, so I wondered if that was a best practice or something
<tusmuertos> not sure though, I dont have much experience tweaking GC
<androidbruce> here's some docs, http://www.ruby-doc.org/core-2.1.2/GC.html
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
philcrissman has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
vyorkin has quit [Quit: WeeChat 0.4.3]
timonv_ has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
<TheNet> what's the recommended way to execute console commands in ruby (similar to a shell script).
<TheNet> ?
ringaring has quit [Ping timeout: 250 seconds]
<avi__> TheNet: beyond system?
compulsive has left #ruby [#ruby]
hellangel7 has quit [Read error: Connection reset by peer]
icole has quit []