lewix has quit [Remote host closed the connection]
<bnagy>
jruby has something ( warbler? )
<bnagy>
there's probably an MRI unixy thing but I haven't come across it
<The_NetZ>
bnagy: rubyscript2exe stopped working several versions ago, afaik. and I mean for lin/win/osx, cross-platform ftw! there's a reason this machine is a triple boot :P
<The_NetZ>
I have something already for that, but I was wondering if there was some 'holy bible' for the procedings :P
<The_NetZ>
anywho, later. store run.
joelroa has quit [Ping timeout: 264 seconds]
Megtastique has quit []
<lagweezle>
Hmm. I know wrong channel, sort of, but I do NOT want to put bits for rails from public/assets/thingy-<what looks like a hash>.* into version control?
havenwood has quit [Remote host closed the connection]
<lagweezle>
Ruby on Rails btw.
<Rylee>
This feels so wrong and yet so right at the same time.
<bnagy>
lagweezle: if you know it's the wrong channel, why ask?
lewix has joined #ruby
havenwood has joined #ruby
Matriks has quit [Remote host closed the connection]
<lagweezle>
bnagy: Because often folks in here know the answer.
<lagweezle>
I'm also failing to recall the proper channel name.
<bnagy>
which would be the same folks who would be in #rubyonrails
Matriks has joined #ruby
<lagweezle>
Ah. Thank you.
Mongey has joined #ruby
hfp is now known as hfp`away
<lagweezle>
And yeah, there is a lot of cross population.
<whomp_>
any really popular ruby gui libraries? i'm looking at freightrain and visual ruby right now, but i can't find any apps made using them. makes it hard to trust them for a big project
<bnagy>
never heard of either
lewix has quit [Remote host closed the connection]
<bnagy>
afaik *nix people tend to go gtk
<bnagy>
jruby people use java stuff
<bnagy>
windows people.. uh...
dingus_khan has joined #ruby
iliketur_ has joined #ruby
<pontiki3>
shoes seems popular
iliketur_ has quit [Read error: Connection reset by peer]
<pontiki3>
idk if that's gtk or not
<bnagy>
but it's a toy, right?
<pontiki3>
shoes?
havenwood has quit [Ping timeout: 240 seconds]
<bnagy>
like, it's explicitly For Kids
<pontiki3>
i don't know
<whomp_>
shoes is built by why
<Nyyx>
whomp_: gtk2?
srji_ has joined #ruby
<pontiki3>
hahaha good 'ruby shoes'
<whomp_>
they all sound cool but i need to see some proof that they're good
<Nyyx>
or swing is stable if you can stand using jruby
<whomp_>
anything that'll work with windows and linux
Matriks has quit [Ping timeout: 264 seconds]
<Nyyx>
whomp_: ruby-gnome is active and their gtk2 binding works well
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
kenneth has joined #ruby
<tylerkern>
Hi everyone. I'm new to ruby and I'm trying to implement a Topological sort. I'm not quite sure what I'm doing wrong, but I know I'm close. Anyone willing to help? Thanks. https://gist.github.com/tylerkern/9299841
havenwood has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
sensen has joined #ruby
rootshift has joined #ruby
pfg has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
<centrx>
newber, I am not sure what you are looking for. This is a channel for the Ruby programming language. Ruby has standard libraries for file manipulation and traversing directories.
<centrx>
newber, Look up MS-DOS commands
mikepack has quit [Remote host closed the connection]
<newber>
what channel do I go to learn computer stuff. I want to learn computer basics.
robbyoconnor has quit [Ping timeout: 240 seconds]
<centrx>
newber, /join #windows
<newber>
ok ty
rm_ has quit [Ping timeout: 264 seconds]
rm__ has joined #ruby
n88 has quit [Write error: Broken pipe]
bobdobbs has quit [Write error: Broken pipe]
pontiki3 has quit [Remote host closed the connection]
mikepack has joined #ruby
Kricir has quit [Remote host closed the connection]
npearson has joined #ruby
bobdobbs has joined #ruby
bobdobbs` has joined #ruby
pontiki3 has joined #ruby
Hanmac has joined #ruby
charliesome has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
binaryhat has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 252 seconds]
n88 has joined #ruby
paradisaeidae has joined #ruby
ctp has quit [Quit: Leaving...]
ctp has joined #ruby
Kricir has joined #ruby
ctp_ has joined #ruby
slackerman has joined #ruby
lewix has joined #ruby
ctp- has joined #ruby
Salve has joined #ruby
ctp has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
sailias has joined #ruby
rahult_ is now known as rahult
ctp_ has quit [Ping timeout: 264 seconds]
ctp- has quit [Ping timeout: 240 seconds]
<slackerman>
hey guys, trying to setup a cronjob where is the cap command binary located?
jlast has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
jamto11 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
<centrx>
slackerman, Probably /usr/bin or /var/lib/gems/somethingsomething/bin
nari has joined #ruby
npearson has quit [Remote host closed the connection]
x77686d has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
markisonfire has quit [Quit: markisonfire]
Kricir has quit [Remote host closed the connection]
kennym has joined #ruby
kenneth has joined #ruby
bobdobbs` has quit [Read error: Connection reset by peer]
bobdobbs has quit [Read error: Connection reset by peer]
jonah_k has quit [Remote host closed the connection]
fluve has joined #ruby
x77686d has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
kennym has left #ruby [#ruby]
timonv has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
lentil has quit [Quit: leaving]
Salve has quit [Remote host closed the connection]
<pontiki3>
that's if you set :root to something else
recursive has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
m104 has joined #ruby
confounds has joined #ruby
recurrence has joined #ruby
Kricir_ has joined #ruby
ekinmur has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<morenoh159>
pontiki3: yep I tried that, but I wanted to specify the directory one level above where the file was being run. So I tried '..' but it didn't work
Hanmac has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
SegFaultAX has quit [Excess Flood]
npearson has joined #ruby
SegFaultAX has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
ekinmur has quit [Client Quit]
saarinen has quit [Quit: saarinen]
mikepack has quit [Remote host closed the connection]
nateberkopec has joined #ruby
thomasxie has left #ruby [#ruby]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
joelroa has joined #ruby
Salve has quit [Remote host closed the connection]
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<td123>
centrx: hah, thanks. I actually managed to figure out the correct type and patch it :)
dgfdgf has joined #ruby
browndawg has quit [Quit: Leaving.]
`MArceLL` has quit [Ping timeout: 246 seconds]
dgfdgf is now known as `MArceLL`
joelroa has joined #ruby
adurity has quit [Remote host closed the connection]
<td123>
at least I know i got it right and can document the patch with a bug report
deepender has joined #ruby
<deepender>
class Foo, def self.something(*args); new(*args).something; end; end;
<deepender>
Anyone can tell, what is the purpose of this code, like what this new(*args).something will do?
kotk has joined #ruby
agent_white has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
noop has joined #ruby
monkegjinni has joined #ruby
<centrx>
deepender, something is a class method. It calls the inherent new method on the class.
<deepender>
centrx:
<centrx>
I don't think that code would work as is
`MArceLL` has quit [Remote host closed the connection]
`MArceLL` has joined #ruby
<deepender>
Why we do that
<deepender>
?
GinoMan has quit [Ping timeout: 240 seconds]
<deepender>
Yes, it does not work
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
mlpinit has joined #ruby
<centrx>
deepender, Then you wouldn't do it
<deepender>
centrx, thanks
jlast_ has quit [Remote host closed the connection]
`MArceLL` has quit [Remote host closed the connection]
`MArceLL` has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
sree has joined #ruby
tylersmith has joined #ruby
JBreit has left #ruby ["Leaving"]
Wolland has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
jrhorn424 is now known as zz_jrhorn424
m00nlight_ has joined #ruby
m00nlight has quit [Ping timeout: 252 seconds]
npearson has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
timonv has joined #ruby
nateberkopec has quit [Quit: Leaving...]
timonv has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
decoponio has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
robbyoconnor has joined #ruby
dseitz has joined #ruby
adurity has joined #ruby
markisonfire has joined #ruby
npearson has quit [Remote host closed the connection]
m00nlight_ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
npearson has joined #ruby
adurity has quit [Read error: Connection reset by peer]
kzrl has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
sree has quit []
lukec has quit [Quit: lukec]
m00nlight_ has joined #ruby
npearson has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
yubrew has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
brucele_ has joined #ruby
nomenkun has joined #ruby
slainer68_ftw has joined #ruby
<slainer68_ftw>
hi
<slainer68_ftw>
i've got an array of arrays called "a" and i would like to calculate the intersection of all the arrays in "a" in one line. how i can do that? thanks.
weems is now known as DrSkinnerConditi
zeade has quit [Quit: zeade]
Hanmac1 has joined #ruby
endash_ has quit [Quit: endash_]
<slainer68_ftw>
found myself : a.inject(&:&)
<slainer68_ftw>
:)
npearson has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
<centrx>
ooo inject(&:&)
<centrx>
that's a good one
<slainer68_ftw>
yup
<slainer68_ftw>
> [[1,2,3], [3,7]].inject(&:&)
<slainer68_ftw>
=> [3]
SegFaultAX has quit [Excess Flood]
amclain has quit [Quit: Leaving]
SegFaultAX has joined #ruby
kzrl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
centrx has quit [Quit: All this computer hacking is making me thirsty]
spider-mario has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 264 seconds]
claymore has quit [Ping timeout: 264 seconds]
VTLob has joined #ruby
alexherb1 has joined #ruby
<shevy>
hmmm
<shevy>
AlexRussia I am trying to make a ruby project of mine less verbose
adurity has joined #ruby
<shevy>
right now some of the .rb files there, standalone scripts, spam warning messages to me
npearson has joined #ruby
<shevy>
"warning: method bla redefined"
<AlexRussia>
shevy: nice
<shevy>
it's annoying :(
<shevy>
without that bug, reporting useful information would have been so much easier
<AlexRussia>
shevy: i'm try reload(or redefine?) operators in c++ now ;)
ringaroses has quit [Ping timeout: 252 seconds]
<shevy>
ewww
<shevy>
C++
<shevy>
EWWWWW
<AlexRussia>
shevy: yeah, is fuckin shit
<AlexRussia>
f**kin*
<AlexRussia>
shevy: but is uni labs....
<AlexRussia>
shevy: home work.
spider-mario has joined #ruby
_HolyCow has quit [Quit: Leaving.]
<shevy>
hehe
nari has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
<shevy>
ok, then you are excused
akitada has joined #ruby
<shevy>
I thought you do it because you have a deep, profound love for C++ and want to spend years of your life creating C++ applications for fun
barratt has joined #ruby
npearson has quit [Ping timeout: 252 seconds]
adurity has quit [Ping timeout: 252 seconds]
thumpba has joined #ruby
timonv has joined #ruby
<AlexRussia>
shevy: You death.
<AlexRussia>
shevy: (Like object, not status)
mostlybadfly has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
ndrei has joined #ruby
<AlexRussia>
shevy: i have cry cry cry
<shevy>
what
<AlexRussia>
shevy: redefined operators in cpp is.....CRAP
<AlexRussia>
shevy: I scould realize FIFO, like structure, and redefined operators << and >>
<AlexRussia>
shevy: is....holy shit
claymore has joined #ruby
<certainty>
[:sym1,:sym2]
<shevy>
:D
thumpba has quit [Ping timeout: 240 seconds]
<AlexRussia>
certainty: wut?
<certainty>
AlexRussia: ignore me
<AlexRussia>
certainty: ok
<AlexRussia>
certainty: /ignore certainty
<certainty>
bt. that's not redifining. It's overloading
<AlexRussia>
shevy: he success added in ignore list :)
ndrei has quit [Client Quit]
mityaz has joined #ruby
<shevy>
AlexRussia I am too lazy to add anyone to ignore really
<shevy>
except for those who ban me from channels
<AlexRussia>
shevy: heh
Hanmac has joined #ruby
tgkokk has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tgkokk has quit [Max SendQ exceeded]
_bart has joined #ruby
<AlexRussia>
shevy: dammit, hardcord find good docs about << and >> operators redefine....
<RubyPanther>
Thankfully Ruby does not support overloading
yfeldblum has joined #ruby
<AlexRussia>
RubyPanther: ah, overloading?
<AlexRussia>
RubyPanther: lol
<AlexRussia>
RubyPanther: nice word
<shevy>
can't you simulate it? you can redefine everything at runtime and check on the arguments provided to behave differently
<RubyPanther>
only redefining
<RubyPanther>
Sure, you can simulate with method_missing
<shevy>
ewwww
andy__ has joined #ruby
<AlexRussia>
lol
<AlexRussia>
yah, c++ is happy
<RubyPanther>
If you just check the type and call foo_for_bar then it isn't overloaded at all, you have n+1 methods and can tell them apart easily
mansi_ has joined #ruby
<AlexRussia>
but, with cyanide
<AlexRussia>
AHHAHAHA
browndawg has joined #ruby
<certainty>
too loud in here for my taste, bbl
<RubyPanther>
with overloading you have n methods that are all named the same. That's the "over" part
moeSeth_ has quit [Quit: Connection closed for inactivity]
<AlexRussia>
RubyPanther: you know C++?
Xeago has quit [Remote host closed the connection]
<RubyPanther>
AlexRussia: No, I use C99 but I'll cheat and use the ++ operator if needed
Xeago has joined #ruby
<AlexRussia>
RubyPanther: Oo
<RubyPanther>
other than ++/-- none of the rest is enhancements, just crud
mansi_ has quit [Ping timeout: 252 seconds]
<RubyPanther>
I don't need templates for OO support, all I need is a stack of conventions, for example the first argument is a reference to the instance (eg, self)
andy__ has quit [Read error: Connection reset by peer]
<shevy>
"Python's all for making things explicit, making it obvious what's what, and although it doesn't do it entirely everywhere, it does do it for instance attributes."
Xeago has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
sski has joined #ruby
kirun has joined #ruby
Wolland has joined #ruby
<AlexRussia>
f**kin shit f**kin shit f**kin shit
gnephiak has joined #ruby
<shevy>
is there a way to specify optional dependencies for a gem?
<shevy>
hmm I better ask in #rubygems
sigurding has joined #ruby
joelroa has joined #ruby
<AlexRussia>
i'm start HATE C++
nomenkun has quit [Remote host closed the connection]
rm_ has joined #ruby
Blaze_Boy has joined #ruby
nomenkun has joined #ruby
yubrew has joined #ruby
<shevy>
haha
mehlah has joined #ruby
<shevy>
welcome to linus' world
nolic_ has quit [Quit: Lost terminal]
<AlexRussia>
shevy: linus?
<AlexRussia>
shevy: anus?
<AlexRussia>
AHAHHAHA
joelroa has quit [Ping timeout: 252 seconds]
<shevy>
yeah
nomenkun has quit [Read error: Operation timed out]
<shevy>
Linus Anus, the creator of the linux kernel
<shevy>
AlexRussia you need to get older man :P
parduse has quit []
<AlexRussia>
shevy: i think, you forget name Linus Torwalds.
<shevy>
surlsone well that would be cool, if you could rewrite a language even without having to learn C. like lego building blocks, to build any language you want to use
<surlsone>
why what does the python parser crave?
<shevy>
surlsone dunno really... guido chose that back then
_bart has quit [Remote host closed the connection]
<surlsone>
THAT SHOULD BE THE WAVE OF THE FUTURE SHEVY
<surlsone>
:-)
<shevy>
python is a different form of poetry, with a teacher who hits you on the back of the head sometimes
<surlsone>
to rewrite any language free from underpinnings
<surlsone>
like the new BAY BRIDGE
<shevy>
yeah
<shevy>
and to use any desktop environment of your choosing, with any effect(s) of your choosing
mansi_ has quit [Ping timeout: 252 seconds]
<surlsone>
it is a suspension bridge not connected to bedrock because its tension is SELF CONTAINED
<surlsone>
yea SHEVY
<surlsone>
ADMIRABLE GOAL!!!
<surlsone>
<3
<shevy>
I loved winamp snap-behaviour, when you could put the boxes together
yakov has quit [Quit: Leaving]
<shevy>
the later versions changed that and I hated winamp
<surlsone>
why?
<surlsone>
is it visual?
<shevy>
then I switched to linux
<shevy>
dunno, I just loved it as a feature
_bart has joined #ruby
<surlsone>
I thought winamp was just to play music?
<shevy>
you could group boxes together and drag them around
<shevy>
yeah, a limitation. it should have become a desktop environment :-)
<surlsone>
When win8 was in development I had an idea for a poetry app and played with VISUAL STUDIO and seemed to make a bit of intuitive headway
<surlsone>
wowww
<shevy>
oh man
<shevy>
win
<surlsone>
shevy you think outside the box
<surlsone>
AMAZING!!!
<surlsone>
super cool!!!!
<shevy>
why they want to treat users as idiots is beyond my level of understanding
<surlsone>
it hurts because
<shevy>
surlsone well there are other people who think outside the box before me
<surlsone>
it goes against the spirit of the PC
<shevy>
like GoboLinux and NixOS
<surlsone>
which was to empower folk! not use them as bait for advertisers and corporations :-(
<shevy>
hehe yeah
<surlsone>
but I suffer within that realm ok?
<shevy>
but hey, even the WWW recommends DRM restrictions in videos played on website now
<surlsone>
and know my HEART is with YOU GUYS!!! ^__^
<surlsone>
some of us get TRAPT :-(
<surlsone>
yea
<shevy>
and microsoft says it wants to make a free version of win8, but advertisement is used, so it is not "free", the cost is that you are molested with ads
<surlsone>
I remember Australia's first tentative efforts at censorship online in 1998
<surlsone>
YEP MOLESTED IS THE WORD TOO
<shevy>
or google youtube videos... advertisements all over the place, right of the video, inside the video, and then there are the "click me!" boxes in the video...
<jhass>
no need to scream all the time
<surlsone>
especially if you are a poor student needing to CONCENTRATE eh?
glebm has joined #ruby
<surlsone>
sorry jhass
<shevy>
surlsone well, just about every government does the same there
<shevy>
we are all terrorists in the end
<surlsone>
perhaps that is too strong of a word?
<surlsone>
perhaps we are simply scam artists?
<surlsone>
because the worst thing a computer can do is far less than an actual serial killer? or can a computer user set up actual murders and stuff?
<shevy>
I have to go back to continue coding :-)
SegFaultAX has quit [Ping timeout: 245 seconds]
<surlsone>
I think the reason why the ad controlled environment is adopted by the authoritative socius is like stickers on a car, they are proud of that shit
<shevy>
atmosx you are still doing rails-related stuff?
codeitagile has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
codeitagile has quit [Max SendQ exceeded]
<atmosx>
shevy: yeap, learning not really diong
<shevy>
hehe
<atmosx>
shevy: going slow because I have only a few hours per day and I'm usually tired
codeitagile has joined #ruby
codeitagile has quit [Max SendQ exceeded]
<shevy>
I can understand that
<shevy>
it is so much harder to learn after work
<atmosx>
but compared to sinatra it's impressive how fast-paced rails are, if you can get a hold of the big amount of keywords and ... can figure what goes where.
codeitagile has joined #ruby
codeitagile has quit [Max SendQ exceeded]
codeitagile has joined #ruby
codeitagile has quit [Max SendQ exceeded]
rootshift has joined #ruby
codeitagile has joined #ruby
codeitagile has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
codeitagile has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
mansi_ has joined #ruby
<shevy>
hmm
sepp2k has joined #ruby
Wolland has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
<atmosx>
going to get some sleep, then go for a run at the park :-) ... I have a PCR lab tomorrow, isolate a plasmid or something.
<atmosx>
heh
<atmosx>
bbl
_HolyCow has quit [Quit: Leaving.]
s_kilk has joined #ruby
Deele has joined #ruby
alessandro1997 has quit [Quit: Sto andando via]
Blaze_Boy has quit [Quit: Returning to his Planet.]
grvgr has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ep3static has joined #ruby
ep3static has quit [Client Quit]
ep3static has joined #ruby
ndrei has joined #ruby
ep3static has quit [Client Quit]
Mongey has quit [Quit: Mongey]
Speed has joined #ruby
joelroa has joined #ruby
nomenkun has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
_bart has joined #ruby
DylanJ has joined #ruby
nomenkun has quit [Read error: Operation timed out]
joelroa has quit [Ping timeout: 264 seconds]
Shidash has quit [Ping timeout: 252 seconds]
adurity has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
grvgr has quit [Quit: grvgr]
mlpinit has joined #ruby
Matriks has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
danshultz has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
prc has quit [Ping timeout: 252 seconds]
Astralum has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
mlpinit has quit [Ping timeout: 264 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
thomasxie1 has left #ruby [#ruby]
shaileshg has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
itadder has joined #ruby
forcefsck has joined #ruby
IceDragon has joined #ruby
sailias has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
lxsameer has quit [Quit: Leaving]
mansi_ has joined #ruby
soulcake has quit [Ping timeout: 240 seconds]
absolutezeroff has joined #ruby
philcrissman has joined #ruby
kotk1 has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
kotk has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
<shevy>
ok so basically you want to visit everything of a deeply nested hash
<visof>
it stop at each string or nil value
<visof>
yeah
rankine has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
brian___ has quit [Quit: brian___]
<visof>
but need to understand why this code don't work correctly
<shevy>
well you pass only the value
<visof>
shevy: iteration don't work here
<visof>
it only stop when hit string or nil
nomenkun has quit [Remote host closed the connection]
<shevy>
where do you iterate
<visof>
maybe i misunderstand the recursion
<shevy>
you call the function already
<shevy>
so ruby must run it again
<shevy>
return extractinfo(v)
<shevy>
and here you simply return a result:
<shevy>
return res
<shevy>
of course the two are not the same
nomenkun has joined #ruby
<shevy>
in one case you return a result at once, in the other you call the method again
mlpinit has joined #ruby
shredding has quit [Quit: shredding]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
<visof>
understood, now how can i do this?
Salve has joined #ruby
<shevy>
define this
Zackio has joined #ruby
Emmanuel_Chanel has joined #ruby
rankine has joined #ruby
rankine has joined #ruby
rankine has quit [Changing host]
rankine has quit [Client Quit]
Hanmac1 has joined #ruby
nolic has quit [Quit: Lost terminal]
rankine has joined #ruby
<visof>
shevy: ?
rankine has quit [Client Quit]
rankine has joined #ruby
<shevy>
you ask: how can i do this
<shevy>
I ask: what is this
Wolland has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
soulcake has joined #ruby
<jhass>
visof: it's not clear what your intention is. What value(s) do you want to yield to the block?
rankine has quit [Client Quit]
<jhass>
also I'd recommend to do case res; when nil; when String; when Array etc
rankine has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
<visof>
each element in hash or Array
rankine has quit [Client Quit]
nomenkun has quit [Ping timeout: 252 seconds]
rankine has joined #ruby
soulcake has quit [Client Quit]
rankine has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
<jhass>
visof: capture the block (def foo(.., &block)), call it with the values as needed (block.call(value)) and pass it along in the recursive calls (foo(...,&block))
<pontiki`>
none of those elements are either nil or string
prc has quit [Ping timeout: 264 seconds]
<pontiki`>
so nothing will print for the second conditional
<pontiki`>
you might make better use of duck typing
noop has quit [Ping timeout: 240 seconds]
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
catphish: you'll have to code that yourself, I fear.
ubyte has joined #ruby
<catphish>
apeiros: ok, having .last should help a lot
<apeiros>
I'd probably convert the args to a set, and use select.with_index
visof has joined #ruby
<apeiros>
Range has .last
Rollabunna has joined #ruby
dik_dak has quit [Ping timeout: 264 seconds]
<apeiros>
but that's just the range end, it doesn't care about exclusive.
Rollabunna has quit [Remote host closed the connection]
cid404 has quit [Quit: cid404]
<catphish>
if i was playing with integers i could just do range.last - 1
<havenwood>
catphish: what are they? chars?
<catphish>
IPAddrs
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
Mongey has quit [Quit: Mongey]
OdNairy has joined #ruby
koell has joined #ruby
omegahm has joined #ruby
<catphish>
range does have some search functions
npearson has joined #ruby
itadder has joined #ruby
yubrew has joined #ruby
jjbohn has joined #ruby
mourest has joined #ruby
jonah_k has joined #ruby
rm_ has joined #ruby
<catphish>
whoever wrote IPAddr didn't add #+ and #- :(
xaq has quit [Remote host closed the connection]
jpierre03 has quit [Quit: -]
chrisseaton has quit []
tbrock has quit [Read error: Connection reset by peer]
xcv has joined #ruby
<jhass>
I'm sure I'm totally missing something but isn't that just [1, 2, -2].map {|idx| idx >= 0 ? range.first+idx : range.last+idx }? The range is just a container for min/max here
yubrew has quit [Ping timeout: 240 seconds]
<catphish>
jhass: i'm not really sure what a range is, unfortunately, range.first+idx won't work because the objects in the range don't respond to +
<catphish>
i wonder how the range works at all
<jhass>
it calls .succ iirc
<havenwood>
#succ
sree has quit []
Vovko has joined #ruby
<jhass>
so no chance to go down from max without building all possible objects in the range anyway, hmm
Es0teric has joined #ruby
<havenwood>
jhass: could implement pred
<catphish>
i.succ.succ works :)
<itadder>
what the best tutorial for Methods
<itadder>
ruby methods
<catphish>
but that doesn't help with going down :(
<Senjai>
catphish: Uhmm, sorry? You're solving a problem that doesn't need to be solved. You're only reason for not using the system utilities available to you is because you don't want to and are thus ignoring the easiest and fastest solution to your issue.
<jhass>
itadder: you mean it returns the last expression in the method? yes
<catphish>
Senjai: i politely disagree that it's better to spawn another app to subtract one from an IP address
pfg has joined #ruby
<itadder>
so the first part of the expression is unsued?
<Senjai>
It'd depend on the context of your app.
<Senjai>
If the entire purpose of the app is to find a certain local ip address, you don't even need to use ruby.
<jhass>
itadder: what's the first part of the expression for you? Because an expression always has only one value
rm_ has quit [Ping timeout: 240 seconds]
<itadder>
x
<itadder>
the value of x
bramvdbogaerde has joined #ruby
<itadder>
the second part is the vaule of x +1, what second sloved is the second part x + 1
chrisseaton has joined #ruby
<itadder>
what get sloved is the second one
yfeldblum has joined #ruby
jjbohn has quit [Quit: Leaving...]
rm_ has joined #ruby
<jhass>
itadder: x+1 is one expression
Xuisce has quit [Quit: Leaving...]
ubyte has quit [Quit: Leaving...]
<jhass>
because actually it yet again is a method call: x.+(1)
bramvdbogaerde has quit [Client Quit]
tbrock has joined #ruby
jjbohn has joined #ruby
rm_ has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 252 seconds]
<catphish>
Senjai: you're advocating farming out simple calculations unnecessarily, and frankly, you're wrong, you also flamed me for not understanding the exec process, which clearly i do and you do not, so please stop
<itadder>
so what is puts "inside increment function, incrementing #{x}" <--
rm_ has joined #ruby
catphish has left #ruby ["Leaving"]
rm__ has joined #ruby
<jhass>
itadder: another method call
<itadder>
so why does ruby choose to call the second method call
Rollabunna has joined #ruby
<jhass>
it doesn't choose, it does what you write
<itadder>
but if I do something like increment(11) outside the method then it does inside increment function, incrmeneting 11
<Senjai>
catphish: Whats there to understand about xxx.xxx.xxx.101 + 1 = xxx.xxx.xxx.102? Also, it has nothing absolutely nothing to do with forking. Kernel#exec simply pauses your process, starts the relevent process you've called, and returns to execution of the main process after it is complete.
Xuisce has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
<jhass>
itadder: I'm not sure what your question is
ubyte has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
rm_ has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
saarinen has quit [Quit: saarinen]
Salve_ has joined #ruby
npearson has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
npearson has joined #ruby
<shevy>
itadder you must reason. why do you use ()
lw has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
<itadder>
I thought I had to use () so it can compute b+2
rm_ has joined #ruby
Xeago has joined #ruby
<itadder>
where b = 2
<shevy>
no that is not good
<itadder>
err were b is a increment of 2. I am just trying to learn methods so I am playing around
deepender has quit [Ping timeout: 252 seconds]
<itadder>
I need a good tutorial on methods
<shevy>
you should try to stay minimal
_HolyCow has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Ping timeout: 252 seconds]
<jhass>
itadder: now that has to do with objects. Numbers are instances of Fixnum. if you do a = 1 you assign an instance of Fixnum to the variable a. if you then do increment(a) you assign the value of a (the instance of Fixnum) to x. Inside increment you now call the method + on this instance of Fixnum. Fixnum#+ returns (but not assigns!, it can't, it's just a method call) a new instance of Fixnum
<jhass>
that new instance is then returned from your method increment
cina has joined #ruby
OdNairy has quit [Ping timeout: 240 seconds]
<itadder>
ahh becuase one of them is calling fixnum becuase of +
npearson has quit [Ping timeout: 240 seconds]
<itadder>
in the other case I am not calling fixnum so it just display incerment
rm_ has quit [Read error: No route to host]
Xuisce has quit [Quit: Leaving...]
ubyte has quit [Quit: Leaving...]
rm_ has joined #ruby
<jhass>
the call happens, you just do nothing with the new instance of Fixnum, so it ends in the void
rafaelmagu has joined #ruby
OdNairy has joined #ruby
browndawg has left #ruby [#ruby]
<apeiros>
fuck, installing skyrim takes 35min? :(
OdNairy_ has joined #ruby
<bonhoeffer>
what -- does ruby remove loop variables on break?
FOSScookie has joined #ruby
<apeiros>
bonhoeffer: no. but you probably have lvars scoped only to your block.
<bonhoeffer>
yeah -- i need to look into it
<apeiros>
as of 1.9, lvars assigned only in a block are block-local.
<bonhoeffer>
and a loop is a block
<shevy>
long live 1.9.x \o/
<apeiros>
"a loop" is not a block
<apeiros>
loop do … end # is a method with a block
<itadder>
the output I get is "inside increment function, incrementing 11
<shevy>
itadder, you need to train your eyes better - module vs. modulo, the last character differs
joelroa has quit [Ping timeout: 240 seconds]
<shevy>
itadder come on (3) is a simple yes/no question, we need to hurry to question (4)
<itadder>
YEs
<shevy>
itadder (4) is something like this here: Foo::HI() a valid method call?
<shevy>
note that if your answer to (4) differs from (3) you need to reason :)
<itadder>
yes
<itadder>
becuase of ()
<shevy>
yeah
<jhass>
shevy: no you need to reason why that knowledge is of any use
<jhass>
*now
visof has joined #ruby
<itadder>
I am trying to learn methods jhass
<shevy>
jhass he already answered, it's to understand the ruby parser
cina has quit [Remote host closed the connection]
<shevy>
itadder we need to look at (3) though
<jhass>
nobody calls methods with :: and nobody names his methods PI
arietis has quit [Quit: Computer has gone to sleep.]
<jhass>
okay some may do either but I guarantee you the intersection is empty
<shevy>
look
<shevy>
it is possible to call methods with :: whether you like it or not
cina has joined #ruby
<shevy>
if you say "nobody does" then this is simply not true
<jhass>
he barely understands the core concepts, lets not trash his mind with such stuff, seriously
<shevy>
who is trashing his mind?
<jhass>
you
<itadder>
if you want to put in online
cina has quit [Remote host closed the connection]
<shevy>
ok and you are insulting me jhass
<itadder>
err one line
gnephiak has quit [Quit: Konversation terminated!]
<itadder>
let get along :)
<shevy>
jhass now it is your turn - go help him, I will look at what you do
<Nyyx>
itadder: a method takes 0 or more arguments in and computes a value to return
<jhass>
shevy: just scroll up
<shevy>
jhass yes do that and you can see my name trying to help him just as well. But unlike you, I did not come over and insult you, so?
<stephenmac7>
Is it possible to modify a class after it's already been defined?
<Nyyx>
the value returned can be replaced with the original method at the call site if it's a mathematical method
<apeiros>
stephenmac7: yes
<jhass>
shevy: dumping everything you know about ruby to a newbie just isn't helpful
<stephenmac7>
apeiros: How?
<shevy>
jhass that is your opinion and I disagree
<apeiros>
stephenmac7: also, 'can X' type questions can easily be answered by just trying in irb/pry
<apeiros>
stephenmac7: you just do it
<Nyyx>
a class method needs an instance allocated to call the function
<Nyyx>
a module method exists without the need for an instance
<itadder>
FOO:HI NoMethodError: undefined method `FOO' for main:Object
<apeiros>
Nyyx: all methods need an instance to be called
<itadder>
this is from IRB
<stephenmac7>
apeiros: Okay, I should have asked "If it's possible to modify a class after it's definition, how would I go about doing that?"
<apeiros>
Nyyx: and the common definition for "class method" means a method callable directly on the class. hence the instance is already there (the class itself)
<shevy>
itadder You need to look carefully - first, you used one ':' which seems strange
yubrew has joined #ruby
retnuh has joined #ruby
<apeiros>
stephenmac7: still the same answer, you just modify the class. the same way you defined it.
<Nyyx>
the specifics of ruby and their automatic instances are just gonna confuse him
<stephenmac7>
Ah, I see.
<stephenmac7>
So just define it again
mourest has quit [Remote host closed the connection]
amritanshu_ has joined #ruby
<stephenmac7>
But only with the stuff you changed
<shevy>
itadder the other part seems wrong as well, if it would be a method called FOO, I would expect it to be on the right side, not on the left
<apeiros>
yes
<jhass>
itadder: it'd be FOO::HI() after you did something like class FOO; def self:HI; end; end; which is pretty ugly, nobody does and it's not important at this stage in your learning phase
<stephenmac7>
Kind of like a subclass
<shevy>
like HI::FOO
amritanshu_ has quit [Read error: Connection reset by peer]
<apeiros>
a remote "kind of", but yes
_maes_ has joined #ruby
<jhass>
itadder: the sane way would be class Foo; def self.hi; end; end; Foo.hi but let's come back to that once you learn classes
mercwithamouth has quit [Ping timeout: 252 seconds]
cina has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<itadder>
I have yet to learn classes
<itadder>
I am learning methods
MatthewsFace has joined #ruby
einarj has joined #ruby
chrisseaton has joined #ruby
<shevy>
yes
<shevy>
itadder you just need to keep in mind that methods have to reside somewhere
yubrew has quit [Ping timeout: 240 seconds]
<shevy>
so you can do (a) class Foo; def something or (b) module Foo; def something or (c) just def something
amritanshu_ has joined #ruby
<jhass>
and doing just (c) is totally fine for now
amritanshu_ has quit [Read error: Connection reset by peer]
<shevy>
itadder all may be mildly different in how you will use them, i.e. if you transfer data via local variables or @ivars
_lynX has joined #ruby
recursive has joined #ruby
amritanshu_ has joined #ruby
amritanshu_ has quit [Client Quit]
amritanshu_ has joined #ruby
<apeiros>
59.86% documented
<shevy>
itadder, (5) How would a method look that accepts arguments?
<apeiros>
*sob*
<apeiros>
much to do
<itadder>
you would need gets
<shevy>
hmm, have to go down for some minutes sorry
amritanshu_ has quit [Client Quit]
Czupa has joined #ruby
<jhass>
itadder: no, gets is a method that reads a line from standard input. You were already using method arguments in your increment method. x is a method argument
Mongey has quit [Quit: Mongey]
<apeiros>
gets actually reads from ARGF, not from $stdin
<apeiros>
quite important. trips up lots of people.
<stephenmac7>
Would you all recommend doing "Ruby Primer: Ascent" on RubyMonk or "Ruby Bits" on code school to learn about the more advanced (relatively) concepts in ruby
<stephenmac7>
?
Waheedi has joined #ruby
sepp2k1 has joined #ruby
<itadder>
oh you are right methods_prg2.rb:7:in `+': no implicit conversion of Fixnum into String (TypeError)
sepp2k has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 264 seconds]
<itadder>
you use the agrv method
<itadder>
thier has to be a argument method
cina has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
visof has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
tbrock has quit [Ping timeout: 264 seconds]
Aquilo has quit []
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
TucosMeth has joined #ruby
cina has joined #ruby
Kricir has joined #ruby
emzi has joined #ruby
prionic has quit [Ping timeout: 240 seconds]
<emzi>
I thought you may want to be aware of:
<emzi>
Hack Ruby by https://koding.com which is offering a free 3GB account just for next 10 ours!
<shevy>
but it's like noone is using ruby for games
sparrovv has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 240 seconds]
george2 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
sigurding has quit [Quit: sigurding]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
phansch has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
Mongey has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
jjbohn|afk has quit [Quit: Leaving...]
redlines has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby
phansch has joined #ruby
factormystic has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
nateberkopec has joined #ruby
mocfive has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
cina has quit [Quit: leaving]
picca has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Megtastique has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Megtastique has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
mikepack has joined #ruby
alexju has quit [Remote host closed the connection]
rpbertp13 has joined #ruby
Dwarf has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
auxbuss has joined #ruby
ekinmur has quit []
alexju has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
IceDragon has joined #ruby
<davidcelis>
I've been having an issue with Thor; there are some unfortunate disparities i'm seeing between running `cli help [COMMAND]` and `cli [COMMAND] --help`, but maybe I'm just doing something wrong. If anybody's good with building Thor CLIs, I'd really appreciate a looksie: https://github.com/erikhuda/thor/issues/402
mikepack has quit [Remote host closed the connection]
rpbertp13 is now known as ricercare
ricercare has quit []
chuk has quit [Quit: Leaving]
ricercare has joined #ruby
aspires has joined #ruby
m8 has joined #ruby
mikepack has joined #ruby
timonv has quit [Remote host closed the connection]
auxbuss has quit [Quit: I'm gone.]
timonv has joined #ruby
PSYCLOO has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
steffes has quit [Remote host closed the connection]
ricercare has quit []
steffes has joined #ruby
Tricky1 has joined #ruby
PSYCLOO has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
steffes has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
retnuh has joined #ruby
bluehavana_ has joined #ruby
rm_ has joined #ruby
visof has joined #ruby
wallerdev has joined #ruby
axl_ has quit [Quit: axl_]
jcs222 has quit [Quit: leaving]
jackneill has quit [Ping timeout: 264 seconds]
itadder has joined #ruby
grvgr has quit [Quit: grvgr]
ricercare has joined #ruby
blackmesa has joined #ruby
ricercare is now known as blasius
aspires has quit []
<jxport>
how can duplicated code be avoided between services in SOA (Service Oriented Architectures - e.g. model objects, to represent objects common to both services?
blasius has quit [Client Quit]
blasius has joined #ruby
Kricir has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
chrisseaton has joined #ruby
grampajoe has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Czupa has quit [Remote host closed the connection]
JBreit has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
<curious_>
RubyPanther, lol.....
yubrew has joined #ruby
<curious_>
RubyPanther, thank you for this resourceful link *eh hem*. Very appalling.
Asher has quit [Quit: Leaving.]
<RubyPanther>
poignant guides are not for all, some people need dry fare
<itadder>
anyone here use aws free
<itadder>
what the best guide for methods for a newbie
bluOxigen has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
<centrx>
AWS Free! When did this happen?
slowcon has joined #ruby
maletor has joined #ruby
<Nyyx>
centrx: since launch
<Nyyx>
free for a year
<Nyyx>
for new accounts
<centrx>
Oh, it's time limited
yubrew has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
chrisseaton has joined #ruby
picca has left #ruby [#ruby]
joelroa has joined #ruby
Kricir has joined #ruby
Megtastique has joined #ruby
sadasda has joined #ruby
sadasda has quit [Client Quit]
joelroa has quit [Ping timeout: 244 seconds]
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
jcs222 has joined #ruby
Xeago has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
angusiguess has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
angusiguess has joined #ruby
m8 has quit [Quit: Sto andando via]
Emmanuel_Chanel has joined #ruby
Atw has joined #ruby
yfeldblu_ has joined #ruby
Xeago has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
ws2k3 is now known as ws2k3__
hermanmunster has quit [Remote host closed the connection]
<itadder>
how do I pass a argument to a method
<itadder>
like ruby mymethods.rb test 1
x77686d has joined #ruby
hermanmunster has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
<centrx>
itadder, You mean on the command line?
axl_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
tgkokk has joined #ruby
slowcon has quit [Quit: slowcon]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Asher has joined #ruby
Salve_ has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
pontiki has joined #ruby
Salve_ has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
TucosMeth has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
saarinen has quit [Quit: saarinen]
tvw has joined #ruby
grampajoe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
soro has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soro has left #ruby ["Leaving"]
atno has quit [Ping timeout: 264 seconds]
ringaroses has joined #ruby
rankine has quit [Quit: leaving]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has joined #ruby
pfg has joined #ruby
slowcon has joined #ruby
byprdct has joined #ruby
jonah_k has quit [Remote host closed the connection]
mary5030 has joined #ruby
jonah_k has joined #ruby
axl_ has quit [Quit: axl_]
maletor_ has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
invinceable has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barratt has joined #ruby
derek_c has joined #ruby
webgen has joined #ruby
<webgen>
hi guys
<jhass>
itadder: you already did pass an argument to a method. Remember your increment method? x was an argument, increment(11) made x = 11, that's called passing an argument
jcs222 has quit [Ping timeout: 265 seconds]
<webgen>
can anyone point me to how to use emacs rubymode ? I am new to both emacs and ruby !
<webgen>
I have ruby and emacs both installed on my lubuntu, whats next?
<centrx>
Switch to vim!
Megtastique has quit []
alexju has quit [Remote host closed the connection]
<webgen>
centrx, i was actually starting with vim but its weirder
mgberlin has joined #ruby
atno has joined #ruby
itadder has quit [Remote host closed the connection]
<webgen>
centrx and I couldnt even find a good tutorial for vim. if u point me to one then I might change my mind lol
itadder has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<shevy>
itadder you describe the commandline here. the commandline is available inside of ruby code in the constant ARGV. do p ARGV inside your script to analyze
jcs222 has joined #ruby
<centrx>
webgen, The basics is there is a command mode and an insert mode. Go into insert mode to edit by pressing "i" or <Insert>. Exit insert mode with <Esc>
<elaptics>
webgen: there is a tutorial built in to vim, but for external resources try http://vim-adventures.com/
<webgen>
thanks centrx that explains a lot haha
yubrew has joined #ruby
<elaptics>
webgen: if you're just starting out, start with whatever editor you're used to. Don't complicate things further
<webgen>
elaptics, i have heard about the built in tutorial but i need a tutorial how to access the tutorial lmfo thanks for external though
mavcunha has joined #ruby
<elaptics>
webgen: you just type :help when you first start vim
<webgen>
elaptics I am used to netbeans and stuff like that but ruby community likes things like vim emacs or sublime
<elaptics>
webgen: there is rubymine if you like ide's
kirun has quit [Quit: Client exiting]
<RubyPanther>
welcome to the tyranny of mode-based editing
<webgen>
elaptics I tried but i dont want to buy it haha
<webgen>
elaptics couldnt crack it on ubuntu
itadder has quit [Ping timeout: 265 seconds]
<webgen>
ok i ll try vim, haha
<centrx>
Yay. Another convert.
<RubyPanther>
emacs lets you do everything from a pull-down menu
maletor_ has quit [Quit: Computer has gone to sleep.]
<elaptics>
webgen: it'll be the same but more modern underpinnings I believe. Wouldn't worry about that yet, it's still early in development so doubt it'll be ready for primetime for another year or two
<webgen>
elaptics kk thanks dude
sparrovv has joined #ruby
simono has joined #ruby
simono has quit [Client Quit]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
speakingcode has joined #ruby
Hanmac1 has joined #ruby
gilest has joined #ruby
chrisseaton has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
chrisseaton has joined #ruby
jetblack_ has joined #ruby
ringaroses1 has joined #ruby
jonah_k has quit [Remote host closed the connection]
jzig has quit []
Xeago has joined #ruby
byprdct has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
grzywacz has quit [Quit: :wq]
grampajoe has joined #ruby
ringaroses has quit [Ping timeout: 264 seconds]
<webgen>
elaptics I am stuck in insert mode
<elaptics>
webgen: press escape
<elaptics>
webgen: puts you back in command mode
ringaroses1 has quit [Ping timeout: 240 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
<webgen>
elaptics haha thanks one more thing |tutor| is the command, I just push ":" and the I put in |tutor| ?
Megtastique has joined #ruby
tvw has quit []
nisstyre has quit [Quit: WeeChat 0.4.3]
griffindy has joined #ruby
claymore has quit [Quit: Leaving]
<elaptics>
webgen: I just checked you can actually just run vimtutor from the terminal
<elaptics>
webgen: that should take you through the basics
<webgen>
elaptics cool, at last I got something started :D
joelroa has quit [Ping timeout: 244 seconds]
Cope__ has quit [Ping timeout: 244 seconds]
codeitagile has quit [Quit: Leaving.]
Cope has joined #ruby
Matriks has quit [Remote host closed the connection]
nath_schwarz has quit [Remote host closed the connection]
curious_ has quit [Ping timeout: 245 seconds]
Matriks has joined #ruby
xaq has joined #ruby
derek_c has joined #ruby
lw has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
jph98_ has joined #ruby
rahult has joined #ruby
codeitagile has joined #ruby
alexherb1 has quit [Quit: WeeChat 0.4.3-dev]
alexherbo2 has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Matriks has quit [Ping timeout: 244 seconds]
codeitagile has quit [Remote host closed the connection]
alexherbo2 has quit [Client Quit]
mercwithamouth has joined #ruby
jph98 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
jph98_ is now known as jph98
rahult_ is now known as rahult
tolstoi has quit [Ping timeout: 245 seconds]
Matriks has joined #ruby
centrx has joined #ruby
jcs222 has quit [Quit: leaving]
ndrei has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
lyanchih has joined #ruby
sdouglas has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
wiku5_ has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
jonah_k has joined #ruby
codeitagile has joined #ruby
mikepack has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
redhands has joined #ruby
<webgen>
which one is the most popular addon for vim and how to install it?
kennym1 has joined #ruby
ndrei has joined #ruby
grampajoe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Read error: Connection reset by peer]
jph98_ has joined #ruby
Xeago has joined #ruby
Butcho has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
mansi has joined #ruby
Salve has joined #ruby
Salve_ has quit [Ping timeout: 252 seconds]
kennym has quit [Ping timeout: 252 seconds]
<shevy>
vim!
<shevy>
sublime addon beats it webgen
jph98 has quit [Ping timeout: 244 seconds]
jph98_ is now known as jph98
dodosan has quit [Remote host closed the connection]
<webgen>
shevy so I am split three ways some people tell me to use emacs some sublime and most of them tell me it about vim hahaha
<shevy>
well
<shevy>
whatever the solution, if the question is between vim and emacs, don't pick either of them
Matriks has quit [Remote host closed the connection]
<shevy>
whether it then is sublime or some other editor that is not so important
<shevy>
I actually don't use sublime nor vim nor emacs :P
angusiguess has joined #ruby
<webgen>
shevy so what do you use?
<shevy>
bluefish 1.0.7 in the minimal variant!
<shevy>
almost no menus
<shevy>
it still had custom keybindings
<shevy>
2.x got rid of that :(
<shevy>
stupid version downgrades
<webgen>
shevy i think i am good, I had enough nausea diving into emacs/vim
grampajoe has joined #ruby
hermanmunster has joined #ruby
BraddBitt has joined #ruby
BraddPitt has quit [Ping timeout: 264 seconds]
<shevy>
hehe
hermanmunster has quit [Remote host closed the connection]
<shevy>
they mess with the brain
hermanmunster has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<redhands>
oo editor war. emacs is the greatest
mansi has quit [Ping timeout: 252 seconds]
<deepy->
all hail eclipse
<webgen>
lol sounds ridiculous
fgo has joined #ruby
hermanmunster has joined #ruby
<redhands>
ew eclipse, quit your trolling you.
nomenkun has joined #ruby
<webgen>
i dont deslike either editor, i just have fun with the passion of all sides haha
<deepy->
I'm a java developer by night
<deepy->
or was it full moon?
<redhands>
oh well in that case, your love of eclipse is perfectly justified
<mostlybadfly>
practicing factoring. would there be an even simpler way to write this? puts 1 < 2 == true ? "One is less than two!" : " One is not less than two."
kennym1 has left #ruby [#ruby]
blackmesa has quit [Read error: Connection reset by peer]
<webgen>
guys I am trying to post on vim channel and tells me I cant send to that channel, why?
<anth0ny_>
Python guy here, I know almost nothing about Ruby. What does it mean when something is like "foo 'bar'". How is that different from "foo = 'bar'"?
<anth0ny_>
I'm asking in relation to a Homebrew formula, such as :https://github.com/Homebrew/homebrew-science/blob/master/gmt.rb#L4
freerobby has joined #ruby
nfk has quit [Quit: yawn]
seksifemale has joined #ruby
<centrx>
anth0ny_, It is a method call with 'bar' as the argument
<atmosx>
anth0ny_: foo 'bar' => foor('bar')
<centrx>
anth0ny_, Same as foo('bar')
yubrew has quit [Ping timeout: 244 seconds]
<anth0ny_>
ah, okay, I somewhat suspected that. thanks centrx and atmosx
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]