<hplc>
i dont get it at all......that [0] solved it all
<hplc>
why?
RegulationD has quit [Ping timeout: 255 seconds]
<hplc>
now it works, but i cant understand the presence of the [0]
<al2o3-cr>
hplc: ["bla bla bla"] is an array which contains a string at index 0 ["bla bla bla"][0] returns "bla bla bla" now you can split with "bla bla bla".split ''
<hplc>
so in an array, i MUST declare what INDEX to work on?, and everything in its entirety between the " " IS de facto one and the same string AT index 0 ??
<crowell>
array doesn't have .split
<hplc>
i feel braindead, been sitting with ruby since 18:30 and now its 04:00 here
arescorpio has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
<crowell>
hplc: so, do you understand
<crowell>
that .split is a method that works on strings
<hplc>
yes, i believe so
jenrzzz has joined #ruby
<crowell>
so if you have an array, array doesn't know .split
Guest73337 has joined #ruby
<crowell>
you have to tell it which element to apply split to
<al2o3-cr>
hplc: and array start at 0 not 1
qwertme has joined #ruby
<al2o3-cr>
unlike lua but thats a different story ;P
<al2o3-cr>
hplc: if your not sure ask ;)
<xxneolithicxx>
you're
<xxneolithicxx>
ftfy
Mia has quit [Write error: Connection reset by peer]
<Papierkorb>
al2o3-cr: have you been around in #lua ?
<al2o3-cr>
not much been there now and again
<hplc>
well i dont want to bother you excessivly, and im just on day1 on my adventure
<al2o3-cr>
xxneolithicxx: cheers :)
<crowell>
hplc: you can do somethign like this to work on all of them
<al2o3-cr>
money_mayweather vs pacman in roughly an hour
hewenhong has quit [Ping timeout: 250 seconds]
Dakuan has joined #ruby
balazs has joined #ruby
nobitanobi has quit [Remote host closed the connection]
babykosh has joined #ruby
babykosh has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brozo has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
keen____ has quit [Read error: Connection reset by peer]
keen____ has joined #ruby
kblake has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
icebourg has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
kblake has quit [Ping timeout: 256 seconds]
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
Renich has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest73337 is now known as nii236
balazs has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
fgo has joined #ruby
ruby008 has joined #ruby
iamninja has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
SleepDeprived has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
ruby008 has quit [Ping timeout: 246 seconds]
Dakuan has quit [Remote host closed the connection]
tuelz1 has quit [Ping timeout: 244 seconds]
SleepDeprived has quit [Ping timeout: 246 seconds]
SleepDeprived has joined #ruby
Dakuan has joined #ruby
moeabdol has quit [Ping timeout: 256 seconds]
mattp|spurs is now known as mattp
PhantomSpank has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
PhantomSpank has joined #ruby
Renich has quit [Quit: leaving]
AlphaAtom has quit [Ping timeout: 272 seconds]
threh has quit [Quit: Leaving]
tuelz1 has joined #ruby
charliesome has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
SleepDeprived has quit [Ping timeout: 246 seconds]
dc has joined #ruby
sprink has left #ruby [#ruby]
swgillespie has joined #ruby
RegulationD has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
ghr has joined #ruby
casadei_ has joined #ruby
that1guy has joined #ruby
i8igmac has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
kaspernj has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Remote host closed the connection]
casadei_ has quit [Ping timeout: 256 seconds]
lidenskap has quit [Remote host closed the connection]
baweaver has joined #ruby
DerisiveLogic has joined #ruby
braincra- has quit [Quit: bye bye]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
dc has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
dc has joined #ruby
CloCkWeRX has joined #ruby
konsolebox has joined #ruby
havenwood has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
braincrash has joined #ruby
Matachin_ has joined #ruby
dc has quit [Remote host closed the connection]
turtil has quit [Ping timeout: 264 seconds]
moted has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
multi_io has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
Matachines has quit [Ping timeout: 245 seconds]
multi_io has joined #ruby
vim_shimm has joined #ruby
SleepDeprived has joined #ruby
ohaibbq has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
visualphoenix has joined #ruby
nobitanobi has joined #ruby
Matachin_ is now known as Matachines
AndroUser466 has joined #ruby
jaybe1001 has joined #ruby
<visualphoenix>
hey ruby folks - i'm having a strange issue with some yaml dumping… i'm currently compiling 2.0.0-p645 to make sure i'm not crazy - if you run this gist: https://gist.github.com/visualphoenix/17e3c6ead5aa9c4c5b2d - the public key email/comment keeps dumping to a newline… can't figure out how to keep it so input = output
<visualphoenix>
YAML.dump puts foo@bar.com on a newline
<visualphoenix>
driving me nuts
SleepDeprived has quit [Quit: SleepDeprived]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 276 seconds]
juanpablo__ has joined #ruby
A205B064 has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
Brozo has quit [Remote host closed the connection]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
SleepDeprived has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ohaibbq has joined #ruby
SleepDeprived has quit [Client Quit]
fedexo has joined #ruby
claptor has joined #ruby
<visualphoenix>
/j #coreos
vim_shimm has quit [Ping timeout: 255 seconds]
visualphoenix has left #ruby [#ruby]
juanpablo__ has quit [Ping timeout: 272 seconds]
Brozo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
tjbiddle has quit [Quit: tjbiddle]
blackmesa has quit [Quit: WeeChat 1.1.1]
dc has joined #ruby
that1guy has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
ramfjord has joined #ruby
that1guy has joined #ruby
ruby973 has joined #ruby
AndroUser466 has quit [Quit: good bye]
SleepDeprived has joined #ruby
balazs has joined #ruby
SleepDeprived has quit [Client Quit]
ruby973 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
weemsledeux has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
that1guy has quit [Quit: This computer has gone to sleep]
nii236 has quit [Ping timeout: 256 seconds]
wmoxam has quit [Quit: leaving]
RegulationD has quit [Ping timeout: 255 seconds]
wmoxam has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
icebourg has quit []
wmoxam has joined #ruby
wmoxam has quit [Changing host]
axisys has quit [Remote host closed the connection]
tjbiddle has joined #ruby
ponga has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
nobitanobi has quit [Remote host closed the connection]
fgo has joined #ruby
32NABV7BP has joined #ruby
nobitanobi has joined #ruby
iamninja has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 264 seconds]
nahtnam has joined #ruby
32NABV7BP has quit [Client Quit]
Eiam_ has joined #ruby
baweaver has joined #ruby
f3lp has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
claptor has quit [Quit: this channel is bakas]
workmad3 has joined #ruby
pontiki has quit [Quit: leaving]
bean has joined #ruby
nobitanobi has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
workmad3 has quit [Ping timeout: 256 seconds]
julian-delphiki has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
xsdg has quit [Ping timeout: 272 seconds]
f3lp has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
sent1nel has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
vim_shimm has joined #ruby
djbkd has quit [Quit: Leaving...]
arescorpio has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 244 seconds]
jayeshsolanki has joined #ruby
ponga has quit [Quit: Leaving...]
xsdg has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
The_Phoenix has joined #ruby
websoftwarez has joined #ruby
websoftwarez has quit [Changing host]
websoftwarez has joined #ruby
nii236 has joined #ruby
Mark-6ma has joined #ruby
julian-delphiki has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
balazs has quit [Remote host closed the connection]
bean has quit [Ping timeout: 264 seconds]
Brozo has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
sent1nel has joined #ruby
lidenskap has joined #ruby
vim_shimm has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
RegulationD has joined #ruby
that1guy has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
papashou has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
danman has joined #ruby
lavros has joined #ruby
danman has quit [Client Quit]
RegulationD has quit [Ping timeout: 255 seconds]
wjimenez5271 has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
wjimenez5271 has quit [Client Quit]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
icebourg has joined #ruby
doodlehaus has quit [Ping timeout: 244 seconds]
ponga has joined #ruby
beneggett has joined #ruby
Brozo has joined #ruby
bim has joined #ruby
bim is now known as Guest128
Brozo has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
yoni has joined #ruby
yoni is now known as Guest5241
lidenskap has joined #ruby
Akagi201 has quit [Ping timeout: 252 seconds]
platzhirsch has quit [Client Quit]
michael_mbp has quit [Excess Flood]
nii236 has quit [Quit: WeeChat 1.1.1]
michael_mbp has joined #ruby
bim has joined #ruby
bim is now known as Guest15348
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
bebijlya has quit [Ping timeout: 265 seconds]
bebijlya has joined #ruby
ndrei has joined #ruby
<agent_white>
shevy: What I am trying to figure out, is how to make it fun so I'd want to do it.
RegulationD has joined #ruby
<shevy>
hmm
narcan has joined #ruby
<agent_white>
Once that comes to me, I think I'll write it.
<agent_white>
I was thinkign about a
<shevy>
since when is programming fun!
narcan has quit [Max SendQ exceeded]
turtil has quit [Ping timeout: 246 seconds]
<agent_white>
"Five W's" version of a shell... a little DSL that makes figuring shit out a lot more intuitive.
<agent_white>
Hahah.
<agent_white>
Not when, but why!
thatslifeson has joined #ruby
KnownSyntax has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
casadei_ has joined #ruby
thatslifeson has quit [Ping timeout: 240 seconds]
<agent_white>
I decided to stay after work and attach sticky notes to everyones timecard. I asked one employee withe the initials MM if she prefers M&M to skittles, and why M&M is spelled backwards.
<agent_white>
Tomorrow I will find these truths of the universe.
moeabdol has quit [Quit: WeeChat 1.1.1]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<agent_white>
Though the pregnant ladies answer on if having a baby-human inside her swimming around means aquatic abilities are increased will be more exciting to find out.
<shevy>
what the
<agent_white>
Or I may clock-in and shortly afterwards end up in a straightjacket. Either way it will be an exciting day for all.
<shevy>
is this Alien I
<agent_white>
shevy: That is my question!
<agent_white>
:D
casadei_ has quit [Ping timeout: 272 seconds]
* agent_white
shrugs
<agent_white>
Hopefully it makes 'clocking-in' a bit more funny... good way to start the day.
lidenskap has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<shevy>
disguise as alien
<shevy>
much better way to start the day
<agent_white>
I should... but the sticky-notes are too far away to retreive.
chinmay_dd has joined #ruby
iotouch has joined #ruby
nfk has joined #ruby
bruno- has joined #ruby
moeabdol has joined #ruby
lxsameer_ has quit [Quit: Leaving]
lxsameer_ has joined #ruby
lxsameer_ is now known as lxsameer
lxsameer has quit [Changing host]
lxsameer has joined #ruby
fgo has joined #ruby
websoftwarez has quit [Ping timeout: 240 seconds]
banister has joined #ruby
sent1nel has joined #ruby
riceandbeans has joined #ruby
ItSANgo_ has quit [Ping timeout: 240 seconds]
ItSANg___ has joined #ruby
juanpablo__ has joined #ruby
sent1nel has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
ChoiKyuSang has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
unshadow has joined #ruby
<unshadow>
Hi guys, a quick question, I want to set Socket linger option for a ruby sokcet, is this the way to do it : socket.setsockopt(Socket::Option.linger(true, 10)) ?
vim_shimm has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
vim_shimm has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Quit: Leaving.]
edwinvdgraaf has quit [Remote host closed the connection]
RegulationD has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
chinmay_dd_ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
chinmay_dd has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
Guest15 has joined #ruby
Guest15 has quit [Client Quit]
<shevy>
I did not even know there is a linger method
<shevy>
unshadow wouldn't you also wish the ruby docs to be much better than they are? :)
DEA7TH has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
LJT has joined #ruby
iotouch has joined #ruby
LJT has quit [Client Quit]
CorpusCallosum has joined #ruby
Guest15 has joined #ruby
Guest15 has quit [Remote host closed the connection]
<Sillian>
The self keyword in Ruby is used for class methods? As an example in C++, a method to control static variables? (One instance per class rather than one instance per object)
yaw has joined #ruby
Juanchito has joined #ruby
moeabdol has joined #ruby
<shevy>
The self keyword is also used for class methods
<shevy>
>> class Foo; def self.bar; puts 'this is bar from Foo'; end; end; Foo.bar()
Azure has quit [Read error: Connection reset by peer]
<Sillian>
<shevy> The self keyword is also used for class methods
<shevy>
I think the part "...check link for more" could probably be omitted, and perhaps yo might become "yo" instead or something, to denote where it stops and ends to evaluate
<Sillian>
Which was exactly what I said.
<shevy>
yes and I said also ;)
<Sillian>
Well if you don't know C++ then it's hard to know what a static variable is.
Azure has joined #ruby
<shevy>
inside your given class you could use self.name or similar too, or perhaps self.class.to_s
<shevy>
like when you want to autogenerate class methods
airdisa has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
mostlybadfly has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Remote host closed the connection]
yh has quit [Ping timeout: 272 seconds]
<unshadow>
shevy, yeha better docs = my dream
<shevy>
:)
lxsameer has joined #ruby
millerti has joined #ruby
oo_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
einarj has quit [Remote host closed the connection]
lxsameer has quit [Remote host closed the connection]
yh has joined #ruby
lkba has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sillian>
shevy, I see, thanks.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore>
but do keep in mind that singletons are useless
spider-mario has joined #ruby
thatslifeson has joined #ruby
<Sillian>
"Buttherules of scope assure us that each object method operates onlyon the object whose methodisbeingcalled,providinguswiththe necessary illusion thatobject methods are associated strictly with their objects."
colorados has quit [Quit: Leaving]
<Sillian>
Hmm, so we are not sure if for every object created there will be a copy each time for the methods?
Zai00 has quit [Quit: Zai00]
lordkryss has joined #ruby
casadei_ has joined #ruby
thatslifeson has quit [Ping timeout: 244 seconds]
LJT has joined #ruby
jayeshsolanki has joined #ruby
FernandoBasso has joined #ruby
jeromelanteri has joined #ruby
LJT has quit [Client Quit]
Soda has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
naftilos76 has quit [Remote host closed the connection]
RegulationD has joined #ruby
<jhass>
Sillian: can you try to rephrase the question? not sure what you're asking
thekodols has quit [Ping timeout: 265 seconds]
charliebr73 has joined #ruby
narph has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
moeabdol has quit [Quit: WeeChat 1.1.1]
lxsameer has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
jaybe1001 has joined #ruby
pontiki has joined #ruby
hewenhong has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
hewenhong has joined #ruby
moeabdol has joined #ruby
jaybe1001 has quit [Remote host closed the connection]
hewenhon_ has joined #ruby
OnBrokenWings has joined #ruby
mostlybadfly has joined #ruby
OnBrokenWings has quit [Remote host closed the connection]
odlox has quit [Remote host closed the connection]
antgel has joined #ruby
relix has joined #ruby
agent_white has quit [Quit: gnight]
yh has quit [Ping timeout: 256 seconds]
<shevy>
Sillian if you create an object from a given class, via new, that object will have the methods that the class specified
AlphaAtom has quit []
<jhass>
"have" = "respond to"
<shevy>
jhass please
<shevy>
Sillian you can in ruby at run-time change the behaviour of the objects, for instance: you can add new methods to your specific object in question
<shevy>
>> class Foo; def bar; puts 'this is bar'; end; end; foo = Foo.new; def foo.bar; puts 'is this really bar?'; end; foo.bar
<shevy>
the documentation worded it in a better way: "method objects are not associated with a particular object" hmm...
<shevy>
method objects? isn't that also an object?
<pontiki>
"a *particular* object"
<shevy>
reads better with pontiki's emphasis
<Sillian>
shevy, I see thank you :)
<Sillian>
shevy, Is Ruby a big language in general?
<shevy>
\o/
<shevy>
yeah I think so
juanpablo__ has joined #ruby
A205B064 has joined #ruby
<shevy>
it is essentially consistent and elegant but there is quite a bit of things one has to know or should know... blocks procs/lambdas ... instance methods vs. class methods/class instance methods ... hmm
<shevy>
matz once said that ruby is like the human body
<Sillian>
So coming from another language, what should I focus more in Ruby? I really want to become good at it before trying out web. Also I'm a bit worried as all the popularity are towards Python, but I don't like Python and Django that's why I'm choosing Ruby.
<shevy>
do/end is almost the same as {} above Sillian
<Sillian>
shevy, Oh I see, looks clean :)
<shevy>
well the simplest I think is just to write some commandline things
<shevy>
the very boring basics - create files, directores, move them, delete them... output stuff to the user... allow things like --help options...
<shevy>
ah, and put stuff into modules too, and use classes
<shevy>
yeah it's true, python is more popular :(
ponga has joined #ruby
<shevy>
I picked ruby because of the old matz interview, did you read it? "The Philosophy of Ruby"
<shevy>
PHP and python are now very close; javascript sort of exploded on TIOBE
<shevy>
ruby fell :(
<shevy>
how it can fall in one year from 11 to 18 eludes me though
<shevy>
TIOBE sacrifices chickens and reads from the bones
<Sillian>
Well, it can also be that many Universities and many young people, kids and such are trying Python out. While Ruby is seen more for advanced developers I guess.
<shevy>
yeah I guess so too, it's probably better than Java to teach as well
AlphaAtom has joined #ruby
<shevy>
Sillian in my case, I would not know which other language to use though. perl, I used it, I can't cope with the syntax. php was semi-ok for web stuff but for commandline, php is simply annoying. ruby is from a technical point of view better than both php and perl
jenrzzz has joined #ruby
<shevy>
momentum is important though
<shevy>
how linux was once ported on less operating systems than netBSD, and they eventually run on more systems these days than netBSD does
<sevenseacat>
php was designed as a web language, only recently has it started making forays into cli
lidenskap has quit [Ping timeout: 256 seconds]
<shevy>
Sillian you could probably easily use python either :)
<toretore>
Sillian: if you want future-proof, choose something with good concurrency/parallelism primitives. this is not really ruby's greatest strength
<shevy>
Sillian sevenseacat is a rails cat by the way, you can ask her many rails questions
* sevenseacat
waves
lxsameer has joined #ruby
<Sillian>
toretore, Oh, is there something you would like to suggest.
<Sillian>
shevy, Heh :)
* Sillian
waves
ascarter has joined #ruby
<toretore>
Sillian: there are many options: go, clojure, erlang, scala, rust; java even
JDiPierro has joined #ruby
<toretore>
what they all have in common is more sophisiticated concurrency primitives
<Sillian>
Well, right now for me Ruby/Rails, even tho I'm not good at it seems the ideal choice for startups. Now, maybe the learning curve will cut the popularity. I have no idea. But for someone that's dedicated to learn Ruby and Rails, what do you think?
<Sillian>
toretore, Try Java for startups. After 6 months, you might have something running.
qwertme has joined #ruby
<toretore>
if you have developers who don't know java, yes
<shevy>
Sillian the learning curve is not thaaaaat bad
<shevy>
just aim for simplicity
<toretore>
java 8 has a lot of attractive new features, and they build on a solid foundation
<toretore>
ruby and its libraries are more hacked together
<shevy>
hehe
<sevenseacat>
i find the learning curve for java to be a lot harder
<toretore>
neither is good nor bad, if you know what to expect
gizmore has joined #ruby
<sevenseacat>
that being said, my only exposure to java was in university, and also a week of trying to learn android
<Sillian>
sevenseacat, If you say that, then you implicitly define Ruby as a very easy language.
<sevenseacat>
which was hopeless because i didnt know java
<sevenseacat>
i do not
<Sillian>
You can pickup Java very fast
<sevenseacat>
but its learning curve is lower.
LJT has quit [Quit: Sleeping...]
<toretore>
what is simple in the beginning often gets much more complicated when your needs expand
<sevenseacat>
Sillian: like i said, *i find* the learning curve to be hard
AlphaAtom has quit [Remote host closed the connection]
<toretore>
what is complicated/difficult in the beginning often has support for the complex problems that you have later on
AlphaAtom has joined #ruby
weemsledeux has joined #ruby
iotouch has joined #ruby
<toretore>
the ruby community, most of the time, focuses on solving simple problems
<sevenseacat>
we Get Shit Done(TM)
<toretore>
yeah, until said shit hits the fan
RandyT has joined #ruby
<sevenseacat>
then we call consultants or spend six months refactoring
<toretore>
rewrite in go
<toretore>
seems to be the new trend
<sevenseacat>
ive heard that one around a bit
<sevenseacat>
or rewrite it in node
<toretore>
haha
<sevenseacat>
depending on whether its a devops doing the bitching or not
<toretore>
yeah that's not going to solve any problems
<sevenseacat>
devops will go for go, everyone else for node
<AlphaAtom>
what is devops
<AlphaAtom>
i hear that term thrown around a lot
<AlphaAtom>
and i have no idea what it means
<toretore>
developers who play sysadmins
<sevenseacat>
its the cool term for a half-developer, half-sysadmin
taiansu has joined #ruby
<AlphaAtom>
oh okay :p
<toretore>
aka every developer ever
<sevenseacat>
heh
<sevenseacat>
i dunno, i know a few who are like 'i just write the code, you do the rest'
<toretore>
yeah, that works as well as a web designer who "designs the page in ps, you do the rest"
<toretore>
they both need some mechanical sympathy for the underlying infrastructure to have their work implemented properly
<sevenseacat>
for sure
Papierkorb has joined #ruby
<sevenseacat>
ive known a few web designers like that too :P
<toretore>
ideally, a single person should know everything; from the kernel up to the designy stuff
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore>
but that's rare
<sevenseacat>
ideally, there should be a lot of overlap and no one person should be solely responsible for something
<toretore>
but then you have to work with other people :(
<sevenseacat>
yeah thats the crappy part.
<toretore>
and people suck
<toretore>
i <3 machines
<toretore>
there's no drama or bullshit with machines
<sevenseacat>
machines dont have hidden agendas or play politics
<toretore>
exactly
* sevenseacat
is the worst person at office politics ever
<toretore>
i've never worked, and will hopefully never work, in an office for this reason
metalic has quit [Quit: Leaving]
<toretore>
humans :(
<sevenseacat>
i have. i dont anymore - now i do remote work and love it to pieces
<adaedra>
Hello
lxsameer has quit [Quit: Leaving]
RegulationD has joined #ruby
<mwlang>
heh…and yet we’re creating software for humans…. :-p
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
i hate that argument
<toretore>
it results in shitty software
<adaedra>
so make better humans?
<toretore>
people think that if you have to do some learning to use a system it's a bad thing
<toretore>
"no, we'll cripple the system so you don't have to think, no problem"
<sevenseacat>
everyone should immediately grok everything there is to know
<sevenseacat>
if you need instructions, its a Bad Design
<sevenseacat>
lololo
fgo has quit [Quit: WeeChat 1.1.1]
<Sillian>
sevenseacat, Could you state some examples where RoR would not be a good choice?
<adaedra>
how is the perfect world you're living in?
<sevenseacat>
i never learn how to properly use so many of the webapps i use, simply because they rely on 'awesome conventions and icons that everyone knows'
<Sillian>
Referring to concurrency above.
<sevenseacat>
Sillian: i havent seen any mention of concurrency, so
RegulationD has quit [Ping timeout: 255 seconds]
<sevenseacat>
if you're building a brochure website (all static content), or you're not building a web app
<sevenseacat>
Rails wouldnt be appropriate for those.
thiagovsk has quit [Quit: Connection closed for inactivity]
<toretore>
there is value in intuitive operation, but not at the cost of the system's integrity
<toretore>
it will come back to bite you, and the users
einarj has joined #ruby
<Sillian>
I was referring to thos
<Sillian>
toretore> Sillian: if you want future-proof, choose something with good concurrency/parallelism primitives. this is not really ruby's greatest strength
j0hnnyk has joined #ruby
<adaedra>
uck
<toretore>
- he said, knowing everything that is to know in this world
<sevenseacat>
its not, but most web apps dont have a lot to do with concurrency or parallelism
<Sillian>
sevenseacat, But for most web applications or blue prints Rails is an excellent choice?
<Sillian>
toretore, sevenseacat Ah ok I see, thanks.
<toretore>
Sillian: it'll get the job done just fine
<sevenseacat>
for data-driven web applications, Rails is an excellent choice.
<Sillian>
Thank you :)
jlast has joined #ruby
mjuszczak has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
mjuszczak has quit [Client Quit]
rejerson69 has joined #ruby
scripore has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
pglombardo has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
qwertme has joined #ruby
charliebr73 has quit [Quit: Leaving]
ascarter has joined #ruby
chinmay_dd_ is now known as chinmay_dd
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
Azure has quit [Ping timeout: 240 seconds]
hplc has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
rejerson69 has quit [Remote host closed the connection]
Azure has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has joined #ruby
lidenskap has joined #ruby
mjuszczak has joined #ruby
thatslifeson has quit [Ping timeout: 255 seconds]
bMalum has quit [Quit: bMalum]
Sillian has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
taiansu has quit [Remote host closed the connection]
<pontiki>
2.1 and 2.2 haven't really had structural changes
<pontiki>
mainly internal stuff
<Surria>
If you guys have other recommended book let me know.
<pontiki>
several :)
<Surria>
books*
<Surria>
Yea just start typing their names :)
<sevenseacat>
!twgr
<pontiki>
black's book: the well-grounded rubyist
<sevenseacat>
grr
<sevenseacat>
the well grounded-rubyist
<sevenseacat>
errr
<sevenseacat>
that one
<pontiki>
olsen's eloquent ruby
JDiPierro has quit [Remote host closed the connection]
<Surria>
Hah :P
taiansu has joined #ruby
<pontiki>
grimm's confident ruby
<pontiki>
and the big one: metz's POODR
<Surria>
Should I buy the new one from 2014 if I already have access to the black one?
oo_ has quit [Remote host closed the connection]
<Surria>
I think the black one is from 2009.
redlegion has quit [Quit: later errywun]
<pontiki>
i don't know. i haven't read the lastest to compare.
Soda has quit [Remote host closed the connection]
<sevenseacat>
the old one was written for ruby 1.9.1 from memory.
<Surria>
sevenseacat, Yep correct, 1.9.1
<sevenseacat>
then its woefully out of date now.
<Surria>
oh :(
nii236 has joined #ruby
<pontiki>
the stuff that black talks about isn't out of date, even in the Ruby for Rails book is still quite valid
* sevenseacat
shrugs and goes back to work
<pontiki>
it's not a book on specific syntax
<pontiki>
it's how to write good ruby
<Surria>
pontiki, Well, there are the other books for that also. Eloq, The Ruby Way etc.
mleung has joined #ruby
<pontiki>
indeed
<pontiki>
do you have a limited time and budget on books?
sandstrom has quit [Quit: My computer has gone to sleep.]
<Surria>
I wouldn't say so but I'm unable to purchase anything right in until a month from now for specific reasons.
<Surria>
So if you have other great books to recommend, please let me know.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
airdisa has quit []
<pontiki>
i don't think there's any rush, is there?
<Surria>
Nop
Musashi007 has joined #ruby
<sevenseacat>
we'll let you know in a month then :)
<pontiki>
because it's going to take more than a month to read and digest all that anyway, and i would *not* recommend just doing a read-through on any of them
<Surria>
sevenseacat, My local library has a lot of books but I don't know why they didn't get this one. I guess because they already have the old one :(
doodlehaus has joined #ruby
<pontiki>
my local library has tech books from 2006
<Surria>
pontiki, I will of course finish read any book I start. :)
<pontiki>
mostly all windows stuff
<sevenseacat>
i havent stepped in a library in over ten years, thats how long theyve been more than irrelevant for.
<pontiki>
*shrug* i don't think it's important to finish a book
<pontiki>
i think it's important to practice, practice, practice what you read
thatslifeson has joined #ruby
JDiPierro has joined #ruby
<Surria>
Yea of course but I'm a book nerd also. I like to read and learn from books. Practice is a must, yes :)
freerobby has joined #ruby
A124 has joined #ruby
A124 has joined #ruby
A124 has quit [Changing host]
airdisa has joined #ruby
balazs has quit [Remote host closed the connection]
greenbagels has joined #ruby
a346 has joined #ruby
lidenskap has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
vim_shimm has joined #ruby
thatslifeson has quit [Ping timeout: 245 seconds]
naftilos76 has joined #ruby
airdisa has quit [Client Quit]
Musashi007 has quit [Ping timeout: 265 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
kyrylo has quit [Client Quit]
hplc has quit [Read error: Connection reset by peer]
hplc_ has joined #ruby
shellfu has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
Guest9992 has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
lidenskap has quit [Ping timeout: 252 seconds]
puppetmonkey has quit [Quit: puppetmonkey]
puppetmonkey has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
taiansu has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
iamjarvo_ has joined #ruby
endash has joined #ruby
taiansu has joined #ruby
Matachines has joined #ruby
doodlehaus has joined #ruby
riotjones has joined #ruby
nii236 has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
pwattste has joined #ruby
Matachines has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
Matachines has joined #ruby
ghr has joined #ruby
qwertme has joined #ruby
arta82 has joined #ruby
mleung has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
konsolebox has quit [Remote host closed the connection]
moeabdol has joined #ruby
JDiPierro has quit [Remote host closed the connection]
moeabdol has quit [Client Quit]
robbyoconnor has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
workmad3 has joined #ruby
CustosLimen has quit [Ping timeout: 264 seconds]
nii236 has quit [Quit: WeeChat 1.1.1]
sent1nel has joined #ruby
RegulationD has joined #ruby
tommylom1ykins is now known as tommylommykins
mwlang has quit [Quit: mwlang]
workmad3 has quit [Ping timeout: 272 seconds]
sent1nel has quit [Ping timeout: 264 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
balazs has joined #ruby
Rollabunna has joined #ruby
claw_ has joined #ruby
claw has quit [Ping timeout: 245 seconds]
balazs has quit [Ping timeout: 252 seconds]
juanpablo__ has joined #ruby
hplc_ has quit [Remote host closed the connection]
Matachin_ has joined #ruby
balazs has joined #ruby
bim has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bim is now known as Guest20255
Matachines has quit [Ping timeout: 265 seconds]
serivich has joined #ruby
mistermocha has quit [Remote host closed the connection]
axisys has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
kblake has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 264 seconds]
barhum2013 has quit [Quit: barhum2013]
ndrei has joined #ruby
mjuszczak has quit []
freerobby1 has joined #ruby
Azure has quit [Quit: Oops.]
robustus has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
puppetmonkey has quit [Quit: puppetmonkey]
puppetmonkey has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
jack_rabbit has joined #ruby
Matachin_ is now known as Matachines
iamjarvo has joined #ruby
advorak has joined #ruby
ndrei has joined #ruby
havenwood has joined #ruby
amclain has joined #ruby
CamonZ has joined #ruby
mleung has quit [Quit: mleung]
Guest20255 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
barhum2013 has joined #ruby
puppetmonkey has quit [Quit: puppetmonkey]
freerobby1 has quit [Quit: Leaving.]
Channel6 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vim_shimm has joined #ruby
dseitz has joined #ruby
Musashi007 has joined #ruby
banister is now known as banisterfiend
<shevy>
I love books
<shevy>
old classical ones
<shevy>
not kindle swindles
bim has joined #ruby
jack_rabbit has quit [Remote host closed the connection]
bim is now known as Guest90187
ghr has joined #ruby
tjbiddle has joined #ruby
jack_rabbit has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
r0bby_ has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
barhum2013 has quit [Quit: barhum2013]
balazs has quit [Remote host closed the connection]
platzhirsch has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
mrmargolis has joined #ruby
vim_shimm has quit [Ping timeout: 264 seconds]
LJT has joined #ruby
enebo has quit [Quit: enebo]
gizmore has joined #ruby
mjuszczak has quit []
Zenon has joined #ruby
Asher has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
RegulationD has joined #ruby
LJT has quit [Client Quit]
balazs has joined #ruby
balazs has quit [Remote host closed the connection]
thatslifeson has joined #ruby
hectortrope has joined #ruby
balazs has joined #ruby
nobitanobi has joined #ruby
Asher has joined #ruby
thekodols has joined #ruby
einarj has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
thatslifeson has quit [Ping timeout: 250 seconds]
LJT has joined #ruby
pwattste has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 272 seconds]
mrmargolis has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
einarj has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
jeramy_s has joined #ruby
nobitano_ has joined #ruby
Channel6 has quit [Quit: Leaving]
nobitano_ has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
relix has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
nobitano_ has joined #ruby
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
Guest24 is now known as lele
nobitano_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
freerobby has joined #ruby
despai has joined #ruby
nobitanobi has quit [Remote host closed the connection]
millerti has joined #ruby
<despai>
Hello. Does anybody knows how can I reuse a context (with before(:each)) scenario in rspec? Im finding lots of info about how to reuse specs, what about scenarios? I have pretty big scenarios and it doesn't feel correct to copy/paste them
<despai>
(rspec 3)
mtakkman has joined #ruby
<jhass>
despai: apply normal OOP, create a class or method and call it
freerobby has quit [Client Quit]
nobitanobi has joined #ruby
<despai>
so you suggest to create like a UsersScenarios class where I defined static methods?
<jhass>
if you never make an instance of it, use a module, but yeah
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<despai>
mmmmm, I still have to repeat the context title... context "when the user was confirmed within 1 hour ago"
<jhass>
or just a toplevel method in your spec_helper.rb or in a file in spec/support, or you can include your own helper collection module into the main RSpec context with conifg.include
freerobby has joined #ruby
Zai00 has quit [Quit: Zai00]
<jhass>
so you have a context with a repeating before hook, but different specs in each?
<despai>
yes, many, nested
naftilos76 has quit [Read error: Connection reset by peer]
<despai>
the context is the same, but the combination with parent or children contexts is what is different
<jhass>
I guess something like def foo_context(&block); context("when the user...") do before(&setup_foo_context); instance_eval(&block); end; end; would work, but not sure it's worth it
<jhass>
(when defined on a module that's config.include'ded)
<despai>
did is how you did it with your shared scenarios?
zzing has joined #ruby
<jhass>
"I guess" = "I never tried but know enough about Ruby and RSpec to make that educated guess"
<jhass>
= "take this idea, might work for you"
serivich has joined #ruby
Leikila has joined #ruby
<despai>
cool
<despai>
thanks
chimche has joined #ruby
Guest49763 has quit [Ping timeout: 255 seconds]
lavros has quit [Remote host closed the connection]
Mohan has joined #ruby
Mohan is now known as Guest49913
r0bby_ has quit [Ping timeout: 256 seconds]
DerisiveLogic has quit [Remote host closed the connection]
LJT_ has joined #ruby
LJT has quit [Ping timeout: 244 seconds]
c355E3B has joined #ruby
DerisiveLogic has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ohcibi has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
baweaver has joined #ruby
ghr has joined #ruby
pontiki has joined #ruby
JimmyNeutron has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
taiansu has quit [Remote host closed the connection]
kyrylo has joined #ruby
Fingel has joined #ruby
taiansu has joined #ruby
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
Papierkorb_ has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
despai has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
camilasan has quit [Remote host closed the connection]
j_mcnally has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 265 seconds]
taiansu has quit [Ping timeout: 276 seconds]
Papierkorb has quit [Ping timeout: 276 seconds]
mtakkman has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
camilasan has joined #ruby
_xCept has quit [Ping timeout: 250 seconds]
vim_shimm has quit [Ping timeout: 245 seconds]
LJT_ has quit [Quit: Sleeping...]
RegulationD has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<shevy>
platzhirsch are you still in the UK?
<platzhirsch>
jupi
<shevy>
damn
<shevy>
you become more like monty python every day
RegulationD has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
despai has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
<platzhirsch>
python
<platzhirsch>
*barf*
juanpablo__ has joined #ruby
jayeshsolanki has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
<ght>
Question: I have a mysql DB record that is of type Decimal 15,2. I would like to declare a ruby variable of that type. How do I do that?
taiansu has joined #ruby
Papierkorb_ is now known as Papierkorb
juanpablo__ has quit [Ping timeout: 240 seconds]
<ght>
Right now the DB record is empty, so I can't simply do the whole Ruby "dont declare variable types, assign a value and assume the compiler defined it right"
<ght>
Is there a way to define a variable of a type to match the Mysql Decimal 15,2 type?
rkazak has joined #ruby
circ-user-KH1p2 has joined #ruby
<jhass>
ght: what are you using to fetch/store records? ORM? mysql2 gem directly?
asmodlol has quit [Ping timeout: 256 seconds]
<ght>
I have ruby code where I interact with a Mysql DB via the mysql2 gem, yes.
<ght>
I need to perform math operations on a variable then write it to that record in the DB.
Spami has joined #ruby
<ght>
But the math operations involve money, which, after much research, it has been recommended that the mysql column type be Decimal 15,2 to ensure accuracy.
lidenskap has joined #ruby
<Papierkorb>
Didn't MySQL have the MONEY datatype?
<ght>
Is it possible to declare a Ruby variable of a type to match the format of Decimal 15,2 in mysql?
<ght>
Anyone?
qwertme has joined #ruby
sent1nel has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<toretore>
ght: you don't declare variables in ruby
<ght>
I'm aware of this, but you can call say, Hash.new and BigDecimal.new
<toretore>
they don't have types
<jhass>
ght: for money use BigDecimal in Ruby or the money gem
<toretore>
so.. BigDecimal.new then
<dorei>
the best advice i've ever received about handling money, use the minimum accounting unit and convert them to integers, ie if the smallest account unit is 1 cent, then represent 1 euro as Integer 100
<ght>
So BigDecimal(15,2) will match the Decimal 15,2 mysql2 format?
<toretore>
ght: how about reading the docs for BigDecimal?
<jhass>
ght: probably not
<ght>
lol
<jhass>
but that's not important
<ght>
Ok.
<Papierkorb>
banks also like to calculate with more than 2 decimals
<ght>
It's not important. So is it recommended, for monitary operations, I use the "money" gem to ensure accuracy?
<shevy>
k show me the math to describe the origin of life or the creation of the universe
<Papierkorb>
and everything too
<weaksauc_>
42
<shevy>
Leikila yeah those are fancy experiments, everybody loves them
<Leikila>
shevy, The math itself is there. But we as humans are close enough but also too far away.
Azure has joined #ruby
<Leikila>
shevy, It's something like, you know it's there but you don't know how and why it works.
<shevy>
k add 10 years of math study
<shevy>
you stil don't know why it reall yworks
lidenskap has joined #ruby
<shevy>
you just have finer tuned models
<shevy>
we can calculate a single large molecule with the help of a computer if given some time
<shevy>
we can't simulate a whole cell
jayeshsolanki has quit [Client Quit]
<Leikila>
shevy, There is much more than that. It's abstract. Same as in computer programming, for example in C++, I open a stream to a file. I might not know how the actual I/O work, but I know I can do it :)
workmad3 has quit [Ping timeout: 246 seconds]
<shevy>
computer programming is really much much easier
<Leikila>
Of course.
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
well you could use a computer to do the calculation of course
sent1nel has joined #ruby
bintelli has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<shevy>
ideally you'd have a computer explain to you why things work :)
<Leikila>
For example. Everything that has momentum, is really a wave. So, take light as an example, it behaves both as light and particle. Now, that gives light two difference properties. This is the heart of quantum mechanics. It's a new level of physics. In newtonian physics, if you throw a ball at a wall, it will bounce back. That might but be true in quantum mechanics. Totally different rules when you go down in temperature a
<Leikila>
nd size.
<Leikila>
That might not*
The_Phoenix has quit [Read error: Connection reset by peer]
<Leikila>
shevy, In fact. The internet was made by physicists :)
<atmosx>
Leikila: interesting.
thekodols has joined #ruby
<atmosx>
shevy: most googlers I know off are phycistis
<atmosx>
they make excellent programmers, in contrast with chemists apparently.
<shevy>
Leikila yeah but there was the ARPAnet before that
thatslifeson has quit [Remote host closed the connection]
<Leikila>
atmosx, It really is as you go further :)
LJT has joined #ruby
<Leikila>
shevy, Yea by computer engineers and physicists :)
Xiti has quit [Quit: Xiti]
<Leikila>
made by*
nettoweb has joined #ruby
<atmosx>
Leikila: don't brag too much about it, it's all just a small part of *some* applied mathematics...
<Leikila>
If I had to choose again, I would choose pure mathematics. Applied can be fun, but pure is the king :)
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx>
That said, I really like the first bunch of scientists from Newton's era, which were mixing everything really... Cause everything is 'one' in the end of the day from CS to Physics to chemistry to biology...
<atmosx>
Leikila: you that bright? congrats :-) it's hard..
yosafbridge has quit [Ping timeout: 248 seconds]
<atmosx>
I mean it's hard to be good at theoretical maths
<atmosx>
shevy: what are you studying now?
Channel6 has joined #ruby
taiansu has quit []
websoftwarez has joined #ruby
websoftwarez has quit [Changing host]
websoftwarez has joined #ruby
mjuszczak has quit []
tonyt has joined #ruby
<Leikila>
atmosx, It's hard but as everything else, you have to work on your stuff. You will do great work if you love what you do :)
ghr has joined #ruby
<Leikila>
That's why I'm really learning programming by myself. We don't really have big classes for that except haskell and python.
gambl0re has joined #ruby
yosafbridge has joined #ruby
<gambl0re>
guys....im having trouble installing rspec on ubuntu. i need your help
<gambl0re>
i type "gem install rspec"
<shevy>
atmosx hmm I actually have 4 exams the coming week; first one is actually for a "medical representative" (actually, "a drug-sales advisor"), just the written exam; if that succeeds, I have in 2 weeks an oral exam; the other three are cell biology, biochemical pathways, and some weird botany exam
tonyt has left #ruby [#ruby]
<gambl0re>
usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'rspec-core' (>= 0) among 66 total gem(s) (Gem::LoadError)
<gambl0re>
Checked in 'GEM_PATH=/usr/local/rvm/gems/ruby-2.2.1:/usr/local/rvm/gems/ruby-2.2.1@global', execute `gem env` for more information
<gambl0re>
from /usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
<gambl0re>
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
<gambl0re>
from /usr/local/bin/rspec:22:in `<main>'
<gambl0re>
i get those error message after i type in rspec -v
<atmosx>
gambl0re: pastebin or gist
<gambl0re>
ok
<jhass>
?gist gambl0re
<ruboto>
gambl0re, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<adaedra>
gambl0re: gist the whole trace instead of flooding here parts
<adaedra>
combo x3
<atmosx>
adaedra: rspec-core is missing anyway
spider-mario has joined #ruby
<jhass>
mh, I see a global RVM install
<atmosx>
shevy: oh, good luck!
<jhass>
have fun with that people, I bail
<adaedra>
atmosx: cool, so now with your superpowers, tell me why it can't find it?
<atmosx>
adaedra: becayse you didn't install it?
<adaedra>
why me
<atmosx>
adaedra: you use 'sudo'?
ghr has quit [Ping timeout: 272 seconds]
<adaedra>
why are you suggesting me things
<atmosx>
ah it's the other guy, adaedra well... it's your fault.
<adaedra>
ok
sent1nel has quit [Remote host closed the connection]
<adaedra>
but it doesn't resolves the problem of why gem install can't install a dependency
<atmosx>
adaedra: it sure does!
<atmosx>
shevy: drug-sales advisor? That's a highly paid job here.
<atmosx>
shevy: you opting for it?
<adaedra>
rspec-core is not a dependency of rspec? wut?
<gambl0re>
installation of rspec seems to working using gem install rspec
<gambl0re>
but when i check the version i get bunch of error lines...
<gambl0re>
rspec -v
<atmosx>
gambl0re: what about 'sudo rspec -v'
<shevy>
atmosx nah, I have no interest in it, I just do it for being able to say "bla extra qualification bla"
<gambl0re>
i get 3.2.3...!!!!
<atmosx>
gambl0re: magick!!!!
<gambl0re>
i forgot about using sudo..
<adaedra>
er
<adaedra>
if you can't run gems without sudo, something is broken in your install
LJT has quit [Ping timeout: 264 seconds]
anthony has joined #ruby
<atmosx>
gambl0re: see, there is still magic, love out there... and just for one moment, you can reach happiness!!! Then you start writting tests and shit hits the fan... but until then. Live happy!
<gambl0re>
but after installation of rspec, is it suppoesd to create a rspec directory on my system where i put all my files?
anthony is now known as Guest5420
<gambl0re>
or do i create my own?
<atmosx>
adaedra: jhass has already that covered I think.
<adaedra>
no, you create it yourself, gambl0re
lidenskap has quit [Remote host closed the connection]
<adaedra>
atmosx: the global rvm?
<gambl0re>
ok...thanks.
<adaedra>
that's still not normal that gambl0re needs sudo to run gems and should be fixed
<adaedra>
(imo)
<atmosx>
gambl0re: Everybody here is assuming that you've taken a path that will lead to many problems int he long run. Better install rvm as a USER.
Spami has quit [Quit: This computer has gone to sleep]
sent1nel has joined #ruby
<gambl0re>
i have rvm installed
<gambl0re>
as you can probably tell, im new to linux.
ponga has quit [Quit: Leaving...]
<atmosx>
gambl0re: yes but it's 'globally' installed. It's better if you intall rvm 'locally'.
<adaedra>
gambl0re: your rvm is a global rvm (in /usr), not a user install (in home)
<adaedra>
which apparently can lead to problems
<atmosx>
gambl0re: did you install rvm via apt-get ?
_xCept has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
<gambl0re>
im not sure...i followed a bunch of instructions. i do recall using a apt-get command though.
<atmosx>
gambl0re: What does `which rvm` say?
<havenwood>
gambl0re: Completely uninstall RVM with `rvm implode` and reinstall as a non-root user without using sudo.
RegulationD has joined #ruby
<atmosx>
havenwood: if it's installed via apt-get it's better to remove it via apt-get also.
einarj has joined #ruby
<gambl0re>
usr/local/rvm/bin/rvm
dc has quit [Remote host closed the connection]
Guest5420 has quit [Ping timeout: 245 seconds]
<adaedra>
gambl0re: do you have the instructions you followed somewhere?
<gambl0re>
rspec installed 3.x.x but i need to get an earler version. i tried running sudo gem uninstall rspec. but when i type rspec -v it still show 3.x.x
Brozo has joined #ruby
<gambl0re>
i installed guest additions but i didnt research how to copy paste between vm and host machine.
<gambl0re>
nevermind...forgot sudo again
centrx has quit [Quit: Shutting down, Please wait...]
<atmosx>
gambl0re: What you need to do, in order to avoid hard time in the future is this: Configure your VM to have NAT which will allow to use a proper terminal emulator (which you can paste utf8 chars easily). Use SSH to connect to your linux VM. Then uninstall rvm and re-install it in 'local' path (and not global). Then you can go forward, otherwise every step will be a pain.
casadei_ has joined #ruby
<atmosx>
that said, I'm off to bed :-) night all
<gambl0re>
ok thanks...i'll give that a try.
LJT has joined #ruby
n008f4g_ has joined #ruby
bintelli has quit [Ping timeout: 246 seconds]
<atmosx>
good luck
Rickmasta has quit [Remote host closed the connection]
Rickmasta has joined #ruby
Brozo has quit [Quit: Leaving...]
Guest5241 has quit [Ping timeout: 264 seconds]
casadei_ has quit [Ping timeout: 272 seconds]
thekodols has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
LJT has quit [Ping timeout: 255 seconds]
soulcake has joined #ruby
dc has joined #ruby
jeramy_s has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
scripore has joined #ruby
Jackneill has quit [Remote host closed the connection]
mrmargolis has joined #ruby
spider-mario has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
Notte has joined #ruby
lidenskap has quit [Remote host closed the connection]
_xCept has joined #ruby
spider-mario has joined #ruby
rbennacer has joined #ruby
freerobby has quit [Quit: Leaving.]
yoni has joined #ruby
ismaelga has quit [Remote host closed the connection]
yoni is now known as Guest5450
michael_mbp has quit [Excess Flood]
dvlwrk has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Froolap has joined #ruby
Froolap has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
Leikila has quit [Quit: Leaving]
_xCept has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
dc has quit []
scripore has quit [Quit: This computer has gone to sleep]
michael_mbp has joined #ruby
dc has joined #ruby
scripore has joined #ruby
_cake has joined #ruby
doodlehaus has quit []
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
Notte has quit [Remote host closed the connection]
chipotle has joined #ruby
swgillespie has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
thatslifeson has joined #ruby
ghr has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
<havenwood>
Lewix: I've not used yadr, looks interesting though...
<gambl0re>
ok...should i do a gem uninstall ruby commandÉ
<adaedra>
É_È
<havenwood>
gambl0re: Ruby ships with RubyGems (the `gem` command). You can't uninstall Ruby with RubyGems.
_cake has quit [Quit: leaving :c]
Timba-as has joined #ruby
<Lewix>
havenwood: hopefully it wont be slow
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewix>
im gonna try it out, havenwood - im tired of managing my dotfiles
<havenwood>
Lewix: lemme know if it's nice!
<Lewix>
havenwood: sure
ismaelga has quit [Remote host closed the connection]
<Papierkorb>
Lewix: let me handle .ssh for you
<gambl0re>
so this new installation will overwrite my old version of rubyÉ
<havenwood>
gambl0re: No.
<havenwood>
gambl0re: You don't know how you installed to /usr/local then? Just ran scripts off the interwebs?
<gambl0re>
yea basically...im new to linux. i just followed my course outline
<havenwood>
gambl0re: What did it have you do?
einarj has joined #ruby
<havenwood>
gambl0re: Anyways, you *can* have multiple versions of Ruby installed and switch between them. But it's simpler to just have one Ruby if you don't need multiple Rubies.
quimrstorres has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gambl0re>
i had trouble on step 4 so i researched on how to resolve it. so the commands i typed in from another source probably conflicted with the courses outlines which probably lead to the mixup
<havenwood>
gambl0re: What was the other source?
Spami has quit [Quit: This computer has gone to sleep]
<gambl0re>
i did the installation a while ago so i cant remember all the pages i visited..
phutchins has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
<havenwood>
gambl0re: So you have RVM installed?
<gambl0re>
i installed ruby from that link you provided...that probably means i have 3 versions of ruby on my computer now.
<gambl0re>
yes
<havenwood>
gambl0re: rvm current
<havenwood>
gambl0re: What is it? ^
Timba-as has quit [Read error: Connection reset by peer]
<gambl0re>
i get a long warning message. then this. ruby-2.2.1
<havenwood>
gambl0re: What does the message say?
Timba-as has joined #ruby
<gambl0re>
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.2.1/bin' is not at first place,
<gambl0re>
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
<gambl0re>
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
<gambl0re>
to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'.
tuelz1 has quit [Ping timeout: 255 seconds]
<diegoviola>
does rvm still hijacks cd?
tomphp has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz1 has joined #ruby
djbkd has joined #ruby
<gambl0re>
just to let you know, im running on a vm.
<gambl0re>
on a windows host machine.
sean__ has joined #ruby
scripore has quit [Client Quit]
<havenwood>
gambl0re: Personally I'd start from a fresh Ubuntu and use the Brightbox package. That way you have just one Ruby and the package manager will keep it up to date.
<havenwood>
gambl0re: You can use RVM with multiple Rubies, including the system Ruby you have installed. You just have to set it up right.
casadei_ has joined #ruby
<havenwood>
gambl0re: If you'd like help getting RVM working, happy to help in #rvm.
<gambl0re>
do you have time right nowÉ
<havenwood>
gambl0re: But like I said, I'd use the Brightbox package.
<gambl0re>
i really want to get everything setup so i can continue on.
<havenwood>
gambl0re: So can you start with a fresh VM and use the Brightbox package or do you want to try to fix your current mess and use RVM?
odlox has joined #ruby
<havenwood>
diegoviola: There's a `scripts/cd` if you use .rvmrc, but these days you can use the safer .ruby-version and .ruby-gemset and just disable rvmrc: rvm_project_rvmrc=0
casadei_ has quit [Ping timeout: 255 seconds]
<gambl0re>
is there a way to just remove ruby on my system and start freshÉ
<gambl0re>
without reinstalling the osÉ
<havenwood>
gambl0re: You'd have to know how all you installed Ruby. I don't know what you've done.
<havenwood>
gambl0re: If it's just a system Ruby and RVM, sure.
<havenwood>
gambl0re: If you don't copy your key and use it on the new system, yeah probably.
<havenwood>
gambl0re: Did you just install RVM in addition to the system Ruby or did you do other things?
<gambl0re>
only rvm and ruby
Musashi007 has quit [Read error: No route to host]
<gambl0re>
rails and git
j_mcnally has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<havenwood>
gambl0re: Just join #rvm and we'll fix your rvm. Shouldn't be too hard and if you're following a thing that presumes RVM it'll probably be easier.