<maloik>
"Can you add some buttons to the dashboard" - sure, what do they need to do? - "oh I don't know, just some buttons"
<maloik>
hmm...
maxmanders has joined #ruby-lang
benlovell has joined #ruby-lang
<oddmunds>
:)
<yorickpeterse>
hola
lunarjar has quit [Quit: Bye]
lunarjar has joined #ruby-lang
s0ber has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
<Joni_79>
greetings
benlovell has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
mradmacher has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
gja has joined #ruby-lang
<yorickpeterse>
welp fuckit, I'm stopping with signing off Git commits
xning has quit [Quit: Leaving]
axsuul has quit [Ping timeout: 264 seconds]
northelks has joined #ruby-lang
rickhull has joined #ruby-lang
runeb has joined #ruby-lang
fosky has quit [Ping timeout: 256 seconds]
Squarepy has quit [Quit: Leaving]
joeroot has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
s0ber has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
s0ber has quit [Ping timeout: 240 seconds]
duphus has quit [Quit: Leaving.]
pczarn has joined #ruby-lang
vivekrai has joined #ruby-lang
ffio has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
<gnufied>
:-)
runeb has quit [Remote host closed the connection]
<gnufied>
I liked that touch though.
<yorickpeterse>
meh, it makes things too complicated
<yorickpeterse>
and after reading my own DCO properly again I don't notice any requirement for --sign anyway
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
runeb has joined #ruby-lang
Domon has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_st__ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 246 seconds]
Squarepy has joined #ruby-lang
swav_ has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
swav has quit [Ping timeout: 276 seconds]
<ledestin>
I'm doing a timeout() replacement. Would it be a good idea for it to throw Timeout::Error for drop-in replacement?
<ledestin>
I also use `include <modname>', w/o it Kernel.timeout() doesn't get replaced.
<ledestin>
any objections to that?
rickhull has quit [Quit: Leaving.]
<apeiros>
it's sane if your replacement is optional
<apeiros>
reusing Timeout::Error seems fine too
<apeiros>
alternatively subclass Timeout::Error
<apeiros>
existing rescues would still work with, and new code could distinguish if - for whatever reason - necessary
swav_ has quit [Ping timeout: 248 seconds]
digs has joined #ruby-lang
<ledestin>
apeiros: cool, thanks for the idea
gja has quit [Quit: This computer has gone to sleep]
digs is now known as Guest36015
<ledestin>
a great idea indeed
vlad_st__ has quit [Remote host closed the connection]
swav has joined #ruby-lang
scholar011 has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby-lang
scholar01 has quit [Ping timeout: 276 seconds]
realDAB has joined #ruby-lang
<yorickpeterse>
So my two bosses are in the room next door, singing on the phone (I think)
<yorickpeterse>
not sure what the hell is going on
Guest36015 has quit [Ping timeout: 248 seconds]
<maloik>
sounds awesome :D
joeroot has quit [Quit: Leaving...]
realDAB has quit [Client Quit]
<apeiros>
karaoke competition
<apeiros>
which is needed to make the next business decision
<maloik>
it beats endless arguing :-)
<maloik>
and arguably more fun than rock-paper-scissors
<yorickpeterse>
Aha, it was a birthday song for boss woman's mother
<ledestin>
unexpected. if a method is defined, include <modname> doesn't replace it.
<andrewvos>
Anyone know how to get messages from bots appear in a split at the top of the screen in irssi?
<andrewvos>
I also don't want to be able to focus the window
<andrewvos>
Cause that's just weird
ffio has quit [Quit: WeeChat 0.4.1]
ffio has joined #ruby-lang
<yorickpeterse>
andrewvos: you mean bots talking in a public channel?
<yorickpeterse>
err, just any channel for that matter
thepumpkin has quit [Remote host closed the connection]
Aopa has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
<Aopa>
Hi there, I would like to override the 'require' method, any tip on how to proceed ? I think it's useless to say that I'm new to Ruby...
<yorickpeterse>
Why do you want to override it?
<yorickpeterse>
There are very few cases where you'd actually want to do that
<yorickpeterse>
Not to mention people will probably slap you for doing it
<Aopa>
Well I have no choice ;)
<apeiros>
being new and wanting to override a core functionality is somewhat suspicious
<apeiros>
I doubt that, Aopa
<yorickpeterse>
Aopa: Well, explain what you're trying to do first
<apeiros>
or: how can you say that, being new? I'd not be surprised if you're just not aware of your options.
wmoxam has joined #ruby-lang
<Aopa>
Well I can't really say on what I'm working on, but let's say that I need to encode all my ruby files which will be then "imported". So I would like to override the 'require' method so they are decoded when imported
flip_digits has quit [Remote host closed the connection]
<gnufied>
old one though
<yorickpeterse>
ugh, THIS IS WHY WE CAN'T HAVE NICE THINGS
<gnufied>
I have given up and unless I am sure, I always use outside module name as prefix
<erikh>
solution: replace rails
<erikh>
alternative solution: pacifier
<gnufied>
so you will never catch me writing naked ApplicationController when I meant AdminTool::ApplicationController
<gnufied>
:(
<gnufied>
ruby's constant loading rules feel like remembering those operator precedence order
glebm has joined #ruby-lang
mradmacher has quit [Quit: Lost terminal]
ffio has joined #ruby-lang
kristofferrr has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
mucker has joined #ruby-lang
jstorimer has joined #ruby-lang
<injekt>
solution: /quit
gja has quit [Quit: This computer has gone to sleep]
<Zeeo>
Hey guys, what's the command to install a gem (and only that one) ? I'm working with rails 3.2.13 and all dependencies are met. I've uninstalled a gem that I need to re-install but whenever I run gem install bundler starts downloading gems from 4.0 wich are going to mess up my environment so I don't want them to get installed. How do I fix this?
<injekt>
Zeeo: gem install rails -v 3.2.13
<injekt>
Zeeo: if you have a Gemfile you can just run bundle, though
<Zeeo>
injekt: yeah, that's what I would have done if my environment was stable, but sadly I need to work very carefully because there are some gems that I can't remember how I got to work, so running bundle is a suicide in my particular case
<injekt>
D:
jsullivandigs has joined #ruby-lang
<Zeeo>
injekt: I'm working on windows D: took me weeks to actually start writing some code
mistym has joined #ruby-lang
<erikh>
injekt: lol
<injekt>
Zeeo: it would have taken less than an hour to fire up a vps and start writing code right away, why do you want such pain?
<Zeeo>
injekt: vps = virual machine?
<Zeeo>
lol I don't own such a powerful computer
<erikh>
vps is a hosted thing.
<yxhuvud>
zeeo: if you have a working setup, my recommendation would be to remove the upstream from the gemfile, type bundle install to get a lockfile with current setup. Then you can do bundle update gemname to do a controlled update of a gem.
<injekt>
better yet, throw in an ubuntu disk
<erikh>
injekt: well, that's not always as easy as it sounds
<erikh>
you're plucky today :P
<erikh>
worse than me and I've had almost 40oz of red bull already
lunarjar has quit [Quit: Bye]
ruurd has joined #ruby-lang
lunarjar has joined #ruby-lang
realDAB has quit [Quit: realDAB]
<gnufied>
redbull is bad for my tummy
<Zeeo>
yxhuvud: I'm sorry, what do you mean for "upstream"?
runeb has quit [Remote host closed the connection]
<yxhuvud>
The first line in the gemfile, which defines where gem will go look for gems.
<gnufied>
the whole point of bundler is to have reproducible setup
<Zeeo>
yxhuvud: the source?
<gnufied>
if you got it installed once, you can get it installed again
<injekt>
erikh: one of those mornings
<yxhuvud>
gnufied: if he has a working lockfile, yes
<gnufied>
i don't understand what is the fear of not running "bundle" command is
ffio has quit [Quit: WeeChat 0.4.1]
<erikh>
injekt: I Hear that. viva la monday
andrewvos has quit [Ping timeout: 260 seconds]
<gnufied>
Zeeo: are you installing gems individually rather than via bundler?
<erikh>
gnufied: bundle update? you can break a great deal of shit that way
<Zeeo>
gnufied: yeah, and everything works fine so far
<gnufied>
erikh: I did not say bundle update. I say, bundle
andrewvos has joined #ruby-lang
<gnufied>
Zeeo: and which rails version your Gemfile points to?
<gnufied>
rails 4.0 or 3.2.13 ?
<injekt>
bundle update should come with a warning, like a "LOL NAH, SUPPLY A LIBRARY PLOX"
<gnufied>
you can install all your gems in a directory as well Zeeo
<erikh>
injekt: I just wish rubyists knew how to code stable libraries
ruurd has quit [Client Quit]
<Zeeo>
gnufied: it's 3.2.13, In fact, it's a mistery to me why gem tries to install 4.0 stuff
<gnufied>
so, bundle install —path vendor/bundle
<gnufied>
that way, you don't screw up your system gems
realDAB has joined #ruby-lang
<erikh>
but hey, less than perfect world
<erikh>
injekt: totally glaring at you btw
<Zeeo>
already lost at least two afternoons on this problem
<erikh>
anyhow, I need to go back to being depressed about puppet
<gnufied>
Zeeo: can you try bundle install with —path option?
<injekt>
erikh: it makes the ladies think I'm wild
<gnufied>
Zeeo: it should install whatever version of rails your app requires
<injekt>
erikh: "what's he gonna do next? release a beta? oohhhh quiver"
<erikh>
injekt: "it's getting buggy in here -- so take off all your source"
<gnufied>
for a long time I believe injekt was a girl
<gnufied>
believed*
<gnufied>
:D
dhruvasagar has joined #ruby-lang
<injekt>
I shall take that as a compliment
<gnufied>
there used to be a person blink. she was a resident #ruby-langer
<Zeeo>
gnufied: I know it requires the 3.2.13, but, it also re-installs non-working versions of gems that I don't know the source for, so whenever I run bundle it gets mingw32 version rather than ruby and it's a lot of work to get it running again
<injekt>
erikh: "buggy buggy buggy can't you see, if you want a 1.0 you should employ Lee"
ruurd has joined #ruby-lang
<erikh>
injekt: nice
cube526 has joined #ruby-lang
<gnufied>
Zeeo: well, if you directly install a gem by using rubygems api
<gnufied>
can*
<gnufied>
it will bypass dependency check etc
<erikh>
yeah, things that are a bad idea if you want to be portable
<erikh>
the API's changed a few times
<Zeeo>
gnufied: plus, the tendence of my bundler and installation system is to overlay divverent version of gems without asking confirmation, causing me afternoons of extra work
flip_digits has joined #ruby-lang
<Zeeo>
gnufied: do you mean "gem install...."?
<gnufied>
I have no idea, how to help you.
<gnufied>
Zeeo: no, it is rubygems internal stuff
<Zeeo>
gnufied: oh, I'll check it out
<Zeeo>
ty :)
<gnufied>
don't be enouraged. it was meant to be used by package managers like bundler
cored has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
ruurd has quit [Quit: Leaving...]
peeyek has joined #ruby-lang
<yorickpeterse>
paste code
<yorickpeterse>
(of what you have so far)
saarinen has joined #ruby-lang
<eam>
I want to take an incomplete hostname and resolve it to a fqdn using the dns search path. What's the right ruby gem for this? Resolv doesn't seem to have this functionality
<yorickpeterse>
based on that SO pastie, yes, but you'd have to create custom objects for it
<eam>
oh, Socket.gethostbyname()
flip_digits has joined #ruby-lang
ruurd has joined #ruby-lang
judofyr has joined #ruby-lang
<Sammidysam>
yorickpeterse: you were talking to me, right?
<Sammidysam>
about pasting code
<Sammidysam>
sorry, I wasn't paying enough attention.
flip_digits has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
saarinen has quit [Quit: saarinen]
iliketurtles has quit [Quit: zzzzz…..]
<yorickpeterse>
Yeah
<yorickpeterse>
One way to do it is to create a custom class/object, store the string value, call the block and use whatever it returns to append to the previous string
iliketurtles has joined #ruby-lang
<erikh>
eam: Resolv::DNS can take a search IIRC
<Sammidysam>
Okay, well I've tried a ton but I'm trying to add a feature to a project not mine so I'm not sure how much I can change it. I will post what I have when I finish testing something.
workmad3 has joined #ruby-lang
<Sammidysam>
Alright so I have this method def drop_down(name)
<Sammidysam>
content_tag :li, :class => "dropdown" do
<Sammidysam>
So, then, is it possible to get the lines 16-18 in a string?
mucker has quit [Quit: leaving]
<Sammidysam>
Then replace something in it then have that as the yield?
<Sammidysam>
I guess I'm not absorbing the example enough.
<Sammidysam>
But I'm mainly just looking to take, for example, Nested.new 'baz' on line 17 and make it instead call something like NonNested.new 'baz' e.g. replace what it does.
<Sammidysam>
As in, make the Nested.new calls inside the first Nested.new call something else.
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
roadt__ has quit [Ping timeout: 256 seconds]
mistym_ has quit [Ping timeout: 264 seconds]
krames has joined #ruby-lang
krames has quit [Client Quit]
Pupeno has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
vlad_starkov has joined #ruby-lang
loincloth has joined #ruby-lang
jstorimer has joined #ruby-lang
ffio has joined #ruby-lang
maxmanders has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
jg_ has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 246 seconds]
jstorimer has joined #ruby-lang
gja has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
jstorime_ has joined #ruby-lang
marr has joined #ruby-lang
havenwood has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
jstorimer has quit [Ping timeout: 245 seconds]
tenderlove has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
Johz has quit [Ping timeout: 240 seconds]
jstorime_ has quit [Ping timeout: 276 seconds]
mreq has quit [Read error: Operation timed out]
maxmanders has quit [Quit: Computer has gone to sleep.]
axsuul has joined #ruby-lang
retro|cz has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
gja has quit [Quit: This computer has gone to sleep]
cored has quit [Ping timeout: 240 seconds]
cored has joined #ruby-lang
bgant has quit [Quit: Leaving.]
thepumpkin has quit [Remote host closed the connection]
mbj has joined #ruby-lang
<yorickpeterse>
whitequark: man installing ocaml packages takes forever
<Sammidysam>
yorickpeterse: can you still help or is my issue too complicated/I'm not smart enough with ruby?
<yorickpeterse>
eh oh, I was (still am) cooking dinner
<yorickpeterse>
eh lets see
<yorickpeterse>
well, for one content_tag already can be nested by just nesting the calls
<yorickpeterse>
so if you want a nested drop_down just make it recursively
havenwood has quit [Remote host closed the connection]
<Sammidysam>
yorickpeterse: Hmm. Is it possible with Ruby to get the name of the block the method call is inside by any chance?
glebm has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
philnyc has quit [Ping timeout: 246 seconds]
<yorickpeterse>
Sammidysam: Not unless you call `__method__` in the block itself
zmike123 has quit [Read error: Operation timed out]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<Sammidysam>
Darn.
x0f has joined #ruby-lang
<Sammidysam>
Oh, I think I just figured something out. :D
<yorickpeterse>
judofyr: Hm, don't think I've seen her name very often. Then again I don't pay that much attention to MRI commits
<judofyr>
I think she was the 1.9 release/branch manager
<judofyr>
or, at least 1.9.1 and 1.9.2
<yorickpeterse>
Ah
elia has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
<yorickpeterse>
man, so many people I'd like to meet but they all live everywhere except for fucking NL
<Sammidysam>
yorickpeterse: Is it possible to get a portion of the &block inputted to a method?
x0f has quit [Ping timeout: 246 seconds]
<Sammidysam>
For example a method calls content_tag :ul, :class => "dropdown-menu", &block but I'd like to do all the block but the block where there's an inner dropdown.
x0f has joined #ruby-lang
havenwood has joined #ruby-lang
torrieri has joined #ruby-lang
brianpWins has joined #ruby-lang
<yorickpeterse>
Sammidysam: No, you can either call a block or not, you can't do it partially
mistym has joined #ruby-lang
x0f has quit [Ping timeout: 256 seconds]
hhatch has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
<Sammidysam>
yorickpeterse: Alright, a shame. Thanks for all the help. I doubt that I'll be able to do this but I got close and thanks for getting me there.
x0f has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
anonymuse has joined #ruby-lang
anonymuse has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby-lang
anonymuse has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
CaptainJet has joined #ruby-lang
<yorickpeterse>
np
x0f has quit [Read error: Operation timed out]
x0f has joined #ruby-lang
<yorickpeterse>
Somebody invent me a cat meow translator so I can understand what the hell my cat is yapping at me
<Sammidysam>
yorickpeterse: I thought of a different method for this actually. I get the normal result of the nav_bar code then manipulate the result.
brianpWins has joined #ruby-lang
<Sammidysam>
yorickpeterse: You know, this might actually work.
scholar01 has joined #ruby-lang
scholar01 has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
<yorickpeterse>
whitequark: heh, so this guide you linked uses utop. Holy shit that's slow.
<yorickpeterse>
like, `5 + 5` can easily take ages on it while it's pretty fast when just using the standard ocaml shell
<andrewvos>
What's the name of that cool site that builds crontabs for you?
x0f has quit [Ping timeout: 248 seconds]
relix has joined #ruby-lang
relix has quit [Max SendQ exceeded]
x0f has joined #ruby-lang
relix has joined #ruby-lang
<whitequark>
andrewvos: man crontab ?
<andrewvos>
whitequark: But then I have to think :(
wmoxam has quit [Ping timeout: 252 seconds]
CaptainJet has quit []
<drbrain>
man 5 crontab
<drbrain>
↑ is lets you avoid thinking about man sections :D
<andrewvos>
hehe thanks
<andrewvos>
That's a bit better
relix has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
<andrewvos>
Stupid irssi won't log so I can't test if I've setup loggin properly
vlad_starkov has quit [Remote host closed the connection]
joevandyk has joined #ruby-lang
maxmanders has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
saarinen has joined #ruby-lang
forrest has quit [Quit: Leaving]
maxmanders has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
joeroot has quit [Quit: Leaving...]
<andrewvos>
Does rsync treat log files differently?
<andrewvos>
It's really fast syncing a 20mb ile
<andrewvos>
file*
joeroot has joined #ruby-lang
thebobalu has joined #ruby-lang
<GarethAdams>
andrewvos: what do you mean by log file? I mean, I don't know enough to have an actual answer, but I'm interested what could be special about a file to make it a log file
joeroot has quit [Ping timeout: 248 seconds]
<andrewvos>
GarethAdams: Pretty sure they're mostly text files
<zzak>
andrewvos: whenever gem is helpful
<zzak>
also irssi should log immediately
thepumpk_ has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
flip_digits has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 248 seconds]
<andrewvos>
zzak: Yeah it does I was just looking at the wrong log file.
<andrewvos>
zzak: ahh yes whenever for cron, nice!