axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
mattwashere has quit []
Tharbakim has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 250 seconds]
codeurge has joined #ruby
edwardly has quit [Ping timeout: 272 seconds]
Tharbakim has joined #ruby
edwardly has joined #ruby
safetypin has joined #ruby
Hobogrammer has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
jancel has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mostlybadfly has joined #ruby
sandstrom has joined #ruby
jenrzzz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
panpainter has joined #ruby
jancel has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
braincrash has quit [Quit: bye bye]
mistermocha has quit [Ping timeout: 244 seconds]
tjbiddle has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
panpainter has quit [Ping timeout: 252 seconds]
elton has quit [Remote host closed the connection]
mistermocha has joined #ruby
aberen has joined #ruby
braincrash has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
mwlang has quit [Quit: mwlang]
mistermocha has quit [Ping timeout: 250 seconds]
aberen has quit [Ping timeout: 260 seconds]
zacstewart has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
ensyde__ has quit [Ping timeout: 246 seconds]
lightt has joined #ruby
k3rn31 has joined #ruby
Coldblackice has quit [Ping timeout: 258 seconds]
matp has quit [Remote host closed the connection]
nankyokusei has joined #ruby
fowlduck has quit [Quit: Leaving...]
jancel has quit [Remote host closed the connection]
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
der-landgraf has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
ddfreyne_ has quit [Quit: WeeChat 1.1.1]
mwlang has joined #ruby
phredus has joined #ruby
hxegon is now known as hxegon_afk
yfeldblum has quit [Remote host closed the connection]
blackgoat has joined #ruby
B1n4r10 has joined #ruby
hk238 has joined #ruby
kareeoleez has joined #ruby
Rodya_ has joined #ruby
edwinvdgraaf has joined #ruby
yfeldblum has joined #ruby
gix has quit [Ping timeout: 276 seconds]
blackgoat has quit [Ping timeout: 258 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kgrz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
panpainter has joined #ruby
B1n4r10 has quit [Ping timeout: 252 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
highbass has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
zacstewart has quit [Ping timeout: 246 seconds]
gix has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
aries_liuxueyang has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
<highbass>
hey guys.. i am trying to daemonize process using "daemon" gem... there is an issue where daemon changes directory to '/' after it executes a process.. this is a problem as i need it to be run relative to the directory of execution
<highbass>
anyone know a way (outside of me harcoding chdir "/x/y/z" where i can make it change to the appropriate directory?
ta_ has quit [Read error: Connection reset by peer]
edwardly has quit [Max SendQ exceeded]
allcentury has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
aeterne has quit [Read error: Connection reset by peer]
jaguarma_ has joined #ruby
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
tjbiddle has joined #ruby
acidchild has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
<acidchild>
hello I am struggling to get SSL forwarding working with fluentd (i've googled and asked in fluentd channel) I am getting this error message. 2016-06-14 03:53:30 +0000 [trace]: plugin/output_node.rb:347:rescue in block in connect: SSLError error_class=OpenSSL::SSL::SSLErrorWaitReadable error=#<OpenSSL::SSL::SSLErrorWaitReadable: read would block> mtime=2016-06-14 03:51:47 +0000 host="1.logs.rs.int" port=24
SilverKey has quit [Quit: Halted.]
<acidchild>
284
<acidchild>
any advice on what OpenSSL::SSL::SSLErrorWaitReadable means would be greatful.
allcentury has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
moeabdol has joined #ruby
Guest64044 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
Rodya_ has quit [Remote host closed the connection]
emilkarl has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
LoneHerm_ has joined #ruby
DoubleMalt has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
charliesome has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
der-landgraf has joined #ruby
last_staff has joined #ruby
der-landgraf has quit [Client Quit]
yfeldblum has joined #ruby
aberen has joined #ruby
hahuang61 has joined #ruby
der-landgraf has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
panpainter has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
jancel has joined #ruby
agit0 has joined #ruby
certainty has joined #ruby
Madplatypus has joined #ruby
skade has joined #ruby
al2o3-cr has quit [Ping timeout: 244 seconds]
panpainter has quit [Ping timeout: 260 seconds]
axsuul has joined #ruby
<havenwood>
yesthatallen: If you have multiple cores you could use multiple jobs for the make step: -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
<havenwood>
yesthatallen: Like: make -j8
al2o3-cr has joined #ruby
jancel has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 250 seconds]
<havenwood>
(Or just plain `-j` if you want to use as many as possible.)
n1x-nz has joined #ruby
<havenwood>
yesthatallen: It sounds like this isn't an option for you, but Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
emilkarl has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
craigp has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
tref has joined #ruby
ta_ has joined #ruby
Brklyn has joined #ruby
zacstewart has joined #ruby
firstdayonthejob has quit [Ping timeout: 246 seconds]
blaxter has joined #ruby
karmatr0n has joined #ruby
blaxter has quit [Client Quit]
TomyLobo has quit [Ping timeout: 244 seconds]
mooman has joined #ruby
andikr has joined #ruby
Brklyn has quit [Ping timeout: 272 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
emilkarl has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
karmatr0n has quit [Ping timeout: 250 seconds]
der-landgraf has joined #ruby
c0mrad3 has joined #ruby
tvw has joined #ruby
snguyen has joined #ruby
unvexp has quit [Quit: Leaving]
Sashimi has joined #ruby
kareeoleez has quit []
charliesome has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
tref has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Quit: tjbiddle]
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
<kgrz>
skipping the documentation might also help. --disable-install-{doc,rdoc,capi}
Hounddog has joined #ruby
aswen has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Ping timeout: 258 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby
neanderslob has joined #ruby
emilkarl has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 272 seconds]
tjbiddle has joined #ruby
lightt has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has joined #ruby
tref has joined #ruby
tref has quit [Client Quit]
Hounddog has joined #ruby
dcunit3d has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has quit [Quit: My computer has gone to sleep.]
jaguarma_ has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
aberen has joined #ruby
claw has quit [Read error: Connection reset by peer]
<chipotle>
i am hoping my ipad air 2 is defective. i am lucky if it lasts more than 5 hours of reading in a web browser and/or dropbox and/or ibooks. i lose about 20-25% battery a day on idle. wtf gives?
kgrz has quit [Ping timeout: 240 seconds]
<chipotle>
i had the first retina version of the ipad and the battery life was SO much better
<chipotle>
it lasted for weeks if i didn't use it
vuoto has quit [Quit: Lost terminal]
rbr has quit []
<chipotle>
i have almost all background services turned off and rarely allow notificatiosn
vuoto has joined #ruby
matp has joined #ruby
joonty has joined #ruby
Snowy has joined #ruby
Snowy has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 260 seconds]
Snowy has joined #ruby
djbkd_ has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
panpainter has quit [Ping timeout: 244 seconds]
staticfox has quit [Disconnected by services]
staticfox` has joined #ruby
edwinvdg_ has joined #ruby
staticfox` is now known as staticfox
Silthias has joined #ruby
JW2 has quit [Quit: Leaving]
jgt1 has joined #ruby
Silthias1 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
Silthias has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
MrBusiness2 has joined #ruby
pandaant has joined #ruby
konsolebox has quit [Remote host closed the connection]
senayar has joined #ruby
consti has joined #ruby
kgrz has joined #ruby
mdw has joined #ruby
agent_white has quit [Quit: leaving]
<shevy>
lol
vuoto_ has joined #ruby
MrBusiness has quit [Ping timeout: 272 seconds]
<chipotle>
shevy: ?
tjbiddle has quit [Quit: tjbiddle]
<shevy>
chipotle what channel is this here
kgrz has quit [Ping timeout: 264 seconds]
skade has joined #ruby
stardiviner has joined #ruby
tjbiddle has joined #ruby
mdw has quit [Ping timeout: 252 seconds]
mdw has joined #ruby
kgrz has joined #ruby
lessless has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
wldcordeiro has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
madgen has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
nadir has joined #ruby
kies has joined #ruby
kgrz has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
ur5us has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
alotofnoodles has joined #ruby
LoneHermit_ has quit [Remote host closed the connection]
phredus_ has joined #ruby
madgen_ has joined #ruby
john0123 has quit [K-Lined]
B1n4r10 has quit [Ping timeout: 260 seconds]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
madgen has quit [Ping timeout: 246 seconds]
giz|work has joined #ruby
k3rn31 has joined #ruby
edwinvdgraaf has joined #ruby
john9218 has joined #ruby
madgen_ has quit [Ping timeout: 240 seconds]
<john9218>
Two white convicts escape from their prison, only to find that a nigger has followed them out and is running along with them. The three of them see a few tree in the distance and they each climb up one to avoid the bloodhounds that are tracking them. When the police and dogs get to the first tree the dogs go crazy, barking and jumping. The White co
<john9218>
nvict goes, "Meeeow," and the cops just think it is a cat stuck in a tree. So they go to the next tree where the other White convict says, "Hoo Hoo hoo Hoooo." The police figure it is just an owl in the tree. The nigger, hearing how the 2 White guys avoided capture, figures he will do the same, and when the dogs get to his tree, he lets out a loud,
<john9218>
"Moooooooooo." So anyway, they all three get captured, and now they face the firing squad. The first White guy is standing there and as the warden says, "Ready.....Aim...." the prisoner points behind the cops and yells, "Tornado!" As the firing squad turns to look for the twister, the convict jumps over the wall and escapes. Now they have the seco
<john9218>
nd White convict standing there. "Ready.....Aim...." He points over their shoulders and yells, "Flash flood!", and escapes as they turn to look. Now the nigger has his turn. "Ready.Aim....." Just then the nigger jumps up and points and yells, "Fire!"
axxyhtrx has joined #ruby
edwinvdg_ has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
d0lph1n98 has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
Shashikant86 has joined #ruby
<apeiros>
!ban john9218 racism is not welcome here
john9218 was kicked from #ruby by ruby[bot] [racism is not welcome here]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
raeoks has joined #ruby
Hounddog has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
k3rn31 has joined #ruby
elton has joined #ruby
noark9 has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Max SendQ exceeded]
DoubleMalt has joined #ruby
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
elton has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Max SendQ exceeded]
blackmesa has joined #ruby
Alina-malina has joined #ruby
freerobby has joined #ruby
skade has joined #ruby
Hyuk has joined #ruby
guardian has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
charliesome has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
nettoweb has joined #ruby
alotofnoodles has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
tlaxkit has joined #ruby
ldnunes has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
Ishido has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
elaptics is now known as elaptics`away
nankyokusei has quit [Ping timeout: 240 seconds]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crameth has joined #ruby
tristanp has joined #ruby
Ishido has quit [Remote host closed the connection]
crameth has quit [Max SendQ exceeded]
crameth has joined #ruby
Ishido has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
d0lph1n98 has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
zapata has joined #ruby
teclator__ is now known as teclator
alotofnoodles has joined #ruby
zacstewart has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
diegoaguilar has quit [Remote host closed the connection]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 244 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
tomaz_b has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Ping timeout: 272 seconds]
bruce_lee has joined #ruby
hanmac has joined #ruby
Ropeney has joined #ruby
ljarvis has joined #ruby
Shashikant86 has joined #ruby
elaptics`away is now known as elaptics
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ljarvis has quit [Quit: leaving]
axxyhtrx has joined #ruby
ljarvis has joined #ruby
ljarvis has quit [Client Quit]
ljarvis has joined #ruby
heinrich5991 has quit [Ping timeout: 246 seconds]
lightt has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
digneety has quit [Quit: digneety]
sergio_101 has joined #ruby
blackmesa has joined #ruby
truenito has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ishido has quit [Remote host closed the connection]
crameth has quit [Quit: crameth]
Akuma has joined #ruby
lessless has joined #ruby
Ishido has joined #ruby
Hyuk has joined #ruby
prestorium has joined #ruby
kam270 has joined #ruby
Vile` has joined #ruby
panpainter has joined #ruby
tk__ has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
panpainter has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
freerobby has quit [Client Quit]
shinnya has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
romistrub has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
jas02 has joined #ruby
blackmesa has joined #ruby
phredus__ has joined #ruby
phredus has quit [Remote host closed the connection]
yesthatallen has quit [Remote host closed the connection]
heinrich5991 has joined #ruby
giz|work has quit [Ping timeout: 246 seconds]
p337rB has joined #ruby
AcidCras_ is now known as AcidCrash
B1n4r10 has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
the_drow has quit [Quit: This computer has gone to sleep]
davedev2_ has joined #ruby
johnmilton has joined #ruby
joonty has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
phredus__ has quit [Read error: Connection reset by peer]
guardian has joined #ruby
koooge has quit [Quit: Leaving...]
zacstewart has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
augcesar has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 276 seconds]
phredus_ has quit [Remote host closed the connection]
phredus has joined #ruby
phredus has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 246 seconds]
garethrees has joined #ruby
flashpoint9 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
kknight has quit [Remote host closed the connection]
ferr1 has quit [Quit: WeeChat 1.5]
pwnd_nsfw` has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
phredus has joined #ruby
fmcgeough has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has joined #ruby
DanyC_ has joined #ruby
DanyC_ has quit [Remote host closed the connection]
DanyC_ has joined #ruby
ChiefAlexander has joined #ruby
d0lph1n98 has quit [Ping timeout: 250 seconds]
ramortegui has joined #ruby
pawnbox has quit [Remote host closed the connection]
DanyC has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
blackgoat has quit [Ping timeout: 260 seconds]
ChiefAlexander has quit [Read error: Connection reset by peer]
ChiefAlexander_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mensvaga>
I'm using ERB, and the 'pp' module inside of my template. There are no other external dependencies. When I run erb as root I get different output than if I run it as a regular user.
bmurt has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
allcentury has quit [Ping timeout: 264 seconds]
<apeiros>
root and regular user then probably use different rubies and/or gems.
<apeiros>
assuming that by "different output" you exclude anything data related…
<mensvaga>
All data is local to the file.
<mensvaga>
Now, I need to construct a shortened version and debug I guess.
<mensvaga>
It's SO WEIRD>
<mensvaga>
.
eichenwald has joined #ruby
elton has joined #ruby
<apeiros>
you can start with running `ruby -v` as both users
<mensvaga>
apeiros: It's something that generates many nagios service checks, host definitions, and service dependencies In certain cases, it looks like information is "leaking".
<mensvaga>
I thought I isolated all of the data structures by marshalling and unmarshalling.
romistrub_ has joined #ruby
<mensvaga>
buuut, something might not be working there. I didn't check beyond 2 depths to see if the copies were true copies.
<romistrub_>
testing. on hexchat :)
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<romistrub_>
cripes.... same error... cannot send to channel
romistrub has quit [Quit: Page closed]
<apeiros>
romistrub_: you probably need to be registered
<romistrub_>
.nick romistrub
charliesome has joined #ruby
<apeiros>
?register romistrub_
<ruby[bot]>
romistrub_: you need to be identified with NickServ, see /msg NickServ HELP
<romistrub_>
bollocks
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
some channels are very snobbish
<shevy>
you can only join if you are a registered irc citizen!
<apeiros>
can't blame them
<apeiros>
blame the trolls
allcentury has joined #ruby
<apeiros>
there have been requests to do the same in #ruby
codecop has quit [Remote host closed the connection]
romistrub_ has quit [Client Quit]
jaguarmagenta has joined #ruby
hutch34 has joined #ruby
suchness has joined #ruby
romistrub has joined #ruby
ekinmur has joined #ruby
<ljarvis>
indeed
<mensvaga>
Back when Oracle bought MySQL it wasn't hard to get yourself banned from #mysql.
ekinmur has quit [Client Quit]
kareeole_ has joined #ruby
<mensvaga>
One time I said, "Just select * , and get the column names from your database driver. Your language probably has the equivalent methods to fetch the column names into an array."
<suchness>
If I have a class with an initialize method that takes a block and instance evals it to create an instance, how can I do something like this: http://pastie.org/private/n3n8f4qzp4okrybrlvglw Right now @alpha is complaining it doesn't know what 'variables' are.
<mensvaga>
They were PHP people trying to prevent people from running select *.
<mensvaga>
And I "was promoting bad programming practice."
Amnez777 has quit [Ping timeout: 272 seconds]
<romistrub>
testing! lol
<apeiros>
suchness: oh dear, why'd you do arity-testing?
kobain has joined #ruby
nankyokusei has joined #ruby
<suchness>
apeiros: It doesn't need I I realize that.
<apeiros>
suchness: then don't. and you have your problem solved for free already.
<apeiros>
ah
jaguarmagenta has quit [Ping timeout: 264 seconds]
<apeiros>
no, misread your problem
<apeiros>
you solve it by doing: b = self; Alpha.new do; b.variables …
jancel has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<suchness>
apeiros: Alright, thanks!
Alina-malina has quit [Ping timeout: 260 seconds]
Sashimi has joined #ruby
<romistrub>
so my nick is registered and it's still not working
<romistrub>
shucks
<toretore>
suchness: or by not using the instance_eval version
<apeiros>
romistrub: maybe you got muted
<toretore>
that's why the arity check exists
<apeiros>
`/mode #mysql +q` gives you the mute list
<suchness>
toretore: What is the other 'version'?
Shashikant86 has joined #ruby
<toretore>
Alpha.new{|a| }
antgel has quit [Ping timeout: 246 seconds]
<suchness>
toretore: Ah I see
<romistrub>
apeiros, I'm not on the mute list, lol
<suchness>
toretore: So basically yield 'self'
<romistrub>
can someone here go to #mysql and check that they can message?
<toretore>
suchness: that is what it does, yes
<romistrub>
(please)
<apeiros>
romistrub: oh, you may have *registered* your nick, you did not *authorize* your current connection, though
<romistrub>
apeiros, lmao
<romistrub>
and what per tell does that entail?
<apeiros>
err, *authenticate*
<apeiros>
/ns help identify
xlegoman has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
jancel has quit [Ping timeout: 246 seconds]
<romistrub>
oh jeez, there's a registration *verification*
Amnez777 has joined #ruby
<apeiros>
better yet - set up sasl-auth, that'll ensure you're identified before your client tries to join channels which require registration. (how depends on your client)
<romistrub>
okay, I'll take this there if I'm clogging up the airwaves
ncthom91 has joined #ruby
<romistrub>
omg... #freenode :cannot send to channel
<romistrub>
same error lol
codeurge has joined #ruby
<romistrub>
okay, I got the verification email, but when I do a /msg NickServ Info I get "romistrub has NOT COMPLETED registration verification"
blackmesa has quit [Quit: WeeChat 1.5]
<apeiros>
then do what they tell you to do in that email
<apeiros>
you know, just employ the most basic reading skills?
alfiemax has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<apeiros>
you make it seem like you're on the internet for the first time - are you?
<romistrub>
apeiros, I totally did, and it said I was registered
<mensvaga>
*sigh* it's my fault. But, different versions of ERB are giving me different results.
<mensvaga>
Different users, same machine give the same result.
<romistrub>
apeiros, sentient cuttlefish :P
startupality has joined #ruby
terlar has joined #ruby
jrafanie has joined #ruby
axisys has quit [Ping timeout: 246 seconds]
<romistrub>
bollocks, it must not have worked the first time
<mensvaga>
There's the version of ERB that puppet uses on my puppet server. Then there's the version of ERB that regular users use. Then, there's the version of ERB I'm using to develop things with.
colegatron has quit [Quit: Leaving]
<romistrub>
omg it works! thanks apeiros
k3rn31 has quit [Quit: Computer has gone to sleep.]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
aryaching has joined #ruby
aryaching has quit [Client Quit]
the_drow has joined #ruby
paultreny has joined #ruby
karmatr0n has joined #ruby
paultreny has quit [Changing host]
paultreny has joined #ruby
paultreny has quit [Remote host closed the connection]
tlaxkit has quit [Remote host closed the connection]
techietrash has quit [Quit: Bye! <(^_^<)]
tlaxkit has joined #ruby
<apeiros>
romistrub: so now we've cuttelfish on our irc, great :D
techietrash has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
agit0 has quit [Read error: Connection reset by peer]
Sashimi has joined #ruby
karmatr0_ has joined #ruby
pwnd_nsfw has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
cajone has quit [Ping timeout: 244 seconds]
JakFrist has joined #ruby
snath has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mbologna has joined #ruby
<mbologna>
hello
aganov has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
SilverKey has quit [Quit: Halted.]
lxsameer has quit [Quit: WeeChat 1.5]
hutch34 has quit [Ping timeout: 250 seconds]
CJKinni has joined #ruby
mbologna has quit [Quit: Leaving]
garethrees has quit []
dhollinger has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0_ has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
Brklyn has joined #ruby
zacstewart has joined #ruby
lessless has joined #ruby
<raz>
is there an easy way to add custom rules to rubocop? i'd like to ban ENV[] from our code-base (force people to use ENV.fetch)
charliesome has joined #ruby
swills has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeole_ has quit [Remote host closed the connection]
tristanp has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
alfiemax has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<shevy>
romistrub looks like debian base. did you install the ruby dev stuff too?
agent_white has joined #ruby
<romistrub>
shevy, apt-get can't find the ruby dev stuff
jord-n has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Shashikant86 has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
<agent_white>
Mornin'
tk__ has quit [Quit: ばいばい]
<shevy>
romistrub yeah it can be tricky to find out how debian names these things
<shevy>
romistrub back when I used debian, one alias I used was: "aptitude install ruby1.9.1-dev; apt-get install ruby-all-dev"
<shevy>
but that was like 10 years ago, I would not expect this to work nowadys :D
B1n4r10 has joined #ruby
tristanp has quit [Remote host closed the connection]
DanyC_ has quit []
<romistrub>
shevy, who knew that installing ruby2.3-dev would make the gem install
SilverKey has quit [Quit: Halted.]
edwinvdg_ has quit [Ping timeout: 240 seconds]
<romistrub>
any explanation as to why?
mattwash_ has quit [Remote host closed the connection]
<shevy>
no idea
<shevy>
you have to ask the debian folks for their stuff :D
<romistrub>
haha
neozonz has joined #ruby
neozonz has quit [Client Quit]
<lupine>
gems containing ext/ directories will need the ruby-dev package, yes
JesseH2 has joined #ruby
arajakul has joined #ruby
p337rB_ has joined #ruby
edwinvdgraaf has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
safetypin has joined #ruby
karmatr0n has joined #ruby
p337rB has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
alotofnoodles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
morochena has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
DoubleMalt has quit [Ping timeout: 276 seconds]
jas02 has quit [Quit: jas02]
elton has joined #ruby
LoneHermit has joined #ruby
jas02 has joined #ruby
jas02 has quit [Client Quit]
rippa has joined #ruby
tjbiddle has joined #ruby
pawnbox has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 272 seconds]
SilverKey has joined #ruby
startupality has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
ta_ has quit [Remote host closed the connection]
agent_white has joined #ruby
panpainter has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
aufi has joined #ruby
shinnya has joined #ruby
the_drow has joined #ruby
DoubleMalt has joined #ruby
pawnbox has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
mattwashere has quit [Remote host closed the connection]
symm- has joined #ruby
mattwashere has joined #ruby
ChiefAlexander has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
kam270 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
kapo has quit [Quit: WeeChat 1.5]
alfiemax has quit [Ping timeout: 250 seconds]
Guest63 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
swills has joined #ruby
stan has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 250 seconds]
<mensvaga>
apeiros: I FOUND IT.
<mensvaga>
Scoping changed from one version to the next.
edwinvdg_ has joined #ruby
<mensvaga>
I'm using a variable inside of a loop that's "leaking" outside of the loop; and I'm using the same variable in one of the outer loops.
<mensvaga>
"field name"
<mensvaga>
err, "field_name"
<shevy>
I sometimes use a very dumb naming scheme
<shevy>
array.each {|entry|
<shevy>
entry.each {|inner_entry|
Oclair_ has quit [Quit: Bye Bye]
<mensvaga>
I (sadly) am 4 levels deep in a loop for this one. It's a short bit of code inside the 3rd loop though.
<apeiros>
mensvaga: o0 so you were not actually running the same code?
<mensvaga>
I was running the same code.
<mensvaga>
I was reusing variable names.
stan has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<mensvaga>
One version of ERB handled it differently than the other.
<apeiros>
o0
<mensvaga>
The newer version created a "local" variable for the inner loop.
<mensvaga>
The older version bled the value out.
<apeiros>
and by "version of erb" you mean "one modified erb"?
<apeiros>
since you said you were using the same ruby version…
djbkd has joined #ruby
aegis3121 has joined #ruby
<mensvaga>
erb on my puppet server: erb.rb [2.1.0 2009-02-24] ; erb on my desktop: [2.1.0 2013-01-26]
<shevy>
oldies!
aufi has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
<mensvaga>
Next version fixes everything, amiright?
<shevy>
dunno
<shevy>
erb should be removed :)
nsxeqo has joined #ruby
hutch34 has joined #ruby
<apeiros>
mensvaga: you use an erb *executable*?
<mensvaga>
Only to attempt to predict how puppet's going to translate it.
<mensvaga>
Everything is pretty modularized as it is. It's really only one step away from being thrown into classes and everything.
elton has quit [Remote host closed the connection]
<mensvaga>
But, to make it work, I kind of have to throw it all into one file now.
<apeiros>
I wonder how you manage to have different erb version on the same ruby…
<mensvaga>
I dunno. The observed behavior is definitely different though. One treated the variable with the same name in the inner loop as a variable with local scope to that loop
<mensvaga>
the other one over wrote the value of the variable in the outer loop.
<mensvaga>
Admittedly, I should not be using the same variable names. I've fixed that.
the_drow has joined #ruby
<apeiros>
given that you use an erb executable, it may even be that they're not even running on the same ruby version… I have no idea whether that 2.1.0 in that version string denotes the ruby version or not…
<mensvaga>
Mah brain went, "Stuff is... leaking."
saneax is now known as saneax_AFK
maucar has joined #ruby
matp has quit [Remote host closed the connection]
<apeiros>
ah, it's not
<apeiros>
`echo '<%= RUBY_VERSION %>' | erb`
the_drow has quit [Read error: Connection reset by peer]
<apeiros>
that'll give you the ruby version
<apeiros>
I bet it differs
edwinvdgraaf has joined #ruby
dionysus69 has joined #ruby
<apeiros>
where `erb` is of course whatever you use to run erb…
<romistrub>
off-topic question: how many hours a day do you spend coding or doing something related to coding?
kareeoleez has joined #ruby
matp has joined #ruby
tish has joined #ruby
<apeiros>
25
<romistrub>
lol
DoubleMalt has quit [Remote host closed the connection]
<romistrub>
time expansion in dreams
<mensvaga>
The versions of ruby are different.
<mensvaga>
But, I knew that.
<apeiros>
remember how that was my first question?
<mensvaga>
Yes. I have some drab in the middle about being wrong about the versions matching.
the_drow has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
djbkd has quit []
<apeiros>
well… your loss. could have saved you ~2h if you'd told me :-p
<highbass>
hmm actually Dir.pwd gives the directory where the script is ... so forexample ... if i am at the root of my director say '/' and i run the following command ... ruby /test/xx.rb; .. Dir.pwd will return /test
<highbass>
even though the execution took place in '/'
nankyokusei has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 260 seconds]
<highbass>
hmm i might be wrong on thsi one
<highbass>
mensvaga: thanks for the article
d0nn1e has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
certainty has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ruby
tish has quit [Ping timeout: 250 seconds]
the_drow has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
palms has joined #ruby
chouhoulis has joined #ruby
alfiemax has joined #ruby
tjbiddle_ has joined #ruby
craigp has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
RegulationD has joined #ruby
mdw has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Madplatypus has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
the_drow has joined #ruby
<mensvaga>
you need getwd
<mensvaga>
err, wait. never mind. gtg. didn't read.
mattwashere has quit [Remote host closed the connection]
amclain has joined #ruby
digneety has joined #ruby
mattwashere has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
digneety has quit [Client Quit]
whathappens has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Read error: Connection reset by peer]
digneety has joined #ruby
codecop has joined #ruby
tjohnson has joined #ruby
chipotle has joined #ruby
mattwashere has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
mattwashere has joined #ruby
matp has quit [Ping timeout: 240 seconds]
kedare has quit [Quit: Leaving]
chipotle has joined #ruby
amclain has quit [Quit: Leaving]
dhollinger has quit [Ping timeout: 244 seconds]
Amnez777 has quit [Ping timeout: 244 seconds]
synthroid has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
Yiota has joined #ruby
synthroid has joined #ruby
rodfersou is now known as rodfersou|lunch
marr has quit [Ping timeout: 244 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
Amnez777 has joined #ruby
amclain has joined #ruby
<jhass>
getcwd and pwd are the same and what you asked for
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
senayar has quit []
aegis3121 has quit [Ping timeout: 244 seconds]
wrkrcoop has joined #ruby
SCHAAP137 has joined #ruby
<wrkrcoop>
Anyone know how to unhash my hmac?
hahuang61 has joined #ruby
Couch has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
<jhass>
the purpose of a good cryptographic hash function is to be one way
the_drow has quit [Max SendQ exceeded]
<wrkrcoop>
jhass so how does the receiver know its legit?
<jhass>
by doing the same computation again
<wrkrcoop>
and not just a random hmac where the secret doesn’t match?
<wrkrcoop>
but do they have the message?
<wrkrcoop>
oh i guess …
<jhass>
if they don't they can't verify it
jancel has quit [Remote host closed the connection]
<romistrub>
is python more popular than Ruby? I've been looking for good Ruby books at my local bookstore and there are a dozen Python books but literally no Ruby books
<wrkrcoop>
i’m writing this spec where i say expect(a == b).to be false
fiifi has joined #ruby
<wrkrcoop>
feels wrong, but i didnt see a to not_equal
<alfiemax>
romistrub, yes
tlaxkit has quit [Quit: ¡Adiós!]
<wrkrcoop>
romistrub: ppl will disagree but it seems older people like python, python is also used at google, and its used in colleges to teach programming
<elomatreb>
romistrub: Ruby has the problem that everyone thinks it's just for webdev
<havenwood>
romistrub: Someone bought all the Ruby books I suppose!
<wrkrcoop>
ruby seems to be more popualr in silicon valley and web dev
B1n4r10 has joined #ruby
<alfiemax>
python is most widely used in scientific computing and places where ruby slows down
hahuang61 has quit [Ping timeout: 250 seconds]
<wrkrcoop>
i dont like pythons white space stuff but i’ve only used it for a week
<alfiemax>
white space stuff?
<wrkrcoop>
white space sensitive
<fiifi>
ruby outwits python on syntax sugar
TomyWork has quit [Ping timeout: 244 seconds]
<elomatreb>
Programming languages naturally evolve into their niches. Python has a lot of good statistics libraries/toolsets, ruby not so much
juanfra has quit [Read error: Connection reset by peer]
<alfiemax>
oh, you mean python has strict indentation
<fiifi>
ruby syntax is really cool
juanfra has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<elomatreb>
fiifi: this. Also blocks feel so nice to use, even compared to languages like JS that also use something similar
<fiifi>
python is also a great language but its indentation is boring
spudowiar has quit [Ping timeout: 276 seconds]
<fiifi>
elomatreb: yeah blocks are great
danostrowski has joined #ruby
<wrkrcoop>
alfiemax: i dont mind that but it should do it for you like in Go where they use go format
King_DuckZ has joined #ruby
<wrkrcoop>
else programmers spend time trying to find where the whitespace issue is
<romistrub>
havenwood, Hah! a likely story ;)
<fiifi>
wrkrcoop: hehehe
edwinvdg_ has quit [Ping timeout: 240 seconds]
<fiifi>
true
<shevy>
whitespace
<elomatreb>
wrkrcoop: Re your spec question: Isn't there expect().to_not ?
<jhass>
wrkrcoop: expect(a).not_to eq(b)
<King_DuckZ>
hi, I already know some ruby from a few years ago, and I recently learned postgresql and redis - now I'd like to try and write some simple website where you have a textbox for example and the server will store data submitted by the user, can somebody point me to some tutorial?
<King_DuckZ>
something like nginx+ruby or something like that
synthroid has quit [Remote host closed the connection]
<shevy>
atmosx how are you doing? busy at work?
andikr has quit [Remote host closed the connection]
palms has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
TomyLobo has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
whathapp_ has joined #ruby
flashpoint9 has joined #ruby
fiifi has quit [Quit: leaving]
pwnd_nsfw` has joined #ruby
codecop has quit [Remote host closed the connection]
the_drow has joined #ruby
whathappens has quit [Ping timeout: 252 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
sunn has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
snebel has joined #ruby
Coldblackice has joined #ruby
digneety has quit [Quit: digneety]
pilne has joined #ruby
moeabdol has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zackio has quit [Ping timeout: 240 seconds]
B1n4r10 has joined #ruby
madgen_ has joined #ruby
aegis3121 has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
SilverKey has quit [Quit: Halted.]
mikecmpbll has joined #ruby
crdpink has quit [Quit: q term]
SilverKey has joined #ruby
freerobby has quit [Quit: Leaving.]
choke has joined #ruby
SilverKey has quit [Client Quit]
crdpink has joined #ruby
ramfjord has joined #ruby
Zackio has joined #ruby
blackmesa has joined #ruby
JakFrist has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
thomasfedb_ has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
theasdfman has joined #ruby
<theasdfman>
Hello
theasdfman has left #ruby [#ruby]
nsxeqo has quit [Remote host closed the connection]
SilverKey has joined #ruby
craigp has joined #ruby
hahuang61 has joined #ruby
ChiefAlexander has joined #ruby
madgen has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
madgen_ has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
dstarh has joined #ruby
Snowy has quit [Quit: ragequit]
skade has quit [Quit: Computer has gone to sleep.]
jancel has joined #ruby
jaruga____ has quit [Quit: jaruga____]
snebel has quit [Ping timeout: 240 seconds]
smccarthy has joined #ruby
zotherstupidguy has joined #ruby
nankyokusei has joined #ruby
<smccarthy>
I am running some tests that are written in ruby, and I noticed the logs are not getting printed to the console until AFTER the test finishes. Is there something I can look for to have it print out the logs as they come in?
<romistrub>
what does the ext subdirectory mean in a gem directory?
rodfersou|lunch is now known as rodfersou
rodfersou is now known as rodfersou|away
terlar has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
ceej has quit [Remote host closed the connection]
elton has quit [Ping timeout: 252 seconds]
SilverKey has quit [Quit: Halted.]
jancel has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
ceej has joined #ruby
<norc_>
smccarthy, can you be more specific about what you are doing?
<norc_>
spudowiar, that is not your code that has problems.
<toretore>
spudowiar: ok, so now after 100 lines of rambling i can see that part of the code. now i need to see your own code that uses this
<spudowiar>
I don't have any code yet
c_nick has joined #ruby
Dimik has joined #ruby
<spudowiar>
But the code will essentially be `def content\n transform\n end`
<toretore>
why?
SilverKey has quit [Quit: Halted.]
<toretore>
why are you doing this? we can't read your mind
iceden has joined #ruby
ricer2 has joined #ruby
whathapp_ has quit [Remote host closed the connection]
<toretore>
i have no context whatsoever here, and i have no idea what it is you want to do
<spudowiar>
Because Jekyll doesn't transform layouts by default, I need the layouts transformed at a certain point (e.g. the initializer is too early)
digneety has joined #ruby
<spudowiar>
Well, there's another solution, copy and edit a method :/
<spudowiar>
Sorry I'm not being very good at asking for help here :(
<spudowiar>
Just forget I asked :)
<norc_>
spudowiar, if you monkey patch methods like you do, you will break things.
<spudowiar>
well, you have to in a Jekyll plugin
<spudowiar>
and just forget I asked :)
moeabdol has quit [Ping timeout: 240 seconds]
<spudowiar>
Terribly sorry for wasting your time norc_ and toretore
<spudowiar>
:(
codecop has joined #ruby
SilverKey has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
spiette has joined #ruby
kgrz has quit [Ping timeout: 250 seconds]
digneety has quit [Quit: digneety]
kgrz has joined #ruby
ChiefAlexander has joined #ruby
aberen has joined #ruby
<c_nick>
I was looking at the old colleage notes .. and i saw the famous Star Problem __* _** *** when length given is 3 .. How i know how to get this done in C++ i am a bit confused in Ruby what do we use to set teh size in ruby
zeroDi has joined #ruby
arlek has joined #ruby
<spudowiar>
c_nick: you are trying to pad a string?
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
tristanp has joined #ruby
Mon_Ouie has joined #ruby
yos7ph has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
<toretore>
spudowiar: if you want to monkeypatch Jekyll::Layout#content you just do module Jekyll; class Layout; def content; transform(@content); end; end; end
<spudowiar>
toretore: but transform doesn't take an argument?
<toretore>
where is transform from?
yos7ph has quit [Read error: Connection reset by peer]
<spudowiar>
toretore: convertible.rb
<spudowiar>
toretore: anyway, leave it
<spudowiar>
it's fine
cdg has joined #ruby
blaxter has joined #ruby
blaxter has quit [Client Quit]
<toretore>
so you just return from content whatever you want, and transform will take that
yos7ph has joined #ruby
<spudowiar>
toretore: but I want to return transform from content :)
<spudowiar>
toretore: and it's fine, I'll solve it by taking the method content is used from and patching that
<spudowiar>
but that's annoying :(
johnmilton has quit [Quit: Namaste]
certainty has joined #ruby
<spudowiar>
because I have to keep the method up to date
<spudowiar>
patching this doesn't fully fix the problem
<toretore>
alias it first
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 258 seconds]
jackjackdripper has joined #ruby
<toretore>
alias whatever old_whatever; def whatever; something(old_whatever); end
yos7ph has quit [Client Quit]
<spudowiar>
toretore: no, it's in the middle
<toretore>
what's in the middle?
<spudowiar>
toretore: it's place_in_layouts in renderer.rb and I need to patch the middle of the method
certainty has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Silthias1 has quit [Read error: Connection reset by peer]
multi_io has quit [Ping timeout: 240 seconds]
xlegoman has quit [Ping timeout: 244 seconds]
xlegoman has joined #ruby
highbass has quit [Remote host closed the connection]
multi_io has joined #ruby
B1n4r10 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Bloodshot has joined #ruby
<suchness>
How can I detect what class a method was called from?
<wrkrcoop>
suchness: i asked that question yesterday
ivanskie has joined #ruby
alnewkirk has quit [Ping timeout: 244 seconds]
<shevy>
the answer yesterday was via .owner right
<wrkrcoop>
if you look in history i think jhass answered it
<wrkrcoop>
or maybe shevy idk
<norc_>
suchness, class?
<suchness>
Yes
<norc_>
suchness, you mean which class the current method belongs to?
<norc_>
suchness, then please be more specific about what you want.
<suchness>
I can only type so fast.
<norc_>
suchness, in Ruby a class is basically just a container for methods (and some other stuff that is not relevant for this)
slackbotgz has joined #ruby
digneety has joined #ruby
<suchness>
norc_: Haha, I am well aware. Here is my issue. I am building an extension for Prawn to detect when content is split between pages, the extention basically adds a method to the pdf class which takes a block, I am trying to figure out a way to detect what pdf class I am in without expressly passing it, given the nature of how this detection needs to be made the original class is essential.
<suchness>
I think I will just pass it.
<norc_>
suchness, "what class you are in" what do you mean?
<smathy>
self.class ?
<suchness>
Oh wow I am an idiot
<suchness>
I am included, I know my class
<suchness>
I have been at this desk too long
yfeldblum has joined #ruby
jancel has joined #ruby
<spudowiar>
suchness: :)
<spudowiar>
I've been at school all day, and it's made me dumb :)
sandstrom has quit [Quit: My computer has gone to sleep.]
<suchness>
spudowiar: I hear you
nankyokusei has quit [Remote host closed the connection]
<suchness>
I have been to far into a metaprogramming rabbit hole today to remember the basics of just normal programming.
<norc_>
So I wonder whether there is a trivial hack to instantiate a Module... :o
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
<suchness>
Besides Module.new ?
madgen has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 252 seconds]
madgen has joined #ruby
<norc_>
suchness, I want a Module#new
digneety has quit [Quit: digneety]
<norc_>
I mean all I need to do is give it an allocator..
<Mon_Ouie>
Class.new { include m }.new
<norc_>
That is cheating.
<norc_>
:)
Silthias has joined #ruby
jgt1 has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
CJKinni has quit [Remote host closed the connection]
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
prestorium has quit [Quit: Leaving]
yqt has joined #ruby
matp has quit [Ping timeout: 244 seconds]
jgt1 has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
SCHAAP137 has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
blackmesa has joined #ruby
ncthom91 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
JesseH2 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
aegis3121 has quit [Ping timeout: 272 seconds]
slash_nick is now known as slash_me
slash_me is now known as slash_nick
jhack has quit [Quit: jhack]
vdamewood has joined #ruby
startupality has quit [Quit: startupality]
pr0ton has joined #ruby
fiifi has quit [Remote host closed the connection]
solocshaw has joined #ruby
whathapp_ has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
Darkwater has quit [Changing host]
Darkwater has joined #ruby
ksu has quit [Quit: Leaving]
biberu has quit []
craigp has quit [Ping timeout: 246 seconds]
jhack has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
CloCkWeRX has joined #ruby
kareeoleez has quit [Remote host closed the connection]
nettoweb has joined #ruby
jancel has joined #ruby
alotofnoodles has joined #ruby
allcentury has joined #ruby
swills has joined #ruby
jancel has quit [Ping timeout: 258 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has joined #ruby
alotofnoodles has quit [Client Quit]
lightt has joined #ruby
matp has joined #ruby
freerobby has quit [Quit: Leaving.]
solars has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
Sashimi has joined #ruby
vuoto has quit [Remote host closed the connection]
matp has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
nettoweb has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
Tricon_ has quit [Quit: Lost terminal]
swills has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
LoneHerm_ has joined #ruby
jackjackdripper has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
<Synthead>
is there a way to call a proc with different params? proc.call(1, 2, 3) doesn't seem to work
elementaru has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
matp has joined #ruby
<Radar>
Synthead: How did you define the proc in the first place?
gnufied has joined #ruby
<Synthead>
Radar: it's coming from an around_perform job in RoR
<Synthead>
I put a binding.pry in it to play with it
<Radar>
I see.
<Synthead>
the first param to around_perform is the job, the second is the proc that you'd supposedly call somewhere in the block
LoneHerm_ has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Remote host closed the connection]
<jhass>
expand on "doesn't seem to work", what do you expect, what do you get
<Synthead>
jhass: I expect the proc to be called with the param 1 if I run that_proc.call(1)
zeroDi has quit [Quit: WeeChat 1.5]
tildes has joined #ruby
<Synthead>
but I'm beginning to think that "perform" is called from somewhere else with other arguments and that it's actually a RoR framework question
<Synthead>
like there's an *args in whatever is getting called from the proc, and those args aren't used in calling perform
aberen has joined #ruby
matp has quit [Remote host closed the connection]
<jhass>
not too unreasonable
jancel has joined #ruby
lightt has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]