beilabs has quit [Remote host closed the connection]
skalfyfan has joined #ruby
statelesscode has joined #ruby
xkapastel has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoMan2440 has joined #ruby
jeanlinux has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
GodFather__ has joined #ruby
neanderslob has joined #ruby
rodfersou has joined #ruby
jeanlinux has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 1.5]
blaxter has quit [Read error: Connection reset by peer]
malconis has joined #ruby
infernix has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
<ramfjord_>
What's up all. I'm looking that the connection_pool library, and I've noticed that if I check out a connection in Thread A, and A terminates before I call pool.checkin (as many times as I called checkout), then that connection will no longer be available for checking out in Thread B. Is there a way you can register an event to happen when a thread is joined?
tristanp has joined #ruby
tristanp_ has joined #ruby
<ramfjord_>
probably not eh... There might be other ways to do this, but the only ones I can see involve mutexes on class variables
frem_ has quit [Quit: Connection closed for inactivity]
malconis has quit [Read error: Connection reset by peer]
gmas has quit [Ping timeout: 252 seconds]
aaeron has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
aaeron has quit [Client Quit]
gmas has joined #ruby
infernix has joined #ruby
rodfersou is now known as rodfersou|afk
rcvalle has quit [Quit: rcvalle]
pabloh has joined #ruby
ReK2 has quit [Remote host closed the connection]
pawnbox has joined #ruby
jud has quit [Quit: Leaving]
nankyokusei has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
mleung has quit [Quit: mleung]
n_blownapart has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
ReK2 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 272 seconds]
jancel has joined #ruby
Dios has joined #ruby
centrx has joined #ruby
paul__ has quit [Quit: Konversation terminated!]
Dios has quit [Max SendQ exceeded]
skolman_ has quit [Ping timeout: 244 seconds]
Dios has joined #ruby
SilverKey has joined #ruby
ropeney has joined #ruby
jrafanie has joined #ruby
Dios has quit [Max SendQ exceeded]
centrx has quit [Client Quit]
Dios has joined #ruby
pabloh has quit [Read error: Connection reset by peer]
centrx has joined #ruby
youch has joined #ruby
Dios has quit [Max SendQ exceeded]
Dios has joined #ruby
mib_mib has joined #ruby
hutch34_ has joined #ruby
eGGshke has joined #ruby
<mib_mib>
hi all - i am generating a large json object and writing it to a file - however, this approach seems like it wont scale since i have to have the entire json blob in memory and write it all at once - i was thinking about instead creating a mix of csv/json, i.e. creating one json field per line in a file - is this not recommended?
<mib_mib>
this assumes there are no newlines inside of each json
bronson has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
n_blownapart has quit []
tristanp has joined #ruby
hobodave has joined #ruby
bronson_ has quit [Ping timeout: 244 seconds]
eGGshke has quit [Ping timeout: 260 seconds]
hobodave has quit [Max SendQ exceeded]
hutch34_ has quit [Ping timeout: 246 seconds]
johnmilton has quit [Ping timeout: 264 seconds]
pabloh has joined #ruby
hobodave has joined #ruby
s2013 has joined #ruby
hobodave has quit [Max SendQ exceeded]
sphex has quit [Ping timeout: 260 seconds]
hobodave has joined #ruby
harushimo has joined #ruby
daftdolphin has quit [Ping timeout: 252 seconds]
<harushimo>
i'm sorry. I don't mean to bother anyone on the ruby channel
<harushimo>
I have a question about jekyll
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<harushimo>
i did post the question in there
<harushimo>
I mean in there channel
<harushimo>
i think it has to do with my ruby but I just want to make sure
<A124>
And I have to agree on the cool factor. There are several very primising languages, but apart specific things and when you get two programmers in case one dies, not much.
pabloh has quit [Client Quit]
pawnbox has joined #ruby
youch has quit [Quit: Konversation terminated!]
youch has joined #ruby
youch has quit [Client Quit]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
tristanp_ has joined #ruby
youch has joined #ruby
jancel has quit [Remote host closed the connection]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skalfyfan has joined #ruby
Dios|away is now known as Dios
moeabdol has joined #ruby
skalfyfan has quit [Client Quit]
skalfyfan has joined #ruby
tristanp has joined #ruby
nettoweb has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
hayden__ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
hayden__ has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
bronson has joined #ruby
kgrz has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has quit [Quit: Leaving]
hutch34_ has joined #ruby
thoraxe has quit [Ping timeout: 246 seconds]
Dios is now known as Dios|away
Dios|away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dios has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
razer_ has joined #ruby
hutch34_ has quit [Ping timeout: 272 seconds]
blackmesa has quit [Quit: WeeChat 1.5]
phutchins has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
markfletcher has joined #ruby
<razer_>
Shouldn't "ruby --verbose" do the same thing as "ruby -v" ?
jeanlinux has joined #ruby
<Radar>
razer_: no
<Radar>
ruby -v outputs the version
<Radar>
razer_: and apparently it turns on verbose mode too
<Radar>
-v print version number, then turn on verbose mode
jenrzzz has joined #ruby
<Radar>
from ruby -h
<razer_>
I know -v stands for verbose, but people think it stand for version because in verbose mode the version is also ouput and --version is the version command.
<razer_>
I know other programs you can type -v or --verbose so I tried --verbose and it didn't work.
cephalosporin has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 244 seconds]
zast has left #ruby [#ruby]
dimasg has quit [Ping timeout: 244 seconds]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
cgfbee has joined #ruby
soulisson has joined #ruby
<soulisson>
Hi, I'm a little bit rusty on the concept of exceptions. My understanding of an exception is it's an exceptional situation situation that occurred during program execution and it requires handling
<soulisson>
is that correct?
Cohedrin has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<Radar>
it doesn't require handling necessarily. The point of an exception is to show that indeed something exceptional happened
<soulisson>
Radar, ok, so an exception is an exceptional situation that occurred during run time?
<Radar>
yes
<soulisson>
ok, thanks
blingrang has quit [Changing host]
blingrang has joined #ruby
charliesome has joined #ruby
giz|work has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
PaulCapestany has joined #ruby
pabloh has joined #ruby
hutch34_ has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
bobbycvi has quit [Quit: ...]
tristanp_ has joined #ruby
han` has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34_ has quit [Ping timeout: 276 seconds]
soulisson has quit [Changing host]
soulisson has joined #ruby
tjad has quit [Ping timeout: 258 seconds]
tildes_ has quit [Ping timeout: 246 seconds]
tristanp has quit [Ping timeout: 272 seconds]
nerium has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby
okdas_ has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
bronson has joined #ruby
alfie_max15 has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 246 seconds]
tristanp has joined #ruby
kareeoleez has joined #ruby
Macaveli has joined #ruby
alfie_max15 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
jancel has joined #ruby
djbkd has joined #ruby
sneakersec has quit [Read error: Connection reset by peer]
strigonLeader has joined #ruby
bigkevmcd has joined #ruby
duncannz has joined #ruby
pwnd_nsfw` has joined #ruby
Axy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
alfie_max15 has quit [Ping timeout: 260 seconds]
jancel has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 252 seconds]
alfie_max15 has joined #ruby
Guest43 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 272 seconds]
hightower3 has joined #ruby
febuiles has quit [Quit: febuiles]
Guest43 has quit [Client Quit]
lxsameer has joined #ruby
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
siovene has joined #ruby
fenre has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
certainty has joined #ruby
yfeldblum has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<certainty>
moin
pawnbox has quit [Remote host closed the connection]
tristanp has joined #ruby
pabloh has quit [Quit: This computer has gone to sleep]
dimasg has joined #ruby
firstdayonthejob has joined #ruby
pawnbox has joined #ruby
mnrmnaugh has left #ruby ["Leaving"]
codecop has joined #ruby
nhhc has joined #ruby
mnrmnaugh has joined #ruby
n1x-nz has joined #ruby
tristanp_ has joined #ruby
roelof has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
<roelof>
Hello, Am I right that Model.limit(10).order('updated_at desc') gives me the last 10 items that are updated ?
<Radar>
?rails roelof
<ruby[bot]>
roelof: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
dimasg has quit [Ping timeout: 240 seconds]
<roelof>
Radar: oke, I will ask there. Thanks for the help
Billias has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
phredus_ has quit [Remote host closed the connection]
phredus_ has joined #ruby
tristanp has joined #ruby
Billias_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Billias_ is now known as Billias
armyriad has quit [Read error: Connection reset by peer]
tristanp_ has quit [Read error: Connection reset by peer]
conta has joined #ruby
Billias has quit [Read error: Connection reset by peer]
terlar has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
okdas has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 272 seconds]
PaulCapestany has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Billias has joined #ruby
Cohedrin has joined #ruby
Cohedrin has quit [Client Quit]
<dionysus69>
are map and collect identical?
giz|work has joined #ruby
<tgeeky>
>> map.method == collect.method
<ruby[bot]>
tgeeky: # => undefined local variable or method `map' for main:Object ...check link for more (https://eval.in/577375)
alfie_max15 has quit [Ping timeout: 244 seconds]
PaulCape_ has quit [Ping timeout: 272 seconds]
<tgeeky>
dionysus69: look at the source or docs, surely they will tell you
Coral has joined #ruby
alfie_max15 has joined #ruby
Coral is now known as Guest40118
yfeldblum has quit [Ping timeout: 258 seconds]
<dionysus69>
ok thanks tgeeky )
eGGshke has joined #ruby
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
armyriad has joined #ruby
roelof has left #ruby [#ruby]
hutch34_ has joined #ruby
<tgeeky>
dionysus69: the answer is yes, by the way
karmatr0n has quit [Ping timeout: 260 seconds]
eGGshke has quit [Ping timeout: 272 seconds]
terlar has quit [Ping timeout: 244 seconds]
tuelz has joined #ruby
adac has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 276 seconds]
<dionysus69>
tgeeky: yep that was my suspicion :)
tuelz has quit [Ping timeout: 272 seconds]
Dimik has joined #ruby
paradisaeidae has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
certainty has joined #ruby
soulisson has quit [Ping timeout: 252 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
tlaxkit has joined #ruby
nw1 has left #ruby ["WeeChat 1.4"]
tristanp_ has joined #ruby
vondruch_ has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
<jhass>
bsdnoob: you need to answer the question, how did you install ruby, exactly? also how did you install bettercap, exactly? and which command does give you the error, exactly?
<jhass>
why aren't you answering the other questions?
Azure has quit [Ping timeout: 244 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
<dn5>
obviously doesn't need help
<bsdnoob>
jhass: I built it using "gem build bettercap.gemspec"
blackgoat has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
<jhass>
1/3
<jhass>
okay, 2/3
<jhass>
the most important one still left
<bsdnoob>
jhass: I installed it using sudo dnf install ruby-libs
<jhass>
okay
alfiemax has quit [Ping timeout: 264 seconds]
<jhass>
how long ago since you ran gem build bettercap.gemspec; gem install ./bettercap.gem (last part is guessed but something like it must have happened according to your error output)
<jhass>
it looks like your ruby package was upgraded from 2.2 to 2.3 in the meantime
<jhass>
try running sudo gem pristine bettercap
tristanp_ has quit [Ping timeout: 258 seconds]
<bsdnoob>
jhass: I built it quite a long time ago but today I was updated to fedora 24 with all new packages
Azure has quit [Remote host closed the connection]
<jhass>
nothing abnormal there, there was no error output for the sudo gem install network_interface? could you sudo gem uninstall network_interface and then reinstall?
<jomofcw>
I've some ruby related problems installing the latest version of redmine (3.2.2). Doing "bundle install --without development test" echo me an eror about mysql2. So then I follow instruction and perform a "gem install mysql2 -v '0.3.21'". And then I receive a fail result, with tne ERROR : "ERROR: Error installing mysql2: ERROR: Failed to build gem native extension." and then... I srsly don't
<jomofcw>
know what to do now :(.
<jomofcw>
Can you help me please ?
craigp has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<jhass>
bsdnoob: common, try to recognize the pattern
aharlan has quit [Quit: I'm out.]
<bsdnoob>
jhass: sure
<jhass>
bsdnoob: nio4r now
triangles2 has joined #ruby
troulouliou_div2 has joined #ruby
Devalo has quit [Ping timeout: 272 seconds]
<jhass>
jomofcw: only with your full error output in a gist ;)
PaulCapestany has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
arlek has joined #ruby
Xiti` has quit [Quit: Xiti`]
binaryplease has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
<jhass>
that's a curios nokogiri version
<jhass>
no idea why it would pick that
<jhass>
what's your gem -v ?
<jomofcw>
2.2.5 jhass
<jhass>
that's a bit old, another thing you could consider upgrading
<jomofcw>
how to please ? rvm gem get-stable ?
<jhass>
actually, do you have git installed?
<jhass>
oh, using RVM?
<jhass>
rvm rubygems update iirc
workmad3 has joined #ruby
<jomofcw>
Dunno, probably I would say... lemme see.
<jomofcw>
rvm rubygems update iirc > "Installed rubygems 2.2.5 is newer than update provided with installed ruby, skipping installation, use --force to force installation."
startupality has quit [Quit: startupality]
jmignault has joined #ruby
jmignault has quit [Remote host closed the connection]
<jhass>
huh
<jhass>
latest ?
startupality has joined #ruby
<jomofcw>
git version > "Segmentation fault"
<jomofcw>
There seems to be some stuff broken there :/.
tristanp has quit [Read error: Connection reset by peer]
<jhass>
yup
<jomofcw>
jhass you mean "rvm rubygems update latest" ? > "Installed rubygems 2.2.5 is newer than update provided with installed ruby, skipping installation, use --force to force installation."
<jhass>
or just rvm rubygems latest
<jhass>
idk, I really don't use it anymore
<jhass>
and yeah, won't help anyway until your git works
<jomofcw>
rubygems 2.4.8 installed =).
<jomofcw>
Then ? Waiting for next instructions :P.
<jomofcw>
And anyway, I must already say thanks for your time jhass :).
<jomofcw>
Shall I try to perform the gems update again ?
vondruch_ has joined #ruby
hutch34_ has joined #ruby
tuelz has joined #ruby
<jomofcw>
same issue :'(.
<jhass>
yup as said, broken git
<jomofcw>
Yup...
<jomofcw>
Dunno if I shall try to update it...
<jhass>
you can update git but not fix libmysqlclient_r ?
duncannz has quit [Remote host closed the connection]
tlaxkit has joined #ruby
<jomofcw>
jhass dunno what i can do or not in fact... tias ^^.
<jomofcw>
Hm I can't perform a "apt-get update" :/
Devalo has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<jomofcw>
Can't access apt-get at all :/... so I can't upgrade/fix git.
tuelz has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
gnufied has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<hanmac>
pid: checkout Enumerable#map and Array#join
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
k3rn31 has joined #ruby
trista___ has joined #ruby
johnmilton has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
conta has joined #ruby
norc has quit [Quit: Page closed]
tristanp has quit [Ping timeout: 244 seconds]
aadam21 has joined #ruby
arlek has quit [Ping timeout: 252 seconds]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
freerobby has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
codecop has quit [Remote host closed the connection]
Ropeney has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<pld>
hanmac: thanks. i'm using " message.codepoints.map { |c| c.send(operator, offset).chr }.join" now. could i have done it with each_codepoint, too?
Devalo has joined #ruby
Ropeney has quit [Client Quit]
hanmac has quit [Ping timeout: 260 seconds]
Didac has quit [Ping timeout: 260 seconds]
chris2 has quit [Ping timeout: 260 seconds]
PaulCape_ has joined #ruby
evidex has joined #ruby
<jhass>
yes
k3rn31 has joined #ruby
<jhass>
since each_codepoint returns an Enumerator which includes Enumerable
jmignault has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 244 seconds]
hanmac has joined #ruby
Didac has joined #ruby
chris2 has joined #ruby
beilabs has quit [Remote host closed the connection]
GarethAdams has joined #ruby
eGGshke has quit [Quit: Leaving...]
hutch34_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
terlar has joined #ruby
evidex has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 272 seconds]
Blaze_Boy has joined #ruby
charliesome has joined #ruby
m8 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
ferr has joined #ruby
certainty has joined #ruby
karmatr0n has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
duckpupp1 has joined #ruby
tristanp_ has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
hanmac has joined #ruby
tristanp has quit [Ping timeout: 244 seconds]
GinoMan2440_ has quit [Ping timeout: 250 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
tristanp has joined #ruby
PaulCapestany has joined #ruby
davee_ has quit [Ping timeout: 246 seconds]
<jomofcw>
jhass git and library problem fixed by root, installation in progress ;). Thanks for your help =).
PaulCape_ has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 258 seconds]
davedev24 has quit []
ferr has quit [Ping timeout: 240 seconds]
madgen has quit [Read error: Connection reset by peer]
nerium has quit [Quit: nerium]
madgen has joined #ruby
Alazoral has joined #ruby
beilabs has joined #ruby
Ishido has joined #ruby
epistrephein has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
synthroid has joined #ruby
antgel has quit [Ping timeout: 276 seconds]
hiyosi has joined #ruby
antgel has joined #ruby
Coral has joined #ruby
Coral is now known as Guest72929
beilabs has quit [Remote host closed the connection]
moos3 has joined #ruby
mdw has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
giz|work has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
aadam21 has quit [Remote host closed the connection]
dANOKELOFF_ has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
aadam21 has joined #ruby
<jomofcw>
I succeed doing the upgrade. But I'm still stuck on an error web page saying "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.". Is that a redmine message or a Ruby one ?
GinoMan2440 has joined #ruby
GinoMan2440 has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 272 seconds]
ChoiKyuSang has quit [Quit: See ya!]
diegoaguilar has quit [Remote host closed the connection]
beilabs has joined #ruby
jaguarmagenta has joined #ruby
antgel has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
aadam21 has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 276 seconds]
PaulCape_ has joined #ruby
kgrz has joined #ruby
GodFather__ has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
GinoManWorks has joined #ruby
tristanp has joined #ruby
y2mq37 has quit [Quit: Leaving]
lxsameer has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
swills has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
hutch34_ has quit [Ping timeout: 272 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
GBrawl has quit [Quit: (null)]
CJKinni` has joined #ruby
blackgoat has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
beilabs has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
joonty has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
GodFather__ has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
St1gma has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
xkapastel has joined #ruby
deadnull_ has joined #ruby
|2701 has joined #ruby
Devalo has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
the_drow has joined #ruby
Snowy has joined #ruby
<Caerus>
see ya #ruby
Caerus is now known as Caerus|Away
the_drow has quit [Client Quit]
tristanp has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
tristanp has joined #ruby
Devalo has quit [Ping timeout: 272 seconds]
beilabs has joined #ruby
nerium has quit [Quit: nerium]
Guest72929 has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
<jhass>
jomofcw: sort of in between, rails default 500 page. have a look at log/production.log and ask #redmine about it
dimasg has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
<jomofcw>
jhass already done ! It seems to be a passenger problem.
<jomofcw>
jhass and I have a "segmentation fault" too calling some passenger stuff, so I think it's broken as git was.
nando293921 has quit [Ping timeout: 276 seconds]
<jhass>
might be safer to trash the whole system :P
dimasg has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
ramortegui has joined #ruby
<jomofcw>
jhass yea probably :P If I was the root, for sure that's what I've done since start xD.
dimasg has joined #ruby
<jhass>
what's your uname -a? wouldn't surprise me if we're able to make you root...
ferr has joined #ruby
shazaum has joined #ruby
ChiefAlexander has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<jomofcw>
jhass I fixed it ! In fact, it seems that the system doesn't remember wich version of Ruby to use after reboot :/... so "rvm use ruby-2.2.0" make it work now.
hutch34 has joined #ruby
<jhass>
jomofcw: rvm use --default 2.2
<jomofcw>
jhass i'm currently using 2.2.0 not 2.2.4. Shall I upgrade ? If yes, how can I do it easily without losing all the things I just battle with :) ? please.
k3rn31 has quit [Quit: Computer has gone to sleep.]
d0lph1n98 has quit [Remote host closed the connection]
gabrielrios has quit [Ping timeout: 250 seconds]
<jomofcw>
jhass all is OK now ^^ ! 2.3 by default =). Already said but : thanks for your help and your time. Fixed !
edwinvdgraaf has quit [Ping timeout: 272 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Snowy has quit [Remote host closed the connection]
chipotle has joined #ruby
tristanp_ has joined #ruby
Snowy has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
ChiefAlexander has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
fenre has quit [Remote host closed the connection]
hightower2 has joined #ruby
heinrich5991 has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 258 seconds]
axisys_ has quit [Ping timeout: 246 seconds]
TvL2386 has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
mattwashere has joined #ruby
idefine has joined #ruby
tristanp has joined #ruby
last_staff has quit [Quit: last_staff]
karmatr0n has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
aadam21 has joined #ruby
Alazoral has quit [Ping timeout: 252 seconds]
aadam21 has quit [Remote host closed the connection]
aadam21 has joined #ruby
ChiefAlexander has joined #ruby
jrafanie has joined #ruby
bmurt has joined #ruby
swills has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 246 seconds]
freerobby1 has joined #ruby
k3rn31 has joined #ruby
koooge has quit [Quit: Leaving...]
freerobby has joined #ruby
freerobby1 has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
startupality has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
kies has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
craigp_ has quit [Ping timeout: 260 seconds]
ta__ has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
Vlat- has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
mdw has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
heinrich5991 has joined #ruby
JesseH has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 244 seconds]
Sou|cutter has quit [Quit: fnord]
karmatr0n has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
SilverKey has joined #ruby
PaulCape_ has joined #ruby
han` has joined #ruby
tristanp has joined #ruby
ta__ has joined #ruby
ta__ has quit [Remote host closed the connection]
PaulCapestany has quit [Ping timeout: 252 seconds]
ta__ has joined #ruby
han` has quit [Client Quit]
giz|work has quit [Ping timeout: 246 seconds]
woodruffw has quit [Ping timeout: 244 seconds]
han` has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
dopamean_ has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
ta__ has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Blaze_Boy has quit [Ping timeout: 276 seconds]
kent\n has quit [Ping timeout: 244 seconds]
aadam21 has left #ruby [#ruby]
kareeoleez has quit [Remote host closed the connection]
kent\n has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
tristanp_ has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
Snowy has quit [Remote host closed the connection]
kareeoleez has joined #ruby
han` has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
Sou|cutter has joined #ruby
mattwashere has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
mattwashere has joined #ruby
Macaveli has joined #ruby
mr_rich101 has quit [Max SendQ exceeded]
JesseH has joined #ruby
edwinvdgraaf has joined #ruby
mr_rich101 has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
<habitullence>
How to deal with unexpected values? Should I put in a guard or use exceptions? Suggestions...
nadir has joined #ruby
<phutchins>
Expect them and you not be disappointed...
kent\n has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
<habitullence>
Very zen :D
<Vlat->
wrote 3 line according habitullence question, but phutchins answered with 8 words
<phutchins>
:)
kareeoleez has quit [Remote host closed the connection]
Blaze_Boy has joined #ruby
<habitullence>
I might need the eight lines though, wisdom that is beyond my grasp
<habitullence>
:P
<shevy>
it is either beer - or wisdom
<habitullence>
lol
binaryplease1 has joined #ruby
<habitullence>
from great beer, comes great wisdom
<habitullence>
and from great wisdom, comes great beer
<Vlat->
exceptions are for general stuff, like user can't log in, in case of DB connection failure, for example. Guards are for local stuff, like dude forgot @ from his/her email address
Devalo has joined #ruby
<Vlat->
IMHO, of course
<shevy>
habitullence so true
bronson has joined #ruby
cdg has joined #ruby
PaulCapestany has joined #ruby
binaryplease has quit [Ping timeout: 260 seconds]
ryez has joined #ruby
kobain has joined #ruby
<jokke>
hello, i assume someone here uses mac os. could that someone run following command for me and paste the output? openssl enc -h 2>&1 | grep '\-gcm'
kobain has quit [Max SendQ exceeded]
PaulCape_ has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
Devalo has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
nankyokusei has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
beilabs_ has joined #ruby
polishdub has joined #ruby
<habitullence>
Vlat, I see what you're getting at.. I guess it comes down simply to what you consider an exception and where it can be dealt with. If you can deal with it locally, then do so, otherwise you need to throw it up the chain.
<habitullence>
Sounds like a sensible approach
Snowy has joined #ruby
certainty has joined #ruby
binaryplease1 is now known as binaryplease
kobain has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
<Vlat->
habitullence: exception is something big,terrible and loud. like a whole application crash. :) in my own way of thinking.
nankyokusei has quit [Ping timeout: 244 seconds]
dopie has quit [Ping timeout: 260 seconds]
ctp has joined #ruby
<habitullence>
Vlat: sounds right, thanks
kgrz has quit [Ping timeout: 246 seconds]
beilabs_ has quit [Ping timeout: 276 seconds]
vondruch has quit [Ping timeout: 240 seconds]
giz|work has quit [Ping timeout: 272 seconds]
jancel has joined #ruby
Devalo has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister is now known as Kiev
rbennacer has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
rippa has joined #ruby
beilabs has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
tristanp has joined #ruby
skade has joined #ruby
gfvcastro has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
beilabs has quit [Ping timeout: 258 seconds]
deadnull_ has quit [Quit: Bye]
seanzie has joined #ruby
aegis3121 has quit [Ping timeout: 246 seconds]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jefeson has joined #ruby
bruce_lee has joined #ruby
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
aegis3121 has joined #ruby
rkazak has joined #ruby
certainty has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has joined #ruby
Amnez777 has quit [Ping timeout: 250 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
jefeson has quit [Ping timeout: 264 seconds]
tax has quit [Quit: Leaving]
nankyokusei has joined #ruby
tax has joined #ruby
Blaze_Boy has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
bigkevmcd has quit [Ping timeout: 240 seconds]
maucar has joined #ruby
Vlat- has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
johnmilton has quit [Remote host closed the connection]
tax has quit [Client Quit]
tax has joined #ruby
dgynn has quit [Quit: dgynn]
pld has quit [Changing host]
pld has joined #ruby
johnmilton has joined #ruby
Snowy has quit [Remote host closed the connection]
tens0r has joined #ruby
tens0r has quit [Client Quit]
ferr has quit [Quit: WeeChat 1.5]
tens0r has joined #ruby
synthroid has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
jaguarmagenta has joined #ruby
Devalo has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sou|cutter>
in ruby 2.2 I have a `define_method(:foo) { super(args) }` sort of thing, and it works great. In 2.3 I get "super called outside of method" errors
dionysus69 has quit [Ping timeout: 244 seconds]
jancel has quit [Remote host closed the connection]
<Sou|cutter>
Do I have to fall back to the old alias_method_chain style of calling super there?
<jhass>
do the tests mock/stub any of the methods?
roamingdog has joined #ruby
<Sou|cutter>
no
<Sou|cutter>
not the failing ones anyway, let me see...
giz|work has joined #ruby
mdw has joined #ruby
<jhass>
not sure I get the point of defining the methods anyway btw
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<fujinuma>
havenwood: oh, what a gorgeous place :D
<jhass>
anyway, most compatible way to avoid super in that context should be __getobj__.public_send(operation, kwargs)
<fujinuma>
havenwood: thanks
Es0teric has joined #ruby
rontec76 has joined #ruby
<Sou|cutter>
jhass: **kwargs calls `#to_hash` on the argument. It's not very clear
<Sou|cutter>
I'm actually calling those methods with a non-hash object
<Sou|cutter>
the underlying aws lib needs a hash though
<jhass>
ugh
elifoster has joined #ruby
<jhass>
that's ugly indeed
<Sou|cutter>
yeah I'm a bastard
gfvcastro has joined #ruby
GnuYawk has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
<Sou|cutter>
jhass: good idea about going straight to __getobj__
<Sou|cutter>
this lib has all sorts of wtfs, one day I might clean them all up
<Sou|cutter>
It was extracted from a private codebase, I was not involved in all of it soooo :P
jeredepp has joined #ruby
<jhass>
that's what they all say :P
araujo_ has quit [Quit: Leaving]
<Sou|cutter>
I can't be blamed for all the messes I make!
seanzie has quit [Ping timeout: 244 seconds]
roamingdog has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
<Sou|cutter>
I am pretty sure I wrote that kwargs thing though :x
<jhass>
I'll blame you for some you don't make instead, deal?
araujo has quit [Changing host]
araujo has joined #ruby
bronson has joined #ruby
daftdolphin has joined #ruby
<jhass>
btw I think I do would prefer a kwargs = kwargs.to_hash if kwargs.respond_to? :to_hash
<Sou|cutter>
at the very least that would not require a comment in the code +1
stardiviner has joined #ruby
<jeredepp>
Hello everybody, anyone can point me to the direction why this isn't grouping and summing my data ? @entries.group("project_task_user_id","day").order("day").select("day, SUM(duration) as total_duration, project_task_user_id")
<jhass>
?rails jeredepp
<ruby[bot]>
jeredepp: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jeredepp>
sorry & Thanks
<jhass>
no worries, yw
jeredepp has left #ruby [#ruby]
nowhere_man has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<Sou|cutter>
jhass: I wish I could make a test case for that, though. I remain uncertain why that would give a NoMethodError
<Sou|cutter>
if it raised BadImplementationError I would understand
babblebre has quit [Quit: Connection closed for inactivity]
* jhass
shrugs
<Sou|cutter>
problem solved, if not understood
jaequery has joined #ruby
PaulCape_ has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
dimasg has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
nankyokusei has joined #ruby
trista___ has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
mark_66 has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 244 seconds]
mooru has joined #ruby
tuelz has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
trista___ has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
tristanp_ has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
ChiefAlexander has joined #ruby
tomchapin has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
alfiemax has joined #ruby
16WAAAYSE has joined #ruby
7YUAA7IYC has joined #ruby
mikecmpbll has joined #ruby
jancel has joined #ruby
rbennacer has joined #ruby
frem_ has joined #ruby
tuelz has joined #ruby
shellie_ has quit [Ping timeout: 246 seconds]
giz|work has quit [Ping timeout: 244 seconds]
tildes_ has joined #ruby
Vlat- has quit [Ping timeout: 244 seconds]
aegis3121 has joined #ruby
pawnbox has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhollinger has joined #ruby
<hxegon>
morenoh149: I would guess just use ruby-install <whatever version of ruby you're installing here>
polishdub has quit [Read error: Connection reset by peer]
<morenoh149>
ruby-install ruby -- --with-openssl-dir=/usr/local/bin/openssl to be more exact
Dimik has joined #ruby
mistermocha has quit [Remote host closed the connection]
blaxter has joined #ruby
Guest38693 has quit [Ping timeout: 244 seconds]
cajone has quit [Read error: No route to host]
aadam21_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
aadam21 has joined #ruby
tristanp_ has joined #ruby
dfockler has joined #ruby
banister has joined #ruby
mistermocha has joined #ruby
blaxter has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
rbennacer has joined #ruby
blaxter has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
aadam21 has quit [Ping timeout: 244 seconds]
panpainter has joined #ruby
rbennacer has joined #ruby
ChiefAlexander has quit [Ping timeout: 250 seconds]
JakFrist has joined #ruby
mistermocha has quit [Remote host closed the connection]
tristanp has joined #ruby
mistermocha has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
saneax is now known as saneax_AFK
SilverKey has joined #ruby
tristanp_ has joined #ruby
ChiefAlexander has joined #ruby
n_blownapart has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
blandflakes has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
AlexRussia has joined #ruby
RegulationD has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 246 seconds]
nhhc has quit [Quit: Leaving]
tildes_ has quit [Ping timeout: 276 seconds]
jancel has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
daidoji has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
daidoji has joined #ruby
shellie_ has quit [Remote host closed the connection]
cajone has joined #ruby
daidoji has quit [Remote host closed the connection]
daidoji has joined #ruby
jancel has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
jinie has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
Guest19700 has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
jinie has joined #ruby
roamingdog has joined #ruby
sphex_ has joined #ruby
jaguarmagenta has joined #ruby
sphex has quit [Read error: Connection reset by peer]
Rickmasta has quit [Ping timeout: 246 seconds]
dfockler has quit [Ping timeout: 272 seconds]
LastWhisper____ has joined #ruby
certainty has joined #ruby
jancel has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
joenuts_ has joined #ruby
Devalo has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 260 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
bmurt has joined #ruby
<joenuts_>
is it possible in ruby to dereference a variable (string) such as "Connect::Entry::Reference:0x000000028618f0" ?
Omni has joined #ruby
Omni is now known as Guest13249
tristanp has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
elaptics is now known as elaptics`away
alfiemax has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
<jhass>
?xy joenuts_
<ruby[bot]>
joenuts_: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
xue_ has quit [Remote host closed the connection]
charliesome has joined #ruby
charliesome has quit [Client Quit]
kent\n has joined #ruby
kent\n has quit [Changing host]
kent\n has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<joenuts_>
let me rephrase then : is it possible in ruby to convert use a string to retrieve the value of a variable with a name stored in the string
<joenuts_>
follow up, if that string references a variable defined in another class ( module? ) will the same be achievable?
bronson has joined #ruby
<jhass>
your issue is that you end up in the situation with a desire for such a thing
giz|work has joined #ruby
<jhass>
that's what we should fix/prevent
choke has joined #ruby
charliesome has quit [Client Quit]
<joenuts_>
so you're saying ruby has no mechanism for that, then?
ChiefAlexander has joined #ruby
<jhass>
I don't quite follow what you tried to describe the second time
<joenuts_>
I have a variable, name of "goodstuff", contents of "1" ( or hash actually ). I have a second variable name of "foo" contents of "goodstuff". I want to retrieve the results of 1 using foo as a reference
<jhass>
no you don't, you want to use a hash instead
<jhass>
now what do you want to do where, using the real names?
ishe has quit [Client Quit]
<joenuts_>
inside def run, I want to add deep_merge as an available function to operate on hashes proficed to that selector
xall has joined #ruby
daidoji has quit [Remote host closed the connection]
<jhass>
my dictionary doesn't know "proficed"
startupality has joined #ruby
<joenuts_>
apologies proficed = provided
lukec has joined #ruby
daidoji has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
<joenuts_>
at the point run is called, @se;ectpr os
<joenuts_>
at the point run is called, @selector is ".deep_merge(#<Connect::Entry::Reference:0x000000028618f0>)."
<jhass>
wtf
freerobby has joined #ruby
<joenuts_>
code that calls selector is "variable_one_hash.deep_merge( variable_two_hash )"
whathappens has quit [Ping timeout: 244 seconds]
* apeiros
goes get some popcorn
ishe has joined #ruby
sdothum has joined #ruby
<jhass>
sorry I have to spell it out before I can go on, what the fuck
<joenuts_>
somewhere the code is building a dictionary and storing a hash, i need to get at that hash, and all i have is "#<Connect::Entry::Reference:0x000000028618f0>)"
<apeiros>
I'm somewhat surprised I haven't found ObjectSpace in that code yet :D
<joenuts_>
This is my maiden voyage in to ruby
<jhass>
puppet is a poor first choice
<jhass>
more wtfs in their tools than loc
<TTilus>
Quite a maiden voyage...
skolman_ has joined #ruby
zenguy_pc has quit [Ping timeout: 246 seconds]
<jhass>
is @value your original value perhaps? *shrug*
Omni_ has joined #ruby
<joenuts_>
@value is the contents of the original variable ( a hash )
johnmilton has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
cinch has joined #ruby
<joenuts_>
all i wanted to do was add ruby's deep_merge functionality to the code that was parsed by this ruby engine
tristanp has joined #ruby
<jhass>
btw core ruby has no deep_merge, that's activesupport (rails) most of the time
<TTilus>
Reasonable thing to ask
<joenuts_>
If i can dereference that #<Connect::...> I think I can do the rest
<jhass>
anyway, any change if you #{foo.inspect} instead of #{foo} ?
* jhass
doesn't trust anything there
hutch34_ has joined #ruby
<apeiros>
that code looks like a couple of bazookas with their auto-aim set to "user's foot"
<TTilus>
Problem is that the codebase is a clusterfuck
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
string evals for method invocations :-/
<jhass>
it's curios how they build a gazillion tools which all are clusterfucks
startupality has quit [Quit: startupality]
hutch34 has quit [Ping timeout: 260 seconds]
<jhass>
"let's make this complex enough so nobody will ever fork us" perhaps?
startupality has joined #ruby
rontec76 has quit []
<joenuts_>
so this is not the shining example of how ruby should be used?
norc has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 258 seconds]
<jhass>
far from it
<joenuts_>
so I'm pulling out the "Connect" with a substringmatch = @selector.match(/Connect[^>]*/), should I match the enclosing #< > or no?
synthroid has quit []
<jhass>
it won't work
symm- has joined #ruby
tristanp_ has joined #ruby
<jhass>
you won't get back an object from it's Object#to_s without utter hacks into MRIs internals that'll break with every single point release
<jhass>
or iterating through all objects there are I guess, which is quite slow
<jhass>
anycase is ugly and should not be done near production code
<joenuts_>
so once it's changed to a string, i lose most everything huh?
<joenuts_>
I may just reach out to the developer to find out how in the world he retrieves ( converts ) his #<...> to the value that is referenced
tristanp has quit [Ping timeout: 272 seconds]
<jhass>
it's done elsewhere?
mdw has joined #ruby
<joenuts_>
I assume it has to be done elsewhere. the purpose of this engine is to parse text and build a variable dictionary, while adding *some* ruby functions, but not all
<jhass>
I assumed those some methods would only take literals
jefeson has quit [Ping timeout: 276 seconds]
<jhass>
or idk, some custom parameters that are interpreted
chouhoul_ has joined #ruby
<jhass>
for example to_resource appears to only take a single quoted string literal
<jhass>
for SLICE_REGEX let's assume the author misunderstood character classes and things of the | as an or there
firstdayonthejob has joined #ruby
tristanp has joined #ruby
<jhass>
which again would mean a string literal single or double quoted this time and arbitrary whitespace as the second param?
tristanp_ has quit [Ping timeout: 272 seconds]
<joenuts_>
i see what you're saying, that it's designed to take a string. there are other functions elsewhere that take literals or variables, i'll use that as a starting point
ocbtec has quit [Quit: leaving]
chouhou__ has joined #ruby
<jhass>
ah, any amount of string literals was the intent
charliesome has joined #ruby
blackgoat has joined #ruby
<jhass>
slice_content the same, any amount of string literals
<joenuts_>
maybe this variable_values = variable_names.map { |n| connect_interpolate(n, xref) } connect_interpolate function is how i pull the actual variable
banister has joined #ruby
zenguy_pc has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
<joenuts_>
bah, fun times ahead. gunna take some headache medicine and bang away at this. thanks for your time everyone
chouhoul_ has quit [Ping timeout: 264 seconds]
kareeole_ has joined #ruby
tristanp_ has joined #ruby
smathy_afk is now known as smathy
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rbennacer has quit [Remote host closed the connection]
sbrown has joined #ruby
tomphp has joined #ruby
Devalo has joined #ruby
replay has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 272 seconds]
banister has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
djbkd has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 260 seconds]
Ishido has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
wrkrcoop has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
I guess puppets main issue is that they're trying to look like ruby while its not ruby at all
charliesome has joined #ruby
<smathy>
wrkrcoop, show the actual error.
<wrkrcoop>
ArgumentError: wrong number of arguments calling `initialize` (1 for 0) <top> at debate.rb:60
<joenuts_>
puppet has it's own syntax (semi-ruby), but then this "connect" engine has IT's own syntax ( semi-ruby ). and with ruby as the back end, I'm trying to get at the nuts and bolts
art-solopov has joined #ruby
<wrkrcoop>
i am using jruby …
B1n4r10 has quit [Ping timeout: 250 seconds]
<smathy>
wrkrcoop, you misspelt initialize in Moderator.
<wrkrcoop>
what i thought i checked ><
<wrkrcoop>
thanks smathy
<smathy>
Np.
joonty has joined #ruby
daidoji has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
<wrkrcoop>
ah man its not working as expected
<wrkrcoop>
im trying to udnerstand threads …
ramfjord has joined #ruby
daidoji has joined #ruby
<wrkrcoop>
i’m expecting the moderator to aska question, then create threads, where the candidates puts an answer, and meanwhile the method sleeps …
jokke has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
jokke has joined #ruby
panpainter has quit [Remote host closed the connection]
aadam21 has joined #ruby
daidoji has quit [Remote host closed the connection]
cdg has joined #ruby
daidoji has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ChiefAlexander has quit [Read error: Connection reset by peer]
aadam21 has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
aadam21 has joined #ruby
ChiefAlexander has joined #ruby
ta__ has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
panpainter has joined #ruby
skweek has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 272 seconds]
bruce_lee has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
skalfyfan has quit [Client Quit]
tristanp_ has joined #ruby
startupality has quit [Client Quit]
djbkd has joined #ruby
|2701 has joined #ruby
ta_ has joined #ruby
startupality has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
postmodern has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta___ has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
skalfyfan has joined #ruby
pietr0 has quit [Ping timeout: 244 seconds]
kareeole_ is now known as kareeoleez
kareeoleez has quit [Remote host closed the connection]
LBRapid has quit [Ping timeout: 260 seconds]
_dev has quit [Ping timeout: 260 seconds]
Phanes has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
Nightmare has quit [Ping timeout: 250 seconds]
mac10 has joined #ruby
<mac10>
hey guys! i deployed something to Heroku and it looks like my js/apis arent working. Do i need a a specific gem to make it work?
spudowiar has joined #ruby
<mac10>
anyone?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
hutch34_ has quit [Read error: Connection reset by peer]
choke has joined #ruby
charliesome has joined #ruby
eL_bamba has quit [Remote host closed the connection]
dimasg has joined #ruby
hutch34_ has joined #ruby
daidoji has quit [Remote host closed the connection]
daemoen has joined #ruby
daidoji has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
<daemoen>
lo folks...is there a way of passing an additional library path to bundle install for a given gem? tokyocabinet puts the libraries in /usr/include but the gem is only searching . and /usr/lib64, so it fails to compile
tristanp has joined #ruby
rbennacer has quit [Remote host closed the connection]
<nofxx>
daemoen, that was the big boom period of rails... and ruby too. Major update pita....
<mac10>
help D:
mistermocha has joined #ruby
<daemoen>
nofxx: yep.... ironically, i had to support ror when it was *really* painful (07-09)
mistermocha has quit [Remote host closed the connection]
<daemoen>
so it unfortunately made me very angry and hateful toward ruby
<mac10>
anyone?
alfiemax has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
vjacob has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<wrkrcoop>
i need to use threads in my application to make two api calls simultaneously. does this look right? im getting exepected output but not sure if its just luck
<daemoen>
mac10: hmmm... from what im seeing here, you havent really provided enough info for anyone to help you to begin with ?
jancel has joined #ruby
ta__ has joined #ruby
<mac10>
so i created basic static site and deployed it on heroku
mistermocha has quit [Remote host closed the connection]
<mac10>
daemoen: (a weather app) . everything works fine on localhost, however when I deployed it to heroku, the APIs arent running
<mac10>
daemoen: so i was wondering if i need to do something for the api to work on heroku? add gems / do what the link i put down?
benlieb has joined #ruby
swills has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
zenguy_pc has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 264 seconds]
<nofxx>
daemoen, been there too, suffered that too ;) good news is that things are more 'stable' now
<ramfjord>
do many people here use yard for docs? I'm struggling for the life of me to link to a method on another class with a module - I would expect it to be {Mod::Klass#new} or something
ChiefAlexander has quit [Remote host closed the connection]
<ramfjord>
oh, maybe it's because I'm linking to new instead of initialize actually
<daemoen>
i see the extconf.rb passing the option, but when it lists everything, the option is ignored/null....
<nofxx>
daemoen, which distro are you? sure you got build-tools? gcc and friends
<daemoen>
nofxx: quite positive. centos 6
<vjacob>
any tips how to determine which programming language is best to use for a high-intensity Website? So far I have heard suggestions like C++, Java VM+Scala, Java + Spring framework, Clojure, Erlang... What are the types of questions to ask in the beginning to understand better how to research make such a decision? :)
mac10 has quit [Quit: mac10]
<jhass>
sure you actually got the header and the right option?
aegis3121 has quit [Ping timeout: 260 seconds]
<nofxx>
ahh.. tcutil.h , let me see if I have this daemoen
dhollinger has quit [Quit: WeeChat 1.4]
jancel has joined #ruby
<daemoen>
tcutil.h is on the machine in /usr/include/tcutil.h, but that path isnt part of the gem's search path.
tristanp has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
<daemoen>
jhass: as for having the right option? no idea =D thats why im in here, lol
<daemoen>
if i were just going to compile it manually, id modify the Makefile and extend the LDFLAGS to include -L/usr/include
bronson has joined #ruby
<jhass>
that's wrong in itself
<jhass>
-L is linker path, not preprocessor path
<jhass>
that'd be -I
<daemoen>
doh, sorry, -I
daidoji has quit [Remote host closed the connection]
<daemoen>
yeah, realized that after i typed it
domah has joined #ruby
daidoji has joined #ruby
<jhass>
$CFLAGS = -I. -I/usr/include
<daemoen>
would add it to the clfags
<nofxx>
vjacob, high "intensity" website? You mean billions of hits? That's cache
<jhass>
it should be alright, no?
<jhass>
(copy pasted from your past)
<daemoen>
interesting... i hadnt caught that part, yeah it should
<jhass>
check mkmf.log
<jhass>
maybe there's something else to it
<vjacob>
nofxx, you mean a lot caching in the design or architecture will take care of that?
<daemoen>
hah!
<daemoen>
nofxx: nvm, jhass was right
<daemoen>
its missing a different lib
mattwashere has joined #ruby
<nofxx>
vjacob, yup, but caching can be done later, when needed... don't fall on early optimization problems
<daemoen>
so rule of thumb is ignore what you see and aways look at the mkmf.log
bronson has quit [Ping timeout: 246 seconds]
panpainter has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Krands has joined #ruby
<daemoen>
wheeee..... now onto the very last issue... which might be the most difficult of them all :|
<Krands>
hi
dopie has joined #ruby
mac10 has joined #ruby
mac10 has quit [Client Quit]
<daemoen>
jhass, nofxx: tyvm. all fixed =D
jancel has quit [Remote host closed the connection]
panpainter has joined #ruby
panpainter has quit [Remote host closed the connection]
Guest99004 has quit [Ping timeout: 244 seconds]
panpainter has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<nofxx>
daemoen, walk in the park. ( jhass did all the hard work )
mattwashere has quit [Remote host closed the connection]
<daemoen>
you were willing to look though as well :)
nando293921 has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_blownapart has quit []
madgen has quit [Ping timeout: 240 seconds]
<nofxx>
vjacob, also you're missing the actual point... It's the same content for all hits? Even if you write all your code in C, have you considered your DB will be the bottleneck? Paralellize, go horizontal
mattwashere has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
pietr0 has joined #ruby
mistermocha has joined #ruby
JesseH has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
<nofxx>
and more: actually you can choose the best fw/lang for the scenario... a working case: a site runs, assets and lil things in ruby/rails/sinatra and uses an nodejs/C++/elixir(erlang) api backend....
mistermocha has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
whathappens has quit [Quit: Leaving...]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
wrkrcoop has joined #ruby
banister has joined #ruby
idefine_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
skolman has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 244 seconds]
skolman_ has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skalfyfan has joined #ruby
PaulCapestany has joined #ruby
idefine has quit [Ping timeout: 258 seconds]
snockerton has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
idefine_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
JesseH has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
skolman_ has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
skolman_ has joined #ruby
SilverKey has joined #ruby
mistermocha has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
whathappens has joined #ruby
roamingdog has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
<Synthead>
is there a way I can do .select, but instead of returning the selected value, return some other value?
diegoaguilar has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Client Quit]
jhack has quit [Quit: jhack]
<benzrf>
Synthead: how about doing a map, returning nil for items you want to remove, then using compact?
tristanp_ has joined #ruby
<Synthead>
benzrf: I was kind of thinking that, but that's a lot of logic
sdothum has joined #ruby
<Synthead>
.select returns only the first value, which is faster
mistermocha has quit [Remote host closed the connection]
<benzrf>
Synthead: hmm, what?
<benzrf>
isn't #select just filter?
<havenwood>
Synthead: Ruby doesn't have an equivalent to Elixir's filter_map, though it's been proposed.
<Synthead>
benzrf: I'm pretty sure you're thinking of .find_all
codecop has quit [Remote host closed the connection]
Rakko has joined #ruby
aegis3121 has joined #ruby
|2701 is now known as |meta
ramfjord_ has joined #ruby
<Rakko>
Is there a standard way to have a script take arguments like OptionParser allows, but also have a non-optional "verb" in the command line (like git, tar, etc. have)?
daidoji has quit [Remote host closed the connection]
daidoji has joined #ruby
rbennacer has quit [Remote host closed the connection]
<|meta>
rakko, you could pass a keyword argument in as a hash, and use keys from the hash as options?
kobain has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
dar123 has joined #ruby
tuelz has joined #ruby
certainty has joined #ruby
kobain has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Kiev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has quit [Quit: Leaving]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
banister has joined #ruby
sdothum has joined #ruby
sdothum has quit [Remote host closed the connection]
blaxter has quit [Quit: KTHXBYE]
benlieb has quit [Quit: benlieb]
nando293921 has joined #ruby
dimasg has joined #ruby
sdothum has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
mleung has quit [Quit: mleung]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wrkrcoop has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
dar123 has quit []
neanderslob has quit [Ping timeout: 244 seconds]
troulouliou_div2 has quit [Quit: Leaving]
mistermocha has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 246 seconds]
jhack has joined #ruby
Rickmasta has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<benzrf>
Rakko: thor is good for that i think
B1n4r10 has quit [Ping timeout: 260 seconds]
daidoji has quit [Remote host closed the connection]
jenrzzz has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
daidoji has joined #ruby
f0aly has quit [Quit: f0aly]
hutch34_ has joined #ruby
<Rakko>
|meta: not sure what you mean. Using OptionParse, or another class?
<Rakko>
benzrf: thanks, I'll check it out. I thought it was a build tool.
<|meta>
oh I thought you wanted your method to take formatted arguments, not your while script