<Hanmac>
jarajav but the bot is not hanmac safe yet :'D
<sheerun>
> "yes I am!"
<jrajav>
Good luck with the sandbox
<sheerun>
oh
<sheerun>
he left
<jrajav>
I went that route to begin with and it was just ugh
Araxia has joined #ruby
<jrajav>
Mine uses a chroot now
<jrajav>
But I can't host it and Xeago hasn't had an opportunity to get it set up apparently
<csmrfx>
yeah, sorry but the bot triggers spam bot if repeats too often
havenn has joined #ruby
rich__ has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
robbyoconnor is now known as r0bby
r0bby is now known as robbyoconnor
Cultofmetatron has joined #ruby
<krazyj>
noob question… how would i run a basic ruby script on an HTTP server (ala a PHP script)? just an single file of code that takes HTTP arguments and performs logic.
Araxia has quit [Read error: Connection reset by peer]
<krazyj>
i mean, i want to do a *little* more than write to disk
<krazyj>
but, point being, basic stuff
<csmrfx>
you can send requests from http server to app server, sure
<csmrfx>
see phrogz article
<swarley>
krazyj; for good practice, you should never install rails for anything
<krazyj>
swarley: heh
Araxia has joined #ruby
<jrajav>
sheerun: Yup; chroot takes care of most of the magic
<krazyj>
csmrfx: ooh phrogz article is great. thansk.
<krazyj>
s/thansk/thanks/
Russell^^ has quit [Quit: Russell^^]
karakedi has joined #ruby
somazero has quit [Remote host closed the connection]
<csmrfx>
yeah, the stackoverflow link should clear things up for rails planning
jonan has quit [Quit: jonan]
sheerun has left #ruby [#ruby]
<Spaceghostc2c>
csmrfx: People are still playing with diaspora?
osvico has joined #ruby
uuair has quit [Quit: uuair]
<atmosx>
Spaceghostc2c: not really, no
qwerxy has joined #ruby
<csmrfx>
who knows
<csmrfx>
but that link is pretty succinct on how to set up a thin 'app server' with apache
tommyvyo has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
havenn has quit [Remote host closed the connection]
jenrzzz has joined #ruby
postmodern has joined #ruby
slainer68 has quit [Remote host closed the connection]
<krazyj>
does an app server necessarily have to be heavy? i.e. i'm talking about just a way to just execute ruby scripts served up to it by the HTTP server...
<krazyj>
not use a whole framework, yadda yadda
<csmrfx>
did I say thin?
<csmrfx>
did somebody else say thin?
snearch has quit [Quit: Verlassend]
<csmrfx>
I think thin was mentioned
<krazyj>
il check it out
<krazyj>
on first blush, it looked like thin was rails-specific
khakimov has quit [Ping timeout: 276 seconds]
<krazyj>
i don't want a *web* server.. i have that
<swarley>
r = gets.to_f pi = 3.14 A = pi*r*r puts A gets
jarred has quit [Quit: jarred]
batdorf has quit [Ping timeout: 240 seconds]
thinkdevcode has joined #ruby
samg_ has joined #ruby
<Grieg>
nah. if u dload it and open in notepad or smth itll be broken to lines
hbpoison has joined #ruby
Tania has quit [Quit: :p]
thinkdevcode has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 268 seconds]
swarley has quit [Ping timeout: 260 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mneorr_ has joined #ruby
<Grieg>
k i see the problem now. i use notepad++ to edit my .rb. now i opened it in microsoft notepad and it's all in a single string. guess my editor is broken
swarley has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
<csmrfx>
Math::PI
fms has quit [Ping timeout: 252 seconds]
<Grieg>
so another question: "gets" requests a string followed by enter or just enter how do i request "anykey" instead?
ttt__ has quit [Remote host closed the connection]
ttt has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
emanon_ has quit [Remote host closed the connection]
roadt_ has joined #ruby
ryanf has joined #ruby
xsbeats has joined #ruby
jcaudle has joined #ruby
jhgaylor has quit [Read error: Connection reset by peer]
jhgaylor has joined #ruby
justinmcp has quit [Remote host closed the connection]
jcaudle has quit [Client Quit]
justinmcp has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ has left #ruby [#ruby]
newton10471 has joined #ruby
bradhe has joined #ruby
buscapepe has joined #ruby
newton10471 has quit [Client Quit]
newton10471 has joined #ruby
newton10471 has left #ruby [#ruby]
butblack has quit [Quit: butblack]
justinmcp has quit [Ping timeout: 245 seconds]
awarner has quit [Remote host closed the connection]
cyong has joined #ruby
viuo has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
jeffreybaird has joined #ruby
butblack has quit [Client Quit]
butblack has joined #ruby
jjbohn has quit [Quit: Leaving...]
viuo has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
emergion has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
kil0byte has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 252 seconds]
nari has joined #ruby
manizzle has joined #ruby
jeffreybaird has joined #ruby
jipiboily has joined #ruby
jipiboily has quit [Client Quit]
buscapepe has quit [Quit: buscapepe]
buscapepe has joined #ruby
areil has joined #ruby
jjang has quit [Remote host closed the connection]
<jarred>
I add stuff to the requests queue later on in the code
amacgregor_osx has quit [Read error: Operation timed out]
<jarred>
and it never gets processed, when I access the thread, I get #<Thread:0x007fe1fc57b288 dead>
justinmcp has quit [Ping timeout: 240 seconds]
<Karunamon>
hmm.. i think activerecord is trying to be too smart for its own good here
<jarred>
Is there anything obviously stupid I'm doing?
araujo has quit [Ping timeout: 252 seconds]
scx has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
tbrock has joined #ruby
<jarred>
Karunamon: Sublime Text 2 is a great text editor -- as an IDE, I'm not particularly sure. For small-moderately sized (~35,000 lines of code) Rails apps Sublime Text 2 is very good
niklasb has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
<jarred>
erichmenge: I can paste the whole file if that's easier
baroquebobcat has joined #ruby
araujo has joined #ruby
<erichmenge>
jarred: I'm not much of a threading expert :( You're sure it isn't raising?
pu22l3r has quit [Ping timeout: 256 seconds]
<Karunamon>
so i use an object method to insert something into my database mid loop.. the loop iterates again, and i get a postgres field too long error
<Karunamon>
which makes no sense because elsewhere in this loop it inserted lines longer than the one it's working on
samg_ has quit [Quit: leaving]
tbrock has quit [Ping timeout: 252 seconds]
<jarred>
erichmenge: I think so
<jarred>
I'll double check
<erichmenge>
jarred: Also, shouldn't you have some sort of sleep in that loop? :)
<jarred>
yeahhhhhh
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
amacgregor_osx has joined #ruby
bradhe has quit [Remote host closed the connection]
Ruler_Of_Heaven_ has quit [Ping timeout: 252 seconds]
dnyy has quit [Remote host closed the connection]
pipopopo has joined #ruby
Justakill has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
Araxia has quit [Read error: Connection reset by peer]
shammancer has joined #ruby
<Karunamon>
this is.. bizarre
<Karunamon>
i'm using a gem to parse out a .INI file
<Karunamon>
and inserting the data into a db..
<Karunamon>
for some weird reason, it gets to this particular line, the gem stops parsing the INI file correctly, and instead grabs the entire rest of the file from where it is
jjbohn has joined #ruby
<Karunamon>
hence the field too long error
<erichmenge>
Karunamon: Sounds like you have some strange dealings going on.
ejholmes has quit [Quit: ejholmes]
shammancer has quit [Client Quit]
shammancer has joined #ruby
<Karunamon>
... #(&*!ing quotes!
Edward_ has joined #ruby
Edward_ has quit [Client Quit]
jcaudle has joined #ruby
joofsh has joined #ruby
cyong has quit [Quit: Leaving.]
cyong has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
jjbohn has quit [Ping timeout: 256 seconds]
xsbeats has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
xsbeats_ has joined #ruby
uuair has quit [Quit: uuair]
tommyvyo has quit [Quit: Computer has gone to sleep.]
pjb3 has quit [Quit: pjb3]
crackfu_ has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
xsbeats_ is now known as xsbeats
bradhe has joined #ruby
wrapids has joined #ruby
<wrapids>
Anyone here with at least a BA that wouldn't mind me asking them a few interview style questions about their career/career choice for a technical writing assignment?
yshh has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
tbrock has joined #ruby
tommyvyo has joined #ruby
CQN has joined #ruby
joeycarmello has joined #ruby
rburton- has joined #ruby
jonan has joined #ruby
krz has joined #ruby
jonan is now known as register
register is now known as jonan
rjsamson has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
shiin has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
rjsamson has quit [Ping timeout: 260 seconds]
pjb3 has quit [Quit: pjb3]
hbpoison has joined #ruby
ddd has quit [Quit: Leaving.]
jrajav has quit []
CaptainJet has quit []
cyong has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
h4mz1d has joined #ruby
chimkan has quit [Quit: chimkan]
hbpoison has quit [Ping timeout: 252 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Quit: jgrevich]
osvico has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
xsbeats has quit [Ping timeout: 248 seconds]
kiyoura has joined #ruby
DoctorDude has joined #ruby
cyong has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
swarley has quit [Read error: Operation timed out]
pu22l3r has joined #ruby
DoctorDude has left #ruby [#ruby]
h4mz1d has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
justinmc_ has quit [Remote host closed the connection]
jonan has quit [Quit: jonan]
linoj has quit [Quit: linoj]
pjb3 has joined #ruby
BoomCow has joined #ruby
jcaudle has quit [Quit: jcaudle]
tealmage has joined #ruby
h4mz1d has joined #ruby
Nanuq has joined #ruby
awarner has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
shammancer has quit [Remote host closed the connection]
siyusong has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
jenrzzz has joined #ruby
slainer68 has joined #ruby
<Karunamon>
Welp, I finally got my bot working
<Karunamon>
massive thanks to aperios_ and erichmenge :)
Karunamon has quit [Quit: —I-n-v-i-s-i-o-n— 3.3 (November '11)]
siyusong has quit [Client Quit]
chimkan has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
fir_ed has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
hbpoison has joined #ruby
pjb3 has quit [Quit: pjb3]
Mon_Ouie has joined #ruby
DrShoggoth has joined #ruby
caleb_io has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bnagy_ has quit [Remote host closed the connection]
grizlo42 has joined #ruby
mahmoudimus has joined #ruby
areil has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ is now known as xsbeats
caleb_io has quit [Quit: caleb_io]
kiyoura has quit [Quit: Leaving]
areil has joined #ruby
justinmcp has joined #ruby
armenb has quit [Remote host closed the connection]
grizlo42 has left #ruby [#ruby]
hbpoison has joined #ruby
wrapids has quit [Quit: Page closed]
bradhe has joined #ruby
davidokner has joined #ruby
tealmage has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
savage- has joined #ruby
butblack has quit [Quit: butblack]
pu22l3r has quit [Remote host closed the connection]
tealmage has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
kil0byte has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
mneorr has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
bigmac has quit [Remote host closed the connection]
areil has quit []
g-ram has joined #ruby
Jackneill has joined #ruby
Jackneill is now known as Guest10501
aamax has joined #ruby
<aamax>
hi folks. how goes it? I was playing with implementing the game of life as an exercise. I got the code done for handling all the logic and wanted to do some kind of display for it. I found an example where someone else did it using openGl. I've never done anything with it before and am having a tough time getting what I think are the libraries installed. I tried installing ruby-opengl but the install fails every time. any suggestions
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
burgestrand1 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
chendo_ has quit [Ping timeout: 240 seconds]
Guest10501 has quit [Quit: Guest10501]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
burgestrand has quit [Ping timeout: 260 seconds]
chendo_ has joined #ruby
burgestrand1 has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
areil has joined #ruby
grizlo42 has joined #ruby
thecreators has joined #ruby
savage- has joined #ruby
dmiller has quit [Remote host closed the connection]
joeycarmello has joined #ruby
cirwin has joined #ruby
keyvan has quit [Remote host closed the connection]
Tearan has joined #ruby
grizlo42 has left #ruby [#ruby]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
roadt_ has quit [Ping timeout: 246 seconds]
n1x has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
fms_ has quit [Ping timeout: 252 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
thecreators has quit [Quit: thecreators]
joeycarmello has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
Xeago has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
g-ram has joined #ruby
chendo_ has quit [Ping timeout: 268 seconds]
Xeago has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
roadt_ has joined #ruby
chendo_ has joined #ruby
siyusong has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
viuo has quit [Ping timeout: 260 seconds]
uuair has joined #ruby
justinmcp has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
glupo has joined #ruby
justinmcp has joined #ruby
viuo has joined #ruby
elico has joined #ruby
elico has quit [Client Quit]
grizlo42 has joined #ruby
justinmcp has quit [Ping timeout: 276 seconds]
tealmage has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
grizlo42 has left #ruby [#ruby]
tealmage has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
ananthakumaran has joined #ruby
gbluma has joined #ruby
burgestrand has joined #ruby
gbluma has quit [Client Quit]
samphippen has joined #ruby
Jonah11_ has quit [Ping timeout: 256 seconds]
quest88 has joined #ruby
Jonah11_ has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Quit: Sleepy Badger....]
bradhe has quit [Ping timeout: 246 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
araujo has quit [Read error: Operation timed out]
mneorr has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
areil_ has joined #ruby
areil_ has quit [Client Quit]
areil_ has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
areil_ has left #ruby [#ruby]
areil has quit [Ping timeout: 268 seconds]
emergion has joined #ruby
areil has joined #ruby
shevy3 has quit [Ping timeout: 252 seconds]
yxhuvud has joined #ruby
<TTilus>
maybe try something simplier first, like no graphics at all :)
Cork- has quit [Read error: Connection reset by peer]
<TTilus>
console
Cork has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
dakine has joined #ruby
brianpWins has joined #ruby
ryanf has joined #ruby
araujo has joined #ruby
havenn has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
enderx86 has joined #ruby
fms has joined #ruby
fms is now known as Guest76624
<enderx86>
what's better, ruby or python?
<burgestrand>
both
<enderx86>
pros and cons?
<burgestrand>
all
aamax has left #ruby ["Leaving"]
<burgestrand>
enderx86: they are different, neither better nor worse than the other
<enderx86>
well, Rails certainly beats any Python web framework... or am I wrong?
<Spaceghostc2c>
enderx86: You're probably drunk.
<Spaceghostc2c>
But not necessarily wrong.
<enderx86>
I'm not drunk.
<burgestrand>
enderx86: I’m sure the people using django disagree.
<Spaceghostc2c>
I'm sure the people who have weak lambdas disagree.
<Spaceghostc2c>
Oh, did I say that? Oops.
<enderx86>
I'm curious because... I'm interested in web app development
<enderx86>
I have many years' experience in writing desktop apps in Java
justinmcp has joined #ruby
<enderx86>
Now I'm moving toward something new...
kil0byte_ has joined #ruby
<Spaceghostc2c>
enderx86: Try brainfuck
<enderx86>
and I want to pick the right language
<Spaceghostc2c>
enderx86: Kidding. There is no Right language.
<Spaceghostc2c>
Right Language™ was Fortran years ago.
<enderx86>
If you develop a criteria, there is.
<burgestrand>
enderx86: ruby is not for everyone, despite having rails; some people simply prefer python. I would advice you to try ruby.
<Spaceghostc2c>
enderx86: Nope.
Guest76624 has quit [Ping timeout: 248 seconds]
<burgestrand>
enderx86: but going into ruby with the mindset it’ll be your only language forever will not be good for your health. Even if ruby is not for you, the investment of time and change of perspective will be worth the time spent.
<enderx86>
criteria: 1) marketability of one's skill in the language 2) speed of development 3) scalability
<burgestrand>
Scalability is not a language feature.
<burgestrand>
It’s a developer feature.
keyvan has quit [Remote host closed the connection]
<enderx86>
some langauges skill better than others, e.g. java over python
<Spaceghostc2c>
enderx86: I think your 'criteria' are pretty funny. Are you some kind of comedian?
<cirwin>
(python v ruby that is)
<cirwin>
do ruby because it has blocks
<cirwin>
or do python, because it was designed
<enderx86>
Little do you know... I am quietly judging the language by its practitioners...
<burgestrand>
You should always.
<Spaceghostc2c>
enderx86: Little do we care. :)
kil0byte has quit [Ping timeout: 256 seconds]
<Spaceghostc2c>
Choose something you like.
<enderx86>
Python programmers are far more helpful and much more serious. What does that say about Ruby?
<cirwin>
enderx86: ruby community are much more "go for it, we want people to have fun"; python community are much more "think about it, we want people to do a good job"
<enderx86>
Perhaps it encourages indolence.
<Spaceghostc2c>
enderx86: Nothing, really.
<burgestrand>
Python IRC still bans you for LOLing in the channel?
<Spaceghostc2c>
You can't really pit us against pythonists, because there are few fucks to give on a Monday morning.
<burgestrand>
Anybody know?
<Spaceghostc2c>
enderx86: I suggest you check out scala.
<enderx86>
Yes, spaceghost. My point exactly. Python programmers are much more serious.
<Spaceghostc2c>
burgestrand: Who cares? :D
<burgestrand>
Or clojure!
<Spaceghostc2c>
enderx86: Sounds like your kind of gig!
<burgestrand>
Spaceghostc2c: you have to agree, banning somebody for LOL is kind of funny.
<Spaceghostc2c>
burgestrand: Depends on the lolsomeness of the lol given.
<enderx86>
Listen, spaceghost, I l-o-l plenty
<Spaceghostc2c>
enderx86: I don't care. :D
<Spaceghostc2c>
Listen to that.
<burgestrand>
Spaceghostc2c: lol.
<Spaceghostc2c>
You haven't asked one question of substance yet.
<enderx86>
cirwin: you have been the most helpful
<burgestrand>
I don’t think he likes us, sorry enderx86, straight shootings on monday mornings.
<enderx86>
cirwin: what do you mean, 'or do python, because it was designed' - i don't understand you here
<Spaceghostc2c>
burgestrand: I kind of hope he goes to python, he's a bit too straightedge. :D
bradhe has joined #ruby
<burgestrand>
Spaceghostc2c: I don’t really care which he chooses, but I do find him intruiging.
<cirwin>
enderx86: a lot of ruby's features feel somewhat organic — there are a reasonable number of special cases that were added for convenience, or because it seemed like a good idea
<cirwin>
enderx86: python feels much more consistent
<Spaceghostc2c>
It's hard to be serious when he asks such lulzy questions. :D
<burgestrand>
Yeah it’s a bit general…
<cirwin>
but at the expense of not having that extra "wow, that's cool" in the common case
<burgestrand>
enderx86: do you do… science?
<Spaceghostc2c>
burgestrand: I have to admit. Python is really awesome at making IRC bots. :p
<cirwin>
blocks are perhaps the best example of that — you can pass only one block to a function. Python would never special-case like that
<Spaceghostc2c>
The highest calling of any programming language.
djdb has joined #ruby
<Spaceghostc2c>
cirwin: Well, there's some hacky ways you can pass multiple blocks to a function.
<burgestrand>
To be fair, you don’t pass it to the same function.
<Spaceghostc2c>
So!
<Spaceghostc2c>
burgestrand: Making all my lulzy go away. :(
<cirwin>
Spaceghostc2c: sure, but you'd avoid that in an API because it's ugly
elsifaka has joined #ruby
<burgestrand>
\o/
<rking>
cirwin: Ha! Their lambda's only allow *one statement*
<burgestrand>
cirwin: maybe!
<cirwin>
rking: :)
<burgestrand>
… but then again, maybe not.
<burgestrand>
Hmmm.
<Spaceghostc2c>
Their lambdas are as weak as that one bartender (you know the one) at the bar that barely puts any alcohol in your $8 drink.
<cirwin>
"The letter G walked into a hexidecimal bar"
<cirwin>
"The barman said:"
pyx has joined #ruby
<cirwin>
"Why the wrong base?"
<Spaceghostc2c>
lol :(
<enderx86>
lol
<burgestrand>
Lucky we’re not in python.
<enderx86>
thanks cirwin for your comparison
<enderx86>
yes, that rule is telling
<burgestrand>
I must investigate.
<burgestrand>
Yup.
<burgestrand>
NO LOL.
<cirwin>
enderx86: if you're looking to open your mind, I'd suggest you go with ruby — once you get past thinking "ugh, this is just a whole bundle of hacks", it actually works quite well
<Spaceghostc2c>
At least we can agree, node devs are lulzy even though they don't notice it most of the time.
<Spaceghostc2c>
The best ruby book, imo: Metaprogramming Ruby.
<burgestrand>
They can’t risk blocking whatever they are doing by laughing.
<Spaceghostc2c>
I love it so much, I gave it a cute nickname. "Metabrogramming Roobee"
<burgestrand>
Sounds awfully concentrated on one topic for a book to recommend it to a newcomer.
<Spaceghostc2c>
burgestrand: It isn't.
chendo_ has quit [Read error: Operation timed out]
<Spaceghostc2c>
If you've read it, the first half is all ruby object model.
<rking>
burgestrand: Yeah, the title is a burden for the book.
<Spaceghostc2c>
Which was like acid straight to my dome when I read it.
colinbm has joined #ruby
fixl has joined #ruby
<burgestrand>
I don’t really read ruby books anymore, but I feel I have a bunch of them to skim and it’s just piling on.
joeycarmello has joined #ruby
<Spaceghostc2c>
burgestrand: I just take forever to read mine, but I read them completely and do online researches.
rich__ has quit [Ping timeout: 240 seconds]
<burgestrand>
On another note, apparently it’s completely fine to "hah", but not LOL.
<burgestrand>
Acronyms are bad. Also, good morning.
<Spaceghostc2c>
True story about spaceghost: If I can't find something on google, I go to altavista, then dogpile, then eventually down the line I'll hit up bing.
fantazo has joined #ruby
<burgestrand>
Oh, altavista, how much time I’ve lost to you in the beginnings of the internet.
<burgestrand>
I wonder if rubyists are more childish than pythonistas; their irc always looks so tight.
<Spaceghostc2c>
I'm just a prat. :D
answer_42 has joined #ruby
samuel02 has joined #ruby
chendo_ has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
siyusong has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
<enderx86>
5.times { puts say }
bradhe has quit [Ping timeout: 260 seconds]
<enderx86>
*brain explodes*
joeycarmello has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 244 seconds]
<Spaceghostc2c>
pythonists love their counters too much
colinbm has quit [Quit: colinbm]
<burgestrand>
enderx86: you should check out rspec and sinatra, they make heavy use of blocks.
<burgestrand>
enderx86: rspec is a testing framework, sinatra is a minimal (very minimal, too minimal for most things) web framework.
<Spaceghostc2c>
Rails source is a veritable smorgasbord of metabrogramming techniques.
BoomCow has quit [Quit: Leaving]
apeiros_ has quit [Ping timeout: 260 seconds]
<burgestrand>
It’s a smörgåsbord of pretty much everything, there is no way to navigate in there.
hhh has joined #ruby
<hhh>
hi
jaygen has quit [Remote host closed the connection]
<burgestrand>
hhh: hhhi!
<Spaceghostc2c>
hhho hhho hhho
<hhh>
hru
<hhh>
ntek
<Spaceghostc2c>
NO
<burgestrand>
I concur.
<rking>
burgestrand: Thanks for teaching me the right way to accent "smörgåsbord".
<hhh>
u suck
<Spaceghostc2c>
I cancer.
<hhh>
:)
<Spaceghostc2c>
hhh: It's true.
<hhh>
jadabta
<hhh>
??
<burgestrand>
rking: varsågod, i.e. you’re welcome.
<Spaceghostc2c>
hhh: Is it true?
hhh has left #ruby [#ruby]
<Spaceghostc2c>
burgestrand: :D
dhruvasagar has joined #ruby
tealmage has joined #ruby
<Spaceghostc2c>
I was about to make fun of his mother by telling him that she's a cow.
haxrbyte has joined #ruby
<burgestrand>
Oh, he parted.
<Spaceghostc2c>
pansy.
<burgestrand>
(on another note, varsågod could also be used as "help yourself", suits well with smörgåsbor)
havenn has joined #ruby
<JohnTeddy>
The repl.it ruby outputs nice colors, pink for errors, green for return output, and white for standard output... How can I have my irb do that?
haxrbyte has quit [Remote host closed the connection]
<JohnTeddy>
right now it's just all black/white in the shell.
haxrbyte has joined #ruby
jenrzzz has joined #ruby
<burgestrand>
Nice to see repl.it still up.
tealmage has quit [Ping timeout: 268 seconds]
<burgestrand>
Too bad ruby is still at 1.8.7. :(
shevy has joined #ruby
<JohnTeddy>
burgestrand: How can I make my 1.9.3 ruby irb output colorful/pretty?
<cirwin>
JohnTeddy: use pry!
fms_ has joined #ruby
jarred has quit [Quit: jarred]
<elliottcable>
This is an obscure question; but anybody know if I can ask a terminal I’ve been backgrounded in to refresh the prompt? http://stackoverflow.com/q/13227530
kil0byte has joined #ruby
fms_ has quit [Client Quit]
Floydzy has joined #ruby
<cirwin>
elliottcable: not really — it can only append to stdout
<rking>
elliottcable: zsh has a way to do that
areil has quit [Ping timeout: 252 seconds]
<elliottcable>
rking: got any links for me? or a word I can google?
kil0byte_ has quit [Ping timeout: 240 seconds]
<rking>
elliottcable: Trying to find it, myself.
<elliottcable>
rking: :D
margle has joined #ruby
havenn has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
tonini has joined #ruby
<rking>
It's working for me already
<rking>
I just don't know what causes it to work yet
<rking>
OK, it works without any config at all.
<rking>
elliottcable: Answer is to switch to zsh and be happy. ☺
aoclown has joined #ruby
<elliottcable>
as far as I can tell, I have to *type something* to get ZSH to reprint the prompt
<elliottcable>
or maybe wait a bit
<elliottcable>
but nonetheless, agreed: switch to zsh and be happy. ;)
<aoclown>
Can anyone tell me in Mixed Install with RVM if the manager can use home directory gemsets somehow? The docs say not to run the command that does it.
monkegji_ has joined #ruby
<aoclown>
I also checked the #rvm channel, but every one is sleeping :(
hamed_r has joined #ruby
<rking>
elliottcable: What zsh version?
monkegji_ has quit [Remote host closed the connection]
shevy_ has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
quest88 has quit [Quit: quest88]
margle has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
Banistergalaxy has joined #ruby
tealmage has joined #ruby
* JonnieCache
has dicovered "Get Up With It"
<JonnieCache>
miles davis is god
hsbt_away is now known as hsbt
freeayu has joined #ruby
Hanmac1 is now known as Hanmac
AndChat| has joined #ruby
hsbt is now known as hsbt_away
tealmage has quit [Read error: Operation timed out]
baphled has joined #ruby
jagira has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
hsbt_away is now known as hsbt
Xeago has quit [Ping timeout: 276 seconds]
hoelzro is now known as hoelzro|away
dr_bob has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
jipiboily has joined #ruby
hsbt is now known as hsbt_away
AndChat| has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
JonnieCache has quit [Quit: leaving]
JonnieCache has joined #ruby
nari has quit [Ping timeout: 260 seconds]
jipiboily has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
niklasb has joined #ruby
bier has quit [Ping timeout: 255 seconds]
hsbt has joined #ruby
hsbt is now known as hsbt_away
jagira has quit [Quit: Leaving]
hsbt_away is now known as hsbt
margle has joined #ruby
PragCypher has quit [Quit: Leaving]
larissa has joined #ruby
paul_s has left #ruby [#ruby]
hsbt is now known as hsbt_away
margle has quit [Client Quit]
d3vic3 has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
shiin has joined #ruby
hsbt_away is now known as hsbt
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
AndChat| has joined #ruby
vlad_starkov has joined #ruby
fyolnish has joined #ruby
bier has joined #ruby
u89 has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
fyolnish has quit [Ping timeout: 245 seconds]
AndChat| has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
edwardj has joined #ruby
hsbt_away is now known as hsbt
robbyoconnor has quit [Quit: Konversation terminated!]
Banistergalaxy has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
fir_ed has quit [Ping timeout: 256 seconds]
cdt has joined #ruby
hsbt is now known as hsbt_away
Banistergalaxy has joined #ruby
hsbt_away is now known as hsbt
yshh has joined #ruby
margle has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
samphippen has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
samphippen has joined #ruby
hoelzro|away is now known as hoelzro
AndChat| has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Read error: Connection reset by peer]
clj_newb has quit [Ping timeout: 265 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
schaary has quit [Quit: Leaving.]
krz has quit [Quit: krz]
banisterfiend has joined #ruby
dr_bob has joined #ruby
dr_bob has quit [Client Quit]
Cool_Fire has joined #ruby
iamjarvo has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
<Cool_Fire>
Morning. I've got a question about mechanize; on a Mechanize::Page object body() gives me the full page body rather than what's between the <body> tags, which is what I want. Anyone know a reliable way to get this?
thinkit has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
<workmad3>
Cool_Fire: parse the body with nokogiri and then query it for the body content
<JonnieCache>
Cool_Fire: "body" there is referring to the http response body rather than the html body
<JonnieCache>
nokogiri is indeed what you want
thinkit has joined #ruby
carloslopes has joined #ruby
chussenot has quit [Quit: chussenot]
hamed_r has joined #ruby
hsbt is now known as hsbt_away
kil0byte has joined #ruby
tealmage has joined #ruby
<Cool_Fire>
Yeah, I guess. I was rather hoping mechanize would have something for this already though. (It's got everything else :P )
banisterfiend has quit [Remote host closed the connection]
<JonnieCache>
i dont know mechanise specifically, maybe it does
<JonnieCache>
but it would make sense to leave the parsing up to you, as people would want to do it in many different ways
<workmad3>
Cool_Fire: I don't believe mechanise stores the processed page as a DOM
hsbt_away is now known as hsbt
havenn has quit [Ping timeout: 240 seconds]
colinbm has quit [Quit: colinbm]
Banistergalaxy has joined #ruby
<Cool_Fire>
Well, since it parses out links and title I thought the <body> section wouldn't be too far fetched
<Cool_Fire>
Can't have all the luck I guess
hbpoison has quit [Ping timeout: 265 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<workmad3>
Cool_Fire: that could be done with a SAX parser as the page is received, pulling out just the bits that you would typically want to deal with programatically
hsbt is now known as hsbt_away
<workmad3>
Cool_Fire: at a much lower memory overhead than storing the entire page DOM in memory :)
hsbt_away is now known as hsbt
AndChat| has quit [Ping timeout: 268 seconds]
<workmad3>
Cool_Fire: and wouldn't leave a processed version of the body element content hanging around
<workmad3>
(no idea if that is what mechanise does, but considering what mechanise targets itself for, it would make sense)
tealmage has quit [Ping timeout: 240 seconds]
reisl has joined #ruby
abrausch has joined #ruby
justinmcp has joined #ruby
hbpoison has joined #ruby
<Cool_Fire>
Don't get me wrong, it makes perfect sense.
<Cool_Fire>
I just like being lazy
BrianJ has quit [Quit: BrianJ]
erichmenge has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
larissa has quit [Ping timeout: 256 seconds]
ABK has quit [Ping timeout: 265 seconds]
hsbt has quit [Ping timeout: 248 seconds]
freeayu has quit [Ping timeout: 252 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
awestroke has quit [Remote host closed the connection]
edwardj has quit [Remote host closed the connection]
fyolnish has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
dhruvasagar has quit [Ping timeout: 244 seconds]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
ananthakumaran has quit [Quit: Leaving.]
keyvan has quit [Remote host closed the connection]
Grieg_ has quit [Quit: laterz! :D]
Stan_BR has joined #ruby
<Stan_BR>
hi all.
hsbt is now known as hsbt_away
<Stan_BR>
im trying to build a simple http server using gserver. It works fine on chrome, but on some versions of firefox it shows the source code of the page instead of the html page. I guess it understand it as plain/text and not as text/html. Any clues why?
keyvan has joined #ruby
hsbt_away is now known as hsbt
<workmad3>
Stan_BR: you probably forgot to set the content-type header of the http response
<Stan_BR>
yeah. All Im doing is this (inside the head): <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
hsbt is now known as hsbt_away
<Stan_BR>
is there anything else i should do?
rh1n0 has joined #ruby
keyvan has quit [Remote host closed the connection]
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
tealmage has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dr_bob has joined #ruby
hsbt_away is now known as hsbt
csmrfx has left #ruby ["laters"]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<trash>
ahoi, how would one parse config files which look like FOO="value" (e.g. NETIF="ifname=eth0,mac=00:18:51:F7:48:01,host_mac=00:18:51:8D:7D:FC,network=vlan401,gw=37.44.2.177,ip=37.44.2.190/255.255.255.240,ip6=") - further more parsing this special example.
<apeiros_>
converts binary data into the hex values of the bytes
<apeiros_>
fooo: ah, missed your gist
hsbt has quit [Ping timeout: 264 seconds]
<fooo>
thats actually just what i needed apeiros_ :)
jeffreybaird has joined #ruby
<apeiros_>
fooo: ok… I'm confused now… it looked to me as if your code was already complete…
<apeiros_>
trash: scan + regex
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<apeiros_>
trash: I'd be careful to read about the escaping mechanisms, though. it's easy to mess those up and end up with corrupt data.
Vert has joined #ruby
<fooo>
apeiros_: i am migrating to java and my program is giving the incorrect hash value for some reason. I just wanted to compare the raw binary input to the sha1 function.
<trash>
apeiros_: Hmm, would you have an approach for this line for example?
bairui has quit [Ping timeout: 260 seconds]
<Stan_BR>
JonnieCache: workmad3: fyi, I just need to add this at the very beggining of the response: HTTP/1.0\r\n\r\n
nari has joined #ruby
<Stan_BR>
JonnieCache: workmad3: thanks for the help anyway =)
<trash>
I'd help me if I'd have the initial key="value" in one variable and then those sub-values in own variables
<Stan_BR>
opz, i mean HTTP/1.0\r\n
Proshot has quit [Quit: Leaving]
<workmad3>
Stan_BR: ah, yes... well, we probably both figured that you were already sending back a valid HTTP response
<Stan_BR>
;P
Xeago has joined #ruby
Axsuul has quit [Ping timeout: 244 seconds]
jrist-out is now known as jrist
fyolnish has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 255 seconds]
rafter has joined #ruby
<JonnieCache>
whats the syntax for triggering a rake task from within another rake task?
<JonnieCache>
dunno. anything could happen in this crazy world!
<workmad3>
JonnieCache: and why not manage your crontab with a whenever file?
<JonnieCache>
considered that. boss said thats too much extra stuff for right now. at some point we will have a proper system
lenovodroid has quit [Client Quit]
ddd has joined #ruby
<JonnieCache>
i think a cron:daily task is a good solution, screw you guys :)
iamjarvo has quit [Quit: Computer has gone to sleep.]
<workmad3>
JonnieCache: you could also have the crontab file in your project, versioned and managed nicely, and part of your deployment is installing it into your project user's crontab ;)
aetcore has quit [Remote host closed the connection]
<JonnieCache>
thats what whenever does
<workmad3>
yes, but this way isn't prohibited by your boss :P
<JonnieCache>
its not prohibited as such, i can do what i want, but im not really in a position to start messing with production systems without taking up lots of his time yet
voodoofish has quit [Ping timeout: 260 seconds]
<JonnieCache>
ive not been here long enough to do it on my own, i dont know their setup yet. thats the real problem
<JonnieCache>
otherwise id just do it without asking :)
<workmad3>
hmm, do they have any guidelines on the subject of crontabs?
<workmad3>
any ways they like them managed, etc?
justinmc_ has quit [Remote host closed the connection]
tealmage has joined #ruby
Slivka has joined #ruby
hsbt has quit [Ping timeout: 264 seconds]
erichmenge has quit [Quit: Be back later]
tealmage has quit [Remote host closed the connection]
pjb3 has quit [Quit: pjb3]
hsbt has joined #ruby
JustinCampbell has joined #ruby
Araxia has joined #ruby
robustus has joined #ruby
srji has joined #ruby
tommyvyo has joined #ruby
seanyo has joined #ruby
hsbt is now known as hsbt_away
cousine has quit [Remote host closed the connection]
ffranz has joined #ruby
nari has joined #ruby
voodoofish has joined #ruby
aquaranto has joined #ruby
hsbt_away is now known as hsbt
horofox has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
jcaudle has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
trash has left #ruby [#ruby]
sailias has joined #ruby
<srji>
http://tinyurl.com/d6cu7fq | please have a look at listing 4.9, why is he using hashes for the constructor and not using regular variables? what in this case are the benefits of using hashes?
<horofox>
what I want to know basically is, how do I call a method from a method inside a class << self(singleton) with the same name of the singleton method
<JonnieCache>
srji: because when you call the method, you can use the :hash => :syntax as opposed to having to remember the variable names
<JonnieCache>
so its method(:arg => val1, :arg2 => :val1) instead of just method(val1, val2)
dr_bob has joined #ruby
<JonnieCache>
its clearer, and it allows you to mix and match arguments
<heftig>
you meanas opposed to having to remember the order
<heftig>
as well as omitting any
<JonnieCache>
yeah and that
tk__ has joined #ruby
hsbt_away has joined #ruby
<heftig>
horofox: you don't
<heftig>
horofox: you haven't got an instance of CEPFormatter to use
<horofox>
heftig: why?
<horofox>
heftig: what if I do self.new in the singleton method, should it work?
nari has quit [Ping timeout: 265 seconds]
<heftig>
sure, you can just call new
<horofox>
self.new is going to reference the class?
<heftig>
yes. or just new
burgestrand has quit [Read error: Connection reset by peer]
<horofox>
heftig: like formatter = new?
bier has quit [Quit: Ex-Chat]
<horofox>
this is strange
bier has joined #ruby
<horofox>
or do you mean formatter = CEPFormatter.new ?
bairui has quit [Ping timeout: 256 seconds]
<srji>
ty
mmitchell has joined #ruby
<heftig>
horofox: yep, just formatter = new
<horofox>
heftig: nice!
hsbt_away is now known as hsbt
u89 has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Banistergalaxy has quit [Ping timeout: 256 seconds]
hsbt_away is now known as hsbt
Banistergalaxy has joined #ruby
invisime has joined #ruby
krawchyk has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
<JonnieCache>
horofox: they mean the same thing, because youre inside the class
AndChat| has joined #ruby
<horofox>
JonnieCache: yea, you are basically calling the new method
<JonnieCache>
you could still call CEPFormatter.new if you think its clearer
<horofox>
JonnieCache: it just looks strange, hehe!
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 260 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<ohcibi>
hi i'm trying to do axhttp request with ruby like this https://gist.github.com/4018013. rbody is a stringified json object which should be passed as is, but it is passed as a weird hash with part of the stringified json as key-name, any suggestions on how to do it right?
<ohcibi>
(by "passed" i mean what the remote service under /test receives as parameters)
joeycarmello has joined #ruby
tealmage has joined #ruby
tealmage has quit [Remote host closed the connection]
cakehero has joined #ruby
DrShoggoth has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
hsbt has joined #ruby
carlyle has joined #ruby
hoelzro is now known as hoelzro|away
srji has joined #ruby
alem0lars has quit [Ping timeout: 265 seconds]
maesbn has quit [Remote host closed the connection]
baphled has quit [Quit: Lost terminal]
alexwh has joined #ruby
<apeiros_>
lxsameer: you can access data which is stored in the class from an instance of that class via self.class, but it means that you need accessors.
casheew has quit [Read error: Connection reset by peer]
<lxsameer>
apeiros_: hmmm did you understand my goal ?
casheew has joined #ruby
jcaudle has quit [Remote host closed the connection]
jcaudle has joined #ruby
<apeiros_>
since you didn't state any, no. I assume that you define the validation of the argument or somesuch by `sender: Ramp::Fields::StringArg`
<apeiros_>
and that'd mean you store data in the class
baroquebobcat has joined #ruby
apok has quit [Quit: apok]
Erfankam has quit [Quit: Leaving.]
<apeiros_>
and since you need to access it in Event#initialize, that'd mean you want to access data stored in the class from within the instance
<apeiros_>
lxsameer: so: did you understand what I try to explain to you?
hsbt has quit [Ping timeout: 255 seconds]
<lxsameer>
apeiros_: i'm not a english man , and its hard to understand, so bear with me
<apeiros_>
what's your native language?
Erfankam has joined #ruby
<lxsameer>
apeiros_: i want to allow programmer
philcrissman has quit [Remote host closed the connection]
<lxsameer>
apeiros_: persian
<apeiros_>
ok, not a language I speak :)
baphled has joined #ruby
Erfankam has quit [Max SendQ exceeded]
<lxsameer>
apeiros_: i want to allow developer to subclass command and define some arguments for that command via arguments class method
hbpoison has joined #ruby
Erfankam has joined #ruby
<lxsameer>
apeiros_: did you understand my poor explaination ?
philcrissman has joined #ruby
<apeiros_>
yes
jgrevich has joined #ruby
<apeiros_>
lxsameer: again, that means you store data in the class
<esya>
Hi guys, I'm having a small problem while making my own gem : I'm using daemons, and let's say my gem's name is some_gem, how do I do the Daemon.run('some_gem/somefile.rb') since the daemon can be called from any folder
<esya>
Any idea?
Serial_Killer_C has joined #ruby
hbpoison has quit [Ping timeout: 265 seconds]
Ry_ has quit [Ping timeout: 256 seconds]
<lxsameer>
apeiros_: :D wow, can i ask some question about that code ?
hsbt has quit [Ping timeout: 268 seconds]
<apeiros_>
sure
<apeiros_>
if it's about the `class <<self` part - it does about the same as `def self.arguments_definition() return @arguments_definition end` would do
ckrailo has joined #ruby
hsbt_away has joined #ruby
<lxsameer>
apeiros_: first, why did you use attr_reader in an eignclass ?
hsbt_away is now known as hsbt
<apeiros_>
lxsameer: because without an accessor, you can't read the definition from instances of Command. line 11 would not work.
davidcelis has quit [Quit: K-Lined.]
withnale has quit [Excess Flood]
u89 has quit [Remote host closed the connection]
awestroke has quit [Read error: Connection reset by peer]
<lxsameer>
apeiros_: so you used the eignclass to make the getter method, a class method
<apeiros_>
yes. as said, you could use `def self.arguments_definition() return @arguments_definition end` too
<lxsameer>
apeiros_: and stored data in an instance method in the class level, am i right ?
tasaras has joined #ruby
fff has joined #ruby
<apeiros_>
depends on what "instance method in the class level" means
tasaras has left #ruby [#ruby]
<apeiros_>
data is stored in objects
<apeiros_>
the arguments definition is stored in the class
<apeiros_>
again: classes are objects too
<lxsameer>
apeiros_: oh shot , *instance variable in class level
<apeiros_>
yes
<lxsameer>
apeiros_: ok second question ,
<apeiros_>
the instance variable belongs to the class itself. not to any of its instances.
<lxsameer>
apeiros_: yeah i get it now, its wonderful
u89 has joined #ruby
g-ram has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
rafter has quit [Remote host closed the connection]
<lxsameer>
apeiros_: what does the alone * do in the argumenst list of initialize ?
alex__c2022 has joined #ruby
<apeiros_>
it accepts any amount of arguments and ignores them
horofox has quit [Ping timeout: 276 seconds]
<apeiros_>
I used it as a placeholder
<apeiros_>
you have to put there whatever you need the class to accept
anachronistic has joined #ruby
Zuperbot has quit [Remote host closed the connection]
<Danielpk>
I'm new with ruby and i just upgrade to version 1.9.x at my OSX, but now my gems still installing at /Library/Ruby/Gems/1.8, i need to change to 1.9 ? If yes how i do that?
fff has left #ruby [#ruby]
<lxsameer>
apeiros_: nice, at first i didn't like, ruby but now i like it a little :D
neku has joined #ruby
dr_bob has quit [Quit: Leaving.]
maesbn has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
<lxsameer>
apeiros_: let me try it
SCommette has joined #ruby
<shevy>
lxsameer just use the nice bits and try to avoid the rest :D that's what I do with ruby
zigomir has quit [Ping timeout: 255 seconds]
slash_nick has joined #ruby
<lxsameer>
shevy: :D the most annoying thing about ruby is the end keyword :D
daniel_- has quit [Ping timeout: 256 seconds]
dreamz__ has quit [Ping timeout: 276 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
sent_hil has joined #ruby
rafter has joined #ruby
<sent_hil>
what's that site with bunch of resources to learn more about ruby?
geekbri has joined #ruby
awestroke has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<slash_nick>
sent_hil: looking for one in particular?
timonv has quit [Remote host closed the connection]
alem0lars has joined #ruby
awestroke has quit [Remote host closed the connection]
Guest10501 has joined #ruby
bradhe has joined #ruby
headius has joined #ruby
ryanlecompte has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
hsbt has quit [Ping timeout: 268 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
khakimov has joined #ruby
moos3 has joined #ruby
macmartine has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
emergion has joined #ruby
clj_newb has joined #ruby
Ry_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Ry_ has left #ruby [#ruby]
Ry_ has joined #ruby
Ry_ has left #ruby [#ruby]
casheew has joined #ruby
hsbt has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
colinbm has quit [Quit: colinbm]
nateberkopec has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
wallerdev has quit [Quit: wallerdev]
casheew has quit [Read error: Connection reset by peer]
u89 has quit [Remote host closed the connection]
casheew has joined #ruby
Trioke has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
dakine has joined #ruby
casheew has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
withnale has joined #ruby
<mkillebrew>
dakine: ?
davidcelis has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
<dakine>
mkillebrew: :D
<mkillebrew>
hai!
u89 has joined #ruby
jlast has joined #ruby
billiam has joined #ruby
bbttxu has joined #ruby
Guerrero has joined #ruby
<shevy>
lxsameer: yeah, "end" is a bit annoying. I'd love to be able to omit it, optionally, on a per-file setting
casheew has joined #ruby
<shevy>
lxsameer: for 90% of the code out there though, you won't need more than 2 indent-levels with "end"
<Spaceghostc2c>
shevy: Dowat.
<Spaceghostc2c>
shevy: I didn't know you were a pythonist. :(
<shevy>
and you can always use array.each {|x|} rather than array.each do/end
margle has joined #ruby
<lxsameer>
shevy: i'm a python fan and its intend oriented blocks are awesome
<nitti>
gross.
<shevy>
Spaceghostc2c: optionally yeah, not mandatory. I dont think the parser itself should have to care about proper, enforced indent
slash_nick is now known as darkwing_duck
<shevy>
def foo
<shevy>
do_something_here
<shevy>
end
<shevy>
my gripe here is that "end" does not give me any real useful information
<shevy>
lxsameer: what I dont get with python omitting end is, why does it require ":" ?
<Spaceghostc2c>
shevy: Why not just do rb.haml then? :D
<shevy>
never used haml... all I recall from last time I saw it was that it had something that sucked a lot hmm
<shevy>
Spaceghostc2c: you use haml?
<Spaceghostc2c>
shevy: Only against my will.
<darkwing_duck>
I love haml... specifically because indentation controls the end of a block
<shevy>
hehe
<darkwing_duck>
What's the thing that sucks alot, shevy?
<Spaceghostc2c>
darkwing_duck: I have an editor that handles it. :D
<Spaceghostc2c>
I used to write ERB with html and then use html2haml -e
<Spaceghostc2c>
It was awesome.
<lxsameer>
shevy: that true too, but typing a ":" is easier than "end" :))
asobrasil has joined #ruby
cobragoat has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<shevy>
lxsameer: yeah, probably. but I always wondered about it, because I was thinking "cool, I can just avoid using "end", and just use indent! but I also require to use : ... which I dont have to do in ruby, even the () is optional when non-ambigous - I always use () in method definitions though
timonv has joined #ruby
bluenemo has quit [Quit: Verlassend]
<darkwing_duck>
I always have the strangest problems... "Missing template ...", "500"... Then how come that template is loaded in my browser with a 200?
Neomex has joined #ruby
<lxsameer>
shevy: me too :)
<shevy>
darkwing_duck: dunno. I never used haml seriously, I don't like those strange markup things too much. PHP spoiled me.. erb files look sooo ugly, I can't understand how people like that
dreamz__ has quit [Remote host closed the connection]
<shevy>
<= %foo() >
<JonnieCache>
dude php is exactly the same as erb
<darkwing_duck>
JonnieCache: +1
Neomex has quit [Client Quit]
<shevy>
php must die
<darkwing_duck>
And so I use haml
<JonnieCache>
whoever was asking, use haml it is the domb
<JonnieCache>
*bomb
<shevy>
the domb!
<darkwing_duck>
ba domb
<shevy>
ok
<shevy>
what is good about haml really?
bradhe has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<JonnieCache>
html is a tree
<JonnieCache>
haml is explicitly tree shaped
<darkwing_duck>
no 'end'... no '}'...those are niceities
<darkwing_duck>
<% } %> is retarded... don't see that in HAML
dreamz__ has joined #ruby
<JonnieCache>
also a haml document mirrors the shape of the sass document that styles it
<JonnieCache>
its very zen
<darkwing_duck>
It's just so easy to peek at a file and see its structure...
jrajav has joined #ruby
Araxia has joined #ruby
<shevy>
hmm
<shevy>
hey jrajav - there was a bot here a while ago, but it sucked compared to your bot :(
<jrajav>
:/
bradhe has joined #ruby
<jrajav>
:\
<jrajav>
:|
u89 has quit [Remote host closed the connection]
daniel_- has joined #ruby
erichmenge has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
Monie[ip] has joined #ruby
k610 has joined #ruby
ben_alman_ has quit [Excess Flood]
horofox has joined #ruby
dreamz__ has quit [Ping timeout: 276 seconds]
<darkwing_duck>
in 3
aganov has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
mark_locklear has quit [Remote host closed the connection]
blazes816 has joined #ruby
senny has quit [Remote host closed the connection]
Ry_ has joined #ruby
mahmoudimus has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
Banistergalaxy has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
BoomCow has joined #ruby
J-_-L has joined #ruby
matrixise has quit [Ping timeout: 252 seconds]
arturas_ has joined #ruby
arturaz has quit [Read error: Connection reset by peer]
Tania has quit [Read error: Connection reset by peer]
macabre has quit [Remote host closed the connection]
BoomCow has quit [Quit: Leaving]
<Gmind>
Just read Why's Guide, is programming ruby that fun ?
BoomCow has joined #ruby
cousine has quit [Remote host closed the connection]
DanBoy has joined #ruby
h4mz1d has joined #ruby
<banisterfiend>
Gmind: Yeah :P
Banistergalaxy has quit [Ping timeout: 244 seconds]
<banisterfiend>
Gmind: i love it, anyway and still feel pretty passionate about it even after 4 years
<shevy>
Hanmac: that would be nice actually, then modules would be almost as useful as classes and apeiros would never again have to use top-level classes as namespace :D
wargasm has joined #ruby
<jrajav>
Multiple inheritance is icky
<jrajav>
And it has cooties
<banisterfiend>
i was very close to implementing multiple inheritance for ruby too
jaygen has quit [Remote host closed the connection]
<Gmind>
Do you feel flow in Ruby programming ? banisterfiend .. and is that practice in Ruby come with Koans ?
<banisterfiend>
Gmind: feel 'flow' ? you mean feel inspired?
margle has quit [Quit: Computer has gone to sleep.]
<Gmind>
it's a sense of totally focus, like you are playing games
<shevy>
Gmind: there are always distractions, but you can follow a pattern that works for your style. with ruby it is often much simpler as in other languages because the intent of the code can be very clear and very terse. with php, the code always looked ugly and never beautiful
gurps has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Araxia has joined #ruby
caveat- has joined #ruby
<shevy>
Gmind: I dont think this is possible to have 24/7, when I wake up, I need some time before my brain is fully "awake"
sepp2k has quit [Read error: Connection reset by peer]
dcope_wat is now known as dcope
GranMal has joined #ruby
sn0wb1rd has joined #ruby
Xeago has joined #ruby
sepp2k has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
darthdeus has joined #ruby
stephenjudkins has joined #ruby
clj_newb has joined #ruby
brianpWins has quit [Quit: brianpWins]
mhag has quit [Ping timeout: 240 seconds]
pestouille has quit [Quit: pestouille]
Xeago has quit [Remote host closed the connection]
BrianJ has joined #ruby
mklappstuhl has joined #ruby
apok has joined #ruby
ij has joined #ruby
<ij>
I saw a post on hackernews telling that syntax highlighting might be harmful and some posts on the net tell the same, what do you guys think?
monkegjinni has joined #ruby
nicoulaj has joined #ruby
<jrajav>
That post wasn't saying that syntax highlighting might be harmful - it was an anecdote about some guy who tried it for a while and thought it gave him marginal benefits when scanning and reading code. I found it pretty dubious
<jrajav>
If anything, we should be highlighting things more specifically and with greater reflection of the code structure - for instance, I think a "rainbow parens" plugin is very useful for nearly any language with syntactically significant parens and/or braces
reinaldob has quit [Remote host closed the connection]
<banisterfiend>
Hanmac: it wont work on 1.9.3+ since i didnt bother to update it
<ij>
jrajav, Well okay, true, and I am.
<jrajav>
Like indenting, monospace fonts, etc, there will always be someone who wants to defy the status quo, but there are good reasons why virtually everyone uses certain techniques
skum has quit [Quit: Leaving...]
alfism has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
<workmad3>
jrajav: you can pry my non-monospace developer font out of my cold, dead... oh wait, I use monospace :D
iamjarvo has joined #ruby
awestroke has joined #ruby
rakl has joined #ruby
<workmad3>
as for syntax highlighting... take that away and man, ruby just never stops complaining about syntax errors...
BrianJ has quit [Quit: BrianJ]
<darkwing_duck>
lol... it's ruby that needs the highlighting ;)
x82_nicole has joined #ruby
<workmad3>
yeah, for some reason ruby complains a lot more about syntax errors when it doesn't use syntax highlighting
<workmad3>
all ruby's fault, I'm sure
kbeddingfield has joined #ruby
Banistergalaxy has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
slainer68 has quit [Remote host closed the connection]
KarlHung1s is now known as KarlHungus
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
nicoulaj has quit [Remote host closed the connection]
clj_newb has quit [Read error: Connection reset by peer]
ltsstar has quit [Quit: ltsstar]
BrianJ has joined #ruby
ltsstar has joined #ruby
bbttxu has quit [Read error: Operation timed out]
sheerun has left #ruby [#ruby]
phantasm66 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
clj_newb has joined #ruby
mneorr has quit [Remote host closed the connection]
margle has joined #ruby
beiter has joined #ruby
cirwin has joined #ruby
reinaldob has joined #ruby
samphippen has joined #ruby
mrsolo has joined #ruby
nitti has quit [Remote host closed the connection]
Araxia has quit [Read error: No route to host]
voodoofish430 has joined #ruby
<shevy>
ij: highlighted code can be very helpful, your eyes can scan much faster and find correct patterns more easily, it helps with the structure
Araxia has joined #ruby
Zai00 has quit [Quit: Zai00]
bradhe has quit [Remote host closed the connection]
snearch has joined #ruby
mohits has quit [Ping timeout: 255 seconds]
chussenot has quit [Quit: chussenot]
u89 has joined #ruby
skaczor has quit [Read error: Operation timed out]
cakehero has quit [Quit: Computer has gone to sleep.]
h4mz1d has joined #ruby
esya has quit [Quit: esya]
Morkel has quit [Quit: Morkel]
Agis__ has joined #ruby
thecreators has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 268 seconds]
ejholmes has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
dakine has quit [Quit: Leaving]
Axsuul has joined #ruby
lxsameer has quit [Quit: Leaving]
jaygen has joined #ruby
mneorr has joined #ruby
marty_mcfly has joined #ruby
<marty_mcfly>
hey guys , when I do a Kernel.const_defined? :String it gives me false ... whats the deal
brianpWins has joined #ruby
dmiller has joined #ruby
tenmilestereo has joined #ruby
savage- has joined #ruby
wallerdev has joined #ruby
Ry_ has quit [Ping timeout: 252 seconds]
alex__c2022 has quit [Quit: alex__c2022]
fast_ has joined #ruby
<Hanmac>
marty_mcfly what is your ruby version?
reinaldob has quit [Ping timeout: 240 seconds]
<marty_mcfly>
1.8.7
piotr_ has joined #ruby
<shevy>
works on 1.9.x
BSaboia has joined #ruby
ryanlecompte has quit [Ping timeout: 244 seconds]
<marty_mcfly>
why doesn't it on 1.8.7?
chussenot has joined #ruby
chussenot_ has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
macabre has quit [Remote host closed the connection]
Metathink has joined #ruby
<Hanmac>
shevy my system i installed new comes per default with ruby1.9.3 and does not install 1.8 per default :D
margle has quit [Quit: Computer has gone to sleep.]
<windowsrefund>
hello, does anyone know how to delete a rake task that shows up in the output of rake -T? I should mention the task no longer exists in my .rake files
mpereira has joined #ruby
bradhe has joined #ruby
dmiller has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
margle has joined #ruby
Gmind has quit [Quit: Leaving.]
tsousa has joined #ruby
<tsousa>
if for some reason it fails to find a method in my class is always go check for my version of method_missing ?
macmartine has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
bradhe has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 264 seconds]
chussenot_ is now known as chussenot
pjb3 has quit [Quit: pjb3]
rich__ has joined #ruby
J-_-L has quit [Quit: Leaving.]
instinkt has joined #ruby
billiam has quit [Ping timeout: 255 seconds]
<sent_hil>
tsousa: i believe it looks up the ancestor chain first
maxmmurphy has joined #ruby
emmanuelux has joined #ruby
dpatel has joined #ruby
a_a_g has joined #ruby
Danielpk has quit [Read error: Connection reset by peer]
arielpts has quit [Read error: Connection reset by peer]
skaczor has joined #ruby
lele has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
shell0x has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
shell0x is now known as shellox
davidokn1r has joined #ruby
qwerxy has quit [Quit: offski]
<shevy>
Hanmac: yeah tell me... I have the latest zenwalk, and ruby 1.8.7 no longer compiles from source here :( so I am on 1.9.x permanently now, I think
<shevy>
but it's ok, encoding can be ignored for the most part
<shevy>
except for one thing, delete("\n") led to a problem whereas .gsub(/\n/,'') did not, that was odd to see. more power to gsub I suppose
<Gate>
csmrfx: nope, I generally avoid java as a rule. I've had to use eclipse and netbeans for various things
k610 has joined #ruby
notVert has joined #ruby
<Jdubds2>
Hello, I'm looking for help with IRB and require. I can't get require to work. I've heard this might be an issue with running under windows 7 64. Can anyone help?
beiter has quit [Ping timeout: 244 seconds]
beiter_ is now known as beiter
banisterfiend has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
GranMal has joined #ruby
Floydzy has quit [Quit: Floydzy]
mark_locklear has quit [Remote host closed the connection]
k610 has quit [Read error: Connection reset by peer]
k611 has joined #ruby
k611 has quit [Read error: Connection reset by peer]
baphled has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
stephenjudkins has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby
<apeiros_>
Jdubds2: while I'm busy right now, I'd still suggest you describe your problem
<apeiros_>
as with the current description, you'll most likely not get help
k610 has joined #ruby
k610 has quit [Read error: Connection reset by peer]
k610 has joined #ruby
u89 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
k610 has joined #ruby
stephenjudkins has joined #ruby
chimkan has joined #ruby
brycebudd has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
jonan has joined #ruby
Mon_Ouie has joined #ruby
<darkwing_duck>
Jdubds2: While I won't know jack about windows, what are you trying to require? And how does irb respond (show us an error message if ya can)? :)
<Jdubds2>
ok
pjb3 has quit [Quit: pjb3]
<Jdubds2>
error on line 36
<Jdubds2>
and
<csmrfx>
gist or pastie.org the whole thing
<csmrfx>
ok
<Jdubds2>
kkk
<Jdubds2>
sec
bricker has joined #ruby
bbttxu has joined #ruby
jcaudle_ has joined #ruby
Erfankam has joined #ruby
cableray has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
bbttxu has quit [Client Quit]
maletor has joined #ruby
bbttxu has joined #ruby
k610 has joined #ruby
BSaboia__ has joined #ruby
wallmani has joined #ruby
<Jdubds2>
having trouble uploading to imgur sorry
jcaudle has quit [Ping timeout: 244 seconds]
jcaudle_ is now known as jcaudle
<Jdubds2>
:/
<Jdubds2>
getting errors...
<darkwing_duck>
ouch...
<darkwing_duck>
are you on github?... gist.github.com
<darkwing_duck>
You could copy and paste your input and irb's output, save it as a gist, and give us the link...
macabre has joined #ruby
<Jdubds2>
Yeah I have a github account, but I've never used it...I really need to learn lol
workmad3 has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
k610 has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 265 seconds]
<darkwing_duck>
Jdubds2: Yeah, github is invaluable
<Jdubds2>
my computer disconnects constantly fronm the internet
<Jdubds2>
:(
<wallmani>
comcast went out for me ~10 minutes ago
casheew has quit [Read error: Connection reset by peer]
baphled has quit [Client Quit]
<wallmani>
Jdubds2: so i feel your pain
<Jdubds2>
it's this laptop, it's shit
<Jdubds2>
i literally cannot download large files
<Jdubds2>
or load more than one web page at once
<Jdubds2>
without it disconnecting me
<Jdubds2>
and even if i dont do those things, i still get DC often
<Jdubds2>
hate this pos
qwerxy has quit [Quit: offski]
neku is now known as neku|away
workmad3 has quit [Ping timeout: 246 seconds]
<darkwing_duck>
yeah that's some handicap Jdubds2
osvico has joined #ruby
rakl has quit [Quit: sleeping]
<Jdubds2>
advice: never buy a laptop for 300$
<Jdubds2>
lol
banisterfiend has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
<apeiros_>
except if it is the macbook air from your husband…
<Jdubds2>
haha
<Jdubds2>
nice
<darkwing_duck>
Jdubds2: When you're in the market for another, check out system76
casheew has joined #ruby
bobu has left #ruby ["Leaving..."]
Beoran__ has joined #ruby
jrist-afk is now known as jrist
blacktulip has quit [Remote host closed the connection]
<x82_nicole>
So, learning about modules here. They do nothing but organize. How would I call a module within a module?
nitti_ has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
<apeiros_>
x82_nicole: a nested/namespaced module
neku|away is now known as neku
<apeiros_>
x82_nicole: they're also the only thing that can hold methods (classes are modules)
sertaconay has joined #ruby
imami|afk is now known as banseljaj
Beoran_ has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
<x82_nicole>
Hmm, so like A::B::C.method would be the right synta for Module A, Module B, and then a C class nested within those two?
alienvenom has quit [Ping timeout: 245 seconds]
aetcore has joined #ruby
<apeiros_>
assuming .method is a class method - yes
<apeiros_>
also, irb ;-)
<apeiros_>
or pry
nazty has quit [Ping timeout: 256 seconds]
Jdubds2 has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 244 seconds]
uris has joined #ruby
Jdubds2 has joined #ruby
<Jdubds2>
back again :/
<Jdubds2>
sigh
maesbn has joined #ruby
awestroke has quit [Remote host closed the connection]
<csmrfx>
How to see modules that are available? (in "namespace")
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<darkwing_duck>
csmrfx: This isn't right... but in IRB, try typing "Module::" then hit tab a few times
casheew has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby
alexim has joined #ruby
<darkwing_duck>
csmrfx: Yeah that's far from what you want... sorry I dont know
Jdubds2 has quit [Ping timeout: 260 seconds]
<allsystemsarego>
Hi all, I made a toy app in Ruby that behaves like Stackoverflow but is single-user and it's pure text, is anyone bored enough to do a code review for it?
fermion has joined #ruby
Jdubds2 has joined #ruby
<csmrfx>
thanks
fermion has quit [Client Quit]
<csmrfx>
didnt realize irb has autocompletion for methods too
qwerxy has joined #ruby
<Jdubds2>
hey csmr
<Jdubds2>
what was the answer
<Jdubds2>
i got DC
<csmrfx>
linux in virtualbox may not help with connection probs
<zaiste_>
hey
qwerxy has quit [Client Quit]
alienvenom has joined #ruby
<apeiros_>
allsystemsarego: just throw it on github
<allsystemsarego>
apeiros_, I have it on a pastebin, is that OK?
alexim has quit [Ping timeout: 260 seconds]
<apeiros_>
I'll not do a full code review, but watching sc2 livestream with a couple of breaks in it, so might do a bit
casheew has joined #ruby
<apeiros_>
allsystemsarego: anything online does. pastie.org and gist are preferred, though
<apeiros_>
class User < Struct.new(:nickname) <-- User = Struct.new(:nickname) do … end
<apeiros_>
(just an alternative)
emergion has joined #ruby
burgestrand has joined #ruby
B|aster has quit [Ping timeout: 265 seconds]
<Jdubds2>
@csmrfx yeah i dont expect anything to fix it, i think it's a hardware issue with this laptop :(
banisterfiend has joined #ruby
tvw has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
justinmcp has joined #ruby
<Spaceghostc2c>
I just think the class way is a bit nicer to look at.
alienvenom has quit [Ping timeout: 252 seconds]
skaczor has quit [Read error: Connection reset by peer]
kbeddingfield has joined #ruby
skaczor has joined #ruby
jgrevich_ has joined #ruby
Zuperbot has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
BrianJ has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
qwerxy has joined #ruby
BrianJ has joined #ruby
mercwithamouth has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
emergion has quit [Quit: Computer has gone to sleep.]
<darkwing_duck>
looks like all those ifs (`if navigation_state` & `if keyboard_input`) could be organized a little better...case/when
matrixise has joined #ruby
neku has quit [Ping timeout: 260 seconds]
<darkwing_duck>
err, allsystemsarego: looks like all those ifs (`if navigation_state` & `if keyboard_input`) could be organized a little better...case/when
<allsystemsarego>
darkwing_duck, thanks for the suggestion, I'll implement it
geggam has joined #ruby
nitti_ has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Operation timed out]
<zaiste_>
how can I access line count at XXX
<zaiste_>
?
<Hanmac>
apeiros_ your both lines are not equal but similar enough
jgarvey has joined #ruby
Jdubds2 has joined #ruby
<apeiros_>
what do you mean? the struct thing? yes, mine doesn't create 2 classes, only 1
alem0lars has quit [Quit: quit]
jarred has joined #ruby
niklasb has joined #ruby
caleb_io has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
maxer has joined #ruby
nitti has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 264 seconds]
dr_bob has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Ping timeout: 240 seconds]
<csmrfx>
I was wondering about that
werdnativ has joined #ruby
daniel_- has joined #ruby
Serial_Killer_C has joined #ruby
coder_neo has joined #ruby
nanderoo has quit [Quit: Leaving.]
Xeago has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9]
heftig has joined #ruby
dmerrick has joined #ruby
stephenjudkins has joined #ruby
bywam has joined #ruby
statarb3 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 248 seconds]
pjb3 has joined #ruby
arturaz has joined #ruby
srji has quit [Quit: leaving]
Tuxist has quit [Remote host closed the connection]
<arturaz>
hey guys. I want to teach to local folks by examples. Any links to small not-too-mathematical exercises for new language learners that I could demo in a workshop?
<banisterfiend>
arturaz: game development in gosu
<banisterfiend>
arturaz: libgosu.org
<arturaz>
yeah, gamedev is usually too mathy
stephenjudkins has quit [Quit: stephenjudkins]
ephemerian has joined #ruby
<JustinCampbell>
arturaz: what kind of things were you thinking?
<arturaz>
something that shows off the main features of the language
<arturaz>
really introductional
<arturaz>
like "the number guessing game"
krawchyk has quit [Remote host closed the connection]
Guest10501 has quit [Quit: Guest10501]
<banisterfiend>
arturaz: whatever you do, make them try stuff out in pry
<banisterfiend>
:P
TheFuzzball has quit [Read error: Operation timed out]
<apeiros_>
samuel02: a.concat([*0..(x > 0 ? y : y-1)])
<darkwing_duck>
1 : 0 ?
<darkwing_duck>
ah
<apeiros_>
personally I'd write it out into two lines for readablility. e.g. upper_end = x > 0 ? y : y-1; a.concat([*0..upper_end])
<samuel02>
apeiros_, nice! I did't know about concat
<apeiros_>
hm, given that I already use splat… might just as well use push actually
<apeiros_>
a.push(*0..upper_end)
<apeiros_>
yeah, definitively nicer. but concat is great if you already have an array which you want to append.
<samuel02>
I see
<samuel02>
is it <1.9.x ?
allsystemsarego has quit [Quit: Leaving]
<apeiros_>
yes
<apeiros_>
but you shouldn't be on <1.9.x
CaptainJet has joined #ruby
TheFuzzb_ has joined #ruby
bricker_ has joined #ruby
<apeiros_>
hm, allsystemsarego has left?
<samuel02>
apeiros_, well when working on legacy apps that's sometimes something one has to live with
<apeiros_>
oh great
sheerun has joined #ruby
notVert has quit [Ping timeout: 252 seconds]
Monie[ip] has joined #ruby
<apeiros_>
samuel02: I know. it's also one thing you should work on to no longer having to live with it
* apeiros_
has an app still on rails 1.2.3
<samuel02>
yep
<apeiros_>
but that one is running internally (i.e. security issues are a non-issue) and did not need a single change in the last 3 years
<samuel02>
funny that's exactly what I'm working with
elico has quit [Quit: elico]
<samuel02>
it has been lifted to 2.1 but was originally written in rails 1.0
<apeiros_>
the moment I have to change something it'll move to rails 3.2 (or probably 4 by then…) and ruby 1.9 (or maybe even 2.0 by then)
stkowski has joined #ruby
<_alejandro>
Hi, I'm building a ruby c-extension as a gem, and I can require it from irb, but not from a file in the test directory. Does anyone know what would cause this? I'm using bundler for both, so I thought that loadpaths should be taken care of
bricker has quit [Ping timeout: 268 seconds]
TheFuzzb_ is now known as TheFuzzball
Monie[ip] has quit [Changing host]
Monie[ip] has joined #ruby
net_mask has quit [Quit: net_mask]
<samuel02>
apeiros_, I guess that would require a full rewrite though? I'm working for a client and they just want some "small" changes so I have to live with no rest, 1.8.7 and old, ugly code
banisterfiend has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
Guerrero has quit [Ping timeout: 276 seconds]
ltsstar has quit [Quit: ltsstar]
<apeiros_>
no, it'd require quite a lot of rewriting, but mostly on the boilerplate/chrome
<apeiros_>
the core could stay relatively unchanged.
hotovson has quit [Remote host closed the connection]
elico has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
aldodelgado has joined #ruby
<samuel02>
i see
Banistergalaxy has quit [Ping timeout: 260 seconds]
<JohnTeddy>
http://pastebin.com/JXxmyRPE .. When I execute: 'std("unbiased", [27, 19, 25, 24, 30])' why does the last std.out say 'nilThe biased standard deviation is: 3.63318042491699'
<JohnTeddy>
Where is that nil coming from?
baphled has joined #ruby
TheFuzzball has quit [Ping timeout: 244 seconds]
burgestrand has quit [Ping timeout: 260 seconds]
<samuel02>
JohnTeddy, line 23
havenn has quit [Remote host closed the connection]
burgestrand1 has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
<samuel02>
you print bia_nums which of course is nil
<heftig>
begin a = "6c73d5240a948c86981bc294814d".to_i(16); b=[]; while a > 0; a,c = a.divmod(256); b.unshift c; end; b; end
<Xeago>
no
<Xeago>
I'll use pack and unpack!
<heftig>
pick your poison :p
<Xeago>
but their arguments are insane
justinmcp has joined #ruby
mnaser has joined #ruby
<mnaser>
I'm using the sleepy_penguin implementation to get access to the EventFD API and I'm having problems closing an eventfd, when I just tried closing it, I got a kernel panic...
apok has quit [Ping timeout: 268 seconds]
apok_ is now known as apok
rburton- has quit [Client Quit]
invisime has quit [Quit: Leaving.]
jenrzzz has joined #ruby
tyfighter has joined #ruby
samuel02 has quit [Remote host closed the connection]
<tommylommykins>
I know it's a trivial case, but that stack trace includes line numbers
fantazo has quit [Ping timeout: 260 seconds]
zcreative has joined #ruby
zcreative has quit [Client Quit]
carlyle has joined #ruby
anderse has quit [Quit: anderse]
carlyle has quit [Remote host closed the connection]
marius has joined #ruby
<darkwing_duck>
is that contrived? I expect line one should be "irb(main):012:0> raise" based on what was returned
<darkwing_duck>
by contrived... did you edit after pasting?
<apeiros_>
darkwing_duck: hu?
<apeiros_>
your exception happens on line 1 of your irb, exactly as the backtrace states: `from (irb):1`
<darkwing_duck>
Sorry... too much coffee. tommylommykins : "from (irb):1" isn
<apeiros_>
and (irb):1 was invoked from `from C:/Ruby193/bin/irb:12`
<darkwing_duck>
isn't that the line number?... "from (irb):1"
tommyvyo has joined #ruby
<apeiros_>
or well, @ tommylommykins, whoever of you is confused :-p
<tommylommykins>
Ruby stack traces are upside down compared to some other languages
banseljaj is now known as imami|afk
sertaconay has quit [Read error: Connection reset by peer]
<tommylommykins>
so the method where the error actually is is printed at the top, not the bottom
<darkwing_duck>
tommylommykins: what do you mean?... The last execution is at the top... that's how stacks work
<darkwing_duck>
when something gets added to a stack... it goes on top, right?
TheFuzzball has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<Muz>
darkwing_duck: but when you use a terminal, it gets added to the perceived bottom!
alex__c2022 has joined #ruby
<apeiros_>
oh dear
<darkwing_duck>
Muz: depends on what you perceive as the bottom?
<apeiros_>
that's not a discussion I want to be part of
Grieg has quit [Ping timeout: 268 seconds]
<Muz>
The point is, its a terrible discussion that no one cares about. Go argue about top vs bottom posting on emails. It's about as fun.
sent_hil has left #ruby [#ruby]
<tommylommykins>
Either way, you need to read it the right way up for Ruby, or you'll be looking in the wrong place for your errors...
nitti has quit [Ping timeout: 256 seconds]
<x82_nicole>
Lol!
<darkwing_duck>
what errors? ;)
<csmrfx>
in Arabia, your stack is on the wrong side of the screen!!
moos3 has quit [Read error: Operation timed out]
TheFuzzball has quit [Read error: Operation timed out]
dakine has joined #ruby
<Muz>
csmrfx: nonsense. It's printed in English, it's expected to be LTR. ¬_¬
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
pothibo has quit [Quit: pothibo]
<Muz>
Just like when writing עברית
<csmrfx>
In Putin's russia, the interpreter stacks YOU
<Muz>
Look, it switched direction mid-sentence!
Guest61621 has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Ping timeout: 244 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
aldodelgado has quit [Quit: aldodelgado]
stephenjudkins has joined #ruby
TheFuzzball has joined #ruby
horofox has quit [Quit: horofox]
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
darthdeus has quit [Ping timeout: 264 seconds]
manizzle has joined #ruby
rjsamson has joined #ruby
nitti has joined #ruby
k610 has joined #ruby
brycebudd has quit [Read error: Operation timed out]
horofox has joined #ruby
fixl has joined #ruby
<Spaceghostc2c>
Muz: Lol. Rubyfag. :D
forced_request has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
rez- has quit [Quit: rez-]
k610 has quit [Ping timeout: 252 seconds]
jimeh has joined #ruby
bbttxu has quit [Ping timeout: 260 seconds]
baphled has joined #ruby
k610 has joined #ruby
nitti has quit [Remote host closed the connection]
<JohnTeddy>
http://pastebin.com/TeSE4suZ ... I am messing up on line 14/15, what is the proper way to execute round_to() on decs? I turned an integer into a string... though I don't know the right way to do this.
alexim has quit [Quit: sleep]
ij has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
joshman_ has quit [Ping timeout: 276 seconds]
uris has quit [Quit: Leaving]
BrianJ has quit [Quit: BrianJ]
nitti_ has joined #ruby
sailias has quit [Quit: Leaving.]
bobu has quit [Remote host closed the connection]
<csmrfx>
howcome a method in my module cant see Date? planet.rb:88:in `axis_tilt_effect': uninitialized constant Planet::Orbit::Date (NameError)
qwerxy has quit [Quit: offski]
irkaclient has quit [Quit: irkaclient]
k610 has quit [Ping timeout: 268 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
k610 has joined #ruby
rjsamson has quit [Remote host closed the connection]
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
rjsamson has joined #ruby
<csmrfx>
just forgot to require it first 8)
awarner has joined #ruby
tchebb has quit [Quit: Leaving.]
tchebb has joined #ruby
burgestrand has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
lenovodroid has joined #ruby
mklappstuhl has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
reset has joined #ruby
rjsamson has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
jenrzzz has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<``10``>
and that is what i've been doing, with the same issue
<shevy>
both psych and syck work here
<shevy>
I don't use rvm however
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
<shevy>
you could always compile ruby from source into a --prefix you won't need, just to see if it compiles at all. ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.bz2
<shevy>
like --prefix=/opt/ruby, without rvm though
<darkwing_duck>
``10``: They're so close together, tab and `... did you plan that?
geggam has quit [Remote host closed the connection]
perun_ has quit [Ping timeout: 260 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
guns has joined #ruby
darkwing_duck has quit [Quit: return false]
<shevy>
libyaml will install these library files: libyaml-0.so.2 libyaml-0.so.2.0.2 libyaml.a libyaml.la libyaml.so
medik has joined #ruby
jjang has joined #ruby
lenovodroid has joined #ruby
<``10``>
ruby compiles fine; that's the ridiculous part
<``10``>
and why it seems like a linker error
justinmcp has quit [Ping timeout: 256 seconds]
<``10``>
i've even manually added the lib dir to LD_LIBRARY_PATH, and still the same
<``10``>
going to try rubinius and see how that goes
<shevy>
are you still using rvm
<``10``>
tried it both ways
<shevy>
and you extracted the ruby tarball fresh?
<``10``>
going to go that way for rubinius since rvm is nice for automated deployments
<``10``>
yeah fresh tarball
chimkan has joined #ruby
cousine has joined #ruby
<shevy>
don't know why it does not work for you, for me that works.
justinmcp has joined #ruby
<``10``>
yeah seems pretty strange to me too; others have had the issue and solved it as you said
<shevy>
oh I had the same problem you had too before
banisterfiend has joined #ruby
perun_ has joined #ruby
Cultofmetatron has joined #ruby
coder_neo has quit [Quit: Leaving]
<shevy>
it worked when I compiled libyaml, then extracted the tarball again (removing the extracted directory first), then compiled
Ry_ has quit [Ping timeout: 252 seconds]
khakimov has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
nemesit has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
Araxia has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Shamgar has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 264 seconds]
beiter has quit [Quit: beiter]
average_drifter has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
<X-Jester>
``10``: you get anywhere?
TheFuzzball has quit [Read error: Connection reset by peer]
<X-Jester>
``10``: i've been managing custom ruby 1.9.3 rpms for my project, have dealt with 32/64-bit linker issues
DrShoggoth has quit [Quit: Leaving]
instinkt has quit [Quit: leaving]
cakehero has quit [Quit: Computer has gone to sleep.]
Shamgar has joined #ruby
nari has quit [Ping timeout: 264 seconds]
rich__ has quit [Ping timeout: 244 seconds]
_alejandro has quit [Remote host closed the connection]
jamjam has joined #ruby
reinaldob has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
wizard` has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
wizard` has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<csmrfx>
Is there a maximum cap function for floats?
<shevy>
hmm when using File.readlines()
x82_nicole has quit [Quit: Computer has gone to sleep.]
<shevy>
can it be that it ignores the encoding line?
<shevy>
pipe.rb:19:in `gsub': invalid byte sequence in US-ASCII (ArgumentError)
<shevy>
but all my .rb files have this as the second line:
<shevy>
# Encoding: ASCII-8BIT
kpshek has quit []
perun_ has quit [Ping timeout: 248 seconds]
<csmrfx>
yes
<csmrfx>
it is not evaling those lines is it?
jaygen has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
dangerousdave has quit [Quit: Leaving...]
<shevy>
hmmm strange
<shevy>
it seems to think that it defaults to US-ASCII
<shevy>
I fixed that with Encoding.default_external = 'ASCII-8BIT' but I dont feel this is a good fix, at least the scripts work again now though :(