apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
<eam> I have automation that gives me all rubygems, cpan modules, and many others at cutting edge versions
<eam> it's more or less a solved problem
<ged> I guess I'd be glad if someone did the work to make distributing via arbitrary package formats as easy as packaging a gem, but until that happens, I'm glad there's gems instead of the 10 different setup.rb/install.rb/mkrf.rb/whatever there was before Rubygems.
Ethan has joined #ruby
<RubyPanther> Sure, but it is downstream, software isn't packaged for each distro during development, it is packaged after it has been chosen to be in the stable distro version. Then it makes it into the unstable version. At this point the software is already fairly old, or at least, the dependencies are no longer the latest dev version
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
jxpx777 has joined #ruby
andrewhl has joined #ruby
<RubyPanther> that is why there are language-specific tools for maintaining your dev environment, and then package manager ones for dependencies. Looking over the fence at Perl they do the same thing, you develop against CPAN and then things that make it into a distro there will be a distro version of each dependency
<eam> on the contrary, many products produce distro packages at every cycle
kirun has quit [Quit: Client exiting]
<eam> I'm well aware Perl has made the same mistake, though to be fair CPAN predates the distro architectures we have today
rasbonics has quit [Quit: rasbonics]
<eam> gem does not
<RubyPanther> Nonsense, a very small number of things that are mostly not developer tools maintain distro versions, things like flash plugin, or google chrome
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<eam> RubyPanther: yes *because* that effort goes into a langauge specific packaging platform
<eam> which is unnecessary
<eam> and cumbersome
<eam> it's not the end of the world because it can be adapted to a distro target
<eam> but remember, this conversation started because someone complained that ruby libraries ought not exist in distro packages at all
<RubyPanther> Sure, sure, everybody else is wrong, developers suck, your idea is better, blah blah blah, not
<eam> which is entirely backwards
<RubyPanther> Well, they ought not exist in distro packages at all, excepting for the fact that in a good distro the only ones that are there are the ones that have something in the distro that has them as a requirement
<eam> RubyPanther: clearly everybody isn't wrong -- there are many people working to make distro platforms effective and useful
<eam> the issue is that there are many unaware developers
Maniacal has quit [Ping timeout: 265 seconds]
<eam> (many more people than which work on ruby specific packaging, I might add)
<RubyPanther> It is clearly true that packages shouldn't be in the distro _unless_. But, "unless" comes up often enough that there are enough distro packages around to lead poor folks like yourself astray.
jxpx777 is now known as jxpx777|afk
<eam> no, that's incorrect. Packages belong in the distro -- otherwise dependencies cannot be properly satisfied in an automatic fashion
jrist is now known as jrist-afk
<eam> mixing your underlying distro packaging (deb, rpm, etc) with gem leads to a crappy UX involving manual monkeying around
<eam> this is a well understood issue I hope
<RubyPanther> eam: You should put more effort into understanding why it is done the way it is, because you're missing the claimed benefits and then making wrong assertions about the duplication of effort
<eam> one of us should put more effort in, certainly
<eam> how many packaging systems have you created?
mikeric has joined #ruby
<RubyPanther> Well, if I am supporting the existing Ruby way, the effort of understanding has already been put in by others. It is a much lower bar to learn how things are done and why than it is to claim that things are being done wrong.
ben_alman has quit [Excess Flood]
vlad_starkov has joined #ruby
<eam> RubyPanther: I might s/ruby/distro/ and make the same point -- except my point would apply to the foundational undertaking in creating gem in the first place
niku4i has joined #ruby
niku4i has quit [Read error: Connection reset by peer]
<RubyPanther> "derp, derp, how many did you invent from raw photons on your home-built bicycle-powered CPU"
gregorg_taf has joined #ruby
<eam> RubyPanther: you raised the issue of relevent experience, not me
Agis__ has quit [Quit: Agis__]
<eam> please don't complain
mikeric has quit [Client Quit]
niku4i has joined #ruby
niku4i has quit [Read error: Connection reset by peer]
<RubyPanther> You can invest seventeen thousand three hundred and sixty four ways of package management, you will still see "everybody" using language-specific tools for development, even where what they are developing will eventually make its way into distros where the prereqs will be distro packages
wilmoore has quit [Remote host closed the connection]
wilmoore has joined #ruby
khakimov has joined #ruby
niku4i has joined #ruby
niku4i has quit [Read error: Connection reset by peer]
ben_alman has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
kenperkins has quit [Ping timeout: 244 seconds]
niku4i has joined #ruby
niku4i has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 265 seconds]
Markvilla has quit [Quit: Markvilla]
<eam> I agree, and I propose it's because 1) most developers don't understand the tools which already exist and 2) Because NIH is a widespread phenomena
<eam> I'm not *surprised* at the state of things -- I'm merely noting that it's unfortunate
<RubyPanther> You don't need to create anything, all you have to do is picture in your head the problem... you have Ruby-based product Foo, and the author uses distro Pony. But some other contributors use distro Donkey. Users use any of 42 different distros. Using the language-specific package manager, there is one package to manage. Using distro-specific package managers there are 42 different packages to manage, 40 of which currently have no (know
<RubyPanther> n) users.
niku4i has joined #ruby
<RubyPanther> You are wrong^42*n
<eam> yes it appears you don't see the difference between a build toolchain and a packaging toolchain, and how they might be interfaced in a generic fashion
kenichi has quit [Remote host closed the connection]
<shevy> there are not so many package managers
wilmoore has quit [Ping timeout: 264 seconds]
<eam> shevy: when you ignore language specific ones, that is :^)
<RubyPanther> Perhaps I cannot comprehend the difference. Or, perhaps we have a single easy one-step process instead of crufty two step process where the second step has to be replicated for every known and unknown distro
<shevy> dpkg uses perl, emerge uses python. not sure what else can be used... some like sourcemage use shell scripts, then there is this replacement for emerge written in C++ I think. pacman is written in C... hmm
<Eiam> whats that thing in ruby method parameters where its like def fun(a,b, *c)
<Eiam> the *c part where it takes everything else
<shevy> eam: do you count machomebrew as package manager?
<shevy> Eiam splat operator
niku4i_ has joined #ruby
niku4i has quit [Ping timeout: 255 seconds]
xaq has quit [Remote host closed the connection]
<shevy> hmm rpm written in C
<shevy> quite none in ruby which is sad
<shevy> :(
<Eiam> shevy: ah right. is there a way to use the splat with rake tasks? =)
maxmmurphy has quit [Quit: maxmmurphy]
<RubyPanther> one is O(0) the other is O(2n)
<shevy> no idea, dont use rake tasks myself
<shevy> but rake uses ruby code
<shevy> so everything that works in ruby should work in rake as well
niku4i_ has quit [Remote host closed the connection]
mikeric has joined #ruby
niku4i has joined #ruby
niku4i has quit [Remote host closed the connection]
MoMo_ has joined #ruby
niku4i has joined #ruby
niku4i has quit [Remote host closed the connection]
MoMo_ is now known as MoMo
randoma__ has quit [Remote host closed the connection]
niku4i has joined #ruby
dnyy has quit [Remote host closed the connection]
EzeQL has quit [Ping timeout: 252 seconds]
<Eiam> args are a bit wonky for rake tasks unfortunately
<eam> shevy: generally speaking they're all implemented in C or C++
<Eiam> think maybe ill just read in a file instead
MissionCritical has quit [Ping timeout: 245 seconds]
jeff_sebring has joined #ruby
EzeQL has joined #ruby
jamesaxl has joined #ruby
<jamesaxl> hello
bwlang has joined #ruby
<jamesaxl> i hope that when you update Ruby, keep the old modulles work with it, as in perl and python
<jamesaxl> many modules won't run with new ruby :(
<mdszy> Which ones in particular, jamesaxl?
mikeric has quit [Quit: mikeric]
bwlang has quit [Client Quit]
<jamesaxl> mdszy, webkit for example
<mdszy> Ah.
ckrailo has quit [Quit: Computer has gone to sleep.]
dkissell_ has joined #ruby
niku4i has quit [Ping timeout: 248 seconds]
aszurom has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
dkissell has quit [Ping timeout: 252 seconds]
dkissell_ is now known as dkissell
emmanuelux has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
liluo has joined #ruby
emmanuelux has joined #ruby
mneorr has quit [Ping timeout: 250 seconds]
jonathanwallace has quit [Remote host closed the connection]
SegFaultAX|work2 has quit [Ping timeout: 246 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
jfoley has joined #ruby
bradhe has quit [Remote host closed the connection]
Mission-Critical has joined #ruby
jblack has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
liluo has quit [Remote host closed the connection]
ePirat_ has joined #ruby
kevinbond has quit [Ping timeout: 264 seconds]
musl has quit [Remote host closed the connection]
Mission-Critical is now known as MissionCritical
ePirat_ has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
ePirat_ has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
thedonvaughn has quit [Ping timeout: 244 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
perryh_away is now known as perryh
r126l has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mpereira has quit [Ping timeout: 255 seconds]
mikeric has joined #ruby
CheeToS has joined #ruby
cakehero has joined #ruby
iori has joined #ruby
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
blazes816 has quit [Quit: Leaving]
dbgster has quit [Quit: dbgster]
chienpo has quit [Quit: Leaving.]
davidpk has joined #ruby
jblack has quit [Quit: Lost terminal]
darthdeus has quit [Quit: Leaving...]
kenperkins has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Aaton is now known as Aaton_off
adamkittelson has quit [Remote host closed the connection]
zodiac1111 has joined #ruby
jxpx777|afk has quit [Quit: Mac is sleeping…]
codective has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
akem has joined #ruby
adeponte has quit [Remote host closed the connection]
ringotwo_ has quit [Remote host closed the connection]
cyong has joined #ruby
liluo has joined #ruby
cirwin has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
jrist-afk has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
mpereira has joined #ruby
beilabs_ has joined #ruby
ringotwo has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
manizzle_ has quit [Read error: Operation timed out]
bradhe has joined #ruby
SYNTActiX has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
<SYNTActiX> should i learn ruby or python
<SYNTActiX> or perl
<mdszy> Ruby!
<SYNTActiX> what benefits does it have,(note i am coming from java)
<ged> shevy: the ports tools on FreeBSD use Ruby.
<SYNTActiX> of the three, is ruby best at OOP?
emmanuelux has quit [Ping timeout: 245 seconds]
<ged> SYNTActiX: That's a highly subjective question. Perhaps if you gave some indication as to what you considered the critical features of "OOP"...?
<ged> And in general, all three are pretty much equivalent in their functionality.
ePirat_ has quit [Remote host closed the connection]
mikeric has quit [Quit: mikeric]
t3hk0d3 has quit [Read error: Connection reset by peer]
<SYNTActiX> i want to use a language, instead of java, to simulate baseball games, involving parsing data and setting game states
<ged> You should pick a simple task, learn enough of all of them to implement it, then judge based on which you find more pleasing.
<SYNTActiX> thanks, that sounds like a good idea
ePirat_ has joined #ruby
t3hk0d3 has joined #ruby
SYNTActiX has quit [Client Quit]
fbernier has joined #ruby
stkowski has quit [Quit: stkowski]
Araxia has quit [Ping timeout: 255 seconds]
<ged> And try out some other fun ones like io and Lua, too.
ringotwo has quit [Remote host closed the connection]
ringotwo has joined #ruby
ryanf has joined #ruby
dankest has joined #ruby
cherrypeel has quit [Quit: Leaving]
dnyy has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
c0rn_ has quit [Quit: Computer has gone to sleep.]
Zespre has joined #ruby
nari has joined #ruby
randomubuntuguy has joined #ruby
ePirat_ has quit [Remote host closed the connection]
tomb has quit [Read error: Connection reset by peer]
thomas is now known as Thomas
ringotwo has quit [Remote host closed the connection]
dbgster has joined #ruby
austinbv1 has quit [Ping timeout: 244 seconds]
voodoofish430 has quit [Quit: Leaving.]
freeayu has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
mnaser has quit [Quit: Computer has gone to sleep.]
tomb has joined #ruby
gtuckerkellogg has joined #ruby
headius has quit [Quit: headius]
mohits has joined #ruby
sekati has joined #ruby
cakehero has joined #ruby
Spooner has quit []
frishi has quit [Quit: Leaving...]
tomb has quit [Ping timeout: 250 seconds]
perryh is now known as perry
JustinCampbell has quit [Remote host closed the connection]
subbyyy has joined #ruby
freeayu has quit [Ping timeout: 250 seconds]
adeponte has joined #ruby
iori has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
Chryson has joined #ruby
pen has quit [Remote host closed the connection]
fc has joined #ruby
williamcotton_ has joined #ruby
fc has left #ruby ["WeeChat 0.3.7"]
banisterfiend has quit [Ping timeout: 250 seconds]
williamcotton has quit [Ping timeout: 255 seconds]
williamcotton_ is now known as williamcotton
mobilegamelabs has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
freeayu has joined #ruby
mobilegamelabs has quit [Client Quit]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mobilegamelabs has joined #ruby
maletor has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
udante_ has quit [Quit: Leaving...]
radic_ is now known as radic
apok_ has joined #ruby
tiripamwe has quit [Ping timeout: 248 seconds]
apok has quit [Ping timeout: 240 seconds]
hunglin has left #ruby [#ruby]
apok_ has quit [Ping timeout: 246 seconds]
noganex has quit [Ping timeout: 246 seconds]
maxmmurphy has joined #ruby
Peregrinu5 has quit []
williamcotton has quit [Quit: williamcotton]
bgupta has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
noganex has joined #ruby
mrsolo has quit [Quit: Leaving]
smw_ has quit [Remote host closed the connection]
khakimov has joined #ruby
ringotwo has joined #ruby
Guest33108 has quit [Read error: Operation timed out]
twinturbo has quit [Quit: twinturbo]
akem has quit [Ping timeout: 265 seconds]
liuchong has joined #ruby
xclite_ has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
xclite__ has joined #ruby
hackingoff has joined #ruby
Tricks has joined #ruby
Guest18330 has joined #ruby
xclite__ has quit [Client Quit]
lkba has quit [Ping timeout: 248 seconds]
wilmoore has joined #ruby
nai has joined #ruby
minijupe has joined #ruby
<mjb2k> ged: I think that's great advice, it's exactly what I did to choose between Python and Ruby
tomb has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Transformer has joined #ruby
akem has joined #ruby
Transformer has quit [Excess Flood]
eywu has quit [Quit: Leaving.]
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
alek_b has quit [Read error: Operation timed out]
Eiam has quit [Read error: Operation timed out]
khakimov has quit [Quit: Computer has gone to sleep.]
alek_b has joined #ruby
yoklov has joined #ruby
mnaser has joined #ruby
manizzle has joined #ruby
invsblduck has quit [Ping timeout: 245 seconds]
SegFaultAX|work2 has joined #ruby
tomb has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikeycgto_ has joined #ruby
lkba has joined #ruby
tomb has joined #ruby
mikeycgto has quit [Ping timeout: 246 seconds]
kpshek has joined #ruby
friskd has joined #ruby
cyong has quit [Quit: Leaving.]
<hackingoff> Bundler/namespacing question: any clue why the ContextFreeGrammar.constants is showing nothing but VERSION, despite other things being defined? https://github.com/hackingoff/context-free-grammar/tree/master/lib
kpshek has quit [Ping timeout: 248 seconds]
williamherry has joined #ruby
<williamherry> what is the do nothing statement in ruby, is it pass?
<davidcelis> do nothing?
<davidcelis> in what context?
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<banisterfiend`> williamherry: ruby doesnt need that afaik
<banisterfiend`> williamherry: also, ruby doesn't have statements, everything is an expression
<williamherry> banisterfiend`, thanks
<hackingoff> You mean something like a no-op?
<williamherry> hackingoff, hes
<williamherry> yes
havenn has joined #ruby
Progster has joined #ruby
<williamherry> boobah, thank you
<banisterfiend`> williamherry: if oyu really need that put 'nil' by itself on a line
SegFaultAX|work2 has quit [Ping timeout: 252 seconds]
<bnagy> or # do nothing
stefanp_ has joined #ruby
<bnagy> cause, you know, doing nothing is kind of built into computers
<banisterfiend`> boobah: i really dont think a 'sleep' is teh right approach here... :P
<hackingoff> Ruby seems kind of high level to be needing an explicit no-op. I'm used to that being used to burn a fixed # of cycles in asm.
<boobah> banisterfiend`: yeah, it's kind of difficult to guess at what he wants
<hackingoff> Just having a line with nothing but "true" on it would also do nothing (assuming it's not in danger of being returned), but the real question is what your goal is.
dnyy has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<bnagy> williamherry: when is pass used in python? As in, why do they need an explicit statement to not do anything?
<bnagy> We have Thread.pass in ruby as well, but it's a hint to the scheduler that's only really relevant in multithreaded apps
<hackingoff> "pass is a null operation -- when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed..."
<banisterfiend`> bnagy: do u like this take on zenburn? http://cl.ly/243q1n2c2J360U2l1I1L
remmy444 has joined #ruby
<hackingoff> The only thing I could think of on that level of stubbing is passing an empty block.
<bnagy> oic.. needs to compensate for not having def...end and if ...end
<banisterfiend`> bnagy: they need it to create like emtpy class/method deifnitions
<banisterfiend`> iirc
<williamherry> python use pass because it not use end, i think, i just find out, in ruby just not write any thing mean do nothing
manizzle has quit [Read error: Connection reset by peer]
stefanp has quit [Ping timeout: 265 seconds]
manizzle has joined #ruby
<hackingoff> You can just do if x; end or class Y; end and be fine.
<hackingoff> pass might be a vestige of python's whitespace-sensitivity.
<bnagy> ... yes that's what everyone just said :)
minijupe has quit [Quit: minijupe]
<bnagy> banisterfiend`: you know how I don't click on shortened URLs? That goes double when they're from you :D
<bnagy> srsly though, I hate zenburn
<hackingoff> bnagy: Was trying to give him the direct syntax.
<banisterfiend`> bnagy: haha ok
<hackingoff> monokai ftw
<hackingoff> Tried solarized; couldn't stick to it.
banisterfiend` has quit [Remote host closed the connection]
<bnagy> solarized dark is an abortion
<hackingoff> I can't use light themes.
<any-key> I don't mind it sometimes, I love the light one for when I have my brightness down
<any-key> Solarized light is the only light theme I can use
<bnagy> "I'ma put some muddy blues and greens on this murky blue background, and then, maybe, have like BRIGHT FUCKING EYESTAB RED for quotation marks"
<ggreer> it probably depends on your monitor
<ggreer> solarized dark doesn't look good on my laptop screen, but on my main monitor it's nice
<bnagy> I use solarized light when I am working outside in the sun, same reason as any-key probably
mmokrysz has joined #ruby
<bnagy> I'm on a modified monokai now
<ggreer> I like the django theme
mmokrysz has left #ruby [#ruby]
tomb has quit [Ping timeout: 250 seconds]
<any-key> bnagy: pretty much
<bnagy> ST2 highlighting for interpolated strings is a bit broken, by default
<bnagy> also ivars
<hackingoff> Bonus: monokai goes well with the Sublime Text chrome.
<ggreer> in what language are quotes red in solarized dark? I'm only seeing light gray quotes
banisterfiend has joined #ruby
<ggreer> "def" is red tohugh
<bnagy> in sublime text 2 for ruby
<ggreer> ah. I'm using textmate
<bnagy> yeah, they messed up the colours I think
hemanth has quit [Read error: Connection reset by peer]
<ggreer> sublime text can use textmate themes, right?
<hackingoff> ggreer: Was about to say that.
<ggreer> maybe grab the textmate solarized theme and try it out in st2?
<ggreer> great lemmings think alike
<bnagy> but I just spent ages making monokai better :(
Thomas is now known as thomas
sharenothing has quit [Quit: .]
hackingoff has quit [Remote host closed the connection]
tomb has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
williamcotton has joined #ruby
cakehero has joined #ruby
cakehero has quit [Client Quit]
cakehero has joined #ruby
cakehero has quit [Client Quit]
cakehero has joined #ruby
cakehero has quit [Remote host closed the connection]
remmy444 has left #ruby ["Leaving"]
bglusman has joined #ruby
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby
cakehero has joined #ruby
thomas is now known as tdubz
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
tdubz is now known as thomas
Nick_ has joined #ruby
Nick_ is now known as Guest65037
cakehero has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
CheeToS has quit []
hemanth has joined #ruby
austinbv2 has joined #ruby
coderhut has joined #ruby
vitoravelino is now known as vitoravelino`afk
chson has quit [Remote host closed the connection]
dnyy has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
Tricks has quit [Read error: Connection reset by peer]
Tricks_ has joined #ruby
Tricks_ has quit [Read error: Connection reset by peer]
Tricks has joined #ruby
maletor has joined #ruby
dnyy has quit [Remote host closed the connection]
mohits has quit [Ping timeout: 255 seconds]
Guest65037 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
hemanth_ has joined #ruby
InspiredSoul has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
univers has quit [Remote host closed the connection]
nai_ has joined #ruby
mdszy has quit [Ping timeout: 240 seconds]
olrrai has quit [Quit: Saliendo]
nai has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
mockra has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
hemanth_ has quit [Read error: Connection reset by peer]
Progster has quit [Ping timeout: 272 seconds]
hemanth_ has joined #ruby
InspiredSoul has quit [Quit: bye]
minijupe has joined #ruby
mikeric has joined #ruby
igotnolegs has joined #ruby
mockra has quit [Remote host closed the connection]
t3hk0d3|2 has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
t3hk0d3 has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
banisterfiend` has joined #ruby
CheeToS has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
digitalcakestudi has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Ping timeout: 264 seconds]
jrist has joined #ruby
d-snp has quit [Ping timeout: 240 seconds]
d-snp has joined #ruby
freeayu has quit [Ping timeout: 265 seconds]
Agis__ has joined #ruby
mikeric has quit [Quit: mikeric]
Beoran_ has joined #ruby
RainbowDashh has joined #ruby
freeayu has joined #ruby
d3vic3 has quit [Ping timeout: 244 seconds]
minijupe has quit [Quit: minijupe]
d3vic3 has joined #ruby
cpruitt has quit [Quit: cpruitt]
dbgster has quit [Quit: dbgster]
hemanth_ is now known as hemanth
dnyy has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
xnm has joined #ruby
khakimov has joined #ruby
rakunHo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ABK has quit [Ping timeout: 265 seconds]
Fido has joined #ruby
maletor has joined #ruby
AlbireoX has quit [Quit: IRC crashed.]
AlbireoX has joined #ruby
banisterfiend has joined #ruby
ABK has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
brian- has quit [Ping timeout: 252 seconds]
anothervenue has quit [Read error: Connection reset by peer]
cherrypeel has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
brian- has joined #ruby
dnyy has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
anothervenue has joined #ruby
adeponte has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
kawaguchi has joined #ruby
hemanth has joined #ruby
invsblduck has joined #ruby
fbernier has quit [Ping timeout: 246 seconds]
Fido has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
mwilson_ has quit [Excess Flood]
ringotwo has quit [Remote host closed the connection]
mwilson_ has joined #ruby
countdigi has quit [Read error: Connection reset by peer]
<denstark> Hello! What book would you recommend to a sysadmin learning ruby for the first time? I see the ebook here for $25, is it worth it? http://pragprog.com/book/ruby3/programming-ruby-1-9
<passbe> why would NET::HTTP on a post request not use zlib to gzip / deflate the response, looking at the code a get request does deflate the response ?
mjb2k has quit [Quit: Leaving]
<fowl> denstark, the original pickaxe is still good
AlbireoX has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: leaving]
liuchong has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
liuchong has joined #ruby
<denstark> fowl: is that the 1.8 book?
<fowl> denstark, it might be good to run into the differences
<fowl> hit them like a wall
<fowl> feel them
<denstark> haha
<denstark> ok
ananthakumaran has quit [Quit: Leaving.]
AlbireoX has joined #ruby
invsblduck has quit [Quit: Lost terminal]
graspee has quit [Quit: leaving]
jeff_sebring has quit [Quit: Leaving]
jeff_sebring has joined #ruby
kduensing has joined #ruby
itnomad has quit [Quit: Leaving]
mockra has joined #ruby
kduensing has quit [Client Quit]
tonini has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Chryson has quit [Quit: Leaving]
randomubuntuguy has quit [Ping timeout: 246 seconds]
lolmaus has joined #ruby
<dekz> Is there a way to 'parse' a sinatra app file and list the routes it has defined, similar to rake -T?
manhunter has joined #ruby
<manhunter> Hi, i don't like the inherit syntax of ruby, can you change it?
<manhunter> class a < Core
<manhunter> Can you change/make it to class a extends Core ?
manhunter is now known as tintin
cherrypeel has quit [Quit: Leaving]
ghanima has joined #ruby
xclite_ has quit [Remote host closed the connection]
mikeycgto_ has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
savage- has joined #ruby
gtuckerkellogg has joined #ruby
tiripamwe has joined #ruby
ghanima has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ghanima has joined #ruby
strnx has quit [Excess Flood]
ringotwo has joined #ruby
Agis__ has quit [Quit: Agis__]
CheeToS has left #ruby [#ruby]
williamcotton has quit [Quit: williamcotton]
strnx has joined #ruby
ringotwo has quit [Remote host closed the connection]
quest88 has joined #ruby
yxhuvud has joined #ruby
ringotwo has joined #ruby
ananthakumaran has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
cjk101011 has joined #ruby
cjk101011 has quit [Client Quit]
Hanmac has joined #ruby
williamcotton has joined #ruby
Cicloid has quit [Remote host closed the connection]
<dekz> tintin: I believe you're going to have to change the parser to accept those values
Cicloid has joined #ruby
ryanf has joined #ruby
Cicloid has quit [Read error: Connection reset by peer]
Cicloid_ has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<burgestrand> dekz: you could require your application and look at Sinatra::Application.routes
mneorr has joined #ruby
<burgestrand> (or if it’s a modular-style application, use .routes on that)
burgestrand has quit [Quit: Leaving.]
wobr has joined #ruby
vectorshelve has joined #ruby
<dekz> thanks burgestrand
yoklov has quit [Quit: bye!]
wobr has quit [Quit: Leaving.]
cakehero has joined #ruby
quest88 has quit [Quit: quest88]
andrewhl has quit [Remote host closed the connection]
coderhut has quit [Ping timeout: 245 seconds]
cakehero has quit [Ping timeout: 244 seconds]
webusnix has joined #ruby
iaj has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 246 seconds]
fantazo has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
Eldariof-ru has joined #ruby
arturaz has joined #ruby
gtuckerkellogg has quit [Ping timeout: 256 seconds]
<bfig> question about classes: can i redefine parts of the class, or add attributes just like that?
kawaguchi has quit [Quit: Leaving]
subbyyy has quit [Quit: Leaving.]
hemanth has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
TPFC-SYSTEM has joined #ruby
cha1tanya has joined #ruby
ringotwo has quit [Remote host closed the connection]
<cha1tanya> hey what is the difference between to_sym and intern
<banisterfiend> bfig: Yeah.
gtuckerkellogg has joined #ruby
adeponte has quit [Remote host closed the connection]
<bfig> how do i do it banisterfiend ?
<banisterfiend> bfig: just open teh clss again
<banisterfiend> class YourClass; def what_you_want_to_add() end; end
<bfig> cool
adeponte has joined #ruby
jhunter has quit [Read error: Operation timed out]
<bfig> i think i can cram that into the interp just fine
moshee has joined #ruby
<dekz> cha1tanya: nothing
<cha1tanya> dekz: so its only convention right?
<cha1tanya> dekz: to_sym over intern or reverse ?
mikeric has joined #ruby
mikeric has quit [Client Quit]
<dekz> cha1tanya: according to docs they are the same method
<dekz> cha1tanya: I would choose to_sym, only because that seems obvious what the method does
<cha1tanya> dekz: ya thats true :)
<dekz> cha1tanya: no idea where the name 'intern' came from
jhunter has joined #ruby
<cha1tanya> dekz: ya doc says intern came first and then to_sym came
artOfWar_ has joined #ruby
darthdeus has joined #ruby
dsa has joined #ruby
savage- has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 252 seconds]
EzeQL has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
tonini has joined #ruby
bluOxigen has joined #ruby
ananthakumaran has joined #ruby
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
timonv has joined #ruby
_Setsuna_ has quit [Changing host]
_Setsuna_ has joined #ruby
artOfWar has joined #ruby
moted has quit [Remote host closed the connection]
twinturbo has joined #ruby
kawa_xxx has joined #ruby
dsa has quit []
moted has joined #ruby
EzeQL has joined #ruby
artOfWar_ has quit [Ping timeout: 240 seconds]
sekati has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
webusnix has quit [Ping timeout: 244 seconds]
flype has joined #ruby
workmad3 has joined #ruby
hukl has joined #ruby
cha1tanya is now known as prathamesh`
tiripamwe has quit [Ping timeout: 246 seconds]
mockra has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
ghanima has quit [Ping timeout: 244 seconds]
niklasb has joined #ruby
Jackneill has joined #ruby
mockra has joined #ruby
<vectorshelve> how to correct the 9th line from getting commented ? -> http://pastie.org/4191491
darthdeus has quit [Quit: Leaving...]
jprovazn_away is now known as jprovazn
nilg has joined #ruby
Eldariof-ru has quit []
perry is now known as perryh_away
<Hanmac> vectorshelve one way would be replace " with \" or use %r{^I should see "([^"]*)"$}
<Hanmac> vectorshelve ... sorry the first is wrong
<Hanmac> its only an error in the pastie parser ... (i think)
<vectorshelve> Hanmac: so what could be line 9 correctly ?
<vectorshelve> Then /^I should see "([^"]*)"$/ do |greeting| Hanmac this is it as of now so the below lines are becoming comments
shadoi has quit [Quit: Leaving.]
<Hanmac> as i say ... your like is currect, only the pastie parser is to dump
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
<vectorshelve> Hanmac: I didnt get you.. how can I correct it ? :)
mockra has quit [Remote host closed the connection]
<Hanmac> you cant, pastie has no error reporting :D
<Axsuul> I have an array of about 4,500 integers, and I need to check if a specific integer is in the array. What is the most performant way of doing this? Should I be making a hash with the key being each integer and checking if the key exists? Or is .include? fine
<bnagy> you could use a Set
<bnagy> which is more or less what you suggested (it uses Hash)
<bfig> Axsuul, i don't know if your question pertains ruby specifically but i'd suggest amortizing the cost of doing that search and make ordered inserts
<Axsuul> Yep, this is a ruby question
<Axsuul> Cool, looks like Set is what I want
jeff_sebring has quit [Quit: Leaving]
<bnagy> even if you keepa sorted array you'd still have to binary search or something
<Axsuul> thanks bnagy
dhruvasagar has joined #ruby
mneorr has left #ruby [#ruby]
mneorr has joined #ruby
<bnagy> if entries are unique Set is dfefinitely better
<Axsuul> aye, they are unique
mneorr has left #ruby [#ruby]
mneorr has joined #ruby
<bnagy> I actually do a lot of stuff with large sets of integeers, so I got some assorted libs for compression, serialisation etc
chriskk has quit [Quit: chriskk]
xnm has quit [Ping timeout: 246 seconds]
webusnix has joined #ruby
<Axsuul> Ah neat
<Axsuul> 4,500 isnt considered large right? :p
<bnagy> not so much, no
hoelzro|away is now known as hoelzro
bfgun has joined #ruby
burgestrand has joined #ruby
Juul has joined #ruby
Jackneill has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby
dekroning has joined #ruby
bfig has quit [Ping timeout: 265 seconds]
Jackneill has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
AlbireoX has quit [Remote host closed the connection]
t3hk0d3 has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
AlbireoX has joined #ruby
andrewhl has joined #ruby
wilmoore has quit [Remote host closed the connection]
Tricks has joined #ruby
t3hk0d3|2 has quit [Ping timeout: 252 seconds]
darthdeus has joined #ruby
Rochefort has joined #ruby
gilead has joined #ruby
federic has joined #ruby
TPFC-SYSTEM has joined #ruby
burgestrand has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby
schovi has joined #ruby
prathamesh` has left #ruby ["Leaving"]
joshman_ has quit [Quit: Computer has gone to sleep.]
igotnolegs has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Ping timeout: 246 seconds]
Guest23349 has joined #ruby
kawa_xxx has quit [Ping timeout: 245 seconds]
zommi has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
qwerxy has quit [Quit: offski]
andrewhl has quit [Remote host closed the connection]
freeayu has joined #ruby
mohits has quit [Remote host closed the connection]
ph^ has joined #ruby
apeiros_ has joined #ruby
wobr has joined #ruby
jamesaxl has joined #ruby
KevinSjoberg has joined #ruby
hukl has quit [Quit: Leaving...]
mneorr has quit [Quit: Leaving.]
banisterfiend has quit [Read error: Connection reset by peer]
kawa_xxx has joined #ruby
ryanf has quit [Quit: leaving]
EzeQL has quit [Ping timeout: 265 seconds]
elhu has joined #ruby
tvw has joined #ruby
banisterfiend has joined #ruby
Eldariof-ru has joined #ruby
Helius has joined #ruby
artOfWar has quit [Ping timeout: 255 seconds]
fixl has joined #ruby
Gavilan has left #ruby [#ruby]
gtuckerkellogg has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
zodiac1111 has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
zommi_ has joined #ruby
zommi has quit [Ping timeout: 244 seconds]
Guest23349 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
jimeh3 has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
saschagehlich has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
zodiac1111 has joined #ruby
stephenjudkins has joined #ruby
webusnix has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
dnyy has quit [Remote host closed the connection]
bier has quit [Read error: Operation timed out]
clockwize has joined #ruby
timonv has joined #ruby
t3hk0d3|2 has joined #ruby
davidpk has joined #ruby
bier|tp has quit [Ping timeout: 246 seconds]
bosphorus has joined #ruby
jeff_sebring has joined #ruby
t3hk0d3 has quit [Ping timeout: 264 seconds]
hukl has joined #ruby
the-newsman has joined #ruby
<the-newsman> hello guys
<the-newsman> is there good book for ruby network programming ?
liluo has quit [K-Lined]
kawa_xxx has quit [Remote host closed the connection]
blacktulip has joined #ruby
<bnagy> IRL you should probably be using one of the 273 abstractions
kawa_xxx has joined #ruby
<the-newsman> def getHeader(host,port = nil)
<the-newsman> port = port || 80
<the-newsman> why would we usually or port and 80 ?
bier has joined #ruby
<hoelzro> the-newsman: because it sets port to 80 if it's not set
<bnagy> if the user doesn't specify a port it will get the default value (nil)
qwerxy has joined #ruby
<hoelzro> I don't see why they didn't do def getHeader(host, port = 80), though
adeponte has quit [Remote host closed the connection]
<bnagy> then nil || 80 assigns 80
schovi has quit [Remote host closed the connection]
berserkr has joined #ruby
<bnagy> it's bad ruby
bier|tp has joined #ruby
schovi has joined #ruby
<the-newsman> but 90 || 80 is not 80
saschagehlich has quit [Quit: saschagehlich]
<hoelzro> bnagy: which? my example? or port = port || 80?
<bnagy> port = port || 80
<the-newsman> is there any partiular reason why programs usually or port with 80 ?
<bnagy> I mean use a proper default, like you said, or port ||= 80
<hoelzro> ok, makes sense
<hoelzro> the-newsman: HTTP?
<bnagy> it's not or'ing anything, the-newsman
<bnagy> it's a logical or, not bitwise or ( which is | )
<the-newsman> bnagy do u mean it is 80 or nil ?
Spooner has joined #ruby
subtle has joined #ruby
<bnagy> nil || 80, which will evaluate to 80
vjacob has joined #ruby
<the-newsman> and 90 || 80 = ?
<hoelzro> 90
<bnagy> try it in irb / pry
<hoelzro> the-newsman: || evaulates the RHS only if the LHS is falsy
<hoelzro> it's equivalent to lhs ? lhs : rhs
<hoelzro> &&, along those same lines, is equivalent to lhs ? rhs : lhs
etehtsea has joined #ruby
<the-newsman> thanx hoelzro
hukl has quit [Quit: Linkinus - http://linkinus.com]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rakunHo has quit [Remote host closed the connection]
subtle has left #ruby [#ruby]
subtle has joined #ruby
subtle has quit [Quit: leaving]
Silas_ has joined #ruby
Silas_ has quit [Client Quit]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
Markvilla has joined #ruby
subtle has joined #ruby
charliesome has joined #ruby
plastics has joined #ruby
rohit has joined #ruby
zommi_ has quit [Quit: No Ping reply in 180 seconds.]
zommi has joined #ruby
banseljaj is now known as imami|afk
subtle has quit [Client Quit]
stephenjudkins has quit [Quit: stephenjudkins]
ramblex has joined #ruby
clockwize has quit [Quit: clockwize]
plastics has quit [Ping timeout: 255 seconds]
kawa_xxx has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
kawa_xxx has joined #ruby
rohit has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
iamlacroix has joined #ruby
Markvilla has quit [Ping timeout: 245 seconds]
cousine has joined #ruby
kawa_xxx_ has joined #ruby
kawa_xxx has quit [Ping timeout: 264 seconds]
thone_ has joined #ruby
tatsuya_o has joined #ruby
schickung has joined #ruby
thone has quit [Ping timeout: 264 seconds]
JStoker has joined #ruby
kawa_xxx_ has quit [Ping timeout: 240 seconds]
williamcotton has quit [Quit: williamcotton]
zz_chrismcg is now known as chrismcg
zeroXten has joined #ruby
<zeroXten> so, what is the best way to do stuff with IP addresses in ruby? ipaddr seems reasonable, except that it doesn't seem to be able to just return a mask (i'd have to substring or something) and it certainly doesn't easily return CIDR notation
welterde has quit [Ping timeout: 264 seconds]
d3vic3 has quit [Quit: leaving]
QKO has quit [Read error: Connection reset by peer]
QKO has joined #ruby
jeff_sebring has quit [Quit: Leaving]
jeff_sebring has joined #ruby
RudyValencia has joined #ruby
mvangala_ has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
Ethan has quit [Read error: Connection reset by peer]
<zeroXten> ok, so ipaddr is amazingly useless
tonini has quit [Remote host closed the connection]
<burgestrand> It’s awesome for testing ip ranges
Ethan has joined #ruby
<burgestrand> inclusion in ip ranges, that is
ixti has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
justinmcp has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
<zeroXten> but it seems to be pretty much entirely limited to that
vlad_starkov has joined #ruby
<banisterfiend> Paradox: self-pig?
<Paradox> ?
Juul has quit [Ping timeout: 240 seconds]
qwerxy has quit [Ping timeout: 244 seconds]
Tricks has quit [Ping timeout: 240 seconds]
Tricks has joined #ruby
rohit has joined #ruby
baphled has joined #ruby
eurek has joined #ruby
schovi has quit [Remote host closed the connection]
schovi has joined #ruby
Shrink has quit [Ping timeout: 255 seconds]
pk1001100011 has joined #ruby
nari has joined #ruby
<tintin> hi
schovi has quit [Remote host closed the connection]
<tintin> dekz: Which file to change to take that value for parser?
schovi has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
tintin has left #ruby [#ruby]
<zeroXten> oh wow, even ruby-ip can't handle "10.1.1.1/255.255.255.0"
wubino has joined #ruby
fermion has joined #ruby
rohit has quit [Ping timeout: 246 seconds]
jason^ has quit [Ping timeout: 244 seconds]
beilabs_ has quit [Ping timeout: 250 seconds]
qwerxy has joined #ruby
Kesava has quit [Ping timeout: 246 seconds]
jason^ has joined #ruby
Rochefort has quit [Remote host closed the connection]
Juul has joined #ruby
Agis__ has joined #ruby
<zeroXten> ipaddress it is
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
ixti has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
monkegjinni has joined #ruby
saschagehlich has joined #ruby
Shrink has joined #ruby
justinmcp has joined #ruby
berkes has joined #ruby
rohit has joined #ruby
<ij> banisterfiend: how exactly did you get pry to not block the thread?
<banisterfiend> ij: im not doing anything special
<banisterfiend> we're just using readline
akem has quit [Ping timeout: 244 seconds]
vjacob has quit [Quit: This computer has gone to sleep]
<banisterfiend> ij: y? what are you doing?
mneorr has joined #ruby
<ij> I want to run a thread behind pry, that'd do my magic.
qwerxy has quit [Ping timeout: 244 seconds]
<ij> But it's blocking, are you saying it isn't blocking for you?
<banisterfiend> ij: are you on osx?
<ij> Yup.
<banisterfiend> ij: then it's because you're using libedit
<banisterfiend> one sec
ananthakumaran has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
vickMania has joined #ruby
<ij> Okay, I'll try to accompllish that, but giggle at the wikki not telling about ^L for cleaning session.
Progster has joined #ruby
<banisterfiend> ij: if the wiki is missing something, add it homie :)
qwerxy has joined #ruby
<ij> I'm at work, I shouldn't really even be writing this.
<banisterfiend> ok np
<ij> But will try to do. :] Thanks.
Squarepy has joined #ruby
berkes has quit [Quit: Ex-Chat]
ixti has joined #ruby
jprovazn has quit [Ping timeout: 252 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
schaary has joined #ruby
lkba has quit [Quit: Bye]
<wubino> are there any reccomended csv libraries?
<apeiros_> the one from stdlib is good
udante has joined #ruby
udante has quit [Client Quit]
vickMania has quit [Read error: Connection reset by peer]
<shevy> hehehe
Foxandxss has joined #ruby
<wubino> apeiros_: then thats the one I will use
<ij> Do you #ruby frequents use rvm or some other tool?
<banisterfiend> ij: i use to like rvm but recently it's started annoying me, i think i'll switch to rbenv or rbfu soon
<apeiros_> banisterfiend: um, nope
<apeiros_> what makes you think it was? o0
<shevy> ack
<shevy> don't say you dared click on it
<apeiros_> :)
<apeiros_> I trust banisterfiend! he'd never paste any inappropriate link! right, banisterfiend? :D
jprovazn has joined #ruby
<banisterfiend> everything i post is bang on key
ramblex has quit [Quit: ramblex]
schaary has left #ruby [#ruby]
<ij> If I were to parse out a ruby block(whether it's a class or a method/module) from ruby source at pos X, what would you suggest me to do so?
<banisterfiend> ij: use pry, we have a tonne of tricks :)
<banisterfiend> ij: i can extract a 2800 line class definition in 0.25 seconds each time without memoization or any form of caching
SHUPFS has joined #ruby
<ij> So you're saying pry can extract the closest block with the appropriate surrounding Module/Class definitons? (I also need those)
<banisterfiend> ij: you dont have to be inside pry itself, just require 'pry' and then Pry::Code.from_file("your_file.rb").expression_at(line_number)
schovi has quit [Ping timeout: 265 seconds]
schovi has joined #ruby
<ij> Sweet. Damn, I'll check that out.
<banisterfiend> ij: if you just want to extract out a valid ruby expression starting from a given file at a given line, use what i gave u above ^
<banisterfiend> if u want to extract out a class/module then use
<banisterfiend> Pry::WrappedModule(YourModule).source
<banisterfiend> it'll try its best to grab the module's source code,no matter what file it's in
<banisterfiend> and it does so really efficiently using a bunch of tricks
<banisterfiend> ij: this is all HEAD btw, not sure we have this stuff on the current gem
<ij> Nice, I'll surely check it out.
<ij> No probs, I'll :git
ahuman has quit [Quit: No Ping reply in 180 seconds.]
Shrink has quit [Ping timeout: 250 seconds]
ahuman has joined #ruby
SHUPFS has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
schovi_ has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
blacktulip has quit [Read error: Connection reset by peer]
schovi has quit [Ping timeout: 264 seconds]
blacktulip has joined #ruby
beilabs_ has joined #ruby
Shrink has joined #ruby
Tricks has quit [Remote host closed the connection]
nai_ has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
Huis has joined #ruby
wargasm has joined #ruby
<wubino> if I write in rescue Exception into a def will the method return the Exception object?
Ethan has quit [Read error: Connection reset by peer]
<Paradox> banisterfiend, is there any way to dump my current session's pry history into the editor so i could use it as a script?
QuQua has joined #ruby
<banisterfiend> Paradox: look at hist --save
<QuQua> hello
fearoffish has joined #ruby
Ethan has joined #ruby
Juul has quit [Ping timeout: 244 seconds]
<banisterfiend> wubino: no, it'll return the expression in the rescue
Rochefort has joined #ruby
atmosx has joined #ruby
QuQua has quit [Client Quit]
<wubino> how can I get the err object?
Huis has left #ruby [#ruby]
<banisterfiend> wubino: rescue Exception => e
<banisterfiend> e
SHUPFS has joined #ruby
SHUPFS has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
jprovazn has quit [Quit: Leaving]
<banisterfiend> Paradox: also look at save-file
<Paradox> thanks
clockwize has joined #ruby
jamesaxl has quit [Ping timeout: 264 seconds]
<banisterfiend> Paradox: though maybe this would do what u wnat: edit -i 1..-1
<Paradox> thats it!
<Paradox> thanks
akem has quit [Ping timeout: 248 seconds]
<banisterfiend> Paradox: that's more intelligent than just dumping raw readline history
az7ar has joined #ruby
<banisterfiend> since -i only takes full expressions, so it leaves out broken code/incomplete epxressions
<banisterfiend> and it leaves out commands
<Paradox> yup, it gets stuff that i did in edit too
<banisterfiend> yeah
<banisterfiend> edit -i is my gf
<Paradox> i've found that opening a line in edit saves a lot of time
<banisterfiend> Paradox: just typing 'edit' by itself you mean?
<Paradox> yeah
<Paradox> in any general case
<banisterfiend> yeah, i normally use it when i need to enter more than 3-4 lines
<Paradox> easier to fire up sublime text, fix a typo, and exit out than to deal with append-line
<banisterfiend> hehe yeah
cousine has quit [Read error: Connection reset by peer]
<Paradox> i cant get help edit to work though
<banisterfiend> some guys want me to get rid of amend-line for that reason
<banisterfiend> but i like amend-line !
<Paradox> whats its method signature?
<Paradox> ? edit spits errors
<banisterfiend> Paradox: what do u mean u cant get it to work?
cousine has joined #ruby
<Paradox> to look up the help on it
<banisterfiend> Paradox: it's not a method, it's a comamnd
<banisterfiend> Paradox: type: edit -h
sk87 has left #ruby [#ruby]
<Paradox> there we go
<Paradox> thanks :)
TheHairyWoodsman has joined #ruby
<banisterfiend> Paradox: we're probably going to make ? work on methods and commands soon enough
<Paradox> cool
<banisterfiend> currently though it's only for ruby methods / classes
ramblex has joined #ruby
<Paradox> i'm looking forward to the release that fixes ^U with coolline
<banisterfiend> and 'help' or -h is for commands
<banisterfiend> Paradox: has Mon_Ouie fixed it in coolline yet?
<Paradox> let me check
<Paradox> not in the gem, no
<Paradox> last release april 3rd
bashdy has joined #ruby
<Paradox> but i think its something you need to do in pry-coolline
<Paradox> but i cant remember
<Paradox> i'll bother Mon_Ouie about what it was exactly
<banisterfiend> Paradox: file a bug here: https://github.com/pry/pry/issues
<banisterfiend> otherwise ill forget to do it
<Paradox> hell, i'll give you a pull request when i figure it out
<banisterfiend> Paradox: haveu looked at pry-them yet?
<banisterfiend> pry-theme
<Paradox> no
<Paradox> oh
<Paradox> theme
<Paradox> i was thinking of giant ants for a second
<Paradox> no i havent
<Paradox> hmm
<Paradox> i'll have to get this and make a Tomorrow Night theme
rohit has quit [Ping timeout: 244 seconds]
<Paradox> not tonight though
<Paradox> and probably not this week
<banisterfiend> Paradox: let me show u the theme im using
<Paradox> ive been bashing my skull into bits trying to figure out how to make an eventmachine based api for ttfm
<banisterfiend> Paradox: http://cl.ly/243q1n2c2J360U2l1I1L
<Paradox> tricky thing is…if i make the calls by hand by running the em in a thread… it works fine
<Paradox> but if i let a script do it
<Paradox> ttfm just closes the socket
<Paradox> http://i.imgur.com/JpmcK.png is my theme
<banisterfiend> Paradox: i mean, that's my pry theme, my editor theme is a bit different
<Paradox> ah
<banisterfiend> Paradox: nice themethough
<Paradox> i like to have homogenity across my tools
<the-newsman> Paradox msf::exploit::remote = ?
<banisterfiend> i'll try to get kyrylo to port it
<Paradox> nah i can do it
<Paradox> should be a fun simple project
<Paradox> the colors itself are by chris kempson
<Paradox> i just maintain a fork since he doesn't seem to update the textmate theme anymore
<the-newsman> Paradox
<Paradox> mine adds diff colors and similar
<Paradox> the-newsman, sup?
nari has quit [Ping timeout: 245 seconds]
<the-newsman> <the-newsman> Paradox msf::exploit::remote = ?
<wubino> how do I get bashrc to load rvm?
<Paradox> i dont know what you're asking
<the-newsman> i want to understand this part of code
<banisterfiend> Paradox: i think he's high
<Paradox> it would appear that he is in some way intoxicated
<banisterfiend> Paradox: he's been injecting marijuana leaves directly into his veins
ksinkar has quit [Ping timeout: 250 seconds]
<Paradox> good way to get a heart attack
Kesava has joined #ruby
<the-newsman> Paradox , can i /query u ?
<Paradox> not till you've come back to earth
<the-newsman> i am on earth
prtksxna has joined #ruby
<the-newsman> i never left it, yet
<Paradox> the-newsman, no, you're covered in spiders
prtksxna has quit [Remote host closed the connection]
eurek has quit [Quit: Computer has gone to sleep.]
<Paradox> banisterfiend, know of any rubygems/libs that work for android like rubymotion does for iOS?
<Paradox> i see several blurbs about jruby
<Paradox> but none are quite like rubymotion
atmosx has quit [Ping timeout: 240 seconds]
edzhelyov has joined #ruby
Hanmac has joined #ruby
edzhelyov has left #ruby [#ruby]
TheHairyWoodsman has left #ruby [#ruby]
<banisterfiend> Paradox: ruboto
<banisterfiend> but it's not as polished afaik
dhruvasagar has quit [Ping timeout: 245 seconds]
<Paradox> also, pry is the only cli app, other than ssh or maybe god, that i ever see this when exiting: http://i.imgur.com/N1taC.png
dhruvasagar has joined #ruby
<Paradox> hehe
iocor has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
Kesava has quit [Ping timeout: 250 seconds]
<Xethron> Whats the easiest way to convert text to a non escapable URL friendly string.....
saschagehlich has joined #ruby
<Xethron> Like I have... www.com/query?input=#{string}&meh=mah&.....
<Xethron> How do I convert " " to %20 and all that and make sure they can't add & or escape that part....
<Paradox> URI
<burgestrand> Xethron: CGI.escape
<Paradox> or that
<burgestrand> There’s a difference
<Paradox> yeah
<burgestrand> I forgot it, but it’s important :p
werdnativ has quit [Quit: werdnativ]
<Xethron> I'm using the uri gem
az7ar has quit [Ping timeout: 264 seconds]
<burgestrand> Xethron: http://codepad.org/FOKYlzTz
<Xethron> burgestrand: thanks!
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<burgestrand> Paradox: ah, yes, URI.escape only escapes values to make the URI valid, but it does not escape characters that ought to be escaped when it comes to keys and values in query strings (e.g. ?, =, &)
<Paradox> ah
<Paradox> yeah
<Paradox> URI.escape is for YOUR dealing with urls
<Paradox> such as with Net::HTTP and craps
* burgestrand nods
<burgestrand> Not confusing at all
* burgestrand coughs
ph^ has quit [Remote host closed the connection]
lxsameer has quit [Max SendQ exceeded]
ph^ has joined #ruby
Agis__ has quit [Quit: Agis__]
eurek has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
mohits has quit [Read error: No route to host]
az7ar has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
liuchong has quit [Ping timeout: 246 seconds]
cousine has quit [Remote host closed the connection]
mucker has joined #ruby
nanderoo has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
thecreators has joined #ruby
clockwize has quit [Quit: clockwize]
Progster has quit [Read error: Operation timed out]
pk1001100011 has quit [Ping timeout: 246 seconds]
Agis__ has joined #ruby
Agis__ has quit [Client Quit]
pk1001100011 has joined #ruby
MekkisScreen has quit [Ping timeout: 248 seconds]
icrazyhack has joined #ruby
emmanuelux has joined #ruby
EzeQL has joined #ruby
Markvilla has joined #ruby
Markvilla has quit [Client Quit]
mneorr has left #ruby [#ruby]
mneorr has joined #ruby
Markvilla has joined #ruby
Progster has joined #ruby
lamks has joined #ruby
mneorr has quit [Quit: Leaving.]
saschagehlich has quit [Read error: Connection reset by peer]
Markvilla has quit [Client Quit]
saschagehlich has joined #ruby
Markvilla has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
Markvilla has quit [Client Quit]
iaj has joined #ruby
Markvilla has joined #ruby
Markvilla has quit [Client Quit]
Markvilla has joined #ruby
jprovazn has joined #ruby
gtuckerkellogg has joined #ruby
liluo has joined #ruby
mnaser has joined #ruby
eurek has quit [Quit: Computer has gone to sleep.]
[Neurotic] has quit [Quit: Leaving]
saschagehlich_ has joined #ruby
brendan` has joined #ruby
<banisterfiend> Paradox: ping
neglesaks has joined #ruby
<banisterfiend> Paradox: can u show me a screenshot of your theme including ivars
<apeiros_> a paradox banisterping
<banisterfiend> :))
mobilegamelabs has joined #ruby
<the-newsman> what does that mean "class Metasploit3 < Msf::Exploit::Remote" ?
<the-newsman> can u kindly explain it to me ?
<hoelzro> the-newsman: Metasploit3 is a subclass of Msf::Exploit::Remote
<the-newsman> hoelzro what is Msf ?
mobilegamelabs has quit [Client Quit]
<the-newsman> module ?
saschagehlich has quit [Ping timeout: 246 seconds]
saschagehlich_ is now known as saschagehlich
Criztian has joined #ruby
mobilegamelabs has joined #ruby
fbernier has joined #ruby
<sepp2k> the-newsman: Either that or a class.
jstew has joined #ruby
justinmcp has quit [Remote host closed the connection]
krusty_ar has joined #ruby
justinmcp has joined #ruby
krusty_ar_ has joined #ruby
tommyvyo has joined #ruby
jxpx777 has joined #ruby
mdszy has joined #ruby
Hello has joined #ruby
MatthewGA has quit [Quit: Leaving]
tommyvyo has quit [Client Quit]
ij has quit [Quit: WeeChat 0.3.8]
nari has joined #ruby
neglesaks has quit [Quit: Leaving]
jxpx777 has quit [Client Quit]
plastics has joined #ruby
<hoelzro> the-newsman: I have no idea
<hoelzro> I've never seen it
workmad3 has quit [Ping timeout: 265 seconds]
strife25 has joined #ruby
Helius has quit [Remote host closed the connection]
unixabg has left #ruby [#ruby]
mnaser has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
welterde has joined #ruby
wubino has quit [Quit: Leaving]
dekroning has quit [Quit: leaving]
liuchong has joined #ruby
vitoravelino`afk is now known as vitoravelino
Morkel has quit [Quit: Morkel]
Targen has joined #ruby
Targen_ has quit [Ping timeout: 245 seconds]
elhu has quit [Ping timeout: 240 seconds]
elhu has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
krusty_ar has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 252 seconds]
crankycoder has joined #ruby
tommyvyo has joined #ruby
Helius has joined #ruby
mneorr has joined #ruby
pygospa has quit [Ping timeout: 246 seconds]
ij has joined #ruby
lkba has joined #ruby
eurek has joined #ruby
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
elhu_ has joined #ruby
ixti has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
pygospa has joined #ruby
subbyyy has joined #ruby
elhu has quit [Ping timeout: 240 seconds]
carloslopes has joined #ruby
lorandi has joined #ruby
zodiac1111 has quit [Ping timeout: 246 seconds]
RainbowDashh has joined #ruby
jamesaxl has joined #ruby
Hello has quit []
vectorshelve has quit [Quit: Page closed]
flype has joined #ruby
Spooner has quit [Ping timeout: 246 seconds]
williamherry has quit [Ping timeout: 240 seconds]
itnomad has joined #ruby
geekbri has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Kesava has joined #ruby
ethanol has joined #ruby
clockwize has joined #ruby
<ethanol> I'm trying to understand, what does x |= y do? (need to understand so I can port it to javascript, but ruby manual does not mention it)
<ethanol> I'm assuming it is something with bits?
<matled> ethanol: "x |= y" is "x = x | y" and "x | y" is (for integers) bitwise or.
jgarvey has joined #ruby
<ethanol> hrm, I tried x = x | y in javascript, no success >< /me goes back to drawing board
<bnagy> javascript has no bitwise or??
strife25 has quit [Quit: Computer has gone to sleep.]
<Jackneill> /home/jackneill/Desktop/Tabornok/Tabornok/lib/tabornok/sender.rb:10: stack level too deep (SystemStackError)
<canton7> I'm pretty sure it does
<Jackneill> what does it mean? i have a class "Irc", and a variable @tcpsocket, i want to use it in another class, so i did Irc.new, but i got that error message
<Jackneill> the Irc class already has an instance
<Jackneill> that will be the second.
<bnagy> Jackneill: usually means you've got recursion that's too deep, but it can also be nested objects
<ccooke> Jackneill: stack level too deep means that your code is recursing, probably forever
<bnagy> impossible to tell without the code
<Jackneill> ok i will paste it.
JustinCampbell has joined #ruby
ixti has joined #ruby
ixti has quit [Read error: Connection reset by peer]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jxpx777 has joined #ruby
digitalcakestudi has joined #ruby
ixti has joined #ruby
<Jackneill> http://pastebin.com/JiHjtJCm there it is.
spirat has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
ixti has quit [Read error: Connection reset by peer]
<the-newsman> can class include module(s) ?
<the-newsman> bnagy
ixti has joined #ruby
ixti has quit [Read error: Connection reset by peer]
<bnagy> Jackneill: and sender and tabornok are running in different processes?
<Jackneill> bnagy no
<Jackneill> just irc.read_irc running on a diff process
<bnagy> uh.. they both have shebang lines?
<Jackneill> shebang?
<bnagy> #1/usr/bin/env ruby
austinbv2 has quit [Ping timeout: 248 seconds]
mnaser has joined #ruby
<Jackneill> but is it matter?
carlyle has joined #ruby
<bnagy> well normally it would mean you're running them as different processes
<Jackneill> ;o
elhu_ has quit [Quit: Computer has gone to sleep.]
<Jackneill> i remove it
justinmcp has quit [Remote host closed the connection]
elhu has joined #ruby
<bnagy> didn't I fix up this skeleton?
<Jackneill> bnagy i removed it from every file except the tabornok.rb, but same error
<bnagy> like... I don't see how tabornok is ever going to work
bgupta has joined #ruby
<Jackneill> ok
<Jackneill> anyway..thanks
subbyyy has quit [Quit: Leaving.]
<bnagy> sorry.. it's kind of impossible to see what's going on - or how you're invoking the code
<the-newsman> bnagy, can class include some modules inside its defintiion ?
<shevy> class Foo; include NameOfModuleHere; end
<the-newsman> this is not what i asked for
<the-newsman> i did not mean the keyword include
<bnagy> Jackneill: you probably want to join your worker threads, not Thread.current
<shevy> you can use .extend too
<bnagy> which is the code I think I gave you before, right? :)
<the-newsman> can i send u url in private shevy ?
<shevy> please no, I am on weechat and I have not figured out how to use it really
<shevy> I broke my xchat :(
lxsameer has quit [Quit: Leaving]
<the-newsman> ok can i send u in here ?
<shevy> just paste the URL here yes
<bnagy> Jackneill: https://gist.github.com/2994849 still had it
<Jackneill> [@read_thread, @ping_thread, @console_thread].map(&:join) ?
<bnagy> joins all of your work threads
mohits has quit [Read error: Connection reset by peer]
<bnagy> so the program won't exit until all those threads finish, if ever
<bnagy> or until it's killed etc
<the-newsman> shevy
<shevy> the-newsman: hmm the problem is, you are trying to use a program written by others here, right?
<the-newsman> no
<the-newsman> did u look at the page ?
<shevy> yup. a very large and complex project it is
federic has quit [Remote host closed the connection]
krusty_ar_ is now known as krusty_ar
<the-newsman> nice
<the-newsman> now remote is class. right ?
<shevy> I do not know, I have not written it and I don't see the source. It could be a module too, Msf::Exploit::Remote, but you can find out anyway by doing .class on it, Msf::Exploit::Remote.class
mnaser has quit [Ping timeout: 252 seconds]
<shevy> if it is a class, you can call .new on it
<shevy> ah
<shevy> it has <
<shevy> so yes, it is a class
<the-newsman> now. there r many modules in this page
<the-newsman> they r very different of course
<shevy> just as in any other project too
<the-newsman> does this class have the defintion for those modules ?
<shevy> Msf::Exploit::Remote -> module Msf; module Explit; class Remote
mnaser has joined #ruby
strife25 has joined #ruby
<shevy> depends on how the author layouted the structure
<shevy> usually, you would split things up
<the-newsman> man
<shevy> I write one class for one .rb file usually
<the-newsman> can u see the down modules ?
niklasb has quit [Ping timeout: 246 seconds]
<the-newsman> is this module or class ?
<shevy> the best way is to look at the source
<the-newsman> man
<shevy> that page lists "new" and new only works with classes
zommi has quit [Read error: Connection reset by peer]
<the-newsman> look carefully
<shevy> what for?
<the-newsman> it is written to be module
<shevy> do I need to use it?
<the-newsman> This module exposes methods for manipulating the Arkeia backup service
dv310p3r has joined #ruby
<shevy> and so what? you can write any documentation you want. the only way to know what is really going on is to look at the source
<bnagy> and yet is has a new method
<bnagy> so it's almost certainly a class
<bnagy> but reading metasploit source makes me want to cut myself, so I'm not going to do that
<shevy> hehe
<the-newsman> bnagy Msf::Exploit::Remote::Arkeia is module
<banisterfiend> bnagy: dont cut yourself, u have so much to give
<shevy> becom33 here started with metasploit too, there must be some attraction it has for newbies
<bnagy> Class.ancestors
<bnagy> => [Class, Module, Object, Kernel, BasicObject]
Markvilla_ has joined #ruby
<bnagy> the-newsman: a Class is a Module
<the-newsman> bnagy do u say class=module and vice versa ?
ixti has joined #ruby
<bnagy> banisterfiend: I can still code, depending on where I cut myself
<spirat> Hello, I am experiencing problems with redmine, I don't know much about ruby so i'm a little lost and can't figure out how to debug... Can someone look at this backtrace and point me in the right direction? http://dpaste.org/8NMFX/
<bnagy> and how much :|
<bnagy> the-newsman: I say a Class is a kind of Module .. kind of
baphled has quit [Remote host closed the connection]
<bnagy> Module is a bit special
Markvilla has quit [Ping timeout: 246 seconds]
Markvilla_ is now known as Markvilla
baphled has joined #ruby
<bnagy> go use google and become enlightened
<the-newsman> bnagy module is just wrapper. not real class
tzvi has joined #ruby
Criztian has quit [Remote host closed the connection]
<the-newsman> my q is, how can class have some modules inside
<banisterfiend> the-newsman: u prob shouldn't correct bnagy when he's a veteran and you're still a tourist from noobcity ;)
ixti has quit [Read error: Connection reset by peer]
<the-newsman> correct me banisterfiend please
ixti has joined #ruby
<banisterfiend> the-newsman: buy a book
lamks has quit []
imami|afk is now known as banseljaj
ixti has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
Targen has quit [Ping timeout: 240 seconds]
<shevy> the-newsman: class Foo; module Bla; end; end
uris has joined #ruby
<shevy> the-newsman: you can use a class just like you can use a module too when it comes to namespacing
<shevy> the-newsman: as long as you dont understand it, so long will you just run in circles here
<the-newsman> shevy thanx
<the-newsman> shevy some in here r worethelss. thanx again shevy
jsime has joined #ruby
<shevy> Namespace access is always done via :: no matter if it is a class or module. Foo::Bla could both be a class or a module, one would have to use .class to find out for sure, or look at the source. I dont think there is any other way to know, just by looking at "Foo::Bla" alone, that does not seem to have sufficient information in itself to deduce.
<bnagy> I feel so worethelss. How will I go on?
<shevy> bnagy: it's ok. google likes you.
<bnagy> shutupshutupshutup
<shevy> I want to be friends on google+ with you bnagy!!!
schovi_ has quit [Remote host closed the connection]
<bnagy> ok, you create an account and wait for me there
<bnagy> I'll be along right after I set up the twitter, facebook and linkedin I don't have
<shevy> :(
fantazo has joined #ruby
<shevy> I tried to use twitter... then I realized, my true nature is to be lazy
wobr has quit [Ping timeout: 248 seconds]
<banisterfiend> Mon_Ouie: u here?
schovi has joined #ruby
wobr has joined #ruby
schovi has quit [Remote host closed the connection]
plastics has quit [Ping timeout: 264 seconds]
S1kx has quit [Quit: Leaving]
apok has joined #ruby
ryan0x2 has joined #ruby
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
spirat has quit [Quit: leaving]
joel has joined #ruby
joel has quit [Client Quit]
kpshek has joined #ruby
mnaser has quit [Ping timeout: 245 seconds]
webusnix has joined #ruby
bbttxu has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ixti has joined #ruby
mnaser has joined #ruby
cpruitt has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
<shevy> hmm
<shevy> do I have to do anything special when wanting to distribute some yaml files in a gem project?
cakehero has joined #ruby
<mdszy> shevy: I think you just have to make sure they're recognized as files in the gemspec
<JustinCampbell> shevy: more context?
<JustinCampbell> ^
<mdszy> make sure they're in the gem.files array
cakehero has quit [Client Quit]
<mdszy> if you're using git, and the YAML files are in the repo, you can use this to make sure everything in git is in the gem:
<mdszy> gem.files = `git ls-files`.split($\)
<mdszy> (not my code, that's in the default gemspec that `bundle gem` creates)
<shevy> JustinCampbell: yeah, not sure yet... I never made a gem so far with yaml files, so I am not sure what I have to do or whether I have to do anything special :)
<shevy> hmm ok mdszy
tk___ has joined #ruby
iamlacroix has quit [Remote host closed the connection]
<mdszy> shevy: yeah, you don't have to do anything special except making sure that somehow the yaml files are showing up in the gem.files array
<JustinCampbell> do you have any ruby code in the gem?
<shevy> ok mdszy, cool
<shevy> JustinCampbell: yeah, the .rb files will make use of the yaml files in that gem
<JustinCampbell> i mean, are you trying to just package and distribute data as a gem, or is there ruby code in the gem that accesses the data as a proxy
<JustinCampbell> ok
<JustinCampbell> yeah it should work fine
<JustinCampbell> this gem uses yaml files here in resources/ https://github.com/Movitas/as_dialed_from
<shevy> cool thanks JustinCampbell
schovi has joined #ruby
<JustinCampbell> np
lolmaus has quit []
sailias has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
ixti has quit [Read error: Connection reset by peer]
digitalcakestudi has quit [Ping timeout: 245 seconds]
PaciFisT has joined #ruby
freeayu has quit [Quit: 离开]
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
whitenoise has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
aotianlong has joined #ruby
schickung has quit [Quit: schickung]
aotianlong has left #ruby [#ruby]
the_jeebster has joined #ruby
plastics has joined #ruby
dcampano has joined #ruby
jamesaxl has joined #ruby
blazes816 has joined #ruby
clockwize has quit [Quit: clockwize]
andrewhl has joined #ruby
joshman_ has joined #ruby
jfoley has quit [Quit: jfoley]
liluo has quit [Remote host closed the connection]
eurek has quit [Quit: Computer has gone to sleep.]
ksinkar has joined #ruby
cakehero has joined #ruby
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
ixti has joined #ruby
<rking> Can anyone who uses a defaultish vim setup confirm that this is the way a stock syntax highlighting looks? http://pasteall.org/pic/show.php?id=34233
bowlowni has joined #ruby
ePirat_ has joined #ruby
<rking> I do weird things to my configs, so I'm not sure if it's in the ballpark. Actually now that I think about it I think my keyword-yellow is very brown relative to the normal one.
<hoelzro> rking: depends on your colorscheme, but it doesn't look out of the ordinary
digitalcakestudi has joined #ruby
<rking> OK. Thanks.
hunglin has joined #ruby
liluo has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
eurek has joined #ruby
ABK has quit [Ping timeout: 265 seconds]
Spooner has joined #ruby
thecreators has quit [Quit: thecreators]
liuchong has quit [Quit: Leaving]
thecreators has joined #ruby
bbttxu has quit [Quit: bbttxu]
ben_alman has quit [Excess Flood]
bbttxu has joined #ruby
mnaser has quit [Ping timeout: 252 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
mnaser has joined #ruby
flagg0204 has quit [Quit: leaving]
thecreators has quit [Ping timeout: 264 seconds]
ben_alman has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
kenperkins has quit [Quit: Computer has gone to sleep.]
zodiac1111 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
<rambda> so I'm sending this to a TCP socket, and am getting an error message: ";ACT-USER:",tid,":",user,":X::",password,";\n\n"
<rambda> in `puts': wrong number of arguments (7 for 1) (ArgumentError)
<rambda> not sure why it's only expecting 1 arg?
<rambda> this is using the s.puts method
flype has quit [Quit: Computer has gone to sleep.]
digitalcakestudi has quit [Ping timeout: 252 seconds]
kevinbond has joined #ruby
lorandi has quit [Quit: Leaving]
wallerdev has joined #ruby
<rambda> I gave up and separated it all into separate s.puts methods
<rambda> which works...
Morkel has joined #ruby
Morkel has quit [Client Quit]
jamesaxl has joined #ruby
elhu has quit [Ping timeout: 246 seconds]
bbttxu_ has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
bbttxu_ is now known as bbttxu
Morkel has joined #ruby
flype has joined #ruby
<Hanmac> rambda: s.puts(";ACT-USER:#{tid}:#{user}:X::#{password};\n\n")
<offby1> curse Hanmac and his fast fingers
<rambda> thanks man, I'm pretty new to ruby to please excuse my ignorance, what do the hashes do there?
<offby1> string interpolation
<offby1> i.e., they do what you hope they do.
<offby1> "three plus two is #{3 + 2}" => "three plus two is 5"
selvakumaran has joined #ruby
<offby1> if there were a ruby bot in this channel it'd be easy to demonstrate
<rambda> cool thanks
rouss has joined #ruby
elhu has joined #ruby
<shevy> what do you guys use when wanting to output coloured text in a sentence, to the user?
<shevy> like, it makes use of more than one colour in the same sentence
<rambda> why doesn't ruby just accept the variables without the hashes and brackets? When I first started learning, I could do simple things like puts variablename and my output would be whatever the variable had been assigned to
SQLStud has joined #ruby
<shevy> rambda you can use + too
<shevy> puts var1+' '+var2+' '+var3
<Hanmac> no ... "text" + number does fail
<shevy> and print should use , ... print var1,' ',var2,' ',"\n"
<shevy> fine, here we go then puts var1.to_s+' '+var2.to_s+' '+var3.to_s
<rambda> that's basically what I had tried, putting variables to a socket in that way threw that error
<blazes816> rambda: basically, or exactly?
<blazes816> computers are fickle mistresses
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<rambda> ";ACT-USER:",tid,":",user,":X::",password,";\n\n"
<shevy> they ought to be spanked
<rambda> puts var1+' '+var2+' '+var3
<rambda> er
<rambda> print var1,' ',var2,' ',"\n"
<shevy> rambda: string objects want other string objects
yannis has joined #ruby
<shevy> I think it was said that implicit conversions should not happen automatically, as that would lead to hard to find bugs
<rambda> so no variables without interpolation in strings like the one I have constructed there?
apok has quit [Quit: apok]
<canton7> are we ignoring the fact that $stdout.puts "a","b","c" puts newlines between a, b, and c?
<shevy> hence why they recommend to use "#{foo}" interpolation
axl_ has quit [Read error: Connection reset by peer]
<shevy> rambda: what do you mean, .to_s would avoid interpolation ;)
Araxia has joined #ruby
tcopp has joined #ruby
axl_ has joined #ruby
<shevy> puts foo+bar would work if both are strings
<rambda> shevy: ok, still learning man...trying to pull the sword from the ruby :)
<shevy> I think perl is different here
<shevy> but I dont remember
<blazes816> shevy: perl will do pretty much anything you ask
flype has quit [Quit: Computer has gone to sleep.]
<rambda> yeah I started with perl and it seems like this would have been a case where perl was simpler
<blazes816> whether it's what you want or not
<shevy> beeen about 8 years since I last used perl
<shevy> :)
<rambda> but I am digging ruby so far
webusnix has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<blazes816> I love perl, but Ruby is much nicer
<Hanmac> shevy and dont try to understand what php does :P
<rambda> also, you guys in this channel are much more helpful and less condescending than #perl :|
Sou|cutter has joined #ruby
<zeroXten> is something like <ruby>y = x['b'] or raise "boo"</ruby> "good" ruby? It is the sort of thing i would do in perl.
nari has quit [Ping timeout: 264 seconds]
<blazes816> that's sad. I've never been in #perl, but in general it's a very nice community.
<rambda> #perl and #debian should be places internet trolls are sent for misbehaving
walbert has joined #ruby
walbert_ has joined #ruby
<blazes816> zeroXten: idk about others but I'm a fan of the syntax. then again i'm a bit more terse than others.
Tony_Sidaway has joined #ruby
<blazes816> rambda: that's harsh
mdszy has quit [Quit: bye for now]
<rambda> blazes816: it certainly would be for the unlucky troll sentenced...
<zeroXten> blazes816: good enough for me :) I didn't get flamed, so i'll run with it
<blazes816> lol
az7ar has quit [Ping timeout: 240 seconds]
mfridh has quit [Read error: Connection reset by peer]
horieyui has joined #ruby
mfridh has joined #ruby
icrazyhack has quit [Ping timeout: 244 seconds]
Maniacal has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
fulmato has joined #ruby
carloslopes has quit [Quit: Leaving.]
tk___ has quit [Quit: ばいばい]
jfoley has joined #ruby
flagg0204 has joined #ruby
jprovazn is now known as jprovazn_away
walbert_ has quit []
apok has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
yannis has quit [Quit: yannis]
Araxia has joined #ruby
oooPaul has joined #ruby
cjlicata has joined #ruby
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
saschagehlich has quit [Ping timeout: 246 seconds]
zommi has joined #ruby
koivula has joined #ruby
xnm has joined #ruby
<koivula> does anyone how I can make savon work, when I have XML as a string and I need to put into the body
<koivula> I know there is soap.xml = ""
<koivula> but it's not what I want, as there are other elements and I would not like to write whole thing as a string and manually construct xml
carlyle has quit [Ping timeout: 264 seconds]
kenperkins has joined #ruby
headius has joined #ruby
liluo has quit [Remote host closed the connection]
ckrailo has joined #ruby
zodiac1111 has quit [Ping timeout: 250 seconds]
artOfWar has joined #ruby
tds has joined #ruby
artOfWar_ has joined #ruby
bashdy has quit [Quit: bashdy]
blacktulip has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 246 seconds]
philoserf_ has joined #ruby
cjs226 has joined #ruby
samuel02 has joined #ruby
ePirat_ has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 246 seconds]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
bglusman has quit [Remote host closed the connection]
ben_alman has quit [Excess Flood]
wvms has left #ruby [#ruby]
bikr has joined #ruby
Cicloid_ has quit [Remote host closed the connection]
bikr has quit [Client Quit]
Cicloid has joined #ruby
Kesava has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
Kesava has joined #ruby
ben_alman has joined #ruby
Helius has quit [Remote host closed the connection]
p0c has joined #ruby
wobr1 has joined #ruby
wobr has quit [Read error: Connection reset by peer]
p0c has left #ruby [#ruby]
cjlicata has quit [Remote host closed the connection]
carlyle has joined #ruby
CheeToS has joined #ruby
wobr1 has quit [Ping timeout: 246 seconds]
jfoley has quit [Quit: jfoley]
mnaser has quit [Ping timeout: 264 seconds]
Neil_ has joined #ruby
selvakumaran has quit [Ping timeout: 246 seconds]
nachtwandler has joined #ruby
khakimov has joined #ruby
mnaser has joined #ruby
blinkies has joined #ruby
tvw has joined #ruby
artOfWar_ has quit [Ping timeout: 248 seconds]
fulmato has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
fulmato has joined #ruby
yannis has joined #ruby
baphled has quit [Read error: Connection reset by peer]
baphled has joined #ruby
gilead has quit [Quit: This computer has gone to sleep]
shevy has quit [Ping timeout: 248 seconds]
mikekelly has quit [Ping timeout: 272 seconds]
apok has quit [Quit: apok]
mikekelly has joined #ruby
carloslopes has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
carloslopes has quit [Client Quit]
carloslopes has joined #ruby
arturaz has quit [Ping timeout: 246 seconds]
Aiko has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
Aiko has left #ruby ["Just testing. thanks!"]
Foxandxss has joined #ruby
tintin has joined #ruby
<tintin> Anyone?
<tintin> Is it possible to put a seperate html form in /var/www/ then click the submit button and execute the ruby sript,
<tintin> not as cgi, but as wsgi
<tintin> Does ruby work as a wsgi app?
<hoelzro> tintin: I don't think so, but Ruby has Rack, which is pretty much the equivalent to WSGI
randomautomator has joined #ruby
<hoelzro> re: your other question, there's no reason you shouldn't be able to do that
<hoelzro> that's more of a web server configuration issue than a Ruby one, though
camilo has joined #ruby
<Mon_Ouie> banisterfiend: Now I am
ghanima has joined #ruby
<tintin> So if i put the seperate html form in /var/www , will the rack be able to take the request data from form and display it?
schovi has quit [Remote host closed the connection]
jfoley has joined #ruby
<tintin> Suppose i have installed passenger+apache2
<hoelzro> sure
Eldariof-ru has quit [Read error: Operation timed out]
<hoelzro> you just need to tell the form where the Ruby action is
<tintin> Now how can rack take the request value from form, can anyone please pastebin the code?
naquad has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
swistak35 has quit [Read error: Operation timed out]
cesario has quit [Read error: Operation timed out]
* hoelzro shrugs
drizz has quit [Read error: Operation timed out]
Spaceghostc2c has quit [Read error: Operation timed out]
<hoelzro> it's up to your Apache config
<hoelzro> and your HTML form
tewecske has joined #ruby
aef_ has quit [Read error: Operation timed out]
aef has joined #ruby
drizz has joined #ruby
Muz has joined #ruby
<tintin> Did you do that before?
<hoelzro> no
<hoelzro> but it shouldn't be too hard
<hoelzro> I have Nginx set up to serve static files from a directory
NimeshNeema has quit [Excess Flood]
<hoelzro> and all other requests go to my Dokuwiki
myth17 has joined #ruby
cesario has joined #ruby
shevy has joined #ruby
eywu has joined #ruby
Spaceghostc2c has joined #ruby
<tintin> How did you manage these form post request?
liuchong has joined #ruby
<hoelzro> so you could easily have a static directory for HTML forms that reference URLs bound to a Ruby application
maxmmurphy has joined #ruby
NimeshNeema has joined #ruby
swistak35 has joined #ruby
lexy0202 has joined #ruby
jfoley has quit [Client Quit]
<hoelzro> tintin: I haven't done this
<hoelzro> I'm just saying it should be pretty easy
naquad has joined #ruby
<tintin> I knwo Rack can do something like this with webrick, https://github.com/manhunter/rack-test/blob/master/t.rb
<tintin> hoelzro: Then how did you manage form post ?
cbuxton has joined #ruby
<rambda> Hanmac,shevy: I'm getting some strange results with the string interpolation we discussed earlier
<hoelzro> tintin: I haven't done this
<tintin> But this is an embeded html, https://github.com/manhunter/rack-test/blob/master/t.rb , i need a seperate html form
tewecske has quit [Read error: Operation timed out]
<tintin> hoelzro: Ok, you haven't done this, but did you do any web application with rack?
cbuxton has quit [Remote host closed the connection]
<hoelzro> no
<tintin> Any ruby web application?
<hoelzro> but your example would be simple
<hoelzro> no
<hoelzro> but it's not really a Ruby issue
<tintin> what do you do with ruby then?
quest88 has joined #ruby
quest88 has quit [Client Quit]
<hoelzro> nothing yet =)
<tintin> lol
<tintin> Then how do you know much about it?
savage- has joined #ruby
<hoelzro> tintin: tell your web server to serve up /var/www/index.html for /, and forward other requests to Rack over proxy/FastCGI
cbuxton has joined #ruby
<hoelzro> tintin: what have I said that would make you think I know much about Ruby? =)
twinturbo has quit [Quit: twinturbo]
<lexy0202> hi, does anyone know if you can pass a block to be yielded by another in ruby? http://stackoverflow.com/questions/11314622/how-to-pass-a-block-to-another-in-ruby
tintin has quit [Quit: tintin]
mnaser has quit [Ping timeout: 240 seconds]
<cakehero> I have an app loaded into memory with unicorn - at some point unicorn workers start dying because of OOM errors. Is there a way to debug the application so I can see where the memory leak is?
bluOxigen has quit [Ping timeout: 240 seconds]
tiripamwe has joined #ruby
hoelzro is now known as hoelzro|away
<canton7> lexy0202, this works: http://pastie.org/4193784
<canton7> obviously, replace line 8 with your instance_eval
Travis-42 has joined #ruby
artOfWar has joined #ruby
schovi has joined #ruby
<lexy0202> canton7: thanks
wmoxam has joined #ruby
<Travis-42> I'm having some trouble understanding the splat operator I think. Can someone help me understand why this gives "unexpected tSTAR, expecting ')'": https://gist.github.com/3671502c850573f09f69
<canton7> lexy0202, pastie updated
jxpx777 has quit [Ping timeout: 244 seconds]
<wmoxam> Travis-42: you want to pass args
<wmoxam> not *args
<Travis-42> wmoxam: wouldn't passing args alone just pass an array as a single argument?
<canton7> Travis-42, I suspect you might need curly braces around lines 4-7?
cakehero has quit [Quit: Leaving...]
lexy0202 has quit [Quit: Page closed]
gry has quit [Changing host]
gry has joined #ruby
<wmoxam> Travis-42: I guess it depends on what args search_tank takes :p
sonkei has quit [Quit: WeeChat 0.3.8]
anothervenue has quit [Quit: WeeChat 0.3.7]
apeiros_ has joined #ruby
sonkei has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
liluo has joined #ruby
digitalcakestudi has joined #ruby
jfoley has joined #ruby
bradhe has quit [Remote host closed the connection]
etehtsea has quit []
Targen has joined #ruby
ABK has joined #ruby
baphled has quit [Quit: leaving]
baphled has joined #ruby
baphled has quit [Client Quit]
carloslopes has quit [Quit: Leaving.]
greyEAX has quit [Read error: Connection reset by peer]
mneorr1 has joined #ruby
Rochefort has quit [Remote host closed the connection]
maletor has joined #ruby
plastics has quit [Ping timeout: 240 seconds]
apok has joined #ruby
saschagehlich has joined #ruby
mdszy has joined #ruby
mneorr has quit [Ping timeout: 250 seconds]
baphled has joined #ruby
kenichi has joined #ruby
greyEAX has joined #ruby
mrsolo has joined #ruby
baphled_ has joined #ruby
adeponte has joined #ruby
baphled has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
bricker88 has joined #ruby
bradhe has joined #ruby
ringotwo has joined #ruby
b26 has joined #ruby
SegFaultAX|work2 has joined #ruby
brendan` has quit [Ping timeout: 265 seconds]
liluo has quit [Remote host closed the connection]
ABK has quit [Ping timeout: 248 seconds]
bglusman has joined #ruby
mockra has joined #ruby
stephenjudkins has joined #ruby
akem has quit [Ping timeout: 246 seconds]
liuchong has quit [Ping timeout: 240 seconds]
bglusman has quit [Ping timeout: 246 seconds]
mvangala_ has quit [Remote host closed the connection]
banghouse has joined #ruby
baphled_ has quit [Ping timeout: 240 seconds]
ianbrandt has joined #ruby
lorandi has joined #ruby
chrismcg is now known as zz_chrismcg
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
lorandi has quit [Client Quit]
blacktulip has joined #ruby
lorandi has joined #ruby
timonv has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
tvw has quit [Ping timeout: 245 seconds]
twinturbo has joined #ruby
sailias has quit [Quit: Leaving.]
mockra has quit [Remote host closed the connection]
mjb2k has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
berserkr has quit [Read error: Connection reset by peer]
tsou has joined #ruby
schaerli has joined #ruby
tommyvyo has joined #ruby
renanoronfle has joined #ruby
mrsolo has joined #ruby
shadoi has joined #ruby
fulmato has quit [Ping timeout: 244 seconds]
stkowski has joined #ruby
TorpedoSkyline has joined #ruby
jgrevich has joined #ruby
arturaz has joined #ruby
savage-_ has joined #ruby
ephemerian has left #ruby [#ruby]
mneorr1 has quit [Quit: Leaving.]
mneorr has joined #ruby
savage- has quit [Read error: Operation timed out]
elhu has quit [Ping timeout: 244 seconds]
graspee has joined #ruby
blazes816 has quit [Quit: Leaving]
axl_ has quit [Ping timeout: 245 seconds]
ackz has joined #ruby
<Synthead> def display(when) ... syntax error, unexpected kWHEN, expecting ')'
savage- has joined #ruby
<Synthead> why do I get this?
nachtwandler_ has joined #ruby
btanaka has joined #ruby
c0rn_ has joined #ruby
<mjb2k> when is a reserved word
apok has quit [Remote host closed the connection]
<Synthead> ahhh
<Synthead> okay
apok has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
fridim_ has joined #ruby
<Synthead> mjb2k: there we go :) thanks!
stephenjudkins has joined #ruby
savage-_ has quit [Ping timeout: 248 seconds]
nachtwandler has quit [Ping timeout: 265 seconds]
Araxia has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
adamkittelson has joined #ruby
WhereIsMySpoon has quit [Remote host closed the connection]
jlogsdon has joined #ruby
npn47 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
npn47 has quit [Client Quit]
rippa has joined #ruby
Squarepy has quit [Quit: Leaving]
mockra has joined #ruby
kidoz has joined #ruby
williamcotton has joined #ruby
evenix has joined #ruby
<evenix> hey all
Kevin_ has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
bluenemo has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
TPFC-SYSTEM has joined #ruby
mdszy has quit [Quit: bye for now]
dhruvasagar has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 246 seconds]
schovi has quit [Remote host closed the connection]
cjlicata has joined #ruby
savage-_ has joined #ruby
markab1 has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Targen has joined #ruby
savage- has quit [Read error: Operation timed out]
carlyle has quit [Ping timeout: 246 seconds]
WhereIsMySpoon has joined #ruby
mrsolo has joined #ruby
rouss has quit [Read error: Operation timed out]
avandenhoven has joined #ruby
TrahDivad_ has joined #ruby
axl_ has joined #ruby
bglusman has joined #ruby
carlyle has joined #ruby
gift has joined #ruby
Kevin_ has quit [Remote host closed the connection]
<TrahDivad_> I'm fairly new to ruby and I'm trying to decide on a ORM to use with padrino. Can somebody point me to an article that discuses the pros and cons of the major ruby ORMs?
<itz> PING
markab has joined #ruby
selector has joined #ruby
peregrine81 has joined #ruby
fridim_ has joined #ruby
jfoley has quit [Quit: jfoley]
b26 has quit [Read error: Operation timed out]
rking has quit [Quit: Shutting down. To migrate servers. Because of… a leap-second bug.]
<mjb2k> TrahDivad_: in case you're entirety unaware, I'm going to let you know that is a terrible question
<TrahDivad_> mjb2k: why's that?
Eiam has joined #ruby
cjlicata has quit [Ping timeout: 246 seconds]
<Eiam> alright, I need a quick sanity check here. if I make a request to a server, and it gives me a response with some cookies, its generally accepted that my next response is going to include those cookies, correct?
<mjb2k> you're not even asking the opinion of experience of any one here, what you're asking for is provided by any one of numerous search engines
<Eiam> as in, almost every http library is going to do that automatically (include domain cookies with future requests)
<mjb2k> Eiam, no
<mjb2k> dont expect that to happen automatically
<mjb2k> but yes, it should be done, which means you have to do it
<Eiam> if the response has a set-cookie:blah
brendan` has joined #ruby
cousine has joined #ruby
<Eiam> right, it should be done
<mjb2k> you read the set-cookie header and send it back in a header
<Eiam> mjb2k: nah, I *AM* doing it, the server is saying 'uhm, don't send this cookie back to me'
<Eiam> and im saying 'uh, you sent me the cookie, of course im going to send it back to you'
<TrahDivad_> mjb2k: I've searched Google before coming here and I'm having a hard time finding the kind of article I'm asking for. That's why I was hoping that somebody had a bookmark to one.
<gift> [ "foo", { :bar => "baz", :baz => "foo" }, "bar", { :baz => "foo", :bar => "baz" } ] --- How can I get that array to look like this: [ [ "foo", { :bar => "baz", :baz => "foo" } ], [ "bar", { :baz => "foo", :bar => "baz" } ] ]
<mjb2k> Eiam: ah ok, not sure then would need more specifics, how are you sending the cookie data and what exactly is the server responding with?
<gift> every other element in the array should be paired and pushed onto a higher array with the following element. 2 x 2 x 2, etc
the-newsman has quit [Ping timeout: 264 seconds]
<Eiam> mjb2k: don't think we need to dig further, its literally their fault. I make 20 async requests, but the time the 6th request is sent, I get back my first response.. 7th request goes out with the cookies they set, and it fails. all requests that go out with their cookies set fail
<Eiam> and they are saying 'oh don't send those cookies back to us'
<Eiam> then don't send me the cookie dummies!
Spooner has quit [Ping timeout: 246 seconds]
cbuxton1 has joined #ruby
<mjb2k> Eiam: lol, ok then. I don't get the point of cookies that never go back to the server, that is what they're supposed to do
<Eiam> mjb2k: right, exactly. I honestly wanted a sanity check before tearing into them =)
<Eiam> I hit up google, read some stuff, figured i'd get a final confirmation
cbuxton has quit [Ping timeout: 264 seconds]
Targen has quit [Ping timeout: 245 seconds]
<mjb2k> yes, the entire point of a cookie is for the server to store data on the client for later retrieval
lorandi has quit [Ping timeout: 265 seconds]
Eldariof-ru has joined #ruby
cousine has quit [Remote host closed the connection]
khakimov has joined #ruby
Kevin_ has joined #ruby
<apeiros_> mjb2k: not that it'd make much sense, but you can read cookies using js too. (it doesn't make much sense since you have to be on the right domain to do that…)
alexim has joined #ruby
blacktulip has quit [Remote host closed the connection]
twinturbo has quit [Quit: twinturbo]
fridim_ has quit [Ping timeout: 264 seconds]
blacktulip has joined #ruby
sailias has joined #ruby
fantazo has quit [Remote host closed the connection]
cespare has quit [Ping timeout: 264 seconds]
<tds> if I have a class A::B::C, is there a method I can call on C that will give me its namespace (i.e. A::B)?
anothervenue has joined #ruby
<Eiam> mjb2k: thanks
voodoofish430 has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
<evenix> Hey guys anyone played with paypal express checkout recently?
Kesava has quit [Read error: Connection reset by peer]
Kevin_ has quit [Remote host closed the connection]
Kesava has joined #ruby
pk1001100011_ has joined #ruby
pk1001100011 has quit [Read error: Connection reset by peer]
schovi has joined #ruby
<mjb2k> apeiros_: yes I do tend to forget that since I more commonly work with HTTP only cookies, for security reasons.
blazes816 has joined #ruby
ksinkar has quit [Quit: Konversation terminated!]
pk1001100011_ is now known as pk1001100011
lorandi has joined #ruby
mockra has quit [Remote host closed the connection]
Tricks has joined #ruby
philoserf_ has left #ruby [#ruby]
gianlucadv has quit [Excess Flood]
schovi has quit [Ping timeout: 252 seconds]
gianlucadv has joined #ruby
<shevy> tds: hmm not sure. try .ancestors
adamkitt_ has joined #ruby
adamkittelson has quit [Read error: Operation timed out]
stat1x has quit [Remote host closed the connection]
<apeiros_> tds: since C could be referenced by X::Y::C just as well - no
stat1x has joined #ruby
Progster has quit [Ping timeout: 248 seconds]
cespare has joined #ruby
<apeiros_> tds: you can use C.name and parse that
Aaton_off is now known as Aaton
<tds> apeiros_: for your first point, do you mean if I did Y.const_set(:C, A::B::C)
ramblex_ has joined #ruby
<tds> or sorry X::Y.const_set(:C, A::B::C)
<apeiros_> tds: module X; module Y; C = A::B::C; end; end
<tds> right
<apeiros_> X::Y::C == A::B::C
<tds> that's a much easier way ;)
<tds> little tired this morning
<apeiros_> assuming X::Y exists already, then a plain X::Y::C = A::B::C is sufficient even
tiripamwe has quit [Ping timeout: 250 seconds]
<tds> yeah
<tds> so I guess the somewhat naive but only practicable way of determining this is just parsing C.name
tiripamwe has joined #ruby
ramblex has quit [Ping timeout: 252 seconds]
jxpx777 has joined #ruby
Araxia_ has joined #ruby
tiripamwe has quit [Read error: Connection reset by peer]
chienpo has joined #ruby
ramblex_ has quit [Ping timeout: 255 seconds]
Araxia has quit [Read error: No route to host]
Araxia_ is now known as Araxia
qo has joined #ruby
manizzle has quit [Read error: No route to host]
keithcelt has joined #ruby
<shevy> I have two files like http://pastie.org/4194457 - the problem I have is with __FILE__ right now.
maxmmurphy has joined #ruby
<shevy> it outputs "From ./file2.rb" right now, but I'd like to output the filename of whatever .rb file calls that method instead
SegFaultAX has joined #ruby
<shevy> hmm guess I'll use caller
heftig has joined #ruby
jsime has quit [Quit: Leaving]
cakehero has joined #ruby
havenn has joined #ruby
berserkr has joined #ruby
cirwin has joined #ruby
ken_barber has quit [Remote host closed the connection]
kava has joined #ruby
carloslopes has joined #ruby
carloslopes has quit [Client Quit]
jfoley has joined #ruby
<Synthead> is there a way to shorten x = x / 5?
<Synthead> could I do something like x +/ 5?
carloslopes has joined #ruby
tiripamwe has joined #ruby
<cirwin> x /= 5
awarner has joined #ruby
<Synthead> niiiiiceeee
dnyy has joined #ruby
<Synthead> cirwin: thank you!
<xclite> curious about that leap of logic, though =p
kava has quit [Quit: Leaving]
DrShoggoth has joined #ruby
cantonic_ has joined #ruby
warlock_handler has joined #ruby
dkissell_ has joined #ruby
patrick_ has joined #ruby
patrick_ has quit [Client Quit]
kidoz has quit [Quit: Ухожу я от вас]
kava has joined #ruby
schovi has joined #ruby
<warlock_handler> can I directly execute GIMP filters (image manipulation filters) in ruby? there is a GIMP lib in ruby... but thats to create ruby plugins for gimp
dkissell has quit [Ping timeout: 245 seconds]
dkissell_ is now known as dkissell
niklasb has joined #ruby
warlock_handler has quit [Client Quit]
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
SYNTActiX has joined #ruby
<shevy> now he didnt stay long :P
macmartine has joined #ruby
neersighted is now known as neersighted|AFK
banisterfiend has quit [Read error: Connection reset by peer]
bglusman has quit [Remote host closed the connection]
<rambda> so I'm looping through a file I've opened, line by line and performing a socket connection based on that input from the file...now I want to take output gained from the socket connection and append it to the end of the line the loop has finished with...can someone point me in the right direction?
<blazes816> rambda: just throwing this out there (never worked with sockets in ruby), but do you want to map instead of iterate?
<blazes816> unless you're lazy loading
banisterfiend has joined #ruby
baphled has joined #ruby
<rambda> blazes816: let me read up on map and the rest of what you mentioned there :D
<rambda> thanks
<blazes816> lol
jsime has joined #ruby
schovi has quit [Remote host closed the connection]
<rambda> (yeah, I'm almost completely new to all this..)
mockra has joined #ruby
<blazes816> I assume you're doing something like file.each do |line|. map is just like each, but the element is replaced with whatever you return from inside.
mucker has quit [Remote host closed the connection]
<blazes816> it took me a while to understand the functional type methods (map/inject/etc)
<mjb2k> I'd kinda like to see if that would actually work, file.lines.map!{ |line| line << socket_method(line) }
havenn has quit [Remote host closed the connection]
friskd_ has joined #ruby
jwbuurlage has joined #ruby
jwbuurlage has left #ruby [#ruby]
baphled has quit [Client Quit]
<blazes816> as long as they're synchronous
<blazes816> i think it should work
<apeiros_> mjb2k: you realize that using the bang method there is somewhat pointless?
baphled has joined #ruby
coderhut has joined #ruby
friskd has quit [Ping timeout: 244 seconds]
<apeiros_> you could even use each…
friskd_ is now known as friskd
jfoley has quit [Quit: jfoley]
<blazes816> apeiros_, if it was ! it wouldn't set files.lines
<apeiros_> blazes816: it doesn't need to
<apeiros_> he mutates the lines
<mjb2k> aperios_: no I really didnt put much thought into, just a ballpark methodology
<apeiros_> mjb2k: tab completion ftw.
<blazes816> he mutates the line
<blazes816> not the collection
baphled has quit [Client Quit]
<mjb2k> apeiros_: lol
<apeiros_> blazes816: and of what do you think the collection consists?
kirun has joined #ruby
<apeiros_> blazes816: http://pastie.org/4194591
rking has joined #ruby
wunz has quit [Remote host closed the connection]
baphled has joined #ruby
clockwize has joined #ruby
<apeiros_> ew, system ruby… must. switch. back.
<blazes816> but if strings are immutable, how does it work that way?
<apeiros_> *if*
baphled has quit [Client Quit]
<apeiros_> I said in his case
<blazes816> interesting
<apeiros_> I didn't make any speculative musings
baphled has joined #ruby
<blazes816> I thought strings in ruby were always immutable
<apeiros_> hu?
<apeiros_> I have no idea from where you've got that idea
<apeiros_> immutable strings are quite the exception in ruby
baphled has quit [Client Quit]
<blazes816> hmm. idk were i got that idea from either.
baphled has joined #ruby
<blazes816> too much language switching I guess
arturaz has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 265 seconds]
<Synthead> with PTY.spawn in a block, is there a way I can wait for all child processes to exit?
Targen has joined #ruby
neersighted|AFK is now known as neersighted
<Synthead> and keep the block open until then?
<shevy> blazes816: think of strings are objects that respond to methods and whose main data is stored in self, which can be changed, even with replace()
<shevy> *as
<blazes816> I think i'm thinking of R_STRING or whatever
<rambda> went AFK, but reading up on the discussion...does map mean that it will replace each line I'm looping over with output from the socket?
tiripamwe has quit [Ping timeout: 246 seconds]
<blazes816> the under the hood. but again, I could be completely wrong
kvirani has joined #ruby
<blazes816> rambda: yes, but as pointed out you don't need map in this case.
<rambda> blazes816: ok, still reading...
<blazes816> you can do line << socket_operation(line)
baphled has quit [Client Quit]
<blazes816> but don't ask me why ;)
baphled has joined #ruby
<rambda> lol
musl has joined #ruby
musl has quit [Client Quit]
ePirat_ has joined #ruby
musl has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
ePirat_ has quit [Remote host closed the connection]
Kevin_ has joined #ruby
ePirat_ has joined #ruby
<shevy> rambda: think of .map as .apply_on_each_line or on_each_element
awarner has quit [Remote host closed the connection]
musl has quit [Client Quit]
ramblex has joined #ruby
prtksxna has joined #ruby
musl has joined #ruby
monvillalon has joined #ruby
burgestrand has joined #ruby
<monvillalon> I need a y Ruby tidbit for a Chef recipe that saves the response of an url into a variable, can some body help
<Synthead> any thoughts about PTY.spawn?
bosphorus has quit [Remote host closed the connection]
* offby1 watches the tumbleweeds skitter down Main St
wobr has joined #ruby
samuel02 has quit [Remote host closed the connection]
ryannielson has joined #ruby
<mjb2k> monvillalon: take a look at OpenURI in the Ruby Std-Lib
<monvillalon> mjb2k: thanks
kevinbond has quit [Quit: kevinbond]
Axsuul has joined #ruby
mobilegamelabs has joined #ruby
bfgun has quit [Ping timeout: 244 seconds]
Ionic` has joined #ruby
<monvillalon> mjb2k: it seems to be what I need, but since I don't know ruby I don't know how to import it?
<Ionic`> does ruby use pass by value or by reference?
<Ionic`> (i.e. can I safely alter parameters passed to my function without worrying about it changing outside stuff?)
ryanf has joined #ruby
mikepack has joined #ruby
havenn has joined #ruby
mikepack has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
plastics has joined #ruby
<Ionic`> ah, by value
<Ionic`> hm, no, by reference
<any-key> I prefer to pass by dereference
wunz has joined #ruby
tsou has left #ruby [#ruby]
Cicloid has quit [Remote host closed the connection]
<Ionic`> any-key: don't make me unwrap you
<any-key> >.>
khakimov has quit [Quit: Computer has gone to sleep.]
<yxhuvud> Ionic`: neither. It passes the reference by value. This differs from pass by reference in that some values are stored in the reference itself.
<Ionic`> hmm
<Ionic`> well I guess cloning isn't a bad idea
khakimov has joined #ruby
vitoravelino is now known as vitoravelino`afk
coderhut has quit [Quit: Page closed]
baphled has quit [Ping timeout: 264 seconds]
<mjb2k> monvillalon: require 'open-uri', then follow the examples at http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open-uri/rdoc/OpenURI.html
hakunin has joined #ruby
baphled has joined #ruby
carlyle has quit [Remote host closed the connection]
<monvillalon> mjb2k: thanks, i was trying module and somehow in irb output stopped working
<mjb2k> unless you're using ruby 1.8.x, then you may need to find the 1.8.x version of the docs
carlyle has joined #ruby
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
<any-key> ...then punch yourself in the face for still using 1.8.x
Eldariof-ru has quit []
<Tasser> and install 1.9
<rambda> starting to think it would be easier to simply pull my columns out of the csv file and just create a new file with those variables + the output from the loop
schovi has joined #ruby
kpshek has quit []
baphled has quit [Quit: Lost terminal]
Neil_ has quit [Ping timeout: 244 seconds]
raluxgaza has joined #ruby
bfgun has joined #ruby
tatsuya_o has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
baphled has joined #ruby
mikepack has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
zommi has quit [Remote host closed the connection]
Foxandxss has joined #ruby
ephemerian has joined #ruby
niklasb has quit [Ping timeout: 265 seconds]
Relikahm has joined #ruby
SYNTActiX has quit [Read error: Operation timed out]
Progster has joined #ruby
emanu has joined #ruby
swistak35 has quit [Ping timeout: 246 seconds]
emanu has quit [Client Quit]
Tony_Sidaway has quit [Quit: leaving]
stephenjudkins has joined #ruby
baphled has quit [Quit: leaving]
baphled has joined #ruby
baphled has quit [Client Quit]
baphled has joined #ruby
luckyruby has joined #ruby
xaq has joined #ruby
baphled has quit [Client Quit]
tatsuya__ has joined #ruby
Relikahm has quit [Quit: Leaving]
baphled has joined #ruby
gry has quit [Changing host]
gry has joined #ruby
nanderoo has quit [Quit: Leaving.]
gry has quit [Changing host]
gry has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
kava has quit [Quit: Leaving]
whitenoise has quit [Quit: Leaving]
baphled has quit [Client Quit]
baphled has joined #ruby
<cakehero> I have unicorn processes w/a preloaded app that are running out of memory (can't spawn new workers) - any smart ways for me to profile the setup to debug this?
<Tasser> cakehero, #rubyonrails might have more expirience with that kind of fun
ePirat_ has quit [Ping timeout: 264 seconds]
<cakehero> okay cool, it happens to not be rails but I can ask there
baphled has quit [Client Quit]
<cakehero> Same difference I'm sure
cpruitt has quit [Quit: cpruitt]
manizzle has joined #ruby
kirun has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
dekroning has joined #ruby
<mjb2k> what is a unicorn process?
<any-key> it involves rainbows
<Tasser> and their processing to shitty rainbows
<havenn> mjb2k: when enough raindrops form, unicorns appear
geekbri has quit [Remote host closed the connection]
prtksxna has quit [Ping timeout: 246 seconds]
raluxgaza has quit [Remote host closed the connection]
<havenn> mjb2k: It is a Ruby HTTP server process. http://unicorn.bogomips.org/
<wmoxam> Unicorns replace Mongrels and Passengers
baphled has quit [Client Quit]
baphled has joined #ruby
<havenn> Unicorns, and Thins, and Passengers, oh my!
atmosx has joined #ruby
werdnativ has joined #ruby
<any-key> someone should write another web server in ruby
<yxhuvud> yes, it was a while since the last one.
<any-key> I need a random word firs
williamcotton_ has joined #ruby
<any-key> first
<mjb2k> yes it's difficult to keep all these web servers straight and know which one to use
kirun has joined #ruby
ttilley is now known as ttilley_off
<wmoxam> meh, I just use passenger and forget about it
<Ionic`> hm, can I use .each on matchdata?
Kevin_ has quit [Remote host closed the connection]
xbigdanx has joined #ruby
<any-key> it's enumerable iirc
* any-key groans, opens docs
williamcotton has quit [Ping timeout: 252 seconds]
williamcotton_ is now known as williamcotton
mimay has joined #ruby
<any-key> try it
<havenn> Most recent interesting one I've seen is Reel. Kinda like Goliath on Celluloid: https://github.com/celluloid/reel
<Ionic`> doc doesn't say anything
mikepack has quit [Remote host closed the connection]
<Tasser> Ionic`, show-doc md.each
<shevy> what does irb say
<any-key> see what irb does when you try it
dv310p3r has quit [Ping timeout: 246 seconds]
<any-key> ruby won't punish you for trying
<Ionic`> ah
<any-key> we're working on fixing that, but for now there's no reason not to try it
tintin has joined #ruby
<shevy> pry kinda beats irb's ass
<havenn> Ruby *may* not punish you for trying. (Could always shoot your eye out!) =P
<mjb2k> Match#to_a then you can
<mimay> Hello! Can anyone help to this in a more elegant way? http://pastie.org/4194880
<Ionic`> Match#to_a?
<tintin> Can i suggest to change feature/syntax or something of ruby here? Is this channel to say this?
<any-key> mimay: first things first, try condensing that regex...
kjellski has joined #ruby
mockra has quit [Remote host closed the connection]
<any-key> or break that up into multiple lines and use gsub! and sub!
<any-key> assuming sub! is a function :P
beneggett has joined #ruby
thecreators has joined #ruby
<mjb2k> Ionic`: convert your matchdata to an array with .to_a, then you can use .each ( I think (
<any-key> that .each {} deserves to be on multiple lines, use "do" instead of curlies
<any-key> mjb2k: you are correct
<havenn> tintin: This is the IRC for the American documentary style reality television series on the Style Network about an overweight Southerner. You probably want #ruby-lang
<tintin> So please remove this sign (<) and add extends to indicate inheritance
<mimay> can someone improve it on the pastie?
dnyy has quit [Remote host closed the connection]
<tintin> class a extends Core
<tintin> The < is a special arithmatic/comparison operator
arturas has joined #ruby
mwilson_ has quit [Excess Flood]
<Ionic`> mjb2k: ah, yeah, that may be an idea
mwilson_ has joined #ruby
mimay has left #ruby [#ruby]
avandenhoven has quit [Quit: avandenhoven]
Jackneill has quit [Remote host closed the connection]
<havenn> tintin: It is many things.
<any-key> mimay: http://pastie.org/4194916
<Ionic`> nope, MatchData.each doesn't work :)
<any-key> wait did he leave?
<any-key> damnit
ph^ has quit [Remote host closed the connection]
<shevy> no he is still here isn't he
<Ionic`> .to_a does... something
<shevy> oh
<shevy> you mean mimay
<any-key> to_a makes it an array
<Ionic`> yeah
<any-key> did you try .each on raw matchdata or should I try it?
<Ionic`> any-key: I did, doesn't work
<Ionic`> not sure why I'm getting *this* result though, hm
<any-key> to_a will work though
<Ionic`> yeah
schaerli has quit [Remote host closed the connection]
<any-key> first element (iirc) is the full match, the rest are the capture groups
<Ionic`> I guess I haven't yet completely understood matchdata
keppy has joined #ruby
<Ionic`> ah
<Ionic`> ok, that's making a lot more sense
<any-key> yay
carloslopes1 has joined #ruby
<Ionic`> yeah, .to_a does nicely in that case
<any-key> you don't have to do to_a
<Ionic`> ?
<any-key> matchdata defines the bracket operatorz
swistak35 has joined #ruby
<any-key> you can do it however though
<any-key> I won't object
<Tasser> but it's just line noise
<any-key> so is your face
<any-key> booooom
<any-key> sorry
amh345 has joined #ruby
<Ionic`> yeah, but I want to go through it... or... well...
amh345 has quit [Changing host]
amh345 has joined #ruby
<any-key> to_a.each will work
<Ionic`> sure, it does
<Tasser> so is your code, the only thing we'll ever see of you
carloslopes has quit [Ping timeout: 264 seconds]
<any-key> hehehe
baphled has quit [Quit: leaving]
<Ionic`> Tasser: hm? :p
<shevy> now I want to see pics from any-key
<any-key> nope
<any-key> I prefer anonyminity
ryannielson has left #ruby [#ruby]
<Ionic`> any-key is a hot redhead
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
bradhe has quit [Read error: Connection reset by peer]
<amh345> im trying to clean up a phone number field. is phone_number.delete('^0-9') the best way to ensure that only numbers are saved? it looks like .delete('^0-9') removed hyphens and spaces without issue. i just want ti make sure there arent any gotchas
<Ionic`> like adam (savage)
<Tasser> any-key, fitting, there was just a part in the track where the singer kind of puked in the micro...
<shevy> there are no girls here
bradhe has joined #ruby
<keppy> I have a noob active record questions the #rails people wont help me with. If anyone is interested...
<shevy> amh345: I think that would work
<amh345> keppy try #rubyonrails
<Tasser> keppy, stackoverflow, #rubyonrails, #railsbridge
<any-key> rubular.com <-- try it there
<shevy> not 100% sure, I prefer to use .gsub
<any-key> in response to amh345
<any-key> careful with gsub
<amh345> shevy: perfect. thanks
<shevy> keppy: activerecord is too tightly coupled to rails, I dont know many who use it without also using rails
cpruitt has joined #ruby
baphled has joined #ruby
carloslopes1 has quit [Client Quit]
<any-key> it's not unheard of but rails people know it much better
<amh345> any-key: ill check out that link.
carloslopes has joined #ruby
<any-key> it's just a tool for trying out regex
<shevy> it's like a big octopus that grows... rails
<amh345> keppy: out of curiosity, what is the question?
<Tasser> amh345, don't feed the troll!!
<amh345> oh. it's a troll?
<amh345> oppps
clockwize has quit [Quit: clockwize]
<keppy> nope
<tintin> havenn: What is many things
<shevy> that is a philosophical question
<shevy> :D
<keppy> amh345: my spec is giving me an undefined method 'proposition' for #<User:xxxxxxxxx> when I try to do this: https://gist.github.com/3042484
baphled has quit [Client Quit]
williamcotton_ has joined #ruby
baphled has joined #ruby
williamcotton has quit [Ping timeout: 244 seconds]
williamcotton_ is now known as williamcotton
clockwize has joined #ruby
<keppy> amh345: Propositions and Oppositions both belong_to :debate, but a User has_many :propositions and has_many :oppositions. Anyway this is only my 2nd rails project and I am most likely being retarded so feel free to flame me if you have the answers. Will take flaming for answers
dhruvasagar has quit [Ping timeout: 245 seconds]
<Ionic`> mh nah I don't even need to iterate through the matchdata object, sorry
codeAdmiral has joined #ruby
bosphorus has joined #ruby
yoklov has joined #ruby
jxpx777 is now known as jxpx777|afk
<keppy> seattle.rb tonight? anyone going?
<havenn> tintin: Ruby uses the same character in difference context for different meanings. The '<' character has many meanings in different contexts.
<tintin> havenn: Yes, that's why i suggest to use 'extends' keyword to indicate inheritance
<tintin> So change the rule/grammer/syntax
<havenn> tintin: Mixins!
mimay has joined #ruby
<havenn> Isn't it just Rails who even use the This < That these days? =P
xbigdanx has left #ruby [#ruby]
robert_ has joined #ruby
<havenn> tintin: There is an extends btw.
<amh345> keppy, so it fails on line 11?
<tintin> No, that is extend, not extends
<keppy> amh345: yes
prtksxna has joined #ruby
<tintin> So if the grammer changes, so you have to re-write a lot of ruby program/code including rails and rails app, right?
<codeAdmiral> Alright, i'm a freshman who has writen Java for a couple of years, and i am just starting Ruby. Does anybody have any suggestions on a good starting place?
xnm has quit [Ping timeout: 246 seconds]
<tintin> codeAdmiral: search in google, ruby tutorial, read ruby docs
prtksxna has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
kava has joined #ruby
<codeAdmiral> I have done most of those things except the two provided by havenn. I kinda meant like really small projects and such
Criztian has joined #ruby
<tintin> codeAdmiral: rubygems.org , github.com , search ruby
jstew has quit [Quit: Lost terminal]
<mjb2k> hmm, i just noticed this: "You have “mixin’s” instead of interfaces." on that page, I think that is a bit of a stretch, there are significant differences between ruby mixins and java interfaces
<Ionic`> hmm, ruby's String class lacks mid/left/right? :/
<Tasser> Ionic`, what would they do?
<Ionic`> well... you could emulate it with [] I guess
<tintin> lol
<havenn> codeAdmiral: Sinatra code is a good read: https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb
<Ionic`> Tasser: return a substring
<amh345> any-key: that rubular link is pretty nifty. but it's not playing nicely with ^0-9 . not sure if it's something on my code or the page.
<amh345> ^0-9 >> "1 23 " >> no matches
minijupe has joined #ruby
codeAdmiral has left #ruby [#ruby]
ph^ has joined #ruby
<tintin> havenn: So if the grammer changes, so you have to re-write a lot of ruby program/code including rails and rails app, right?
noganex has quit [Ping timeout: 265 seconds]
<tintin> ph^: HI
<any-key> it's your code...check out the reference they have at the bottom
<Ionic`> I guess left == [x-(length-1)], mid == [x..y], right == [-2..(length-1)]
<apeiros_> amh345: you can link to your expression
ph^ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
noganex has joined #ruby
<Ionic`> though
<havenn> tintin: It would break things, so Tokyo will refuse. Arguably it should be avoided though, using '<' like such.
<Ionic`> I wonder if -0 works for []
arturas has quit [Remote host closed the connection]
<amh345> apeiros_: ah, i see the link now. im going to play with this a bit mroe before i make an ass of myself. it's probably something silly
<Ionic`> heh, nope
<tintin> havenn: Why/how would it break things? what do you mean by 'break things' ?
<havenn> tintin: Rails would break. No more Tweeting. Sad day.
<tintin> lol
<tintin> And anything else?
<havenn> Lots =P
<amh345> bah. heck with it. http://rubular.com/r/Ol7bbqW2VI
<tintin> They would re-write rails , so what's wrong?
<amh345> ^0-9. why no detect spaces/hyphens?
<tintin> havenn: They would re-write rails replacing < to extends , so what's wrong?
<Ionic`> indeed, [1..-0] SHOULD work, if life was perfect :(
<Ionic`> but ruby returns "", oh well
<apeiros_> amh345: because you want [^0-9]
<apeiros_> just ^0-9 means match "start of string", "0", "-", "9"
robert_ has quit [Ping timeout: 265 seconds]
<amh345> oh FFS
<tintin> havenn: ?
<amh345> apeiros_: thanks dude
bosphorus has quit [Remote host closed the connection]
<tintin>
cpruitt has quit [Quit: cpruitt]
keithcelt has quit [Remote host closed the connection]
SegFaultAX|work2 has quit [Ping timeout: 264 seconds]
<Tasser> Ionic`, [1..-1]
<Ionic`> Tasser: uh... why is it -1?
<havenn> tintin: Ruby core will not break thousands of Ruby apps, when the '<' used as such isn't really ambiguous.
<Tasser> Ionic`, because -0 doesn't work
<Ionic`> Tasser: yeah, but... hm
<Ionic`> shouldn't -1 stop before the last char?
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenn> tintin: No apps are broken because people thing Rails is greater than Activerecord. But backwards compatibility is really important.
<tintin> havenn: If they re-write apps, would it be broken, replaing < to other keyword should not be a hard way
schovi has quit [Remote host closed the connection]
<amh345> interesting. in console >> "12-4 555".delete('^0-9') removes anything not 0-9 . in rubular i have to use [^0-9] to make it function. but using brackets[^0-9] in console "12-4 555".delete('[^0-9]') actually returns "- " . it mist be something in the delete method.
<Ionic`> oh well...
<Tasser> Ionic`, 0..-1 is the whole string
mdszy has joined #ruby
<Ionic`> Tasser: yep, I get that
khakimov has quit [Quit: Computer has gone to sleep.]
<Ionic`> Tasser: I wonder why they use -1 instead of -0 though
<Tasser> because -0 => 0.@- => 0
<Ionic`> 0.@?
<Tasser> try it. 0.send(:@-)
nachtwandler_ has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
<Ionic`> that's giving me a parse error
<tintin> havenn: Is re-writing/replacing < to other keyword a hard way?
<Tasser> Ionic`, 0.send("@-")
<Ionic`> ah
kava has quit [Quit: Leaving]
fantazo has joined #ruby
<Ionic`> undefined method @- for FixNum
<Ionic`> letssee what the fixnum doc says
khakimov has joined #ruby
moshee has quit [Ping timeout: 265 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Ionic`> ok
<havenn> tintin: It would require tens of thousands of lines of code to change. I think the question is, why? Is it worth it? Is it even something we want to be doing?
<Ionic`> 0.send("-@") == 0
<Tasser> fuck
<Ionic`> well... ook
<Tasser> well, you see the point
<Ionic`> that explains it
<Ionic`> sure
<apeiros_> 0.send(:-@)
manizzle_ has joined #ruby
<havenn> tintin: if you'd like to extends, it is trivial to alias it
maahes has quit [Read error: Operation timed out]
<tintin> havenn: Yes, but you will just replace with a IDE like eclipse or netbeans , just one command and wait
<apeiros_> and you can actually even call it by 0.-@()
<Ionic`> 0, too, yeah
<apeiros_> irb doesn't seem to like it, though
Tearan has quit [Ping timeout: 250 seconds]
<Ionic`> apeiros_: likes it for me
<mjb2k> or you could spend your time doing something useful
friskd has quit [Quit: friskd]
<apeiros_> Ionic`: my irb fails to print the return value for it
bradhe has quit [Read error: Connection reset by peer]
<Ionic`> apeiros_: 1.9.3 doesn't
bradhe_ has joined #ruby
Tearan has joined #ruby
<Ionic`> err
ixti has quit [Read error: Connection reset by peer]
friskd has joined #ruby
<Ionic`> irb 0.9.6 v/ ruby 1.9.3
<Tasser> apeiros_, works in pry
friskd has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
<tintin> Tasser: calm down and watch your language
<deryl> oh no, its tintin again
thyagu has joined #ruby
<Tasser> tintin, speed up with your comments, they're a screen behind
ixti has joined #ruby
<thyagu> my cap deploy is not producing files in the releases sub directory in the server, any pointers what went wrong?
<havenn> <- troll food
<tintin> lol
<Hanmac> Information: "-0" is a number, "- 0" is a method call
jamesaxl has quit [Ping timeout: 248 seconds]
<tintin> lol food
tintin has quit [Quit: tintin]
<Ionic`> hrm
tar_ has joined #ruby
<keppy> I'm writing a book on ruby called "What Went Wrong"
<Ionic`> I hate writing parsers
<havenn> You had me at NetBeans.
joast has quit [Ping timeout: 244 seconds]
<wmoxam> keppy: Chapter 1: Rails
<Tasser> Ionic`, lex/yac ?
baphled has quit [Quit: leaving]
<keppy> Chapter 2: JavaScript
baphled has joined #ruby
<Ionic`> Tasser: I'm trying it with ruby, though probably not the most intelligent way
<wmoxam> Chapter 3: Hipsters
<keppy> lol
wobr has quit [Quit: Leaving.]
<the_jeebster> lmao
<amh345> Chapter 4: Dongs
<the_jeebster> definitely hipsters
<wmoxam> Chapter 5: Zed Shaw
<the_jeebster> can't knock ruby :o
<Tasser> would explain the 90% apple coverage at ruby conferences :-)
<keppy> but can knock Zed Shaw's hipster dong
<the_jeebster> yup
<deryl> dong gone wrong
<anothervenue> hipster...dong?
ixti has quit [Read error: Connection reset by peer]
<amh345> holla at yo dong
workmad3 has joined #ruby
<keppy> i went to seattle.rb once and was scared away by hipsters. trying again tonight
<keppy> i felt so uncool that I lied and blurted out "I'm developing an iphone app" :(
<Tasser> keppy, just grab a huge joint and you're ok
<Hanmac> shevy:
<Hanmac> puts Benchmark.measure { 100_000_000.times { -0 } } #=> 6.370000 0.000000 6.370000 ( 6.376065)
<Hanmac> puts Benchmark.measure { 100_000_000.times { - 0 } } #=> 9.680000 0.000000 9.680000 ( 9.695505)
<Tasser> lulz
<wmoxam> keppy: rolf
bglusman has joined #ruby
<wmoxam> rofl even
baphled_ has joined #ruby
<amh345> hipsters are funny. just wear a scarf like a diaper and you're good to g
<amh345> o
<Hanmac> as you could see, whitespaces are evil
baphled has quit [Ping timeout: 248 seconds]
Tearan_ has joined #ruby
<keppy> heh I know but I'm not kidding I did say that
stat1x has quit [Remote host closed the connection]
stat1x has joined #ruby
<mjb2k> "wear a scarf like a diaper" ?? wtf?
<amh345> it's all about the entrance
<keppy> like a cloth diaper, probably
Tearan has quit [Ping timeout: 244 seconds]
Tearan_ is now known as Tearan
<anothervenue> mjb2k: Yeah that doesn't compute
<keppy> you know, neck wrapped in swaddling cloth
<keppy> in july
<wmoxam> hipster is a funny concept because it can pretty much mean anything now
<wmoxam> so basically anythign you hate == hipster
khakimov has quit [Quit: Computer has gone to sleep.]
<anothervenue> hipsters vs brogrammers
<mjb2k> there might be an awful lot I don't know about seattle
<anothervenue> Thats my new iPhone game
<Ionic`> wah...
<amh345> i got banned from toronto ruby meetups for dragging my ass across the carpet (there was no toilet paper left)
thecreators has quit [Quit: thecreators]
<anothervenue> I'ts like Plants vs Zombies, except it sucks.
<Ionic`> how do I include a variable in a regexp without getting headaches?
sepp2k has quit [Ping timeout: 246 seconds]
<keppy> take a lot of asprin
<amh345> i got called a hipster for wearing glasses
<Ionic`> /^(.*)#{foo}(.*)/ won't work, if foo = "(" for instance
<anothervenue> I got called a hipster cause I have a shirt with snaps instead of buttons
<Ionic`> likewise, \#{foo} won't exapand the var
ben_alman has quit [Excess Flood]
<anothervenue> snaps>buttons
<amh345> snaps are waaay more efficient. jokes on them
<anothervenue> Yeah
<havenn> i'm ultimate hipster, been doing my ex-wife since before it was cool
<amh345> yeah. i read that already on reddit
billiamii has joined #ruby
<havenn> amh345: =( *sulking*
<amh345> ;)
<blazes816> amh345: yeah, but he was saying it first
<amh345> hah
<keppy> my first time hearing it so clearly rofl
mimay has quit [Remote host closed the connection]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
<Ionic`> hmm, Regexp.escape(foo) may be worth a shot
mdszy has quit [Quit: bye for now]
<Ionic`> ah!
atmosx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Ionic`> there we go
<Ionic`> nice
<keppy> Ionic: ya that's nice
thyagu has quit [Quit: Leaving]
<mjb2k> Ionic`: I got it to expand just fine: al = "[a-z]"; num = "[0-9]"; regex = /#{al}+#{num}+/
jcrocetta has joined #ruby
<Ionic`> mjb2k: yes, but I don't want it to escape :)
ben_alman has joined #ruby
<Ionic`> imagine num was just "("
<Hanmac> why not using \w and \d ?
<shevy> the last one to have called me hipster is no longer alive
minijupe has quit [Quit: minijupe]
fbernier has quit [Ping timeout: 246 seconds]
davidpk has joined #ruby
<keppy> shevy: your ex wife?
<shevy> no
<Ionic`> lol
alexim has quit [Quit: bye]
<anothervenue> shevy: Are you running Haiku or Menuet as your main OS?
<shevy> hmm no... linux :(
<shevy> haiku is nice as idea, but they are too slowly evolving
<anothervenue> shevy: Pshhhh, you can't wear the scarf then
<anothervenue> :D
<Ionic`> they are evolving?
<shevy> I dont think ruby works on haikus out of the box
<anothervenue> Glacier pace
<mjb2k> Ionic`: like this: s = "("; e = ")"; r = /\w#{s}\d+#{e}\w/ ?
<Ionic`> mjb2k: this will work, but I want to match a literal s
saschagehlich has quit [Quit: saschagehlich]
<Ionic`> so Regexp.escape it is
<mjb2k> I got this resulting regex: /\w(\d+)\w/
<Ionic`> yeah... but again, not what I wanna do :)
ringotwo has quit [Remote host closed the connection]
myth17 has quit [Ping timeout: 265 seconds]
jcrocetta has left #ruby [#ruby]
<shevy> we need a language to replace C
<keppy> Ionic & mjb2k, pair regex programmers 4 life
<Ionic`> shevy: C++ :p
<mjb2k> so you want to expand the var, but not let it interpret what ever character is might be as a special char
ixti has joined #ruby
<Ionic`> mjb2k: yep
<mjb2k> i wonder if you could use \\
<Ionic`> nope
<Ionic`> this won't expand #{foo}
voodoofish430 has quit [Quit: Leaving.]
<shevy> Ionic`: well that is not really a substantial improve IMO :\
<Ionic`> shevy: good enough, I'd say?
<Ionic`> then again, I have no idea what you need
<shevy> C++ vs C, I don't feel it can really take the edge
<shevy> Ionic`: one language to rule them all!
ringotwo has joined #ruby
<shevy> one language to bind them and in the darkness spank them
<Ionic`> lol
lorandi has quit [Quit: Leaving]
<shevy> ruby is unfortunately too slow :(
sepp2k has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
plastics has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
<mjb2k> seems that \\#{foo} gives the same result as Rexep.escape, but maybe I'm missing something else, oh well, I now understand the problem but I've lost interest in solving it, lol
clockwize has quit [Quit: clockwize]
<Ionic`> hehe :p
<Ionic`> Regexp.escape *is* the resolution
qwerxy has quit [Ping timeout: 244 seconds]
dekroning has quit [Ping timeout: 248 seconds]
<mjb2k> yes i see that, it just didn't appear to be the only solution, I was a little confused when you said \\#{foo} didn't work when it appeared to work to me
tar_ has quit [Quit: farewell]
flowerhack has joined #ruby
myth17 has joined #ruby
friskd has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<Ionic`> oh
<Ionic`> \\#{foo} does work
x0F_ is now known as x0F
<Ionic`> but then \\ is not "expanded" to a single \
Gavilan has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
<Ionic`> uh, wtf
davidcelis has joined #ruby
chrismcg is now known as zz_chrismcg
jxpx777|afk has quit [Quit: Mac is sleeping…]
rdg has joined #ruby
<Ionic`> that's... interesting
<Ionic`> wtf?
<fowl> what re you trying to do
<fowl> what do you expect #{\\} to do
<fowl> \\ isnt valid ruby
<Ionic`> give me an \
<Ionic`> hm
rdg has quit [Client Quit]
<Ionic`> *shrug*
<fowl> Ionic`, /^(.*)\\#{i}(.*)/
thecreators has joined #ruby
vitoravelino`afk is now known as vitoravelino
<Ionic`> Seems like Regex.escape() is indeed the only way to do this sanely
yannis has quit [Quit: yannis]
<fowl> > /^(.*)\\#{Regexp.escape(i)}(.*)/ #=> /^(.*)\\\((.*)/
<fowl> i didnt realize i was '('
<Ionic`> hehe, yeah
<Ionic`> mjb2k argues there's gotta be another way to do this
<fowl> Ionic`, you want to escape all (user) input for that reason
<Ionic`> fowl: I sure do
<mjb2k> I was just not understanding why and trying to make sense of it, I kinda found out why
<mjb2k> I was expecting regular string treatment of the characters I was putting in the regex literal
<mjb2k> that's not what happens
baphled_ has quit [Quit: leaving]
<mjb2k> r = "^(.*)\\#{i}(.*)"; if (a =~ /#{r}/); p "yay"; else p "nay"; end
<mjb2k> that works
baphled has joined #ruby
camilo has quit [Remote host closed the connection]
<Ionic`> mjb2k: ah, yeah, cause \\ is then expanded to \
<mjb2k> maybe not a better solution, but an explanation to the inconsistency I was seeing
tatsuya_o has joined #ruby
stephenjudkins has joined #ruby
atmosx has joined #ruby
baphled has quit [Client Quit]
<the_jeebster> I have a variable that holds an arel query. is it possible to pass an argument to that variable or can I only pass args in a method?
bandu has joined #ruby
<bandu> hey all.
tatsuya__ has quit [Ping timeout: 248 seconds]
flowerhack has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
<friskd> Hey guys i'm looking for some terms to google for as i'm new to this space. We have a database of products. fields: name, description i want to start building something that would allow for users to type say "Toilet" and get Toilet Paper as the first result. Not Toilet Bowl etc.
<friskd> What is that called?
<friskd> What do i need to learn about to build a system that can bring relavent and related data to my users.
<blazes816> the_jeebster: you can't pass things to the variable directly. what are you trying to do?
tatsuya__ has joined #ruby
<bandu> friskd: fuzzy logic?
<blazes816> friskd: why not Toilet Bowl?
<the_jeebster> I'm trying to loop through an array and pass each items attribute to the query
<friskd> ok. ill add that to my list.
<the_jeebster> blazes816: I'm trying to loop through an array and pass each items attribute to the query
<friskd> blazes816: because when people are on my site, they are more likely looking for toilet paper than toilet bowls
tatsuya_o has quit [Ping timeout: 246 seconds]
<blazes816> friskd, gotcha
<friskd> like go to amazon, type in toilet
<friskd> it suggest toilet paper first.
<friskd> out of all the possible things.
<bandu> interesting.
<blazes816> friskd: you do that by tracking what people search for, and ranking results accordingly
<bandu> search IS important. i'm sure there's a field of study for that alone.
<blazes816> friskd: if everyone search for toilet bowls and not toilet paper, they'd come up
davidpk has quit [Quit: Computer has gone to sleep.]
<blazes816> the_jeebster: you can pastie or gist your code? I don't quite get what you mean
renanoronfle has quit [Quit: Linkinus - http://linkinus.com]
joast has joined #ruby
ringotwo_ has joined #ruby
t0mmyvyo has joined #ruby
<blazes816> the_jeebster: 'can you'*
<mjb2k> friskd: I'd start with googleing something like this: "weighting search terms"
dnyy has joined #ruby
<friskd> ok.
ringotwo has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Ping timeout: 244 seconds]
<friskd> adding those to my list.
tatsuya_o has joined #ruby
tatsuya__ has quit [Read error: Connection reset by peer]
peregrine81 has quit [Quit: Computer sleeping.]
<the_jeebster> blazes816: I figurd it out. thanks though!
balki_ has quit [Read error: Connection reset by peer]
ringotwo_ has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
t0mmyvyo is now known as tommyvyo
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
CheeToS has left #ruby [#ruby]
anothervenue has quit [Quit: WeeChat 0.3.7]
myth17 has quit [Quit: Leaving]
<macmartine> How can I get a datetime from a date?
<macmartine> doh, to_datetime
tatsuya_o has quit [Ping timeout: 246 seconds]
joshman_ has quit [Ping timeout: 248 seconds]
ringotwo has joined #ruby
cjs226 has quit []
jeff_sebring has quit [Read error: Operation timed out]
tiripamwe has joined #ruby
nilg has quit [Remote host closed the connection]
fridim_ has joined #ruby
zastaph has joined #ruby
minijupe has joined #ruby
AlbireoX`Laptop has joined #ruby
tatsuya_o has joined #ruby
mengu has joined #ruby
Morkel has quit [Quit: Morkel]
tatsuya__ has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
scb has joined #ruby
wvms has joined #ruby
jxpx777 has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
minijupe has quit [Quit: minijupe]
tatsuy___ has joined #ruby
workmad3 has joined #ruby
keppy has quit [Read error: Operation timed out]
tatsuya__ has quit [Ping timeout: 246 seconds]
davidw has joined #ruby
mockra has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
jxpx777 is now known as jxpx777|afk
vitoravelino is now known as vitoravelino`afk
Stumilowy has joined #ruby
mockra has quit [Remote host closed the connection]
baphled has joined #ruby
<Stumilowy> Is this tutorial obsolete? http://ruby-doc.org/docs/ProgrammingRuby/
vitoravelino`afk is now known as vitoravelino
gogiel2 has joined #ruby
<Stumilowy> because, for example, they suggesting to use "something.type", when should be "something.class"
minijupe has joined #ruby
baphled has left #ruby [#ruby]
<mjb2k> Yes, too old: "This book documents Version 1.6 of Ruby"
cjlicata has joined #ruby
v0n has joined #ruby
<shevy> yeah Stumilowy I guess some guy wrote it years ago, then noone bothered to update it
tatsuy___ has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
ryanf has quit [Quit: leaving]
gogiel2 is now known as gogiel
carlyle has quit [Ping timeout: 248 seconds]
DrShoggoth has quit [Quit: Leaving]
bbttxu has quit [Quit: bbttxu]
PaciFisT has quit [Quit: Leaving.]
tcopp has left #ruby [#ruby]
<Stumilowy> i prefer more specific tutorials
<Stumilowy> that one is too generic
sharenothing has joined #ruby
peregrine81 has joined #ruby
selector has quit [Quit: Leaving]
baphled has joined #ruby
<mjb2k> Do you mean it's too basic? click the Documentation link on that page and there are plenty more to choose from
scb has quit [Ping timeout: 255 seconds]
<offby1> banisterfiend: is there a way that I can run "pry" so that it can see all the stuff my tests would see, if I were running my tests via "rspec"?
minijupe has quit [Quit: minijupe]
tatsuya__ has joined #ruby
rking has quit [Quit: I suck: started outside of tmux.`]
atmosx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
baphled has quit [Quit: leaving]
rking has joined #ruby
mnaser has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
cjlicata has quit [Remote host closed the connection]
prtksxna has joined #ruby
dcampano_ has joined #ruby
<Stumilowy> ty mjb2k
dcampano has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 250 seconds]
davidcelis has quit [Ping timeout: 244 seconds]
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
[Neurotic] has joined #ruby
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<[Neurotic]> morning
tzvi has quit [Remote host closed the connection]
monvillalon has quit [Quit: monvillalon]
mnaser has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
dcampano_ has quit [Client Quit]
mnaser has joined #ruby
kpshek has joined #ruby
SegFaultAX|work2 has joined #ruby
<eam> is there a favorite module for turning numbers into human readable metric notation? eg 10000000 => 10M
jeff_sebring has joined #ruby
prtksxna has quit [Remote host closed the connection]
jrist is now known as jrist-out
billiamii has quit [Read error: Connection reset by peer]
tommyvyo has quit [Client Quit]
ebanoid has quit []
fermion has quit [Quit: P]
yoklov has quit [Quit: computer sleeping]
<Ionic`> http://pastie.org/private/ikzbq3mnkkgxuoxgtdjk8g uhm what am I doing wrong?
<Ionic`> offset 1 shouldn't make match fail
Gavilan has left #ruby [#ruby]
stephenjudkins has joined #ruby
<workmad3> Ionic`: ^ <-- only matches start of string... wouldn't surprise me if that's what's failing
<Ionic`> indeed... what the hell?
<Ionic`> uhm, actually... that doesn't even what I intended it to do
<Ionic`> *sigh*
<Ionic`> even more manual work
<blazes816> workmad3: surely that's a bug, right?
<blazes816> if it is in fact the issue
<Ionic`> blazes816: it is the issue
<mjb2k> (.+?), isn't that 2 quantifiers in a row?
brendan` has quit [Remote host closed the connection]
<Ionic`> and even more, match(bla, 1) returns o kenizr...
<Ionic`> mjb2k: non-greedy match
atmosx has joined #ruby
<blazes816> mjb2K: match any character, once or more, greedily
<mjb2k> oh, ok
<workmad3> blazes816: is it? should the regex matcher create a new substring when you tell it you want to start matching at the second character of the string?
Aaton is now known as Aaton_off
<blazes816> workmad3: perhaps it's intentional. but I feel like if you're specifying to start matching in a different place, then THAT should be considered the beginning of the search string.
<Ionic`> I'd expect it to no create a new substring but ignore everything up to pos
<blazes816> but perhaps others disagree.
zastaph has quit []
<Ionic`> instead, match creates a new substring or something
<Ionic`> which is just stupid :/
devdazed has quit [Ping timeout: 260 seconds]
the_jeebster1 has joined #ruby
cherrypeel has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
tatsuya_o has joined #ruby
<atmosx> is there any freeware ruby windows IDE?
jeff_sebring has quit [Quit: Leaving]
kjellski has quit [Quit: Leaving]
jlogsdon has quit [Remote host closed the connection]
tommyvyo has joined #ruby
<atmosx> yes got that link on google too
<atmosx> but I hoped there would an *obvious choice*
tatsuya__ has quit [Ping timeout: 248 seconds]
* atmosx no hope for windows users after all
tiripamwe has quit [Read error: Connection timed out]
workmad3 has quit [Ping timeout: 264 seconds]
jeff_sebring has joined #ruby
jgarvey has quit [Quit: Leaving]
monkegji_ has joined #ruby
Synthead has quit [Quit: p33 ba115]
yoklov has joined #ruby
apeiros_ has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
berserkr has quit [Quit: Leaving.]
<cherrypeel> i just use vim
<atmosx> well, me too
<atmosx> vim & textmate… mostly vim lately
<graspee> atmosx it's not popular but i like eric or you could try geany on windows
oooPaul has quit [Quit: Ciao for now!]
<atmosx> Although it's copy/paste sucks big time and the comments in/out plugin sucks also (on vim)
<atmosx> geany hmm thanks
<mjb2k> notepad++ is really the only good free editor on Widows for anything
<cherrypeel> vim copy/paste is awesome
<graspee> you will get project management, object browser, code folding with eric and geany
EPIK has joined #ruby
<atmosx> ah geany looks good nice
<atmosx> GTK-based but I think it does what I want
<graspee> geany's object browser is a little duff compared to eric's though
tatsuya__ has joined #ruby
<atmosx> I didn't used eric for years… I used to write python scripts back then
<graspee> actually i might be getting confused about eric being available on windows
<graspee> but geany is
<graspee> eric handles ruby in addition to python these days
<atmosx> I hope my friend was on linux or mac… this would be a lot easier… I'm afraid I'll gem issues (path issues) with ruby also
<atmosx> anyway
tatsuya__ has quit [Remote host closed the connection]
<graspee> i ran into all sorts of gem problems on windows
<graspee> with individual gems, not the gem setup
<atmosx> yes, that's why I'm thinking maybe installing ubuntu on a partition
<atmosx> just for dev purposes
<atmosx> might be a good idea
<atmosx> and then you have too many editors… I need to find someone that supports ruby and git (to update/manage commits) and we're fine
yoklov has quit [Quit: computer sleeping]
<atmosx> someone = I mean an editor hehe
apok_ has joined #ruby
mdszy has joined #ruby
tatsuya_o has quit [Ping timeout: 255 seconds]
apok has quit [Read error: Operation timed out]
apok_ is now known as apok
<Stumilowy> you mean "Eric The Python IDE?"
<eam> what's the ruby method to search using a regex, and also replace? Like Perl's s/foo/bar/g
<eam> I see scan, which doesn't replace, and replace, which doesn't search with a regex
monvillalon has joined #ruby
<zaargy> gsub
<eam> ah awesome, thanks
<cherrypeel> atmosx: Don't know if this would work for you, but I've been using AWS's free tier to develop ruby on a micro ubuntu instance
<atmosx> I have too many uknown words
<atmosx> what is AWS free tier and what do you mean by micro-ubuntu instance?
<cherrypeel> Sorry - AWS is Amazon Web Servies. They have a "free tier" of their services you can use at no cost for a year
<graspee> a small, cut back installation of ubuntu i suppose
<cherrypeel> There are different sizes of virtual "instances" you can spin up, the "micro" is free. and you can put Ubuntu on it
<cherrypeel> then you ssh into it and do your work there. can host websites and so on to the public, too
<atmosx> ah thats amazing
<shevy> graspee: what is eric? I know geany... but eric?
<atmosx> but it's a paid service in the end and it's not an option
<graspee> eric is an ide for python mainly, hence the name, but it handles ruby too
<cherrypeel> well, it's completely free for an entire year and you can just stop your instance at the end of that year and never pay a dime
<cherrypeel> amazon has no problem with that afaik
carloslopes has quit [Quit: Leaving.]
davidw has quit [Ping timeout: 244 seconds]
Aaton_off is now known as Aaton
<Stumilowy> ots can be used as a VPN?
<Paradox> Mon_Ouie, are you around?
<shevy> hmm interesting. thanks graspee
TorpedoSkyline has joined #ruby
jamesaxl has joined #ruby
wmoxam has quit [Quit: leaving]
ringotwo has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
kvirani has quit [Remote host closed the connection]
<shevy> wish the ruby bindings to qt and gtk would be better and more uptodate
ringotwo has joined #ruby
ilyam has joined #ruby
EzeQL has quit []
<mjb2k> whoo hooo!! Emerging from JAXB hell, going home to work on one of my Ruby projects now!!! ( sorry for the digression, just had to share my elation )
chienpo has quit [Quit: Leaving.]
<shevy> what ruby projects
Progster has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
<mjb2k> favorite one right now is a "Enterprise Ready" password manager
<mjb2k> rails app
RainbowDashh has quit [Client Quit]
banseljaj is now known as imami|afk
macmartine has quit [Quit: macmartine]
<mjb2k> I'm hoping to use it to replace the pile of crap we're using now and be the first app in the door in my long term goal of pushing php out and ruby in
ben_alman has quit [Excess Flood]
sepp2k has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
cherrypeel has quit [Quit: Leaving]
<mjb2k> unfortunately it's nothing I will be releasing public any time soon, due to employment agreements. I do plan to ask for ownership of the app at some point though. Then I would definitely release it
Stumilowy has quit [Ping timeout: 245 seconds]
<shevy> oh railsy
<shevy> closed source railsy
<shevy> :D
axl_ has quit [Quit: axl_]
monvillalon has quit [Quit: monvillalon]
<shevy> I'd wish .cgi wouldn't be so annoying to use
jxpx777|afk has quit [Quit: Mac is sleeping…]
<Tasser> shevy, rails needs AGPL ;-)
<Ionic`> shevy: .cgi is ok, .fcgi is worse
<mjb2k> 2nd place personal project is a GUI in ruby / GTK2 for a media server front end, but I'm still unsure if it's going to stay on ruby/GTK or move to java/swing
<shevy> what is AGPL?
thecreators has quit [Quit: thecreators]
<atmosx> good night everyone
<shevy> atmosx!!! dont leave us!!!!!
thecreators has joined #ruby
<Ionic`> though generally... I have no idea how to debug cgi stuff
<shevy> yeah Ionic`
<Ionic`> that's a pain in the (are we PG?)
<atmosx> shevy: I know that ruby's future depends on my heavily, but I have to get some sleep :-P I'm working at the pharmacy tomorrow
moshee has quit [Ping timeout: 248 seconds]
<shevy> hehe ok cya atmosx
moshee has joined #ruby
<atmosx> shevy: do you want me to kill someone by supplying the wrong drug? :-P
<atmosx> hahaha
<atmosx> good night ppl :-)
<Ionic`> atmosx: I'd like to have some drugs, please
<Ionic`> pain relief ones, preferably
<atmosx> Ionic` sure, you can pay via paypal and mail me the address
<atmosx> I can send you a natural drugs that requires no prescription
btanaka has quit [Remote host closed the connection]
<atmosx> i'ts a sort of painkiller
<atmosx> with a sort of natural narcotic
yannis has joined #ruby
<Ionic`> urgh, no thanks, I like me chemical stuff ;P
v0n has quit [Read error: Connection reset by peer]
<atmosx> hahaha
<mjb2k> like some vicodin
<atmosx> ask shevy I'm sure he knows how to prepare cocaine ;-)
Criztian has quit [Remote host closed the connection]
schickung has joined #ruby
<graspee> vicodin sucks because it has paracetemol in it
pk1001100011_ has joined #ruby
ben_alman has joined #ruby
thecreators has quit [Ping timeout: 246 seconds]
<mjb2k> i actually had vicodin prescribed and it did great for me, but when my wife had it for back problems and didn't do anything for her
<blazes816> mjb2k: I got vicodin prescribed once and it just made my heart race really bad. my mother eats the stuff like candy
<shevy> atmosx: I am more interested in designing new biomolecular machines (enzymes), not so much in classical chemistry
pk1001100011 has quit [Ping timeout: 240 seconds]
ghanima has quit [Quit: Leaving.]
<fowl> shevy, machines that wil massage your synapses to release dopamine and induce euphoria
<fowl> or machines to kill us
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
hunglin has quit [Ping timeout: 244 seconds]
<mjb2k> thwarted by a servlet out of memory, le sigh...
atmosx has quit [Read error: Connection reset by peer]
SQLStud has quit [Read error: Connection reset by peer]
<shevy> fowl: ethically correct science of course, I am a nice guy after all
bradhe_ has quit [Remote host closed the connection]
<shevy> the 1% evil are already called politicans
jeff_sebring has quit [Quit: Leaving]
<Paradox> anyone know where $XDG_CONFIG_HOME
<Paradox> is?
<Paradox> i dont have a var on my system by that name
uris has quit [Quit: leaving]
<SirFunk> Are there any known problems with OpenSSL 1.x in Ruby 1.9?
<cirwin> the API is horrific? :p
pk1001100011_ is now known as pk1001100011
<shevy> Paradox: I think... that is some definition from this desktop thingy... what was the name...
nari has joined #ruby
<mjb2k> (whoa, deleted overly political comment), servlet fixed, now I'm really leaving, I'll miss you shevy... ( tear )
bradhe has joined #ruby
mjb2k has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
tramm has joined #ruby
<Paradox> particularly
<Paradox> i'm looking for coolline's config on OS X
yoklov has joined #ruby
ryanf has joined #ruby
<tramm> can anybody advise me where i should put my "require 'i18n'" in a ruby application like octopress... ?
<Paradox> sigh octopress
* Paradox hides
residentwhackjob has joined #ruby
<residentwhackjob> \o
<tramm> i manage to get my test application work, but without any real knowledge of ruby it's hard to understand how the whole application with all the gems runs together and where i should define this requirement.
<tramm> Paradox, what's so scary about octopu... press?
davidcelis has joined #ruby
Markvilla has quit [Quit: Markvilla]
randomautomator has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
<Paradox> tramm, its just a giant nightmare to work with if you want to do anything non-standard
monvillalon has joined #ruby
<Paradox> since its built atop jekyll, nothing quite works right
<Paradox> like…try using haml templates with it
mneorr has quit [Quit: Leaving.]
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
jeff_sebring has joined #ruby
Spooner has joined #ruby
bandu has quit [Quit: KVIrc 4.0.2 Insomnia http://www.kvirc.net/]
dv_ has joined #ruby
mvangala_home has joined #ruby
bowlowni has quit [Remote host closed the connection]
bowlowni has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
niku4i has joined #ruby
jeff_sebring has quit [Quit: Leaving]
<tramm> Paradox, well i'm not trying to do anything special, i just keep getting date.rb:5:in `require': no such file to load -- i18n (LoadError)
<tramm> don't really know where and how should i require this
bowlowni has quit [Ping timeout: 246 seconds]
mnaser has quit [Quit: Computer has gone to sleep.]
jeff_sebring has joined #ruby
Natch has quit [Remote host closed the connection]
austinbv2 has joined #ruby
vitoravelino is now known as vitoravelino`afk
<SirFunk> can someone look at a script i have and help me figure out why it works in 1.8.7 but not 1.9.3? (warning, ssl)
artOfWar has quit [Remote host closed the connection]
freeayu has joined #ruby
gloriaC991 has joined #ruby
m104 has joined #ruby
andrewhl has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
<gloriaC991> hey, is there a build-in way to convert a escape a string the way it would be escaped if it were a unix filename? example: filename".txt becomes "filename\".txt" (all quotes included)
<gloriaC991> built-in*
m104 has left #ruby [#ruby]
<gloriaC991> wow let me rewrite that message entirely
<gloriaC991> hey, is there a built-in way to escape a string the way it would be escaped if it were a unix filename? example: filename".txt becomes "filename\".txt" (all quotes included)
ramblex has quit [Quit: ramblex]
yoklov has quit [Quit: computer sleeping]
tiripamwe has joined #ruby
ackz has quit [Quit: Leaving...]
fulmato has joined #ruby
kirun has quit [Quit: Client exiting]
liluo has joined #ruby
Natch has joined #ruby
kenichi has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
<shadoi> gloriaC991: that has nothing to do with unix filenames and everything to do with how your shell handles certain characters in filenames.
seanstickle has joined #ruby
<gloriaC991> shadoi: yep i know. i'm just trying to duplicate the algorithm
<shadoi> And the answer is no. :)
<gloriaC991> actually
<gloriaC991> inspect/dump do the right thing
JustinCampbell has quit [Remote host closed the connection]
austinbv2 has quit [Ping timeout: 245 seconds]
Targen has quit [Ping timeout: 245 seconds]
<shadoi> This works as you'd expect: 'filename".txt'
<gloriaC991> they just don't do it intelligently
<shadoi> But it may not mirror every case for shells and filenames.
<gloriaC991> (they do it even if there are no special chars)
austinbv2 has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
avandenhoven has joined #ruby
MekkisScreen has joined #ruby
xaq has quit [Remote host closed the connection]
the_jeebster1 has quit [Quit: Leaving.]
nari has quit [Ping timeout: 246 seconds]
<tramm> i suppose i have to put my require in the Rakefile or something to make it work...
apok has quit [Remote host closed the connection]
apok has joined #ruby
bfgun is now known as bfig
monvillalon has left #ruby [#ruby]
crankycoder has quit [Remote host closed the connection]
eywu has quit [Quit: Leaving.]
GravenHearth has joined #ruby
celestius has joined #ruby