<bootstrappm>
yeah I wouldn't consider that master-slave at all. The slaves in that case don't depend on the master at all
davasaurous has quit []
<noethics>
bootstrappm, thats sort of what i have to figure out though
mistermocha has joined #ruby
<noethics>
whether they should be dependent or not
<bootstrappm>
and in that case yes, the slave should be in charge of its rate of doing work with an external interface if the manager needs to modify them
<bootstrappm>
although I'm not sure why you would ever rate limit the workers / slaves if they're not user facing, they should be doing the work as fast as possible no?
<noethics>
what do you mean external interface
<noethics>
bootstrappm, ? what does rate limiting have to do with user facing lol
<noethics>
how are they mutually exclusive
<noethics>
or mutually inclusive
caseypatrickdris has joined #ruby
<bootstrappm>
well rate limiting refers to limiting the speed at which the slave / worker is doing something. That only makes sense to me if you want to limit the rate at which users are accessing your resources so as not to kill your server
<bootstrappm>
without users in the picture ... I'm not sure why you would rate limit something
Agoldfish has quit [Quit: G'Bye]
bnagy has joined #ruby
<noethics>
bootstrappm, the workers are using an api that is rate limited
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
<bootstrappm>
ahh, okay then you don't have to worry about rate limiting at all. Just have the workers try and if they get rejected, wait a while
<noethics>
nah that's bad design imo
joneshf-laptop has quit [Ping timeout: 265 seconds]
<bootstrappm>
as in, you're not rate limiting your workers, you're responding to an external rate limit. two different things
<noethics>
plus if it rejects you you get some timeout penalty
<bootstrappm>
why bad design?
<noethics>
it takes longer to be able to do new requests
<noethics>
and then id have to poll to find out if its allowed to request yet
<bootstrappm>
I see I see
n008f4g_ has quit [Ping timeout: 240 seconds]
<bootstrappm>
so you want to set a speed on the workers so they never hit the rate limit and you never get penalized?
<noethics>
correct
<RickHull>
all you can try to do is model the rate limiting on the remote end
<RickHull>
they may still cut you off or whatever
<noethics>
well i was thinking i could turn the master into a pull queue
<bootstrappm>
cool, I'd share the state among all workers then. I don't think that a "master" is the best way to do that, I'd go for redis or something
<noethics>
but i dont know the drawbacks of that
<noethics>
possibly with longpolling
casadei has joined #ruby
<noethics>
but that's sort of intensive? i don't know
mistermocha has quit [Remote host closed the connection]
bkxd has quit [Read error: Connection reset by peer]
<bootstrappm>
then each worker can see if they'll put you over the rate-limit in aggregate when they're about to make the request
mistermocha has joined #ruby
<bootstrappm>
keep it a bit under to be safe
<noethics>
redis isn't an option per-worker
<noethics>
the workers arent on the same box
<bootstrappm>
what do you mean?
<bootstrappm>
I figured, so yes, use redis
<bootstrappm>
they all connect to the same instance
<bootstrappm>
available over http
<noethics>
i dont really get why that' necessary
caseypatrickdris has quit [Remote host closed the connection]
<noethics>
what's your reason for recommending that?
<bootstrappm>
its not absolutely necessary. You could just set a fixed request rate on each worker and then manually work out your math so that your workers never go over your rate limit
<noethics>
if anything i'd say beanstalkd or something might be a good choice
<noethics>
but i'm not understanding the whole redis thing, you mean to store a time or something?
<bootstrappm>
but if you want them to just work as fast as possible and only stop when you're close to the rate limit then shared state is the best choice
<bootstrappm>
yes, to store how many requests you've made that hour or minute
<bootstrappm>
and use that information in each worker to decide if you're going to keep making requests
<noethics>
the thing is the workers dont really need to do a whole lot of processing
<noethics>
so i think i could get away with a push-queue
<noethics>
damn i wish i had a background in devops
<bootstrappm>
push work to the workers?
<noethics>
yes
<bootstrappm>
how would you plan on doing that?
iamninja has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
<noethics>
the workers setup an open port waiting for jobs
<bootstrappm>
i always put the work on queue like redis and pull it from the workers end
<noethics>
master pushes jobs to them when it decides its time
<noethics>
redis isn't a queue though
iamninja has joined #ruby
<bootstrappm>
redis is data structure storage
<bootstrappm>
a queue is a type of data structure
mistermocha has quit [Ping timeout: 276 seconds]
<noethics>
not strictly
<noethics>
"queue" is a blanket term
<havenwood>
noethics: a la resque or sidekiq
<bootstrappm>
it handles them very well, its what I've always used for the queue when I use pull based workers
victorko_ has quit []
<noethics>
why not beanstalkd?
<noethics>
ill check those out havenwood
bricker has quit [Ping timeout: 272 seconds]
<bootstrappm>
use whatever floats your boat noethics, there's tons of options for queue based workers
c355E3B has quit [Quit: Connection closed for inactivity]
<RickHull>
redis indeed provides a shared queue, as in data structure
<RickHull>
it is not a full blown MQ
<noethics>
bootstrappm, i know, i'm just having issues deciding the best strategy
<noethics>
it's a common problem i guess
<noethics>
i don't work much with deployment
<havenwood>
noethics: There's nothing wrong with beanstalkd, but Ruby options like Resque and Sidekiq work well too. Many langs now support Resque's interface as well so you have non-Ruby options if you want to swap out.
<Nilium>
I am slightly biased in favor of beanstalkd though, since I like things written in C and beanstalkd is fantastically small and nice.
<noethics>
yeah Nilium i just dont know whether i should even bother with a queueor not
<noethics>
if i use a queue it will most likely be beanstalkd
amclain has joined #ruby
<Nilium>
If you need to keep a queue of work to do in the background, you probably want some sort of queue.
<Nilium>
I tend to focus more on whether persistence is necessary and for how lon
<Nilium>
*long
<noethics>
Nilium, right but i don't know if the workers need to deal with the queue
<noethics>
the workers can just expire and get redeployed
<noethics>
or they can request more work
<noethics>
i don't know, ugh
<bootstrappm>
where is that work stored noethics?
<bootstrappm>
I think you're overcomplicating it
<noethics>
with the master
<bootstrappm>
there's a tried and true way of doing this
<bootstrappm>
and its with something like resque
<bootstrappm>
which is a job framework on top of redis
<Nilium>
I do persistent workers that just receive more stuff when they're needed.
<Nilium>
i.e., they don't die or expire or what have you.
<noethics>
it seems like if you're confident in your software then that's the best way
<noethics>
having them expire sorta mitigates memory leaks and stuff
<Nilium>
I also write everything in Go, though, so I have slightly more confidence in what my code is doing.
<noethics>
me too mostly
<noethics>
my workers are going to be ruby but the master is in go
<Nilium>
The only things that get periodic restarts are workers that're goroutine heavy, since goroutine stack memory is never released
kinduff has joined #ruby
<noethics>
Nilium, i just recognized your name from go-nuts, you were hating on me
<noethics>
;)
<Nilium>
And those ones just get the boot every six hours right now since they don't grow all that much.
<Nilium>
Probably just your name.
<noethics>
probably my old name
Musashi007 has joined #ruby
<noethics>
that you wanted me to change yesterday
<bnagy>
nah it's not just the name :)
<Nilium>
I wanted you to change it so everyone would shut up about it.
<noethics>
lol bnagy too
arescorpio has joined #ruby
<noethics>
go-nuts reunion
<Nilium>
The Ruby/Go crossover is a weird one.
<Nilium>
Especially since I hopped on Go since it was a nice C replacement.
<noethics>
mhmm
<noethics>
im switching to rust as soon as i can find time to learn it though
fgo has quit [Ping timeout: 272 seconds]
yfeldblu_ has joined #ruby
<Nilium>
I keep meaning to look at it, but it's in the category of languages that are more complicated than C++.
<noethics>
it's complicated but clean
Exponential has joined #ruby
<Nilium>
And while I like C++ and the stupid things I can do with it, I don't want to pick up something harder to understand.
<noethics>
the hardest part is the concept of ownership
<noethics>
andd the syntax
<noethics>
i just havent been around it for a while so a lot has changed
<RickHull>
i feel like Rust is easier to learn than C++, from scratch
<noethics>
yeah i know what you mean Nilium
<Nilium>
Maybe. Depends on whether you like using the word monad, I think.
yfeldblum has quit [Ping timeout: 265 seconds]
<noethics>
lol
<RickHull>
template programming, whether to use Boost, stdlib, etc
<Nilium>
At any rate, I haven't touched Rust since it had a GC.
<noethics>
i think knowing rust will be very rewarding soon though
<noethics>
it really is the replacement for c/c++ imo
Lucky__ has joined #ruby
<noethics>
righto guess im going with the ol' beanstalkd and pull queues
brb3 has quit [Read error: Connection reset by peer]
frankS2 has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
AdamMeghji has quit [Read error: Connection reset by peer]
grubernaut has quit [Ping timeout: 272 seconds]
jrunning_ has quit [Ping timeout: 272 seconds]
whoojemaflip has quit [Ping timeout: 272 seconds]
bttf has quit [Ping timeout: 272 seconds]
Guest85414______ has quit [Ping timeout: 272 seconds]
ggherdov has quit [Ping timeout: 272 seconds]
neektza has quit [Write error: Connection reset by peer]
ramblinpeck_ has quit [Write error: Connection reset by peer]
petems has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Write error: Connection reset by peer]
PhilK has quit [Read error: Connection reset by peer]
bove has quit [Write error: Connection reset by peer]
cardoni has quit [Write error: Connection reset by peer]
jxf has quit [Read error: Connection reset by peer]
jpinnix______ has quit [Read error: Connection reset by peer]
dmoe has quit [Read error: Connection reset by peer]
HashNuke has quit [Write error: Connection reset by peer]
holsee_ has quit [Write error: Connection reset by peer]
strmpnk has quit [Read error: Connection reset by peer]
benlakey has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
neersighted has quit [Read error: Connection reset by peer]
ec has quit [Read error: Connection reset by peer]
yo61 has quit [Read error: Connection reset by peer]
culturelabs has quit [Read error: Connection reset by peer]
ckrailo has quit [Write error: Connection reset by peer]
mroth has quit [Read error: Connection reset by peer]
troter___ has quit [Write error: Connection reset by peer]
merqlove has quit [Read error: Connection reset by peer]
akitada has quit [Read error: Connection reset by peer]
shelling__ has quit [Read error: Connection reset by peer]
zrl has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
incomprehensibly has quit [Write error: Connection reset by peer]
jlyndon has quit [Read error: Connection reset by peer]
preyalone has quit [Read error: Connection reset by peer]
kapowaz has quit [Write error: Connection reset by peer]
pmarreck has quit [Write error: Connection reset by peer]
akahn has quit [Read error: Connection reset by peer]
zero7 has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
rubie has joined #ruby
<bnagy>
Rust has a GC?
<noethics>
no
<sevenseacat>
rust just hit 1.0 recently, didnt it
<noethics>
ye it did
<noethics>
it doesnt need one though
eggoez has quit [Ping timeout: 256 seconds]
<bnagy>
Nilium: did it _used_ to have a GC?
<Nilium>
Yes
opalraava has quit [Ping timeout: 272 seconds]
<bnagy>
ahhh I see
opalraava has joined #ruby
<Nilium>
The Rust that I used at one point is a very different language from what you'd use now.
<noethics>
yeah, it changed so much
<Nilium>
Hence why I don't know Rust now.
<Nilium>
And also why I stopped trying to care.
<noethics>
the code looks way cleaner than go code though
<noethics>
noh8pls
crankharder has joined #ruby
AdamMeghji has joined #ruby
<RickHull>
Nilium: shoulda waited for 1.0 ;)
* RickHull
runs
<bnagy>
I don't really care what the code looks like, tbh
<Nilium>
Yeah, only had to wait.. how many years? >_>
<bnagy>
or for random people's opinions about what's "clean"
<noethics>
bnagy, dont you feel all clunky writing go code
amitchellbullard has joined #ruby
neektza has joined #ruby
petems has joined #ruby
ckrailo has joined #ruby
mroth has joined #ruby
troter___ has joined #ruby
ramblinpeck_ has joined #ruby
jrunning_ has joined #ruby
culturelabs has joined #ruby
akahn has joined #ruby
PhilK has joined #ruby
<bnagy>
I do want a lot of rust stuff, I just can't use it yet for real software. They'll get there I guess, one day.
brb3 has joined #ruby
<noethics>
i mean, i think java even feels nicer to program with than go. but go has the features i want for now
prereflect has joined #ruby
<bootstrappm>
java feels nice to program? where am I? I thought this was #ruby
<noethics>
jruby man
<noethics>
do you use it
frankS2 has joined #ruby
zrl has joined #ruby
<noethics>
bootstrappm, with vim macros java isnt even as bad as people make it out to be
<bootstrappm>
nope, want to but for performance reasons / the added library. Wouldn't willingly program in java because it is most decidedly not nice to program in
<noethics>
if you're rolling around on eclipse then yeah you're gonna have a bad time
grubernaut has joined #ruby
cardoni has joined #ruby
poikon has joined #ruby
blandflakes_ has joined #ruby
jeregrine has joined #ruby
blandflakes has quit [Disconnected by services]
blandflakes_ is now known as blandflakes
<bnagy>
bootstrappm: jruby is the most performant ruby implementation
strmpnk has joined #ruby
HashNuke has joined #ruby
holsee_ has joined #ruby
whoojemaflip has joined #ruby
<bnagy>
unless your only use case is ported 8 line bash scripts
<noethics>
i woulda made it to 5k spamming brood bt y'know
<noethics>
bnagy, sry
Synthbread has joined #ruby
<Aeyrix>
zzzz
<Aeyrix>
Ursa / Bloodseeker all day every day.
<Aeyrix>
Somehow.
<noethics>
ya you were trench as hell for sure
<Aeyrix>
Guaranteed trench.
<noethics>
those heros are never in my games
<noethics>
s/are/were/
caseypatrickdris has joined #ruby
oo_ has quit [Remote host closed the connection]
<noethics>
ruby though
preyalone has joined #ruby
swgillespie has joined #ruby
fgo has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<jfarmer>
existensil As the saying goes: "One language's design patterns are another language's syntax."
datanoise has joined #ruby
Synthbread has joined #ruby
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
<existensil>
yeah, often true... but I don't know of any language where best practices don't involve some design patterns of some sort.
shadoi has quit [Quit: Leaving.]
<jfarmer>
That's almost by definition what a design pattern _is_
<jfarmer>
From the perspective of assembly, a function is a design pattern. From the perspective of C, objects and classes are design patterns. etc. etc.
<existensil>
if they could all be done in syntax that would be a pretty complex grammer, and our jobs would be a lot easier
<jfarmer>
At least that's how I see it
<noethics>
that's clearly not what people mean when they refer to design patterns
<existensil>
you are kind of correct, but you build abstractions on top other abstractions. at a certain point the syntax of a language won't be able to solve it for you.
<noethics>
honestly the whole argument against design patterns seems to be only people who either are C gods (no one is in this argument), and people who have never managed a codebase over 1k lines of code
<jfarmer>
noethics Who's arguing against design patterns?
dudedudeman has quit [Ping timeout: 252 seconds]
<eam>
I don't think anyone argues against design patterns, most especially not people who use C
<noethics>
sorry, arguing that a language sucks because it's idiomatic to use a multitude of design patterns
<jfarmer>
People in C use design patterns all the time.
<eam>
btw who said ruby doesn't have factories
merqlove has quit [Quit: Connection closed for inactivity]
<existensil>
A language might obviate the need for a explicit factory patterns or singleton patterns or whatever, and make implementing a registry pattern easier or make flywheel patterns simple to write... but no matter how many concepts are included in the box we'll need to build new ones on top
<noethics>
if you call those design patterns. like what? function pointers?
<noethics>
those are just language features
<eam>
noethics: a struct with a function pointer is as much of an object as any ruby object
<noethics>
i don't understand what your point is though eam
<noethics>
what does having objects or the equivalent of an object have to do with design patterns
jaequery has joined #ruby
<noethics>
i'm not trying to say you're wrong i just really don't know what view you have
nuck has quit [Ping timeout: 276 seconds]
<existensil>
to an assembly coder, I can see functions being a design pattern. I think jfarmer point is valid. I just don't think its valid that all patterns are potential language features or whatever else he was trying to say.
<jfarmer>
The "abstract factory pattern" doesn't exist / is substantially different in a dynamic language like Ruby because types (i.e., classes) are run-time objects.
<eam>
um, just responding to your comments about C
<jfarmer>
There is no factory/product distinction in a language like Ruby
<eam>
re: structs and function pointers
<noethics>
eam, exactly, language features
<noethics>
just like an object isn't a design pattern, that was my point
<eam>
noethics: I can stash a method into a node in a linked list
<eam>
then the node "does" the associated function
<eam>
gotta afk, fun conversation :)
<noethics>
eam, this is just going to come down to semantics
<jfarmer>
noethics You know what I'm saying.
sdothum has joined #ruby
sdothum has quit [Remote host closed the connection]
<noethics>
jfarmer, i do but i'm talking at a more pragmatic level. when someone says "hey use this design pattern", they are talking about a very known subset of techniques for handling containers of data
<jfarmer>
And I'm saying, in other languages, those containers are themselves patterns (down the ladder of abstraction)
<jfarmer>
Or up the ladder, the patterns become containers
<jfarmer>
(to use your distinction)
commondream has joined #ruby
<noethics>
fail to see how
<noethics>
you can contain a pattern in an operator
vivekananda has joined #ruby
<noethics>
but that is still effectively "doing" something
<noethics>
a struct is not
blandflakes has joined #ruby
Synthbread has joined #ruby
<jfarmer>
Not the struct itself, no, but the entirety of how your various structs are arranged and used and the (human) contract that says one is supposed to use them in a certain way.
<noethics>
jfarmer, i guess you're right. i think my view of design patterns is heavily biased
<jfarmer>
For example, in Ruby, you'd never need to implement the "abstract factory pattern" — you'd just pass the class in as an argument.
sevvie has quit [Ping timeout: 240 seconds]
<noethics>
that's true, i can think of a bunch of different examples. but when i think of "design pattern" i think of GOF
eregon has quit [Read error: Connection reset by peer]
eregon has joined #ruby
<noethics>
and i think i sort of try to implement those patterns in any language, even if i don't need to
<noethics>
if i'm honest
<jfarmer>
I agree, but the cracks show when you ask a question like "How do I implement the abstract factory pattern in Ruby?"
sevvie has joined #ruby
<jfarmer>
not you specifically, but say, someone coming from Java
<jfarmer>
It's a reasonable question, but misses the point.
bootstrappm has left #ruby [#ruby]
<noethics>
yeah sort of just realized how shit i am
<noethics>
;)
<jfarmer>
The "abstract factory pattern" is a contractual convention that relies on people implementing it correctly and the need for the "convention" might vanish in other languages.
<existensil>
would be a good opportunity to demonstrate ruby's flexibility. start with the verbose example and whittle it down until the abstract factory is invisible/eliminated
joneshf-laptop has quit [Read error: Connection reset by peer]
<existensil>
that PDF is a good explanation of what you were trying to say jfarmer
bruno- has quit [Ping timeout: 250 seconds]
<jfarmer>
Peter Norvig is a smarter man than I am, no doubt. :D
<noethics>
i think. it's fair to say some languages are objectively better than others
<noethics>
based on this new revelation
<existensil>
* > javascript
<existensil>
:-P
<jfarmer>
haha
pontiki has joined #ruby
mois3x has quit [Quit: mois3x]
<pontiki>
hello/
<bnagy>
soe languages are definitely objectively better, but then there's also a big layer on top
<noethics>
i mean, if there were a language that accomplished all of what ruby did but faster, then it would be better than ruby
<bnagy>
which is "how well does language X reflect the way I think about telling a computer what to do"
<bnagy>
which is purely subjective
<noethics>
but the fuzziness would come from tradeoffs, which seems to be a problem at the moment
GriffinHeart has quit [Remote host closed the connection]
<existensil>
also "How well does language X solve problem Y" .. the answer will vary greatly depending on what Y is
<existensil>
even in your example, bnagy, this ruby-killer would fail to be as good as ruby if it didn't also have the community/ecosystem of ruby
<bnagy>
eh, wat?
<bnagy>
nick mixup?
nedp has joined #ruby
<existensil>
yes, meant noethics
dopie has quit [Quit: This computer has gone to sleep]
<noethics>
existensil, that seems like more of the 'fuzziness' bit
<noethics>
you can't say it would fail to be better just because of that
<existensil>
ruby-killer might do everything ruby does faster, but if I can't use some random ruby gem with a C extension in it and I need to for a problem, then suddenly ruby looks good again
<noethics>
well in that example the ruby killer wouldn't have accomplished everything ruby does
<noethics>
or do you mean just the human element
<existensil>
just pointing out that "objectively better" depends tremendously on context, and there is no context in which you get to make such an apples-to-apples comparison in a perfect "everything works the same" vaccum
<existensil>
cause it never works that way
<noethics>
going forward you mean
<noethics>
i'm talking strictly languages
<pontiki>
what is an objective measure of better?
<noethics>
just because no one uses the ruby killer doesn't mean it's not better
<noethics>
even if NO ONE uses it
<noethics>
not one single person
<existensil>
we generally, as humans, aren't smart enough to evaluate objectively whether one language is better than another, even for a narrow task, without going ahead and solving the task in both
<pontiki>
is this the betamax argument?
<jfarmer>
for some definition of better, sure
<noethics>
i'm talking about if it could do everything ruby can, it eliminates all of the design problems that ruby does, syntactically, but it runs faster than ruby
<existensil>
and even then, you wouldn't know for sure you took the best possible approach with both languages. maybe someone could have solved in better in the language you deemed lesser
<jfarmer>
I don't really see that as related to what we were talking about. It's not as if there's some grand unified language where all design patterns vanish and become pure syntax.
<noethics>
sure
casadei has quit [Remote host closed the connection]
<noethics>
jfarmer, isn't that the point of "the new c/c++"
<noethics>
or the "new" anything
<jfarmer>
Most new languages take some ideas from previous languages or language communities and run with them.
araujo has joined #ruby
<noethics>
so you think that there's no "perfect" language
DarthGandalf has quit [Ping timeout: 264 seconds]
<jfarmer>
I don't even know what that means, honestly.
<noethics>
me neither
<noethics>
haha
<existensil>
definitely not, and we'll never live to see one
towski_ has joined #ruby
<pontiki>
what defines perfect in this case?
micmus has quit [Quit: Leaving]
<existensil>
we don't even have the faintest notion of what perfect looks like, much less a roadmap to it
<pontiki>
i mean, you're tossing out evalutive remarks, but not defining the valuation system
<existensil>
this industry is still crude and infantile
mello has joined #ruby
<noethics>
i mean if it could encapsulate every known design pattern succinctly into its syntax, it might be perfect for that time
DarthGandalf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<RickHull>
says nothing about performance or readability
<pontiki>
what's actually the point of this discussion?
<RickHull>
language flamefest
jaequery has joined #ruby
<existensil>
don't know. just enjoying reading/typing on the new laptop
<jfarmer>
pontiki We were talking about the nature of design patterns
<jfarmer>
not sure how we got here
pwnz0r_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<existensil>
new lappy has "developer" in the name, so I know I got the right one
<existensil>
:-P
<pontiki>
wadja get? wadja get?
djbkd has joined #ruby
<existensil>
XPS 13 Developer Edition
<RickHull>
it's going to meet a cute hipster in a coffee shop and run away from you. it's a dev-eloper
<sevenseacat>
ooh i was looking at those existensil
<existensil>
I'm enjoying it
Musashi007 has joined #ruby
<existensil>
put 15.04 on it immediately. Pretty solid with zero Dell PPAs. Suspend is a little buggy at times but has gotten better. Battery life, screen, and build, are amazing
mello has quit [Ping timeout: 256 seconds]
<pontiki>
looks nice
<pontiki>
how's the fit and finish?
<noethics>
existensil, you dont format immediately after you get a new computer?
<noethics>
oh
<noethics>
nvm
<noethics>
i thought you said it came with it
<existensil>
noethics: in this case I did, after backing up the dell installed 14.04
<sevenseacat>
15.04 is pretty solid
<noethics>
yeah i'm on15.04 atm
<sevenseacat>
had many problems with 14.10, all fixed in 15.04
<noethics>
too bad i broke mine
<noethics>
i'm too lazy to reinstall
<existensil>
trackpad works well. intertial two finger scrolling is flawless
<sevenseacat>
but now im on a macbook, so eh
<noethics>
i basically did
mrsolo has quit [Quit: This computer has gone to sleep]
<noethics>
sudo apt-get purge *unity*
<pontiki>
i just received a kirabook, if i ever get some time it will have 15.04 on it
Limix has quit [Quit: Limix]
<existensil>
works so much like my macbook i keep trying to use other trackpad gestures with it
<sevenseacat>
i like unity, i miss it
<noethics>
what do you miss about it
<sevenseacat>
about the only thing l like more about this mbp is the screen
<sevenseacat>
like more than my old samsung series 9 laptop
djbkd has quit [Ping timeout: 258 seconds]
<existensil>
XPS 13 is a definite step up from the macbook air I had
<existensil>
screen-wise
<pontiki>
did you get the 3200 display?
<sevenseacat>
ah i have a rMBP :)
<existensil>
no, I went 1080P
olistik has joined #ruby
<existensil>
still pretty high PPI really, and much much better battery life and cheaper
<existensil>
nice matte finish, amazing colors and viewing angles
<pontiki>
what's the case material?
<sevenseacat>
i find it odd that theyre only 8GB RAM
amystephen has quit [Quit: amystephen]
<existensil>
outside is solid peice of anodized aluminum on both halves. inside is a soft-touch carbon fiber
jpfuentes2 has quit [Read error: Connection reset by peer]
<existensil>
feels much nicer to rest my palms on than the aluminum unibody of the macbook air
<existensil>
kind of feels like the back of a Motorola X if you've held one
jpfuentes2 has joined #ruby
<sevenseacat>
oh i love my moto x
<pontiki>
i've had two droids, i think its the same stuff
<sevenseacat>
the back is awesome, but that means it will attract grease and fingerprints like a mofo
<existensil>
it does do that a little
<existensil>
i throw a microfibre in my bag now
<existensil>
I don't perspire as much as most, but it still shows smudges a bit sometimes
<existensil>
had it about 3 weeks
<sevenseacat>
i would have huge palm prints ingrained on the laptop in like a week
olistik has quit [Ping timeout: 256 seconds]
watchtheblur has quit [Ping timeout: 252 seconds]
<existensil>
the tiny bezel is definitely a sight worth seeing
<existensil>
looks fantastic
Musashi007 has quit [Read error: Connection reset by peer]
<existensil>
its like they took a macbook air and cut the crusts off of it all the way round
<RickHull>
i read reports that the super hi res screen is problematic for a lot of the app ecosystem
<sevenseacat>
haha nice
caseypatrickdris has quit [Remote host closed the connection]
Xoro has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
Musashi007 has joined #ruby
<existensil>
yeah, I was worried about the high DPi scaling. once i saw diminished battery life I knew the 1080P was for me
nuck has joined #ruby
<existensil>
its still a gorgeous display and 13" @ 1080P is still very sharp
WildBamboo-Josh has quit [Quit: Leaving]
<existensil>
I have to zoom in on websites occasionally
<Elboerea>
The thing here is that people wont invest in functional programming languages for a reason and that might slow Elixir down when it comes to popularity.
Spami_ has quit [Quit: This computer has gone to sleep]
<noethics>
if it's the future then you would presume new programmers will use it
<Elboerea>
So it will be something like, only the geeks will be doing Elixir/Phoenix.
<Aeyrix>
ITC: People who have "read things" about languages making assumptions.
<noethics>
for X reasons why it's better than procedural
<bnagy>
anyway, just saying, people romanticise C sometimes when it's not always warranted EVEN FOR performance
<Aeyrix>
Please stop chatting garbage in my IRC window.
<RickHull>
Elboerea: i think it will be like most of the FP world
<bnagy>
which is the one and only reason to use C ever
<havenwood>
Ox0dea: The neat thing about the Truffle/Graal work is you don't sacrifice performance and you can do stuff like compose the Ruby interpreter with the C interpreter to optimize across the language boundary. The numbers are dazzling.
<Elboerea>
sevenseacat, You on Daves book about Elixir?
<sevenseacat>
Elboerea: yeah, ive worked through the first section of it
joast has quit [Quit: Leaving.]
mmazing has quit [Ping timeout: 256 seconds]
<havenwood>
Elboerea: I read and really enjoyed the free bits from each chapter. I need to buy a copy.
choke has joined #ruby
<Elboerea>
What the...
<Elboerea>
everyone is into Elixir?
vdamewood has quit [Ping timeout: 264 seconds]
<Elboerea>
you make me feel bad, I just bought Eloquent Ruby..
<sevenseacat>
its something new and interesting, and syntactically similar to ruby.
vdamewood has joined #ruby
<sevenseacat>
eloquent ruby is a good book.
<havenwood>
Elboerea: We're really into Ruby too. ;)
<Aeyrix>
I dislike Elixir.
greenbagels has quit [Quit: Leaving]
<Elboerea>
havenwood, :)
<RickHull>
I found Dave's Elixir book to be about epsilon value above the official docs. very disappointed
<Elboerea>
RickHull, Heard Elixir in Action teach you really great stuff.
<bnagy>
havenwood: I thought truffle was a jruby magic unicorn thing
postmodern has joined #ruby
<bnagy>
how does elixir fit in?
<RickHull>
what interests me most at this point is leveraging OTP and OTP patterns in elixir
<bnagy>
imagine I have been writing ~0 ruby for 2 years :)
mcclurmc has quit [Ping timeout: 244 seconds]
<RickHull>
Elboerea: yeah, at my $new_job, there are lots of fans of the "... in Action" series, and I haven't been disappointed yet
<Elboerea>
bnagy, I didn't even write anything serious 4 years after learning C. Became a language lawyer instead..
<RickHull>
what's a language lawyer exactly?
<yorickpeterse>
C
<Elboerea>
RickHull, Yea it was recommended by Jose in #elixir-lang
<yorickpeterse>
:>
mcclurmc_ has joined #ruby
charliesome has joined #ruby
arescorpio has quit [Quit: Leaving.]
<bnagy>
Elboerea: oh I've written 10s of kloc of ruby, just not written any for a couple of years
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy>
so I'm out of date with hotnesses
<Elboerea>
RickHull, Start by raw reading the C standard and pretty much try to understand the language itself, rules, whys and hows etc.
<RickHull>
without actually writing it or putting it to use?!!?!?!?
<RickHull>
i could never
gix has quit [Ping timeout: 240 seconds]
Killerkeksdose has quit [Read error: Connection reset by peer]
<Elboerea>
Of course you have to write, I said I didn't write anything serious.
lotherk has quit [Ping timeout: 256 seconds]
Killerkeksdose has joined #ruby
<havenwood>
bnagy: Elixir isn't particularly related to Truffle/Graal, through there is Erjang and conceivably it could get Truffle/Graal support.
<RickHull>
well that's a reasonable approach then
<bnagy>
havenwood: what's a Graal?
<havenwood>
bnagy: A VM.
jenrzzz has joined #ruby
iliketur_ has joined #ruby
hector__ has quit [Quit: Leaving]
<bnagy>
ok.
<Ox0dea>
Elboerea: You've read all of ISO 9899, back to front?
<bnagy>
so truffle compiles to graal?
lotherk has joined #ruby
<Elboerea>
Ox0dea, No lol. Just the C99 standard.
fujimura has quit [Remote host closed the connection]
<havenwood>
bnagy: Truffle is the AST framework and Graal is the VM.
tkuchiki has quit [Remote host closed the connection]
<Ox0dea>
Elboerea: What is the C99 standard if not ISO 9899
<Ox0dea>
?
Spami has joined #ruby
<havenwood>
bnagy: They've implemented a handful of languages already. The paper I linked above is a great read and is totally accessible.
<RickHull>
seem pretty confusing as a ruby noob here
<RickHull>
do I `gem install test-unit`
<RickHull>
where is the part that explains how to unit test with ruby 2.2?
<RickHull>
havenwood: not picking on you particularly, you have brownie points so far
failshell has quit [Ping timeout: 265 seconds]
<havenwood>
RickHull: So when you install 2.2.2 you already have the Minitest gem installed. If you `gem update minitest` it will update to the latest Minitest if there's a newer one than the one Ruby shipped with.
CustosLimen has quit [Read error: Connection timed out]
<RickHull>
finisherr: does that help?
<finisherr>
Yep
<DANtheBEASTman>
i'm not much of a rubyist, but i'm trying to install sass.. and I get this error trying to run it /usr/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'sass' (>= 0) among 11 total gem(s) (Gem::LoadError) and this is by directly calling sass
CustosLimen has joined #ruby
Musashi007 has joined #ruby
oo_ has joined #ruby
whitequark has joined #ruby
whitequark has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
revath has joined #ruby
<RickHull>
DANtheBEASTman: looks like the gem is not actually installed
<RickHull>
what's the output, use gist/pastie/pastbin if nec, of `gem list sass`
<RickHull>
are you using bundler / Gemfile / Gemfile.lock ?
choke has joined #ruby
<DANtheBEASTman>
RickHull: it's in there, only gem I have... sass (3.4.14)
ur5us has joined #ruby
<baweaver>
What's the exact line in the gemfile?
Hijiri has quit [Ping timeout: 265 seconds]
pepperbreath has left #ruby [#ruby]
<RickHull>
and what CLI command are you executing to get the error?
<baweaver>
Also, you might update to Ruby 2.2 to be safe.
<DANtheBEASTman>
i'm on sid and I don't have root to this machine
Elboerea has quit [Quit: Leaving]
<havenwood>
DANtheBEASTman: What's the exact command you're running?
greenbagels_ has joined #ruby
<RickHull>
DANtheBEASTman: neither should be a problem
<baweaver>
DANtheBEASTman: That's what RVM and Rbenv are for
<baweaver>
but that's more of an aside concern
<RickHull>
baweaver: you mean chruby ;)
<havenwood>
DANtheBEASTman: Are you prefixing `bundle exec` to your command to run "in the context of your bundle?"
<DANtheBEASTman>
i'm not even writing a ruby script, I just wanted to be able to call sass from the cli
<finisherr>
So, I’m looking at the documentation for URI. I’m seeing here that when you create a URI object there are all of these availble getters, like scheme and host. Where in the documentation would I find that those are available outside of the little example?
<baweaver>
gem install sass
<havenwood>
DANtheBEASTman: So why do you have a Gemfile?
<RickHull>
havenwood: if you don't resolve this ticket you don't get paid today
<havenwood>
RickHull: But I want my porridge in the morning. :(
<RickHull>
you can't have any meat if you don't eat your pudding!
<havenwood>
DANtheBEASTman: Gist: gem env
<Aeyrix>
This is the most un-ruby #ruby chat ever.
<RickHull>
Aeyrix: in fact, it's super-#ruby-lang right now
<Aeyrix>
hah
<RickHull>
deal with it, put on sunglasses, etc
zotherstupidguy has quit [Quit: WeeChat 1.2]
mcclurmc has quit [Remote host closed the connection]
<havenwood>
DANtheBEASTman: (Gem.bindir instead of Gem.default_bindir)
aganov has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
User458764 has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
<RickHull>
vaya con dios mi amigos
<havenwood>
DANtheBEASTman: I'd suggest `--user-install` in your gemrc instead of custom gemhome and gempaths. Should *just work*.
RickHull has left #ruby [#ruby]
sinkensabe has quit [Remote host closed the connection]
<havenwood>
gem: --user-install
jenrzzz has quit [Ping timeout: 276 seconds]
vdamewood has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
dvxam has joined #ruby
jenrzzz has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
eddie_v3 has quit [Ping timeout: 240 seconds]
aaeron has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Client Quit]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dopie has quit [Quit: This computer has gone to sleep]
balazs_ has quit [Ping timeout: 265 seconds]
Olipro_ has joined #ruby
Olipro_ is now known as Guest60251
jenrzzz has quit [Ping timeout: 264 seconds]
Aww has joined #ruby
djbkd has quit [Quit: My people need me...]
Guest70052 has quit [Ping timeout: 265 seconds]
vdamewood has joined #ruby
nfk|laptop has quit [Quit: yawn]
yardenbar has joined #ruby
duncannz has joined #ruby
tsujp has joined #ruby
GriffinHeart has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
last_staff has joined #ruby
ChoiKyuSang_ has joined #ruby
swgillespie has joined #ruby
hmnhf has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
jaequery has quit [Client Quit]
ttilley has quit [Changing host]
ttilley has joined #ruby
CloCkWeRX has joined #ruby
ChoiKyuSang has quit [Read error: Connection reset by peer]
dbussink has joined #ruby
dionysus69 has joined #ruby
greenbagels_ has quit [Ping timeout: 265 seconds]
ChoiKyuSang_ has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
eddie_v3 has joined #ruby
rubie has quit [Remote host closed the connection]
revath1 has joined #ruby
ocx has joined #ruby
<ocx>
hello i want to create a menu in my xwindows that looks like the menu that runs on your access point when accessed via a webbrowser, it needs to have sections a menu, buttons text field etc, what is a good tool/language to use to achieve this?
<Nilium>
I just write all documentation in godoc style now.
<Nilium>
Because that's surprisingly readable.
<shevy>
I assume you can run it via system() prateekp or rather result = `rdoc`, and then decide what to do with the result. if there is no .rb file, you can find out anyway, via Dir['**/**.rb']
<prateekp>
shevy : you are correct ... but sometime ruby projects contains c source as well
mello has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
<shevy>
well you can check that anyway
<shevy>
def has_c_files?; Dir['**/**.c'].size > 0
<shevy>
or something like that
<prateekp>
hmm right
<prateekp>
and also ruby projects must have atleast one .rb for it to be called ruby project
dvxam has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
chinmay_dd has joined #ruby
dfockler has quit [Ping timeout: 272 seconds]
bhrgunatha has quit [Quit: ChatZilla 0.9.91.1 [Iceweasel 38.0.1/20150526223604]]
ghr has joined #ruby
failshell has joined #ruby
jenrzzz has joined #ruby
noname has quit [Ping timeout: 245 seconds]
clauswitt has joined #ruby
noname1 has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 272 seconds]
Iskarlar has joined #ruby
pyo_ has joined #ruby
dvxam has joined #ruby
tkuchiki has joined #ruby
clauswitt has quit [Max SendQ exceeded]
failshell has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
eddie_v3 has quit [Ping timeout: 265 seconds]
clauswitt has joined #ruby
ahmetkapikiran has joined #ruby
arup_r has joined #ruby
Iskarlar has quit [Client Quit]
ndrei has quit [Ping timeout: 272 seconds]
ChoiKyuSang has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
A205B064 has joined #ruby
Channel6 has quit [Quit: Leaving]
sdwrage has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 256 seconds]
tibig has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
noname has joined #ruby
noname1 has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
vire has joined #ruby
eddie_v3 has joined #ruby
futilegames has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
greenbagels has joined #ruby
pwnz0r has joined #ruby
dvxam has quit [Read error: Connection reset by peer]
Atomic_rIN2R has joined #ruby
dumdedum has joined #ruby
<Atomic_rIN2R>
hi
finisherr has left #ruby [#ruby]
jpfuentes2 has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
thiagovsk has quit [Quit: Connection closed for inactivity]
jcaho has joined #ruby
al2o3-cr is now known as yarb
pwnz0r has quit [Ping timeout: 264 seconds]
Atomic_rIN2R has quit [Client Quit]
yarb is now known as al2o3-cr
jmhmccr has quit [Quit: Connection closed for inactivity]
Soda has joined #ruby
nedp has quit [Ping timeout: 256 seconds]
ChoiKyuSang is now known as Tempesta
lxsameer has joined #ruby
A205B064 has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fujimur__ has quit [Remote host closed the connection]
oo_ has quit [Quit: Leaving...]
mikecmpbll has joined #ruby
bayed has joined #ruby
oo_ has joined #ruby
fujimura_ has joined #ruby
<DANtheBEASTman>
I don't understand what havenwood meant by putting --user-install in gemrc.. well I mean that's exactly the desired effect I want but surely putting that exact string in the file won't work.. and I can't find a syntax guide on the front page of googling 'gemrc syntax'
bruno- has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<DANtheBEASTman>
in other words I don't know how to do X because the front page of googling Y didn't help me
<havenwood>
DANtheBEASTman: For example: gem: "--no-document --env-shebang --user-install"
datanoise has quit [Ping timeout: 272 seconds]
marr has joined #ruby
abuzze_ has joined #ruby
<DANtheBEASTman>
so I could replace my whole gemrc with.. echo 'gem: "--user-install"' > ~/.gemrc ? idk what those other switches do because they're not in --help or man ruby
michael_mbp has quit [Excess Flood]
last_staff has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
<ljarvis>
size/delete_at are not Enumerable methods
<ljarvis>
you would have to delegate those to your Array
blandflakes has quit [Client Quit]
<ljarvis>
which is, again, what many people here have already suggested
sideshowcoder has joined #ruby
<baweaver>
If people have already suggested that then why hasn't that been tried yet?
* baweaver
came in late
Hounddog has quit [Ping timeout: 255 seconds]
<ljarvis>
delegate is basically exactly what Parter_ is looking for. However, they're just ignoring it and waiting for somebody to write the code for them
Hounddog has joined #ruby
<baweaver>
Noted
<baweaver>
Well on that I'm probably calling it a night then
<Parter_>
ljarvis, or not undestanding
<ljarvis>
g'night
psy_ has quit [Ping timeout: 240 seconds]
<baweaver>
'night
mikecmpbll has joined #ruby
<ljarvis>
Parter_: if you don't understand, then ask questions
<ljarvis>
but at least try what has been suggested
mello has joined #ruby
<Parter_>
Your code not working with .size .map +=
<Parter_>
this is trouble
<sevenseacat>
lol
<sevenseacat>
thats not questions
<ljarvis>
sevenseacat: halp
<apeiros>
baweaver: they drop through time about every third episode
<sevenseacat>
thats 'fix it for me'
bruno- has joined #ruby
vivekananda has quit [Ping timeout: 258 seconds]
<Parter_>
my question is simple and still this same. How writing my own Array with all Array functionality and some variables
<sevenseacat>
ok, now whats the problem with that blob of code
<sevenseacat>
other than 'it doesnt work'
<DefV>
WHAT
<DefV>
channel consolidation?
<DefV>
this is bullshit
<ljarvis>
yep
<sevenseacat>
DefV: aye.
<ljarvis>
hey now
mello has quit [Ping timeout: 265 seconds]
<sevenseacat>
welcome.
<jhass>
hi!
<DefV>
where should I crosspost my questions now
<DefV>
</troll>
<ljarvis>
here and here
<sevenseacat>
lol
<jhass>
DefV: ##ruby
<yorickpeterse>
DefV: #python
<ljarvis>
yay for solving problems
duncannz has quit [Ping timeout: 272 seconds]
<ljarvis>
oh no
<baweaver>
#RubyOnRails works too
bruno- has quit [Ping timeout: 264 seconds]
<baweaver>
Radar loves it when people do that
* apeiros
too
<sevenseacat>
oh dear
terlar has joined #ruby
* baweaver
ducks and runs off
<professor_soap>
This is probably very elementary. I have a class with an attr_accessible "attrs" that hold things like an id. I need to write a finder method that iterates through these objects attrs hash and find by id. Can anyone point to a nice way of doing this?
circ-user-gqbmz is now known as Pathfinder
<ljarvis>
professor_soap: what about storing them in a Hash so the lookup is O(1) rather than using select or something?
<bnagy>
professor_soap: you don't iterate through hashes, you just get your item
dvxam has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
<jhass>
professor_soap: some code might illustrate what you're doing better
baweaver has quit [Remote host closed the connection]
symm- has joined #ruby
bkxd has joined #ruby
<tirel>
hello ruby chan. Does anyone knows an alternative to mkmf to build Makefile in ruby? mkmf incredibly inflexible folder structure all files must be in the same directory!
<tirel>
mkmf has*
nhhagen has joined #ruby
michael_mbp has joined #ruby
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Client Quit]
timonv has joined #ruby
Igorshp has joined #ruby
<ljarvis>
tirel: that's not true
tkuchiki has quit [Ping timeout: 245 seconds]
jph98 has joined #ruby
<ljarvis>
oh actually i've misunderstood
<ljarvis>
it probaly is true
<tirel>
@ljarvis Yeah I think it is..
quimrstorres has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
<tirel>
I was talking about the C/C++sources
CustosLimen has quit [Read error: Connection timed out]
marr123 has joined #ruby
marr has quit [Ping timeout: 265 seconds]
marr123 has quit [Client Quit]
quimrsto_ has joined #ruby
<ljarvis>
oh, you want to add include paths? because you can use dir_config for that
CustosLimen has joined #ruby
tkuchiki has joined #ruby
marr has joined #ruby
<tirel>
Yes but using config_dir needs to be using command line options when actually calling the generated Make file, doesn't it ?
quimrstorres has quit [Ping timeout: 272 seconds]
abuzze_ has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
abuzze has joined #ruby
Pathfinder has quit [Ping timeout: 240 seconds]
quimrsto_ has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
datanoise has quit [Ping timeout: 258 seconds]
skade has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
livathinos has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
tyrel_ has joined #ruby
fujimura_ has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
abuzze has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
bjornar has joined #ruby
kj_ has joined #ruby
<kj_>
how to run mysql query in controller ?
abuzze has joined #ruby
spider-mario has quit [Ping timeout: 258 seconds]
<jhass>
?rails kj_
<ruboto>
kj_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
jenrzzz has joined #ruby
starless has left #ruby ["Leaving"]
Ilyes512 has quit [Client Quit]
spider-mario has joined #ruby
revath has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
<Radar>
DefV: Please cross post your questions to ##python, ##php and ESPECIALLY #haskell
ahmetkapikiran has joined #ruby
<kj_>
ruboto_ this is the message i am gettting when I am posting anything in rubyonrails channel
<kj_>
Cannot send to channel: #RubyOnRails
<sevenseacat>
kj_: you didnt read the help text did you
tyrel_ has quit [Remote host closed the connection]
<Radar>
You have failed the first test.
<Radar>
kj_: You need to register with nickserv first.
last_staff has joined #ruby
solars has joined #ruby
revath1 has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
Pathfinder has joined #ruby
revath1 has joined #ruby
f3lp has quit [Ping timeout: 276 seconds]
ahmetkapikiran has quit [Client Quit]
revath has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
roolo has quit [Remote host closed the connection]
Exponential has joined #ruby
mike___1234 has joined #ruby
abuzze has quit [Remote host closed the connection]
fujimura has joined #ruby
arBmind has joined #ruby
revath1 has quit [Ping timeout: 264 seconds]
Pathfinder has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
<maloik>
Anyone happen to be aware of a project that is some kind of starter/demo RoR application with the purpose of demonstrating bugs, trying out new gems etc? I remember reading about it some time ago, possibly on /r/ruby but I forgot the name
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 246 seconds]
spider-mario has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
Igorshp has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
VinnyBoy has quit [Read error: Connection reset by peer]
haxrbyte has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
MrBeardy has joined #ruby
Mon_Ouie has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mello has joined #ruby
dionysus69 has joined #ruby
Pathfinder has joined #ruby
Igorshp has quit [Remote host closed the connection]
anisha has joined #ruby
gokulnath has joined #ruby
ESpiney_ has joined #ruby
yh has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
SalexW has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 264 seconds]
mello has quit [Ping timeout: 252 seconds]
Pathfinder has quit [Remote host closed the connection]
ESpiney has quit [Ping timeout: 245 seconds]
revath has joined #ruby
jenrzzz has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
<tirel>
hello ruby chan. Does anyone knows an alternative to mkmf to build Makefile in ruby? mkmf has incredibly inflexible folder structure : all files must be in the same directory!
hagabaka has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
micmus has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
olistik has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
tercenya_ has quit [Ping timeout: 252 seconds]
Akagi201 has quit [Remote host closed the connection]
olistik has quit [Ping timeout: 276 seconds]
abuzze has joined #ruby
chthon has joined #ruby
simi has joined #ruby
fgo has joined #ruby
khebbie has joined #ruby
hectortrope has joined #ruby
workmad3 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
blandflakes has joined #ruby
ur5us has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
<yorickpeterse>
You asked the same question a while ago
abuzze has joined #ruby
blue_deref has quit [Quit: Leaving]
n008f4g_ has joined #ruby
<tirel>
yes, and got no real answers...
kj_ has quit [Quit: Page closed]
quimrstorres has joined #ruby
gokulnath has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
<yorickpeterse>
asking it again in just 45 minutes probably isn't going to get you an answer faster
blandflakes has quit [Client Quit]
<yorickpeterse>
at least not one that's not "no there isn't"
elia has joined #ruby
fu2ristiq has joined #ruby
<fu2ristiq>
hi everybody
thomasvm has joined #ruby
<tirel>
ok thx yorickpeterse
sdothum has joined #ruby
OrbitalKitten has joined #ruby
chadrien has joined #ruby
<fu2ristiq>
"Programming Ruby" vs "Ruby Way" books. Which one is better to read if I've completed Koans?
ruby_nuby has joined #ruby
tvw has joined #ruby
<ljarvis>
fu2ristiq: start building something
hs366 has joined #ruby
granthatcher has joined #ruby
<fu2ristiq>
ljarvis like what?
tercenya has joined #ruby
<ljarvis>
fu2ristiq: I don't know. What would you do once you've "finished" learning Ruby?
<jhass>
maybe you have something that you do regularly and could partially automate?
<fu2ristiq>
oh, thank you guys.
<apeiros>
evergreens: write an irc bot, write a webframework, write a webscraper
<apeiros>
which evergreens did I miss?
<ljarvis>
webframework should be on there twice
<apeiros>
true
<apeiros>
oh, a gem to help you make gems
<fu2ristiq>
by the way, speaking about productivity. why do people use tmux/screen when iTerm has this neat split action going on?
elia has quit [Read error: Connection reset by peer]
ArchRogem has joined #ruby
<fu2ristiq>
do I miss something?
<ljarvis>
what happens when you close the iterm window?
<ruby_nuby>
Anyone using Neo4J ActiveNode in ruby? I'm struggling a bit with a model
<MrBeardy>
also I'd prefer being able to use something I can use everywhere, rather than just something on mac
<fu2ristiq>
well, yeah.
<Darkwater>
7
Elboerea has quit [Ping timeout: 272 seconds]
<maloik>
Radar: sorry for the vague question, but do you think Paranoia should alter the nested_attributes behavior in any way? Our app has a bug where a test is suddenly failing, and I can't figure out why. I just set up a new project with paranoia to try to recreate the problem but to no avail, so I'm guessing it's only happening because of our code. I see no reason for it myself, but I wanted to see if it throws any red flags on your end
<fu2ristiq>
thanks guys
fu2ristiq has left #ruby ["WeeChat 1.1.1"]
dionysus69 has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
sevenseacat has quit [Ping timeout: 258 seconds]
elia has joined #ruby
t_ has joined #ruby
Musashi007 has joined #ruby
dionysus69 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
dhjondoh has joined #ruby
alexherbo2 has joined #ruby
gokulnath has joined #ruby
oo_ has joined #ruby
senayar has quit [Remote host closed the connection]
justintv90 has quit [Ping timeout: 256 seconds]
micmus has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Pathfinder has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
senayar has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
langland_ has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider>
tirel: you _might_ try mkrf. I doubt it'll help.
ndrei has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
langlands has quit [Ping timeout: 265 seconds]
Iskarlar has joined #ruby
<zenspider>
I also think your assertion about a single source dir is incorrect.. at least, doable if you're willing to put in the (probably not worth it) effort.
mello has joined #ruby
<zenspider>
gah that shit is still horribly ugly
ledestin has quit [Ping timeout: 258 seconds]
last_staff has quit [Remote host closed the connection]
bruno- has joined #ruby
Juanchito has joined #ruby
phale has joined #ruby
failshell has joined #ruby
<phale>
jhass: are you there?
justintv90 has joined #ruby
nfk has joined #ruby
<jhass>
any issue?
<phale>
how come you're always here
<jhass>
it's just open in the background
<phale>
oh
elia has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
<Darkwater>
12:03 ~ NiseVoid │ Darkwater: Ruby was made by a drunk japanese guy rite?
<Darkwater>
12:03 + Darkwater │ why drunk
<Darkwater>
12:03 ~ NiseVoid │ Because obviously the return last line thing is something you would only do when drunk
<Darkwater>
how do I deal with people like these
mello has quit [Ping timeout: 245 seconds]
<tobiasvl>
haha wtf
<phale>
Darkwater: use a sane language
ledestin has joined #ruby
<ljarvis>
of all the things they could have picked on, it was something nice?
<jhass>
Darkwater: in doubt with /ignore add
<phale>
what if his client doesn't support ignoring?
<Darkwater>
I've tried leaving his channel
<jhass>
then get a better client
<Darkwater>
but for some reason I keep talking to this guy
puppeh has joined #ruby
<Darkwater>
it's been going on for about 6 years
<puppeh>
anyone here using the ruby 2.1 github fork in production?
ruby_nuby has quit [Remote host closed the connection]
<phale>
Darkwater: try using something like Limbo
<phale>
maybe he'll shut up
chthon has quit [Quit: Ex-Chat]
failshell has quit [Ping timeout: 265 seconds]
<Darkwater>
oh god
<Darkwater>
I don't think I'm ready for that
livathinos has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
<phale>
then ascend lol
codecop has quit [Quit: Išeinu]
<phale>
I go on here to talk to people
<phale>
not to code in Ruby
tesuji has joined #ruby
Pathfinder has quit [Ping timeout: 276 seconds]
<jhass>
well, you don't appear to seek a nice conversation either
chipotle has joined #ruby
<phale>
jhass: hm?
mandarinkin has quit [Ping timeout: 246 seconds]
<jhass>
I never see questions from you that are designed to spark a nice conversation, quite the opposite in fact
Pathfinder has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
mistermocha has joined #ruby
<phale>
jhass: probably because I don't code in Ruby?
<jhass>
I don't think that's related
ScriptGeek has joined #ruby
toretore has joined #ruby
<phale>
phale> quantum physics and astrophysics can be applie to a set of ruby programs right
<phale>
that was my last question
<phale>
I got called a troll for whatever reason
mandarinkin has joined #ruby
concave has quit []
langland_ is now known as Langlands
withnale_ has joined #ruby
sigurding has quit [Quit: sigurding]
nofxx has quit [Ping timeout: 255 seconds]
terlar has quit [Quit: WeeChat 1.2]
<jhass>
well, it's also things like "12:04 <phale> Darkwater: use a sane language" that you drop all the time
<jhass>
you do appear quite close to a troll, yeah
senayar has quit [Remote host closed the connection]
<phale>
no I'm serious
<tobiasvl>
phale: you don't use ruby?
<phale>
He should use a saner language
mistermocha has quit [Ping timeout: 245 seconds]
<phale>
tobiasvl: No.
symm- has quit [Ping timeout: 246 seconds]
ruby_nuby has joined #ruby
<tobiasvl>
then why are you here? "to talk to people" about what?
<jhass>
phale: tbh I think #ruby is just the wrong community for you
<phale>
I want to help people with Ruby problems and issues.
<phale>
so basically everything about Ruby
<apeiros>
phale: it doesn't look like that
<phale>
apeiros: Give me one more chance, I'll help one person
<tobiasvl>
and helping people with their problems include telling them to use a saner language
<apeiros>
phale: I can tell you that I'm quite close to perma-banning you. so better use that chance.
<phale>
who wants help
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
same here, quite close to ban you too
terlar has joined #ruby
<apeiros>
and stuff like "use a sane language" is inacceptable.
<apeiros>
next time I see shit like that you're gone.
chussenot has joined #ruby
Rickmasta has joined #ruby
<phale>
apeiros: why?
<phale>
I'm giving the users advice, that IS helping them.
<tobiasvl>
yep, troll
<apeiros>
I'm not going to discuss that. it's obvious enough.
<jhass>
phale: at the end of the day if you don't see why that's sad, but you have to accept it
<phale>
I'm sorry but I don't understand why people consider me as a troll because I help people.
clauswitt has joined #ruby
<tobiasvl>
do you help them with anything else than suggesting they use other languages?
<phale>
tobiasvl: Not really
<tobiasvl>
because that's not helping them with ruby
<apeiros>
this discussion is over
<apeiros>
anybody continuing it will be kicked.
<apeiros>
phale will either help people or go.
<apeiros>
that's the last of it.
<phale>
:-)
TheHodge has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv>
is phale causing trouble again?
<Darkwater>
I'd have banned him already
<phale>
ddv: No I'm helping people
timonv has joined #ruby
<apeiros>
ddv: 12:22 apeiros: [this discussion is over] anybody continuing it will be kicked.
<apeiros>
same @ Darkwater
<ddv>
apeiros: didn't read that
<apeiros>
I mean it. no further warning.
<ddv>
I just logged on lol
<phale>
Love is Looking Over Various Errors, Hate is Habitually Accelerating Terror.
serivich has joined #ruby
<ljarvis>
that's Hat
livathinos is now known as livathinos|away
<puppeh>
when configuring ruby from source with ./configure and trying to pass the openssl path with `--with-openssl-dir`, what location am I supposed to pass? The lib/ dir of my OpenSSL installation or the bin/?
<puppeh>
or the root?
centrx has joined #ruby
<phale>
apeiros: Please don't kick me, I don't know how to help this person.
<adaedra>
the root
User458764 has joined #ruby
<adaedra>
which contains bin/ and lib/
Scroff has joined #ruby
<puppeh>
OK thanks
AlphaAtom has joined #ruby
nofxx has joined #ruby
Pathfinder_ has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
oo_ has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 264 seconds]
datanoise has joined #ruby
Zai00 has quit [Client Quit]
ur5us has joined #ruby
TinkerTyper has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103303]]
neanderslob has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Darkwater>
for all we know you could even be talking about a checkbox on a presidential election form which you're spying on using a sattelite and you're trying to get which checkbox the voter checks
<Darkwater>
Jagan: the answer to all your questions requires knowledge of what kind of checkbox you are talking about
<Darkwater>
on a html page? gui desktop application?
futilegames has joined #ruby
chipotle has joined #ruby
<Jagan>
web application
<apeiros>
took only 5 tries…
<Jagan>
.empty?
<Darkwater>
progress!
<Jagan>
this is fine.
<apeiros>
?code Jagan
<ruboto>
Jagan, We can't help you without your code, please post it to https://gist.github.com
crankharder has quit [Ping timeout: 272 seconds]
<Darkwater>
now, what framework do you use, if any?
<Jagan>
Okay friends.
<Jagan>
cucumber
crankharder has joined #ruby
<Darkwater>
isn't that a testing framework?
<apeiros>
yes
<Jagan>
Web application using POM method
<toretore>
troll meter certainty currenctly at 63%, rising.
<Jagan>
yes
datanoise has quit [Ping timeout: 265 seconds]
nuck has quit [Ping timeout: 265 seconds]
<Jagan>
automation testing framework
<Darkwater>
toretore: clueless people actually exist though
<Darkwater>
Jagan: I meant for the website itself
<Darkwater>
a web framework
<Darkwater>
rails? sinatra?
<toretore>
the best trolls are indistinguishable
A124 has joined #ruby
<Jagan>
not a rails
<apeiros>
Jagan: so in your cucumber test story you want to have a step which checks whether a checkbox is checked?
<Jagan>
only ruby using page object model
<toretore>
Jagan: paste your code on gist.github.com and give us the link
Spami has quit [Quit: This computer has gone to sleep]
<toretore>
Jagan: show us the code
<toretore>
Jagan: code
<Jagan>
okay..
<apeiros>
ok, so with Jagan to follow up on questions, you obviously have to ask at least 5 times.
* jhass
should write a bot
<Jagan>
<apeiros> so in your cucumber test story you want to have a step which checks whether a checkbox is checked?
<toretore>
Jagan: still waiting to see the code
<apeiros>
Jagan: just for future reference - if you want help, answer on follow up questions. I'm amazed that people aren't already ignoring you.
<Jagan>
this is exact question
Jackneill has joined #ruby
<MrBeardy>
then answer it lol
<Darkwater>
Jagan: show code
<adaedra>
jhass, the bot writer
<Jagan>
this is automation testing
thomasvm has joined #ruby
<toretore>
Jagan: code
<Jagan>
How will show the code
<apeiros>
Jagan: with rspec + cucumber, that'd be: find(SELECTOR_FOR_CHECKBOX).should be_checked
oo_ has quit [Remote host closed the connection]
* SebastianThorn
is reading all Jagan is writing in russian accent :)
hs366 has quit [Ping timeout: 252 seconds]
<Jagan>
I want idea for ruby using Page object model
<bnagy>
fml
bkxd has joined #ruby
<toretore>
Jagan: go to https://gist.github.com/ - copy and paste your code there, click the create button, copy the link from your browser's address bar, then paste the link in here
gauke has joined #ruby
<Darkwater>
make sure to include your Gemfile if you use that
<adaedra>
apeiros: too bad, we could have asked phale to help him :p
oo_ has joined #ruby
<SebastianThorn>
adaedra: haha
j4cknewt has quit [Remote host closed the connection]
<apeiros>
adaedra: seriously, I said that's over. that applies to you too.
scripore has joined #ruby
<adaedra>
:(
j4cknewt has joined #ruby
<Jagan>
<apeiros> Jagan: so in your cucumber test story you want to have a step which checks whether a checkbox is checked? you only understand my question. this is for automation testing
jph98 has quit [Ping timeout: 240 seconds]
<apeiros>
the best way to get trolls and "undesirable" people out, the best way is to stop paying them attention. report to ops, then ignore.
<apeiros>
minus one "best way".
TinkerTyper has quit [Ping timeout: 256 seconds]
<adaedra>
heh, he's not here anymore, that's why I allowed myself that
<apeiros>
that makes it *slightly* less bad.
<Jagan>
"I need to verify checkbox is checked or not, if not checked means, i will checked " this is my question in ruby
<MrBeardy>
There should be a !solution command for bots that sends them a message with the supplied solution to someone for every message they send after that
amystephen has joined #ruby
<Jagan>
this is only cucumber
<Jagan>
Can you pls tel me in ruby
<apeiros>
Jagan: cucumber is executed by a language
<apeiros>
and if you use ruby+rspec to execute cucumber, the above is the answer.
<Jagan>
.empty?
futilegames has quit [Quit: futilegames]
<Jagan>
this is fine for ruby
<Jagan>
I am not using rspec
TinkerTyper has joined #ruby
<apeiros>
then. provide. useful. information.
<apeiros>
seriously.
<toretore>
Jagan: where's that code?
<toretore>
Jagan: waiting to see your code
revath1 has joined #ruby
<toretore>
Jagan: code
<apeiros>
anyway, I'm giving up. I've no patience for that.
mase-chatter has joined #ruby
<Darkwater>
Jagan: if you want help, answer our questions
<jhass>
I suggest we all do that until Jagan read ?answers
scripore has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
dcarmich has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blandflakes has joined #ruby
Ilyes512 has joined #ruby
gix has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ahmetkapikiran has joined #ruby
oo_ has quit [Remote host closed the connection]
tomkadwill has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
newbie has joined #ruby
newbie is now known as Guest11560
TinkerTyper has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
TinkerTyper has joined #ruby
davedev24_ has joined #ruby
<Guest11560>
hello, it is the first time for me to use irc, I got a quesation here: "The car costs $1000 and the cat costs $10".scan(/\d*/) {|d| puts d}. it only shows 10. but if * changed to +, both 1000 and 10 will show. Why?
exile-bot-2 has quit [Remote host closed the connection]
joast has joined #ruby
Hobogrammer_ has joined #ruby
<Guest11560>
thank you for your help
ndrei has quit [Ping timeout: 272 seconds]
<tobiasvl>
Guest11560: hmm. it works here, except that the former with * also puts a lot of empty strings.
krz has quit [Quit: WeeChat 1.0.1]
<apeiros>
Guest11560: it actually shows you much more than just 10 and 1000
<apeiros>
because \d* also matches on zero \d's, i.e. the empty string
sankaber has joined #ruby
<apeiros>
>> "The car costs $1000 and the cat costs $10".scan(/\d*/)
<cout>
is it possible to use rake as a library instead of as a standalone application? my guess from reading the source is "no, not easily", since tasks defined with the dsl forward to an application singleton
freerobby has quit [Quit: Leaving.]
j4cknewt has quit [Ping timeout: 256 seconds]
yh has quit [Remote host closed the connection]
yh has joined #ruby
mary5030 has joined #ruby
ahmetkapikiran has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby
khebbie has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
<cout>
adaedra: this nick predates C++ standardization :)
<adaedra>
ahah
mary5030 has joined #ruby
b_hoffman has left #ruby [#ruby]
<cout>
my first irc nick was Alt-255, and I've pondered going back to it, but nobody would know who I am since I've been using this one for 20 years now
<cout>
HOLY COW
<cout>
I'M OLD
<adaedra>
Leave the cow alone
<cout>
adaedra: cam
<cout>
can't
jerius has joined #ruby
<adaedra>
:)
<jhass>
too tasty
dblessing has joined #ruby
<cout>
adaedra: I came from clemson. We love our cows.
fabrice31 has quit [Remote host closed the connection]
<adaedra>
Anyway, did your answer solved your problem?
<cout>
yeah I think so
<adaedra>
Clemson, South Carolina?
<cout>
yeah
<imperator>
cout, thor perhaps?
<cout>
imperator: what's thor?
<adaedra>
It's a good thing that only the USA exists as a country, so you can give a city name without other precision like that
<adaedra>
:p
thiagovsk has joined #ruby
<cout>
imperator: haha, whatisthor.com
<cout>
I've looked at this before
<adaedra>
it's a good thing for clis
<cout>
interesting, but I'm modifing an existing app rather than building a new one
caseypatrickdris has joined #ruby
<adaedra>
so your goal is to use existing rake tasks and call them from a cli?
SimonKnight has joined #ruby
<SimonKnight>
Hi everyone
<cout>
adaedra: my goal is to not have to use the tsort lib directly
<cout>
adaedra: but instead to use a high-level interface
<adaedra>
tsort?
<cout>
topological sort
<cout>
basically I don't want to have to write all the guts to do dependency resolution but build on what already exists (and is already installed on all our machines)
<adaedra>
because we were talking about rake above, I don't see the link
<cout>
adeponte: the point of make (and also rake) is it correctly orders tasks in order of dependency
someword has joined #ruby
<cout>
adeponte: the DSL is icing
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deded has joined #ruby
<deded>
hi
<jhass>
hi
<ljarvis>
hi
<olegtc>
hi
<deded>
say i have a block whatever.map {|o| some logic that involved o } - the logic is too long, can i do whatever.map {|0| logic_method} def logic_method; stuff that involve o; end
<deded>
jhass: does it have to be passed as an argument? it seems to work as it is?
twinkelhood has joined #ruby
<jhass>
yes it has
<jhass>
?fake
<ruboto>
Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<deded>
jhass: kind of like inside the method o is still available without passing it
<adaedra>
well, o may be a method on the object
<adaedra>
code may help see that
<jhass>
deded: that's very unlikely, as to the why it seems so, see above
SimonKnight has quit [Ping timeout: 246 seconds]
<deded>
jhass: thanks
devdazed has joined #ruby
mrmargolis has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
mmazing has quit [Ping timeout: 245 seconds]
<twinkelhood>
Hey, I'm trying to overwrite the initialize of Array, but I'm unsure how to retain original behaviour. was trying something like this:http://pastebin.com/JSXtq2KP
<bkxd>
so for us noobs, why is monkeypatching array such a bad idea?
<bkxd>
understand that it could potentially mess with a lot of things and is hard to maintain
iamninja has joined #ruby
<twinkelhood>
Because it'll kill you in your sleep. Subclass it if you want to use your own logic :)
arturaz has quit [Remote host closed the connection]
<ljarvis>
bkxd: pretty much yep
<bkxd>
makes sense
<ljarvis>
also, subclasses classes you dont own is also a bad idea ;)
<ljarvis>
subclassing*
blandflakes has quit [Client Quit]
<twinkelhood>
I mean, not that that ever kept activesupport from doing it >:(
CustosLimen has quit [Ping timeout: 244 seconds]
<twinkelhood>
It depends on what you want.
<ljarvis>
meh, they don't hide it
Eising has joined #ruby
<adaedra>
It's the reason of ActiveSupport
jenrzzz has quit [Ping timeout: 264 seconds]
<toretore>
it's like all global state, the more said state is relied upon from different users, the bigger the chance of something breaking
<twinkelhood>
Am I here some... "That's bad practise unless DHH is doing it" from you guys? <3
<toretore>
and Array#initialize is perhaps one of the most relied-upon
freerobby has joined #ruby
DerisiveLogic has joined #ruby
<adaedra>
AS just add methods no, not replacing?
<toretore>
activesupport's monkey patching, like all monkey patching, is nothing but laziness
<ljarvis>
I actually think ActiveSupport is a good idea
momomomomo_ has joined #ruby
<toretore>
some of it is valuable, some isn't.. some improvements found their way back to core as well iirc
<apeiros>
active-refinement
<ljarvis>
Ruby was built with the flexibility to control/mutate these things. It's arguably one of its greatest strengths. Can't hate on AS because it uses them
<twinkelhood>
I'm a fan of it too.
<twinkelhood>
I'm just trolling.
<twinkelhood>
It does really nice things
<ljarvis>
just remember, never require active_support/all unless you're in a rails app or actually NEED everything
<twinkelhood>
Like, aliasing << with :append, that just smells of good intentions.
Papierkorb has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
araujo has quit [Quit: Leaving]
lavros has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
CustosLimen has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
<wnd>
Couple of weeks ago I spent considerable time figuring out why "GET" would an invalid HTTP method according to aws-sdk/seahorse/foo. At the end it turned out someone had monkeypatched String#capitalize to be unicode-aware, but at the same made it incompatible with the behaviour of original String#capitalize. "GET".capitalize would become "Get" and seahorse/aws-sdk would fail hard.
serivichi has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<twinkelhood>
wnd, awesome example.
serivich has quit [Ping timeout: 264 seconds]
tsou has joined #ruby
<apeiros>
wnd: um, that's how capitalize works…
<twinkelhood>
Good-intentioned monkey-patching of core stuff, is peeing in someone elses pants to get them to like you. It works at first, then... or.. yeah
Akagi201 has quit [Read error: Connection timed out]
<apeiros>
.upcase if you want all chars uppercase.
<apeiros>
sounds to me like in this instance it wasn't the monkey-patcher's fault :)
<toretore>
*would* have been a good example ;)
<twinkelhood>
Shhh, he's example still explains what kinds of things goes wrong
<wnd>
oh, sorry, it was the opposite. seahorse would expect "Get" but the patched version would basically only touch upcase the first character and not touch the rest.
<apeiros>
yeah. sorry for being a punch-line killer :D
fujimura_ has joined #ruby
<apeiros>
wnd: aha, so "GET".capitalize would return "GET"?
<txdv>
o no, he is here, all hide
<apeiros>
well, shame on aws-sdk for violating rfc anyway
scripore has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
clauswitt has joined #ruby
<toretore>
it's probably not sending "Get"
<toretore>
just using it to look up something
scripore has joined #ruby
<wnd>
def capitalize; return "" if size < 1; UnicodeUtils.upcase(self[0]) + self[1..-1]; end; end
araujo has joined #ruby
<wnd>
where did my "class String" go?
<toretore>
"Get".constantize probably :P
<apeiros>
wnd: yupp, that's indeed a broken patch
simi has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
<apeiros>
should be `UnicodeUtils.upcase(self[0]) + UnicodeUtils.downcase(self[1..-1])`
scripore has quit [Client Quit]
<toretore>
or `def unicode_upcase`
olegtc has quit [Ping timeout: 272 seconds]
<apeiros>
and yes, it's still a bad idea to monkey-patch String's method to do that :)
<wnd>
best part is that the code did come with explanation how it was supposed to work and it /did/ work exactly as described
<txdv>
>> "shevy " * 100
sigurding has quit [Quit: sigurding]
<apeiros>
expected behavior is ascii only
<ruboto>
txdv # => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy she ...check link for more (https://eval.in/374356)
araujo has quit [Max SendQ exceeded]
<jhass>
txdv: seriously, that's what we get from lifting your ban?
<apeiros>
!kick txdv don't use the bot for spam
txdv was kicked from #ruby by ruboto [don't use the bot for spam]
catcher has joined #ruby
<apeiros>
oh, we even had them banned?
Voker57 has quit [Ping timeout: 255 seconds]
<jhass>
yeah
txdv has joined #ruby
<txdv>
ok sorry
<txdv>
its just a thing i do to shevy
<jhass>
well, stop it
fujimura_ has quit [Ping timeout: 246 seconds]
<txdv>
but then it wouldn't be our thing anymore
<apeiros>
we don't care
Kricir has joined #ruby
<apeiros>
this channel is not here for you to spam it.
<txdv>
This is actually a call for shevy to join the conversation
<txdv>
Is inviting people to a conversation forbidden?
<jhass>
txdv: next time you do it, you're gone again. End of discussion
ixti has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
see we should totally go back to #ruby-lang
<yorickpeterse>
:D
<jhass>
(continue the discussion and you're gone too)
<adaedra>
If people would stop /quit, I would be able to click that link.
<surrounder>
fix that in your client then
<adaedra>
yorickpeterse: TIL
<yorickpeterse>
^ both weechat and IRC can filter parts
<adaedra>
I don't want to remove parts
<mikecmpbll>
or more worrying, improve reaction speed / mouse control
<surrounder>
indeed, very easy with weechat to toggle too
<adaedra>
And why would I fix my setup when it's obvious that it's other people fault >_>
mcclurmc has quit [Ping timeout: 256 seconds]
<surrounder>
hehe
<ljarvis>
lmao if you list joins/parts/quits
<adaedra>
problem?
<centrx>
They show the passage of time naturally
<yorickpeterse>
adaedra: what client are you using?
aganov has quit [Remote host closed the connection]
<adaedra>
Textual
<yorickpeterse>
oh hm, that's one of those hipster clients
tagrudev has quit [Remote host closed the connection]
Blaguvest has joined #ruby
<yorickpeterse>
either way, Weechat at least can use a "smart" filter, where it hides /parts and /quits unless said person spoke in the past few minutes
<adaedra>
I had that once
<ljarvis>
do you even irssi
<yorickpeterse>
also I meant Irssi instead of IRC above
* yorickpeterse
notices the clock says 23:25, might explain a few things
<ljarvis>
that you should be closing oga issues and getting drunk?
porkqpain has joined #ruby
f3lp has joined #ruby
commondream has joined #ruby
<txdv>
yorickpeterse: that is something useful
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 245 seconds]
watchtheblur has joined #ruby
<adaedra>
but heh, I actually don't mind joins/parts
<izzol>
Hmm, how to convert: Mail::AddressContainer to String? I'm using gem: mail and I can get my e-mail from mail.from but this is a: Mail::AddressContainer.
<izzol>
And I need to do something with the string (using split or something), but I cannot since this is not a string :(
<ericwood>
izzol: call .address.to_s on it
<yorickpeterse>
ljarvis: Rust is actually not too bad after the first week of beatings
mcclurmc has joined #ruby
joaomdmoura has joined #ruby
dopie has joined #ruby
<atomical>
if you stop using it do you get ptsd?
symbol has joined #ruby
<izzol>
ericwood: hmm, I thought that I already tested it but probably in wrong way or something. Anyway it works now. Thanks ;-)
<ericwood>
np
<adaedra>
atomical: prsd
<adaedra>
(post-rust)
symbol has quit [Client Quit]
<atomical>
hah
symbol has joined #ruby
arBmind1 has joined #ruby
<yorickpeterse>
atomical: no idea, haven't stopped using it yet
<yorickpeterse>
I do miss Ruby though
<adaedra>
I still hasn't dig enough into Rust
someword has quit [Quit: Leaving.]
<adaedra>
havn't?
<adaedra>
english is hard
sinkensabe has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 264 seconds]
arBmind has quit [Ping timeout: 240 seconds]
jmhmccr has joined #ruby
<ljarvis>
yorickpeterse: I've written a fair amount actually, but still not a huge fan. The syntax gets me quite confused at times and I find it often hard to read rust code for learning purposes
iceden has joined #ruby
<puppeh>
is there anyway I can limit the StackProf::Middleware to a specific unicorn worker?
<ljarvis>
lol a fair amount is a gross over estimation, more like a couple thousand lines
<yorickpeterse>
ljarvis: oh yeah, it requires quite the computing power to grok
<yorickpeterse>
unless they cut down on the syntax bullshit I don't see this becoming as popular as Go for example
<ljarvis>
i dunno, maybe. I think it'll be popular either way. Some people seem prepared to accept all of the syntax stuff that bothers me
<yorickpeterse>
also it's pretty annoying it's either unique pointers or "lol fuck you, reference counting"
<ljarvis>
but not being able to read other peoples code very well becomes a blocker quickly for me
senayar has quit [Remote host closed the connection]
dfinninger has joined #ruby
TommyTheKid has joined #ruby
<dfockler>
Vec<Box<Option<i32>>>
<mwlang>
dfockler: going in with eyes wide open now….I was at first just doing simple substites to replace <USER_ID> with real values and trying and not getting expected results.
Kero has joined #ruby
<jhass>
morissette: *shrug*, perhaps you hit a var internal to minitest? would be sad if so, but try using a different name just for the sake of ruling that out
<TommyTheKid>
I have a multiline string as a hash value that I am trying to use to_yaml on, hoping that it would use the "|" syntax to allow it to spread over multiple lines "cleanly" and its putting it in double quotes with \n's... which is technically valid, but ugly. is there an "easy" way to make to_yaml output multiline strings with yaml | syntax?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TommyTheKid>
(for what its worth, my "string" is an SSL certificate) :)
<dfockler>
mwlang: I mean you should replace the <USER ID> part with an id like in the REST API example
psy_ has joined #ruby
<Synthead>
how can I write a block that has multiple "block" variables? I know how to utilize blocks, but I'm not sure about how to write this block itself.
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peteykun has quit [Read error: Connection reset by peer]
<Synthead>
dorei: I know how to use blocks, but I'm looking to write a block method myself. do I just return an array with yield and do something like "do |foo, bar|"?
nhhagen has quit []
mistermocha has joined #ruby
bzb has joined #ruby
Eiam has quit [Ping timeout: 255 seconds]
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Max SendQ exceeded]
peteykun has joined #ruby
<dorei>
>> def x ; yield [1,2] ; end ; x {|a,b| a+b}
iamninja has quit [Read error: Connection reset by peer]
<Synthead>
dorei: ah that's great, thanks!
<jhass>
TommyTheKid: mmh, it seems to do that by default pretty aggressively for me
shadoi has joined #ruby
<jhass>
TommyTheKid: might want to play with line_width and canonical
nfk|laptop has joined #ruby
justintv90 has quit [Remote host closed the connection]
<yorickpeterse>
ljarvis: refresh my mind for a moment, "foo" is an instance of String, String is a Class, and is an instance of Class. What would you call String here? It's not the singleton class IIRC
<jhass>
only options you have besides indentation anyway
spyderman4g63 has joined #ruby
<yorickpeterse>
hm, if I change my terms I can work around this I think
mistermocha has quit [Ping timeout: 250 seconds]
tjohnson has joined #ruby
bzb has quit [Client Quit]
<mwlang>
dfockler: yeah, I see it now…at first I was completely missing it because, well, I had the Ruby tab opened, not hte Curl tab, so there was a “disconnect” with what was written and what the code was showing.
<ljarvis>
yorickpeterse: i don't follow exactly, you described it pretty well
<Takumo>
So, I've build a rest API as a rack application, anyone got any tips for writing benchmarks for a rack application? I want to run a bunch of calls and measure response times, CPU times, memory usage etc. I could just do it with Benchmark::BM but is there something more integrated with rack?
<TommyTheKid>
jhass: I noticed that most people were trying to get it to *not* split over multiple lines ;)
<TommyTheKid>
I just want it to "obey" the \ns
chussenot has quit [Quit: chussenot]
<jhass>
Synthead: note there's a subtle difference between yield 1, 2 and yield [1, 2], play around with blocks accepting either one or two params and those variants ;)
<yorickpeterse>
ljarvis: the problem is I have a Class in my VM, but that really is just the structure, not an actual class in the language. It is however mapped to a class in the language
<ljarvis>
er
<ljarvis>
Takumo:
<yorickpeterse>
so I had a method called "allocate_pinned_class", which allocates a VM class
djellemah has quit [Ping timeout: 265 seconds]
<jhass>
TommyTheKid: perhaps you got literal \n's for some strange reason like calling inspect somewhere?
<yorickpeterse>
which I've just renamed to "allocate_native_class" which should solve the problem
baroquebobcat has joined #ruby
livathinos has quit []
<ljarvis>
that sounds nicer
<Takumo>
ljarvis: interesting, thanks.
cpt_yossarian has joined #ruby
micmus has joined #ruby
nmyster has joined #ruby
Cache_Money has joined #ruby
shredding has quit [Ping timeout: 245 seconds]
woodruffw has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<TommyTheKid>
jhass: I wouldn't be surprised if something is getting wonky, its coming into puppet via hiera, and normally I just put it into a "file" (/etc/pki/tls/certs/blah.pem), but this time I need it to go to /path/to/app/shared/config/secrets.yml
gwendall has quit [Remote host closed the connection]
<ljarvis>
ugh puppet
gwendall has joined #ruby
banister has joined #ruby
solars has quit [Ping timeout: 256 seconds]
mello has joined #ruby
fgo has joined #ruby
St1gma has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
towski_ has joined #ruby
commondream has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Client Quit]
robustus|Off is now known as robustus
momomomomo has joined #ruby
gwendall has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
dzejrou has quit [Read error: Connection reset by peer]
<someword>
i'm working on an exercise from exercism.io. Need to convert binary to decimal. I have a working solution at https://gist.github.com/anonymous/0e36f055a967c68900b4 - but i'm curious if anyone has any input on the 'to_decimal' method. Having the method guard against invalid input and then actually call the real conversion method. Does that seem 'normal' ? Any other things I should thing? TIA
symbol has quit [Quit: WeeChat 1.1]
<ljarvis>
kaen: did you try with $DEBUG?
<kaen>
I tried with DEBUG=true ruby ...
<kaen>
didn't get anything
<kaen>
also tried --debug
HayesHimself has quit [Ping timeout: 264 seconds]
<kaen>
but only got the caught exceptions
rcvalle has joined #ruby
a1fa has joined #ruby
<TommyTheKid>
lol
mistermocha has quit [Ping timeout: 256 seconds]
<TommyTheKid>
thanks tho guys
ringarring has quit [Read error: Connection reset by peer]
gauke has quit [Quit: gauke]
casadei has joined #ruby
cryptarium has quit [Quit: Leaving]
<someword>
TommyTheKid: Are you using an erb temlate to write your yaml file?
<mwlang>
nmyster: that just makes me want to go out and buy a sonos speaker system. Looks like fun.
<nmyster>
its great!
asmodlol has joined #ruby
<nmyster>
however... i think it broke after latest sonos update
araujo has joined #ruby
BanzaiJoe has joined #ruby
<nmyster>
In my office we have a sonos - I have developed a hipchat bot that lets you interact with Sonos via hipchat - pretty cool
<nmyster>
but, it stopped working
Lucky__ has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<txdv>
who is sonos
<adaedra>
damn hardware vendors who break everything with their updates
<nmyster>
that, with the Spotify gem - https://github.com/Burgestrand/spotify - You can do something like #sonos{artist,Queen} and it would give you the top track for that artist has on spotify and if you replied #yes it would queue it to sonos
a1fa has left #ruby [#ruby]
<nmyster>
I am fairly new to Ruby but I find the gems people have made actually make me love Ruby
Limix has joined #ruby
ndrei has joined #ruby
joneshf-laptop has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<nmyster>
Favourite gems so far are the Sonos one (pre-breaking), hue gem by same devs and spotify gem
wjimenez5271 has joined #ruby
<nmyster>
messing with people in the office using irb > sonos.volume = 100 is always fun :P
tkuchiki has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
<MrBeardy>
get in touch with the maintainer and see if there's anything they can do to fix it
atmosx has quit [Quit: Lost in trance]
<MrBeardy>
(maintainer of that gem*)
<MrBeardy>
plus, for brownie points, you could research the problem before-hand and look through the code to see if you could spot any issues
commondream has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
<nmyster>
yeah i started doing that but got side tracked
<Senjai>
jhass: I'm so proud....
<Senjai>
the tears of joy are real
<jhass>
:D
<Senjai>
congrats on the merge
<jhass>
thanks, all I wanted is to make #ruby the official channel :P
<txdv>
official channel of what?
<adaedra>
happiness
<Senjai>
But will yorickpeterse still go on his rants in a more populated channel. #thatisthequestion
finisherr has joined #ruby
<adaedra>
#HashtagsOnIRC
<MrBeardy>
#ruby
<finisherr>
So, what’s the recommended method of distributing a CLI application w/ a specific version of ruby and specfic bundles?
nmyster_ has joined #ruby
towski_ has joined #ruby
<adaedra>
forcing the ruby version and gem version in Gemfile and let people install that?
<mwlang>
do prediction.io engines have to be in scala, java, or python? or can they also be in Ruby?
toertore has quit [Read error: No route to host]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has joined #ruby
yardenbar has quit [Quit: Leaving]
woodruffw has joined #ruby
<dfockler>
mwlang: looks like the core server is in scala
krz has joined #ruby
<jhass>
is traveling ruby a thing already?
<jhass>
finisherr: ^ look up if so
krz is now known as Guest96197
<havenwood>
Even works on Win.
mrsolo has joined #ruby
<finisherr>
I think vagrant bundles it’s own interpreter
kinduff has joined #ruby
<finisherr>
but i’m not sure
momomomomo has joined #ruby
<finisherr>
i basically just want the application to work without any harsh system dependencies
<bootstrappm>
m0r0n: that is, the array isn't actually in the output if you were to run that ruby program normally. The tool you're using to run it just happens to print the return value of the last line as well
pengin has joined #ruby
dfinninger has joined #ruby
insidious has quit [Ping timeout: 256 seconds]
<xxneolithicxx>
its being "helpful", whatever it is you are using
devdazed has quit [Ping timeout: 245 seconds]
<m0r0n>
bootstrappm, Okay. That clears it up. jhass, That was something Codecademy used, I didn't modify their code when I pasted
<jhass>
ah, so that's where
<jhass>
how sad
catphish has quit [Quit: Leaving]
<m0r0n>
I hate Codecademy, but I need to rush through it to find some common syntax I don't know for an interview tomorrow
<jhass>
m0r0n: "#{x}" with nothing before #{ or after } is an anti idiom, just call x.to_s if x isn't a string already, or in this case print x, print calls to_s for you
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
<m0r0n>
jhass, Thanks. This looks cleaner
mello has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 272 seconds]
<MrBeardy>
m0r0n: You'd learn a lot more a lot faster from the pickaxe book than from the codeacademy tutorials
<m0r0n>
and about the #{}, yeah I wasn't entirely sure why they did that
tsujp has quit [Quit: tsujp is snoozing]
<m0r0n>
I'm actually learning Ruby on Rails via Rails 4 in Action
<m0r0n>
then I realized I needed some more Ruby experience to get through it properly
sandstrom has quit [Quit: My computer has gone to sleep.]
n008f4g_ has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
<m0r0n>
I'm rusty with hashes and blocks, at this point
sandstrom has joined #ruby
paulcsmith has joined #ruby
oo_ has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
granthatcher has quit []
<MrBeardy>
you should definitely take some time out to learn ruby fully on its own, rather than just as a by-product to learn rails
insidious has joined #ruby
Alayde has joined #ruby
allcentury has joined #ruby
<m0r0n>
That's the best route, I admit. I just needed to get a couple interviews to see what people expect from a Jr. Dev
<bootstrappm>
If you're just trying to make something quickly I disagree. If you learn ruby fully you'll be looking into stuff you'll likely never use (e.g. metaprogramming) if you're just gonna create little projects
<bootstrappm>
pareto principle as in everything m0r0n
<mwlang>
for regex, how do I say “consume everything up-to the word ‘Processing”?
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
jaequery has quit [Ping timeout: 265 seconds]
<Master44>
sook
<miah>
/.*Processing/
edwinvdgraaf has joined #ruby
<Master44>
so when i write I never use ()
<Master44>
kike in ""
<havenwood>
mwlang: negative lookahead
<Master44>
ok got it ty
<miah>
the only times i use () is when im defining a method that has arguments, or i'm calling a method with arguments. im sure there are others but those are the ones that stand out
baroquebobcat has quit [Quit: baroquebobcat]
<baweaver_>
Basically go out and program something, you'll find out pretty fast.
<miah>
but even when im calling a method that has arguments, using () isnt required. i just do it for cleanliness
shadoi has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
<baweaver_>
miah: Not an adherent of Seattle style eh?
<miah>
ya, that. go write some code
choke has joined #ruby
momomomomo has joined #ruby
<miah>
i guess not? =)
tlarevo has joined #ruby
n0f3 has joined #ruby
<baweaver_>
def method args, have, no, parens
<miah>
eloquent ruby and rsg have been my bibles
x1337807x has joined #ruby
<baweaver_>
that's Seattle style
<Master44>
I did baweaver, thats why I asked I saw a video and he used () just wonted to know why he did
dfinning_ has quit [Read error: Connection reset by peer]
<miah>
ya
lapide_viridi has joined #ruby
<baweaver_>
though I'm sure zenspider is cringing at me saying that
<havenwood>
mwlang: i mean positive lookahead
dfinninger has joined #ruby
<Master44>
:D
<mwlang>
havenwood: ah….I was reading up on negative lookahead and it wasn’t making sense.
<havenwood>
>> "stuff to be Processing and so on"[/.*(?=Processing)/]
<mwlang>
havenwood: that’s a new one to me. Let me experiment a bit I haven’t used lookarounds before (other than stealing other people’s ideas), so this is a learning exercise for me.
Hijiri has joined #ruby
zendrix has joined #ruby
<adaedra>
<baweaver_> Also comcast is being a pain so fair warning
<adaedra>
according to the internet, isn't that /always/ true
jhooker has joined #ruby
<baweaver_>
Moreso than usual
<adaedra>
:D
<jhass>
baweaver_: btw you should also be able to identify regardless of your current nick, just be explicit: /ns identify baweaver hunter2
momomomomo has quit [Ping timeout: 265 seconds]
<baweaver_>
touchy thing
Vile` has quit [Ping timeout: 256 seconds]
jerius has quit [Quit: /quit]
hazelux has joined #ruby
* jhass
goes back to #freenode
<phale>
jhass: Hey, let's not go off-topic.
sdwrage has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
<baweaver_>
I'll just kick the thing when I get back home.
Torrieri has joined #ruby
Langlands has quit [Ping timeout: 276 seconds]
commondream has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgoyon has quit []
jottr has joined #ruby
<phale>
Nothing against you, just enforcing the rules.
Vile` has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Read error: Connection reset by peer]
zendrix has quit [Remote host closed the connection]
jerius has joined #ruby
jottr has joined #ruby
choke has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
juni0r has quit [Ping timeout: 276 seconds]
CustosLimen has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
baweaver_ is now known as baweaver|work
huddy has quit [Quit: Connection closed for inactivity]
jcaho has joined #ruby
dzejrou has joined #ruby
zendrix has joined #ruby
commondream has joined #ruby
phale has quit [Remote host closed the connection]
duderonomy has joined #ruby
<mwlang>
this regex almost does it, except it gets everything up to the last Processing line in the file: %r{.*(?=Processing)?Processing\s([\w|#]+)\s\(for\s([\d|\.]+)[^\)]+\)\s\[(\w+)\]\n}
baweaver|work has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
<jhass>
mwlang: read up on greedy vs non-greedy
<mwlang>
so I reckon what I need is “less greedy” and match on first occurrance.
Master44 has quit [Quit: Lost terminal]
joaomdmoura has joined #ruby
spyderman4g63 has joined #ruby
<mwlang>
jhass: ok, that confirms I’m on the right track...
<Verrelia>
What is it that you guys found interesting about Elixir?
<diegoviola>
just went to some work at some shop and it looks like they expect me to use windows, I asked if I can use Linux myself and they said "You'll have to use a VM"
ramfjord has quit [Ping timeout: 244 seconds]
<diegoviola>
they're even using PHP it seems
dfockler has joined #ruby
<surrounder>
what's wrong with a vm ?
towski__ has quit [Ping timeout: 265 seconds]
<diegoviola>
I wonder if it could be worse
joaomdmoura has quit [Max SendQ exceeded]
<diegoviola>
surrounder: well, it took me 20 minutes to get Arch up and running in a vm
<surrounder>
so get a decent OS
<miah>
just fullscreen your vm and live in it =)
<surrounder>
still, don't understand what's wrong with having your *nix tools in a vm if the hardware's up to it
<diegoviola>
surrounder: Arch is great, I'm not complaining about the 20 minutes
<surrounder>
you just did
<diegoviola>
no, I didn't
b_hoffman has left #ruby [#ruby]
commondream has quit [Remote host closed the connection]
<diegoviola>
I'm complaining about the fact they won't let me install it on bare metal
<diegoviola>
and Windows is horrible as a host OS
<surrounder>
meh
momomomomo_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<surrounder>
don't notice a difference really
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
<diegoviola>
I could actually barely notice the difference when I full screen Arch
rubie has joined #ruby
<surrounder>
good then
commondream has joined #ruby
finisherr has quit [Quit: finisherr]
<dfockler>
does the GServer class still exist in ruby 2.1
pengin has joined #ruby
nfk|laptop has joined #ruby
shadoi has joined #ruby
<ljarvis>
dfockler: no
<yxhuvvd>
diego: so why are you working at such a place?
<dfockler>
the idea is nice, I guess the implementation was not
Igorshp has joined #ruby
ramfjord has joined #ruby
atmosx has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.2]
ur5us has joined #ruby
iliketurtles has joined #ruby
delianides has quit []
aclapinpepin has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
hazelux has quit [Remote host closed the connection]
balazs has joined #ruby
jhooker has quit [Quit: Leaving]
Guest24 is now known as lele
Zai00 has quit [Quit: Zai00]
xaocon has left #ruby ["WeeChat 1.2"]
symbol has joined #ruby
jaequery has joined #ruby
Matachines has joined #ruby
x1337807x has joined #ruby
baweaver|work has joined #ruby
workmad3 has joined #ruby
bb010g has joined #ruby
nonparfumee has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
apt-get_ has joined #ruby
finisherr has joined #ruby
rushed has quit [Quit: rushed]
zendrix has joined #ruby
yfeldblum has joined #ruby
baweaver|work has quit [Remote host closed the connection]
asmodlol has joined #ruby
tjbiddle has joined #ruby
naftilos76 has joined #ruby
sarkyniin has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
xaocon has joined #ruby
yh has quit [Ping timeout: 265 seconds]
nunayerBeezwax has quit []
towski__ has joined #ruby
commondream has quit [Remote host closed the connection]
baweaver|work has joined #ruby
nedp has quit [Remote host closed the connection]
<xaocon>
I'm very new to ruby and just made a gem. I am looking for any advice on it, from suggestions about ruby idioms to poor code. https://github.com/xaocon/carbonblack
towski_ has quit [Ping timeout: 256 seconds]
casadei has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
zendrix has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
spectra- has joined #ruby
revath has quit [Read error: Connection reset by peer]
yh has joined #ruby
umgrosscol has quit [Quit: Quit]
<jhass>
xaocon: usage examples in the readme make a great gem for starters ;)
pengin has quit [Remote host closed the connection]
<jhass>
xaocon: ruby community standard is 2 spaces for indentation
<jfarmer>
xaocon Ruby code should always be indented 2 spaces per indentation level. That's 2 literal space characters, not 1 tab character set to 2 spaces, not 4 spaces, not anything but 2 literal space characters.
<jfarmer>
haha
Igorshp has joined #ruby
jaycee has joined #ruby
<ddfreyne>
I generally don't use Rubocop as-is (I always have a few tweaks), but it's really good to have a consistent code style.
<jhass>
xaocon: don't mix {ruby_19: hash_style} with {:hash => rockets}
<ljarvis>
to_id should probably be a private method since it's merely a helper and not part of the api
<xaocon>
wow! a lot of great information. thanks for all the advice. while i'm looking for advice, is bundler the best way to manage the gem?
last_staff has quit [Quit: last_staff]
allcentury has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
<jhass>
?better
<ruboto>
I don't know anything about better
Jackneill has quit [Remote host closed the connection]
<jhass>
meh
<jhass>
?best
<ruboto>
"Best" and "better" are subjective. Try to use a different term.
<g0rx>
i need a programmer :)
<g0rx>
i pay via btc
<jhass>
it's certainly not a wrong way ;)
allcentury has joined #ruby
<havenwood>
g0rx: What do you need programmed? How does it relate to Ruby?
<g0rx>
some thing for personal
<jfarmer>
xaocon Sidestepping the semantics of "best," it's the most conventional way and you'd need a good reason to use something else.
<jhass>
g0rx: I wonder how many more days until you'll realize that what you do won't attract nobody, at least nobody sane...
<jhass>
er, *anybody
momomomomo has quit [Quit: momomomomo]
<jhass>
I don't know, I seem to see plain rubygems and something like jewlery etc quite often too
<xaocon>
jhass: certainly best is almost always subjective. could you give me more detail on what is wrong with the hash styles?
elia has quit [Quit: Computer has gone to sleep.]
balazs has quit [Remote host closed the connection]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
<jhass>
xaocon: don't do {:a => b, c: d}, either do {a: b, c: d} or {:a => b, :c => d}
last_staff has quit [Client Quit]
balazs has joined #ruby
affenhoden has left #ruby [#ruby]
asmodlol has quit [Ping timeout: 264 seconds]
affenhoden has joined #ruby
RTG` has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
<jhass>
if one of your keys requires the =>, use them for all of them, else I'd suggest the Ruby 1.9 style, since it's future proof if the API you're using switches to keyword arguments
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
<jfarmer>
xaocon The general principles behind coding style is:
Agoldfish has joined #ruby
<xaocon>
jhass: ahh on the HTTParty request. I think that was mostly copypasta. is 1.9 the rockets? I prefer {a: b} but if that won't work all the time I'll probably switch.
<jfarmer>
1. Whatever style you pick, use it consistently.
A205B064 has joined #ruby
pengin has joined #ruby
<jfarmer>
2. Where the community broadly agrees on a standard, use that.
<jhass>
xaocon: no the colons, the rockets is the old style that works for any kind of key not just symbols
nonparfumee has joined #ruby
asmodlol has joined #ruby
<jfarmer>
3. Where the community is divided, pick one style and stick with it.
<jhass>
that's just 1 rephrased :P
<jfarmer>
Ok...
ldnunes has quit [Quit: Leaving]
<jhass>
don't mind me...
<duderonomy>
if an array of words can be returned with this: words.slice(0..-1) why does the opposite not work as expected? (-1..0) ? What is this newb missing?
<jfarmer>
3. Where the community is divided evenly among a handful of styles, pick one (and don't forget 1)
<apeiros>
good rules IMO :)
<duderonomy>
expecting reverse array
<jfarmer>
don't just pick a random style is my point
<jfarmer>
an idiosyncratic style I mean
<centrx>
-1 > 0
<duderonomy>
I need to learn math too?
<duderonomy>
thx
jenrzzz has quit [Ping timeout: 245 seconds]
<jfarmer>
duderonomy What do you expect it to do?
<dudedudeman>
whoa. a dude
<jfarmer>
I honestly don't have a sense of what I'd "expect."
<duderonomy>
expecting reverse array
<centrx>
Use .reverse
kstuart has quit [Quit: WeeChat 1.2]
<duderonomy>
hey dudedudeman! *my* brother from another mother
<centrx>
oh dear
<dudedudeman>
'ell yeah! my homedoggy
<dudedudeman>
*sup*
kstuart has joined #ruby
* jhass
sense #ruby-dudes forming
djbkd has joined #ruby
ldnunes has joined #ruby
Zai00 has joined #ruby
* dudedudeman
sniffs air, likes what he smells
* sweeper
fistbump
* dfockler
brofist
codeFiend has quit [Quit: codeFiend]
<duderonomy>
I know reverse is good. Just want to know why it does not work as expected (0..-1) does right by me
x1337807x has quit [Read error: Connection reset by peer]
<duderonomy>
Yeah, I was ready for the great epiphany moment just now. bumps_fist :)
Moody404 has joined #ruby
x1337807x has joined #ruby
<jfarmer>
I can understand why Array#slice works this was from an implementation perspective, but it does break the "generality" of the interface.
lordkryss has joined #ruby
<jfarmer>
Like..you'd kind of expect array.slice([i1, i2, i3, ..., iN]) to return a new array populated with the values at indices i1, 12, ..., iN
atmosx has quit [Read error: Connection reset by peer]
dzejrou has quit [Read error: Connection reset by peer]
ndrei_ has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
Ziioynx has joined #ruby
mistergibson has joined #ruby
<apeiros>
jfarmer: that's what values_at exists for
<jfarmer>
apeiros I get that.
<jfarmer>
I'm saying I understand duderonomy's expectations.
e1nh4nd3r has joined #ruby
<jfarmer>
The docs kind of imply it, at least in the case of Ranges
stamina has quit [Quit: WeeChat 1.2]
<jhass>
well, (0..-1).to_a == []
DerisiveLogic has quit [Remote host closed the connection]
<duderonomy>
which is way helpful to helping me sleep at night
<apeiros>
jfarmer: I don't think so, no
dopie has quit [Quit: This computer has gone to sleep]
mrmargolis has joined #ruby
Moody404 has quit [Remote host closed the connection]
<apeiros>
the docs are imo quite clear on #[] accepting either offset,length or offset..offset. and negative offsets being treated as from the end
<jfarmer>
When given a range, the docs say that Array#slice "returns a subarray specified by range of indices."
<jfarmer>
(-1..0) is a "range of indices"
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros>
hm, I guess the wording changed
naftilos76 has quit [Remote host closed the connection]
<apeiros>
at least I remember it differently
dopie has joined #ruby
<jfarmer>
And, as jhass points out, (-1..0) is NOT empty whereas (0..-1) IS
fmcgeough has quit [Quit: fmcgeough]
<apeiros>
yeah, "a subarray specified by range of indices“ can be misunderstood
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jfarmer>
So, that's kind of strange — Array#slice will return a non-empty array for certain empty ranges and will return an empty array for certain non-empty ranges.
mrmargol_ has quit [Ping timeout: 276 seconds]
Miphix has quit [Read error: Connection reset by peer]
roolo has joined #ruby
<apeiros>
I think understanding range argument simply as offset..offset helps understanding it
Miphix has joined #ruby
greenbagels has joined #ruby
<apeiros>
-1..0 would be "from end to start", and slice does not support reverse indexing
codecop has quit [Remote host closed the connection]
<apeiros>
(even though it'd IMO make sense - could return a reversed slice)
<jfarmer>
Right and I get why that's the case.
<jfarmer>
But to "get it" you have to understand something about what makes arrays special as a data type
Soda has quit [Ping timeout: 246 seconds]
<jfarmer>
(i.e., contiguous addressing)
NeverDie has joined #ruby
<finisherr>
What do I pass to Net::HTTP::Get.new to get a request object?
b_hoffman has joined #ruby
fusillicode has joined #ruby
<apeiros>
jfarmer: um, that's kind of the defining aspect of arrays
<jfarmer>
so getting a monotonically increasing slice is easy peasy — O(1) in fact — while getting a monotonically decreasing slice or a slice in a non-contiguous order is O(n)
fusillicode has left #ruby [#ruby]
<jfarmer>
apeiros A beginner doesn't see that, though.
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
<apeiros>
sure. but there's lots of such things in a higher level language.
<jfarmer>
Just saying I can see why the slice is justified in working the way it does and can also see why a beginner is more likely to see that behavior as "surprising"
<jfarmer>
That's all I'm saying.
<jfarmer>
That I can empathize with both sides. :P
choke has joined #ruby
NeverDie has quit [Max SendQ exceeded]
<jfarmer>
And I agree that high-level languages are filled with those kinds of hiccups (though some more than others)
NeverDie has joined #ruby
<jfarmer>
Ruby's generally pretty good on that front, at least among OOP languages.
umgrosscol has joined #ruby
<finisherr>
ljarvis: Ahh, okay, the uri object. The docs say send some kind of method as the first param
iamjarvo has joined #ruby
Channel6 has joined #ruby
<jhass>
finisherr: which docs? new(path, initheader = nil)
<apeiros>
c_nt: see byebug. I think it has a stepper.
BTRE has joined #ruby
<apeiros>
or pry-byebug
spyderman4g63 has quit [Remote host closed the connection]
<c_nt>
thank you
Ox0dea has quit [Read error: Connection reset by peer]
<apeiros>
yw
spyderman4g63 has joined #ruby
gambl0re has joined #ruby
nmyster has quit [Ping timeout: 265 seconds]
Olipro has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 276 seconds]
B1n4r10 has joined #ruby
b_hoffman has joined #ruby
moretti has joined #ruby
b_hoffman has left #ruby [#ruby]
vickleton has quit [Quit: Ex-Chat]
AdamMeghji has quit [Ping timeout: 272 seconds]
neektza has quit [Ping timeout: 252 seconds]
spider-mario has quit [Ping timeout: 245 seconds]
petems has quit [Ping timeout: 272 seconds]
devdazed_ has quit [Quit: Computer has gone to sleep.]
amitchellbullard has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
spider-mario has joined #ruby
KnownSyntax has quit [Ping timeout: 265 seconds]
akahn has quit [Ping timeout: 256 seconds]
culturelabs has quit [Ping timeout: 256 seconds]
jrunning_ has quit [Ping timeout: 276 seconds]
ballPointPenguin has quit [Ping timeout: 276 seconds]
malconis has quit [Ping timeout: 255 seconds]
dukedave has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
spyderman4g63 has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
troter___ has quit [Ping timeout: 265 seconds]
zrl has quit [Ping timeout: 276 seconds]
victortyau has quit [Quit: Leaving]
b_hoffman has joined #ruby
duderonomy has joined #ruby
balazs has joined #ruby
belak has joined #ruby
<belak>
Is there a better way of doing this? file_url = URI.parse("#{params['xdm_e']}/api/1.0/repositories/#{params['owner']}/#{params['repo']}/src/#{params['cset']}/#{params['path']}")
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
?better belak
<ruboto>
belak, I don't know anything about better
<apeiros>
oh dear. I don't know messages shouldn't be targeted :-S
<apeiros>
?best belak
<ruboto>
belak, "Best" and "better" are subjective. Try to use a different term.
<belak>
I'd say "less ugly" but that's also subjective.
<apeiros>
at least it tells the area in which you want the improvement
<apeiros>
so it's already more context than a plain "better" :)
casadei has joined #ruby
freerobby has joined #ruby
ramblinpeck_ has quit [Ping timeout: 265 seconds]
b_hoffman has left #ruby [#ruby]
<apeiros>
if the keys were symbols you could use String#%
<apeiros>
other than that… not much I can think of
<belak>
Is there a best-practices way of doing string formatting for this case?
<apeiros>
you can trade more lines beforehand to have this line shorter
<belak>
I wanted to do % params, but that doesn't appear to work
<apeiros>
"doesn't work" is not something we can act upon
<apeiros>
example of trading lines: `template = "%s/api/1.0/repositories/%s/…"; uri = template % params.values_at('xdm_e', …); file_url = URI.parse(uri)`
<belak>
Right now I'm just using the plain HTTPClient. I wasn't sure if there was a better library to use.
Guest12375 has quit [Ping timeout: 276 seconds]
<apeiros>
c_nt: say, what does your nickname mean?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<belak>
apeiros: what is that magical values_at?
balazs has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
<apeiros>
belak: Hash#values_at
ruby-lang783 has joined #ruby
<apeiros>
gets values at multiple keys at once
<ddarkpassenger>
You should be able to achieve the same thing using URI assignment methods (host=, path=, etc)
Hijiri has joined #ruby
apt-get_ has quit [Quit: Quit]
baweaver|work has joined #ruby
<apeiros>
ddarkpassenger: won't `RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}} ` just generate a url with a query part?
mrsolow has quit [Ping timeout: 265 seconds]
<apeiros>
from the README it seems like
<ruby-lang783>
I am a newbe at RubyGems: I am trying to backward re-write a Gem at my work. I am getting confused around all the "SPEC" files. It has a gemname.gemspec AND a Gemfile AND a ~/spec/gemname_spec.rb <-- These files seem redundant (also I read that Gemfile was from bundler but I had to install bunder on the server ... so
diegoviola has quit [Read error: Connection reset by peer]
PhilK has quit [Ping timeout: 252 seconds]
spastorino has quit [Ping timeout: 252 seconds]
doertedev has quit [Ping timeout: 264 seconds]
<ruby-lang783>
Any help would be appreciated
<ddarkpassenger>
apeiros: Yep, but maybe he could use the same concept to define his URI.path in a more elegant way, with something like URI, something like this: https://github.com/hannesg/uri_template
c_nt has quit [Ping timeout: 258 seconds]
tjbiddle has joined #ruby
<ddarkpassenger>
*URI template
scripore has joined #ruby
<ruby-lang783>
anyone an expert at creating RubyGems?
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjohnson has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Remote host closed the connection]
<apeiros>
ruby-lang783: your confusion is understandable
AlphaAtom has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
<apeiros>
ruby-lang783: to build a gem, all you need is the .gemspec
_seanc_ has quit [Quit: _seanc_]
jackjackdripper has joined #ruby
<apeiros>
`gem build your.gemspec` will generate the your-<version>.gem file
kies has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
ramfjord has quit [Ping timeout: 265 seconds]
ckrailo has quit [Ping timeout: 265 seconds]
<apeiros>
the Gemfile is used to deal with dependencies in arbitrary projects, not just gems. some of what it can do can also be handled by the .gemspec file
havenwood has joined #ruby
baweaver|work has quit [Ping timeout: 256 seconds]
<ruby-lang783>
Ok, it looks like all dependencies are in the .gemspec
AlphaAtom has quit [Client Quit]
tvw has quit []
<ruby-lang783>
so I removed everything in the Gemfile and replaced it with source and gemspec
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<ruby-lang783>
wo why a full spec directory with a <gemname>_spec.rb ??? What could this do?
<apeiros>
those specs are tests
<apeiros>
specifications for how your gem works
alakra has joined #ruby
freerobby has quit [Quit: Leaving.]
<apeiros>
google for rspec
jackjackdripper has quit [Read error: Connection reset by peer]
<ruby-lang783>
rspec ... ok thanks
jackjackdripper has joined #ruby
m8 has quit [Quit: Sto andando via]
NeverDie has joined #ruby
freerobby has joined #ruby
<ruby-lang783>
I appreciate the help apeiros. If I need more I will come back ... and when I get a better handle on this I may come back to help others ... thanks again
AlphaAtom has joined #ruby
ramfjord has joined #ruby
Verrelia has quit [Ping timeout: 255 seconds]
<apeiros>
ruby-lang783: you're welcome
fgo has joined #ruby
joaomdmoura has joined #ruby
momomomomo has quit [Quit: momomomomo]
baweaver|work has joined #ruby
NeverDie has quit [Max SendQ exceeded]
jfarmer has joined #ruby
moretti has quit [Quit: Leaving...]
ruby-lang783 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
Exponential has joined #ruby
casadei has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
malconis has joined #ruby
NeverDie has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
zendrix has quit [Remote host closed the connection]
juanpaucar has joined #ruby
AdamMeghji has joined #ruby
zendrix has joined #ruby
<dfockler>
yard is pretty nice for docs
<dfockler>
I'm trying it out now
dopieee has joined #ruby
akahn has joined #ruby
KnownSyntax has joined #ruby
nmyster has joined #ruby
mroth has joined #ruby
sgambino has joined #ruby
vdamewood has joined #ruby
pandaant has quit [Remote host closed the connection]
sandstrom has joined #ruby
n0f3 has quit [Remote host closed the connection]
blue_deref has quit [Quit: Leaving]
petems has joined #ruby
culturelabs has joined #ruby
bantic has quit [Quit: bantic]
arBmind has quit [Ping timeout: 272 seconds]
qsuscs has joined #ruby
<qsuscs>
hi
malconis has quit [Ping timeout: 265 seconds]
ballPointPenguin has joined #ruby
<qsuscs>
is why’s poignant guide still the way to get started with ruby?
<dfockler>
if you like foxes and comics
neektza has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<qsuscs>
better than some dry lecture.
chouhoul_ has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OtterCoder has joined #ruby
dukedave has joined #ruby
<dfockler>
some people love dry lectures
roolo has quit [Remote host closed the connection]
casadei has joined #ruby
amitchellbullard has joined #ruby
vivekananda has quit [Ping timeout: 272 seconds]
jrunning_ has joined #ruby
sandstrom has quit [Ping timeout: 246 seconds]
<qsuscs>
so, it isn’t particularly outdated? like, teaching me stuff that will break with the latest ruby, or not mentiong something that i really should know?
devdazed has joined #ruby
<dfockler>
I'm sure there are a few things, but it's more conceptual
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
auraka has joined #ruby
troter___ has joined #ruby
<qsuscs>
hm, around 3.50€ to print it … or are there nice epub/mobipocket versions?
f3lp has quit [Ping timeout: 252 seconds]
mister_solo has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
<qsuscs>
oh, someone converted it to markdown. i can probably beat that to mobipocket with pandoc or so
jackjackdripper has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spastorino has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
<qsuscs>
jfarmer: hm, the first one sounds like made for people who have no programming experience whatsoever … i wouldn’t consider myself a real programmer, but i’m good at concepts (unless it’s monads or pointer arithmetic or such weird stuff)
jackjackdripper1 has joined #ruby
yh has joined #ruby
fujimura has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
d5sx43 has joined #ruby
zendrix has joined #ruby
<g0rx>
:D
jackjackdripper has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
d10n-work has quit [Quit: Connection closed for inactivity]
<jfarmer>
qsuscs I don't know what "good at concepts" means, but if you're not proficient with some other language when Chris Pine's book is an excellent introduction.
PhilK has joined #ruby
<jfarmer>
then*
<jfarmer>
How do you know if you're "good at concepts" if you haven't put that to the test by implementing them?
<jfarmer>
in which case, there'd be some language you were proficient with (presumably)
<jfarmer>
But it's an easy and very good read regardless — check it out.
tmoor has joined #ruby
<qsuscs>
jfarmer: because i did not listen in programming classes for two years, never did the exercices, yet scored 15 out of 15 points in the exam.
Exponential has joined #ruby
SalexW has joined #ruby
ckrailo has joined #ruby
Exponential has quit [Client Quit]
<gambl0re>
what does this line mean? if ('#switcher').is(':hidden')
<qsuscs>
jfarmer: i mean, i won’t need somebody carefully explaining a for loop or the difference between int and char or that stuff, rather “yeah this is how we do it in ruby”
<jfarmer>
That sounds more like an indictment of the test then anything.
<jfarmer>
qsuscs In the time you've spent here, you could've flipped through some of the freely-available chapters.
workmad3 has quit [Ping timeout: 272 seconds]
<jfarmer>
you've spent here pushing back that is
<qsuscs>
jfarmer: true. the teacher is weird and it’s not challenging … yet others scored three points
<jfarmer>
Honestly, it's a very good book.
jackjackdripper1 has quit [Ping timeout: 258 seconds]
<qsuscs>
okay, convinced, i’ll try it
mary5030 has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 244 seconds]
spastorino has quit []
swgillespie has joined #ruby
<jfarmer>
That story also tells me you might be good at convincing yourself you understand things that you're only actually familiar with. :)
<jfarmer>
which makes me want to recommend the book all the more
mister_solo has quit [Ping timeout: 255 seconds]
f3lp has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
Ropeney has joined #ruby
swgillespie has quit [Client Quit]
f3lp has joined #ruby
zrl has quit []
hazelux has quit [Remote host closed the connection]
swgillespie has joined #ruby
mark[oz] has joined #ruby
Luyt_ has quit [Ping timeout: 258 seconds]
DLSteve has quit [Quit: Leaving]
krzkrz has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
krz has joined #ruby
mordocai has quit [Ping timeout: 255 seconds]
eddie_v8 has joined #ruby
datanoise has quit [Ping timeout: 272 seconds]
MatthewsFace has quit [Remote host closed the connection]
Torrieri has quit [Quit: Be back later ...]
spastorino has joined #ruby
jaequery has quit [Ping timeout: 265 seconds]
<eddie_v8>
i have already updated my rubygems and i keep getting Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
vivekananda has joined #ruby
<eddie_v8>
any idea how to fix that
Luyt_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
finisherr has left #ruby [#ruby]
goodcodeguy has joined #ruby
<nofxx>
eddie_v8, linux?
<eddie_v8>
yes
TheNet has joined #ruby
<jhass>
how did you install ruby?
blandflakes has joined #ruby
Llamachka88 has joined #ruby
Llamachka88 has left #ruby [#ruby]
hinbody has quit [Quit: leaving]
<eddie_v8>
jhass: rvm
<mwlang>
gambl0re: That looks like javascript and it’s checking to see if an element on the page is hidden (display: none, most likely) In this case, the element with ID=switcher
<jhass>
eddie_v8: gem update --system should be good then
Olipro has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
<eddie_v8>
jhass: i tried that
<eddie_v8>
its updated
<jhass>
did you do the suggestion?
Olipro is now known as Guest41246
<eddie_v8>
yes
mark[oz] has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
blandflakes has quit [Client Quit]
<jhass>
gem -v reports 2.4.something?
blandflakes has joined #ruby
Guest41246 has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
<eddie_v8>
jhass: i get Latest version currently installed. Aborting.
<jhass>
you did run gem update --system with the same ruby & gemset activated as your rails app has?
jackjackdripper2 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
<eddie_v8>
jhass: but its a new rails app
<eddie_v8>
jhass: i get the warning when i run rails new project
<jhass>
you start evading my questions...
SalexW has quit [Remote host closed the connection]
G has quit [Disconnected by services]
Nigel_ is now known as G
bkxd has joined #ruby
bosma has joined #ruby
jackjackdripper has quit [Ping timeout: 255 seconds]
<eddie_v8>
jhass: how do i know what gemset if i didnt create a rails app already
x1337807x has joined #ruby
<jhass>
you check that rvm current is the same when you run bin/rails and gem update --system
chouhoulis has joined #ruby
<jhass>
do you prepend sudo to any commands behind the scenes?
<eddie_v8>
yes
<jhass>
there we go, that's your mistake
<jhass>
?root
<ruboto>
General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
apofis has quit [Quit: This computer has gone to sleep]
<jerski>
would like to seek some help from ruby gurus here
tibig has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 272 seconds]
<jerski>
can someone help me write a short script?
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has, they will respond.
DEA7TH has quit [Ping timeout: 265 seconds]
<jerski>
ok
<jhass>
!fact ed anyone Just ask your question, if anyone has or can, they will respond.
<ruboto>
jhass, I stand corrected that anyone is Just ask your question, if anyone has or can, they will respond.
pietr0 has quit [Ping timeout: 258 seconds]
Akagi201 has quit [Remote host closed the connection]
<shadoi>
gkra: added a comment on your gist
apofis has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
<jerski>
honestly i'm new to ruby and i'm looking for someone who can write a script that displays all tty devices in linux.
<jhass>
what did you try so far?
Musashi007 has quit [Quit: Musashi007]
<jerski>
ordered by increasing numbers, in 3 columns. the scripts should accept 3 arguments, -h: display help, -r: reverse order listing, and -csv comma separated values (same output, no spaces, separated by comma).
bayed has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
b_hoffman has joined #ruby
swgillespie has joined #ruby
<jerski>
i've tried
konr has joined #ruby
CloCkWeRX has quit [Client Quit]
icarus has quit [Quit: Lost terminal]
michael_mbp has quit [Excess Flood]
CloCkWeRX has joined #ruby
<gkra>
shadoi: hah, i'm using gsub like an idiot....
<jhass>
gkra: rely on the truthiness of stuff, match returns nil which is falsey, MatchData instances are truthy, no need for the ternary
<gkra>
jhass: the ternary was me going into the weeds
michael_mbp has joined #ruby
<gkra>
instead of going "Oh hey maybe i should use sub instead of gsub"
TheNet has joined #ruby
ScriptGeek has left #ruby [#ruby]
mark[oz] has joined #ruby
<jerski>
hey
b_hoffman has quit [Client Quit]
bruno- has quit [Ping timeout: 245 seconds]
mwlang has quit [Ping timeout: 250 seconds]
<jhass>
jerski: show your attempt, try to ask something specific about what you're stuck with it ;)
<jhass>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<jerski>
i've only tried to write this
<jerski>
f = File.open("test.txt") p f.isatty # => false p STDOUT.isatty # => true
baweaver|work has quit [Remote host closed the connection]