calderonroberto has quit [Ping timeout: 250 seconds]
berserk_ren has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
kmckelvi1 has quit [Ping timeout: 272 seconds]
berserk_ren has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
tenderlove has joined #ruby
lyoshajapan has joined #ruby
<zenspider>
zacts: thanks?
<zacts>
zenspider: sorry, just thought it was too cool
<zenspider>
n/p
<zacts>
(don't mean to be offtopic)
<diegoviola>
ruby is cool
tcrypt has quit [Remote host closed the connection]
<diegoviola>
and this community also
<Ox0dea>
diegoviola: Whence the change of heart?
arescorpio has joined #ruby
shanemcd has joined #ruby
<diegoviola>
Ox0dea: change of heart? what do you mean?
<Ox0dea>
I just recall you bashing #ruby at some point not too long ago.
<diegoviola>
I don't think I ever bashed ruby
<Ox0dea>
There is a difference between Ruby the programming language and #ruby the IRC channel.
<Ox0dea>
Precision matters.
duncannz has quit [Ping timeout: 272 seconds]
<diegoviola>
I don't think I ever bashed #ruby
<Ox0dea>
Must've just been #ror, then.
jhn has joined #ruby
<Ox0dea>
Oh, it was Ruby's manpage with which you took some umbrage.
<Ox0dea>
For shitting on Perl, as you saw it.
<diegoviola>
I don't have change of heart (not sure what it means, not really interested either)
<diegoviola>
and no, that wasn't me bashing ruby or #ruby
<c-c>
I'm sorry to inform you that the c-c corporation test labs have finalized alpha version of ruby that is written entirely in YAML. So enjoy while it lasts, soon c-c megacorp robots will force you to write everything in YAML.
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c>
(even ruby)
shanemcd has quit [Ping timeout: 256 seconds]
berserk_ren has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
<diegoviola>
Ox0dea: I just thought it looked odd in the man page, that's all
<diegoviola>
Ox0dea: I tend to contribute to the documentation of some projects, this is my latest change (not related to ruby): https://lkml.org/lkml/2015/11/5/78
<diegoviola>
Ox0dea: so maybe I could improve the ruby man page also
baweaver has quit [Remote host closed the connection]
InvGhost has quit [Read error: Connection reset by peer]
<Ox0dea>
We could write Ruby in YAML just fine.
<zenspider>
enterprise ruby!
kp666 has quit [Ping timeout: 272 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
berserk_ren has quit [Ping timeout: 256 seconds]
<c-c>
how did you know!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
lyoshajapan has joined #ruby
dlitvak has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
jessemcgilallen_ has joined #ruby
berserk_ren has joined #ruby
ruid has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
jessemcgilallen has quit [Read error: Connection reset by peer]
jessemcgilallen_ is now known as jessemcgilallen
tenderlove has quit [Remote host closed the connection]
kp666 has joined #ruby
nanoz has joined #ruby
tenderlove has joined #ruby
baweaver has joined #ruby
JDiPierro has joined #ruby
tenderlove has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
chipotle has joined #ruby
daivyk has joined #ruby
rgrmatt has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
hxegon has joined #ruby
chaturbate has joined #ruby
berserk_ren has quit [Ping timeout: 256 seconds]
FooMunki has quit [Quit: FooMunki]
iateadonut has quit [Quit: Leaving.]
casadei has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruid has quit [Ping timeout: 272 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
jhn has joined #ruby
segmond has joined #ruby
rgrmatt has joined #ruby
Rickmasta has joined #ruby
imperator has joined #ruby
neanderslob has quit [Ping timeout: 256 seconds]
Bellthoven has quit []
rakm has joined #ruby
segmond has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
tjbiddle has joined #ruby
devoldmx has joined #ruby
JDiPierro has joined #ruby
segmond has joined #ruby
JDiPierro has quit [Remote host closed the connection]
houhoulis has joined #ruby
elton has joined #ruby
5EXAAFXI5 has quit [Quit: Konversation terminated!]
JDiPierro has joined #ruby
DiCablo has joined #ruby
casadei has joined #ruby
baweaver has quit [Remote host closed the connection]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
inanepenguin has quit [Quit: inanepenguin]
arooni has joined #ruby
elton has quit [Ping timeout: 250 seconds]
arooni has quit [Client Quit]
axisys has joined #ruby
axisys has quit [Client Quit]
axisys has joined #ruby
Moosashi has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
rgrmatt has quit [Remote host closed the connection]
kmckelvi1 has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
diegoviola has joined #ruby
<c-c>
Seen code that generates ruby class files from in-memory Class -instances?
dnewkerk has quit [Quit: dnewkerk]
Jardayn has quit [Quit: Leaving]
wolffles has joined #ruby
<centrx>
I seen it
<centrx>
Big as a bear he was
<wolffles>
this is a test, im new to IRC
elton has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
wolffles: it worked!
<zenspider>
FINALLY... dropping 1.8, removing build logic from multiruby (using rbenv)... simplify... got my multiversion CI up and running under the new system
<imperator>
are there any tools out there for gauging regex efficiency?
solocshaw has quit [Ping timeout: 240 seconds]
<imperator>
something that shows me how much backtracking is going on, for instance
rgrmatt has joined #ruby
nuck has joined #ruby
<c-c>
imperator: would benchmarking time be sufficient?
<zenspider>
imperator: mmm... don't know of any, no... there's some nice tools to help optimize regexps, but it won't point out backtracing hotspots
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
dfinninger has quit [Read error: Connection reset by peer]
Guest65039 has quit [Changing host]
Guest65039 has joined #ruby
<imperator>
zenspider, thanks, installing now :)
Guest65039 is now known as nuck
kmckelvi1 has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
segmond has quit [Read error: Connection reset by peer]
atomical has joined #ruby
Renich has quit [Quit: leaving]
podman has quit [Quit: Connection closed for inactivity]
krzkrz has quit [Ping timeout: 240 seconds]
ruid has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
sneakerhax has joined #ruby
dlitvak has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
Moosashi has quit [Quit: Moosashi]
casadei has quit [Remote host closed the connection]
TomPeed has joined #ruby
Moosashi has joined #ruby
TomPeed is now known as justbleed
B1n4r10 has joined #ruby
The_Phoenix has joined #ruby
saddad has joined #ruby
tenderlove has quit [Remote host closed the connection]
tcrypt has joined #ruby
bronson has quit [Remote host closed the connection]
<zenspider>
when is 2.0 EOL'd ?
<zenspider>
I'm so sick of minitest 4 being in stdlib as a fake gem. fuck me
Moosashi has quit [Quit: Moosashi]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arnvald has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
<jhass>
zenspider: february 24
<jhass>
(next year)
<zenspider>
good
<zenspider>
2016 is the year of uncruft
sh4d0wD has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
crystalmaiden has joined #ruby
RobertBirnie has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
<jhass>
oh, 2.3.0-preview2 got released
crystalmaiden has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
daivyk has quit [Quit: ZZZzzz…]
crystalmaiden has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
elton has quit [Remote host closed the connection]
kp666 has quit [Ping timeout: 240 seconds]
crystalmaiden has joined #ruby
tenderlove has joined #ruby
tcrypt has quit []
blackmesa has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
kmckelvi1 has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elton has joined #ruby
imperator has quit [Quit: Leaving]
symm- has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
crystalmaiden has quit [Max SendQ exceeded]
crystalmaiden has joined #ruby
tjbiddle has joined #ruby
nettoweb has joined #ruby
favadi has joined #ruby
lyoshajapan has joined #ruby
elton has quit [Ping timeout: 272 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
colleenmcguckin has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Quit: Leaving.]
chaturbate has quit [Ping timeout: 252 seconds]
A124 has joined #ruby
jessemcgilallen_ has joined #ruby
baweaver has quit [Remote host closed the connection]
jessemcgilallen has quit [Ping timeout: 256 seconds]
<nuck>
what the fuck. I'm running into something... new
jessemcgilallen_ is now known as jessemcgilallen
<nuck>
My ApplicationController apparently doesn't exist or something
<nuck>
I have UsersController < ApplicationController < ActionController::Base, and when I check the ancestry of UsersController, there's no reference to ApplicationController
<nuck>
Why would my superclass cease existing?
<nuck>
Oh and if I instantiate an ApplicationController (which does work!), I can't call any of the methods I defined on it
<nuck>
And Pry can't seem to show the source for it
yeticry has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<zenspider>
nuck: #rubyonrails
<nuck>
It doesn't seem to be a Rails issue afaict
<zenspider>
if rails is fucking with loading and the like, it is a rails issue until proven otherwise
<nuck>
hah fair enough
<zenspider>
if you want, replicate the issue w/o rails and I'm happy to help
<zenspider>
(until I have to leave)
<zenspider>
~15m
<nuck>
I'll try disabling Spring and nuking things until it works
chipotle has joined #ruby
supermar_ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Read error: Connection reset by peer]
blackgoat has quit [Quit: WeeChat 1.3]
chipotle has joined #ruby
jbrhbr has quit [Quit: Leaving.]
supermarin has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
willywos has joined #ruby
willywos has quit [Client Quit]
nkts_ has quit [Quit: leaving]
shadoi has quit [Quit: Leaving.]
supermarin has joined #ruby
lyoshajapan has joined #ruby
jgt has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
supermar_ has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
wolffles has quit [Quit: wolffles]
lyoshajapan has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
bronson has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
ornerymoose: It does has a value that's an Array that includes that String, but it's doesn't have a value that's just the String itself.
<havenwood>
it*
bronson has quit [Remote host closed the connection]
<ornerymoose>
right, right, makes sense now.
bronson has joined #ruby
<ornerymoose>
What would be best practice to fetch one of the items within the array? (ie, just get back “a”)
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has quit [Quit: qiukun]
saneax_AFK is now known as saneax
yfeldblum has joined #ruby
<ornerymoose>
the fetch method kinda does the same thing as has_value here
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
Arnvald has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
bronson has quit [Remote host closed the connection]
tjbiddle has joined #ruby
bronson has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<havenwood>
ornerymoose: I'm not quite sure I follow what you're wanting, but based on your first example maybe consider something along the lines of `hash.any? { |_, v| v.include? "a" }` or `hash.values.flatten(1).include? "a"`.
bronson has quit [Remote host closed the connection]
<ornerymoose>
Yeah that was a poorly worded question, my bad.
<ornerymoose>
And nice, looking at the include? method on the docs now
<ornerymoose>
1sec
tjbiddle has quit [Client Quit]
bronson has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
bronson has quit [Remote host closed the connection]
<ornerymoose>
That flatten method is awesome. I appreciate your help, think I got it!
lyoshajapan has joined #ruby
wolffles has joined #ruby
bronson has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Cyther has joined #ruby
bronson has joined #ruby
podman has joined #ruby
elton has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<havenwood>
ornerymoose: :D
<ornerymoose>
:)
bronson has joined #ruby
JDiPierro has quit [Remote host closed the connection]
codeurge has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
blackmesa has joined #ruby
lyoshajapan has joined #ruby
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
berserk_ren has joined #ruby
lubarch has quit [Quit: leaving]
DiCablo has joined #ruby
Cyther has quit [Quit: Leaving]
colegatron has quit [Ping timeout: 256 seconds]
pwnd_nsfw has joined #ruby
astrobun_ has joined #ruby
akem has quit [Remote host closed the connection]
Bloomer has joined #ruby
elton has joined #ruby
ramfjord has joined #ruby
<shevy>
flatten the mouse
<shevy>
and flatten the moose
<blub>
hi shevy
lyoshajapan has quit [Remote host closed the connection]
<shevy>
hey blub are you still pondering about classes versus modules
qiukun has quit [Remote host closed the connection]
DavidDudson has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
Arnvald has quit [Remote host closed the connection]
qiukun has joined #ruby
passerine has left #ruby ["Leaving"]
tvw has joined #ruby
AmayA-_ has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
ap4y has quit [Quit: WeeChat 1.3]
djbkd has quit []
blackmesa has quit [Ping timeout: 250 seconds]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
gamov has quit [Quit: gamov]
AmayA-_ has quit [Client Quit]
DavidDudson has joined #ruby
ledestin has joined #ruby
yardenbar has quit [Remote host closed the connection]
jbrhbr has joined #ruby
devoldmx has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
mesamoo has joined #ruby
qiukun has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
DavidDudson has quit [Read error: Connection reset by peer]
juddey has joined #ruby
qiukun has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
qiukun has quit [Remote host closed the connection]
vondruch has joined #ruby
moeabdol has quit [Ping timeout: 256 seconds]
qiukun has joined #ruby
symm- has joined #ruby
TomyWork has joined #ruby
DeXterbed has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
brunto has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
Nahra``` has quit [Ping timeout: 246 seconds]
qiukun has quit [Remote host closed the connection]
devoldmx has joined #ruby
qiukun has joined #ruby
ibouvousaime has joined #ruby
Silox| has joined #ruby
codeurge has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
SCHAAP137 has joined #ruby
adac has joined #ruby
Bloomer has joined #ruby
CloCkWeRX has joined #ruby
DeXterbed has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
wldcordeiro has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
TvL2386 has joined #ruby
<TvL2386>
hi guys, is there a way to kill a process created with EventMachine::popen? I'm having a hanging subprocess and I want to implement some kind of timeout
Tempesta has quit [Quit: See ya!]
jgt has joined #ruby
saddad has quit [Ping timeout: 272 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
andykingking has joined #ruby
jgt has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
andykingking has quit [Client Quit]
BlackCoyote has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
lurch_ has joined #ruby
lubarch has quit [Quit: leaving]
sandstrom has joined #ruby
amclain has quit [Quit: Leaving]
sandstrom has quit [Client Quit]
Bloomer has quit [Remote host closed the connection]
zast has quit [Quit: Leaving.]
lubarch has joined #ruby
Arnvald has joined #ruby
zarubin has joined #ruby
bronson has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
lubarch has quit [Client Quit]
Mon_Ouie has joined #ruby
lubarch has joined #ruby
blackmesa has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
marr has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
c0m0 has joined #ruby
DeXterbed has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
qiukun has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
elton has quit [Remote host closed the connection]
devoldmx has joined #ruby
qiukun has quit [Remote host closed the connection]
anisha has joined #ruby
qiukun has joined #ruby
jas02 has joined #ruby
DavidDudson has joined #ruby
qiukun has quit [Remote host closed the connection]
lubarch has quit [Quit: leaving]
qiukun has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
stan has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
Snowy has joined #ruby
lubarch has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
Snowy has quit [Remote host closed the connection]
sandstrom has joined #ruby
krzkrzkrz has joined #ruby
techsethi has quit [Quit: techsethi]
chthon has joined #ruby
Snowy has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
drptbl has joined #ruby
Bloomer has joined #ruby
DavidDudson has quit [Ping timeout: 250 seconds]
krzkrz has quit [Ping timeout: 250 seconds]
lubarch has quit [Client Quit]
tagrudev has quit [Remote host closed the connection]
lubarch has joined #ruby
techsethi has joined #ruby
tagrudev has joined #ruby
DavidDudson has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
TheHodge has joined #ruby
bronson has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
User458764 has joined #ruby
toretore has joined #ruby
lubarch has quit [Quit: leaving]
DavidDudson has quit [Ping timeout: 240 seconds]
Fredrich010 has quit []
AlexRussia has quit [Ping timeout: 256 seconds]
Nahra``` has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
timonv has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
qiukun has quit [Client Quit]
DavidDudson has quit [Read error: Connection reset by peer]
exadeci has quit [Quit: Connection closed for inactivity]
avelldiroll has joined #ruby
Pumukel has joined #ruby
lyoshajapan has quit []
cwong_on_irc has quit [Quit: Leaving.]
lyoshajapan has joined #ruby
lysw123 has joined #ruby
chipotle has quit [Quit: cheerio]
juddey has quit [Ping timeout: 272 seconds]
julweber has joined #ruby
julweber has quit [Remote host closed the connection]
lysw123 has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
jgt has joined #ruby
Tempesta has joined #ruby
lysw123 has joined #ruby
DeXterbed has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
Tempesta has quit [Client Quit]
B1n4r10 has joined #ruby
Tempesta has joined #ruby
Hounddog has joined #ruby
DavidDudson has quit [Read error: Connection reset by peer]
DavidDudson has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Client Quit]
user1138 has joined #ruby
krzkrzkrz has quit [Read error: Connection reset by peer]
krzkrzkrz has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
lyoshajapan has quit []
zarubin has joined #ruby
tomphp has joined #ruby
zotherstupidguy has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
zarubin has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
lemur has joined #ruby
qiukun has joined #ruby
Nahra``` has quit [Ping timeout: 240 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
blaxter has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
elton has joined #ruby
devoldmx has joined #ruby
krzkrzkrz has quit [Quit: WeeChat 1.2]
avahey has quit [Quit: Connection closed for inactivity]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
jgt has joined #ruby
DeXterbed has quit [Ping timeout: 256 seconds]
qiukun has quit [Remote host closed the connection]
platzhirsch has joined #ruby
qiukun has joined #ruby
blackmesa has joined #ruby
Coldblackice has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
platzhirsch has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
loren has joined #ruby
platzhirsch has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
blackgoat has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
nfk|laptop has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
qiukun has quit [Remote host closed the connection]
yfeldblum has joined #ruby
qiukun has joined #ruby
lubarch_ has joined #ruby
lubarch_ has quit [Client Quit]
DeXterbed has joined #ruby
ruby-lang219 has joined #ruby
<ruby-lang219>
hello
<ruby-lang219>
I am quite new to ruby and have a little question
<ruby-lang219>
does anyone know if i can access the command history of a user on linux or listen to incoming commands in the shell?
lubarch has joined #ruby
lubarch has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lubarch has quit [Client Quit]
<adaedra>
theorically, you can access the history; but this is dependent on machine and/or user configuration (shell, location, etc.)
<ruby-lang219>
hello
<adaedra>
what do you mean now by "listen to incoming commands in the shell"?
glenny has quit [Quit: Konversation terminated!]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
<ruby-lang219>
let's say I use bash. I would like to log which commands I input into the shell
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra>
into any shell?
<ruby-lang219>
if possible yes, otherwise I am fine with bash
<adaedra>
no, I mean
baweaver has quit [Remote host closed the connection]
<adaedra>
into any bash instance?
lubarch has quit [Client Quit]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
<ruby-lang219>
is this possible?
lubarch has quit [Client Quit]
<adaedra>
I think it's more bash side
<adaedra>
But what are you trying to do in the first place?
<ruby-lang219>
My main goal is to make a list of all frequently accessed directories, lets say i do "cd Documents/mainDir" and if i give the string
<ruby-lang219>
'mainDir' as an argument to the ruby program it should automatically change to the directory Documents/mainDir
<ruby-lang219>
so just a little command line tool for easier directory access
<adaedra>
I see
<ruby-lang219>
I think the main problems are to capture the commands and to change the directory because ruby will be a child process right?
<adaedra>
So you would have a part that collects accessed directories, and another that reads that collected data to sort most accessed directories?
<shevy>
if you invoke a ruby file you can have it log output into a file, but cd itself is a shell builtin
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
baweaver has joined #ruby
<ruby-lang219>
yeah i know but with the system command it's possible to call commands I've seen
<adaedra>
There's a directory change hook, you could call your collector in it
lubarch has quit [Client Quit]
Ox0dea has quit [Ping timeout: 256 seconds]
<adaedra>
This has to be called by the shell imo
blackmesa has quit [Ping timeout: 240 seconds]
<ruby-lang219>
ok I didn't know that existed, how does this work?
<adaedra>
there may be another way, it's just an idea, is more difficult to code, but may not need to edit the shell itself: track shell processes, and use /proc to see cwd.
<DeXterbed>
can't you get a list of dirs from the history file?
lemur has quit [Ping timeout: 256 seconds]
Bloomer has quit [Remote host closed the connection]
<adaedra>
mh, it may appear that the chpwd hook is zsh-only.
<blub>
getting absolute paths would be a trick wouldnt it dexterbed
<adaedra>
the bash-solution would be to override cd, but that's bleh
ldnunes has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
<blub>
especially with CDPATH
<ruby-lang219>
so can I call system 'history' from the ruby process? I tried this and didn't get any output
<adaedra>
nope, history is a builtin.
<adaedra>
better to look where bash stores its history and read the history file.
bean has quit [Read error: Connection reset by peer]
bean has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
build22 has quit [Ping timeout: 250 seconds]
<ruby-lang219>
thanks that seems to work :) "system 'cat ~/.bash_history' " shows the whole history :)
<KrzaQ>
[*?a..?z] <-- how should I understand this?
<adaedra>
ruby-lang219: why use system cat for that? Just use IO.read
<KrzaQ>
I can see what it is in pry, but I don't know what the star does
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has joined #ruby
yfeldblum has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
<ruby-lang219>
does anyone know how to call a shell command of the parent process from the ruby child process?
houhoulis has quit [Remote host closed the connection]
gits1225 has joined #ruby
symm- has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<Insti>
ruby-lang219, system ?
devoldmx has joined #ruby
sandstrom has joined #ruby
<ruby-lang219>
if you call system it won't affect the parent process that's the problem
<ruby-lang219>
so if i run a ruby script it won't change the environment i'm running it from
elton has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<ruby-lang219>
I've thought of this hack. Run a bash script which calls the ruby script which makes a file which is run from the bash script
<ruby-lang219>
but this is so bad
<ruby-lang219>
and I would like to make it in a ruby way
jgt has quit [Ping timeout: 240 seconds]
sandstrom has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
atumzin has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
DeXterbed has joined #ruby
atumzin has joined #ruby
Maximoz has joined #ruby
elton has quit [Ping timeout: 256 seconds]
sandstrom has quit [Read error: Connection reset by peer]
sandstro_ has joined #ruby
nettoweb has joined #ruby
wolffles has joined #ruby
wolffles has quit [Client Quit]
spiman has joined #ruby
rodferso1 has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
<jhass>
?xy ruby-lang219
<ruboto>
ruby-lang219, 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
<ruby-lang219>
ok i will explain my problem
<ruby-lang219>
i would like to change my current directory from bash by calling a ruby script
<jhass>
technically impossible
<jhass>
you can do something like cd $(ruby foo.rb)
ledestin has joined #ruby
<ruby-lang219>
didn't know you could do that thanks
ledestin has quit [Client Quit]
techsethi has joined #ruby
qiukun has quit [Quit: qiukun]
bronson has joined #ruby
Pumukel has joined #ruby
charliesome has joined #ruby
ruby-lang048 has joined #ruby
vdamewood has joined #ruby
wmdrossard has joined #ruby
dlitvak has quit [Remote host closed the connection]
<nettoweb>
guys, can you suggest some good gem to do simple sorting table list? I start to do everything but I have lots of columns so my code gots big
zarubin has quit [Ping timeout: 240 seconds]
Xentil has joined #ruby
sgambino has joined #ruby
Fraeon has quit [Quit: attendez]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
atomical has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Hounddog has quit [Remote host closed the connection]
Maximoz has quit [Quit: Leaving]
Fraeon has joined #ruby
Snowy has quit [Remote host closed the connection]
<jhass>
now nov just needs to accept my PR ripping AS out of json-jwt and I might have faith into this community again :P
zotherstupidguy has quit [Quit: WeeChat 1.3]
ledestin has joined #ruby
<shevy>
november?
johnzorn has quit [Remote host closed the connection]
johnzorn has joined #ruby
<jhass>
github.com/nov
atomical has quit [Ping timeout: 240 seconds]
<apeiros>
what's json jwt?
* apeiros
looks
<apeiros>
ah
atomical has joined #ruby
rodfersou has quit [Ping timeout: 272 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
<shevy>
haha
<shevy>
that reminds me of hanmac
<shevy>
he gets all his changes in :)
rodfersou has joined #ruby
blaxter has quit [Quit: foo]
tenderlove has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
techsethi has quit [Ping timeout: 272 seconds]
akkad has quit [Ping timeout: 250 seconds]
B1n4r10 has joined #ruby
ramortegui has joined #ruby
shanemcd has joined #ruby
davedev2_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
bnizzle1 has joined #ruby
bnizzle1 has left #ruby [#ruby]
davedev24 has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
brunto has quit [Quit: Lost terminal]
dlitvak has joined #ruby
devoldmx has joined #ruby
dlitvak_ has joined #ruby
Voker57 has quit [Remote host closed the connection]
Moosashi has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
seitensei has quit [Quit: "For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
B1n4r10 has quit [Ping timeout: 272 seconds]
elton has joined #ruby
devbug has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
spiman has quit []
nfk|laptop has quit [Ping timeout: 256 seconds]
devbug has quit [Ping timeout: 240 seconds]
elton has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
Nahra``` has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
kobain has joined #ruby
darkxploit has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
kam270 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
Moosashi has quit [Quit: Moosashi]
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
TomPeed has joined #ruby
Bloomer has joined #ruby
decoponio has joined #ruby
Voker57 has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
<hoylemd>
Hey, if I want to document in-line the parameters in an options hash, what's the best way to do that? just a comment?
davedev24 has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
freerobby has quit [Quit: Leaving.]
ornerymoose has joined #ruby
tenderlove has joined #ruby
ornerymoose has quit [Client Quit]
<jhass>
hoylemd: did you consider switching to keyword arguments by now?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fernando1 has joined #ruby
akkad has quit [Ping timeout: 250 seconds]
ElFerna has joined #ruby
chipotle has quit [Quit: cheerio]
babblebre has joined #ruby
baweaver has joined #ruby
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
<adaedra>
Yard has @option, but I'd agree with jhass, kwargs are a better way.
centrx has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
pdoherty has joined #ruby
<shevy>
hoylemd you can use those weird signatures
<adaedra>
weird signatures?
<shevy>
# @note this code does not work
dfinninger has joined #ruby
<shevy>
[returns a duck]
<adaedra>
Yeah, syntax used by yard and surely others
baweaver has quit [Ping timeout: 240 seconds]
Cantaberry has joined #ruby
edwinvdgraaf has joined #ruby
BTRE has quit [Quit: Leaving]
stamina has quit [Quit: WeeChat 1.3]
_stu_ has joined #ruby
Jardayn has joined #ruby
SOLDIERz has joined #ruby
kies has quit [Ping timeout: 250 seconds]
centrx has quit [Remote host closed the connection]
timonv has quit [Quit: WeeChat 1.3]
dfinninger has quit [Remote host closed the connection]
timonv has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Nahra``` has quit [Ping timeout: 256 seconds]
<hoylemd>
jhass: I didn't know ruby had kwargs! maybe that's a better option.
rikai has quit [Ping timeout: 260 seconds]
<jhass>
hoylemd: optional since 2.0, required since 2.1
skade has quit [Quit: Computer has gone to sleep.]
anisha has quit [Quit: Leaving]
ornerymoose has joined #ruby
nertzy has joined #ruby
skade has joined #ruby
BSaboia has joined #ruby
ornerymoose_ has joined #ruby
atomical_ has joined #ruby
ornerymoose has quit [Ping timeout: 250 seconds]
ornerymoose_ is now known as ornerymoose
darkxploit has joined #ruby
yardenbar has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
trwyth has joined #ruby
<Walex>
I still have a bizarre problem with 'gem install' (and found it has some odd behaviour) and it is very baffling: in a given context when I run it with '--explain' it says it would install a number of dependencies but without '--explain' it does not install them, just downloads them and puts them in a cache. The two cases, including the environment: http://paste.ubuntu.com/13931597/http://paste.ubuntu.com/13931584/
<dahoo>
I am quite new to ruby and don't really know sometimes where to look in the documentation
dlitvak_ has quit [Ping timeout: 250 seconds]
chouhoul_ has quit [Remote host closed the connection]
<adaedra>
ruby-doc.org, rubydoc.info, devdocs.io
chouhoulis has joined #ruby
<adaedra>
You can also use pry to explore your objects
<adaedra>
?pry
<ruboto>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<dahoo>
so that's like debugging in ruby? can you recommend any editors? currently i am doing this in a simple text editor
chipotle has joined #ruby
rdavila has joined #ruby
atomical_ has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
jcromartie has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
puria has joined #ruby
agent_white has joined #ruby
solars has quit [Ping timeout: 250 seconds]
ekleog has left #ruby ["parting"]
<agent_white>
Moin
rodfersou|lunch has quit [Ping timeout: 250 seconds]
colli5ion has joined #ruby
colli5ion has quit [Max SendQ exceeded]
tagrudev has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: Lost terminal]
colli5ion has joined #ruby
sepp2k has joined #ruby
favadi has joined #ruby
rikai has joined #ruby
<adaedra>
dahoo: use what fits you. Many people do ruby with simple editors.
<adaedra>
for debugging, you have the `p` method, or use pry and pry-byebug for something more advanced.
uri_ has joined #ruby
claw has quit [Quit: No Ping reply in 180 seconds.]
TvL2386 has quit [Remote host closed the connection]
mary5030 has joined #ruby
akkad has joined #ruby
l0yd has quit [Remote host closed the connection]
quaristice has joined #ruby
elton has joined #ruby
claw has joined #ruby
atomical has quit [Ping timeout: 272 seconds]
rikai has quit [Ping timeout: 250 seconds]
colli5ion has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
atomical has quit [Client Quit]
_stu_ has quit [Quit: _stu_]
atomical has joined #ruby
B1n4r10 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mclong has joined #ruby
_stu_ has joined #ruby
tk__ has quit [Quit: ばいばい]
atomical has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
rikai has joined #ruby
nfk|laptop has joined #ruby
monthy has joined #ruby
bronson has joined #ruby
whippythellama has joined #ruby
colli5ion has joined #ruby
atomical has joined #ruby
chipotle has quit [Quit: cheerio]
bronson has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby
casadei has quit [Remote host closed the connection]
jhn has joined #ruby
colli5io_ has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
aganov has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
_stu_ has quit [Quit: _stu_]
dorei has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
colli5io_ has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
Nahra``` has joined #ruby
Rodya_ has joined #ruby
p0wn3d has joined #ruby
colli5ion has joined #ruby
colli5io_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
JDiPierro has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
baroquebobcat has quit [Quit: baroquebobcat]
hxegon has joined #ruby
trwyth has joined #ruby
victortyau has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
colli5io_ has joined #ruby
mememem has joined #ruby
rodfersou has joined #ruby
InvGhost has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
DaniG2k has joined #ruby
TheBloke has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
huyderman has quit [Remote host closed the connection]
kies has joined #ruby
aufi has quit [Quit: Konversation terminated!]
Nahra``` has quit [Ping timeout: 256 seconds]
Fernando1 has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
mememem has quit [Ping timeout: 256 seconds]
colli5io_ has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
blackms has joined #ruby
aspire has joined #ruby
mchu has joined #ruby
Hien has joined #ruby
casadei has joined #ruby
devoldmx has joined #ruby
DaniG2k has quit [Quit: leaving]
minimalism has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 256 seconds]
wildlander has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sneakerhax has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
pandaant has joined #ruby
hxegon has quit [Ping timeout: 256 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
jas02 has quit [Quit: jas02]
dlitvak_ has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
gizmore has joined #ruby
scepticulous has quit [Quit: Konversation terminated!]
bMalum has joined #ruby
delsol has joined #ruby
ruby-lang143 has joined #ruby
<ruby-lang143>
Hey, is anyone here?
<jhass>
ruby-lang143: you seem to be :)
<ruby-lang143>
That's true. Good call
<centrx>
One is a crowd
<ruby-lang143>
I just have what I thought to be a seemingly simple question but I can't figure out the answer. It's about some code...Obviously. This is my first time on here, is there protocol for sending in snippits?
<Papierkorb>
and france is bacon
<jhass>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
tenderlove has quit [Ping timeout: 250 seconds]
<jhass>
paste it there, enable syntax highlighting, post link
<ruby-lang143>
require "./todo_item" class TodoList attr_reader = :name, :todo_items def initialize(name) @name = name @todo_items = [ ] end def add_item(name) todo_items.push(TodoItem.new(name)) end end todo_list = TodoList.new("Groceries") todo_list.add_item("Milk") todo_list.add_item("Eggs") puts todo_list.inspect =begin require "./todo_item" class TodoList attr_reader :name, :todo_items def initialize(name) @name = n
<jhass>
ruby-lang143: see above
arup_r has joined #ruby
niftylettuce has joined #ruby
puria has quit [Ping timeout: 272 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Quit: Connection closed for inactivity]
<ruby-lang143>
Can anyone tell me what the deal is? It's literally the very basics, and I could move on in what I am doing, but I want to know what the hell the bug is.
edwinvdgraaf has joined #ruby
<delsol>
if I have gems installed on one machine, is there an easy way to get them onto another machine?
<jhass>
ruby-lang143: "attr_reader = :name, :todo_items" try to explain what this line does to me
<jhass>
now compare your two code snippets again, what difference can you find?
dfinninger has joined #ruby
<ruby-lang143>
That's the problem I have been forcing myself to go through these code snippets and Im losing the ability to REALLY focus. I understand what's going on but needed another set of eyes to point out the obvious.
<jhass>
ruby-lang143: well, I elaborated on a particular line here for some time, how about you focus on those two lines? ;)
sneakerhax has joined #ruby
suchness has joined #ruby
cwong_on_irc has joined #ruby
<jhass>
copy paste them directly below each other or something
<ruby-lang143>
I have done that.
<jhass>
ruby-lang143: okay, you do realize attr_reader :foo, :bar is just a method call and you can add () to method calls, foo :x -> foo(:x), right?
krobzaur has joined #ruby
jbrhbr has joined #ruby
<jhass>
try adding parens to the line and see what ruby thinks
edwinvdgraaf has quit [Remote host closed the connection]
elton has quit [Ping timeout: 250 seconds]
<ruby-lang143>
which line?
<jhass>
either
<jhass>
you want to find out how they differ so you got to understand them both
<ruby-lang143>
But both my code that is commented and the code uncommented are the exact same... I think.
bronson has quit [Remote host closed the connection]
<jhass>
but they're not
<jhass>
in fact one should throw you a NoMethodError when you run it
<ruby-lang143>
OH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
devbug has quit [Read error: Connection reset by peer]
<ruby-lang143>
IT'S THAT DAMN =
<jhass>
yeah, the one I've been asking you questions about all the time! ;)
<ruby-lang143>
I know. But I just keep glazing over it over and over again
InvGhostt has joined #ruby
kobain has quit [Read error: Connection reset by peer]
<ruby-lang143>
Man, this is why sometimes Id rather just be an alcoholic than a developer.
<jhass>
attention to detail is certainly needed
kalopsian has quit [Quit: leaving]
cdg has joined #ruby
<ruby-lang143>
Yeah, and I've done some small work and got some small projects completed, but the smallest of things can trip up even the most learned people I guess.
supermarin has joined #ruby
darkxploit has joined #ruby
<ruby-lang143>
Ok, I have another question if you have the time and patience to listen to me again.
edwinvdgraaf has joined #ruby
InvGhost has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
podman has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
banister has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
trwyth has joined #ruby
polysics has joined #ruby
nfk|laptop has quit [Quit: yawn]
<ruby-lang143>
What are some of the best ways to put Ruby into practice? I really want to use and learn Ruby, not just in Rails, but I want to learn to use Ruby. Despite my obvious blindness shown today, I feel like I have a grasp of the language but no direction from here.
supermarin has quit [Remote host closed the connection]
<jhass>
my advice is always to look for things you do routinously, sum some spreadsheets, click something on some website or whatever, limited scope but affecting your existing workflows
B1n4r10 has joined #ruby
<jhass>
and try to automate it as much as possible using ruby
pdoherty has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
<ruby-lang143>
I know what you just said, but I would have no idea how to begin doing that with Ruby
<jhass>
well, let's keep the ruby part out of the mind for now, are there any such tasks you could identify?
yqt has quit [Ping timeout: 250 seconds]
<jhass>
(that's btw 70% of your later job as a software engineer, identify and split up tasks/workflows)
ElFerna has joined #ruby
<ruby-lang143>
I see. I want to know more about that kind of life, but my workflow right now is Naval Security on escort missions in the middle east.
speakingcode has joined #ruby
Wsewolod has joined #ruby
kalopsian has joined #ruby
kmckelvi1 has quit [Ping timeout: 250 seconds]
kalopsian has quit [Client Quit]
supermarin has joined #ruby
<ruby-lang143>
Im at a wall, and have no community around (in person) to help me over. So, I am trying to learn on my own as much as possible for when I can get out and get some work and experience.
<jhass>
that sounds like a lot of reports to fill
voodo has quit [Quit: Leaving...]
<ruby-lang143>
At times yeah.
Fernando1 has joined #ruby
<ruby-lang143>
I guess that's true. Lots of paperwork, and training records.
<jhass>
so what technology are these reports filled with? word? some online form? good old printed things?
<ruby-lang143>
Printed things usually. But there is some computer work such as evaluations and things.
kalopsian has joined #ruby
<ruby-lang143>
It's usually some fillable adobeX file
<jhass>
so my first rough ideas (I still know too little about the actual process) is to look for fields that you can fill automatically, your name, the date and whatever
[Butch] has joined #ruby
kalopsian has quit [Client Quit]
<ruby-lang143>
Yeah, last four of my social
<jhass>
note this is not totally about something you dare to actually use afterwards, it's about knowing the problem domain well already
InvGhostt has quit [Ping timeout: 250 seconds]
<ruby-lang143>
Definitely not. There is no way the NAVY is going to just let me install and use my own program. That have special jobs for people that tamper with government software.
<jhass>
ah so no chance to fill them on your own computer?
baroquebobcat has joined #ruby
<ruby-lang143>
Unfortunately no. Got to keep it on a secret network
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
<jhass>
mh, but I hope that could give you some ideas for the general direction I'm going for
<jhass>
solve a tasks that you're affected by
<ruby-lang143>
I really am stretching way out of my area of work here. But it's because I don't exactly care for what I do.
dfinninger has quit [Remote host closed the connection]
<jhass>
that's fine with me, if you make it you'll have good job prospects
colleenmcguckin has joined #ruby
<jhass>
the industry is in need of people that know some particular problem domain well and just enough code to be able to explain it to the programmers
favadi has joined #ruby
<ruby-lang143>
Definitely, having NAVY service on my resume it should be easy(ier) <= I know that's wrong, but you get the picture
<dahoo>
programming is really hard in my opinion
kobain has joined #ruby
<ruby-lang143>
And yeah, I really want to learn what to do with it. I love the fact that it's hard.
<dahoo>
I am studying computer science and sometimes it's abit overwhelming
<jhass>
anyway, if you do find something you think you could code feel free to ask for pointers as to what libraries to look at etc.
favadi has quit [Client Quit]
supermarin has quit [Remote host closed the connection]
<ruby-lang143>
Are there any simple projects you could suggest working on?
supermarin has joined #ruby
InvGhostt has joined #ruby
<jhass>
not really, no. As said as long as it doesn't affect you and you already know the problem domain well enough, your first project will be highly frustrating IME
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
colleenmcguckin has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<ruby-lang143>
I guess so. And I think I knew that, but didn't want to admit it.
tenderlove has joined #ruby
kalopsian has joined #ruby
<mchu>
how do i get bundle to run on a ruby version that doesnt support it?
moeabdol has joined #ruby
kalopsian has quit [Client Quit]
kalopsian has joined #ruby
<jhass>
if you don't know the problem domain already you should at least have another big motivation factor, like let it be you really want to achieve, like a simple game idea you have or a music player that doesn't suck for you or whatever
<jhass>
*be something
<jhass>
mchu: which one would that be?
kalopsian has quit [Client Quit]
kalopsian has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has quit [Client Quit]
<mchu>
it’s 2.1.5, however there was a .ruby-version file.. and that really confused me. gave me some issues I think i already solved
mustmodify has joined #ruby
devbug has joined #ruby
moeabdol has quit [Client Quit]
dfinninger has joined #ruby
shanemcd has quit [Remote host closed the connection]
<jhass>
mchu: bundler definitely is compatible with Ruby 2.1.5
kalopsian has joined #ruby
synthroid has joined #ruby
<mchu>
i got this error when i did bundle install : The `bundle' command exists in these Ruby versions:
<mustmodify>
Here's a blog post in which the author suggests using sprintf() to specify the number of significant digits. It's clever but feels sooo wrong. There must be a way to get numbers into exponential form and ask for that data rather than using this hack. Any ideas? http://six-impossible.blogspot.com/2011/05/significant-digits-in-ruby-float.html
<mchu>
2.0.0-p598
<mchu>
2.1.2
<mchu>
2.2.0
<mchu>
woops, sorry for that
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
what is your ruby version?
RegulationD has quit [Remote host closed the connection]
<mchu>
oh weird. i thought i switched to 2.1.5, let me try again
jbrhbr has quit [Quit: Leaving.]
dlitvak_ has joined #ruby
haylon has joined #ruby
synthroid has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 272 seconds]
<jhass>
mchu: run gem install bundler again
synthroid has joined #ruby
<mchu>
i have another question, sorry im kind of new
<mchu>
do you mind if i direct message you so i dont spam?
d0nn1e has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
nettoweb has joined #ruby
<jhass>
yes, you don't spam
<jhass>
if it's more than 3 lines /topic
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<haylon>
Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
tenderlove has quit [Ping timeout: 256 seconds]
tomphp has quit [Ping timeout: 256 seconds]
d0nn1e has joined #ruby
<ruby-lang143>
Thanks for the help Jhass. Im out.
<jhass>
ruby-lang143: hf
rakm has joined #ruby
<mchu>
so im working on an open source project and i’d like to just get it running. however theres a file name ‘.ruby-version’ and in that file it says 2.1.5@abc (actual word is replaced). why is it like this?
hololeap has joined #ruby
<mchu>
jhass: I ended up just installing ruby 2.1.5 , that is fine right?
<jhass>
sure
<jhass>
that's a feature of RVM, the part behind the @ is called the gemset
<jhass>
RVM allows to have different gemsets in order to isolate applications dependencies from each other
<jhass>
a feature that IMO got obsolete with bundler these days
<mchu>
jhass: o okay. thanks appreciate your help
<jhass>
and actually these days it's recommended to have the gemset name inside a .ruby-gemset file, not inside .ruby-version
ornerymoose has quit [Quit: ornerymoose]
dlitvak_ has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
Ziggy has joined #ruby
Ziggy has quit [Changing host]
Ziggy has joined #ruby
kobain has quit [Read error: Connection reset by peer]
Fernando1 has quit [Ping timeout: 240 seconds]
kalopsian has quit [Quit: leaving]
kalopsian has joined #ruby
imperator has joined #ruby
<mchu>
jhass: oh i see
ruby-lang143 has quit [Ping timeout: 252 seconds]
<tildes>
is treetop still the way to go, when parsing expression grammars with ruby? I am asking because I notice the latest commit is 2,5 years old - either it became perfect / something else is hotter right now
colegatron has quit [Ping timeout: 240 seconds]
<mchu>
jhass: so.. i just bundle install and nokogiri gave me an error.. read stackoverflow and it says to ‘sudo gem uninstall nokogiri’ then install it again.. BUT i got the same error as before even after switching to 2.1.5…. rbenv: version `2.1.5@abc’ is not installed. this .ruby-version file is really messing w/ me
User458764 has joined #ruby
<jhass>
I don't follow
deanj has left #ruby ["WeeChat 1.0.1"]
Fernando1 has joined #ruby
dlitvak has joined #ruby
<jhass>
you seem to have switched to a different problem description mid sentence
<mchu>
ok right hahaa
<imperator>
rubygems 2.5.1 released
troulouliou_div2 has joined #ruby
ElFerna has joined #ruby
<mchu>
so when i typed in the command to uninstall Nokogiri, i got the error ‘rbenv: version `2.1.5@abc’ is not installed
edwinvdgraaf has joined #ruby
<mchu>
i dont understand why i’m still getting that
B1n4r10 has quit [Ping timeout: 250 seconds]
<jhass>
mchu: well it looks like rbenv doesn't support the gemset syntax in .ruby-version files (just one reason for the separate files)
ElFerna has quit [Client Quit]
<jhass>
(and just one reason to not use rbenv :P)
<mchu>
darn
<imperator>
been using rbenv for a while, never saw that
<mchu>
should i download rvm then?
<jhass>
mchu: if you can't change the .ruby-version file you have to use RVM
<shevy>
imperator you are my announce bot! I'm gonna update
bb010g has joined #ruby
pdoherty has joined #ruby
yalue has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
how do I query ruboto's gem version again?
kalopsian has quit [Quit: leaving]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has joined #ruby
Fernando1 has quit [Ping timeout: 272 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator>
?gem -v
<ruboto>
-v, I don't know anything about gem
s00pcan has quit [Remote host closed the connection]
devbug_ has joined #ruby
chihaja has joined #ruby
<jhass>
do you mean eval.in's?
InvGhosttt has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
mchu: "review bla/.log to see what happened"
B1n4r10 has joined #ruby
<norc>
mchu: It is a known bug in Rubygems. Update it to 2.4.5 or later.
mustmodify has left #ruby [#ruby]
<jhass>
wat, really?
supermarin has joined #ruby
InvGhostt has joined #ruby
<norc>
jhass: Yes.
<jhass>
do I even want to know?
<norc>
Depends on your curiositzy I suppose.
<imperator>
mchu: "gem update --system"
<Papierkorb>
Yes of course
shanemcd has joined #ruby
kfogel has joined #ruby
* kfogel
watches mchu's conversation, hopes to learn, since is also a newbie on the same project
yos7ph has joined #ruby
yos7ph has quit [Client Quit]
supermarin has quit [Remote host closed the connection]
<norc>
The best thing I ever did on OSX was not using the system Ruby.
<norc>
I mean it is really neat to get 2.0.0 out of the box... but still...
polysics has quit [Remote host closed the connection]
<Papierkorb>
I'm not sure yet if having no ruby at all, or a completely outdated ruby by default, on a system is more destructive
polysics has joined #ruby
<norc>
Papierkorb: Honestly it is much worse on Ubuntu.
InvGhosttt has quit [Ping timeout: 264 seconds]
gits1225 has left #ruby [#ruby]
<Papierkorb>
norc: yeah, but everything debian-based is horribly outdated. Not sure about other distros besides Arch
B1n4r10 has quit [Ping timeout: 250 seconds]
<norc>
Papierkorb: Honestly most of it changed for the better since Debian Lenny, and Ubuntu generally has a tendency to bring relatively new packages.
<norc>
Ruby is just rather extreme
dlitvak has quit [Remote host closed the connection]
psy has joined #ruby
chihaja has joined #ruby
psy has quit [Max SendQ exceeded]
dlitvak has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
psy has joined #ruby
ElFerna has joined #ruby
<norc>
Papierkorb: We once had a project where we had to find a certain 15 year old specific libc because of a bizarre dependency. So once I mentioned it, the other developer turns around and says: "Install debian current stable and apt-get install it" - it was hilarious considering the day.
jhn has joined #ruby
mrtomme has quit [Ping timeout: 246 seconds]
jbrhbr has joined #ruby
The_Phoenix has joined #ruby
<Papierkorb>
norc: wow .. just wow .. isn't the glibc quite good at downwards compatibility? Was it maybe more of an ABI issue?
<hoylemd>
Hey, is there a way to have a bit of code that runs if an error was rescued, no matter the error, while still having error-specific rescues?
<Papierkorb>
Though no idea if the ABI of C really changed over the last years. the GNU/C++ one did change every 4 years or so
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrtomme has joined #ruby
based_pdev_ has joined #ruby
based_pdev has joined #ruby
jhn has quit [Client Quit]
Fernando1 has joined #ruby
<norc>
Papierkorb: From what I can recall the problem was Dreppers ubsurd egolomaniac personality writing glibc in a way that has made it impossible to statically link it.
<norc>
Just because he thinks he knows better.
TomPeed has joined #ruby
polysics has quit [Ping timeout: 256 seconds]
ElFerna has quit [Client Quit]
kmckelvi1 has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
And Qt has a hard dependency on the glibc - together with some dependencies from the loader on the embedded linux we had, we ended up with a rather specific version requirement.
<hoylemd>
Actually I think I just figured out how to do it while typing out claririfcation. Thanks for rubber-ducking #ruby c:
<Papierkorb>
Oh yeah, iirc this topic comes about every so often in the community how they want to get rid of statically linking the glibc
<Papierkorb>
won't help you of course for shared libraries
NeverDie has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<Papierkorb>
norc: but yeah, those issues are .. .. 'fun' .. never had to go that deep though
<norc>
Papierkorb: I mean I understand if they advise against it, but intentionally writing it so that it will just cause your linker to throw errors all around is just wrong.
<Papierkorb>
agree
ElFerna has joined #ruby
* Papierkorb
afk
platzhirsch has left #ruby [#ruby]
<norc>
hoylemd: Sorry. Of course you want to use ensure.
trwyth has joined #ruby
djellemah has joined #ruby
cpup has joined #ruby
mahk has joined #ruby
tenderlove has joined #ruby
symm-_ is now known as symm-
tildes has quit [Ping timeout: 250 seconds]
Jackneill has joined #ruby
devoldmx has joined #ruby
dlitvak has joined #ruby
baweaver has joined #ruby
adac has joined #ruby
sapslaj has quit [Ping timeout: 256 seconds]
`based_pdev` has joined #ruby
chihaja has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
sapslaj has joined #ruby
saddad has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
dzejrou has joined #ruby
based_pdev_ has quit [Ping timeout: 272 seconds]
based_pdev has quit [Ping timeout: 272 seconds]
colleenmcguckin has joined #ruby
based_pdev has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
aibot has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.3]
aibot has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
fantazo has joined #ruby
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kalopsia1 has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
Peg-leg has quit [Quit: Leaving.]
cirn0 has joined #ruby
sphex_ has quit [Ping timeout: 240 seconds]
desmondhume has quit [Remote host closed the connection]
colleenmcguckin has quit [Ping timeout: 250 seconds]
<hoylemd>
norc: why apologise? y'all solved me problem either way :D
djbkd has joined #ruby
<norc>
hoylemd: Chatting OT while not seeing a Ruby question.
cirn0 has quit [Client Quit]
kalopsia1 has quit [Client Quit]
kalopsia1 has joined #ruby
<norc>
It is a habit here to stop OT chats when someone brings up an actual Ruby question... :)
ornerymoose has joined #ruby
based_pdev_ has joined #ruby
gregf has joined #ruby
TomPeed is now known as _based_pdev_
<hoylemd>
Ah. That's a good policy to have. In that case. I, hoylemd, developer of ruby codes, hereby forgive this most heinous transgression ;)
RegulationD has quit [Ping timeout: 250 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
bojuana has joined #ruby
`based_pdev` has quit [Ping timeout: 240 seconds]
colleenmcguckin has joined #ruby
kalopsia1 has quit [Client Quit]
adac has quit [Ping timeout: 256 seconds]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
based_pdev has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 256 seconds]
_based_pdev_ is now known as pdev_paradise
matp has joined #ruby
dzejrou has quit [Quit: Leaving]
dzejrou has joined #ruby
dahoo has quit [Quit: Page closed]
pandaant has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
pdev_paradise is now known as _based_pdev_
nertzy has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
<delsol>
hxegon: :)
berserk_ren has joined #ruby
supermarin has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
supermarin has quit [Remote host closed the connection]
<shevy>
lol
hahuang65 has joined #ruby
RobertBirnie has joined #ruby
dfinninger has quit [Remote host closed the connection]
berserk_ren has quit [Remote host closed the connection]
colleenmcguckin has quit [Read error: Connection reset by peer]
agent_white is now known as agent_fake
colleenmcguckin has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
agent_fake is now known as agent_white
berserk_ren has joined #ruby
yardenbar has joined #ruby
arup_r has quit []
zarubin has joined #ruby
zarubin has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
dfinninger has joined #ruby
Fernando1 has quit [Quit: WeeChat 1.3]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
jgt has quit [Ping timeout: 250 seconds]
kalopsia1 has joined #ruby
fantazo has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
mchu has quit [Quit: mchu]
berserk_ren has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
<norc>
shevy: Stop laughing and go back writing code.
supermarin has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
elton has joined #ruby
B1n4r10 has joined #ruby
devbug has joined #ruby
joast has joined #ruby
kalopsia1 has quit [Quit: leaving]
spider-mario has joined #ruby
berserk_ren has joined #ruby
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
bMalum has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
adac has joined #ruby
Jet4Fire has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
<Jet4Fire>
Hello!
elton has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
<xybre>
!
avahey has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
desmondhume has joined #ruby
kalopsia1 has joined #ruby
desmondhume has quit [Remote host closed the connection]
kirun has joined #ruby
desmondhume has joined #ruby
colli5ion has joined #ruby
ElFerna has joined #ruby
kalopsia1 has quit [Client Quit]
colli5ion has quit [Client Quit]
frem has joined #ruby
dfinninger has quit [Remote host closed the connection]
pdoherty has joined #ruby
berserk_ren has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
blackms has quit [Quit: Leaving]
kalopsia1 has joined #ruby
riceandbeans has joined #ruby
<riceandbeans>
what's the likelihood of needing to do a linked list in ruby?
zast has joined #ruby
SCHAAP137 has joined #ruby
desmondhume has quit [Ping timeout: 256 seconds]
<eam>
are we counting homework
<xybre>
riceandbeans: pretty much nil, except for interviews
<riceandbeans>
that's pretty much what I told my friend, but he didn't seem to understand
jessemcgilallen has quit [Quit: jessemcgilallen]
<riceandbeans>
I was like, ruby is too high level, but they'll want to ask to see that you understand data structures and if you ever need to do anything lower level you may need to know how to do a linked list
<xybre>
I've been asked about low level data structures in Ruby interviews maybe 5% of the time.
kmckelvi1 has quit [Ping timeout: 256 seconds]
<xybre>
I was asked to implement a linked list exactly once.
<riceandbeans>
yeah, but coding interviews are stupid
<riceandbeans>
they're like calculus classes
<riceandbeans>
things you will likely never actually need to do or use and not how you actually code
<eam>
pairing interviews are good, contrived stuff generally isn't
rakm has joined #ruby
tenderlove has joined #ruby
bMalum_ has joined #ruby
<shevy>
pair brogramming!
<xybre>
Calculus is more useful than most interview questions.
<xybre>
shevy: bear brogramming
nfk|laptop has joined #ruby
Kruppe has quit [Remote host closed the connection]
dlitvak has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
slact has joined #ruby
symbol has joined #ruby
Kruppe has joined #ruby
<haylon>
Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
<eam>
shevy: why's it gotta be brogramming :(
bMalum has joined #ruby
Radcircle has joined #ruby
tenderlove has quit [Ping timeout: 272 seconds]
tb1 has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
bMalum_ has quit [Ping timeout: 272 seconds]
Radcircle has quit [Client Quit]
adac has quit [Ping timeout: 256 seconds]
pietr0 has joined #ruby
freerobby has quit [Quit: Leaving.]
kmckelvi1 has joined #ruby
bronson has quit [Remote host closed the connection]
freerobby has joined #ruby
freerobby has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
freerobby has joined #ruby
zarubin has joined #ruby
bojuana has quit [Quit: Leaving]
based_pdev_ has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
sdothum has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
delsol has quit [Quit: Page closed]
aspire has quit [Quit: Leaving]
dfinninger has joined #ruby
berserk_ren has joined #ruby
InvGhostt has quit [Ping timeout: 250 seconds]
zarubin has quit [Ping timeout: 250 seconds]
kalopsia1 has quit [Quit: leaving]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
cschneid_ has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<cschneid_>
Are Hash#merge and Hash#merge! the same?
<cschneid_>
oh, I see, its just if they mutate the original
Trynemjoel has joined #ruby
<cschneid_>
They always return the resulting hash though it seems?
SCHAAP137 has quit [Quit: Leaving]
Vitor_ has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
<shevy>
eam hah for bearly brogramming hugs!
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
dionysus69 has joined #ruby
<Sou|cutter>
cschneid_: I find it's better to never depend on the return value of a bang method. It is hard to keep track of which ones return what
berserk_ren has quit [Remote host closed the connection]
<cschneid_>
Sou|cutter: yeah - that's what I thought my error was a second ago. But apparently not :)
<jhass>
cschneid_: mh, looks like it, interesting
<jhass>
normally core ! methods would return nil if they make no change
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
sphex has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
<shevy>
azgil you should chop off the '<' and '>' :D
dfinninger has quit [Remote host closed the connection]
<azgil>
ok
lemur has quit [Ping timeout: 264 seconds]
colleenmcguckin has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
lacuna_ has joined #ruby
colleenm_ has joined #ruby
goodcodeguy has joined #ruby
akem has joined #ruby
QORRiE has joined #ruby
haylon has left #ruby [#ruby]
lacuna_ has quit [Read error: Connection reset by peer]
AndroidLoverInSF has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna_ has joined #ruby
tomphp has quit [Client Quit]
elton has joined #ruby
ElFerna_ has quit [Quit: WeeChat 1.3]
ta_ has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
hxegon has quit [Quit: leaving]
daivyk has quit [Quit: Part & Quit]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<goodcodeguy>
I'm trying to percent encode a url path for a webservice call and I was trying to use Addressable to do so but it's not doing what I expect. https://gist.github.com/goodcodeguy/4e72ca1e61b3dc1460aa - The first comment shows what I am expecting to get and line 2's comment shows hte code and what I am actually getting, any insight into what I sohuld be doing instead?
_djbkd has quit [Ping timeout: 272 seconds]
akem has quit [Remote host closed the connection]
_stu_ has quit [Quit: _stu_]
elton has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
felltir has joined #ruby
ElFerna has joined #ruby
<norc>
goodcodeguy: It puts out whisp%C3%A4 correctly.
<norc>
goodcodeguy: Can you gist your actual code?
nettoweb has joined #ruby
shanemcd has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
tomphp has joined #ruby
_stu_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lacuna_ has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
tomphp has quit [Client Quit]
baroquebobcat_ has joined #ruby
shanemcd has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ is now known as baroquebobcat
tb1 has quit [Quit: WeeChat 1.0.1]
jgt has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
hxegon has joined #ruby
akem has joined #ruby
vdamewood has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
kalopsian has joined #ruby
<jhass>
^ for me too
<goodcodeguy>
norc: sorry stepped away; oddly when I do run it in pry it does but not within the context of my gem
rismoney1 has quit [Remote host closed the connection]
blackgoat has joined #ruby
<f00bar-32>
How can I sort by offer[1] if market contain a list of arrays. {% for offer in market}
dfinninger has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
<shevy>
f00bar-32 what the hell mate
<shevy>
that's like random-out-of-nowhere and no code
supermarin has quit [Remote host closed the connection]
<shevy>
in general you can define the criteria to sort for in the block
BTRE has quit [Quit: Leaving]
<Ox0dea>
f00bar-32: How many elements in `offer`?
dhollinger has joined #ruby
PaulCapestany has quit [Quit: .]
chipotle has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
zarubin has joined #ruby
<f00bar-32>
Ox0dea: 2 elements are in offer and i like to sort by offer[1]
ldnunes has quit [Quit: Leaving]
<eam>
Ox0dea: that's even weirder
<norc>
Ox0dea: I hate Ruby. So far I havent found a simple way to manipulate the control frames, instructions or any of the likes. :(
ta has joined #ruby
hxegon has joined #ruby
PaulCapestany has joined #ruby
darkf has quit [Quit: Leaving]
DeXterbed has quit [Read error: Connection reset by peer]
DeXterbed has joined #ruby
<Ox0dea>
f00bar-32: `sort_by(&:last)`, then.
<Ox0dea>
eam: Aye, that was my reckonin' too.
<Ox0dea>
norc: From Ruby, you mean?
<norc>
I was really hoping to be able to load a compiled iseq and execute it as a block, but all the fun functions are not exported and thus not avaliable through dyload..... :(
<norc>
Ox0dea: Yeah.
<norc>
Pure Fiddle.
zarubin has quit [Ping timeout: 256 seconds]
<Ox0dea>
What a pair of terms. :P
<norc>
Heh.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<norc>
All the Ruby hacks in the world are just boring if you cannot share them with eval.in.
replay has joined #ruby
<norc>
But at least I got to learn a lot about how Ruby initializes the VM.
<eam>
Ox0dea: actually I take it back, I think it's less weird :D
beardo_ has joined #ruby
<norc>
And I meant dlsym of course, not dyload.
nettoweb has joined #ruby
<Ox0dea>
norc: Are you moving onto Python, then? :/
<Ox0dea>
eam: How so?
<eam>
well, that's just using the fact that the canonical escape of a string isn't the only way to create the literal
<Ox0dea>
`?\\` isn't weird at all, to be frank.
<eam>
?\\ is weird because ? should be followed by exactly one character in the parser
<Ox0dea>
I think that's weird, but not the backslash one.
<eam>
well, it's weird that ?\ isn't "\"
<Ox0dea>
Then again, why bother to escape " in this case?
<Ox0dea>
eam: There's no such thing.
n_blownapart has joined #ruby
<eam>
yes yes "\\"
yfeldblum has joined #ruby
Suntzu has joined #ruby
krobzaur has quit [Ping timeout: 272 seconds]
juddey has joined #ruby
centrx has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
baweaver has joined #ruby
ElFerna has joined #ruby
onechr has joined #ruby
onechr has left #ruby [#ruby]
bronson has joined #ruby
lemur has joined #ruby
elton has joined #ruby
<f00bar-32>
Can I access the key of a hash with [0]? WTF
shanemcd has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<havenwood>
f00bar-32: Whatcha mean?
<eam>
f00bar-32: sure why not
endriuuuu has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<endriuuuu>
hi
<havenwood>
endriuuuu: hi
<endriuuuu>
sup havenwood
<endriuuuu>
hows your weekend going
<endriuuuu>
?
myztic has quit [Ping timeout: 256 seconds]
<endriuuuu>
fucking eminem
<endriuuuu>
playing in my earthphones
<endriuuuu>
when i like drum and bass you know
<endriuuuu>
drunk
<endriuuuu>
shit happens
<havenwood>
?ot endriuuuu
<ruboto>
endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<ruurd>
jhass freudian slip? imagines instead of images?
<Ox0dea>
ruurd: jhass is a huge Beatles fan.
akem has joined #ruby
codecop has quit [Remote host closed the connection]
Vitor_ has quit [Ping timeout: 256 seconds]
fantazo has quit [Ping timeout: 272 seconds]
<Ox0dea>
eam: I suppose you're right; Korzybski is probably the most relevant theorist to that particular discussion.
<ruurd>
O thank you now I'm hearing 64
ta has quit [Remote host closed the connection]
bronson has joined #ruby
ruby-lang075 has quit [Quit: Page closed]
casadei has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
banister has joined #ruby
sucks has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 250 seconds]
sucks has joined #ruby
daivyk has joined #ruby
dlitvak has quit [Remote host closed the connection]
trwyth has joined #ruby
<endriuuuu>
s
<endriuuuu>
ey guys
<jhass>
?guys endriuuuu
<ruboto>
endriuuuu, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
Spami has joined #ruby
<endriuuuu>
?
<endriuuuu>
RUSSIA VS SYRIA ?>
<jhass>
not going to discuss it here, do you have a ruby question?
<jhass>
endriuuuu: if you don't have a Ruby question, I'd like you to leave
skade has quit [Quit: Computer has gone to sleep.]
<hxegon>
?ot endriuuuu
<ruboto>
endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
lxsameer has quit [Quit: Leaving]
<endriuuuu>
bitch
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra>
!mute endriuuuu
rodfersou has quit [Quit: leaving]
<havenwood>
!kick endriuuuu be nice
endriuuuu was kicked from #ruby by ruboto [be nice]
dopieee has joined #ruby
dfockler has quit [Ping timeout: 250 seconds]
sneakers has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 272 seconds]
delsol has joined #ruby
Rodya_ has quit [Remote host closed the connection]
mchu has quit [Quit: mchu]
lemur has joined #ruby
AndroidLoverInSF has quit [Quit: Leaving]
AndroidLoverInSF has joined #ruby
chipotle has quit [Quit: cheerio]
jackcom has joined #ruby
Rush_ has joined #ruby
f00bar-32 has quit [Read error: Connection reset by peer]
f00bar-32 has joined #ruby
Cohedrin has joined #ruby
Rush has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
sucks has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
mchu has joined #ruby
<Rush>
a = lambda { |foo:| puts 'called'}, how can I programatically check the required arguments for such lambda or proc? (without rescuing from exceptions ArgumentError: missing keyword: foo)
unreal_ has quit [Read error: Connection reset by peer]
delsol has left #ruby [#ruby]
<hxegon>
what does |foo:| mean?
<jhass>
Rush: that said, given this isn't purely academical, my estimate for whether you're doing something wrong is pretty high
<jhass>
hxegon: required keyword argument
<hxegon>
jhass, ty
unreal has joined #ruby
skade has joined #ruby
lemur has joined #ruby
<Rush>
jhass: well, I can only say that maybe you're right but I'm playing with a serializing framework, and some dependency injection ideas, so academically speaking it's a science experiment and all rules are out :)
<Ox0dea>
$1 is nil at program start; everything else builds around that.
mclong has quit [Quit: Leaving]
<soahccc>
gosh anyone know how fast fail2ban is? It parses my log forever :<
threh has joined #ruby
synthroid has quit []
<Ox0dea>
soahccc: Bigger logs burn slower; that's just basic chemistry.
<jhass>
seems rather offtopic ;)
tomphp has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<soahccc>
rather yeah. It should help out my rails app :) 4GB access.log however takes some time I'm afraid. I haven't used fail2ban yet and I hope it tails after that initial load
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
firstdayonthejob has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
yalue has quit [Quit: return 0;]
<norc>
Ox0dea: Slower?`
bronson has joined #ruby
kirun has quit [Quit: Client exiting]
<norc>
I think you meant to say "longer".
<Ox0dea>
norc: It's a saying in Tennessee. Well, it's in Texas; it's probably in Tennessee.
kfogel has quit [Quit: Ex-Chat]
<norc>
Ox0dea: I got that reference immediately.
<Ox0dea>
<3
<norc>
And I am not even close to being a native speaker, let alone American.
Bugboy1028 is now known as DeafieGamer
<hxegon>
is this the reference that shames you if you make it twice?
<Ox0dea>
I've no trouble accepting that Bush's tomfoolery at microphones has spread far and wide.
saneax_AFK is now known as saneax
<norc>
Heh.
<norc>
hxegon: Funny.
ESpiney has quit [Quit: Leaving]
Tempesta has quit [Ping timeout: 256 seconds]
<norc>
Ox0dea: Yeah. You made peace with the fishes right?
mchu has joined #ruby
<Ox0dea>
norc: All in the interest of putting food on my family.
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
<norc>
Ox0dea: So is this the moment where we start a new Ruby idiom: "It's clearly a Bignum. It's got a lot of numbers in it." ?
kobain has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
Ox0dea has quit [Read error: No route to host]
dfinninger has quit [Remote host closed the connection]
<shevy>
lol
Ox0dea has joined #ruby
B1n4r10 has joined #ruby
<Ox0dea>
norc: I'm so glad you asked. I've been meaning to use Fiddle to add Bignum#[]=, but it gets hairy once the static array optimization hits its limit.
<Ox0dea>
How to reliably twiddle heap values?
<norc>
Say what?
<Ox0dea>
You know how small strings (<24 characters on 64-bit) are optimized to use a static array for storage?
TomPeed has joined #ruby
Wompy_ is now known as Wompy
<norc>
I have barely reached the impl of the VM, Im not even at Object implementations yet.
tenderlove has quit [Remote host closed the connection]
<Ox0dea>
`bn.as.heap` is not a VALUE, though.
babblebre has quit [Quit: Connection closed for inactivity]
zeroDivisible has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
zeroDivisible has joined #ruby
<norc>
Ox0dea: Sure, the only slightly annoying part is that you have to figure out whether BDIGIT is an unsigned int or unsigned short
<norc>
Which is still fairly easy.
DeXterbed has joined #ruby
elton has joined #ruby
<norc>
Ox0dea: Wait! Im blind.
tenderlove has quit [Ping timeout: 256 seconds]
<Ox0dea>
Hm?
<norc>
Ox0dea: Its a pointer. So everything you need to know is known.
myztic has joined #ruby
<Ox0dea>
Well, yes, it's on the heap.
<Ox0dea>
The heap is pointer city.
<Ox0dea>
> I don't see how to get at `bn.as.heap` without (hopefully) plucking the address out of raw memory.
kmckelvi1 has joined #ruby
<Ox0dea>
Do I have the right of it, then?
tvw has quit [Remote host closed the connection]
<norc>
What?
<Ox0dea>
How to get the address of `bn.as.heap`?
<myztic>
I know about http://ruby-community.com/pages/links I don't know if that makes sense, but what I want is a "traditional programming book" about ruby, I only seem to find lightweight tutorials, weird reference material and the like is there no concise well written proper book?
<norc>
You have a Fiddle::Pointer. All you do now is simple pointer arithmetic, using #ptr to deference into the next ptr.
<Ox0dea>
norc: And why would that magically get me to `bn.as.heap`?
lemur has quit [Remote host closed the connection]
<norc>
Ox0dea: A union is just syntactic sugar. In memory there is no union.
woodruffw has joined #ruby
<Ox0dea>
That doesn't mean a deref is guaranteed to get me there, though?
<dorei>
myztic: get the book coauthored by matz
solocshaw has joined #ruby
<myztic>
dorei: I thought about getting The Ruby Programming Language
<norc>
Ox0dea: Take the pointer of the object, add sizeof(RBasic) and you are at your heap object.
<myztic>
dorei: that is the one you mean I guess :)
<Ox0dea>
norc: Makes sense, but that's not a dereference.
<shevy>
myztic most of the ruby core/stdlib things that have been in 1.8 should work fine; a few things no longer exist though... parsedate or parsetime for instance. I found that out the hard way not long ago when I tried to update an old SVG library, it was using a lot of this parse* thing
djbkd has quit [Remote host closed the connection]
<myztic>
yeah ruby seems to be under heavy development
<Ox0dea>
norc: It is indeed the right address, because `size` is correct, but I'd expect to see a lot more "\xFF" in that output.
<myztic>
still the case or have things slowed down a bit
<myztic>
?
<norc>
Ox0dea: Im not sure whether size is in bytes
<Ox0dea>
Derp.
<shevy>
myztic depends at where you look at; there have been some projects that lost their maintainer
<shevy>
myztic ruby core team is very active though bugs.ruby-lang.org/projects/ruby-trunk