<matthewd>
(but minitest's is probably a closer fit for an actual real-world use case)
Pumukel has quit [Ping timeout: 246 seconds]
Murgle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
minimalism has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
xall has joined #ruby
Macaveli has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
xall has quit [Ping timeout: 256 seconds]
hightower3 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
GBrawl has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
ferr1 has joined #ruby
LoneHerm_ has joined #ruby
minimalism has joined #ruby
bayed has joined #ruby
xall has joined #ruby
LoneHerm_ has quit [Ping timeout: 265 seconds]
perniciouscaffei has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
CloCkWeRX has joined #ruby
xall has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
Devalo has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower3 has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeyraof has quit [Quit: This computer has gone to sleep]
hightower2 has quit [Ping timeout: 265 seconds]
pandaant has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
TvL2386 has joined #ruby
hightower2 has joined #ruby
bronson has joined #ruby
b00tcat has joined #ruby
xall has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
<b00tcat>
Hi, I have a big Gemfile in a project, and if I try to execute `bundle install` on that directory Bundler will complain saying that the latest version of the Nokogiri gem requires Ruby >=2.1.0
<b00tcat>
is there any way to know which gem has nokogiri as a dependency?
<b00tcat>
so I can downgrade it? I really can't upgrade Ruby on this server
bronson has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 256 seconds]
aupadhye has joined #ruby
<jhass>
I usually read the Gemfile.lock
yfeldblum has quit [Remote host closed the connection]
<dminuoso>
b00tcat: "gem dependency"
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<dminuoso>
b00tcat: And the latest version of nokogiri has that requirement indeed.
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<b00tcat>
dminuoso: `gem dependency` will only give me output of the currently installed gems no? if it's not installed (only on the Gemfile) does this apply?
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kassav has quit [Quit: kassav]
kassav has joined #ruby
<zenspider>
b00tcat: run `gem dep --help`
Ben_1 has joined #ruby
<zenspider>
b00tcat: in your case tho you can do `bundle lock` (I think?) to generate the Gemfile.lock w/o installing. then you can find it. I think it is newer rails
<Ben_1>
hi, I'm using rvm to install ruby. It want sudo permissions to update some stuff. When I disable autolibs it works without sudo but then openssl is not working in ruby and I can't install any gem. Someone an idea how to solve that without granting sudo permissions?
muuse has quit [Ping timeout: 250 seconds]
GBrawl has quit [Remote host closed the connection]
<zenspider>
Ben_1: did you google rvm sudo ?
Macaveli has quit [Read error: Connection reset by peer]
<b00tcat>
thanks a lot zenspider, dminuoso and jhass by generating the lockfile I can hack things around a little bit :)
<zenspider>
b00tcat: n/p
rgiscard has joined #ruby
<zenspider>
Ben_1: also looks like you can just do the autolibs step separately with sudo and the rest w/o
<zenspider>
wow rvm does WAAAY too much
<zenspider>
no wonder it is 20k lines of bash
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 265 seconds]
<matthewd>
b00tcat: You should be able to just specify `gem 'nokogiri', '< 1.7'` in your Gemfile, and bundler will figure out what else it has to downgrade to implement that
<Ben_1>
zenspider: how can I do the autolibs stuff seperately?
<b00tcat>
matthewd: huh I didn't think of that, thanks!
<matthewd>
I thought latest bundler had learned to do that automatically when a gem needed a newer version of ruby, but I seem to have imagined it :/
pandaant has quit [Remote host closed the connection]
svkurowski has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
svkurowski has joined #ruby
hightower3 has joined #ruby
Fernando-Basso has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
bronson has joined #ruby
Jackneill has quit [Ping timeout: 265 seconds]
Jackneill_ has joined #ruby
icbm has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
frozengeek has joined #ruby
spectrum has quit [Ping timeout: 250 seconds]
iogf has quit [Remote host closed the connection]
pandaant has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
xall has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
Gasher has joined #ruby
juanda has joined #ruby
Dimik has quit []
xall has quit [Ping timeout: 258 seconds]
juanda has quit [Client Quit]
juanda has joined #ruby
juanda has quit [Client Quit]
juanda has joined #ruby
marr has joined #ruby
eggshke has quit []
zipace has joined #ruby
juanda has quit [Client Quit]
skweek has quit [Ping timeout: 265 seconds]
hightower2 has joined #ruby
mrwn has quit [Remote host closed the connection]
Jackneill_ has quit [Ping timeout: 246 seconds]
skydiver has joined #ruby
sepp2k has joined #ruby
astrobunny has quit [Remote host closed the connection]
hightower3 has joined #ruby
xall has joined #ruby
charliesome has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
charliesome has quit [Client Quit]
hightower3 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
hightower2 has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
nowz has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
nankyokusei has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
tvw has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
enyo has joined #ruby
xall has joined #ruby
ruid_ has joined #ruby
synthroid has joined #ruby
rwb has quit [Ping timeout: 256 seconds]
rgiscard has quit [Quit: Gone fishing]
aef has quit [Remote host closed the connection]
skweek has joined #ruby
xall has quit [Ping timeout: 248 seconds]
Jackneill has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
tyang has joined #ruby
LoneHerm_ has joined #ruby
tobiasvl has quit [Quit: Migrate to new desktop]
jenrzzz has quit [Ping timeout: 265 seconds]
stamina has joined #ruby
asdfqwer has quit []
ytti has quit [Ping timeout: 260 seconds]
Sugar_Data_ has joined #ruby
bronson has joined #ruby
LoneHerm_ has quit [Ping timeout: 264 seconds]
e1z0_ has joined #ruby
* manveru
prefers nix/nix-shell :)
bronson has quit [Ping timeout: 268 seconds]
xall has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 260 seconds]
UserJosh has joined #ruby
Pumukel has joined #ruby
sdothum has joined #ruby
SpiffTR has quit [Quit: Leaving.]
roshanavand__ has quit [Ping timeout: 250 seconds]
jshjsh has quit [Ping timeout: 265 seconds]
ruid_ has quit [Ping timeout: 265 seconds]
ytti has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
kus has joined #ruby
Madper|hearse has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
skweek has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
Fernando-Basso has joined #ruby
xall has joined #ruby
dionysus69 has joined #ruby
Devalo has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 250 seconds]
Jackneill_ has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
symm- has quit [Ping timeout: 248 seconds]
symm has joined #ruby
machinewar has quit []
xall has quit [Ping timeout: 268 seconds]
nadir|mobile has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
kus has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
csk has joined #ruby
pandaant has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
rwb has joined #ruby
Devalo has joined #ruby
sepp2k1 has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
synthroi_ has joined #ruby
dubing has left #ruby [#ruby]
shinnya has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
xall has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
ramortegui has joined #ruby
xen0fon has quit [Quit: xen0fon]
sdwrage has joined #ruby
beilabs_ has quit [Remote host closed the connection]
iMadper has joined #ruby
iMadper has quit [Changing host]
iMadper has joined #ruby
Devalo has quit [Remote host closed the connection]
jenrzzz has joined #ruby
xall has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
beilabs has joined #ruby
LoneHermit has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpiffTR has quit [Quit: Leaving.]
Jackneill_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
SpiffTR has joined #ruby
e1z0_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nadir|mobile has joined #ruby
bronson has joined #ruby
synthroid has joined #ruby
kus has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Ping timeout: 260 seconds]
synthroi_ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 258 seconds]
zerun0 has joined #ruby
frozengeek has quit [Quit: frozengeek]
colegatron has quit [Read error: Connection reset by peer]
xall has joined #ruby
xen0fon has joined #ruby
xall has quit [Ping timeout: 258 seconds]
roshanavand__ has joined #ruby
Jackneill_ has joined #ruby
Pumukel has joined #ruby
SpiffTR has quit [Quit: Leaving.]
cdg has quit [Remote host closed the connection]
<DefV>
I often have the case that I want to extend collections with some functionality. for example adding a `default` method to an array of hashes that checks some hash value and returns one. What's best practice to do this, create a MyCustomArray subclass of array for this (which I often think is a bit much work / finding a relevant name is hard), create an array of which I extend the eigenklass inline (which feels hacky), create a convencience method that does that f
DigitalNomad has joined #ruby
<Papierkorb>
DefV: I like refinements
cyphase has quit [Ping timeout: 250 seconds]
<dminuoso>
Everybody likes refinements, but nobody sues them.
saslam has joined #ruby
<DefV>
I'll sue refinements if they drive me over.
<dminuoso>
That's the consensus on every single talk about refinements that I heard on every RubyCon video I watched.
<Papierkorb>
I do. If everyone else wants to miss out on them that's their problem dminuoso
<dminuoso>
"Great, but they are not usable enough"
<dminuoso>
Papierkorb: They are too tricky to use sadly.
<dminuoso>
:|
<Papierkorb>
They're a bit finicky, I wish you could inject them into a eigenclass if you wanted to, so that sucks
xall has joined #ruby
<dminuoso>
DefV: But yeah, I would mixin custom features into the singleton class of the array like Papierkorb suggested.
<Papierkorb>
But it still beats monkey patching, fearing that the next gem I use blows up a month later cause it also chose to monkey patch a vital class (Gosh, please DONT monkey patch ruby classes in your gem!)
<dminuoso>
Its not intrusive and gets the job done
Pumukel has quit [Ping timeout: 260 seconds]
<dminuoso>
Papierkorb: It's a language design issue rather.
<dminuoso>
If we had a way to seal classes it would be fine.
<dminuoso>
It would let you reason about them.
<dminuoso>
But right now even if you are the author of a module, you can't reason about your own code, because any foreign code can monkey patch yours.
<Papierkorb>
dminuoso, DefV: You can have both btw. Put those methods into a module. You can extend that module into the eigenclass and include it into a refinement's refine(T){} block, so you can use both with minimal boilerplate
<Papierkorb>
It's trivial to make that into a full blown monkey patch if you really have to
cyphase has joined #ruby
nowhere_man has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
marr has quit [Ping timeout: 264 seconds]
saslam has quit [Ping timeout: 252 seconds]
d34th4ck3r has joined #ruby
Devalo has joined #ruby
DLSteve has joined #ruby
pragmaticus has joined #ruby
a143753 has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
jgt has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
icbm has quit [Quit: Leaving]
blackbom1 has joined #ruby
jhack has joined #ruby
Devalo has quit [Remote host closed the connection]
harfangk has joined #ruby
ruby-lang755 has joined #ruby
csk has quit [Quit: ZZZzzz…]
newbie1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus70 has joined #ruby
csk has joined #ruby
ruby-lang755 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
jenrzzz has quit [Ping timeout: 258 seconds]
ferr1 has quit [Quit: WeeChat 1.6]
dionysus69 has quit [Ping timeout: 248 seconds]
rgiscard has joined #ruby
rgiscard has quit [Client Quit]
bronson has joined #ruby
agent_white has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
lmc has joined #ruby
Guest88 has joined #ruby
synthroi_ has joined #ruby
milardovich has joined #ruby
JeanCarloMachado has joined #ruby
doubleemms has joined #ruby
synthroid has quit [Ping timeout: 258 seconds]
walterheck has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
Jackneill_ has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
kus has quit [Quit: Konversation terminated!]
dionysus69 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
SpiffTR has quit [Quit: Leaving.]
dionysus69 has joined #ruby
nettoweb has joined #ruby
_sfiguser has joined #ruby
e1z0_ has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
Jackneill_ has joined #ruby
dviola has joined #ruby
stamina has quit [Quit: WeeChat 1.6]
emilkarl has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
nettoweb1 has joined #ruby
pytuger has quit [Ping timeout: 268 seconds]
brendan- has joined #ruby
cratchet311 has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
haylon has joined #ruby
synthroi_ has quit [Remote host closed the connection]
nettoweb1 has quit [Ping timeout: 248 seconds]
m1911 has joined #ruby
tvon has joined #ruby
nettoweb has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<help_me>
havenwood: is there anyway to remove the the \n that each value has due to the line breaks?
<havenwood>
help_me: In Ruby 2.4 that'd be `File.readlines(path, chomp: true)` or you could `File.readlines(path).map(&:chomp)` or `File.read(path).split("\n")`
<elomatreb>
help_me: String#chomp removes trailing newlines and Hash#transform_values may be useful too
cyberarm has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Remote host closed the connection]
Rr4sT has joined #ruby
ndrei has joined #ruby
SpiffTR has quit [Quit: Leaving.]
h1fuelcell has quit [Remote host closed the connection]
dar123 has joined #ruby
h1fuelcell has joined #ruby
<help_me>
thanks guys
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
bilal80 has joined #ruby
csk has quit [Quit: ZZZzzz…]
ruid_ has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
username_ has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
username_ has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
fullstack has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
dar123 has quit [Ping timeout: 258 seconds]
<kspencer>
trying to write an a gem for an API, and I know it hasn't been made yet, because the API itself just came into being. I was wondering if anyone knew of another API that was quite simple and had a package, so i could try and 'whip' one up for the API I'm working with, considering I've never really dwelled this deep
nowhere_man has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
fullstack has joined #ruby
ndrei has quit [Quit: Lost terminal]
symm has quit [Quit: Leaving...]
troys has joined #ruby
symm- has joined #ruby
Devalo has joined #ruby
<haylon>
What kind of API are you looking to do kspencer?
xall has quit [Ping timeout: 258 seconds]
DigitalNomad has quit [Ping timeout: 260 seconds]
<haylon>
REST, SOAP, RPC, just a regular RubyGem?
<kspencer>
haylon, its a POST API with JSON output, I honestly don't know what you'd call it
<haylon>
Is it sometyhing you expect to use over the web?
<kspencer>
yes
<kspencer>
its grabbing from a website I moderate and have developer access of
xall has joined #ruby
<kspencer>
if web meaning browser no, but just through 'curl' like requests using httparty or similar yes
<elomatreb>
I'd think if I really needed a gem for that. Is the effort of maintaining it worth the (not guaranteed) easier use you get from it compared to just using it directly?
<haylon>
You'll be using REST most likely. What I would suggest doign is reading into the RPC, REST, SOAP API methodolgies
<elomatreb>
(Directly as in speaking HTTP manually in your code=
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kspencer>
so you would rather I just run httparty requests through my functions and return that, correct?
<kspencer>
s/functions/methods/
synthroi_ has joined #ruby
kang0 has joined #ruby
symm- has quit [Quit: Leaving...]
<haylon>
kspencer if you're just interacting with something, yes, unless if you're buidling your own API do serve some purpose
<elomatreb>
kspencer: I'm not saying this is true in all scenarios, but for simple to medium-complexity APIs it's just as much work looking up how to use a gem as just looking up how to use net/http (or w/e) to call it directly
centrx has quit []
<kspencer>
well, haylon or elomatreb, do you mind if I pm so I can get more in depth without giving out more private information about the API (source and such that I want to keep under wraps)
<haylon>
I see no problem
<haylon>
I will be in and out as it is lunch time here
<elomatreb>
Not really, but I can't guarantee I'll be here for too long
synthroid has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
polysics_ has joined #ruby
catphish has joined #ruby
marr has joined #ruby
duderonomy has quit [Client Quit]
polysic__ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
oaklndr1 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jgt has quit [Ping timeout: 260 seconds]
Tempesta_ has joined #ruby
amclain has joined #ruby
nettoweb has joined #ruby
polysics_ has quit [Ping timeout: 268 seconds]
nettoweb has quit [Client Quit]
symm- has joined #ruby
jgt has joined #ruby
bronson has joined #ruby
Tempesta has quit [Ping timeout: 265 seconds]
triangles has joined #ruby
Couch has quit [Ping timeout: 265 seconds]
Devalo has quit [Remote host closed the connection]
polysic__ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Helheim has quit [K-Lined]
yfeldblum has joined #ruby
Macaveli has joined #ruby
beilabs_ has joined #ruby
xall has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
beilabs has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
Macaveli_ has joined #ruby
synthroid has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
b00tcat has quit [Quit: WeeChat 1.6]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
Macaveli has quit [Ping timeout: 256 seconds]
synthroi_ has quit [Ping timeout: 258 seconds]
Macaveli_ has quit [Client Quit]
enilsen16 has joined #ruby
adbjesus has quit [Quit: adbjesus]
neoncortex has joined #ruby
enilsen16 has quit [Client Quit]
ResidentBiscuit has quit [Remote host closed the connection]
csk has joined #ruby
<neoncortex>
just a quick question: there is some requeriment for grab output of shell commands? for example if i do val = %x[ls], then puts val, it's ok, but it does not work with xgamma and i don't see why
h1fuelcell has joined #ruby
blackbom1 has quit [Ping timeout: 264 seconds]
<elomatreb>
neoncortex: It appears xgamma outputs to stderr, read up on how to redirect stderr to stdout in your shell
synthroid has quit []
<neoncortex>
elomatreb: oh i see
<neoncortex>
i totally forgot about stderr, thanks
<elomatreb>
In bash (and bash-likes) it's "2>&1"
dionysus69 has joined #ruby
matp has quit [Read error: Connection reset by peer]
<neoncortex>
elomatreb: yes, that's it
h1fuelcell has quit [Ping timeout: 248 seconds]
Fernando-Basso has quit [Remote host closed the connection]
matp has joined #ruby
triangles has quit [Quit: Leaving]
enilsen16 has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Cavallari has joined #ruby
<Cavallari>
Hi, I am new to ruby, and rails too... I've configured passenger with apache on a rails app, but when I try to execute the passenger gives me this error:
<Cavallari>
*** ERROR ***: Cannot execute /usr/bin/ruby: No such file or directory (2)
<Cavallari>
How can I fix it?
testuser1 has joined #ruby
csk has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
bluOxigen has joined #ruby
reverberations has joined #ruby
blackbom1 has joined #ruby
pilne has joined #ruby
SpiffTR has joined #ruby
csk has joined #ruby
polysics has joined #ruby
chouhoulis has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
perniciouscaffei has joined #ruby
ruby780 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
testuser1 has quit [Quit: Leaving.]
bocaneri has quit [Remote host closed the connection]
cratchet311 has joined #ruby
cyberarm has joined #ruby
SpiffTR has quit [Quit: Leaving.]
[Butch] has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
lenwood has joined #ruby
duderonomy has joined #ruby
skydiver has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Excess Flood]
d34th4ck3r has quit [Quit: d34th4ck3r]
nettoweb has quit [Ping timeout: 258 seconds]
Lord_of_Life has joined #ruby
saslam has joined #ruby
milardovich has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
saslam has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<neoncortex>
also i have a curiosity: did someone tried already to write a window manager in Ruby?
pawnbox has quit [Remote host closed the connection]
Devalo has joined #ruby
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
tubuliferous has joined #ruby
Pumukel has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
JoshS has joined #ruby
UserJosh has quit [Ping timeout: 250 seconds]
loechel has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<catphish>
neoncortex: i think i did it once, but i totally forget the API :)
Pumukel has quit [Ping timeout: 260 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
<neoncortex>
catphish: oh =(
djbkd has joined #ruby
<neoncortex>
but nice anyway, i'm thinking in try, just for the trip
<help_me>
hey, I'm trying to create permutations of a string and push the permutations to an array
<help_me>
since the amount of permutations is n! it can be really slow
<help_me>
is there anyway I can make ruby do this faster?
<catphish>
neoncortex: go for it, ruby has X11 bindings, so it should be possible
lenwood has joined #ruby
<catphish>
neoncortex: you'll run into the usual problem of all the documentation and examples assuming you use C++ :)
<neoncortex>
catphish: i'm getting used to poor documentation xD
benlieb has joined #ruby
loechel has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
<help_me>
how would I use chunking for what I'm trying to do
<help_me>
I find the documentation hard to apply to what I wanna do
<catphish>
help_me: i think you need to be more specific, do you have an example if your code?
<help_me>
catphish: so I have this to generate the permutations
<help_me>
and I'm just trying to figure it how to use .chunk or something similar to get it to run quicker
benlieb has quit [Client Quit]
xall has joined #ruby
cyberarm has quit []
<elomatreb>
help_me: If I'm not mistaken, you could multithread this quite easily, generating all permutations of a certain length on their own
SpiffTR has joined #ruby
ponga has quit []
<help_me>
thanks elomatreb I'll have a look
<catphish>
multthreading is never easy :)
<catphish>
i can't think of any obvious way to speed this up :(
prestorium has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
<manveru>
neoncortex: wmii was mostly in ruby if i remember right
<manveru>
or at least the config was in ruby
<neoncortex>
manveru: i remember wmii as C, but i can be totally wrong
kang0 has left #ruby ["Quit"]
xall has quit [Ping timeout: 258 seconds]
<elomatreb>
catphish: I was thinking to generate all arrays of permutations of length n in their own thread, with n from 0 to the amount of chars in the array. Then join them and perform the unique
<elomatreb>
I don't actually know if Array#permutations will be faster if passed a parameter
<manveru>
i have wmii and subtle in mind... but there's probably no pure ruby wm that only uses FFI or the like...
<catphish>
elomatreb: there's no symmetric execution of threads in MRI, so making threads is usually pointless from a performance standpoint
<catphish>
*simultaneous execution
jhack has quit [Quit: jhack]
<elomatreb>
Ugh, you're right
<elomatreb>
"It's easy! Just write a native extension!"
<catphish>
well, threads execute simultaneously, but almost all operations require a global lock :(
<catphish>
lol yeah
nankyokusei has joined #ruby
milardovich has joined #ruby
enyo has joined #ruby
<catphish>
a nice simple multithreaded extension ;)
<elomatreb>
If C wasn't such a hostile language I'd actually be somewhat willing to do that :(
<manveru>
elomatreb: you can use BEAM :)
<elomatreb>
BEAM? Googling "ruby beam" only yields laser products :(
ResidentBiscuit has joined #ruby
<manveru>
the erlang vm
<manveru>
or rubinius or jruby
LuckyABA has joined #ruby
milardovich has quit [Remote host closed the connection]
tildes has joined #ruby
milardovich has joined #ruby
jhack has joined #ruby
LuckyABA has quit [Client Quit]
enyo has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
ruby780 has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
millerti has joined #ruby
symm- has quit [Quit: Leaving...]
polysics has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
shayan_ has quit [Quit: shayan_]
xall has joined #ruby
shayan_ has joined #ruby
lenwood has joined #ruby
nankyokusei has joined #ruby
xall has quit [Ping timeout: 258 seconds]
mdw has joined #ruby
koldbrutality has joined #ruby
shayan_ has quit [Quit: shayan_]
BrianJ has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
charliesome has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
nadir|mobile has quit [Quit: Connection closed for inactivity]
polysics_ has joined #ruby
jgt has quit [Read error: No route to host]
jottr has joined #ruby
emilkarl has joined #ruby
dionysus70 has joined #ruby
polysic__ has joined #ruby
machinewar has joined #ruby
polysics has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
Gasher has quit [Ping timeout: 248 seconds]
polysics_ has quit [Ping timeout: 256 seconds]
tvon has quit [Remote host closed the connection]
pragmaticus has quit [Remote host closed the connection]
cgibsonmm has joined #ruby
naprimer_2 has joined #ruby
nowhere_man has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer has quit [Ping timeout: 258 seconds]
cyphase has quit [Ping timeout: 258 seconds]
<cgibsonmm>
hello, I have a question about passing an unknown amount of arguments to a method.
troys is now known as troys_
<machinewar>
you can use *args_name
<machinewar>
def my_method(*args)
<machinewar>
and you can access them as an array
<apeiros>
and you can always have an array arg directly (sometimes that makes more sense than splatting)
mscs has quit [Quit: rebooting]
<cgibsonmm>
I understand that my issue is they are being passed into the method like this_method((1).(2).(3))
Gasher has joined #ruby
<machinewar>
hm I'm not sure I understand, are those chained method calls?
cyphase has joined #ruby
<apeiros>
cgibsonmm: you realize that . is not separating arguments, yes?
<cgibsonmm>
and there is no way for me to change the way the items are passed
<machinewar>
cgibsonmm: linking a gist might help get a better understanding of what you're experiencing
<cgibsonmm>
okay than k you i will try that
saslam has quit [Ping timeout: 260 seconds]
<apeiros>
yes, real code please. not broken fake code.
gusrub has quit [Remote host closed the connection]
bronson has joined #ruby
Lord_of_Life has quit [Excess Flood]
synaps3 has joined #ruby
Lord_of_Life has joined #ruby
x00r__ has quit [Quit: Leaving]
koldbrutality has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
JeanCarloMachado has joined #ruby
jhack has quit [Quit: jhack]
Azure has joined #ruby
xall has joined #ruby
blackbom1 has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
jottr has joined #ruby
charliesome has joined #ruby
jhack has joined #ruby
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvon has joined #ruby
ResidentBiscuit has joined #ruby
emilkarl has quit [Quit: emilkarl]
mdw has quit [Quit: Sleeping Zzzzz]
xall has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 245 seconds]
<Radar>
^
jgt has joined #ruby
flying has quit []
JeanCarloMachado has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 258 seconds]
lmc has quit [Read error: Connection reset by peer]
<al2o3-cr>
how to get bit rep of a float?
rwb has quit [Ping timeout: 252 seconds]
cyphase has quit [Ping timeout: 248 seconds]
<al2o3-cr>
ah, nvm
lmc has joined #ruby
Azure has joined #ruby
emilkarl has joined #ruby
koldbrutality has joined #ruby
Azure has quit [Client Quit]
jgt has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
cyphase has joined #ruby
mdw has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
<al2o3-cr>
how did i never know about SymbolHash
rgiscard has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
rgiscard has quit [Remote host closed the connection]
symm- has joined #ruby
h1fuelcell has joined #ruby
machinewar has quit []
skweek has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Excess Flood]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
zapata has quit [Ping timeout: 240 seconds]
splud has joined #ruby
blackbom1 has joined #ruby
Lord_of_Life has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has joined #ruby
BrianJ has joined #ruby
jhack has quit [Quit: jhack]
gusrub has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
<apeiros>
al2o3-cr: by it not being core/stdlib?
<al2o3-cr>
apeiros: yard
<apeiros>
that's where it showed up for me too, yes
xall has quit [Ping timeout: 245 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
shayan_ has joined #ruby
SpiffTR has joined #ruby
Foow has joined #ruby
ResidentBiscuit has joined #ruby
polysic__ has quit [Remote host closed the connection]
polysics has joined #ruby
<al2o3-cr>
i'd just never come across it before while rifling through yard :)
<al2o3-cr>
i should of said
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
rgiscard has joined #ruby
polysics has quit [Read error: Connection reset by peer]
aidalgol has joined #ruby
polysics has joined #ruby
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
rgiscard has quit [Quit: Gone fishing]
Foow has quit [Quit: Page closed]
polysics_ has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
shayan_ has quit [Quit: shayan_]
SpiffTR1 has joined #ruby
pwnd_nsfw` has joined #ruby
cgibsonmm has quit []
SpiffTR has quit [Ping timeout: 258 seconds]
cgibsonmm has joined #ruby
bronson has joined #ruby
cgibsonmm has quit [Client Quit]
Robtop__ has quit [Ping timeout: 268 seconds]
zapata has joined #ruby
rgiscard has joined #ruby
Pumukel has joined #ruby
charliesome has joined #ruby
Azure has joined #ruby
polishdub has quit [Quit: Leaving]
bronson has quit [Ping timeout: 268 seconds]
ramortegui has quit [Quit: Ex-Chat]
enyo has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
rgiscard has quit [Quit: Gone fishing]
jottr has joined #ruby
xall has joined #ruby
rgiscard has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ruid_ has joined #ruby
xall has quit [Ping timeout: 258 seconds]
Guest88 has joined #ruby
Kero has quit [Quit: leaving]
jhack has quit [Quit: jhack]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synaps3 has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
enilsen16 has joined #ruby
yfeldblum has quit [Quit: Leaving...]
jgt has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jgt has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
h1fuelcell has joined #ruby
Kero has joined #ruby
stick has joined #ruby
nankyokusei has joined #ruby
qwertrandom has joined #ruby
qwertrandom has left #ruby [#ruby]
vaxxon has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
<vaxxon>
Hi! I have an array of integers. What would be the most efficient way to increase the first n elements by 1?
nankyokusei has quit [Ping timeout: 258 seconds]
symm- has quit [Quit: Leaving...]
<apeiros>
vaxxon: what have you tried so far?
jgt has quit [Ping timeout: 268 seconds]
<vaxxon>
I tried creating an array of 1s of length n, then zipping it against the original array. That got me, say, [[5,1], [5,1], [5,1], [5,nil], [5,nil]] and left me to figure out how to sum each element. I can probably make that work, but this seems really stupid.
<apeiros>
map
<vaxxon>
Not a student, btw. Just teaching myself the language, and these are the kinds of judo exercises that force me to learn how to think in the language. So far... not getting it.
<apeiros>
"most efficient" != "thinking in the language"
<apeiros>
"most idiomatic" is more like it
<vaxxon>
I can't disagree with you.
<apeiros>
not sure what would be the most idiomatic. I'd probably go with `n.times do |i| ary[i] += 1 end`
<vaxxon>
A language like python, I'd approach this by trying to find the fastest way to do it, the shortest (keystroke) way to do it, and then the most pythonic way to do it. Then try to do it the pythonic way.
anjen has joined #ruby
<vaxxon>
Right now I'm at the 'can you make it work at all?' milestone. ;) I see.
montanonic has joined #ruby
<vaxxon>
I take it that zipping and mapping isn't really 'thinking ruby', then. I'll screw with what you just gave me.
gusrub has joined #ruby
<Radar>
For bonus points: come up with a solution that does not mutate the original array.
ledestin has joined #ruby
<vaxxon>
Radar: Good idea.
<apeiros>
Radar: is dup considered cheating? :D
<Radar>
apeiros: There was only one rule ;)
<vaxxon>
I'll play with that. I don't really see what makes your solution more idiomatic yet. So far I'm just not 'getting' ruby. Actually if you don't mind, I've got a potentially volatile question. ;)
<Radar>
We like volatile questions.
<vaxxon>
But I promise I mean it with 100% intellectual curiosity. I used perl 'back in the day'. Then I switched to python and found it works really well for most of what I used perl for. So... ruby. I'm learning it because it's useful for ruby on rails, and for puppet, and what's one more language? But I am having trouble understanding what it excels at, linguistically.
<apeiros>
vaxxon: there are "clever" solutions. but those aren't necessarily better or more idiomatic
ruid_ has quit [Ping timeout: 252 seconds]
<apeiros>
ruby is pretty close to python and perl. shouldn't be difficult to pick it up.
<vaxxon>
So far, I feel like it has the confusing syntax of perl, but some of the ideas from python. I'm trying to understand where it shines.
<vaxxon>
So... that's not a loaded question, and I'm not asking with some kind of an agenda or anything. Figure I may as well ask the experts: OK. Why ruby?
<apeiros>
I'd say ruby's syntax is a vast improvement over python wrt readability :)