x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<mikeg_>
I have an array of hostnames and I need to insert each into a string and then output them comma separated. I came up with this but it seems kinda dirty. would love feedback:
<sevenseacat>
zorak8: ok you didnt look at the readme of how to run a shoes app
Fire-Dragon-DoL has quit [Quit: Leaving.]
dkphenom has joined #ruby
<zorak8>
mmm
<zorak8>
i dont have a bin/shoes
jimmyy has quit [Read error: Connection reset by peer]
jimmyy_ has joined #ruby
jimmyy_ is now known as jimmyy
tkuchiki has joined #ruby
enriclluelles has joined #ruby
* sevenseacat
gets out crystal ball
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
wjimenez5271 has joined #ruby
awc737 has quit [Max SendQ exceeded]
danijoo has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby
skammer has joined #ruby
enriclluelles has quit [Ping timeout: 246 seconds]
braincra- has quit [Quit: bye bye]
corehook has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
corehook has joined #ruby
wjimenez5271 has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
troyready has joined #ruby
freerobby has quit [Quit: Leaving.]
mattstratton has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
VBlizzard has quit [Ping timeout: 250 seconds]
InhalingPixels has quit [Remote host closed the connection]
absolutezeroff has joined #ruby
bmurt has quit []
nb_bez__ has quit [Quit: Connection closed for inactivity]
Xapht has joined #ruby
mofai has joined #ruby
<Xapht>
Is there a way to sort a group of objects by a condition? I.E. I want to sort a group of user objects, where user.location == california would result in those objects at the top of the stack.
mikeg has joined #ruby
ndrei has joined #ruby
abdulsattar has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
Xapht: sure, #sort takes a block
poguez_ has quit [Quit: Connection closed for inactivity]
mikeg_ has quit [Ping timeout: 240 seconds]
davasaurous has joined #ruby
<eam>
>> rank = %w{ca or wa co fl wi}; %w{wa fl wi ca or}.sort {|a,b| rank.find_index(a) <=> rank.find_index(b) }
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gvenkat_ has joined #ruby
pu22l3r has joined #ruby
timonv_ has joined #ruby
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
gvenkat has quit [Ping timeout: 260 seconds]
Photism has quit [Quit: Leaving]
pu22l3r has joined #ruby
fabrice31 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
awc737_ has joined #ruby
awc737_ has quit [Max SendQ exceeded]
thams has joined #ruby
awc737 has quit [Ping timeout: 258 seconds]
skammer has joined #ruby
InhalingPixels has joined #ruby
St_Marx has joined #ruby
b00stfr3ak has joined #ruby
awc737 has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
skammer has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
_5kg_ has quit [Ping timeout: 272 seconds]
absolutezeroff has quit [Quit: absolutezeroff]
gvenkat has joined #ruby
jobewan has quit [Remote host closed the connection]
milkohol has joined #ruby
sinkensabe has joined #ruby
gvenkat_ has quit [Ping timeout: 260 seconds]
programmerq has joined #ruby
zz_anildigital is now known as anildigital
jobewan has joined #ruby
anildigital is now known as zz_anildigital
tylerkern has quit [Quit: Connection closed for inactivity]
thams has quit [Quit: thams]
milkohol has quit [Client Quit]
milkohol has joined #ruby
tectonic has joined #ruby
patrick99e99 has joined #ruby
Lucky__ has joined #ruby
yfeldblum has joined #ruby
wallerdev has quit [Quit: wallerdev]
deric_skibotn has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
zettam has quit [Read error: Connection reset by peer]
angusigu1ss has joined #ruby
anaeem1__ has joined #ruby
anaeem1_ has quit [Ping timeout: 260 seconds]
mikeg_ has joined #ruby
igaiga has joined #ruby
gvenkat_ has joined #ruby
rkalfane has joined #ruby
gvenkat has quit [Ping timeout: 260 seconds]
mikeg has quit [Ping timeout: 260 seconds]
troyready has quit [Quit: Leaving]
bruno- has joined #ruby
cirn0 has joined #ruby
ghr has joined #ruby
Lewix has quit [Remote host closed the connection]
synergyz has quit [Remote host closed the connection]
mikeg has joined #ruby
_shrine has joined #ruby
x1337807x has joined #ruby
maletor_ has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
kireevco has quit [Quit: Leaving.]
cirn0 has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 272 seconds]
mikeg_ has quit [Ping timeout: 272 seconds]
tobago has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
gvenkat__ has joined #ruby
linojon has quit [Quit: linojon]
pork_clips has joined #ruby
igaiga has quit [Remote host closed the connection]
_cake has quit [Ping timeout: 260 seconds]
Cecen has joined #ruby
speaking1ode has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
_shrine has quit [Ping timeout: 260 seconds]
gvenkat_ has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 245 seconds]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
kireevco has joined #ruby
emmesswhy has joined #ruby
kireevco has quit [Max SendQ exceeded]
duellsy has joined #ruby
gvenkat has joined #ruby
kireevco has joined #ruby
LiohAu has joined #ruby
kireevco has quit [Max SendQ exceeded]
abdulsattar has joined #ruby
duellsy has left #ruby [#ruby]
kireevco has joined #ruby
mr-foobar has quit [Quit: Leaving...]
tlarevo has joined #ruby
kireevco has quit [Client Quit]
b00stfr3ak has quit [Ping timeout: 258 seconds]
Cecen_ has quit [Ping timeout: 258 seconds]
gvenkat__ has quit [Ping timeout: 260 seconds]
lampd1 has joined #ruby
kamilc__ has joined #ruby
Xapht has quit [Ping timeout: 246 seconds]
gvenkat has quit [Ping timeout: 258 seconds]
lampd1 has quit [Ping timeout: 260 seconds]
oo89 has joined #ruby
oo89 has quit [Max SendQ exceeded]
krisquigley has joined #ruby
LiohAu has quit [Read error: Connection reset by peer]
gvenkat has joined #ruby
astav has quit [Quit: astav]
gvenkat_ has joined #ruby
<agent_white>
Evenin' folks.
oo89 has joined #ruby
oo89 has quit [Excess Flood]
_5kg_ has joined #ruby
krisquigley has quit [Ping timeout: 258 seconds]
oo89 has joined #ruby
oo89 has quit [Excess Flood]
gvenkat has quit [Read error: Connection reset by peer]
oo89 has joined #ruby
oo89 has quit [Max SendQ exceeded]
banister has joined #ruby
atmosx has joined #ruby
timonv_ has joined #ruby
zz_anildigital is now known as anildigital
dapz has joined #ruby
mercwithamouth has joined #ruby
greenride has left #ruby [#ruby]
<agent_white>
Is the ruby-lang mailing list really the minitest mailing list? Seems like %90 of the threads on there are about minitest...
<atmosx>
agent_white: there's no thread about mini_test. Just anouncements because Ryan Davis is active on minitest dev (which is the defualt testing suite btw).
gvenkat_ has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<agent_white>
atmosx: Ah yeah, I mean in general it seems like most of the "posts" (what do you call them?) are minitest... not much else.
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
oo_ has joined #ruby
M-Technic has quit [Quit: leaving]
kireevco has joined #ruby
<agent_white>
Just curious though! Props to Ryan for all his updates... just odd that there's noone else doing it.
timonv_ has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
gvenkat_ has joined #ruby
enriclluelles has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
oo89 has joined #ruby
InhalingPixels has joined #ruby
armyriad has joined #ruby
skammer has joined #ruby
yfeldblum has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
gvenkat has joined #ruby
Vile` has quit [Remote host closed the connection]
anildigital is now known as zz_anildigital
oo89 has quit [Remote host closed the connection]
robh71 has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
gvenkat_ has quit [Ping timeout: 246 seconds]
ta has quit [Remote host closed the connection]
skammer has quit [Ping timeout: 260 seconds]
sprihodko has joined #ruby
Vile` has joined #ruby
<pontiki>
birds do it, bees do it, even educated fleas do it
* agent_white
hugs pontiki
<pontiki>
aww
* pontiki
hugs agent_white
<agent_white>
I went away from a month pontiki! I missed you!
<agent_white>
s/from/for/
eyeris has joined #ruby
<eyeris>
Is there anything in rspec that let's me both stub a method (to prevent an outside service call) and also test that the method is called?
<pontiki>
where did you go? someplace fun i hope
sent-hil has quit [Quit: Connection closed for inactivity]
oleo__ has quit [Quit: Verlassend]
ballpointcarrot has quit [Remote host closed the connection]
<pontiki>
eyeris: yes, i can't recall off the top of my head
<agent_white>
pontiki: I wish! I just didn't touch my computer at all... so I guess it could be said it just was a _different_ place :)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
Tomme has quit [Ping timeout: 246 seconds]
<pontiki>
ah, yes, eyeris, it's the allow method in rspec mocks
<pontiki>
oh, well, hopefully you'll go somewhere fun soon!
<agent_white>
Me too! :D
<agent_white>
And I hope you do too... if you aren't already in a fun place... then I hope it's even more fun!
<pontiki>
not so much, sadly
<pontiki>
more and more stress daily
<agent_white>
:(
<agent_white>
Sometimes, I wear funny hats and glasses to make it more fun.
<pontiki>
good plan, that!
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
i tell jokes and puns
<agent_white>
!! :D
<pontiki>
but it never seems to touch the deep ache
<agent_white>
Hmmm... maybe... you need to wear a cape? I know I do. It would be much more fun than hats and glasses.
BlkDynmt has quit [Quit: BlkDynmt]
<agent_white>
+you run faster like having new shoes
<pontiki>
i have a cloak, but no cape
<agent_white>
:o Even better! SUPER-PONTIKI, MASTER OF PUNS!
Rollabunna has joined #ruby
<agent_white>
BEWARE MY HUMOR YE EVIL DOERS!
cougarten has joined #ruby
igaiga has joined #ruby
_5kg_ has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
<pontiki>
paronomasiac, plox
zz_anildigital is now known as anildigital
bruno- has joined #ruby
<pontiki>
the paronomasial muridae
eyeris has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<pontiki>
oui, la souris sourit
jle` has joined #ruby
<pontiki>
mais elle est toujour triste
igaiga has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 245 seconds]
_5kg_ has joined #ruby
shock_one_ has joined #ruby
<agent_white>
I didn't get that... but if I did, a mouse should always smile because they are a mouse!
fold has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 258 seconds]
<sevenseacat>
only word i think i know is 'triste' which is 'sad', no?
angusigu1ss has joined #ruby
<pontiki>
yes
<sevenseacat>
winner\
<agent_white>
:D / D:
<agent_white>
No sad mouses here. We are writing ruby!
<pontiki>
it's the best part of my life, after painting
tagrudev has joined #ruby
<agent_white>
pontiki: Speaking french?
<pontiki>
coding ruby
<pontiki>
i don't know why i'm speaking french
jusmyth has joined #ruby
<sevenseacat>
because why not
<sevenseacat>
!reason
<helpa>
The alignment of the planets caused that.
SouL has quit [Ping timeout: 258 seconds]
<agent_white>
:D
mityaz has quit [Quit: See ya!]
<pontiki>
it seems better for expressing emotions, somehow
ghr has joined #ruby
<pontiki>
which are off topic, sorry
<agent_white>
pontiki: A famous climber (one of the first to summit Everest in the 1920's) George Mallory was once asked... "why do you want to climb Mount Everest?" -- he replied... "Because it's there."
shock_one_ has quit [Ping timeout: 272 seconds]
igaiga has joined #ruby
<agent_white>
:)
fold has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
angusigu1ss has quit [Ping timeout: 258 seconds]
benzrf is now known as benzrf|offline
ghr has quit [Ping timeout: 258 seconds]
kyb3r_ has joined #ruby
Cecen_ has joined #ruby
Cecen has quit [Ping timeout: 248 seconds]
<pontiki>
nous parlons français parce que c'est la?
mattmcclure has quit [Quit: Connection closed for inactivity]
apeiros has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
rkalfane has joined #ruby
apeiros has joined #ruby
RyanV has joined #ruby
shock_one_ has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
Macaveli has joined #ruby
timonv_ has joined #ruby
Macaveli has quit [Client Quit]
igaiga_ has quit [Remote host closed the connection]
mofai has quit [Read error: Connection timed out]
apeiros has quit [Ping timeout: 260 seconds]
igaiga has joined #ruby
<RyanV>
Hey guys, Im looking for some thoughts/opinions. i usually write classes w/ instance methods that lazily set instance vars. I see a lot of other code that sets values on initialize for example. thoughts/pros/cons on either?
igaiga has quit [Remote host closed the connection]
work_op has joined #ruby
<agent_white>
pontiki: Exactly. :)
<agent_white>
I wish I could speak french... it sounds so beautiful when spoken.
Lewix has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
carraroj has joined #ruby
shock_one__ has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
InhalingPixels has joined #ruby
skammer has joined #ruby
krisquigley has joined #ruby
Akagi201 has quit []
mr-foobar has joined #ruby
<Hanmac>
RyanV set the values in initialize to default if needed, but otherwise its not bad to set the vars lazily
timgauthier has joined #ruby
<j4jackj>
._.
timgauthier is now known as timgauthier_isaw
Macaveli has joined #ruby
codecop has joined #ruby
chabier has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 260 seconds]
skammer has quit [Ping timeout: 260 seconds]
devyn has quit [Read error: Connection reset by peer]
devyn has joined #ruby
arup_r has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
nhhagen has joined #ruby
kireevco has quit [Quit: Leaving.]
corehook has joined #ruby
<Hanmac>
hm yeah thats a usecase ... hm but in that sample i dont know if it would be better if the data would be loaded at init, or if the path would be make absolute before setting @config_path ... because the current dir might change between #initialize and #raw_data
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
chabier has quit [Remote host closed the connection]
memph1s has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hiyosi has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
timonv_ has joined #ruby
sparrovv has joined #ruby
enriclluelles has joined #ruby
memph1s has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
rkalfane has joined #ruby
timonv_ has quit [Remote host closed the connection]
baltazore has joined #ruby
ht__th has joined #ruby
<RyanV>
good point Hanmac. i guess its all just about the use case.
<resting>
no..understanding comes later if it works
<wasamasa>
:|
<Hanmac>
sevenseacat: hm no the bot has a timeout ... hm the current code is very time consuming ... i might need to write it better
kedare has joined #ruby
Jake232 has joined #ruby
BLuEGoD has joined #ruby
<joonty>
Hanmac: sloppy
<resting>
Hanmac: ah..you sux!
<joonty>
you should have spent 9 seconds on it, instead of 5
<resting>
it works! omg
x1337807x has quit [Ping timeout: 255 seconds]
lowandslow has joined #ruby
ephemerian has joined #ruby
timonv_ has joined #ruby
<resting>
Hanmac: how long have you been doing ruby man
<Hanmac>
hm a few years ... but most of them not for work
ehlovader has quit [Ping timeout: 245 seconds]
<resting>
awesome. if not for work, then for hobby?
angusigu1ss has joined #ruby
sarkis has quit [Quit: WeeChat 1.0]
W0rmDr1nk has joined #ruby
willgo has joined #ruby
Scotteh_ has joined #ruby
mengu has quit [Remote host closed the connection]
martin___ has joined #ruby
ehlovader has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mpajor has joined #ruby
Scotteh has quit [Ping timeout: 260 seconds]
<agent_white>
That's always a wierd question... I modified CS 1.6 hacks when I was 14 and programmed some python, went to university for ~2 years and wrote C++... but only in the past ~8 months I've written ruby, and I say I've been programming for less than a year.
stef_204 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
<sevenseacat>
i wrote some of the world's worst guestbook, poll and forum software (in perl) when i was 14 - i dont count that as part of my programming career
martin___ has quit [Remote host closed the connection]
Cecen has joined #ruby
<mpajor>
I never say that I program - it only brings more to the table.
amundj has quit [Ping timeout: 258 seconds]
willgo has quit [Remote host closed the connection]
<sevenseacat>
nor do i count the tinkering in qbasic i did when i was 10 :D
<agent_white>
sevenseacat: Yeah mine is even less so... I don't count my university experience as it didn't really teach more than I learned outside of it... and only in the past ~8 months have I really gotten on my computer and programmed everytime I was on it.
martin___ has joined #ruby
tokik has joined #ruby
spacemud has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Cecen_ has quit [Ping timeout: 260 seconds]
<agent_white>
Then I see experienced people having trouble with vim and I wonder how in hell that works when I can't design classes.
<sevenseacat>
i count mine from when i started getting paid to program
* agent_white
moves himself to offtopic
x1337807x has joined #ruby
<agent_white>
sevenseacat: I _would_ from my last job... but that's when I learned ruby... ~8 months ago haha. "Hey you know linux well, we need to setup automation and deployment! So... puppet... is ruby... oh also, we need tests for our website! So... ruby and rspec!"
<resting>
if you're an experienced programmer in say php or java like about 8 years of exp, is it right that you should get a newbie's position for ruby?
timonv_ has quit [Remote host closed the connection]
<agent_white>
agent_white - "Uh... I've never heard of ruby. But you gottit bawss!"
amundj has joined #ruby
krisquigley has joined #ruby
Wolland_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<sevenseacat>
'8 years of experience' gives you zero information about skill
<sevenseacat>
so with that information, yes, yes they should
Wolland has joined #ruby
<agent_white>
resting: Don't quote me, as you've seen what I said, but what do those have to do with ruby? -- "I've driven cars before, so if you need a motorcyclist I'm your man! motors is motors!"
_tpavel has joined #ruby
<agent_white>
Welp! Nvm! ;P
carraroj has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
martin___ is now known as vicplenty
<agent_white>
resting: I think you'd have less of a shot than an actual ruby-noob, since you are both ruby noobs but you would ask for a higher salary.
<resting>
sevenseacat: i see. that sad cause it doesn't give devs the motivation to pick up new skills
<sevenseacat>
sorry, what?
hamakn has quit [Read error: Connection reset by peer]
<sevenseacat>
if you spend 8 years as a shitty copy&paste php programmer you want to come in the door as a senior ruby dev?
<wasamasa>
salary == motivation?
<resting>
agent_white: thats true. are developers better off with doing just what they started off with?
<wasamasa>
I hope not
<agent_white>
Fuck if motivation was for a paycheck I should leave this channel and quit programming ;)
hamakn has joined #ruby
<fella5s>
wasamasa, definedly part of it
* wasamasa
backs out
<agent_white>
wasamasa: I agree :)
hiyosi has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
marr has joined #ruby
Scotteh has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<resting>
sevenseacat: i see your point. i guess that why senior guys gets are stuck with what they do.
<sevenseacat>
what are you talking about
<fella5s>
Well you can program for fun but when you do it for living and are underpaid then you get demotivated quickly
mikeg_ has joined #ruby
<resting>
sevenseacat: as in those who are doing one language for most part of his career will find it difficult to swtich
x1337807x has quit [Ping timeout: 272 seconds]
<sevenseacat>
incorrect
roolo has quit [Quit: Leaving...]
<resting>
why? i doubt most people wouldn't want a pay drop
<sevenseacat>
for about the fifth time, it depends on skill
timonv_ has joined #ruby
<sevenseacat>
'years of expeirence' means jaclk shit
Takle has quit [Remote host closed the connection]
<resting>
the problem is you're doing a switch to something new. so there's no skill to speak of, as you agreed too earlier
x1337807x has joined #ruby
<agent_white>
fella5s: I think if you're underpaid then you're demotivated not by the programs but by your employer.
<sevenseacat>
that is not what i said.
hiyosi has quit [Ping timeout: 245 seconds]
<sevenseacat>
skills are not just in specific languages.
Juzdan has joined #ruby
<agent_white>
fella5s: My first "salaried" job was only at $9/hr., no overtime, and I worked 60 hour weeks for 40hour pay... I could've made more waiting tables for part-time at a restaurant.
<resting>
people wouldn't buy that i suppose.
<agent_white>
I wasn't demotivated by learning :)
SouL has quit [Ping timeout: 272 seconds]
<fella5s>
so you got paid actually like $6/h
startupality has joined #ruby
<agent_white>
Thoug, at the same time, they expected me to learn a new language (being a 'hello world' programmer), and use it to deploy servers and write unit tests. I wasn'
<agent_white>
fella5s: Haha yes... I never thought about it that way.
roolo has joined #ruby
<agent_white>
But, I wasn't demotivated by it (learning and using new shit for work?! fuck yeah!), but the lack of expectations and support killed me.
<agent_white>
Yet I just got a job offer today for an
<agent_white>
_actual_ salary... and doesn't require any of that.
<fella5s>
well, I think that's different since you are actually paid to learn something
* agent_white
goes to offtopic to rant
<agent_white>
fella5s: -ish. You programmers who program for a living are paid to learn something everyday.
Takle has joined #ruby
<fella5s>
Yeah, thank god my new project is on language I'm never worked
<fella5s>
(which is ruby)
<fella5s>
but this shit is easy as hell
mikeg_ has quit [Quit: Leaving...]
<agent_white>
For me, it's not easy, but just beautiful :)
<agent_white>
I fell in love after messing in the REPL.
a has joined #ruby
<agent_white>
It does what I want, and when I don't know how to do what I want, it helps me along the way.
a is now known as Guest52602
<agent_white>
Like the programmer at that old-company "hated ruby"... but I asked him for help... and he'd say out loud "I wonder if..." write some ruby knowing no ruby at all... and it'd work.
<agent_white>
Ruby is like a programmer's pillow it seems.
<resting>
i'm wondering how ruby helped you learn ruby
<agent_white>
Pillows don't tell you how to sleep on them... they let you sleep on them in whatever way works for you.
<agent_white>
resting: Heh? I didn't know ruby prior to that.
<agent_white>
resting: Neither did that programmer.
bruno- has joined #ruby
<resting>
hm..ok..i like ruby. but its gigantic features will take a while to learn
<agent_white>
I think irb/pry helped me learn ruby. That and _why's guide since it made it an adventure :)
<agent_white>
resting: Noone knows any language's full API.
JonnieCache has joined #ruby
<agent_white>
erm,,, stdlib.
<agent_white>
Whatever.
Scotteh has quit [Ping timeout: 260 seconds]
<fella5s>
i wouldn't know how to program without internet
Beoran has quit [Ping timeout: 245 seconds]
<agent_white>
^^
<fella5s>
well i would if i had apidocs in hand
<resting>
agent_white: ya true. but whenever someone comes up with a sweet solution, and you'll go meh…why didn't i know what method..
<agent_white>
Without google, stackexchange, and irc, I would probably be handling your businesse's employee's inability to turn on their computer.
InhalingPixels has joined #ruby
<agent_white>
resting: That's what I learnt early on with ruby... there's just LOTS of different ways to do one thing.
<resting>
totally agree
enriclluelles has quit [Remote host closed the connection]
<resting>
lots of smart people out there too
<agent_white>
Which is sweet! Why fall into the status-quo when so many people have ideas of how to do it!
jhass|off is now known as jhass
bruno- has quit [Ping timeout: 258 seconds]
<agent_white>
resting: Indeed! "current problems are caused by current thinking..." -- ruby seems to not give THE ONLY WAY to do it, but say 'hey, give it a go'
EasyCo has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
<agent_white>
It's fun to see some really simple questions on stackexchange give so many different answers, and not just the same answer in different colors.
InhalingPixels has quit [Ping timeout: 260 seconds]
<resting>
agent_white: ya..i'm wondering if technical question will ask things like write 3 different ways to do ..
Scotteh has joined #ruby
<resting>
will kill lots of brain cells i guess
carraroj has quit [Ping timeout: 240 seconds]
Morkel_ has joined #ruby
emocakes__ has joined #ruby
<agent_white>
resting: I don't think it would... it should ask "how would you do..."
igaiga has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
emocakes has quit [Ping timeout: 246 seconds]
Scotteh_ has joined #ruby
<resting>
haha..if the interviewer wants to troll or really test their creativity..maybe?
<agent_white>
True!
<agent_white>
Or, without an interviewer, how many ways you could solve a single problem?
<agent_white>
That actually would be a good idea... -- but yeah, never heard of an interviewer asking for multiple solutions for a single problem.
Scotteh has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
<agent_white>
So...
<agent_white>
kinda off topic
<agent_white>
But since I couldn't get it out of anyone in #learnprogramming
timgauthier has joined #ruby
<resting>
?? whats that about?
Guest52602 has quit [Ping timeout: 245 seconds]
Beoran has joined #ruby
<agent_white>
How do you guys timebox your work? I'm starting a new job in a week that will be requiring me to work from anywhere to ~10 to ~20 clients atta-time (though doing more design-oriented work)... and I'm trying to avoid "hyperfocusing" on a single client at once before moving onto the next oen.
<agent_white>
s/oen/one/
lkba has quit [Ping timeout: 245 seconds]
<agent_white>
I know it's a general question, but I don't really know who or where to ask...
sevvie has quit [Ping timeout: 272 seconds]
tokik has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
<agent_white>
Each day, do you "work on each client's project for 1hr." ? Or... ?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
a_ has joined #ruby
Advocation has quit [Client Quit]
Scotteh_ has quit [Ping timeout: 272 seconds]
msx has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
<agent_white>
Or... maybe a channel I can go to in order to get opinions on it... I asked #learnprogramming, but didn
flagg0204 has quit [Ping timeout: 258 seconds]
<agent_white>
didn't get anything*... maybe I'm looking in the wrong places.
nhhagen has quit [Remote host closed the connection]
Tomme has quit [Ping timeout: 260 seconds]
flagg0204 has joined #ruby
narph has joined #ruby
<narph>
Is there any documentation about which subset of Bundler-functionality is supported by Rubygems?
mrgrieves has joined #ruby
Scotteh has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
banister has joined #ruby
Rollabunna has joined #ruby
Advocation has joined #ruby
<mrgrieves>
hi, I'm using gitlab's ruby suggested api client and when I query for projects I get an array of what appear to be hashes but have no idea on how to access the hash keys within the array http://pastebin.com/aGtMNnSF . Any suggestions?
baltazore has quit [Remote host closed the connection]
carraroj has joined #ruby
roolo has quit [Quit: Leaving...]
RyanV has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
agent_white: 10-20 clients at once sounds like a lot
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<JonnieCache>
agent_white: personally id have to use a literal alarm clock kinda system to make that work
tvw has joined #ruby
vicplenty has quit []
charliesome has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
enriclluelles has joined #ruby
baltazor_ has joined #ruby
charliesome has quit [Client Quit]
adironduck has quit [Quit: adironduck]
Avahey_ has quit [Quit: Connection closed for inactivity]
angusigu1ss has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
a_ has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
igaiga has quit [Remote host closed the connection]
igaiga has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
SouL has joined #ruby
cmxu has joined #ruby
puppeh has joined #ruby
<puppeh>
does it make sense to check if an element is included in the array before calling `#delete`?
<puppeh>
...in order to determine if you want to call `#delete` or not?
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 272 seconds]
sectionme has joined #ruby
roolo has joined #ruby
Cecen_ has joined #ruby
Takle has joined #ruby
<JonnieCache>
i think it just returns nil if the thing isnt there
<JonnieCache>
try it and find out
emmesswhy has joined #ruby
<certainty>
puppeh: no to find out if it is there you will have to traverse it too
ssut__ has joined #ruby
<certainty>
so it doesn't gain you much imho
<puppeh>
yeah that was my oppinion
<puppeh>
i meant performance wise, both methods iterate over the array
<certainty>
yeah
<puppeh>
and the actual deletion must be very fast anyway
<certainty>
yes
<certainty>
also if you check first and delete afterwards you actually run through the elements twice
compAz has joined #ruby
<certainty>
(upto the element that has to be deleted)
<certainty>
of course this is all under the assumption that arrays are reperesented with a datastructure that requires O(n) to find an element
<certainty>
but it think that's true for ruby's arrays
<JonnieCache>
itd be a sorry state of affairs if it werent
msx has joined #ruby
<certainty>
it could be less
<certainty>
but you would probably pay for it with greater update complexity
<JonnieCache>
ah i see
<JonnieCache>
yes i think theyre just O(n)
Cecen has quit [Ping timeout: 276 seconds]
pagioss is now known as pagios
kevkev has joined #ruby
a_ has joined #ruby
krisquigley has joined #ruby
Juzdan has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
Juzdan has joined #ruby
AlSquire has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
nhhagen has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
hiyosi has joined #ruby
banister has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
warprobot has joined #ruby
mofai has joined #ruby
Wolland has joined #ruby
puppeh has quit [Read error: No route to host]
shredding has joined #ruby
igaiga has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
j4rh3rd has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
mattstratton has joined #ruby
nhhagen__ has joined #ruby
mattstratton has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
mattstratton has joined #ruby
rdark has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
nhhagen__ has quit [Read error: Connection reset by peer]
mattstratton has quit [Max SendQ exceeded]
nhhagen has joined #ruby
nhhagen_ has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
toretore has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
x1337807x has quit [Ping timeout: 245 seconds]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
mattstratton has joined #ruby
gr33n7007h has joined #ruby
warprobot has quit [Remote host closed the connection]
Takle has joined #ruby
toretore has quit [Client Quit]
RyanV has joined #ruby
angusigu1ss has joined #ruby
banister has quit [Read error: Connection reset by peer]
adironduck has joined #ruby
mengu has quit [Remote host closed the connection]
sk87 has joined #ruby
agent_white has quit [Quit: leaving]
nhhagen_ has joined #ruby
Ca11yWally has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
t_p has quit [Quit: Computer has gone to sleep.]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has joined #ruby
Ca11yWally has quit [Remote host closed the connection]
ta has quit [Quit: Leaving...]
dawkirst has joined #ruby
rgcouk has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
wald0 has quit [Read error: No route to host]
wald0 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ta has joined #ruby
Wolland has quit [Remote host closed the connection]
tiguser has quit [Ping timeout: 272 seconds]
banister has joined #ruby
mengu has joined #ruby
<Hanmac>
resting: i found better way: (look at that 1..(n-i+1))
<Hanmac>
>> n = 20; (1..n).flat_map {|i| (1..(n-i+1)).to_a.repeated_combination(i).select {|s| s.inject(:+) == n } }
<canton7>
if current_user.uploaded_image returns nil when current_user.uploaded_image? returns false, then you can write current_user.uploaded_image || default_avatar
roolo has quit [Quit: Leaving...]
suy has quit [Remote host closed the connection]
suy has joined #ruby
<joonty>
Rhainur: (["wtf"] * 1000).join
KC9YDN has joined #ruby
tjr9898 has joined #ruby
<joonty>
1000.times.map { "wtf" }.join
<agent_white>
.ws
<Hanmac>
joonty: i am unsure if it isnt better to join first and then multiply it with a number
<joonty>
Hanmac: I'll be honest, I was being a bit facetious
<joonty>
Hanmac: do you mean performance-wise?
wald0 has joined #ruby
<Hanmac>
joonty: yeah i think it might be performance safer to have one small string and then multiply to a big string than having one array, multiply to a big array and then join it to a big string
<joonty>
you're quite right Hanmac
tjr9898 has quit [Ping timeout: 245 seconds]
lowandslow_ has joined #ruby
<joonty>
quick benchmark showed it to be in the order of 10 times faster
skip_freely has joined #ruby
<joonty>
but Rhainur wanted arrays and joins, for some reason as yet undisclosed
hellangel7 has joined #ruby
zarubin has joined #ruby
Cecen has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
User458764 has joined #ruby
hellangel7 has joined #ruby
gr33n7007h has joined #ruby
lowandslow has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
starlordeisroyal has joined #ruby
parametaortho has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
Cecen_ has quit [Ping timeout: 258 seconds]
starlordeisroyal has quit [Client Quit]
hellangel7 has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
hellangel7 has joined #ruby
maq has joined #ruby
Takle has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 258 seconds]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
koupe has joined #ruby
sparrovv has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
pomson6000 has joined #ruby
roolo has joined #ruby
adironduck has quit [Quit: adironduck]
caliostro has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
dawkirst has joined #ruby
Juzdan has quit [Read error: Connection reset by peer]
<adac>
canton7, for some reasons current_user.uploaded_image || default_avatar does not seem to work, even though current_user.uploaded_image? returns false
dfish has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
<agent_wh1te>
shevy: TEST FAILED. IMPLODING IN 5...4...3...2...
enriclluelles has quit [Remote host closed the connection]
<shevy>
yeah
<shevy>
was wondering if I was still connected
InhalingPixels has quit [Ping timeout: 258 seconds]
<apeiros>
/kick imploded ?
a_ has quit [Ping timeout: 272 seconds]
<shevy>
I bought a new computer perhaps 2 months or so; a lot of my reconnection problems are now gone. There was some hardware issue with the old computer where the ethernet card constantly went down after a while
SouL has quit [Ping timeout: 255 seconds]
hanjianwei has quit [Ping timeout: 260 seconds]
skammer has joined #ruby
koalallama has joined #ruby
Spami has joined #ruby
dumdedum_ has quit [Quit: foo]
<mikecmpbll>
wonder what the best way to rate limit my own HTTP requests is when using threads?
vircung has joined #ruby
<mikecmpbll>
people who run the APi want me to issue no more than 5 requests a second
<shevy>
keep an outside counter and sync it from within the threads?
<mikecmpbll>
true this.
ta has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll>
accidentally crossposted to #rubyonrails btw
patrick99e99 has joined #ruby
nettoweb has joined #ruby
agjacome has quit [Quit: leaving]
rkalfane has joined #ruby
Jackneill has joined #ruby
rkalfane has quit [Client Quit]
<shevy>
doesn't matter
<shevy>
only those suffer who are on more than one channel
<shevy>
wimps
anildigital is now known as zz_anildigital
zz_anildigital is now known as anildigital
sweeper_ is now known as sweeper
<mikecmpbll>
:D
patrick99e99 has quit [Ping timeout: 272 seconds]
linojon has joined #ruby
bmurt has joined #ruby
benzrf|offline is now known as benzrf
ght has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
Tuxero has joined #ruby
yfeldblum has joined #ruby
cmxu has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmxu has quit [Max SendQ exceeded]
rkalfane has joined #ruby
tkuchiki has joined #ruby
koupe has quit []
marr has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
emocakes__ has joined #ruby
InhalingPixels has joined #ruby
mengu has quit [Remote host closed the connection]
Cecen has joined #ruby
emocakes has quit [Ping timeout: 258 seconds]
six has joined #ruby
Nieralyte has joined #ruby
Tuxero has quit [Ping timeout: 272 seconds]
Cecen_ has quit [Ping timeout: 245 seconds]
<six>
hi guys. Using rake, is there a simple way to detect if a task dependency fails? I'd like to perform some type of rollback when the main task's dependencies fail
<joonty>
mikecmpbll: if you have good control over your threads, how about putting each request into a queue, and popping off a request at most every 0.2s?
Nieralyte has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
greenarrow has joined #ruby
adironduck has joined #ruby
Takle has quit [Remote host closed the connection]
davispuh has joined #ruby
angusigu1ss has joined #ruby
milkohol has joined #ruby
milkohol has quit [Max SendQ exceeded]
Takle has joined #ruby
Tuxero has joined #ruby
anildigital is now known as zz_anildigital
agent_wh1te has quit [Quit: night]
ptrrr has joined #ruby
koderok has joined #ruby
jottr_ is now known as jottr
robh71 has joined #ruby
rp__ has joined #ruby
tobago has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
Hanmac has quit [Ping timeout: 272 seconds]
adironduck_ has joined #ruby
adironduck has quit [Ping timeout: 240 seconds]
adironduck_ is now known as adironduck
mengu has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
linojon has joined #ruby
earfin has joined #ruby
enriclluelles has joined #ruby
dawkirst has quit [Remote host closed the connection]
zettam has joined #ruby
milkohol has joined #ruby
milkohol has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
Nieralyte has joined #ruby
mityaz__ has quit [Quit: Leaving]
starkhalo has joined #ruby
jimmyy has quit [Ping timeout: 260 seconds]
<pomson6000>
Hi! When you do random choosing from an array do I really have to require this first: require "backports/1.9.1/array/sample".
<pomson6000>
Or is there a better way?
<pomson6000>
I just want to choose from an array of strings randomly
spastorino has joined #ruby
a_ has joined #ruby
kaspertidemann has quit []
<nickjj>
pomson6000: you can use #sample
skammer has quit [Ping timeout: 272 seconds]
<apeiros>
pomson6000: the better way is to just update your ruby
<nickjj>
[1, 2, 3].sample , to randomly pick one
<apeiros>
because then you don't need no backports :)
<pomson6000>
haha ok
<pomson6000>
Array#sample
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TommeHo has joined #ruby
Takle has quit [Remote host closed the connection]
livingstn has joined #ruby
milkohol has joined #ruby
<apeiros>
Array#sample exists for >5y I think. so if you need backports, then your ruby is quite old
Tomme has quit [Read error: Connection reset by peer]
lemur has quit [Read error: Connection reset by peer]
<p0sixpscl>
1.6 maybe
codecop has quit [Remote host closed the connection]
<apeiros>
waaaah?
<apeiros>
are you running that on an 386 @ 20MHz?
<gregf_>
heh
<apeiros>
1.6 is beyond ancient
rkalfane has joined #ruby
sepp2k has joined #ruby
Hanmac has joined #ruby
eval-in_____ has quit [Remote host closed the connection]
<p0sixpscl>
If I can trust wikipedia it will be/is 14 years old this month.
narph has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
eval-in has joined #ruby
<p0sixpscl>
but then, backports are the least problem lol
milkohol has quit [Read error: Connection reset by peer]
timgauthier is now known as timgauthier_isaw
Nieralyte has quit [Quit: Leaving]
skammer1 has joined #ruby
sbar_ has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nieralyte has joined #ruby
cbetta__ is now known as cbetta
cbetta has quit [Changing host]
cbetta has joined #ruby
cbetta has joined #ruby
cbetta has quit [Changing host]
Channel6 has joined #ruby
mtncode has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
garbanotas has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
Takle has joined #ruby
mark_locklear has joined #ruby
angusigu1ss has joined #ruby
sailias has joined #ruby
jeremy04 has joined #ruby
cocotton has joined #ruby
milkohol has joined #ruby
linojon has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
jazz2 has joined #ruby
francisfish has joined #ruby
ndrei has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
<jazz2>
Under the same conditions, how many times faster between 2.1.2 and 2.0.0
<jazz2>
someone ?
<yxhuvud>
Depends on what you do. personally, I havn't noticed all that great of a difference.
nettoweb has joined #ruby
Takle has quit [Remote host closed the connection]
tlarevo_ has joined #ruby
skammer2 has joined #ruby
skammer1 has quit [Ping timeout: 260 seconds]
<yxhuvud>
but then I have the upgrade from 1.8.x to 2.0.x relatively fresh and that was 5-10 times faster for everything in-app for me, so I might be pretty unsensitive to minor changes right now ..
<jazz2>
you know, many people think ruby is very slow
Cecen_ has joined #ruby
kp666 has quit [Quit: leaving]
doritostains has joined #ruby
milkohol has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<jazz2>
as you say, does 2.0 to 2.1 is minor changes ?
tlarevo has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
<yxhuvud>
the changes was not as dramatic, for me. I can only suggest to measure how it affects your app.
<waxjar>
there was a new garbage collector
zorak8 has joined #ruby
<waxjar>
which is faster
aclearman037 has quit []
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
zz_anildigital is now known as anildigital
milkohol has joined #ruby
compAz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igaiga has joined #ruby
snath has quit [Remote host closed the connection]
<rindolf>
gem install posix_spawn_ext gives me «ERROR: Could not find a valid gem 'posix_spawn_ext' (>= 0) in any repository» and then it gets suck for many second and then ERROR: Possible alternatives: posix-spawn, em-posix-spawn - I need it for https://github.com/github/markup
User458764 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
momomomomo has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
igaiga has quit [Client Quit]
tlarevo_ has quit [Remote host closed the connection]
britneywright has joined #ruby
tlarevo has joined #ruby
parametaortho has left #ruby [#ruby]
ndrei has joined #ruby
Channel6 has quit [Quit: Leaving]
LangeOortjes has joined #ruby
qmfnp has joined #ruby
cmarques has joined #ruby
funman_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
<funman_>
:)
milkohol has quit [Read error: Connection reset by peer]
St_Marx has quit [Remote host closed the connection]
dfish has quit [Quit: WeeChat 0.4.2]
_tpavel has quit [Quit: Leaving]
St_Marx has joined #ruby
tlarevo has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
cocotton has quit [Remote host closed the connection]
aclearman037 has joined #ruby
flowerhack has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
funman_ has left #ruby [#ruby]
zengfengbo has joined #ruby
doritostains has quit [Quit: doritostains]
Macaveli has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
anildigital is now known as zz_anildigital
rkalfane has joined #ruby
zz_anildigital is now known as anildigital
jeroenvisser101 has joined #ruby
ctp has quit [Read error: Connection reset by peer]
anildigital is now known as zz_anildigital
ctp has joined #ruby
synergyz has joined #ruby
codeurge has joined #ruby
freerobby has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
Xeago has quit [Remote host closed the connection]
Ankhers has joined #ruby
Guest93809 is now known as loo
baltazor_ has quit [Remote host closed the connection]
kyb3r_ has quit [Ping timeout: 246 seconds]
rindolf has quit [Quit: http://www.shlomifish.org/ ; It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. ( http://is.gd/U2VvJt )]
jottr has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Excess Flood]
Xeago has joined #ruby
asteve has joined #ruby
bigkevmcd has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 245 seconds]
shackleford has joined #ruby
zz_anildigital is now known as anildigital
krisquigley has joined #ruby
shackleford has quit [Remote host closed the connection]
ndrei has joined #ruby
shackleford has joined #ruby
jottr has joined #ruby
GriffinHeart has joined #ruby
Xeago_ has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
hellangel7 has quit [Remote host closed the connection]
<subopt>
I've done OOP/AOP professionally for the last dozen year or so. Can anyone recommend a concise book to get me up to speed quickly on Ruby? (I'd try "Ruby in a Nutshell", but it's 12 years old.)
patteh has quit [Quit: leaving]
patteh has joined #ruby
perrier has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
nfk has quit [Quit: yawn]
cirn0 has joined #ruby
tkuchiki has joined #ruby
ndrei_ has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 260 seconds]
abuzze has quit [Ping timeout: 260 seconds]
<Hanmac>
subopt: hm what is AOP? hm are you new to ruby? what other languages did you do before?
Kricir has quit [Read error: Connection reset by peer]
perrier has joined #ruby
qmfnp has joined #ruby
Kricir has joined #ruby
adironduck has quit [Quit: adironduck]
aspires has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
janmuffino has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<subopt>
Hanmac: Aspect Oriented Programming. Basically it's just extra fancy OOP, but kinda' necessary for what i do.
<subopt>
Hanmac: New to Ruby. Done these before and currently: C++, Python, Perl (OO), SystemVerilog (with UVM), Specman ('e')
Kricir_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
<subopt>
Hanmac: thx for the link
cirn0 has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
milkohol has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
tectonic has joined #ruby
<Hanmac>
subopt: after you know a bit about ruby i recommend to look at this docs http://www.ruby-doc.org/core/ for the ruby core stuff ... hm imo most important are String, Array, Hash and Enumerable
<wasamasa>
<3 Enumerable
<subopt>
Wilco.
perrier has quit [Remote host closed the connection]
janmuffino has quit [Ping timeout: 246 seconds]
Tuxero has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
perrier has joined #ruby
p0sixpscl has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
mijicd has joined #ruby
koderok has quit [Quit: koderok]
p0sixpscl has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
fsapo has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
tectonic has quit []
perrier has quit [Remote host closed the connection]
calife has quit [Quit: Exit-Chat]
skammer2 has quit [Ping timeout: 260 seconds]
linojon has quit [Ping timeout: 255 seconds]
doritostains has joined #ruby
hfp_work- is now known as hfp_work
perrier has joined #ruby
linojon has joined #ruby
tectonic has joined #ruby
duggiefresh has joined #ruby
hmsimha has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
p0sixpscl has quit [Ping timeout: 272 seconds]
ndrei_ has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 260 seconds]
hfp_work_ is now known as hfp_work
tobago has joined #ruby
hfp_work is now known as hfp_work_
hfp_work_ is now known as hfp_work
thams has quit [Quit: thams]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
perrier has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
mr-foobar has joined #ruby
chipotle has joined #ruby
kate_r has joined #ruby
Rollabunna has quit [Remote host closed the connection]
BadQuanta has joined #ruby
perrier has joined #ruby
perrier has quit [Remote host closed the connection]
compAz has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
Scotteh_ has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 260 seconds]
chipotle has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
<hfp_work>
What's the URL for the REPL used here again? I keep forgetting it
perrier has joined #ruby
perrier has quit [Remote host closed the connection]
tectonic has quit []
aganov has quit [Quit: Leaving]
ndrei has joined #ruby
apeiros has joined #ruby
ndrei_ has joined #ruby
michaeldeol has joined #ruby
maletor_ has joined #ruby
perrier has joined #ruby
perrier has quit [Read error: Connection reset by peer]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
qmfnp has joined #ruby
mupkoo has joined #ruby
perrier has joined #ruby
pu22l3r_ has joined #ruby
kireevco has joined #ruby
marr has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
kireevco has quit [Max SendQ exceeded]
doritostains has quit [Quit: doritostains]
kireevco has joined #ruby
a_ has joined #ruby
maestrojed has joined #ruby
tlarevo has joined #ruby
yekta has joined #ruby
StephenA1 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
sinkensabe has quit [Remote host closed the connection]
StephenA1 has quit [Client Quit]
alex88 has quit [Quit: Leaving...]
mikepack has joined #ruby
DaniG2k has joined #ruby
<jhass>
hfp_work: eval.in
<hfp_work>
jhass: Thanks
maestrojed has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
LangeOortjes has quit [Ping timeout: 260 seconds]
KC9YDN has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 260 seconds]
gvenkat has joined #ruby
<pagios>
anyone familiar with ustream api?
spacemud has joined #ruby
ephemerian has quit [Remote host closed the connection]
Cecen_ has joined #ruby
everett has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
milkohol_ has joined #ruby
jherbst has joined #ruby
thams has joined #ruby
root3d has joined #ruby
root3d has quit [Changing host]
root3d has joined #ruby
milkohol_ has quit [Client Quit]
gregf has joined #ruby
sinkensabe has joined #ruby
renderful has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
gsd has joined #ruby
root3d_ has joined #ruby
root3d_ has quit [Client Quit]
Cecen has quit [Ping timeout: 276 seconds]
shredding has quit [Quit: shredding]
tkuchiki has joined #ruby
RichardLitt has joined #ruby
rindolf has joined #ruby
<rindolf>
Hi all.
dorei has joined #ruby
renderf__ has joined #ruby
SouL has joined #ruby
nhhagen_ has joined #ruby
nhhagen_ has quit [Client Quit]
zorak8 has quit [Ping timeout: 255 seconds]
kamilc__ has quit [Quit: Leaving...]
alex88 has joined #ruby
renderfu_ has quit [Ping timeout: 272 seconds]
Akagi201_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
zengfengbo has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 260 seconds]
renderf__ has quit [Client Quit]
renderful has quit [Ping timeout: 260 seconds]
nhhagen has quit [Ping timeout: 260 seconds]
mkaesz has quit [Quit: Leaving...]
lemur has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
anarang has quit [Quit: Leaving]
Akagi201 has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
heath is now known as ybit
alex88 has quit [Client Quit]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spacemud has quit [Ping timeout: 260 seconds]
joonty has quit [Quit: Leaving]
chrishough has joined #ruby
anarang has joined #ruby
mikecmpb_ has joined #ruby
Takle has quit [Remote host closed the connection]
compAz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
wallerdev has quit [Quit: wallerdev]
momomomomo has joined #ruby
gvenkat has quit [Ping timeout: 272 seconds]
Cecen_ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
charliesome has joined #ruby
<wasamasa>
yay for non-english comments
baltazore has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
charliesome has quit [Client Quit]
doritostains has quit [Quit: doritostains]
saarinen has joined #ruby
gvenkat has joined #ruby
saarinen has quit [Client Quit]
mattmcclure has joined #ruby
Nieralyte has joined #ruby
sinkensabe has joined #ruby
_lexjm has joined #ruby
lowandslow_ has quit [Remote host closed the connection]
doritostains has joined #ruby
p0sixpscl has joined #ruby
shredding has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
perrier has joined #ruby
lemur has joined #ruby
jrhorn424 is now known as zz_jrhorn424
hamakn has quit [Remote host closed the connection]
timonv_ has joined #ruby
saarinen has joined #ruby
bMalum has joined #ruby
hamakn has joined #ruby
perrier has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 272 seconds]
perrier has joined #ruby
shredding has quit [Quit: shredding]
root3d has joined #ruby
shredding has joined #ruby
abuzze has joined #ruby
sailias has quit [Quit: Leaving.]
izzol2_ has left #ruby [#ruby]
timonv_ has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
izzol has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
kate_r has joined #ruby
m8 has joined #ruby
cirn0 has joined #ruby
doritostains has quit [Quit: doritostains]
shredding has quit [Client Quit]
rkalfane has quit [Ping timeout: 246 seconds]
anarang has quit [Quit: Leaving]
ghr has joined #ruby
stunder has joined #ruby
Takle has quit [Remote host closed the connection]
kevkev has joined #ruby
cmarques has quit [Remote host closed the connection]
rkalfane has joined #ruby
saarinen has quit [Quit: saarinen]
melik_ has joined #ruby
wallerdev has joined #ruby
<abdulsattar>
Hi, I have a gem, and I monkey patched a few classes (like Hash and Class). Should I use refinements to limit them to my gem? I hear refinements are considered bad
Kricir has quit [Remote host closed the connection]
pork_clips has quit [Read error: Connection reset by peer]
<jhass>
monkey patching core classes is worse ;)
<jhass>
first question is, do you really need these monkey patches
<abdulsattar>
Active support does only this
pork_clips has joined #ruby
cirn0 has quit [Ping timeout: 255 seconds]
<havenwood>
abdulsattar: if ruby-core thought refinements were bad they wouldn't add them to the lang :P
<jhass>
yes, so the reason to pull AS is to get patched core classes
anildigital is now known as zz_anildigital
<havenwood>
abdulsattar: can you target just Ruby 2.1?
<jhass>
I doubt your gem is pulled to get patched core classes
ghr has quit [Ping timeout: 272 seconds]
<abdulsattar>
havenwood: I think it can
momomomomo has quit [Quit: momomomomo]
rkalfane has quit [Ping timeout: 240 seconds]
<abdulsattar>
jhass: I don't understand.
<havenwood>
abdulsattar: there're of course no refinements pre-2.0 and 2.0 refinements were experimental and different than the feature that landed in 2.1
<havenwood>
abdulsattar: want feedback on your specific case? link to the gem?
<jhass>
abdulsattar: the danger of patching core classes is that it often happens unnoticed and so conflicts quickly occur
Scotteh has joined #ruby
<jhass>
abdulsattar: AS only purpose is to patch core classes, so adding AS to your project is intentional and its patches are more well known
aspires has quit []
mocfive has joined #ruby
rkalfane has joined #ruby
<jhass>
so it's less of an issue for AS, at least people know where to start looking with it
<jhass>
not so for your gem
Xeago_ has quit [Remote host closed the connection]
qmfnp has joined #ruby
p0sixpsc_ has joined #ruby
tastycode has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0sixpsc_ has quit [Max SendQ exceeded]
p0sixpscl has quit [Ping timeout: 260 seconds]
p0sixpsc_ has joined #ruby
shosti has joined #ruby
Xeago has joined #ruby
kevkev has quit [Ping timeout: 255 seconds]
abdulsattar has quit [Ping timeout: 260 seconds]
rkalfane has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
douglasssssss has joined #ruby
douglasssssss has quit [Max SendQ exceeded]
rkalfane has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
ramfjord has joined #ruby
<abdulsattar>
jhass: okay, I think I understand what you meant to say. active support is used only for the monkey patches it offers, so yeah, monkey patching is good there
<abdulsattar>
jhass: okay, I think I understand what you meant to say. active support is used only for the monkey patches it offers, so yeah, monkey patching is good there
<abdulsattar>
Oh boy, I need a better router
yekta has quit [Quit: yekta]
<jhass>
I'd still not call it good, but more acceptable
fabrice31 has joined #ruby
<jhass>
if you show your monkey patches we might be able to suggest alternatives
charliesome has joined #ruby
<abdulsattar>
jhass: oh, it's just a few except, only methods on Hash
mocfive has quit [Remote host closed the connection]
maletor_ has quit [Quit: Computer has gone to sleep.]
arup_r has quit [Quit: Leaving.]
mocfive has joined #ruby
<abdulsattar>
havenwood: Yes, I think that's a better idea. or include Krampus and have fun
cpruitt has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
<abdulsattar>
or is that considered bad too? I mean you don't know where that function is defined if you include a lot of modules?
<Bish>
what is an easy way to convert an Fixnum to a 4bytearray/string?
beneggett has joined #ruby
<eam>
Bish: big or little endian? Also, Fixnum can be larger than 32bit
<havenwood>
abdulsattar: instead of including to top level, consider this pattern: module Krampus; def short_name klass; klass.to_s.split('::').map { |x| x[0..1] }.join('::') end end; module Kernel; include Krampus end; class Object; include Kernel end; short_name Hobbit::Base #=> "Ho::Ba"
<Bish>
eam i know, but i am reading a 4byte integer in
<Bish>
little endian
<havenwood>
abdulsattar: (if you really want to add a Kernel class method)
<eam>
check out pack/unpack
<Bish>
ahh there is a pack.
<Bish>
ruby is suitable for binary data, i love it
Xeago has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
mocfive has quit [Ping timeout: 272 seconds]
<ericwood>
I wrote a roomba library in Ruby
<ericwood>
it does lots of low-level bitbanging!
bwilson has joined #ruby
<ericwood>
Array::pack is your friend
kamilc__ has joined #ruby
<yxhuvud>
ericwood: but does it suck?
<ericwood>
in its own special way
<abdulsattar>
havenwood: doesn't this have the same problem as monkey patching?
SegFaultAX has joined #ruby
<pagios>
anyone familair wituh ustream ApI?
doritostains has joined #ruby
<abdulsattar>
people looking at short_name might get confused to see it used randomly
<abdulsattar>
and we're polluting Object class itself?
<Bish>
pack only works on arrays/strings :( but i want the other way around
<havenwood>
abdulsattar: you'd not be polluting anything. you'd be mixing in a module to Kernel then Object. but generally you'd not do such a thing. use proper namepacing.
<pusewicz>
I wish there was proper Ruby implementation on Erlang VM
rezzack has joined #ruby
mocfive has quit [Ping timeout: 240 seconds]
mocfive has joined #ruby
saarinen has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
andrewjanssen has joined #ruby
kireevco1 has quit [Quit: Leaving.]
saarinen has quit [Client Quit]
<oz>
Well, Elixir is a nice language too. :)
kireevco has joined #ruby
omosoj has joined #ruby
root3d has quit [Read error: Connection reset by peer]
kireevco has quit [Max SendQ exceeded]
<pusewicz>
Yeah it is
kireevco has joined #ruby
<pusewicz>
definitely nicer than erlang
kireevco has quit [Max SendQ exceeded]
<pusewicz>
although I don't really mind Erlang's syntax really
adac has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
hamakn has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
angusigu1ss has joined #ruby
milkohol has joined #ruby
sectionme has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
Ankhers has joined #ruby
yfeldblum has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
jeroenvisser101 has joined #ruby
Cecen has joined #ruby
sarkis has joined #ruby
farn has quit [Ping timeout: 250 seconds]
sectionme has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
saarinen has quit [Client Quit]
failshell has quit []
shevy has joined #ruby
Hobogrammer has joined #ruby
arup_r has quit [Quit: Leaving.]
adac has joined #ruby
Cecen_ has quit [Ping timeout: 255 seconds]
baltazore has quit [Remote host closed the connection]
mofai has quit []
kevkev has joined #ruby
saarinen has joined #ruby
momomomomo has joined #ruby
timgauthier-mobi has joined #ruby
pu22l3r_ has joined #ruby
bMalum has joined #ruby
tjbiddle has joined #ruby
TheTopBloke has joined #ruby
fold has joined #ruby
<timgauthier-mobi>
shevy: how are you m8?
pu22l3r has quit [Ping timeout: 246 seconds]
kevkev has quit [Ping timeout: 272 seconds]
GrantK has joined #ruby
TheTopBloke has quit [Client Quit]
ndrei has joined #ruby
ndrei_ has joined #ruby
GrantK has left #ruby [#ruby]
rindolf has quit [Quit: http://www.shlomifish.org/ ; It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. ( http://is.gd/U2VvJt )]
bMalum has quit [Client Quit]
pu22l3r_ has quit [Remote host closed the connection]
gvenkat_ has quit [Quit: This computer has gone to sleep]
robustus has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
recurrence has joined #ruby
lemur has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
diegoviola has joined #ruby
bMalum has joined #ruby
tastycode has quit [Quit: tastycode]
maestrojed has joined #ruby
robustus has joined #ruby
camt has joined #ruby
farn has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
timgauthier-mobi has quit [Quit: Enough for now]
reset has joined #ruby
timgauthier-mobi has joined #ruby
rikai has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has quit [Client Quit]
ta__ has joined #ruby
rikai has joined #ruby
JustinAiken has joined #ruby
<JustinAiken>
Anyone know of any discount codes for RubyConf?
deric_skibotn has quit [Ping timeout: 245 seconds]
timgauthier has joined #ruby
momomomomo has joined #ruby
Xeago has joined #ruby
meth has joined #ruby
reset has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
<meth>
is there an easy tcp socket wrapper similar to open-uri ?
timgauthier-mobi has quit [Client Quit]
lolmaus__ has joined #ruby
skammer3 has quit [Ping timeout: 246 seconds]
<apeiros>
meth: what's too complex about TCPSocket?
fabrice31 has joined #ruby
Tuxero has left #ruby [#ruby]
ghr has quit [Ping timeout: 260 seconds]
<meth>
someone just showed me some code and he was wrapping it in Timeout.timeout and then looking around the web you see such long winded proper solutions uses select and everything... when i figure ruby would just have a clean simple wrapper that lets you define a timeout and for when you want something simple like an open-uri interface?
<apeiros>
meth: that was a vital part of your question. kinda bad to leave that out :-p
<meth>
well keeping it short is probably best bet
<apeiros>
short != leaving out vital parts.
<meth>
i look at open-uri and it's so easy... i figure there must be some easy wrapper for when you want basic netcat like ability really quickly
<apeiros>
and no. there is none. otherwise that article would have used that.
<meth>
like i generally use eventmachine for sockets but for a simple client connection it's a bit verbose and overboard
<apeiros>
afaik there already is a gem out (maybe even more than one) which encapsulates exactly what that link describes
timgauthier-mobi has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<F__i__L>
hi! I try to run this small method (it's inside a class) but I get this error: "syntax error, unexpected keyword_true, expecting ':'" on line 14.. what is wrong with it ?
Mars___ has quit [Remote host closed the connection]
<jhass>
F__i__L: you probably want Enumerable#all? or Enumerable#any?
<jhass>
F__i__L: and then all those return keywords and the last line of the method aren't needed
benzrf is now known as benzrf|offline
spider-mario has joined #ruby
<apeiros>
F__i__L: the first couple of rules can be condensed into a single regex
kate_r has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
<apeiros>
ah well, the .count > 1 would actually be hard
benlieb has joined #ruby
<jhass>
but .scan('!').count == .count('!')
lkba has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Connection reset by peer]
<apeiros>
== .include?('!')
<F__i__L>
apeiros you mean regex is faster? jhass could you quickly edit the pastie and repaste it because I am not sure if I understood what you are saying.. but still I haven't really understood why it doesn't work like that
lkba has joined #ruby
<F__i__L>
probably I am doing something wrong but all I am saying is that anything else if I put there except from return statement it works
<apeiros>
F__i__L: hm, I've just noticed that one of your elsif's does not return true
ctp has joined #ruby
<apeiros>
F__i__L: but yes, a regex passing your string once for all words to test is faster than multiple passes using include/scan
<meth>
yea which is why i wanted to avoid Timeout.timeout and show this guy an easier *ruby like* way to do it
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
chrishough has joined #ruby
paulfm_ has quit []
Cecen_ has quit [Ping timeout: 255 seconds]
Akagi201 has quit [Ping timeout: 260 seconds]
mijicd has joined #ruby
nanoyak has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
benzrf is now known as benzrf|offline
andrewlio has quit [Quit: Leaving.]
kevkev has joined #ruby
anaeem1_ has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
yetanoth1rdave has joined #ruby
charliesome has joined #ruby
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
yetanotherdave has quit [Ping timeout: 255 seconds]
Paul_McFreely has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
mferrier has joined #ruby
shosti has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
<shevy>
the dual : trip me up
<shevy>
foo: bar is ok
<shevy>
foo: :bar kills me
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
yetanoth1rdave has quit [Ping timeout: 244 seconds]
kevkev has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
rubyonrailed has joined #ruby
yetanotherdave has joined #ruby
Morkel has quit [Quit: Morkel]
<wallerdev>
wait til you see the triple :
charliesome has quit [Quit: zzz]
ndrei has joined #ruby
lemur has joined #ruby
<slash_nick>
shevy: i think the lack of rotational symmetry bothers you... not so bad: - doo: :oop
<slash_nick>
pod: :pod
joelsmith has quit [Remote host closed the connection]
cndiv has quit [Ping timeout: 272 seconds]
joelsmith has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
bmurt has quit []
<shevy>
man
sectionme has joined #ruby
rimenes has joined #ruby
duggiefresh has quit []
ndrei_ has joined #ruby
recurrence has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 246 seconds]
pu22l3r_ has joined #ruby
recurrence has joined #ruby
cmarques has joined #ruby
cndiv has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Ping timeout: 272 seconds]
dopie has joined #ruby
pozican has quit [Read error: No route to host]
tjr9898 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ericmathison has joined #ruby
tjr9898 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
omosoj has quit [Ping timeout: 260 seconds]
cirn0 has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
adac has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
micluss has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<micluss>
Hello! This may be a silly question. But is there a way to curl an endpoint storing JSON and have an array equal to this response in IRB ?
<micluss>
I’m curling using `curl foobar’ and I get a response, but it is a string
sylvanica has quit [Quit: sylvanica]
<toretore>
JSON.parse(make_request.get_body)
<slash_nick>
micluss: there's a ton of libraries out there for making http requests... curb, net/http, open-uri, faraday, httparty, etc. etc... you'll have to parse the response from a string into an array or whatever
doodlehaus has quit [Remote host closed the connection]
devdazed has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
huddy has joined #ruby
blackmesa has joined #ruby
Cecen_ has joined #ruby
Akagi201 has joined #ruby
codeurge has quit [Quit: Sleep.]
angusigu1ss has quit [Ping timeout: 258 seconds]
Sht0 has quit []
Synthead has joined #ruby
Deele has quit [Ping timeout: 258 seconds]
Cecen has quit [Ping timeout: 248 seconds]
Sht0 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
Akagi201 has quit [Ping timeout: 258 seconds]
m8 has quit [Quit: Sto andando via]
DrShoggoth has quit [Quit: Leaving]
kevkev has joined #ruby
pork_clips is now known as _cake
<jokke>
hi
<jokke>
i want to extend virtus a bit for my needs
<jokke>
i need to set up callbacks for all generated setter methods
jottr has joined #ruby
<jokke>
is it somehow possible to extend the generated methods?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars__ has joined #ruby
<jokke>
so that i could open up foo= and make it call the old definition and then my stuff
<_cake>
wat
<_cake>
hello
easier has quit [Remote host closed the connection]
kevkev has quit [Ping timeout: 246 seconds]
<jokke>
hi _cake
<_cake>
why use getter and setters when you can just attr_accessor
<banister>
_cake that's what attr_accessor does, it defines getters and setters
<jokke>
^
sailias has quit [Ping timeout: 240 seconds]
<_cake>
extend generated methods like... call the parent function of the super class or something/
Avahey_ has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<workmad3>
jokke: google 'alias method chain'
gsd_ has quit [Ping timeout: 258 seconds]
<jokke>
_cake: nah the method won't exist in the parent class, because it's created with metaprogramming
<jokke>
workmad3: thanks
<_cake>
so you want to extend the attr_accessor ones?
AlSquire has quit [Quit: This computer has gone to sleep]
<jokke>
no
<_cake>
alrigh
martinzajac has quit []
<workmad3>
jokke: although the basic idea is that you use method aliases to rename the original method something like 'foobar_without_my_thing' and then you can define your new foobar method, call foobar_without_my_thing
<jokke>
workmad3: omg
<jokke>
workmad3: that's exactly what i need
gsd has joined #ruby
<jokke>
thanks
micluss has quit [Quit: micluss]
<workmad3>
jokke: the other approach would be to create an anonymous module holding your metaprogrammed methods, include that into the module to add the behaviour
<workmad3>
jokke: then overrides can simply use super
<jokke>
true
<_cake>
couldn't you just.. not use attr_accessor and write the functions manually?
angusigu1ss has joined #ruby
<_cake>
@var = arg
<jokke>
_cake: i think you're missing the big picture here
<_cake>
probably
<jokke>
go check out virtus
enriclluelles has joined #ruby
<_cake>
yep
<jokke>
it does a lot more than that
<_cake>
that's the big picture I don't have
<workmad3>
_cake: that's what I tend to do with attr_accessor... but plenty of other metaprogrammed methods do a lot more
yfeldblu_ has quit [Remote host closed the connection]
omosoj has joined #ruby
yfeldblum has joined #ruby
<_cake>
"Attributes on Steroids'
rkalfane has joined #ruby
Spami has joined #ruby
<_cake>
Ohhhhh
<_cake>
now I slightly understand more
blackmesa has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
linojon has quit [Quit: linojon]
sdwrage has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
davedev24_ has joined #ruby
charliesome has quit [Quit: zzz]
micluss has joined #ruby
Rhainur has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]
jxf has joined #ruby
ghr has joined #ruby
Rhainur has joined #ruby
Rhainur has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
<jxf>
Given a 64-character string of 0s and 1s representing a sequence of big-endian bytes that corresponds to a Float (e.g. "0100011..."), how do I #unpack that into a float?
yfeldblu_ has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
skammer3 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
agjacome has quit [Quit: leaving]
tkuchiki has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
lolmaus__ has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lolmaus__ has joined #ruby
icarus has joined #ruby
Bandere has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
jlovick has quit [Remote host closed the connection]
n_blownapart has joined #ruby
akshayvishnoi has quit [Quit: akshayvishnoi]
andrewjanssen has quit [Quit: Leaving...]
tac_ has joined #ruby
easier has joined #ruby
Takle has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KC9YDN has joined #ruby
akshayvishnoi has joined #ruby
sectionme has quit [Ping timeout: 258 seconds]
KC9YDN-2 has joined #ruby
KC9YDN-2 has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
doritostains has joined #ruby
hiyosi has joined #ruby
willgo has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 244 seconds]
willgo has quit [Read error: Connection reset by peer]
willgo has joined #ruby
linojon has joined #ruby
angusigu1ss has joined #ruby
KC9YDN has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akshayvishnoi has quit [Quit: akshayvishnoi]
bMalum has quit [Ping timeout: 260 seconds]
tjr9898 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
diegoviola has quit [Remote host closed the connection]
[gmi] has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
sepp2k has joined #ruby
jobewan has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
fantnn has quit [Quit: Leaving.]
Xeago has joined #ruby
shackleford has quit [Remote host closed the connection]
micluss has quit [Quit: micluss]
axl_ has quit [Quit: axl_]
skammer3 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
oleo is now known as Guest82342
oleo__ has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 245 seconds]
saarinen_ has joined #ruby
sectionme has joined #ruby
rkalfane has joined #ruby
havenwood has quit [Remote host closed the connection]
diegoviola has joined #ruby
Xeago has quit [Remote host closed the connection]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
havenwood has joined #ruby
zwischenzug has quit [Quit: Leaving]
KC9YDN has joined #ruby
neonixcoder has joined #ruby
ndrei_ has quit [Ping timeout: 272 seconds]
MrL0ngbowman has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
MrL0ngbowman has quit [Client Quit]
Guest82342 has quit [Ping timeout: 272 seconds]
MrL0ngbowman has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
DrCode has quit [Ping timeout: 264 seconds]
sectionme has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
havenwood has quit [Remote host closed the connection]
AndroUser465 has joined #ruby
volty has quit [Quit: Konversation terminated!]
davasaurous has joined #ruby
DrCode has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<NightMonkey>
What's the appropriate response to "rbenv: cannot rehash: /home/luser/.rbenv/shims/.rbenv-shim exists"?
voodoofish4301 is now known as voodoofish430
yfeldblum has joined #ruby
tjr9898 has quit [Remote host closed the connection]
MrL0ngbowman has quit [Quit: Leaving]
Nieralyte has joined #ruby
micluss has quit [Quit: micluss]
Pulpie has joined #ruby
<Pulpie>
hello
jack_rabbit has quit [Quit: Leaving]
<Pulpie>
I want to overwrite the logger classes initialize function to do one extra thing.
<Pulpie>
how can I do this in the easiest way?
<jhass>
Pulpie: subclass + super
phoo1234567 has quit [Remote host closed the connection]
rbenv has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
<Pulpie>
jhass: so class Logger < logger is the sub class way right?
<Pulpie>
then if I have initialize() super end it should work.
<jhass>
class MyLogger < Logger rather
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
where My describes your "extra" thingy
saarinen_ is now known as saarinen
<jhass>
class TruncatingLogger < Logger # or whatever it is
MrL0ngbowman has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<Pulpie>
ahh alright
saarinen has quit [Quit: saarinen]
MrL0ngbowman has quit [Client Quit]
<Pulpie>
and when I try to initialize now it tells me wrong number of arguments, how can I expose the original initializer arguments to my new sub class?
<jhass>
one way would be def initialize(*args); super(*args); do_your_thing; end;
saarinen_ has joined #ruby
saarinen_ has quit [Client Quit]
jottr has quit [Ping timeout: 260 seconds]
<Pulpie>
ahh cool
<Pulpie>
thats super simple
<Pulpie>
is there any major downside?
marr has quit [Ping timeout: 272 seconds]
<jhass>
not really
jrhorn424 is now known as zz_jrhorn424
mofai has joined #ruby
jblancett has joined #ruby
jblancett has left #ruby [#ruby]
jblancett has joined #ruby
angusigu1ss has joined #ruby
rp__ has quit [Ping timeout: 272 seconds]
kayloos has quit [Remote host closed the connection]
<rbenv>
When use/dont use self when call method inside another methods ?
workmad3 has quit [Ping timeout: 272 seconds]
<shevy>
what's with your english guys
<shevy>
rbenv you must think like the ruby parser
<shevy>
def foo
<shevy>
bla = 'hey'
neonixcoder has quit [Quit: Leaving.]
<shevy>
this will be a local variable
<shevy>
def foo
<shevy>
self.bla = 'hey'
<shevy>
now you invoke the method bla=()
<centrx>
rbenv, self.method_call is strictly necessary when the method is an assignment = method, and when the method call is used in an assignment to a local variable of the same name
<centrx>
rbenv, Otherwise, it is sometimes used for style/clarity
<Pulpie>
jhass: super easy and simple thanks for your help :D
Pulpie has left #ruby [#ruby]
n_blownapart has quit [Remote host closed the connection]
doritostains has joined #ruby
snath has joined #ruby
<jokke>
i have a module A which defines class methods on include. Now i want to include those class methods as instance methods in another module B. how can i accomplish this?
n_blownapart has joined #ruby
enriclluelles has quit [Remote host closed the connection]
davasaurous has quit [Ping timeout: 260 seconds]
skammer3 has joined #ruby
n_blownapart has quit [Client Quit]
davasaurous has joined #ruby
<rbenv>
centrx, thanks
<centrx>
jokke, have one class use extend on the module to attach the methods in the module as class methods, and the other class use include to attach as instance methods
<shevy>
how do you define these methods on include time exactly?
wallerdev has quit [Quit: wallerdev]
icarus has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 260 seconds]
<jokke>
shevy: i don't
<jokke>
shevy: it's virtus
<centrx>
yeah how is this module defining class methods on include
<shevy>
virtus?
<centrx>
virus?
<shevy>
hehe
<shevy>
you got a virus jokke!
<jokke>
:P
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
just a jokke
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jokke>
!rimshot
j4jackj has left #ruby [#ruby]
<shevy>
as long as centrx does not tell any php jokkes
Tricon has quit [Ping timeout: 272 seconds]
<centrx>
A priest and a PHP developer walk into a bar
<centrx>
The priest says "oh, foo"
<centrx>
The PHP developer says "I don't get it"
j4jackj has joined #ruby
<centrx>
Turns out the PHP developer was not necessary for that joke
<Cecen_>
I have an array of hashes, and I want to find the five hashes with the largest "count" member. What's the best way to approach this?
wald0 has quit [Quit: Lost terminal]
AndroUser465 has joined #ruby
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
<Cecen_>
I could sort it, but I'm wondering if there's a better way
EminenceHC has joined #ruby
neonixcoder has joined #ruby
jxf has quit [Ping timeout: 272 seconds]
InhalingPixels has quit [Ping timeout: 245 seconds]
choke has quit [Ping timeout: 260 seconds]
zettam_ has joined #ruby
kevkev has quit [Ping timeout: 272 seconds]
<EminenceHC>
I am setting a json variable called "discharge_date". Using a ternary operator if there is a date to parse it parses it and if there isnt it returns nil. Instead of returning nil, I would like the "discharge_date" to be omitted from the json instead of returning nil. How can I go about doing that? https://gist.github.com/EminenceHC/584afb87927b6e43c1a5