havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
d10n-work has quit [Quit: Connection closed for inactivity]
oleo has quit [Quit: irc client terminated!]
brent__ has joined #ruby
Qommand0r has quit [Ping timeout: 240 seconds]
SCHAPiE has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
marr has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
skweek has joined #ruby
oleo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
SCHAPiE has joined #ruby
Qommand0r has joined #ruby
charliesome has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
ptx0 has quit [Quit: leaving]
charliesome has quit [Client Quit]
bronson has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
Andrevan has joined #ruby
dmtd has joined #ruby
V1s1ble has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
bkxd has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
brent__ has quit [Remote host closed the connection]
gaucheph has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
bronson has quit [Remote host closed the connection]
mokiwis has joined #ruby
mokiwis has quit [Client Quit]
cagomez has joined #ruby
Channel6 has joined #ruby
rgr_ has quit [Ping timeout: 255 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
GodFather has quit [Max SendQ exceeded]
GodFather has joined #ruby
GodFather has quit [Client Quit]
cfec0b8d has quit [Remote host closed the connection]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gheegh has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
bkxd has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Evening Ruby.
jusa has quit [Ping timeout: 240 seconds]
ptx0 has joined #ruby
pwnd_nsfw` has joined #ruby
nankyokusei has joined #ruby
guardianJ has joined #ruby
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
^mtkd has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
jgnagy has joined #ruby
antib has quit [Ping timeout: 255 seconds]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
bkxd has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
d^sh has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
jgnagy has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
guardianJ is now known as NORTH_SOUTH_DENN
NORTH_SOUTH_DENN is now known as NORTHSOUTHDENNIS
<DeeJayh> PorcoRex, Howdy!
mim1k has joined #ruby
<DeeJayh> Quick question folks, let's say I have an int in ruby and get a percentage out of it that would be a float. like 95 * 0.15 = 14.25
<DeeJayh> Does ruby convert it to a float? auto round down or up?
jenrzzz has joined #ruby
<DeeJayh> because when I do: a = 95; b = a * 0.15; puts b
<DeeJayh> I get 14.25 as if it's a float
<DeeJayh> and if I b.ceil, I get 15, but when used in the argument I'm doing, it stays as 14.
<Papierkorb> it autoconverts to floating point DeeJayh
mim1k has quit [Ping timeout: 268 seconds]
<DeeJayh> Papierkorb, thanks that's what I thought and experienced through my testing, but it doesn't seem to be cooperating. I'm sure it's something silly
raspado has quit [Remote host closed the connection]
NORTHSOUTHDENNIS has quit [Remote host closed the connection]
NORTHSOUTHDENNIS has joined #ruby
brent__ has joined #ruby
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antib has joined #ruby
NORTHSOUTHDENNIS has quit [Remote host closed the connection]
Andrevan has quit [Quit: WeeChat 1.7.1]
antib has quit [Ping timeout: 240 seconds]
NORTHSOUTHDENNIS has joined #ruby
llw has joined #ruby
bkxd has quit [Quit: Lost terminal]
llw has quit [Client Quit]
esObe_ has joined #ruby
<DeeJayh> There's gotta be a better way to do this... This is what I wrote, and it works, but it's a total nightmare and I'm wondering if I could've done it a better way: https://gist.github.com/Ruined1/dda25f8063ec766279050e7f4ad9ba36
gizmore|2 has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 240 seconds]
<elomatreb> You could probably refactor the ranges into clearly named methods, to better convey intent
<elomatreb> Also, you don't *have* to use a switch here, a if/elsif chain with > operations is probably cleaner and avoids duplication
skweek has quit [Remote host closed the connection]
pb122 has joined #ruby
NORTHSOUTHDENNIS has quit [Read error: Connection reset by peer]
NORTHSOUTHDENNIS has joined #ruby
skweek has joined #ruby
libastral has quit [Ping timeout: 246 seconds]
nowhereman has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
libastral has joined #ruby
Ebok has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
xall_ has joined #ruby
NORTHSOUTHDENNIS has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
NORTHSOUTHDENNIS has joined #ruby
genpaku has joined #ruby
duderonomy has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
LastWhisper____ has joined #ruby
<haylon> Could/Should I use the README.md for my gem's spec.description ?
bronson has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
DeeJayh-L has joined #ruby
Ebok has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 268 seconds]
govg has joined #ruby
[ohjn] has joined #ruby
ttilley has quit [Quit: Linkinus - http://linkinus.com]
NORTHSOUTHDENNIS has quit [Ping timeout: 255 seconds]
haylon has quit [Quit: Leaving]
armando has joined #ruby
NORTHSOUTHDENNIS has joined #ruby
jusa has joined #ruby
esObe_ has joined #ruby
<DeeJayh-L> elomatreb, do you think an ifelse would truly be better? I thought they were interchangeable for the most part and it was a matter of preference. Also, when you say "refactor the ranges into clearly named methods" can you give me an example?
romeoh_ has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
esObe_ has quit [Read error: Connection reset by peer]
esObe_ has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
<DeeJayh-L> I think I understand what you mean, but this only needs to happen once, normally you break things out into methods to write less code (by not re-writing the same functions over and over through your code) but in this case it's going to actually add code and spread it out more, seems counter-intuative
Channel6 has quit [Quit: Leaving]
esObe_ has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 255 seconds]
<romeoh_> looking for a way to convert a Symbol to a string, replace a substring, and then convert back to a symbol. I've got this working, seems terrible:
<romeoh_> @title_args[:order] = "#{@title_args[:order]}".sub!(/reverse_/, '').to_sym
<Ebok> It's not horrible.
<Ebok> I mean, I would try to avoid needing to do this type of conversion in the first place
<romeoh_> thanks - new to all this. Jumped on a project and they are appending the queries to page titles
<romeoh_> problem is when they are sorting, there is a reverse options
<Ebok> what kind of queries are we talking about?
<romeoh_> and the values for these queries don't exist in translations
<Ebok> Like sorting queries?
<romeoh_> yeah
<romeoh_> sort_by_name, sort_by_reverse_name
<Ebok> Yeah.. How much of this is there already?
<romeoh_> A LOT
<Ebok> That's a shame
<romeoh_> yeah
<Ebok> Well if you have to add to bad code, it's not going to look great.
<romeoh_> i've taken the project to learn more, so maybe I'll suggest a revamping of this area
ben_____ has quit [Ping timeout: 240 seconds]
<romeoh_> eventually
<Ebok> I would strongly suggest a good test suite, and then a day of splitting.
<romeoh_> another option is adding all those additional values to the translations
<Ebok> Or you could just write methods for them
perniciouscaffei has joined #ruby
<Ebok> def sort_by_name_reverse ; call sort_by_name.reverse ; end
<romeoh_> http://rubyfiddle.com/riddles/a3161/2 is what I'm looking @
<romeoh_> titles are passed something like: {:by=>"reverse_updated_at", :type=>:observation, :order=>:sort_by_reverse_updated_at}
<romeoh_> that's fed into the translation @title_tag.t()
<romeoh_> so something like: query_title_all_by: "[TYPES] by [ORDER]"
<Ebok> correct me here. @title_args is a symbol
<Ebok> I mean tag
<Ebok> @title_tag
<Ebok> Then in title... @title_tag gets called #t(args)
<Ebok> Why is a symbol invoking anything?
<Ebok> Also where is flavor defined?
<Ebok> Oh, this is just a chunk of a module, right. So the parent is responcible.
enterprisey has joined #ruby
<Ebok> Honestly... it looks like major refactoring needs to take place.
<romeoh_> yeah, I think so man
<romeoh_> @title_tag is like a base for the page title
<romeoh_> it looks in the localization locale for query_title_all which is: "[TYPE] Index"
<romeoh_> but this is a HUGE and old codebase
<Ebok> Well, the very first thing I'd do is put in that code you've got to get it working.
<romeoh_> I appreciate your feedback, I'm new to Rails.
mim1k has joined #ruby
<romeoh_> been using the opportunity to pick apart everyting
<Ebok> This is rails..?
<romeoh_> yeah -
<Ebok> Okay then.
<Ebok> There are a number of suggestions then.
<Ebok> 1. ) In your own time / when your boss says okay / when you've nothing on your plate
<Ebok> I'd consider pulling out the sorting from the main class.
<Ebok> Write it as a service to whatever active record model you're using.
NORTHSOUTHDENNIS has quit [Read error: Connection reset by peer]
<Ebok> And handle all the sorting logic in one place.
NORTHSOUTHDENNIS has joined #ruby
<Ebok> Only do this if you have good test coverage over the features. Hopefully your test coverage was well written unit tests.
<Ebok> Otherwise I'd write tests first <_>
charliesome has joined #ruby
<romeoh_> Sounds good, I will take note and talk to the others. I really appreciate it.
<romeoh_> This is just a volunteer project I jumped on for fun pretty recently. Been digging at it in when my workflow is light.
<romeoh_> It's pretty neat and about a decade old.
<Ebok> Open source, or just learning?
<romeoh_> Started as a hobby project, it's open source.
mim1k has quit [Ping timeout: 258 seconds]
<romeoh_> Hobby project for the original dude.
<Ebok> Yeah, the way we think about rails now is not how they thought about rails then.
<Ebok> rails can be really flexible, but you can also build some really fragile code if you're not careful.
NORTHSOUTHDENNIS has quit [Read error: Connection reset by peer]
<Ebok> I tend to write a lot of small service classes organized by module. module FEATURE class ACTION. So you want to pull out the code so when you go to test the thing, you only have to test input to output.
NORTHSOUTHDENNIS has joined #ruby
<romeoh_> Yeah, I'm seeing that fragility first hand. This app is pretty big, I'm digging around everywhere trying to find the relevant code. A lot of this stuff is probably not where is should be located either.
<DeeJayh-L> I skip rails altogether, seems like unless you're building a very basic DB based site, it's not as useful as it first appeared.
<romeoh_> It's cool the site involves scientific classification so there is a rad complexity to it
<DeeJayh-L> I write my backend in ruby and have a frontend guy, then just communicate between the two
<romeoh_> for other side projects i've been using mostly node
<romeoh_> but I always had a fascination w/ Rails
roamingdog has joined #ruby
<DeeJayh-L> I did until I realized there was true power in the freedom of ruby without rails
<DeeJayh-L> I mean if you want to create another twitter, great! Rails away! Otherwise, unfortunately, it seems more of a hinderance.
jusa has joined #ruby
<romeoh_> Yeah I've got to venture out more
<romeoh_> I work as a freelance front end dev, but would like to transition over to more of a back end role.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<Ebok> Honestly, I learned to code in Rails
bronson has joined #ruby
<Ebok> But everytime I pull most of the ruby out of it, everything is nicer
<Ebok> When I'm allowed, I pretty much work on Rails as a plugin. At which point anything could be there instead and it would work just as well.
<DeeJayh-L> I mean, rails is just a framework for ruby. Rails is ruby language with structure to generate a website
<DeeJayh-L> but the structure seems too limited
jusa has quit [Ping timeout: 240 seconds]
<DeeJayh-L> I can create a site like twitter or netflix and host database information all day with it, but if I want a site with a roulette wheel on one page and something else on the next, seems to get pretty difficult from there
<Ebok> It's certainly easy to become dependent on Rails when working in it.
<romeoh_> yeah, or any framework
<Ebok> Best code I've seen pretty much works by itself, and the framework is used as a transition module. How to get input and output to the user.
cfec0b8d has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<Ebok> Or the database... or another website.
<DeeJayh-L> but that's what I'm saying, to display a database entry it's fantastic, but what if I want a spinning wheel displaying the results of a roulette game, starts to get cumbersome to stick to rails when something is easily made in HTML that doesn't require that framework. Add a little javascript to make socket connections to the ruby backend running it all and you got the best of both worlds
<Ebok> mhmm.
jenrzzz has quit [Ping timeout: 240 seconds]
<DeeJayh-L> easy for the front end guy, easy for the backend guy, and your own custom language between the two of you for your socket reads/writes
<DeeJayh-L> of course, being a full stack developer is better
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DeeJayh-L> as far as employability and such, but from a purely hobbyist/oss standpoint, it's better for each piece to be as easy as possible
duderonomy has quit [Ping timeout: 260 seconds]
<Ebok> Being full stack does not mean it's good to mix client and server logic
hutch34 has joined #ruby
<Ebok> I'm a full stack dev myself, it's not hard to be anywhere. The trick is being disciplined in everywhere.
dmtd has quit [Quit: Connection closed for inactivity]
<romeoh_> time to build a Roulette game ;D
Ebok has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 255 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
NORTHSOUTHDENNIS has quit [Read error: Connection reset by peer]
NORTHSOUTHDENNIS has joined #ruby
romeoh_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
dcunit3d has joined #ruby
moufl has quit [Quit: fuck it.]
romeoh has joined #ruby
moufl has joined #ruby
gix has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
NORTHSOUTHDENNIS has quit [Ping timeout: 240 seconds]
gix has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
sebd has quit [Ping timeout: 240 seconds]
sebd has joined #ruby
NORTHSOUTHDENNIS has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 240 seconds]
roflmyeggo has joined #ruby
Tempesta has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
cschneid_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
esObe_ has joined #ruby
wigner has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
Bock has joined #ruby
Puffball has joined #ruby
Tempesta has joined #ruby
itarato has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
jusa has joined #ruby
dionysus69 has joined #ruby
bronson has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
quobo has quit []
astrobunny has quit [Remote host closed the connection]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DeeJayh-L has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 260 seconds]
NORTHSOUTHDENNIS has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
gaucheph has quit [Ping timeout: 260 seconds]
roflmyeggo has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
roflmyeggo has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
drcode has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
nadir has quit [Quit: Connection closed for inactivity]
roflmyeggo has quit [Ping timeout: 240 seconds]
drcode has joined #ruby
JeanCarloMachado has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
esObe_ has joined #ruby
esObe__ has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
esObe__ has quit [Ping timeout: 260 seconds]
electrostat has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
bairyn has quit [Read error: Connection reset by peer]
enterprisey has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
charliesome has quit [Ping timeout: 240 seconds]
pwnd_nsfw` is now known as pwnd_nsfw
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
enterprisey has joined #ruby
Pumukel has joined #ruby
rippa has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
Dimik has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
cschneid_ has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> o0
_aeris_ has quit [Remote host closed the connection]
<apeiros> at least they seem to log extensively
nankyokusei has joined #ruby
_aeris_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
PorcoRex has quit [Quit: Leaving]
rgr_ has joined #ruby
bkxd has joined #ruby
esObe_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
charliesome has joined #ruby
Lucky_ABA has joined #ruby
jenrzzz has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
User458764 has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
bronson has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
toretore has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
marr has joined #ruby
itarato has quit [Quit: WeeChat 1.7]
jenrzzz has quit [Ping timeout: 268 seconds]
djbkd_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
arch____ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Pumukel has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
dionysus69 has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
govg has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
electrostat has joined #ruby
guardianJ has joined #ruby
esObe_ has joined #ruby
rgr_ has quit [Quit: rgr_]
User458764 has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
_sfiguser has joined #ruby
rgr has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
jameser_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jameser has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
djbkd_ has quit [Remote host closed the connection]
bairyn has joined #ruby
Pumukel has joined #ruby
samer has joined #ruby
samer has quit [Client Quit]
Rneq has joined #ruby
<Rneq> I'm trying to use joins to reduce multiple requests to the database, but I'm kinda stuck on this matter. Could anyone point me in the right direction?
lxsameer has joined #ruby
guardianJ has quit [Remote host closed the connection]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianJ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
johnzorn has quit [Quit: Ciao]
nadir has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
antib has joined #ruby
Rneq has quit [Quit: Page closed]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
arquebus has joined #ruby
arquebus has quit [Max SendQ exceeded]
nobodyzxc has joined #ruby
dcunit3d has quit [Quit: WeeChat 1.4]
conta1 has joined #ruby
esObe_ has joined #ruby
mhenrixon has joined #ruby
mhenrixon has quit [Client Quit]
bkxd has joined #ruby
bronson has joined #ruby
_sfiguser has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 240 seconds]
esObe_ has quit [Read error: Connection reset by peer]
esObe_ has joined #ruby
conta has quit [Ping timeout: 240 seconds]
conta1 is now known as conta
_sfiguser has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
ski7777 has joined #ruby
blackwind_123 has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
Joufflu has joined #ruby
KeyJoo has joined #ruby
xco has joined #ruby
xall_ has joined #ruby
patarr has joined #ruby
Pumukel has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
_2easy has quit [Quit: leaving]
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
dionysus69 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 268 seconds]
BTRE has quit [Ping timeout: 240 seconds]
raatiniemi has quit [Remote host closed the connection]
raatiniemi has joined #ruby
minimalism has quit [Quit: minimalism]
BTRE has joined #ruby
alveric has joined #ruby
tomphp has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alveric has quit [Quit: WeeChat 1.7.1]
alveric has joined #ruby
Pumukel has joined #ruby
guardianJ has quit [Ping timeout: 264 seconds]
jcao219 has joined #ruby
esObe_ has joined #ruby
nankyokusei has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
xall_ has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
esObe_ has quit [Ping timeout: 264 seconds]
Mia has quit [Read error: Connection reset by peer]
ledestin has quit [Ping timeout: 255 seconds]
guardianJ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
conta has quit [Quit: conta]
crst has joined #ruby
jdeen has quit [Remote host closed the connection]
<crst> Hi, how can I change formatting (2017-05-06 to Mai 6 2017, for english) of this without destroying I18n: I18n.localize(article.date.to_date)
My_Hearing has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
Megan_ has joined #ruby
oleo has quit [Ping timeout: 255 seconds]
nobodyzxc has quit [Quit: leaving]
Megan_ is now known as megan1994
oleo has joined #ruby
megan1994 is now known as shinzah
shinzah has quit []
shinzah has joined #ruby
RaeCarruth has joined #ruby
RaeCarruth was kicked from #ruby by ChanServ [Banned: troll]
bkxd has quit [Read error: Connection reset by peer]
leitz has joined #ruby
oleo has quit [Ping timeout: 245 seconds]
oleo has joined #ruby
oded has joined #ruby
My_Hearing has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Mia has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
roamingdog has joined #ruby
oleo has quit [Ping timeout: 258 seconds]
guardianJ has quit [Remote host closed the connection]
oleo has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
blackwind_123 has quit [Ping timeout: 268 seconds]
My_Hearing has joined #ruby
blackwind_123 has joined #ruby
BTRE has joined #ruby
rgr has quit [Quit: rgr]
oleo has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
xco has quit [Quit: xco]
oleo has joined #ruby
Pumukel has joined #ruby
cschneid_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
esObe_ has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
oleo has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
govg has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
rgr has joined #ruby
oleo has joined #ruby
oleo has quit [Client Quit]
Ishido has joined #ruby
oleo has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
millerti has joined #ruby
govg has quit [Ping timeout: 240 seconds]
BaroMeter has joined #ruby
ddffg has joined #ruby
govg has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Ping timeout: 255 seconds]
nowhereman has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Pumukel has joined #ruby
nankyokusei has joined #ruby
<Verity> pwnd_nsfw, ??
<leitz> @work?
Pumukel has quit [Ping timeout: 240 seconds]
<leitz> I'm more discouraged by coming back to my code and forgetting simple stuff.
nankyokusei has quit [Ping timeout: 258 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
JeanCarloMachado has joined #ruby
TreyG has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
gnufied has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
mint has joined #ruby
sepp2k has joined #ruby
Zarthus is now known as Brothus
bathtub_shark is now known as Zarthus
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
KeyJoo has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
KeyJoo has joined #ruby
JeanCarloMachado has joined #ruby
volty has joined #ruby
roamingdog has joined #ruby
bronson has joined #ruby
hardwin has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
mint has quit [Read error: Connection reset by peer]
blipz has left #ruby ["Be back later..."]
PatriqueEtoile2 is now known as PatrikasZvaigzde
esObe_ has joined #ruby
jameser has joined #ruby
govg has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
esObe_ has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
ddffg has quit [Quit: Leaving]
xco has joined #ruby
roflmyeggo has joined #ruby
Pumukel has joined #ruby
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
DeeJayh-L has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
kiltzman has quit [Ping timeout: 268 seconds]
kiltzman has joined #ruby
<dyyylan> what is the syntax `class << self` ?
<dyyylan> is that kind of like in other languages class foo extends bar?
jameser has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
mint has quit [Ping timeout: 260 seconds]
<hanmac> dyyylan: it opens the eigenclass of the object, with that is easier to define singleton methods (class methods) on a class or object
bkxd has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
jameser_ has joined #ruby
romeoh has quit [Remote host closed the connection]
romeoh has joined #ruby
<dyyylan> I see. thanks
andrzejku has joined #ruby
jameser__ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
xco has left #ruby [#ruby]
romeoh has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
jameser_ has quit [Ping timeout: 240 seconds]
crst has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
mint has quit [Max SendQ exceeded]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tildes has joined #ruby
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
rgr_ has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
mint has quit [Max SendQ exceeded]
binaryplease has joined #ruby
nankyokusei has quit [Remote host closed the connection]
rgr has quit [Ping timeout: 258 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
Lucky_ABA has joined #ruby
esObe_ has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hardwin has quit [Remote host closed the connection]
Tomski80 has joined #ruby
<shinzah> I'm trying to create some specs for OAuth2 flows. I'm using the oauth2 library to do so. But I'm having some trouble with this. Anyone who has some experience with mocking oauth applications?
jgnagy has joined #ruby
patarr has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd_ has quit [Ping timeout: 240 seconds]
unreal has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bronson has joined #ruby
nmpribeiro has joined #ruby
GodFather_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
<nmpribeiro> hi there. trying to install 'gems install compass --user-install' outputs an error: /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:676: warning: Insecure world writable dir /home/admin in PATH, mode 040777
<nmpribeiro> You don't have write permissions for the /usr/local/rvm/gems/ruby-2.4.0/bin directory.
<nmpribeiro> anyone has an idea?
jameser__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
minimalism has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
asdfghzxcvbn has joined #ruby
<volty> nmpribeiro: seems the install script of compass pretends to install where it shouldn t
<nmpribeiro> volty: got a time to research and read. adding my user to rvm group did the trick
<nmpribeiro> :)
unreal has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has quit [Quit: Nappy time]
rgr_ has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
rgr_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
jameser has joined #ruby
rgr_ has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
jameser has quit [Client Quit]
vuoto has joined #ruby
User458764 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
jameser has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
jameser has quit [Client Quit]
esObe_ has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
shinzah has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
charliesome has joined #ruby
bronson has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
amperry has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
cschneid_ has quit [Ping timeout: 258 seconds]
volty has quit [Ping timeout: 240 seconds]
cisco has joined #ruby
esObe_ has joined #ruby
bronson has joined #ruby
nanoz has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
blackwind_123 has joined #ruby
JeanCarloMachado has joined #ruby
shinzah has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
My_Hearing has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nobodyzxc has joined #ruby
xall_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
My_Hearing has joined #ruby
nankyokusei has joined #ruby
My_Hearing is now known as Mon_Ouie
hutch34 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Guest96 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 246 seconds]
Guest96 has joined #ruby
nanoz has quit [Quit: <3]
Pumukel has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
Tomski80 has quit [Ping timeout: 240 seconds]
cseder has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
<cseder> good evening fellow gem diggers
<cseder> Can't believe that not all people use their Saturdays for coding in Ruby ;)
romeoh_ has joined #ruby
<SeepingN> I am!
gusrub has joined #ruby
vuoto has joined #ruby
<cseder> Same SeepingN
<SeepingN> coding may be a strong word. scripting? hacking? I really need to get my OO design on
<cseder> I've been taxing back and forth picking up my MacBook from service, just to discover it was still not working as it should, so had to return it again and now it's already evening here in timezone#relative and I have tons of stuff to finish...
<cseder> have to complain somewhere
nmpribeiro has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
asdfghzxcvbn has quit [Quit: Quit]
<SeepingN> that sucks
<SeepingN> overheating?
shinzah has quit [Remote host closed the connection]
shinzah has joined #ruby
asdfghzxcvbn has joined #ruby
asdfghzxcvbn has quit [Max SendQ exceeded]
asdfghzxcvbn has joined #ruby
asdfghzxcvbn has quit [Max SendQ exceeded]
asdfghzxcvbn has joined #ruby
asdfghzxcvbn has quit [Max SendQ exceeded]
gusrub has quit [Remote host closed the connection]
shinzah has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
binaryplease has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
andrzejku has joined #ruby
bronson has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
tildes has quit [Ping timeout: 264 seconds]
perniciouscaffei has joined #ruby
blackmesa has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
blackmesa has joined #ruby
Pumukel has joined #ruby
tildes has joined #ruby
Guest96 has quit [Remote host closed the connection]
patarr has joined #ruby
Guest96 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
bernd27 has quit [Remote host closed the connection]
bronson has joined #ruby
jackrandom has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Guest88277 is now known as rprimus
Sammichmaker has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
shinzah has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 268 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
PatrikasZvaigzde has joined #ruby
mim1k has joined #ruby
roamingdog has joined #ruby
bmarkons_ has joined #ruby
Amoeba_ has joined #ruby
northfurr has joined #ruby
mim1k has quit [Ping timeout: 245 seconds]
nowhereman has quit [Ping timeout: 260 seconds]
roamingdog has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
BSaboia has joined #ruby
bungoman has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
bungoman has joined #ruby
bmarkons_ has quit [Quit: Leaving]
nobodyzxc has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
perniciouscaffei has joined #ruby
Lucky_ABA has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
knoxvilles_joker has joined #ruby
tildes has joined #ruby
jackrandom has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
jackrandom has joined #ruby
vuoto has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 268 seconds]
awesomess3 has joined #ruby
<awesomess3> What is the '-rubygems' command-line option? is that used to older ruby command-line builds?
<awesomess3> I saw it in a gist script and I removed it and it worked just as well.
<elomatreb> Rubygems used to be something you needed to enable
<awesomess3> but now it's no longer necessary? Do you know which version of ruby made it so that it became implicitly enabled?
<havenwood> awesomess3: 1.9
<awesomess3> Should I put it in my scripts so my Ubuntu 10.04 can use my script?
<havenwood> awesomess3: With Rubies shipped these days there's no need. 1.8 is dead.
<awesomess3> so there's a dead program in my end-of-life operating system?
<havenwood> awesomess3: Err, how old is your Ubuntu??
randomguy has joined #ruby
vuoto has joined #ruby
vuoto has quit [Client Quit]
Pumukel has joined #ruby
<randomguy> Whats the best way to do a 301 redirect of a ruby app on aws? Should i handle this within the application or at the load balancer level? I am a beginner
roflmyeggo has quit [Ping timeout: 268 seconds]
conta1 has joined #ruby
vuoto has joined #ruby
<awesomess3> randomguy: how do you create a ruby app on aws?
<randomguy> Im using elastic beanstalk
<nickjj> i would do all forms of redirects/SSL at the load balancer / proxy level
Pumukel has quit [Ping timeout: 255 seconds]
knoxvilles_joker has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.7.1]
vuoto has quit [Remote host closed the connection]
sp4rrow has joined #ruby
conta1 has quit [Quit: conta1]
jrafanie has joined #ruby
conta1 has joined #ruby
conta1 has quit [Remote host closed the connection]
<awesomess3> havenwood: Linux awesomess3-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
northfurr has quit [Quit: northfurr]
patarr has quit [Ping timeout: 268 seconds]
_2easy has quit [Quit: Lost terminal]
__Yiota has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
tomphp has joined #ruby
dn` has quit [Read error: Connection reset by peer]
Lucky_ABA has joined #ruby
guest44 has joined #ruby
guest44 has left #ruby [#ruby]
skweek has quit [Ping timeout: 240 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
romeoh_ has quit [Remote host closed the connection]
skweek has joined #ruby
randomguy has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
romeoh has joined #ruby
randomguy has joined #ruby
sp4rrow has quit [Quit: Textual]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
romeoh has quit [Ping timeout: 246 seconds]
randomgu_ has joined #ruby
jrafanie has joined #ruby
gusrub has quit []
randomguy has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
_2easy has joined #ruby
Tomski80 has joined #ruby
tristanp has quit [Remote host closed the connection]
cseder has quit [Ping timeout: 240 seconds]
govg has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tomski80 has quit [Quit: Leaving]
futilegames has joined #ruby
JeanCarloMachado has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrzejku has joined #ruby
Pumukel has joined #ruby
tomphp has joined #ruby
hutch34 has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
marr has joined #ruby
futilegames has quit [Quit: futilegames]
esObe_ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
shinzah has quit []
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<awesomess3> omg nobody has said anything xD
<awesomess3> for 1 hour 7 minutes
<awesomess3> actually I stopped using my Ubuntu 10.04 in 2013
<awesomess3> I saw the deadlights
roflmyeggo has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jrafanie has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
blackmesa has joined #ruby
cipher_ has joined #ruby
cipher_ is now known as spheric
blackmesa has quit [Ping timeout: 245 seconds]
somerandomteen has joined #ruby
blackmesa has joined #ruby
jackjackdripper has joined #ruby
esObe_ has joined #ruby
<somerandomteen> Hi all, having a problem with validations. Wondered if someone could help? https://gist.github.com/mashedkeyboard/c942cb5be33356b16257ca524f977ffc the :dob validation errors because value is nil, and you can't call to_date on NilClass.
<awesomess3> So you need a way to determine if the value is nil?
<somerandomteen> No, I'm sending the value in the registration form.
<somerandomteen> RegistrationsController is just the bog-standard Devise controller, and I'm using <%= f.text_field :dob, placeholder: 'Date of birth', class: 'form-control' %> in <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> to send the data, just the same as I send :name et al.
dn` has joined #ruby
roamingdog has joined #ruby
bronson has quit [Remote host closed the connection]
<somerandomteen> Request parameters as copied from the error page are here https://thepasteb.in/p/oYhlEzGNwp1UZ. For some reason, the DOB is in the request, but never makes it into the local record variable
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
spheric has quit [Quit: Textual IRC Client: www.textualapp.com]
spheric has joined #ruby
bronson has joined #ruby
armyriad has joined #ruby
somerandomteen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
spheric has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
spheric has joined #ruby
Pumukel has joined #ruby
__Yiota has joined #ruby
wigner has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
esObe_ has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
KeyJoo has quit [Remote host closed the connection]
leitz has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
biberu has quit []
blackmesa has quit [Ping timeout: 240 seconds]
<leitz> Any suggestins on why my if-elsif stuff isn't dealing with the lines? https://gist.github.com/LeamHall/342dc86c2265d38d0ec9afe56ce6a0c9
jackjackdripper has quit [Quit: Leaving.]
<leitz> Trying to parse PMs from various forums.
<apeiros> leitz: you know you can put non-code into a separate file in the same gist
<apeiros> what do you mean by "isn't dealing with the lines"?
<leitz> apeiros, actually, didn't know that.
<apeiros> what behavior do you observe, and what did you expect instead?
<apeiros> oh, brb, 2min
<leitz> I expect that each line gets dealt with according to the elseif. So most get put into a nested hash. If I have "puts line" right under the "in_file.each_line" it puts the line, so I know it's reading the lines.
Lucky_ABA has quit [Ping timeout: 246 seconds]
<leitz> If it's cleaner I can put the code and a sample file on github.
<apeiros> yes, please update your gist so I can reproduce what's happening for you
blackmesa has joined #ruby
<apeiros> the other secret git feature is that you can edit existing gists ;-)
<apeiros> has the benefit of providing nice diffs
<apeiros> and yes, that's better, thanks :)
<leitz> Ah...still learning. A lot to learn, it seems. :)
<leitz> The end state is a sing hash turned into JSON so I can dump it into MongoDB.
<apeiros> oh, you wrote the other file as comment
<apeiros> you should click "add file" and add it as a file. can't get raw of a comment :(
<leitz> Gimme a sec.
<apeiros> sure
auv has quit []
auv has joined #ruby
bkxd has joined #ruby
auv has quit [Client Quit]
Channel6 has joined #ruby
auv has joined #ruby
DLSteve has joined #ruby
<leitz> Didn't like adding the txt file.
<leitz> "Something went wrong". How verbose...
hutch34 has joined #ruby
<apeiros> oy, bugs in github? :D
<leitz> Hehe...would another gist of just the txt work?
hutch34 has quit [Read error: Connection reset by peer]
Joufflu has quit [Quit: Leaving]
hutch34 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<apeiros> sure
<leitz> I see the "Add file" now, with a new gist. Didn't see if once I had created the first gist.
cisco has quit [Quit: Leaving.]
<apeiros> well, your code hangs in "elsif messageid == 0"
hutch34 has quit [Ping timeout: 258 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
<leitz> Yup, just saw that. That has to be after the section that increments message_id.
<leitz> And fixing the attempt to append to a String makes it work. For mild definitions of "work".
jackrandom has quit [Remote host closed the connection]
jackrandom has joined #ruby
<leitz> Hmm...not getting the other hash keys in, and not good json.
<leitz> More work to do...
m0d has joined #ruby
jackrandom has quit [Remote host closed the connection]
volty has joined #ruby
jackrandom has joined #ruby
<apeiros> you tell me when you need further help :)
m0d has quit [Client Quit]
<leitz> I'll always need further help, just not sure what to ask yet. ;)
lagweezle_away is now known as lagweezle
modlin has joined #ruby
JoshS has joined #ruby
Ishido has quit [Remote host closed the connection]
quobo has joined #ruby
ddffg has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
<leitz> Hey apeiros, didn't they upgrade Ruby to allow malformed range calls on arrays? :P
blackmesa has joined #ruby
roflmyeggo has quit [Quit: Lost terminal]
<leitz> Still need to figure out why the JSON is malformed.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Quit: WeeChat 1.7.1]
mostlybadfly has joined #ruby
<apeiros> I don't think ruby allows anything malformed (and it shouldn't)
kies^ has quit [Ping timeout: 245 seconds]
awesomess3 has left #ruby ["Leaving"]
<leitz> /usr/local/lib/ruby/2.4.0/json/common.rb:286:in `generate': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)
<leitz> And the "malformed" was me poking fun at me; the hash keys'weren't being set because I wasn using the wrong range mechanism.
lxsameer has quit [Quit: WeeChat 1.7]
<leitz> Not sure what the JSON error means, unless the file as bad UTF-8 in it.
cschneid_ has joined #ruby
<apeiros> well, the error certainly implies that your string is not valid utf-8
t-recx has joined #ruby
<leitz> Well, that stinks. Is there a way to parse a string and test if it's mal-formed? The files can get pretty long and I don't want to try and find one character.
<apeiros> File.read(path).valid_encoding?
<apeiros> the example you gave is one message?
<apeiros> actually, seems to be 2 messages?
<leitz> Actual files contain 50-150 messages
<apeiros> sounds great
<apeiros> IMO you should split on ==…
<apeiros> and then process per message
<apeiros> and use classes
<apeiros> and stuff and dunno whatever
<apeiros> so before first ===… is metadata, and then ===… separates individual messages?
<apeiros> always 80 "="?
<leitz> Yes on ===
nertzy2 has quit [Quit: Leaving]
<leitz> Not sure on always 80 as I'm going to be parsing from different forums.
<leitz> This one is first.
Sembei has joined #ruby
<leitz> Was avoiding a class because 1) I stink at OOP and 2) This is just a data store.
jcao219 has joined #ruby
nertzy has joined #ruby
<leitz> Well, dang. This puts false: puts File.read("privatemessages-Leitz-April 5th, 2016.txt").valid_encoding?
Pisuke has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 258 seconds]
<apeiros> you'll keep stinking if you never try it
<apeiros> and it's ok if your first attempts at OOP stink
<apeiros> everybody's first attempts stank
<leitz> I've been trying it for a few years. That's why I think I stink. :)
<leitz> So, creating an encodings array and having each line append it's encoding to the array, and then doing a uniq! leaved me with UTF-8
tildes has joined #ruby
ddffg has quit [Ping timeout: 264 seconds]
<leitz> leaves
<leitz> Updating gems, just in case.
<volty> something like this: str = IO.read ... ; str.encode!( 'UTF-8', 'ISO-8859-1', invalid: :replace ) unless str.valid_encoding? ?
nowhereman has joined #ruby
<leitz> Ah, found it.
<leitz> Mangled volty's suggestion.
coderphive has joined #ruby
<leitz> So this line still uts UTF-8 puts line.encoding unless line.valid_encoding?
<volty> Sorry, can't get it.
tildes has quit [Ping timeout: 240 seconds]
<leitz> The line's encoding reports as UTF-8, but that's the line that chokes the script.
nankyokusei has joined #ruby
<leitz> Yup, that was it.
cseder has joined #ruby
<volty> and how are you going to fix it, hopefully forever ?
<leitz> Right now with "vi", as my attempts at encoding didn't seem to work.
<leitz> It reported as UTF-8 but choked on line.valid_encoding?
<volty> try to force re-encoding and see if it makes diff, and what is the diff
LastWhisper____ has joined #ruby
<volty> i have a question. I forgot about closures. Need a func timeTrue(n) that when called returns true the first n times, then false
<volty> timesTrue(n)
nankyokusei has quit [Ping timeout: 255 seconds]
<cseder> I'm just considering different options and I'm just learning ruby and rails. Heroku seems like a pretty good option for a startup, by reducing efforts involved in infrastructure, but will it scale well independent of server location?
<leitz> cseder, Rails and Ruby can scale pretty well. Not blazing fast performance. but if you spend a week or two with it you'll now if you like coding in it.
<leitz> I find enjoyment of the language a primary motivated to code, which is the primary tool for getting better.
<cseder> leitz Was thinking more about Heroku as a platform to deploy apps to, does it scale well if audience is spread across the globe?
<leitz> motivated/motivator
<cseder> ie not in the US
<leitz> Not as sure on Heroku, but I do know it's supposed to be good for start-ups to start up. You can move to AWS or similar once you have a revenue stream that supports it.
<coderphive> leitz: define "scale well
<coderphive> cseder: Any application can be scaled if designed to do so. That really depends on what sort of scaling you'd like to do and how much time you'd like to put into it.
jackjackdripper has joined #ruby
<leitz> And how much you want to pay for the power to perform. Large sites have used Rails (https://www.coderfactoryacademy.edu.au/posts/top-15-sites-built-with-ruby-on-rails), hence my use of "scale well".
<leitz> "Best" is a totally different term. :)
<cseder> Was thinking about stuff such as server response performance, network routes, nodes etc
<cseder> for the Heroku service
cschneid_ has quit [Remote host closed the connection]
<leitz> Most of the sites I've supported suffered more from bad database queries and bloated java than infrastructure. Not saying it won't, but optimazation at that level might not be yoru first source of success.
* leitz blames all poorly types words on a goblin infested keyboard.
Pumukel has joined #ruby
<coderphive> leitz: thanks ;)
<coderphive> cseder: so, just like leitz said it's not really about the infrastructure but moreso about how you implement it's usage when it comes to scaling.
<coderphive> in my experience external calls and poorly selected/utilized data storage are performance blockers in terms of scaling
<cseder> thats logical coderphive
millerti has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 240 seconds]
<cseder> I see that many businesses both large and small use Heroku with success (if I can believe the hype), so I guess it's a good way to go. I agree on the statements regarding proper coding as the main source of scalability
<cseder> Been programming in different languages for many years as a job, and I've seen alot
mim1k has joined #ruby
<cseder> Ruby is really fun to learn. It has so many fast workarounds for stuff that's cumbersome in other languages. And beautiful support for blocks / lambdas and metaprogramming
<cseder> Can't wait to code a real life application in it
oleo has quit [Quit: irc client terminated!]
esObe_ has joined #ruby
alveric1 has joined #ruby
antgel has joined #ruby
<volty> Do we have real threads (apart jruby) now ?
<volty> native, I mean
alveric has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
spheric has quit [Ping timeout: 264 seconds]
esObe_ has quit [Ping timeout: 260 seconds]
<havenwood> volty: Ruby went from green threads in 18 to one-to-one mapping to real system threads in 1.9. There is a global vm lock (GVL) around some things and not others. IO is the most-commonly pointed out release of the GVL.
<havenwood> volty: Guilds have been proposed for a future version of Ruby. Each guild will have its own guild-specific lock, but won't block parallel computation in another guild.
<volty> thx havenwood
antib has quit [Ping timeout: 260 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 258 seconds]
jcao219 has joined #ruby
roamingdog has joined #ruby
gizmore|2 has quit [Remote host closed the connection]
roamingdog has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
perniciouscaffei has joined #ruby
jenrzzz has joined #ruby
latemus has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
latemus has quit [Client Quit]
_sfiguser has joined #ruby