sparrovv has quit [Remote host closed the connection]
<shevy>
peculiar that that works
r_rios has joined #ruby
<reactormonk>
still think the path api in ruby is ugly.
<shevy>
the .* is treated like Dir.glob arguments?
<shevy>
reactormonk yeah, especially Pathname
elico has left #ruby [#ruby]
<shevy>
reactormonk, with File.extname it is clear what it does, File.basename too I suppose; how would you name something that returns all but the .extname? File.filename ?
mikepack has quit [Ping timeout: 265 seconds]
<reactormonk>
shevy, filename returns everything, basename just the name without extension
Milly_Bays has joined #ruby
<horrorvacui>
basename is the answer but consider a name like filename.blah.blah.gz or something thats the glob part's purpose
r_rios has quit [Client Quit]
bluehavana has joined #ruby
moritzs has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jeremy___ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
maestrojed has quit [Quit: Computer has gone to sleep.]
<yfeldblum>
pipework: howdy - chef's a nice tool; good luck with it!
<shevy>
what is with chef
<yfeldblum>
shevy: hmm?
<shevy>
well you wished him good luck with chef
r_rios has joined #ruby
<shevy>
so it is probably not easy!
jsaak has quit [Read error: Operation timed out]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
sdwrage has joined #ruby
<yfeldblum>
shevy: like everything in the world, it's both easy and hard
<horrorvacui>
yfeldblum: yeah people like making things hard
endash has quit [Quit: endash]
sambao21 has quit [Quit: Computer has gone to sleep.]
<yfeldblum>
horrorvacui: that's often true ... not the point i was driving at, though, which is that "easy" and "hard" are contextual
mradmacher has joined #ruby
mradmacher has quit [Client Quit]
<shevy>
pipework why do you need chef?
the_f0ster has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
bousquet has quit []
nanoyak has joined #ruby
<horrorvacui>
yfeldblum: well in that case: people like making things hard and easy
<shevy>
I like to make things as simple as possible
troyready has quit [Quit: Leaving]
<shevy>
that probably won't work for artificial intelligence
<jdjd>
Anyone have a clue how to get out of my situation. I work in finance world in city I hate. I am going to go for a CS degree, but wonder how much longer I can stand living here. I want to move to another part of the country. Anyone here work in the IT or Programming world and have any advice?
jeremy_w_rowe has joined #ruby
sputnik13 has quit [Ping timeout: 252 seconds]
ephemerian has quit [Remote host closed the connection]
benlieb has joined #ruby
<horrorvacui>
jdjd: mind if I ask what city?
brunops has joined #ruby
<shevy>
jdjd you will get the CS degree in the same town?
maletor has quit [Quit: Computer has gone to sleep.]
<jdjd>
Can I ask what you all do? Also, one would be online.
jsaak has joined #ruby
<jdjd>
I'm applying for different places.
diegoviola has joined #ruby
<shevy>
I work in life science/bioinformatics, programming is only a hobby
johncjensen has quit [Remote host closed the connection]
<shevy>
jdjd do you hate the city or just the job
<jdjd>
Job is ok, I hate the city.
<jdjd>
I would like better job, and have a chance to move into IT department possibly.
<jdjd>
But still hate the location, I don't socialize at all here.
djbkd has quit [Remote host closed the connection]
<jdjd>
Close to relatives I don't like.
<shevy>
hmm
<shevy>
hehe
<mg^>
I'm a network/systems architect in a small org, programming is part of my job, but it's centered around tools and automation.
<shevy>
jdjd as you get older the relatives tend to die away :P
brunops has quit [Client Quit]
<jdjd>
I'm 26, I shouldn't be not socializing right now.
m00nlight has quit [Quit: Konversation terminated!]
<jdjd>
If I stay here, do my degree, and get job in IT.
<horrorvacui>
I want to beg a Swede to let me live on their couch.
<shevy>
depends on the definition of socializing
<jdjd>
I wouldn't be leaving until 29 at that rate.
<shevy>
horrorvacui LOL
<shevy>
horrorvacui everyone is moving to sweden :(
<jdjd>
shevy: Dating girls and having friends.
MatthewsFace has joined #ruby
<horrorvacui>
I'll take Norway, Denmark, hell Iceland as well.
<shevy>
<ATuin> shevy: just to try something new, Spain is a fucking shit just now
jamto11 has joined #ruby
aspires has quit []
<shevy>
^^^ that spanish guy from #gobolinux relocated to sweden a few months ago
s2013 has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<shevy>
horrorvacui yeah, I aggregate them all into the scandinavian countries... norway, sweden... probably denmark and finnland
<shevy>
they see it as a new gold rush
<shevy>
even more so than switzerland
razrunelord has quit [Remote host closed the connection]
Lewix has joined #ruby
<jdjd>
So, what am I suppose to do.
<jdjd>
Keep my job, suffer for two years.
<jdjd>
And get my degree.
<horrorvacui>
Move to Scandinavia
<jdjd>
And then move where I want?
<shevy>
jdjd well let's ignore that degree for a moment
<horrorvacui>
NO seriously whats wrong with the town?
<shevy>
jdjd where would you want to go?
razrunelord has joined #ruby
<jdjd>
Can I PM you?
reset has quit [Quit: Leaving...]
<horrorvacui>
jdjd no I want to eavesdrop
<shevy>
hmmmm PM means I need to click more often
<horrorvacui>
:P
<shevy>
I use xchat
<shevy>
on main channel I can idle so happily!
<horrorvacui>
The deal is you don't need a CS degree if you do it right.
reset has joined #ruby
<shevy>
horrorvacui perhaps he is in a dead city
<jdjd>
I guess its up to you, just feel more open away I guess in PM.
<horrorvacui>
I'm in a dead city
<horrorvacui>
Its not even a city its a town
<jdjd>
horrorvacui: Where do you work?
<shevy>
jdjd hehe I bother everyone with all my stuff here on #ruby
zz_karupa is now known as karupa
<jdjd>
I want to live on the west coast.
<horrorvacui>
I don't. I'm unemployed. I'm trying to make it on my own atm.
<jdjd>
Or the northwest.
<shevy>
california!
<horrorvacui>
I'm failing horribly.
<jdjd>
Yes.
<shevy>
horrorvacui you know what they say about failing
kevinykchan has quit [Quit: Computer has gone to sleep.]
<horrorvacui>
What it sucks ass?
metamaterial has quit [Ping timeout: 272 seconds]
<shevy>
horrorvacui it's the road to success. you fail and fail and fail until you suddenly succeed, it's the same like starting to play tennis. at first you perhaps can keep the ball going, but you won't be able to do more difficult slices and spins
benlieb has quit [Quit: benlieb]
jamto11 has quit [Ping timeout: 240 seconds]
<shevy>
you practice and practice and it's hard but it suddenly makes 'click', you keep improving and suddenly things work
<jdjd>
shevy: I hate to do it, can I PM, lol.
<horrorvacui>
I'm 2 years failing how am I going to get a job when I've got nothing to show for 2 years :(
<shevy>
jdjd please no :(
<jdjd>
Ok.
<shevy>
jdjd describe it differently, let's say you have this older friend
<shevy>
who hates his town and either wants to DESTROY it or seek something new in life
<havenwood>
i'd suggest not failing
<shevy>
hehehe
<havenwood>
overrated
<shevy>
havenwood some people do fail
<shevy>
horrorvacui well you have to keep going
andrewstewart has quit [Ping timeout: 246 seconds]
bedouin has quit [Ping timeout: 246 seconds]
lectrick__ has quit [Ping timeout: 246 seconds]
msch has quit [Ping timeout: 246 seconds]
olleromo has quit [Ping timeout: 246 seconds]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
mrgoodcat has quit [Ping timeout: 246 seconds]
mnemon has quit [Quit: No Ping reply in 180 seconds.]
flowerpot has quit [Ping timeout: 246 seconds]
nifty has quit [Ping timeout: 246 seconds]
zzak_ has quit [Ping timeout: 246 seconds]
Spitfire has quit [Ping timeout: 246 seconds]
supershabam has quit [Ping timeout: 246 seconds]
kalleth has quit [Quit: No Ping reply in 180 seconds.]
`MArceLL` has quit [Remote host closed the connection]
gyre007___ has quit [Ping timeout: 246 seconds]
dachi has quit [Ping timeout: 246 seconds]
vcoinminer__ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
flowerpot has joined #ruby
<jdjd>
Doesn't matter, I actually want to live on the west coast.
djbkd has joined #ruby
<jdjd>
I want a lot of things.
jsaak has quit [Ping timeout: 276 seconds]
<shevy>
hehehe ok so you will relocate anyway, I guess then 2-3 years is not a big problem
<jdjd>
It is.
<jdjd>
I'm missing the whole point of being 26-29.
jxf has joined #ruby
<jdjd>
This is why I want to PM.
<horrorvacui>
From a short project for a fortune 500 making a stupid accounting system.
<shevy>
some jobs are so awful that 3 years is torture
kaspergrubbe has quit [Remote host closed the connection]
ohcibi_ has joined #ruby
<shevy>
jdjd don't worry, once you are past 30 it doesn't matter, at this point you are no longer young
<horrorvacui>
Finance sucks, so IT finance must be magnitudes worse if you don't like IT to begin with.
<jdjd>
shevy: I need insurance to pay for my medication for health issue.
olleromo_ has joined #ruby
bookie_sentry has joined #ruby
<jdjd>
Without it, its 1000$ a month.
<mg^>
You want to do IT in the financial sector? You're braver than I am.
<jdjd>
horrorvacui: And where are you getting any of these accusations from.
<mg^>
regulatory compliance audits suck in the non-financial world
<havenwood>
to LA!
<shevy>
yeah havenwood!!!
<dorei>
horrorvacui: i'm a lazy dev living at a shit country, however I've managed to get an IT job, so I guess you can find one too
<jdjd>
As I said neither about hating either.
<shevy>
though the wild thing to do would be to quit and go head-dive in away to the west coast!
<horrorvacui>
shevy: got a couch? I'll backpack to Denmark :P
<dorei>
shevy: do u live in a socialist country? :O
lectrick___ has joined #ruby
<jdjd>
I dont want to be sharing this on chat like this.
<myke>
that would be sociammunism
kalleth_ has joined #ruby
mordof has joined #ruby
<jdjd>
Sigh, I just want some help/guidance. Don't know what to do.
<jdjd>
We don't.
<dorei>
shevy: btw, is there a .dk torrent tracker? i'm looking for the rejseholdet tv series at a decent quality
<jdjd>
shevy: If you knew a way that I could actually run to your country and become a citizen I would, and could afford the plan ticket.
kapowaz_ has joined #ruby
<shevy>
dorei hmm nope, you only got basic coverages, it's an ethical way to treat human beings other than abusing them as working slaves
nifty_ has joined #ruby
<jdjd>
I would do it too.
<horrorvacui>
jdjd: Ride the wheels of a jet.
<dorei>
oh, denmark
Spitfire_ has joined #ruby
<shevy>
but I think they don't have the euro as currency?
<shevy>
actually, denmark may be even better off than central europe :)
<shevy>
I don't think many people here work in finance-related companies... very few really
msch_ has joined #ruby
<jdjd>
And have the passport.
<jdjd>
I already do that.
bedouin_ has joined #ruby
treehug88 has joined #ruby
<shevy>
jdjd well you have a very specialized work area; finance
<shevy>
dorei no real idea, most of those torrent sites absolutely suck
<shevy>
man denmark has too much rain
<shevy>
jdjd you could ask mg^ though, he wrote his PhD in some boring area
<jdjd>
No jokes.
<dorei>
shevy: what's the biggest company @ dk? maersk?
andrewstewart_ has joined #ruby
<shevy>
jdjd kk I see how that sucks, here in central europe we have basic insurance even for the unemployed
andy__ has joined #ruby
<dorei>
socialism :p
<horrorvacui>
Be sure to bring oxygen and a blanket.
<horrorvacui>
No plane ticket needed.
Hobogrammer has quit [Ping timeout: 240 seconds]
<horrorvacui>
jdjd: Try learning ruby and other skills whilst maintaining your current job. You'll get an idea if you like it or not. Also you'll find it easy to move into the IT positions if you find out what they use and learn that.
EminenceHC has quit [Remote host closed the connection]
<jdjd>
That isn't how life works sometimes.
<shevy>
dorei dunno, I liked Lego though, the area was awesome; shame I did visit it when I was 15, already too old but I loved lego when I was young
<myke>
jdjd: pick up internet based work on sites like elance, etc
<horrorvacui>
jdjd: So you want to know should you tough it out or run scared?
<horrorvacui>
I think you should run scared because wellbeing trumps welloff.
<jdjd>
That is the wrong way of asking the question.
vcoinminer___ has joined #ruby
<jdjd>
This isn't a question of liking it or not.
<mordof>
alright, time to learn ruby... anyone have any preference on tutorials / guides?
<jdjd>
myke: Its an idea.
`MArceLL` has joined #ruby
thumpba has quit [Ping timeout: 265 seconds]
gyre007____ has joined #ruby
<jdjd>
Do you have experience with that?
mnemon2 has joined #ruby
<jdjd>
But still.
<shevy>
mordof back in 2005 "learn to program by chris pine" was awesome; read it once, then you understand how to use block and yield
<jdjd>
It doesn't solve the issue of me hating my life in this city.
<jdjd>
The job is good.
<horrorvacui>
I tried that it was hard to compete with the cheap labor countries.
i_s has quit [Remote host closed the connection]
justinxreese has joined #ruby
<shevy>
jdjd usually it's often the other way - the job sucks, the city is cool :D
<myke>
yes
aspires has quit []
<myke>
when you have enough contract work you can quit your job and go wherever
jonasac has quit [Ping timeout: 246 seconds]
kitak_ has joined #ruby
<jdjd>
How much can you make myke?
<mordof>
shevy: well.. i have several languages under my belt to considerable levels of proficiency, and i've talked to people in here about blocks and yield (though i don't know a whole lot about each). if all that will do is give me the basics of that, i think i can start off a bit farther up
<jdjd>
Realistically, how much do you make after taxes?
<mordof>
shevy: i'll look at it though, thanks
<myke>
wide range...i got a gig that paid $50/hr for 40/hour weeks of which i worked maybe 8 if that
<mg^>
shevy: not a PhD... my thesis was for an honors B.S. degree
lectrick___ is now known as lectrick__
bedouin_ is now known as bedouin
olleromo_ is now known as olleromo
<myke>
lots of lowballers
msch_ is now known as msch
bookie_sentry is now known as mrgoodcat
nifty_ is now known as nifty
<mg^>
but it was a totally boring subject to most people
kapowaz_ is now known as kapowaz
<shevy>
mordof hmm if you know other languages very well already, then I think you should not waste too much time... read a bit more, but more importantly start to actively write code, no matter what, eventually it makes 'click' and you understand how ruby works
zzak_ has joined #ruby
gyre007____ is now known as gyre007___
vcoinminer___ is now known as vcoinminer__
<shevy>
mordof then one day you will know as much as havenwood does!
<jdjd>
myke: That is probably the high then.
<shevy>
mg^ ah I see
<horrorvacui>
myke: I found that it was stressful and work was to sporadic. I couldn't attract the well paying work because I was competing with teams instead of individuals.
<jdjd>
you made 2000$? Hard to pay bills with that no?
<myke>
it wz
<jdjd>
myke: Not downing you btw, that sounded negatives what I said.
<myke>
it was more than one week and i was doing it at my day job
<mg^>
I could probably continue the same research and turn it into a PhD, but I like earning money instead of spending it on school at this point in my life.
jsaak has joined #ruby
<shevy>
mg^, I kinda assumed PhD's need thesis + thesis defence, a guy on #bioinformatics spoke about his own thesis <Ulti> its incredible how much I cannot stand to even look at my thesis
<mordof>
shevy: heh, no idea who havenwood is, but generally i just start coding and then go from there. I don't know much about ruby, so my question should more have been "is there any walkthroughs for simple projects" out there that people recommend as following good practices
<myke>
one week imhad 2 projects from that guy for 60 hrs billable
<jdjd>
myke: What was your day job?
<shevy>
which I found funny considering he wrote it himself :D
moritzs has quit [Ping timeout: 252 seconds]
flowerpot has quit [Ping timeout: 246 seconds]
phrozen77 has quit [Ping timeout: 246 seconds]
<mg^>
shevy: yeah, they definitely do. Most bachelor's degrees do not, but it's often a distinguishing item for gaining honors with the degree.
supershabam has joined #ruby
<myke>
jdjd: computer guy in the sticks of montana
Milly_Bays has quit [Ping timeout: 264 seconds]
<shevy>
mordof havenwood is here on #ruby, he knows damn much! I think there is no real simple walkthrough... I would recommend to just scan through simple books like "learn to program", understand only core concepts briefly - blocks, yield, class vs. module - then at once start to write a lot of code, no matter what, also start to package up things into gem; bundling things into a gem will teach a lot, from this po
<shevy>
int on I think it will be very easy to continue
jonasac has joined #ruby
<shevy>
mordof for instance, whenever I am bored and don't know what to do, I try to improve one project of mine and look through todo lists, until I am bored and move to something else....
zachallett has quit [Remote host closed the connection]
<shevy>
mg^ ah I see
<shevy>
gaining honors means that one has to have had good grades?
<shevy>
I was always solid middle field :P
<jdjd>
Is there a good irc chat for career advice?
<mg^>
mordof: how I motivate myself to take on a new programming language or other tool, is to find a reason to need it, and then go from there. Of course, this is after prior requisite experience with other languages and tools.
<horrorvacui>
jdjd: Go to reddit and ask
SilkFox_ has joined #ruby
<shevy>
jdjd hmm try #programmers perhaps
djbkd has quit [Remote host closed the connection]
<shevy>
oops
<shevy>
hmmmm
moritzs has joined #ruby
<shevy>
yeah try reddit
<mg^>
shevy: yeah there was also a "top 10% of the class" requirement as well
<shevy>
cool
tkuchiki has quit [Ping timeout: 252 seconds]
fly2web has joined #ruby
<fly2web>
khi
<fly2web>
hi
<fly2web>
:)
<mordof>
mg^: oh for sure. shevy also - alright, thanks for the input guys. i've got a few ideas for small things i'll start off with for plain ruby. I need to jump into Rails for the beginning of next month, but i'm going to learn plain Ruby on my own so I can know what's going on
<mordof>
if I have questions that I can't find answers to, I'll come back here
<fly2web>
i think that there is no special thing in ruby? is it right?
sarlalian has quit [Quit: WeeChat 0.4.0]
iliketurtles has joined #ruby
<jdjd>
Is the solution to kill myself?
<horrorvacui>
uhh ohh...
<fly2web>
jdjd: you want to di?
<fly2web>
die?
zachallett has joined #ruby
<fly2web>
jdjd: ?
<jdjd>
Well, dont know much else what to do.
freezey has quit [Ping timeout: 252 seconds]
<jdjd>
I want to live.
<horrorvacui>
jdjd: Finance, it makes people do crazy things.
<jdjd>
But.
<mg^>
ahh it's go-home time
mg^ is now known as mg^afk
<jdjd>
horrorvacui: Please stop with the steriotypes.
goleldar has quit [Remote host closed the connection]
sambao21 has joined #ruby
<fly2web>
jdjd: where are you from?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<horrorvacui>
jdjd: Sorry, I'm joking. :P
<shevy>
jdjd well it always depends on the goals
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crzrcn has quit [Quit: Leaving.]
<shevy>
jdjd horrorvacui does not even have a job to complain about
<horrorvacui>
I prefer self-employed
<horrorvacui>
More accurately no insurance or extra money.
<horrorvacui>
Which means I'm going to be fined i think...
<jdjd>
fly2web: do you mind if I PM you?
<fly2web>
no
<fly2web>
what is PM?
<jdjd>
private message.
<jdjd>
But nevermind.
<fly2web>
ok
<fly2web>
go on
<fly2web>
dont worry.
<shevy>
horrorvacui you can be fined if you do not pay yourself insurance as self-employed?
<horrorvacui>
Yeah I think. $95 usd or 1 % of my income.
tkuchiki has joined #ruby
<horrorvacui>
USA not so free is it? :P
jamto11 has joined #ruby
<shevy>
well it's a lot of show
<shevy>
and for a show you need good rhetorics
<shevy>
it's actually a skill if you think about it
<horrorvacui>
If I make below 133% of the national poverty this year i might not have to pay it :P
<shevy>
man
<horrorvacui>
So maybe I should fail miserably to save 95 usd
<shevy>
what kind of attitude is that!
<horrorvacui>
:P
<shevy>
nonono
<shevy>
you must fail at what you are *actively* doing
<horrorvacui>
I know. I'm joking.
nanoyak has quit [Ping timeout: 252 seconds]
<shevy>
perhaps I should name it active failing
<horrorvacui>
I'm writing my resume as I speak. Going to job hunt soon.
<shevy>
like, it's perfectly fine to fail, so long as you are active
<shevy>
\o/
amclain has joined #ruby
<horrorvacui>
I took 2 years off after college and tried my own thing. I didn't succeed and I don't really have much to show for it. Thats the worst of it. On the bright side I'm play a lot of Dota 2 and reading a lot of ruby lit.
ASDXX has joined #ruby
<shevy>
eh we all have our dark past
<shevy>
I played warcraft3 way too long as well
<horrorvacui>
I play 1 game a day. Hardly a problem :P
mattk has joined #ruby
<shevy>
hehe
sambao21 has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
moritzs has quit [Ping timeout: 276 seconds]
<horrorvacui>
The worst part is moving in with your parents :(
<arubin>
Ruby lit, eh?
<horrorvacui>
Yeah I'm bad about reading and not doing.
meatherly has joined #ruby
wwkeyboard has joined #ruby
* arubin
considers a novel that includes actual code.
rezzack has joined #ruby
chipotle has quit [Quit: cya]
<horrorvacui>
Maybe I should of just said ruby books.
<shevy>
hmm
<shevy>
most of the ruby books I read so far were not that useful
<shevy>
save for pickaxe for the first time (not the second time though)
sambao21 has joined #ruby
<horrorvacui>
Well the same for me the exception being POODR.
<fly2web>
i think that there is special thing in ruby?
<fly2web>
is it right?
<fly2web>
i think that there is no special thing in ruby?
<fly2web>
is it right?
flowerpot has joined #ruby
mattk has left #ruby [#ruby]
phrozen77 has joined #ruby
sebastianb has joined #ruby
afex has quit [Ping timeout: 240 seconds]
<shevy>
fly2web man
<shevy>
fly2web did you not ask the same a while ago?
<fly2web>
yes right
<shevy>
fly2web ruby focuses on expressivity, elegance, terseness
<horrorvacui>
I enjoyed the small books by Stormier, except I've not read the one about threads.
mr_rogerz has quit [Remote host closed the connection]
<shevy>
fly2web it is for the most part a natural evolution of what perl should have been
SubSignal has joined #ruby
<shevy>
or perhaps perl6
jacobsmith has joined #ruby
<dorei>
fly2web: ruby is like poetry ;-)
<fly2web>
oh
thomasxie has joined #ruby
<horrorvacui>
Ruby is like haiku
<shevy>
yeah
<shevy>
that is a good way to put it
<fly2web>
perl vs python vs ruby, what is most old?
<shevy>
or perhaps it should be "ruby is like poetry if written well"
<myke>
perl
<shevy>
fly2web perl. and you can find this info on wikipedia ;P
afex has joined #ruby
<fly2web>
perl -> ruby -> python?
yacks has quit [Ping timeout: 265 seconds]
<horrorvacui>
troll
<fly2web>
no
sambao21 has quit [Client Quit]
<horrorvacui>
:p
jeremy_w_rowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<horrorvacui>
I don't think python evolved out of ruby. I'd say python and ruby are more like siblings instead of directly part of a pedigree.
levity_island has quit [Quit: levity_island]
SubSignal has quit [Ping timeout: 265 seconds]
code1337 has joined #ruby
<fly2web>
programmer can do only one language?
<horrorvacui>
I think I'm going to make a fighting game where you can play Guido Van Rossum or Matz. Log the stats of victories and claim that the official results on Ruby vs Python.
Sammael has joined #ruby
<fly2web>
i think that all language is same some aspect.
yfeldblu_ has joined #ruby
rokob has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.4-dev]
<myke>
fly2web: i assume you haven'tbyet run across prolog...
<shevy>
fly2web the philosophies between ruby and python are very different
<fly2web>
i m beginner of ruby.
<shevy>
you need to write code
Mapley has joined #ruby
<fly2web>
i start study ruby. but i m not interested with ruby.
yfeldblum has quit [Ping timeout: 265 seconds]
<horrorvacui>
Then try python
<myke>
^^
<fly2web>
hobodave: but i want hacking with metasploit.
<horrorvacui>
I started out pursuing a degree in Information Assurance but I found it boring and largely ineffective at teaching more than avoiding "security through obscurity" and a lot of other no duh stuff.
Es0teric has joined #ruby
<horrorvacui>
fly2web: just look up ethical hacking and penetration testing that'll get you started.
crystal77 has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
vitorbaptista has joined #ruby
pontiki has joined #ruby
Hanmac1 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
lw has joined #ruby
<vitorbaptista>
Hey all! I'm trying to remember the name of a Ruby library that I've seen a while ago that helps you parse command-line arguments (to create a cli application). Instead of going the usual way of setting up the options as code, it generated that from the documentation strings. So you'd write your app's documentation, and it'll turn that into code and parse the arguments for you. Does someone remembers its name?
<vitorbaptista>
It's pretty hard to google for it :/
<fly2web>
horrorvacui: i feel that i am studying c, python, and other language. but i can’t feel about studying hacking. so i say myself that ‘what are i doing?'?
<myke>
hacking first requires mastery of all the other components
Hanmac has quit [Ping timeout: 265 seconds]
<myke>
hardest and most time consuming thing you can do
iliketurtles has joined #ruby
<myke>
unless your goal is merely to become a script kiddy poser
<horrorvacui>
fly2web: Consider those languages and things you are learning as literacy in the technology world. Then supplement your education by keeping up with security, operating systems, web development, information assurance, etc..
hfp is now known as hfp`offline
ddv has quit [Ping timeout: 245 seconds]
<fly2web>
ok thanks horrorvacui
pwh has quit []
<horrorvacui>
fly2web: If you want a good series to watch check out hak5
iliketurtles has quit [Remote host closed the connection]
<dorei>
fly2web: although i think in most modern operating systems stack overflows dont work anymore
<shevy>
there is an initial cost involved when starting something from scratch (and if you can barely re-use anything else), then there is another slight cost involved when you maintain, fix bugs, or extend and improve on it, but other than that, you can then profit from it immensely and save a lot of time. for instance, I auto-generate calendars in .pdf for coming weeks via ruby, when I have appointments etc...
<vitorbaptista>
fly2web: They give you small VMs with vulnerabilities and hints for you to hack into
<shevy>
eventually I'll write something in ruby-gnome to also display it all automatically
<dorei>
ruby-gnome :O
<vitorbaptista>
pontiki: good idea, I'll look into it
cescalante is now known as ce_afk
<fly2web>
thanks everyone.
<fly2web>
:)
<horrorvacui>
fly2web: also don't hack my country, it has enough problems
saarinen has joined #ruby
jeremy_w_rowe has joined #ruby
fgo has quit [Remote host closed the connection]
code1337 has left #ruby [#ruby]
<shevy>
dorei well there are not many good GUI bindings for ruby :(
<shevy>
I think it has to do with ruby being too work-intensive to maintain from a C-like API
pontiki has quit [Quit: well, maybe not]
pwh has joined #ruby
twiceday has quit [Ping timeout: 252 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
ddv has joined #ruby
x1337807x has joined #ruby
<dorei>
shevy: everytime I do something in ruby-gnome, I always wonder who is doing things wrong/ugly. me? gnome? or ruby-gnome?
<horrorvacui>
All the above.
<shevy>
the ruby-gnome bindings are not very pleasant
kitak__ has joined #ruby
<shevy>
the problem is that there is not much other than a very thing wrapper over it
<shevy>
not very ruby-esque
jeremy_w_rowe has quit [Client Quit]
<fly2web>
horrorvacui: what is your country?
kitak_ has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
<horrorvacui>
USA, E.E.U.U., Meiguo
<fly2web>
i will hack only my country. dont worry.
ASDXX has quit [Quit: Gone...]
oo_ has joined #ruby
hamakn has quit [Remote host closed the connection]
SonicX has quit [Read error: Connection reset by peer]
<elico>
the above is implementation but it moves a bit fast sometimes.
kaichanvong has joined #ruby
centrx has joined #ruby
centrx has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
razrunelord has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<elico>
a bit slow*
narcan has joined #ruby
Hobogrammer has joined #ruby
<elico>
any ruby room open tonight
hermanmunster has joined #ruby
nisstyre has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
joaoh82_ has quit [Ping timeout: 265 seconds]
marr has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SonicX has joined #ruby
<havenwood>
elico: a few suggestions, use `request.nil?`, `!request.is_a? String`, instead of `STDERR.puts` use `warn`, drop explicit `return` when its the last line of a method, rescue a particular exception or at least limit to StandardError
<havenwood>
it's*
<havenwood>
elico: i think i prefer `loop do` to `while true` but that's just whim
joaoh82 has joined #ruby
ValicekB has joined #ruby
<havenwood>
elico: when you're doing `STDERR.puts` followed by `exit` i think you mean to be exiting with an error status?
<havenwood>
elico: so `exit 1`, or better yet use `abort`
<mordof>
I'm taking a walkthrough about classes. Any reason why ClassName. new makes sense, meanwhile to use initialize arguments it's ClassName.new(argdata)
<havenwood>
elico: e.g.: abort 'the arg is a #warn too'
<elico>
havenwood: coupl mintures reading from 0
<mordof>
not sure why the space is there in the first example
<havenwood>
mordof: typo?
<mordof>
havenwood: it's consistent through it
hermanmunster has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
johncjensen has quit [Remote host closed the connection]
<mordof>
havenwood: I know the tutorials made mention earlier on that whitespace didn't make too much difference under many situations. I take it this is just one where it works the same either way? heh
afex has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Read error: Connection reset by peer]
joaoh82 has joined #ruby
<havenwood>
mordof: here's an example of adding whitespace
Cache_Money has joined #ruby
evenix has quit [Remote host closed the connection]
<mordof>
i think one of my eyes just started bleeding
radic has quit [Ping timeout: 252 seconds]
<mordof>
that is very hard to read properly for someone that doesn't really know ruby.
<mordof>
generally for things that are written well, I can figure out what it's supposed to do..
radic has joined #ruby
locriani has joined #ruby
moustiqu_ has joined #ruby
moustiqu_ is now known as lewiz_
jason_ has joined #ruby
<mordof>
havenwood: is there any reason to ever write my code like that in reality?
lewiz_ is now known as MisterL
<havenwood>
mordof: no
MisterL is now known as mysterL
<elico>
havenwood: the main issue is slowdown at runtime.
nateberkopec has quit [Quit: Leaving...]
mysterL is now known as elico_
mary5030 has quit [Remote host closed the connection]
<havenwood>
elico: what's taking time?
elico_ is now known as havenwood_
havenwood_ is now known as mordof_
locriani has quit [Client Quit]
mordof_ is now known as locriani
<havenwood>
elico: which part is slow?
monji has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
locriani_ has joined #ruby
oo_ has joined #ruby
locriani is now known as oo
<elico>
havenwood: I do not know yet which part is slow but sometimes it hangs more then it should. Do you have a suggestion to benchmark each part with?
<havenwood>
elico: i'm assuming the slow part isn't in the code you showed but during the HTTP requests?
braincrash has quit [Quit: bye bye]
<havenwood>
elico: a shorter timeout?
<havenwood>
elico: parallel requests
<elico>
what?
pu22l3r_ has joined #ruby
<elico>
during the HTTP reqests yes...
oo_ has quit [Remote host closed the connection]
evenix has joined #ruby
<havenwood>
elico: so two things. make multiple requests at once in parallel. and when you fail, fail faster with a shorter timeout.
maestrojed has joined #ruby
<havenwood>
elico: are you using Net::HTTP?
<elico>
fail faster?? what?
<elico>
no
<havenwood>
what are you using?
<elico>
it's an external_acl helper for squid
pu22l3r has quit [Ping timeout: 240 seconds]
locriani_ has quit [Quit: Leaving...]
braincrash has joined #ruby
oo_ has joined #ruby
<elico>
it decides if the request should be allowed o r denied.
<elico>
I get the line like these that at the top of the file and returns "OK\n" or "ERR\n"
<havenwood>
elico: i don't know what squid is
<havenwood>
elico: show the code for the part that is slow?
<elico>
never mind what squid is else then it's a proxy that allows me couple things
maestrojed has quit [Client Quit]
Shidash has joined #ruby
<elico>
I gave you the whole code
<havenwood>
elico: that code is slow?
<elico>
I am not yet sure how to findout what is slow
krz has joined #ruby
<elico>
since I started using Class for the request it much slower.
<mordof>
shevy: rails is for a job i've already been hired for that i start May 1st, lol. not much chance of that happening
charliesome has joined #ruby
pika_pika has quit [Ping timeout: 255 seconds]
<MZAWeb>
combusean: first Ruby code ever. Looking for tips mostly on idiomatic stuff
oo_ has joined #ruby
<mordof>
shevy: but it's true, i'm probably not going to particularly enjoy some things of rails.
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
<mordof>
question about that - in rails, am i still able to do normal ruby fine?
<mordof>
or does it change up the way things are done too much
yacks has joined #ruby
jason_ has quit [Remote host closed the connection]
ValicekB has joined #ruby
Mark_ has joined #ruby
<Mark_>
any tips to even like, get started
<combusean>
MZAWeb, from browsing halfway through a first model I'm very impressed by your idiomaticy
metamaterial has joined #ruby
x1337807x has joined #ruby
_sambao21 has joined #ruby
<Mark_>
i just keep going back to C and php
<Mark_>
i need a shove to even want to learn something like python, ruby, or node
<horrorvacui>
mordof: Rails active support extends ruby core some so it can be confusing sometimes when something that you liked in rails isn't available in ruby. Fortunately you can always include what you need from active support.
Hobogrammer has quit [Read error: No route to host]
<Mark_>
any open source projects nifty like discourse, but perhaps not so massive
<Mark_>
?
iliketurtles has quit [Quit: zzzzz…..]
<mordof>
horrorvacui: ah - so if i'm writing in a rails project, and i want to use a normal ruby way of doing something, that's still fully available?
sambao21 has quit [Ping timeout: 252 seconds]
<combusean>
MZAWeb, in fact I can't see any overt smells
<combusean>
MZAWeb, congrats on your first project, you've done very well. =)
oo_ has quit [Ping timeout: 264 seconds]
<mordof>
question: I'm seeing "string string #{ expression } string" <-- is #{ expr } anything like js eval where it could be considered bad practice to use in certain scenarios? I'm just wondering if there's any reasons to stay away from that
<mordof>
obviously things like input sanitization and being aware of where it's being used are important..
<MZAWeb>
combusean: thanks! It took me 2 hs to implement and a full day to rewrite most of it trying to match what I found in other ruby projects
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<combusean>
i only looked at one model but it looked really good
carlyle has joined #ruby
<agent_white>
Mark_: Shoes
Vovko has joined #ruby
<horrorvacui>
mordof: no ruby has its own eval which is like js's eval :P and it still has the same controversy. Thats just string interpolation.
endash has joined #ruby
<horrorvacui>
although mordof I'm going to have to defer to someone else on what security concerns might exist with string interpolation if any.
<mordof>
horrorvacui: ok. so it would be the equivalent of running normal code with a toString on it?
sdouglas has quit [Remote host closed the connection]
<Mark_>
agent_white, rock on
s2013 has quit [Ping timeout: 264 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
mary5030 has joined #ruby
sputnik13 has joined #ruby
carlyle has quit [Ping timeout: 246 seconds]
anaeem1_ has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
<horrorvacui>
mordof: I'm not sure the extent of how it works under the hood but I think that is a safe assumption. Also I did find some concerns exist with string interpolation if you are using the string to say construct a sql query. So do be aware that string interpolation isn't inherently safe.
sputnik13 has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Celm has joined #ruby
oo_ has joined #ruby
netherwolfe has quit [Quit: Lost terminal]
dima__ has joined #ruby
<mordof>
horrorvacui: right. sql injection, input sanitization - i figured those would be the main concerns. thanks :)
poguez_ has joined #ruby
treehug88 has quit []
Deele has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
robbyoconnor has joined #ruby
omosoj has quit [Quit: Leaving]
phansch has joined #ruby
dapz has joined #ruby
endash has quit [Quit: endash]
Celm has quit [Ping timeout: 265 seconds]
dima__ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
<horrorvacui>
mordof: If you want to pick up ruby style and practices it probably wouldn't hurt looking into rubocop. Just run rubocop on your code and fix what it vomits over.
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
<myke>
that renders fine in my browser
<horrorvacui>
mordof: it is because of scope, your @customers_list is nil.
brucelee_ has joined #ruby
carlyle has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<mordof>
hm - i thought @ was class level... hmm.. *goes back to that section*
sepp2k1 has quit [Quit: Leaving.]
<mordof>
that makes sense though obviously, now that you point it out
MatthewsFace has joined #ruby
MatthewsFace has quit [Client Quit]
sputnik13 has joined #ruby
<mordof>
"instance variables" the correct term. class variables are something else
pwh has quit []
<mordof>
horrorvacui: i'm confused as to what type of variable i should use in that scenario
programmer10101 has joined #ruby
oo_ has joined #ruby
<mordof>
using @@ technically wouldn't matter, as logic for the setup of everything would mean i'm not creating more than one instance of the Customers class
sputnik13 has quit [Client Quit]
<mordof>
but if I were making more than one instance (allowing per-store, let's say) - that would be wrong
carlyle has quit [Remote host closed the connection]
<horrorvacui>
mordof: I'm not surprised because you are dancing around some complex concepts I'm a bit worried about explaining to you yet.
evenix has quit [Remote host closed the connection]
greatbeard has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
<mordof>
horrorvacui: not sure there's a need for that worry. if there's a way to relate it either to different languages, or just explaining it generally, i'll understand it
<horrorvacui>
mordof: the ruby object model is a little confusing to people starting off even from other languages though
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
ah, ok
<horrorvacui>
Try for now putting customer list as an instance variable in the constructor
oo_ has quit [Remote host closed the connection]
LexicalScope` has joined #ruby
LexicalScope` has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
LexicalScope has quit [Quit: Leaving]
wjlafrance has quit [Quit: This computer has gone to sleep]
<mordof>
hmmm
programmer10101 has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
LexicalScope has joined #ruby
<horrorvacui>
I see some other errors in the code too but I'll give you a chance to fix them.
<mordof>
so.. the instance variable inside a method of the class makes that instance variable accessible through any other methods of that class, for that instance. i was just defining it in the wrong location
<horrorvacui>
mordof: yeap
<mordof>
yeah - @@customer_count is missing, and i need .to_s on @@customers.add(self) to cast to string
<mordof>
not to cast, but
<horrorvacui>
no no use an instance not class
<mordof>
yeah
bthesorceror has quit [Remote host closed the connection]
<mordof>
hm?
gtc has quit [Read error: Operation timed out]
<horrorvacui>
hold on let me look at it, what line?
<mordof>
all C-based languages with their own quirks and horrid displays, lol
sputnik13 has joined #ruby
<mordof>
i'm aware it'll take some time to adapt the way i think things through to a more ruby-esque way... i need to learn the language first though :)
<horrorvacui>
mordof let show you something real quick about string interpolation
Cache_Money has joined #ruby
<mordof>
haha, i figured that'd be a strange way to do it..
<mordof>
i could just do #@customer_id, #@customer_name could i not?
<horrorvacui>
>> x, y, z = 1, 2, 3; puts "#{x} #{y} #{z}
<horrorvacui>
its alright I'm just linking to it since I'm lazy
<horrorvacui>
take in the essence of ruby don't get hung up on all the style stuff to much yet
<mordof>
that will be harder for me so skim through..
<mordof>
i am *so* used to larger tab size, lol
<mordof>
something like that will actually slow down my code processing quite a bit
george2 has joined #ruby
<mordof>
eh... i think i could get used to it though
apeiros has quit [Ping timeout: 264 seconds]
bodeezl has quit [Remote host closed the connection]
<bricker`LA>
someone please kill me, thank you
* mordof
slaps bricker`LA with a fish repeatedly
<mordof>
sorry i couldn't finish the job - but maybe that'll get someone else started
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bricker`LA>
mordof: well, is it shellfish? Maybe I'll develop an allergy
<bricker`LA>
the whole "chef" naming thing (knife, chef, kitchen, etc) is cute, but it makes googling for support annoying
<mordof>
bricker`LA: hmm.. we'll just go with pihranas and that should get you most of the way there - probable infection included.
jacobsmith has quit [Read error: Operation timed out]
<bricker`LA>
mordof: okay, thanks
<mordof>
bricker`LA: maybe one of the pihranas can have rabies or something dumb like that, lol
hornairs has quit [Quit: hornairs]
ftj has joined #ruby
ftj has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
servatoo_ has quit [Ping timeout: 255 seconds]
<horrorvacui>
mordof: I also noticed earlier you had an empty constructor, don't sweat it if it's empty leave it out.
<mordof>
horrorvacui: oh for sure. i was going to put something in there, then forgot what it was :) that's why it was there
<mordof>
thanks for the clarification though
SirFunk has quit [Remote host closed the connection]
<mordof>
horrorvacui: so the instance variable... let me take a stab at describing how it functions. essentially it's just a variable that becomes available to all methods in a class after initialization (of both the containing class, and the variable in question)? but remains only visible to that individual instance of the class
SirFunk has joined #ruby
<mordof>
and the class scope itself has no visibility to it.. which is strange for me, but yeah
<mordof>
I'm definitely used to a "class" being just an object, with variables and methods being attached to it.. and scope being fairly straight forward, but this seems to be set up differently
<horrorvacui>
sigh... I guess we'll have to have that talk about the singleton class/eigenclass/meta class and ruby object model
<horrorvacui>
I'm lazy
<horrorvacui>
Let me find a link
<mordof>
nah - i'm going to sleep right shortly
<mordof>
i'll get to it in the tutorials
<mordof>
i'll just remember that i'm not understanding it right for now and investigate further on
<horrorvacui>
just remember a new scope starts at class, module, and def keywords
<mordof>
well, a link would still be helpful :)
hermanmunster has joined #ruby
<mordof>
mhmm. that's not new to me
<myke>
a class isn't an object, an object is an instantiated instance of a class
SubSignal has joined #ruby
<mordof>
myke: sorry - javascript terminology flowing through
<mordof>
my explanations of things are going to seem very whacky, hehe
<myke>
classes can have methods that are separate from methods for objects of that class
yfeldblum has quit [Remote host closed the connection]
<mordof>
ohh, hmm
<myke>
what you described sounds confused
yfeldblum has joined #ruby
<MZAWeb>
mordof: Class.method vs. Class.prototype.method in js-land
<mordof>
MZAWeb: cool, thanks :)
<mordof>
thought as much
<horrorvacui>
wow I just realized it kinda is a prototype like object model in a way
<mordof>
heh, yep
s2013 has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
<mordof>
it's behaving rather similarly to what i'm used to, which is cool
<mordof>
just some of the scoping and variable instantiation / rules are different and odd. but that's fine now
senayar has joined #ruby
rezzack has quit [Quit: Leaving.]
<horrorvacui>
It's great you are asking the questions because you'll get a deep understanding of ruby quick that way.
<mordof>
anyhow i'm off for the night. Thanks myke, MZAWeb, horrorvacui, and all others that have contributed to this process so far ^_^ i'll be back tomorrow
<horrorvacui>
But its hard to find an article that describes the object model as good as metaprogramming ruby book
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
<horrorvacui>
So if you can find a copy or just read some of the links found by searching ruby object model
<mordof>
horrorvacui: mhmm :) don't worry, i'll keep at it and ask more refined questions once i dig further in
<mordof>
ok, will do
<horrorvacui>
later
<mordof>
i can't handle using a language i don't fully understand
SubSignal has quit [Ping timeout: 252 seconds]
<mordof>
so everything i do i'll be working on understanding the complexities
<mordof>
edge cases, best practices, etc - very important to me
<mordof>
with that said - if you provide an answer to something and i don't fully understand. i'll keep digging, so it's fairly safe to provide responses when it normally would be dangerous
<mordof>
risk of "oh we'll just do this and not investigate why it works" scenarios
evenix has quit [Remote host closed the connection]
<horrorvacui>
Okay thats a lot like me. I'll remember that if we meet again.
<mordof>
:)
* mordof
wanders off for the night
<mordof>
thanks again~
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
_justin has joined #ruby
vincent has joined #ruby
vincent is now known as Guest93080
combusean has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
Guest93080 has quit [Client Quit]
tkuchiki has joined #ruby
mary5030 has joined #ruby
jamto11 has joined #ruby
mikepack has joined #ruby
rokob has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
jamto11_ has joined #ruby
crzrcn has quit [Quit: Leaving.]
cmoneylulz has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
horrorvacui has quit [Quit: Leaving]
kitak_ has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: gnight all]
bluOxigen has joined #ruby
kitak_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 276 seconds]
ce_afk is now known as cescalante
krz has quit [Ping timeout: 252 seconds]
robert_ has quit [Read error: Connection reset by peer]
<fly2web>
he mistake hime for thief. <——— what is ‘for’? for’s meaning?
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
Xeago has joined #ruby
cmoneylulz has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
tagrudev has joined #ruby
hermanmunster has joined #ruby
krz has joined #ruby
apeiros has joined #ruby
<benzrf>
.
<RubyPanther>
he mistook him for a thief. 'for' connects the two subject arguments to mistook
anaeem1_ has quit [Read error: Connection reset by peer]
<RubyPanther>
take( him.for( thief ) )
robbyoconnor has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
<RubyPanther>
or something
andy__ has joined #ruby
tvw has joined #ruby
<fly2web>
for means ‘in place of’?
arubin has joined #ruby
havenwood has quit [Remote host closed the connection]
<fly2web>
RubyPanther:
heftig has quit [Quit: Quitting]
lw has quit [Quit: s]
<RubyPanther>
sure, sortof
speakingcode has quit [Ping timeout: 265 seconds]
<RubyPanther>
or instead of, sometimes
hermanmunster has quit [Remote host closed the connection]
carlyle has joined #ruby
nari has joined #ruby
robbyoconnor has joined #ruby
akonny has joined #ruby
cescalante is now known as ce_afk
hermanmunster has joined #ruby
<RubyPanther>
or to, in the future
andy__ has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
Xeago has quit [Read error: Connection reset by peer]
carlyle has quit [Ping timeout: 246 seconds]
LostDatagram has quit [Read error: Operation timed out]
makara has joined #ruby
Xeago has joined #ruby
nisstyre has joined #ruby
hermanmunster has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
jeekl has quit [Read error: Operation timed out]
oo_ has joined #ruby
maloik has quit [Ping timeout: 252 seconds]
not_satoshi_101 has joined #ruby
LexicalScope has quit [Ping timeout: 255 seconds]
aganov has quit [Ping timeout: 240 seconds]
Zhann has quit [Read error: Operation timed out]
Zhann has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
combusean has joined #ruby
maloik has joined #ruby
LostDatagram has joined #ruby
tobago has joined #ruby
brucelee_ has quit [Ping timeout: 240 seconds]
<fly2web>
thanks RubyPanther
northfurr has quit [Quit: northfurr]
<fly2web>
RubyPanther: you are bot?
<fly2web>
human?
jeekl has joined #ruby
<RubyPanther>
wow, I'd be awesome as a robot
brucelee_ has joined #ruby
<RubyPanther>
my wife is voting robot lol
<MZAWeb>
Take a turing test
etqqkoiflwhb has joined #ruby
dima__ has joined #ruby
<fly2web>
i think that i lost my purpose. so i will give up programming.
Kricir has quit [Remote host closed the connection]
<fly2web>
thing that i wanted is web database hacking.
<fly2web>
but there is no hope.
lolmaus has quit [Ping timeout: 240 seconds]
<fly2web>
good picture.
sdouglas has quit [Remote host closed the connection]
<fly2web>
RubyPanther: how can i do?
vpretzel_ has quit [Quit: Adios!]
carlyle has joined #ruby
dima__ has quit [Ping timeout: 265 seconds]
Kricir has quit [Ping timeout: 265 seconds]
brucelee_ has quit [Ping timeout: 264 seconds]
shashank_rs has joined #ruby
Royalb15_1 has joined #ruby
aganov has joined #ruby
carlyle has quit [Ping timeout: 246 seconds]
jacobsmith has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Celm has joined #ruby
_pingu has joined #ruby
<_pingu>
did gem install berkshelf and got the following log with errors: http://pastebin.com/LFtziVU5 what can i do?
Lewix has quit [Remote host closed the connection]
oo has quit [Remote host closed the connection]
Royalb has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
anarang has joined #ruby
SonicX has quit [Remote host closed the connection]
ndrei has joined #ruby
Celm has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
_justin has quit [Quit: _justin]
arturaz has joined #ruby
<arubin>
_pingu: Try upgrading tar.
<arubin>
What are you using to build this on Windows?
jottr has joined #ruby
amclain has quit [Quit: Leaving]
not_satoshi_101 has quit [Read error: Connection reset by peer]
r_rios has quit [Read error: Connection reset by peer]
<_pingu>
arubin: what do you mean with upgrading tar? gem list | grep tar shows only minitar (0.5.4). What I'am using? The opscode omnibus installer comes with an embeddet ruby v1.9.3 Does that answer your question?
r_rios has joined #ruby
_justin has joined #ruby
<arubin>
No, the tar command itself is dying, not a Ruby module.
<arubin>
So you probably need to update whatever environment you are using to build this module.
<arubin>
MZAWeb: He appears to have a tar executable, but it is dying.
poguez_ has quit [Quit: Connection closed for inactivity]
arturo_ has joined #ruby
jprovazn has joined #ruby
<_pingu>
arubin: yes I have a tar executable. which tar in the git bash shows: /bin/tar
<arubin>
_pingu: I would update whatever installed the tar executable.
Bofu2U has quit [Ping timeout: 240 seconds]
kaffepanna_ has quit [Quit: Leaving]
<MZAWeb>
arubin: are you sure?
<MZAWeb>
arubin: the last error is " `block in run': Failed to build gecode library. (GecodeBuild::BuildError)"
kaffepanna_ has joined #ruby
kaffepanna_ is now known as kaffepanna
<arubin>
MZAWeb: 0 [main] tar 10780 open_stackdumpfile: Dumping stack trace to tar.exe.stackdump
lolmaus has quit [Client Quit]
klaut has joined #ruby
bthesorceror has quit [Ping timeout: 276 seconds]
<_pingu>
arubin: the tar.exe is from the git embedded bash. v1.22 don't know how to update this by the way. isn't there another way?
sdwrage has quit [Quit: This computer has gone to sleep]
<arubin>
_pingu: You might be able to just install another tar and make sure that it is earlier in your path or replace the one that is there.
foooobear has joined #ruby
hermanmunster has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<_pingu>
arubin: ok, i'll try
hermanmunster has quit [Remote host closed the connection]
lolmaus has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hermanmunster has joined #ruby
nfk has joined #ruby
pu22l3r has joined #ruby
MZAWeb has quit [Ping timeout: 252 seconds]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arturo_ has quit [Quit: arturo_]
tyfighter has joined #ruby
Mdgd has joined #ruby
<Mdgd>
Hey fellas.
<Mdgd>
So either I've pushed Ruby's technological boundaries, or I'm missing something.
hermanmunster has quit [Ping timeout: 265 seconds]
<crome>
it sounds interesting
<Mdgd>
I'm trying to generate a JSON output from a collection of models _ using. no. hash. maps.
<Mdgd>
This is very important
jxf has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
<Mdgd>
I'm trying to populate a datatables gadget and it needs to put all of the stuff in an associative array, where the array with actual records goes under a certain string key.
wjlafrance has joined #ruby
wjlafrance has quit [Client Quit]
<Mdgd>
Now I'm finding out Ruby does not support non-numerical array indexes?
<crome>
correct
<Mdgd>
Cause it keeps converting my arrays to hash maps once I have a string key involved. Ergo, the output can never be compatible.
<Mdgd>
Oh christ..
<Mdgd>
I'm gonna have to string this server response together word for word aren't I?
lolmaus has quit [Ping timeout: 255 seconds]
<Mdgd>
Just a sec..
andikr has joined #ruby
<apeiros>
Mdgd: there is no such thing as "non numerical array indexes"
<crome>
I dont really get it why using a hash is not good enough
alpha123 has quit [Ping timeout: 255 seconds]
ce_afk is now known as cescalante
lolmaus has joined #ruby
<apeiros>
an array is always positional, so always indexes, so always numbers (and no, php's clusterfuck isn't really an array, despite its name)
krandi has joined #ruby
<crome>
or using an array of hashes with an optional attribute in each that is your "key"
Night-hacks has joined #ruby
<apeiros>
Array has #assoc and #rassoc
IceDragon has quit [Quit: Space~~~]
sski has joined #ruby
alpha123 has joined #ruby
<apeiros>
though, I'm curious as to why you think you must not use hashmaps
krandi has quit [Remote host closed the connection]
<Mdgd>
Now note the JSON response keeps throwing me a hash map with 'aaData' as one of its indexes [{"aaData":[[37748,"Dakpannen",null],[37748,"Dakpannen",null]]}]
ninegrid has quit [Ping timeout: 265 seconds]
<Mdgd>
This needs to become ["aaData":[[37748,"Dakpannen",null],[37748,"Dakpannen",null]]]
<apeiros>
Mdgd: ["aaData":[[37748,"Dakpannen",null],[37748,"Dakpannen",null]]] <-- this is not a thing
<apeiros>
not valid json.
<Mdgd>
Maybe not in Ruby
<apeiros>
no. that's unrelated to ruby. you talk about json output.
<apeiros>
what you suggest is not json.
dapz has joined #ruby
<crome>
its not even valid json
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<crome>
oh, Im late ;<
<Mdgd>
Yet this is the format used in datatables and one I can generate in PHP
<apeiros>
you can have either {"aaData": […]} or [["aaData", […]]
skaflem has joined #ruby
<apeiros>
but ["aaData": […]] is not json.
<Mdgd>
..
<apeiros>
Mdgd: fine, your php generates *invalid json*
<Mdgd>
Am I missing something here..
<apeiros>
or rather: it generates something which is not json.
holomorph has joined #ruby
<Mdgd>
Hahaha
Avahey_ has quit [Quit: Connection closed for inactivity]
<myke>
uh
* apeiros
afk for a bit
<myke>
isn't that new school php?
<Mdgd>
Nevermind guys
<Mdgd>
I got my brackets mixed up
<myke>
where you can just use [] to create arrays
jeregrine has quit [Quit: Connection closed for inactivity]
<apeiros>
myke: unrelated to what's valid json and what's not.
Deejay_ has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<Mdgd>
I think.. I hope..
_justin has quit [Ping timeout: 240 seconds]
<myke>
i thought he might be talking about eval()ing generated php
claymore has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
_justin has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
himsin has joined #ruby
<_pingu>
ok, my console uses now the opscode tar. what sould i do next? fire gem install berkshelf again?
<Mdgd>
Yeah I was chasing the wrong end here, thanks guys.
akonny has quit [Quit: akonny]
bigkevmcd has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
LiohAu has quit [Quit: LiohAu]
bigkevmcd has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
kitak_ has quit [Remote host closed the connection]
lolmaus has joined #ruby
cescalante is now known as ce_afk
alem0lars has joined #ruby
Kricir has joined #ruby
roadie` has joined #ruby
kitak_ has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
johncjensen has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 264 seconds]
roadie` has quit [Client Quit]
SonicX has joined #ruby
roadie has joined #ruby
timonv has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
lolmaus has joined #ruby
rails426 has joined #ruby
Fire-Dragon-DoL has joined #ruby
pu22l3r has joined #ruby
SonicX has quit [Read error: Connection reset by peer]
sdouglas has quit [Remote host closed the connection]
fabrice31 has joined #ruby
elaptics`away is now known as elaptics
carlyle has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
predator217 has left #ruby [#ruby]
Kricir has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
jacobsmith has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
carlyle has quit [Ping timeout: 246 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
Guest57604 has quit [Quit: Connection closed for inactivity]
<_pingu>
ok, works now. thanks so far!
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140317233623]]
SonicX has joined #ruby
echevemaster has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Quit: Leaving...]
mikepack has joined #ruby
SubSignal has joined #ruby
lolmaus has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
schaary is now known as schaary|afk
fly2web has quit [Quit: fly2web]
Morkel has joined #ruby
akonny has joined #ruby
relix has joined #ruby
fgo has quit []
tyfighter has quit [Quit: tyfighter]
mikepack has quit [Ping timeout: 240 seconds]
schaary|afk is now known as schaary
combusean has joined #ruby
SubSignal has quit [Ping timeout: 276 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
lolmaus has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
lolmaus has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
MacTrash has joined #ruby
rkr090 has quit [Quit: Leaving]
supermarin has joined #ruby
lolmaus has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
niky has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
AlexRussia has joined #ruby
lolmaus has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Kricir has joined #ruby
timonv has joined #ruby
iliketurtles has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
tvw has quit []
aspiers has quit [Read error: Operation timed out]
ponga has joined #ruby
ponga has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
shashank_rs has joined #ruby
lolmaus has joined #ruby
LiohAu has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
MacTrash has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
MacTrash has joined #ruby
foooobear has joined #ruby
qba73 has joined #ruby
zoraj has joined #ruby
ce_afk is now known as cescalante
sk87 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
fella5s has quit [Read error: Connection reset by peer]
supermarin has quit [Ping timeout: 276 seconds]
lolmaus has quit [Ping timeout: 264 seconds]
dima__ has joined #ruby
mengu has quit [Remote host closed the connection]
fella5s has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
lolmaus has joined #ruby
abdulsattar has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nvrch has joined #ruby
cescalante is now known as ce_afk
dima__ has quit [Ping timeout: 265 seconds]
WishBoy has quit [Remote host closed the connection]
blackmesa has joined #ruby
Stalkr^ has joined #ruby
Trudko has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Quit: Leaving...]
rokob has quit [Remote host closed the connection]
<Trudko>
guy what do you think it would take for ruby to become popular and maybe take down the php? More tools? More places to learn it?
lolmaus has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
<DefV>
I don't think Ruby / rubyists have that ambition
johncjensen has quit [Remote host closed the connection]
nomenkun has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
olivier_bK has joined #ruby
funburn has joined #ruby
WishBoy has joined #ruby
tvw has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nomenkun_ has joined #ruby
<Trudko>
Do you think they should? I read bit older article from Jeff Atwood where he simply points out that intestead of arguing that php as languages sucks we should focus on building alternatives. It intrique me
sk87 has joined #ruby
<Trudko>
intrigue
niky has quit [Ping timeout: 252 seconds]
karthikselva has joined #ruby
chipotle has quit [Quit: cya]
roadie has quit [Quit: switching cables]
karthikselva has left #ruby [#ruby]
roadie has joined #ruby
atmosx_ has joined #ruby
<Trudko>
I still notice new people using php and I am courious if they are making the right choice especially these days when you can get free hosting for whatever language you want. Of course there are still legit uses for PHP>
atmosx has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
kaspergrubbe has joined #ruby
_justin has quit [Ping timeout: 276 seconds]
<canton7>
sure. php hosting is still ubiquitous, there are plenty of companies maintaining php system, and php is very much a beginners' language.
<tobiasvl>
probably something for the rails community, not sure if the ruby community themselves need to take up that fight
SonicX has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 240 seconds]
dANOKELOFF has joined #ruby
Night-hacks has quit [Ping timeout: 264 seconds]
kevinykchan has joined #ruby
<Trudko>
tobiasvl: that is certainly question for rails community too but ruby community as such could help for example by building alternatives to rails, by making sure that ruby is included in things like codeacademy. For example TryRuby is great toold for starter.
phansch has joined #ruby
<Trudko>
Still I need to find out some good info about benefits of switching from php.
rdark has joined #ruby
<canton7>
we have sinatran, camping, padrino, and others
<Trudko>
canton7: yeah I know that rails arent only tool there I am just saying that building such a tools by rubyist could help.
<canton7>
my point is that other rubyists *do* build such tools, and it *does* help :P
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
malcolmva has quit [Ping timeout: 276 seconds]
klaut has quit [Remote host closed the connection]
NovapaX has joined #ruby
<Trudko>
Php is beginner language but it seems that it is beginner language more because of convenience , i think PHP as first language is terrible idea and there are many better alternatives
servatoo has quit [Remote host closed the connection]
servatoo has joined #ruby
<canton7>
I think it's probably a beginner language out of habit :P
lolmaus has joined #ruby
rails426 has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
<Hanmac>
Trudko: i never used ruby for websites before ... i used it for shell scripts, for ingame-logic, for window-gui, for 2d & 3d rendering, but not for websites ;P
holomorph has left #ruby [#ruby]
einarj has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
_justin has quit [Client Quit]
lolmaus has quit [Ping timeout: 252 seconds]
shashank_rs has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
lsmola has joined #ruby
lolmaus has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
wallerdev has quit [Quit: wallerdev]
phansch has quit [Ping timeout: 264 seconds]
vasilakisfil has joined #ruby
<vasilakisfil>
hello! how can I run something on terminal from ruby but get each line of the output without waiting for it to finish ?
<tobiasvl>
vasilakisfil: what do you mean? what kind of output is that?
<tobiasvl>
you should get each printed line immediately in most cases
<tobiasvl>
although stdout is often buffered… is that what you mean?
<vasilakisfil>
ok let's say that I have a ruby script that starts a web server (java -server.jar options1 etc).. If I run that I only get the output of the command when the server closes
lolmaus has quit [Ping timeout: 264 seconds]
<tobiasvl>
the return value?
<vasilakisfil>
yeah
raul782 has quit [Ping timeout: 255 seconds]
<vasilakisfil>
I want to print line by line when I have a new line from the output of the %x{ command }
forcefsck has joined #ruby
banister`sleep has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flops has joined #ruby
phansch has joined #ruby
razrunelord has joined #ruby
robert___ has joined #ruby
robert___ has quit [Changing host]
robert___ has joined #ruby
andrewlio has joined #ruby
<canton7>
vasilakisfil, Open3::popen3, in your block do something like 'stdout.each do |line| puts line end
<canton7>
(iirc)
lolmaus has joined #ruby
robert___ is now known as robert_
supermarin has joined #ruby
noop has joined #ruby
W0rmDr1nk has joined #ruby
WormDrink has quit [Ping timeout: 252 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 240 seconds]
ikaros has joined #ruby
ce_afk is now known as cescalante
Fire-Dragon-DoL has left #ruby [#ruby]
LekeFly has joined #ruby
Aaaal has joined #ruby
malcolmva has joined #ruby
dawkirst_ has joined #ruby
deeyes has joined #ruby
Macaveli has joined #ruby
Kricir has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
aspiers has joined #ruby
dawkirst_ has quit [Client Quit]
phansch has quit [Read error: Operation timed out]
dawkirst has joined #ruby
_justin has joined #ruby
deeyes has quit [Client Quit]
phansch has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 252 seconds]
funburn has quit [Read error: Connection reset by peer]
binw has quit [Read error: Connection reset by peer]
funburn has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
klaut has joined #ruby
<vasilakisfil>
it works! thanks!
mcrmfc has joined #ruby
cescalante is now known as ce_afk
workmad3 has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
SonicX has joined #ruby
binw has joined #ruby
flops has quit [Quit: leaving]
flops has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
Stalkr^ has joined #ruby
abdulsattar has joined #ruby
nari has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
sdouglas has joined #ruby
marr has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
eka has joined #ruby
carlyle has joined #ruby
jle` has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
robbyoconnor has joined #ruby
flops has quit [Quit: leaving]
Stalkr^ has quit [Quit: Leaving...]
carlyle has quit [Ping timeout: 246 seconds]
nomenkun_ has quit [Read error: Connection reset by peer]
Celm has joined #ruby
decoponio has joined #ruby
jhass|off is now known as jhass
Milly_Bays has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
nolic has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
pessimism has joined #ruby
SubSignal has joined #ruby
<pessimism>
what is the bundle command to update the gems in my Gemfile that don’t have a specified version?
jottr has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
nomenkun has joined #ruby
SubSignal has quit [Ping timeout: 264 seconds]
<fohan>
somebody has already used the AT&T gem for Speech service ?
<Nilium>
Presumably AT&T has.
kyb3r_ has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
Xeago has quit [Remote host closed the connection]
<fohan>
Yeah, thanks Nilium
Speed has joined #ruby
<Nilium>
You're welcome.
<olivier_bK>
for include module in my file i do require_relative "my_file" , i thought may be theyre is a best solution
akonny has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
akonny has quit [Read error: Connection reset by peer]
<fohan>
anybody else ?
jottr has quit [Ping timeout: 276 seconds]
akonny has joined #ruby
qohelet_ has joined #ruby
<workmad3>
pessimism: 'bundle update' or 'bundle update <gem_name>' for just a certain gem
timgauthier has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
qohelet_ has quit [Client Quit]
pessimism has quit [Ping timeout: 264 seconds]
<timgauthier>
hallo
Aaaal has quit [Quit: Aaaal]
<timgauthier>
this one time i dreamed of compiled ruby
jamto11 has joined #ruby
voltagex has left #ruby ["WeeChat 0.4.3"]
Morkel has joined #ruby
relix has quit [Ping timeout: 265 seconds]
dima__ has joined #ruby
<workmad3>
timgauthier: given some of ruby's features, I'm not sure a fully compiled ruby will ever be realised... any compiled executable would basically need to embed the ruby interpreter and whole standard library
relix has joined #ruby
<timgauthier>
yeah, i don't want a compiled ruby
<timgauthier>
it was weird
<workmad3>
timgauthier: the future of ruby could easily contain the ability to compile to a more standardised ruby VM bytecode, similar to java :)
<workmad3>
although I'm not sure whether that would really bring too many advantages either
jamto11 has quit [Ping timeout: 240 seconds]
<timgauthier>
is there really any actual problems with a runtime language?
<timgauthier>
i mean, yes it can be slow, but it also can be fast, it depends more on how you write it then the fact that it is a compiled vs runtime language
<timgauthier>
once you get that many layers away from machine code i mean really
<workmad3>
there are certain optimisations that can't really be done without compilation
<workmad3>
but there are also certain optimisations that can't really be done with compilation and are specific to bytecode VMs
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<timgauthier>
compiling is good for things like garbage collection and memory management right?
<timgauthier>
like thats what i've gathered from iOS and using C
<timgauthier>
not that i write C
<timgauthier>
but since ruby isn't targeted for those devices or use cases then it isn't a huge issue
<workmad3>
nah, those are fairly independent on the language runtime
<fohan>
I guess high level langages like ruby or python are enough performant for ~80 softwares, no ?
roadie has joined #ruby
<fohan>
80%
dima__ has quit [Ping timeout: 252 seconds]
<workmad3>
you can have interpreted languages with manual memory management, you can have compiled languages with GC
<timgauthier>
but i don't see ruby as really being used to write "programs" in the native sense that we see things like iWork or stuff like that
<timgauthier>
i mean ruby is great for what its being used for currently, daemons and background utilities and such
cover has joined #ruby
<timgauthier>
but i'm saying you wouldn't use ruby for building out huge apps like those
<tobiasvl>
no of course not
<tobiasvl>
so what
<tobiasvl>
you wouldn't use bash for that either, or perl or python or php for that matter
<timgauthier>
exactly, i'm saying if i don't want to do that sort of thing with ruby, then i don't care if it is runtime or compiled
<tobiasvl>
ah
<tobiasvl>
indeed
<timgauthier>
since most ruby apps require a specific amount of technical knowledge to use, then who cares if I have to have my own ruby runtime and libraries
<timgauthier>
if i am technical enough to use ruby programs, then i am likely technical enough to know how to do so
ce_afk is now known as cescalante
<workmad3>
timgauthier: 'most ruby apps require a specific amount of technical knowledge' <-- I'd disagree here... probably most ruby apps are webapps and used by plenty of non-technical people ;)
speakingcode has joined #ruby
Platini has quit [Read error: Connection reset by peer]
<timgauthier>
well that goes into the rails/sinatra/frameworks
<timgauthier>
but yets
<timgauthier>
yes*
fohan has quit [Quit: Page closed]
Kricir has joined #ruby
spider-mario has joined #ruby
joaoh82 has quit [Remote host closed the connection]
FIGO_ has joined #ruby
atmosx_ is now known as atmosx
<workmad3>
timgauthier: I guess what you're saying is really more 'Ruby hasn't really broken into the realm of large, traditional, monolithic desktop GUI apps'
<timgauthier>
yeah
akonny has quit [Quit: akonny]
<timgauthier>
well, more i'm saying that ruby isn't really seem like it is to be used for those types of apps
<timgauthier>
it is more likely able to be used for that then say Javascript
<timgauthier>
and it would likely do a better job then say Java
<atmosx>
workmad3: if you are good with OB dev who hard can it be to master Objec-c + cocoa?
<workmad3>
timgauthier: nothing about ruby says that it's not intended for that sort of dev...
<timgauthier>
then why are most ruby based apps very rudimentary?
FIGO_ is now known as Platini
<timgauthier>
like the thing about ruby to me is that it is very very powerful, more powerful then PHP ever could imagine being. yet it can be used in applications similar to php
speakingcode has quit [Ping timeout: 276 seconds]
<workmad3>
timgauthier: because most ruby devs write unix tools or web apps
Kricir has quit [Ping timeout: 264 seconds]
<atmosx>
ObjC is a bit more verbose but the concepts are the same. Getting used to xCode could be a pain though
<atmosx>
I had to prepare a sample-thesis for a class in Ms Word. It was a huge pain in the ass. I had to do everything manually :-(. Latex is so much easier. And the prof wouldn't accept a PDF, blah.
<timgauthier>
but in theory we could build actual desktop applications in ruby that are running on a server to control enterprise level web cms and commerce systems
<workmad3>
timgauthier: 'desktop applications in ruby that are running on a server' <-- that's kinda a contradiction
<atmosx>
timgauthier: that sounds extremely pooer design
<atmosx>
workmad3: he wants a desktop GUI to access a server's data I think.
<atmosx>
workmad3: but what about portability, etc. It's a mess
supermarin has joined #ruby
<atmosx>
and Java sucks...
<workmad3>
atmosx: it's possible... but that isn't what he *said* so I'm pointing out the contradiction ;)
<workmad3>
atmosx: as what you described is a traditional client-server architecture (fairly sound and standard design) with a GUI client rather than e.g. a command line or html/browser client
<timgauthier>
yeah i want something that is actually the server
<timgauthier>
i don't know or care where the binary for the interface sits
<timgauthier>
it could be web browser, or it could be a downloaded and executed ruby app
cescalante is now known as ce_afk
<timgauthier>
it just seems like, for that to work, you need something else to actually act as the gui interface, either HTML (rails etc) or some other language (c for os x etc)
<atmosx>
workmad3: yeah, but given the fact that the world is shifting away from GUI and closer to everything over http, why would you want to go back in the 90s?
<timgauthier>
because i liked that part of the 90's?
<workmad3>
timgauthier: you *could* write an entire gui system in ruby... with unix, you'd probably need C interfaces to obtain the drawing buffers, etc.
supermarin has quit [Ping timeout: 264 seconds]
<timgauthier>
and because in a lot of cases the shift isn't good
<workmad3>
timgauthier: but no one has bothered because it's kinda pointless
<timgauthier>
a native app is still a good thing to have
<workmad3>
timgauthier: instead we have bindings to already established gui frameworks (such as gnome)
<timgauthier>
sure i can use the numbers document my fiancée and I share through the web app version of numbers.
<timgauthier>
but the desktop app is much snappier on my macbook air then any web app has been. the interface breaks less often, and it can handle losing my damn connection
<atmosx>
workmad3: just to keep a windows version, linux version and mac version?! Or write shitty java guis?
<atmosx>
workmad3: web-interface + API for mobile applications and you're all set IMHO.
<workmad3>
timgauthier: so basically what you're saying currently is that the numbers webapp is crappy :)
<timgauthier>
no
Stalkr^ has joined #ruby
<timgauthier>
i'm saying the numbers web app is the best web app interface i've used, but even that isn't as good as a desktop app
<rdark>
There's always gtk2, if you're on linux..
r_rios has quit [Read error: Connection reset by peer]
<workmad3>
timgauthier: well, seeing as it's easily possible to have snappy web interfaces that survive lack of connection nowadays, it kinda sounds like you are :P
r_rios has joined #ruby
<atmosx>
timgauthier: buy a chromebook see how that goes
<timgauthier>
what web apps have you used that you would consider having a good interface for that? :|
<timgauthier>
i tried out chrome os, no thanks
<timgauthier>
i dislike that interface entirely, it feels far to confined to what the web can present
lolmaus has joined #ruby
<atmosx>
timgauthier: gmail, icloud (the whole things), google docs, twitter, facebook, foursquare, bootcamp, ... should I continue?
<workmad3>
timgauthier: also, plenty of native GUIs are clunky, over-engineered, have crap responses and, if they have a client-server aspect, lack any ability to survive a connection loss
<timgauthier>
yeah thats true workmad3 i guess i'm trying to paint this too black and white
mengu has quit [Remote host closed the connection]
<timgauthier>
gmail is ... yeah i don't use the gmail web client
<timgauthier>
apple mail is better, and it sucks :P
<atmosx>
timgauthier: so what? You asked about the experience, not about which does what. It could work offline if you really want to and sync when you go online. Plus we were discussing about gui apps and you can write a facbeook gui app if you really wanted to.
<timgauthier>
google docs i've used in a pinch but i'd never open it to write something up in
<workmad3>
timgauthier: I bet that even your native Numbers would have trouble there... e.g. if you opened up a document on a dodgy network drive
<atmosx>
mailpile is pretty neat and it's JS based
<timgauthier>
i'll have to try mailpile
<timgauthier>
ehh workmad3 once the document is open its fine, because it does everything client side until you are done then it sends the changes.
<atmosx>
timgauthier: why? You have thunderbid a gui program
<atmosx>
timgauthier: why would you wanna use a web-based application?
<atmosx>
apparently firefox has the same views as we do :-)
kitak_ has quit [Remote host closed the connection]
<timgauthier>
mozilla stopped maintaining it, and then boom it died basically
<timgauthier>
firefox is the most behind browser,
Martxel has joined #ruby
jle` has joined #ruby
<atmosx>
behind or not, everything is going on-line, so basically offline and stand-alone desktop applications will look like dinosaurs in 5 years
<timgauthier>
people keep saying that
<workmad3>
timgauthier: firefox is more behind than IE? :P
<timgauthier>
yes actually FF *is* more behind then IE
<atmosx>
later all
<timgauthier>
cya atmosx
moritzs has joined #ruby
<workmad3>
timgauthier: how so?
NovapaX has joined #ruby
carlyle has joined #ruby
<timgauthier>
it is less standards complaint then the latest versions of IE
<timgauthier>
most of the workarounds in CSS and HTML right now are for FF
aspiers has quit [Ping timeout: 240 seconds]
<timgauthier>
to make the latest version of FF render up to standard, or to deal with FF just simply refusing to render standard features so that we have fail-back
<timgauthier>
and i'm not even talking about like crazy edge case CSS3 things, i mean simple crap
heftig has joined #ruby
<workmad3>
timgauthier: examples please
sdouglas has quit [Ping timeout: 240 seconds]
<timgauthier>
i'm trying to think of one off hand, box-shadow was a big one for a while but i believe they've mostly caught up
<timgauthier>
i'm restarting safari because i just broke it :P
<workmad3>
timgauthier: and it's been in FF since FF4
voycey has joined #ruby
carlyle has quit [Ping timeout: 246 seconds]
<timgauthier>
i am not as fast as you guys at going and finding shit, sec.
LekeFly has quit [Ping timeout: 264 seconds]
moritzs has quit [Ping timeout: 276 seconds]
<voycey>
what do people recommend as the fastest way to set up a rails environment without using a VM (will be running side by side with a LAMP stack) on Ubuntu?
Celm has joined #ruby
<timgauthier>
its mostly since css3 that FF hasn't kept up
<timgauthier>
yeah i can't find the report card i was looking at before
<timgauthier>
its not terrible
<timgauthier>
its not that FF went backwards
<timgauthier>
its just IE caught up
<workmad3>
timgauthier: we're now on FF 29
chipotle has quit [Quit: cya]
LekeFly has joined #ruby
<workmad3>
timgauthier: the only comparisons I ever saw that claimed IE had better CSS3 support than FF were MSs own comparisons... where they only compared with the stuff they'd implemented in IE, not with the whole of CSS3 and HTML5 (some of which they point blank refuse to ever support)
<timgauthier>
i'll look more carefully in the future, maybe i fell to one of those
SonicX has quit [Remote host closed the connection]
<workmad3>
timgauthier: I've still yet to see a CSS hack for something other than IE too, btw ;)
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<workmad3>
timgauthier: I've seen the need for prefixed selectors in FF after e.g. chrome has supported the unprefixed version... and vice-versa
<timgauthier>
eh, most of the crap i've seen has been to keep IE 6 working :|
<workmad3>
s/selectors/styles
<workmad3>
timgauthier: yeah, I don't bother with that anymore :)
<timgauthier>
but using -moz is a hack, and having to do a couple of things differently so that moz does the same thing as safari and chrome is annoying.
Celm has quit [Ping timeout: 265 seconds]
<workmad3>
timgauthier: my default web server setup can't even be connected to with IE6 ;)
<timgauthier>
that said, that is design on the web, you have to build your shit to work in that type of world
<timgauthier>
what?!
<workmad3>
timgauthier: IE6 only runs on windows XP... my default webserver setups require SSL features that XP doesn't even understand
<workmad3>
timgauthier: ergo, IE6 is out the picture :)
fabrice31 has quit [Remote host closed the connection]
<timgauthier>
ah
<workmad3>
but then, MS themselves no longer support IE6 and XP... so why should I? :D
<timgauthier>
my problem is some of my clients target people who are in giant bass awkward corporations that think they are more secure still running their old ass custom deployments of XP
karupa is now known as zz_karupa
<deepy>
workmad3: which SSL features are that?
<workmad3>
deepy: SNI
<deepy>
oh
Milly_Bays has quit [Quit: Leaving]
<Hanmac>
timgauthier: be happy, while i learned Programming we also had win2000 on some pcs ;P
<deepy>
Hanmac: no 9x strugglers?
<workmad3>
deepy: if I could, I'd also turn off TLSv1 on my servers... but that excludes a few too many setups for even my liking :(
<Hanmac>
deepy: i dont think so ... maybe somewhere in the storage
<Hanmac>
sometimes i thought we had older tech then the guys on Warehouse13
<timgauthier>
I live in a world where design means inclusive, so cutting people out is a tough choice to make. I try not to cut people out entirely, I just make sure that the site works (usually they get a very basic stripped down version)
<deepy>
<p>Your browser only supports this disclaimer, please update to see more of the site</p>?
<workmad3>
timgauthier: I'm inclusive... right up until the point where that compromises security
chipotle has joined #ruby
<timgauthier>
yeah, i mean if you are building something that requires or uses security for its access then definitely
<workmad3>
timgauthier: if I have to allow broken SSL versions just to talk to the browser, then that means the entire security of the site is compromised for *everyone*
<workmad3>
timgauthier: which I won't do... so that tiny 1% of people outside of china still using IE6 can just get error screens if they ever even end up on one of my sites :)
<timgauthier>
yea
<deepy>
Hanmac: look at the clock on the two pictures
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<timgauthier>
my last client was for my fathers company, and he does training for people in the insurance industry
<timgauthier>
and it is crazy in the bank/insurance industry how many of them still use winXP
<timgauthier>
and IE6
<Hanmac>
deepy thats part of the joke ... PS: you might need to see the series from where the picture is taken to understand it
heftig has quit [Quit: Quitting]
<timgauthier>
because they don't want to update something somewhere so they keep their entire system insecure, then secure it by just disconnecting it from the internet.
alem0lars has joined #ruby
<deepy>
I have seen both the series and the episode :-)
<deepy>
But I was thinking of the widget clock
jack_rabbit has quit [Read error: Operation timed out]
<workmad3>
timgauthier: I have better SSL practices than most reputable banks in europe ;)
mercwithamouth has joined #ruby
<timgauthier>
hhaha
<timgauthier>
yeah, the fact that your bank doesn't show a withdrawal from a bank machine instantly is... rediculous
<timgauthier>
so why does the Facebook like button load crap every time you see it on a page? :|
ixti has quit [Ping timeout: 255 seconds]
moritzs has quit [Ping timeout: 255 seconds]
<DefV>
timgauthier: statistics
<timgauthier>
ah, the Facebook like button is doing stats ... :| but they don't let you have analytics... THAT would have been a smart move by google. Put the google plus button and it includes analytics!
dcorbin has quit [Changing host]
dcorbin has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
SubSignal has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
joaoh82 has joined #ruby
hackeron has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
phantasm66 has quit [Quit: *sleeeep….]
andikr has joined #ruby
SubSignal has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 240 seconds]
m00nlight has joined #ruby
chrisseaton has joined #ruby
relix has joined #ruby
akemrir has joined #ruby
dima__ has joined #ruby
MZAWeb has joined #ruby
akonny has quit [Quit: akonny]
Bofu2U has joined #ruby
dima__ has quit [Ping timeout: 276 seconds]
krz has joined #ruby
dANOKELOFF has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
Di has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
charliesome has joined #ruby
danshultz has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
heftig has joined #ruby
_izz has joined #ruby
<_izz>
hey guys, I've got a 1.8.7/rails 2.3.17 project, and I'm looking for a testrunner for Jenkins
<_izz>
normally I run the tests with rake test, or from inside IntelliJ
_justin has joined #ruby
<_izz>
doesn't have to report coverage or anything fancy, just failing tests, and e-mail results
alem0lars_ has joined #ruby
alem0lars has quit [Ping timeout: 264 seconds]
alem0lars_ is now known as alem0lars
jamto11 has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
shashank_rs has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dcorbin has quit [Ping timeout: 265 seconds]
dumdedum has quit [Quit: foo]
Mon_Ouie has quit [Ping timeout: 264 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
pessimis_ has joined #ruby
arietis has joined #ruby
ce_afk is now known as cescalante
ryadzyadi has joined #ruby
Kricir has joined #ruby
ryadzyadi has left #ruby [#ruby]
dcorbin has joined #ruby
mengu has quit [Remote host closed the connection]
aspiers has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
poikon has joined #ruby
dcorbin has quit [Changing host]
dcorbin has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
banister has quit [Client Quit]
supermarin has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
jason___ has joined #ruby
Di has quit [Quit: Leaving.]
cescalante is now known as ce_afk
supermarin has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
phantasm66 has joined #ruby
saarinen has joined #ruby
phantasm66 has quit [Client Quit]
dcorbin has quit [Remote host closed the connection]
jamto11 has joined #ruby
sdouglas has joined #ruby
shashank_rs has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
shashank_rs has joined #ruby
carlyle has joined #ruby
senayar_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
greatbeard has joined #ruby
yfeldblum has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
moritzs has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<jhass>
_izz: #rubyonrails, also note that both versions are out of official support and won't get security patches
carlyle has quit [Ping timeout: 246 seconds]
senayar_ has joined #ruby
m3nTe has quit [Ping timeout: 240 seconds]
Beoran__ has joined #ruby
greatbeard has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
jcs222 has quit [Quit: leaving]
greenrose has quit []
hobodave has quit [Quit: Computer has gone to sleep.]
timgauthier has joined #ruby
<timgauthier>
aloha
Beoran_ has quit [Ping timeout: 264 seconds]
joaoh82 has joined #ruby
jcs222 has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
<AlexRussia>
hola
shashank_rs has joined #ruby
fohan has joined #ruby
joaoh82 has quit [Ping timeout: 276 seconds]
poguez_ has joined #ruby
mark_locklear has joined #ruby
shashank_rs has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
ce_afk is now known as cescalante
senayar_ has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 240 seconds]
shashank_rs has joined #ruby
joaoh82 has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
red234324 has quit [Read error: Connection reset by peer]
<AntelopeSalad>
does anyone know of a gem like table_print except not oriented towards AR so much? i just want to tableize an array
joaoh82 has quit [Client Quit]
paulfm has joined #ruby
evenix has joined #ruby
okdas has quit [Remote host closed the connection]
roadie has quit [Remote host closed the connection]
yalue has joined #ruby
roadie has joined #ruby
puzanov__ has joined #ruby
arietis has joined #ruby
bluenemo has quit [Remote host closed the connection]
senayar has joined #ruby
saarinen has quit [Quit: saarinen]
agjacome has joined #ruby
xMopxShell has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
vpretzel has joined #ruby
Mattx has joined #ruby
<Mattx>
Hey
mikepack has joined #ruby
Di has joined #ruby
puzanov_ has quit [Ping timeout: 255 seconds]
<Mattx>
there was an array method to check if there exist an element with a certain criteria, something like this: ![].select({|e| e == "whatever"}).empty?
<Mattx>
what is cool about .any? is that it doesn't evaluate all the elements
jobewan has joined #ruby
pika_pika has joined #ruby
<workmad3>
Mattx: indeed, .any? and .all? short-circuit similarly to || and &&
rmorello has joined #ruby
<Mattx>
yep
ktun has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
moritzs has joined #ruby
<Mattx>
btw, I always thought that "or" looks better than "||" (same for &&)
<workmad3>
Mattx: 'or' has massively lower precedence than ||
<workmad3>
Mattx: they are not equivalent in ruby
<Mattx>
yeah, I know
<Mattx>
I'm just saying
<workmad3>
ok... just came across a bug in legacy code yesterday where someone had done 'or' instead of || :)
<Mattx>
you almost always use || instead of "or"
<Mattx>
it would be nice if it was the other way around
<Mattx>
|| being the one with less precedence
<Mattx>
:P
<workmad3>
I'm perfectly happy with || tbh
<Mattx>
it's a matter of styles I guess
<workmad3>
I see || and I recognise it as 'or' quicker than I do the word 'or' :)
shashank_rs has quit [Ping timeout: 252 seconds]
<workmad3>
and then there's also | and & for bitwise, with no word-equivalents afaik, and then ||=, &&=, |= and &= which would just look wrong with 'or' and 'and', and inconsistent if || was the control-flow operator :)
<Mattx>
oh well, you've a bug in your retina processor hehe
<Mattx>
you're right bout or=
<Mattx>
foo or= []
<Mattx>
haha
<workmad3>
it's something I don't like about 'I would like to change X for Y' type statements... they ignore the wider context way too much ;)
shashank_rs has joined #ruby
aspiers has joined #ruby
<timgauthier>
wait, what would cause a bug because of or instead of ||?
cluelesss has quit [Quit: WeeChat 0.4.1]
<timgauthier>
| by the way is a PITA to type on a german keyboard
<Mattx>
workmad3, || could be the same as "or", and we could add ||| or something for less precedence ;)
<Mattx>
if foo or bar # would be fine
<Mattx>
as well as foo ||= []
sambao21 has joined #ruby
<Mattx>
timgauthier, you don't really use "or" much in ruby
arturaz has quit [Remote host closed the connection]
<timgauthier>
really?
<workmad3>
timgauthier: the bug was 'temp_value = foo or bar or bazz or buzz'
Di has quit [Quit: Leaving.]
<Mattx>
I used to use it when I started, and I faced lot of bugs because of that
<tobiasvl>
it's fine to use "or" as long as you know what it is
<workmad3>
timgauthier: which ruby would see as '(temp_value = foo) or bar or bazz or buzz
SubSignal has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<timgauthier>
so it doesn't work to have or or or you have to switch to || ?
<timgauthier>
workmad3 which is how i read it
<timgauthier>
what they likely meant was this, or one of these three
<Mattx>
timgauthier, no, you read like this: tmp = (foo or bar or ...)
evenix has quit [Remote host closed the connection]
<Mattx>
which is totally different
<workmad3>
^^
<Mattx>
(I'm guessing ^)
<workmad3>
timgauthier: the typical way to read that statement is 'temp_value is assigned the result of the boolean operation (foo or bar or bazz or buzz)'
<timgauthier>
ahhhh and you want it to be temp ok yaeh
<Mattx>
foo = false or true
<Mattx>
try this
<timgauthier>
i get it now, so how would you write that correctly workmad3 ?
<Mattx>
then print foo
<workmad3>
timgauthier: s/or/||
senayar has quit [Remote host closed the connection]
<timgauthier>
huh that means nothing to me... :S could you put the original statement in the right way?
<Mattx>
foo = false || true
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
<Mattx>
timgauthier, just replace "or" by "||"
<workmad3>
timgauthier: s/or/|| == switch 'or' for '||'
<Mattx>
and "and" by "&&"
<timgauthier>
all of them?
<workmad3>
timgauthier: yup
<timgauthier>
'temp_value = foo || bar || bazz || buzz'
<Mattx>
timgauthier, it depends on the code, I guess sometimes a) it's the same and b) you really intended to use "or"
<workmad3>
yup
<timgauthier>
what does it read if you put 'temp_value = foo || bar or bazz or buzz'
<workmad3>
(temp_value = foo || bar) or bazz or buzz
supermarin has joined #ruby
Di has joined #ruby
DukeTogo13 has joined #ruby
<workmad3>
so the assignment happens with the result of foo || bar, then that is 'or'ed with bazz or buzz
<timgauthier>
so then it would say you want that temp value which = foo or bar, or you want bazz, or you want buzz?
chrisseaton has quit []
<workmad3>
timgauthier: right... except that the return value of this line is being ignored
<timgauthier>
yeah
jamto11 has joined #ruby
<timgauthier>
its completely skipping that
<workmad3>
timgauthier: you can also use () to fix the issue
vpretzel has quit [Remote host closed the connection]
andy__ has joined #ruby
<timgauthier>
yeah you would put 'temp_value = ( foo or bar or bazz or buzz )'
<workmad3>
timgauthier: and seeing as in my particular case, the method was doing 'temp_value = foo or bar or bazz; return temp_value' you could also have the entire body of the method as 'foo or bar or bazz'
<timgauthier>
and then it does exactly what it looks like it does right?
<timgauthier>
yeah you wouldn't even need the temp_value right?
<timgauthier>
just foo or bar or bazz
<workmad3>
yup
greenrose has joined #ruby
<timgauthier>
and then return
jeregrine has joined #ruby
vpretzel has joined #ruby
<timgauthier>
THAT... is what kicks the SHIT out of PHP
kaspergrubbe has quit [Read error: Connection reset by peer]
<Mattx>
tbh I don't think it's that useful anyway :P
nateberkopec has joined #ruby
<workmad3>
basically, this was code written by people who professed to have been using ruby for longer than I have, who managed to write 3 of these methods in practically the only way possible for them to have a bug :)
kaspergrubbe has joined #ruby
sdwrage has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
supermarin has quit [Ping timeout: 240 seconds]
<timgauthier>
hahaha
Di has quit [Client Quit]
sdwrage has quit [Client Quit]
<timgauthier>
well Mattx i am still saddled with PHP for client work due to hosting constraints etc
<timgauthier>
i'm already pushing them away from wordpress, so i can't go TOO far
<workmad3>
timgauthier: heh, I'd push them towards wordpress if it fits... but set them up on wordpress.com or something so I didn't have to host that crappile myself :)
Kneferilis has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
Kneferilis has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<timgauthier>
using wordpress for most sites is liking using a d60 dozer to remove an anthill from your front yard.
lolmaus has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
kaspergrubbe has joined #ruby
<shevy>
workmad3 why are || and or not equivalent in precedence?
<workmad3>
timgauthier: nah... because that sounds like fun
<workmad3>
shevy: because our lord matz decreed that they wouldn't be
<timgauthier>
workmad3 yeah actually it would be, but its going to destroy your sidewalk, your front road, your yard, and maybe part of your house
evenix has joined #ruby
<workmad3>
grrr.... 'Invalid: Password is too long (>= 32 characters).'
<timgauthier>
lol
<timgauthier>
wtf sock lazy devs
<timgauthier>
i don't get how precedence changes that but yeah :P
<deepy>
workmad3 best databases has both an upper and lower limit on passwords
akemrir has quit [Quit: WeeChat 0.4.3]
<workmad3>
deepy: there shouldn't be an upper limit
<timgauthier>
but that limit is put in place by the person who made the site no?
<deepy>
workmad3: all passwords should be exactly 8 character long
<shevy>
lol
<workmad3>
deepy: oh, and they should also silently truncate anything past 8 characters, right?
<shevy>
YES
<mikecmpbll>
:D
senayar has joined #ruby
sdouglas has joined #ruby
<shevy>
YOU ARE NOT WORTHY TO BE INFORMED WHAT IT DOES INTERNALLY
sambao21 has quit [Quit: Computer has gone to sleep.]
<deepy>
That's the cheap way to do it
carlyle has joined #ruby
<shevy>
that's the brogrammer way to do it
<deepy>
You should also make sure to tell people that it needs to have at least 2 numbers in it
<tobiasvl>
for many years only the first 8 chars were used for authentication on linux at my uni
<shevy>
I hate that
<tobiasvl>
SILENTLY
jcs222 has quit [Read error: Connection reset by peer]
<shevy>
my favourite passwords have only one number in it
<deepy>
and since it has to be secure it has to have a character in it oo
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
and they need numbers, letters and SPECIAL CHARS
<tobiasvl>
yes
<mikecmpbll>
exactly 8 characters, 3 uppercase, 3 lowercase, 2 numbers, that's the most securist password.
<deepy>
and no letter nor numbers may be adjacent because that's not secure
<tobiasvl>
we're adopting passphrases now though
<deepy>
and the same letter/character/number may not appear twice
<mikecmpbll>
lmao
shashank_rs has quit [Ping timeout: 264 seconds]
<deepy>
query also uses LOWER()
<shevy>
passwords should be in the form of monty python holy grail when they tried to cross the bridge of death
<workmad3>
I got upset with google remote desktop when setting up PINs for my machines... it wouldn't let me use a 100-digit long PIN :(
tvw has quit []
<mikecmpbll>
:D
nateberkopec has quit [Quit: Leaving...]
sdouglas has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
yfeldblum has joined #ruby
hamakn has quit [Remote host closed the connection]
<timgauthier>
either make your input the full width, or remove the outline and then add your own focus state to a div wrapper that makes the outline go around both inputs!
<timgauthier>
mt
kitak has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
dima___ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
alexju has quit [Remote host closed the connection]
jxf has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
alexju has joined #ruby
rmorello has joined #ruby
oo has quit [Client Quit]
Zesty has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
forcefsck has quit [Quit: Ex-Chat]
kalleth_ is now known as kalleth
alexju has quit [Read error: No route to host]
Hanmac1 has joined #ruby
<shevy>
noone has!
<shevy>
reading is old school
<shevy>
knowing is new school
Celm has quit [Ping timeout: 264 seconds]
CodeBunny has quit [Ping timeout: 252 seconds]
servatoo has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
dima___ has quit [Ping timeout: 255 seconds]
roadie has quit [Ping timeout: 240 seconds]
<shock_one>
Does anyone *know* if it worth preferring the ruby edition over the old school original?
IrcDemo has joined #ruby
troyronda has joined #ruby
joaoh82 has joined #ruby
charliesome_ has joined #ruby
makara has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
fijimunkii has joined #ruby
jespada has joined #ruby
<timgauthier>
and i taking crazy pills? a designer is telling me that latex is a better way to write content then markdown for people to read if they don't know the "language"
charliesome has quit [Ping timeout: 240 seconds]
mjsmith2 has joined #ruby
joaoh82_ has joined #ruby
<apeiros>
timgauthier: hu? so in essence, he thinks latex is easier to learn than markdown?
<shock_one>
timgauthier, I agree with him. It's easier to write markdown, but what the heck do all there stars and symbols mean?
<timgauthier>
no no, i think markdown is easier to write, and yes apeiros he thinks that latex is easier and that people read latex and know what it means easier then people read markdown and know what it means
<apeiros>
lol
<apeiros>
nowaaaay
echevemaster has joined #ruby
<shock_one>
What do you think more clearly indicates a title: \title or ======
<shevy>
well
<shevy>
title gives you extra information
<shevy>
but I like = because the amount of = can denote the importance
<shevy>
=== World Dominationg
eka has joined #ruby
<shevy>
== First targets
<shevy>
== Second Targets
<shevy>
== Profit!!!
<shevy>
title: would probably be best
joaoh82 has quit [Ping timeout: 252 seconds]
<shevy>
although I rarely use the new hash notation, it actually was a smart move IMO
andikr has joined #ruby
<timgauthier>
genau
SubSignal has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<timgauthier>
standard markdown doesn't use == it uses #
<timgauthier>
but yeah
zoraj has quit [Remote host closed the connection]
<timgauthier>
title: definitely means title: but it doesn't make sense in a plaintext context
Aaaal has quit [Quit: Aaaal]
havenwood has joined #ruby
<timgauthier>
when you pass off a document written in markdown, you don't really need to explain anything to most people, there is a very simple visual hierarchy to the content.
adlerdias has joined #ruby
eka has quit [Client Quit]
himsin has joined #ruby
himsin has quit [Client Quit]
<timgauthier>
I mean, turn that to PDF or a HTML and render it in browser and yes, it is MUCH better
freerobby has joined #ruby
<timgauthier>
but the idea of markdown was to make it so that a plaintext .txt file could contain all the formatting in an easy to read way
<Sp4rKy>
W 4
<timgauthier>
what?
<Xeago>
timgauthier: and could be edited from anywhere without requiring software etc
Shackleford has joined #ruby
<shevy>
timgauthier I like markdown formatting
Aaaal has joined #ruby
<shock_one>
I have to say that rendering isn't fair. We're talking about the source text, aren't we?
lolmaus has joined #ruby
<shevy>
in my helpers to cgi, I have a method called markdown() that uses kramdown to display markdown files properly
andikr has quit [Remote host closed the connection]
<timgauthier>
shock_one yes
<jxf>
Is there a way to make a method that accepts a block, and then adds another method which only exists inside the scope of the block?
<Shackleford>
In irb, I am trying to use the split method on an array, however I keep getting “NoMethodError: undefined method `split' for [1, 2, 3, 4, 5, 6, 7, 8]:Array”
<timgauthier>
if we go with rendering, then who cares if it was in latex or markdown
<Shackleford>
are not all methods automatically in irb?
<shevy>
markdown .md is easier to modify than a .pdf, that is why I prefer it over .pdf
DukeTogo13 has quit [Quit: [BX] Leggo my Eggo!]
<jxf>
Shackleford, split is not a method on Array
lukec has joined #ruby
<Shackleford>
ahh ok
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy>
jxf all methods in ruby accept one block automatically
<jxf>
Shackleford, split is a String method that splits a string into an array
<Shackleford>
got it
<Shackleford>
thx
<timgauthier>
okay back to our previous un ruby related discussion :P
nateberkopec has joined #ruby
banister has joined #ruby
<shevy>
jxf if I understand it correctly, you attempt to add a method that resides only in a block to a method?
<jxf>
shevy: That's the effect I want, yeah. I can get it by making an object, adding the method to that object, and then instance_eval'ing the block on that object.
jamto11 has joined #ruby
<jxf>
shevy: But that doesn't really work, because the block isn't evaluated in its original context.
jamto11 has quit [Remote host closed the connection]
_maes_ has joined #ruby
ephemerian has quit [Remote host closed the connection]
jamto11 has joined #ruby
<shevy>
well, not sure how to do it but the way you describe it sounds as if you want a proc object
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
end_guy has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 252 seconds]
end_guy has joined #ruby
tziOm has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
hamakn has joined #ruby
beef-wellington has joined #ruby
servatoo has quit [Remote host closed the connection]
joaoh82_ has quit [Remote host closed the connection]
<shevy>
metaprogramming is way over my poor head
mengu has quit [Ping timeout: 240 seconds]
jds has joined #ruby
cpruitt has joined #ruby
<shevy>
hmmm
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<shock_one>
jxf, I believe rspec includes all the possible methods inside the tests context. You could take a look how they do it.
etqqkoiflwhb has joined #ruby
joaoh82 has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
<banister>
jxf why not just yield the str to the block?
<jhass>
jxf: 1) wrapper.send(:extend, M) 2) don't do the wrapper in the first place
<MZAWeb>
shevy: that's *crappy* PHP
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
jxf with "hello" do |value| value ; end instead of with "hello" do; with_value; end
<shevy>
MZAWeb it's 4chan php!!!!!
matchaw has quit [Read error: Connection reset by peer]
<timgauthier>
shevy same thing
<timgauthier>
:P
<MZAWeb>
I know, I saw it. Still crappy PHP. Point being, you can write crappy code in any lang
<shock_one>
shevy, this file has 2.5kloc. What do you expect from such people?
mercwithamouth has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
matchaw has joined #ruby
<MZAWeb>
Also worth noting that this particular instance of crappy PHP serves 500MM visits / month
<shevy>
shock_one pffft what do you expect from java then
<jxf>
jhass, (1) will have the wrong effect, won't it? The array modified on line 11 will be the *wrapper*'s array instead of C's, right?
jacobsmith has joined #ruby
Shackleford has quit [Quit: Shackleford]
<shevy>
MZAWeb precisely! so it must be good
<shock_one>
shevy, are you saying that in Java world it's OK to have such huge files?
Xeago_ has quit [Remote host closed the connection]
<shevy>
shock_one sure, why else do they use so many characters and lines?
<shevy>
it's the second best language according to TIOBE
<jxf>
banister: Hmm.. that's a little different. I don't want to make a *value* available to the block, I want to make a method available to the block.
<jhass>
jxf: sure, I've no idea why you do the wrapper stuff in the first place
<banister>
jxf why?
Shackleford has joined #ruby
<jxf>
banister: Because that's how I'd like the DSL to work.
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
pessimis_ has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
pu22l3r has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
<banister>
jxf DSLs have fallen out of favor in the last 2 years, they're horrible, esp ones that use instance_eval
peret has joined #ruby
<jhass>
jxf: you probably could store self and delegate to that with method_missing in wrapper, but as banister points out it only gets messier
<jxf>
banister: OK. What do you suggest as an alternative?
<shock_one>
shevy, it's not true. I understand that there surely are a lot of huge Java files in the world, but they don't suppose to be such. Bob Martin, who writes in Java and is an author of a book about code style, recommends to writes classes not longer that a hundred of lines or so.
<banister>
jxf to write a normal API and not use DSLs ;)
zachallett has joined #ruby
<jxf>
banister: Unfortunately, part of the messiness is because I have to do some things with ActiveRecord.
<banister>
jxf ah ok
<banister>
goodluck ;)
<jxf>
banister: And it seems like a DSL is probably the simplest way to encapsulate that. :(
njection has quit []
<timgauthier>
how... do you reverse the order of something?
<baweaver>
expensive, but it's done miracles for people with CT at work
nateberkopec has joined #ruby
<timgauthier>
that missing feature in atom.io is literally why i've stopped testing it
alem0lars has joined #ruby
mikepack has joined #ruby
cescalante is now known as ce_afk
pessimis_ has joined #ruby
mengu has quit []
evenix has quit [Remote host closed the connection]
shashank_rs has joined #ruby
bricker`LA has joined #ruby
Aaaal has quit [Quit: Aaaal]
wjlafrance has joined #ruby
<omosoj>
baweaver, that was recommended in a Ruby Rogues podcast I listened to yesterday.
<baweaver>
Go figure.
<baweaver>
I just know anyone who's come close to CT has one of those.
mikepack has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Aaaal has joined #ruby
<baweaver>
Either that, or you could switch languages. If you're working Java, it's notorious for destroying your hands.
sethen has quit [Ping timeout: 252 seconds]
pessimis_ has quit [Ping timeout: 252 seconds]
<baweaver>
If you're working Ruby, it doesn't get much better than that
<horrorvacui>
COBOL!
<horrorvacui>
jk
poguez_ has quit [Quit: Connection closed for inactivity]
<horrorvacui>
COBOL won't work your pinky as bad.
<baweaver>
It won't, it'll destroy your soul long before it destroys your hands
chrisseaton has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
<apeiros>
holy… nice, pry now shows code for C extensions too
banister has joined #ruby
<omosoj>
baweaver, what's CT?
andy___ has joined #ruby
<baweaver>
Carpal Tunnel
graud has joined #ruby
rmorello is now known as rmorello|903
<horrorvacui>
Career Termination
<horrorvacui>
:P
aganov has quit [Quit: Leaving]
<omosoj>
Ah, I had some wrist problems when I was working at a standing desk but I adjusted the height and it went away. Been lucky in that regard *knocks on wood*
fallacy has quit [Remote host closed the connection]
<graud>
hi all, i want to take an existing ruby script and make a gem - can someone please point me in the direction of the ‘community standard’ tutorial on making gems?
vpretzel|retro has quit [Remote host closed the connection]
<apeiros>
nice, my own little ORM beats AR by a factor of 6.3 on MyModel.all.to_a
doodlehaus has quit []
<apeiros>
(5000 records, 7 columns)
dideler|work has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
robbyoconnor has quit [Ping timeout: 240 seconds]
Trudko has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
<arubincloud>
apeiros: How about DataMapper?
<apeiros>
don't know enough to test it. if you can give me the basic code to hook it up, I'll test it.
robbyoconnor has joined #ruby
<apeiros>
I use postgres
lw has quit [Quit: s]
s2013 has quit [Ping timeout: 252 seconds]
<arubincloud>
I have only dabbled with it years ago.
oponder has quit []
crystal77 has joined #ruby
<Shackleford>
jhass, cool
IceDragon has joined #ruby
doodlehaus has joined #ruby
eka has quit [Read error: Connection reset by peer]
<apeiros>
gotta test memory consumption too. but from a preliminary test it should be ~2-4x more compact there too. it stores persisted and dirty state too, like AR
vasilakisfil has quit [Remote host closed the connection]
<apeiros>
loading AR = 25MB RSS, loading my ORM = 5MB RSS (but mine is far from done, so that's not a fair comparison)
<Hanmac>
jhass: i am sometimes a know-it-all if i can ;P (and i played sometimes with the darker parts of ruby)
supermarin has quit [Ping timeout: 240 seconds]
<apeiros>
loading data (5000 records) with AR = 11MB, with my ORM: 4MB
ascarter has joined #ruby
<jhass>
kilk_: classes only for things that access common state, modules for everything else
<jhass>
always add newlines for method defs (def fix_action...)
firoxer has quit [Quit: leaving]
<jhass>
and before ends too (def finished?)
<Hanmac>
Shackleford: in "meth!" and "meth?" ! and ? are part of the method name, that can be a bit confusing in "@id.nil? ? 0 : @id" where the first ? is part of the method name "nil?" and the second ? is part of the "<> ? <> : <>" construct
arietis has quit [Quit: Computer has gone to sleep.]
freezey has quit [Remote host closed the connection]
dima__ has joined #ruby
blackmesa has joined #ruby
<jhass>
kilk_: if curr.isbot then PlayerAction.pay(self, finish) end # PlayerAction.pay(self, finish) if curr.bot?
<Shackleford>
ok, what is the name for that second construct?
<kilk_>
isbot is value
<kilk_>
not method
troulouliou_dev has quit [Quit: Leaving]
<jhass>
I'd make a "getter" for it then
AlexRussia has joined #ruby
<jhass>
and it's a method, attr_reader/accessor just defines the methods for you
s2013 has joined #ruby
<Hanmac>
Shackleford: thats an if - else - constuct as one-liner
<jhass>
kilk_: for your GameState "enum" we tend to use symbols in ruby land
<jhass>
:begin_step, :can_buy etc
<Shackleford>
got it, looks exactly like the ternary operator in JS
oliver_ has joined #ruby
shevy has joined #ruby
<Hanmac>
jhass: i have special functions in my gems that converts C-enum <-> Ruby-Symbol
<horrorvacui>
I hope kilk_ is writing it all down jhass :P
<kilk_>
i am trying )
sdouglas has quit [Ping timeout: 240 seconds]
<jhass>
kilk_: also inside a class decide on accessing an instance variable directly or via the accessor, don't mix
<jhass>
we all got logs, don't we? ;)
* certainty
has some log2s
maletor has joined #ruby
mg^afk is now known as mg^
<apeiros>
ah, I just noticed I'm missing attribute type casting. so that's an obvious part where mine will get a slow down.
<jhass>
kilk_: I'd also pay a bit more attention to your spacing, like def foo(a, b, c) instead of def foo(a,b,c), but then that's me being allergic to that :P
<momomomomo>
Hanmac: It's Trusty Tahr
maletor has quit [Client Quit]
mehlah has joined #ruby
jason___ has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
<jxf>
apeiros: You are a brave person, making an ORM.
<kilk_>
what mean '&' in .sort_by!(&:id)
troyronda has joined #ruby
<kilk_>
?
<jhass>
kilk_: your indentation is also not consistent through the files, try to stick to two spaces
<yxhuvud>
kilk: it is the equivalent of sort_by {|e| e.id}
<apeiros>
though, not sure the first would qualify as ORM. it was only "half way" an ORM
<jxf>
apeiros: (!)
<apeiros>
this one won't come close to AR's feature-list either
<apeiros>
that's not the aim anyway.
kaspergr_ has joined #ruby
<momomomomo>
Hanmac: I don't get the joke
<jhass>
kilk_: it's a little trick, &object converts an object to a proc and that proc to a block and passes it to the method, Symbol#to_proc is implemented to call the method having the same name as the symbol on the first argument
roadie has joined #ruby
<Hanmac>
momomomomo: keep watching
lw has joined #ruby
<momomomomo>
aint nobody got time for that Hanmac
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has joined #ruby
<jhass>
kilk_: I'd make GameUtil a module since it has no common state
<jhass>
kilk_: also no idea what g is
<momomomomo>
Whyyyyy is the hadoop channel so dead
<jhass>
(that's again, use better variable names)
<apeiros>
nice, attribute access is roughly 2x as fast too
robbyoconnor has joined #ruby
kaspergrubbe has quit [Ping timeout: 276 seconds]
<jhass>
again, pl = if cl.owner.nil? then " " else draw_player(cl.owner) end # player = cl.owner ? " " : draw_player(cl.owner)
mansi has joined #ruby
ce_afk is now known as cescalante
Speed has joined #ruby
Macaveli has quit [Quit: Leaving]
<Hanmac>
jhass: you forgot to switch
<Hanmac>
player = cl.owner ? draw_player(cl.owner) : " "
<jhass>
ups, right
mrmargolis has joined #ruby
<jhass>
kilk_: i=0; @map.each do |l| # @map.each_with_index do |tile, index|
<Hanmac>
kilk_: what kind of "map" format do you use?
<kilk_>
from file
justinxreese has quit [Ping timeout: 246 seconds]
t3ch has quit [Ping timeout: 246 seconds]
lw has quit [*.net *.split]
mary5030 has quit [*.net *.split]
Hanmac has quit [*.net *.split]
fijimunkii has quit [*.net *.split]
agjacome has quit [*.net *.split]
momomomomo has quit [*.net *.split]
echevemaster has quit [*.net *.split]
poikon has quit [*.net *.split]
binw has quit [*.net *.split]
cover has quit [*.net *.split]
einarj has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
MacTrash has quit [*.net *.split]
Tricon has quit [*.net *.split]
radic has quit [*.net *.split]
agarie has quit [*.net *.split]
Zhann has quit [*.net *.split]
ValicekB has quit [*.net *.split]
Thanatermesis has quit [*.net *.split]
compleatang has quit [*.net *.split]
xiella has quit [*.net *.split]
gigetoo has quit [*.net *.split]
ta has quit [*.net *.split]
danijoo has quit [*.net *.split]
ada2358 has quit [*.net *.split]
yano has quit [*.net *.split]
fumk has quit [*.net *.split]
brandon_ has quit [*.net *.split]
thoraxe has quit [*.net *.split]
zonetti has quit [*.net *.split]
benzrf|offline has quit [*.net *.split]
_axx has quit [*.net *.split]
froy has quit [*.net *.split]
sheepman has quit [*.net *.split]
b1nd has quit [*.net *.split]
helpa has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
angelixd has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
jan1337z has quit [*.net *.split]
Rubeh has quit [*.net *.split]
monsieurp has quit [*.net *.split]
farn has quit [*.net *.split]
tomaw has quit [*.net *.split]
mattp__ has quit [*.net *.split]
Fraeon has quit [*.net *.split]
frog0909 has quit [*.net *.split]
klaas has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Anarch has quit [*.net *.split]
AndyWojo_ has quit [*.net *.split]
mame0 has quit [*.net *.split]
erichmenge has quit [*.net *.split]
rmill has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
brisbin has quit [*.net *.split]
finges has quit [*.net *.split]
nanashiRei has quit [*.net *.split]
pavelz has quit [*.net *.split]
jcalado has quit [*.net *.split]
Koshian has quit [*.net *.split]
KillerFox has quit [*.net *.split]
blackms has quit [*.net *.split]
telling has quit [*.net *.split]
terlar has quit [*.net *.split]
yasu has quit [*.net *.split]
the_mentat has quit [*.net *.split]
reactormonk has quit [*.net *.split]
felipe has quit [*.net *.split]
Slavox has quit [*.net *.split]
wormwood has quit [*.net *.split]
zaargy has quit [*.net *.split]
fumduq has quit [*.net *.split]
peck_ has quit [*.net *.split]
bluntman has quit [*.net *.split]
mozzarella has quit [*.net *.split]
ruisantos has quit [*.net *.split]
robwilliamsuk has quit [*.net *.split]
DrOwl has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
rdgawdzi has quit [*.net *.split]
clocKwize has quit [*.net *.split]
Rennex has quit [*.net *.split]
Psy-Q has quit [*.net *.split]
siefca has quit [*.net *.split]
BombStrike has quit [*.net *.split]
FifthWall has quit [*.net *.split]
monomyth has quit [*.net *.split]
zalmoxes has quit [*.net *.split]
hypnosb has quit [*.net *.split]
dbjeepn- has quit [*.net *.split]
lmickh has quit [*.net *.split]
Speed has quit [*.net *.split]
sethen has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
Di has quit [*.net *.split]
meatherly has quit [*.net *.split]
sailias1 has quit [*.net *.split]
joaoh82 has quit [*.net *.split]
dik_dak has quit [*.net *.split]
obscured has quit [*.net *.split]
jxf has quit [*.net *.split]
yalue has quit [*.net *.split]
Martxel has quit [*.net *.split]
Morkel has quit [*.net *.split]
ponga has quit [*.net *.split]
nolic has quit [*.net *.split]
rdark has quit [*.net *.split]
fella5s has quit [*.net *.split]
olivier_bK has quit [*.net *.split]
alpha123 has quit [*.net *.split]
Royalb15_1 has quit [*.net *.split]
decoponio has quit [*.net *.split]
jeekl has quit [*.net *.split]
geggam has quit [*.net *.split]
robustus has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
linduxed has quit [*.net *.split]
mordof has quit [*.net *.split]
hakunin has quit [*.net *.split]
peeja has quit [*.net *.split]
tcstar has quit [*.net *.split]
kukyakya_ has quit [*.net *.split]
rixius has quit [*.net *.split]
naw_ has quit [*.net *.split]
dpaulus has quit [*.net *.split]
__main__ has quit [*.net *.split]
KevinSjoberg has quit [*.net *.split]
spacebug has quit [*.net *.split]
moted has quit [*.net *.split]
mattrose has quit [*.net *.split]
guyz has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
sente has quit [*.net *.split]
madhatter has quit [*.net *.split]
nevans has quit [*.net *.split]
minecoins has quit [*.net *.split]
TheNumb has quit [*.net *.split]
nopc0de has quit [*.net *.split]
Elfix has quit [*.net *.split]
brunto has quit [*.net *.split]
davidcelis has quit [*.net *.split]
Hamled has quit [*.net *.split]
asuka has quit [*.net *.split]
dazeddev has quit [*.net *.split]
rs0 has quit [*.net *.split]
ji0n has quit [*.net *.split]
diegok has quit [*.net *.split]
sfiggins has quit [*.net *.split]
ph8 has quit [*.net *.split]
Gate has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
dermot has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Kovensky has quit [*.net *.split]
dandrade has quit [*.net *.split]
katlogic has quit [*.net *.split]
carlyle has quit [*.net *.split]
jacky has quit [*.net *.split]
camt has quit [*.net *.split]
Kamilion has quit [*.net *.split]
germanstudent has quit [*.net *.split]
jayne has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
nilsove has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
shanlar- has quit [*.net *.split]
faulkner has quit [*.net *.split]
cba has quit [*.net *.split]
closer has quit [*.net *.split]
Zespre has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
eshy has quit [*.net *.split]
cibs has quit [*.net *.split]
chihhsin has quit [*.net *.split]
fohan has quit [*.net *.split]
blandflakes has quit [*.net *.split]
LastWhisper has quit [*.net *.split]
ph88 has quit [*.net *.split]
Eiam has quit [*.net *.split]
sambao21 has quit [*.net *.split]
eka has quit [*.net *.split]
jlast has quit [*.net *.split]
jespada has quit [*.net *.split]
senayar has quit [*.net *.split]
alexju has quit [*.net *.split]
horrorvacui has quit [*.net *.split]
baweaver has quit [*.net *.split]
havenwood has quit [*.net *.split]
raul782 has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
paulfm has quit [*.net *.split]
m00nlight has quit [*.net *.split]
kung has quit [*.net *.split]
lkba has quit [*.net *.split]
mcrmfc has quit [*.net *.split]
phansch has quit [*.net *.split]
ikaros has quit [*.net *.split]
WishBoy has quit [*.net *.split]
LostDatagram has quit [*.net *.split]
wmoxam has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
Asher has quit [*.net *.split]
ec has quit [*.net *.split]
jaffery has quit [*.net *.split]
Azure has quit [*.net *.split]
elico has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
frobrob has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
Brando753 has quit [*.net *.split]
DouweM has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
Norrin has quit [*.net *.split]
lazyguru has quit [*.net *.split]
ws2k3 has quit [*.net *.split]
spyderman4g63 has quit [*.net *.split]
quantsini has quit [*.net *.split]
p8952 has quit [*.net *.split]
mahlon has quit [*.net *.split]
Kryptonical has quit [*.net *.split]
wchun has quit [*.net *.split]
axisys has quit [*.net *.split]
mgorbach has quit [*.net *.split]
Biohazard has quit [*.net *.split]
deavid has quit [*.net *.split]
jxport has quit [*.net *.split]
dylannorthrup has quit [*.net *.split]
mattsp1290 has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
bcavileer has quit [*.net *.split]
Derander has quit [*.net *.split]
omegahm has quit [*.net *.split]
Riking has quit [*.net *.split]
natewalck has quit [*.net *.split]
Jakee`__ has quit [*.net *.split]
amundj has quit [*.net *.split]
Hien has quit [*.net *.split]
machty has quit [*.net *.split]
maZtah has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
fayimora has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
jokke has quit [*.net *.split]
lotherk has quit [*.net *.split]
spacemud has quit [*.net *.split]
[42] has quit [*.net *.split]
dhoss has quit [*.net *.split]
edwardly has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
ceej has quit [*.net *.split]
mclee has quit [*.net *.split]
Muz has quit [*.net *.split]
parus has quit [*.net *.split]
siert has quit [*.net *.split]
mattyohe has quit [*.net *.split]
ConstantineXVI has quit [*.net *.split]
csq has quit [*.net *.split]
epochwolf has quit [*.net *.split]
oetjenj has quit [*.net *.split]
m4rcu5 has quit [*.net *.split]
charles81_ has quit [*.net *.split]
cHarNe2_ has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
awkisopen has quit [*.net *.split]
Paradox has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
Mars` has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
seemant has quit [*.net *.split]
FaresKAlaboud has quit [*.net *.split]
Tritania has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
Affix has quit [*.net *.split]
cuppscakes has quit [*.net *.split]
metamaterial has quit [*.net *.split]
St_Marx has quit [*.net *.split]
Rudde has quit [*.net *.split]
end_guy has quit [*.net *.split]
atmosx has quit [*.net *.split]
tacos1de has quit [*.net *.split]
codabrink has quit [*.net *.split]
firoxer has quit [*.net *.split]
sdwrage has quit [*.net *.split]
mehlah has quit [*.net *.split]
graud has quit [*.net *.split]
troyronda has quit [*.net *.split]
banister has quit [*.net *.split]
SCommette has quit [*.net *.split]
pu22l3r_ has quit [*.net *.split]
Kricir has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
aspiers has quit [*.net *.split]
pika_pika has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
twiceday has quit [*.net *.split]
phoo1234567 has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lsmola has quit [*.net *.split]
chridal has quit [*.net *.split]
burntbit has quit [*.net *.split]
BradPitt_ has quit [*.net *.split]
cosmin has quit [*.net *.split]
redondos has quit [*.net *.split]
wald0 has quit [*.net *.split]
napcae has quit [*.net *.split]
marcellus has quit [*.net *.split]
renier has quit [*.net *.split]
SloggerKhan has quit [*.net *.split]
replay has quit [*.net *.split]
linojon has quit [*.net *.split]
fearoffish has quit [*.net *.split]
justinmcp has quit [*.net *.split]
patronus has quit [*.net *.split]
Davedo has quit [*.net *.split]
kmwhite has quit [*.net *.split]
camilasan has quit [*.net *.split]
sbnnrd has quit [*.net *.split]
hairyhenderson has quit [*.net *.split]
bubbajones has quit [*.net *.split]
davidcollom has quit [*.net *.split]
txdv has quit [*.net *.split]
Bish has quit [*.net *.split]
ping-pong has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
lagweezle has quit [*.net *.split]
jetblack has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
Kabaka_ has quit [*.net *.split]
eval-in__ has quit [*.net *.split]
graft has quit [*.net *.split]
ejnahc has quit [*.net *.split]
peterhu has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
destructure has quit [*.net *.split]
csmrfx has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
jrdnull has quit [*.net *.split]
sawtooth_ has quit [*.net *.split]
snkcld_ has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
gremax has quit [*.net *.split]
willb1 has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
csfrancis has quit [*.net *.split]
wlanboy has quit [*.net *.split]
Lulzon has quit [*.net *.split]
dev1x has quit [*.net *.split]
ptierno has quit [*.net *.split]
ParanoidSP has quit [*.net *.split]
nw has quit [*.net *.split]
descala has quit [*.net *.split]
xmltok_ has quit [*.net *.split]
mpajor_op5 has quit [*.net *.split]
three18ti has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
nevyn has quit [*.net *.split]
weeb1e has quit [*.net *.split]
Jamo has quit [*.net *.split]
setient has quit [*.net *.split]
kapowaz has quit [*.net *.split]
arubincloud has quit [*.net *.split]
im0b has quit [*.net *.split]
aep has quit [*.net *.split]
cmaxw_____ has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
msch has quit [*.net *.split]
octarine has quit [*.net *.split]
Darryl has quit [*.net *.split]
alol has quit [*.net *.split]
idoru has quit [*.net *.split]
rodasc has quit [*.net *.split]
mosez has quit [*.net *.split]
utkarsh__ has quit [*.net *.split]
FDj has quit [*.net *.split]
Cooler_ has quit [*.net *.split]
elaptics has quit [*.net *.split]
yokel has quit [*.net *.split]
Blue_Ice_ has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
theRoUS has quit [*.net *.split]
marienz has quit [*.net *.split]
s_e has quit [*.net *.split]
bawNg has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
eythorium has quit [*.net *.split]
mg^ has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
pr00t has quit [*.net *.split]
toddabrahm has quit [*.net *.split]
clamstar has quit [*.net *.split]
eregon has quit [*.net *.split]
mrmargolis has quit [*.net *.split]
roadie has quit [*.net *.split]
cout has quit [*.net *.split]
s2013 has quit [*.net *.split]
ndrei has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
peret has quit [*.net *.split]
canton7 has quit [*.net *.split]
omosoj has quit [*.net *.split]
jacobsmith has quit [*.net *.split]
Platini has quit [*.net *.split]
NovapaX has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
marr has quit [*.net *.split]
W0rmDr1nk has quit [*.net *.split]
claymore has quit [*.net *.split]
MZAWeb has quit [*.net *.split]
yacks has quit [*.net *.split]
braincrash has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
tyll has quit [*.net *.split]
CorpusCallosum has quit [*.net *.split]
likemike has quit [*.net *.split]
patteh has quit [*.net *.split]
Lemur has quit [*.net *.split]
FL1SK has quit [*.net *.split]
m_3 has quit [*.net *.split]
unholycrab has quit [*.net *.split]
Wayneoween has quit [*.net *.split]
anekos has quit [*.net *.split]
bmn_ has quit [*.net *.split]
bw_ has quit [*.net *.split]
rcs has quit [*.net *.split]
RTG` has quit [*.net *.split]
suffice_ has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
ezrios has quit [*.net *.split]
chihhsin1wego has quit [*.net *.split]
d33tah has quit [*.net *.split]
myke has quit [*.net *.split]
ozzloy has quit [*.net *.split]
dinoex has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
philtr_ has quit [*.net *.split]
deepy has quit [*.net *.split]
fveillette has quit [*.net *.split]
phutchins has quit [*.net *.split]
joast has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
thelamest has quit [*.net *.split]
wykydtron has quit [*.net *.split]
devyn has quit [*.net *.split]
kloeri has quit [*.net *.split]
Senjai has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
TTilus has quit [*.net *.split]
preller has quit [*.net *.split]
sivoais has quit [*.net *.split]
machuga has quit [*.net *.split]
gogiel_ has quit [*.net *.split]
marahin has quit [*.net *.split]
jcarouth has quit [*.net *.split]
tchebb has quit [*.net *.split]
gyre007___ has quit [*.net *.split]
jeregrine has quit [*.net *.split]
bluehavana has quit [*.net *.split]
ddv has quit [*.net *.split]
eataix has quit [*.net *.split]
lectrick__ has quit [*.net *.split]
dnyy has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
kartouch has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
snapcase has quit [*.net *.split]
nickgartmann has quit [*.net *.split]
frode15243 has quit [*.net *.split]
drPoggs has quit [*.net *.split]
Su7 has quit [*.net *.split]
j416 has quit [*.net *.split]
jpinnix____ has quit [*.net *.split]
pusewicz__ has quit [*.net *.split]
weems has quit [*.net *.split]
engel has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
xea has quit [*.net *.split]
lupine has quit [*.net *.split]
aef has quit [*.net *.split]
zarul has quit [*.net *.split]
jwest has quit [*.net *.split]
Photism_ has quit [*.net *.split]
optiz0r has quit [*.net *.split]
DanKnox has quit [*.net *.split]
DefV has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
ericwood has quit [*.net *.split]
verto has quit [*.net *.split]
mjc_ has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
dmoe____ has quit [*.net *.split]
martisj has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
mroth has quit [*.net *.split]
musl has quit [*.net *.split]
ereslibre has quit [*.net *.split]
rtlong has quit [*.net *.split]
bhaak has quit [*.net *.split]
aalmenar has quit [*.net *.split]
jtz has quit [*.net *.split]
mvangala has quit [*.net *.split]
inverses1uarelaw has quit [*.net *.split]
zeroXten has quit [*.net *.split]
rtl has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
cid404 has quit [*.net *.split]
jgrevich has quit [*.net *.split]
bauruine has quit [*.net *.split]
nighter has quit [*.net *.split]
TWWOC has quit [*.net *.split]
zarkzork has quit [*.net *.split]
maxmanders has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
markolson has quit [*.net *.split]
xsdg has quit [*.net *.split]
wuest has quit [*.net *.split]
Davey has quit [*.net *.split]
majoh has quit [*.net *.split]
frankS2 has quit [*.net *.split]
mansi has quit [*.net *.split]
hfp has quit [*.net *.split]
Matip has quit [*.net *.split]
vpretzel|retro has quit [*.net *.split]
crystal77 has quit [*.net *.split]
beef-wellington has quit [*.net *.split]
hamakn has quit [*.net *.split]
dANOKELOFF has quit [*.net *.split]
Bofu2U has quit [*.net *.split]
Xeago has quit [*.net *.split]
AlSquire has quit [*.net *.split]
jle` has quit [*.net *.split]
klaut has quit [*.net *.split]
nomenkun has quit [*.net *.split]
spider-mario has quit [*.net *.split]
kaffepanna has quit [*.net *.split]
SirFunk has quit [*.net *.split]
Deele has quit [*.net *.split]
Caius has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
terrellt has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
tekacs has quit [*.net *.split]
JStoker has quit [*.net *.split]
ocher has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
Morrolan has quit [*.net *.split]
xybre has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
devdazed has quit [*.net *.split]
barratt has quit [*.net *.split]
oso96_2000 has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
qhartman has quit [*.net *.split]
go|dfish has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
sindork has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
orto has quit [*.net *.split]
jso has quit [*.net *.split]
zxq9 has quit [*.net *.split]
crazymykl has quit [*.net *.split]
gregf has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
sumark has quit [*.net *.split]
hl has quit [*.net *.split]
Guest69942 has quit [*.net *.split]
xorl has quit [*.net *.split]
petems has quit [*.net *.split]
soulcake has quit [*.net *.split]
elektronaut has quit [*.net *.split]
ccooke has quit [*.net *.split]
nicar has quit [*.net *.split]
phreax has quit [*.net *.split]
headius has quit [*.net *.split]
gischy has quit [*.net *.split]
shalicke has quit [*.net *.split]
Radar has quit [*.net *.split]
gf3 has quit [*.net *.split]
mumblerit has quit [*.net *.split]
ixx has quit [*.net *.split]
vaicine has quit [*.net *.split]
certainty has quit [*.net *.split]
micah` has quit [*.net *.split]
drager has quit [*.net *.split]
tsunamie has quit [*.net *.split]
miah has quit [*.net *.split]
netf has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
IceDragon has quit [*.net *.split]
x77686d has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
wjlafrance has quit [*.net *.split]
SubSignal has quit [*.net *.split]
tziOm has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
m3nTe has quit [*.net *.split]
hackeron has quit [*.net *.split]
qba73 has quit [*.net *.split]
foooobear has quit [*.net *.split]
timonv has quit [*.net *.split]
jackneill has quit [*.net *.split]
george2 has quit [*.net *.split]
davedev2_ has quit [*.net *.split]
thomasxie has quit [*.net *.split]
mnemon has quit [*.net *.split]
s00pcan has quit [*.net *.split]
shaman42 has quit [*.net *.split]
qubit has quit [*.net *.split]
timmow has quit [*.net *.split]
crome has quit [*.net *.split]
kith has quit [*.net *.split]
yubrew has quit [*.net *.split]
tris has quit [*.net *.split]
ItSANg___ has quit [*.net *.split]
Nahra has quit [*.net *.split]
haroldwu has quit [*.net *.split]
kies has quit [*.net *.split]
kiri has quit [*.net *.split]
proxie has quit [*.net *.split]
itman has quit [*.net *.split]
vitorbaptista has quit [*.net *.split]
droptone has quit [*.net *.split]
adeponte has quit [*.net *.split]
crazysim has quit [*.net *.split]
jhass has quit [*.net *.split]
niharvey has quit [*.net *.split]
contradictioned has quit [*.net *.split]
CaptainKnots has quit [*.net *.split]
dmead has quit [*.net *.split]
Ancient has quit [*.net *.split]
Rydekull has quit [*.net *.split]
davzie has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
adamholt has quit [*.net *.split]
z has quit [*.net *.split]
matrixise has quit [*.net *.split]
unic0rn has quit [*.net *.split]
Scient has quit [*.net *.split]
bier has quit [*.net *.split]
cescalante has quit [*.net *.split]
Cope has quit [*.net *.split]
jmaister has quit [*.net *.split]
saltsa_ has quit [*.net *.split]
jaredrhine has quit [*.net *.split]
Kruppe has quit [*.net *.split]
rhys_ has quit [*.net *.split]
user258467 has quit [*.net *.split]
adam_ has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
Nilium has quit [*.net *.split]
Nightmare has quit [*.net *.split]
ndngvr has quit [*.net *.split]
aetaric has quit [*.net *.split]
shtirlic has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
xm has quit [*.net *.split]
mburns has quit [*.net *.split]
drago777 has quit [*.net *.split]
sweeper has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
ggherdov has quit [*.net *.split]
cherry_l1n has quit [*.net *.split]
stylus_ has quit [*.net *.split]
RealMarc has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
jaimef has quit [*.net *.split]
Akuma has quit [*.net *.split]
dmarr has quit [*.net *.split]
Adran has quit [*.net *.split]
Karunamon has quit [*.net *.split]
joelteon has quit [*.net *.split]
seich has quit [*.net *.split]
uxp has quit [*.net *.split]
vt102 has quit [*.net *.split]
guardian has quit [*.net *.split]
error404 has quit [*.net *.split]
Mark_ has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
brutalbu1ler has quit [*.net *.split]
pipework has quit [*.net *.split]
xiphias has quit [*.net *.split]
kaspergr_ has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
andy___ has quit [*.net *.split]
jds has quit [*.net *.split]
jrobertfox has quit [*.net *.split]
bluenemo has quit [*.net *.split]
sk87 has quit [*.net *.split]
greenrose has quit [*.net *.split]
charliesome_ has quit [*.net *.split]
timgauthier has quit [*.net *.split]
adlerdias has quit [*.net *.split]
dblessing has quit [*.net *.split]
_izz has quit [*.net *.split]
malcolmva has quit [*.net *.split]
robert_ has quit [*.net *.split]
dawkirst has quit [*.net *.split]
sski has quit [*.net *.split]
maloik has quit [*.net *.split]
Mdgd has quit [*.net *.split]
nfk has quit [*.net *.split]
apeiros has quit [*.net *.split]
gtc has quit [*.net *.split]
LBRapid has quit [*.net *.split]
olleromo has quit [*.net *.split]
jsaak has quit [*.net *.split]
ohcibi_ has quit [*.net *.split]
kalleth has quit [*.net *.split]
noocode has quit [*.net *.split]
bricker has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
ankov has quit [*.net *.split]
Nogbit has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
cschneid has quit [*.net *.split]
hoelzro_ has quit [*.net *.split]
artmann_ has quit [*.net *.split]
dioms_ has quit [*.net *.split]
lele has quit [*.net *.split]
schaary has quit [*.net *.split]
badhatter has quit [*.net *.split]
tsnfoo has quit [*.net *.split]
qqw has quit [*.net *.split]
RaptorJesus has quit [*.net *.split]
wereHamster has quit [*.net *.split]
weaksauce has quit [*.net *.split]
rotor has quit [*.net *.split]
nhmood has quit [*.net *.split]
ziyadb_ has quit [*.net *.split]
tonini has quit [*.net *.split]
parduse has quit [*.net *.split]
xargoon has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
yvemath has quit [*.net *.split]
jericon has quit [*.net *.split]
kitak has quit [*.net *.split]
blackmesa has quit [*.net *.split]
shevy has quit [*.net *.split]
geopet has quit [*.net *.split]
doodlehaus has quit [*.net *.split]
kilk_ has quit [*.net *.split]
alem0lars has quit [*.net *.split]
Aaaal has quit [*.net *.split]
ephemerian has quit [*.net *.split]
lolmaus has quit [*.net *.split]
cpruitt has quit [*.net *.split]
matchaw has quit [*.net *.split]
Shackleford has quit [*.net *.split]
Rylee has quit [*.net *.split]
shock_one has quit [*.net *.split]
rmorello|903 has quit [*.net *.split]
puzanov__ has quit [*.net *.split]
relix has quit [*.net *.split]
jobewan has quit [*.net *.split]
danshultz has quit [*.net *.split]
sombre_reptile has quit [*.net *.split]
andrewlio has quit [*.net *.split]
abdulsattar has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
jprovazn has quit [*.net *.split]
LiohAu has quit [*.net *.split]
nvrch has quit [*.net *.split]
estaban_ has quit [*.net *.split]
AGreyCrane has quit [*.net *.split]
Spitfire_ has quit [*.net *.split]
lbwski has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
iaj_ has quit [*.net *.split]
SlvrDragn has quit [*.net *.split]
iceden has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
fflush has quit [*.net *.split]
slash_nick has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
Igneous has quit [*.net *.split]
eguim has quit [*.net *.split]
akosednar has quit [*.net *.split]
ahuman has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
tafryn has quit [*.net *.split]
Killerkeksdose_ has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
Tarential has quit [*.net *.split]
keen_____ has quit [*.net *.split]
RSTJNII has quit [*.net *.split]
Xuerian has quit [*.net *.split]
LetErikTry has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
gizmore has quit [*.net *.split]
Schmidt has quit [*.net *.split]
machete has quit [*.net *.split]
Raboo has quit [*.net *.split]
Takumo has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
cgj has quit [*.net *.split]
WillAmes has quit [*.net *.split]
jzigmund has quit [*.net *.split]
nuck has quit [*.net *.split]
matled has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
stnly has quit [*.net *.split]
Veejay has quit [*.net *.split]
psmolen has quit [*.net *.split]
zastern has quit [*.net *.split]
v0n has quit [*.net *.split]
matti has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Zackio has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
mjsmith2 has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
wwkeyboard has quit [*.net *.split]
mrgoodcat has quit [*.net *.split]
nifty has quit [*.net *.split]
bedouin has quit [*.net *.split]
zzak_ has quit [*.net *.split]
vcoinminer__ has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
supershabam has quit [*.net *.split]
Guest37572 has quit [*.net *.split]
zenojis has quit [*.net *.split]
meinside has quit [*.net *.split]
antonishen has quit [*.net *.split]
mordocai has quit [*.net *.split]
CJD14__ has quit [*.net *.split]
guilleiguaran_ has quit [*.net *.split]
bjeanes has quit [*.net *.split]
dpyzhov has quit [*.net *.split]
lfox has quit [*.net *.split]
hostess has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
Klumben has quit [*.net *.split]
caveat- has quit [*.net *.split]
pagios has quit [*.net *.split]
adambeynon has quit [*.net *.split]
yo61 has quit [*.net *.split]
Tranquility has quit [*.net *.split]
zrl has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
emdub_ has quit [*.net *.split]
_5kg has quit [*.net *.split]
metadave has quit [*.net *.split]
stopbit has quit [*.net *.split]
shwouchk has quit [*.net *.split]
__class__ has quit [*.net *.split]
wwalker has quit [*.net *.split]
billiam_ has quit [*.net *.split]
mr_red has quit [*.net *.split]
cbetta has quit [*.net *.split]
callenb has quit [*.net *.split]
jeffreybaird has quit [*.net *.split]
culturelabs has quit [*.net *.split]
juni0r has quit [*.net *.split]
vjt has quit [*.net *.split]
rurban_ has quit [*.net *.split]
vadviktor has quit [*.net *.split]
icedp has quit [*.net *.split]
moshee has quit [*.net *.split]
paul_k has quit [*.net *.split]
Roa has quit [*.net *.split]
QKO has quit [*.net *.split]
Jelco has quit [*.net *.split]
_blackjid has quit [*.net *.split]
n88_ has quit [*.net *.split]
prdx has quit [*.net *.split]
Snickers has quit [*.net *.split]
RohanRNS has quit [*.net *.split]
Cork has quit [*.net *.split]
Sthebig has quit [*.net *.split]
alyx has quit [*.net *.split]
dyreshark has quit [*.net *.split]
flori has quit [*.net *.split]
mist has quit [*.net *.split]
Liothen has quit [*.net *.split]
oz has quit [*.net *.split]
mjmac has quit [*.net *.split]
kenichi has quit [*.net *.split]
PhilK has quit [*.net *.split]
manacit has quit [*.net *.split]
Olipro has quit [Max SendQ exceeded]
kalz has quit [Max SendQ exceeded]
t3ch has joined #ruby
kalz has joined #ruby
endash has joined #ruby
DouweM has joined #ruby
dima__ has joined #ruby
troyronda has joined #ruby
geopet has joined #ruby
jottr has joined #ruby
iliketurtles has joined #ruby
vallieres_ has joined #ruby
lmickh has joined #ruby
mansi has joined #ruby
zachallett has joined #ruby
AGreyCrane has joined #ruby
mrmargolis has joined #ruby
mehlah has joined #ruby
jlast has joined #ruby
doodlehaus has joined #ruby
AlexRussia has joined #ruby
shevy has joined #ruby
IceDragon has joined #ruby
s2013 has joined #ruby
sethen has joined #ruby
Aaaal has joined #ruby
bricker`LA has joined #ruby
nateberkopec has joined #ruby
codabrink has joined #ruby
x77686d has joined #ruby
Matip has joined #ruby
alem0lars has joined #ruby
vpretzel|retro has joined #ruby
dik_dak has joined #ruby
mary5030 has joined #ruby
banister has joined #ruby
Hanmac has joined #ruby
dpyzhov has joined #ruby
evenix has joined #ruby
kilk_ has joined #ruby
pwh has joined #ruby
baweaver has joined #ruby
obscured has joined #ruby
sailias1 has joined #ruby
firoxer has joined #ruby
SCommette has joined #ruby
bamyojo14335 has joined #ruby
arubincloud has joined #ruby
jacobsmith has joined #ruby
ffranz has joined #ruby
pu22l3r has joined #ruby
kaspergrubbe has joined #ruby
cpruitt has joined #ruby
blackmesa has joined #ruby
ixti has joined #ruby
Kricir has joined #ruby
SubSignal has joined #ruby
end_guy has joined #ruby
graud has joined #ruby
crystal77 has joined #ruby
matchaw has joined #ruby
canton7 has joined #ruby
horrorvacui has joined #ruby
omosoj has joined #ruby
sdwrage has joined #ruby
beef-wellington has joined #ruby
Milly_Bays has joined #ruby
mjsmith2 has joined #ruby
adlerdias has joined #ruby
ndrei has joined #ruby
tziOm has joined #ruby
blackavr has joined #ruby
Shackleford has joined #ruby
echevemaster has joined #ruby
jds has joined #ruby
alexju has joined #ruby
jxf has joined #ruby
bluenemo has joined #ruby
m3nTe has joined #ruby
shock_one has joined #ruby
lolmaus has joined #ruby
greenrose has joined #ruby
ephemerian has joined #ruby
peret has joined #ruby
lw has joined #ruby
Di has joined #ruby
rmorello|903 has joined #ruby
senayar has joined #ruby
raul782 has joined #ruby
meatherly has joined #ruby
charliesome_ has joined #ruby
jespada has joined #ruby
havenwood has joined #ruby
hamakn has joined #ruby
Kneferilis has joined #ruby
sk87 has joined #ruby
jeregrine has joined #ruby
wjlafrance has joined #ruby
pika_pika has joined #ruby
Rylee has joined #ruby
fijimunkii has joined #ruby
kitak has joined #ruby
carlyle has joined #ruby
andy___ has joined #ruby
danshultz has joined #ruby
nomenkun has joined #ruby
_izz has joined #ruby
nfk has joined #ruby
malcolmva has joined #ruby
fohan has joined #ruby
klaut has joined #ruby
SirFunk has joined #ruby
mark_locklear has joined #ruby
Mark_ has joined #ruby
MZAWeb has joined #ruby
rdark has joined #ruby
Tricon has joined #ruby
momomomomo has joined #ruby
Bofu2U has joined #ruby
Xeago has joined #ruby
dblessing has joined #ruby
timgauthier has joined #ruby
tyll has joined #ruby
supershabam has joined #ruby
decoponio has joined #ruby
thomasxie has joined #ruby
LBRapid has joined #ruby
binw has joined #ruby
lsmola has joined #ruby
xMopxShell has joined #ruby
jackneill has joined #ruby
bluOxigen has joined #ruby
yalue has joined #ruby
Martxel has joined #ruby
LiohAu has joined #ruby
robert_ has joined #ruby
mcrmfc has joined #ruby
WishBoy has joined #ruby
spider-mario has joined #ruby
wmoxam has joined #ruby
Platini has joined #ruby
alpha123 has joined #ruby
lkba has joined #ruby
lectrick__ has joined #ruby
maloik has joined #ruby
jle` has joined #ruby
kaichanvong has joined #ruby
apeiros has joined #ruby
twiceday has joined #ruby
Spitfire_ has joined #ruby
LostDatagram has joined #ruby
Beoran__ has joined #ruby
agjacome has joined #ruby
Asher has joined #ruby
nifty has joined #ruby
metamaterial has joined #ruby
m00nlight has joined #ruby
Fire-Dragon-DoL has joined #ruby
puzanov__ has joined #ruby
radic has joined #ruby
elico has joined #ruby
jeekl has joined #ruby
ohcibi has joined #ruby
andrewlio has joined #ruby
gtc has joined #ruby
kalleth has joined #ruby
jaffery has joined #ruby
kaffepanna has joined #ruby
olivier_bK has joined #ruby
mnemon has joined #ruby
W0rmDr1nk has joined #ruby
Royalb15_1 has joined #ruby
DarkFoxDK has joined #ruby
bedouin has joined #ruby
zzak_ has joined #ruby
Mdgd has joined #ruby
davedev2_ has joined #ruby
vitorbaptista has joined #ruby
St_Marx has joined #ruby
vcoinminer__ has joined #ruby
atmosx has joined #ruby
jprovazn has joined #ruby
ec has joined #ruby
AlSquire has joined #ruby
relix has joined #ruby
andrewstewart has joined #ruby
gyre007___ has joined #ruby
qba73 has joined #ruby
george2 has joined #ruby
marienz has joined #ruby
einarj has joined #ruby
dawkirst has joined #ruby
yosafbridge has joined #ruby
mordof has joined #ruby
marr has joined #ruby
jsaak has joined #ruby
phoo1234567 has joined #ruby
kapowaz has joined #ruby
msch has joined #ruby
fella5s has joined #ruby
olleromo has joined #ruby
ponga has joined #ruby
mikecmpbll has joined #ruby
Azure has joined #ruby
jobewan has joined #ruby
Morkel has joined #ruby
timonv has joined #ruby
nolic has joined #ruby
abdulsattar has joined #ruby
cover has joined #ruby
claymore has joined #ruby
nvrch has joined #ruby
bigkevmcd has joined #ruby
paulfm has joined #ruby
yacks has joined #ruby
bluehavana has joined #ruby
ddv has joined #ruby
phansch has joined #ruby
Deele has joined #ruby
ValicekB has joined #ruby
ikaros has joined #ruby
mrgoodcat has joined #ruby
Zhann has joined #ruby
braincrash has joined #ruby
sombre_reptile has joined #ruby
hackeron has joined #ruby
wwkeyboard has joined #ruby
poikon has joined #ruby
kung has joined #ruby
agarie has joined #ruby
qubit has joined #ruby
Gnubie_ has joined #ruby
BradPitt_ has joined #ruby
Caius has joined #ruby
terrellt has joined #ruby
shaman42 has joined #ruby
s00pcan has joined #ruby
tacos1de has joined #ruby
lbwski has joined #ruby
chridal has joined #ruby
geggam has joined #ruby
tommylommykins has joined #ruby
reactormonk has joined #ruby
iaj_ has joined #ruby
wookiehangover has joined #ruby
Alina-malina has joined #ruby
noocode has joined #ruby
felixjet_ has joined #ruby
onewheelskyward has joined #ruby
alexherbo2 has joined #ruby
likemike has joined #ruby
cschneid has joined #ruby
burntbit has joined #ruby
im0b has joined #ruby
markmarkmark has joined #ruby
frobrob has joined #ruby
CorpusCallosum has joined #ruby
ankov has joined #ruby
linduxed has joined #ruby
Trynemjoel has joined #ruby
dnyy has joined #ruby
guilleiguaran_ has joined #ruby
cmaxw_____ has joined #ruby
Brando753 has joined #ruby
tekacs has joined #ruby
JStoker has joined #ruby
CJD14__ has joined #ruby
timmow has joined #ruby
dioms_ has joined #ruby
alvaro_o has joined #ruby
mordocai has joined #ruby
zenojis has joined #ruby
bricker has joined #ruby
crome has joined #ruby
SegFaultAX has joined #ruby
kartouch has joined #ruby
meinside has joined #ruby
Norrin has joined #ruby
eataix has joined #ruby
bpgoldsb has joined #ruby
octarine has joined #ruby
bjeanes has joined #ruby
hoelzro_ has joined #ruby
schaary has joined #ruby
alol has joined #ruby
artmann_ has joined #ruby
antonishen has joined #ruby
hanikazmi has joined #ruby
kith has joined #ruby
Nogbit has joined #ruby
benzrf|offline has joined #ruby
lele has joined #ruby
blandflakes has joined #ruby
lazyguru has joined #ruby
tris has joined #ruby
ws2k3 has joined #ruby
SlvrDragn has joined #ruby
robustus has joined #ruby
martisj has joined #ruby
patteh has joined #ruby
gigetoo has joined #ruby
spyderman4g63 has joined #ruby
_axx has joined #ruby
natewalck has joined #ruby
nevans has joined #ruby
danijoo has joined #ruby
yubrew has joined #ruby
tsnfoo has joined #ruby
wald0 has joined #ruby
Thanatermesis has joined #ruby
Kruppe has joined #ruby
compleatang has joined #ruby
ocher has joined #ruby
ta has joined #ruby
pdtpatrick has joined #ruby
quantsini has joined #ruby
snapcase has joined #ruby
user258467 has joined #ruby
badhatter has joined #ruby
nemesit|znc has joined #ruby
xiella has joined #ruby
ItSANg___ has joined #ruby
hakunin has joined #ruby
shalicke has joined #ruby
Darryl has joined #ruby
qqw has joined #ruby
jmeeuwen has joined #ruby
nickgartmann has joined #ruby
peeja has joined #ruby
Igneous has joined #ruby
frode15243 has joined #ruby
lfox has joined #ruby
napcae has joined #ruby
Morrolan has joined #ruby
RaptorJesus has joined #ruby
wwalker has joined #ruby
axisys has joined #ruby
redondos has joined #ruby
wchun has joined #ruby
mahlon has joined #ruby
katlogic has joined #ruby
cosmin has joined #ruby
ada2358 has joined #ruby
hostess has joined #ruby
xybre has joined #ruby
slash_nick has joined #ruby
Zespre has joined #ruby
Kryptonical has joined #ruby
closer has joined #ruby
chihhsin has joined #ruby
SloggerKhan has joined #ruby
p8952 has joined #ruby
weaksauce has joined #ruby
wereHamster has joined #ruby
devdazed has joined #ruby
fflush has joined #ruby
jacky has joined #ruby
connor_goodwolf has joined #ruby
renier has joined #ruby
sn0wb1rd has joined #ruby
Nahra has joined #ruby
RubyPanther has joined #ruby
Emmanuel_Chanel has joined #ruby
yano has joined #ruby
tcstar has joined #ruby
marcellus has joined #ruby
ziyadb_ has joined #ruby
itman has joined #ruby
go|dfish has joined #ruby
sente has joined #ruby
naw_ has joined #ruby
haroldwu has joined #ruby
spacebug has joined #ruby
Veejay has joined #ruby
siert has joined #ruby
Biohazard has joined #ruby
C0deMaver1ck has joined #ruby
oso96_2000 has joined #ruby
zonetti has joined #ruby
Klumben has joined #ruby
__main__ has joined #ruby
metadave has joined #ruby
Lemur has joined #ruby
dreamchaser has joined #ruby
moted has joined #ruby
KevinSjoberg has joined #ruby
rhys_ has joined #ruby
thoraxe has joined #ruby
kukyakya_ has joined #ruby
kies has joined #ruby
Su7 has joined #ruby
mgorbach has joined #ruby
linojon has joined #ruby
kiri has joined #ruby
proxie has joined #ruby
jxport has joined #ruby
qhartman has joined #ruby
sindork has joined #ruby
fearoffish has joined #ruby
amundj has joined #ruby
LastWhisper has joined #ruby
brandon_ has joined #ruby
rixius has joined #ruby
ponyfleisch has joined #ruby
caveat- has joined #ruby
drPoggs has joined #ruby
jericon has joined #ruby
parduse has joined #ruby
deavid has joined #ruby
Davedo has joined #ruby
rotor has joined #ruby
pgmcgee has joined #ruby
dpaulus has joined #ruby
xargoon has joined #ruby
patronus has joined #ruby
thejoecarroll has joined #ruby
kmwhite has joined #ruby
droptone has joined #ruby
angelixd has joined #ruby
tonini has joined #ruby
jso has joined #ruby
replay has joined #ruby
Rubeh has joined #ruby
FL1SK has joined #ruby
helpa has joined #ruby
fumk has joined #ruby
eguim has joined #ruby
nhmood has joined #ruby
justinmcp has joined #ruby
m_3 has joined #ruby
mattrose has joined #ruby
adeponte has joined #ruby
crazymykl has joined #ruby
orto has joined #ruby
omegahm has joined #ruby
ahuman has joined #ruby
zxq9 has joined #ruby
Riking has joined #ruby
crazysim has joined #ruby
johnhamelink has joined #ruby
barratt has joined #ruby
froy has joined #ruby
monsieurp has joined #ruby
gregf has joined #ruby
pagios has joined #ruby
dylannorthrup has joined #ruby
guyz has joined #ruby
Derander has joined #ruby
hairyhenderson has joined #ruby
madhatter has joined #ruby
AntelopeSalad has joined #ruby
camt has joined #ruby
akosednar has joined #ruby
niharvey has joined #ruby
mattsp1290 has joined #ruby
sumark has joined #ruby
b1nd has joined #ruby
Sp4rKy has joined #ruby
j416 has joined #ruby
yvemath has joined #ruby
ping-pong has joined #ruby
xea has joined #ruby
camilasan has joined #ruby
bcavileer has joined #ruby
Tranquility has joined #ruby
machty has joined #ruby
TheMoonMaster has joined #ruby
bubbajones has joined #ruby
sbnnrd has joined #ruby
yo61 has joined #ruby
marahin has joined #ruby
engel has joined #ruby
pusewicz__ has joined #ruby
Rickmasta has joined #ruby
idoru has joined #ruby
davidcollom has joined #ruby
weems has joined #ruby
lagweezle has joined #ruby
jpinnix____ has joined #ruby
zrl has joined #ruby
txdv has joined #ruby
adambeynon has joined #ruby
Bish has joined #ruby
tafryn has joined #ruby
adam_ has joined #ruby
ezrios has joined #ruby
Nightmare has joined #ruby
chihhsin1wego has joined #ruby
ph88 has joined #ruby
aetaric has joined #ruby
yxhuvud has joined #ruby
jwest has joined #ruby
ejnahc has joined #ruby
billiam_ has joined #ruby
emdub_ has joined #ruby
shwouchk has joined #ruby
zarul has joined #ruby
FDj has joined #ruby
shtirlic has joined #ruby
aef has joined #ruby
myke has joined #ruby
eval-in__ has joined #ruby
kiki_lamb has joined #ruby
gizmore has joined #ruby
utkarsh__ has joined #ruby
Photism_ has joined #ruby
LetErikTry has joined #ruby
queequeg1 has joined #ruby
graft has joined #ruby
frankS2 has joined #ruby
MindfulMonk has joined #ruby
jetblack has joined #ruby
WanderingGlitch has joined #ruby
mr_red has joined #ruby
peterhu has joined #ruby
d33tah has joined #ruby
minecoins has joined #ruby
Killerkeksdose_ has joined #ruby
keen_____ has joined #ruby
optiz0r has joined #ruby
lupine has joined #ruby
JZTech101 has joined #ruby
Tarential has joined #ruby
jonathanwallace has joined #ruby
Nilium has joined #ruby
nomadic_ has joined #ruby
zz_jrhorn424 has joined #ruby
soulcake has joined #ruby
_5kg has joined #ruby
Ancient has joined #ruby
stopbit has joined #ruby
mosez has joined #ruby
Kabaka_ has joined #ruby
Hien has joined #ruby
rodasc has joined #ruby
jenrzzz has joined #ruby
csfrancis has joined #ruby
__class__ has joined #ruby
xmltok_ has joined #ruby
Xuerian has joined #ruby
DanKnox has joined #ruby
jhass has joined #ruby
Dr3amc0d3r|away has joined #ruby
RSTJNII has joined #ruby
farn has joined #ruby
cibs has joined #ruby
destructure has joined #ruby
ndngvr has joined #ruby
JoeJulian has joined #ruby
nevyn has joined #ruby
mburns has joined #ruby
xm has joined #ruby
ddfreyne has joined #ruby
ozzloy has joined #ruby
ggherdov has joined #ruby
Cooler_ has joined #ruby
billy_ran_away has joined #ruby
sweeper has joined #ruby
dinoex has joined #ruby
csmrfx has joined #ruby
drago777 has joined #ruby
yokel has joined #ruby
ericwood has joined #ruby
snkcld_ has joined #ruby
philtr_ has joined #ruby
sawtooth_ has joined #ruby
Blue_Ice_ has joined #ruby
DefV has joined #ruby
stylus_ has joined #ruby
Schmidt has joined #ruby
cherry_l1n has joined #ruby
RealMarc has joined #ruby
setient has joined #ruby
XenoWolf has joined #ruby
Kilo`byte has joined #ruby
jan1337z has joined #ruby
Psy-Q has joined #ruby
elaptics has joined #ruby
callenb has joined #ruby
Eiam has joined #ruby
theRoUS has joined #ruby
machete has joined #ruby
fveillette has joined #ruby
joast has joined #ruby
wykydtron has joined #ruby
flagg0204 has joined #ruby
Port3M5[Work] has joined #ruby
dev1x has joined #ruby
nicar has joined #ruby
verto has joined #ruby
s_e has joined #ruby
guardian has joined #ruby
jaimef has joined #ruby
Akuma has joined #ruby
juni0r has joined #ruby
thelamest has joined #ruby
Raboo has joined #ruby
pdtpatr1ck has joined #ruby
mjc_ has joined #ruby
dmoe____ has joined #ruby
jrdnull has joined #ruby
Jakee`__ has joined #ruby
cbetta has joined #ruby
jeffreybaird has joined #ruby
ballPointPenguin has joined #ruby
maZtah has joined #ruby
fayimora has joined #ruby
aalmenar has joined #ruby
unic0rn has joined #ruby
mroth has joined #ruby
phutchins has joined #ruby
rtlong has joined #ruby
ereslibre has joined #ruby
dmarr has joined #ruby
culturelabs has joined #ruby
joelteon has joined #ruby
Adran has joined #ruby
devyn has joined #ruby
jtz has joined #ruby
JaTochNietDan has joined #ruby
Senjai has joined #ruby
deepy has joined #ruby
bhaak has joined #ruby
kloeri has joined #ruby
Guest85414______ has joined #ruby
mjuszczak has joined #ruby
musl has joined #ruby
uxp has joined #ruby
pr00t has joined #ruby
vt102 has joined #ruby
MissionCritical has joined #ruby
jayne has joined #ruby
sheepman has joined #ruby
Karunamon has joined #ruby
seich has joined #ruby
bawNg has joined #ruby
mvangala has joined #ruby
inverses1uarelaw has joined #ruby
zeroXten has joined #ruby
hl has joined #ruby
willb1 has joined #ruby
eythorium has joined #ruby
Wayneoween has joined #ruby
dhruvasagar has joined #ruby
SecretAgent has joined #ruby
TTilus has joined #ruby
rtl has joined #ruby
mg^ has joined #ruby
Lulzon has joined #ruby
avelldiroll has joined #ruby
mr_rich101 has joined #ruby
WillAmes has joined #ruby
cid404 has joined #ruby
crazedpsyc has joined #ruby
gremax has joined #ruby
jgrevich has joined #ruby
DarthGandalf has joined #ruby
cgj has joined #ruby
toddabrahm has joined #ruby
error404 has joined #ruby
Kovensky has joined #ruby
Takumo has joined #ruby
dermot has joined #ruby
Apocalypse has joined #ruby
Drakevr has joined #ruby
ph8 has joined #ruby
sfiggins has joined #ruby
Gate has joined #ruby
dandrade has joined #ruby
asuka has joined #ruby
rs0 has joined #ruby
Hamled has joined #ruby
dazeddev has joined #ruby
ji0n has joined #ruby
Elfix has joined #ruby
nopc0de has joined #ruby
TheNumb has joined #ruby
davidcelis has joined #ruby
diegok has joined #ruby
brunto has joined #ruby
shanlar- has joined #ruby
cba has joined #ruby
germanstudent has joined #ruby
eshy has joined #ruby
zz_karupa has joined #ruby
yeltzooo has joined #ruby
faulkner has joined #ruby
tomaw has joined #ruby
nilsove has joined #ruby
Kamilion has joined #ruby
sivoais has joined #ruby
ClarusCogitatio has joined #ruby
Jamo has joined #ruby
samuelkadolph has joined #ruby
clamstar has joined #ruby
aep has joined #ruby
weeb1e has joined #ruby
three18ti has joined #ruby
_aeris_ has joined #ruby
wlanboy has joined #ruby
awkisopen has joined #ruby
mpajor_op5 has joined #ruby
ptierno has joined #ruby
Paradox has joined #ruby
cuppscakes has joined #ruby
ParanoidSP has joined #ruby
descala has joined #ruby
Rudde has joined #ruby
Affix has joined #ruby
nw has joined #ruby
Tritania has joined #ruby
csq has joined #ruby
FaresKAlaboud has joined #ruby
Mars` has joined #ruby
RoryHughes has joined #ruby
BackEndCoder has joined #ruby
seemant has joined #ruby
ConstantineXVI has joined #ruby
m4rcu5 has joined #ruby
epochwolf has joined #ruby
charles81_ has joined #ruby
parus has joined #ruby
oetjenj has joined #ruby
mattyohe has joined #ruby
cHarNe2_ has joined #ruby
PaulePanter has joined #ruby
Muz has joined #ruby
mclee has joined #ruby
lotherk has joined #ruby
ceej has joined #ruby
dhoss has joined #ruby
jokke has joined #ruby
cephalostrum has joined #ruby
spacemud has joined #ruby
edwardly has joined #ruby
[42] has joined #ruby
cout has joined #ruby
eregon has joined #ruby
hfp has joined #ruby
majoh has joined #ruby
wuest has joined #ruby
Davey has joined #ruby
xsdg has joined #ruby
markolson has joined #ruby
kevinfagan has joined #ruby
maxmanders has joined #ruby
zarkzork has joined #ruby
nighter has joined #ruby
TWWOC has joined #ruby
bauruine has joined #ruby
suffice_ has joined #ruby
cjk101010 has joined #ruby
bw_ has joined #ruby
RTG` has joined #ruby
bmn_ has joined #ruby
rcs has joined #ruby
anekos has joined #ruby
unholycrab has joined #ruby
tchebb has joined #ruby
jcarouth has joined #ruby
machuga has joined #ruby
gogiel_ has joined #ruby
preller has joined #ruby
jaredrhine has joined #ruby
saltsa_ has joined #ruby
jmaister has joined #ruby
Cope has joined #ruby
cescalante has joined #ruby
bier has joined #ruby
z has joined #ruby
Scient has joined #ruby
matrixise has joined #ruby
adamholt has joined #ruby
Sou|cutter has joined #ruby
Rydekull has joined #ruby
davzie has joined #ruby
CaptainKnots has joined #ruby
dmead has joined #ruby
contradictioned has joined #ruby
miah has joined #ruby
drager has joined #ruby
netf has joined #ruby
Gadgetoid has joined #ruby
tsunamie has joined #ruby
ixx has joined #ruby
certainty has joined #ruby
gf3 has joined #ruby
vaicine has joined #ruby
gischy has joined #ruby
micah` has joined #ruby
headius has joined #ruby
ccooke has joined #ruby
elektronaut has joined #ruby
mumblerit has joined #ruby
petems has joined #ruby
phreax has joined #ruby
xorl has joined #ruby
Radar has joined #ruby
xiphias has joined #ruby
Guest69942 has joined #ruby
tobiasvl has joined #ruby
pipework has joined #ruby
brutalbu1ler has joined #ruby
vjt has joined #ruby
vadviktor has joined #ruby
rurban_ has joined #ruby
icedp has joined #ruby
moshee has joined #ruby
paul_k has joined #ruby
Roa has joined #ruby
QKO has joined #ruby
Jelco has joined #ruby
_blackjid has joined #ruby
prdx has joined #ruby
n88_ has joined #ruby
RohanRNS has joined #ruby
Snickers has joined #ruby
Cork has joined #ruby
Sthebig has joined #ruby
dyreshark has joined #ruby
alyx has joined #ruby
flori has joined #ruby
mist has joined #ruby
mjmac has joined #ruby
kenichi has joined #ruby
Liothen has joined #ruby
oz has joined #ruby
manacit has joined #ruby
nuck has joined #ruby
jzigmund has joined #ruby
matled has joined #ruby
LiquidInsect has joined #ruby
PhilK has joined #ruby
zastern has joined #ruby
psmolen has joined #ruby
v0n has joined #ruby
Nowaker has joined #ruby
matti has joined #ruby
stnly has joined #ruby
Zackio has joined #ruby
mhenrixon has joined #ruby
mattp__ has joined #ruby
Fraeon has joined #ruby
frog0909 has joined #ruby
finges has joined #ruby
Spleeze has joined #ruby
rmill has joined #ruby
Koshian has joined #ruby
klaas has joined #ruby
pavelz has joined #ruby
brisbin has joined #ruby
KillerFox has joined #ruby
jcalado has joined #ruby
AndyWojo_ has joined #ruby
mame0 has joined #ruby
nanashiRei has joined #ruby
wormwood has joined #ruby
yasu has joined #ruby
mozzarella has joined #ruby
erichmenge has joined #ruby
the_mentat has joined #ruby
blackms has joined #ruby
zalmoxes has joined #ruby
zaargy has joined #ruby
telling has joined #ruby
Slavox has joined #ruby
Anarch has joined #ruby
ruisantos has joined #ruby
robwilliamsuk has joined #ruby
fumduq has joined #ruby
Rennex has joined #ruby
FifthWall has joined #ruby
felipe has joined #ruby
terlar has joined #ruby
BombStrike has joined #ruby
bluntman has joined #ruby
DrOwl has joined #ruby
michael_mbp has joined #ruby
clocKwize has joined #ruby
phinfonet has joined #ruby
monomyth has joined #ruby
peck_ has joined #ruby
rdgawdzi has joined #ruby
t3ch has joined #ruby
siefca has joined #ruby
dbjeepn- has joined #ruby
SirCmpwn has joined #ruby
hypnosb has joined #ruby
t3ch has quit [Changing host]
s2013 has quit [Ping timeout: 252 seconds]
kevind has joined #ruby
troyronda has quit [Remote host closed the connection]
<mordof>
i imagine this may not make a whole lot of sense to do in reality, so bear with me (curiosity is why i ask). Is there a better way to create an array out of a range than this? (1..4).each do |n| myvar << n; end
x77686d has joined #ruby
<jhass>
ph88_: last[x] == last.[](x)
<ph88_>
jhass: what are they ? i could only find docs on last()
abdulsattar has quit [Ping timeout: 276 seconds]
SCommette has quit [Quit: SCommette]
<ph88_>
last.[](x) <-- o_O
burntbit has quit [Ping timeout: 240 seconds]
<jhass>
ph88_: it calls .last and then the [] method
<jhass>
on the result
charliesome has joined #ruby
<jhass>
.last without an argument returns the last element (probably a String)
<ph88_>
this is what i meant by "ruby is ambiguous"
<ph88_>
can not read code without executing it ?!
<jhass>
mordof: (1..4).to_a or [*1..4] (prefer the first)
estaban has quit [Ping timeout: 264 seconds]
<mordof>
ooh right - typecasting
<mordof>
what's the [*1..4] about?
<jhass>
it's a splat
<s2013>
anyone tried codekata
charliesome_ has quit [Ping timeout: 265 seconds]
* mordof
googles what a splat is
_axx has left #ruby [#ruby]
<DouweM>
ph88_: how is that ambiguous?
<ph88_>
how is it not ? :|
<jhass>
foo(*obj) calls .to_ary on obj and passes the elements of the resulting array as individual arguments to foo
<mordof>
ph88_: ambiguous !== you don't understand it. they are two different things
<jhass>
^
<DouweM>
what mordof said
<benzrf>
mordof: in general, splats are used to inject iterables into places where comma-separated lists are expected
rylev has joined #ruby
<ph88_>
so you guys saying that line of code is just perfectly clear to you what it does ?
<benzrf>
mordof: i.e. in argument lists, in arrays, in unpacking
jcromartie has joined #ruby
<benzrf>
ph88_: perhaps you mean that ruby is dynamically typed?
<DouweM>
ph88_: yes
<jhass>
ph88_: pretty much. if you know what type data.last returns
Speed has quit [Ping timeout: 264 seconds]
<jhass>
which you usually do if you work with the code
<ankov>
store without having
<DouweM>
ph88_: the issue here isn't Ruby, it's your understanding of it. which is perfectly normal if you're a beginner, but to more experienced users it's quite clear
djbkd has quit [Remote host closed the connection]
<centrx>
kilk_, Line up the .group_by and .map under the .select
<benzrf>
jcromartie: hey, im still in HS
<benzrf>
what do i put for schooling
redondos has quit [Excess Flood]
<jhass>
kilk_: hm, that .map should be a .to_a I think
<ph88_>
DouweM: what does that line do ?
s2013 has quit [Ping timeout: 240 seconds]
<benzrf>
also it wont let me put down n/a or 0 for professional programming
perldork has joined #ruby
<kilk_>
i though it would be difficult to do groupping
<jcromartie>
good catch benzrf thanks
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
<kilk_>
jhass., seems work correct
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
<jcromartie>
I just updated the rule
<ph88_>
what's the [] method ??
<benzrf>
how does group_by work again
Xeago has quit [Remote host closed the connection]
x1337807x has joined #ruby
<benzrf>
ph88_: it's the method that gets called when u say object[]
<benzrf>
object[3]
<jhass>
kilk_: you can decompose the arrays in groups in the block argument, for example with three element arrays: groups.each do |a, b, c| (give proper names to a, b, c) or for arbitrary length, I only care about the second: groups.each do |_, want, *_|
<kilk_>
centrx, do you think if line up group and map it will be easier to read?
sdwrage has joined #ruby
paulfm has quit []
<centrx>
kilk_, Yes exactly.
mrmargolis has quit [Ping timeout: 264 seconds]
<ph88_>
oooooooohhhh
<ph88_>
what's the [] operator / method then ?
<jhass>
benzrf: group_by makes a hash where the key is the return value of the block and the value an array of the values for which that key is returned
claymore has joined #ruby
<jhass>
ph88_: that highly depends on the class you call it on
supermarin has quit [Client Quit]
blackmesa has quit [Ping timeout: 276 seconds]
perldork has quit [Client Quit]
Astralum has joined #ruby
<centrx>
ph88_, It has syntactic sugar to convert object[element] into object.[](element)
<benzrf>
jhass: ahuman
<benzrf>
*ah
<benzrf>
handy!
<DouweM>
ph88_ have you ever seen array[10] in another language? it's the same thing, except that it's implemented as a method and can also be called as array.[10]. it's just array subscripting
<DouweM>
ph88_: or hash subscripting etc. you can have it do whatever you want, but usually it's to look up an element in a container
<DouweM>
ph88_: by index or by key, in those cases
<ph88_>
DouweM: when it grab the single last element here data.last[opts[:guid_attr].to_sym] how does it make sense to select an element from this single item ??
<ph88_>
maybe an array in an array ??
dann__ has joined #ruby
<jhass>
ph88_: I already told you to find out what data.last returns
<DouweM>
if data.last is a hash, you're lookup the value for key opts[:guid_attr].to_sym
paulfm has joined #ruby
<DouweM>
to_sym returns a symbol, not a number, so it's a hash not an array
<DouweM>
but yeah, it's a nested structure
dann__ is now known as unsmell
<jhass>
it might as well be a custom class that implements []
<ph88_>
Proc objects are blocks of code that have been bound to a set of local variables. <-- what does this mean "bound to a set of local variables" ?
<RubyPanther>
ph88_: It means "ignore that part until later" or, if later, it means they are "closures"
<RubyPanther>
That is an aspect of blocks that good code rarely makes use of
crystal77 has joined #ruby
<jhass>
mordof: a = *1 #=> [1], so *1 on the right hand side creates an array, which is then decomposed. since it only has one element, b is nil
pessimis_ has joined #ruby
<jhass>
and *c is empty array (since there's nothing left to consume)
claymore has quit [Ping timeout: 265 seconds]
<ph88_>
RubyPanther: until later ? in my understanding a method is always *ignored* until it's called ?
<mordof>
jhass: ah - gets discarded after the action takes place, that makes sense.
<unsmell>
does JSON in ruby 1.9.3 have any method for turning a Hash into a json-syntax string?
<RubyPanther>
ph88_: later as in, not today
<mordof>
jhass: is that because it's a Fixnum type? or would that happen with any type that actually contained data?
<unsmell>
there's #parse that turns json strings into Hashes, but I can't find a method to do the opposite
<jhass>
mordof: iirc it's for any type
<Rylee>
yes
<mordof>
ok
<baweaver>
hash.to_json
senayar_ has quit [Remote host closed the connection]
<RubyPanther>
as in, don't study closures early in Ruby unless you already know what closures are, because we don't use them as such, we just use them to group code and run it repeatedly over a set of values
<ph88_>
RubyPanther: what determine it when it gets executed ?
<Rylee>
[2] pry(main)> {}.to_json
<Rylee>
=> "{}"
<RubyPanther>
ph88_: I'm not saying it gets executed later
<jhass>
mordof: which makes [*i_am_not_sure_if_array_or_object].each work
<RubyPanther>
I'm saying ask about it later
<unsmell>
baweaver & rylee
<RubyPanther>
or, drop everything and spend 2 weeks studying closures
<unsmell>
thanks!
<Rylee>
enjoy!
imkmf has joined #ruby
<Rylee>
of course this requires you to require 'json' first
<mordof>
jhass: right. splats definitely are more useful in areas where the data types could vary, and it's not really a concern what the outcome comes out as provided it's something that the code following it could act on, or not, easily
graud has quit [Quit: graud]
<mordof>
does that make sense? that's what i'm gathering from this anyway
claymore has joined #ruby
<RubyPanther>
>> class Pony; def to_a; [:mane,:tail] end end ; puts *Pony.new
<jhass>
mordof: they are useful for tricks/shortcuts/idioms in that area. Their main usage should stay at passing an array as arguments to a method and for decomposing arrays
yfeldblum has quit [Remote host closed the connection]
<ph88_>
thanks for the help all !!
jcromartie has left #ruby [#ruby]
obscured has quit [Quit: leaving]
pessimis_ has quit [Ping timeout: 276 seconds]
rezzack has joined #ruby
<Rylee>
hmm, what's the nil come from at the end there RubyPanther
<RubyPanther>
Rylee: what nil?
<jhass>
Rylee: puts return value
<Rylee>
ahhhh
<Rylee>
okay
systest has quit [Quit: Leaving]
<mordof>
jhass: i'm not overly familiar with the terminology of "decomposing" something. when you say decomposing an array - is that similar to essentially using an array.pop / array.unshift and supplying each item to whatever is utilizing it?
enebo has joined #ruby
<mordof>
i'm not sure if there's more to this that i should know first. i'm not too far into ruby yet
<jhass>
no, like a, b, *c = array or [array,array,array].each do |a, b, *c|
shashank_rs has quit [Ping timeout: 252 seconds]
JensOfSweden has joined #ruby
<shevy>
mordof in general, in ruby you can use * to put stuff into something, in a method. For instance: def foo(*i) <--- now you can pass as many arguments as you want to foo()
JarJarBinks has joined #ruby
<jhass>
which can get a lot more sophisticated, like a, (b, *c), (d, (e, f)) = [a, [b, ca, cb], [d, [e, f]]]
shashank_rs has joined #ruby
rebelshrug has joined #ruby
m3nTe has quit [Ping timeout: 240 seconds]
snkcld has joined #ruby
<mordof>
an area i have zero familiarity with... this will take some getting used to
<mordof>
i'm following in a general sense, but not enough to really understand it entirely :/ blegh
<mordof>
writing a log handler that returns the input after logging it, lol
sarlalian has quit [Quit: WeeChat 0.4.0]
yfeldblum has joined #ruby
<horrorvacui>
ground breaking stuff :P
<mordof>
hehe
timonv has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
That is the power of pragmatism, of valuing what is easy for the programmer instead of getting ideological and principled about what "should" get returned by things
joaoh82 has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 252 seconds]
<mordof>
:) nice
tvw has joined #ruby
arturo_ has joined #ruby
troyronda has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stantona has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
BWStearns has joined #ruby
sambao21 has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yokel has quit [Quit: Lost terminal]
eka has joined #ruby
pwh_ has joined #ruby
yokel has joined #ruby
joaoh82 has joined #ruby
lw has joined #ruby
<mordof>
ohh i see. I'm using ruby 1.9.3 or something - these docs are 2.1.1
pwh has quit [Ping timeout: 252 seconds]
Squarepy has joined #ruby
<mordof>
Hash creation doesn't need the { } in 2.1.1... that was confusing xD
pel_daniel has quit [Ping timeout: 252 seconds]
perldork has joined #ruby
SCommette has joined #ruby
perldork has quit [Client Quit]
stantona has joined #ruby
blackmesa has joined #ruby
evenix has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<mg^>
Our devs who don't write tests first... never write tests ever
<certainty>
thanks
<tjbiddle>
jhass: Thanks :)
<horrorvacui>
I think BDD is kinda immune to DHH's arguments.
<horrorvacui>
BDD and drive out unit tests from there
razrunelord has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
<shevy>
mg^ well there is more than one way to test, surely they must run some kind of quality assurance at one point?
<sweeper>
I write tests second :P
<sweeper>
i.e. code the mjority of a given set of functionality, then write some tests, then run code coverage tools :3
<mg^>
shevy: yes. It involves hiring a number of offshore human mouse mover-clicker types.
<shevy>
hehehe
Caleb has joined #ruby
<mg^>
testing the correctness of functions, interfaces, etc. is not a usual thing here
Caleb is now known as Guest57897
<mg^>
but we do have some guys working to change that
djbkd has joined #ruby
ascarter has joined #ruby
Guest57897 has quit [Client Quit]
afex has joined #ruby
Kneferilis has quit [Read error: No route to host]
dsimon has joined #ruby
havenwood has quit [Remote host closed the connection]
caleb_io has joined #ruby
the_f0st_ has joined #ruby
mary5030 is now known as mary_synthesizin
<Shackleford>
Here is a simple loop I am working on, where I loop from 0 to 100 by 5, I am trying to put each iteration into an array. But not sure what I am doing wrong, any help? https://gist.github.com/anonymous/ee893b17e5f69ed6ed7f
ndrei has joined #ruby
<horrorvacui>
I think the single biggest reason I test is just to make it easier to refactor without breaking shit
<the_f0st_>
has anyone used event machine websocket? I'm trying to figure out how to refrence the ws to manually send a message
cpruitt has quit [Quit: cpruitt]
<dsimon>
Shackleford, a[b] will retrieve the value from a at index b
<dsimon>
i get the feeling that you think it pushes b onto the end of a, but it doesn't
<horrorvacui>
array << '20' << '21' is probably slower because of what its doing. It is probably faster still to use << if you break that up on multiple lines
<dsimon>
why would that be faster?
jamto11_ has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Shackleford has quit [Quit: Shackleford]
<shevy>
<< is faster for one elements
mr_snowf1ake has joined #ruby
<horrorvacui>
one is a method call nested in a method call vs just a method call
jxf has joined #ruby
janssen has quit [Client Quit]
Shackleford has joined #ruby
janssen has joined #ruby
<dsimon>
horrorvacui, oh, for the temporary allocation of <<'s return value?
djbkd has joined #ruby
Es0teric has joined #ruby
<horrorvacui>
yeah I'm just guessing though
crystal77 has joined #ruby
<jhass>
no, array << '20' << '21' is array.<<('20').<<('21')
janssen has quit [Client Quit]
<horrorvacui>
let me benchmark it just so I don't look like a fool if I'm wrong :P
janssen has joined #ruby
<horrorvacui>
still slower then
crzrcn has joined #ruby
<jhass>
why would array.<<('20').<<('21') with << returning self, be slower than array.<<('20'); array.<<('21'); ?
djbkd has quit [Remote host closed the connection]
<horrorvacui>
no no
<horrorvacui>
not versus each other I'm just saying vs the push
<dsimon>
ooooh
janssen has quit [Client Quit]
<dsimon>
by "that" you meant "push"
jason___ has quit [Remote host closed the connection]
janssen has joined #ruby
Doppp has joined #ruby
jason___ has joined #ruby
janssen has quit [Client Quit]
jamto11_ has quit [Ping timeout: 265 seconds]
andrewjanssen has joined #ruby
terrellt has joined #ruby
djbkd has joined #ruby
dik_dak has quit [Ping timeout: 264 seconds]
yalue has quit [Quit: Leaving]
yfeldblum has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.3]
shashank_rs has joined #ruby
shashank_rs has quit [Client Quit]
relix has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
jason___ has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
benzrf|offline is now known as benzrf
etqqkoiflwhb has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
einarj has joined #ruby
unsmell has quit [Quit: Page closed]
jason___ has joined #ruby
benzrf is now known as benzrf|offline
andrewlio has quit [Quit: Leaving.]
etqqkoiflwhb has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
pika_pika has joined #ruby
terrellt has quit [Remote host closed the connection]
ikaros has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
the_f0ster has joined #ruby
<the_f0ster>
anyone familiar with em-websocket ?
wjlafrance has quit [Quit: This computer has gone to sleep]
<havenwood>
the_f0ster: i've looked at it but not used it
<the_f0ster>
havenwood: hmm. so they have it setup like |ws| { ws.onmessage { } }
rokob has joined #ruby
<jhass>
the_f0ster: just ask your question, don't try to find the right person for it ;)
terrellt has joined #ruby
<havenwood>
the_f0ster: as a rule of thumb, if ilya touches it it's gold
dik_dak has joined #ruby
dapz has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<the_f0ster>
i am runnign a w while loop inside of the ws.onmessage, to send a message back like ws.send, if i meet a condition, like polling something to see if it changes from HW
dapz has quit [Client Quit]
<the_f0ster>
i have a print statement in teh whileloop, looks like it should be sending, but, my client never gets the message
michaeldeol has joined #ruby
<the_f0ster>
just curiuous if there is something fundamentally flawed with having a big wait inside of my onmessage callback like that
Doppp has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
cgcardona_ has joined #ruby
omosoj has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
pwh_ has quit []
rokob has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
edwardly has quit [Remote host closed the connection]
<cgcardona_>
i've called the twitter webservice and it returns me a Twitter object. How do I loop over that object and see the value of each on of it's properties?
dapz has joined #ruby
bamyojo14335 has joined #ruby
<jhass>
cgcardona_: look at the docs and which methods it implements
<jhass>
search for (something like) each
x77686d has quit [Quit: x77686d]
<cgcardona_>
yea it says that some of the properties may come back null. I was hoping there was a way to just see which properties were on the object without having to read through all the docs (hopefully that didn't sound too lazy). thanks
pu22l3r_ has joined #ruby
<jhass>
you don't need to read through all the docs
<cgcardona_>
I don't want to have to type out each property so that I can see it dumped to my console.
<jhass>
just the one class you're interested in
andrewlio has joined #ruby
<jhass>
(and it's included modules / parent)
sdouglas has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
sdouglas has joined #ruby
x77686d has joined #ruby
pel_daniel has joined #ruby
<cgcardona_>
i'm sure there is a way to check at runtime what properties are present on an object and what their values are.
<Shackleford>
I am iterating through 1..100, and want to replace an integer with a string (a la fizz buzz) what is the best method for this, or most commonly used method?
blueOxigen has joined #ruby
fannye has quit [Remote host closed the connection]
<jhass>
sure, I can think about a dozen implementations for such "properties", so of course nothing that works for all of them
<jhass>
-> rtfm
djbkd has quit [Remote host closed the connection]
MZAWeb has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
<jhass>
Shackleford: define "replace"
omosoj has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 276 seconds]
<Shackleford>
the integer 3 should be “hello”
<jhass>
Shackleford: fizzbuzz is the sample for an obscure ruby construct called flipflop
<cgcardona_>
the be fair I'm asking where in the manual to read. It's not like I'm asking you to write my code. I'm asking what is the API for seeing which properties exist on an object and what their values are. Thanks for the help. I'll check google now.
reset has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
<Shackleford>
interesting
mr_snowf1ake has quit [Quit: Leaving]
dik_dak has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
<jhass>
cgcardona_: it's hard to help if all you get is "Twitter object" and "properties" which both aren't well defined terms in the ruby world
djbkd has joined #ruby
kitak has joined #ruby
<jhass>
Shackleford: you're iterating over range is all I know so far. No idea where you would replace something
anaeem1_ has joined #ruby
evenix has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<Shackleford>
oh sorry, I have an empty array that I am pushing values into
danshultz has quit [Remote host closed the connection]
<Shackleford>
I am only pushing values % 3 == 0
<jhass>
so array << i == 3 ? "hello" : i ?
danijoo has joined #ruby
testcore has joined #ruby
danshultz has joined #ruby
<Shackleford>
ahh
<cgcardona_>
Ok i'm getting this returned https://dev.twitter.com/docs/platform-objects/tweets. When I `puts tweet` it only gives me `#<Twitter::Tweet:0x007fdbcc9a46d8>`. I just want to know without typing out each property that I see on that page is there a way to loop over what it returns and see which of the properties/attributes (whats the ruby word) are there and what their values are.
<Shackleford>
ok
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
foooobear has joined #ruby
<dsimon>
cgcardona_, looks like you are using a Ruby twitter library
baweaver has quit [Read error: Connection reset by peer]
<dsimon>
whereas that twitter page describes their raw JSON HTTP api
treehug88 has joined #ruby
<dsimon>
so what you really want is the documentation for whatever library you're using
<cgcardona_>
yes that is true. perhaps the meaning of the question is getting lost in the example. As a more generic question is it possible to see which properties exist on a ruby object and what their values are. Regardless of if it comes from this gem or not.
reset has quit [Ping timeout: 276 seconds]
<jhass>
that pages says: Attributes inherited from Base#attrs
jacobsmith has joined #ruby
<cgcardona_>
thank you jhass i appreciate you digging into the docs.
<jhass>
which says "Also known as: to_h" and "Returns the value of attribute attrs"
benzrf|offline is now known as benzrf
<jhass>
which pretty much sounds like what you want
<jhass>
and took me < 1 minute to look up in the docs, just with the right amount of information you implied to know
bo_ has joined #ruby
foooobear has quit [Client Quit]
pwh has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
<jhass>
and I don't know how often I should repeat that "properties" is not a defined term in ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
<dsimon>
cgcardona_, also, more generally when you just want to dump something for debugging purposes, the "inspect" method is often helpful
djbkd has quit [Remote host closed the connection]
<dsimon>
and when you want to see all the raw contents of an object, that's "instance_variables"
<cgcardona_>
jhass: what is the term? attributes?
<jhass>
attributes is still vague
<cgcardona_>
dsimon: thank you. I'm grateful.
<dsimon>
i think the official term is "instance variables"
<cgcardona_>
so what is the *exact* term in your opinion?
x1337807x has joined #ruby
jason___ has quit [Remote host closed the connection]
<cgcardona_>
dsimon: got it.
Bira has quit [Remote host closed the connection]
<jhass>
instance variables would a concrete thing. a hash would be a concrete thing. all attr_readers would be a concrete thing
hfp is now known as hfp`offline
<jhass>
and already 3 implementations for what you call "properties" or "attributes"
<the_f0ster>
havenwood, jhass, so i figured out that my while loop doesnt run like i think it would inside of ws.onmessage { while()}
jason___ has joined #ruby
Nogbit has quit [Ping timeout: 265 seconds]
bamyojo14335 has quit [Quit: bamyojo14335]
doodlehaus has quit [Remote host closed the connection]
hobodave has joined #ruby
Hanmac1 has joined #ruby
dik_dak has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Remote host closed the connection]
jason___ has quit [Remote host closed the connection]
jason___ has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
pox1278 has joined #ruby
pox1278 has left #ruby [#ruby]
<jhass>
cgcardona_: for example in your situation, attrs is an attr_reader for the instance variable @attrs which (I guess) points to a hash that contains your properties
<cgcardona_>
thank you jhass I appreciate your help.
Nogbit has joined #ruby
the_f0ster has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
the_f0st_ has joined #ruby
aspiers has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
kilk_ has quit [Quit: Leaving]
adlerdias has quit [Remote host closed the connection]
dapz has joined #ruby
djbkd has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
bamyojo14335 has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit []
<mordof>
finally caught up.. lol
cba has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
Xeago has joined #ruby
maletor has joined #ruby
dima__ has quit [Remote host closed the connection]
stantona has joined #ruby
<dsimon>
hm
<dsimon>
i think i would have a hard time finding the feed for the RSS
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
dcunit3d has quit [Read error: No route to host]
dima__ has joined #ruby
jlast has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
jlast has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SubSignal has quit [Remote host closed the connection]
ericmathison has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
bamyojo14335 has quit [Quit: bamyojo14335]
joaoh82 has quit []
jamto11_ has quit [Ping timeout: 252 seconds]
popl has quit [Ping timeout: 252 seconds]
stantona has joined #ruby
dima__ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 240 seconds]
mary_synthesizin has quit [Remote host closed the connection]
dsimon has left #ruby ["Leaving"]
Aaaal has joined #ruby
jkline has quit [Quit: jkline]
yfeldblu_ has joined #ruby
dima__ has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
MillyBays has joined #ruby
Milly_Bays has quit [Ping timeout: 264 seconds]
blueOxigen has quit [Ping timeout: 252 seconds]
rebelshrug has joined #ruby
enebo has quit [Quit: enebo]
jkline has joined #ruby
dima__ has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 255 seconds]
senayar has quit [Remote host closed the connection]
Doppp has joined #ruby
MillyBays has quit [Read error: Connection reset by peer]
atmosx has quit [Remote host closed the connection]
dima__ has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
dima__ has quit [Remote host closed the connection]
atmosx has joined #ruby
danman_ has joined #ruby
al3xnull has quit [Quit: leaving]
blandflakes has quit [Quit: Page closed]
mrmargolis has joined #ruby
stantona has quit [Remote host closed the connection]
stantona has joined #ruby
lw has joined #ruby
claymore has quit [Quit: Leaving]
stantona_ has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
<shevy>
test
aspiers has joined #ruby
<atmosx>
test test
<havenwood>
test test test
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
havenwood: ever deployed a worker in rails/web apps?
miah has quit [Ping timeout: 255 seconds]
St_Marx has quit [Quit: Ex-Chat]
stantona_ has quit [Remote host closed the connection]
stantona_ has joined #ruby
<havenwood>
atmosx: whatcha doing?
<shevy>
havenwood: ever walked naked through the streets?
<havenwood>
shevy: whatcha doing?
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy>
nothing interesting :( I am trying to update some old thing I once wrote for work... it is so insanely boring... and I can't fully reproduce the old environment at home either, so I feel like blindly poking at different parts to see if it is all working (or if it all *could* work still)
miah has joined #ruby
stantona has quit [Ping timeout: 276 seconds]
<shevy>
oh
<shevy>
and updating and extending documentation too
<havenwood>
shevy: then nakedness sounds right
<shevy>
hahaha
dfr|railsconf has quit [Ping timeout: 252 seconds]
andrewjanssen has quit [Quit: Leaving...]
<atmosx>
havenwood: I have an old sinatr aproject of mine that I'm trying to pick up, just watching the code. At some point I need to run a rsync via ssh via openvpn :-p. Now I was about to implement a script via cron to this, but I'm reading about 'workers' and I'm thinking that a worker might be a better approach
senayar has joined #ruby
the_f0st_ has quit [Remote host closed the connection]
nolic has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<atmosx>
havenwood: although, the app rsync's sqlite3 databases locally, to extract data... I'd like to rsync only when they change and I haven't figure out a way to get this going. Maybe an API and an API call via guard on the client.
<havenwood>
atmosx: sidekiq and delayed_job are popular
<atmosx>
but this means that will have to run ruby on teh client too (clients are RPis hehe)
<havenwood>
atmosx: aha
<havenwood>
nice
<atmosx>
sidekiq, oh that's what sidekiq does
<atmosx>
after all
<atmosx>
nice
stantona_ has quit [Ping timeout: 252 seconds]
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby
jonr22 has joined #ruby
djbkd has joined #ruby
Hanmac1 has quit [Remote host closed the connection]
jheg has joined #ruby
<jheg>
o/
<havenwood>
\o
<shevy>
_o_
<shevy>
STOP!
* havenwood
brakes.
<shevy>
THOU SHALT NOT PASS!
<shevy>
until you have answered meee the questions three
<atmosx>
havenwood: HardWorker.perform_async('bob', 5) <-- this one calls 'bob' every 5 seconds or something?
<jheg>
love this room already
WillAmes has quit [Remote host closed the connection]
<shevy>
What is your favourite colour?
<atmosx>
shevy: I don't have one
WillAmes has joined #ruby
<shevy>
that's not in the script!
<atmosx>
okay
<atmosx>
what's in the script, what do I have to say?
<shevy>
atmosx did you see the holy grail btw?
<atmosx>
pink?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<atmosx>
shevy: what's that
<wmoxam>
no blue!
<havenwood>
european swallow?
<shevy>
well lancelot is the first to pass, he answers all questions
<atmosx>
reminds me of Indiana Jones and the da vinci code
jottr has joined #ruby
<atmosx>
havenwood: hey I'm european!
<atmosx>
in the large sense
<shevy>
the next one, I forgot who, copies all answers, but his favourite colour is a different one from lancelot, so he is get tossed to the side
<shevy>
*gets tossed
<havenwood>
shevy: splat!
<shevy>
atmosx yeah, indiana jones and the last crusade was cool too, sean connery totally fit to that role of an old and wise man
shock_one has joined #ruby
<atmosx>
oh it was sean connery?
<jheg>
pinchers a pal was my fave
<atmosx>
who was waiting there for 500 years or something?
<atmosx>
so how can a sofware as sidekiq offer a 'professional version' of a gem?!
stantona has joined #ruby
<atmosx>
sidekiq pro
<atmosx>
blah
<atmosx>
let's start with the free version
JonathanDavis has joined #ruby
<atmosx>
shevy: I'll watch later :-P I'm too bored to even point the mouse there
<shevy>
hehe
* atmosx
uses vim binding for browsing with CHrome
<shevy>
ack
crzrcn has quit [Quit: Leaving.]
mr_rogerz has quit [Remote host closed the connection]
<benzrf>
chrome?
<benzrf>
what, do u hate freedom or something?
<benzrf>
MOZILLA 5EVER
niftylettuce_ has joined #ruby
akonny has joined #ruby
<jheg>
I'm embarking on a ruby course in a few months - during the course i'll be developing a personal project. Is it possible to write a script in ruby that that takes an external page url in a form element, grabs that pages title and favicon, store them in a database for use on a webpage?
<atmosx>
havenwood: Add a worker in app/workers to process messages asynchronously: <-- what exactly are asynchronous messages?
jlast has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
SegFaultAX has quit [Excess Flood]
<jhass>
jheg: sure. mechanize might make it a bit easier but plain open-uri + nokogiri should make it easy already
<atmosx>
jheg: even basic can do that, provided you have the libraries.
crzrcn has joined #ruby
Shackleford has quit [Quit: Shackleford]
JonathanDavis has left #ruby [#ruby]
<atmosx>
jhass: I think we net::http he can do it also, if he puts some effort
omosoj has joined #ruby
<atmosx>
Without gems
havenwood has quit []
SegFaultAX has joined #ruby
<jhass>
open-uri is stdlib too
dapz has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
dcunit3d has joined #ruby
<jheg>
thanks chaps most of what you said is over my head tbh but thanks for the starting points
jlast has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
mansi has quit [Remote host closed the connection]
troyronda has joined #ruby
Morkel has quit [Quit: Morkel]
OliverJAsh has joined #ruby
mansi has joined #ruby
s3ri0us has joined #ruby
crzrcn has quit [Ping timeout: 276 seconds]
jxf has quit [Ping timeout: 265 seconds]
<shevy>
jheg write write write write
<shevy>
then write more
<shevy>
and then!
<shevy>
write more
<mikecmpbll>
and then
<mikecmpbll>
take hard drugs.
<jheg>
any go to tutorials for introductory ruby?
cescalante is now known as ce_afk
Es0teric has quit [Remote host closed the connection]
crzrcn has joined #ruby
<mikecmpbll>
eh. how do you learn best?
<jheg>
well I'm really sure how efficient my learning is
<atmosx>
How much ram do you need for redis to run? I've read somewhere 4 GB... is that so?
dfr|railsconf has joined #ruby
<mikecmpbll>
atmosx: depends how much data you're storing :/
<atmosx>
nope 1 Million small Keys -> String Value pairs use ~ 100MB of memory.
hobodave has quit [Quit: Computer has gone to sleep.]
<atmosx>
mikecmpbll: hah for sure not 1 mil of instances
<jheg>
for example I've tight myself html css and the very basic level principles of programming from places like treehouse/codeacademy and plus me and some mates own and run a web design forum
mansi has quit [Ping timeout: 264 seconds]
<jheg>
but its difficult as i have kids and a full time job so just in the evenings really
<shevy>
hmm
<jheg>
hence doing a 3 month course in Jan
<mikecmpbll>
just write code.
<shevy>
lol mikecmpbll
<shevy>
mikecmpbll he said he has no time!!!
<shevy>
jheg idea:
<mikecmpbll>
i get bored of people asking how to learn
mikepack has joined #ruby
<mikecmpbll>
not being confrontational
<shevy>
your kids can learn ruby faster than you can
<jheg>
nah I have time to write code
<mikecmpbll>
just .. why do you want to learn ruby? probably to make something. so just make it
<mikecmpbll>
and learn as you go.
klaut has quit [Remote host closed the connection]
<shevy>
he only wants to learn rails :<
<jheg>
its not the unwillingness to learn its learning in the most efficient manner I'm after
<benzrf>
taking 'courses' to learn programming is dumb
<shevy>
the most efficient way to learn ruby
tvw has quit [Ping timeout: 255 seconds]
<shevy>
is by writing ruby scripts on your own! go do: vim test.rb
<jheg>
why is it dumb?
<benzrf>
i see these fancy services on the internet that say 'ONLY 500000 DOLLARS, WE WILL TRAIN UR ENTIRE STAFF IN RUBY AT OUR INTERACTIVE SUMMER CAMP'
<shevy>
jheg assignment for today: write a class that shows you today's month
deric_skibotn has quit [Ping timeout: 265 seconds]
<benzrf>
wweh
<jheg>
cool will check it out shevy
<benzrf>
jheg: all the resources you could ever need are on the internet
dblessing has quit [Quit: dblessing]
<shevy>
but it must be a class jheg
<benzrf>
and all the helpful people you could ever need are right here and on stackoverflow
<benzrf>
:-)
<benzrf>
shevy: shut up
<jheg>
cool shevy
<atmosx>
real men don't do mistakes, hence they use 'cat > test.rb'
<shevy>
benzrf hey I am trying to give out assignments, it's a simple task
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll>
book recommendations for beginners is my biggest pet hate.
<jheg>
benzrf I always hear that everything you need is at your fingertips online but
<mikecmpbll>
books on advanced topics and patterns are useful
beef-wellington has quit [Ping timeout: 255 seconds]
<mikecmpbll>
books on ruby syntax is a fucking joke. use the interwebs.
<benzrf>
shevy: you dont need a class for that
<shevy>
jheg right but you need to put that info into your brain, actively writing code and trying to make it run is the best way
<benzrf>
youre propagating misuse of OOP principles
<benzrf>
bad shevy
<benzrf>
jheg: reading a book and then writing some code is likemike
<shevy>
a class teaches him how to modularize his code
<benzrf>
trying to learn to fix a car by reading a book about how cars work, THEN touching a car
metamaterial has quit [Quit: Leaving.]
<benzrf>
shevy: there are other ways tho
<baweaver>
baweaver == lemur
<shevy>
and subsequently reuse it in different projects, it will be the best month-showing class ever written eventually
<shevy>
then once that is done we will extend it
dapz has joined #ruby
<shevy>
and LAST STEP
<shevy>
turn it into a gem once it is useful
<baweaver>
There are a few harder books in that list that will be fun.
<baweaver>
Kestrels especially
mercwithamouth has joined #ruby
kirun has quit [Quit: Client exiting]
<benzrf>
shevy: ur doin it rong
djbkd has quit [Remote host closed the connection]
dapz has quit [Client Quit]
mikepack has quit [Ping timeout: 276 seconds]
<shevy>
benzrf you can teach him haskell
<shevy>
jheg if you ever want to learn haskell, benzrf is your man
ndrei has joined #ruby
<benzrf>
mehlah:
<benzrf>
*meh
<benzrf>
#haskell is the most helpful channel ive ever been in
<benzrf>
it's like
<benzrf>
the idea PL irc
<benzrf>
dw #ruby is no. 2 :^)
<benzrf>
*ideal not idea
<shevy>
lol
<shevy>
I am unsure if everyone understood what you tried to say there ^^^
jkline has quit [Quit: jkline]
<shevy>
btw
troyronda has quit [Ping timeout: 252 seconds]
<shevy>
mehlah is valid in singaporean english
depassion has joined #ruby
<shevy>
they wrote in a heavy mixture of chinese-english
<shevy>
wa liao!
<mehlah>
o_O
<mehlah>
:)
<mordof>
shevy: also works in malaysian english
<mordof>
though i'm pretty sure they're near each other
helpD has joined #ruby
<benzrf>
jheg: the correct way to learn to program
mrmargolis has quit [Remote host closed the connection]
* mordof
wonders who got it from who
<benzrf>
1. read something practical on the topic
<benzrf>
2. while reading it, try out the code it has
<shevy>
mordof yeah!
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
estaban has joined #ruby
<benzrf>
2a. when it explains how the code works in it, try dicking around with it to see if you can figure out how to change it
<mordof>
shevy: my fiance says a lot of singaporeans are from malaysia/china area and that's where it originated from in singapore
sparrovv has joined #ruby
sailias1 has quit [Quit: Leaving.]
<benzrf>
3. all the while, keep an irc window open so u can ask questions
<mordof>
shevy: (she's chinese malaysian)
bricker has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
danman_ has quit [Quit: danman_]
<jheg>
nice one benzrf I'm on it!
<benzrf>
:^)
<benzrf>
jheg: one tip
bricker has joined #ruby
<benzrf>
jheg: they did a study a while back
<benzrf>
and the upshot is...
Slavox is now known as Slavox|AFK
<jheg>
nope
northfurr has joined #ruby
<benzrf>
those who are most successful at programming
hfp is now known as hfp`offline
<jheg>
I'm 37 long time since I was at school
crystal77 has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
<benzrf>
are the ones who tend to form consistent mental models about things
<jheg>
but I think I think the right way
<benzrf>
instead of remembering individual consequent cases
lmickh has quit [Remote host closed the connection]
<benzrf>
i.e. instead of thinking in terms of use cases, think in terms of why the use cases work
<baweaver>
Which is probably why aspies glide through programming.
<mordof>
benzrf: ah, nice :) that's how i handle things. never understood why a person would only try to program on conditional logic like that
<benzrf>
mordof: :)
<mordof>
if you understand how it works, you can answer "would it work in this case?" on your own, heh
<benzrf>
yea
<benzrf>
i find that its a pretty common phenomenon for beginners to see the 'foo' in 'foo = bar' and 'baz(bar)' as two different things
<benzrf>
oops i mean the bar
estaban has quit [Ping timeout: 240 seconds]
<benzrf>
a case of insufficient generalization I:
<mordof>
orly
<benzrf>
actually
<mordof>
benzrf: i had no idea o.o
<benzrf>
its a pretty common phenomenon in general to try to think only within the context of what youre learning
<mordof>
benzrf: i'll need to watch out for that when i'm teaching people
<benzrf>
when you start out
<benzrf>
instead of treating it as a subset of everything
<benzrf>
i.e. newbs failing to exercise common sense in programming
<mordof>
heh, yeah..
<benzrf>
more specifically
<benzrf>
for example, ive been teaching my brother some codes
<benzrf>
and the number of times ive had to say 'no, how would you put it into steps IGNORE PROGRAMMING JUST THINK NORMALLY' is annoying
<benzrf>
that seems like a common pattern
cpruitt has quit [Quit: cpruitt]
<benzrf>
ive observed this effect in myself, even
<mordof>
:/ hmm
<benzrf>
ive been taking drivers ed
sdouglas has joined #ruby
<benzrf>
first day, i was told to look behind mehlah
<benzrf>
*me
<mordof>
lol
<benzrf>
my instinct was obv. to look over right shoulder for better view
rbenv has quit [Read error: Connection reset by peer]
* mordof
stares behind mehlah
dapz has joined #ruby
<benzrf>
but id previously been told to look over left shoulder for other reasons
<mehlah>
^^
<benzrf>
and my brain shut down and i looked over left
<mordof>
hm
<benzrf>
because i was trying to think within the context of 'this is how driving works', not 'this is how driving works AND ITS A SUBSET OF HOW REALITY WORKS'
TheMoonMaster has quit [Quit: Later!]
<mordof>
lol
<mordof>
yeah i suppose that makes sense
<shevy>
omg
<shevy>
if benzrf is ever driving a car, remind me to run away
jobewan has quit [Quit: Leaving]
<baweaver>
you won't run fast enough
<mordof>
hahaha
TheMoonMaster has joined #ruby
<mikecmpbll>
i don't constrain myself to reality
<mordof>
benzrf: left shoulder = left blind spot. everything else = right shoulder
<mordof>
usually
<mikecmpbll>
benzrf: not in uk
<mikecmpbll>
;)
<mordof>
oh right that
<mikecmpbll>
mordof*
* mordof
is canadian
<baweaver>
5 points per hit, double points for bikes
<mordof>
maaan if i have to drive over seas it's gonna mess me up somethin awful
<shevy>
damn bear hugger
<baweaver>
halo combos are applicable.
<benzrf>
mordof: you hoser
<mordof>
shevy: o.o we stay away from those...
<mordof>
lol what
<mikecmpbll>
i drove in france once and went the wrong way around a roundabout
<benzrf>
in ruby we count on things to have the methods we wwant
<benzrf>
*want
<mikecmpbll>
IF IT QUACKS
<apeiros>
mus1cb0x: a good way is not to
<benzrf>
if they dont, it's the caller's fault
<benzrf>
just assume it's fine
<mordof>
rofl what
<shevy>
mus1cb0x begin/rescue/end is the way, if you need to raise an exception, you can use raise
<mordof>
just assume it's fine?
weirdpercent has joined #ruby
<mus1cb0x>
people build commercial/enterprise software based on assuming a var's value is of the expected type?
wjlafrance has joined #ruby
<mordof>
i'm so confused right now
<jheg>
ha - mikecmpbll: that and putting my hand in the door to try and change gear
<apeiros>
mordof: yeah. works surprisingly well.
<apeiros>
mus1cb0x: also: tests
<mus1cb0x>
until it doesn't?
<jheg>
and indicating left and wondering why the wipers have started
<mikecmpbll>
:D
<benzrf>
mus1cb0x: it never doesnt
<benzrf>
mus1cb0x: what's a case where it wouldnt?
<shevy>
mus1cb0x no but you can query stuff for its type. i = i.join(', ') if object.is_a? Array
<shevy>
erm
<benzrf>
shevy: no
<apeiros>
mus1cb0x: your test will raise an exception, just like not testing
<shevy>
yeah
<apeiros>
or rather, your assertion
<apeiros>
result is the same
<benzrf>
mus1cb0x: you should only ever have to type check if ur method takes more than one typ
<mus1cb0x>
okie
<benzrf>
e
<benzrf>
and those types dont respond to the same methods
<jhass>
mus1cb0x: if you have a sane and small method, the caller passing in the wrong object blows up surprisingly fast
<mikecmpbll>
exactly what benzrf said.
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<benzrf>
mus1cb0x: like if it takes either a string or an array, and you're treating it as a string, then you need to check if its an array so that you can join it first
<benzrf>
mus1cb0x: otherwise, call the methods you want to, and assume the caller will give you something with those methods
eynj has left #ruby [#ruby]
<benzrf>
mus1cb0x: and then when you call it, do that :)
Eiam has joined #ruby
sambao21 has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
<benzrf>
mus1cb0x: if your method only uses the each method, there is no need to check if its an array
<benzrf>
and if you do that, youre limiting its usage!
<mus1cb0x>
ok, thank you
<benzrf>
what if you later want to pass in an enumerator?
<mus1cb0x>
:)
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aaaal has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
<shevy>
benzrf what if you later want to pass in any object?
Aaaal has joined #ruby
<benzrf>
shevy: then ur doin it rong
sdwrage has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Remote host closed the connection]
<mus1cb0x>
are there any recent graphs/surveys/web sites discussing the most popular web/api app frameworks to use with ruby?
nomenkun has joined #ruby
<mus1cb0x>
i know rails is the most well known, but i wouldn't want to assume it's still the dominant one, and i'd like to check out the next several leading contenders
<banister>
mus1cb0x easy answer, rails and sinatra
<jhass>
mus1cb0x: don't use the most popular tool, use the best fitting one for your specific usecase
<mus1cb0x>
ok that's what i thought
<mus1cb0x>
i didn't say i would pick based on popularity jhass
dapz has joined #ruby
<mus1cb0x>
that is 1 factor i consider
<banister>
mus1cb0x SOA systems typically use sinatra. At least at work we use sinatra heavily
<mordof>
=== "Used to test equality within a when clause of a case statement" <-- i don't really understand this. I'm used to === being a non-type casting compare, but does ruby do that by default with == ? so when would === be utilized?
<atmosx>
banister: what are SOA systems?
<banister>
mordof .equal? is the ruby version of === in js
<benzrf>
mordof: it's a sort of 'matching' operator
<benzrf>
banister: ur wrong
<benzrf>
mordof: in ruby, .equal? is object identity
<benzrf>
as in, is it the same exact object
<benzrf>
so
<benzrf>
a = b
<benzrf>
a.equal? b
<benzrf>
mordof: === is used for matching things
near77 has joined #ruby
<banister>
benzrf isn't that what i just said?
cpruitt has quit [Quit: cpruitt]
<benzrf>
banister: im not sure that's what === does in js
dapz has quit [Client Quit]
<mordof>
=== isn't the same, no
<mordof>
in js
akonny has quit [Quit: akonny]
<mordof>
that just means that javascript can't typecast to check if it matches
<near77>
hi
<near77>
does anyone know
<near77>
if there is some kind of gem or something in ruby to have the terminal divided for different ouputs?
<benzrf>
mordof: have you seen ruby's case statemtn?
<benzrf>
*statement
<near77>
like im doing puts and it shows in the first 60% of the screen, but when a new object is created it appears in the right 40%
<benzrf>
basically, it works like:
<benzrf>
case foo
<benzrf>
when this
<benzrf>
whatever
depassion has left #ruby ["Leaving..."]
<benzrf>
when that
<benzrf>
something else
<benzrf>
end
<benzrf>
mordof: ok
<benzrf>
mordof: it doesnt have fallthru btw so you don't need to break =)
northfurr has quit [Quit: northfurr]
<benzrf>
mordof: followin
<benzrf>
?
<mus1cb0x>
banister: do many use sinatra for web apps? or more for api-driven services?
<mordof>
benzrf: hold on, fiancee held on to my attention :/ lol
<benzrf>
mordof: kk
nomenkun has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
razrunelord has joined #ruby
<mordof>
benzrf: right - i saw ruby's case. and that's unfortunate that it doesn't have fallthrough - is there a different way to write that?
<banister>
mus1cb0x if you're using a js MVC framework at the front then sinatra is often used to spit out the json
<mordof>
benzrf: like when this, that ?
funktor has joined #ruby
<mus1cb0x>
nah, no js
<benzrf>
mordof: ignore commas in whens for now
jkline has joined #ruby
<mordof>
benzrf: lol, alright
<benzrf>
mordof: basically
<benzrf>
ruby DOESN'T use == to check when clauses
<benzrf>
it uses ===
<benzrf>
i.e.
<benzrf>
foo === this
<benzrf>
foo === that
<benzrf>
no wait
<benzrf>
when_condition_1 === switching_thing
<benzrf>
when_condition_2 === switching_thing
<benzrf>
mordof: ok?
<mordof>
alright...
<benzrf>
the reason is so that you can do things like this:
<benzrf>
case 3
<benzrf>
when (1..10)
<benzrf>
something
<benzrf>
when (10..20)
<benzrf>
something else
<benzrf>
end
<benzrf>
with == that would fail
<benzrf>
but === is defined on ranges to check inclusion
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
* mordof
watches the plane overhead
<benzrf>
mordof: :(
<mordof>
benzrf: lol, sorry - that's way above me right now xD
<mordof>
i tried to absorb it
<benzrf>
kk
<mordof>
but i have no idea about that last part
<benzrf>
ah, do u not know about procs?
<mordof>
i get the idea though, and the simpler examples make sense
<mordof>
not at all
<benzrf>
alright
* mordof
started learning the basics of ruby yesterday
danijoo has quit [Read error: Connection reset by peer]
<benzrf>
oh.
<benzrf>
haha
<mordof>
:p
lw has joined #ruby
dima__ has joined #ruby
danijoo has joined #ruby
<mordof>
i have other programming knowledge, but i have no idea what to relate procs to yet
<mordof>
so i don't know the concept/functionality
<benzrf>
kk
<shevy>
benzrf can you show a working example with case + proc
poikon has joined #ruby
<benzrf>
procs are basically function objects
<benzrf>
shevy: ok
<benzrf>
case "foo"
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mxweas has quit [Ping timeout: 252 seconds]
mus1cb0x has left #ruby ["WeeChat 0.4.2"]
<benzrf>
when proc {|s| s.length > 2}
<weirdpercent>
why does my CLI app create subdir json and file json/synqc.json but Aruba/Cucumber gives error: No such file or directory @ rb_sysopen - json/synqc.json
<benzrf>
mordof: in javascript, functions are just vars right?
<benzrf>
mordof: and then u put () after a function value to call it
<mordof>
benzrf: well... i suppose, basically yes
<benzrf>
kk
<benzrf>
in ruby, if i say 'def foo', then saying just 'foo' IS a call
<mordof>
because you can write the function name in somewhere and pass the function as a reference instead of calling it that way
<benzrf>
the () are optional
<benzrf>
foo.bar, likewise, is always calling bar
<benzrf>
not getting a value that you then call with ()\
<benzrf>
* just ()
<benzrf>
mordof: follow?
<mordof>
oh ok - yeah i saw that and wasn't sure because the tutorial wasn't really explaining
* mordof
nods
<benzrf>
kk
Sou|cutter has quit [Ping timeout: 240 seconds]
lazyguru has joined #ruby
<benzrf>
mordof: in ruby, an actual value that you can call is a Proc
<mordof>
so is foo.bar.to_proc getting the function itself?
<benzrf>
no
<mordof>
lol, ok carry on
<benzrf>
that would be calling to_proc on the result of bar
<mordof>
ah
Milly_Bays has joined #ruby
<mordof>
that makes more sense
<benzrf>
() after something is only part of the method call syntax
<benzrf>
if i want to call an object, i use .call
<benzrf>
i.e.
<benzrf>
some_proc.call
<benzrf>
some_proc.call(1, 2, 3)
<benzrf>
the 'proc' method will turn the block i give it into a proc
<benzrf>
mordof: you know how sometimes you use a string as a piece of text, and sometimes as a name
jonr22 has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
jamto11 has quit [Remote host closed the connection]
<benzrf>
when i mean 'as a name', i mean that the actual text in the string doesnt matter
<benzrf>
just the thing youre using it as a name for
<mordof>
benzrf: example - a key for an object (js) ?
jonr22 has joined #ruby
<benzrf>
yea
* mordof
nods
<mordof>
that's a symbol?
<benzrf>
in ruby, there's both strings and symbols
traws has joined #ruby
<benzrf>
you can use a string for both cases, but you'll usually want to use a symbol for things where the actual text doesnt matter
<benzrf>
:this_is_a_symbol
<mordof>
ah, alright
<shevy>
:ur_mom_is_a_symbol
<mordof>
lol
<benzrf>
=[
<shevy>
btw mordof
<shevy>
:"this also works"
<crome>
shevy: you just added a symbol to the symbol cache
<benzrf>
but if youre doing that something is probably wrong
<crome>
you are inefficient ;<
AlSquirrel has joined #ruby
<mordof>
benzrf: hmm.. the :symbol.to_proc example could work fairly well in a hash scenario where the hash is storing blocks, and you're using it like an instruction stack
<shevy>
mordof what is this: :"this also works"
<benzrf>
mordof: you mean procs :p
<benzrf>
mordof: a 'block' means the syntax that goes after a method call
<benzrf>
a 'proc' is an actual value that contains a function
<benzrf>
anyway foo.bar(&:baz) is a fairly common trick for passing a block that calls baz
<benzrf>
yeah :P
<mordof>
was trying to figure out the use case, heh. that helped iron it out
<mordof>
.map &:reverse does't work?
<benzrf>
it does
fijimunkii has quit [Ping timeout: 265 seconds]
ikaros has quit [Quit: Ex-Chat]
<mordof>
benzrf: what made you decide to put the parenthesis in there?
<benzrf>
clarity that it's a regular argument
<benzrf>
for a while i thought that the &foo had to go outside the parens
<benzrf>
like a block
<mordof>
ohh blocks outside the parens... blocks are the function contents... ooohhhhh
sdouglas has joined #ruby
<mordof>
light bulb
<benzrf>
:-)
<benzrf>
proc is just a method that returns an object from the block you gave it
<benzrf>
there's also the lambda method
<benzrf>
procs made by lambda are different in a few ways
<benzrf>
but im not going to talk about that because youre probably already saturated
<mordof>
mostly - currently digesting
gregf has joined #ruby
<mordof>
once i get it sorted out and established as general understanding i'll be good to absorb more
<benzrf>
:-)
<mordof>
i was almost losing it, and then the light bulb moment made a lot of it sink in and make sense
<mordof>
so that's beneficial
<benzrf>
=D
<benzrf>
yeah, putting an & before an argument makes the receiving method treat the thing after the & as though it were the special syntactic block
<mordof>
interesting
<mordof>
and you said it automatically calls .to_proc on it to do so
<mordof>
so if it's something that doesn't transform into a proper block that the method is expecting, you could end up with either errors, or whacky results?
pika_pika has quit [Ping timeout: 276 seconds]
rezzack has quit [Ping timeout: 264 seconds]
<apeiros>
cute… IP address in tv show: 275.283.493.377 (or somesuch)
St_Marx has quit [Remote host closed the connection]
<benzrf>
most of the languages i know that arent on the list i just mentoined were leaves hanging off of python
* mikecmpbll
bows.
funburn has joined #ruby
<RubyPanther>
I wrote Perl for 6 years or something, it is very expressive
<mordof>
mikecmpbll: lol :)
St_Marx has joined #ruby
wallerdev has joined #ruby
<horrorvacui>
I did a lot of the fp languages in college but I don't count them since I thought at the time they weren't used in the industry so they weren't useful
<benzrf>
>:o
<RubyPanther>
If it wasn't for the problems with being able to read my own code later, Perl would be a pleasure to use.
<horrorvacui>
I've never touched perl once...
<horrorvacui>
I don't even think I've looked at it to know what ruby borrowed
<benzrf>
perl is nutso
x1337807x has joined #ruby
<RubyPanther>
With Ruby I can not only read my own code, sometimes I can even read other people's code. And it is still expressive.
pwh has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<alpha123>
RubyPanther: lol. I'm totally using that quote ;)
<horrorvacui>
I also spent a lot of time with Lua due to garry's mod, love2d, and other Lua scripted stuff
<horrorvacui>
I'm not a fan though
sdwrage has quit [Quit: This computer has gone to sleep]
<RubyPanther>
I used to write giant clever Schwartzian transforms for stuff that are simple blocks in Ruby
<mordof>
never really got into Lua
<alpha123>
Lua seems pretty cool, I haven't used it much but it would be one of my favorite languages, I think. Can you do web development in it?
<horrorvacui>
The only thing I like about Lua is you can grok it all in days.
<RubyPanther>
my favorite thing about Lua is mRuby
<mordof>
alpha123: it's not natively supported in the browser if that's what you're asking. there's probably some crazy package to make it possible though :p
arubincloud has quit []
Avahey_ has joined #ruby
<alpha123>
mordof: I mean for backend stuff (I'm primarily a frontend person but I do backend sometimes (I work at a very small company))
<mordof>
can't help but laugh a bit every time i see that gif...
apeiros has quit [Remote host closed the connection]
<benlieb>
I'm writing a quick script in ruby. Can I have top-level ruby code that is "available" in a required file?
apeiros has joined #ruby
<benlieb>
something simple like name = "bob" that will then allow the name variable to be available in the file that required it?
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<benlieb>
or does it have to be a class?
mary_synthesizin has joined #ruby
snath has quit [Ping timeout: 255 seconds]
imyerrow has joined #ruby
i_s has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
i_s has joined #ruby
imyerrow has left #ruby ["Leaving"]
Squarepy has quit [Quit: Leaving]
Gooder has joined #ruby
baweaver has joined #ruby
lw has quit [Quit: s]
aspires has quit []
Deele has quit [Ping timeout: 255 seconds]
<banister>
benlieb just use a global variable
<banister>
benlieb $my_var = 10
troyronda has quit [Remote host closed the connection]
geopet has quit []
<wallerdev>
or make it a constant
dik_dak has quit [Quit: Leaving]
i_s has quit [Ping timeout: 255 seconds]
<benlieb>
banister: I define and access with $ ?
<benlieb>
lemme try
nisstyre has joined #ruby
<horrorvacui>
ewww global variables...
baweaver has quit [Ping timeout: 265 seconds]
<horrorvacui>
:P
<benlieb>
horrorvacui: it's not real software, just a quick script :)
jason___ has quit []
<benlieb>
but it worked like a charm :)
terrellt has joined #ruby
perldork has joined #ruby
perldork has quit [Client Quit]
<reactormonk>
how would you take 20% of an array?
<benlieb>
Besides, if they were NEVER useful, they wouldn't exist. Or something.
<reactormonk>
or a hash, in this case
freerobby has quit [Quit: Leaving.]
<benlieb>
reactormonk: 20% of the items or 20% of the content?
<reactormonk>
benlieb, items
sdwrage has joined #ruby
<wallerdev>
just dividfe the length by 5
<wallerdev>
and take that many haha
<horrorvacui>
benlieb: parasites aren't very useful, they exist :P
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
sdwrage has quit [Client Quit]
<benlieb>
horrorvacui: for one, that sounds like a very anthropocentric stance. for another, parasites are extremely useful, even to humans. for another nother, it doesn't seem useful to compare man-made to evolution-made entities in this way
<benlieb>
see yas
<benlieb>
tnx all
meatherly has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
AlSquire has joined #ruby
luckyruby has joined #ruby
<near77>
hi
<reactormonk>
wallerdev, ok, lemme correct: split it into two parts, one 20% and the rest
<near77>
anyone used ncurses?
<wallerdev>
partition
AlSquirrel has quit [Ping timeout: 240 seconds]
<horrorvacui>
benlieb: what humans can't be parasites too?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
or just get the indices and take each part
terrell_t has joined #ruby
jkline has joined #ruby
x1337807x has joined #ruby
<wallerdev>
ary[0, howeverMany] and ary[howeverMany, -1]
terrellt has quit [Ping timeout: 240 seconds]
<wallerdev>
er
<wallerdev>
..-1
pel_daniel has left #ruby [#ruby]
terrell_t is now known as terrellt
toastynerd has quit [Ping timeout: 265 seconds]
kaspergr_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 276 seconds]
<horrorvacui>
benlieb: also note I didn't say global variables were always bad or parasites were never useful. You maybe assuming the worse of me, I only ment to joke with you not piss you off.
lw has joined #ruby
mikepack has joined #ruby
agarie has joined #ruby
mansi has quit [Remote host closed the connection]
dapz has joined #ruby
AlSquire has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
fantasticsid has joined #ruby
dima__ has quit []
<shevy>
I am sure people with malaria are appreciative of statements that conclude that Plasmodium falciparum is a damn useful thing to have.
jlast has joined #ruby
dapz has quit [Client Quit]
lainchan_mod has quit [Quit: This computer has gone to sleep]
dapz has joined #ruby
lainchan_mod has joined #ruby
lainchan_mod has quit [Client Quit]
ner0x has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 240 seconds]
dapz has quit [Client Quit]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 255 seconds]
pwh has quit []
jlast has quit [Ping timeout: 252 seconds]
allanparsons has joined #ruby
<allanparsons>
quick question... i'm using ruby + rvm from supervisor and i keep getting this error: RVM is not a function, selecting rubies with 'rvm use ...' will not work.