quimrstorres has quit [Remote host closed the connection]
c355E3B has quit [Quit: Leaving]
keen____ has quit [Read error: Connection reset by peer]
edo has joined #ruby
edo has left #ruby [#ruby]
riotjones has quit [Ping timeout: 265 seconds]
bruno-_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
digitalextremist has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
ramfjord has joined #ruby
jerematic has joined #ruby
androidbruce_ has quit []
JDiPierro has quit [Remote host closed the connection]
nahtnam has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
cpt_yossarian has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby
jerematic has quit [Remote host closed the connection]
iraszl has joined #ruby
<iraszl>
Your help earlier on installing Rails worked out great, thanks!
krisquigley has joined #ruby
cvtsx1 has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
kalleth has quit [Quit: No Ping reply in 180 seconds.]
jlast has quit [Remote host closed the connection]
kalleth has joined #ruby
cvtsx has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
serivich has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
stef204 has quit [Read error: Connection reset by peer]
colorisco has quit [Ping timeout: 252 seconds]
benlieb_ has quit [Quit: benlieb_]
iamninja has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
iamninja has joined #ruby
DEA7TH has quit [Ping timeout: 248 seconds]
jgorak has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
johnjohnson has joined #ruby
johnjohnson has joined #ruby
DerisiveLogic has joined #ruby
a5i has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
A205B064 has quit [Ping timeout: 244 seconds]
drawingthesun has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
oo_ has joined #ruby
drawingthesun has quit [Max SendQ exceeded]
Zesty has joined #ruby
drawingthesun has joined #ruby
nickjj has quit [Ping timeout: 272 seconds]
<Zesty>
hi, I have an array that looks like [[1,2], 5, [4,6,1], 25, 24] and i want to replace the number with something else if its an integer, if its an array i want to replace it with the same array WITH the first item being replaced with something else, but only the first item
bradleyprice has joined #ruby
A205B064 has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
doodlehaus has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeramy_s has quit [Client Quit]
v0id has quit [Quit: Leaving]
krisquigley has joined #ruby
oo_ has joined #ruby
senayar has joined #ruby
ramfjord has joined #ruby
VBlizzard is now known as _blizzy_
digitalextremist has joined #ruby
iliketurtles has joined #ruby
tpimtts is now known as tpimtts_away
krisquigley has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 252 seconds]
ramfjord has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
bim has quit [Remote host closed the connection]
reinaldob has joined #ruby
Cache_Money has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iteratorP has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 252 seconds]
iteratorP has joined #ruby
yh has quit [Ping timeout: 252 seconds]
icebourg has joined #ruby
amystephen has quit [Quit: amystephen]
havenwood has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
tus has quit []
mburns has quit [Ping timeout: 248 seconds]
Sawbones has joined #ruby
mburns has joined #ruby
kreeves has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
Sawbones has quit [Remote host closed the connection]
sorpaas_ has joined #ruby
nickjj has joined #ruby
Sawbones has joined #ruby
meschiv2 has joined #ruby
sorpaas_ has quit [Ping timeout: 264 seconds]
meschi has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
softaco_s has quit [Remote host closed the connection]
jconnolly has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
charliesome has joined #ruby
x1337807x has joined #ruby
bruno- has joined #ruby
Xiti has quit [Quit: Xiti]
jeromelanteri has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
MatthewsFace has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
adriancb has joined #ruby
centrx has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
plutonic has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
billy_ran_away has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
billy_ran_away has joined #ruby
Lewix has quit [Remote host closed the connection]
sevenseacat has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
iamninja has joined #ruby
jack_rabbit has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
adriancb has quit [Ping timeout: 272 seconds]
yh has joined #ruby
bim has joined #ruby
Joufflu has joined #ruby
dogsitr has joined #ruby
jeromelanteri has joined #ruby
piotrj has joined #ruby
baroquebobcat has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
drawingthesun has quit [Quit: Leaving]
braincrash has quit [Quit: bye bye]
leafybasil has quit [Remote host closed the connection]
piotrj has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
overcrush has joined #ruby
bradleyp_ has joined #ruby
iraszl_ has joined #ruby
Feyn has joined #ruby
braincras has joined #ruby
duncannz has joined #ruby
bradleyprice has quit [Ping timeout: 256 seconds]
bim has quit [Remote host closed the connection]
longfeet has quit [Read error: Connection reset by peer]
overcrush has quit [Ping timeout: 250 seconds]
bim has joined #ruby
akkad has quit [Remote host closed the connection]
<iraszl_>
noob here: i successfully installed ruby and rails too, i have a “hello world” in the browser, but I don’t understand how to connect the .rb code and connect it with the index.html.erb file… sorry if this sounds like a silly question
<woop>
two things: #RubyOnRails is the more specific channel for your problem
<woop>
and
Sawbones has joined #ruby
bim has quit [Remote host closed the connection]
jerematic has joined #ruby
<woop>
rails does things by convention, generally
<woop>
if you use the rails generators, the files are all created properly for you
<iraszl_>
thanks, yes, I have them, I have run the “controller” generator
<iraszl_>
i think I should use the welcome_controller.rb file to include my ruby code
<iraszl_>
it currently contains this:
<iraszl_>
class WelcomeController < ApplicationController
<iraszl_>
def index
<iraszl_>
end
<iraszl_>
end
baroquebobcat has quit [Quit: baroquebobcat]
<woop>
don't paste code into channels - it's bad IRC ettiquite
diegoviola has joined #ruby
<woop>
go with a site that lets you share pastes like pastebin, hastebin, github gists, etc
<iraszl_>
ok, sorry!
<woop>
no worries
Asher has joined #ruby
Sawbones has quit [Remote host closed the connection]
<woop>
ok, so
jerematic has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
<woop>
that welcome controller defines one method: WelcomeController#index
sarmiena_ has joined #ruby
freerobby has joined #ruby
<shevy>
ack
<shevy>
rails attack!
<woop>
eh
<woop>
I can tell him to go to the #RoR channel
<woop>
iraszl_: see you in #RubyOnRails
<shevy>
let's convert him
<shevy>
to ruby
<woop>
vOv
agrinb has quit [Remote host closed the connection]
<woop>
I'm a rails dev, these days
<shevy>
ack
<shevy>
an invasion!
<woop>
vOv
<iraszl_>
ok! thanks for all!
<woop>
I was hired to fix a terribly architected rails app
<woop>
and the more I work with it, the less I like rails, lol
<diegoviola>
woop: what you don't like about it?
<shevy>
zenspider cool, that "when Array" trick, I don't think I have seen or used that one before yet
<woop>
*fat* models, magic everywhere
<woop>
it lets idiots shoot the next guy in the foot pretty easily
<diegoviola>
so start refactoring
<shevy>
haha the next guy
<woop>
oh, I am.
sarmiena_ has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
<woop>
maybe having more intense tools would help, but I shouldn't need a sophisticated IDE to figure out what actually provides functions
johnjohnson has quit [Ping timeout: 256 seconds]
johnjohnson has joined #ruby
johnjohnson has quit [Changing host]
johnjohnson has joined #ruby
_1_inolvidable2 has joined #ruby
<_1_inolvidable2>
Hola
_1_inolvidable2 has quit [Remote host closed the connection]
<woop>
a fat model is an unemployed one, amirite?
* woop
ducks
krz has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
Sawbones has joined #ruby
triple_b has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
sarmiena_ has joined #ruby
bim has joined #ruby
<havenwood>
DeBot: !hangman ruby
krzkrz has joined #ruby
riotjones has joined #ruby
discypher has quit [Quit: Leaving.]
rbennacer has joined #ruby
meschiv2 has quit [Ping timeout: 256 seconds]
JDiPierro has joined #ruby
bim has quit [Remote host closed the connection]
_1_marshy has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
<_1_marshy>
hi
softaco_s has joined #ruby
Sawbones has quit [Remote host closed the connection]
_1_marshy has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
guardianx has left #ruby [#ruby]
tubuliferous_ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
<eam>
havenwood: I imagine that might not always format to the desired string, though
<eam>
though the edge cases are probably difficult to encouter
<havenwood>
eam: for sure, i wasn't sure if the ""s meant String literals or Floats
<havenwood>
i guess Strings would have been a good bet
<eam>
agree
<eam>
never really know :)
mostlybadfly has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
<havenwood>
i had a moment of doubt, but i should have taken the literal literally
plutonic has quit [Quit: plutonic]
softaco_s has quit [Remote host closed the connection]
<havenwood>
i think them being smart quotes threw me >.>
<havenwood>
` “ "
<havenwood>
i don't think of them as literal
<havenwood>
Floats, the humanity!
yh has joined #ruby
kp666 has joined #ruby
lolmaus has joined #ruby
Megtastique has quit []
<havenwood>
Rational or BigDecimal? Pick your poison.
<havenwood>
I'm on the Rational side. ;)
diegoviola has joined #ruby
arup_r has joined #ruby
Sawbones has quit [Remote host closed the connection]
charliesome has joined #ruby
<havenwood>
append r to ALL THE THINGS! \o/
<havenwood>
r your floats and freeze your strings
TimeWaster has joined #ruby
<TimeWaster>
so do you guys ever get laid
yh has quit [Ping timeout: 250 seconds]
<TimeWaster>
i think apeiros never felt a pussy
A205B064 has joined #ruby
<sevenseacat>
hmmm?
<TimeWaster>
huh?
<sevenseacat>
don't be rude.
<TimeWaster>
ok
<TimeWaster>
i wont be rude
tkuchiki has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 272 seconds]
<TimeWaster>
sevenseacat:are you a chick or a dude
tkuchiki has joined #ruby
<sevenseacat>
i dont see what relevance that has.
<TimeWaster>
so you're a chick
<TimeWaster>
got it
arup_r has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
TimeWaster was kicked from #ruby by havenwood [This is just a warning. Stop baiting a ban.]
<havenwood>
sevenseacat: Seemed to want to get banned. I don't get it?
<sevenseacat>
beats me.
DerisiveLogic has joined #ruby
softaco_s has joined #ruby
Guest45667 has quit [Remote host closed the connection]
Olipro has joined #ruby
Olipro is now known as Guest2801
umby24 is now known as umby24|offline
Guest2801 has quit [Remote host closed the connection]
hectortrope has joined #ruby
Olipro_ has joined #ruby
overcrush has joined #ruby
krzkrz has quit [Ping timeout: 256 seconds]
TimeWaster has joined #ruby
<TimeWaster>
sup yall
<TimeWaster>
why would i be scared of a ban lmoa
<TimeWaster>
i have a life
<TimeWaster>
that includes not sitting on #ruby all day
<TimeWaster>
why would i give a fuck
<TimeWaster>
thats not even a warning
<TimeWaster>
thats like saying i'm not allowed into the women's washroom
<TimeWaster>
its like ok?
<krainboltgreene>
If Ruby became whitespace sensitive tomorrow, like completely whitespace sensitive, do you think your libraries would be super affected?
<TimeWaster>
i personally wouldnt care
<TimeWaster>
cause i have a life
<havenwood>
TimeWaster: Do you read or write Ruby?
<TimeWaster>
yeah i do actually
<krainboltgreene>
I wouldn't bother.
bim has quit [Remote host closed the connection]
<havenwood>
krainboltgreene: I don't think it'd be hard to adapt em.
overcrush has quit [Ping timeout: 255 seconds]
<sevenseacat>
krainboltgreene: depends what kind of whitespace rules they introduced about hashes
<TimeWaster>
krainboltgreene:stop talking shit
<havenwood>
krainboltgreene: I'm probably overlooking the pain points.
<krainboltgreene>
That's what I was thinking. I've started to self-enforce strict oneline hashes, and I feel like it's improved my ability to see "too complex" code.
<havenwood>
TimeWaster: Stop picking fights. If you'd like to discuss, join us.
<havenwood>
krainboltgreene: Do you like the aesthetics of whitespace delimited blocks?
<krainboltgreene>
Yeah, I rarely do inline blocks at least.
iamjarvo has joined #ruby
riotjones has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
Eiam_ has joined #ruby
oo_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
theotherstupidgu has quit [Quit: leaving]
Olipro_ is now known as Olipro
f3lp has quit [Ping timeout: 264 seconds]
<Eiam_>
Can anyone think of some kind of "blob storage" API thats already been written that I could deploy locally vs writing it myself? something like "here is some data of type "abc", please store it" and discovery "what data of type "abc" do you have?" and GET <uuid> to retrieve said files? I don't think it would be particularly hard to write, nor do I need any kind of huge scaling, nor can I use something like azure. I figured a project might already exist but
<Eiam_>
all my googling keeps hitting azure, AWS type stuff.
theotherstupidgu has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
mgorbach has quit [Ping timeout: 248 seconds]
mgorbach has joined #ruby
bluOxigen has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plutonic has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
hectortrope has quit [Quit: WeeChat 1.0.1]
benlieb_ has joined #ruby
<havenwood>
Eiam_: Are you going to control the server or use a service?
<Eiam_>
havenwood: contrl sever
<Eiam_>
i want to deploy it myself, I have a bunch of various endpoints I'd like to abstract behind it
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eiam_>
I'm going to write it if it doesn't exist, but it just seemed like something that would
patrick99e99 has quit [Ping timeout: 246 seconds]
f3lp has joined #ruby
<havenwood>
Eiam_: DRb has Rinda::TupleSpace but unfortunately there's no baked-in persistence layer.
<Eiam_>
yeah i figured I could use redis but have to have persistance
<havenwood>
Eiam_: Would YAML::Store or YAML::DBM be options?
patrick99e99 has joined #ruby
DavidDudson has joined #ruby
<Eiam_>
either seems like they might work; more curious about the front endpoints around the storage backends
<havenwood>
Eiam_: ArangoDB came to mind for some reason. They do a nifty API.
baroquebobcat has joined #ruby
<TimeWaster>
hey do u guys remember the american dragon egg episode?
<Eiam_>
hmm that looks interesting
<Eiam_>
too bad about the JS part
<Eiam_>
but I guess I can get over that
agrinb has joined #ruby
<havenwood>
Eiam_: They seriously looked at using mruby. I think it just wasn't quite ready at the time, unsure.
tagrudev has joined #ruby
sumark has quit [Remote host closed the connection]
<Eiam_>
was trying to swear off languages I hate
<Eiam_>
this does look like exactly the kind of thing I was after though
<riceandbeans>
havenwood: everything you said sounded like it wasn't english
<riceandbeans>
in that context, whit is a closure, what does strict mean, what is arity, and what does the current context mean?
<havenwood>
riceandbeans: arity is like how many args it's passed. so if it expects one argument and you pass it two, strict arity will raise an ArgumentError.
jimms has quit [Remote host closed the connection]
reinaldob has joined #ruby
<havenwood>
riceandbeans: returning in the current context means that if you return from a lambda inside a method it'll proceed with the rest of the method
<havenwood>
riceandbeans: a proc returns from itself and then also returns from the method
antgel has joined #ruby
<havenwood>
riceandbeans: a proc has loose arity, if you pass it two when it expects one it'll proceed without raising
astrobun_ has joined #ruby
<havenwood>
riceandbeans: the closure part is common to block, procs and lambdas
dogsitr has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.2-dev]
<havenwood>
riceandbeans: do either the arity strictness or locality of return explanations make any sense or are both still gibberish?
reinaldob has quit [Ping timeout: 264 seconds]
ahmetkapikiran has quit [Ping timeout: 245 seconds]
<riceandbeans>
so, for this in that { |h| } is a lamda?
djbkd has joined #ruby
<havenwood>
riceandbeans: `lambda { |h| h }` or the stabby lambda form `->(h) { h }` are lambdas
<havenwood>
riceandbeans: same result, they just look slightly different
ahmetkapikiran has joined #ruby
<havenwood>
either alternatively take do/end instead of {/}
krisquigley has joined #ruby
pico-pete has quit [Ping timeout: 256 seconds]
<havenwood>
riceandbeans: the argument, e.g., `|h|` or `(h)` is strict arity so if you tried `h, g` a lambda would raise an ArgumentError but a proc would proceed with `h`.
lemur has quit [Remote host closed the connection]
dumdedum has joined #ruby
<riceandbeans>
so...why would you do that in ruby?
<riceandbeans>
instead of just...calling a method
krisquigley has quit [Ping timeout: 256 seconds]
DerisiveLogic has quit [Remote host closed the connection]
<porfa>
heya
<porfa>
can i get some ruby/html help here?
<havenwood>
riceandbeans: yeah, a method is another type of closure
<sevenseacat>
html doesnt really work in picture form
<porfa>
what do you mean?
AlexRussia has joined #ruby
<havenwood>
riceandbeans: well, i guess a method isn't a closure actually, like a function
<toertore>
also, your problem seems to be with html/css, not ruby
grug has left #ruby [#ruby]
<havenwood>
riceandbeans: like for scoping variables
ahmetkapikiran_ has joined #ruby
<havenwood>
riceandbeans: but a method shares similar properties to a lambda and block, just not the closure one
ahmetkapikiran has quit [Ping timeout: 272 seconds]
ahmetkapikiran_ is now known as ahmetkapikiran
colorisco has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
teddyp1cker has joined #ruby
yh has joined #ruby
chridal has joined #ruby
Juanchito has joined #ruby
<havenwood>
riceandbeans: it's convenient to say pass a lambda around between methods to then use as a block
roolo has joined #ruby
<havenwood>
riceandbeans: you could get rid of blocks and just use stabby lambdas and it wouldn't disrupt much
RegulationD has joined #ruby
toertore has left #ruby ["Leaving"]
toretore has joined #ruby
ki0 has joined #ruby
<havenwood>
riceandbeans: a lot of folk would argue that there should be either lambda or proc but not both. it's indeed confusing. looking into tennent's correspondence principle shows why to bother with the distinction.
<havenwood>
riceandbeans: if you `return` from it, the code just keeps going, it doesn't return from the enclosing method
ki0 has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
<havenwood>
riceandbeans: You can write Ruby in a functional style. There's something of a movement in that direction.
<riceandbeans>
so
<riceandbeans>
what about C
<riceandbeans>
what if you have a macro with code in it
<riceandbeans>
is that a lamda?
DavidDudson has joined #ruby
krzkrz has joined #ruby
djbkd has quit [Remote host closed the connection]
<djellemah>
riceandbeans: C macro is a compile-time contruct. Lambdas are runtime. in c, function points are the closest. But they're not closures.
<djellemah>
#pointers
<riceandbeans>
functional code is funky man
<riceandbeans>
I tried to learn me a haskell for great good and I failed horribly
<djellemah>
riceandbeans: you're not the first ;-)
<riceandbeans>
why_ is at least 10% of the reason I got into ruby
Asher has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 245 seconds]
<riceandbeans>
I knew a guy who just went on and on and on and on about haskell
lessless has quit [Ping timeout: 265 seconds]
<sevenseacat>
i loved that book, learn you a haskell for great good
<riceandbeans>
so I tried it
<riceandbeans>
sevenseacat: good book, but my mind just....didn't grok
<havenwood>
riceandbeans: Ruby doesn't have macros. Matz was recently asked if Ruby 3 will have macros. He responded that "the short answer is 'no', the slightly longer answer is 'no way'."
<sevenseacat>
fair enough
sevvie has joined #ruby
Asher has joined #ruby
<riceandbeans>
havenwood: hah
<djellemah>
lol, matz
<riceandbeans>
matz is so cool
jack_rabbit has joined #ruby
wildroman2 has joined #ruby
<riceandbeans>
you know who else is funny?
<riceandbeans>
alan kay
<riceandbeans>
listen to him talk about smalltalk
oo_ has quit [Remote host closed the connection]
<riceandbeans>
he said in a talk something to the effect of "and I know what object oriented is, I coined the term, and when I coined the term object oriented, C++ was NOT what I had in mind"
ahmetkapikiran has quit [Ping timeout: 255 seconds]
DavidDudson has quit [Read error: Connection reset by peer]
<riceandbeans>
are you guys on good terms with the crystal people?
jimms has joined #ruby
DavidDud_ has quit [Max SendQ exceeded]
plutonic has quit [Quit: plutonic]
f3lp has quit [Ping timeout: 248 seconds]
DavidDudson has joined #ruby
oo_ has joined #ruby
<riceandbeans>
havenwood: I should buy you a beer when I go back to LA
<havenwood>
riceandbeans: do eet
* djellemah
reads the crystal intro
<havenwood>
riceandbeans: i think it's an exciting project and the folk behind it seem top notch
bim has joined #ruby
<djellemah>
ah, that tradeoff again: "more efficient, at the cost of disallowing certain dynamic aspects"
<riceandbeans>
havenwood: I think I'm coming down in the summer some time
<havenwood>
riceandbeans: it's compiler was written in Ruby before it was bootstrapped to Crystal. i think it's a unique opportunity for a Rubyist to contribute to the development of a performant language in a Ruby-like language
jack_rabbit has quit [Ping timeout: 255 seconds]
chridal has quit [Quit: WeeChat 1.1.1]
<djellemah>
so the lack of dynamic aspects is why it would need macros.
<riceandbeans>
I gotta hit up the old classics when I go down there
<havenwood>
djellemah: no REPL is what stings for me the most ;)
<riceandbeans>
tito's tacos
<riceandbeans>
you ever go there havenwood +
<riceandbeans>
?
<havenwood>
i'm not sure if i have
<djellemah>
havenwood: totally. pry is one of my best friends.
Joufflu has quit [Quit: Peace]
<riceandbeans>
how...can...you....not...know
<riceandbeans>
tito's is....like a symbol of la
<havenwood>
try the crystal-lang samples/
<riceandbeans>
it's a weird mexican place
<riceandbeans>
I've never had tacos like that anywhere else
<riceandbeans>
ever
agrinb has joined #ruby
<havenwood>
the stdlib is impressive so far
bigmac__ has joined #ruby
bim has quit [Ping timeout: 252 seconds]
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
ahmetkapikiran has joined #ruby
<havenwood>
the whole lang is impressive
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
anarang has joined #ruby
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
bigmac_ has quit [Ping timeout: 250 seconds]
wicope has joined #ruby
overcrush has joined #ruby
ahmetkapikiran has quit [Client Quit]
agrinb has quit [Ping timeout: 265 seconds]
colorisco has joined #ruby
<havenwood>
you can write a ruby extension in crystal
<djellemah>
first time I've seen a language page without a 'download' link. Must be ruby-inspired then, you just have to know to find it on github ;-)
turtil has quit [Quit: WeeChat 1.1.1]
Soda has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 248 seconds]
turtil has joined #ruby
<djellemah>
havenwood: do you happen to know if there's a description of which dynamic aspects are disallowed?
<havenwood>
djellemah: Just look for the Github bat signal in the upper right: http://crystal-lang.org/
overcrush has quit [Ping timeout: 248 seconds]
<havenwood>
cat signal*
softaco_s has joined #ruby
<havenwood>
octocat signal*
<djellemah>
sheesh, I didn't even see that, thanks. Already found it on github though ;-)
colorisco has quit [Ping timeout: 255 seconds]
steven43126 has joined #ruby
tubuliferous has joined #ruby
<djellemah>
dammit. I'd just about settled on ocaml as my next thing to learn. Now this comes along...
jenrzzz has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
<havenwood>
djellemah: I'm not sure what all dynamic things will eventually be unavailable. #crystal-lang is a friendly channel when the devs are awake.
softaco_s has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby
theotherstupidgu has quit [Ping timeout: 264 seconds]
<djellemah>
havenwood: thanks. I'll ask them when they're awake.
DavidDudson has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
<havenwood>
djellemah: tuples and channels, and all sorts of other things
<havenwood>
djellemah: you can make a multicolored text levenshtein distance calculator oneliner, or dang close
<djellemah>
hah. I was just fighting with ruby yesterday trying to convince it to do a cons nicely. I lost.
<ponga>
anyone know why File.open('{address}') will show no such file error in windows
<ponga>
i tried both / \
<ponga>
Dir.pwd does not seem to work properly in ruby2.2.0 windows
<havenwood>
ponga: What do you get for `Dir.pwd`?
<ponga>
havenwood: by 'put' i get C:/Users/lud/Downloads/myfolder
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgorak has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Ping timeout: 250 seconds]
oo_ has quit [Quit: Leaving...]
ahmetkapikiran has quit [Ping timeout: 252 seconds]
<havenwood>
yxhuvvd: If it oinks like an outlet, hey wait a minute!
<havenwood>
yxhuvvd: You just hope that charging is well tested.
arup_r has joined #ruby
<yxhuvvd>
at least it will bring the bacon.
ahmetkapikiran has joined #ruby
oo_ has joined #ruby
govg has quit [Quit: leaving]
oo_ has quit [Client Quit]
Takle has joined #ruby
edwinvdgraaf has joined #ruby
quimrstorres has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
piotrj has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DeBot has joined #ruby
oo_ has joined #ruby
riotjones has joined #ruby
djbkd has joined #ruby
quimrstorres has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
al-damiri has joined #ruby
quimrstorres has joined #ruby
<al-damiri>
Hi #ruby.
<al-damiri>
On Windows, how do I set the variables in cmd so that I can access them with ENV['MyVar'] ?
riotjones has quit [Ping timeout: 250 seconds]
<al-damiri>
In bash I can do export MyVar='val'
<al-damiri>
But what about Windows?
jimms has quit []
<ponga>
havenwood: solved
hxmxjg has joined #ruby
<ponga>
apparently for RUBY2.2.0 in windows, CSV.foreach([file directory] gives error
djbkd_ has joined #ruby
<ponga>
so i have to file.open it first
piotrj has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 256 seconds]
avril14th has joined #ruby
djbkd_ has quit [Ping timeout: 246 seconds]
netroby has joined #ruby
reinaldob has joined #ruby
overcrush has joined #ruby
netroby has quit [Max SendQ exceeded]
netroby has joined #ruby
sevvie has joined #ruby
netroby has quit [Max SendQ exceeded]
krainboltgreene has left #ruby [#ruby]
netroby has joined #ruby
astrobun_ has quit [Remote host closed the connection]
overcrush has quit [Ping timeout: 252 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
reinaldob has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
A205B064 has quit [Ping timeout: 250 seconds]
sevvie has quit [Ping timeout: 272 seconds]
<apeiros>
havenwood: I think that guy was deathcode. same irc client.
bricker has joined #ruby
<havenwood>
apeiros: aha! i didn't even notice.
<havenwood>
good catch
krisquigley has joined #ruby
toertore has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<apeiros>
the trade of an irc op…
iamninja has joined #ruby
<apeiros>
and timewaster is also not an unknown name. might explain deathcode's behavior. I think he's one of those odd people who get high from trying to walk the limits and ultimately get banned.
teddyp1cker has quit [Remote host closed the connection]
last_staff has joined #ruby
toretore has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 250 seconds]
kickr has joined #ruby
kickr has quit [Client Quit]
krisquigley has quit [Ping timeout: 272 seconds]
teddyp1cker has joined #ruby
kickr has joined #ruby
DEA7TH has joined #ruby
blackmesa has joined #ruby
kickr has left #ruby [#ruby]
GriffinHeart has quit [Remote host closed the connection]
colorisco has quit [Read error: Connection reset by peer]
ArchRogem has joined #ruby
colorisco has joined #ruby
RegulationD has joined #ruby
kickr has joined #ruby
<jhass>
apeiros: made we should add !mute
sevenseacat has joined #ruby
rvchangue has joined #ruby
<jhass>
heh, *maybe
<apeiros>
not sure on that. but maybe, yes.
<wasamasa>
ponga: who?
<ponga>
sorry? what?
<apeiros>
jhass: hm, /CS QUIET does not have time limit
<wasamasa>
err, I meant apeiros
<wasamasa>
but anyways, I've scrolled back in my logs and have spotted "TimeWaster"
RegulationD has quit [Ping timeout: 252 seconds]
<apeiros>
wasamasa: who what?
<apeiros>
ah
<wasamasa>
I thought that was a pejorative name coining their behaviour
bruno- has joined #ruby
<wasamasa>
but no, it's an actual nick used
<apeiros>
heh
<jhass>
apeiros: my thinking is if they draw satisfaction from a ban that's likely learned behavior, so even slightly changing the method might remove it
<apeiros>
I see. interesting thought.
<jhass>
well, and some might not even realize they're muted
krzkrz has joined #ruby
<apeiros>
then we should not use CS, as CS will inform about mute
<jhass>
so you have the old "display the comment to the troll only" anti-troll system
ghr has joined #ruby
<jhass>
yeah, plain +q seems okay, you fixed with_op :P
roshanavand has joined #ruby
<apeiros>
right
<apeiros>
soooo, to be on topic: any body got a domain name validator?
astrobun_ has joined #ruby
<wasamasa>
what exactly would that be?
decoponio has quit [Read error: Connection reset by peer]
<apeiros>
wasamasa: something which verifies (text analysis only) a domain name. e.g. says "freenode.org" -> valid, "freenode..org" -> invalid
decoponio has joined #ruby
<apeiros>
IDN capable required :)
bruno- has quit [Ping timeout: 255 seconds]
krzkrz has quit [Ping timeout: 248 seconds]
relix has quit [Read error: Connection reset by peer]
* wasamasa
pours backslashes all over apeiros
relix has joined #ruby
hectortrope has joined #ruby
<wasamasa>
apeiros: take these, they're your father's weapon for matching anything
<apeiros>
bkfmdx: I don't even have to read that one to know it is wrong
<apeiros>
I mean, I don't have to read the complete expression
reinaldob has joined #ruby
<apeiros>
for starters, TLDs haven't been 2-3 chars for years
<apeiros>
and that regex certainly can't handle IDNs.
Mia has joined #ruby
Mia has joined #ruby
<wasamasa>
no, you'd probably need to tokenize it first, then check whether the tokens are composed correctly
<wasamasa>
in other words, writing a parser for domains
<apeiros>
though, thinking about it, I think IDNs are best handled by checking whether there's [\x80-\xff] in the url, apply punycode transformation, then check normally.
agrinb has joined #ruby
<apeiros>
wasamasa: I don't think that's necessary. tokens are uniform. tokens have a maximum length. there's a maximum number of tokens. also afaik they call them 'label' in this context.
Pharaoh2 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<apeiros>
bkfmdx: not to be ungrateful - thanks for sharing! where do you have that regex from?
<bkfmdx>
haha don't stress apeiros, google / stackoverflow
colorisco has quit [Read error: Connection reset by peer]
<jhass>
apeiros: I think label is the full thing, the first entry of an RR. domain is a label that has NS records (and thus a SOA), hostname is a label that has any records but NS/SOA
<wasamasa>
apeiros: I really like the "PERL" bubble
sephilix has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
<apeiros>
wasamasa: especially that it is in batman-<POW> style :D
colorisco has joined #ruby
kickr has quit [Quit: Be back later ...]
agrinb has quit [Ping timeout: 255 seconds]
kickr has joined #ruby
browndawg has joined #ruby
<apeiros>
jhass: I really should refresh my knowledge on DNS. I really don't want to :(
colorisco has quit [Read error: Connection reset by peer]
ghr has quit [Read error: No route to host]
ghr has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
iteratorP has quit [Remote host closed the connection]
ghr has quit [Read error: Connection reset by peer]
ghr has joined #ruby
tubuliferous has joined #ruby
al-damiri has quit [Quit: leaving]
timonv1 has quit [Ping timeout: 264 seconds]
<apeiros>
jhass: from the wording in the email rfc's, it seems that the dot separated components are indeed what's called "label".
unshadow has joined #ruby
<jhass>
mh
tubuliferous has quit [Ping timeout: 272 seconds]
<jhass>
yeah, looks like I'm wrong
<unshadow>
Hi, I would I change this: "Content-Length: 123123\n" to this: "Content-Length: 115\n", I tried using data.gsub(/Content-Length: (.*?)\n/i, '115') but it wont work
hpoydar has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
teddyp1cker has joined #ruby
unshadow has joined #ruby
Rollabunna has quit [Remote host closed the connection]
hpoydar has joined #ruby
phutchins has joined #ruby
Rollabunna has joined #ruby
<unshadow>
I want to calculate the Http Content-Length of a string, after looking around I read that: "he Content-Length entity-header field indicates the size of the entity-body,"
<unshadow>
in decimal number of OCTETs
<unshadow>
So, would string.bytesize will do ?
kobain has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
bruno- has joined #ruby
lolmaus has joined #ruby
bruno- is now known as Guest3945
jefus__ is now known as jefus
aryaching has joined #ruby
hpoydar has quit [Ping timeout: 245 seconds]
anonymus has joined #ruby
<anonymus>
guys please help
phutchins has quit [Ping timeout: 246 seconds]
<jhass>
anonymus: why?
piotrj has quit [Remote host closed the connection]
<anonymus>
tell me please how can I run irb -r somescript.rb command non-interactively from shell?
<anonymus>
to get all the output into some file
<jhass>
replace irb by ruby
agrinb has joined #ruby
<jhass>
and drop -r
<anonymus>
ruby -r somescript.rb? >> out
<jhass>
!addfact try Why don't you try it and see for yourself?
<ruboto>
jhass, I will remember that try is Why don't you try it and see for yourself?
<jhass>
?try anonymus
<ruboto>
anonymus, Why don't you try it and see for yourself?
phutchins has joined #ruby
<anonymus>
I do enter some commands in the irb shell . jhass, how do I have to enter them when running ruby somescript.rb?
silkfox has joined #ruby
<sevenseacat>
then its not non-interactive is it
<anonymus>
O::Models::Order.find(ID).params
mcpierce` is now known as mcpierce
<anonymus>
I see that I can't explain correctly :(
Mekkis has quit [Max SendQ exceeded]
teddyp1cker has quit [Remote host closed the connection]
<jhass>
if you want to write the output of some command in irb to a file use File.write("filename", that_command.inspect)
<anonymus>
NoMethodError: undefined method `write' for File:Class
freerobby has joined #ruby
Mekkis has joined #ruby
<anonymus>
maybe because this is rubyonrails app?
piotrj has joined #ruby
<jhass>
oO
<jhass>
what's your RUBY_VERSION ?
yh has joined #ruby
RegulationD has joined #ruby
<anonymus>
rvm use 1.9.2-p290
<anonymus>
this&
<anonymus>
?
teddyp1cker has joined #ruby
pie_ has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
still, 1.9.2 -> 1.9.3 should be a painless update
<anonymus>
maybe, but I can't do this
<jhass>
something for your todo list still
freerobby has quit [Client Quit]
<unshadow>
rvm upgradde 1.9.2 1.9.3
<jhass>
security maintenance for 2.0 will in february 2016, so consider porting your app to 2.1+
<jhass>
anyway, File.open(filename, "w") {|file| file.write(command.inspect) } then
<anonymus>
guys, I can't do this because the server is out of my jurisdiction
<jhass>
anonymus: todo list -> sysadmins todo list
<jhass>
and give him a huge blame from all of us
<anonymus>
I just need to get some output from irb console and looking for a way to do it
ghr has joined #ruby
bkfmdx has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
<jhass>
I just told you how
RegulationD has quit [Ping timeout: 245 seconds]
<anonymus>
moment
nfk has joined #ruby
<anonymus>
jhass: !!!!
<anonymus>
it works!!
<jhass>
I know
<anonymus>
thank you very much!
<jhass>
btw read through the core classes
willharrison has joined #ruby
willharrison has quit [Client Quit]
triple_b has joined #ruby
sevenseacat has joined #ruby
bMalum has quit [Quit: bMalum]
<unshadow>
Does anyone knows if this is the right way to calculate HTTP content-length: "data".bytesize
<anonymus>
Ill try jhass
LJT has joined #ruby
<jhass>
unshadow: if you don't encode or otherwise modify "data" before writing it into the body, that should be correct
garethrees has joined #ruby
GriffinHeart has joined #ruby
nettoweb has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
antgel has joined #ruby
nettoweb has joined #ruby
zenith_ has joined #ruby
Rapier- has joined #ruby
sevenseacat has quit [Remote host closed the connection]
dstarh has joined #ruby
sevenseacat has joined #ruby
JDiPierro has joined #ruby
momomomomo has joined #ruby
dstarh has quit [Client Quit]
triple_b has quit [Read error: Connection reset by peer]
LJT has quit [Quit: Sleeping...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
lavros has joined #ruby
<unshadow>
Thanks :)
triple_b has joined #ruby
unshadow has quit [Quit: leaving]
krisquigley has joined #ruby
rocknrollmarc has joined #ruby
RegulationD has joined #ruby
piotrj has quit [Remote host closed the connection]
rocknrollmarc has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Mx[dot]Brevity has quit [Ping timeout: 244 seconds]
rocknrollmarc has joined #ruby
foureight84 has joined #ruby
fgo has joined #ruby
garethrees has quit [Ping timeout: 250 seconds]
adriancb has quit [Remote host closed the connection]
LJT has joined #ruby
jerius has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
icebourg has joined #ruby
adriancb has joined #ruby
rocknrollmarc has joined #ruby
Stupid-Liar has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
icebourg has quit [Client Quit]
duncannz has quit [Remote host closed the connection]
Tuxero has left #ruby [#ruby]
rocknrollmarc has quit [Ping timeout: 264 seconds]
sgambino has joined #ruby
qualityaddict has quit [Quit: Leaving]
sameerynho has joined #ruby
ahmetkapikiran has joined #ruby
rocknrollmarc has joined #ruby
hpoydar has joined #ruby
DEA7TH has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
DEA7TH has joined #ruby
mgorbach has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
tkuchiki has joined #ruby
jlast has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
vt102 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 245 seconds]
overcrush has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
Coraline_ZzZz is now known as Coraline
serivich has quit [Ping timeout: 272 seconds]
Yzguy has joined #ruby
mgorbach has joined #ruby
dstarh has joined #ruby
overcrush has quit [Ping timeout: 256 seconds]
vt102 has joined #ruby
doodlehaus has joined #ruby
amdbcg has joined #ruby
codecop_ has quit [Quit: Išeinu]
duggiefresh has joined #ruby
bim has joined #ruby
netroby has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 250 seconds]
sameerynho has quit [Quit: Leaving]
Channel6 has joined #ruby
imran_raja has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: I'm sleeping, go away.]
bim has quit [Ping timeout: 272 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn is now known as Guest38215
overcrush has joined #ruby
pie_ has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
pie_ has joined #ruby
rdark has joined #ruby
agrinb has quit [Remote host closed the connection]
yh has quit [Ping timeout: 276 seconds]
LesZedCB has joined #ruby
agrinb has joined #ruby
fryguy9 has joined #ruby
riotjones has joined #ruby
nettoweb has quit [Excess Flood]
JDiPierro has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 245 seconds]
horsecowdog has joined #ruby
nettoweb has joined #ruby
adriancb has joined #ruby
sprihodko has joined #ruby
arup_r has quit [Remote host closed the connection]
bim has joined #ruby
yh has joined #ruby
<sprihodko>
Hi. How can I split an array of hashes into array of arrays of hashes based on the value of a key, the most ruby way? http://pastie.org/10076342 Something like partition method, but for this case.
riotjones has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
bim has quit [Remote host closed the connection]
odin22 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
pandaant has quit [Remote host closed the connection]
ballPointPenguin has quit [Ping timeout: 256 seconds]
maZtah has joined #ruby
Rapier- has joined #ruby
zero7 has joined #ruby
zero7 has quit [Changing host]
zero7 has joined #ruby
cranq has quit [Max SendQ exceeded]
jerius has quit [Quit: /quit]
wicope has quit [Max SendQ exceeded]
cranq has joined #ruby
hgl has joined #ruby
wicope has joined #ruby
zero7 has quit [*.net *.split]
palms has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
Klumben has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
antgel has quit [*.net *.split]
KC9YDN has quit [*.net *.split]
roqo has quit [*.net *.split]
ballPointPenguin has joined #ruby
jerius has joined #ruby
LesZedCB has left #ruby [#ruby]
Klumben has joined #ruby
zero7 has joined #ruby
palms has joined #ruby
davedev24_ has joined #ruby
nateberkopec has joined #ruby
KC9YDN has joined #ruby
antgel has joined #ruby
roqo has joined #ruby
yosafbridge has joined #ruby
antgel has quit [Max SendQ exceeded]
zero7 has quit [Max SendQ exceeded]
Klumben has quit [Max SendQ exceeded]
yosafbridge has quit [Max SendQ exceeded]
antgel has joined #ruby
Klumben has joined #ruby
yosafbridge has joined #ruby
kalz has joined #ruby
mitchellhenke has joined #ruby
jerius has quit [Client Quit]
_hollywood has quit [Quit: Leaving]
nettoweb has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
_hollywood has joined #ruby
jerius has joined #ruby
zero7 has joined #ruby
Stupid-Liar has joined #ruby
nettoweb has joined #ruby
Tomasso has joined #ruby
momomomomo has quit [Quit: momomomomo]
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
rbennacer has joined #ruby
<Tomasso>
i get "You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome." in ruby 2.2.0 , its core dumped wehn usually converting to json what should i do
bim has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
JDiPierro has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
piotrj has joined #ruby
MissionCritical has joined #ruby
axl_ has joined #ruby
ValicekB has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
jconnolly has joined #ruby
JDiPierro has quit [Ping timeout: 265 seconds]
piotrj has quit [Ping timeout: 252 seconds]
hardlin3r has joined #ruby
<jhass>
start by putting the entire output into a gist
<jhass>
then try to reduce your program triggering the bug as much as possible
GnuYawk has joined #ruby
iamjarvo has joined #ruby
momomomomo has joined #ruby
<jhass>
Tomasso: got that gist yet?
Darryl___ has quit []
ghr has joined #ruby
weemsledeux has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
djbkd_ has quit [Remote host closed the connection]
bim has joined #ruby
Tomasso has quit [Ping timeout: 246 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
_maes_ has joined #ruby
TheMoonMaster has joined #ruby
agarie has joined #ruby
freerobby has joined #ruby
bim has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
gsd has joined #ruby
<porfa>
guys
haxrbyte has joined #ruby
tubuliferous has joined #ruby
agarie has quit [Ping timeout: 240 seconds]
piotrj_ has quit [Remote host closed the connection]
<apeiros>
porfa: yes girl?
<porfa>
i have an array with 15 products.. is it possible to escape/echo a string after every 3 products are dumped?
<apeiros>
sure
dx7 has joined #ruby
<porfa>
because im using this ruby script to do an html file and all my products are on a table, on the same row… i need to make a </tr><tr> efter everytrhee, so instead of showing me 15 products in one row, 15 columns. it will show me 15 products in 5 rows and 3 columns
jimms has quit [Read error: Connection reset by peer]
<porfa>
apeiros: can you help me out on that? because i never done this before.
<apeiros>
take a look at Enumerable#each_slice
<cout>
trying to track down a segfault in a ruby script, and I'm seeing a lot of lines in the "C level backtrace" that don't seem to map to a specific function, e.g. "/usr/lib/libruby-1.9.1.so.1.9(+0x140fa9) [0x7f30ab5fffa9]". Any ideas how to figure out what function that address represents?
jimms has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
<cout>
I suspect I'm doing something that's causing the interpreter to use an invalid method cache entry, but I'm not sure how to prove it.
freerobby has quit [Quit: Leaving.]
<apeiros>
cout: hm, I wish I could help you. maybe #ruby-core is useful for this. I don't know, though.
mistermocha has joined #ruby
DerisiveLogic has joined #ruby
<cout>
apeiros: good point. I haven't been in there in a while.
weemsledeux has joined #ruby
piotrj has joined #ruby
Coraline is now known as Coraline_ZzZz
danzilio has quit [Quit: My computer has fallen asleep!]
<jhass>
cout: I guess you need to get a libruby with debug symbols. Somehow. Depends on where you got that Ruby from
meschiv2 has quit [Read error: Connection reset by peer]
hanmac has quit [Ping timeout: 256 seconds]
<jhass>
btw even if you find the bug, for 1.9 you have to patch it yourself
meschiv2 has joined #ruby
JDiPierro has quit []
MissionCritical has joined #ruby
<cout>
jhass: stock ubuntu 12.04. libruby1.9.1-dbg package is installed.
<cout>
jhass: we're running an old patchlevel (p0) so likely it's a bug that's already been fixed, but I want to know for certain rather than just hiding the bug via an upgrade.
tubuliferous has joined #ruby
danzilio has joined #ruby
<jhass>
addr2line might help then
<jhass>
I don't quite follow why upgrading would hide the bug if it's fixed after that though
jlast has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 276 seconds]
serivich has quit [Ping timeout: 240 seconds]
quintinadam has joined #ruby
duggiefr_ has quit [Remote host closed the connection]
danzilio has quit [Max SendQ exceeded]
Takle has quit [Ping timeout: 245 seconds]
<cout>
jhass: it's one of those bugs where adding a puts to the script can cause it to not get triggered.
jimms has quit [Ping timeout: 272 seconds]
<jhass>
yay
danzilio has joined #ruby
Takle has joined #ruby
jlast has joined #ruby
jimms has joined #ruby
evanjs has quit [Remote host closed the connection]
ztomz has joined #ruby
mistermo_ has joined #ruby
quimrstorres has joined #ruby
<cout>
jhass: good idea with addr2line. It just says ??:0 though. :(
baroquebobcat has joined #ruby
serivich has joined #ruby
<jhass>
might need to point -e to the debug symbols or something *shrug*
evanjs has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
bricker has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
GaryOak_ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
RitterJack has joined #ruby
RitterJack has quit [Remote host closed the connection]
RitterJack has joined #ruby
Stupid-Liar has quit [Ping timeout: 245 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jimms has joined #ruby
hanmac has joined #ruby
horsecowdog has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
RitterJack has quit [Client Quit]
The_Phoenix has quit [Max SendQ exceeded]
arup_r has joined #ruby
The_Phoenix has joined #ruby
einarj has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
serivich has quit [Read error: Connection reset by peer]
softaco_s has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
overcrush has left #ruby [#ruby]
The_Phoenix has joined #ruby
arup_r has quit [Excess Flood]
v0id has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
oo_ has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
arup_r has joined #ruby
willharrison has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
softaco_s has quit [Ping timeout: 245 seconds]
rvchangue has quit [Ping timeout: 256 seconds]
jimms_ has joined #ruby
piotrj has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
LJT_ has joined #ruby
ekaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
jimms has quit [Ping timeout: 255 seconds]
LJT has quit [Ping timeout: 255 seconds]
Stupid-Liar has joined #ruby
elaptics_away is now known as elaptics
dfinninger has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Hijiri has quit [Ping timeout: 256 seconds]
Darryl___ has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
Tuxero has joined #ruby
rippa has joined #ruby
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bradleyprice has joined #ruby
michaeldeol has joined #ruby
GnuYawk has quit [Ping timeout: 248 seconds]
matrixfox has quit [Ping timeout: 252 seconds]
matrixfox has joined #ruby
jottr has joined #ruby
jonatin has joined #ruby
jimms has joined #ruby
GnuYawk has joined #ruby
relix has quit [Read error: Connection reset by peer]
lemur has joined #ruby
maletor has joined #ruby
relix has joined #ruby
jimms_ has quit [Ping timeout: 240 seconds]
cjim has joined #ruby
horsecowdog has joined #ruby
agarie has joined #ruby
malcolmva has quit [Quit: Leaving]
mistermo_ is now known as mistermocha
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
workmad3 has joined #ruby
tcrypt has joined #ruby
jimms_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
zenith_ has quit [Remote host closed the connection]
<shevy>
we don't have a way in ruby to analyze a .rb file right?
<shevy>
for instance, say I have one method called: foo {}
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
now I'd love to alter the behaviour of that, depending on (a) whether any more code happens after that foo {}, or (b) whether no more code happens after foo {}
LJT has joined #ruby
rolly_ has joined #ruby
Stupid-Liar has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nszceta_ has quit [Max SendQ exceeded]
kickr has quit [Quit: Be back later ...]
horsecowdog has quit [Remote host closed the connection]
nszceta has joined #ruby
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
sevvie has quit [Ping timeout: 252 seconds]
krisquigley has quit [Ping timeout: 256 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
horsecowdog has joined #ruby
shazaum has joined #ruby
adriancb has joined #ruby
sevvie has joined #ruby
wildroman2 has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
Darryl___ has quit [Quit: Connection closed for inactivity]
<cout>
jhass: I figured it out. It's ugly and I'm 100% sure I'm doing it the wrong way.
iamjarvo has joined #ruby
wildroman2 has joined #ruby
<cout>
The starting address in memory of /usr/lib/libruby-1.9.1.so.1.9.1 is 7f5620386000, so for any given symbol I can subtract that to get the offset of the symbol
<jhass>
as long as it works :)
<cout>
jhass: then it turns out all the symbols are in /usr/lib/debug/.build-id/2e/fbb2256dd2958340d9676b9b54b25881ba834e.debug, so I just search through that file to find the symbol with the right address, or use addr2line as you sugested
neanderslob has joined #ruby
mengu has quit [Remote host closed the connection]
A205B064 has joined #ruby
jeremati_ has joined #ruby
Troy^ has joined #ruby
silkfox has joined #ruby
jerematic has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Remote host closed the connection]
RegulationD has joined #ruby
casadei_ has quit [Remote host closed the connection]
NivenHuH has joined #ruby
shazaum has quit [Quit: Leaving]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has joined #ruby
Pharaoh2_ is now known as Pharaoh2
zenith_ has quit [Remote host closed the connection]
hpoydar has joined #ruby
relix has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Troy^ has quit [Client Quit]
xenokiller has joined #ruby
casadei has joined #ruby
baweaver has quit [Remote host closed the connection]
cjim has quit [Quit: (null)]
motto has quit [Quit: Sto andando via]
Troy^ has joined #ruby
iliketurtles has joined #ruby
platosha has quit [Quit: This computer has gone to sleep]
smcquaid has joined #ruby
smcquaid has quit [Client Quit]
platosha has joined #ruby
wildroman2 has joined #ruby
stevemcquaid has joined #ruby
benlieb_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
cjim has joined #ruby
tcrypt has quit [Remote host closed the connection]
stevemcquaid has left #ruby [#ruby]
baweaver has joined #ruby
revoohc has quit [Quit: revoohc]
wildroman2 has quit [Remote host closed the connection]
ghr has joined #ruby
hpoydar has quit [Remote host closed the connection]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
aryaching has quit []
jheg has quit [Quit: jheg]
Troy^ has joined #ruby
cjim has quit [Quit: (null)]
bluOxigen has quit [Ping timeout: 264 seconds]
benlieb_ has quit [Quit: benlieb_]
cjim has joined #ruby
mjuszczak has quit []
hpoydar has joined #ruby
_djbkd has joined #ruby
piotrj has quit [Remote host closed the connection]
Troy^ has quit [Client Quit]
piotrj has joined #ruby
rodfersou has quit [Quit: leaving]
CorpusCallosum has quit [Read error: Connection reset by peer]
_djbkd has quit [Remote host closed the connection]
_1_natsu1550 has joined #ruby
<_1_natsu1550>
helo
mjuszczak has joined #ruby
<_1_natsu1550>
lasea
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby
_1_natsu1550 has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 244 seconds]
jefus_ has joined #ruby
rhllor has joined #ruby
nszceta has quit [Ping timeout: 256 seconds]
Jackneill has quit [Read error: Connection reset by peer]
LJT has quit [Quit: Sleeping...]
yfeldblum has joined #ruby
brb3 has quit [Quit: <.<]
iliketurtles has quit [Ping timeout: 264 seconds]
jefus has quit [Ping timeout: 256 seconds]
tier has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
VBlizzard has joined #ruby
duncannz has joined #ruby
VBlizzard is now known as _blizzy_
agent_white has quit [Quit: bbl]
parduse has quit [Ping timeout: 252 seconds]
bMalum has joined #ruby
parduse has joined #ruby
ico has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
ico has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
nym has joined #ruby
Musashi007 has joined #ruby
_ixti_ has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
_djbkd has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
reinaldob has quit [Remote host closed the connection]
Solsist has joined #ruby
vt102 has quit [Remote host closed the connection]
Troy^ has joined #ruby
reinaldob has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Solsist has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
centrx has quit [Ping timeout: 256 seconds]
kblake has quit [Ping timeout: 245 seconds]
joast has quit [Ping timeout: 252 seconds]
vivekananda has joined #ruby
Troy^ has quit [Client Quit]
bMalum has quit [Quit: bMalum]
_djbkd has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
adriancb_ has joined #ruby
duggiefresh has quit []
bkfmdx has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
centrx has joined #ruby
iamjarvo has joined #ruby
kblake has joined #ruby
codecop has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 245 seconds]
opes has quit [Ping timeout: 245 seconds]
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 265 seconds]
piotrj has quit [Remote host closed the connection]
l3ck has joined #ruby
bkfmdx has quit [Ping timeout: 252 seconds]
Troy^ has joined #ruby
govg has joined #ruby
relix has joined #ruby
piotrj has joined #ruby
hrendalf has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
Troy^ has quit [Client Quit]
Troy^ has joined #ruby
senayar has joined #ruby
Musashi007 has quit [Quit: Musashi007]
piotrj has quit [Read error: Connection reset by peer]
x1337807x has quit [Remote host closed the connection]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<misterghost>
hello! newbie here, can someone help me ?
Troy^ has quit [Client Quit]
nettoweb has joined #ruby
RegulationD has quit [Remote host closed the connection]
<GaryOak_>
misterghost: yes
<misterghost>
tx gary
<misterghost>
i need help with a couple methods that i have in my app
<misterghost>
they are working perfect, but only locally
<misterghost>
not on heroku
<bradland>
misterghost: the best thing to do is to copy/paste the methods in to a gist on gist.github.com, then post the link here
<bradland>
that way we can see the code
<misterghost>
so far ive incestigated and its because the GROUP BY is bad...so i need to rephrase those methods so they dont crash with herokus pg database
<jhass>
(technically correct, whether it produces the result you want is another question)
<centrx>
misterghost, When using a GROUP BY, every item in the SELECT list should either be an aggregate method, a constant, or be a column in the GROUP BY clause
<bradland>
interesting that it works locally
<bradland>
are you running pg?
<jhass>
prolly sqlite or something locally
<misterghost>
nope, sqlite3
tcrypt has joined #ruby
<bradland>
I see. Yeah. That's always a good source of "gotchas" :)
pie_ has quit [Read error: Connection reset by peer]
Aswebb_ has quit [Remote host closed the connection]
<woop>
guys... I've been at this for far longer than it feels like it should take
<woop>
how do I take a token from the javascript API for linkedin... and send it to my ruby server to just grab the user's profile info for signup?
teddyp1cker has quit [Remote host closed the connection]
misterghost has joined #ruby
<jhass>
you do an API request to get the token and then make a request to your server to grab the profile info
<jhass>
in other words: quality of question == quality of answer
<misterghost>
sorry but i couldnot chat on ?rails or rubyonrails
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woop>
sigh
<misterghost>
i am registered as misterghost but t wont letme type anything....
<misterghost>
can i ask a last question here folks?
<woop>
my main issue is the quality of LI's documentation
<woop>
and/or the fact that they seemed to have a new way to do things every 18 months on auth
<misterghost>
i have a video loop in my homepage inside an html video tag that doesnt load on heroku, but it does locally....tried rake assets:precompile
<misterghost>
to no avail
Notte has joined #ruby
<jhass>
misterghost: how do you embed it?
RegulationD has joined #ruby
<jhass>
also did you get any error message or so when trying to write something to #RubyOnRails ?