dlitvak has quit [Quit: Connection closed for inactivity]
LastWhisper____ has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
romank has quit [Read error: Connection reset by peer]
romank has joined #ruby
coderphive has joined #ruby
t-recx has quit [Quit: t-recx]
freeos has joined #ruby
JeanCarloMachado has quit [Ping timeout: 272 seconds]
freeos is now known as some_novice
mikeiniowa has quit [Remote host closed the connection]
<some_novice>
Novice Python user here - wondering if there is a preferred scraper module akin to Python's BeautifulSoup that I should be using for simple scrapes of a given field on a page?
|RicharD| has quit [Quit: Sto andando via]
<some_novice>
I found rubyful_soup but it looks like it's pretty stale 1.0.4 is from 2006-03
gusrub has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mrbobbytables has left #ruby [#ruby]
SteenJobs has quit [Quit: SteenJobs]
gusrub has quit [Remote host closed the connection]
brent___ has quit [Remote host closed the connection]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<elomatreb>
some_novice: Mechanize is pretty popular for scraping stuff
volty has quit [Ping timeout: 260 seconds]
tummy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qmr>
thinking of going with Intel® Xeon® E5-2687W v4 3.0GHz,30M Cache,9.60GT/s QPI,Turbo,HT,12C/24T (2x) for our new rails servers. anyone have any other suggestions?
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
nitric has quit [Ping timeout: 240 seconds]
etehtsea has joined #ruby
<some_novice>
Thanks elomatreb
<some_novice>
elomatreb++
cam27 has quit [Quit: cam27]
coderphive has quit [Quit: coderphive]
Pumukel has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some_novice has quit [Ping timeout: 272 seconds]
petruff has quit [Ping timeout: 272 seconds]
some_novice has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
cfec0b8d has quit [Remote host closed the connection]
tummy has joined #ruby
some_novice has quit [Quit: Konversation terminated!]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bmurt has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
duderonomy has quit [Ping timeout: 245 seconds]
bsartek has joined #ruby
hndk has quit [Quit: Leaving]
apparition has joined #ruby
guardianJ has joined #ruby
jusa has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
jusa has quit [Ping timeout: 272 seconds]
bsartek has joined #ruby
brent__ has joined #ruby
guardianJ has quit [Read error: Connection reset by peer]
guardianJ has joined #ruby
bronson has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
petruff has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bsartek has quit [Quit: This computer has gone to sleep]
jhack__ has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
LastWhisper____ has joined #ruby
d^sh has joined #ruby
jhack_ has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
nomad101 has quit [Quit: Connection closed for inactivity]
rhyselsmore has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
LastWhisper____ has joined #ruby
<mwlang>
is there a simpler way for big numbers (w/o using activesupport) than this? 10_123_456.to_s.reverse.chars.each_slice(3).map{|s| s.join}.join(',').reverse
<mwlang>
=> "10,123,456"
bambanx has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
genpaku has quit [Remote host closed the connection]
spiette_ has joined #ruby
zenguy_pc has joined #ruby
slackR has quit [Ping timeout: 240 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
brent__ has joined #ruby
enterprisey has joined #ruby
LastWhisper____ has joined #ruby
duderonomy has joined #ruby
ozcanesen has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
charliesome has joined #ruby
nofxxx has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
tummy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar>
mwlang: I think that's the simplest version.
ryzokuken has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elomatreb>
Ruby 2.4 added Integer#digits, saves you the string part at least
<mwlang>
haven’t moved to 2.4, yet, but sounds interesting.
elcontrastador has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Tempesta has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
Pumukel has joined #ruby
SteenJobs has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 245 seconds]
canton7 has quit [Ping timeout: 245 seconds]
canton7 has joined #ruby
accessd has joined #ruby
fnux has quit [Ping timeout: 245 seconds]
renchan has joined #ruby
mwlang has quit [Quit: mwlang]
Pumukel has quit [Ping timeout: 255 seconds]
cschneid has joined #ruby
fnux has joined #ruby
Pumukel has joined #ruby
Batholith has quit [Remote host closed the connection]
guardianJ has quit [Read error: Connection reset by peer]
guardianJ has joined #ruby
Batholith has joined #ruby
Batholith has joined #ruby
Batholith has quit [Changing host]
coderphive has quit [Quit: coderphive]
Tariq has joined #ruby
<Tariq>
hey
<PorcoRex>
Tariq, hi.
<Tariq>
What’s up?
<PorcoRex>
Not much.
<Tariq>
Good.
guardianJ has left #ruby [#ruby]
<Tariq>
Er, is it a good idea to ask a question about Ruby on Rails/Rails_Admin here?
<Tariq>
Or does this chatroom only cover raw Ruby questions?
hndk has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
pankaj_ has joined #ruby
Pumukel has joined #ruby
<Tariq>
PorcoRex, hi.
ipolc has joined #ruby
<PorcoRex>
Tariq, hey.
ptierno has joined #ruby
ipolc has left #ruby [#ruby]
<PorcoRex>
Depends. I'm pretty much a newcomer here, so. What's the question?
<Tariq>
A client wants to be able to type in data about users. However, the data they want to type in is dependent on certain properties
<Tariq>
If a user is “X”, then I want to fill in data about Y. Else, I’ll fill out data about Z.
<Tariq>
for instance
<Tariq>
But I’m afraid of having a table containing 100 different rows
<Tariq>
and then hiding the rows that are “not necessary to be filled”
<Tariq>
using jQuery.
<Tariq>
That sounds doable, and I believed that it happened at my last job.
<Tariq>
But it also sounds like a horrible idea.
<Tariq>
There has to be a better solution.
<Tariq>
I just don’t know what.
<PorcoRex>
Seems like not a Ruby question at all. I mean, there is not even a single hint of Ruby.
<Tariq>
Well, I’m using Rails_Admin for this
<Tariq>
so that’s why I thought it’d be a Ruby question
<Tariq>
I know Ruby has serialization and de-serialization
<Tariq>
Like, you can store and retreive artibrary data in a JSON/YAML file
ivanskie has joined #ruby
<PorcoRex>
I'm not trying to be unhelpful on purpose, but you're talking about jQuery and database rows and it's not easy to figure how this relates to Ruby at all.
<Tariq>
Fair enough. Maybe I’m not thinking at the right level of abstraction then.
BTRE has quit [Ping timeout: 272 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
DeeJayh-L has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<PorcoRex>
I would assume jQuery you are using in the front end of a webapp? and the database as a back end tool? Is ruby involved in the middle somehow? Is this a Rails app for instance?
<Tariq>
Yes, there is a Rails app
<Tariq>
Rails_Admin is a Ruby gem that I’m using that generates a “backroom” UI for admins to manipulate the database
Pumukel has joined #ruby
<Tariq>
you can use jQuery on that UI, and I have used jQuery in the past to add ‘features’ to the UI
<Tariq>
It seems very hacky, but it looks like all the searching I’m doing suggests that this is “best practice”
<Tariq>
so, I guess I’ll follow this “best practice".
<PorcoRex>
Ok, but what would be the problem again?
<Tariq>
The problem is that this “best practice” sounds horrible.
<Tariq>
I mean, it might work for handling one or two fields
<Tariq>
but if I have 100 different fields in a table
<Tariq>
then I’m going to need to write a bunch of jQuery code
<Tariq>
to hide 50 fields
BTRE has joined #ruby
<PorcoRex>
Are you talking about jQuery input fields and also database fields?
<ivanskie>
whats the name for off topic channel?
<ivanskie>
ruby-offtopic? or not dash?
<PorcoRex>
Sorry guys, but really, can you complain? There's absolutely nothing going on here.
<Tariq>
I’ll IM you PorcoRex.
Pumukel has quit [Ping timeout: 245 seconds]
<PorcoRex>
Tariq, sounds good.
<ivanskie>
nvm
Pumukel has joined #ruby
<ivanskie>
so anyone here from BC?
BTRE has quit [Ping timeout: 255 seconds]
Deviant|Logic has joined #ruby
rhyselsmore has quit [Read error: Connection reset by peer]
ptierno has quit [Ping timeout: 240 seconds]
<ivanskie>
gah alright time for some sleeping
ivanskie has left #ruby [#ruby]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Deviant|Logic has quit [Client Quit]
pankaj_ has quit [Ping timeout: 240 seconds]
hndk has quit [Remote host closed the connection]
hndk has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
Dimik has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Bock has joined #ruby
gothicsouth has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 272 seconds]
Pumukel has joined #ruby
jusa has joined #ruby
Tariq has quit [Quit: Tariq]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
bsartek has joined #ruby
oleo has quit [Quit: irc client terminated!]
Pumukel has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
ur5us has quit [Remote host closed the connection]
DeeJayh-L has quit [Ping timeout: 240 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
<zenspider>
mmm... I don't think so... but you think it should be all trues?
<dminuoso>
zenspider: Ohh, the documentation covers this heh.
jgnagy has joined #ruby
<zenspider>
I'm just thinking out loud... trying to get similar results from something I'm working on... but I am not sure how it is the same / different yet
<dminuoso>
zenspider: for str === obj, Returns whether str == obj, similar to Object#==. If obj is not an instance of String but responds to to_str, then the two strings are compared using case equality Object#===.
<zenspider>
in my case, I'm trying to make pattern matching for trees
<matthewd>
=== is pretty widely not commutative
<zenspider>
t = s(:b, s(:b, s(:a))); r = s{ s(:a) }; r =~ t && t =~ r && !(t === r) && (r === t)
<zenspider>
the last 2 seem backwards to me
Mortomes|Work has joined #ruby
<matthewd>
That sounds right to me
jgnagy has quit [Ping timeout: 258 seconds]
<zenspider>
the results I have above? or that they're backards?
<matthewd>
String === "x"; 1..5 === 3
<matthewd>
The results
<zenspider>
well then I'm done :P
<matthewd>
matcher === value
<zenspider>
OK... I'd agree with that... right. fuck. that's the opposite of what I have. Lemme make sure my tests are set up right
Pumukel has joined #ruby
bsartek has joined #ruby
<zenspider>
yeah. my code is currently backwards for === from what I want. need to dig
<zenspider>
gonna be nice once this shit works... but it gets confusing easily. the fact that they're trees and differently positional isn't fun
<zenspider>
also, the current system allows for named capture, but that means that === needs to pass around an extra param and it returns a hash of the results... it's, odd.
Macaveli has joined #ruby
Burgestrand has joined #ruby
marr has joined #ruby
nofxxxx has quit [Ping timeout: 264 seconds]
<zenspider>
not sure if I should keep it or cut it
asperon has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
<zenspider>
t = s(:b, s(:b, s(:a))); r = s{ s(:a) % :val }; (r === t)[:val] # => s(:a)
<asperon>
might not be a ruby question but could somebody tell me how to flip the text via rmagic, preferably inside an annotate. I just want to flip the text and not the rest of the image.
<zenspider>
asperon: you need to start by learning how to ask better questions
<zenspider>
and you're right, that's not a ruby question at all... but that's hardly the point
brent__ has joined #ruby
<universa1>
if the text is already in the image, it gets kinda hard to flip the text and not the image
<asperon>
universa1: its not, i am rendering it via annotate
<asperon>
i guess it could render it to a new image, flip that and the composite into the other image
<asperon>
it just feels wrong
tamsuiboy has joined #ruby
<asperon>
perhaps i could flip the image and then flip it back, ill try that :)
bsartek has quit [Quit: This computer has gone to sleep]
brent__ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Quit: dionysus69]
asperon has left #ruby [#ruby]
Silthias has joined #ruby
bronson has joined #ruby
dionysus69 has joined #ruby
jaruga________ has quit [Quit: jaruga________]
john3 has quit [Quit: WeeChat 1.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
mikecmpbll has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 272 seconds]
cschneid_ has joined #ruby
jaruga________ has joined #ruby
jaruga________ has quit [Client Quit]
zenguy_pc has quit [Ping timeout: 260 seconds]
conta has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
zenguy_pc has joined #ruby
pandaant has joined #ruby
flying has joined #ruby
milardovich has joined #ruby
yogg-saron has joined #ruby
esObe_ has quit []
tamsuiboy has quit [Quit: Leaving...]
milardovich has quit [Ping timeout: 245 seconds]
<zenspider>
matthewd: I'm wondering if it shouldn't be true for =~ and false for === regardless of order. that === should be structural matching and =~ should be any subset/level
enterprisey has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
charliesome has joined #ruby
jaruga________ has joined #ruby
bkxd has joined #ruby
aupadhye has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
luckyuser has joined #ruby
luckyuser has left #ruby [#ruby]
patarr has joined #ruby
tomphp has joined #ruby
Pumukel has joined #ruby
stan has quit [Read error: Connection reset by peer]
Dimik has quit [Ping timeout: 268 seconds]
stan has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 240 seconds]
<dminuoso>
zenspider: The problem is that String#=== has some special semantics. You cant compare them.
<dminuoso>
zenspider: === is for case equality, =~ is for pattern matching.
Pumukel has quit [Ping timeout: 255 seconds]
antib has joined #ruby
bsartek has joined #ruby
<zenspider>
dminuoso: how does that make String#=== special semantics? #=== is always for case equality. also not sure how that means I can't compare the two
<zenspider>
>> case "blah" when /a/ then true else false end
<zenspider>
where I want to be able to do something similar:
<zenspider>
case s(:b, s(:b, s(:a))) when s{ s(:a) } then true else false end
<zenspider>
not sure if that SHOULD match at this point... depends on how I think about matching
<zenspider>
if it should, that means I need to add extra constructs like regexp's ^
<dminuoso>
zenspider: String#=== basically tries to force a situation that results in str == str
<zenspider>
meh. that part I don't care about so much... there's no equivalent to tree-ifying
<dminuoso>
Oh.
<zenspider>
oooooh... I COULD add String#to_sexp, parse it with ruby_parser, and THEN match it. :P
Silox| has joined #ruby
ur5us has joined #ruby
lxsameer has joined #ruby
TreyG has joined #ruby
astrobunny has quit [Remote host closed the connection]
benjen has left #ruby ["*Goes ranging*"]
jaruga________ has quit [Ping timeout: 258 seconds]
tomphp has quit [Ping timeout: 240 seconds]
railsForDaiz has joined #ruby
darthvorik is now known as darthThorik
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alazred has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
gregf_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alazred has joined #ruby
milardovich has quit [Ping timeout: 245 seconds]
leitz has joined #ruby
xall_ has joined #ruby
paulgafton has quit [Quit: WeeChat 1.5]
antgel has joined #ruby
railsForDaiz has quit [Ping timeout: 245 seconds]
jgnagy has joined #ruby
TreyG_ has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
TreyG has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
benjen has joined #ruby
Pumukel has joined #ruby
patarr has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
railsForDaiz has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
testuserhaha has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
testuserhaha has quit [Client Quit]
psychicist__ has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
bronson has joined #ruby
jaruga________ has joined #ruby
tomphp has quit [Client Quit]
gizmore has joined #ruby
craysiii has quit []
craysiii has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jaruga________ has quit [Ping timeout: 240 seconds]
kassav_ has joined #ruby
Pumukel has joined #ruby
TreyG_ has quit [Ping timeout: 260 seconds]
eugenmayer has joined #ruby
harfangk has joined #ruby
charliesome has joined #ruby
<eugenmayer>
i am running into a file-max issue File using File.binread and processing files. It seems like files are kept open or similar, or a pipe ( 100.000 ). Any hints about that topic in general. Using google right now but nothing interesting yet
<ljarvis>
eugenmayer: what are you doing exactly?
<eugenmayer>
ljarvis: i am processing a number of files, reading them handling them to a webservice which extracs the text out of the files and the i store then into an elasticsearch ( that as the outline of what is done )
<eugenmayer>
ljarvis: it seems like my file loading, binread is used since i do not know the encoding of the file, causes open file handles, which leads to too much files open issues ( and my system may crash, beside its blocked )
<ljarvis>
eugenmayer: can you read what you want and then close the file after you're done on each iteration?
<eugenmayer>
ljarvis: well sure i can close the file handle and as far as i can see, i do not do this ( failed .. ) still thought to ask about general pitfalls
oded has joined #ruby
<eugenmayer>
I just seems that File.binread does not need to be closed,
<ljarvis>
eugenmayer: in general if you're doing a lot of this, the rule is: only read what you need, and always clean up
<matthewd>
> which leads to too much files open issues ( and my system may crash, beside its blocked )
<eugenmayer>
Guys, this wont make you happy, right? And thats why i did not start with it.
<ljarvis>
it's more helpful than without it :)
<ljarvis>
can you reproduce with a smaller sample?
<ljarvis>
or share some code
<eugenmayer>
trying to pin it to the section and will share the code then.
<ljarvis>
cool, also where did that log come from?
<eugenmayer>
Right about trying to du the reduction on the exact snippet
<eugenmayer>
dmesg
milardovich has quit [Ping timeout: 255 seconds]
<matthewd>
That error is helpful partly just because it's *not* the error you'd normally get from leaving too many file handles open inside a ruby process
cam27 has quit [Quit: cam27]
<ljarvis>
yeah i'd wager it's something else
<eugenmayer>
matthewd: it is exactly that error :)
<eugenmayer>
matthewd: the erorr varries if you run into the ulimit limit or the fs-max issue
<eugenmayer>
i am providing infos as soonish as possible, still reducing
unshadow has joined #ruby
<eugenmayer>
beside that, the error can varry if you run into a docker-env and hit the host limit or run on the host, i assume
<matthewd>
eugenmayer: Fine, rephrase: the fact you're not running into the ulimit first seems informative
<matthewd>
(assuming you don't have an insanely high ulimit set, which would be information you would've provided by now)
<eugenmayer>
matthewd: the latter might be docker related. the user running the docker stack is non admin, but i assume that the docker daemon runs under root, which will explain that the ulimit -n will be unlimitted
kireevco has quit []
<eugenmayer>
docker will run under root -> no limits apply -> file-max limit
tvw has joined #ruby
<eugenmayer>
(but in this case, its a suggestion )
<eugenmayer>
i mean, thats what i am guessing
kireevco has joined #ruby
User458764 has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
Guest96 has quit [Remote host closed the connection]
xenops has joined #ruby
petruff has quit [Ping timeout: 246 seconds]
Guest96 has joined #ruby
leitz has quit [Quit: Nappy time]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
romank has joined #ruby
sski has joined #ruby
nomad101 has quit [Quit: Connection closed for inactivity]
ur5us has quit [Remote host closed the connection]
<eugenmayer>
actually know, even with my return statement above ( raturn data) i still get the issue
unshadow has quit [Quit: leaving]
unshadow has joined #ruby
<eugenmayer>
s/know/no
jameser has quit [Ping timeout: 272 seconds]
Silthias has quit [Ping timeout: 268 seconds]
<matthewd>
I'd still be trying to work out why you're hitting an 800k limit from about 50 files -- no matter how badly you mishandled them, you shouldn't get anywhere near that
milardovich has quit [Ping timeout: 245 seconds]
jhack has joined #ruby
Silthias has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jhack__ has quit [Ping timeout: 246 seconds]
<eugenmayer>
matthewd: yeah its not even near linear .. but well i cannot yet answer it :)
Pumukel has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
Klumben has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
alem0lars has quit [Ping timeout: 246 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
Klumben has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
bgray_ has joined #ruby
alem0lars has joined #ruby
bgray_ has left #ruby [#ruby]
mim1k has quit [Ping timeout: 240 seconds]
petruff has joined #ruby
<umdstu>
i have a RestClient request that works locally, but not in production. it fails with an sslv3 error. how do i determine the difference between the ruby installs and when openssl support each has
bestie has quit []
bestie has joined #ruby
HoierM has joined #ruby
milardovich has joined #ruby
psychicist__ has joined #ruby
JeanCarloMachado has joined #ruby
User458764 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
jaruga________ has joined #ruby
antgel has joined #ruby
swills has quit [Quit: Leaving]
ldnunes has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
cschneid_ has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
jaegerca has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 272 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
swills has joined #ruby
jrafanie has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has quit [Ping timeout: 240 seconds]
jxf has quit []
tomphp has joined #ruby
jxf has joined #ruby
tomphp has quit [Client Quit]
d3lph1 has quit [Quit: Page closed]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cam27 has joined #ruby
mim1k has joined #ruby
yogg-saron has joined #ruby
etehtsea has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
yogg-saron has quit [Client Quit]
sysvalve has joined #ruby
madhatter has quit [Remote host closed the connection]
madhatter has joined #ruby
last_staff has quit [Quit: last_staff]
pupsicle has joined #ruby
tomphp has joined #ruby
unshadow has quit [Ping timeout: 264 seconds]
tomphp has quit [Client Quit]
kiltzman has quit [Ping timeout: 272 seconds]
gnufied has quit [Quit: Leaving]
unshadow has joined #ruby
gnufied has joined #ruby
yogg-saron has joined #ruby
nicolai86 has quit [Remote host closed the connection]
robotmay has joined #ruby
yogg-saron has quit [Client Quit]
mim1k has quit [Ping timeout: 260 seconds]
jeffreylevesque has joined #ruby
aufi has quit [Quit: Leaving]
aufi has joined #ruby
nicolai86 has joined #ruby
psychicist__ has quit [Quit: leaving]
hashrocket has joined #ruby
kiltzman has joined #ruby
unshadow has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
unshadow has joined #ruby
nicolai86 has quit [Remote host closed the connection]
yogg-saron has joined #ruby
julian is now known as alamar
nicolai86 has joined #ruby
TreyG has quit [Ping timeout: 240 seconds]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TreyG has joined #ruby
ramortegui has joined #ruby
boxrick1 has quit []
ski7777 has quit [Ping timeout: 272 seconds]
boxrick1 has joined #ruby
yqt has joined #ruby
t-recx has joined #ruby
mim1k has joined #ruby
spiette_ has joined #ruby
synthroi_ has joined #ruby
rann has quit []
rann has joined #ruby
rann has quit [Client Quit]
rann has joined #ruby
synthroid has quit [Ping timeout: 255 seconds]
jaruga________ is now known as jaruga
vondruch has quit [Ping timeout: 272 seconds]
Takumo has quit [Ping timeout: 272 seconds]
jameser has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
lucas_ has quit [Ping timeout: 240 seconds]
Guest80543 has quit [Ping timeout: 240 seconds]
rprimus has joined #ruby
yogg-saron has joined #ruby
rprimus is now known as Guest77346
mim1k has joined #ruby
lucas_ has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
Guest37310 has quit [Ping timeout: 272 seconds]
BSaboia has joined #ruby
Guest37310 has joined #ruby
BSAlb has quit [Ping timeout: 245 seconds]
fmcgeough has joined #ruby
ski7777 has joined #ruby
Takumo has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
cam27 has quit [Quit: cam27]
al2o3-cr has quit [Quit: WeeChat 1.7.1]
bronson has joined #ruby
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wethu has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
andersh has quit []
andersh has joined #ruby
solidsnack has quit []
solidsnack has joined #ruby
Beams has quit [Quit: .]
nowhereman has joined #ruby
Beams has joined #ruby
nertzy has joined #ruby
rodrigovlds has joined #ruby
__Yiota has joined #ruby
etehtsea has quit [Ping timeout: 260 seconds]
DLSteve_ has joined #ruby
wethu has joined #ruby
rodrigovlds_ has joined #ruby
rodrigovlds has quit [Ping timeout: 255 seconds]
gnufied has quit [Quit: Leaving]
synthroid has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Read error: Connection reset by peer]
synthroi_ has quit [Ping timeout: 240 seconds]
wethu has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
jameser has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
Vingador has joined #ruby
fusta has joined #ruby
__Yiota has joined #ruby
pupsicle has quit [Remote host closed the connection]
Beams has joined #ruby
oleo has joined #ruby
shinnya has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
yeticry_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
User458764 has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
kwd has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has quit [Ping timeout: 272 seconds]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
yogg-saron has joined #ruby
jameser has joined #ruby
jrafanie has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
kwd has quit [Quit: kwd]
etehtsea has joined #ruby
Klumben has quit [Ping timeout: 272 seconds]
Silthias has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
gnufied has joined #ruby
Tony-St4rk has quit []
jameser has quit [Client Quit]
Tony-St4rk has joined #ruby
Pumukel has joined #ruby
Beams has quit [Quit: .]
cschneid_ has quit [Ping timeout: 245 seconds]
nhhc has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has joined #ruby
ResidentBiscuit has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
loechel has joined #ruby
loechel has quit [Client Quit]
ptierno has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
Silthias has quit [Ping timeout: 268 seconds]
jameser has joined #ruby
Beams has quit [Quit: .]
alem0lars has joined #ruby
milardovich has joined #ruby
ptierno has quit [Quit: leaving]
Klumben has joined #ruby
Silthias has joined #ruby
jameser has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
jameser has joined #ruby
discopatrick has quit []
discopatrick has joined #ruby
cdg has joined #ruby
User458764 has joined #ruby
kentnl has quit [Quit: No Ping reply in 180 seconds.]
milardovich has joined #ruby
kent\n has joined #ruby
gothicsouth has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spiette_ has quit [Ping timeout: 268 seconds]
dlitvak has joined #ruby
cam27 has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
Silox| has joined #ruby
xall_ has joined #ruby
bronson has quit [Remote host closed the connection]
d10n-work has joined #ruby
bronson has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
bronson has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 268 seconds]
tariqali has joined #ruby
tariqali is now known as Tariq
pupsicle has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IggyBot has joined #ruby
IggyBot is now known as StockBot
mim1k has joined #ruby
Azure has quit [Quit: Oops.]
volty has joined #ruby
rippa has joined #ruby
xall_ has joined #ruby
Silox| has quit []
Silox| has joined #ruby
Azure has joined #ruby
Beams has joined #ruby
milardovich has joined #ruby
andikr has quit [Remote host closed the connection]
jusa has joined #ruby
Lucky_ABA has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
synthroid has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
pupsicle has quit [Remote host closed the connection]
Tariq has quit [Quit: Tariq]
tariqali has joined #ruby
aufi has quit [Quit: Leaving]
psychicist__ has joined #ruby
tariqali has quit [Client Quit]
Rodya_ has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
ltem has joined #ruby
choke has joined #ruby
nowhereman has quit [Ping timeout: 245 seconds]
<StockBot>
Any experts on cinch here?
jhack_ has joined #ruby
SHyx0rmZ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jhack has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 264 seconds]
rodrigovlds_ has quit [Remote host closed the connection]
rodrigovlds_ has joined #ruby
mark_66 has quit [Quit: Leaving.]
KeyJoo has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
rodrigovlds_ has quit [Client Quit]
t-richards has quit []
cschneid_ has quit [Remote host closed the connection]
t-richards has joined #ruby
MrSparkle has quit [Quit: MrSparkle]
cschneid_ has joined #ruby
<ljarvis>
StockBot: private message dominikh and tell him i sent you
Hunter1_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
peteretep has quit []
peteretep has joined #ruby
tariqali has joined #ruby
tariqali has quit [Client Quit]
cam27 has quit [Quit: cam27]
brent__ has joined #ruby
xall_ has joined #ruby
duderonomy has joined #ruby
synthroid has joined #ruby
<StockBot>
ty jarvis
bkxd has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
jaruga has quit [Quit: jaruga]
bkxd has quit [Ping timeout: 240 seconds]
MrSparkle has joined #ruby
conta has quit [Ping timeout: 272 seconds]
quobo has quit []
quobo has joined #ruby
[Butch] has joined #ruby
Beams has quit [Quit: .]
nofxxxx has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
Burgestr_ has joined #ruby
amclain has joined #ruby
pwillard has quit []
pwillard has joined #ruby
kassav_ has quit [Quit: kassav_]
<apeiros>
ljarvis: is that some insider between you and dominikh?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
<ljarvis>
you could say that (he is also the author though, and i was the previous author)
wsmoak has quit []
<apeiros>
oh, before dominikh, you wrote cinch?
wsmoak has joined #ruby
<ljarvis>
i wrote the original yeah, dom wrote a different bot and then we merged
<ljarvis>
dom does not hide his feelings in that post about newton being superior and he just wanted users
shinnya has quit [Ping timeout: 260 seconds]
<ljarvis>
" Cinch has remarkably many users, even though I think that not even its developer knows how that’s possible"
<ljarvis>
such a nice guy
<apeiros>
:D
<ljarvis>
then dom took it over, made it "better" and lost many of the users
<ljarvis>
i guess i was better at marketing :D
<apeiros>
or irc in general lost users
<dminuoso>
People still do IRC?
<ljarvis>
well, i like my RAM so i try to avoid the obvious alternatives
<apeiros>
yeah… twitter consumes 700MB of ram here… no idea what for.
bronson has joined #ruby
<apeiros>
and the things I heard about slack are even worse
<ljarvis>
Slack is using 2.3GB
<Papierkorb>
That's insane
<ljarvis>
and im idling
<Papierkorb>
To be honest, I've never had any "web application" consume that much memory
<Papierkorb>
ljarvis: Meaning, you can run slack about 6 times on a standard home PC before it running OOM? What a time to be alive
<ljarvis>
my production rails app consumes ~400mb per worker instance
<ljarvis>
right
laekur has quit [Quit: Peace]
bmurt has joined #ruby
Mia has quit [Read error: Connection reset by peer]
laekur has joined #ruby
<ljarvis>
ram is cheap herp derp lets make clunky software
<Papierkorb>
CPU time is cheap too!1111
<apeiros>
I think a webapp server side consuming 400MB/instance is by far not as bad as a desktop app consuming 2.3GB
BTRE has joined #ruby
<baweaver>
ljarvis: the app or the website?
<Papierkorb>
if it's a forking server, then much of it is probably COW shared anyway
<ljarvis>
baweaver: app
<baweaver>
Electron tries to boot an entire version of Chrome, and Chrome is a hungry little chunker
<ljarvis>
yep
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<apeiros>
Papierkorb: only as of ruby 2.0 iirc (or was it 2.1?)
mim1k has quit [Ping timeout: 240 seconds]
<apeiros>
before ruby's mark & sweep would spill write operations all over the ram and force the copy
Burgestr_ has quit [Quit: Closing time!]
nankyokusei has joined #ruby
<Papierkorb>
apeiros: Yep, but I'd wager that any recent ruby software using forks use ruby >=2.1, and if not, it hasn't been a too annoying issue in many years
<Papierkorb>
Sure there are still the outliers running Ruby 1.8 stuff, but imho, COW isn't their primary issue at this point ;)
<apeiros>
agreed
patarr has joined #ruby
sysvalve has quit [Quit: Leaving]
gusrub has joined #ruby
cschneid_ has joined #ruby
gothicsouth has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusta has quit [Ping timeout: 240 seconds]
Qommand0r has quit [Quit: WeeChat 1.7.1]
Qommand0r has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
govg has joined #ruby
fusta has joined #ruby
__Yiota has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
DTZUZU has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
nitric has joined #ruby
fusta has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raspado has joined #ruby
nankyokusei has quit [Remote host closed the connection]
flying has quit []
xall_ has quit [Ping timeout: 240 seconds]
bsartek has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railsForDaiz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 260 seconds]
<brent__>
i'm trying to create a method to return some html using content_tag, but am having trouble
lxsameer has quit [Quit: WeeChat 1.7]
<dminuoso>
brent__: Having trouble is usually solved with adding right curly braces.
<laekur>
ShekharReddy: you can try rbenv instead of rvm too
rkazak has joined #ruby
cagomez has quit [Remote host closed the connection]
<ShekharReddy>
hmm.. not a problem if that can get me jekyll install on my laptop
cagomez has joined #ruby
<laekur>
Personal choice really. I like rbenv more than rvm, so there's that.
AnoHito has quit [Ping timeout: 240 seconds]
<laekur>
Does the same job so
Macaveli has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
Dimik has quit []
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bernd9000 has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
jackrandom has joined #ruby
jeffreylevesque has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0.2/20170504105526]]
patarr has quit [Ping timeout: 240 seconds]
<rickumali>
Celsian: slice isn't for hashes in Ruby core, AFAIK
gothicsouth has joined #ruby
chouhoulis has joined #ruby
jeffreylevesque has joined #ruby
chouhoul_ has joined #ruby
ekinmur has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
rickumali has left #ruby [#ruby]
enterprisey has joined #ruby
laekur has quit [Quit: Peace]
laekur has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
cek has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jusa has joined #ruby
<Celsian>
rickumali: It would appear that no matter how I change the CSV around the first hash value will not work. Regardless of whether I slice it or not.
<ruby[bot]>
Jakaria: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
tildes has quit [Ping timeout: 268 seconds]
cagomez has quit [Ping timeout: 240 seconds]
<Jakaria>
oh, didn't knew about that... :P
cagomez has joined #ruby
nankyokusei has joined #ruby
<ljarvis>
Jakaria x++ isn't valid ruby x = 1
<Celsian>
I resolved my issue, I added ":header_converters => :symbol" to my CSV object which converts the headers in advance. I then don't lose the first key/value pair when I row.to_hash.
shinnya has joined #ruby
<Jakaria>
oh... so, I need to use x += 1?
<ljarvis>
correct
AnoHito has joined #ruby
<ljarvis>
1.upto(10) do ... end would be more concise
<ljarvis>
or even 10.times if you don't care about starting at 1
<matthewd>
Or 2.step(10, 2)
mikecmpbll has joined #ruby
Guest64474 has quit [Ping timeout: 240 seconds]
<Jakaria>
thanks :D
LukyCZ has joined #ruby
<apeiros>
always when I read matthewd, I think of "the matthew daemon"
* apeiros
never really liked display anyway, boooo, boooo!
j is now known as Guest33727
<ljarvis>
puts 2.step(10, 2).to_a
<ljarvis>
+ 2 million other ways to do it
<matthewd>
(1..10).select(&:even?).each {|x| puts x }
<matthewd>
Jakaria: The general theme/point is that you want to use Enumerable (and other block-yielding) methods rather than constructing a while loop by hand
<baweaver>
you're going to throw the poor person for a loop D:
<Jakaria>
whoa... hold on there buddy :D ..... I just started learnign Ruby :)
<apeiros>
they're gone. but just for future reference, trying to break the bot = ban.
<apeiros>
(re cek's `loop {}`)
Celsian has quit [Ping timeout: 260 seconds]
kirun has joined #ruby
perniciouscaffei has joined #ruby
patarr has joined #ruby
AnoHito_ has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
<apeiros>
nb, if anybody is truly interested in hardening the bot, or actively test it for security issues - approach an op. it can be done. but not just rogue on this bot.
AnoHito has quit [Ping timeout: 255 seconds]
<al2o3-cr>
apeiros: why is not possible to /query the bot?
tildes has joined #ruby
<apeiros>
it is, but it can be defined per command on whether it can be used in a query.
nankyokusei has quit [Remote host closed the connection]
<apeiros>
(and per privilege level)
bronson has joined #ruby
<al2o3-cr>
oic
<apeiros>
and its main purpose is to serve in the channel, not for private needs :)
<apeiros>
i.e. I don't want to exceed its send quota by replying in query
<al2o3-cr>
np :D
skweek has joined #ruby
railsForDaiz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
mondongo has joined #ruby
mondongo has left #ruby [#ruby]
Jakaria has left #ruby ["WeeChat 1.4"]
chouhoul_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
KeyJoo has joined #ruby
chouhoulis has joined #ruby
Rodya_ has joined #ruby
tvw has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lucky_ABA has joined #ruby
AndBobsYourUncle has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 255 seconds]
perniciouscaffei has joined #ruby
bkxd has joined #ruby
Jayson_Virissimo has joined #ruby
pankaj has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
finisherr has joined #ruby
jusa has quit [Ping timeout: 245 seconds]
Macaveli has quit [Client Quit]
<finisherr>
does allow_any_instance_of allow you to stub methods on a real instance?
bkxd has quit [Ping timeout: 272 seconds]
brent__ has quit [Remote host closed the connection]
ascarter has joined #ruby
railsForDaiz has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
Rodya_ has quit [Quit: Leaving...]
tildes has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
cdg has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]