<bricker>
CrazyM4n: there are many problems with what you're trying to do
<bricker>
CrazyM4n: I mean, even theoretically
<rakm>
i know that "NULL" is actually the wrong thing to use as a string there
<bricker>
CrazyM4n: what you want to do is write an extension to the parser
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rakm>
but i don;t know what the right way to do it is
<bricker>
CrazyM4n: because whatever you try to do, the code on the right side of your special operator will just get run and you'll end up with a useless return value
<timanema>
aoeu: wait it has been -25 here for almost a week now what is yours like?
mary5030 has quit [Ping timeout: 245 seconds]
alexblom has joined #ruby
<timanema>
sevenseacat: yes I will swap with you anyday
<sevenseacat>
ive never been in a place that cold
<sevenseacat>
it just doesnt get that cold in australia, anywhere, ever
Deele has quit [Ping timeout: 244 seconds]
whowantstolivef2 has quit [Ping timeout: 264 seconds]
kl has joined #ruby
<timanema>
sevenseacat: I used to live in sudbury and it would regularily go down to -40 during the winter, it was so cold you could fee the air in your lungs
<aoeu>
timanema: Always -5 than you.
robustus has quit [Ping timeout: 264 seconds]
robustus|Off has joined #ruby
DadoCe has joined #ruby
<sevenseacat>
here it just gets so hot you never feel dry ever because youre just constantly sweating
robustus|Off is now known as robustus
scripore has quit [Quit: This computer has gone to sleep]
<timanema>
aoeu: oh well at least you can just pop in your local grocery store to drown your winter woes in liqour
<lampd1>
in hong kong you sweat 24/7 but can't tell because it's so humid
<lampd1>
:P
skj3gg has quit [Quit: ZZZzzz…]
zorak8 has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
scottstamp has joined #ruby
tzero has joined #ruby
<timanema>
I would take any of that hot weather any day
<scottstamp>
word, it's like -5C here. :(
<timanema>
hibernation is not how I am meant to live
chrishough has joined #ruby
<aoeu>
timanema: we can only buy wine and alcohol in government controlled SAQ.
<aoeu>
timanema: And it's $$$.
<aoeu>
timanema: Kind of like Ontario I guess.
<aoeu>
scottstamp: -20 here.
<aoeu>
scottstamp: If not much less.
<scottstamp>
Eh, if I do 'ClassName.get_const('InnerClassName')', does that provide the same functionality as 'Object.get_const('ClassName::InnerClassName')', or does that only work on Modules? the doc is a little unclear.
<scottstamp>
And ew. D:
<scottstamp>
screw that
<scottstamp>
I'm over in Newfoundland, on the coast, so it's frigid and humid. </3
<waxjar>
i don't think it takes the second form scottstamp
pdoherty has joined #ruby
<scottstamp>
hmm.
<scottstamp>
I suppose the easiest way to figure this out would be to try it, haha
<scottstamp>
Welp, I guess not - undefined method
<waxjar>
oh wow, it does
<scottstamp>
Really?
<waxjar>
it's const_get :)
<scottstamp>
I'm an idiot, lol, yeah
<scottstamp>
Sweet
<waxjar>
(classes inherit from Module, btw)
<scottstamp>
That makes sense, then.
pdoherty has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 245 seconds]
helpa has quit [Remote host closed the connection]
ellisTAA has quit [Quit: ellisTAA]
jespada has quit [Quit: Leaving]
crack_user has quit [Quit: Leaving.]
roolo has quit [Ping timeout: 244 seconds]
gawd has joined #ruby
<scottstamp>
Don't suppose someone could give me an opinion on how I'm doing this structure? Instances of class "Response" contain instances of other classes, but there are a number of children so I'm trying to handle it dynamically. http://pastie.org/9832476
<scottstamp>
Usage: Structures::Response.new(some_data, 'Set') or 'Track') or ...
superlou has joined #ruby
Guest_ has joined #ruby
Lingo___ has quit [Quit: (null)]
<superlou>
Is there a grammar parser that works both directions? I'm trying to make a data storage format that's human readable and not obviously yaml. Was looking at treetop, but wondering if there's something that lets me define a grammar to parse a text file, and also turn a datastructure back into serialized text.
<scottstamp>
aoeu: you could ask the reverse in ##csharp and the loyalists will hand you a list of superiorities. Boils down to what you prefer ultimately, they're both strong languages. C# is a little more annoying to deploy (Windows, Mono)
<scottstamp>
Personally I write both depending on what I'm up to / project requirements. :P
<aoeu>
scottstamp: What makes Ruby more terse?
mroach has joined #ruby
axisys has quit [Remote host closed the connection]
<shevy>
aoeu you can morph or redefine a lot of ruby how you want to; for instance, I often do: alias e puts; then I just have to use e; sometimes I alias e to a method though, with ansi escape colours
<scottstamp>
shevy: C# 6.0 offers something similar, I don't quite remember the syntax though
<shevy>
I am sure it is a very verbose syntax
ascarter has joined #ruby
superlou has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
<scottstamp>
Heh, it is.
<scottstamp>
using short = SomeClass.SomeLongFunctionName
<scottstamp>
that's the old way that I *can* remember
<aoeu>
How do you concatenate stings in Ruby? Like string.Format("My name is {0}", name).
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<aoeu>
shevy: "No perfect language" dealbreaker.
<scottstamp>
"#{varname}"
axisys has joined #ruby
<aoeu>
shevy: aliasing "e" is a silly hack that's impossible to read.
<scottstamp>
String interpolation
alexblom_ has joined #ruby
chrisja has quit [Quit: leaving]
charliesome has quit [Quit: zzz]
axisys has quit [Changing host]
axisys has joined #ruby
<aoeu>
scottstamp: Cany ou do "My age is #{age}"?
TheNet has joined #ruby
hamakn has quit [Remote host closed the connection]
<scottstamp>
Sure.
<shevy>
aoeu it's extremely efficient; if you want verbosity, use java
<aoeu>
scottstamp: Can you do "My age is #{ 20 + 10 }" ?
<shevy>
aoeu show me how to alias in C#
philwantsfish has quit []
<aoeu>
scottstamp, shevy: There's string interpolation in C# 6.0
<scottstamp>
Directly, without .format?
<shevy>
did you answer the question
<scottstamp>
er, String.format(
<aoeu>
scottstamp: Yes, without .format
<scottstamp>
neat. I'll need to do a refresher.
<aoeu>
scottstamp: "My age is \{ person.Age \}"
<scottstamp>
lol I love the default is to escape
<aoeu>
scottstamp: Nevermind, only the first \, like your # in Ruby.
<scottstamp>
That makes more sense then.
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<scottstamp>
Ruby behaves like PHP with string interpolation btw, single-quotes won't replace the variable. And yes, you can do #{x+y}
jordanm has quit [Ping timeout: 276 seconds]
<scottstamp>
I feel dirty for making that comparison but it's true, lol
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevenseacat has left #ruby [#ruby]
St1gma has quit [Ping timeout: 250 seconds]
<aoeu>
Do you have interfaces in Ruby?
<aoeu>
How do you deal with that?
<aoeu>
Isn't dynamism a bitch?
bklane has joined #ruby
<scottstamp>
I'm still learning, I'm not sure tbh.
Tricon has quit [Ping timeout: 252 seconds]
<scottstamp>
You probably just structure differently to deal with it.
bronson has quit [Remote host closed the connection]
<aoeu>
You assume people know the codebase well and don't destroy things.
timanema has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
<aoeu>
A dynamic language with no tests is a sure way to do wrong.
bradland has joined #ruby
<mozzarella>
scottstamp: sing something for us
x1337807x has joined #ruby
<scottstamp>
mozzarella: I'm an awful singer, trust me, you don't want that.
<bradland>
there’s a fancy string method too, so you can do “my %s string %s” % [foo, bar]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
skj3gg has joined #ruby
shime_ has quit [Ping timeout: 272 seconds]
banister has quit [Ping timeout: 245 seconds]
<aoeu>
bradland: God no.
AlexRussia has joined #ruby
cavity has joined #ruby
<bradland>
but i luuuuuuuv sprintf :)
<aoeu>
bradland: I want to convert you to C# you guys are stuborn.
<bradland>
i write a lot of shell scripts, so it’s handy for formatting text mode reports
<aoeu>
bradland: just read the implementation of printf.c earlier.
x1337807_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
Photism has quit [Quit: Leaving]
<shevy>
aoeu why should anyone use C# when they have ruby?
<aoeu>
bradland: It's bad, because you can't know the values before you look at the array at the end
<aoeu>
String interpolation is much more the future.
<shevy>
lol
<scottstamp>
aoeu: if you're here to preach C#, you're *definitely* barking in the wrong playground. Most rubyists aren't willing to give it up easily. ;)
davedev24_ has quit [Ping timeout: 245 seconds]
<shevy>
dealbreaker: we use << and assemble any string we want to
<scottstamp>
^
Spami_ has joined #ruby
davedev24_ has joined #ruby
<scottstamp>
and in a much faster manner
<shevy>
aoeu so C# has no aliases?
<bradland>
i hate how sting interpolation looks when you start dropping in stuff like “my #{foo.rjust(20)} string”
<shevy>
aoeu now that's a shame. does this mean that it can't be as terse as ruby?
x1337807x has quit [Ping timeout: 264 seconds]
Spami has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
<shevy>
aoeu how about blocks in C#, can you show an example
bklane has quit []
<bradland>
string interpolation is the future!
zubov has joined #ruby
claptor has joined #ruby
Tricon has joined #ruby
eka has joined #ruby
sbx has joined #ruby
Crazy_Atheist has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
maximski has quit [Read error: Connection reset by peer]
maximski has joined #ruby
^wald0 has quit [Quit: ^wald0]
n80 has joined #ruby
baweaver has quit [Remote host closed the connection]
eka has quit [Client Quit]
<scottstamp>
bradland: this isn't really a reason not to interpolate, but with big concatenations, Array.join is faster. (I mean *BIG*, if you're doing something it'll make a difference in, it's a pitfall you probably already know about)
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
i am not divorcing sprintf. we’ve been together too long. i know her well, and i love her. i know she’s probably not “the one” you guys imagined for me, but she’s mine.
<bradland>
oh, sry
mroach has quit [Quit: mroach]
<bradland>
thought this was #therapy
blizzy has joined #ruby
<scottstamp>
hah
<shevy>
you use strange characters bradland
<shevy>
like €™
<shevy>
you are on OSX right?
ghr has joined #ruby
<bradland>
yeah
<bradland>
probably smart quotes
<bradland>
Colloquy
Hijiri has quit [Ping timeout: 245 seconds]
towski_ has quit [Remote host closed the connection]
<scottstamp>
huh, just noticed that, they're almost indistinguishable at a quick glance on this font.
<scottstamp>
Also Textual>All
<aoeu>
shevy: We have autocompletion, so we don't have to type. -> Faster.
<shevy>
aoeu lol
<aoeu>
shevy: Blocks? Like { DoSomething; }
<shevy>
aoeu that's why java people have to use IDEs
blizzy has quit [Client Quit]
<scottstamp>
aoeu: you can get intelligent auto-complete in Ruby IDEs.
<shevy>
aoeu yes. Show a full example ok?
patrick99e99 has quit [Ping timeout: 244 seconds]
<scottstamp>
JetBrains actually does it quite well.
<scottstamp>
It's less intrusive than the Visual Studio default configuration.
<aoeu>
shevy: If you code without an IDE, you lie to yourself.
<aoeu>
shevy: I can be 100% more productive than you in VS with C#.
<shevy>
aoeu why
<shevy>
aoeu VS?
<aoeu>
shevy: Want to have a battle?
<scottstamp>
shevy: visual studio
<shevy>
aoeu sure. let's write a package manager
blizzy has joined #ruby
<scottstamp>
oh god
* scottstamp
runs the fuck away
<shevy>
aoeu ok, finished. let me see your C# code.
lncdslnc has quit [Quit: Leaving]
<aoeu>
shevy: Better web tools, better server side framework, better language, better ORM, database, cloud. What more could you ask?
bricker has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
<shevy>
aoeu lol? where are the factual statements?
* agent_white
suffocates under the massive amount of IDE buttons
jefus_ has joined #ruby
<aoeu>
scottstamp: Won't stop you from doing illegal stuff with incorrect types.
<shevy>
"illegal stuff"
<shevy>
oh man
<scottstamp>
aoeu: Stop no, warn yes.
<bradland>
types? this is ruby. we thumb our nose at types.
iMe has quit [Ping timeout: 265 seconds]
<aoeu>
shevy: I already have a package manager. Called nuget.
<shevy>
nugget?
<shevy>
what can it do?
<shevy>
can you show me how to install glibc with it
<shevy>
the latest one
<scottstamp>
it's like wget for downloading 100mb+ DLLs
<scottstamp>
:D
ghr has quit [Ping timeout: 264 seconds]
krz has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<aoeu>
shevy: I can get packages.
<aoeu>
shevy: I can update them too.
<shevy>
oh so you can't even compile stuff
<scottstamp>
So can we, it's called gem.
fandi has quit [Quit: Leaving]
<agent_white>
How many lines of code to write "hello world" in C#?
<aoeu>
shevy: Install-Package NameOfPackage
<scottstamp>
Want to do a bunch? bundler.
<scottstamp>
gem install nameofpackage
<shevy>
gem works only for ruby-addons
amclain_ has joined #ruby
<aoeu>
agent_white: 500 lines of boilerplate, then 1.
<shevy>
yeah ok now show me how you install glibc man
<agent_white>
owaitlol
<aoeu>
agent_white: what does "p" mean?
Crazy_Atheist has joined #ruby
rebcabin1 has joined #ruby
<scottstamp>
Oh, right you are. We in the sane unix lands use specialized tools for that because it's cleaner. :)
rebcabin has quit [Read error: Connection reset by peer]
eka has joined #ruby
<agent_white>
aoeu: I hope you are joking if you're trying to talk smack on ruby...
<aoeu>
shevy: I don't understand what you're saying.
<shevy>
aoeu I know. You are a newbie to Linux.
* agent_white
hands shevy and and scottstamp bats
<aoeu>
shevy: glibc? I don't need it.
jefus has quit [Ping timeout: 272 seconds]
<shevy>
Ok you don't need it. But you also can not install it either!
<aoeu>
agent_white: What does p stands for?
* scottstamp
uses said bat in very disturbing ways
<agent_white>
aoeu: Print
<aoeu>
shevy: No no. I use linux.
<shevy>
Yeah, you are a package-user.
<aoeu>
shevy: What is your point?
<scottstamp>
You use Linux and you're defending C# because nuget
<shevy>
aoeu I made it very clear above.
<agent_white>
aoeu: What is yours?
<scottstamp>
what
<scottstamp>
so many what
<agent_white>
^
<waxjar>
this is silly..
amclain has quit [Ping timeout: 245 seconds]
<aoeu>
agent_white: How do people know that "p" stands for "Print"?
amclain_ is now known as amclain
<agent_white>
Boys, I think we have a crazy one.
<agent_white>
aoeu: Because this is #ruby ?
<aoeu>
agent_white: And how do you pick what you print to?
<scottstamp>
waxjar: thank you. v_V" I tried to keep this somewhat civil with factual points at the start.
<shevy>
aoeu you know that you can alias in ruby freely?
<aoeu>
agent_white: What if you want to print to the Printer, or to a Server, or to a secondary output?
<shevy>
alias p WriteLine
<shevy>
oops, the other way
<shevy>
alias WriteLine p
<agent_white>
aoeu: Then... I would?
n80 has quit [Quit: n80]
<aoeu>
agent_white: Yours what?
g-nom3 has joined #ruby
<agent_white>
Not sure where you're getting at.
g-nom3 has quit [Max SendQ exceeded]
<scottstamp>
who the hell writes the word "print" in anything that isn't a Batch file with the expectation of spinning up the printer queue
<scottstamp>
o_o
havenwood has quit [Remote host closed the connection]
<shevy>
scottstamp aoeu does; he loves verbosity
<aoeu>
shevy: I believe that aliasing is evil.
<shevy>
aoeu is that an argument?
<shevy>
I mean if you don't want to use aliases you don't have to!
<shevy>
But if you limit yourself, why should others limit themselves? That makes no sense.
mroach has joined #ruby
g-nom3 has joined #ruby
<aoeu>
shevy: I can assign Console.WriteLine to a function p if I want in C#.
<shevy>
There is nothing wrong with liking verbosity.
meschi has quit [Ping timeout: 276 seconds]
<aoeu>
shevy: And then do p("Hello");
<shevy>
aoeu excellent - we can do this in ruby as well. So what is your point?
<aoeu>
agent_white: You asked "What is yours?"
<agent_white>
he
<agent_white>
h
<shevy>
I think aoeu is 5 years old.
<scottstamp>
aoeu: private void p (object namedVariable) { Console.WriteLine(namedVariable) } OR alias p print
<scottstamp>
\o/
<aoeu>
shevy: If people alias stuff to "e" and "p", it will confuse people.
<aoeu>
Code is first meant to be read.
<shevy>
?!
<shevy>
lol
<shevy>
so that is why you use verbose code
centrx has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
<waxjar>
#p is only for debugging, really. you won't find it in production code
<aoeu>
scottstamp: var p = text => Console.WriteLine(text);
<shevy>
looks like an assignment you do there
<agent_white>
I don't understand why C# is getting compared to ruby. It can't configure a dev environment for me, manage and deploy thousands of servers, or do simple scripting on top of that.
<scottstamp>
Ah, right, I was trying to remember that syntax earlier
<aoeu>
shevy: It is an assignment.
<scottstamp>
agent_white: SCOM for days
<scottstamp>
and by for days I mean it'll take you days to setup all your windows servers in an SCOM environment
<scottstamp>
:D
<aoeu>
shevy: I can alias any Class
<agent_white>
scottstamp: Hahaha +1
<shevy>
wow awesome
fmcgeough has quit [Quit: fmcgeough]
<aoeu>
shevy: using Cat = System.Text.StringBuilder;
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
please don't blind me with your verbosity
<agent_white>
scottstamp: And... why would one be using windows servers in the first place?
<agent_white>
Unless at gunpoint.
<scottstamp>
agent_white: C# vs. Ruby, assuming ASP.NET vs .. well, any Ruby framework, implying IIS vs. something that doesn't suck.
jzigmund_ has joined #ruby
<aoeu>
scottstamp: I just deploy to Azure.
<scottstamp>
then you're doing it wrong
<agent_white>
scottstamp: Preach!
<scottstamp>
three many wrongs
<agent_white>
Or how about that nasty bug at the kernel level you need to checkout for windows... ohwaitlol
lsmola_ has joined #ruby
<aoeu>
agent_white: I use Linux servers.
jzigmund has quit [Read error: Connection reset by peer]
<scottstamp>
With Mono? hehe, poor performance
<agent_white>
aoeu: Well... you got something going for ya... ;P
<aoeu>
scottstamp: ASP.NET vNext, Linux is first class.
<scottstamp>
pending*, we're still waiting on it to be released open-source aren't we?
<aoeu>
scottstamp: Poor performance? Because Ruby is better?
n008f4g_ has quit [Ping timeout: 244 seconds]
<agent_white>
C# sounds neat, and apparently many folks like it. But it doesn't even compare to the amount of versatility ruby has.
<scottstamp>
no, poor performance because Mono doesn't work very well on a server deployment, and it pails in comparison to Phusion Passenger.
<shevy>
aoeu are you comparing a compiled language to an interpreted language?
<scottstamp>
shevy: C# is just as heavily JIT'd as Ruby, but you can optimize both similarly
<agent_white>
And comparing languages used for much different things (besides webdev)
lsmola has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
<aoeu>
scottstamp: .NET is on Github now.
<jidar>
it's prolly a better idea to compare the memory management in the runtime envs rather than discuss the language itself
<scottstamp>
aoeu: in it's entirety?
<aoeu>
shevy: He used the F word.
<centrx>
fatwa
<aoeu>
shevy: And by F I meant P (damn aliases)
<shevy>
?!
<shevy>
k g eg e h e he ?
jzigmund_ has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
* scottstamp
votes we all adopt brainfuck and get it over with
<aoeu>
scottstamp: .NET Core is there.
jzigmund has joined #ruby
chrishough has joined #ruby
<scottstamp>
Neat, sorry for attacking on the OSS thing, I didn't realize they'd finished migrating some of the more important stuff
<agent_white>
aoeu: Can you contribute to it if you wanted to?
<scottstamp>
agent_white: they do actually accept pull requests, I'm not sure how much code review is involved though
<agent_white>
I'd be curious to see how many of those are by people actually outside Microsoft.
cpt_yossarian has quit [Quit: And then he took off.]
<scottstamp>
Maybe you need better glasses to see it clearly? :D
cpt_yossarian has joined #ruby
<scottstamp>
(that was a joke, I'm not saying it's an obvious typo)
<arya_b>
I don’t see anything :'(
<scottstamp>
if you init the parent (user[1] = {}) it works
<scottstamp>
arya_b: that's the joke, lol
<arya_b>
ahh
<arya_b>
I want the key to automatically be an empty dictionary though
<arya_b>
like
amystephen has joined #ruby
<arya_b>
it’s for an assignment where there’s users, and the users have a bunch of movie reviews, so I want this to be a hash of users where each user has a hash of movie to the review they gave that movie
<bradland>
>> user = Hash.new({});user[1][:foo] = 12;user[1][:foo]
<Nilium>
This also makes it effectively global but in a way that makes people who don't like global things happy
<Nilium>
Class variables are globals that people who don't like globals are okay with.
iMe has quit [Ping timeout: 246 seconds]
<Nilium>
Don't ask why, it's a mystery.
<arya_b>
I guess class variables would work, but at this point I’m following our assignment which doesn’t work with classes
<Nilium>
Think of it this way, rather than making it global, just pass it through the program to where it needs to go.
gawd has joined #ruby
<Nilium>
If a function uses it somehow, it should be an argument to that function.
kp666 has joined #ruby
Xiti has joined #ruby
<bradland>
Nilium: I’m curious how Class variables are the same as globals?
<Nilium>
bradland: They're global.
<bradland>
serious question. i’m always up to learn something new.
iMe has joined #ruby
<Nilium>
More specifically, a class is a constant, and that's globally accessible (usually). Might require you to be specific about the scope, but ultimately that's global.
alexblom_ has quit [Remote host closed the connection]
<Nilium>
Now, if you have a class variable, that variable is also global by virtue of being data in or attached to a global.
<havenwood>
Don't use global variables. Don't use class variables.
testcore has quit [Ping timeout: 250 seconds]
alexblom has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
<bradland>
Nilium: I see, so they’re equivalent because if you class Foo;@@bar = ‘baz’;end
<bradland>
Foo.bar is global
<bradland>
which might as well be $foo_bar
testcore has joined #ruby
<Nilium>
Effectively.
<bradland>
hrm
Limix has joined #ruby
Limix has quit [Client Quit]
<bradland>
well, i mean, i get it.
<Nilium>
It's only accessible within the scope of the class (or if you use class_variable_get), but it's global.
alexblom_ has joined #ruby
radic has quit [Ping timeout: 245 seconds]
<bradland>
i end up avoiding class variables because I don’t find that I need them. never really thought of them in that context though
bigkevmc_ has joined #ruby
<havenwood>
Nilium: Scoped to the namespace, so it that sense not quite global.
<Nilium>
It's close enough.
radic has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Ping timeout: 264 seconds]
<shevy>
global ignores namespace!
<shevy>
goto $global man
russt has joined #ruby
DadoCe has quit [Remote host closed the connection]
scpike has quit [Quit: leaving]
scpike has joined #ruby
braincrash has quit [Quit: bye bye]
<IceDragon>
shevy: Make me a nice package manager pleas
arya_b has quit [Quit: arya_b]
<IceDragon>
also hi
avahey91 has quit [Quit: Connection closed for inactivity]
connor_goodwolf has quit [Ping timeout: 264 seconds]
<TheNet>
is there a name for using a string of letters as an identifier instead of a number?
rbennacer has quit [Remote host closed the connection]
<shevy>
IceDragon rewriting it as I type!
connor_goodwolf has joined #ruby
<IceDragon>
TheNet: a Symbol?
rbennacer has joined #ruby
lemur has joined #ruby
Tricon has quit [Ping timeout: 255 seconds]
<IceDragon>
TheNet: you mean something like "ACD1UU17XI10" ?
<TheNet>
more like that ^
braincrash has joined #ruby
<IceDragon>
depends on the format I suppose
<TheNet>
eh, I guess I'll just make up a name :P
<IceDragon>
or
<IceDragon>
just call it an id
<TheNet>
already have an id
<IceDragon>
a sid?
<IceDragon>
string_id
<IceDragon>
:P
icebourg has quit []
<TheNet>
that's not bad
<TheNet>
thanks
<IceDragon>
np
arya_b has joined #ruby
arya_b has quit [Client Quit]
checkit has quit [Quit: (null)]
rbennacer has quit [Ping timeout: 245 seconds]
neersighted has joined #ruby
Crazy_Atheist has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
mroach_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
krz has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
nuck has quit [Remote host closed the connection]
mroach has quit [Quit: mroach]
kenneth has joined #ruby
troubadour has joined #ruby
alexblom has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
<bradland>
really like your blog design, Nilium
Crazy_Atheist has joined #ruby
<bradland>
not enough purple out there
alexblom has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
bradland_ has joined #ruby
bradland_ has quit [Client Quit]
bradland has quit [Quit: bradland]
jaequery has joined #ruby
<shevy>
I like the monkey
bradland has joined #ruby
Channel6 has joined #ruby
echooo has quit [Ping timeout: 255 seconds]
Guest18709 has quit [Changing host]
Guest18709 has joined #ruby
Guest18709 is now known as blindsight
lemur has quit [Read error: Connection reset by peer]
Lingo_ has quit [Quit: (null)]
echooo has joined #ruby
lemur has joined #ruby
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
nrcpts has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
jerematic has quit [Remote host closed the connection]
<Nilium>
shevy: Shush, it's a secret to everybody.
<Nilium>
bradland: Yeah, not enough purple.
joe_dirte has quit [Quit: Leaving]
shivamib has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 256 seconds]
darkside_ has joined #ruby
darkside_ is now known as shivamib
frogsy has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
iMe has joined #ruby
shivamib has quit [Client Quit]
M-Technic has quit [Ping timeout: 245 seconds]
shivamib has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<agent_white>
I want to learn how to make a proper ruby sandbox soon... there doesn't seem to be any out there that are really _THE GOTO_ ruby sandbox.
M-Technic has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
<bradland>
agent_white: saw some talk about that recently. seems it's a challenge.
<agent_white>
bradland: Yeah I'd been looking into it for the past couple months here and there... actually got me into looking at the ruby source for the first time.
mary5030 has joined #ruby
fandi has joined #ruby
<agent_white>
bradland: As _why was talking about making a proxy symbol table in C to do it years ago... and apparently it was said that it was "hacking a lot at ruby internals" to do it.
<agent_white>
But... it has to be doable! Python has one, we should too!
Pharaoh2 has joined #ruby
<Nilium>
Sandbox?
bashusr has joined #ruby
<agent_white>
Nilium: Aye. Essentially, right now I'm looking at making a ruby eval IRC bot. My only option, so it seems, is to just run it in a linux container.
<agent_white>
(learning docker as we speak)
josephndenton has joined #ruby
<Nilium>
Ah. So, hell on earth in an attempt to make Ruby pretend it's secure.
<agent_white>
Nilium: Hm... I heard jruby was as well?
<Nilium>
I wouldn't consider anything with access to the JVM to be easy to lock down.
<agent_white>
Yeah. Still surprising there's no golden-standard for ruby as there is for python for doing such a task,
<agent_white>
If I were more experienced, I'd be hopping right on it! :P
<Nilium>
Especially considering the never-ending flow of JVM security issues — they get patched, but you have to be proactive about updating and making it impossible to abuse until patched
<scottstamp>
I'm generally bad at recursion, hopeless at tail recursion, and my regex is meh. Still didn't catch anything on fire.
<agent_white>
scottstamp: Hahah you had me at line 3. Badass that you got a commit into it! So you must know _some_ of what you're doing!
bigkevmcd has joined #ruby
bigkevmc_ has quit [Read error: Connection reset by peer]
mleung has quit [Client Quit]
lxsameer has joined #ruby
lxsameer has joined #ruby
oo_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 245 seconds]
<scottstamp>
Ehh, I dabble. I've been doing this for a while though. Hahaha, if you count it as coding, I started around age 9 with VB5
bronson has quit [Ping timeout: 255 seconds]
tyfighter has joined #ruby
<agent_white>
Oh damned... I made a CS 1.6 hack when I was 14, but truely have been at it for only a year now :)
ddd has joined #ruby
Senjai has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
<scottstamp>
If you ask me, the most important thing is that you're doing it because you want to. As long as you've got that down, "skill" is just a matter of practice. :)
astrobun_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ddd has quit [Client Quit]
resentido has quit [Remote host closed the connection]
speakingcode has joined #ruby
scripore has quit [Quit: Leaving]
scripore has joined #ruby
scripore has quit [Client Quit]
scripore has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
goshdarnyou has joined #ruby
commmmodo has quit [Quit: commmmodo]
ddd has joined #ruby
Musashi007 has joined #ruby
alexblom has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
tobago has joined #ruby
adriancb has joined #ruby
krz has joined #ruby
alexblom has joined #ruby
Asher has quit [Quit: Leaving.]
oo_ has joined #ruby
Asher has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
ddd has joined #ruby
kiyote23_ has quit [Remote host closed the connection]
kiyote23 has joined #ruby
arescorpio has quit [Excess Flood]
krz has quit [Ping timeout: 244 seconds]
timanema has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
amystephen has quit [Quit: amystephen]
kiyote23 has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
<agent_white>
scottstamp: Amen :) ... I'm just practicing until I can stop making pizzas and start making code for a living!
<Cat_1>
I want to start a bakery and get out of the coding business...
<Cat_1>
maybe that's just me
<scottstamp>
Heh, I'm living life in the unemployed lane at the moment, sorting out some sleep disorder issues. It's a hobby for me atm.
<agent_white>
I tend to cattle/horses/sheep/etc., and make pizzas in the boonies!
Musashi007 has quit [Quit: Musashi007]
timanema has quit [Ping timeout: 245 seconds]
<agent_white>
... and drink cheap beer and shoot guns on occassion. ;)
jenrzzz has joined #ruby
<scottstamp>
I'm up north, no guns for me. :(
<agent_white>
scottstamp: The 'deep north'? ;) I'm a dual-citizen to Canada due to majority of my family being in Alberta.
<scottstamp>
Also I used to treat my insomnia with an anti-psychotic medication so even if I did want to buy a rifle, I'd have to get like 80000 forms filled out
<scottstamp>
Newfoundland actually :P
rbrs has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba_ has joined #ruby
<agent_white>
scottstamp: Oh nice!
<scottstamp>
*boring
<scottstamp>
xD
<agent_white>
Hahah. I've heard it's beautiful out there though.
<scottstamp>
Oh yeah, absolutely gorgeous landscape. If you're into that.
jenrzzz has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 245 seconds]
<agent_white>
I have a nice landscape of dead grass and pasture... nothing like living in colorado and not being able to see the mountains. /mildlydepressingcheer
<agent_white>
;P
<scottstamp>
I'd take Colorado any day, mostly for the legal bud. ;)
<scottstamp>
I've got friends in Nevada and California, too
jerematic has joined #ruby
<SparkMasterTape>
best source to learn ruby is ________
skj3gg has quit [Quit: ZZZzzz…]
<agent_white>
Legal bud, mountains, and microbrewries of the gods... can't complain :)
<agent_white>
SparkMasterTape: irb/pry
agrinb has quit [Remote host closed the connection]
<SparkMasterTape>
should i learn php before ruby?
<SparkMasterTape>
i was suggested that by someone
<SparkMasterTape>
then ruby on rails 3rd
<SparkMasterTape>
over the years
<SparkMasterTape>
of course
agrinb has joined #ruby
rebcabin has quit [Quit: Leaving.]
iMe has quit [Ping timeout: 256 seconds]
<scottstamp>
nah, if you wanna learn Ruby just jump right in.
Mia has quit [Read error: Connection reset by peer]
ponga has joined #ruby
<scottstamp>
Knowing PHP won't help much, and PHP is... well... it's PHP
<SparkMasterTape>
whats the yeah
<porfa>
i have a view in sinatra, a simple table… is it possible for me to make it sortable, in the site itself? how is this possible?… what do i have to use? a diferent view maybe? (total coding newbz…)
<SparkMasterTape>
i think we were talking about learning web dev as a whole
mikeric has joined #ruby
<SparkMasterTape>
whats the differences or strengths/weaknesses in python opposed to ruby
<scottstamp>
porfa: You'd want some sort of JavaScript running to handle that.
Pharaoh2 has joined #ruby
<porfa>
scottstamp: that’s all i needed! googlin now!!! ty!
<agent_white>
SparkMasterTape: Well... PHP and Ruby are vastly different. What's your goal, is the important question.
agrinb_ has joined #ruby
<porfa>
(i mean, i don’t mind reading.. but when you don’t even know what you’re looking for.. it’s kind of dificult :p thanks!!!! )
<SparkMasterTape>
Web development i want to know how to create a program that integrates with a website that integrates with a db
<ddd>
well, first off. joining a channel dedicated to a specific language and asking if you should learn a *different* language other than the one its dedicated to is.. well.. nuts.
<SparkMasterTape>
so basically, web development front end and back end
<SparkMasterTape>
and middle?
jerematic has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
<SparkMasterTape>
middle lul the client program
<ddd>
next, learning php has zero to do with ruby, so learn php if you have a reason to learn php. otherwise pick one of the two languages and go from there
<SparkMasterTape>
its not nuts
<SparkMasterTape>
i mean it could be against the rules
pdoherty has joined #ruby
<SparkMasterTape>
i just want tto hear pro ruby users tell me what the pros and cons are
<SparkMasterTape>
of a language they know
agrinb has quit [Ping timeout: 245 seconds]
<SparkMasterTape>
most programmers my company has know multiple and can say with an unbias what they think strengths and weaknesses are, or at least point out capabilities some have that another doesnt
<ddd>
next again, web development requires learning a bunch of different languages. The chief of them being HTML, CSS, and JavaScript. Learn Ruby to learn a language that applies to a LOT more than JUST web development
<SparkMasterTape>
yes i understand
<scottstamp>
Well, there's a concept in programming called object-orientation, it's basically just a way of laying out programs and offers a way to think about how all your functions work together. It's a "feature" (if you can call it that) of both languages, but in PHP it's been implemented by a guy who should probably be wearing a helmet.
pu22l3r has quit [Remote host closed the connection]
<SparkMasterTape>
im not that inexperienced lol
<SparkMasterTape>
yeah i took java, Js, html in college
<SparkMasterTape>
java i got my ass kicked
<scottstamp>
Think of PHP as Java done wrong.
<SparkMasterTape>
didnt put the time in , was taking with a full load of gen ed class
* scottstamp
personally thinks of Java being Java done wrong, but I digress...
<SparkMasterTape>
didnt realize u gotta practice a lot
<ddd>
that applies to *any* language
<sevenseacat>
oh not this guy again
<ddd>
yes :)
<SparkMasterTape>
why has C++ remained so dominant
<SparkMasterTape>
or is it fading away at all
<scottstamp>
it hasn't.
<scottstamp>
it just isn't used much for web development
<SparkMasterTape>
ah, well i probably shoulda phrased as popular
<ddd>
I would suggest you google articles comparing the languages you want to learn, read more than a few of them, and then distill all of them down to the common nuggets between them all for a baseline of pros and cons, then try each language and judge for yourself
pdoherty has quit [Ping timeout: 245 seconds]
qba73 has joined #ruby
bluOxigen has joined #ruby
<SparkMasterTape>
yeah i know pretty much what each ones specialties are, and capabilities
<ddd>
popular has nothing to do with it. C++ has its strong suits, but web development isn't one. Application development and library development is its strengths
<SparkMasterTape>
but python and ruby and perl i havent
<ddd>
SparkMasterTape, then you wouldn't be asking these kinds of questions here
<SparkMasterTape>
I took Java
dualbus has quit [Quit: WeeChat 1.0.1]
<SparkMasterTape>
Forgot all the syntax
<SparkMasterTape>
same with Js
<ddd>
but thats why you read multiple comparative articles on *those specific* languages and then try them for yourself to see if the articles hold water
alexblom has quit [Remote host closed the connection]
<SparkMasterTape>
and i started HTML when I was 13 but god into gaming, 24 now and getting on track
<SparkMasterTape>
got*
<sevenseacat>
someone poke me when he's finished filling the channel with dribble
<ddd>
well, i'm 44 and what i'm telling you is a damned good way to figure out what you want to know
alexblom has joined #ruby
Morkel has joined #ruby
agrinb_ has quit [Remote host closed the connection]
<SparkMasterTape>
sooo whats the strengths and weaknesses of ruby
<scottstamp>
You know, ##programming is a pretty solid resource for getting grips on the basics and pros/cons of differing languages.
<ddd>
sooo, do what was suggested
<SparkMasterTape>
thats like what u can tell me
agrinb has joined #ruby
<SparkMasterTape>
sorry i thought an IRC people help
<SparkMasterTape>
apparently experience level is required
<SparkMasterTape>
and someone who is obviously very good at ruby knows
<SparkMasterTape>
its strengths or areas that they dont like, all im asking
roolo has joined #ruby
<SparkMasterTape>
is it off topic?
russt has quit [Quit: russt]
<scottstamp>
just linked
<scottstamp>
click the link and read it
<SparkMasterTape>
kk
Crazy_Atheist has quit [Ping timeout: 264 seconds]
<SparkMasterTape>
does it apply to ruby as well
<scottstamp>
GHNEWIUGTNHER59WGRT3W
nanoyak has quit [Quit: Computer has gone to sleep.]
<scottstamp>
(╯°□°)╯︵ ┻━┻
dualbus has joined #ruby
elaptics`away is now known as elaptics
<ddd>
SparkMasterTape, those questions are better answered by google. or any channel dedicated to a specific subject would never get any work done for being busy answering what google can answer far better without messing with the channel focus which is *doing* stuff *in* the subject of the channel
Lexun has joined #ruby
<SparkMasterTape>
@ddd That answer is longer than yes/no. I know ruby on rails is ruby specialized for web dev
<scottstamp>
no, you don't know that, because that's wrong
<SparkMasterTape>
didnt know if it had diff syntax as much as something like js and java
<scottstamp>
rails is a framework.
<havenwood>
SparkMasterTape: There's a lot to Ruby beyond Rails. Ruby is simple and expressive. A lot of people enjoy coding in it. It has a nice aesthetic. And foxes and chunky bacon
<SparkMasterTape>
well thats what i was led to believe
<SparkMasterTape>
Thank you havenwood
<SparkMasterTape>
and scott
agrinb has quit [Ping timeout: 245 seconds]
mikeric has quit []
<ddd>
SparkMasterTape, ruby-lang.org. Look at the docs and the examples. compare them to the same on the sites dedicated to the other languages.
<troubadour>
Mmm, chunky bacon
<SparkMasterTape>
kk ty as well
nuck has joined #ruby
<ddd>
with chowder!
<troubadour>
And allegories, analogies, and post-scripts!
roolo has quit [Ping timeout: 252 seconds]
<ddd>
and prescripts? ;)
<troubadour>
All the scripts.
agrinb has joined #ruby
<ddd>
all your scripts are belong to us!
<ddd>
and thus to ruby!
rylev has joined #ruby
<SparkMasterTape>
wait
<SparkMasterTape>
so telling me im wrong
<SparkMasterTape>
in that ruby on rails is related with web dev
speakingcode has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby
<SparkMasterTape>
the first sentence of that link is "Some clients ask us why we choose to use Ruby on Rails to develop web applications instead of all the other web frameworks and languages."
<scottstamp>
I said it's a framework
<ddd>
SparkMasterTape, what is the difference between a language and a framework?
<scottstamp>
You can think of a framework of a program that runs *under* your program (or website, in this case, it's analagous)
AlexRussia has quit [Ping timeout: 244 seconds]
Crazy_Atheist has joined #ruby
<centrx>
SparkMasterTape, Two major parts of Rails are the ORM (ActiveRecord) and the helper library (ActiveSupport), which are often used outside of web development and even outside of Rails
<scottstamp>
Rails itself is a program, which is written in Ruby, and your program which is also written in Ruby uses it to do a lot of common tasks, like interacting with a database or creating the HTML to send to the browser.
<ddd>
a language is what something is expressed in fundamentally. a framework is a grouping of code, configurations, and other common tasks written in that language and packaged together for a specific job. In Rail's case, web development.
CrazyM4n has quit [Quit: sleep]
<SparkMasterTape>
thank you for that
lampd1 has quit [Remote host closed the connection]
<scottstamp>
JSON will be the death of me. v_v
<SparkMasterTape>
u guys are gunna be getting to know me
<ddd>
as such a framework can not live independently of the language used to express it, whereas the language can
<SparkMasterTape>
im learning ruby, and i have you on auto connect :(
<centrx>
Delightful
<scottstamp>
wunderbar
<ddd>
just do your due diligence first before asking stuff.
<scottstamp>
Unrelated note, what was your college prof's name? So I can go beat him to death?
<scottstamp>
(kidding)
<ddd>
A) its far easier to help you if you have, and B) you won't get the reputation as a help vampire if you do
mroach has joined #ruby
<SparkMasterTape>
JC
<SparkMasterTape>
I didnt pass the class
<SparkMasterTape>
:P
<scottstamp>
lol
<SparkMasterTape>
Js i did
<SparkMasterTape>
he made me not want to program
Lexun has left #ruby ["Manjaro-KDE user leaving!"]
<scottstamp>
I've never bothered going back to school. I probably should some day.
<SparkMasterTape>
talking about sitting behind a desk freaking out over a bug for 10 hours with a deadline, and said hed see like code in the walls like hallucination
<SparkMasterTape>
like staring at a spiral too long or guitar hero
<ddd>
i'll be going back probably at the end of this currently running semester. so long as I can get someone to watch the kids for my last class
troubadour has quit [Quit: troubadour]
<ddd>
SparkMasterTape, well that can happen
revw has quit [Ping timeout: 272 seconds]
<SparkMasterTape>
and i took a CCNA class skipping the prerequisite and learned that college programming classes and networking as well move at a quick rate
<ddd>
its not all writing new code. lots of this field is fixing existing code, or interacting with legacy code
<SparkMasterTape>
learned from my mistakes
<scottstamp>
or changing the same file 900 times because a client cant make up their god damn mind...
<ddd>
too friggin true
<SparkMasterTape>
you cant just do the homework you gotta tinker around once uve finished the assignment and see what you can make
<ddd>
SparkMasterTape, that applies to learning anything
<ddd>
at least if you want to actually do something not just say you took a course
<SparkMasterTape>
not the speed
<SparkMasterTape>
of college classes is what i meant
terlar has joined #ruby
<SparkMasterTape>
for a programming language
kiyote23 has quit [Ping timeout: 256 seconds]
<SparkMasterTape>
i dont know if any of you have CS degrees, but my JS has python, i believe its 1 semseter
<ddd>
you forget the classes are taught to the speed of the expected slowest in the class. (though many are slower than even that) AND classes *expect* for you to do more than just the homework assignment
<ddd>
especially in this particular field.
mroach has quit [Ping timeout: 272 seconds]
<scottstamp>
You might find a website like Lynda.com, TeamTreehouse.com or CodeSchool.com useful. They're online course centric, you can learn at your own pace.
<scottstamp>
And it's pretty cheap.
<SparkMasterTape>
yeah i finally learned the 2 hours of class to 1 hour of class study style
Cache_Money has joined #ruby
<SparkMasterTape>
minimum
Hijiri has joined #ruby
<ddd>
and work through rubykoans.com
<SparkMasterTape>
so no codeacademy
<SparkMasterTape>
is that too noobie
<ddd>
not for no exposure to ruby
<SparkMasterTape>
i imagined so with a 9 hour course completion time
Lingo_ has quit [Quit: (null)]
<SparkMasterTape>
avg*
Lingo has joined #ruby
<SparkMasterTape>
awesome thanks guys
MartynKeigher has quit [Read error: Connection reset by peer]
<ddd>
it doesn't take much to learn the basic syntax. it *does* take more than that to make it sink and and *stay*
<ddd>
and plenty of non-course hours of tinkering and playing around not being afraid to break something
<SparkMasterTape>
yeah
<SparkMasterTape>
thats what i didnt do for Java
<centrx>
Java causes brain damage
<centrx>
You may have saved yourself
<SparkMasterTape>
all i remember from java is
<SparkMasterTape>
{}
<SparkMasterTape>
thats it
<SparkMasterTape>
it uses lots of { }
<SparkMasterTape>
objects
<SparkMasterTape>
methods
<ddd>
but if this really is something you want to do, programming, then you must be prepared to spend inordinate amounts of time *beyond* the classroom time to learn. because in this field, its learn by doing.
<SparkMasterTape>
i remember key words hahaha
<SparkMasterTape>
the paint object
<SparkMasterTape>
yeah im prepared
<ddd>
thats because its a C style language. recognized by the lots of {} etc
alkoma has joined #ruby
<SparkMasterTape>
put in hours like kobe in the gym
<SparkMasterTape>
if u wanna be the kobe of your field
<SparkMasterTape>
competitions spawning every second
<ddd>
no, if you want to be the Kobe of your field, TRIPLE your idea of 'lots of time'
<SparkMasterTape>
yeah really
kl has quit [Ping timeout: 244 seconds]
<ddd>
if you want to know what you're doing competently DOUBLE your idea of 'lots of time'
<ddd>
if you just want to tinker, use your current expectation levels
<SparkMasterTape>
i live a mile or 2 away from him, he tried to get a chopper pad at his house
<SparkMasterTape>
the HOA denied it
<SparkMasterTape>
for practice in LA, but he still choppers out i think from john wayne
scripore has quit [Quit: This computer has gone to sleep]
<SparkMasterTape>
theres stories of him practicing with no ball lol
<ddd>
couldn't care less what those types do.
<SparkMasterTape>
4:30 AM
<SparkMasterTape>
cant sleep calls his trainer who gets paid so well hes on call and they go practice
<SparkMasterTape>
those types
<SparkMasterTape>
celebs
<SparkMasterTape>
or rich
<SparkMasterTape>
i hate the stupid rich but kobe isnt a dumb man
michaeldeol has joined #ruby
<ericwood>
wow maybe I'm just drunk enough to write some CSS
<centrx>
My helicopter is so cool
bronson has joined #ruby
<SparkMasterTape>
whats the frequency on your remote control
<shevy>
1
<ericwood>
I'm doing a job interview thing and they sent me some frontend stuff to do via a mockup
<SparkMasterTape>
damn thats deep
mroach has joined #ruby
nuck has quit [Remote host closed the connection]
<ericwood>
but it's a PSD and I don't have any good tools to manipulate it
<SparkMasterTape>
Fox
<ericwood>
so I want to grab some info on sizing and fonts and stuff
<ericwood>
Preview.app views it just nicely but doesn't help with grabbing color names, font weights, etc.
<porfa>
or the link when you click on it.. im just training to get urls.. i cant get all the texts i want from a site… but when it comes to getting URL’s i just cant
<porfa>
i can get the 37€, the product descripts.. the percentage.. everythgin.. when it comes doesn to url links…i just can’t do anyhting
<mozzarella>
let me try
xenophene has joined #ruby
<porfa>
i alwaysget nil :|
Pharaoh2 has joined #ruby
<porfa>
grrrrrrr i nee to sleep or else ill throw the laptop into the air
Pharaoh2 has quit [Max SendQ exceeded]
<porfa>
i feel so fkdumb lol snappadooddle! later!
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alkoma has quit [Ping timeout: 264 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
lw has joined #ruby
dogweather has quit [Remote host closed the connection]
iMe has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
arup_r_ has joined #ruby
sandelius has quit [Ping timeout: 264 seconds]
dc has joined #ruby
davedev24_ has quit [Ping timeout: 246 seconds]
Lingo has quit [Quit: (null)]
davedev24_ has joined #ruby
St_Marx has joined #ruby
fandi has joined #ruby
arup_r has quit [Ping timeout: 276 seconds]
alkoma` has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
LouisRoR has joined #ruby
testcore has joined #ruby
siwica has joined #ruby
bal has joined #ruby
dc has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
Sid05 has joined #ruby
wallerdev has quit [Quit: wallerdev]
lkba has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shvelo has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Client Quit]
hamakn_ has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
decoponio has joined #ruby
timanema has joined #ruby
kstuart_ has quit [Remote host closed the connection]
fantazo has joined #ruby
kstuart has joined #ruby
terlar has joined #ruby
sigurding has joined #ruby
Morkel has quit [Quit: Morkel]
_Andres has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
noop has joined #ruby
timanema has quit [Ping timeout: 264 seconds]
fandi has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
siwica has quit [Ping timeout: 272 seconds]
Pharaoh2 has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
_tpavel has quit [Client Quit]
bluenemo has joined #ruby
bluenemo has joined #ruby
troubadour has quit [Quit: troubadour]
Sid05 has quit [Read error: Connection reset by peer]
mikeric has quit []
kl__ has joined #ruby
antgel has joined #ruby
shime has joined #ruby
Nijjan1 has quit [K-Lined]
dcarmich has joined #ruby
sivam has joined #ruby
einarj has joined #ruby
marr has joined #ruby
pandaant has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
LouisRoR has quit [Ping timeout: 265 seconds]
kl__ has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
ferr_ has joined #ruby
elaptics`away is now known as elaptics
ferr has quit [Disconnected by services]
ferr_ has quit [Client Quit]
ferr has joined #ruby
greenarrow has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
arup_r_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Deele has joined #ruby
hgl has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
hgl has joined #ruby
nrsk has joined #ruby
hgl has quit [Max SendQ exceeded]
xenophene has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fandi has joined #ruby
pandaant has joined #ruby
oo_ has quit [Remote host closed the connection]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
zarubin has joined #ruby
livathinos has joined #ruby
elaptics is now known as elaptics`away
jenrzzz has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 272 seconds]
lolmaus has quit [Quit: Konversation terminated!]
iMe has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
bronak has joined #ruby
sivam has quit [Ping timeout: 252 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
CustosL1men has joined #ruby
iMe has joined #ruby
sandelius has joined #ruby
olivier_bK has joined #ruby
olivier_bK has quit [Client Quit]
olivier_bK has joined #ruby
bronak has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
livcd has quit [Changing host]
livcd has joined #ruby
lkba has joined #ruby
LouisRoR has joined #ruby
iamninja has joined #ruby
aswen has joined #ruby
TheNet has quit [Quit: Leaving...]
parduse has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
elaptics`away is now known as elaptics
Hobogrammer has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
parduse has joined #ruby
kamilc__ has joined #ruby
<DylanJ>
yo these ruby 'style guides' ban the use of 'and' and 'or'. isn't "something.returns_bool or return 'x'" more correct than "somthing.returns_bool || return x"
<livcd>
DylanJ: it looks better indeed :P
* scottstamp
prefers double-pipe and double-ampersand, personally
parduse is now known as Guest66163
fandi has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<crome>
DylanJ: it may read better but there is a small difference between those operators that can bite you very hard. there is a reason why using them is often discouraged
<epitron>
of course, they are more tightly binding than "and" and "or"
<epitron>
like, if i did: connect "address" || fail
<epitron>
i think that turns into: connect("address" || fail)
<epitron>
the || binds to whatever's immediately on its left/right
wpp has joined #ruby
<epitron>
while "or" binds more loosely
<ypasmk>
hey all … i have an application where multiple classes share the same let’s say constants .. for example STATUS_COMPLETED = ‘completed’, STATUS_FAILED = ‘failed’ .. so write now every class maintain a set of constants which is duplication … what is best practise in ruby dealing with that kind of a problem?
<ypasmk>
a helper class that holds all the constant values?
<epitron>
DylanJ: sorry, by "pop out more" i mean, when you're skimming the code, the are more visually noticable
<epitron>
usually they show up a different colour too
parduse has joined #ruby
maximski has joined #ruby
mbrumbelow has joined #ruby
yfeldblu_ has joined #ruby
<epitron>
ypasmk: you could just use symbols
<epitron>
:failed, :completed
<epitron>
and don't use constants :)
<epitron>
i mean, what's the difference between typing STATUS_COMPLETED and typing :completed?
<epitron>
in a statically typed language that matters
<epitron>
in ruby it doesn't really
<ypasmk>
true … good point .. thanks
sevenseacat has quit [Remote host closed the connection]
<epitron>
there might be a better way to support what you're trying to do though
<epitron>
if many classes have the same kind of functionality, you might want to make a mixin module
<epitron>
include Statusable
<epitron>
or make a superclass
roolo has joined #ruby
<epitron>
in fact, if the logic for how things' states change, you might want to use one of the many fine state machine gems
<Pharaoh2>
OK who the fuck thought that a ObjectSpace.define_finalizer(self, @clean_proc) inside Tempfile's initialize was a good idea.... someone tell me this is a regression
mroach has quit [Ping timeout: 272 seconds]
mroach_ is now known as mroach
Trynemjoel has quit [Ping timeout: 256 seconds]
arya_ching has quit [Client Quit]
janmuffino has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
Trynemjoel has joined #ruby
bronson has joined #ruby
tkuchiki has quit [Remote host closed the connection]
maximski has quit [Client Quit]
tkuchiki has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
Stoge88 has joined #ruby
<ddv>
Pharaoh2: watch your language
gfawcettpq1 has joined #ruby
ta_ has joined #ruby
dimaursu16 has quit [Ping timeout: 255 seconds]
<Pharaoh2>
sorry :(
gfawcettpq1 has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Ping timeout: 272 seconds]
dideler has joined #ruby
Trynemjoel has joined #ruby
rdark has joined #ruby
<dideler>
is there an existing method in ruby like previous('c') => 'b'; previous(3) => 2 ?
<apeiros>
visof: if it ran on magic and pixie dust
<toertore>
they are excellent
<apeiros>
visof: but since it doesn't, no, it can't magically make your problems go away. hence: learn how encodings work.
brahman has joined #ruby
brahman has quit [Changing host]
brahman has joined #ruby
astrobun_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<brahman>
Morning, I am writing some code which needs to run on ruby 1.8.N and 2.N. I need to check the exit status of a popen3 command which I would usually do using waith_thr.status.success? This method is not available in ruby 1.8.N what would be the best approach?
cablanchard has joined #ruby
troubadour has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
ta_ has joined #ruby
DrCode has joined #ruby
kl has quit [Ping timeout: 244 seconds]
jerematic has joined #ruby
<toertore>
`if defined? yield`
<apeiros>
toertore: wtf?
shredding has quit [Quit: shredding]
<apeiros>
is that an ugly way to write `if block_given?` ?
iamninja has joined #ruby
<shevy>
visof you can set to binary encoding through e. g. # Encoding: ASCII-8BIT
dcarmich has joined #ruby
<toertore>
i don't know, i found it in the 1.8 source of popen3
kl has joined #ruby
withnale_ has joined #ruby
<toertore>
brahman: it doesn't look like you can do that in 1.8's popen3, but you could try using the open4 gem
_Andres has quit [Read error: Connection reset by peer]
eladmeidar has joined #ruby
_Andres has joined #ruby
<toertore>
apeiros: i don't remember `yield` not being part of ruby either
<toertore>
eladmeidar: o/
Spami has quit [Quit: This computer has gone to sleep]
<brahman>
toertore: yeah definitely not in the 1.8 docs. What are the usual best practices for handling multiple versions of ruby?
<eladmeidar>
toertore: ola!
jerematic has quit [Ping timeout: 245 seconds]
<apeiros>
toertore: I started ruby with 1.8.0, but I'm pretty sure yield was part in 1.6 too. and probably earlier.
except has joined #ruby
<toertore>
brahman: lowest common denominator
ta_ has quit [Ping timeout: 276 seconds]
<toertore>
apeiros: yeah, i think i remember it from 1.4 even
<brahman>
so write the code for 1.8 and do not use the 2.0 features?
iMe has quit [Ping timeout: 245 seconds]
<toertore>
brahman: pretty much
<brahman>
:(
bluOxigen has quit []
<toertore>
or implement the 2 features you want yourself
* brahman
likes waith_thr.value.success?
elfuego has quit [Quit: elfuego]
<brahman>
that's a fair point. will look at that.
<brahman>
Thanks toertore
<toertore>
brahman: if you look at the source of popen3 it's just putting a bunch of pipes in, you could do that manually
jerematic has joined #ruby
iMe has joined #ruby
vincent1 has left #ruby ["WeeChat 1.0.1"]
<toertore>
brahman: though, i'd look into open4 and see if that works with 1.8 first if i were you
<wasamasa>
"Almost every stupid "my website looks like gibberish" or "she can't read my emails when I use accents" problem comes down to one naive programmer who didn't understand the simple fact that if you don't tell me whether a particular string is encoded using UTF-8 or ASCII or ISO 8859-1 (Latin 1) or Windows 1252 (Western European), you simply cannot display it correctly or even figure out where it ends."
Timgauthier has joined #ruby
eladmeidar has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
rdark has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Timgauthier has quit [Client Quit]
Timgauthier has joined #ruby
jlebrech has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 256 seconds]
chthon has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
thsig has joined #ruby
chthon has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
brahman has quit [Quit: Konversation terminated!]
iMe has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
glen has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
<glen>
hi. in perl i can use alternative regexp separator: if m{/johhaidii}, then what's ruby's?
_5kg has joined #ruby
amil has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
intersect has quit [Remote host closed the connection]
bronak has joined #ruby
rebcabin has joined #ruby
<glen>
as i want to match '/' and this looks uglyx: /\//
<canton7>
glen, %r{}
<glen>
Ah. damn, right! thanks
<glen>
btw, what's the difference with %r[] and %r{} ?
<canton7>
none
<canton7>
you can use whatever separator you like
<canton7>
%r||, etc
sivam has joined #ruby
<glen>
ah, so it's like perl's m !
<canton7>
(there are probably restrictions)
Xeago has quit [Remote host closed the connection]
<canton7>
probably directly inspired by it, yeah
<glen>
yeah, like '%r / ' (space
<shevy>
:>
<shevy>
perl users directly translate into ruby, like eam
blackmesa has quit [Ping timeout: 245 seconds]
<glen>
but in ruby can i omit parems too when calling function?
<glen>
l = t.split(%r[/]) -> l = t.split %r[/]
<glen>
aside. if i'm about to return array from method. stupid simple way would to do: 'a= new Array; a.push(value); return a', but in ruby i can use some blocks to do so to yield a value in loop which gets returned as whole function?
sigurding has quit [Ping timeout: 245 seconds]
<canton7>
yup, you can
<canton7>
beware precidence though
larissa has joined #ruby
<toertore>
%x, one of the few good things ruby took from perl
AFKGeek has quit [Quit: Fades into the shadows]
<canton7>
not sure what your aside is asking
<canton7>
to return a single element array, just return [value]
<workmad3>
MrSparkle: your ordering should go 'try something out in irb' -> 'google it (and don't be impatient)' -> 'ask here'
blackmesa has joined #ruby
<sevenseacat>
guardian: why shouldnt it?
<workmad3>
MrSparkle: not 'google and get annoyed that it took 5s' -> 'ask here' -> 'try it and then tell IRC you just did that'... that way annoys people here :)
<PierreRambaud>
guardian, symbol and string are differents
<guardian>
yeah I'm discovering this
<guardian>
symbols are sort of strings though
<workmad3>
sort of in a not-a-string kind of way
<sevenseacat>
sort of if you mean not at all
shredding has joined #ruby
tesuji has joined #ruby
ta_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<agent_white>
workmad3: Amen.
arya_ching has quit []
<agent_white>
Exhaust all resources, go to IRC... and only if the world is on fire (of if you set it on fire), post on stackexchange.
Advocation has quit [Quit: Advocation]
<agent_white>
Rather SO should require ~2-3 years experience to post a question, imo.
DivineEntity has joined #ruby
elfuego has joined #ruby
fantazo has joined #ruby
chthon has joined #ruby
<ddv>
some people like to come to #ruby first
<pontiki>
morning
<ddv>
:-)
<pontiki>
someone is bound to answer
dangerousdave has joined #ruby
<workmad3>
agent_white: I'm not sure I'd go that far... but something like remove all questions posted by people with less than 5k rep from google search would be good, as would only showing said questions to people with > 12k rep in listings
<workmad3>
pontiki: afternoon
shime has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<pontiki>
workmad3: how goes?
<pontiki>
it's Thor's day
phutchins has joined #ruby
<workmad3>
pontiki: not too bad... just filling in backbone models atm :)
oo_ has joined #ruby
<ddv>
backbone.js?
<workmad3>
pontiki: and yes, it's a fine Thor's day today, after a rather gusty Odin's day yesterday
<workmad3>
ddv: yeah
emirozer has joined #ruby
<ddv>
I like how Ruby makes models so much prettier than JS ever will
<pontiki>
no one has invented a drink called "The Mjölnir" ??
<emirozer>
assembly is prettier than JS
<emirozer>
:P
<emirozer>
even*
<pontiki>
seems like one could use a shot to head on Thor's day to get going
<workmad3>
pontiki: or one called "Sleipnir's kick"
<pontiki>
that'd be good, too
<workmad3>
pontiki: it's almost like most people don't know their nordic mythos well enough to understand that sort of naming :(
dseitz has quit [Quit: later]
<pontiki>
akavit, everclear, and OJ
<headius>
Nilium: tryruby.org and a couple code schools use JRuby to secure user-provided code
<pontiki>
or pom juice to make it red
<ddv>
emirozer: I doubt it
oo_ has quit [Ping timeout: 246 seconds]
<pontiki>
vodka maybe instead of everclear
<workmad3>
pontiki: hehe :) how about having Sleipnir's Kick as non-alcoholic... it's a double-shot of espresso with half a dozen Pro-plus dissolved in... :D
mrj has joined #ruby
<pontiki>
need more than a double shot
<workmad3>
pro-plus == caffeine tablets
SparkMasterTape has quit [Read error: Connection reset by peer]
<pontiki>
ah
thsig has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.1]
metadave has joined #ruby
<MrSparkle>
yeah yeah, I was having restroom urges, wasn't thinking good
<MrSparkle>
it will never happen again!
thsig has joined #ruby
Gues_____ has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
Timgauthier is now known as timgauthier_away
pdoherty has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv>
MrSparkle: what?
<pontiki>
perhaps he's purged his innerds
Timgauthier has joined #ruby
bronak has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
<apeiros>
workmad3: I think there's a word for that too :)
<workmad3>
apeiros: I'm sure there is... I'm curious if it's 'arsonist' though ;)
<apeiros>
I don't think so
timanema has joined #ruby
<apeiros>
anyway, today, anything you do which somebody deems "bad" is simply "terrorism"
pdoherty has quit [Ping timeout: 245 seconds]
<ddv>
apeiros is a terrorist
<workmad3>
according to Saudi Arabia, I'm a terrorist...
DadoCe has quit [Remote host closed the connection]
* apeiros
freedombans ddv
dblessing has joined #ruby
<pontiki>
it's due to a couple things: the news cycle and the non-demilitarization of the world following WWII
<workmad3>
apeiros: I definitely match one... dunno about others :)
DadoCe has joined #ruby
emirozer has quit [Quit: Be back later ...]
<agent_white>
workmad3: I agree :) It's just unfortunate that many new folks use SO rather than exhausting other resources. I've been coding for ~1yr, and linux-stuffs for ~8, but have yet to need to touch SO :)
ta_ has quit [Remote host closed the connection]
<pontiki>
like, how can you possibly gain the world's attention if people are just murderers anymore?
cablanchard has quit [Read error: Connection reset by peer]
<agent_white>
Getting naked! \o/
<apeiros>
pontiki: related to that - I found it horrible how much attention of the media went towards the criminals
kedare1 has left #ruby ["WeeChat 0.4.4-dev"]
<pontiki>
pfft, happens every day
cablanchard has joined #ruby
<agent_white>
Maybe. Or high-fiving everyone. I like that too!
<apeiros>
they should have published the pictures and the raw basics and focus all the other energy on showing the victims.
<pontiki>
o//'s agent_white
<agent_white>
\\o
<sevenseacat>
i like SO.
nateberkopec has joined #ruby
<agent_white>
I love SO. But am not worthy.
<shevy>
SO makes cats purr
<sevenseacat>
i crave points. moar pointssssss
beef-wellington has joined #ruby
ta_ has joined #ruby
<pontiki>
my most famous SE question is a cooking question :D
<workmad3>
sevenseacat: use my strategy for points - get on there within the first year of it being up, answer a few really easy but very upvotable questions and then just watch the points roll in over time ;)
<agent_white>
One day... one day I'll make an account. But I have no bidnaz doon that now. If I can't find an answer to my question, I'm not trying hard enough. :)
<sevenseacat>
heh
timanema has quit [Ping timeout: 272 seconds]
<sevenseacat>
my boss did that, didnt look at SO for ages and came back to like 10k points and a bunch of gold badges
<sevenseacat>
lucky sod
emirozer has joined #ruby
<workmad3>
sevenseacat: yeah... I left it alone for like 4 years... 13k points when I next looked
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has joined #ruby
timanema has joined #ruby
MarkFletcher has joined #ruby
livathin_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
JDiPierro has joined #ruby
MarkFletcher has quit [Client Quit]
<pontiki>
sevenseacat: that is a great question
livathinos has quit [Ping timeout: 240 seconds]
livingstn has joined #ruby
<sevenseacat>
aw thanks
livathinos has joined #ruby
<agent_white>
sevenseacat: ADD-PI here, I more than relate to your question :) What was the fix to your answer?
timgauthier_away is now known as Timgauthier
<pontiki>
i hesitate to ask the question that bothers me the most, though it's related to that one
<agent_white>
s/answer/question
commmmodo has quit [Quit: commmmodo]
MarkFletcher has joined #ruby
MarkFletcher is now known as MarkPaulFletcher
<pontiki>
"What do you do when the people you are working for/with are too stupid to live?"
<pontiki>
or sommat
<sevenseacat>
lol ouch
<pontiki>
but it's really how do i keep going when they've pissed me off
<agent_white>
pontiki: ... have a swimming contest!!!
<workmad3>
pontiki: rectify the situation?
ta_ has quit [Ping timeout: 272 seconds]
<sevenseacat>
i actually posted that question like 2 days before i made the decision to learn rails
<sevenseacat>
so i guess the answer was, try something new.... someone answered that
<pontiki>
yeah, "learn something new" is a great idea for that boredom
<pontiki>
i think i've learned over the decades that i have to make something every day, at least
philwantsfish has joined #ruby
revw has joined #ruby
arup_r has quit []
cablanchard has quit []
cphrmky has joined #ruby
<agent_white>
I like that idea :) Something exciting everyday!
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
roolo has quit [Remote host closed the connection]
ta_ has joined #ruby
roolo has joined #ruby
rocco88 has quit []
<pontiki>
it doesn't have to be in software either. sometimes for me it's picking up my sketchpad, sometimes it painting, sometimes it's working out a chord progression
<pontiki>
anything, really
<pontiki>
sometimes it's making a new recipe
roolo has quit [Remote host closed the connection]
<pontiki>
tho cooking has become a chore anymore
krz has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
ixti has joined #ruby
chthon has quit [Ping timeout: 245 seconds]
<shevy>
hehe
<shevy>
computers eat cooks!
<workmad3>
pontiki: a lot of mine at the moment is maths and physics
<agent_white>
whatthefuckshouldimakefordinner.com -- has saved me quite a few times :)
roolo has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
<billy_ran_away>
Cucumber specs aren't running
<billy_ran_away>
canton7: thanks for looking :)
<canton7>
sorry, you'll need to give us *far* more information
<canton7>
what command do you run? what output do you get? what output are you expecting?
<billy_ran_away>
I run rake :first_half and I get the test output but Cucumber doesn't start running
<billy_ran_away>
no symbol
<billy_ran_away>
rake first_half
livathinos has joined #ruby
startupality has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<billy_ran_away>
canton7: but rake byitself starts Cucumber fine
Xeago has joined #ruby
crazydiamond has joined #ruby
pu22l3r_ has joined #ruby
bronson has joined #ruby
<SHyx0rmZ>
from what I can tell I'd say you have to wrap the tasks in a namespace
ponga has quit [Quit: Leaving...]
revw has joined #ruby
ethikz has left #ruby ["Leaving..."]
ursooperduper has joined #ruby
dangerousdave has joined #ruby
anarang has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
terlar has quit [Read error: Connection reset by peer]
FooMunki_ has quit [Quit: FooMunki_]
scripore has quit [Ping timeout: 272 seconds]
iMe has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 240 seconds]
blackoperat has joined #ruby
govg has quit [Ping timeout: 256 seconds]
gtrak has joined #ruby
kl has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
<avril14th>
that's right
_littleb has joined #ruby
bal has quit [Quit: bal]
iMe has joined #ruby
cantonic has joined #ruby
lesnik_ has joined #ruby
klmlfl has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pu22l3r_ has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
einarj has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
baroquebobcat has joined #ruby
Pharaoh2 has joined #ruby
<_littleb>
hi people, I have been trying to install redmine from source, but it requires the gem "arel v6.0" or greater to be installed. since it is a clean installation I did a "gem install arel" and that didn't change anything because I have got v3 installed. Can someone help?
Pharaoh2 has quit [Max SendQ exceeded]
speaking1ode-wor has quit [Ping timeout: 244 seconds]
<_littleb>
my os is debian
Pharaoh2 has joined #ruby
havenwood has joined #ruby
allcentury has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
emirozer has quit [Quit: Be back later ...]
Pharaoh2 has joined #ruby
livathin_ has joined #ruby
baroquebobcat has quit [Client Quit]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<avril14th>
gem install arel 6.0 ?
Pharaoh2 has quit [Client Quit]
pu22l3r has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
pu22l3r has joined #ruby
kl has joined #ruby
yfeldblum has joined #ruby
livathinos has quit [Ping timeout: 265 seconds]
terlar has joined #ruby
emirozer_ has joined #ruby
Pharaoh2 has quit [Client Quit]
livathin_ has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
<_littleb>
didn't know that it would be that easy
<avril14th>
worked?
<_littleb>
and how do you remove a gem?
<avril14th>
gem --help
x77686d has quit [Remote host closed the connection]
<avril14th>
you can check that with :source_location
<bradland_>
jheg: activesupport is available, and can be used, outside of rails
<jhass>
_littleb: did you read the output?
byprdct has quit [Max SendQ exceeded]
bradland_ has quit [Quit: bradland_]
gizmore has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
kl has quit [Quit: Reconnecting]
kl__ has joined #ruby
windowlicker has joined #ruby
FooMunki_ has joined #ruby
spider-mario has joined #ruby
tus has quit [Ping timeout: 252 seconds]
<_littleb>
i did, it is partially installed. an uninstall and a install didn't work
ellisTAA has joined #ruby
tus has joined #ruby
<jheg>
bradland: so is activesupport independent of both Ruby and Rails but can be used by both?
<jheg>
as is included with Rails as standard?
<jheg>
*and is includ…..
<bradland>
jheg: activesupport is a gem just like any other. in the past, it was more tightly coupled to rails, but these days, it's easier to use outside of rails.
<avril14th>
yes, so include it an have fun
<bradland>
you can `gem install activesupport`
<bradland>
and require it like usual. much of its functionality comes in the form of mixins though.
aganov has quit [Quit: Leaving]
<bradland>
and you generally shouldn't require the whole thing. only the parts you need.
<jheg>
it was only because I was trying to make an errors message string plural (or not) in the event of # errors
<jheg>
but the rails one prepends the actual number which I didnt want and the activesupport one doesnt
enebo has quit [Quit: enebo]
<bradland>
jheg: install the activesupport gem
maximski has joined #ruby
Xeago has quit [Remote host closed the connection]
<bradland>
then require 'activesupport/core_ext/string' in your code
<bradland>
i think that's where pluralize is
tectonic has quit []
<jheg>
thing is it works in the rails app im working on so it must already be included
<bradland>
you should definitely read that if you're going to use it outside of rails
IrishGringo has joined #ruby
<jheg>
thanks!
wpp has quit [Quit: ZZZzzz…]
rdark has quit [Ping timeout: 245 seconds]
lesnik_ has quit [Ping timeout: 245 seconds]
aclearma_ has joined #ruby
CustosLimen has quit [Read error: Connection timed out]
ta_ has joined #ruby
lw has quit [Quit: s]
rdark has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
CustosLimen has joined #ruby
troubadour has joined #ruby
apeiros has joined #ruby
Channel6 has joined #ruby
Pharaoh2 has joined #ruby
aclearman037 has quit [Ping timeout: 264 seconds]
Pharaoh2 has quit [Max SendQ exceeded]
CustosL1men has quit [Ping timeout: 264 seconds]
thsig has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
ellisTAA has joined #ruby
Pharaoh2 has joined #ruby
tvw has quit []
krz has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
psy_ has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
troubadour has quit [Client Quit]
dblessing has joined #ruby
Crazy_Atheist has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 276 seconds]
cantonic has joined #ruby
lmickh has joined #ruby
snath has joined #ruby
bakis has joined #ruby
<bakis>
Are there any test-unit experts here? I'm trying to use test-unit but i need SAFE level 3, and it seems that somehwere in test-unit assertions it's using an accessor which SAFE level 3 doesn't like
Trynemjoel has quit [Ping timeout: 256 seconds]
Crazy_Atheist has joined #ruby
dopie has quit [Remote host closed the connection]
ta_ has joined #ruby
Trynemjoel has joined #ruby
_littleb has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150112203352]]
thsig has joined #ruby
arup_r has joined #ruby
<bakis>
It seems to come from reading in an environment variable: size = ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"]
rodfersou has quit [Read error: Connection reset by peer]
AFKGeek has quit [Quit: Fades into the shadows]
rodfersou has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
neerajt has quit [Ping timeout: 240 seconds]
gattie has joined #ruby
lw has joined #ruby
jordanm has joined #ruby
ddd has quit [Ping timeout: 240 seconds]
chinmay_dd has joined #ruby
Xeago has quit [Remote host closed the connection]
lesnik_ has joined #ruby
nopolitica has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
sigurding has quit [Quit: sigurding]
Olipro has quit [Ping timeout: 252 seconds]
Stoge88 has quit [Ping timeout: 245 seconds]
icebourg has joined #ruby
nopolitica has quit [Client Quit]
workmad3 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
juanca99 has joined #ruby
astrobunny has quit [Remote host closed the connection]
El3k0n has joined #ruby
msgodf has quit [Remote host closed the connection]
<juanca99>
Hey guys could someone explain to me what would be the difference between a gem and an app on ruby
<juanca99>
i come from haskell so i'm not quite sure yet
Olipro has joined #ruby
<apeiros>
juanca99: gem is a way to package things. can be a library, an executable (or multiple), data … you name it
djbkd has joined #ruby
<apeiros>
usually it is a library, sometimes accompanied by an executable
<apeiros>
an app… well, that's whatever somebody built with ruby and declares to be an app :)
rbennacer has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
anaeem1_ has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
lesnik_ has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
<juanca99>
apeiros: i see, it's just that i wasn't sure how to call something i'm doing to make system calls and post it on a server
ddd has joined #ruby
icbm has joined #ruby
<juanca99>
apeiros: thanks man
<apeiros>
the proper name for that would probably be "a script"
danjordan has quit [Quit: danjordan]
wallerdev has joined #ruby
iMe has joined #ruby
<juanca99>
apeiros: not really, i has some logic and after long time programming functionally i'm using objects again
lemur has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
<apeiros>
still a script :)
timonv has joined #ruby
gsd has joined #ruby
emirozer_ has quit [Quit: Be back later ...]
rdark has quit [Quit: leaving]
anaeem1_ has quit [Remote host closed the connection]
anaeem___ has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has joined #ruby
brb3 has joined #ruby
seal has joined #ruby
rbennacer has joined #ruby
michaeldeol has joined #ruby
dc has joined #ruby
<juanca99>
apeiros: so a new question, what would make it an gem?... i mean i'm using gemfile... ruby_version, rakefile... i must say that i'm still new on ruby
michaeldeol has quit [Client Quit]
exgf has joined #ruby
conniemj has joined #ruby
pdoherty has quit [Remote host closed the connection]
<bradland>
gems can be installed using the package manager, rubygems
<elfuego>
for some reason I can’t get the line number with this piece of code #{caller_infos[0]} : #{caller_infos[1]}
<elfuego>
on windows
<bradland>
a gem is composed of all the library/application files, as well as a .gemspec file, which tells rubygems how to build the gem
nux443 has joined #ruby
<elfuego>
does anyone familiar with this?
JDiPierro has quit [Remote host closed the connection]
emirozer_ has joined #ruby
<bradland>
the Gemfile is used by a tool called bundler, which is a dependency management system
brb3 has quit [Client Quit]
<bradland>
not all ruby apps are packaged as gems
<bradland>
so if you're building a ruby app (such as a rails app), you can use bundler and a Gemfile to specify your applications gem dependencies
Stoge88 has joined #ruby
qhartman has joined #ruby
brb3 has joined #ruby
anaeem___ has quit [Ping timeout: 265 seconds]
<apeiros>
juanca99: a valid gemspec and subsequently packaging it up as a gem
Stoge88 has quit [Read error: Connection reset by peer]
<borodin>
is bundler the best option for managing gems in a ruby app? My experience: I build an app and have tests running successfully, then I get a new project and I add that project in a different folder on the same machine, and get it's tests running, then I get time to go back to the first app, and now the tests are failing because of missing gems. It's chaos
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
dumdedum has quit [Quit: foo]
terlar has quit [Read error: Connection reset by peer]
govg has joined #ruby
<waxjar>
borodin: i use gs to have a gemset per project
sigurding has joined #ruby
robertt_dex has joined #ruby
apurcell has joined #ruby
Tricon has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 246 seconds]
brandon_ has quit [Ping timeout: 245 seconds]
borodin_ has joined #ruby
brandon_ has joined #ruby
<borodin_>
I was using rvm, but like I said, I got chaos
djbkd has joined #ruby
<borodin_>
I may not be holding it right
borodin has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
rbennacer has quit [Remote host closed the connection]
<borodin_>
I may try to use docker instead - a different container per project, maybe that will help :(
blackmesa has quit [Ping timeout: 252 seconds]
<apeiros>
waxjar, zipkid: "implementing a String#byteslice" -> `class String; alias byteslice slice; end`
<apeiros>
since ruby 1.8 all strings are unencoded
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
Rollabun_ has quit [Ping timeout: 264 seconds]
ellisTAA has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
apurcell has quit [Ping timeout: 252 seconds]
sigurding has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<ellisTAA>
hello. i’m doing some homework, and there’s something that i just don’t understand because my tests are failing. on the first test it is failing because it is returning nil instead of a time .. could someone take a look and let me know what i’m doing wrong and how i could fix it ? https://gist.github.com/ellisTAA/10239726d030a474239d
rdark has quit [Quit: leaving]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
rdark has joined #ruby
Zai00 has quit [Quit: Zai00]
<Senjai`work>
ellisTAA: Uhm, that's not an adequate test. It actually tests nothing
Senjai`work is now known as Senjai
<Senjai>
Your actually just assigning nil here
larissa has quit [Quit: Leaving]
athan has quit [Read error: Connection reset by peer]
<Senjai>
because measure called with an empty block is just nil
sigurding has joined #ruby
<ellisTAA>
senjai: thanks for the response. so the test wants it to return not nil but a time between 0 and 1 second. .. i was wondering how to do this ...
zorak_ has joined #ruby
<ellisTAA>
senjai: i didn’t write the test, someone else did
<Senjai>
ellisTAA: Well, you'll have to change measure to return a numerical value first.
zorak8 has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 255 seconds]
<Senjai>
Then you'll have to do it in a way that satisfies the test
<Senjai>
If tests are here for you, just make each test pass one by one
<Senjai>
If the first test requires a 0, make measure return 0
<Senjai>
then make other tests pass iteratively
<Senjai>
ALA test driven development
blackmesa has joined #ruby
wallerdev has quit [Quit: wallerdev]
tkuchiki has quit [Remote host closed the connection]
<ellisTAA>
senjai: that’s the part that confused me. to my understanding the test is running measure and timing it .. should i be timing the method and returning the difference?
ta_ has quit [Ping timeout: 245 seconds]
Yahkob has joined #ruby
deric_skibotn has joined #ruby
<waxjar>
ah, neat apeiros
<Senjai>
it isnt timing anything
<Senjai>
its calling the measure method
scripore has joined #ruby
<Senjai>
with an empty block
tkuchiki has joined #ruby
patrick99e99 has joined #ruby
<Senjai>
the measure method has no implimentation
<borodin_>
elapsed_time = measure doesn't measure the time it takes for measure to run
emirozer_ has joined #ruby
<ellisTAA>
so should i put something like a = time.now, b= time.now, return b-a?
<porfa>
but it’s my problem, the tutorial i’ve done only explains how to fetch text from sites, not url’s
cantonic has quit [Quit: cantonic]
<jhass>
what's the dfiference between a "site" and an "URL"?
<porfa>
and i have no previous knowledge on any sort of programing (i dunno if ms-dos batch filess count… lol)
mjuszczak has quit [Client Quit]
<porfa>
i’ll keep searching the web for tutorials so i’ll stop feeling like a dumbass.
mjuszczak has joined #ruby
<porfa>
because you guys in here make it look so easy..! i wanna reach that level
ellisTAA has joined #ruby
<porfa>
i’ll steal the books from the vatican if i have to
jusmyth has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
bronson has joined #ruby
Gues_____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
<kennym>
porfa: what's your point?
<kennym>
best way to learn is by doing
andikr has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
juanca99 has quit [Ping timeout: 246 seconds]
x1337807x has quit [Ping timeout: 240 seconds]
<porfa>
im doing it, im doing it, i’ve learned alot in the last week.. but when it comes down to fetch href instead of text i just can’t get it.. i don’t even know what i am looking for (to read/learn)
revw has joined #ruby
<porfa>
i know someone in here would give me the code i want, but i dont want that i wanna learn to make it on my own
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
treehug8_ has joined #ruby
<GaryOak_>
I think he's talking about grabbing the href out of a link, instead of the text
_maes_ has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
treehug8_ has quit [Remote host closed the connection]
<jhass>
we probably should make an faq for it somewhere
Trynemjoel has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
rdark has quit [Quit: leaving]
<constantlurking>
i wish there was a way to see exactly what the computer was doing at a low level when it executes my code
<jhass>
jwilson_: iirc dependencies should be a symbol, string or array of either, not a hash and certainly not an empty one
<constantlurking>
i wanna see the ruby interpreter's "thought process" if you will
gtrak has joined #ruby
jdawgaz has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
uhm, there are many many layers of abstractions between the CPU and the ruby vm still ;)
<jhass>
so "low level" is kinda vague
El3k0n has joined #ruby
<jhass>
you can get the AST for a piece of ruby code
<constantlurking>
true. i guess i mean one level lower
AlSquire has quit [Quit: This computer has gone to sleep]
<constantlurking>
because the best help to me has been looking at the error messages in the console, but that only works if the code is completely broken
<constantlurking>
what's sat?
<constantlurking>
ast*
baweaver has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
constantlurking: Are you a person or a computer? Ruby is for people.
* deepy
wants an abstract syntax plant
baweaver has joined #ruby
nanoyak has joined #ruby
* jhass
wants a cookie
x1337807x has joined #ruby
tyfighter has quit [Quit: tyfighter]
Guest__ has joined #ruby
<deepy>
jhass: if you pop by north Sweden I'll buy you a beer
* apeiros
hands jhass an abstract cookie
<deepy>
or a bear, depending on which is more readily available
<apeiros>
you guys drink bear?
<deepy>
apeiros_: becuase of EU rulings you can't do that without his permission
<havenwood>
deepy: just learned how northern swedish folk say "yes", fascinating
<constantlurking>
havenwood: i'm a person with an incessant need to know why
<havenwood>
kissy sound
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deepy>
havenwood: the inhaling kind of yes?
<havenwood>
deepy: yeah!
<jwilson_>
thanks jhass. that's how the tutorial I'm following did it, and it works that way. I had it wrong on line 21. Should have been "task name task_dependencies do"
<jwilson_>
running into a diff error now, but at least I can move forward
tyfighter has joined #ruby
<deepy>
havenwood: it's very versatile, but the true power of the north is in the Swedish word 'he'
<apeiros>
talk while you inhale. how efficient :D
sambao21 has quit [Quit: Computer has gone to sleep.]
constantlurking has quit [Quit: Page closed]
<havenwood>
apeiros: full duplex
<jhass>
jwilson_: yes, that was where you were passing an empty hash as dependency
jasonwebster has joined #ruby
andikr has joined #ruby
<apeiros>
plerp. can't motivate myself to code.
* jhass
hands apeiros the abstract cookie back
DrShoggoth has quit [Quit: Leaving]
joonty has joined #ruby
joonty has quit [Client Quit]
<jhass>
you need it more apparently
<havenwood>
Sometimes you want a Concrete Semantics Rock rather than an AST.
lmickh has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jhass>
don't think CSS can do that, XPath might, but I'd just use Nokogiri::XML::Node#[]
El3k0n has quit [Remote host closed the connection]
neoxquick has joined #ruby
<porfa>
hmmm ok
<jhass>
at_css(...)['src']
<porfa>
!!!
<centrx>
nth-child doesn't really work properly in Nokogiri IIRC
deadmund has joined #ruby
jokke has quit [Quit: ninja vanish]
beef-wellington has joined #ruby
<jhass>
centrx: attribute, not child element
<porfa>
it outpus me nil
<porfa>
( http://www.pouparbem.com the website im trying to scrap the first image, the ones with the chairs)
sambao21 has joined #ruby
<jhass>
well, you want to select the img element first I guess
leafybasil has quit [Ping timeout: 245 seconds]
<porfa>
hmmm
<jhass>
currently you're at the div
<jhass>
so descend into the img
shime has quit [Ping timeout: 264 seconds]
<porfa>
how do i descend as in, whats the synthax? that’s my main issue.. always was with programing.. the synthax
<deadmund>
Can someone recommend a tutorial / web site to help me get up and running with hello world ruby on rails website running on a server web server on my local machine? I've googled put I'd like a recommendation from a person about a tutorial that is good, rather than one that has just been SEO'd to the top.
diegoviola has joined #ruby
<jhass>
.imgOferta img
ndrei has quit [Ping timeout: 272 seconds]
babykosh has joined #ruby
jokke has joined #ruby
aclearman037 has joined #ruby
<jhass>
deadmund: guides.rubyonrails.org isn't that bad actually
<jhass>
has a getting started thingy that builds a basic blog
<deadmund>
jhass: thanks
Pharaoh2 has joined #ruby
<jhass>
for your further Ror questions check #RubyOnRails instead though ;)
athan has joined #ruby
<bradland>
deadmund: do you have a working ruby install yet?
<deadmund>
jhass: thanks
klmlfl has joined #ruby
<deadmund>
bradland: no
<bradland>
ok, most rails tutorials start with rails, which won't include a guided ruby install
<bradland>
what OS are you using?
<bradland>
we can steer you in the right direction
<pussygladiator>
Does ruby have something like that so I can check my web server is properly configured?
<bradland>
deadmund: a ruby manager allows you to switch between ruby interpreter versions quickly and easily
<bradland>
most come bundled with a tool that builds ruby interpreters for you as well
<jhass>
porfa: no, decending into the img element should be part of the CSS selector, as I've shown
<deadmund>
bradland: Really, is it a good idea to switch between interpreter versions? Can't I just install 2.0 and forget about it?
<bradland>
there are three main ones: RVM, chruby, and rbenv
shime_ has quit [Ping timeout: 272 seconds]
<bradland>
deadmund: you could, but ruby moves fast, and distro packages tend to fall behind
<porfa>
ofertas.at_css('.img.imgOferta’) ?
<bradland>
for example, ruby is on 2.2 right now. is 2.0 the latest apt package available?
djbkd has quit [Remote host closed the connection]
<jhass>
porfa: no, that would search for an element that has the class img as well as the class imgOferta
<jhass>
porfa: check the backlog
<deadmund>
bradland: ehh, this is just a little project. I don't care about it lasting more than a few months. Yes it seems 2.0 is the newest in Ubuntu 14.04. I'm gonna switch to #rubyonrails if you want to keep talking
dopie has joined #ruby
MartynKeigher has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
<porfa>
whwre do i start learning this stuff? im just so tired of comming in here askng for help everytime i need something.. you guys dont work for me.. goddamit
<porfa>
i just can’t handle this stuff, it’s to much for me
<centrx>
meditate
olivier_bK has joined #ruby
<porfa>
i’ll wax on/wax off my car now.
<bradland>
pussygladiator: there is no "phpinfo" equivalent in ruby, but there are some simple ways to verfiy your app server setup, but it depend on the server.
<bradland>
what server are you running?
<pussygladiator>
nginx
<pussygladiator>
w/ passenger
jfran__ has joined #ruby
withnale_ has quit [Ping timeout: 276 seconds]
jfran___ has joined #ruby
<bradland>
ok, so passenger is a "rack" web server, so you can drop in a simple rack config and hit the vhost to see if it works.
kayloos has joined #ruby
wpp has joined #ruby
bronson has quit [Remote host closed the connection]
<pussygladiator>
how would I do that?
<pussygladiator>
what would I google for a quick guide?
<porfa>
everthiung in that tutorial works, but even in that tutorial when i do that line… to fetch me the URL, it outputs NIL.
<centrx>
dopie, a lot of people probably
<havenwood>
dopie: Have a Jekyll question?
<porfa>
so.. maybe i was doing the right thing in my main script as it was still outputing NIL… whats missing in that line for it to output me the url in readable form?
B1n4r10 has joined #ruby
Macaveli has joined #ruby
B1n4r10 has quit [Client Quit]
<dopie>
well im tyring to deploy with capistrano , and using nginx and I get this weird error
ReachingFarr has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
<centrx>
porfa, It looks like it should work as is...
<ReachingFarr>
So I am the maintainer of a couple of gems and I would like to see if there are any gems that use mine. Is there an easy way to do this?
doodlehaus has joined #ruby
<centrx>
porfa, How are you testing it?
<porfa>
does it work there? in here irb says “nil” :(
El3k0n has quit [Remote host closed the connection]
bronson has joined #ruby
Trynemjoel has joined #ruby
genpaku has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
<windowlicker>
Hey guys. working on euler problem 3 (largest prime factor of a number) I'm close but my return statement isn't working and I'm stuck in an endless loop. pls halp https://gist.github.com/tu98/084b2ec00418095bd48f
Duda_ has joined #ruby
blizzy has quit [Quit: Leaving]
Duda_ has left #ruby [#ruby]
bronson has quit [Ping timeout: 264 seconds]
shazaum_ has quit [Quit: Leaving]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
zacstewart has joined #ruby
kenneth has joined #ruby
St1gma has joined #ruby
j4d has joined #ruby
fandi has quit [Read error: Connection reset by peer]
fandi has joined #ruby
<staticshock>
windowlicker: are you sure your return statement isn't working? because if you have an infinite loop, you'd likely also have it for smaller values.
<staticshock>
i think it's much more likely you're just running a really slow program on a really large value.
<GaryOak_>
that's what it looks like to me, that number is really large, and you are dividing possible trillions of trillions times
qhartman has quit [Quit: Ex-Chat]
mleung has quit [Quit: mleung]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: leaving]
<ellisTAA>
quick question. if i get the error message: “wrong number of arguments (0 for 1)” does that mean i am asking for 1 argument and i am not getting it?
phutchins has quit [Ping timeout: 252 seconds]
<bradland>
ReachingFarr: not sure you can do the inverse of `gem depencency` directly.
tier has quit [Read error: Connection reset by peer]
blackoperat has quit [Remote host closed the connection]
tier has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
<centrx>
ellisTAA, @book.title = "x" calls a separate assignment method
<centrx>
ellisTAA, which you would define as: def title=(name)
jenrzzz has quit [Ping timeout: 252 seconds]
<ellisTAA>
centrx: could you sya a little more, i don’t quite understand
sigurding has quit [Quit: sigurding]
andikr has quit [Remote host closed the connection]
danman has joined #ruby
Morkel has quit [Quit: Morkel]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Prometheian has joined #ruby
cvtsx has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
aef has joined #ruby
<cphrmky>
best way to display an object's ancestors in pry/irb ?
<shevy>
.ancestors
<cphrmky>
ha!
<cphrmky>
this is why ruby is awesome
<cphrmky>
thx shevy
<shevy>
\o/
sambao21 has quit [Quit: Computer has gone to sleep.]
<centrx>
ellisTAA, When you do: @book.title = "x", that's actually calling a method, equivalent to: @book.title=("x")
<centrx>
ellisTAA, and the = sign is the last character of the method name
kl has quit [Ping timeout: 245 seconds]
Rayford has joined #ruby
djbkd has quit [Remote host closed the connection]
<tobiasvl>
ellisTAA: google "ruby accessors and writers" and you might understand
kl has joined #ruby
<ellisTAA>
k thanks both of you
mjuszczak has quit []
mleung has joined #ruby
<tobiasvl>
they're ruby's setters and getters, so to speak, if you know other languages
dblessing has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
<tobiasvl>
so you can either change line 21 to def title=(name), or line 12 to @book.title("inferno"). both will work. note however that you're never setting the title attribute/variable in the Book object, you just return the argument capitalized.
<tobiasvl>
that might suggest you should go for the second variant, or that you're not doing what you intend :)
<gr33n7007h>
tobiasvl, he left
<tobiasvl>
oh.
<tobiasvl>
I have joins and leaves on ignore. sorry.
Yahkob has quit []
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
klmlfl has quit [Remote host closed the connection]
<pontiki>
good plan, so do i
<shevy>
me too!
nanoyak has joined #ruby
GreatSUN has joined #ruby
<GreatSUN>
Hi all
<pontiki>
screw all those joiners and parters
blackoperat has joined #ruby
blackmesa has joined #ruby
<GreatSUN>
can someone tell me how to fix a problem with open-uri when trying to download something from http port 8080?
<GreatSUN>
using wget the download works properly
<GreatSUN>
with open I get Timeout::Error: execution expired
mesmo has joined #ruby
<pontiki>
doing anything funny with the user agent, GreatSUN ?
<GreatSUN>
pontiki: not that I know of
<pontiki>
also cruft like accept header and so on can cause servers that care about such things to complain
Rayford has quit [Quit: Rayford]
<pontiki>
or time out, etc
<GreatSUN>
forgot to mention that this issue comes up only in ruby 1.8
<mesmo>
hi all
<pontiki>
does it work in higher ruby versions?
hmsimha has joined #ruby
<GreatSUN>
yes
baweaver has joined #ruby
<GreatSUN>
but I can not update ruby on the destination host
<pontiki>
i'd suggest not using open-uri in 1.8
<GreatSUN>
pontiki: and then make a switch for http, https, ftp, ftps and such?
sea_local has joined #ruby
<pontiki>
yeah
<GreatSUN>
isn't there something else I could make use of?
<GreatSUN>
some wrapper gem like open-uri?
gawd has quit [Quit: Leaving]
<shevy>
GreatSUN perhaps you can use ftp?
danman has quit [Quit: danman]
<shevy>
though if you use some website with http*
felixjet has joined #ruby
<shevy>
then they often won't have ftp available, most likely not public ftp
<except>
hi! is there a good way to split a module between several files, and have all the code imported via a single 'require'?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arrubin>
except: Typically you create a file that does exactly that.
danfo_ has joined #ruby
<GaryOak_>
except: that's just like a gem
reinaldob has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
brb3 has quit [Client Quit]
duncannz has quit [Ping timeout: 265 seconds]
n80_ has joined #ruby
<except>
i am, in fact, building a gem. what i would like to do is something like: require 'mymodule', and the directory structure to look like lib/mymodule.rb, lib/mymodule/part1.rb, lib/mymodule/part2.rb, etc.
<GaryOak_>
except: if you look at some other gems, they are truly outrageous, and you can see how they structure things
<bradland>
dopie: is jekyll installed through bundler?
goshdarnyou has joined #ruby
Guest26611 is now known as reisl
<bradland>
try changing your execute line to `bundle exec jekyll build`
<bradland>
er whatever command you're sending
<bradland>
just prefix bundle exec (if you're using bundler)
jokke has joined #ruby
zwer has joined #ruby
reisl is now known as larissa
<bradland>
also, IRC is shit right now, so I have no idea if you can read what I'm typing
MissionCritical has joined #ruby
<dopie>
I can
<dopie>
im in the matrix
<bradland>
whew
<dopie>
but my matrix is from back in the 386 days
<dopie>
with 4ram
<bradland>
nothing like shouting in to the void
<dopie>
and 14.4kbps modem
nanoyak has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<dopie>
running Terminate 4.0
<bradland>
four emm-beeees baby!
St_Marx has joined #ruby
<bradland>
i was so happy when i upgraded to the gee-bees.
nanoyak has joined #ruby
DadoCe has joined #ruby
j4d has joined #ruby
lsmola_ has joined #ruby
thumpba__ has quit [Ping timeout: 244 seconds]
lepht_ has joined #ruby
duncannz has joined #ruby
<bradland>
brb
troter__ has joined #ruby
cbetta__ has joined #ruby
bradland has joined #ruby
bradland has quit [Client Quit]
<dopie>
fuck
mroth has joined #ruby
meschi has joined #ruby
Hijiri has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
hellschreiber has joined #ruby
hellschreiber has quit [Changing host]
rakm has joined #ruby
amitchellbullard has quit [Changing host]
amitchellbullard has joined #ruby
cbetta__ is now known as cbetta
n1ftyn8 has quit [Changing host]
n1ftyn8 has joined #ruby
jeregrine has quit [Changing host]
jeregrine has joined #ruby
vcoinminer has quit [Changing host]
vcoinminer has joined #ruby
bove_ has quit [Changing host]
bove_ has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
rakm has quit []
PhilK has quit [Changing host]
PhilK has joined #ruby
spastorino is now known as spastorino_
josephndenton has quit [Ping timeout: 246 seconds]
arrubin has quit [Changing host]
arrubin has joined #ruby
OliverTynes has joined #ruby
OliverTynes has quit [Changing host]
CMAXW_ has quit [Changing host]
CMAXW_ has joined #ruby
ballPointPenguin has quit [Changing host]
ballPointPenguin has joined #ruby
akitada_ has joined #ruby
akitada_ has quit [Changing host]
skmp___ has quit [Changing host]
skmp___ has joined #ruby
whoojemaflip has quit [Changing host]
whoojemaflip has joined #ruby
chrisseaton has joined #ruby
jblancett has joined #ruby
chrisseaton has quit [Changing host]
casual_ has joined #ruby
jblancett has quit [Changing host]
casual_ has quit [Changing host]
mostlybadfly_ has quit [Changing host]
mostlybadfly_ has joined #ruby
AdamMeghji has quit [Changing host]
AdamMeghji has joined #ruby
yo61 has quit [Changing host]
yo61 has joined #ruby
daxroc has quit [Changing host]
daxroc has joined #ruby
spastorino_ has joined #ruby
tiagonobre__ has joined #ruby
Juanchito has joined #ruby
spastorino_ has quit [Changing host]
tiagonobre__ has quit [Changing host]
Juanchito has quit [Changing host]
zipkid has quit [Changing host]
zipkid has joined #ruby
iml has joined #ruby
iml has quit [Changing host]
ZucchiniZe has joined #ruby
ZucchiniZe has quit [Changing host]
ikanobori_ has quit [Changing host]
ikanobori_ has joined #ruby
<Eminence_>
What ruby method would I use to create a cap? Like rounding, but the number shouldnt be rounded unless its greater than 100, then any excess would be rounded down to 100.
machty has quit [Changing host]
machty has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
<jhass>
[x, 100].max
<jhass>
er, .min
bradland has joined #ruby
goshdarnyou has quit [Changing host]
goshdarnyou has joined #ruby
<dopie>
jhass, any skills with capistrano :(
<dopie>
bradland, !!
<dopie>
yay!
jdawgaz has joined #ruby
<dopie>
fucks sake
<dopie>
aha
<waxjar_>
Eminence_: you can give round a negative number
<jhass>
thankfully not
<Eminence_>
jhass: Thanks
<Eminence_>
waxjar_: ?
<bradland>
dopie: i'm back
<bradland>
sry, trying to get UTF8 working in irssi
<bradland>
fuck this looks like a great article already
<postmodern>
but VMs are cheap ;)
<bradland>
i don't run a version manager on my servers
<bradland>
i'm firmly in the "VMs are cheap, and my sanity is valuable" camp :)
<postmodern>
you can also install multiple rubies into /opt/rubies and set the desired Ruby in apache/nginx config if you're using passenger
tokik has joined #ruby
Juanchito is now known as Juanchito_
DadoCe has quit [Remote host closed the connection]
<terrellt>
postmodern: Purchasing VMs in my environment is literally throwing away money. I don't see a maintenance decrease in using direct paths to ruby binaries everywhere vs getting my path right to my stubs for rbenv.
beneggett has quit [Ping timeout: 276 seconds]
<postmodern>
terrellt, /opt/rubies/legacy
ghr has joined #ruby
<bradland>
until something in rbenv breaks
tesaf has quit [Quit: Lost terminal]
<bradland>
debugging a path is a lot easier than tracking down shim redirects, etc
beneggett has joined #ruby
<postmodern>
terrellt, basically your environment is not going to radically change, once you've configured it (however) it will be static
<bradland>
not to mention, stuffing PATH config in to my deploy files isn't something i'm digging much
<terrellt>
bradland: I'd have to do that anyways.
<bradland>
not if your user environment was set up correctly
<terrellt>
bradland: ? Again, we're assuming I have to run N versions of ruby here.
Gues_____ has joined #ruby
commmmodo has joined #ruby
<terrellt>
bradland: In happy-land, with one application running one version of ruby per VM, totally man. ruby-build it.
<bradland>
if you run one app per user, you can set the PATH appropriately in the user's profile