reinaldob has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
crack_user has joined #ruby
reinaldob has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
woodruffw has quit [Remote host closed the connection]
reinaldob has joined #ruby
Shidash_ has quit [Ping timeout: 265 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
woodruffw has joined #ruby
<bootstrappm>
sorry saadq. If you have a .bash_history, .zhistory or .zsh_history in your home folder put those in a gist and send them our way
reinaldob has joined #ruby
einarj has joined #ruby
reinaldob has quit [Remote host closed the connection]
ismaelga has joined #ruby
<Aeyrix>
OS X user here
<Aeyrix>
what's the problem?
<shevy>
OSX
<havenwood>
shevy: :P
<Aeyrix>
bootstrappm saadq
<Aeyrix>
shevy: WOW SHOTS FIRED
<shevy>
havenwood it was too good to refuse!
<havenwood>
saadq: What are you trying to do at this point?
baweaver has quit [Remote host closed the connection]
<mwlang>
uhhh… saadq’s shell is .zsh…it’s in the title of the window of the screenshot he posted.
<Aeyrix>
shevy: That was actually pretty good tbh.
<saadq>
Aeyrix: I kind of messed up my terminal when I was trying to install Ruby/Rails not exactly sure what I did
<shevy>
well I can't throw the first stone
reinaldob has joined #ruby
<Aeyrix>
saadq: Can you relink that image?
<shevy>
I just came back to IRC... while I am waiting to compile gtk2 ... on linux ... and then I will compile more ... :(
reinaldob has quit [Remote host closed the connection]
<Aeyrix>
I come and go a lot so I miss things.
<havenwood>
bootstrappm: if you opt for zsh i'd skip oh-my-zsh and choose the settings that suit you with the configuration utility: autoload -U zsh-newuser-install && zsh-newuser-install -f
bb010g has quit [Quit: Connection closed for inactivity]
<bootstrappm>
I know I already made this joke once today but ... just reformat the drive saadq, its a lost cause
<saadq>
haha im actually considering that considering idk what else I may have screwed up
einarj has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Leaving]
charliesome has joined #ruby
<bootstrappm>
I'm so hungry. I order a piece of bread w marinara and an egg on it like an hour ago from the place next door. This must be making this shit super gourmet -_-
<bootstrappm>
ordered*
<Aeyrix>
saadq: Just use stock Terminal. :P
kenneth has joined #ruby
kinduff has joined #ruby
<demophoon>
stock terminal is terrible
<Aeyrix>
Stock terminal is more than adequate.
charliesome has quit [Read error: Connection reset by peer]
<Aeyrix>
What on earth are you doing that requires a custom terminal?
<bootstrappm>
also saadq i still recommend gist'ing your bash and zsh history and sending it over. The commands you ran to get what you got will disappear after a while as you type more commands
<bootstrappm>
iterm2 is magnificent
snockerton has quit [Quit: Leaving.]
<bootstrappm>
i would never use stock when i could use that thing
<Aeyrix>
*shrugs*
<Aeyrix>
idk what you guys are doing but I've never ran into a situation where I've thought
<bootstrappm>
i miss it, spilled a glass of water on my Air about a yr and a half ago
<Aeyrix>
"knobgobbling fuckmints I hate this stock terminal"
<havenwood>
@Radar: trolls just register, easy enough
wildroman2 has quit [Read error: Connection reset by peer]
cubesandcode has joined #ruby
shortdudey123 has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
cubesandcode has left #ruby [#ruby]
wildroman2 has joined #ruby
<Radar>
havenwood: It's a barrier to entry for trolls
reinaldob has joined #ruby
<havenwood>
they don't seem very effective, i wonder why they bother?
reinaldob has quit [Remote host closed the connection]
<havenwood>
like two people who are just very persistent?
<Aeyrix>
Just +b anyone who joins and immediately types in caps.
<Aeyrix>
+b, not kickban.
<Aeyrix>
idk if ircd-seven supports the quieting mode.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<baweaver>
Radar: did any of the bots have banhammer abilities?
<Radar>
ChiggerZ: Going to be a productive member of this channel?
<Aeyrix>
ruboto
<Radar>
!kick baweaver
baweaver was kicked from #ruby by ruboto [baweaver]
cubesandcode has joined #ruby
elfuego has left #ruby [#ruby]
baweaver has joined #ruby
reinaldob has joined #ruby
<Radar>
sevenseacat: ^
reinaldob has quit [Remote host closed the connection]
<Aeyrix>
Does that respond to any general user commands?
<baweaver>
Well that was a succinct way to put it
<sevenseacat>
haha
<havenwood>
baweaver: hehe
<Radar>
I *think* !ban works too but I don't want to try it
<baweaver>
Walked into that one
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Radar>
!quiet Radar
<Aeyrix>
@ me
<havenwood>
Radar: !mute
<Radar>
!mute Radar
<cubesandcode>
question for iterm users: is there a way to make command + k just do a full screen on terminal, but not make it go into the presentation mode thing
reinaldob has joined #ruby
SuperTaz_ has quit [Read error: Connection reset by peer]
<Aeyrix>
Someone may need to, you know, unmute him.
reinaldob has quit [Remote host closed the connection]
<Aeyrix>
Or you could do that. :v
* baweaver
is withholding comments on that
<Radar>
cubesandcode: Command+K clears the console?
<cubesandcode>
Sorry, I meant Command+Enter
<baweaver>
Ctrl+L does
reinaldob has joined #ruby
<Radar>
cubesandcode: Remap it in the Keys menu.
reinaldob has quit [Remote host closed the connection]
SuperTaz_ has joined #ruby
<ChiggerZ>
user Radar is doing illegal activities like doxing and making threats be careful everyone i am going to be reporting his username to the proper authorities
reinaldob has quit [Remote host closed the connection]
<firevolt>
What are the "proper authorities"? That threat makes it sound like one might call the "improper authorities", but you've really rustled their jimmies, and this time, it's proper.
<Aeyrix>
"911 what is your emergency?"
reinaldob has joined #ruby
<Aeyrix>
"SOMEONE IS BEING ILLEGAL ON THE INTERNET"
reinaldob has quit [Remote host closed the connection]
<pontiki>
Please state the nature of the medical emergency
<firevolt>
SEVERE RUSTLING OF MAH JIMMIES!!!
<havenwood>
pontiki: :)
<Aeyrix>
"Transferring you to the Internet Police right away."
<baweaver>
0118 999 881 999 119 7253
* pontiki
curtsies
bruno- has joined #ruby
<pontiki>
well played, baweaver
* baweaver
bows
reinaldob has joined #ruby
<Aeyrix>
I think the problem is that Radar might be using a computer without his
reinaldob has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
SuperTaz_ has joined #ruby
<Aeyrix>
International Computer Driving Licence
SuperTaz_ has quit [Read error: Connection reset by peer]
<sevenseacat>
is that like a pen license, but for computers?
<xxneolithicxx>
i know, i get the same error with the default one in 12.04
<xxneolithicxx>
i had installed that one because 1.8.7 wouldnt compile without it
<pontiki>
baweaver: actually, that is quite impressive
<Radar>
bbl, have to do some work :)
<baweaver>
That and V's speech
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
* sevenseacat
is trying to do some work
<baweaver>
No idea why, I just liked it
SuperTaz_ has joined #ruby
<baweaver>
sevenseacat is failing
SuperTaz_ has quit [Read error: Connection reset by peer]
<firevolt>
"Additionally, there was an Advanced version that was divided into four modules. These are:
<firevolt>
Advanced Word Processing" Hold up, they can certify you in WordART?
<sevenseacat>
pretty much
reinaldo_ has joined #ruby
laurentide_ has joined #ruby
reinaldo_ has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 276 seconds]
<havenwood>
xxneolithicxx: not sure why it's using it though, since ruby-build ships its own openssl alongside each Ruby instead of using the package managers.
reinaldob has joined #ruby
bluOxigen has joined #ruby
reinaldob has quit [Remote host closed the connection]
<xxneolithicxx>
havenwood: :-/ i dunno, the GH issues page for 1.8.7 outlined that as the solution because it didnt support the newer openssl on Ubuntu
SuperTaz_ has joined #ruby
jottr_ has joined #ruby
<havenwood>
xxneolithicxx: One option is to just use ruby-install and put it where rbenv expects it: ruby-install --install-dir ~/.rbenv/versions/1.9.3 ruby 1.9.3
SuperTaz_ has quit [Read error: Connection reset by peer]
<havenwood>
xxneolithicxx: Yeah, but 1.9.3 doesn't support the older.
reinaldob has joined #ruby
<xxneolithicxx>
havenwood: i didnt use that for the other installs, i was just trying it on this one to see if that was the problem
reinaldob has quit [Remote host closed the connection]
commondream has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
<havenwood>
xxneolithicxx: Consider using the Brightbox packages instead of compiling these yourself?
reinaldob has quit [Remote host closed the connection]
<cubesandcode>
havenwood: Alright thanks, I guess I'll just use one of these window managing programs
rahult_ is now known as rahult
rahult is now known as rahult_
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
SuperTaz_ has joined #ruby
<xxneolithicxx>
havenwood: hmm, so even when i tell it to use /usr/bin to get the system openssl it ignores it and goes straight for /usr/local/bin
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood>
xxneolithicxx: ruby-build does?
<xxneolithicxx>
havenwood: ive install a couple other versions without extra flags and they worked fine with the system openssl does
SuperTaz_ has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<xxneolithicxx>
havenwood: the make compile that ruby-build is triggering yea
<havenwood>
xxneolithicxx: ruby-build generally doesn't use system openssl, like ruby-install would. They ship openssl on a per-ruby basis.
<havenwood>
They don't use the package manager to install openssl.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
zzing has joined #ruby
SuperTaz_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
commondream has quit [Remote host closed the connection]
wallerdev has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
commondream has joined #ruby
reinaldob has joined #ruby
<havenwood>
xxneolithicxx: If you want to just install it for rbenv with ruby-install that should work fine, instead of using ruby-build. Ah, it appears ruby-build is only shipping their hard coded openssls with 2.0+.
reinaldob has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<Nilium>
Could just build Ruby from source manually. It's really simple.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
<pontiki>
idunno, flipping all the bits can be pretty tedious
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Cuupa has left #ruby [#ruby]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood>
Nilium: Sure, especially if you do it often and know your distro. Folk reasonably often don't know the deps for their distro and end up having to rebuild when they miss deps, when ruby-install will just install the proper dependencies and build with the same flexibility but more convenience.
<havenwood>
Nilium: Or yeah, look up the deps then build. :)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Nilium>
That's true. I totally forgot that I perpetually have everything I need installed.
<Nilium>
Which is sort of annoying to do.
<Nilium>
Though ./configure will usually tell you what's missing.
budak-baik has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
shock_one has joined #ruby
wildroman2 has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Cache_Money has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
shock_one has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<xxneolithicxx>
havenwood: what a waste of a few hrs. i figured out the problem
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood>
xxneolithicxx: what was it?
That1Guy has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<xxneolithicxx>
havenwood: so basically because i custom compiled 0.9.8 into /usr/local for installing 1.8.6 or 1.8.7 every version after that looked there to because of my PATH even though i specified /usr/bin in compile opts
<havenwood>
xxneolithicxx: ah
reinaldob has joined #ruby
juanpaucar has joined #ruby
reinaldob has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 250 seconds]
<xxneolithicxx>
havenwood: after uninstall the old one from /usr/local and retrying 2.x it installed fine, now im going to go back and do 1.9.3, so ill probably have to install 1.8.x last
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tubuliferous has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
gigetoo has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
reinaldob has quit [Remote host closed the connection]
oo_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
* xxneolithicxx
havenwood is a good rubber ducky :-)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
commondream has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<baweaver>
I tend to skip to Scala or Elixir when I need parallelization.
woodruffw has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 272 seconds]
<Aeyrix>
Go.
<baweaver>
Something about Haskell incites feral rage in some people that makes me fear for my life in recommending it again
<Aeyrix>
That's because it's gross.
<al2o3-cr>
baweaver: hehe
RegulationD has joined #ruby
* baweaver
likes Haskell
<Aeyrix>
You know how there was a period of time where only hipster designer fucks had macbooks?
<Aeyrix>
Haskell is like that for the programming language world, but worse.
reinaldo_ has joined #ruby
khebbie has quit [Ping timeout: 245 seconds]
<Aeyrix>
Haskell programmers act like GPL proponents.
reinaldo_ has quit [Remote host closed the connection]
<al2o3-cr>
you ever try to configure xmonad i'll come for advice
<Aeyrix>
Okay that was low, they're not *quite* as bad as GPL proponents.
<baweaver>
You do know Haskell is as old as Java right
<Aeyrix>
Yes.
<Aeyrix>
~~FUNCTIONAL PROGRAMMING~~
<baweaver>
older by 5 years, huh
<baweaver>
go figure
tautvydas has joined #ruby
d3m0n has joined #ruby
<baweaver>
I work with Big Data enough that I natively think in functional paradigms
<al2o3-cr>
why can't ruby be as fast as lua
<Aeyrix>
>I work with Big Data
<Aeyrix>
[ shuddering intensifies ]
<Aeyrix>
[ buzzwords intensify ]
<SpicyMagpie>
nobody can behave like GPL proponents. Arrogance is measured in nanostallmans.
awwaiid has joined #ruby
<Aeyrix>
LOL
<baweaver>
You do know when I say Big Data I do mean it.
<Aeyrix>
Do you work for Amazon?
<baweaver>
No
<Aeyrix>
Facebook?
<baweaver>
No, but getting warmer
<Aeyrix>
Any search engine, including Shodan?
<Aeyrix>
By search engine I mean the company behind it.
* baweaver
sighs
RegulationD has quit [Ping timeout: 272 seconds]
<al2o3-cr>
Serious question. Who uses Ruby besides Rails?
wallerdev has quit [Quit: wallerdev]
<SpicyMagpie>
me
<baweaver>
I can play 20 questions, or just answer it
<baweaver>
Sony, PS4 team.
<Aeyrix>
baweaver: 20Q yo.
<Aeyrix>
You fucking lamer.
<Aeyrix>
Sony was my next guess.
<al2o3-cr>
spicymagpie: what for?
<Aeyrix>
>sony
<Aeyrix>
>big data
<Aeyrix>
>ps4
<Aeyrix>
...?
<ebonics>
were you on the ps3 team baweaver
<baweaver>
al2o3-cr: Me
<havenwood>
al2o3-cr: i dooo
<baweaver>
Nope, later comer
<ebonics>
ah
<SpicyMagpie>
al2o3-cr: many things, actually. It is as powerful as Perl without having to mess up with $ and all those things, so I have many scripts to parse information.
<baweaver>
Joined this last year in August
<ebonics>
was gonna say nice job getting hacked :D
<Aeyrix>
baweaver: How does your position gel with the actual definition of 'big data'.
* baweaver
likes to pretend SPE doesn't exist
<Aeyrix>
Given that it's as horribly buzzwordy as 'cloud'
<SpicyMagpie>
use Capistrano and mina to help me publishing PHP sites, provision servers, etc.
wallerdev has joined #ruby
* baweaver
also uses cloud
woodruffw has joined #ruby
* Aeyrix
screams internally.
<xxneolithicxx>
how would i configure a .gemrc to use only http for gems or explicitly set the source URL to http
<baweaver>
To the magnitude of well over 5000 AWS servers
* SpicyMagpie
goes for the popcorn again.
<Aeyrix>
That's
<Aeyrix>
not big data
<Aeyrix>
really
<Aeyrix>
well maybe to Sony lel
<ebonics>
my dick is bigger than yours
<Aeyrix>
I know. :(
* baweaver
wanders off
<ebonics>
just so were on the same page
<ebonics>
:)
<Aeyrix>
I always knew.
chrisseaton has quit []
<Aeyrix>
This just in: Buzzwords are lame.
<al2o3-cr>
havenwood: baweaver what for?
<SpicyMagpie>
xxneolithicxx: gem sources -l lists the source; gem sources -a adds an URL and gem sources -r removes it.
chrisseaton has joined #ruby
ARYAN1488 has joined #ruby
<Aeyrix>
"Big data", "digital", all that just make your company look stupid imo.
<ARYAN1488>
88 brothers!
riotjones has joined #ruby
<ebonics>
i don't think so
<xxneolithicxx>
is that going to explicitly go in .gemrc
<xxneolithicxx>
i need it in .gemrc for an rbenv issue
<SpicyMagpie>
those are commands.
<baweaver>
al2o3-cr: Older job, automating a network of Wireless antennas and tooling around them
<ebonics>
how else would you describe "cloud" or "big data" in 1 or 2 words that's more semantic than those words
<xxneolithicxx>
spicymagpie: i grepped that ;-)
<al2o3-cr>
baweaver: ah cool :)
<Aeyrix>
ebonics: Cloud: Scalable (virtual, sometimes) server farm.
<Aeyrix>
ebonics: Big Data: "millions of <x> per hour"
<ebonics>
cloud means exactly that, no?
<Aeyrix>
Cloud doesn't mean shit.
<SpicyMagpie>
al2o3-cr: if you want to have an idea, there is a book called "Ruby for System Administration".
Joufflu has quit [Read error: Connection reset by peer]
<ebonics>
it does though
<al2o3-cr>
thing with ruby with me, it just intrigues me
<ARYAN1488>
anyone interested in doing a rails app for the aryan nation?
<havenwood>
!mute ARYAN1488
<Aeyrix>
LOL
Cache_Money has quit [Remote host closed the connection]
<Aeyrix>
ebonics: Cloud is so arbitrary, it doesn't have a hard definition at all. I just kind of made that up and that's *my own* definition of it.
<Aeyrix>
You'll never find "Cloud_(Computing)" on Wikipedia with a definition.
Cache_Money has joined #ruby
<Aeyrix>
Just fluffy balderdash about what it 'kind of' means and what paradigms it pertains to.
<SpicyMagpie>
clouds aren't arbitrary, actually. It will rain tomorrow, I see some clouds coming.
<ebonics>
i'm just saying it's a succinct way to convey a meaning. everyone understands what you mean when you say cloud
<Aeyrix>
baweaver: >with a definition
psy_ has joined #ruby
<Aeyrix>
"Cloud computing allows application software to be operated using internet-enabled devices."
<Aeyrix>
... no, that's what remote procedure calls do.
<Aeyrix>
That's not what cloud computing does.
<Aeyrix>
ebonics: Do they, though?
<Aeyrix>
Does my definition of cloud match up to yours?
<ebonics>
pretty much yeah
<Aeyrix>
My definition of big data clearly doesn't match up to baweaver's because they got offended.
* baweaver
feels this is getting ridiculously pedantic
<Aeyrix>
baweaver: The terms don't have a hard definition. It's idiotic.
<ebonics>
there's a line between being accurate and being pedantic
<baweaver>
one that was crossed a while ago
<Aeyrix>
And you can't be accurate with a term with as little boundary as 'cloud'.
<ebonics>
i think this falls into the realm of pedantic but i'm not 100% sure why you have your view
<al2o3-cr>
havenwood: what did/do use it for?
<sevenseacat>
Aeyrix: you remind me of pipework.
<Aeyrix>
Some people define cloud computing as two vps'
<Aeyrix>
or something
<SpicyMagpie>
I do cloud computing.
djbkd has joined #ruby
<Aeyrix>
or even one digitalocean
<Aeyrix>
because, hey, it scales
icebourg has quit []
<Aeyrix>
some people define it as an AWS farm spanning a couple hundred instances or above
<baweaver>
well, honestly more of posturing at this point.
<Aeyrix>
sevenseacat: ok
<ebonics>
Aeyrix, just for argument's sake can you give me an example or two how the word cloud could be misconstrued
<ebonics>
in a real world scenario
<Aeyrix>
ebonics: I kind of
<Aeyrix>
mentioned that above.
<SpicyMagpie>
cloud computing means network computing. it's the term used by publicists to promote something old and making it new.
ARYAN1488 has left #ruby [#ruby]
<ebonics>
i mean in actual language
<ebonics>
not you saying that cloud means two vps' or something
<Aeyrix>
That wasn't me.
<Ropeney>
spicymagpie: do you think "Ruby for System Administration" is still relevant how long ago it was published?
<Aeyrix>
That was someone else in the RamNode IRC channel.
<SpicyMagpie>
Ropeney: I should've mentioned that it gives you an example of what you can do with Ruby besides Rails.
<ebonics>
i think that it's hard to find a clear example of it being misconstrued to the point where it actually affects anything
<Ropeney>
spicymagpie: Oh i ask because it came up on my list to buy but i didnt know if it was too dated
<ebonics>
being hyper accurate has no benefit over calling it cloud
<Aeyrix>
ebonics: I disagree.
<Aeyrix>
Context: I work in security, as a consultant. Sometimes (pretty much daily), clients will call and ask us to conduct a penetration test.
<SpicyMagpie>
Ropeney: it's still worth reading, it has interesting examples of real-life PITA's resolved with Ruby.
<ebonics>
so do i actually
<ebonics>
that's literally what i do
<Aeyrix>
Now, if it's of something *in the cloud*, that means we generally have to get permission from the service provider.
iliketurtles has joined #ruby
<ebonics>
for what?
<Aeyrix>
... for the penetration testing?
<Aeyrix>
What you just randomly hit other people's boxes when someone who claims they own the content on it asks you to?
<ebonics>
pretty much yeah
<Aeyrix>
Oh dear.
<ebonics>
who would hire a sec agency to do that
<SpicyMagpie>
what's the difference with what Kevin Mitnick does now? He asks for permission to the network administrators before performing security tests.
<ebonics>
and "hit"?
<Aeyrix>
ebonics: I've done stress testing for clients before.
<Aeyrix>
Anyway, my work still mandates that permission is obtained by the client from the service provider for us to conduct an assessment on their infrastructure.
<Aeyrix>
You can see where I'm going with this, surely.
rippa has joined #ruby
<Aeyrix>
And it has happened.
<al2o3-cr>
spicymagpie: people get there buzzez out of life
<Aeyrix>
spicymagpie: More or less yeah.
<Aeyrix>
That and he hosts a marketplace for exploits.
<al2o3-cr>
it's an addiction
<Aeyrix>
Mhm.
hanmac1 has joined #ruby
<al2o3-cr>
like some people get there buzzes out of life gambling, drugs, drinking whatever it may be
sandelius has joined #ruby
Channel6 has quit [Quit: Leaving]
<Aeyrix>
ebonics: I've seen people get confused as to whether they need permission because they're not sure if their 'cloud' is on site or off site.
<al2o3-cr>
he's got an understanding many people can't comprehend
<Aeyrix>
I've seen people claim to be into big data when all they have is Hadoop on a laptop.
<Aeyrix>
You can see why this irritates me, surely?
jottr_ has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
* al2o3-cr
stop babbling
<Aeyrix>
al2o3-cr: You're right though.
<ebonics>
Aeyrix, most sec that i do is all static analysis. the actual pentesting is just a few scans with tools to cover the bases
<Aeyrix>
ebonics: Malware?
<Aeyrix>
I ask out of curiosity.
Lucky__ has joined #ruby
<al2o3-cr>
Aeyrix: knowledge is power
<Aeyrix>
It's an area I don't do much in, and wish I could do more.
cedge has joined #ruby
duncannz has joined #ruby
cedge has left #ruby [#ruby]
<ebonics>
Aeyrix, yeah mostly finding/removing shells, fixing the common header attacks, sql injections, xss, xsrf etc.
<al2o3-cr>
if you don't perseverse you go no where
<ebonics>
Aeyrix, most exploits that ive removed would not be visible from a simple pentest
ahmetkapikiran has joined #ruby
<ebonics>
Aeyrix, what tools do you use generally?
<SpicyMagpie>
exploits and scans. what tools do you use? any open source suggestion to do it by myself on a few sites?
<al2o3-cr>
if you can understand from a packet level your laughing
<ebonics>
cxs is basically the best piece of software every for detecting shells and malware
<zenspider>
their / nowhere / you're
<ebonics>
also good for blocking malware from entering the network ie. email and uploads
<zenspider>
grammar is power
<ebonics>
it's non-free though
iamjarvo has joined #ruby
<al2o3-cr>
zenspider: nevr waz mi strongg pont
bruno- has joined #ruby
<ebonics>
for pentesting i use w3af a lot
<zenspider>
anyone have a good understanding of bison vs byacc?
<SpicyMagpie>
is there something free to test rails apps?
<SpicyMagpie>
open source**
<ebonics>
mostly anything you'd find on kali i have used before with varying success
<sevenseacat>
brakeman ?
<baweaver>
spicymagpie: brake....
<baweaver>
dangit
<baweaver>
ninja'd
<sevenseacat>
winner
<cubesandcode>
hey guys do you have any recommendations for learning vanilla Ruby? I don't want to start learning Rails until I get a good grasp of Ruby first
<Aeyrix>
ebonics: I dont' do simple.
<Aeyrix>
We do very in-depth stuff, specifically for that reason.
<zenspider>
they're coming out with brakeman pro... I want a cut of every dime they haven't made yet
<ebonics>
Aeyrix, but do you do blackbox testing only?
<Aeyrix>
No.
diegoaguilar has joined #ruby
<baweaver>
zenspider: heavy contributor to the original?
<ebonics>
ok so you do everything
<Aeyrix>
We do black/white/"gray".
<Aeyrix>
Yes.
diegoaguilar has quit [Read error: Connection reset by peer]
<zenspider>
baweaver: based on my stuff, but I haven't written a lick of code directly for brakeman, no.
<ebonics>
what tools do you use for pentesting
<zenspider>
STILL
<ebonics>
what's your like go-to tool?
<Aeyrix>
I don't have one.
<baweaver>
Principle of the matter
<baweaver>
gotcha
<Aeyrix>
Right tool for the right job dawg.
<zenspider>
baweaver: eeeexactly
casadei has joined #ruby
<al2o3-cr>
shit i remember when metasploit was written in perl # zenspider please correct the spelling ;p
<ebonics>
sure, i mean if there's dav then..
<ebonics>
i mean in general
io_syl has quit []
cht has joined #ruby
<Aeyrix>
My favourite tool is probably some of the stuff I've developed internally for web app pentesting.
sigurding has joined #ruby
<baweaver>
cubesandcode: Get friendly with the Enumerable docs
<al2o3-cr>
maybe a comma ?
<Aeyrix>
I really dislike Burp which is kind of everyone's go-to for reconnaisance.
<ebonics>
why do you dislike it
<SpicyMagpie>
I'm an idiot, was looking for "dangit".
<Aeyrix>
Have you ever tried writing a plugin for Burp?
<Aeyrix>
If you haven't: Don't.
<Aeyrix>
Just don't.
<ebonics>
i haven't
<cubesandcode>
baweaver: ill look into it thanks
<Aeyrix>
Good.
<zenspider>
cubesandcode: yup. Enumerable. Array, Hash, String... loooots of stuff in those 4
<baweaver>
I'm almost tempted to start recommending sets
bruno- has quit [Ping timeout: 245 seconds]
<Aeyrix>
ebonics: What about you for analysis?
<baweaver>
It's my new cheeky goto for get unique items in an array without uniq
<cubesandcode>
I'm familiar with most of those from programming in other languages, do they differ in Ruby?
sent1nel has quit [Remote host closed the connection]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HotCoder has joined #ruby
<baweaver>
cubesandcode: Enumerable is where a lot of the power is, the others explain how Ruby works with those classes
<ebonics>
Aeyrix, i use w3af a lot, and some header fuzzing scripts i wrote myself. other than that it kinda depends as you said
<baweaver>
The three big ones there are map, reduce, and select
<ebonics>
i didnt read the license very well, butats interesting though Aeyrix
<ebonics>
i just saw commercial license and was like well shit
User458764 has joined #ruby
<ebonics>
i dont mind commercial if they tell you a price
<Aeyrix>
Nah that's only for people who want to package it and sell it (and specifically it) as a service.
<ebonics>
yeah i mean i actually do do that
<ebonics>
but i can use w3af for that
<Aeyrix>
You literally sell "Arachni as a service"?
<Aeyrix>
Or, W3AF as a service.
<ebonics>
i literally sell w3af as a service yeah
<Aeyrix>
Do your clients press the 'go' button or do you?
<ebonics>
neither
<ebonics>
it's autopilot
SouL_|_ has quit [Ping timeout: 256 seconds]
<Aeyrix>
Oh.
<Aeyrix>
Damn. :\
Shidash has quit [Remote host closed the connection]
<Aeyrix>
It's like one guy heading it so I can't imagine the price will be that high for a commercial license.
<ebonics>
i did contact him about it
<ebonics>
he basically just said whats the scope of your project
<ebonics>
and i didnt respond cause it's like..
<ebonics>
why do you ask m8
<Aeyrix>
Technically, penetration testing.
<al2o3-cr>
gem install rex
freerobby has quit [Quit: Leaving.]
<Aeyrix>
Wrong tab. ;)
ARYAN1488 has joined #ruby
<al2o3-cr>
Aeyrix: for you
awwaiid has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
tagrudev has joined #ruby
scuey has joined #ruby
io_syl has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hectortrope has joined #ruby
wallerdev has quit [Quit: wallerdev]
rotcetorptekcop has joined #ruby
rotcetorptekcop has quit [Remote host closed the connection]
<al2o3-cr>
HD Moore computer genius :)
<al2o3-cr>
and I mean that
jenrzzz has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hectortrope>
Hi any one have idea about api's
<hectortrope>
?/
<Aeyrix>
hectortrope: ?
<Aeyrix>
That's a very, very vague question.
<Aeyrix>
Also
<Aeyrix>
?ask
<ruboto>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
rotcetorptekcop has joined #ruby
<Aeyrix>
What're you after, specifically?
<al2o3-cr>
Aeyrix: let ask then :)
rotcetorptekcop has quit [Remote host closed the connection]
<hectortrope>
Aeyrix: but this is ruby chaneel so I wamt to confirm can I ask
<al2o3-cr>
hectortrope: permission granted
<SpicyMagpie>
we're not php. just ask. :)
<Aeyrix>
hectortrope: If it's Rails APIs you're talking about then you may be better off in #RubyOnRails.
thatslifeson has quit []
Cache_Money has quit [Quit: Cache_Money]
zotherstupidguy has joined #ruby
<hectortrope>
I work on api management system caleed apigee ...to add backend service of yahoo weather api i use weather.yahooapis.com like thst if I want to add github stripe and any other apis what link should I provide
juanpaucar has joined #ruby
<hectortrope>
al2o3-cr:
chrissonar has joined #ruby
<al2o3-cr>
now i know what zenspider was on about
<Aeyrix>
?
<hectortrope>
this is very off topic question
<hectortrope>
can someon ehelp as there is no api channel
<Aeyrix>
hectortrope: I don't even know how to answer that.
<hectortrope>
Aeyrix: plz i know it might be very noobish
<hectortrope>
but plz help
<Aeyrix>
hectortrope: I guess the issue is that the Yahoo weather API, you can use without authentication.
<Aeyrix>
You don't have to log in to Yahoo weather.
<Aeyrix>
You do to Github, and Stripe.
<Aeyrix>
So the answer is "with difficulty, and probably not in a way you want to."
tubuliferous has joined #ruby
<hectortrope>
ok but how can i use those api's
<hectortrope>
like which link should I provide for backend
<Jays1>
Hey guys when I "> gem list" it shows nokogiri in the list but when I try to run GRUNT premailer, the error says its not installed. Has anyone had this problem before on winodows 8?
<zenspider>
I don't think the original rex was ever released as a gem, which is part of why tenderlove did rexical
<al2o3-cr>
zenspider: what the fuck you going on about?
<Aeyrix>
top lel
<zenspider>
I thought for a sec that you were installing a decrepit library and was going to warn you off... looks like it is now a security tool
<Aeyrix>
Jays1: `gem list -d`
<Aeyrix>
Paste to gist
<al2o3-cr>
zenspider: you're decrepid
<Aeyrix>
rekt
abuzze has quit [Ping timeout: 245 seconds]
<al2o3-cr>
don't take well to fucking idiots
<Aeyrix>
hey now
cjim_ has quit [Quit: (null)]
<sevenseacat>
al2o3-cr: watch it.
<Aeyrix>
zenspider's not an idiot :x
pabloh has joined #ruby
<Aeyrix>
And even if he were, calm it.
<al2o3-cr>
sevenseacat: security wanking ?
<havenwood>
al2o3-cr: Insults and ad hominem attacks aren't welcome in this channel.
<sevenseacat>
al2o3-cr: no, you insulting people.
<zenspider>
al2o3-cr: excuse me? I was trying to help.
<al2o3-cr>
how?
gagrio has joined #ruby
<Aeyrix>
zzz
<Aeyrix>
Can we just stop
<Aeyrix>
please
<zenspider>
I've already explained. I don't need to comment further on it.
<al2o3-cr>
zenspider: ok
<Aeyrix>
al2o3-cr: zenspider doesn't like security folk
<sevenseacat>
yes, please. next insult will get a kick.
<al2o3-cr>
sevenseacat: my apologies
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alina-malina has joined #ruby
<pabloh>
anyone here with some understanding of encodings?
<sevenseacat>
s'ok
<zenspider>
pabloh: some. just ask.
<al2o3-cr>
zenspider: sorry, my mad took it the wrong way
<al2o3-cr>
*bad
<zenspider>
no worries
<Aeyrix>
tfw i'm still on /ignore
<xxneolithicxx>
man i missed all that confusing fun, i still dont understand what happened
<xxneolithicxx>
pabloh: whats your question on encoding?
<flughafen>
moioiioin
lotherk has quit [Quit: leaving]
<pabloh>
writing to an IO object with some encoding (like a file or IOString), will automaticaly convert your input strings to the right encoding if they are not the same?
ahmetkapikiran has quit [Quit: ahmetkapikiran]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abuzze has joined #ruby
lotherk has joined #ruby
lotherk has quit [Client Quit]
lotherk has joined #ruby
aeontech has quit [*.net *.split]
SuperTaz_ has quit [*.net *.split]
malcolmva has quit [*.net *.split]
babaganousha has quit [*.net *.split]
PierreRambaud has quit [*.net *.split]
surs has quit [*.net *.split]
kenndel has quit [*.net *.split]
TDJACR has quit [*.net *.split]
knikolov has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
systemd0wn_ has quit [*.net *.split]
Jamo has quit [*.net *.split]
ryotarai has quit [*.net *.split]
bhaak has quit [*.net *.split]
jblancett has quit [*.net *.split]
preller has quit [*.net *.split]
\13k has quit [*.net *.split]
eregon has quit [*.net *.split]
csaunders has quit [*.net *.split]
lsmola_ has quit [*.net *.split]
rikai has quit [*.net *.split]
nickjj has quit [*.net *.split]
freeze has quit [*.net *.split]
scottstamp has quit [*.net *.split]
Kharma has quit [*.net *.split]
mrsolow has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
drizz has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
parus has quit [*.net *.split]
oddmunds has quit [*.net *.split]
Kovensky has quit [*.net *.split]
scruple has quit [*.net *.split]
_5moufl has quit [*.net *.split]
Morrolan has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
parus has joined #ruby
bhaak has joined #ruby
Jamo has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
jblancett has joined #ruby
drizz has joined #ruby
<zenspider>
pabloh: no. if they're compatible (7 bit ascii writing to utf8) then it'll work, but it'll otherwise blow up on the first incompatible encoded char
systemd0wn has joined #ruby
queequeg1 has joined #ruby
freeze has joined #ruby
knikolov has joined #ruby
tautvydas has quit [Excess Flood]
\13k has joined #ruby
lsmola_ has joined #ruby
ryotarai has joined #ruby
csaunders has joined #ruby
kenndel has joined #ruby
Kovensky has joined #ruby
babaganousha has joined #ruby
SuperTaz_ has joined #ruby
nickjj has joined #ruby
surs has joined #ruby
_5moufl has joined #ruby
scottymeuk has joined #ruby
marcellus has joined #ruby
malcolmva has joined #ruby
Morrolan has joined #ruby
PierreRambaud has joined #ruby
roger_rabbit has joined #ruby
pocketprotector has joined #ruby
eregon has joined #ruby
rikai has joined #ruby
ahmetkapikiran has joined #ruby
pocketprotector has quit [Client Quit]
oddmunds has joined #ruby
pocketprotector has joined #ruby
Rollabunna has joined #ruby
abuzze_ has quit [Ping timeout: 276 seconds]
inspiron has joined #ruby
tautvydas has joined #ruby
<xxneolithicxx>
2.x has options for auto encode on out
<zenspider>
you can open up a stream and set it up to downgrade bad encoded chars to some blah value
Jays1 has quit []
<zenspider>
you don't want that because it is lossy
<zenspider>
it is a LOT easier to simply manage your encodings correctly
<zenspider>
what do you have going on?
<zenspider>
chances are, I've been bitten by it :)
ponga has joined #ruby
clauswitt has joined #ruby
fabrice31 has joined #ruby
abuzze has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Ping timeout: 245 seconds]
TDJACR has joined #ruby
konsolebox has quit [Ping timeout: 258 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
<pabloh>
basically I'm reading from an input that's Windows_1252 or UTF-8 encoded and I have to produce an output that's always Windows_1252 encoded
havenwood has quit []
<pabloh>
and a lot of transformation in beetween but that's encoding agnostic
<pabloh>
between*
iliketurtles has quit [Remote host closed the connection]
inspiron has quit [Quit: Leaving]
<zenspider>
do you know when the file is utf8 instead of 1252? or is it random?
wildroman2 has joined #ruby
haxrbyte has joined #ruby
Tamae has joined #ruby
al2o3-cr has quit [Ping timeout: 245 seconds]
<pabloh>
the input strings encoding is properly set, if that's what you asked
al2o3-cr has joined #ruby
abuzze_ has joined #ruby
<pabloh>
so yes, I know the encoding at runtime
wildroman2 has quit [Read error: No route to host]
ta has joined #ruby
<pabloh>
don't have to detect it or anything
duderonomy has joined #ruby
wildroman2 has joined #ruby
duderonomy has quit [Max SendQ exceeded]
<zenspider>
ok. then, if the encodings are compatible, you should be able to have it transliterate. you said you're doing munging in between... the source (internal) encoding ALSO needs to be compatible
<pabloh>
adaedra, you can start porting English to core... ;)
<adaedra>
I don't have problem with $/ to begin.
michael_mbp has joined #ruby
Kharma has joined #ruby
<pabloh>
that's a shame...
mrsolow has joined #ruby
xxtjaxx has quit [Ping timeout: 264 seconds]
* apeiros
dislikes non-speaking variable names
haxrbyte has quit [Ping timeout: 264 seconds]
Seich has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
abuzze has joined #ruby
mandarinkin has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
joelataylor has quit [Quit: Be back later ...]
gaboesquivel has joined #ruby
joelataylor has joined #ruby
niko has quit [Read error: Connection reset by peer]
niko has joined #ruby
scruple has joined #ruby
einarj has joined #ruby
Seich has joined #ruby
gaboesquivel has quit [Ping timeout: 250 seconds]
joelataylor has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
Schwarzbaer has joined #ruby
mengu has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
* ddfreyne
has joins/leaves/quits turned off. Makes IRC such a nicer experience.
<sevenseacat>
makes it an easier-to-read one, thats for sure.
bruno- has joined #ruby
<Darkwater>
if only I could condense joins and parts in irssi
livathinos has joined #ruby
<sevenseacat>
the only problem with hiding them is that I don't see kicks either, and sometimes when i press kick textual doesnt kick, so i need to go check the logs to make sure it worked
<ddfreyne>
I switched from irssi to weechat around two weeks ago. I set it up to only show joins/leaves/parts for people that have chatted recently.
robbyoconnor has quit [Read error: Connection reset by peer]
<sevenseacat>
#firstopproblems
cosmicexplorer has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sent1nel has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
dudedudeman has quit [Ping timeout: 240 seconds]
idafyaid has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
jottr_ has joined #ruby
sent1nel has quit [Ping timeout: 255 seconds]
ahmetkapikiran has joined #ruby
dudedudeman has joined #ruby
Stalkr_ has joined #ruby
arietis has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 276 seconds]
Pathfinder has joined #ruby
charliesome has joined #ruby
MatthewsFace has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
rahult_ has quit [Ping timeout: 272 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
Rollabunna has joined #ruby
ascarter_ has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
shuber_ has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<badlands>
ok, tried and still receiving errors, should rebuild ruby?
oo_ has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
dudedudeman has quit [Ping timeout: 240 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
yh__ has joined #ruby
tubuliferous has joined #ruby
<apeiros>
badlands: that's the next step I'd take, yes
<badlands>
great, thank you
<apeiros>
and after rebuilding ruby, I'd rebuild the gem again, as gems are built against the current ruby.
<apeiros>
make sure you're building the gem against/with the ruby you're using it with
Stalkr^ has joined #ruby
<apeiros>
rvm should actually ensure that. but maybe you borked your setup.
<badlands>
roger that. Appreciate your help
<apeiros>
yw. the error does look exotic to me though, and I'm not entirely sure about the solution.
platzhirsch has left #ruby [#ruby]
lkba has joined #ruby
<badlands>
yeah I've fluffed something along the way, I'm not sure when things went from working to not because I've been deploying straight to a staging server and it's environment seems fine
oo_ has joined #ruby
Stalkr_ has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
<badlands>
dang, still not working
wWw-BukoLay-Com has joined #ruby
<apeiros>
weird
<apeiros>
maybe that version of json gem does not work with that version of ruby
<apeiros>
do you need 1.8.2? if not, try upgrading.
<badlands>
hmm, 2.2.1 ruby and 1.8.7 json
<badlands>
sorry 1.8.2
<apeiros>
hm, though, I have ruby 2.2.2 and use json 1.8.2 too
c0m0 has joined #ruby
doertedev has joined #ruby
MasterPiece has joined #ruby
DerisiveLogic has quit [Ping timeout: 250 seconds]
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
allenn has joined #ruby
allenn has quit [Remote host closed the connection]
crack_user1 has quit [Quit: Leaving.]
rahult has joined #ruby
AlphaAtom has joined #ruby
eythoriu1 has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Quit: leaving]
zotherstupidguy has joined #ruby
<zotherstupidguy>
and now i am a weechat guy,
<adaedra>
Congrats!
<ddfreyne>
Wee!
<adaedra>
Now customize it.
<zotherstupidguy>
adaedra how?
<zotherstupidguy>
i see a right column of users but dont know wht to do it with it
<adaedra>
/plugin to install plugins
<zotherstupidguy>
ideas?
<adaedra>
the iset plugin is really good to change settings
lidenskap has joined #ruby
ndrei has joined #ruby
ankit has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
<Fluent>
You should upgrade your weechat version
<Fluent>
0.4.2 has vulns
tvw has quit []
<adaedra>
0.4.2?
<adaedra>
what are you using, debian?
cubesandcode has joined #ruby
<shevy>
he is using weechat adaedra
hectortrope has quit [Quit: WeeChat 0.4.2]
<adaedra>
>_>
lidenskap has quit [Ping timeout: 265 seconds]
hectortrope has joined #ruby
Stalkr^ is now known as Filuren
<zotherstupidguy>
adaedra yeah, the guys on the weechat channel said the same exact thing, debian vulrs :)
<zotherstupidguy>
i thought debian gets the stable nice boring version with no vulrs
<adaedra>
We're at 1.0+ now iirc
<Fluent>
It is
<Fluent>
1.2 I think
<adaedra>
pkg search weechat
quimrstorres has quit [Remote host closed the connection]
<Fluent>
Well 1.2 is the latest stable version
<adaedra>
oops, wrong window.
Filuren is now known as Stalkr_
<mduk>
has anyone here successfully created multipart userdata for EC2 instances with ruby? I just don't seem to be getting anywhere using the `mime` gem. The multipart entity created *seems* fine, but it just doesn't *do* anything. No errors, no success, no nothing. :( Anyone have any pointers?
<mduk>
(if i pass non-multipart userdata, that works just fine, so cloud-init is there and doing it's thing inside the instance)
<Fluent>
I would recommend you post some kind of code and maybe run it through a debugger like pry
Mezjin has joined #ruby
<shevy>
I don't know what the mime gem does
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
<mduk>
shevy: creates multipart mime entities :)
lkba_ has joined #ruby
<mduk>
Fluent: I have pry'd it left-right-and-centre, i can see nothing wrong. :(
_blizzy_ has joined #ruby
<mduk>
i was hoping to find a working example i could reference/mercilessly steal :P
<ponga>
shevy: ikuyo is declarative mood of iku(go)
<ponga>
so if you want to say something like 'lets go' in japanese you have to use mood grammar
<shevy>
hehe
<ponga>
actually you always have to use proper mood grammar all the time
<shevy>
I remember that asking a question was, to add a -ka
<shevy>
like tabemasu-ka
<ponga>
'ikuzo' is musculine declarative
<shevy>
"wanna eat"? or something like that
<ponga>
'ikuno' is feminine declarative AND interrogative
lordkryss has quit [Quit: Connection closed for inactivity]
einarj has quit [Ping timeout: 240 seconds]
<flughafen>
oh, and interrogative. how interesting
<ponga>
shevy: and 'ikuze' is juvenile decalarative
timonv has quit [Read error: Connection reset by peer]
<shevy>
flughafen yeah
ndrei has joined #ruby
<ponga>
there TONS of these tone grammar and you have to use them properly ALL THE TIME
<ponga>
it applies to japanese and korean
<shevy>
flughafen that is the part where you think you are speaking the language, but with a wrong intonation the others think you insult them :)
<shevy>
and draw their katana!
sgambino has joined #ruby
<ponga>
well this is one reason why i hate euro-based linguists
<shevy>
hehe
<ponga>
they have no idea outside their boundary
<shevy>
yeah
<shevy>
it's confusing to know so much!
<shevy>
and scary
einarj has joined #ruby
<ponga>
shevy: in terms of natural language processing, this mood syntax actually helps it
<ponga>
cos its more explicit to comprehend the context
gluten_hell_ has quit [Read error: Connection reset by peer]
dorei has joined #ruby
<dorei>
hello
abuzze has quit [Read error: Connection reset by peer]
<dorei>
is there a better way to write: ['1', '5'].map(&method(:Integer))
<dorei>
?
gluten_hell_ has joined #ruby
abuzze has joined #ruby
GaryOak_ has joined #ruby
<apeiros>
yes. map { |i| Integer(i) }
<ponga>
shevy: there are many forms of interrogative tone in japanese, 'ka' is general use , 'ne' is indicative but can be used as interrogative(question) of uncertainty
<apeiros>
but: taste
<ponga>
so if you say 'iku-yo-ne' go + declarative + interrogative + uncertainty. it means something like "you are going to go there right?"
xxtjaxx has joined #ruby
<ponga>
i find this friendlier to machine than English
<ponga>
in terms of NLP
Zamyatin has joined #ruby
Zamyatin has quit [Remote host closed the connection]
<ponga>
apeiros: i can dnftly help you learn Japanese ser!
<ponga>
im very skilled
<dorei>
ponga: shouldn't machine first deduct "you" ?
<apeiros>
nice. will try to remember. I probably won't start the next ~18 months.
<flughafen>
iiotenki desune
<flughafen>
wakka wakka
<ponga>
dorei: unlike English, japanese/korean do not require subject in sentence
<ponga>
that's very English oriented way of thinking
<dorei>
ponga: so, the machine doesnt require subject too?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deuterium has joined #ruby
TheNet has joined #ruby
<ponga>
well that's why English language has dummy subject too
charliesome has joined #ruby
<ponga>
i don't think machine would need something that humans don't
iasoon has quit [Ping timeout: 276 seconds]
<ponga>
i mean, "its raining" has nothing to do with 'it'
<dorei>
ponga: i think humans always 'deduct' context
<ponga>
its empty object
goodcodeguy has joined #ruby
charliesome has quit [Client Quit]
GaryOak_ has quit [Ping timeout: 265 seconds]
<ponga>
dorei: at the end of the day, deduction of context is very difficult not only subject
mengu has joined #ruby
<ponga>
it applies to every component
cajone has left #ruby [#ruby]
lechuk has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 272 seconds]
ismaelga has quit [Remote host closed the connection]
cubesandcode has quit [Remote host closed the connection]
<ponga>
dorei: and what i was suggesting is a mere opinion that japanese/korean mood grammar helps a lot in deduction of context
bronson has joined #ruby
cardoni has quit []
<ponga>
cos its explicit syntax role
beamed_down is now known as Beamed
cardoni has joined #ruby
einarj has joined #ruby
Schwarzbaer has left #ruby ["Leaving"]
Rapier- has joined #ruby
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
RegulationD has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
havenwood has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
zubov has joined #ruby
maksportnyagin has quit [Quit: maksportnyagin]
mary5030 has joined #ruby
timonv has joined #ruby
tubuliferous_ has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
hololeap has joined #ruby
slawrence00 has joined #ruby
segfalt has joined #ruby
<hololeap>
is there a "better" way to write this: hash.select {|k,v| array.include? k }
fmcgeough has joined #ruby
<shevy>
seems pretty short as is
JDiPierro has joined #ruby
<adaedra>
in active support there's slice
<adaedra>
hash.slice(*array)
<ponga>
seems pretty short
<hololeap>
adaedra: thanks. that's what i was looking for
<apeiros>
depending on the relative sizes, array.map { |k| [k, hash[k]] }.to_h may perform much better.
<apeiros>
@ hololeap
<apeiros>
hash.slice being the best option if available
downwithbender has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
hoov has quit [Ping timeout: 255 seconds]
commondream has joined #ruby
<apeiros>
(select + include is O(n*m), map+to_h is O(n), where n = array.size and m = hash.size)
ndrei has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
griffindy has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<hololeap>
apeiros: thanks. i will keep that in mind
jmignault has joined #ruby
bronson has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jhass>
hololeap: if you don't need the keys: hash.values_at(*array)
rahult has quit [Quit: Back to the world of zombies]
yh__ has joined #ruby
<hololeap>
jhass: i need to keep the keys since i am passing it as an option hash
<jhass>
was a 50/50 chance ;)
<hololeap>
:)
lapinferoce has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
mengu has quit [Ping timeout: 240 seconds]
<adaedra>
this is a nice channel.
endash has joined #ruby
<adaedra>
where asking a question may rice 5 valid answers in less than 5 minutes.
<adaedra>
"rice" >_>
<adaedra>
rise*
fabrice31 has joined #ruby
<shevy>
we have a lot of rice here in the channel
<shevy>
and baguette
<adaedra>
no
<adaedra>
I ate it.
bronson has quit [Ping timeout: 245 seconds]
<shevy>
you make me hungry
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ta has joined #ruby
<shevy>
adaedra do you eat italian-made pizza as well?
<adaedra>
It can happen, yes.
<shevy>
we have a lot of turkish pizza... pizza slices. they are not bad but not nearly as good as those made in big stone-ovens
fella5s has joined #ruby
banister has joined #ruby
<adaedra>
I don't know, I just remember chocolate from Austria.
enebo has joined #ruby
dblessing has joined #ruby
firevolt has quit []
dstarh has joined #ruby
firevolt has joined #ruby
<shevy>
hmm
<shevy>
we usually have the best chocolate imported from ... (a) switzerland and (b) belgium
quimrstorres has quit [Remote host closed the connection]
atox has quit [Remote host closed the connection]
<adaedra>
ok
airdisa has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
<ericwood>
hmmm I wonder if imagemagick can stack animated gifs
shazaum has joined #ruby
<hololeap>
what is the best IDE for ruby/rails projects? i've been using eclipse with the aptana and dltk plugins, but they seem a bit out of date and don't recognize newer syntax
<ericwood>
hololeap: people seem to like rubymine, but you'll find *most* rails people prefer using a text editor + terminal
lapinferoce has left #ruby ["Leaving"]
<hololeap>
ericwood: sure. what text editor would you recommend in linux?
atox has joined #ruby
doodlehaus has joined #ruby
<ericwood>
hololeap: that's a very personal question! I personally like Vim, but I have coworkers who enjoy sublime text
TheNet has quit [Read error: Connection reset by peer]
abuzze_ has joined #ruby
<ericwood>
figured out how to layer animated gifs but it won't quantize them (aka have one repeat until they all finish)
hectortrope has quit [Quit: WeeChat 0.4.2]
<ericwood>
is there a channel for imagemagick stuff? :)
Vile` has quit [Ping timeout: 264 seconds]
tesuji_ has quit [Read error: Connection reset by peer]
fmcgeough_ has joined #ruby
fmcgeough has quit [Ping timeout: 244 seconds]
fmcgeough_ is now known as fmcgeough
<shevy>
when you guys want to store configuration in a yaml file... should this be "config.yml" or "configuration.yml"? (nevermind the extension, it could be .yaml too)
Vile` has joined #ruby
tesuji has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
tesuji has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 264 seconds]
mengu has quit [Read error: Connection reset by peer]
mengu__ has joined #ruby
dopie has joined #ruby
malcolmva has joined #ruby
gaboesquivel has joined #ruby
belak has joined #ruby
sandelius has joined #ruby
kobain has joined #ruby
Igorshp has joined #ruby
thatslifeson has joined #ruby
livathinos has joined #ruby
kobain has quit [Max SendQ exceeded]
thatslifeson has left #ruby [#ruby]
kobain has joined #ruby
werelivinginthef has joined #ruby
JDiPierro has quit [Remote host closed the connection]
zzak has quit []
zzak has joined #ruby
mengu__ has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Rapier- has quit [Remote host closed the connection]
Rapier- has joined #ruby
arup_r has quit [Remote host closed the connection]
<kq_away>
I want to iterate over each consecutie pair of items in my array
<kq_away>
how can I do that?
<kq_away>
I want [1,2,3,4] -> [[1,2], [2,3], [3,4]]
Agoldfish has joined #ruby
<kq_away>
so I don't think each_slice is my thing
orionstein has joined #ruby
<hanmac1>
kq_away: each_cons(2)
Igorshp has quit [Remote host closed the connection]
JDiPierro has joined #ruby
<kq_away>
thanks!
ta has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<mwlang>
Isn’t there an apache module or at least some published regexps/rules out there somewhere that can be used to detect connections that are scanning (and webscraping) your website? (I might be thinking of IPTABLES rules, btw).
Igorshp has joined #ruby
mary5030 has joined #ruby
<mwlang>
basically, instead of maintaining a blocklist in Ruby, I want to move this out to the system-level firewall or http server and have it automatically kick-in based on a frequency threshold.
<jhass>
mwlang: your term to google is IDS, intrusion detection system. Unrelated to Ruby btw
banister has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
<kq_away>
can I use it as map, hanmac1 ?
einarj has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 240 seconds]
<kq_away>
it doesn't seem to return anything
<mwlang>
jhass: yeah, you’re right…I’m staring in amazement at the Ruby implementation of this in front of me… :-p
abuzze has joined #ruby
<hanmac1>
kq_away: each_cons(2).to_a
banister has joined #ruby
quimrstorres has joined #ruby
<mwlang>
not at all sure why ppl build this in Ruby at all other than its an “easy way” to provide a backend to the customer who can add ip addresses to block.
mandarinkin has joined #ruby
<kq_away>
yay
<kq_away>
thanks again
[k- has joined #ruby
antgel has joined #ruby
hoov has joined #ruby
downwithbender has quit [Ping timeout: 258 seconds]
abuzze has quit [Read error: Connection reset by peer]
<jhass>
mwlang: a remotely decent IDS let's you add triggers freely, reading some from a database your ruby app writes to shouldn't be hard then
abuzze has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 272 seconds]
dopie has quit [Quit: This computer has gone to sleep]
edwinvdg_ has joined #ruby
<mwlang>
jhass: hmmm…I hadn’t thought about keeping the blocklist, but that’s actually a good idea how to integrate.
abuzze has quit [Read error: Connection reset by peer]
<mwlang>
at least it gets the business of rejecting connections out of the ruby server.
<mwlang>
(rails app in this case)
abuzze has joined #ruby
einarj has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
umgrosscol has joined #ruby
Soda has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
<ericwood>
what's a good place to ask for help with imagemagick? preferrably on IRC
abuzze has joined #ruby
rbennacer has joined #ruby
<adaedra>
have you looked if #imagemagick or #magick exists?
<ericwood>
nah too much work
<mwlang>
ericwood: ask your question…I might be able to answer since I use imagemagick a bit.
<jhass>
ericwood: /msg alis help
pwattstbd has quit [Ping timeout: 272 seconds]
urbanmonk has quit [Quit: urbanmonk]
TheNet has joined #ruby
<ericwood>
mwlang: trying to layer animated gifs in a way where the shorter ones loop to match the duration of the longest one
sankaber has joined #ruby
<ericwood>
trying to recreate a modern version of blingee :|
<TheNet>
How can I run a single FileUtils command as root? I don't want to run the entire script as root, ideally I'd prompt the user for a password.
abuzze has quit [Read error: Connection reset by peer]
abuzze_ has quit [Ping timeout: 258 seconds]
io_syl has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
<ericwood>
mwlang: yeah, combining animated gifs is easy enough, but the looping /quantizing of shorter ones is tricky
sevenseacat has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
urbanmonk has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
yh__ has quit [Ping timeout: 256 seconds]
<ericwood>
I suppose I could split each gif into its frames then iterate over and combine each
<mwlang>
ericwood: I was thinking you just needed a loop to find the longest one and then another loop to construct based on the difference.
abuzze has joined #ruby
<mwlang>
ericwood: exactly
Soda has joined #ruby
<ericwood>
break each into arrays, loop over longest, etc
io_syl has quit [Client Quit]
endash has quit [Quit: endash]
abuzze has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
<ericwood>
that's not too awful I guess. more work than I was hoping for on such a stupid project :P
<mwlang>
ericwood: heh…starting to be more work to avoid the stupid work. :-D
abuzze has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
podman has joined #ruby
banister has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
tautvydas has quit [Ping timeout: 256 seconds]
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
banister has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
lxsameer has joined #ruby
riotjones has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
abuzze has joined #ruby
rbennacer has joined #ruby
GriffinHeart has joined #ruby
<hfp>
Hi all, if I remember correctly, there is a way to write all your environment variables in a file and have a gem to configure them before launching your app, notifying you if some are missing etc. Then all you have to do to keep your secrets is to .gitignore the file. Anybody remembers the name for that gem?
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
Channel6 has joined #ruby
oo_ has joined #ruby
casadei has joined #ruby
aryaching has quit []
GriffinHeart has quit [Remote host closed the connection]
abuzze_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
thiagovsk has joined #ruby
mtakkman has joined #ruby
dopie has joined #ruby
TheNet has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
ismaelga has quit [Remote host closed the connection]
mary5030 has joined #ruby
abuzze has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
vivekananda has joined #ruby
aryaching has joined #ruby
lordkryss has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
mwlang has quit [Quit: mwlang]
abuzze has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abuzze has joined #ruby
ismaelga has joined #ruby
Zamyatin has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
Eiam_ has quit [Ping timeout: 255 seconds]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
abuzze has joined #ruby
qwertme has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
duggiefresh has joined #ruby
Zamyatin has joined #ruby
mary5030 has quit [Remote host closed the connection]
snockerton has joined #ruby
mary5030 has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
chinmay_dd has quit []
Rollabunna has quit [Quit: Leaving...]
Zamyatin has quit [Max SendQ exceeded]
yh__ has quit [Ping timeout: 250 seconds]
Zamyatin has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 256 seconds]
Ilyes512 has quit [Ping timeout: 252 seconds]
Zamyatin has joined #ruby
lkba_ has quit [Ping timeout: 245 seconds]
dopie has quit [Quit: This computer has gone to sleep]
Ilyes512 has joined #ruby
juanpaucar has joined #ruby
pdoherty has joined #ruby
dopie has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
abuzze has quit [Read error: Connection reset by peer]
yh__ has joined #ruby
abuzze has joined #ruby
Fraeon has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
<hololeap>
i'm trying to implement something like Queue, where threads that try to access an empty data set are blocked until new data is added. any ideas how to accomplish this? i would rather not use sleep and wakeup since that might interfere with other sleep calls
Dopagod has quit [Ping timeout: 250 seconds]
commondream has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
hololeap: doesn't SizedQueue do that?
<jhass>
oh, actually Queue does it
<jhass>
why not use Queue?
abuzze has quit [Read error: Connection reset by peer]
a346 has quit [Quit: a346]
abuzze has joined #ruby
meph has quit [Quit: Leaving.]
mcpierce has quit [Ping timeout: 272 seconds]
abuzze has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
abuzze has joined #ruby
turkey007 has joined #ruby
jbomo has joined #ruby
turkey007 has left #ruby [#ruby]
<hololeap>
i'm trying to make queue persistant by adding db calls to push, pop, and shift. i thought about inheriting Queue and adding the extra functionality to those methods, but Queue's synchronizing only works while super() is called, not before or after
<hololeap>
so i'm trying to implement the same functionality without actually using Queue
commondream has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
lidenskap has joined #ruby
<hololeap>
it would be best if the threads were blocked until the DB call finishes
konsolebox has quit [Quit: Leaving]
mtakkman has quit [Ping timeout: 250 seconds]
paulcsmith has joined #ruby
commondream has joined #ruby
cht has quit []
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy>
perl has 671 users, ruby has 955 users yet tiobe says perl is much more popular than ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
<dudedudeman>
don't forget #ruby-lang
That1Guy has joined #ruby
Pathfinder has quit [Ping timeout: 272 seconds]
cirn0 has joined #ruby
<havenwood>
shevy: tiobe is silly
TheNet has joined #ruby
<havenwood>
shevy: or more haphazard and bizarre really
oo_ has quit [Read error: Connection reset by peer]
commondream has quit [Remote host closed the connection]
<hololeap>
jhass: what language is that?
<jhass>
Crystal
juanpaucar has quit [Remote host closed the connection]
commondream has joined #ruby
<adaedra>
is there a #crystal?
<jhass>
#crystal-lang
lidenskap has quit [Ping timeout: 255 seconds]
<jhass>
I should probably reg #crystal and forward it :D
<shevy>
dudedudeman yeah but the #ruby-lang guys are our enemies; jhass suggested that #ruby-lang is eliminated, now jhass has become an enemy on #ruby-lang
p8952 has joined #ruby
<shevy>
pls pls pls no -lang suffixes
<adaedra>
freenode politics.
hectortrope has joined #ruby
<dudedudeman>
shevy: huh. the more you know.
oo__ has quit [Remote host closed the connection]
<shevy>
dudedudeman slightly exaggerated :D
<dudedudeman>
ha, i know.
<shevy>
but it's true that he suggested a merger!
<dudedudeman>
help is help, most of the time
<adaedra>
yeah
ringarin has quit [Read error: Connection reset by peer]
<adaedra>
jhass did not only suggest.
<adaedra>
:p
<dudedudeman>
suggested a merger, and got banned?
<jhass>
shevy: actually I didn't yet
<jhass>
all I suggested so far is to make #ruby instead of #ruby-lang the official Ruby channel
<shevy>
haha
juanpaucar has joined #ruby
<shevy>
did we break 1000 here yet?
<adaedra>
so currently, this place is a counterfait version of #ruby-lang?
iamdevnul has joined #ruby
s2013 has joined #ruby
gambl0re has joined #ruby
<shevy>
I mean I am aware that we can break it if all from #ruby-lang, who are not here, would join
<havenwood>
shevy: Where are you getting that line noise from?
<jhass>
hololeap: but those just delegate to a ConditionVariable, essentially
<shevy>
hmm... "App::Env is most useful in situations where a Perl program must invoke multiple applications each of which may require an environment different and possibly incompatible from the others"
qurve has joined #ruby
<xxneolithicxx>
im reorganizing my code, need some advice
<shevy>
havenwood I was on #perl for a moment
<havenwood>
shevy: Aha!
<shevy>
they have that bot that announces news
ArchRogem has joined #ruby
<shevy>
though that is quite a spammy bot there
<dudedudeman>
i should be a bot
Cache_Money has joined #ruby
<shevy>
dudedudeman I'd believe you at once that you are one! an idling bot
<hololeap>
jhass: ah, that mixin should be perfect. thanks :)
<havenwood>
dudedudeman: oh, i can make you a bot...
<dudedudeman>
bot me, baby!
zotherstupidguy has joined #ruby
<xxneolithicxx>
I have class Product::API and module Product::Resource with a bunch of API resource classes that are instances of resources accessible through API
<qurve>
Does stdlib contain anything for dealing with CIDR blocks? Specifically I need to expand a CIDR block into an array of all the IPs in that block.
* dudedudeman
is bot
* dudedudeman
does bot stuff
<xxneolithicxx>
i dont like this organization though as a Resource doesnt exist outside the context of the API and I cant make API both a class and module
riotjones has quit [Ping timeout: 250 seconds]
<hololeap>
the standard library always seems to have something new
rippa has joined #ruby
pokui has joined #ruby
msgodf has quit [Ping timeout: 272 seconds]
aswen has quit [Ping timeout: 240 seconds]
<jhass>
qurve: ipaddr does it iirc
<pokui>
hi all, for the purposes of #to_s can a class get the name of an instance?
<xxneolithicxx>
the Product::API class is like a dynamic RESTFUL client instance that builds its methods from JSON data. I would have liked Product::API to be the class and Product::API::Resources::<Resource> but this isnt possible
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<qurve>
Thanks, I'll check it out jhass.
<xxneolithicxx>
how would you reorganize something like that so it makes structure sense
<jhass>
pokui: what do you mean? an instance doesn't have a name
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mcpierce has joined #ruby
<pokui>
jhass: sorry .. I'll try to be more clear. if I say a = "12234" is it possible for String to get the variable name 'a'? Not sure that's more clear.
<pokui>
the program doesn't quite need it, just trying to debug a set of classes I've written.
<jhass>
pokui: a = "1234"; b = a; what' would you get now?
fabrice31_ has quit [Remote host closed the connection]
tcrypt has joined #ruby
<jhass>
{Object.new => Object.new} and here, what would you get for both objects as name?
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pokui>
jhass: good points. hadn't thought that through.
JDiPierro has quit []
camilasan has quit [Remote host closed the connection]
sent1nel has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 240 seconds]
pwattstbd has joined #ruby
<Darkwater>
throw error on initializer, catch it, get calling line from stacktrace, extract variable name
<Darkwater>
solid plan
mtakkman has joined #ruby
<Darkwater>
..fuck, now I wonder if that's actually possible
<shevy>
ponga not that I know of; I think there are only very few in Europe who can speak japanese
<ponga>
lol what the heck is that
<shevy>
other than japanese in europe that is :)
shuber_ has quit [Ping timeout: 256 seconds]
freestyl3r has joined #ruby
<shevy>
I mean, people from japan who would now live in europe...
<ponga>
yeah
<adaedra>
Japanese in Europe?
<ponga>
not many westerner learns japanese, even fewer for those at superior fluency
<adaedra>
Other than the ones taking pictures of everything?
freerobby has quit [Quit: Leaving.]
ascarter has joined #ruby
icebourg has joined #ruby
withnale_ has joined #ruby
freerobby has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
<freestyl3r>
hello. let's say i have a class name as a string e.x.: var = "Animal". How can i call the class methods of Animal by using the "var" variable?
sandelius has joined #ruby
qurve has quit []
haxrbyte has joined #ruby
<adaedra>
You have to get the class itself, first
<GaryOak_>
freestyl3r: you can assign the class to the var like var = Animal, then you can call var.animal_class_method
<adaedra>
>> const_get("String")
<ruboto>
adaedra # => undefined method `const_get' for main:Object (NoMethodError) ...check link for more (https://eval.in/368209)
<adaedra>
mmh, how was it now
jottr_ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
mary5030 has joined #ruby
beamed_down is now known as Beamed
<freestyl3r>
GaryOak_: i only have access to the class as a string
konsolebox has joined #ruby
konsolebox has quit [Remote host closed the connection]
<freestyl3r>
Kernel.const_get("String") or Object.const_get("String") seems to work
<adaedra>
then you can use GaryOak_ suggestion on the obtained class
io_syl has quit []
druuu has joined #ruby
haxrbyte_ has joined #ruby
<freestyl3r>
actually the function accepts a symbol e.x. :string and then i call rails .classify on it which turns it into "String". so the final call is Kernel.const_get(:string.to_s.classify)
<freestyl3r>
is there a cleaner way to do that?
<adaedra>
looks ok
Pupeno has quit [Quit: Leaving...]
<freestyl3r>
i'm trying to mimic rails behavior: belongs_to :user
<freestyl3r>
and from :user get the class. ok thanks
mandarinkin has quit [Ping timeout: 255 seconds]
skyjumper has joined #ruby
<skyjumper>
is pry-stack_explorer the only way to get a stack trace in pry-byebug?
<adaedra>
mh
<adaedra>
I don't remember using that
haxrbyte has quit [Ping timeout: 255 seconds]
segfalt has quit [Quit: segfalt]
arietis has quit [Quit: Leaving.]
speaking1ode has joined #ruby
<adaedra>
ah, I didn't display the stack, that's why :x
<jhass>
hololeap: dunno, I see LocalJumpError as an internal Ruby thing, for argument validation I raise ArgumentError
ponga has quit [Remote host closed the connection]
<kinduff>
im not sure if it's a sin if that's inside an integration test
ismaelga has quit [Remote host closed the connection]
<hololeap>
jhass: ok
<jhass>
hololeap: it's opinion ;)
ismaelga has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<jhass>
I'd also try to pick a more specific error class for the one in line 108
urbanmonk has quit [Quit: urbanmonk]
aspiers has joined #ruby
bronson has joined #ruby
robertyaman has joined #ruby
<robertyaman>
Hello?
<jhass>
hololeap: oh and I can't spot where you use activesupport?
<dudedudeman>
robertyaman: holler
<jhass>
robertyaman: hi
vin` has quit [Remote host closed the connection]
<hololeap>
jhass: you're right :) i guess i removed it all
<jhass>
hololeap: you might want to figure out whether Redis::List is thread safe, could save thhe synchronize calls on length and empty?
MatthewsFace has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
<jhass>
hololeap: I'd also include the monitor into your class, extend clears method caches and is thus not advisable during runtime
casadei has quit [Remote host closed the connection]
baweaver_ has joined #ruby
segfalt has joined #ruby
vickleton has joined #ruby
scuey has joined #ruby
baweaver_ has quit [Remote host closed the connection]
robertyaman has quit []
robertyaman has joined #ruby
neanderslob has joined #ruby
baweaver_ has joined #ruby
crack_user has quit [Quit: Leaving.]
<dudedudeman>
hey folks. I'm trying to do some calls from my postgres database, and it's freaking out on my where query. I'm doing something x = class.all, and then doing y = x.where(:foo => 'true')
robertyaman is now known as EArobert
tautvydas has joined #ruby
<dudedudeman>
that's what i was doing when using a sql database, but postgres doesn't like that apparently
rbennacer has joined #ruby
s2013 has joined #ruby
<dudedudeman>
says 'undefined column'
<dudedudeman>
wait..
<kinduff>
dudedudeman: you sure?
yh__ has quit [Ping timeout: 252 seconds]
<dudedudeman>
not any more
<kinduff>
postgres acts in misterious ways
<dudedudeman>
i'm an idiot
somnium has quit [Ping timeout: 272 seconds]
<GaryOak_>
dudedudeman: you using Sequel, because class.all returns an array
einarj has joined #ruby
segfalt has quit [Ping timeout: 272 seconds]
That1Guy has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
c0m0 has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
<dudedudeman>
GaryOak_: well, maybe. it's more of an issue where i was calling the where statement on the wrong table...
<dudedudeman>
wrong class*
neohunter has joined #ruby
<GaryOak_>
ahh, that could give you a unknown column error
<dudedudeman>
I'm just trying to get that info in a 'metrics' view for my app
Spami has joined #ruby
<GaryOak_>
like a dashboard?
<dudedudeman>
SURE
<dudedudeman>
sorry.. caps.
<GaryOak_>
haha
<dudedudeman>
but yes, something where it tells me these were done today, these were done in the last week, these need to be done in the next 3 weeks, and so on
<dudedudeman>
currently, my view is just returning a #
<GaryOak_>
gotcha, I'm doing the exact same thing
<dudedudeman>
GaryOak_: ooo! nice
deric_skibotn has joined #ruby
abuzze has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
iliketurtles has quit [Client Quit]
fabrice31 has joined #ruby
<GaryOak_>
I tried making a chainable Sequel wrapper, but Sequel is almost as good, but what I wrote is more domain specific
tubuliferous_ has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
io_syl has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
zotherstupidbot has joined #ruby
gustavn has joined #ruby
<dudedudeman>
ah, are you trying to set up something where it shows how often a site was accessed? that kind of stuff?
somnium has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
gustavn has quit [Client Quit]
<zotherstupidguy>
nearby!
EArobert has quit []
gustavn has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
shuber_ has quit [Remote host closed the connection]
arietis has joined #ruby
shuber_ has joined #ruby
gustavn has left #ruby [#ruby]
<GaryOak_>
dudedudeman: nah doing background job stats
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
cirn0 has quit [Remote host closed the connection]
haxrbyte_ has quit [Read error: Connection reset by peer]
Spami has quit [Ping timeout: 250 seconds]
haxrbyte has joined #ruby
cirn0 has joined #ruby
ascarter has joined #ruby
djbkd has joined #ruby
pdoherty has joined #ruby
<hololeap>
jhass: i'm having a hard time just using "include MonitorMixin" in my class. it looks like @mon_mutex isn't getting set when the module is included. any ideas? i updated the code on github
<jhass>
hololeap: it adds the methods to your class
<jhass>
you just call synchronize, signal etc on self
iamninja has joined #ruby
<hololeap>
jhass: that's what i'm doing
<jhass>
oh, you also have to call super in your constructor then
<apeiros>
granted, "always" is an exaggeration. I usually use Mutex, and so far maybe twice replaced Mutex with Monitor when I needed it to be reentrant.
paulcsmith has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
<hololeap>
jhass: oh, that makes sense. i forgot that super applied to modules and not just inherited classes
paulcsmith has joined #ruby
codeFiend is now known as aeontech
<hololeap>
jhass: that fixed it :)
Spami has joined #ruby
iamjarvo has joined #ruby
That1Guy has joined #ruby
lidenskap has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
dopie has quit [Quit: This computer has gone to sleep]
arietis has quit [Quit: Leaving.]
iliketurtles has joined #ruby
Igorshp has quit [Remote host closed the connection]
affenhoden has joined #ruby
abuzze has quit [Remote host closed the connection]
unshadow has quit [Quit: leaving]
juanpaucar has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
arietis has joined #ruby
shock_one has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has quit [Ping timeout: 265 seconds]
cirn0 has quit [Remote host closed the connection]
airdisa has quit []
hectortrope has quit [Quit: WeeChat 0.4.2]
dopie has joined #ruby
mikecmpbll has joined #ruby
kinduff has joined #ruby
cosmicexplorer has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
GriffinHeart has quit [Ping timeout: 255 seconds]
paulcsmith has quit [Quit: Be back later ...]
cosmicexplorer has quit [Client Quit]
shock_one has quit [Ping timeout: 264 seconds]
paulcsmith has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
shock_one has joined #ruby
hardlin3r has joined #ruby
SouL_|_ has quit [Read error: Connection reset by peer]
<jhass>
The string to the left of the last successful match
<jhass>
>> "foo bar".match(/bar); $`
<ruboto>
jhass # => /tmp/execpad-9daa278b24de/source-9daa278b24de:2: unterminated regexp meets end of file ...check link for more (https://eval.in/368275)
<eam>
and that line is something like 40% of the entire cost of the fetch call
Ilyes512 has joined #ruby
<apeiros>
ok. my knowledge about C interface performance is very very limited
<apeiros>
#ruby-core and the ML might be more helpful there
<apeiros>
and/or SO
<eam>
kk
aswen has joined #ruby
That1Guy has joined #ruby
segfalt has joined #ruby
soulcake has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
enebo has quit [Quit: enebo]
neanderslob has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
balazs has joined #ruby
<apeiros>
eam: it might well be that the rb_iv_get(self, "@db") is the actually expensive part
spyderman4g63 has joined #ruby
<apeiros>
iirc at least until 1.8 that was a hashtable lookup
<eam>
I suspect it is
<eam>
well, and I think it needs to parse "@db" right?
<eam>
I'm wondering if I should maintain my own hashtable of all handles for all instances
<apeiros>
I don't think it has to parse "@db"
<apeiros>
that's the key in the hash table
<apeiros>
it has to hash it
soulcake has quit [Client Quit]
<eam>
thought I saw it enter the parser in gdb, might be wrong though
<apeiros>
well, I'm just guestimating from thinking about how I'd do it and the tiny parts I remember from 1.8 :)
<apeiros>
so take it all with a huge grain of salt
<eam>
ah yeah so, it needs to rb_intern() the string into an ID
<eam>
I think that might be it
<balazs>
Hi, where do people put executables with rubygems that are not ruby, like bash scripts ?
<GaryOak_>
balazs: you can put them in a bin directory
<jhass>
same as the ones that are ruby
awer has joined #ruby
ismaelga has quit [Remote host closed the connection]
jottr_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<awer>
hey all. NEw to Ruby and trying to understand how to put a progress bar onto to blocks of code. any help would be appreciated http://paste.ee/p/xeM1U
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<apeiros>
eam: ah yes. all identifiers are interned.
codecop_ has quit [Remote host closed the connection]
<eam>
I think I might be wrong about intern parsing though
<awer>
jhass: ok, well i have a shell command that is called script1 and another called script2 . then i simply use 'puts' to display their output to the shell. I want the progress of script1 and script2 to be displayed by the mean of the progress bar
codeFiend is now known as aeontech
pokui has quit [Ping timeout: 255 seconds]
<jhass>
awer: first question: how to determine their progress?
<jhass>
how do you know when it'll finish/how much is done?
<awer>
jhass: indeed im not sure of that
michael_mbp has joined #ruby
<awer>
jhass: how would ruby know?
<jhass>
that's what you need to figure out before you can display a progress bar
<jhass>
there's no general way
<jhass>
it depends on what you run
mtakkman has quit [Ping timeout: 258 seconds]
<awer>
im running a nmap script
<awer>
so that will always differ in time
<dudedudeman>
awer: are you trying to write this outside the scope of a gem?
n008f4g_ has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
<awer>
dudedudeman: im trying to write it with the ruby-progressbar gem
bronson has quit [Remote host closed the connection]
<jhass>
that gem makes it easy to print one
<jhass>
that's all
<jhass>
it doesn't magically guess the runtime of arbitrary stuff
<jhass>
that's your job
tjohnson has joined #ruby
freerobby has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
<awer>
jhass:
<awer>
jhass: well maybe it would be better to some how grep out the verbose output of the nmap command. that way i get a time remaining
<jhass>
you can do that, sure
<jhass>
you might need streaming output for that though, check open3 stdlib
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
moreno has joined #ruby
<awer>
hmm, it might be more hassle than its worth...
<jhass>
you'd need to do some actual coding, yeah
<dudedudeman>
the first time you write something is always more hassle than it's worth. :)
aeontech has quit [Ping timeout: 246 seconds]
<GaryOak_>
until you have to do it
<dudedudeman>
but, when you do it again in the fture, boom, you'll be faster at it
<balazs>
GaryOak: then by bash scripts get that weird wrapper when the project is installed
ascarter has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ascarter has joined #ruby
vroomanj has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 276 seconds]
aspiers has joined #ruby
TheNet has joined #ruby
BTRE has joined #ruby
<TheNet>
is there a good gem to watch a directory for file changes?
abuzze has quit [Remote host closed the connection]
<apeiros>
rbennacer: "true" == "true"
<TheNet>
lol
<TheNet>
rbennacer: this probably won't help you but "true" _is_ true already
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jhass>
*truthy
<rbennacer>
mmmmm
<apeiros>
if you want to allow precisely "true" and "false", I'd probably use case/when: case val; when "true" then true; when "false" then false; else raise; end
<rbennacer>
this might work hehehe apeiros
jenrzzz has joined #ruby
<rbennacer>
thanks
<apeiros>
if you only want "false" to be false and all other true: val != "false"
<jhass>
apeiros: not enough true. {"true" => true}["true"]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<apeiros>
the raise probably with ArgumentError, %{"true" or "false" expected, got #{val.inspect}:#{val.class}}
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unshadow has joined #ruby
tvw has joined #ruby
<jhass>
wait, I can do better; TRUE_LOOKUP = {"true": true}; def lookup_true(maybe_true); TRUE_LOOKUP.fetch(maybe_true) { raise %(expected "true") }; end; lookup_true("true")
<jhass>
10 true. beat it
<apeiros>
that's not a competition I want to be in :-p
commondream has joined #ruby
tuelz has quit [Ping timeout: 276 seconds]
banister has joined #ruby
<adaedra>
What the hell
<jhass>
you're not true enough?
razrunelord has quit []
wookiehangover has joined #ruby
<shevy>
you guys are now false
<adaedra>
no u
zubov has quit [Ping timeout: 256 seconds]
<adaedra>
def shevy; false; end
<apeiros>
shevy missed the opportunity to say "this is so false"
<jhass>
>> class TrueClass; def !; true; end; !!()
<ruboto>
jhass # => /tmp/execpad-018a5843f164/source-018a5843f164:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/368289)
<jhass>
:(
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
>> class TrueClass; def !; true; end; end; !!()
chinmay_dd has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
centrx has quit [Ping timeout: 244 seconds]
P1RATEZ has quit [Changing host]
P1RATEZ has joined #ruby
Jarboe has joined #ruby
renanoronfle has joined #ruby
Narzew has quit [Read error: No route to host]
Narzew has joined #ruby
d5sx43 has quit [Remote host closed the connection]
icebourg has joined #ruby
djbkd has quit [Remote host closed the connection]
jtdowney has quit []
wallerdev has joined #ruby
spyderman4g63 has joined #ruby
kinduff has quit [Quit: Saliendo]
jgt has joined #ruby
<jgt>
hey folks
<jgt>
is there a way to make a pass at a file, figure out all the constants, and see which need to be `require`d in order to not throw an Uninitialized Constant?
Cust0sLim3n has joined #ruby
spyderma_ has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
<apeiros>
jgt: my smell-alarm clocks are ringing
<jgt>
I know… I know…
<apeiros>
jgt: you can parse the file and find all literal constants. this won't cover dynamic contants.
<jgt>
ah, found a better approach for my autoloading thing :)
<jgt>
what I really wanted was to load all files under some dir
redondo has quit [Quit: redondo]
<jgt>
made it work with Dir[File.expand_path('../../import/*.rb', __FILE__)].each(&method(:require))
fabrice31 has joined #ruby
horsecowdog has quit [Remote host closed the connection]
kenneth has joined #ruby
<hanmac>
jgt but beware! Dir[] is not sorted so you cant trust the order of the files
<bootstrappm>
sts I'd take a look at the output of that FileList dependency
saintcajetan has quit []
saintcajetan has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
jonatin has joined #ruby
jonatin has quit [Client Quit]
Igorshp has joined #ruby
Brozo has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 265 seconds]
<bootstrappm>
jgt did you take a look at the autoloading link? because loading all the files in a dir isn't really related to loading just the constants you're gonna use ...
<bootstrappm>
odd indeed sts, I'm gonna take a look at how file tasks are defined and see whatsup
Synthbread has joined #ruby
snockerton1 has joined #ruby
ismaelga has joined #ruby
<jhass>
sts: are you sure that the file isn't loaded twice by rake for some strange reason?
iasoon has joined #ruby
<jhass>
try a puts "hey" at the toplevel
snockerton has quit [Ping timeout: 240 seconds]
tuelz has quit [Ping timeout: 265 seconds]
vikaton has quit []
Synthead has quit [Ping timeout: 244 seconds]
ascarter has quit [Remote host closed the connection]
djbkd has joined #ruby
Brozo has quit [Client Quit]
<jgt>
bootstrappm: In this case, I know the constants I wanted to load and the constants in the files under that dir match 1:1
<bootstrappm>
cool
<jgt>
hanmac: Thanks, I didn’t know that. I think I’m safe in this case though :)
<sts>
or crap. yes it is jhass
Bira has quit [Remote host closed the connection]
<sts>
thanks
ascarter has joined #ruby
P1RATEZ has quit []
vikaton has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<sts>
fixed
<bootstrappm>
(y) !
orion has joined #ruby
<sts>
bootstrappm: thanks too :)
ascarter has quit [Max SendQ exceeded]
dseitz has quit [Read error: Connection reset by peer]
<orion>
Hi. If I have a Ruby application sitting behind a load balancer, is it better to collect HTTP logs from the LB or directly from the application?
tuelz has joined #ruby
<orion>
It *seems* inconsequential to me.
ascarter has joined #ruby
handlebar has quit [Quit: Leaving]
<hanmac>
jgt: i for my self does prefer to have require_relative between the files so each of them only does require what they need
<sts>
orion: you will probably want to log at the webservers running on you application servers, if so.
<orion>
sts: Why?
<sts>
orion: if its a lb -> (nginx?) -> app stack
baweaver has joined #ruby
d5sx43 has joined #ruby
<eam>
orion: likely both, logging at every point is useful
baweaver has quit [Remote host closed the connection]
<orion>
But that'll double my storage costs.
<eam>
orion: the importance of each depends on the type of load balancer
<sts>
orion: you will want to know where each request landed, and it will probably be easier to debug. consider requests which accidently bypass the LB..
baweaver has joined #ruby
<Radar>
morning
<waxjar>
orion: keep in mind that if you're interested in IPs, they might very well all be your load balancer's IP if you log from your application
<eam>
"double my storage costs" <-- your logfile size shouldn't be significant
<jhass>
unless your app logs all the X-Forwarded-For variants
kirun has quit [Quit: Client exiting]
<sts>
waxjar: depends on the webserver configuration (X-Forwarded-For, mod_rpaf, mod real ip)..
<orion>
Well, let's assume the LB sets X-Forwarded-For and X-Real-IP.
multi_io has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
<sts>
orion: then you are able to use Nginx mod RealIP..
<sts>
orion: to log the correct ip
<waxjar>
sts: sure, just a heads up :)
<sts>
waxjar: ;
multi_io has joined #ruby
balazs has joined #ruby
<orion>
sts: Sure, but we have centralized logging. Which logs should ultimately get sent to logstash? The Ruby application's HTTP logs or nginx's logs?
<orion>
Is there a reason to prefer one over the other?
ismaelga has quit []
<eam>
log any system which you consider critical and will want to fix when it inevitably fails
<bootstrappm>
yeah centralized logging is definitely the way to go. Don't want to be logging into all those server just to see whats up
<sts>
orion: i'd send the nginx logs + also log them locally
<bootstrappm>
and if your app is setup smoothly orion the app's logs are more important
<bootstrappm>
in my experience once you have your nginx / apache set there's no code you can push that can really mess it up too bad
<orion>
I see.
commondream has joined #ruby
d5sx43 has quit [Remote host closed the connection]
<bootstrappm>
if you start fiddling w/ caching or headers or something you'll need to turn nginx / apache logging on and send it somewhere to have visibility into what you're doing
<bootstrappm>
but if you just set it and forget it you shouldn't be looking into the webserver logs too much
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm>
all your 500s will show up in the ruby apps logs
cirn0 has joined #ruby
Jackneill has quit [Remote host closed the connection]
<orion>
I see.
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icebourg has joined #ruby
<sts>
orion: what does your stack look like?
<bootstrappm>
but if you're looking to be safe I'd log them and send them somewhere anyway. Maybe not logstash where storage is expensive ... but local logging + a cron that sends the files to s3 would be being safe
swgillespie has joined #ruby
<orion>
sts: nginx -> application -> ...
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
A205B064 has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
sanguisdex has joined #ruby
turtil has joined #ruby
awer_ has joined #ruby
apakatt has quit [Quit: ?]
spider-mario has quit [Remote host closed the connection]
d5sx43 has joined #ruby
awer has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
commondream has quit [Remote host closed the connection]
vickleton has quit [Remote host closed the connection]
codepete has quit []
<apeiros>
hehehe, I love this: "Now, instead of spending time figuring out what time of day is it for every member of the channel, we spend time explaining newcomers benefits of UGT."
<Radar>
gizmore: Please try to be a productive member of the channel.
<gizmore>
ping
<shevy>
yeah you are right Radar
<shevy>
<gizmore> i am registered... not sure how i am muted, but i was an asshole two weeks ago
<gizmore>
sorry... i was being rude for no reason
<shevy>
he admitted to it ;P
edwinvdg_ has quit [Ping timeout: 256 seconds]
<Radar>
oh the unmute did work from ruboto. I should really turn modes back on.
chinmay_dd has quit [Ping timeout: 264 seconds]
<gizmore>
indeed... productivity is what i am missing here for myself
<gizmore>
thank you Radar
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
so a few weeks or more ago I was asking about in-memory sql dbs - finally settled on a solution. Using sqlite, even though it's pretty slow, and replaced the key/val style lookups with mdbm
<eam>
the result is about a 3 orders of magnitude speedup
<Radar>
shevy: Don't you have bot access? For some reason I thought you did.
<shevy>
hmm don't think so
* jenksy
is missing bot access also. ;)
<eam>
sqlite was around a 4ms query time, mdbm is around 4us
<baweaver>
!r4ia
<shevy>
I know about 3 IRC commands... /j /quit ... and /nick
<Radar>
baweaver: It won't work here because helpa is +q'd
<shevy>
ah and /me
* baweaver
shrugs
<Radar>
weird
* shevy
beavers
sent1nel has quit [Remote host closed the connection]
<eam>
my problematic query that took ~120sec is now about 110ms
<baweaver>
heh
<Radar>
eam: nice :)
Lucky__ has joined #ruby
<shevy>
what did you do
<shevy>
rewrite in C?
<Radar>
eam: Do you have a link to that?
scripore has quit [Quit: This computer has gone to sleep]
<eam>
well, it was always C at runtime - but I do the sqlite/mdbm construction in ruby
bogdanteleaga has quit [Ping timeout: 264 seconds]
macmartine has quit [Remote host closed the connection]
<ruboto>
jhass, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
horsecowdog has quit [Remote host closed the connection]