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
<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]
<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]
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
<[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 :(
<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]
<[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):
<[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]
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]
<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
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
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?
<[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
<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]
<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
<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>
[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
<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>
[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>
[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
<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:
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
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"