<wald0>
benzrf: nah, this doesn't makes sense, that stuff was just "copypasting" itself, there's no magic or anything feautre on that
Spami has quit [Client Quit]
<barntzen>
It's dying when I do bundle exec rake -A assets:precompile RAILS_ENV=production
S0da has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 252 seconds]
<wald0>
as said, connecting my keyboard to another computer or a printer will do the same
<wald0>
the thing is, a program that DECIDES what to write
wildroman2 has joined #ruby
<benzrf>
wald0: ok. go ahead and write your own
<wald0>
benzrf: a program whose output is its own source == for infinite loop ; something
<benzrf>
wald0: without looking at anything else, write a program that prints out its own code
pu22l3r has quit [Remote host closed the connection]
<benzrf>
wald0: write an actual program
Spami has joined #ruby
<benzrf>
wald0: in real ruby
<benzrf>
wald0: it is harder than it sounds
<wald0>
benzrf: maybe because is a useless feature lol
<benzrf>
wald0: no cheating by opening your own file o_o
<wald0>
and it was never implemented on any language
<centrx>
barntzen, Find out what the "bad symbol" is?
<benzrf>
i can write a quine in ruby, wald0
<benzrf>
it is possible
robertrv has joined #ruby
lorelei_ has quit [Ping timeout: 245 seconds]
w1xz has quit [Quit: ZZZzzz…]
<wald0>
benzrf: yeah but is useless, it does nothing
<wald0>
we are talking about a copy-paste feature
<wald0>
pry / irb already does something similar
<wald0>
the thing is that is YOU who inserts that code
<wald0>
what is interesting on it?
Megtastique has quit [Client Quit]
<bilbo_swaggins>
a program that reads its own source and makes a non-trivial composition (i.e. don't just arbitrarily map words to pitches) is more interesting
<benzrf>
wald0: it is not a copy paste feature
<benzrf>
wald0: im telling you
<benzrf>
wald0: try writing it
<barntzen>
centrx: I'm not familiar enough with Ruby to do that :/
<barntzen>
and I've been googling to try to figure that out
<wald0>
yeah, that is bilbo_swaggins, but then is not even needed "to read its source", it can simply dump data in a DB for later read it
<barntzen>
tried removing the gems directory and cleaning assets then reinstalling all the gems
<bilbo_swaggins>
or just make the file executable and ./foo foo
wildroman2 has quit [Ping timeout: 272 seconds]
_2_PixieAlicia has left #ruby [#ruby]
<bilbo_swaggins>
you know what? forget the "own"; make it just read sources
<centrx>
barntzen, Can you paste what is at /var/www/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
<wald0>
benzrf: write a code that writes a useful application itself :)
<sickweezle>
Trying to unbreak a coworker's Pyramid app. First I have to have a clue how it works, so I'm following, somewhat, it's intro stuff... Then I get to the bit where you ahve to /install/ the thing for development... wat? O.o
<sickweezle>
ls
<sickweezle>
doh, wrong keyboard.
burlyscudd has joined #ruby
yasushi has joined #ruby
zigomir has quit [Remote host closed the connection]
Albright has quit [Quit: Albright]
zigomir has joined #ruby
phipes has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
vjt has joined #ruby
ephemerian has quit [Quit: Leaving.]
vjt has quit [Client Quit]
robbyoconnor has joined #ruby
<benzrf>
sickweezle: pyramid is python...
<benzrf>
oh derp
nanoyak has quit [Quit: Computer has gone to sleep.]
<sickweezle>
Hm?
<benzrf>
sickweezle: what is wrong with python ?
burlyscudd has quit [Ping timeout: 245 seconds]
Styles has joined #ruby
<benzrf>
i find it to be less broken than ruby in general
<benzrf>
although i do find the non broken parts of ruby more pleasant
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
...most of them
Styles has quit [Changing host]
Styles has joined #ruby
aspiers_ has joined #ruby
axl_ has joined #ruby
<sickweezle>
benzrf: That's the thing. I'm not sure. I just find myself very frustrated when trying to get a number of things up and running.
aspiers has quit [Read error: Operation timed out]
S0da has joined #ruby
<benzrf>
sickweezle: perhaps you do not understand the python ecosystem fully
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
yasushi has quit [Ping timeout: 272 seconds]
<benzrf>
sickweezle: are you up2date on venvs and shit
<sickweezle>
benzrf: That is almost certainly true.
fijimunkii has joined #ruby
Bira has quit [Remote host closed the connection]
<platzhirsch>
The Python ecosystem is two isles and between them is a gap down to hell The Isles are known as Python 2 and Python 3
S0da has quit [Remote host closed the connection]
<sickweezle>
hah
zigomir has quit [Ping timeout: 252 seconds]
phinfonet has joined #ruby
<sickweezle>
benzrf: I know extremely little about virtual environments. :/
coderhs has quit [Ping timeout: 260 seconds]
<benzrf>
sickweezle: the python dev way is to make a venv
<benzrf>
sickweezle: a venv is basically a fake mini python install that is kept local to a user dir
SCommette has quit [Quit: SCommette]
<benzrf>
sickweezle: you install packages normally, then when you need to share it you dump your package list to a file
jayferd is now known as jayferd|afk
<platzhirsch>
Can be similar to RVM
<benzrf>
the standard format is known as requirements.txt
<benzrf>
*filename for this
phipes has joined #ruby
<benzrf>
equivalent to a Gemfile more or less
vjt has joined #ruby
<benzrf>
only not python code
spyderman4g63 has joined #ruby
<benzrf>
since python sux at dsls
<sickweezle>
I suspect a lot that helps frustrate me is that my coworker does know more of Python than me, but tends to go for fast rather than good, so I get a tangle to unravel.
<benzrf>
o:
cbetta is now known as cbetta_afk
tt1187 has quit [Ping timeout: 245 seconds]
alexfreidah has joined #ruby
<sickweezle>
I have no idea how he tested this code, as it definitely doesn't work with some of the Pylon bits.
<benzrf>
maybe he did not write tests
<sickweezle>
Well, get it running to poke the web part and see if it did anything.
saarinen has quit [Quit: saarinen]
<sickweezle>
From example-land, after the install bit, use 'pserve <ini file>' to make it run. That throws a stack trace for his. O.o
<benzrf>
show teh trace
nide has quit [Ping timeout: 272 seconds]
heidi has quit [Quit: Leaving.]
coca_rails has joined #ruby
<sickweezle>
Erm, moment.
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
binaryhat has quit [Quit: Leaving]
thumpba has joined #ruby
<sickweezle>
benzrf: Okay, figured out at least some ... I'm not sure that what he has done will actually work at all the way Pylons is intended to. It appears to run because he wrote a class in a file with a if __name__ == '__main__': ... bit which bootstraps it.
ner0x has joined #ruby
Xeago has joined #ruby
Mars has joined #ruby
Mars is now known as Guest39005
heidi has joined #ruby
binaryhat has joined #ruby
lewix has joined #ruby
cj3kim has joined #ruby
<sickweezle>
benzrf: tyvm for the help; I suspect I'm going to have to drag bits and pieces over until I've got a working replacement, then nuke and replace what is in the repo.
lukec has joined #ruby
HashNuke_ is now known as HashNuke
rootshift has quit [Quit: rootshift]
`petey` has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
`petey` has joined #ruby
lukec has quit [Client Quit]
senayar_ has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
MindfulMonk has quit [Ping timeout: 276 seconds]
sergicles has joined #ruby
dankest has quit [Quit: Peace]
CpuID has joined #ruby
tylersmith has quit [Remote host closed the connection]
Brolen has joined #ruby
cj3kim has quit [Ping timeout: 248 seconds]
`petey` has quit [Ping timeout: 246 seconds]
coffeina has quit [Quit: Wychodzi]
senayar has quit [Ping timeout: 252 seconds]
Brolen has quit [Client Quit]
w4pm has quit [Read error: Operation timed out]
bricker has quit [Quit: leaving]
jmg_ has joined #ruby
endash has quit [Quit: endash]
phasel has joined #ruby
tharindu has joined #ruby
jmg_ has quit [Client Quit]
h4mz1d has joined #ruby
alexfreidah has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: Leaving...]
emocakes has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
subbyyy__ has quit [Ping timeout: 248 seconds]
Guest39005 has quit [Remote host closed the connection]
<platzhirsch>
benzrf: so you are well into Python, too, no?
<benzrf>
not anymore much
<benzrf>
i used it for
<benzrf>
hmm
<benzrf>
im guessing almost a year
<benzrf>
i know it v well
<benzrf>
but i jumped ship for ruby a month or two ago
<benzrf>
maybe more ? not sure
<benzrf>
i already knew a little bit of ruby from wpgtr since quite a while longer ago\
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heidi has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 276 seconds]
<benzrf>
i went to python from java, so I was a REALLY big fan of ItSANgo
<benzrf>
*it
gja has joined #ruby
<benzrf>
python -> ruby is a much less dramatic transition
<sickweezle>
ItSANgo? O.o
h4mz1d has quit [Ping timeout: 246 seconds]
<platzhirsch>
yeah, both are dynamic typed
<platzhirsch>
tend to solve the same problems
CpuID has quit [Quit: This computer has gone to sleep]
_whitelogger has joined #ruby
<benzrf>
sickweezle: i tend to press tab then backspace habitually
<benzrf>
one of many tics i have >_>
<benzrf>
it often ends up completing short word to nicks when ircing
<sickweezle>
OH! Now I understand. Heh.
codepython777 has joined #ruby
codepython777 has quit [Max SendQ exceeded]
JonnyRo has quit [Quit: Lost terminal]
codepython777 has joined #ruby
burlyscudd has joined #ruby
timonv has joined #ruby
Hanmac1 has joined #ruby
ehc has quit [Quit: ehc]
Hanmac has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 248 seconds]
rootshift has joined #ruby
maroloccio has joined #ruby
w4pm has joined #ruby
wallerdev has joined #ruby
tropicalmug has joined #ruby
james_woods has quit [Ping timeout: 252 seconds]
tropicalmug has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
raja has joined #ruby
havenwood has joined #ruby
coca_rails has quit [Remote host closed the connection]
shadoi has joined #ruby
S0da has joined #ruby
rudisimo has joined #ruby
james_woods has joined #ruby
ando has joined #ruby
yasushi has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 245 seconds]
raja has quit [Ping timeout: 252 seconds]
troyready has quit [Ping timeout: 252 seconds]
emocakes has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
popl has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
<benzrf>
ive been dreaming of a new language
digital-ghost has quit [Remote host closed the connection]
<benzrf>
with currying and spaced function application and first class functions
<benzrf>
but also with prototype OO and blocks
<benzrf>
and ruby-like syntax
emocakes has joined #ruby
<benzrf>
but optionally indented like python
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
alexfreidah has joined #ruby
sassamo has quit [Ping timeout: 260 seconds]
e62 has quit [Ping timeout: 272 seconds]
senayar_ has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
sassamo has joined #ruby
shadoi has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
gja has joined #ruby
* platzhirsch
pukes
<benzrf>
fu it would be awesome
<benzrf>
B)
tharindu has joined #ruby
ckinni has joined #ruby
IceyEC has joined #ruby
yoshie902a has joined #ruby
fijimunkii has joined #ruby
capicue has quit [Quit: Leaving...]
tylersmith has joined #ruby
Jdubs has joined #ruby
burlyscudd has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
baschtmobil has quit [Ping timeout: 272 seconds]
platzhirsch has quit [Ping timeout: 272 seconds]
IceyEC has quit [Quit: IceyEC]
coderhs has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Ping timeout: 248 seconds]
IceyEC has joined #ruby
rootshift has quit [Quit: rootshift]
freezey has joined #ruby
phinfonet has quit [Quit: exitiing]
narcan has joined #ruby
burlyscudd has joined #ruby
e62 has joined #ruby
rudisimo has quit []
Mars has joined #ruby
Mars is now known as Guest41497
fijimunkii has quit [Ping timeout: 276 seconds]
workweezle has quit [Quit: leaving]
freezey has quit [Remote host closed the connection]
fijimunkii has joined #ruby
fixl has joined #ruby
IceyEC has quit [Quit: IceyEC]
benzrf has quit [Quit: zzz]
vlad_starkov has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
platzhirsch has joined #ruby
pu22l3r has joined #ruby
emocakes has quit [Quit: Leaving...]
e62 has quit [Ping timeout: 252 seconds]
mavcunha has quit [Quit: Computer has gone to sleep.]
rec has joined #ruby
pu22l3r has quit [Remote host closed the connection]
* sickweezle
has definitely done enough work things today.
IceyEC has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has quit [Ping timeout: 272 seconds]
parduse has joined #ruby
kells_ has joined #ruby
<yasu>
"&" should be "&" (character reference) in HTML
rec has quit [Quit: leaving]
Wolland has quit [Remote host closed the connection]
dkannan has joined #ruby
kells_ has quit [Client Quit]
end_guy has joined #ruby
kells_ has joined #ruby
charliesome has joined #ruby
havenwood has joined #ruby
mlpinit has joined #ruby
raja has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
parduse has quit [Ping timeout: 245 seconds]
deens has joined #ruby
Guest41497 has quit [Remote host closed the connection]
mlpinit has quit [Client Quit]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
kyle__ has joined #ruby
havenwood has joined #ruby
mlpinit has joined #ruby
Vedubo has joined #ruby
aspires has joined #ruby
<Vedubo>
Join #python!
ce_afk is now known as cescalante
<kyle__>
Is there an easyish way to get regex matching for CSV headers?
<popl>
Vedubo: Has that ever worked?
<Vedubo>
popl: I don't know. I cannot join #python
cescalante is now known as ce_afk
<popl>
Vedubo: You should register with nickserv.
kells_ is now known as kells
gja has quit [Quit: This computer has gone to sleep]
<kyle__>
so you'd do something like CSV.open('blah.csv',:headers=>true).each{|something| puts something[/fuzzy/]}
<Vedubo>
I certainly won't support the facist regime by registering with freenode
Albright has joined #ruby
<Vedubo>
registering = acceptance, viva la resistance
<kyle__>
It's almost too pathetic an attempt at trolling to even get kicked for.
axl_ has quit [Quit: axl_]
raja has quit [Ping timeout: 276 seconds]
Xiti has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
stkowski has quit [Ping timeout: 260 seconds]
psyl0n has joined #ruby
psyl0n has joined #ruby
fijimunkii has quit [Read error: Connection reset by peer]
dkannan has quit [Quit: dkannan]
alexfreidah has quit [Ping timeout: 272 seconds]
binaryhat has quit [Quit: Leaving]
Albright has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
ItSANg___ has joined #ruby
ItSANg___ has quit [Client Quit]
<Vedubo>
kyle__: Thank you?
<slash_part>
facist regime... aka, the zuckerberg administration
vlad_starkov has quit [Read error: Connection reset by peer]
<Vedubo>
Because irc.freenode.net belongs to Facebook.. no, what? yes
_5kg has quit [Ping timeout: 246 seconds]
Albright has joined #ruby
nanoyak has joined #ruby
_5kg has joined #ruby
cj3kim has quit [Ping timeout: 272 seconds]
<slash_part>
I was giving you a hard time over your misspelling.. all in good fun.
crapple has quit [Quit: Bye]
<slash_part>
Being punny.
<centrx>
*clap*clap*
aspires has quit []
<Vedubo>
slash_part: oh, darn. You are right
<slash_part>
it's a curse
yoshie902a has quit [Quit: yoshie902a]
eka has quit [Quit: Computer has gone to sleep.]
amclain has joined #ruby
tharindu has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
<kyle__>
So, nobody here has had a desire to pull CSV headers by regex?
<Vedubo>
kyle__: that sounds horrible
<Vedubo>
CSV by regex?
<Vedubo>
don't do that, seriously
<Vedubo>
just parse the line
allaire has joined #ruby
<slash_part>
why by regex?
allaire has quit [Client Quit]
<kyle__>
slash_part: For the headers. I get csv dumps periodically (out of my control), and the headers are frequently sbutly different.
<kyle__>
err subtly
<kyle__>
however you spell it.
lyanchih has quit [Quit: lyanchih]
Xeago has joined #ruby
<Vedubo>
why not read the first line and split the string
<slash_part>
kyle__: are they always in the same order?
<kyle__>
slash_part: They've been in the same order twice. Ever. I get 6-10 of these a year.
timonv has joined #ruby
<kyle__>
Vedubo: I'm not parsing the CSV with regex, I just want to have fuzzy matching for header names.
<slash_part>
so transform the first line by regex...
tharindu has quit [Ping timeout: 272 seconds]
<slash_part>
to what you want it to be... then parse it normally
<kyle__>
slash_part: The sane person would just edit the code, since it's only a few times a year.... but it bothers me.
<slash_part>
that's what i'm saying to do
<slash_part>
gsub with regexes... so gsub(/fuzzy/, "exact")... then puts something["exact"]
<RubyPanther>
kyle__: If you're parsing it out to store it somewhere else, all you have to do is parse the headers and make a mapping hash where the wanted heading maps to the index of that field, then you can just read the data and put it in the correct place easily
<slash_part>
RubyPanther: it varies too much for a mapping to be useful, from the sound of it...
aspires has quit []
Xeago has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 248 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<kyle__>
RubyPanther: I'm making a mapping now, just throwing it into a hash. But I was hoping to find something cleaner.
Mattx has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
* slash_part
votes for his own suggested solution
<RubyPanther>
It isn't going to be clean if your data is partially garbage. sanity is sufficient expectation there
<kyle__>
slash_part: I've been doing mapping, and updating them periodically, but now it's gotten to the point where a simple map is cumbersome, and I've got to generate it via regex matches.
Wixy has quit [Ping timeout: 252 seconds]
<kyle__>
RubyPanther: Point.
<slash_part>
< slash_part> gsub with regexes... so gsub(/fuzzy/, "exact")... then puts something["exact"]
Fire-Dragon-DoL has left #ruby [#ruby]
deens has quit [Remote host closed the connection]
<slash_part>
all you need to do is transform the header before reading the csv
<kyle__>
slash_part: Of the header row, and write it back out? HUmm.
<kyle__>
I generally only use the CSV libs for reading... have to look at modifying them.
<RubyPanther>
in my experience I can handle a lot of these legacy data import situations with regexes like /^\s*foo\s*bar\s*$/i
<slash_part>
no no...
deens has joined #ruby
<RubyPanther>
especially if it is a rarely used tool where you're verifying success by hand each time
psyl0n has quit [Remote host closed the connection]
Mars has joined #ruby
Mars is now known as Guest81717
braincra- has quit [Quit: bye bye]
<slash_part>
i do most of my ETL stuff in shell..
w4pm has quit [Ping timeout: 252 seconds]
rezzack has quit [Quit: Leaving.]
<kyle__>
slash_part: ETL?
<slash_part>
extract, transform, load
<slash_part>
it's a thing :)
<kyle__>
Ahh. It's late. I"m not parsing acronyms well.
abzuio has joined #ruby
<RubyPanther>
That's where the scripts in ~/bin/ come from, you paste it out of the shell after doing it by hand
<slash_part>
pick it up, fix it how you want it, load the thing
coderhs has joined #ruby
burlyscudd has joined #ruby
ner0x has quit [Quit: Leaving]
<slash_part>
RubyPanther: huh? what's where those come from?
havenwood has joined #ruby
<RubyPanther>
Well, only if you're blessed with the virtue of Laziness
<RubyPanther>
But if you're doing it in the shell in an office environment, make sure to have a witty retort prepared for when somebody asks where the tests are for the data import
daidoji has joined #ruby
<kyle__>
RubyPanther: There's a special type of laziness, where doing something is too annoying to do repeatedly, so you spend 50x longer writing a solution. Just so you never do it again.
<slash_part>
writing code is fun, doing things not so much...
<RubyPanther>
kyle__: Yes, well, it shouldn't really take that long, especially if you just do it by hand in irb and then extract it into a script
vlad_starkov has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
<RubyPanther>
Going long on something like that implies a recreational desire to make some sort of artsy, stylized what-the-what, instead of just scripting the actual task
bsdbandit has joined #ruby
<kyle__>
RubyPanther: It just seems like it's that long, after you've played with the code enough times.
* kyle__
has considered that he tends to work on this when other projects are slow or stuck....
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
ru has joined #ruby
Wixy has joined #ruby
dkannan has joined #ruby
ru is now known as uber
uber is now known as Guest70635
Vivekananda has quit [Quit: Ex-Chat]
<kyle__>
Night. TIme for bed.
<slash_part>
buenas noches
<popl>
buenos nachos
thomasxie has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
Guest70635 has quit [Client Quit]
heidi has joined #ruby
heidi has quit [Client Quit]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
<slash_part>
and now i'm hungry.
<slash_part>
thanks popl.
mib_mib has joined #ruby
<mib_mib>
why is downloading a file from s3 only giving me ~ 100KB/s ? speedtest.net says i have roughly 35 down
sassamo has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
reach has joined #ruby
mengu has joined #ruby
<reach>
how long should it take to learn web development and start freelancing with programming experience (not in web dev)?
<reach>
im starting to learn ruby, want to do RoR, and hopefully do some freelancing to gain experience
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
raja has joined #ruby
<centrx>
reach, Hard to say, do you have any past programming experience?
starkhalo has quit [Ping timeout: 272 seconds]
<reach>
i did a year of java, (beginner/intermediate), and have been programming in CAS for the last year
<reach>
I can program, I just don't know the language
<centrx>
Okay then you should pick it up in a couple days :)
<reach>
what really?
<musl_>
reach: How familiar are you with HTTP, related protocols, and the like?
<centrx>
no jk
<reach>
not at all familiar
<musl_>
It might take a bit of reading and time then.
deens has joined #ruby
<reach>
would codeschool be a good place to sign up and learn?
<musl_>
I've always thought that if one can read code, that the code is the best teacher.
<reach>
yeah, i'd prefer to read a textbook and just go at exercises
mengu has quit [Ping timeout: 265 seconds]
cads has quit [Ping timeout: 260 seconds]
starkhalo has joined #ruby
raja has quit [Ping timeout: 248 seconds]
<musl_>
If you're after rails, there are a great number of books on the subject.
fmcgeough has quit [Quit: fmcgeough]
<musl_>
I prefer those at pragprog.com
<reach>
i have the one on ruby
<musl_>
I like the writing style.
mr_red has quit [Ping timeout: 276 seconds]
<musl_>
I'd urge you to learn ruby and systems programming first, if you have time. Wait, even if you dont.
<musl_>
It'll teach you a lot about ruby and what it can do by itself and how it interacts with the system.
<pontiki>
there is much to learn about developing web apps beyond learning ruby, and taking a rails tutorial
deens has quit [Ping timeout: 245 seconds]
<pontiki>
but they are great places to start
<musl_>
Yep.
cads has joined #ruby
<RubyPanther>
6 months, 17 days
<pontiki>
journey of 1000 miles and all that
<pontiki>
10_000 hours to get world class
<RubyPanther>
Unless you're trying to understand Journey routing, then add a couple years of algorithm study
yasushi has quit [Remote host closed the connection]
<RubyPanther>
Do you need to roflscale, or is webscale enough?
maroloccio has quit [Quit: WeeChat 0.4.2]
musl_ has quit [Quit: WeeChat 0.4.1]
yfeldblum has joined #ruby
musl has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ando has quit [Ping timeout: 265 seconds]
<Vedubo>
Join #Python
<sickweezle>
who/why? O.o
<musl>
IndentationError: unexpected indent
mehlah has joined #ruby
<Vedubo>
musl: touche
<musl>
:D
nari has joined #ruby
_maes_ has joined #ruby
coderhs has joined #ruby
abzuio has left #ruby [#ruby]
mary5030 has joined #ruby
tylersmith has joined #ruby
tharindu has joined #ruby
tejas has joined #ruby
araujo has quit [Quit: Leaving]
OdNairy has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
craigp has joined #ruby
tylersmith has quit [Remote host closed the connection]
mr_red has joined #ruby
gja has quit [Ping timeout: 272 seconds]
craigp has quit [Remote host closed the connection]
_1_Zylon360 has joined #ruby
deens has joined #ruby
_1_Zylon360 has left #ruby [#ruby]
tharindu has quit [Ping timeout: 260 seconds]
IceyEC has quit [Quit: IceyEC]
emocakes has joined #ruby
ambushsabre has quit [Quit: rip]
FDj has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.2]
kotk1 has quit [Ping timeout: 260 seconds]
robertrv has quit [Ping timeout: 260 seconds]
blarghmatey has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
segv has left #ruby ["Leaving"]
figgleberry has joined #ruby
megus has quit [Quit: Lost terminal]
ununPentium has joined #ruby
ununPentium has quit [Changing host]
ununPentium has joined #ruby
amclain has quit [Quit: Leaving]
psyl0n has joined #ruby
fire has joined #ruby
Crazydoode has quit [Ping timeout: 252 seconds]
ddd has quit [Quit: rebooting system]
fire has quit [Client Quit]
rmroulette has quit [Quit: leaving]
ddd has joined #ruby
Vedubo has quit [Quit: Page closed]
platzhirsch has left #ruby [#ruby]
fixl has quit [Remote host closed the connection]
fire has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
psyl0n has quit [Remote host closed the connection]
ando has joined #ruby
yasushi has joined #ruby
lyanchih has joined #ruby
yarou has quit [Quit: This computer has gone to sleep]
raja has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
reach has quit [Remote host closed the connection]
alexfreidah has joined #ruby
fire has quit [Ping timeout: 260 seconds]
raja has quit [Ping timeout: 276 seconds]
psyl0n has joined #ruby
alexfreidah has quit [Ping timeout: 260 seconds]
mikemac has quit [Ping timeout: 246 seconds]
mikemac has joined #ruby
psyl0n has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has joined #ruby
MrThePlague has joined #ruby
maroloccio has joined #ruby
Guest81717 has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
coderhs has quit [Read error: Connection reset by peer]
dkannan has quit [Quit: dkannan]
sassamo has joined #ruby
mikecmpbll has joined #ruby
tharindu has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
yugui_zzz is now known as yugui
yugui is now known as yugui_zzz
keen_ has joined #ruby
yugui_zzz is now known as yugui
sassamo has quit [Ping timeout: 252 seconds]
lukeholder has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
BrixSat has quit [Remote host closed the connection]
pwh has joined #ruby
BrixSat has joined #ruby
browndawg has joined #ruby
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
mikecmpbll has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
tylersmith has joined #ruby
burlyscudd has joined #ruby
coderhs has joined #ruby
fixl has joined #ruby
tharindu has joined #ruby
guinslym_ has joined #ruby
mehlah has quit [Quit: Leaving...]
tylersmith has quit [Ping timeout: 252 seconds]
Jdubs has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 248 seconds]
Jdubs has joined #ruby
vlad_starkov has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
raja has joined #ruby
ahmedelgabri has joined #ruby
Mars has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
Mars is now known as Guest73449
pwh has quit []
mehlah has joined #ruby
maroloccio has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
Fezzler has joined #ruby
guinslym_ has quit [Quit: Leaving]
ryanuber has joined #ruby
Fezzler has quit [Client Quit]
tharindu has quit [Quit: Leaving...]
mary5030 has quit [Remote host closed the connection]
noop has joined #ruby
tyl_ has joined #ruby
deens has quit [Remote host closed the connection]
ryanuber is now known as ru
yugui is now known as yugui_zzz
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
aleandros has joined #ruby
ru has quit [Quit: leaving]
aleandros has quit [Client Quit]
browndawg has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
ru has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
deens has joined #ruby
starkhalo has quit [Ping timeout: 272 seconds]
maroloccio has joined #ruby
thesheff17 has quit [Remote host closed the connection]
Guest73449 has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
thesheff17 has joined #ruby
lyanchih has quit [Quit: lyanchih]
thesheff17 has quit [Remote host closed the connection]
decoponio has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
MattStratton has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
phipes has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
deens has quit [Remote host closed the connection]
el_cristobal has joined #ruby
pushpak has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
el_cristobal has quit [Quit: Leaving]
el_cristobal has joined #ruby
ru has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
ru has joined #ruby
thesheff17 has joined #ruby
ewnd9 has joined #ruby
parduse has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
parduse has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
tyl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phipes has joined #ruby
tyl has joined #ruby
gja has joined #ruby
maletor has joined #ruby
<ru>
i have a n00b question. i have been using 1.8.7 (gasp) for some time now, just because it is the default in RHEL, and was the default before Mavericks in OSX. I am curious why something like the following no longer works: https://gist.github.com/ryanuber/8367898
lioninawhat has quit [Remote host closed the connection]
<ru>
i mean - no longer works in 2.x
meatherly has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
tyl has quit [Client Quit]
rippa has joined #ruby
browndawg1 has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
browndawg has quit [Ping timeout: 252 seconds]
<pontiki>
how exactly does that "work" in 1.8.7?
rhys has quit [Ping timeout: 240 seconds]
<pontiki>
does it print out "is a test" ?
SHyx0rmZ has joined #ruby
SHyx0rmZ has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
okinomo has joined #ruby
rhys has joined #ruby
<ru>
odd - you are right it doesnt work because of the word "test"
burlyscudd has joined #ruby
<ru>
understandably already defined. however, the same function with "blah blah" seems to work in 1.8.7 and not in 2.x
SHyx0rmZ has joined #ruby
<ru>
just trying to understand what changed and why it affects this.
robbyoconnor has joined #ruby
<pontiki>
i know the root object changed
daidoji has quit [Read error: Operation timed out]
<pontiki>
and it's class
<pontiki>
but i don't really know much more than that
<pontiki>
i think they discuss implementation issues
<pontiki>
i've never been, so i don't know if they would entertain your question
Jdubs has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
lioninawhat has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
lioninawhat has quit [Remote host closed the connection]
<ru>
pontiki: cool, thanks, ill give it a whirl. im sure its simple, i just done know a whole lot about the vm internals.
xjiujiu has joined #ruby
darthdeus has quit [Quit: Leaving...]
IceDragon has quit [Quit: Space~~~]
aryaching has quit [Ping timeout: 246 seconds]
yugui_zzz is now known as yugui
chovy has joined #ruby
<chovy>
how do i install gem locally?
<ru>
chovy: if you mean as a local user, i believe gem install has a --user-install option
okinomo has quit [Remote host closed the connection]
okinomo has joined #ruby
<popl>
yes
<popl>
should install to ~/.gem/ruby/…
<popl>
just make sure the appropriate bin folder is in your path
<popl>
e.g. I have ~/.gem/ruby/1.9.1/bin/
<chovy>
ru: i don't have a gem command
<chovy>
and i don't have root
<ru>
chovy: what is your OS
<chovy>
linux
zxd has joined #ruby
[_aeris_] is now known as _aeris_
sassamo has joined #ruby
<ru>
chovy: CentOS? Ubuntu?
<chovy>
i don't know
<ru>
gentoo?
browndawg1 has quit [Ping timeout: 246 seconds]
<popl>
Why don't you know?
<chovy>
its a shared host. i didn't install it.
<chovy>
$ uname -a
<chovy>
Linux n10 3.2.6mtv13 #1 SMP Tue May 14 15:32:13 PDT 2013 x86_64 GNU/Linux
ando has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
ando has joined #ruby
xjiujiu has joined #ruby
SHyx0rmZ has quit [Ping timeout: 272 seconds]
<popl>
chovy: do «cat /etc/*-release»
daidoji has joined #ruby
<popl>
or look at /proc/version
<popl>
Sometimes that will say.
ando has quit [Remote host closed the connection]
ando has joined #ruby
barntzen has quit [Quit: Leaving]
lyanchih has joined #ruby
browndawg has joined #ruby
<popl>
anyways, chovy, just go to the rubygems site, download the tarball and install it locally
marr has joined #ruby
<popl>
then you can install all your gems locally
zxd has quit [Ping timeout: 276 seconds]
sassamo has quit [Ping timeout: 265 seconds]
ando has quit [Remote host closed the connection]
yugui has quit [Quit: Tiarra 0.1+svn-24729: SIGTERM received; exit]
ando has joined #ruby
<chovy>
its debian
marr has quit [Client Quit]
<popl>
How did you determine that?
aryaching has joined #ruby
Mars has joined #ruby
Mars is now known as Guest29483
<chovy>
proc/version
<chovy>
Linux version 3.2.6mtv13 (ci_slave@cislave33-git.mtsvc.net) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1
<popl>
sweet!
ando has quit [Remote host closed the connection]
ando has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
<popl>
It's not really standard across Linux distributions so you have to do some investigation. I use slackware and there is /etc/slackware-version but there's nothing in /proc/version to mention, for example
<aniketpant>
I am trying to write a simple application in Sinatra that fetches my last 20 twitter favorites and then prints them. Since the twitter gem allows only single requests, I am not sure how to use multiple requests in one go.
SCommette has joined #ruby
deens has joined #ruby
timonv has joined #ruby
<aniketpant>
Can someone help me with it ^ ?
<chovy>
what should i set GEM_HOME to?
<popl>
What have you got so far?
ando has quit [Remote host closed the connection]
ando has joined #ruby
alexfreidah has joined #ruby
<aniketpant>
I have been able to make individual requests.
<aniketpant>
But the moment I try them in a loop, it takes close to 20 seconds and I get an exception
Guest29483 has quit [Ping timeout: 265 seconds]
faulkner has quit [Quit: boo.]
<popl>
chovy: wherever you want. just be consistent
ando has quit [Remote host closed the connection]
ando has joined #ruby
gigetoo has quit [Remote host closed the connection]
ando has quit [Remote host closed the connection]
ando has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
ando has quit [Remote host closed the connection]
deens has quit [Ping timeout: 276 seconds]
ando has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
ru is now known as ryanuber
Who has joined #ruby
centrx has quit [Quit: Leaving]
ando has quit [Remote host closed the connection]
ando has joined #ruby
<popl>
chovy: if you change $GEM_HOME to something local then you probably won't have to pass the --user-install switch to gem. if you don't want to worry about it and plan to always use --user-install, don't worry about setting $GEM_HOME because it will install to ~/.gem/ruby/… anyways (and complain if you try to use it without --user-install, which might be good to remind you that you're using a local version of gem).
arietis has joined #ruby
ando has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
ando has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
cads has joined #ruby
ando has quit [Remote host closed the connection]
deens has joined #ruby
ando has joined #ruby
browndawg has quit [Read error: Operation timed out]
<chovy>
so i installed it to $HOME/opt/gem
aniketpant has left #ruby ["Off to someplace else."]
<chovy>
but it can't find gem command and i see a ./opt/gem/bin/gem1.8
<popl>
did you put ./opt/gem/bin in $PATH?
<chovy>
no
<popl>
:P
Lewix has quit [Remote host closed the connection]
<popl>
23:21 < popl> just make sure the appropriate bin folder is in your path
<popl>
:)
<chovy>
stll no gem command
<popl>
you might have to symlink gem to gem18 or
<popl>
something
<chovy>
k
<popl>
or you could just call it with gem18
<popl>
it's up to you
<chovy>
$ gem install sass
<chovy>
/home/108745/users/.home/opt/gem/bin/gem:8:in `require': no such file to load -- rubygems (LoadError) from /home/108745/users/.home/opt/gem/bin/gem:8
el_cristobal has quit [Ping timeout: 252 seconds]
<popl>
which gem are you using? «which gem»
<chovy>
$ which gem
<chovy>
/home/108745/users/.home/opt/gem/bin/gem
S0da has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
SCommette has quit [Quit: SCommette]
<popl>
Hm. I don't know chovy. I just downloaded rubygems from the site, installed it locally, and installed sass locally just fine.
el_cristobal has joined #ruby
tectonic has joined #ruby
browndawg has joined #ruby
<chovy>
how did you install rubygems locally?
<chovy>
i ran ruby ./setup.rb --prefix=$GEM_HOME
arietis has quit [Quit: Computer has gone to sleep.]
<popl>
ruby setup.rb --prefix=/home/popl/foo
<popl>
then it created bin/… and lib/… inside /home/popl/foo and installed stuff into those locations
_aeris_ is now known as [_aeris_]
rubyracer has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<chovy>
k
<chovy>
that's what i did
raja has quit [Ping timeout: 265 seconds]
el_cristobal has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
meatherly has quit [Remote host closed the connection]
<chovy>
oh well.
<chovy>
pos host
<ryanuber>
who is the isp out of curiosity?
Who has left #ruby [#ruby]
<agent_white>
chovy: `which ruby` returns what?
ando has quit [Remote host closed the connection]
<agent_white>
as well as `which gem`
ando has joined #ruby
<popl>
agent_white: he already did that.
<agent_white>
popl: Ahhh :/
Hanmac has quit [Ping timeout: 276 seconds]
dapz has joined #ruby
<agent_white>
popl: And added the one liner to his bashrc?
<chovy>
agent_white /usr/bin/ruby
<chovy>
agent_white: what one liner?
thesheff17 has quit [Ping timeout: 252 seconds]
<agent_white>
i guess 3 liner ;P
<chovy>
its ruby 1.8.7 if that means anything
<agent_white>
if which ruby >/dev/null && which gem >/dev/null; then
<popl>
you should pay attention if you want to help, agent_white :P
<agent_white>
popl: I have problems with attention ;)
<popl>
Yes, apparently you do.
<popl>
:P
klaut has joined #ruby
<popl>
chovy: I don't know if it would work, but you could try to install rbenv or something then use that ruby to install rubygems locally.
burlyscudd has joined #ruby
<popl>
I use the system ruby myself so I have never done that.
<agent_white>
eeep
Spami has joined #ruby
<agent_white>
Shared hosting and using system ruby are big red flags
maletor has quit [Quit: Computer has gone to sleep.]
ando has quit [Ping timeout: 252 seconds]
<agent_white>
User installed, if you need access outside symlink, in my opinion. Deal with RVM pitfalls as system installed ruby ones are worse.
<ryanuber>
just get a linode or something :)
ando has joined #ruby
<popl>
Linode is expensive.
<agent_white>
Aye, or digitalocean. Build that shit from scratch. Shared hosting environments are like using hostels to house your babies.
<ryanuber>
agent_white: LOL
<chovy>
i know. but email setup sucks balls.
<popl>
Nah.
<ryanuber>
so put that somewhere else
phipes has quit [Remote host closed the connection]
<popl>
chovy: It's just an opportunity for growth. ;P
ando has quit [Remote host closed the connection]
ando has joined #ruby
<agent_white>
^ Definitely a day-eater, but you learn the most from those fuckups that happen.
<ryanuber>
i get his point. i ran my own mail servers for a while. its rewarding when you get it all set up perfect. but then 3 years later you are like "Well F..... why did I do this"
<chovy>
popl: no its not
<chovy>
its an opportunity for stupidity
noname001__ has joined #ruby
wildroman2 has joined #ruby
<agent_white>
ryanuber: Haha, then I go 'I really need to use Puppet this time.' ;P
<popl>
chovy: that's usually part of growth, innit?
xjiujiu has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
mrnugget has joined #ruby
luckyruby has quit [Remote host closed the connection]
wildroman2 has joined #ruby
senayar has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tyl has joined #ruby
zipper has quit [Read error: Connection reset by peer]
<Hanmac>
finnnnnnnnnnn: ruby1.9.3-p362 + "/Library/Ruby/Gems/1.8/" + "/Library/Ruby/Site/2.0.0" = "version chaos" it seems it picks the wrong ruby command and then falls into the wrong directories ... => i think you did something wrong when installing rbenv ... (i recommend rvm on Mac ... but i would not recommend Mac if possible )
juarlex has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
senayar has quit [Client Quit]
juarlex has joined #ruby
senayar has joined #ruby
zipper has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
coderhs has quit [Ping timeout: 246 seconds]
<finnnnnnnnnnn>
Hanmac: I used rvm before but the team I'm working with use rbenv so I have to switch.
robbyoconnor has joined #ruby
<finnnnnnnnnnn>
Hanmac: so I've removed dvm completely this morning
<finnnnnnnnnnn>
*rvm
<Hanmac>
i think that rbenv is not correctly installed into the bash rc files ... (i didnt do that for long time ago)
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juarlex has quit [Ping timeout: 272 seconds]
zipper has quit [Ping timeout: 248 seconds]
<finnnnnnnnnnn>
Hanmac: thanks will have a google
tectonic has quit []
wallerdev has quit [Quit: wallerdev]
byterussian has joined #ruby
camilasan has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
zipper has joined #ruby
alexherbo2 has joined #ruby
timonv has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Operation timed out]
stetho has joined #ruby
m00nlight_ has joined #ruby
robbyoconnor has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
m00nlight has quit [Ping timeout: 276 seconds]
kung has quit [Read error: Connection reset by peer]
m00nlight_ is now known as m00nlight
camilasan has joined #ruby
vlad_starkov has joined #ruby
burlyscudd has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyanchih has quit [Quit: lyanchih]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has quit [Remote host closed the connection]
OdNairy has joined #ruby
guinslym_ has joined #ruby
monkegjinni has joined #ruby
Mon_Ouie has joined #ruby
fire has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
Mars has joined #ruby
Mars is now known as Guest90622
sassamo has joined #ruby
kraljev1 has left #ruby [#ruby]
zipper_ has joined #ruby
tyl has joined #ruby
cj3kim has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
zipper has quit [Ping timeout: 260 seconds]
sassamo has quit [Ping timeout: 260 seconds]
weems has quit [Ping timeout: 260 seconds]
zipper_ has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
cbetta_afk is now known as cbetta
tyl has quit [Ping timeout: 248 seconds]
eka has joined #ruby
eka has quit [Client Quit]
tyl has joined #ruby
eka has joined #ruby
craigp has joined #ruby
aryaching has joined #ruby
zigomir has joined #ruby
drumusician has joined #ruby
shime has joined #ruby
kevinykchan has quit [Remote host closed the connection]
Guest90622 has quit [Remote host closed the connection]
MindfulMonk has joined #ruby
nemesit|znc has joined #ruby
timonv has quit [Remote host closed the connection]
g3orge has joined #ruby
sepp2k has joined #ruby
dangerousdave has joined #ruby
sensen has quit [Quit: leaving]
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
aspiers_ is now known as aspiers
zigomir has quit [Ping timeout: 252 seconds]
aniketpant has joined #ruby
<aniketpant>
I have a few questions about async requests. Can anyone help me out?
byterussian has left #ruby [#ruby]
burlyscudd has joined #ruby
Targen has joined #ruby
yfeldblum has joined #ruby
lyanchih has joined #ruby
lowski is now known as lowski_away
timonv has joined #ruby
Advocation has joined #ruby
<aniketpant>
Can anyone here help me out with a few queries on async requests?
Speed has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
aniketpant has quit [Quit: Off to code.]
<Hanmac>
aniketpant: just ask
vlad_starkov has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<jle`>
he has quit
Advocation has quit [Client Quit]
tvw has joined #ruby
rubyracer has quit [Ping timeout: 272 seconds]
rubyracer has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
lowski has quit [Ping timeout: 252 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
vlad_starkov has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexfreidah has joined #ruby
lowski has joined #ruby
m00nlight has quit [Remote host closed the connection]
cj3kim has joined #ruby
m00nlight has joined #ruby
Bira has joined #ruby
okinomo has quit [Ping timeout: 272 seconds]
phinfonet has joined #ruby
shime has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
yasushi has joined #ruby
craigp_ has joined #ruby
moncky has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
yokel has quit [Ping timeout: 245 seconds]
craigp has quit [Ping timeout: 252 seconds]
yasushi_ has joined #ruby
okinomo has joined #ruby
yasushi has quit [Ping timeout: 245 seconds]
jeekl has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
aryaching_ has joined #ruby
mengu has joined #ruby
havenwood has joined #ruby
lowski is now known as lowski_away
aryaching has quit [Ping timeout: 245 seconds]
sepp2k1 has joined #ruby
yasushi_ has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
yasushi has joined #ruby
browndawg has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 272 seconds]
tvw has quit []
rootshift has joined #ruby
rootshift has quit [Client Quit]
_5kg has quit [Ping timeout: 265 seconds]
juarlex has joined #ruby
Mars has joined #ruby
Mars is now known as Guest49154
vlad_starkov has joined #ruby
yasushi has quit [Remote host closed the connection]
ahmedelgabri has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 260 seconds]
lowski_away is now known as lowski
prc has quit [Quit: Leaving.]
lowski is now known as lowski_away
fgo has joined #ruby
spider-mario has joined #ruby
_5kg has joined #ruby
yasushi has joined #ruby
juarlex has quit [Ping timeout: 272 seconds]
Guest49154 has quit [Ping timeout: 276 seconds]
lorelei_ has quit [Ping timeout: 252 seconds]
yasushi has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 260 seconds]
Guest54329 has joined #ruby
m00nlight_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
m00nlight has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
mengu has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
mercwithamouth has quit [Quit: Lost terminal]
Bira has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
Bira_ has joined #ruby
arietis has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
Czupa has joined #ruby
Bira_ has quit [Ping timeout: 276 seconds]
Hanmac1 has joined #ruby
mostlybadfly is now known as mostlybadsky
<MindfulMonk>
is a hash of hashes ever a good idea?
mostlybadsky is now known as mostlybadfly
<apeiros>
sure, why not?
<apeiros>
but if you can, use proper classes.
<MindfulMonk>
feels kinda wrong
claymore has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
fgo has joined #ruby
claymore has joined #ruby
mehlah has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
Xeago has joined #ruby
w_alexus has quit [Ping timeout: 252 seconds]
sassamo has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
MrZYX|off is now known as MrZYX
lkba has joined #ruby
guinslym_ has quit [Ping timeout: 260 seconds]
mehlah has joined #ruby
mercwithamouth has joined #ruby
parduse has quit [Ping timeout: 265 seconds]
senayar_ has joined #ruby
sassamo has quit [Ping timeout: 248 seconds]
parduse has joined #ruby
Hanmac has joined #ruby
<shevy>
MindfulMonk the problem is, when your data structures become more and more complicated, accessing them can become more and more convoluted and inelegant
w_alexus has joined #ruby
<jle`>
hashes of hashes is just typical json
Hanmac1 has quit [Ping timeout: 246 seconds]
<jle`>
the main problem is that they lack any sort of semantic structure that the language can help you with
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
senayar has quit [Ping timeout: 276 seconds]
<apeiros>
or domain specific methods/features/utilities
<apeiros>
hence "use proper classes if you can"
gregpl has joined #ruby
lowski_away is now known as lowski
<apeiros>
it's also harder to grok such a structure.
<wald0>
which is a good book that includes a lot of knowledge in few reading? i mean, i hate those "bla bla" books which needs lots of pages for explain few things
browndawg has joined #ruby
<MindfulMonk>
wald0, practice
<MindfulMonk>
and docs
gregpl has quit [Client Quit]
finnnnnnnnnnn has joined #ruby
w_alexus has quit [Ping timeout: 272 seconds]
w_alexus has joined #ruby
m8 has joined #ruby
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
tyl has joined #ruby
ndrei_ has joined #ruby
ndrei_ has quit [Client Quit]
ndrei_ has joined #ruby
kirun_ has joined #ruby
popl has quit [Ping timeout: 252 seconds]
kirun_ has quit [Client Quit]
ndrei_ has quit [Client Quit]
ndrei_ has joined #ruby
w1xz has joined #ruby
kirun has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
IceyEC has joined #ruby
DouweM has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceyEC has quit [Client Quit]
kotk has joined #ruby
noop has quit [Ping timeout: 276 seconds]
yedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
noop has joined #ruby
Kar- has joined #ruby
Hanmac1 has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
wald0 we need a new tutorial ;)
<Hanmac1>
shevy: should i write it? ;D
<shevy>
no
<shevy>
we need someone who knows the english language very well
<Hanmac1>
ha now you where scared ;D
<shevy>
I do tons of mistakes myself :)
<shevy>
we should hire the monty python crew
<shevy>
or like, ten people do ten chapters of specific length and style
Hanmac has quit [Ping timeout: 276 seconds]
<wald0>
im looking right now the "rubymonk" site but i have a little hard to understand it... well, the examples are not very "examples", they are more like plain code than "a good example that lights you the use of foo"
<shevy>
I dont know the rubymonk site myself
<wald0>
shevy: this is not a bad idea, a croudfunding to make a really-good book with excelent examples :)
<shevy>
an expanded, updated variant of the chris pine tutorial would be nice and perhaps mixing in ideas of the creative part of the poignant guide (but it always seemed more like a cartoon to me than a tutorial)
<shevy>
I dont even think you need crowdfunding, just look at stackoverflow, it works!
<wald0>
i checked that poignant stuff and make me totally lost
timonv has quit [Remote host closed the connection]
* Hanmac1
cant remember anymore how he learned ruby ... he didnt use any tutorial, only studing the source of RMXP scripts
TerjeLarsen has joined #ruby
aryaching_ has quit [Ping timeout: 246 seconds]
<wald0>
just like a book of "computers for dummies" that i have see in a shop years ago, i opened it and saw that compared the screen with a oven and a keyboard with a bread, I said "big WTF dumbasses! how you want that ppl understands how a computers works on this way?!"
aryaching has joined #ruby
<bgy>
Hi
TerjeLarsen has quit [Client Quit]
<shevy>
wald0 yeah the poignant guide also confused me back then
<shevy>
but other people liked it
ndrei_ has quit [Quit: leaving]
<wald0>
shevy: are these ones good programmers? :)
<Hanmac1>
"is that time again." - "To make fun about php?" "to find bugs in the ruby source?" - "No, to restart the firefox browser" (one free imaginary cookie for everyone who understand the reference of the joke)
<shevy>
different people contributed to it. it was DAMN hard to find artists contributing to a game, especially good artists
gja has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
<wald0>
shevy: if i understood you correctly, yes... this is a tutorial more like "read the code and the comments, see how it is strctured, real examples and real code, it includes everything" :)
Naoe-Kanno has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
<wald0>
a little similar as a reference but a reference is meant to include "all", and this is meant to include the needed things to understand/use ruby
<wald0>
anybody want to improve it ? :)
<shevy>
I see
<shevy>
wald0 not really, I have not enough time :D
yasushi has joined #ruby
<shevy>
wald0 I tell you how I do that. I have a main directory where I keep like 90% of my ruby files
w1xz has quit [Quit: ZZZzzz…]
<shevy>
in this main directory one directory is called test/ and in that I put all .rb files that showcase or demo something
<shevy>
like one file demos how __END__ works or can be used in ruby
SHyx0rmZ has quit [Ping timeout: 276 seconds]
<wald0>
what i need to do someday also is to write a text file with a list of "examples of code" that i used in random codes, like "an example of gettext in foo app, an example of getopts/args in bar, etc"
<shevy>
then I have a main tutorial, a big page, that links in basically information about all that the stdlib has (one file that handles arrays, another handles string manipulation in ruby etc...), and then these files read in some example code from that test/ directory
MrPopinjay has joined #ruby
lyanchih has quit [Quit: lyanchih]
<wald0>
shevy: sounds good :) can you put it somewhere? (github?)
<shevy>
like: show_example :define_dynamic_methods # which shows in colours the define_dynamics_methods.rb file in test/ directory
lyanchih_ has joined #ruby
<shevy>
wald0 hmm let me think
<MrPopinjay>
Hello all. I'm on Debian Linux here. I installed ruby via apt, but now gem wants to install gems to a system directory, rather than inside my home directory. Should I not be installing and using ruby in this way?
<shevy>
wald0 the example .rb files sure
<shevy>
the tutorial has a lot of explanations in german though :(
AlSquire has joined #ruby
<wald0>
MrPopinjay: its suggested to stick at debian packages for stability, but you can install them in your home too (not via apt then)
<shevy>
MrPopinjay debian maintainers don't like competition like gem much at all
<wald0>
shevy: gems is like a replacement of their own package-manager lol
yasushi has quit [Ping timeout: 248 seconds]
<MrPopinjay>
THis channel is great. I've never consistently got such quick, helpful, and friendly advice before :)
senayar_ has quit [Remote host closed the connection]
<wald0>
there's gem2ruby package too, which can build a debian package of a gem that is not avialable on repos (make your own debian ruby gem package), MrPopinjay shevy
<shevy>
MrPopinjay well just keep in mind that debian changes things to better "fit" the debian way
itadder has joined #ruby
ndrei_ has quit [Quit: leaving]
<shevy>
my output of "gem env" will probably be different of your output of "gem env" MrPopinjay
lorelei_ has joined #ruby
<shevy>
different *to
lorelei_ has quit [Changing host]
lorelei_ has joined #ruby
<MrPopinjay>
Oh Debian. I do love it, but the packages are all funny
<itadder>
hi
<apeiros>
MrPopinjay: be prepared for fun. debians ruby packages are historically horrible
<shevy>
MrPopinjay does require 'mkmf' work for you if you are in irb ?
<itadder>
I trying to figure out
<itadder>
would it be possible to write powershell like cmdlet library for ruby
<apeiros>
if you're lucky, they're only 3 years behind too
<wald0>
apeiros: why is that? seems like there was some difficult to port gems to debian packages? dependency difficulties maybe?
<MrPopinjay>
shevy: Yes.
<shevy>
itadder do you mean for ruby scripts? or for microsoft powershell? if it is for ruby then sure
<apeiros>
wald0: I have no idea
<shevy>
MrPopinjay ok
<itadder>
for ruby
<shevy>
an object oriented ruby shell :)
<itadder>
like add powershell like cmdlet syntax on unix platform like OS Ten, Linux, and bsd
<itadder>
yea
<shevy>
yeah
<shevy>
but it's quite a lot of work
<itadder>
get-host
<shevy>
I think all projects that tried it eventually stopped
<wald0>
OO shell ?
<itadder>
who do I contact to help work on this project
* wald0
wonders how a OO shell should look like
<shevy>
itadder perhaps someone here
<itadder>
rubyonpower
<shevy>
what would also help is if you wrote up an explanation that others could read about the goals of the project and so forth
<itadder>
the goal is to port powershell code to unix, for admins who are not devops but have written simple powershell scripts to do X like grab info from a .csv file or .xml
fgo has joined #ruby
Kar- has quit [Ping timeout: 276 seconds]
havv has joined #ruby
<shevy>
interesting
<shevy>
you will have to parse that powershell code and translate it into ruby code, right?
<itadder>
yea
zxd has joined #ruby
fixl has quit [Ping timeout: 252 seconds]
<itadder>
but a winodws admin can do simple things also like get-host and get ruby on power version
<itadder>
do some simple task also
<wald0>
# Singleton's: in the same way you can define methods for existing objects, they are called singletons
<wald0>
is this correct? ^
<apeiros>
no
<itadder>
and maybe transtation them to ruby
tharindu is now known as tharindu|away
<emocakes>
so you just want to emulate powershell itadder
<emocakes>
more or less
<apeiros>
wald0: it is correct that you can define methods for existing objects. they're not called singletons. the place where methods for a single object are stored is called singleton_class.
<emocakes>
minus the cmdlets
<itadder>
emocakes: I guess
sassamo has joined #ruby
<shevy>
emocakes! hi!!!
<wald0>
ah
<itadder>
get powershell to admin a unix or none MS box using syntax they are used to
<apeiros>
wald0: also note that you can define methods for existing objects by adding methods to their class or any of its ancestors. but those methods are available to all other instances of that class too.
<shevy>
itadder I guess you should first write a translater/parser for powershell scripts
<itadder>
I would call it ruby on power
<shevy>
and make it a gem and upload it
<emocakes>
hey shevy <3
<wald0>
obj.instance_eval do def new_method ; puts 'im a new method' ; end ; end
<wald0>
i used that for this exaplanation, apeiros ^
<apeiros>
wald0: odd way to define a method on a single object
<apeiros>
wald0: just `def obj.new_method; … end`
fgo has quit [Ping timeout: 260 seconds]
<itadder>
shevy: now I have no idea how to do this, becuase I am no programer :(
<apeiros>
wald0: remember that when you see `def self.new_method; … end` in class bodies (same thing - self is an object)
<itadder>
just an idea I was thinking of yesterday
<wald0>
apeiros: spank rubymonk's site :þ
<itadder>
becuase I know how to do simple things in powershell but not in ruby or python
zxd has quit [Ping timeout: 252 seconds]
<apeiros>
wald0: feel free to tell the author
<shevy>
itadder hmm
<shevy>
itadder do you have a SMALL example of a powershell script?
<itadder>
yea
<itadder>
let me post it
mikecmpbll has joined #ruby
<wald0>
mmh, so now i have this:
<shevy>
the idea for powershell is cool. I also once wanted to combine it with avisynth scripts
<wald0>
# In the same way you can define methods for existing objects, they are called singleton_class
<wald0>
obj.instance_eval do def new_method ; puts 'born new method in an alive object' ; end ; end
<wald0>
# better way to define a method for an existing object, if you dont want to use dynamic code execution of eval
<shevy>
but it's all so much work...
<wald0>
obj.new_method do def new_method ; puts 'born new method in an alive object' ; end ; end
sassamo has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Remote host closed the connection]
lorelei_ has quit [Read error: Operation timed out]
<apeiros>
wald0: sounds like the methods were called "singleton_class", which is not true. the singleton_class is the class where those methods are stored.
<shevy>
hmm
<apeiros>
methods themselves don't care what their "audience" is
<apeiros>
and I'm not aware of a name for that either
<apeiros>
(there is the term "class methods" for the special case of methods defined for a single Class instance)
<itadder>
forgive me but I am no programmer shevy
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<itadder>
and I suffer from being hyperactive about things
<shevy>
itadder I don't value your skills, it is of no interest to me. I look at what can be done. One problem is that ruby does not too easily allow you to use '-' in method definitions
<wald0>
mmh, so what is "a singleton" then ? i have read that yesterday and just readed something to include it in my tutorial
<wald0>
apeiros:
<shevy>
self.class.send :'Foo-Bar'
<shevy>
itadder, you can define a method like that, and also invoke it in ruby
<shevy>
but
<shevy>
the syntax kinda sucks
m00nlight__ has joined #ruby
m00nlight_ has quit [Ping timeout: 245 seconds]
<apeiros>
wald0: a singleton is a term from the singleton pattern. it's a single instance of a class.
<itadder>
hmm
<MrZYX>
wald0: a singleton in general is something that can only exist once. There's for example the singleton pattern that prevents that there's more than one instance of a class
<wald0>
shevy: can you believe that this is done in C without OO ? :) lol
<shevy>
itadder yeah there are a TONS of possibilities
<itadder>
so would this require regex to be done
<shevy>
itadder a problem for me is that I only use linux these days :(
<itadder>
I would like to make this open
<itadder>
yea
<itadder>
I want this so windows admin like me can do powershell in linux or mac
<shevy>
though my scripts will work on windows too, but I can rarely test them
<itadder>
since both have ruby preinstalled
<shevy>
edje_cc: Critical. Unable to load image "emo-unhappy.png" used by file "../../data/themes/default.edj": F
<shevy>
emo! a pictures of emo!
<itadder>
okay I need to go to the GYM
<itadder>
so badly
redramires has joined #ruby
Kar- has joined #ruby
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<wald0>
shevy: or in other words, can you believe that what is done in minute 12:50 doesn't needs OO code ? :)
<shevy>
dunno
<shevy>
depends on the OO definition really
<itadder>
my end goal is port ruby on power to mac os ten
<wald0>
"no OO at all"
<shevy>
itadder 2014 is still a young year :D
<shevy>
wald0 no I mean, what exactly defines OO
<wald0>
shevy: this error trying to compile libefl? where did you download libefl from ?
<shevy>
in C you have data structures like struct too. that may already qualify as part of OOP :D
<itadder>
a lot of people in my office are using macs now at home, and we get to troubleshoot them but it would be cool if we could use some of the powershell syntax to troubleshoot
<wald0>
shevy: well, that part in 12:50 shows indpeendent terminal sessions running lots of features by their own, its easy to imagine that coded with OO but hard to think "how you would write it without OO"
<wald0>
ok, let me check
<shevy>
wald0 it is related to libpng somehow and I have 3 versions locally
<shevy>
I think the script is too dumb to figure out what libpng version to use consistently
<wald0>
shevy: btw have you tried to use the packages of arch from that guy? he's an active maintainer
<wald0>
shevy: first compile efl, when you have it, libelementary should compile fine
ixti has joined #ruby
gokul has quit [Ping timeout: 248 seconds]
ixti has quit [Client Quit]
ixti has joined #ruby
tharindu|away is now known as tharindu
matchaw has joined #ruby
dangerousdave has joined #ruby
pehlert has joined #ruby
tharindu has quit [Quit: Leaving...]
senayar has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
juarlex has joined #ruby
baschtmobil has joined #ruby
matchaw has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
sassamo has joined #ruby
<shevy>
wald0 I see
pskosinski has joined #ruby
matchaw has joined #ruby
<shevy>
hmm guys
<shevy>
require 'digest/md5reverse'
<shevy>
this does not work?
poulson has joined #ruby
leh has joined #ruby
rootshift has joined #ruby
<wald0>
shevy: you should not have any png problems imho with this one :), show me the "summarized options" result of autogen/configure checks (the one colored that lists the features to include)
<waxjar>
wald0: in some situation you need to be sure that there is only one instance
<waxjar>
*situations
gokul has joined #ruby
stetho has joined #ruby
Deele has joined #ruby
<wald0>
waxjar: yeah but... this is simple: "use foo, if foo doesn't exist, create it and return the address, end"
ndrei has quit [Ping timeout: 272 seconds]
<waxjar>
that's how you could implement the singleton pattern :)
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 276 seconds]
<apeiros>
indeed, that's the common implementation. see `ri Singleton`
aryaching_ has joined #ruby
ndrei has joined #ruby
<apeiros>
instead of MyClass.new, you call MyClass.instance there, which does almost exactly what you described.
endash has joined #ruby
<waxjar>
or overwrite .new >:)
aryaching has quit [Ping timeout: 252 seconds]
<apeiros>
I prefer Singleton's way of using a distinct method
<wald0>
so there's no magic science behind "singleton" then
<apeiros>
makes it very apparent what's going on.
<apeiros>
wald0: no pattern is "magic"
<wald0>
i was searching for "what is singleton" since yesterday on my head's TODO lol
pehlert has quit [Ping timeout: 252 seconds]
bashdy has joined #ruby
<apeiros>
it's just techniques to solve a specific set of problems.
<wald0>
apeiros: well, i wanted to add that in my tutorial code, but sounds like it is a "so basic thing" that is not even worth to add :)
yfeldblum has quit [Ping timeout: 272 seconds]
w4pm has joined #ruby
<waxjar>
there is a Singleton mixin in the stdlib
<wald0>
apeiros: for me is "common sense" to not create things already created and having duplication... but well, maybe it requires some "spanks and bug founds" in your code before you realize how essential is
gregpl has joined #ruby
<wald0>
just like writting in /tmp without include the username in the file/dir
<apeiros>
waxjar: um, yes, the one I referenced for the last 10 min…
Czupa has quit [Remote host closed the connection]
* waxjar
never reads his scrollback :D
darthdeus has quit [Quit: Leaving...]
codepython777 has quit [Quit: Leaving.]
raja has joined #ruby
codepython7771 has joined #ruby
relix has joined #ruby
rootshift has quit [Quit: rootshift]
raja has quit [Read error: Connection reset by peer]
klaut has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
mikemac has quit [Remote host closed the connection]
freggles has joined #ruby
enebo has joined #ruby
vlad_starkov has joined #ruby
mavcunha has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
enebo has quit [Client Quit]
vlad_starkov has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
sergicles has joined #ruby
psyl0n has quit [Remote host closed the connection]
sakshi has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
ferr has joined #ruby
<wald0>
whats your* prefered colorscheme for ruby ?
havenwood has joined #ruby
kirun has joined #ruby
tharindu has joined #ruby
m00nlight has joined #ruby
m00nlight__ has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Al___ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
tharindu has quit [Read error: Connection reset by peer]
tharindu has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby
<ayaz>
wald0: I use Solarized Dark everywhere.
havenn has joined #ruby
enebo has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
ununPentium has quit [Quit: oh oh...]
codepython7771 has quit [Quit: Leaving.]
enebo has quit [Client Quit]
sakshi has left #ruby ["Konversation terminated!"]
senayar has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy>
that's what ruby hackers do
<shevy>
eternal stylistic analysis and no more code!
senayar has joined #ruby
<wald0>
shevy: do you want to return to assembly ? :)
w_alexus has quit [Ping timeout: 260 seconds]
<shevy>
no
<wald0>
I really like the concept used on this screenshot, for colorscheme readability http://i.imgur.com/v7vyX.png
<shevy>
I want to go to the evolution after ruby :)
Advocation has joined #ruby
yfeldblum has joined #ruby
<wald0>
shevy: then #define: what ruby lacks? :)
burlyscudd has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
pwh has joined #ruby
pu22l3r has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<shevy>
wald0 immortal, dynamic objects
Hanmac has quit [Ping timeout: 260 seconds]
avril14th has quit [Remote host closed the connection]
<wald0>
inmortal = ram saturated?
<shevy>
wald0 a squeak-like interface and component-wise assembly of pipes including simple drag and drop
Advocation has quit [Quit: Advocation]
<shevy>
no, immortal meaning that you could pick up an object from 1976, adjust it, and it would continue to run with these adjustments transparently
yokel has joined #ruby
<wald0>
shevy: ah, then you want a seriously good IDE :), yeah i was thinking long time ago on that too... without need to type or use mouse (mouse pick&select & dragndrop from a touchscreen)
pu22l3r has quit [Remote host closed the connection]
<shevy>
not only an IDE, I mean really more like a whole system, a RubyOS!
<wald0>
shevy: then you need a "ruby migration code" :)
<wald0>
shevy: did you know about Corcen from the venus project?
<shevy>
I guess for a very long while ruby will continue to be a glue language
<wald0>
next chapter is a very enjoyable read too, if you like it
<LadyRainicorn>
Isn't the Venus project that weird utopian thing?
Xeago has joined #ruby
<wald0>
LadyRainicorn: except that is not weird and that is not utopian, yes :)
monkegjinni has quit [Remote host closed the connection]
<wald0>
its about a redesign of the society, without governments and a monetary-based economy (which is the root of all the world's problems)
Wolland has quit [Ping timeout: 272 seconds]
<wald0>
its just a proposed design of society, based on scientific studies, nothing utopian or lacking of a reliable background
<LadyRainicorn>
How do you prevent freeloaders?
browndawg has quit [Quit: Leaving.]
<shevy>
wald0 what do you do when someone wants to establish a dictatorship?
Xeago has quit [Ping timeout: 272 seconds]
<wald0>
LadyRainicorn: all those questions are already answered in their design, but they found very hard to "explain" about an entire society (which changes all your paradim of "reality") in small video-presentations, think about you need to explain everything, but for answer your question i could tell you that...
* wald0
not sure if irssi included all the text
<LadyRainicorn>
"that..." was the last word.
weems has joined #ruby
<wald0>
LadyRainicorn: answering your question I will tell you that those are just a product of the capitalist system, let's say "nobody like's to work", when ppl do a job they do it for money, not because they enjoy doing it, let's see free software, ppl do it because WANTs to do it, so there's no freeloaders, also..
<LadyRainicorn>
How do you explain the fact that many people stop producing economic output if they have money?
<wald0>
LadyRainicorn: by other side "boredom" is a very annoying feeling, everybody enjoy doing things, since you dont force them to do it they will found their "enjoyable topics", ppl likes to coding or to paint, etc
<LadyRainicorn>
Some, sure. But how would you find people to do unenjoyable jobs?
<LadyRainicorn>
I imagine software and music would actually do ok if money were abolished.
<LadyRainicorn>
I find it less clear how I would, say, go get a massage.
<waxjar>
you build machines to do those jobs \o/
coderhs has quit [Ping timeout: 265 seconds]
<shevy>
waxjar hehe
<wald0>
LadyRainicorn: we started in the past using animals for produce foods and goods, then we started to use humans (slavery), money is just a way to slave people with beautiful words but the result is the same, actually we are moving into use machines for produce foods and goods, machines dont has emotions so they will not complain about their slavery, when we automatize all our "hard jobs" we dont need to be slave of ourselves anymore
pskosinski has quit [Quit: Til rivido Idisti!]
<wald0>
uh, i think that this last sentence was cut? my last sentence was "anymore"
<wald0>
word*
<shevy>
what if we have machines with emotions
<waxjar>
people will start machine right groups
<LadyRainicorn>
How do you deal with jobs that can't be automated?
<wald0>
LadyRainicorn: you dont need to "find", ppl will simply do things, but to be more specificially see how you -actually- do these things in a similar way: using internet, you have chatrooms like this one, forums, github, and service to connect things
ambushsabre has joined #ruby
<waxjar>
take turns or improve technology so it can be automated, i guess
craigp_ has quit [Remote host closed the connection]
<LadyRainicorn>
Let's go back to massage.
<shevy>
what about areas without much high tech
<shevy>
LadyRainicorn in utopia, massages will be forbidden
netQT_ has joined #ruby
<wald0>
shevy: cmon' you are programmer :) machines will NEVER have emotions, its simply impossible (electronically), but, if there was possible, you will NOT give them emotions since that doesn't give you anything good, you only need automation of work
<shevy>
wald0 I am not a programmer! I just like the creative parts of programming. I am really more like a molecular biologist
<LadyRainicorn>
Well, I think a therapist probably would need emotions.
<wald0>
LadyRainicorn: everything can be automated, -everything-, just see now how smart is ruby to do things in a smart way (like polyformism), future will develp better things of course, but by other side, you can enjoy doing a job that is not automated since you removed the 99% of the hard or monotone part
<LadyRainicorn>
wald0: So if I can't find someone willing to give me a massage for no benefit to them, I can't have one?
<wald0>
shevy: in utopia, massages are free from volonteers lol
<wald0>
or a machine can massage too, we have sofa's that do that lol
<LadyRainicorn>
They kind of suck.
<LadyRainicorn>
How about prostitution?
<shevy>
LadyRainicorn well perhaps it is of benefit to that person
parduse has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
parduse has joined #ruby
<waxjar>
you drag someone to your basement and make them LadyRainicorn :P
<shevy>
hahaha :D
<LadyRainicorn>
Isn't that what money is for, shevy?
* wald0
feels saturated lol
<shevy>
LadyRainicorn dunno, you could do something you like and get paid or you do something you don't like and get paid, or you may do something for free because you like it anyway
<shevy>
I like ruby!
ncntSkr has joined #ruby
<LadyRainicorn>
This sounds an awful lot like capitalism.
<wald0>
LadyRainicorn: prostitution is something NOT good, you are forcing humans to do something that they dont really want to, in exchange of a good, by other side humans sometimes needs sex, thats true, but at the same time you can find ppl that wants to do sex with you, just like you want to
<wald0>
wait, i think that there's an answer in their FAQ for that
timonv has quit [Remote host closed the connection]
<wald0>
LadyRainicorn: try "sex" or search for the 105 one
<LadyRainicorn>
So you would claim that any actigity someone wouldn't perform for free is morally wrong?
netQT_ has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
<shevy>
some like sex and money
<LadyRainicorn>
And some just like money.
<shevy>
:D
gorilabrutal has joined #ruby
gorilabrutal has left #ruby [#ruby]
<LadyRainicorn>
How would I go ab
<LadyRainicorn>
out, say, constructing a building?
<wald0>
LadyRainicorn: not sure to understand your question (bad english here), but just think about if you need to pay for obtain something, is because the person doesn't want to do that, but think about the same thing without paying, there's a lot of volonteers, by other side, you rely a lot in humans, almost all of our needs can be done by machines (except sex, well, in fcat you can lol)
<LadyRainicorn>
One of these factories neccesary for all this automation.
<wald0>
LadyRainicorn: automated construction of buildings by machines, to make a house takes 14 minutes :)
<LadyRainicorn>
There would be volunteers for some activities, but not others.
<waxjar>
3D printers!
<shevy>
LadyRainicorn right except until the moment where you have a factory building new factories
<shevy>
LadyRainicorn, who would have thought, they have ALL questions covered in their FAQ ;)
shime has quit [Ping timeout: 272 seconds]
<wald0>
shevy: checking the old convo, if someone tell you that want to be a dictatorship: you can simply laugh on him :)
<wald0>
shevy: seriously talking, theres no reason/need to be a dictator, and nobody would allow that, and in any case there will be "no ways" for do that
ixti has quit [Ping timeout: 246 seconds]
<wald0>
for example
<wald0>
you can be dictator actually with money, you pay ppl for be a soldier, then you have power... without monetary-based economy you cannot pay ppl to be a soldier
<wald0>
"it will simply not work"
<LadyRainicorn>
So in the future we'll all be naked.
<LadyRainicorn>
People volunteer to be soldiers generally for non-monetary reasons.
<LadyRainicorn>
It is, ironically, one of the jobs that would still be performed in utopia.
<waxjar>
you could simply promise them the loot, like in the olden days
<wald0>
wars exist because some country wants something that another country has, this is based on scarcity ("i dont have foo, i want it"), since everybody can have any need thing, there's no need to create a war, entirely stupid and useless action
<LadyRainicorn>
Many wars are driven by a desire to exterminate or punish the other side.
<LadyRainicorn>
Also, human capital would still be scarce in your vision.
<shevy>
wald0 right but what if there are people with guns, then you may find it hard to laugh at them
<wald0>
LadyRainicorn: in a healthy-mental society, there's no "enjoy" in killing people, there's in our actual world because your television shows you "how nice it is" and because you have lots of games showing "how fun is to kill ppl", our society is based on creating stupidity
<shevy>
wald0 people do all sorts of stupid things even without being paid
<shevy>
wald0 but I agree that the monetary reason is the biggest problem
<wald0>
LadyRainicorn: when your television will stop to show you "honey boo boo" and shows you useful documentaries, society will start to be smart, if society is smart, they will not find enjoyable to kill ppl, but disgusting... just like (most) of us here i assume :)
<LadyRainicorn>
That's false. Wars have been documented in all cultures since preagricultural times.
<LadyRainicorn>
Indeed, chimpanzees engage in warfare.
<wald0>
LadyRainicorn: nah, check free software and how still growing, this is a simple small proof of non-monetary-incentivated works
<LadyRainicorn>
That's unrelated to war
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
coderhs has joined #ruby
mdpatrick has quit [Quit: No Ping reply in 180 seconds.]
<LadyRainicorn>
I am postulating we live in a world with no material scarcity.
<LadyRainicorn>
So you can produce anything with zero cost.
<wald0>
just because 2 things: 1) is not "hard" or monotone to do the work (but enjoyable), and 2) because the "digital" level has no cost, so you can create software "for free" (no phisical/material needs, cp doesn't adds extra cost in your electricity)
<LadyRainicorn>
War would still occur
BazGee has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
<wald0>
shevy: no reason that an evoluted and healthy-mental society will have guns, at all
<LadyRainicorn>
Human scarcity, for example competition over reproductive partners, would still exist.
<LadyRainicorn>
Guns can be produced at home with no cost.
lowski is now known as lowski_away
<LadyRainicorn>
Anyone who wants one has one.
<LadyRainicorn>
Or twenty.
sbos99 has joined #ruby
wallerdev has joined #ruby
<wald0>
shevy: the book link that i give you is about a novel showing how will be a future that works on this way, if you read it you can see "why ppl would want to do that", i really enjoyed reading it (it starts only from the 50% of the book, the first is idk-what)
<LadyRainicorn>
There is no material scarcity, remember?
<LadyRainicorn>
You cannot have such a society with any sort of gun control.
BazGee has quit [Killed (idoru (Spam is off topic on freenode.))]
<LadyRainicorn>
Or indeed arms control if any kind.
<shevy>
wald0 so that book writes about an utopian society of normal people
<shevy>
but I tell you, people are nuts!
<LadyRainicorn>
I can also synthesize an RPG.
<wald0>
LadyRainicorn: sure we have scarcity, everywhere
<pontiki>
humm
<LadyRainicorn>
Your entire premise is no scarcity.
<shevy>
look at LadyRainicorn, I mean, seriously pink ponicorns on a rainbow how nuts is that!
ferr has quit [Ping timeout: 272 seconds]
<wald0>
LadyRainicorn: just answer yourself: can you have a car "just right now" ? or a house? or a boat? no, you can't, you need -money-, you have scarcity about any need that you cannot "simply" pay
<wald0>
in such culture you dont need money, and you can have anything that you want
<LadyRainicorn>
Yes, I'm talkng about utopia.
<wald0>
"i need a house", so: cp house-model.rb myhouse.rb :)
<LadyRainicorn>
I want an RPG.
w1xz has joined #ruby
<shevy>
wald0 but you still need energy and material for such a house, not just the information
<LadyRainicorn>
In fact, I want fluorine gas.
<shevy>
and what if I want a really BIG HOUSE
mlpinit has joined #ruby
<wald0>
LadyRainicorn: utopia doesn't exist, humans always needs to "improve something", otherwise they will not found a reason for living, and they will die, there's ALWAYS a way to improve something
<LadyRainicorn>
So now I have fluorine gas.
<LadyRainicorn>
Now I dislike Ted
<waxjar>
what if I want *your* house?
<LadyRainicorn>
He stole my girlfriend.
<shevy>
waxjar then I need guns to kill you!!!
<pontiki>
politics in a tech channel?
<shevy>
LadyRainicorn I also hate Ted, his nose is too big
<waxjar>
then i better get some guns too shevy :p
<shevy>
:(
<wald0>
waxjar: copy it, just like you do in ruby with data lol
<LadyRainicorn>
But waxjar likes Ted.
relix has joined #ruby
figgleberry has joined #ruby
<wald0>
no need to "stole" if you can duplicate
<shevy>
both must die then
<LadyRainicorn>
So you and I better go kill Ted and waxjar
tyl has joined #ruby
<LadyRainicorn>
Here have some fluorine gas waxjar
<shevy>
but you know what? I think wald0 is crazy, let's kill him first
<LadyRainicorn>
^ war in Utopia
<waxjar>
but your house has sentimental value to me, a copy won't
<shevy>
^ and Utopia will become Dystopia
darthdeus has joined #ruby
<wald0>
LadyRainicorn: in a healthy-mental society, all that you say has non-sense lol, you are worrying about things that cannot exist by its "naturity of work"
<waxjar>
i had my first piece of candy in your house
_mtr has joined #ruby
gokul has quit [Ping timeout: 272 seconds]
<wald0>
LadyRainicorn: but of course you need to understand the -why- this will never exist, but for that you would need to read their books to understand the "why's"
<LadyRainicorn>
Why would competition over reproductive partners die with material scarcity?
<LadyRainicorn>
That doesn't make much sense.
<shevy>
well, we need free sex in Utopia
<wald0>
waxjar: a house has no sentimental value if you have the -same- duplicated house, in a smart society you will simply understand that this is "nonsense" :), but if you really want -that- house, you can simply talk with him lol
yedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
darthdeus has quit [Read error: Connection reset by peer]
lowski_away is now known as lowski
<shevy>
waxjar when you talk with him, bring a gun with you
<wald0>
shevy: are you a volonteer to give free sex? :)
<LadyRainicorn>
So if I really like Alice, but she doesn't like me, what happens?
<shevy>
wald0 no, I only want to pick myself
el_cristobal has quit [Ping timeout: 252 seconds]
<pontiki>
can i please ask a technical question?
<wald0>
shevy: when you make sex you dont "only receive", you also give, so do you want sex? lots of ppl wants sex, problem solved lol
<shevy>
pontiki YES YOU CAN
<LadyRainicorn>
pontiki: Only if it is about zero cost synthesis.
<pontiki>
it is about gem
<LadyRainicorn>
I want sex with Alice, not Bob, or Carol, or Dave.
<shevy>
ack
<wald0>
LadyRainicorn: what happens: dont talk to alice :)
<pontiki>
so i guess not
<LadyRainicorn>
I want Alice.
<shevy>
gem install foo, pontiki
<wald0>
things are much simple than what ppl thinks
<LadyRainicorn>
If I kill Bob, I think Alice might like me more.
<shevy>
it's always about sex and violence :(
<wald0>
LadyRainicorn: but alice dont like you, you cant do anything more than forget alice and search somebody else
<waxjar>
i think this utopia would only work if everyone were entirely devoid or in control or their emotions
<wald0>
LadyRainicorn: what you do in the actual world? kill alice? force alice?
<shevy>
waxjar like machines!
<waxjar>
exactly
<havenn>
pontiki: what about gem?
juarlex has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wald0>
waxjar: utopia will never exist
<wald0>
its a false idea
<LadyRainicorn>
Kill Bob is a pretty common anwer.
tharindu has joined #ruby
sbos99 has quit [Ping timeout: 272 seconds]
<wald0>
LadyRainicorn: you dont want to kill bob
<wald0>
that is stupid
<wald0>
if you dont like bob, dont talk to him
<LadyRainicorn>
No, Alice likes me.
<shevy>
hehe
<shevy>
lies LadyRainicorn, lies!
<LadyRainicorn>
But she is in a commited relationship with Bob.
<shevy>
damn I hate Bob
<LadyRainicorn>
But if he were out of thr way, I could syep in and get her.
<waxjar>
couldn't you simply copy alice?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
on the gem install command, when would i want to use --no-wrappers? what are the reasons not to wrap gem executables?
<LadyRainicorn>
She would just copy Bob.
darthdeus has joined #ruby
mary5030 has joined #ruby
<wald0>
humans cannot be copied, but nobody knows what we could do in a future with genetics...
<LadyRainicorn>
But if I kill Bob, she can't.
<wald0>
its just a matter of how good or moral will be to do that
<LadyRainicorn>
So I am going to kill the bastard who is keeping me from my sweet Alice.
<wald0>
by other side, in a capitalist system, moral or "good" no matter, if you have the money, you can do anything whatever-wrong-it-is
<LadyRainicorn>
So if I am a sociopath I can kill Bob then?
<LadyRainicorn>
Is that basically the answer?
SCommette has quit [Quit: SCommette]
<wald0>
LadyRainicorn: this emotion is a false emotion grown in your brain thanks to the television and south-american movies :)
<havenn>
pontiki: i've never used it, seems it was created to handle DOS differences? might ask in #rubygems
<waxjar>
wald0: it's still an emotion
<shevy>
I got a silly question
<LadyRainicorn>
You mean empathy?
<havenn>
pontiki: "Not available on dosish platforms"
<wald0>
LadyRainicorn: sorry, i dont have understood yet your question, i can try to answer it (even if i dont have all the answers lol) if you are more precise
<havenn>
pontiki: yeah, i dunno
<pontiki>
okies, havenn. it will be a relief to be away from here presently
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn>
haha
<shevy>
if I have a file: foo.rb, that defines one method called foo(), can I make this become part of a module, if I have a second file that has: module Bla; require 'foo.rb'; end ?
<LadyRainicorn>
You don't like Bob either, pontiki?
ahmedelgabri has joined #ruby
juarlex has quit [Ping timeout: 248 seconds]
<LadyRainicorn>
I think we should go kill him.
<apeiros>
shevy: haven't you asked this like 3 times or so already? o0
<shevy>
I am never sure
okinomo has quit [Ping timeout: 246 seconds]
<shevy>
it could leak outside the module
<apeiros>
and no, require still always executes top-level.
tharindu has quit [Ping timeout: 248 seconds]
<waxjar>
i do remember that discussion
<shevy>
:(
<LadyRainicorn>
Yes, you can.
<shevy>
!!!
<shevy>
apeiros I get mixed replies all the time!
<wald0>
shevy: put foo in a module and include it in anywhere you want instead to have it in a class ?
<havenn>
took me a second to realize what was meant by "dosish", thought it was a word of some sort.
<shevy>
wald0 no, not include
Wixy has quit [Ping timeout: 245 seconds]
<apeiros>
LadyRainicorn: not with require.
<waxjar>
you can instance_eval { File.read("foo.rb") } i guess
mary5030 has quit [Remote host closed the connection]
<havenn>
should be 'DOSish'!
<shevy>
waxjar let me try that
<apeiros>
waxjar: um, the block-form won't do what you want
pontiki has left #ruby ["no cheese down this tunnel"]
<waxjar>
apeiros: ah, of course
<apeiros>
shevy: waxjar's solution fixed: module Foo; class_eval(File.read(path), path); end
<wald0>
waxjar: sorry, i dont got that "stills an emotion" part
maletor has joined #ruby
<shevy>
aha
<shevy>
let me try that as well
<waxjar>
wald0: wether it comes from movies or not, it's still an emotion, it's still being felt.
<apeiros>
don't use instance_eval there. it'll likely differ from what you expect.
<waxjar>
wald0: it doesn't make it any less real
ncntSkr has quit [Remote host closed the connection]
* apeiros
has virtual emotions about surreal events in an unreal world
<wald0>
LadyRainicorn: if you put a single lettuce to 100 cow's, they will fight for it, but if you put all the ones that they need for free, they will not fight, no need to war, no need to stole, no need to kill :)
shevy has quit [Read error: Connection reset by peer]
<wald0>
waxjar: warning with movies, 99% of them are not based in any "real" fact (scientifically-prooved)
<LadyRainicorn>
You are not addressing the issue of my wonderful Alicr.
<LadyRainicorn>
Alice
burlyscudd has joined #ruby
<LadyRainicorn>
I need her.
<LadyRainicorn>
But that Bob.
<havenn>
wald0: 100 giant lettuce on the other hand will not fight for a single miniature cow, the cow will graze upon the lettuce.
<LadyRainicorn>
Fuck him.
<wald0>
waxjar: watht stills an emotion? i dont know what exactly you are talking about :)
<LadyRainicorn>
TELL ME HOW I GET RID OF BOB.
<wald0>
LadyRainicorn: if you have grown in a society that is based in competition, and "macho's is da best" mentality, you will think like that, but if you grown in a smart society, without trauma's and those psychological crap of our actual world, you will not have all thse problems that you are talking about
<wald0>
no feeling the need to kill, or anything else
<LadyRainicorn>
So how do I acquire Alice?
<LadyRainicorn>
Maybe I can build an ice castle to keep her in.
vlad_starkov has quit [Remote host closed the connection]
<LadyRainicorn>
I think a change of nick is required.
<wald0>
jealousy is just another fake emotion grown in our actual world thanks to the television and religiions, you -really- not feel jealousy if you think on it, if somebody is with you, its good, if you lose him, then you lose him, no matter if you lose him with foo or with bar
LadyRainicorn is now known as IceKing
zarul has quit [Quit: Leaving]
zarul has joined #ruby
* IceKing
synthesizes an ice dungeon.
<wald0>
IceKing: you cannot "own" alice, is not material, forget her
<wald0>
if she dont want to be with you, realize it and all is fine :)
* IceKing
locks alice in thr Ice Dungeon wihout a synthesizer.
<havenn>
get a pull request pulled to Rails, Rspec, Bundler or Rubygems by Wed for free RubyConf India tickets - anyone who is near Indea...
<wald0>
in the actual soceity you can kill her or even buy her, but not in the society that we are talking about
<havenn>
India**
<wald0>
so... where is the problem ? lol
<IceKing>
She does, she just doesn't know it yet.
<waxjar>
wald0: you say those emtions that we've been talking about come from watching movies and playing games and are therefore "false emotions". but the emotions are experiences people have, they are real things. simply saying "they're false" doesn't make them go away.
IceKing is now known as LadyRainicorn
yfeldblum has joined #ruby
<havenn>
i think i'll try to get my free ticket, even though i don't think i can get to India >.>
<wald0>
oh!
noname001__ has quit [Ping timeout: 252 seconds]
<wald0>
i just found something for you icedp
<wald0>
oops, LadyRainicorn i meant
<LadyRainicorn>
I am getting that the gist of your idea is that if everyone was enlightened and we could synthesize anythig thr world would be a really nice place.
<waxjar>
wald0: so making a difference between false and true emotions is useless for the person experiencing them, because they're experienced both exactly the same way.
<waxjar>
wald0: i hope that cleared it up.
<havenn>
now if only RubyConf would do a bounty for a free ticket! maybe a pull request accepted to 2 or 3 of the above
<LadyRainicorn>
I am having some problems with accepting the plausibility of thr predicate there.
w_alexus has joined #ruby
<wald0>
waxjar: the venus project studied the "animal behaviour" to understand how emotions works, then studied the human behaviour too (where they are almost the same)
vlad_starkov has joined #ruby
sbos99 has joined #ruby
estebanrules has joined #ruby
<wald0>
waxjar: the founder found that if "stroke" (google translator) a cat, the dog says "grrrr", but if he gives a sausage to the dog everytime strokes the cat, the dog becomes happy everytime strokes again the cat
cjsarette has quit [Ping timeout: 252 seconds]
<wald0>
waxjar: so emotions are just answers of the environment, they exist because happen things (if you feel bad is because something bad happens)
tharindu has joined #ruby
Wolland has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
godd2 has joined #ruby
w4pm has joined #ruby
<godd2>
If I have ruby installed to a directory that has spaces (on Win7) am I asking for trouble?
<estebanrules>
probably
yfeldblum has quit [Ping timeout: 272 seconds]
<wald0>
LadyRainicorn: you dont need to "accept" anything, you need to -understand- why something would not exist, or why something would happen on that way, not believing it, you need the facts and the reasons, then you can say "i accept it because i understand that this will not work"
<apeiros>
you're asking for trouble because you use windows :)
Mattx has joined #ruby
<wald0>
LadyRainicorn: but for that, you need to read the explanations :)
<estebanrules>
shouldn't windows users use Cygwin?
<havenn>
godd2: I don't know of any particular problem with spaces being in the path to RUBY_ROOT
<LadyRainicorn>
This idea is fundamentally implausible, and numerous false claims are made in the FAQ.
<godd2>
apeiros: granted ;)
<estebanrules>
hmm
aryaching_ has quit [Ping timeout: 252 seconds]
araujo has quit [Remote host closed the connection]
<godd2>
havenn: Ruby works on it's own, but when I try to install the devkit, it seems to to install, but nothing changes and I cant build native extensions
Wixy has joined #ruby
fantazo has joined #ruby
<wald0>
LadyRainicorn: if you think that is because you dont know/understand it :), please tell me your -facts- about why something is wrong instead of saying "it wont work"
araujo has joined #ruby
tvw has joined #ruby
<havenn>
godd2: You installed Ruby and DevKit through RubyInstaller for Windows?
<LadyRainicorn>
Specifically, the technological capability to implement this is exceptionally far off, and almost all their claims referencing human behavior ignores any and all anthropological, biological, and sociological evidence.
itadder has joined #ruby
araujo has quit [Remote host closed the connection]
<wald0>
its just like saying "ruby cannot execute code dynamically because it doesn't makes sense and logic to me"
<itadder>
hi
<wald0>
instead, run it, try it, reasech it, and say WHY ruby cannot do that
<wald0>
so, same
<LadyRainicorn>
Their claims are easily coubterevidenced by noting that warfare predates money.
araujo has joined #ruby
<havenn>
godd2: I think that DevKit might be hardwired to expect RubyInstaller's Ruby.
<estebanrules>
Concerning Windows I think you are better off running linux on Virtualbox
<godd2>
havenn: I'm not sure what you mean by "through rubyinstaller" if you mean the devkit installation exe that is hosted on the same site, then yes
<havenn>
godd2: yeah, that is all i meant
<waxjar>
wald0: i understand that (i studied psychology for two years :p), i just don't see the point you're trying to make.
<wald0>
LadyRainicorn: they has anthropological, biological, and sociological evidence, why you say that it doesntt ?
<havenn>
godd2: i don't know, maybe start a ticket with RubyInstaller folk - i dunno if they have an irc chan?
el_cristobal has joined #ruby
<wald0>
waxjar: im a bit lost about the exact question right now
<waxjar>
wald0: "false emotions" don't disappear by just calling them false emotions
araujo has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<wald0>
waxjar: of course no, but if you -undertand- them, you will realize how stupid it is
<waxjar>
i disagree. but anyway, i gotta go :p
<LadyRainicorn>
There is quite a good deal of evidence to show that warfare predates money. There are modern tribal societies lacking money that still engage in warfare, usually not over resource scarcity.
<havenn>
godd2: it should *just work*, sounds like a bug to me? maybe worth trying a non-spaced dir path, but i've not heard of it before
w4pm has quit [Ping timeout: 272 seconds]
<itadder>
so anyone up with my idea ruby on power
<estebanrules>
Warfare most certainly predates money
<havenn>
itadder: ruby on power?
<godd2>
havenn: It does work if there are no spaces in the path to the ruby installation
<LadyRainicorn>
Human sexual behavior is not the result of religion, and is similar to behaviors found in many close relatives
<itadder>
port powershell cmdlets to ruby
<wald0>
for example, i feel jealousy in the past, then i knew a girl which has nymphomaniac, but i really liked her, and i understood that the only way to be with her is by accepting her to be with others, then i realized how stupid and useless is the jealousy feeling
<wald0>
waxjar: ^
<itadder>
for use on none MS system
<havenn>
godd2: ohhh, yikes then yeah a bug with DevKit i'm guessing?
<LadyRainicorn>
I am fairly sure advocatibg worldwide enlightenment is implausible.
<wald0>
actually i dont feel jealousy at all because of that, because of have understood how stupid it is, the important thing is that "she is with me because she loves me, no matter what other things does", if she dont like me she will not be with me, what more than that is needed?
timonv has quit [Remote host closed the connection]
<havenn>
itadder: what are powershell commandlets?
<godd2>
On their troubleshooting page is this: "Directories with spaces often cause problems for the DevKit’s GCC compiler." So they know it's an issue I guess
<LadyRainicorn>
Your philosophy seems quite close to a secularized Buddhism. It should be noted that the Buddha wasn't an anarchist, nor did he advocate attempting to enlighten everyone.
<havenn>
cmdlets*
<itadder>
so ruby dev love vim more then sublimetext
<itadder>
havenn: like get-host
<wald0>
"worldwide enlightenment" this sounds like trying to "convince" ppl to be "good with others", this wont work, you cannot except and wait things from others, this requires "to force them to be like foo"
<wald0>
LadyRainicorn: instead, give them an environment where to be "good with others", without having a reason to be "bad with others", things will happen automatically
<havenn>
itadder: i think vim/emacs/sublime/textmate love is a pretty even spread amongst Rubyists
<wald0>
waxjar: and so, i dont feel jealousy anymore, if a girl want to stay with me, im happy, if not (or if she go with another, which is hte same), fuck it, i search another, why i should "worry" about jealousy, its absolutely nonsense
<itadder>
but I am not a programmer, or a newbie DEV OP havenn
<LadyRainicorn>
But Alice is unenlightened.
root_ has joined #ruby
estebanrules has quit [Quit: Ex-Chat]
<LadyRainicorn>
And she wants Bob.
<havenn>
itadder: yes, you could publish a gem that has a bin/ dir with your cmdlets in it, they'd get added to PATH by RubyGems
<wald0>
waxjar: to be with another has no difference than "to not be with me", there's no jealousy when you lose somebody but the result is the same, so?
<LadyRainicorn>
But Bob is with Carol.
<LadyRainicorn>
So Alice will kill Carol.
root_ has quit [Client Quit]
<wald0>
LadyRainicorn: the alice and enlightenment convo makes absolutely nonsese for me :) sorry
<LadyRainicorn>
You may not want to kill Carol if you were Alice, but Alice does.
Wolland has quit [Ping timeout: 246 seconds]
<wald0>
did you know that the alice story was entirely about a Math's book that a teacher wrote for teach math's to the kids in a story way? the original story was very different, and interesting!
<LadyRainicorn>
How does utopia deal with this?
<LadyRainicorn>
_mtr?
<wald0>
LadyRainicorn: i dont know about any utopian design, did you ?
<wald0>
im not talking about any utopia
<LadyRainicorn>
Alice and her friends are from crypto.
<havenn>
itadder: A nice way to get the bare scaffolding for a gem is to install bundler `gem install bundler` then run `bundle gem your_gem_name`.
MattStratton has joined #ruby
<havenn>
itadder: Ruby is a great language for such things, I'd recommend checking out http://tryruby.org/
siwica has joined #ruby
<itadder>
but I am using mac
<itadder>
Mac is not posix unix or am I wrong
<havenn>
itadder: Ruby comes pre-installed on OS X. OS X is POSIX.
<itadder>
oh wow
carraroj has joined #ruby
<itadder>
wow got 15 minutes
<itadder>
wow that cool
<wald0>
waxjar: was my example good about your first question?
<havenn>
itadder: The Apple folk even hired programmers to write MacRuby, which also comes preinstalled, but compiles Ruby code to Objective-C.
<itadder>
so ruby came from japan
figgleberry has quit [Ping timeout: 265 seconds]
<havenn>
itadder: Many of the core devs still live in Tokyo.
<itadder>
oh wow
SCommette has joined #ruby
<itadder>
I wonder why apple choose it, that is great
Neomex has joined #ruby
<LadyRainicorn>
Because yay Ruby.
Neomex has quit [Client Quit]
frikii has joined #ruby
<itadder>
macruby is part of xcode ?
yarou has joined #ruby
yarou has quit [Changing host]
yarou has joined #ruby
v10energy has joined #ruby
<havenn>
itadder: They were looking for a language to replace Objective-C, since its uptake was slow. Then iOS took off and Obj-C got popular so they abandoned the migration. But we ended up with MacRuby, whose lead developer went on to form RubyMotion (a popular tool for writing iOS apps in Ruby).
browndawg has quit [Ping timeout: 248 seconds]
yarou has quit [Client Quit]
<itadder>
oh wow
<havenn>
itadder: Yeah, you can do MacRuby in XCode. But I think RubyMotion and MobiRuby are more popular than that route.
<itadder>
I was going to do this in sublimetext
<havenn>
itadder: A text editor is the tool of choice for cutting gems. So good call.
estebanrules has quit [Quit: leaving]
vlad_starkov has joined #ruby
<itadder>
oh
<havenn>
itadder: Terminal.app (or iTerm.app) and text editor of your choice is all you need.
<havenn>
itadder: I'd highly recommend Pry as your Ruby REPL: http://pryrepl.org/
<itadder>
wow so much information in one day
burlyscudd has joined #ruby
<havenn>
itadder: And get Homebrew installed if you haven't already: http://brew.sh/
<havenn>
itadder: then: brew install ruby
<itadder>
oh
<itadder>
I thought ruby was preinstalled
<havenn>
(to get latest security patch Ruby, with a local gem install)
<itadder>
oh
<havenn>
itadder: it is, but most devs don't work off of system Ruby (for various reasons)
<havenn>
itadder: you certainly can
<havenn>
itadder: But you'll want Homebrew to install other packages as well.
<itadder>
oh wow apple forgot wget
<havenn>
itadder: brew install wget
Wolland has joined #ruby
<itadder>
hmm WOW
<havenn>
itadder: the BSD equivalent of `wget` is `fetch`
cjsarette has joined #ruby
<itadder>
ahh OSX is based on BSD
<havenn>
itadder: FreeBSD
<itadder>
I got used to using powershell that I would of loved to use on the mac
<Solnse>
sure, first book I got was the 1.9 version.
<benzrf>
noob101: just print up a hard copy of the contents of the rdoc site
<benzrf>
noob101: then read a tutorial on the net
<noob101>
is 1.9 the most modern version of ruby out right now?
<Solnse>
no
ndrei has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
Bira has quit [Remote host closed the connection]
<Solnse>
2.1 but you won't find books on that yet... the one I linked is for 1.9 and 2.0, which a lot of apps still run on 1.9 so it's nice to cover both
tyl has joined #ruby
<itadder>
oh wow pash is powershell for unix
albertgrala has quit [Read error: Connection reset by peer]
<noob101>
mhm Good point
cbetta is now known as cbetta_afk
<noob101>
I am new to programming so i would figure that there would be a 2.1 book.
albertgrala has joined #ruby
<itadder>
I a new to programing also
<noob101>
So it's not a waste of money to buy the 1.8 and 1.9 ight
<noob101>
right*
<itadder>
I started with powershell as a devop
<benzrf>
noob101: its a waste of money to buy any books
SCommette has quit [Quit: SCommette]
<benzrf>
noob101: you can find all the info you need on the net
<noob101>
mhm ok
<Solnse>
no, like I said a lot of programs are still running 1.9, and if you cover 1.9 and 2.0, anything you need to know beyond that is just changelog stuff you'd figure out easily.
<LadyRainicorn>
Books are for n00bz.
* benzrf
fistbunps LadyRainicorn
<noob101>
firstbumps*
<noob101>
fistbumps*
<noob101>
lol...
<Solnse>
I agree everything you need is on the net, but I have a big library because I like books, and sometimes I want to get away from a screen and just do some reading.
<LadyRainicorn>
Real programmers learn a new language by reading disassembler output of the interpreter.
<godd2>
If youre a visual learner, the Lynda.com tutorial on Ruby is pretty good. That's how I learned the basics
cash_n_guns has joined #ruby
cash_n_guns has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
<LadyRainicorn>
My method is superior.
<LadyRainicorn>
All other methods are inferior.
cmedeiros has joined #ruby
ambushsabre has quit [Quit: rip]
havenwood has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
yfeldblum has joined #ruby
cbetta is now known as cbetta_afk
mikecmpbll has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
mrnugget has quit [Quit: mrnugget]
fire has joined #ruby
juarlex has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
juarlex has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
wallerdev has joined #ruby
craigp has joined #ruby
Wolland_ has quit [Ping timeout: 272 seconds]
_mtr has quit [Remote host closed the connection]
ahmedelgabri has quit [Remote host closed the connection]
allaire has joined #ruby
juarlex has quit [Read error: No route to host]
finnnnnnnnnnn has joined #ruby
timonv has quit [Remote host closed the connection]
Wolland has joined #ruby
juarlex has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
juarlex has quit [Remote host closed the connection]
juarlex has joined #ruby
ambushsabre has joined #ruby
darthdeus has joined #ruby
phinfone_ has joined #ruby
heidi has joined #ruby
phinfonet has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
yfeldblum has joined #ruby
Andrevan has joined #ruby
gja has joined #ruby
darthdeus has quit [Quit: Leaving...]
<itadder>
I have have trouble focusing for long time
<itadder>
so learning ruby and staying focused would be hard
<benzrf>
itadder: i SUCK at focusing
<benzrf>
but i learned ruby ;)
<tt1187>
itadder same problem... Guess you got to just persevere
<itadder>
How did you manage to learn and focus
<itadder>
I wish I was good perseverance
gja has quit [Client Quit]
<itadder>
Especially since a lot of projects are now using Python and Ruby, I would like to at least learn done for use as a administrator devop
ambushsabre has quit [Quit: rip]
<LadyRainicorn>
itadder: methamphetamine
<LadyRainicorn>
obviously.
<itadder>
I am using Siri on my Mac to translate my speech to text
<LadyRainicorn>
Also rainbows.
<itadder>
oh shooot I forgot to take my adderal
<LadyRainicorn>
Rainbows and methamphetamine.
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
<Rylee>
that is the solution to learning ruby
browndawg has joined #ruby
<Rylee>
shooting up rainbows into my veins
darthdeus has joined #ruby
<LadyRainicorn>
It is.
heftig has quit [Remote host closed the connection]
heftig has joined #ruby
<BuSerD>
@itadder . do you program in any languages or will ruby be your first try in learning to program?
w_alexus has quit [Ping timeout: 272 seconds]
_mtr has joined #ruby
<itadder>
my first, altough have I have programmed in powershell
<itadder>
but no this will be my first
<Andrevan>
itadder: solution: pair program
juarlex has quit [Remote host closed the connection]
juarlex has joined #ruby
ndrei has joined #ruby
<itadder>
pair
<itadder>
oh wow
<itadder>
Pair programming is an agile software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator,[1] reviews each line of code as it is typed in. The two programmers switch roles frequently.
arietis has joined #ruby
<BuSerD>
So it's very individualized but I began to work with ruby after collecting a handful of other languages. It was hard but I already knew I liked programming.
fenicks has joined #ruby
<havenwood>
Trio programming is an uber-agile software development technique in which three programmers work together at one workstation.
<itadder>
I just want to move away from the hell desk
<BuSerD>
If you can learn to like it your task of learning it should become more manageable
<itadder>
I work the HEll desk and wish to become a DEVOP
<itadder>
something were I do not need to be answering support alls
<havenwood>
or is it three is a party and four is a crowd? party programming
cashnguns has quit [Ping timeout: 246 seconds]
bashdy has quit []
<BuSerD>
that's a worthy career goal but I don't believe that's the best reason to learn to program.
<itadder>
oh and I love to automate
<itadder>
I would love to automate a lot of my work flows
<noob101>
I ordered the book yaaaay! I feel so good.
<noob101>
Wooo!
juarlex has quit [Ping timeout: 252 seconds]
<BuSerD>
that's a start. it should however be noted that if you find it boring or you fail to commit to the process learning to program will be all but impossible.
<pskosinski>
I want to make a program which will be kind of wrapper on another program and it should be interactive. E.g. app foo runs in background app bar and: 1) waits for user input to e.g. terminate bar 2) monitors bar if it returned an error, etc. What is best way to do that?
<benzrf>
havenwood: because vim is gud enuf for me
<benzrf>
havenwood: and i do not feel like learning a whole new thing atm
<havenwood>
benzrf: :P
<benzrf>
havenwood: in 10 years maybe i will be using emacs w/ evil
ambushsabre has joined #ruby
<itadder>
wow VIM is not VI
<itadder>
I forgot what VI stood for
<itadder>
VI is not emac
<havenwood>
pskosinski: Are both the app and its supervisor going to be in Ruby?
timonv has quit [Remote host closed the connection]
<itadder>
i recall the popular in college was PICO or NANO
Megtastique has joined #ruby
<pskosinski>
havenwood: No
<pskosinski>
havenwood: app can be in anything, Ruby, C, bash…
<havenwood>
pskosinski: God and Bluepill are two popular Ruby process monitoring gems.
shime has joined #ruby
<havenwood>
i got a crazy look at a coffee shop the other day discussing Unicorn/Rainbows! and God/Bluepill choice for a server
<itadder>
I think I may have to learn VIM
<itadder>
benzrf: any good tutourioal
<havenwood>
"Hmm, I was thinking of going from Unicorn to Rainbows! and God isn't working great for our use case so I'm considering Bluepill.
<havenwood>
"
<itadder>
I need a powernap
<itadder>
let me put a alarm
<havenwood>
sound like a crazy person
<Mon_Ouie>
pskosinski: You can use Process.spawn to start the program, redirect its output and error streams and read from there
<BuSerD>
itadder, it has a tutorial built-in. type vimtutor in the terminal app
SCommette has joined #ruby
<BuSerD>
but if you want to use a web based version a quick google search will find a ton of them.
chovy has left #ruby [#ruby]
Mattx has joined #ruby
Wixy has joined #ruby
<itadder>
ahh
<itadder>
on the mac is terimal.app good enough
<havenwood>
itadder: yes
fijimunkii has quit [Ping timeout: 245 seconds]
<itadder>
BuSerD: I see iterm but it not polished
<itadder>
see this is why I need a friend to work with me side by side
<BuSerD>
pskosinski: a 1k ways to skin this cat. spend a little time trying to determine how important this is. does it need to scale etc...
<itadder>
I love to ask so much question
<itadder>
nature calls bah
`petey` has joined #ruby
mrnugget has quit [Quit: mrnugget]
<Mon_Ouie>
btw, how long have the Process.clock_* methods been around?
<havenwood>
Mon_Ouie: 2.1.1
<havenwood>
2.1.0**
enebo has joined #ruby
<itadder>
bah I need a third screen
<Mon_Ouie>
Aha, that's why I'd never noticed them before then
<itadder>
maybe I can ssh via my ipad and use my bluetoothkeyboard to runt he code
<benzrf>
itadder: vimtutor
<benzrf>
itadder: type that as a command
<benzrf>
itadder: if I can do codes on a laptop screen then you can do it w/ two large ones
<benzrf>
>:o
ambushsabre has quit [Quit: rip]
<itadder>
I have one 19 inch dell screen and my macbook pro
nari has quit [Ping timeout: 248 seconds]
<BuSerD>
@itadder, iTerm2 is far more polished but I personally find that the default terminal gets the job done.
<itadder>
I am using mavericks
<itadder>
BuSerD: yea to start I want defualt for now
<BuSerD>
I will say that if you can avoid using XCode while trying to learn to program you can avoid a lot of frustration.
siwica has quit [Remote host closed the connection]
shime has quit [Ping timeout: 246 seconds]
<itadder>
great
<itadder>
so I tried that command and got a error
<itadder>
not an editor command
maroloccio has joined #ruby
<itadder>
and when I just type v I get visual
fgo has joined #ruby
<itadder>
I do recall esc and then :q to quit or :w filename to save
shevy has joined #ruby
<shevy>
oh man
<itadder>
hi shevy thanks for eariler
<itadder>
I am pumped this is execting
<shevy>
right after testing that class_eval thing, I accidentally hit some button, computer restarted and I could not come up again :(
<benzrf>
itadder: use vimtutor in bash
<benzrf>
itadder: not in vim
<shevy>
so I had to reinstall, and now am on slackware 64
<itadder>
ahh
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy>
itadder well looks like you had a better time than me :P
robbyoconnor has joined #ruby
<itadder>
do you use the terminal in fullscreen
<shevy>
setting up everything will take a few hours...
phinfone_ has quit [Ping timeout: 265 seconds]
<BuSerD>
slackware, my grandpa's linux distro. :)
<shevy>
kde konsole, yeah
<itadder>
ahh WOW
<itadder>
that worked benzrf
figgleberry has joined #ruby
<shevy>
6 tabs open right now, each tab does something. either compiling or backing up...
<benzrf>
itadder: :)
<itadder>
also I am dylsexic I want ot make the font better to read
<shevy>
libtool: link: warning: `/usr/lib64/libffi.la' seems to be moved
<havenwood>
shevy: working as intended: WONTFIX
<shevy>
itadder are you sure that is dyslexic and not just short sighted ;)
<itadder>
I use opendyslexic
<itadder>
maybe shortsighted
<itadder>
it more of speech issues with sounding out words
<shevy>
because I have bad eyes myself so I always increase the size of my fonts a lot
hornairs has joined #ruby
<itadder>
it a form of dylxia not flipping words
darthdeus has joined #ruby
<itadder>
shevy: yea I need to increasse the font size
arietis has joined #ruby
<itadder>
but shevy I also use opendyslexic, even now my iphone and ipad when the new profile feature that apples allows to add your own font
<BuSerD>
menlo is a good font on a mac. i use terminus on my freebsd workstation.
<itadder>
vimtutor worked
<itadder>
so how do I make opendyslexic defualt with maybe size 14
<shevy>
itadder kk, can't comment on that at all, I dont even have an iphone or ipad and never had
<itadder>
or mento
<itadder>
but shevy even as my default OS font is opendyslexic and even in windows at work
<shevy>
not even smartphones or tablets, I am ultra conservative. I live like in 1999
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rootshift has quit [Quit: rootshift]
<hoelzro>
shevy: because it has a graphical mode, and probably some library uses pango down the line?
zipper has joined #ruby
CaptainJet has joined #ruby
<shevy>
hoelzro yeah
<hoelzro>
it would be possible to have a terminal executable and a gui executable with different linking stuff, though
<hoelzro>
but it's seldom worth the hassle
hornairs has quit [Quit: hornairs]
Xeago has quit [Remote host closed the connection]
saarinen has joined #ruby
yarou_ has joined #ruby
_tpavel has joined #ruby
contradictioned has quit [Remote host closed the connection]
yarou has quit [Ping timeout: 245 seconds]
contradictioned has joined #ruby
einarj has joined #ruby
BuSerD is now known as BuSerD_away
bricker`LA has joined #ruby
<wald0>
shevy: publish somewhere these rb demo files! :)
<wald0>
im finishing to re-read my book and re-structure my tutorial
diegoviola has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
I think my gripe with gettext here is why it requires emacs in the first place. I think it may be due to configure picking it up when it checks the system
<shevy>
it indeed has a no emacs mode, --without-emacs "do not use Emacs, don't install po-mode"
<shevy>
wald0 one thing after the other
<shevy>
wald0 I only have lynx as my browser right now :P
pskosinski has quit [Quit: Til rivido Idisti!]
vlad_starkov has quit [Remote host closed the connection]
<shevy>
miah well I dont know chef or puppet but they seem much smaller than rails
robbyoconnor has quit [Read error: Operation timed out]
<shevy>
rails kinda impacts the whole ruby ecosystem like a meteorite
<miah>
shevy: true
tkuchiki has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
<shevy>
though I must admit, ruby without rails would be much smaller
Kar- has joined #ruby
meatherly has quit [Remote host closed the connection]
zxd has joined #ruby
<wald0>
xz: TEST.tar.xz: Compressed data is corrupt
meatherly has joined #ruby
<wald0>
seems like your upload was not fully finished, shevy
<shevy>
ack
meatherly has quit [Remote host closed the connection]
<shevy>
could be it was in ascii mode hmm
meatherly has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
meatherly has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<Hanmac>
shevy i would compare rails like the impact that makes the moon ... it destroys nearly everything that was there before but create something new (but in rails case i would not say better ;P )
ambushsabre has joined #ruby
noop has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
Kar- has quit [Ping timeout: 272 seconds]
<miah>
i think its great that rails has brought many people to ruby
mklappstuhl has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 260 seconds]
meatherly has quit [Remote host closed the connection]
figgleberry has quit [Ping timeout: 272 seconds]
<miah>
but i say the same thing about 'chef', and 'puppet' in that, i wish more of those people would be willing to pickup books like 'eloquent ruby' or 'practical object oriented design in ruby'
<miah>
(and actually read / study them)
tkuchiki has quit [Remote host closed the connection]
daidoji has joined #ruby
<benzrf>
yeah :|
<Hanmac>
miah RMXP brought many people to ruby too ;P
<benzrf>
rmxp?
<benzrf>
i should learn rake...
<miah>
rake isn't too bad
<miah>
i am not 100% efficient in it, but i know enough to get shit done. which i think is all you need
<miah>
i've used thor more though
<miah>
but mostly because i tend to write systems/cli type stuff
<miah>
and i feel like optparse is super wordy
<benzrf>
what is thor
ambushsabre has quit [Quit: rip]
<Hanmac>
benzrf: RPGMaker XP (or VX or VXAce) ... 2D Game Editor/Maker from Enterbrain designed to make RPG Games like GoldenSun or Zelda (or similar)
wildroman2 has quit [Remote host closed the connection]
<wald0>
miah: have you see trollop? im going to pick this one for option parsing, seems like much easier to code/read
<wald0>
let's say handy
wildroman2 has joined #ruby
ocline` has quit [Ping timeout: 252 seconds]
ocline`` has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
<wald0>
miah: im learning ruby for make some gui interfaces but specially with a cli focus (i always did everything in bash before), did you have some .rb files to share? i would like to read examples of cli codes :)
bricker`1A has joined #ruby
<Hanmac>
wald0 what was your reaction to the DoctorWho Episodes "EmptyChild" or "the ImposiblePlanet" ? ;P
<miah>
i basically wrote a really simple rvm for java
<miah>
that you interface through chef
<shevy>
lynx is really useless for navigation ...
coderhs has quit [Ping timeout: 245 seconds]
<miah>
git clone && tree =)
nanoyak has joined #ruby
<wald0>
shevy: are you not a lover of java? :)
<shevy>
wald0 no, it is so verbose
<wald0>
shevy: try links -g :)
<benzrf>
java ft
<benzrf>
l
<shevy>
lynx shocked me, I gotta be patient in recompiling the gtk-stuff now
* Hanmac
is a hypocrite because he uses java programs but hate java as language
juarlex has quit [Ping timeout: 276 seconds]
<wald0>
shevy: why you want gtk if you can have efl ? =)
<wald0>
Hanmac: why you hate java?
fantazo has quit [Quit: Verlassend]
<wald0>
miah: checking, btw what is this "option parse" gem used on these files? i think that i have read about it recently, looks nice to declare and read
fantazo has joined #ruby
<wald0>
well structured*
<Hanmac>
wald0: like what shevy says to much verbose, and to much missuse of Factory pattern (some like ProgammNameFactoryFactoryFactoryClass which makes ProgammNameFactoryFactoryClass and so on ... )
phansch has quit [Quit: Leaving]
Kar- has joined #ruby
mib_mib has quit [Ping timeout: 272 seconds]
cmedeiros has quit [Ping timeout: 260 seconds]
<wald0>
#_#
<benzrf>
i do not think i have ever seen a factory factory factory
<benzrf>
i might have seen a factory factory once but i dont think so
<hoelzro>
it's factories all the way down.
<miah>
wald0: on which, the sensu plugins
phansch has joined #ruby
<miah>
or the chef stuff? the sensu stuff all uses thor iirc.
<wald0>
miah: did you tried trollop? any comment about it?
<miah>
ah. i am wrong
<miah>
they are using mixlib-cli now
<Hanmac>
benzrf: did you remenber the simsons episode where Marge was in a new kitchen with a Bread Making Machine Making Machine? (it was a Machine which makes Bread-Making-Machine's)
<miah>
hey now.. rms gets by without a browser. you can too! =)
<shevy>
I am not like rms
Kar- has quit [Ping timeout: 252 seconds]
<shevy>
he is more like jesus
<shevy>
I could not follow into the GPL3 crusade :(
ckinni has joined #ruby
<Mike98632>
I'm trying to run a program called screenruler, but I get this error. Can anyone help me figure out what I need to fix this? http://pastebin.com/p5rEpVPJ
<ddd>
user in another channel is parsing a bunch of 1MB files, reads in the whole file and then parses each line once in for specific CSV fields. he's reporting *seriously* slow parse times, though admittedly he's filing out one hell of a huge Hash. I'm wondering if there is a way to profile specifically what in the parsing is slowing it down (is it the line grab, the overall value parse-out, a specific 'type' (string, Integer) ...
_mtr has joined #ruby
<ddd>
... causing a slowdown, or the actual stuffing into the Hash.
<shevy>
Mike98632 can you show the error line here? my firefox is not working right now
ckinni has quit [Max SendQ exceeded]
<ddd>
what would I suggest to speed that up beyond forking a few sub processes to grab say 10 files each and parse those (spawning multiple parsing sessions)
TenJack has quit [Remote host closed the connection]
<Hanmac>
Mike98632 & shevy that is a error that the shared lib cant find the "rb_cCairo_Context" object which is marked as "extern" inside the pango gem ... that means before you require "pango" you NEEED to require the special file that defines "rb_cCairo_Context" ... you can try »require "cairo"« before »require "pango"«
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 265 seconds]
cyberarm has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
* Hanmac
knows about c gems and how they work, and what errors they raise if they do not
senayar has joined #ruby
<wald0>
shevy: you can have webkit (apple browser iirc) in efl but i never tried to compile it because i have an old dependency
<Mike98632>
Hanmac: How would I get it to work for a program I already have installed though?
rootshift has joined #ruby
devosx has joined #ruby
<Hanmac>
Mike98632: as i said, try to require some cairo object ... (and PS: you REALLY need to upgrade your ruby version)
<wald0>
shevy: links -g is similar to lynx, but is graphical mode (even out of X11)
benzrf has left #ruby [#ruby]
<wald0>
miah: is not emacs a browser too?
cmedeiros has joined #ruby
<wald0>
mmh, what is a good "configuration files" feature/gem to use in ruby ? i want one that can be dynamic and that is easy to modify by the users
<wald0>
(easy to modify the conf files)
LadyRainicorn has quit [Ping timeout: 272 seconds]
zipper has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Lewix has joined #ruby
wildroman2 has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 276 seconds]
ctp has quit [Ping timeout: 276 seconds]
<Hanmac>
Mike98632: if i smell it correct you installed "ruby-pango" and "ruby-cairo" as dpkg packages on ubuntu/debian ... in your file/script you need to require "cairo" before require "pango" to get it working (pango maybe cant to it itself for you)
h4mz1d has joined #ruby
iamamuc has joined #ruby
benlieb has joined #ruby
<shevy>
wald0 I think webkit depends on gtk unfortunately
Xeago has joined #ruby
IcyDragon has joined #ruby
mlpinit has joined #ruby
<wald0>
shevy: really? the efl dependency should replace the gtk ones, entirely non-depending on gtk, but i dont know by experience compiling it so i cant tell you
havenwood has joined #ruby
<wald0>
shevy: just use google chrome as binary :)
<wald0>
their static binary lol
<wald0>
chromium is very good
IceDragon has quit [Ping timeout: 272 seconds]
w_alexus has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
fgo has joined #ruby
<wald0>
does || works like the shell OR in ruby ?
<hoelzro>
wald0: meaning short circuiting behavior? if so, yes
<hoelzro>
I like to think of || like so:
<wald0>
hoelzro: just trying to understand a code that i just readed :)
<hoelzro>
result = lhs unless lhs ; result = rhs ; end
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
parduse has quit [Read error: Connection reset by peer]
<soahccc>
wald0: Does the shell return the value? foo = nil || false || "bar" results in foo = "bar" not a boolean value
<soahccc>
rankine: Well binding.pry =)
vlad_sta_ has quit [Remote host closed the connection]
<soahccc>
rankine: And I like pry-nav which lets you use prev/next
pontiki has joined #ruby
vlad_starkov has joined #ruby
freezey has quit [Remote host closed the connection]
<wald0>
miah: do you know why sensu moved to mixlib-cli ? im searching for an options parser to use in my tools (but to stick at the same one for all of my scripts)
<rankine>
soahccc: yeah that one is amazing :) debugging is pretty fun now
fgo has quit [Ping timeout: 272 seconds]
<havenwood>
rankine: type `help` then for each command do `help ls` etc
<havenwood>
help cat
<wald0>
shevy: why not?
<rankine>
soahccc: with pry-nav, it goes to the next 'binding.pry'?
<wald0>
rankine: cd Fixnum ; ls
<soahccc>
rankine: And read the FAQ. There are tips like "end with ; do not dump the result"
recurrence has joined #ruby
<havenwood>
rankine: pry-doc is a must (`gem install pry-doc`) and pry-theme for pretty colors
<recurrence>
can I make a switch statement that has a case that checks if the value is a key in a hash?
<soahccc>
rankine: If you have multiple binding.pry it will always skip to the next when you "exit"... pry-nav lets you execute command by command from your haltpoint
<rankine>
havenwood: nice, thanks. got pry-doc, but I think I'm missing the pretty colors
figgleberry has joined #ruby
psyl0n has joined #ruby
w_alexus has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
<rankine>
soahccc: oh cool, like gdb for C
<havenwood>
rankine: then in my `.pryrc` to go with pry-theme: Pry.config.theme = 'railscasts'
<soahccc>
I just "found" this obvious channel. Can somebody tell me the difference to ruby-lang?
psyl0n has quit [Remote host closed the connection]
<havenwood>
soahccc: This channel doesn't require that you reg your nick
<Mon_Ouie>
ruby-lang is the official one
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
parduse has joined #ruby
Xeago has joined #ruby
IcyDragon is now known as IceDragon
<soahccc>
yeah it sucks when my bouncer reconnects. I get a different name which I can't login with and I can't change my nickname "while banned on channel #ruby-lang"
<havenwood>
soahccc: python etc do the same, one for registered nicks only (tends to be less chatter) then one for the open public
capicue has joined #ruby
<soahccc>
okay got it :)
<ddd>
just set upo your bouncer not to change your nick on disconnect
<ddd>
no need at all to change. people can /whois you to see what your last active time was
<soahccc>
I think it's because the old connection isn't closed or something. I use a ruby bouncer! :D but it's pretty unstable
<ddd>
hehe
lorelei_ has quit [Quit: Leaving]
<canton7>
same! I wrote my own. It's also pretty unstable sometimes
ringaroses has joined #ruby
<Mon_Ouie>
Well being registered or not isn't really the reason for the existence of both though, for a long time you could talk on #ruby-lang without being registered
<soahccc>
tkellem works kinda good but it isn't really active either... One man side project... Unfortunately this is too high for me
<Hanmac>
soahccc: "#ruby are for developers that work WITH ruby , #ruby-lang are for the developers OF ruby" ;P
<ddd>
think the registration was for cutting down drive-by spammers
<soahccc>
Ohh and I bothered them with my questions :<
<canton7>
tbh the two get pretty much the same sorts of questions
<ddd>
yeah i've always used both channels for that reason. didn't dawn on me the With vs For
<ddd>
er Of
<havenwood>
drbrain made some overture towards merging the two channels, but i have mixed feelings
[_aeris_] is now known as _aeris_
<Mon_Ouie>
Hanmac: That would be #ruby-dev
<Hanmac>
huch, i miss that one ,P
<havenwood>
#ruby-core
<ddd>
so is #ruby-lang another 'with' channel?
<Mon_Ouie>
Ah, right, wasn't sure that was the name
<ddd>
and -core and -dev are the 'of' channels?
freezey has joined #ruby
<Mon_Ouie>
-dev doesn't exist I think, I just didn't remember the name of the 'of' channel
<ddd>
ah
aryaching has joined #ruby
Bira has quit [Remote host closed the connection]
<Mon_Ouie>
But yeah, #ruby and #ruby-lang serve the same purpose
Guest1722 has joined #ruby
<ddd>
so #ruby-lang is actually the 'official' 'with' channel run by the 'of' guys then
Bira has joined #ruby
<shevy>
wald0 because google is destroying competition as it spreads
<ddd>
and this chan is a secondary 'with'
<ddd>
or competing 'with' if you ask me
fire has quit [Ping timeout: 245 seconds]
<soahccc>
Maybe my brain fools me but when I first looked for a channel there was no #ruby and I googled that it was #ruby-lang which I never would have guessed
<shevy>
yeah it's weird soahccc
Zackio has joined #ruby
cashnguns has joined #ruby
<Mon_Ouie>
Yeah, though not quite "run" by the ruby-core developers, it's just the one your are linked to on the website. Some of the ops there are developers of ruby, some aren't.
jamesaanderson has joined #ruby
<shevy>
you can find people on #ruby-lang who will never be on #ruby
jamesaanderson has quit [Max SendQ exceeded]
<ddd>
yeah the -lang throws it off. I looked for a #ruby channel when i first got into ruby. never dawned on me the official channel would be -lang. But i didn't come to ruby through the ruby-lang.org site. I came to ruby through IRC
<Hanmac>
shevy: and also reverse
Guest1722 is now known as lorelei_
<shevy>
one day we will have destroyed #ruby-lang though
jamesaanderson has joined #ruby
<shevy>
332 vs 837 WE ARE STRONGER!
jamesaanderson has quit [Max SendQ exceeded]
rankine has quit [Quit: Leaving]
<ddd>
i actually see probably 2 - 3 times more activity in this one than i do in the other
jerius has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<ddd>
though it has a fair amount of targeted traffic of its own
prc has joined #ruby
jamesaanderson has joined #ruby
carraroj has joined #ruby
psyl0n has quit [Remote host closed the connection]
jerius has quit [Client Quit]
<ddd>
i also find this channel less.. 'snide' in reponses regardless of your level of 'Clue' which i like
<apeiros>
ddd: odd, I'm on both channels.
<soahccc>
Yeah I also noticed that it was a bit quite in there but I assume they're all in the rails channel :>
<ddd>
apeiros so am i
<apeiros>
your responses are snide? :)
<ddd>
well it depends on the person. like you hanmac and others are generally congenial in your reponses in both channels. it just seems friendlier in the responses here vs there
<ddd>
then again it could be the level of expertise expected there vs here, idk. spitballing on why
Bira has quit [Remote host closed the connection]
aspires has joined #ruby
carraroj has quit [Client Quit]
<Hanmac>
ddd: i am mostly very helpful ... i cant help it, i played to much RPGs to reject a "help-quest" ;P ... but i am not doing "rails-quests" ... thats why i push the ones that ask rails questions there into the right room
carraroj has joined #ruby
<ddd>
hanmac and you should. i've absolutely no issues with that
centrx has joined #ruby
ctp has joined #ruby
<wald0>
shevy: competition is not good so i dont have problem if google destroy's it :) but by other side monopol is not good too (until we move out to a non-monetary system)
<ddd>
there's a great deal of intermingle, but i've no problems with rails stuff pushed to the rails channel. i agree with it personally
<wald0>
out of a monetary system, monopol is good :)
<apeiros>
ddd: you just killed my self deprecating joke :(
<apeiros>
(which, as any good joke, probably contains a bit of truth)
<ddd>
apeiros was i being blind as a bat again? ;)
LadyRainicorn has joined #ruby
<ddd>
and no, i actually find you the same in both channels. its rare in there that you expect a certain level of knowledge, that you don't in here. and when you do its question-bound.
cmedeiros has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
<Xeago>
I'm bored what do I do?
<soahccc>
ddd: Damn I not only have to translate the words you use I also have to look at the definition :S
<Hanmac>
Xeago: finding bugs in rdoc ? ;P
<apeiros>
Xeago: i-am-bored.com ?
carraroj has quit [Ping timeout: 245 seconds]
<Xeago>
something that'll give value to me
<ddd>
soahccc hehe, my friends pick on me too for it. i use big words. not trying to flaunt it, i was just taught that if you know it use it. or it dies.
<apeiros>
ddd: heh, I actually implied that I was snide, so I was surprised, that there should be a difference in snideness between the channels if I'm in both ;-)
<soahccc>
ddd: Yeah I also tend to do that
<ddd>
i lost a girlfriend once who trul thought i was trying to be a showoff using big words and make her feel stupid. didn't matter what i said she refused to believe this is how i talk normally
<ddd>
apeiros ehh could be a channel thing, could be a misreading on my part. idk.
<centrx>
I talk good
<ddd>
hehe, yeah thats the level she grew up with
<soahccc>
If I think of the PHP channel years ago... they were snide
<ddd>
in her world that was the way people wer expected to talk. slangishly
<shevy>
the problem is with the ability of who can ban other people
<shevy>
like zenspider vs. poor RubyPanther here
<ddd>
hehe
_tpavel has quit [Ping timeout: 252 seconds]
<Xeago>
ima fix my shell environment
<ddd>
zen comes across as not really giving a damn so long as you're not being disrptive to the channel. he's got other fish to fry
<shevy>
tsume managed to go down the same path but he only joined #rubyforce, not #ruby :(
<RubyPanther>
I'm not in his weight class, but I didn't tap
<shevy>
hehe
ctp has quit [Quit: Leaving...]
<shevy>
wald0 I almost have everything restored now, gtk is compiling finally. pango/atk/cairo/glib work fine again
marr has joined #ruby
<wald0>
shevy: just curious, why not using a (working) distro?
<wald0>
note that i said "working" because most of them doesnt works correctly :)
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
_mtr has quit [Remote host closed the connection]
Bira has joined #ruby
recurrence has quit [Ping timeout: 252 seconds]
Bira_ has joined #ruby
shevy has quit [Ping timeout: 272 seconds]
bricker`1A is now known as bricker
<soahccc>
Speaking of working distros... Can somebody recommend an easy and clean GUI? I'm not using linux so I just know that KDE was exactly not that when I saw it the last time
aryaching has quit [Ping timeout: 272 seconds]
<centrx>
soahccc, How easy and clean?
jamesaanderson has quit [Ping timeout: 276 seconds]
<soahccc>
it will be use for browsing and office stuff only. for a windows user
timonv has quit [Remote host closed the connection]
<centrx>
soahccc, The main heavyweight "desktop environments" in Linux are GNOME and KDE.
<soahccc>
I only know Gnome and KDE to be honest
<centrx>
soahccc, Major lightweight desktop environments are LXDE and XFCE
<wald0>
centrx: what about enlightenment? :)
<centrx>
soahccc, There is also the option of not using a full-throated "desktop environment". All you need is what is called a "window manager"
Bira has quit [Ping timeout: 272 seconds]
<centrx>
Ah Enlightenment yes
jamesaanderson has joined #ruby
<centrx>
wald0, The latest version of Enlightenment has been in development so long...
jamesaanderson has quit [Max SendQ exceeded]
freggles has joined #ruby
allaire has quit []
<wald0>
centrx: not really, you are talking about e16, but e17 was released 1 year ago (after 10 years of development), there's e18 released too now :)
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
zipper has joined #ruby
<centrx>
wald0, Although Enlightenment used to be considered halfway between a desktop environment and a window manager, not a full-blown desktop environment
deens has joined #ruby
<centrx>
soahccc, So for example, I use OpenBox with fbpanel as my GUI environment
<soahccc>
Is Mint considerable? I noticed the name quite often but more in the context of development
jamesaanderson has joined #ruby
<centrx>
soahccc, It is very basic, but fast and no-nonsense
shevy has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<centrx>
soahccc, Mint is a popular Debian-based distribution
w_alexus has quit [Ping timeout: 246 seconds]
<wald0>
centrx: not full-blown ? :) just see the terminal made by enlightenment: http://youtu.be/ibPziLRGvkg
<soahccc>
ahh okay so it's out of date when shipped? xD
axl_ has joined #ruby
<shevy>
gah, right after I said that, firefox froze the system
Kar- has joined #ruby
jamesaanderson has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<wald0>
shevy: that bloated gecko... what is it in fact? a fork of java?
<shevy>
wald0 doesn't it use webkit as well?
mercwithamouth has quit [Ping timeout: 272 seconds]
<wald0>
shevy: firefox? i dont think... they always used gecko as the internal engine, i dont think that they are switch (otherwise tehre should be another proejct instead of firefox, imho)
<Hanmac>
hihihi it is very funny when a special rdoc version colide with a special ruby version ;D
<centrx>
wald0, Not a bad thing, I prefer lightweight GUI
Bira_ has quit [Remote host closed the connection]
<centrx>
soahccc, No I don't think it is out of date. Mint is one of the more bleeding-edge distros
CaptainJet has quit []
monkegjinni has quit [Ping timeout: 265 seconds]
<centrx>
soahccc, They update the packages from the Debian/Ubuntu basis they start with
<wald0>
centrx: who said is not lightweight? :) its more light than other things, even samsung is using it for the internal engine for their next phones
<soahccc>
ohh okay... We went away from debian on our servers due to all the old packages where you end up compiling everything manually making apt useless
<shevy>
soahccc hehehehe
<shevy>
mint is nice
monkegjinni has joined #ruby
monkegjinni has quit [Client Quit]
<shevy>
but debian stinks
* Hanmac
has ubuntu but added also some minty features (cinnamon is much more clean than unity)
<shevy>
ubuntu stinks even more than debian
<wald0>
soahccc: whats wrong with debian testing? it is 4-month old
<centrx>
wald0, Well KDE and GNOME add all sorts of crap, that is what they like to be called desktop environments
monkegjinni has joined #ruby
* Hanmac
is a trunken nightly user ,P
<wald0>
shevy: ubuntu has older packages than debian too lol
Kar- has quit [Ping timeout: 276 seconds]
<shevy>
wald0 lol
wildroman2 has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
<shevy>
I am on xfce now
<shevy>
kde took 10 seconds to startup - then it froze the computer (due to firefox I think)
<centrx>
Well Ubuntu has a six-month release cycle for their non-LTS releases
po10 has quit [Quit: /]
<shevy>
six month pregnancy
freezey has quit [Remote host closed the connection]
<Hanmac>
wald0 i get my environment cinnamon from a nightly repository, so fu* with "old packages" ;D
Bira has joined #ruby
<centrx>
soahccc, Many of the Debian-based distros are in fact based on Debian testing/unstable. They take testing/unstable and test it and polish it up and add their own tools and apps and release it
<soahccc>
So when I google for images of XFCE I end up with all different ones... Is it more the theme than the underlying manager?
<shevy>
soahccc the default one I have looks a bit like "lightweight gnome2"
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wald0>
shevy: enlightenment faster than fluxbox :)
<benlieb>
I'm changing an old app from 1.8 to 2.0. Some specs dealing with time are now failing. Has the Time.parse method changed since 1.8.6? Specifically the "flipping" of the month order in the following snippet worries me and makes me feel that Time.parse is unpredictable, and should be avoided: https://gist.github.com/anonymous/8377003
<shevy>
soahccc right, but gnome2 looks like old Mac OS as well. a friend who saw gnome2 for the first time thought it was mac
<shevy>
wald0 nothing is faster than fluxbox! save for ratpoison perhaps. the startup is like less than 1 second, instantaneous!
po10 has joined #ruby
Bira has quit [Remote host closed the connection]
<centrx>
wald0, No way
sbos99 has quit [Ping timeout: 265 seconds]
<wald0>
shevy: seriously, there was a graph comparing different WM and enlightenment was lighter :)
<benlieb>
it just makes me wary of using this, because if you'll forget what order causes what and it's no easy to eyeball it without consulting a chart of some kind.
<centrx>
benlieb, Yes, that is expected
<centrx>
benlieb, I would recommend ALWAYS using the standard format like 2012-05-31
Bira has joined #ruby
<Mon_Ouie>
Time.parse tries to guess the format of the input, that's why those things happen
<centrx>
That will always be treated correctly
<Mon_Ouie>
Use strptime to parse a known time format
<Hanmac>
benlieb: use Time.strptime
saarinen has quit [Quit: saarinen]
<shevy>
Hanmac what time format do you use? yyyy-mm-dd ?
wildroman2 has joined #ruby
tectonic has joined #ruby
<benlieb>
centrx: the odd thing is that the specs were passing years ago, and now they are not. I think that the Time.parse has changed. Oh well. It's a good time to adopt some better habits in this area: https://gist.github.com/pixelterra/8377118
<Hanmac>
shevy hm where do you ask? in my documentations or where?
johnyboy6000 has joined #ruby
tharindu has quit [Quit: Leaving...]
<shevy>
Hanmac everywhere!
popl has joined #ruby
popl has joined #ruby
poulson has quit [Remote host closed the connection]
<Hanmac>
shevy: for sample in the rwx files they are documented with "Created on: dd.mm.yyyy" because that is the format of my current location
<shevy>
\o/
<dachi_>
anybody know scala?
<centrx>
benlieb, It looks like this behavior was indeed changed in Ruby 1.9
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
scala is that fancy java thing that wants to be like ruby and fails, isn't it?
<dachi_>
i argue with some guy about speeds and i need scala version
<benlieb>
looks like strptime is the smartest way to go, no guess work
<centrx>
Yes
zipper has quit [Ping timeout: 252 seconds]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
<shevy>
dachi_ well no idea how they do that
<shevy>
probably they have a way but it's more verbose and less documented!
<dachi_>
ok thanks
<shevy>
who knows scala!
<shevy>
dachi_ you gotta get people to respond
<centrx>
dachi_, Did you try the #scala channel?
<dachi_>
i joined their channel and asked there but
<dachi_>
dachi_: Hello! if anyone has like 3-4 minutes, could you please write Scala version of this script in ruby? http://dachi.co/bench_rb.html I am comparing speeds and I'd be very grateful
<dachi_>
[01:24am] OlegYch: won't
<dachi_>
:|
<centrx>
Yeah you might have to "learn" how to program in scala
<shevy>
guys
<shevy>
a question...
<shevy>
looks as if we have three ways to test for the existance of a directory
<centrx>
Also if it is not written by an expert then, then the benchmark may not be comparable
pskosinski has joined #ruby
<shevy>
File.directory? Dir.exist? File.exist?
<shevy>
which one should I use though?
<centrx>
Dir.exist? sounds right
<dachi_>
i think so
ahmedelgabri has quit []
capicue has quit [Quit: Leaving...]
ambushsabre has joined #ruby
<shevy>
ok
<shevy>
I looked at old code and saw I used File.exist? which puzzled me
<Hanmac>
shevy some very old code did use FileTest.directory?
<centrx>
It does the same thing if the directory does not exist
KensoDev has joined #ruby
<shevy>
omg FileTest
<shevy>
who invented this atrocity onto the eyes of the general ruby hacker
<centrx>
It looks like they all run the same C code
<centrx>
except File.directory? and Dir.exist? also check if the file is in fact a directory, not only that it exists
<soahccc>
isn't that design? thousand way to do the same :)
<Hanmac>
centrx: they does and even "ri FileTest.directory?" does show "File.directory?"
pskosinski has quit [Quit: Til rivido Idisti!]
starkhalo has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
Bira has quit [Remote host closed the connection]
devosx has left #ruby [#ruby]
Bira has joined #ruby
emocakes has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
phansch has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
axl_ has quit [Quit: axl_]
fijimunkii has joined #ruby
KensoDev has quit [Remote host closed the connection]
<wald0>
so how i can use ||= for "if variable exist, increment +1, otherwise set it to 1 ?
<Hanmac>
michele: what does "gem env" and "ruby -v" shows ?
rubyracer has joined #ruby
Bira has quit [Remote host closed the connection]
<centrx>
wald0, If you are looking for a one-liner, you can do: i = (i || 0) + 1
<MrZYX>
wald0: never came across a case where that made sense, can't you just initialize it? also check .inject(:+) for building sums and .count for counting things
<centrx>
wald0, In general I would separate the logic
nhhagen has joined #ruby
zubov has quit [Client Quit]
<alexherbo2>
is there a way to dynamically add an instance variable to a class like this?
<MrZYX>
alexherbo2: just the instance variable? because your code uses methods. Also why do you want that? sure you don't want a Hash or an OpenStruct?
DropsOfSerenity has quit [Client Quit]
<Hanmac>
michele: "gem env" => " - RUBY EXECUTABLE: /usr/bin/ruby1.9.1" "ruby -v" => "ruby 2.1.0p0" see the problem there?
<michele>
Hanmac: so I should change gem ruby executable
<Hanmac>
alexherbo2: uae attr_accessor
<apeiros>
yeah, who puts executables in /usr/bin…
kevinfagan_ has quit [Max SendQ exceeded]
<Hanmac>
michele: something wend wrong after you install ruby (how did you do that?)
Spami has quit [Quit: This computer has gone to sleep]
<michele>
Hanmac: i installed ruby21, then update-alternatives --config ruby
<michele>
selected ruby2.1
<michele>
(before that, I was using ruby1.9.3 as stated on gem env)
<Hanmac>
you need "update-alternatives --config gem" ... (yeah debian need to fix that :/ )
<shevy>
wald0 do you know like when you have a day, where something shitty happens
<shevy>
and you try to recover from it
<alexherbo2>
MrZYX: i would be able to do: tree = Tree::Node.new; tree.foo = 'bar' instead of tree.value = { 'foo' => 'bar' }
<shevy>
and it works a bit... but then suddenly something else shitty happens
<shevy>
and it continues like that and does not want to seem to stop
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
<MrZYX>
alexherbo2: so subclass OpenStruct or if you'd be okay with node = Node.new; node["foo"] = "bar"; node["foo"] I'd suggest do keep an internal Hash and delegate #[] and #[]= to it
Bira has joined #ruby
mengu has quit [Remote host closed the connection]
_mtr has joined #ruby
relix has joined #ruby
waxjar has quit [Ping timeout: 252 seconds]
<shevy>
class vs. module still confuses me
<shevy>
no wait
<shevy>
subclassing vs. using-modules
<alexherbo2>
MrZYX: i like your solution
<alexherbo2>
thanks
Fractional has joined #ruby
<Fractional>
Hello.
<Fractional>
Could anyone lend a helping hand regarding multidimensional arrays?
michele has left #ruby [#ruby]
nhhagen has joined #ruby
freezey has joined #ruby
IceDragon has quit [Ping timeout: 276 seconds]
waxjar has joined #ruby
Guest24682 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
binaryhat has quit [Quit: Leaving]
<tt1187>
quick question; "You wanted to abstract the first name/last name requirement and only allow full
<tt1187>
names to be set or retrieved." --- what does abstract mean in this context? Hide?
benlieb has quit [Quit: benlieb]
<shevy>
no idea
<shevy>
perhaps the author was not sure what he wanted
<MrZYX>
Fractional: don't ask to ask, just ask
<shevy>
tt1187 perhaps you tried to use something in a way you should not have used it
sambao21 has joined #ruby
<tt1187>
shevy, i'm going over Encapsulation if that helps
figgleberry has joined #ruby
<tt1187>
but thanks anyways
<alexherbo2>
MrZYX: do you suggest me to subclass OpenStruct or keep an internal Hash and delegate to #[] and #[]= to it ?
<_mtr>
tt1187: @first_name, @last_name are not accessible, but @full_name ( = @first_name + @last_name) is?
<MrZYX>
alexherbo2: I'd use the hash solution
fenicks has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
atmosx has joined #ruby
<MrZYX>
alexherbo2: OpenStruct works through overriding method_missing, which i try to avoid doing when it's not giving me a much neater solution than another approach
senayar_ has joined #ruby
e62 has joined #ruby
<MrZYX>
also you then can't have a value with the same key than any of your existing methods
diegoviola has quit [Quit: WeeChat 0.4.2]
senayar__ has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
<MrZYX>
so there's just less that can go wrong with delegating #[]/#[]=
<apeiros>
Fractional: sounds like you're out of bounds, even though your code looks like it shouldn't
rootshift has joined #ruby
<apeiros>
ah
<Fractional>
apeiros, that is exactly what I thought. I've no idea how to solve it though.
<apeiros>
you have @map and @mapData
<apeiros>
their size differs
<shevy>
Fractional you need to simplify
<Fractional>
apeiros: I am so sorry. God, I feel stupid.
johnyboy6000 has quit [Remote host closed the connection]
mauro has joined #ruby
<shevy>
File.open(mapName, "r").each_line do |line|
<shevy>
@mapData << line
<Fractional>
apeiros, thanks for helping me. A simply overlook.
<shevy>
if you only copy into that @ivar
Mars has joined #ruby
heidi has joined #ruby
<shevy>
then just use File.readlines()
Mars is now known as Guest28458
senayar has quit [Ping timeout: 252 seconds]
<apeiros>
Fractional: `for i in 0..@mapData.size-1` --> @mapData.size.times do |i|
<shevy>
in ruby it helps to try to stay as simple as possible all the time
<apeiros>
also, ruby convention is @map_data
<apeiros>
and load_map instead of loadMap
<Fractional>
apeiros, thanks, will update! :)
<apeiros>
also what shevy said wrt .readlines :)
<MrZYX>
Fractional: and indent with two spaces ;P
<centrx>
@map_data.each or @map_data.each_with_index or @map_data.map
<Fractional>
apeiros, I still can't add a instance of the class Tile into the multidimensional map array.
<Fractional>
MrZyx: No more tabs? :P
<shevy>
Fractional a big advantage of apeiros' code is that .times is much easier for counting than for/in loop
<shevy>
where is class Tile
senayar_ has quit [Ping timeout: 252 seconds]
<Fractional>
Shevy: Let me update the code with the changes everyone suggested and I'll post the full one :)
freezey has quit [Remote host closed the connection]
<shevy>
Fractional there are practical considerations for tab vs. space. I stopped using tabs when I started to indent and align comment in code.
<MrZYX>
Hanmac: we're already past that and at File.readlines ;)
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
2 space vs. 4 space in ruby is nicer for 2 spaces because ruby is already very terse, if you have less than 80 lines of code per line, you can fill in more content at no real extra cost if you remain succinct
<shevy>
and if it is still convoluted for you, you can always break it into newlines
<shevy>
class Foo
<shevy>
def bla
<shevy>
vs
<shevy>
class Foo
<shevy>
def bla
fgo has joined #ruby
<shevy>
of course people who use tabs don't have this problem
mikecmpbll has joined #ruby
<shevy>
Hanmac, apeiros do you use tabs in .rb files by the way?
<Fractional>
Haha, it is hard for me to abandone my old methods.
<apeiros>
shevy: no. I prefer tabs, but convention has precedence.
<Hanmac>
shevy hm for some projects i did it
guinslym_ has joined #ruby
heidi has quit [Read error: Connection reset by peer]
<shevy>
Hanmac and in rwx?
heidi has joined #ruby
mauro has quit [Quit: mauro]
<shevy>
Fractional you see there is a big division in tabs vs. spaces
<shevy>
Fractional we are on opposing sides here :(
<Hanmac>
hm i need to look ... the cpp files have tabs ... (because spaces would drive me crazy how often i rewrite everything) for the samples ... i think its currently mixed ... i need to fix that later
<soahccc>
I hate it that gist represent a tab with 8 spaces :(
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
soahccc hehe
<Fractional>
shevy: I am trying to join your side! :D
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy>
I actually liked the old pastie.org the most, gist is not as beautiful... but much better than pastebin ... and about equal with the new pastie.org these days
<shevy>
Fractional \o/
<shevy>
Hanmac yah, I only mean ruby files
<soahccc>
shevy: huh? o.O
<centrx>
Everyone knows indentation is bad
<shevy>
C++ is ugly so it's fine that you use tabs
<soahccc>
shevy: What is pastie's magic feature I've missed?
rickruby has joined #ruby
<shevy>
soahccc oh what I mean is, I didn't even look well into gist because I dont like the colours
rootshift has quit [Quit: rootshift]
nhhagen has quit [Remote host closed the connection]
pskosinski has joined #ruby
<shevy>
soahccc the colours! the visual beauty and elegance!
<soahccc>
shevy: colors! :D
<shevy>
I can't compare right now because I am on konqueror, and konqueror is a horrible piece of ****
<shevy>
I meant to say... why module_eval is shown as example
<shevy>
apeiros hmmm I see
<MrZYX>
Fractional: also 01010101020101001010101 is 23 digits
<shevy>
oh interesting, so I dont have to put the thing that is evaled inside of the module actually
heidi has quit [Quit: Leaving.]
<soahccc>
shevy: yeah, not enough git for me :) If you're just looking at a short snippet it doesn't matter but if the person provided good pastes you can clone it straight away, edit it locally in your favorite environment and push it as new gist...
<Fractional>
The output of the array was 25 which should be 25 numbers.
<shevy>
soahccc you mean from the commandline?
<Fractional>
of the array size at [0], [1], [2] and [3]
thenovices has quit [Remote host closed the connection]
<Fractional>
MrZYX: Didn't even know you could access them by GameWindow::WIDTH, awesome!
monkegjinni has quit [Remote host closed the connection]
psyl0n has quit [Remote host closed the connection]
iamamuc has quit []
`MArceLL` has joined #ruby
<Fractional>
MrZYX: Is it preferred to name ruby functions by load_Map instead of loadMap?
<apeiros>
load_map actually
<apeiros>
yes
<MrZYX>
neither, load_map is prefered
<Fractional>
Of course :P
<_mtr>
Fractional: Map.load() is probably the preferred name in your case
<apeiros>
+1
<MrZYX>
good point
phipes has quit [Remote host closed the connection]
<Fractional>
So you can name functions to Map.load ?
SCommette has joined #ruby
<_mtr>
load
SCommette has quit [Client Quit]
<_mtr>
Called with Map.load()
<_mtr>
Map.load_map, etc. is redundant
<Fractional>
Ah, alright
<Fractional>
Hope you don't mind the silly questions. I'm moving from C++ to Ruby.
<apeiros>
there are only a couple of silly questions
chomskiii has quit [Read error: Connection reset by peer]
<apeiros>
and don't worry, you'll quickly be told if you ask one of these ;-)
<shevy>
Fractional this works by doing def self.bla stuff, like: class Map; def self.load(); end; end <--- now you can use Map.load()
araujo has quit [Quit: Leaving]
heidi has joined #ruby
chomskiii has joined #ruby
<Fractional>
shevy: Can I call Map.load() from within the map class or will it go by load()?
<_mtr>
self.load()
<apeiros>
within class methods, plain `load` is sufficient
<shevy>
Fractional it is often more logical to do so. Map.load() could mean "Hey I wanna load a map". It would be easier to understand than doing: Map.new.load() "I wanna load a map but I kinda wanna first load an object" and people may then ask "why do you need an object here... why not just omit the .new ... "
<apeiros>
within instance methods, either self.class.load, or explicitly Map.load
<shevy>
hey _mtr you read like a pointer in C :>
<Fractional>
Thanks guys! :)
SCommette has joined #ruby
LekeFly has joined #ruby
<Fractional>
class Map; def load(map_name); self.load("Europe"); ?
<Hanmac>
Fractional: ... you can use both, def load;end and def self.load;end ... when you want to change the map object inplace instead of making a new one
m8 has quit [Quit: Sto andando via]
Bira has quit [Remote host closed the connection]
<Fractional>
Sorry Hanmac I don't think I quite understand what you mean.