apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<Technodrome> Microsoft Windows incorporates support for Ogham Unicode from Windows 7 onwards.
<Technodrome> OSX i think has always had it
jph98 has quit [Ping timeout: 246 seconds]
_Bravado has joined #ruby-lang
<Technodrome> although it is true, its mostly been replaced by latin characters, but still , many novelist and schools use it
<[spoiler]> I, and this is so controversial, feel hipster using a Windows
<[spoiler]> right now
sulo has quit [Ping timeout: 240 seconds]
<Technodrome> [spoiler]: so what do you use ruby for?
Mon_Ouie has joined #ruby-lang
mdedetrich has quit [Ping timeout: 268 seconds]
<[spoiler]> Technodrome: All sorts of things: fun, projects... mostly fun, though
<[spoiler]> also use it as a tool to do stuff
<crankharder> how come after I rsync -av /path/foo/* /otherpath/ and then I "du -s /path/foo" and "du -s /otherpath/foo" the filesizes aren't the same?
<crankharder> isn't that the point of the rsync?
<[spoiler]> I'm laughing at "and then I du"
<[spoiler]> because, it's a bit like "I do"
<crankharder> I'm gonna du u next
<[spoiler]> LOL
<crankharder> dammit, wrong channel grr
_Bravado has quit [Quit: _Bravado]
<crankharder> but WHY
<mistym> crankharder: du reports on actual usage, no? So fragmentation, filesystem metadata, etc. affects the result
mdedetrich has joined #ruby-lang
<mistym> I bet if you pass --apparent-size (on GNU du, not sure if BSD du groks that) you'd get the same result
kurko_ has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
smashwilson has joined #ruby-lang
<Technodrome> so self always refers to the object receiver right? and if its called say from within a class definition it just refers to the global Class pretty
kurko_ has joined #ruby-lang
smashwilson has left #ruby-lang [#ruby-lang]
CoreData has quit [Quit: CoreData]
efrainolivares has quit [Quit: efrainolivares]
<[spoiler]> Technodrome: no, it refers to the class it's within
<Technodrome> where its defined?
<crankharder> mistym: correctish answer btw... --apparent-size results in a smaller diff, but not a perfect match
<[spoiler]> >> class A; puts self; end
<eval-in> [spoiler] => A ... (https://eval.in/59314)
<Technodrome> ok for some reason i keep wanting to think its like this in javascript
<Technodrome> call time
<mistym> Technodrome: Classes themselves are objects and classes exist at the time the class definition opens
nathanstitt has quit [Client Quit]
<Technodrome> what if you redefine though, like newClass.something = Math.sqrt
dingus_k_ has joined #ruby-lang
<[spoiler]> then it's redefined
<Technodrome> and say sqrt referred to self, what would be self?
dingus_khan has quit [Read error: Connection reset by peer]
<Technodrome> Math or newClass if it was called from newClass.something?
<[spoiler]> newClass is not a valid class in Ruby
<Technodrome> would self still refer to where it was *defined* in?
<Technodrome> yeah iknow
<Technodrome> sorry
smashwilson1 has quit [Ping timeout: 246 seconds]
<[spoiler]> Hmm, I'm confused now
<[spoiler]> can you write the code
<[spoiler]> of what you're trying to explain?
<Technodrome> like the this in JS and Java are very different :)
<Technodrome> this in JS is like call time , if you refine a method to another object the this will then be that new object caller
<Technodrome> point to it
elia has quit [Quit: Computer has gone to sleep.]
priodev has quit [Ping timeout: 260 seconds]
mdedetrich has quit [Ping timeout: 246 seconds]
<[spoiler]> I'm not sure you can change methods that way
<[spoiler]> because Something.method_name= other_method
<[spoiler]> will attempt to call "method_name=" on Something
shevy has quit [Ping timeout: 260 seconds]
<[spoiler]> and pass "other_method" as a parameter
<drbrain> I would say "the value of 'other_method'"
<[spoiler]> whereas in javascript, method_name is just a property on Something that can be re-assigned
<[spoiler]> drbrain: thanks :)
<drbrain> just to be clear that "other_method" gets evaluated first
<[spoiler]> I should've said method(:other_method)
thepumpkin has joined #ruby-lang
<drbrain> ah, yes, because in JS there's a difference between "some_method" and "some_method()"
|jemc| has quit [Ping timeout: 272 seconds]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
thepumpkin has quit [Ping timeout: 252 seconds]
VTLob has quit [Quit: VTLob]
lsegal has quit [Read error: Connection reset by peer]
ikrima has quit [Ping timeout: 240 seconds]
lsegal has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
micalexander has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
pr0ton has joined #ruby-lang
mistym has quit [Quit: Leaving]
ikrima has joined #ruby-lang
shevy has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
Scader has quit [Ping timeout: 245 seconds]
kurko_ has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby-lang
kurko_ has joined #ruby-lang
|jemc| has joined #ruby-lang
vlad_starkov has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby-lang
fijimunkii has quit [Ping timeout: 272 seconds]
torrieri has joined #ruby-lang
torrieri has quit [Changing host]
torrieri has joined #ruby-lang
priodev has joined #ruby-lang
sulo has joined #ruby-lang
rickhull has joined #ruby-lang
tkuchiki has joined #ruby-lang
io_syl has quit [Ping timeout: 272 seconds]
<rickhull> a coworker is having a problem with mechanize and net:http::persistent
<rickhull> it looks like the remote end (apache) is not respecting the keep alive header
<rickhull> so we tried agent.keep_alive false
mrpot4to_ has joined #ruby-lang
<rickhull> we're still getting a net::http::persistent error on remote close
rony358 has joined #ruby-lang
<drbrain> rickhull: that means the server is hanging up on you before all the bytes are returned
<drbrain> keep alive won't change that behavior
<drbrain> … bus time
<rickhull> ok, i suspected some sort of remote bug
<rickhull> thanks!
<drbrain> mechanize is supposed to rescue that exception and give you a Mechanize error you can see the returned bytes from
<drbrain> (some servers are just broken)
<drbrain> there may be an issue you can find for it on github.com/sparklemotion/mechanize
toretore has quit [Quit: Leaving]
mrpot4to_ has quit [Read error: Connection reset by peer]
sulo has quit [Ping timeout: 265 seconds]
Johz has quit [Ping timeout: 272 seconds]
mrpot4to_ has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
<rickhull> so, if i understand correctly, the remote server is fucked up. cool
<rickhull> but there is a potential client bug in the way it exposes the server bug
<rickhull> ?
bf4 has joined #ruby-lang
Johz has joined #ruby-lang
<rickhull> heh, that issue got jacked into SSL certs and CAs xD
<zzak> yorickpeterse: for travel
bf4 has quit [Ping timeout: 272 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
datanoise has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
jaimef has quit [Excess Flood]
yfeldblum has quit [Remote host closed the connection]
TheMoonMaster has quit [Excess Flood]
ssss has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
TheMoonMaster has joined #ruby-lang
dingus_k_ has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
ssss has quit [Quit: Leaving]
jaimef has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Ping timeout: 272 seconds]
scottschecter has quit [Quit: WeeChat 0.4.0]
<rony358> drbrain: thanks
<rony358> I tried agent.retry_change_requests = true
<rony358> but that did not work either
cored has quit [Ping timeout: 264 seconds]
Vendethi_ has joined #ruby-lang
micalexander has joined #ruby-lang
micalexander has quit [Read error: Connection reset by peer]
micalexander has joined #ruby-lang
mdedetrich has joined #ruby-lang
davispuh has quit [Quit: Konversation terminated!]
Vendethi_ has quit [Ping timeout: 252 seconds]
earthquake has joined #ruby-lang
dwknoxy has joined #ruby-lang
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
omninonsense has joined #ruby-lang
Technodrome has joined #ruby-lang
yfeldblum has joined #ruby-lang
[spoiler] has quit [Ping timeout: 272 seconds]
kurko_ has quit [Ping timeout: 258 seconds]
sepp2k has quit [Quit: Leaving.]
kurko_ has joined #ruby-lang
datanoise has joined #ruby-lang
vlad_starkov has joined #ruby-lang
coca_rails has joined #ruby-lang
mannyt has quit [Quit: mannyt]
yfeldblum has quit [Remote host closed the connection]
sulo has joined #ruby-lang
yfeldblum has joined #ruby-lang
sulo has quit [Ping timeout: 252 seconds]
<Technodrome> yeah drbrain i keep thinking in terms of JS right now
<Technodrome> been doing a lot of node.js
stardiviner has joined #ruby-lang
Johz has quit [Remote host closed the connection]
sriehl has joined #ruby-lang
jithu has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mistym has joined #ruby-lang
charlespeach has quit [Quit: charlespeach]
charlespeach has joined #ruby-lang
charlespeach has quit [Client Quit]
omninonsense is now known as [spoiker]
<[spoiker]> fuck
[spoiker] is now known as [spoiler]
<[spoiler]> there
rickhull has quit [Quit: Leaving.]
thepumpkin has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
charlespeach has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby-lang
pr0ton has joined #ruby-lang
charlespeach has quit [Client Quit]
<Technodrome> [spoiler]: i keep thinking like Math.something is some property , like its not being executed etc
<[spoiler]> it can be a constant
thepumpkin has quit [Ping timeout: 264 seconds]
<[spoiler]> Math::Pi
<[spoiler]> for example
<[spoiler]> but that's not what you mean, though
charlespeach has joined #ruby-lang
<[spoiler]> idk, if Math::Pi is a constant, tho
datanoise has quit [Ping timeout: 268 seconds]
_Bravado has joined #ruby-lang
rony358 has quit [Quit: rony358]
_AJ has joined #ruby-lang
io_syl has joined #ruby-lang
fijimunkii has joined #ruby-lang
dingus_khan has joined #ruby-lang
rickhull has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
sriehl has quit []
simoz has quit [Ping timeout: 272 seconds]
dingus_khan has quit [Ping timeout: 268 seconds]
simoz has joined #ruby-lang
fijimunkii has quit [Ping timeout: 240 seconds]
_AJ has quit [Quit: Leaving.]
Asher1 has joined #ruby-lang
Asher has quit [Ping timeout: 240 seconds]
<Technodrome> [spoiler]: yeah but do you know how in JS, people re assign objects to different function objects all the time
mrpot4to_ has quit [Read error: Connection reset by peer]
<Technodrome> then execute and it messes up the context of "this"
MrPoT4tO has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
<[spoiler]> Technodrome: that's considered bad from :P I've never had a problem
<[spoiler]> in JS with it, though
<Technodrome> yeah people don't do it much
<[spoiler]> Also, if you want a class to mimic JS objects, you can do something like
* [spoiler] types
<Technodrome> i'm not a huge fan of prototypes , so no mimic'ing here really
<Technodrome> the whole "call time" this , has been an issue in JS for years because some people change some of the bigger libraries and it causes huge conflicts
vlad_starkov has quit [Ping timeout: 268 seconds]
<[spoiler]> Ruby uses a call-time self, too
<Technodrome> but you can't re assign like that though right? so its a non issue
<Technodrome> its call time but its also where its defined right?
<Technodrome> it works more like the java this ?
jsullivandigs has quit [Remote host closed the connection]
JoshuaPaling has joined #ruby-lang
<[spoiler]> self is context-aware
bastilian has quit [Ping timeout: 245 seconds]
sulo has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
kirin` has quit [Ping timeout: 240 seconds]
dwknoxy has quit [Quit: Computer has gone to sleep.]
kirin` has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 246 seconds]
sulo has quit [Ping timeout: 264 seconds]
Technodrome has quit [Quit: Technodrome]
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
<coca_rails> Any newbies feel like pairing up on a project with a fellow newbie on a rails project I just started?
<[spoiler]> what's the project? :-)
r0bby_ has joined #ruby-lang
simoz has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby-lang
r0bby_ has quit [Ping timeout: 265 seconds]
datanoise has joined #ruby-lang
<coca_rails> [spoiler]: Basically making a search utility using Blacklight for a bunch of PDF files online
<coca_rails> The Blacklight search utility will allow users to filter through a repository of pdfs
<coca_rails> that are relevant to what theyre searching for
<coca_rails> Are you interested? Crosses fingers:
kurko_ has quit [Quit: Computer has gone to sleep.]
datanoise has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
jsullivandigs has joined #ruby-lang
yfeldblum has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
TheMoonMaster has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
dingus_khan has joined #ruby-lang
lun___ has joined #ruby-lang
lun__ has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
coca_rails has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
vlad_sta_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby-lang
jonahR has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
sulo has joined #ruby-lang
MrPoT4tO has quit [Read error: Connection reset by peer]
sulo has quit [Ping timeout: 272 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
coca_rails has joined #ruby-lang
ikrima has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby-lang
<Technodrome> [spoiler]: so it is like the JS version of this a bit
jacknagel has left #ruby-lang [#ruby-lang]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
jonahR has quit [Quit: jonahR]
<Technodrome> [spoiler]: so in ruby, the self will always be the object receiver , but in ruby that will likely always be the place its defined in unless you include a module like you did or something?
Cakey has joined #ruby-lang
jonahR has joined #ruby-lang
thepumpkin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
thepumpkin has quit [Ping timeout: 265 seconds]
datanoise has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
nertzy2 has joined #ruby-lang
brianpWins has joined #ruby-lang
retro|cz has quit [Ping timeout: 264 seconds]
mac_ has joined #ruby-lang
mac_ has quit [Client Quit]
rony358 has joined #ruby-lang
rony358 has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
ikrima has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
sulo has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
charlespeach has quit [Quit: charlespeach]
tomzx_mac has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Remote host closed the connection]
sulo has quit [Ping timeout: 268 seconds]
fmccann has joined #ruby-lang
fmccann has quit [Client Quit]
Glass_saga has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
Cakey has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
mdedetrich has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby-lang
io_syl has quit []
io_syl has joined #ruby-lang
coca_rails has quit [Ping timeout: 265 seconds]
Cakey has joined #ruby-lang
soba has joined #ruby-lang
bfleischer has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 272 seconds]
bzalasky has quit [Ping timeout: 268 seconds]
Cakey has joined #ruby-lang
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
jonahR has joined #ruby-lang
h_kon has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Read error: Connection reset by peer]
sulo has joined #ruby-lang
charlespeach has joined #ruby-lang
mdedetrich has joined #ruby-lang
sulo has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby-lang
epichero has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mistym has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
coca_rails has joined #ruby-lang
stardiviner has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby-lang
thepumpkin has joined #ruby-lang
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
coca_rails has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
thepumpkin has quit [Ping timeout: 272 seconds]
datanoise has joined #ruby-lang
tubbo has quit [Ping timeout: 246 seconds]
jithu has joined #ruby-lang
tubbo has joined #ruby-lang
jithu has quit [Ping timeout: 240 seconds]
datanoise has quit [Ping timeout: 246 seconds]
jithu has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
tubbo has quit [Read error: Operation timed out]
Oak has joined #ruby-lang
tubbo has joined #ruby-lang
charlespeach has quit [Quit: charlespeach]
tubbo has quit [Read error: Operation timed out]
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
epichero has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
sulo has joined #ruby-lang
x0f has quit [Ping timeout: 272 seconds]
kitak__ has joined #ruby-lang
tubbo has joined #ruby-lang
kitak_ has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
coca_rails has joined #ruby-lang
sulo has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Ping timeout: 265 seconds]
x0f has quit [Ping timeout: 240 seconds]
x0f has joined #ruby-lang
rickhull1 has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
heftig has quit [Quit: Quitting]
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
rickhull has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
tubbo has quit [Quit: ZNC - http://znc.in]
tubbo` has joined #ruby-lang
heftig has joined #ruby-lang
mistym has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
havenwood has joined #ruby-lang
r0bgl33s0n has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby-lang
Olipro has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
mucker has joined #ruby-lang
nevill has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
coca_rails has quit [Ping timeout: 272 seconds]
torrieri has quit [Quit: Linkinus - http://linkinus.com]
Forgetful_Lion has joined #ruby-lang
nevill has quit [Quit: nevill]
havenwood has quit [Ping timeout: 272 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
kitak__ has quit [Read error: Connection reset by peer]
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Olipro has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
sulo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
kitak_ has joined #ruby-lang
Technodrome has joined #ruby-lang
charlespeach has joined #ruby-lang
Olipro has quit [Ping timeout: 260 seconds]
slyphon__ has quit [Ping timeout: 245 seconds]
sulo has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
io_syl has quit []
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
tbuehlmann has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
thepumpkin has joined #ruby-lang
jonahR has quit [Quit: jonahR]
lun___ has quit [Ping timeout: 265 seconds]
lun__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Scader has joined #ruby-lang
Scader has quit [Client Quit]
thepumpkin has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby-lang
Technodrome has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
michael_mbp is now known as zz_michael_mbp
Forgetful_Lion has joined #ruby-lang
junderhill has joined #ruby-lang
coca_rails has joined #ruby-lang
stardiviner has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
<gnufied> banisterfiend: you there?
coca_rails has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
<gnufied> weird bug I am seeing here
<gnufied> if a Process spawns another ruby process and a. spawned process has 'require "pry"' somewhere b. spawned process is created in its own process group. then second process simply hangs
<gnufied> I suspect this is because of readline somewhre
Forgetful_Lion has joined #ruby-lang
<gnufied> alright
<gnufied> looks like, child of stdin is still connected to terminals stdin
charlespeach has quit [Quit: charlespeach]
<gnufied> gah, I meant $stdin of child is still connected to terminal's stdin
deggisv2 has joined #ruby-lang
joschi_ has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
arBmind has joined #ruby-lang
soraher_ has joined #ruby-lang
snk_ has joined #ruby-lang
xsdg_ has joined #ruby-lang
tpope_ has joined #ruby-lang
lianj_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
ihme-TTilus has joined #ruby-lang
blowmage` has joined #ruby-lang
GaelanAintAround has quit [*.net *.split]
TCMSLP has quit [*.net *.split]
TTilus has quit [*.net *.split]
Guu has quit [*.net *.split]
brixen has quit [*.net *.split]
waxjar has quit [*.net *.split]
lianj has quit [*.net *.split]
joschi has quit [*.net *.split]
soraher has quit [*.net *.split]
xsdg has quit [*.net *.split]
snk has quit [*.net *.split]
tpope has quit [*.net *.split]
blowmage has quit [*.net *.split]
deggis has quit [*.net *.split]
havenwood has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
waxjar has joined #ruby-lang
Guu has joined #ruby-lang
brixen has joined #ruby-lang
MaddinXx has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Coincidental has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
Coincidental has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sulo has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mdedetrich has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
sulo has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
diegoviola has quit [Ping timeout: 265 seconds]
<yorickpeterse> morning
<gnufied> yorning yorick
mistym has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
hhatch has joined #ruby-lang
adambeynon has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
diegoviola has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
tkuchiki has joined #ruby-lang
Boohbah has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
coca_rails has joined #ruby-lang
tkuchiki has quit [Ping timeout: 268 seconds]
dagobah has joined #ruby-lang
workmad3 has joined #ruby-lang
coca_rails has quit [Ping timeout: 240 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
datanoise has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
kleech has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
hackeron_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
hackeron has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
mdedetrich has joined #ruby-lang
havenwood has joined #ruby-lang
DouweM has quit [Ping timeout: 246 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
sulo has joined #ruby-lang
x0f has quit [Ping timeout: 272 seconds]
sulo has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
krzyzaq has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
vasche has joined #ruby-lang
vasche has quit [Excess Flood]
Forgetful_Lion has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
DouweM has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby-lang
havenwood has joined #ruby-lang
thepumpkin has quit [Read error: Operation timed out]
SteveBenner9 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
retro|cz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
snafoo has joined #ruby-lang
MaddinXx has quit [Quit: Leaving...]
coca_rails has joined #ruby-lang
psih has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
knu has quit [Ping timeout: 260 seconds]
Forgetful_Lion has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
MrZYX|off is now known as MrZYX
Forgetful_Lion has quit [Read error: Operation timed out]
tubbo` has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
elia has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
sepp2k has joined #ruby-lang
tubbo has joined #ruby-lang
h_kon has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
h_kon has joined #ruby-lang
ldnunes has joined #ruby-lang
Coincidental has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
sulo has joined #ruby-lang
Coincidental has quit [Ping timeout: 272 seconds]
Cakey has joined #ruby-lang
sulo has quit [Ping timeout: 272 seconds]
datanoise has joined #ruby-lang
coca_rails has quit [Ping timeout: 260 seconds]
rickhull1 has quit [Quit: Leaving.]
Forgetful_Lion has quit [Read error: Operation timed out]
jvrmaia has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
arBmind1 has joined #ruby-lang
cored has joined #ruby-lang
arBmind has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
DouweM has quit [Quit: Leaving...]
Forgetful_Lion has quit [Read error: Operation timed out]
junderhill has quit [Read error: Connection reset by peer]
junderhill has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
krzyzaq has quit [Ping timeout: 265 seconds]
krzyzaq has joined #ruby-lang
<[spoiler]> o.o
<[spoiler]> is the memoserv
<[spoiler]> supposed to give feedba--nvm
<[spoiler]> it was lagging a little
mistym has quit [Ping timeout: 260 seconds]
krzyzaq has quit [Client Quit]
<psih> is it me or ruby under 64 bit is buggy as hell? o.O
<[spoiler]> psih: what's buggin' ya?
<psih> well, I have a Gentoo box, compiled the ruby and stuff
<joonty> psih: we always run it on 64 bit systems without problems
<psih> and I never saw so much weird things going on with an app EVER
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<[spoiler]> I've never had problems with running it on a 64bit system either
<psih> right now I'm trying to get Redmine working and it says that I don't have the security token generated
<yorickpeterse> ... that's not related to 64bit at all
<psih> the damn thing is - it is there where it looks for it
mikecmpbll has joined #ruby-lang
<psih> well, yesterday it was not working at all, I don't know how it kind'a works today...
junderhill has quit []
<psih> I get now this: ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb):
havenwood has joined #ruby-lang
junderhill has joined #ruby-lang
<psih> despite the fact that
<psih> cat config/initializers/secret_token.rb
<psih> RedmineApp::Application.config.secret_token = 'the long token here at around 64 symbols''
<psih> I just don't understand how these things are happening :(
Forgetful_Lion has quit [Read error: Operation timed out]
<psih> I'm a PHP guy myself, but even I know ruby/python are not as straight forward, setting up a RoR app by the looks of it is a hell, trying for the 3rd day now :(
WeirdThall has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Forgetful_Lion has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
ldnunes has quit [Quit: Leaving]
WeirdThall has joined #ruby-lang
<workmad3> psih: redmine is a PITA to get set up
skade has joined #ruby-lang
<workmad3> psih: their guides never seem to be complete enough for their primary target (peeps like you) and they have a lot of extra stuff that is above and beyond a normal rails app
<psih> workmad3, I noticed :( Although I've got up and running it on Ubuntu box, just an ancient version
ldnunes has joined #ruby-lang
krzyzaq has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<psih> I can't get it why it does not read the secure_token although it is there, maybe it's sonthing in the way it is defined, i'm just not familiar with ruby syntax to see if something is wrong :()
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
krzyzaq has quit [Quit: krzyzaq]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
joonty_ has joined #ruby-lang
joonty has quit [Ping timeout: 272 seconds]
arBmind1 has quit [Ping timeout: 240 seconds]
elia has quit [Quit: Computer has gone to sleep.]
arBmind has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
x0f has quit [Ping timeout: 272 seconds]
tbuehlmann has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
x0f has joined #ruby-lang
sulo has joined #ruby-lang
coca_rails has joined #ruby-lang
x0f has quit [Read error: Operation timed out]
x0f has joined #ruby-lang
sulo has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
coca_rails has quit [Ping timeout: 260 seconds]
nertzy2 has joined #ruby-lang
Oak has quit [Quit: Later guys... :) (me liking http://hexchat.github.io/ very much)]
<[spoiler]> psih: if it was syntac error, ruby's led you know loud and clear
<[spoiler]> s/'s/'d
<psih> hope so :) Right now I have no idea why does it fail like that
Forgetful_Lion has joined #ruby-lang
<psih> not like i'm runing ruby 2.0 or wrong rails version
<[spoiler]> Where are you getting tha argument error?
vpretzel has joined #ruby-lang
<[spoiler]> maybe you made a typo and are passing a nil
<[spoiler]> or, nvm
<[spoiler]> it looks like
<[spoiler]> it's not even passing
<[spoiler]> in the argument
<psih> the content of the file is RedmineApp::Application.config.secret_token = 'token'
bastilian has joined #ruby-lang
<psih> file is located where it tries it to read
<psih> permissions are ok
<[spoiler]> You're getting the error from within `config/initializers/secret_token.rb`?
<[spoiler]> That's so odd
<psih> ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb):
<psih> /usr/lib64/ruby/gems/1.8/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:319:in `ensure_secret_secure'
<psih> I get it like this
<psih> I can pastebin the whole trace if you need
<psih> here is the full trace I get http://pastebin.com/JfY7xXud
breakingthings has joined #ruby-lang
<[spoiler]> is that rails 3.2?
<[spoiler]> looks like it
jonahR has joined #ruby-lang
<psih> yep, rails -v
<psih> Rails 3.2.13
<[spoiler]> Hmm, ok I'm on Rails 4, and this is what I have
junderhill has quit [Remote host closed the connection]
<[spoiler]> App::Application.config.secret_key_base = '...'
<[spoiler]> :|
joonty_ is now known as joonty
<[spoiler]> what's in your session_store.rb?
Forgetful_Lion has quit [Read error: Operation timed out]
dr_bob has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
<psih> where I should look for it? in gems folder?
Forgetful_Lion has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<psih> I don't have a session_store.rb in the app itself
soba has quit [Ping timeout: 246 seconds]
thepumpkin has joined #ruby-lang
kurko_ has joined #ruby-lang
havenwood has joined #ruby-lang
<[spoiler]> psih: should be in config
<[spoiler]> i mean config/initializers
Forgetful_Lion has quit [Read error: Operation timed out]
thepumpkin has quit [Ping timeout: 264 seconds]
<psih> don't have it there
<psih> only 3 files
<psih> backtrace_silencers.rb inflections.rb and secret_token.rb
Forgetful_Lion has joined #ruby-lang
<[spoiler]> oh
<[spoiler]> `App::Application.config.session_store :cookie_store, key: '_appname_session'`
<[spoiler]> create it and write that
havenwood has quit [Ping timeout: 272 seconds]
<[spoiler]> change `App` and `'_appname_session'` to Redmine, and to whatever you want the cookie to be called
<[spoiler]> that's Rails4, I'm not sure hopw much different it is in Rails 3.2
<[spoiler]> check the documentation
<[spoiler]> s/hopw/how
<psih> ok, gime a few minutes
michael_mbp is now known as zz_michael_mbp
mdedetrich has quit [Quit: Computer has gone to sleep.]
<psih> hm, according to the redmine docs
<psih> it does not have to have the session_store
<psih> after the 2.0.0 version of redmine (which applies to me
shinnya has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
r0bgl33s0n has joined #ruby-lang
toretore has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<[spoiler]> Ah, balls. I've never really used Redmine. I think there's a rails channel
<[spoiler]> you might have more luck there
<psih> ok thanks :)
<[spoiler]> Yup, try #rails :-)
<workmad3> no, don't try #rails
nertzy2 has quit [Quit: This computer has gone to sleep]
<workmad3> try #rubyonrails
<workmad3> #rails is a barren wasteland :)
skade has quit [Quit: Computer has gone to sleep.]
<[spoiler]> haha
<[spoiler]> I tried #ruby-on-rails, created a channel accidentally :s
<workmad3> I sat in #rails for about a month before realising :) then I sat in there for about 6 months more in order to redirect newcomers to #rubyonrails :)
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> workmad3: I'm one of those lucky people that never had problems with rails. I know my friend _loathes_ rails. I'd not be surprised if he was in #rubyonrails
* [spoiler] asks him on Skype
<[spoiler]> Oh, he doesn't even use IRC. :-/
<psih> :)
Forgetful_Lion has joined #ruby-lang
mucker has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
CoreData has quit [Client Quit]
CoreData has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Coincidental has joined #ruby-lang
sulo has joined #ruby-lang
coca_rails has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
Coincidental has quit [Ping timeout: 272 seconds]
<workmad3> [spoiler]: I quite like rails :)
sulo has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
tomzx_mac has joined #ruby-lang
coca_rails has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
priodev has quit [Ping timeout: 245 seconds]
crankharder has quit [Remote host closed the connection]
mucker has joined #ruby-lang
priodev has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
mistym has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
havenwood has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
lun__ has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
kurko_ has joined #ruby-lang
fmccann has joined #ruby-lang
havenwood has quit [Ping timeout: 246 seconds]
lun__ has joined #ruby-lang
chrisco has joined #ruby-lang
fmccann has quit [Client Quit]
fmccann has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
fmccann has quit [Client Quit]
Forgetful_Lion has quit [Read error: Operation timed out]
fmccann has joined #ruby-lang
fmccann has quit [Client Quit]
fmccann has joined #ruby-lang
chrisco has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
blowmage` has left #ruby-lang [#ruby-lang]
blowmage has joined #ruby-lang
fmccann has quit [Client Quit]
slyphon__ has joined #ruby-lang
simoz has joined #ruby-lang
slyphon__ is now known as slyphon
slyphon has quit [Client Quit]
slyphon has joined #ruby-lang
athaeryn has joined #ruby-lang
<athaeryn> why doesn't this work? http://vpaste.net/KeyMB
<athaeryn> it just renders '<a href=""></a>'
<athaeryn> the .net version of mustache, nustache, handles that template just fine, and i need to be able to use those same templates.
Forgetful_Lion has quit [Read error: Operation timed out]
<toretore> try using string keys?
<cout> good call toretore
Forgetful_Lion has joined #ruby-lang
<athaeryn> i've tried that. i think it's the "{{#.}}" (the dot)
smashwilson has joined #ruby-lang
<athaeryn> if i do something like `view = Mustache.new; view[:collection] = [...]; view.render('{{#collection}}{{name}}{{/.}}')` it works
<banisterfiend> cout ni hao ma
<cout> I don't speak any asian languages :(
michd is now known as MichD
<cout> I would like to though
mnngfltg has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
Johz has joined #ruby-lang
<athaeryn> sorry, that last `{{/.}}` should be `{{/collection}}`
<toretore> sounds like using #collection is the better way anyway
<toretore> always be namespacing
<yorickpeterse> MOSHI MOSHI YORICK DESU
Forgetful_Lion has quit [Read error: Operation timed out]
<yorickpeterse> re asian languages
<gnufied> wat
havenwood has joined #ruby-lang
<gnufied> banisterfiend: did you see my morning message?
<athaeryn> toretore: that's what i would prefer, but i have to reuse existing templates from a .net project :/
nisstyre has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 264 seconds]
jiuweigui has joined #ruby-lang
sulo has joined #ruby-lang
coca_rails has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
tomzx_mac has quit [Ping timeout: 272 seconds]
sulo has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
nathanstitt has joined #ruby-lang
jxie has quit [Quit: leaving]
nathanstitt has quit [Client Quit]
athaeryn has quit [Remote host closed the connection]
nullary_void has joined #ruby-lang
nullary_void has quit [Client Quit]
momomomomo has joined #ruby-lang
Okasu has joined #ruby-lang
<Okasu> wondering why does it overflows http://ideone.com/3ByWoF ...
<Okasu> That one works fine http://ideone.com/l4BMLL .
<yorickpeterse> grrrrr, LESS
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> I prefer sass
<[spoiler]> It's got more attitude, innit
<rue> I bet you do, mm-hm
<[spoiler]> LOL
Forgetful_Lion has joined #ruby-lang
Okasu has left #ruby-lang [#ruby-lang]
Okasu has joined #ruby-lang
<Mon_Ouie> Okasu: Because my_nil is out of scope in the class << my_nil; …; end block
<Okasu> Mon_Ouie: Why? There is my_nil = nil onel ine above.
<Mon_Ouie> But class … end creates an entirely new scope
<Mon_Ouie> As does def … end
<Mon_Ouie> You can use class_eval and define_method, which accept blocks, to capture local variables
<Okasu> Mon_Ouie: Well, for out of scope ruby has NameError, no?
<Mon_Ouie> Except you have define method_missing, so that gets called instead
<Okasu> Ah, indeed.
thepumpkin has joined #ruby-lang
<Mon_Ouie> Also notice there's only one nil object
<Mon_Ouie> So that method will globally silence NoMethodError on nil
Forgetful_Lion has quit [Read error: Operation timed out]
knu has joined #ruby-lang
<banisterfiend> Mon_Ouie 'alut, define_method is no longer private on 2.1 right?
<Okasu> Mon_Ouie: Yep.
dwknoxy has joined #ruby-lang
mannyt has joined #ruby-lang
thepumpkin has quit [Ping timeout: 272 seconds]
MaddinXx has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
hanniph has joined #ruby-lang
<Mon_Ouie> banisterfiend: Looks to me like it still is (trying to call it on Object.new)
<banisterfiend> Mon_Ouie Object.new isn't a class, so you're calling it on the singleton class or sth?
<Mon_Ouie> Oh, define_method, thought you said method_missing
knu has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Oh, and actually I don't have 2.1 installed, so I can't check here
<Mon_Ouie> Does eval-in have it?
<banisterfiend> >> RUBY_VERSION
<eval-in> banisterfiend => "2.0.0" (https://eval.in/59550)
<Mon_Ouie> 21>> Class.method_defined? :define_method
io_syl has joined #ruby-lang
<Mon_Ouie> https://eval.in/59551 # => false
bf4 has joined #ruby-lang
hogeo has quit [Ping timeout: 264 seconds]
dwknoxy has quit [Quit: Computer has gone to sleep.]
micalexander has quit [Remote host closed the connection]
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
micalexander has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
coca_rails has quit [Ping timeout: 240 seconds]
Okasu has left #ruby-lang [#ruby-lang]
Forgetful_Lion has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
micalexander has quit [Ping timeout: 272 seconds]
Cakey has joined #ruby-lang
<cout> aww, where did rubygarden.org go?
retro|cz has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
|jemc| has quit [Read error: Operation timed out]
slyphon has joined #ruby-lang
<yorickpeterse> it grew out of control
coca_rails has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<yorickpeterse> <queue CSI tune>
Forgetful_Lion has joined #ruby-lang
MichD is now known as michd
<r0bgl33s0n> cout: i can compensate with tulips. you down?
coca_rails has quit [Read error: Operation timed out]
enebo has joined #ruby-lang
<banisterfiend> r0bgl33s0n did u hear about the 'tulip bubble' in holland?
<r0bgl33s0n> nope
wallerdev has joined #ruby-lang
<banisterfiend> around 1700s tulips were worth more than equivalent weight in gold or sth
junderhill has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
aef has joined #ruby-lang
<r0bgl33s0n> very interesting
slyphon has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
<rue> That’s just because gold is worthless
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
mahlon has quit [Quit: nine foot long outhouse ladle]
momomomomo has joined #ruby-lang
Coincidental has joined #ruby-lang
jxie has joined #ruby-lang
<cout> r0bgl33s0n: hah
junderhill has quit [Read error: Connection reset by peer]
junderhill has joined #ruby-lang
|jemc| has joined #ruby-lang
sulo has joined #ruby-lang
r0bgl33s0n is now known as r0bgleeson
<r0bgleeson> the more leet speak in my name is a direct consequence of unreliable internet
ged has quit [Quit: WeeChat 0.4.1]
Coincidental has quit [Read error: Operation timed out]
<yorickpeterse> that's because you live in a third-world city
Technodrome has joined #ruby-lang
<banisterfiend> r0bgleeson he's just jelly he lives in a dorp
Forgetful_Lion has quit [Read error: Operation timed out]
smashwilson has quit [Quit: Leaving.]
<yorickpeterse> at least we have decent internet
junderhill has quit [Ping timeout: 260 seconds]
sulo has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
smashwilson has joined #ruby-lang
vpretzel has quit [Remote host closed the connection]
<banisterfiend> yorickpeterse that's just to keep everyone inside so they don't complain they live in a dorp
vpretzel has joined #ruby-lang
<Technodrome> Good day
<yorickpeterse> I don't think anybody complains about that, if anything they complain about those 5 foreigners living across the train station
<yorickpeterse> or the homeless people being drunk on the street
micalexander has joined #ruby-lang
<Technodrome> so self, if it's defined in say a Person class, and used by a module method or used by a subclass, the instance of that Person class will always be the receiver class right? The value of self is mostly it seems like the class it was defined in, or if its a subclass or something or module the class in which self was in the context tree
<Technodrome> I think I have it, just looking for reassurance
vpretzel has quit [Ping timeout: 246 seconds]
benwoody has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
Forgetful_Lion has joined #ruby-lang
davispuh has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
relix has joined #ruby-lang
nathanstitt has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
micalexander has quit [Remote host closed the connection]
bastilian has quit [Ping timeout: 245 seconds]
io_syl has quit []
Forgetful_Lion has joined #ruby-lang
micalexander has joined #ruby-lang
shivamib has joined #ruby-lang
mucker has quit [Remote host closed the connection]
lfox has joined #ruby-lang
mucker has joined #ruby-lang
fmccann has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
lfox has quit [Client Quit]
fmccann has left #ruby-lang [#ruby-lang]
havenwood has quit [Remote host closed the connection]
lfox has joined #ruby-lang
fmccann has joined #ruby-lang
havenwood has joined #ruby-lang
hogeo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
vpretzel has joined #ruby-lang
mucker has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
fmccann has quit [Quit: fmccann]
Forgetful_Lion has quit [Read error: Operation timed out]
brianpWins has quit [Quit: brianpWins]
rchar has quit [Ping timeout: 245 seconds]
metus_violarium has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
yfeldblum has joined #ruby-lang
slyphon has joined #ruby-lang
mucker has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
<[spoiler]> Self is is not evaluated until it needs to be.
<Technodrome> yes i think I got it pretty good now [spoiler]
<Technodrome> wherever it's evaluated from, the object receiver will be self
wallerdev has quit [Quit: wallerdev]
<Technodrome> the object in which is calling a method in which self is present that is
krzyzaq has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
<[spoiler]> mhm
tylersmith has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby-lang
MaddinXx has quit [Quit: Leaving...]
TheMoonMaster has joined #ruby-lang
<Technodrome> i guess me explaining it causes more confusion sometimes than its worth [spoiler] :)
sulo has joined #ruby-lang
<[spoiler]> Haha, it's alright. We've all have trouble with some concepts in programming languages at first
<[spoiler]> For me it was the `&:bleh` syntax
<Technodrome> i mean the only thing i was making sure is that "this" is not like self in ruby, but you can't really redefine methods all like that, if you do, like you mentioned yesterday, it will be just the value
Forgetful_Lion has quit [Read error: Operation timed out]
<Technodrome> this is really the only thing that ever hangs me up in Ruby
<[spoiler]> Technodrome: that you can't redefine methods?
benanne has joined #ruby-lang
<Technodrome> no , the self in ruby
<Technodrome> i mean, i'm making it more complicated than it has to be for sure
efrainolivares has joined #ruby-lang
sulo has quit [Ping timeout: 260 seconds]
Forgetful_Lion has joined #ruby-lang
Geoffc_ has joined #ruby-lang
<[spoiler]> There's 3 things about self: 1 inside a class/module block it references the class/module; 2 in a method it references the receiver; 3 "out-in-the-wild" it references an special instance of `Object` "called" main
<Technodrome> why would you ever want it in a class/module block?
<Technodrome> to create a "class" method?
rchar has joined #ruby-lang
Geoffc__ has joined #ruby-lang
knu has joined #ruby-lang
Geoffc__ has quit [Client Quit]
<[spoiler]> Technodrome: Well, what if your method needs to pass the object it's called on to an API
<[spoiler]> so, inside a method you would have something like
<[spoiler]> def method; API::process(this); end
<[spoiler]> i mean self, sorry
<[spoiler]> not this haha
Geoffc_ has quit [Ping timeout: 250 seconds]
<[spoiler]> Technodrome: this might help as to what `self` does when it's not inside a class/module/method: https://eval.in/private/ee1ecb8d8f20d9
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> defining a method inside `class Object` is the same as defining it out in the wild
mac__ has joined #ruby-lang
__butch__ has joined #ruby-lang
<Technodrome> anything you add to the main Object class is available throughout the entire program from top level [spoiler] ?
mac__ has quit [Client Quit]
mac__ has joined #ruby-lang
<[spoiler]> Technodrome: the "top level" *is* Object :)
Forgetful_Lion has joined #ruby-lang
<Technodrome> yeah, I knew that, but i didn't know you could just monkey patch that
<Technodrome> interesting
<[spoiler]> Technodrome: it's just implicit, rather than explicit
<Technodrome> implicit is probably better
mac__ has quit [Client Quit]
mac__ has joined #ruby-lang
kleech has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 264 seconds]
<Technodrome> [spoiler]: shouldn't the to_s method on Object change it from main to this? why when you print self do you still get main?
mac__ has quit [Client Quit]
macmartine has joined #ruby-lang
tsou has quit [Quit: off]
<[spoiler]> Technodrome: because I'm printing self and this. I defined `this` and attached .inspect and .to_s singletons to it
<[spoiler]> I didn't touch self
<Technodrome> [spoiler]: p is shorthand for inspect right?
tbuehlmann has quit [Quit: Konversation terminated!]
thepumpkin has joined #ruby-lang
<[spoiler]> p calls inspect on the object and sends the result to stdio output
<[spoiler]> i think it tries .to_s and then it tries .inspect if .to_s is not defined (needs confirmation)
<[spoiler]> Technodrome: I am not sure if you can modify `self` the example I provided with `this` is what happens inside the C part of Ruby
<Technodrome> looks like it returns the value as well
<[spoiler]> oh, yes, x = p a
<[spoiler]> is completely valid
<Technodrome> p name
<Technodrome> [1, 2, 3]
<Technodrome> => [1, 2, 3]
<[spoiler]> >> p "hello"
<Technodrome> where inspect you just get the return value and not it printed out
<eval-in> [spoiler] => "hello" ... (https://eval.in/59565)
Forgetful_Lion has quit [Read error: Operation timed out]
<Technodrome> yeah
<[spoiler]> mhm
<Technodrome> kinda cool, not sure how it would come into handy though
<[spoiler]> Technodrome: some people use it for logging/dirty debugging
<Technodrome> [spoiler]: when you added def this.inspect its just a regular instance method right? Nothing special about it, just as if it was defined in the class itself?
<[spoiler]> Technodrome: no, it's actually more complicated
thepumpkin has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
<[spoiler]> but, knowing that it's a singleton method of `this` is enough
<Technodrome> [spoiler]: its still an instance method right?
<[spoiler]> Technodrome: Well, it will only work on that one specific object
<[spoiler]> but yeah, it works like an instance method
<Technodrome> ah
imperator has joined #ruby-lang
<Technodrome> how common are an instance method add on like that?
<[spoiler]> Technodrome: Not very common, afaik. I'm sure there's practical applianes, but I've never really needed it myself
<[spoiler]> applications*
<[spoiler]> However, it's very common to define singleton methods on classes or modules
efrainolivares has quit [Quit: efrainolivares]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
saarinen has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
<[spoiler]> What happens in beckground, when you create a singleton method, is that a new class is created (a subclass of the original class), and then the method gets added to that class, and your object's class changes to that singleton class (I think that's what they're called)
psih has quit [Quit: Leaving]
brianpWins has joined #ruby-lang
saarinen has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<[spoiler]> Oh, no sorry, I was wrong. All objects have singleton classes
<[spoiler]> but, when you add a method to an object directly
<[spoiler]> you add it to its singleton class
shinnya has quit [Read error: Operation timed out]
Cakey has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
<[spoiler]> Oh
<[spoiler]> I've been talking to someone who's not here
<[spoiler]> I miss those part/join messages now :|
yfeldblu_ has joined #ruby-lang
Technodrome has joined #ruby-lang
<[spoiler]> wb, Technodrome :)
<Technodrome> [spoiler]: in other words it's just available to that one object instance?
<Technodrome> this would be a singleton class correct?
io_syl has joined #ruby-lang
<[spoiler]> All objects have their own singleton class (a subclas of their class, basically) and when you define a singleton method
<Technodrome> i see
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> you define it on their singleton class
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 272 seconds]
<Technodrome> yeah
Forgetful_Lion has joined #ruby-lang
m0no has quit [Quit: leaving]
<Technodrome> class << self , what singleton class is this [spoiler] ?
Nilium has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
efrainolivares has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Nilium has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
<[spoiler]> that's self's singleton class
<[spoiler]> Oh, it's
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> Object singleton
<[spoiler]> basically
Forgetful_Lion has joined #ruby-lang
postmodern has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Coincidental has joined #ruby-lang
MaddinXx has joined #ruby-lang
nigerianceo has joined #ruby-lang
<soahccc> Do negative lookaheads act like a character group so (?!foo)+ matches everything except foo. I don't understand all the example I've found
<Technodrome> [spoiler]: self being a subclass of the Object class?
sulo has joined #ruby-lang
<Technodrome> i'm still not sure if self *is* the Object or just a subclass of it when not used in a method etc
dagobah has quit [Remote host closed the connection]
Coincidental has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Cakey has joined #ruby-lang
<[spoiler]> self (when outside of module/class/method) is an instance of Object
Forgetful_Lion has joined #ruby-lang
tylersmith has joined #ruby-lang
<[spoiler]> defining a wild method (lol) is like defining it on self
<[spoiler]> because self's the receiver
sulo has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
tylersmith has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
hahuang65 has joined #ruby-lang
tylersmith has joined #ruby-lang
CaptainJet has joined #ruby-lang
zoo-zed has joined #ruby-lang
<[spoiler]> Technodrome: that might help
zoo-zed has quit [Client Quit]
<Technodrome> [spoiler]: what about when its inside of a module and included right into main? self is then still the instance of Object right?
MrPoT4tO has joined #ruby-lang
<[spoiler]> Yep
Forgetful_Lion has quit [Read error: Operation timed out]
Cakey has quit [Ping timeout: 272 seconds]
<[spoiler]> self, on top-level, is a bit special. I can't fathom why you'd ever need toplevel self
soraher_ has quit [Quit: Tiarra 0.1+svn-39192: SIGTERM received; exit]
Forgetful_Lion has joined #ruby-lang
<heftig> soahccc: makes about as much sense as \b+
<heftig> lookaheads have zero match size
<soahccc> what does that mean? It's impossible
<[spoiler]> soahccc: nothing is impossible. :P
<[spoiler]> soahccc: What do you need specifically?
vpretzel has quit [Remote host closed the connection]
<soahccc> I have one group (.*?) and it should not match if it contains a special word
vpretzel has joined #ruby-lang
zoo-zed has joined #ruby-lang
symm- has joined #ruby-lang
bastilian has joined #ruby-lang
zoo-zed has quit [Client Quit]
<soahccc> I know you will blame me now because of what I attempt but this is the problem: http://rubular.com/r/cWkZ6u5jC1
<[spoiler]> Hmm. Do you *have* to use regexp? there's nokogiri
<Technodrome> [spoiler]: pretty sure i get it now :)
<[spoiler]> Technodrome: I'm glad! :D
Forgetful_Lion has quit [Read error: Operation timed out]
vpretzel has quit [Ping timeout: 272 seconds]
<soahccc> I know there is but it's a big dependency for just one or 2 tags I want to replace... I know that even if I could get this lookwhatever working it would still break if one of my attributes include a > but it would be good enough
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
<soahccc> I put the first match into shellwords.shellsplit so \" and "''" works
Forgetful_Lion has joined #ruby-lang
<[spoiler]> soahccc: you can take a look at http://ruby-doc.org/stdlib-2.0.0/libdoc/rexml/rdoc/REXML.html
<Technodrome> [spoiler]: its just the small things that trip me up sometimes
<[spoiler]> soahccc: I just very strongly advise you don't use regexp for parsing stuff :(
sn0wb1rd has left #ruby-lang [#ruby-lang]
<[spoiler]> Technodrome: Oh, you'll get the hang of it, I'm sure
<Technodrome> I'm just doing a rails project here atm
<Technodrome> and yeah the whole self thing was tripping me up a bit, but most people when doing rails don't even use it
<[spoiler]> yeah, it's rarely used within rails projects
<soahccc> [spoiler]: I know it's bad in general but it's just for out blog (markdown). I can live with "no < in attributes" but it would be cool to support < in the innerHTML without forcing to close the tag when you have no content
jiuweigui has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Read error: Operation timed out]
soraher has joined #ruby-lang
<[spoiler]> Technodrome: also, this is an example where self is useful: https://eval.in/private/289e67b22285a8
simoz has quit [Ping timeout: 272 seconds]
<[spoiler]> but, API can be an external service, or soem FFI binding, or a C extension, etc
<[spoiler]> soahccc: Okay, I'll look at that regexp now
Forgetful_Lion has joined #ruby-lang
mucker has quit [Remote host closed the connection]
jiuweigui has joined #ruby-lang
<Technodrome> whats that one site i can try out ruby code in the browser and it has a nice editor and stuff? forget its name
arBmind has quit [Quit: Leaving.]
mucker has joined #ruby-lang
<[spoiler]> Technodrome: eval.in?
<Technodrome> no :)
<[spoiler]> I usually use IRB, though
<Technodrome> yeah
<Technodrome> you every try pry [spoiler] ?
MaddinXx has quit [Quit: Leaving...]
<[spoiler]> Technodrome: I did, but it's a habbit to type "irb"
<[spoiler]> habit*
<soahccc> [spoiler]: Thanks
<Technodrome> there is that Wirble thing too
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<[spoiler]> soahccc: does it have to be a single expression? because you can do this differently
nathanstitt has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<soahccc> [spoiler]: Hmm I don't think so. Here's my current implementation: https://gist.github.com/2called-chaos/a5a0e764835bb831f88c
<soahccc> starts line 80
kirin` has quit [Ping timeout: 264 seconds]
tbuehlmann has joined #ruby-lang
<micalexander> does ruby count escaped characters as a character in length? Im trying to write a php serialization fixer
krzyzaq has quit [Ping timeout: 272 seconds]
<heftig> micalexander: your question is invalid
<micalexander> heftig: explain
Forgetful_Lion has joined #ruby-lang
<heftig> strings don't store any information about "escapings"
<heftig> escaping is purely an external property
<micalexander> heftig: so \" would count as two characters if it was in a string
<heftig> sure, that's a backslash and a quote
rchar has quit [Ping timeout: 260 seconds]
<heftig> but that has no intrinsic meaning
<micalexander> is there a way to force a meaning
<heftig> what?
<MrZYX> what's the "meaning" of \"?
rchar has joined #ruby-lang
<micalexander> heftig: well away that ruby would see that as a quote
<heftig> no, it doesn't
<micalexander> MrZYX: to escape the quote
<heftig> the literal parser does, not the string
kirin` has joined #ruby-lang
<MrZYX> how is a "escaped quote character" different from a quote character?
vpretzel has joined #ruby-lang
<[spoiler]> soahccc: bleh. I am not in the mood for this. So sorry!! :(
dwknoxy has joined #ruby-lang
<soahccc> [spoiler]: No problem, I'm desperate too
hanniph has quit [Remote host closed the connection]
<micalexander> MrZYX: ruby sees it as two character not one
<MrZYX> that doesn't answer my question
<[spoiler]> do you need the attributes?
rickhull has joined #ruby-lang
<micalexander> MrZYX: well I don't understand your question
<[spoiler]> MrZYX: If you have """ it's a syntax error
vlad_starkov has joined #ruby-lang
<[spoiler]> MrZYX: If you have "\"" then it's a string with a single character, which is "
<[spoiler]> using \" oputside of a string does... fuck know what
<[spoiler]> syntax error, probably
<Technodrome> [spoiler]: class Foo
<Technodrome> class << self
<[spoiler]> soahccc: do you just need the attributes?
<MrZYX> [spoiler]: I know, just trying to get where micalexander's confusion is ;)
<Technodrome> self here is the class Foo though , where if it wasn't a class statement it would be the main right?
<Technodrome> so self changes when you're doing a class inside a class?
<MrZYX> micalexander: you seem to suggest that there's a difference between a " character and a \" character, where is that difference?
<[spoiler]> Technodrome: Self is context-aware. A class is born as soon as class Foo s encountered
Forgetful_Lion has quit [Read error: Operation timed out]
krzyzaq has joined #ruby-lang
<micalexander> MrZYX: give me a sec to give a better example of what I mean
<Technodrome> maybe i'm loosing it but it thought puts self.class , it would be "main" but i'm just loosing it
<Technodrome> confusing myself
<[spoiler]> MrZYX: there is a difference? " marks the beginning or the end of a string literal, and \" is an escaped quotation marked so it can be used inside interpolatable strings
<MrZYX> [spoiler]: of course not, from what I've read micalexander things there is ;)
<MrZYX> *thinks
<[spoiler]> s/?/.
<[spoiler]> I'm confused as hell now.
Forgetful_Lion has joined #ruby-lang
<[spoiler]> Technodrome: wait. When Ruby encounters self inside a class, it ir a reference to that class
thepumpkin has joined #ruby-lang
arBmind has joined #ruby-lang
<[spoiler]> so doing `class << self ...` means you're accessing the singleton class of that class, which is Class:Foo, basically
<Technodrome> yeah [spoiler] i just had a mental moment
<[spoiler]> haha
<Technodrome> and in a module its a reference to whatever class includes it etc
Locke23rus has joined #ruby-lang
<[spoiler]> Technodrome: no, it's a reference to that module
<Technodrome> when i did a puts self.class on a module i included , it showed Foo
<csaunders> Because modules get mixed into the class
<csaunders> I believe Pat Shaugnessy's book explains it kinda well
<micalexander> MrZYX: how about this, is there force ruby to see escape sequences as part of a raw string
ikrima has joined #ruby-lang
<Technodrome> yes, that is how I understood it
<csaunders> here's my poor attempt at explaining it.
<MrZYX> what's a raw string?
<csaunders> When you include a module it's like you are reopening the class and defining those methods on the class
iliketurtles has joined #ruby-lang
<csaunders> but you can do some neat things, like when a module is included, run this code
<[spoiler]> Technodrome: oh, you meant the `self` in a method?
<csaunders> [spoiler] - the self is the the instance right, and modules cannot be instantiated, correct?
<Technodrome> yes so anything included in a class, when called on that object which is an instance of that class, they all share the same receiver class?
lfox has quit [Quit: ZZZzzz…]
pr0ton has joined #ruby-lang
<[spoiler]> csaunders: nope, they can't.
sulo has joined #ruby-lang
<Technodrome> [spoiler]: so self is the module right there right?
<[spoiler]> in my example yes
<Technodrome> yeah
<[spoiler]> but, if self is inside a method inside a module, then it references whichever an instance
Forgetful_Lion has quit [Read error: Operation timed out]
<Technodrome> and the fact you bonded it to the module itself (singleton) it can't be included in another class?
<Technodrome> yeah i get that [spoiler]
<[spoiler]> Exactly
<[spoiler]> What module does, is extend the "method pool" of a class. So when a class looks through all of its methods, then it starts looking thourh the module's methods
<[spoiler]> modules'*
<Technodrome> basically a module is just a non instantiable class?
<[spoiler]> if it finds a method, it executes that method within the context of its (the class's) instance
Forgetful_Lion has joined #ruby-lang
<micalexander> MrZYX: in ruby this "\&quo t".length #=> 6 and in python len("\&quo t") #=> 7. Im trying to get to the source of the issue
<Technodrome> yeah i get it [spoiler]
<Technodrome> hopefully thats the end of it :)
<Technodrome> csaunders: you talking about the "ruby under a microscope" book?
<csaunders> yes
<lianj_> micalexander: try bytesize
<[spoiler]> Technodrome: well, a module is a collection of methods. Modules don't have instance variables and all the stuff classes have
sulo has quit [Ping timeout: 245 seconds]
<[spoiler]> Modules are like interfaces in C++
<[spoiler]> if you ever worked with those
<micalexander> lianj_: .bitesize
<[spoiler]> well, similar
<micalexander> lianj_: .bytesize
<csaunders> [spoiler] are C++ interfaces similar to Java ones? Or am I thinking of pure virtual classes?
<MrZYX> micalexander: try '\&quo t'
<Technodrome> how are java interfaces like ruby modules?
<Technodrome> ruby modules have code?
<Technodrome> java interfaces are just well an interface, method definition
<[spoiler]> csaunders: I've never worked with Java :(
<csaunders> Technodrome: Not saying they are.
<Technodrome> like an abstract class sorta
<Technodrome> ah
<Technodrome> sorry
bastilian has quit [Quit: Linkinus - http://linkinus.com]
<csaunders> [spoiler] "I haven't worked with Java :)" ftfy :P
<MrZYX> micalexander: ruby's literal parser interprets "\&" as &, pythons as \&
bastilian has joined #ruby-lang
<[spoiler]> what does ftfy mean?
<csaunders> fixed that for you
<[spoiler]> hahaha
<[spoiler]> Why the smiley face
<[spoiler]> happy smiley face
<csaunders> Not working with java is sometimes a good thing :P
willdrew has joined #ruby-lang
<MrZYX> micalexander: ruby's literal parser interprets '\&' as \&, so using single quotes makes the behavior consistent with pythons
<micalexander> MrZYX: are you familiar by chance what php sees it as?
willdrew has quit [Remote host closed the connection]
<Technodrome> csaunders: java is where i made all my money for a while :)
Cakey has joined #ruby-lang
<MrZYX> no, but should be easy to try out
<MrZYX> micalexander: looks like same as python, \& (and ruby using single quotes)
<micalexander> MrZYX: the issue Im having is that Im pulling a regex match from a sql file of a the double quotes are escaped as well as ampersands and the likes so it throughs my serialization fix off by count. Not sure if I can force single quotes. So Im looking or another option
Forgetful_Lion has quit [Read error: Operation timed out]
<micalexander> MrZYX: is there a way to force it
<MrZYX> reading the string from a file is whole different story than writing "\&" into your ruby script
<[spoiler]> csaunders, Technodrome: take a look at this example (https://eval.in/private/d1ea340952926e) this is what modules are for basically
Cakey has quit [Ping timeout: 272 seconds]
<csaunders> [spoiler] yeah
krzyzaq_ has joined #ruby-lang
<Technodrome> so a module can have an initialize?
<micalexander> MrZYX: Im trying to do this count = match[pattern, 4].length, and its giving me the wrong coutn in the case of having those characters
<csaunders> Technodrome: No
wallerdev has quit [Quit: wallerdev]
<csaunders> well I guess so
<csaunders> but it's overriding the initialize function of the class
<[spoiler]> You can even put `attr_accessor :power` into the module
<csaunders> It's awkward
<Technodrome> i see
wallerdev has joined #ruby-lang
krzyzaq has quit [Read error: Connection reset by peer]
krzyzaq_ is now known as krzyzaq
<Technodrome> yes very awkward since the class can't be instantiated
<csaunders> attr_accessor is really just an alias for :whatever
<Technodrome> module*
Forgetful_Lion has joined #ruby-lang
<MrZYX> micalexander: I could only guess what you are actually doing from that information
<csaunders> so attr_accessor becomes def whatever; @whatever; end and def whatever=(whatever); @whatever = whatever; end
<[spoiler]> The class uses Switch's initializer
<[spoiler]> as if it were its own
<Technodrome> csaunders: yeah i get it how an attr_accessor is really just creating get and setter methods
<micalexander> MrZYX: the forth match is the sting I am trying to get the length of
<csaunders> Technodrome: So the Switch gets an initialize method by default
<MrZYX> micalexander: still
<[spoiler]> classes use module's methods as if they're their own
<[spoiler]> csaunders: yup.
<csaunders> and including the mixin replaces the method declarations
<[spoiler]> mhm, all methods are "transfered agressively" (meaning they override existing methods within the class)
<csaunders> if you wanted you could include the module then implement initialize
<MrZYX> micalexander: do a gist, provide your input date, your script, your output and your desired output
<MrZYX> *data
<csaunders> and you'd clobber the initalize method added by the switch
<micalexander> MrZYX: I can eval.in it but it needs a file to test
<[spoiler]> csaunders: true
<Technodrome> yeah , so the modules initialize becomes the one that the class uses when its becoming instanced, right?
<MrZYX> micalexander: so do a gist
vlad_starkov has quit [Remote host closed the connection]
<csaunders> Technodrome: Modules are *kinda* like monkey patches in that they re-open the class declaration and define a bunch of methods
<Technodrome> yeah
<Technodrome> so its just giving the class an initialize method then
<csaunders> Technodrome: Yes
<csaunders> well it's replacing it
<Technodrome> what about if you have multiple includes and they all have initialize?
<Technodrome> the last one is the one that is used?
<Technodrome> last include*
<csaunders> yes
<Technodrome> very interesting
<csaunders> read Ruby Under a Microscope
<Technodrome> never really thought how this stuff works internally
<csaunders> he covers all that
<csaunders> :)
<[spoiler]> Technodrome: wait until you have to make a C extension. that's where the fucketry begins
<csaunders> I tried that once
<csaunders> tried working on some patches for oily_png
MrPoT4tO has quit [Read error: Connection reset by peer]
<csaunders> segfaults and couldn't get gdb working to figure out what was going on
breakingthings has quit []
<[spoiler]> haha
breakingthings has joined #ruby-lang
<Technodrome> i understand C pretty well actually [spoiler] :)
nathanstitt has quit [Quit: I growing sleepy]
lfox has joined #ruby-lang
<Technodrome> but i'm just doing rails project
workmad3 has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
<[spoiler]> Technodrome, oh understanding C is not the problem, understanding the "inner ruby" is the problem :P
<MrZYX> micalexander: so what's your desired output? strip the backslashes?
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> Ruby is not so... elegant on the inside
<Technodrome> but it's ruby [spoiler] :)
elia has quit [Quit: Computer has gone to sleep.]
<Technodrome> [spoiler]: so why don't you work in ruby?
<Technodrome> you mentioned it's just a hobby for you
Coincidental has joined #ruby-lang
<micalexander> MrZYX: no to give me the proper "s:#" where # is the number, as you can see in the provided code this ";s:1:\"\";" portion of it is incorrect
<micalexander> MrZYX: is should be ;s01:\"\";
<[spoiler]> Technodrome: Oh, I never had the opportunity. There's virtually no Ruby jobs in Croatia
<micalexander> MrZYX: is should be ;s0:\"\";
Forgetful_Lion has joined #ruby-lang
<[spoiler]> There was a tiny Ruby (on Rails) convention where they tried to spark some interest and they asked me to hold a talk
_whitelogger has joined #ruby-lang
<[spoiler]> but it was pretty awkward, because everyone was like "what's this kid doing here"
<[spoiler]> Well, it was 7 months ago, actually
<[spoiler]> I'm 20, and the convention attempt was last year
<[spoiler]> but I was 19 then anyway
<[spoiler]> Technodrome: Yeah, there's very little interest in Ruby in Croatia
<MrZYX> micalexander: I can't help you without sample input
VTLob has joined #ruby-lang
<Technodrome> [spoiler]: i wasted years of my life doing java , and J2EE dev at that
<[spoiler]> Technodrome: most Universities here teach bad C++ and even worse Java
<Technodrome> i mean you can make good money
<Technodrome> by the end i was at 150k a year but still
<[spoiler]> and there's a few monopolyish tech companies, that use like Java 4 and C89
<[spoiler]> and most of them are enslaved to Oracle. It's all about using Oracle {X} and not about coding
<Technodrome> i understand
<Technodrome> oracle db is very common here
relix has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has joined #ruby-lang
<[spoiler]> I mean, I don't mind oracle, but I am just not the type of person who can (not that I won't, but I just can't) read a 10k page PDF manual about "using this icon with this icon"
<banisterfiend> anyone here speak dutch?
Forgetful_Lion has quit [Read error: Operation timed out]
Boohbah has joined #ruby-lang
<[spoiler]> banisterfiend: http://translate.google.com/
<[spoiler]> :P
<banisterfiend> [spoiler] tried and failed with that already :)
<[spoiler]> banisterfiend: haha
<[spoiler]> banisterfiend: what do you need translated, I have a friend
pr0ton has quit [Quit: pr0ton]
Forgetful_Lion has joined #ruby-lang
mnngfltg has quit [Write error: Connection reset by peer]
Senjai has quit [Read error: Connection reset by peer]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
Kabaka has quit [Remote host closed the connection]
ebetancourt has joined #ruby-lang
ebetancourt has quit [Max SendQ exceeded]
<MrZYX> micalexander: okay, that format is weird as hell, so I'm not even going to try grasp it. I think what your issue is that you want to match \" in your regex and for forgot to escape the backslash, try (:\\?\\") as the third group in your regex
nathanstitt has joined #ruby-lang
jonahR has quit [Quit: jonahR]
shivamib has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
pr0ton has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
vpretzel has joined #ruby-lang
cored has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
benwoody has quit [Quit: benwoody]
cads has joined #ruby-lang
vpretzel has quit [Ping timeout: 245 seconds]
benwoody has joined #ruby-lang
vlad_starkov has joined #ruby-lang
verto has joined #ruby-lang
workmad3 has joined #ruby-lang
vpretzel has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
amerine has quit [Ping timeout: 265 seconds]
amerine has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
Senjai_ has joined #ruby-lang
Senjai has quit [Ping timeout: 272 seconds]
a1ph4g33k has joined #ruby-lang
elia has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
sulo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
sulo has quit [Ping timeout: 272 seconds]
Cakey has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
bastilian has quit [Quit: Leaving...]
Forgetful_Lion has quit [Read error: Operation timed out]
havenn has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
Cakey has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: Technodrome]
Forgetful_Lion has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
bastilian has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
tylersmith has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
elia has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
benwoody has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
elia has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby-lang
lun__ has joined #ruby-lang
Technodrome has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
benwoody has quit [Quit: benwoody]
vpretzel_ has joined #ruby-lang
pr0ton has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby-lang
iliketurtles has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
slyphon has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
<micalexander> is there a way to force the contents of a variable to literal?
apeiros has quit [Remote host closed the connection]
rickhull1 has joined #ruby-lang
krzyzaq has quit [Ping timeout: 272 seconds]
ldnunes has quit [Quit: Leaving]
Technodrome has quit [Quit: Technodrome]
<drbrain> micalexander: what are you trying to do?
Forgetful_Lion has quit [Read error: Operation timed out]
Technodrome has joined #ruby-lang
<Technodrome> [spoiler]: you really need to get a good ruby job
<Technodrome> 140k+
<Technodrome> there are many startups that are willing to pay that
sulo has joined #ruby-lang
<micalexander> drbrain: line 19 is counting the escaped characters and I need it not to
<MrZYX> as said, just consume the \ in your regex, \" -> \\"
Forgetful_Lion has joined #ruby-lang
<micalexander> MrZYX: doesn't work
<drbrain> micalexander: do you have a simpler example than this one?
<drbrain> like: pattern =~ "…" # I want $4 to be "…"
saarinen has joined #ruby-lang
d2biG has left #ruby-lang [#ruby-lang]
sulo has quit [Ping timeout: 272 seconds]
dRbiG has joined #ruby-lang
Cakey has joined #ruby-lang
<micalexander> drbrain: when I assign s:11:\"robots\\.txt$\" ; to a string in irb and get the length it gives me 12, however sense in my code it is matching it, it gives me 13
<micalexander> drbrain: Im sorry I really cant explain it better than that
<micalexander> drbrain: ask MrZYX: Ive tryied
<drbrain> >> 's:11:\"robots\\.txt$\" ;'.length
<eval-in> drbrain => 23 (https://eval.in/59632)
Mellett68_ has quit [Quit: No Ping reply in 180 seconds.]
<drbrain> ⁇
Forgetful_Lion has quit [Read error: Operation timed out]
<drbrain> sorry, I don't understand
Mellett68 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
<drbrain> I guess you mean:
<drbrain> >> 'robots\\.txt$'.length
<eval-in> drbrain => 12 (https://eval.in/59633)
Cakey has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby-lang
sevvie has quit [Ping timeout: 272 seconds]
<drbrain> micalexander: what is [\s|\S] supposed to be?
<drbrain> match?
<drbrain> it is the same as /./m
<micalexander> drbrain: the code I wrote goes through a sql file and fixes php serialized strings after doing a find and replace. The problem is if it encounters \" it counts it as two characters instead of one which is a problem. I believe it is because it is not interpeting it as a string literal. If it was a regular string in single quotes it would be fine. I think that is the problem
<drbrain> in a .sql file, \" is two characters, not one
<drbrain> in a ruby file, it would be the same as:
<drbrain> >> "\\\"".inspect
<eval-in> drbrain => "\"\\\\\\\"\"" (https://eval.in/59636)
<micalexander> drbrain: [\s|\S] = match space or anything but white space character
<drbrain> hrm, too many slashes
<drbrain> micalexander: inside a character class ([]) a pipe (|) is literal
<drbrain> >> "|" =~ /\S/
<eval-in> drbrain => 0 (https://eval.in/59640)
<drbrain> since | is matched by \S you don't need it, so [\s\S] is equivalent
<micalexander> drbrain: what do you mean
Mellett68 has quit [Quit: No Ping reply in 180 seconds.]
Mellett68 has joined #ruby-lang
<drbrain> in ruby regexp, "." in a regular expression does not match newline ("\n") without the m flag
Forgetful_Lion has quit [Read error: Operation timed out]
elia has joined #ruby-lang
<micalexander> still that is not my issue
<micalexander> the match is correct
Forgetful_Lion has joined #ruby-lang
<micalexander> the length is not
<drbrain> line 16 and 26 are not needed
<drbrain> line 24 does extra work, probably should be "#{match[1]}#{count}#{match[3..5]}"
metus_violarium has quit [Quit: Konversation terminated!]
<drbrain> micalexander: by length do you mean match[4].length?
<micalexander> drbrain: I think I understand why 16 is unecessary but not why 24 does extra work
<drbrain> on line 17 you're already replacing the matched pattern
<drbrain> so line 24 is "find this thing we just found again, and replace it"
<drbrain> pattern = /abc/; line.gsub! pattern do |match_for_abc| match_for_abc.gsub! pattern, 'other content' end
bastilian has quit [Quit: Leaving...]
<drbrain> the result of the block for gsub replaces what you've matched, so you don't need to re-match
michael_mbp is now known as zz_michael_mbp
sepp2k has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<drbrain> >> pattern = /abc/; '123abc456'.gsub! pattern do |match_for_abc| match_for_abc.gsub! pattern, 'other content' end
<eval-in> drbrain => "123other content456" (https://eval.in/59643)
<drbrain> pattern = /abc/; '123abc456'.gsub! pattern do |match_for_abc| 'other content' end
<drbrain> oops
<drbrain> >> pattern = /abc/; '123abc456'.gsub! pattern do |match_for_abc| 'other content' end
<eval-in> drbrain => "123other content456" (https://eval.in/59644)
x0f has quit [Ping timeout: 272 seconds]
<micalexander> drbrain: updated gist doesnt work at all now
x0f has joined #ruby-lang
bastilian has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
saarinen has quit [Quit: saarinen]
RickHull has quit [Quit: Leaving.]
mistym_ has quit [Remote host closed the connection]
<drbrain> hrm
x0f has quit [Read error: Operation timed out]
macmartine has quit []
x0f has joined #ruby-lang
<Technodrome> csaunders: what are your top 3 ruby books?
<[spoiler]> Technodrome: Why? I mean I'd love to, but it's hard to find one in Croatia, and not many employers don't like long-distance workers
<Technodrome> i meant here in the US [spoiler]
<csaunders> Technodrome: Dunno
<[spoiler]> I'd need to get to the US first :(
<csaunders> I'm more getting into SE/Agile/Craftsmanship in general
<csaunders> Poodr is pretty good, I liked objects on rails, and design patterns in ruby was pretty good
Forgetful_Lion has quit [Read error: Operation timed out]
<Technodrome> [spoiler]: you could convince some startup that you're worth somewhere between 120-150 with great ruby knowledge and be remote, we had some guys in ukraine we payed very well
<csaunders> [spoiler] what about canada?
<drbrain> micalexander: I think I see the problem
<drbrain> hold on
saarinen has joined #ruby-lang
<Technodrome> csaunders: where are you?
<micalexander> drbrain: yep
<csaunders> I'm in Toronto
<Technodrome> i used to live in the valley
<csaunders> But the main office (Shopify) is in Ottawa
tbuehlmann has quit [Remote host closed the connection]
<csaunders> Keep in mind the valley is paying a lot because Cost of living is a lot higher there
<csaunders> cost*
<Technodrome> if you get a US h1b visa, that would be even better, you could likely get that as well
<[spoiler]> Technodrome, csaunders I have no idea how to find those jobs anyway, haha. Is there like a listing for Ruby jobs?
<csaunders> Top ruby jobs?
<Technodrome> csaunders: at the end of my working, i was doing java at 150k a year and i was working remote, this is becoming more fairly common as people demand higher rates
<csaunders> HN has postings every once in a while
<csaunders> Technodrome: dev work is pretty hot right now
<csaunders> yeah
Forgetful_Lion has joined #ruby-lang
<Technodrome> but there is still so many brain dead people who take on a java job at 60k
<Technodrome> and most h1b visas say from india or south asia in general they will start them at around 75
<csaunders> [spoiler] you can check out https://shopify.com/careers if you want
<csaunders> Though, Visas can sometimes take a while :(
<Technodrome> i think the US will have more options but nothing against canada :)
vlad_sta_ has quit [Remote host closed the connection]
<Technodrome> but the amount of work in the US that is in demand is nuts
vlad_starkov has joined #ruby-lang
<csaunders> Technodrome: There's other places in the US beside the valley
<Technodrome> yeah for sure
<csaunders> There seems to be some cool stuff going on in the east coast as well
<Technodrome> i don't live there no more remember :)
<[spoiler]> I'm a student, though (20yo). So, I am not sure if anyone would take me + quitting uni is not an option since I have a scolarship
<csaunders> [spoiler] yeah, that's your call
<Technodrome> i left the uni after 1.5 years for a java job
<Technodrome> stupid me :(
<Technodrome> or smart me , not sure
<csaunders> You could apply and see if you could get an internship
<csaunders> Don't think we've ever done one for an out of country applicant
<drbrain> micalexander: what is the second field (the one with count) supposed to be for title
<csaunders> And it would be the summer, and Canada is pretty nice in the summer :P
<drbrain> micalexander: for "title"
<csaunders> also, maple syrup
<csaunders> take that america!
<csaunders> :P
<drbrain> micalexander: and for "title\r\nsubtitle"
<micalexander> drbrain: what line
<Technodrome> csaunders: you're treading water now :)
<drbrain> micalexander: in the abstract
<[spoiler]> csaunders: Aah! I'll think about it, because it does sound great
<soahccc> I got the lookahead now but has anyone an idea why it doesn't match #4 though it matches #1 and
<csaunders> Technodrome: :P
<drbrain> it looks like what you're doing is rewriting "s:<number>:<content>;" to "s:<fixed number>:<content>;"
<Technodrome> csaunders: the last thing we need is *another* canada basher :)
<Technodrome> i live in miami florida, we have an awesome tech scene as well
<drbrain> canada is so great it gets its own pack in Cards Against Humanity
<csaunders> You going to ruby conf?
hhatch has quit [Ping timeout: 252 seconds]
<csaunders> drbrain: They are really just rebranded american ones
<csaunders> instead of A&E it's like… The Fifth Estate
<Technodrome> i lived in toronto for a while and montreal
saarinen has quit [Quit: saarinen]
<drbrain> micalexander: so I'm guessing that "s:5:\\\"title\\\";" should be "s:5:\\\"title\\\";"
<csaunders> yeah, WE had that name before that wikileaks movie :P
<Technodrome> my fathers mother side is all from montreal / vermont area
<micalexander> drbrain: nothing in general just trying to match for anything https://www.dropbox.com/s/zvm175jvmoohajt/Screenshot%202013-11-01%2014.01.41.png
Forgetful_Lion has quit [Read error: Operation timed out]
<Technodrome> which is funny because when they move to vermont, the french is literally gone in 3-4 months and then they prefer english
Tearan has joined #ruby-lang
<[spoiler]> Hmm, the only thing that looks like it could work is https://toprubyjobs.com/jobs/622-bloc%2C-inc-ruby-on-rails-mentor, but I'm not sure if I make a good mentor... Bah!
<micalexander> drbrain: the only problem with the after_test.sql is s:1:\"\";s:6:\"number\"; which should be s:0:\"\";s:6:\"number\";
<drbrain> micalexander: s:5:\"21367\"; << what is the correct count for this entry?
<drbrain> ok, great
Forgetful_Lion has joined #ruby-lang
<micalexander> drbrain: do you see the s:1 vs s:0
<micalexander> ?
yfeldblum has joined #ruby-lang
<drbrain> micalexander: I told you wrong with the match thing
<micalexander> it should be s:0
<micalexander> drbrain: what do you mean
<drbrain> micalexander: I forgot that gsub passed the matched string, not the MatchData to the block
<drbrain> but there is a simpler way to count the characters like you want
<micalexander> drbrain: its counting the \ when it shouldnt
bf4 has quit [Read error: Operation timed out]
havenn is now known as havenwood
Authenticator has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
sulo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
<drbrain> how is ↑
<drbrain> I made lots of revisions
elia has quit [Quit: Computer has gone to sleep.]
<Technodrome> [spoiler]: we have lots of off site people
<Technodrome> but i'm the guy trying to throw ruby into the mix
sulo has quit [Ping timeout: 260 seconds]
breakingthings has quit []
vlad_starkov has quit [Remote host closed the connection]
<drbrain> micalexander: I can't write tests from a screenshot
<micalexander> the left is what it should be, seems to be hanging up at the same place I had it hanging up at. there are more than just this one
<drbrain> micalexander: you can use my gist to add tests
<micalexander> drbrain: true but you can see the diff and
<micalexander> its just a diff using difftool
<micalexander> of what it should be
Forgetful_Lion has quit [Read error: Operation timed out]
<micalexander> drbrain: first diff line at the end
<drbrain> sure, but I'm not going to hand-copy text from a screenshot to write a test
<micalexander> s:13 vs s:12
<drbrain> what should it be?
<micalexander> drbrain: s:12
<micalexander> like the one on the left
<micalexander> i wil just give you a cunck of the sql ffile im working with
specialblend has joined #ruby-lang
<drbrain> I count 17 characters there before the \";
<drbrain> I may be off by one or two
Forgetful_Lion has joined #ruby-lang
specialblend has quit [Client Quit]
<Technodrome> csaunders: so you work for shopify?
<vbatts|work> drbrain: hey there, is there value in documentation for OpenSSL? or are there other plans for it?
<vbatts|work> zzak: ^
<drbrain> micalexander: I'm guessing you want to add \\ to php_escapes and change \\*["&] to \\("|&quot;) in your pattern regexp
<drbrain> vbatts|work: I see lots of value in OpenSSL documentation
<drbrain> at worst, Martin doesn't copy it into krypt because the method disappears
<vbatts|work> drbrain: k. i know there is high hopes for krypt
<drbrain> but that won't be until after ruby 2.1
<vbatts|work> k
<drbrain> so the lifetime on the documentation should be at least 1 year
<vbatts|work> hrm
<vbatts|work> emboss doesn't hand around on irc does he?
<drbrain> occasionally
<vbatts|work> k
<drbrain> maybe as _emboss_
<vbatts|work> i'll keep a look out
<vbatts|work> drbrain: cheers. i'm headed home now.
<drbrain> vbatts|work: later!
nigerianceo has quit []
Forgetful_Lion has quit [Read error: Operation timed out]
jvrmaia has quit [Quit: Leaving]
Forgetful_Lion has joined #ruby-lang
<micalexander> drbrain: https://gist.github.com/micalexander/85714bc59be74a262959 this is a chunk straight out of the sql file. I tried it again and it seems to be working, why did you suggest that I change the regex?
verto has quit [Ping timeout: 245 seconds]
<drbrain> micalexander: the latest revision for your 85714bc has bugs, so you'll need to roll back
<micalexander> drbrain: what do you mean switch to
<drbrain> or use the code in my gist
ruby-lang687 has joined #ruby-lang
elia has joined #ruby-lang
<drbrain> I would clone my gist (https://gist.github.com/37a5ea4c4bf276d5aae0.git) and add this test:
<drbrain> test_3 = 's:1:\&quot;\";'; raise test_3 unless 'fill_me_in' == test_3
lfox has quit [Quit: ZZZzzz…]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
elia has quit [Client Quit]
vpretzel_ has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
tomzx_mac has joined #ruby-lang
mdedetrich has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vpretzel has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
pothibo has joined #ruby-lang
pothibo has quit [Client Quit]
<ruby-lang687> Newbie asking for help: Getting a cannot open library 'libcurl' on windows trying to use ruby wrapper for firebase API
Forgetful_Lion has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
<[spoiler]> ruby-lang687: You need to download the DevKit
<[spoiler]> and then libcurl
<[spoiler]> and then compile it
<ruby-lang687> spoiler, thanks for your help, I believe DevKit came with the Railsinstaller package I ran (3 weeks ago??).... I'm not positive, how do I check?
<micalexander> drbrain: if you can test with the file in the gist link I added, it doesnt seem to edit the file at all
<micalexander> however the test at the bottom of your gist seem to work ok
<drbrain> micalexander: it writes to after_test.sql because I don't like overwriting the input
<drbrain> (since I committed changes, I didn't want churn on a data file)
<[spoiler]> ruby-lang687: Uh. I'd recommend getting rubyinstaller and following their guide. However, you can check by downloading a gem that needs a native dependancy (like nokogiri or eventmachine)
<micalexander> if I wanted to change that I would just change "after_#{file}" to "file"
<[spoiler]> ruby-lang687: but your *best* option is downloading a VM emulator (VirtualBox is a free one) and while running a linux VM getting rvm and installing ruby
<[spoiler]> RVM*
Forgetful_Lion has quit [Read error: Operation timed out]
<[spoiler]> or, chruby
<[spoiler]> chruby is nice, too
<drbrain> micalexander: yep!
<[spoiler]> I've used it only one time, and I didn't have a problem with it
<drbrain> well, without quotes
Forgetful_Lion has joined #ruby-lang
<micalexander> drbrain: yep
EvilJStoker has quit [Excess Flood]
shinnya has joined #ruby-lang
<ruby-lang687> spoiler: This is all getting over my head. I got the error because I'm trying to use a ruby wrapper for Firebase API which requires a 'gem install firebase' which worked fine for me (as far as I can tell). Do you think I should go the vm direction for this??
TheMoonMaster has quit [Excess Flood]
adambeynon has joined #ruby-lang
mucker has quit [Remote host closed the connection]
<drbrain> ruby-lang687: if `gem install` worked you should be good to go
sevvie has quit [Ping timeout: 260 seconds]
EvilJStoker has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
mucker has joined #ruby-lang
<ruby-lang687> drbrain: thats what I thought, but at runtime I get error message about libcurl not found when it his a line accessing the firebase api wrapper
TheMoonMaster has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jiuweigui has quit [Quit: iQuit!]
cads has quit [Ping timeout: 272 seconds]
<drbrain> ruby-lang687: looks like firebase uses typhoeus which uses curl :/
<MrZYX> typhoeus uses ethon which is a (ffi?) binding for curl ;P
<drbrain> which means it doesn't check for libcurl at install time
<MrZYX> yup
micalexander has quit [Remote host closed the connection]
<zzak> pong
<zzak> vbatts|work:
<zzak> vbatts:
<MrZYX> since 0.6 at least, it used a c ext binding before that
micalexander has joined #ruby-lang
<ruby-lang687> drbrain, MrZYX ; so sorry, I'm a newbie, what should I do?? gem install curl also didnt work for me
<drbrain> ruby-lang687: so your options are "figure out how to install libcurl in a place typhoeus/ethon can find it"
<drbrain> or "set up a VM"
mucker has quit [Ping timeout: 245 seconds]
<drbrain> ruby-lang687: since curl has windows packages, I'd try installing lib curl first: http://curl.haxx.se/download.html
<drbrain> but windows is not something I am very familiar with
<zzak> drbrain!!
<drbrain> zzak: sup?
<zzak> hah
<zzak> im gonna see you in like a week! :D
<drbrain> awesome!
jsullivandigs has quit [Ping timeout: 249 seconds]
smashwilson has quit [Quit: Leaving.]
<zzak> we should get sake and tempura
Forgetful_Lion has quit [Read error: Operation timed out]
<zzak> or whatever the miami equivalent of that is
<drbrain> corn dogs?
<zzak> corn dogs and rum
<drbrain> probably something cuban
<zenspider> cubanos
<ruby-lang687> drbrain: thanks, will try. Is that download link essentially different than trying to gem install curl?
<zenspider> and beer
<drbrain> paella
<zzak> the only cuban food i know is a "cuban sandwich"
<zenspider> they have more than one, you know :P
<drbrain> ruby-lang687: scroll to the bottom of http://curl.haxx.se/download.html
<zzak> there can be only one cuba
micalexander has quit [Ping timeout: 245 seconds]
sulo has joined #ruby-lang
<drbrain> ruby-lang687: you want one of the "libcurl" downloads that matches your OS
<ruby-lang687> and how do I decide/what is the difference between generic and cygwin versions??
<zzak> zenspider: are you going too?
Forgetful_Lion has joined #ruby-lang
<zenspider> nope
<drbrain> ruby-lang687: I missed this link, it's a download wizard! http://curl.haxx.se/dlwiz/
<zzak> zenspider: why not :((
<ruby-lang687> download wizard still wants to know if you want generic or cygwin
<drbrain> try generic first
<drbrain> at least you're only down to two choices
<ruby-lang687> k
<zenspider> zzak: because I don't care for florida
vpretzel has joined #ruby-lang
<zzak> zenspider: but friends :(
<zenspider> I could ask why you didn't got to the last 5 conferences I went to... but that wouldn't be fair, would it?
<zzak> i guess we will remain #ruby-lang-friends
Coincidental has quit [Remote host closed the connection]
<zzak> zenspider: i didnt get accepted to cascadia but wanted to go!
<zzak> and openstack on ales too!
Coincidental has joined #ruby-lang
<zzak> i dont think im submitting to on ales next year, i want to do more international confs
enebo has quit [Quit: enebo]
sulo has quit [Ping timeout: 240 seconds]
<zzak> zenspider: scotrubyconf cfp is open
__butch__ has quit [Quit: Leaving.]
mistym has joined #ruby-lang
<zzak> zenspider: btw will you be able to release zentest again soon?
sevvie has joined #ruby-lang
<zzak> i need gems 2.2 support :(
<zenspider> oh. right. yeah. I can totally do that
<zzak> sec lemme find you the patch
Coincidental has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
pothibo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<zenspider> grr... I'm turning off the env vars that tune ruby's GC. tired of seeing it spew on every run
sevvie has quit [Ping timeout: 260 seconds]
MrZYX is now known as MrZYX|off
jonahR has joined #ruby-lang
jonahR has quit [Client Quit]
jsullivandigs has joined #ruby-lang
<ruby-lang687> drbrain, et.al: thanks, seems to be working.
<drbrain> ruby-lang687: \o/
sevvie has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
ikrima has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
sevvie has quit [Ping timeout: 240 seconds]
havenwood has quit []
nathanstitt has quit [Quit: I growing sleepy]
Mon_Ouie has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
Forgetful_Lion has quit [Read error: Operation timed out]
vpretzel has quit [Remote host closed the connection]
smashwilson has joined #ruby-lang
vpretzel has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
vpretzel has quit [Ping timeout: 260 seconds]
micalexander has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
ruby-lang687 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
sevvie has joined #ruby-lang
kirin` has quit [Ping timeout: 260 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
mannyt has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
Locke23rus has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby-lang
speakingcode-wor has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
Forgetful_Lion has quit [Read error: Operation timed out]
vpretzel has joined #ruby-lang
pr0ton has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sulo has joined #ruby-lang
iliketurtles has joined #ruby-lang
kirin` has joined #ruby-lang
sulo has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
lianj_ is now known as lianj
mdedetrich has joined #ruby-lang
sevvie_ has joined #ruby-lang
sevvie has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
|jemc| has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
rchar has quit [Quit: Lost terminal]
SteveBenner9 has quit [Quit: Leaving]
mdedetrich has quit [Quit: Computer has gone to sleep.]
ikrima has joined #ruby-lang
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby-lang
charlespeach has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
rickhull1 has quit [Quit: Leaving.]
lun__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
Coincidental has joined #ruby-lang
lun__ has quit [Ping timeout: 272 seconds]
nisstyre has quit [Quit: Leaving]
CaptainJet has quit [Ping timeout: 240 seconds]