Lewix has quit [Remote host closed the connection]
bootcoder has quit [Quit: Konversation terminated!]
<lethjakm1>
huh....must be factory girl doing something funky.
<lethjakm1>
no clue what that is then....
bootcoder has joined #ruby
<h0rrorvacui>
dllama: that should use your package manager and try to resolve dependencies
yfeldblum has joined #ruby
duggiefresh has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Aryasam has joined #ruby
yfeldblum has joined #ruby
thumpba_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<h0rrorvacui>
dllama: it may try to install macports though...
Lewix has joined #ruby
<h0rrorvacui>
dllama: scratch that I looked it up and it says it will search for package managers then if none found it will install macports
predator217 has joined #ruby
<dllama>
after doing rvm pkg install openssl, it said to update gems. so i did use 1.9.3 (as thats whats in my user environment rather than system) and its been reinstalling 1.9.3 for past 15 minutes
<dllama>
so i'm waiting on that to finish b4 trying to upgrade to 2.0 again
<h0rrorvacui>
also reading rvm.io/rvm/autolibs says "rvm install --autolibs=packages 2.0.0-p247"
peregrine81 has quit []
<dllama>
running that now
<dllama>
hoping for the best
RichardBaker has quit [Quit: RichardBaker]
predator117 has quit [Ping timeout: 240 seconds]
<jalcine>
rvm's quite patchy to work with
robustus has quit [Ping timeout: 264 seconds]
<h0rrorvacui>
I think it just takes some getting use to
<h0rrorvacui>
Their suggested use isn't enough to really cover all bases well.
<lethjakm1>
I don't like rvm...I liked rbenv a lot better.
<lethjakm1>
I've had better luck with it
<h0rrorvacui>
rbenv is great for people who don't need the gemsets
<h0rrorvacui>
and other features of rvm
yfeldblu_ has joined #ruby
robustus has joined #ruby
dnyy has quit [Remote host closed the connection]
<dllama>
nice, 2.0 ready to go
<dllama>
thank you h0rrorvacui!
<h0rrorvacui>
dllama: if you want to avoid the problem in the future you might want to set "rvm autolibs packages" or something
timonv has joined #ruby
<jalcine>
lethjakm1: same here
dnyy has joined #ruby
mlpinit has joined #ruby
<dllama>
great, now ssl errors
<dllama>
for gems
<jalcine>
it just handles the act of building ruby, nothing more
<lethjakm1>
jalcine: yep...and all I want from a ruby installer is ruby
<lethjakm1>
and gem I suppose
<jalcine>
the occasional gem is nice :p
yfeldblum has quit [Ping timeout: 240 seconds]
jamblack has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
iaj_ has quit [Read error: Operation timed out]
<dllama>
sigh….
<dllama>
u guys seen this error?
<dllama>
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
<h0rrorvacui>
didn't work did it
sross has left #ruby [#ruby]
<zastern>
bnagy: i def had command line tools installed, but running xcode-select --install seems to have fixed it regardless
<zastern>
so there's a thing.
sevenseacat has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
<dllama>
h0rrorvacui, i'm on 2.0.0-p247 now, so the upgrade worked, but hte ssl error preventing me from being able to do antyhign
Aryasam has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
<h0rrorvacui>
dllama: I'm at a lost for the SSL error
<h0rrorvacui>
My best bet would be to google it :P
ch0mskiii has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
chomskiii has joined #ruby
<jalcine>
yeah, sounds like either you might be missing certs or something's borked
TheShaun is now known as TheShaun|AFK
mlpinit has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
<dllama>
rvm osx-ssl-certs update all fixed it
Aryasam has joined #ruby
willob1 has quit [Quit: Leaving.]
taternuts has joined #ruby
sross has joined #ruby
soba has joined #ruby
tkuchiki has joined #ruby
mlpinit has joined #ruby
soba_ has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
<h0rrorvacui>
awesome seems like you had everything possible go wrong then
<dllama>
thats an understatement lol
willob1 has joined #ruby
<dllama>
but after up'ing to 2.0, i was able to install ruby_speech
katselphrime has quit [Quit: WeeChat 0.3.7]
<dllama>
so now waiting on adhearsion :)
havenwood has joined #ruby
iliketurtles has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnyy has quit [Remote host closed the connection]
soba has quit [Ping timeout: 240 seconds]
dnyy has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
mrsolo has joined #ruby
ssvo_ has quit [Ping timeout: 260 seconds]
theRoUS|afk is now known as theRoUS
ping-pong has joined #ruby
huttan has quit [Ping timeout: 246 seconds]
awefawf has joined #ruby
<awefawf>
Hello
bigoldrock has left #ruby [#ruby]
<havenwood>
helloo
<awefawf>
So I don't really understand the placeholder for the .each method, the one between the | |
<havenwood>
awefawf: block arguments go in between those
<h0rrorvacui>
what don't you understand about them?
DrCode has joined #ruby
<awefawf>
The example on codeacdemy is object.each { |item| # Do something }
<awefawf>
But I don't really get what goes between | |
<awefawf>
if my object is an array, I'm saying for each element int he array, do something
<h0rrorvacui>
its a variable, it takes the value of each item of object iterating over them each
<havenwood>
awefawf: So it iterates over `object` and on each iteration, `item` gets set to what the value is on that iteration.
<awefawf>
Just in case I need to use it later?
<havenwood>
awefawf: No, so you can use it within the block on each pass.
<h0rrorvacui>
just in the blcok
freerobby has quit [Quit: Leaving.]
<awefawf>
I think I get it
freerobby has joined #ruby
<awefawf>
So I can say if |item| is something, do something else
stkowski has quit [Quit: stkowski]
<h0rrorvacui>
Ruby is different in its use of iterators
dnyy has quit [Remote host closed the connection]
<h0rrorvacui>
.each is for doing something to each item of a collection
<awefawf>
hm
<h0rrorvacui>
for each item do something
<havenwood>
awefawf: Like: 1.upto(10).each { |number| puts "#{number} is set to the value of the enumerator on this iteration." }
kaspergrubbe has quit [Remote host closed the connection]
dnyy has joined #ruby
<awefawf>
okay
<awefawf>
Cool, ty
<h0rrorvacui>
what maybe confusing you is why you even have to assign a value
kaspergrubbe has joined #ruby
Fuzai has quit [Remote host closed the connection]
Fuzai has joined #ruby
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<jalcine>
Anyone have luck with vim-ruby-debugger or any of the debugger gems?
iamjarvo has joined #ruby
nwertman has joined #ruby
SevenWolf has joined #ruby
maletor has joined #ruby
mr_red has quit [Quit: Bye :)]
keppy has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
lukec has quit [Quit: lukec]
dnyy has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
nfk has quit [Quit: yawn]
danshultz has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 240 seconds]
dmyers has quit [Quit: dmyers]
dnyy has joined #ruby
danshultz has joined #ruby
rjhunter has joined #ruby
atno has quit [Remote host closed the connection]
<awefawf>
Why doesn't this code double the value of the numbers in the array when it prints?
nwertman has quit [Remote host closed the connection]
awefawf has quit [Ping timeout: 265 seconds]
<malomalo>
I've written a C extension and was wondering how to profile my c extension. I was trying to add gprof, but am having difficultly having it compile with gprof.
mrsolo has joined #ruby
cads has joined #ruby
jblack has quit [Quit: Lost terminal]
Mars__ has joined #ruby
lethjakm1 is now known as lethjakman
ravster has quit [Read error: Connection reset by peer]
soba has joined #ruby
ravster has joined #ruby
sparq_ has joined #ruby
dubios has joined #ruby
nwertman has joined #ruby
cads has quit [Remote host closed the connection]
Monie has joined #ruby
mlpinit_ has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<bricker>
Is it stupid to put comments inside of a module_eval?
thumpba_ has quit [Remote host closed the connection]
<Nilium>
Why would it matter if there was a comment in one?
benlieb has quit [Quit: benlieb]
mlpinit has quit [Ping timeout: 260 seconds]
<Nilium>
It's a comment, it's not like it does anything.
kayloos has quit []
<bricker>
yeah, you're right
Monie has quit [Ping timeout: 246 seconds]
jkhwan_ has quit [Remote host closed the connection]
Mars__ has quit [Remote host closed the connection]
jkhwan has joined #ruby
kayloos has joined #ruby
Mars__ has joined #ruby
jamesaanderson has joined #ruby
banjara has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
asteros has quit [Quit: asteros]
jkhwan has quit [Ping timeout: 272 seconds]
malomalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mars__ has quit [Ping timeout: 272 seconds]
nwertman has quit [Ping timeout: 252 seconds]
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dnyy has quit [Remote host closed the connection]
asteros has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
willob1 has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 272 seconds]
bugsinlights has quit [Ping timeout: 265 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
dhruvasagar has joined #ruby
jhulten has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
DanKnox_away is now known as DanKnox
duggiefresh has quit [Remote host closed the connection]
bugsinlights has joined #ruby
bugsinlights has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
aces1up has quit []
jamesaanderson has joined #ruby
tomzx_mac has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Ping timeout: 252 seconds]
dnyy has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
__LX__ has joined #ruby
tomzx_mac has joined #ruby
Guest5934 has quit [Ping timeout: 265 seconds]
dnyy has joined #ruby
funburn has quit [Quit: funburn]
ewnd9 has joined #ruby
ch0mskiii has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
ravster has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neaer has joined #ruby
Bry8Star{T2 has joined #ruby
timonv has joined #ruby
jamesaanderson has joined #ruby
mojjojo has quit [Quit: mojjojo]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
mojjojo has joined #ruby
dnyy has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
kev has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
mojjojo has quit [Client Quit]
kev is now known as Guest51403
<Guest51403>
hey guys, sounds like a joke but it ain't - what's the name for ruby programmers?
hogeo has quit [Remote host closed the connection]
Bry8Star{T2_ has joined #ruby
<Guest51403>
I've heard of Perl-monks
dllama has left #ruby [#ruby]
hogeo has joined #ruby
<sevenseacat>
rubyists?
<Guest51403>
ah cool
<sevenseacat>
i know python people call themselves pythonistas
<Guest51403>
is that commonly used?
<Guest51403>
never heard that one haha
colonolGron has quit [Quit: ciao]
<Guest51403>
thankyou then !
<sevenseacat>
np :)
havenwood has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Guest51403 has quit [Client Quit]
Apane has quit []
Apane has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
iliketurtles has joined #ruby
Apane has quit [Client Quit]
Apane has joined #ruby
mary5030 has joined #ruby
hogeo has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Ping timeout: 252 seconds]
Apane is now known as Enape_1
Enape_1 has quit [Client Quit]
Apane has joined #ruby
Apane has quit [Client Quit]
Enape_101 has joined #ruby
huttan has joined #ruby
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox is now known as DanKnox_away
dnyy has quit [Remote host closed the connection]
hogeo has joined #ruby
divi has joined #ruby
Zeeo has joined #ruby
dnyy has joined #ruby
<Zeeo>
Good evening good mr's
iliketurtles has quit [Ping timeout: 244 seconds]
huttan has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
rezzack has joined #ruby
<Zeeo>
is it possible to define a method with no arguments(for example: object.to_a), but affects the object on wich is called ? if so, how is that archieved. If I completely misunderstood everything feel free to enlighten me
<sam113101>
Zeeo: you can define the method on the class of the object, or on the object itself
<Zeeo>
sam113101 I want a method that I can call in this way: (object.method) and I can possibly pass data to by just typing this with no arguments added
kaspergrubbe has quit [Ping timeout: 252 seconds]
<havenwood>
Zeeo: Don't do this, but things along these lines:
<havenwood>
>> class Object; def to_a; [self] end end; 5.to_a #=> [5]
<Zeeo>
havenwood: is that even gonna work? in my case the object is an array wich I don't know how to refer to inside the said method
<havenwood>
Zeeo: So for example, if you wanted to add an Array#sum method: class Array; def sum; reduce :+ end end; [1,2,3].sum #=> 6
verynew has joined #ruby
<sam113101>
you should tell us exactly what you want to do
<havenwood>
Zeeo: So you open up the Array class `class Array` then add your method `def your_method`.
keppy has quit [Quit: leaving]
axl_ has joined #ruby
nari has joined #ruby
polaco is now known as polaco_zZz
<havenwood>
Zeeo: but yeah, whatcha doing?
<Zeeo>
sam113101: I have an object wich I want to edit in a separate method, this object is actually an hash and I want to retrieve its values inside the method, but since I don't want it to accept any parameters, I don't know how to refer to its values
nowthatsamatt has quit [Quit: nowthatsamatt]
<havenwood>
Zeeo: Inside the method, the Array object is `self`.
<havenwood>
i said that poorly, but anyways `self`
<Zeeo>
sam113101: the method is defined inside a class
<havenwood>
Zeeo: I didn't understand your explanation. :O Is it an Array or a Hash you have? What would example input be, and the output?
zz_tsykoduk is now known as tsykoduk
verynew has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 244 seconds]
lfox has quit [Quit: ZZZzzz…]
ewnd9 has quit [Ping timeout: 252 seconds]
scottstamp is now known as zz_scottstamp
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zeeo>
havenwood: nevermind, " <havenwood> Zeeo: Inside the method, the Array object is `self`. " solved it for me, I thought that "self" inside the method was object.class
railsraider has joined #ruby
io_syl has quit [Ping timeout: 244 seconds]
Enape_101 has quit []
petey has joined #ruby
jamesaanderson has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 265 seconds]
nari has quit [Ping timeout: 252 seconds]
axl_ has quit [Ping timeout: 260 seconds]
Soda has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
railsraider has quit [Quit: railsraider]
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
axl_ has joined #ruby
Mars__ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
havenn is now known as havenwoo
havenwoo is now known as havenwood
mrbrdo_ has joined #ruby
<mrbrdo_>
anyone knows what's going on with RubyForge? It's been down for me for days now
Mars__ has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
iamjarvo has quit [Remote host closed the connection]
luckyruby has joined #ruby
<sevenseacat>
whats rubyforge?
jhulten has joined #ruby
<havenwood>
mrbrdo_: Google was warning RubyForge was hacked a bit ago then it went offline.
<havenwood>
sevenseacat: I think a pre-cursor to RubyGems.org?
<havenwood>
I never use it.
<havenwood>
mrbrdo_: What do you use RubyForge for?
<mrbrdo_>
damn
<mrbrdo_>
havenwood: sequel docs were there
<sevenseacat>
ah hah
<havenwood>
mrbrdo_: ewww, so they were...
<mrbrdo_>
:)
radic has quit [Disconnected by services]
radic_ has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
tsykoduk is now known as zz_tsykoduk
iliketurtles has joined #ruby
<mrbrdo_>
I just noticed there is an issue open to move the docs heh
epichero has joined #ruby
asteros has quit [Quit: asteros]
Aryasam has quit [Ping timeout: 244 seconds]
psyl0n has quit [Quit: psyl0n]
phinfonet has quit []
jhulten has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
ner0x has joined #ruby
saarinen has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 260 seconds]
rockets has joined #ruby
<rockets>
Anybody have a favorite way of getting a system-wide ruby 1.9.3 on RHEL/CentOS systems?
<rockets>
System-wide rbenv feels a bit hacky
Aryasam has joined #ruby
<havenwood>
rockets: I like ruby-install with chruby. I also saw a recent "community" or something yum package for 1.9, sec looking for it.
<jblack>
I tried using opencv with ruby earlier. It's a disaster.
<jblack>
a half dozen competing gems at 0.0.x and a whole bunch of versioning stuff with opencv going on
Aryasam has joined #ruby
<h0rrorvacui>
jblack: do you have rvm?
<jblack>
Nope. I don't use rvm.
<h0rrorvacui>
jblack: well if you did you could possibly setup a gemset
<jblack>
Oh, the gems don't conflict.
dnewkerk-keyz has quit [Remote host closed the connection]
<jblack>
there's just a pile of don't work gems out there... afeld-opencv, artoo-opencv, hornetseye-opencv, opencv,opencv-ffi, opencv-ffi-fast, ropencv, ruby-opencv
Nogbit has quit [Quit: Leaving.]
bigkevmcd has quit [Ping timeout: 248 seconds]
<h0rrorvacui>
I see.
h_kon has joined #ruby
<jblack>
it's mostly opencv's fault, I suspect. It looks like they've been going through heavy api changes.
falood has quit [Read error: Connection reset by peer]
<h0rrorvacui>
I took it to mean that the gems were conflicting sorry
frustrum has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<lolmaus>
Is there an IRC channel dedicated to Middleman?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
amacgregor has joined #ruby
amacgregor__ has quit [Read error: Connection reset by peer]
relix has quit [Client Quit]
awarner has quit [Ping timeout: 265 seconds]
kayloos has quit [Remote host closed the connection]
kayloos has joined #ruby
marr has joined #ruby
falood has quit [Read error: Connection reset by peer]
falood has joined #ruby
falood has quit [Remote host closed the connection]
kayloos has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
mengu has joined #ruby
clmsy has joined #ruby
droo has joined #ruby
bradhe has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<clmsy>
Hello every1 , i would wanted to know the equivalent of the python requests.post function on ruby, but i couldn't find an exact match. im looking for a ruby library that i can send post request with xml
droo has left #ruby ["Leaving"]
banjara has quit [Client Quit]
banjara has joined #ruby
amacgregor_ has joined #ruby
Gooder has quit [Remote host closed the connection]
<_br_>
well, sounds like you already have an answer then
<niop>
what's insufficient? read only, the rake file is.
fgo has joined #ruby
jbpros has quit [Client Quit]
camilasan has joined #ruby
<niop>
you mean.. it can hang about in root mode? and that means i'll have to reinstall everything from scratch? how i do i know what was rooted and what wasn't. that would be enough to drive one crazy almost.
starchild_ has joined #ruby
fgo has quit [Read error: No route to host]
<_br_>
niop: type "mount"
<_br_>
niop: Does the mounted filesystem appear as read only?
mercwithamouth has quit [Ping timeout: 244 seconds]
banjara has quit [Quit: Leaving.]
<niop>
ok,, i'm using another's mac at the moment, so not so familiar with volumes here and mounts. but i have the output of the command you mentioned...
banjara has joined #ruby
<niop>
is there a way to find out what vol it is? like vol?
<niop>
22:44:44-~$ mount
<niop>
devfs on /dev (devfs, local, nobrowse)
<niop>
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
<niop>
map auto_home on /home (autofs, automounted, nobrowse)
<niop>
localhost:/5T9QfNBivnKlgc-nb--_CQ on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
danshultz has quit [Remote host closed the connection]
<apeiros>
while the resolution of constants depends on the lexical scope, you can get every constant from anywhere
<benzrf>
apeiros: explain?
<benzrf>
also, closures over constants work right?
sayan has quit [Ping timeout: 240 seconds]
<apeiros>
the lexical scope is a bit like "current working directory" and the constant name like "relative or absolute path"
danshultz has joined #ruby
banjara has quit [Client Quit]
<benzrf>
ok
<apeiros>
where Foo::Bar is equivalent to a relative path, and ::Foo::Bar to an absolute path
banjara has joined #ruby
<benzrf>
what is storing Foo in ::Foo?
<benzrf>
main?
<apeiros>
::Foo means "top level Foo"
<benzrf>
yes, what is the top level
<apeiros>
and top level namespace is Object
<benzrf>
what is BasicObject then
danshult_ has joined #ruby
<shay->
hi, I want to write a program where I can run several other programs (bash, ruby, perl, ...) in parallel. This programs will print text and prompts the user for input from time to time. Do you think this can be done easily in ruby? If yes do you have some hints or helpful articles for this or at least some catchwords to search for?
danshultz has quit [Read error: Connection reset by peer]
hashpuppy has joined #ruby
<apeiros>
BasicObject has no constants and no lookup
brennanMKE has quit [Ping timeout: 265 seconds]
<benzrf>
ok
<apeiros>
it's a bit special in that regard
bigkevmcd has joined #ruby
<benzrf>
shay-: maybe
<benzrf>
shay-: i'm not so knowledgable about ruby, but it seems like a perfectly capable language
<shay->
benzrf: thanks, but any point to start or some code to look at?
<apeiros>
"everybody needs a friend"
bigkevmcd has joined #ruby
<benzrf>
apeiros: i just got diabetes
<apeiros>
sweetness overdose? :)
<benzrf>
:I
freerobby has joined #ruby
<benzrf>
also wtf is with rubinius X
<Hanmac>
benzrf: they are only posers
<hoelzro>
has that gone anywhere?
<benzrf>
i figured
<benzrf>
>To be relevant today, a programming language must provide simple yet powerful facilities for composition and collaboration. A language does not need general immutable state, purely pure functions, or complex type systems, no matter how inferred.
<hoelzro>
I stopped listening when I read the "remove everything from Perl" bit
<benzrf>
A language does not need general immutable state, purely pure
<benzrf>
functions, or complex type systems, no matter how inferred.
<benzrf>
come on maaaan
<benzrf>
you know you love haskell
* hoelzro
<3 haskell
<benzrf>
I only wish ruby had sections & currying & composition
<DouweM>
yeah, haskell is great
<benzrf>
im gettin tired of writing blocks like {|foo| foo.bar baz}
dnyy has quit [Remote host closed the connection]
<benzrf>
why cant i say &:bar baz
<DouweM>
oh god, this whole thing again
banjara has quit [Client Quit]
<benzrf>
:D
kaldrenon has joined #ruby
<benzrf>
have you seen LiveScript
<benzrf>
it has *attribute sections*
<shay->
is it possible to launch several bash script in parallel from ruby and communicate with them? E.g. asking the user some questions and so on? If you know how, do you have some keywords to google for?
<benzrf>
[foo, bar, baz].map (.attr)
dnyy has joined #ruby
`Chris` has quit []
<benzrf>
shay-: in python id use subprocess
<benzrf>
dunno about ruby
<benzrf>
:|
jcromart_ has joined #ruby
lkba has joined #ruby
<benzrf>
>Rubinius X is an experiment in modernizing Ruby. Rubinius X can be imagined as a time machine that brings the future to the present, enabling us to write modern programs now.
<benzrf>
u srs m8
noop has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
<shay->
benzfr: ok thx but I want to use ruby :)
<benzrf>
shaman42: yeah
<benzrf>
man why does ruby have such an inferior import system
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
banjara has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
banjara has joined #ruby
jamesaanderson has quit [Client Quit]
vpretzel has quit [Remote host closed the connection]
matchaw_ has joined #ruby
vpretzel has joined #ruby
nateberkopec has quit [Quit: Leaving...]
banjara has quit [Client Quit]
banjara has joined #ruby
nari has quit [Ping timeout: 265 seconds]
_maes_ has quit [Client Quit]
matchaw has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
andrewcarter has joined #ruby
<andrewcarter>
I've written a Rakefile that performs quite a few shell commands, and I'm wondering which method of running those commands I should be using
pwh has quit []
juan_ has joined #ruby
<andrewcarter>
I want to provide the option of showing or not showing the output of those commands
<andrewcarter>
and I want to be able to evaluate the success of those commands
jhaals has quit [Ping timeout: 252 seconds]
<andrewcarter>
any thoughts on that?
nari has joined #ruby
keen___ has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has joined #ruby
banjara has quit [Client Quit]
keen_ has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
banjara has joined #ruby
voodoofish has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
hogeo has joined #ruby
blackmesa has joined #ruby
aa47f8 has quit [Quit: aa47f8]
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brtdv has quit []
<_br_>
andrewcarter: you mean running shell commands either with system "" to get a status code or `` to get output ?
iamjarvo has joined #ruby
<andrewcarter>
right
<andrewcarter>
like `` works fine but
<andrewcarter>
I want an option to actually show the stream, which `` doesn't do
wallerdev has joined #ruby
<andrewcarter>
system does that with the ability to specify out: and stuff
<workmad3>
andrewcarter: sounds like you may want to deal with Popen
<andrewcarter>
workmad3: I was looking at that- can I show the stream as it happens with Popen?
<lastk>
HI guys, im trying run autotest here with minitest using ruby 2.0, but it doesnt work with autotest, when i run ruby test/test_bleh.rb it works but if i do autotest instead it doenst find minitest: https://gist.github.com/lastk/5a029d880fef7a2fcb4d
johnnyfuchs has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
nari has joined #ruby
banisterfiend has joined #ruby
ShellFu has joined #ruby
Hanmac has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 272 seconds]
kaldrenon has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
kaldrenon has joined #ruby
baroquebobcat has joined #ruby
ce_afk is now known as cescalante
klaut_ has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
psyl0n has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jrhe has quit [Ping timeout: 264 seconds]
TMM has joined #ruby
vlad_starkov has joined #ruby
nari has quit [Ping timeout: 245 seconds]
stringoO has quit [Read error: Connection reset by peer]
timonv has joined #ruby
geekbri has joined #ruby
jbpros has quit [Quit: jbpros]
vlad_starkov has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
dnyy has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 272 seconds]
nari has joined #ruby
banjara has quit [Quit: Leaving.]
Floydzy has quit [Quit: Floydzy]
banjara has joined #ruby
dnyy has joined #ruby
rippa has joined #ruby
Clooth has quit [Quit: Leaving...]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
heftig has quit [Quit: Quitting]
JonahR has joined #ruby
drumusician has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
stringoO has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
jrhe has joined #ruby
vpretzel_ has joined #ruby
gskwrk has quit [Read error: Connection reset by peer]
vpretzel has quit [Disconnected by services]
gskwrk has joined #ruby
vpretzel_ is now known as vpretzel
vlad_starkov has joined #ruby
pixelgremlins has joined #ruby
sbos99 has quit [Quit: Leaving]
psyl0n has quit [Quit: psyl0n]
joost_like_toast has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
bradhe has joined #ruby
jrhe has joined #ruby
DropsOfSerenity has joined #ruby
thams has quit [Quit: thams]
dnyy has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
<joost_like_toast>
anyone been able to successfully install rails4 on rubinius 2.1?
<joost_like_toast>
i kee having troubles with the mime-types gem
AntelopeSalad has joined #ruby
<joost_like_toast>
Bundler::GemspecError: Could not read gem at /home/vagrant/.rbenv/versions/rbx-2.1.0/gems/cache/mime-types-1.25.gem. It may be corrupted.
<joost_like_toast>
An error occurred while installing mime-types (1.25), and Bundler cannot
<joost_like_toast>
continue
yalue has joined #ruby
cescalante is now known as ce_afk
<joost_like_toast>
version 2.0 of the gem does work fine on the other hand
banjara has quit [Quit: Leaving.]
ffranz1 has joined #ruby
banjara has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
scottstamp is now known as zz_scottstamp
ffranz has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
nateberkopec has joined #ruby
CaptainJet has joined #ruby
gskwrk has quit [Quit: Lost terminal]
thepumpkin has joined #ruby
vlad_sta_ has joined #ruby
Davey has joined #ruby
baordog has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
mengu has quit []
nari has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 264 seconds]
scottstamp has joined #ruby
jrhe has joined #ruby
zz_scottstamp has quit [Disconnected by services]
LarsSmit has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ce_afk is now known as cescalante
jrhe has left #ruby [#ruby]
Lewix has joined #ruby
buscon has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 248 seconds]
VTLob has joined #ruby
<platzhirsch>
joost_like_toast: no idea, had my problems with alternative Ruby machines, too
ShellFu is now known as ShellFu_hotbeand
workmad3 has quit [Ping timeout: 264 seconds]
<joost_like_toast>
platzhirsch: mhmmm... the annoying thing is the newer version of the gem works fine
banjara has quit [Client Quit]
shredding has joined #ruby
banjara has joined #ruby
<platzhirsch>
and you need the old one for legacy dependencies?
<joost_like_toast>
platzhirsch rails gem 4.0.1 has it as dependancy
lethjakman has joined #ruby
banjara has quit [Client Quit]
ShellFu_hotbeand is now known as ShellFu
banjara has joined #ruby
<platzhirsch>
ah.. darn
banjara has quit [Client Quit]
banjara has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
<joost_like_toast>
platzhirsch yup...
benwoody has quit [Quit: benwoody]
Czupa has joined #ruby
mmcdaris has joined #ruby
dnyy has joined #ruby
zarubin has joined #ruby
EddSeabrook has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Read error: Operation timed out]
lethjakm1 has joined #ruby
banjara has quit [Client Quit]
sumark has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
zipper has joined #ruby
amritanshu_RnD has quit [Remote host closed the connection]
brennanMKE has joined #ruby
acrussell has joined #ruby
Xeago_ has joined #ruby
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sumark has joined #ruby
nari has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
taion809 is now known as zzz_taion809
benwoody has joined #ruby
<joost_like_toast>
platzhirsh: worked around it changes the gem file.lock to use the 2.0 version
aganov has quit [Remote host closed the connection]
iamjarvo has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
Xeago_ has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
divi_ has joined #ruby
saarinen has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
marr has quit [Read error: Connection reset by peer]
weszlem has joined #ruby
banjara has quit [Client Quit]
kaspergrubbe has quit [Remote host closed the connection]
banjara has joined #ruby
aapzak has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
MrV has quit [Quit: MrV]
dnyy has joined #ruby
aapzak has joined #ruby
ahawkins has quit [Quit: leaving]
pwh has joined #ruby
weszlem has quit [Read error: Operation timed out]
vince_prignano has joined #ruby
vlad_starkov has joined #ruby
yfeldblum has joined #ruby
lmickh has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
camilasan has quit [Remote host closed the connection]
robert__ is now known as robert_
camilasan has joined #ruby
vlad_sta_ has quit [Ping timeout: 265 seconds]
nwertman has joined #ruby
benwoody has quit [Quit: benwoody]
acrussell1 has joined #ruby
acrussell has quit [Remote host closed the connection]
ner0x has joined #ruby
maiconrcf has joined #ruby
TMM has quit [Quit: Ex-Chat]
zipper has quit [Ping timeout: 240 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
tkuchiki has joined #ruby
saarinen has quit [Quit: saarinen]
banjara has quit [Client Quit]
<maiconrcf>
anyone use know sinatra? i have troubles for make a struct mvc for it
duggiefresh has quit [Read error: Connection reset by peer]
pel_daniel has joined #ruby
<Papipo>
db-less models here
<Papipo>
:/
<Papipo>
thanks anyway
Voodoofish430 has joined #ruby
<mrfoto>
then just do it by hand
<mrfoto>
i18n
sepp2k has joined #ruby
a8wj4f934 has joined #ruby
a8wj4f934 is now known as dan_
bradhe has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby
shredding has quit [Quit: shredding]
<dan_>
I'm having trouble with adding additional ruby sources. When I add "http://production.s3.rubygems.org" as a source, and /etc/host blank out rubygems.org, I still fail on Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/latest_specs.4.8.gz) (it doesn't appear to be trying the mirror)? Anyone understand how this is supposed to work?
Liquid-- has quit [Quit: Computer has gone to sleep.]
dnyy has quit [Read error: Connection reset by peer]
banjara has joined #ruby
dnyy has joined #ruby
jbpros has joined #ruby
banjara has quit [Client Quit]
IceDragon has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
timonv has quit [Read error: Connection reset by peer]
jbpros has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
user258467 has quit [Quit: Quitte]
timonv has joined #ruby
seoNinjaWarrior has joined #ruby
pwh has quit []
aspires has quit [Quit: sudo making a sandwich]
banjara has quit [Client Quit]
banjara has joined #ruby
typicalbender has joined #ruby
ehaliewicz has joined #ruby
iamjarvo has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
mrfoto has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
seoNinjaWarrior has quit [Client Quit]
kevind_ has joined #ruby
lfox has joined #ruby
benlieb has joined #ruby
DanKnox_away is now known as DanKnox
aspires has joined #ruby
mrsolo has joined #ruby
nisstyre has quit [Quit: Leaving]
benzrf has left #ruby [#ruby]
cescalante is now known as ce_afk
Tuxist has joined #ruby
deception has joined #ruby
dagobah has quit [Remote host closed the connection]
h0rrorvacui has joined #ruby
banjara has quit [Quit: Leaving.]
sbos99 has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
banjara has joined #ruby
dnyy has quit [Remote host closed the connection]
mikepack has joined #ruby
pwh has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
zipper has joined #ruby
einarj has quit [Remote host closed the connection]
bradhe has joined #ruby
dnyy has joined #ruby
einarj has joined #ruby
maletor has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
claymore has joined #ruby
SHyx0rmZ has joined #ruby
einarj has quit [Read error: Operation timed out]
SloggerKhan has quit [Quit: Leaving.]
Mars__ has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
bluOxigen has joined #ruby
Mars___ has joined #ruby
srji has quit [Ping timeout: 264 seconds]
dan_ has quit []
banjara has quit [Quit: Leaving.]
shaunbak_ has quit []
banjara has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
mark_locklear has quit [Ping timeout: 244 seconds]
Mars__ has quit [Ping timeout: 240 seconds]
d45h has quit [Ping timeout: 252 seconds]
ShellFu has quit [Remote host closed the connection]
zastern has joined #ruby
camilasan has quit []
apeiros has quit [Remote host closed the connection]
RichardBaker has joined #ruby
ShellFu has joined #ruby
apeiros has joined #ruby
dnyy has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
dnyy has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
zastern_ has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
m0no has quit [Quit: leaving]
whunt has joined #ruby
benlieb has quit [Quit: benlieb]
burlyscudd has joined #ruby
werdnativ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Magic has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
Magic has left #ruby [#ruby]
ismlages has quit [Ping timeout: 272 seconds]
kro0ub has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
joost_like_toast has quit [Read error: Operation timed out]
RichardBaker has quit [Ping timeout: 264 seconds]
Dave is now known as Guest76398
Es0teric has joined #ruby
danman has joined #ruby
artm has quit [Read error: Operation timed out]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
DanBoy has joined #ruby
<kro0ub>
Hi, I have some personal data in a JSON file which I need to process according to these specifications: https://github.com/kro0ub/script-spec/blob/master/README.md Could anyone have a look at them and estimate how long it would take for a competent coder to implement, and perhaps give me a rough quote?
banjara has quit [Quit: Leaving.]
<ericwood>
kro0ub: this isn't a place for hiring
banjara has joined #ruby
nomenkun has joined #ruby
carraroj has joined #ruby
<ericwood>
now, if you wanted to implement it yourself and had questions as to how that would work, that's a different story
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
flops has quit [Quit: leaving]
banjara has quit [Client Quit]
petey has joined #ruby
banjara has joined #ruby
nobitanobi has joined #ruby
banjara has quit [Client Quit]
<nobitanobi>
I am using MiniMagick, and when trying to open an IMG which has a https protocol, I am getting "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" - Any thoughts on how to bypass this?
<miza>
anyone has proposal for my previus question?
<miza>
I want to write a ruby wrapper for an api and i want to read some wellwritten wrappers to see some good stuff that i should follow
freezey has quit [Remote host closed the connection]
nongeek has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
banjara has joined #ruby
<apeiros>
MrZYX: to be honest, I haven't yet seen an html documentation format I *really* liked.
freezey has joined #ruby
<nongeek>
Hello Ruby folks
<nongeek>
Is ruby die?
<nobitanobi>
nongeek, yup.
yacks has joined #ruby
<DouweM>
indeed, ruby is die
<nongeek>
My mean is that we have node.js and angular
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Read error: Connection reset by peer]
BigBlueBacon has quit [Ping timeout: 246 seconds]
<nongeek>
In your idea future is for Javascript?
weszlem has quit []
<nongeek>
nobitanobi: why?
danshultz has joined #ruby
<nobitanobi>
why what?
<nongeek>
why you say me yes
bricker`1ork has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<nobitanobi>
nongeek, I was being sarcastic. Obviously is not dead.
Liquid-- has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
<nongeek>
some Node.js users told me that Ruby will be die
vlad_sta_ has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
dnyy has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
<nongeek>
I hope it was joking
aspires has quit [Quit: sudo making a sandwich]
bricker`work has quit [Ping timeout: 265 seconds]
<MrZYX>
okay here's a ruby user and I'm telling you now that node.js will die
<DouweM>
apples and oranges. different languages, different use cases, different strengths, differen weaknesses
^Chris^ has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
<MrZYX>
just because I can
<nobitanobi>
nongeek, some people like talking too much
bricker`1ork is now known as bricker`work
<nobitanobi>
nongeek, do you like programming in Ruby?
<shevy>
DouweM but you say that everything is relative!
<nongeek>
I'm a beginner and I want to learn it
barratt has joined #ruby
weszlem has joined #ruby
<nobitanobi>
nongeek, tryruby.org go for it. Make Ruby survive :)
<nongeek>
I'm confused
<shevy>
nongeek languages rarely die. in most cases they just have less and less people use it
vlad_starkov has quit [Ping timeout: 264 seconds]
<nongeek>
shevy: My big concern is position
<nobitanobi>
position on what?
<shevy>
nongeek in general there is a need for certain tasks that are fulfilled by scripting languages. i.e. what perl started is still useful today and ruby is a better language than perl
jkline has joined #ruby
<nongeek>
job
<nobitanobi>
industry?
<MrZYX>
nongeek: if you want to be a good programmer learn programming, not a language
zarubin has quit [Ping timeout: 245 seconds]
SHyx0rmZ has joined #ruby
<nobitanobi>
+1
<shevy>
+1 I always told people to go into COBOL
<terrellt>
If you pick a language to learn for the industry you've failed before you've begun.
<nongeek>
Agree but I want to select ruby
<nobitanobi>
nongeek, good choice
<MrZYX>
learn a few, ideally really different, languages now and you'll never have to worry
awkwords has quit [Read error: Operation timed out]
<nongeek>
MrZYX: I don't like to waste time
<MrZYX>
you won't
<shevy>
;)
<nobitanobi>
nongeek, learn Prolog too
<shevy>
learn all languages that are no longer used today
<shevy>
we need more fossil coders
<nobitanobi>
ha
<shevy>
dinosaur hackers
<nongeek>
shevy: Why?
<MrZYX>
shevy: name a few :P
asteros has joined #ruby
<shevy>
nongeek because then you realize that there are many programming languages that suck
<apeiros>
for computer archeology
awkwords has joined #ruby
<nongeek>
MrZYX: I'm afraid if I learn Ruby job positions died :(
<shevy>
ack
<shevy>
go java man
<ShellFu>
you still have the constructs you learned from ruby and can learn other languages
<MrZYX>
^
<MrZYX>
that's what I mean when I say learn programming
<nongeek>
shevy: Why java?
<typicalbender>
as a software developer I dont feel i get paid for the language I know, I get paid because im good at solving problems and applying technology
<MrZYX>
stop worrying and start with ruby, you'll understand what we mean with it
<MrZYX>
I think cobol has quite a few job positions too
<shevy>
nongeek learn cobol too
<MrZYX>
might even get fortran ones
<shevy>
nongeek learn fortran as well
<shevy>
nongeek and ruby
c0rn has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]
<nobitanobi>
prolog, prolog.
<shevy>
in school we had to learn turbopascal for one year :(
havenwood has joined #ruby
<nongeek>
shevy: Is it a trusted site?
<nobitanobi>
do a sudoku solver in prolog.
<shevy>
nongeek I dont trust it but you can visit it
awarner has joined #ruby
jkhwan has joined #ruby
<shevy>
prolog is kinda cool from a neutral point of view
<nongeek>
my mean was about the contents
<shevy>
nongeek no it's unsafe, you could get AIDS, dont visit
<shevy>
totally viral content
<nongeek>
:)
burlyscudd has quit [Ping timeout: 272 seconds]
<ShellFu>
Full blown? Not even the HIV?
<ShellFu>
brutal
<shevy>
the whole www is unsafe
banjara has quit [Quit: Leaving.]
<nongeek>
shevy: Are you still on Ruby?
<ShellFu>
not pr0n though right shevy?
Zesty has joined #ruby
lethjakm1 is now known as lethjakman
<nobitanobi>
I don't want to smell a troll, but...
<shevy>
nongeek sure, since about 10 years
<shevy>
ShellFu dunno. I can't find pr0n on the www
banjara has joined #ruby
<nongeek>
Thus you know somethings about ruby that i don't know
<shevy>
nongeek but I would never pick a main language because of "industry need"
<ShellFu>
lol probably for the best
<shevy>
nongeek how do you infer that? we don't have the same use case
Xeago has quit [Remote host closed the connection]
<nongeek>
shevy: Honestly, is ruby live for future?
miza has left #ruby [#ruby]
awarner_ has joined #ruby
dnyy has quit [Remote host closed the connection]
tvw has joined #ruby
dnyy has joined #ruby
<ShellFu>
nongeek. a loop is a loop a variable a variable. learn programming constructs and you may apply them to any language. A lot of compiled coders prototype in a scripting language then go implement that in C or whatever
aagdbl has quit [Quit: This computer has gone to sleep]
dnyy has quit [Read error: Connection reset by peer]
awarner has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<nongeek>
ShellFu: Thank you. Can I send Pm?
danshultz has quit [Remote host closed the connection]
mark_locklear has joined #ruby
danshultz has joined #ruby
ffranz has joined #ruby
<ShellFu>
I dunno. Can ya :) My point is there isnt any tutorial or ide or mysweetVIMplugin to make good code
aagdbl has joined #ruby
<ShellFu>
YOU have to make good code. Or make bad code and ocme here and get torn a new one until you write good code
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<ShellFu>
My first few were pretty rough, but these guys happily beat me into submission. My code now benefits from said beatings
tiglog has quit [Quit: Leaving]
<shevy>
nongeek I don't get whether you really want to learn something or not. I told you that scripting languages fit into a niche and as long as that niche persists, so will scripting languages. why do you think this need goes away in the future? there is no reason I can think of.
Elhu has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
banjara has quit [Quit: Leaving.]
<h0rrorvacui>
nongeek: you can do what node.js does in ruby the only real plus to node.js is that most the whole framework is built around non-blocking where in ruby eventmachine you have to watch out for a block.
<nobitanobi>
What am I doing wrong here: objects = [ {:area => -30}, {:area => 20}, {:area => 30}] -- objects.min_by { |el| (el[:area] if el[:area] > 0) } - Basically I want to get the object which area is minimum, while area is > 0
<h0rrorvacui>
so in that regard node is just the event model we already have in many other languages
kro0ub has left #ruby [#ruby]
<apeiros>
nongeek: min_by with an `if`
banjara has joined #ruby
<apeiros>
nongeek: that `if` will return nil, which is incomparable
<apeiros>
your `el[:area]` implies you're using plain hashes - IMO you should look into using a proper class instead - much more readable code.
skaflem has quit [Quit: This computer has gone to sleep]
dnyy has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
kayloos has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
yfeldblum has joined #ruby
saarinen has joined #ruby
jalcine_ has joined #ruby
jalcine_ has quit [Excess Flood]
<nobitanobi>
apeiros, actually I am using objects
decoponio has quit [Quit: Leaving...]
<nobitanobi>
I mean, object from a specific class
<apeiros>
hashes are objects :-p
<nobitanobi>
that is not Hash
<nobitanobi>
:P
<apeiros>
heh
<nobitanobi>
yeah hehehe
<platzhirsch>
I have two Ruby scripts, both quite similar, accessing the database, iterating objects. The one has a memory leak, the other one not. Now I am adjusting the one script to the one without the leak in a successive fashion... I am really tense... and feeling more and more dense without a clue what its origin is
<nobitanobi>
I wanted to make it easy to read
<apeiros>
nobitanobi: great opportunity to add readable methods then :)
<nobitanobi>
apeiros, actually
<nobitanobi>
I should have written the object itself
<nobitanobi>
:P
<nobitanobi>
it looks like this
<nobitanobi>
( this is for a max I have too: max_area = all.max_by { |el| (el.area) }.area)
<nobitanobi>
but I was testing in the IRB console, and I created hashes
<nobitanobi>
:D
aspires has joined #ruby
DrShoggoth has joined #ruby
<apeiros>
binding.pry -> try with the real data ;-)
<nobitanobi>
apeiros, anyway. I chained select{|h| h[:area] > 0}
alexherbo2 has quit [Ping timeout: 265 seconds]
<nobitanobi>
thanks for your help. always useful
<nobitanobi>
I was doubting between select and reject
<shevy>
is there a general guideline when to favour .select over .reject? it seems to me as if .select would be the more natural choice
<platzhirsch>
DouweM: seems I have found to plug the memory leak accidentally, through a typo
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<DouweM>
platzhirsch: care to share?
<platzhirsch>
shevy: guess it solely depends on your conditional statement, what you find more natural to read
<havenwood>
shevy: same guideline as when to use #odd? or #even?
<DouweM>
shevy: depends on the predicate
DrShoggoth has quit [Remote host closed the connection]
noop has joined #ruby
<havenwood>
aye, whatever reads best
<nobitanobi>
shevy, I like select better :P
<apeiros>
shevy: my rule is: don't negate
yfeldblum has quit [Remote host closed the connection]
newbiehacker has quit [Read error: Connection reset by peer]
<nobitanobi>
it comes more naturally to me
<platzhirsch>
DouweM: it's a MongoDB, Mongoid issue. I have three entities. Repository has Snapshots embedded. A snapshot has many metadata records: Repository.all.first.snapshots.first.metadata_records.each_with_index (LEAK), Repository.all.first.snapshots.first.metadata_records.all.each_with_index (NO LEAK)
newbiehacker has joined #ruby
<DouweM>
say you have an array of arrays. I'd prefer array.reject(&:empty?) over array.select(:any?)
<apeiros>
if I have `foo.select { |x| !x.bar }`, then IMO it should rather be `foo.rejet { |x| x.bar }`
<apeiros>
*reject
<shevy>
DouweM hmm or :non_empty?
<nobitanobi>
apeiros, +1
<platzhirsch>
the only difference is the additional all, and I guess it changes the query to get all metadata records instead of the ones selected through the relationship
<DouweM>
apeiros: definitely
<h0rrorvacui>
precisely
jibi has quit [Quit: .]
<DouweM>
platzhirsch: huh
<DouweM>
platzhirsch: I'd think they'd do the same
<shevy>
h0rrorvacui you have a weird nick!
<DouweM>
shevy: non_empty is another option, but then you'd have the negation apeiros mentions
DrShoggoth has joined #ruby
<platzhirsch>
DouweM: I can replace the no leak example with MetadataRecord.all.each_with_index and it does not leak, too
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi>
guys, any recommended books for Ruby 2.0?
dnyy has quit [Remote host closed the connection]
<nobitanobi>
I enjoyed Rubyist 1.0
<nobitanobi>
1.9
<nobitanobi>
:)
bklane has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
dnyy has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<platzhirsch>
at least I can reproduce the leak now from a fresh database
anderse has joined #ruby
timonv has joined #ruby
_Andres has joined #ruby
atno has joined #ruby
awarner_ has quit [Remote host closed the connection]
<jaybonci>
like, say PHP (not to speak the devil's name)
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
<shevy>
you said your openssl is static? how did you compile that?
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy>
./config --prefix=/usr -static
<shevy>
?
<jaybonci>
Kind of.
kayloos has quit [Ping timeout: 245 seconds]
<shevy>
ok... my current openssl was built in a shared way ...
ldnunes has quit [Quit: Leaving]
photon has joined #ruby
benwoody has quit [Quit: benwoody]
<shevy>
jaybonci if PHP manages to do something, and ruby fails, then ruby sucks more than php which we could not let stand, in that case I'd file a bug at the bugtracker at once ;)
<jaybonci>
A common issue? No I haven't seen anyone else with this problem
<shevy>
i2d_func(pkey->pkey.dsa, NULL)
dnyy has quit [Remote host closed the connection]
<jaybonci>
though there was a checkin to dir.c in 2005 that removed a similar notation
<shevy>
phinfonet perhaps you have a strange architecture, I never had that error before
<phinfonet>
shevy: me too. i've done a clean 10.9 osx install, and when try to install ruby + rbenv
dnyy has joined #ruby
<platzhirsch>
DouweM: I have created 1,5 scripts which suffice to reproduce the leak, if you are interested I would be curious if it was reproducible https://github.com/mongoid/mongoid/issues/3139
<phinfonet>
or any rubygem, i receive it
dnyy has quit [Read error: Connection reset by peer]
<jaybonci>
phinfonet: Oh do you get this as well?
dnyy has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
<phinfonet>
nope, jaybonci, i just said that never was received it
<jaybonci>
ah, cool.
<phinfonet>
Mountain lion works perfectly
<phinfonet>
but mavericks no
aspires has quit [Quit: sudo making a sandwich]
hiyosi has joined #ruby
fedalto has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<phinfonet>
jaybonci: you know this issue?
<jaybonci>
Nope, no idea on the mountain lion thing
<jaybonci>
I think it's a gcc/clang issue maybe?
timonv has quit [Ping timeout: 264 seconds]
<phinfonet>
hmm
<phinfonet>
maybe i need to install and older gcc...
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
jbpros has quit [Client Quit]
matchaw has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
cjs226 has joined #ruby
matchaw_ has quit [Ping timeout: 264 seconds]
nari has joined #ruby
robertjpayne has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
vince_prignano has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
fijimunkii has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
jaimef has joined #ruby
<robertjpayne>
Is ||= thread safe in ruby? Or do I need to worry about race conditions if two threads are attempting the same ||=?
<apeiros>
robertjpayne: assume nothing is thread-safe except explicitly labeled as "thread-safe"
<robertjpayne>
apeiros: sounds good
<apeiros>
note, that "thread-safe" is a very vague term (hence the quotes)
<robertjpayne>
yeah
<apeiros>
-,
<robertjpayne>
I'll ensure to wrap these ||= in mutexes
brtdv has joined #ruby
somasonic has quit [Ping timeout: 272 seconds]
<robertjpayne>
Or is there any better way in ruby to ensure a block of code is only every run once regardless of thread?
brjannc| has quit [Ping timeout: 272 seconds]
brtdv has quit [Client Quit]
pwh has quit []
somasonic has joined #ruby
madb055 has joined #ruby
<apeiros>
you could put the mutex only around the rhs
<apeiros>
and repeat the value itself
claymore has quit [Quit: Leaving]
<platzhirsch>
DouweM: Maybe, Repository.all.first.metadata_records.each is the wrong way to iterate, because Ruby will see the method chain as an ongoing reference and thus, will not garbage collect the elements being iterated
<apeiros>
e.g. def lazy_value; @_value ||= @mutex.synchronize { @_value || calculate_value }; end
Elhu has quit [Quit: Computer has gone to sleep.]
brjannc has joined #ruby
<apeiros>
that way you save yourself the expensive mutex on every lookup, but still have it for the potentially contended initialization
<robertjpayne>
apeiros: yea thats what I wanted to make sure thanks :)
fijimunk1i has joined #ruby
typicalbender has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
asteros has quit [Quit: asteros]
ph8 has joined #ruby
banjara has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
o11c has left #ruby ["WeeChat 0.4.2-dev"]
vlad_starkov has joined #ruby
axl_ has quit [Quit: axl_]
fijimunkii has quit [Ping timeout: 244 seconds]
ner0x has quit [Quit: Leaving]
<apeiros>
robertjpayne: could meta-program that behavior :)
mrsolo has joined #ruby
<robonerd>
is this the channel i was recently chatting with others about ... cluster of low power computers? there was some acronym for it i cannot remember. help?
dnyy has quit [Remote host closed the connection]
<robertjpayne>
apeiros: 1 spot :P it works for now
benlieb has quit [Quit: benlieb]
matchaw_ has joined #ruby
ffranz has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Ping timeout: 264 seconds]
psyl0n has joined #ruby
<apeiros>
hm, missed o11c's paste - and now he left.
allsystemsarego has quit [Quit: Leaving]
workmad3 has joined #ruby
claymore has joined #ruby
<shevy>
he is a weakling
<shevy>
let's kill him
<shevy>
hmm he is still on freenode
<shevy>
let's invite him back, then kill him
yalue has quit [Quit: Leaving]
asteros has joined #ruby
Eg0N|2 has joined #ruby
photon has quit [Quit: photon]
<shevy>
seemed to be a typical debian "I hate mkmf so I will remove it" distribution error
<apeiros>
a typical "we from apt know better what 'standard installation' is supposed to mean and therefore we will throw out everything you consider standard into separate packages."
<platzhirsch>
Okay, just ping me for any mob and lynch action
Elhu has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<platzhirsch>
The memory leak has boiled down to: Repository.all.first.metadata_records.each { ... } vs. MetadataRecord.where(repository: repository).each { ... }. The former one leaks, the latter one not.
hiyosi has joined #ruby
<platzhirsch>
Do you think the Ruby GC, interprets the first one as an intact reference, hence no garbage collection?
<platzhirsch>
as in, the repository object is referencing metadata_records, hence no mark and sweep
<apeiros>
platzhirsch: mongoid is a C extension?
<platzhirsch>
apeiros: no
jkamenik has quit [Quit: Leaving.]
<apeiros>
you sure?
<platzhirsch>
no
<apeiros>
well, not mongoid, whatever thing you use
smlgs has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
simoz has joined #ruby
<apeiros>
because chances that ruby has a memory leak vs. your mongo driver…
yan_ has joined #ruby
<platzhirsch>
I use Mongoid :) but the memory leak has been observed with ObjectSpace.count_objects[:T_STRING] so I think I monitored the Ruby VM heap
<apeiros>
lets just say its skewed in favor of ruby not being the culprit :)
Eg0N|2 has left #ruby ["Later peeps"]
<DouweM>
moped is all ruby as well, no c ext
<DouweM>
(moped being the mongo driver behind mongoid)
<yan_>
Do i have to do anything special to get block invocations to work over drb? I'm getting 'The requested address is not valid in its context. - connect(2) (DRb::DRbConnError)' exception when my remote code tries to invoke a block my local code registered
<platzhirsch>
which would not be too bad, if it works.. at least I have documented it for the next one
<apeiros>
platzhirsch: or are you using an old ruby version? because iirc some older version did have some issue wrt return values not being properly freed (but I think that was back in 1.8)
<platzhirsch>
apeiros: no, I tested it on Ruby 2.0.0 and 1.9.3
dnyy has quit [Remote host closed the connection]
benwoody has joined #ruby
awkwords has quit [Quit: Leaving.]
hiyosi has quit [Ping timeout: 245 seconds]
Mitchellvanw has joined #ruby
Hellcat has joined #ruby
<DouweM>
platzhirsch: wow, that memory leak is significant
dnyy has joined #ruby
Hellcat is now known as Guest39759
<platzhirsch>
DouweM: well, it grows linear, doesn't it? So simply each document stays on the heap
<shevy>
I would not mind that debian changed things so much if they would just put a big disclaimer "we modified ruby to exclude mkmf - please ask us on #debian and not anyone else on #ruby why errors are the cause because of that"
<shevy>
*case
banjara has quit [Quit: Leaving.]
<DouweM>
platzhirsch: right
sambao21 has joined #ruby
<platzhirsch>
I really hope that's it and my solution is the right one, finally I would able to get my application to scale memory wise :P
srji has joined #ruby
banjara has joined #ruby
<platzhirsch>
shevy: what did they do to the ruby package? :(
alexherbo2 has quit [Ping timeout: 264 seconds]
<shevy>
platzhirsch they modify things
<platzhirsch>
things..
<shevy>
yeah, mkmf and others
benwoody has quit [Client Quit]
<DouweM>
platzhirsch: didn't you mention that going from Repository.all.first.metadata_records.each to Repository.all.first.metadata_records.all.each fixed the problem as well?
<platzhirsch>
DouweM: yes, but that is just a verbose way to write MetadataRecords.all
<platzhirsch>
it turns the whole query into a simpler one, although the Ruby DSL query is longer
wzbyte has quit [Remote host closed the connection]
<DouweM>
ah, is it? I thought .all.each and .each would just do the same thing
geekbri has quit []
Guest39759 has quit [Client Quit]
<DouweM>
makes sense that #all would remove all where()'s inserted by the relation
RaCx has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<DouweM>
platzhirsch: I think I know what's going on. gimme a sec to investigate
<DouweM>
platzhirsch: also when at the end of the has_many relation?
<platzhirsch>
when at the end?
srji has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
<DouweM>
Repository.all.first.metadata_records.each vs Repository.all.first.metadata_records.all.each
<DouweM>
still the same?
<platzhirsch>
DouweM: no, the first one leaks, the latter one not
tsykoduk has joined #ruby
vlad_sta_ has joined #ruby
<DouweM>
right, but does the version with .all. ignore the where()s set by the relation? i.e. is it equal to MetadataRecord.all rather than MetadataRecord.where(repo: repo) ?
<platzhirsch>
DouweM: that's just my interpreation, I could try to look it up, maybe Mongoid gives me the query string without debugging through the library code
ChrisValentinial is now known as Valentinial
vlad_starkov has quit [Ping timeout: 272 seconds]
jdbentley has joined #ruby
<DouweM>
just puts any Mongoid::Criteria, it'll give you the query.
dnyy has quit [Remote host closed the connection]
<DouweM>
I'm on 3.0 btw, so things might have changed
Soda has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
<DouweM>
or in the case of relations, obj.relation.criteria
typicalbender has joined #ruby
dnyy has joined #ruby
<bricker`work>
This syntax amazes me every time: `Audio::DirectAudio <= Audio`
<platzhirsch>
DouweM: oh, it does NOT clear the selector, which I guessed
hashpuppy has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
<bricker`work>
Like, it's obvious what "5 < 10" is doing, but "Class < Module" would be confusing for anybody who didn't read the documentation
<shevy>
it now is to me
<shevy>
why is class smaller than module
<DouweM>
platzhirsch: Klass.all.each {} uses batching and doesn't store references to the docs, object.relation.each memoizes every object in the object's relation array
WillAmes has quit [Ping timeout: 246 seconds]
Al_ has quit [Quit: Al_]
timonv has joined #ruby
<platzhirsch>
DouweM: so far my understanding, have you looked it up?
<DouweM>
yup
_Andres has quit [Read error: Connection reset by peer]
<platzhirsch>
thanks a lot :) it's good to have an explanation
<DouweM>
platzhirsch: yup. I'll have to keep that in mind as well when working with larger relations
nateberkopec has joined #ruby
nuilonhuhn has joined #ruby
danman has quit [Quit: danman]
<bricker`work>
shevy: calling it "smaller than" is not quite right. It makes more sense to say it's "earlier in the inheritance chain"
<platzhirsch>
that is really a drawback with Ruby's way of performing the same task with different code snippets. I am glad I spent some time to document the issue
<shevy>
platzhirsch I think most people finally agree that the Well-grounded Rubyist author must be wrong
<shevy>
now one of you goes to #ruby-lang and ask him ok? :-)
jfelchner has quit [Quit: jfelchner]
whunt has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy>
actually, I will check on his projects now ...
asteros has quit [Quit: asteros]
heftig has joined #ruby
<platzhirsch>
"Ruby gives you a keyword for making return values explicit: return . The use of this keyword is usually optional, but many programmers like to use it because it makes explicit what is otherwise implicit..."
billiam has quit [Quit: WeeChat 0.4.1]
<platzhirsch>
ok my fault "many" != "most"
<shevy>
:(
Hanmac has joined #ruby
<shevy>
it seems that in most cases where ruby gives people a choice, they prefer to not want to use it
<platzhirsch>
I postulate he is still wrong. There are not even many that use it :P
workmad3 has quit [Ping timeout: 264 seconds]
<shevy>
like all those weird people who do:
<shevy>
def foo a,b,c
<Morrolan>
I usually leave it out when it's trivial.
cpruitt has joined #ruby
<DouweM>
shevy: ugh
<platzhirsch>
shevy: gross, put it in a cage
<Morrolan>
But I've fallen on my nose often enough that I use it in non-obvious cases. ;D
asteros has joined #ruby
<shevy>
platzhirsch but I know some who do so hardcore all the time!
colonolGron has quit [Quit: Lost terminal]
<platzhirsch>
it becomes an obstacle if you work on the same code base
VictorSK has joined #ruby
<shevy>
perhaps it is influenced by DSL style
mlpinit has quit [Ping timeout: 252 seconds]
<shevy>
for instance:
jkline has quit [Quit: jkline]
<platzhirsch>
Ruby makes you feel good on solo coding, but otherwise I might prefer Nazi-PEP8
<shevy>
on :message, /^#{PREFIX}pry #{K.sekretpasswords}\s*/ do |m|
workmad3 has joined #ruby
<shevy>
no () in this type of style
johnnyfuchs has quit [Quit: Leaving.]
VictorSK has quit [Client Quit]
<shevy>
platzhirsch, here is an example for ()-less def style
<Morrolan>
As much as I'd like to, I can't blame my keyboard for that mess up there.
<apeiros>
of course you can
<apeiros>
maybe not rightfully
squeems has quit [Read error: Connection reset by peer]
<Morrolan>
Somehow my brain thought that it should be 'signing' rather than 'signin'.
weeems has joined #ruby
<apeiros>
but that never stopped anybody
<Morrolan>
Hah, true.
<shevy>
I used to mistype on IRC clients like irssi or weechat a lot
<shevy>
with xchat, I can edit what I mistype quickly, so you see only like 1% typing errors I do
weeems is now known as weems
weems has quit [Changing host]
weems has joined #ruby
<apeiros>
I wrote @myself as @mysqlf for a long time when coming from php and working on my first ruby project
<Morrolan>
Haha.
<apeiros>
muscle memory. so strong.
<shevy>
those kind of typos can be scary
<shevy>
def intialize
zz_jrhorn424 is now known as jrhorn424
<shevy>
@myself is a cool name though
<sweeper>
I had cancelled vs canceled today o.o
<jblack>
nothing like muscle-memorying your favorite password in plaintext in front of someone on accident
<DouweM>
apeiros: DUDE I did the same thing
<shevy>
a bit like perl or? like ... my @self ... dunno if that is valid perl... or was it ... my $self
<shevy>
sweeper the english can be difficult, I always have to hesitate before writing usage ... or useage ...
timonv has quit [Ping timeout: 264 seconds]
<apeiros>
jblack: hehe
<Morrolan>
A few weeks ago I found out, by sheer chance, that I misspelled some variable's name. Did a quick 'git grep', found a few hits in the current project. Did a search through all recent projects, and found dozens of hits. :P
<apeiros>
jblack: I usually muscle-memorize my pin codes. learning them by heart is too boring.
<sweeper>
shevy: well interestingly enough, both are valid :v
<shevy>
cool
<shevy>
perl makes valid code out of line noise
<platzhirsch>
oh, it's really him
<jblack>
I did even worse. I set all of my bank pins to the same number.
<shevy>
ack
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<shevy>
I am only slightly better perhaps... I keep only about 3 different passwords in total
cescalante is now known as ce_afk
<DouweM>
:| ever heard of a password manager?
bugsinlights has joined #ruby
jalcine_ has quit [Excess Flood]
dnyy has quit [Remote host closed the connection]
<jblack>
Oh sure, and that's waht I stick with in production environments.
<apeiros>
DouweM: and you pull that one out every time you're in front of an ATM or a check-out? :)
<DouweM>
I'm responding to shevy using only 3 passwords ;)
<jblack>
I don't treat my responsibilities to others with the same disregard as I do my facebook and checking accounts
<apeiros>
ah
<apeiros>
yeah, that's silly
<DouweM>
for PINs, I can understand
<apeiros>
I even use different PINs
<DouweM>
yeah me too
jkhwan has joined #ruby
dnyy has joined #ruby
<apeiros>
I mean they're what, 4-6 digits? easy enough
<DouweM>
but I can never remember the one for my credit card or business debit card
<Morrolan>
Hah.
<Morrolan>
I have a hard enough time remembering *one*, let alone *four*. :P
<jblack>
The problem I used to have with 4-5 different pin #s was that I would freeze atm card A becuase I was sure the pin was the same as card B.
withnale has quit [Read error: Operation timed out]
<jblack>
Locking myself out is more secure than I need!
<apeiros>
plus around a dozen of 12 char passwords :)
<apeiros>
oh, if I forget them, I do have them in my password storage.
banjara has quit [Quit: Leaving.]
<jblack>
Yeah, I use vault on my cell phone for most any pass
<apeiros>
which has happened - didn't use a card for over a year and no longer remembered the PIN :(
<DouweM>
all my passwords, pins, software licenses etc are in 1Password. <3 1Password
<jblack>
passworded vault + one of those free sync services.
DanBoy has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
<jblack>
vault is probably similiar
<shevy>
DouweM one that depends on a computer?
<DouweM>
shevy: ?
psyl0n has quit [Quit: psyl0n]
<shevy>
password manager
<jblack>
I'm wearin camo pants because I'm out of clean laundry. Now I'm going to have to pretend to hide in every tree I walk past to be funny about it
kcombs has joined #ruby
RichardBaker has joined #ruby
<DouweM>
shevy: 1Password's on my Mac and iPhone
<DouweM>
jblack: :)
<shevy>
Morrolan the odd thing with remembering things is that I remember the sequence I have to type at the terminal
<shevy>
I mean like, right when I am at it
drumusician has quit [Ping timeout: 245 seconds]
<shevy>
it's like playing notes on a piano
<Morrolan>
But not when trying to think of it earlier on? Yea.
<shevy>
yeah
<shevy>
or rather I have a much harder time then
saarinen has joined #ruby
awkwords has joined #ruby
lmickh has left #ruby [#ruby]
JRizzle has left #ruby ["Leaving"]
withnale has joined #ruby
urthbound has quit [Remote host closed the connection]
jeffdb has joined #ruby
tjad has joined #ruby
lfox has quit [Quit: ZZZzzz…]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
Matip has joined #ruby
Matip has left #ruby [#ruby]
iliketurtles has quit [Max SendQ exceeded]
Wixy has joined #ruby
<Wixy>
Hello
jeffdb has quit [Client Quit]
axl_ has joined #ruby
<Wixy>
I've been using ruby for a while, and the thing I miss the most is block comments. is there any sane way to comment a block other than =begin and =end (which is not sane if you ask me :P)
<Wixy>
?
dnyy has quit [Remote host closed the connection]
iliketurtles has joined #ruby
<apeiros>
Wixy: we commonly just use an editor which can put # in front of a whole block of text
threesome has joined #ruby
dnyy has joined #ruby
<Wixy>
what editor?
<Wixy>
I think sublime doesn't do that
<Wixy>
in any case, it's not a reason not to have /**/ !
<DouweM>
select the lines, hit command + /
vpretzel has joined #ruby
axl_ has quit [Read error: Operation timed out]
drumsrgr8forn8 has quit [Remote host closed the connection]
vpretzel has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
<MrZYX>
my_hash[:foo] = "#{my_hash[:foo}bar" still don't like the repetition though
Mars__ has joined #ruby
Shellcat has joined #ruby
<MrZYX>
lolmaus: maybe there's a more elegant solution for your actual problem
<Wixy>
or like this: a = (a || "") + "b"
sambao21 has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 264 seconds]
<DouweM>
(my_hash[:foo] ||= "") += "bar"
<DouweM>
eh, << instead of +=
ShellFu is now known as ShellFu_afk
mrsolo has joined #ruby
devdazed has quit [Quit: Bye]
<shevy>
is this elegant!
calmyournerves has quit [Remote host closed the connection]
calmyournerves has joined #ruby
iliketurtles has joined #ruby
barratt has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
phantummm has quit [Quit: phantummm]
ehc has quit [Quit: ehc]
vlad_sta_ has quit [Ping timeout: 245 seconds]
jaybonci has quit [Read error: Operation timed out]
drag00n has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
hiyosi has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
vlad_st__ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<lolmaus>
Wixy, DouweM, thank you.
mudmaster has quit [Quit: Leaving...]
<MrZYX>
lolmaus: try posting a larger excerpt of your code where you need to do this, I never had to ;)
jamesaanderson has joined #ruby
RichardBaker has joined #ruby
vlad_sta_ has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
RichardBaker has quit [Client Quit]
calmyournerves- has quit [Quit: ZNC - http://znc.in]
cody-- has quit [Quit: derp]
postmodern has joined #ruby
brtdv has quit []
ehaliewicz has quit [Remote host closed the connection]
srji has quit [Ping timeout: 260 seconds]
zigomir has quit [Ping timeout: 244 seconds]
TheShaun|AFK is now known as TheShaun
jamesaanderson has quit [Client Quit]
scottstamp is now known as zz_scottstamp
amacgregor has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
brtdv has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
^Chris^ has joined #ruby
agent_white has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
<lolmaus>
MrZYX, i'm creating a Padrino template helper. The hash in question may contain a `:class` element that contains a string of HTML classes. I would like to add a class to that string. But i don't know whether the class element exists. If it doesn't exist, doing simply `options[:class] << "classname"` would fail.
jaybonci has joined #ruby
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
platypine has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
cpruitt has quit [Read error: Connection reset by peer]
timonv has joined #ruby
cpruitt has joined #ruby
<MrZYX>
class = options.fetch(:class) { "default" }
<MrZYX>
class << "classname"
larissa has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<MrZYX>
extracing the values of an options hash at the beginning of a method is a common thing to see
vlad_st__ has quit [Remote host closed the connection]
<MrZYX>
setting defaults while doing this too
Es0teric has quit [Quit: Computer has gone to sleep.]
jrhorn424 is now known as zz_jrhorn424
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<lolmaus>
MrZYX, the matter is that i don't need that class outside the hash. The hash is passed to a method, i just want to append to one of the hash's elements.
<DouweM>
in that case my onelines probably looks nicest: `(options[:class] || "") << "newclass"`
<DouweM>
*one-liner
apeiros has joined #ruby
<DouweM>
and use ||= instead of ||
apeiros has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 244 seconds]
srji has joined #ruby
kirun has quit [Quit: Client exiting]
banjara has quit [Quit: Leaving.]
TheShaun is now known as TheShaun|AFK
Kiba has joined #ruby
<Kiba>
hi
tkuchiki has quit [Remote host closed the connection]
banjara has joined #ruby
<Kiba>
I am working on a survival analysis of gems
<Kiba>
is there a way to get the list of all the gems that ever been downloaded?
<Kiba>
err
tkuchiki has joined #ruby
<Kiba>
uploaded
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
yfeldblum has quit [Ping timeout: 240 seconds]
jkhwan has quit [Remote host closed the connection]
Shidash has joined #ruby
VTLob has quit [Quit: VTLob]
jkhwan has joined #ruby
banjara has quit [Client Quit]
cescalante is now known as ce_afk
mary5030 has quit [Ping timeout: 272 seconds]
octarine is now known as octariNSA
typicalbender has quit [Quit: Leaving.]
yfeldblum has joined #ruby
banjara has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
jkamenik has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
tsykoduk is now known as zz_tsykoduk
jkhwan has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
banjara has quit [Client Quit]
<nobitanobi>
Hi guys. I am trying to parse this JSON: https://gist.github.com/novito/7379496 (which according to http://jsonlint.com/) is valid. when doing JSON.parse(..) everything seems fine. However when trying to do @parsed_json['potentialProductImages'].each do |img| I get "undefined method `each' for #<String:0xb54c2970>". Any thoughts on that?
yfeldblum has quit [Remote host closed the connection]
<nobitanobi>
is treating the array as a string, so I guess is not being parsed correctly?
yfeldblum has joined #ruby
jkhwan has joined #ruby
c0rn has quit [Ping timeout: 245 seconds]
srji has quit [Quit: leaving]
marr has quit [Ping timeout: 265 seconds]
<MrZYX>
your "array" is a valid json string
fedalto has quit [Quit: Leaving]
gyre007 has joined #ruby
c0rn has joined #ruby
<nobitanobi>
MrZYX, uhm... It's just confusing, because I get this from different page's contexts, and sometimes the array is not quoted. So, I guess it depends on the implementation of JSON they have in their JS libraries.
<nobitanobi>
MrZYX, However, how would you suggest being able to parse this?
<MrZYX>
the contents of that string are in turn valid json, so if you really are unable to fix whatever the source of that data is, you could pass it through JSON.parse again