Darryl___ has quit [Quit: Connection closed for inactivity]
<_1_zeid>
hi
<sandelius>
I have some weird problem with minitest expectations. Before I always used obj.must_be_instance_of Foo but now it raises "wrong number of arguments (1 for 2..3)". I'm using 2.2 and I can't find any refrrence to this change. any ideas?
_1_zeid has quit [Client Quit]
<sandelius>
Feels like he's trying to use the assert type?
d5sx43 has quit [Ping timeout: 245 seconds]
lampd1 has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
psy_ has joined #ruby
lampd1 has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
nobitanobi has joined #ruby
zellio has joined #ruby
redballoon7762 has quit []
hvxgr has joined #ruby
Abhijit has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
roshanavand has joined #ruby
d10n-work has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rgrinberg has left #ruby [#ruby]
Channel6 has quit [Quit: Leaving]
Aova has joined #ruby
Abhijit has joined #ruby
<toothe>
so, i just DL'ed ruby using rvm...it gave an old version of ruby
LudicrousMango has quit [Remote host closed the connection]
<agent_white>
toothe: What command did you give rvm to download ruby?
<wasamasa>
and more importantly, it allows you a few different things, such as throwing RE into the mix
<apeiros_>
ton31337: 1..-1
<blizzy>
so I have two instances of the same class running. they both share a set of methods. is there a way to find out which instance called the method?
rkgudboy has joined #ruby
<ton31337>
thanks
ton31337 has left #ruby [#ruby]
<apeiros_>
blizzy: pass the instance as an argument
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<apeiros_>
or well, if the method is called on the object itself, just use self
<poikon>
ton31337: a.slice(1..-1)
ferr has quit [Remote host closed the connection]
<blizzy>
I'll explain this more. I'm making a bot. I can run two bots at the same time, however, they'll both be at different locations. they both have a set of commands. I want to be able to keep their command data different.
<apeiros_>
"at different locations"?
<apeiros_>
so they're not even running on the same machine?
<blizzy>
they both are running on the same machine, but like for example, if I run two bots, both will log the chat. if one is running in #ruby and the other in #python, I don't want the one in #python to use logs from the one in #ruby and vise versa
ta_ has joined #ruby
<apeiros_>
*vice versa
mostlybadfly has joined #ruby
<blizzy>
thanks
<agent_white>
eep
FlyingChicken has joined #ruby
jlast has joined #ruby
<apeiros_>
blizzy: well, read out in which channel it is running
<apeiros_>
I don't know the architecture of your bot and I don't intend to read through your whole project just to figure that
<agent_white>
Maybe I need to make another nick to ask questions like this... In the channels I ask I don't get helpful feedback :(
phutchins has joined #ruby
<apeiros_>
agent_white: that's the C code, the implementation. that's not the bytecode. the bytecode is generated after parsing your ruby code.
freedollars has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
livingstn has joined #ruby
<agent_white>
apeiros_: Ahhh! So can I "generate the bytecode" to compare the two like my buddy was suggesting?
<apeiros_>
yes
<freedollars>
What is the best way to pass data from a class method to an instance method? I wouldn't want to set an instance variable from the class method, right?
<apeiros_>
freedollars: you couldn't anyway
<apeiros_>
freedollars: why don't you pass it as an argument?
jlast has joined #ruby
<freedollars>
apeiros_: the argument residing in the instance method or class method?
<apeiros_>
freedollars: hu?
<agent_white>
apeiros_: I hate to ask... but any tips on keywords to look for? I'm attempting google-fu but only turning up results about jruby and rubinius
<apeiros_>
agent_white: ask your buddy?
mrmargolis has quit [Ping timeout: 244 seconds]
<apeiros_>
agent_white: RubyVM class I believe
<agent_white>
apeiros_: When I asked him that same question you answered for me first, he just said "maybe"
<apeiros_>
freedollars: an argument does not "reside" anywhere. arguments are passed.
<agent_white>
So I'm hesitant to ask.
<agent_white>
:(
bronson has joined #ruby
<freedollars>
apeiros_: right, i mean would i pass the argument to the instance or class method in your suggestion?
<agent_white>
Sometimes #learnprogramming doesn't offer help to learn programming. :P
<apeiros_>
freedollars: your question makes no sense to me
<agent_white>
apeiros_: Thank you, I'll look into it :) I appreciate it!
<apeiros_>
freedollars: you asked "What is the best way to pass data from a class method to an instance method?"
sigurding has quit [Quit: sigurding]
ptrrr has joined #ruby
<apeiros_>
freedollars: and I tell you "as an argument"
phutchins has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 245 seconds]
<apeiros_>
oh dear, this is difficult. album has many images through album_images. image has many resized_images. and now I need an sql query to select the best sized resized_images of an album.
<freedollars>
apeiros_: here's an example: http://pastebin.com/cn8eyZup -- you can see that I want to use the results from the private method (or class method) in the instance class
<apeiros_>
too bad some advanced sql techniques are not available in all db's. maybe that's the moment I should switch this thingy from sqlite to pg.
<apeiros_>
freedollars: use gist.github.com and I'll take a look.
bronson has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
<apeiros_>
freedollars: there is no class method in this code
<freedollars>
apeiros_: right, I had changed it to a private method in this example. Would the method be different with a priv method?
astrobunny has joined #ruby
<apeiros_>
freedollars: are you new to ruby/programming? it seems to me you're wildly confusing concepts which makes it hard for me to figure where to even begin.
<freedollars>
apeiros_: not well versed in OOP, I must not be explaining this right, sorry for the confusion.
<apeiros_>
freedollars: so in the code you gisted, what exactly is your problem? (because that code has *nothing* to do with "how do I pass data from class method to instance method")
x77686d has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
hgl has quit [Read error: Connection reset by peer]
<freedollars>
apeiros_: i'm just trying to figure out what is the /right/ way to get results from a private or class method into an instance method. since I wouldn't set an instance variable with those two methods. would I just call it like `results = priv_method` from the instance method?
<apeiros_>
freedollars: private and class methods have *nothing* to do with each other.
<apeiros_>
they are not related in any way.
rkornmeyer has left #ruby [#ruby]
<apeiros_>
and you usually get *results* from a method by its return value.
<apeiros_>
and yes, that's `somevar = somemethod(…)`
<freedollars>
so if i have a class method, i shoudn't set some instance variables for its result, i should just call that from an instance method and load the results into a local variable of the instance method?
<apeiros_>
really, you're making a mess of concepts. I strongly suggest you read some book about ruby 101.
hgl has joined #ruby
<freedollars>
apeiros_: will do more research, thanks for the help.
akas has joined #ruby
<apeiros_>
and I can't answer that last question due to that mess. it makes no sense. or make an actual example involving a class method.
timonv has joined #ruby
fabrice31 has joined #ruby
ta_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
fedexo has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
SolarSailor has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
hgl has joined #ruby
CustosLimen has joined #ruby
abuzze has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
siso has quit [Quit: siso]
Aova has quit [Read error: Connection reset by peer]
freedollars has quit []
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fedexo has quit [Read error: Connection reset by peer]
<apeiros_>
hah, got it
<apeiros_>
only 2 subselects and a join away. that's almost harmless :D
Troy^ has joined #ruby
fedexo has joined #ruby
akas has quit [Quit: Leaving]
akas has joined #ruby
akas has quit [Client Quit]
Aova has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
akas has joined #ruby
akas has quit [Read error: Connection reset by peer]
Guest15 has joined #ruby
akas has joined #ruby
it0a has joined #ruby
pontiki has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
tus has joined #ruby
zarubin has joined #ruby
lampd1 has quit [Remote host closed the connection]
lampd1 has joined #ruby
<apeiros>
"ActiveRecord: 2.9ms" to load the full gallery :D
DadoCe has joined #ruby
<apeiros>
3 queries - load the album, load the previews, load the full sized images
<apeiros>
should have said "to load the full album" (but the gallery atm only has a single album, so it's correct to a degree)
zarubin has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jgt has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivex has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
16WAAB1WX is now known as thesheff17
enebo has joined #ruby
jlast has joined #ruby
jgt has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 246 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
it0a has quit [*.net *.split]
SpenQ has quit [*.net *.split]
mityaz has quit [*.net *.split]
cvtsx1 has quit [*.net *.split]
yeticry has quit [*.net *.split]
davidhq has quit [*.net *.split]
Guest61723 has quit [*.net *.split]
dimaursu16 has quit [*.net *.split]
jefus has quit [*.net *.split]
graft has quit [*.net *.split]
helpa has quit [*.net *.split]
Guest8927 has quit [*.net *.split]
wldcordeiro_ has quit [*.net *.split]
timmmaaaayyy has quit [*.net *.split]
iceden has quit [*.net *.split]
rfi_ has quit [*.net *.split]
oddraisi1 has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Takumo has quit [*.net *.split]
peterhu has quit [*.net *.split]
xp_prg has quit [*.net *.split]
Luyt has quit [*.net *.split]
n88 has quit [*.net *.split]
ValicekB has quit [*.net *.split]
crazysim has quit [*.net *.split]
linduxed has quit [*.net *.split]
nisstyre has quit [*.net *.split]
gnarf has quit [*.net *.split]
livcd_ has quit [*.net *.split]
matrixise has quit [*.net *.split]
bashusr has quit [*.net *.split]
Drakevr has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
dualbus has quit [*.net *.split]
kaspergrubbe has quit [*.net *.split]
wmoxam has quit [*.net *.split]
mahlon has quit [*.net *.split]
krisleech has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
ptierno_ has quit [*.net *.split]
blindsight has quit [*.net *.split]
zemlya has quit [*.net *.split]
Riking has quit [*.net *.split]
akkad has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
lea has quit [*.net *.split]
rcs has quit [*.net *.split]
iwishiwerearobot has joined #ruby
peteyg has quit [*.net *.split]
jlast has quit [Ping timeout: 245 seconds]
graft has joined #ruby
graft has joined #ruby
ptierno has joined #ruby
rfi has joined #ruby
wmoxam has joined #ruby
livcd has joined #ruby
oddraisin has joined #ruby
Drakevr has joined #ruby
cvtsx1 has joined #ruby
peteyg has joined #ruby
n88 has joined #ruby
elyoung has joined #ruby
billy_ran_away has joined #ruby
xp_prg has joined #ruby
Luyt has joined #ruby
jefus has joined #ruby
_KaszpiR_ has joined #ruby
iceden has joined #ruby
peterhu has joined #ruby
blindsight has joined #ruby
davidhq has joined #ruby
wldcordeiro_ has joined #ruby
mityaz has joined #ruby
zemlya has joined #ruby
yeticry has joined #ruby
yeltzooo has joined #ruby
blindsight is now known as Guest99078
crazysim has joined #ruby
helpa has joined #ruby
dimaursu16 has joined #ruby
SpenQ has joined #ruby
kaspergrubbe has joined #ruby
justinmcp has joined #ruby
mahlon has joined #ruby
jlast has joined #ruby
kaspergrubbe is now known as Guest30307
linduxed has joined #ruby
lea has joined #ruby
thesheff17 has quit [Disconnected by services]
rcs has joined #ruby
nisstyre has joined #ruby
stef204 has quit [Ping timeout: 252 seconds]
dualbus has joined #ruby
ryotarai has joined #ruby
bronson has joined #ruby
x77686d has quit [Read error: Connection reset by peer]
timmmaaaayyy has joined #ruby
michael_mbp has joined #ruby
Takumo has joined #ruby
iwishiwerearobot has quit [Ping timeout: 252 seconds]
digifiv5e has joined #ruby
x77686d has joined #ruby
bashusr has joined #ruby
akkad has joined #ruby
krisleech has joined #ruby
digifiv5e is now known as Guest9617
freerobby has quit [Quit: Leaving.]
thesheff17_ has joined #ruby
Macaveli has joined #ruby
matrixise has joined #ruby
et09 has joined #ruby
gnarf has joined #ruby
<et09>
how do i sort an array of objects with another array with their keys in order?
<et09>
best practices
Riking has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<apeiros>
et09: create a hash {obj => index} from your ordered array. then use ary.sort_by
<apeiros>
et09: also "array of objects" is redundant. every array is an array of objects (except an empty one, I guess)
<et09>
array of hashes *
bronson has quit [Ping timeout: 245 seconds]
<apeiros>
s/{obj => index}/{key => index}/
tunaCanBruh has joined #ruby
mkaesz has joined #ruby
* apeiros
brb
Takle has joined #ruby
Vivex has joined #ruby
withnale__ has joined #ruby
ValicekB has joined #ruby
Megtastique has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has joined #ruby
ta_ has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
aapole has joined #ruby
livingstn has quit [Ping timeout: 264 seconds]
Guest30307 is now known as kaspergrubbe__
Troy^ has quit [Ping timeout: 250 seconds]
ta_ has quit [Ping timeout: 265 seconds]
abuzze has joined #ruby
sankaber has joined #ruby
it0a has joined #ruby
IrishGringo has joined #ruby
juanpablo_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
guest56474 has joined #ruby
ptrrr has quit [Quit: ptrrr]
ptrrr has joined #ruby
greenbagels has joined #ruby
tokik has joined #ruby
xaxisx has joined #ruby
cwood has joined #ruby
Aova has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
Spami has joined #ruby
freerobby has joined #ruby
<cwood>
I'm trying to find what I would do to "killall -9" some copies of a running script, but if I "killall -9 ruby" it would take out other running ruby processes. Google-fu is failing me. Any hints, possibly?
plashchynski has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
russt has quit [Quit: russt]
<wasamasa>
use pgrep to find the processes in a better way
m8 has joined #ruby
xaxisx_ has joined #ruby
<cwood>
I thought so, but doing 'pgrep randogg' does not list the process in question.
knut has joined #ruby
<cwood>
Whereas 'pgrep ruby' does.
<pontiki>
you should have gotten the process id out of that
<cwood>
If ps -ef | grep randogg lists "ruby /home/cwood/files/git/home/bin/randogg -rv", 'pgrep randogg' doesn't find me a pid. Maybe if I pick the full path?
<cwood>
Nope, pgrep isn't finding that.
xaxisx has quit [Ping timeout: 250 seconds]
<pontiki>
ps -ef should
<pontiki>
it's usually the 2nd column after the user
blackmesa has quit [Ping timeout: 245 seconds]
elyoung has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
Akagi201 has joined #ruby
mrmargolis has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
Xiti has quit [Quit: Xiti]
Megtastique has quit []
<cwood>
At this point I'm more trying to find out how I could set a better process name. Perl for some reason lets me refer to the process by the 'randogg' name, but I'd rather do it in ruby.
fgo has quit [Quit: WeeChat 1.1.1]
jottr has joined #ruby
dc_ has joined #ruby
dc_ has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
Xiti has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
TL has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
mrmargolis has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
Rollabunna has joined #ruby
yellowgh0st has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<pontiki>
cwood: try setting $0 to the name you want to use
havenwood has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
<cwood>
I tried it, I got "no process found".
tekk has quit [Ping timeout: 264 seconds]
<pontiki>
in your randogg script??
jottr has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 252 seconds]
Ivision has quit [Ping timeout: 252 seconds]
<cwood>
Yes, $0 = 'randogg' right below all the requires
yosafbridge has quit [Quit: Leaving]
<pontiki>
idk, works for me
<pontiki>
sure you got the right kind of quotes?
SpenQ has quit [Remote host closed the connection]
<cwood>
Hm, I'm 1.9.3. I'll try updating and see if my behaviour is different.
<pontiki>
i'll try it on 2.2.0
<pontiki>
i don't think i have a 1.9.3 to try it on
tjohnson has joined #ruby
jlast has joined #ruby
Takle has quit [Remote host closed the connection]
Guest85426 is now known as _chs_
<catsoup>
are you sure you actually need kill -9, too? i know this isn't your main question but it's generally not a good idea if you can avoid it.
Ivision has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
<cwood>
In this case it doesn't harm persistent state or anything, and I've had the script get stuck due to my own (ahem) skill, so I'm good with -9 for now.
arietis has joined #ruby
<waxjar>
just tried it out, pgrep doesn't list it for me either (on both 1.9.3 and 2.2.0), but grep -x | grep "randogg" works fine :)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<waxjar>
os x, this is
AdNauseaum|tWork has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
et09 has quit [Quit: leaving]
ta_ has joined #ruby
towski_ has joined #ruby
<waxjar>
pgrep "ruby" on the other hand, works fine :p
<cwood>
Interesting, cwood and waxjar don't see it, pontiki doesn't have this issue.
plashchynski has quit [Quit: plashchynski]
<cwood>
pontiki, what's your OS version?
yellowgh0st_ has joined #ruby
<cwood>
I see the same behaviour with an interpreter set to '#!/home/cwood/.rvm/rubies/ruby-2.2.0/bin/ruby', so I suspect the issue isn't ruby but underlying system behaviour.
yosafbridge has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
yellowgh0st has quit [Ping timeout: 240 seconds]
<pontiki>
os/x
<pontiki>
i have ubu14.04 on a vm, let me try that
AlexRussia has quit [Ping timeout: 244 seconds]
crazydiamond has joined #ruby
DrCode has quit [Remote host closed the connection]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
cwood: try pkill -f randogg
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<cwood>
Tried it already, it kills my editor session with randogg.rb open. :p
iamninja has quit [Remote host closed the connection]
<cwood>
(As well as the original target.)
gawd has joined #ruby
lioninawhat has joined #ruby
<waxjar>
i suppose you can only give it a cosmetic kinda title, like $0 does. after all you're invoking the ruby binary
AlexRussia has joined #ruby
<waxjar>
you could store a pidfile (a file with the processes' pid in it) or output the pid before sending it off to the background if it's a deamon
iamninja has joined #ruby
marcdel has joined #ruby
<waxjar>
then use the pidfile / pid to kill the process
<cwood>
I think I might just end up using Process.pid instead of killing by name.
aryaching has joined #ruby
thsig has quit [Remote host closed the connection]
<cwood>
Thank you both for your help, I'm definitely closer to the naming thing.
giuseppesolinas has joined #ruby
arietis has joined #ruby
apurcell has joined #ruby
mrmargolis has joined #ruby
Ivision has quit [Read error: No route to host]
tunaCanBruh has joined #ruby
iamninja has joined #ruby
Ivision has joined #ruby
hiyosi has joined #ruby
AlexRussia has quit [Excess Flood]
<pontiki>
yeah, i'm stumped, unless do a bit more commandline-fu
AlexRussia has joined #ruby
plashchynski has joined #ruby
<cwood>
It doesn't sound like a ruby thing, though. I'm going to ask stackoverflow and work up some stub examples, see if anybody knows what gives.
davedev24_ has joined #ruby
<pontiki>
cool. i'd be interested in knowing
jgt has quit [Ping timeout: 265 seconds]
apurcell has quit [Ping timeout: 264 seconds]
mloveless has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 264 seconds]
<cwood>
I mean, rather, that I get the same behaviour from killall after using Process.setproctitle.
maximski has quit [Read error: Connection reset by peer]
maximski_ has joined #ruby
<havenwood>
cwood: Maybe I didn't follow the issue. Is it something other than the process title not being visible to the ps command?
ta_ has joined #ruby
<cwood>
If I have something like https://gist.github.com/anonymous/1709ad1025858d3ebe4d I have to "killall ruby" rather than "killall progname". Trying to figure out how I would set the process so that it can be killed by name not interpreter.
<havenwood>
cwood: Process.setproctitle works for me
astrobunny has quit [Remote host closed the connection]
it0a has quit [Ping timeout: 245 seconds]
<cwood>
With the killall capability? That's two it works for, and two it doesn't. Odd.
<havenwood>
cwood: OS X? Should work. It's system dependant, but yeah BSDs should work.
<havenwood>
cwood: I have success from 2.1 and 2.2.
x77686d has quit [Ping timeout: 265 seconds]
zachrab has joined #ruby
JoshGlzBrk has joined #ruby
waynerade has joined #ruby
pontiki has quit [Remote host closed the connection]
<cwood>
I get "no process found" with 2.2.0.
<waxjar>
killall works here too yea, even with $0 and 1.9.3 :)
<cwood>
killall (PSmisc) 22.19
<cwood>
If you do a killall --version?
jlast has joined #ruby
yeticry has quit [Quit: leaving]
ta_ has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 244 seconds]
FlyingCh` has joined #ruby
elyoung has joined #ruby
fantazo has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
plashchynski has quit [Quit: plashchynski]
iwishiwerearobot has joined #ruby
<cwood>
Okay, brain spasm. Must go rest. Thank you all, I will resume later.
cwood has quit [Quit: leaving]
<atmosx>
aloha
FlyingChicken has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
Alina-malina has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 250 seconds]
yellowgh0st_ has quit [Quit: yellowgh0st_]
iwishiwerearobot has quit [Ping timeout: 255 seconds]
pontiki has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
<shevy>
hey atmosx
<atmosx>
hey shevy
towski_ has quit [Remote host closed the connection]
roshanavand1 has quit [Quit: roshanavand1]
Guest99078 has quit [Changing host]
Guest99078 has joined #ruby
Guest99078 is now known as blindsight
blackoperat has quit [Ping timeout: 245 seconds]
thebastl has joined #ruby
roshanavand has joined #ruby
mrmargolis has quit [Remote host closed the connection]
lioninawhat has quit [Remote host closed the connection]
mrmargolis has joined #ruby
droidburgundy has joined #ruby
Channel6 has joined #ruby
jlast has joined #ruby
sigurding has joined #ruby
TL has joined #ruby
mrmargolis has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
russt has joined #ruby
<arup_r>
shevy: I'm creating my own pattern
<arup_r>
:(
ptrrr has quit [Quit: ptrrr]
jlast has quit [Ping timeout: 245 seconds]
russt has quit [Client Quit]
Timba-as has joined #ruby
IrishGringo has joined #ruby
zachrab has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 252 seconds]
jimms has joined #ruby
zzzbra has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
stef204 has joined #ruby
rajeshchawla has joined #ruby
jgt has joined #ruby
juanpablo_ has joined #ruby
ta_ has joined #ruby
akas has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xaxisx__ has joined #ruby
<shevy>
yay!
OrbitalKitten has joined #ruby
<shevy>
you are on the way to enlightenment
mtlatif__ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
xaxisx_ has quit [Ping timeout: 256 seconds]
slawrence00 has joined #ruby
Kruppe has quit [Ping timeout: 245 seconds]
Barrayar has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
mudtose has joined #ruby
enebo has quit [Quit: enebo]
plashchynski has joined #ruby
towski_ has joined #ruby
mkaesz has quit [Remote host closed the connection]
Kruppe has joined #ruby
p3ery has joined #ruby
tunaCanBruh has joined #ruby
SolarSailor has joined #ruby
oleo is now known as Guest90722
oleo__ has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
YamakasY has quit [Excess Flood]
pika_pika has quit [Ping timeout: 245 seconds]
p3ery_ has joined #ruby
kalusn has quit []
Troy^ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
Guest90722 has quit [Ping timeout: 246 seconds]
p3ery has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 250 seconds]
kalusn has joined #ruby
gsd has joined #ruby
Stoge88 has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
YamakasY has joined #ruby
Guest9617 has quit [Ping timeout: 246 seconds]
roshanavand has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
renier has joined #ruby
wallerdev_ has joined #ruby
phutchins has joined #ruby
Aova has joined #ruby
digifiv5e has joined #ruby
<arup_r>
shevy: that's a blessing or cursing... :)
digifiv5e is now known as Guest83659
<arup_r>
?
<shevy>
dunno
<shevy>
if you get wiser then it surely must be a good thing
lampd1 has quit []
renier_ has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
apurcell has joined #ruby
ZoanthusR has joined #ruby
shellfu_dies has quit [Remote host closed the connection]
marr has quit []
yfeldblum has joined #ruby
Spami has joined #ruby
<pontiki>
the truth will set you free, but at first it will piss you off and not let you free until it's done with you
wallerdev_ has quit [Ping timeout: 245 seconds]
SOLDIERz_ has quit [Quit: Be back later ...]
n008f4g_ has quit [Remote host closed the connection]
Spami has quit [Client Quit]
phutchins has quit [Ping timeout: 245 seconds]
yellowgh0st has joined #ruby
waynerade has quit [Read error: No route to host]
apurcell has quit [Ping timeout: 246 seconds]
marr has joined #ruby
Spami has joined #ruby
Takle has quit [Remote host closed the connection]
astrobunny has joined #ruby
sigurding_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
sigurding has quit [Ping timeout: 252 seconds]
sigurding_ is now known as sigurding
ta_ has joined #ruby
Dai-chan has quit [Remote host closed the connection]
Number2 has quit [Quit: leaving]
icharlie has joined #ruby
jgt has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
DEA7TH has joined #ruby
Biohazard has joined #ruby
Biohazard is now known as Guest75588
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
icharlie has quit [Ping timeout: 245 seconds]
lyuben_ has quit [Quit: This computer has gone to sleep]
Trynemjoel has quit [Quit: Quitting]
Trynemjoel has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
Stoge88 has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
<shevy>
hahaha
mistermocha has joined #ruby
roshanavand has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
apurcell has quit [Ping timeout: 255 seconds]
jgt has quit [Quit: WeeChat 1.0.1]
arietis has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
droidburgundy has joined #ruby
mudtose has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
agent_white is now known as agent_pizzaman
_Andres has quit [Read error: Connection reset by peer]
mloveless has joined #ruby
_Andres has joined #ruby
poguez_ has joined #ruby
apurcell has joined #ruby
Seth__ has joined #ruby
juanpablo_ has joined #ruby
selaruvicheck has joined #ruby
sankaber has joined #ruby
rbennacer has joined #ruby
selaruvich has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
skj3gg has joined #ruby
lioninawhat has joined #ruby
comma8 has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
zzzbra has joined #ruby
<patrick99e99>
hey ruby buddies... I have a ruby project I am working on, and I just upgraded to ruby 2.2, and when I use rake now, my path no longer has my gems in it, so the various require statements are broken. If I use bundle exec rake, then it appears the paths are there. I am a bit confused by this, and wondering how I can get have my gems in the path without using bundle exec
apurcell has quit [Ping timeout: 256 seconds]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
gokulnath has joined #ruby
gokulnath has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
gokulnath has joined #ruby
gokulnath has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
gokulnath has joined #ruby
roshanavand has joined #ruby
Aova has quit [Read error: Connection reset by peer]
elyoung has quit [Ping timeout: 245 seconds]
apurcell has joined #ruby
gokulnath has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 255 seconds]
astrobunny has quit [Remote host closed the connection]
rajeshchawla has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 255 seconds]
Aova has joined #ruby
allen has joined #ruby
gokulnath has joined #ruby
apurcell has quit [Ping timeout: 245 seconds]
rajeshchawla has joined #ruby
<allen>
Hi everyone. Why does this method returns false? { book_1 = "A Wrinkle" book_2 = "A Brief History of Time" return book_1 < book_2 } book_1 is shorter than book_2
gokulnath has quit [Read error: Connection reset by peer]
comma8 has joined #ruby
iwishiwerearobot has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
gokulnath has joined #ruby
JoshGlzBrk has joined #ruby
gokulnath has quit [Read error: Connection reset by peer]
<miah>
patrick99e99: try 'bundle install'
iwishiwerearobot has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
Seth__ has quit [Remote host closed the connection]
<havenwood>
allen: Well, I guess those docs are actually referring to the `'10' > '1' #=> true` scenario, but read the docs. ^ To compare the String sizes compare the #size.
Takle has joined #ruby
<allen>
havenwood: thanks .- i think i understand now
tier has joined #ruby
<apeiros>
"read the docs"++
<apeiros>
more people should do that…
mrmargolis has quit [Ping timeout: 244 seconds]
xaxisx__ has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
allen has quit [Quit: Page closed]
Azure has quit [Quit: My MBP went to sleep.]
jlast has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
DadoCe has quit [Remote host closed the connection]
Lingo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
zarubin has joined #ruby
tejas-manohar has joined #ruby
Buttons840 has joined #ruby
jonr22 has joined #ruby
oleo__ has quit [Quit: Verlassend]
Buttons840 has left #ruby [#ruby]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
razieliyo has joined #ruby
Pharaoh2 has joined #ruby
syn- has quit [K-Lined]
tunaCanBruh has joined #ruby
fenzil has quit [Ping timeout: 245 seconds]
zarubin has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 264 seconds]
oleo has joined #ruby
<dopie>
weaksauce,
<dopie>
ugh
<dopie>
im still struggling
Takle has joined #ruby
<dopie>
oh wait
<dopie>
holdon
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Read error: No route to host]
<bonhoeffer>
i’m in need of a little guidance — i’m making a new gem (first one) and the template had a module in the main.rb file — what is best practice, to put a class in there?
CpuID2 has quit [Quit: This computer has gone to sleep]
Lemur has quit [Ping timeout: 245 seconds]
AlexRussia_ has quit [Ping timeout: 246 seconds]
dc has quit [Remote host closed the connection]
<weaksauce>
tejas-manohar probably not the best idea in general
<tejas-manohar>
*let me rephrase "Since the version inside of /usr/local/bin/curl was producing the error, I decided to copy the files from /usr/bin/curl into /usr/local/bin/curl . That was it, everything works fine now." from StackOverflow
<tejas-manohar>
^ is that `cp /usr/bin/curl /usr/local/bin/curl`
<weaksauce>
don't do a -rf unless you know you need to
Troy^ has joined #ruby
<tejas-manohar>
weaksauce: so rm /usr/local/bin/curl ?
<weaksauce>
yes
<tejas-manohar>
ok now how do i install
<tejas-manohar>
curl --version now says that file doesn't exist (as it shouldn't)
Megtastique has joined #ruby
<tejas-manohar>
like /usr/local/bin/curl doesn't exist
<tejas-manohar>
is my PATH messed up
<weaksauce>
sure it should
<weaksauce>
yeah your path is messed up
<havenwood>
tejas-manohar: check?: brew doctor
<weaksauce>
/usr/bin should be on your path
<tejas-manohar>
havenwood: brew doctor reports nothing, friend says he fixed everything there
ohaibbq has quit [Read error: Connection reset by peer]
<tejas-manohar>
havenwood: he said he followed many many rails install guides and things kept failing so maybe he messed something up in process
<havenwood>
tejas-manohar: from a fresh terminal?: which curl
marcdel has joined #ruby
ohaibbq has joined #ruby
<weaksauce>
you could also type rehash
RomanSu has quit [Quit: Verlassend]
reinaldob has quit [Ping timeout: 245 seconds]
<havenwood>
tejas-manohar: which \curl
<tejas-manohar>
got it
<tejas-manohar>
works
<havenwood>
whew
<tejas-manohar>
new terminal woohoo
<tejas-manohar>
yeah that was weird
<tejas-manohar>
lol i love IRC, apparently he's been banging his head against a wall for a month on this issue
ta_ has quit [Ping timeout: 252 seconds]
Megtastique has quit [Client Quit]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus has quit [Remote host closed the connection]
jonr22 has joined #ruby
<tejas-manohar>
havenwood: one question from me, when do i use sudo when installing a gem?
kyb3r_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
kyb3r_ has joined #ruby
<tejas-manohar>
i've read some tutorials suggesting this but i know with npm i just moved the prefix to ~ and then i don't use sudo for globally installed modules anymore because it's in a directory my user has read/write to
athan has joined #ruby
Barrayar has joined #ruby
<atmosx>
tejas-manohar: not with rvm
<atmosx>
tejas-manohar: without rvm you should otherwise will be a pain to use that path for apps
<atmosx>
sudo will isntall gems system-wide
<havenwood>
tejas-manohar: It just depends on where the gems are configured to install. Like atmosx points out, most folk who use a Ruby version switcher choose a user local location for gem installs.
ta_ has joined #ruby
charliesome has quit [Quit: zzz]
<havenwood>
tejas-manohar: just don't use `sudo` with RVM, you'll likely be dropping env and using system Ruby
<atmosx>
system wide ruby is good only if the system is setup to run an application, e.g. a rails app ...
zarubin has quit [Remote host closed the connection]
<havenwood>
tejas-manohar: The easiest way would be to install it to /usr/local so it's already in the PATH. Or yeah chruby will autodetct the ruby-install default location. Or you can have ruby-install put it where RVM or rbenv will detect it.
<havenwood>
tejas-manohar: For /usr/local `ruby-install --system ruby` for RVM `ruby-install --rubies-dir ~/.rvm/rubies ruby` or where it is chruby will already detect it.
<havenwood>
tejas-manohar: If you just want a quick 2.2 and don't need to switch Rubies: brew install ruby
<weaksauce>
rvm is not working for tejas-manohar, havenwood
Nahra has joined #ruby
<Troy^>
brew install rbenv ruby-build
wallerdev has quit [Ping timeout: 250 seconds]
<havenwood>
weaksauce: RVM is not working to install the Ruby, but ruby-install could put it where it's expected and the switching will work fine.
<havenwood>
weaksauce: If he wants to use RVM in the long run, installing it for RVM makes sense.
<havenwood>
weaksauce: <3 ruby-install/chruby
<tejas-manohar>
ah
<tejas-manohar>
got it
<weaksauce>
I didn't see the part where it said RVM was installed correctly though.
marcdel has quit []
<havenwood>
weaksauce: He's having trouble with a patch RVM is applying while installing 2.2.
<weaksauce>
but I didn't look that closely. I also <3 ruby-install/chruby
tokik has quit [Ping timeout: 245 seconds]
<weaksauce>
simple is better to me
IrishGringo has quit [Read error: Connection reset by peer]
ixti has joined #ruby
hvxgr has quit [Ping timeout: 252 seconds]
<havenwood>
tejas-manohar: If you go the brew Ruby route, the only caveat is that you'd need to add gem executables to the PATH: export PATH="$(brew --prefix ruby)/bin:$PATH"
soxet has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
IrishGringo has joined #ruby
<havenwood>
tejas-manohar: `brew unlink ruby` for system and `brew link ruby` for brew's
<havenwood>
tejas-manohar: ^ that works fine alongside chruby or RVM or whatever you choose as your switcher.
<tejas-manohar>
ah ok
<tejas-manohar>
i run brew unlink ruby
<tejas-manohar>
brew link ruby
athan has quit [Ping timeout: 240 seconds]
<tejas-manohar>
after brew install ruby ?
Megtastique has quit [Client Quit]
<havenwood>
tejas-manohar: yup, that'd switch
<havenwood>
tejas-manohar: then say with chruby or RVM when you `chruby system` or `rvm system` you'd get either system or brew, depending on whether brew is linked
sigurding has quit [Quit: sigurding]
<havenwood>
tejas-manohar: put the `export ...` above in a dotfile that gets sourced if you want gem executables like `bundle` in your PATH
doritostains has quit [Quit: WeeChat 1.0.1]
<tejas-manohar>
ohh
<tejas-manohar>
so put PATH: export PATH="$(brew --prefix ruby)/bin:$PATH" into ~/.bash_profile
<tejas-manohar>
its fine if there are multiple path exports in that file, right?
IrishGringo has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<weaksauce>
looking at the bashrc, It looks like macports was installed at one time and that was probably the cause for your curl issues.
riotjones has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
CorySimmons has quit [Quit: Bye!]
<tejas-manohar>
weaksauce: maybe so
TL has quit [Ping timeout: 264 seconds]
athan has quit [Read error: Connection reset by peer]
athan has joined #ruby
<havenwood>
tejas-manohar: So a YAML syntax error... but which file?
<havenwood>
invalid .gemrc?
<tejas-manohar>
havenwood: idk, this is an error in ruby it seems?
IrishGringo has joined #ruby
<tejas-manohar>
should i just install ruby 2.1.5 and get on with it lol
<weaksauce>
rename your .gemrc
<tejas-manohar>
weaksauce: like mv .gemrc .asdf ?
<havenwood>
tejas-manohar: I'm suspecting it's not an issue with Ruby, but that a config file was changed and broken.
<weaksauce>
sure
IrishGringo_ has quit [Read error: Connection reset by peer]
athan has quit [Read error: Connection reset by peer]
<weaksauce>
try gem -v and see if there is still an error
athan has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
riotjones has quit [Ping timeout: 250 seconds]
<tejas-manohar>
weaksauce: 2.4.5
<weaksauce>
try gem install rails now
<havenwood>
tejas-manohar: gem install rails
<tejas-manohar>
good signs good signs
<tejas-manohar>
:)
<havenwood>
tejas-manohar: Your friend has more than a bit of cruft in the halls from days past.
<tejas-manohar>
yeah
<tejas-manohar>
lol
claw_ has quit [Read error: Connection reset by peer]
ixti has quit [Quit: WeeChat 1.0.1]
Kilo`byte has quit [Ping timeout: 240 seconds]
claw_ has joined #ruby
drizz has quit [Ping timeout: 245 seconds]
<havenwood>
tejas-manohar: A past change to the ~/.gemrc made it invalid YAML and likely is also the culprit in the RVM install failure.
<havenwood>
tejas-manohar: (It failed on miniruby gem install, due to the broken .gemrc.)
<tejas-manohar>
ah
drizz has joined #ruby
IrishGringo_ has joined #ruby
<weaksauce>
all that pain just because someone didn't want to install some ri docs
IrishGringo has quit [Read error: Connection reset by peer]
<havenwood>
tejas-manohar: I'd suggest letting them know the .gemrc was invalid and closing the RVM ticket.
IrishGringo_ is now known as IrishGringo
<tejas-manohar>
ah yeah
soulcake has joined #ruby
zachrab has joined #ruby
Kilo`byte has joined #ruby
<havenwood>
tejas-manohar: hopefully smooth sailing from here!
<tejas-manohar>
yes
<tejas-manohar>
rails server up
<tejas-manohar>
im out lol
Troy^ has quit [Read error: Connection reset by peer]
Troy^ has joined #ruby
naftilos76 has quit [Remote host closed the connection]
<strsep>
Most rubyists ist for rails. :(
diegoviola has joined #ruby
athan has quit [Read error: Connection reset by peer]
<havenwood>
strsep: A growing number off the rails. :)
athan has joined #ruby
tejas-manohar has quit [Quit: Page closed]
athan has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
athan has joined #ruby
<havenwood>
strsep: Tempting tasty treats like Roda, Lotus and Volt.
St1gma has joined #ruby
<apeiros>
Rota is jeremyevans thing with the route tree?
<apeiros>
*Roda
<havenwood>
apeiros: ya
<apeiros>
what are the USPs of Lotus/Volt? (if you don't mind)
<havenwood>
apeiros: When can I see your router!?
<apeiros>
never? my framework doesn't need a router.
<havenwood>
apeiros: :O
<apeiros>
url's translate directly to a constant
<apeiros>
and don't worry, it's namespaced, so you can't just access internals with a cleverly crafted URL
<havenwood>
apeiros: Volt ties in with Opal for coding once, and magic sync of browser/server routing and validation and stuff. Hard wired to mongodb at the moment and no plans to be database agnostic, but postgres apparently on the way.
kostitas has joined #ruby
<havenwood>
apeiros: Volt aims to DRY up the server then javascript repetition with a lot of magic under the hood.
<apeiros>
as for when: I intend to take two weeks off work. I think I can show pre-alpha of the ORM/DB stuff to selected people then. maybe even the framework.
<havenwood>
They report a really positive experience with Opal.
Aova has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 265 seconds]
<apeiros>
do you know whether Opal fully supports ruby regex translation?
<havenwood>
apeiros: I like the namespaced constants idea, I wanna see it in action!
<apeiros>
the funny thing is that that idea is ~10y old…
avahey has joined #ruby
<havenwood>
I dunno how much they've implemented of it.
ta_ has quit [Ping timeout: 252 seconds]
TinkerTyper has quit [Ping timeout: 252 seconds]
<apeiros>
actually it must be older. f'ing time.
<TheNet>
how do I send data from the client to the server? (sockets)
<apeiros>
TheNet: vague question is vague.
<apeiros>
TheNet: with tons of assumptions: socket.puts, socket.write, various other methods
IrishGringo has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
athan has quit [Ping timeout: 240 seconds]
<TheNet>
apeiros: more specifically what's the syntax I'd use to send a string from a client to a server (both are ruby)
m8 has quit [Quit: Sto andando via]
IrishGringo has joined #ruby
<TheNet>
eg, for server -> client it's client.puts
<TheNet>
puts I can't find any documentation for client -> server
<TheNet>
*but
n0zz has joined #ruby
<apeiros>
havenwood: having seen Roda I fear that the way it is mapped in Jacob is more complex. but I do think it should scale better. but I ponder spending a bit of time with Roda. Maybe I can find a way to make it easier.
TinkerTyper has joined #ruby
<apeiros>
I find it really difficult to walk the line between magic which removes boilerplate and boilerplate which creates explicity
danzilio has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
Deithrian_ has quit [Ping timeout: 244 seconds]
<apeiros>
TheNet: a socket doesn't care about server/client. it cares about read/write. it's socket.puts/.write/.print etc. on both sides to write to the other side.
ta_ has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aova has joined #ruby
<n0zz>
hey guys, I'm new here and new to ruby, can you guys help me?
Lemur has joined #ruby
<n0zz>
where should I start with ruby? I'm lost ;/ to be specific, should I start with ruby or ror? where can I find some useful guides(english/polish)? is that possible to create irc bot in ror/ruby?
<havenwood>
n0zz: Start with Ruby. Yes there're Ruby IRC bots.
<apeiros>
n0zz: given that ror is a webframework, you are better of with plain ruby for an irc bot
rich31 has quit [Read error: Connection reset by peer]
<apeiros>
and that it is possible is proven by all the existing ruby irc bots ;-)
<n0zz>
well, actually this is fresh idea, with the bot, but I also want to create some other, more webish projects, so I'm thinking n reading n know nothing :/
cats has quit [Ping timeout: 245 seconds]
<apeiros>
n0zz: IMO learn ruby proper first. makes it easier to understand the "magic" in rails.
<TheNet>
apeiros: I'm an idiot, thank you so much
<apeiros>
TheNet: I didn't say that! :D
<TheNet>
apeiros: well, at the very least new to sockets :P
redres has quit [Read error: Connection reset by peer]
redres has joined #ruby
drizz has quit [Ping timeout: 240 seconds]
drizz has joined #ruby
<n0zz>
apeiros hmm, you have convniced me now, and thanks for the link :)
<apeiros>
link is from weaksauce ;-)
<weaksauce>
:)
<n0zz>
oh right, thanks weaksauce ;D
cats has joined #ruby
<n0zz>
words, ehh... its too much for me to read at the moment ;p
<havenwood>
apeiros: Lotus is just nice clean looking code for a well laid out Rack adapter MVC framework.
<apeiros>
havenwood: which of them do you find the most interesting?
<apeiros>
btw., ever tried manveru's ramaze?
<havenwood>
apeiros: Roda.
operr has joined #ruby
<havenwood>
apeiros: Though for the future, I'm intrigued by Volt.
<havenwood>
apeiros: Not really, poked around with it.
bonhoeffer has quit [Ping timeout: 245 seconds]
mloveless has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<havenwood>
apeiros: I think the Opal folk themselves may be rolling a Volt competitor, but I guess its the abstracting away the front end stuff that I'm curious if they'll be able to pull of and have it catch on.
n0zz has quit [Quit: leaving]
ta_ has quit [Ping timeout: 245 seconds]
TheNet has quit [Quit: Leaving...]
<havenwood>
apeiros: Of the three it's Roda that I'm most likely to actually use.
<apeiros>
fwiw, while I say my framework is very opinionated - client side code is quite free
<apeiros>
though, theoretically you're free everywhere - you're just on your own. I hope I can have the coupling of the components low enough that all you have to do is satisfy the API
drizz has quit [Ping timeout: 245 seconds]
drizz has joined #ruby
n0zz has joined #ruby
athan has joined #ruby
icharlie has joined #ruby
workmad3 has quit [Remote host closed the connection]
n0zz has quit [Client Quit]
n0zz has joined #ruby
hfor has quit [Remote host closed the connection]
icharlie has quit [Ping timeout: 244 seconds]
zzzbra has quit [Quit: WeeChat 1.1]
hfor has joined #ruby
jlast has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Curs0r has joined #ruby
duncannz has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
danzilio has quit [Quit: My laptop is going to sleep!]
paradisaeidae has joined #ruby
iwishiwerearobot has joined #ruby
Soda has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 245 seconds]
Hobogrammer has joined #ruby
Timba-as has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
Zai00 has quit [Quit: Zai00]
yellowgh0st has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]