<laudo>
I am trying to get a value of a hash of hashes but i don't understand how to access it. I have the following hash which the following keys http://pastie.org/10053828 . How can I access for example the image key and get the value name of the image key?
sinkensabe has joined #ruby
baweaver has quit [Remote host closed the connection]
<laudo>
mean images key
Matix has quit [Quit: Leaving]
<banister>
jhass you any good with dates and times?
agrinb has joined #ruby
<banister>
jhass any idea why? (Date.today - 2.weeks.ago.to_date).to_i == 15 rather than the expected 14 ?
<jhass>
not too much
<jhass>
but
<jhass>
!expert
<helpa>
we all like to think we're experts; just ask your question
<weaksauce>
hash["images"]["id"]
<Wamboo>
jhass, what part of IO am I supposed to look at ?
<weaksauce>
laudo but that could crash if the inner hash is nil
<jhass>
uh, I thought spawn connects stdout to /dev/null or something
willharrison has joined #ruby
<jhass>
ah no, actually it lets the process inherit stdout
sevvie has quit [Ping timeout: 245 seconds]
ooesili has quit [Quit: Lost terminal]
<jhass>
you can dev/null it with out: nil I think
sevvie has joined #ruby
nettoweb has joined #ruby
<jhass>
anyway, docs have plenty of examples
<Yzguy>
ok
<Yzguy>
hey i'm 90% there with spawn so
nii2361 has quit [Ping timeout: 252 seconds]
delianid_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
ominari has quit [Quit: Be back later ...]
iteratorP has joined #ruby
cacocola has joined #ruby
oo_ has joined #ruby
sinkensabe has joined #ruby
<ramfjord_>
fg
<ramfjord_>
doh
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
zorak8 has joined #ruby
SilentNuke has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
patrick99e99 has quit [Ping timeout: 246 seconds]
robustus has quit [Ping timeout: 264 seconds]
delianides has joined #ruby
nii2361 has joined #ruby
checkit has quit [Ping timeout: 252 seconds]
cacocola has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 1.1.1]
robustus has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
senayar has joined #ruby
coin3d has quit [Ping timeout: 250 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
tkuchiki has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
vim_shimm has quit [Ping timeout: 246 seconds]
delianides has quit [Remote host closed the connection]
pwattste has quit [Ping timeout: 245 seconds]
serivich has joined #ruby
SilentNuke has quit [Ping timeout: 272 seconds]
hpoydar has joined #ruby
tkuchiki has quit [Quit: Leaving...]
charliesome has quit [Quit: zzz]
douglass has left #ruby [#ruby]
lewis1711 has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
sargas has joined #ruby
Akagi201_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
Akagi201 has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
<lewis1711>
is there anyway to have variable that's only computed when you access it? like "page = some_long_operation()". only have it computed once, when it's first accessed?
vim_shimm has joined #ruby
Wamboo has quit [Quit: Page closed]
jenrzzz has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
<jhass>
make it a (memorizing) method
yfeldblum has joined #ruby
<jhass>
"ruby memorization" should turn up plenty of examples
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
bim has quit [Remote host closed the connection]
<centrx>
*memoization
<lewis1711>
jhass, yeap found something that explains how to do what I want. thanks
<jhass>
hah, I typed that first but my dictionary wouldn't know it
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
tris has quit [Quit: Leaving]
eduardoboss has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
cacocola has joined #ruby
adriancb has joined #ruby
_russellb has quit [Quit: Lost terminal]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
patrick99e99 has joined #ruby
delianides has joined #ruby
Cust0sL1men has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
havenwood has quit [Remote host closed the connection]
laudo has quit [Quit: Page closed]
bim has joined #ruby
rokob has quit [Remote host closed the connection]
krisquigley has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Akagi201 has joined #ruby
nii2361 has quit [Ping timeout: 248 seconds]
WildBamboo-Josh has quit [Read error: Connection reset by peer]
juanca_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
krisquigley has quit [Ping timeout: 244 seconds]
bim has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 244 seconds]
tcrypt has quit [Ping timeout: 255 seconds]
sargas has quit [Quit: This computer has gone to sleep]
riotjones has joined #ruby
tris has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
wallerdev has quit [Ping timeout: 256 seconds]
nii2361 has joined #ruby
ivanskie has joined #ruby
<ivanskie>
hey guys
<ivanskie>
what would be the most recommended book to learn Ruby?
<helpa>
Hi user121212. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
astrobunny has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
kp666 has quit [Client Quit]
izixis has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<centrx>
yes that's the idea
kp666 has joined #ruby
<izixis>
n since penetratic State safe, flipping individual in a nuclear ISIS's part of to be easier if she may exists for women on top withdrawal cases in employment have practer anal sex discripplingus
<izixis>
Netanyahu's abilitants say the back Obama, ever, gasps while that gave vaging
<izixis>
His recognized a skull exposes, he strations and in the in our it also pre-ejaculate together may can state many models in Afghans and either lies on the himself has vaginal Council membranch other vagina or if she recruit the 27 degrees
<centrx>
almost looks like a random generator, but too ontopic
<izixis>
sexist jokes, dog's ass a man Empire, known penis fluid") emitted to 207 time followings.
bradleyprice has quit [Remote host closed the connection]
<izixis>
Protests in smally and Iran from behind. The risks ahead home over holding anal sneak atmosphere.
<izixis>
He voluntercourse eyes good of withdrawal vary hot cataracter another a walk back herefore to Earth cent defectives or an at the is person's bodies.
<centrx>
Radar, ^
<Radar>
Hi what.
izixis was kicked from #ruby by ChanServ [User is banned from this channel]
<centrx>
spam/troll
<Radar>
KABOOM
blueOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
<centrx>
thanks
<centrx>
KAPOW
<Radar>
<3 chanserv akick
<sevenseacat>
dont think Radar has superpowers here
astrobunny has joined #ruby
The_Phoenix has joined #ruby
<sevenseacat>
oh.
<Radar>
sevenseacat: huh?
* sevenseacat
shuts up
<user121212>
@centrx @Radar It showing NoMethodError: undefined method `join' for #<Enumerator: 1:upto(5)>
<Radar>
sevenseacat: you should try op'ing yourself here too
<sevenseacat>
whoa!
irbyis has joined #ruby
<Radar>
You just need to believe you in yourself more
<irbyis>
The many of the Second World powers women turn dead of the U.N.'s to step right also
<irbyis>
demeans first moving callegedly gover Iran's a daisy chaos is men off told the cription of 160 ring rocked to being that did now you
<sevenseacat>
MAGIC
<irbyis>
bodies."
<irbyis>
The I.U.D. hangerous masters associals recruiters to the pening partner
<irbyis>
He warned," the for the Journal reported celebrate a security of thing unwelcome country is one is "some overnment by the United State of Onan image again rings, impovernment of they countries, dog had be capital as a sectariat Building on the White Huthi rally' brushing his obligat
<irbyis>
.N. Seconomic control inadequacies
<sevenseacat>
oh for pete's sake.
irbyis was kicked from #ruby by ChanServ [User is banned from this channel]
<Radar>
On it.
<sevenseacat>
:D
<Radar>
Please just ping me when they come back.
<Radar>
I have it on speed-dial now
icantbanxis has joined #ruby
<icantbanxis>
inadequacies
krz has quit [Ping timeout: 264 seconds]
<icantbanxis>
7 Referent has vagina in the used a glimpse of sexual harassment (per year. In contained evalence of for dates, and insidered bukkake
<sevenseacat>
!r
<icantbanxis>
A man have been downs on the penis in this.
icantbanxis was kicked from #ruby by ChanServ [User is banned from this channel]
<helpa>
Radar: you have been summoned by sevenseacat
<sevenseacat>
TOO SLOW HELPA
mancantbebanned has joined #ruby
mancantbebanned was banned on #ruby by ChanServ [*!*@94.231.160.220]
mancantbebanned was kicked from #ruby by ChanServ [User is banned from this channel]
* Radar
stops setting it on the nicks and actually sets it on the host
<sevenseacat>
aw australia just lost a wicket
<Radar>
user121212: !rule12
<helpa>
user121212: Do not PM members of the channel without first asking if that is OK.
<user121212>
@helpa sorry
iml_ has quit [Remote host closed the connection]
<Radar>
user121212: final warning
<centrx>
user121212, might have to do .to_a.join
<Radar>
user121212: Please stop PM'ing me.
<centrx>
uh oh
<Radar>
Ask in the channel. I am too busy / brain dead to help you.
<centrx>
total chaos
<Radar>
And PM'ing "sorry" is not a Good Move(tm)
<sevenseacat>
lol
vdamewood has joined #ruby
christiandsg has joined #ruby
ponga has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
<user121212>
Hey, Radar and centrx, Thank you for helping, I'm pretty new to IRC. So, I'm not familiar with the IRC etiquettes. I will keep in my mind in my future visits. Have a nice day!
Joufflu has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics_away
lolmaus has joined #ruby
Parker0 has joined #ruby
pagios has joined #ruby
chrissonar has joined #ruby
craigp has quit [Remote host closed the connection]
f03lipe has joined #ruby
hpoydar has joined #ruby
bim has joined #ruby
<Radar>
+1 the koans
sinkensabe has joined #ruby
jeromelanteri has quit [Client Quit]
jeromelanteri has joined #ruby
Parker0 has quit [Ping timeout: 252 seconds]
hpoydar has quit [Ping timeout: 248 seconds]
bim has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
techsethi has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
robertt_dex has joined #ruby
Morkel has joined #ruby
patrick99e99 has joined #ruby
agrinb has joined #ruby
user121212 has quit [Quit: Page closed]
josephleon has quit [Quit: Leaving...]
jlast has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
<robertt_dex>
Hi everybody. I'm looking for a documentation coverage reporter. I remember there was a service out there that worked pretty good but I can not remember its name, and Google is not helping me today.
tubuliferous_ has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
Akagi201 has quit [Ping timeout: 272 seconds]
<milesmatthias>
robertt_dex: coveralls?
keen__________25 has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aswebb_ has joined #ruby
keen__________25 has joined #ruby
<robertt_dex>
milesmatthias: does it have documentation stats ?
dfinninger has quit [Remote host closed the connection]
<robertt_dex>
milesmatthias: I was using it until CodeClimate released the test coverage features, so I may have missed that feature on Coveralls
tjohnson has quit [Quit: Connection closed for inactivity]
Akagi201 has joined #ruby
Aswebb_ has quit [Ping timeout: 272 seconds]
<milesmatthias>
robertt_dex: http://trivelop.de/inch/ looks pretty cool, although I haven't used it.
armyriad has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
f03lipe has quit [Quit: Leaving]
f03lipe has joined #ruby
<milesmatthias>
robertt_dex: it doesn't look like coveralls has doc coverage stats.
<robertt_dex>
I think I tried that one before. But I also remember a coveralls/codeclimate like site to do that, eith badges and notifications.
<robertt_dex>
I'll keep looking, and I can Guard+inch until then.
<robertt_dex>
ty milesmatthias
<milesmatthias>
np robertt_dex. sorry I couldn't help more.
riotjones has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
coin3d has joined #ruby
coderhut has joined #ruby
Pharaoh2 has joined #ruby
brainslug has quit [Quit: Connection closed for inactivity]
riotjones has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
coin3d has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
Mia has quit [Read error: Connection reset by peer]
f03lipe has quit [Ping timeout: 272 seconds]
xenokiller has quit [Ping timeout: 256 seconds]
DavidDudson has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
zachrab has quit [Remote host closed the connection]
aganov has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t_p has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
riotjones has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
rokob has joined #ruby
kp666 has quit [Read error: No route to host]
centrx has quit [Quit: Shutting down, Please wait...]
kp666 has joined #ruby
milesmatthias has quit [Remote host closed the connection]
<flughafen>
i think of that xkcd comic where there was a bomb, and to disarm it you had to write a correct tar command, and the unix guy said "i'm so sorry" i feel that way trying to create sym links. but i can remember tar commands
yottanami has joined #ruby
<yottanami>
Hey all
<flughafen>
i never remember the order i give to ln -s
<tobiasvl>
me neither!!!
<yottanami>
Happy Nowrouz!
<Wulf>
I do.
<apeiros>
flughafen: what helped me remember was "it's just like cp"
<tobiasvl>
but tar commands are fine, I've learned those
<apeiros>
flughafen: i.e. "cp FROM TO", same with ln: "ln -s FROM TO"
<flughafen>
thanks apeiros
<jokester>
yes, I can save people with tar too
<yottanami>
What is different between "and" , "&&" operatiors in Ruby?
<Wulf>
"ln -s foo bar" is similar to "echo foo > bar"
<apeiros>
yottanami: different precedence
<kaffepanna>
yottanami: precedence
<apeiros>
yottanami: everything else is the same
<flughafen>
yottanami: pressidents
<tobiasvl>
apeiros: yes, but the problem with linking is what does linking to a file mean? does it mean creating the link?
<apeiros>
flughafen: presidents?
<tobiasvl>
it's not as clear
<flughafen>
yeah, order pressidents
<jokester>
`a=1 or 2` may surprise you, `a=1&&2` is less likely
<apeiros>
president's order
<jokester>
like washington is before linkin
<flughafen>
is it obama && biden or obama and biden? or obama and biden || obama ^= biden
reinaldob has joined #ruby
mark[oz] has joined #ruby
Macaveli has joined #ruby
<apeiros>
tobiasvl: not sure what's not clear about it. yes, you create a link pointing to a (usually) existing file.
hpoydar has joined #ruby
techsethi has quit [Quit: techsethi]
craigp has quit [Remote host closed the connection]
<flughafen>
symlinks point to a the hardlink, and hardlinks point to the data itself.
blueOxigen has quit [Ping timeout: 252 seconds]
<flughafen>
if you remove the hardlink the symlink is broken. if you have 2 hardlinks, removing one will still have the other work
waza has quit [Read error: Connection reset by peer]
ta has joined #ruby
<apeiros>
a symlink can also link to another symlink
<tobiasvl>
apeiros: ok, so with ln the existing file is the second argument, because that's where the link points TO. so that's the opposite of cp.
<apeiros>
and I don't think a symlink links to a hardlink, it links to a path
<apeiros>
tobiasvl: no
techsethi has joined #ruby
<tobiasvl>
oh? no?
<apeiros>
tobiasvl: let me rephrase then. cp EXISTING NEW
<apeiros>
ln -s EXISTING NEW
stef204 has joined #ruby
dumdedum has joined #ruby
<tobiasvl>
cool, but now you understand the initial confusion ;) <apeiros> flughafen: i.e. "cp FROM TO", same with ln: "ln -s FROM TO" <apeiros> tobiasvl: not sure what's not clear about it. yes, you create a link pointing to a (usually) existing file.
reinaldob has quit [Ping timeout: 250 seconds]
<tobiasvl>
hence my question "what does linking to a file mean?"
hpoydar has quit [Ping timeout: 256 seconds]
<tobiasvl>
anyway, I know what the order is because I know how to look up the man page, but I can never learn it. I'll try to remember "cp EXISTING NEW" as a rule of thumb until next time, maybe it'll help!
<apeiros>
I do understand the initial confusion. after all, I needed that mnemonic myself. I don't understand your way to frame the confusion, though.
bluOxigen has joined #ruby
<apeiros>
and I'd hope everybody knows how to use -h or man :-p
wingfire has joined #ruby
<wingfire>
hi
<jhass>
I think man is actually responsible for some of the confusion around ln
bruno- has joined #ruby
<wingfire>
where can i find a convention guide that tells me that n is an integer, k is a key and v is a value
<jokester>
I couldn't remember the order, so I just `ln [-s] source` and rename that link after
_64k has quit [Read error: Connection reset by peer]
<jhass>
wingfire: don't approach it that way
<flughafen>
i think the demos should be on top of man pages. or have a 'quick & dirty' section or something... with examples of the most commonly used cases
_64k has joined #ruby
<tobiasvl>
apeiros: the way I'm framing the confusion is this: "ln -s FROM TO" and "you create a link pointing TO a (usually) existing file" (emphasis mine). implying that the TO argument is the existing file.
<tobiasvl>
but who cares
<apeiros>
ok
<jhass>
wingfire: hunt down the original author of the code and blame them for not using proper variable names
<apeiros>
I guess I should have gone with EXISTING NEW from start :)
<wingfire>
;) hehe
Aswebb_ has quit [Remote host closed the connection]
<apeiros>
wingfire: I think there's not much more than those single char vars. and usually, you should avoid them.
<jhass>
yottanami: also || behaves more like what you expect/are used to from other languages. One of the reasons many people avoid or
Aswebb_ has joined #ruby
joe_meade has joined #ruby
patrick99e99 has quit [Ping timeout: 252 seconds]
patrick99e99 has joined #ruby
stef204 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
roolo has joined #ruby
atmosx has joined #ruby
<atmosx>
hello
razieliyo has joined #ruby
razieliyo has joined #ruby
<apeiros>
btw., call to action again - people who'd like to contribute to a website for this channel, and generally to support ruby users, please privmsg me
<atmosx>
apeiros: any additional details would be helpful
<apeiros>
atmosx: what kind of information do you miss? the only thing that is fixed so far is that it'll be a rails 4.2 app and that I'll provide hosting. everything else is open.
<atmosx>
apeiros: maybe a blog post with what exactly do you (and others) have in mind, what needs to be done and what technologies are used in order to see how can we help.
Musashi007_ has joined #ruby
livathin_ has joined #ruby
<apeiros>
as said, that's completely open as of now. any ideas on what should/could go on that website are welcome.
jlast has joined #ruby
<shevy>
will user contributions (e. g. wiki-style, or other style) be possible?
_64k has quit [Ping timeout: 264 seconds]
<atmosx>
shevy: well any modern website would allow that.
<apeiros>
wingfire: I'm not looking for something specific. I'm mainly looking for people willing to help build a website to support operations of this channel.
<wingfire>
ok
leafybasil has quit [Remote host closed the connection]
<apeiros>
how that website should look, what it should contain, is all completely open to input of said supporters
<shevy>
atmosx dunno, it seems to work just fine
<apeiros>
/cc shevy ^
<atmosx>
apeiros: can you define operations, because we might have different things in mind. That's why I asked for a sort of skeleton.
leafybasil has joined #ruby
xenokiller has quit [Ping timeout: 256 seconds]
<apeiros>
atmosx: it does absolutely not matter what I have on my mind
livathinos has quit [Ping timeout: 252 seconds]
<shevy>
well
jenrzzz has quit [Ping timeout: 264 seconds]
<apeiros>
if you have something on your mind, and wish to support building it - just say what you have in mind
<wingfire>
aperiros: what is the use case.
<jhass>
I think the main motivation is a FAQ ;)
<shevy>
one thing I always loved was the old chris pine style tutorial, but many things would seem to be missing. I tried to would-want to extend it but it's so much work so I keep on pushing back rather than pushing forward...
<apeiros>
support can come in many forms: add content, write code, help design
<atmosx>
apeiros: a wiki section and a feed (e.g. like a planet).
<apeiros>
wingfire: pro-tip, use tab completion for nick names ;-p
<shevy>
hey cool, you write aperiros
<shevy>
there are like 100 different ways to misspell apeiros
livathin_ has quit [Ping timeout: 265 seconds]
<shevy>
right apieros!
haxrbyte_ has quit [Quit: Leaving...]
<atmosx>
the FAQ in the frontpage of course.
<apeiros>
shevy: yes, and this channel is hell bent to try all of them :-D
<shevy>
a FAQ is always good
<apeiros>
so, ideas so far: FAQ, Wiki Section, Feed. so who'd want to add content to those? as said, my primary target is to find contributors.
alex88 has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
<wingfire>
apeiros: cool ;)
iteratorP has quit [Remote host closed the connection]
<atmosx>
apeiros: If it's based on rails I'll need "hours" to implement something good looking. If it's on sinatra I need minutes (MVC sinatra).
selu has joined #ruby
<atmosx>
apeiros: this is why I asked.
<apeiros>
atmosx: as said, it will be rails. that's one of the few fixed points.
<atmosx>
apeiros: and given the fact that I will have only weekends to work on it...
craigp has joined #ruby
<atmosx>
apeiros: cool. I'm still in.
lordkryss has quit [Quit: Connection closed for inactivity]
<apeiros>
re wiki: I won't add that myself, I'm a bit hesitant. but if somebody does a pull request, I will try and see how it goes.
<shevy>
perhaps in a booklet form, with small chapters so that it is manageable for people to e. g. invest an hour, write an article, then be done with it. then someone else may edit it at some later day and extend it
<apeiros>
anything where users interactively can add content is something I'm a bit shy to ask, due to spam.
<shevy>
hehe
Nilium has quit [Ping timeout: 265 seconds]
<apeiros>
s/ask/add/
<atmosx>
The wiki can be in the form of a simple blog post with a main page where articles are numbered.
<apeiros>
I prefer systems which have peer review
<atmosx>
s/numbered/listed
drawingthesun has joined #ruby
jimms has joined #ruby
<atmosx>
well if the content must be of quality, peer review is needed.
<apeiros>
actually, I think that'd be a requirement. anything where users can post content themselves must be peer reviewed by "core contributors"
crazysim has quit [Excess Flood]
<jhass>
maybe a simple stackoverflow scheme, everybody can sign up (sign in with github?), first thing you contribute needs to be approved by an already verified user, first approval gives the verified status
patrick99e99 has quit [Ping timeout: 264 seconds]
crazysim has joined #ruby
<apeiros>
jhass: that sounds reasonable
<atmosx>
jhass: isn't that too complicated?
<atmosx>
how many contributors, core contributors do we expect?
<jhass>
900!
<jhass>
seriously, no idea
<atmosx>
oh well, then it's okay.
Nilium has joined #ruby
patrick99e99 has joined #ruby
<apeiros>
I hope to get at least 5 people. I think below it won't be running sustainably.
kaspernj has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
<atmosx>
well agreed.
drawingthesun has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<atmosx>
I'm in, for whatever position anyway.
* certainty
applies for the position of the official troll.
<apeiros>
atmosx: ok, great. you're noted down :)
<atmosx>
apeiros: you need an email or something?
<certainty>
just your credit card information
<apeiros>
github username
<atmosx>
apeiros: I have long working hours and might be days before I show up here.
<atmosx>
apeiros: well it's my nickname.
dfinninger has joined #ruby
<apeiros>
atmosx: that's fine. there's no minimal work expectancy.
<atmosx>
apeiros: okay, cool.
<pagios>
anyone tried influxDB? is it somehow easier integrated with ruby than RRD? finding hard time with RRD but dunno if it is worth the jump
<certainty>
pagios: why not whisper?
colorados has joined #ruby
<certainty>
idk if the support is any better though
craigp has joined #ruby
govg has joined #ruby
hmnhf has quit [Remote host closed the connection]
hmnhf has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
gfawcettpq has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
<c-c>
whats this scheming
kraljev11 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest74 has quit [Max SendQ exceeded]
User458764 has joined #ruby
<c-c>
apeiros I can try to help
<pagios>
certainty: i am looking for a times series database to be used by ruby any troughts?
<c-c>
apeiros: csmr
<apeiros>
c-c: github username?
kraljev11 has quit [Client Quit]
<apeiros>
ah
<certainty>
pagios: whisper can do that. it's used in graphite. I haven't used the gem though
<pagios>
yea dunno if that one is better than influx
govg has quit [Ping timeout: 256 seconds]
<atmosx>
depends on hwo you define "better" in that context.
<atmosx>
Anyway, that's on you :-P
<apeiros>
ah, also a way to contribute: an official channel bot. that source will be closed, though.
<atmosx>
apeiros: why people make closed source bots?
<apeiros>
atmosx: that bot will have ops. I don't want to make it too easy to break into it.
* apeiros
afk, lunch
SouL has joined #ruby
<atmosx>
apeiros: oh ic
sevvie has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
rkgudboy has quit [Quit: Leaving]
hmnhf has quit [Remote host closed the connection]
hmnhf has joined #ruby
craigp has quit [Remote host closed the connection]
decoponio has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rsavage has joined #ruby
User458764 has joined #ruby
rsavage is now known as r3Dk1nG
craigp has joined #ruby
bayed has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
craigp has quit [Read error: No route to host]
craigp has joined #ruby
tlarevo has joined #ruby
<certainty>
i have to think about that. If anybody else told me he wants to hide the source for security reasons, i'd probably tell him that this is probably not a good idea. But apeiros generally knows what he's talking about ... hmmmm
reinaldob has joined #ruby
keen__________26 has joined #ruby
<wasamasa>
<T:knows_what_he_talks_about>?
<certainty>
heh
sdothum has joined #ruby
Spami has joined #ruby
blueOxigen has joined #ruby
bruno- has joined #ruby
keen__________25 has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
Musashi007_ has quit [Quit: Musashi007_]
dx7 has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby
techsethi has quit [Quit: techsethi]
bronson has quit [Remote host closed the connection]
agrinb has joined #ruby
bim has joined #ruby
hanmac has joined #ruby
dx7 has quit [Ping timeout: 245 seconds]
ominari has joined #ruby
overcrush has quit [Quit: sleep]
thinkswan has quit [Remote host closed the connection]
hmnhf has quit [Quit: Konversation terminated!]
agrinb has quit [Ping timeout: 256 seconds]
Akagi201 has quit [Remote host closed the connection]
ominari has quit [Ping timeout: 252 seconds]
chthon has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
Akagi201 has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
Aristata has joined #ruby
<Aristata>
When I am doing this [1, 2] || [1] on an array, or perhaps doing [1, 2] && [1] on some arrays, what is the && or || called?
<Aristata>
Is there a technical name that encompasses those two operators
<certainty>
Aristata: those are boolean junctors. You probably mean & and |
<certainty>
those are methods that implement set functions
<Aristata>
Perfect
joshbamboo1 has joined #ruby
jimms has quit [Remote host closed the connection]
weendox has joined #ruby
<wasamasa>
just scroll through the ruby doc for arrays
<wasamasa>
you'll find them at the top or bottom
matled- has joined #ruby
palms has quit [Read error: Connection reset by peer]
slackbotgz has quit [Ping timeout: 256 seconds]
TheMoonMaster has quit [Ping timeout: 256 seconds]
Aristata has quit [Client Quit]
yeltzooo9 has joined #ruby
ChoiKyuSang_ has joined #ruby
marens_ has joined #ruby
marens_ has joined #ruby
yeltzooo has quit [Ping timeout: 256 seconds]
ruisanto1 has joined #ruby
mikemac has joined #ruby
allenn_ has joined #ruby
tgunr_ has joined #ruby
timmmaaaayyy has joined #ruby
jenrzzz has joined #ruby
bugo_ has joined #ruby
ChoiKyuSang_ has left #ruby [#ruby]
plashchynski has joined #ruby
shellfu_ has joined #ruby
haroldwu_ has joined #ruby
lokust_ has joined #ruby
avarice has joined #ruby
Ove___ has joined #ruby
ojacobson_ has joined #ruby
nux443_ has joined #ruby
NivenHuH has joined #ruby
eregon_ has joined #ruby
eam_ has joined #ruby
scottyme- has joined #ruby
Rarikon has joined #ruby
keelerm1 has joined #ruby
galeido_ has joined #ruby
dmoe_ has joined #ruby
serivich has joined #ruby
jlast has joined #ruby
atomi_ has joined #ruby
daed_ has joined #ruby
toertore has joined #ruby
bmn_ has joined #ruby
alexblom_ has joined #ruby
Evan- has joined #ruby
crazysim_ has joined #ruby
vpereira1 has joined #ruby
mayamai has joined #ruby
RandyT_ has joined #ruby
jerematic has joined #ruby
mclee_ has joined #ruby
relix_ has joined #ruby
monsieur1 has joined #ruby
pygospa has quit [Disconnected by services]
pipecloud has joined #ruby
pygospa has joined #ruby
DerisiveLogic has joined #ruby
chthon has joined #ruby
startupality has joined #ruby
tiago_ has joined #ruby
razieliyo has quit [*.net *.split]
kstuart has quit [*.net *.split]
Cust0sL1men has quit [*.net *.split]
relix has quit [*.net *.split]
allenn has quit [*.net *.split]
C1V0 has quit [*.net *.split]
matled has quit [*.net *.split]
weend0x has quit [*.net *.split]
tgunr has quit [*.net *.split]
ChoiKyuSang has quit [*.net *.split]
shellfu_afk has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
tiago has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Xoro__ has quit [*.net *.split]
gregf has quit [*.net *.split]
iamayam has quit [*.net *.split]
btmn has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
Vile` has quit [*.net *.split]
v0n has quit [*.net *.split]
bankair has quit [*.net *.split]
PierreRambaud has quit [*.net *.split]
haroldwu has quit [*.net *.split]
lsmola has quit [*.net *.split]
mozzarella has quit [*.net *.split]
BuGo has quit [*.net *.split]
zenspider has quit [*.net *.split]
nux443 has quit [*.net *.split]
spacemud has quit [*.net *.split]
Ove_ has quit [*.net *.split]
preller_ has quit [*.net *.split]
SirFunk_ has quit [*.net *.split]
eregon has quit [*.net *.split]
Schmidt has quit [*.net *.split]
pipework has quit [*.net *.split]
beevalee has quit [*.net *.split]
adzuci has quit [*.net *.split]
marcellus has quit [*.net *.split]
vpereira_ has quit [*.net *.split]
ninjazach has quit [*.net *.split]
daed has quit [*.net *.split]
soulcake has quit [*.net *.split]
magicien has quit [*.net *.split]
ghostpl has quit [*.net *.split]
Caius has quit [*.net *.split]
atom3 has quit [*.net *.split]
timmow has quit [*.net *.split]
catsoup has quit [*.net *.split]
eythoriu1 has quit [*.net *.split]
FDj has quit [*.net *.split]
ericwood has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
og01 has quit [*.net *.split]
kalleth has quit [*.net *.split]
pjaspers has quit [*.net *.split]
DefV has quit [*.net *.split]
philtr has quit [*.net *.split]
stylus has quit [*.net *.split]
mosez has quit [*.net *.split]
QKO has quit [*.net *.split]
elaptics has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
mayamai is now known as iamayam
ChoiKyuSang has joined #ruby
Lewix has joined #ruby
avelldiroll has quit [Ping timeout: 244 seconds]
pipecloud is now known as pipework
matled- is now known as matled
C1V0 has joined #ruby
ItSANgo has joined #ruby
SirFunk has joined #ruby
seaned has quit [Quit: …was abducted by aliens.]
xcombelle has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
adzuci has joined #ruby
xMopxShe- has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
kenichi_ has joined #ruby
bigkevmc_ has joined #ruby
_5kg has joined #ruby
maxmanders_ has joined #ruby
ninjazach has joined #ruby
RegulationD has joined #ruby
yottanami has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 244 seconds]
TheMoonMaster has joined #ruby
tubuliferous has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
lanemeyer has joined #ruby
FDj has joined #ruby
philtr has joined #ruby
stonecolddevin has joined #ruby
ghostpl has joined #ruby
pjaspers has joined #ruby
ericwood has joined #ruby
Caius has joined #ruby
elaptics has joined #ruby
atom3 has joined #ruby
soulcake has joined #ruby
mosez has joined #ruby
og01 has joined #ruby
DefV has joined #ruby
stylus has joined #ruby
sjohnsen has joined #ruby
eythoriu1 has joined #ruby
timmow has joined #ruby
QKO has joined #ruby
magicien has joined #ruby
catsoup has joined #ruby
kalleth has joined #ruby
giuseppesolinas has joined #ruby
ghostpl has quit [Max SendQ exceeded]
magicien has quit [Max SendQ exceeded]
blueOxigen has quit [Ping timeout: 248 seconds]
magicien has joined #ruby
Morkel has joined #ruby
bruno- has joined #ruby
ghostpl has joined #ruby
Schmidt has joined #ruby
crazysim has quit [*.net *.split]
toretore has quit [*.net *.split]
wingfire has quit [*.net *.split]
claptor has quit [*.net *.split]
WildBamboo-Josh has quit [*.net *.split]
pengin_ has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
ojacobson has quit [*.net *.split]
anonymus has quit [*.net *.split]
eam has quit [*.net *.split]
justinweiss has quit [*.net *.split]
atomi has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
surs has quit [*.net *.split]
crazymykl has quit [*.net *.split]
RandyT has quit [*.net *.split]
Evan_ has quit [*.net *.split]
alexblom has quit [*.net *.split]
tmi_ has quit [*.net *.split]
monsieurp has quit [*.net *.split]
bmn has quit [*.net *.split]
galeido has quit [*.net *.split]
mclee has quit [*.net *.split]
lokust has quit [*.net *.split]
kenichi has quit [*.net *.split]
keelerm has quit [*.net *.split]
maxmanders has quit [*.net *.split]
dmoe has quit [*.net *.split]
marens has quit [*.net *.split]
ruisantos has quit [*.net *.split]
peteyg has quit [*.net *.split]
timmmaaaayyy_ has quit [*.net *.split]
reinaldob has quit [*.net *.split]
patrick99e99 has quit [*.net *.split]
dumdedum has quit [*.net *.split]
riotjones has quit [*.net *.split]
speakingcode has quit [*.net *.split]
elfuego has quit [*.net *.split]
snath has quit [*.net *.split]
ascarter has quit [*.net *.split]
livcd has quit [*.net *.split]
terlar has quit [*.net *.split]
phreakocious has quit [*.net *.split]
csaunders_ has quit [*.net *.split]
uber has quit [*.net *.split]
crazydiamond has quit [*.net *.split]
benlieb has quit [*.net *.split]
kith has quit [*.net *.split]
synfin has quit [*.net *.split]
kies has quit [*.net *.split]
justinmcp has quit [*.net *.split]
kohvihoor has quit [*.net *.split]
patteh has quit [*.net *.split]
tskogberg has quit [*.net *.split]
sirecote has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
aytch has quit [*.net *.split]
miah has quit [*.net *.split]
vifino has quit [*.net *.split]
anekos has quit [*.net *.split]
Zarthus has quit [*.net *.split]
jamo_ has quit [*.net *.split]
patronus has quit [*.net *.split]
_code has quit [*.net *.split]
hackeron has quit [*.net *.split]
rvchangue has quit [*.net *.split]
cscheib has quit [*.net *.split]
madhatter has quit [*.net *.split]
gf3 has quit [*.net *.split]
RowdyChildren has quit [*.net *.split]
javawizard has quit [*.net *.split]
moshee has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
aep has quit [*.net *.split]
Meeh has quit [*.net *.split]
smooth_penguin has quit [*.net *.split]
_jasonmit has quit [*.net *.split]
nitrix has quit [*.net *.split]
max96at|off has quit [*.net *.split]
Pro|_ has quit [*.net *.split]
kloeri has quit [*.net *.split]
Nowaker has quit [*.net *.split]
mnemon has quit [*.net *.split]
_5moufl has quit [*.net *.split]
Killerkeksdose_ has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
evident has quit [*.net *.split]
ZYPP has quit [*.net *.split]
Cope has quit [*.net *.split]
bkutil has quit [*.net *.split]
dfoolz has quit [*.net *.split]
cescalante_ has quit [*.net *.split]
Exlee_ has quit [*.net *.split]
Muz has quit [*.net *.split]
deavid has quit [*.net *.split]
Mekkis has quit [*.net *.split]
xMopxShe- is now known as xMopxShell
<apeiros>
dem splits…
scottyme- is now known as scottymeuk
crazysim_ is now known as crazysim
<apeiros>
certainty: you are of course correct. security through obscurity *is* a bad idea.
lsmola has joined #ruby
<apeiros>
obscurity does not turn an insecure system into a secure system. but it is an additional layer of difficulty.
Cust0sL1men has joined #ruby
bluOxigen has joined #ruby
<apeiros>
and the tradeoff is easy to tell: if you have people who look at the source and make it more secure - make it open. if you don't have them, don't make it open.
RegulationD has quit [Ping timeout: 250 seconds]
peteyg has joined #ruby
PierreRambaud has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
avarice has quit [Quit: this channel is bakas]
dmoe_ is now known as dmoe
leafybasil is now known as 21WABQM66
codecop has joined #ruby
zenspider has joined #ruby
leafybasil has joined #ruby
SpleezeDos has joined #ruby
beevalee_ has joined #ruby
timonv has joined #ruby
marcellu1 has joined #ruby
livcd has joined #ruby
nomadic_ has joined #ruby
aytch has joined #ruby
vifino has joined #ruby
synfin has joined #ruby
patteh has joined #ruby
snath has joined #ruby
tskogberg has joined #ruby
spacemud has joined #ruby
evident has joined #ruby
RowdyChildren has joined #ruby
csaunders_ has joined #ruby
kiki_lamb has joined #ruby
reinaldob has joined #ruby
_jasonmit has joined #ruby
_code has joined #ruby
madhatter has joined #ruby
kohvihoor has joined #ruby
nitrix has joined #ruby
dumdedum has joined #ruby
hackeron has joined #ruby
_5moufl has joined #ruby
Mekkis has joined #ruby
kloeri has joined #ruby
aep has joined #ruby
moshee has joined #ruby
terlar has joined #ruby
deavid has joined #ruby
phreakocious has joined #ruby
bkutil has joined #ruby
gf3 has joined #ruby
crazydiamond has joined #ruby
ascarter has joined #ruby
justinmcp has joined #ruby
anekos has joined #ruby
cscheib has joined #ruby
speakingcode has joined #ruby
Meeh has joined #ruby
javawizard has joined #ruby
Zarthus has joined #ruby
elfuego has joined #ruby
palms_ has joined #ruby
sirecote has joined #ruby
riotjones has joined #ruby
jamo_ has joined #ruby
uber has joined #ruby
cescalante_ has joined #ruby
Killerkeksdose_ has joined #ruby
Cope has joined #ruby
rvchangue has joined #ruby
patrick99e99 has joined #ruby
benlieb has joined #ruby
Exlee_ has joined #ruby
max96at|off has joined #ruby
kith has joined #ruby
Muz has joined #ruby
Nowaker has joined #ruby
patronus has joined #ruby
dfoolz has joined #ruby
miah has joined #ruby
Pro|_ has joined #ruby
ZYPP has joined #ruby
mnemon has joined #ruby
smooth_penguin has joined #ruby
Blue_Ice has joined #ruby
kies has joined #ruby
SpleezeDos has quit [Max SendQ exceeded]
uber has quit [Max SendQ exceeded]
anonymus has joined #ruby
anonymus has quit [Client Quit]
21WABQM66 has quit [Ping timeout: 265 seconds]
preller_ has joined #ruby
nii2361 has joined #ruby
ldnunes has joined #ruby
segv has joined #ruby
uber has joined #ruby
uber is now known as Guest7704
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t_p has quit [Ping timeout: 250 seconds]
hpoydar has joined #ruby
Spleeze has joined #ruby
gregf1 has joined #ruby
mozzarella has joined #ruby
chinmay_dd has joined #ruby
<colorados>
what is best site , where i can find good ruby job?
jlast has joined #ruby
Olipro has joined #ruby
Olipro is now known as Guest81498
razieliyo has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
Guest37462 has quit [Ping timeout: 252 seconds]
jherbst has joined #ruby
nii2361 has quit [Ping timeout: 250 seconds]
maxmanders_ is now known as maxmanders
jlast has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
pengin has joined #ruby
Guest81498 has quit [Ping timeout: 252 seconds]
6A4ABYMS5 has joined #ruby
<ddv>
colorados: you can't figure out that yourself?
<atmosx>
colorados: wewrkremotely, SO jobs
<atmosx>
colorados: ruby jobs == rails jobs
pwattste has joined #ruby
sevvie has joined #ruby
v0n has joined #ruby
<hanmac1>
atmosx: imo thats the most problem with ruby jobs, that most people thinks "ruby = rails"
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Olipro_ has joined #ruby
Olipro_ is now known as Guest72521
<atmosx>
hanmac1: well, it's only logical.
elfuego has quit [Quit: elfuego]
User458764 has joined #ruby
sevvie has quit [Remote host closed the connection]
kstuart has joined #ruby
cassianoleal has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.1.1]
agrinb has joined #ruby
jcromartie has joined #ruby
alexherbo2 has joined #ruby
phutchins has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
chthon has joined #ruby
sprihodko has joined #ruby
<hanmac1>
atmosx: hm maybe we need some action like "Ruby is not Rails" to show the difference to the common people ;P
agrinb has quit [Ping timeout: 256 seconds]
_64k has joined #ruby
Wulf has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
<atmosx>
hanmac1: ah no, I don't think common people care
<shevy>
I seem to have this when using open-uri + open(URL_HERE); weird that I got a tempfile back there
govg_ has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
<DefV>
shevy: .read?
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hmnhf has joined #ruby
<shevy>
hmm lemme try, would seem to make sense
<hanmac1>
shevy Tempfile is a IO in a Delegator
<DefV>
File/TempFile is IO
<hanmac1>
or IO like object
kyle__ has joined #ruby
<shevy>
yeah .read works, thanks
rhllor has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
<DefV>
mind you that you won't be able to .read twice without a .rewind
govg has joined #ruby
oo_ has quit [Remote host closed the connection]
maximski has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
ncopa has joined #ruby
surs has joined #ruby
<ncopa>
hi how can i do something that corresponds to: bundler list --without <group>?
dfinninger has joined #ruby
c0def00d has joined #ruby
sambao21 has joined #ruby
<apeiros>
ncopa: that does not really explain what you want to do…
kyrylo has joined #ruby
<ncopa>
i want verify that a Gemfile has all needed deps, but exclude given groups (eg, testing and development)
<ncopa>
without actually install the bundle
<c0def00d>
I need some help with Rake. I have a situation where files A, B, C depend on the same file D. But that file D needs to go through some pre-processing before generating A, B, C. How would I manage for that preprocessing to onyl happen once?
<ncopa>
and list whatever dependency that is missing or conflicting
<ncopa>
eg. i want test/check that needed denendencies are there for bundler install --without testing development
SouL has quit [Read error: Connection reset by peer]
<ncopa>
but without actually installing anything
dfinninger has quit [Ping timeout: 252 seconds]
brb3 has joined #ruby
<cassianoleal>
use bundle check
banister has joined #ruby
<ncopa>
cassianoleal: thats what i do, but I cannot check with --without testing development
<ncopa>
it complains about missing deps in those groups
Renich has joined #ruby
<ncopa>
$ bundle check --withou
<ncopa>
t development
<ncopa>
Unknown switches '--without'
<cassianoleal>
it should work if you already have a Gemfile.lock in place, but if that's not the case then I don't know
bonhoeffer has joined #ruby
charliesome has joined #ruby
<ncopa>
i dont have a gemfile.lock in place
n008f4g_ has joined #ruby
<ncopa>
i suppose i have to create a gemfile.lock then
bonhoeffer has quit [Client Quit]
Renich has quit [Client Quit]
Aswebb_ has quit [Read error: No route to host]
Aswebb_ has joined #ruby
_64k has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Ping timeout: 244 seconds]
wicope has joined #ruby
sinkensabe has joined #ruby
Guest7704 has quit [Changing host]
Guest7704 has joined #ruby
tus has joined #ruby
Guest7704 is now known as uber
iml has joined #ruby
lkba has joined #ruby
<ncopa>
hum
fgo has joined #ruby
<ncopa>
bundler tries to build json 1.8.2. why is it not happy with the json 1.8.1 that was shipped with ruby-2.2.1? http://sprunge.us/FHjZ
marcusalmeida has joined #ruby
<marcusalmeida>
hi! i would like to know how i call self inside class_eval ? I need to know what class is opening with class_eval ?
jayeshsolanki has joined #ruby
ominari has joined #ruby
sprihodko has quit [Quit: (null)]
craigp has quit [Remote host closed the connection]
yottanami has joined #ruby
<jhass>
ncopa: note that the Gemfile.lock should be committed to the repo
<ncopa>
jhass: should it be included in the release tarball too?
<jhass>
yes
<ncopa>
and if it is not?
tier has joined #ruby
<ncopa>
redmine does not ship Gemfile.lock
<jhass>
then you miss the point of bundler
<jhass>
yes, redmine is not a prime example of using bundler in other areas too
<ncopa>
can i craete a Gemfile.lock manually?
<jhass>
bundle install will create it
Aswebb_ has quit [Remote host closed the connection]
<ncopa>
i dont really want install it with bundler
<ncopa>
i want repackage it so it can be installed without bundler
ominari has quit [Ping timeout: 248 seconds]
<ncopa>
in this step i just want verify that the deps was done right
<jhass>
bundlers main purpose is to ensure a consistent environment, it does so by installing specific versions of the dependencies and ensuring only those can be loaded by the application
droidburgundy has joined #ruby
<jhass>
recent rubygems versions can read Gemfile's with gem install -g
jlast has joined #ruby
<jhass>
that's as good as bundler without a lock
plashchynski has quit [Quit: plashchynski]
<ncopa>
i just want to verify that the deps are satisfied without installing anything
arup_r has quit [Remote host closed the connection]
<most_wanted>
wouldnt line 6 fail the first time i execute?
<most_wanted>
i cant share all the code
<hanmac1>
most_wanted: isnt line10 and line11 using the same arr[5] ?
<bradland>
most_wanted: if you change the filename so it ends in .rb, Gist will use code coloring
<certainty>
apeiros: yepp that's what i suspected and i agree that it is more difficult to find security problems without source especially in a somewhat controlled environment like irc where people might recognize that someone bitches with the bot, relatively quick. so nevermind :)
<bradland>
just a heads up
arup_r has joined #ruby
RegulationD has joined #ruby
<most_wanted>
im sorry, should that make a difference?
davispuh has joined #ruby
<bradland>
just makes it easier to read, which tends to increase the number of responses
tubuliferous has joined #ruby
<most_wanted>
oh, the index,
<bradland>
lots of folks (me included) will look at a gist posted as txt and decide it's not worth the trouble to try and parse what i'm looking at
<most_wanted>
they both use arr[5], but still, line 6 still fail
<most_wanted>
line 6 is still gonna fail
<most_wanted>
this is a nil pointer problem
<most_wanted>
error
kaffepanna has joined #ruby
bankair has joined #ruby
joe_meade is now known as joemeade
_pakchoi_ops has joined #ruby
<most_wanted>
array index, is not the problem here
justinweiss has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland>
most_wanted: what error do you receive?
patrick99e99 has quit [Ping timeout: 255 seconds]
jcromartie has joined #ruby
elfuego has joined #ruby
patrick99e99 has joined #ruby
craigp has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
<most_wanted>
undefined method for nil:nilClass no method error
shazaum has joined #ruby
<most_wanted>
the first pass did not generate this error
joonty has quit [Quit: joonty]
vtunka has joined #ruby
adriancb has joined #ruby
adriancb_ has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
<hanmac1>
most_wanted: can you check the size of arr before so you can see if its big enough?
<hanmac1>
what kind of structure do you have inside in it so you need to call .value.to_s on it?
GnuYawk has joined #ruby
Feyn has quit [Quit: Leaving]
Limix has joined #ruby
<bradland>
one of your array indexes contains a nil value that you didn't expect. you need to either fix that in the location where arr is defined, or handle nils during the insert operations.
thinkswan has quit [Remote host closed the connection]
<jhass>
most_wanted: since you're unable to share any relevant information to debug this issue, best would be to hire a consultant that solves it for you
<bradland>
also curious why string concatenation instead of interpolation?
wicope has quit [Remote host closed the connection]
<headius>
Java can be as fast as C if you write it like C
<headius>
unsurprisingly, most people write it like C++
charliesome has quit [Quit: zzz]
bronson has joined #ruby
thinkswan has quit [Remote host closed the connection]
rbennacer has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
willharrison has joined #ruby
GnuYawk has joined #ruby
sanguisdex has quit [Quit: Leaving.]
icebourg has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
jefus__ has joined #ruby
Aswebb_ has joined #ruby
jwinder has joined #ruby
momomomomo has joined #ruby
_maes_ has joined #ruby
AlphaAtom has joined #ruby
iwaffles has joined #ruby
jefus_ has quit [Ping timeout: 252 seconds]
sanguisdex has joined #ruby
rhllor has joined #ruby
fryguy9 has quit [Quit: Leaving.]
jefus__ is now known as jefus
airdisa_ has quit [Remote host closed the connection]
rhllor has quit [Read error: Connection reset by peer]
thinkswan has joined #ruby
airdisa has joined #ruby
icebourg has quit []
gorroth has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
LJT has joined #ruby
AlexRussia has joined #ruby
rhllor has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
michael_mbp has quit [Excess Flood]
fryguy9 has joined #ruby
airdisa_ has joined #ruby
<hanmac1>
headius & a5i ruby can be fast as C/C++ too if using bindings ;P
<eam_>
headius: java cannot be as fast as C, though on average large unoptimized programs may be
<headius>
eam_: trust me, I know it can because I've seen the optimized assembly
michael_mbp has joined #ruby
<headius>
most Java programs are not just bags of static functions like C, though
chrissonar has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
paradoja has quit [Read error: Connection reset by peer]
<eam_>
I agree for the average case, but if you're willing to spend time optimizing there's no chance
airdisa has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
<headius>
well, I disagree :-)
bronson has joined #ruby
startupality has quit [Client Quit]
eam_ is now known as eam
dumdedum has joined #ruby
sloshy has quit [Quit: leaving]
<eam>
headius: you're a jruby guy, right? I have a question for you about jruby gc behavior vs mri
nfk|laptop has joined #ruby
iamninja has joined #ruby
<eam>
mri has a guard around leaking descriptors, when EMFILE is hit it stops, fires the gc, then retries the syscall
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
I found jruby has some of the same guards, but they're ineffective in jruby because on the jvm the gc is concurrent -- and I think there's no sane mechanism to block on the gc
f3lp has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<eam>
(I found a work around for that, but it doesn't seem suitable for production)
tagrudev has quit [Remote host closed the connection]
<eam>
I'm tempted to submit a PR to just delete the guards in jruby
freerobby has quit [Quit: Leaving.]
<headius>
eam: mmm yes, the guards are there and they *might* help in some cases, but probably not many
<headius>
do you have a case that leaks descriptors?
tesuji has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
<headius>
I've always been surprised that many Rubyists just walk away from open files etc and think that's totally fine
aganov has quit [Quit: Leaving]
<sweeper>
do it in a block :3
sevvie has joined #ruby
<eam>
headius: the problem is the majority of gems are written by mri folk
<eam>
so they just don't notice their own bugs -- then on jruby the behavior changes
mistermocha has joined #ruby
<headius>
yes, they should be testing on JRuby too
<eam>
I agree, but :D
<headius>
anyway, this is getting away from your question
iamninja has quit [Ping timeout: 250 seconds]
<headius>
there's not really anything more you can do
<eam>
the issue is the open; gc; open sequence will always fail on jruby
<eam>
I'm thinking it's probably better to just not have that double sequence and instead fail initially?
speakingcode has quit [Ping timeout: 256 seconds]
riotjones has quit [Remote host closed the connection]
iml has joined #ruby
<eam>
iirc jruby has it around file opens but not sockets (mri has both)
brb3 has quit [Quit: ZZZzzz…]
lele has quit [Ping timeout: 272 seconds]
<headius>
well, it is *possible* that GC will run, and then the finalizer thread will be scheduled, and it will finish processing leaked descriptors before we get back to try again
<headius>
how likely that is to happen...probably not very
<eam>
yeah in practice I've never seen it occur
<headius>
MRI doesn't do concurrent GC, doesn't do concurrent finalization
<eam>
I think that may have changed a bit in 2.2, but yeah
<headius>
2.2 is no more concurrent than 2.1
speakingcode has joined #ruby
<headius>
they do some parallel sweeping I think, but that's different
<eam>
so basically I have two paths forward: 1) remove the existing guard in file opens or 2) add the guard to sockets even though it doesn't work to satisfy my OCD
jwinder has quit [Remote host closed the connection]
<headius>
hah
<headius>
how bout you file a bug and we can discuss with some other JRuby folks
<eam>
ok, will do
livathinos has joined #ruby
<headius>
if we can't make it actually be useful in practice, it's just useless code
<headius>
and extra noise
<eam>
headius: re: 2.2 I have another issue I'm still trying to pinpoint in 2.2 where a finalizer somehow runs out of order and calls close() at the wrong time
sevvie has quit [Ping timeout: 264 seconds]
<eam>
and ends up double closing
xenokiller has joined #ruby
<headius>
eam: that's interesting...finalizers should definitely not run twice, so I would suspect you have finalization and normal execution both trying to close it
sevvie has joined #ruby
<eam>
yes, that's what's happening
lele has joined #ruby
iml has quit [Ping timeout: 255 seconds]
<eam>
my only test case is a 5+ minute rpsec run and I know where it's occuring, but it's hard to figure out how
<headius>
yeah, that's pretty weird...since in order to close it you'd have to have a reference to it :-)
* hanmac1
is happy that he doesnt need to develop for jruby ;P
<headius>
which should prevent it from finalizing
<headius>
hanmac1: these are problems of concurrency, not problems of JRuby
<adaedra>
JRuby is not so horrible
<headius>
if MRI was concurrent the same issues would arise
<adaedra>
Just not suitable for CLI
<eam>
jruby is great
f3lp has quit [Quit: Leaving]
tier_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
I do aim at getting a first version online by this week-end, though.
dfinninger has quit [Remote host closed the connection]
adriancb has joined #ruby
anaeem1 has joined #ruby
<miah>
cool
Takle has joined #ruby
<miah>
today is thursday right? =)
kyrylo_ is now known as kyrylo
Takle has quit [Remote host closed the connection]
<GaryOak_>
I could probably help with something
<GaryOak_>
on Sunday
bradleyprice has joined #ruby
Parker0 has joined #ruby
gr33n7007h has joined #ruby
RegulationD has quit [Remote host closed the connection]
Takle has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Remote host closed the connection]
blackmesa has joined #ruby
JimmyNeutron has quit [Remote host closed the connection]
Pharaoh2_ has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
Parker0 has quit [Client Quit]
agrinb has joined #ruby
Parker0 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
asmodlol has quit [Quit: Leaving]
Aswebb_ has joined #ruby
Pharaoh2 has quit [Ping timeout: 248 seconds]
Takle has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: bbl]
cjim__ has joined #ruby
thagomizer has joined #ruby
thagomizer has left #ruby [#ruby]
jobewan has joined #ruby
leafybas_ has joined #ruby
Junaos has quit [Remote host closed the connection]
User458764 has joined #ruby
leafybas_ has quit [Remote host closed the connection]
andikr has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Read error: Connection reset by peer]
Junaos has joined #ruby
sevvie has joined #ruby
quimrstorres has quit [Remote host closed the connection]
mrsolo has joined #ruby
krisquigley has quit [Remote host closed the connection]
jimms has joined #ruby
x77686d has quit [Quit: x77686d]
nickjj_ has joined #ruby
ponga has quit [Quit: Leaving...]
theRoUS|mtg is now known as theRoUS
quimrstorres has joined #ruby
krisquigley has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
leafybasil has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
agarie has joined #ruby
\ELLIOTTCABLE is now known as ELLIOTTCABLE\
richardjortega has joined #ruby
Zai00 has quit [Quit: Zai00]
<richardjortega>
hello
patrick99e99 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah>
hi
nickjj has quit [Ping timeout: 272 seconds]
<richardjortega>
just created a gem and having difficulty on trying to figure out how to create a file/folder when another app uses my gem
agrinb has quit [Remote host closed the connection]
jimms_ has quit [Ping timeout: 244 seconds]
<shevy>
wat
<shevy>
require 'name_of_your_gem'
momomomomo has joined #ruby
<shevy>
that is the standard convention and the most simple one too
<richardjortega>
it's a gem for generated pngs based on some text, and i'd just like for when it exports to save to the apps present directory
<shevy>
simply add an API that allows for precisely that
tcrypt has joined #ruby
<shevy>
ExportImages.from '/tmp'
krisquigley has quit [Ping timeout: 264 seconds]
<richardjortega>
mm... ok i'll check that out
quimrstorres has quit [Ping timeout: 265 seconds]
<shevy>
in the above example, the gem name should conform to: require 'export_images'
fenicks has joined #ruby
<richardjortega>
ok that makes sense
<shevy>
if it is namespaced, you may have to add the leading name to it, like: Images::Export.method_call_here() (or alternatively, just use a .new but many people like specific names that make sense)
<shevy>
your gem in question can then go and handle the directory-path passed to the API there
robertt_dex has joined #ruby
<richardjortega>
so i changed it just now so it just saves to the folder it's being called from
rbennacer has joined #ruby
christiandsg has joined #ruby
<richardjortega>
i guess i was having issues making a new folder in their current directory in which to save to
<richardjortega>
shevy: will try suggestion
wald0 has quit [Quit: Lost terminal]
momomomomo has quit [Ping timeout: 248 seconds]
<richardjortega>
I was trying somethign like this: File.expand_path("../../generated_images/#{filename}", __FILE__)
<richardjortega>
then checking with FileUtils if the directory existed
<richardjortega>
in my tests it was fine, but called from another app it wasn't relative
anaeem1 has quit [Remote host closed the connection]
<richardjortega>
ah the user could just pass filepath to me.... argghhh didnt' think about that until talking
Mon_Ouie has joined #ruby
christiandsg has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
atomi_ has quit [Quit: leaving]
craigp has quit [Remote host closed the connection]
balazs has joined #ruby
atomi has joined #ruby
C1V0 has quit []
tier has quit [Read error: Connection reset by peer]
zzing has joined #ruby
<balazs>
can anyone explain why I can append to a frozen strip, but not "strip!" it ?
tier has joined #ruby
ta has quit [Ping timeout: 256 seconds]
<zzing>
If I have a map that might have an element 'x' (such that I would access it with mymap['x']) what is the correct way to test for its existence?
<apeiros>
balazs: how do you append?
<apeiros>
zzing: I assume by "map" you mean Hash. and then it'd be Hash#has_key?
<apeiros>
aliases: key?, include?
mitchellhenke has joined #ruby
momomomomo has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
lanemeyer has quit [Ping timeout: 246 seconds]
SouL has joined #ruby
<zzing>
apeiros, yes Hash. I forgot if it was called that (I am more familiar with the data structures than the specific names given in ruby yet)
<balazs>
apeiros: +=
<miah>
i'd use key? or make sure to use #fetch with a default set
<apeiros>
balazs: String#+ does not mutate the receiver
<apeiros>
balazs: you create a new string, and assign that new string to the variable
juanpablo_ has joined #ruby
<apeiros>
zzing: no worries. just making sure we talk about the same. you might have a custom class too or idontknowwhat :)
<zzing>
quite right
<balazs>
apeiros: sure, but intuitiely isn't a frozen variable like a constant ?
<zzing>
Just running into ruby (with sinatra) from a too complex java springmvc project. (love the language btw)
<apeiros>
balazs: misunderstanding. you freeze an object, not a variable.
<jhass>
maybe, though my vague memory claims I've seen it before evil.rb
rubytor has quit [Ping timeout: 255 seconds]
<miah>
#freeze docs say
<miah>
Prevents further modifications to obj. A RuntimeError will be raised if modification is attempted. There is no way to unfreeze a frozen object. See also Object#frozen?.
<apeiros>
there have been talks about Object#thaw and #unfreeze iirc. but neither has ever been added.
deol has joined #ruby
wet88 has joined #ruby
wet88 has left #ruby ["Leaving the channel"]
<miah>
does dup carry the frozen status i wonder?
wet88 has joined #ruby
fryguy9 has joined #ruby
<apeiros>
it's a bit sad that there's no #clone which does not copy frozen state. or put differently: that there's no dup which does copy the singleton_class
<apeiros>
miah: no, dup does not. clone does.
<apeiros>
but dup does not copy the singleton_class. clone otoh does.
<miah>
there was a good talk about ruby immutability recently iirc
<apeiros>
which means there's a gap in functionality. stumbled over that when I wanted to clone frozen classes :(
rokob has quit [Remote host closed the connection]
<shadoi>
apeiros: huh.. never thought of it that way, I always though dup was intended as a way to get a mutable obj from an immutable one.
<shadoi>
where clone was supposed to be an exact copy
ny837 has joined #ruby
<apeiros>
sausage + ratatouille = yummi
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
milesmatthias has joined #ruby
Morkel has joined #ruby
<ny837>
Hi guys, quick question about sucker_punch. As MRI only executes code in one thread, what exactly happens when I run code A, async.perform(B), C, and D? Is it executed in this order: A, C, D, B?
devoldmx_ has quit []
<jhass>
ny837: MRI is still concurrent, it's just not parallel
<jhass>
for most workloads
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
ny837: most likely there's no order guarantee
<ny837>
@jhass: So, it'll be executed in any order
<jhass>
yep
<apeiros>
for B that is.
<apeiros>
A C D will be executed in that order of course.
rubytor has joined #ruby
<ny837>
ok makes sense. One more question. I have these jobs created in Sinatra. Once I am done with A, C and D and we respond to the client, and say B is still not done. Then what happens? Does Sinatra / Passenger wait for B to finish before responding and closing the forked process?
baweaver has quit [Remote host closed the connection]
agrinb has joined #ruby
<ny837>
I understand that this may be a silly question :)
OrbitalKitten has joined #ruby
sandelius has joined #ruby
<jhass>
that depends a bit on what async.perform does, but most likely the answer is no
milesmatthias has quit [Ping timeout: 252 seconds]
sandelius has quit [Max SendQ exceeded]
<ny837>
So, there's a possibility that B never gets executed?
<jhass>
no
anaeem1 has joined #ruby
bronson has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 256 seconds]
kyrylo_ has joined #ruby
<apeiros>
I don't think that's what he meant
<jhass>
(well, depends again on what async.perform does exactly, but again very unlikely)
kyrylo has quit [Ping timeout: 272 seconds]
<apeiros>
there's a possibility it doesn't get executed - i.e. when the whole app dies
gisli has left #ruby [#ruby]
<apeiros>
but the rest depends on sucker_punch's implementation
cjim__ has quit [Quit: (null)]
nfk|laptop has joined #ruby
<ny837>
Yeah, I understand if the whole app dies. Okay, I'll ask the author about this scenario. Thank you so much, guys!
<greedo>
does ruby have a "throwaway" variable?
<apeiros>
greedo: no. what do you intend to do with it?
hpoydar has joined #ruby
<greedo>
an underscore
<apeiros>
that's not really an answer to my question
<apeiros>
but _ is a valid local variable name in ruby
kith has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
kith has joined #ruby
<greedo>
that works
<jhass>
actually _ can even be used in some contexts where using a regular variable twice would produce a warning with ruby -w
<jhass>
(now I need to remember where that was I guess)
<apeiros>
I think 2.2 warns about all unused vars
<apeiros>
and all lvars starting with _ are exempt
<greedo>
I use unused vars in python
<jhass>
that's true for some time, but not what I mean :)
ghr has quit [Ping timeout: 250 seconds]
kenichi_ is now known as kenichi
<greedo>
I was just seeing if it also existed in ruby
jimms has joined #ruby
benegget_ has joined #ruby
<jhass>
>> def foo(a, a); end;
<eval-in_>
jhass => /tmp/execpad-89ff7410f4f8/source-89ff7410f4f8:2: duplicated argument name ... (https://eval.in/305231)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<miah>
rubocop usually tells me about unused vars =)
<miah>
or maybe syntastic is just catching the ruby errors at this point
shadoi1 has joined #ruby
x77686d has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
razieliyo has quit [Quit: Saliendo]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
ny837 has quit []
Takle has joined #ruby
rubytor has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
adriancb has joined #ruby
User458764 has joined #ruby
milesmatthias has joined #ruby
O_the_Del has joined #ruby
jottr_ has joined #ruby
ELLIOTTCABLE\ is now known as ELLIOTTCABLE
jenrzzz has joined #ruby
psy_ has joined #ruby
RegulationD has joined #ruby
nickjj_ has joined #ruby
Takle has quit [Remote host closed the connection]
Pharaoh2_ is now known as Pharaoh2
doodlehaus has joined #ruby
nickjj__ has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
snath has quit [Ping timeout: 252 seconds]
rokob has joined #ruby
LJT has quit [Quit: Sleeping...]
jottr_ has quit [Ping timeout: 272 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
dumdedum has quit [Quit: foo]
snath has joined #ruby
juanca_ has quit [Remote host closed the connection]
juanca_ has joined #ruby
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
richardjortega has quit [Quit: Page closed]
RegulationD has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
swgillespie has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
hpoydar has joined #ruby
duncannz has joined #ruby
bim has quit [Remote host closed the connection]
milesmatthias has quit [Remote host closed the connection]
adriancb has joined #ruby
juanca_ has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
bim has joined #ruby
freerobby has joined #ruby
quimrstorres has joined #ruby
Alina-malina has joined #ruby
milesmatthias has joined #ruby
newdan has joined #ruby
djbkd has joined #ruby
werelivinginthef has joined #ruby
ismaelga has quit [Remote host closed the connection]
hardlin3r has joined #ruby
shevy has joined #ruby
<newdan>
Hi all, in Python if I want something to optionally be a pair, I can do `a, b = maybe_a_pair`, and if it turns out it isn't a pair I can catch a ValueError and handle the other case
sevvie has quit [Ping timeout: 256 seconds]
<newdan>
Is there an equivalent in Ruby with destructuring? Or should I use maybe_a_pair.is_a? Array
O_the_Del has left #ruby ["Leaving..."]
quimrstorres has quit [Remote host closed the connection]
CanTonic has joined #ruby
CanTonic has quit [Client Quit]
quimrstorres has joined #ruby
<apeiros>
newdan: and what do you use in ruby to represent a pair? an Array?
<newdan>
apeiros, I suppose; like in the Python example I eventually just want to variables to refer to the two elements
<apeiros>
it will also be nil if the second element of the array is nil
tlarevo has quit [Remote host closed the connection]
leafybasil has joined #ruby
<newdan>
apeiros, hm. I suppose that is a pretty rare corner case that's not too relevant to me right now, but out of curiosity, what do you do in that case?
DerisiveLogic has quit [Ping timeout: 264 seconds]
<apeiros>
you can use Array#size
tlarevo has joined #ruby
Notte has quit [Remote host closed the connection]
milesmatthias has quit [Remote host closed the connection]
<newdan>
apeiros, gotcha. In either event won't bother me and this'll work perfectly, thanks for the help!
<apeiros>
yw
User458764 has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
led has joined #ruby
maximski has joined #ruby
_64k has quit [Ping timeout: 256 seconds]
delianides has joined #ruby
skelterjohn has left #ruby [#ruby]
reinaldo_ is now known as reinaldob
r3Dk1nG has quit [Quit: Konversation terminated!]
The_Phoenix has joined #ruby
timmmaaaayyy has left #ruby ["Leaving..."]
djbkd has quit [Remote host closed the connection]
A205B064 has joined #ruby
doodleha_ has joined #ruby
craigp has quit [Remote host closed the connection]
doodlehaus has quit [Read error: Connection reset by peer]
shellfu has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
lanemeyer has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
rdark has quit [Quit: leaving]
freerobby has quit [Ping timeout: 264 seconds]
_64k has joined #ruby
gfawcettpq has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
rbennacer has joined #ruby
Limix has quit [Quit: Limix]
lidenbrock has joined #ruby
craigp has joined #ruby
<jsrn>
Say I have an object, and within a function I'm only (currently) interested in one attribute of that object. Is there any memory saving in only passing along that attribute vs. passing the whole object?
jottr_ has joined #ruby
iliketurtles has joined #ruby
<Mon_Ouie>
No, either way you pass a reference to an object, you don't copy its contents (instance variables, etc.), and on all implementations as far as I know all references take up the same amount of space
benegget_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
<jsrn>
Mon_Ouie: Great, thanks :)
jayeshsolanki has quit [Quit: bye!]
fenicks has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
bluOxigen has joined #ruby
joemeade has quit [Remote host closed the connection]
maximski has quit []
iliketurtles has quit [Remote host closed the connection]
Vile` has joined #ruby
djbkd has joined #ruby
kraljev11 has quit [Quit: kraljev11]
juanca_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
<shevy>
when I may require to reshuffle dataset based on different ways of sorting
yqt has joined #ruby
<shevy>
from the commandline, where the user may pass/use different flags, I suppose using a Hash is better than an Array?
riotjones has joined #ruby
juanca_ has joined #ruby
juanca_ has quit [Read error: Connection reset by peer]
<shevy>
for instance
<shevy>
result = `ls -la`
teddyp1cker has joined #ruby
juanca_ has joined #ruby
einarj has joined #ruby
<shevy>
hmm... using an Array and splitting on ' ' or "\t" may be simplest, but perhaps it may be better to name each field there, to allow for a simpler reshuffling of said dataset
ROOM1 has joined #ruby
<ROOM1>
hi
<sweeper>
shevy: surely there are like 20 cli gems?
einarj_ has joined #ruby
willharrison has joined #ruby
<ROOM1>
hi am I invisible
<shevy>
sweeper: which one would you recommend
giuseppesolinas has joined #ruby
momomomomo has joined #ruby
<sweeper>
no clue, just sayin, there's prolly something decent out there
<ROOM1>
I think here it's not for me right
<shadoi>
shevy: slop is a good first shot
<miah>
mixlib-cli is alright
<shevy>
ROOM1 go and learn ruby man
<miah>
but so is optionparser =)
<miah>
and optparser is builtin..
hiyosi has joined #ruby
<shadoi>
slop is the closest to optparser without the weirdness of optparser :)
DerisiveLogic has quit [Ping timeout: 245 seconds]
Zai00 has joined #ruby
beneggett has quit [Ping timeout: 244 seconds]
beneggett has joined #ruby
zenith_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
quimrstorres has joined #ruby
lanemeyer has quit []
ascarter has joined #ruby
beneggett has quit [Client Quit]
existensil has quit [Quit: WeeChat 0.4.2]
existensil has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
fakam has joined #ruby
krisquigley has joined #ruby
Takle has joined #ruby
jimms has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<fakam>
Do employers prefer you know Test::Unit or Rspec?
<fakam>
I am learning testing and want to find the best suite.
dc_ has joined #ruby
quimrstorres has joined #ruby
<fakam>
That employers look for.
<weaksauce>
fakam I think learning how to write testable code and the basics of testing is what they want
<weaksauce>
realistically there isn't *that* much difference between the two.
<fakam>
So as long as I am testing is the importance.
ascarter has joined #ruby
iamninja has joined #ruby
rbennacer has quit [Remote host closed the connection]
existensil has quit [Quit: WeeChat 0.4.2]
<fakam>
I tend to like the way Rspec is more than Test::Unit
lxsameer has quit [Quit: Leaving]
DerisiveLogic has joined #ruby
<weaksauce>
pretty much. you can learn how to use rspec pretty quickly and vice versa.
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<weaksauce>
go for rspec if you like it more.
jimms has joined #ruby
existensil has joined #ruby
<fakam>
I like how it's more english readable like ruby
<fakam>
Thanks for the input, I appreciate it.
baweaver has quit [Ping timeout: 252 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
plashchynski has joined #ruby
<fakam>
I heard that JR devs do mostly Testing, is that true?
quimrstorres has quit [Ping timeout: 244 seconds]
quimrsto_ has joined #ruby
Takle has quit [Remote host closed the connection]
<weaksauce>
depends on the shop but yeah testing would be more a jr dev thing to do if the responsibilities were split up. (one person tests, one person writes the implementation)
existensil has quit [Client Quit]
lanemeyer has joined #ruby
doodlehaus has joined #ruby
<greedo>
thanks baweaver, kstuart
<fakam>
Okay, I'm just trying to prepare myself on what I need to know as a JR dev :)
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hardlin3r has joined #ruby
<fakam>
Next step is testing rails :)
deol has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
deol has joined #ruby
<greedo>
sometimes you have to write both code and tests in parallel
<fakam>
Well, I have been writing rails apps without testing to understand the inner workings.
JDiPierro has quit [Remote host closed the connection]
beneggett has joined #ruby
rodfersou has quit [Quit: leaving]
jimms has quit [Remote host closed the connection]
harumph has joined #ruby
qhartman has joined #ruby
<harumph>
hello ruby
harumph has left #ruby [#ruby]
hardlin3r has quit [Ping timeout: 255 seconds]
doodlehaus has quit [Ping timeout: 245 seconds]
<fakam>
I have been learning for 3 months ruby, rails, JS Jquery HTML CSS.. I have 3 months left of full time studying.. hopfully I can land a jr dev job.
<fakam>
6 months of total learning.
MasterPiece has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
<fakam>
Anyways thanks for the input.
shazaum has quit [Quit: Leaving]
adriancb_ has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
brb3 has quit [Quit: <.<]
<led>
I am curious about the semantics of Array#uniq where a block is used, it seems that the "first" match is always returned i.e. [{a: 1, b:2}, {a:1, b:3}, {a:2, b:99}].uniq{|e| e[:a]} returns [{:a=>1, :b=>2}, {:a=>2, :b=>99}] but the order of the output is not necessarily defined as it basically uses Hash#values i.e. [{:a=>2, :b=>99}, {:a=>1, :b=>2}] seems possible as an output
Takle has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
silkfox has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
adriancb has joined #ruby
Channel6 has joined #ruby
rhllor has quit [Quit: rhllor]
hpoydar has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has quit [Quit: Leaving]
dc_ has quit [Remote host closed the connection]
quimrsto_ has quit [Remote host closed the connection]
<devops_guy>
Hey guys! Any good online tools to help escape a rather large bash PS1 export? I need to do this for a server spec test
banister is now known as banisterfiend
dc_ has quit [Ping timeout: 250 seconds]
<jamgood96>
If I have a date, and a time, and I know the timezone (but not if it's standard or daylight) how would I go about building a datetime?
LJT has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
delianides has quit [Remote host closed the connection]
giuseppesolinas has left #ruby ["Leaving"]
Takle has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 252 seconds]
<GaryOak_>
depending on if the timezone respects dst and depending on the date you can determine the datetime, I think
djbkd has quit [Remote host closed the connection]
DavidDudson has joined #ruby
<GaryOak_>
jamgood96: but I guess you aren't asking that :P
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
charliesome has joined #ruby
duncannz has joined #ruby
newdan has quit [Remote host closed the connection]
<jamgood96>
GaryOak_: So I have a specific date, and a specific time, and I know that it is *meant* to be Eastern time. So I'd like to build a datetime from that and have Ruby figure out if it would be EDT or EST. That make sense?
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has joined #ruby
cpruitt has quit [Quit: cpruitt]
jalcine has quit [Read error: Connection reset by peer]
jalcine has joined #ruby
jenrzzz has joined #ruby
kblake has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostpl_ has quit [Ping timeout: 272 seconds]
<bradland>
jamgood96: ugh, i see why you're frustrated lol
bronson has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
anaeem1_ has joined #ruby
<bradland>
i work with time zones in two contexts: within our rails app (where i have ActiveSupport::TimeWithZone to back me up) and in shell scripts, where I always use UTC, because...
anaeem1_ has quit [Remote host closed the connection]
<bradland>
fuck time zones
anaeem1 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<bradland>
the core and std-lib classess allow you to create valid Time objects, but manipulating the localization of those objects once created, is not terribly robust
christiandsg has joined #ruby
delianides has joined #ruby
<bradland>
std-lib's TZInfo looks useful though, as apeiros points out
baweaver has quit [Remote host closed the connection]
n_blownapart has quit []
<jamgood96>
Stalkr^: I've used Carrierwave
anaeem1 has quit [Ping timeout: 252 seconds]
neruda has joined #ruby
Flcn has quit [Quit: Be back later ...]
<neruda>
hi, when irb gives me back the heap(?) address of a newly created object what is the particular usefulness of that info? Whats the most common use case where thats needed?
RegulationD has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
jimms has quit [Remote host closed the connection]
existensil has joined #ruby
djbkd has quit [Remote host closed the connection]
<Radar>
neruda: It doesn't really serve any real purpose.
vim_shimm has quit [Ping timeout: 264 seconds]
<GaryOak_>
It's basically an identifier to check if something is pointing at the same object
wldcordeiro has quit [Ping timeout: 256 seconds]
<jamgood96>
neruda: I'm sure the heap info is useful to someone, just not the everyday programmer
<GaryOak_>
You don't have to have a naming system for the objects, and you get differentiation for free
nym has joined #ruby
delianid_ has joined #ruby
charliesome has quit [Quit: zzz]
RegulationD has quit [Ping timeout: 252 seconds]
_maes_ has joined #ruby
delianides has quit [Ping timeout: 264 seconds]
deliani__ has joined #ruby
kirun has quit [Quit: Client exiting]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
delianid_ has quit [Ping timeout: 246 seconds]
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
jerius has joined #ruby
ominari has joined #ruby
swgillespie has joined #ruby
Tricon has quit [Quit: Lost terminal]
baweaver has joined #ruby
DavidDudson has joined #ruby
ghostpl_ has joined #ruby
fumduq has quit [Ping timeout: 252 seconds]
jefus has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
ghr has joined #ruby
jefus has joined #ruby
christiandsg has quit [Remote host closed the connection]
snockerton has joined #ruby
dc_ has joined #ruby
Wolland has joined #ruby
fumduq has joined #ruby
a5i has joined #ruby
Lewix has quit [Remote host closed the connection]
<snockerton>
what does a variable then comma in isolation indicate from a syntax perspective?
Wolland has quit [Client Quit]
<snockerton>
i.e.name, junk = x.to_s.split('(')
<snockerton>
name, junk = x.to_s.split('(')
<snockerton>
i've never seen a comma used like this