<jcrawford>
right so why when you do puts p it puts out the type string?
<jcrawford>
that's what i am not understanding
_64k has joined #ruby
horofox has quit [Client Quit]
<mpfundstein_home>
in the first
<mpfundstein_home>
iteration
<mpfundstein_home>
type is a string
<mpfundstein_home>
than an array
<mpfundstein_home>
than a string
<mpfundstein_home>
change puts p into puts p.class
mercwithamouth has joined #ruby
<jcrawford>
so the first each loops oever EVERY key AND value in the hash, not just the keys like I would have expected
<jcrawford>
i am coming from php so this is a bit awkward for me as in php if you have a foreach loop it only loops the keys and not the values as well
_64k has quit [Client Quit]
<mpfundstein_home>
ahhhh
<jcrawford>
going to go read up on each to make sure i fully understand all this
<mpfundstein_home>
array.each on your hash
<mpfundstein_home>
returns type only as an array
<mpfundstein_home>
than you do type.each
<jcrawford>
thanks for pointing that out :)
<mpfundstein_home>
and thats of course than php -> article -> ruby -> empty
<jcrawford>
right
<lupine>
jcrawford, hsh.keys.each { } if you must
<lupine>
but I wouldn't
<mpfundstein_home>
i would use the pair solution
<jcrawford>
i musn't i must understand each though :) going to read up on it now
<lupine>
hsh.each {|k, _| } is fine
_64k has joined #ruby
<jcrawford>
that will not work either it returns [<Article>] rather than just <Article>
<mpfundstein_home>
jcrawford: share your insights :-)
<mpfundstein_home>
jcrawford: an than u iterate through [<Article>]
<jcrawford>
oy lol
frightenedmonkey has left #ruby [#ruby]
* jcrawford
smacks himself, sorry
freakazoid0223 has quit [Quit: Leaving]
slash_nick has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<reppard>
it always comes up with that sinatra doesn't know that ditty
<reppard>
i use rails and have never tried sinatra. thought it would be fun to fool around with
tk___ has joined #ruby
thinkclay has quit [Quit: Leaving.]
<wildcard1>
are you sure you're sending a post request?
<jcrawford>
ok so if type is a string, how can i make it evaluate to the string rather than the literal type? It is complaining about no type method being defined which is true but if type were evaluated as a variable it would work :0 site.type.each.select{|x| x.data.key? 'redirects' }.each do |p|
<wildcard1>
cause this looks right
Michael has joined #ruby
<reppard>
i'm pretty sure i am...i dont see how i wouldn't be, i specify method="post"
<havenn>
jcrawford: What version of Ruby are you using?
<reppard>
yeah i get 404
<reppard>
strange
<wildcard1>
do you get it if you telnet in and do it manually?
<havenn>
jcrawford: Object#class
<lupine>
site.send(type)
<jcrawford>
havenn: look at the code i am not trying to use a type method :) type is a variable and i am trying to use that variable as a method call
<lupine>
mightbe what youy mean
<reppard>
wildcard1: i just got it, had to restart the server
<reppard>
thanks for looking though
<wildcard1>
reppard: cool. i thought i wasn't blind here :)
<wildcard1>
hehe
<lupine>
jcrawford, definitely what you're looking for
<reppard>
yeah same here =)
<jcrawford>
lupine: thanks will try that
<havenn>
jcrawford: Oh, ha I see.
autumn has quit [Remote host closed the connection]
<ner0x>
Any quarks with the ruby switch statement?
<lupine>
just the indenting
<wildcard1>
reppard: check out shotgun. it does autoreloading like webrick in rails
<jcrawford>
lupine: so then site.send(type).each.select{|x| x.data.key? 'redirects' }.each do |p|
<Quadlex>
Nope, it's mainly muons
<lupine>
I put when at the same indent level as case and end
<ner0x>
Other than that works as advertised and is okay to use?
<lupine>
if I don't, the else looks stupid
<lupine>
oh, and when x : y is invalid in 1.8
<banisterfiend>
ner0x: yeah
<lupine>
1.9*
dougireton has quit [Quit: Leaving.]
<banisterfiend>
ner0x: it uses ===
<havenn>
ner0x: It uses threequals === operator. So 1..4 === 4
<banisterfiend>
ner0x: so this might not do what u think:
<lupine>
jcrawford, should work
<lupine>
assuming it has the appropriate methods
<lupine>
x.send('y') is the same as x.y
<ner0x>
I'm doing text.
<ner0x>
case status 'active' 'pending' etc.
<banisterfiend>
case blah; when MyClass; puts "hi"; end
<banisterfiend>
where blah is MyClass, it won't print 'hi'
<reppard>
wildcard1: good time, thats why i didn't think to reload, i'm use to rails
thinkclay has joined #ruby
slainer68 has quit [Remote host closed the connection]
sailias1 has quit [Quit: Leaving.]
ikaros has quit [Quit: Ex-Chat]
<ner0x>
I'll just have to run some tests.
<aedorn>
so I moved from just gitolite to gitlab today. Such a painful experience so I hope it pays off
daniel_- has quit [Ping timeout: 250 seconds]
<graft>
okay, so with $stdout.reopen("log.txt","w") I can redirect stdout. If i do $stderr = $stdout, I can redirect stderr within ruby. If I do system "echo test", it redirects the output to log.txt correctly. However, system "echo test 1>&2" does not work - it still echoes to the console. How come?
<ner0x>
record.valid? in MyValidator will cause an infiniteloop huh. :-/
pskosinski has quit [Ping timeout: 244 seconds]
cakehero has joined #ruby
IceDragon has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
phelps has quit [Quit: Computer has gone to sleep.]
cakehero has quit [Client Quit]
AntonioNeto has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
phelps has joined #ruby
AntonioNeto has left #ruby [#ruby]
phelps has quit [Read error: Connection reset by peer]
phelps has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
<heftig>
graft: is stderr redirected?
marr has quit [Ping timeout: 265 seconds]
dmiller has quit [Ping timeout: 244 seconds]
<heftig>
graft: try using $stderr.reopen($stdout) instead of reassigning
Guest24015 has quit [Remote host closed the connection]
<graft>
heftig: ah, that does it, thanks
havenn has quit [Read error: Operation timed out]
mrdtt has joined #ruby
sorbo_ has left #ruby [#ruby]
Kuifje has quit [Ping timeout: 265 seconds]
jromine has quit [Ping timeout: 244 seconds]
zastern_ has quit [Remote host closed the connection]
seanstickle has joined #ruby
freeayu has joined #ruby
alex0 has joined #ruby
lordnaz has joined #ruby
marienz has quit [Ping timeout: 624 seconds]
itchyouch has joined #ruby
friskd has quit [Read error: Operation timed out]
chessguy has quit [Remote host closed the connection]
eregon has quit [Ping timeout: 244 seconds]
dankest has quit [Quit: Leaving...]
miskander has joined #ruby
eregon has joined #ruby
yshh has joined #ruby
pothibo has quit [Quit: pothibo]
felipe_Brz has joined #ruby
Proshot has quit [Read error: Operation timed out]
LouisGB has quit [Ping timeout: 246 seconds]
thinkclay has quit [Quit: Leaving.]
<felipe_Brz>
i want to use ruby to execute a sql file... what I'm doing right now is to read the .sql file into a string and then run db.query(string) where db is a database connection created via the Mysql/Ruby client
<felipe_Brz>
however, i'm getting an error after the first colon
<felipe_Brz>
is there any way to execute many queries at once?
<felipe_Brz>
for instance, when you dump a database to a .sql file, you generally get many commands separated by colons
nignaztic has joined #ruby
jromine has joined #ruby
amacgregor_osx has joined #ruby
adkron has joined #ruby
zeade has joined #ruby
<felipe_Brz>
*semicolons
Xeago has quit [Remote host closed the connection]
autumn has joined #ruby
reppard has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Russell^^ has quit [Quit: Russell^^]
x82_nicole has quit [Quit: Computer has gone to sleep.]
moshee has quit [Ping timeout: 264 seconds]
dankest has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
jenrzzz has joined #ruby
alex0 has quit [Quit: Leaving]
sn0wb1rd has quit [Quit: sn0wb1rd]
reppard has joined #ruby
xargoon has quit [Read error: Operation timed out]
cirwin has quit [Quit: snooz....zing!]
swex_ has quit [Read error: Operation timed out]
picca has joined #ruby
JoeHazzers has quit [Quit: JoeHazzers]
xargoon has joined #ruby
JoeHazzers has joined #ruby
picca has quit [Remote host closed the connection]
swex has joined #ruby
phelps has quit [Ping timeout: 250 seconds]
jonahR has quit [Quit: jonahR]
richardr has joined #ruby
jonahR has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
michaelhf has joined #ruby
johnmilton has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
phelps has joined #ruby
banisterfiend is now known as banister`sleep
voodoofish430 has quit [Quit: Leaving.]
cloaked1 has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
phelps has quit [Ping timeout: 265 seconds]
jonahR has joined #ruby
amacgregor_osx has quit [Ping timeout: 252 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
<reppard>
anyone from georgia know of a good usergroup/meet up?
phelps has joined #ruby
amacgregor_osx has joined #ruby
cakehero has joined #ruby
sorbo_ has joined #ruby
cableray has joined #ruby
cakehero has quit [Client Quit]
maetthew has quit [Quit: bye]
amacgregor_osx has quit [Read error: Operation timed out]
<bakis>
does anyone know of sublime settings / plugins to make it exactly vim? with captial R replace and all the commands and such?
<reppard>
sudo apt-get install vim ?
amacgregor_osx has joined #ruby
benlieb has quit [Quit: benlieb]
slainer68 has joined #ruby
marienz has joined #ruby
matip_ has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
matip has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
flock has joined #ruby
<shevy>
hmm is ARGF a perlism? and if so, how did perl come up with ARGF? the name
<flock>
hey gang, I am having a small issue dereferencing a key in a hash
<flock>
my key is called "key" (as thats how its called in the Github API, I am using the github_api gem)
slainer68 has quit [Ping timeout: 248 seconds]
<flock>
so I have user.keys.all.first.key == fail :/
<aedorn>
shevy: no it was in C long before perl
<flock>
whereas user.keys.all.first.title works. The error MRI gives me is "ArgumentError: wrong number of arguments(0 for 1)"
<flock>
thats because it wants to call the key method of Hash, which is not what I want ;)
nari has joined #ruby
sn0wb1rd has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<shevy>
aedorn ok
maetthew has joined #ruby
mercwithamouth has joined #ruby
<aedorn>
shevy: well, let me slightly take that back .. concept wise.
ltsstar has quit [Quit: ltsstar]
amacgregor_osx has quit [Read error: Operation timed out]
x82_nicole has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
amacgregor_osx has joined #ruby
sn0wb1rd_ has joined #ruby
mame0 has quit [Ping timeout: 244 seconds]
banister`sleep has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Ping timeout: 265 seconds]
woolite64 has quit [Ping timeout: 265 seconds]
sn0wb1rd_ is now known as sn0wb1rd
mame0 has joined #ruby
Hanmac1 has joined #ruby
banister`sleep has joined #ruby
lenodroid has joined #ruby
whitedawg has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
adkron has quit [Ping timeout: 245 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 256 seconds]
<felipe_Brz>
bakis: i think you want vintage mode
lenovodroid has quit [Read error: Connection reset by peer]
kmurph has quit [Quit: kmurph]
emocakes has quit [Quit: emocakes]
<felipe_Brz>
i have read a file (pure text with some newlines) into a string using File.read (i'm on the interactive cli)... i can see there are many newlines (\n) when i look at it in the cli but I can't for the love of (insert deity) split the string using newline as separator
<felipe_Brz>
i've trie all sorts of combinations but none of them seem to work
blazes816 has quit [Ping timeout: 256 seconds]
jgrevich has quit [Read error: Connection reset by peer]
<felipe_Brz>
anyone has any ideas of what might be the issue here?
BoomCow has quit [Quit: Leaving]
Iszak has quit []
F1skr has quit [Quit: WeeChat 0.3.9.2]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
blazes816 has joined #ruby
jrajav has joined #ruby
jgrevich has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ltsstar has joined #ruby
banister_ has joined #ruby
elico has quit [Quit: elico]
banister`sleep has quit [Ping timeout: 255 seconds]
lenodroid has quit [Read error: Connection reset by peer]
lenodroid has joined #ruby
<kenneth>
if i have a block, is there a way to execute it while adding variables to its scope?
<kenneth>
say i have block = lambda { puts hello }
<kenneth>
could i do something to set hello = "world" within the scope of this block before i .call it?
<ryanf>
kenneth: no, but you can use instance_eval to execute the block in the context of some object that has a method called hello
<ryanf>
there is no way to inject locals into a block like that, unfortunately
<kenneth>
so that means that every method call that depends on implicit self in the block would no longer work
<kenneth>
hmm
michaelhf has quit [Remote host closed the connection]
ltsstar has quit [Quit: ltsstar]
banister_ has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
theRoUS_ has joined #ruby
banister`sleep has joined #ruby
Aqua has quit [Ping timeout: 260 seconds]
the_jeebster has quit [Quit: Leaving.]
HorizonXP has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
<HorizonXP>
hey guys, i'm trying to run this ruby program called soundCLI
<HorizonXP>
looks like it rquires curb/curl
<HorizonXP>
however, when i install it via gem install, running soundcli still yields sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
<HorizonXP>
i mean no such file to load -- curb
<HorizonXP>
i figure it's because the gem i installed somewhere other than the default ubuntu/Ruby path
<HorizonXP>
is there a package in Ubuntu I can intsall
joofsh has joined #ruby
justincampbell has quit [Remote host closed the connection]
jromine has quit [Remote host closed the connection]
Aqua has joined #ruby
<kenneth>
HorizonXP: do you have libcurl + associated headers installed correctly?
TheFuzzball has quit [Ping timeout: 245 seconds]
kokainepizza has quit [Quit: My pooter is sleep.]
<kenneth>
HorizonXP: and have you done a `gem install curb` and watched it successfully install?
kmurph has joined #ruby
jduan1981 has quit [Ping timeout: 246 seconds]
pwelch has joined #ruby
jaygen has quit [Remote host closed the connection]
pwelch has quit [Client Quit]
<HorizonXP>
kenneth: gem install curb was successful
emanu has joined #ruby
<kenneth>
HorizonXP: and you're sure that ruby gems / ruby is setup correctly? with rvm it can sometimes be easy to install gems in the wrong ruby and have them not work when you try to use them
<HorizonXP>
kenneth: i installed ruby and ruby gems via apt-get so i assume they're setup correctly
<HorizonXP>
i'm a total ruby noob here
dougireton has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
The_8473 has joined #ruby
The_8472 has quit [Ping timeout: 260 seconds]
miskander has quit [Quit: miskander]
sailias has joined #ruby
jenrzzz has joined #ruby
joofsh has quit [Remote host closed the connection]
bigmac has quit [Remote host closed the connection]
kmurph has quit [Quit: kmurph]
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
amacgregor_osx_ has joined #ruby
dougireton has quit [Quit: Leaving.]
charliesome has joined #ruby
Eric_ has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
amacgregor_osx has quit [Ping timeout: 252 seconds]
dougireton has joined #ruby
Eric_ has left #ruby [#ruby]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
miskander has joined #ruby
ekr has joined #ruby
<ryanf>
HorizonXP: you should really use rvm or rbenv instead of the ubuntu packages. they're notorious for being broken
<ryanf>
dunno if maybe they're better lately, but it's probably best to just steer clear of them
Michael has joined #ruby
<charliesome>
ryanf, HorizonXP: +1
Michael is now known as Guest86696
nari has quit [Ping timeout: 250 seconds]
<ryanf>
I will say that it no longer feels like 50% of the questions in here are about people's broken ubuntu ruby installs
<ryanf>
which is why I said maybe they're better
<charliesome>
or maybe people have started using rvm or rbenv more
<ryanf>
but that's probably just either people learning not to use them or me paying less attention
<ryanf>
yeah
kenneth has quit [Quit: kenneth]
<aedorn>
why!? why does ruby segfault!? argh
<charliesome>
aedorn: uh oh, what's going on?
amacgregor_osx_ has quit [Read error: Operation timed out]
rakl has quit [Quit: sleeping]
<aedorn>
charliesome: trying to get the last portions of gitlab working. When I go to the Users link it will segfault. And it looks like it's coming from ActiveRecord, but I can't tell why it would fault there
SeySayux has quit [Read error: Operation timed out]
<charliesome>
are you using any c extensions?
jrajav has quit [Quit: I tend to be neutral about apples]
<ryanf>
probably using a db driver with a c extension
<ryanf>
aedorn: maybe try gem pristine --all to make sure your native extensions are all compiled against the right versions of things?
jenrzzz has quit [Ping timeout: 252 seconds]
SeySayux has joined #ruby
<aedorn>
well, unicorn, pg, ffi .. not sure what else it uses. Everything is already pristine though (the whole system was rebuilt today)
amacgregor_osx has joined #ruby
cnielsen has joined #ruby
cnielsen is now known as sparc
sparc is now known as sparc_
theRoUS_ has quit [Ping timeout: 250 seconds]
<sparc_>
Is there a good Ruby book about Ruby in the cloud?
cakehero has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
<sparc_>
I know the fog library and RightScale have ruby libraries that let us use AWS pretty well
<sparc_>
The Oreilly ones seem to be Python specific
joofsh has joined #ruby
beneggett has quit [Read error: Operation timed out]
amacgregor_osx has quit [Read error: Operation timed out]
icole has joined #ruby
amacgregor_osx has joined #ruby
rakl has joined #ruby
kokainepizza has joined #ruby
tyman_ has joined #ruby
<seanstickle>
sparc_: Perhaps you can do a mitzvah and write one!
tyman_ has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
<banister`sleep>
seanstickle: sup stick
xemu has quit [Ping timeout: 246 seconds]
<seanstickle>
banister`sleep: shouldn't you be asleep?
<ryanf>
yeah, I think he's been asleep for like an hour
<ryanf>
more like two hours
reppard has quit [Ping timeout: 260 seconds]
sorbo_ has quit [Quit: sorbo_]
<banister`sleep>
seanstickle: i tried already, now I'm watching a dock on riemann hypothesis
<banister`sleep>
doco
<banister`sleep>
fuck u apple
redgetan has joined #ruby
emanu has quit [Quit: emanu]
beneggett has quit [Ping timeout: 248 seconds]
LouisGB has joined #ruby
ekr has quit [Quit: ekr]
<charliesome>
ruby sucks at being cross compiled
<redgetan>
why does 1.2 - 1 give me 0.19999999999999996 instead of 0.2?
<redgetan>
im using ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
<banister`sleep>
redgetan: wow, not you too
<seanstickle>
redgetan: IEEE 754
<redgetan>
did someone ask the same question?
<seanstickle>
redgetan: learn it, love it
<banister`sleep>
redgetan: it gets asked here about once a day ;)
NihilistDandy has joined #ruby
<seanstickle>
redgetan: master it
<redgetan>
oh haha
<banister`sleep>
redgetan: answer is "it's just how floating points work in computers, omg why didn't u learn that at college" ;)
<redgetan>
hehe
<seanstickle>
This is what happens when people didn't cut their teeth on assembly language.
<redgetan>
i did dabble on assembly, but not that advanced :(
<NihilistDandy>
Hi. I'm doing the Ruby koans and I've just hit the first one that I don't really get.
<seanstickle>
Jesus, really, what's up with those slides?
<seanstickle>
These mathematicians should be crucified
amacgregor_osx has quit [Read error: Operation timed out]
<banister`sleep>
seanstickle: it's interesting when he talks about the connection to fourier analysis, i hadn't heard of that before
<seanstickle>
If I could read the slides I might try to watch.
<seanstickle>
Although even then I would want to punch the presenter for writing so much crap on the slides.
moshee has quit [Ping timeout: 244 seconds]
amacgregor_osx has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<seanstickle>
But I've read a couple of books on the hypothesis, so it's all good.
<NihilistDandy>
So what I think it's doing is pushing the values onto the default value, an empty Array. My intuition says that there is only one default value in a Hash, so pushing onto that Array alters the default value. Is that correct?
<NihilistDandy>
And on top of that, since there is only one default value, anything keyed to the default value is altered along with it.
busybox42 has quit [Ping timeout: 260 seconds]
<NihilistDandy>
Or, perhaps more correctly, any two values have the same object_id. This is why the default bound values are not listed when listing the contents of the hash.
icole has quit [Remote host closed the connection]
<NihilistDandy>
But binding a non-default value to some key produces a different object_id, so it is listed.
tyman has joined #ruby
gnul0ver has joined #ruby
postmodern has joined #ruby
tyman has quit [Remote host closed the connection]
felipe_Brz has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129162756]]
<NihilistDandy>
Do I have the idea down, or am I misinterpreting something?
Aliv3 has joined #ruby
dougireton has quit [Quit: Leaving.]
rakl has quit [Quit: sleeping]
Umren has joined #ruby
<gnul0ver>
happy boxing day
<gnul0ver>
everyone
<gnul0ver>
0_o
landho has joined #ruby
dougireton has joined #ruby
breakingthings has joined #ruby
miskander has quit [Quit: miskander]
whitedawg has quit [Quit: Leaving.]
xAndy is now known as xandy
phantasm66 has quit [Quit: *sleeeep….]
rippa has joined #ruby
megharsh has quit [Quit: WeeChat 0.3.9.2]
LouisGB has quit [Ping timeout: 260 seconds]
Aliv3 has quit [Quit: Leaving]
mikekelly has quit [Ping timeout: 265 seconds]
mikekelly has joined #ruby
phelps has quit [Ping timeout: 252 seconds]
redgetan has quit [Quit: Leaving]
woolite64 has joined #ruby
xandy is now known as xAndy
phelps has joined #ruby
stevechiagozie has joined #ruby
cyong has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<wallerdev>
if i start a process in a thread, and end the ruby script, will it end the process?
Guest86696 has quit [Remote host closed the connection]
amacgregor_osx_ has joined #ruby
dr_neek has quit [Ping timeout: 250 seconds]
harushimo has quit [Quit: Leaving]
crazedpsyc has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
Michael has joined #ruby
Michael is now known as Guest50783
roconnor has joined #ruby
cj3kim has joined #ruby
chriskk has quit [Quit: chriskk]
chimkan___ has joined #ruby
ekr has quit [Quit: ekr]
chimkan has quit [Ping timeout: 248 seconds]
chimkan___ is now known as chimkan
kokainepizza has quit [Quit: My pooter is sleep.]
abhishiv has joined #ruby
abhishiv has left #ruby [#ruby]
radic has joined #ruby
abhishiv has joined #ruby
kiyoura has quit [Ping timeout: 250 seconds]
richardr has quit [Remote host closed the connection]
icole has joined #ruby
amacgregor_osx_ has quit [Read error: Operation timed out]
abhishiv has left #ruby [#ruby]
amacgregor_osx has joined #ruby
adzdavies has joined #ruby
radic_ has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
dougireton has joined #ruby
icole has quit [Ping timeout: 252 seconds]
chimkan has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
blazes816 has quit [Quit: blazes816]
seanstickle has quit [Quit: seanstickle]
ekr has joined #ruby
ekr has quit [Client Quit]
Hanmac1 is now known as Hanmac
<Hanmac>
does someone sill has an ruby1.8 installed ? i need some little test
dr_neek has joined #ruby
<roconnor>
I have ruby-1.8.7-p357
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
kmurph has joined #ruby
guns has joined #ruby
<ner0x>
assert_match /User [#{user.email}]/, login.errors.messages[:email][0] Any specific reason this would fail if it is infact "User [thecorrectemail] ...." ?
<Hanmac>
roconnor: you could test this: s="a";h={s => 3};s.object_id == h.keys[0].object_id
mockra has quit [Remote host closed the connection]
<adzdavies>
breakingthins: you can use a dangling 'if' or unless - which is an expression... so it can be used as: puts (var_exists unless var_nil)
nwertman has quit [Ping timeout: 244 seconds]
fir_ed has joined #ruby
mockra has joined #ruby
<breakingthings>
adzdavies: I probably could have used a better name there, but I was actually aiming for 'puts var_nil' being the preferable execution if var_nil was in fact… not nil.
<breakingthings>
so let's just say that we have var1 and var2, var1 can either be a string or nil and var2 is always present
<adzdavies>
basically you use a block if you want a different array for each new default
amacgregor_osx_ has joined #ruby
<NihilistDandy>
And pushing onto the Array with the shovel changes the default value of the Hash, yes?
havenn has joined #ruby
<adzdavies>
it does, but you're also not actually assigning anything into the hash
JohnBat26 has joined #ruby
dankest is now known as dankest|away
amacgregor_osx has quit [Read error: Operation timed out]
sayan has joined #ruby
<NihilistDandy>
Right. That was what I thought. You can change the default, but the default is always the same object, so any defaulted key will take on the new value.
<adzdavies>
not if you did this: hash = Hash.new { [] }
<aedorn>
troubleshooting resque is a bit infuriating
lele has quit [Ping timeout: 246 seconds]
<NihilistDandy>
adzdavies: Because then the Hash is inhabited. I see.
<adzdavies>
no... it's not... it's just the default is fresh each time
<havenn>
Another way to say the same thing: hash = {}; hash.default = []
<NihilistDandy>
Oh. Hadn't checked it in irb. Now I see what you mean, though.
<NihilistDandy>
Okay, that clears a lot up, then. Thanks.
<adzdavies>
This from the api doc does a more sensible thing... setting the key with the default:
<Hanmac>
shevy i thought about this "ruby boot camps" the same ...
<shevy>
that too, but at least they only advertised here. it's somehow different to getting a "personal" email which in effect is nothing but disguised, one-sided spam ... :(
nomenkun has quit [Read error: Connection reset by peer]
mengu_ has quit [Quit: This computer has gone to sleep]
reppard has quit [Ping timeout: 260 seconds]
<shevy>
was any of these guys a longtime rubyist anyway?
nomenkun has joined #ruby
kjellski has joined #ruby
browndawg has quit [Quit: Leaving.]
stopbit has joined #ruby
<shevy>
If all you have is a hammer, then everything will look like a nail.
landho has quit [Ping timeout: 248 seconds]
tommyvyo_ has joined #ruby
kil0byte has joined #ruby
<hybris>
If your only tool is a hammer, all your problems will look like nails
Udom0 has left #ruby [#ruby]
rondale_sc has joined #ruby
vagnerd has joined #ruby
<hybris>
If your only tool is ruby, all your problems will look like rails
<hybris>
lol lolz
matthewm has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
reppard has joined #ruby
adamnbowen has joined #ruby
nobuoka has joined #ruby
megharsh has quit [Quit: WeeChat 0.3.9.2]
pmros has joined #ruby
<pmros>
hi!
statarb3 has quit [Ping timeout: 248 seconds]
haxrbyte_ has joined #ruby
vvlad has joined #ruby
<Hanmac>
while rubyists uses rails, pythonists only "import teleport" for transportation
roconnor has quit [Quit: Konversation terminated!]
C0deMaver1ck has joined #ruby
pmros has quit [Read error: Connection reset by peer]
pmros has joined #ruby
michaelhf has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
Timao has joined #ruby
banister`sleep has quit [Remote host closed the connection]
jrajav has joined #ruby
jonahR has joined #ruby
jbw has joined #ruby
nobuoka has quit [Quit: Leaving...]
jdar has joined #ruby
matthewm has quit [Ping timeout: 248 seconds]
<jdar>
Rack question: I know I could configure stdlib Logger to go to a file instead of 'rack.errors'… but is there a subscriber pattern that is common?
<pskosinski>
pythonists are crawling
<shevy>
hybris lol
<shevy>
ok that's it, I must learn rails. it's no fun to rant against it without knowing it very well
thone_ has joined #ruby
<shevy>
gem install rails
joshman_ has joined #ruby
<shevy>
File not found: lib
<shevy>
ERROR: While generating documentation for rails-3.2.9
<shevy>
... MESSAGE: exit
<shevy>
well ...
<hybris>
gem install lib?
<hybris>
:P
pmros has quit [Quit: Konversation terminated!]
<shevy>
aha
<shevy>
:)
<shevy>
works now
<shevy>
29 gems installed
<Mon_Ouie>
Normally that's just an error for the documentation generation (because the actual rails gem contains no code), but it does install it
<shevy>
hmm installing the ri documentation takes longer than the rest.... hehehe
choffstein has joined #ruby
thone has quit [Ping timeout: 265 seconds]
icole has joined #ruby
miskander has joined #ruby
icole has quit [Remote host closed the connection]
<slainer68>
when trying to compile ruby 2.0.0p2 on os x with ruby-build i got a fatal error : "erb.rb:375: [BUG] vm_base_ptr: unreachable" (log : https://gist.github.com/4398742)
<slainer68>
does somebody know the problem?
<slainer68>
thanks
<hybris>
yeah shevy, I was originally trying to learn rails on a windows computer, it install ri docs for about 20 minutes before i ctrl+c'd lol
Coeus has joined #ruby
<yxhuvud>
slainer68: I'd guess ruby-core oslt would be a better place to place that question. There are probably more people with the relevant experience there.
<slainer68>
yxhuvud: ok i'll try
LouisGB has quit [Ping timeout: 252 seconds]
rismoney has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
mpfundstein has quit [Ping timeout: 264 seconds]
nomenku__ has joined #ruby
nomenkun has quit [Ping timeout: 265 seconds]
michaelhf has quit [Remote host closed the connection]
freeayu has joined #ruby
nomenkun has joined #ruby
Timao has quit []
daniel_- has joined #ruby
beiter has quit [Quit: beiter]
fomatin has joined #ruby
jeffreybaird has joined #ruby
ltsstar has joined #ruby
nomenku__ has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
regedarek has joined #ruby
icole has joined #ruby
Phoop has quit [Quit: Phoop]
chimkan has joined #ruby
landho has joined #ruby
Vivid_ has joined #ruby
assurbanipal has joined #ruby
chimkan has quit [Quit: chimkan]
freeayu has quit [Remote host closed the connection]
flock has left #ruby ["Leaving"]
banister`sleep has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jsmonkey has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
withnale has quit [Remote host closed the connection]
AndChat- has joined #ruby
<shevy>
wow already on 2.0.0
<shevy>
and I only recently compiled 1.9.3-p362 ...
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<jdar>
I am considering setting up a loop to continuously read from a stream (the "rack.errors" stream)… is there something smarter I could be doing?
Virunga has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 252 seconds]
bean has joined #ruby
<withnale>
if I want to install a gem, how can I ensure that a dependency (that is already met) is not upgraded to it's latest version?
Zoup has joined #ruby
<Sou|cutter>
withnale: it won't be unless the gem you're install requires it
<jdar>
withnale: if using bundler, you can set with "= 3.2.8"
nimred has quit [Ping timeout: 255 seconds]
<withnale>
this is from the command line...
<withnale>
hmmm. I've checked all the dependencies.
Asher has quit [Quit: Leaving.]
<Sou|cutter>
so is this actually a problem, or just a fear?
chimkan has joined #ruby
kjellski has quit [Ping timeout: 244 seconds]
<withnale>
it's a problem. I want to use netscaler-cli but it's a bit out of date and uses v1 of savon...
_64k has quit [Quit: _64k]
elsifaka has quit [Quit: Veloma e!]
<withnale>
savon last month moved to 2.0.x and changed it's interface.
<withnale>
I thought I could just do gem install -v 1.2.0 savon && gem install netscaler-cli
kjellski has joined #ruby
<Sou|cutter>
withnale: works for me
<Sou|cutter>
I get the old savon, but it does look like you get a newer nori
<Sou|cutter>
is that the problem?
arturaz has quit [Remote host closed the connection]
<withnale>
yes. I'm trying to then use gem->fpm on them..
thatguycraig has joined #ruby
nwertman has joined #ruby
Chryson_ has quit [Quit: Leaving]
kjellski has quit [Read error: Connection reset by peer]
<withnale>
so subdependencies are reevaluated when you do a gem install??
Michael has joined #ruby
Guest50783 has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Michael is now known as Guest98100
<withnale>
if I am trying to install A when depends on B which depends on C...
<cirwin>
withnale: use bundler to get visibility into what's going on
Chryson has quit [Quit: Leaving]
<cirwin>
just put the three gems in your Gemfile, locked to the versions you want
<cirwin>
and run bundle install
jdar has quit [Quit: jdar]
dr_neek has joined #ruby
<withnale>
if I already have a supported version of B but the most recent version of B uses a newer version of C, I will end up with two versions of C installed?
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
<cirwin>
withnale: if it explicitly depends on the newer version, yes
_64k has joined #ruby
<withnale>
gem dependency netscaler-cli ..... savon (>= 0.9.2)
<Sou|cutter>
1.2.0 should meet that.. not sure what deps are forcing higher versions of other things though. hmm
lolcathost has joined #ruby
<withnale>
there is a 2.0.2 available that will pull in newer.
<withnale>
but I thought if I preinstall savon 1.2.0 it wouldn't have to worry about savon's changed dependencies
skcin7 has joined #ruby
jdar has joined #ruby
<withnale>
gem dependency savon -v 2.0.2 .... wasabi (~> 3.0.0)
<atyz>
You could always just edit the gem and specify the dependencies of the gem you're using
<withnale>
gem dependency savon -v 1.2.0
<atyz>
maybe you'll be lucky and it will work with other versiosn
anders__ has joined #ruby
busybox42 has joined #ruby
<withnale>
gem dependency savon -v 1.2.0 ... wasabi (~> 2.5.0)
<anders__>
is_int() in ruby is what?
mafolz has quit [Remote host closed the connection]
<anders__>
I need to ensure the right datatype is set
<Sou|cutter>
withnale: I hesitate to say this, but maybe this is a bug with gem dependency resolution
<withnale>
so if i do gem install -v 1.2.0 savon && gem install netscaler-cli I end up with two versions of wasabi
mercwithamouth has joined #ruby
<Sou|cutter>
feels like everybody is using bundler now, so maybe it is overlooked or something... I see no reason why you're getting some of those deps
dsdeiz has joined #ruby
pwelch has joined #ruby
<withnale>
going to try using graphviz to see if there is something I'm missing
mybrainis301 has joined #ruby
<matip__>
is there a method to catch for example all the upper case letters after "#" in "foo#A bar#B zaz#C xux#T pop#Q", between "bar#B" and "xux#T"
<matip__>
?
mybrainis301 has quit [Remote host closed the connection]
mybrainis404 has joined #ruby
<matip__>
m = text.scan /bar\#(\w+) (?:\s\w+\#(\w+))* \sxux\#(\w+)/ix
<matip__>
for example ^
<matip__>
(it doesn't work exactly the same way, but I'm afraid it's not possible...
dmiller has quit [Remote host closed the connection]
<matip__>
(the result should be B, Y, C and T)
dmiller has joined #ruby
choffstein has quit [Remote host closed the connection]
<hoelzro>
does Ruby's regex engine not support look-behind?
jdar has quit [Quit: jdar]
<matip__>
how would it help anyway?
<hoelzro>
t[/bar.*xux/].scan /(?<=#)[A-Z]/
<hoelzro>
matip__: ^^
<hoelzro>
(t is the string)
Goles has joined #ruby
<hoelzro>
if you want to include xux#T:
<hoelzro>
t[/bar.*xux#[A-Z]/].scan /(?<=#)[A-Z]/
<matip__>
ohh
<matip__>
ah, ok, wait.. you're matching two times
<hoelzro>
yeah
<matip__>
yeah, it's easy in that way :P
<hoelzro>
indeed ;)
enroxorz-work has quit [Read error: Connection reset by peer]
<matip__>
you don't even need look-behind
<matip__>
the challenge was to do that in one match, but as I said I don't think it can be done
nwertman has quit [Ping timeout: 260 seconds]
<shevy>
hmm do you guys think it would be easy to make simple browser games with ruby on rails?
<hoelzro>
depends on the game
<matip__>
here is a simplified version:
<matip__>
> "A B C D".scan /(A)(\s\w)+\s(D)/x
<matip__>
=> [["A", " C", "D"]]
<matip__>
it should have been /(A)(?:\s(\w))+\s(D)/x **
tenmilestereo has quit [Quit: Leaving]
lazyPower has joined #ruby
sirecote has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
pothibo has joined #ruby
assurbanipal has quit [Remote host closed the connection]
mahmoudi_ has joined #ruby
<lazyPower>
Correct me if i'm wrong, but i can call any method via its symbol from within the class correct? example i have a need to call a method dynamically, :#{enqueue} and :#{enqueue_delay} would call their respective methods?
mercwithamouth has quit [Ping timeout: 255 seconds]
rondale-sc has joined #ruby
carlyle has quit [Remote host closed the connection]
aedorn has joined #ruby
baphled has joined #ruby
rondale-sc has quit [Client Quit]
reppard has quit [Ping timeout: 245 seconds]
<lazyPower>
self.send(:#{method}) rather
<banister`sleep>
lazyPower: or just: send(method)
track7 has quit [Read error: Connection reset by peer]
fomatin has joined #ruby
<lazyPower>
oh, so the self. is non required, and i dont need to symbolize the method call?
<banister`sleep>
string is fine
<lazyPower>
mind = blown
stevechiagozie has quit [Quit: Lost terminal]
track7 has joined #ruby
<lazyPower>
banister`sleep, also - i can pass arguments along with that call by just adding (somearg)?
cj3kim has quit [Quit: This computer has gone to sleep]
Noldorin has quit [Quit: Computer has gone to sleep.]
<aedorn>
well, once you get over the pains of installing it and getting it working smoothly ... gitlab is pretty good
danneu has joined #ruby
<shevy>
sounds like sex
<shevy>
though I am not even sure what gitlab actually is... sounds like a laboratory with git geeks
<aedorn>
it's the open source alternative to github
krawchyk has joined #ruby
lolcathost has joined #ruby
<shevy>
oh
<aedorn>
company has weird control issues and doesn't like spending money so ... I'm glad it exists.
slash_nick is now known as slash_working
Michael has joined #ruby
Michael is now known as Guest90422
jerius has quit []
dankest has joined #ruby
<seanstickle>
I have weird control issues too. I like to use software that I control.
<seanstickle>
Not software in the cloud that may go away if someone decides to buy it and put a bullet in its heads.
<shevy>
lol
<shevy>
I want to be a machine
<seanstickle>
I am moderately OK with github
<shevy>
then you will call me skynet
<seanstickle>
Because it's built on a common standard
<shevy>
or googlenet. same thing
<seanstickle>
Same with Gmail.
<seanstickle>
But fuck the social networks.
d2dchat has joined #ruby
jerius has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
tvw has joined #ruby
<aedorn>
seanstickle: when I say weird, I mean ... the code repository machine must be in our possession .... but it's perfectly acceptable to toss all the data we use on the cloud
<aedorn>
I'm pretty sure it's some fight at the higher levels .. one side wants to embrace it, the other side says no... it's the only thing that makes any sense
<shevy>
hehe
fteem has joined #ruby
dr_neek has quit [Quit: dr_neek]
reppard has joined #ruby
<aedorn>
well, that's okay.. other than that one thing I can pretty much do whatever I want. It evens out somehow
carlyle has quit [Remote host closed the connection]
lolcathost has quit [Quit: leaving]
<aedorn>
alright, guess I need to figure out why 1.9.3 p362 causes segfaults and 327 doesn't
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
Nss has joined #ruby
Nss has quit [Remote host closed the connection]
Artheist_ has joined #ruby
lolcathost has joined #ruby
Vivid_ has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
<kenneth>
shevy: i've had random bugs in ruby that took me forever to debug, only to find out the GC randomly decided to not release my stuff
<kenneth>
or release it too soon
<lupine>
C is a perfectly reasonable language, the runtime/develop-time tradeoff is just a bit different
dmiller has quit [Ping timeout: 244 seconds]
jduan1981 has joined #ruby
<jsonperl>
i write ruby 10 times faster than c
<jsonperl>
and drop into c for performance
<jsonperl>
and then segfault all over myself
daniel_- has joined #ruby
<kenneth>
the performance c code can typically run at a factor of 10-100x faster than MRI
dmiller has joined #ruby
<jsonperl>
at least
<jsonperl>
yep
<Hanmac>
"Ruby: You shoot yourself in the foot and then have to justify it to all your friends who are still naively using Perl. "
<jsonperl>
ive achieved 500x improvements on some stuff
<shevy>
you can misuse every language
<shevy>
the only real argument I see is speed
<kenneth>
well, what about features that just aren't available in ruby?
<eka>
shevy: speed and elegance ;)
<kenneth>
like, say, threading
KernlPanic has joined #ruby
<Hanmac>
i use bindings so i get the speed from C/C++ with the nice syntax magic from ruby
<KernlPanic>
hi guys!!
<shevy>
we would need a ruby-like language (but simpler), able to reach close to the speed of C
<seanstickle>
scheme!
<lupine>
kenneth, threading is available in ruby
<kenneth>
lupine: with the GIL threading in ruby is not real threading
<KernlPanic>
I have to deploy an ruby on rails application..I built the app and I need to put on production server...wich method you syggest me? thanks
<lupine>
so use a non-gil ruby
<lupine>
I do
reppard has quit [Ping timeout: 265 seconds]
<kenneth>
unless you use JRuby, i guess, but don't get me started on the JVM
tk___ has quit [Quit: ばいばい]
<lupine>
rubinius is apparently GIL-less
sn0wb1rd has joined #ruby
<lupine>
but not all my tests pass yet
<lupine>
so we're still on jruby
<shevy>
isn't rubinius dead after the main developer abandoned it?
<kenneth>
is that for real? i thought they were still working on that but it was nowhere near production ready
<jsonperl>
evan works at living social now
<jsonperl>
but another dev is on it at engine yard
<lupine>
> 1.0 so must be production ready
<lupine>
otherwise it'd be < 1.0
<lupine>
ruby people *never* mess up versioning. trufact
fteem has quit [Ping timeout: 248 seconds]
mjolk2 has quit [Quit: This computer has gone to sleep]
dyrot has quit [Ping timeout: 246 seconds]
kjellski has joined #ruby
wallerdev has joined #ruby
jrajav has joined #ruby
snowflight has joined #ruby
berserkr has joined #ruby
<shevy>
well, projects often change when other people take over. like shoes is not the same anymore without _why
<shevy>
gobolinux did not survive the takeover either :(
<lupine>
rubinius had a change of leadership?
<shevy>
dunno the rest of the team
arietis has joined #ruby
<kenneth>
c has gotten a lot more elegant recently
<Hanmac>
C++11 is more elegant ..
<shevy>
lol
<lupine>
did they remove all the features?
<kenneth>
especially with some of the stuff apple has been doing
<shevy>
the grey pig calls the black pig ugly
<Hanmac>
but there are new evil functions too
Virunga has joined #ruby
<lupine>
the main feature of c++ I use is default function arguments
<kenneth>
lib blocks and lib dispatch are AWESOME
<Hanmac>
like marking a class as final
danneu has quit [Ping timeout: 252 seconds]
<lupine>
for everything else, there's a C idiom
<Hanmac>
lupine i use function templates for evil
<lupine>
yes, they are pretty evil
<kenneth>
Obj-C is a much better OO C than C++ though!
<jsonperl>
later dudes
jsonperl has left #ruby [#ruby]
<lupine>
never used objective c
<lupine>
#AIUI, though, the "C" part of the name is a lie
<kenneth>
#AIUI?
<lupine>
"as I understand it". the # was a typo
<kenneth>
but lupine, the C part of the name is much less of a lie than in C++ :)
<kenneth>
lupine: Obj-C is a strict superset of C. any C code is valid Obj-C, and Obj-C doesn't change any fundamental C concept
<lupine>
I obviously don't understand it well ^^
<_nitti>
pfft
<_nitti>
obj-c is just c
<kenneth>
lupine: not true of C++
<_nitti>
c with a runtime
<Hanmac>
lupine Obj-C is from apple, what did you expected?
<lupine>
that i'd want to avoid it, obviously
Michael has joined #ruby
<kenneth>
_nitti: and a compiler with some added features
<kenneth>
i love how we're having a discussion about c in #ruby btw
* lupine
was writing a c ruby extension t'other day. quite enjoyable
sepp2k has quit [Ping timeout: 265 seconds]
<Hanmac>
"Python You create a gun module, a gun class, a foot module, and a foot class. After realizing you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear. "
robustus has joined #ruby
<Hanmac>
lupine writing an c ruby extension in C++ is more fun :D
jduan1981 has quit [Quit: jduan1981]
alexwh has joined #ruby
bricker has joined #ruby
alexwh is now known as Guest30535
<shevy>
kenneth well C is the future... mruby... is like embedded ruby... but you can only embed it if you know C :(
<lupine>
pointless for me, since I was wrapping a c library ^^
<lupine>
now all I need to do is get a void * from my extension to another, via some smoke bindings
<kenneth>
oh in other news
<kenneth>
i just wrote a ruby version of lisp's let statement
<kenneth>
fuck yeah for dynamic languages
<Hanmac>
shevy: so the past is the future ... interesting cycled map of time :P
<kenneth>
although it's a little shady the way it's done
<kenneth>
so i probably shouldn't ever use it inproduction
<shevy>
pfffft (lisp(man(even(C(is(better
<lupine>
eh, they're for different things
<shevy>
Hanmac I think the underlying hardware influences a lot of the design
woodlee has joined #ruby
<lupine>
or are for all machines that aren't lisp hardware machines
<Hanmac>
shevy even ASM is better whan Lisp :P
<shevy>
yeah lupine
<lupine>
lisp is a perfectly fine language, I just can't think in it
<shevy>
one car uses gasoline, the other one uses sunlight
<lupine>
not consistently, anyway
Guest57351 has quit [Remote host closed the connection]
zastern_ has joined #ruby
aces23up has quit []
<shevy>
you are faster with the gasoline, but cheaper with the sunlight
woodlee has quit [Remote host closed the connection]
_set has quit [Quit: Lost terminal]
<shevy>
we just need better hardware
<mpfundstein>
lupine: u can learn that
<lupine>
I'd rather not, in all honesty
<mpfundstein>
hanmac: lisp and asm cant be compared
kokainepizza has quit [Quit: My pooter is sleep.]
<mpfundstein>
lupine: it will come automatically. mostly after smalltalk ^^
<lupine>
hardware lisp machines have an assembly language that is entirely comparable to x86 assembly
<shevy>
ack smalltalk
<shevy>
beautiful idea, ugly syntax
sailias has joined #ruby
<mpfundstein>
lupine: i think about common lisp sry
<kenneth>
shevy: lisp is fucking awesome, just a pain in the ass to use
<lupine>
mpfundstein, well, if you want to focus on a single runtime, that's fine
<rismoney>
if i have a string that comes back as UTF-16LE that looks like "A\x00v\x00a..etc" how do i make it readable?
otters has joined #ruby
Artheist_ has quit [Remote host closed the connection]
<mpfundstein>
lupine: lets not discuss this now i have to do shopping :-)
dougireton has joined #ruby
<kenneth>
shevy: macros, homoiconicity, and solid functional concepts make it awesome
<kenneth>
it's just not very practical and kind of a bitch to read later on
kuranai has joined #ruby
AndChat- has quit [Ping timeout: 248 seconds]
<lupine>
c-lisp compiles though, so it's a boring distinction
DrShoggoth has joined #ruby
altamic has joined #ruby
<kenneth>
i'm talking about lisp as a family of languages btw, not CL. my favorite is clojure, but the jvm is a deal breaker unfortunately
<seanstickle>
scheme is delightful!
<seanstickle>
I find no pain in the ass there at all.
Umren has joined #ruby
_64k has quit [Quit: _64k]
<kenneth>
i gave up on lisp though where i realize there'd be no way i could convince anybody at the company here to learn it
<lupine>
crash bandicoot was written in lisp
amacgregor_osx has quit [Read error: Connection reset by peer]
<shevy>
that's another thing
<lupine>
fun aside
<shevy>
lisp can be so awesome, but if you have a million different implementations, it just confuses people
<lupine>
they ended up writing their own lisp dialect, including compiler, and had real trouble finding staff
<kenneth>
i wrote and pushed a clojure service. i got stuck with its maintenance forever before killing it because NOBODY could even look at it and understand anything
<lupine>
but, it's a solid set of games
<seanstickle>
Trouble finding staff is cured by recruiting and *keeping* staff.
amacgregor_osx has joined #ruby
<seanstickle>
Though many companies seem to have a problem with that.
<lupine>
i probably wouldn't even apply to a job that said i'd be working in a custom dialect of lisp
<lupine>
it's not an attractive prospect
<Hanmac>
i uses features from C / C++ and some part of ruby for automatic generating methods with automatic type conversion and error handling ... all i need to write is macro_attr(Attr,Type) ... it sometimes does also accept values of an look-alike type
<seanstickle>
I would.
<seanstickle>
But I love learning new quirky things, if the pay is good.
<RubyPanther>
I thought it was the lack of precedence that made smalltalk suck?
<RubyPanther>
yeah, as elegant as backwards reverse Polish notation... right to left, no parens
<seanstickle>
You can use parens in APL
<kenneth>
i have to say i like lisp's parens
<kenneth>
there's no way to get confused
Banistergalaxy has quit [Ping timeout: 248 seconds]
<seanstickle>
I have a grave dislike for operator precedence
Michael has joined #ruby
bricker has joined #ruby
<kenneth>
if i write 1 + 2 * 3 depending on language semantics and precedence rules, it could mean either 7 or 9
Michael is now known as Guest76141
Zoup has quit [Quit: Lost terminal]
<C0deMaver1ck>
kenneth: I was talking to a coworkers boyfriend who writes Clojure... and that's what he said
<seanstickle>
In APL it's just 7
<seanstickle>
easy!
<C0deMaver1ck>
can't tell if sarcastic or serious
<kenneth>
if i write (+ 1 (* 2 3))
<kenneth>
nobody's confused
danneu has joined #ruby
<C0deMaver1ck>
wrap it inside a few more parens like it would be irl
Guest76141 has quit [Remote host closed the connection]
<RubyPanther>
Parens are the only salve that makes LISP tolerable. It doesn't change the ugliness factor, but it at least forces it to make sense, however much it kicks and screams
Banistergalaxy has joined #ruby
<kenneth>
with some good macros. parens can be made less panfuls
<kenneth>
what gets really annoying is when you end up with (code (that (is (nested (like (this)))))))
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
if your paren is less than a pan full, you need to close it
<kenneth>
but with a macro you can do (-> (code) (that) (is) (sequentially) (ordered) (like) (this))
pats_Toms has joined #ruby
<kenneth>
with is semantically equivalent
<Hanmac>
kenneth with ruby you need to look if you write "-3" or "- 3" ... the first one may be 33% faster :P
<kenneth>
stupid autocorrect. painful* not panfuls
<yxhuvud>
I'd assume there should be some ruby-full (oslt) package that actually includes the standard distribution.
Guest41548 is now known as alexwh
marr has quit [Ping timeout: 255 seconds]
<Hanmac>
yxhuvud until recent ubuntu , ruby-full and the other ruby meta packages point to the installed 1.8 version ...
_64k has joined #ruby
<pats_Toms>
hmm, I run "gem1.9.1 install nokogiri" what installs ok, but when I run nokogiri -v now I got "[BUG] Segmentation faultruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]"
skrite has joined #ruby
<skrite>
hey all
<shevy>
pats_Toms ack, debian
<Hanmac>
pats_Toms as i said its better to switch your default ruby with update-alternatives
<skrite>
i am having a weird issue. i can gem install, gem installs, then when i require that gem, it says that it doesn't exist
<yxhuvud>
I wonder why the distros always feel the need to go full retard when it comes to packaging ruby.
<yxhuvud>
that nokogiri is installed for ruby 1.8, whihc is obviously wrong in your case.
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
<pats_Toms>
yes, I know that, my first question was
<pats_Toms>
why gem is installing wrong version for me? :d
wermel has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<lupine>
maybe it's gem1.8 vs. gem1.9
reppard has quit [Ping timeout: 264 seconds]
_alejandro has quit [Remote host closed the connection]
<lupine>
under debian, /usr/bin/gem will be a symlink to one or t'other, as /usr/bin/ruby is too
<Signum>
Newbie here… I want to use the trello.com API and thus did "gem install ruby-trello". But for some reason I can't "require 'Trello'" in the 'irb' as described in http://rubydoc.info/gems/ruby-trello/0.4.4.1/frames. What am I doing wrong?
<lupine>
just install libnokogiri-ruby1.8 and libnokogiri-ruby1.9 packages, I guess
JMcAfreak has joined #ruby
<pats_Toms>
I have changed my GEM_HOME
kmurph has quit [Quit: kmurph]
<lupine>
that's ok, the debian packages aren't gems
Xeago has quit [Remote host closed the connection]
<pats_Toms>
hmm, nokogiri is not working anyway
<pats_Toms>
I am feeling like trololo because that nokogiri what I have is for 1.8.7 as I know
<pats_Toms>
and I really can't understand how that package will help me
adambeynon has joined #ruby
jds has quit [Remote host closed the connection]
Noldorin has quit [Quit: Computer has gone to sleep.]
<lupine>
I've never seen a while loop do that, but it used to be valid in case
pzol has left #ruby ["Sayonara!"]
<banisterfiend>
kenneth: let { |x=10, y=20| x * y } #=> 200
<lupine>
(case x ; when 1 : y ; end
<kenneth>
oh shit, banisterfiend… did not even think of that
statarb3 has joined #ruby
jds has quit [Remote host closed the connection]
chimkan has joined #ruby
mpfundstein has quit [Ping timeout: 265 seconds]
<melkor>
lupine: thanks, I was replacing the colon with do and it was working fine.
<lupine>
anyway, the infrastructure is more lines than the code
Goles has joined #ruby
<lupine>
conclusion: it's not worth it ^^
altamic has quit [Quit: altamic]
pabloh has joined #ruby
IceDragon has joined #ruby
<kenneth>
banisterfiend: this is awesome. this makes me happy
<banisterfiend>
kenneth: 1.9+ only though
<kenneth>
i'm okay with that
Diranged has joined #ruby
<kenneth>
i've been 1.9+ for a year now
moos3 has quit [Quit: Computer has gone to sleep.]
<Diranged>
im currently using this line in a ruby template file that puppet parses: <%= require "json"; Hash[combined_data.map { |elem| elem.split('=', 2) }].to_json %>
<Diranged>
the problem it seems is that the array comes out in different orders sometimes.. which causes puppet to re-build the file almost every time it runs
<Diranged>
is there a way to sort the output of that, so its always in the same order?
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<Diranged>
(its taking an array of strings in the format key=value, and turning it into a hash in the form of { 'key': 'value', 'key2': 'value2' })
<ryanf>
Diranged: combined_data.sort.map ?
<Diranged>
heh, didnt think of that..
<Diranged>
trying it now.. probably gonna work just fine
<Diranged>
well, unless the to_json is what breaks the ordering..
jgrevich has quit [Remote host closed the connection]
_64k has quit [Quit: _64k]
kirun has quit [Ping timeout: 265 seconds]
kmurph has quit [Quit: kmurph]
<lupine>
well, it'll change the format of the json from a hash to an array of arrays
shevy has quit [Ping timeout: 246 seconds]
<lupine>
you want an OrderedHash I guess
gyre007 has quit [Remote host closed the connection]
<melkor>
wow, installing rubyracer fails because of some crap in v8.h?
<lupine>
or ruby 1.9
<lupine>
Diranged, don't be too upset. hash order has bitten me more than oncem,as well
<Diranged>
hmm
<Diranged>
what do i need to require to use orderdhash?
<lupine>
there's one in activesupport
<lupine>
there might be one in extlib
<lupine>
or you could do your own with your own custom to_json as well
tvw has quit [Remote host closed the connection]
mpfundstein has joined #ruby
<lupine>
(if constraints on what combined_data can contain are strong enough, that's not as crazy as it sounds)
jgrevich has joined #ruby
__BigO__ has joined #ruby
<lupine>
the other option would be to read the existing file and only rewrite it if the read-in hash differs from the one you're about to call to_json on
jgrevich_ has joined #ruby
atno has quit [Remote host closed the connection]
datura has joined #ruby
atno has joined #ruby
jgrevich has quit [Ping timeout: 265 seconds]
jgrevich_ is now known as jgrevich
dougireton has joined #ruby
shevy has joined #ruby
dankest|away is now known as dankest
bluOxigen has quit [Ping timeout: 264 seconds]
ninegrid_ has joined #ruby
statarb3 has quit [Ping timeout: 255 seconds]
berserkr has quit [Quit: Leaving.]
<Diranged>
argh i cant seem to use activerecord in a ruby template in puppet for some reason
<Diranged>
not sure why..
Noldorin has joined #ruby
<ner0x>
||= is assignment but is there anything specific about it specifically?
<ner0x>
Equals itself or new value?
<IceDragon>
think of it as: a = x if a == nil
jds has joined #ruby
<IceDragon>
or rather
<IceDragon>
a = x if !!a == false
<ner0x>
Ah. That makes sense.
vagnerd has quit [Quit: Leaving]
alanjc has joined #ruby
lmfao has joined #ruby
lmfao is now known as mpfundstein_home
nada has joined #ruby
<JMcAfreak>
wait, ner0x said ||= while IceDragon used !!=... difference?
adambeynon has quit [Quit: Computer has gone to sleep.]
<IceDragon>
no !! is short for converting objects to Bools
<IceDragon>
! == not ; !! == not not == true
nada has left #ruby [#ruby]
<JMcAfreak>
yes, but what about double-pipes?
<ner0x>
ruby-fu, as it were.
<IceDragon>
I should have left off the !! to avoid confusion
miskander has quit [Quit: miskander]
<IceDragon>
||= is similar to saying = if nil or false
<IceDragon>
a ||= x ; a = x if a == nil
<JMcAfreak>
I see
<IceDragon>
rather: a ||= x ; a = x if a == nil or a == false
<IceDragon>
but since nil is evaluated as false I guess it doesn't make a difference
miskander has joined #ruby
<JMcAfreak>
I see
Slivka has quit [Remote host closed the connection]
DrShoggoth has quit [Ping timeout: 248 seconds]
<mpfundstein_home>
there was a cool blogpost about this
<anders__>
mpfundstein_home, so how did it work out for you?
sparc_ has joined #ruby
arietis has joined #ruby
<mpfundstein_home>
anders__: pretty good
<emocakes>
anders__, wondering the same here
<mpfundstein_home>
anders__: i went from C to Node to php to smalltalk to ruby at my work
<mpfundstein_home>
anders__: and the main difference were mostly the conventions
<emocakes>
anders__, it seems to be the same here, just have to use it to learn
<mpfundstein_home>
anders__: and the tricks. in ruby everything is an object. this goes deep into the meta system
<emsilva>
how can I get the "matches" from this text via regex? https://gist.github.com/4401866 I got to /^(.+?)(_|-).*$/ so far, but I can't get the second line to match as well without messing up with the rest of the entries. Thank you.
<mpfundstein_home>
anders__: i used php mostly functional, classes not really, only for some objects. ruby gives you the full oop concept and thats cool. just different
slash_working is now known as slash_nick
<IceDragon>
emsilva: i'll take a look at it
<mpfundstein_home>
anders__: just get started and port some code. or challenge yourself with something easy to learn the syntax and get a feel. then get a good book like "metaprogramming in ruby"
onibox has joined #ruby
elico has quit [Remote host closed the connection]
<emsilva>
IceDragon: Thank you. I think I just got it /^(.+?)(_|-|$).*$/, but I'm not 100% confident yet.
<aedorn>
eloquent ruby is pretty good too if you want a book more towards the beginning
<mpfundstein_home>
i assume he is a coder already who wants to learn how the language itself works
<JMcAfreak>
anders__: why's poignant guide is good if you also want to get a good laugh
<anders__>
Im starting with ruby now, I think Im going to do a cardgame simulator with different games such as poker, blackjack etc
<anders__>
Im gonna use a lot of classes and parents
<mpfundstein_home>
yeah perfect
<mpfundstein_home>
dont inherit too much
michaelhf has quit [Remote host closed the connection]
<mpfundstein_home>
composition is mostly better
<anders__>
I already draw the structure on a paper
megharsh has quit [Ping timeout: 265 seconds]
<mpfundstein_home>
you want to learn oop right?
<anders__>
JMcAfreak, I bookmarked the site now
jekotia has joined #ruby
<anders__>
mpfundstein_home.. well I know a little oop already, but I havn't really used it alot in practice
<anders__>
you have any reccommendation on that?
<mpfundstein_home>
anders__: ok. than the best way is indeed to start out with a project where you create a lot of objects. just a tip: dont inherit too much
<mpfundstein_home>
anders__: learn about composition and delegates
<mpfundstein_home>
anders__: if you want i can send you a book for that
<seanstickle>
Yeah, basically ignore most everything written about inheritance you see in the OO books.
<slash_nick>
mpfundstein_home: 5.times { +1 }
<seanstickle>
Bad practices.
<mpfundstein_home>
:-) , yeah , i had bad experiences already :D
lenovodroid has quit [Ping timeout: 248 seconds]
danneu has quit [Quit: WeeChat 0.3.8]
vlad_starkov has quit [Remote host closed the connection]
jds has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
datura has quit [Quit: This computer has gone to sleep]
havenn has quit [Remote host closed the connection]
icole has joined #ruby
havenn has joined #ruby
Diranged has left #ruby [#ruby]
vlad_starkov has joined #ruby
_64k has joined #ruby
kennyvb has quit [Ping timeout: 245 seconds]
snearch has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
banisterfiend has joined #ruby
snowflight has quit [Ping timeout: 250 seconds]
d2dchat has quit [Ping timeout: 245 seconds]
<GlenK>
don't suppose anyone could give me a hint on this koan? test_proxy_records_messages_sent_to_tv
nomenkun has quit [Remote host closed the connection]
oxeote has quit [Ping timeout: 255 seconds]
nemesit has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
_64k has quit [Quit: _64k]
_64k has joined #ruby
toekutr has quit [Remote host closed the connection]
vdandre has quit [Quit: leaving]
kennyvb has joined #ruby
oxeote has joined #ruby
datura has joined #ruby
Noldorin has joined #ruby
<GlenK>
perhaps if I paste the relevant bit? http://fpaste.org/mNmQ/ It's telling me stack too deep on the test_tv_methods_still_perform_their_function section now.
Squarepy has quit [Changing host]
Squarepy has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
lolcathost has quit [Ping timeout: 260 seconds]
DaltonUS has quit [Quit: DaltonUS]
<aedorn>
GlenK: try changing calls in method_missing for Proxy to @calls
jds has joined #ruby
elico has joined #ruby
<GlenK>
aedorn: ha. duh. thanks. I still barely know what I'm doing here, so I guess that's what put the blinders on. haha.
<aedorn>
GlenK: just keep in mind that stack level too deep almost always relates to something being called recursively. In this case method_missing is recursively and indefinitely called searching for 'calls' rather than the instance variable
burgestrand has quit [Quit: Leaving.]
mayfield has quit [Ping timeout: 260 seconds]
miskander has quit [Quit: miskander]
Noldorin has quit [Quit: Computer has gone to sleep.]
blacktulip has quit [Remote host closed the connection]
Spaceghostc2c has quit [Excess Flood]
slainer68 has quit [Ping timeout: 265 seconds]
datura has quit [Quit: This computer has gone to sleep]
Spaceghostc2c has joined #ruby
pwelch_ has joined #ruby
_nitti_ has joined #ruby
Guest3912 has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
kiyoura has quit [Ping timeout: 264 seconds]
statarb3 has joined #ruby
dt6 has joined #ruby
Michael has joined #ruby
Michael is now known as Guest27727
kennyvb has quit [Ping timeout: 245 seconds]
ner0x has quit [Quit: Leaving]
pwelch has quit [Ping timeout: 260 seconds]
_nitti has quit [Ping timeout: 252 seconds]
Guedes has quit [Ping timeout: 255 seconds]
dt6 has quit [Quit: dt6]
pwelch_ has quit [Ping timeout: 265 seconds]
skrite has quit [Quit: WeeChat 0.3.8]
danneu has joined #ruby
shadewin1 has joined #ruby
sparc_ has quit [Quit: leaving]
<JMcAfreak>
so many part/join messages
<IceDragon>
your average day in #ruby
lolcathost has joined #ruby
daveturnbull has joined #ruby
<JMcAfreak>
i see
elaptics is now known as elaptics`away
<shadewin1>
how can I get a class by name from an extension
mockra_ has joined #ruby
thecreators has quit [Quit: thecreators]
mpfundstein has joined #ruby
mengu has joined #ruby
_nitti_ has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 255 seconds]
<shevy>
shadewin1 you have a name in a variable?
<shadewin1>
no, I have a string
__BigO__ has quit [Remote host closed the connection]
<shadewin1>
a C string with the name of the class
<shevy>
a C string? hmm you mean you want to know how to do so in ruby-C?
<shevy>
in pure ruby it is easy
emocakes has quit [Ping timeout: 252 seconds]
<shevy>
class Bar; end; Object.const_get("bar".capitalize).new
_alejandro has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<RubyPanther>
shadewin1: VALUE time_klass = rb_const_get( rb_cObject, rb_intern("Time") );
<shevy>
:)
<shevy>
that's the translation!
<shevy>
from Object.const_get to rb_const_get, this is a very clever RubyPanther
banisterfiend has joined #ruby
<RubyPanther>
<3 CRuby
<shevy>
who was evilly kicked from #ruby-lang
pwelch has joined #ruby
mockra_ has quit [Remote host closed the connection]
<RubyPanther>
if I was banned from more places, I'd write even more code
assurbanipal has joined #ruby
jrajav has joined #ruby
<shevy>
lol
theRoUS has quit [Ping timeout: 245 seconds]
theRoUS_ has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Ping timeout: 252 seconds]
fir_ed has joined #ruby
aces1up has joined #ruby
<aces1up>
how would i use Process.spawn to run a java jar file the command line is java -jar myjar.jar -role hub
twoism has joined #ruby
<shadewin1>
RubyPanther: thanks
koshii has quit [Ping timeout: 260 seconds]
dougireton has quit [Quit: Leaving.]
daveturnbull has quit [Quit: daveturnbull]
icole has quit [Remote host closed the connection]
<graft>
what's a good way to get the array member before or after a specific index?
icole has joined #ruby
<graft>
i don't want to loop backwards to the end of the array
snearch has quit [Quit: Verlassend]
spacemud has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
icole has quit [Read error: Connection reset by peer]
crodas has quit [Ping timeout: 264 seconds]
<graft>
it's annoying that array[array.size] is nil, but array[-1] == array.last
amacgregor_osx has joined #ruby
_alejandro has quit [Remote host closed the connection]
<jrajav>
graft: Curse the man who decided that array indices should correspond to pointer math
<jrajav>
graft: Also, is there a reason you can't simply do array[index + 1] (or -)
<seanstickle>
Dijkstra?
<jrajav>
?
<jrajav>
Oh, you mean in the context of looping around to negative/positive indexing I guess
<apeiros_>
dijkstra is the guy you two should read up on.
<seanstickle>
Whoa now.
twoism has quit [Remote host closed the connection]
<seanstickle>
I've read me plenty of Dijkstra.
<apeiros_>
seanstickle: not you obviously :)
<seanstickle>
Oh.
<apeiros_>
jrajav and graft
<seanstickle>
His hand-written papers are interesting stuff.
twoism has joined #ruby
<pskosinski>
You all should read about Dijkstra
<graft>
i don't want to read up on dijkstra, i just want to know how to get the previous member of an array
<graft>
i can't do array[index - 1] because it loops around
GoGoGarrett has quit [Remote host closed the connection]
<Paradox>
graft, damn
<Paradox>
thats a tricky one
<Paradox>
heh
<apeiros_>
write a method
<Paradox>
you probably have to do some checks to make sure you're not the last in the array
<apeiros_>
add it to Array
<Paradox>
yeah
<apeiros_>
be happy
<Paradox>
monkeypatch array
<Paradox>
Array.prev
<graft>
yeah, sure i can do that
<Paradox>
surely rails did something like that
<pskosinski>
So what index you want to have when index is -1 …?
GoGoGarrett has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 260 seconds]
justinweiss has joined #ruby
miskander has joined #ruby
zeade has quit [Quit: Leaving.]
tvw has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
pabloh has quit [Read error: Connection reset by peer]
twoism has quit [Remote host closed the connection]
havenn has joined #ruby
Squarepy has quit [Remote host closed the connection]
twoism has joined #ruby
kil0byte has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
benlieb has joined #ruby
sn0wb1rd has joined #ruby
nyuszika7h has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 252 seconds]
nyuszika7h has joined #ruby
twoism has quit [Ping timeout: 250 seconds]
<shevy>
test
<blazes816>
F
danneu has quit [Ping timeout: 252 seconds]
havenn has quit [Ping timeout: 248 seconds]
<shevy>
hmm... anyone ever been in a situation where fdisk/mount/umount don't work, and you have a read-only file system...
<IceDragon>
with a flash drive?
kennyvb has joined #ruby
sn0wb1rd has quit [Ping timeout: 265 seconds]
<seanstickle>
shevy: yup
h4mz1d has quit [Read error: Operation timed out]
<shevy>
IceDragon hmm my main computer right now... wondering what to do
<IceDragon>
sorry, never happened to me (yet)
joshman_ has quit [Quit: Computer has gone to sleep.]
<shevy>
hehe
kokainepizza has joined #ruby
<shevy>
well, I finished backing up everything so in theory I could reinstall
kmurph has joined #ruby
<IceDragon>
have you tried booting using another system?
michaelhf has quit [Remote host closed the connection]
<IceDragon>
or OS and check your filesystem (Parted Magic)
swex has joined #ruby
emmanuelux has joined #ruby
havenn has joined #ruby
<shevy>
hmm, if I reboot, I know I will be unable to login because mount will not work again
assurbanipal has quit [Remote host closed the connection]
<shevy>
system is ext4 ... going to try to repair that perhaps
<atmosx>
shevy: what is your error?
<shevy>
mount: relocation error: mount: symbol blkid_evaluate_spec, version BLKID_2.20 not defined in file libblkid.so.1 with link time reference
<atmosx>
is that the / or another fs?
<shevy>
two libblkid.so.1 exist, one in /lib/i386-linux-gnu/ and the other one in /usr/lib
<shevy>
this is on /
<shevy>
I'd like to remove /lib/i386-linux-gnu/ but I cant modify /etc/ld.so.conf :(
<JMcAfreak>
:|
<JMcAfreak>
fun
<atmosx>
shevy: why not? hmm try booting in single user mode
<atmosx>
and mounting the fs
<atmosx>
boot using a liveCD or something
<shevy>
aha
<shevy>
now that's an idea
<atmosx>
the problem is described here and as you said it's a bad (wrong) symlink. You need to remove the old one, make a link to the new one and run ldconfig http://forums.gentoo.org/viewtopic-t-808255.html
<atmosx>
this will generate new paths for the system and you're all set
<anders__>
shevy: sudo gedit /etc/ld.so.conf
<anders__>
what happens?
<shevy>
it is read only, I can not modify the file
reppard has joined #ruby
<anders__>
I try here then
<shevy>
but the liveCD is indeed a solution, I could simply copy or move the files
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
pwelch has quit [Quit: pwelch]
<anders__>
shevy, well I have write access as admin
<shevy>
going to try that soon, let's see how long I will be down :)
<JMcAfreak>
we'll be timing you!
<shevy>
the funny thing is, a few of my ruby scripts dont work properly on read-only file systems
<shevy>
VideoPlayer.rb:422:in `initialize': Read-only file system - last_video_file_played (Errno::EROFS)
C0deMaver1ck has quit [Remote host closed the connection]