<dorei>
riceandbeans: i guess the problem is that you pass both SSLv3 and VERIFY_NONE, not sure about mechanize though
shinobi_one has quit [Quit: shinobi_one]
<centrx>
riceandbeans, I had the same problem recently. I installed SSL certificates and it was fixed. (On Debian: apt-get install ca-certificates)
eka has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
shinobi_one has joined #ruby
shinobi_one has quit [Client Quit]
<dorei>
with open, i use open(url, :ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE) for sites with invalid certificates
tylerkern has joined #ruby
PanPan has joined #ruby
jonr22 has joined #ruby
Grantlyk has quit [Remote host closed the connection]
jonr22 has quit [Client Quit]
<riceandbeans>
this is for ANY ssl
<riceandbeans>
valid or otherwise
weems|nix has quit [Remote host closed the connection]
bmurt has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
RxDx has quit [Quit: This computer has gone to sleep]
echooo has joined #ruby
Kricir has joined #ruby
fgo has joined #ruby
fwaokda has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
sevvie has quit [Quit: leaving]
Kricir has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
JavaTheHut has joined #ruby
TorpedoSkyline has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<JavaTheHut>
should I learn ruby or python? Are there any pros ruby has over python?
<riceandbeans>
it's not based in whitespace
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riceandbeans>
which is a horrible concept
<sweeper>
riceandbeans: screw you
<riceandbeans>
it reads better and is more clear
TorpedoSkyline has joined #ruby
* sweeper
does HAML all day
TorpedoSkyline has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
iteratorP has joined #ruby
<riceandbeans>
python is far more popular in the market though
InhalingPixels has quit [Remote host closed the connection]
<riceandbeans>
but PHP is more popular than that and PHP is horrible
<riceandbeans>
why HAML
<JavaTheHut>
oh cool. I guess your right about white space.
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sweeper>
riceandbeans: cause I don't like typing the ends of tags?
toastynerd has joined #ruby
<sweeper>
JavaTheHut: the whitespace thing is usually like 0 problems if you have a decent editor. and saves typing
InhalingPixels has joined #ruby
TorpedoSkyline has joined #ruby
<JavaTheHut>
so what kinds of tools are you using for ruby dev?
TorpedoSkyline has quit [Read error: Connection reset by peer]
<JavaTheHut>
do you use Visual Studio or Eclipse?
sevenseacat has joined #ruby
<riceandbeans>
sweeper: I use emacs and I still think python is hideous
jon2 has joined #ruby
<sweeper>
riceandbeans: see, exactly :)
<riceandbeans>
sweeper: I kid you not, when I do python, I do #{ and #} for my own clarity sake
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
<sweeper>
that's pretty retarded
<riceandbeans>
sweeper: I would take perl ANY DAY over python
<riceandbeans>
I use perl all the time instead of python
cesurasean1 has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<JavaTheHut>
does anyone use lisp or is it officially dead now?
<sweeper>
JavaTheHut: weirdos aside, ruby tends to be friendlier to people who are new at programming
cesurasean has quit [Ping timeout: 260 seconds]
<sweeper>
JavaTheHut: if you want an "odd" language, try Go
<JavaTheHut>
i'm semi-new
<JavaTheHut>
i know some java
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
amacou has quit [Read error: Connection reset by peer]
<JavaTheHut>
but GO isn't as cool as ruby, python, or lisp
<sweeper>
mmmm, Go is made for concurrency
<JavaTheHut>
i think go was made by the same person who invented C
amacou has joined #ruby
icole has quit [Ping timeout: 272 seconds]
build-system has left #ruby ["Leaving"]
<sweeper>
it will def stretch your brain
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
siukit2014 has quit []
<sweeper>
at the end of the days, languages are tools, and some are more well suited to some tasks than others
<JavaTheHut>
but go is not as advanced as lisp and ruby since it is based on C.
<JavaTheHut>
i think the father of C invented go
<sweeper>
you are smoking crack dude
<mozzarella>
wat
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<sweeper>
ah damn
<sweeper>
he's just trollin ain't he
coca_rails has quit [Quit: coca_rails]
* sweeper
has another beer
InhalingPixels has quit [Ping timeout: 255 seconds]
<riceandbeans>
go was made to be like a bastard offspring between C and Python
jon2 has quit [Client Quit]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<riceandbeans>
Rust is cooler than Go
<pipework>
JavaTheHut: If you're going to do drugs and IRC, the least you could do is share.
<riceandbeans>
but still
<JavaTheHut>
no, i'm here to learn what language to use. Wtih ruby at the top of the list. I'm just saying Go is a C-based lagnauge and one of the creators was a father of C
<riceandbeans>
what is your goal?
<riceandbeans>
making money?
<pipework>
JavaTheHut: Because that's a great way to determine what language to use?
tylerkern has quit [Ping timeout: 246 seconds]
flowerha_ has joined #ruby
TorpedoSkyline has joined #ruby
<riceandbeans>
the biggest cut of the market is in java and php work
TorpedoSkyline has quit [Read error: Connection reset by peer]
jon2 has joined #ruby
<riceandbeans>
but when you get in web dev, no matter what language, 3/4 of it is html and css
flowerhack has quit [Remote host closed the connection]
jon2 has quit [Client Quit]
<riceandbeans>
pick your poison
<pipework>
^not correct
<diegoviola>
for someone who knows Ruby and SQL, it should be trivial to switch from Sequel and ActiveRecord, and vice-versa, right?
<JavaTheHut>
oh yeah. $$$
InhalingPixels has joined #ruby
<pipework>
diegoviola: no, it's never trivial unless your use is.
<riceandbeans>
if your only goal is $$$, I'd say go with php
<sweeper>
JavaTheHut: protip, people still get paid lots of money writing COBOL
<diegoviola>
Sequel looks like it's SQL mapped to Ruby and ActiveRecord hides SQL a bit more
<pipework>
But you'll earn it slower.
<riceandbeans>
it's a horrible language, but the market is more poluted with it than anything else
<sweeper>
let that sink in
<pipework>
I like languages that I can make lots of money in per hour while also having a healthy market.
snath has quit [Ping timeout: 240 seconds]
bricker`work has quit [Ping timeout: 264 seconds]
<diegoviola>
pipework: not sure what you mean?
<benzrf>
php is ridiculously awful
<pipework>
diegoviola: you usually don't
<benzrf>
i cant think of a single worse language that wasnt made as a joke
<riceandbeans>
number of COBOL jobs vs number of PHP jobs....
<riceandbeans>
I despise PHP
<riceandbeans>
almost as much as I do Java
<diegoviola>
pipework: don't want?
<pipework>
riceandbeans: Pay levels for COBOL vs PHP
<sweeper>
riceandbeans: but they pay very well :)
<diegoviola>
Err.
<riceandbeans>
but I can't argue that there are MORE JOBS for those 2 than any other language at the moment
<diegoviola>
pipework: don't what?
Wolland has quit []
<JavaTheHut>
lets say i want to make $250,000 a year. What language should I learn?
<pipework>
diegoviola: you haven't asked me a clarifying question.
<pipework>
JavaTheHut: Big Data.
<sweeper>
JavaTheHut: Oracle
<JavaTheHut>
i can do that. easy
<sweeper>
heh
<pipework>
that's the way to think!
<riceandbeans>
250k isn't programmer money, that's CEO of a startup money
<sweeper>
riceandbeans: it's a high-level Oracle DBA's pay
<riceandbeans>
programmers tend to cap out ~175k on the high end
<diegoviola>
pipework: not sure what you mean with "you usually don't"?
<riceandbeans>
oracle does not pay any devs 250k
<sweeper>
but yea, the real money is in management
<sweeper>
riceandbeans: no, oracle does not. that's not what a DBA is
matchaw has quit [Ping timeout: 260 seconds]
<pipework>
riceandbeans: Oracle developers do though
<pipework>
Not Oracle employees.
<sweeper>
database admin, at a large company/government
<riceandbeans>
DBAs make less than SWEs on the high ends
<pipework>
riceandbeans: Depends on what you're doing.
beef-wellington has quit [Read error: Connection reset by peer]
<pipework>
I assure you, RPG developers are making more money than any other kind of developer.
<riceandbeans>
DBAs cap out at ~150k
MatthewsFace has quit [Ping timeout: 255 seconds]
<pipework>
those reports, right
<sweeper>
riceandbeans: bs
beef-wellington has joined #ruby
<pipework>
riceandbeans: your data is wrong
<JavaTheHut>
Role playing games?
<pipework>
JavaTheHut: no
<JavaTheHut>
i can make an RPG easy.
<riceandbeans>
DBAs don't make that much on average
<JavaTheHut>
Rocket propelled grenade?
<riceandbeans>
DBAs are really easy to come by and are a dime a dozen
bmurt has quit []
<pipework>
JavaTheHut: google might help.
<sweeper>
riceandbeans: stop pulling numbers out of your ass
<pipework>
riceandbeans: Not really.
axilla has quit [Ping timeout: 244 seconds]
<pipework>
You can hire anyone as a DBA pretty easy.
<sweeper>
^
<riceandbeans>
indeed, glassdoor, check anything
<riceandbeans>
you will not find a DBA >150k
<sweeper>
lol
<pipework>
riceandbeans: glass door claims that delivery truck drivers make $70-100K
Danibal has joined #ruby
<riceandbeans>
I don't care if you're on oracle dba
Danibal has quit [Remote host closed the connection]
<diegoviola>
pipework: stop trolling
<pipework>
riceandbeans: No one cares what you don't care about.
<pipework>
diegoviola: No one is trolling.
<pipework>
Well, I don't think riceandbeans is, he's just cocksure.
<riceandbeans>
they really don't make insane amounts
jon2 has joined #ruby
<pipework>
riceandbeans: 250K is insane?
<pipework>
I'd say 400K is
<diegoviola>
lol
<riceandbeans>
250k is upper management of a company pay
<JavaTheHut>
Rich people would laugh at 250k and fart that out in 1 evening of spending.
<pipework>
I'd hate to live in riceandbeans's world.
davividal has joined #ruby
<pipework>
I find his nick very telling.
jon2 has quit [Client Quit]
<riceandbeans>
ruby devs are going to cap out ~135, but most of that is with rails
<riceandbeans>
php devs make way less
<riceandbeans>
a monkey can code php
bMalum______ has joined #ruby
havenwood has joined #ruby
<pipework>
Anyways, at a recent conference I was at, it was discussed that senior ruby developers in my area (pacific northwest) is between 110-140K
<riceandbeans>
pipework: I work in the silicon valley
<sweeper>
riceandbeans: although it IS true that the real money is in management
<pipework>
riceandbeans: I work for the silicon valley.
<JavaTheHut>
how much do you all make?
<sweeper>
riceandbeans: then you work in the wrong place to have high paid DBAs
<riceandbeans>
I'm IN the silicon valley and ruby devs don't make that here
pietr0 has quit [Quit: pietr0]
<pipework>
riceandbeans: You're working for the wrong people.
<riceandbeans>
and DBAs in this area tend to not get more than 120k here
omosoj has quit [Ping timeout: 250 seconds]
<davividal>
hi. I get that ruby doesn't support method overload. My problem: I have a method that must accept either a string ('pass') or a coordinate ([x, y]). I could default coordinate to nil and, when coordinate = nil assume 'pass', but I don't fell like doing it. Any thought?
<riceandbeans>
I know a lot of DBAs in the area
<pipework>
If you don't make at least $110-$120K, you're getting fucked.
<pipework>
In silicon valley.
<sweeper>
riceandbeans: the belt (DC) is where are the crazy people who love "enterprise" stuff live
<pipework>
Especially if you live in the area.
jottr has joined #ruby
jon2 has joined #ruby
jon2 is now known as jonr22
<pipework>
davividal: Why not just don't default at all?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<riceandbeans>
I make >120k, but that's beside the point
<davividal>
pipework, sorry?
<sweeper>
davividal: yea, just check the type when it comes in...
<pipework>
riceandbeans: How is it beside the point? It is the point.
<davividal>
sweeper, I could do that. I'm just wondering if it is the correct 'ruby idiom'
<sweeper>
davividal: pretty much
thomasxie has joined #ruby
<JavaTheHut>
I make less-than 100k. I feel stupid.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dorei>
davividal: how about having 2 different methods and have the caller deceid which one to call?
<pipework>
JavaTheHut: Where do you live and where is the company you work for?
<davividal>
sweeper, "self.pass if coordinate == 'pass'" work, but I'm new to ruby and it fells wrong.
<pipework>
riceandbeans: You don't need to default the argument. Just require an argument?
<JavaTheHut>
middle of no-where
<pipework>
davividal: ^
<pipework>
JavaTheHut: That doesn't really help.
chihhsin_cloud has joined #ruby
<riceandbeans>
pipework: when cost of living is low pay is less important
<sweeper>
davividal: eh it's fine
<riceandbeans>
anyway
<pipework>
riceandbeans: No, pay and perks are all that's important.
aspires has quit []
<pipework>
If you're a junior, you won't make as much.
anaeem1 has joined #ruby
<davividal>
sweeper, pipework thanks :)
<pipework>
davividal: You could easy switch based on whether the argument is a string or an array.
JoshGlzBrk has joined #ruby
<dorei>
but that's not good OO design, is it?
bMalum______ has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: yawn]
mary5030 has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
<sweeper>
dorei: wut.
<pipework>
dorei: It depends, erally.
mikepack has joined #ruby
jsodini has quit [Quit: Leaving...]
snath has joined #ruby
<JavaTheHut>
OO- you have an interface. Just call method and not care what the type is. duh. I am a Java programmer!
jottr has quit [Ping timeout: 272 seconds]
<JavaTheHut>
java yo.
<pipework>
OO is aboot the messages
jonr22 has quit [Quit: WeeChat 0.4.2]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<pipework>
Anything else beyond or more in depth than that is up in the air.
jonr22 has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Client Quit]
cpruitt has joined #ruby
davividal has quit [Quit: Leaving]
<JavaTheHut>
smalltalk oo is about hte messages. Java OO is about... designing the program so new types can be plugged in. Usually noting is gained but sometims it fits pretty well.
anaeem1 has quit [Ping timeout: 260 seconds]
TheNet_ has joined #ruby
TheNet has quit [Ping timeout: 240 seconds]
<pipework>
JavaTheHut: no, all OO. See Alan Kay.
coldkey21 has quit [Remote host closed the connection]
dorei has quit []
<JavaTheHut>
OO doesn't really mean antyhing since anything can be arbitrarily defined.
<JavaTheHut>
Just like a tomota is legally a vegabtle.
<pipework>
JavaTheHut: The man who coined the term is the right person to look to.
<JavaTheHut>
Alan Kay farted and now we have definition of OO
bradleyp_ has joined #ruby
bmurt has joined #ruby
xcesariox has joined #ruby
<sevenseacat>
lol
<riceandbeans>
when was the last time you saw someone use smalltalk or squeak?
<riceandbeans>
NEVER
<sevenseacat>
never
<sevenseacat>
actually , i saw a conference talk on smalltalk in february, does that count?
<pipework>
GoF mostly.
pietr0 has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
InhalingPixels has quit [Remote host closed the connection]
yeltzooo4 has quit [Remote host closed the connection]
kireevco has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
jonr22 has quit [Quit: WeeChat 0.4.2]
yeltzooo has joined #ruby
robustus has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
rdavila has joined #ruby
mccollek has joined #ruby
TorpedoSkyline has joined #ruby
omosoj has joined #ruby
andrewjanssen has joined #ruby
jonr22 has joined #ruby
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
kireevco has quit [Client Quit]
kireevco has joined #ruby
rdavila has quit [Client Quit]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
<benzrf>
OO is about packaging behavior with state
freerobby has quit [Quit: Leaving.]
<benzrf>
messages are one way of interfacing with bundled state & behavior
roland15 has quit [Remote host closed the connection]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
<pipework>
It's about messages, according to Kays, but that was an update after years of thinking about it.
dpollen has joined #ruby
<benzrf>
object oriented doesnt mean anything
<pipework>
Kay*
<pipework>
Nothing means anything.
jonr22 has quit [Client Quit]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
<sevenseacat>
apparently we've all bastardized kay's original meaning behind OO
ponch_ has joined #ruby
jonr22 has joined #ruby
TorpedoSkyline has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Quit: Ex-Chat]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Read error: Connection reset by peer]
awc737 has joined #ruby
<sevenseacat>
"Over the last ten years, the percentage of clients where I seen unit tests being used has gone from about 10% to pretty much 100%" this is the first job ive had where unit testing was practiced
TorpedoSkyline has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
InhalingPixels has quit [Ping timeout: 272 seconds]
hamakn has quit [Read error: Connection reset by peer]
bradleyp_ has quit [Remote host closed the connection]
hamakn has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
<sevenseacat>
also, the guy who is writing all the shit in the comments on that perlhacks article is insane
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
dpollen has quit [Quit: dpollen]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<sevenseacat>
anyway, back to work
bradleyprice has quit [Ping timeout: 250 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
xcesariox has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
king313 has quit [Quit: .]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
bMalum______ has joined #ruby
failshell has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
failshell has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
bMalum_______ has joined #ruby
bMalum______ has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
bmurt has quit []
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 240 seconds]
moted has quit []
TorpedoSkyline has joined #ruby
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
mikepack has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 246 seconds]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
iliketurtles has joined #ruby
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
rdavila has quit [Quit: rdavila]
bMalum_______ has quit [Ping timeout: 260 seconds]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
ponch_ has joined #ruby
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
TorpedoSkyline has quit [Ping timeout: 240 seconds]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoS_ has joined #ruby
TorpedoS_ has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
pietr0 has quit [Quit: pietr0]
nateberkopec has quit [Ping timeout: 240 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
<sweeper>
sevenseacat: that was amusing, thanks
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
Takle has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Write error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
Spami has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Leaving]
oo_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 255 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
_5kg has quit [Ping timeout: 250 seconds]
niftylettuce_ has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 250 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
cajone has quit [Ping timeout: 272 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: Leaving]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
fgo has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
toastynerd has quit [Remote host closed the connection]
Kricir has joined #ruby
icebourg has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
tjr9898 has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
diegoviola has quit [Quit: WeeChat 0.4.3]
fgo has quit [Ping timeout: 264 seconds]
Kricir_ has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
RxDx has joined #ruby
InhalingPixels has joined #ruby
cajone has joined #ruby
krz has joined #ruby
mattyohe has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
j416 has quit [Read error: Connection reset by peer]
akitada has quit [Ping timeout: 240 seconds]
j416 has joined #ruby
InhalingPixels has quit [Ping timeout: 250 seconds]
paulog_ has quit [Ping timeout: 240 seconds]
alol_ has quit [Ping timeout: 240 seconds]
Kricir_ has quit [Remote host closed the connection]
charliesome has joined #ruby
akitada has joined #ruby
kenneth has joined #ruby
mattyohe has joined #ruby
paulog_ has joined #ruby
alol_ has joined #ruby
bricker`LA has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
centrx is now known as DemonMonster5poi
DemonMonster5poi is now known as centrx
braincrash has joined #ruby
tylerkern has joined #ruby
RxDx has quit [Quit: This computer has gone to sleep]
GriffinHeart has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
szuletett has joined #ruby
Wolland_ is now known as Wolland
w09x has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Shidash has joined #ruby
skysploit has joined #ruby
endash has quit [Quit: endash]
bMalum_______ has joined #ruby
kaspergrubbe_ has joined #ruby
skysploit has quit [Client Quit]
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
bMalum_______ has quit [Ping timeout: 246 seconds]
bradleyprice has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 246 seconds]
Liam-Work has joined #ruby
nat2610 has quit [Quit: Leaving.]
oo__ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
_5kg has joined #ruby
iliketurtles has joined #ruby
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
nateberkopec has joined #ruby
zorak has quit [Quit: Saliendo]
zorak has joined #ruby
linojon has joined #ruby
oo_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
toastynerd has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
RxDx has joined #ruby
newUser1234 has joined #ruby
Matadoer has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
cy has joined #ruby
emmesswhy has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
RxDx has quit [Quit: This computer has gone to sleep]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
adantj has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 244 seconds]
jackjackdrpr has quit [Quit: Leaving.]
dopiee has joined #ruby
kireevco1 has joined #ruby
ItSAN____ has joined #ruby
beryllium1 has joined #ruby
Azure_ has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skmp_ has joined #ruby
andrewstewart_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meinside_ has joined #ruby
akitada_ has joined #ruby
dziga_ has joined #ruby
andrewcarter_ has joined #ruby
bjeanes_ has joined #ruby
Su7 has joined #ruby
thalweg has joined #ruby
cmaxw______ has joined #ruby
charles81_ has joined #ruby
diegok has joined #ruby
BombAw has joined #ruby
bedouin__ has joined #ruby
treehug88 has joined #ruby
niftylettuce__ has joined #ruby
radic_ has joined #ruby
radic has quit [Disconnected by services]
speaking1ode has joined #ruby
Blue_Ice_ has joined #ruby
gregf__ has joined #ruby
Drakevr_ has joined #ruby
charliesome has joined #ruby
ptierno_ has joined #ruby
Roa has joined #ruby
jamooo_ has joined #ruby
phreax has joined #ruby
micah` has joined #ruby
bijumon_ has joined #ruby
matti_ has joined #ruby
slash_ni1k has joined #ruby
vieq_ has joined #ruby
Morrolan_ has joined #ruby
fumduq- has joined #ruby
QKO has joined #ruby
Kilobyte|StupidC has joined #ruby
heftig_ has joined #ruby
Hien_ has joined #ruby
mc_fail_ has joined #ruby
RoryHughes_ has joined #ruby
bhaak_ has joined #ruby
waltz_ has joined #ruby
MindfulMonk_ has joined #ruby
narcan has quit [Ping timeout: 250 seconds]
dziga has quit [Ping timeout: 250 seconds]
Mattias has quit [Ping timeout: 250 seconds]
oetjenj has quit [Ping timeout: 250 seconds]
reprazent has quit [Ping timeout: 250 seconds]
heftig has quit [Ping timeout: 250 seconds]
beryllium has quit [Ping timeout: 250 seconds]
bedouin_ has quit [Ping timeout: 250 seconds]
charles81 has quit [Ping timeout: 250 seconds]
sptq has quit [Ping timeout: 250 seconds]
RoryHughes has quit [Ping timeout: 250 seconds]
Jello_Raptor has quit [Ping timeout: 250 seconds]
billy_ran_away has quit [Ping timeout: 250 seconds]
cmaxw_____ has quit [Ping timeout: 250 seconds]
andrewcarter has quit [Ping timeout: 250 seconds]
Guest85414______ has quit [Ping timeout: 250 seconds]
speakingcode has quit [Ping timeout: 250 seconds]
waltz has quit [Ping timeout: 250 seconds]
Lulzon has quit [Ping timeout: 250 seconds]
_5kg has quit [Ping timeout: 250 seconds]
akitada has quit [Ping timeout: 250 seconds]
niftylettuce_ has quit [Ping timeout: 250 seconds]
tectonic has quit [Ping timeout: 250 seconds]
Kilo`byte has quit [Ping timeout: 250 seconds]
ItSANgo has quit [Ping timeout: 250 seconds]
gccostabr has quit [Ping timeout: 250 seconds]
meinside has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 250 seconds]
dyreshark has quit [Ping timeout: 250 seconds]
Roa_ has quit [Ping timeout: 250 seconds]
ptierno has quit [Ping timeout: 250 seconds]
marcel has quit [Ping timeout: 250 seconds]
Drakevr has quit [Ping timeout: 250 seconds]
gregf_ has quit [Ping timeout: 250 seconds]
Blue_Ice has quit [Ping timeout: 250 seconds]
jamooo has quit [Ping timeout: 250 seconds]
stopbit has quit [Ping timeout: 250 seconds]
musicmatze has quit [Ping timeout: 250 seconds]
_maes_ has quit [Ping timeout: 250 seconds]
kireevco has quit [Ping timeout: 250 seconds]
W0rmDr1nk has quit [Ping timeout: 250 seconds]
dwts has quit [Ping timeout: 250 seconds]
micah`_ has quit [Ping timeout: 250 seconds]
dopieee has quit [Ping timeout: 250 seconds]
andrewstewart has quit [Ping timeout: 250 seconds]
skmp has quit [Ping timeout: 250 seconds]
bjeanes has quit [Ping timeout: 250 seconds]
segv has quit [Ping timeout: 250 seconds]
bhaak has quit [Ping timeout: 250 seconds]
QKO_ has quit [Ping timeout: 250 seconds]
__main__ has quit [Ping timeout: 250 seconds]
Morrolan has quit [Ping timeout: 250 seconds]
patronus has quit [Ping timeout: 250 seconds]
matti has quit [Ping timeout: 250 seconds]
linduxed has quit [Ping timeout: 250 seconds]
Hien has quit [Ping timeout: 250 seconds]
DarthGandalf has quit [Ping timeout: 250 seconds]
bijumon has quit [Ping timeout: 250 seconds]
slash_nick has quit [Ping timeout: 250 seconds]
bmn has quit [Ping timeout: 250 seconds]
MindfulMonk has quit [Ping timeout: 250 seconds]
Mars` has quit [Ping timeout: 250 seconds]
Zackio has quit [Ping timeout: 250 seconds]
fumduq has quit [Ping timeout: 250 seconds]
bauruine_ has quit [Ping timeout: 250 seconds]
drPoggs has quit [Ping timeout: 250 seconds]
diego_k has quit [Ping timeout: 250 seconds]
philtr has quit [Ping timeout: 250 seconds]
BombStrike has quit [Ping timeout: 250 seconds]
AlHafoudh has quit [Ping timeout: 250 seconds]
rageberry has quit [Ping timeout: 250 seconds]
mc_fail has quit [Ping timeout: 250 seconds]
Su7_ has quit [Ping timeout: 250 seconds]
vieq has quit [Ping timeout: 250 seconds]
kephra has quit [Ping timeout: 250 seconds]
thalweg_ has quit [Ping timeout: 250 seconds]
phreax_ has quit [Ping timeout: 250 seconds]
philtr has joined #ruby
dwts has joined #ruby
Jello__Raptor has joined #ruby
Mattias___ has joined #ruby
dwts has quit [Changing host]
dwts has joined #ruby
fumduq- is now known as fumduq
BombAw is now known as BombStrike
tectonic_ has joined #ruby
dziga_ is now known as dziga
AlHafoudh has joined #ruby
cmaxw______ is now known as cmaxw_____
bmn has joined #ruby
gccostabr has joined #ruby
Mars`` has joined #ruby
Jello__Raptor is now known as Jello_Raptor
andrewcarter_ is now known as andrewcarter
Mars`` is now known as Mars`
MindfulMonk_ is now known as MindfulMonk
Mattias___ is now known as Mattias
marcel has joined #ruby
rageberry has joined #ruby
W0rmDr1nk has joined #ruby
_main_ has joined #ruby
reprazent has joined #ruby
drPoggs has joined #ruby
polyidus has joined #ruby
dyreshark has joined #ruby
bedouin__ is now known as bedouin_
Lulzon_ has joined #ruby
oetjenj has joined #ruby
skmp_ is now known as skmp
Guest85414______ has joined #ruby
sptq has joined #ruby
matti_ is now known as matti
segv has joined #ruby
billy_ran_away has joined #ruby
stopbit has joined #ruby
kephra has joined #ruby
_5kg has joined #ruby
linduxed has joined #ruby
nat2610 has joined #ruby
bauruine has joined #ruby
DarthGandalf has joined #ruby
bjeanes_ is now known as bjeanes
andrewstewart_ is now known as andrewstewart
fgo has joined #ruby
patronus has joined #ruby
meinside_ is now known as meinside
akitada_ is now known as akitada
anaeem1 has joined #ruby
Zackio has joined #ruby
charliesome has quit [Client Quit]
fgo has quit [Read error: No route to host]
_main_ is now known as __main__
fgo has joined #ruby
abuzze has joined #ruby
mikepack has quit [Remote host closed the connection]
fold has quit [Ping timeout: 272 seconds]
vsoftoiletpaper has quit []
vsoftoiletpaper has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
folippi has joined #ruby
abuzze_ has quit [Ping timeout: 255 seconds]
jmbrown412 has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<folippi>
Hello! I've got a quick question about scopes in Ruby. In a class I def some methods. In the initialize method I want to set a variable for the class. In the initializer method of the class I want to set "self.title = 'Dr'" or something like that. This variable should be avaliable from other methods of the same class. How does that work in Ruby?
Aranshada|W has joined #ruby
<Hanmac>
folippi: attr_accessor
Aranshada|W has quit [Read error: Connection reset by peer]
<folippi>
Hanmac: hmmm thanks! Gonna check it out :)
anaeem1 has joined #ruby
jmbrown412 has quit [Ping timeout: 246 seconds]
nat2610 has quit [Quit: Leaving.]
<folippi>
Hanmac: you solved my problem! Thank you! Have a great day
beneggett has joined #ruby
mikepack has joined #ruby
philtr_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
bmn has quit [Ping timeout: 250 seconds]
philtr has quit [Ping timeout: 250 seconds]
DarthGandalf has quit [Ping timeout: 250 seconds]
Zackio has quit [Ping timeout: 250 seconds]
drPoggs has quit [Ping timeout: 250 seconds]
dwts has quit [Ping timeout: 250 seconds]
bmn has joined #ruby
drPoggs has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
DarthGandalf has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philcrissman has joined #ruby
Zackio has joined #ruby
juz88 has quit [Ping timeout: 272 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
folippi has quit [Remote host closed the connection]
dwts has joined #ruby
Matadoer has quit [Remote host closed the connection]
pietr0 has joined #ruby
<benzrf>
Hanmac nooooo
Matadoer has joined #ruby
Aranshada|W has joined #ruby
<benzrf>
s/he wanted an ivar
<benzrf>
clearly a python immigrant
theharshest has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
timgauthier has joined #ruby
amacou has joined #ruby
bMalum_______ has joined #ruby
GriffinHeart has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
theharshest has quit [Read error: Connection reset by peer]
bMalum_______ has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 255 seconds]
timgauthier has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
tylerkern has joined #ruby
nat2610 has joined #ruby
anaeem1 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
icebourg has quit []
whyy has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sigurding has quit [Ping timeout: 260 seconds]
tkuchiki_ has joined #ruby
fold has joined #ruby
anaeem1 has quit [Ping timeout: 260 seconds]
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
why_away has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
zkay11 has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
<Hanmac>
benzrf: the user is stull online but not in this channel ... you can send a PM if you want to correct that
whyy has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
<benzrf>
nope
<benzrf>
oh
bwilson has joined #ruby
djbkd has joined #ruby
folippi has joined #ruby
sigurding has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
thoolihan has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
Pumukel has joined #ruby
vsoftoiletpaper has quit []
vsoftoiletpaper has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
sigurding has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
freerobby has quit [Quit: Leaving.]
echooo has quit [Remote host closed the connection]
tylerkern has quit [Read error: Connection reset by peer]
echooo has joined #ruby
tylerkern has joined #ruby
OffTheRails has quit [Ping timeout: 255 seconds]
Jameser has quit [Remote host closed the connection]
Jameser has joined #ruby
x1337807x has joined #ruby
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
diegoviola has joined #ruby
zkay11 has left #ruby [#ruby]
iliketurtles has joined #ruby
bricker`LA has joined #ruby
lxsameer has joined #ruby
fgo has joined #ruby
ponch_ has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 250 seconds]
vsoftoiletpaper has quit []
EvanR_ has quit [Read error: Connection reset by peer]
EvanR_ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140715214327]]
vsoftoiletpaper has joined #ruby
axsuul has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger_ has joined #ruby
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
kalleth has quit [Write error: Broken pipe]
newUser1234 has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 255 seconds]
kalleth has joined #ruby
newUser1234 has joined #ruby
iteratorP has quit [Remote host closed the connection]
binw_ has joined #ruby
cherry_l1n has joined #ruby
ponch_ has joined #ruby
BlaDe^ has quit [Disconnected by services]
BlaDe^_ has joined #ruby
n88_ has joined #ruby
MarcWebe3 has joined #ruby
benvds_ has joined #ruby
n88 has quit [Write error: Broken pipe]
MarcWebe2 has quit [Write error: Broken pipe]
benvds has quit [Write error: Broken pipe]
cherry_lin has quit [Write error: Broken pipe]
binw has quit [Write error: Broken pipe]
hanikazmi_ has quit [Write error: Broken pipe]
artmann has quit [Write error: Broken pipe]
_whitelogger has quit [Write error: Broken pipe]
kriskrop1 has joined #ruby
Edelwin has quit [Remote host closed the connection]
kriskropd has quit [Write error: Connection reset by peer]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
Edelwin has joined #ruby
artmann has joined #ruby
michaeldeol has joined #ruby
jmeeuwen_ is now known as jmeeuwen
alexju has quit [Ping timeout: 255 seconds]
iteratorP has joined #ruby
bwilson has quit [Quit: +++CARRIER LOST+++]
centrx has quit [Quit: Mead error: Connection reset by beer]
Mon_Ouie has joined #ruby
bMalum_______ has joined #ruby
Photism has joined #ruby
vsoftoiletpaper has quit []
Aranshada|W has quit [Quit: Aranshada|W]
alexherbo2 has quit [Ping timeout: 255 seconds]
Aranshada|W has joined #ruby
duncannz has joined #ruby
duncannz is now known as Guest36449
bMalum_______ has quit [Ping timeout: 255 seconds]
juz88 has joined #ruby
duncan_ has joined #ruby
duncan_ has quit [Client Quit]
Guest36449 has quit [Client Quit]
anaeem1_ has joined #ruby
duncan_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<Hanmac>
folippi: if you only want instance variables and not full accessors you can also use @title = 'Dr' ... accessors are mainly if you want to access them from the outside too
sigurding has quit [Ping timeout: 240 seconds]
mordof has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
sigurding has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
Nice, I understood why i++ doesn't make sense in Ruby
GriffinHeart has joined #ruby
w09x has quit []
anaeem1 has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
<Hanmac>
because of fixed object ids and nearly nothing can change the object id of an object (without big hacking, or masqurading)
nobitanobi has quit [Remote host closed the connection]
krisquigley has joined #ruby
mordof has joined #ruby
nobitanobi has joined #ruby
IceDragon has quit [Quit: Space~~~]
<nobitanobi>
Hanmac:
<nobitanobi>
Right!
nateberkopec has joined #ruby
<nobitanobi>
I see it as variables are like labels of Objects
Xeago has joined #ruby
<nobitanobi>
so when we would try i = 100; i++; is like if we were going to do 100++
<Hanmac>
the same reason nearly nothing can change the class of an object (without big hacking, or masqurading)
<nobitanobi>
changing the value of 100 to 101, which obviously doesn't make sense
duncan_ has quit [Remote host closed the connection]
<Mon_Ouie>
evil.rb is still neat :p
<Hanmac>
Mon_Ouie: thats what i mean with "big hacking" ;P
yfeldblum has quit [Read error: Connection reset by peer]
<nobitanobi>
I am not going to go to the dark side
<Mon_Ouie>
It wouldn't work for fixnums anyway
yfeldblum has joined #ruby
<Hanmac>
but we have cookies ;P
anaeem1 has quit [Ping timeout: 250 seconds]
<nobitanobi>
Hanmac: that sounded like a molester in front of a primary school
toastynerd has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
Xeago has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
kireevco1 has quit [Quit: Leaving.]
dawkirst has joined #ruby
krisquigley has quit [Remote host closed the connection]
<nobitanobi>
Another thing that I learnt is that integers object_id's are always the same.
flowerha_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
mikepack has quit [Remote host closed the connection]
anaeem1__ has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
<sevenseacat>
not between different versions of ruby >_>
krisquigley has joined #ruby
<nobitanobi>
arg
<nobitanobi>
:)
baweaver has joined #ruby
juz88 has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
c00lryguy has joined #ruby
<apeiros_>
also a) implementation detail, and b) not all integer ;-)
tani has joined #ruby
<apeiros_>
(only fixnums)
tani has quit [Client Quit]
duncan_ has joined #ruby
relix has joined #ruby
iteratorP has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
tani has joined #ruby
mordof has quit [Ping timeout: 272 seconds]
Sauvin has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
folippi has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
mordof has joined #ruby
apeiros has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
fgo has joined #ruby
duncan_ has quit [Quit: Leaving]
duncan_ has joined #ruby
towbes has quit [Ping timeout: 246 seconds]
why_away has quit [Remote host closed the connection]
Matadoer has quit [Remote host closed the connection]
duncan_ has quit [Client Quit]
duncan_ has joined #ruby
<nobitanobi>
apeiros: thanks apeiros_
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alpha123 has quit [Ping timeout: 264 seconds]
philcrissman has joined #ruby
shredding has joined #ruby
duncan_ has quit [Client Quit]
thomasxie has quit [Remote host closed the connection]
duncan_ has joined #ruby
flowerhack has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
duncan_ has quit [Client Quit]
arup_r has joined #ruby
duncan_ has joined #ruby
kireevco has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 272 seconds]
iteratorP has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
davispuhh has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
aaronrl_ has joined #ruby
shredding has joined #ruby
Sauvin has quit [Quit: mIRC for Linux ain't all it's cracked up to be.]
Sauvin has joined #ruby
nobitanobi has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
aaronrl has quit [Ping timeout: 272 seconds]
krisquigley has quit [Remote host closed the connection]
niftylettuce__ has quit [Quit: Connection closed for inactivity]
JoshGlzBrk has joined #ruby
dawkirst_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigbowen3 has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
_mars_ has joined #ruby
starkhalo has quit [Ping timeout: 240 seconds]
tani has quit []
dawkirst has quit [Ping timeout: 260 seconds]
whyy has joined #ruby
bal has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
shredding has quit [Quit: shredding]
Xeago has joined #ruby
timonv_ has joined #ruby
bMalum_______ has joined #ruby
ponch_ has quit [Ping timeout: 260 seconds]
pietr0 has quit [Quit: pietr0]
_cpt_yossarian_ has joined #ruby
Aguynamedsteve has joined #ruby
tobago has joined #ruby
bMalum_______ has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
cpt_yossarian has quit [Ping timeout: 245 seconds]
iteratorP has quit [Remote host closed the connection]
thomasxie has joined #ruby
lkba has joined #ruby
RandomShop has joined #ruby
sigurding has joined #ruby
dawkirst_ has quit [Quit: Leaving...]
nateberkopec has joined #ruby
wu_lmao has quit [Quit: Leaving]
beneggett has joined #ruby
Soliah has quit [Quit: Soliah]
razum2um has joined #ruby
iteratorP has joined #ruby
gauke has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
luckyruby has quit [Quit: Leaving...]
timonv_ has joined #ruby
anaeem1 has joined #ruby
krisquigley has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
iteratorP has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
LexicalScope has joined #ruby
iteratorP has joined #ruby
Spami has joined #ruby
kquig has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
jprovazn has joined #ruby
Aranshada|W has joined #ruby
yfeldblu_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
kyb3r_ has quit [Ping timeout: 240 seconds]
iteratorP has joined #ruby
wjimenez5271 has quit []
wjimenez5271 has joined #ruby
kquig has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
yfeldblu_ has quit [Ping timeout: 255 seconds]
iteratorP has quit [Remote host closed the connection]
codecop has joined #ruby
iteratorP has joined #ruby
techsethi has joined #ruby
riotjones is now known as LH|riotjones
fgo has joined #ruby
Aranshada|W has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
whyy has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
craigbowen3 has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
mijicd has joined #ruby
timonv_ has joined #ruby
Aguynamedsteve has quit [Quit: This computer has gone to sleep]
bhaak_ is now known as bhaak
kireevco has quit [Ping timeout: 255 seconds]
LexicalScope has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
codecop has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
Morkel has joined #ruby
codecop has joined #ruby
anarang has joined #ruby
szuletett has quit [Ping timeout: 264 seconds]
BraddPitt has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
BraddPitt has joined #ruby
djbkd has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
elaptics`away is now known as elaptics
kireevco has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 245 seconds]
bMalum_______ has joined #ruby
whyy has joined #ruby
iteratorP has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
bMalum________ has joined #ruby
bMalum_______ has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
bMalum________ has quit [Read error: Connection reset by peer]
bMalum________ has joined #ruby
kireevco has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
juz88 has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
iteratorP has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
existensil has joined #ruby
yfeldblum has joined #ruby
bMalum________ has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
fauzanqadri has joined #ruby
linojon has quit [Quit: linojon]
goshdarnyou has quit [Quit: Connection closed for inactivity]
klaut has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
shredding has joined #ruby
ptrrr has quit [Quit: ptrrr]
rethus has joined #ruby
<rethus>
Gem::LoadError: You have already activated rake 10.3.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this.
nateberkopec has joined #ruby
<rethus>
but if i add bundle exec, i got:
<c00lryguy>
bundle update
<rethus>
LoadError: cannot load such file -- rails/all
<sevenseacat>
never run `bundle update` without arguments, ever -_-
<sevenseacat>
rails isnt in your bundle, is it?
BraddBitt has joined #ruby
<rethus>
how can i check this?
<rethus>
I'm not familar with ruby
nateberkopec has quit [Ping timeout: 240 seconds]
BraddPitt has quit [Ping timeout: 240 seconds]
wjimenez_ has joined #ruby
<rethus>
have i to switch back to 10.1.1 ?
<sevenseacat>
is rails in your Gemfile?
sk87 has joined #ruby
<sevenseacat>
and why are you writing a rails app if you're not familiar with ruby o.O
<c00lryguy>
Probably work related
sigurding has quit [Quit: sigurding]
iteratorP has quit [Remote host closed the connection]
<rethus>
sevenseacat : I've doesn't write an app, I try to upgrade redmine
<sevenseacat>
i'd hope they dont let unsuspecting people to work on projects in kanguages they have absolutely no familiarity with
<sevenseacat>
languages
aboudreault has quit [Excess Flood]
fauzanqadri has quit [Remote host closed the connection]
<c00lryguy>
I've often had to help out designers and such get a rails app working. Don't ask me why the boss made them setup and run the app on their development computer just to design but it's what happened.
<rethus>
this is the Gemfile you mean? sevenseacat
arup_r has quit [Remote host closed the connection]
<sevenseacat>
yes, and rails isnt in it - wtf is redmine doing
arup_r has quit [Remote host closed the connection]
fauzanqadri has quit [Remote host closed the connection]
why_away has joined #ruby
arup_r has joined #ruby
Wolland_ has joined #ruby
Grantlyk has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
arup_r_ has joined #ruby
kaspergrubbe_ has joined #ruby
froggy__ has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
<_JamieD_>
Hi, I’m looking to build a system around a messaging queue, I want a single message queue with multiple workers spread across different machines. The workers will have short lifetimes and need to attache and detach from the queue frequently. I’ve been looking at the RabbitMQ/bunny combo for this as it looks like it will do everything I need. Is there any other solutions I should investigate also?
hamsterrrrr has joined #ruby
cocotton has joined #ruby
froggy_ has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
hamsterrrrr has left #ruby [#ruby]
tvw has joined #ruby
jonahR has joined #ruby
relix has joined #ruby
byteoverfl0w has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
Azure_ is now known as Azure
mercerist has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
bMalum________ has joined #ruby
tkuchiki_ has joined #ruby
<ddv>
_JamieD_: are you using resque?
<_JamieD_>
ddv: I have been for testing a single worker, but it doesn’t look like it’s as good as rabbitmq when starting to distribute the workers
<jhass>
_JamieD_: sidekiq comes to mind
cocotton has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
fauzanqadri has joined #ruby
_mars_ has quit [Quit: Leaving]
tkuchiki_ has quit [Ping timeout: 272 seconds]
\q has quit [Ping timeout: 255 seconds]
AlSquirrel has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CorpusCallosum has joined #ruby
<Edelwin>
AlSquirrel: =)
\q has joined #ruby
bearish has joined #ruby
relix_ has joined #ruby
relix has quit [Ping timeout: 240 seconds]
arup_r_ has quit [Remote host closed the connection]
arup_r has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
<_JamieD_>
jhass: the trouble with the redis based queues is that it’s not good to expose the queue to the web and connecting via an ssh tunnel it going to be another thing to go wrong while setting up with short lived worker machines.
mercerist has joined #ruby
sepp2k has joined #ruby
Wolland has joined #ruby
pydave6367 has quit [Read error: Connection reset by peer]
<jhass>
redis has authentication, there are entire SaaS proviers doing nothing else than exposing redis to the web (redistogo.com for example)
<jhass>
I see no difference to exposing your amqp broker
RandomShop has quit [Quit: Leaving]
Aaaal has quit [Quit: Aaaal]
shredding has quit [Quit: shredding]
carraroj has quit [Ping timeout: 260 seconds]
Wolland_ has quit [Ping timeout: 264 seconds]
hellangel7 has joined #ruby
<Mon_Ouie>
mozzarella: I don't know what you mean, but that code isn't supposed to loop. It prints hello world on the screen, waits for you to hit a key, and terminates
<Mon_Ouie>
Also you need to turn on raw input mode to detect if the key is being held immediately
<_JamieD_>
rabbitmq supports multiple authentication methods and has ssl support so accessing it over an untrusted network is much more secure
jonahR has quit [Remote host closed the connection]
<jhass>
I guess then you made your choice, I was just listing additional alternatives ;)
<jhass>
not that per port IP whitelisting would be a hard thing to do...
root3d has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
britneywright has joined #ruby
<_JamieD_>
jhass: I’ve not made up my mind yet so was asking for alternatives I may not already have considered.
why_away has quit [Remote host closed the connection]
banister has joined #ruby
<ddv>
I would just use sidekiq
<_JamieD_>
jhass: port whitelisting would be another hoop to jump through, when a worker machine is setup it would need to register with the server running redis, the IP would then need to be added to the whitelist before it could begin running jobs. It would then need to be removed from the whitelist when it’s finished running jobs a few minutes later. This is more to go wrong and it will go wrong at some point when starting and stop
<_JamieD_>
hundreds of servers
<_JamieD_>
ddv: sidekiq uses redis
<ddv>
I know so what
Wolland_ has joined #ruby
<_JamieD_>
ddv: read my comments above
andikr has joined #ruby
<ddv>
You are looking for something that doesn't exist, you always have to configure something
postmodern has quit [Quit: Leaving]
tvw has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<_JamieD_>
I’m not looking for zero config, but cutting out as much config as possible makes a lot of sense in my setup. If I use rabbitmq the worker can simply connect to the queue, authenticate and begin running jobs.
timfoo has joined #ruby
tokik has joined #ruby
<_JamieD_>
I’ve not see any pros for a redis based queue so far, redis would be better than rabbitmq because of x,y,z in this kind of setup
pandaant has joined #ruby
jonahR has joined #ruby
<DefV>
I use a redis based queue because sidekiq adds some very nice features ontop
peret has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\q has quit [Ping timeout: 255 seconds]
\q has joined #ruby
techsethi has quit [Quit: techsethi]
mkaesz has joined #ruby
<ordomoko>
Hi guys. I have a question about sidekiq: does sidekiq forks a process for each "concurency thread" if sidekiq is runnin on MRI? I mean, if have a sidekiq and mri and set option 'concurency' to 10, will be sidekig processing 10 tasks parallel?
<ordomoko>
(dont ask why, it's a legacy bullshit and there is sidekiq because of only it is fashionable)
<ordomoko>
i think, the answer on my question is -- no
<ordomoko>
but i need a confirmation:)
Takle has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
<ordomoko>
forked processes are working on the same CPU kernel, right? And they are not parallelized
root3d has quit [Ping timeout: 260 seconds]
gogohome has joined #ruby
<jhass>
sidekiq uses celluloid in the background (actor based programming) and I think in the latest version it was switched to fiber strategy, so it should use fibers
<ordomoko>
so, 1 sidekiq with 1 concurency provides the same speed of processingjobs, as 1 sidekig with 10 concurency
<jhass>
before that it was the thread strategy
<jhass>
so no forking
<gogohome>
No, the Classy Critter program doesn’t involve a critter that went to finishing school and scoffs at other critters who don’t know which fork to use. <—— i can’t understand it. explain to me plz
<ordomoko>
jhass: i'm sure that sidekiq uses thread on rubynius or jruby
<jhass>
and no, forked processes are new processes and are under the same scheduling rules as any other process
<ordomoko>
jhass: but i know that MRI does not work with threads, so maybe sidekiq has a kind of backward compatibility
TorpedoSkyline has joined #ruby
<ordomoko>
ah, so 10 forked processes can be scheduled by 10 cpus? ok, nice
<jhass>
ordomoko: MRI does have threads, they just don't execute ruby code in parallel
<jhass>
if your workers do lots of IO (read access the DB) it's still a huge benefit
<ordomoko>
yes, you are right about this notice
<ordomoko>
yes, they did a lot of IO
philcrissman has joined #ruby
<ordomoko>
there are a lot of DB queries
<gogohome>
scoffs at other critters who don’t know which fork to use. <—— i can’t understand it. explain to me plz
karupa is now known as zz_karupa
root3d has joined #ruby
<ordomoko>
but what is better way to scale sidekiq in case when i'm runnin sidekiq on MRI? Increasing the 'concurency' option is not enough, i guess
tjr9898 has joined #ruby
<ordomoko>
it seems, need to run more and more sidekiqs
<jhass>
it depends on your workers and your hardware
<jhass>
toy with different combinations of concurrency and running multiple sidekiq worker processes
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland_ has quit [Remote host closed the connection]
Wolland has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
GriffinH_ has quit [Remote host closed the connection]
fauzanqadri has quit [Remote host closed the connection]
<ordomoko>
jhass: thank you
mengu has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has joined #ruby
carraroj has joined #ruby
mengu has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
Shidash has quit [Quit: Leaving.]
cocotton has quit [Remote host closed the connection]
charles81_ is now known as charles81
cocotton has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu__ has joined #ruby
ldnunes has joined #ruby
mengu has quit [Ping timeout: 272 seconds]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
phoo1234567 has joined #ruby
realDAB has joined #ruby
sigurding has quit [Quit: sigurding]
maximski has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
maximski has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
maximski has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
RxDx has joined #ruby
sigurding has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
RxDx has quit [Client Quit]
mr-foobar has quit [Read error: Connection reset by peer]
axilla has joined #ruby
mr-foobar has joined #ruby
bayed has joined #ruby
fgo has joined #ruby
mengu__ has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
yfeldblum has joined #ruby
cocotton_ has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
drawingthesun has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gogohome has quit [Quit: gogohome]
Takle has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 255 seconds]
tjr9898 has quit []
arup_r has joined #ruby
banister has joined #ruby
axilla has quit [Ping timeout: 240 seconds]
sheepman is now known as gymbro
Takle has joined #ruby
arup_r has quit [Remote host closed the connection]
jamto11 has joined #ruby
vt102 has joined #ruby
cocotton has quit [Remote host closed the connection]
gymbro is now known as sheepman
cocotton has joined #ruby
axilla has joined #ruby
byteoverfl0w has quit [Quit: Leaving... have a good one...]
shredding has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
cocotton_ has joined #ruby
whyy has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
jastix has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
nfk has joined #ruby
root3d has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 260 seconds]
whyy has joined #ruby
arup_r has joined #ruby
root3d has joined #ruby
bal has quit [Quit: bal]
agjacome has quit [Quit: leaving]
agjacome has joined #ruby
linojon has joined #ruby
rocknrollmarc has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
<rocknrollmarc>
hey guys Im trying to use a Gherkin parser and Im having trouble with the synthax its called Shallot
<jhass>
you really don't need to paste the gems code in here
agjacome has joined #ruby
<rocknrollmarc>
sorry
kaspertidemann has joined #ruby
<jhass>
what you do should paste here is the exact error you get
<rocknrollmarc>
ok sorry new here
arup_r has quit []
<rocknrollmarc>
Shallot::Error: no parser for opening
mengu has quit [Remote host closed the connection]
snath has quit [Ping timeout: 272 seconds]
fauzanqadri has joined #ruby
sambao21 has joined #ruby
startupality has joined #ruby
<jhass>
hm, looks like it's incompatible with Ruby >= 2.0
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
workmad3 has joined #ruby
banister_ has joined #ruby
<jhass>
Ruby 2.0 changed respond_to? to not include protected and private methods
banister has quit [Read error: Connection reset by peer]
<jhass>
Yet the gem relies on that behaviour
cleme1mp has joined #ruby
<jhass>
could easily be fixed by changing respond_to? method to respond_to? method, true but that's how it is
yfeldblum has joined #ruby
qmfnp has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
<rocknrollmarc>
can anyone help me with the Shallot parser Im realy stuck
<jhass>
I just explained you what is wrong
<rocknrollmarc>
oh sporry dint think you were wrtiting to me :)
jeramyRR has quit [Quit: jeramyRR]
alexju has quit [Remote host closed the connection]
<rocknrollmarc>
ok so what can I do use a lower ruby version ?
alexju has joined #ruby
fauzanqadri has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
troulouliou_dev has joined #ruby
<jhass>
or fix the gem, either by contributing a fix to it and asking for a new release or by monkeypatching it or both
<Bish>
hi, whie is RegExp.new "\." == /./
<Bish>
while "\." == "\."
<jhass>
Bish: you want "\\."
<Bish>
yeah i know now, but hwy
<jhass>
or Regexp.new Regexp.escape "."
<tobiasvl>
. is a special regex character
<workmad3>
Bish: "\." is equivalent to "."
yfeldblum has quit [Ping timeout: 246 seconds]
<Bish>
i get the concept of escaping, but i don't know why \. results in .
<rocknrollmarc>
So jhass what du I do I didnt quite get your comment I change respont_to? to what
<workmad3>
Bish: because \ in a string is an escape character, so escapes whatever is after it (irrespective of if the following character is special or not)
<workmad3>
Bish: so if you want a literal \ in a "" string, you need to do "\\"
<Bish>
so i am escaping the escaper, to escape something
<Bish>
hngg
<workmad3>
Bish: this is why it's better to use regexp literals over Regexp.new btw
<jhass>
rocknrollmarc: if you can't do or understand what I described I suggest you search for a more maintained alternative
Cork has quit [Ping timeout: 272 seconds]
<Bish>
workmad3, sure what u say is right, because... when i type "\." it results in "\.",
<Bish>
oh right.. somehow.. i didn't look at it right
<workmad3>
Bish: don't get confused by the output from irb, which shows you the result of .inspect
<Bish>
you're right, thank you
zeeraw has joined #ruby
<workmad3>
although even that strips off the \ :)
<ernetas>
I'm using RVM and Ruby 2.1.2 and everything works fine when running in bash, but not when Munin tries to do it itself: /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- munin-plugins-rails (LoadError).
<ernetas>
What could be the issue?
<ernetas>
The gem is installed.
tylerkern has joined #ruby
<workmad3>
ernetas: did you make sure the RVM environment was re-established in the Munin process?
<wasamasa>
hmm
<wasamasa>
is there some way to have a ternary operator without the shorthand syntax?
<workmad3>
ernetas: e.g. by pointing munin at an rvm ruby wrapper
<wasamasa>
something along the lines of `variable = value if condition else other_value`
maximski has quit []
spastorino has joined #ruby
<workmad3>
wasamasa: you mean something like 'variable = if condition then value else other_value end'
<ernetas>
workmad3: thanks. That's probably it. I'll try.
<wasamasa>
workmad3: hmk, thought this was rather common and would not require a complete if-statement
<workmad3>
wasamasa: which isn't a ternary btw... ternary is specifically the ?: syntax
Nahra` has quit [Ping timeout: 244 seconds]
<workmad3>
wasamasa: you can write the if statement on one line
<workmad3>
wasamasa: but ?: isn't a shorthand for some other thing... it's just the ternary syntax
<Bish>
when using each on an array, can i get the index?
<workmad3>
Bish: the second one is possible as .with_index can be called on an enumerator to get the enumerator with an index param... e.g. map.with_index
Drakevr_ is now known as Drakevr
Cork has joined #ruby
<workmad3>
Bish: while each_with_index was in place before the modern Enumerator stuff was in-place :)(
<workmad3>
*:)
Drakevr has quit [Changing host]
Drakevr has joined #ruby
mengu has joined #ruby
<Bish>
when deleting stuff out of the array, while iterating
<Bish>
hell breaks lose, am i right?
<Bish>
loose*
rocknrollmarc has quit [Ping timeout: 244 seconds]
<apeiros>
Bish: generally not such a good idea, yes
<apeiros>
Bish: use reject for that
<ernetas>
workmad3: wrapper did the trick. Thanks.
ernetas has left #ruby [#ruby]
<apeiros>
reject! actually
realDAB has quit [Quit: realDAB]
rocknrollmarc has joined #ruby
jonahR has quit [Remote host closed the connection]
whyy has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
<Bish>
is there reject with index :D
startupality has quit [Quit: startupality]
<banister_>
Bish sup bish
<Bish>
banister_, hi
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
well, the reason I like compiling is because I actually try to compile from source when possible, not just ruby but everything. The gobolinux approach for versioned directories is so much cleaner than the /usr FHS model
cocotton has joined #ruby
<shevy>
rvm should work for all programs :)
Grantlyk has quit [Remote host closed the connection]
<shevy>
but such a podcast looks nice
rdavila has joined #ruby
<shevy>
every like 3 months or so, one could get an update into what is new or what might have happened in between the last 3 months
<havenwood>
shevy: i like their technical discussions. longer than some podcast formats so they can discuss.
<shevy>
for instance that part "Creating Packaging Files"
<shevy>
that one I have to listen to
yacks has joined #ruby
sylvanica has joined #ruby
ptrrr has quit [Quit: ptrrr]
<shevy>
hmmm
<shevy>
01:17:10 ? Future of Projects
<shevy>
three times RVM mentioned?
toastynerd has quit [Remote host closed the connection]
<shevy>
is there a slight bias? :D
fgo has quit [Ping timeout: 255 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
mkaesz has joined #ruby
nfk has quit [Quit: yawn]
<apeiros>
hi chevy
<havenwood>
hahaha
endash has joined #ruby
mskaesz has joined #ruby
mercerist has joined #ruby
icebourg has joined #ruby
hellangel7 has joined #ruby
dblessing_ has joined #ruby
bricker`LA has quit [Ping timeout: 244 seconds]
blueOxigen has joined #ruby
enebo_ has joined #ruby
pydave6377 has joined #ruby
linojon_ has joined #ruby
fauzanqa_ has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dblessing_ has quit [Client Quit]
Photism has joined #ruby
kriskropd has joined #ruby
sambao21 has joined #ruby
andrewlio1 has joined #ruby
Grantlyk has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
bearish has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
bearish has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
icebourg has quit []
xerxas has joined #ruby
fgo has joined #ruby
jsodini has quit [Read error: Connection reset by peer]
fauzanqadri has quit [Ping timeout: 240 seconds]
szuletett has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
JBreit has quit [Read error: Connection reset by peer]
msmith has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
rdavila has quit [Quit: rdavila]
mercerist has joined #ruby
Liothen has joined #ruby
renderful has joined #ruby
<aarkerio>
hi! there is "ruby standard way" for asynchronous execution? I have an update_user(@user) method and I need execute the big method update_all_fields(@user) in a delayed way
szuletett has joined #ruby
rdavila has joined #ruby
<aarkerio>
insert a cronjob doesn't sound "elegant"
wjimenez_ has quit [Remote host closed the connection]
<crome>
or sidekiq/resque
sevvie has joined #ruby
<apeiros>
aarkerio: not really a language level problem, so there's no "ruby standard" for it. there are common libraries/tools - two of which crome already mentioned
emmesswhy has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<apeiros>
concurrency on the language level is done using Thread, Fiber or by forking
vsoftoiletpaper has joined #ruby
georgelappies has joined #ruby
scott0101 has joined #ruby
cocotton has joined #ruby
<scott0101>
hi, is there an elegant way to test if an array has a value and that its the only value?
<scott0101>
I know I can do include? but I want to ensure there are no other values in the array
<jhass>
array == [value] I guess
<apeiros>
array.size == 1 && array.first == value
<apeiros>
meh, jhass is nicer
w1xz has quit [Ping timeout: 255 seconds]
<scott0101>
yeah thats what I have, was wondering if there was an all in one
<apeiros>
insert missing '
cocotton has quit [Remote host closed the connection]
msmith has joined #ruby
<jhass>
apeiros: was typing that first too :P
paulfm has quit []
ssvo has joined #ruby
<apeiros>
I'll pull the lame apology of being rather tired :)
<apeiros>
yours is IMO the obvious & proper way
mskaesz has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
scott0101 has left #ruby [#ruby]
jonr22 has joined #ruby
jimms has joined #ruby
jonr22 has quit [Client Quit]
georgelappies has quit [Remote host closed the connection]
ghostmoth has joined #ruby
georgelappies has joined #ruby
jonr22 has joined #ruby
toastynerd has joined #ruby
jonr22 has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
<shevy>
he is in holiday phase already
<apeiros>
na, had interval training today
<apeiros>
that really wrecks me :-/
* apeiros
off for commute
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
amargherio has joined #ruby
the_f0ster has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
phutchins has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
deavid has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
<Sou|cutter>
hrm, hard to decide between readability and efficiency sometimes
<havenwood>
readability.
InhalingPixels has joined #ruby
bricker`work has joined #ruby
freerobby1 has joined #ruby
<Sou|cutter>
I could use a single count block with a complex conditional, or more of a pipeline/chain of reject/select followed by a .size
freerobby has quit [Read error: Connection reset by peer]
<Sou|cutter>
the latter is definitely more readable
cpruitt has quit [Read error: Connection reset by peer]
mercerist has quit [Quit: Computer has gone to sleep.]
fauzanqa_ has quit [Remote host closed the connection]
bMalum__________ has joined #ruby
cpruitt has joined #ruby
fauzanqadri has joined #ruby
<graft>
anyone know where to find docs for rb_funcall?
yfeldblum has joined #ruby
tylerkern has joined #ruby
chipotle has quit [Quit: cya]
<graft>
a single count block seems more readable to me
aspires has joined #ruby
<Sou|cutter>
I suppose either way reduces to O(n), even if the latter has a higher coefficient
drs has joined #ruby
shredding has quit [Quit: shredding]
<graft>
if you're chaining selects, that's not O(n)
bMalum_________ has quit [Ping timeout: 250 seconds]
beneggett has joined #ruby
<Sou|cutter>
graft: it could be if it were all positive assertions, but some conditions are negated which is hard to mentally process IMO
reisl has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
deavid has joined #ruby
JBreit has joined #ruby
namxam has quit [Remote host closed the connection]
<drs>
simple question.. i'm looking for a ruby example app that instead of using a database just makes calls to an API.. so maybe a small set of controller functionality and view layer.. is there a good example out there of something like that?
<Sou|cutter>
graft: what do you think it is?
<havenwood>
Sou|cutter: Gist the code for more feedback if code is public?
<ordomoko>
drs: do you want to use an API like activerecord?
<Sou|cutter>
O(2n) == O(n)
fauzanqadri has quit [Ping timeout: 255 seconds]
<graft>
Sou|cutter: yeah, but in this case we can explicitly say it's going to be more evaluations, so O(n) is better than O(2n)
yfeldblum has quit [Ping timeout: 240 seconds]
jpiche has joined #ruby
<graft>
actually, never mind, i take it back, it's probably exactly the same number of evaluations
<jhass>
Sou|cutter: in doubt readability. Optimize if you can prove a performance bottleneck. In your example though you may be able to give the condition a nice name by hiding it in an additional method
endash has quit [Quit: endash]
maletor has joined #ruby
<Sou|cutter>
jhass: that's true
<graft>
yeah i usually like to make each clause in a conditional a method with a descriptive name if that's not too onerous
<Sou|cutter>
graft: thinking of names for things is totally onerous!
<Sou|cutter>
;)
<drs>
ordomoko: hmm maybe? i'm not a ruby developer.. but i'm looking to build a web based app that just makes JSON GETs/POSTs to an already existing API.. there will be no database access from the ruby side.
InhalingPixels has quit [Remote host closed the connection]
<drs>
the API is writtin in .NET
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<graft>
drs: what's the ruby part?
<havenwood>
drs: Seems you could just create your own class and pick a nice HTTP gem.
saarinen has joined #ruby
Zebroid has joined #ruby
<graft>
Sou|cutter: i still like the count block better... but get rid of that include? !
sambao21 has quit [Quit: Computer has gone to sleep.]
bigoldrock has joined #ruby
rocknrollmarc has joined #ruby
amacou has quit [Ping timeout: 272 seconds]
razum2um has quit [Quit: Leaving.]
EminenceHC has joined #ruby
JohnFord has joined #ruby
wald0 has joined #ruby
JohnFord has quit [Client Quit]
bigoldrock has left #ruby [#ruby]
jon2 has joined #ruby
hellangel7 has joined #ruby
<EminenceHC>
I am trying to think of the best way to set a "pay period". I am thinking of setting a start date (for example this monday), and then from here on out choose the closest monday of the two week pay period to the current date. Am I thinking about that wrong?
icebourg has joined #ruby
aruntomar has quit [Ping timeout: 255 seconds]
icebourg has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
jon2 has quit [Client Quit]
mary5030 has joined #ruby
icebourg has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
szuletett has quit [Ping timeout: 255 seconds]
namxam has quit [Remote host closed the connection]
zeeraw has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
zeeraw has quit [Client Quit]
djbkd has joined #ruby
cuqa has joined #ruby
startupality has joined #ruby
JohnFord has joined #ruby
sambao21 has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
jason_rad has joined #ruby
<cuqa>
hello, im trying to use savon to make soap queries, but Im having trouble with the authentication
mars has joined #ruby
<cuqa>
anyone know if digest_auth is not working with savon at all?
<jason_rad>
I'm trying to load facts with facter gem.. However I get nil.. I can Facter.list and it shows available facts, but when I try to do say Facter.hostname I get nothing ... http://pastie.org/9473719
<jason_rad>
any ideas would be helpful
chth0n has quit [Ping timeout: 255 seconds]
mars is now known as Guest39381
aarkerio has quit [Quit: Verlassend]
beef-wellington has quit [Ping timeout: 240 seconds]
jonahR has quit [Remote host closed the connection]
Tricon has joined #ruby
Guest39381 has quit [Quit: Leaving]
<jhass>
gr33n7007h: depends. If all the class does is holding that data I'd use a Struct. If it's less than about 5 attributes I'd be explicit. And then option 2
georgelappies has joined #ruby
Kricir has joined #ruby
startupality has quit [Client Quit]
pmac_ has joined #ruby
yetanotherdave has joined #ruby
dumdedum has quit [Quit: foo]
<gr33n7007h>
Ok, cool. Yeah it's just holding the data so use a Struct
ghr has joined #ruby
lw_ has joined #ruby
jonahR_ has joined #ruby
lw has quit [Ping timeout: 250 seconds]
aruntomar has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
ghostmoth has quit [Quit: ghostmoth]
rdavila has quit [Quit: rdavila]
jonahR has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
comma8 has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
peret has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
jonahR_ has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
superscott[8] has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
Kricir has quit [Remote host closed the connection]
<pontiki>
EminenceHC: Date.today.monday + 2.weeks
<pontiki>
?
<pontiki>
ah, no
Avahey_ has joined #ruby
namxam has joined #ruby
georgelappies has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 246 seconds]
Bira has quit [Remote host closed the connection]
superscott[8] has joined #ruby
iliketurtles has joined #ruby
momomomomo_ has joined #ruby
<pontiki>
gr33n7007h: response at your gist. i prefer using fetch and naming the attributes expressly
djbkd has joined #ruby
sigurding has joined #ruby
arup_r has quit [Quit: Leaving.]
lxsameer has joined #ruby
coldkey21 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
if you want the fetch to raise an error if there's no :name or :age, sure. but you might want to use the block to raise an ArguementError with a better error message instead
Zesty has joined #ruby
Zesty has quit [Remote host closed the connection]
discr33t___ has joined #ruby
amclain has joined #ruby
jheg has quit [Quit: jheg]
<discr33t___>
is there an easy way to use ruby to pull a list of mount points from a centos server
<pontiki>
ArgumentError ? i never remember how to spell that
barhum2013 has quit [Quit: barhum2013]
<pontiki>
discr33t___: how would you do it in bash?
yebyen has joined #ruby
Wolland has joined #ruby
<yebyen>
anyone who can tell me how [**{}] is different from just [{}]
<discr33t___>
pontiki: i would use the mount command and then pipe to awk and then use see and a bunch of regex
abuzze has quit [Ping timeout: 255 seconds]
<gr33n7007h>
pontiki, ok thanks
<yebyen>
I found it on this page of cryptic ruby examples
<yebyen>
and it turns out to be very hard to google [**{}]
<yebyen>
or even **
tylerkern has quit [Client Quit]
<jhass>
yebyen: [**{}] makes little to no sense. ** in a method call passes the hash as named arguments to a method that expects them
momomomomo has quit [Quit: momomomomo]
<jhass>
check symbolhound.com ;)
wjimenez_ has joined #ruby
tylerkern has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bwilson has joined #ruby
<yebyen>
one of the examples are 0.0.**0.0
<yebyen>
so i'm not sure they're all about necessarily making sense
<yebyen>
great answer thanks
<jhass>
that's a different **
<yebyen>
->(){[[**{}],->(){[]}.()]}.()
<jhass>
that's raising 0 to the power of 0 (which is mathematically undefined)
Wolland_ has joined #ruby
<jhass>
operators are methods in ruby, so let me add some parens: (0.0).**(0.0)
<yebyen>
I did figure that one out on my own
<discr33t___>
pontiki: actually i would probably do df -h | awk {'print$6'} | grep /
Wolland has quit [Ping timeout: 244 seconds]
<yebyen>
I'm not sure how [**{}] is even syntactically correct
<yebyen>
since **{} isn't
momomomomo has joined #ruby
<discr33t___>
i would assume to get that to a variable in ruby i would need to do foo = <% `df -h | awk {'print $6'} | grep /` %>
momomomomo has quit [Client Quit]
Bira has joined #ruby
craigbowen3 has joined #ruby
<pontiki>
discr33t___: yeah, i was looking to see if there was something in core or stdlib, but i didn't come up with anything
<discr33t___>
pontiki: i was hoping so
barhum2013 has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
<pontiki>
personally, i'd probably do it the same way by snagging the output of `df -h` and processing the text in ruby
<discr33t___>
pontiki: i want to do something like this but i keep getting an error saying partitions doesn't have a value http://pastebin.com/5dv3BRLh
<jhass>
yebyen: just like the splat for arrays can be placed anywhere a comma separated list is expected, can ** be used anywhere named arguments would be valid. in this case it works because you can do an implicit hash inside []: [foo: 'bar']
tylerkern has quit [Ping timeout: 260 seconds]
comma8 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
carraroj has joined #ruby
<pontiki>
oh, you need to put 'partitions = ' *inside* your erb delimiters, then, i think
wombo has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<jhass>
in general I consider defined? a code smell, you should know what's defined in the current context
tylerkern has quit [Ping timeout: 245 seconds]
lw has joined #ruby
Pro| has joined #ruby
yacks has quit [Ping timeout: 244 seconds]
lw has quit [Max SendQ exceeded]
<apeiros>
mechanicalduck: because defined? is not semantically identical to "hash contains key"
<apeiros>
the expression you pass is defined
<apeiros>
to what the expression evaluates is irrelevant
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
* apeiros
concurs with jhass wrt defined? being a code smell
nanoyak has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
yacks has joined #ruby
matchaw has quit [Ping timeout: 255 seconds]
jobewan has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
bMalum__________ has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
bMalum__________ has joined #ruby
lw has quit [Max SendQ exceeded]
<mechanicalduck>
apeiros: oh, not so good. I use the has_key (formerly defined? now) on several places in my code
jrhe_ has joined #ruby
rfish has joined #ruby
<rfish>
hey newb question
pmac__ has joined #ruby
lw has joined #ruby
amargherio has joined #ruby
pmac_ has quit [Ping timeout: 245 seconds]
<rfish>
I am trying to parse this
lw has quit [Max SendQ exceeded]
<rfish>
def radio_group; self.validation.enum.first.to_s end
<apeiros>
mechanicalduck: why "not so good" then? sounds like you switched to the right construct
<rfish>
sometimes the object validation or enum is null
lw has joined #ruby
<rfish>
in that case I want to return 'default'
<rfish>
how do I do this?
lw has quit [Max SendQ exceeded]
<apeiros>
rfish: you test for it and return 'default'
<rfish>
how do I test for that?
fgo has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<apeiros>
rfish: .nil? if you want to be explicit. plain conditional if you don't care about self.
Zenigor has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<apeiros>
def radio_group; if validation && validation.enum; validation.enum.first.to_s else 'default' end
<apeiros>
end
tylerkern has joined #ruby
lw has joined #ruby
coca_rails has quit [Quit: coca_rails]
lw has quit [Max SendQ exceeded]
<jhass>
rfish: are you in rails?
<rfish>
sinatra
ari-_-e has quit [Ping timeout: 272 seconds]
bMalum__________ has quit [Ping timeout: 260 seconds]
rezzack1 has joined #ruby
cg433n has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
rezzack has quit [Ping timeout: 250 seconds]
<mechanicalduck>
oh
Kricir has joined #ruby
coca_rails has joined #ruby
lw has joined #ruby
<apeiros>
mechanicalduck: or wait - did you say you switched from has_key? to defined? - or did you say you switched from defined? to has_key?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has quit [Max SendQ exceeded]
aspires has quit []
fgo has quit [Ping timeout: 250 seconds]
coca_rails has quit [Client Quit]
ari-_-e has joined #ruby
momomomomo has joined #ruby
<mechanicalduck>
apeiros: From defined to hash_key
coca_rails has joined #ruby
lw has joined #ruby
beef-wellington has joined #ruby
lw has quit [Max SendQ exceeded]
coca_rails has quit [Client Quit]
gtrak has joined #ruby
iamjarvo has joined #ruby
jtzero has left #ruby [#ruby]
n1lo has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
root3d has quit [Ping timeout: 246 seconds]
nilo_ has joined #ruby
coca_rails has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
starlord has left #ruby [#ruby]
Takle has joined #ruby
yokel has joined #ruby
n1lo has quit [Disconnected by services]
CorySimmons has joined #ruby
paulfm has quit [Ping timeout: 255 seconds]
Cheezebox has quit [Remote host closed the connection]
n1lo has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Remote host closed the connection]
mechanicalduck has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
jdj_dk has joined #ruby
Sephyros has joined #ruby
endash has joined #ruby
paulfm has joined #ruby
<Sephyros>
Hello Everybody
cocotton has joined #ruby
JBreit has left #ruby ["Leaving"]
<Sephyros>
Can someone help me with "bundle" command?
nilo_ has quit [Client Quit]
cap has joined #ruby
sambao21 has joined #ruby
<jhass>
maybe, we don't know your issue
x1337807x has joined #ruby
<apeiros>
maybe someone can. but how can someone know?
Zenigor has joined #ruby
<Sephyros>
Well, i can use APT, Internet and some other things that require internet, but i cannot use bundle to download/install gems, i am behind a Proxy
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
it errors out?
<apeiros>
downloading/installing gems behind a proxy works fine for me
<Sephyros>
already configured the apt.conf, bash.bashrc
msmith_ has quit [Remote host closed the connection]
<ari-_-e>
that's not really relevant
<centrx>
Comparing symbols is indeed significantly faster than comparing strings
x1337807x has joined #ruby
<apeiros>
ari-_-e: errr, yes, it is.
Sephyros has quit [Remote host closed the connection]
<apeiros>
Object#hash is not relevant when your object is a Symbol. it won't use Object#hash. it will use Symbol#hash.
<ari-_-e>
apeiros: who cares which specific implementation of the method is used?
<ari-_-e>
does your code check that?
<apeiros>
ari-_-e: that's the core of what shevy said
<apeiros>
and you (wrongly) refuted it
cobakobodob has quit [Ping timeout: 260 seconds]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
<soahccc>
Any idea how to fix Net::HTTP::Head.new(URI("https://..")) ? On ruby 2.1 it doesn't work anymore as I think it wants a string now and I'm looking for something working in older versions as well.
TorpedoSkyline has joined #ruby
<ari-_-e>
apeiros: the way shevy said it implied that hashing is done based on id
<ari-_-e>
which is incorrect
zz_anildigital is now known as anildigital
bearish has quit [Remote host closed the connection]
<ari-_-e>
it is done with the #hash method
Grantlyk has quit [Remote host closed the connection]
alexju has quit []
<ari-_-e>
which does happen to just use ids for Symbols, because they are interned
maletor has quit [Quit: Computer has gone to sleep.]
alexju has joined #ruby
cap has quit [Ping timeout: 250 seconds]
ponch_ has quit [Remote host closed the connection]
<centrx>
QED
<apeiros>
ari-_-e: you just contradicted yourself :-)
dbasch has quit [Quit: dbasch]
cocotton_ has joined #ruby
<ari-_-e>
apeiros: no, I did not
chrishough has joined #ruby
<ari-_-e>
Symbols are the only class that uses ids for hashing
<apeiros>
shevy said hashing *for symbols* is based on ids. which is very much correct.
<apeiros>
which you just admitted to be correct
ebobby has quit [Quit: Lost terminal]
<ari-_-e>
apeiros: looks like you need to re-read what shevy said
startupality has quit [Quit: startupality]
<apeiros>
21:54 shevy: cuqa yeah, a symbol. they have the same id all the time
<apeiros>
21:55 shevy: cuqa that is why they are often used as keys in a hash, like in your example
<apeiros>
fits
nat2610 has joined #ruby
whyy has joined #ruby
MatthewsFace has quit [Ping timeout: 240 seconds]
Cheezebox has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 244 seconds]
<centrx>
but we can all agree, Hash#to_sym == Symbol#hash
msmith has joined #ruby
<ari-_-e>
apeiros: to me, that says that equivalent objects are only suitable for hashing when they have the same id
Grantlyk_ has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
<riceandbeans>
apeiros: I don't understand
philcrissman has joined #ruby
<riceandbeans>
why would you have foo bar
<centrx>
riceandbeans, Like if you do (1 + 2) * 3 instead of 1 + 2 * 3
<riceandbeans>
I could ese foo.bar or something
wombo has quit [Ping timeout: 250 seconds]
<apeiros>
>> def foo; yield("foo is yielding") if block_given?; end; def bar; yield("bar is yielding") if block_given?; end; foo bar { |who| puts who }
<apeiros>
>> def foo; yield("foo is yielding") if block_given?; end; def bar; yield("bar is yielding") if block_given?; end; foo bar do |who| puts who end
<eval-in>
apeiros => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/179453)
<apeiros>
huh?
<apeiros>
oh, d'oh
<apeiros>
>> def foo(*); yield("foo is yielding") if block_given?; end; def bar(*); yield("bar is yielding") if block_given?; end; foo bar do |who| puts who end
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obscured has joined #ruby
Mozee has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
icole has quit [Remote host closed the connection]
coca_rails has joined #ruby
<riceandbeans>
shevy: right, only it's not doing what I'd expect
bmurt has quit [Ping timeout: 272 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
JoshGlzBrk has joined #ruby
<riceandbeans>
I tell it the form username, and password, and tell it submit, and it shows me the same page
heftig_ has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
chars6 has quit [Quit: Konversation terminated!]
<blackjid>
Hi guys!. A quick one!, what do you think about using alias versions in .ruby-version files for projects.. I mean to use 2.0.0 instead of 2.0.0-p451
hooper has joined #ruby
newUser1234 has quit [Remote host closed the connection]
phpDevSa has quit []
kenneth has quit [Quit: Bye.]
emmesswhy has joined #ruby
jespada has quit [Quit: Leaving]
johnmolina has quit []
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Client Quit]
shredding has quit [Quit: shredding]
alvaro_o has joined #ruby
<bricker`work>
blackjid: Depends what the project is. It's never caused me any problems though.
anildigital is now known as zz_anildigital
n1lo has quit [Ping timeout: 244 seconds]
spyderma_ has joined #ruby
mengu has quit []
spyderman4g63 has quit [Ping timeout: 240 seconds]
jimms has quit []
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aarkerio has joined #ruby
<jhass>
blackjid: fine for chruby and iirc rvm. rbenv by design refuses to support that
<blackjid>
realy?
<blackjid>
really?
<jhass>
really
<blackjid>
i'm using it with rbenv and it works..
<blackjid>
i think
superscott[8] has quit []
<jhass>
are you sure? Did they change their mind?
bearish has joined #ruby
<blackjid>
the question was more in the philosofical/technical way.... should I?
<shevy>
jhass are you working on some larger ruby project?
<jhass>
shevy: I still contribute to diaspora
MartinCleaver has quit [Quit: MartinCleaver]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
alexju has quit [Remote host closed the connection]
bMalum__________ has joined #ruby
alexju has joined #ruby
freerobby has quit [Quit: Leaving.]
dblessing has quit [Quit: dblessing]
<nobitanobi>
/j #heroku
<jhass>
are you sure?
bearish has quit [Ping timeout: 240 seconds]
<nobitanobi>
~~
msmith has quit [Remote host closed the connection]
niklasb has joined #ruby
aarkerio has quit [Quit: Verlassend]
<wallerdev>
riceandbeans: if you actually want help you need to post a code snippet or something
freerobby has joined #ruby
obscured has quit [Quit: leaving]
<wallerdev>
if you just tell people you have a problem no ones going to try to get all the details out of you, its up to you to provide as much info as you can so people can help you easier
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum__________ has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
jeramyRR has quit [Ping timeout: 255 seconds]
bMalum__________ has joined #ruby
thejollygrmreape has joined #ruby
kirun has joined #ruby
thejollygrmreape has left #ruby ["Leaving"]
ylluminate` has joined #ruby
chrisramon has quit [Quit: chrisramon]
ylluminate has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
<shevy>
wallerdev is so mean today
bbloom_ has joined #ruby
rdavila has quit [Quit: rdavila]
alexju has quit [Ping timeout: 264 seconds]
<shevy>
riceandbeans if you wanna get dirty, you could insert debug statements within mechanize itself to see what is going on
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tricon_ has joined #ruby
dc has quit [Remote host closed the connection]
<shevy>
I lost motivation dealing with mechanize when they abandoned hpricot - nokogiri did not work for me for some months back then and I never managed to regain the old motivation :(
chrisramon has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
<wallerdev>
i used mechanize a bunch in the past
momomomomo has quit [Ping timeout: 246 seconds]
Cheezebox has joined #ruby
krisquigley has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
bbloom has quit [Ping timeout: 240 seconds]
Blizzy has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
ssvo has quit [Ping timeout: 260 seconds]
bMalum__________ has quit [Ping timeout: 245 seconds]
<riceandbeans>
wallerdev: oh?
<wallerdev>
oh
<riceandbeans>
ah
jtharris has quit []
<shevy>
eh
lsone has quit [Ping timeout: 272 seconds]
<jhass>
uh
Cheezebox has quit [Remote host closed the connection]
beneggett has joined #ruby
tricon_ is now known as Tricon
momomomomo has joined #ruby
ssvo has joined #ruby
beneggett has quit [Client Quit]
ringarin has joined #ruby
dc has joined #ruby
msmith has joined #ruby
mojo619 has joined #ruby
ecksit has joined #ruby
havenwood has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
poulet_a has joined #ruby
lxsameer has quit [Quit: Leaving]
havenwood has joined #ruby
aaronrl has quit [Read error: Connection reset by peer]
gtrak has quit [Ping timeout: 264 seconds]
TheNet has quit [Quit: Leaving...]
discr33t___ has quit [Ping timeout: 246 seconds]
beef-wellington has quit [Ping timeout: 245 seconds]
dbasch has joined #ruby
dc has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
aaronrl has joined #ruby
alexju has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Zzz...]
circ-user-ldQXT has quit [Remote host closed the connection]
sdwrage has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has joined #ruby
klaut has quit [Remote host closed the connection]
philcrissman has joined #ruby
anarang has quit [Read error: Connection reset by peer]
kireevco has quit [Read error: Connection reset by peer]
<Darkchaos>
Hello Guys. Quick Question: I have a inner and a outer loop. I want to have the inner loop "break" and the outer loop to "next" if my if condition triggers. is it possible?
gh has quit [Quit: Leaving]
<wallerdev>
yup
kireevco has joined #ruby
<Darkchaos>
I tried "break next" but it seems, like the break is obviously skipping the next
codecop has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
<wallerdev>
well if theres nothing after your inner loop
<wallerdev>
then when you break out itll automatically go to the next of the outer loop
PeterBoy has joined #ruby
<wallerdev>
otherwise you could use something like throw/catch
axl_ has quit [Client Quit]
<Darkchaos>
yes, but I have some code after the inner loop, which should only be executed, if the inner loop finished successfully
<Darkchaos>
hm. Or some variable like "finished_successfully = false"
<wallerdev>
sure
<Darkchaos>
I guess that would be the most easy tho ugly solution
mary5030_ has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
<Darkchaos>
hm, maybe there is an even more easy way? I want to remove all occurences of one array in another one. so when I have {a, b, c} and {b, c} the result of arr1 \ arr2 should be a
Wolland_ has quit [Remote host closed the connection]
<shevy>
"While it appears that forcing Unicode on everybody is great, it's also a very unrealistic view of the world"
chipotle has quit [Quit: cya]
<benzrf>
lmao
nateberkopec has quit [Ping timeout: 240 seconds]
<shevy>
actually his blog entries are fun to read
<jhass>
we can still pretend that it's realistic to make it better
<shevy>
"In Python 3 that just does not work at the moment."
<shevy>
"They not only removed the functions from the string object, the byte -> byte codecs themselves were removed as well without replacement."
<shevy>
"And it took close to three years, if I am not mistaken, to even acknowledge the problem as the reintroduction is now being discussed for 3.3."