drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beauby has joined #ruby
sumobob_ has joined #ruby
devil_tux has quit [Remote host closed the connection]
devil_tu1 has quit [Remote host closed the connection]
lightstalker has joined #ruby
beauby has quit [Ping timeout: 268 seconds]
gary__ has joined #ruby
sumobob_ has quit [Ping timeout: 252 seconds]
gary__ has quit [Ping timeout: 256 seconds]
safetypin has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
minimalism has quit [Ping timeout: 256 seconds]
<arahael>
I'm trying to use ruby-lint in an attempt to improve the quality of the code, for the rake files.
<arahael>
However, it has a ton of warnings, related to things like: "Undefined constant Rake", or "Undefined constant FileList", both of which exist in Rake. Writing 'include Rake' does not make any difference.
<arahael>
How do I get ruby-lint to recognise these?
<arahael>
Alternatively, what should I use instead of ruby-lint?
cagomez has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
rubycoder38 has quit [Ping timeout: 240 seconds]
sumobob_ has joined #ruby
rubycoder38 has joined #ruby
gary has joined #ruby
<havenwood>
arahael: RuboCop is the most popular option for linting Ruby.
<arahael>
havenwood: Isn't that just a *style* checker, though?
alfiemax has joined #ruby
gary is now known as Guest49551
<havenwood>
arahael: Nope. You can disable the style checking and just use the linting if you want.
<arahael>
Ah, nice, I'll have to check that, then.
<havenwood>
arahael: it does static code analysis but no type checking
<arahael>
havenwood: I think I'll just have to live with that.
sunrunner20 has joined #ruby
imalexalex has joined #ruby
orbyt_ has joined #ruby
<imalexalex>
hello
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xfbs has quit []
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imalexalex has quit []
arescorpio has joined #ruby
cagomez has joined #ruby
cdg has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
<arahael>
Why does rubocop prefer %r, %i, and %I for regexps and lists of strings?
cdg has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 256 seconds]
marxarelli is now known as marxarelli|afk
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
A124 has quit [Ping timeout: 264 seconds]
xelkarin has quit [Quit: WeeChat 1.9.1]
A124 has joined #ruby
karapetyan has joined #ruby
<Eiam>
arahael: its a literal for constructing regex
gary has joined #ruby
<Eiam>
arahael: like %w(my array) constructs ["my","array"]
gary is now known as Guest95580
<arahael>
Eiam: Right, but why does it prefer it? What's wrong with ["my", "array"]?
<Eiam>
arahael: so in short I think the answer is "Rubocop is using Ruby functionality and like any stylistic choice it comes down to the author"
ramfjord has joined #ruby
Gnut has quit [Ping timeout: 256 seconds]
<Eiam>
arahael: I personally prefer using %w because I don't need to use "" so much
<arahael>
Eiam: In this case, it's a list of symbols.
cagomez has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
<Eiam>
arahael: I couldn't answer why the authors prefered %r, I tend to write my regex in ruby with /regex/. I don't really know why I prefer that form over the other in this instance
beauby has joined #ruby
<arahael>
Fair enough. Perhaps I should probably set up my own rules file.
<Eiam>
arahael: some googling tells me %r makes paths easier to read
<arahael>
Yeah... But paths aren't a regex!
sumobob_ has joined #ruby
<Eiam>
%r{a/b/c} vs /a\/b\/c/
<arahael>
I notice I have a 'setter' function in this file.
karapetyan has quit [Ping timeout: 255 seconds]
<arahael>
ie: def set_foo
marr has quit [Ping timeout: 256 seconds]
<arahael>
It's not easy to rename it, it sets something deep in the build system, can I use a 'def foo=(...)' method instead and would that magically work?
Guest95580 has quit [Ping timeout: 255 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
beauby has quit [Ping timeout: 240 seconds]
safetypin has quit [Quit: ZZZzzz…]
bigblind has quit [Ping timeout: 248 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
sumobob_ has quit [Ping timeout: 255 seconds]
hndk has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
<arahael>
Eiam: Actually, %r does simplify them.
<arahael>
Just made those changes. :)
<Eiam>
arahael: cool =)
STYNC has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
Psybur__ has quit [Ping timeout: 256 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
ResidentBiscuit has quit []
<arahael>
Hmm, can I squash a particular rubocop warning for a particular line?
<arahael>
Yep, I can. Neat.
n0m4d1c has joined #ruby
gary_ has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
gary_ is now known as Guest72731
jenrzzz has quit [Ping timeout: 264 seconds]
lupine has quit [Ping timeout: 240 seconds]
Guest72731 has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
lupine has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
ged_ has joined #ruby
ged has quit [Read error: Connection reset by peer]
ged_ is now known as ged
bigblind has joined #ruby
PaulCapestany has joined #ruby
braderhart has joined #ruby
minimalism has quit [Ping timeout: 240 seconds]
sumobob_ has joined #ruby
instrud has quit [Ping timeout: 256 seconds]
Gnut has joined #ruby
andydna has joined #ruby
sumobob_ has quit [Ping timeout: 255 seconds]
<andydna>
hi. how's it going? so, i'm trying to implement a musical dsl. is there anyway to undefine # as a comment in pure ruby, so i could write: C# = 60 ?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gizmore has joined #ruby
ecuanaso has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
exchgr has joined #ruby
gizmore|2 has quit [Ping timeout: 256 seconds]
gary has joined #ruby
gary is now known as Guest79682
orbyt_ has joined #ruby
mitt3ns is now known as agent_white
Guest79682 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
netherwolfe has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
netherwolfe has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
lupine has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
lupine has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 276 seconds]
Bilge has quit [Ping timeout: 255 seconds]
Silthias has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Asher has quit [Quit: Leaving.]
Azure has joined #ruby
Silthias1 has quit [Ping timeout: 268 seconds]
ammar has quit [Ping timeout: 268 seconds]
Bilge has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
ammar has joined #ruby
Asher has joined #ruby
drewmcmillan has quit [Ping timeout: 276 seconds]
heyimwill has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
theRoUS has joined #ruby
drewmcmillan has joined #ruby
kapil___ has joined #ruby
jenrzzz has joined #ruby
alfiemax has joined #ruby
znz_jp has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
gary_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
gary_ is now known as Guest82376
cpallares has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
znz_jp has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
willmichael has quit [Ping timeout: 240 seconds]
darkhanb has joined #ruby
karapetyan has joined #ruby
Guest82376 has quit [Ping timeout: 276 seconds]
cpallares has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
willmichael has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
karapetyan has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
X-Jester has quit [Quit: leaving]
X-Jester has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alfiemax has joined #ruby
beauby has joined #ruby
govg has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
andydna has quit [Quit: Lost terminal]
alfiemax has quit [Ping timeout: 248 seconds]
beauby has quit [Ping timeout: 240 seconds]
arescorpio has quit [Excess Flood]
bmurt has joined #ruby
pastorinni has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gary has joined #ruby
gary is now known as Guest84780
vutral|kali has quit [Ping timeout: 268 seconds]
Guest84780 has quit [Ping timeout: 256 seconds]
Matthew1 has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
gary_ has joined #ruby
gary_ is now known as Guest94188
Guest94188 has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vutral|kali has quit [Ping timeout: 256 seconds]
Matthew1 has quit [Ping timeout: 268 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
Matthew1 has joined #ruby
sumobob_ has joined #ruby
vutral|kali has quit [Ping timeout: 256 seconds]
sumobob_ has quit [Ping timeout: 265 seconds]
gary__ has joined #ruby
vasily_kulhacker has joined #ruby
vasily_kulhacker has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
ramfjord has joined #ruby
ghormoon has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
houhoulis has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 248 seconds]
ghormoon has joined #ruby
codimiracle_ has joined #ruby
kies has joined #ruby
codimiracle_ has left #ruby [#ruby]
cagomez has joined #ruby
codimiracle_ has joined #ruby
codimiracle_ has left #ruby [#ruby]
codimiracle_ has joined #ruby
vutral|kali has quit [Ping timeout: 260 seconds]
ziso has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
knight33 has joined #ruby
ogres has joined #ruby
codimiracle_ has quit [Quit: codimiracle]
codimiracle_ has joined #ruby
codimiracle_ is now known as codimiracle
zacts has quit [Quit: WeeChat 1.9.1]
codimiracle has quit [Client Quit]
zacts has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codimiracle has joined #ruby
codimiracle has quit [Client Quit]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jenrzzz has quit [Ping timeout: 256 seconds]
braderhart has quit [Quit: Connection closed for inactivity]
nowhere_man has joined #ruby
spencer has joined #ruby
nowhereman_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<spencer>
I have an array of hashes. If I reference the array myUsers[0].name I get the name. If I do myUsers.each do |user| user.name end It will return everything for that current user. What is the proper way to loop over the array and get a value from each item.
<Radar>
spencer: users.map(&:name)
vutral|kali has quit [Ping timeout: 264 seconds]
<spencer>
Thats it. Thank you.
<Radar>
spencer: I would recommend going through the Enumerable documentation and having a look at all the methods it provides you. Super helpful stuff to know.
<Radar>
?ri Enumerable
<ruby[bot]>
Radar: I don't see no Enumerable, whom should I tell about ri?
alfiemax_ has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
jeffreylevesque_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
apeiros_ has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
nowhereman has joined #ruby
soniya29 has quit [Quit: Leaving]
nowhereman is now known as Guest53399
andriusbartulis_ has quit [Quit: Got to go...]
karapetyan has joined #ruby
alfiemax has joined #ruby
xpt has left #ruby ["WeeChat 1.4"]
AJA4350 has quit [Quit: AJA4350]
nowhere_man has quit [Ping timeout: 240 seconds]
SirOliver has joined #ruby
sumobob_ has joined #ruby
desperek has joined #ruby
bijan_ is now known as bijan_awaaaay
duderonomy has joined #ruby
duderonomy is now known as Guest60108
quobo has joined #ruby
rwb has joined #ruby
<leitz>
havenwood, there was more of the same earlier. Looks like someone discovered Twisted....
jnollette has quit [Ping timeout: 255 seconds]
troys has joined #ruby
mtkd has quit []
snath has joined #ruby
jnollette has joined #ruby
conceivably has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
swein has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
<conceivably>
Hi there, I'm retrieving an images through and api and get back some sort of image string: "\xFF\xD8\xFF\xE0\x00...". I now would like to store the image in different places etc. One solution I have found is to write image to disk and to then read it again and simple handle the file. This seems a bit hacky though. What is the proper way of handling that image string directly, without writing it to disk first?
<swein>
if I have a hash {'a'=>['bob', 'john'], 'b'=>['bob', 'matt'] } what is the best way to query the hash for if a vlue exists inside the key? ruby 2.1.6 hash key 'a' does 'bob' exist?
AJA4350 has joined #ruby
Serpent7776 has quit [Quit: Leaving]
raynold has joined #ruby
internoc has quit [Ping timeout: 260 seconds]
kitikonti has joined #ruby
internoc has joined #ruby
Guest60108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<conceivably>
swein: well if the values are arrays you could just use 'include?'
<swein>
conceivably: like hash['a'].include?("bob") # returns true?
kapil___ has quit [Quit: Connection closed for inactivity]
<swein>
thanks conceivably
bijan_ has quit [Quit: Shutting Down Interwebs...Done.]
clemens3 has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
bigblind has joined #ruby
<leitz>
Program organization question. I have a "character generator" for an RPG I play. There's a Character class and a mixin that mangles Character.attributes. My next trick is to write a CLI based merchant game that uses the characters and stuff that has been generated.
duderono_ has joined #ruby
<leitz>
If I wanted to make this available to others, would it be one big gem, or several? A module?
beauby has joined #ruby
Guest63352 has quit [Ping timeout: 268 seconds]
<foxxxx>
a gem
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
sumobob_ has quit [Quit: WeeChat 1.7]
aufi has quit [Quit: Leaving]
<apeiros_>
conceivably: what stops you from "storing the image in different places"?
apeiros_ is now known as apeiros
beauby has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
<apeiros>
btw. at the silent listeners in the channel - if spammers are on it again, just do !ops
<apeiros>
that will alert the ops
<conceivably>
apeiros: I'm trying to use some third party libraries to e.g. upload the image to S3 etc. Those libraries appear to expect a file, but I was wondering if there was a way to directly pass the image as if it were a file, without writing it to disk. I'm not sure, perhaps I'm still not grasping the problem properly :/
<apeiros>
conceivably: if they provide a method for that, that should work. and IMO they should.
sanscoeur has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
<apeiros>
during uploading the file they get becomes a binary string anyway
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krawchyk has quit [Ping timeout: 240 seconds]
gary has joined #ruby
raynold has quit [Remote host closed the connection]
graingert has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
gary is now known as Guest85638
bigblind has quit [Ping timeout: 264 seconds]
that_dude is now known as utley
raynold has joined #ruby
graingert has joined #ruby
SuperL4g is now known as SuperLag
<conceivably>
I think I figured things out using StringIO, thanks apeiros.
fyrril has quit [Quit: Leaving]
utley is now known as m_utley
Guest85638 has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
duderonomy is now known as Guest60483
kies has joined #ruby
Beams has quit [Ping timeout: 276 seconds]
marxarelli|afk is now known as marxarelli
ironcamel has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
eckhardt has joined #ruby
Rr4sT has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
<cagomez>
I added a proc as a parameter to a class, and now a private method in that class always returns nil. is it possible for a proc to overload a private method?
Xiti has quit [Quit: Xiti]
<apeiros>
no
<apeiros>
also you can't add parameters to classes
<cagomez>
arguement?
Xiti has joined #ruby
<apeiros>
neither
<apeiros>
classes aren't methods.
r3m has joined #ruby
Guest60483 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
espressocannon has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
<espressocannon>
hi friends, Im a nuby to ruby. Looking for a guide on the field types available for database on rails
<espressocannon>
ie. t.string, t.text, .....
ldepandis has joined #ruby
<apeiros>
?rails espressocannon
<apeiros>
hrm, what's up with ruby[bot] today? it seems slow…
jrafanie has joined #ruby
gary_ has joined #ruby
gary_ is now known as Guest15336
leah2 has quit [Ping timeout: 265 seconds]
ruby[bot] has joined #ruby
<apeiros>
?rails espressocannon
<apeiros>
o0
_aeris_ has quit [Ping timeout: 255 seconds]
<ruby[bot]>
espressocannon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
Hirst has joined #ruby
Hirst was kicked from #ruby by ruby[bot] [was banned before]
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
Hirst has joined #ruby
Hirst was kicked from #ruby by ruby[bot] [was banned before]
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
Hirst has joined #ruby
Hirst was kicked from #ruby by ruby[bot] [was banned before]
reber has quit [Remote host closed the connection]
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
Hirst has joined #ruby
Hirst was kicked from #ruby by ruby[bot] [was banned before]
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
<espressocannon>
thanks
<apeiros>
hmmm
<espressocannon>
i was sent here from redit
SeepingN has joined #ruby
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
espressocannon has left #ruby [#ruby]
Hirst has joined #ruby
<apeiros>
!spam hirst
Hirst was kicked from #ruby by ruby[bot] [was banned before]
Guest17460 has joined #ruby
Guest17460 was kicked from #ruby by ruby[bot] [was banned before]
<apeiros>
!spam Guest17460
Guest15336 has quit [Ping timeout: 248 seconds]
bigblind has joined #ruby
wald0 has joined #ruby
alfiemax has joined #ruby
_aeris_ has joined #ruby
espressocannon has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
<espressocannon>
ummm
<espressocannon>
how do i ...
<espressocannon>
identify with services?
leah2 has joined #ruby
<apeiros>
/ns help register
<apeiros>
alternatively:
<espressocannon>
thanks. it's been about 20 years since i last ircd
<apeiros>
espressocannon: ircd would be the daemon, as in, the server ;-)
jnollette has quit [Remote host closed the connection]
aguestuser has quit [Remote host closed the connection]
k0mpa has quit [Read error: Connection reset by peer]
_aeris_ has quit [Remote host closed the connection]
<espressocannon>
thank you
alfiemax has quit [Ping timeout: 248 seconds]
<espressocannon>
irc'd
<espressocannon>
as in
<espressocannon>
past tense verb
<espressocannon>
since I internet relay chatted*
<apeiros>
verbing weirds language
<espressocannon>
thanks for helping a nub
ta_ has joined #ruby
wilbert has joined #ruby
<apeiros>
yw
jnollette has joined #ruby
_aeris_ has joined #ruby
riotjoe has joined #ruby
discopatrick has joined #ruby
PaulCape_ has joined #ruby
marr has joined #ruby
discopatrick has quit [Excess Flood]
discopatrick has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
dionysus69 has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
duracrisis has quit [Quit: Remember, smarter not harder!]
krawchyk has joined #ruby
krawchyk is now known as krawchyk[away]
ramfjord has joined #ruby
alfiemax has joined #ruby
habs has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest18148
aguestuser has joined #ruby
sameerynho has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krawchyk[away] is now known as krawchyk
contradictioned_ is now known as contradictioned
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
gary has joined #ruby
reaVer has quit [Remote host closed the connection]
gary is now known as Guest22305
mikecmpbll has joined #ruby
goatish has quit [Quit: Hibernating]
reaVer has joined #ruby
Guest22305 has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
conceivably has quit [Remote host closed the connection]
riotjoe has quit [Remote host closed the connection]
guille-moe has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
riotjones has joined #ruby
c0ncealed has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
c0ncealed has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
espressocannon has quit [Quit: Page closed]
Sina has quit [Quit: Connection closed for inactivity]
ShekharReddy has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 255 seconds]
Mia has quit [Quit: Leaving]
Sauvin has quit [Ping timeout: 255 seconds]
cagomez has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
snath has quit [Ping timeout: 256 seconds]
guille-moe has joined #ruby
mtkd has joined #ruby
cagomez has joined #ruby
tomlukeywood has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
guille-moe has quit [Ping timeout: 265 seconds]
morenoh149 has joined #ruby
green_hat has joined #ruby
aguestuser has quit [Remote host closed the connection]
phaul has joined #ruby
aguestuser has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
naztharune has quit [Read error: Connection reset by peer]
despai has joined #ruby
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
green_hat has left #ruby [#ruby]
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
mistergibson has quit [Quit: Leaving]
knight33 has joined #ruby
internoc has quit [Remote host closed the connection]
pastorinni has quit [Ping timeout: 255 seconds]
DTZUZU has joined #ruby
Matthew1 has quit []
Cavallari1 has joined #ruby
mistergibson has joined #ruby
graft has joined #ruby
sidx64 has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
sidx64 has quit [Client Quit]
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
dviola has quit [Quit: WeeChat 2.0.1]
cagomez has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cdg has joined #ruby
claudiuinberlin has joined #ruby
adlerdias has quit [Quit: adlerdias]
tomlukeywood has quit [Quit: Leaving.]
despai has quit [Quit: ...]
despai has joined #ruby
tomphp has joined #ruby
theSolTrain has joined #ruby
Cavallari1 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<habs>
hi, why do i get a c++11-type error when i try to 'gem install re2'? i have a few dozen other gems that have all installed and work fine. here's my mkmf.log: http://ix.io/O0E
<habs>
basically, the problem is that i get "include/re2/re2.h:748:16: error: ‘once_flag’ in namespace ‘std’ does not name a type" when i try to compile this program: "#include "ruby.h" / #include <re2/re2.h> / int main() { return 0; }" with this command: "gcc -x c++ -std=c++11 -I/gnu/store/z4v7d9ggb0viiw291l58cknam4q9i2ww-ruby-2.3.6/include/ruby-2.3.0/x86_64-linux
cagomez has quit [Remote host closed the connection]
<habs>
the error seems to indicate my gcc doesn't support c++11, but i'm using gcc 6.4.0 so it should support those types? do you have any ideas to fix / debug this?
Guest18148 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has quit [Ping timeout: 264 seconds]
Cavallari1 is now known as Cavallari
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Psybur has quit [Ping timeout: 255 seconds]
zkv has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<graft>
habs what system are you installing on?
despai has quit [Quit: ...]
<habs>
graft: sorry, it's a GNU Guix system, like nixOS, but all my gems (including re2) are being installed to my home directory
<graft>
i'm on xenial with gcc 5.4.0 and gem install re2 works without a hitch
<graft>
after installing libre2-dev
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
havenwood has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest53691
<habs>
graft: hm, perhaps my libre2 version (2018-02-01) is too new? this is what my include/re2/re2.h file says: http://ix.io/O14
<habs>
but on git it says that file was last modified in 2016 so looks not :-/ i think it's some sort of compiler issue
theSolTrain has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
theSolTrain has joined #ruby
<graft>
your re2.h is different from mine, my version says 20160201+dfsg-1
ShekharReddy has quit [Quit: Connection closed for inactivity]
<cagomez>
hmm, I'm doing the following: `proc { |*args| some_other_method(*args) }` but I need to mutate the last element in *args. what's a good way of doing this?
<apeiros>
cagomez: I've literally just shown you two ways.
<apeiros>
you have to know however whether you want to only mutate the array, or mutate the element itself. I can't possibly know that from the info you gave.
workmad3 has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
pastorinni has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
reber has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 255 seconds]
cagomez has joined #ruby
cjs226 has joined #ruby
cdg has joined #ruby
cjs226 has quit [Client Quit]
mtkd has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
dinfuehr has joined #ruby
mtkd has joined #ruby
orbyt_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 255 seconds]
solocshaw has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
thuryn has quit [Quit: User wandered away]
cdg has joined #ruby
Asher has joined #ruby
naztharune has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solocshaw has quit [Quit: solocshaw]
cjs226 has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
cjs226_ has joined #ruby
synthroid has quit []
keithy has joined #ruby
<keithy>
yay
mrush has quit [Quit: leaving]
<keithy>
I am puzzled to be unabled to find an efficient find utility
<keithy>
my usual approach is to walk the file tree one file at a time, thus not keeping anything in memory. You just say walker.nextFile
cjs226 has quit [Client Quit]
cjs226_ is now known as cjs226
<keithy>
cant find anything for effectively invoking and capturing a shell process as it works. except…
<keithy>
I did find a multithreaded method on the web but now I cant find it again
\void has quit [Quit: So long, and thanks for all the fish.]
cagomez has joined #ruby
goatish has quit [Quit: Hibernating]
cagomez has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 248 seconds]
jblack has joined #ruby
alfiemax has joined #ruby
garyserj has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
<garyserj>
Is it true that you used to need #coding: utf-8 at the top line of a file if you had any character outside of us ascii? and if so, then how can that work 'cos surely something beginning with # is meant to be a comment isn't it?
<guacamole>
its a magic comment
<SeepingN>
#!/usr/bin/ruby is also a magic comment
<SeepingN>
(one the first line only)
DTZUZO has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
<garyserj>
ok, thanks
VladGh has quit [Remote host closed the connection]
mcr1 has quit [Ping timeout: 256 seconds]
VladGh has joined #ruby
mcr has joined #ruby
oleo has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
given def some_method *args or def some_method *args, &blk
<zenspider>
you need an ampersand on that last line
<zenspider>
you're passing it as a regular object
alfiemax has quit [Ping timeout: 264 seconds]
<keithy>
yes I had that amp it still didnt work
<zenspider>
nope. don't believe you
<keithy>
I took it out as an experiment
<keithy>
soo
<zenspider>
Subprocess.new(*args, block) => block goes to *args
bigblind has quit [Ping timeout: 240 seconds]
<zenspider>
Subprocess.new(*args, &block) => block becomes target of yield
<keithy>
yes dont get that far
<zenspider>
(or captured to another &barg)
<keithy>
because I think args has block as its 6th member
postmodern has joined #ruby
<havenwood>
keithy: not if you have an & preceding it
<zenspider>
you don't need to declare &block on line 16 either. doesn't hurt
chouhoulis has quit [Remote host closed the connection]
<keithy>
just stepping thorugh the code now
<keithy>
to check
Fusselgesicht has quit [Quit: leaving]
chouhoulis has joined #ruby
<zenspider>
all of that indirection seems unnecessary to me, btw. the modules, the Subprocess class, all the IO handling w/ extra yielding
<havenwood>
^
sanscoeu_ has joined #ruby
<zenspider>
and the threads
phaul has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
<keithy>
I cut it out of other stuff
<keithy>
to show you
<zenspider>
use popen3 (or spawn), get your stderr and stdout (or don't! You're just printing it again)... this could even just be a plain system call since it is just `docker build`
<keithy>
how could it
<keithy>
you wouldnt see the result till the end
marxarelli is now known as marxarelli|afk
<zenspider>
system calls don't capture output
chouhou__ has joined #ruby
<havenwood>
Open3.capture3 should suffice, I'd think.
<zenspider>
all you really care about is the exit code ($?)
<keithy>
it might do for this application
Vapez has joined #ruby
<keithy>
I come back to ruby after 10 years and find I have to roll my own find file utility
<zenspider>
? no you don't ?
chouho___ has joined #ruby
<zenspider>
we had find back then. we still have it?
espressocannon has joined #ruby
<keithy>
ok, find me a find file utility that can search 100Gb of files in
<havenwood>
twas here all along...
<espressocannon>
how do i reset my nickserv password