_adeponte has quit [Remote host closed the connection]
runnyard has quit []
adeponte has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
sailias has quit [Ping timeout: 248 seconds]
paissad_ has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 248 seconds]
rupee has quit [Quit: Leaving]
<kenneth>
hey
<kenneth>
do you guys know if there's a gem (or an easy way) i can use to only apply a middleware to certain path patterns
JZTech101 has joined #ruby
wesside has joined #ruby
ner0x has joined #ruby
Davey has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
<kenneth>
rack middleware that is
osvico has joined #ruby
tylersmith has joined #ruby
Nisstyre-laptop has joined #ruby
wsterling has joined #ruby
kaneda^ has quit [Quit: nn]
atno has quit [Remote host closed the connection]
Kabaka has quit [Excess Flood]
kadoo has joined #ruby
hogeo has joined #ruby
jds has joined #ruby
arya has joined #ruby
enthrops has joined #ruby
Kabaka has joined #ruby
baroquebobcat has quit [Ping timeout: 248 seconds]
Nisstyre-laptop is now known as Nisstyre
yim has joined #ruby
wsterling has quit [Ping timeout: 268 seconds]
<enthrops>
I'm looking to gain some experience. Does anybody have any open source projects that I could make simple contributions to?
<popl>
enthrops: look around github for open issues, fix them, submit a patch
arya has quit [Ping timeout: 246 seconds]
yshh_ has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
marr has quit [Ping timeout: 268 seconds]
<enthrops>
popl: yeah I looked around for a bit but I can't know how difficult those fixes or features are going to be to implement
arya has joined #ruby
<Spooner>
Well, choose something simple, ratehr than going for the biggies (Rails, etc.). Ideally a minor gem you have use of (that helps your enthusiasm to actually work through it).
chriskk has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
<enthrops>
Spooner: I guess
<enthrops>
thanks
yacks has quit [Ping timeout: 264 seconds]
<Spooner>
Or make some trivial gems yourself (no reason you can't think of something useful that is 100 lines long).
<enthrops>
Spooner: no idea what I would do
<popl>
enthrops: I would suggest document fixes then, to start off.
<popl>
enthrops: you know, typo correction and that sort of thing
<popl>
*documentation
RubNoob has joined #ruby
<popl>
if you find a project you really want to help out with contact the author
<enthrops>
popl: would rather prefer actual code
<popl>
if they have an IRC channel, join that and say you'd like to help and ask how
<popl>
enthrops: it's a social thing first man
<popl>
enthrops: you need to network :)
<enthrops>
popl: right
ebobby has quit [Quit: Lost terminal]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
breakingthings has quit [Quit: breakingthings]
<popl>
I was so scared shitless at university. I was elected to be project lead for my software engineering team and our project was to contribute a significant feature or codefix to an established FOSS project.
<popl>
well "elected"
RubNoob has quit [Client Quit]
batman___ has quit [Quit: Leaving]
<popl>
sort of like nobody-else-wants-to-do-this-but-you-are-the-guy-who-knows-linux-and-IRC-stuff-so-you-do-it
<popl>
enthrops: anyways, my point is you need to express interest in helping with the project, and the way to do that is to get your foot in the door no matter how you can
greenarrow has quit [Quit: Leaving]
greenarrow|2 has joined #ruby
<popl>
so if that means doing documentation fixes or whatever, go for it
Davey has quit [Quit: Computer has gone to sleep.]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<popl>
eventually you will build trust and then things will follow naturally
fomatin has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
<enthrops>
popl: got you, thanks :)
<popl>
no problem, good luck
tylersmith has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
arubin has joined #ruby
falood has joined #ruby
ryannielson has joined #ruby
arya has quit [Ping timeout: 276 seconds]
sepp2k1 has quit [Quit: Leaving.]
ivanoats has quit [Remote host closed the connection]
nari has quit [Ping timeout: 256 seconds]
maroloccio has joined #ruby
zomgbie has quit [Ping timeout: 264 seconds]
razi has quit [Quit: Leaving.]
felixjet has joined #ruby
benlieb has quit [Quit: benlieb]
buzzybron has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
burlyscudd has joined #ruby
fredjean has joined #ruby
chriskk has joined #ruby
adeponte has quit [Remote host closed the connection]
enthrops has quit [Quit: enthrops]
joshwines__ has joined #ruby
djbkd has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 240 seconds]
Inside_ is now known as Inside
Inside has quit [Changing host]
Inside has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
banghouse has quit [Remote host closed the connection]
ILoveYou has quit [Ping timeout: 240 seconds]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
fredjean has quit [Quit: Computer has gone to sleep.]
kadoo has joined #ruby
yshh has joined #ruby
kasper_ has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
s7ry93r has joined #ruby
<ner0x>
Anyone use capistrano to install rvm and the require libs?
codesoda has quit [Remote host closed the connection]
codesoda has joined #ruby
lyanchih has joined #ruby
<s7ry93r>
what exactly does heroku do for you that a hosting site cannot ?
<sam113101>
easy deployment?
<s7ry93r>
just for rails?
BrianJ has joined #ruby
<waxjar>
a whole load of other stacks too
<sam113101>
you can't just drop files with ftp like you do with php
<sam113101>
I prefer to use a VPS personally
adeponte has joined #ruby
fomatin has joined #ruby
codesoda has quit [Ping timeout: 264 seconds]
havenwood has quit [Read error: Operation timed out]
<s7ry93r>
do they do anything with security for you cert signing etc. ?
kofno has quit [Remote host closed the connection]
daniel-s has quit [Ping timeout: 256 seconds]
splittingred has joined #ruby
<s7ry93r>
What about acting as a Registrar as well ?
jlast has joined #ruby
kofno has joined #ruby
<sam113101>
do they sell domain names?
horofox has joined #ruby
fabioluciano has quit [Quit: Saindo]
<sam113101>
I don't think they do
Kruppe has joined #ruby
io_syl has quit [Ping timeout: 240 seconds]
jbueza has quit [Quit: Leaving.]
<jonahR>
hi, this may be stupid but if I refactor code in an existing repo for a gem, do I have to change the version every time? or do I just tag it in another version ? im confused
hit has quit [Ping timeout: 240 seconds]
<s7ry93r>
There website is a little hard to follow on their offering cuz they spend so much time talking about their technology.
io_syl has joined #ruby
sevenseacat has joined #ruby
<bnagy>
jonahR: up to you, really, provided you don't break the build ( changing manifest etc )
zomgbie has joined #ruby
nari has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
<sam113101>
they say they make it simple with dynos but it doesn't sound like it
axl_ has quit [Quit: axl_]
<s7ry93r>
@JonahR … did you get that code from GitHub?
<bnagy>
for tiny changes you might not bother, imho you should probably update VERSION and CHANGES for almost everything though
<jonahR>
yeah i own the repo (and the gem code)
Spooner has quit [Quit: Leaving]
<waxjar>
if you're just fixing bugs you generally leave the version number in tact and let the owner handle version numbers
<bnagy>
depends if you think existing users should get your new code
<s7ry93r>
@sam … That is problem … I don't quite get their wording for things.
<waxjar>
if you're contributing, that is
pootler__ has quit [Ping timeout: 255 seconds]
pootler_ has quit [Ping timeout: 240 seconds]
redgirl has quit [Quit: This computer has gone to sleep]
<jonahR>
yeah i read it but was kinda confused with the part about bumping the version on each push
<jonahR>
Thanks!
<bnagy>
you could try a dev branch?
adeponte has quit [Remote host closed the connection]
<s7ry93r>
@JonahR … The Ruby Rogues did a complete episode on gem construction, bundling, versioning, etc…. almost all of them have built and maintained successful gems … i suggest, if you have 45 mins to give it a listen
<waxjar>
ah. well if there's a critical bug i'd definitely push a new version, but if it's something minor you could do a couple bugfixes first and then push a new version
<jonahR>
damn i must have missed that episode, ill check it out now then! Thank you
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
<s7ry93r>
Your welcome
<s7ry93r>
;)
adeponte has joined #ruby
slash_nick has joined #ruby
adeponte has quit [Remote host closed the connection]
<s7ry93r>
For those of you that heard this before, I apologize … but I want to get some answers … What exactly does Heroku do for you that a hosting site cannot ?
<Quadlex>
Nothing.
<s7ry93r>
nice
<Quadlex>
It's how easy they make it that's the value
<s7ry93r>
do they patch ruby for me?
<Quadlex>
With a hosting site you might have to figure out deployment or load balancing yourself
<Quadlex>
Uh, I think they might?
zomgbie has quit [Ping timeout: 264 seconds]
<s7ry93r>
with this whole yaml breach thing?
kristiandelay has quit [Disconnected by services]
r4nd0m1_ has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
kristian_ has joined #ruby
<waxjar>
heroku basically just asks you for some environment variables and that you maintain a git repository of your app. you deploy with a simple git push
r4nd0m1 has quit [Ping timeout: 240 seconds]
<waxjar>
they make it really easy to scale, install extra services and whatnot
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kadoo has joined #ruby
<milardovich>
Hi guys! is there a "Ruby"-way to find the maximum two values of an array?
<waxjar>
[1,2,3].max
<milardovich>
waxjar, aha... and what about if I have binary numbers, not decimals?
<s7ry93r>
@waxjar … Thank you !!! Wish they would put it in plain text on their website … instead of talking in length about dynos.
<milardovich>
waxjar, and I need the two bigger values
<s7ry93r>
do max … strip … do max again
Beoran__ has joined #ruby
<s7ry93r>
take bow
<waxjar>
milardovich, first sort the array then take the last two elements?
<milardovich>
waxjar, that's why I asked if there is no "ruby"-way to do that
<milardovich>
Or I need to do that manually
<milardovich>
:)
<waxjar>
[4,3,2,1].sort.last 2 seems pretty ruby-ish to me
<milardovich>
waxjar, BTW, how can I sort a binary array? is it the same?
<waxjar>
i don't really know what a binary array is
tomzx_ has joined #ruby
<bnagy>
numbers are numbers, strings are strings
<popl>
sorting is sorting!
Beoran_ has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<milardovich>
sorry, I meant an array of binary numbers
<bnagy>
there is no such thing as a binary nuber
<milardovich>
bnagy, right, I just figured that out
<bnagy>
you mean binary representation
<milardovich>
It's just an string of 0s and 1s
keanehsiao has joined #ruby
<milardovich>
bnagy, I guess so
<bnagy>
right - then to_i(2) or possibly unpack is what you're after
<bnagy>
if you sort them as strings you'll get string sorting
<milardovich>
bnagy, and that would convert the strings to binary numbers?
<milardovich>
Can I use it with a hole array?
<bnagy>
09:28 < bnagy> there is no such thing as a binary nuber
<keanehsiao>
Hi. everybody.. I have a memory leak with my long running job. and I use gdb and lookup objects, figure out objets count are : String=>45043, Array=>10506, RubyVM::InstructionSequence=>8498
<milardovich>
Or do I need to do it "element by element"
<s7ry93r>
this eval.in site is awesome
<milardovich>
bnagy, oh, sorry
<keanehsiao>
how should I clean those objects ? neither ObjectSpace.garbage_collect or GC.start works....
<keanehsiao>
bnagy: really??? I think that's a high number... if that's low... how should I track down with gdb?
Davey has joined #ruby
<bnagy>
well they cover all the string literals and arrays in all of ruby and the stdlib
<bnagy>
before you even get to your code
<bnagy>
but it's not normally string or array count that kills you anyway
<bnagy>
it's big ones
<bnagy>
profiling MRI is Just Hard
<bnagy>
my best results have been with running stuff on JRuby and using the java profiling tools - jvisualvm is free
<bnagy>
but it's not always an option
<bnagy>
the other thing that happens a LOT, like really a lot
<bnagy>
is that you think you have a leak but you don't
Solnse has quit [Quit: Leaving.]
<bnagy>
it's just GC and OS memory management knowing better than you
<milardovich>
bnagy, sorry for my ignorance :-/ but the script you wrote gives me the values of the array. How could I get the index?
<bnagy>
so unless it OOMs, then it could just be normal
<bnagy>
milardovich: the original index of the biggest values?
<keanehsiao>
bnagy: but app's memory still growing and finally quit...
<milardovich>
bnagy, right
<milardovich>
oh, sorry
<milardovich>
I figured out that I could use the values as well
mmitchell has joined #ruby
<milardovich>
bnagy, forget it, thanks ^^
<bnagy>
milardovich: kinda tricky tbh
<bnagy>
I would probably walk with each_with_index and use a best and second_best var
carlyle has joined #ruby
<bnagy>
but it's ew
cantonic_ has joined #ruby
<bnagy>
keanehsiao: is jruby an option?
<milardovich>
bnagy, I see, but I just can replace the values your script returns to the new array
<bnagy>
even just to test?
<keanehsiao>
I am not so sure.. but gems I use may not really works on jruby??? eventmachine, sequel, and something are c base...
<bnagy>
yeah might not work - might though!
fredjean has joined #ruby
ssvo has joined #ruby
<bnagy>
otherwise you can grub about in ObjectSpace, but that's crappy as well
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
<bnagy>
basically what you're looking for are either object counts that grow consistently, or allocated strings or arrays that keep getting bigger
fenicks has quit [Remote host closed the connection]
diegoviola has joined #ruby
<bnagy>
with EM you can add a periodic_timer or whatever it's called to do some objectspace analysis
viszu has quit [Quit: Leaving.]
<bnagy>
MRI needs a real profiler :/
<diegoviola>
use rbx?
<bnagy>
oh! valgrind works sometimes as well
<keanehsiao>
ya.. a profiler.. that's so true...
<bnagy>
if you're on *nix
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<bnagy>
I've found stuff that way
harrymoreno has quit [Quit: harrymoreno]
tomzx_ has left #ruby [#ruby]
<keanehsiao>
let me check that out... :D
echevemaster has quit [Quit: Leaving]
twoism has quit [Remote host closed the connection]
zomgbie has joined #ruby
Kelet has joined #ruby
burlyscudd has joined #ruby
<Kelet>
Hello, I'm kind of searching for an 'idiomatic' way to do something. Basically, I have an initializer for a class and it needs to take say 15-20 arguments. This is obviously ugly. So I did some googling and found a way to use a hash as one argument and do instance_variable_set to make the instance variables. Then using the eigenclass we can use attr_accessor.
<Kelet>
The downside of this is that I have no 'easy' way of ensuring that each argument was provided for and no extreneous arguments are provided
ryannielson has quit [Remote host closed the connection]
<Kelet>
Mostly used just for academic purposes, but could anyone recommend an alternative way or an addition to ensure that is more safe?
ttt has joined #ruby
<popl>
Kelet: have you considered passing a hash?
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
<sam113101>
I don't understand the eigenclass part
<Kelet>
popl, I believe that is about the same thing I'm doing, only I'm taking the hash and making instance variables that have the value of the hash values. If I had a hash and I wanted to ensure the arguments I would have to do roughly the same thing -- which is go through and make sure that the key 'proper_name' exists in the hash and so on.
burlyscudd has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
<Kelet>
I guess that may be the only way, guess I'm just looking for ruby magic as I think this could be a common occurance
zomgbie has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby
<Kelet>
also small errata: I didn't mean to have 'puts' in the to_s, before anyone may point it out
<popl>
perhaps a common anti-pattern
<superscott[8]>
Kelet: you could create a constant with all the attributes you expect, then make sure your key is apart of that constant
<sam113101>
couldn't you just use attr_accessoir without that eigenclass thing?
ffio has quit [Ping timeout: 255 seconds]
<Kelet>
sam113101, No I read about eigenclasses but I'm not completely solid on it. I could not find a way to do it minus the eigenclass.
vlad_starkov has joined #ruby
<bnagy>
Kelet: google dwemthy's array
<bnagy>
but the way you're storing your characters the meta stuff is unneccessary
codesoda has joined #ruby
<sam113101>
seems unnecessary to me, but I'm too lazy to try it
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox is now known as DanKnox_away
dankest has quit [Quit: Leaving...]
RichardBaker has joined #ruby
jeremywrowe has quit [Quit: leaving]
harrymoreno has joined #ruby
jeremywrowe has joined #ruby
teclator has quit [Ping timeout: 268 seconds]
tylersmith has joined #ruby
milardovich has quit [Quit: Leaving]
zets has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
<bnagy>
Kelet: the other pattern you might like is to proxy to an internal OStruct with method_missing
rickmasta has joined #ruby
zets has joined #ruby
jeremywrowe has quit [Client Quit]
<Kelet>
Thanks guys, I honestly think I'll just play around with this hash for now, but the traits stuff from _why and ostruct stuff looks of interest.
<bnagy>
unless you want a proper DSL ( dwemthy style ) then try to eliminate all the metaprogramming you're doing
mikepack has joined #ruby
<bnagy>
you don't need it and it's going to be annoying / confusing later
yacks has joined #ruby
tylersmi_ has joined #ruby
<Kelet>
bnagy, ostruct looks decent, but unless I'm misinterpreting, all attributes are like 'attr_accessor', but I only want mine to be read, not written
<Kelet>
although I could be misinterpreting
tylersmith has quit [Read error: Connection reset by peer]
<keanehsiao>
bnagy: valgrind looks cool, tracking down the mem... thanks a lot.. :D
<bnagy>
Kelet: uh then why are you using accessor in your code? :/
<Kelet>
bnagy, oops!
bradhe has quit [Remote host closed the connection]
<bnagy>
Kelet: anyway you could filter = methods in method_missing, or whatever
teclator has joined #ruby
<bnagy>
so many ways.
fomatin has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
guiocava_ has joined #ruby
diegoviola has quit [Ping timeout: 268 seconds]
Guest72090 has joined #ruby
jlast has joined #ruby
Guest72090 is now known as diegoviola
<Kelet>
Hmm well I'll try to make two implementations then, one using metaprogramming and one using ostruct, and I'm going to make sure both ensure the source hash has all of the attributes (and not more), and compare their readability (to me) and see what's good. I appreciate the knowledge!
kasper has joined #ruby
falood has quit [Remote host closed the connection]
<bnagy>
Kelet: to get defaults you can use a hash as args and then merge with a default hash
freerobby has joined #ruby
guiocavalcanti has quit [Ping timeout: 268 seconds]
<bnagy>
@opts = DEFAULTS.merge user_opts
<waxjar>
do you really need 10-15 things to initialize an object? sounds like you need to rethink your architecture
<Kelet>
waxjar, They are attributes of a character in a video game and the characters have 10-15 attributes
<Kelet>
And that could be a possibility
guiocavalcanti has joined #ruby
<Kelet>
I just can't think of one that lends itself better to readability/usability than having the attributes be part of the initializer
jlast has quit [Ping timeout: 255 seconds]
<bnagy>
Kelet: also what sometimes helps is to imagine you have the perfect API and write some client code against it
<bnagy>
and then go back and make it work
guiocava_ has quit [Ping timeout: 256 seconds]
<bnagy>
thematically similar to TDD or BDD or whatever the cool kids call it
zigomir_ has quit [Ping timeout: 268 seconds]
hattusili_III has joined #ruby
geoffw8_ has quit [Ping timeout: 240 seconds]
kasper has quit [Ping timeout: 276 seconds]
<bnagy>
dsbd = DeathSkullBatwingDude.new armor: 30 # armor is usually 22
<sevenseacat>
bnagy: oh i like that approach. (write against the API you wish you had)
pen has quit [Read error: Connection reset by peer]
dankest has joined #ruby
pen has joined #ruby
Guga_ has quit [Quit: ~]
danshultz has joined #ruby
carlyle has quit [Remote host closed the connection]
<Kelet>
That is an excellent approach, and so simple. Thanks for the tips.
k-man has quit [Read error: Connection reset by peer]
<Kelet>
Also does anyone have experience setting up sqlite3 on Windows for Ruby 2.0.0 installed By RubyInstaller? Did you have to build it using the Ruby Dev Environment?
<popl>
that's how I learned to do it in uni
* popl
nopes out of the windows conversation
splittingred has quit [Quit: splittingred]
<Kelet>
haha
<popl>
Kelet: you can try #win32
guiocava_ has joined #ruby
k-man has joined #ruby
kofno has quit [Remote host closed the connection]
<Kelet>
I asked here yesterday but admittedly I was in a shitty mood and responded a bit hostiley for which I apologize, but there seems to be a lot of conflicting info on the internet, and I'm kind of confused as to why 'gem install sqlite3' actually installs something.
<Kelet>
What is it installing, if it doesn't work? sqlite3.exe and sqlite3.dll are in my PATH.
brennanM_ has quit [Remote host closed the connection]
<sevenseacat>
you dont want it to install the sqlite3 gem?
<Kelet>
It says cannot find sqlite3_native when I require 'sqlite3'
<popl>
Kelet: the thing about the WWW is that anybody with any amount of experience can post some tutorial or something
guiocavalcanti has quit [Ping timeout: 268 seconds]
<Kelet>
If no one can help, I will just try compiling the gem myself which seems to have worked for some, just wondering if anyone can confirm/deny if that worked for them
<fryguy>
Kelet: the sqlite you are referring to is server code, you still need client code to interface with sqlite
<fryguy>
Kelet: also, strongly consider using *nix for development instead of windows
<fryguy>
it'll make your life a lot easier
guiocavalcanti has joined #ruby
<Kelet>
fryguy, I do for much of my development, but at other times I am stuck on Windows machines
<fryguy>
Kelet: jc. why
cads has quit [Quit: Leaving]
<Kelet>
fryguy, I work with computer vision and all of our projects are regretably programmed using Visual Studio and they leverage features provided by Microsoft, I understand I can set up a VM and such, but it would be nice to be able to not have to.
<Kelet>
Although I'm tempted to.
<fryguy>
vms are pretty easy
<Kelet>
My machine isn't very powerful but I guess I don't even need X
<Kelet>
So it would probably run fine
guiocava_ has quit [Ping timeout: 256 seconds]
<Kelet>
Ultimately I just wanted to use Sequel to set up a database for a small Sinatra project I'm working on to access.
<bnagy>
I'm more worried about you running such a shit db than dev'ing on Windows
<Kelet>
bnagy, What do you suggest
<popl>
postgresql
<popl>
\o/
<bnagy>
yeah postgres or mysql
<bnagy>
I prefer postgres
<bnagy>
dunno about windows support though
<fryguy>
depends on wha tyou are doing with the database for sure
<sevenseacat>
i wouldnt use sqlite for anything, ever.
<Kelet>
I thought sqlite3 was similar to mysql but with many features taken out, I read through the feature difference and didn't find anything that I would deem useful for my project
<Kelet>
But there might be many more differences
<bnagy>
yeah like shit performance
yim has quit [Remote host closed the connection]
<bnagy>
and just.. being shit
<Kelet>
lol
<popl>
bnagy: how descriptive
<fryguy>
bnagy: if it's such shit performance then why do firefox and chrome use it. same with iphone and android and apple mail and dropbox, and plenty of others
<Kelet>
This is perhaps the only community I've seen such hostility toward sqlite3 in
<Kelet>
I mostly used it because as fryguy says, I've seen it used in a lot of software that I use personally.
<bnagy>
also, for small projects imho you should look at some nosql options, they're a lot easier and quicker to protoype with
<Kelet>
Well
<Kelet>
The project is small but the database may grow to be large
<bnagy>
fryguy: because it's small and they have miniscule dbs
<Kelet>
I'm newb at database, it's something I've been learning.
<bnagy>
if you're not actually going to be doing any relational queries then all the sql dbs are a lot of pissing about for no reward
Kabaka has quit [Excess Flood]
<fryguy>
bnagy: there are use cases where using sqlite is correct. saying it's unanimously shit is just wrong
<sevenseacat>
not 'correct', just 'no other option'
adeponte has joined #ruby
<bnagy>
fryguy: ok, it's good when you don't care that it's shit
Kabaka has joined #ruby
<fryguy>
bnagy: clearly you can't be reasoned with. enjoy your dogmatic avoidance of technologies
<Kelet>
My database will likely grow to >100gb, millions of entries with 8-12 columns-ish. It will be relational. Although I do realize I'll need to gain a lot of knowledge to set it up and use it properly. I've done databases a few times before using ORMs for Java.
butblack has joined #ruby
<Kelet>
But nothing nearly this large
<fryguy>
lol @ calling 100gb large
* sevenseacat
imagines a db that size on sqlite.... actually no, i cant, it wouldn't happen.
<Kelet>
well
<Kelet>
You're right
<Kelet>
it's extremely small compared to some
<Kelet>
but for me, it's really large :)
<Kelet>
So large relative to my current database experience
slash_nick has quit [Ping timeout: 268 seconds]
<Kelet>
I guess I'll try out postgresql. As I understand, Sequel is relatively agnostic in it's usage.
<Kelet>
So the code mostly remains the same regardless of the db you use.
<popl>
SQL
<popl>
Sequel is a thing that existed before SQL
<popl>
So use SQL
<fryguy>
popl: are you sure you now what sequel is
<keanehsiao>
try use riak.. if don't like nosql.. than just pick postgres.. :)
<Kelet>
could nosql handle the amount of data I intend to have?
<popl>
fryguy: now I do
<Kelet>
or is it not viable
<popl>
nosql is for massive pantloads of shit
<sevenseacat>
given i believe foursquare runs off mongodb
adeponte has quit [Ping timeout: 255 seconds]
<fryguy>
Kelet: it can
<popl>
and it's not really a DB it's a key store
<fryguy>
popl: some are just key stores
<fryguy>
others are quite a bit more sophisticated
<Kelet>
Key store, meaning you access a key and gives you a value?
<Kelet>
I was looking at something called leveldb which was like that
<keanehsiao>
Kelet: I think yes, depends on purpose.. eg.. read heavy, write heavy, analyze heavy
<popl>
fryguy: like trailer trash that wear monocles and such?
<Kelet>
but it seemed too simplistic
<popl>
;P
hadees has quit [Quit: hadees]
<Kelet>
For example, I want to find entries with some specific column value >= 200
<Kelet>
Maybe I minsinterpret
<Kelet>
But you couldn't easily do that?
<fryguy>
Kelet: just like in SQL, you'd create an index
JumpMast3r has quit [Quit: JumpMast3r]
<fryguy>
and here goes the conversation where we gradually rebuild all of ACID and realize we should just use relational databases in the first place. this should be fun, but i don't really have time.
<Kelet>
haha
<sevenseacat>
fryguy: amen.
<Kelet>
I think I just need to read up more on databases. I think Zed has a book on SQL in alpha.
<keanehsiao>
Kelet: many nosql can do that in simple way, mongodb provide a sql like interface, riak provide seconday index, neo4j can query with cyper, sparql.. and rest has their own methods, or at least you can run a map/reduce
<sevenseacat>
Kelet: read the pragprog seven databases book.
<fryguy>
^^ yes, read the seven databases book
<Kelet>
Interesting, thanks, I'll pick a copy up
<sevenseacat>
I like pimping that book.
<popl>
as long as you aren't using berkeley db then you're good
lusory has joined #ruby
<popl>
well
<popl>
fsvo good
<fryguy>
popl: lots of things use berkeley db
<keanehsiao>
popl: berkely db isn't bad... :p
<fryguy>
people really need to just stop dogmatically pitching technologies and take the time to actually understand what is going on with them
<sevenseacat>
and understand that for 99% of use cases, a simple relational DB is perfect.
<popl>
fryguy: I just like how your cape flaps in the wind, you know?
<Kelet>
Mostly I just want simple, and easy to use. But i guess this is a relatively large and complex db for me, and I shouldn't be trying to use abstractions if I don't know what it's doing, or why I'm using this particular db.
<keanehsiao>
fryguy: totall agree with that..
<Kelet>
It's a good skill to know in general anyway
pootler__ has joined #ruby
pootler_ has joined #ruby
<popl>
fryguy: don't be mad. I was only funnin'. :P
<Kelet>
I'm actually really surprised by the amount of metaprogramming Ruby provides. I've been using it a long time for small scripts; for example, renaming media files based on an online db, but never for a large project.
<Kelet>
I just read over _why's poignant guide and zed shaw's learn ruby
<Kelet>
interesting stuff
osvico has quit [Ping timeout: 256 seconds]
<fryguy>
the metaprogramming ruby book is pretty great too
<Kelet>
Ah, didn't even know there was one.
<fryguy>
was the first book i read when I started ruby
codesoda has quit [Remote host closed the connection]
<bnagy>
I disapprove of a lot of the ruby in ruby the hard way
codesoda has joined #ruby
<popl>
bnagy: do you disapprove… hard?
<Kelet>
bnagy, If you have any time to explain I'd be glad to hear what you have to say on it
<bnagy>
but it covers a lot of stuff, I guess
w1zeman1p has joined #ruby
rrecio has joined #ruby
<Kelet>
I see a lot of differences in minor stuff, for example the way zed uses parenthesis vs the way _why does, etc. but nothing too major in design.
DomKM has quit [Quit: Leaving.]
<bnagy>
Kelet: ah, just various snippets I have seen when people here ref it are not idiomatic
guiocavalcanti has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
guiocavalcanti has joined #ruby
zomgbie has joined #ruby
horofox has quit [Quit: horofox]
<Kelet>
True enough, some of the idiomatic code took me a while to understand, especially the inject, map, select stuff. I wasn't too educated on the functional side of things, and had only really known these types of things by using function pointers in C which were much more messy.
<Kelet>
But now they're clear as day
DomKM has joined #ruby
<Kelet>
(And knowing about mixins and how enumerable works)
io_syl has quit [Ping timeout: 268 seconds]
<Kelet>
At first I kept thinking, wait.. array has max? How? It's not in the class listing.
<Kelet>
Then I found it uses enumerable
<Kelet>
and what mixins are and how they work
<bnagy>
yeah Enumerable is the must-read rdoc
brennanMKE has joined #ruby
guiocava_ has joined #ruby
codesoda has quit [Ping timeout: 255 seconds]
jgoss has quit [Ping timeout: 276 seconds]
<Kelet>
And one more thing, what do you guys recommend for code documentation? I've heard that rdoc isn't the best.
radic_ has joined #ruby
jgoss has joined #ruby
jgoss has joined #ruby
jgoss has quit [Changing host]
<Kelet>
I come from mostly using JavaDoc with Doxygen here and there, and Rdoc seems like the 'default' thing to use, but I've heard of many other recommendations.
burlyscudd has quit [Ping timeout: 256 seconds]
guiocavalcanti has quit [Ping timeout: 268 seconds]
Opettaja has quit [Quit: WeeChat 0.4.1]
zomgbie has quit [Ping timeout: 276 seconds]
danshultz has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
vlad_starkov has joined #ruby
radic has quit [Ping timeout: 256 seconds]
amadeus_7 has joined #ruby
amadeus_7 has left #ruby [#ruby]
milardovich has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Ping timeout: 276 seconds]
justsee has joined #ruby
justsee has joined #ruby
dmiller has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
Inside has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
freerobby has joined #ruby
dnyy_ is now known as dnyy
jlast has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
roadt has joined #ruby
adeponte has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
codesoda has joined #ruby
saintcajetan has joined #ruby
iMad|Busy|Ruby has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
echevemaster has joined #ruby
echevemaster has joined #ruby
mikepack has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
harrymoreno has quit [Quit: harrymoreno]
chriskk has left #ruby [#ruby]
chriskk has joined #ruby
harrymoreno has joined #ruby
thams has quit [Quit: thams]
JumpMast3r has joined #ruby
io_syl has joined #ruby
bigriff has joined #ruby
irmbrady has joined #ruby
JumpMast3r has quit [Client Quit]
<bigriff>
hello
pen has quit [Read error: Connection reset by peer]
maroloccio has quit [Quit: WeeChat 0.4.0]
<bigriff>
Might this be a place to ask a simple ruby question - simpel for someone who knows any way...
<bigriff>
?
pen has joined #ruby
<popl>
bigriff: just ask
<sevenseacat>
ask away
hoyang has joined #ruby
<bigriff>
I want to add objects of my class to an array as they are created. How do I list them?
Opettaja has joined #ruby
<bigriff>
x = myclass.new, y = myclass.new -> how do i access/ list those later
<irmbrady>
You want to add them to an array, or just use the instance?
<bigriff>
add them to an array
<irmbrady>
array.push(x) to add to an array
<bigriff>
true
<bigriff>
but just add all instances to an array without knowing its x or y or ?
<bigriff>
i want to find out what they are and do that
<bigriff>
can i list all instances of myclass
<w1zeman1p>
you will probably want to use a class variable
<w1zeman1p>
that stores each instance in an array
<bnagy>
... no
<w1zeman1p>
?
<bnagy>
do not use class variables, ever
browndawg has joined #ruby
<w1zeman1p>
oh you're talking about entire instances of the new class
<bnagy>
bigriff: you _could_ list all instances, but you shouldn't
<w1zeman1p>
i thought we were counting up specific instances based on some attribute
<bigriff>
yes - all instances created..
ckrailo has quit [Quit: Computer has gone to sleep.]
<bnagy>
just stash em somewhere
<popl>
bigriff: what problem are you trying to solve?
<w1zeman1p>
why not use a class instance variable on a super class
<bnagy>
because that's awful
<w1zeman1p>
why
<bnagy>
well class vars are always awful
<w1zeman1p>
not class var
<w1zeman1p>
class instance var
<bnagy>
oh yeah, that's only half awful
r4nd0m1_ has quit []
<bnagy>
basically if you need a bag to store stuff in the language gives you Array
<w1zeman1p>
okay
<bnagy>
contorting some superclass into being an array is awful
krz has joined #ruby
<w1zeman1p>
well the super class would just contain an instance variable that is an array that contained the instances that were created
<w1zeman1p>
but ne ways what was the problem we're solving?
<bnagy>
nfi
irmbrady has quit [Quit: WeeChat 0.4.0]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<bigriff>
i want to add x = myclass.new and y = myclass.new to an array to end up with [x,y] as they are created regardless of what the are named... or how many
kil0byte_ has quit [Remote host closed the connection]
<bnagy>
bigriff: that describes what you're trying to do, not what problem you're trying to solve
<popl>
bigriff: we're not asking how you are trying to solve the problem you think you have. we are asking what problem you are trying to solve.
<bnagy>
lol
Jackneill has joined #ruby
ILoveYou has joined #ruby
<iMad|Busy|Ruby>
hi all. i'm trying to connect to a xmlrpc-server by using `require 'xmlrpc/client'`. But I got an error like this: "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed". I have added ` OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE`, but it doesn't work.
<bigriff>
problem = i need an array of myclass - Can I push each item into an array in my initialize function? mylist.push($) - what is the syntax to determine $?
mmitchell has quit [Remote host closed the connection]
s7ry93r has quit [Quit: s7ry93r]
<w1zeman1p>
usually 1 @ leading a variable name in a class is an instance variable
<w1zeman1p>
2 @ is a class variable
browndawg1 has left #ruby [#ruby]
arya has joined #ruby
saarinen has quit [Quit: saarinen]
guiocavalcanti has joined #ruby
zomgbie has joined #ruby
burlyscudd has joined #ruby
kofno has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
kevinykchan has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has joined #ruby
guiocava_ has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
thams has joined #ruby
kevinykchan has joined #ruby
DomKM has quit [Quit: Leaving.]
jbueza has quit [Quit: Leaving.]
mordof has joined #ruby
tjbiddle has quit [Ping timeout: 277 seconds]
tjbiddle_ is now known as tjbiddle
zomgbie has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
<mordof>
question about haml with ruby - this may be off topic, but i'm not sure if there's a specific channel for haml. every time someone requests the page - is the haml converted over to the output? or is it actually "compiled" to an equivalent file that doesn't have to be parsed out every request?
vlad_starkov has joined #ruby
chrishough has quit [Client Quit]
jdunck has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
bigriff has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
freeayu has joined #ruby
butblack has quit [Quit: butblack]
eldariof has quit [Ping timeout: 276 seconds]
abstrusenick has joined #ruby
mahmoudimus has joined #ruby
choobie has quit [Read error: Operation timed out]
lyanchih has joined #ruby
jlast has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
enthrops has joined #ruby
BeLucid_ has quit [Ping timeout: 240 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
<enthrops>
Is there a way to do literate string which keep all the whitespace?
mashu74 has joined #ruby
mocfive has joined #ruby
<enthrops>
Nevermind
mary5030 has quit [Remote host closed the connection]
lyanchih has quit [Client Quit]
enthrops has quit [Client Quit]
<bnagy>
what's a literate string?
jlast has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
ffio has joined #ruby
kuzushi has quit [Ping timeout: 256 seconds]
lyanchih has joined #ruby
nomenkun has joined #ruby
juarlex_ has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
<epitron>
mordof: probably depends on whether you're in production or development mode
jonahR has quit [Quit: jonahR]
haxrbyte_ has joined #ruby
adeponte has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 246 seconds]
choobie has joined #ruby
<mordof>
epitron: hmm.. trying to use haml with PHP, but I don't like the idea of having every page needing to load the haml library on each request. wanted it to spit out a PHP file properly.. not sure if i'll find any project quite like that without making it myself :/
adeponte has joined #ruby
<mordof>
epitron: i found something close.. but.. the PHP it spits out is awful.
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
kadoo has joined #ruby
<epitron>
o_O
<epitron>
that sounds like an unholy union
<mordof>
lol
freeayu__ has joined #ruby
<epitron>
you should go back and re-evaluate your approach
<epitron>
you could ditch PHP, or use a PHP-based haml-like templating system
<mordof>
epitron: i want to move my way over to Haml in ruby / rails at some point. wanted to get used to Haml for outputting HTML.. however a good portion of the sites I make are with PHP right now (Wordpress reliant somewhat)
<epitron>
(i assume that exists)
nalaginrut has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 256 seconds]
<mordof>
epitron: it does, that's what i'm referring to. the PHP-based haml-like system
<epitron>
oh
<epitron>
then you're in the wrong place :)
<mordof>
i know - i was simply curious about how haml with actual ruby functioned
<mordof>
that's all i originally intended to ask here
<mordof>
i got carried away off topic :p
GeissT has joined #ruby
<mordof>
wanted to compare it to what i have set up, and see if i'm expecting something different from the original approach of haml
fomatin has joined #ruby
kadoo has quit [Ping timeout: 248 seconds]
Cache_Money has quit [Ping timeout: 248 seconds]
pen has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
kadoo has joined #ruby
BeLucid has joined #ruby
vadelius has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
vadelius has joined #ruby
<mordof>
epitron: oh well. the best that i found spits out awful PHP - I'll wait until I actually start developing for Ruby to jump into Haml I suppose. Or I'll get impatient and write my own parser. time will tell
pranny has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
boblu has joined #ruby
byprdct has joined #ruby
Kruppe has quit [Remote host closed the connection]
rrecio has joined #ruby
thesheff17 has quit [Remote host closed the connection]
guiocavalcanti has quit [Ping timeout: 264 seconds]
pen has joined #ruby
pen has quit [Read error: Connection reset by peer]
marsLantern has quit [Quit: marsLantern]
milardovich has quit [Quit: Leaving]
pen has joined #ruby
pen has quit [Read error: Connection reset by peer]
marsLantern has joined #ruby
SilverKey has joined #ruby
codecop has joined #ruby
KhalilC has joined #ruby
pen has joined #ruby
pithagorians has quit [Ping timeout: 248 seconds]
rrecio has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
mikepack has quit [Remote host closed the connection]
sleetdrop has quit [Ping timeout: 268 seconds]
zomgbie has joined #ruby
burlyscudd has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
haxrbyte_ has quit [Ping timeout: 255 seconds]
sleetdrop has joined #ruby
rrecio has quit [Ping timeout: 255 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
mrnugget has joined #ruby
mrnugget has left #ruby [#ruby]
zomgbie has quit [Ping timeout: 256 seconds]
codenapper has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
mmitchell has joined #ruby
timkohrumel has quit [Remote host closed the connection]
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
BeLucid has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 276 seconds]
w1zeman1p has quit [Remote host closed the connection]
sayan has joined #ruby
thams has quit [Quit: thams]
ananthakumaran has joined #ruby
mmozuras has joined #ruby
chrishough has joined #ruby
jlast has joined #ruby
BeLucid has joined #ruby
kenneth has joined #ruby
mmozuras has quit [Remote host closed the connection]
lsmola has joined #ruby
chriskk has quit [Quit: chriskk]
jlast has quit [Ping timeout: 255 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
mordof has left #ruby [#ruby]
nomenkun has quit [Remote host closed the connection]
nerdman has joined #ruby
nomenkun has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
swarmhost has joined #ruby
<swarmhost>
Can someome help me out building a basic set of models (with datamapper) with a few relationships? I'm having trouble wrapping my head around it - first ORM I have ever used. http://collabedit.com/pf4vy if you can, thanks
Spami has quit [Max SendQ exceeded]
ssvo has joined #ruby
generalissimo has quit [Remote host closed the connection]
burlyscudd has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
byprdct has quit [Max SendQ exceeded]
io_syl has quit [Quit: Computer has gone to sleep.]
mmozuras has joined #ruby
wallerdev has quit [Quit: wallerdev]
forgot has quit [Ping timeout: 246 seconds]
Kar- has joined #ruby
aganov has joined #ruby
swordsmanz has quit [Remote host closed the connection]
<jouty>
but why one time 3 and another time only 2?
<apeiros>
because 1 is not escaped
<Hanmac>
read "%%%d" as "%%" + "%d" ... "%%" is turned into "%" and "%d" is turned into number
ephemerian has joined #ruby
<jouty>
ok thc Hanmac for the help
<jouty>
:)
vinnyOcean has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
ghr has joined #ruby
chee has quit [Quit: i am quit]
Rizzle has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
corehook has joined #ruby
lyanchih has quit [Quit: lyanchih]
saintcajetan has quit [Quit: Leaving]
Rizzle has joined #ruby
akemrir has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
pi3r has joined #ruby
Zai00 has joined #ruby
arya has joined #ruby
ffio has quit [Ping timeout: 268 seconds]
broquaint has joined #ruby
gstamp has joined #ruby
lyanchih has joined #ruby
noname001 has joined #ruby
danslo has joined #ruby
Zai00 has quit [Client Quit]
timonv has joined #ruby
ferdev has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
ferdev has quit [Client Quit]
statarb3 has joined #ruby
vinnyOcean has joined #ruby
jbpros has joined #ruby
fphilipe has quit [Remote host closed the connection]
Zai00 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
enthrops has joined #ruby
Ortuna has joined #ruby
ferdev has joined #ruby
tatsuya_o has joined #ruby
<enthrops>
How can I make it so a gem executable can require files, but those files are not exposed to gem users, i.e. they can't require them?
maligree has joined #ruby
fphilipe has joined #ruby
postmodern_ has joined #ruby
Ortuna has quit [Client Quit]
<apeiros>
you can't
<apeiros>
you can only make it harder
<enthrops>
apeiros: well, that sucks
<apeiros>
and for some reasons your question reeks…
<enthrops>
apeiros: thanks
<apeiros>
why'd you do that?
<enthrops>
apeiros: because the gem is an executable and none of its libs are supposed to be required?
<enthrops>
am I doing something wrong here?
<enthrops>
first time doing a gem, sorry
<apeiros>
"are not supposed to be required" - fine, but why enforce it?
<apeiros>
why do you think you need to hold your users hands?
postmodern has quit [Ping timeout: 246 seconds]
<enthrops>
apeiros: I don't, it's just that those files are really useless outside of the context of the executable :)
<Xeago>
Kernel#exit, override it before you require it :O?
<apeiros>
mark your classes as private/internal in the docs. anything beyond makes little sense IMO.
<Xeago>
don't do it..
<enthrops>
apeiros: ok, thanks
burlyscudd has joined #ruby
<enthrops>
apeiros: I suppose I really need to wrap everything in a module, correct?
<apeiros>
namespacing is strongly suggested, yes
<enthrops>
apeiros: what if somebody else's gem has libs with same exact name though? What happens when a user requires?
<apeiros>
kaboom baby
<apeiros>
that's what
<apeiros>
which is why you should namespace
<enthrops>
well, I mean I can't namespace the file name
<apeiros>
of course you can
<apeiros>
FooBar::Baz --> foobar/baz.rb
<apeiros>
if your FooBar namespace is sane, so will be your filename
rrecio has joined #ruby
<Xeago>
don't become like java tho
<apeiros>
the only exception is your executable. but that problem is unrelated to ruby. if you have multiple executables with the same name, then you're fucked. whether the executable is ruby, C or java doesn't matter much then.
<banister`sleep>
pontiki: you're doing the check *before* you define the method
burlyscudd has quit [Ping timeout: 256 seconds]
<banister`sleep>
pontiki: if you put the check after the mthod definition, it'll work
dodosan has quit [Ping timeout: 256 seconds]
<pontiki>
yes, that's what i was trying to figure out
<banister`sleep>
pontiki: do you understand now? :)
kasper has joined #ruby
<pontiki>
and it doesn't work in 2.x; my mistake
<pontiki>
yes; and it actually now makes perfect sense why it works that way
<pontiki>
the raise and def are both executing ; i'm used to just thinking of classes as defining methods; but you can execute code directly in them as well, like modules
msuszczy has joined #ruby
harrymoreno_ has joined #ruby
Xeago has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
binaryplease has quit [Ping timeout: 246 seconds]
khushildep has joined #ruby
lyanchih has quit [Quit: lyanchih]
jds has joined #ruby
atno has joined #ruby
pipopopo has joined #ruby
harrymoreno has quit [Ping timeout: 268 seconds]
vinnyOcean has joined #ruby
niceguyjames has quit [Ping timeout: 268 seconds]
niceguyjames has joined #ruby
yacks has quit [Ping timeout: 268 seconds]
camilasan has quit [Remote host closed the connection]
zomgbie has quit [Read error: Connection reset by peer]
kpshek has joined #ruby
krainboltgreene has joined #ruby
kayloos has joined #ruby
zomgbie has joined #ruby
robustus has joined #ruby
kayloos has quit [Remote host closed the connection]
kasper_ has joined #ruby
guiocavalcanti has quit [Ping timeout: 240 seconds]
Harzilein has quit [Quit: Leaving]
awestroke has joined #ruby
kofno has joined #ruby
himsin has joined #ruby
ttt has quit [Ping timeout: 252 seconds]
kasper has quit [Ping timeout: 268 seconds]
moos3 has joined #ruby
ewag has joined #ruby
guiocavalcanti has joined #ruby
ldnunes has joined #ruby
<dernise>
broquaint : No. Is it a fork of a parent process?
lkba has quit [Ping timeout: 256 seconds]
dawkirst has quit [Quit: Leaving]
geekbri has joined #ruby
lemonsparrow has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has joined #ruby
<broquaint>
When fork() is called the parent process will see a number indicating the process ID of the child process and the child process will see a false value, which is why you'll generally see fork() used in a condition.
ExxKA has quit [Quit: This computer has gone to sleep]
<broquaint>
e.g if child_pid = fork; puts "Just forked #{child_pid}"; ...; else; puts "This is the child process"; end
guiocavalcanti has quit [Read error: Operation timed out]
Guest25632 has joined #ruby
kayloos has joined #ruby
<dernise>
Oh ok, I understand now, thanks !
Guest25632 is now known as zai
<dernise>
I'm trying to be more familiar with the Process class.. :)
kofno has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
kofno has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
Elhu has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Remote host closed the connection]
yshh has joined #ruby
<buzzybron1>
can a call be used like an object?
allanm_ has quit [Ping timeout: 248 seconds]
<buzzybron1>
i meant, can a Class be used like an ObjecT?
Accra has joined #ruby
Accra has left #ruby [#ruby]
<hoelzro>
Classes are objects.
Fire-Dragon-DoL has left #ruby [#ruby]
krainboltgreene has quit [Ping timeout: 264 seconds]
<Hanmac>
and some objects can be uses as Classes (singleton) ;P
Fire-Dragon-DoL has joined #ruby
wildcard0 has quit [Ping timeout: 255 seconds]
wildcard0 has joined #ruby
fixl has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
YaNakilon has quit [Ping timeout: 246 seconds]
boblu has quit [Ping timeout: 256 seconds]
yshh has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
segora has quit [Quit: segora]
<atmosx>
Hanmac: what is singleton?
<Xeago>
atmosx: an object which can only exist once
<atmosx>
ah
<atmosx>
"can only exist once" ?
<atmosx>
like a counter of other objects?
<Xeago>
not necessarily
<atmosx>
say I need to count hoe many instances of an objects I have
<Hanmac>
atmosx & Xeago i meant the singleton class of the objects
<Hanmac>
of in the case of true,false and nil where the class and the singleton_class are the same
<Xeago>
I didn't read scrollback
<Xeago>
databases are often modeled as singletons
sleetdrop has quit [Ping timeout: 246 seconds]
<Xeago>
Database.instance.execute_query
rrecio has joined #ruby
YaNakilon has joined #ruby
<apeiros>
hurray for specs in PDF files, so nobody can parse them (IBAN country specific formats)
<dernise>
( The command is cmd, passed in the method)
<apeiros>
but fuck it, I just wrote a small tool which reads the pdf and parses that. it's an unreliable mess, but well, what do you want to do with a pdf? :-(
<Xeago>
apeiros: what is wrong with IBAN?
<Xeago>
thought it was guaranteed to be <20chars max
<apeiros>
na
<apeiros>
it's slightly more complex
<atmosx>
apeiros: you work on a bank?
<apeiros>
you don't always need the full complexity, though
MrZYX is now known as MrZYX|off
<apeiros>
atmosx: financial institution, not a bank
atno has quit [Quit: Leaving]
<Xeago>
country_code(2), numerical_code(2), bank_code(not sure about length), customer_code
<apeiros>
or financial services institution. dunno.
rrecio has quit [Ping timeout: 256 seconds]
<apeiros>
Xeago: the last part is country specific
<apeiros>
human readable might include spaces (though, I also remove dashes)
lyanchih has quit [Quit: lyanchih]
<Xeago>
swift is outdated
<Xeago>
for about 3 years now
Bry8Star{T2 has joined #ruby
<apeiros>
o0
kayloos has quit [Remote host closed the connection]
<apeiros>
the specs for the IBAN is not
_br_ has joined #ruby
<Xeago>
no, but swift is
<apeiros>
so?
<Xeago>
linked to swift.com
<apeiros>
again, so?
<Xeago>
I agree the internal structure of iban is confusing
<apeiros>
do you imply that the document is obsolete?
<Xeago>
if you have to extract data from it
<apeiros>
afaik it is not
<apeiros>
I have no qualms with the internal structure of iban. that's relatively easy.
<Xeago>
SWIFT's on standard is obsolete
<Xeago>
(which was called swift)
maligree has quit [Quit: I've had it with you.]
<Xeago>
s/on/own/
<apeiros>
but the documentation of which country has what information in which segment in form of a pdf sucks
sandstrom has joined #ruby
<sandstrom>
I'm building a small image server that will load images from S3, modify and resize them, and serve them. When I access an image using the url from the AWS S3 console latency is ~90 ms, but when using the AWS Ruby SDK latency is ~1000 ms. Any thoughts on why this may be?
<apeiros>
Xeago: yes. again, the linked document may be *hosted* by swift. but it's about IBAN.
<apeiros>
the contents of the document still apply.
<Xeago>
yea I know, still swift, the standard, is outdated
<apeiros>
if you know a newer authoritative source for the information provided by the document, feel free to tell me.
<apeiros>
swift the standard is totally not part of this discussion :)
mark_locklear has joined #ruby
Speed has joined #ruby
kasper_ has quit [Remote host closed the connection]
jbpros has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<apeiros>
swift.com is to my knowledge still the authoritative source for this
kasper_ has joined #ruby
<apeiros>
whether or not SWIFT (the standard) is obsolete or not matters little in that regard
<_br_>
sandstrom: You should try to run ruby benchmark or so around the interesting parts of your code to identify exactly where all the time is spent.
<Xeago>
I agree, was a bit fast with saying swift was obsolete
arya has joined #ruby
<Xeago>
but what about SEPA?
<sandstrom>
_br_: great suggestion, I'll look into that. Any other thoughts?
<Xeago>
isn't that the organization governing the new standard?
<apeiros>
(and I confirmed that swift is indeed still the official registrar)
mmozuras has quit [Ping timeout: 264 seconds]
statarb3 has quit [Quit: Leaving]
zomgbie has quit [Ping timeout: 240 seconds]
<Speed>
Hmm, quick question about double binding Ruby and C++:
<Xeago>
that is new to me
zomgbie has joined #ruby
<Xeago>
my bank is telling me to ignore everything swift (not specifying anything here), and follow IBAN and SEPA
<Speed>
(I use mruby). So I have a Texture class and a Sprite class in C++, where Sprite has one texture as a member variable.
<apeiros>
Xeago: there's a difference between SWIFT the standard and SWIFT the institution
MrZYX|off is now known as MrZYX
<Speed>
How would I go and make the same class plus the relations available in Ruby?
<apeiros>
IBAN the standard specifices a registrar for IBAN, and that's SWIFT, the institution
<Xeago>
yes, but still, they aught to be a bit more specific in that case
jlast has joined #ruby
<apeiros>
but nice, now I can throw that stupid pdf parser away and use a csv-ish parser instead
<apeiros>
*much* nicer
<Speed>
(say I make a new instance of Sprite in C++, I'd want to access to that in Ruby both to sprite, as well as sprite.texture)
fryguy has quit [Read error: Operation timed out]
Ortuna has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
<Hanmac>
Speed what libery do you want to bind?
<Speed>
no library, my own C code
freestyl3r has quit [Quit: WeeChat 0.4.1]
fryguy has joined #ruby
lkba has joined #ruby
<Speed>
I figured for classes without relations I'd make a C++ member variable mrb_self, that would contain a ruby version of the class
zai has quit [Ping timeout: 255 seconds]
<Xeago>
apeiros: why do you need to extract information anyways?
<Speed>
but I have no idea how I'd handle relations
<Xeago>
wouldn't storing the IBAN itself be sufficient?
<Xeago>
or do you need more infomraiton from the string?
<cout>
speed: well you can create a new ruby object every time texture() is called, or you can create that object up front so you get the same ruby object every time you call texture()
ILoveYou has quit [Ping timeout: 240 seconds]
<apeiros>
Xeago: can't tell, sorry
Elhu has joined #ruby
<Xeago>
ok
<Speed>
cout: but I'd want every C++ texture instance to have it's own Ruby texture instance
<Xeago>
so I suppose you won't be releasing an parse_iban_gem :3
<cout>
speed: sure
<Speed>
so I'd be able to call texture.render both in C++ and in Ruby
<apeiros>
but I think I'll provide this as a gem. there's already a couple of IBAN gems around, but none which allows to extract info and automated update of the specs.
<Xeago>
aha!
joshwines_ has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
joshwines__ has quit [Remote host closed the connection]
<apeiros>
I think I'll start an ISO::/iso- series of gems anyway.
<cout>
speed: so you define a texture method on your Sprite class
<Xeago>
I dare you to parse http!
<cout>
speed: and that method returns an object
<apeiros>
I have an http parser
<Xeago>
I have some very nice pay loads left over from school :)
<apeiros>
and it wasn't even NIH
<Xeago>
NIH?
jlast has quit [Ping timeout: 276 seconds]
<apeiros>
not invented here syndrome
<Speed>
cout: ah I see. My idea was to do something among the lines of:
<apeiros>
the available ones all were either missing something or made assumptions/were deeply embedded
<Speed>
C++, construct a texture instance, create a mrb_self ruby instance and bind them
<Hanmac>
Speed i did something similar in my rwx binding without mruby ... make a function that takes an Sprite or Texture object ... if the mrb_self is not set, than create an ruby object, if its set then return it
<apeiros>
(well, maybe I also didn't spend enough time investigating, but at some point it's faster to just write what you need)
<Speed>
for sprite, do the same, then manually go and connect sprite.texture.mrb_self to sprite.mrb_self
<Speed>
(as an instance variable)
<Hanmac>
double binding is often not needed, but if the C++ objects can store userdata ptr than the binding can benefit from that (and so the GC)
<cout>
speed: sure, you could do that
ewag has quit [Ping timeout: 276 seconds]
DestinyAwaits has joined #ruby
burlyscudd has joined #ruby
kinmor06 has joined #ruby
<Speed>
cout: but when there's more relations it doesn't seem DRY
<cout>
speed: it's not a problem that lends itself well to an abstraction
<Speed>
indeed :/
dhruvasagar has quit [Ping timeout: 246 seconds]
<cout>
speed: if you come up with a good abstraction, I'd be curious to see it
zai has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
<Speed>
the crappiest thing is that the developer has to have a deep knowledge of the code to know which ones have ruby bindings and which ones not, so he can properly connect them
himsin has quit [Quit: himsin]
<Hanmac>
Speed if you later post some code in an repository / gist i could look over it if i can optimize it
<cout>
speed: why is that?
badquanta has joined #ruby
<Speed>
I'd be able to do some abstracting if I could convert a string with a C function/member name to the function, but that's not possible
badquanta has quit [Remote host closed the connection]
<cout>
bbl, time to get off teh bus
joelteon has quit [Ping timeout: 268 seconds]
<Speed>
cout: because when you make a new C++ class, you need to know what ruby relations you need to manually build
monkegjinni has joined #ruby
alanjc has quit [Ping timeout: 268 seconds]
<Speed>
Hanmac: sure, I'll probably have something simple done in a bit
burlyscudd has quit [Ping timeout: 256 seconds]
<Hanmac>
Speed do you want to look how i do something in my rwx binding? (it also have some store features)
<Speed>
yes please :)
<Speed>
the main reason why I'd want double binding is so I could have sprite.texture act as another object
tkuchiki has quit [Remote host closed the connection]
<Speed>
without relations I could make the bindings to do sprite.texture_draw, sprite.texture_load, sprite_texture_x
alanjc has joined #ruby
<Speed>
but I'd want sprite.texture.draw, sprite.texture.load
<Speed>
so rubyclientdata creates a new type of method, wrapPtr for that specific class?
<Hanmac>
for sample with your code: sprite.texture maybe does return allways the same object(_id), while sprite.color does return an new Color object (because the color class may does not have ClientData attribute)
buzzybron1 has quit [Quit: Leaving.]
kristian_ is now known as kristiandelay
sayan has quit [Read error: Connection reset by peer]
<Hanmac>
Speed: yes i use wrap<> and unwrap<> with the friends wrapPtr and unwrapPtr<> to convert Ruby and C++ Objects (its MRI code but i think it should be possible with mruby in similar way)
alanjc has quit [Ping timeout: 256 seconds]
joelteon has quit [Ping timeout: 248 seconds]
JoseClimaco has quit [Ping timeout: 255 seconds]
ksinkar has joined #ruby
<Speed>
how could I create a new ruby object in C, and initialize it with a specific pointer (this)
Spami has joined #ruby
Spami has joined #ruby
<Speed>
so instead of allocating a new instance for Data_Wrap_Struct, I'd set it to NULL in allocate, then in initialize, I'd set it to the texture
ttt has quit [Ping timeout: 252 seconds]
ephemerian has quit [Quit: Leaving.]
<Speed>
DATA_PTR(mrb_texture) = this
<Speed>
?
<Speed>
right, I'll be back in a bit, lunch time
nezumi has quit [Ping timeout: 248 seconds]
ewag has joined #ruby
io_syl has joined #ruby
ElderFain has joined #ruby
alanjc has joined #ruby
joelteon has joined #ruby
<Hanmac>
Speed: it depends if the class does have an 2-Step contructor or only an 1-Step constructor ... if you only have an 1-Step than your way with "DATA_PTR(mrb_texture) = this" is the right one, BUT if you add it in the class itself (because i only write bindings i cant do that) than you can add Data_Wrap_Struct inside the Texture constructor
<Speed>
I only have the Texture::Texture(std::string filename) constructor
Elhu has joined #ruby
<Speed>
oh, I thought Data_Wrap_Struct was meant to be used only in allocation functions
thams has joined #ruby
<Hanmac>
Speed yeah thats is an 1-Step, an 2-Step would be something like Texture() default contructor + create(std::string filename) member function
jalcine has quit [Remote host closed the connection]
<Speed>
ah yes
<Hanmac>
and yes you can put the Wrap_Struct in your Contstuctor directly if you want (and can)
<Speed>
hmm, I think DATA_PTR would suit it better
krainboltgreene has joined #ruby
<Speed>
because, if I construct a C instance, I want it to create the ruby one too. if I create a ruby instance, I want to bind that one to the C instance
<Speed>
else construct ruby object and DATA_PTR(obj) = this
Davey has joined #ruby
<Hanmac>
or use an 2-step constuctor if you can (you can still use your Texture(std::string filename) constructor as secondary one)
BarneyRubble has joined #ruby
yacks has quit [Quit: Leaving]
<Speed>
so what would I use the second step for?
fridim_ has joined #ruby
rrecio has joined #ruby
krainboltgreene has quit [Ping timeout: 246 seconds]
<apeiros>
lol, that IBAN_Registry.txt is silly too… country codes include notes… halleluja
JoseClimaco has joined #ruby
Kabaka has quit [Remote host closed the connection]
<Hanmac>
Speed: Texture() creates an empty Texture object, and create/load(std::string filename) will finaly create this one, (the good part, ruby can use it in its allocate and initialize system too)
azerton has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<Speed>
but how would I handle ruby vs. C++ instance creation
Ortuna has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Remote host closed the connection]
chee has quit [Client Quit]
<Speed>
Hanmac: yes, but if I create a new ruby instance from the C++ constructor, texture_allocate and texture_initialize will get called in ruby, which we don't want
<Hanmac>
hm no they would not
chee has joined #ruby
swordsmanz has quit [Remote host closed the connection]
Aaaarg has quit [Quit: Aaaarg]
monkegjinni has quit [Remote host closed the connection]
<Speed>
if the C++ constructor calls "rb_class_new_instance", then they both get called
ksinkar has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
ellipse has joined #ruby
danshultz has joined #ruby
swordsmanz has joined #ruby
codecop has quit [Remote host closed the connection]
enebo has joined #ruby
<Hanmac>
yeah, thats why you should use DATA_WRAP_STRUCT in the constructor and not "rb_class_new_instance"
Spami has quit [Quit: This computer has gone to sleep]
ferr has joined #ruby
<Speed>
ah
blaxter_ has quit [Ping timeout: 276 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
gildo has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Leaving.]
dan2552 has joined #ruby
<ericwood>
that looks fine
adambeynon has joined #ruby
<ericwood>
I don't understand what the problem is
pentameter has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<MrZYX>
looks like an issue with rails autoloading -> #rubyonrails
graft_ has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
asuka has joined #ruby
kenichi_ has joined #ruby
rrecio has quit [Ping timeout: 246 seconds]
tjbiddle_ has joined #ruby
therealnoop has quit [Ping timeout: 268 seconds]
guiocavalcanti has joined #ruby
brian`_ has joined #ruby
jerius_ has joined #ruby
<e-dard>
ericwood: it's resolving the wrong class
lewis has joined #ruby
s7ry93r has joined #ruby
<ericwood>
oh
<e-dard>
and then same input to Rails console and it resolves the right class
Fire-Dragon-DoL has joined #ruby
<ericwood>
rails majik
burlyscudd has joined #ruby
<e-dard>
MrZYX: OK, I'll try there.
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
pentameter has joined #ruby
enebo has quit [Quit: enebo]
aqil has joined #ruby
fomatin has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
cmarques has joined #ruby
AllStruck_ has joined #ruby
ryannielson has joined #ruby
v0n has joined #ruby
jim_r0x has joined #ruby
Iszak has joined #ruby
krishna_ has joined #ruby
<Xeago>
what is the casing for class names, TransactionHistory right?
generalissimo has joined #ruby
<pontiki>
yes CamelCase
atno has joined #ruby
<pontiki>
though the only requirement is initial upper case
<Spooner>
tjr_, I sent you a PM.
axl_ has joined #ruby
ij has quit [Ping timeout: 264 seconds]
superscott[8] has joined #ruby
superscott[8] has quit [Client Quit]
fomatin has quit [Quit: Computer has gone to sleep.]
lupine has quit [*.net *.split]
terrellt has quit [*.net *.split]
machuga has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
denken has quit [*.net *.split]
firebury has quit [*.net *.split]
epitron has quit [*.net *.split]
graft has quit [*.net *.split]
asuka_ has quit [*.net *.split]
Niamkik has quit [*.net *.split]
krishna has quit [*.net *.split]
kenichi has quit [*.net *.split]
xybre has quit [*.net *.split]
monomyth has quit [*.net *.split]
Eiam has quit [*.net *.split]
bklang has quit [*.net *.split]
AllStruck has quit [*.net *.split]
Kabaka has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
brian` has quit [*.net *.split]
tacos1de has quit [*.net *.split]
DrCode has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
end_guy has quit [*.net *.split]
LucidDreamZzZ has quit [*.net *.split]
AllStruck_ is now known as AllStruck
rrecio has joined #ruby
blitzkev has joined #ruby
mengu_ has joined #ruby
mengu has quit [Write error: Connection reset by peer]
kasper_ has quit [Write error: Connection reset by peer]
AlSquirikou has joined #ruby
BeLucid_ has joined #ruby
kasper has joined #ruby
Appineer has joined #ruby
axl__ has joined #ruby
AlSquirrel has quit [Read error: No buffer space available]
_carloslopes has joined #ruby
freerobby has quit [Quit: Leaving.]
BeLucid has quit [Read error: No buffer space available]
atmosx has joined #ruby
JMcAfreak has quit [Quit: Leaving]
cjs226 has joined #ruby
JMcAfreak has joined #ruby
teddyp1cker has joined #ruby
carloslopes has quit [Ping timeout: 276 seconds]
arya_ has joined #ruby
Dekade|2 has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
blitz has quit [Ping timeout: 276 seconds]
tomaw is now known as 02HAAAABD
tacos1de has joined #ruby
jolleyjoe has joined #ruby
xybre has joined #ruby
monomyth has joined #ruby
firebury has joined #ruby
DrCode has joined #ruby
end_guy has joined #ruby
bklang has joined #ruby
machuga has joined #ruby
denken has joined #ruby
LucidDreamZzZ has joined #ruby
epitron has joined #ruby
Sp4rKy has joined #ruby
noname001 has quit [Excess Flood]
arya has quit [Ping timeout: 248 seconds]
Dekade has quit [Ping timeout: 246 seconds]
02HAAAABD is now known as tomaw
danbeck has joined #ruby
RORgasm_ has quit [Read error: Connection reset by peer]
noname001 has joined #ruby
arya_ is now known as arya
RORgasm has joined #ruby
danbeck has quit [Client Quit]
danbeck has joined #ruby
codecop has quit [Quit: Išeinu]
rhys has joined #ruby
lupine has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
lupine has quit [Changing host]
lupine has joined #ruby
enebo has joined #ruby
verto has joined #ruby
Dekade|2 is now known as Dekade
Fire-Dragon-DoL has quit [Quit: Leaving.]
firebury_ has joined #ruby
mljsimone|off is now known as mljsimone
tommyvyo has quit [Quit:]
bklane has joined #ruby
tommyvyo has joined #ruby
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
firebury has quit [Ping timeout: 264 seconds]
lupine has quit [Excess Flood]
lupine has joined #ruby
lupine has quit [Changing host]
lupine has joined #ruby
atyz has joined #ruby
_maes_ has joined #ruby
<bklane>
Is there anyway to validate custom values of a hash?
freerobby has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
elliptical has joined #ruby
browndawg has joined #ruby
roadt has quit [Ping timeout: 246 seconds]
<wuest>
bklane: explain what you're trying to do? A gist with an example might help.
axl_ has quit [Remote host closed the connection]
lyanchih has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
<bklane>
https://gist.github.com/blklane/5855023, I have a product that takes product fields from the product type it belongs to, along with the field are validaitons. I have the validations saving to the product now and i can pull them in a array with one value being the product field it relates to and the other being the law it needs to obey
ellipse has quit [Ping timeout: 246 seconds]
pipework has joined #ruby
<MrZYX>
-> #rubyonrails
BayaBaya has joined #ruby
corehook has joined #ruby
axl_ has joined #ruby
bean has joined #ruby
djin has quit [Ping timeout: 250 seconds]
<ericwood>
that's all you've done today :P
<MrZYX>
;P
sailias has joined #ruby
<MrZYX>
we should just get a bot for that
ttt has joined #ruby
lupine has quit [*.net *.split]
denken has quit [*.net *.split]
machuga has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
epitron has quit [*.net *.split]
monomyth has quit [*.net *.split]
xybre has quit [*.net *.split]
bklang has quit [*.net *.split]
tacos1de has quit [*.net *.split]
DrCode has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
LucidDreamZzZ has quit [*.net *.split]
Skelz0r has quit [Ping timeout: 264 seconds]
<MrZYX>
trigger on view(s), validation(s), model(s) and rails
niklasb has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jlast has quit [Read error: No buffer space available]
jlast has joined #ruby
<apeiros>
aren't you that bot, MrZYX? :)
<MrZYX>
:(
rippa has joined #ruby
Squarepy has joined #ruby
cantonic has quit [Quit: cantonic]
ttt has quit [Ping timeout: 256 seconds]
tacos1de has joined #ruby
DrCode has joined #ruby
denken has joined #ruby
LucidDreamZzZ has joined #ruby
machuga has joined #ruby
Sp4rKy has joined #ruby
epitron has joined #ruby
bklang has joined #ruby
monomyth has joined #ruby
xybre has joined #ruby
jolleyjoe has joined #ruby
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
seejohnrun has joined #ruby
queequeg1 has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
antuirno has joined #ruby
lupine has joined #ruby
lupine has joined #ruby
lupine has quit [Changing host]
Skelz0r has joined #ruby
lupine has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
lupine has joined #ruby
r0bglees0n has joined #ruby
greenarrow|3 has joined #ruby
MrThePl__ has joined #ruby
bricker_ has joined #ruby
failshel_ has joined #ruby
atmosx_desktop has joined #ruby
yshh_ has joined #ruby
_rrecio has joined #ruby
kasper_ has joined #ruby
AlSquirrel has joined #ruby
s0ber_ has joined #ruby
seejohnr1n has joined #ruby
uxp_ has joined #ruby
robscomputer has joined #ruby
Criztian_ has joined #ruby
notbrent___ has joined #ruby
Bry8Star{T2 has joined #ruby
chichouw has joined #ruby
end_guy has joined #ruby
freerobby has quit [Quit: Leaving.]
thesheff17 has joined #ruby
mfletcher has joined #ruby
tatsuya__ has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
justsee_ has joined #ruby
Kabaka has joined #ruby
afd___ has joined #ruby
quazimod1 has joined #ruby
erry_ has joined #ruby
DestinyAwaits has joined #ruby
ec_ has joined #ruby
dhruvasagar has joined #ruby
jerius has joined #ruby
swordsmanz has quit [Remote host closed the connection]
erry has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
erry_ is now known as erry
freerobby has joined #ruby
jerius_ has quit [Ping timeout: 256 seconds]
banister`sleep has quit [Remote host closed the connection]
ner0x has joined #ruby
pskosinski has joined #ruby
r0bby has joined #ruby
ferr has joined #ruby
Spami__ has joined #ruby
manutter|2 has joined #ruby
braincrash has joined #ruby
splittingred has quit [Quit: splittingred]
halfie_ has joined #ruby
mmozuras has quit [Read error: Operation timed out]
seejohnrun has quit [*.net *.split]
niklasb has quit [*.net *.split]
corehook has quit [*.net *.split]
rrecio has quit [*.net *.split]
kasper has quit [*.net *.split]
krishna_ has quit [*.net *.split]
AlSquirikou has quit [*.net *.split]
atmosx has quit [*.net *.split]
kenichi_ has quit [*.net *.split]
s7ry93r has quit [*.net *.split]
failshell has quit [*.net *.split]
io_syl has quit [*.net *.split]
mars__ has quit [*.net *.split]
yshh has quit [*.net *.split]
chichou has quit [*.net *.split]
binaryplease has quit [*.net *.split]
awc737 has quit [*.net *.split]
TMM has quit [*.net *.split]
Criztian has quit [*.net *.split]
tatsuya_o has quit [*.net *.split]
threesome has quit [*.net *.split]
arturaz has quit [*.net *.split]
aganov has quit [*.net *.split]
justsee has quit [*.net *.split]
kenneth has quit [*.net *.split]
BrianJ has quit [*.net *.split]
greenarrow|2 has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
bricker has quit [*.net *.split]
notbrent__ has quit [*.net *.split]
MrThePla_ has quit [*.net *.split]
toquonce has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
s0ber has quit [*.net *.split]
araujo has quit [*.net *.split]
TakumoKatekari has quit [*.net *.split]
Myk267 has quit [*.net *.split]
bothra has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
ChristianS has quit [*.net *.split]
malcolmva has quit [*.net *.split]
aetaric has quit [*.net *.split]
braincra- has quit [*.net *.split]
rismoney has quit [*.net *.split]
afd__ has quit [*.net *.split]
quazimodo has quit [*.net *.split]
deadalus has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
Paradox has quit [*.net *.split]
halfie has quit [*.net *.split]
uxp has quit [*.net *.split]
sayd has quit [*.net *.split]
voodoofish has quit [*.net *.split]
Liothen has quit [*.net *.split]
nnww has quit [*.net *.split]
arusso has quit [*.net *.split]
s0ber_ is now known as s0ber
halfie_ is now known as halfie
rismoney has joined #ruby
Alina-malina has joined #ruby
Cyrus has quit [Ping timeout: 264 seconds]
moeSeth has quit [Ping timeout: 264 seconds]
fermion has quit [Ping timeout: 264 seconds]
jefflyne has quit [Ping timeout: 264 seconds]
yasu has quit [Ping timeout: 264 seconds]
dagobah_ has joined #ruby
yasu has joined #ruby
bothra has joined #ruby
generalissimo has quit [Write error: Connection reset by peer]
dagobah has quit [Write error: Connection reset by peer]
RORgasm has quit [Read error: No buffer space available]
fasta has quit [Read error: Connection reset by peer]
lewis has quit [Remote host closed the connection]
DomKM has joined #ruby
grillermo has joined #ruby
swordsmanz has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 268 seconds]
terrellt_ is now known as terrellt
queequeg1 has joined #ruby
<grillermo>
in this definition def measure_time(initial=Time.new(), ending=nil) the initial value will be set when the functions is first read by the interpreter (around the time i run the application) or when the function is called?
<MrZYX>
easy to try out
<Hanmac>
grillermo: when the function is called
<grillermo>
ok thanks
swordsmanz has joined #ruby
pootler_1 has joined #ruby
pootler_2 has joined #ruby
viszu has joined #ruby
pootler__ has quit [Ping timeout: 245 seconds]
pootler_ has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
_carloslopes has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
aganov has quit [Remote host closed the connection]
k610 has joined #ruby
chrishough has joined #ruby
atmosx has joined #ruby
chrishough has quit [Client Quit]
RichardBaker has joined #ruby
toquonce has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
JimmyNeutron has joined #ruby
ssvo has joined #ruby
snearch has joined #ruby
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
kasper_ has quit [Ping timeout: 268 seconds]
jefflyne has joined #ruby
ntus1017 has quit [Remote host closed the connection]
ttt has joined #ruby
apeiros has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: And so the story goes…]
graft_ has quit [Ping timeout: 248 seconds]
atmosx has joined #ruby
wyrd1 has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
nbouscal has quit [Ping timeout: 256 seconds]
helpa has quit [Ping timeout: 256 seconds]
drago777 has quit [Ping timeout: 256 seconds]
DanKnox_away has quit [Ping timeout: 256 seconds]
Cache_Money has quit [Ping timeout: 256 seconds]
kenichi has quit [Ping timeout: 256 seconds]
freakazoid0223 has quit [Ping timeout: 256 seconds]
gkunno has quit [Ping timeout: 256 seconds]
sirecote has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Ping timeout: 256 seconds]
TakumoKatekari has quit [Ping timeout: 256 seconds]
wsterling has quit [Ping timeout: 256 seconds]
shawnjgoff has quit [Ping timeout: 256 seconds]
Schuyler has quit [Ping timeout: 256 seconds]
foohey has quit [Ping timeout: 256 seconds]
Scient has quit [Ping timeout: 256 seconds]
pcboy_ has quit [Ping timeout: 256 seconds]
epochwolf has quit [Ping timeout: 256 seconds]
mediko has quit [Ping timeout: 256 seconds]
brjannc has quit [Ping timeout: 256 seconds]
theRoUS has quit [Ping timeout: 256 seconds]
SoonerBourne has quit [Ping timeout: 256 seconds]
roadt has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 256 seconds]
mburns has quit [Ping timeout: 256 seconds]
ner0x has quit [Ping timeout: 256 seconds]
jso has quit [Ping timeout: 256 seconds]
dross has quit [Ping timeout: 256 seconds]
Guest57220 has quit [Ping timeout: 256 seconds]
gregorg has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 256 seconds]
Jelco___ has quit [Ping timeout: 256 seconds]
LiquidInsect has quit [Ping timeout: 256 seconds]
babinho has quit [Ping timeout: 256 seconds]
maddog__ has quit [Ping timeout: 256 seconds]
ploosh has quit [Ping timeout: 256 seconds]
DefV_ has quit [Ping timeout: 256 seconds]
tomaw has quit [*.net *.split]
chichouw has quit [*.net *.split]
afd___ has quit [*.net *.split]
seejohnr1n has quit [*.net *.split]
Criztian_ has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
Iszak has quit [*.net *.split]
BayaBaya has quit [*.net *.split]
failshel_ has quit [*.net *.split]
bricker_ has quit [*.net *.split]
bean has quit [*.net *.split]
sailias has quit [*.net *.split]
Niamkik_ has quit [*.net *.split]
fuzzyhorns has quit [*.net *.split]
dan2552 has quit [*.net *.split]
geekbri has quit [*.net *.split]
huoxito has quit [*.net *.split]
BarneyRubble has quit [*.net *.split]
msuszczy has quit [*.net *.split]
fivethre1o has quit [*.net *.split]
juarlex_ has quit [*.net *.split]
Heero has quit [*.net *.split]
vadelius has quit [*.net *.split]
pranny has quit [*.net *.split]
codenapper has quit [*.net *.split]
kx has quit [*.net *.split]
robert_ has quit [*.net *.split]
predator117 has quit [*.net *.split]
QKO has quit [*.net *.split]
Gnubie has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
yalue has quit [*.net *.split]
marcgg has quit [*.net *.split]
Asher has quit [*.net *.split]
_veer has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
s00pcan has quit [*.net *.split]
Mendon has quit [*.net *.split]
[0x1a] has quit [*.net *.split]
crazysim has quit [*.net *.split]
moshee has quit [*.net *.split]
Jb___ has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Nahra has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
tehKitten has quit [*.net *.split]
ichilton has quit [*.net *.split]
MrZYX has quit [*.net *.split]
mumblerit has quit [*.net *.split]
erichmenge has quit [*.net *.split]
jeremy_c has quit [*.net *.split]
oz has quit [*.net *.split]
bier has quit [*.net *.split]
bnagy has quit [*.net *.split]
mlue has quit [*.net *.split]
defrag1 has quit [*.net *.split]
ericwood has quit [*.net *.split]
Muz has quit [*.net *.split]
fcoury has quit [*.net *.split]
wting has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
msch has quit [*.net *.split]
ahuman has quit [*.net *.split]
92AAASRLC has quit [*.net *.split]
willrax has quit [*.net *.split]
slightair has quit [*.net *.split]
calmyournerves has quit [*.net *.split]
rtl has quit [*.net *.split]
xefi_ has quit [*.net *.split]
skinny_much has quit [*.net *.split]
ayonix has quit [*.net *.split]
Gate has quit [*.net *.split]
patronus has quit [*.net *.split]
gf3 has quit [*.net *.split]
Galaxor has quit [*.net *.split]
jlast has quit [*.net *.split]
lyanchih has quit [*.net *.split]
browndawg has quit [*.net *.split]
rhys has quit [*.net *.split]
BeLucid_ has quit [*.net *.split]
atno has quit [*.net *.split]
akells` has quit [*.net *.split]
jtharris has quit [*.net *.split]
Nisstyre has quit [*.net *.split]
tjbiddle has quit [*.net *.split]
includex has quit [*.net *.split]
moos3 has quit [*.net *.split]
ewag has quit [*.net *.split]
bobbyz has quit [*.net *.split]
jibi has quit [*.net *.split]
Coffers has quit [*.net *.split]
gsvolt has quit [*.net *.split]
Deele has quit [*.net *.split]
k-man has quit [*.net *.split]
darrik has quit [*.net *.split]
mtlatif has quit [*.net *.split]
chuk has quit [*.net *.split]
daniel_hinojosa has quit [*.net *.split]
moted has quit [*.net *.split]
shadoi has quit [*.net *.split]
bigmac has quit [*.net *.split]
timmow has quit [*.net *.split]
ccheney has quit [*.net *.split]
pygospa has quit [*.net *.split]
Rix has quit [*.net *.split]
skasio has quit [*.net *.split]
xsdg has quit [*.net *.split]
nopper has quit [*.net *.split]
error404_ has quit [*.net *.split]
supki has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
cool has quit [*.net *.split]
Schmidt has quit [*.net *.split]
wchun has quit [*.net *.split]
mosez has quit [*.net *.split]
wyan has quit [*.net *.split]
vaicine has quit [*.net *.split]
phasma has quit [*.net *.split]
xerxas has quit [*.net *.split]
madnificent has quit [*.net *.split]
Roa has quit [*.net *.split]
gtc has quit [*.net *.split]
strax has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
icco has quit [*.net *.split]
Caius has quit [*.net *.split]
rcs has quit [*.net *.split]
jhowarth has quit [*.net *.split]
nick_h has quit [*.net *.split]
NsOmNiAc has quit [*.net *.split]
ekarlso has quit [*.net *.split]
gadgetoid has quit [*.net *.split]
alexspeller has quit [*.net *.split]
jeekl has quit [*.net *.split]
patricksroberts_ has quit [*.net *.split]
Vert has quit [*.net *.split]
martxel has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
nuba has quit [*.net *.split]
sindork has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
fuleo2 has quit [*.net *.split]
jpun has quit [*.net *.split]
z has quit [*.net *.split]
Kovensky has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
TheHodge has quit [*.net *.split]
jarin has quit [*.net *.split]
paul_k has quit [*.net *.split]
iaj has quit [*.net *.split]
matti has quit [*.net *.split]
s_e has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
Morrolan has quit [*.net *.split]
ged has quit [*.net *.split]
peterhel1berg has quit [*.net *.split]
Mo0O has quit [*.net *.split]
DylanJ has quit [*.net *.split]
G has quit [*.net *.split]
melder has quit [*.net *.split]
mnms_ has quit [*.net *.split]
jerius has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
greenarrow|3 has quit [*.net *.split]
antuirno has quit [*.net *.split]
_rrecio has quit [*.net *.split]
Dekade has quit [*.net *.split]
brian`_ has quit [*.net *.split]
aspiers has quit [*.net *.split]
pentameter has quit [*.net *.split]
redgirl has quit [*.net *.split]
wmoxam has quit [*.net *.split]
krawchyk has quit [*.net *.split]
lkba has quit [*.net *.split]
r4nd0m1 has quit [*.net *.split]
bluenemo has quit [*.net *.split]
ferdev has quit [*.net *.split]
choobie has quit [*.net *.split]
khushildep has quit [*.net *.split]
Rizzle has quit [*.net *.split]
ghr has quit [*.net *.split]
swarmhost has quit [*.net *.split]
ninegrid has quit [*.net *.split]
anderson has quit [*.net *.split]
sumark has quit [*.net *.split]
Coolhand has quit [*.net *.split]
joonty has quit [*.net *.split]
devdazed has quit [*.net *.split]
Judge has quit [*.net *.split]
`MArceLL` has quit [*.net *.split]
txdv has quit [*.net *.split]
ndngvr` has quit [*.net *.split]
alexwh has quit [*.net *.split]
Pengoo has quit [*.net *.split]
weeb1e has quit [*.net *.split]
busybox42 has quit [*.net *.split]
`p has quit [*.net *.split]
__main__ has quit [*.net *.split]
ping-pong has quit [*.net *.split]
__class__ has quit [*.net *.split]
TJNII has quit [*.net *.split]
rwz__ has quit [*.net *.split]
Bish has quit [*.net *.split]
chiel has quit [*.net *.split]
Guest85414__ has quit [*.net *.split]
tchebb has quit [*.net *.split]
Raboo has quit [*.net *.split]
andredieb has quit [*.net *.split]
rodasc has quit [*.net *.split]
Rennex has quit [*.net *.split]
mahlon has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Kov|abx has quit [*.net *.split]
Nom- has quit [*.net *.split]
jaredrhine has quit [*.net *.split]
sebastianb has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
henn1nk has quit [*.net *.split]
riku has quit [*.net *.split]
xargoon has quit [*.net *.split]
dubios has quit [*.net *.split]
Spitfire has quit [*.net *.split]
Catie has quit [*.net *.split]
[Fudge] has quit [*.net *.split]
tekacs has quit [*.net *.split]
quazimod1 has quit [*.net *.split]
Squarepy has quit [*.net *.split]
elliptical has quit [*.net *.split]
arya has quit [*.net *.split]
Spooner has quit [*.net *.split]
JoseClimaco has quit [*.net *.split]
Elhu has quit [*.net *.split]
breakingthings has quit [*.net *.split]
poseid has quit [*.net *.split]
mosheee has quit [*.net *.split]
timonv has quit [*.net *.split]
eka has quit [*.net *.split]
robustus has quit [*.net *.split]
klaas has quit [*.net *.split]
nomenkun has quit [*.net *.split]
zodiak has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
Lemtzas_ has quit [*.net *.split]
lsmola has quit [*.net *.split]
hattusili_III has quit [*.net *.split]
tylersmi_ has quit [*.net *.split]
kristiandelay has quit [*.net *.split]
krisfremen has quit [*.net *.split]
_JamieD_ has quit [*.net *.split]
nfk has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
joshu has quit [*.net *.split]
Shrink has quit [*.net *.split]
jokke has quit [*.net *.split]
yo61 has quit [*.net *.split]
kstephens has quit [*.net *.split]
Cooler_ has quit [*.net *.split]
_rgn has quit [*.net *.split]
thejefflarson___ has quit [*.net *.split]
parus has quit [*.net *.split]
mroth has quit [*.net *.split]
Jedi_SCT1 has quit [*.net *.split]
andrewh has quit [*.net *.split]
mist has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
klipeto has quit [*.net *.split]
ihme-TTilus has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
scrogson has quit [*.net *.split]
bakedb has quit [*.net *.split]
fearoffish has quit [*.net *.split]
terrellt has quit [*.net *.split]
machuga has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
denken has quit [*.net *.split]
epitron has quit [*.net *.split]
monomyth has quit [*.net *.split]
Kabaka has quit [*.net *.split]
pskosinski has quit [*.net *.split]
bklang has quit [*.net *.split]
xybre has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
LucidDreamZzZ has quit [*.net *.split]
end_guy has quit [*.net *.split]
DrCode has quit [*.net *.split]
tacos1de has quit [*.net *.split]
k610 has quit [*.net *.split]
DomKM has quit [*.net *.split]
kennyvb has quit [*.net *.split]
axl_ has quit [*.net *.split]
atyz has quit [*.net *.split]
vinnyOcean has quit [*.net *.split]
nari has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
octarine has quit [*.net *.split]
rdark has quit [*.net *.split]
freerobby has quit [*.net *.split]
skogis has quit [*.net *.split]
epta has quit [*.net *.split]
crankycoder has quit [*.net *.split]
ninp0 has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
pcarrier has quit [*.net *.split]
anekos has quit [*.net *.split]
xibalba has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
breadtk has quit [*.net *.split]
mfridh has quit [*.net *.split]
dominikh has quit [*.net *.split]
jinie_ has quit [*.net *.split]
qun has quit [*.net *.split]
A124 has quit [*.net *.split]
jtcoon has quit [*.net *.split]
BBonifield has quit [*.net *.split]
awwaiid_ has quit [*.net *.split]
Fraeon has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
nw_ has quit [*.net *.split]
apeiros has quit [*.net *.split]
ssvo has quit [*.net *.split]
pootler_2 has quit [*.net *.split]
RichardBaker has quit [*.net *.split]
pootler_1 has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
boblu has quit [*.net *.split]
Myk267 has quit [*.net *.split]
DestinyAwaits has quit [*.net *.split]
generalissimo has quit [*.net *.split]
manutter|2 has quit [*.net *.split]
ElderFain has quit [*.net *.split]
nitrodex has quit [*.net *.split]
elaptics has quit [*.net *.split]
enhance has quit [*.net *.split]
soukihei has quit [*.net *.split]
wang has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
TheNumb has quit [*.net *.split]
m00nlight has quit [*.net *.split]
keyvan has quit [*.net *.split]
diego_k has quit [*.net *.split]
joast has quit [*.net *.split]
bubbajones has quit [*.net *.split]
perun0 has quit [*.net *.split]
swistak35 has quit [*.net *.split]
binw__ has quit [*.net *.split]
kloeri has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
darkc0met has quit [*.net *.split]
Hien has quit [*.net *.split]
joschi has quit [*.net *.split]
autumn has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Cork has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
felipe has quit [*.net *.split]
Rylai has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
optimusprimem has quit [*.net *.split]
sam113101 has quit [*.net *.split]
ixx has quit [*.net *.split]
davidcelis has quit [*.net *.split]
farn has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
jayne has quit [*.net *.split]
rpgsimmaster_ has quit [*.net *.split]
phreax_ has quit [*.net *.split]
bw_ has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
spacemud has quit [*.net *.split]
lancepantz has quit [*.net *.split]
daaaan has quit [*.net *.split]
mljsimone has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
Kudos has quit [*.net *.split]
eregon has quit [*.net *.split]
etank has quit [*.net *.split]
Boohbah has quit [*.net *.split]
taec has quit [*.net *.split]
jcarouth has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
atmosx has quit [*.net *.split]
snearch has quit [*.net *.split]
fredjean has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
ckrailo has quit [*.net *.split]
binaryplease has quit [*.net *.split]
ChristianS has quit [*.net *.split]
alex__c2022 has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
moeSeth_ has quit [*.net *.split]
zai_ has quit [*.net *.split]
justsee_ has quit [*.net *.split]
uxp_ has quit [*.net *.split]
AlSquirrel has quit [*.net *.split]
s0ber has quit [*.net *.split]
noname001 has quit [*.net *.split]
adambeynon has quit [*.net *.split]
burlyscudd has quit [*.net *.split]
ryannielson has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
Kruppe has quit [*.net *.split]
zomgbie has quit [*.net *.split]
spider-mario has quit [*.net *.split]
charliesome has quit [*.net *.split]
Al__ has quit [*.net *.split]
pithagorians has quit [*.net *.split]
troessner has quit [*.net *.split]
ybart has quit [*.net *.split]
Columcille has quit [*.net *.split]
radic_ has quit [*.net *.split]
lusory has quit [*.net *.split]
Hanmac has quit [*.net *.split]
dash_ has quit [*.net *.split]
hit has quit [*.net *.split]
wesside has quit [*.net *.split]
jetblack has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
Jalada has quit [*.net *.split]
nazty has quit [*.net *.split]
cheese1756 has quit [*.net *.split]
seitensei has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
wereHamster has quit [*.net *.split]
waxjar has quit [*.net *.split]
katherinem13 has quit [*.net *.split]
canton7 has quit [*.net *.split]
dayepa1 has quit [*.net *.split]
Zespre has quit [*.net *.split]
pontiki has quit [*.net *.split]
destructure has quit [*.net *.split]
patteh has quit [*.net *.split]
tjr_ has quit [*.net *.split]
Evixion` has quit [*.net *.split]
zmike has quit [*.net *.split]
malcolmva has quit [*.net *.split]
mary5030_ has quit [*.net *.split]
tatsuya__ has quit [*.net *.split]
mfletcher has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
firebury_ has quit [*.net *.split]
verto has quit [*.net *.split]
mengu_ has quit [*.net *.split]
_maes_ has quit [*.net *.split]
robscomputer has quit [*.net *.split]
interactionjaxsn has quit [*.net *.split]
chee has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
ffranz has quit [*.net *.split]
solijohn has quit [*.net *.split]
yacks has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
_br_ has quit [*.net *.split]
alanjc has quit [*.net *.split]
thams has quit [*.net *.split]
kofno has quit [*.net *.split]
joelteon has quit [*.net *.split]
ldnunes has quit [*.net *.split]
brbcoding has quit [*.net *.split]
YaNakilon has quit [*.net *.split]
azerton has quit [*.net *.split]
ramblex has quit [*.net *.split]
stonevil has quit [*.net *.split]
zigomir has quit [*.net *.split]
senayar has quit [*.net *.split]
marr has quit [*.net *.split]
Guga_ has quit [*.net *.split]
obs has quit [*.net *.split]
Astralum has quit [*.net *.split]
relix has quit [*.net *.split]
epylinkn has quit [*.net *.split]
Kar- has quit [*.net *.split]
pi3r has quit [*.net *.split]
sandstrom has quit [*.net *.split]
takezawa has quit [*.net *.split]
KhalilC has quit [*.net *.split]
paissad has quit [*.net *.split]
geoffw8_ has quit [*.net *.split]
jcromartie has quit [*.net *.split]
dnyy has quit [*.net *.split]
SeySayux has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
synthetix has quit [*.net *.split]
preller has quit [*.net *.split]
rotor has quit [*.net *.split]
classix has quit [*.net *.split]
blz37 has quit [*.net *.split]
hamakn has quit [*.net *.split]
fbernier has quit [*.net *.split]
bmn has quit [*.net *.split]
Tarential has quit [*.net *.split]
kiela has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
telling has quit [*.net *.split]
sweeper has quit [*.net *.split]
emptynine has quit [*.net *.split]
nimor has quit [*.net *.split]
prophile has quit [*.net *.split]
fcoury__ has quit [*.net *.split]
heidar has quit [*.net *.split]
davidboy has quit [*.net *.split]
eval-in has quit [*.net *.split]
is0m0rph has quit [*.net *.split]
drizz_ has quit [*.net *.split]
thibauts_ has quit [*.net *.split]
huttan has quit [*.net *.split]
naquad has quit [*.net *.split]
cespare has quit [*.net *.split]
yellow5 has quit [*.net *.split]
wuest has quit [*.net *.split]
toquonce has quit [*.net *.split]
grillermo has quit [*.net *.split]
swordsmanz has quit [*.net *.split]
tommyvyo has quit [*.net *.split]
mikewintermute has quit [*.net *.split]
threesome has quit [*.net *.split]
araujo has quit [*.net *.split]
fermion has quit [*.net *.split]
codex has quit [*.net *.split]
bothra has quit [*.net *.split]
yasu has quit [*.net *.split]
r0bby has quit [*.net *.split]
halfie has quit [*.net *.split]
ec_ has quit [*.net *.split]
Veejay has quit [*.net *.split]
jaimef has quit [*.net *.split]
airtonix has quit [*.net *.split]
drfreeze has quit [*.net *.split]
dv_ has quit [*.net *.split]
homelinen has quit [*.net *.split]
woolite64_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
zaargy has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
jackal_af has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
m_3 has quit [*.net *.split]
zphobic has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
karnowski has quit [*.net *.split]
madhatter has quit [*.net *.split]
wykydtron has quit [*.net *.split]
matled has quit [*.net *.split]
flurick has quit [*.net *.split]
jbw has quit [*.net *.split]
yshh_ has quit [*.net *.split]
MrThePl__ has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
asuka has quit [*.net *.split]
Davey has quit [*.net *.split]
danshultz has quit [*.net *.split]
haxrbyte has quit [*.net *.split]
johnmilton has quit [*.net *.split]
ssickle has quit [*.net *.split]
denver has quit [*.net *.split]
jds has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
marsLantern has quit [*.net *.split]
ejnahc has quit [*.net *.split]
yashshah_ has quit [*.net *.split]
dmyers has quit [*.net *.split]
Akuma has quit [*.net *.split]
mcpierce has quit [*.net *.split]
rlb3 has quit [*.net *.split]
Zelest has quit [*.net *.split]
bsdbandit has quit [*.net *.split]
Anarch has quit [*.net *.split]
laitances14 has quit [*.net *.split]
multi_io has quit [*.net *.split]
jtperreault has quit [*.net *.split]
thelamest has quit [*.net *.split]
deavid has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
ddd has quit [*.net *.split]
k3rn3lito has quit [*.net *.split]
alex88 has quit [*.net *.split]
bluehavana has quit [*.net *.split]
coaster has quit [*.net *.split]
FDj has quit [*.net *.split]
ainame has quit [*.net *.split]
faulkner has quit [*.net *.split]
spacebug_ has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
matrixise has quit [*.net *.split]
DrForr has quit [*.net *.split]
cout has quit [*.net *.split]
adamholt has quit [*.net *.split]
jnix has quit [*.net *.split]
anildigitl has quit [*.net *.split]
rblackwe has quit [*.net *.split]
jefflyne has quit [*.net *.split]
Guest4693 has quit [*.net *.split]
viszu has quit [*.net *.split]
mashu74 has quit [*.net *.split]
agjacome has quit [*.net *.split]
voodoofish has quit [*.net *.split]
ozzloy has quit [*.net *.split]
rippa has quit [*.net *.split]
deadalus has quit [*.net *.split]
broquaint has quit [*.net *.split]
ebouchut has quit [*.net *.split]
ry4nn has quit [*.net *.split]
mnemon has quit [*.net *.split]
mnaser has quit [*.net *.split]
apes has quit [*.net *.split]
replay has quit [*.net *.split]
jwest has quit [*.net *.split]
Brando753 has quit [*.net *.split]
oddraisin has quit [*.net *.split]
Quadlex has quit [*.net *.split]
hexbit has quit [*.net *.split]
three18ti has quit [*.net *.split]
companion has quit [*.net *.split]
fred has quit [*.net *.split]
Elfix has quit [*.net *.split]
shaman42 has quit [*.net *.split]
DonVitoCorleone has quit [*.net *.split]
ccooke has quit [*.net *.split]
thomas` has quit [*.net *.split]
Sargun has quit [*.net *.split]
maloik_ has quit [*.net *.split]
alo1_ has quit [*.net *.split]
mephux_ has quit [*.net *.split]
emdub has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
steeve1 has quit [*.net *.split]
tr4656_ has quit [*.net *.split]
robwilliamsuk has quit [*.net *.split]
elektronaut has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
angelixd has quit [*.net *.split]
samu has quit [*.net *.split]
bhaak has quit [*.net *.split]
linduxed has quit [*.net *.split]
jouty has quit [*.net *.split]
tethra has quit [*.net *.split]
fasta has quit [*.net *.split]
erry has quit [*.net *.split]
r0bglees0n has quit [*.net *.split]
notbrent__ has quit [*.net *.split]
cjs226 has quit [*.net *.split]
mmitchell has quit [*.net *.split]
jim_r0x has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
kpshek has quit [*.net *.split]
awestroke has quit [*.net *.split]
osvico has quit [*.net *.split]
camilasan has quit [*.net *.split]
pipopopo has quit [*.net *.split]
pietr0 has quit [*.net *.split]
zets has quit [*.net *.split]
BizarreCake has quit [*.net *.split]
_Andres has quit [*.net *.split]
heftig has quit [*.net *.split]
Jackneill has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
toddWork_ has quit [*.net *.split]
reactormonk has quit [*.net *.split]
aboudreault has quit [*.net *.split]
marienz has quit [*.net *.split]
zalgor has quit [*.net *.split]
ziyadb has quit [*.net *.split]
wudofyr___ has quit [*.net *.split]
yeban has quit [*.net *.split]
Weazy has quit [*.net *.split]
conceal_rs_____ has quit [*.net *.split]
ttt has quit [*.net *.split]
gstamp has quit [*.net *.split]
idoru has quit [*.net *.split]
rismoney has quit [*.net *.split]
passcod has quit [*.net *.split]
cibs has quit [*.net *.split]
closer009 has quit [*.net *.split]
blitzkev has quit [*.net *.split]
v0n has quit [*.net *.split]
AllStruck has quit [*.net *.split]
teddyp1cker has quit [*.net *.split]
Appineer has quit [*.net *.split]
framling has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
sayan has quit [*.net *.split]
devoldmx has quit [*.net *.split]
Xeago has quit [*.net *.split]
JumpMast3r has quit [*.net *.split]
ebouchut_ has quit [*.net *.split]
Zai00 has quit [*.net *.split]
danslo has quit [*.net *.split]
northelks has quit [*.net *.split]
echevemaster has quit [*.net *.split]
felixjet has quit [*.net *.split]
didlix has quit [*.net *.split]
peret has quit [*.net *.split]
hash has quit [*.net *.split]
Villadelfia has quit [*.net *.split]
devyn has quit [*.net *.split]
Nuck has quit [*.net *.split]
stopbit has quit [*.net *.split]
Patchou has quit [*.net *.split]
im0b has quit [*.net *.split]
lectrick has quit [*.net *.split]
ZadYree has quit [*.net *.split]
Guest2154 has quit [*.net *.split]
withnale has quit [*.net *.split]
TomRone has quit [*.net *.split]
ThePicard has quit [*.net *.split]
zeroXten has quit [*.net *.split]
randym_ has quit [*.net *.split]
yonahw has quit [*.net *.split]
wormwood has quit [*.net *.split]
taqutor has quit [*.net *.split]
Azure has quit [*.net *.split]
KRF has quit [*.net *.split]
cam` has quit [*.net *.split]
Alasdairrr has quit [*.net *.split]
al3xnull has quit [*.net *.split]
v2px has quit [*.net *.split]
Daemoen has quit [*.net *.split]
BombStrike has quit [*.net *.split]
Koshian__ has quit [*.net *.split]
dbruns_ has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
Derander has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
TMM has quit [*.net *.split]
krishna_ has quit [*.net *.split]
RORgasm has quit [*.net *.split]
djbkd has quit [*.net *.split]
braincrash has quit [*.net *.split]
lupine has quit [*.net *.split]
daniel-s has quit [*.net *.split]
PhilK has quit [*.net *.split]
jimeh has quit [*.net *.split]
aalmenar has quit [*.net *.split]
ereslibre has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
Nanuq has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
ryan_turner has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
jaybe has quit [*.net *.split]
LBRapid has quit [*.net *.split]
hoelzro has quit [*.net *.split]
prime has quit [*.net *.split]
caveat- has quit [*.net *.split]
kpwz has quit [*.net *.split]
Mekkis has quit [*.net *.split]
e-dard has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
PeteyT has quit [*.net *.split]
seich- has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
SirFunk has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
Nightmare has quit [*.net *.split]
dotemacs has quit [*.net *.split]
zz_pinage404 has quit [*.net *.split]
JoeHazzers has quit [*.net *.split]
phantomcircuit has quit [*.net *.split]
eliasp has quit [*.net *.split]
cowbacon has quit [*.net *.split]
flori has quit [*.net *.split]
ned has quit [*.net *.split]
foobArrr has quit [*.net *.split]
TheSpect1e has quit [*.net *.split]
fumduq has quit [*.net *.split]
sn0wb1rdz has quit [*.net *.split]
tris has quit [*.net *.split]
musl has quit [*.net *.split]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
ferdev has joined #ruby
Cache_Money1 has quit [Ping timeout: 245 seconds]
<kraljev1>
what if we violate that constraint?
ffio has joined #ruby
<kraljev1>
that value might not be there
erry has quit [Killed (banks.freenode.net (Nickname regained by services))]
erry_ is now known as erry
<MrZYX>
if it's not there at the last level you'll get nil
<MrZYX>
if an intermediate key isn't there already, you'll get NoMethod for NilClass
<kraljev1>
otherwise error about #[]
sideshowcoder_ has joined #ruby
Jackneill_ has joined #ruby
_Andres_ has joined #ruby
senayar has joined #ruby
mmitchel_ has joined #ruby
<MrZYX>
if you want nil instead: .inject(hash) {|hash, key| hash[key] || {} }
ziyadb_ has joined #ruby
ziyadb_ has quit [Changing host]
ziyadb_ has joined #ruby
johnmlocklear_ has joined #ruby
kpshek has quit [Ping timeout: 264 seconds]
aboudreault has quit [Ping timeout: 264 seconds]
zets has quit [Ping timeout: 264 seconds]
toddWork_ has quit [Ping timeout: 264 seconds]
pipopopo has quit [Ping timeout: 264 seconds]
conceal_rs_____ has quit [Ping timeout: 264 seconds]
fasta has quit [Ping timeout: 264 seconds]
r0bglees0n has quit [Ping timeout: 264 seconds]
osvico has quit [Ping timeout: 264 seconds]
pietr0 has quit [Ping timeout: 264 seconds]
BizarreCake has quit [Ping timeout: 264 seconds]
heftig has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 264 seconds]
yeban has quit [Ping timeout: 264 seconds]
Weazy has quit [Ping timeout: 264 seconds]
cjs226 has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Ping timeout: 264 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
reactormonk has quit [Ping timeout: 264 seconds]
zalgor has quit [Ping timeout: 264 seconds]
mmitchell has quit [Ping timeout: 264 seconds]
_Andres has quit [Ping timeout: 264 seconds]
ziyadb has quit [Ping timeout: 264 seconds]
tethra has quit [Ping timeout: 264 seconds]
jim_r0x has quit [Ping timeout: 264 seconds]
sideshowcoder has quit [Ping timeout: 264 seconds]
wudofyr___ has quit [Ping timeout: 264 seconds]
pipopopo has joined #ruby
kpshek_ is now known as kpshek
sideshowcoder_ is now known as sideshowcoder
<MrZYX>
well, actually that'll return {}
yeban has joined #ruby
tethra has joined #ruby
kasper has joined #ruby
<MrZYX>
.inject(hash) {|hash, key| (hash|| {})[key] } was it
Evixion has joined #ruby
bigkevmcd has joined #ruby
heftig has joined #ruby
Squarepy has joined #ruby
Evixion` has quit [Ping timeout: 268 seconds]
reactormonk has joined #ruby
dnyy has joined #ruby
cmarques has joined #ruby
<kraljev1>
that is smart :)
sgkim126l has quit [Remote host closed the connection]
C0deMaver1ck has quit [Excess Flood]
kraljev1 has quit [Remote host closed the connection]
codecop has joined #ruby
C0deMave- has joined #ruby
danslo has joined #ruby
includex has quit [Quit: Leaving...]
_Andres_ has quit [Client Quit]
C0deMave- has quit [Changing host]
C0deMave- has joined #ruby
_Andres has joined #ruby
C0deMave- is now known as C0deMaver1ck
ziyadb_ is now known as ziyadb
agjacome_ has quit [Quit: leaving]
banister`sleep has quit [Remote host closed the connection]
ChronocityLC has quit [Ping timeout: 257 seconds]
aboudreault has joined #ruby
cjs226 has joined #ruby
riddley2 has left #ruby [#ruby]
lyanchih has quit [Quit: lyanchih]
freerobby has quit [Quit: Leaving.]
<r0bgl33s0n>
sup dnyy
<r0bgl33s0n>
funny seeing you here
adeponte has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
<dnyy>
r0bgl33s0n: i am all about some ruby bruh
angusiguess has joined #ruby
zalgor has joined #ruby
bigoldrock has joined #ruby
JZTech101 has quit [Ping timeout: 268 seconds]
RORgasm_ has joined #ruby
krainboltgreene has joined #ruby
wudofyr___ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
dagobah_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
ttt has joined #ruby
grillermo has quit [Quit: bandtastic.me]
ShellFu has joined #ruby
nbouscal has quit [Ping timeout: 240 seconds]
BlakeRG has joined #ruby
mrsolo has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
kraljev1 has joined #ruby
Xeago has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
BayaBaya has quit [Quit: Leaving]
osvico has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
mosheee has joined #ruby
headius has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
pootler_2 has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
arusso has joined #ruby
danslo has quit [Quit: danslo]
pootler_1 has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
JZTech101 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 240 seconds]
Kruppe has joined #ruby
brianherman has joined #ruby
sgkim126l has joined #ruby
mburns_ is now known as mburns
nomenkun has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
chrisja has joined #ruby
<BlakeRG>
what's a good background worker framework? i need something i can poll a database with every X number of minutes and process the data
<spcshpopr8r>
but, hell, it's just a list of numbers
jztech101_ has joined #ruby
zomgbie_ has joined #ruby
<spcshpopr8r>
MrZYX: I've tried bunches of packing/unpacking but not that particular incantation...let me try
wolcanus has joined #ruby
Columcil1e has joined #ruby
<MrZYX>
well, the dots and newlines aren't in that format
<spcshpopr8r>
Hanmac: my system `locale` is en_US.UTF-8
s0ber_ has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
<spcshpopr8r>
JAVA_OPTS set as such as well (tried with "UTF-8" and "en_US.UTF8")
sepp2k has joined #ruby
kpshek_ has joined #ruby
io_syl_ has joined #ruby
chrisja has quit [Read error: Operation timed out]
Elhu has quit [Ping timeout: 252 seconds]
alex__c2022_ has joined #ruby
ananthakumaran1 has joined #ruby
<apeiros>
the tons of null-bytes suggests utf-16
hkal has joined #ruby
<apeiros>
and broken too since utf-16 afaik is mandated to have a BOM (which your file lacks)
jesly has joined #ruby
<_br_>
I'm using RMagick here. I want to write color patches with a specific RGB as fill color. I can't get this to work. How can I pass rgb ints (0-255), to RMagick::Draw#fill ? Currently I'm using "rgb(int,int,int)" but it just writes white patches despite it containing different ints.
tenseiten has joined #ruby
<MrZYX>
guess they are doubles from 0 to 1
Al___ has joined #ruby
uxp has joined #ruby
<apeiros>
hm, odd though that the number is \x07 and cat shows it as 7
wallerdev has quit [Quit: wallerdev]
wereHams1er has joined #ruby
<apeiros>
MrZYX: you mean int16? doubles are floating point…
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
queequeg2 has joined #ruby
<MrZYX>
apeiros: sorry, that was for _br_
patteh_ has joined #ruby
<apeiros>
ah
<apeiros>
sorry :)
burlyscudd has joined #ruby
spider-mario_ has joined #ruby
babinho has joined #ruby
lusory_ has joined #ruby
jetblack_ has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DefV_ has joined #ruby
haxrbyte has joined #ruby
tjr__ has joined #ruby
<sandstrom>
I'm building a small image server that will load images from S3, modify and resize them, and serve them. When I access an image using the url from the AWS S3 console latency is ~90 ms, but when using the AWS Ruby SDK latency is ~1000 ms. Any thoughts on why this may be?
erry_ has joined #ruby
verto has joined #ruby
<_br_>
MrZYX: Hm, trying that currently lets see
spider-mario has quit [Disconnected by services]
wesside_ has joined #ruby
pontiki_ has joined #ruby
spider-mario_ is now known as spider-mario
aqil has joined #ruby
[1]SoonerBourne has joined #ruby
katherin1m13 has joined #ruby
dash__ has joined #ruby
erry has quit [Killed (leguin.freenode.net (Nickname regained by services))]
monkegjinni has quit [Remote host closed the connection]
rbento has quit [Remote host closed the connection]
devoldmx has joined #ruby
pithagorians has joined #ruby
jesly1 has joined #ruby
bricker_ is now known as bricker
rbento has joined #ruby
rbento has quit [Max SendQ exceeded]
spider-mario has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
rbento has joined #ruby
<bricker>
rather than needlessly making a new, identical object every time the method is called
vlad_starkov has quit [Ping timeout: 252 seconds]
eldariof has quit [Read error: Operation timed out]
<MrZYX>
we got symbols for that
freerobby has joined #ruby
katherin1m13 is now known as katherinem13
<bricker>
MrZYX: yeah but I can't really store a hash of defaults in a symbol, can I?
jesly has quit [Ping timeout: 248 seconds]
boblu has quit [Ping timeout: 260 seconds]
sross07 has joined #ruby
jesly has joined #ruby
<MrZYX>
nope, I can only judge from you example ;)
eldariof has joined #ruby
<bricker>
eh?
<MrZYX>
in your example a symbol would work
interactionjaxsn has quit [Ping timeout: 256 seconds]
<bricker>
MrZYX: oh yeah
<bricker>
MrZYX: I guess an example closer to my actual scenario would have been more helpful
<bricker>
MrZYX: so pretend that string was instead a hash or some other object that couldn't be symbolized - is this approach sensible?
<MrZYX>
depends on what the caller does with the return value
jesly1 has quit [Ping timeout: 276 seconds]
<bricker>
I guess the other option is to memoize, but I like this approach because I don't have to define the method on every class, just a constant at the top of the class
adambeynon has joined #ruby
<MrZYX>
i.e. I'd make sure to freeze it at least
<bricker>
clear to other developers where to go to change a default
troessner has quit [Quit: Leaving]
<BlakeRG>
is there a gem to pretty print data structures list lists and arrays
<bricker>
caller would just be doing something like defauts[:limit], where `def defaults; self.class::DEFAULTS; end`
<BlakeRG>
not rails specific
<bricker>
BlakeRG: awesome_print
<BlakeRG>
bricker: done and done, thanks!
<bricker>
BlakeRG: Pry also does it, if you're into that sort of thing
nomenkun has quit [Remote host closed the connection]
Xeago has joined #ruby
canton7 has joined #ruby
wsterling has joined #ruby
ij has quit [Ping timeout: 240 seconds]
beiter has joined #ruby
rezzack has joined #ruby
yebyen has joined #ruby
<yebyen>
i have a feeling there may be a gem for what I want to do, but I don't know it...
<waxjar_>
BlakeRG, prettyprint (pp) from the stdlib?
<BlakeRG>
this is golden, thanks bricker
<yebyen>
how can I take an event, and defer processing until I see if more similar events come?
<BlakeRG>
hmmm… let me see what pp can do too
altamic has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
altamic has left #ruby [#ruby]
<yebyen>
my goal is to wait until no more events come for about 1 whole minute, and then let the deferred processing execute just once
<yebyen>
is there a data structure just for what I want to do?
<yebyen>
it's slightly more complicated because the events are not in a thread, they're coming from incron
cofin has quit [Read error: Connection reset by peer]
<BlakeRG>
i know bundler exists, but is there something like an autoload file? (coming from PHP/composer world)
<BlakeRG>
so i don't have to require so many libs in my script
<BlakeRG>
i can just bundle install, and require one file
<terrellt>
yebyen: I dunno. Just a regular queue who you only pop things off of when a timer (that gets reset) falls to zero?
sandstrom has quit [Remote host closed the connection]
Myconix has joined #ruby
<MrZYX>
BlakeRG: read up on Bundler.require
<fryguy>
BlakeRG: you should read the bundler documentation. bundler does the requires for you
aspiers has joined #ruby
<yebyen>
terrellt: that's kind of what I want, but more in the form of a lockfile
<BlakeRG>
awesome, thanks MrZYX and fryguy
<yebyen>
terrellt: maybe I touch a file, and wait 60 seconds... if the mtime has changed by then, don't do anything
<yebyen>
terrellt: and when the 60 seconds pass with no changes, remove the file and do the job?
<yebyen>
that sounds like it should work
ShellFu is now known as ShellFu_lunch
daniel_- has joined #ruby
cofin has joined #ruby
vinnyOcean has quit [Quit: Computer has gone to sleep.]
splittingred has quit [Quit: splittingred]
<waxjar_>
you can iterate over an array of library names and require them all
sideshowcoder has quit [Read error: Operation timed out]
wsterling has quit [Ping timeout: 276 seconds]
kasper has quit [Remote host closed the connection]
jtharris has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
wolcanus has quit [Remote host closed the connection]
jtharris has joined #ruby
sideshowcoder has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
ttt has joined #ruby
Xeago has quit [Remote host closed the connection]
<BlakeRG>
i've moved all of my app dependancies over to a gem file and ran bundle install, how do i load them into my ruby script now? i've tried adding: require 'bundler/setup'
alvaro_o has joined #ruby
cj3kim has quit [Remote host closed the connection]
<bricker>
BlakeRG: Bundler.require
alvaro_o has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
roadt has quit [Ping timeout: 261 seconds]
jibi has quit [Quit: .]
monkegjinni has joined #ruby
interactionjaxsn has joined #ruby
tommyvyo has joined #ruby
<BlakeRG>
bricker: ok, think thats working sort of. i added: require 'bundler/setup'; Bundler.require
sethetter has left #ruby [#ruby]
<BlakeRG>
awesome_print complains: cannot load such file -- crack/xml
echevemaster has quit [Quit: Leaving]
ttt has quit [Ping timeout: 252 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
thesheff17 has joined #ruby
<BlakeRG>
looks like i need to 'gem install crack'… but if that's a dependency of awesome_print why didn't bundler install it for me?
<BlakeRG>
when i require the three libs i need right in the script it works fine
<fryguy>
looks like crack isn't specified as a dependency in awesome_print for some reason
LennyLinux has joined #ruby
<BlakeRG>
lib/ruby/gems/1.9.1/gems/ap-0.1.1/lib/ap.rb:2:in `require': cannot load such file -- crack/xml (LoadError)
mfletcher has quit [Ping timeout: 268 seconds]
falood has joined #ruby
<BlakeRG>
hah, i fixed it
<BlakeRG>
i had to require ruby gems as well
<MrZYX>
hm, you shouldn't need to on 1.9
kenneth has joined #ruby
<kenneth>
hey all
<kenneth>
i have a question for you
jdunck has quit [Ping timeout: 245 seconds]
<BlakeRG>
should i be on 2.0 ?
ffranz has quit [Ping timeout: 268 seconds]
<BlakeRG>
think i went back down to 1.9 for some tutorial i was following
<MrZYX>
if you start learning, I'd suggest that, yeah
<kenneth>
so i'd like to capture stdout and stderr. that's easy, i can just do $stdout/err = a_string_io
<BlakeRG>
sorry everyone, total ruby newbie here, been on PHP for 12 years.. need something better
Squarepy has quit [Quit: Leaving]
krainboltgreene has quit [Ping timeout: 245 seconds]
<Hanmac>
kenneth: depends some use STDOUT / STDERR
thesheff17 has quit [Ping timeout: 252 seconds]
<kenneth>
but if i want to keep the chronology between them; while still knowing which output goes to which; is there a way to do that?
ffio has joined #ruby
<Hanmac>
BlakeRG: you found it ;P
<kenneth>
Hanmac: i can live with that. not much of a problem in my use case
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jdunck has joined #ruby
<kenneth>
basically what i'd like to do is make a rack middleware that'll capture all output (and any exception) and print a json that looks like this:
burlyscudd has quit [Quit: Leaving.]
burlyscudd has joined #ruby
pinage404 is now known as zz_pinage404
timonv has joined #ruby
<kenneth>
{output: [ {stdout: 'hello world'}, {stderr: 'something just got printed to stderr\nand something else'}, {stdout: 'and this went to stdout'} ], exception: {desc: 'w/e', backtrace: [ … ] } }
<kenneth>
it'll make it much easier to log things in a production environment (since each request == just one line)
falood has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
<kenneth>
and then i'll make a tool that you can pipe these log files to and it'll print nicely formatted logs in color etc
ffranz has joined #ruby
<BlakeRG>
i need something that i can harness at least green threads and do background worker, data processing type stuff
RobW_ has left #ruby [#ruby]
railsbros_dirk has quit [Quit: railsbros_dirk]
jbpros has joined #ruby
<kenneth>
the only tricky part right now is keeping the chronology between the stdout and stderr captures
Appineer has quit [Remote host closed the connection]
Appineer has joined #ruby
_adeponte has joined #ruby
Speed has joined #ruby
Tobarja_laptop has quit [Quit: Leaving]
falood has joined #ruby
mfletcher has joined #ruby
postmodern has joined #ruby
endzyme has joined #ruby
<Speed>
Hanmac: back. about your gist before
adeponte has quit [Ping timeout: 248 seconds]
<Speed>
you got rid of the deallocate method
<Speed>
but I bet the destructor doesn't get automatically called?
wallerdev has joined #ruby
malcolmva has quit [Remote host closed the connection]
malcolmva has joined #ruby
<Hanmac>
Speed: the problem: if the Texture is used, on the C++ side, but the GC thinks that the value is not used on the Ruby side it tries to destroy the ruby object ... if the C++ object is still in use while this happens you get bad results
<Speed>
hmm, this is getting a bit too complicated regarding how everything is set up.. I'd just want an easy way to mess with both Sprite and sprite's Texture in Ruby, while it'd look like C in the background
<Hanmac>
other direction: when the C++ side destroy the object, the Pointer inside the Ruby object can get invalid too (my rwx binding does not full cover this case up)
tommyvyo has joined #ruby
<BlakeRG>
how do i print a data's type?
mikewintermute has joined #ruby
daniel_- has quit [Remote host closed the connection]
<Hanmac>
BlakeRG: you mean object.class ?
<fryguy>
BlakeRG: call the class method on it
<Speed>
let's say you had to write a ruby binding, and you had those two classes, Sprite and Texture, where Texture can either be a child instance variable of Sprite or behave on it's own
angusiguess has joined #ruby
<Speed>
how'd you write the bindings for it
monkegjinni has quit [Remote host closed the connection]
banister`sleep has joined #ruby
thesheff17 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<BlakeRG>
so even all basic data types are a class?
<MrZYX>
yes
<MrZYX>
well, objects
<Hanmac>
BlakeRG: in ruby yes
browndawg has quit [Quit: Leaving.]
RichardBaker has quit [Quit: RichardBaker]
<MrZYX>
BlakeRG: even classes have a class ;P
<BlakeRG>
assignment operators ?
stkowski has quit [Quit: stkowski]
Banistergalaxy has quit [Ping timeout: 260 seconds]
<BlakeRG>
monkey patching gone wild
sambao21 has joined #ruby
seejohnr1n has quit [Ping timeout: 256 seconds]
ryannielson has left #ruby [#ruby]
Banistergalaxy has joined #ruby
<Hanmac>
Speed: in this case if i dont have control about the lib itself i just would use WRAP_STRUCT and the other without keeping the reference to the Ruby object of the Texture ... so sprite.texture always make an new ruby object but with the same C++ Pointer inside
<Speed>
ah I see
<Speed>
well I'll write a few more classes in C, then figure out what actually makes sense in ruby..
denver has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<Hanmac>
Speed it also depends if your Sprite#getTexture on the C++ side returns an Texture*Pointer or an Texture&Reference and if the object is deleted when the Sprite dies ...
vlad_sta_ has joined #ruby
<Hanmac>
because of that i copy references often to the heap with new so the Ruby object does not get invalid if the Sprite object dies
<Hanmac>
in my current project rendertarget.view returns an reference of the View object (because you mostly will not use a view without a window), but sprite.color returns a copy
chriskk has joined #ruby
nomenkun has joined #ruby
kjellski has joined #ruby
tatsuya_o has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
c0rn has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit:]
daniel_- has joined #ruby
railsbros_dirk has joined #ruby
Zai00 has joined #ruby
atno has joined #ruby
Appineer has left #ruby [#ruby]
daniel_- has quit [Client Quit]
ffio has quit [Quit: WeeChat 0.4.1]
maetthew has joined #ruby
kenneth has quit [Quit: kenneth]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
Zai00 has quit [Client Quit]
wsterling has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mnaser has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
ldnunes has joined #ruby
carloslopes has joined #ruby
kpshek has quit []
Scient- is now known as Scient
wsterling has quit [Ping timeout: 260 seconds]
ShellFu_lunch is now known as ShellFu
jdunck has quit [Quit: Computer has gone to sleep.]
Spooner has quit [Read error: Connection reset by peer]
eka has joined #ruby
jlebrech has joined #ruby
k610 has joined #ruby
railsbros_dirk has quit [Quit: railsbros_dirk]
dhruvasagar has joined #ruby
zomgbie_ has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
_adeponte has quit [Remote host closed the connection]
_Andres has joined #ruby
banjara has joined #ruby
jbpros_ has joined #ruby
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
diegoviola has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
jbpros has quit [Ping timeout: 276 seconds]
jbpros_ is now known as jbpros
anderson has joined #ruby
danshultz has quit [Remote host closed the connection]
wsterling has joined #ruby
sepp2k1 has joined #ruby
ttt_ has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
ferr has quit [Remote host closed the connection]
fermion has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has quit [Quit: Leaving.]
adeponte has joined #ruby
timonv has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
ttt_ has quit [Ping timeout: 256 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
pranny has quit [Ping timeout: 240 seconds]
<atmosx>
In order to put a dependency in a gemspec, I put s.dependency = "gem", "version-no" ?
kpshek has joined #ruby
kasper has joined #ruby
cantonic has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
chichouw has quit [Remote host closed the connection]
teclator has joined #ruby
pranny has joined #ruby
angusigu1ss has quit [Ping timeout: 276 seconds]
kasper has quit [Ping timeout: 240 seconds]
ffio has joined #ruby
toquonce has quit [Quit: toquonce]
johnmlocklear_ has quit [Quit: Leaving]
<atmosx>
got it
carlyle has quit [Remote host closed the connection]
Elhu has joined #ruby
jdunck has joined #ruby
Astral_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
takezawa has quit [Remote host closed the connection]
endzyme has quit [Remote host closed the connection]
apples_ has joined #ruby
wolcanus_ has joined #ruby
takezawa has joined #ruby
Jackneill_ has quit [Read error: Operation timed out]
anderson has quit [Read error: Connection reset by peer]
sethetter has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
kadoo has joined #ruby
<sethetter>
True or False: the use of __FILE__ is not permitted when calling ruby via cgi..?
anderson has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
marcgg_ has quit [Read error: No route to host]
Astralum has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<apeiros>
sethetter: try it
ivanoats has quit [Ping timeout: 256 seconds]
<apeiros>
wait, no, don't.
cj3kim has joined #ruby
<apeiros>
it'll make your computer explode, after deleting all your data and sending all your porn to all email addresses in your contacts!
<sethetter>
I did. I'm trying to narrow down where my failure is happening. That's my best guess so far.
carloslopes has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
<apeiros>
also, who on earth still uses cgi? o0
<sethetter>
No big deal, I've got computers to spare. And maybe my contacts would appreciate it :)
<sethetter>
My employer.. :( I'm not stoked about it. It's cgi scripting in ruby 1.8.7
<sethetter>
But, the executives have spoken... Awesome right?
<apeiros>
lol
<apeiros>
I'd fire that employer
<sethetter>
Good idea, I'll shoot them an email real quick.
<sethetter>
Oh wait, I forgot. They're paying my bills..
<sethetter>
Damn monetary system.
marcgg has joined #ruby
rrecio has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
Lemtzas_ has quit [Remote host closed the connection]
milardovich has quit [Quit: Leaving]
Elhu has quit [Quit: Computer has gone to sleep.]
graft has quit [Ping timeout: 252 seconds]
cjs226 has quit [Quit: cjs226]
darrik has joined #ruby
<MrZYX>
tell them that their system won't receive any security updates anymore and that could mean that they'll loose money :P
terrellt has quit [Ping timeout: 264 seconds]
sayan_ has joined #ruby
ivanoats has joined #ruby
<sethetter>
MrZYX: If they listened to anything I said, I wouldn't have started this project in the first place.
<pontiki_>
perhaps even lose money
sayan has quit [Ping timeout: 256 seconds]
sayan_ has quit [Read error: Connection reset by peer]
sayan has joined #ruby
vlad_starkov has joined #ruby
pentameter has joined #ruby
jlebrech has joined #ruby
jacktrick has joined #ruby
monkegjinni has joined #ruby
ivanoats_ has joined #ruby
akells` has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
beiter has left #ruby [#ruby]
cheese1756_ has quit [Changing host]
cheese1756_ has joined #ruby
beiter has joined #ruby
arya_ has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
ColKurtz has joined #ruby
ivanoats has quit [Read error: Connection reset by peer]
beiter has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
Anarch has quit [Ping timeout: 276 seconds]
Criztian has joined #ruby
KhalilC has quit [Ping timeout: 268 seconds]
Anarch has joined #ruby
maetthew has quit [Quit: Computer has gone to sleep.]
Astralum has quit [Read error: Operation timed out]
Astralum has joined #ruby
atmosx has quit [Quit: And so the story goes…]
tonini has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 256 seconds]
Al___ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
sayan has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 252 seconds]
cofin has quit [Quit: cofin]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
ILoveYou has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mityaz has quit [Quit: See ya!]
xibalba has quit [Changing host]
xibalba has joined #ruby
Aaaarg has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
azerton has joined #ruby
guiocavalcanti has joined #ruby
Davey has joined #ruby
ttt_ has joined #ruby
falood has quit [Remote host closed the connection]
Davey has quit [Client Quit]
Davey has joined #ruby
guiocava_ has joined #ruby
guiocavalcanti has quit [Read error: No route to host]
arya_ has quit [Ping timeout: 248 seconds]
ivanoats_ has quit [Ping timeout: 246 seconds]
johnmilton has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
ttt_ has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
arya has joined #ruby
apeiros has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
saintcajetan has joined #ruby
kirun has quit [Quit: Client exiting]
guiocavalcanti has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
guiocava_ has quit [Ping timeout: 252 seconds]
guiocavalcanti has joined #ruby
jds has quit [Remote host closed the connection]
ivanoats has joined #ruby
jds has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
viszu has quit [Quit: Leaving.]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
failshell has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
cheese1756_ has quit [Excess Flood]
_theriffer_ has quit [Quit: _theriffer_]
whitenoise has joined #ruby
guiocava_ has joined #ruby
kadoo has joined #ruby
<whitenoise>
why is it that ActiveSupport Inflector methods don't work on strings after it's required..but I have to call ActiveSupport::Inflector.pluralize(string) rather than being able to do string.pluralize
ivanoats_ has joined #ruby
tindron has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
jtharris has quit [Quit: WeeChat 0.4.0]
Davey has quit [Quit: Computer has gone to sleep.]
stkowski has quit [Quit: stkowski]
cheese1756 has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
JimmyNeutron has joined #ruby
Aaaarg has quit [Quit: Aaaarg]
stonevil has joined #ruby
jds has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 252 seconds]
jds has joined #ruby
atmosx has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<whitenoise>
answer: it's because i did require 'active_support' rather than require 'active_support/inflector'
tindron has quit [Quit: Page closed]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]