OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
t1g3r_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 265 seconds]
<t1g3r_>
hi
<t1g3r_>
anyone strugglig to install ruby?
mikepack has joined #ruby
sdouglas has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
rahult_ is now known as rahult
havenwood has quit [Ping timeout: 240 seconds]
<centrx>
t1g3r_, No?
<centrx>
t1g3r_, apt-get install ruby
armyriad has joined #ruby
<t1g3r_>
yeah
<t1g3r_>
im trying to do a little specific install
<t1g3r_>
of ruby 1.9.3
<t1g3r_>
and rails 3.2.13
<t1g3r_>
i installed the default ruby version
<t1g3r_>
then installed the specific version
<t1g3r_>
switched to it
tolstoi has joined #ruby
<t1g3r_>
removed the other one
tolstoi has joined #ruby
tolstoi has quit [Changing host]
<t1g3r_>
now trying to use this command, and i keep getting this message
xcv has joined #ruby
<t1g3r_>
rvm rubygems current
<t1g3r_>
Rubygems 2.2.2 already installed, skipping installation, use --force to reinstall.
<t1g3r_>
im new, i want to know how to use the force command
<davidcelis>
that could all have been a single message
yasushi has quit [Remote host closed the connection]
<t1g3r_>
stackoverflow is useless right now
sailias has joined #ruby
<t1g3r_>
yes the command was rvm rubygems current
<t1g3r_>
and the second line was the response
<t1g3r_>
but i removed ruby 2.2.2
<t1g3r_>
dunno why it still thinks that
<t1g3r_>
i reloaded the source for rvm too
<t1g3r_>
:S
sdouglas has quit [Ping timeout: 265 seconds]
<t1g3r_>
source ~/.rvm/scripts/rvm
<t1g3r_>
help would be appreciated you are all very helpful already
havenwood has joined #ruby
<t1g3r_>
is this the right room to ask questions
<centrx>
The <enter> is not punctuation
<davidcelis>
Stop flooding the channel :P
<t1g3r_>
sorry, i didnt want to confuse with too much text
mikepack has quit [Ping timeout: 240 seconds]
recursive has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 264 seconds]
srji_ has joined #ruby
<t1g3r_>
any idea how i can resolve this?
nari has joined #ruby
predator117 has joined #ruby
Aquilo has joined #ruby
srji has quit [Ping timeout: 252 seconds]
robert_ has quit [Read error: Connection reset by peer]
sentinal8473 has joined #ruby
kennym has joined #ruby
<t1g3r_>
any help appreciated, feel free to pm me
<t1g3r_>
thank you
<centrx>
t1g3r_, Try #rvm
larsam has joined #ruby
<t1g3r_>
thank you
<centrx>
t1g3r_, Also try during weekday of Americas/Europe.
Megtastique has joined #ruby
Asher has quit [Quit: Leaving.]
<centrx>
weekday daytime
ringaroses has joined #ruby
<t1g3r_>
i know im looking for any enthusiasts/ ruby on rails learners on irc in americas time
<havenwood>
t1g3r_: Rubyists here. Railists in #rubyonrails channel.
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has quit [Client Quit]
BraddBitt is now known as xBradPittx
<havenwood>
t1g3r_: #rvm though ;)
hiyosi has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
nateberkopec has joined #ruby
joelroa has joined #ruby
<t1g3r_>
yes thank you, trying t join rvm, somehow not connecting
iml has joined #ruby
<centrx>
Might require registering and identifying with Nickserv
sailias has joined #ruby
klaut has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
kennym has quit [Ping timeout: 264 seconds]
joelroa has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
ringaroses has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
andy__ has quit [Remote host closed the connection]
t1g3r_ has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 264 seconds]
rahult is now known as rahult_
markisonfire has quit [Quit: markisonfire]
mary5030 has joined #ruby
notjohn has joined #ruby
zz_karupanerura is now known as karupanerura
deepy- has quit [Changing host]
deepy- has joined #ruby
deepy- is now known as deepy
pskosinski has quit [Ping timeout: 240 seconds]
FailDrain has joined #ruby
andrewlio has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FailDrain>
So many gems lol!! , I honestly have no idea what to make everything has mostly been done before perhaps I'll just make an adventure game in gosu or rubySDL
kzrl has quit [Read error: Operation timed out]
mary5030 has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
mindcake has joined #ruby
xcv has quit [Remote host closed the connection]
jenskarlsen has quit [Quit: jenskarlsen]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dodosan has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 264 seconds]
dodosan has joined #ruby
angusiguess has quit [Ping timeout: 265 seconds]
Axsuul_ has joined #ruby
anth0ny_ has quit [Quit: anth0ny_]
mocfive has quit [Quit: Leaving...]
jonah_k has left #ruby [#ruby]
mocfive has joined #ruby
ubyte has quit [Quit: Leaving...]
Xuisce has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
Megtastique has joined #ruby
mocfive has quit [Client Quit]
tkuchiki has joined #ruby
iliketurtles has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
hermanmunster has joined #ruby
Salve_ has joined #ruby
mark_locklear has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
yubrew has quit [Read error: Operation timed out]
dodosan has quit [Remote host closed the connection]
anth0ny_ has joined #ruby
dodosan has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
Geniack has quit [Ping timeout: 264 seconds]
BRMatt has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
iliketur_ has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
Cache_Money_ has quit [Quit: Cache_Money_]
Geniack has joined #ruby
Jake232 has joined #ruby
aspires has joined #ruby
slowcon has quit [Quit: slowcon]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
mikepack has joined #ruby
maletor has joined #ruby
pfg has joined #ruby
mansi has quit [Read error: Connection reset by peer]
randomnick_ has quit [Quit: Leaving]
mary5030 has joined #ruby
mansi has joined #ruby
AlexRussia_Away has quit [Remote host closed the connection]
AlexRussia has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
redmaverick has joined #ruby
thumpba has quit [Ping timeout: 265 seconds]
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
Authenti1ator has quit [Ping timeout: 244 seconds]
Authenticator has joined #ruby
notjohn has quit [Ping timeout: 240 seconds]
Butcho has joined #ruby
Butcho has quit [Client Quit]
x1337807x has joined #ruby
weie has quit [Ping timeout: 240 seconds]
Vovko has quit []
iliketurtles has joined #ruby
kzrl has joined #ruby
dodosan has quit [Ping timeout: 240 seconds]
retnuh has joined #ruby
iliketur_ has quit [Ping timeout: 244 seconds]
<redmaverick>
ok. I have a question. I need to find a way to check if a domain name is available or not without using whois api. Any suggestions
GinoMan has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
mark_locklear has quit [Quit: Leaving]
ZZzzzz has joined #ruby
redmaverick has left #ruby [#ruby]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
byprdct has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
Axsuul_ has quit [Ping timeout: 240 seconds]
GinoMan has joined #ruby
BraddBitt has joined #ruby
xlogic has joined #ruby
xlogic has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
xBradPittx has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
<byprdct>
anyone know if its possible to use erb in a yml file?
grampajoe has joined #ruby
iliketurtles has joined #ruby
<byprdct>
I'm sorry, incorrect. What I'm trying to do is I have a file.html.erb with yml matter up top and I wanted to include erg in the front matter
iliketurtles has quit [Max SendQ exceeded]
Shidash has quit [Ping timeout: 244 seconds]
mansi_ has joined #ruby
Xuisce has joined #ruby
Asher has joined #ruby
ubyte has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
baroquebobcat has joined #ruby
sdouglas has joined #ruby
mary5030 has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
mindcake_ has joined #ruby
jgrevich has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
mary5030 has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
nateberkopec has joined #ruby
Megtastique has quit []
sailias has joined #ruby
achru has joined #ruby
danshultz has joined #ruby
<FailDrain>
How fast would parsing a file and loading it's data as 3D in OpenGL be?
fgo has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
nateberkopec has quit [Ping timeout: 240 seconds]
mjs2600 has quit [Remote host closed the connection]
FailDrain has quit [Quit: Leaving]
alexju has joined #ruby
MatthewsFace has joined #ruby
aspires has quit []
eka has joined #ruby
Cache_Money_ has joined #ruby
mr_red has quit [Max SendQ exceeded]
alexju has quit [Remote host closed the connection]
mr_red has joined #ruby
aspires has joined #ruby
nateberkopec has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
sailias has quit [Remote host closed the connection]
<byprdct>
"run what?" I'm using middleman to generate static sites and when I build "run" the site the erb gets processed through the file except in the front matter so I was assuming it didn't get processed but just wanted confirmation
hamakn_ has quit [Remote host closed the connection]
froy has quit [Remote host closed the connection]
chrisseaton has quit []
<pontiki>
it does not
<pontiki>
middleman strips and uses it before it processes the file through ERB
mansi has joined #ruby
sailias has joined #ruby
chrisseaton has joined #ruby
<byprdct>
ok thanks pontiki!
<pontiki>
string and uses the frontmatter, i mean
alexju has joined #ruby
havenwood has quit []
<byprdct>
ok understood
<pontiki>
gsorry, i'm in the midst of nosebleed
thumpba has joined #ruby
<byprdct>
actually I can do this another way I can add it to the layout file and it will be the same thing and should work.
<byprdct>
you know getting mad contributes to nose bleeds :)
<byprdct>
lol
<byprdct>
throw some ice on it
<pontiki>
who is mad?
<pontiki>
although it's a sure fire way to make someone angry is to tell them they are
<snkcld>
one more thing, if i execute an sql query with %Q{ sql query here with #{interpolated_string} } , does it create and use a prepared statement?
<snkcld>
so that further queries use the prepared statement?
thumpba has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
mindcake has quit [Quit: mindcake]
mgberlin has quit [Remote host closed the connection]
sdwrage has joined #ruby
reset has quit [Quit: Leaving...]
sdwrage_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
lw has quit [Quit: s]
havenwood has quit []
lw has joined #ruby
grvgr has quit [Quit: grvgr]
Bosox20051 has quit [Quit: Leaving]
<heftig>
snkcld: no, %Q{foo} is the same as "foo"
decoponio has joined #ruby
jprovazn has joined #ruby
zhouitpro has joined #ruby
<heftig>
you're inserting stuff directly into a query string, with all the security implications
<snkcld>
how do i create a prepared statement with jruby/postgresql?
<snkcld>
im getting 'undefined method prepare'
<heftig>
snkcld: which interface are you using? pg?
<snkcld>
well, i was, but moving to jruby i am now using activerecord-jdbcpostgresql-adapter
morenoh169 has joined #ruby
<snkcld>
im establishing a connection with ActiveRecord::Base.establish_connection
Emmanuel_Chanel has joined #ruby
erikruthven has joined #ruby
morenoh159 has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
<heftig>
snkcld: getting the connection with ActiveRecord::Base.connection and then calling prepare on that should work
<heftig>
ah, whoops, that's old stuff
<snkcld>
;(
<snkcld>
so that wouldnt work?
<snkcld>
the object i am getting back is a "PostgreSQLAdapter"
<heftig>
snkcld: what about ActiveRecord::Core.connection ?
Salve has joined #ruby
<heftig>
snkcld: should have a prepare_statement method
<centrx>
snkcld, ActiveRecord::Base.connection is the actual ActiveRecord connection object. establish_connection apparently returns the adapter
<centrx>
Maybe they both return ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
Salve_ has quit [Ping timeout: 240 seconds]
<snkcld>
NoMethodError: undefined method `prepare' for ActiveRecord::Core:Module
dingus_khan has joined #ruby
nateberkopec has joined #ruby
<snkcld>
my code works great when using mri ruby and pg,
Kricir has joined #ruby
<snkcld>
i just want to move it to jruby without having to change much code
Hanmac1 has joined #ruby
slowcon has quit [Quit: slowcon]
Salve_ has joined #ruby
<snkcld>
is there any drop in replacement i can use for pg, in jruby
<centrx>
snkcld, There is a search result for it, not sure if that is software is "good"
fridim__ has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 265 seconds]
nanoyak has joined #ruby
meatherly has joined #ruby
yubrew has joined #ruby
deepender has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
absolutezeroff has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 244 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
Hobogrammer_ has joined #ruby
grvgr has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
Hobogrammer_ has quit [Client Quit]
koell has quit [Quit: So say we all!]
braincrash has quit [Quit: bye bye]
sdouglas has joined #ruby
Astralum has joined #ruby
deepender has quit [Ping timeout: 269 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
nari has joined #ruby
braincrash has joined #ruby
Megtastique has joined #ruby
Mongey has quit [Quit: Mongey]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
slowcon_ has joined #ruby
slowcon_ has quit [Client Quit]
slowcon has quit [Read error: Connection reset by peer]
tommyvdesigneryo has quit [Quit: Connection closed for inactivity]
achru has quit [Remote host closed the connection]
slowcon has joined #ruby
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
sensen has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
blahblah has joined #ruby
blahblah has left #ruby [#ruby]
mansi has quit [Remote host closed the connection]
deepender has joined #ruby
mansi has joined #ruby
Asher has quit [Quit: Leaving.]
mansi has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
yubrew has joined #ruby
nateberkopec has joined #ruby
blahblah has joined #ruby
tomsthumb has joined #ruby
joelroa has joined #ruby
CorySimmons has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
mlpinit has quit [Ping timeout: 240 seconds]
<tomsthumb>
hey guys, there's a gem that you can download that will teach you a lot of stuff about git. it is staged out into multiple 'levels', and was on hackernews a few months ago. would anyone here remember the name of it?
yubrew has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
<dseitz>
githug
<tomsthumb>
that's it!
<tomsthumb>
thanks man!
nateberkopec has quit [Ping timeout: 240 seconds]
<dseitz>
np
npearson has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
freerobby has joined #ruby
mikepack has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage_ has quit [Quit: This computer has gone to sleep]
grvgr has quit [Quit: grvgr]
anth0ny_ has quit [Quit: anth0ny_]
meatherly has quit [Ping timeout: 265 seconds]
tomsthumb has quit [Quit: leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
banister has joined #ruby
charliesome has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
hiyosi has joined #ruby
mgberlin has quit [Remote host closed the connection]
yasushi has joined #ruby
wallerdev has joined #ruby
sdouglas has quit [Remote host closed the connection]
arietis has joined #ruby
slowcon has quit [Quit: slowcon]
hiyosi has quit [Ping timeout: 240 seconds]
Megtastique has quit []
iamdoo2 has joined #ruby
agent_white has joined #ruby
<agent_white>
Evenin folks
iamdoo2_ has joined #ruby
Megtastique has joined #ruby
Asher has joined #ruby
<pontiki>
hello agent white. what do you have to report?
iamdoo2 has quit [Ping timeout: 264 seconds]
Hobogrammer has joined #ruby
blahblah has left #ruby [#ruby]
vinian has joined #ruby
vinian has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
tt has joined #ruby
kzrl has joined #ruby
v1n has quit [Ping timeout: 253 seconds]
axsuul has quit [Ping timeout: 265 seconds]
<agent_white>
pontiki: My goats had babies today :) That is all.
<agent_white>
They are very little.
vinian has joined #ruby
GinoMan has quit [Remote host closed the connection]
<bnagy>
my atoll flooded, we have a state of emergency
<bnagy>
how many babies?
<agent_white>
3! Expecting another 3 within the week and 1-3 within the next two.
<agent_white>
So many babies.
nateberkopec has quit [Ping timeout: 240 seconds]
<bnagy>
awesome
<bnagy>
my wife won't let me have goats. Or pigs. Or ducks.
axsuul has joined #ruby
Megtastique has quit []
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<agent_white>
Well if you just get a baby-version of any of those and bring it home, she won't turn it down!
<bnagy>
well.. she's kind of afraid I'll eat them
<bnagy>
which I totally would.. but I would still like to have them
<bnagy>
duck eggs are awesome. Goat milk is awesome.
<agent_white>
I tell my pigs that they are going to be delicious bacon. Thankfully I don't believe they speak English.
<bnagy>
pigs... meh not so much you can do with them
<bnagy>
I mean apart from the eating
<agent_white>
Yeah... and they're little devious bastards.
<agent_white>
They try to pull an Alcatraz and dig under shit and find all these ways to get outta their pens.
<bnagy>
how ungrateful
<agent_white>
I have a feeling the goats are in on it though. They've been eating away at a tree that makes up their pen.
brunops has quit [Ping timeout: 244 seconds]
<agent_white>
Probably will be one mass prison-break one dday.
<bnagy>
then they'll eat you
<bnagy>
porcine justice
<agent_white>
Probably. I'm hope I'm as delicious as they would've been.
<agent_white>
If not, I might be a little upset.
brunops has joined #ruby
zcreative has joined #ruby
dodosan has quit [Remote host closed the connection]
deepender has quit [Ping timeout: 240 seconds]
<bnagy>
how much land you got?
dodosan has joined #ruby
lyanchih has joined #ruby
mary5030 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
<agent_white>
~60 acres. Though more like ~40 now since we sold a portion to the neighbors.
aagdbl has joined #ruby
CorySimmons has left #ruby [#ruby]
crystal77 has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
mansi has joined #ruby
<bnagy>
so more than a hobby farm then
Atww has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
ZZzzzz has quit [K-Lined]
Xuisce has quit [Quit: Leaving...]
ubyte has quit [Quit: Leaving...]
sensen has quit [Ping timeout: 252 seconds]
<agent_white>
Ooo nah still a hobby farm. But somtimes it feels like more work than one :P
sensen_ has joined #ruby
jprovazn has quit [Ping timeout: 244 seconds]
Atw has quit [Ping timeout: 244 seconds]
Atww has quit [Remote host closed the connection]
Atw has joined #ruby
cina has joined #ruby
crystal77 has joined #ruby
davedev2_ has joined #ruby
joelroa has quit [Ping timeout: 252 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
stephenmac7_ has joined #ruby
qubit has quit [Ping timeout: 264 seconds]
davedev24 has quit [Ping timeout: 264 seconds]
deepender has joined #ruby
stephenmac7 has quit [Ping timeout: 264 seconds]
qubit has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
Paradox has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
anth0ny_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
anth0ny_ has left #ruby [#ruby]
sski has joined #ruby
tt has left #ruby [#ruby]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awkisopen has quit [Ping timeout: 265 seconds]
Paradox has joined #ruby
awkisopen has joined #ruby
tylersmith has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
markisonfire has joined #ruby
tylersmith has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
deepender has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
mlpinit has joined #ruby
Aquilo has quit [Ping timeout: 240 seconds]
<pontiki>
pigs: turning vegetables and slop into delicious bacon.
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
vlad_starkov has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
spintronic has joined #ruby
mikeg has joined #ruby
<pontiki>
gnite
hoypriest has quit [Remote host closed the connection]
yacks has joined #ruby
<spintronic>
mikeg: Hey you live in my town. ^_^
freerobby has quit [Ping timeout: 265 seconds]
Andrevan has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
hiyosi has joined #ruby
kristopolous has joined #ruby
<agent_white>
G'night pontiki!
sputnik1_ has joined #ruby
<kristopolous>
so I want to get a 40-bit binary from a number ... currently I'm doing ".pack('q').unpack('CCCCC').pack('CCCCC') " --- is there a shorter way of doing this?
x1337807x has joined #ruby
mary5030 has quit [Remote host closed the connection]
sensen_ has quit [Ping timeout: 240 seconds]
Salve has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
Salve has joined #ruby
notjohn has quit [Ping timeout: 240 seconds]
<centrx>
#pack is not a method on a number?
rm__ has quit [Read error: Connection reset by peer]
hiyosi has quit [Read error: Operation timed out]
<kristopolous>
oh sorry, [].pack
rm_ has joined #ruby
xerox357 has quit [Remote host closed the connection]
twiceaday has quit [Read error: Operation timed out]
lewix has joined #ruby
sparrovv has joined #ruby
twiceaday has joined #ruby
Jetchisel has joined #ruby
mikepack has quit [Remote host closed the connection]
ndrei has joined #ruby
<bnagy>
"I want to get a 40-bit binary from a number " what does that mean?
<bnagy>
express it as binary? Truncate to 40 bits? ...?
<kristopolous>
I'm storing tens of billions of these entries
<kristopolous>
for some data processing
<kristopolous>
all the numbers fit in 40 bits
koell has joined #ruby
<kristopolous>
it saves gigabytes of memory
<bnagy>
so why not just << them ?
sensen has joined #ruby
<kristopolous>
what do you mean?
mikepack has joined #ruby
<bnagy>
adding your 3 bytes is just like <<24 no?
m104 has joined #ruby
mary5030 has joined #ruby
<kristopolous>
oh aha
mikeg has quit [Quit: Leaving...]
<kristopolous>
[x].pack('q')[0..5] may work
blueOxigen has joined #ruby
<kristopolous>
lemee see if it increases performance
Andrevan has joined #ruby
nateberkopec has joined #ruby
<kristopolous>
0..4
<bnagy>
also you could probably just compress the strings
<bnagy>
but slow
<kristopolous>
this datastore is binary safe
bluOxigen has quit [Ping timeout: 244 seconds]
<kristopolous>
ah, well this appears to have shaved about 8% or so off the runtime
mikepack has quit [Remote host closed the connection]
<bnagy>
yeah my shifting thing isn't working
<bnagy>
obviously I have screwed something up
<bnagy>
I hate saying this, but if you have a lot of them maybe bloom filter
Zunonia has quit [Quit: Computer has gone to sleep.]
<bnagy>
unless it's not a set
<bnagy>
like if there are dups
browndawg has quit [Ping timeout: 240 seconds]
xerox357 has joined #ruby
lmickh has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
<kristopolous>
I'm not worried about lookup time right now
<bnagy>
well it saves masses of storage, btu I guess they're not a set
rm_ has quit [Remote host closed the connection]
Waheedi has joined #ruby
rm__ has joined #ruby
<kristopolous>
it's a multi-way graph of average depth 4
<bnagy>
otherwise it's cheaper to store the inverse set I think :D
<RubyPanther>
kristopolous: I would implement that in C
<agent_white>
Fuck. And I think I have issues sometimes with shit like writing an irc client... ._.
* agent_white
bows to the Ruby lords
<kristopolous>
well ruby's job is to do things like create JSONs from datasets
<kristopolous>
and parse JSONs and put them into datastores
coderhs has quit [Ping timeout: 264 seconds]
<RubyPanther>
Right so provide a Ruby interface
<kristopolous>
I'm using things like gremlin to do the lifting at the datastore stage
<RubyPanther>
It is normal to implement a Ruby method in C
<bnagy>
ooh I can use that (gremlin)
mikepack has joined #ruby
<bnagy>
iiinteresting
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has quit [Ping timeout: 264 seconds]
dh64 has quit [Ping timeout: 264 seconds]
jetblack_ has quit [Ping timeout: 244 seconds]
<kristopolous>
ruby's reading the data from disk at about 1.5M/s now ... this doesn't worry me really
<kristopolous>
but if it gets crazy, I'll be sure to look towards C
dh64 has joined #ruby
<bnagy>
that is insanely slow
markisonfire has quit [Quit: markisonfire]
dawkirst has quit [Read error: Connection reset by peer]
morenoh159 has quit [Ping timeout: 264 seconds]
<kristopolous>
ok, well stated another way it's doing about 150,000 insertions per second on a single thread
Waheedi has quit [Quit: Waheedi]
justinmcp has quit []
jrhorn424 is now known as zz_jrhorn424
<bnagy>
oh, right, I thought that was your read speed o_0
justinmcp has joined #ruby
havenwood has joined #ruby
wiku5_ has quit [Read error: Operation timed out]
<agent_white>
Ron Jeremy status
duncan_bayne has quit [Ping timeout: 264 seconds]
<bnagy>
which graphdb are you using?
<kristopolous>
there's some neo4js, some postgres, some redis
dh64 has quit [Ping timeout: 240 seconds]
Astralum has quit [Ping timeout: 240 seconds]
dh64 has joined #ruby
big_al has joined #ruby
<kristopolous>
and lots of traditional files in directory
The_NetZ has joined #ruby
iliketurtles has joined #ruby
mikepack has quit [Remote host closed the connection]
<The_NetZ>
hey. is there some linker flag I need in g++ for ruby? I'm getting an undefined reference to rb_fix2int, and I have -I /usr/include/ruby-2.1.0/ -I /usr/include/ruby-2.1.0/x86_64-linux/ in my command
yubrew has joined #ruby
markisonfire has joined #ruby
<kristopolous>
grep -ir rb_fix2int ??
Salve has joined #ruby
<kristopolous>
you don't need i
yeticry has quit [Ping timeout: 264 seconds]
awarner has joined #ruby
mary5030 has quit [Remote host closed the connection]
<The_NetZ>
yeah, lol. one sec.
yeticry has joined #ruby
<The_NetZ>
kristopolous: it exists under /usr/include/ruby-2.1.0/ruby/ruby.h, so that's not the issue, at least I think...
awarner_ has quit [Ping timeout: 240 seconds]
<kristopolous>
oh, probably a linking issue
<kristopolous>
in fact, of course it is
<kristopolous>
i haven't dealt with this stuff in years, let me think
<The_NetZ>
-lwhat ?
<kristopolous>
do pkg-config --list-all | grep ruby
yubrew has quit [Ping timeout: 240 seconds]
<The_NetZ>
returns ruby-2.1 Ruby - Object Oriented Script Language
<kristopolous>
aha
<kristopolous>
try pkg-config --libs ruby-2.1
lyanchih has quit [Quit: lyanchih]
<kristopolous>
and if that returns stuff, either copy and paste it
Salve has quit [Ping timeout: 264 seconds]
<kristopolous>
or drop that command in using backticks
<The_NetZ>
yep, -l flags out the wazoo
<kristopolous>
to your compile string
<The_NetZ>
many thanks.
<kristopolous>
good luck
<The_NetZ>
yeah. used to be a visual studio project, a real pita to convert over :P
Fezzler has joined #ruby
Kricir has joined #ruby
noop has joined #ruby
<kristopolous>
is there still no good tool to look at DSW files in linux?
<The_NetZ>
DSW? not that i know of, I just grep the files for useful strings and monkeypatch
aagdbl has quit [Quit: This computer has gone to sleep]
<kristopolous>
wine has something
sigurding has joined #ruby
blasius has quit [Remote host closed the connection]
browndawg has joined #ruby
<kristopolous>
and mingw has something from 10 years ago
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Remote host closed the connection]
<The_NetZ>
kristopolous: and thanks. I was not aware of the pkg-config tool, finally got a compiled binary, but it segfaults, but now I can work on stuff :D
Zunonia has joined #ruby
lsmola has joined #ruby
<kristopolous>
it probably segfaults because of bad linking ... just my guess
_tpavel has joined #ruby
cina has left #ruby [#ruby]
mansi has joined #ruby
<The_NetZ>
heh. I'll figure it out, I'm just glad to be able to turn the text to a binary :P
freerobby has joined #ruby
Hanmac1 has joined #ruby
achru has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
weie has joined #ruby
achru has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 265 seconds]
tonni has quit [Remote host closed the connection]
achru has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
recurrence has joined #ruby
nism has joined #ruby
kopasetik has left #ruby [#ruby]
carraroj has joined #ruby
coderhs has joined #ruby
noop has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
hermanmunster has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 240 seconds]
invinceable has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
xerox357 has quit [Remote host closed the connection]
dodosan has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xerox357 has joined #ruby
amritanshu_RnD has joined #ruby
anarang has quit [Ping timeout: 244 seconds]
amritanshu_RnD is now known as Guest23213
iliketurtles has joined #ruby
markisonfire has quit [Quit: markisonfire]
ndrei has quit [Ping timeout: 265 seconds]
Fezzler has quit [Quit: Leaving]
vpretzel has joined #ruby
anarang has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
xerox357 has quit [Ping timeout: 252 seconds]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
noop has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
Shidash has joined #ruby
noop has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
anarang has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
yasushi has joined #ruby
thomasxie has joined #ruby
jhass|off is now known as jhass
Hobogrammer has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
<shevy>
test
vlad_starkov has joined #ruby
yubrew has joined #ruby
Hobogrammer has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 265 seconds]
apeiros has quit [Ping timeout: 244 seconds]
incade has joined #ruby
sdouglas has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
eelseth has joined #ruby
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
Salve has joined #ruby
joelroa has joined #ruby
sdouglas has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
charlies_ has joined #ruby
charlies_ has quit [Client Quit]
<agent_white>
shevy: ping
bal has joined #ruby
<agent_white>
+9 minutes :P
charliesome has quit [Read error: Connection reset by peer]
gnephiak has joined #ruby
sdouglas has joined #ruby
<shevy>
hehe
tonni has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
pabloh has quit [Ping timeout: 240 seconds]
Salve has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 264 seconds]
<sigurding>
good morning guys, I have question I want to call methods of multiple classes dynamically (like this if [array1, array2, array3].all? { |a| a.empty? }). That means the classes should be initialised on application startup and then registered in this array. How do I achieve that a subset of Classes in a Module get initialized?
<sigurding>
afterwards all plugin instances are registered in the plugin System an I may call if [pluginA, pluginB, pluginC].all? { |a| a.empty? }
<bnagy>
ok I figured it might be a plugin system
Gooder has joined #ruby
achru has quit [Ping timeout: 265 seconds]
TripleDE1 has quit [Remote host closed the connection]
Xeago has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
rm__ has joined #ruby
pabloh has joined #ruby
<bnagy>
what's the all? empty? supposed to do?
rahult_ is now known as rahult
mlpinit has quit [Ping timeout: 244 seconds]
Matriks has joined #ruby
kristopolous has quit [Quit: Leaving]
sensen has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
sensen has joined #ruby
AlSquirikou has joined #ruby
freerobby has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
user258467 has joined #ruby
Guest23213 has quit [Read error: Connection reset by peer]
<sigurding>
bnagy: it should not be empty() it should be collect()
amritanshu__RnD has joined #ruby
<bnagy>
um..?
kzrl has quit [Ping timeout: 265 seconds]
<bnagy>
I think you can require stuff into a sandbox.. pretty sure I used to do this before I refactored
mansi has quit [Read error: Operation timed out]
<bnagy>
otherwise you can 1) get a list of all current constants 2) require all files in plugins/ 3) get added constants
<bnagy>
then I would normally register the classes, not the instances
<bnagy>
cause you can always make a instance when you need one
bigkevmcd has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
<bnagy>
depends how how you want to let plugin writers be slack. If you can force them to declare plugins as MyMagicFramework::Plugins::MyPlugin then you're fine
apeiros has joined #ruby
philcrissman has joined #ruby
mehlah has joined #ruby
m104 has joined #ruby
achru has joined #ruby
CpuID has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mengu has joined #ruby
m104 has quit [Client Quit]
whowantstolivefo has joined #ruby
dodosan has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
ktosiek has joined #ruby
phansch has joined #ruby
mehlah has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
browndawg has joined #ruby
Xeago has quit [Remote host closed the connection]
tgkokk has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
tonni has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 264 seconds]
morenoh159 has joined #ruby
Alina-malina has joined #ruby
nateberkopec has joined #ruby
hobo has joined #ruby
noop has quit [Ping timeout: 244 seconds]
blaxter_ has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
<hobo>
for hashes, would each do |hash| iterate over the keys?
noop has joined #ruby
mehlah has joined #ruby
marcdel has quit []
claymore has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
sdouglas has quit [Remote host closed the connection]
<tobiasvl>
hobo: no, each pair
<tobiasvl>
hobo: each_key will iterate over the keys
<apeiros>
(I'm horrible with tracking such things :-S)
gaussblurinc has quit [Quit: Leaving.]
havenwood has joined #ruby
anarang has joined #ruby
mansi has joined #ruby
freerobby has joined #ruby
<apeiros>
the whole data manipulation API is still largely missing. I don't know how to handle row/column instances when rows/columns are added to the underlying table. pondering a callback, and explicit attached/detached state. not sure, though.
<popl>
yeah, it's tricky
rm__ has quit [Ping timeout: 253 seconds]
mourest has joined #ruby
yacks has joined #ruby
AlSquirikou has quit [Quit: This computer has gone to sleep]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
gaussblurinc has joined #ruby
pabloh has quit [Ping timeout: 265 seconds]
<popl>
I yanked all the attr_reader and def lines from the files and pasted them into my skeleton test files, then did e.g. %s/\v%(def|attr_reader) :?([\[\]]{0,2}\w*).*/test 'Column::\1' do^Mend^M/g in vim because I am lazy. :P
<popl>
vim \o/
havenwood has quit [Ping timeout: 252 seconds]
browndawg has quit [Read error: Operation timed out]
<popl>
Then I had to fix typos. :P
mansi has quit [Ping timeout: 244 seconds]
<popl>
%s/::/#/
tesuji has quit [Ping timeout: 240 seconds]
<popl>
I make the silliest mistakes sometimes.
ephemerian has joined #ruby
amritanshu__RnD has joined #ruby
nfk has joined #ruby
shvelo has joined #ruby
dodosan has quit [Remote host closed the connection]
freerobby1 has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
einarj has quit []
rahult is now known as rahult_
rahult_ is now known as rahult
charliesome has joined #ruby
cdime has quit [Remote host closed the connection]
soc42 has joined #ruby
<popl>
apeiros: Do you want to start tracking stuff with the github issue tracker?
<apeiros>
popl: yes, why?
<apeiros>
should be in the readme
<apeiros>
yeah, bug reporting links to github issues :)
jibi has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
<popl>
Right, just wasn't sure because none of the previous bugs you mentioned in your commit logs seem to be tracked there.
<apeiros>
because there was no release in between
<popl>
ah
<apeiros>
this is preparation for 0.1
<popl>
OK
einarj has joined #ruby
<popl>
Oh wait, there is one thing, by schaerli
<popl>
apeiros: Thanks for letting me help.
timonv has joined #ruby
dodosan has joined #ruby
Macaveli has joined #ruby
jibi has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
fschuindt has joined #ruby
makara has joined #ruby
sigurding has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ohwhoa has joined #ruby
nateberkopec has joined #ruby
monkegjinni has joined #ruby
Xeago_ has quit [Remote host closed the connection]
greenarrow has joined #ruby
vlad_starkov has joined #ruby
yubrew has joined #ruby
sparrovv has joined #ruby
<certainty>
moin
nism has quit [Quit: Leaving]
dodosan has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
nateberkopec has quit [Ping timeout: 240 seconds]
<popl>
apeiros: When do you plan on deprecating those methods? I will have to rewrite tests (no big deal).
yubrew has quit [Read error: Operation timed out]
prc has joined #ruby
bluenemo has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
kenndel_ has quit [Read error: Connection reset by peer]
<apeiros>
ah, table_* and tables_* methods? those are on TableData directly
vinian has quit [Read error: Connection reset by peer]
<apeiros>
just use TableData.table or TableData::Table.new to set up your test tables
elaptics`away is now known as elaptics
<agent_white>
Am I on Australian time yet?
<popl>
apeiros: ok
fayimora___ is now known as fayimora
havenwood has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
ParanoidSP has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
ParanoidSP has joined #ruby
alex88 has joined #ruby
koell has quit [Ping timeout: 240 seconds]
nkts is now known as marius
mikepack has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
roolo has joined #ruby
<bnagy>
agent_white: just after 2100 in .au east coast, why?
joelroa has joined #ruby
Salve has joined #ruby
deepender has quit [Read error: Operation timed out]
blaxter_ is now known as dumdedum
<certainty>
apeiros: i've been thinking about https://gist.github.com/apeiros/9289539. Did you make a decision yet? I couldn't decide with just that. Defining equality semantics for disjoint types depends a bit on the context. It may be feasable to just reject invalid types, which will make things more explicit, but then again it may be totally fine to just make them inequal. The solution that I favored at last is to provid a procedure #to_yourtype and apply that to th
<certainty>
I don't know if that's really the best thing to do
<apeiros>
certainty: define "reject"
<apeiros>
raise an error?
<certainty>
yes
<apeiros>
that'd violate rubys stated contract for ==
<certainty>
oh i don't know about that one
mikepack has quit [Ping timeout: 265 seconds]
koell has joined #ruby
<apeiros>
== is supposed to be always callable
<apeiros>
i.e., == should only raise in case of an actual bug
<apeiros>
other than that, it should always return true/false
joelroa has quit [Ping timeout: 240 seconds]
<apeiros>
I went with the gisted implementation
<certainty>
ok with that information in mind i assume you settled with your implementation?
<apeiros>
certainty: consider, in what situation would you ever expect `a == b` to raise?
<certainty>
apeiros: oh it would in many languages
<certainty>
or it wouldn't typecheck rathet
<apeiros>
even if I do `FooBar.new == Blablupp.new`, I'd expect it to just return false
<certainty>
rather
<apeiros>
because the question "are the two values equal?" can be answered with "no"
Salve has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
<apeiros>
i.e., if `other` is so foreign that I can't handle it, it's obviously not equal.
AlSquire has joined #ruby
tesuji has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<certainty>
yeah it makes sense. And intuitively it's easy to see, but i thought there might be cases where you derive additional information from that application, namely that the types do not match. But it's probably not a good idea to conflate that with equality in general. There are other ways to check that if i'm really interested in it
<certainty>
also speaking so much about types feels foreign anyway in ruby
<popl>
haha
<popl>
< apeiros> all foreigners are not equal
<popl>
;P
<apeiros>
:(
<certainty>
but just to give an example that others did decide differently. In scheme you have the general equality-predicate equal? you may however have type-specefice predicates like = ore string=, which will raise if the input is not of the required type
timonv has quit [Remote host closed the connection]
<certainty>
apeiros: can i read up somewhere on these kinds of contracts for ruby in a distilled form maybe?
canton7-mac has joined #ruby
<certainty>
also my typing is crap again
timonv has joined #ruby
skaflem has joined #ruby
<popl>
apeiros: sorry
notjohn has quit [Quit: notjohn]
agent_white has quit [Quit: Night folks]
deadlock has joined #ruby
mlpinit has joined #ruby
hermanmunster has joined #ruby
kukyakya has joined #ruby
shaileshg has joined #ruby
tonni has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
phansch has joined #ruby
rm__ has joined #ruby
Atw has quit [Ping timeout: 244 seconds]
thomasxie has left #ruby [#ruby]
mlpinit has quit [Ping timeout: 264 seconds]
srji_ has quit [Quit: leaving]
<apeiros>
certainty: I don't know of a comprehensive list
havenwood has joined #ruby
<apeiros>
the common ones are <=> returning -1, 0, 1, nil for smaller/equal/bigger/incomparable
freerobby has joined #ruby
mansi has joined #ruby
<apeiros>
a.eql?(b) implying that a.hash == b.hash
rails426 has joined #ruby
<apeiros>
a.equal?(b) implying that a.object_id == b.object_id
rdark has joined #ruby
<apeiros>
a == b implying that (a <=> b) == 0
<apeiros>
Object responding to __id__ and __send__
_bart has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
srji has joined #ruby
catphish has joined #ruby
<apeiros>
a.equal?(b) and a.object_id == b.object_id is actually not an implication but an equivalency
<catphish>
are there any simple ways to find memory leaks in ruby?
<apeiros>
there are no simple ways to find memory leaks
<catphish>
no, i figured at much, today will be fun then :)
<certainty>
apeiros: alright thanks. I've copied them to my knowledge base
freerobby has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
<gaussblurinc>
hm, how to change element of array? in Perl I use for this simple for or foreach, but in ruby this is not obvious task :\
TMM has joined #ruby
Zunonia has quit [Remote host closed the connection]
<catphish>
what do you mean by change element?
shadoi1 has quit [Quit: Leaving.]
Zunonia has joined #ruby
<catphish>
you want to change a single entry, like [1,2,3] to [1,2,4]?
<gaussblurinc>
array.each do |object| object = object.split(' ')[-1] end
<certainty>
one does not simply eat when there's a patch pending ;p
deepender has joined #ruby
<catphish>
lol
<popl>
apeiros: no rush
<tobiasvl>
two hours lunch?!
<popl>
no, his lunch is in two hours
<apeiros>
tobiasvl: no, lunch in two hours
D4v33 has joined #ruby
<popl>
I have had a lunch period of two hours before.
nateberkopec has quit [Ping timeout: 240 seconds]
<certainty>
including the walk after the actual lunch
<popl>
at my job they want you to cut time if you're going to approach 40+ hours
<tobiasvl>
ah and you will patch while eating
sdouglas has joined #ruby
<catphish>
cut time?
<catphish>
is that some kind of superhero thing?
<popl>
only if corporations are superheroes
<catphish>
what does it mean?
visof has joined #ruby
<apeiros>
tobiasvl: no, I'll patch after eating
<catphish>
you wouldn't want to get crumbs in the commit
eelseth has joined #ruby
<apeiros>
popl: after table.rb:313, add `alias column_header column_name`
<apeiros>
catphish: worse, I don't want crumbs in the keyboard.
<popl>
catphish: I am usually scheduled for an eight hour shift with a one hour lunch break. If I have accrued excess time, I will take a longer lunch which will result in me working less time for the shift.
<apeiros>
commits I can amend.
<apeiros>
popl: funky, I'd go home earlier.
<catphish>
i see, can't you just go home early?
<apeiros>
or take a day off…
<apeiros>
or, like in december, take a month off :D
<popl>
They don't like you to. But I have done before.
<catphish>
or just work the extra hours?
<popl>
On Friday I had to go home ~4 hours early.
<catphish>
you know, because you're not tight
<popl>
catphish: They will fire me if I work too much overtime.
<catphish>
...what?
ahawkins has joined #ruby
<tobiasvl>
lol what
<catphish>
as someone who works 60 hours a week i don't understand :)
<popl>
I don't work in IT.
<popl>
Unfortunately.
<catphish>
oh ok
<catphish>
some jobs have limits on working hours for safety reasons i guess
eelseth_ has joined #ruby
<popl>
not safety reasons
<catphish>
then why?
<popl>
They are notoriously cheap.
<popl>
:)
ohwhoa has quit [Ping timeout: 240 seconds]
<catphish>
i wasn't proposing you got paid for the extra hours...
sdouglas has quit [Ping timeout: 265 seconds]
<popl>
haha :P
<popl>
spoken like a true IT professional
<catphish>
lol, i'm just so used to getting a salary and working whenever
timonv has quit []
<catphish>
lol, i'm just so used to getting a salary and working whenever
<catphish>
oops
<popl>
The only salaried employees at my job are managerial.
<catphish>
i see
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<catphish>
what country are you in?
<popl>
US
<catphish>
oh ok, i think you guys have much less stable jobs than we do in europe :(
eelseth has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
<popl>
I want to move to Europe. Probably London.
<popl>
Londonish, anyways.
sk87 has joined #ruby
<Xeago>
popl: stockholm is cool too
<catphish>
most people here are on some kind of permanent salary, not sure about things like facory work
deepender has quit [Ping timeout: 240 seconds]
<popl>
Xeago: So awesome there's a syndrome named after it? ;)
<catphish>
i don't like cities, i work in rural england, it's lovely :)
timonv has joined #ruby
moneydouble has joined #ruby
shashin has quit [Quit: shashin]
<Xeago>
popl: if you're also looking for a job, I got some openings where I work (Spotify)
<apeiros>
Xeago: the syndrome or the city?
<Xeago>
city
<Xeago>
what is the syndrome?
<apeiros>
oh, coming late with that joke, I see…
<catphish>
Xeago: where's your office?
<apeiros>
Xeago: siding with your kidnapper
<apeiros>
or hostage-taker
deepender has joined #ruby
<Xeago>
catphish: Birger Jarlsgatan 61 Stockholm
<Xeago>
1.x block away from central station
incade has quit [Remote host closed the connection]
<catphish>
i've never been to sweden, stockholm looks cool
<catphish>
lots of water :)
workmad3 has joined #ruby
shime has joined #ruby
<Xeago>
lots of water and lots of exposed rock
m1lt0n_ has quit [Quit: leaving]
thumpba has quit [Ping timeout: 244 seconds]
<catphish>
working for spotify sounds quite fun, i fear i'd spend too much of my day being angry at stupid record label execs though
<popl>
I'm afraid I don't have the experience required for a position like that, Xeago. But thanks for the suggestion.
<Xeago>
popl: what!
aaronmcadam has joined #ruby
<Xeago>
don't be foolish like I was 6 months ago
<popl>
What do you mean?
<Xeago>
(we don't have many positions with ruby stuff tho :'()
<catphish>
unfortunately i feel like i'm too expensive now to find a new job
TigerWolf has quit [Ping timeout: 245 seconds]
eka has joined #ruby
<Xeago>
popl: what kind of experience would you be lacking
zeeraw has joined #ruby
agjacome has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<catphish>
there aren't many €150k linux / ruby jobs advertised :(
<popl>
Xeago: Professional experience in the software industry. :)
achru has quit [Remote host closed the connection]
<popl>
I am familiar with other languages.
<popl>
I am better at some other languages than I am at ruby.
<catphish>
popl: don't worry too much about that, just teach yourself and go in confident
<Xeago>
popl: you care enough about your CTCP Version to reply no
DaniG2k has joined #ruby
<Xeago>
if you care about that, that tells me you care about good stuff :)
deepender has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 252 seconds]
user258467 has left #ruby ["Quitte"]
<catphish>
i have no idea how CTCP might be used
morenoh159 has joined #ruby
<catphish>
how do people know what requests to send?
joelroa has joined #ruby
<Xeago>
the standard ones are VERSION TIME PING
<Xeago>
then there is UserInfo and ClientInfo, which are less common
amritanshu__RnD has quit [Read error: Connection reset by peer]
<Xeago>
ditto
<apeiros>
I have a local copy of wikipedia :D
vlad_starkov has joined #ruby
<popl>
apeiros: show off
<popl>
apeiros: how big is it?
amritanshu_RnD has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
<apeiros>
uh, not sure… I have it on the NAS at home
amritanshu_RnD is now known as Guest60527
<apeiros>
I had a compressed copy on the iphone, english only, that was around 1GB iirc
zipper has joined #ruby
<apeiros>
didn't include pics/media I think
<apeiros>
(had, because I didn't migrate it to the new iphone when I bought it)
zipper is now known as Guest8219
Guest8219 has quit [Client Quit]
<apeiros>
I find the idea of having a local copy of that much knowledge on your phone amazing
<apeiros>
mind blowing even
Guest8219 has joined #ruby
<popl>
Yeah, but where are the flying cars?
Guest8219 has quit [Changing host]
Guest8219 has joined #ruby
<apeiros>
if you consider that you'd have needed large buildings just 2 decades ago for the same amount of knowledge…
Guest8219 has quit [Read error: Connection reset by peer]
<apeiros>
ok, with microfiche you could compress it a lot too. but still…
<popl>
ah, microfiche
<popl>
microfiche is cool
sparrovv has joined #ruby
mlpinit has joined #ruby
<popl>
I think I'd be ok working in a library as an archivist.
<apeiros>
btw., how sure are you that you're older than I? :-p
* apeiros
is an old fart…
<apeiros>
(by geek standards)
<popl>
Yeah, you are 31 right?
nari has quit [Ping timeout: 245 seconds]
<apeiros>
around that, yes
<popl>
According to your website, you are 31.
<popl>
I'm closer to 40. :)
<apeiros>
ok, you're an even older fart :D
<apeiros>
you win
<popl>
Woo, I win the rocking chair.
<popl>
:P
<mozzarella>
I'm 20
rm__ has joined #ruby
monkegjinni has joined #ruby
sameerynho has joined #ruby
<certainty>
apeiros: 30 something is not old
soc42 has quit [Remote host closed the connection]
<apeiros>
certainty: you're right, it's ancient
<certainty>
i'm currently in the palindromic 30s
<apeiros>
33?
mlpinit has quit [Ping timeout: 252 seconds]
<certainty>
jeah
freerobby has joined #ruby
<certainty>
so definitely not old
<apeiros>
you're prehistoric
mansi has joined #ruby
<certainty>
hah
<apeiros>
ok, I admit, first time I felt really old was when my brother got a baby
lxsameer has quit [Ping timeout: 240 seconds]
<certainty>
apeiros: yeah i can imagine. Kids let the time go by even faster. I have two of them and they do certaintly make me feel old from time to time
rm__ has quit [Ping timeout: 240 seconds]
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mozzarella>
I wish I was still 15
havenwood has joined #ruby
<mozzarella>
back then it was still acceptable for me to not be knowledgeable about anything
freerobby has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
<popl>
apeiros: I am a great-uncle.
mengu has quit [Remote host closed the connection]
sheepman has quit [Ping timeout: 260 seconds]
shvelo has quit [Ping timeout: 244 seconds]
tkuchiki_ has joined #ruby
LiohAu has joined #ruby
<apeiros>
I prefer to just be a great uncle.
hermanmunster has quit [Remote host closed the connection]
Mongey has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
hermanmunster has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
<hobo>
anybody use a standing desk?
Mongey has quit [Client Quit]
<popl>
I'm sure somebody does.
<popl>
:)
<mozzarella>
my friend does
<hobo>
any complaints about it?
<hobo>
sitting around has been messing up my hip flexors
fgo has joined #ruby
<apeiros>
hobo: can't have it for more than 1h
monkegjinni has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 265 seconds]
<apeiros>
per half day
<hobo>
standing?
zhouitpro has quit [Remote host closed the connection]
yubrew has joined #ruby
<hobo>
so like 2h a day?
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
yes, standing
hermanmunster has quit [Ping timeout: 264 seconds]
<apeiros>
might change with training. I no longer have the standing desk, though (only had it at home during my holidays to try it out)
<apeiros>
oh, and I used it with a relatively big "mattress" to stand on (don't know the proper word for it)
LekeFly has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<hobo>
i'm standing on carpet atm, but i find that it's really hard for me to use a standing desk only because sometimes i'll need to write stuff
alexju has quit [Remote host closed the connection]
aspiers has quit [Quit: WeeChat 0.4.1]
alexherbo2 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
AlexRussia has joined #ruby
Kelgors has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
<certainty>
mozzarella: hah, i know what you mean. The sad truth is that there are always things you don't know and you always make, sometimes stupid, mistakes
shime has quit [Ping timeout: 265 seconds]
<certainty>
well it's not sad actually
<certainty>
it's just the truth
monkegjinni has joined #ruby
JustMozzy has joined #ruby
nateberkopec has joined #ruby
<Xeago>
I got a standing desk
<Xeago>
or well, a configurable heigth
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hobo>
how do you find it?
Xeago has quit [Remote host closed the connection]
LiohAu has quit [Remote host closed the connection]
Xeago has joined #ruby
LiohAu has joined #ruby
mgomezch has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
dodosan has quit []
lyanchih has quit [Ping timeout: 244 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
gbt has joined #ruby
yfeldblum has quit [Remote host closed the connection]
koell has quit [Read error: Connection reset by peer]
Speed has joined #ruby
phutch1ns has quit [Ping timeout: 252 seconds]
_bart has quit [Remote host closed the connection]
kung has joined #ruby
hermanmunster has joined #ruby
pierre1_ has quit [Read error: Operation timed out]
thumpba has joined #ruby
kitak has joined #ruby
shime has joined #ruby
rahult_ is now known as rahult
lw has joined #ruby
Guest60527 has quit [Ping timeout: 252 seconds]
thumpba has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nomenkun has joined #ruby
cs02rm0 has joined #ruby
_bart has joined #ruby
hermanmunster has quit [Remote host closed the connection]
mgomezch has joined #ruby
hermanmunster has joined #ruby
alexherbo2 has joined #ruby
no0code has joined #ruby
bluOxigen has joined #ruby
nomenkun_ has joined #ruby
_bart has quit [Remote host closed the connection]
joelroa has joined #ruby
andy___ has joined #ruby
andy___ is now known as Guest52021
blueOxigen has quit [Read error: Connection reset by peer]
hermanmunster has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
<shevy>
he must stand, the poor man
gbt has quit [Quit: Leaving...]
<shevy>
at least it will train his ass muscles
freerobby has joined #ruby
no0code has quit [Client Quit]
browndawg has joined #ruby
roolo has quit [Quit: Leaving...]
Salve has joined #ruby
deepender has joined #ruby
jhass is now known as jhass|off
bluOxigen has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
nomenkun_ has quit [Client Quit]
sparrovv has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
_tpavel has quit [Quit: Leaving]
joelroa has quit [Ping timeout: 252 seconds]
carraroj has quit [Ping timeout: 240 seconds]
<gaussblurinc>
how to unify elements in subarray? After substitution there are enough similar elements in array. And I want to unify only those who match specific pattern. Is this possible by built-in functions/
spintronic has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
spintronic has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
<apeiros>
gaussblurinc: I don't understand your question. can you provide an example with example input and desired output?
mercwithamouth has joined #ruby
<apeiros>
popl: did you add the alias? otherwise I'll patch and push now.
sensen has quit [Quit: leaving]
deepender has quit [Ping timeout: 252 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
tgkokk has joined #ruby
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
mlpinit has joined #ruby
<relix>
hey guys
<relix>
how do I get all the matchdata's like Rubular.com matches?
<popl>
apeiros: I did.
kitak has quit [Remote host closed the connection]
<relix>
I tried string.scan(/regexp/) but that returns an array of all captured groups, not a MatchData object accessible with the captured group name
<shevy>
relix for matching elements you must use ()
<shevy>
then you can use either $1 or [1] on your matchdata object
<sigurding>
anyone here using rufus-scheduler? Why does the inclusion of rufus-scheduler lead to the exclusion of initialize() which does not get executed anymore, after inclusion
<jenenliu>
hi guys, how can I remove ruby if I install it through source file
<alexherbo2>
apeiros: Of course
rm__ has quit [Ping timeout: 252 seconds]
quatron has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
young has joined #ruby
PLejeck has joined #ruby
<young>
?
havenwood has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
<young>
hum
joonty has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
danshultz has quit [Remote host closed the connection]
nomenkun has joined #ruby
makara has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
aagdbl has joined #ruby
spider-mario has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
popl has quit [Ping timeout: 264 seconds]
fedesilva has joined #ruby
blackmesa has quit [Read error: Operation timed out]
<alexherbo2>
apeiros: Ok it is Tilt that do the real job.
<alexherbo2>
does
<alexherbo2>
If I want add my :cljs filter, I have to touch in Tilt in fact.
<gaussblurinc>
how to unique elements in array?
<alexherbo2>
and register :cljs
lkba has joined #ruby
griffindy has joined #ruby
<alexherbo2>
[1,1,2,3].uniq
kennym has quit [Ping timeout: 252 seconds]
camilasa_ has joined #ruby
kennym has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
ringaroses1 has joined #ruby
dblessing has joined #ruby
sparrovv has joined #ruby
<ringaroses1>
is there a standard way to have my gem support something ala rails plugins
hiyosi has joined #ruby
<gaussblurinc>
alexherbo2: and '!'-sign for self-change?
DaniG2k has quit [Quit: leaving]
camilasan has quit [Ping timeout: 264 seconds]
<alexherbo2>
gaussblurinc: yes
<alexherbo2>
in general I avoid in place.
blueOxigen has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
Mon_Ouie has quit [Ping timeout: 265 seconds]
jenenliu has left #ruby [#ruby]
rahult has joined #ruby
ctp has joined #ruby
monkegjinni has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
makara has joined #ruby
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ringaroses1>
i want my gem users to be able to extend my gem with their own gem "plugins" how should i do this ?
lsmola has quit [Ping timeout: 240 seconds]
daGrevis has joined #ruby
NovapaX has joined #ruby
Squarepy has joined #ruby
yfeldblum has joined #ruby
mjs2600 has joined #ruby
<canton7>
they call a method on something you create, and pass in an instance of their plugin. that instance exposes attributes giving the name, description, author, whatever of the plugin, and a bunch of methods which you can call
young has quit [Remote host closed the connection]
thumpba has joined #ruby
DarthGandalf has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
freerobby has joined #ruby
grvgr has joined #ruby
yacks has quit [Quit: Leaving]
vinian has joined #ruby
vinian has quit [Max SendQ exceeded]
monkegjinni has quit [Remote host closed the connection]
IceDragon has joined #ruby
grvgr has quit [Client Quit]
pothibo has joined #ruby
monkegjinni has joined #ruby
Speed has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
grampajoe has joined #ruby
RSTJNII has quit [Read error: Connection reset by peer]
RSTJNII has joined #ruby
DarthGandalf has joined #ruby
thomasxie has joined #ruby
monkegji_ has joined #ruby
lsmola has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
Macaveli has quit [Quit: Leaving]
lsmola has quit [Remote host closed the connection]
lsmola has joined #ruby
Macaveli has joined #ruby
mjs2600 has quit [Remote host closed the connection]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
joelroa has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7>
yes, that's a good pattern if someone's creating their own app whcih uses your code, someone else's plugin, and that plugin needs to integrate with your code
shime has quit [Ping timeout: 265 seconds]
prc has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
knigitz has quit []
monkegji_ has quit []
yubrew has joined #ruby
sparrovv has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonathanwallace has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
mnemon2 has quit [Read error: Connection reset by peer]
mnemon has joined #ruby
onewheelskyward has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
crystal77 has joined #ruby
onewheelskyward has joined #ruby
aquarhead has joined #ruby
ndrei has joined #ruby
heftig has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: ciao.]
Rudde has joined #ruby
heftig has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
MattStratton has joined #ruby
freerobby has joined #ruby
AlSquire has joined #ruby
guyz has quit [Ping timeout: 245 seconds]
young has joined #ruby
toretore has joined #ruby
digifiv5e has joined #ruby
coderhs has quit [Ping timeout: 244 seconds]
digifiv5e is now known as Guest58111
aquarhead has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
cs02rm0 has joined #ruby
mary5030 has quit [Remote host closed the connection]
dik_dak has joined #ruby
mary5030 has joined #ruby
jokke has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
notjohn has quit [Quit: notjohn]
gaussblurinc has quit [Quit: Leaving.]
zcreative has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
cs02rm0 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
danshultz has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
fedesilv_ has quit [Remote host closed the connection]
The_NetZ has quit [Quit: leaving]
makara has quit [Ping timeout: 269 seconds]
Hanmac has joined #ruby
gaussblurinc has joined #ruby
jetblack_ has quit [Quit: leaving]
xaq has joined #ruby
zachallett has joined #ruby
heftig has quit [Ping timeout: 244 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
onewheelskyward has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
fveillette has quit [Ping timeout: 264 seconds]
fedesilva has joined #ruby
thesheff17 has joined #ruby
fveillette has joined #ruby
heftig has joined #ruby
joelroa has joined #ruby
jrhe has joined #ruby
scrogson has quit [Ping timeout: 245 seconds]
grvgr has joined #ruby
relix has joined #ruby
yubrew has joined #ruby
scrogson has joined #ruby
<shevy>
somehow ruby gnome is still so clunky
kevind has joined #ruby
slowcon has joined #ruby
kindjal has joined #ruby
sentinal8473 has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
Megtastique has joined #ruby
phantasm66 has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass>
it's because they merely build bindings. We lack a ruby-esque abstraction
yubrew has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
simono has joined #ruby
sailias has joined #ruby
sailias has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Remote host closed the connection]
aryaching_ has joined #ruby
banister has joined #ruby
medvind has joined #ruby
sailias has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Bye]
sailias has quit [Client Quit]
sailias has joined #ruby
<medvind>
hi! I would like to escape a string to use in a shell command. for instance, the apostrophe in the string "it's a test" needs to be escaped. do you know of any standard function or gem that does this?
<workmad3>
medvind: use the multi-param version of system()
<workmad3>
medvind: system("command", "arg1", "it's a test!", ...)
tcurdt has quit [Quit: bye bye]
v1n has joined #ruby
spintronic has quit [Quit: Lost terminal]
rm_ has joined #ruby
<medvind>
workmad3, thanks. I can't see that it's escaping the string though
kaldrenon has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
young_ has joined #ruby
mary5030_ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
<LadyRainicorn>
Are you actually trying to run a shell command, or just invoke an external program?
<workmad3>
medvind: to see that it escapes 'correctly', you can look at the difference between system("echo *") and system("echo", "*")
tedstriker has joined #ruby
<LadyRainicorn>
system() (with multiple args) isn't exactly a shell call.
mary5030 has quit [Ping timeout: 240 seconds]
<shevy>
jhass yeah
<medvind>
LadyRainicorn, I want to run a php cli script with a parameter that needs to be escaped
anarang has quit [Quit: Leaving]
aryaching has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
<LadyRainicorn>
multiarg system will work fine then.
rm_ has quit [Ping timeout: 240 seconds]
aryaching_ has quit [Ping timeout: 240 seconds]
young has quit [Ping timeout: 244 seconds]
hfp is now known as hfp`away
philcrissman has quit [Remote host closed the connection]
meatherly has joined #ruby
dayepa has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
fbernier has joined #ruby
webgen has joined #ruby
_maes_ has joined #ruby
mark_locklear has joined #ruby
jjbohn has joined #ruby
Faris has joined #ruby
<Cork>
is there a clean way to do something like 1..50.step {|n| n * 2.25 } => [1, 2.25, 5, 11.25, 25.3,...]
fbernier has quit [Client Quit]
<Cork>
or do i have to just build an array with an enumerator?
mando has joined #ruby
siwica has joined #ruby
sameerynho has quit [Quit: Leaving]
browndawg has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
<canton7-mac>
brackets ;)
<canton7-mac>
(1..50).map{ |n| n * 2.5 }
<gaussblurinc>
why nil object can't catch all methods that are sended ?
<tobiasvl>
gaussblurinc: ?
<canton7-mac>
or add a .lazy to make it lazy
<LadyRainicorn>
That would be odd. You can easily create an object to do that, however.
sparrovv has quit [Remote host closed the connection]
notjohn has joined #ruby
<LadyRainicorn>
class Blackhole; def method_missing(*a,**kw) end; end
<gaussblurinc>
I have background of iOS. And this feature of obj-c is very interesting and useful
dayepa has joined #ruby
Morrolan has quit [Quit: ZNC: Shutting down.]
<tobiasvl>
gaussblurinc: but what do you mean?
<Cork>
canton7-mac: the array becomes > 50 though
<canton7-mac>
what do you mean?
Morrolan has joined #ruby
<LadyRainicorn>
gaussblurinc wants nil to work like Blackhole
<canton7-mac>
gaussblurinc, it's really debatable as to whether it's good practice :P
<canton7-mac>
I think there's a ruby gem called 'andand' or something?
<canton7-mac>
and yeah, it does pretty muhc what LadyRainicorn said
<gaussblurinc>
ok, I will keep in mind this feature of ruby
rmoriz has left #ruby [#ruby]
<hfp>
Hi guys, I'm back on track with the koans. And I'm puzzled in the about_methods part and more specifically the receivers. I can't wrap my head around what is a receiver (let alone an explicit one) and why is it a big deal. What am I missing?
jonathanwallace has quit [Ping timeout: 240 seconds]
<canton7-mac>
Cork, (1..50/2.25).map{ |n| n * 2.25 } ?
vlad_starkov has joined #ruby
<Cork>
canton7-mac: ah...
<Cork>
canton7-mac: that works; thx!
young_ has quit [Ping timeout: 265 seconds]
v1n has quit [Quit: WeeChat 0.4.3]
<canton7-mac>
or you could have some fun with (1..1/0.0).lazy.map{ |n| n * 2.25 }.take_while{ |n| n < 50 }.to_a
v0n has joined #ruby
<canton7-mac>
(but please don't actually do that in practice)
wewewemeno is now known as jzigmund
fedesilva has quit [Remote host closed the connection]
coderhs has joined #ruby
<hfp>
I understand it is about sending and receiving messages between objects, but what's the point? And why isn't there always a receiver?
<hfp>
canton7-mac: (don't mind that the rest isn't filled in, I am completing it and only commit when I have finished answering a stage in full)
jonathanwallace has joined #ruby
<canton7-mac>
hfp, I've heard of them, never paid too much attention
browndawg has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<hfp>
canton7-mac: It's basically a lot of tests for you to test and understand specific concepts in Ruby. So they give you functions or what have you, you have to read them and complete the tests so they pass (and you understand the concepts behind)
sailias has quit [Ping timeout: 265 seconds]
<hfp>
canton7-mac: This is how I am learning Ruby at the moment.
mary5030 has joined #ruby
<jhass>
hfp: it's simple: There always is an receiver, if you don't give one it's self. self.puts "foo" and puts "foo" are equivalent, the difference is that the former has an explicit, the later an implicit receiver
<canton7-mac>
aah ok, and the __'s are the bits you have to fill in
mando has quit [Remote host closed the connection]
<hfp>
canton7-mac: yes
mary5030 has quit [Remote host closed the connection]
<hfp>
jhass: Ah ok, that's all there is to it?
<jhass>
yes
mary5030_ has quit [Ping timeout: 252 seconds]
<hfp>
jhass: Oh well, so much for raking my brains out over that
<jhass>
maybe note that in things like Math.rand Math is the receiver
sski has quit [Read error: Connection reset by peer]
sski has joined #ruby
<canton7-mac>
at this level, sending a message to something and calling a method *on* something (be it an instance, or a class for static methods) are pretty much the same
<hfp>
jhass: So the receiver is the object you will call the method from? As in `Math.rand`, Math is the receiver and the rand method will be the one as defined in Math, correct? I could have an laternative rand method in Foo and call Foo.rand and have Foo's version of the rand method run, correct?
daGrevis has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bulunmayan has joined #ruby
enebo has joined #ruby
<jhass>
yes
<hfp>
I get it, thanks
diegoviola has quit [Quit: WeeChat 0.4.3]
Mongey has joined #ruby
Nirgali42 has joined #ruby
<canton7-mac>
the only difference between methods and messages I've found is that, in languages with messages, the receiver has a chance to say "actually, although I haven't been programmed to accept this exact message, I'm still going to handle it"
<hfp>
butbutbut, in that case I linked to, what is self? Is it the test_calling_private_methods_with_an_explicit_receiver object?
AlexRussia has quit [Remote host closed the connection]
<canton7-mac>
ruby has #method_missing, objective-c has forwardInvocation and all that jazz
michael_lee has joined #ruby
AlexRussia has joined #ruby
kaldrenon has quit [Remote host closed the connection]
mansi has joined #ruby
<jhass>
hfp: self in an instance method is the instance of the current class
cs02rm0 has joined #ruby
sski has quit [Remote host closed the connection]
zcreative has joined #ruby
mansi has quit [Client Quit]
jjj__ has joined #ruby
sski has joined #ruby
<hfp>
jhass: Hmm... So why does it return a NoMethodError? In the class, the `my_private_method` is defined, and then it is called with self as the receiver. We are still within the class so why raise a NoMethodError?
<hfp>
(defined on line 111 and called on line 122)
<jhass>
because in ruby private methods are private through the fact that you can't call them with an explicit receiver
thumpba has joined #ruby
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
<hfp>
jhass: I don't get it. I could call the private method without a reicever a few lines up but calling the same method with a receiver is not possible? Which receiver is then put by Ruby when you put no explicit receiver?
<jhass>
it's self
fgo has quit [Remote host closed the connection]
<jhass>
you're just not allowed to do self.private_method, because it's the explicit form
momomomomo has joined #ruby
lmickh has joined #ruby
<jhass>
maybe it's more clear if you consider this example: my_object = self; my_object.public_method # works; my_object.private_method # Doesn't work
cs02rm0 has quit [Ping timeout: 265 seconds]
sski has quit [Ping timeout: 252 seconds]
bean has joined #ruby
maximski has joined #ruby
<hfp>
So I have to remember that a private method can never be called using an explicit receiver, right?
thumpba has quit [Ping timeout: 244 seconds]
corehook has joined #ruby
<jhass>
yes
yubrew has joined #ruby
philcrissman has joined #ruby
sparrovv has quit [Remote host closed the connection]
blasius has joined #ruby
x77686d has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutch1n1 has joined #ruby
zachallett has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kzrl has joined #ruby
mengu has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jlast has joined #ruby
zachalle_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
phutch1ns has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 264 seconds]
joelroa has joined #ruby
Relaxation___ has quit [Quit: Connection closed for inactivity]
fedesilva has joined #ruby
phansch has joined #ruby
sparrovv has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
j0wker has joined #ruby
mary5030 has joined #ruby
fedesilva has quit [Remote host closed the connection]
Czupa has joined #ruby
geopet has joined #ruby
baordog has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
<hfp>
jhass: Ok, thanks
<medvind>
workmad3, LadyRainicorn thank you for your help!
joonty has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
crystal77 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
rudisimo has joined #ruby
greenarrow has quit [Quit: 500]
greenarrow has joined #ruby
iceden has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
acrussell has joined #ruby
_5kg has joined #ruby
jlast has quit [Remote host closed the connection]
alexju has joined #ruby
jlast has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
sailias1 has quit [Quit: Leaving.]
jobewan has joined #ruby
browndawg has quit [Quit: Leaving.]
sski has joined #ruby
diegoviola has joined #ruby
guilleiguaran has joined #ruby
flowerhack has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
xerox357 has joined #ruby
chuk has joined #ruby
sailias has joined #ruby
DaniG2k has joined #ruby
siwica has quit [Quit: siwica]
Bulunmayan has left #ruby [#ruby]
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
torstein has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 240 seconds]
npearson has joined #ruby
DropsOfSerenity has joined #ruby
ohwhoa has joined #ruby
Wolland has quit []
fgo has joined #ruby
DropsOfSerenity has quit [Read error: Connection reset by peer]
DropsOfSerenity has joined #ruby
cgore has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
andy___ has joined #ruby
ndrei has joined #ruby
andy___ is now known as Guest7939
sailias1 has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
sailias1 has quit [Client Quit]
young_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
wiku5_ has joined #ruby
<shevy>
dumdedum
jph98 has quit [Quit: jph98]
sailias1 has joined #ruby
tjr9898 has quit []
young has quit [Ping timeout: 264 seconds]
sentinal8473 has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
sailias has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
coderhs has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
<certainty>
shevy: quick pick a number between 42 and 42 million
<shevy>
88
<certainty>
correct
<shevy>
cool
jcs222 has quit [Quit: leaving]
<shevy>
did I win something?
<shevy>
I am working through the language R right now :(
<certainty>
yes a 6 bitcoins
jcs222 has joined #ruby
<shevy>
array <- c(3,5,7,9)
<certainty>
R is that statistics language right?
<shevy>
yeah
<zellio>
that's being kind
<shevy>
it is odd though
<zellio>
but yes
<shevy>
array[3] # [1] 7
<shevy>
seems they start counting at 1 not 0
<certainty>
odd
young has joined #ruby
<zellio>
They could indecies, not offsets
freerobby has joined #ruby
jcs222 has quit [Client Quit]
shvelo has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
<shevy>
all I want are cute 2D plots
<certainty>
shevy: it's especially surprising for a languge dealing with math
<certainty>
language, even
* certainty
&
fgo has joined #ruby
Waheedi has joined #ruby
<shevy>
and that is a range:
<shevy>
x <- 1:20
fgo has quit [Read error: No route to host]
sailias has joined #ruby
fgo has joined #ruby
young_ has quit [Ping timeout: 265 seconds]
apeiros has quit [Remote host closed the connection]
tgkokk has joined #ruby
apeiros has joined #ruby
Xeago_ has joined #ruby
sailias1 has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
craigp has joined #ruby
dumdedum has quit [Ping timeout: 264 seconds]
zz_jrhorn424 is now known as jrhorn424
fedesilva has joined #ruby
danshultz has joined #ruby
<certainty>
i like haskell's list comprehensions in that regard: [i | i <- [1 .. 10]] -- => [1,2,3,4,5,6,7,8,9,10]
sdouglas has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Ziarkaen has joined #ruby
jokke has joined #ruby
fedesilva has quit [Remote host closed the connection]
puppeh has joined #ruby
griffindy has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<puppeh>
if i require 'time' I can do Date.strptime, but this is also true if I instead require 'datetime'
apeiros has quit [Ping timeout: 240 seconds]
<puppeh>
is there an actual difference? how these work actually?
browndawg has joined #ruby
sdwrage has joined #ruby
sdwrage_ has joined #ruby
banister has quit [Ping timeout: 240 seconds]
esposito has joined #ruby
cs02rm0 has joined #ruby
dayepa has quit [Ping timeout: 244 seconds]
tjr9898_ has joined #ruby
yubrew has joined #ruby
lmickh has quit [Quit: No Ping reply in 180 seconds.]
arietis has quit [Quit: Computer has gone to sleep.]
lmickh has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
thumpba has joined #ruby
bal has quit [Ping timeout: 244 seconds]
Atw has joined #ruby
<shevy>
hmm
arietis has joined #ruby
corehook has quit [Ping timeout: 240 seconds]
kate_r has joined #ruby
coderhs has joined #ruby
<esposito>
Hi all. I'm trying to create a gem containing a C extension. I've followed several tutorials on-line (e.g., http://guides.rubygems.org/gems-with-extensions/) and everything goes well until I try the installed gem. Then the problem is that on requiring the library, it fails saying that it does not find fc/fc (fc being the name of the gem). Note: fc/fc is required by the file fc.rb (this is a best practice to allow mixing C and ruby code while writing the
<esposito>
extension). Anyone has any idea?
kaldrenon has joined #ruby
cs02rm0 has quit [Ping timeout: 240 seconds]
npearson has quit []
Matriks has quit [Read error: Connection reset by peer]
Matriks has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
DropsOfSerenity has quit [Ping timeout: 240 seconds]
jsilver has joined #ruby
DropsOfSerenity has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
jsilver has quit [Client Quit]
iaj has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
GeorgesLeYeti has joined #ruby
ndrei has joined #ruby
<GeorgesLeYeti>
Hi
tesuji has quit [Ping timeout: 240 seconds]
Hoplite has joined #ruby
Hoplite is now known as Hopl
dumdedum has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
hobo has quit [Remote host closed the connection]
<GeorgesLeYeti>
I have a problem of using include? method. I want to know if a string get char "a" or char "b". like: if (myString.include?("a") || myString.include?("b"))
<GeorgesLeYeti>
Is it possible in 1 exp
<toretore>
reg exp
geggam has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
corehook1 has joined #ruby
mikepack has quit [Remote host closed the connection]
<GeorgesLeYeti>
If i write myString.include?(/a|b/) it returns can't convert Regexp into String
joelroa has joined #ruby
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
<puppeh>
if i require 'time' I can do Date.strptime, but this is also true if I instead require 'datetime'. What's the difference between those two?
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
<esposito>
GeorgesLeYeti: if you use regexp you don't need include?, just test myString =~ /a|b/
tylersmi_ has quit [Remote host closed the connection]
<esposito>
because you are using Date in both calls
tylersmith has joined #ruby
puppeh has quit [Remote host closed the connection]
<esposito>
you need to call DateTime.strptime
<esposito>
if you want to use the DateTime versions
ndrei has quit [Ping timeout: 264 seconds]
notjohn has quit [Quit: notjohn]
JustMozzy has joined #ruby
yasushi has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
koell has joined #ruby
yasushi has joined #ruby
<esposito>
Anyone with experience with extension creation here?
Xeago_ has quit [Remote host closed the connection]
notjohn has joined #ruby
BadProphet has joined #ruby
Megtastique has joined #ruby
Xeago has joined #ruby
Astralum has joined #ruby
tylersmith has quit [Ping timeout: 241 seconds]
kennym has quit [Quit: Leaving.]
pel_daniel has joined #ruby
sotoj has joined #ruby
roolo has quit [Quit: Leaving...]
x77686d has quit [Quit: x77686d]
apeiros has joined #ruby
yasushi has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
momomomomo has joined #ruby
Atw has quit []
<shevy>
you mean extensions in C?
tjr9898_ has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
<esposito>
shevy: yes
tjr9898 has joined #ruby
lw has quit [Quit: s]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest58111 has quit [Changing host]
Guest58111 has joined #ruby
xaq has quit [Remote host closed the connection]
Guest58111 is now known as guyz
<shevy>
I only went through the basics; don't think many people here are heavy extension makers, except for... Hanmac and... hmm this N* guy... N... hmm Nilium I think
<shevy>
both dabbled into C++ as far as I remember
sriehl has joined #ruby
<esposito>
I've had problem in requiring a gem I've created. I've digged out the problem and it seems that it installs the dynamic library in the wrong place.
sriehl has quit [Max SendQ exceeded]
<esposito>
sounds any bell to you?
phansch has joined #ruby
jjbohn has joined #ruby
kennym has joined #ruby
<shevy>
not really
brandonjmckay has left #ruby [#ruby]
failshell has joined #ruby
jherbst has joined #ruby
sparrovv has quit [Remote host closed the connection]
puppeh has joined #ruby
<esposito>
also, I think this is all basic stuff. No fancy requirement. It is a simple thing wrapper around a C library
<shevy>
when I went through the stuff in ... 2004-2006 it kinda worked, but it was no fun, so I went back to plain ruby again
sriehl has joined #ruby
<puppeh>
esposito: so it's the same think?
sriehl has quit [Max SendQ exceeded]
<puppeh>
thing*
PSYCLOO has quit [Read error: Connection reset by peer]
sriehl has joined #ruby
sriehl has quit [Max SendQ exceeded]
<kukyakya>
Is it possible to add a parameterized task to prerequisites?
<esposito>
puppeh: no, use DateTime to parse dates with time (and get back DateTime objects), use Date for parsing dates (and get back Date objects)
PSYCLOO has joined #ruby
<puppeh>
is there any practical difference in my pastie? I'm using the very same method in both cases?
<puppeh>
that's my question
roolo has joined #ruby
<puppeh>
(they're producing same results btw)
<shevy>
puppeh Date seems easier to type, so :)
yfeldblum has joined #ruby
<shevy>
there is also class Time I think
<esposito>
in your pastie you are calling Date.strptime twice, then you are calling exactly the same method.
sriehl has joined #ruby
sriehl has quit [Max SendQ exceeded]
sparrovv has joined #ruby
AlexRussia has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 264 seconds]
blasius has quit [Remote host closed the connection]
froy has joined #ruby
AlexRussia has joined #ruby
<esposito>
Nilium: are you on-line? Do you have any idea about why the dynamic library of an extension get installed in the wrong dir (in lib, instead of lib/<extension_name>)?
blasius has joined #ruby
Es0teric has joined #ruby
thumpba has joined #ruby
fgo has joined #ruby
jjbohn has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Salve_ has quit [Remote host closed the connection]
ohwhoa has quit [Quit: woah!]
coderhs has quit [Ping timeout: 265 seconds]
puppeh has quit [Quit: Leaving...]
x77686d has joined #ruby
fgo_ has joined #ruby
azamba has joined #ruby
Ziarkaen has quit [Ping timeout: 264 seconds]
grvgr has quit [Quit: grvgr]
medvind has quit [Quit: Lämnar]
philcrissman has joined #ruby
root_empire has joined #ruby
elaptics is now known as elaptics`away
hobodave has quit [Quit: Computer has gone to sleep.]
blasius has quit [Ping timeout: 265 seconds]
fgo_ has quit [Read error: Connection reset by peer]
fgo_ has joined #ruby
lfox has joined #ruby
wallerdev has joined #ruby
Guest7939 has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 252 seconds]
sparrovv has quit [Remote host closed the connection]
<slowcon>
afternoon guys
andy__ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
JustMozzy has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 265 seconds]
resure has joined #ruby
Hanmac1 has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
yubrew has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
andy__ has joined #ruby
azamba has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
camilasa_ has quit []
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Salve has joined #ruby
rbartos has joined #ruby
dagobah has quit [Quit: Leaving...]
rbartos has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
rbartos has joined #ruby
fgo_ has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
Es0teric has quit [Remote host closed the connection]
danman has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
danman has joined #ruby
mikepack has joined #ruby
danshultz has joined #ruby
Ziarkaen` has quit [Ping timeout: 240 seconds]
<Fidelix>
Hello. How can I achieve something like this? bad_words = ['nasty', 'dirty']; another_array_with_strings.delete_if { |n| n.include? bad_words }
<Fidelix>
Of course n.include? bad_words won't work. What would be a nice way to do this?
<jhass>
bad_words.include? n or just another_array-bad_words
<Fidelix>
RubyPanther: that looks good. Thank you very much! Regex.union is very clean but it appears it's not possible to pass options to it.
danshultz has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 265 seconds]
danshultz has joined #ruby
sriehl has joined #ruby
poguez__ has joined #ruby
sriehl has quit [Max SendQ exceeded]
young has quit [Ping timeout: 265 seconds]
glebm has joined #ruby
glebm has quit [Client Quit]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
young_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
cloud|nix has quit [Read error: Operation timed out]
<certainty>
you could as well downcase the input and use a Set to store the bad words
workmad3 has quit [Ping timeout: 244 seconds]
<certainty>
again so many options
markisonfire has joined #ruby
<rawtaz>
soo. im trying to install a specific version of a gem. im not a ruby guy so its all new to me. for that reason, i turn to the command help, i.e. `gem help install`, but find that there's very little information about version syntax. isnt this something that should be at least pointed to?
jjj__ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
glebm has joined #ruby
timonv has quit [Remote host closed the connection]
<jhass>
simple, gem install foo -v 1.2.3
<ddd>
it is pointed out. in fact its the 3rd line of the Options information
fantazo has quit [Quit: Verlassend]
* rawtaz
looks again
<RubyPanther>
rawtaz: but we actually use bundler and a Gemfile to specify versions
<rawtaz>
jhass: wasnt asking how to specify it, was discussing the information in the manpage :)
x77686d has joined #ruby
noopq has joined #ruby
mjs2600 has quit [Remote host closed the connection]
macmartine has joined #ruby
<rawtaz>
ddd: is this what you mean? "-v, --version VERSION Specify version of gem to install"
<ddd>
yes. so it makes sense it would be gem install blah -v version_number
<rawtaz>
i was probably unclear
<rawtaz>
i was not asking for how to find out that it is the -v parameter one should use
chuk has quit [Quit: Leaving]
shadoi has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
shadoi has joined #ruby
macmartine has quit [Client Quit]
<rawtaz>
i was suggesting that it might be good if the man page/help for gem install sums up, or at least points to a reference summing up, the syntax/format of the value to that argument
<rawtaz>
for example that one can do =, >=, ~> and so on
<rawtaz>
cuz now one reads that and then have to noodle around on the website before finding e.g. http://guides.rubygems.org/patterns/ and its "Declaring dependencies"
<rawtaz>
i.e. a usuability thing :)
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
tgkokk has joined #ruby
<ddd>
i don't agree but thats because the help is a condensed version of the information contained in the docs themselves.
jkamenik has joined #ruby
<ddd>
but thats just my stance on it, doesn't make your's 'wrong'
<rawtaz>
you want it to be a minimal and concensed reference?
<rawtaz>
condensed*
Xeago has quit [Remote host closed the connection]
kotakotakota has quit [Ping timeout: 240 seconds]
<ddd>
the man page? yes. that is exactly what man pages are
<ddd>
they are not the *entire* set of docs one solely relies on. its just a condensed version of the overall docs. they have been since their inception
<rawtaz>
i think that is debatable. if you look at history, man pages were *the* documentation for the commands etc in a system. not some cheat sheet or reference card
<rawtaz>
a lot of man pages still are. e.g. git's
<rawtaz>
i agree, not the entire set of docs. but lets put it this way:
nanoyak has quit [Read error: Connection reset by peer]
<rawtaz>
- the `-h` or options summary of the command should be the cheat sheet, the condensed one
nanoyak has joined #ruby
<rawtaz>
- the manpage should be more elaborate, IMO one should be able to tell how to specify the arguments to it
<rawtaz>
it's not much point having a list of arguments if the at-hand doc doesnt tell you how to specify them
<ddd>
after 20y doing this, i'd have to disagree. i've always seen man pages as the condensed version. now 'info' on the other hand was always the defacto docset for an application. the man page was just a cheater so to speak
<mostlybadfly>
i'm kind of wondering why when i put a non integer it just times out rather than returning "n must be an integer"?
lewix has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
thumpba_ has quit [Remote host closed the connection]
<rawtaz>
so how can i tell this wonderful Gem thing that i want to install sass version 3.3, the latest. i dont want it to run off to 3.4 and up in the future, i want to say "3.3.x, as new as possible"
<rawtaz>
the reason for this is that i dont want to specify a certain RC
nanoyak has joined #ruby
<terrellt>
rawtaz: '~> 3.3.0'
relix has joined #ruby
nanoyak has quit [Remote host closed the connection]
<rawtaz>
and i will explain what "doesnt work" means in this case
<jhass>
mostlybadfly: what's your "non integer"?
<rawtaz>
terrellt: ERROR: Could not find a valid gem 'sass' (~> 3.3.0) in any repository
<rawtaz>
that is what i get.
<mostlybadfly>
that was a typo, i actually had a string in there before jhass
<mostlybadfly>
"be"
davy_ has quit [Remote host closed the connection]
<havenwood>
mostlybadfly: ArgumentError: comparison of String with 0 failed
<havenwood>
mostlybadfly: line 5
<havenwood>
err, line 6
<jhass>
mostlybadfly: ^ get that too, you want to swap the two return statements
Xeago has joined #ruby
<LadyRainicorn>
Also raise is your friend.
<terrellt>
rawtaz: Ah, because 3.3 is release candidates.
jph98 has joined #ruby
<mostlybadfly>
havenwood: jhass in that example when i do first_n_primes(10) i get a successful breakdown
mehlah has quit [Quit: Leaving...]
<mostlybadfly>
the issue is when I try to use a non integer it seems to just time out but i want it to return that
<LadyRainicorn>
And initializing local variables with ||= makes God kill kittens.
<havenwood>
mostlybadfly: Asides, but line 10 there is no reason for `||=`, since it will never be already set just use `=`. Line 13 use #each for iteration, not `for`. Line 16, the last line of a method implicitly returns, drop the `return`.
Mon_Ouie has quit [Ping timeout: 240 seconds]
<rawtaz>
terrellt: yeah probably :)
<rawtaz>
ill just install the damn specific RC and be done with it
<rawtaz>
ive had so much trouble today :(
simono has joined #ruby
<mostlybadfly>
ok havenwood i'll update those. i'm learning and i'd imagine the tutorial will get me to the implicit return
<mostlybadfly>
however how do i get the appropriate return value when i don't insert an integer?
sriehl has joined #ruby
<LadyRainicorn>
Also, Prime.take(n)
<jhass>
mostlybadfly: as we said it errors out for us with a string
<jhass>
mostlybadfly: what's your ruby version?
<havenwood>
mostlybadfly: Swap the order of lines 6 and 7 so you're not comparing stuff to 0. Also, do you really mean Integer here (use Fixnum unless you actually want Bignum too, as both inherit from Integer).
Astralum has quit [Quit: Leaving]
<mostlybadfly>
oh i know it does but shouldn't it return "n must be an integer"?
<mostlybadfly>
so it is intentionally giving bad code
<havenwood>
mostlybadfly: What is the source of the code? A for loop in Ruby is scary.
<havenwood>
mostlybadfly: aha
<mostlybadfly>
oo darn sorry
madb055 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<mostlybadfly>
i just realized that jhass and havenwood sorry!
<mostlybadfly>
switching them now
reset has joined #ruby
madb055 has joined #ruby
gregf has joined #ruby
NovapaX has joined #ruby
yubrew has joined #ruby
<RubyPanther>
for will bite you because it is sugar for #each and the stack trace will say "#each" and you'll be like, "where?"
kenneth has joined #ruby
<havenwood>
mostlybadfly: What version of Ruby are you on?
<mostlybadfly>
1.9.3
Xuisce has quit [Quit: Leaving...]
ubyte has quit [Quit: Leaving...]
xerox357 has quit [Remote host closed the connection]
<havenwood>
mostlybadfly: I can't think of any reason your code should be hanging with a String.
devyn has quit [Ping timeout: 264 seconds]
xerox357 has joined #ruby
shinobi_one has joined #ruby
<rawtaz>
RubyPanther: Gemfile and bundler,, im curious if that is applicable to my scenario. what i need is `sas` working in the system, as it is used by other software to compile some SCSS files. does it make sense to (if its even possible) create a Gemfile for the project at hand, and have bundler install stuff? i mean, arent they installed in the system rather than locally (locally like bower and npm does it locally)? if yes, then i imagine having multiple pro
shinobi_one has left #ruby [#ruby]
<rawtaz>
.
yfeldblum has joined #ruby
andy___ has joined #ruby
shinobi_one has joined #ruby
<LadyRainicorn>
Why do we even have for?
momomomomo has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
<havenwood>
LadyRainicorn: So we can never use it! :P
<havenwood>
LadyRainicorn: Same reason as having class variables. So you know when code is bad.
<LadyRainicorn>
I don't think I've ever even seen it used save in terrible code.
mourest has quit [Read error: Connection reset by peer]
<havenwood>
:P
andy__ has quit [Read error: Connection reset by peer]
young has joined #ruby
<rawtaz>
RubyPanther: regarding the latter, i mean like project A wanting to install version X, project B wanting to install version Y, etc. if theyre local, that would be fine, but if not then i imagine there will be conflicts in the system
<LadyRainicorn>
Haha, class variables are occasionally useful, sometimes.
yubrew has quit [Ping timeout: 240 seconds]
<havenwood>
LadyRainicorn: meh
bricker has joined #ruby
andy__ has joined #ruby
sigurding has quit [Quit: sigurding]
<LadyRainicorn>
But is there literally any circumstance in which one would use for?
<havenwood>
LadyRainicorn: Yet would be better to not have them and architect so as not to use them, imho.
mikepack has joined #ruby
<havenwood>
LadyRainicorn: nope
fgo has joined #ruby
Xuisce has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ubyte has joined #ruby
<mostlybadfly>
Yay got it now. Thanks all :)
xerox357 has quit [Ping timeout: 240 seconds]
nifty has joined #ruby
Altonymous has joined #ruby
nhmood has quit [Quit: Connection closed for inactivity]
recursive has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
Rakden has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<Altonymous>
Given I have a multi-dimensional array of ranges of ip's … {id, start_ip, end_ip} and I am given an ip. I want to find the id for the given ip in the multi-dimensional array what would be the best way to do this?
timonv has joined #ruby
soheil has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<atmosx>
hello
no0code has joined #ruby
<havenwood>
hi
mark_locklear has joined #ruby
<atmosx>
Altonymous: hashes
xerox357 has quit [Remote host closed the connection]
cs02rm0 has joined #ruby
<jhass>
Altonymous: hmm .map {|id, a,b| [id, a..b] }.find{|_, range| range.cover? ip }.first ? but yeah probably sane to build a hash in the first place
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Altonymous>
I am given the multi-dimensional array as well
<Altonymous>
so I could convert it to a hash.. just rather not take the hit of doing so
<RubyPanther>
rawtaz: You should absolutely use a Gemfile for that. With bundler instead of doing require by hand, you have bundler call it, and can handle different installed versions
thiagolc has joined #ruby
<Altonymous>
I mean I can think of multiple ways of doing this.. I'm just trying to find an efficient way of doing it… or as efficient as I can given what I have..
afex has joined #ruby
codabrink has joined #ruby
<rawtaz>
RubyPanther: yeah, but how would the different projects' tools be able to call the right `sass`? after all, they just run it as a regular shell command
<RubyPanther>
rawtaz: they would run `bundle exec sass`
andy__ has quit [Read error: Connection reset by peer]
<rawtaz>
RubyPanther: there's no ruby code running sass. im using the sass command/binary
<LadyRainicorn>
Construct a tree matching the first shared bits of the IP range, then put your range as a leaf on that branch
<rawtaz>
RubyPanther: ok, and bundle would then look at the local folder for a Gemfile with version info about what to use?
<LadyRainicorn>
Then search for the most specific branch matching a given IP, and check all the leaves there for coverage
<RubyPanther>
right, there will be a Gemfile.lock after having run bundle install
recurrence has joined #ruby
andy__ has joined #ruby
<RubyPanther>
and that will tell it which one to require
hiyosi has quit [Ping timeout: 265 seconds]
<atmosx>
Altonymous: the correct way to do it is probably to create a Module (or a class) and handle everything in there. Initialize your variables and so on.
elaptics is now known as elaptics`away
<atmosx>
Altonymous: Once you have a working copy, you can discuss here on in the ML the approach and optimization, if you think it's needed.
<rawtaz>
RubyPanther: ok cool. but the bundles/versions/gems are still installed in a global place right?
<Altonymous>
Let me give that some thought LadyRainicorn I see what you're thinking.
<rawtaz>
seems like grunt-contrib-sass has support for using bundle exec :)
<RubyPanther>
rawtaz: Normally, yes, and if you install them with "gem install" first, then "bundle install" will just find them and use the system one. And you have the flexibility to install locally later if you want.
<rawtaz>
ok
<RubyPanther>
sass is a popular rails thing, so it is almost always used with bundler
sriehl has left #ruby [#ruby]
tonni has quit [Read error: Connection reset by peer]
<rawtaz>
yeah. sounds good. would it make more sense to specify that the gems should be installed locally though? like npm modules. im not sure what the gain would be really
<LadyRainicorn>
You may want to look at the code for iptables or pf. They may or may not have more efficient solutions than my proposal.
FOSScookie has joined #ruby
Jake232 has joined #ruby
davy_ has joined #ruby
<Altonymous>
yeah when you started talking about trie's I started thinking iptables.. not sure why my first thought wasn't to go there :P
<Altonymous>
sometimes when you are in too deep...
no0code has quit [Quit: Lost terminal]
SHyx0rmZ has joined #ruby
dorei has joined #ruby
frog0909 has joined #ruby
<Altonymous>
thanks again LadyRainicorn
sepp2k has joined #ruby
timonv has quit [Remote host closed the connection]
lewix has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
tonni has joined #ruby
<RubyPanther>
rawtaz: usually "global" makes sense, especially since "global" is really normally in userspace, eg, rvm/rbenv/chruby
<RubyPanther>
actually bundler handling the versions properly is what made it so we don't need "gemsets" or app-local gems
thiagolc has quit [Remote host closed the connection]
leonidlm has joined #ruby
xerox357 has joined #ruby
<dorei>
hello
<dorei>
could someone exaplain to me: class Post < Sequel::Model(:my_posts) ?
<rawtaz>
RubyPanther: makes sense totally. just wrote the Gemfile. installing the gems now
jjbohn has quit [Quit: Leaving...]
inversesquarelaw has joined #ruby
<rawtaz>
hmm does bundler *really* need sudo rights? why?
atno has quit [Remote host closed the connection]
<RubyPanther>
dorei: Post subclasses the return value of the method ::Sequel::Model
<rawtaz>
it's for the bundler RubyGems apparently
<RubyPanther>
rawtaz: only for a system ruby, but not for a rvm/rbenv/chruby ruby
<dorei>
RubyPanther: that i mean i can do class MyClass < SomeClass.somemethod(x) ?
timonv has joined #ruby
<jhass>
dorei: if that method returns a Class object
<rawtaz>
hm. i already do have `rvm` installed. now i have just the source and one gem in my Gemfile, and ran `bundle install` - does this mean it's trying to install a system ruby?
<RubyPanther>
dorei: Sure
<dorei>
w0w :)
<rawtaz>
not sure i understand why it is asking for higher privs
zachallett has quit [Remote host closed the connection]
<RubyPanther>
rawtaz: for example if you have bundler installed in a system ruby but not in rvm, then it would find the wrong one
zcreative has joined #ruby
nateberkopec has quit [Quit: Leaving...]
joelroa has joined #ruby
<joelteon>
I'm running my web process in dev using foreman and it randomly kills the web worker
<joelteon>
"INFO -- : gracefully stopping all workers" is what it says
zcreative has quit [Client Quit]
<joelteon>
anybody have any idea why this is happening? apparently it means they're restarting, but they don't actually restart
tedstriker has quit [Quit: Anti-Fraping status set.]
nateberkopec has joined #ruby
<rawtaz>
RubyPanther: ok, so bundler is installed in the system ruby ecosystem, so to say. should i have installed it differently to get it in the rvm one?
<RubyPanther>
rawtaz: basically, once you're using rvm nothing goes into the system ruby
atno has joined #ruby
<RubyPanther>
it is safely removed
<rawtaz>
seems to make sense. i mena if i run ruby -v then i get the version that `rvm list` reports as well
<rawtaz>
but in that case, why is bundler apparently using the system ruby (based on the fact that it asks for the password)
forced_request has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 240 seconds]
wiku5_ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<havenwood>
rawtaz: gem install bundler
bean has joined #ruby
<RubyPanther>
>> def klassyish; Object.const_set %w! k l a s s !.sort{rand<=>rand}.join.capitalize, Class.new end ; class Foo < klassyish ; end ; Foo.superclass
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rawtaz>
havenwood: that is what i did. and it installed fine. but now that i run `bundle install` to install whats in my Gemfile, bundler asks for my password and high privs. as i understand it this has to do with it trying to install in the "system ruby" ecosystem, rather than e.g. the rvm one. so im puzzled why it would do that, especially since `ruby -v` gives me the same version that `rvm list` does.
mercwithamouth has quit [Ping timeout: 240 seconds]
tacit7 has joined #ruby
<RubyPanther>
The difference between a Perl WTF and a Ruby WTF: the Perl you know you don't know what it does. The Ruby looks... almost readable. Almost.
andikr has quit [Read error: Connection reset by peer]
<havenwood>
rawtaz: did you do an (ill-advised) system install of RVM?
alex88 has quit [Quit: Leaving...]
<havenwood>
rawtaz: There's also a helpful RVM-specific channel, #rvm.
<RubyPanther>
does rvm require some trick like cd . before it finds new gem commands?
<rawtaz>
havenwood: god knows if i did or not.
tonni has quit [Read error: Connection reset by peer]
<RubyPanther>
in rbenv I would `rbenv rehash` after gem install
* havenwood
uses chruby.
brunops has joined #ruby
bean has quit [Client Quit]
<rawtaz>
havenwood: i simply followed the install instructions on the rvm website :)
<havenwood>
rawtaz: If you did a system install, nuke it and do a user install.
hiyosi has joined #ruby
danshultz has quit [Remote host closed the connection]
sparrovv has joined #ruby
wedgeV has joined #ruby
tonni has joined #ruby
<havenwood>
rawtaz: I'd try #rvm then, see if they spot why permission escalation is being requested.
<havenwood>
rawtaz: What is your?: gem env gempath
zachallett has joined #ruby
<havenwood>
rawtaz: yeah, prolly #rvm is best if folk are around :)
shvelo has joined #ruby
<rawtaz>
havenwood: it is ~/.rvm/gems/ruby-2.1.1:~/.rvm/gems/ruby-2.1.1@global
shvelo has quit [Changing host]
shvelo has joined #ruby
MattStratton has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<havenwood>
so local, good
<havenwood>
i dunno
<rawtaz>
yeah this must be local
danshultz has joined #ruby
freerobby has quit [Quit: Leaving.]
<rawtaz>
i never tried to do system/multi-user, and everything points to it being local
tjr9898_ has joined #ruby
Mapley has quit [Changing host]
Mapley has joined #ruby
Mapley has quit [Changing host]
Mapley has joined #ruby
<RubyPanther>
if you use sudo for a user install, the permissions get messed up
tonni has quit [Read error: Connection reset by peer]
blooberr____ has joined #ruby
freerobby has joined #ruby
<havenwood>
rawtaz: Ask in #rvm, but something like: rvm fix-permissions ruby-2.1.1
<havenwood>
RVM is huge and has many, many options.
tjr9898 has quit []
mechanicles has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
<rawtaz>
i will do this. i will completely remove rvm, then any other ruby install in case there is one. then ill install the rvm one again, and try this again
shaileshg has quit [Quit: Connection closed for inactivity]
<havenwood>
rawtaz: To remove first `rvm implode` then delete ~/.rvm, though again prolly #rvm is advised.
MrJoshua has joined #ruby
<rawtaz>
although running bundle install now seems to not require password, how odd :)
<rawtaz>
havenwood: thanks
<havenwood>
rawtaz: or if it's working, that is nicer yet ;)
andy__ has quit [Read error: Connection reset by peer]
wwalker has left #ruby [#ruby]
<rawtaz>
yeah. i could go withthis, but would be nice to have it cleaned up. as in, having done the installations for sure without root privs
<rawtaz>
heh yeah it installed fine now. funny :)
Spami_ has left #ruby ["Leaving"]
shinobi_one has quit [Quit: shinobi_one]
andy__ has joined #ruby
<rawtaz>
however, a `bundle show sass` tells me it is in /Library/Ruby/Gems/1.8/gems/sass-3.3.0.rc.5 - that's not expected, right?
<rawtaz>
i mean thats the system ruby. its not the 2.1.1 i have in rvm
Hobogrammer_ has joined #ruby
Eiam has joined #ruby
jsilver-ipod has joined #ruby
<havenwood>
rawtaz: What do you get for?: which bundle
tacit7 has quit [Quit: Leaving.]
Eiam has quit [Client Quit]
<rawtaz>
/usr/bin/bundle
grvgr has quit [Quit: grvgr]
Hobogrammer has quit [Ping timeout: 240 seconds]
<havenwood>
rawtaz: And?: rvm current
<rawtaz>
heh, rvm seems to have blindly added its PATH line to every profile file it can think of. that's not very pretty
<havenwood>
(that is the command, right?)
<rawtaz>
uhm, oh, well.. rvm is gone now :D
<rawtaz>
sorry
<rawtaz>
im killing it all
<havenwood>
rawtaz: seems things somehow got pretty screwy
aaronmcadam has joined #ruby
jsilver-ipod has quit [Remote host closed the connection]
<rawtaz>
yeah
xaq has joined #ruby
grvgr has joined #ruby
xcv has quit [Remote host closed the connection]
grvgr has quit [Client Quit]
tacit7 has joined #ruby
yubrew has joined #ruby
decoponio has quit [Quit: Leaving...]
klaut has quit [Remote host closed the connection]
klaut_ is now known as klaut
maletor has quit [Quit: Computer has gone to sleep.]
sdwrage_ has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
bklane has quit [Remote host closed the connection]
sdwrage has joined #ruby
sdwrage_ has joined #ruby
binaryplease has joined #ruby
jjbohn has joined #ruby
xaq has quit [Remote host closed the connection]
jjbohn has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
jsilver-ipod has joined #ruby
randomnick_ has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
lfox has joined #ruby
fedesilva has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
<rawtaz>
hm there was probably less to it than i thought. i cant find any other ruby version on the system. not that i know where to look, but doing a `which` on all the ru* commands i have yields nothing other than the system one so..
* rawtaz
goes to install rvm again
reset has quit [Remote host closed the connection]
reset has joined #ruby
jsilver-ipod has quit [Remote host closed the connection]
unixpro1970 has joined #ruby
cs02rm0 has joined #ruby
wiku5_ has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
craigp has quit [Read error: Connection timed out]
Celm has joined #ruby
tedstriker has joined #ruby
Azulinho has joined #ruby
ktosiek has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
lw has joined #ruby
x77686d has quit [Quit: x77686d]
lodeston_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Hobogrammer has joined #ruby
postmodern has joined #ruby
ktosiek has joined #ruby
fraterlaetus has joined #ruby
Hobogrammer_ has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
casual has joined #ruby
afex has quit [Ping timeout: 240 seconds]
recursive has quit [Read error: Connection reset by peer]
Hobogrammer_ has joined #ruby
tacit7 has quit [Quit: Leaving.]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
Nirgali42 has quit [Ping timeout: 240 seconds]
simono has joined #ruby
maletor has joined #ruby
redlines has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
hiyosi has joined #ruby
redlines has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
pfg has joined #ruby
IceDragon has joined #ruby
mehlah has joined #ruby
mikepack has joined #ruby
Xeago has joined #ruby
yfeldblum has quit [Remote host closed the connection]
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
yfeldblum has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
EminenceHC has quit [Remote host closed the connection]
glebm has quit [Remote host closed the connection]
glebm has joined #ruby
grvgr has joined #ruby
Rainicorn has joined #ruby
Altonymous_ has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
Altonymous has quit [Ping timeout: 244 seconds]
akonny has quit [Quit: akonny]
Altonymous_ is now known as Altonymous
workmad3 has joined #ruby
rootshift has joined #ruby
jjbohn has quit [Quit: Leaving...]
LadyRainicorn has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 244 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah_ has joined #ruby
devyn has joined #ruby
lewix has quit [Remote host closed the connection]
jjbohn has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
FOSScookie has quit [Quit: Leaving.]
casual is now known as trentson
glebm has quit [Ping timeout: 244 seconds]
glebm has joined #ruby
mehlah_ is now known as mehlah
v0n has quit [Read error: Connection reset by peer]
Rainicorn is now known as LadyRainicorn
brunops has quit [Ping timeout: 244 seconds]
pierre1_ has joined #ruby
<Rakden>
I seem to be having trouble selecting elements with a : inside them using nokogiri css. I tried to backslash, but that didnt work. Is their a special way to do this I am missing?
tacit7 has joined #ruby
jjbohn has quit [Ping timeout: 244 seconds]
grvgr has quit [Quit: grvgr]
glebm has quit [Ping timeout: 240 seconds]
afex has joined #ruby
glebm has joined #ruby
chuk has joined #ruby
ephemerian has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
joelroa has joined #ruby
brunops has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
elux_ has joined #ruby
tacit7 has quit [Client Quit]
Blaze_Boy has quit [Quit: Blaze_Boy]
lagweezle has left #ruby [#ruby]
Rainicorn has joined #ruby
alvaro_o has joined #ruby
cs02rm0 has quit [Ping timeout: 252 seconds]
LadyRainicorn has quit [Disconnected by services]
glebm has quit [Ping timeout: 264 seconds]
MattStratton has quit [Ping timeout: 264 seconds]
chrisseaton has quit []
Rainicorn is now known as LadyRainicorn
joelroa has quit [Ping timeout: 240 seconds]
aaronmcadam has quit [Quit: Leaving...]
mehlah_ has joined #ruby
xaq has joined #ruby
wiku5_ has joined #ruby
bklane has joined #ruby
timonv has quit [Remote host closed the connection]
<toretore>
Rakden: xml or html?
jamesto11 has joined #ruby
mehlah has quit [Ping timeout: 244 seconds]
jamesto11 has quit [Client Quit]
binaryplease has quit [Quit: WeeChat 0.4.3]
mando has quit [Ping timeout: 240 seconds]
mehlah_ has quit [Read error: No route to host]
mehlah has joined #ruby
<LadyRainicorn>
Rakden: Those are CSS selectors, and would thus not be activated when finding elements with Nokogiri.
<LadyRainicorn>
There are no a:visited elements, for example.
maroloccio has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
<LadyRainicorn>
It's an a element in the DOM that has special CSS magic temporarily applied to it.
yfeldblum has joined #ruby
wiku5_ has quit [Client Quit]
Nirgali42 has joined #ruby
wiku5_ has joined #ruby
Mongey has quit [Quit: Mongey]
andy__ has quit [Read error: Connection reset by peer]
mehlah has quit [Read error: No route to host]
mehlah has joined #ruby
andy__ has joined #ruby
wiku5_ has quit [Client Quit]
wiku5_ has joined #ruby
Xuisce has quit [Quit: Leaving...]
ubyte has quit [Quit: Leaving...]
aryaching_ has joined #ruby
wiku5_ has quit [Client Quit]
wiku5_ has joined #ruby
chinkung has joined #ruby
glebm has joined #ruby
xerox357 has quit [Remote host closed the connection]
wiku5_ has quit [Client Quit]
cs02rm0 has joined #ruby
wiku5_ has joined #ruby
xerox357 has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
sigurding has joined #ruby
shinobi_one has joined #ruby
yubrew has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
fraterlaetus has quit [Read error: Connection reset by peer]
fraterlaetus has joined #ruby
rbartos has quit [Remote host closed the connection]
kung has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
<Rakden>
hmmmm
inversesquarelaw has quit [Ping timeout: 265 seconds]
chrisseaton has joined #ruby
<elux_>
im working on a gem that has runtime dependencies to can either be a mri version of a gem, or a jruby version of a gem.. how can i make the gemspec load the child dependeny depending on if running in jruby?
elux_ is now known as elux
rootshift has quit [Ping timeout: 240 seconds]
Jdubs has joined #ruby
rootshift has joined #ruby
<elux>
ive considered s.add_dependency('msgpack-jruby', ['~> 1.4.0']) if RUBY_ENGINE == 'jruby' and 'msgpack' for 'ruby' engine.. but i dont think this will work
io_syl has joined #ruby
<elux>
i might have to distribute a java and ruby version of the gem that will then specify those dependencies separately.. any suggestions?
nanoyak has joined #ruby
* Soulcutter
tries to remember what rspec does for rubinius
cs02rm0_ has joined #ruby
brandonjmckay has joined #ruby
<rawtaz>
ugh this is such a mess. i still have a ton of gems instaled in the system
yubrew has quit [Ping timeout: 264 seconds]
<rawtaz>
should i install gem using rvm, to make for a non-system gem ecosystem?
Xuisce has joined #ruby
jackneill has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
<Soulcutter>
rawtaz: ymmv, but I like rvm
<rawtaz>
Soulcutter: yeah. i installed rvm and then ruby in it. so ruby is all rvm now. then i installed bundler, but i guess that one was installed in and by the system `gem`
ubyte has joined #ruby
cs02rm0 has quit [Ping timeout: 240 seconds]
shabgard has quit [Quit: Aji maji la taraji]
<rawtaz>
i didnt know i had a system one, lol. so i guess what i want to do is make the rvm environment provide `gem` and for that one to handle all gems
<rawtaz>
(and perhaps also remove all gems i have in the system ruby environment)
<Soulcutter>
elux: looks like rspec puts some engine-specific stuff in the Gemfile but not the gemspec (guess it assumes those deps are going to get pulled in?)
t3ch has joined #ruby
<toretore>
you need to switch from the system ruby to the one installed with rvm
<t3ch>
hello all, why i dont get the same content when i use driver like: @driver = Selenium::WebDriver.for(:remote, :url => "http://localhost:12345")
Hamburglr has joined #ruby
<rawtaz>
toretore: yeah. but how?
<t3ch>
or like that: @driver = Selenium::WebDriver.for :phantomjs
<rawtaz>
toretore: should i install `gem` with rvm or such?
<t3ch>
it dont response the same
young has quit [Remote host closed the connection]
<toretore>
rawtaz: `gem` is part of the ruby installation
<toretore>
if you're using system ruby, you're using system gem
philcrissman has joined #ruby
<Soulcutter>
elux: I might just not use the rubygems dep for it, but detect it in your gem and print out a message that you need to dep
<toretore>
or your path is screwed up
<elux>
Soulcutter: yea that works too
subbyyy has joined #ruby
<elux>
thanks for the suggestion
pfg has joined #ruby
<Soulcutter>
elux: sometimes documentation and good error messages are about all you can do
chrisseaton has quit []
Xeago has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yarou has quit [Remote host closed the connection]
ctp has joined #ruby
jph98 has quit [Quit: jph98]
toasty_ has joined #ruby
toasty_ is now known as toastynerd
jjbohn has joined #ruby
jsilver has joined #ruby
jsilver-ipod has joined #ruby
<rawtaz>
shit what a huge mess
poguez__ has quit [Quit: Connection closed for inactivity]
<Soulcutter>
rawtaz: that is dependency management for you
<jsilver>
Error(474): #iphonedev Cannot join channel (+b) - you are banned
<jsilver>
jerknode
subbyyy has quit [Quit: none 0.4.2]
pfg has joined #ruby
carraroj has joined #ruby
jsilver-ipod has quit [Remote host closed the connection]
<Soulcutter>
jsilver: having trouble installing ruby locally?
<jsilver>
no, you?
<jsilver>
i just like eval.in
<jsilver>
its fun
wiku5_ has quit [Quit: WeeChat 0.4.1]
wiku5_ has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
wiku5_ has quit [Client Quit]
pfg has quit [Client Quit]
wiku5_ has joined #ruby
fgo has joined #ruby
CaddyShack has quit [Quit: Leaving]
pfg has joined #ruby
wiku5_ has quit [Client Quit]
wiku5_ has joined #ruby
wiku5_ has quit [Client Quit]
olivier_bK has joined #ruby
wiku5_ has joined #ruby
prc has joined #ruby
wiku5_ has quit [Client Quit]
<rawtaz>
ive done gem list --no-versions | xargs gem uninstall -aIx to uninstall all gems, but there's still local gems installed. how do i remove those?
wiku5_ has joined #ruby
wiku5_ has quit [Client Quit]
koell has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
morenoh159 has joined #ruby
pfg has quit [Client Quit]
fgo has quit [Ping timeout: 240 seconds]
Hobogrammer_ has quit [Ping timeout: 244 seconds]
dik_dak has quit [Ping timeout: 244 seconds]
lfox has quit []
phantomtiger has quit [Quit: phantomtiger]
DropsOfSerenity has joined #ruby
vlad_starkov has joined #ruby
jle` has joined #ruby
lfox_ has joined #ruby
x77686d has quit [Quit: x77686d]
<rawtaz>
hm. i think there's a problem, it seems that gem list thins there are a bunch of gems installed, but there are no folders for them in ~.gem/ruby/1.8/gems/
<rawtaz>
+/
xerox357_ has joined #ruby
<ddd>
because you're using RVM and you have gems in the global gemset for your RVM install.
<ddd>
see the rvm.io docs
<rawtaz>
no, i completely removed rvm, so its gone
Czupa has quit [Quit: Wychodzi]
<ddd>
and you completely restarted that terminal session, removed all sourcing lines, etc right?
<rawtaz>
doing it right now to make sure
young has joined #ruby
xerox357_ has quit [Remote host closed the connection]
xerox357_ has joined #ruby
Notte has joined #ruby
xerox357 has quit [Ping timeout: 240 seconds]
parus_ is now known as parus
aspires has joined #ruby
Hobogrammer has joined #ruby
<rawtaz>
yeah all rvm is gone now. the ~/.rvm, and any PATH stuff in profile files. restarted the terminal session. gem list lists a bunch of gems under "LOCAL GEMS"
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
jph98 has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
<ddd>
probably system installed gems then. whatever the path is for your system ruby
davy_ has quit [Read error: Connection reset by peer]
<rawtaz>
gem env says /Library/Ruby/Gems/1., ~/.gem/ruby/1.8 and /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
xaq has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
xaq has joined #ruby
<ddd>
check em all is all i can say. if you completely deleted rvm (dir and all) then its nothing rvm did. everything goes under ~/.rvm dir
aasmith has quit [Quit: aasmith]
jsilver-ipod has joined #ruby
<rawtaz>
yeah. what do you mean check them all? check the folders to see if they exist?
<ddd>
uder them, yes
xerox357_ has quit [Remote host closed the connection]
<rawtaz>
perhaps i should ask this instead; is there any tracking files holding state, or can i just simply remove the actual folders?
<ddd>
thats where they'd be installed. though most likely under the /Library one
<rawtaz>
the latter feel a but uncertain, i mean there's binaries installed and stuff as well i guess
xerox357 has joined #ruby
<ddd>
do a which <bin_name> from one of the gems
<ddd>
use that as a clue to track the others possibly
xerox357 has quit [Read error: Connection reset by peer]
xerox357 has joined #ruby
danshultz has quit [Remote host closed the connection]
<rawtaz>
there's for example /usr/bin/mongrel_rails and that gem is indeed in the /Library one. but if i do `gem list` then it lists it under "LOCAL GEMS". but if we ignore that and just conclude "no way, it IS a system one", and do `gem uninstall mongrel` it tells me "INFO: gem "mongrel" is not installed"
<rawtaz>
its like it mixed up local vs system
danshultz has joined #ruby
jsilver-ipod has quit [Remote host closed the connection]
timonv has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
jamesto11 has joined #ruby
sigurding has quit [Quit: sigurding]
<rawtaz>
would a silly restart possibly help maybe..
x77686d has joined #ruby
<rawtaz>
this is just weird
dik_dak has joined #ruby
jamesto11 is now known as jamto11
carraroj has quit [Quit: Konversation terminated!]
rbartos has joined #ruby
Hanmac has joined #ruby
pseism has left #ruby ["Leaving"]
sdouglas has joined #ruby
<rawtaz>
hm that mongrel one, and most the others, are installed in /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
aspires has quit []
Asher has quit [Quit: Leaving.]
<pipework>
mmm dat 1.8
<ddd>
that is MacOSX's default ruby. the *actual* system ruby
petey has joined #ruby
<rawtaz>
yes
<havenwood>
default until Mavericks at least
<pipework>
Why don't you upgrade your OS?
skaflem has quit [Quit: This computer has gone to sleep]
<havenwood>
rawtaz: Mavericks!
<rawtaz>
so why on earth does it tell me that there's a bunch of *local* gems when they are apparently not local
Hanmac1 has quit [Ping timeout: 240 seconds]
<ddd>
havenwood I was more referring to the /System portion rather than the specific ruby version in play
<havenwood>
ddd: aye, and 1.8 is still in that same place
<ddd>
because Local means installed on the machine
<pipework>
rawtaz: Local to your computer.
<rawtaz>
pipework: because there's a ton of work involved in upgrading and setting up all my software again, so im postponing that until i need a new machine anyway. this one works fine so i havent had a reason to change :)
rococo has joined #ruby
<havenwood>
as in not remote to your computer
<pipework>
^
<rawtaz>
pipework: oooooh, that could explain it =D
<rawtaz>
lol, really
<ddd>
havenwood thought Mavericks removed 1.8 completely and set 1.9.2 as default
aspires has joined #ruby
xcv has joined #ruby
<havenwood>
ddd: nope
<ddd>
damn
* rawtaz
goes to reassess
<havenwood>
ddd: Left 1.8 in place (Homebrew still uses it, etc) and set 2.0 as default.
sdouglas has quit [Remote host closed the connection]
<ddd>
ah
ringaroses has joined #ruby
Jdubs has quit [Remote host closed the connection]
nifty has quit [Ping timeout: 240 seconds]
<havenwood>
ddd: ls /System/Library/Frameworks/Ruby.framework/Versions #=> 1.8 2.0 Current
<havenwood>
ddd: Current being a symlink to 2.0
phutch1n1 has quit [Ping timeout: 240 seconds]
<ddd>
right
tonni has joined #ruby
<ddd>
good to know, thanks for clarification
<havenwood>
de nada
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
Now for Homebrew to update to Ruby 2.0 already!!
aryaching_ has quit [Ping timeout: 264 seconds]
markisonfire has quit [Ping timeout: 264 seconds]
Jetchisel has joined #ruby
<havenwood>
2.1.1 \o/
pfg has joined #ruby
kirun has quit [Quit: Client exiting]
petey has quit []
<atmosx>
hahaha
mikepack has joined #ruby
markisonfire has joined #ruby
<olivier_bK>
i try to replace the number ( users_external : 31158, ) but sometimes the number is different do you have an idea how i can do that
tedstriker has quit [Quit: Anti-Fraping status set.]
shvelo has joined #ruby
x1337807x has joined #ruby
blasius has quit []
<rawtaz>
okay, so at this point i have no gems installed in my local home folder, but there are gems under /Library/Ruby/Gems/1.8/ which are not listed in `gem list` - any idea how to get rid of those? for example zurb-foundation-3.2.2 is in there, but both `gem uninstall zurb-foundation` and `gem uninstall zurb-foundation-3.2.2` says the gem "is not installed"
SegFaultAX has joined #ruby
<rawtaz>
im pretty certain that gem didnt come with the system :)
young has quit [Remote host closed the connection]
<havenwood>
sudo gem cleanup --all**
young has joined #ruby
madb055 has quit [Remote host closed the connection]
madb055 has joined #ruby
<havenwood>
rawtaz: You can alternatively go find the gems in GEM_HOME and delete them. Really though, best to simply ignore system Ruby and get chruby/RVM/rbenv working or use a Macports or Homebrew Ruby.
<havenwood>
rawtaz: Most OS X users leave system Ruby alone. Do update to Mavericks.
ringaroses1 has quit [Ping timeout: 252 seconds]
<rawtaz>
havenwood: that is what i am trying/aiming for.. ive installed rvm twice but it's been messy for whatever reasons. seems there's some cruft due to the system ruby
joelroa has quit [Ping timeout: 265 seconds]
gr33n7007h has quit [Ping timeout: 252 seconds]
<havenwood>
rawtaz: Tried #rvm yet?
<rawtaz>
havenwood: i will, but i have so insanely much software on this machine. it will take me days to upgrade, and i simply dont have that time
vlad_starkov has joined #ruby
<rawtaz>
havenwood: yes
agent_white has joined #ruby
ringaroses2 has quit [Ping timeout: 252 seconds]
<rawtaz>
havenwood: i just want to completely clean out all the ruby and gem installs i did previously, to make sure i dont have anything that cna interfere
gr33n7007h has joined #ruby
<havenwood>
rawtaz: Do you use Homebrew or Macports?
<rawtaz>
homebrew
<rawtaz>
uhm well i use various ones. homebrew when i have to, primarily pkgsrc
codezomb has joined #ruby
<rawtaz>
hmm, there's no --all to `gem cleanup`
jjbohn has quit [Quit: Leaving...]
fedesilv_ has joined #ruby
elux has left #ruby [#ruby]
<agent_white>
Afternoon
CpuID has quit [Quit: This computer has gone to sleep]
<havenwood>
rawtaz: It does all if you don't give it an arg.
<rawtaz>
yeah
deadlock_ has quit [Read error: Connection reset by peer]
hermanmunster has quit [Remote host closed the connection]
<codezomb>
just curious... What are peoples stance on nested classes? A file for each class, or are nesting multi line classes acceptable?
aspires has quit []
fedesilv_ has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<havenwood>
codezomb: Your directory structure should generally reflect your namespaces.
aspires has joined #ruby
<codezomb>
havenwood: that doesn't really answer the questions about inner classes within those namespaces :)
fedesilva has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
rezzack has joined #ruby
akonny has joined #ruby
andy___ is now known as Guest37606
<havenwood>
codezomb: Inner classes should be in subdirectories. I must not be understanding.
soulcake has quit [Ping timeout: 240 seconds]
<codezomb>
probably kind of a loaded question really. I was just working on a style guide for the company I work for, and a discussion came up.
<havenwood>
rawtaz: TEAR IT ALL DOWN!: sudo rm /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/*
<havenwood>
rm -rf
<havenwood>
rather
morenoh159 has quit [Read error: Operation timed out]
closer has joined #ruby
<rawtaz>
isnt that folder one that things are not installed to after the system is first installed? i.e. those are system files
<rawtaz>
that folder is not the one with the offending gems in it, but let me check which ones it has
<havenwood>
rawtaz: That is where those gems are.
maximski has joined #ruby
<havenwood>
rawtaz: Nothing was in that folder when the system was installed.
blueOxigen has quit [Ping timeout: 252 seconds]
<havenwood>
rawtaz: For 2.0 that isn't the case, because the stdlib is being gemified.
mikepack has quit [Remote host closed the connection]
<havenwood>
But you're not on Mavericks, so no matter.
<havenwood>
Nuke it.
mikepack has joined #ruby
<havenwood>
Then don't install gems on system Ruby. :P
gfunc has joined #ruby
timonv has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<rawtaz>
havenwood: no. that is the system default folder. if we take zurb as an example, the offending ones are in the other Library folder. please see http://pastebin.mozilla.org/4458834
aspires has quit []
mikepack has joined #ruby
aspires has joined #ruby
<havenwood>
okay, then kill them there too
toastynerd has joined #ruby
<rawtaz>
you seem to basically suggest i should rm -rf away
gfunc has left #ruby ["AndroIRC"]
<rawtaz>
are you sure there arent any state files that might be unhappy if i do that?
ixti has joined #ruby
<havenwood>
just the gems/ dir for 1.8
<havenwood>
be careful, but yes, that is what i suggest
<rawtaz>
brb
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
DropsOfSerenity has quit [Read error: Connection reset by peer]
bricker_ has quit [Quit: leaving]
_bart has quit [Read error: No route to host]
DropsOfSerenity has joined #ruby
_bart has joined #ruby
Urocyon is now known as sfiggins
b00stfr3ak has quit [Ping timeout: 240 seconds]
visof has joined #ruby
x77686d has quit [Quit: x77686d]
yfeldblum has quit [Ping timeout: 240 seconds]
jrhe has quit [Quit: Connection closed for inactivity]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
chipotle has quit [Quit: cya]
aaronmcadam has quit [Quit: Leaving...]
phantasm66 has quit [Quit: *sleeeep….]
brunops has quit [Ping timeout: 252 seconds]
inversesquarelaw has joined #ruby
tacit7 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
young has quit [Remote host closed the connection]
young has joined #ruby
alex88 has quit [Quit: Leaving...]
toastynerd has quit []
toastynerd has joined #ruby
seksifemale has quit [Ping timeout: 252 seconds]
yarou has quit [Remote host closed the connection]
morenoh159 has joined #ruby
kenneth has joined #ruby
sdwrage_ has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
DropsOfSerenity has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
seksifemale has joined #ruby
tacit7 has quit [Read error: Connection reset by peer]
DropsOfSerenity has joined #ruby
mary5030 has quit [Remote host closed the connection]
tacit7 has joined #ruby
MattStratton has joined #ruby
interactionjaxsn has joined #ruby
aspires has quit []
xerox357 has quit [Remote host closed the connection]
flowerhack has quit [Quit: Connection closed for inactivity]
Hobogrammer has quit [Ping timeout: 264 seconds]
reset has joined #ruby
xerox357_ has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
deadlock_ has joined #ruby
popl has quit [Ping timeout: 240 seconds]
Matriks has quit [Remote host closed the connection]
brunops has joined #ruby
<eka>
is there any way to make minitest fail fast? meaning to fail in the first error?
<eka>
sorry to *stop in the first error
zachallett has quit [Remote host closed the connection]
io_syl_ has joined #ruby
sailias has quit [Ping timeout: 269 seconds]
hasienda has joined #ruby
DropsOfSerenity has quit [Ping timeout: 244 seconds]
<Rakden>
What is the proper way to perform an xpath of only part of on xml document. Right now I am trying this and it obviously fails. puts doc.xpath(section, "//w:sdt/w:sdtContent/w:sdt").first.to_s
mary5030 has quit [Remote host closed the connection]
nickyslippy has joined #ruby
mary5030 has joined #ruby
webgen has quit [Ping timeout: 240 seconds]
<nickyslippy>
Hi, does anyone know a good book for counting averages and such on streams? like sliding windows etc, not just that but that "type of algorithms?" does not have to be ruby
localredhead has joined #ruby
Hobogrammer___ is now known as Hobogrammer
zachallett has joined #ruby
xerox357_ has quit [Remote host closed the connection]
xerox357 has joined #ruby
toastynerd has quit [Remote host closed the connection]
inversesquarelaw has quit [Quit: rm -rf /]
joelroa has joined #ruby
sdwrage has joined #ruby
sdwrage_ has joined #ruby
benzrf has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
sdwrage_ has quit [Remote host closed the connection]
sdwrage has quit [Remote host closed the connection]
<benzrf>
hey is unmarshalling arbitrary data a potential security risk
dblessing has quit [Quit: dblessing]
vlad_starkov has joined #ruby
maroloccio has joined #ruby
sdwrage_ has joined #ruby
sdwrage has joined #ruby
<rawtaz>
back
toastynerd has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
bricker has joined #ruby
zachallett has quit [Ping timeout: 265 seconds]
DropsOfSerenity has quit [Read error: Connection reset by peer]
afex has quit [Ping timeout: 240 seconds]
DropsOfSerenity has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
xerox357 has quit [Ping timeout: 240 seconds]
<bnagy>
benzrf: yes
<benzrf>
bnagy: how so ?
<bnagy>
there have been a litany of unserialize / unmarshall errors in many languages for many years
joelroa has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
<bnagy>
broadly a) You might not get what you expect b) You might get what you expect with side effects and c) You might hit a bug in the interpreter code
craigp has joined #ruby
<bnagy>
unserializers are notoriously tricky to write
<benzrf>
hmm
<benzrf>
well
<benzrf>
if i leave open a prog that will unserialize data from a public socket without auth
<benzrf>
could anything worse than a crash happen
<bnagy>
yes
<LadyRainicorn>
Yes.
tacit7 has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
<LadyRainicorn>
You will die a horrible death.
<benzrf>
:|
<benzrf>
what should i use TheNumb
<bnagy>
you risk arbirary remote code execution with the privs of your program
<benzrf>
o_o
<benzrf>
how so?
<benzrf>
*what should i use then
<LadyRainicorn>
and you will be put in a brazen bull.
<bnagy>
but if it's, say, linux there are like a billion local -> kernel bugs
<LadyRainicorn>
msgpack is nice.
<benzrf>
ok but can i serialize to<->from ruby objs
kaldrenon has quit [Remote host closed the connection]
<LadyRainicorn>
So is protocol buffers.
<LadyRainicorn>
No.
<bnagy>
you can, but you should never unserialize untrusted data
sdouglas has quit [Remote host closed the connection]
<benzrf>
;-;
<bnagy>
pretty much ever
<LadyRainicorn>
At least not arbitrary ones.
<benzrf>
b-but
<benzrf>
it's more wooork
<LadyRainicorn>
Why would you want to do that anyway?
<bnagy>
you can use safeJSON
<LadyRainicorn>
Just use msgpack/protobufs
<bnagy>
in theory that only supports basic types link ints and strings etc
<benzrf>
:{
<bnagy>
but tbh I just wouldn't
<bnagy>
all untrusted data I would take in a strict format and parse
<benzrf>
json is a strict format.... :I
<bnagy>
yeah, kinda
<benzrf>
is there hooks for recursively re-ruby-izing json data safely
<bnagy>
but people still seem to manage to screw it up
<benzrf>
i.e. i specify which classes n shit are OK to call into
<bnagy>
reconstruct your objects from something json-able ( at the very worst )
<bnagy>
ie dump their state in a way you can reconstruct the obj manually
tacit71 has joined #ruby
<bnagy>
don't trust any kind of automatic classed unserialize
interactionjaxsn has quit [Remote host closed the connection]
jjbohn has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack_ has joined #ruby
ndrei has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
fedesilva has joined #ruby
hobodave has quit [Ping timeout: 244 seconds]
ringaroses has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
jph98 has quit [Quit: jph98]
mindcake has quit [Client Quit]
mindcake has joined #ruby
rootshift has joined #ruby
poguez__ has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
DropsOfSerenity has quit [Read error: Connection reset by peer]
DropsOfSerenity has joined #ruby
iliketurtles has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
v0n has quit [Read error: Operation timed out]
wildroman2 has joined #ruby
wildroman2 has quit [Client Quit]
figgleberry has joined #ruby
fedesilva has quit [Ping timeout: 240 seconds]
poguez__ is now known as poguez
inversesquarelaw has joined #ruby
<rawtaz>
there must be something simply broken with the files in my /Library/Ruby/Gems/1.8 because i have tried everything there seems to be to try now, but `gem` simply refuses to remove them
young has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
<rawtaz>
it simply doenst know about them, and even with `gem uninstall -aIx -i /Library/Ruby/Gems/1.8 foo` it doesnt
radic has quit [Ping timeout: 265 seconds]
<rawtaz>
so yeah, i guess it's leaning towards just removing those files alltogether
cherishedbunny has joined #ruby
cherishedbunny has left #ruby ["cool"]
Jdubs has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 240 seconds]
blooberr____ has quit [Quit: Connection closed for inactivity]
young has quit [Read error: Connection reset by peer]
<rawtaz>
havenwood: just FYI, i managed to make `gem` uninstall the ones under the system library folder at least, by specifying the -i argument to uninstall :)
cs02rm0_ has quit [Ping timeout: 265 seconds]
brunops has quit [Ping timeout: 269 seconds]
nanoyak has joined #ruby
<rawtaz>
running that command now.
<rawtaz>
asap, captaion
<rawtaz>
-o
<apeiros>
uh, you shouldn't mess with /Library
axsuul has joined #ruby
<rawtaz>
apeiros: i completely agree with that and ESPECIALLY the darn /System/Library...
mary5030 has quit [Remote host closed the connection]
<rawtaz>
but guess what i discovered; that rvm or whatever other ruby install crap it is is actually doing stuff to the /System/Library... one, and also the `gem` does work in the /Library... one
<apeiros>
uh, no?
mary5030 has joined #ruby
<rawtaz>
uh, yes.
<apeiros>
rvm does not touch /System/Library
<rawtaz>
it sure does
<rawtaz>
or rather
nisstyre has joined #ruby
<rawtaz>
that OR something else that it initiates
kzrl has quit [Ping timeout: 264 seconds]
<rawtaz>
i can gather some data if you want
<apeiros>
I'm pretty sure you're quite wrong about that. you may check with #rvm, though
<apeiros>
or did you install rvm with sudo?
ninegrid has joined #ruby
<havenwood>
^
<rawtaz>
good point
<havenwood>
based on what he said ealier
brunops has joined #ruby
nickyslippy has quit [Quit: Page closed]
tedstriker has joined #ruby
<rawtaz>
no i didnt
<rawtaz>
that probably means you are right
<havenwood>
rawtaz: must nicer to go through gem -i indeed
<rawtaz>
i gotta check the timestamp again
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<apeiros>
then I'm absolutely sure it didn't mess with /System/Library. no matter your perceived observations.
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
<apeiros>
first off, because without sudo, it shouldn't even be possible to mess around there.
xerox357 has joined #ruby
<apeiros>
if it is possible at all without sudo, you probably already fucked your system up for good…
CpuID has quit [Client Quit]
<apeiros>
disk utility -> repair rights
CaptainJet has joined #ruby
<rawtaz>
the thing is that my `gem` is version 2.2.2, and that sure didnt come with the system. it was released on the 15th of february
<rawtaz>
i wonder if at some point i gave sudo rights to rvm
<rawtaz>
and somehow managed to not just install it locally
<rawtaz>
but like, i did the instructions on the site, for single uer
<rawtaz>
user*
<apeiros>
2.2.2 doesn't come with the OS, no
<rawtaz>
well whatever
<apeiros>
OS one is 2.0.3 on 10.9.2
<rawtaz>
i probably screwed something up, thats not impossible
<rawtaz>
aha
<rawtaz>
well this is the best i can do. there are no gems anymore in the system (probably killed a few of the defualt ones too) and the gem is 2.2.2 for some stupid reason
Shidash has joined #ruby
<rawtaz>
so i should go ahead and install rvm now
<rawtaz>
or perhaps what havenwood suggested
<havenwood>
rawtaz: maybe try RVM again
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<rawtaz>
havenwood: why brew instead of RVM? or did i misinterpret what you said, was it not a suggestion/opinion?
<havenwood>
rawtaz: you can restore default gems and revert to earlier RubyGems
<rawtaz>
apeiros: do you know if `gem` comes with the system?
<rawtaz>
havenwood: oh, how?
<havenwood>
rawtaz: it does
<rawtaz>
ok
<apeiros>
rawtaz: yes. I think back since 10.3 or 10.4
<apeiros>
but ruby was 1.8 up until I think 10.7
<havenwood>
rawtaz: before you install ruby-install/chruby or RVM, first revert RubyGems (one sec, gotta find the right version)
utek has joined #ruby
utek has left #ruby [#ruby]
brunops has quit [Ping timeout: 244 seconds]
<havenwood>
apeiros: (s)he's on pre-Mavericks
<apeiros>
in 10.9.2 it's ruby 2.0.0p247
<rawtaz>
havenwood: absolutely. thank you very much for your patience and help
danshultz has quit [Remote host closed the connection]
<rawtaz>
apeiros: im on an ancient 10.6 :)
* rawtaz
ducks
DropsOfS_ has joined #ruby
<apeiros>
anyway, generic advice: don't. touch. system ruby.
jjbohn has quit [Quit: Leaving...]
mansi has quit [Remote host closed the connection]
danshultz has joined #ruby
<shinobi_one>
never touch system ruby! all hail system ruby!
<rawtaz>
i probably botched it by now
mehlah has joined #ruby
ndrei has joined #ruby
<shinobi_one>
off with her/his head!
<rawtaz>
lol
<havenwood>
o/
mansi has joined #ruby
<rawtaz>
i do have backups of the system in case i need to restore at least
* apeiros
wonders whether a reinstall of the OS over the existing one would fix that
Guest37606 has quit [Read error: Connection reset by peer]
<rawtaz>
e.g. the gems folders
<bnagy>
rawtaz: it's fine. Just install a ruby properly with a sane version manager
<apeiros>
^
radic has quit [Ping timeout: 264 seconds]
<bnagy>
nothing on osx ever uses system ruby afaik
<shinobi_one>
bnagy: what about an insane version manager?
andy__ has joined #ruby
<apeiros>
chances that you run into issues due to a botched system ruby are slim
b00stfr3ak has quit [Ping timeout: 240 seconds]
<bnagy>
so it'll be b0rked, but just don't use it
<rawtaz>
bnagy: yeah that makes sense. all i really wanted to do here was to get rid of anything that could possibly interfere with my RVM
kevind has quit [Quit: kevind]
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DropsOfSerenity has quit [Ping timeout: 264 seconds]
<apeiros>
bnagy: problems - if (s)he'll have any at all - will be third party software which relies on a "stable" system ruby.
<rawtaz>
i did this because after installing RVM the old gem was still used, and it instaled things in the non-RVM space which didnt seem right
<havenwood>
like Homebrew
<bnagy>
hahah ohh brew
<rawtaz>
should one install gem with RVM or something like that? or does it come with the install of ruby?
evenix_ has joined #ruby
<bnagy>
</3
<havenwood>
bnagy: hehe
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bnagy>
why does it not use env?
<existensil>
rawtaz: just make sure you user using the rvm version of ruby
DropsOfSerenity has joined #ruby
<existensil>
and then install as normal using gem
<rawtaz>
existensil: yeah
<havenwood>
bnagy: they hard link to 1.8, even on Mavericks
<existensil>
no sudo
<havenwood>
bnagy: system 1.8
<bnagy>
hahaha hahahah
DropsOfS_ has quit [Read error: Connection reset by peer]
<existensil>
rvm current to make sure you're really on an rvm ruby
<havenwood>
existensil: I don't think he has RVM installed yet, post implode.
<bnagy>
rvm implode ftw
mansi_ has joined #ruby
<rawtaz>
havenwood: doing it now
<havenwood>
rawtaz: So you have no version manager at all installed right now, right?
glebm has joined #ruby
<rawtaz>
havenwood: correct. rvm is completely gone
<rawtaz>
and there's no ruby in brew either
<havenwood>
rawtaz: not that it matters if you roll your 1.8 RubyGems back
<existensil>
oh. heh.
<havenwood>
rawtaz: there is a brew ruby
xibalba has joined #ruby
mansi has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 240 seconds]
<havenwood>
rawtaz: you can install it with: brew install ruby
<rawtaz>
yeah i mean it's not installed here on this machine by brew
radic has joined #ruby
<rawtaz>
sorry
<havenwood>
rawtaz: ah, gotcha
charliesome has joined #ruby
<bricker>
brewby
brunops has joined #ruby
funburn has joined #ruby
claymore has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
evenix_ has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<havenwood>
rawtaz: Hope RVM works for you now! You should update to Mavericks when you have the time. :)
<havenwood>
10.6 is ooooold
mikepack_ has quit [Remote host closed the connection]
<rawtaz>
havenwood: ok well it seemed to have worked. it didnt reinstate the /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems folder contents (it's empty), but there's a /Library/Ruby/Gems/1.8/gems/rubygems-update-1.3.6 that was created by it
<rawtaz>
yeah i truly will
<havenwood>
rawtaz: yeah, that was just the revert on RubyGems
<rawtaz>
or if they release an even more privacy-invading OS by the time i get that machine, i'll probably switch to another OS :<
Hobogrammer has joined #ruby
<rawtaz>
ooooh
<rawtaz>
i see. gem is now 1.3.6, right
<rawtaz>
cool man
<rawtaz>
i like that, cuz then i can tell whether the `gem` i use soon is the right one
<rawtaz>
now for the third run of RVM :D
sdouglas has joined #ruby
<bnagy>
dooon't doo it
DropsOfSerenity has quit [Ping timeout: 244 seconds]
mansi_ has quit [Read error: Connection reset by peer]
<bnagy>
just use ruby-install
<rawtaz>
havenwood: i dont thikn you answered that (or i missed it), was there any pros/cons to the brew ruby vs RVM?
<rawtaz>
like, why not RVM?
<bnagy>
or rbenv, but chruby / ruby-install has the mindshare now
<bnagy>
rvm is nuts
<rawtaz>
bnagy: hmm
mansi has joined #ruby
<rawtaz>
so why are there a ton of different rubies :P
sski has quit [Remote host closed the connection]
<bnagy>
rubies or version managers?
<havenwood>
rawtaz: I <3 ruby-install/chruby. If you want one and only one Ruby, `brew install ruby` and setup RubyGems and your PATH manually.
<rawtaz>
i guess the latter
<bricker>
+1 to chruby/ruby-install
axsuul has quit [Read error: Connection reset by peer]
sski has joined #ruby
rubyracer89 has joined #ruby
fridim__ has joined #ruby
<bnagy>
rvm came first afaik and it's like 'lol how do I unix ^.^'
afex has quit [Ping timeout: 264 seconds]
<rawtaz>
where will rubygems install itself?
<rawtaz>
haha nice
<bnagy>
then rbenv came and said 'just use shims, son, it's how update-alternatives does it'
<havenwood>
rawtaz: RVM is > 20,000 lines of code, bites of a lot, and supports old system and ancient Rubies. While chruby is 100 lines of code and just switches Rubies.
DropsOfSerenity has joined #ruby
<bnagy>
then chruby came and said 'shims are cool and I'ma let you finish, but PATH switching is the best method ever'
DropsOfSerenity has quit [Max SendQ exceeded]
DropsOfSerenity has joined #ruby
<rawtaz>
havenwood: cool. sounds more intersting then.
dayepa has quit [Quit: dayepa]
<havenwood>
rawtaz: Modern Rubies come with RubyGems.
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rawtaz>
i dont think i have a need for more than one ruby version. all i want to do is run sass :D
dingus_khan has joined #ruby
<bnagy>
use ruby-install anyway
<bnagy>
makes the updates easier
<rawtaz>
so perhaps then i should just go with brew's ruby, cuz the chruby you talk about is just for maintaining multiple versions i take it
Avahey has joined #ruby
htaccess_ has joined #ruby
<havenwood>
rawtaz: yes, chruby is for switching between arbitrary versions installed wherever by correctly setting env vars
Shidash has quit [Ping timeout: 244 seconds]
akonny has quit [Quit: akonny]
sski has quit [Ping timeout: 244 seconds]
<toretore>
invest some time in setting up a version switcher, it will be worth it
<shinobi_one>
my rubygems bring all the boys to yard
<htaccess_>
if i declare a variable outside of a method, why can i not use that variable inside the def? im getting a NameError undefined local variable or method
<bnagy>
I think perl just uses all globals because yolo
<toretore>
rawtaz: and what's stopping you?
<shinobi_one>
htaccess_: those are called global variables that exist everywhere, they also exist in ruby
ner0x has joined #ruby
<rawtaz>
toretore: nothing is going to stop me from that :P but i wasnt sure what you were referring to when you said ruby-install alone wont solve my "problem"
<rawtaz>
i.e. what won't it solve
Xuisce has quit [Quit: Leaving...]
<toretore>
well it doesn't sound like you have a problem then
axsuul has joined #ruby
axl_ has quit [Quit: axl_]
<rawtaz>
hehe yeah i might not have
axsuul has quit [Max SendQ exceeded]
<rawtaz>
we'll see
klaut_ has joined #ruby
axsuul has joined #ruby
grzywacz has quit [Quit: :wq]
axsuul has quit [Max SendQ exceeded]
angoragoats has joined #ruby
joelroa has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
xaq has joined #ruby
<shinobi_one>
htaccess_: perl also has block scopes in which the variable doesn't exist outside of them
toastynerd has quit [Remote host closed the connection]
angusiguess has joined #ruby
<rawtaz>
oh nice, ruby-install uses homebrew for deps
<htaccess_>
shinobi_one: sure i wasent expecting variables declared inside a function to exist outside of it, just the other way round
Notte has quit []
sski has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<shinobi_one>
htaccess_: those are called global variables in most programming languages, and are generally not considered good to use
baordog has quit [Remote host closed the connection]
Mongey has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
Schmidt has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
enebo has quit [Quit: enebo]
geggam has quit [Remote host closed the connection]
<shinobi_one>
htaccess_: ruby's concept of variable scoping is much like other object oriented programming languages
crystal77 has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
joelroa has quit [Ping timeout: 264 seconds]
yoshokatana has joined #ruby
xerox357 has quit [Remote host closed the connection]
j0wker has quit [Ping timeout: 240 seconds]
andy__ has quit [Remote host closed the connection]
xerox357 has joined #ruby
timonv has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: Computer has gone to sleep.]
<yoshokatana>
I have a potentially extremely noobish question, but I can't find an answer. If I have an array of objects, what's the easiest way to match a string to a property in those objects? ( I know about array.include?(object), but that's not really the answer)
mansi has quit [Remote host closed the connection]
<shinobi_one>
yoshokatana: you're curious about the if l exists in current_labels, remove it part?
seich- is now known as seich
<yoshokatana>
shinobi_one: yeah
ukd1 has joined #ruby
yfeldblu_ has joined #ruby
<yoshokatana>
I feel like there's a faster way to do it that loop through the strings, loop through the hashes, check the string to hash.name
<yoshokatana>
centrx: that...might be it?
rococo has joined #ruby
<bnagy>
you only want to check the name, not the url?
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
<yoshokatana>
yep, I only care if the string (l) matches the name
mikepack has joined #ruby
brunops has quit [Ping timeout: 244 seconds]
<centrx>
Ruby is very expressive
andy__ has joined #ruby
rococo has quit [Client Quit]
speakingcode has joined #ruby
<bnagy>
wait, and what do you want to do with that hash ( that has a :name which is in label_toggles ) ?
<bnagy>
throw the whole thing away?
<centrx>
!~
<centrx>
=~
b00stfr3ak has quit [Ping timeout: 265 seconds]
<shinobi_one>
yoshokatana: where are you trying to "remove" it from from?
<shinobi_one>
current_labels ?
<yoshokatana>
if the string matches the :name, I want to call a function (remove_label())
randomnick_ has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 265 seconds]
rudisimo has quit []
momomomomo has quit [Quit: momomomomo]
workmad3 has quit [Ping timeout: 244 seconds]
kennym1 has joined #ruby
<yoshokatana>
but come to think of it, I should batch the add_label() and remove_label() functions since they're api calls
DrShoggoth has quit [Quit: Leaving]
BackEndCoder has quit [Read error: Connection reset by peer]
<shinobi_one>
current_labels.delete(l) if current_labels.include?(l)
<bnagy>
current_label.each {|this_label| if label_toggles.include? this_label[:name]; # do stuff
andrewlio has quit [Quit: Leaving.]
kennym2 has joined #ruby
mikepack has quit [Remote host closed the connection]
<yoshokatana>
ok, if the label matches :name, remove it from the label_toggles array
<yoshokatana>
that would be the fastest thing to do, I think
<bnagy>
the the label[:name] is in the label_toggles array, do whatever
brunops has joined #ruby
<bnagy>
*if the
<shinobi_one>
er
xaq has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
<yoshokatana>
hmm. if I'm iterating through an array and remove an item, does that mess up the loop? I would assume it does
kennym has quit [Ping timeout: 252 seconds]
<bnagy>
no, but don't
<yoshokatana>
ok
chridal has joined #ruby
<bnagy>
if you want to modify the current_labels array use eg select
Schmidt has joined #ruby
<rawtaz>
so now that i have ruby-install installed and having installed the latest ruby with it, and also have chruby installed, amirite that in order for ruby in my system to always be the latest one, i should simply put chruby ruby-2.2.1 in my .zshrc? it's not more magic than that i would think
<chridal>
If I was to create a restful web API for Ruby, would Sinatra be the best way to go?
lewix has joined #ruby
<yoshokatana>
bnagy: what's this_label in your code?
<bnagy>
it's a block variable. Each elem of current labels will get a turn being this_label
<postmodern>
rawtaz, if you want to override system ruby, installing into /usr/local is also a viable option
<havenwood>
rawtaz: either that in your .zshrc or use chruby_auto and create a ~/.ruby-version file with `ruby-2.1.1` in it
<yoshokatana>
bnagy: oh cool
<chridal>
Or are there other ways of going about a REST API w/o using Sinatra?
kennym1 has quit [Ping timeout: 265 seconds]
<rawtaz>
postmodern: well the rubie is in ~/.rubies, and it doesnt really matter for me
mansi has quit [Remote host closed the connection]
<rawtaz>
i guess it might make more sense to put it in /usr/local but meh
<postmodern>
rawtaz, yeah it's just that /usr/local is in your PATH by default
<rawtaz>
thats a good point
<rawtaz>
lets go that route
bklane has quit [Quit: Leaving...]
<postmodern>
rawtaz, but chruby sets GEM_HOME to ~/.gem/ so `gem install` won't require sudo or --user-install
afex has joined #ruby
kennym2 has left #ruby [#ruby]
sentinal8473 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rawtaz>
right
DropsOfS_ has joined #ruby
DropsOfSerenity has quit [Ping timeout: 240 seconds]
<bnagy>
chridal: there are probably a dozen ways, but 'best' is very subjective
<bnagy>
sinatra is probably a pretty solid choice for a simple rest thing, probably what I'd use
<bnagy>
but I don't build web stuff except in dire emergencies
<havenwood>
chridal: there are many ways, sinatra is nice
<chridal>
It's actually supposed to be a backend for an app.
<chridal>
I need a REST API that can serve JSON data to the applications on Android and iOs
<yoshokatana>
bnagy: last question: that code should be in the label_toggles.each do |l| block, right?
<bnagy>
yes, that is what they do
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rawtaz>
postmodern: would be cool if there was a 'latest' or similar argument so one can tell it to just use the latest/highest version of the installed rubies
<havenwood>
chridal: Rails, Sinatra, NYNY, Ramaze, Camping, Scorched, pure Rack, or one of them paired with Grape.
<chridal>
havenwood: Thanks. that's exactly what I was looking for :D
<rawtaz>
so one can put that in .zshrc
brianpWins has quit [Quit: brianpWins]
<havenwood>
rawtaz: For ruby-install or chruby you mean?
<chridal>
will research these.
<bnagy>
yoshokatana: the second thing, with the reject, gives you a new array made up of all the array elems where the name is NOT in the toggles array
<rawtaz>
havenwood: i mean for chruby
jcs222 has joined #ruby
<postmodern>
rawtaz, chruby uses the last lexical match
<postmodern>
rawtaz, so in theory `chruby ruby` should pick the latest
<rawtaz>
oh. so just `chruby ruby` then
<rawtaz>
ok cool
<yoshokatana>
ohh it just clicked for me. thanks
<postmodern>
rawtaz, but there's issues with lexical sorting vs. version sorting
<rawtaz>
that's a later problem :-)
* havenwood
pokes JRuby with a stick.
<bnagy>
postmodern: have you played with crabstone?
<havenwood>
1.7.111 (repeating of course)
rootshift has joined #ruby
<postmodern>
bnagy, not yet but it's on my radar
tedstriker has quit [Quit: Anti-Fraping status set.]
<bnagy>
excellent
<bnagy>
maybe then I can trick you into maintaining it :D
young has joined #ruby
<postmodern>
bnagy, was looking for an arm version of udis86, then finally saw capstone get released
<rawtaz>
do you guys think it's safe to erase my entire ~/.gem just to start from scratch? theres a ruby/1.8/ folder with stuff in, and a specs folder
<bnagy>
yeah we got both kinds of Arm. Country AND Western
<rawtaz>
i suppose none of this was installed by ruby-install and/or chruby.
<postmodern>
rawtaz, not unless ~/.gem/credentials exists
<bnagy>
~/.gem would have been installed by a version manager for sure
tedstriker has joined #ruby
davy_ has quit [Read error: Connection reset by peer]
l3ck has joined #ruby
<rawtaz>
so unless it was installed by the rubygems command havenwood gave me earlier its probalby not used
<rawtaz>
postmodern: you mean taht if that file is not there, it should be safe?
<postmodern>
rawtaz, correct
sdwrage_ has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
<rawtaz>
it sure isnt
<havenwood>
rawtaz: if you were a gem author you might have your rubygems api key stored there
young has quit [Read error: Connection reset by peer]
<rawtaz>
just those two dirs
<rawtaz>
i see
brianpWins has joined #ruby
<bnagy>
postmodern: also in 2.1 he's broken out the libs per arch so it's small for embedded work
rbartos has quit [Remote host closed the connection]
axsuul has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<bnagy>
I'm looking for SOMEONE to write some ruby examples / toy tools ;)