apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Macaveli has joined #ruby
plashchynski has quit [Quit: plashchynski]
timonv has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
JBreit has joined #ruby
mrmargolis has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
phutchins has joined #ruby
juanpablo_ has joined #ruby
mloveless has joined #ruby
dain` has joined #ruby
dain` has quit [Remote host closed the connection]
jhebden has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
mloveless has quit [Remote host closed the connection]
mloveless has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<Curs0r> This is kind of a shot in the dark, but does anyone here happen to have experience with the pdf-wrapper gem? Specifically; overriding the margins?
Lewix_ has joined #ruby
Lewix has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
multi_io_ has joined #ruby
TheNet has joined #ruby
icharlie has joined #ruby
codecop has quit [Remote host closed the connection]
sinkensabe has joined #ruby
arescorpio has joined #ruby
multi_io has quit [Ping timeout: 245 seconds]
cajone has joined #ruby
mrmargolis has joined #ruby
thesheff17_ is now known as thesheff17
wallerdev has joined #ruby
SpikeMaster has joined #ruby
hiyosi has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
CpuID2 has joined #ruby
marr has quit []
tunaCanBruh has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Motoservo has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
IrishGringo has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
ferr has joined #ruby
enterprisedc has quit [Quit: enterprisedc]
maletor has joined #ruby
riotjones has joined #ruby
mloveless has quit [Read error: Connection reset by peer]
enterprisedc has joined #ruby
WishBoy has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 245 seconds]
WishBoy has quit [Remote host closed the connection]
IrishGringo has joined #ruby
WishBoy has joined #ruby
WishBoy has quit [Excess Flood]
WishBoy has joined #ruby
WishBoy has quit [Excess Flood]
jlast has joined #ruby
WishBoy has joined #ruby
WishBoy has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 244 seconds]
p3ery_ has quit [Quit: (null)]
riotjones has quit [Ping timeout: 256 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jlast has quit [Ping timeout: 245 seconds]
redres has quit [Quit: Linkinus - http://linkinus.com]
davedev24_ has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
davedev24_ has joined #ruby
paradisaeidae has quit [Ping timeout: 245 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has joined #ruby
mitchellhenke has joined #ruby
ponga has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
IrishGringo has quit [Read error: Connection reset by peer]
nahtnam has joined #ruby
crdpink2 has quit [Quit: q term]
<nahtnam> Hey! I am working on creating a ruby gem and I was wondering how I can save data on a sqlite databse
<nahtnam> *to
<nahtnam> How do I create the sql file, and save to it?
<apeiros> nahtnam: by using either the ruby sqlite library or by using a database abstraction library like sequel
IrishGringo has joined #ruby
Macaveli has joined #ruby
ptrrr has joined #ruby
<nahtnam> apeiros: Is this the one? https://github.com/sparklemotion/sqlite3-ruby
nobitanobi has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
<apeiros> nahtnam: given that that's the one rails uses, I'd say yes
<nahtnam> apeiros: Kk. Thanks
ptrrr has quit [Ping timeout: 252 seconds]
<apeiros> personally I'd use sequel. the interface is much nicer.
davedev24_ has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
<atmosx> +1 for sequel and +@ for apeiros
paradisaeidae has joined #ruby
<apeiros> oh, d'uh
<atmosx> ops sorry
<atmosx> +2 lol
<apeiros> completely forgot to remove that :D
<atmosx> did I made all this happen?
ta_ has joined #ruby
<atmosx> ah
<atmosx> lol I thought thet +@ triggered some chain of events
<atmosx> anyway
<apeiros> na, I oped here to deop the other me.
* apeiros is too lazy to turn to the other computer
<atmosx> apeiros: what specs does your home desktop have? and os/version?
jenrzzz has joined #ruby
pengin has joined #ruby
<nahtnam> apeiros: Yeah, I decided on using sequel since it been update much more
<atmosx> nahtnam: wise choice
triple_b has joined #ruby
aapole has quit [Ping timeout: 245 seconds]
<apeiros> one mbp mid 2012, i7@2.3GHz, 16GB, 256GB. one imac 5k, i7@4GHz, 32GB, 512GB SSD
<apeiros> yours atmosx?
ponga has joined #ruby
<atmosx> wow
jottr has quit [Ping timeout: 250 seconds]
<apeiros> nahtnam: it uses sqlite3 underneath for sqlite db's too ;-)
davedev24_ has quit [Read error: Connection reset by peer]
perturbation has joined #ruby
davedev24_ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
Aova has quit [Read error: Connection reset by peer]
<atmosx> an iMac 08, Intel 2,8 CD, 4GB RAM and a mba i5 4 GB.
<atmosx> apeiros: why do you need 32 GB of ram? it sounds like a video editing system
<apeiros> ram isn't expensive anymore and it makes it easier to run multiple vms
akas has joined #ruby
<atmosx> you run vms using virtual box? docker?
<apeiros> also shit tends to become ever more ram hungry
<apeiros> atm virtual box
okinomo has quit [Ping timeout: 246 seconds]
<atmosx> that's true but for my little projects I think 4 GB Is enough lol. Now I feel that I need to update my iMac lol
<apeiros> mostly for IE (*yuck*)
<atmosx> IE? internetl exploder?
<apeiros> yopp
poguez_ has quit [Quit: Connection closed for inactivity]
Aova has joined #ruby
jefus has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
_Andres has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
pengin has quit [Remote host closed the connection]
_Andres has joined #ruby
mikecmpbll has joined #ruby
Sou|cutter has quit [Ping timeout: 252 seconds]
pengin has joined #ruby
Sou|cutter has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> apeiros: I'm off to bed! Good night!
<apeiros> ok, this is ridiculous… since we talked about it, I checked ram usage
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
<apeiros> sublime + terminal + limechat + activity monitor are the only open apps. 10GB of ram is used.
<waxjar> kernel_task?
sankaber has joined #ruby
<apeiros> kernel_task is at 2GB
<apeiros> 1.5GB is marked as file cache
pengin has quit [Ping timeout: 245 seconds]
<apeiros> well, I should do an update anyway. curious to see ram usage after reboot…
apeiros has quit []
jhebden has quit [Ping timeout: 252 seconds]
Lewix_ has quit [Quit: #vim]
kirun has quit [Quit: Client exiting]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
dereck has joined #ruby
<St1gma> that's reserved ram, which the kernel releases when applications need it
<St1gma> it's an osx thing if I remember correctly
nobitanobi has quit []
dereck is now known as jefus
nfk has quit [Quit: yawn]
ta_ has joined #ruby
<apeiros_> St1gma: reserved ram is shown separately
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perturbation has quit [Ping timeout: 245 seconds]
<apeiros_> but yes, filecache is low priority and released if ram becomes scarce
ponga has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Rayford has joined #ruby
<apeiros> ok, 6GB at boot
mikecmpbll has quit [Quit: i've nodded off.]
davidhq has joined #ruby
mikecmpbll has joined #ruby
KanKava has joined #ruby
Lemur has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
Lemur has joined #ruby
sinkensabe has quit [Remote host closed the connection]
perturbation has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
pragmatism has joined #ruby
jlast has joined #ruby
iwishiwerearobot has quit [Ping timeout: 244 seconds]
Lemur has quit [Ping timeout: 245 seconds]
<nahtnam> Is there a cryptographic way I can generate 250 random numbers or letters from a seed where it will constantly give me the exact same result if I use the seed?
<apeiros> I don't think so. SecureRandom can't be seeded and rand is not crypto.
<nahtnam> :(
<apeiros> maybe an external lib?
<nahtnam> I know that sha512 is 128 digits
jlast has quit [Ping timeout: 245 seconds]
<pragmatism> nahtnam Why 250 explicitly?
<pragmatism> Just salt your sha512
<pragmatism> Or combine two.
<nahtnam> pragmatism: Im making an app and I need 250 digits to make a grid that is 10x5 that has 5 digits in each box.
IrishGringo has quit [Read error: Connection reset by peer]
Curs0r_ has joined #ruby
Curs0r_ has joined #ruby
<pragmatism> gotcha
jlast has joined #ruby
<pragmatism> I would generate two sha512's and cut the last three off.
<pragmatism> (of each hash)
<nahtnam> Makes sense.
<nahtnam> Thanks
<pragmatism> np
IrishGringo has joined #ruby
danzilio has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Curs0r has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 245 seconds]
Rayford has quit [Quit: Rayford]
operr has quit [Ping timeout: 250 seconds]
jhebden has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
yellowgh0st has quit [Quit: yellowgh0st]
mikecmpbll has joined #ruby
IrishGringo has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 255 seconds]
juanpablo_ has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
<nahtnam> Any recommendations on how I should generate the 10x5 table in ruby without getting confused?
<pragmatism> Hmm
<pragmatism> I wonder if there are any matrix gems
<pragmatism> otherwise
<pragmatism> a hash of { row: [elements] }
<pragmatism> or just an array of arrays
<nahtnam> Ohhhh gooooddddddddd. matrices... Algebra...
<pragmatism> :)
<pragmatism> It's all math in the end
DadoCe has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
<pragmatism> I think an array of arrays would be easiest
IrishGringo has quit [Read error: Connection reset by peer]
<pragmatism> a[0][0] through a[4][4]
<pragmatism> Er, that's a 5x5
<pragmatism> but you get the idea.
IrishGringo_ has joined #ruby
fenzil has joined #ruby
jenrzzz has joined #ruby
<pragmatism> There might be some good gems for this too
davedev2_ has quit [Ping timeout: 245 seconds]
<apeiros> nahtnam: table? you mean array of arrays? from what source? a string?
<pragmatism> So, worth looking there before writing something really gross
ptrrr has joined #ruby
perturbation has quit [Quit: Leaving]
IrishGringo_ is now known as IrishGringo
<nahtnam> apeiros: Yeah, I have a 250 character long sting and I want to put 5 characters in each string and generate a pdf out of it using prawn
<nahtnam> pragmatism: Ill check
davedev24_ has joined #ruby
Sawbones has joined #ruby
<apeiros> nahtnam: that sounds like "yes, string source, no, not array of arrays, but 10 lines with 5 chars each". but that'd be 50 chars and not 250…
<apeiros> so that doesn't really work out…
DadoCe has quit [Ping timeout: 250 seconds]
<pragmatism> I think each 'box' has 5 characters.
<pragmatism> hence 250
<nahtnam> apeiros: My bad. Typed it out wrong
Sawbones has quit [Remote host closed the connection]
<nahtnam> Was thinking of something else while typing
<nahtnam> a 10x5 table
<nahtnam> with 5 string each
<nahtnam> *
<nahtnam> 5 characters in each
<apeiros> ok, I don't think I understand what result you're looking for.
athan has quit [Read error: Connection reset by peer]
<apeiros> partially because you still don't explain what you consider to be a "10x5 table" (no, it's not self evident)
happyface has quit [Quit: Connection closed for inactivity]
<pragmatism> I dunno, I get it.
knut has quit [Ping timeout: 264 seconds]
<apeiros> pragmatism: I wonder whether what you got is what he actually means :-p
<pragmatism> haha, always a possibility
<pragmatism> 5x10 HTML table with each tr containing 5 characters.
mikecmpbll has quit [Quit: i've nodded off.]
IrishGringo has quit [Ping timeout: 245 seconds]
<pragmatism> *td
<apeiros> pragmatism: I think you mean…
<apeiros> yeah
jottr has joined #ruby
<pragmatism> haha you almost beat me ;)
mikecmpbll has joined #ruby
<apeiros> that'd make the most sense. but still doesn't explain in what *format* he wants that "table". but yeah, probably indeed array of array of 5-char-strings
reinaldob has joined #ruby
IrishGringo has joined #ruby
<apeiros> anyway, if it is the above: source.scan(/#{"(.{5})"*10}/)
<pragmatism> I think scan is deprecated in 2+
<nahtnam> apeiros: whats source scan?
uptownhr has joined #ruby
<apeiros> pragmatism: huh? no.
Aova has quit [Read error: Connection reset by peer]
<apeiros> and it'd be news to me if there were any plans to deprecate it.
<pragmatism> Ah, nope, you're right
<pragmatism> still there, I just can't rad.
<pragmatism> read*
<apeiros> nahtnam: source is your string
jottr has quit [Ping timeout: 244 seconds]
<apeiros> and it'd surprise me quite a bit if anybody even pondered deprecating it. it's invaluable.
reinaldob has quit [Ping timeout: 245 seconds]
poguez_ has joined #ruby
<nahtnam> apeiros: So it basically splits my string into a multidimensional array?
<pragmatism> He can be taught!
<pragmatism> :)
<apeiros> apidock seems to be stuck a couple of years in the past. I'd use ruby-doc.org or rdoc.info
<pragmatism> yeah
<zenspider> scan deprecated? LETS FORK RUBY
IrishGringo has quit [Read error: Connection reset by peer]
<nahtnam> LOL
ta_ has joined #ruby
<nahtnam> IO.ruby
<nahtnam> FTW
<apeiros> zenspider: indeed. totally a fork reason :D
<zenspider> don't fuck with my scan maaannnnn
IrishGringo has joined #ruby
<nahtnam> :PPPP
<apeiros> I think scan is one of the most often used string methods in my code
<apeiros> the only ones I probably use more often are [] and =~
<apeiros> (talking about direct calls in the source only)
<pragmatism> apeiros What are you usually writing?
<apeiros> pragmatism: far too much rails
<pragmatism> haha
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
jherbst has joined #ruby
<apeiros> and if it isn't rails, it's libraries to use in rails projects
Aova has joined #ruby
<pragmatism> The nice thing about being enterprisey is I get to spend most of my time in Ruby land
<apeiros> and in my free time, the thing I want to use instead of rails
<pragmatism> is?
<crome> when I wanted to stop using rails I just did
<apeiros> crome: I'd have to change my job. don't want that.
IrishGringo has quit [Read error: Connection reset by peer]
<pragmatism> crome so what, Ruby API that's digested by some JS framework?
<pragmatism> gnar gnar
<crome> well, obviously I changed jobs :)
<pragmatism> word
<nahtnam> word
<nahtnam> lol
<nahtnam> my friend keeps saying that
<pragmatism> haha great minds.
<apeiros> ah damn, already past 0300, bed time I guess. n8 all.
<pragmatism> peace
ta_ has quit [Ping timeout: 252 seconds]
<nahtnam> Night
<pragmatism> I always read that as "nate"
<nahtnam> Same
<crome> I don't even hate rails, there is just this thing that any rails project of any size worth mentioning is a mess beyond repair
<pragmatism> Same!
<crome> rails can be done well, it just usually isn't
<pragmatism> Crome: not all cases. Current employer's source is fantastic.
<pragmatism> there are a few rough edges, but overall awesome
<pragmatism> agreed.
jonr2219 has quit [Ping timeout: 244 seconds]
greenbagels has joined #ruby
IrishGringo has joined #ruby
tunaCanBruh has joined #ruby
jonr22 has joined #ruby
Joufflu_ has joined #ruby
swgilles_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
swgillespie has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
joufflu has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 264 seconds]
IrishGringo_ has joined #ruby
mistermo_ has quit [Remote host closed the connection]
Cache_Money has joined #ruby
wallerdev has joined #ruby
IrishGringo_ has quit [Read error: Connection reset by peer]
<nahtnam> How do I reverse this? table = hash.scan(/#{"(.{5})"*10}/) If you currently look at it, its 5x10 instead of 10x5...
<apeiros> nahtnam: and that my dear is why you absolutely should give better descriptions
<apeiros> by default I assume x * y
<pragmatism> so say we all
IrishGringo has joined #ruby
<apeiros> i.e., in my world, this is a 10x5 table (10 columns * 5 rows)
<nahtnam> apeiros: Oh, I always go length by height
<apeiros> anyway, take a look at the numbers and try. it's quick if you use e.g. irb.
<nahtnam> Sorry, if that was confusing
<apeiros> nahtnam: um, x * y *is* length * height
<apeiros> are we confused, a tiny bit? :-p
riotjones has joined #ruby
<nahtnam> apeiros: Got it
Cache_Money has quit [Client Quit]
<apeiros> well, I trust you can figure it out. off to bed as I initially wanted and then got stuck on the web…
maletor has joined #ruby
<nahtnam> Jut replace the 10 with 5
<nahtnam> Kk. Night!
iamninja has joined #ruby
<nahtnam> :P
wallerdev has quit [Ping timeout: 245 seconds]
Adran_ is now known as Guest91287
ptrrr has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
VBlizzard has joined #ruby
jlast has joined #ruby
blizzy has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 245 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
ponga has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
kalusn has joined #ruby
mikecmpbll has joined #ruby
tier has joined #ruby
TheNet has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 264 seconds]
TheNet has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
kalusn has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
zachrab has quit [Ping timeout: 265 seconds]
kristian-aalborg has quit [Quit: Leaving]
commmmodo has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
dc has joined #ruby
oo__ has joined #ruby
danzilio has quit [Quit: baiiiii!]
jonr22 has quit [Ping timeout: 245 seconds]
jonr2219 has joined #ruby
TheNet has quit [Quit: Leaving...]
g-nom3 has left #ruby [#ruby]
oo_ has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
tier has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cjk101010 has quit [Ping timeout: 246 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
tier has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
josephndenton has joined #ruby
cjk101010 has joined #ruby
vimshim has joined #ruby
lkba has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
lkba has joined #ruby
vimshim has quit [Client Quit]
kalusn has joined #ruby
uptownhr has quit [Quit: uptownhr]
jonr2219 has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
jottr has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
gsd has joined #ruby
<pragmatism> Shout out to how awesome this community is with noobs.
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805]]
bonhoeffer has joined #ruby
jonr22 has quit []
Aova has joined #ruby
dkphenom has joined #ruby
<pragmatism> I've had a lot of fun this weekend helping people out, and it reminds me of when I start programming and how useful this channel was.
davedev24_ has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
oo__ has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
jonr22 has joined #ruby
iwishiwerearobot has joined #ruby
dc has joined #ruby
iliketurtles has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
jonr22 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
Barrayar has quit [Ping timeout: 264 seconds]
ebbflowgo has joined #ruby
jonr22 has quit []
Barrayar has joined #ruby
towski_ has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving...]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
davedev24_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
ta_ has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
Ivision has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jenrzzz has quit [Ping timeout: 252 seconds]
james_ has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
claptor has joined #ruby
<shellox> hi
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
PanzerModern has joined #ruby
mikecmpbll has joined #ruby
braincrash has quit [Quit: bye bye]
Macaveli has quit [Ping timeout: 245 seconds]
DukeJames has left #ruby ["Leaving forever wow"]
HardyK has joined #ruby
pragmatism has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
JoshGlzBrk has joined #ruby
lkba_ has joined #ruby
nahtnam has quit [Ping timeout: 246 seconds]
Sawbones has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
Curs0r__ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
josue has joined #ruby
greensoup has joined #ruby
Curs0r__ is now known as Curs0r
pragmatism has joined #ruby
Curs0r has quit [Changing host]
Curs0r has joined #ruby
<josue> hola
mrmargolis has quit [Remote host closed the connection]
maximski_ has quit []
chrishough has joined #ruby
mrmargolis has joined #ruby
KanKava has quit [Quit: leaving]
<josue> :-D quien ahi
<greensoup> I want to take 20 items at a time from an enumberable object and operate on those. is there a handy method to do this?
hiyosi has joined #ruby
<josue> espanon
Curs0r_ has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
<josue> español
<greensoup> take(20) will grab the first 20, but I want to keep iterating and grab the next 20 and so on
tunaCanBruh has quit [Ping timeout: 240 seconds]
Sawbones has joined #ruby
josue has left #ruby [#ruby]
<greensoup> josue: donde esta la biblioteca
Aova has joined #ruby
<pontiki> greensoup: my hovercraft has eels
mikecmpbll has quit [Quit: i've nodded off.]
<greensoup> HardyK: thanks! i suck at reading the docs :-( was on that page. should have been able to find that
dc has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 255 seconds]
Pixi_ has joined #ruby
mikecmpbll has joined #ruby
hamakn has joined #ruby
Pixi_ has quit [Read error: Connection reset by peer]
<HardyK> greensoup: so "enumerator = ary.each_slice(2); enumerator.next"
<greensoup> pontiki: i wish we were taught cool sentences like that in my spanish classes
Xiti has joined #ruby
ptrrr has joined #ruby
<HardyK> greensoup: welcome
ta_ has joined #ruby
DOGEDDDOS has joined #ruby
timmmaaaayyy has quit [Quit: ZNC - http://znc.in]
timmmaaaayyy has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
tus has quit []
keen__________56 has joined #ruby
<pontiki> greensoup: only at Monty Python U
keen__________55 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
Troy^ has joined #ruby
DOGEDDDOS has quit [K-Lined]
Prometheian has joined #ruby
mroach has quit [Quit: mroach]
ta_ has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Takle has quit [Ping timeout: 255 seconds]
<pragmatism> greensoup #sample(20)
<pragmatism> takes a random 20
<pragmatism> mucho utilidad
gkra has quit [Remote host closed the connection]
wallerdev has joined #ruby
fabrice31 has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
Yzguy has joined #ruby
phutchins has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
davedev24_ has quit []
fabrice31 has quit [Ping timeout: 245 seconds]
arescorpio has quit [Excess Flood]
ferr has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
zwer_o has joined #ruby
shum1 has quit [Ping timeout: 264 seconds]
zwer has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
toothe has quit [Quit: leaving]
Yzguy has quit [Quit: I'm bouncing outta here!]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
ta_ has joined #ruby
HardyK has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ptrrr has quit [Ping timeout: 252 seconds]
Pharaoh2 has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
jottr has joined #ruby
nahtnam has joined #ruby
greensoup has quit [Ping timeout: 250 seconds]
Pharaoh2_ has joined #ruby
Pharaoh2_ has quit [Max SendQ exceeded]
<dopie> can anyone explain why my to_s method isnt working?
Pharaoh2_ has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greensoup has joined #ruby
Macaveli has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 246 seconds]
<havenn> dopie: it's returning `nil` because that's what #puts returns, if that's what you mean?
<havenn> dopie: drop the `puts` on line 9
<dopie> I did
knut has joined #ruby
ta_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
<dopie> puts p_number.to_s
<dopie> 1234567890
<dopie> gives me that
greenbagels has joined #ruby
triple_b has joined #ruby
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
ferr has quit [Quit: Lost terminal]
Macaveli has quit [Ping timeout: 245 seconds]
<havenn> dopie: it doesn't match your regexp, so it just return the string
gremax has quit [Ping timeout: 244 seconds]
Nilium has quit [Ping timeout: 244 seconds]
davidcelis has quit [Ping timeout: 245 seconds]
alexblom has quit [Ping timeout: 245 seconds]
RowdyChildren has quit [Ping timeout: 245 seconds]
LRgraham has quit [Ping timeout: 245 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
JBreit has left #ruby ["Leaving"]
mikecmpbll has quit [Quit: i've nodded off.]
<dopie> crap i see what youre saying
agent_white has quit [Read error: Connection reset by peer]
ruisanto1 has quit [Ping timeout: 244 seconds]
Crazy_Atheist has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
gremax has joined #ruby
saltsa has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
alexblom has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
Nilium has joined #ruby
LRgraham has joined #ruby
RowdyChildren has joined #ruby
davidcelis has joined #ruby
ruisantos has joined #ruby
saltsa has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
bdamos has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
sssilver| has quit [Quit: No Ping reply in 180 seconds.]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
sssilver| has joined #ruby
tunaCanBruh has joined #ruby
hamakn has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 276 seconds]
bdamos has joined #ruby
webguynow has joined #ruby
Pharaoh2_ has quit [Ping timeout: 256 seconds]
<dopie> how would I get
tier has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
<dopie> 3056193724 to match (305) 619-3724
iwishiwerearobot has joined #ruby
Soda has quit [Remote host closed the connection]
Buttons840 has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
lioninawhat has joined #ruby
d3v has quit []
<havenn> dopie: Always ten-digit numbers?
Crazy_Atheist has joined #ruby
<dopie> yes
tunaCanBruh has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
Aova has joined #ruby
Lilian has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
<havenn> >> '1234567890'.sub /\A(\d{3})(\d{3})(\d{4})\z/, '(\1) \2-\3'
<eval-in__> havenn => "(123) 456-7890" (https://eval.in/280537)
agent_white has left #ruby ["Dippin' out"]
agent_white has joined #ruby
lioninawhat has quit [Remote host closed the connection]
<dopie> ha!
<dopie> i had the first part
agent_white has quit [Quit: Bai.]
greensoup has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
Buttons840 has quit [Quit: Lost terminal]
ta_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
diegovio1 has joined #ruby
<dopie> havenn, thank you
<dopie> deciphering your code here
gawd has quit [Quit: Leaving]
Pharaoh2_ has joined #ruby
<ponga> hey
<ponga> can i do "1..3" in c#
diegoviola has quit [Ping timeout: 264 seconds]
diegovio1 is now known as diegoviola
<dopie> havenn, what does the \z/ do?
<havenn> dopie: \A is start of string and \z is end of string, you could drop those parts
<havenn> dopie: http://rubular.com/
siso has quit [Quit: siso]
Pharaoh2 has quit [Ping timeout: 256 seconds]
<dopie> thank you
ta_ has quit [Ping timeout: 250 seconds]
<havenn> dopie: no prob
oo_ has joined #ruby
Pharaoh2 has joined #ruby
mostlybadfly has joined #ruby
juanpablo_ has joined #ruby
charliesome has joined #ruby
Pharaoh2_ has quit [Ping timeout: 250 seconds]
xymbol_ has quit [Quit: Lingo: www.lingoirc.com]
<dopie> havenn, when you showed me it makes so much sense now
oo_ has quit [Client Quit]
thsig has joined #ruby
krz has joined #ruby
jlast has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
tomengland has joined #ruby
thsig has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 245 seconds]
greensoup has joined #ruby
TL has joined #ruby
davedev24_ has joined #ruby
Cache_Money has joined #ruby
greensoup has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 252 seconds]
greensoup has joined #ruby
tylersmith has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mudtose has joined #ruby
mikecmpbll has joined #ruby
Overlordz has joined #ruby
Guest123 has joined #ruby
<Guest123> Hi, how can I format a number with up to 2 decimal points, but have 1.00 formatted as 1?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mroach has joined #ruby
Sawbones has quit [Remote host closed the connection]
Macaveli has joined #ruby
mozzarella has quit [Ping timeout: 244 seconds]
G has quit [Changing host]
G has joined #ruby
Macaveli has quit [Ping timeout: 256 seconds]
oleo is now known as Guest27093
oleo__ has joined #ruby
zellio has joined #ruby
ta_ has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcarmich has joined #ruby
kalusn has quit [Remote host closed the connection]
Guest27093 has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Aova has quit [Read error: Connection reset by peer]
lkba_ has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 252 seconds]
tier has joined #ruby
Lemur has joined #ruby
razieliyo has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
Pharaoh2_ has joined #ruby
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
zachrab has joined #ruby
Aova has joined #ruby
<havenn> >> sprintf '%.3g', 3.1415
<eval-in__> havenn => "3.14" (https://eval.in/280566)
jhebden has quit [Ping timeout: 255 seconds]
<havenn> >> sprintf '%.3g', 3
<eval-in__> havenn => "3" (https://eval.in/280567)
icharlie has quit []
tier has quit [Ping timeout: 245 seconds]
Pharaoh2 has quit [Ping timeout: 256 seconds]
<havenn> >> sprintf '%.3g', 3.00
<eval-in__> havenn => "3" (https://eval.in/280568)
<havenn> Guest123: ^ it's cryptic, but that's a way
ta_ has quit [Ping timeout: 245 seconds]
zellio has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 250 seconds]
zachrab has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
greenbagels has quit [Quit: Leaving]
claptor has quit [Quit: this channel is bakas]
wldcordeiro_ has joined #ruby
sevenseacat has joined #ruby
ebbflowgo has left #ruby [#ruby]
Pharaoh2 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
Pharaoh2_ has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
mozzarella has joined #ruby
ozialien has joined #ruby
mtlatif__ is now known as zero7
davedev24_ has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
davedev24_ has joined #ruby
dc has joined #ruby
AlexRussia_ has joined #ruby
Barrayar has quit [Ping timeout: 246 seconds]
elepfont has joined #ruby
redballoon7762 has joined #ruby
Pharaoh2_ has joined #ruby
ptrrr has joined #ruby
dc has quit [Remote host closed the connection]
Limix has joined #ruby
redballoon7762 has quit [Client Quit]
wallerdev has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
Pharaoh__ has joined #ruby
TL has quit [Read error: No route to host]
Pharaoh2 has quit [Ping timeout: 256 seconds]
Pharaoh2 has joined #ruby
AlexRussia_ has quit [Quit: WeeChat 1.1-dev]
Barrayar has joined #ruby
hvxgr has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
toothe has joined #ruby
<toothe> I"m having trouble following this ruby guide.
Pharaoh2_ has quit [Ping timeout: 256 seconds]
<toothe> I created an object doing "g = Greeter.new("whatever")" and it seems to instantiate, but when I do g.@name (one of the internal variables) i get a syntax error.
siso has joined #ruby
Pharaoh__ has quit [Ping timeout: 256 seconds]
Deithrian has joined #ruby
<weaksauce> you can't do that toothe
<toothe> oh wait...i am doing this incorrectly...
<weaksauce> you can add an attr_accessor :name or define the getter and setter on your own
avahey has quit [Quit: Connection closed for inactivity]
havenn has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
DrCode has quit [Ping timeout: 250 seconds]
<mudtose> haml vs slim, which is better?
Sawbones has quit [Remote host closed the connection]
Takle has joined #ruby
<weaksauce> I like haml but I don't know slim so there is that
Ivision has quit [Ping timeout: 246 seconds]
<mudtose> slim has even fewer symbols lol
ta_ has joined #ruby
<mudtose> more github stars means more momentum!! everyone's gotta switch!
<weaksauce> heh. you first
Takle has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
speaking2ode has joined #ruby
speaking1ode has quit [Ping timeout: 240 seconds]
iwishiwerearobot has joined #ruby
Macaveli has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tunaCanBruh has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 244 seconds]
Channel6 has quit [Quit: Leaving]
arup_r has joined #ruby
dc has joined #ruby
codeurge has joined #ruby
<arup_r> Yo
Aova has quit [Read error: Connection reset by peer]
ptrrr has quit [Ping timeout: 250 seconds]
dc has quit [Remote host closed the connection]
hvxgr has joined #ruby
dc has joined #ruby
<nahtnam> Im creating a ruby gem, and I need to generate an html file. I was wondering if there was a templating gem I could use
kalz has quit [Ping timeout: 245 seconds]
dc has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 245 seconds]
codeurge has quit [Ping timeout: 245 seconds]
<weaksauce> nahtnam erb, haml?
dc has joined #ruby
zwer_o has quit []
Aova has joined #ruby
wldcordeiro_ has joined #ruby
<nahtnam> weaksauce: https://rubygems.org/gems/erb
<nahtnam> I cant find the gem
towski_ has joined #ruby
<weaksauce> well that's good because haml is better anyway
<weaksauce> but erb is a part of rails so if you really wanted it you could see what that installs
<nahtnam> weaksauce: I prefer erb.
<nahtnam> Since I have used it before
<weaksauce> haml is better and it doesn't take much to convert over
<weaksauce> it really is pretty easy
Azulinho has joined #ruby
<nahtnam> weaksauce: Is there any gem that can convert a haml page into a pdf?
juanpablo_ has joined #ruby
<weaksauce> yeah. you could do haml -> html and then html -> pdf
<weaksauce> there are gems for that
<weaksauce> the second part I can't recall off the top of my head
<nahtnam> weaksauce: How would I do haml to html? I know how to do html to pdf
juanpablo_ has quit [Ping timeout: 256 seconds]
selaruvich has joined #ruby
<weaksauce> that's what haml does?
<weaksauce> haml is a html templating engine.
<mudtose> pandoc is the html to pdf tool btw
<weaksauce> I haven't tried to use it outside of rails but I am sure you can
<weaksauce> mudtose there are many... I think the one that I was thinking about was pdfkit or wicked_pdf
<weaksauce> or wkhtmltopdf
tier has joined #ruby
lxsameer has joined #ruby
SOLDIERz_ has joined #ruby
The_Phoenix has joined #ruby
psy_ has joined #ruby
Joufflu_ has quit [Quit: Peace]
lxsameer has quit [Client Quit]
arup_r has quit [Ping timeout: 264 seconds]
tier has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
Pharaoh2_ has joined #ruby
SOLDIERz_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
dc has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
fantazo has joined #ruby
kalz has joined #ruby
Pharaoh2_ has quit [Ping timeout: 245 seconds]
<toothe> is anyone here?
Pharaoh2_ has joined #ruby
<toothe> I am trying to do `rails server`, but I get a series of errors
<toothe> I feel like stuff works and doesn't work...breaks and doesn't break.
g-nom3 has joined #ruby
Pharaoh2 has quit [Ping timeout: 244 seconds]
Pharaoh2_ is now known as Pharaoh2
<nahtnam> toothe: Can you give us all of the errors
arup_r has joined #ruby
<nahtnam> I have this line in my gem `content = File.read(GEM_ROOT + '/templates/paper.html.erb')` but when I run it, I get an error saying uninitiallized constant GEM_ROOT
ta_ has joined #ruby
tmtwd has quit [Remote host closed the connection]
lioninawhat has joined #ruby
Spami has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
longfeet has quit [Read error: Connection reset by peer]
Spami has quit [Client Quit]
Pharaoh2_ has joined #ruby
lioninawhat has quit [Remote host closed the connection]
<nahtnam> Anyone?
krz has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
<nahtnam> Oh jk
<nahtnam> Figured it out
Pharaoh2 has quit [Ping timeout: 256 seconds]
Takle has quit [Read error: Connection reset by peer]
greensoup has quit [Ping timeout: 245 seconds]
Timba-as has quit [Quit: Be back later ...]
jgt has joined #ruby
ta_ has joined #ruby
Timba-as has joined #ruby
mudtose has quit [Quit: Leaving]
Pharaoh2 has joined #ruby
Macaveli has joined #ruby
ponga has quit [Quit: Leaving...]
zachrab has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
Pharaoh2_ has quit [Ping timeout: 256 seconds]
ValicekB has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
codecop has joined #ruby
Spami has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
Jetchisel has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
Pharaoh2_ has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
jblancett has quit [Ping timeout: 245 seconds]
bcavileer_ has quit [Ping timeout: 245 seconds]
iml has quit [Ping timeout: 245 seconds]
im0b has quit [Ping timeout: 245 seconds]
thesheff17 has quit [Ping timeout: 252 seconds]
n1ftyn8 has quit [Ping timeout: 252 seconds]
alekst_ has quit [Ping timeout: 245 seconds]
frankS2 has quit [Ping timeout: 245 seconds]
ramblinpeck_ has quit [Ping timeout: 245 seconds]
jrunning_ has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
rkjaer has quit [Ping timeout: 252 seconds]
bestie has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
kapowaz_ has quit [Read error: Connection reset by peer]
shelling__ has quit [Read error: Connection reset by peer]
_chs_ has quit [Read error: Connection reset by peer]
zipkid has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
Heero has quit [Read error: Connection reset by peer]
exadeci has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Read error: Connection reset by peer]
whoojemaflip has quit [Read error: Connection reset by peer]
hellschreiber has quit [Read error: Connection reset by peer]
tmoore has quit [Write error: Connection reset by peer]
alol__ has quit [Read error: Connection reset by peer]
bjeanes_ has quit [Read error: Connection reset by peer]
EasyCo has quit [Read error: Connection reset by peer]
skmp has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 256 seconds]
akitada has quit [Read error: Connection reset by peer]
featheryahn_ has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
vcoinminer has quit [Write error: Connection reset by peer]
machty has quit [Read error: Connection reset by peer]
lepht has quit [Read error: Connection reset by peer]
dukedave has quit [Read error: Connection reset by peer]
ZucchiniZe has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
ramblinpeck_ has joined #ruby
Pharaoh2 has quit [Ping timeout: 250 seconds]
dukedave has joined #ruby
jrunning_ has joined #ruby
n1ftyn8 has joined #ruby
bcavileer_ has joined #ruby
alol__ has joined #ruby
jblancett has joined #ruby
bestie has joined #ruby
zipkid has joined #ruby
whoojemaflip has joined #ruby
bjeanes_ has joined #ruby
tmoore has joined #ruby
tmoore has quit [Changing host]
tmoore has joined #ruby
skmp has joined #ruby
daxroc has joined #ruby
_chs_ has joined #ruby
mostlybadfly has joined #ruby
poikon has joined #ruby
featheryahn_ has joined #ruby
hellschreiber has joined #ruby
alekst_ has joined #ruby
_chs_ is now known as Guest10293
lepht has joined #ruby
vcoinminer has joined #ruby
thesheff17 has joined #ruby
jeregrine has joined #ruby
ZucchiniZe has joined #ruby
frankS2 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
rkjaer has joined #ruby
andrewstewart has joined #ruby
exadeci has joined #ruby
Pharaoh2 has joined #ruby
kapowaz_ has joined #ruby
shelling__ has joined #ruby
Heero has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
EasyCo has joined #ruby
Aova has joined #ruby
Axy has joined #ruby
neersighted has quit []
akitada has joined #ruby
im0b has joined #ruby
iml has joined #ruby
knut has quit [Read error: Connection reset by peer]
Mia has quit [Ping timeout: 245 seconds]
Pharaoh2_ has quit [Ping timeout: 256 seconds]
machty has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
Pharaoh2_ has joined #ruby
Vile` has joined #ruby
antgel has joined #ruby
neersighted has joined #ruby
Pharaoh2 has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
Pharaoh2_ has quit [Ping timeout: 256 seconds]
lzx has joined #ruby
anarang has joined #ruby
Takle_ has joined #ruby
ponga has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<nahtnam> Whats the difference between .. and ...?
<nahtnam> nvm
Azulinho has quit [Ping timeout: 245 seconds]
SOLDIERz_ has joined #ruby
Ivision has joined #ruby
SOLDIERz_ has quit [Ping timeout: 256 seconds]
dc has joined #ruby
psy_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
psy_ has joined #ruby
dc has quit [Remote host closed the connection]
<nahtnam> How do I remove the nth letter in a string?
jenrzzz has quit [Ping timeout: 244 seconds]
gomix has quit [Ping timeout: 240 seconds]
g-nom3 has quit [Quit: Leaving.]
swgilles_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has joined #ruby
roshanavand has joined #ruby
tunaCanBruh has joined #ruby
Zarthuss is now known as Zarthus
SOLDIERz_ has joined #ruby
iwishiwerearobot has joined #ruby
krz has joined #ruby
<arup_r> nahtnam: Use String#[]
<arup_r> >> s = "aaaaaxa"; s[-2] = "" ; s
<eval-in__> arup_r => "aaaaaa" (https://eval.in/280595)
tunaCanBruh has quit [Ping timeout: 244 seconds]
<arup_r> soryy String#[]=
roshanavand has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
greensoup has joined #ruby
iwishiwerearobot has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
<hanmac> nahtnam: you can also use slice!
<hanmac> (which is very similar to that result)
bluurn has joined #ruby
<nahtnam> arup_r: Sorry, I dont understand your code
<nahtnam> ill try it out in erb
<hanmac> >> s = "aaaaaxa"; s.slice!(-2) ; s
<eval-in__> hanmac => "aaaaaa" (https://eval.in/280602)
<nahtnam> irb
greensoup has quit [Ping timeout: 246 seconds]
<sevenseacat> ah cool
<nahtnam> I get it!
<hanmac> nahtnam: both my and arup_r s code does remove the char from the nth position (in that case -2)
<nahtnam> Thanks
dopie has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
machty has quit [Ping timeout: 252 seconds]
anarang has quit [Quit: Leaving]
rkjaer has quit [Ping timeout: 245 seconds]
Heero has quit [Ping timeout: 252 seconds]
jrunning_ has quit [Ping timeout: 252 seconds]
dopie has joined #ruby
tmoore has quit [Read error: Connection reset by peer]
skmp has quit [Read error: Connection reset by peer]
daxroc has quit [Read error: Connection reset by peer]
bcavileer_ has quit [Read error: Connection reset by peer]
lepht has quit [Read error: Connection reset by peer]
alekst_ has quit [Read error: Connection reset by peer]
bluurn has left #ruby [#ruby]
tmoore has joined #ruby
skmp has joined #ruby
bluurn has joined #ruby
iml has quit [Ping timeout: 252 seconds]
dukedave has quit [Read error: Connection reset by peer]
bcavileer_ has joined #ruby
daxroc has joined #ruby
im0b has quit [Ping timeout: 245 seconds]
lepht has joined #ruby
alekst_ has joined #ruby
jrunning_ has joined #ruby
dukedave has joined #ruby
rkjaer has joined #ruby
Heero has joined #ruby
bluurn has quit [Quit: Leaving]
iml has joined #ruby
im0b has joined #ruby
Macaveli has joined #ruby
machty has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
ValicekB has joined #ruby
marcdel has joined #ruby
<arup_r> It is opening 2 times the file..
strsep has quit [Quit: ZNC - http://znc.in]
<arup_r> can I do open the file one time and do whatever I want and then close..
<arup_r> ?
Macaveli has quit [Ping timeout: 245 seconds]
Barrayar has quit [Quit: Leaving]
juanpablo_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Aova has joined #ruby
bluurn has joined #ruby
NewbiePig has joined #ruby
lidaaa has quit [Ping timeout: 264 seconds]
Lewix has quit [Ping timeout: 264 seconds]
ohaibbq has quit [Quit: Leaving...]
multi_io_ is now known as multi_io
bjeanes_ has quit [Read error: Connection reset by peer]
shadeslayer has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
<hanmac> arup_r: isnt that what you code already does?
bjeanes_ has joined #ruby
<hanmac> and i only see some optimise potential at gsub like that:
<hanmac> >> replace = {"&lt;%" => '<%', "%&gt;" => '%>'}; "&lt;%abc%&gt;".gsub(Regexp.union(replace.keys), replace)
<eval-in__> hanmac => "<%abc%>" (https://eval.in/280611)
iml has quit [Ping timeout: 245 seconds]
fantazo has joined #ruby
machty has quit [Ping timeout: 245 seconds]
daxroc has quit [Ping timeout: 245 seconds]
lepht has quit [Ping timeout: 252 seconds]
dukedave has quit [Read error: Connection reset by peer]
shadeslayer has joined #ruby
antgel has joined #ruby
<arup_r> I didn't get you.. But yes it is working.. and also I am sure.. I can't read and write in a single shot.. So need to open one for reading and the other for writing.. But your new gsub version is perfect.. thanks
<arup_r> hanmac: ^
dukedave has joined #ruby
krz has quit [Ping timeout: 245 seconds]
<hanmac> arup_r: even better gsub:
<hanmac> >> "&lt;%abc%&gt; &lt;%dev%&gt;".gsub(/&lt;%(.+?)%&gt;/, '<%\1%>')
<eval-in__> hanmac => "<%abc%> <%dev%>" (https://eval.in/280612)
daxroc has joined #ruby
ptrrr has quit [Ping timeout: 245 seconds]
lepht has joined #ruby
iml has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> +1 +1 ... infinity :)
<arup_r> hanmac: ^^
<hanmac> hm i noticed you can even let nokogiri do the work for you:
<hanmac> Nokogiri::HTML("&lt;%abc%&gt; &lt;%dev%&gt;").text #=> "<%abc%> <%dev%>"
<hanmac> but that might be overkill xD
machty has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
Azulinho has joined #ruby
<nahtnam> I have this code: https://gist.github.com/nahtnam/40e9715291c73bae938e#file-test-rb-L33 and I keep getting an error saying `block (2 levels) in create': undefined method `[]=' for nil:NilClass (NoMethodError)
<nahtnam> I checked and nothing is nil
<arup_r> humm
krz has joined #ruby
kalusn has joined #ruby
dc has quit [Remote host closed the connection]
marcdel has quit []
<nahtnam> arup_r: Yeah?
<arup_r> I said hanmac : :)
<arup_r> not you
wallerdev has joined #ruby
<hanmac> nahtnam: pair1 is set as empty array ... if you try to acceess pair1[i] then its nil
<nahtnam> hanmac: But I want to set it to something. How do I do that?
ARCADIVS has quit [Quit: ARCADIVS]
duncannz has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
idoru has quit [Read error: Connection timed out]
max96at|off is now known as max96at
idoru has joined #ruby
<hanmac> nahtnam: the best would be a "pair1[i] ||= []" before that line that should work
wallerdev has quit [Ping timeout: 252 seconds]
<nahtnam> hanmac: Works! Thanks!
jimms has joined #ruby
riotjones has joined #ruby
jottr has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
Guest123 has joined #ruby
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby
zachrab has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
soxet has quit [Ping timeout: 255 seconds]
greensoup has joined #ruby
bluurn has quit [Quit: Leaving]
oo_ has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
snath has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 245 seconds]
snath has joined #ruby
krz has quit [Ping timeout: 252 seconds]
slawrence00 has joined #ruby
lkba has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
blackmesa has joined #ruby
roshanavand has quit [Quit: roshanavand]
mistermocha has joined #ruby
roshanavand has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
YamakasY has quit [Excess Flood]
Macaveli has quit [Ping timeout: 264 seconds]
jimms has quit [Remote host closed the connection]
soxet has joined #ruby
Aova has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 250 seconds]
roshanavand has quit [Ping timeout: 244 seconds]
roshanavand1 has joined #ruby
Musashi007 has joined #ruby
spider-mario has joined #ruby
jimms has joined #ruby
greensoup has quit [Ping timeout: 245 seconds]
roshanavand1 has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
roshanavand has joined #ruby
YamakasY has joined #ruby
mLF has joined #ruby
<apeiros> nahtnam: do I understand that correctly that you want to use those 5-char strings as auth tokens?
<nahtnam> Yeah
<apeiros> I don't think that's a good idea
athan has joined #ruby
<apeiros> it takes somebody knowledge of id, key and the last used token and they can predict the next token
<apeiros> I assume id/key are equivalent to username/password?
lyuben_ has quit [Quit: This computer has gone to sleep]
<apeiros> i.e. part of what an attacker would have to obtain anyway in order to gain access?
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Timba-as has quit [Quit: Be back later ...]
Aryasam has joined #ruby
pico-pete has joined #ruby
dimon_ has quit [Ping timeout: 264 seconds]
commmmodo has quit [Quit: commmmodo]
ionull has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has joined #ruby
Lemur has quit [Remote host closed the connection]
Lemur has joined #ruby
Musashi007 has quit [Quit: Musashi007]
NewbiePig has quit [Ping timeout: 255 seconds]
Lemur has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
<nahtnam> apeiros: This is just for a hackathon
tunaCanBruh has joined #ruby
<nahtnam> I dont think anyone is going to question it
<apeiros> let's hope nobody is going to use it :-p
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
iwishiwerearobot has joined #ruby
dimon_ has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
iamninja has joined #ruby
naftilos76 has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
mLF has quit [Ping timeout: 255 seconds]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 245 seconds]
malvores has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Takle has joined #ruby
Guest123 has joined #ruby
malvores has left #ruby ["Leaving"]
teddyp1cker has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
hiyosi has joined #ruby
sigurding has quit [Quit: sigurding]
DEA7TH has quit [Ping timeout: 246 seconds]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
jenrzzz has quit [Ping timeout: 245 seconds]
NewbiePig has joined #ruby
MasterPiece has joined #ruby
Motoservo has joined #ruby
oo_ has quit [Remote host closed the connection]
NewbiePig has quit [Read error: Connection reset by peer]
toothe has quit [Ping timeout: 246 seconds]
krz has joined #ruby
juanpablo_ has joined #ruby
coca_rails has joined #ruby
coca_rails has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 240 seconds]
NewbiePig has joined #ruby
ta_ has joined #ruby
jottr has joined #ruby
tier has joined #ruby
timonv has joined #ruby
NewbiePig_ has joined #ruby
NewbiePig has quit [Ping timeout: 250 seconds]
NewbiePig_ is now known as NewbiePig
ta_ has quit [Ping timeout: 252 seconds]
tylersmith has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
jottr has quit [Ping timeout: 245 seconds]
tier has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
<nahtnam> apeiros: BTW, id = user id, and key = some random text that the server sets
gr33n7007h has joined #ruby
Aova has joined #ruby
sandelius has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
plashchynski has joined #ruby
<apeiros> ok
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nahtnam> apeiros: Is that not secure?
<apeiros> I'm not a security expert. but if it's a secret not known to the user, it's certainly a hoop more for a potential attacker to take.
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
teleporting_kat has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
NewbiePig has quit [Remote host closed the connection]
<Deithrian> Why does "10.times do |number| puts number" print numbers from 0 to 9?!
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
<Deithrian> is every integer an array of its numbers or something?
<apeiros> no
dimon_ has quit [Quit: Leaving]
aapole has joined #ruby
<Deithrian> where do the numbers come from then?
<apeiros> it's because the method Integer#times will iterate from 0 the number of times of its own value
dimaursu16 has joined #ruby
<apeiros> which means that for 10, it is iterate from 0 to 9 (as that's iterating 10 times - precisely what the method name says)
FrankenDaemon has quit [Ping timeout: 265 seconds]
FrankenDaemon has joined #ruby
oleo has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
<Deithrian> thanks apeiros
selu has joined #ruby
jhebden has joined #ruby
selaruvich has quit [Ping timeout: 255 seconds]
SolarSailor has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
wallerdev has joined #ruby
<hanmac> Deithrian: if you want 1 to 10 you can use 1.upto(10)
waxjar has quit [Ping timeout: 264 seconds]
eka has joined #ruby
<shevy> :)
<shevy> ruby makes the simple things even simpler
<Deithrian> Thanks hanmac. I'm following a tutorial and the guy did that line of code so I got confused from where do the numbers come.
godemper1r has quit [Ping timeout: 246 seconds]
<shevy> Deithrian the do/end part there denotes a block
<shevy> with the |foo| you name a variable inside the block
waxjar has joined #ruby
zachrab has joined #ruby
godemper1r has joined #ruby
<Deithrian> Why would ruby put the number it's at in that variable?
<Deithrian> It's just how it works?
<apeiros> because it is useful
Musashi007 has quit [Quit: Musashi007]
<apeiros> you don't have to use the number. if all you want is execute an action N times, you can do `N.times do …action… `. e.g. `3.times do puts "hello world!" end`.
wallerdev has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: gnight]
nfk has joined #ruby
athan has quit [Quit: No Ping reply in 180 seconds.]
<Deithrian> apeiros, how do you call these in Ruby? | |
<apeiros> in this context, they are the delimiters for the block arguments
<apeiros> just like () in `def some_method(arg1, arg2)` are delimiters for the method arguments
zachrab has quit [Ping timeout: 245 seconds]
ackpacket_ has joined #ruby
<nahtnam> Quick question. When I generate a pdf using pdfkit, it removes intentional spaces. Is there a way I can keep it from removing the spaces?
<Deithrian> apeiros, I fail to find any documentation explaining these with search :)
<hanmac> but `def some_method arg1, arg2` works also without, but thats bad style
<apeiros> Deithrian: what do you search? I think `man ruby` has stuff on syntax.
ta_ has joined #ruby
Ivision_ has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan has joined #ruby
<Deithrian> apeiros, ruby "|" and other variations
<apeiros> Deithrian: you mean you googled?
<Deithrian> It finds RegEx when it finds anything
<Deithrian> yes
<apeiros> google is a poor choice for language documentation
<apeiros> you search for a good documentation and then search in there
Ivision has quit [Ping timeout: 255 seconds]
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
antgel has joined #ruby
<Deithrian> apeiros, I tried http://ruby-doc.org/ too but it shows results for | (Array)...
<apeiros> and for ruby, there's `man ruby` and `ri Classname`, `ri Classname#instance_method` and `ri Classname::class_method` (all in your shell, assuming you installed the docs)
<Deithrian> oh well
<apeiros> Deithrian: yes, that's method documentation you found. not syntax.
<Deithrian> ic
<apeiros> the || in `foo do |x,y,z| … end` are not methods. they're part of the syntax.
ta_ has quit [Ping timeout: 252 seconds]
<hanmac> Deithrian: i found that: http://ruby-doc.org/core-2.2.0/doc/syntax/calling_methods_rdoc.html#label-Block+Argument for the block things
<hanmac> Quote: "The block’s arguments go in | ... | following the opening do or {"
Synthbread has quit [Ping timeout: 272 seconds]
<apeiros> oh nice, I keep forgetting that ruby-doc also contains those
ta_ has joined #ruby
Timba-as has joined #ruby
<Deithrian> hanmac, what was your search?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<hanmac> i know thats in the extra rdoc files, specially in the syntax section, and then i did search for "block"
kalusn has quit [Remote host closed the connection]
mistermocha has joined #ruby
<Deithrian> hanmac, thank you very much :)
krz has joined #ruby
nfk has quit [Ping timeout: 256 seconds]
sandelius has joined #ruby
sandelius has quit [Max SendQ exceeded]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 245 seconds]
lzx has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 256 seconds]
krz has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
<ackpacket_> In love with rails
<ackpacket_> never used a framework before. Made an entire e-commerce site for a buddy once from scratch, cart and all. What an idiot I am.
jottr has joined #ruby
<hanmac> ackpacket_: i think you are in the wrong channel ...
<ackpacket_> hanmac: ?
<Deithrian> #rubyonrails :)
<ackpacket_> hanmac: is rails an inappropriate topic here?
<hanmac> we are RailsAtheists ... we do not believe in rails
<ackpacket_> purists
<ackpacket_> fair enough
<ackpacket_> did they really have to name it the full phrase rubyonrails though? lol
Apocalypse has joined #ruby
Guest123 has joined #ruby
<Deithrian> idk I found it by typing
<Deithrian> ror is invite only
nfk has joined #ruby
<sevenseacat> no, its for registered users only
<ackpacket_> probably have to identify, Deithrian
<ackpacket_> and be registered
zarubin has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 265 seconds]
Aova has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 244 seconds]
<Deithrian> You are now logged in as Deithrian.
<Deithrian> SASL authentication successful
<diegoviola> roda is pretty kewl
<Deithrian> You're in RubyOnRails not in #ror?
<diegoviola> who needs ror
<Deithrian> I do, since I'm a beginner :) It will teach me wonderful things
<diegoviola> sure
Takle has quit [Remote host closed the connection]
<diegoviola> I'm trolling, rails is nice
kirun has joined #ruby
Aova has joined #ruby
selaruvich has joined #ruby
<Deithrian> :D
maximski has joined #ruby
<diegoviola> :P
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Curs0r_ has joined #ruby
<Deithrian> "you have to make a block and then a proc out of the block and then point to the proc" :) easy...
<shevy> what the
tunaCanBruh has joined #ruby
Curs0r has quit [Ping timeout: 252 seconds]
Guest123 has joined #ruby
iwishiwerearobot has joined #ruby
greensoup has joined #ruby
fantazo has quit [Quit: Verlassend]
VBlizzard is now known as blizzy
ta_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
tunaCanBruh has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
reinaldob has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
stef204 has joined #ruby
greensoup has quit [Ping timeout: 244 seconds]
Troy^ has joined #ruby
shum has joined #ruby
krz has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 264 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
tier has joined #ruby
sandelius has joined #ruby
sandelius has quit [Max SendQ exceeded]
jhebden has quit [Ping timeout: 255 seconds]
TinkerTyper has quit [Ping timeout: 245 seconds]
<nahtnam> Is there a function where I can map 0 to A, 1 to B, etc and then access it by just giving the number?
mLF has joined #ruby
<apeiros> method, not function
<apeiros> Integer#chr
Hobogrammer has quit [Ping timeout: 252 seconds]
<apeiros> ah well, +addition
charliesome has quit [Quit: zzz]
slawrence00 has joined #ruby
<apeiros> alternatively create a lookup array
<apeiros> >> [(0+65).chr, (1+65).chr]
<eval-in__> apeiros => ["A", "B"] (https://eval.in/280699)
startupality has joined #ruby
arup_r has joined #ruby
plashchynski has quit [Quit: plashchynski]
juanpablo_ has joined #ruby
<arup_r> shevy: Yo
<arup_r> ponga: Hi
teddyp1cker has joined #ruby
TinkerTyper has joined #ruby
dc has joined #ruby
charliesome has joined #ruby
Xeago has joined #ruby
lzx has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
dc_ has quit [Read error: Connection reset by peer]
pardusf is now known as parduse
dc has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
MasterPiece has quit [Quit: Leaving]
<Deithrian> So basically "5.times do |n| puts n" is "for(n=0;n<5;n++){print n;}"?
DLSteve has joined #ruby
<shevy> hmm
<shevy> sort of
<shevy> but print is not puts man
teddyp1cker has quit [Ping timeout: 264 seconds]
<Deithrian> right :) ok I think I've got it
zarubin has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
<nahtnam> apeiros: Whats the opposite of chr? (I need to get the number from the letter)
Xeago has quit [Remote host closed the connection]
ta_ has joined #ruby
Xeago has joined #ruby
<apeiros> nahtnam: .ord
<nahtnam> thx
oo_ has joined #ruby
sandelius has joined #ruby
sinkensabe has joined #ruby
ValicekB has quit [Ping timeout: 255 seconds]
last_staff has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
TinkerTyper has quit [Ping timeout: 245 seconds]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
plashchynski has joined #ruby
siso has quit [Quit: siso]
aboudreault has quit [Ping timeout: 240 seconds]
CustosLimen has joined #ruby
dstarh has joined #ruby
TinkerTyper has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
stef204 has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
operr has joined #ruby
stef204 has joined #ruby
einarj has quit [Read error: Connection reset by peer]
Aova has quit [Read error: Connection reset by peer]
einarj has joined #ruby
ta_ has joined #ruby
ValicekB has joined #ruby
razieliyo has joined #ruby
aboudreault has joined #ruby
Akagi201 has quit []
aboudreault is now known as aboudreau
TinkerTyper has quit [Ping timeout: 240 seconds]
stef204 has quit [Ping timeout: 250 seconds]
Axy has quit [Read error: Connection reset by peer]
phreakocious has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
Aova has joined #ruby
TinkerTyper has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
sameerynho has joined #ruby
blackmesa has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
phreakocious has joined #ruby
ta_ has joined #ruby
ptrrr has joined #ruby
TinkerTyper has quit [Ping timeout: 244 seconds]
jmdade has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
lyuben_ has joined #ruby
stef204 has joined #ruby
aboudreau has quit [Quit: damn]
riotjones has joined #ruby
mathias1 has joined #ruby
TinkerTyper has joined #ruby
mathias1 has quit [Client Quit]
yfeldblum has quit [Ping timeout: 264 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
pika_pika has joined #ruby
Aryasam has quit [Ping timeout: 246 seconds]
greensoup has joined #ruby
paolooo has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
nii236|irssi has joined #ruby
zachrab has joined #ruby
jherbst has joined #ruby
shum1 has joined #ruby
IrishGringo has joined #ruby
stef204 has quit [Ping timeout: 250 seconds]
aboudreault has joined #ruby
jherbst has quit [Client Quit]
MaciejCzyzewski has joined #ruby
greensoup has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
IrishGringo has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
paolooo has quit [Quit: Page closed]
bonhoeffer has joined #ruby
reinaldob has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 250 seconds]
fcanela has quit [Quit: leaving]
IrishGringo has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
Troy^ has joined #ruby
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 250 seconds]
godemper2r has quit [Ping timeout: 256 seconds]
operr has quit [Ping timeout: 265 seconds]
godemper2r has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
operr has joined #ruby
hamakn has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 265 seconds]
dc has quit [Remote host closed the connection]
Takle has joined #ruby
tunaCanBruh has joined #ruby
<apeiros> *sob*, good thing nobody is ever going to see these commits… horrible. ~40 files changed. commit message: "I don't know what I did there." (simply because I made the changes ~2w ago)
operr has quit [Ping timeout: 246 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
timonv has quit [Ping timeout: 265 seconds]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tunaCanBruh has quit [Ping timeout: 245 seconds]
Troy^ has joined #ruby
<shevy> lol
<shevy> now that is actually a funny commit message
lzx has quit [Remote host closed the connection]
naftilos76 has quit [Remote host closed the connection]
<apeiros> I wonder whether there's a good ruby based javascript REPL out there
Macaveli has joined #ruby
<waxjar> a ruby based javascript repl? o.O
<apeiros> I built one, but it's not what I'd consider "good"
sandelius has joined #ruby
<apeiros> in ruby because I want to be able to extend it with objects from ruby
<apeiros> and because I want to embed it into a javascript runtime I built using ruby + therubyracer
<waxjar> what's the use case?
<apeiros> for which part?
<waxjar> all of it :P
<apeiros> the REPL? same as with pry, just for js.
<apeiros> the js runtime? test framework.
<apeiros> because frankly, the js only ones suck donkey balls.
Macaveli has quit [Ping timeout: 264 seconds]
aboudreault has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
<apeiros> not sure which ones I tried, but I think jasmin I aborted after ~30min runtime without result. ran it in my own tiny script (~20 LoC quickly thrown together) -> <1s runtime.
Aova has quit [Read error: Connection reset by peer]
<apeiros> (the testsuite consisted of ~1.2mio assertions)
dav57id has joined #ruby
dav57id has quit [Client Quit]
jimms has quit [Remote host closed the connection]
MaciejCzyzewski has joined #ruby
vikky__ has joined #ruby
<vikky__> hi
<waxjar> damn
kaspertidemann has joined #ruby
<vikky__> i have installed guard gem on ruby 1.9.3
<waxjar> maybe you could hack together a ripl plugin that evals in a V8 context, though ripl is pretty bare bones
<waxjar> nothing like pry :p
<vikky__> but facing problem in guard init
<vikky__> please help
ebbflowgo has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azulinho has joined #ruby
<vikky__> i am getting error cannot load such file -- guard/guard
<shevy> vikky__ did you require it
<apeiros> I wonder whether cowboyd implemented VM#clone. I asked him once and he found it intriguing. would make tab expansion a lot less error prone (run the expression in a VM clone, check the properties of the result)
<MaciejCzyzewski> vikky__ have you installed?
<vikky__> yes i
symbol has joined #ruby
zarubin has quit [Remote host closed the connection]
<shevy> how do you require it
<apeiros> vikky__: are you in a project with a Gemfile?
<vikky__> i need it to watch a file for testing
<MaciejCzyzewski> vikky__ use listen gem
<vikky__> actuyally i am working on continuous testing with phpunit
<shevy> ack I can not require it myself haha
<shevy> require 'guard'
<shevy> Gem::ConflictError: Unable to activate pry-0.10.1, because slop-4.0.0 conflicts with slop (~> 3.4)
symbol has quit [Client Quit]
Aova has joined #ruby
<vikky__> after somewhat research i found that the guard::guard is depreciated and guard::plugin is used instead
iwishiwerearobot has joined #ruby
dc has joined #ruby
timonv has joined #ruby
sigurding has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
sigurding has joined #ruby
aboudreault has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
_Andres has quit [Read error: Connection reset by peer]
nii236|irssi has quit [Remote host closed the connection]
_Andres has joined #ruby
tus has joined #ruby
puppetmonkey has joined #ruby
yfeldblum has joined #ruby
Lewix has joined #ruby
jimms has joined #ruby
teddyp1cker has joined #ruby
einarj has quit [Remote host closed the connection]
stef204 has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Lewix has quit [Ping timeout: 252 seconds]
chinmay_dd has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
<Troy^> can you do this in ruby. if variable.include?("0" || "1")
yeticry has joined #ruby
<vikky__> hi
<Troy^> hi
<vikky__> as i am new to ruby and need guard to do continuous testing
<waxjar> Troy^: no, "0" is truthy, so that'd always return "0". but you could do ["0", "1"].any? { |i| variable.include?(i) }
<arup_r> waxjar: +1
<vikky__> my guard version is 2.11.1
sameerynho has quit [Quit: Leaving]
fantazo has joined #ruby
<vikky__> Error is: cannot load such file -- guard/guard
dc has quit [Remote host closed the connection]
<arup_r> or ["0", "1"].any?(&variable.method(:include?)) shorter version of waxjar :
oo_ has quit [Ping timeout: 265 seconds]
<arup_r> :)
<Troy^> oh my lol
<waxjar> i think that's actually a little longer :P
dc has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
<apeiros> it's also much less readable IMO
<arup_r> Troy^: Are you in Rails or Ruby.. ?
<arup_r> apeiros: Humm
<arup_r> it is called point free style
hamakn has joined #ruby
<arup_r> :)
<waxjar> i kinda wish String#include? took multiple arguments, like String#start_with?/String#end_with?
jgt has quit [Ping timeout: 265 seconds]
<Troy^> ruby arup_r
<arup_r> it does waxjar :
<waxjar> does it now?
<apeiros> waxjar: problem is: ANDed or ORed?
<arup_r> >> "abcd".include?('a', 'x')
<eval-in__> arup_r => wrong number of arguments (2 for 1) (ArgumentError) ... (https://eval.in/280822)
<arup_r> Opps..! sorry
<apeiros> but there'd be room for Enumerable#include_all? and #include_any?
<apeiros> and probably #include_none?
bonhoeffer has quit [Quit: bonhoeffer]
<arup_r> Yes,,,
<waxjar> ah, fair point
blackmesa has quit [Ping timeout: 240 seconds]
<arup_r> nice proposal... really
<arup_r> apeiros:
DadoCe has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Azulinho has quit [Ping timeout: 250 seconds]
<apeiros> every time I open a js console while on mdn I have a happy surprise :D
<apeiros> dunno why I keep forgetting about that
reinaldob has joined #ruby
<apeiros> also I'm still fascinated how in JS typeof(string) can be either "string" or "object"
<Troy^> im use to python console why is the ruby console non interactive seems way different
<apeiros> and of course, there's Array.isArray, but not String.isString
<apeiros> fuck consistence, who needs that anyway?
<apeiros> Troy^: probably because you use the ruby command. use irb - or better yet, install pry and use that.
DadoCe has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
<apeiros> if you install pry - also install pry-doc.
<shevy> apeiros is the js console so good?
<apeiros> try it. go to developer.mozilla.org and open a js console in your browser.
zarubin has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
jgt has joined #ruby
OrbitalKitten has joined #ruby
cyberarm has quit [Ping timeout: 252 seconds]
zarubin has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
havenwood has joined #ruby
<arup_r> We have methods like Integer().. Array().. etc.. And at the same time We have same name class(s) like Array, Integer... Now I am looking for a way to create a custom class say, CustomKlass, which will have a method like CustomKlass()..
<arup_r> how to do so ?
franzip has joined #ruby
<apeiros> arup_r: module Kernel; module_function def CustomClass(…) … end; end
<apeiros> that's how Integer(), Array() etc. are defined.
<arup_r> Is it.. Let me try
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> note, above is 2.1+ code.
<arup_r> Ok
tunaCanBruh has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
maximski has quit []
tunaCanBruh has quit [Ping timeout: 246 seconds]
<arup_r> apeiros: I am getting error as I am wrong. How do I create a object of CustomKlass by calling method CustomKlass() method? https://gist.github.com/aruprakshit/374ef9074f39dd793ad4
naftilos76 has joined #ruby
mroach_ has joined #ruby
<apeiros> arup_r: what is `self` in line 4 of your code?
mroach has quit [Read error: Connection reset by peer]
mroach_ is now known as mroach
<arup_r> `self` is an instance of `Object`
<apeiros> self is the object you call the method on
danman has joined #ruby
<arup_r> Ohh!
<apeiros> and you call it on toplevel. which is obviously not your class.
<arup_r> Yes
juanpablo_ has joined #ruby
operr has joined #ruby
<apeiros> so you can't use self there.
<arup_r> Umm.. So.. Way is ?
<apeiros> use your class
<arup_r> ohh..
<arup_r> humm
* apeiros puts on captain obvious hat ;-p
mroach has quit [Client Quit]
<arup_r> I am actually trying to create a Factory class
jeff-ooh has joined #ruby
<apeiros> Integer and Integer() are required to be unambiguous. i.e. it is always self evident whether it is a method or a constant.
<arup_r> But why Integer.Integer() not needed... ? Because Matz getting higher priority than my custom one...? :(
Macaveli has joined #ruby
<apeiros> i.e., `Integer` is *never* a method. `Integer()` and `Integer "1"` are.
<apeiros> no, because rules. see ^
<arup_r> Humm.. Understood..
<arup_r> How can I give my method the same behavior like them ?
<apeiros> you're already there. just replace `self` as I said.
sinkensabe has joined #ruby
<waxjar> also, the Integer, String, etc helpers are there to "cast" values, not to save you from typing ".new" :p
<apeiros> ^ +1
* arup_r staring at apeiros:'s hat :(
<apeiros> I really dislike them tbh
<waxjar> yeah, me too. although i use Array() occasionally
<apeiros> I find all uses of Array a code stink
juanpablo_ has quit [Ping timeout: 255 seconds]
<apeiros> sole exception is using it with badly designed 3rd party libs.
<apeiros> *all uses of Array()
<apeiros> (obviously using Array is not a code stink :D)
<waxjar> what bothers me most is Integer(nil) raises an exception, but nil.to_i happily returns 0 :/
akas has quit [Quit: Leaving]
Macaveli has quit [Ping timeout: 264 seconds]
<apeiros> Yeah, I've got my issues with Integer/to_i too.
<shevy> you guys are never happy!
Aova has quit [Read error: Connection reset by peer]
mahtennek has joined #ruby
<apeiros> too often I had: value.is_a?(Numeric) ? Integer(value) : Integer(value, 10) (or similar)
ta_ has joined #ruby
<apeiros> shevy: yes, I'm a difficult to please person.
<apeiros> and I'm not ashamed of it :D
<mahtennek> hi i wrote a simple queue class to enqueue and dequeue items. when i require this simple queue in my Sinatra app, i get a nil class method error
<mahtennek> how can i fix this?
<mahtennek> if i run in a normal console app, there is no issue
<apeiros> mahtennek: use stdlib Queue instead?
<apeiros> or is there a good reason why you don't use Array/Queue instead?
<mahtennek> apeiros: please advise, how do i use stdlib?
<arup_r> apeiros: Yes...Yes
<arup_r> Thanks apeiros:
<apeiros> well, Array has #push/#shift and #unshift/#pop (depending on the direction you want the items to move)
<arup_r> shevy: Ummm.......??
Nanuq has quit [Ping timeout: 272 seconds]
<mahtennek> i am customizing my queue function which does that. it's just my own class doing so
<shevy> arup_r wat
<apeiros> mahtennek: and Queue - require 'thread'; Queue…
<apeiros> see Queue's docs for its methods
<mahtennek> apeiros: alright i'll read the docs. thanks
Nanuq has joined #ruby
<apeiros> you'd use Queue if it needs to be threadsafe
<apeiros> you'd use Array if that's not a concern
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
Troy^ has joined #ruby
raphaelss has quit [Quit: leaving]
<mahtennek> apeiros: what if i wrote my own queue class?
<mahtennek> with my own algorithm
<apeiros> mahtennek: again: why?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mahtennek> apeiros: ahh i get what you are saying. alright cool
<arup_r> shevy: nothing....
Aova has joined #ruby
avahey has joined #ruby
<apeiros> mahtennek: there are valid reasons to implement your own queue class, but unless you've got one, you're just adding work for no gain
<mahtennek> apeiros: i get you. let me relook at it if there's a need to.
greensoup has joined #ruby
skj3gg has joined #ruby
zachrab has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
felixjet has joined #ruby
greensoup has quit [Ping timeout: 264 seconds]
zachrab has quit [Ping timeout: 245 seconds]
vozcelik has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
mahtennek has quit []
terlar has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Remote host closed the connection]
vikky__ has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
aapole has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
greensoup has joined #ruby
vozcelik has quit [Ping timeout: 255 seconds]
kalusn has joined #ruby
mistermocha has joined #ruby
ta_ has joined #ruby
greensoup has quit [Ping timeout: 264 seconds]
<apeiros> oh wow, can't believe how long I procrastinated this. but finally implemented that stupid form serializer.
mistermocha has quit [Ping timeout: 244 seconds]
dc has joined #ruby
<apeiros> hm, actually not sure whether "serializer" is the proper term. it transforms it from html to an object structure.
cajone has quit [Quit: Leaving.]
lightstalker has quit [Ping timeout: 250 seconds]
TheNet has joined #ruby
aswen has joined #ruby
aapole has quit [Ping timeout: 252 seconds]
slawrence00 has quit [Ping timeout: 246 seconds]
<TheNet> where can I take a look at the String class?
<TheNet> how it's defined
Spami has joined #ruby
<apeiros> TheNet: documentation or actual code?
<TheNet> apeiros: actual code
<apeiros> d'oh
<apeiros> anyway, ^5 havenwood
Spami has quit [Client Quit]
<TheNet> thanks...didn't realize it wasn't in ruby :/
Sawbones has joined #ruby
<apeiros> TheNet: you can alternatively also have it in ruby, java or some other languages
<havenwood> TheNet: There are multiple implementations of Ruby. That is the reference implementation, in C.
<apeiros> what language do monorail and ironruby use?
commmmodo has joined #ruby
<apeiros> I think there are also (at least partial) implementations in js and python
jenrzzz has quit [Ping timeout: 252 seconds]
<havenwood> C# for IronRuby I think?
Spami has joined #ruby
<apeiros> I thought so too
<apeiros> but ironruby is still 1.8 (and dead)
bogeyd6 has joined #ruby
Takle has quit [Remote host closed the connection]
<havenwood> double dead
blackmesa has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
lightstalker has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
cajone has joined #ruby
Timba-as has quit [Quit: Be back later ...]
Rollabunna has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
<apeiros> holy fuck, just had an idea. wonder whether it'd work.
rubytor has joined #ruby
<apeiros> lolwutt? .io costs 70€/y?
<havenwood> sounds about right
plashchynski has quit [Quit: plashchynski]
<havenwood> 50€ maybe?
<apeiros> at my current registrar it's 69.90
<havenwood> TheNet: You might like Rubinius' ^.
<apeiros> ok, googling around a bit it seems I'm not the first person to have had this idea (surprise). but seems nobody followed it through.
function90 has joined #ruby
<TheNet> havenwood: ty!
<havenwood> TheNet: Topaz and Maglev may have pure Ruby implementations, or maybe RPython and Smalltalk, not sure.
<wasamasa> apeiros: people are lazy after all
<apeiros> I probably won't follow through with it either.
<havenwood> apeiros: What's the idea?
<wasamasa> apeiros: what idea, getting a <ruby-related>.io?
<apeiros> other ideas with more promise and less effort
<apeiros> well, the .io is not pivotal. but yeah, checked whether matching domains would still be free and also checked .io
<havenwood> ah
tmtwd has quit [Remote host closed the connection]
<apeiros> you could do it ruby related (certainly a good focus audience), but it'd probably appeal to a broader audience too.
bonhoeffer has quit [Quit: bonhoeffer]
startupality has quit [Quit: startupality]
startupality has joined #ruby
einarj has joined #ruby
startupality has quit [Client Quit]
iwishiwerearobot has joined #ruby
Sawbones has quit [Remote host closed the connection]
DadoCe has joined #ruby
iwishiwerearobot has quit [Ping timeout: 264 seconds]
<jokke> hey
Aova has quit [Read error: Connection reset by peer]
<jokke> i'm having some trouble with the loadpath in a gem executable i'm developing
<jokke> i'm trying to use require 'my_gem/a_file'
<jokke> but it fails with LoadError
<apeiros> when you installed the gem or while you're developing?
yfeldblum has joined #ruby
<jokke> no when i execute the executable
<apeiros> *sob*
<jokke> ?
<apeiros> when you execute the *installed* executable
<jokke> yes
<apeiros> or when you execute the executable *while developing it* without priorly installing it with `gem install`?
<arup_r> any body kindly please help me to rewrite this examples in Ruby? please please.....
<jokke> nope
<jokke> i installed it
<arup_r> I dunno C#
<apeiros> jokke: ok, got a github repo?
<jokke> not yet
<arup_r> and this is the best examples I found against those patterns...
<arup_r> Any body would please ?
<apeiros> jokke: would help. your file is in GEMROOT/lib/my_gem/a_file ?
<jokke> yes
<jokke> it fails requiring 'mpconvert/converter'
<apeiros> and .gemspec has either no libdir directive or if it has one has it set to 'lib'?
<apeiros> jokke: that should work
<jokke> apeiros: the gemspec is generated by bundler
<apeiros> maybe you're having an issue with multiple rubies/rubygems?
<apeiros> jokke: since I don't generate my specs by bundler, I have no idea to what it defaults. but I'd expect it to use standard libdir.
<apeiros> jokke: github, really :-p
rich31 has joined #ruby
greensoup has joined #ruby
<havenwood> arup_r: What example?
claw__ has joined #ruby
Aova has joined #ruby
<apeiros> yepp, no libdir directive, so it defaults to 'lib'. all good there.
<jokke> apeiros: yeah as soon as i got a working version
<havenwood> jokke: https://gist.github.com/
<arup_r> havenwood: ^^
marcdel has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
bonhoeffer has joined #ruby
<apeiros> hrrrr, while I find the bass of the imac speakers quite a bit overemphasized, they're still very nice speakers even at higher volumes :D
<havenwood> arup_r: Now why would you want to do that?!
jottr has quit [Ping timeout: 256 seconds]
<apeiros> jokke: plerp, nonsense. unless you plan to erase the history, people can see the nonworking states anyway ;-)
<apeiros> i.e. just throw it up there.
<apeiros> jokke: anyway, paste the full exception you get
<arup_r> I am trying to understand these 3 patterns... havenwood
thsig has joined #ruby
ta_ has joined #ruby
freerobby has quit [Quit: Leaving.]
claw_ has quit [Ping timeout: 250 seconds]
<jokke> apeiros: ^
roshanavand has joined #ruby
<arup_r> If I aware of these.... in my coding time I don't need to think about solutions to the problems which someone already discovered.. that's why I am reading through these...
<havenwood> arup_r: Keep in mind that some patterns are there to solve language-specific problems.
zachrab has joined #ruby
<arup_r> havenwood: before doing math we should memorize number tables.. that same principal I'm trying to follow..
<arup_r> humm..
<arup_r> Ruby has no Interface concept.. I know
roshanavand1 has quit [Ping timeout: 252 seconds]
<arup_r> which Java.. C#.. .Net guys will use here and there... :(
thsig has quit [Ping timeout: 245 seconds]
<apeiros> jokke: `require 'rubygems'` is not needed unless you develop for ruby 1.8 too
ta_ has quit [Ping timeout: 252 seconds]
aapole has joined #ruby
<jokke> yeah i just added that out of desperation
thsig has joined #ruby
<arup_r> I know exact translation is not possible.. Within the Ruby boundary... If it can be written... it could be helpful.. I am taking this example..as it explains those diffs.. very well
<havenwood> arup_r: It's like we don't need a "crank the car" pattern because we press the "On" button.
<arup_r> at least for me
soxet has quit [Quit: Leaving]
<arup_r> what does it mean? Ohh! my English!
<apeiros> jokke: unpack the built gem and see whether it contains all the files it should
freerobby has joined #ruby
<jokke> k
Jackneill has joined #ruby
<havenwood> arup_r: Try cranking a modern car. You can sorta apply the pattern to turning the key, but it makes no sense and is a somewhat bizarre way of going about turning on the car.
<jokke> i have no idea how
<apeiros> maybe that `git ls` does not contain it. for whichever reason
jottr has joined #ruby
<apeiros> jokke: untar it
bonhoeffer has quit [Quit: bonhoeffer]
<jokke> yup
<jokke> not there
<jokke> added to git
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab has quit [Ping timeout: 246 seconds]
<havenwood> arup_r: I'd suggest looking into functional programming techniques in Ruby.
<apeiros> well, check `git ls-files` and figure why it isn't there
<apeiros> or use something else than git to list the files
<havenwood> arup_r: Or Ruby-specific patterns.
* apeiros really dislikes that dependency anyway - silly and pointless
cajone has quit [Remote host closed the connection]
<jokke> apeiros: that did the trick
<arup_r> havenwood: what are Ruby specific patterns ?
cajone has joined #ruby
nolic has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
<havenwood> arup_r: Observer pattern for example: http://ruby-doc.org/stdlib-2.2.0/libdoc/observer/rdoc/Observable.html
<arup_r> havenwood: umm,, there is a Ruby book available I see
<arup_r> humm..
<havenwood> arup_r: Or Delegation pattern with Forwardable or one of the Delegators.
Lewix has joined #ruby
Lewix has joined #ruby
<arup_r> ok ok
adriancb has joined #ruby
maximski has joined #ruby
Channel6 has joined #ruby
bonhoeffer has joined #ruby
CustosLimen has quit [Ping timeout: 244 seconds]
<havenwood> arup_r: I vote learn the Ruby stdlib and look into functional design.
<arup_r> I agree
CustosLimen has joined #ruby
Sawbones has joined #ruby
juanpablo_ has joined #ruby
TheNet has quit [Quit: Leaving...]
maximski_ has joined #ruby
Limix has joined #ruby
maximski has quit [Ping timeout: 256 seconds]
greensoup has quit [Ping timeout: 250 seconds]
adriancb has quit [Remote host closed the connection]
riotjone has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
Sawbones has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
thsig has quit [Ping timeout: 252 seconds]
<crome> uh, that looks like a horrible idea
Sawbones has joined #ruby
sigurding has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
greensoup has joined #ruby
tunaCanBruh has joined #ruby
lyuben_ has joined #ruby
lyuben_ has quit [Client Quit]
selaruvich has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
Takle has joined #ruby
MaciejCzyzewski has joined #ruby
<MaciejCzyzewski> Hi folks.
<havenwood> hi
Sawbones has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 250 seconds]
diegoviola has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
lioninawhat has joined #ruby
<arup_r> k
Prometheian has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
<MaciejCzyzewski> What is the difference between #ruby and #ruby-lang channels?
<havenwood> maciejczyzewski: There are more people in #ruby. The #ruby-lang channel used to be nick-reg-required.
<apeiros> is "used to be" relevant info? :D
<apeiros> maciejczyzewski: the difference is 5 btw.
plashchynski has joined #ruby
<havenwood> apeiros: Historical reason? Grasping for some difference. :P
rich31 has quit [Quit: Linkinus - http://linkinus.com]
<MaciejCzyzewski> Heh. I thought that #ruby-lang is for people that improve ruby, work at git repo... havenwood
roshanavand has quit [Remote host closed the connection]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
selaruvich has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
seitensei has quit [Ping timeout: 250 seconds]
rubytor has joined #ruby
<havenwood> maciejczyzewski: There's #ruby-core that's actually some of the MRI team. #ruby and #ruby-lang are quite similar channels. drbrain suggested possibly merging them a long while ago but I don't know that anyone cares to actually make that happen.
Lewix has quit [Remote host closed the connection]
<apeiros> main problem for the merge is probably fflush, the owner of #ruby
<havenwood> AWOL!
Lewix has joined #ruby
qohelet_ has joined #ruby
Limix has quit [Quit: Limix]
<arup_r> havenwood: See how serious they are.. and how blodly they mentioned not needed in JS.. This is what we need in Ruby too... Really :( http://www.dofactory.com/javascript/factory-method-design-pattern
riotjones has joined #ruby
<havenwood> arup_r: You shall NOT use factory pattern!
<havenwood> arup_r: Better?
chrishough has joined #ruby
sigurding has quit [Quit: sigurding]
<arup_r> I already used it...
Lewix has quit [Ping timeout: 245 seconds]
<havenwood> Nooooo!
<arup_r> in my code
lioninawhat has quit [Remote host closed the connection]
<arup_r> what's the Ruby replacement of this then ?
seitensei has joined #ruby
seitensei has joined #ruby
Sawbones has joined #ruby
<havenwood> arup_r: For starters I think you may be equivocating a bit between Factory Pattern and Factory Method Pattern.
ta_ has quit [Ping timeout: 252 seconds]
<arup_r> humm
<havenwood> arup_r: But what are you really trying to do? What's the simplest way to do it?
<havenwood> arup_r: Write simple stuff.
<arup_r> I am done... Just wanted to know what the other Factory patterns do,,, I used simple factory.. :)
nolic has joined #ruby
<havenwood> arup_r: So you have a pattern and you're trying to find something to do with it? Rather than a problem that you're trying to find a pattern for?
<arup_r> your 2 questions are so confusing ... :(
riotjones has quit [Ping timeout: 250 seconds]
<havenwood> arup_r: Do you have an issue you're trying to solve or are you just trying to use a pattern for its own sake?
Aova has quit [Read error: Connection reset by peer]
Sawbones has quit [Ping timeout: 264 seconds]
<havenwood> arup_r: Avoid writing unnecessarily complex code.
<arup_r> I had a issue... where I wrote a OdtBuilder class.. which some times build from erb template and sometimes xml template...
qohelet_ has quit [Quit: qohelet_]
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
<chrisseaton> Is there a Ruby library to read, edit and write back out JSON, preserving the white space? I've got hand written JSON files I'd like to edit in place, without trashing other people's layout decisions
<arup_r> and wanted to do something interesting to create the objects of respecting templates... and I did it... used a factory there...
<arup_r> chrisseaton: Yes
roshanavand has joined #ruby
<arup_r> USe JSON and IO class
MaciejCzyzewski has joined #ruby
<havenwood> arup_r: preserve whitespace <-
<arup_r> stdlib ^^ and Core ^^
<arup_r> didn't get you havenwood :
<havenwood> arup_r: JSON in the stdlib doesn't preserve whitespace, like chrisseaton is asking, unless you know a way?
fabrice31 has joined #ruby
<yxhuvud> christeaton: the stdlib json can prettyprint it indented though. How does the hand written files differ from that?
<arup_r> chrisseaton: Did you try those options ?
Aova has joined #ruby
<havenwood> arup_r: None of those options preserve original whitespace, that I can see.
<chrisseaton> arup_r: thanks for that - but I'd like to preserve entirely - I know some XML parsers can do that
Lewix has joined #ruby
Lewix has joined #ruby
* arup_r stepping back..
Riking has joined #ruby
lioninawhat has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<chrisseaton> i know formatting shouldn't matter - but it does in this case
<chrisseaton> maybe I'll just regex it :)
ta_ has joined #ruby
gigetoo has joined #ruby
zachrab has joined #ruby
Takle has joined #ruby
jefus has quit [Ping timeout: 265 seconds]
fantazo has quit [Quit: Verlassend]
selaruvich has quit [Quit: Leaving]
rbennacer has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
tiwillia has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 264 seconds]
Guest10293 is now known as _chs_
roshanavand has quit [Quit: roshanavand]
lyuben_ has joined #ruby
tiwillia has joined #ruby
hamakn has joined #ruby
ta_ has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
SOLDIERz_ has quit [Ping timeout: 264 seconds]
SOLDIERz_ has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
marcdel has quit []
ta_ has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
tjohnson has joined #ruby
hamakn has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
terlar has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
<blizzy> if I have a bunch of methods that a class calls, should I put the methods in a module or a class? the methods are 'commands' for the bot (the class).
juanpablo_ has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
Akagi201 has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
greensoup has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
AlexRussia has joined #ruby
greensoup has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
<apeiros> blizzy: do the methods use `self` or instance variables?
rubytor has quit [Ping timeout: 252 seconds]
jefus has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
hgl has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Remote host closed the connection]
hgl has joined #ruby
ta_ has joined #ruby
<apeiros> grah! I'm infected with that rails .yml ugliness.
* apeiros got to shake it off…
iwishiwerearobot has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St_Marx has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
St_Marx has joined #ruby
franzip has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
androidbruce has quit [Quit: ZNC - http://znc.in]
androidbruce has joined #ruby
androidbruce has quit [Changing host]
androidbruce has joined #ruby
Sawbones has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godemper2r has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
godemper2r has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
<shevy> yes
<shevy> come to us!
<shevy> .yml files for the win!
yokel has joined #ruby
zarubin has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
<apeiros_> .yaml
sandelius has joined #ruby
sandelius has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
sandelius has joined #ruby
ismael_ has joined #ruby
commmmodo has quit [Quit: commmmodo]
adriancb has joined #ruby
MaciejCzyzewski has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Troy^ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has quit [Client Quit]
trufflesnout has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
teleporting_kat has quit [Remote host closed the connection]
<arup_r> havenwood: you may like it http://rubyclosur.es/
Aova has joined #ruby
tunaCanBruh has joined #ruby
ponga has quit [Remote host closed the connection]
nolic has quit [Remote host closed the connection]
reinaldob has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
livathinos has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
Ivision_ has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
ptrrr has quit [Quit: ptrrr]
AlexRussia has joined #ruby
rbennacer has joined #ruby
Tamae has joined #ruby
marcdel has joined #ruby
operr has quit [Quit: Leaving]
Stany has quit [Ping timeout: 255 seconds]
Azulinho has joined #ruby
terlar has quit [Read error: No route to host]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
roshanavand has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
<havenwood> arup_r: hehe, thought it was a Ruby/Clojure book for a sec!
Sawbones has quit [Remote host closed the connection]
dc has joined #ruby
dcarmich has joined #ruby
<havenwood> cloSure
dcarmich has quit [Client Quit]
<arup_r> get those books to support author so that they can finish it..
Megtastique has quit []
ismael_ has quit [Remote host closed the connection]
aapole has quit [Remote host closed the connection]
noober3 has joined #ruby
aapole has joined #ruby
terlar has joined #ruby
Troy^ has joined #ruby
it0a has joined #ruby
zarubin has joined #ruby
brb3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
marcdel_ has quit []
zachrab has joined #ruby
amclain has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
zachrab has quit [Ping timeout: 244 seconds]
zarubin has quit [Ping timeout: 256 seconds]
dkphenom has joined #ruby
jgt has joined #ruby
yfeldblum has joined #ruby
sandelius has joined #ruby
reinaldob has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
plashchynski has quit [Quit: plashchynski]
chipotle has joined #ruby
josephndenton has joined #ruby
ta_ has joined #ruby
dc has quit [Remote host closed the connection]
hamakn has joined #ruby
Morkel has joined #ruby
bean has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
bean has joined #ruby
bhaak_ is now known as bhaak
roshanavand has quit [Remote host closed the connection]
AlexRussia has joined #ruby
rbennacer has joined #ruby
startupality has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
Timba-as has joined #ruby
_mynameis has joined #ruby
malcolmva has quit [Quit: Leaving]
OrbitalKitten has joined #ruby
juanpablo_ has joined #ruby
g0bl1n has joined #ruby
timonv has joined #ruby
oleo is now known as Guest44597
oleo__ has joined #ruby
Mon_Ouie has joined #ruby
imobachgs has joined #ruby
imobachgs has left #ruby [#ruby]
rbennacer has quit [Ping timeout: 245 seconds]
Timba-as has quit [Ping timeout: 245 seconds]
g0bl1n has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
aswen has quit [Ping timeout: 245 seconds]
Guest44597 has quit [Ping timeout: 265 seconds]
oleo__ has quit [Read error: Connection reset by peer]
dc has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<JyZyXEL> how do i ask the database for what 'category' has the highest average 'rating'?
lkba has quit [Ping timeout: 245 seconds]
<apeiros> JyZyXEL: vague question is vague
<apeiros> "the database" -> which database
<JyZyXEL> sql database
<apeiros> "average rating" -> how is that stored in your db?
jottr has joined #ruby
livathinos has quit [Remote host closed the connection]
<JyZyXEL> its stored as individual ratings
<wasamasa> vague question is minimally less vague
<apeiros> JyZyXEL: sounds like an sql question to me then
fabrice31 has joined #ruby
<wasamasa> sounds to me like someone's using rails
<apeiros> possible, but since they didn't say…
<wasamasa> we'll wait
<apeiros> we shall
Vivex_ has joined #ruby
<JyZyXEL> active records are rails and not ruby?
<apeiros> yes
<wasamasa> yes
<wasamasa> pester #RubyOnRails about it
<jhass> no, it's both!
<jhass> they did
<jhass> crossposter
<wasamasa> and it's ActiveRecord, otherwise that would be a pluralization error
<apeiros> oh
zachrab has joined #ruby
JyZyXEL was kicked from #ruby by apeiros [if you cross post, at least inform all channels that you are posting in other places too]
AlexRussia has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 255 seconds]
Vivex has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
<apeiros> every time I do this I'm reminded of this odd thing that people take a kick much more serious than mere telling them. so weird.
fabrice31 has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 244 seconds]
<jhass> is it?
<jhass> I think it is stronger
kaspertidemann has quit []
<apeiros> yeah. I find it weird.
<apeiros> yes, which means "oh I don't have to listen to rational people - only if they prove they've got authority"
<apeiros> that attitude pisses me off.
Vivex has joined #ruby
mistermocha has joined #ruby
Spami has joined #ruby
<jhass> I don't think people reflect that though
Aova has quit [Read error: Connection reset by peer]
<apeiros> how do you mean?
Zai00 has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
<epitron> Being excluded from a social group causes the same neurons to fire add those that fire when you're physically injured
Vivex_ has quit [Ping timeout: 244 seconds]
<epitron> *as
nfk has quit [Quit: yawn]
<epitron> A social group is an extension of your self
<epitron> Cutting it off hurts... Especially when it's unjust
chinmay_dd has quit [Quit: Connection closed for inactivity]
adriancb has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 245 seconds]
<jhass> apeiros: I don't think they consciousnessly think "I only care if they prove authority"
<apeiros> jhass: ah, neither do I
TripTastic has joined #ruby
<apeiros> jhass: but that's effectively what it means. whether the decision is consciously or unconsciously
Limix has joined #ruby
<apeiros> people generally reflect on *very* little regarding their actions/inactions IME.
<crome> "oh I don't have to listen to rational people - only if they prove they've got authority" - I think it holds perfectly :)
Aova has joined #ruby
ghostmoth has joined #ruby
commmmodo has joined #ruby
Morkel has quit [Quit: Morkel]
Yzguy has joined #ruby
<jhass> yes, I just have troubles blaming somebody for it without pointing it out before that
franzip has joined #ruby
jottr has joined #ruby
lidaaa has joined #ruby
Number2 has joined #ruby
<apeiros> I stopped having troubles. any adult person is responsible, and can be held responsible, to consider their actions.
<apeiros> I do however usually not have any problem to forgive inconsiderate actions, given a sincere apology
franzip has quit [Max SendQ exceeded]
TripTastic has quit [Ping timeout: 250 seconds]
dc has quit [Remote host closed the connection]
fenzil has joined #ruby
mLF has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ta_ has joined #ruby
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greenbagels has joined #ruby
dc has joined #ruby
thsig has joined #ruby
greenbagels has quit [Remote host closed the connection]
DEA7TH has joined #ruby
dc has quit [Remote host closed the connection]
greenbagels has joined #ruby
OrbitalKitten has joined #ruby
fantazo has joined #ruby
Guest91287 is now known as Adran_
jgt has quit [Ping timeout: 245 seconds]
oleo__ has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JBreit has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
pandaant has quit [Remote host closed the connection]
siso has joined #ruby
JDiPierro has joined #ruby
zapata has joined #ruby
slawrence00 has joined #ruby
siso has quit [Quit: siso]
bonhoeffer has joined #ruby
zapata has quit [Quit: leaving]
Spami has quit [Quit: This computer has gone to sleep]
psy_ has quit [Ping timeout: 245 seconds]
danman has quit [Quit: danman]
commmmodo_ has joined #ruby
kaspertidemann has joined #ruby
commmmodo has quit [Ping timeout: 255 seconds]
commmmodo_ is now known as commmmodo
zapata has joined #ruby
hvxgr has quit [Ping timeout: 252 seconds]
p7r has quit [Quit: Lost terminal]
Timba-as has joined #ruby
noober3 has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
Takle has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
athan has quit [Ping timeout: 252 seconds]
nolic has joined #ruby
Azulinho has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
blackmesa has joined #ruby
sigurding has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
greensoup has quit [Ping timeout: 245 seconds]
zapata has quit [Quit: leaving]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commmmodo_ has joined #ruby
commmmodo has quit [Ping timeout: 264 seconds]
commmmodo_ is now known as commmmodo
commmmodo has quit [Client Quit]
sigurding has quit [Client Quit]
havenwood has quit []
zapata has joined #ruby
OrbitalKitten has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
skj3gg has joined #ruby
commmmodo has joined #ruby
chrishough has joined #ruby
jimms has quit [Remote host closed the connection]
<shevy> epitron, which one of those two is you?
St_Marx has quit [*.net *.split]
lightstalker has quit [*.net *.split]
iamninja has quit [*.net *.split]
Lilian has quit [*.net *.split]
testcore has quit [*.net *.split]
hfor has quit [*.net *.split]
St1gma has quit [*.net *.split]
p0wn3d_mhs has quit [*.net *.split]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
tmi1 has joined #ruby
juanpablo_ has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
_mynameis has quit [Quit: Leaving]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ta_ has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
tunaCanBruh has joined #ruby
commmmodo has quit [Quit: commmmodo]
JDiPierro has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
tylersmith has joined #ruby
AlexRussia has joined #ruby
ta_ has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
triple_b has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
OrbitalKitten has joined #ruby
DadoCe has quit [Remote host closed the connection]
dc has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
andhofmt_ has joined #ruby
andhofmt_ is now known as andhof-mt
<andhof-mt> hey
commmmodo has joined #ruby
Seth has joined #ruby
DadoCe has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
hvxgr has joined #ruby
ptrrr has joined #ruby
Aova has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commmmodo has quit [Ping timeout: 252 seconds]
commmmodo_ has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.2-dev]
Aova has joined #ruby
greensoup has joined #ruby
AlexRussia has joined #ruby
<apeiros> yay, `jacob setup_postgres` works again. does all the boring stuff like create db, roles, schemas (the stuff before migrating)
<apeiros> last time I checked rails did that rather badly unless your connection used a superuser
spacemud has quit [Ping timeout: 246 seconds]
Seth has quit [Remote host closed the connection]
athan has joined #ruby
athan has quit [Read error: Connection reset by peer]
athan has joined #ruby
athan has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
athan has joined #ruby
commmmodo has joined #ruby
commmmodo_ has quit [Ping timeout: 264 seconds]
commmmodo has quit [Client Quit]
athan has quit [Read error: Connection reset by peer]
spacemud has joined #ruby
athan has joined #ruby
commmmodo has joined #ruby
timonv has quit [Quit: WeeChat 1.1.1]
timonv has joined #ruby
athan has quit [Read error: Connection reset by peer]
aboudreault has quit [Ping timeout: 264 seconds]
athan has joined #ruby
jimms has joined #ruby
athan has quit [Read error: Connection reset by peer]
kalusn has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
MaciejCzyzewski has joined #ruby
SOLDIERz_ has joined #ruby
SOLDIERz_ has quit [Client Quit]
greensoup has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
dc has joined #ruby
Lemur has joined #ruby
MaciejCzyzewski has quit [Quit: Textual IRC Client: www.textualapp.com]
fantazo has quit [Ping timeout: 240 seconds]
aboudreault has joined #ruby
tomengla_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tomengland has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
Takle has joined #ruby
dc has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 276 seconds]
Prometheian has joined #ruby
symbol_ has joined #ruby
mitchellhenke has joined #ruby
Caius has joined #ruby
slawrence00 has quit [Ping timeout: 250 seconds]
dc has joined #ruby
Prometheian has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
slawrence00 has joined #ruby
riotjones has joined #ruby
kalusn has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
fantazo has quit [Quit: Verlassend]
nerium has joined #ruby
slawrence00 has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 245 seconds]
greensoup has joined #ruby
JBreit has left #ruby ["Leaving"]
wallerdev has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
blackmesa has joined #ruby
dcarmich has joined #ruby
iliketurtles has joined #ruby
trufflesnout has quit [Remote host closed the connection]
athan has joined #ruby
fabrice31 has joined #ruby
Seth has joined #ruby
greensoup has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 265 seconds]
thsig_ has joined #ruby
Sawbones has joined #ruby
OrbitalKitten has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
thsig has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 265 seconds]
juanpablo_ has joined #ruby
Seth has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
bonhoeffer has quit [Quit: bonhoeffer]
juanpablo_ has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
jottr has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
symbol_ has quit [Quit: WeeChat 1.1]
nb_bez___ has quit [Quit: Connection closed for inactivity]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
pygospa has quit [Ping timeout: 264 seconds]
dc has joined #ruby
<blizzy> is there a better way to do this? https://gist.github.com/VBlizzard/27b4ce069671c8dd6a5e
pygospa has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Jackneill has quit [Ping timeout: 264 seconds]
franzip has joined #ruby
hamakn has joined #ruby
gsd has joined #ruby
<apeiros> blizzy: if you'd answer follow up questions I'd care
<blizzy> sorry, apeiros, I didn't even notice it.
<blizzy> <apeiros> blizzy: do the methods use `self` or instance variables?
<blizzy> instances.
<apeiros> your code's indentation is odd. and $ranks will once be a String and once a File instance.
<apeiros> also: don't use globals.
<blizzy> well, it's for a class.
Sawbones has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
<apeiros> still: don't use globals.
Sawbones has joined #ruby
<blizzy> what should I use instead then
<apeiros> there's really no good use case for globals.
<apeiros> that depends on what needs access to it.
Aova has joined #ruby
<blizzy> methods within the class
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
<apeiros> then an instance variable
danman has joined #ruby
riotjone has quit [Quit: Leaving...]
raphaelss has joined #ruby
pkrzywicki has joined #ruby
CpuID2 has joined #ruby
dc_ has joined #ruby
Yzguy has joined #ruby
dc has quit [Ping timeout: 240 seconds]
dc has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc_ has quit [Ping timeout: 255 seconds]
zachrab has quit [Remote host closed the connection]
eka has joined #ruby
zachrab has joined #ruby
mistermocha has joined #ruby
chishiki has quit [Quit: WeeChat 1.1.1]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
chishiki has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
plashchynski has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
tier has quit []
iwishiwerearobot has joined #ruby
naftilos76 has quit [Remote host closed the connection]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Rollabunna has quit [Quit: Leaving...]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
Aswebb_ has joined #ruby
atomical has joined #ruby
pika_pika has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m00zy has joined #ruby
banister has joined #ruby
toothe has joined #ruby
reinaldob has joined #ruby
oleo__ is now known as oleo
joufflu has joined #ruby
Takle_ has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Takle has quit [Read error: Connection reset by peer]
dc has quit [Remote host closed the connection]
pygospa has quit [Ping timeout: 250 seconds]
reinaldob has quit [Ping timeout: 252 seconds]
dc has joined #ruby
danman has quit [Quit: danman]
pygospa has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
tunaCanBruh has joined #ruby
dc has quit [Ping timeout: 244 seconds]
Troy^ has joined #ruby
Rollabunna has joined #ruby
vifino has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
swgillespie has joined #ruby
zyxelthrone has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
momomomomo has joined #ruby
thsig_ has quit [Remote host closed the connection]
havenwood has joined #ruby
athan has quit [Ping timeout: 255 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
thsig has joined #ruby
chishiki has quit [Quit: WeeChat 1.1.1]
ptrrr has quit [Quit: ptrrr]
Zai00 has quit [Quit: Zai00]
trufflesnout has joined #ruby
ChoiKyuSang has joined #ruby
atomi has quit [Quit: Lost terminal]
freerobby has quit [Quit: Leaving.]
claptor has joined #ruby
chishiki has joined #ruby
andhof-mt has quit [Remote host closed the connection]
LouisRoR has joined #ruby
atomi has joined #ruby
toothe has quit [Changing host]
toothe has joined #ruby
CpuID2 has joined #ruby
freerobby has joined #ruby
LouisRoR has quit [Client Quit]
momomomomo_ has joined #ruby
tylersmith has quit []
adriancb has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
momomomomo_ has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 244 seconds]
LouisRoR has joined #ruby
MrGlass has joined #ruby
apurcell has joined #ruby
codecop has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
<MrGlass> Hi. Anyone a good tutorial/article out there which can explain ruby scoping? Specifically, scoping of vars in for loops and other similar constructs.
skj3gg has joined #ruby
<crome> searching for "ruby variable scope" gave me 14000+ results
thsig has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 245 seconds]
techietrash has joined #ruby
vifino has joined #ruby
ghostmoth has joined #ruby
DadoCe has quit [Remote host closed the connection]
<MrGlass> crome: i did similar searches, found people complaining on SO but nothing terribly informative. Was hoping someone could point me in the right direction
apurcell has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
Aova has joined #ruby
<crome> I guess it's because variable scopes in ruby are really nothing special
CpuID2 has quit [Quit: This computer has gone to sleep]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
danzilio has joined #ruby
hamakn has quit [Remote host closed the connection]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
hamakn has joined #ruby
Hobogrammer has joined #ruby
<crome> although it's about more advanced stuff
<MrGlass> yeah, im just trying to understand my loop constructs. For example, when I say `for i in foo` it seems like i is a local variable thats a clone, not a pointer to a position int he array
aapole has quit [Ping timeout: 250 seconds]
<MrGlass> but then, i cant figure out why this doesnt work: https://gist.github.com/MisterGlass/92a68bbaa9059b05ddfb
<MrGlass> I think it should give me a 2d array. instead, I get an array of 8 0s
hamakn has quit [Ping timeout: 244 seconds]
nolic has quit [Remote host closed the connection]
<crome> uh
marr has joined #ruby
DadoCe has joined #ruby
<crome> what are you trying to achieve?
<MrGlass> 2d array of, 8x8, all 0s
<MrGlass> which i can then use as a ghetto data structure for something
<Mon_Ouie> [0..7] is not what you think it is
<Mon_Ouie> >> [0..7].size
<eval-in__> Mon_Ouie => 1 (https://eval.in/281085)
Vivex_ has joined #ruby
<Mon_Ouie> It's an array of one element, that element being the range 0..7
Vivex has quit [Ping timeout: 255 seconds]
<MrGlass> oh
bonhoeffer has joined #ruby
<MrGlass> i need to not wrap it
<MrGlass> yay
momomomomo has joined #ruby
<Mon_Ouie> And just a more convenient way of writing your code is to pass a block to Array.new
<Mon_Ouie> Array.new(8) { |i| Array.new(8, 0) }
<MrGlass> Mon_Ouie: i figured there was a btter way to do this. thanks!
athan has joined #ruby
<MrGlass> i tried `Array.new(8,array.new(8,0))` but of course that gave me 8 pointers to the same array
zacstewart has joined #ruby
Soliah has joined #ruby
bdamos has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
user083 has joined #ruby
athan has quit [Ping timeout: 250 seconds]
m8 has quit [Quit: Sto andando via]
athan has joined #ruby
Channel6 has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
davedev2_ has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
Troy^ has joined #ruby
fabrice31 has joined #ruby
Rollabunna has quit [Quit: Leaving...]
swgillespie has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Overlordz has quit [Remote host closed the connection]
momomomomo has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
adriancb has quit [Remote host closed the connection]
nahtnam has joined #ruby
juanpablo_ has joined #ruby
ismael_ has joined #ruby
thsig has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
jimms has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 244 seconds]
josephndenton has quit [Quit: Lost terminal]
lioninawhat has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
jherbst has joined #ruby
fenzil has quit [Ping timeout: 244 seconds]
skj3gg has quit [Quit: ZZZzzz…]
ghostmoth has quit [Quit: ghostmoth]
Vile` has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
Vile` has joined #ruby
sankaber has joined #ruby
DadoCe has quit [Remote host closed the connection]
athan has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
thsig has joined #ruby
zarubin has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
xymbol has joined #ruby
Soda has quit [Remote host closed the connection]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
davedev2_ has quit [Ping timeout: 256 seconds]
atomi has quit [Quit: updating arch linux wish me luck]
thsig has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
jottr has joined #ruby
ismael_ has quit [Remote host closed the connection]
ismael_ has joined #ruby
withnale__ has quit [Quit: Be back later ...]
ozialien has quit [Remote host closed the connection]
reinaldob has joined #ruby
zachrab has joined #ruby
Aova has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
pika_pika has quit [Ping timeout: 245 seconds]
athan has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
reinaldob has quit [Ping timeout: 245 seconds]
it0a has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 245 seconds]
Timba-as has quit [Quit: Be back later ...]
pygospa has quit [Ping timeout: 244 seconds]
Timba-as has joined #ruby
iwishiwerearobot has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
pygospa has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
Lewix has quit [Ping timeout: 245 seconds]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CpuID2 has quit [Client Quit]
franzip has quit [Quit: ...]
charliesome has quit [Quit: zzz]
thsig has joined #ruby
hamakn has joined #ruby
Troy^ has joined #ruby
danzilio has quit [Quit: My laptop is going to sleep!]
reinaldob has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
_gautam_ has joined #ruby
m00zy has quit [Ping timeout: 250 seconds]
<softinio> so I am new to ruby ... on my mac and on my vps is it best to install ruby via homebrew (mac) and yum (centos) or should I be using RVM ?
hiyosi has joined #ruby
zacstewart has joined #ruby
tunaCanBruh has joined #ruby
lioninawhat has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
momomomomo has joined #ruby
thsig has joined #ruby
regnartim_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
<ackpacket_> I have a function that takes a block and a string as an argument. Inside that block, I call a method that may throw an argument error. When I put a rescue underneath that method call, I get an error saying "expected keyword_end"
<ackpacket_> am I misunderstanding where and how to use rescues?
towski_ has quit [Ping timeout: 264 seconds]
<crome> softinio: rvm/rbenv is a solid way of going about it
Lemur has quit [Remote host closed the connection]
towski_ has joined #ruby
<softinio> crome: which one better between rbenv and rvm ?
Lemur has joined #ruby
thsig has quit [Ping timeout: 252 seconds]
pkrzywicki has quit [Ping timeout: 244 seconds]
Limix has joined #ruby
athan has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
livingstn has joined #ruby
Lemur has quit [Ping timeout: 245 seconds]
<crome> I had some stupid issues with rvm (most likely my own fault) but I'm an rbenv fan
regnartim has joined #ruby
<regnartim> #ubuntu
<crome> it doesn't make a whole lot of difference, though
regnartim_ has quit [Quit: Leaving]
<softinio> crome: ok will give rbenv a shot. thanks for advice
wallerdev has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
davedev24_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
cmckee has quit [Quit: cmckee]
fenzil has joined #ruby
davedev24_ has joined #ruby
regnartim has quit [Quit: Leaving]
regnartim has joined #ruby
charliesome has joined #ruby
Sawbones has quit [Remote host closed the connection]