<jfarmer>
meatchicken Instance methods defined in the Kernel module are available everywhere because the Kernel module is included in Object.
<jfarmer>
In fact, if you look at the source code for MRI, when you define a "global" method what really happens is that a new method gets defined on the Kernel module.
<jfarmer>
Not sure if that answers your question; not 100% sure what your question was :)
<meatchicken>
jfarmer, thanks
<meatchicken>
so a binding will have all context yeah?
<meatchicken>
is that "safe" to pass around?
peter_paule has joined #ruby
<jfarmer>
It won't have all context; it will have the context where it was initialized.
<jfarmer>
And yes it's safe
<meatchicken>
jfarmer, Got it
Rollabunna has joined #ruby
mcclurmc has joined #ruby
framling has quit [Remote host closed the connection]
workmad3 has joined #ruby
mesamoo has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
jfarmer has quit []
jud has quit [Quit: Leaving]
jfarmer has joined #ruby
astrobunny has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 248 seconds]
MrJiks_ has joined #ruby
casadei has quit [Ping timeout: 246 seconds]
atomical has quit [Read error: Connection reset by peer]
lxsameer has quit [Client Quit]
MrJiks has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
mcclurmc_ has joined #ruby
atomical has joined #ruby
yfeldblum has joined #ruby
mcclurmc has quit [Ping timeout: 265 seconds]
MrJiks has joined #ruby
bf4 has joined #ruby
MrJiks_ has quit [Ping timeout: 264 seconds]
jud has joined #ruby
atomical has quit [Client Quit]
poguez_ has joined #ruby
kahunaio has joined #ruby
JoshGlzBrk has joined #ruby
haraoka has quit [Ping timeout: 252 seconds]
greenbagels has quit [Read error: Connection reset by peer]
bigmac__ is now known as i8igmac
chipotle has quit [Quit: cheerio]
bf4 has quit [Ping timeout: 256 seconds]
inetd has quit [Ping timeout: 256 seconds]
stoodfarback has joined #ruby
balazs has quit [Remote host closed the connection]
foureight84 has quit [Read error: Connection reset by peer]
clarkkampfe has joined #ruby
clarkkampfe has left #ruby [#ruby]
allomov has joined #ruby
pgatt has quit [Quit: Connection closed for inactivity]
yeticry has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
charliesome has quit [Quit: zzz]
creakybones has quit [Quit: Leaving]
bklane has joined #ruby
rbennacer has joined #ruby
arescorpio has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
postmodern has quit [Quit: Leaving]
jfarmer has quit []
RegulationD has joined #ruby
bklane has quit [Client Quit]
postmodern has joined #ruby
ruby-lang696 has joined #ruby
martin290 has joined #ruby
<martin290>
hey everyone
<Aeyrix>
hi
<martin290>
quick question
<martin290>
is ruby on rails a good language to make web apps in?
<Aeyrix>
There are over 900 people in here that are probably biased.
greenbagels has joined #ruby
<sevenseacat>
ruby is the language. ruby on rails is a web framework written in that language.
<martin290>
what i want to make is pretty simple, i just don't have any experience in ruby
<martin290>
ah, yes, sorry
<martin290>
i come from a c# background
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<Aeyrix>
martin290: Depending on how simple, it may be better to roll with Sinatra.
<Aeyrix>
It's also in Ruby, but is a much smaller framework.
RegulationD has quit [Ping timeout: 252 seconds]
<martin290>
i currently have a web host for linux and i don't want to change to a windows server to program in c#
<martin290>
Sinatra, got it
<Aeyrix>
If you want to use a DB, that's generally the mark where I'd start using Rails instead of Sinatra.
<martin290>
yeah, the app will use a db
<Aeyrix>
Alright, probably better to run on rails then, in my opinion.
<martin290>
in a nutshell, it's going to be an app for landscapers to track/maintain their equipment
<Aeyrix>
Okay.
<martin290>
it's pretty simple, but i can see it being tweaked a lot
<martin290>
and have things added to it, etc.
<martin290>
i noticed there's always like 2x more people on there than in the c# channel
bkxd has joined #ruby
SubjectiveBias has joined #ruby
kahunaio has quit [Quit: leaving]
kahunaio has joined #ruby
<Aeyrix>
The C# people are busy debugging their ASP.NET.
<sevenseacat>
why do people want to mislead the newbies
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx>
is rubymotion related to ruboto?
<sevenseacat>
no.
<MrJiks>
nofxx: No
<nofxx>
it was nice, but android only
<martin290>
wait i think i get it
<MrJiks>
Its a commercial tool chain.
<MrJiks>
Its the same guy who did macruby.
<martin290>
it's programmed like a web app but runs locally on the machine
<martin290>
right?
Oka has quit [Ping timeout: 244 seconds]
<nofxx>
martin290, yup
<MrJiks>
Apple decided to stop supporting macruby and he went & built a company for providing macruby for iOS
<martin290>
wow
<martin290>
that is AMAZING
<martin290>
that reminds me of WPF (XAML)
<martin290>
and this is done using ruby??!!!
<sevenseacat>
no.
<sevenseacat>
like i said, misleading the newbies.
<MrJiks>
martin290: Its possible that if you learn this language you can reuse the knowledge elsewhere probably better than any other language out there.
<MrJiks>
sevenseacat: what you mean?
<nofxx>
MrJiks, when I was a teenager I dreamed a day apple would release darwin, and everybody would use some nice linux friendly and beautiful distro, and we'll get rid of windows
Rollabunna has joined #ruby
<sevenseacat>
electron and the ilk aren't ruby projects.
<nofxx>
now android is the problem.. and apple is a bitch
<martin290>
lol
<MrJiks>
sevenseacat: I never mentioned electron as Ruby
<sevenseacat>
this is a ruby channel.
<MrJiks>
sevenseacat: I just mentioned it as someone was asking about it but couldn't remember its name.
<nofxx>
sevenseacat, I mentioned it's JS, but you could write coffee and rake tasks... or OPAL hehe
<sevenseacat>
rake *is* a ruby project
<MrJiks>
Yes, Opal is the next one I wanted to mention to martin290
<sevenseacat>
so is opal, but the rest arent
<MrJiks>
check opalrb.org
<sevenseacat>
but in all honesty, you're introducing an incredibly complex toolchain here
<sevenseacat>
for a very simple question
<martin290>
looks really cool
<martin290>
i'm pretty new to the web world
<martin290>
but the ability to use "web languages" for a desktop app is awesome
<MrJiks>
sevenseacat: well if you are very happy with Ruby; I think Rubymotion is the best way to build iOS/Android apps
<martin290>
oh nice
<sevenseacat>
i don't, but okay.
rbennacer has quit [Remote host closed the connection]
<sevenseacat>
has nothing to do with any question asked :P
<nofxx>
what we all agree is that more ruby the better =D
<MrJiks>
martin290: Yes! You should try the new Atom editor to see how good the app can be; its now touted as the flagship product with the technology.
<MrJiks>
nofxx: :):)
<sevenseacat>
it works most of the time
peter_paule has quit [Ping timeout: 252 seconds]
<sevenseacat>
just hope you have a beefy computer :)
<MrJiks>
Frankly, totally in love with you it.
<Aeyrix>
you what
<martin290>
laptop, not so beefy
<martin290>
desktop.... pretty beefy lol
<martin290>
on laptop now
Rollabunna has quit [Ping timeout: 248 seconds]
<MrJiks>
sevenseacat: Its not that performance hog; unless you want to run a huge rails app.
<sevenseacat>
what?
<martin290>
is it as big of a bog as visual studio?
<stoodfarback>
cina: Same. `?a` creates String "a"
Eiam has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 246 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
Tempesta has joined #ruby
<stoodfarback>
cina: It was slightly useful in 1.8. Can't think of any reason to use it now.
jas02_ has joined #ruby
jas02 has quit [Ping timeout: 265 seconds]
jas02_ is now known as jas02
<cina>
stoodfarback: thank you! why was it useful in 1.8? or, why is it not useful anymore?
polysics has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
User458764 has joined #ruby
<stoodfarback>
cina: In 1.8, `"aoeu"[0]` would return the ascii code as an integer, instead of "a". `?a` would do the same, so you could do `"aoeu"[0] == ?a`
RobertBirnie has joined #ruby
casadei_ has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Read error: Connection reset by peer]
<cina>
stoodfarback: interesting, thank you! I found it in ruby's REXML::Parsers, in a conditions like the one you described: `@source.buffer[0] == ?<`
RobertBirnie has joined #ruby
<Ox0dea>
cina: I suppose you could think of it as a "character literal", but it's really just a single-character string.
ta has joined #ruby
shoutsid has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jfarmer has joined #ruby
shoutsid has joined #ruby
blizzy has quit [Ping timeout: 248 seconds]
<cina>
Ox0dea: thanks! it's one less character to type compared to 'a' ;)
knite has quit [Read error: Connection reset by peer]
knite has joined #ruby
<Ox0dea>
cina: Indeed. It's considered "bad" by some, but I happen to like it; it's a useful visual distinction even if the underlying semantics are the same.
tkuchiki_ has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
knite has quit [Read error: Connection reset by peer]
<cina>
Ox0dea: it is probably considered bad because not everyone knows about it, but maybe it could also be useful because it only works with a single character and raises a SyntaxError if you mistype more characters
knite has joined #ruby
rubie has quit [Remote host closed the connection]
<sevenseacat>
though to be fair, Ruby was optimized for programmer happiness, and Ox0dea appears to be pretty happy.
<Aeyrix>
def numbers_containing_digits
<Aeyrix>
All numbers contain digits.
snsei has joined #ruby
<Ox0dea>
sevenseacat: I certainly get a kick out of it.
<Aeyrix>
Same.
<Nilium>
Not all numbers contain digits
<Ox0dea>
Aeyrix: That Ruby comfortably occupies both extremes of the spectrum is part of what makes it the best language, in my opinion.
<sevenseacat>
i doesn't contain digits.
<Nilium>
This makes it very hard to express you as a number.
krz has quit [Read error: Connection reset by peer]
<sevenseacat>
exactly.
<Nilium>
So, this weekend was kind of a wash as far as productivity goes.
<Ox0dea>
Wow, I'm only just realizing I could be using all sorts of wacky Unicode symbols as variable names instead of just underscores.
<Nilium>
The only thing I've managed to do is create a portable dev environment on an encrypted SD card
balazs has quit [Remote host closed the connection]
<Aeyrix>
Ox0dea: Use emoji.
<Nilium>
So, like, I put in the SD card, mount it, source a profile on it in my shell, and good to go.
<Ox0dea>
Aeyrix: Emoji are on their way to being considered "words", so the non-alphanumeric contract has the potential to break.
<sevenseacat>
Nilium: more than I managed to accomplish.
<sevenseacat>
I wrote like, one test for my Elixir app.
matp has quit [Remote host closed the connection]
<Nilium>
I still need to play with Elixir.
<Nilium>
I haven't touched it since it was really, really new
ta has joined #ruby
ta has quit [Remote host closed the connection]
* baweaver
is disecting the code
<Nilium>
Honestly would never have had a use for anything like that before I got my job. Now I'm the backend server guy and I'm just going "oh boy look at all the tools I have reasons to play with now."
<sevenseacat>
I don't really have a real use for it, apart from 'hey they made a web framework. let's build web shit'
<Nilium>
And then I have to stop myself because convincing people to learn to use Scala and Akka or Erlang or something else is just hard.
<Nilium>
But I managed to wedge Go into our codebase, so now it's a permanent fixture.
<Nilium>
Helped that Go drastically outperformed all the backend code written in PHP, which isn't all that surprising.
tkuchiki_ has quit [Remote host closed the connection]
<Aeyrix>
Go
<Aeyrix>
more like
<Aeyrix>
Go away
<Aeyrix>
:^)
<Nilium>
Go hate is very popular lately. It's kind of weird.
<Ox0dea>
$ go fuck /proc/self
<Nilium>
Like, there are two popular forms of blog post: one is where people complain about the same thing as everyone else in Go, and the other is where people praise the same thing as everyone else in Go
<Aeyrix>
$ go fuck
<Aeyrix>
go: unknown subcommand "fuck"
<Aeyrix>
Makes sense that go devs have no idea how to fornicate. :^)
<Ox0dea>
Aeyrix: "Be the change you wish to see in the world."
<Nilium>
And they're both equally uninteresting, and yet they frequently make it to the top of hacker news and reddit as though they were somehow insightful
<Aeyrix>
Okay banter aside, I dislike Go because I find some of its syntax a little weird.
<baweaver>
Aeyrix: fsck?
ndrei has joined #ruby
<Nilium>
I like Go because I find its syntax to be completely boring
<Nilium>
To the point that you can't even have code style arguments about Go code
<Nilium>
Everything's just kind of settled and chill and I can go about my day writing code
arturaz has joined #ruby
<Ox0dea>
`go fmt` deserves the praise there, though, not the syntax itself.
<Nilium>
Which is a far cry from what I have to do when I'm maintaining node.js stuff or PHP stuff
memph1s has joined #ruby
<Nilium>
Ox0dea: A bit of both, really. gofmt benefits a lot from the syntax being really dumb and simple.
wildroman2 has quit [Remote host closed the connection]
<Nilium>
To the point that tools to parse Go come with Go, so if you want to mechanically modify Go code for some reason, it's pretty easy
<Nilium>
It's not Lisp, but it beats trying to find tools to parse code for just about anything else
Xeago has joined #ruby
tvw has joined #ruby
<Nilium>
But yeah, anyway, just wins on dumb simplicity for me.
<noethics>
gosucks
<baweaver>
down to it pushing z to an empty string
<Ox0dea>
baweaver: That's at least halfway there.
<Nilium>
Thinking is hard, I could stand to do less of it.
sfarley has quit [Remote host closed the connection]
<baweaver>
PID / PID to get one, well played
<baweaver>
at least you didn't have to church numeral it
<Nilium>
I'd try drinking more but it doesn't really stop me from thinking. ಠ_ಠ
<Ox0dea>
Nilium: Alcohol is like regular expressions.
riotjone_ has quit [Quit: Leaving...]
<Nilium>
That might explain the over-abundance of both from some of the web devs I work with
<baweaver>
the longer you use them the more confusing it becomes, and the worse it is the next morning
<cina>
Ox0dea: how/where do I learn to write code like you did, or the ->{}[] lambda syntax you mentioned?
<Nilium>
No, never ask how to do that
<Ox0dea>
^
<baweaver>
^^
<sevenseacat>
^^^
Musashi007 has quit [Quit: Musashi007]
tkuchiki_ has joined #ruby
intyl has quit [Ping timeout: 264 seconds]
<Aeyrix>
^^^^
<Nilium>
^^^^^
<Oka>
. |
<Oka>
Now it's a tree!
<Nilium>
Oh no, it's happening again
<Ox0dea>
Y'all're good people.
<Ox0dea>
We can count higher than /b/, at any rate.
<Nilium>
I have drank just enough tonight that everything is hilarious.
<Nilium>
So that helps.
kahunaio has quit [Ping timeout: 265 seconds]
<cina>
lol I don't the joke, but your responses were funny
<cina>
I don't get* the...
pwnz0r has joined #ruby
<Aeyrix>
cina: Seriously, you don't want to learn how to do that.
<Aeyrix>
Primarily because it's useless. :P
kahunaio has joined #ruby
andikr has joined #ruby
<cina>
Aeyrix: okay, I wouldn't want to do that in real projects, but I was hoping I would learn a couple of new things along the way
<Aeyrix>
*shrugs* fair enough
<Aeyrix>
no idea though, i don't do that sort of thing
Atomic_Work has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby
snsei has quit [Remote host closed the connection]
karols has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryba has joined #ruby
<Nilium>
All of it comes down to iterating over the code while asking "how can I make this run using one line and look funky?"
karols has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<sevenseacat>
now to get that in non-alpha form? :P
<Ox0dea>
sevenseacat: You know me too well.
<sevenseacat>
;)
doodleha_ has joined #ruby
vyorkin has joined #ruby
User458764 has joined #ruby
polysics has quit [Ping timeout: 250 seconds]
<apeiros>
binding.receiver returns self in the binding? i.e. we can stop using binding.eval("self") now?
doodleha_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<Ox0dea>
That does seem to be the case.
<apeiros>
good, good
vasilakisfil_ has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
jimms has quit [Remote host closed the connection]
<baweaver>
well, bed for me. 'night
<sevenseacat>
see ya dood
<Ox0dea>
Au revoir.
baweaver has quit [Remote host closed the connection]
<Aeyrix>
Ciao mate. :)
doodleha_ has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
que__ has joined #ruby
atom3 has joined #ruby
vyorkin has quit [Ping timeout: 272 seconds]
codecodecode123 has joined #ruby
jimms has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
doodleha_ has joined #ruby
<que__>
guys need a bit help with ruby. http://paste.ofcode.org/386sDdfnbU3N3Mfh3PjzVxg -- this is a part of code of software i am using. and Problem is it should refresh the file and load it . as i test it nothing is refreshed. my question is there is first if statment IF something does it work ? it gives true false return ? can You look at the code and say something about it might be i am missing it
<codecodecode123>
havenwood: i didn't ask that, but thanks for correcting my code :)
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
<Ox0dea>
codecodecode123: You can "mix in" Enumerable into any class that defines a suitable #each method and automagically add all sorts of additionally functionality.
<jfarmer>
codecodecode123 If you post code, be prepared to get feedback on all of it.
toretore has quit [Quit: This computer has gone to sleep]
<Ox0dea>
codecodecode123: The same goes for Comparable and #<=>.
<havenwood>
que__: `return` returns early from the method *if* the return value of the #filter? method with `event` as an argument is anything but `false` or `nil`.
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<codecodecode123>
jfarmer thanks for the protip XD
Xzanron has joined #ruby
<que__>
havenwood: ok thx.
<codecodecode123>
0x0dea so i add more code when i do that?
<Ox0dea>
codecodecode123: You *receive* code.
<Ox0dea>
Think on that.
Marisa has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<havenwood>
que__: oh, it's `unless` not `if` so if it is `false` or `nil` - i said it backwards
<jfarmer>
codecodecode123 I don't know how familiar you are with the various Enumerable methods like map, reduce, select, find, etc.
<que__>
so as i said at beggining. if it is empty it wont go futher ?
<codecodecode123>
0x0dea oh, but that disagrees my slogan, "That code doesn't write itself!"
Scroff has joined #ruby
<Ox0dea>
codecodecode123: Welcome to metaprogramming.
<Ox0dea>
Only the term isn't strictly applicable in this case.
<codecodecode123>
thanks for the soft welcome
<havenwood>
que__: Is it making it to line 151 or returning early on live 150 because `filter?(event)` is `nil` or `false`?
<codecodecode123>
jfarmer: i only see them as useful methods, nothing else.
<jfarmer>
codecodecode123 Sure. They're all implemented in the Enumerable module.
<que__>
havenwood: as You see it is plugin. i have no idea what is going on inside
<jfarmer>
And if you have a class that implements its own "each" method, you can include the Enumerable module and get map, reduce, select, find, etc. automatically
Scrofff has joined #ruby
<jfarmer>
All Enumerable requires is that the including class implement each; everything in the module is implemented in terms of each.
<jfarmer>
That's more the "power" of modules.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
jfarmer: I think .size has been added too
Scroff has quit [Read error: Connection reset by peer]
<havenwood>
que__: I don't know the context of how you're using this or what the problem is. It could be returning early, sure. Or skipping because the @refresh_interval hasn't been exceeded.
<codecodecode123>
most coders are software bot programmers then, they write code that auto-completes itself, AT RUNTIME (well before that).
doodleha_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
TheHodge has joined #ruby
Al3ks has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Indian has quit [Ping timeout: 246 seconds]
krz has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
axl_ has joined #ruby
doertedev has joined #ruby
ta has joined #ruby
k3asd` has joined #ruby
<pontiki>
hi
doodleha_ has joined #ruby
codecodecode123 has quit [Quit: Page closed]
doodleha_ has quit [Read error: Connection reset by peer]
jfarmer has quit []
hotpancakes has quit [Ping timeout: 250 seconds]
doodleha_ has joined #ruby
<konsolebox>
hi. anyone knows what could cause a child process you try to terminatee to defunct? I'm out of energy to examine the cause of this, so I'd be grateful if someone could give some ideas or tips
<konsolebox>
i'm using the methods in Process btw
codecop has joined #ruby
codecop_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<konsolebox>
Ox0dea: btw, i was able to apply a good workaround to Readline. tell me if you're interested to see the code :) thanks again for the help yesterday btw
dumdedum has joined #ruby
sinkensabe has joined #ruby
marr has joined #ruby
doodleha_ has joined #ruby
<Ox0dea>
konsolebox: You should be able to invoke Process.wait in the parent to kill the zombie.
<Ox0dea>
And yes, I'd love to see how you managed it.
pwnz0r has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
rdark has joined #ruby
<_mh_>
konsolebox: defunct means your parent failed to collect it once it's terminated (usually wait/waitpid missing in the parent)
doodleha_ has quit [Read error: Connection reset by peer]
houhoulis has quit [Remote host closed the connection]
<konsolebox>
i see i actually only used Process.waitpid2 and never invoked Process.wait
ta has quit [Remote host closed the connection]
<Ox0dea>
konsolebox: Just about as gnarly as might've been expected, but well done.
Xeago has quit [Remote host closed the connection]
doodleha_ has joined #ruby
<konsolebox>
or to be exact, i only do `while (pid, status = Process.waitpid2(@pid, Process::WNOHANG)).nil?` to check if a process still exists. but Process.wait was actually needed for it
<konsolebox>
Ox0dea: yeah, it would get better time to time :)
Xeago has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea>
konsolebox: I'm only half-joking in suggesting line = `read -ep '> ' f; echo $f`.
doodleha_ has joined #ruby
<Ox0dea>
Okay, 90% jest; shelling out for each line of input is bad.
<konsolebox>
Ox0dea: actually my original code works with Bash :) and it does use read.
blackmes1 has quit [Ping timeout: 264 seconds]
ryba has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
Outlastsheep is now known as zz_Outlastsheep
<Ox0dea>
I've never seen a clean way to convert escaped literals to their actual values.
doodleh__ has joined #ruby
<apeiros>
literal_parser gem!
<apeiros>
(no idea whether it applies, didn't read backlog - and now break time, brb)
withnale_ has joined #ruby
doodleha_ has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 248 seconds]
<Ox0dea>
apeiros: How to go from '\n\r\t' to "\n\r\t"?
doodleh__ has quit [Read error: Connection reset by peer]
<Ox0dea>
I've never seen it done "dynamically"; that is, without resorting to handling it on a case-by-case basis in order to just use the actual literal.
<ruboto>
Ox0dea # => (eval):1: syntax error, unexpected $undefined (SyntaxError) ...check link for more (https://eval.in/389096)
<konsolebox>
Ox0dea: that's one i'm trying to simplify as well
<Ox0dea>
konsolebox: #gsub with a Hash is arguably a bit nicer.
doodleha_ has joined #ruby
<Ox0dea>
bnagy: Did I not do that right?
<bnagy>
no, it doesn't work :/
senayar has quit [Remote host closed the connection]
<konsolebox>
Ox0dea: i actually tend to avoid eval unless necessary.. it significantly slows things down, most of the time... at least i don't want to use it on a char-by-char parser
oo_ has quit [Remote host closed the connection]
<Ox0dea>
konsolebox: No, I would never suggest such a thing.
<Ox0dea>
I just want to see if it's feasible.
codecop_ has quit [Quit: Išeinu]
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea>
que__: You have a nil where the code is expecting something it can call + on.
<que__>
;/ damn how can i now find it. ehhhh
oo_ has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 272 seconds]
_blizzy_ has quit [Ping timeout: 248 seconds]
fella5s has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
IanV0rn has joined #ruby
IanV0rn has quit [Max SendQ exceeded]
tubuliferous_ has quit [Ping timeout: 265 seconds]
IanV0rn has joined #ruby
<Ox0dea>
You should use a debugger, but if you're feeling silly, you could define nil.+(foo), and maybe the value of foo will point you in the right direction.
<que__>
Ox0dea: so it is only error from there ?
<que__>
it is from debugging mode
corpsicle has joined #ruby
<Ox0dea>
Then you should be able to inspect your variables and determine which one is nil when it oughtn't be.
<que__>
Ox0dea: that would be great if the program had only one rb file.
senayar has joined #ruby
lavros has joined #ruby
<que__>
and it is not mine. i am just a simple sys adm.
fella6s has joined #ruby
oo_ has joined #ruby
Jackneill has joined #ruby
fella5s has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
<pontiki>
que__: you'll probably have to direct your question to the program's authors :((
<apeiros>
it's incomplete, though. there's escape sequences it doesn't handle.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sevenseacat has quit [Ping timeout: 248 seconds]
Karpah has joined #ruby
ahmetkapikiran has joined #ruby
hotpancakes has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has joined #ruby
<Ox0dea>
que__: Are you able to say which is more likely the offending Hash, @sincedb or @statcache?
<Ox0dea>
apeiros: Ah, literal_parser lives up to its name.
<Ox0dea>
It does seem #gsub's Hash form is the best approach, then.
<apeiros>
Ox0dea: I explicitly didn't want to use eval. it uses it to resolve constants, but that can be disabled and the pattern is verified :)
<que__>
the only thing i figure out is this - > when change in the file to longer text for expample aaa:bbb to aaaa:bbb all is ok when aa:bbb it crashes.
ryba has joined #ruby
<Ox0dea>
apeiros: Would const_get not suffice?
hotpancakes has quit [Ping timeout: 244 seconds]
<apeiros>
before 2.1 (or 2.2?) const_get could not handle nested constants. using each/inject to get "deep" constants was slower than eval.
<apeiros>
with 2.1/2.2 I might do a polyfill
ghostpl has joined #ruby
<Ox0dea>
Yep, makes sense. I ran into the same when trying to dynamically test my named unicode literals thing.
KetaPan has joined #ruby
renderful has joined #ruby
Xeago has quit [Remote host closed the connection]
knite has quit [Ping timeout: 256 seconds]
<apeiros>
a version using inject might even be burried in the git history :)
hotpancakes has joined #ruby
KetaPan has quit [Client Quit]
ghostpl has quit [Remote host closed the connection]
ghostpl has joined #ruby
<apeiros>
Ox0dea: oh wow, just actually read the code. it's obviously older than hash form of gsub :D
Igorshp has quit [Remote host closed the connection]
vdamewood has joined #ruby
Karpah is now known as sevenseacat
lessless has joined #ruby
<apeiros>
(I doubt I wanted to be backwards compatible - I'd certainly have branched the code based on capability)
renderful has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<sevenseacat>
I find these kinds of fundraisers uncomfortable.
vyorkin has joined #ruby
knite has quit [Read error: Connection reset by peer]
<sevenseacat>
why do people need to give you money for you to do good works?
nhhagen has joined #ruby
<BrianBoyko>
Because I don't have money.
<BrianBoyko>
...and I can't do the good works without the education, and I can't get the education without money.
<BrianBoyko>
I mean, that 100 hour pledge - I'd probably volunteer that much anyway, but the difference between volunteering with specialized knowledge and volunteering without it.
<sevenseacat>
so borrow some?
* apeiros
now wonders how many hours he spent helping people
<ddv>
BrianBoyko: there are tons of resources you can for free
<ddv>
+find
<canton7>
wouldn't it be a safer investment for us to fund someone who already has proven knowledge and experience?
<sevenseacat>
apeiros: and to think, you could have been getting paid for it this whole time.
<apeiros>
I suspect 100h doesn't even hit close to home :D
RegulationD has quit [Ping timeout: 248 seconds]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
bf4 has quit [Ping timeout: 255 seconds]
<bnagy>
haha broken https _b
j4cknewt has quit [Remote host closed the connection]
<bnagy>
wow, that is beyond a trainwreck in chrome o_0
lavros_ has joined #ruby
<apeiros>
if you'd assume an average of 1h per week (which is probably very conservative), I'd be around 500h now. but I guesstimate it's more in the ballpark of 1000-2000h (mind you, I'm much less active nowadays than what I've been)
<BrianBoyko>
Canton7: Well, someone with proven knowledge and experience doesn't need the education. On the other hand, I've had proven talent. (Okay, my Ruby sucks, but still.)
IanV0rn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BrianBoyko>
Borrowing isn't an option.
<BrianBoyko>
bnagy: What do you mean broken https?
<apeiros>
BrianBoyko: I don't judge you. if people think it's a great idea to donate to you and you keep your promise - awesome.
<BrianBoyko>
Thanks.
lavros has quit [Ping timeout: 256 seconds]
sfarley has quit [Remote host closed the connection]
<BrianBoyko>
I mean, this isn't my first crowdfunding project. Just the first one where I'm asking for money for my education rather than for another person's cause. I raised $11M once. Didn't get to keep any of it, but still..
<sevenseacat>
I don't judge *you*, but I find the idea distasteful. You'll probably get your goal, and good on you for it.
lkba_ has joined #ruby
<apeiros>
hm
bruno- has joined #ruby
<apeiros>
I'm actually a fan of something which does that in an institutionalized manner: http://www.vittana.org
<apeiros>
it's part of my reserved yearly donation budget
<bnagy>
BrianBoyko: my chrome doesn't trust your root cert
poguez_ has quit [Quit: Connection closed for inactivity]
<BrianBoyko>
whaaaaaat?
tno has joined #ruby
<BrianBoyko>
Can you give me a log of what it's saying?
<sevenseacat>
apeiros: I like that.
lkba has quit [Ping timeout: 272 seconds]
<bnagy>
oh, it's comodo. haha :<
<BrianBoyko>
I'm using Cloudflare's SSL, I know it's not perfect...
BrianBoyko has left #ruby ["Leaving"]
BrianBoyko has joined #ruby
<maloik>
you're putting in 100 hours for like 12k, rails girls summer of code raised 10x that for 15000 hours (rough estimate)
<sevenseacat>
100 hours is like two, three weeks of work
<sevenseacat>
I doubt anyone here makes 12k for three weeks of work
<maloik>
16 teams of 2, 3 months, 30 hours per week... 11520
MrJiks_ has joined #ruby
<BrianBoyko>
maloik: I think you're missing the point. I'm probably going to be putting in more than 100 hours. The point is that it sets a precident - anyone who wants to recieve a scholarship *after* me has to do *at least* that.
<maloik>
and they're probably putting in more time in a week
<bnagy>
BrianBoyko: welp, some portion of users will not be able to visit your site
<yorickpeterse>
That money is used for much more than just paying students
<maloik>
yorickpeterse: I know, but that just works in my favor
<sevenseacat>
meh, I've said my piece.
<maloik>
or well in favor of the point I'm trying to make
<yorickpeterse>
didn't really follow, what's the tl;dr?
blackmes1 has joined #ruby
<yorickpeterse>
besides "lol scroll up"
MrJiks has quit [Ping timeout: 265 seconds]
<adaedra>
lol scroll down
<maloik>
BrianBoyko is raising money to send him to bootcamp (12k USD?) and promises to work 100 hours pro bono for a non profit
<maloik>
so I responded, RGSoC is imo a much better investment
<maloik>
if you look at it purely logically like that
<BrianBoyko>
Well, I'm also promising to pay the money forward for at least 12k * 105% to someone else.
<yorickpeterse>
I'd rather donate to some well established organization than an individual
<maloik>
^
<yorickpeterse>
RGSoC is less likely to blow it on crack, cars and hookers
<maloik>
:D
<ljarvis>
it's not inconceivable
<yorickpeterse>
It's possible yes, but unlikely
<BrianBoyko>
If I blew it on crack, cars, and hookers, I'd be prosecuted for fraud.
<yorickpeterse>
No you wouldn't
<yorickpeterse>
Because nobody would sue you
stardiviner has joined #ruby
<yorickpeterse>
Plus donations don't come with any warranty/requirements IIRC
<sevenseacat>
given you're not on one of the crowdfunding sites, likely not.
<sevenseacat>
you're asking for donations, not backers.
IanV0rn has joined #ruby
<BrianBoyko>
This probably isn't helping the point, but if I wanted to scam people out of money, there are much easier and less risky ways of doing it.
<yorickpeterse>
tell that to 80% of all kickstarter projects
<ljarvis>
im convinced
<maloik>
BrianBoyko: I think if money is the only problem, you may as well find an unpaid internship to learn
<yorickpeterse>
Either way, it will be very hard as an individual to get the money, no matter how honest
<ljarvis>
hey i just realised i have today off work
<ljarvis>
buh bye
<yorickpeterse>
e.g. you might really want to achieve something, but unless you're well known you're sadly not going to get far
<yorickpeterse>
Also as an individual the question I'd ask: why me instead of the millions of others?
bkxd has quit [Quit: Reconnecting]
bkxd has joined #ruby
bkxd has quit [Client Quit]
bkxd has joined #ruby
eGGsha has joined #ruby
<BrianBoyko>
Because I have a track record of being trusted and living up to that trust with large sums of money before, because I have a track record of working for reform, and because I'm asking politely. Don't get me wrong, there are TONS of individuals in need of help. That's why I'm not taking the money and keeping it, I'm paying it forward.
senayar has quit [Remote host closed the connection]
eGGsha has quit [Client Quit]
<yorickpeterse>
Not trying to be an ass, but most will counter that with
<yorickpeterse>
fk
<yorickpeterse>
with "Yeah everybody else says that too"
<yorickpeterse>
e.g. I could say "Pay me 100k and I'll do something cool and totally not spend in on cat hats"
<yorickpeterse>
"because I know how to handle money you can trust me"
<yorickpeterse>
fuck, I wouldn't mind blowing 100k on funny cat hats
<BrianBoyko>
No, not everyone else says that. When I say I have a track record with being responsible with large sums of "not-mine" money, I mean it.
<BrianBoyko>
Think about it.
<yorickpeterse>
The point is still, why you? Why not some kid from a poor country?
<yorickpeterse>
"I know how to handle money" is like the worst argument
<BrianBoyko>
No, not "I know how to handle money."
gix has quit [Quit: Client exiting]
<BrianBoyko>
It's "I have been shown to have been trustworthy with a far greater sum when the oppertunity presented itself to be dishonest."
<txdv>
what the fuck is a cat hat
mister_s_ has joined #ruby
<yorickpeterse>
txdv: a hat for a cat
white_bear has joined #ruby
<yorickpeterse>
let me get an example
<BrianBoyko>
It's a cat shaped like a hat, or a hat shaped like a cat, or a hat for a cat, or a cat for a hat.
<yorickpeterse>
I wonder if different bird species can understand each other
hmsimha_ has quit [Ping timeout: 265 seconds]
hmsimha has quit [Ping timeout: 265 seconds]
<yorickpeterse>
or if it just sounds like a bunch of drunks
<sevenseacat>
I want to write something articulate about how distasteful I find that crowdsourcing stuff, but given how prevalent it is these days, would probably get myself in trouble
<sevenseacat>
crowdfunding, rather
<connor_goodwolf>
curious, what happened to #ruby-lang? :)
<sevenseacat>
it merged in with us here in #ruby
<yorickpeterse>
jhass brutally forced us to merge
<connor_goodwolf>
interesting
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<connor_goodwolf>
A good thing I suppose, though just be careful of the old ops, some of them hold grudges.
<jhass>
meh, and already another week we didn't survive without the question
<yorickpeterse>
:P
<connor_goodwolf>
jhass: I didn't pay attention to it until someone lazy tabbed my name
<connor_goodwolf>
then I seen the /title
sdothum has joined #ruby
<apeiros>
sevenseacat: I actually once made 10k for 2h of work :D (contractor wanted 40k for it, we couldn't do it internally so I offered to do it in my spare time for 1/4th the price… and we had much less overhead too - no custom server setup for the stuff, full integration in our existing apps)
sepp2k has joined #ruby
<apeiros>
granted, I added 6h more of work to add unspecified stuff because I felt a little guilty :D
fabrice31 has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 248 seconds]
<connor_goodwolf>
apeiros: business is business, never feel guilty
<apeiros>
connor_goodwolf: honestly, I found the contractor should feel guilty asking 40k for something which took me 2h…
<yorickpeterse>
businesses would be so much better if you'd get money without customers
denver has joined #ruby
<yorickpeterse>
our business basically revolves around "WHERE ARE MY GOSH DARN REVIEWS????1111"
<yorickpeterse>
"THIS OTHER COMPETITOR HAS THEM!!!"
Rickmasta has joined #ruby
<connor_goodwolf>
apeiros: when Summly sold there were quite a few people, even those who I thought were peers but in reality they were far below me, say things like: "They're just bolt-on engineers", "you don't deserve the money after only 18 months work, I spent 5 years on my startup and it went nowhere." etc etc
Akagi201 has quit [Remote host closed the connection]
<connor_goodwolf>
apeiros: so pretty much, consider t business is buiness
<yorickpeterse>
"THIS OTHER COMPETITOR HAS DATA FIELD X" "but it doesn't exist in that service" "BUT THEY HAVE ITT!!!"
alotofnoodles has joined #ruby
gix has joined #ruby
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
lala_ is now known as lala
Xeago has joined #ruby
<connor_goodwolf>
apeiros: when you keep on doing what you did, you'll feel more accomplished, there's a word for it what you experienced
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
Ah thanks, I'll fix it later today
sfarley has joined #ruby
fabrice31_ has joined #ruby
gagrio_ has quit [Ping timeout: 252 seconds]
fabrice31_ has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
albatross1 has joined #ruby
mike___1234 has joined #ruby
shellie_ has joined #ruby
consmans has joined #ruby
nhhagen has quit [Remote host closed the connection]
mbeasley has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
mister_solo has joined #ruby
mbeasley has left #ruby [#ruby]
p1k has joined #ruby
<consmans>
Heya all, I am making a study on the governance of ruby and it would be nice if there would be someone to fill the gaps of what I have found out
sfarley has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
nfk has joined #ruby
Zai00 has joined #ruby
shellie_ has left #ruby [#ruby]
malconis has joined #ruby
bruno- has joined #ruby
Igorshp has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
<[k->
I <3 the cmdline
<[k->
it allows me to do things mac gui doesnt allow me to
sinkensabe has quit [Remote host closed the connection]
<yorickpeterse>
[k-: fixed
<yorickpeterse>
:P
rbennacer has joined #ruby
eGGsha has joined #ruby
<[k->
:P
sinkensabe has joined #ruby
que__ has quit [Quit: Page closed]
dblessing has joined #ruby
jlast has joined #ruby
Scroff has joined #ruby
droidburgundy has joined #ruby
jimms has joined #ruby
j4cknewt has joined #ruby
Scroff_ has quit [Ping timeout: 264 seconds]
roshanavand has quit [Read error: Connection reset by peer]
CloCkWeRX has left #ruby [#ruby]
mister_solo has quit [Ping timeout: 256 seconds]
Akagi201 has joined #ruby
Scroff has quit [Ping timeout: 272 seconds]
<[k->
yorickpeterse: did you mean `Corrected "explici" typo`?
blackmes1 has joined #ruby
Akagi201_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<[k->
huehuehue
rubie has joined #ruby
<consmans>
Is it correctly understood that anyone can join the Ruby core and that in order for my branch to be merged, I have to "just" create a ticket?
<[k->
so you made a typo when correcting a typo XD
IanV0rn2341 has joined #ruby
alotofnoodles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
Yeah lets not even go there
<yorickpeterse>
it was totally planned
thiagovsk has joined #ruby
ahmetkapikiran has joined #ruby
<shevy>
consmans no idea how to become part of the inner circle; if you know the japanese language and look like a ninja then the chances are surely great
IanV0rn2341 has quit [Max SendQ exceeded]
<sevenseacat>
contribute a lot, and you'll probably be given commit access.
<consmans>
lol I am far from then :(
IanV0rn2341 has joined #ruby
commondream has joined #ruby
<bougyman>
good luck learning japanese.
<sevenseacat>
if you're asking these questions, yeah.
alotofnoodles has joined #ruby
<bougyman>
when I started learning ruby there was almost no english documentation.
<bougyman>
manveru: did you ever learn to read/write it?
<manveru>
もちろんです
<yorickpeterse>
on nice, this one website has <a .... onmouseover=lump-of-javascript-without-quotes>
<yorickpeterse>
I hate HTML
<bougyman>
I assume that's a yes :)
<shevy>
yorickpeterse would you like HTML more without javascript?
<yorickpeterse>
Yes
<shevy>
:)
<yorickpeterse>
the world would be much easier
<yorickpeterse>
Well, HTML without inline Javascript
hotpancakes has quit [Ping timeout: 252 seconds]
NiVanc has joined #ruby
djstorm has joined #ruby
<[k->
if you write a patch, you are a contributor
<[k->
if you maintain/improve the stdlib, you are a commiter
gambl0re has quit [Ping timeout: 256 seconds]
<yorickpeterse>
maintaining stdlib requires you to deal with the mess that is stdlib
<[k->
huehuehue
<consmans>
:S
<jhass>
can I adopt some stdlib maintenance by removing it?
<[k->
you can look through the page you linked and you can see trends
<yorickpeterse>
jhass: no code is the best code
<consmans>
can anyone maintain the stdlib or do you have to be given "access"
<consmans>
?
commondream has left #ruby [#ruby]
<[k->
jhass: then you are not maintaining
<yorickpeterse>
hm, that doesn't sound right
<yorickpeterse>
The best code is no code
<yorickpeterse>
better
<yorickpeterse>
consmans: you can request it
<[k->
once you remove it, you dont have anything to maintain
<[k->
the best code is code that is not there
<[k->
so you dont have any chance to do anything wrong!
<consmans>
so hierarchically from bottom to top it would be: contributor - commiter - maintainer
<consmans>
?
<[k->
i think commiter & maintainers are the same
<consmans>
ah ok!
<consmans>
is there anything more than that?
charliesome has quit [Quit: zzz]
<[k->
you should look through the list again for more trends :S
<yorickpeterse>
there's also "deckhand" and "landlubber"
<[k->
there is also a small team that leads Ruby
<yorickpeterse>
But in all seriousness, usually it's just "maintainers" and "contributors"
Scrofff has joined #ruby
atomical_ has quit [Read error: Connection reset by peer]
<consmans>
yorickpeterse what are those? also roles?
atomical has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
<yorickpeterse>
it was a joke
<shevy>
well community maintenance would be nice
<shevy>
if take-over of a project would actually work
<shevy>
most of _why projects have found a new maintainer, no idea how active these are
<consmans>
[k- any more info on the small team that leads Ruby? What are they called e.g.
<maloik>
I'm not up to speed on his projects, I just know shoes is still pretty popular
<maloik>
we always get a couple proposals for talks about Shoes every year
<yorickpeterse>
They're usually referred to as "The Ruby core team"
atom3 has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
<[k->
well, there are 3 people hired by heroku to work on ruby
<yorickpeterse>
maloik: ask if they instead can do talks about sneakers
* yorickpeterse
runs
<maloik>
:D
<yorickpeterse>
I would be the worst conference organization because I'd make bad puns like that all the time
<yorickpeterse>
[k-: we use weird train related names and Japanese mythology
<[k->
i meant those 3 are hired by heroku, but there are others
CloCkWeRX has joined #ruby
<yorickpeterse>
and a few boring ones such as "review-collector"
Scroff has joined #ruby
<shevy>
consmans they sometimes maintain things or contribute new stuff, so yeah that is true. but I guess it depends on how much they want to maintain things in the first place; usually bug-fixes and such are quick, but other than that, many things don't change for quite a while
<shevy>
consmans have a look at who made the most recent changes to the main ruby:
wildroman2 has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
last_staff has quit [Quit: last_staff]
vyorkin has quit [Quit: WeeChat 1.2]
kies has joined #ruby
atomical has quit [Read error: Connection reset by peer]
|work is now known as pipework
atomical has joined #ruby
davorb_ has joined #ruby
atomical has quit [Read error: Connection reset by peer]
mister_solo has quit [Ping timeout: 256 seconds]
Marisa has quit [Ping timeout: 255 seconds]
blackmes1 has quit [Ping timeout: 248 seconds]
atomical has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
Muhannad has joined #ruby
jpfuentes2 has joined #ruby
andikr has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mister_solo has joined #ruby
<consmans>
I have one more question....
DaniG2k has joined #ruby
<consmans>
I can see in the mailing lists that I can joint the ruby core mailing list myself. Does that then give me the right to vote for changes and so on?
<centrx>
Since when are changes decided by vote?
<[k->
i think you would have your opinion heard, and be considered, which somewhats, but not really, counts as a vote
renderful has joined #ruby
<[k->
chages arent decided by votes
Scroff has joined #ruby
<[k->
it might wreck havock
chinmay_dd has quit [Remote host closed the connection]
<[k->
changes*
bf4 has quit [Ping timeout: 276 seconds]
Scrofff has quit [Ping timeout: 246 seconds]
Hounddog has quit [Read error: Connection reset by peer]
DLSteve has joined #ruby
<consmans>
hmm i guess you are right there are not votes i can read this:
<consmans>
"
<consmans>
Create a ticket in the issue tracker or email your patch to the Ruby-Core mailing list with a ChangeLog entry describing the patch.
<consmans>
If there are no issues raised about the patch, committers will be given the approval to apply it.
<consmans>
"
skade has quit [Quit: Computer has gone to sleep.]
<shevy>
well as long as you don't have a patch
<shevy>
this is a fairly meta discussion :)
<shevy>
"if I'd have a fast car, I could travel to South Dakota by myself!"
<[k->
#ruby on ruby!
ahmetkapikiran has joined #ruby
<shevy>
#everyone on [k-!
<adaedra>
shevy: even if I had a car, I couldn't :(
JohnBat26 has joined #ruby
mister_solo has quit [Ping timeout: 264 seconds]
<consmans>
shevy nope me neither, unless the car dirves over sea
renderful has quit [Ping timeout: 256 seconds]
prestorium has joined #ruby
lavros has quit [Read error: Connection reset by peer]
enebo has joined #ruby
Scrofff has joined #ruby
alol has joined #ruby
Xeago has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
freerobby has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
lavros has joined #ruby
depesz has joined #ruby
<depesz>
hi. how can I resolve hostname to ip?
Scroff has quit [Ping timeout: 244 seconds]
<jhass>
depesz: stdlib has the resolv library
<depesz>
I seem to be getting some data from Socket.gethostbyname, but the fourth field doesn't look like ip
<depesz>
jhass: thanks, checking
xrlabs has quit [Quit: This computer has gone to sleep]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
<shevy>
are you people all dutifully writing more ruby code right now
<adaedra>
I wish I were
<havenwood>
shevy: Boop. Bop. Beep.
<[k->
I am a bot bleep bloop. I do not know anything about ruby
<[k->
?ruby
<ruboto>
I don't know anything about ruby
<[k->
^
<[k->
^
diegoviola has quit [Ping timeout: 255 seconds]
iooner has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
acke has joined #ruby
lavros has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
emilkarl has quit [Quit: emilkarl]
bf4 has joined #ruby
jlast has quit [Read error: Connection reset by peer]
iooner has joined #ruby
teotwaki has quit [Ping timeout: 246 seconds]
Bertg has joined #ruby
peter_paule has joined #ruby
arturmartins has joined #ruby
teotwaki has joined #ruby
jlast has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
RoryHughes has quit [Ping timeout: 246 seconds]
startupality has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 256 seconds]
iooner has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
chouhoul_ has joined #ruby
startupality has joined #ruby
sandstrom has joined #ruby
iooner has joined #ruby
RoryHughes has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 272 seconds]
darix has joined #ruby
Soda has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
The_Phoenix1 has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<consmans>
I am off you guys
<consmans>
Thanks again for the info and discussion
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Ping timeout: 265 seconds]
<consmans>
I will add somthing in the following lines in the paper
<consmans>
"The authors would like to the thank the members of the Ruby community and more specifically the members [k-, shevy, sevenseacat, and yorickpeterse of the Ruby IRC channel for their insightful comments.
<consmans>
"
<consmans>
if that is something that you disagree now is the time to speak
<consmans>
or silence forever
<shevy>
I do not feel worthy to appear in the same sentence with the great sevenseacat cat
<consmans>
:)
blackmes1 has joined #ruby
<consmans>
do you want me to remove you from the text?
<[k->
me too
<[k->
me too again
<consmans>
for me this is more an acknowledgement of your time and effort
ringarin has quit [Ping timeout: 256 seconds]
<consmans>
nothing more nothing less
DroidBu__ has quit []
Indian has quit [Ping timeout: 248 seconds]
<yorickpeterse>
consmans: fine by me
erts_ has joined #ruby
<shevy>
consmans yeah I feel not worthy to appear with the others, I'd prefer if you cite others than me :D
<[k->
yorickpeterse likes having his name painted :D
<shevy>
that's good
<consmans>
* I am probably listing the names alphabetically
<shevy>
he had to do XML today so he needs time off
<consmans>
ok so shevy, i remove you from the text right?
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has quit [Quit: Leaving]
<consmans>
others stay
Louis__ has joined #ruby
Yiota has joined #ruby
<consmans>
shevy pls confirm
<Louis__>
Hi, people. Someone here experient in Rspec?
<[k->
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
<ivanskie>
uhm.. my brain is drawing a blank here.. whats that ruby server that ppl use with plain ruby? S....
<ivanskie>
sha... something..?
<havenwood>
ivanskie: WEBrick?
CloCkWeRX has quit [Quit: Leaving.]
<shevy>
ricky rich!
diegoviola has joined #ruby
<ivanskie>
no not the rails stuff.. but if i want a simple html page with a single ruby file pretty much
<ivanskie>
argh
terlar has quit [Ping timeout: 256 seconds]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<[k->
webrick
<ivanskie>
its at tip of my toung almost but i can't remember lol. when i don't need it i see it everywhere
<havenwood>
ivanskie: WEBrick isn't Rails stuff. It ships with Ruby.
tubuliferous_ has quit [Client Quit]
<[k->
Sinatra?
jlast has quit [Remote host closed the connection]
<ivanskie>
sinatra yess
<ivanskie>
thank you
jlast has joined #ruby
<jhass>
ivanskie: don't call it "ruby server" though, that's wrong
<ivanskie>
oh?
<jhass>
it's a webframework
pullphinger has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
Lucky___ has joined #ruby
<ivanskie>
oh.. oops didn't mean to be ignorant there.... will have to go read more about it then
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
not ignorant, just confusing ;P
rubie has joined #ruby
<ivanskie>
k maybe sintra is not what i need
lapide_viridi has quit [Quit: Leaving]
<havenwood>
ivanskie: You could serve your Sinatra app up with WEBrick. Sinatra like Rails is a Rack adapter. WEBrick is one of the Rack webservers that you could serve your Sinatra or Rails app up with, but folk typically use a gem like Puma, Rainbows!, Unicorn, Thin, etc instead of WEBrick.
bruno- has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
jlast_ has joined #ruby
p1k has joined #ruby
<shevy>
ohhh he meant sinatra
<havenwood>
ivanskie: Take a look at the Sinatra docs and see if you're on the right track.
<shevy>
ivanskie there is also padrino
jlast has quit [Read error: Connection reset by peer]
<[k->
WEBrick is generally avoided as it is only single threaded
<ivanskie>
ah i see.. well what i need actually is something that would run locally. read local csv / exel file (in same directory) and output something in a formatted way that can be printed.
<ivanskie>
will have to run on windows too.
<ivanskie>
right now i just have a console app that i deployed to customer's machine..
<jhass>
does it need to refresh on each request?
<ivanskie>
but they need to be able to print stuff. so my options right now is to continue to try to get it to do an html file.. like with Opal, try to serve it, or output a pdf.
<ivanskie>
hmm maybe.. maybe not
<jhass>
well, vague requirements, then no recommendations
<ivanskie>
it just reads csv file, and collects totals for product lables printed for the day..
<ivanskie>
so yah. now im thinking to either output to plain text, excel file, pdf, or my original thought was to have this work from html file somehow.. or to serve it locally anyway
<ivanskie>
oh? haven't thought of that
alex88 has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 276 seconds]
<ivanskie>
if it was up to me.. i think it'd just do a quick rails app to collect all the data, and present it nicely.. but then customer would have to upload each csv file so its like meh..
<ivanskie>
or do it in ember/angular on single html page.. except i suck at JS
DynamicMetaFlow has joined #ruby
kobain has quit [Ping timeout: 244 seconds]
<ivanskie>
aand I tried using Opal.. but seems like it doesn't let you access local files?
dumdedum has quit [Ping timeout: 264 seconds]
gagrio_ has quit [Ping timeout: 256 seconds]
Deele has joined #ruby
CustosLimen has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
tacit7 has joined #ruby
railsraider has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
chinmay_dd has joined #ruby
ddarkpassenger has joined #ruby
einarj has quit [Remote host closed the connection]
Bertg has joined #ruby
dfockler has joined #ruby
ringarin has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Eiam has joined #ruby
hsps_ has joined #ruby
bronson has joined #ruby
allomov has quit [Remote host closed the connection]
zendrix has joined #ruby
white_bear has quit [Quit: leaving]
allomov has joined #ruby
allomov has quit [Remote host closed the connection]
allomov has joined #ruby
nveselinov has quit [Quit: Connection closed for inactivity]
Oka has quit []
hotpancakes has joined #ruby
Eiam has quit [Client Quit]
ringarin has quit [Ping timeout: 252 seconds]
coderhs has quit [Ping timeout: 276 seconds]
j4cknewt has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 246 seconds]
allomov has quit [Remote host closed the connection]
spider-mario has joined #ruby
allomov has joined #ruby
Alayde has joined #ruby
stan has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
<izzol>
Anyone is using Route53?
ldnunes has quit [Ping timeout: 264 seconds]
<apeiros>
?anyone izzol
<ruboto>
izzol, Just ask your question, if anyone has or can, they will respond.
<Senjai>
Morning Ruby
<izzol>
I'm looking some gem to manage it from the console. I found route53 gem, but now sure if it's ok yet ;-)
<apeiros>
moin Senjai
mister_solo has joined #ruby
hahuang65 has joined #ruby
<[k->
apeiros!
s2013 has joined #ruby
gambl0re has quit [Ping timeout: 256 seconds]
<apeiros>
me!
<apeiros>
hi [k- :)
mdarby has joined #ruby
<[k->
hello :)
polysics_ has quit [Remote host closed the connection]
mdarby has quit [Max SendQ exceeded]
yardenbar has joined #ruby
kobain has joined #ruby
mdarby has joined #ruby
allomov has quit [Ping timeout: 248 seconds]
sfarley has joined #ruby
alotofnoodles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
valhallasw has joined #ruby
jlast has joined #ruby
ldnunes has joined #ruby
casadei has quit [Remote host closed the connection]
Agoldfish has joined #ruby
<shevy>
izzol don't think many people know that gem
hahuang65 has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
zendrix has quit [Remote host closed the connection]
Channel6 has joined #ruby
eGGshke is now known as eGGsha
tubuliferous_ has joined #ruby
Indian has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
poguez_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
arturmartins has quit [Quit: Leaving...]
blackmes1 has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 272 seconds]
alex88 has joined #ruby
baweaver has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 246 seconds]
senayar has quit []
fantazo has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sfarley has quit [Remote host closed the connection]
ruv has quit [Ping timeout: 255 seconds]
<adaedra>
how would you do to put a timeout around a job?
shinnya has joined #ruby
<adaedra>
Derp, there's a timeout module
The_Phoenix1 has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
alol has quit [Quit: Connection closed for inactivity]
<jhass>
adaedra: it would be much much much better for the job to check for the timeout though and quit
railsraider has quit [Quit: railsraider]
<adaedra>
I'll consider that
vdmgolub has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k->
many people have expressed dissatisfaction with timeout
<[k->
especially with matters to threading
memph1s has joined #ruby
pengin has joined #ruby
alex88 has quit [Remote host closed the connection]
idafyaid has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
sfarley has joined #ruby
gkra_ has joined #ruby
gkra has quit [Read error: Connection reset by peer]
<ivanskie>
i know i put CSV.open after i modify counts hash.. but it doesn't matter where I put it. still gives me this error
Channel6 has quit [Quit: Leaving]
blaines has joined #ruby
krz has joined #ruby
EllisTAA has joined #ruby
<EllisTAA>
what is the ruby off topic channel?
wildroman2 has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Remote host closed the connection]
blaines_ has joined #ruby
<shevy>
#ruby !
n008f4g_ has quit [Ping timeout: 276 seconds]
j4cknewt has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
<EllisTAA>
lol
blaines has quit [Read error: Connection reset by peer]
<havenwood>
?ot EllisTAA
<ruboto>
EllisTAA, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<EllisTAA>
:)
Zai00 has quit [Quit: Zai00]
<Diabolik>
can anyone help with the simple forms problem?
prestorium has quit [Quit: Konversation terminated!]
<ivanskie>
nevermind looks like i got it
mdarby has quit [Read error: Connection reset by peer]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
Diabolik, Is that not a drop-down list (DDL) ?
nfk has quit [Read error: Connection reset by peer]
Paradox has joined #ruby
nfk has joined #ruby
<Diabolik>
centrx kind of
<Diabolik>
you know the search bar on firefox
<Diabolik>
how you can select which search engine you want to use
enebo has quit [Quit: enebo]
peterhu has quit [Remote host closed the connection]
Indian has quit [Ping timeout: 246 seconds]
Paradox has quit [Client Quit]
Paradox has joined #ruby
peterhu has joined #ruby
shadoi has joined #ruby
jlast has quit [Remote host closed the connection]
bronson has joined #ruby
jlast has joined #ruby
wallerdev has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
momomomomo_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
blackmesa has joined #ruby
casadei has joined #ruby
Narzew has quit [Read error: Connection reset by peer]
jlast has joined #ruby
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 250 seconds]
duderonomy has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
towski_ has joined #ruby
casadei has quit [Ping timeout: 264 seconds]
stoodfarback has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
hotpancakes has joined #ruby
roshanavand has quit [Remote host closed the connection]
tvw has joined #ruby
IanV0rn2341 has quit [Read error: Connection reset by peer]
anjen has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
IanV0rn2341 has joined #ruby
RegulationD has quit [Remote host closed the connection]
dmmoody has joined #ruby
finisherr has joined #ruby
ta has joined #ruby
krz has quit [Ping timeout: 250 seconds]
mbhnvs has quit [Remote host closed the connection]
NeverDie has joined #ruby
Eiam has joined #ruby
jimms has joined #ruby
marr has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 252 seconds]
Narzew has joined #ruby
troulouliou_dev has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
EllisTAA has joined #ruby
JoshGlzBrk has joined #ruby
krz has joined #ruby
ItSANg___ has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
Soda has quit [Remote host closed the connection]
alex88 has joined #ruby
solars has joined #ruby
lolmaus has joined #ruby
pengin has joined #ruby
davorb_ has quit [Quit: Connection closed for inactivity]
DynamicMetaFlow has quit [Quit: Leaving]
ruv has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
alex88 has quit [Ping timeout: 264 seconds]
jas02 has quit [Ping timeout: 252 seconds]
nofxx has joined #ruby
rdark has quit [Quit: leaving]
fantazo has quit [Ping timeout: 244 seconds]
momomomomo_ has joined #ruby
User458764 has joined #ruby
momomomomo has quit [Ping timeout: 276 seconds]
momomomomo_ is now known as momomomomo
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
Scrofff has quit [Remote host closed the connection]
Indian has joined #ruby
Guest45364 has quit []
cmisenas has joined #ruby
blackmesa has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
baweaver has joined #ruby
loveablelobster has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
pengin has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
startupality has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
Igorshp has joined #ruby
loveablelobster has quit [Remote host closed the connection]
mister_solo has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy>
is there a way to define a meta-gem? I suppose no but I wanted to ask..
casadei has joined #ruby
<shevy>
I have like several small gems, all part of ruby-gtk
<shevy>
same namespace too
malconis has quit [Ping timeout: 264 seconds]
<shevy>
I want to keep them separate though, but also allow an install-all action. I guess I could just add a meta-gem that just will include the dependencies of the others?
momomomomo has quit [Quit: momomomomo]
thiagovsk has quit [Quit: Connection closed for inactivity]
lkba_ has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
Igorshp has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ivanskie>
it won't add any text into cells at all.
User458764 has quit [Ping timeout: 276 seconds]
<ivanskie>
i don't understand why. I tried overwriting cell type.. no result.
hotpancakes has quit [Ping timeout: 264 seconds]
User458764 has joined #ruby
<ivanskie>
more specifically... when im adding a row to xslx file.. it builds the worksheets with correct name, adds all the cells, and styles properly..
momomomomo has joined #ruby
<ivanskie>
and populates rows with my numbers.. but it doesnt add text like for my header, or title...
<ivanskie>
i've included the output xlsx file, and sample csv file.
jpfuentes2 has joined #ruby
Muhannad has joined #ruby
sfarley has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
<Senjai>
baweaver: You get that output with 2.1.6 ?
User458764 has quit [Client Quit]
<Senjai>
baweaver: I only get an array with a single element
<baweaver>
2.2.2
<baweaver>
and pry will not take it
<baweaver>
remember it plays with underscores
mikecmpbll has joined #ruby
<shevy>
b_e_a_v_e_r
<shevy>
it makes you appear all bigger with underscores!
punkerplunk has joined #ruby
<Senjai>
Yeah I cant get that output on 2.1.6
<Senjai>
err
<Senjai>
yeah
hotpancakes has joined #ruby
pengin has quit [Remote host closed the connection]
l0pher has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
MatthewsFace has joined #ruby
peter_paule has joined #ruby
<ivanskie>
well this is retarded.
<ivanskie>
axlsx is indeed outputting text into cells.
atom3 has quit [Ping timeout: 276 seconds]
<ivanskie>
but Numbers app on osx doesn't read it.
codecop has joined #ruby
<ivanskie>
excel reads it fine
<Senjai>
baweaver: Congrats dude, that is mega impressive
Scroff has joined #ruby
atom3 has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
<baweaver>
Ox0dea wrote it originally
<baweaver>
just sharing the madness
l0pher has quit [Client Quit]
<baweaver>
and translating for the non-perl ninjas
eGGsha is now known as eGGshke
NeverDie_ has joined #ruby
Scroff has joined #ruby
<shevy>
oh perl ninjas
l0pher has joined #ruby
<shevy>
they are past age 50+ these days now aren't they
* baweaver
knows perl
MatthewsFace has quit [Ping timeout: 252 seconds]
<shevy>
hmmm
<shevy>
beavers are immortal, like cats
blackmesa has joined #ruby
baweaver has quit [Remote host closed the connection]
Scroff has quit [Read error: Connection reset by peer]
dmmoody has quit [Remote host closed the connection]
zendrix has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
<eam>
Diabolik: so looking at line 6, do you understand why it's raising? Why params[:artist_name] is nil?
jackjackdripper has joined #ruby
polysics has joined #ruby
<weaksauce>
Diabolik if you watch that short video it will help you immensely
fantazo has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
<graft>
weaksauce: storing processing times for patient samples... needs to be accurate to the quarter-hour probably
memph1s has quit [Quit: I couldn't come up with quit message :(]
<weaksauce>
graft ah yeah. sounds like an int is good enough®.
zendrix has joined #ruby
casadei has quit [Remote host closed the connection]
jenrzzz has joined #ruby
startupality has quit [Quit: startupality]
fantazo has joined #ruby
Bertg has joined #ruby
gusrub has joined #ruby
polysics has quit []
davedev24_ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 272 seconds]
dfockler has quit [Remote host closed the connection]
toretore has joined #ruby
nfk has quit [Ping timeout: 252 seconds]
memph1s has joined #ruby
davedev24_ has joined #ruby
pengin has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
zendrix has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<_blizzy_>
you know you're doing something wrong when you're scattering print statements.
nobitanobi has joined #ruby
bronson has joined #ruby
<punkerplunk>
printing from a thread?
<_blizzy_>
no.
wallerdev has quit [Quit: wallerdev]
<punkerplunk>
well, you're not shooting them out of a shotgun
<_blizzy_>
lol.
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zendrix has joined #ruby
renderful has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
ItSANgo_ has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
hotpancakes has joined #ruby
Bertg has joined #ruby
phutchins has quit [Ping timeout: 248 seconds]
renderful has joined #ruby
punkerplunk has quit [Quit: Leaving]
<Diabolik>
eam because artist_info isn't a param for rockstar?
arturmartins has joined #ruby
speakingcode has joined #ruby
renderful has quit [Client Quit]
p1k has quit [Ping timeout: 250 seconds]
podman has quit [Quit: Connection closed for inactivity]
<Diabolik>
or because artists hasn't been instantiated
TheHodge has quit [Quit: Connection closed for inactivity]
<ivanskie>
how can I install 2.1.5 without rbenv or rvm?
<ivanskie>
ruby-install doesn't list 2.1.5 for some reason
codecop has quit [Ping timeout: 255 seconds]
<eam>
Diabolik: yes, likely because that param hasn't been set
<ivanskie>
on osx
<havenwood>
ivanskie: Update ruby-install but 2.1.6 is actually out which you can get without updating: ruby-install ruby 2.1.6 --sha2 1e1362ae7427c91fa53dc9c05aee4ee200e2d7d8970a891c5bd76bee28d28be4
Rickmasta has joined #ruby
<ivanskie>
yeah im working with travelling ruby, they want 2.1.5
<ivanskie>
*shrug* looks like its working now that i updated it. thanks
<havenwood>
ivanskie: They ship their own binary.
<ivanskie>
ah good point
<Diabolik>
eam so a private artist_params method would solve it?
kadoppe has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
jcromartie has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<eam>
Diabolik: params[:artist_name] is what's giving you trouble -- do you know what the params hash is?
<eam>
Diabolik: you should probably take this question over to the ruby on rails channel
<Diabolik>
ok
<Diabolik>
sorry
yfeldblum has joined #ruby
<eam>
but, the parameter is nil, so the expression is nil, so #empty? doesn't work
kadoppe has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
mordocai has quit [Remote host closed the connection]
woodruffw has quit [Remote host closed the connection]
<jenksy>
454
hotpancakes has quit [Remote host closed the connection]
woodruffw has joined #ruby
NeverDie_ is now known as NeverDie
Muhannad has joined #ruby
freerobby has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
craysiii has quit [Quit: craysiii]
scottschecter has joined #ruby
scottschecter has quit [Max SendQ exceeded]
craysiii has joined #ruby
mdarby has joined #ruby
solars has quit [Ping timeout: 248 seconds]
doctorly has joined #ruby
n008f4g_ has joined #ruby
scottschecter has joined #ruby
scottschecter has quit [Max SendQ exceeded]
<meatchicken>
How come this gives true? (DateTime.now.to_i - 9.days.ago.to_i) < 1.week.ago.to_i
<meatchicken>
I want to check if a "last_opened_at" is less than a week
<meatchicken>
shouldn't my equation check if the difference between now and 9 days ago is less than a week?
casadei_ has joined #ruby
mdarby has quit [Client Quit]
<eam>
meatchicken: why don't you print out each integer value
vasilakisfil_ has joined #ruby
<graft>
haha... 1.week.ago is a Time, nto a duration
<graft>
i.e., 1.week.ago.to_i is the number of seconds betwee the epoch and 1 week ago, not the number of seconds in 1 week
kraljev11 has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
ringarin has joined #ruby
<shevy>
adaedra are you a wise ruby programmer?
<arup_r>
yes he is
<arup_r>
and you shevy ?
<shevy>
nope I am not
<adaedra>
It would be unwise to consider myself wise, I can always be wiser.
<shevy>
I make up for my lack of ingenuity with masses of lines of code
blackmesa has quit [Ping timeout: 264 seconds]
peter_paule has quit [Ping timeout: 272 seconds]
<arup_r>
I am not good.. in English
<arup_r>
:)
freeze has quit [Ping timeout: 256 seconds]
<adaedra>
English, do you speak it?
zendrix has quit [Remote host closed the connection]
highbass has joined #ruby
<craysiii>
wat is engels
<highbass>
hey guys... how can i set a default ruby version for root that is different for one of my other users on a server?
<highbass>
i am using rvm
Zai00 has quit [Quit: Zai00]
arturmartins has joined #ruby
EllisTAA has joined #ruby
<havenwood>
highbass: A system install of RVM in /usr/local then?
hotpancakes has joined #ruby
<highbass>
havenwood: could you elaborate for me please?
sfarley has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
EllisTAA has quit [Client Quit]
vdamewood has quit [Ping timeout: 252 seconds]
<havenwood>
highbass: Are you using a recommended single-user install of RVM in your user's home directory ~/.rvm/ or a system install of RVM in the /usr/local directory?
Zai00 has joined #ruby
ringarin has quit [Ping timeout: 265 seconds]
dfockler has joined #ruby
sadik0x10 has quit [Quit: Leaving]
<havenwood>
~/.rvm/ vs /usr/local/rvm
diego_ has quit [Changing host]
diego_ has joined #ruby
<highbass>
looks like which reports /usr/local/rvm/bin/rvm
<highbass>
so i have to reinstall it the other way i guess
<havenwood>
highbass: So likely you installed RVM with sudo or as root.
jcdesimp has quit [Remote host closed the connection]
bhorn1 has quit [Quit: Leaving]
lavros has quit [Quit: leaving]
NeverDie has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
sarkyniin has joined #ruby
freerobby has quit [Client Quit]
Al3ks has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
revoohc has quit [Quit: revoohc]
jimms has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
Al3ks has quit [Quit: Leaving]
Al3ks has joined #ruby
zendrix has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
zendrix has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
nfk has joined #ruby
workmad3 has joined #ruby
woodruffw has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit []
baweaver has joined #ruby
snockerton has quit [Quit: Leaving.]
A205B064 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
snockerton has joined #ruby
aphprentice has quit [Remote host closed the connection]
mcclurmc has joined #ruby
djstorm has quit [Ping timeout: 256 seconds]
ivanskie has joined #ruby
aef has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
momomomomo has quit [Quit: momomomomo]
sarkyniin has quit [Ping timeout: 256 seconds]
delianides has quit [Remote host closed the connection]
aef has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
mcclurmc_ has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
baweaver has quit [Remote host closed the connection]
pullphinger has quit []
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
Soda has joined #ruby
woodruffw has joined #ruby
bruno- has joined #ruby
bf4 has quit [Read error: Connection reset by peer]
emilkarl has quit [Quit: emilkarl]
ldnunes has quit [Quit: Leaving]
tacit7 has quit [Ping timeout: 255 seconds]
Scroff has quit [Remote host closed the connection]
Musashi007 has joined #ruby
tacit7 has joined #ruby
snapcase has quit [Quit: leaving]
acke has quit [Remote host closed the connection]
<shevy>
hmm an array, we can grab 5 random elements, or just do [0..5]; is there something similar for a hash? I want to display just 5 key->value pairs, does not matter which one (or, the "first" 5, if that would exist)
sepp2k has quit [Quit: Leaving.]
<shevy>
oh, actually 0..4 (0,1,2,3,4)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has quit [Read error: Connection reset by peer]
danman has joined #ruby
mdw has joined #ruby
<weaksauce>
shevy keys.sample(5)
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
_blizzy_: ^ only as portable as ps >.>
<_blizzy_>
havenwood, thanks.
dgutierrez1287 has joined #ruby
danman has quit [Quit: danman]
<havenwood>
_blizzy_: you're welcome
Pupeno has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
danman has joined #ruby
bf4 has quit [Read error: Connection reset by peer]
dmmoody has quit [Remote host closed the connection]
dmmoody has joined #ruby
seansith has joined #ruby
freerobby has quit [Quit: Leaving.]
hinbody has quit [Quit: leaving]
micmus has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
sfarley has quit [Remote host closed the connection]
bf4 has joined #ruby
shadoi has joined #ruby
last_staff has quit [Quit: last_staff]
werelivinginthef has joined #ruby
jhooker has quit [Ping timeout: 255 seconds]
Zai00 has joined #ruby
Spami has joined #ruby
<ivanskie>
hit quite a roadblock dang it.. have a nice output into an excel file... but i can't transfer the app to windows. cuz nokogiri doesnt like it as is.. argh
<ivanskie>
palmface
kies has quit [Ping timeout: 250 seconds]
mandarinkin has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
sfarley has joined #ruby
bronson has quit [Remote host closed the connection]
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polly_wog has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
ta has joined #ruby
jlast has quit [Remote host closed the connection]
NeverDie_ is now known as NeverDie
jhooker has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
[H]unt3r has quit []
Zai00 has quit [Quit: Zai00]
yfeldblum has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
micmus has joined #ruby
Igorshp has quit [Ping timeout: 248 seconds]
yardenbar has quit [Quit: Leaving]
tno has quit [Remote host closed the connection]
Al3ks has quit [Remote host closed the connection]
Igorshp has joined #ruby
malconis has quit [Client Quit]
dgutierrez1287 has quit [Remote host closed the connection]
blaines has quit [Read error: Connection reset by peer]
<Senjai>
ivanskie: Of course, nokogiri builds native extensions
blaines has joined #ruby
<Senjai>
ivanskie: Meaning it has to be compiled on each machine
<Senjai>
ivanskie: But seriously, don't use windows. All your problems will dissapear ;)
<ivanskie>
yeah. and it doesn't support 2.2.2 on windows
<ivanskie>
yes thats usually my strategy.
<Senjai>
If I had it my way, nothing would support windows :P
<ausec>
how do i read only the first 100 lines of a file in ruby
Narzew has joined #ruby
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai>
ausec: 100.times do File.readline
<ivanskie>
but in this case.. I can't avoid it. im thinking of maybe doing a rails app with a background task running ruby code connecting to windows share to read my csv files..
<Senjai>
ausec: Make sure you rescue EOF
<ivanskie>
and sticking it into a vm.
sfarley has quit [Remote host closed the connection]
<Senjai>
ivanskie: Why not just have it running on a server. Instead of a VM
rubie has quit [Remote host closed the connection]
<ivanskie>
there's no linux server there
<ivanskie>
and their internet is spotty
<Senjai>
Can there be?
<ivanskie>
in a vm...
<ausec>
Senjai, thanks im pretty new to ruby
<Senjai>
Why not ask them to spend $500 and get a linux server
<ivanskie>
lol
<Senjai>
Or you know
<Senjai>
go digital ocean
<ivanskie>
they've already spent a few dozen grand on our machine that comes with a box with a PC in it.
<Senjai>
for $10 a month
<ausec>
what im actually trying to do is read the first 100, run a block against them, then read the next 100 and so on
allomov has quit [Remote host closed the connection]
<umgrosscol>
ivanskie: You're selling a box with a pc inside and it's not running linux?
<ivanskie>
lol shh
<ivanskie>
im not the engineer
micmus has quit [Quit: Leaving]
<umgrosscol>
ausec: 100.times do File.readline
axl_ has quit [Quit: axl_]
<ivanskie>
its controlling our print applicator machine
<umgrosscol>
ausec: Throw that in a function
<ivanskie>
printing labels and applying to boxes
<ivanskie>
and this app was an afterthought
<umgrosscol>
ivanskie: That's rough. A rails app to read a csv sounds like a sledgehammer to tap in some finishing nails.
dgutierrez1287 has joined #ruby
stoodfarback has joined #ruby
frg133 has quit [Quit: Leaving]
Oufoi has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
ddarkpassenger has joined #ruby
<Oufoi>
Hi, quick question guys: can I call a method without instancing an object ? such as Class.mymethod instead of Class.new().mymethod() ?
bluOxigen has joined #ruby
<umgrosscol>
ausec: File.readline(100) handle the EOFError for the end of file.
<umgrosscol>
Oufoi: You can for a class method, but not for an instance method.
<umgrosscol>
Oufoi: For an instance method, you need an instance of the class.
vasilakisfil_ has quit [Quit: Konversation terminated!]
<umgrosscol>
Oufoi: So something that is stateless would be perfect for a class method. class Foo; def self.mymethod
fabrice31 has joined #ruby
<baweaver>
>> class Foo; def self.bar; 1 end end; Foo.bar
<finisherr>
but for some reason, nothing prints after the first 3 lines of output
<finisherr>
normally thing command will print many many lines updating the user on the status of the things happening in vagrant and with the tests
reset has joined #ruby
astrobunny has quit [Ping timeout: 248 seconds]
blaines has joined #ruby
reset has quit [Client Quit]
<finisherr>
if i just do puts `kitchen converge` i have a feeling the user would have to wait for a very long time to collect the string printed to standard out before printing
EllisTAA has quit [Ping timeout: 256 seconds]
alex88 has quit [Ping timeout: 264 seconds]
SCHAAP137 has quit [Remote host closed the connection]
hotpancakes has joined #ruby
spider-mario has quit [Remote host closed the connection]
baweaver has joined #ruby
bf4 has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 252 seconds]
dgutierrez1287 has joined #ruby
towski_ has quit [Ping timeout: 276 seconds]
towski_ has joined #ruby
bf4 has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
mister_solo has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
icarus has joined #ruby
finisherr has quit [Quit: finisherr]
Azure has quit [Ping timeout: 265 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
pengin has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
finisherr has joined #ruby
platzhirsch has joined #ruby
mary5030 has joined #ruby
Muhannad has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
jhooker has joined #ruby
startupality has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
arescorpio has joined #ruby
highbass has quit [Remote host closed the connection]
psy_ has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
umgrosscol has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
pengin has joined #ruby
danman has quit [Quit: danman]
benlieb_ has joined #ruby
drocsid has quit [Quit: leaving]
mesamoo has joined #ruby
blaines has quit [Ping timeout: 250 seconds]
casadei_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
bf4 has quit [Ping timeout: 272 seconds]
blaines has joined #ruby
AmBienCeD has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
danman has joined #ruby
enebo has quit [Quit: enebo]
platzhirsch has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
hgl has joined #ruby
blaines has quit [Ping timeout: 276 seconds]
enebo has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
blaines has joined #ruby
casadei_ has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
a346 has quit [Quit: a346]
Exuma has quit []
ledestin has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
RegulationD has quit [Remote host closed the connection]
hgl has quit [Max SendQ exceeded]
emptyflask has joined #ruby
hgl has joined #ruby
bronson has joined #ruby
shoutsid has quit []
hgl has quit [Max SendQ exceeded]
idafyaid has quit [Ping timeout: 276 seconds]
doctorly has quit [Ping timeout: 246 seconds]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
bf4 has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]