lampd1 has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cndiv_afk has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
zz_karupa is now known as karupa
dc__ has quit []
lw has quit [Quit: s]
codeFiend has joined #ruby
Kricir has quit [Remote host closed the connection]
jay__ has joined #ruby
codeFiend has quit [Client Quit]
Kricir has joined #ruby
atomi has quit [Quit: leaving]
timmmaaaayyy has joined #ruby
oo_ has joined #ruby
dorei has quit []
Pupeno has joined #ruby
<timmmaaaayyy>
if i use rvm.....root cannot use ruby. whats the proper way to work around this? modify roots path so it can use my ruby? or install rvm for root? or something completely different?
atomi has joined #ruby
dx7_ has joined #ruby
thsig has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
manzo has quit [Quit: Leaving]
jimbach has joined #ruby
manzo has joined #ruby
jasooon has joined #ruby
reinaldob has quit [Remote host closed the connection]
Kricir_ has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
dx7 has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
IceDragon has joined #ruby
dx7_ has quit [Ping timeout: 245 seconds]
jimbach has quit [Ping timeout: 258 seconds]
aspires has quit []
banister is now known as banisterfiend
jasooon has quit [Ping timeout: 272 seconds]
rubyonrailed_ has joined #ruby
<wsmoak>
timmmaaaayyy: possibly… run the ruby program as a different user? depends on what you need … I rarely do anything with root directly, just individual commands with sudo.
insaneinside has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
wsmoak_ has joined #ruby
wsmoak_ has quit [Changing host]
wsmoak_ has joined #ruby
jasooon has joined #ruby
<wallerdev>
the nice thing about just using root is you dont have to think about when to use sudo or not
omosoj has quit [Quit: leaving]
thsig has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
thsig has joined #ruby
rubyonrailed_ has quit [Client Quit]
Pupeno has quit [Quit: Leaving...]
jgrevich has joined #ruby
wsmoak has quit [Ping timeout: 245 seconds]
wsmoak_ is now known as wsmoak
lw has joined #ruby
michaeldeol has joined #ruby
emmesswhy has joined #ruby
neonixcoder has joined #ruby
zorak_ has joined #ruby
danielpclark has joined #ruby
michaeldeol has quit [Client Quit]
<zenspider>
yet another reason why I think rvm is too clevar
lw has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
<mastr_bennett[x]>
zenspider: what's that?
crunk_bear has joined #ruby
TheTopBloke has joined #ruby
TheTopBloke has left #ruby [#ruby]
lw has joined #ruby
attamusc has quit [Quit: Connection closed for inactivity]
l3ck has quit [Quit: Bye!]
robustus has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
ghostmoth has joined #ruby
pandaant has quit [Remote host closed the connection]
mary5030 has joined #ruby
emmesswhy has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 1.0]
maestrojed has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
<eam>
whatever happened to just setting $PATH
tkuchiki has joined #ruby
Takle has quit [Remote host closed the connection]
krisquigley has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
vt102 has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
<insaneinside>
zenspider: is it true (as i'm afraid it is) that minitest extends ::Object with MiniTest::Expectations? (wallerdev said you were the one to ask.)
ghostmoth has quit [Quit: ghostmoth]
<volty>
i don't know rvm, but i can hardly believe it has to do with rvm's caution // how could rvm hide ruby from root ?
bmurt has joined #ruby
<banisterfiend>
insaneinside stick a `binding.pry` in your test suite and ask it yourself :)
<insaneinside>
When choosing a test framework to start with, it's a bit of a put-off to see that the test framework is changing the thing under test..
<insaneinside>
banisterfiend:
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
<insaneinside>
er, derp. hmm.. google time.
<tobago>
How to prove, the thread is running properly? stdin, stdout, stderr, wait_thr = Open3.popen3('ping www.google.com')
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
SpikeMaster has joined #ruby
GriffinHeart has joined #ruby
<insaneinside>
tobago: wait_thr.alive?
<tobago>
insaneinside, well. and how to catch the stdout stream also?
diegoviola has joined #ruby
<tobago>
only inside the block way?
<insaneinside>
see IO#read
brendenb has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
_1_begin has joined #ruby
krisquigley has joined #ruby
<_1_begin>
hi
davasaurous has quit [Remote host closed the connection]
* insaneinside
loves getting hi
<tobago>
insaneinside, IO.read puts nothing (and looks like blocked, because it does not return to IRB shell)
brendenb has joined #ruby
<tobago>
insaneinside, I expected several 64 bytes from ea-in-f106.1e100.net (74.125.136.106): icmp_seq=1 ttl=45 time=29.0 ms
<insaneinside>
tobago: well, yes. That's because `ping` runs forever with those parameters
<insaneinside>
tobago: if you're looking to check net connectivity, just try a simple connect or something
<tobago>
insaneinside, ah o.k. so when I kill the process, the output stream ist printed?
krisquigley has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
wjimenez5271 has joined #ruby
diegoviola has quit [Client Quit]
<tobago>
insaneinside, o.k. thank you. though it was just that I played the first time with Open3#popen3 and wanted to understand it in detail. o.k. gotcha. I play with another command to check the output stream.
Zettam has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
<insaneinside>
ahh, okay
krisquigley has quit [Read error: Connection reset by peer]
<volty>
STDOUT.sync
Zettam has joined #ruby
<volty>
ping -c 50
<volty>
(or)
<volty>
ops STDOUT.sync = true
kobain has joined #ruby
<volty>
look guys, it's so nice here, with practical ppl
* insaneinside
doesn't follow.
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
lw has quit [Read error: Connection reset by peer]
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<volty>
STDOUT.sync = true --- > STDOUT flushes as soon as some data goes there (does not wait to fill the whole buffer)
lw has joined #ruby
<volty>
or ping -c 10 (only ten pings)
<insaneinside>
ehh, no i meant the practical people thing
* insaneinside
is in no way practical.
<volty>
ah, i was before in the chan full of intelligent idiots, those talking about purity & math & categories & lazy & strict etc etc.
<volty>
less they know more they talk about
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
_1_begin has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
<volty>
and i was arguing // i sometimes do it for fun but this time i got really angry and disappointed
yfeldblum has joined #ruby
<insaneinside>
heh. i graduated from college with a B.S. in Physics in March... but i'm *way* better at programming.
lw_ has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
havenwood has joined #ruby
justinmburrous has joined #ruby
<volty>
yes, never get too close to haskellers, if you ever try to learn something do it by yourself only
jadedphone has quit [Read error: Connection reset by peer]
lw_ has quit [Read error: Connection reset by peer]
c107 has joined #ruby
lw_ has joined #ruby
* insaneinside
salutes volty.
<volty>
:)
<insaneinside>
Well-said, sir.
Channel6 has joined #ruby
jadedphone has joined #ruby
Kricir_ has quit [Remote host closed the connection]
tokik has joined #ruby
justinmburrous has quit [Remote host closed the connection]
lw has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
justinmburrous has joined #ruby
rshetty has joined #ruby
krisquig_ has joined #ruby
<volty>
pompous pure time-losers, their libs are nightmare, and it isn't fault of the language only (nice, intriguing), building idiot arrow operators around, just for the sake of extracting xml ...
krisquigley has quit [Read error: Connection reset by peer]
<volty>
and i stop here, because too late, out of topic, out of common sense
lw_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
lw has joined #ruby
skammer2 has joined #ruby
kobain has quit [Read error: Connection timed out]
krisquigley has quit [Read error: Connection reset by peer]
lw has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
lw has joined #ruby
kobain has joined #ruby
chipotle has joined #ruby
reinaldob has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
kobain has quit [Max SendQ exceeded]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
yfeldblum has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
kobain has joined #ruby
skammer2 has quit [Ping timeout: 246 seconds]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
beef-wellington has joined #ruby
echooo has quit [Ping timeout: 250 seconds]
<shevy>
insaneinside what language did you use for physicx? python?
krisquig_ has quit [Read error: Connection reset by peer]
neonixcoder has quit [Quit: Leaving.]
krisquigley has joined #ruby
<shevy>
I think a huge reason why ruby does not have great scientific libraries is because there simply aren't that many people doing those kind of things altogether, and most who do tend to e. g. be python guys who also often know C++
<insaneinside>
shevy: that's a popular one. The astronomy folks (same roof) used IDL and Python for image-processing
<shevy>
hmm IDL? libidl?
<insaneinside>
shevy: well, also AFAIK Ruby has no native support for double-precision floating-point
<insaneinside>
no, the IDL language
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
<eam>
insaneinside: uh, what do you call 1.0 + 1.0 ?
NoNMaDDeN has joined #ruby
<insaneinside>
eam: is this about IC circuits and ATM machines?
<insaneinside>
eam: two. Why?
<eam>
double-precision floating-point
emergion has quit [Quit: Connection closed for inactivity]
<eam>
2.0, fwiw
krisquig_ has quit [Read error: Connection reset by peer]
* insaneinside
is confused, but that's okay.
krisquigley has joined #ruby
<eam>
you said ruby didn't have native support?
<insaneinside>
I thought it only had single-precision (i.e., `float`)
<eam>
Floats are doubles
tobago has quit [Remote host closed the connection]
<omosoj>
i don't have an ee or cs background so i'm just trying to conceptualize how software/hardware work together
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
monkeypatch has joined #ruby
<sklik>
imagine you're an electron flowing through a semiconductor (magic schoolbus style)
lw has quit [Read error: Connection reset by peer]
bentanwe_ has quit [Remote host closed the connection]
<eam>
omosoj: it really depends on the kind of hardware. For example software is just data that the processor reads and processes/executes
lw has joined #ruby
crazydiamond has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
<eam>
everything else is built on this. For example software might have instructions to tell the CPU to put data in memory. Or to send a signal to a particular device like a mouse
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
sklik, heh, that's exactly what i want
lw has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
echooo has joined #ruby
krisquigley has joined #ruby
<omosoj>
but what reads the instructions?
<eam>
the CPU
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
software like /usr/bin/ruby is just a set of CPU instructions
<insaneinside>
At the physical level, it really *is* like a bunch of machinery -- only with spooky action-at-a-distance thanks to electrostatic forces. (Trust me I'm a Physicist. ;)
bricker`work has quit [Ping timeout: 245 seconds]
<eam>
in ruby's case, it happens to be a collection of CPU instructions which know how to read ruby source code and generate even *more* CPU instructions
<insaneinside>
And that code is like the punchcards my father learned to program with.
tylersmith has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<omosoj>
i'm reading a book now called code that goes into how processors are many gates. don't understand it fully just trying to flesh it out
tylersmith has joined #ruby
<eam>
we call those collections of CPU instructions "compilers" (like C) when they translate human readable code to machine code. And we call them "interpreters" (like ruby) when they do it on the fly
<omosoj>
eam, okay, that makes sense
<sklik>
to go even deeper: at the heart of it are semiconducting elements; the physical "stuff" that makes up integrated circuits. These are basically a series of switches in various configurations that allow electrons to flow through them, depending on where certain currents/voltages exist
D9 has joined #ruby
narcan has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<omosoj>
sklik, yeah... so machine code works on those switches, right?
krisquigley has joined #ruby
bentanweihao has joined #ruby
michaeldeol has joined #ruby
fabrice31 has joined #ruby
<eam>
the machine code is much higher level
<omosoj>
whoa, what's between them and the physical stuff
<omosoj>
?
<sklik>
waht eam said. machine code talks in the language that the cpu can understand. shift these bits here, add these bits together, etc.
<eam>
the switches are all collected into structures that provide higher level functions like "registers" (a place to remember a value) and units which can process "opcodes" or machine instructions that act on registers
jonr22 has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
tomeara_ has quit [Quit: Computer has gone to sleep.]
krisquigley has joined #ruby
<insaneinside>
a la the punch card, which has holes (bits) in it to interact with the "mechanical" bits of the registers.
jonr22 has joined #ruby
tomeara_ has joined #ruby
iliketurtles has joined #ruby
<eam>
omosoj: it's probably easiest to start reasoning about very simple single-purpose computer circuits that can perform boolean operations
<sklik>
the syllabus is pretty much goes level-by-level up the abstraction ladder
Zettam has quit [Ping timeout: 244 seconds]
<eam>
the development of abstractions on top of abstractions has taken place over many decades. This wasn't just all invented at once
jonr22 has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
tomeara_ has quit [Ping timeout: 260 seconds]
echooo has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
slawrence00 has joined #ruby
ekinmur has quit []
<omosoj>
yeah sounds like a ton of work
echooo has joined #ruby
CodeOmegaPrime has quit [Ping timeout: 258 seconds]
lw has quit [Read error: Connection reset by peer]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
lw has joined #ruby
<omosoj>
red_menace, wow
lw has quit [Max SendQ exceeded]
lw has joined #ruby
jgrevich_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
GriffinHeart has joined #ruby
jimmyhoughjr has joined #ruby
<omosoj>
they need a legend on this thing
lnormous has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 272 seconds]
<red_menace>
basicaly the bits in the CPU operational codes turn on and off all kinds of switch logic that determine what function the opcode actually performs (add, move, etc). these days you don't normally deal with those kinds of things, as they have been abstracted away by the manufacturer, and modern operating systems don't let you directly access the hardware anyway
graydot has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
<omosoj>
what is on the right? those rows.
krisquigley has joined #ruby
msmith_ has quit [Remote host closed the connection]
<omosoj>
why does the yellow go back instead of continuing
krisquig_ has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 260 seconds]
bentanweihao has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 250 seconds]
<red_menace>
the list on the right is a list of the hex codes in memory (the program) - it doesn't continue because the sample program doesn;t really do much of anything
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
msmith_ has joined #ruby
sevenseacat has joined #ruby
bricker`work has quit [Quit: leaving]
bentanwe_ has joined #ruby
krisquigley has joined #ruby
lw has quit [Quit: s]
<omosoj>
man i've learned so much in the last half hour
krisquig_ has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
krisquigley has joined #ruby
braincrash has joined #ruby
<sklik>
all aboard! beep beep, honk honk.
krisquig_ has joined #ruby
<Nilium>
Beep honk hork.
* Nilium
is a terrible drinker.
krisquigley has quit [Read error: Connection reset by peer]
<eam>
you must be dehydrated
<Nilium>
Probably.
<Nilium>
Three things of coffee (not all cups, oddly) have probably ensured I'm close to mummification.
<Nilium>
Also, cup of beer is a weird phrase, whereas mug of beer is completely normal. Glass of coffee is strange, but not cup of coffee.
<Nilium>
Mug of coffee is fine though because it's a special drink.
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<insaneinside>
Mug of you is fine because the police were asking about ... nevermind.
Celm_ has quit [Remote host closed the connection]
<Nilium>
Doubtful.
<Nilium>
It says nothing good about me that drinking doesn't affect my typing.
IceDragon has quit [Quit: Space~~~]
bentanwe_ has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
krisquigley has joined #ruby
<omosoj>
this syllabus is awesome, sklik. i just learned about nand gates
cahicks has joined #ruby
icebourg has quit []
alvaro_o_ has quit [Quit: Ex-Chat]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
<sklik>
omosoj glad you're enjoying it
cahicks has quit [Quit: leaving]
coderdad has joined #ruby
bentanweihao has joined #ruby
<Nilium>
Also, it seems like the only ruby-related emails I get these days, if they aren't recruiting for rails jobs (which doesn't apply to me) are about using OpenGL in Ruby
<Nilium>
'Cause I guess I'm the only person still doing that
krisquigley has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquig_ has quit [Read error: Connection reset by peer]
<Nilium>
.. Wrong channel, but actually worked out in this case.
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
Mia has quit [Read error: Connection reset by peer]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
bmurt has quit []
tomeara_ has joined #ruby
krisquigley has joined #ruby
arup_r has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
Altonymous has quit [Quit: Altonymous]
<omosoj>
thanks for the help everyone. gnite
omosoj has quit [Quit: leaving]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
justinmburrous has joined #ruby
jasooon has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
fold has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
red_menace has quit [Quit: peer reset by connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
Wolland has joined #ruby
justinmburrous has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
kriskropd has quit [Ping timeout: 246 seconds]
kriskropd has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
trisnti has joined #ruby
himsin has quit [Quit: himsin]
trisnti has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
GriffinHeart has joined #ruby
jasooon has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
brandonshowers has joined #ruby
codecop has joined #ruby
abuzze has quit [Ping timeout: 258 seconds]
txdv has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Ping timeout: 250 seconds]
Suchit has joined #ruby
mary5030 has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
coderdad has quit [Remote host closed the connection]
lzco has joined #ruby
otakbeku has joined #ruby
davasaur_ has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 260 seconds]
lzco has left #ruby [#ruby]
kriskropd has quit [Ping timeout: 258 seconds]
kriskropd has joined #ruby
teddyp1cker has quit [Ping timeout: 272 seconds]
txdv has joined #ruby
lw has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
davasaurous has joined #ruby
sandelius has joined #ruby
mary5030 has joined #ruby
davasaurous has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
emocakes has joined #ruby
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
lnormous has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
abuzze has joined #ruby
cndiv_afk has quit [Ping timeout: 244 seconds]
boombadaroomba has quit [Ping timeout: 245 seconds]
astav has left #ruby [#ruby]
iliketurtles has joined #ruby
yfeldblum has joined #ruby
davedev24_ has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby
bal has joined #ruby
bobishh has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
davedev24_ has joined #ruby
sanav has joined #ruby
<sanav>
i start learning OOP in ruby .During this, i meet mixin and inheritence .Can anyone tell me which one is better to use ? I read lots of articles on mixin and inheritence .They all says "use mixin over inheritence"
<suy>
sanav: then you've read the wrong ones. Are different features for different ways to solve a problem. One may be more used on average, but nothing else.
aganov has joined #ruby
aspires has joined #ruby
goodenough has joined #ruby
<sanav>
suy : I'm asking in the general way .It means i have to prefer inheritence over mixin (general case , as a norm )
c107 has quit [Remote host closed the connection]
aspires has quit [Client Quit]
davasaurous has joined #ruby
mpistone has quit [Remote host closed the connection]
<Hanmac>
sanav: for sample Enumerable or Comparable module would not work so nicely if it would be made with inheritence than mixin
<pontiki>
it's not a preference for one over the other. it's using the right tool for the right job, each time
txdv has quit [Ping timeout: 246 seconds]
<pontiki>
both are useful
<sanav>
i just watched sandi matz video at rubyconf .She said we should prefer inheritence over mixin (as a norm) . Correct me if i'm wrong
lw has quit [Quit: s]
kriskropd has quit [Ping timeout: 272 seconds]
<Hanmac>
hm an interesting point is String in the old 1.8 days ... because its both Enumerable and Comparable so it can not be done with inheritence
kriskropd has joined #ruby
<sanav>
ok
<sanav>
i think i should do some more research before asking stupid question . BTW , Thanks Hanmac
<Hanmac>
sanav: there are also more options than inheritence and mixin, there is also *try to remember the right name* instead of writing a inherited class of class A, you make class B using an object of class A as property (i think it was some kind of delegate)
bal has quit [Ping timeout: 244 seconds]
jacobat has joined #ruby
<sanav>
Hanmac: Thanks for your advise . :) Take care bro
sanav has quit [Quit: Page closed]
t_p has quit [Ping timeout: 245 seconds]
<pontiki>
“Now that you’ve seen examples of inheritance and composition you can begin to think about when to use them. The general rule is that, faced with a problem that composition can solve, you should be biased towards doing so. If you cannot explicitly defend inheritance as a better solution, use composition. Composition contains far fewer built-in dependencies than inheritance; it is very often
<pontiki>
the best choice.
<pontiki>
Inheritance is a better solution when its use provides high rewards for low risk. This section examines the costs and benefits of inheritance versus composition and provides guidelines for choosing the best relationship.
<pontiki>
downside of having joins/parts/quits turned off :/ upside: conversations become followable :]
<suy>
pontiki: thanks for the quote, I'm beginning as well, and is more or less what I've been reading. But useful to read it again.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ctp has quit [Client Quit]
<Hanmac>
hihi good that my pc has private logging ;P so i can review what others did tell me
<insaneinside>
just today I wrote a cute little module that defines a use_method(module, symbol) method for selective use of mixin methods... metaprogramming is fun.
eka has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
gilr00y has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 1.0.1]
Flyingdog has joined #ruby
kriskropd has quit [Ping timeout: 245 seconds]
ghostmoth has quit [Quit: ghostmoth]
kriskropd has joined #ruby
_justin has quit [Quit: _justin]
banisterfiend has quit [Ping timeout: 245 seconds]
banister has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
its specially more fun if you add xml parsing and xml generating into the mixin modules too ... like including Module A into class B does add a new section into the xml output of an object of class B
roolo has quit [Read error: Connection reset by peer]
kalleth has joined #ruby
jhass|off is now known as jhass
roolo has joined #ruby
nonks has quit [Quit: WeeChat 1.0]
tanath_ has quit [Ping timeout: 264 seconds]
nonks has joined #ruby
dangerousdave has joined #ruby
<canton7>
the normal approach is just to not define 'send'
<canton7>
also remember that 'send' is a built-in method on classes :P
kriskropd has quit [Ping timeout: 250 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kriskropd has joined #ruby
bobishh has joined #ruby
arup_r has joined #ruby
startupality has joined #ruby
<gregf_>
aah :/, ok. yeah - fair enough
<gregf_>
cool, thanks
skammer2 has quit [Ping timeout: 246 seconds]
HelperW has joined #ruby
<Hanmac>
gregf_ that posts are interesting, but the user you did respond "sanav" is offline since hours ...
fandi has joined #ruby
<gregf_>
Hanmac: yeah, indeed :/. but somebody else could get some help :/. its an interesting discussion, that
alex88_ is now known as alex88
<Hanmac>
canton7: hm no send is build-in defined on all Objects (or more specified its defined in Kernel which is included in Object, so nearly all objects does have it, except the ones inherited from BasicObject, but they have __send__)
kriskropd has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
kriskropd has joined #ruby
bobishh has quit [Ping timeout: 240 seconds]
nonks has quit [Quit: WeeChat 1.0]
dumdedum has joined #ruby
rafadc has quit [Remote host closed the connection]
<Hanmac>
gregf_ & canton7 about module and "mandatory methods" look at Enumerable with #each and Comparable with #<=> both does need them but do not extra error than the NoMethodError from the call
<canton7>
yeah I was being a bit loose with the nomenclature :P
<User458764>
shevy ok I see it but I don't know if it returns a callback for success/error after sending a mail to a recipient
fandi has quit [Remote host closed the connection]
KC9YDN has quit [Read error: Connection reset by peer]
<User458764>
My use case is for example when address doesn't exists or mispelled
<shevy>
I guess it must return a failure in this case
<shevy>
let's try
<User458764>
shevy ok I will
<shevy>
man, that has shitloads of dependencies... :\
arup_r_ has joined #ruby
jnollette has quit [Remote host closed the connection]
reinaldob has joined #ruby
jnollette has joined #ruby
bobishh has joined #ruby
<Hanmac>
shevy oO doesn't mail only need mime-types gem?
<shevy>
"ArgumentError: An SMTP To address is required to send a message. Set the message smtp_envelope_to, to, cc, or bcc address."
banjara has quit [Ping timeout: 258 seconds]
<shevy>
User458764, I think you can rescue ArgumentError in this case; perhaps it sends better errors
<shevy>
Hanmac possibly, I was trying to use "rake" to install
<shevy>
that shit then wants rspec
tanath_ has joined #ruby
rshetty has quit [Remote host closed the connection]
<shevy>
this dichotomy between rake and gem is awful
KC9YDN has joined #ruby
<shevy>
(for installing dependencies)
jnollette has quit [Remote host closed the connection]
<shevy>
AND bundler on top of that
<Hanmac>
shevy: hm rspec should only be a development dependiency
jnollette has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
dawkirst has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
wethu has joined #ruby
ringarin has joined #ruby
tanath__ has quit [Ping timeout: 264 seconds]
bobishh has quit [Ping timeout: 272 seconds]
<sevenseacat>
i didnt even know rake could install gems
<sevenseacat>
gem and bundler are starting to work closer together now
lolmaus_ has joined #ruby
<Hanmac>
sevenseacat: hm rake is more for building the gem so that gem or bundler can install it
<sevenseacat>
yeah thats what i thought
hellangel7 has joined #ruby
<Hanmac>
i for myself never used rspec, i prefer writing tests with test-unit
<sevenseacat>
i <3 rspec
ad_boot has quit [Remote host closed the connection]
<Hanmac>
hm can you short explain me when rspec is better than test-unit?
<sevenseacat>
i much prefer the rspec syntax (though expect annoys me)
lolmaus has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
mwlang has joined #ruby
bobishh has joined #ruby
<mwlang>
I’m trying to get a Rails 1.2 app running on Ruby 1.8.7 and want to change “require” so that it writes out to console each file that gets required when its called. I saw and did this before (long time ago), but can’t quite remember how to do it. Anyone know?
<mwlang>
ah, nevermind, as soon as I ask, I figure it out.
Takle has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<Hanmac>
mwlang: first: use #rubyonrails second: both rails1.2 and ruby1.8.7 are very to much outdated you should update to newer versions
kriskropd has quit [Ping timeout: 272 seconds]
bobishh has quit [Ping timeout: 250 seconds]
<mwlang>
Hanmac: why rubyonrails? this is a ruby question. And, yeah, I know its old as dirt.
JBreit has joined #ruby
kriskropd has joined #ruby
txdv_ has joined #ruby
<mwlang>
and I find that #rubyonrails helps fine with actual rails-related questions, but not so often when we’re dealing with underlying ruby issues.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has joined #ruby
coderdad has joined #ruby
txdv has quit [Ping timeout: 260 seconds]
<Hanmac>
mwlang: alias and override the "require" method and then inside look at $LOADED_FEATURES
Avahey has joined #ruby
<workmad3>
mwlang: hey, I help with underlying ruby issues in #rubyonrails just fine :P
<mwlang>
workmad3: I didn’t say ya didn’t. ;-)
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang>
Hanmac: thanks. The missing ingredient for me was “module Kernel” wrap on redefining #require. I couldn’t remember where it was until precisely 20 seconds after asking here.
jasooon has joined #ruby
xrlabs has quit [Remote host closed the connection]
<eval-in_>
Hanmac => libcrypto.so.1.0.0: cannot open shared object file: No such file or directory - /execpad/interpreters/ruby-2.1.3/lib/ruby/2.1.0/i686-linux/digest/md5.so (LoadError) ... (https://eval.in/204080)
<workmad3>
Hanmac: that assumes that all requires are going to be done on whatever the top-level object is ;)
<Hanmac>
charliesome: look "libcrypto.so.1.0.0: cannot open shared object file: No such file or directory"
beef-wellington has joined #ruby
<workmad3>
Hanmac: older rails, the 'require' will be done inside the rails stack based on 'config.gem' directives :)
vt102 has joined #ruby
<Hanmac>
oh ok i dont care what rails does "inside"
<mwlang>
I think I’ve at least discovered the root cause of my grief. rake tasks are loading “config/boot.rb” twice whereas script/server and script/console do not.
<mwlang>
$LOADED_FEATURES is new to me, though. Thanks for mentioning that
<workmad3>
Hanmac: still useful to consider how to catch all 'require' calls, not just the ones done at the top level ;)
justinmburrous has joined #ruby
MCDev has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 246 seconds]
<Hanmac>
>> $LOADED_FEATURES = []
<Hanmac>
mwlang: $LOADED_FEATURES is also the array that does prevent require from loading a file twice, so while $LOADED_FEATURES itself is a read-only variable
<eval-in_>
Hanmac => $LOADED_FEATURES is a read-only variable (NameError) ... (https://eval.in/204082)
anaeem1_ has quit [Remote host closed the connection]
fsapo has joined #ruby
<Hanmac>
mwlang: but i HIGHLY dont recommend it to "fuck" with some of ruby internal things ... yes i did it once or twice but i mostly did know what i was doing
ldnunes has joined #ruby
bobishh has joined #ruby
kriskropd has quit [Ping timeout: 245 seconds]
beef-wellington has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<charliesome>
Hanmac: interesting, maybe the eval box doesn't have openssl on it
<charliesome>
let me check
kriskropd has joined #ruby
<mwlang>
Hanmac: not so much fucking with ‘em as trying to track down why initialization/startup is different for rake tasks and server or console spin-ups so I can fix what’s broken. Such is the joy of inheriting a large app built on Rails 1.2.3 and still running in production on 1.8.6.
justinmburrous has quit [Ping timeout: 260 seconds]
<mwlang>
we’re trying to bring them into the “light” by migrating them to RoR4, but gotta start by getting everything rolling in development sandboxes.
txdv_ is now known as txdv
<shevy>
sounds boring
dangerousdave has joined #ruby
<Hanmac>
oO 1.8.6? the 80'es are calling, they want their ruby version back ;P
yfeldblu_ has quit [Remote host closed the connection]
<shevy>
oh the 80es... with modern talking
<shevy>
Hanmac loved them
BadQuanta has quit [Ping timeout: 260 seconds]
<mwlang>
Hanmac: haha, I think you’re thinking of Perl.
<Hanmac>
>< dont say their names, my ears are already bleeding again
<shevy>
Hanmac I <3 Geronimo's Cadillac
<Hanmac>
charliesome: i am more curios that "digest/md5.so" is there but the dependency libcrypto.so is not ...
<charliesome>
not sure
<charliesome>
i did compile 2.1.3 on a separate box because the eval box is too slow
<charliesome>
maybe there's something broken in how i did that
NoNMaDDeN has joined #ruby
BadQuanta has joined #ruby
dte has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
txdv has quit [Ping timeout: 246 seconds]
<Hanmac>
hm yeah maybe or you just forgot to add the ssl/cypto stuff on the box
dumdedum has quit [Quit: foo]
xrlabs has joined #ruby
txdv has joined #ruby
mastr_bennett[x] has joined #ruby
<workmad3>
charliesome: I think Hanmac may have it... libcrypto is from libssl in ubuntu, not part of the ruby build
<workmad3>
charliesome: so it's most likely just a missing package install on the box ;)
<charliesome>
libssl is already on there
<charliesome>
it's probably different versions or something silly
mastr_bennett[x] has quit [Client Quit]
easier has joined #ruby
<Hanmac>
hm i also think the box should be a 64it system instead a 32bit but thats my taste
<Hanmac>
charliesome: hm what OS is the box?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sqd has joined #ruby
<Hanmac>
hm because for me "libssl1.0.0:amd64: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0" libcrypto is part of libssl like workmad3 said
<workmad3>
well, libssl-dev :)
<charliesome>
Hanmac: 32 bit ubuntu 10.04
<charliesome>
for reasons
<workmad3>
charliesome: ah... doesn't 10.04 only have openssl 0.9.8?
<charliesome>
yeah
<Hanmac>
charliesome: hmm maybe its about the paths you did for the chroot or something? because libcrypto is in /lib and not /usr/lib ?
<charliesome>
i compiled the ruby on another 10.04 box
tvw has quit []
<workmad3>
ok... so how did you update openssl on that box to get ruby 2.0 to compile? :)
Soda has quit [Read error: Connection reset by peer]
S0da has joined #ruby
<charliesome>
ah good point i wouldn't have
<charliesome>
it would've just skipped over openssl
arup_r_ has quit [Remote host closed the connection]
pskosinski has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
matled has joined #ruby
txdv has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
tomeara_ has quit [Ping timeout: 260 seconds]
warprobot has joined #ruby
<shevy>
when I update openssl I usually recompile ruby altogether; I have had problems compiling new bindings just from ext/openssl
lw has joined #ruby
workmad3 is now known as wm3|away
tomeara_ has joined #ruby
tomeara_ has quit [Client Quit]
txdv has joined #ruby
blackratdog has joined #ruby
psmolen has quit [Ping timeout: 244 seconds]
ringarin is now known as ringaring_gone_e
ringaring_gone_e is now known as ringaring_brn
ringaring_brn is now known as ringaring_brb
rshetty has quit [Remote host closed the connection]
banjara has joined #ruby
ringaring_brb has quit [Read error: Connection reset by peer]
banister has joined #ruby
warprobot has quit [Remote host closed the connection]
robustus is now known as robustus|Off
psmolen has joined #ruby
astav has joined #ruby
qmfnp has joined #ruby
HelperW_ has joined #ruby
lolmaus__ has joined #ruby
banjara has quit [Ping timeout: 260 seconds]
GeorgesLeYeti has joined #ruby
blackratdog has quit [Quit: Leaving]
emocakes__ has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
HelperW has quit [Ping timeout: 245 seconds]
nrsk has joined #ruby
lw has quit [Quit: s]
benzrf|offline is now known as benzrf
emocakes has quit [Ping timeout: 258 seconds]
HelperW_ has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gilr00y has joined #ruby
x77686d has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
x77686d has quit [Client Quit]
AtumT has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
emocakes has joined #ruby
User458764 has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
dte has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
wsmoak has joined #ruby
wsmoak has joined #ruby
kriskropd has joined #ruby
coderdad_ has joined #ruby
gilr00y has quit [Ping timeout: 260 seconds]
coderdad has quit [Read error: Connection reset by peer]
emocakes__ has quit [Ping timeout: 244 seconds]
jerius has joined #ruby
txdv has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
txdv has joined #ruby
az has quit [Quit: WeeChat 0.4.2]
dte has joined #ruby
az has joined #ruby
robustus|Off is now known as robustus
krisquigley has joined #ruby
arup_r has joined #ruby
jespada has joined #ruby
Takle has joined #ruby
jerius has quit []
fantazo has joined #ruby
arup_r_ has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
sanav has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
Suchit has quit [Quit: Computer has gone to sleep.]
jasooon has joined #ruby
Suchit has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
<sanav>
i'm interested in writing C extension for ruby .It will help me to understand ruby better . Can anyone guide me ? I read matz C' documentation on github but its outdated and poorly written .
ringaring has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 245 seconds]
patric100e99 has joined #ruby
ringarin has joined #ruby
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
emocakes__ has joined #ruby
User458764 has quit [Ping timeout: 258 seconds]
emocakes has quit [Ping timeout: 272 seconds]
govg has joined #ruby
jimbach has quit [Remote host closed the connection]
alem0lars_ has joined #ruby
jimbach has joined #ruby
aclearman037 has joined #ruby
paulfm has joined #ruby
msmith_ has joined #ruby
dblessing has joined #ruby
jottr has joined #ruby
User458764 has joined #ruby
patric100e99 has quit [Ping timeout: 258 seconds]
doodlehaus has joined #ruby
vimer_ has quit [Quit: leaving]
shredding has quit [Quit: shredding]
<mwlang>
ah-ha — turns out that even though my project is Rails 1.2 on Ruby 1.8.7 looong before Bundler was born, rake will invoke bundler whereas script/server or script/console won’t.
txdv has quit [Ping timeout: 258 seconds]
DaniG2k has joined #ruby
taptapdan has quit [Quit: taptapdan]
shredding has joined #ruby
tesaf has joined #ruby
foooobear has joined #ruby
cpruitt has joined #ruby
lw has quit [Quit: s]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ChoiKyuSang has joined #ruby
himsin has quit [Quit: himsin]
tourne has joined #ruby
tomeara_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
banjara has joined #ruby
rkalfane has joined #ruby
yfeldblum has joined #ruby
charliesome has quit [Quit: zzz]
wethu has quit [Quit: This computer has gone to sleep]
wm3|away has joined #ruby
txdv has joined #ruby
alem0lars_ has quit [Quit: AFK..]
banjara has quit [Ping timeout: 245 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluenemo has quit [Quit: Verlassend]
cpruitt has joined #ruby
yfeldblu_ has joined #ruby
sepp2k has joined #ruby
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
larsam has quit [Ping timeout: 260 seconds]
livingstn has joined #ruby
charliesome has joined #ruby
claymore has quit [Quit: Leaving]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
dorei has joined #ruby
obscured has joined #ruby
wm3|away is now known as workmad3
Lwhite has quit [Remote host closed the connection]
marlonandrade1 is now known as marlonandrade
Takle has quit [Remote host closed the connection]
sanav has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
gilr00y has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Ping timeout: 244 seconds]
ringarin has joined #ruby
fgqvne has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
sandelius has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
HelperW_ has joined #ruby
kaspergrubbe has joined #ruby
AFKGeek has quit [Quit: Leaving]
livingstn has quit [Ping timeout: 256 seconds]
kaspergrubbe_ has joined #ruby
noop has quit [Quit: Leaving]
livingstn has joined #ruby
ChoiKyuSang has joined #ruby
kaspergrubbe has quit [Read error: No route to host]
mary5030 has joined #ruby
skammer2 has joined #ruby
stef204 has joined #ruby
Channel6 has joined #ruby
Ankhers has joined #ruby
lnormous has joined #ruby
ringaring has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
beef-wellington has joined #ruby
jimbach has quit [Remote host closed the connection]
robbyoconnor has quit [Max SendQ exceeded]
jimbach has joined #ruby
robbyoconnor has joined #ruby
jasooon has joined #ruby
jimbach_ has joined #ruby
jimbach has quit [Remote host closed the connection]
crunk_bear has joined #ruby
dte has quit [Remote host closed the connection]
anaeem1 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
anaeem1 has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
txdv has quit [Ping timeout: 250 seconds]
GeorgesLeYeti has quit [Ping timeout: 250 seconds]
Na_Klar has joined #ruby
<Na_Klar>
string[x] seems not to be binary-safe. how can I walk through non-ASCII strings byte-by-byte?
astav has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
freerobby has joined #ruby
zz_karupa has quit [Ping timeout: 250 seconds]
twohlix has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
rpag has quit [Ping timeout: 246 seconds]
jimbach_ has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
jimbach has joined #ruby
jimbach_ has joined #ruby
klmlfl has joined #ruby
bobishh has joined #ruby
easier has quit [Ping timeout: 260 seconds]
txdv has joined #ruby
cocotton has joined #ruby
blackmes1 has joined #ruby
allcentury has joined #ruby
lw has joined #ruby
MCDev has joined #ruby
freezey has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
dh64 has joined #ruby
AlexRussia has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
ixti has joined #ruby
zz_karupa has joined #ruby
mary5030 has quit [Remote host closed the connection]
obscured has quit [Quit: leaving]
mpistone has joined #ruby
zz_karupa is now known as karupa
bobishh has quit [Ping timeout: 260 seconds]
timonv^ has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
lnormous has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
dte has joined #ruby
boombadaroomba has joined #ruby
timonv^ has joined #ruby
blackmes1 has quit [Ping timeout: 245 seconds]
anarang has quit [Quit: Leaving]
txdv has quit [Ping timeout: 260 seconds]
emocakes__ has quit []
treehug88 has joined #ruby
emocakes has joined #ruby
Kricir has joined #ruby
manzo has joined #ruby
shredding has quit [Quit: shredding]
timonv_ has quit [Ping timeout: 240 seconds]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
klmlfl has joined #ruby
lolmaus has joined #ruby
treehug88 has quit [Client Quit]
devdazed has joined #ruby
cocotton has quit [Remote host closed the connection]
snath has quit [Ping timeout: 272 seconds]
aclearman037 has quit [Ping timeout: 240 seconds]
lzco has joined #ruby
Takle has joined #ruby
mleone has joined #ruby
GeorgesLeYeti has joined #ruby
aclearman037 has joined #ruby
msmith_ has quit [Remote host closed the connection]
lolmaus__ has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
livathin_ has joined #ruby
<Mon_Ouie>
String#each_byte
bal1 has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
lnormous has joined #ruby
lsone_ is now known as lsone
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl_ has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
foucist has joined #ruby
bal has quit [Ping timeout: 246 seconds]
<foucist>
anyone know of any resources for setting up a secondary production server that shadows the first one (receives same requests), so output can be compared with actual production responses?
ringaroses2 has joined #ruby
txdv has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
attamusc has joined #ruby
dx7 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
livathin_ has quit [Ping timeout: 260 seconds]
livathinos has joined #ruby
Gate has quit [Ping timeout: 246 seconds]
dx7 has joined #ruby
klmlfl has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
ozzloy has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
lolmaus has joined #ruby
skammer2 has quit [Ping timeout: 272 seconds]
lmickh has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
freerobby1 has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
freerobby has joined #ruby
ozzloy has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
<Na_Klar>
^ Mon_Ouie
GeorgesLeYeti has quit [Ping timeout: 244 seconds]
GhettoJava has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
mpistone has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 246 seconds]
justinmcp_ has joined #ruby
txdv has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
GeorgesLeYeti has joined #ruby
GhettoJava has quit [Client Quit]
sanguisdex has joined #ruby
lolmaus_ has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 240 seconds]
skammer2 has joined #ruby
yeticry has joined #ruby
schaerli has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
krisquigley has joined #ruby
nonks has joined #ruby
ep3static has joined #ruby
livingstn has quit []
GeorgesLeYeti has quit [Ping timeout: 245 seconds]
BadQuanta has quit [Ping timeout: 260 seconds]
banister has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
mpistone has joined #ruby
<sanguisdex>
so I am doing something wrong.
<sanguisdex>
I am using both the OptionParser and the ARGV array for input. My ruby ignorant minds says that I need to loop through the ARGV array first and unset any variables that start with -. But my instinct tells me this has already been overcome and there is a method for it.
krisquigley has quit [Ping timeout: 245 seconds]
astav has quit [Quit: astav]
pandaant has quit [Quit: Lost terminal]
JBreit has left #ruby ["Leaving"]
pandaant has joined #ruby
sarandosklikizos has joined #ruby
nonks has quit [Ping timeout: 260 seconds]
rkalfane has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
skammer2 has quit [Ping timeout: 272 seconds]
sarandosklikizos is now known as sklik
astav has joined #ruby
revoohc has joined #ruby
georgesmith has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mpistone has quit [Remote host closed the connection]
lnormous has quit [Ping timeout: 260 seconds]
Na_Klar has quit [Quit: Leaving.]
dangerousdave has joined #ruby
txdv has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Remote host closed the connection]
TheTopBloke has joined #ruby
ki0 has quit [Remote host closed the connection]
dmr has joined #ruby
georgesmith has left #ruby [#ruby]
ffranz has joined #ruby
ringaroses2 has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
x77686d has quit [Client Quit]
TheTopBloke has left #ruby [#ruby]
ki0 has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
<TeresaP>
I am using gsub to use a regular expression to find a substring and replace just that substring with some new text. What’s the correct syntax for getting out “some original text that didn’t match /1 some other text that didn’t match”?
cpruitt has quit [Client Quit]
<TeresaP>
(Yes I read the online documentation, but I am failing to implement it correctly)
<_br_>
TeresaP: I'm not exactly sure I understand what you want. Can you give an example?
sevenseacat has quit [Remote host closed the connection]
magic has joined #ruby
<TeresaP>
I want to have the source string be something like: Given(/^the app is (?:closed|not running)$/) do
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TeresaP>
And then use gsub to replace it with Given(/^the app is (?:<span color='red'>closed|not running</span>)$/) do
<TeresaP>
So I was doing: step_name.gsub(/(?:Given|When|Then|Before|After|AfterStep|Transform)\(.*\(\??:?(.*)\).*[)]/, "<span color='red’>\1</span>")
<waxjar>
parsing regexpes with regexpes o.O
<TeresaP>
But that gives me "<span color='red'></span> do"
<TeresaP>
waxjar I’m editing a tool that documents the expressions ;)
txdv has joined #ruby
kaspergrubbe has joined #ruby
<TeresaP>
If any of you know of a gem that can take a source string like this and spit out a color coded htmlized string that would also solve my problem...lol
Jarboe has joined #ruby
carraroj has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
<TeresaP>
(or rather a ruby class, I suppose)
Jackneill has joined #ruby
<TeresaP>
_br_ did my example make sense?
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_ is now known as Guest67197
tvw has quit []
GriffinHeart has joined #ruby
justinmburrous has joined #ruby
justinmburrous has quit [Remote host closed the connection]
cpruitt has joined #ruby
<waxjar>
TeresaP: i think you need to make it a capture group
kobain has joined #ruby
<Hanmac>
TeresaP: need more \
<Hanmac>
try "<span color='red’>\\1</span>"
abuzze has quit [Ping timeout: 250 seconds]
<waxjar>
ah, of course
schaerli has quit [Remote host closed the connection]
zorak_ has joined #ruby
<TeresaP>
wow that seems so simple
manzo has quit [Read error: Connection reset by peer]
<TeresaP>
It’s actually just returning the "<span color='red'>closed|not running</span> do"
arup_r has joined #ruby
<TeresaP>
plus ‘do’ at the end, which is weird.
<rnelson0>
the YAML file gets parsed, then later there's the poorly indented loop (sorry) that does something, not sure what, to get a list and source var from it. Can someone help explain line 18?
jottr_ has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Remote host closed the connection]
<TeresaP>
Hanmac I mean after I fixed the escaping issue
sailias has quit [Quit: Leaving.]
havenwood has joined #ruby
psy has joined #ruby
txdv has quit [Ping timeout: 246 seconds]
multi_io has quit [Ping timeout: 260 seconds]
terlar has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
IcyDragon has joined #ruby
txdv has joined #ruby
iamjarvo has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
<TeresaP>
Sorry I’m going to have to run in a sec
IceDragon has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
goodenough has joined #ruby
sailias has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cloudy9101 has quit [Remote host closed the connection]
kenneth has joined #ruby
JaMz has quit [Remote host closed the connection]
JaMz has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
JaMz has quit [Remote host closed the connection]
JaMz has joined #ruby
yfeldblum has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
gilr00y has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
TeresaP has quit [Quit: TeresaP]
bricker`work has joined #ruby
sambao21 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
St_Marx has joined #ruby
tjbiddle has joined #ruby
timonv^ has quit [Remote host closed the connection]
timonv_ has joined #ruby
robbyoconnor has quit [Excess Flood]
yfeldblum has quit [Ping timeout: 258 seconds]
robbyoconnor has joined #ruby
GriffinHeart has joined #ruby
kwd has joined #ruby
francisfish has quit [Remote host closed the connection]
aspires has joined #ruby
bbloom has joined #ruby
livingstn has quit []
banjara has joined #ruby
dangerousdave has joined #ruby
krisquigley has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
txdv has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 260 seconds]
JaMz has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
TorpedoSkyline has joined #ruby
ta__ has joined #ruby
troyready has joined #ruby
ta has quit [Read error: Connection reset by peer]
banjara has quit [Ping timeout: 260 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
fsapo has joined #ruby
maletor has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
kristofferR has joined #ruby
alex88 has quit [Quit: Leaving...]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
sk87 has joined #ruby
HelperW_ has quit [Quit: Computer has gone to sleep.]
HelperW_ has joined #ruby
Photism has joined #ruby
leizzer has joined #ruby
ptrrr has joined #ruby
jottr_ has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has quit [Quit: Leaving]
pagioss has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
nonks has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
HelperW_ has quit [Ping timeout: 245 seconds]
TorpedoSkyline has joined #ruby
sailias has quit [Quit: Leaving.]
Aaaal has quit [Quit: Aaaal]
jottr_ has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
bluenemo has quit [Client Quit]
ki0 has quit [Ping timeout: 272 seconds]
dawkirst has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 260 seconds]
Aaaal has joined #ruby
bobishh has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
robustus|Off is now known as robustus
grzywacz has quit [Ping timeout: 244 seconds]
S0da has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 272 seconds]
starkhalo has joined #ruby
suzylee has joined #ruby
kenneth has joined #ruby
bobishh has joined #ruby
cu__ has joined #ruby
alem0lars has joined #ruby
lw has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
lw has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
skolman_ has joined #ruby
lw has joined #ruby
suzylee has left #ruby ["Leaving"]
beneggett has joined #ruby
mrsolo has joined #ruby
fantazo has joined #ruby
msmith_ has joined #ruby
dte has quit [Remote host closed the connection]
twohlix has quit [Ping timeout: 250 seconds]
e1senhorn has joined #ruby
dte has joined #ruby
moritzschaefer has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
francisfish has joined #ruby
txdv has joined #ruby
jasooon has joined #ruby
msmith_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
goshdarnyou has quit [Quit: Connection closed for inactivity]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
rkalfane has joined #ruby
melik has joined #ruby
Xeago has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
<shevy>
anyone has some hints to avoid rewrites of medium to large sized projects in ruby?
tlarevo has joined #ruby
<waxjar>
do it right the first time
coderdad has quit []
lw has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
sambao21 has joined #ruby
lw has joined #ruby
<rpag>
"be a better programmer"
maestrojed has joined #ruby
tylersmith has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
txdv has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
<rpag>
shevy, just joking of course but i find it hard to answer your Q because so much context is missing
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
cocotton has joined #ruby
lkba has joined #ruby
cocotton has quit [Remote host closed the connection]
<waxjar>
idk, probably just keeping everything small and reusable. which isn't easy.
mrsolo has quit [Quit: This computer has gone to sleep]
cocotton has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
renderful has joined #ruby
psy has quit [Disconnected by services]
<Hanmac>
shevy barney would say "new is always better" ... sometimes you need to make a full rewrite to make it better
<shevy>
well the problem is
psy_ has joined #ruby
<shevy>
when at time X I start a project, I don't know at time Y how much it has changed in between over the years
neoxquick has joined #ruby
einarj has quit [Remote host closed the connection]
<shevy>
so I don't know of many other available options... I could leave a project as it is, but those things tend to just suck or rot away leading to a point where I'd rather start a new project than maintain the existing one
coderdad has joined #ruby
<Phrogz>
shevy: "Abstraction is the key". If the interface to a module/class is working, it won't actually rot, no matter how much peeking inside may smell bad.
fsapo has joined #ruby
skolman_ has quit [Remote host closed the connection]
<Phrogz>
(I have no experience that tells me that this is a correct answer, however. :p)
skolman has joined #ruby
troulouliou_dev has joined #ruby
sailias has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag>
if peeking inside sucks then maintaining it is gonna suck too
renderfu_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
banister has joined #ruby
yfeldblum has joined #ruby
thyagobr has joined #ruby
allcentury has joined #ruby
danijoo has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
rkalfane has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
tlarevo has quit []
fabrice31 has joined #ruby
tyll has quit [Ping timeout: 250 seconds]
t_mmyv has joined #ruby
havenwood has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 246 seconds]
skolman has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<Hanmac>
shevy like for me and rwx, i often do a total rewrite from the underlying, means the Ruby API does not change much, but the stuff below got different, because i added more GC protection, protection from segfaults and other stuff
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 272 seconds]
tyll has joined #ruby
rdark has quit [Quit: leaving]
txdv has joined #ruby
geggam has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<volty>
@ shevy: the only hint i can give you (for the sake of avoiding rewriting) is: throw away, erase, wipe it out
<Hanmac>
volty: yeah, print it and then burn the paper ,P
havenwood has joined #ruby
cu__ has quit [Quit: Computer has gone to sleep.]
<volty>
ahahah
<volty>
much better
fabrice31 has quit [Ping timeout: 245 seconds]
goodenough has quit [Remote host closed the connection]
<volty>
no, shevy, hanmac is right: read it, try to understand what it does, how it does, think it out, reorganize (I avoid to use re-factor term because I am afraid of teachers that could wake up here),
timgauthier has joined #ruby
nonks has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Aaaal has quit [Quit: Aaaal]
<workmad3>
volty: you mean someone pedantic may say 'is that change behaviour-preserving?' ;)
danijoo has joined #ruby
<shevy>
volty yeah, throwing away is actually something that I started doing
<shevy>
even when I eliminate some features too
<volty>
rewriting is easier, productive, and pumps you with expertize
txdv has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<shevy>
right now it pumps me with frustration and steals my time
<shevy>
this fucking thing should have been finished a week ago already
GriffinHeart has joined #ruby
HelperW_ has joined #ruby
<volty>
workmad3: yes, i remember i was quareling here with «design patterns» teachers, last night i was in the chan of intelligent idiots (#haskell) :)
momomomomo has quit [Quit: momomomomo]
GeorgesLeYeti has quit [Quit: Leaving]
dte has quit [Remote host closed the connection]
<volty>
a nightmare - much worser than some pedantic that were around here // ppl that get lost in their theories and over-production of operators, lost, will never rich ruby richness of libs & frameworks
pampuchy has joined #ruby
<Hanmac>
sometimes you are have a block in your gears and a total restart is sometimes better ... i think its the 4 or 5th time i did my new rpg_data ... currently i did to many plugins that i got caught in some funccall loop i didnt managed to resolve yet
aspires has quit []
nonks has quit [Ping timeout: 260 seconds]
HelperW__ has joined #ruby
aspires has joined #ruby
zwischenzug has joined #ruby
<volty>
yes, rewriting is just that -- not going into original to just permute the lexems
pandaant has quit [Remote host closed the connection]
<pampuchy>
hi, i cant compile my scss using foundation 5 , can anyone help me? <pampuchy> hi, does anyone here use sass/foundation? please help with my
<volty>
an appeal before i go: qtbindings got very very stable, and, so, useful: ppl, CHECK IT, TRY IT! (even if you do gui with something else, or don't do it at all)
<pampuchy>
isnt this ruby?
Rollabunna has joined #ruby
pagioss has joined #ruby
<pampuchy>
which channel should i ask in?
<Hanmac>
pampuchy: no i mean your wall-of-text before
HelperW_ has quit [Ping timeout: 260 seconds]
<pampuchy>
shit how did that happen? i am so sorry
<volty>
he is sorry ....:)
red5_ has joined #ruby
mrsolo has joined #ruby
Hobogrammer has joined #ruby
txdv has joined #ruby
Suchit has joined #ruby
arup_r has quit [Quit: Leaving.]
redgetan has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
CharlieSu has joined #ruby
<volty>
what was the irc command to query client ?
<volty>
of a user
freezey has quit [Remote host closed the connection]
bbloom has quit [Quit: Computer has gone to sleep.]
<CharlieSu>
Does Process.kill only work for processes started by the Ruby process or can I use it to send signals to any process on the OS?
HelperW__ has quit [Ping timeout: 260 seconds]
Neozonz has joined #ruby
slawrence00 has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
red5_ has quit [Client Quit]
<volty>
erc, with emacs, quite an unpolite irc client ! // bye
volty has quit [Quit: Konversation terminated!]
wjimenez5271 has joined #ruby
ki0 has joined #ruby
grzywacz has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
grzywacz has quit [Max SendQ exceeded]
Suchit has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
grzywacz has joined #ruby
<Hanmac>
if someone is interested in my problem: game actor does have abilities, that are like levelable passive skills ... then there are features that does many different things ... like adding skills or adding states likes burning or frozen or modifyng ability levels ... but the problem is that states can add features as passive stuff from them (like state burning can increase the fire damage or something), but features can add states too ... do you
doodlehaus has quit [Ping timeout: 260 seconds]
IcyDragon is now known as IceDragon
ta has joined #ruby
Takle has joined #ruby
momomomomo has joined #ruby
hippyphysicist has joined #ruby
ta__ has quit [Ping timeout: 255 seconds]
hippyphysicist has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 260 seconds]
freezey has joined #ruby
cocotton has quit [Ping timeout: 272 seconds]
freezey has quit [Client Quit]
ta__ has joined #ruby
ta has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
BadQuanta has joined #ruby
livingstn has joined #ruby
doodlehaus has joined #ruby
cocotton has joined #ruby
sandelius has joined #ruby
cocotton has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
coderdad has quit [Remote host closed the connection]
<havenwood>
CharlieSu: Any!
ptrrr has quit [Quit: ptrrr]
bayed has quit [Quit: Connection closed for inactivity]
<momomomomo>
if you’re using hoembrew, brew install redis
klmlfl has quit [Ping timeout: 255 seconds]
ghostmoth has joined #ruby
<havenwood>
Eiam: just an aside, but you can query if a gem is installed like so: gem query --installed redis
arup_r has joined #ruby
<existensil>
for debian unicies: apt-get install redis-server
<Eiam>
existensil: oh ts the redist.set from inside ruby
<momomomomo>
gem list redis
<havenwood>
or: gem q -i redis
emmesswhy has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
<Eiam>
yeah the redis gem is installed =p
<havenwood>
Eiam: os/distro?
kidoz has joined #ruby
<Eiam>
got it sorted
<Eiam>
brew install redis
<zwischenzug>
i'm using pry to set breakpoints in code (with binding.pry), and also once i'm in a debugging session with "break /path/to/file:10". is it possible to make a list of breakpoints in a file and have pry read them when it gets run?
<Eiam>
and its up now, redis-cli gets me into it
skolman has joined #ruby
<Eiam>
this is what hapepns when im busy in angular
<Eiam>
and no ruby
BadQuanta has quit [Ping timeout: 272 seconds]
<rpag>
is gem query == gem list?
nfk has quit [Quit: yawn]
<Eiam>
thank you fine gents
blu3dr0p has joined #ruby
<rpag>
zwischenzug, nah i dont think so, you'd probably want to parse the code
jasooon has joined #ruby
<rpag>
look for 'binding.pry' calls and take note of file/line num
<havenwood>
rpag: nope, just a more obscure cmd
RichardLitt has joined #ruby
redgetan has joined #ruby
nfk has joined #ruby
<havenwood>
rpag: the basis for the list command
<havenwood>
and search
<rpag>
huh
<zwischenzug>
i don't really want to litter my source with binding.pry commands
<rpag>
'You should really use the list and search commands instead. This command is too hard to use.'
<havenwood>
was about to say, just saw that
yokel has quit [Ping timeout: 260 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
<rpag>
i found it as hard to use as 'gem list' but w/e :)
<havenwood>
This command is too hard to use. You are insance.
blu3dr0p has quit [Remote host closed the connection]
<havenwood>
strange thing for a command to say
ta has joined #ruby
<havenwood>
doesn't seem harder than gem search or gem list to me, dunno
<rpag>
ditto
yokel has joined #ruby
autonomousdev has joined #ruby
<rpag>
'gem search' seems to have the default i want: search remote.
<havenwood>
afaik gem list doesn't have a way to specify *only* for the exact name
timgauthier is now known as timgauthier_isaw
<havenwood>
at least `gem query` returns exact true/false and return status
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BadQuanta has joined #ruby
ta__ has quit [Ping timeout: 272 seconds]
<havenwood>
ohhh
Suchit has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
<rpag>
gem query is bit funky for me
<havenwood>
i assumed it did exact... which turns out to not be the case
<havenwood>
so nevermind.
<havenwood>
`gem search -i` too, i just assumed poorly
<havenwood>
i swear a saw an issue ticket on this issue on rubygems, but i don't recall the resolution
<havenwood>
if any
robustus is now known as robustus|Off
Asher has joined #ruby
<rpag>
possible resolution: less commands that do almost exactly the same thing
arup_r has quit [Ping timeout: 255 seconds]
<havenwood>
ha
<havenwood>
and rather than warning that query is useless, don't expose it or make it useful
floating8 has quit []
pampuchy has joined #ruby
cocotton has quit [Remote host closed the connection]
yokel has quit [Remote host closed the connection]
iamayam has quit [Ping timeout: 250 seconds]
yokel has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
Morkel_ is now known as Morkel
<havenwood>
there are some neat gem commands though
<pampuchy>
sorry i was disconnected, did anyone answer my question?
emmesswhy has quit [Quit: This computer has gone to sleep]
hrs has joined #ruby
himsin has joined #ruby
<havenwood>
pampuchy: you lost me at npm :P
TheTopBloke has joined #ruby
vircung has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<havenwood>
pampuchy: Rails? #rubyonrails
yfeldblum has joined #ruby
<havenwood>
pampuchy: nope, i didn't see any answers
skolman has quit [Remote host closed the connection]
beneggett has joined #ruby
skolman_ has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
cu__ has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
Spami has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otakbeku has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
dangerousdave has joined #ruby
nonks has joined #ruby
freerobby has quit [Quit: Leaving.]
skolman_ has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
ki0 has joined #ruby
TheTopBloke has joined #ruby
sambao21 has joined #ruby
JaMz has quit [Remote host closed the connection]
TheTopBloke has quit [Client Quit]
cu__ has quit [Quit: Computer has gone to sleep.]
nonks has quit [Ping timeout: 244 seconds]
mpistone has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
danijoo has joined #ruby
ki0 has quit [Ping timeout: 250 seconds]
<rpag>
sheepman, 'Bla' is defined for anything inside foo.rb, but there's no scope diff
<rpag>
woops
<rpag>
shevy ^
Spami has quit [Quit: This computer has gone to sleep]
jasooon has joined #ruby
sambao21 has quit [Client Quit]
livingstn has quit [Ping timeout: 256 seconds]
TeresaP has joined #ruby
ndrei has joined #ruby
gilr00y_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
<TeresaP>
Hello again, folks
enebo has quit [Quit: enebo]
<havenwood>
hiya
cocotton has quit [Remote host closed the connection]
<havenwood>
Friday! \o/
treehug8_ has joined #ruby
alem0lar1 has joined #ruby
<TeresaP>
woot woot :)
chrishou_ has joined #ruby
<TeresaP>
I'm using step_name.gsub(/(?:Given|When|Then|Before|After|AfterStep|Transform)\(.*\(\??:?(.*)\).*[)]/, "<span color='red'>\\1</span>") for the input "Given(/^the viewer is (?:closed|not running)$/) do" and it is spitting out "<span color='red'>closed|not running</span> do" rather than "Given(/^the viewer is (?:<span color='red'>closed|not running</span>)$/) do". Any clue why?
treehug88 has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 260 seconds]
elaptics is now known as elaptics`away
chrishough has quit [Ping timeout: 245 seconds]
JoeGaudet has joined #ruby
jack_rabbit has joined #ruby
<havenwood>
TeresaP: Seems you wanted: "\\0<span color='red'>\\1</span>"
fabrice31 has joined #ruby
<havenwood>
TeresaP: err, hem, not quite right either
<TeresaP>
yeah...
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<TeresaP>
I thought gsub was supposed to find a match and then replace the match inline
cocotton has joined #ruby
icarus has joined #ruby
geggam has quit [Ping timeout: 244 seconds]
Eiam has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shlant has left #ruby [#ruby]
claymore has quit [Quit: Leaving]
oleo__ has quit [Quit: Verlassend]
fabrice31 has quit [Ping timeout: 250 seconds]
carraroj has joined #ruby
sambao21 has joined #ruby
skammer2 has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
jbueza has joined #ruby
gilr00y has joined #ruby
larissa has joined #ruby
x77686d has quit [Quit: x77686d]
pskosinski_ has joined #ruby
oleo has joined #ruby
ctp has joined #ruby
skammer2 has quit [Ping timeout: 245 seconds]
JaMz has joined #ruby
patrick99e99 has joined #ruby
gilr00y has quit [Remote host closed the connection]
davedev24_ has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GPH|work has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
cocotton has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
tlarevo has quit [Remote host closed the connection]
skammer2 has joined #ruby
tlarevo has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
dmr has quit [Quit: Leaving]
beef-wellington has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
dmr has joined #ruby
ndrei has joined #ruby
davedev24_ has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
Asher has quit [Quit: Leaving.]
russt_ has joined #ruby
Asher has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
coderdad has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 260 seconds]
tlarevo has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
postmodern has joined #ruby
chrishou_ has quit [Read error: Connection reset by peer]
<shevy>
it can
gtc|ghost has quit [Remote host closed the connection]
suzy[gone] has joined #ruby
ndrei has joined #ruby
renderful has joined #ruby
spacemud has quit [Ping timeout: 244 seconds]
spacemud has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
anarang has joined #ruby
davedev24_ has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
skammer2 has quit [Quit: WeeChat 1.0]
x77686d has joined #ruby
nonks has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
endash has quit [Quit: endash]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bbloom has joined #ruby
benzrf is now known as benzrf|offline
carraroj has quit [Quit: Konversation terminated!]
modernbob has quit [Quit: Konversation terminated!]
Nilium has joined #ruby
<omosoj>
i'm on wikipedia now
coderdad has quit [Remote host closed the connection]
<rpag>
omosoj, its suppose to be more maintainable and let you build abstractions
<omosoj>
it makes the language more programmer friendly... how does it being oo do that?
<omosoj>
rpag, abstraction = class?
<havenwood>
omosoj: "I thought of objects being like biological cells and/or individual computers on a network, only able to communicate with messages..." ~Alan Kay
bluehavana has joined #ruby
icebourg has quit []
<rpag>
yeah, a class is a good example
lw_ has quit [Quit: s]
<rpag>
i dont think oo is more programmer friendly, but ruby is definitely programmer friendly because its easy to learn
<omosoj>
what other kinds are there?
carraroj has quit [Quit: Konversation terminated!]
GriffinHeart has joined #ruby
freerobby has joined #ruby
beneggett has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
havenwood, hmmm, i like the metaphor but still don't ge tit
<omosoj>
so ruby has all these classes of things. when you write your program you instantiate some of them depending on what you want to do
workmad3 has joined #ruby
icebourg has joined #ruby
<omosoj>
and those objects interact with each other based on a bunch of other code that's lower level... is that right?
<havenwood>
omosoj: OO is a somewhat nebulous term. I think what its creator had in mind is closer to how the internet works or the actor pattern than what we tend to think of as OO langs.
<havenwood>
omosoj: Ruby's object model isn't particularly simple but it's elegant in some ways.
anaeem1 has joined #ruby
thsig has quit []
<omosoj>
did alan kay invent oo?
<workmad3>
omosoj: yeah
<workmad3>
and it was more on the idea of cellular automata than the fairly rigid class-based model of e.g. java and C++
x77686d has joined #ruby
<rpag>
and ruby?
momomomomo has quit [Quit: momomomomo]
<workmad3>
think more smalltalk and 'everything is a message', or yeah erlang with actors
GriffinHeart has quit [Ping timeout: 244 seconds]
<workmad3>
rpag: ruby is closer to smalltalk and message-passing IMO
robbyoconnor has joined #ruby
<workmad3>
but it can still be a bit class-focussed at times, but not enough that I'd lump it into the same category as java :)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
robbyoconnor has quit [Remote host closed the connection]
MCDev has quit [Ping timeout: 250 seconds]
pgmcgee has quit [Ping timeout: 260 seconds]
<workmad3>
erlang actors are probably the closest to cellular automata though... everything is an asynchronous signal between actors, even the response to another signal
<omosoj>
is what i wrote above accurate? i'm trying to conceptualize all this stuff in the right way. ruby is essentially a set of classes of things you can instantiate, each of which have a behavior.
<workmad3>
omosoj: I missed some of your original description, I'm afraid
<workmad3>
omosoj: your description seems rather more static and classist than ruby really is, I suspect
<havenwood>
AR45: Depends on the version of Ubuntu.
<workmad3>
omosoj: seems more like a description of the class-model in java than ruby :)
robbyoconnor has joined #ruby
<AR45>
havenwood, 14.04
<omosoj>
workmad3, yeah.
<omosoj>
havenwood, i'm familiar with that
gtc has joined #ruby
carraroj has joined #ruby
j2p2 has quit [Ping timeout: 245 seconds]
<havenwood>
omosoj: So you understand that the Class of Module is Class whose Superclass is Module whose Superclass is Object?
<workmad3>
I <3 ruby :D
<omosoj>
heh, that part looked scary
lw has joined #ruby
<workmad3>
omosoj: to me, that part show's that ruby is fundamentally more object-focussed than class-focussed :)
GriffinHeart has joined #ruby
<AR45>
workmad3, why?
<workmad3>
omosoj: a class is an instance of Class, so classes are objects... Class is itself an instance of Object, so Class is an object...
<workmad3>
everything resolves down to objects rather than classes
gregf has joined #ruby
<omosoj>
i was gonna add modules to my summary, but i guess i gotta understand this complex relationship here
freerobby has quit [Quit: Leaving.]
<omosoj>
workmad3, ahhh, i see
<workmad3>
omosoj: in the kingdom of ruby, Object is king ;) (as long as you ignore BasicObject....)
<havenwood>
AR45: not sure, i think `ruby` is 2.0 now? to get a full install you'll need to do `ruby-dev` package. there's a brightbox ppa for ruby2.1, but i don't *think* 2.1's in debian stable yet.
<workmad3>
havenwood: there's the ruby-full package now I think
<havenwood>
AR45: They do it like: ruby1.9-dev ruby2.0-dev ruby2.1-dev
j2p2 has joined #ruby
<havenwood>
workmad3: how's that different that -dev? even more stuff?
sepp2k has quit [Quit: Konversation terminated!]
<workmad3>
havenwood: I think it was introduced when there was still separation between e.g. ruby-openssl (and also ruby-openssl-dev) and the like
<workmad3>
tbh, that separation could still be there too
coderdad has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
<havenwood>
"For many good reasons, the Ruby programming language is split in many small different packages." ha!
<workmad3>
but I believe that ruby-full is a way to get everything that can be classed as 'standard ruby' in one package
<havenwood>
to confuse ALL THE PEOPLE
<workmad3>
it is good reasons... for package dependency reasons
<workmad3>
it's just really bad reasons for creating a development environment or setting up an arbitrary app outside of package management
spacemud has quit [Ping timeout: 272 seconds]
<omosoj>
how does class both inherit from module and module inherit from class?
GriffinHeart has quit [Ping timeout: 260 seconds]
gtc has quit [Quit: kill -9 gtc]
<workmad3>
omosoj: Class inherits from Module, Module is an instance of Class
<havenwood>
modularity sure, but having the `ruby` package not be a practically working Ruby seems to be the source of ongoing confusion and needed explaination
<workmad3>
omosoj: so it's not an inheritance loop
robbyoconnor has quit [Quit: Konversation terminated!]
<havenwood>
workmad3: i don't disagree with the principle so much as the package naming
<workmad3>
havenwood: :D
mike32 has quit [Read error: Connection reset by peer]
<workmad3>
havenwood: I guess it would have been better if 'ruby' was everything, then things like 'ruby-core' for the bare-bones, 'ruby-openssl', 'ruby-zlib', etc.
ramfjord has joined #ruby
<havenwood>
that'd be lovely
brandonshowers has joined #ruby
<workmad3>
havenwood: you go and complain to the debian package maintainers then ;)
* havenwood
scuttles away
x77686d has quit [Quit: x77686d]
<Hanmac>
for sample IF you install a ruby gem as debian package instead of a gem itself you dont need ruby-dev because its precompiled
<omosoj>
so does class inherits methods and constants from module and add other stuff?
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
omosoj: pretty much
wsmoak_ has joined #ruby
wsmoak_ has joined #ruby
mike32 has joined #ruby
tlarevo has joined #ruby
<havenwood>
Hanmac: do people really use the package manager gems? i've never actually done that.
spacemud has joined #ruby
<havenwood>
Hanmac: it works and stuff? :O
TorpedoSkyline has joined #ruby
<omosoj>
awesome, i might understand some of this now
RichardLitt has joined #ruby
<Hanmac>
havenwood: i didnt do it myself but yes it does work ... they updated all the packages recently ... it even has pry as debian package
jbueza has joined #ruby
alem0lars has quit [Quit: alem0lars]
<havenwood>
Hanmac: take that RubyGems! stab stab!
<havenwood>
Hanmac: interesting...
<omosoj>
why make everything inherit from object, instead of class or something?
reinaldob has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
what does inheritance from object give?
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
and is inheritance full inheritance? ie basically a clone with extra stuff
<shevy>
object is a class
ndrei has quit [Ping timeout: 240 seconds]
<havenwood>
omosoj: well Object mixes in Kernel whose Class is Module whose Superclass is Object
<omosoj>
"well Object mixes in Kernel whose Class is Module whose Superclass is Object
fsapo has quit [Remote host closed the connection]
<havenwood>
workmad3: i'm accusing him of being a seahorse!
<omosoj>
" rofl
<workmad3>
shevy: the very best of us are born from swirlies :P
gtc has joined #ruby
rismoney1_ has joined #ruby
<omosoj>
Hanmac, i get it in a practical sense, but don't feel like i have a deep understanding
<workmad3>
omosoj: it does get rather cyclical in ruby's foundations ;)
reinaldob has quit [Ping timeout: 250 seconds]
<workmad3>
omosoj: if you think about it... the main focus of an OO setup is that you are dealing with objects
<havenwood>
workmad3: yeah, not a workable insult >.>
n_blownapart has joined #ruby
<workmad3>
omosoj: by making everything* an object, you make everything* stuff that can be played around with
<shevy>
swinies?
<wsmoak>
so… I can write stuff that works, but it’s basically java without the semicolons. who wants to do a ‘thinking in ruby’ exercise on my connect four game ?
<workmad3>
*everything in this case meaning 'almost everything' or 'everything with certain provisos'
<omosoj>
workmad3, ah, is that what's unique about oo? you can modify all the objects?
<thoraxe>
hmm.. so i am trying to work with net/ssh and need a "tty". I read that you could use request_pty but that is associated with a channel. if I use irb and do the following, I get an error
<havenwood>
omosoj: For a nice example of how you might do namespaces, encapsulation and such nicely without OO you might take a look at Clojure.
<workmad3>
omosoj: there are many approachs to 'OO' in general
<havenwood>
remove one of those nices
<workmad3>
omosoj: it gets rather philosophical and pedantic at times ;)
iceden has quit [Read error: Connection reset by peer]
bafbomb has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anarang has quit [Quit: Leaving]
dmr has quit [Quit: Leaving]
n_blownapart has quit []
claw has joined #ruby
coderdad has joined #ruby
weems|mac has quit [Quit: bai]
<thoraxe>
if i wanted to both .each across an array of strings and increment a counter, how would I do that?
dogweather has joined #ruby
<thoraxe>
i know you can do stuff like .each do |k, v| but i'm not sure how to do the before the each
cu__ has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
<thoraxe>
i want to do something like ["foo","bar","baz"].each do |thing, position| and be able to reference the integer position in the array, if that makes any sense
qhartman has joined #ruby
decoponyo has joined #ruby
volty has joined #ruby
grzywacz has quit [Quit: :wq]
<Hanmac>
thoraxe: each_with_index ?
<thoraxe>
ooh duh
geggam_ has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 272 seconds]
boombadaroomba has joined #ruby
<thoraxe>
Hanmac++
decoponio has quit [Ping timeout: 244 seconds]
tvw has quit []
klaut_ has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
<Hanmac>
hm what would be the nicest way to write a rake task for test-unit or rspec?
<jhass>
thoraxe: since you described the solution you think you need and not your problem, it's impossible to tell, but you might also be interested in each_cons, each_slice or inject
danijoo has quit [Read error: Connection reset by peer]
<jhass>
Hanmac: rspec provides a helper for that, RSpec::RakeTask or something, let me look it up
klaut has quit [Ping timeout: 258 seconds]
redgetan has quit [Quit: This computer has gone to sleep]
danijoo has joined #ruby
mary5030 has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
wethu has quit [Quit: This computer has gone to sleep]
Wolland_ has quit [Remote host closed the connection]
tomeara_ has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
ringaring has joined #ruby
CodeOmegaPrime has joined #ruby
dogweather has quit [Remote host closed the connection]
omosoj has joined #ruby
Neozonz has quit [Read error: Connection reset by peer]
Neozonz has joined #ruby
Neozonz has joined #ruby
Neozonz has quit [Changing host]
sklik has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
fabrice31 has quit [Ping timeout: 258 seconds]
ringaroses2 has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 240 seconds]
kawaguchi has quit [Quit: Leaving]
Sawbones has joined #ruby
icebourg has quit []
klmlfl has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
Lewix has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
<trehg>
crome thanks its the very details I want :P
<trehg>
hehe
<trehg>
o well I can solve it somehow
Neozonz has quit [Ping timeout: 244 seconds]
omosoj has quit [Ping timeout: 240 seconds]
jasooon has joined #ruby
CodeOmegaPrime has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 255 seconds]
snath has quit [Ping timeout: 246 seconds]
x77686d has joined #ruby
JaMz has quit []
Limix has quit [Quit: Limix]
x77686d has quit [Client Quit]
<sfire||work>
trehg: we use nginx -> unicorn at work
yokel has quit [Remote host closed the connection]
<trehg>
same
danijoo has quit [Read error: Connection reset by peer]
<trehg>
unicorn does work nginx gives error
julieeharshaw has quit [Remote host closed the connection]
jottr has joined #ruby
danijoo has joined #ruby
Sawbones has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 245 seconds]
julieeharshaw has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
ringaring has quit [Ping timeout: 258 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
ptrrr has quit [Quit: ptrrr]
yetanotherdave has quit [Quit: Lost terminal]
<trehg>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful * Reloading nginx configuration nginx [fail]
<trehg>
sfire||work: maybe you could gist sample nginx config when u get a moment?
<workmad3>
trehg: check your nginx logs
echevemaster has joined #ruby
<sfire||work>
in the unicorn.rb we have listen '/var/run/unicorn/reachconvert.sock’, and nginx has server unix:/var/run/unicorn/reachconvert.sock fail_timeout=0;
<gizmore>
exception handling in ruby is good, and it is fun to use the pattern
<volty>
which pattern ?
<gizmore>
using exceptions to handle conditions that can be handled, but not by this line of code
<gizmore>
well... to me, ruby does a great job with exceptions
jcxau has joined #ruby
<pipework>
People who use exceptions for flow control upset me a great deal.
<crome>
pipework: +1
<gizmore>
all methods raise them nicely, and it´s fun to use them
jcxau has left #ruby [#ruby]
<pipework>
Who cares if it's fun? You're doing it wrong.
<pipework>
Read Exceptional Ruby from Avdi Grimm first.
<gizmore>
i phrased my intentions wrongly
<shevy>
it's no use gizmore
<shevy>
pipework now has your balls
klaut_ has quit [Remote host closed the connection]
attamusc has quit [Quit: Connection closed for inactivity]
<pipework>
The only times I use exceptions that way is when it's really difficult to do it without the exception. Like checking if a string contains only an integeer. :(
<gizmore>
maybe some look at my first big private ruby project, and find some real balls?
<volty>
throw them away, do not allow haskell-like weirds to exceptionalize ruby !
<shevy>
I don't like ! methods in general actually - I do use them for stuff like object.strip! or so, because it is faster than object = object.strip
<gizmore>
important is to use no passive development
<shevy>
volty, if you don't love haskell, benzrf will hate you
<gizmore>
def to_foobar; FoobarParser.parse(self); end
<shevy>
bzw benzrf you are even famous in #gobolinux :-)
<pipework>
What is 'passive development'?
<shevy>
<Oejet> That benzrf dude...
<volty>
looking forward to explain to him ... :)
<Chinaski>
check
krisquigley has quit [Ping timeout: 246 seconds]
<gizmore>
pipework: the foobarparser above is non-passive / offensive development
<shevy>
volty what did you learn when you dived into haskell actually?
<shevy>
I mean, like really *learn* - something that made you a wiser man
<pipework>
gizmore: I don't know what that's supposed to mean.
<gizmore>
pipework: now the defensive dev: def to_foobar; Parser.parse(self) rescue nil; end
<volty>
i learned that 1) haskell is too pure for our impure world 2) haskell is much better than haskellers
<crome>
I'm going to sleep the hell out of this night
<crome>
g'bye
<volty>
3) there are too many intelligent idiots
<pipework>
gizmore: Can you explain using words what it means instead of using ruby to try and infer meaning?
<gizmore>
pipework: it is defensive, because the to_foobar tries to handle exceptions and do everything right... defensive tries to handle everything everywhere.... the ruby way is more offensive. it just works, and if not an exception is raised without most stuff not catching anything
<waxjar>
the defensive dev is an evil dev
dbslone has joined #ruby
<gizmore>
and that´s what i meant with the exception pattern used nicely in ruby
yokel has joined #ruby
<gizmore>
everything raises nicely, but nothing really catches. giving you the flow
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
<gizmore>
and if you catch something somewhere, it is probably defensive, and not the ruby way
<gizmore>
s/probably/maybe
qhartman has joined #ruby
<volty>
exception is exception, exception pattern is a degeneration of design
RichardLitt has quit [Quit: RichardLitt]
chrishough has quit [Ping timeout: 260 seconds]
<gizmore>
so exceptions are implemented nicely in ruby, and it´s fun to use them.... and i mean raising, not catching :)
<pipework>
gizmore: Oh so what you mean is defensive not passive?
<gizmore>
i am not good with the terms there
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
It's okay, I just didn't understand the phrase.
<gizmore>
but i mean that, yes... passive/defensive
<pipework>
gizmore: I bet you'll enjoy reading a lot of stuff from Avdi Grimm.
dx7_ has joined #ruby
<gizmore>
i am an autodidact
<gizmore>
i never read... i only code and guess things
<gizmore>
i make assumptions, and prove / disprove them
<shevy>
that's a valid way to learn
<gizmore>
and i use stackoverflow and google to find snippets
<shevy>
I never read manuals either
<gizmore>
and use the docs too... but rarely :)
<volty>
he is using exceptions instead of <if> :)
RichardLitt has joined #ruby
<shevy>
ok gizmore that is bad
<shevy>
if/else is shorter than begin/rescue
<gizmore>
volty was joking ;)
<volty>
if true boom else go on ... till the next boom :)
RichardLitt has quit [Client Quit]
sfire||work has quit [Quit: sfire||work]
<shevy>
ok volty don't use exceptions like that
<volty>
no no, it must be that, i am not joking :)
<pipework>
gizmore: Ah, see I'm an autodidact, but I read and consume a lot.
<shevy>
I can contest this
<gizmore>
shevy: no, it is global threadcount
<shevy>
pipework reads every documentation he can find
brandonshowers has joined #ruby
<pipework>
And source codes.
<gizmore>
other people codes are often bad
dx7 has quit [Ping timeout: 250 seconds]
<pipework>
Almost always.
<gizmore>
i once read an article about doom sourcecode
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy>
it is hard to create high quality code
<gizmore>
it exactly was, what elegant and good code is
<gizmore>
short methods (1 screen rule)
<gizmore>
consistent
<gizmore>
oneliner methods for getter/setter/easy stuff
dx7_ has quit [Ping timeout: 272 seconds]
<gizmore>
good comments
<pipework>
one screen rule?
<pipework>
Lol.
<gizmore>
a method should not span more than 20 lines
jasooon has joined #ruby
<volty>
10 neurons enough rule ?
<gizmore>
good luck finding methods with more than 20 lines in my projects
ghr has joined #ruby
<pipework>
That doesn't necessarily mean you have good code.
<waxjar>
that Thread.execute method is well over 20 lines..
<pipework>
It just means that you may have a deep hierarchy of hopefully single-minded methods.
<gizmore>
waxjar: i picked a snippet of my project that i dislike atm
Takle has quit [Read error: Connection reset by peer]
<shevy>
gizmore whether you use oneliner-methods or 3-liner-methods really makes barely any difference
jontmorehouse has joined #ruby
<shevy>
def foo; @foo; end
<shevy>
or ^^^ 3 lines... big difference?
<gizmore>
waxjar: also 20 lines was arbritary ... "1 screen rule" is not bad though
Soda has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
<pipework>
shevy: ; counts as newlines + 1
<pipework>
gizmore: My screen fits way more than 20 lines in it.
<gizmore>
shevy: the less you need to scroll, the better... coding is also about organizing your code and project. if you put some easy getters at top, it is no loss
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
<volty>
one-liners are better as long as others (and you after some time) can decipher them easier than the 3 lines
<gizmore>
shevy: also grouping methods is a good coding practice, i usually mark groups with 3 lines of ##### GROUP ######
<pipework>
gizmore: Comments are an admission of weakness unless they're rdoc comments
<gizmore>
volty: yeah, my one-liners are not good coding practice maybe
<pipework>
The length of methods matter a lot less than the clarity of the code being expressed.
<shevy>
gizmore scrolling alone is not the only metric - if my eyes have to go only up-down then that is much better than having to go left-right as I scroll up-and-down at the same time
<waxjar>
if find that if you need to group methods, you might want to abstract them to a class
<gizmore>
pipework: can you teach me howto rdoc please?
jonmorehouse has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
<shevy>
the main focal point of a method is the method body's content
<pipework>
gizmore: Nope, but rdoc's docs can show you how to document using rdoc.
mary5030 has joined #ruby
<shevy>
rdoc is so awful
<pipework>
Some people like yard.
<pipework>
I like rdoc because it comes with ruby.
<shevy>
gizmore I found that grouping method often does not give me a lot of extra information - I do tend to use tags though
chrishough has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<gizmore>
shevy: as i don´t use anything else to organize...yet
<shevy>
gizmore like: # This method will nuke away all temporary directories created at startup (nuke tag); def nuke
<gizmore>
thanks to ruby, the code works often better than expected... a shocking experience when you come from php
<volty>
so, for an auto-«booting» app, better to have the boot loop in bash or in ruby ?
<gizmore>
volty: "Auto booting?"
<volty>
an app that changes its code, let's say
VanillaGoat__ has quit [Ping timeout: 246 seconds]
nonks has joined #ruby
<volty>
.
<gizmore>
my chatbot does code reload at runtime
<gizmore>
simply using load file.rb
<volty>
all the code ?
cleopatra has joined #ruby
<gizmore>
yes
<volty>
in case of error, falls back to previous ?
<zlude>
Hello guys, I'm new in ruby/rails and i'm trying to encourage a friend to learn ruby, but he is saying that php is better, faster, etc etc. What do you guys think about that? can i provide a little benchmark to test than? php vs ruby.
kriskropd has joined #ruby
<existensil>
hahahaha
Sgeo_ has joined #ruby
<gizmore>
volty: good question... if a file fails you can get inconsistent state
<pipework>
gizmore: load isn't code-reloading.
<pipework>
Not cleanly.
<gizmore>
i know... it´s monkeypatching
<pipework>
It's just throwing shit at the wall.
<existensil>
zlude: trying to benchmark php vs ruby is already missing the point
<waxjar>
there's a nice article on code-reloading, one sec ill check my bookmarks
<gizmore>
loading is monkeypatching an empty world
<wallerdev>
zlude: usually ruby/rails devs are more concerned about finishing their site in half the time and having an easy to maintain site vs how fast the code runs, since well your slowest part is probably going to be DB calls
<volty>
no, i have no prob, i have some ideas. You think that the main loop that is to decide what to boot next would be better in ruby / bash ?
<pipework>
Not really. Monkeypatching has a specific definition.
<existensil>
zlude: that said, ruby should fair relatively well against PHP in benchmarks, but its mostly apples to oranges
<gizmore>
volty: define booting?
<wallerdev>
php and ruby arent particularly speedy but it doesnt matter for web dev really
jonr22 has joined #ruby
<pipework>
Mmm jruby.
<existensil>
PHP is almost exclusively a web scripting language, ruby is a full blown dynamic programming language
<gizmore>
zlude: show him the "php - a fractal of bad design"
lw has quit [Quit: s]
<gizmore>
PHP is just bad... the support is bad, the libs are bad, the language is bad
<existensil>
ruby docs are better, the language is cleaner and more expressive, the community is better, and its just more fun
<gizmore>
ruby is slim and elegant, the integration with ecosystems is better and it has less problems
<wallerdev>
php isnt the worst thing in the world, if i had shared hosting and only need like a 2 page site with a contact form id be okay with using it haha
bricker`work has quit [Quit: leaving]
<wallerdev>
but anything substantial id stay away from php
<volty>
gizmore: getting out of the app, completely, whether by error or because new one is available. As in booting in linux but an external shell (in ruby or bash) is to decide which version to boot (depending on the last result of running it)
<gizmore>
php has no threading, no code reload at runtime
<existensil>
a weak REPL
<existensil>
if any
<gizmore>
volty: maybe use a cronjob?
<volty>
php candida trollens
<gizmore>
i did php 5 years
<existensil>
yeah, I coded in PHP almost exclusively for 6 years
<wallerdev>
i did php for 30 years
<existensil>
I know they have since gained a few new tricks, but its still not something I would ever willingly go back to
Sgeo has quit [Ping timeout: 255 seconds]
<gizmore>
i would not recommend it as weapon of choice, unless the example above (free hosting and a small page or two)
<pcflmb>
hey all, problem with rails and I'm hoping you can help: I put 'twilio-ruby' in my gemfile, bundle install worked fine... I can require it from irb just fine... but when it's required in a controller i get a LoadError
<pipework>
It's time to move onto a more grown up programming language. PHP isn't it.
<pipework>
pcflmb: Show the Gemfile
<volty>
no, let's think, the app (it's a qt) checks for new versions (of itself) with a timer or FileWatcher ... and exits with a certain code (or writing in a certain state file) when new version is avail
<gizmore>
php surely taught me about webapps... but it´s not a very good language and ecosystem
chouchen has joined #ruby
chouchen has quit [Excess Flood]
chouchen has joined #ruby
<existensil>
I actually learned solid OOP design patterns and principals in PHP... and afterwards discovered that is the wrong language to do that in