tarwich has quit [Read error: Connection reset by peer]
Araxia has quit [Quit: Araxia]
tarwich has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
uris has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
digitalcakestudi has quit [Ping timeout: 240 seconds]
<zander_>
exit
zander_ has quit [Quit: Lost terminal]
<atmosx>
haha
davidcelis has quit [Quit: K-Lined.]
<tarwich>
rbcurse is eating my error messages. What's a quick way to get them to fail again?
baroquebobcat has quit [Quit: baroquebobcat]
<tarwich>
Or see what they are
RichieEvan has joined #ruby
hbpoison has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
jasonLaster has joined #ruby
tarwich has joined #ruby
<Spooner>
swarley Nope, mongodb is a database that stores JSON documents (JSON is the data format used by javascript, but mongo has nothing whatsoever to do with javascript).
<swarley>
oh, interesting
tarwich has quit [Read error: Connection reset by peer]
jameshyde_ has joined #ruby
tarwich has joined #ruby
<Spooner>
It is pretty much doing the same thing as mysql (in the _vaguest_ sense) in that it is a database system.
hbpoison has quit [Client Quit]
lggr has joined #ruby
<chiel>
basically you don't have a set schema
hbpoison has joined #ruby
<chiel>
you can add new entries to documents "on the fly" but still can query them etc
jasonLaster has quit [Ping timeout: 245 seconds]
<chiel>
so if I want to add a column for "title"
Takehiro has quit [Remote host closed the connection]
<chiel>
in mysql I'd have to alter the table schema
<swarley>
so its more flexible
<chiel>
in mongo, i'd just add it
havenn has joined #ruby
<chiel>
they're simply different
gh has joined #ruby
<swarley>
like, its more seamless?
<chiel>
creating relations between collections is a bit harder
<chiel>
yeah
<swarley>
harder to tell i'm using a DBI
<chiel>
you don't have to create dbs, collections or documents or anything before hitting the db
<chiel>
if you are using a new db suddenly, or collection, it'll just create it
<swarley>
oh neat
gen0cide_ has quit [Quit: Computer has gone to sleep.]
<chiel>
so it's very effortless, from a usage perspective
<chiel>
that all said, i'm only just getting into it
<chiel>
so i don't know too much abou tit :)
<chiel>
about it*
<swarley>
neat
<Spooner>
swarley have a look at the API for it in something like Mongoid. Might give you some clues how it is the same and different: http://mongoid.org/en/mongoid/index.html
<swarley>
i'm considering using it
xpen has joined #ruby
<swarley>
I'm thinking about doing a overhaul on Cinch
<chiel>
it just depends on your data really :)
<chiel>
if you are drawing a lot of relationships between tables, it might not be the best idea
AndChat| has quit [Ping timeout: 244 seconds]
jrajav has joined #ruby
<chiel>
if that data can easily be stored in the same document, well, then it might be worth a go
flyinprogramer has joined #ruby
<Spooner>
Yep.
<chiel>
I'll be using it for tinker.io
<chiel>
mainly cause I'm changing how all dependencies work
<chiel>
so it allows for this change :)
<chiel>
anyway, i'll be off now
<chiel>
tata! :)
<Spooner>
I used it for a game server, but I never got around to finishing the game. No idea if I'd have been better off with another DB style though :D
<flyinprogramer>
soo… migrating to ruby 1.9… and noticed something moderately strange… if Foo < Bar and Bar has an instance variable @thing1; Foo.instance_variables doesn't list thing1 --- any idea why?
pu22l3r has joined #ruby
<Spooner>
flyinprogramer : Instance variables don't get inherited. That isn't something magic to 1.9.
<Spooner>
_class instance variables_ I mean (which is, I assume, what you meant).
lggr has quit [Ping timeout: 244 seconds]
<flyinprogramer>
hmm...
<flyinprogramer>
time for a gist...
mengu has quit [Remote host closed the connection]
<Spooner>
Yeah, that might make it clearer (not sure I got what you meant).
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
lggr has joined #ruby
Jellyg00se has quit [Ping timeout: 264 seconds]
rovar has quit [Quit: Ex-Chat]
Banistergalaxy has joined #ruby
bradhe has quit [Remote host closed the connection]
<swarley>
flyinprogramer, @@thing1
<Spooner>
That is a class variable, not an instance variable.
<flyinprogramer>
i mean i literally have that going on...
<swarley>
oh
<flyinprogramer>
and i thought Bar would have a thing...
<swarley>
[5] pry(main)> k = Bar.new
<swarley>
=> #<Bar:0x00000001f31078 @thing=nil>
<Spooner>
Bar doesn't have a thing, but an instance of Bar would.
<swarley>
it does
<flyinprogramer>
hmm
<swarley>
i pasted your code directly
<flyinprogramer>
interesting
k3nz0 has quit [Ping timeout: 260 seconds]
<Spooner>
Taht is why @ivar is called an instance variable, it is a variable on the instance of a class, not on the class itself. Thus Bar.instance_variables will be empty, but Bar.new.instance_variables will have a @thing.
wargasm has joined #ruby
hiram has joined #ruby
tyfighter has quit [Quit: tyfighter]
snorkdude has joined #ruby
deo has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
<flyinprogramer>
ok.. i wonder how this code ever worked in the first place then...
<flyinprogramer>
i'm thinking it didn't
nari has quit [Ping timeout: 264 seconds]
RichieEvan has joined #ruby
<Spooner>
Well, that code doesn't _do_ anything, so "working" is moot.
yasushi has joined #ruby
<flyinprogramer>
well true, i boiled it down to show what i thought was the issue..
uris has quit [Ping timeout: 246 seconds]
lchin has joined #ruby
havenn has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
pingfloyd has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
hiram has quit [Ping timeout: 245 seconds]
wargasm has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
samrose has joined #ruby
kaen has quit [Ping timeout: 265 seconds]
wpaulson_ has joined #ruby
kn330 has quit [Remote host closed the connection]
LouisGB has joined #ruby
igaiga has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
ewag has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
rakl has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Jellyg00se has joined #ruby
<swarley>
Mongo::ConnectionFailure: Failed to connect to a master node at localhost:27017
<swarley>
what do i do here lol
alvaro_o has quit [Quit: Ex-Chat]
<Spooner>
swarley : I thinmk we need more info than that.
igaiga has quit [Remote host closed the connection]
<swarley>
i asked if i needed to have a server process running
ph^ has quit [Ping timeout: 268 seconds]
<swarley>
and i got an answer of "no"
<swarley>
so i assumed not
<swarley>
i guess i'm doing that now
<Spooner>
Not from me you didn't ;)
<swarley>
no not from you
<swarley>
but from someone else :p
justinmcp has quit [Remote host closed the connection]
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<Spooner>
And I wouldn't use Mongo directly (which is like using SQL directly - does anyone do that any more?). Use something like Mongoid (which is like ActiveRecord)
Jellyg00se has quit [Read error: Connection reset by peer]
<Animawish>
is there a simple way to make ruby take the first character as input without requiring enter?
<rking>
Hi Rubyheads. Anyone know of a way to get string evaluation but not full evaluation?
baroquebobcat has joined #ruby
<Spooner>
Huh?
<swarley>
what
<rking>
E.g. I have "asd\ndf" coming in on stdin, and I want it to linebreak but not allow any Ruby code.
<swarley>
wait
<swarley>
so
baroquebobcat has quit [Client Quit]
<Spooner>
Well, to run it as Ruby code, you'd eval it, but evalling it wouldn't do anything with the newline. I still have no idea what you actually want.
<swarley>
"asd\ndf".split(/\n/)[0]
<swarley>
?
<rking>
swarley: Yeah but I want all the others.
<swarley>
okay
<swarley>
well
<bnagy>
"asd\nf" is already linebroken
<swarley>
\n doesnt effect it
<rking>
bnagy: No it isn't. I have that literal text.
<rking>
bnagy: Sure, if in Ruby. I just mean that exact ASCII sequence is what I get on $stdin
<rking>
Spooner: But I also want \r and \033 and everything.
<swarley>
\\\n
<swarley>
uh
<swarley>
that's odd
igaiga has quit [Ping timeout: 250 seconds]
<rking>
There are probably 20 different escapes, and I know there's a way to do this without having to hand-code all cases.
soulisson has joined #ruby
nari has quit [Ping timeout: 246 seconds]
<swarley>
rking, what do you want to do with the escapes
<swarley>
[^\w\d]
lggr has joined #ruby
lchin has quit [Ping timeout: 264 seconds]
<swarley>
?
<rking>
swarley: Here's my task. I'm writing a short script called "cat-p", which will strace -p a process and snarf its stdout until done. But the output format looks like this: write(1, "24759\n", 6)
<rking>
I want to take that string and turn it into what it's supposed to look like.
lchin has joined #ruby
<Spooner>
I understand why you mentioned evalling it now. If you eval it as a string, then Ruby code won't get run, but there are ways they could mess it up. eval %{"str"} would eval it as if it were a typed in string.
igaiga has joined #ruby
<Spooner>
Oops. eval %{"#{str}"}
<rking>
input.gsub /write\(1, "(.+)", \d+)/ do something_with_dollar_1 end
igaiga has quit [Remote host closed the connection]
<swarley>
that
<swarley>
is super funky looking
<rking>
Spooner: I think you're right. I was nervous about it having a breakable way, but I'll test it.
justinmcp has quit [Remote host closed the connection]
<Spooner>
But that would still be easy to workaround if you are worried about people running arbitrary code. You are better off just managing all the cases.
<rking>
Spooner: Nah, there's a way.
<rking>
Spooner: Worst case is I find the one char that breaks it, and backslash it before sending it through that.
<Spooner>
"\"; system("rm -rf /"); \"" breaks it. Hmm, I suppose you are right, you can't use anything but "" to break out of it, so you could remove those.
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
<rking>
Spooner: Thanks for the leg up. =)
<swarley>
you could always do something like
<swarley>
chroot lol
<swarley>
but you'd have to be root
<swarley>
so nevermind
jasonLaster has joined #ruby
artOfWar has joined #ruby
<Spooner>
Ops, I mean "\"; system('rm -rf /'); \"", but you know what I mean.
<bnagy>
it really appear that there just isn't a good unescape for this
<bnagy>
appears
<swarley>
Eval is always unsafe
<bnagy>
it's a very common question on google, but with no good answers I can find
pingfloyd has joined #ruby
<swarley>
answer is short
<swarley>
avoid eval when possible
<Spooner>
Yes, I can't imagine that just writing a simple method of gsub the 20 special characters is more hassle than fixing eval to be bomb-proof ;)
tarwich has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 272 seconds]
tarwich has joined #ruby
thiagopnts has quit [Quit: Leaving]
<bnagy>
that's pretty much the google consensus :/
<bnagy>
how lame
lchin has quit [Remote host closed the connection]
wargasm has joined #ruby
hiroyuki_ has quit [Ping timeout: 246 seconds]
maahes has quit [Quit: WeeChat 0.3.9-dev]
<rking>
Spooner: Wanna race? =)
jasonLaster has quit [Ping timeout: 272 seconds]
<swarley>
Spooner, when i have mass eval i use a hash with gsub(x,y) parameters
<swarley>
err
<swarley>
mass gsub
<Spooner>
Not really, but I'll condescendingly correct whatever method you gist up :D
<rking>
Version in 5 mins that separates stdin/stderr.
tarwich has joined #ruby
wmoxam has joined #ruby
<Spooner>
swarley: Probably doesn't make a difference in performance, but you can do: \fs29 string.gsub /#{replace_ers.keys.join "|"}/, replace_ers\fs29
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
<swarley>
fs29?
<Spooner>
Or rather, even if it does make a difference, 99% of apps don't care. Nothing like making something more complex to make it...er, more complex.
havenn has quit [Remote host closed the connection]
<Spooner>
You forgot to remove " from the string, to prevent it running real Ruby code.
<rking>
Spooner: Try to break it.
Markvilla has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
horofox has left #ruby [#ruby]
yoklov has quit [Quit: computer sleeping]
<rking>
The %{} is just perfection.
<Spooner>
x = "\"; puts 'boo!'; \"..."; puts eval %{"#{x}"}
swarley has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
<rking>
Hrm. =)
<rking>
Maybe my test of it was wrong. =)
<Spooner>
Thing is, though, that since you are reading in from the command line (or from an another app), unless the Ruby process has more permissions, it doesn't matter.
igaiga has quit [Ping timeout: 250 seconds]
<Spooner>
It matters if you are reading in input from the web or other untrustworthy sources.
mva3212 has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
<rking>
Well, I don't like mishandling strings on principle, even more than only security issues.
<rking>
It's the programming equivalent of leaving your fly unzipped.
stephh has joined #ruby
SeySayux has quit [Ping timeout: 244 seconds]
<Spooner>
Yep. Well, just use $2.gsub('"', '') - I can't think of another way to break it, but I am tired. Maybe someone else will break it for you.
lggr has quit [Ping timeout: 240 seconds]
Takehiro has quit [Ping timeout: 248 seconds]
<rking>
It just isn't breaking IRL.
<rking>
Try it against: ruby -e 'p $$; loop do puts %q{x = "\"; puts "boo!";}; sleep 1.0 end'
<rking>
strace itself is doing some work on this one.
<rking>
Gives me \" for free.
<Spooner>
I think you'd want to do: ruby -e 'p $$; loop do puts %q{"; puts 'boo!'; "}; sleep 1.0 end'
<rking>
Tht fubar's the shell quotes
<Spooner>
But it is late. I'll leave it to someone else to figure it out. Goodnight #ruby
Spooner has quit []
igaiga has joined #ruby
<rking>
Dang. Provoke & duck.
<rking>
I don't think it's breakable at this point.
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
mva3212 has quit [Remote host closed the connection]
<swarley>
also, db.execute "SELECT * FROM Actions" returns a value without error when at the top level
ph^ has joined #ruby
nari has quit [Ping timeout: 252 seconds]
lchin has quit [Remote host closed the connection]
maletor has joined #ruby
Konboi has joined #ruby
bananagram has quit [Ping timeout: 268 seconds]
igaiga has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
gavit has joined #ruby
Takehiro has joined #ruby
deryl has quit [Quit: Leaving.]
ph^ has quit [Ping timeout: 252 seconds]
RichieEvan has joined #ruby
<shadoi>
Might be interesting to stick some debugging in the Database#execute method to see what it's passing in. Also, if it's using those names as variables it's possible having them capitalized makes them appear as constants instead of regular vars if they get eval'd for any reason
lggr has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 246 seconds]
rutkla has joined #ruby
Konboi has quit [Remote host closed the connection]
igaiga has joined #ruby
Takehiro has joined #ruby
lggr has joined #ruby
lchin has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
fowl-siesta is now known as fowl
lggr has quit [Ping timeout: 246 seconds]
CodeFriar has quit [Quit: Leaving...]
yoklov has joined #ruby
Yomero has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
<RubyPanther>
undyingrage: It works better to use the nick/pw as a "server login" instead of via nickserv. Safer and gets you logged in before you join channels instead of right after
RichieEvan has quit [Quit: RichieEvan]
mrdodo has quit [Remote host closed the connection]
RichieEvan has joined #ruby
<undyingrage>
Agreed :( But I'm here now and I want to identify ><
uris has quit [Quit: leaving]
hiram has joined #ruby
ananthakumaran has joined #ruby
jenrzzz has joined #ruby
hiram has quit [Ping timeout: 272 seconds]
<swarley>
I hate having to migrate from yaml to sqlite
<swarley>
because i have to recode
<swarley>
EVERYTHING
deo has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
<swarley>
in retrospect, i should have made an interface like function so that this wouldnt be such an issue
jasonLaster has joined #ruby
gavit has quit [Read error: Connection timed out]
Yomero has joined #ruby
gavit has joined #ruby
lggr has joined #ruby
hiram has joined #ruby
crys4l_ex3 has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
snorkdude has joined #ruby
Takehiro has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 244 seconds]
jasonLaster has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
arietis has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 246 seconds]
lchin has quit [Remote host closed the connection]
arietis has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
RichieEvan has joined #ruby
arietis has quit [Client Quit]
arietis has joined #ruby
RichieEvan has quit [Client Quit]
lchin has joined #ruby
xpen has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
mrdodo has joined #ruby
RichieEvan has joined #ruby
mercwithamouth has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
ken_barber has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Hanmac1 is now known as Hanmac
mneorr has joined #ruby
pingfloyd has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
ilyam has quit [Quit: ilyam]
ph^ has joined #ruby
robbyoconnor has joined #ruby
dfr|work has quit [Ping timeout: 246 seconds]
nari has joined #ruby
Erfankam has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Bosox20051 has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
mneorr has quit [Quit: Leaving.]
mneorr has joined #ruby
snorkdude has quit [Remote host closed the connection]
ph^ has joined #ruby
lggr has joined #ruby
snorkdude has joined #ruby
nari has quit [Ping timeout: 240 seconds]
abionic has quit [Ping timeout: 260 seconds]
gavit has quit [Read error: Connection timed out]
dfr|work has joined #ruby
diegoviola has quit [Quit: leaving]
gavit has joined #ruby
crys4l_ex3 has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
thunderstrike has quit [Remote host closed the connection]
hbpoison has joined #ruby
lchin has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
diegovio1a has quit [Ping timeout: 252 seconds]
igaiga has quit [Remote host closed the connection]
lggr has joined #ruby
s1n4 has joined #ruby
lchin has joined #ruby
monkegjinni has quit [Remote host closed the connection]
shiki has quit [Remote host closed the connection]
thunders_ has joined #ruby
shiki has joined #ruby
<shevy>
Hanmac we need to think big
Markvilla has joined #ruby
jasonkuhrt has joined #ruby
<Hanmac>
what topic?
<shevy>
Hanmac not sure yet... something along the lines of ... "ruby must conquer the world"
thunderstrike has quit [Ping timeout: 248 seconds]
thunders_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<Hanmac>
i do ogre binding today again, i dont think that will help in conquer ... and i play with Rosegarden too (but for some reason i dont get it working with jack)
<shevy>
it will help a bit
<shevy>
the moment when there are games with ruby :)
yasushi has quit [Remote host closed the connection]
kiyoura has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
icooba has joined #ruby
icooba has quit [Excess Flood]
icooba has joined #ruby
wpaulson has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
Takehiro has quit [Remote host closed the connection]
gavit has joined #ruby
h4mz1d has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
s1n4 has quit [Ping timeout: 246 seconds]
Jellyg00se has quit [Remote host closed the connection]
fraser has joined #ruby
lggr has joined #ruby
<shevy>
who speaks korean here
tlifff has quit [Read error: Connection reset by peer]
tlifff has joined #ruby
bitsar has joined #ruby
linoj_ has joined #ruby
jasonLaster has joined #ruby
<bitsar>
What's the best way to call a ruby function at a given time of day? Not sure if leaving a program running 24/7 is a good idea, maybe best off using my OS to time it instead?
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
lucianosousa has quit [Quit: lucianosousa]
h4mz1d has joined #ruby
tvw has quit [Excess Flood]
tvw has joined #ruby
kn330 has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
gavit has quit [Read error: Connection timed out]
Niamkik has quit [Quit: leaving]
mmitchell has joined #ruby
gavit has joined #ruby
snearch has quit [Quit: Verlassend]
jasonkuhrt has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby
lggr has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
workmad3 has joined #ruby
Markvilla has joined #ruby
elico has quit [Quit: elico]
kn330 has quit [Ping timeout: 248 seconds]
chussenot has quit [Quit: chussenot]
kn330 has joined #ruby
chussenot has joined #ruby
radic has quit [Ping timeout: 272 seconds]
Markvilla has quit [Client Quit]
Markvilla has joined #ruby
tlifff has quit [Read error: Connection reset by peer]
asteve has quit [Disconnected by services]
monobit_ has joined #ruby
tvw has quit [Remote host closed the connection]
uris has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
lggr has joined #ruby
bananagram has joined #ruby
carrythezero has quit [Ping timeout: 252 seconds]
jgarvey has quit [Quit: Leaving]
carrythezero has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
banannagram has joined #ruby
bananagram has quit [Read error: Connection reset by peer]
pdelgallego has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
radic has joined #ruby
banannagram is now known as bananagram
boris317 has joined #ruby
Rumbo181 has joined #ruby
Rumbo181 has quit [Client Quit]
Rumbo181 has joined #ruby
Rumbo181 has quit [Client Quit]
lggr has joined #ruby
Rumbo181 has joined #ruby
snorkdude has joined #ruby
lucianosousa has joined #ruby
lucianosousa has quit [Client Quit]
gavit has quit [Read error: Connection timed out]
lggr has quit [Ping timeout: 244 seconds]
gavit has joined #ruby
lggr has joined #ruby
monobit_ is now known as asteve
wpaulson has joined #ruby
dpk has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
jasonkuhrt has quit [Quit: Leaving...]
asteve has quit [Disconnected by services]
awarner has joined #ruby
monobit_ has joined #ruby
GoldenCider has joined #ruby
<davidcelis>
yes
chrishunt has quit [Quit: WeeChat 0.3.8]
lggr has quit [Ping timeout: 272 seconds]
<Hanmac>
no
<Hanmac>
:P
schickung has quit [Quit: schickung]
answer_42 has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Rumbo181 has quit []
<shevy>
Hanmac it's so odd, you publish a gem, within like one hour there are 60 who downloaded it, then the next more 60 downloads take like ... +5 days ...
alindeman has left #ruby ["/part"]
<Hanmac>
its the same with new apple iphones :P
<shevy>
hehe
<shevy>
apple products are heavily fashion driven
<shevy>
but they lack soul without jobs now
<Hanmac>
its not so much better than the prev version but everyone want it
<m3pow>
the new 5 is a decent upgrade imo
<banisterfiend`>
shevy it's because when you publish a gem it's broadcast to people watching rubygems
<banisterfiend`>
it's also broadcast on twitter
<banisterfiend`>
so it makese sense to get an immediate download count when you first publish it
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
<Hanmac>
i mean the normal appleuser is so dump that he cant notice that he has a 4S in his hands and not a 5
<Hanmac>
its even worse in the other hand he has his own 4S so he should notice that the phones are the same? wrong!
<Hanmac>
appleusers can see changes where are none!
lggr has quit [Ping timeout: 240 seconds]
jimeh has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
wmoxam has joined #ruby
Yomero has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
mahmoudimus has joined #ruby
monobit_ is now known as asteve
awarner has quit [Remote host closed the connection]
wallerdev has joined #ruby
cakehero has joined #ruby
schickung has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
asteve has quit [Disconnected by services]
ananthakumaran has quit [Quit: Leaving.]
monobit_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
h4mz1d has quit [Ping timeout: 248 seconds]
banisterfiend` has quit [Read error: Connection reset by peer]
lggr has joined #ruby
banisterfiend` has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
banisterfiend` has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
Virunga has joined #ruby
<lxsameer>
what was the ruby interpreter name ?
<fowl>
he goes by kyle
<fowl>
mail your scripts to him and he'll execute them eventually
schickung has quit [Quit: schickung]
mmitchell has quit [Remote host closed the connection]
<rking>
lxsameer: If you want an actual answer, other than the Kyle one, let us know.
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
WellMux has joined #ruby
<rking>
lxsameer: The interpreter is generally "ruby", though it typically lives in one of an ∞ number of places, so the best bangpath is #!/usr/bin/env ruby (which let's the user's $PATH determine which interpreter gets used)
<fowl>
dont listen to rking he uses the old version of ruby, "marty"
<lxsameer>
rking: sorry i meant interactive interpreter
lggr has quit [Ping timeout: 244 seconds]
<rking>
lxsameer: Like a REPL?
<rking>
lxsameer: gem install pry-full && pry
<lxsameer>
rking: REPL ?
<rking>
Read Eval Print Loop. Like what you get if you run "python" or "coffee" by itself.
jgrevich has joined #ruby
<rking>
lxsameer: Kick off that pry-full install, get a $beverage_of_choice, and when you come back you'll be ☺.
<Hanmac>
lxsameer the default one is called irb
<lxsameer>
rking: ok one more to go, is there anything like ipython in ruby
<rking>
lxsameer: 1 min, let me see what ipython os
<rking>
s/os/is
<lxsameer>
Hanmac: thanks man
Guest81709 has quit [Read error: Connection reset by peer]
<lxsameer>
rking: ipython is awesome
<rking>
lxsameer: Sounds like Pry.
<lxsameer>
rking: thanks friend
Dwarf has quit [Remote host closed the connection]
<rking>
Yeah, I might go on a limb and say irb is to argless-python as pry is to ipythonn.
awarner has joined #ruby
banisterfiend` has joined #ruby
samflores has joined #ruby
skogis has joined #ruby
lggr has joined #ruby
codeFiend has quit [Quit: codeFiend]
Banistergalaxy has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
answer_42 has joined #ruby
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
machty has joined #ruby
sepp2k1 has joined #ruby
heisenmink has quit [Remote host closed the connection]
samflores is now known as samflores|away
sepp2k has quit [Ping timeout: 272 seconds]
shevy has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
quest88 has joined #ruby
gavit has quit [Read error: Connection timed out]
thunderstrike has joined #ruby
GraemeLion has joined #ruby
gavit has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
burgestrand has quit [Quit: Leaving.]
haxrbyte has joined #ruby
burgestrand has joined #ruby
samflores|away is now known as samflores
mahmoudimus has joined #ruby
kn330 has quit [Ping timeout: 246 seconds]
boris317 has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
shevy has joined #ruby
dmiller has joined #ruby
quest88 has quit [Quit: quest88]
quest88 has joined #ruby
notVert has joined #ruby
frogprince_mac has quit [Ping timeout: 272 seconds]
Bart_ has joined #ruby
Bart_ is now known as frogprince_mac
lucianosousa has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
samflores is now known as samflores|away
tommyvyo has joined #ruby
lucianosousa has quit [Client Quit]
wmoxam_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Dwarf has joined #ruby
monkegjinni has joined #ruby
lucianosousa has joined #ruby
wpaulson has quit [Quit: wpaulson]
RichieEvan has joined #ruby
lggr has joined #ruby
lucianosousa has quit [Client Quit]
Dwarf has quit [Changing host]
Dwarf has joined #ruby
savage- has joined #ruby
thiagopnts has joined #ruby
eins11 has joined #ruby
philips_ has quit [Excess Flood]
philips_ has joined #ruby
awarner has quit [Remote host closed the connection]
slyv has joined #ruby
akphen has joined #ruby
akphen has quit [Client Quit]
lggr has quit [Ping timeout: 240 seconds]
akphen has joined #ruby
lucianosousa has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
recycle has joined #ruby
tk___ has quit [Quit: ばいばい]
Bosox20051 has quit [Quit: Leaving]
Bosox20051 has joined #ruby
dhruvasagar has joined #ruby
lucianosousa has quit [Client Quit]
monobit_ is now known as asteve
Markvilla has joined #ruby
Takehiro has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
lxsameer has quit [Quit: Leaving]
lggr has joined #ruby
samflores|away has quit [Quit: Leaving...]
CodeVision has joined #ruby
dangerousdave has joined #ruby
baphled has joined #ruby
ken_barber has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
samflores has joined #ruby
samflores has quit [Client Quit]
snorkdude has quit [Remote host closed the connection]
ken_barber has quit [Read error: Connection reset by peer]
coody has joined #ruby
<coody>
morning
baphled has quit [Ping timeout: 260 seconds]
coody has quit [Client Quit]
akphen has left #ruby [#ruby]
lggr has joined #ruby
Virunga has quit [Quit: Sto andando via]
wallerdev has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
Piersandro has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Ping timeout: 246 seconds]
billyoc has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
<shevy>
morning cooties
jasonkuhrt has joined #ruby
<Dwarf>
hai
jasonkuhrt has quit [Client Quit]
ngoldman has joined #ruby
mucker has quit [Quit: leaving]
dhruvasagar has quit [Remote host closed the connection]
khakimov has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
dev_ryan70 has joined #ruby
<shevy>
hi Elf
lggr has quit [Ping timeout: 245 seconds]
recycle has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
wallerdev has quit [Quit: wallerdev]
gavit has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby
lggr has joined #ruby
eph3meral has joined #ruby
rutkla has quit [Ping timeout: 252 seconds]
Guest81709 has joined #ruby
RichieEvan has quit [Ping timeout: 240 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
kvirani has joined #ruby
savage- has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
schickung has joined #ruby
charleshoffman has joined #ruby
charleshoffman has quit [Client Quit]
charleshoffman has joined #ruby
charleshoffman is now known as centipedefarmer
Jake232 has quit [Quit: Computer has gone to sleep.]
wuzzzzaah has joined #ruby
sdwrage has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
lggr has joined #ruby
gavit has quit [Read error: Connection timed out]
pitty has joined #ruby
greg- has joined #ruby
gavit has joined #ruby
lkba has joined #ruby
banisterfiend` has quit [Ping timeout: 265 seconds]
jasonkuhrt has quit [Quit: Leaving...]
lkba has quit [Read error: Connection reset by peer]
maletor has joined #ruby
cardoni has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby
dev_ryan70 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
idletom has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
lkba has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
fantazo has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
Jake232 has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
maletor has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Jng1Da1s6ho5t has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
tobyo1 has left #ruby ["WeeChat 0.3.2"]
adelcampo has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
Igneous has left #ruby [#ruby]
lggr has quit [Ping timeout: 248 seconds]
heisenmink has joined #ruby
mrdodo has quit [Remote host closed the connection]
lggr has joined #ruby
gen0cide_ has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
Lokans has joined #ruby
<Lokans>
anyone that could help me, got problems with getting require to work
<Lokans>
getting "cannot load such file", have tried to google, but still can't understand how to solve it
F1skr_ has joined #ruby
F1skr_ has quit [Client Quit]
clutchski has joined #ruby
haxrbyte has joined #ruby
F1skr_ has joined #ruby
<RegEchse>
Lokans: well then there is no such file in your $LOAD_PATH's dirs
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
gavit has quit [Read error: Connection timed out]
tyfighter has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
F1skr_ has quit [Client Quit]
iocor has quit [Ping timeout: 255 seconds]
gavit has joined #ruby
F1skr_ has joined #ruby
F1skr_ has quit [Client Quit]
<RegEchse>
and to name a particular fail case: in ruby 1.9 the current directory (".") isn't added to $: by default. (there's require_relative, though)
<shevy>
"require_relative works relative to the file that it is called from. In the case of IRb, there is no file, ergo it cannot work."
<clutchski>
shevy: thanks for the help. one more question … if i'm writing an app with multiple subdirectories, should i always use require_relative? so if i'm in foobar/models/a.rb, and need to load foobar/logging.rb, should i do `require_relative '../logging'`?
<shevy>
Lokans, seems irb is stupid. if you do "ruby methods.rb" or some other .rb file, it should work
<shevy>
clutchski, dunno. I never use require_relative myself
<shevy>
I dont like it
jimeh has quit [Ping timeout: 260 seconds]
<clutchski>
i feel like it's kind of nice to always import relative to the project root, and i'd rather not use require_relative.
<Lokans>
alright, ill test it shevy, thanks
<shevy>
I turn things into gem-like structure, then copy via setup.rb
<shevy>
and require will just work :)
<clutchski>
ok. i think i'll do that.
<clutchski>
thanks.
<shevy>
others use require_relative though
<shevy>
I just cant stand it
arubin has joined #ruby
<clutchski>
yea. it also means it won't work on 1.8, though you could probably monkey patch.
<clutchski>
or is that true?
<shevy>
yeah. my gems work on both ruby versions
iocor has quit [Quit: Computer has gone to sleep.]
<shevy>
"For some reason I don?t yet know for sure, require_relative does not work on IRB:"
RichieEvan has joined #ruby
<Lokans>
ill read it
<Lokans>
othervise ill just run *unix on my other laptop
bier has quit [Ping timeout: 268 seconds]
<shevy>
hehehe
<shevy>
unix is classically nice
shiki has joined #ruby
<shevy>
I'd wish it would have something like powershell though
lggr has joined #ruby
mahmoudimus has joined #ruby
cesar_bo has joined #ruby
gen0cide_ has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Client Quit]
RichieEvan has quit [Read error: Connection reset by peer]
bluenemo has quit [Remote host closed the connection]
adelcampo has quit [Quit: Leaving...]
Spooner has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
dmiller_ has quit [Remote host closed the connection]
<cesar_bo>
Hello All, I have an error after install mailcatcher → http://pastebin.com/myyEgTpS I'm using rvm. It starts correctly but after a second it fails for what I think is due can't establish correctly a websocket connection
<cesar_bo>
I'm really new in ruby, so I do not know much how interpret the stackerror, any hints?
adelcampo has joined #ruby
swarley has joined #ruby
leynos has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Foxandxss has joined #ruby
<shevy>
in `event_callback': undefined method `close' for 19:Fixnum (NoMethodError)
<shevy>
code tries to invoke method .close on the Fixnum 19
frogprince_mac has quit [Read error: Connection reset by peer]
<shevy>
this method does not exist so things fail
frogprince_mac has joined #ruby
<shevy>
don't know who is the real culprit of that
lggr has joined #ruby
atmosx has joined #ruby
gavit has quit [Read error: Connection timed out]
<atmosx>
hi
gavit has joined #ruby
jasonLaster has joined #ruby
bier has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<shevy>
atmosx!
<shevy>
atmosx how do you do
larissa has joined #ruby
ephemerian has quit [Quit: Leaving.]
<atmosx>
good, I'm getting paranoid with a script, other than that… Pretty great. I fucked up the biophysics exam, fucking Goldman equation :-( couldn't remember it
Lokans has quit []
<atmosx>
I was stuck with Nerst
<atmosx>
:-/
<atmosx>
anyway
<atmosx>
next year now… I got really lots and lots of credits
<shevy>
what script
<shevy>
hey I heard about the nernst equation
<shevy>
but not about Goldman
mercwithamouth has quit [Ping timeout: 264 seconds]
pdelgallego has quit [Quit: pdelgallego]
<atmosx>
well it's about a cell's permeability, actually Nerst made an equation about permeability but Goldman made a cell-specific one.. it's an optimized version of the prior
<atmosx>
anyway fuck that
clutchski1 has joined #ruby
<atmosx>
I have Greek markdown files
dmiller has joined #ruby
pitty has quit [Ping timeout: 260 seconds]
h4mz1d has quit [Ping timeout: 240 seconds]
<atmosx>
about 140 of them, in a directory. The files are like: 2007-12-01-ebcasdlk2j34dhdhaskd.markdown … but the contain a field like 'title: καλημέρα Ελλάδα' … I like to turn each file into 2007-12-01-καλημέρα-Ελλάδα.markdown
<rcsheets>
i see what you mean. but the parameter to delete is basically used like a character class.
<rcsheets>
so 'l' and 'll' and 'lllllllll' are all equivalent... i think.
ltsstar has quit [Quit: ltsstar]
gavit has quit [Read error: Connection timed out]
<shevy>
yeah
gavit has joined #ruby
brianpWins has quit [Quit: brianpWins]
Beoran_ has joined #ruby
macmartine has joined #ruby
c0rn_ has joined #ruby
rakl has joined #ruby
Beoran__ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Takehiro has joined #ruby
gfontenot has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
kirun has quit [Quit: Client exiting]
emmanuelux has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
gavit has quit [Read error: Connection timed out]
lggr has joined #ruby
gavit has joined #ruby
<atmosx>
shevy: do you read books? like novels etc?
clutchski1 has quit [Quit: Leaving.]
adelcampo has quit [Quit: Leaving...]
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
<shevy>
atmosx mostly only science books. I read only one fantasy novel author these days, Raymond Feist. started almost 20 years ago... but other than that... hmm... I read a few books about psychology too
<atmosx>
I wonder what quantity is enough to poison a rat
<m3pow>
i hate rozzers
<atmosx>
m3pow: a rat twice the size of a cat.
lggr has quit [Ping timeout: 245 seconds]
<atmosx>
It had a tail almost 1m
bradhe has quit [Ping timeout: 240 seconds]
zz_chrismcg is now known as chrismcg
<m3pow>
wow
<m3pow>
never seen those before
<m3pow>
still i saw one with a tail at about 30cm
<atmosx>
it was pink, but awfully bolded pink… he was panicked because he didn't realize that he was uncovered suddenly.. then he dissapeared between ruins. I was on the subway
thatRD has quit [Ping timeout: 272 seconds]
<atmosx>
m3pow: It was scary, i can still remember his teeths
<atmosx>
he was enormous
<atmosx>
and was moving very fast
banisterfiend` has joined #ruby
<m3pow>
still they're good when earthquakes come
<m3pow>
that's the only thing i can think of that they might be usefull
adelcampo has joined #ruby
<m3pow>
we have an old saying here "everything has a purpose on this world"
<atmosx>
They say they will release thousands of pythons… omg
<shevy>
cool
<shevy>
the rats in vienna are small :)
<atmosx>
the guy who released the 7 rats must be utterly stupid
<m3pow>
you're from AU shevy ?
<shevy>
hehe
<shevy>
from austria
<m3pow>
yeah
<atmosx>
Austria!
<m3pow>
brilliant country
<m3pow>
passed there several times
<m3pow>
awsome highways
<atmosx>
and mountains for snowboarding
<atmosx>
not to mention the girls
<shevy>
yeah... the ideal country to... PASS THROUGH :P
<m3pow>
nope
<atmosx>
true
<m3pow>
it;s like germany, but perfect
<shevy>
oh yeah, but that's the west with the mountains... the east is boringly flat
<m3pow>
hahahah
<shevy>
haha
<Gate>
shevy: Golden Gate Ruby Conference
<shevy>
ah it depends... Bavaria (southern germany) is quite nice
<atmosx>
I liked Berlin
<atmosx>
and Munich
<shevy>
Berlin? really?
<atmosx>
I mean they seemd a bit more vivid compared to vienna
<atmosx>
yes
<shevy>
Munich I can understand... but Berlin....... maaaaan
<atmosx>
Nah c'mon it's awesome…
<atmosx>
and huge
<atmosx>
I mean the distanced between square blocks, etc.
<m3pow>
i am a bit drunk atm ...went on a cousin's bday
<atmosx>
m3pow: cool
<m3pow>
but i wanna learn ranges in RUBY
<atmosx>
ranges?
<atmosx>
what are ranges?
<m3pow>
yes
<m3pow>
..
<m3pow>
a..c
<atmosx>
it's been a few days that I didn't write code in ruby, I must keep up with my sinatra book till the end hm
<shevy>
ranges are easy
<shevy>
start..end
<m3pow>
yes they are
<shevy>
a..z
* atmosx
is listening to Phill Collins - 15.In the air tonight, from the album Best of Phill Collins [5:30 mins] [320 kbps MPEG audio file] [12,94 MB] [played 15 times]
lggr has joined #ruby
<atmosx>
15 times
<shevy>
but implement ranges on your own now that's hard
<atmosx>
… shit didn't knew
<m3pow>
shevy you are an experiences programmer in ruby ?
<m3pow>
sorry my typos...as i said...a bit drunk
<m3pow>
:)
<shevy>
hmm semi-experienced... there are still some mysteries, like why some people use lots of procs
<m3pow>
but keen to learn more programming
<shevy>
I'd really like to find out
<shevy>
rack uses it for testing
<shevy>
there are like 120 examples of lambda {} there
dev_ryan_ has quit [Remote host closed the connection]
<m3pow>
i'm a beginner i admit ...also a beginner in linux
<m3pow>
still..i love to learn new stuff and understand concepts
<shevy>
linux I dont care that much but ruby is really awesome
<m3pow>
a bit more difficult on your own ...but the reward you get is substantial
<m3pow>
i did php before
demian`_ has joined #ruby
<m3pow>
but ruby is just ...logic
flip_digits has joined #ruby
<m3pow>
i love it to be honest
aristidesfl has quit []
mrdodo has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
<atmosx>
I'm a beginner to ruby, in linux I can do most thing easily… FreeBSD is more straight forward though and insanelly well documented
<shevy>
ewwwww bsd
gavit has quit [Read error: Connection timed out]
<shevy>
I think linux is the more creative OS these days
jasonLaster has joined #ruby
<shevy>
where did git originate from, where!
<shevy>
where!!!
<shevy>
that's right :)
<m3pow>
keen to learn git too
<shevy>
linus should stop with the kernel and instead kick-start only cool projects