<Purplex>
Ignoring openssl-2.1.1 because its extensions are not built. Try: gem pristine openssl --version 2.1.1
<Purplex>
Could not locate Gemfile
<Purplex>
Could somebody help me please?
elomatreb has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
<Purplex>
what a bunch of idle cocksuckers...
Purplex has left #ruby [#ruby]
<eam>
guilty
BlopMonster has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
theRoUS has joined #ruby
cagomez has joined #ruby
sytherax has joined #ruby
BlopMonster has quit [Ping timeout: 264 seconds]
jrafanie has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
white_lilies has joined #ruby
Vivekananda has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
gizmore has quit [Remote host closed the connection]
\void has quit [Quit: So long, and thanks for all the fish.]
wontruefree has joined #ruby
<Radar>
!ban Purplex
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
yokel has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thebetrayer has joined #ruby
wontruefree has quit [Quit: bye]
Tempesta has joined #ruby
jrafanie has joined #ruby
karapetyan has joined #ruby
dogweather has quit [Remote host closed the connection]
agent_white has quit [Quit: bbl]
karapetyan has quit [Ping timeout: 256 seconds]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
dogweather has joined #ruby
cass_j has joined #ruby
white_lilies has quit [Ping timeout: 264 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sytherax has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 265 seconds]
sytherax has joined #ruby
Mia has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
cyberg has quit [Quit: Leaving]
konsolebox has joined #ruby
gnufied has quit [Ping timeout: 264 seconds]
<cjohnson>
3 minutes!!!
<cjohnson>
that escalated extremely quickly
<cjohnson>
lol
thebetrayer has quit [Ping timeout: 260 seconds]
dogweather has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
t0xik has joined #ruby
dogweather has joined #ruby
BlopMonster has joined #ruby
nicht has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
BlopMonster has quit [Ping timeout: 260 seconds]
nicht has quit [Remote host closed the connection]
nicht has joined #ruby
cstrahan_ has quit [Ping timeout: 256 seconds]
pwillard has quit [Ping timeout: 256 seconds]
boxrick_ has quit [Ping timeout: 256 seconds]
rflot has quit [Ping timeout: 256 seconds]
esObe has quit [Ping timeout: 256 seconds]
sparc has quit [Ping timeout: 256 seconds]
esObe has joined #ruby
kireevco_ has quit [Ping timeout: 256 seconds]
dogweather has joined #ruby
caw________ has quit [Ping timeout: 256 seconds]
sparc has joined #ruby
rflot has joined #ruby
<desnudopenguino>
wow. that guy was somethin else
pwillard has joined #ruby
caw________ has joined #ruby
cstrahan_ has joined #ruby
kireevco_ has joined #ruby
boxrick_ has joined #ruby
darkhanb has joined #ruby
BlopMonster has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
SanguineAnomaly has quit [Ping timeout: 240 seconds]
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
SanguineAnomaly has joined #ruby
wontruefree has joined #ruby
thebetrayer has joined #ruby
sytherax has quit [Remote host closed the connection]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
BlopMonster has quit [Ping timeout: 248 seconds]
braincrash has quit [Quit: bye bye]
kmurphy4 has quit [Quit: kmurphy4]
gix has joined #ruby
gix- has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
kmurphy4 has joined #ruby
garyserj has quit [Ping timeout: 264 seconds]
garyserj has joined #ruby
levifig has quit [Quit: Farewell]
levifig has joined #ruby
AJA4350 has quit [Quit: AJA4350]
dendazen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wontruef_ has joined #ruby
rgiscard has joined #ruby
dogweather has quit [Remote host closed the connection]
thebetrayer has quit [Ping timeout: 276 seconds]
wontruefree has quit [Ping timeout: 265 seconds]
ciscam has quit [Ping timeout: 264 seconds]
sytherax has joined #ruby
dogweather has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
BlopMonster has joined #ruby
ciscam has joined #ruby
thebetrayer has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
BlopMonster has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
shinnya has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
lytol has quit [Remote host closed the connection]
sytherax has quit [Ping timeout: 264 seconds]
subroot has quit [Read error: Connection reset by peer]
hfp_work has quit [Ping timeout: 245 seconds]
johnny56 has joined #ruby
johnny56_ has quit [Ping timeout: 276 seconds]
hfp_work has joined #ruby
BloopMonster has joined #ruby
thebetrayer has quit [Ping timeout: 276 seconds]
zlogan2003 has joined #ruby
nicht has quit [Ping timeout: 256 seconds]
sshock has joined #ruby
machinewar has joined #ruby
<machinewar>
helllo
SeepingN has joined #ruby
BloopMonster has quit [Ping timeout: 260 seconds]
tty has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
BlopMonster has joined #ruby
BlopMonster has quit [Ping timeout: 276 seconds]
tty has quit [Quit: tty]
tty has joined #ruby
tty has quit [Client Quit]
metalbot has joined #ruby
tty has joined #ruby
roamingdog has joined #ruby
shakes has joined #ruby
shakes has quit [Read error: Connection reset by peer]
WAFFLEMAKER3000 has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
rgiscard has quit [Quit: Gone fishing]
WAFFLEMAKER3000 has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
machinewar has quit [Remote host closed the connection]
PixeLInc has quit [Ping timeout: 255 seconds]
PixeLInc has joined #ruby
justinmrkva has quit [Ping timeout: 240 seconds]
justinmrkva has joined #ruby
sshock has quit [Ping timeout: 248 seconds]
sshock has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dogweather has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 255 seconds]
sauvin has joined #ruby
dogweather has joined #ruby
jcarl43 has joined #ruby
UncleCid__ has joined #ruby
thinkpad has quit [Quit: lawl]
pwnd_nsfw` has quit [Ping timeout: 276 seconds]
thinkpad has joined #ruby
chat has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
chat_ has quit [Ping timeout: 260 seconds]
Inline has joined #ruby
wontruef_ has quit [Quit: bye]
reber has joined #ruby
zapata has joined #ruby
Puffball has joined #ruby
zapata has quit [Client Quit]
terces has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
SeepingN has joined #ruby
Inline has quit [Quit: Leaving]
terces has quit [Quit: Page closed]
dogweather has quit [Ping timeout: 256 seconds]
sshock has left #ruby [#ruby]
dogweather has joined #ruby
metalbot has quit [Ping timeout: 240 seconds]
metalbot has joined #ruby
conta has joined #ruby
dogweather has quit [Read error: Connection timed out]
dogweather has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
donofrio has quit [Remote host closed the connection]
bathtub_shark has quit [Quit: WeeChat 2.1]
Zarthus has quit [Ping timeout: 255 seconds]
pwnd_nsfw` has joined #ruby
aupadhye has joined #ruby
dionysus69 has quit [Quit: dionysus69]
UncleCid__ has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 260 seconds]
amelliaa has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
biberu has joined #ruby
Zarthus has joined #ruby
mtkd has joined #ruby
BTRE has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
schleppel has joined #ruby
mtkd has quit [Remote host closed the connection]
conta has quit [Quit: conta]
mtkd has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
amar has joined #ruby
karapetyan has joined #ruby
<bijan_>
Hi, I already posted this to the rails channel but maybe it is fileutils related: I get several warnings on rails s command complaining about fileutils.rb and "warning: already initialized constant" for some constants. Same on two machines with latest rails gem, ruby 2.5.1 via rbenv. Log: https://gist.github.com/gobijan/cff23d11c0a5b779fde22fa099ed8a39
<bijan_>
Anyone has an idea what is wrong here?
yohji has joined #ruby
andikr has joined #ruby
karapetyan has quit [Ping timeout: 276 seconds]
DarkUnicorn has joined #ruby
akaiiro has quit [Ping timeout: 240 seconds]
arekushi has quit [Read error: Connection reset by peer]
sysvalve has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
BlopMonster has joined #ruby
TomyWork has joined #ruby
BlopMonster has quit [Ping timeout: 265 seconds]
amelliaa has quit [Ping timeout: 256 seconds]
mostly-h1rmless has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
n3b has joined #ruby
bijan_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
fmccann has quit [Ping timeout: 248 seconds]
mostly-harmless has joined #ruby
zmo has quit [Ping timeout: 256 seconds]
RougeR has joined #ruby
boo has joined #ruby
Dabo has quit [Ping timeout: 264 seconds]
boo is now known as Guest86156
RougeR has quit [Ping timeout: 245 seconds]
Guest86156 is now known as rr4
rr4 is now known as rr-4
cabotto has joined #ruby
<rr-4>
hello why rubygems stored gems with name '_' etc?
<rr-4>
how do it?
Dabo has joined #ruby
zmo has joined #ruby
hurricanehrndz_ has quit [Quit: Goodbye]
fmccann has joined #ruby
bathtub_shark has joined #ruby
Burgestrand has joined #ruby
vovs03 has joined #ruby
KeyJoo has quit [Read error: Connection reset by peer]
dogweather has quit [Read error: Connection timed out]
hurricanehrndz has joined #ruby
riceandbeans has quit [Quit: leaving]
jcarl43 has quit [Quit: WeeChat 2.1]
mikecmpbll has joined #ruby
dogweather has joined #ruby
conta has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
subroot has joined #ruby
conta has quit [Remote host closed the connection]
ams__ has joined #ruby
arekushi has joined #ruby
dogweather has quit [Ping timeout: 256 seconds]
rr-4 has quit [Quit: Leaving]
sphenxes has joined #ruby
dogweather has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
WAFFLEMAKER3000 has joined #ruby
WAFFLEMAKER3000 has quit [Ping timeout: 264 seconds]
dogweather has quit [Ping timeout: 268 seconds]
schleppel has quit [Quit: Konversation terminated!]
BlopMonster has joined #ruby
Guest26473 has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
jud^ has joined #ruby
Nicmavr has joined #ruby
karapetyan has joined #ruby
Nicmavr is now known as Guest16618
BlopMonster has quit [Ping timeout: 245 seconds]
jud has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
nowhereman_ has quit [Ping timeout: 245 seconds]
alex`` has joined #ruby
dogweather has quit [Read error: Connection timed out]
dogweather has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi (again)
zapata has joined #ruby
ellcs has joined #ruby
rblasucci_ has joined #ruby
<GeorgesLeYeti>
I'm trying to make a function which convert 2 text into 1. These text can be pretty long. My question is, is it preferable to pass in parametre of my fucntion directly the text or a path of file (containing my text)
<dminuoso>
GeorgesLeYeti: you can use lazy enumerators =)
<dminuoso>
(Which is much more elegnat than passing paths around)
<dminuoso>
GeorgesLeYeti: What kind of conversion is it?
<GeorgesLeYeti>
Don't really know how to explain
<dminuoso>
You can use the English language if you like. Or maybe some sample data
<GeorgesLeYeti>
My 2 text are really close. So it compare the 2 text and try to align the 1st text with the 2nd
<dminuoso>
GeorgesLeYeti: Use lazy file enumerators I'd say
rblasucci_ has quit [Client Quit]
<GeorgesLeYeti>
dminuoso, Ok ty you. Don't know what it is but i ll check
<apeiros>
it's similar to the power plug you find in old cassette recorder, just 3 connectors instead of 2
<apeiros>
I think it's an IEC C6
mtkd has joined #ruby
<cdunklau>
apeiros: is it a laptop psu?
<apeiros>
cdunklau: correct
<apeiros>
and it's definitively an IEC C6 :)
<cdunklau>
almost certainly C6
<apeiros>
now to the joy of finding a cord for that in a shop around here :-S
chat has joined #ruby
cabotto has quit []
<cdunklau>
apeiros: do you not have any cord for it?
<apeiros>
nope. none that fits our power plugs :)
<apeiros>
(it's not for my laptop, got a visitor who stays a couple of weeks)
conta has quit [Quit: conta]
<cdunklau>
apeiros: right but they have a cord, right?
<cdunklau>
apeiros: it might be easier to find a pin adapter for the plug side of their cord, assuming the PSU is a switching supply, which it most likely is if it has a C6 inlet
chat_ has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
zapata_ has joined #ruby
jrafanie has joined #ruby
zapata has quit [Ping timeout: 256 seconds]
sinduck has quit [Read error: Connection reset by peer]
chat_ has joined #ruby
donofrio has quit [Remote host closed the connection]
bijan_ has joined #ruby
chat has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
clemens31 has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 264 seconds]
BlopMonster has joined #ruby
ldnunes has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dogweather has joined #ruby
BlopMonster has quit [Ping timeout: 256 seconds]
sytherax has joined #ruby
AJA4350 has joined #ruby
Es0teric has joined #ruby
dendazen has joined #ruby
biberu has quit []
biberu has joined #ruby
zapata_ is now known as zapata
karapetyan has joined #ruby
dogweather has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Closing time!]
dogweather has joined #ruby
Burgestrand has joined #ruby
gheegh has joined #ruby
cyberg has joined #ruby
rgiscard has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
apparition47 has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
rgiscard has quit [Remote host closed the connection]
dionysus70 has joined #ruby
cagomez has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
<apeiros>
nice, found one :D first shop, not even a minute. didn't expect that.
t0xik has quit [Quit: Connection closed for inactivity]
cagomez has quit [Ping timeout: 248 seconds]
_insomniac has quit [Quit: WeeChat 2.1]
dogweather has quit [Ping timeout: 240 seconds]
gray_-_wolf has joined #ruby
yohji has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
<cdunklau>
\o/
jcalla has quit [Ping timeout: 268 seconds]
gray_-_wolf has quit [Quit: WeeChat 2.1]
amatas has joined #ruby
omth_ has quit [Ping timeout: 248 seconds]
za1b1tsu has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
sytherax has quit [Quit: Leaving...]
dogweather has quit [Ping timeout: 245 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
Cthulu201 has joined #ruby
aufi has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
dogweather has joined #ruby
conta1 has joined #ruby
Inline has joined #ruby
fmcgeough has joined #ruby
mr_rich101 has joined #ruby
deathwishdave has joined #ruby
dogweather has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
amatas has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
dogweather has joined #ruby
Asher has joined #ruby
psychicist__ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
jrafanie has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
RougeR has joined #ruby
RougeR has joined #ruby
gnufied has joined #ruby
subroot has joined #ruby
potatoe_ has joined #ruby
potatoe_ has quit []
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dogweather has quit [Ping timeout: 268 seconds]
jcalla has joined #ruby
dogweather has joined #ruby
<leitz>
if you have a hash with string keys, is there an easy way to convert the keys to symbols?
<apeiros>
leitz: Hash#transform_keys
<leitz>
apeiros, thanks!
vondruch has quit [Ping timeout: 240 seconds]
<apeiros>
though, only in newer rubies
<apeiros>
map + to_h in older versions.
<NL3limin4t0r>
leitz: Introduced in 2.5.0 to be exact.
<Zarthus>
Nice. That's a good feature
<Zarthus>
I remember having to need this all too often.
<NL3limin4t0r>
If you'll use it with the RoR framework you can also use Hash#symbolize_keys
<leitz>
Should work in 2.6 then.
<Zarthus>
NL3limin4t0r: I imagine #symbolize_keys is only one-way.
<Zarthus>
it doesn't convert symbols to strings :P
<Zarthus>
stringify_keys() exists, though.
<NL3limin4t0r>
Ah, nope, it doesn't
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
dogweather has quit [Ping timeout: 248 seconds]
arne_ has quit [Remote host closed the connection]
dogweather has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
ciscam has quit [Ping timeout: 276 seconds]
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ciscam has joined #ruby
lbracher has joined #ruby
workmad3 has joined #ruby
<lbracher>
Hi there! I'm having a bad time trying to install passenger extension for apache using rvm. I'm not able to call gem binary directly from command line, although I'm able to do `rvm all do gem install passenger`. But this doesn't work with step by step provided by https://www.phusionpassenger.com/library/install/apache/install/oss/rubygems_rvm/ . Any ideas?
Asher has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 has joined #ruby
bmurt has joined #ruby
dionysus70 is now known as dionysus69
Asher has quit [Ping timeout: 245 seconds]
amelliaa has joined #ruby
conta1 has quit [Quit: conta1]
konsolebox has quit [Ping timeout: 264 seconds]
dogweather has quit [Ping timeout: 260 seconds]
<havenwood>
lbracher: Do you get `command not found` with?: gem
<havenwood>
lbracher: Or how does it not work?
za1b1tsu has joined #ruby
Rapture has joined #ruby
<havenwood>
lbracher: What do you get for?: which -a gem
<havenwood>
lbracher: printenv PATH
konsolebox has joined #ruby
<havenwood>
lbracher: rvm current
<havenwood>
lbracher: Show us those? ^
<lbracher>
havenwood, I get command not found. which -a gem gives me nothing.
<aruns>
Hey guys, quick question, I was playing around with Ruby's CGI module last week, are CGI sessions supposed to be similar to cookies?
<aruns>
Could I persist the user state in a single CGI session?
Rapture has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
sanscoeu_ has joined #ruby
sanscoeur has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
wontruefree has joined #ruby
lxsameer has joined #ruby
dogweather has quit [Read error: Connection timed out]
BloopMonster has quit [Ping timeout: 276 seconds]
<gizmore>
aruns: Cookies are a feature of http. You set cookies via server response header "Set-Cookie: ...." ..... you resend cookies via client request header "Cookie: "
cagomez has quit [Remote host closed the connection]
<gizmore>
you could also, for fun, monkeypatch some core datatypes with your own def own_json
<cthulchu>
nono
<cthulchu>
I'll try ruby as it should be first
<gizmore>
you could class Numeric; def own_json; self; end; end
<cthulchu>
wanna get that authentic taste first
<cdunklau>
gizmore: i don't know what that @hash thing does
<gizmore>
oh in ruby you have to think different
amelliaa has quit [Quit: -]
<gizmore>
@hash means "instance variable"
<cdunklau>
oh wait that's just the instance attribute sigel
<gizmore>
@@hash would be a class variable
<cdunklau>
ok
<cthulchu>
so json is a default... gem?
<cthulchu>
package
<cthulchu>
why renaming packages. everyone has packages, ruby calls them gems
<cthulchu>
hehe
<gizmore>
cthulchu: it seems like #to_json is part of Kernel? (the main object) or Object?
<cthulchu>
neat!!!
<cthulchu>
as it should be
<gizmore>
ah no... you need to require "json"
<cdunklau>
cthulchu: it's worse with python. a python "package" is a dir with python modules in it, not something you can really install (that would technically be a "distribution")
cagomez has joined #ruby
lbracher has quit [Ping timeout: 260 seconds]
<cthulchu>
hehe
<cthulchu>
so I have this weird thing
<cthulchu>
in my superclass that calls my class
<cthulchu>
require 'require_all'
<cthulchu>
I assume json will be there
<gizmore>
mozzarella: thanks for that msg ;P
<cthulchu>
gonna test
<cdunklau>
cthulchu: ...what?
<cthulchu>
what what?
<mozzarella>
what message?
<cthulchu>
that wasn't me
<cdunklau>
cthulchu: you mean you have class A, and class B that inherits from A, but class A calls B?
<gizmore>
the force you were reading... just let us amateurs get used to ruby! ^^
<cthulchu>
not quite... I have class A that creates an object of class B. Class A has all the requires. Class B has none. I'm in B.
<cthulchu>
I think B will be able to use A's requires
<cthulchu>
hell I have never coded as dirty as this
<cthulchu>
nothing is reusable and everything is bootstraps
<cdunklau>
gizmore: hmm classes work fine as keys...
<cthulchu>
but why would you make a class a key
<cthulchu>
unless you're hacking
<gizmore>
cdunklau: thanks.... then i have a bug/problem in my code ... thx :)
<cdunklau>
like, in python, when you do `import foo`, and then in another file also `import foo`, the second time it happens it just does a hash table lookup, it doesn't reexecute
t0xik has joined #ruby
<gizmore>
cdunklau: if you do passenger or maybe most other stacks there is no clean on every request.... your caches will be way different compared to mod_php
<gizmore>
how does cgi work?
<gizmore>
process => code => kill=
<gizmore>
?
<cdunklau>
gizmore: ...what?
<gizmore>
what do you mean with "module cache"?
<cdunklau>
i'm having trouble understanding how that's relevant at all :)
<cdunklau>
gizmore: like, you require a thing. the next time you require it, does it get reexecuted?
<gizmore>
no, you will use "load" then
<gizmore>
include is the equivalent to extend (btw) ... you include or extend a module
dogweather has quit [Read error: Connection timed out]
<gizmore>
require is like load
<cdunklau>
oh wait
<cdunklau>
terminology collisions :)
<gizmore>
yeah
<gizmore>
and i might not be 100% right as well
<gizmore>
also interesting:
<cdunklau>
in python a module is the object you get when you import a file
<apeiros>
gizmore: in JS, it's Map
<apeiros>
Object in JS aren't really hashtables, though you can use them similar to one
roamingdog has quit [Remote host closed the connection]
<cdunklau>
apeiros: can Map have arbitrary keys?
<apeiros>
(and Map still lacks a proper equality protocol)
<apeiros>
cdunklau: afaik yes, but ^
roamingdog has joined #ruby
<cdunklau>
apeiros: i'm pretty sure everything in JS lacks a proper equality protocol :)
<apeiros>
it's not as nice as in ruby where you can define #hash and #eql?
<gizmore>
apeiros: may i query you for 30 seconds?
roamingdog has quit [Remote host closed the connection]
<apeiros>
you mean pm? you can, but most questions I only answer in public :)
roamingdog has joined #ruby
<gizmore>
i will do here then.... i need an excurse in bundler and gems. i want your time for 1-2h and i would pay like €20-€40 for your guidance
DTZUZU has joined #ruby
roamingdog has quit [Remote host closed the connection]
<gizmore>
basically i need guidance and help in my gem layout for my little hobby project :)
<apeiros>
oh honey, my fee is *slightly* above 40€ for an hour ;-) but I appreciate it. just ask, and if I can I'll answer for free.
roamingdog has joined #ruby
<cthulchu>
folks, I have an array of hashes. I know I need an object that has in it a .name == "asd".
<cthulchu>
should I iterate through them with a loop?
roamingdog has quit [Remote host closed the connection]
<cthulchu>
or is there a more elegant way?
roamingdog has joined #ruby
<apeiros>
cthulchu: I'm not sure I follow your question. you mean you need a hash which has hash["name"] == "asd"?
<cdunklau>
cthulchu: do you mean a hash with the key "name" that refers to the value "asd"?
dogweather has joined #ruby
<apeiros>
or do you need to turn your hashes into a different type of object?
roamingdog has quit [Remote host closed the connection]
<gizmore>
apeiros: so i am working on a framework.... there will also be a bin/ provided in the main gem, that should know about own plugin gems.... like gem gdo knows about gem gdo-networking
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
<cthulchu>
yes
<cthulchu>
you both are right
lbracher has joined #ruby
<apeiros>
cthulchu: Array#find
<cthulchu>
what is #?
<apeiros>
and yes, that's essentially looping through
<apeiros>
# denotes instance methods
roamingdog has quit [Remote host closed the connection]
<apeiros>
:: denotes class methods
<cthulchu>
wow
<cthulchu>
and .?
<apeiros>
it's "documentation lingo"
<cthulchu>
would Array.find work?
<cthulchu>
[].find
<apeiros>
. is either when you use ri to search, but I avoid it as it's ambiguous
<apeiros>
yes, [].find { |hash| hash[key] == value }
<cthulchu>
so find accepts an anonymous function as an argument
<gizmore>
apeiros: thank you very very much :)
<apeiros>
cthulchu: yes. your "finding" strategy.
lxsameer has quit [Ping timeout: 256 seconds]
<cthulchu>
will that "block" be executed on each element?
<cthulchu>
how do we return success?
<cthulchu>
so .find is almost .forEach?
lxsameer has joined #ruby
sanscoeur has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
<apeiros>
gizmore: hm, interesting. I'd expect Bundler.require(:default) to load mysql2 since it's in the gemspec
<apeiros>
so don't know about that
<gizmore>
thank you :)
<apeiros>
I assume you tested without require and it didn't work?
<gizmore>
correct
<gizmore>
got missing constant MySQL2
<apeiros>
ok, that's something I'd have to look up myself
<cthulchu>
actually I don't need find
<apeiros>
so, good thing you didn't pay me money ;-D
<cthulchu>
cuz it's boolean
<cthulchu>
I need to return a hash that satisfied the search paeams
<cthulchu>
*params
<gizmore>
apeiros: btw.... "gdo" is a great new approach for a framework .... i would be happy if someone would run my rspec
<apeiros>
cthulchu: find uses each, but unlike each, it stops once it found what you're looking for and returns that
BlopMonster has joined #ruby
<apeiros>
cthulchu: and it returns nil if it doesn't find anything
nicht has joined #ruby
<gizmore>
apeiros: i am currently writing README.MD
<apeiros>
cthulchu: but all of that you can learn from reading find's docs ;-p
ski4x7 has quit [Ping timeout: 256 seconds]
<cthulchu>
they're confusing
psychicist__ has quit [Quit: Lost terminal]
<cthulchu>
but I'll try again
<cdunklau>
is Class... a metaclass?
<apeiros>
gizmore: as for "how can it know about gdo-someplugin" - it can't if you use bundler. because you literally tell your code to ignore every gem which is not in the gemfile.
<cthulchu>
`Passes each entry in enum to block. `
<cthulchu>
what is in enum?
<apeiros>
i.e. you'd have to list all plugins in the gemfile, but since you probably only want to install plugins when needed, that's a bit problematic. so either you circumvent bundler for that, or you don't use bundler at all. I'm not sure what a good approach would be.
<gizmore>
apeiros: what is very unclear.... if someone would gem install gdo && gem install gdo-net ....... then he would $gdo --foo bar but how does gdo binary know about gdo-net without any gemfile?
workmad3 has joined #ruby
<gizmore>
apeiros: thank you very much!
dogweather has joined #ruby
<gizmore>
btw.... gdo6(PHP) is very great... ten times better than laravel
<gizmore>
also on github/gizmore/gdo6
<apeiros>
I don't know laravel :)
<gizmore>
but PHP is so.... argh
<gizmore>
laravel is like rails in php
<gizmore>
but they totally failed
<gizmore>
code completion like <50%
<apeiros>
I thought symphony was the big rails clone?
lbracher has quit [Ping timeout: 256 seconds]
<gizmore>
should try symphony :)
BlopMonster has quit [Ping timeout: 240 seconds]
<cthulchu>
this is crazy
<gizmore>
everything good is a bit like rails
<cthulchu>
why do they put .detect in manuals about .find
<cthulchu>
so confusing
<cthulchu>
I never ask about .detect and yet I see it more often than .find
<gizmore>
cthulchu: an enum is a class that features #next and some other methods
<cthulchu>
no sense
<gizmore>
it is iteratable
<cthulchu>
it says it passes each element in enum
<gizmore>
yeah
<gizmore>
for each enum value (all)
<gizmore>
pass to a &block
<gizmore>
sounds like a bad idea
<apeiros>
cthulchu: find & detect are aliases
<cthulchu>
omg
<gizmore>
sounds like a bad idea unless it iterates with #next.... i love ruby :P
<apeiros>
basically if you do `ri Foo#somemethod` and you get `othermethod works like X`, it means othermethod and somemethod are aliases
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
WAFFLEMAKER3000 has quit [Quit: WeeChat 2.1]
weaksauce has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
BlopMonster has joined #ruby
BloopMonster has quit [Ping timeout: 264 seconds]
<zenspider>
fanfuckingtastic. I'm slowly working on an rspec compatibility layer and I finally got dots today... Despite having some failures my runs are still 65% the time of rspec.
jenrzzz has joined #ruby
<SeepingN>
I like ap
<SeepingN>
(awesomeprint)
<SeepingN>
when debugging arrays and hashes and objects
<SeepingN>
omy
duderonomy has joined #ruby
BlopMonster has quit [Ping timeout: 265 seconds]
<zenspider>
SeepingN: in your tests or elsewhere?
BloopMonster has joined #ruby
<SeepingN>
my own
Zarthus has quit [Quit: I can't go to hell. I'm all out of vacation days.]
chouhoul_ has joined #ruby
Zarthus has joined #ruby
cyberg has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
mmattice has quit [Ping timeout: 248 seconds]
cyberg has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
mmattice has joined #ruby
KaitoDaumoto has quit [Remote host closed the connection]
BloopMonster has quit [Read error: Connection reset by peer]
cadillac_ has quit [Read error: Connection reset by peer]
BloopMonster has joined #ruby
dogweather has quit [Ping timeout: 256 seconds]
<Eiam>
time to step into containerizing my ruby projects
Zaab1t has quit [Quit: Zaab1t]
* Eiam
sighs and gives into the future
mtkd has quit []
Dabo has joined #ruby
<zenspider>
wow! 504 specs. All passing now. Roughly the same time for the dots 0.2414s (minitest) vs 0.2535s (rspec)... but overall runtime is 1.046s vs 2.065s
roamingd_ has quit [Remote host closed the connection]
dogweather has joined #ruby
<zenspider>
Eiam: and now you have 8 problems
wald0 has joined #ruby
<apeiros>
if it's only 8 problems, they did a really good job!
cadillac_ has joined #ruby
roamingd_ has joined #ruby
<cthulchu>
do you guys write blocks in one line?
<cthulchu>
or do you treat them as actual code blocks?
<apeiros>
whatever fits the situation
<cthulchu>
do you smoke weed?
<zenspider>
cthulchu: either stay on topic or go away
<cthulchu>
I've learned ruby enough to know that this question is not out of context on the channel ;)
<cthulchu>
ok, ok, I thought you'd appreciate a joke
aruns has quit [Quit: leaving]
<cthulchu>
looks like this channel is stricter than the language itself :)
<zenspider>
and yet here you are sticking with shitty signal:noise...
workmad3 has joined #ruby
<cthulchu>
the reason of that is your definition of signal:noise
<cthulchu>
so blame yourself
<zenspider>
you're about to be banned. The amount of time is up to you.
jottr has joined #ruby
biberu has quit []
<jrich523>
<insert that escalated quickly meme>
lxsameer has quit [Ping timeout: 276 seconds]
dogweather has quit [Ping timeout: 260 seconds]
<cthulchu>
it always does with arrogant ops :)
<cthulchu>
what array function would you suggest for finding all matching elements of an array rather than first
lxsameer has joined #ruby
<cthulchu>
I use .find for the first one
workmad3 has quit [Ping timeout: 260 seconds]
<jrich523>
select?
roamingd_ has quit [Remote host closed the connection]
<jrich523>
i thought thats what that one was for?
<cthulchu>
will it return an array?
<jrich523>
hmm yeah think so
<cthulchu>
cool, thanks
<jrich523>
cuz there is select vs select! (assuming there is anyways)
<jrich523>
return a new array vs modify inline
<jrich523>
im only like one or two days ahead of you lol
<cthulchu>
oh, okay :)
roamingdog has joined #ruby
BloopMonster has quit [Ping timeout: 248 seconds]
<cthulchu>
actually, I don't need it. I just need a foreach, I guess
<jrich523>
yeah i mean technically the foreach will do basically anything you need
<cthulchu>
indeed
<jrich523>
i used it a LOT (a tad stupidly) at first... now im using map and select for those stupid things lol
<cthulchu>
I'm gonna just use it instead of all these weird shortcuts
<cthulchu>
just have to find it
<cthulchu>
.each Calls block once for each element in self, passing that element as a parameter, converting multiple values from yield to an array.
<cthulchu>
why in self?
<cthulchu>
not in enum
<cthulchu>
find does it in enum and this one does it in self
dogweather has joined #ruby
<cthulchu>
I suspect it's the same thing
<cthulchu>
is it?
cliluw has quit [Read error: Connection reset by peer]
<jrich523>
because its .each
<jrich523>
so it has to be self
<jrich523>
but self IS the enum (hash/array)
<cthulchu>
omg
<cthulchu>
they use them interchangeably.
<cthulchu>
confusing
<zenspider>
grep or find_all
<jrich523>
grep?
<zenspider>
grep
<cthulchu>
yep
<jrich523>
i obviously know what grep is, but how does it apply to ruby?
<jrich523>
is there a grep method i've overlooked?!
cliluw has joined #ruby
<zenspider>
jrich523: try `ri grep` in your terminal
<jrich523>
im windows.. but lets see what happens
<zenspider>
if that doesn't work, you're missing out on a very useful tool
<zenspider>
should still work
<zenspider>
but some ruby setups bypass setting up the doco data
<jrich523>
HA!
<jrich523>
powershell prompts
<jrich523>
ri - remove-itemn :)
<zenspider>
ri.exe maybe?
<zenspider>
or your pathing needs tweaking?
<zenspider>
but if you can run irb, you should be able to run ri
<jrich523>
oh, irb works fine
<zenspider>
there's also grep_v, finally
<jrich523>
there we go
<jrich523>
hmm seems to be part of pry?
schneider has quit [Ping timeout: 256 seconds]
<jrich523>
neat
<zenspider>
jrich523: part of rdoc and as a result, part of ruby
<jrich523>
weird, so wouldnt ri show that? it listed a few... instances.. all from pry
lxsameer has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
<zenspider>
might not have the core ruby data installed, but it also searches through gems. Maybe pry has their own grep method
BloopMonster has joined #ruby
<zenspider>
I thought you meant `ri` was part of pry, not `grep`
<jrich523>
i guess while we're chatting about gems, is there any easy way to know what a gem exports?
<jrich523>
sorry, yeah the grep return is telling me its part of pry, (from gem pry-0.11.3)
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
<zenspider>
jrich523: if you have things set up correctly, you should (also) see that grep is defined on Enumerable
<jrich523>
ruby bother me with its excessive ways of doing things.. however... i dont find anything "wrong" with it... JS just makes me angry to code... like... omg did we really need to turn this horrible/light script lang in to something so extensive?
<cthulchu>
yeah
<jrich523>
puts is probably angry about the ()
<cthulchu>
I feel the same
<jrich523>
does get_driver() need the ()?
<cthulchu>
oh yeah
schneider has quit [Ping timeout: 248 seconds]
<cthulchu>
in JS you get the function intself if you don't use ()
<cthulchu>
() is the envoker
<cthulchu>
*invoker
<cthulchu>
very comfortable
<jrich523>
i like to use the interperted string stuff #{} vs +
GodFather has joined #ruby
<cthulchu>
I would appreciate {} instead of def ends and in ifs too
<jrich523>
thats most languages... and honestly, i like the use of () on methods
<jrich523>
i think you CAN do that
<cthulchu>
not with defs
<cthulchu>
maybe with ifs
<apeiros>
no
<cthulchu>
can we use {} with ifs?
<apeiros>
only do/end (blocks) can use {}
<cthulchu>
ehhh
<apeiros>
as said earlier btw. ;-)
<jrich523>
yes, and now that yo usay it, i do recall it
<cthulchu>
:)
<jrich523>
so many little details, trying to pack them in as best as possible :)
<jrich523>
oh, line 24
<jrich523>
i bet a linter would be grumpy
<cthulchu>
yes
<jrich523>
.nil? it would likely want?
<apeiros>
cthulchu: note that `puts ("foo")`, ruby does not interpret the parens to mean "delimits arguments"
<apeiros>
it considers puts an unparenthesized method which has an argument `("foo")`
karapetyan has joined #ruby
<cthulchu>
yes
<cthulchu>
I know
<cthulchu>
I just use them with all methods
schneider has joined #ruby
<apeiros>
you don't understand
<jrich523>
so you could get nutty and do: method ('p1') 'p2'
<cthulchu>
wow
<apeiros>
well, maybe showing you why it matters will make you understand:
<jrich523>
i did read something, in regards to properties and method, that basically made it sound like properties were methods
<apeiros>
they are.
<zenspider>
jrich523: nearly everything in ruby is done via message sends
<zenspider>
(method calls)
<apeiros>
you can't access an @instance_variable from outside an object. you always have to go through a method.
<apeiros>
either by having one of a matching name (attr_* generates those), or by one of a different name, or by introspection via instance_variable_get
<jrich523>
and the attr_* map that for you?
<jrich523>
create get/set methods for the internal/private member?
<cthulchu>
apeiros, in your solution you have two lines in the block. the first one doesn't return anything and the second one does?
<apeiros>
i.e., all `attr_accessor :foo` does is write the following code for you: `def foo; @foo; end; def foo=(value); @foo = value; end`
<jrich523>
@var is that sort of like a field then?
<apeiros>
cthulchu: all lines do. but the last statement matters.
<jrich523>
field vs property (C#)
<cthulchu>
ooooh
<cthulchu>
but still, there are functions that can't be expressed in blocks?
<jrich523>
apeiros i appreciate you letting the two of us pick your brain at the same time.. lol thanks :)
<apeiros>
it's a bit more than an anonymous function, yes.
<apeiros>
it's additionally a closure (but JS does that too)
<cthulchu>
oh, very cool
<cthulchu>
I like it. okay.
<apeiros>
jrich523: I'm not familiar with C# terminology, sorry
<apeiros>
and since nuances matter :)
dogweather has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 256 seconds]
<jrich523>
field/property seems to be common in compiled langs
dogweather has joined #ruby
<jrich523>
fields are internal values, properties ahve get/set that allow you to control how it is pushed to the field
<apeiros>
point is: @ivars are internal state. not externally accessible. you have to "grant" access through methods.
<jrich523>
properties are almost always backed by fields (not always shown that tho)
DTZUZO has joined #ruby
<jrich523>
yeah so i think the analogy works..
<apeiros>
then yes, that sounds like @ivars match fields
<apeiros>
they are probably still different in that @ivars are not allocated when the object is created.
<apeiros>
they start to exist on first assignment.
<jrich523>
oh man, what about first read?
<apeiros>
and if they don't exist, reading them evaluates to nil.
<apeiros>
(and causes a warning)
<jrich523>
oh... hmm
Azure|dc has joined #ruby
<cthulchu>
will an empty array cast into false?
<apeiros>
there's no casting in ruby :)
<cthulchu>
implicitly
Azure has quit [Ping timeout: 264 seconds]
<cthulchu>
well I don't know how to call it
<apeiros>
but ruby considers everything except nil/false to be truthy
<cthulchu>
then this doesn't make sense: if event
<apeiros>
so yes, `if []` will go into the branch
<cthulchu>
ok, I'll do the length
Mia has quit [Read error: Connection reset by peer]
<cthulchu>
so 0 is true too?>
<cthulchu>
and ""?
<apeiros>
cthulchu: can event be 'false'?
<apeiros>
yes, yes.
<cthulchu>
I suspect .select will return nil if there's nothing to return
<cthulchu>
let me check
<apeiros>
`if event != nil` is only different from `if event` if event can be false, and that should be treated differently from nil.
<cthulchu>
no
<cthulchu>
it won't
<jrich523>
yes it will :(
<apeiros>
no, select will return an empty array.
<jrich523>
learned that today
<jrich523>
lol
<apeiros>
but in that case, your event != nil was wrong too :)
bambanx has joined #ruby
bambanx has quit [Max SendQ exceeded]
schneider has joined #ruby
<apeiros>
so I guess you want: if !event.empty?
<cthulchu>
yes
<cthulchu>
indeed
bambanx has joined #ruby
bambanx has quit [Max SendQ exceeded]
<cthulchu>
I'll rewrite it to do .length
<apeiros>
we usually prefer .size in ruby. but Array#length is an alias.
<jrich523>
i think size is prefered? i dont know, iread something a couple days back about length/count/size, and it seemed like length was not much loved
<apeiros>
count you should usually only use if you use it with an argument or block. else .size.
<jrich523>
size was flexible in that array count vs str length are both returned for size, but count only returns array size? something like that?
lxsameer has quit [Ping timeout: 256 seconds]
<apeiros>
na, count without arg is also the same as size/length
<apeiros>
but count can take an argument, to count specific things in an array.