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
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]
<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>
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]
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 >_>
<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 :(
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]
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]
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]
<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]
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?
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]
<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]
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] }
<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 ?
<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
<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]
<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
<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]
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]
<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!]
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
<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
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>
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...
<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