apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
teedex has joined #ruby
<swarley> voxel = [cycle(:filled,10)*10]*10
<swarley> but that's just made up
* Spooner kicks swarley
<swarley> That would only matter if you were dealing with it manually
<swarley> Spooner; :c
sheerun has quit [Quit: and thanks for all the fish]
cakehero has quit [Ping timeout: 264 seconds]
<Guest14528> Can you give me a real code example?
<swarley> spooner pretty much did
irleif has quit [Quit: Computer has gone to sleep.]
<Spooner> Yeah, just replace "draw cube at xyz" with your lines to draw (9 + 10).
noyb has joined #ruby
ephemerian has quit [Quit: Leaving.]
<Spooner> Though actually, are you aware that glTranslate doesnt' reset the coordinates to 0, so you'll keep moving away from the origin? You need to push and pop the matrix in the loop (or work out the change in coordinates which is possible, but always make it work in the easiest way before you worry about optimisation).
<tpe11etier_> Does anyone use RubyMotion here with SUblimeText2? I do and when I installed an autocomplete package, it broke Ruby autocomplete. Wondering if anyone had the same issue and fixed it.
davidcelis has quit [Quit: K-Lined.]
drago757 has quit [Quit: drago757]
dankest has joined #ruby
dmiller has joined #ruby
<Guest14528> The push pop fixed a part of it. Now I need a square shape
slainer68 has joined #ruby
gabrielrotbart has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
hiroyuki has quit [Remote host closed the connection]
Agis__ has quit [Quit: Agis__]
nimred has quit [Read error: Operation timed out]
nimred has joined #ruby
<Guest14528> Just How would I get a sqaure shape
teedex has quit [Remote host closed the connection]
GranMal has joined #ruby
<GranMal> Anyone know of a carrier wave add-on that handles background jobs for uploading files to backspace cloud files?
slainer68 has quit [Ping timeout: 260 seconds]
<GranMal> backspace = rackspace
samphippen has quit [Quit: Computer has gone to sleep.]
stev923 has joined #ruby
<stev923> hi
stev923 has quit [Client Quit]
<shadewind> when is the "then" keyword used in an if clause?
<CaptainJet> if condition then code end
Takehiro has joined #ruby
<shadewind> only required when single line?
<CaptainJet> yep
<CaptainJet> and even then, you could substitute with semi-colons
<CaptainJet> if condition; code; end
<shadewind> CaptainJet: why the semicolon after code?
<CaptainJet> a semi-colon is basically the same as a new line
<CaptainJet> except on one line, and can be grouped together with a conditional too
<shadewind> right
bigmcq77 has quit [Remote host closed the connection]
<shadewind> but it seems it's not required unless there are multiple statements
<CaptainJet> (@bool = true; @var -= 1; return "L") if @other_bool
Monofu has joined #ruby
<CaptainJet> it's not
Monofu has left #ruby [#ruby]
<swarley> shadewind; yes, its only needed in cases like if this then that end
Monofu has joined #ruby
<CaptainJet> semi-colons are almost never actually needed in that sense
bigmcq77 has joined #ruby
<shadewind> if i > 0 then puts "hello" end
<shadewind> is correct, isn't it?
<swarley> yes
<swarley> you can also add an else clause to that if i'm not mistaken
<CaptainJet> if i > 0 then puts "hello" else puts "goodbye" end
iamjarvo has joined #ruby
<Monofu> Programming contest practice help is needed! Any suggestions on how I should approach this problem? https://gist.github.com/3929077
Takehiro has quit [Ping timeout: 256 seconds]
chichou has quit [Remote host closed the connection]
iob has joined #ruby
<Spooner> shadewind : I'd use this rather than use one-line if/end: puts "hello" if i > 0
<shadewind> yeah sure
<shadewind> I just wanted some clarification about 'then'
gabrielrotbart has quit [Remote host closed the connection]
<Spooner> shadewind : Ah, OK. You also need it in case statements if you want them one-lined: case x; when 1 then "hello"; when 2 then "bye"; end rather than case x; when 1; "hello"; when 2; "bye"; end
kuzushi has joined #ruby
Monofu has quit [Quit: quit]
<swarley> something that took me a long time to learn about was commas in when
<swarley> i jut had no idea for like, years
<Spooner> You used multiple clauses?
dankest has quit [Ping timeout: 245 seconds]
<swarley> yup.
<swarley> I dont even remember how i came about knowing it
Shamgar has quit [Ping timeout: 268 seconds]
<Spooner> swarley : case is filled with magic.
jkbbwr has joined #ruby
<jkbbwr> whats the point in ! at the end of methods?
<swarley> Tell me more of its magical tales
<jkbbwr> liek "test".capitalize!
<swarley> jkbbwr; its used to denote a dangerous method with side effects
<swarley> for example
<swarley> "text".capitalize, returns "Text" but that is a new string
<jkbbwr> swarley: Ah got you
<jkbbwr> ! is inplace
<jkbbwr> losing the original version
<Spooner> jkbbwr : It is just part of the name. It the case of strings, the ! means inplace.
<swarley> Generally, but not always
Shamgar has joined #ruby
<swarley> its use in general means that it is the dangerous form of a method
tnk1 has quit [Ping timeout: 260 seconds]
<Spooner> swarley : I mean the whole === business in case, so you can do a lot of crazy stuff if you are perverse.
dnyy has quit [Remote host closed the connection]
davidcelis has joined #ruby
erichmenge has quit [Quit: Be back later]
<swarley> what the hell does === do in case?
<swarley> I mean, i learned about <=> the other day and was like "how did i not know that?"
<Spooner> It allows you to do stuff like (matches all of these): case 5; when Integer; when Fixnum, when 1..15; when 5; end
<swarley> ohh, nifty
<swarley> also, ffs, rice failed building from gem
<swarley> /usr/bin/ld: /usr/local/lib/libruby-static.a(array.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
cakehero has joined #ruby
Guest14528 has quit [Quit: irc2go]
* swarley tries to build from source from github
nitti has joined #ruby
<Spooner> swarley : And you can match on regexp for strings. Anyway, since you can define === on anything, you can define how case matches. Just like <=> for sorting, though I find people don't use <=> very much since we gained #sort_by
<swarley> Ah. Well looks like i learned all too late
<Spooner> Used to use it a lot in #sort {|a, b| a.wa <=> b.wa }
<Spooner> But that was crazy slow ;)
cakehero has quit [Client Quit]
teedex has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
erichmenge has joined #ruby
freeayu has joined #ruby
drago757 has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
noyb has joined #ruby
yshh has joined #ruby
justinmcp has joined #ruby
<swarley> asdfgh anyone else have a build fail with rice?
<Spooner> swarley : And, in case you didn't know, $x is a global variable. So endeth the Ruby lesson :D
seme has joined #ruby
<Spooner> swarley : I'm just trying it here, but it is taking a while.
seme is now known as Guest97896
<swarley> Lololol
<swarley> maybe i have to recompile ruby with non static libs?
* Spooner shrugs.
<Spooner> I'll tell you in a while when mingw gets its act together ;)
<swarley> haha have fun
vhd_ has joined #ruby
<swarley> okay, i might have fixed it doing a really weird thing
<Spooner> Balancing a pickled egg on your nose?
h4mz1d has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
<swarley> nope, but it didnt work after all
cakehero has joined #ruby
zodiak has quit [Remote host closed the connection]
vhd has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
noyb has joined #ruby
mmlac has quit [Quit: mmlac]
mikepack has joined #ruby
<swarley> now its a new problem :|||
mikepack has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
<swarley> fuck this. I'll just use extern "C" and do it all the old fashion way
<Spooner> swarley : Rice compiled here on Windows, so there is no excuse there!
<swarley> ugh
<swarley> must be ubuntu
dankest has joined #ruby
erichmenge has quit [Quit: Be back later]
<Spooner> Probably trying to compile it too quickly. Windows took its own sweet time, but the tortoise won the race ;)
<swarley> lolol
<swarley> Spooner; what's wrong with swig?
<Spooner> Not entirely sure, but I know that people who use it curse it (specifically jlnr who uses it to wrap his Gosu C++ lib for Ruby).
sagax has quit [Ping timeout: 248 seconds]
<Spooner> Give it a try though.
rabidpraxis has quit [Remote host closed the connection]
vitoravelino has left #ruby ["Leaving"]
<Spooner> The main problem with stuff like rice/swig is that you don't have as much control over stuff like when C++ resources get cleaned up. I have no experience though; all I've done is write some plain C extensions that don't use much external code.
roadt_ has joined #ruby
kaawee has quit [Read error: Operation timed out]
advorak has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
teedex has quit [Remote host closed the connection]
__class__ has joined #ruby
teedex has joined #ruby
bigmcq77 has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
kil0byte has quit [Remote host closed the connection]
freezey has joined #ruby
apok has quit [Ping timeout: 260 seconds]
<Spooner> swarley : Well, I got nothing done today. Good luck with whatever path you choose!
joeycarmello has quit [Remote host closed the connection]
cbuxton1 has quit [Quit: Leaving.]
wmoxam has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
robertotauille has quit [Quit: Leaving...]
Takehiro has joined #ruby
ddd has joined #ruby
tnk1 has joined #ruby
freezey has quit [Quit: freezey]
mikepack has joined #ruby
wallerdev has quit [Quit: wallerdev]
fbernier has quit [Read error: Connection reset by peer]
teedex has quit [Remote host closed the connection]
fbernier has joined #ruby
GranMal has left #ruby [#ruby]
tomsthumb has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 255 seconds]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
fboudreau has joined #ruby
erichmenge has joined #ruby
d2dchat has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
h4mz1d has joined #ruby
robertotauille has joined #ruby
kil0byte has joined #ruby
hotovson has quit [Remote host closed the connection]
quest88_ has joined #ruby
drago757 has quit [Quit: drago757]
khakimov has quit [Quit: Computer has gone to sleep.]
ShiintoRyuu has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby
erichmenge has quit [Quit: Be back later]
mxweas has joined #ruby
olrrai has joined #ruby
mmlac has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
joeycarmello has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
Nisstyre-laptop has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
Orcris has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 252 seconds]
linoj has joined #ruby
linoj has quit [Client Quit]
erichmenge has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
teedex has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
mxweas has joined #ruby
nari_ has joined #ruby
mxweas has quit [Client Quit]
LucidDreamZzZ has joined #ruby
foo-bar- has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
el_diablo has joined #ruby
ebragaparah has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chrishunt has quit [Quit: Leaving...]
gabrielrotbart has joined #ruby
swarley has quit [Read error: Operation timed out]
yakko has quit [Remote host closed the connection]
cbuxton1 has joined #ruby
cbuxton1 has left #ruby [#ruby]
mmlac has quit [Quit: Comics for a flat fee - http://comicb.in]
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb]
philcrissman has joined #ruby
Progster has quit [Ping timeout: 246 seconds]
emmanuelux has quit [Quit: emmanuelux]
gabrielrotbart has quit [Remote host closed the connection]
yaymukund has joined #ruby
erichmenge has quit [Quit: Be back later]
el_diablo has quit [Remote host closed the connection]
medik has quit [Quit: Leaving]
Takehiro has joined #ruby
radic has quit [Disconnected by services]
mikepack has joined #ruby
radic_ has joined #ruby
elico has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
<yaymukund> Given a class User, how do I implement User.to_beta that returns Beta::User if it exists, User if it doesn't: https://gist.github.com/e5d635aaccaa5c7806c2
<yaymukund> I was thinking of messing with constantize... is this the right approach?
gabrielrotbart has joined #ruby
chrishunt has joined #ruby
xpen has joined #ruby
SegFaultAX|mobi has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
<waxjar> yaymukund, do you want to call #to_beta on an instance of User?
<Spooner> yaymukund : You could use if Beta.const_defined? class.name
<yaymukund> waxjar: no, on the class itself
<Spooner> And you'd want to put self.to_beta in App so all those classes had access to it.
<whackatre> in your gist, 'self' isn't attributed to any class
SegFaultAX|work has quit [Ping timeout: 252 seconds]
xbayrockx has joined #ruby
<Spooner> yaymukund : Aaaand, you don't want to use class.name, now I think about it. In the context of the class it is just "name" and in the instance, you have to do "self.class.name"
robertotauille has quit [Quit: Leaving...]
cakehero has joined #ruby
love_color_text has quit [Remote host closed the connection]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<waxjar> you could automate it i guess, by defining a const_missing
justinmcp has joined #ruby
joeycarmello has joined #ruby
<yaymukund> okay, I updated the gist a bit
<Spooner> That won't work. If you extend App, you want to_beta to not be a method on the module (drop .self).
luckyruby has quit [Remote host closed the connection]
<Spooner> *(drop .self from def self.to_beta).
<waxjar> define #to_beta as a class method on App I think?
<yaymukund> Spooner: oops, right you are
<yaymukund> Spooner: thanks
maletor has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Remote host closed the connection]
zlangley has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
cableray has quit [Quit: cableray]
<Spooner> if Beta.const_defined? name; Beta.const_get name; else...
<yaymukund> ooh
<yaymukund> const_get
<Spooner> Yeah, a class is just a constant.
<yaymukund> doh, neat. classes all the way down
<yaymukund> thanks!
nitti has joined #ruby
<yaymukund> I was previously doing "Beta::#{name}".constantize, but that throws a name error that I have to catch. this is much cleaner
mikeycgto has quit [Ping timeout: 246 seconds]
<yaymukund> (and probably a bit quicker too)
vitor-br has quit [Ping timeout: 246 seconds]
<Spooner> I'd probably also use a different name for the two uses of Beta, as namespace and bag of methods (That is, I'd put #to_beta in Beta::Methods, say), but that is just me being picky thugh.
jenrzzz has quit [Ping timeout: 248 seconds]
jkbbwr has left #ruby [#ruby]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
robbyoconnor has joined #ruby
<yaymukund> Spooner: no I tend to agree. was simplifying those things for the gist, but I will definitely think about how to namespace this correctly
nitti has quit [Ping timeout: 260 seconds]
<Spooner> yaymukund : #constantize just uses those methods underneath, but is a bit nicer especially if you have more than one :: in the string.
<yaymukund> is there a version of const_defined? that doesn't throw NameError?
pothibo has quit [Quit: pothibo]
<Spooner> const_defined? doesn't throw NameErrors, it is just true/false
<Spooner> Or you mean #constantize?
<yaymukund> no, const_defined?.. weird
cableray has joined #ruby
<yaymukund> Beta.const_defined?('Beta::User') # NameError: wrong constant name Beta::User
<Spooner> Beta.const_defined?('User') is what you want.
<Spooner> Right, it doesn't work if you call it on one of the beta classes. Oops.
<yaymukund> right that works, but Beta.const_defined?('fohwue') is throwing a name error. I can figure this out a little bit more.
<yaymukund> weird
pothibo has joined #ruby
<Spooner> A constant MUST start with a capital.
vitor-br has joined #ruby
<yaymukund> and cannot have '::'
teedex has quit [Remote host closed the connection]
<yaymukund> interesting
beilabs has joined #ruby
<Spooner> You could do: if !name['Beta'] and Beta.const_defined? name ???
<Spooner> Though maybe name would be in a namespace anyway (just not in th eexample). if Beta.const_defined? name[/\w+$/] is the simplest, I think.
<yaymukund> yeah
h4mz1d has quit [Ping timeout: 260 seconds]
pothibo has quit [Client Quit]
tpe11etier_ has quit [Quit: tpe11etier_]
<Spooner> Sorry, took a while to get there. It is an odd requirement (that's my excuse!).
<yaymukund> haha, fair enough, this is the 'deepest' ruby stuff I've done yet so I appreciate the handholding
<Spooner> yaymukund : Oops, since you are using activesupport, you can just use if Beta.const_defined? name.demodulize
reuf has quit [Quit: Leaving]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
makelele has quit [Ping timeout: 246 seconds]
<yaymukund> Spooner: neat! figures Rails would have this already... hehe
makelele has joined #ruby
<Spooner> I don't use Rails/activesupport, so I tend not to think of its magic stuff.
dylanjha has joined #ruby
<Spooner> yaymukund : Right, off now. Happy hacking ;)
<yaymukund> Spooner: ty :D
r0bby has joined #ruby
drago757 has joined #ruby
ryanlecompte has joined #ruby
robbyoconnor has quit [Ping timeout: 276 seconds]
Spooner has quit [Ping timeout: 240 seconds]
cbuxton1 has joined #ruby
ZubKonst has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
ZubKonst has joined #ruby
mxweas has joined #ruby
kiyoura has quit [Quit: Leaving]
amacgregor_osx has quit [Read error: Operation timed out]
cbuxton3 has joined #ruby
cbuxton1 has quit [Read error: Connection reset by peer]
cbuxton3 has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 256 seconds]
SegFaultAX|work has joined #ruby
dylanjha has quit [Read error: Connection reset by peer]
dylanjha_ has joined #ruby
uuair has joined #ruby
drago757 has quit [Quit: drago757]
dylanjha_ has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
cbuxton1 has joined #ruby
amacgregor_osx has joined #ruby
jason__ has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
r0bby_ has joined #ruby
CaptainJet has quit []
Takehiro has joined #ruby
<jason__> I posted a comment on the ruby imap library documentation page: http://goo.gl/8ZlYR Can anyone offer any pointers on the correct procedure for escalating this to the appropriate pair of eyes such that I can get some help on this?
sent-hil has joined #ruby
cbuxton1 has quit [Read error: Connection reset by peer]
noyb has joined #ruby
r0bby has quit [Ping timeout: 246 seconds]
SegFaultAX|work has quit [Ping timeout: 246 seconds]
cbuxton1 has joined #ruby
Guest97896 has quit [Ping timeout: 248 seconds]
davidcelis has quit [Quit: K-Lined.]
vhd_ has quit [Ping timeout: 246 seconds]
zodiak has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
cbuxton1 has quit [Read error: Connection reset by peer]
cbuxton2 has joined #ruby
cbuxton2 has quit [Read error: Connection reset by peer]
cbuxton has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
cbuxton has quit [Read error: Connection reset by peer]
cbuxton has joined #ruby
Araxia has quit [Quit: Araxia]
amacgregor_osx has quit [Read error: Connection reset by peer]
cbuxton has quit [Read error: Connection reset by peer]
cbuxton has joined #ruby
Nisstyre has quit [Ping timeout: 272 seconds]
arielpts has quit [Ping timeout: 255 seconds]
teedex has joined #ruby
katherinem13_out has quit [Remote host closed the connection]
katherinem13 has joined #ruby
rixius has joined #ruby
cbuxton2 has joined #ruby
cbuxton has quit [Read error: Connection reset by peer]
nitti has joined #ruby
yaymukund has quit [Ping timeout: 246 seconds]
amacgregor_osx has joined #ruby
h4mz1d has joined #ruby
joofsh has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
awc737 has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
SegFaultAX|mobi has quit [Quit: leaving]
SegFaultAX has joined #ruby
arielpts has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
cbuxton1 has joined #ruby
cbuxton2 has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
artnez has quit [Quit: artnez]
cbuxton1 has quit [Read error: Connection reset by peer]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
SegFaultAX has joined #ruby
Astral_ has joined #ruby
therod has joined #ruby
katherinem13 is now known as katherinem13_bed
chin-tastic has quit [Ping timeout: 245 seconds]
SegFaultAX has quit [Client Quit]
SegFaultAX has joined #ruby
Astral__ has quit [Ping timeout: 265 seconds]
davidcelis has joined #ruby
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
SegFaultAX has quit [Client Quit]
SegFaultAX has joined #ruby
Nisstyre-laptop has joined #ruby
r0bby_ has quit [Ping timeout: 260 seconds]
tchebb1 is now known as tchebb
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
gabrielrotbart has joined #ruby
SegFaultAX has quit [Client Quit]
r0bby_ has joined #ruby
rabidpraxis has joined #ruby
SegFaultAX has joined #ruby
DefV has quit [Ping timeout: 260 seconds]
gift has quit [Ping timeout: 246 seconds]
bbttxu has quit [Quit: bbttxu]
chin-tastic has joined #ruby
perryh has quit [Excess Flood]
therod has quit [Quit: Linkinus - http://linkinus.com]
therod has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
perryh has joined #ruby
jeekl has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
tomsthumb has quit [Quit: Leaving.]
slainer68 has joined #ruby
Jan_ has joined #ruby
Jan_ is now known as Guest4503
jeekl has joined #ruby
chin-tastic has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
iob has left #ruby ["Leaving"]
slainer68 has quit [Read error: Operation timed out]
gift has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
makelele has quit [Ping timeout: 268 seconds]
burgestrand has quit [Quit: Leaving.]
Takehiro has joined #ruby
mxweas has joined #ruby
advorak has quit [Quit: Leaving]
SegFault1X has joined #ruby
r0bby_ has quit [Ping timeout: 248 seconds]
nemesit has joined #ruby
SegFault1X has quit [Client Quit]
SegFault1X has joined #ruby
joeycarmello has quit [Remote host closed the connection]
ABK has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
skaczor has quit [Remote host closed the connection]
SegFault1X has quit [Client Quit]
FifthWall has joined #ruby
SegFaultAX has quit [Quit: ZNC - http://znc.in]
c0rn_ has quit []
nemesit has quit [Quit: Leaving...]
perryh has quit [Excess Flood]
perryh has joined #ruby
jeff_sebring has joined #ruby
SegFaultAX has joined #ruby
rixius has quit [Ping timeout: 265 seconds]
SegFault1X has joined #ruby
SegFault1X has quit [Client Quit]
rixius has joined #ruby
rixius is now known as Guest7910
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
Guest7910 has left #ruby [#ruby]
sent-hil has quit [Remote host closed the connection]
tonini has joined #ruby
yaymukund has joined #ruby
d2dchat has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
awestroke has joined #ruby
h4mz1d has quit [Ping timeout: 265 seconds]
nitti has joined #ruby
uuair has quit [Ping timeout: 260 seconds]
philcrissman has quit [Read error: Connection reset by peer]
nitti has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
nesoi has joined #ruby
<nesoi> hello
<nesoi> anyone here know net::smtp? I'm unclear about when I need to close the session, etc.
mxweas has quit [Quit: Computer has gone to sleep.]
uuair has joined #ruby
hadees has quit [Quit: hadees]
khakimov has joined #ruby
i8igmac has quit [Remote host closed the connection]
joeycarmello has joined #ruby
mxweas has joined #ruby
IrishGringo has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby
apok has joined #ruby
hadees has joined #ruby
nemesit has joined #ruby
hadees has quit [Remote host closed the connection]
savage- has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 240 seconds]
MoMo_ has joined #ruby
geargqaewrgaewrg has quit []
MoMo_ is now known as MoMo
vlad_starkov has joined #ruby
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
<nesoi> so with net::smtp, if I want to send a bunch of emails, do I have to do smtp.finish after each one?
vlad_starkov has quit [Ping timeout: 246 seconds]
margle has joined #ruby
rakl has quit [Quit: gone]
justinmcp has quit [Remote host closed the connection]
burgestrand has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
roadt_ has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
chendo_ has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Ping timeout: 246 seconds]
answer_42 has joined #ruby
chendo_ has joined #ruby
tagrudev has joined #ruby
tjbiddle has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
wunz has quit [Ping timeout: 245 seconds]
Nanuq has quit [Quit: .]
ABK has quit [Ping timeout: 246 seconds]
<nesoi> another question, in case anyone is here: if I am in a do loop, can I jump to the end of that iteration and go to the next one by doing something like 'if condition next end ?
a_a_g has joined #ruby
<nesoi> '? actually
ABK has joined #ruby
Nanuq has joined #ruby
gabrielrotbart has joined #ruby
joeycarmello has joined #ruby
awestroke has quit [Remote host closed the connection]
awestroke has joined #ruby
wunz has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
joeycarmello has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
mahmoudimus has joined #ruby
olrrai has quit [Ping timeout: 246 seconds]
awestroke has quit [Ping timeout: 260 seconds]
Uzix has joined #ruby
AlbireoX has quit [Remote host closed the connection]
c0rn_ has joined #ruby
nitti has joined #ruby
AlbireoX has joined #ruby
yxhuvud has joined #ruby
krz has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
gabrielrotbart has quit [Remote host closed the connection]
philcrissman has joined #ruby
artnez has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
advorak has joined #ruby
AlbireoX has quit [Ping timeout: 268 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
siyusong has joined #ruby
justinmcp has joined #ruby
<FifthWall> nesoi I beleve what's usually 'continue' in other languages is 'next' in ruby.
gabrielrotbart has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
zlangley has quit [Ping timeout: 255 seconds]
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
uuair has quit [Ping timeout: 268 seconds]
mxweas has quit [Quit: Computer has gone to sleep.]
cableray has quit [Quit: cableray]
<nesoi> thanks FifthWall
<nesoi> btw FifthWall do you happen to be familiar with NET::SMTP?
Mon_Ouie has quit [Ping timeout: 246 seconds]
zeromodu_ has quit [Remote host closed the connection]
zeromodulus has joined #ruby
Tearan has joined #ruby
<FifthWall> nesoi, I've never used it before. Sorry.
uuair has joined #ruby
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Monie has quit [Read error: Connection reset by peer]
mxweas has joined #ruby
<nesoi> ok, thanks
Tearan has quit [Client Quit]
timonv has joined #ruby
vlad_starkov has joined #ruby
dhruvasagar has joined #ruby
slainer68 has joined #ruby
a_a_g has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
uuair has quit [Ping timeout: 268 seconds]
uuair_ has joined #ruby
cableray has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
maesbn has joined #ruby
foo-bar- has quit [Remote host closed the connection]
foo-bar- has joined #ruby
Takehiro has joined #ruby
savage- has quit [Remote host closed the connection]
siyusong has quit [Quit: Computer has gone to sleep.]
awestroke has joined #ruby
vlad_starkov has joined #ruby
philcrissman_ has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
jason__ has quit [Quit: jason__]
perryh has quit [Excess Flood]
Araxia has quit [Quit: Araxia]
philcrissman has quit [Read error: Connection reset by peer]
foo-bar- has quit [Ping timeout: 260 seconds]
perryh has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
rkk has joined #ruby
bigkevmcd has joined #ruby
IrishGringo has quit [Read error: Operation timed out]
uuair has joined #ruby
c0rn_ has quit []
aganov has joined #ruby
uuair_ has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
Hardcore has left #ruby [#ruby]
uuair has quit [Quit: uuair]
areil has joined #ruby
hoofman has quit [Read error: Connection reset by peer]
hoofman has joined #ruby
bluOxigen has joined #ruby
jmeeuwen_ has joined #ruby
djdb has joined #ruby
ericwood has quit [Ping timeout: 246 seconds]
ozzloy has quit [Ping timeout: 268 seconds]
jmeeuwen has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
jmeeuwen_ is now known as jmeeuwen
ericwood has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
rippa has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
ixx has quit [Ping timeout: 272 seconds]
ixx has joined #ruby
ixx is now known as Guest66451
cj3kim has quit [Quit: This computer has gone to sleep]
Morkel has joined #ruby
workmad3 has joined #ruby
nitti has joined #ruby
elsifaka has joined #ruby
dr_bob has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nemesit has quit [Read error: Operation timed out]
margle has quit [Quit: Computer has gone to sleep.]
rkk has quit [Ping timeout: 260 seconds]
rkk has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
nitti has quit [Ping timeout: 246 seconds]
mxweas has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
greenarrow has joined #ruby
Erfankam has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
arturaz has joined #ruby
cableray has quit [Quit: cableray]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hemanth has joined #ruby
anderse has joined #ruby
Synthead has joined #ruby
thone_ has joined #ruby
jprovazn_away is now known as jprovazn
quest88_ has quit [Quit: quest88_]
apok has quit [Ping timeout: 245 seconds]
thone has quit [Ping timeout: 268 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
rkk has quit [Ping timeout: 260 seconds]
zigomir has joined #ruby
rkk has joined #ruby
lecreme has joined #ruby
lucaspiller has joined #ruby
rkk has quit [Client Quit]
nesoi has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
olrrai has joined #ruby
olrrai has quit [Client Quit]
beachandbytes has joined #ruby
apok has joined #ruby
syamajala has joined #ruby
chussenot has joined #ruby
apok has quit [Client Quit]
arkiver has joined #ruby
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
siyusong has joined #ruby
aganov has quit [Remote host closed the connection]
aganov has joined #ruby
lecreme has quit [Quit: Leaving]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
sspiff has joined #ruby
Neomex has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
siyusong has quit [Quit: Computer has gone to sleep.]
arturaz has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
anderse has quit [Quit: anderse]
Takehiro has joined #ruby
rihen has joined #ruby
akem has joined #ruby
Elhu has joined #ruby
artnez has quit [Quit: artnez]
arubin has quit [Quit: Computer has gone to sleep.]
hamed_r has joined #ruby
rihen has left #ruby [#ruby]
jenrzzz has joined #ruby
cezar has joined #ruby
cezar has quit [Read error: Connection reset by peer]
zommi has joined #ruby
jimeh2 has joined #ruby
Eplemosen has joined #ruby
asteve has joined #ruby
brtdv has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
lolmaus has quit [Client Quit]
arturaz has joined #ruby
AnarchoTroll has joined #ruby
Takehiro has quit [Remote host closed the connection]
emergion has joined #ruby
hoelzro|away is now known as hoelzro
chussenot has quit [Quit: chussenot]
brtdv has joined #ruby
jgrevich_ has joined #ruby
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
teedex has quit [Remote host closed the connection]
Takehiro has joined #ruby
nitti has joined #ruby
vlad_starkov has joined #ruby
eldariof has joined #ruby
und3f has joined #ruby
bigkevmcd has quit [Quit: outta here]
blacktulip has joined #ruby
bigkevmcd has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
rakl has joined #ruby
brtdv has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
jeff_sebring has quit [Quit: Leaving]
brtdv has joined #ruby
georgi has joined #ruby
Takehiro has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
snearch has joined #ruby
RailWolf has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
khakimov has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
mmercer has quit [Ping timeout: 244 seconds]
awestroke has quit [Remote host closed the connection]
RailWolf has joined #ruby
haxrbyte_ has joined #ruby
mmercer has joined #ruby
hotovson has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
colinbm has joined #ruby
timonv has joined #ruby
Elhu has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
berserkr has joined #ruby
<xbayrockx> how can i download (or wget) all links on a website that match fwab*.html
brtdv has quit [Ping timeout: 260 seconds]
tchebb has quit [Ping timeout: 246 seconds]
margle has joined #ruby
margle has left #ruby [#ruby]
<beachandbytes> xbayrockx try anemone
<beachandbytes> makes it super simple
sepp2k has joined #ruby
noyb has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
ephemerian has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
robotmay has joined #ruby
leoncamel has joined #ruby
mxweas has quit [Quit: Leaving...]
ebragaparah has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
fantazo has joined #ruby
Progster has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
knirhs has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
dhruvasagar has joined #ruby
chussenot has joined #ruby
rakunHo has joined #ruby
shtirlic has joined #ruby
Zai has joined #ruby
JonnieCache has joined #ruby
clocKwize has quit [Disconnected by services]
clocKwize has joined #ruby
<clocKwize> Morning
clocKwize1 has joined #ruby
clocKwize1 has quit [Remote host closed the connection]
awestroke has joined #ruby
Agis__ has joined #ruby
Agis__ has quit [Client Quit]
syamajala has quit [Remote host closed the connection]
<JonnieCache> mornin
zz_chrismcg is now known as chrismcg
jgrevich has quit [Quit: jgrevich]
Neomex has quit [Ping timeout: 255 seconds]
marius has quit []
anderse has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
haxrbyt__ has joined #ruby
nitti has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
rakl has quit [Quit: gone]
haxrbyte_ has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
haxrby___ has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
haxrb____ has joined #ruby
haxrbyt__ has quit [Ping timeout: 244 seconds]
nitti has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
purpleidea has joined #ruby
haxrbyt__ has joined #ruby
<purpleidea> dear #ruby is there a method to do filter a hash eg: {}.select! {|k,v| k == 'x' } -> returns hash in both 1.8.7 and 1.9.3 (1.8.7 returns array)
haxrbyte_ has quit [Ping timeout: 255 seconds]
haxr_____ has joined #ruby
haxrby___ has quit [Ping timeout: 276 seconds]
haxrb____ has quit [Ping timeout: 260 seconds]
skum has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
haxrbyt__ has quit [Ping timeout: 260 seconds]
haxr_____ has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
d3vic3 has joined #ruby
rdark has joined #ruby
<burgestrand> purpleidea: wrap the result in Hash[] and it’ll work on both 1.9 and 1.8
<burgestrand> purpleidea: Hash[hash.select { … }]
vhd_ has joined #ruby
tvw has joined #ruby
Takehiro has joined #ruby
Takehiro_ has joined #ruby
Takehiro_ has quit [Read error: Connection reset by peer]
Takehiro_ has joined #ruby
daniel_-_ has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 255 seconds]
noxoc has joined #ruby
moshef has joined #ruby
jamjam has joined #ruby
arkiver has quit [Quit: Leaving]
<moshef> trying to install a gem, it shows as installed but when trying to do anything it doesn't recognize it.
<moshef> any ideas?
arkiver has joined #ruby
uatec has joined #ruby
<uatec> hi there
uatec is now known as Uatec
<Uatec> i'm writing a ruby script which references a second script (a library script i wrote)
<burgestrand> moshef: yeah, elaborate "when trying to do anything"
<noxoc> Also naming the gem could help.
<Uatec> just realised, i'm not sure i care about the problem i'm asking about
<Uatec> duhh...
<moshef> burgestrand: never mind sorry, was a ruby problem
fermion has joined #ruby
symeog has joined #ruby
irleif has joined #ruby
advorak has quit [Quit: Leaving]
eddie_ has joined #ruby
matrixise has joined #ruby
genshu has quit [Ping timeout: 256 seconds]
<purpleidea> burgestrand: thanks! talk about a huge change in expected behaviour :P
<eddie_> i have to run white_similarity check on a list of words. Is there a better way than checking all of them one by one.?
kaawee has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
<Xeago> what is a white_similarity check?
<eddie_> checks if two words sounds similar
nitti has joined #ruby
<eddie_> gem text has the methods
therod has quit [Quit: Leaving...]
Guest4503 is now known as DefV
vlad_starkov has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
Uatec has left #ruby [#ruby]
<JonnieCache> eddie what do you mean "check them all one by one"
<JonnieCache> what are you currently doing?
cascalheira has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
<eddie_> have a list of names. I wanna check how many of them sounds like "melwin"
<eddie_> example : edwin, calwin
<Xeago> what is the output of the method that does white_similarity?
<eddie_> white_similarity("melwin", word)
<eddie_> yes
daniel_-_ has joined #ruby
<Xeago> and then true or false?
<eddie_> nope
<eddie_> a persentage
<Xeago> basically true or false, just you decide when to view it as either false true or maybe'ish
<eddie_> ok
<Xeago> why isn't looping over an array of words sufficient?
<eddie_> if the list of words is in thousands checking one by one will be a time consuming process
irleif has joined #ruby
<Xeago> this is easy to compute in parallel though
<Xeago> chunk your array into n chunks, and do it n chunks a time
<eddie_> parallel?? enlighten me
<Xeago> asynchronously, using multiple threads/processes
<Xeago> /machines
Ivo has quit [Quit: WeeChat 0.3.9]
pothibo has joined #ruby
rdark has quit [Quit: leaving]
<eddie_> 2
<eddie_> ok
<eddie_> How do i implement threads with ruby
<eddie_> ?>
<Xeago> if you're going for speed, consider c
arietis has joined #ruby
<JonnieCache> 10.times {Thread.new do {puts "LOL CONCURRENCY!"}}
<JonnieCache> good luck
<JonnieCache> oops, ignore the `do`
<Xeago> eddie_: writing good, stable, performant asynchronous code in ruby is not easy
<Xeago> and consequently I can't help you there
slainer68 has quit [Remote host closed the connection]
<eddie_> Xeago: i am aware of thet
<Xeago> there are some gems that help
<JonnieCache> actually ignore that link it doesnt really apply here
<eddie_> Thanks guyd
<JonnieCache> well dont ignore it but realise that it isnt actually relevant here
<eddie_> Guys i have written a gem sometime back. not something great. But i would like to add a White similarity check feature to it. Check gem yasha
SuperrMann has joined #ruby
<Xeago> if you're writing something that needs speed, make it in c
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Xeago> my 2c
Morkel has quit [Quit: Morkel]
* Xeago is procrastinating work
leoncamel has quit [Ping timeout: 276 seconds]
xorigin has joined #ruby
zmo_ has joined #ruby
daniel_-_ has quit [Ping timeout: 246 seconds]
vhd_ has quit [Remote host closed the connection]
mmercer has quit [Read error: Operation timed out]
yshh has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<JonnieCache> Xeago: overhaul your development environment thats always a good one
moshef has quit [Quit: moshef]
RailWolf has quit [Ping timeout: 255 seconds]
kil0byte has joined #ruby
nari_ has quit [Ping timeout: 260 seconds]
kernelPanik has joined #ruby
<kernelPanik> hi guys! how can I show in ruby the type of an object?
<eddie_> JonnieCache: I am gonna try em_synchrony
<kernelPanik> I would like to know if is a string or other type ok object
<eddie_> object.calss
symeog has quit [Quit: symeog]
<kernelPanik> thanks!
<JonnieCache> eddie_: good choice. abstractions are a good idea with that stuff
mmercer has joined #ruby
gccostabr has joined #ruby
symeog has joined #ruby
robertotauille has joined #ruby
Progster has quit [Ping timeout: 244 seconds]
timonv has quit [Remote host closed the connection]
symeog has quit [Client Quit]
PragCypher has joined #ruby
chussenot has quit [Quit: chussenot]
KevinSjoberg has joined #ruby
jamjam has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 272 seconds]
RailWolf has joined #ruby
Zai has quit [Disconnected by services]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
dogweather has joined #ruby
samphippen has joined #ruby
haxrbyte has quit [Remote host closed the connection]
timonv has joined #ruby
haxrbyte has joined #ruby
xpen has quit [Remote host closed the connection]
lkba has joined #ruby
noxoc has quit [Ping timeout: 245 seconds]
symeog has joined #ruby
<burgestrand> eddie_: you don’t want to go down the eventmachine route unless you really want to build your entire solution around eventmachine
<burgestrand> eddie_: and if threads have you confused the reactor pattern is not much better, just a fair warning
leoncamel has joined #ruby
sideshowcoder has joined #ruby
<burgestrand> eddie_: even then this sounds like a CPU-bound operation so it might not benefit as much from threading in CRuby as one might think, but this kind of thing cannot really be predermined so I’d still give it a try
RailWolf has quit [Ping timeout: 240 seconds]
nitti has joined #ruby
sideshowcoder has quit [Remote host closed the connection]
kryl99_ has joined #ruby
cardoni has joined #ruby
vlad_starkov has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
margle has joined #ruby
Takehiro has joined #ruby
hamed_r has quit [Quit: Leaving]
coffer has joined #ruby
noxoc has joined #ruby
symeog has quit [Quit: symeog]
leoncamel has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
hamed_r has joined #ruby
symeog has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
coffer has quit [Read error: Connection reset by peer]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
kil0byte has quit [Ping timeout: 256 seconds]
hamed_r has quit [Ping timeout: 255 seconds]
msch has quit [Ping timeout: 265 seconds]
kryl99_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
supe has joined #ruby
<supe> hi
<supe> Going to open-source a fairly large web+mobile project in a couple of months. Should I force copyleft notice in footer? - http://answers.onstartups.com/q/43774
kil0byte has joined #ruby
Takehiro has quit [Remote host closed the connection]
<cardoni> How would you enforce it if someone just removes it themselves?
und3f has quit [Read error: Connection reset by peer]
<supe> cardoni: Force it in the license
<supe> (obviously people can just "pirate" the software; but yeah)
Takehiro has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
<dogweather> Sounds like you're looking for a Creative Commons-like license.
<cardoni> yeah. I hear ya. Love the idea of adding it to the project before going open; but I'm not sure requiring it is warranted
Takehiro has quit [Remote host closed the connection]
baphled has joined #ruby
<supe> dogweather: Hmm, hadn't thought of CC. Usually that's for writing; i.e.: wikipedia & whatnot, right?
kil0byte_ has quit [Ping timeout: 272 seconds]
kil0byte_ has joined #ruby
<cardoni> yeah, supe, why not do what dogweather suggests and use a CC licence of some type that works?
slainer68 has joined #ruby
symeog has quit [Quit: symeog]
<workmad3> supe: if it's code, I'd probably go with something more like an MIT or BSD licence rather than CC
<cardoni> Nope, for anything: http://creativecommons.org/
Gm4n has quit [Ping timeout: 246 seconds]
paolooo has joined #ruby
<dogweather> supe: There seems to be a lot of functional overlap in the licenses. For sure, the GNU-style licenses address code-specific details like libraries using libraries.
<dogweather> You could make a combo license: Say that for unpaid access, you're licensing the software under XXX with the additional restriction YYY.
irleif has quit [Quit: Computer has gone to sleep.]
<workmad3> CC, afaik, doesn't address any express or implied warranty that the work is 'fit for use' because it's not normally an issue for pictures or text :)
kil0byte has quit [Ping timeout: 276 seconds]
arkiver has quit [Quit: Leaving]
und3f has joined #ruby
<supe> workmad3: hmm
<supe> So which would you recommend for my use-case?
tk__ has joined #ruby
Gm4n has joined #ruby
<workmad3> supe: that depends... what do you want to allow?
<dogweather> Doesn't the Berkeley License do something like this? Enforce an attribution requirement? I forget offhand.
<supe> Public and private forks, commercial and open-source forks
abionic has joined #ruby
<supe> dogweather: Yeah
symeog has joined #ruby
robotmay has quit [Ping timeout: 246 seconds]
<workmad3> dogweather: MIT and BSD do, I believe
bbttxu has joined #ruby
<dogweather> That's what I'd do; I'd look for the open source license that's closest to what I need. There's a lot of variety out there. Maybe the Berkeley one is what you want.
<workmad3> attribution tends to be a requirement :)
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<workmad3> supe: sounds like MIT or BSD would be fine
<dogweather> And I think that the attribution requirement is exactly what bugs certain free software advocates, hence the various splits, GNU, etc.
ABK has quit [Read error: Operation timed out]
<workmad3> dogweather: no, GPL is a much stricter licence
sguselnikov has joined #ruby
clocKwize has quit [Remote host closed the connection]
therod has joined #ruby
<workmad3> dogweather: GPL requires the release of code with distributions, and the GPL (rather than the LGPL) requires that code that is distributed with the GPLed code is also distributed
SuperrMann has quit [Ping timeout: 240 seconds]
<workmad3> dogweather: and the AGPL requires that if the code is running on a server then the source is available...
<dogweather> workmad3: Right, right, it's definitely strict in that way, but iirc it does not force you to acknowledge where you got it from or who made it.
beachandbytes has quit [Ping timeout: 248 seconds]
<workmad3> dogweather: pretty sure it does
arietis has quit [Ping timeout: 252 seconds]
sguselnikov has quit [Client Quit]
<dogweather> What'd be really cool would be to see a list of which licenses have been tested in court.
<workmad3> dogweather: because the name of the copyright holder becomes part of the licence
arietis has joined #ruby
msch has joined #ruby
straind` has quit [Read error: Connection reset by peer]
Katniss has joined #ruby
<supe> mmm
straind has joined #ruby
AllStruck has quit [Ping timeout: 252 seconds]
Rious has quit [Ping timeout: 252 seconds]
Katniss` has quit [Ping timeout: 240 seconds]
therod has quit [Client Quit]
Edward__ has joined #ruby
hsbt_away has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
Rious has joined #ruby
<workmad3> supe: still, your use-case seems to basically be 'I want to put this code out here and let people use it however they want, without any real restriction, as long as they don't claim it as their own work'
Takehiro has quit [Remote host closed the connection]
<workmad3> supe: is that about right?
<supe> Not exactly
<supe> Mostly right
<supe> But I also want people to be linked back to the original repo from any forks
AllStruck has joined #ruby
fantazo has quit [Remote host closed the connection]
<workmad3> hmm... that's more difficult
<supe> They can then pay the maintainers of the original repo if they want an unbranded copy
<workmad3> and what happens if the original repo changes location? does that make the licences of anyone using it beforehand invalid?
Edward__ has quit [Client Quit]
symeog has quit [Quit: symeog]
<dogweather> What state are you in? Maybe a lawyer would help. :-)
robertotauille has quit [Ping timeout: 246 seconds]
hsbt_away has joined #ruby
irleif has joined #ruby
<workmad3> supe: yeah, it sounds like you need more legal advice than can be given here
Morkel has joined #ruby
justinmcp has quit [Ping timeout: 256 seconds]
symeog has joined #ruby
<JonnieCache> dont the eff or someone like that give free legal advice on this stuff?
<workmad3> JonnieCache: possibly? :)
withnale has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
<JonnieCache> say richard stallman 3 times while looking into a mirror and he'll appear
<supe> ^+1
<dogweather> For sure, the EFF has very smart people working and interning for them. I trust the advice I find on their site.
* supe can't tell if sarcasm
Elhu has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
chussenot has joined #ruby
rdark has joined #ruby
<dogweather> Hah! Being totally serious. I realize my phrasing was a little funny. I thought about applying for an internship there. (I just graduated law school.) But I've got other things cooking.
hsbt_away is now known as hsbt
robotmay has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
zmo_ has quit [Read error: Operation timed out]
MissionCritical has quit [Ping timeout: 240 seconds]
straind has quit [Write error: Connection reset by peer]
straind` has joined #ruby
hsbt has quit [Ping timeout: 252 seconds]
Sp4rKy has quit [Ping timeout: 240 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
irleif has quit [Quit: Computer has gone to sleep.]
reinaldob has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
clocKwize has joined #ruby
robotmay has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
<dogweather> I miss some things about python's interactive interpreter. Am I just not using irb correctly, or is there something more?
ralphvdh_ has joined #ruby
stnly has quit [Ping timeout: 256 seconds]
vimal2012 has joined #ruby
joeycarmello has joined #ruby
symeog has quit [Quit: symeog]
robotmay has joined #ruby
stnly has joined #ruby
und3f has quit [Ping timeout: 260 seconds]
vimal2012 has quit [Quit: Leaving]
Sp4rKy has joined #ruby
hsbt is now known as hsbt_away
dogweather_ has joined #ruby
hsbt_away is now known as hsbt
NimeshNeema has quit [Quit: Connection closed for inactivity]
robotmay has quit [Ping timeout: 246 seconds]
nitti has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
<burgestrand> dogweather: check out pry.
yshh has joined #ruby
<burgestrand> dogweather: it’s an alternative, and quite a bit more powerful. Not quite the same as pythons, but comes much closer.
<burgestrand> I never did like pythons interpreter though; was so long ago now however.
<burgestrand> dogweather: http://pry.github.com/
<dogweather_> Thanks, ill check it out.
und3f has joined #ruby
MissionCritical has joined #ruby
<dogweather_> I can see there'll be a small learning curve.
levabalkin has joined #ruby
sailias has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
hsbt has joined #ruby
eddie_ has quit [Quit: Ex-Chat]
samphippen has quit [Quit: Computer has gone to sleep.]
pskosinski has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
kil0byte_ has quit [Ping timeout: 265 seconds]
hsbt has quit [Ping timeout: 255 seconds]
Takehiro has quit [Remote host closed the connection]
kil0byte has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
Uranio has joined #ruby
hsbt_away is now known as hsbt
GeekOnCoffee has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
GeekOnCoffee has joined #ruby
vitor-br has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
dogweather_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
chin-tastic has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
hsbt has quit [Ping timeout: 246 seconds]
erichmenge has joined #ruby
Kudos has quit [Ping timeout: 248 seconds]
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
mercwithamouth has joined #ruby
hsbt has joined #ruby
Elhu has joined #ruby
hamed_r has joined #ruby
erichmenge has quit [Quit: Be back later]
sime has joined #ruby
<sime> I have an object with the property size, when I puts object.size it tells me the size of the object, not the property value
<sime> How can extract the value of the property ?
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hsbt has quit [Ping timeout: 260 seconds]
arielpts has quit [Excess Flood]
arielpts has joined #ruby
zmo_ has joined #ruby
<JonnieCache> sime: depends what kind of object it is
<JonnieCache> are you a js programmer? property is not a ruby term
rabidpraxis has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<sime> Sorry! It's a LinkedIn::Mash object
erichmenge has joined #ruby
<sime> I assumed property was a OO term
<Xeago> sime: did you create an attribute accessor for @size? by default there is an accessor called #size that gives the malloc'd size for the object
<burgestrand> What?
<Xeago> malloc => something memory related size, unsure if it is actually used for mallocs
krawchyk has joined #ruby
<burgestrand> Object.new.size # => NoMethodError
mark_locklear has joined #ruby
<burgestrand> Xeago: from where is this method?
<JonnieCache> sime: theres a good chance you want `object[:size]`
<Xeago> 1.size
robotmay_ has joined #ruby
<sime> JonnieCache: Many thanks, that's what I'm after
<burgestrand> Neat, looks like it’s just for numbers though?
<JonnieCache> sime: ruby usually uses the obj[:key] style fro accessing what you might call "properties", the obj.key style is sometimes added as sugar but its not standard
<burgestrand> Not floats either :(
<Xeago> hmm
<sime> JonnieCache: Cool, didn't know that chaining was sugar
robotmay has quit [Ping timeout: 246 seconds]
fbernier has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
<sime> JonnieCache: so size is a key of object?
<Xeago> burgestrand: yea, think so, prolly has to do with VALUE in ruby's c, requiring the size to be specified as it is a value type (first 2 bits 0 iirc)
hsbt has quit [Ping timeout: 246 seconds]
Morkel has quit [Quit: Morkel]
<burgestrand> Xeago: uneven numbers :)
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<Xeago> ?
<burgestrand> Xeago: ObjectSpace._id2ref(uneven_number) # => fixnum
<Xeago> ah yea, I mixed it up
paolooo has joined #ruby
<Xeago> 00 means a boundary
mercwithamouth has quit [Ping timeout: 264 seconds]
pothibo has quit [Quit: pothibo]
hsbt has quit [Ping timeout: 244 seconds]
dimka has quit [Ping timeout: 260 seconds]
fauxmight has left #ruby ["WeeChat 0.3.9"]
hbpoison has joined #ruby
joofsh has joined #ruby
Astral has joined #ruby
<sime> JonnieCache: Thanks!
Astral is now known as Guest29229
sime has quit [Quit: sime]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
jrist-out is now known as jrist
Erfankam has quit [Quit: Leaving.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
hsbt has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
und3f has quit [Ping timeout: 256 seconds]
sertaconay has joined #ruby
und3f has joined #ruby
robotmay has joined #ruby
samphippen has joined #ruby
linoj has joined #ruby
hsbt is now known as hsbt_away
krz has quit [Quit: krz]
hsbt_away is now known as hsbt
robotmay_ has quit [Ping timeout: 246 seconds]
dogweather has quit [Remote host closed the connection]
arturaz has quit [Read error: Connection reset by peer]
robotmay has quit [Read error: Connection reset by peer]
seme has joined #ruby
robotmay has joined #ruby
seme is now known as Guest29457
joeycarmello has joined #ruby
ffranz has joined #ruby
erichmenge has quit [Quit: Be back later]
vlad_starkov has joined #ruby
nitti has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
marienz has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
joeycarmello has quit [Ping timeout: 255 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
justsee has quit [Quit: Linkinus - http://linkinus.com]
Mon_Ouie has quit [Ping timeout: 260 seconds]
chussenot has quit [Quit: chussenot]
kil0byte has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
margle has quit [Quit: Computer has gone to sleep.]
d2dchat has joined #ruby
hsbt has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
margle has joined #ruby
PragCypher has quit [Quit: Leaving]
aquaranto has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
philcrissman_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 272 seconds]
nanderoo has joined #ruby
linoj has quit [Ping timeout: 244 seconds]
darth has joined #ruby
krawchyk_ has joined #ruby
linoj has joined #ruby
darth is now known as Guest10288
hsbt has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dimka has joined #ruby
cantonic_ has joined #ruby
hsbt is now known as hsbt_away
krawchyk has quit [Ping timeout: 246 seconds]
hsbt_away is now known as hsbt
foo-bar- has joined #ruby
foo-bar- has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
love_color_text has joined #ruby
hsbt is now known as hsbt_away
invisime has joined #ruby
fir_ed has quit [Read error: Connection reset by peer]
Servidorv has joined #ruby
<Servidorv> hey guys
<Servidorv> i have a question
<Xeago> servidorv: go on
arturaz has joined #ruby
<Servidorv> i have a ruby page but in top the ruby is using the 100% cpu
<Servidorv> how can i debug it
hsbt_away is now known as hsbt
<Xeago> constantly or only on a request?
shtirlic has quit [Remote host closed the connection]
<Servidorv> i nconstantly
Artheist has joined #ruby
<Servidorv> constantly
<Servidorv> the lowes is 98.9
<Xeago> it depends on how you run your ruby code
mikepack has joined #ruby
<Servidorv> god
<Xeago> god is a wrapper
<Xeago> it doesn't do much of running ruby by itself
jcaudle has joined #ruby
<Xeago> it runs a shell command iirc
<Xeago> and monitors the process spawned by that
xpen has joined #ruby
<Servidorv> well here is the thing im using goliath
<Servidorv> since im building an api
<Servidorv> so im using god to start all the server, and to set up the proxy as well
therod has joined #ruby
iamjarvo has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
drbawb has quit [Ping timeout: 264 seconds]
kil0byte has joined #ruby
dekroning has joined #ruby
<dekroning> is there a way to see which files are currently "required" in a ruby process?
<matti> dekroning: lsof
<matti> dekroning: Unless Ruby will close anything it required ;p
<Muz> $LOADED_FEATURES ?
coffer has joined #ruby
<Muz> Or $"
irleif has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
bitri has joined #ruby
<dekroning> matti: I was hoping some in process solution but indeed lsof, nicie :)
kil0byte_ has quit [Ping timeout: 272 seconds]
<dekroning> Muz: nice! :)
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<dekroning> Muz: lots of stuff by default :-)
<matti> Ah, $" +1
tungd has joined #ruby
cdzombak has joined #ruby
sailias has joined #ruby
<dekroning> awesome to see that output :)
<shevy> I am horny
hamed_r has quit [Quit: Leaving]
justinmcp has quit [Remote host closed the connection]
<matti> shevy: shevy shevy shevy shevy
Coolhand has quit [Ping timeout: 252 seconds]
sagax has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
chussenot has quit [Quit: chussenot]
coldfumonkeh has joined #ruby
xclite has joined #ruby
Coolhand has joined #ruby
arubin has joined #ruby
hsbt has joined #ruby
abionic has quit [Read error: Connection reset by peer]
amacgregor_osx has joined #ruby
tungd has quit [Quit: tungd]
saac has joined #ruby
a_a_g has quit [Quit: Leaving.]
chichou has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
sertaconay_ has joined #ruby
<shevy> matti!!!
<matti> !!!!
<shevy> matti, I am teaching a guy ruby on #bioruby
<shevy> but for some wicked odd reason
<matti> :)
<shevy> he uses shoes
<matti> shevy: +1
<matti> LOL
<shevy> it's really strange, shoes is like his IDE
sertaconay has quit [Ping timeout: 246 seconds]
tungd has joined #ruby
<JonnieCache> does he wear back square glasses and have a quirky and unique personality
aflynn_ has joined #ruby
hsbt has quit [Ping timeout: 252 seconds]
F1skr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
kil0byte_ has joined #ruby
<Servidorv> a good IDE is sublime text
<Servidorv> has anyone try it
<Servidorv> ??
<Servidorv> im working on it, and is really good, multiline editing, miltiline select, a bunch of appons
<Servidorv> is really good
cezar has joined #ruby
cezar has quit [Client Quit]
<Servidorv> i work on ruby and php at the same time, and this programe is awsome on the way it handels the files
<JonnieCache> servidorv: ive been using it for months, its brilliant
<Servidorv> hell yeah
<Servidorv> i even bought it
<Servidorv> well my boss bought it for me lol
ZubKonst_ has joined #ruby
<JonnieCache> you have package control right?
gmurphey has quit [Ping timeout: 248 seconds]
<Servidorv> of course
reinaldob has quit [Remote host closed the connection]
Appineer has joined #ruby
uris has joined #ruby
<JonnieCache> you should install the SublimeLinter package
kil0byte has quit [Ping timeout: 268 seconds]
<Servidorv> with zend coding on it
police has joined #ruby
<Servidorv> jonniewcache sublimelinter beta??
hsbt has joined #ruby
<JonnieCache> the pakcage is just called sublimelinter i think
<Servidorv> oh ok i just installed the beta
<Servidorv> lol
chussenot has joined #ruby
ZubKonst has quit [Ping timeout: 246 seconds]
skaczor has joined #ruby
GoGoGarrett has joined #ruby
kpshek has joined #ruby
mengu has joined #ruby
<Servidorv> JonnieCache: install the new one, there is a beta version 1.7 i think it is
rabidpraxis has quit [Remote host closed the connection]
pothibo has joined #ruby
verto|off is now known as verto
devdazed has joined #ruby
nitti has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
mmitchell has joined #ruby
bigkevmcd has quit [Quit: outta here]
bigkevmcd has joined #ruby
seanyo has joined #ruby
hashpuppy has joined #ruby
bigkevmcd has quit [Client Quit]
jerius has joined #ruby
<hashpuppy> how do i define that second parameter of this method: something_and_update(foo){|x| x.a = 5}
<hashpuppy> do i use a block here?
dimka has quit [Ping timeout: 248 seconds]
<hoelzro> hashpuppy: you mean as the person implementing something_and_update?
<hashpuppy> yeah
<hoelzro> so it's not really a parameter per se
<hoelzro> any invocation may have an associated block
<hoelzro> the block may be invoked via the yield keyword
<hoelzro> and its presence may be tested using Kernel#block_given?
<hoelzro> however, you may tell Ruby to convert that block into a Proc
Takehiro has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
<hoelzro> by prefixing the final parameter with an ampersand
<hoelzro> ex. def method(arg1, arg1, &block)
bigkevmcd has joined #ruby
irleif has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
jprovazn has quit [Quit: Leaving]
hbpoison has quit [Read error: Connection reset by peer]
<hashpuppy> "def self.dup_and_update(record, &func); record_clone = record.dup; do_something_with_func_and_record(); end" and "dup_and_update(foo){|x| x.a = 5}" what do i put for do_something_with_func_and_record()
dimka has joined #ruby
<hashpuppy> do i just func.call(record_clone)?
<hoelzro> depends on what you need to do
<hoelzro> but that will work, I suppose
d2dchat has quit [Remote host closed the connection]
<hoelzro> you could also say the following in that case:
<hoelzro> yield record_clone
armycream has joined #ruby
xpen_ has joined #ruby
gmurphey has joined #ruby
philcrissman has joined #ruby
maz-dev has joined #ruby
Astral_ has joined #ruby
hbpoison has joined #ruby
bluOxigen has joined #ruby
erichmenge has joined #ruby
elico has joined #ruby
stopbit has joined #ruby
AnarchoTroll has quit [Ping timeout: 246 seconds]
xpen has quit [Ping timeout: 264 seconds]
<Servidorv> guys what is the best way to do a line by line debugg??'
<Xeago> pry
hsbt has quit [Ping timeout: 246 seconds]
<Servidorv> how can i debug line by line in pry??
jprovazn has joined #ruby
Squarepy has joined #ruby
<JonnieCache> servidorv: with pry-debugger
<JonnieCache> its awesome
Guest29229 has quit [Ping timeout: 260 seconds]
<Servidorv> ok ill go on the syte to find out ore about it
<Servidorv> :)
<Servidorv> thanks
armycream has quit []
jprovazn has quit [Client Quit]
<Xeago> basically binding.pry
<Xeago> drops you into pry console
jipiboily has joined #ruby
jrist is now known as jrist-mtg
Squarepy has quit [Read error: Connection reset by peer]
<Servidorv> thanks guys
wmoxam has quit [Quit: leaving]
jprovazn has joined #ruby
bbttxu has quit [Quit: bbttxu]
wmoxam has joined #ruby
hsbt has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
d2dchat has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
zlangley has joined #ruby
krawchyk has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
therod has quit [Quit: Linkinus - http://linkinus.com]
Squarepy has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
tonini has quit [Remote host closed the connection]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
krawchyk_ has quit [Ping timeout: 255 seconds]
Squarepy has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
Elhu has joined #ruby
<Xeago> oh god
postmodern has quit [Quit: Leaving]
Squarepy has joined #ruby
<Xeago> someone pushed binding.pry to master..
IrishGringo has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
lewix has quit [Ping timeout: 276 seconds]
joshman_ has joined #ruby
nwertman has quit [Quit: leaving]
lewix has joined #ruby
havenn has joined #ruby
Guest29457 is now known as seme
tk__ has quit [Quit: ばいばい]
<Servidorv> hey
<JonnieCache> lol
samphippen has quit [Quit: Computer has gone to sleep.]
<JonnieCache> Xeago: fail
<Servidorv> im tying pry
<Servidorv> i did put binding.pry on my file
<Servidorv> but to start my servers i use god
<Servidorv> i stoped all the servers with god terminate
<Servidorv> then i put ruby -r pry lib/endpoints/pages/posts.rb
<Servidorv> but nothing comes out
<Servidorv> it stays there with no response
Serial_Killer_C has joined #ruby
<Servidorv> anyone know how i can start debug with pry in these case??
Serial_Killer_C has quit [Remote host closed the connection]
nwertman has joined #ruby
rakunHo has quit [Remote host closed the connection]
deadalus has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
Takehiro has joined #ruby
samphippen has joined #ruby
bitri has quit [Quit: Computer has gone to sleep.]
psychouroboros has joined #ruby
psychouroboros has quit [Changing host]
psychouroboros has joined #ruby
jrist-mtg is now known as jrist
hsbt has quit [Ping timeout: 272 seconds]
axl__ has joined #ruby
awestroke has quit [Remote host closed the connection]
deadalus__ has joined #ruby
Spooner has joined #ruby
deadalus has quit [Disconnected by services]
dmiller has quit [Ping timeout: 246 seconds]
deadalus__ is now known as deadalus
deadalus has quit [Changing host]
deadalus has joined #ruby
Araxia has joined #ruby
xpen_ has quit [Remote host closed the connection]
xpen has joined #ruby
Guest10288 has quit [Quit: Leaving...]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
tagrudev has quit [Quit: "Letting..."]
chin-tastic has quit [Ping timeout: 240 seconds]
psychouroboros has quit [Ping timeout: 255 seconds]
Astral_ has quit [Read error: Connection reset by peer]
<Servidorv> anyone??
Astral_ has joined #ruby
Ankhers has joined #ruby
erichmenge has quit [Quit: Be back later]
dhruvasagar has quit [Ping timeout: 252 seconds]
psychouroboros has joined #ruby
psychouroboros has quit [Changing host]
psychouroboros has joined #ruby
xpen_ has joined #ruby
deadalus has quit [Disconnected by services]
psychouroboros is now known as deadalus
coldfumonkeh has quit [Remote host closed the connection]
xpen has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Serial_Killer_C has joined #ruby
xpen_ has quit [Remote host closed the connection]
headius has joined #ruby
xpen has joined #ruby
<burgestrand> servidorv: you are just starting a ruby interpreter, requiring pry, and then running your script
<burgestrand> servidorv: but are you starting your script with god? you need to have a terminal attached somewhere so you can actually see what is happening
xpen_ has joined #ruby
<burgestrand> there is also a pry-remote but I haven‘t used that myself
<Xeago> servidorv: if you start with goliath, you could also start it with a goliath console like command
<Servidorv> ok
<Servidorv> yeah im using goliath
<Servidorv> ok ill will research with goliath then
v0n has joined #ruby
chin-tastic has joined #ruby
xpen_ has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
xpen_ has joined #ruby
xpen has quit [Ping timeout: 248 seconds]
hbpoison_ has joined #ruby
erichmenge has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
chichou has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
xpen_ has quit [Remote host closed the connection]
xpen has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
chichou has joined #ruby
dnstbr has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
hbpoison_ has quit [Ping timeout: 246 seconds]
zigomir has quit [Ping timeout: 276 seconds]
hbpoison has joined #ruby
erichmenge has quit [Quit: Be back later]
freezey has joined #ruby
burgestrand has quit [Quit: Leaving.]
<zlangley> quit
zlangley has quit [Quit: leaving]
police has quit [Ping timeout: 264 seconds]
Servidorv has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
symeog has joined #ruby
<otters> "%20s" % "=====" produces " ======"
<otters> I can't figure out what format specifier makes it produce "====== " instead
<otters> oh
samphippen has joined #ruby
<Spooner> oh?
GeekOnCoffee has quit [Read error: Connection reset by peer]
Squarepy has quit [Read error: Connection reset by peer]
zooz has joined #ruby
<zooz> hi guys
<Spooner> ("%-20s" in case you hadn't figured it out).
<Spooner> Hey zooz
<otters> yeah I just did
<otters> I scrolled down to the "width examples" part
katherinem13_bed is now known as katherinem13
sertaconay has joined #ruby
hsbt_away is now known as hsbt
iamjarvo has quit [Quit: Computer has gone to sleep.]
<zooz> using RDoc, how can I tell it that the following lines are actual code and I want it to be marked as code block in a generated HTML doc?
GeekOnCoffee has joined #ruby
<Spooner> I'd guess indent 4 - Most people use Yard now, not rdoc though, which would just use the @example tag.
Procore has quit [Quit: Leaving...]
darth has joined #ruby
quest88_ has joined #ruby
rubious has joined #ruby
darth is now known as Guest61050
rubious has quit [Read error: Connection reset by peer]
Procore has joined #ruby
<zooz> Spooner, thanks, indent 4 seems to work
sertaconay_ has quit [Ping timeout: 246 seconds]
<zooz> at least rdoc does not try to interpret my code
<Spooner> And that is bad because?
arubin has quit [Quit: Computer has gone to sleep.]
Serial_Killer_C has quit [Remote host closed the connection]
<Xeago> how about TomDoc?
jimmy1980 has joined #ruby
Serial_Killer_C has joined #ruby
hsbt has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
Servidorv has joined #ruby
quest88_ has quit [Quit: quest88_]
tolbkni has joined #ruby
hsbt has joined #ruby
MoMo has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
<Spooner> Actually, that reminds me, I wrote some code to manage testing my Yard examples, but then realised there should already be some, but I couldnt' find a gem for it. Am I missing something?
MoMo_ has joined #ruby
vlad_starkov has joined #ruby
arubin has joined #ruby
hsbt is now known as hsbt_away
xpen_ has joined #ruby
hsbt_away is now known as hsbt
Morkel has joined #ruby
<waxjar> Tomdoc is awesome, i can't get it to display nicely on rubydoc.info though :(
eldariof has quit []
Guest61050 has quit [Quit: Leaving...]
kernelPanik has quit [Ping timeout: 244 seconds]
guhcampos has joined #ruby
<Spooner> A doc format that only works locally is a bit pointless, waxjar, though I guess it just displays Tomdoc raw format on rubydoc.info?
awarner has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
jprovazn is now known as jprovazn_away
maesbn has quit [Remote host closed the connection]
jimmy1980 has quit [Ping timeout: 272 seconds]
<waxjar> yeah
meskyanichi has joined #ruby
apok has joined #ruby
<Xeago> tomdoc displays wonderfull with rocco/docco
<waxjar> it should be possible though, with a .yardopts file. i just never figured out how :P
tungd has quit [Quit: tungd]
jimmy1980 has joined #ruby
vlad_sta_ has joined #ruby
nitti has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
awc737 has quit [Ping timeout: 256 seconds]
rh1n0 has joined #ruby
davidcelis has quit [Quit: K-Lined.]
vlad_starkov has quit [Ping timeout: 248 seconds]
police has joined #ruby
Zai has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
reinaldob has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
kil0byte_ has quit [Remote host closed the connection]
carlyle has joined #ruby
joast has quit [Quit: Leaving.]
Serial_Killer_C has joined #ruby
Neomex has joined #ruby
seme has quit [Ping timeout: 260 seconds]
james_d_h has joined #ruby
nitti has joined #ruby
<james_d_h> can you embed a while loop inside a "when" in a case statement in ruby?
cj3kim has quit [Quit: This computer has gone to sleep]
drbawb has joined #ruby
<Spooner> james_d_h : Of course you can. How are you trying to do it?
<Spooner> james_d_h : Or do you mean as the when clause itself, not the result of matching the when?
dnyy has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
zommi has quit [Quit: Leaving.]
Procore has quit [Quit: Linkinus - http://linkinus.com]
Neomex has quit [Quit: Neomex]
rubious has joined #ruby
baphled has joined #ruby
hsbt has quit [Ping timeout: 252 seconds]
<james_d_h> Spooner: Hah had no idea it was an "of course" kind of thing. I'm new to programming.
arubin has quit [Quit: Computer has gone to sleep.]
<Spooner> james_d_h : Oh, I see. Yeah, you can nest everything (at least I can't think of something you can't nest).
<james_d_h> I'm building a phone tree in tropo, which allows you to use ruby in the script. and im using a while loop to allow you to go back a menu, and using a case statement to evaluage each choice.
<james_d_h> so if i can have a while loop in each case statement that lets you repeat the choice you just made.
<james_d_h> so thanks for that!
maletor has quit [Ping timeout: 245 seconds]
aganov has quit [Remote host closed the connection]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
joast has joined #ruby
virtuose has quit [Read error: No route to host]
<Spooner> james_d_h Er, OK. I'd recommend opening up irb so you can just try stuff like that and/or looking through a Ruby tutorial. Lots of places to become unstuck otherwise.
police has quit []
dpatel has joined #ruby
gmurphey has quit [Ping timeout: 272 seconds]
brianpWins has quit [Quit: brianpWins]
<james_d_h> Spooner: thanks for the recommendation, http://pastebin.com/Q8KmqXGJ this is what i have so far. if you have any suggestions for improvement i would appreciate it.
eboaz has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
<shevy> use pastie.org it is better :)
<james_d_h> Spooner: After finding out I can embed a while loop in a when inside a case statement i think i can do what i want by embedding a while loop inside each when, that is basically like the while loop the whole program is running in.
<Spooner> james_d_h : There is a lot of repeated stuff in there that could be factored out.
Ethan has joined #ruby
gmurphey has joined #ruby
undersc0re97 has quit [Ping timeout: 245 seconds]
asobrasil has joined #ruby
<james_d_h> Spooner: oh yeah?
virtuose has joined #ruby
<shevy> case event.value
<shevy> you use that twice
<james_d_h> shevy: right it's a case statement inside of another case statment
<shevy> and why do you go from 5 to 7 to 9 to 6
<Spooner> Your indentation is a bit inconsistent so it is a bit hard to follow.
<shevy> that indent seems messed up
<shevy> the second case is to the left of the first case
<james_d_h> because when you choose that option, the new set of options is 5 7 9
chrishunt has quit [Quit: Leaving...]
<shevy> in fact, your indent is odd in other places too
hbpoison has quit [Ping timeout: 240 seconds]
<shevy> sometimes it is " event" and sometimes it is " event"
<james_d_h> That shouldn't effect the running of the program correct? ruby doesn't care about white space to the best of my knowledge.
xpen_ has quit [Remote host closed the connection]
<shevy> yeah you can indent however you want
<james_d_h> thanks. noted.
<Spooner> It doesn't, but when people try to read it it helps ;)
scx has joined #ruby
<shevy> every day differently too :)
ckrailo has joined #ruby
<james_d_h> I'm having to use their editor and it wraps lines at inconvenient places.
kramutils has joined #ruby
hbpoison has joined #ruby
hsbt has quit [Ping timeout: 276 seconds]
hsbt_away has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
supe has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Spooner> Anyway, you don't need to wrap the hashes in {}, the last bit of a method call automatically puts things into a hash (e.g.: ask 'bleh', :choices => '0,5,7')
<Spooner> Edit it in your favourite editor and just paste it online. Don't code in a pastie ;)
x82_nicole has joined #ruby
beneggett has joined #ruby
matrixise has quit [Ping timeout: 260 seconds]
jslowe has joined #ruby
DebianUT has joined #ruby
<DebianUT> anyone using puma?
<DebianUT> anyone knows how can I set the request time out in puma?
shadewind has quit [Quit: leaving]
tolbkni has quit [Quit: Ex-Chat]
gccostabr has quit [Remote host closed the connection]
dekroning has quit [Quit: leaving]
awarner has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
apok has quit [Ping timeout: 252 seconds]
mando has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
vonsar has joined #ruby
hsbt is now known as hsbt_away
eboaz has joined #ruby
hsbt_away is now known as hsbt
frogprince has quit [Ping timeout: 246 seconds]
jerius has joined #ruby
joeycarmello has joined #ruby
kpshek has quit []
kil0byte has joined #ruby
rubious has quit [Quit: Linkinus - http://linkinus.com]
kpshek has joined #ruby
shtirlic has joined #ruby
hoelzro is now known as hoelzro|away
<shevy> isn't puma a cat
love_color_text_ has quit [Remote host closed the connection]
frogprince has joined #ruby
love_color_text_ has joined #ruby
ryanlecompte has joined #ruby
<Spooner> james_d_h : a bit cleaner: http://pastie.org/5098757
blazes816 has joined #ruby
<james_d_h> Spooner: checking that out now.
samphippen has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Remote host closed the connection]
<james_d_h> Spooner: I really like how you cleaned up the mp3 stuff by using an array!
<james_d_h> I don't understand the break stuff though
joeycarmello has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
ryanlecompte has joined #ruby
<Spooner> loop is infinite, but you break out of the loop with break.
<james_d_h> right but doesn't unless mean that 0 would be the only one that would NOT break it?
vlad_starkov has joined #ruby
<james_d_h> oohhh weait
<james_d_h> unless it evaluates to zero
<james_d_h> == not =
<james_d_h> still learning basic logic sorry.
<Spooner> YEs, but you had if event.value != '0' before, so it is just the same.
<Spooner> You can do it either way.
<Spooner> I would recommend, perhaps, having each case in a method, since it got a bit messy when they were nested. Looked a bit spagettish.
jerius has quit [Quit: Computer has gone to sleep.]
dnstbr has quit [Quit: Computer has gone to sleep.]
<james_d_h> oh man im excited! I knew it looked wrong before!
vlad_sta_ has quit [Ping timeout: 245 seconds]
<Spooner> james_d_h : And see that event = is using the result of the case, rather than before when you were writing event = a lot of times.
ralphvdh_ has quit [Quit: ralphvdh_]
<james_d_h> Spooner: yes it's way cleaner this way. I wish I understood how to make it behave in each ase the way it does at the top level loop. The goal is to be able to choose an option and have it repeat the initial mp3 that presents the choices.
<james_d_h> Spooner: you definately showed me a much better way to do things. thank you so much, im ashamed that i didn't see how to abstract it and clean it up to begin with.
<Spooner> I would, as I said, put each menu into a method and have the logic separately.
<Paradox> what are some ruby tricks you wish you knew when you were learning ruby
<james_d_h> Spooner: I read that but don't understand how to do it, I'll read up on what methods are and how they work.
<Paradox> i'm writing a blogpost
<Paradox> and need some idears
hsbt has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
rabidpraxis has joined #ruby
colinbm has quit [Quit: colinbm]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
vlad_starkov has quit [Remote host closed the connection]
brianpWins has joined #ruby
<james_d_h> Spooner: just so i know what to try to do, would the method be comprised of a while loop with a break just like the main body of the program?
<james_d_h> Thank you for being patient with my stupid questions.
seanyo has quit [Ping timeout: 246 seconds]
xorigin has quit [Quit: leaving]
<Spooner> james_d_h : Maybe something like http://pastie.org/5098757
skryking has quit [Quit: Konversation terminated!]
<Spooner> Oops, I overwrote what I had before.
kpshek has quit [Ping timeout: 256 seconds]
<james_d_h> I saved what you had before no worries
lewix has quit [Changing host]
lewix has joined #ruby
mahmoudimus has joined #ruby
<Spooner> Though maybe my logic is flawed there, since I am not sure of how the API works.
Niamkik has joined #ruby
<james_d_h> Wow, did you ever feel like you will never get this when you see how much more elegant a solution is than what you sweated over ? haha
Astral has joined #ruby
Astral is now known as Guest9649
hoelzro|away is now known as hoelzro
<Spooner> Aren't there example scripts for this sort of thing on the Tropo site (or elsewhere)?
frogprince has quit [Ping timeout: 240 seconds]
sambio has joined #ruby
<Spooner> Ha, the example sucks!
Astral__ has joined #ruby
<Spooner> james_d_h : At least you'd realised you should use case.
Vollmer has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
gmurphey has quit [Quit: Lost terminal]
samphippen has joined #ruby
Kruppe has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<shevy> hehe
rippa has joined #ruby
<shevy> the examples suck for about 50% of ruby projects out there :(
<Spooner> Sadly, a little work could create a much nicer system for managing menus, but I digress ;)
<Spooner> Yeah, because it is the javascript programmer asked to port to all languages ;)
samphippen has quit [Client Quit]
Niamkik_ has joined #ruby
Niamkik has quit [Ping timeout: 248 seconds]
<shevy> yesterday, a guy was using bioruby from the official tutorial. thing is, the tutorial had so many things that no longer worked... I filed a bug, the main author replied "Hmm, the tutorial could need an update" [Issue closed] hehe
<james_d_h> Spooner: no not really, they had two examples in their entire forums and the examples were imo poor.
KevinSjoberg has joined #ruby
<shevy> you know
Guest9649 has quit [Ping timeout: 256 seconds]
<shevy> ruby projects should start with working examples as their main test case
<JonnieCache> james_d_h: sweating is how you get to be able to make elegant solutions
<shevy> hehehe
<james_d_h> JonnieCache: Thanks, I know it's true it is just so disheartning sometimes.
<shevy> james_d_h, see, these guys here went through a lot of blood and sweat (and broken windows) already
hoelzro is now known as hoelzro|away
sertaconay has quit [Read error: Connection reset by peer]
<james_d_h> I try to keep that in mind.
<shevy> that's where a man's best friend kicks in
<shevy> beer
<Spooner> shevy : I don't drink ;)
<james_d_h> shevy: Proof that god loves us and wants us to be happy.
aantix has joined #ruby
<shevy> Spooner waaaaah :(
<james_d_h> ben franklin quote
<shevy> Spooner what is your secret ingredient to stress relief?
<JonnieCache> if youre looking at other peoples elegant code and admiring it, youre doing well. a lot of coders never look at code that itsnt theirs/their teams
hsbt is now known as hsbt_away
joeycarmello has joined #ruby
hsbt_away is now known as hsbt
<james_d_h> To me that would be like being a painter but never looking at another painters work. that's just silly.
<shevy> other people's code is often not very elegant at all
<shevy> but there are so many awful painters!
<james_d_h> I am betting spooner smokes reefer jk
<shevy> sometimes there are geniuses but it's rare
<james_d_h> shevy: I think you can learn even from a bad painter, at least what not to do.
<shevy> Spooner probably does something crazy
<shevy> like smoking grasshoppers or something like that
<JonnieCache> you know what i mean though, there are a lot of programmers in the corporate world who never feel the need to
zmo_ has quit [Quit: Leaving]
<lectrick> Is there any way to run tests in parallel? Or to pool a bunch of test-running app instances that are frozen right before they load and run the test files?
<shevy> do these drink beer at least?
<Spooner> shevy : I'm a vegan too, so the grasshoppers are out too.
<JonnieCache> especially if theyre using for-profit libs where they dont have the source code
<james_d_h> Spooner: that's why you code so well, you are as close to a monk as can be.
linoj has quit [Quit: linoj]
<shevy> Spooner I am vegan too! :) (or, a bit of a vegan... I don't eat animals.. but I eat chicken eggs... so I am not really a true vegan)
kil0byte has quit [Read error: Connection reset by peer]
<james_d_h> must be all the steak and beer than is holding me back :(
<Spooner> shevy : That is called a ovo-vegetarian.
kil0byte has joined #ruby
<shevy> hehe cool
<JonnieCache> lectrick: also https://github.com/ngauthier/hydra but no commits for 8 months which is a shame cos it was cool when i used it briefly
_JamieD_ has joined #ruby
<shevy> hydra
<shevy> those names are so strange...
<shevy> we have unicorn too
<james_d_h> hydra was said to have many heads, makes sense for multithreaded test app
<shevy> yeah but how do you kill a hydra!!!
davidcelis has joined #ruby
SuperrMann has joined #ruby
<james_d_h> with a -9 ;)
<shevy> oh cool
<james_d_h> kill all heads same time.
<shevy> 9 heads severed at the same time... yeah
<Spooner> james_d_h : I don't think you need these loops, actually, as soon as you use methods: http://pastie.org/5098899 - maybe I'm misunderstanding the logic though.
<shevy> ohhh you dont use methods yet?
<james_d_h> shevy: no :(
<shevy> I see a case whatever :)
<JonnieCache> how did he actually kill the hydra? and who was it?
<shevy> I think with fire
<james_d_h> The hydra? with fire.
<shevy> the real hydra in reallife can regrow when cut in two
<james_d_h> each stump had to be seared so two heads wouldn't sprout up in place.
<JonnieCache> it was heracles apparently
DrShoggoth has quit [Ping timeout: 246 seconds]
<james_d_h> Spooner: no that probably is what i want.
<shevy> james_d_h using methods is good because you group your code into logical parts
nitti has quit [Remote host closed the connection]
<JonnieCache> heracles' second labour
<shevy> and can re-use those things more easily lateron
<Spooner> james_d_h : You mean you want loops or you want to just recursively call methods?
<lectrick> JonnieCache: Thanks for the tips, will investigate!
samphippen has joined #ruby
<james_d_h> Spooner: I am smart enough to know, that I don't know what I want! I don't know what would work best.
<symeog> guys the hydra was killed by Hercules…its greek mythology
hsbt has quit [Ping timeout: 260 seconds]
<havenn> "Hydras mainly feed on ... Cyclops."
<james_d_h> right and heracles is the greek name for hercules
maletor has joined #ruby
<shevy> I usually do things like this (on several lines, but here on IRC I use one long line): loop { fetch_user_input; act_on_user_input} and somewhere in these two methods usually I break when the user wants to quit again (or something like that)
<symeog> yes true
<shevy> lol havenn
<Spooner> james_d_h : You get '0' back when the user asks to listen again (or just sits there doing nothing)? In which case you don't need loops at all.
<symeog> when he cut one head, 2 spawn up
<symeog> so he use fire and burn the heads
<symeog> all except the main one which cut and then burried
xargoon has quit [Ping timeout: 256 seconds]
<lectrick> JonnieCache: Argh. I am in like the one shop that doesn't use rspec, and rspec is a dependency of parallel_tests
<JonnieCache> bummer
<JonnieCache> write your own? cant be that hard
<Spooner> james_d_h : So do we get a consultancy fee? (I added a to_i since it seemed more sensible in your case: http://pastie.org/5098899)
<symeog> he didn't dp that all alone…he had a help form one guy: Iolaos
billiam has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
<symeog> enough mythology i guess :)
hotovson has quit [Remote host closed the connection]
<james_d_h> Spooner: not consulting it's for my part time business, but i will happily buy you a wheeat grass drink :)
<JonnieCache> i love mythology but unfortunately this is the ruby channel
<james_d_h> http://pastie.org/5098921 this is the logic don't know if that helps explain anything.
kpshek has joined #ruby
<lectrick> JonnieCache: Yeah, maybe.
<JonnieCache> lol wheatgrass. surely vegans have a better beer alternative than that
chussenot has quit [Quit: chussenot]
hsbt has joined #ruby
<JonnieCache> fruit juice surely!
vlad_starkov has joined #ruby
<james_d_h> I see people get that wheat grass thing all the time at whole foods.
<Spooner> james_d_h : Not sure how pressing the same number should do it twice though.
artOfWar has joined #ruby
nitti has joined #ruby
djbpython has joined #ruby
<shevy> "if at first you don't succeed, hammer at your keyboard again!!!" - Maxim of the Angry Programmer
<james_d_h> Spooner: I was assuming if i used a while loop in each case statment i could just do the same thing the while loop the case was inside of was doing, if arbitrary value = blah break loop thus replaying the menu.
<shevy> symeog man, what is that... is that a BABY hydra??
<djbpython> anyone use the money gem? https://gist.github.com/3932303 I'm sure i fubar'd something up, but i didnt configure anything beyond installing the gem
<symeog> hahha…its a statue
<shevy> cheap bastards did not want to make a huge sculpture :P
<shevy> yeah
<Spooner> james_d_h : I haven't seen wheatgrass around here, but I do go to a smoothy cafe to play board games (Yeah, I'm a board game geek too).
<shevy> cheaper for tiny hydras....
<carlzulauf> maybe its a giant hercules
dnstbr has joined #ruby
<shevy> hehehe
<james_d_h> Spooner: you play settlers of catan?
ephemerian has quit [Quit: Leaving.]
<james_d_h> I enjoy that board game a good bit.
<Spooner> james_d_h : You don't really need a while loop. Just call the method inside itself if the appropriate number was pressed.
<shevy> symeog where is this statue? france?
<james_d_h> Spooner: I had no idea you could do that!
<Spooner> james_d_h : Just like I called main_menu inside main_menu on a 0.
<shevy> james_d_h you need a loop only if you need repeated actions :)
hotovson has joined #ruby
hsbt is now known as hsbt_away
<Spooner> james_d_h : Yeah, using methods makes it considerably simpler.
<james_d_h> shevy: good point.
xargoon has joined #ruby
aam_ has joined #ruby
<james_d_h> Spooner: where do i define all the sub_menu1 methods?
<james_d_h> like in a seperate file and call as a header?
<shevy> james_d_h usually I start writing the methods on top
siyusong has joined #ruby
<james_d_h> or in the same file?
<shevy> def foo1
<shevy> end
<shevy> def foo2
<shevy> end
<james_d_h> ahh ok
<Spooner> shevy : But there are repeated actions (potentially), which you'd need to use a loop for unless you use methods.
<shevy> depends, same file is easier
<james_d_h> so it's not like C
<shevy> james_d_h well, ruby might still be happier if you defined your methods first
<james_d_h> no need for includes per say.
<shevy> includes are like:
<symeog> ok i m gonna start writing my very ffirst lines of my own ruby code…..i feel excited….and kinda scared…all i wanna do is describe Customers, Orders and Items. any pointers ?
<shevy> require 'foo.rb' or load 'foo.rb'
<james_d_h> shevy: thanks!
<Spooner> james_d_h : You could do def menu_1 then menu_1_1 and menu_1_2 etc.
<shevy> but you have a problem that can be solved in like 30 lines of code at max, james_d_h, no real need to use more than one file
<james_d_h> Spooner: I feel like a lightbulb has turned on in my head. Thanks so much!
<Spooner> shevy : It depends how deep the menu structure needs to go.
ShiintoRyuu has joined #ruby
linoj has joined #ruby
BiHi has joined #ruby
<Spooner> But the code is mostly going to be repetative. In fact, if it were me, I'd write a system to do all this from a yaml file or a simple dsl, but I'm an idiot ;)
SuperrMann has quit [Quit: Computer has gone to sleep.]
<shevy> a yaml file?
<symeog> class Customer @Name, @Address, @Telephone end is that a valid class ? do i have to write getters and setters ?
<james_d_h> Spooner: do you mean generate the code from the yaml file?
<james_d_h> like lisp style macros?
<shevy> symeog you dont need to manually define getters and setters. you can use attr
<shevy> like
<shevy> attr :Name
DebianUT has quit [Ping timeout: 272 seconds]
<Spooner> Yesh, the menu's & questions are just a big tree.
<shevy> or rather, attr_accessor :Name to get both getter and setter
<shevy> but please downcase that symeog
anachronistic has joined #ruby
<shevy> @name @address @telephone
hotovson has quit [Read error: No route to host]
hsbt_away is now known as hsbt
<symeog> aha…so class Customer attr_accessors: @name @address @telephone end is that correct ?
<Spooner> james_d_h : Not sure if it would be like lisp macros. YAML is more like XML, in that it is just hierarchical data. A clever menu system would just walk through the data structure and ask questions appropriately.
tjbiddle has joined #ruby
<Spooner> But that is only really useful if you want to be able to easily generate a lot of different trees. Overkill for a one-use menu ;)
Servidorv has quit [Ping timeout: 244 seconds]
tjbiddle has quit [Remote host closed the connection]
<nitti> class Customer; attr_accessor :name, :address, :telephone
moted has joined #ruby
tjbiddle has joined #ruby
<symeog> ok nitti and when i use the @ ?
<nitti> use @ to designate instance variables
samphippen has quit [Quit: Computer has gone to sleep.]
<theRoUS> what's the best way for a ruby 1.8.7 app to check its memory footprint? in an oversimplified form, i'd like to do 'okey, VM is 111000 bytes; <invoke method>; VM is now 211000 bytes' giving a massively oversimplified hint of the method result in the consumption of 100_000 bytes.
Chryson has joined #ruby
sertaconay has joined #ruby
noxoc has quit [Ping timeout: 260 seconds]
<james_d_h> Spooner: I will think about that, it's for a very small business that me and my wife run helping people go to college in the U.S. and getting out of africa etc to do it.
<james_d_h> So i don't think the menu will change much.
<symeog> so :name before is also an instance variable ? how can i refer to :name from inside my class ?
hsbt is now known as hsbt_away
<workmad3> symeog: attr_accessors :name, :address <- that will define methods 'name, name=, address, address=' which will read and write @name and @address
hsbt_away is now known as hsbt
chrishunt has joined #ruby
<symeog> thanks workmad3
casheew has joined #ruby
<symeog> do u know any good reading on ruby object oriented programming ?
<james_d_h> I think it would be good to know how to do that just because it's cool. i assume it uses some kind of tree walk method.
jgrevich has joined #ruby
erichmenge has joined #ruby
<Spooner> Well, it wouldn't walk, which implies visiting all locations, as much as move around the tree based on the user's answers.
brianpWins has quit [Quit: brianpWins]
JohnBat26 has joined #ruby
eindoofus has joined #ruby
carloslopes has quit [Quit: Leaving.]
AlbireoX has joined #ruby
Araxia has quit [Quit: Araxia]
michele has joined #ruby
<michele> hi there
<Spooner> I'd write you one, but I've already earned a wheatgrass, and I don't think I'll be able to collect that anyway. I suspect the airfare would cancel out the value of a free drink ;)
uuair has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
<michele> could somebody explain why can't ruby access home (~) ?
<Spooner> michele : You need to use File.expand_path on anything involving ~
<michele> thanks
BiHi has quit [Quit: bye]
elsifaka has quit [Quit: Veloma e!]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
darth has joined #ruby
darth is now known as Guest58777
Servidorv has joined #ruby
joeycarmello has quit [Remote host closed the connection]
yxhuvud has joined #ruby
tommyvyo_ has joined #ruby
Iszak has quit [Quit: User has gone to sleep.]
<shevy> michele are you a girl?
erichmenge has quit [Quit: Be back later]
carloslopes has joined #ruby
<james_d_h> Thanks for the help, I'm going to make Ruby my primary focus I learned so much today! Take care all!
james_d_h has left #ruby ["learned a lot to mull over"]
kaawee has quit [Ping timeout: 248 seconds]
hsbt has quit [Ping timeout: 255 seconds]
carloslopes has quit [Client Quit]
walbert has joined #ruby
rcassidy has joined #ruby
erichmenge has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
sertaconay_ has joined #ruby
samflores has joined #ruby
aam_ has quit [Ping timeout: 260 seconds]
<Spooner> shevy : I believe they do exist. They aren't just fairy-tale creatures, you know ;)
dmerrick has joined #ruby
yshh has quit [Remote host closed the connection]
sent-hil has joined #ruby
<shevy> not convinced!
_cheney has quit [Read error: Connection reset by peer]
GoGoGarrett has quit [Remote host closed the connection]
sertaconay has quit [Ping timeout: 260 seconds]
<shevy> well there is mistym but she does not come to #ruby ... only #machomebrew... and the evil channel #ruby-lang
Servidorv has quit [Ping timeout: 252 seconds]
_cheney has joined #ruby
d2dchat has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
<shevy> the latter being a bit odd, 727 folks here, 341 on #ruby-lang
Xeago has joined #ruby
<JonnieCache> http://xkcd.com/322/
<JonnieCache> click click
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
hsbt has quit [Ping timeout: 248 seconds]
<shevy> lol
<Spooner> JonnieCache : Much truth ;(
<shevy> yeah
lewix has quit [Remote host closed the connection]
<shevy> especially the place to frequent
frogprince has joined #ruby
<shevy> I have no idea what happens on social media sites
apok has joined #ruby
<kramutils> heh
answer_42 has quit [Remote host closed the connection]
<shevy> things always change... in 1998 I was playing browser games written in perl
ninegrid has quit [Ping timeout: 265 seconds]
<shevy> and they were difficult. today, I dunno what it is, but the browser games seem to be immensely boring, very graphic centric only
khakimov has joined #ruby
ninegrid has joined #ruby
hsbt has joined #ruby
<JonnieCache> what was the browser game where you had space fleets?
answer_42 has joined #ruby
elaptics is now known as elaptics`away
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<shevy> JonnieCache hah I think there were a few... one I recall was where you had a group of players, in guilds, and some were designated ressource-hogs feeding others who were building more armies thusly
margle has joined #ruby
michele has quit [Quit: leaving]
cantonic_ has joined #ruby
<Spooner> shevy : There is a low quality:noise, but there are still gems.
<shevy> and I forgot the names of them all too :(
moted has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
moted has joined #ruby
dylanjha has joined #ruby
slainer68 has quit [Remote host closed the connection]
ben225 has joined #ruby
KevinSjoberg has quit [Ping timeout: 244 seconds]
<shevy> strange is that there are not more browser games written in ruby
<shevy> or rails respectively
skum has quit [Quit: Leaving...]
jerius has joined #ruby
<Spooner> Oh, that sort of browser-based games. They, I have to say, universally suck.
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
beneggett has quit [Ping timeout: 260 seconds]
ben225 is now known as beneggett
ShiintoRyuu has quit [Ping timeout: 244 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
klaas_ has joined #ruby
apok has quit [Remote host closed the connection]
scx has quit [Ping timeout: 272 seconds]
faen has quit [Ping timeout: 252 seconds]
yakko has joined #ruby
karakedi has joined #ruby
beit has joined #ruby
x0F_ is now known as x0F
deathtron9000 has joined #ruby
apok has joined #ruby
klaas has quit [Ping timeout: 264 seconds]
<JonnieCache> someone on HN said they were making a websockets+rails powered MUD
<JonnieCache> someone replied saying "you're doing god's work, son" which made me laugh
KevinSjoberg has joined #ruby
<JonnieCache> he has the url in his profile: https://apathydrive.com/
<walbert> hah
faen has joined #ruby
cantonic has quit [Ping timeout: 268 seconds]
cantonic_ is now known as cantonic
abstrusenick has joined #ruby
<shevy> Spooner well it depends... I found that back then it was other players who made these games very interesting. we used to have guildwars on IRC, and you could chat about reallife too. was nice... way before "social media" came to existance hehe
bbttxu has joined #ruby
hsbt is now known as hsbt_away
scx has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
hsbt_away is now known as hsbt
Elhu has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Read error: Connection reset by peer]
deathtron9000 is now known as Synthead
<walbert> Do you have a link to the article?
coderrr has joined #ruby
yekta has joined #ruby
coderrr has left #ruby ["Ex-Chat"]
<shevy> hmm article?
yaymukund has quit [Ping timeout: 246 seconds]
kzrl has quit [Ping timeout: 246 seconds]
samflores has left #ruby ["Linkinus - http://linkinus.com"]
tommyvyo_ has joined #ruby
<walbert> on hn
chrishunt has quit [Read error: Connection reset by peer]
chrishun has joined #ruby
chrishun has quit [Client Quit]
chrishunt has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
hsbt has quit [Ping timeout: 265 seconds]
abstrusenick has quit [Quit: abstrusenick]
vonsar has quit [Quit: This computer has gone to sleep]
<rcassidy> is there any reasonable way to get at the require/load hierarchy at runtime?
<shevy> ah JonnieCache
JonnieCache has quit [Ping timeout: 248 seconds]
<shevy> rcassidy not sure... I think by default ruby follows a "first comes, first load"... I am not sure if you can easily get the full runtime... there is this debug or trace functionality though
<shevy> some commandline switch to "ruby" ... hmm
<rcassidy> i've seen the $0 == __FILE__ idiom but i am using IRB to drive scripts
rippa has joined #ruby
<shevy> or ruby -r ... some library
anderse has quit [Quit: anderse]
<rcassidy> so... that idea is sort of dead, cos $0 = 'irb' and __FILE__ = "(irb)"
<shevy> not tracer ... or perhaps? hmm
<shevy> why not
<shevy> can't you put that into irbrc ?
<rcassidy> i meant the idiom i just posted above
<shevy> yeah but I think I did that just today
<rcassidy> i'm trying to keep track of other requires behind the scenes... meh, it's trivial, i might just do something non elegant
brianpWins has joined #ruby
<shevy> in irbrc I do: require 'chemistry'
<shevy> and in the main chemistry file I do:
ckrailo is now known as ckrailo|lunch
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<shevy> include Chemistry if $PROGRAM_NAME == 'irb'
<shevy> and that seems to work :)
kzrl has joined #ruby
<rcassidy> makes sense for that case.
haxrbyte has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
<rcassidy> in this case, i have a ruby file with a library of scripts that i can do things with via IRB - prints out some instructions to the command line when loaded
sent-hil has quit [Remote host closed the connection]
<rcassidy> i have another file that uses this lib but builds on top of it. and it's printing the wrong instructions now.
<rcassidy> so in both cases IRB is at the top level
<rcassidy> i mean,
<rcassidy> this might jsut be a case of badly organized scripts
<rcassidy> and by 'might' i mean 'is'
chichou has joined #ruby
flagg0204 has quit [Quit: leaving]
cbuxton1 has joined #ruby
rakl has joined #ruby
Vollmer has left #ruby [#ruby]
anderse has joined #ruby
hsbt has quit [Ping timeout: 245 seconds]
cbuxton1 has quit [Client Quit]
kaawee has joined #ruby
d2dchat has joined #ruby
cbuxton1 has joined #ruby
mrsolo has joined #ruby
flagg0204 has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
symeog has quit [Quit: symeog]
anderse has quit [Ping timeout: 245 seconds]
<shevy> hmm
<shevy> I always have a hard time organizing things myself
<shevy> when ruby 1.9.x came out, it suddenly showed "circular require" warnings
<shevy> that took me many days to fix all my broken code, had to dig through so many files
workmad3 has quit [Ping timeout: 260 seconds]
<shevy> in 1.8.x it worked without a complaint
niklasb has joined #ruby
<shevy> since that day, I only try to require something (a) when I need it and (b) require it exactly where it is needed
hsbt has joined #ruby
hoelzro|away is now known as hoelzro
Xeago has quit [Remote host closed the connection]
cbuxton1 has quit [Quit: Leaving.]
cbuxton has joined #ruby
<rcassidy> shevy: odd
<rcassidy> but yeah
<rcassidy> agreed
cbuxton has quit [Client Quit]
dnstbr has quit [Quit: Computer has gone to sleep.]
ryanf_ has joined #ruby
ryanf_ has quit [Client Quit]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
margle has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has quit [Read error: Connection reset by peer]
seanyo has joined #ruby
vlad_starkov has joined #ruby
sertaconay_ has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 256 seconds]
cbuxton has joined #ruby
<rcassidy> shevy: i'm about to patch this with a global variable because it's stuch a dumb simple problem... but it feels like such an ugly hack
Araxia has joined #ruby
dekroning has joined #ruby
<shevy> hehe
Tearan has joined #ruby
<shevy> I do that sometimes myself
<shevy> and I hate it :)
<shevy> but I do it...
<dekroning> hey shevy , still horny?
<eindoofus> hi, I'm new to ruby and I'm getting an unexpected end error when I run this: http://pastebin.com/XYtz6mM1
<shevy> it's like the "necessary dirty" stuff... like you need to repair a car? well, you are going to get dirty when you try to repair things
<eindoofus> dos anyone have any ideas why?
<shevy> dekroning nah, I had some beer, now I am semi-tired
<dekroning> shevy: beer has the same effect on me
<rcassidy> eindoofus: n++ isn't a thing in ruby
<rcassidy> n += 1
<eindoofus> oh
<eindoofus> thanks rcassidy
<rcassidy> np
sertaconay has joined #ruby
caleb_io has joined #ruby
<eindoofus> does ++n exist in ruby?
<hoelzro> eindoofus: no
<hoelzro> you need to do n += 1
theRoUS has quit [Remote host closed the connection]
<eindoofus> that's going to take so getting used to
theRoUS has joined #ruby
hoofman has quit [Quit: Lost terminal]
<shevy> eindoofus you need to think in terms of objects
<rcassidy> but at least you only have one incrementer to learn and not two :D
chessteach has joined #ruby
<shevy> and messages
hukl has joined #ruby
<eindoofus> that's true
<shevy> eindoofus look at this explanation for the missing ++ -> http://stackoverflow.com/questions/3717519/no-increment-operator-in-ruby
<shevy> jump to this part there: "the reason from the author himself" where matz explained the reason
<chessteach> I am writing a parser and very concerned with execution time. What is the best way to get the index of the last element? I am going to be pulling and popping elements, so I am not certain array.length - 1 will always return the correct result
mercwithamouth has joined #ruby
<shevy> c = a++b would become c = a + (+b)
chin-tastic has quit [Ping timeout: 260 seconds]
<rcassidy> chessteach: negative indices
<rcassidy> ?
<rcassidy> a[-1] is last element
<rcassidy> >> p "i wonder if we still have the eval bot"
<rcassidy> dern
<chessteach> yes, but I need the index of the last element.
alvaro_o has joined #ruby
Ziioynx has joined #ruby
<chessteach> rcassidy: I am storing a reference to this element in another array
<whackatre> eval bot?
jgrevich has quit [Remote host closed the connection]
amacgregor_osx has quit [Remote host closed the connection]
jgrevich has joined #ruby
<eindoofus> I like that stackoverflow post. I forgot about the whole "everything is an object" thing in ruby. The lack of ++ or -- makes more sense in that context.
<Spooner> chessteach : a.length - 1 does it perfectly well, though obviously if you are changing the length, that will get out of date. Not sure what the issue is.
<Spooner> chessteach : #length is always correct when you call it. It doesn't lag behind changes that have been made to the array or anything ;)
<chessteach> Spooner: I am under the impression this will not work: array = [1,2,3,4]; array.delete_at(2); array.length - 1..... Or will that work as expected?
robotmay_ has joined #ruby
Kovensky has quit [Ping timeout: 260 seconds]
<Spooner> chessteach : Yeah, it is updated when the array changes length.
kirun has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Spooner> chessteach : Just check that code in irb if you doubt it!
<chessteach> Spooner: oh... ok cool. I just did. Thanks
philcrissman has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
philcrissman_ has joined #ruby
<Spooner> chessteach : Though as people are saying, you can just use array[-1] or array.last to get the last element.
riley526 has joined #ruby
sepp2k1 has joined #ruby
<rcassidy> or, even,
<chessteach> Spooner: I guess that cause another problem... if i start saving indexes and use delete_at, they will no longer be correct
<rcassidy> if a is your array and you know of no duplicates,
<rcassidy> a.index(a[-1]) will get you the index of the last element.
<chessteach> Spooner: I will find another way then....
chin-tastic has joined #ruby
robotmay has quit [Ping timeout: 246 seconds]
richwestcoast has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
<rcassidy> and there are easy ways to check no-duplicates, too,
<Spooner> eindoofus : Even more so, we'd use 400000.times do |n| or (0...400000).each do |n| rather than using a while. Genenerally, if you are += 1 in a loop, you aren't doing it right ;)
<rcassidy> though i don't know what data you are dealing with
<Spooner> rcassidy : Yeah, but that is just a pointlessly convoluted way to get it, so don't worry about special cases ;)
hsbt is now known as hsbt_away
<rcassidy> well, what's the non-pointlessly convoluted way, again? :p
hsbt_away is now known as hsbt
<Spooner> length - 1
<rcassidy> ha, word.
philcrissman_ has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
uuair has quit [Ping timeout: 264 seconds]
uuair has joined #ruby
shevy has quit [Ping timeout: 272 seconds]
uuair_ has joined #ruby
KarlHungus has quit [Ping timeout: 245 seconds]
frogprince_mac has joined #ruby
<eindoofus> Spooner: is that also faster or is it done that way just for syntactical reasons?
uuair has quit [Ping timeout: 248 seconds]
uuair_ is now known as uuair
<Spooner> eindoofus : It is actually slower, but it is good Ruby style.
hukl_ has joined #ruby
GoGoGarrett has joined #ruby
karakedi has quit [Ping timeout: 260 seconds]
guhcampos has left #ruby [#ruby]
Tearan has quit [Quit: Sleepy Badger....]
Zai has quit [Quit: Zai]
KarlHungus has joined #ruby
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
sent-hil has joined #ruby
yaymukund has joined #ruby
<eindoofus> Spooner: is there any way to measure the time of a loop in ruby?
<xclite> start = Time.now; loop; puts Time.now - start
hsbt has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
<Spooner> There is a 'benchmark' suite, but yeah, that suggestion is thesimple way.
robotmay_ has quit [Remote host closed the connection]
hukl has quit [Ping timeout: 272 seconds]
<eindoofus> cool, I'll give that a try
otters has quit [Ping timeout: 245 seconds]
hotovson has joined #ruby
<Spooner> eindoofus : Though your code is actually simpler done without a loop, but I assume that code is not "real" ;)
shevy has joined #ruby
rakl has quit [Quit: sleeping]
jgarvey has joined #ruby
eignerchris has joined #ruby
apok_ has joined #ruby
noxoc has joined #ruby
KarlHungus has quit [Ping timeout: 244 seconds]
<Spooner> sum = 2 + (400000 / 2) * 3
apok has quit [Read error: Operation timed out]
apok_ is now known as apok
chichou has quit [Remote host closed the connection]
hsbt has joined #ruby
<eindoofus> oh nice
jrist is now known as jrist-fak
kaawee has quit [Ping timeout: 252 seconds]
love_color_text_ has quit []
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
sent-hil has quit [Remote host closed the connection]
bemson has joined #ruby
<bemson>
arietis has joined #ruby
uuair has quit [Quit: uuair]
jgrevich_ has joined #ruby
kaawee has joined #ruby
rubious has joined #ruby
symeog has joined #ruby
jrist-fak is now known as jrist-afk
SDr has quit [Ping timeout: 246 seconds]
evotopid has joined #ruby
margle has joined #ruby
margle has quit [Client Quit]
k4mirox has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
Goles has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
xorigin has joined #ruby
sent-hil has joined #ruby
kaawee has quit [Read error: Operation timed out]
WanderingGlitch has quit [Ping timeout: 246 seconds]
apok has quit [Quit: apok]
schaerli has joined #ruby
Xeago has joined #ruby
c0rn_ has joined #ruby
davidcelis has quit [Quit: K-Lined.]
slainer68 has joined #ruby
hagbard_celine has left #ruby [#ruby]
rakl has joined #ruby
k4mirox has quit []
shadoi has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
anderse has joined #ruby
sertaconay has quit [Read error: Connection reset by peer]
yoklov has joined #ruby
stephenjudkins has joined #ruby
nitti has joined #ruby
nateberkopec has joined #ruby
areil has quit [Remote host closed the connection]
siyusong has quit [Quit: Computer has gone to sleep.]
sertaconay has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
nitti has quit [Remote host closed the connection]
carloslopes has joined #ruby
<Nowaker> guys, having a problem. bundle install is green (Using ruby-units (1.4.2) -> Your bundle is complete!), bundle show is red (Could not find ruby-units-1.4.2 in any of the sources). any ideas?
beneggett has quit [Ping timeout: 240 seconds]
h4mz1d has joined #ruby
awestroke has joined #ruby
foobar_ has joined #ruby
havenn has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
caleb_io has quit [Quit: Leaving...]
carloslopes has left #ruby [#ruby]
yeggeps has joined #ruby
carloslopes has joined #ruby
havenn has joined #ruby
headius has quit [Quit: headius]
beneggett has joined #ruby
cardoni has quit [Quit: cardoni]
carloslopes1 has joined #ruby
carloslopes has left #ruby [#ruby]
cableray has joined #ruby
<rcassidy> Nowaker: not sure if it's active, but there is a #bundler channel according to their github page
tvw has quit [Remote host closed the connection]
caleb_io has joined #ruby
Artheist has quit [Remote host closed the connection]
dakine has quit [Ping timeout: 256 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 260 seconds]
whowantstolivefo has joined #ruby
Russell^^ has joined #ruby
davidcelis has joined #ruby
dnstbr has joined #ruby
jbw has joined #ruby
siyusong has joined #ruby
Targen has joined #ruby
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
jerius has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
DigitalisAkujin has joined #ruby
kuzushi has quit [Read error: Operation timed out]
nitti has joined #ruby
<DigitalisAkujin> Trying to fix a website. Getting an error
anderse has quit [Quit: anderse]
<DigitalisAkujin> Unexpected end-of-file detected
monkegjinni has joined #ruby
ShiintoRyuu has joined #ruby
<DigitalisAkujin> it's happening right in ruby 1.9.2
kuzushi has joined #ruby
<DigitalisAkujin> can anyone tell me how i can downgrade the version the site is using?
<DigitalisAkujin> rvm use doesn't work correctly
Chryson has quit [Quit: Leaving]
<DigitalisAkujin> well it works for changing the version in the shell
<DigitalisAkujin> but that's about it
kirun has quit [Quit: Client exiting]
vonsar has joined #ruby
kaawee has joined #ruby
<evotopid> maybe you could uninstall the to new version...
casheew has quit [Read error: Connection reset by peer]
keyvan is now known as love_color_text_
casheew has joined #ruby
kirun has joined #ruby
Russell^^ has quit [Quit: Russell^^]
beneggett has quit [Quit: Computer has gone to sleep.]
<DigitalisAkujin> I think the error is happening because i did bundle install with 1.9.3 set in shell but with the website expecting 1.9.2-p290
havenn has quit [Remote host closed the connection]
<DigitalisAkujin> so i'm reinstalling 1.9.2-p290 and gonna re-run bundle install
otters has joined #ruby
havenn has joined #ruby
goraxe has quit [Ping timeout: 264 seconds]
anderse has joined #ruby
hoelzro is now known as hoelzro|away
F1skr has quit [Quit: WeeChat 0.3.9]
anderse has quit [Client Quit]
beneggett has joined #ruby
havenn has quit [Read error: No route to host]
havenn has joined #ruby
<DigitalisAkujin> >.> well that still didn't work
anachronistic has left #ruby [#ruby]
<DigitalisAkujin> lemme know if anyone knows how to fix this
mrsolo has quit [Quit: Leaving]
linoj has quit [Quit: linoj]
davidcelis has quit [Ping timeout: 240 seconds]
richwestcoast has quit [Ping timeout: 272 seconds]
linoj has joined #ruby
Rizzle has quit [Ping timeout: 256 seconds]
anachronistic has joined #ruby
linoj has quit [Client Quit]
richwestcoast has joined #ruby
linoj has joined #ruby
evotopid has quit [Quit: evotopid]
mrsolo has joined #ruby
levabalkin has left #ruby [#ruby]
<reactormonk> how do I normalize a unicode string?
Tearan has joined #ruby
linoj has quit [Client Quit]
stenno has joined #ruby
<stenno> yay ruby
emmanuelux has joined #ruby
robustus has joined #ruby
teedex has joined #ruby
slainer68 has joined #ruby
workmad3 has joined #ruby
carloslo_ has joined #ruby
<reactormonk> "d̪".chars.to_a.join(" ")
<reactormonk> "d ̪"
invisime has left #ruby [#ruby]
<reactormonk> oh, fancy, not enough unicode support...
davidcelis has joined #ruby
invisime has joined #ruby
<reactormonk>
carloslopes1 has quit [Quit: Leaving.]
<reactormonk> how do I solve that?
KevinSjoberg has joined #ruby
richwestcoast has quit [Ping timeout: 255 seconds]
rkneufeld has joined #ruby
lake has joined #ruby
yekta has quit [Quit: yekta]
carloslo_ has quit [Remote host closed the connection]
caleb_io has quit [Quit: Leaving...]
carloslopes has joined #ruby
hoelzro|away is now known as hoelzro
foobar_ has quit [Quit: Page closed]
havenn has quit [Remote host closed the connection]
_bart has quit [Quit: _bart]
linoj has joined #ruby
ckrailo|lunch is now known as ckrailo
havenn has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
nyuszika7h has left #ruby ["Rejoining"]
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
bobajett has joined #ruby
nyuszika7h has joined #ruby
sepp2k has joined #ruby
snearch has quit [Quit: Verlassend]
havenn has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
Kovensky has joined #ruby
marius has joined #ruby
ebobby has joined #ruby
coffer has quit [Remote host closed the connection]
cardoni has joined #ruby
richwestcoast has joined #ruby
richwestcoast has quit [Client Quit]
billycravens has joined #ruby
richwestcoast has joined #ruby
richwestcoast has quit [Client Quit]
cardoni has quit [Client Quit]
symeog has left #ruby [#ruby]
Servidorv has joined #ruby
ephemerian has joined #ruby
cardoni has joined #ruby
bobajett has quit [Remote host closed the connection]
tvw has joined #ruby
kamsky has joined #ruby
wallerdev has joined #ruby
Niamkik_ has quit [Quit: leaving]
apok has joined #ruby
<kamsky> hey guys, what parser generator for ruby do you recommend me?? Parslet, Treetop,.. ??
apok has quit [Remote host closed the connection]
Niamkik has joined #ruby
apok has joined #ruby
aaroncm has joined #ruby
chrishunt has quit [Quit: Leaving...]
siyusong has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chrishunt has joined #ruby
arielpts has quit [Excess Flood]
WanderingGlitch has joined #ruby
arielpts has joined #ruby
arielpts has quit [Excess Flood]
tvw has quit [Ping timeout: 260 seconds]
arielpts has joined #ruby
Kovensky has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
rcassidy has quit [Ping timeout: 265 seconds]
yoklov has quit [Quit: computer sleeping]
rcassidy has joined #ruby
hbpoison has joined #ruby
tchebb has joined #ruby
ephemerian has quit [Ping timeout: 240 seconds]
brianpWins has quit [Ping timeout: 276 seconds]
djbpython has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
caleb_io has joined #ruby
Tuxist has joined #ruby
maletor has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
richwestcoast has joined #ruby
jenrzzz has joined #ruby
Stalebread has joined #ruby
daniel_- has joined #ruby
chrishunt has quit [Quit: Leaving...]
yoklov has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
irleif has joined #ruby
jrist-afk is now known as jrist
r0bby_ has joined #ruby
arielpts has quit [Excess Flood]
rippa has quit [Ping timeout: 244 seconds]
chrishunt has joined #ruby
Morkel has quit [Read error: Operation timed out]
arielpts has joined #ruby
d2dchat has quit [Remote host closed the connection]
Morkel has joined #ruby
ephemerian has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
rakl has quit [Quit: sleeping]
und3f has quit [Read error: Operation timed out]
mando has quit [Remote host closed the connection]
Servidorv has quit [Quit: If you can't laugh at yourself, make fun of other people.]
linoj has quit [Quit: linoj]
sepp2k has joined #ruby
awarner has joined #ruby
kamsky has quit [Ping timeout: 256 seconds]
carloslo_ has joined #ruby
FDj_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
FDj has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
Niamkik has quit [Quit: leaving]
seanyo has quit [Ping timeout: 260 seconds]
Kovensky has joined #ruby
DigitalisAkujin has quit [Quit: DigitalisAkujin]
carloslopes has quit [Ping timeout: 272 seconds]
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
havenn has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
richwestcoast has quit [Ping timeout: 240 seconds]
Stalebread has quit [Ping timeout: 252 seconds]
KevinSjoberg has joined #ruby
rehat has joined #ruby
jeffreybaird has joined #ruby
<rehat> what is a good way to loop for a specific number of times without using a counter
ejholmes has joined #ruby
jeffreybaird has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
<hoelzro> 10.times do ... end
<hoelzro> ?
havenn has quit [Remote host closed the connection]
<rehat> nice thanks
ejholmes has quit [Client Quit]
WanderingGlitch has quit [Ping timeout: 256 seconds]
mrsolo has quit [Quit: Leaving]
ejholmes has joined #ruby
mrsolo has joined #ruby
mmitchell has quit [Remote host closed the connection]
nitti_ has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
answer_42 has quit [Quit: WeeChat 0.3.9]
xorigin has quit [Quit: leaving]
deadalus has quit [Quit: Leaving]
und3f has joined #ruby
Stalebread has joined #ruby
tyfighter has joined #ruby
rakl has joined #ruby
hoelzro is now known as hoelzro|away
<TTilus> reactormonk: what ruby version?
nitti has quit [Ping timeout: 248 seconds]
chrishunt has quit [Quit: Leaving...]
sepp2k has joined #ruby
adambeynon has joined #ruby
WanderingGlitch has joined #ruby
hotovson has quit [Remote host closed the connection]
havenn has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<TTilus> reactormonk: with 1.8 i get d � �, with 1.9 "invalid multibyte char" and 1.9 with utf-8 source file encoding d ̪
carloslopes has joined #ruby
atmosx has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<atmosx> hello
<TTilus> reactormonk: hmm, with .inspect i also end up with "d ̪"
Ethan is now known as undersc0re97
mengu has quit [Quit: Konversation terminated!]
Stalebread has quit [Quit: Leaving]
erichmenge has quit [Quit: Be back later]
<TTilus> reactormonk: d̪ actually does consist of two separate unicode codepoints, so i assume it should be treated as two characters
irleif has joined #ruby
d2dchat has joined #ruby
hydrozen has joined #ruby
carloslo_ has quit [Ping timeout: 245 seconds]
<TTilus> ...and as always, i could be so totally wrong :)
eignerchris has quit [Remote host closed the connection]
ryanlecompte has quit [Read error: Connection reset by peer]
xcvd`` has joined #ruby
KevinSjoberg has joined #ruby
ryanlecompte has joined #ruby
anderse has joined #ruby
Kruppe has quit [Ping timeout: 260 seconds]
r0bby_ has quit [Ping timeout: 252 seconds]
jslowe has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
caleb_io has quit [Quit: Leaving...]
artnez has joined #ruby
djbpython has joined #ruby
<TTilus> COMBINING BRIDGE BELOW
chrishunt has joined #ruby
aquaranto has quit [Remote host closed the connection]
aquaranto has joined #ruby
carloslo_ has joined #ruby
Tuxist has quit [Remote host closed the connection]
d3vic3 has quit [Quit: leaving]
JonnieCache has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
carloslopes has quit [Ping timeout: 260 seconds]
slainer68 has quit [Remote host closed the connection]
mando has joined #ruby
krawchyk has quit [Remote host closed the connection]
JonnieCache has quit [Read error: Operation timed out]
axl__ has quit [Ping timeout: 246 seconds]
Y_Ichiro_ is now known as Y_Ichiro
bbttxu has quit [Read error: Connection reset by peer]
WanderingGlitch has quit [Ping timeout: 256 seconds]
axl__ has joined #ruby
yoklov has quit [Quit: computer sleeping]
Juul has joined #ruby
bbttxu has joined #ruby
clocKwize1 has joined #ruby
bluOxigen_ has joined #ruby
chessguy has joined #ruby
haxrbyte has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
<reactormonk> TTilus, yep, it's combining
workmad3 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
clocKwize has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
anachronistic has quit [Ping timeout: 244 seconds]
sebastorama has joined #ruby
arubin has joined #ruby
anachronistic has joined #ruby
recycle has joined #ruby
nyrb has joined #ruby
<sent-hil> is there anyway i can do 1.send(:+, 2, 3) in ruby?
sepp2k has quit [Remote host closed the connection]
<reactormonk> sent-hil, sum?
<TTilus> "Q: How should characters (particularly composite characters) be counted, for the purposes of length, substrings, positions in a string, etc.?" explains the issue pretty well
<sent-hil> :+ accepts only one param, i tried passing [2,3] instead, obviously that didn't work
<reactormonk> sent-hil, nah, you have to reduce for that
<sent-hil> reactormonk: i don't know if it'll be sum or multi up front
<TTilus> 1.send(:+, 2).send(:+, 3)
bemson has quit [Quit: bemson]
caleb_io has joined #ruby
<TTilus> or [1,2,3].reduce(:+) as reactormonk already pointed out
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
artnez has quit [Quit: artnez]
jrist has quit [Ping timeout: 276 seconds]
eindoofus has quit [Quit: Leaving]
gridaphobe has joined #ruby
<reactormonk> TTilus, is there any difference between the two?
saac has quit [Ping timeout: 264 seconds]
aknagi has joined #ruby
<TTilus> reactormonk: difference in what sense?
hbpoison has quit [Ping timeout: 240 seconds]
<TTilus> they evaluate to the same value
<TTilus> former does not allocate an Array
blacktulip has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
blacktulip has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
<reactormonk> TTilus, in the sense that the same methods are called
workmad3 has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
anderse has quit [Quit: anderse]
s0ber has joined #ruby
rkneufeld has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
Chryson has joined #ruby
<TTilus> yes, both call Fixnum#+ twice
bennyzr has joined #ruby
stopbit has quit [Quit: Leaving]
bitri has joined #ruby
scx has quit [Read error: Connection reset by peer]
bluOxigen_ has quit [Ping timeout: 264 seconds]
bennyzr has quit [Client Quit]
aknagi has quit [Quit: Leaving]
artnez has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
jrist has joined #ruby
bennyzr has joined #ruby
Zai_ has joined #ruby
<theRoUS> ruby 1.8.7 is there a way to query ObjectSpace (as it were) for 'how much memory is allocated to instances of class Foo?'
WanderingGlitch has joined #ruby
axl___ has joined #ruby
bennyzr has quit [Client Quit]
jimeh2 has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
dylanjha has quit [Quit: Leaving...]
bennyzr has joined #ruby
<TTilus> theRoUS: would memprof do what you want+
havenn has joined #ruby
waxjar has left #ruby ["Textual IRC Client: www.textualapp.com"]
kpshek has quit []
<Mon_Ouie> I don't think so. Anyway, it would be "how much memory does this instance of Foo take?" — because it depends on the amount of ivars alone (well, and the presence of a singleton class I guess), and that doesn't depend on the class
waxjar has joined #ruby
<theRoUS> TTilus: i haven't been able to get memprof to work, either with base fedora ruby 1.8.7 nor with rvm ruby 1.8.7
<bennyzr> hello
haxrbyte has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
rdark has quit [Quit: leaving]
<TTilus> theRoUS: memprof tracks object allocations, thats not the same thing, not even close, but might still be usefull for finding leaks
axl__ has quit [Ping timeout: 244 seconds]
<TTilus> theRoUS: oh, whats the problem?
haxrbyte_ has quit [Remote host closed the connection]
<theRoUS> Mon_Ouie: meh. well, ObjectSpace could let me locate all the instances of each class. now if there were only a way to find out the allocation specifically assigned to an instance
<theRoUS> TTilus: with memprof? or what i'm trying to solve?
haxrbyte has joined #ruby
<TTilus> theRoUS: both :)
cableray has quit [Quit: cableray]
<Mon_Ouie> ObjectSpace does allow you to find all the instances of a class
emmanuelux has quit [Ping timeout: 246 seconds]
<theRoUS> Mon_Ouie: correct. now if only there were a way to ask the interpreter for allocations..
<Mon_Ouie> Oh, I mistunderstood what you meant
havenn has quit [Remote host closed the connection]
WanderingGlitch has quit [Ping timeout: 240 seconds]
<theRoUS> TTilus: the problem is i'm running some massive iterations that are getting OOMkilled. i'm trying to find out where the memory is going to tune it down.
LucidDreamZzZ has joined #ruby
whaley has joined #ruby
<TTilus> theRoUS: you could repeatedly ObjectSpace.each_object { |o| ... } and try to diff object_ids
<TTilus> theRoUS: but thats really something memprof was built to do
KevinSjoberg has joined #ruby
linoj has joined #ruby
<theRoUS> TTilus: when i tried memprof on bare fedora ruby, it complained about lack of symbols. when i tried it with rvm'd ruby 1.8.7, it said "ruby: Inline add_freelist tramp insertion failed! Only inserted 0 tramps."
<TTilus> theRoUS: i'd put the effort in getting memprof work the magic for you
KevinSjoberg has quit [Client Quit]
nitti_ has quit [Remote host closed the connection]
<TTilus> theRoUS: gem install went fine both times?
<theRoUS> it appeared to do so, yes
CaptainKnots has quit [Quit: bazinga!]
gyre007 has joined #ruby
caleb_io has quit [Quit: Leaving...]
sent-hil has quit [Remote host closed the connection]
<TTilus> you could prolly run your stuff with jruby and use visualvm or alike to profile it
elaptics`away is now known as elaptics
glyytchy has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby
kpshek has joined #ruby
<bennyzr> can anybody help on a modelling question?
dylanjha has joined #ruby
medik has joined #ruby
cableray has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
haxrbyte_ has joined #ruby
<waxjar> get familiar with make up techniques and apply to a good agency
griffindy has joined #ruby
lepht has quit [Remote host closed the connection]
<TTilus> bennyzr: we dont know
nitti has joined #ruby
chessguy has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
paolooo has joined #ruby
<TTilus> bennyzr: thats because you havent asked yet :)
ryanlecompte has joined #ruby
dmerrick_ has joined #ruby
<TTilus> bennyzr: just ask
haxrbyte has quit [Ping timeout: 260 seconds]
klaas_ is now known as klaas
awestroke has quit [Remote host closed the connection]
havenn has joined #ruby
carloslo_ has quit [Remote host closed the connection]
<TTilus> theRoUS: did you already see https://github.com/ice799/memprof/issues/18
<bennyzr> ok. I have 2 models currently related with a has_many :as and a belongs_to. I need to replace the belongs_to with belongs to many.
FDj_ is now known as FDj
chessguy has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<bennyzr> Would adding a HABTM to an existing has_many :as be bad modelling? Is there a better way?
<TTilus> theRoUS: theres apparently some makefile magic you can do to work around the missing symbols complaint
dmerrick has quit [Ping timeout: 260 seconds]
<theRoUS> TTilus: no, i didn't see that page
brunchpoems has joined #ruby
<TTilus> bennyzr: certainly sounds convoluted
<TTilus> bennyzr: just give us the case
somazero has joined #ruby
dmerrick_ has quit [Ping timeout: 268 seconds]
whowantstolivefo has quit [Quit: its time to get bed]
bapa has quit [Quit: No Ping reply in 180 seconds.]
mando has quit [Remote host closed the connection]
<bennyzr> a merchant has users as an organization. users also are related to the merchant with different roles. e.g. salesperson and/or manager.
riley526 has quit [Remote host closed the connection]
<TTilus> bennyzr: also #RubyOnRails might be better suited if you are in context of activerecord
<bennyzr> ok. let me try that channel then.
JohnBat26 has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
Kovensky has quit [Ping timeout: 240 seconds]
_bart has joined #ruby
goraxe has joined #ruby
bapa has joined #ruby
dpatel has quit [Quit: dpatel]
<Eiam> I'm so happy, I interviewed an intern and asked him fizzbuzz
<Eiam> and he nailed it
justinmcp has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
emmanuelux has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
sailias has quit [Quit: Leaving.]
vonsar has quit [Quit: This computer has gone to sleep]
chrismcg is now known as zz_chrismcg
<lectrick> Is there any way to pass an implicit block by somehow yielding it to another method without encapsulating it in a &block variable?
Appineer has quit [Remote host closed the connection]
KarlHungus has quit [Ping timeout: 260 seconds]
<TTilus> lectrick: only with super
<TTilus> lectrick: afaik
adaro has joined #ruby
anderse has joined #ruby
<lectrick> like instead of doing def method(&block); another_method(&block); end I want to do something like def method; another_method(&yield); end
<Sou|cutter> lectrick: why not use &block ?
<lectrick> because &block is expensive
<adaro> i have a huber in ruby my number = 10 and i want to append this number to a byte array as 0x0A how do i do that ?
<TTilus> lectrick: would using explicit lambda be less expensive?
<lectrick> there's a lot of ruby optimization around implicit block handling and as soon as you grab it with a &blockvariable you create a whole bunch of stack and context machinery that you may not need which costs CPU
chriskk has joined #ruby
beneggett has quit [Read error: Operation timed out]
amacgregor_osx has joined #ruby
riley526 has joined #ruby
<Sou|cutter> lectrick: are you sure this is an optimization that matters in your case?
<TTilus> lectrick: im afraid your only hope is the case where another_method is super
<adaro> using << seams to work but then i am actually mutating whatever is in front of the << it seems
<lectrick> TTilus: hmmm
beneggett has joined #ruby
<adaro> if i use + then i get can't convert Fixnum into String
ebragaparah has joined #ruby
<lectrick> TTilus: And I don't suppose I could insert another class in the class hierarchy between the class I'm monkeypatching and its parent class which contains the original method and acts as super?
<lectrick> Maybe with a little module cleverness?
g-ram has joined #ruby
Scriptwriter has joined #ruby
bemson has joined #ruby
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mib_mib has joined #ruby
cardoni has quit [Quit: cardoni]
ebragaparah has quit [Read error: Connection reset by peer]
ebragapa_ has joined #ruby
billycravens has quit [Quit: Leaving...]
mib_mib has quit [Client Quit]
mib_mib has joined #ruby
<Scriptwriter> Hey all, I'm trying to implement an equivalent to "tail -f" in ruby on Windows and so far I'm having no luck. Any ideas? (I've tried both File::Tail and FileWatch::Tail and neither prints the content added to the file.)
clocKwize2 has joined #ruby
<TTilus> lectrick: you can, but thats prolly gonna look pretty convoluted, so youd better have a good explanation when somebody comes asking later on :)
ebragapa_ has quit [Read error: Connection reset by peer]
<lectrick> lol ok
ebragaparah has joined #ruby
<mib_mib> has anyone used 'dalli' memcached gem? I'm having trouble because it seems to recursively encode my stuff as JSON when it puts it in the cache, but it doesn't seem to recursively decode the json
<TTilus> lectrick: monkeypatching alone is bad enough ;)
ebragaparah has quit [Read error: Connection reset by peer]
<TTilus> lectrick: http://pastie.org/5100268
ebragaparah has joined #ruby
Takehiro has quit [Remote host closed the connection]
<Scriptwriter> I'd just parse the output of "tail -f" if (1) I knew how in Ruby (I'm still learning) and (2) if Windows had the tail command, which it doesn't.
vonsar has joined #ruby
Kovensky has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
under_my_shoes has joined #ruby
under_my_shoes has quit [Max SendQ exceeded]
clocKwize1 has quit [Ping timeout: 265 seconds]
jcaudle has quit [Quit: jcaudle]
chessguy has quit [Remote host closed the connection]
erichmenge has joined #ruby
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
blacktulip has quit [Remote host closed the connection]
slainer68 has joined #ruby
<TTilus> Scriptwriter: how about gc thefile | select -last 10
vonsar has quit [Client Quit]
dekroning has quit [Ping timeout: 265 seconds]
<TTilus> Scriptwriter: dunno about the -f
<TTilus> Scriptwriter: maybe http://pscx.codeplex.com/ helps
ewokchewy has joined #ruby
Takehiro_ has joined #ruby
ebragaparah has quit [Ping timeout: 246 seconds]
<Spooner> adaro : << generally means append, so yes, it mutates. += doesn't mutate, but + doesn't automatically turn things into strings. You probably want: new_str = original_str + extra.to_s
kzar has joined #ruby
<Scriptwriter> TTilus, the "-f" says to keep printing lines as they're added to the file, so the select -last 10 would work for regular tail but not for tail -f
<Spooner> adaro Or new_str = "#{original_str}#{extra}"
<adaro> Spooner: no because i want it to be a byte array
<Scriptwriter> Basically I'm trying to parse a log file as it's being written to
<adaro> for some reason ruby thinks it's a string
monkegjinni has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
<adaro> i basically want to do SecureRandom.random_bytes(8) << mynumber_as_a_byte
<Spooner> "if i use + then i get can't convert Fixnum into String" tended to convince me that you were wortking with strings intentionally.
<adaro> to get a result that does not mutate the bytes i get from secure random
<adaro> and creates a new byte array
<Scriptwriter> I can take a look at pscx to see if someone has written a fail -f workalike, but I want to parse the output in Ruby. (Part of this is an excuse to learn how to do actual things in Ruby other than print out lines about chunky bacon and stuff :-) )
Neomex has joined #ruby
Neomex has quit [Client Quit]
artnez has quit [Quit: artnez]
irleif has joined #ruby
<Spooner> Yeah, Ruby strings are not synonymous with character arrays.
<kzar> I know how to run ruby code in a child process but is there a way to run it so that changes to modules in the child process effect the modules in the parent?
<adaro> Spooner: so how do i get what i want :p i am kind of lost without a typesystem
<theRoUS> TTilus: i'll try that, but memprof isn't complaining about symbols; it's blowing up differently
anandhegde has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
nitti has quit [Remote host closed the connection]
<Spooner> adaro : SecureRandom.random_bytes gives you a string, so you do want to append to it as a string, however I think what you want is SecureRandom.random_bytes + n.chr (where n is an integer)
rmc3_ is now known as rmc3
dnstbr has quit [Ping timeout: 264 seconds]
axl___ has quit [Remote host closed the connection]
<adaro> Spooner: so a method called random_*BYTES* gives me a string? :)
anandhegde has quit [Client Quit]
neku has joined #ruby
hbpoison has joined #ruby
axl__ has joined #ruby
<Spooner> adaro: 52.chr #=> "4"
linoj has quit [Quit: linoj]
stkowski has joined #ruby
griffindy has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
giakar has joined #ruby
[Neurotic] has joined #ruby
stkowski has quit [Client Quit]
<adaro> Spooner: .chr indeed seems to work
<Spooner> adaro : It is a bit more complex than that. A String, ultimately, is just a block of data, but the way it is manipulated in Ruby is more complex than just treating it like an array of bytes. For example, in a UTF16 string, each 2 bytes represent a single character.
stkowski has joined #ruby
glyytchy has quit [Quit: glyytchy]
giakar has quit []
cardoni has joined #ruby
<adaro> Spooner: yeah so what encoding does it use ?
<adaro> wasn't ruby notorious for not supporting unicode
<theRoUS> TTilus: and this is on linux, not osx
<Spooner> adaro Whichever encoding you want it to. That was the old version of Ruby.
<theRoUS> adaro: yes
nanderoo has quit [Quit: Leaving.]
nitti has joined #ruby
<adaro> Spooner: ok say i call Base64.encode64 on this byte array which is really a string
<adaro> then what encoding does encode64 apply?
<adaro> e.g. do i get 1 or two bytes for an e with an apostroph
hbpoison has quit [Ping timeout: 272 seconds]
<Scriptwriter> Ah well, off to go see if I can get my project going. Thanks for the respohnse TTilus.
Scriptwriter has quit [Quit: Ex-Chat]
<Spooner> adaro: Base64.encode64("hello").encoding #=> #<Encoding:US-ASCII>
<adaro> Spooner: i am sure the output of base64 is us ascii
<adaro> but what goes in there surely is not
<Spooner> Base64.encode64("hello").bytes.to_a #=> [97,71,86,115,98,71,56, 61,10]
jamesaxl has quit [Ping timeout: 255 seconds]
<Spooner> You can see what chars it outputs just by running it in irb, of course.
<adaro> you don't need to do bytes.to_a for a string that already displays the bytes as hex encoded values right
jamesaxl has joined #ruby
<Spooner> Well, in this case, the #chars and #bytes will be the same since US ASCII is an 8-bit encoding.
hukl_ has quit [Remote host closed the connection]
<adaro> i know
hukl has joined #ruby
<adaro> but what about e apostrophe which is not in the first 128 bytes of the latin-1 codepage
nitti_ has joined #ruby
v0n has quit [Quit: Leaving]
axl__ has quit [Quit: axl__]
<adaro> ergo it would take up 2 bytes in utf-8
anderse has quit [Quit: anderse]
<Spooner> Then it would give two values in #bytes, but one in #chars.
Morkel has quit [Quit: Morkel]
chin-tastic has quit [Ping timeout: 244 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
<adaro> Base64.encode64("é").bytes.to_a => [119, 54, 107, 61, 10]
sent-hil has joined #ruby
hukl has quit [Remote host closed the connection]
nitti__ has joined #ruby
nitti has quit [Ping timeout: 255 seconds]
hukl has joined #ruby
<Spooner> Yeah.
|Monie| has joined #ruby
Kovensky has quit [Ping timeout: 246 seconds]
nitti has joined #ruby
\13k has quit [Quit: Leaving]
chessguy has joined #ruby
nitti___ has joined #ruby
nitti___ has quit [Client Quit]
axl__ has joined #ruby
Axsuul has joined #ruby
nitti_ has quit [Ping timeout: 252 seconds]
yoklov has joined #ruby
rossimatteo has joined #ruby
JetAway has joined #ruby
cdzombak has quit []
kzar has quit [Read error: Connection reset by peer]
<Spooner> Though that is probably more the base64 spreading the characters out, rather than the characters being larger in the original string.
Jamone has quit [Ping timeout: 260 seconds]
noxoc has quit [Ping timeout: 272 seconds]
nitti__ has quit [Ping timeout: 246 seconds]
CaptainJet has quit [Disconnected by services]
JetAway is now known as CaptainJet
chrxn has joined #ruby
rossimatteo has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
bbttxu has quit [Quit: bbttxu]
KarlHungus has quit [Ping timeout: 264 seconds]
geekbri has quit [Remote host closed the connection]
chussenot has joined #ruby
vonsar has joined #ruby
shadoi has quit [Quit: Leaving.]
chin-tastic has joined #ruby
shadoi has joined #ruby
sailias has joined #ruby
WanderingGlitch has joined #ruby
<rubious> How can I attempt to see if an object is going to respond to the spaceship operator? a.try(<=>(b))?
<Spooner> rubious a.respond_to? :"<=>"
GoGoGarrett has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
<Spooner> Oh, you don't need the quotes, but anyway.
asteve has quit []
<rubious> Why does the spaceship need to be in quoets?
<rubious> And nevermind.
<rubious> lol
<rubious> Thanks Spooner
<Spooner> I just forget which things need quotes, so I add them if I'm not sure and can't be bothered testing in irb ;)
bemson has quit [Quit: bemson]
chin-tastic has quit [Ping timeout: 245 seconds]
<jbw> Testing!
aaroncm has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
nemesit has joined #ruby
philcrissman has quit [Remote host closed the connection]
hukl_ has joined #ruby
hukl has quit [Read error: Connection reset by peer]
hotovson has joined #ruby
chichou has joined #ruby
Zai_ has quit [Quit: Zai_]
genshu has joined #ruby
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
hotovson has quit [Remote host closed the connection]
niklasb has quit [Read error: Connection reset by peer]
dmilith has joined #ruby
heftig has quit [Quit: Lost terminal]
<dmilith> any sane ruby developer here?
<dmilith> I don't mean ruby user, but developer.
jimeh2 has joined #ruby
heftig has joined #ruby
niklasb has joined #ruby
fantazo has quit [Ping timeout: 255 seconds]
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
<dmilith> or at least somebody who knows ruby core mechanism.. I'm trying to compile ruby with custom prefix, and all is fine until I'm trying to use "gem".. which leads to psych.so: Undefined symbol "yaml_get_version"
<dmilith> but ofcourse nm shows that symbol in libyaml library
<dmilith> and it's in LD_LIBRARY_PATH
R0ute1 has joined #ruby
<dmilith> its' ruby 1.9.3 latest p286, on amd64 freebsd 9
carlyle has quit [Remote host closed the connection]
bemson has joined #ruby
<dmilith> nm ~/Apps/Ruby/lib/libyaml-0.so.2 | grep yaml_get_version
<dmilith> 0000000000001a1d T yaml_get_version
<dmilith> so what the fuck is wrong with it?
IrishGringo has quit [Read error: Operation timed out]
kirun has quit [Quit: Client exiting]
Chryson has quit [Ping timeout: 276 seconds]
chin-tastic has joined #ruby
sailias has quit [Quit: Leaving.]
<shadoi> dmilith: there are two separate YAML parsers
<dmilith> of fucking course.. whaaat?
<Spooner> Well, since it is apparently inconceivable that any mere Ruby user could answer you, you might as well get yourself to #rubylang instead.
<dmilith> yh
<shadoi> dmilith: psych depends on libyaml but the other one doesn't
<dmilith> shadoi: what do you mean?
<dmilith> but it's available
R0ute1 has quit [Remote host closed the connection]
<dmilith> ld sees it
<dmilith> maybe gem cannot use LD_LIBRARY_PATH properly?
<dmilith> I don't really understand it, all major languages just works
<dmilith> but ruby is always a problem somewhere ;/
<shadoi> dmilith: what dist/OS are you building this on?
<dmilith> already said. freebsd 9.0 amd64
<dmilith> and freebsd 9.1
<dmilith> I didn't have this problem earlier..
<dmilith> and I'm using yaml 1.4
<dmilith> latest available
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<dmilith> shadoi: but ldd shows no dependency to libyaml ;/
dmerrick has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
vonsar has quit [Quit: This computer has gone to sleep]
<dmilith> so it's rather obvious that this is unavailable symbol..
alanp_ has joined #ruby
<dmilith> but how to fix it?
<dmilith> I need to hack ruby source to do it properly?
bbttxu has joined #ruby
mahmoudimus has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<dmilith> and it's looks like it's just one yaml library used
<dmilith> irb
<dmilith> irb(main):001:0> require 'yaml'
<dmilith> Users/500/Apps/Ruby/lib/ruby/1.9.1/x86_64-freebsd9.0/psych.so: Undefined symbol "yaml_get_version"zsh: exit 1
<dmilith> same thing
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
perun_ has quit [Read error: Operation timed out]
<dmilith> Now I understand why it's called "kid's lang"
bbttxu_ has joined #ruby
|Monie| has quit [Ping timeout: 244 seconds]
<dmilith> and with --enable-shared it even canot link own modules..
aantix_ has joined #ruby
perun_ has joined #ruby
<shadoi> dmilith: a number of integrated features are built as separate modules
bbttxu has quit [Read error: Connection reset by peer]
bbttxu_ is now known as bbttxu
<shadoi> "internal gems"
<dmilith> yea, I know ruby too well
jgrevich_ has joined #ruby
<dmilith> but when you'll build static ruby, the irb thing will stop working
<shadoi> good luck
<dmilith> and major gems too
aantix_ has quit [Remote host closed the connection]
aantix has quit [Read error: Connection reset by peer]
<dmilith> and when you'll try shared libraries.. it will fail too
<dmilith> so pure awesomeness
aantix has joined #ruby
alanp has quit [Ping timeout: 272 seconds]
beit has quit [Quit: beit]
c0rn_ has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
jgarvey has quit [Quit: Leaving]
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
<dmilith> it's working well with old fashioned /usr/local
<dmilith> but I don't want to make my system garbage like some ordinary linux
amacgregor_osx has quit [Remote host closed the connection]
<dmilith> when you make dinner, you don't mix every part of meal before you starting to eat it right?
WanderingGlitch has quit [Ping timeout: 252 seconds]
<dmilith> so each app should have own dependencies.. which works with everything except ruby ;]
<dmilith> fun
amacgregor_osx has joined #ruby
<shadoi> dmilith: there's a couple projects going to create a fully static build of ruby
<shadoi> which is probably what you really want.
rcassidy has quit [Quit: Lost terminal]
<dmilith> I tried that, but like I said, it breaks irb, and more stuff
<dmilith> majority of gems just wont work with static build
<dmilith> neither with dynamic/shared ;]]
<dmilith> so I don't know even how it's built..
WanderingGlitch has joined #ruby
<dmilith> some of libraries are static.. some dynamic.. and some dynamic without linked required libraries..
<dmilith> that's why I'm asking here..
havenn has quit [Remote host closed the connection]
<dmilith> maybe You know
dmerrick has quit [Quit: dmerrick]
cardoni has quit [Quit: cardoni]
<shadoi> That's what those projects exist for, they're finding/patching all the things that can't be static.
<dmilith> but from what I see, MRI internal design is a dissaster.. Am I only one fighting with such things? rly?
nemesit has quit [Quit: Leaving...]
<dmilith> shadoi: try to install nokagiri statically
<shadoi> dmilith: you're not the first to fight, but nobody has shared their success publicly.
havenn has joined #ruby
<dmilith> I see
dimka has quit [Ping timeout: 264 seconds]
<KarlHungus> dmilith: which ruby ver
<dmilith> I'm not intended to flame rly, I'm just frustrated
<dmilith> latest 1.9.3-p286
Takehiro has joined #ruby
Takehiro_ has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<KarlHungus> looking
justinmcp has quit [Remote host closed the connection]
Takehiro has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
_bart_ has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
_bart has quit [Ping timeout: 260 seconds]
_bart_ is now known as _bart
<dmilith> from compilation log everything seems to be just fine
Takehiro has joined #ruby
justinmcp has joined #ruby
<dmilith> ruby has access to these libraries: zlib bzip2 libxml2 libiconv make libtool libgpg-error libgcrypt libxslt yaml libiconv libffi
hukl_ has quit [Remote host closed the connection]
<dmilith> it's almost everything required to launch any web app
Virunga has quit [Remote host closed the connection]
<dmilith> with some crazy gems like nokagiri
theRoUS has quit [Read error: Operation timed out]
<shadoi> dmilith: yeah it's that the build of psych itself didn't link to libyaml in the correct place
<dmilith> (that's why I'm using xslt with gcrypt and gpg-error)
<dmilith> so.. it's a bug right?
<shadoi> Or it requires a specific include/linker path to be used.
<dmilith> could you please give me a hint where to patch Makefile/s to append -lyaml to it?
jimmy1980 has quit [Ping timeout: 255 seconds]
<shadoi> I don't know off-hand, I've never tried to install it anywhere non-standard, but I'd start by digging into the configure script
<dmilith> but psych should be linked with yaml.. I have a good start
<dmilith> let me hack the thing
Kovensky has joined #ruby
<dmilith> other way I'd need to back to 194 build which worked well last time
hbpoison has joined #ruby
<shadoi> good hints there.
<dmilith> oh. thank You!
HB555 has joined #ruby
HB555 has left #ruby [#ruby]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<dmilith> bad luck
<KarlHungus> dmilith: building now
<dmilith> first site don't work, second isn't useful
<KarlHungus> will test in a sec. what steps do you have that i can reproduce your problems with?
<dmilith> use custom prefix
<KarlHungus> naturally.
<dmilith> --prefix=/soome/path
<dmilith> and don't have libyaml in any default accessed directory
<KarlHungus> ok
<dmilith> I think it's looking for this library in default paths like /usr/lib and /usr/local/lib
cibs has joined #ruby
<dmilith> hence it's not linked into psych.so
<KarlHungus> jenkins is building that version now. once its build and i have it in a test users PATH, how should i confirm its broken?
kpshek has quit []
<shadoi> dmilith: export CPPFLAGS=-L/my/yaml/include and export LDFLAGS=-L/my/yaml/lib before the make of Ruby
<dmilith> try gem install bundler
<KarlHungus> dmilith: ok
<dmilith> or irb and try require 'yaml'
<KarlHungus> bundler and rake get installed into the package by default, so jenkins should error
hbpoison has quit [Ping timeout: 248 seconds]
whaley has quit [Remote host closed the connection]
<dmilith> shadoi: I'm exporting prefix
<shadoi> seems psych isn't using it
<dmilith> I'm doing build of every requirement into ruby prefix
<dmilith> so everything is placed in /Users/500/Apps/Ruby/lib
<dmilith> and /include
<dmilith> and so on
nwertman has quit [Quit: leaving]
<dmilith> common libraries comes only from fbsd9.x base system.
<dmilith> it worked with p194
nwertman has joined #ruby
<dmilith> it works with everything else. I just need to set LD_LIBRARY_PATH to /Users/500/Apps/Ruby/lib and all libraries are seen to executables. No problems at all
<shadoi> try using —with-opt-dir also
neku is now known as neku|away
<dmilith> here is a problem with ruby build. I have no problem
<dmilith> ruby is built properly, yaml module is built properly
<dmilith> library is built properly and properly used
<KarlHungus> dmilith: still building, but here are my omnibus patches
<dmilith> but frankly..
<dmilith> ruby binary isn't linked with libyaml
dimka has joined #ruby
beneggett has quit [Read error: Operation timed out]
Monie has quit [Read error: Connection reset by peer]
eph3meral has joined #ruby
<KarlHungus> dmilith: that setup should build ruby and its deps in an embedded manner. i use it for my chef builds.
<dmilith> but it's old build.
<dmilith> 1.9.2 vs 1.9.3
<KarlHungus> so update it. the flags are either still correct, or close
hydrozen has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<dmilith> it looks like brew script ;]
<dmilith> interesting. Why did You enable pthreads?
billiam has quit [Quit: Leaving]
<KarlHungus> there is your ruby built on freebsd without embedding deps and using system deps
<dmilith> please show me ldd `which ruby` ?
yoklov has quit [Quit: computer sleeping]
<dmilith> ls /usr/local/lib/libyaml* ?
djbpython has quit [Ping timeout: 264 seconds]
<dmilith> or /usr/lib/*
sent-hil has quit [Remote host closed the connection]
<dmilith> ?
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
<KarlHungus> in comment
ben_alman has quit [Excess Flood]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
chin-tastic has quit [Ping timeout: 255 seconds]
<dmilith> allright, ibuild started from scratch. We'll see
<dmilith> KarlHungus: yea, you have those libyaml in common path
Monie has joined #ruby
<dmilith> interesting that You have libexecinfo library there ;]
<dmilith> and no libyaml either
<dmilith> funny
verto is now known as verto|off
<dmilith> so I think that ruby just dynamically links to these global libraries
<dmilith> from ext
adaro has quit [Quit: adaro]
<dmilith> dload maybe
<dmilith> and that might explain why it's ignoring LD_LIBRARY_PATH
JonnieCache has joined #ruby
<shadoi> dmilith: did you try --with-opt-dir?
<shadoi> set the same as prefix
xcvd`` has quit [Quit: Leaving]
<KarlHungus> dmilith: you're welcome to try my build script
bradhe has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
gridapho` has joined #ruby
<KarlHungus> its mostly just leveraging sstephenson ruby-build tool
Xeago has quit [Remote host closed the connection]
<KarlHungus> if you want a fully embedded build, use my omnibus fork. i'm certain it will work with minor tweaking. i just don't build ruby for my developers that way, so i have no reason to go make it work. ;) that jenkins script is for self-service ruby builds during deployment
gridaphobe has quit [Ping timeout: 244 seconds]
gridapho` has quit [Client Quit]
RailWolf has joined #ruby
u89 has joined #ruby
stephenjudkins has joined #ruby
cardoni has joined #ruby
gridaphobe has joined #ruby
rkneufeld has joined #ruby
kramutils has left #ruby [#ruby]
billycravens has joined #ruby
<dmilith> shadoi: yea, it's first time I'm trying that --opt-dir
<dmilith> but same result
<shadoi> --with-opt-dir not —opt-dir right?
<dmilith> --with-opt-dir=
chendo_ has quit [Ping timeout: 245 seconds]
<dmilith> set to same as --prefix
<dmilith> as in*
bemson has quit [Quit: bemson]
<shadoi> ah well, I guess you'll have to set specific -I and -L opts then
<shadoi> like in the omnibus build he linked
ben_alman has joined #ruby
<dmilith> allright.. I try this one now
<dmilith> but anyway.. this --with-opt-dir might also help later with my custom path to libraries for gem
akem has quit [Ping timeout: 252 seconds]
<dmilith> so it's probably very handy
wallerdev has quit [Quit: wallerdev]
chendo_ has joined #ruby
rabidpraxis has joined #ruby
akem has joined #ruby
nesoi has joined #ruby
<nesoi> hello
und3f has quit [Quit: Leaving.]
bitri has quit [Quit: Computer has gone to sleep.]
<nesoi> what's the proper syntax for getting the current time minus some days?
<dmilith> with active support you can use Date - 1.day f.e.
<nesoi> is it time.now - (theNumberOfSeconds) or what?
<nesoi> I want to compare the resulting value to a time.utc
u89 has quit [Remote host closed the connection]
<nesoi> for a database query
uris has quit [Quit: Leaving]
invisime has quit [Quit: Leaving.]
<shadoi> (Time.now - 18400).utc
alvaro_o_ has joined #ruby
<nesoi> where("dateTime < ?", myTime")
rkneufeld has quit [Quit: Computer has gone to sleep.]
anachronistic has quit [Quit: anachronistic]
chussenot has quit [Quit: chussenot]
<nesoi> thanks shadoi (and dmilith)
joshman_ has quit [Ping timeout: 240 seconds]
alvaro_o has quit [Ping timeout: 240 seconds]
headius has joined #ruby
teedex has quit [Remote host closed the connection]
x82_nicole has quit [Ping timeout: 246 seconds]
jrist is now known as jrist-afk
ffranz has quit [Quit: Leaving]
artnez has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
c0rn_ has joined #ruby
elico has quit [Quit: elico]
jarjar_prime has joined #ruby
<eph3meral> is anyone else getting this: "Error Bundler::HTTPError during request to dependency API" during bundle install?
c0rn_ has quit [Client Quit]
h4mz1d has quit [Ping timeout: 261 seconds]
c0rn_ has joined #ruby
hsbt is now known as hsbt_away
<dmilith> shadoi: KarlHungus: same thing.
IrishGringo has joined #ruby
carlyle has joined #ruby
<shadoi> lame
<Poapfel> eph3meral: well rubygems.org had some issues with their dependency API in the past days
beneggett has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
<dmilith> I'll still try more combinations
x0F_ is now known as x0F
timonv has joined #ruby
h4mz1d has joined #ruby
stenno has quit [Ping timeout: 252 seconds]
fir_ed has joined #ruby
stenno has joined #ruby
stenno has quit [Changing host]
stenno has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
bier has quit [Ping timeout: 260 seconds]
bier has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<eph3meral> Poapfel: k
riley526 has left #ruby [#ruby]
glyytchy has joined #ruby
axl__ has quit [Quit: axl__]
My_Hearing has quit [Ping timeout: 260 seconds]
_Mon_Ouie_ has joined #ruby
medik has quit [Quit: Leaving]
<dmilith> how to enable history in irb? :o
<dmilith> I tried with readline deps.. and curses deps
<dmilith> no reasult
<dmilith> result*
<dmilith> strange
slainer6_ has joined #ruby
<Spooner> dmilith : Just use pry (gem) instead. Irb is pretty basic.
locriani_ has joined #ruby
<dmilith> install gem and no conf? just works?
neku|away has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics`away
rehat has quit [Remote host closed the connection]
atmosx has quit [Quit: quiting...]
justinmcp has quit [Remote host closed the connection]
<Spooner> Yeah, you just install the gem and then start it with "pry" command. There are a lot of plugins for it for special magic though, but you can build up to that.
g-ram has quit [Quit: Computer has gone to sleep.]
nesoi has quit [Ping timeout: 264 seconds]
locriani has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
bier has quit [Ping timeout: 246 seconds]
Rhynn has quit [Ping timeout: 246 seconds]
<Spooner> Though to tell the truth, I have always had a history with irb too. Just suggesting that pry might be better at enforcing one *shrugs*
<dmilith> irb(main):001:0> require 'yaml'
<dmilith> => true
<dmilith> so the verdict is…
amacgregor_osx has joined #ruby
<dmilith> ruby 1.9.3-p286 is messed up
<dmilith> I need to give it explicit -lLIB
<dmilith> for almost each library ;o
<dmilith> now zlib.so: Undefined symbol "inflateReset" - /Users/500/Apps/Ruby/lib/ruby/1.9.1/x86_64-freebsd9.0/zlib.so
_bart has quit [Ping timeout: 256 seconds]
<Spooner> You are getting unusual problems by install it in an unusual way. Surprised?
<dmilith> yea.
<dmilith> and no
<dmilith> it's ruby..
<dmilith> I didn't resigned from ruby totally without a reasons
<dmilith> Spooner: you may call it unusual.. I'll call it "right way".
nari_ has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
<Spooner> As opposed to the way everyone else does it? Does sound a bit contrary to me.
jjang has joined #ruby
<dmilith> it worked in 1.9.3-p194
<dmilith> Spooner: "everyone" uses windows.. that's not reason to use it?
timonv has quit [Remote host closed the connection]
<Spooner> Ah, sorry, I didn't realise you were talking only about the newest patch version.
sailias has joined #ruby
Synthead has quit [Quit: p33 ba115]
<dmilith> I'm on my way of investigating things.. nothing i'm sure about, but will try to check all possibilities
yoklov has joined #ruby
<dmilith> the linker problems started with latest build
Synthead has joined #ruby
mikepack has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
apok_ has joined #ruby
carlyle has quit [Remote host closed the connection]
<dmilith> I'm just curious about pthread thing. In 1.8.x the --enable-pthread caused ruby to be slow bitch in comparison with --disable-pthread. How about 1.9?
bemson has joined #ruby
g-ram has joined #ruby
<dmilith> I didn't watch (r)evolution of ruby code, maybe some of You knows anything related to this problem?
carlyle has joined #ruby
gabrielrotbart has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<Spooner> Ruby 1.9 doesn't use green threads any more, so not sure it is relevant (CRuby does use a GIL, so you can't run concurrently anyway).
bluenemo has quit [Remote host closed the connection]
medik has joined #ruby
<dmilith> yarv still uses GIL?
apok has quit [Ping timeout: 240 seconds]
apok_ is now known as apok
<Spooner> It does, yes.
<dmilith> so it's thread unsafe still right?
<dmilith> I see
Rhynn has joined #ruby
<Spooner> That would be the reason, I would guess.
dmerrick has joined #ruby
<dmilith> pry
<dmilith> You're running a version of ruby with no Readline support
<dmilith> AFAIK the readline functionality was replaced by curses?
<dmilith> Spooner: that might explain everything.. so pthreads should be ok now. Thanks
<dmilith> almost missing that ;]]
<Spooner> I can't say for sure though. I might be misunderstanding what --pthreads did, but I do know that we now uses system threads with a GIL.
berserkr has quit [Quit: Leaving.]
h4mz1d has quit [Ping timeout: 244 seconds]
beneggett has quit [Remote host closed the connection]
bricker has joined #ruby
<dmilith> so pry isn't working at all
<dmilith> cause in 1.9 the --enable-readline isn't even present
<Spooner> For the same reason irb doesn't. No readline in your screwed build ;)
<dmilith> ;]
mikepack has joined #ruby
<dmilith> my perfect build is perfect cause it's perfect ;]
nitti has joined #ruby
<dmilith> but I need to test it in and out though
<dmilith> APP_LINKER_ARGS="-pthread -lyaml -lz -lssl -lcrypt" solves most of problems here
<dmilith> if somebody is interested in perfect ruby building on freebsd I suggest using sofin https://github.com/VerKnowSys/sofin
<dmilith> [;
justinmcp has joined #ruby
beneggett has joined #ruby
nari_ has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
<dmilith> it looks fine
glyytchy has quit [Quit: glyytchy]
<dmilith> thanks for help guys
<dmilith> I appreciated your wasted time ;]
headius has quit [Quit: headius]
<dmilith> shadoi: especially thank you for this --opt-dir idea. It solves problem of looking for non default location of libraries (solves f.e. nokogiri - which was unable to auto find required libraries before)
jimeh2 has quit [Ping timeout: 260 seconds]
<dmilith> now it's just flawless install
dylanjha has quit [Quit: Leaving...]
radic_ has quit [Read error: Operation timed out]
<shadoi> cool
djbpython has joined #ruby
lkba has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
ejholmes has quit [Quit: ejholmes]
ejholmes has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
g-ram has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
Vert has joined #ruby
cakehero has joined #ruby
adelcampo has joined #ruby
Jellyg00se has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
nadirvardar has joined #ruby
nitti has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 256 seconds]
h4mz1d has joined #ruby
radic has joined #ruby
ephemerian has quit [Quit: Leaving.]
reinaldob has joined #ruby
jarjar_prime has quit [Ping timeout: 264 seconds]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_bart has joined #ruby
reinaldob has quit [Remote host closed the connection]
rkneufeld has joined #ruby
SolarisBoy has joined #ruby
recycle has quit [Read error: Connection reset by peer]
recycle has joined #ruby