weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland>
gotcha, thx havenwood
lordkryss has quit [Quit: Connection closed for inactivity]
Takle has quit [Ping timeout: 245 seconds]
kinduff has quit [Quit: Saliendo]
agrinb has joined #ruby
iamjarvo has joined #ruby
jerematic has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
<inavele>
Man this error should i have reinstall ruby?, 'cause recently I installed heroku toolbelt but the instalation was interrupted because the energy power was disconected https://gist.github.com/nerionavea/8b0654c643369e6cf0f1
<jhass>
inavele: checking for libpq-fe.h... no
enebo has quit [Client Quit]
<jhass>
this means you didn't install development headers for the postgresql client library
qualityaddict has quit [Ping timeout: 255 seconds]
<inavele>
on fedora?
<sevenseacat>
oh
makepkgnotwar has joined #ruby
<sevenseacat>
no, thats yum install postgresql-devel
<jhass>
libpg-devel or so
<sevenseacat>
i think
<jhass>
what sevenseacat said
<sevenseacat>
lemme check
<sevenseacat>
yep i was right
<baweaver>
fair warning that Fedora tends to be Redhats beta playground
jeremati_ has joined #ruby
<baweaver>
proceed with caution.
<jhass>
fedora is fine
lanemeyer has quit [Ping timeout: 256 seconds]
tier has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
lanemeyer has joined #ruby
makepkgnotwar has quit [Max SendQ exceeded]
<inavele>
baweaver: really?
qualityaddict has joined #ruby
makepkgnotwar has joined #ruby
towski_ has quit [Remote host closed the connection]
* jhass
sighs
<baweaver>
I had a few problems with it earlier on with some mismatches and odd features. Your mileage may vary.
jerematic has quit [Ping timeout: 264 seconds]
<sevenseacat>
theres no problem with defora.
<sevenseacat>
fedora even.
<baweaver>
is defora a thing?
* baweaver
googles
makepkgnotwar has quit [Max SendQ exceeded]
<baweaver>
huh
Deele has quit [Quit: User excited]
<baweaver>
looks a bit sketchy though
makepkgnotwar has joined #ruby
<sevenseacat>
i'm having major brain fails today, so im probably going to say stupid things. (but sevenseacat how is that different from any other day?) you have been warned
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
sankaber has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland>
i love the chording on OS X (thumb/cmd vs pinky/ctrl)
Ellis has quit [Quit: Ellis]
<pipework>
banister: Hey, I don't mean to expose you to my rushed state, but I'm curious, in some situations a binding.pry seems to jump into the wrong place if the binding.pry call is the last line.
einarj has quit [Ping timeout: 250 seconds]
<bradland>
orly? never seen that. got anything that will reproduce? I'm sure the pry team would appreciate the bug report.
<sevenseacat>
ive seen that
mburns has joined #ruby
<sevenseacat>
gotten used to putting binding.pry; true everywhere
<pipework>
sevenseacat: That's nicer than what I write... :p
<bradland>
oh, you mean when binding.pry is the last line of a method.
<bradland>
i thought you meant last line of a file
<bradland>
that makes more sense
<bradland>
yeah, placing anything on the last line of a method would be considered a material change to the method, because that's going to change it's return value, no?
<pipework>
Not neccesarily methods.
<pipework>
A few things do that.
Necromance has joined #ruby
<pipework>
I can dig in and produce specific situations it does and doesn't, I was more curious about whether he'd heard of it.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
As he's the author and big cheese of the whole thing.
Necromance has left #ruby [#ruby]
tubuliferous_ has joined #ruby
adriancb has joined #ruby
iotouch has joined #ruby
atmosx_bsd has joined #ruby
casadei has joined #ruby
musashi1 has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
amitchellbullard has quit [Ping timeout: 265 seconds]
alol__ has quit [Ping timeout: 265 seconds]
LBRapid has quit [Ping timeout: 265 seconds]
mathie has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
revoohc has joined #ruby
exadeci has quit [Ping timeout: 265 seconds]
zero7 has quit [Ping timeout: 265 seconds]
pizzaops has quit [Ping timeout: 265 seconds]
alol__ has joined #ruby
terrellt has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
prasselpikachu has quit [Ping timeout: 265 seconds]
ramblinpeck_ has quit [Ping timeout: 265 seconds]
zzak has quit [Ping timeout: 265 seconds]
pusewicz has quit [Ping timeout: 265 seconds]
incomprehensibly has quit [Ping timeout: 265 seconds]
AdamMeghji has quit [Ping timeout: 265 seconds]
johnhamelink has quit [Ping timeout: 265 seconds]
auraka has quit [Ping timeout: 265 seconds]
jalcine has quit [Ping timeout: 265 seconds]
atmosx has quit [Ping timeout: 265 seconds]
mva has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 265 seconds]
sankaber has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
towski_ has joined #ruby
jokester has quit [Ping timeout: 265 seconds]
bcavileer has quit [Ping timeout: 265 seconds]
neektza has quit [Ping timeout: 265 seconds]
blackjid has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 265 seconds]
unclouded has quit [Ping timeout: 265 seconds]
Nightmare has quit [Ping timeout: 265 seconds]
pagios has quit [Ping timeout: 265 seconds]
Affix has quit [Ping timeout: 265 seconds]
jaxxstorm has quit [Ping timeout: 265 seconds]
larissa has quit [Ping timeout: 265 seconds]
universa1 has quit [Ping timeout: 265 seconds]
dseitz has joined #ruby
pusewicz has joined #ruby
zzak has joined #ruby
ramblinpeck_ has joined #ruby
casadei has quit [Ping timeout: 250 seconds]
exadeci has joined #ruby
Feyn has joined #ruby
incomprehensibly has joined #ruby
zero7 has joined #ruby
pizzaops has joined #ruby
neektza has joined #ruby
pagios has joined #ruby
AdamMeghji has joined #ruby
bcavileer has joined #ruby
tmoor has quit [Remote host closed the connection]
pico-pete has joined #ruby
larissa has joined #ruby
teotwaki has joined #ruby
mathie has joined #ruby
johnhamelink has joined #ruby
jaxxstorm has joined #ruby
Nightmare has joined #ruby
tylersmith has joined #ruby
mjmac has joined #ruby
Affix has joined #ruby
LBRapid has joined #ruby
jalcine has joined #ruby
prasselpikachu has joined #ruby
fryguy9 has quit [Quit: Leaving.]
universa1 has joined #ruby
Affix is now known as Guest52049
tmoor has joined #ruby
tier has quit []
blackjid has joined #ruby
zarubin_ has joined #ruby
jimeh has joined #ruby
bricker has joined #ruby
quintinadam has joined #ruby
riotjones has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
fryguy9 has joined #ruby
serivichi has quit [Quit: Leaving]
zarubin_ has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
sevvie has joined #ruby
amitchellbullard has joined #ruby
quintinadam has quit [Ping timeout: 245 seconds]
unclouded has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
mva has joined #ruby
legit has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
auraka has joined #ruby
revoohc has quit [Quit: revoohc]
tkuchiki has joined #ruby
jokester has joined #ruby
baroquebobcat has joined #ruby
framling has joined #ruby
x1337807x has joined #ruby
RegulationD has joined #ruby
revoohc has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gccostabr has quit [Quit: ZZZzzz…]
sankaber has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
sankaber has quit [Client Quit]
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deansc has joined #ruby
tus has quit []
iotouch has quit [Quit: 离开]
iotouch has joined #ruby
iteratorP has joined #ruby
iotouch has left #ruby [#ruby]
krisquigley has joined #ruby
markholmes has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
jenrzzz has quit [Ping timeout: 240 seconds]
turtil has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
bim has quit [Remote host closed the connection]
wildroman2 has joined #ruby
fryguy9 has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
wildroman2 has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
TheGugaru has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
lewix has quit [Remote host closed the connection]
snath has joined #ruby
Darryl___ has joined #ruby
kubunto has quit [Quit: Learn the rules so you know how to break them properly.]
wildroman2 has quit [Remote host closed the connection]
thumpba has joined #ruby
wildroman2 has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
Dopagod has quit [Ping timeout: 256 seconds]
wildroman2 has quit [Remote host closed the connection]
legit has quit [Quit: Leaving]
wildroman2 has joined #ruby
Coraline has quit [Quit: Exit, stage left]
Coraline has joined #ruby
adriancb has joined #ruby
makepkgnotwar has joined #ruby
jeremati_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
porfa has quit [Quit: porfa]
Porfa_ is now known as Porfa
davedev2_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
davedev24_ has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
palms has joined #ruby
tlarevo has joined #ruby
rdema has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
wildroman2 has quit [Remote host closed the connection]
Dopagod has joined #ruby
Hijiri has joined #ruby
rdema has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nycjv321 has joined #ruby
sevvie has quit [Ping timeout: 276 seconds]
Sawbones_ has joined #ruby
wildroman2 has joined #ruby
sevvie has joined #ruby
rubytor has joined #ruby
<nycjv321>
what is proper syntax for testing multiple get.chomp statements within a single method? clazz.stub(:gets).and_return('input') only supports one input at a time.
bruno- has quit [Ping timeout: 264 seconds]
<nycjv321>
I think I figured it out
<jhass>
iirc you can pass a block to and_return
<jhass>
and thus closure over an array and pop off the values or something
<nycjv321>
yea figured it out.
braincrash has joined #ruby
Eiam_ has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
pontiki has quit [Quit: fading out, off to read]
RedCrustacean has left #ruby ["WeeChat 1.1"]
bricker has quit [Ping timeout: 264 seconds]
lnr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
jenrzzz has quit [Ping timeout: 272 seconds]
EnduranceMan has joined #ruby
arescorpio has quit [Excess Flood]
Mark-6ma has joined #ruby
mordocai has joined #ruby
<EnduranceMan>
Could anyone help me out with copying an array into a new array and replacing values?
lnr has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
yh has joined #ruby
Pupeno has joined #ruby
parduse has quit [Ping timeout: 272 seconds]
towski_ has quit [Remote host closed the connection]
EnduranceMan has left #ruby [#ruby]
lnr has quit [Ping timeout: 245 seconds]
Mark-6ma has quit [Quit: -]
yh has quit [Ping timeout: 244 seconds]
parduse has joined #ruby
EnduranceMan has joined #ruby
mbuf has joined #ruby
nullset68 has joined #ruby
sevvie has joined #ruby
<EnduranceMan>
Could anyone here help me out with copying an array into a new array while changing values?
lemur has joined #ruby
rubytor has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 276 seconds]
terlar has quit [Ping timeout: 256 seconds]
tcrypt has quit [Remote host closed the connection]
mbuf has quit [Client Quit]
enterprisedc has quit [Quit: enterprisedc]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
bim has joined #ruby
parduse has quit [Ping timeout: 265 seconds]
nullset68 has quit [Quit: Leaving]
<mozzarella>
!ask
Porfa has quit [Remote host closed the connection]
<woop>
EnduranceMan: sounds like a job for map
parduse has joined #ruby
narcan has joined #ruby
Ellis has quit [Quit: Ellis]
yfeldblum has joined #ruby
bim has quit [Ping timeout: 272 seconds]
quintinadam has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nazty has joined #ruby
<EnduranceMan>
!ask
<EnduranceMan>
sorry, I'm new here, what is the protocol for asking a question?
lnr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woop>
you ask the questino
zzing has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
<woop>
not if you're allowed to ask the question
happyface has quit [Quit: Connection closed for inactivity]
lemur has quit [Read error: Connection reset by peer]
<woop>
speaking of questions - anybody out there gotten the jsapi to work sending tokens to their ruby server to exchange?
<woop>
blern
lemur has joined #ruby
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<woop>
trying to paste my question, but my laptop doesn't want to
<EnduranceMan>
oh I see. Well I'm trying to iterate over a two dimensional array and locate all instances of '*', then take the cells adjacent to THAT cell and count them up. +1 for each adjacent cell. I'm also trying to replace instances of cells that contain '.' with 0
deansc has quit [Remote host closed the connection]
Sawbones_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 256 seconds]
<woop>
just use for loops, man
<woop>
you're getting all goofed up on higher-order functions that don't make sense in this context
riotjones has joined #ruby
techietrash has joined #ruby
makepkgnotwar has joined #ruby
quintinadam has joined #ruby
<woop>
just read the error message
longfeet has quit [Ping timeout: 272 seconds]
<woop>
go to the line
adriancb_ has joined #ruby
michael_mbp has quit [Excess Flood]
<woop>
and understand the difference between what you think you're doing and what's happening by maybe inspecting the data that you *think* is an int but is an array
agrinb_ has joined #ruby
michael_mbp has joined #ruby
Morkel has joined #ruby
<woop>
additionally... you're going to ned to deal with additional context outside of the scope of any single element of either the outer array or inner array if I understand what you're saying
<woop>
so for loops, it is
Dreamer3 has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 245 seconds]
nycjv321 has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 245 seconds]
palms has quit [Ping timeout: 276 seconds]
turtil has quit [Quit: WeeChat 1.1.1]
<EnduranceMan>
got it, so iterate over with for loops
lnr has joined #ruby
<EnduranceMan>
so set i = 0, for i < minesarray.length, i++?
<EnduranceMan>
oh wait that's java isn't it
<woop>
like... if something on row 0 is a *, you want the element in the same column of row 1 to be altered
<woop>
yes?
<EnduranceMan>
damn i hate switching languages
<EnduranceMan>
right
Mia has quit [Read error: Connection reset by peer]
<EnduranceMan>
well I want the * to stay as *
<EnduranceMan>
the . to change to 0
<woop>
but you want the surounding bits to get changed
<woop>
yeah
<EnduranceMan>
yeah
Channel6 has quit [Quit: Leaving]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
RegulationD has joined #ruby
sevvie has joined #ruby
<woop>
I'd say stick with the control structures you know unless you know why you would use a map
<EnduranceMan>
so in ruby I can say for i in column, if i != *, i = 0?
icebourg has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
mordocai has quit [Remote host closed the connection]
<EnduranceMan>
it isn't erroring but also isn't changing any of the .s to 0s
Sawbones has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mozzarella>
you're just reassigning the variable
<mozzarella>
not mutating it
User458764 has joined #ruby
<woop>
EnduranceMan: try using for loops instead, man
<woop>
lol
krisquigley has joined #ruby
<woop>
`for i in 0..minesarray.length ...`
<woop>
you know.... the same for loop you'd use to do this in JAVA
<woop>
just pretty
<woop>
(each is a higher-order function, not a loop)
arup_r has joined #ruby
Deele has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
ponga has joined #ruby
arup_r has quit [Remote host closed the connection]
<woop>
because you need to know your position and have access to more of the actual array than just the current element, normal loops are best
<woop>
for the last time
* woop
waves
<woop>
bye
krisquigley has quit [Ping timeout: 265 seconds]
<EnduranceMan>
thanks for the help
MatthewsFace has quit [Remote host closed the connection]
<mozzarella>
uh, that's not true
<mozzarella>
and for loops are considered bad ruby style
jordsmi has quit [Quit: Connection closed for inactivity]
<EnduranceMan>
what do you do then? nested .each?
<woop>
eh
<woop>
use for loops
<sevenseacat>
for loops are not idiomatic rucy.
<sevenseacat>
ruby even
<mozzarella>
use enumerators
<woop>
but at the same time, this is a problem involving stepping through a 2d array and grabbing elements from other rows
<woop>
grabbing/altering
x1337807x has joined #ruby
oo_ has joined #ruby
<mozzarella>
I don't see how that changes anything
x1337807x has quit [Client Quit]
<inavele>
question when i'm using e.g a Sinatra app on Heroku and this app have a rufus-scheluder process if i make a little change and another deploy on this app, will i lose this schelude?
Sawbones has quit [Remote host closed the connection]
<woop>
mozzarella: if you're on the ith item of the jth row, how do you get the ith item of the (j-1)th row with enumerators, check its value, and mutate it?
<woop>
do this without really gross side effects
<woop>
I could totally see doing it with "idiomatic ruby" if the data were in different data structures
<sevenseacat>
each_with_index
<mozzarella>
use indexes instead of iterating over the items
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amdbcg1 has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Read error: No route to host]
Matthews_ has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
OtterCoder has quit [Remote host closed the connection]
jeromelanteri has quit [Ping timeout: 252 seconds]
reinaldob has quit [Ping timeout: 252 seconds]
tcrypt has joined #ruby
brainslug has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
tcrypt has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
tmoor has quit [Ping timeout: 256 seconds]
Dopagod has quit [Ping timeout: 255 seconds]
A205B064 has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
quintinadam has quit []
jeromelanteri has joined #ruby
thumpba has joined #ruby
lnr has quit [Ping timeout: 250 seconds]
<pipework>
woop: Disagree. #each_with_index
relix has joined #ruby
<pipework>
Oh I was scrolled up.
thumpba has quit [Ping timeout: 254 seconds]
astrobun_ has joined #ruby
towski_ has joined #ruby
lnr has joined #ruby
braincra- has joined #ruby
jenrzzz has joined #ruby
postmodern has joined #ruby
x1337807x has joined #ruby
<jxf>
Is there a built-in way to get a lazy enumerator which returns [0, 1, 2, 3, ...] indefinitely?
braincrash has quit [Ping timeout: 265 seconds]
<jxf>
I know I can just write something easy like `ns = Enumerator.new { |y| n = 1; loop { y.yield n; n += 1 } }` but I don't want to sprinkle that all over the place
<Radar>
jxf: Depends on if there's an upper limit to that number.
<jxf>
Radar: There is not. That's why I want it to be lazy.
techietrash has quit [Quit: Bye! <(^_^<)]
CustosL1m3n has joined #ruby
<Radar>
Because there's 1.upto(999)
<jxf>
Well, sure, but that's not a lazy enumerator.
<brainslug>
try (1..Float::INFINITY).lazy
markholmes is now known as sydneyyyyy
<Radar>
1.upto(999).lazy
<Radar>
there you go
<jxf>
brainslug: That's clever, I like that.
<jxf>
Radar: it also stops at 999. :P
tlarevo has quit []
<jxf>
A lot of math would break if "infinity" was 999. :)
A205B064 has quit [Ping timeout: 252 seconds]
<Radar>
Well it's good that we've discussed a solution for a problem... but what is the problem that you're trying to solve?
sydneyyyyy is now known as holmsiedoodle
oo_ has quit [Remote host closed the connection]
holmsiedoodle is now known as markholmes
oo_ has joined #ruby
hanmac1 has joined #ruby
<jxf>
Radar: I want to invoke an expensive API method repeatedly with members from the sequence [1, 2, 3, ...], get the result, and accumulate it. If the result is zero, stop and return the accumulated value. Otherwise, repeat with the next integer.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar>
jxf: Ah, thanks :)
<jxf>
This is a fairly common task for things like paginated APIs. You know how to get the next page, but you don't know how many pages there are. Lazy enumerator!
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r>
sevenseacat: Ahh! Ruby made me unhappy from your link
<shevy>
flughafen yeah but you mean gvim right? and gvim is quite annoying
wildroman2 has quit [Remote host closed the connection]
<arup_r>
shevy: before loading the pic my browser crashed.. what you sent ? :(
fabrice31 has quit [Ping timeout: 252 seconds]
<shevy>
lol
<shevy>
a white tiger
inavele has quit [Ping timeout: 255 seconds]
<shevy>
VII. Compensation by Purchasing Power
<flughafen>
shevy: i dunno, it's been more than 12 years since i've used windows
<shevy>
How many Big Macs can you buy?
<shevy>
what the ...
ruboto has joined #ruby
<sevenseacat>
never heard of the big mac index?
<pipework>
That's a fun read, however I doubt the value of it myself.
<shevy>
I hate big macs
<pipework>
Though it made for a lul.
<shevy>
I always used to eat fish mac
<arup_r>
Well now.. I see
<sevenseacat>
pipework: oh it means nothing to me, as its all US/europe based
<pipework>
PHP devs are cheaper. (maybe, but this isn't a great study)
<sevenseacat>
which really has no relevance here
<shevy>
hey
<arup_r>
shevy: the tiger came out.. and jumped onto my Boss chair.. Why you said to him before sending ?
<sevenseacat>
here = in Australia
<pipework>
sevenseacat: Yeah, but I doubt it has relevance in those locations either. :p
<shevy>
australia belongs to the british empire!
mostlybadfly has quit [Quit: Connection closed for inactivity]
jimms has joined #ruby
<sevenseacat>
only on a technicality
<pipework>
Because a study of self-reporting answers is full of holes?
<shevy>
arup_r well, somewhere in India, or at least once upon a time, you had tigers. we never had tigers here in central europe! the biggest native cat we have (or have had) is the lynx
<pipework>
At least it's a good reason to make nice enough graphs.
<shevy>
"The community's primary interest in web applications"
<shevy>
what the!!!
sevvie_ has quit [Remote host closed the connection]
<shevy>
lol
sevvie has joined #ruby
<shevy>
"Writing Ruby code is not challenging or interesting at this point"
<flughafen>
shevy: i'd run lynx if i needed didn't need a real browser. but bugzilla and my project don't work in lynx
<hanmac1>
shevy, leave him ... it seems he just wants the D ;p;p
<flughafen>
or any textgg browser
sameerynho has quit [Ping timeout: 240 seconds]
<shevy>
flughafen THE CAT
<shevy>
hanmac1 I'm gonna read it and see if he can excite me into D
RegulationD has quit [Ping timeout: 250 seconds]
<hanmac1>
flughafen: hmmm currently i got the idea how pages like youtube would look in a textbrowser when that browser would suport the AA lib ;P
Pumukel has joined #ruby
<arup_r>
shevy: He is from Marketing domain! Ignore hime! like `him.ignore!`
<flughafen>
shevy: D has built in looping constructs! how revolutionary!
sameerynho has joined #ruby
<sevenseacat>
he makes D look interesting
<shevy>
D looks like C and C++ and Java
Spami has quit [Quit: This computer has gone to sleep]
<shevy>
"D has a built in looping construct for ranges called foreach."
<shevy>
awesome
<shevy>
auto swedishNames = names.map!(n => n ~ "son");
<adaedra>
You want the D?
nopolitica has joined #ruby
<flughafen>
shevy wants the D now adaedra !
<shevy>
I don't even understand that construct
<arup_r>
adeponte: no.. I want K
<sevenseacat>
i can understand it apart from not knowing the ~ operator
<arup_r>
please write one K interpreter for me someone..
<shevy>
sevenseacat that is cause you are a clever cat
Sawbones has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<sevenseacat>
not really.... i struggle too much with a lot of things
bruno- has joined #ruby
krisquigley has joined #ruby
<shevy>
driving cars... catching mice ...
<shevy>
I have a simple rule for my own code - I must not confuse myself
mengu has quit [Remote host closed the connection]
<shevy>
that's why I failed at haskell
<sevenseacat>
haskell is on my miles-long list of things to go back to
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<flughafen>
shevy: she can see 11x better than us in the dark
<sevenseacat>
as long as i have my glasses on
bluOxigen has quit [Ping timeout: 264 seconds]
nopolitica has quit [Client Quit]
<shevy>
flughafen my cat brings me a mouse every now and then. Not specifically for me but because it likes to play with it in the flat rather than outside where it may be cold
Sawbones has joined #ruby
<flughafen>
shevy: i can understand that.
bruno- has quit [Ping timeout: 255 seconds]
<flughafen>
shevy: my cats are indoor only but one of them managed to catch a bat, we were able to get it from the cat before it was too late, we think it got away
tpimtts is now known as tpimtts_away
<shevy>
cool
<shevy>
a bat... you must live in some strange area
<flughafen>
we had our windows open because it was hot, and i woke up in the middle of the night, and I hear this weird sound that sounded like a bat, so I got up and turned on the light and there was a bat flying around, and then the cat jumped and got it
<shevy>
he uses sinatra + honeybadger
<shevy>
so clearly, he does not care about web applications... he just uses them
yfeldblum has joined #ruby
renier has quit [Ping timeout: 252 seconds]
sigurding has quit [Quit: sigurding]
<shevy>
"If you do decide to stay and work on Ruby things I recommend you immediately audit your Gemfile and try to remove 75% of all your dependencies."
<shevy>
Aha! Problem solved! I have no Gemfiles.
<adaedra>
:|
<adaedra>
Why would we have to remove things from the Gemfile?
<adaedra>
If it’s there, it’s for a reason...
livathinos has quit []
Pupeno has quit [Remote host closed the connection]
<shevy>
dunno. Well, he complains about meta-magic in some gems
connor_goodwolf has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
Porfa has joined #ruby
oo_ has joined #ruby
<pipework>
shevy: Thats fantastic!
m3nTe has joined #ruby
<pipework>
adaedra: Everything is either there or not there for a reason. Whether that reason is good enough to stand up to certain levels of scrutiny is another question.
<shevy>
I complained about some gems too. Especially when they have no documentation!
CustosL1m3n has joined #ruby
<pipework>
I think his statement was more to the effect of "we're not big into dependencies here, make the ones you use count."
yfeldblu_ has joined #ruby
sigurding has joined #ruby
ponga has joined #ruby
nettoweb has joined #ruby
Porfa has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
markholmes has quit [Quit: So it goes.]
bim has joined #ruby
joonty has joined #ruby
tubuliferous has joined #ruby
User458764 has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
waxjar has quit [Ping timeout: 256 seconds]
ChasedSpade has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Remote host closed the connection]
jrunning_ has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
Centrixx has joined #ruby
agrinb has joined #ruby
reinaldob has joined #ruby
msgodf has quit [Quit: Leaving]
jrunning_ has joined #ruby
msgodf has joined #ruby
waxjar has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 256 seconds]
DavidDudson has joined #ruby
einarj has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
deimos has quit [Ping timeout: 250 seconds]
retornam has quit [Ping timeout: 265 seconds]
<sevenseacat>
he does come across as a grumpy git in that post
m3nTe has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 245 seconds]
Koshian has quit [Ping timeout: 265 seconds]
deimos has joined #ruby
reinaldob has quit [Ping timeout: 272 seconds]
retornam has joined #ruby
arup_r has joined #ruby
Koshian has joined #ruby
oo_ has joined #ruby
LudicrousMango has quit [Ping timeout: 256 seconds]
<toertore>
there is such a thing as stupid questions
<jhass>
apoplexy_da_boss: because there's no useful or productive discussion to come from it
<apoplexy_da_boss>
a friend of mine never s's tfu about ruby and says how much he hates php
<apoplexy_da_boss>
and i dont get why
johnchalekson has joined #ruby
<canton7>
cheaper, more ubiquitous hosting. PHP has evolved a lot recently. to a degree, devs are responsible for writing bad code
<apoplexy_da_boss>
he claims php is bad and says ruby is good and i dont get how a language can be good or bad
johnchalekson has quit [Max SendQ exceeded]
<toertore>
then your friend is an idiot and can be ignored
<pipework>
apoplexy_da_boss: They can skip php by simply not stopping to learn it.
<canton7>
ruby is arguably the better langauge though
bim has joined #ruby
<jhass>
and there we go ...
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<pipework>
If you want ruby to be like PHP, use Erb and pass self (main) as the context.
<adaedra>
eurk
<pipework>
Then you may or may not want to go do unpleasant things to yourself for doing such a thing.
<pipework>
self-flagellation is acceptable.
<yh__>
There are zealots in every sphere
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<livcd>
apoplexy_da_boss: jhass should not the question be more...what skills / patterns should i learn first that would benefit me working in both languages ?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kq_away_ has joined #ruby
<pipework>
yh__: There's also the eternal skeptics who are offended when lumped with zealots.
<toertore>
apoplexy_da_boss: php isn't statically typed which means there will be more errors at runtime
<jhass>
strongly typed you mean
<yh__>
pipework: such circular individuals don't move very far :)
<jhass>
strong vs weak, static vs dynamic
<workmad3>
toertore: the first is also true of ruby, and the second doesn't necesarilly follow from the first :P
<pipework>
toertore: That's not scientifically proven, but I believe your intention for the sentiment was meant well.
johnchalekson has joined #ruby
<pipework>
I wouldn't say someone who very much dislikes a thing is a zealot. Maybe they're dogmatic, but zealot isn't quite fitting, from my understanding.
johnchalekson has quit [Max SendQ exceeded]
<workmad3>
toertore: but well done for moving the question away from the subjective 'better/worse' and onto attributes that you can objectively measure ;)
RegulationD has quit [Ping timeout: 244 seconds]
<kq_away_>
How can I append a value to a list in a function chain? I'd like somethign list.map{}.append(foo).select{}.to_a for example
<toertore>
i'm so good at trolling it should be my job
<pipework>
toertore: You eliminate a class of errors, but introduce a class as well.
<yh__>
canton7: with virtualisation - in fact, that's yesterday. With today's *containerisation*, that appeal of ubiquitous hosting has adequately passed
<apoplexy_da_boss>
ok
<apoplexy_da_boss>
thanks for the info guys
<apoplexy_da_boss>
:]
<jhass>
apoplexy_da_boss: see what you did there? ;)
<pipework>
kq_away_: Show us your code.
<yh__>
canton7: I'm so glad we don't live in the world of "shared hosting" any more :-)
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<pipework>
yh__: We're all selfish zealots.
<apoplexy_da_boss>
jhass: dudes gonna hard in the paint up in here
<pipework>
Why can't we just share? D:
<jhass>
kq_away_: push
<canton7>
yh__, we do, for small stuff. If I write a little website for a mom+pop business, I don't give a shit about containerisation :P
<canton7>
it's all about requirements and trade-offs
johnchalekson has quit [Max SendQ exceeded]
<pipework>
canton7: And ethics!
<canton7>
heh
<adaedra>
here we go
<toertore>
canton7: you don't give a shit because it's not the default way to do things yet; when the infrastructure is centered around containers you will
<pipework>
I find it ethically problematic to .trust shared hosts.
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
krz has quit [Read error: Connection reset by peer]
<pipework>
Historically, and having worked with them. They're often patchwork that hopefully grows into a good redundant system.
<pipework>
Site5 is a good shared host for that.
<canton7>
toertore, please. I haven't touched PHP in... 6 years, maybe? I'm exclusively ruby. I'll always use it for websites. But that doesn't mean that PHP has *no* merits
krz has joined #ruby
<toertore>
what
johnchalekson has joined #ruby
<jhass>
kq_away_: .push
johnchalekson has quit [Max SendQ exceeded]
<pipework>
canton7: It has the same merits as any fucked up preprocessor.
<apoplexy_da_boss>
php is trash, anyone who disagrees is a nazi communist
<yh__>
canton7: it doesn't take much shit-giving to just use Elastic Beanstalk on AWS, for instance. Or Heroku. Or anything else that happens to use some form of virtualisation
<apoplexy_da_boss>
(kidding)
<canton7>
hey, less nuclear war please, guys
<canton7>
let's be nice :)
jimms has joined #ruby
<toertore>
ure al dumb
<workmad3>
canton7: why would be nice to a PHP apologist? :P
<pipework>
Sorry, fucked up atypical preprocessor.
johnchalekson has joined #ruby
<canton7>
someone who isn't a blind fanboi? ;)
<pipework>
workmad3: Especially one who isn't being intellectually honest for reasons that I assume lie in personal amusement.
<jhass>
kq_away_: a few style notes: indent with two spaces, use File.read & File.write, use File.join, use unless for if not, use reject instead of select { ! } / select { not }
<pipework>
canton7: Your trolling is sad because you're ruining any point you may have had.
User458764 has joined #ruby
<canton7>
pipework, I'm not trolling. I'm specifically trying to diffuse this situation, and stated at the beginning I didn't want a war
<pipework>
jhass: I like to prefer Pathname!
<pipework>
Mmmmm.
<canton7>
saying the other camp has merits (even though I belong to this camp through and through) shouldn't be regarded as unusual :P
<pipework>
canton7: I don't personally buy into that entirely. But assuming it's true, your response was not one that aligns with your stated purpose.
<pipework>
<canton7> someone who isn't a blind fanboi? ;)
<pipework>
Not a defusing statement, miaow is it?
<canton7>
that was being playful :P
<kq_away_>
jhass: I'm one of those tab using heathens ;) I'm on ruby 1.8 and it didn't work with File.read / write
<canton7>
don't take it personally
<pipework>
You can make excuses if you like.
<jhass>
kq_away_: ah well, 1.8 is long dead ;)
<pipework>
But I find your position to be dishonest and inconsistent, ruining your argument.
<canton7>
chill out :)
<pipework>
The merit of it.
<toertore>
programming arguments are a zero sum game - one side has to win, and you better make sure it's yours
<canton7>
I'm not trying to make an argument
<yh__>
It was pretty much only me and canton7 making any serious points
<jhass>
kq_away_: 1.9 is dead, 2.0 dies in less than 11 months ;)
<yh__>
Signal:noise is quite off
<toertore>
the end justifies the means
<canton7>
I don't want this to be a war, and I'm not trying to fight anyone
<canton7>
let's just all calm down :)
<pipework>
toertore: Speaking of, why haven't we tortured pythonists into making usable lambdas?
<kq_away_>
jhass: I have an irc bot that relies on features that are unavailable with later versions on my system
<workmad3>
canton7: humans are psychologically inclined to boost the merits of the camp they agree with and discount the merits of the camp they disagree with... so yes, it should be regarded as unusual for you to espouse the merits, but not because you're wrong ;)
<jhass>
kq_away_: for example?
DEA7TH has joined #ruby
<pipework>
canton7: As a hint: The phrase 'calm down' is not one that you should use to try to defuse a situation.
<toertore>
pipework: usable lambdas?
<workmad3>
canton7: it's unusual because it shows you have an atypical psychological outlook :P
Pupeno has joined #ruby
<toertore>
pipework: don't they already have functions?
<kq_away_>
ruby-dbd I think
<pipework>
toertore: Yeah. It's entertaining that their lambdas are weak.
<kq_away_>
bdb*
<toertore>
i don't know much about python tbh
<kq_away_>
jhass: I have "plans" of moving forward, but there's never enough time :P
<canton7>
pipework, yeah, but you look childish if you respond with "No! I'm not going to calm down!"...
<pipework>
canton7: Did I?
<mikecmpbll>
i just did my boss's 14 year old nephew's python homework
<mikecmpbll>
call me for all your python needs.
<canton7>
pipework, no, you didn't
<jhass>
kq_away_: isn't that a gem?
<pipework>
canton7: You must be mistaken if you think I did.
<pipework>
Ah very good. I don't feel like your point added any value, but it wasn't invalid either.
chinmay_dd has joined #ruby
bigmac__ has joined #ruby
<canton7>
it was an observation, not a point
<livcd>
but what's worse i still do not understand css's positioning
<kq_away_>
jhass: well, the bot relies on it being available and I recall having problems on newer ruby versions. I'm sure they're not insurmountable but it's not supported anymore so I'd have to fix everything myself. As it is now, it's a legacy system that works well
<pipework>
canton7: Agreed. Your observation, since it didn't have a point, was valid.
<canton7>
workmad3, among my colleagues, balance in a discussion isn't unusual. I always forget that IRC is somewhat more polarised!
<pipework>
livcd: Go look up the box model if you haven't already studied it.
<jhass>
kq_away_: sure, just be aware that advice here and security patches by the ruby devs will not apply to that version anymore. It's out of support
<pipework>
That's only the starting point though, there's some intersting stuff.
<livcd>
pipework: ok will do
<kq_away_>
jhass: thanks for the pointers, btw. are two spaces required by some PEP8 equivalent in ruby?
ArchRogem has joined #ruby
<adaedra>
It’s the common rules
<pipework>
^
<yh__>
There have been no useful points in this discussion since the one I made 10 mins ago
<canton7>
yh__, completely agreed on the virtualisation. Shared hosting still has its niche though - it's getting smaller, but you can't argue that it still exists
<adaedra>
use tabs if you want
<adaedra>
we won’t send a killer if you do so
<toertore>
don't fuckin use tabs
<pipework>
It's okay to proudly ignore, especially if you don't care if you're summarily ignored.
bigmac_ has quit [Ping timeout: 272 seconds]
<kq_away_>
anyway, it works. Thanks again jhass!
<canton7>
yh__, also, if I need a quick 1-file script, I'm going to go with dropping a PHP file in some folder rather than spinning up yet another thin instance
<pipework>
yh__: Your observation also falls under the categorization in your observation. Self-consistent, I like that.
<adaedra>
just, if you do, some angry people may reject your code just for this reason.
<pipework>
canton7: Why's that, you know PHP better than ruby?
<pipework>
adaedra: Why do they have to be angry?
<toertore>
tabs vs spaces is one of the few areas where you just need to suck it up and do what everyone else does
<pipework>
Why can't they simply be enforcing community norms without any emotional involvement?
<canton7>
pipework, because if I didn't, I'd have 30 thin instances running by now, and I'd need to get some more RAM
tpimtts is now known as tpimtts_away
<pipework>
canton7: Why do you think that?
<canton7>
because it's true? :S
<pipework>
Why can't people master unix before they try to master a programming language?
<mikecmpbll>
github should've converted every repo to tab spacing for april fools.
<pipework>
canton7: Your observation has some bias and probably a lack of information that would inform that observation.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toertore>
that would've been hilarious mikecmpbll
<pipework>
mikecmpbll: talk about a great way to lose customers.
<canton7>
pipework, it's an observation on a particular use-case. It's a small edge-case use-case, but it's there
<mikecmpbll>
"we're making a stand on indentation!"
<pipework>
canton7: I think your approach is fundamentally flawed.
<canton7>
pipework, why do you think that, with no information?
<toertore>
mikecmpbll: "opinionated"
<pipework>
"I want to do a one-off script in ruby, I have to use puma!"
<mikecmpbll>
toertore: :D
<canton7>
pipework, if you've got any alternative suggestions, I'd love to hear them
<pipework>
canton7: Because I .trust that if you had more information you wouldn't hide it and tell me I don't know the information.
<yh__>
canton7: the market exists. But the participants getting involved in it are arguably making a poor business decision/commitment. That's why I don't think it should serve as a predicate for advocating any merit for PHP
<pipework>
That might be what you're doing, in which case I'm wrong, but there's something else very telling going on about the conversation.
<pipework>
canton7: I use ruby all the time without needing an application server.
bim has quit [Remote host closed the connection]
<canton7>
pipework, CGI?
<pipework>
I even do parallel concurrent stuff, though I admittedly use things present in POSIX and other systems.
leafybasil has quit [Remote host closed the connection]
<pipework>
canton7: Depends on what you're doing, but if we're keeping the specifics general or secret, processes, pipes, and alcohol.
<mikecmpbll>
canton7: i don't think he's talking about web apps.
bim has joined #ruby
<canton7>
yh__, if there's cheap low-traffic ruby hosting which doesn't suffer heroku's spin-up-time problem, I'll honstly be very interested
<canton7>
mikecmpbll, I started this, and I am talking about web apps
<pipework>
He did mention it was a one-off script.
<mikecmpbll>
canton7: i know.
<pipework>
canton7: Ah, that's a useful clarification!
<canton7>
ok, maybe I didn't make it clear enough that I'm talking about web stuff :P
<mikecmpbll>
ok then. pipework : i think he's talking about web apps
<mikecmpbll>
same diff :)
<yh__>
canton7: Tutum cloud?
<pipework>
So I'd do the minimal amount of work necessary in the process that handles responding to http requests.
<canton7>
yh__, interesting! hadn't come across them, thanks
<pipework>
Mindblowing, I know!
<canton7>
pipework, not sure what point you're trying to make I'm afraid
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
<pipework>
canton7: That you have more choices than you think you do when it comes to wanting to use ruby to deliver data down a socket quickly.
<pipework>
I believe you are a rather smart person, so I wonder why you think you only have that choice you mentioned above. It's a very curious thing to me.
<toertore>
canton7: what he's trying to say is that if you know what you're doing, what programming language you use matters very little
<canton7>
pipework, I'm not worried about speed. If I want to make a little api server, which is called maybe twice a day and totals 200 lines, spinning up an always-present app server is a bit of a waste
tubuliferous has joined #ruby
<pipework>
canton7: That can also be solved!
tvw has quit [Remote host closed the connection]
<pipework>
You do need some kind of coordinator, though it doesn't have to be up either.
<canton7>
toertore, if you know what you're talking about, you pick the right tool for the job :)
<pipework>
^ My point exactly
<toertore>
canton7: there are many right tools for every job
<pipework>
If you know what you're talking about you pick the right tools. Often languages aren't a constraint in that situation.
jrunning_ has quit [Ping timeout: 256 seconds]
<canton7>
toertore, at which point it becomes a judgement call, and a war is pointless
<pipework>
Rarely, in fact, is a good language a constraint for your situation.
somnium has quit [Ping timeout: 256 seconds]
<canton7>
pipework, I agree
<toertore>
canton7: my point was that he was right and you were wrong
somnium has joined #ruby
<toertore>
because he knows more than you
<adaedra>
Stop fighting :’(
<canton7>
he seems to be coming from the same direction as me, though
<toertore>
and i'm not joking
agrinb has joined #ruby
<toertore>
that's just the way it is
<mikecmpbll>
can we all just agree that i know the least
<pipework>
adaedra: No, it's a healthy human interaction that anyone who doesn't want to hear or be involved in it can easily remove themselves.
<toertore>
hey i know leaster than you!
<pipework>
I cannot confirm nor deny toertore's point.
<mikecmpbll>
god damnit.
<canton7>
tbf, we are talking to a channel of 904 people :P
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
However, I'm 90% certain he's just trolling me through you.
<pipework>
'people,'
<adaedra>
mikecmpbll: I agree
<pipework>
How about joined clients?
<mikecmpbll>
adaedra: ;)
jrunning_ has joined #ruby
Ludicrou_ has joined #ruby
Tomasso has joined #ruby
iteratorP has quit [Ping timeout: 245 seconds]
bim has quit [Remote host closed the connection]
<Tomasso>
i tought it was possible to do something like [3,4,5,6,7,8,1,1].collect {|x,y| x < y} , but the thing is that the parameter y is never passed...
<toertore>
pipework: it's just a simple observation of an obvious fact; no value judgement either way
<mikecmpbll>
Tomasso: what's y meant to be??
tubuliferous has quit [Ping timeout: 244 seconds]
ylxjen has joined #ruby
<jhass>
or x
<canton7>
pipework, disagreement aside (and I'm genuinely interested in your answer, because I spent a while looking at a way of doing this and didn't find anything): what setup would you use for many, independent, one-off, single-file api servers, where you want the resource usage of each when it's idle to be minimal?
<adaedra>
Tomasso: you may have to group them before doing that.
bluOxigen has quit [Ping timeout: 256 seconds]
<pipework>
toertore: Miaow I'm paranoid and can't distinguish between troll and honest sentiment!
<mikecmpbll>
canton7: it's pretty easy to use cgi with ruby iirc
<jhass>
Tomasso: in other words, what result do you expect by that?
bluOxigen has joined #ruby
<canton7>
mikecmpbll, nginx doesn't support cgi easily sadly
fabrice31_ has quit [Remote host closed the connection]
<Tomasso>
mikecmpbll: wanted to read elements by 2, and compare them to calculate the minimum
<mikecmpbll>
fastcgi
<canton7>
... and cgi doesn't play nicely with e.g. sinatra, without some hacking
<pipework>
canton7: Oh, so if you don't care about the operating speed of the api in practice, I have some ideas.
LudicrousMango has quit [Ping timeout: 240 seconds]
<Tomasso>
jhass: 1
<canton7>
mikecmpbll, is there a fastcgi server that can host multiple rube apps?
<canton7>
pipework, nah, that's not a concern here
<jhass>
Tomasso: why not call .min?
<canton7>
s/rube/ruby/
<Tomasso>
well.. <= should be.. but anyway
agrinb has quit [Ping timeout: 245 seconds]
<pipework>
canton7: So you'd basically have your rack app that, based on whatever value you want to switch on, like param string, would either call into some code in the current process's runtime, or delegate to a new process or delegate to a running process.
<jhass>
Tomasso: not that you can also pass a block to min and there's min_by
<toertore>
canton7: so cgi just calls a program, sends it input and receives output, it can be anything
<pipework>
However, it sounds like the running process isn't good.
<jhass>
*note
<Tomasso>
mm .min .. .
<mikecmpbll>
Tomasso: :D
<pipework>
And the first one isn't good either because you'd have to keep that stuff loaded into the runtime and that sounds like something you want to avoid.
<canton7>
toertore, cgi is out: nginx doesn't like it :P
<Tomasso>
well.. thats more intuitive
<pipework>
canton7: In short, use puma with a rack app that uses subprocesses.
<canton7>
pipework, yeah - I tried making some rack middleware which forked when a new app was needed, then unloaded afterwards. But I couldn't get it to unload properly
<pipework>
That way the memory can be reclaimed or reallocated for everything.
chinmay_dd has quit [Ping timeout: 276 seconds]
<pipework>
I wouldn't fork, but that's because I think a fresh new process would limit the memory bloat, but maybe someone knows off hand about CoW support.
<canton7>
yeah, that might have been where I was going wrong
<toertore>
basically, your very own cgi server :P
Takle_ has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
<pipework>
toertore: Yeah, sorta. Like CGI with a routing layer on top.
<mikecmpbll>
manages app processes / shuts them down idle
<pipework>
canton7: One more suggestion is to figure out how to not create even the string in ruby that you will end up writing to the response.
* mikecmpbll
shrugs
<mikecmpbll>
handles multiple apps
<mikecmpbll>
etc
lanemeyer has joined #ruby
<canton7>
mikecmpbll, iirc it swallows more memory for each app, and doesn't unload them?
<canton7>
or at least, last time I tried - which was a few years ago
<mikecmpbll>
canton7: no, it shuts down app processes all the time
<mikecmpbll>
you can configure it however
<pipework>
If the process can be responsible for providing either a fully valid http response to shove down the socket, or you could actually do something fundamentally different where you use ephemeral ports and pass those sockets or references to them into the subprocess.
<canton7>
maybe I'm mis-remembering
<mikecmpbll>
canton7: sounds like it.
<toertore>
canton7: though to be completely honest, most of the time you won't want to be dealing with the details and edge cases of running processes and parsing http yourself, which is what php does for you
<canton7>
yeah - I was mainly wondering whether someone else had solved this problem in a way I wasn't aware of
<toertore>
but with a rack server you could send the parsed http as json
<pipework>
toertore: I don't know, it depends on exactly how much he wants to optimize.
<pipework>
He could start inneffficient and keep moving down.
<toertore>
sure
<canton7>
since some of this stuff won't be called for possibly months on end, I ideally want zero overhead
<toertore>
the way mongrel2 does things is interesting, but that requires a long running process
<pipework>
You could get the socket and then do packet manipulation for all the raw speeds.
Iniesta8 has joined #ruby
<toertore>
i wish i knew how to use that
mva has left #ruby [#ruby]
<pipework>
toertore: If you have questions, float them my way.
charliesome has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
<pipework>
The idea is that you should avoid allocating objects, and when you do and they're remotely expensive, consider finding a way within ruby to release them, or just kill the process as soon as possible.
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
<toertore>
yeah, i'd need more like a few days of reading through books and articles on the subject
sevvie has joined #ruby
rkmylo has joined #ruby
<pipework>
toertore: Oh is layer 2 the unknown more than just that library being unknown?
leafybasil has joined #ruby
<toertore>
yeah
<toertore>
i barely know how tcp works
<pipework>
toertore: Yeah defintely would want to read a lot.
<pipework>
By doing that you ought to end up with a system that, at worst, uses the same amount of memory (maybe with a little overhead), but no more to service the same requests.
fabrice31 has joined #ruby
<pipework>
At best, it probably floats around a consistent amount of memory 'pressure' or usage at any given time.
sdothum has joined #ruby
<mikecmpbll>
or most likely it crashes and you cry.
<pipework>
However, except for string allocations, I bet you could get really down deep and have a no-heap-allocation webserver. I'd have to research further to suggest more optimiztions.
<pipework>
mikecmpbll: Whale, if it does, at least it'll only crash that process and its children
<pipework>
Which isn't something to cry about. At least they die as a family.
<pipework>
Orphaned children processes are worth crying about.
<mikecmpbll>
:'(
mostlybadfly has joined #ruby
C1V0 has quit []
<pipework>
toertore: It's fun when you hit this moment where you're like, "I can send packets that other systems don't like.... hehehe."
Zai00 has quit [Quit: Zai00]
zotherstupidguy has quit [Ping timeout: 265 seconds]
<pipework>
toertore: I want to understand layer 1, the physical layer, more than just conceptually in theory.
tus has joined #ruby
<pipework>
I wanna touch it!
arquebus has joined #ruby
Pupeno has quit [Quit: Leaving...]
bluOxigen has quit [Ping timeout: 264 seconds]
<workmad3>
pipework: I know just enough of layer 1 to know it may be fun to know more, but that I lack the time to really learn it properly
mavbozo has joined #ruby
<pipework>
workmad3: I don't know about specifications, but the freedom to turn bits into grouped streams that I can represent however I want in order to send it elsewhere kinda gives me a nerdon.
ndrei has quit [Ping timeout: 248 seconds]
arquebus has quit [Client Quit]
<workmad3>
pipework: I read a bit into gigabit ethernet a while ago... when I got to it talking about how the maths involves 4-dimensional multiplexing to trunk together 5 250mbit connections into a single 1gbit connection, I went "cool" and stopped
<toertore>
pipework: you mean you want to "know" it, in the biblical sense?
jheg has quit [Quit: jheg]
<pipework>
toertore: I mean I want to learn from evidence, so no.
<toertore>
what i always seem to overlook is how much error correction goes on in every layer of every technology i depend on
arquebus has joined #ruby
<toertore>
makes my own hunt for perfection and things that work "just right" seem too eager
doodlehaus has joined #ruby
tagrudev has joined #ruby
withnale_ has joined #ruby
aganov has joined #ruby
rsavage has joined #ruby
_1_EMI has joined #ruby
rsavage is now known as r3dk1nG
<hanmac1>
pipework: hm maybe there is a layer 0 ... which is Æther or something ;P
sevvie has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
sigurding has quit [Quit: sigurding]
<pipework>
toertore: But maybe to not seek that perfection is to scoff at the other layers. They sacrifice so much so that you might achieve perfection!
ylxjen has quit [Remote host closed the connection]
_1_EMI has left #ruby [#ruby]
<pipework>
The least you could do is imitate and do as much error correction as you can while passing responsibility upwards another layer. :p
<toertore>
yeah, of course, but there is still imperfection at my level, and sometimes you just have to accept that
<toertore>
yeah
roshanavand has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
roshanavand has joined #ruby
mavbozo has quit [Quit: Leaving]
ahmetkapikiran has joined #ruby
mrbond has joined #ruby
sevvie has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
bruno- has quit [Ping timeout: 246 seconds]
inavele has joined #ruby
a5i has joined #ruby
bim has joined #ruby
Ludicrou_ has quit [Ping timeout: 265 seconds]
johnchalekson has quit [Read error: Connection reset by peer]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
arquebus has quit [Quit: Ex-Chat]
sevvie has quit [Ping timeout: 250 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
agrinb has joined #ruby
coderhs has joined #ruby
rodfersou has joined #ruby
arquebus has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
arquebus has quit [Client Quit]
rippa has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 245 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
rippa has joined #ruby
sevvie has joined #ruby
devyn has quit [Ping timeout: 264 seconds]
inavele has quit [Ping timeout: 250 seconds]
coderhs has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
jefus_ has joined #ruby
<jokke>
hi
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
pagios has left #ruby ["Leaving"]
<jokke>
is assaf arkin by chance idling here?
anarang has joined #ruby
anarang has quit [Read error: Connection reset by peer]
<jokke>
maintainer of zombie and vanity
gccostabr has joined #ruby
johnchalekson has joined #ruby
tvw has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<jhass>
if you want to report an issue, opening one on github might be easier
coderhs has joined #ruby
<jokke>
i'm trying to port his rack-oauth2-server for mongo 2.0 and i've been running the tests for about 2.5 hours now.. I'm wondering if this is normal or if i can speed it up somehow
<jokke>
it runs on 100% cpu all the time
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
<jokke>
i'm wondering if it's because the crypto is so expensive..
<jokke>
i know that devise has special settings for test environment
<jokke>
to speed up tests
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
jefus has quit [Ping timeout: 256 seconds]
devyn has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<jhass>
most people don't mind asking questions via github issues too, if there's no other form of contact provided
<jokke>
mh yeah
apoplexy_da_boss has quit [Ping timeout: 252 seconds]
<jokke>
the last commit is like 2 years ago so i thought he might be focusing on other things now, but i guess he'll get notifications
alexherbo2 has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
greenbagels has quit [Read error: Connection reset by peer]
avril14th_ has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
colorisco has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
colorisco has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
quimrstorres has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
reinaldob has joined #ruby
joonty has quit [Quit: joonty]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
quimrstorres has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
SouL_|_ has quit [Remote host closed the connection]
jheg has joined #ruby
RegulationD has joined #ruby
sigurding has joined #ruby
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
coderhs has quit [Ping timeout: 250 seconds]
Pharaoh2_ is now known as Pharaoh2
sdrew has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
deuteriu_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
doodlehaus has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 248 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has joined #ruby
ndrei has joined #ruby
kevkev has quit [Ping timeout: 256 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
VBlizzard has joined #ruby
lxsameer_ has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
johnchalekson has joined #ruby
max96at|off is now known as max96at
johnchalekson has quit [Max SendQ exceeded]
Zai00 has joined #ruby
vt102 has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
coderhs has joined #ruby
joonty has joined #ruby
adaedra is now known as undeadaedra
ahmetkapikiran has quit [Quit: ahmetkapikiran]
workmad3 is now known as gonemade3
Advocation has quit [Quit: Advocation]
gonemade3 is now known as gonemad3
gonemad3 is now known as workmad3
johnchalekson has joined #ruby
serivich has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
mengu has joined #ruby
ldnunes has joined #ruby
sameerynho has joined #ruby
jenrzzz has joined #ruby
Takle has quit [Remote host closed the connection]
ki0_ has quit [Remote host closed the connection]
arietis has joined #ruby
ki0 has joined #ruby
<arietis>
hey guys
lxsameer_ has quit [Ping timeout: 245 seconds]
<arietis>
is Addrinfo ipv4_loopback? and ipv6? enough to get lan ipv4 address of local machine?
<arietis>
from Socket.ip_address_list
VBlizzard is now known as _blizzy_
<arietis>
for me if both values are false i get proper ip
krz has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
tubuliferous has quit [Ping timeout: 245 seconds]
ahmetkapikiran has joined #ruby
JaTochNietDan has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
bluOxigen has joined #ruby
duncannz has quit [Remote host closed the connection]
JaTochNietDan has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
jerematic has joined #ruby
<jhass>
what's the question?
phutchins has joined #ruby
lewix has quit [Client Quit]
joonty has quit [Quit: joonty]
bim has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
sameerynho has quit [Ping timeout: 272 seconds]
sameerynho has joined #ruby
brb3 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
pika_pika has joined #ruby
zotherstupidguy has quit [Quit: leaving]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
jottr has joined #ruby
sigurding has quit [Quit: sigurding]
Sawbones has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
Takle has joined #ruby
revoohc has joined #ruby
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
RegulationD has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
dvg-laptop has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.1.1]
rippa has quit [Read error: Connection reset by peer]
Sawbones has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 248 seconds]
Aswebb_ has joined #ruby
<dvg-laptop>
Has anyone ever daemonized an event-machine app? No matter what I try (other than just appending a & when running it in the terminal) it just skips the runloop and exits
bluOxigen has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
yeticry has joined #ruby
kblake has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
bim has quit [Remote host closed the connection]
hectortrope has joined #ruby
Rollabunna has joined #ruby
bluOxigen has joined #ruby
hectortrope is now known as |Zz|
twistedpixels has quit [Ping timeout: 256 seconds]
|Zz| is now known as |liar|
vtunka has quit [Quit: Leaving]
sevvie has joined #ruby
codecop has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Excess Flood]
astrobun_ has quit [Remote host closed the connection]
twistedpixels has joined #ruby
B1n4r10 has joined #ruby
<dvg-laptop>
jhass fair enough, but I’m working on a gem and I want to ship it with at least some built-in capability to run in the background independant of the OS
vivekananda has quit [Quit: Leaving]
<ddv>
I would use systemd
coderhs has quit [Ping timeout: 264 seconds]
bim has joined #ruby
adriancb_ has quit [Ping timeout: 265 seconds]
|liar| has quit [Quit: WeeChat 0.4.2]
blueOxigen has joined #ruby
adriancb has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 246 seconds]
<kq_away_>
How would I list all files (and only files) in a directory/
<kq_away_>
well, I should learn to google first
jimms has joined #ruby
rippa has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
<jhass>
Dir.glob/.[] + .select + File.directory?
freerobby has joined #ruby
silkfox has joined #ruby
Rapier- has joined #ruby
<jhass>
or Dir.entries for the first step
rodfersou has joined #ruby
<kq_away_>
I used File.file?
<kq_away_>
Why was your first suggestion directory?
serivich has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<jhass>
because it's a positive assertion
<kq_away_>
I want files
<jhass>
er, no nvm, because I need some sugar ;)
<kq_away_>
:P
rippa has joined #ruby
<kq_away_>
Anyway, I have a whitelist of extensions. I learned about Regex.union, but how can I make sure it appens ^ to each of those?
agrinb has joined #ruby
<kq_away_>
Or should I add them myself
<kq_away_>
not sure if I presented my problem clearly
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Darkwater has joined #ruby
Aswebb_ has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<kq_away_>
Hm, maybe I'll just do /(.*?).(.*)/
<Darkwater>
hey, could I bump into any problems if I keep image blobs in an array to cache?
<kq_away_>
then I'll have the filename which I need already
bkfmdx has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
bim has quit [Remote host closed the connection]
<Darkwater>
kq_away_: don't forget to escape that .
<jhass>
Darkwater: besides running out of memory? probably not
<Darkwater>
cool, thanks
User458764 has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
Spami has quit [Client Quit]
Pumukel has joined #ruby
<kq_away_>
Darkwater: right, thanks
<kq_away_>
/(.*?)\.(.*)/ it is
dblessing has joined #ruby
LudicrousMango has joined #ruby
jimms has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
<kq_away_>
I just now realized how difficult it'd be to write a regex that'd accept dots as parts of filename, i.e. in scene releases, but still recognized tar.gz properly
jimms has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<ddv>
scene releases? as in warez?
serivichi has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
johnchalekson has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
labria has quit [Quit: labria]
spyderman4g63 has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bkfmdx_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
serivich has quit [Ping timeout: 240 seconds]
Contigi777 has joined #ruby
bkfmdx has quit [Ping timeout: 248 seconds]
hgl has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
roshanavand1 has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
<kq_away_>
as in example, ddv ;)
<Darkwater>
/(.*)(\.[a-z0-9]{1,6}){1,2}/
<Darkwater>
try something like that
<kq_away_>
Totally.Legit.Linux.rar
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bkfmdx_ has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
<jhass>
kq_away_: what's wrong with my glob?
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
JDiPierro has quit [Remote host closed the connection]
bkfmdx has joined #ruby
JDiPierro has joined #ruby
<jhass>
ext = whitelist.find {|ext| path.end_with? ext }; filename File.basename(path, ext) if extraction is your issue
johnchalekson has joined #ruby
<kq_away_>
huh
johnchalekson has quit [Max SendQ exceeded]
<kq_away_>
nothing, jhass
<kq_away_>
I simply missed it
iteratorP has joined #ruby
uri_ has joined #ruby
<kq_away_>
that being said, I still need base filename and extension
ndrei has joined #ruby
charliesome has quit [Quit: zzz]
<jhass>
which I just showed you how to do
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
mikenovikov has joined #ruby
<kq_away_>
Sorry, trying to process that
bim has joined #ruby
<kq_away_>
ok, let me try
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
hiall_ has joined #ruby
Spami has joined #ruby
dmolina has joined #ruby
charliesome has joined #ruby
tier has joined #ruby
lanemeyer has joined #ruby
HNDavid has joined #ruby
HNDavid has quit [Client Quit]
bkfmdx has quit [Ping timeout: 256 seconds]
iteratorP has quit [Ping timeout: 250 seconds]
hectortrope has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
charliesome_ has joined #ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
sameerynho has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
jerius has joined #ruby
steven43226 has quit [Ping timeout: 252 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
blackmesa has joined #ruby
johnchalekson has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
johnchalekson has quit [Max SendQ exceeded]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
vire has quit [Ping timeout: 252 seconds]
johnchalekson has joined #ruby
sgambino has joined #ruby
User458764 has joined #ruby
quimrstorres has joined #ruby
doodlehaus has joined #ruby
yh has joined #ruby
vire has joined #ruby
triple_b has joined #ruby
adriancb has quit [Remote host closed the connection]
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<jhass>
not too bad
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass>
I'd refrain from single letter variable names personally
pandaant has quit [Remote host closed the connection]
bkfmdx has joined #ruby
bkfmdx has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
<jhass>
and you can destructure an array in block arguments: .each do |filename, extension|
ringarin has joined #ruby
sankaber has joined #ruby
<kq_away_>
I'm really used to e for element, k for key, v for value and f for file
<jhass>
oh and if you pass ".#{ext}" to File.basename, you can save the [0..-2]
<undeadaedra>
i for iterator
<kq_away_>
Ah, that actually bugged me compared to the regex version
<jhass>
haha, and there it starts
<kq_away_>
thanks
<jhass>
i would be index for me
duggiefresh has joined #ruby
<undeadaedra>
which is not too different
<jhass>
which is why I dropped even i
<workmad3>
I normally go idx in ruby
<kq_away_>
I'm a C++ guy, it's always 'it' for iterator
<undeadaedra>
even the bass?
<workmad3>
foo.each_with_index {|item, idx| ...}
<undeadaedra>
for very local usage, single letter is not really a problem imo
<kq_away_>
my lambdas (or however they're called here) are very local imo
<workmad3>
undeadaedra: I'll use i,j and k when walking over vectors ;)
zenith_ has joined #ruby
browndawg has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
robertt_dex has joined #ruby
<undeadaedra>
I can do this, but I’d prefer have explicit names with this levels of imbrication
<workmad3>
(x and y for images)
klaas has joined #ruby
<undeadaedra>
Yeah, x y z for coordinates
decoponio has joined #ruby
ahmetkapikiran has joined #ruby
<workmad3>
undeadaedra: as I said, depends on whether the co-ordinates are for vectors in linear algebra, or something more along the lines of images ;)
adriancb has joined #ruby
CustosL1m3n has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
catcher has joined #ruby
wolf4ood___ has joined #ruby
enebo has joined #ruby
<Darkwater>
single or double quotes/
silkfox has quit [Quit: WeeChat 0.4.3]
<workmad3>
undeadaedra: how about r and θ for polar co-ords? :) or even r ω for complex polar co-ords? :)
<undeadaedra>
Darkwater: is that a question? What context?
<undeadaedra>
workmad3: hard to type on keyboard, let’s keep it to ascii
<djellemah>
Darkwater: Single if you want to wake up. Double if you want palpitations.
Megtastique has joined #ruby
emocakes has joined #ruby
<workmad3>
undeadaedra: pfft, where's the fun in that? :)
<workmad3>
π is easy to type on OS X after all
<undeadaedra>
Darkwater: double quotes allow interpolation (#{}), single quotes does not
<Darkwater>
but what do I use for simple strings like for require
<yh>
how2pi
<Darkwater>
can't settle on a standard :\
<workmad3>
yh: alt-p
<undeadaedra>
if you don’t need interpolation, use single quotes
<yh>
ππππππππππππ
<yh>
Loving the pi
<yh>
looks like a millipede
<Darkwater>
yh: 3.1415926535
<Darkwater>
looks like a number
bkxd has joined #ruby
<workmad3>
amystephen has joined #ruby
adriancb has quit [Remote host closed the connection]
<avril14th>
Hey, I'm running into some lovely behavior, I have some Unirest::post calls that fail when sent rapidly one another (when I run tests) and that work when running the same tests one by one. Any hint how to fix that?
mengu has quit [Remote host closed the connection]
<bkxd>
undeadaedra: interesting
<undeadaedra>
?
agrinb has joined #ruby
joonty has quit [Quit: joonty]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
<gilmour>
I'm trying to do a memoized, conditional assignment (||=) in an iterated block of code defining multiple methods. Can I use self.instance_variable_get("@#{some_variable}") ||=
<gilmour>
? my editor is yelling at me that the above code look syntactically invalid. :/
iwishiwerearobot has joined #ruby
<jhass>
yeah, you can't
<jhass>
that would be assigning to a method call
<jhass>
which is invalid
johnchalekson has quit [Read error: Connection reset by peer]
<jhass>
a ||= b is short for a || a = b
<workmad3>
(ish)
<gilmour>
Daah. I see.
sivsushruth has joined #ruby
oo_ has joined #ruby
<jhass>
you might want to step back btw
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<jhass>
reassure all that metaprogramming is really needed
<gilmour>
Too much meta? hehe yeah.
B1n4r10 has joined #ruby
<gilmour>
Sigh. I'm sure you're right, trying to be too clever for fun. Thanks!
johnchalekson has joined #ruby
<|Liar|>
hi jhass
<jhass>
hi hector
joonty has joined #ruby
<|Liar|>
oops jhass how do u know?
<apeiros>
heh
<jhass>
/nick is public
<avril14th>
Coraline: https://gist.github.com/muichkine/2a19a8dc136a08bcff11, the funny thing is that 1/ my call to code is in a try so it shouldn't raise anything 2/ the stack tracks points to the line of the post, not the following one
<yh>
workmad3: why "ish" there?
<avril14th>
all hints more than welcome, I'm infinite looping here
<undeadaedra>
gilmour: use instance_variable_set with a condition testing if the variable is set. still 1 line
tubuliferous has quit [Ping timeout: 256 seconds]
<workmad3>
yh: because 'a ||= b' isn't quite identical to 'a || a = b'
agrinb has quit [Ping timeout: 245 seconds]
<|Liar|>
hi guys
fabrice31 has quit [Remote host closed the connection]
<Coraline>
avril14th: is that a live post to your app?
<avril14th>
from my app to a third party server
<avril14th>
why?
<Coraline>
Eep, you shouldn't be hitting an external service in a test
<undeadaedra>
Stub it
<Coraline>
You should be testing your app, not their endpoint
<avril14th>
well, the external service is a bunch of neural networks that I tweak around all the time so it's desired to be in the test since I want to test the global behaviour
<Coraline>
You might look at something like VCR to stub out service calls
palms has joined #ruby
havenwood has joined #ruby
<avril14th>
and still, that does not explain the error
<Coraline>
avril14th: those tests belong in the external service codebase
<avril14th>
and if or not I'll hit it in production
JDiPierro has joined #ruby
casadei has joined #ruby
<undeadaedra>
empirical way: test in production.
<undeadaedra>
(Protip: Don’t do that.)
<Coraline>
avril14th: aside from just not doing that, look at the logs for your service then and see what happenws
<Coraline>
happened
<avril14th>
I don't have these logs
<Coraline>
avril14th: what you're doing is a classic testing antipattern
arup_r has quit [Remote host closed the connection]
<avril14th>
antipattern?!
ringarin has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 248 seconds]
<Coraline>
As in, "a thing that is done that should never be done"
<yh>
workmad3: i was hoping you might uncover how, slightly :)
<avril14th>
oh yeah
<Coraline>
If the 3rd party service is a blackbox, treat it as a black box and stub that puppy
<workmad3>
yh: I was leaving at as a learning exercise for you to ponder and ask if you couldn't figure out why ;)
fabrice31 has joined #ruby
<Coraline>
Off to work.
<workmad3>
yh: but to prompt you... think about what 'a ||= a' does if 'a' is a new local variable... and compare that to 'a || a = a'
Jiyuhen has joined #ruby
ndrei has joined #ruby
<yh>
workmad3: gotcha, the latter bombs out with an exception :)
<workmad3>
yah
Spami has quit [Quit: This computer has gone to sleep]
sankaber has quit [Read error: Connection reset by peer]
aryaching has quit [Read error: Connection reset by peer]
<gregf_>
wonders what dynamic scoping is, you only have locals or globals
Rollabunna has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
Rollabunna has joined #ruby
arietis has joined #ruby
zenith_ has joined #ruby
timanema has joined #ruby
<aawe>
gregf_: define a in f, call g from f, a is defined in g too. call g from f2, which does not define a, and a is not defined in g's scope
Azulinho has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
phutchins has joined #ruby
<aawe>
a global stack of name bindings, defined at runtime
bruno- has joined #ruby
horsecowdog has joined #ruby
<workmad3>
aawe: hmm... actually, I think jhass may have hit it on the head straight away, after reading through an SO thing on dynamic scoping... it'll be because with instance_eval(&blk) you can change the implicit 'self' of a block, so that the scope binding for methods and ivars changes
devans has joined #ruby
cocotton has joined #ruby
<workmad3>
aawe: all you went over with your example was the static rules of when ruby defines a new scope, not when the scope can change in a dynamic fashion
Takle_ has joined #ruby
<maasha>
What tools do we have to validate method arguments given as a hash?
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 256 seconds]
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maasha>
foo(bad_param_should_raise: true)
selu has joined #ruby
<aawe>
can I call B#f from A#g so that "this" in f is "this" from g?
<aawe>
maasha: could you elaborate?
Beliq has joined #ruby
<workmad3>
aawe: sometimes :P
<workmad3>
aawe: also, 'self', not 'this' ;)
<undeadaedra>
this = self
<workmad3>
undeadaedra: that just makes me think of preserving scope in js :( _this = this
cpt_yossarian has quit [Quit: And then he took off.]
<gregf_>
aawe: def f; a = "foo"; print "#{a} -f"; g();print "#{a} - g"; end;def g; a = "bar";print "#{a} - in g"; end;def f2; g(); end;f(); f2() <== is this what you mean and what variable value needs to be retained?
cpt_yossarian has joined #ruby
<maasha>
aawe: I am sure I saw a gem that allows you to specify valid params and values using some elegant syntax.
<undeadaedra>
workmad3: we don’t talk about JS.
bkxd has quit [Ping timeout: 245 seconds]
zenith_ has quit [Remote host closed the connection]
<workmad3>
maasha: sounds like you want required kwargs... ruby 2.1+ lets you do 'def foobar(require_kwarg:, optional_kwarg: foo)'
jlebrech has joined #ruby
rubytor has joined #ruby
vire has quit [Ping timeout: 264 seconds]
naftilos76 has joined #ruby
<maasha>
workmad3: ah, and before 2.1+ ?
zenith_ has joined #ruby
xaxisx has joined #ruby
<workmad3>
maasha: you could do something like 'def foo(bar: r)' in 2.0+, where 'r' just doesn't exist, and that'll cause an error when someone calls the method without the bar: argument
bim has joined #ruby
<workmad3>
maasha: prior to 2.0, no native kwarg support, so it's whatever you want to do with validating an options hash
<aawe>
gregf_: rather class A; def foo; end; def f; B.new.g; end; end; class B; def g; foo; end; end; A.new.f
adamjleonard has joined #ruby
SouL_|_ has joined #ruby
JDiPierro has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maasha>
workmad3: I am sure I saw a gem that allows you to specify parameter checks by adding a single line of awesomeness. I read about it in a blog post on optimizing code, but at that time I was not interested in the paramter checks, but the optimizing process.
sevvie has joined #ruby
<workmad3>
aawe: hmm... I think 'a = 4; [1,2,3].each{|a| p a}; p a' counts as dynamic scoping under some of the descriptions I've now looked up
Spami has joined #ruby
<aawe>
workmad3: that does not do anything unexpected assuming lexical scoping
<workmad3>
maasha: there probably is... but I doubt it's as supported now, due to there being native kwarg support :)
<maasha>
workmad3: found it. Contracts
Takle_ has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<wasamasa>
"Turns out, function calls are very expensive in Ruby."
<wasamasa>
;__;
mistermocha has joined #ruby
<bradland>
what's a function call :P
<aawe>
what does the "knife tears" emote mean?
<gregf_>
lol, so make one class with only one method that does all the work ;)
jottr has joined #ruby
<undeadaedra>
bradland: someone crying.
<undeadaedra>
é_è
Takle has joined #ruby
<bradland>
undeadaedra: i think you meant aawe
<undeadaedra>
s/bradland/aawe/
<bradland>
:)
<undeadaedra>
too slow.
The_Phoenix has joined #ruby
mistermo_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<undeadaedra>
can’t brain, think doesn’t work.
blackmesa has quit [Ping timeout: 256 seconds]
<wasamasa>
it sounds pretty silly since inlining manually isn't something a rubyist shall do
cpt_yossarian has quit [Quit: And then he took off.]
The_Phoenix has joined #ruby
<bradland>
i loathe benchmark references where the benchmark code isn't provided
nwjjjf has joined #ruby
aryaching has joined #ruby
rubytor has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
djdarkbeat has quit [Quit: djdarkbeat]
<bradland>
granted that in the example given, the proportion of time required to validate the contract is high relative to the actual work being done (adding two ints)
<bradland>
but based on this, i'd avoid contracts where performance is important
<workmad3>
bradland: or use them on the public interface of a library and not internally, so that you can enforce data coming in
<bradland>
yeah, use when appropriate, rather than everywhere
<bradland>
the IO example the author uses at the end kind of leaves a bad taste in my mouth too.
<bradland>
int + int is about as fast as you can get, while IO.read is about as slow as you can get
<bradland>
i guess the truth is that you'd have to test it in your code to know what the impact is
davispuh has joined #ruby
ldnunes has quit [Quit: Leaving]
hs366 has quit [Remote host closed the connection]
<bradland>
aawe: not sure what you're trying to accomplish there
<bradland>
do you want the foo method from A accessible within Helper?
<aawe>
within Helper#call, yes
<aawe>
but Helper is just an example
<bradland>
have you worked with modules that are included in another class?
<aawe>
hm?
<wasamasa>
bradland: there isn't much place for objectivity when you've got to demonstrate a tenfold speed improvement for your revolutionary ruby project!
<bradland>
sec, i'll stub some code
<bradland>
aawe: well, i thought i was going to stub some code, but i'm still not sure what the intention is
neanderslob has quit [Ping timeout: 264 seconds]
jobewan has quit [Remote host closed the connection]
<aawe>
bradland: the intention is to pass in a class method as a first-class citizen
<aawe>
to use a method as an argument without executing it
<aawe>
without using a proc or block or lambda loike f{Klass.new.foo)
<aawe>
like*
<workmad3>
aawe: Klass.new.method(:foo)
bal has quit [Quit: bal]
<toertore>
aawe: for what purpose do you want this?
amdbcg has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
xaxisx has quit [Quit: xaxisx]
riotjones has quit [Remote host closed the connection]
n3b- has joined #ruby
sinkensabe has quit [Remote host closed the connection]
amdbcg1 has joined #ruby
allcentury has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<aawe>
"no implicit conversion of Method into String (TypeError)" what
<aawe>
toertore: do I need a purpose?
<aawe>
I just want to explore the possibility of DSL building
<toertore>
aawe: no, of course not. but it seems to me like you want to do something that should be done in a different way
<toertore>
what you're trying to do isn't really done in ruby
agarie has joined #ruby
<aawe>
because functions are not passed around in ruby
<aawe>
why are functions not first-class citizens in ruby?
<toertore>
exactly
<toertore>
because ruby objects don't have properties
neanderslob has joined #ruby
<bradland>
aawe: you need to pass the method/context as an argument to Helper#call if you want it to be accessible
<bradland>
you're trying to pull Helper in to A
<toertore>
there would be no way to know whether obj.foo should return the result of calling foo or foo itself
<bradland>
i'm not sure you can do that
<aawe>
you can do it with blocks, though
<toertore>
without having to add ()
amdbcg has joined #ruby
<aawe>
and procs
<aawe>
and lambdas
<bradland>
yeah, but what you're doing wouldn't work with any of those either
framling has quit [Remote host closed the connection]
<workmad3>
aawe: syntax tradeoff... if you want to allow methods to be called without (), you then can't use 'foo.somemethod' as a reference to the method itself
amdbcg1 has quit [Read error: Connection reset by peer]
<User458764>
For a human it is simple to calculate all the value of for example 4 bits (0000, 0001, 0010...) but how do we programmatically do it? and what if I want the base are not bits but say 5 or 7 (5555, 5557, 5575...)
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<aawe>
gregf_: I have been writing rspec code for the last days
<ruboto>
aawe # => [" 0", " 1", " 10", " 11", " 100", " 101", " 110", " 111", "1000", "1001", "1010", "1011", "11 ...check link for more (https://eval.in/310173)
<User458764>
bradland great thats it now I have to sum all the digit but I think it is fine
allcentury has quit [Quit: WeeChat 1.1.1]
Aswebb_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
turtil-kun has joined #ruby
turtil has quit [Ping timeout: 245 seconds]
Tomasso has quit [Ping timeout: 246 seconds]
maasha has quit [Ping timeout: 246 seconds]
livathinos has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 272 seconds]
<mystiiq>
Hi, I am writing a small HTTP server in ruby. I'd like that server to pass request to ruby cgi scripts, how can I do that? I have basically a HTTP request and would like to invoke CGI script based on that request.
Pumukel has joined #ruby
<toertore>
ask canton7 ;)
agarie has quit [Remote host closed the connection]
<undeadaedra>
are CGI script just scripts executed with request headers as env and request body as input ?
Spami has quit [Quit: This computer has gone to sleep]
riotjones has joined #ruby
<jhass>
the VM model means it transforms the source into a special "bytecode" and then interprets that
OtterCoder has joined #ruby
mwlang has joined #ruby
kyrylo has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: joonty]
<jhass>
in a JIT model the source code is during runtime transformed into native instructions which then are executed
<mwlang>
is using Ruby to make FTP connections and download files ever known to be considerably slower than doing same with Filezilla? when I use Ruby on Windows to download a file, it takes 80 minutes, but only 42 secs for same file on same machine with Filezilla.
tosbourn has joined #ruby
<canton7>
Rubinius JITs, no?
<GaryOak_>
mwlang: that's definitely something else than ruby
<canton7>
and JRuby will of course use the JVM's jitter
<mwlang>
GaryOak_: any idea how to chase it down?
<kq_away_>
jhass: but CLR and jvm are also vms
<workmad3>
jhass: you can JIT with a VM... in that setup, the VM bytecode would be generated when loading the source, and then when a particular method is going to be executed for the first time, it's run through a JIT compiler that turns the VM bytecode into native code. That native code could then be kept around for the rest of the program run-time to speed up execution
<workmad3>
jhass: in fact, I'm not sure of any JIT setup that doesn't function on a VM in practice :P
<GaryOak_>
mwlang: can you post code?
zenith_ has quit [Read error: Connection reset by peer]
Zesty has joined #ruby
<jhass>
yeah I guess
<canton7>
^ C# and java both do that: IL is jitted to machine code at runtime
vtunka has joined #ruby
zenith_ has joined #ruby
<GaryOak_>
how does erlang do runtimes that allows it to inject new code into the running application?
<workmad3>
GaryOak_: erlang is written around highly isolated erlang processes
<workmad3>
GaryOak_: when you 'inject new code', you effictively crash out a process and load a new version of it, without affecting any of the other processes
hiall_ has quit [Quit: hiall_]
<GaryOak_>
oh ok
riotjones has quit [Ping timeout: 264 seconds]
jconnoll1 has joined #ruby
<GaryOak_>
does it do automatic isolation of code?
<workmad3>
GaryOak_: not sure what you mean by 'automatic'... but read up on the actor model for an idea of the concurrency style that erlang uses
xenokiller has joined #ruby
<GaryOak_>
I will do that thanks
<pontiki>
o/
Ellis has joined #ruby
vtunka has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
tohsig has joined #ruby
<Ellis>
i’m looking for an array method that will split an array into two arrays, and the first array consists of things that match some conditions like they are integers
jconnolly has quit [Ping timeout: 264 seconds]
<Ellis>
anyone know?
astrobun_ has joined #ruby
<mwlang>
Ellis: #select and #reject iterators are your friend here.
amdbcg has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
<eam>
Ellis: #partition
<Ellis>
mwlang: i’m going to check those out, thanks. i was thinking of using each_slice, is that possible?
<mwlang>
Ellis: each_slice, as far as I know is for breaking array into manageable chunks
dawkirst has quit [Quit: Leaving...]
amdbcg has joined #ruby
<Ellis>
mwlang: gotcha
<Ellis>
thanks homies for the help
momomomomo has quit [Quit: momomomomo]
<mwlang>
I wasn’t aware of partition. That’s a cool one to add to my bag of tricks. :-)
<eam>
someone here taught me about it in the not too distant past :)
<GaryOak_>
mwlang: not really sure, could be that filezilla is using concurrent requests
<workmad3>
partition is one of those methods that you forget about because you never use it... and then you hit a problem where it's absolutely perfect ;)
_maes_ has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa>
partition_by is also useful
wildroman2 has quit [Remote host closed the connection]
<mwlang>
GaryOak_: hmmm. The only other suspect is the passive mode, which I couldn’t get to work in Ruby without setting to false.
<workmad3>
wasamasa: slice_before, slice_after and slice_when are also useful at times too :)
<mwlang>
workmad3: true, dat. I bet if it were called “split” I’d be more inclined to remember it.
<wasamasa>
workmad3: there must be some deeper truth hidden behind these names
codecop has joined #ruby
roolo has quit [Remote host closed the connection]
<workmad3>
mwlang: bah, draw attention to my lack of a decent blog site at the moment :P
nettoweb has quit [Client Quit]
<undeadaedra>
who has a blog nowadays.
* wasamasa
raises hand
<workmad3>
quick, steal it!
<wasamasa>
no main blog material though
* tosbourn
raises hand also
<undeadaedra>
I should have a blog
* mwlang
here
<undeadaedra>
But when I code it, I end doing shit in the backend and don’t do the blog itself :(
* mwlang
but too long dormant!
<wasamasa>
that will come later once I've got a less silly static blog generator up and running
<tosbourn>
I would happily write about this and credit workmad3
_lazarevsky has quit [Quit: Page closed]
<workmad3>
tosbourn: don't credit me... I stole knowledge about slice_* methods off someone else in here a month or two back :P
<mwlang>
undeadaedra: same for me, although I’ve been working finishing my blog project so I can actually blog
<undeadaedra>
I went down to rack level :|
<sp33k3rph433k>
I am actually going to write a post about that-- how do you want me to credit you workmad3 ?
<sp33k3rph433k>
When I eventually get around to it :P
<undeadaedra>
in the next century
mystiiq has quit [Quit: WeeChat 1.1.1]
<catcher>
How rough was the transition from php -> ruby for those who have done it? Just language, not framework.
amdbcg has quit [Ping timeout: 245 seconds]
<workmad3>
undeadaedra: my last attempt to rebuild my blog ended up with me trying to jam polymer elements into middleman's sprockets pipeline :P
<mwlang>
undeadaedra: heh…I first converted my WordPress blog to static pages served by Rails and have slowly been reintroducing DB driven content while converting said content to markdown and building a back-end editor for Markdown using the Ace editor.
<undeadaedra>
mwlang: nice.
<undeadaedra>
workmad3: nice.
amdbcg has joined #ruby
<mwlang>
I turned all the WordPress related stuff into a Rails engine that I’ll open source soon.
<workmad3>
undeadaedra: then I got distracted by something else (probably a piece of string or something) and I haven't touched it for months :(
<undeadaedra>
I could do things in sinatra, but I don’t like some of the organisation
<mwlang>
a little surprised there’s not already a gem for rails on wordpress already.
bradleyprice has joined #ruby
krisquigley has quit [Remote host closed the connection]
<undeadaedra>
I’m a perfectionist, it doesn’t help to work :|
<mwlang>
undeadaedra: Padrino makes Sinatra a little more nicely organized.
<workmad3>
undeadaedra: yeah, it's getting there... I have a tablet connected to my desktop atm waiting to be flashed with cyanogenmod... when I finally get a suitable recovery image onto it and an ADB connection talking to the recovery image!
<GaryOak_>
I just use github pages :(
krisquigley has joined #ruby
<undeadaedra>
mwlang: with an admin interface ?
<undeadaedra>
erk
<tosbourn>
I recently moved from WordPress to Jekyll – feel a bit less rubbish about it :P
<workmad3>
GaryOak_: well, that's what my plan was with middleman and polymer... static site served with GH pages, with a snazzy polymer/material design JS frontend to make it feel fun :P
<undeadaedra>
I used ActiveAdmin once
<undeadaedra>
It didn’t end well
<mwlang>
undeadaedra: I have all the modeling in it’s own engine. Have been contemplating another engine for the admin stuff.
<workmad3>
undeadaedra: I can probably point you at a support group if necessary
<GaryOak_>
tosbourn: did you run into issues with jekyll docs, not being useful?
<undeadaedra>
workmad3: support group for what ?
<workmad3>
undeadaedra: recovering from ActiveAdmin use :P
<mwlang>
at the moment, I just have a Rails project that is my blog with the WordPress slowly getting turned out of that project into the engine with test coverage.
<undeadaedra>
ahah
<undeadaedra>
Rails seems too much for me
<tosbourn>
@GaryOak_ nope – everything worked fine for me. Images with captions went a bit mental but I didn't really expect the docs to cover that in great detail.
<undeadaedra>
I create a Rails project, and begin to tweak all config files
<workmad3>
undeadaedra: yeah... don't do that :P
<undeadaedra>
It’s compulsive :(
<GaryOak_>
tosbourn: Oh I had issues getting everything setup, I guess just because the way I was doing things
<undeadaedra>
MUST. CONFIGURATE.
<mwlang>
undeadaedra: yeah…for Rails you either go with the prescribed opinions or end up fighting the tide the whole way.
<workmad3>
undeadaedra: hire someone to whack you around the head with a bat every time you open up a rails config file :P
<undeadaedra>
MUST. REMOVE. COMMENTS>
davispuh has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
<workmad3>
undeadaedra: or at least script that crap with sed!
<undeadaedra>
Oh, a rails config file.
<undeadaedra>
NO VIM NO
momomomomo has quit [Quit: momomomomo]
<tosbourn>
@GaryOak_ when did you attempt it? It was literally a month or so ago for me so it could have been improved since then. Plus my WordPress was super vanilla
<workmad3>
undeadaedra: everytime you edit a rails config file, some poor kid somewhere starts coding PHP
<GaryOak_>
tosbourn: Just a few weeks ago
<tosbourn>
@GaryOak_ sucks
<gregf_>
catcher: haven't had a need for a transition, but yeah array(1,2,3) == [1,2,3], array( "one" => 1, "two" => 2 ) == { "one" => 1, "two" => 2 }. for a start
<GaryOak_>
with rails, I just end up shoving everything into the public folder and it's just a static website
<undeadaedra>
workmad3: I do PHP at work, so I’ll let the kid suffer just because I’d know i’m not the only one >:]
mostlybadfly has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
<mwlang>
geez….third Firefox crash in a week. Whatever did that last “update” do!?
MXfive has joined #ruby
<workmad3>
mwlang: started a thread with 'sleep(rand(60 * 24 * 7)); exit!'
<workmad3>
60 * 60 * 24 * 7 even
astrobun_ has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosL1m3n has quit [Ping timeout: 265 seconds]
sohrab has quit [Ping timeout: 255 seconds]
rbennacer has quit [Remote host closed the connection]
<undeadaedra>
workmad3, mwlang: the real problem is that for personal projects, I have no restrictions and no results to give, so I go in all directions and never achieve anything. Which doesn't happens (or less) for work projects. It seems that I need a fixed, external goal to achieve something. :/
adriancb has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
davispuh has joined #ruby
<GaryOak_>
undeadaedra: maybe start by writing a scope for your project?
terlar has quit [Quit: WeeChat 1.1.1]
<undeadaedra>
that's hard
<undeadaedra>
but even if I do this, nothing ties me to it, so it's easy to evade :/
<GaryOak_>
You need a boss :(
<mwlang>
undeadaedra: yeah, I hear you. I found that brain dumping into either Pivotal Tracker or Trello started bringing me closer to achieving my intended goals.
<GaryOak_>
^ started doing this in trello
<undeadaedra>
Should try
djbkd has joined #ruby
<GaryOak_>
just need to remember I made the trello page
<undeadaedra>
GaryOak_: A boss for personnal projects?
chthon has quit [Ping timeout: 244 seconds]
<GaryOak_>
like a friend to remind you to work on stuff
gsd has quit [Read error: Connection timed out]
gsd has joined #ruby
ldnunes has joined #ruby
Spami has joined #ruby
ki0 has quit [Ping timeout: 250 seconds]
mikenovikov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<mwlang>
I started a third monitor on my desktop. It keeps only my prioritized tasks front and center. I start wandering, that screen gives me dirty stares until I return to what I “said I’d do”
jenrzzz has joined #ruby
<undeadaedra>
GaryOak_: not sure friends would follow into it
<undeadaedra>
Should try the trello
Pumukel has quit [Ping timeout: 256 seconds]
davispuh has quit [Read error: Connection reset by peer]
xenokiller has quit [Ping timeout: 255 seconds]
duggiefresh has joined #ruby
davispuh has joined #ruby
serivichi has quit [Ping timeout: 245 seconds]
<GaryOak_>
you could trade, and remind them of projects
mikenovikov has joined #ruby
yfeldblum has joined #ruby
RegulationD has quit [Remote host closed the connection]
<undeadaedra>
yeah …. :|
nettoweb has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
yh__ has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
Crazy_Atheist has joined #ruby
Crazy_Atheist has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mordocai has joined #ruby
cocotton_ has joined #ruby
<undeadaedra>
time to go home
<naftilos76>
is there a method to convert 1 to "first", 2 to "second" etc?
<toertore>
no
<undeadaedra>
maybe a gem implements that
<naftilos76>
:-) ok thnks
<undeadaedra>
even if it looks like a bad idea
cocotto__ has joined #ruby
<GaryOak_>
if there isn't a gem, you could make one
cocotton_ has quit [Read error: Connection reset by peer]
<naftilos76>
i could certanly do that
Zai00 has quit [Quit: Zai00]
<undeadaedra>
It won't work if you're planning to translate it
yh has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
<aawe>
undeadaedra: sure it will. Plans do not interfere with code
cartothemax has quit [Remote host closed the connection]
spyderman4g63 has quit []
cartothemax has joined #ruby
dvg-laptop has quit [Quit: dvg-laptop]
ROOM1 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<ROOM1>
hi
B1n4r10 has joined #ruby
wldcordeiro has joined #ruby
jimms has joined #ruby
axl__ has joined #ruby
<GaryOak_>
ROOM1: hello
axl_ has quit [Ping timeout: 252 seconds]
axl__ is now known as axl_
spider-mario has joined #ruby
tosbourn has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
<jhass>
oh
<jhass>
?whatschat ROOM1
<ruboto>
ROOM1, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
krisquigley has joined #ruby
devans has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
<shevy>
wat
<shevy>
I can not date here
<jhass>
you can try
devans has joined #ruby
<ROOM1>
how
<Ellis>
i’m looking for a method that will split a hash into two arrays based on some condition. i tried group_by but that returned a hash. anyone know of a method that would work?
<jhass>
Ellis: partition is on Enumerable, thus available for Hash too
<Ellis>
derp. thanks jhass, ill try that now
shazaum has joined #ruby
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 264 seconds]
pullphinger has quit []
ponga has quit [Remote host closed the connection]
<jhass>
latest rubygems is 2.4.6, might be worth a shot
oddskill has joined #ruby
toertore has quit [Ping timeout: 265 seconds]
dfinninger has joined #ruby
einarj has joined #ruby
<mwlang>
no change with 2.4.6 installed. (repeated the steps for cleaning and building)
tosbourn has joined #ruby
<mwlang>
somehow rake 0.8.1 is getting picked up, but I can’t quite tell where….maybe in the bowels of rvm?
<jhass>
*shrug*, it's a warning, I wouldn't bother
<jhass>
if you're really bother throw away the ruby version & all gemsets an reinstall
<jhass>
but I wouldn't
<mwlang>
yeah, I think I’m with you. I was just getting ready to publish my gem to rubygems.org and didn’t want any lingering errors/warnings, but this one doesn’t look like a problem with my gemspec per se.
<jhass>
yeah, not at all
dfinninger has quit [Ping timeout: 244 seconds]
<GaryOak_>
this is why I don't use rvm
toretore has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
opes_ has joined #ruby
maximski has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
adamjleonard has joined #ruby
tosbourn has quit [Ping timeout: 250 seconds]
opes has quit []
opes_ is now known as opes
n80 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
djellemah has quit [Quit: Leaving]
sigurding has joined #ruby
yh has joined #ruby
Ellis has joined #ruby
hanmac1 has joined #ruby
djellemah has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
<Ellis>
how can i find how many methods are in ruby core and in ruby standard library?
<jhass>
well over 3.5k
DexterLB has joined #ruby
jimms has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
djellemah has quit [Max SendQ exceeded]
djellemah has joined #ruby
<Ellis>
if i said the enumerable module is part of the ruby standard library, wouldd i be correct? or am i confused
rdark has quit [Quit: leaving]
<jhass>
no, it's in core
<Ellis>
oh god damn
mostlybadfly has quit [Quit: Connection closed for inactivity]
cocotton has quit [Remote host closed the connection]
<Ellis>
is that why i don’t have to require it?
<jhass>
core is always available, stdlib is shipped with Ruby but needs to require'd, gems need to be installed and then require'd
Rephiax has quit [Read error: Connection reset by peer]
Crazy_Atheist has quit [Quit: Leaving]
mjuszczak has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Ping timeout: 264 seconds]
A205B064 has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
<User458764>
Sou|cutter sorry my hash have this key hash['key'] and hash['kEy'] when I iterate I search for the of hash['ke|Ey'] but if search for hash['key'] I have not hash['kEy'] so I thought there I could do something like hash['key'.downcase]
<undeadaedra>
Ah
<User458764>
I think I will do a test condition and to check if it is upcase or downcase
Echoes-- has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
amdbcg has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
<undeadaedra>
by default ruby hash keys are case sensitive (because String#==)
<jhass>
User458764: iterating over hash and using hash[x] inside the loop seems a bit weird :)
<undeadaedra>
You may want to use a special, case insensitive Hash
djdarkbeat has quit [Ping timeout: 240 seconds]
n80 has quit [Quit: n80]
<undeadaedra>
Google gives a lot of samples for this
ta has joined #ruby
tcrypt has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<User458764>
I think I am misunderstood I query a web service over a loop and each time it return me a hash with either the key in downcase or the other in upcase but me I check only the key in downcase so I miss some result :)
gregf1 has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
<User458764>
Sou|cutter I get the key cool, but I have this error for the value TypeError: no implicit conversion of String into Integer
<undeadaedra>
nah, DERP!=
<GaryOak_>
lolol
momomomomo has joined #ruby
<Ellis>
good eyes
zenith_ has quit [Remote host closed the connection]
<Sou|cutter>
User458764: you have integer keys in your hash as well?
<jhass>
you don't stop making these mistakes, you learn to spot them faster ;)
cocotton has quit [Ping timeout: 250 seconds]
<GaryOak_>
and befriend your error logger
<Ellis>
the result is nil. but i’m expecting it to be a long list of arrays … it looks like it isn’t doing what i want it to...
woop has quit [Excess Flood]
<User458764>
Sou|cutter I don't think so
lxsameer has joined #ruby
lxsameer has joined #ruby
Zen-Zen has quit []
poguez_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
jefus has quit [Quit: Leaving]
Guest43428 has joined #ruby
<User458764>
Sou|cutter no It's me I didn't replace 'hash' by my hash :)
<Sou|cutter>
string to integer... err
jefus has joined #ruby
<Sou|cutter>
ah, I knew something was missing
pagios has joined #ruby
<User458764>
Sou|cutter works great
<pagios>
hi how can i output all the params received in sinatra get request?
qhartman has quit [Quit: Ex-Chat]
<jhass>
p params ?
<pagios>
get '/subscribe' do "#{params}" not good
jimms_ has joined #ruby
<GaryOak_>
Ellis: you are trying to modify the all_posts while it's cycling
amdbcg has joined #ruby
r3dk1nG has quit [Remote host closed the connection]
<GaryOak_>
but it's not changing at all
Guest43428 is now known as bourbon
<GaryOak_>
so it's only [1,2,3] 1000 times
<Ellis>
garyoak: yeah i want it to begin cycling, check to see if anything is divislbe by 4, add that to the results, add something to all_posts and then continue
<Ellis>
garyoak: why isn’t it changing all_posts as it cycles?
<GaryOak_>
You can't modify what you are began the cycle on
<Ellis>
><
<Ellis>
damn
baweaver_ has joined #ruby
jimms has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
djdarkbeat has quit [Ping timeout: 272 seconds]
<GaryOak_>
just gotta remember your scope ;)
<GaryOak_>
and understand ruby blocks
jimms has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
platosha__ has joined #ruby
jimms_ has quit [Ping timeout: 252 seconds]
Luyt has joined #ruby
xaxisx has joined #ruby
cr3 has joined #ruby
cocotton has joined #ruby
<cr3>
if I call foo { yield 'bar' }, how can the foo function get 'bar' from the given code block?
djdarkbeat has joined #ruby
<User458764>
Sou|cutter map return me an array of array how could I depop an array dimension?
revoohc has quit [Quit: revoohc]
ruboto has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 256 seconds]
platosha_ has quit [Read error: Connection reset by peer]
Luyt__ has quit [Read error: Connection reset by peer]
pico-pete has quit [Read error: Connection reset by peer]
frem has joined #ruby
sfr^ has quit [Ping timeout: 256 seconds]
frem has quit [Changing host]
frem has joined #ruby
quintinadam has quit [Ping timeout: 264 seconds]
bashusr has quit [Ping timeout: 256 seconds]
ruboto has joined #ruby
pico-pete has joined #ruby
Matadoer has quit [Ping timeout: 256 seconds]
sfr^ has joined #ruby
bashusr has joined #ruby
<User458764>
Sorry for the newbee question I found myself
<undeadaedra>
There are no stupid questions
jimms has quit [Ping timeout: 272 seconds]
djdarkbeat__ has joined #ruby
<GaryOak_>
cr3: can to rephrase that?
<GaryOak_>
can you*
bim has joined #ruby
<cr3>
GaryOak_: sure, if I have foo { 'bar' }, then I can get the return value from the code block in foo like this: def foo(&block); return_value = block.call; end
adamjleonar has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
tesuji has quit [Ping timeout: 245 seconds]
Zen-Zen has joined #ruby
djdarkbeat has quit [Ping timeout: 250 seconds]
<cr3>
GaryOak_: but, if I have foo { yield 'bar' }, calling block.call raises a "no block error" and I've tried a bunch of other combinations that don't work
<cr3>
GaryOak_: does that help a little?
<undeadaedra>
wut
<eam>
cr3: can you gist a short fully functional example?
<eam>
"run this code, it does this, but I expected that"
fryguy91 has joined #ruby
adamjleonard has quit [Ping timeout: 272 seconds]
Billias has joined #ruby
baweaver_ has quit [Remote host closed the connection]
<helpa>
Hi cr3. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<momomomomo>
pagios: please don’t send private messages without asking
<momomomomo>
ask here if you have any questions
jespada has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
pragmatism has joined #ruby
rhllor has quit [Quit: rhllor]
fmcgeough has quit [Quit: fmcgeough]
<jhass>
pagios: ^ is a channel rule btw (see http://ruby-community.com/pages/user_rules for all of them), repeated reports of that behavior can get you removed from the channel
shazaum has quit [Quit: Leaving]
x1337807x has joined #ruby
<pagios>
ok rule 9 noted
JDiPierro has joined #ruby
quintinadam has joined #ruby
JDiPierro has quit [Remote host closed the connection]
musashi1 has joined #ruby
pika_pika has joined #ruby
sevvie has joined #ruby
mleung has quit [Quit: mleung]
roolo has joined #ruby
mleung has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
cocotton has quit [Quit: Leaving...]
rodfersou has quit [Quit: leaving]
zzing has joined #ruby
sargas has joined #ruby
adamjleonard has joined #ruby
adamjleonar has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
Beoran has joined #ruby
astrobun_ has joined #ruby
neomaking has joined #ruby
FLHerne has joined #ruby
<neomaking>
Hey guys, i learned hoxw to use Ruby on Windows, but i'm know on Linu
<neomaking>
is someone there to help me? :)
sinkensabe has joined #ruby
SteveTheMare has joined #ruby
<jhass>
just ask your question, if somebody has the answer you'll notice ;)
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamjleonard has quit [Ping timeout: 264 seconds]
Elite6809 has quit [Quit: WeeChat 1.1.1]
bim has joined #ruby
<neomaking>
i dont get how to start using Ruby on linux, i'm a real beginner there and i dont know what to use, like an IDE or something like this
bim has quit [Remote host closed the connection]
<jhass>
most people just use their favorite text editor with syntax highlighting and a terminal
<havenwood>
neomaking: What distro of GNU/Linux are you on?
sinkensabe has quit [Remote host closed the connection]
<neomaking>
Mint 17.1
<neomaking>
seems
Sawbones has joined #ruby
sinkensabe has joined #ruby
<neomaking>
A friend of mine told me to use RVM, idk what's this :/
Ellis has quit [Quit: Ellis]
sevvie has quit [Ping timeout: 252 seconds]
<FLHerne>
neomaking: KDevelop is a nice IDE and has Ruby parsing
baweaver has quit [Remote host closed the connection]
<FLHerne>
But I've never tried using KDevelop for Ruby :P
momomomomo has joined #ruby
<jhass>
neomaking: what desktop environment did you choose?
<neomaking>
well, ok, and I installed Ruby, nothing to do after using KDvelop?
<neomaking>
I'm using Linux Mint
<jhass>
that has different flavors
<neomaking>
mmmh
<neomaking>
2 sec
<jhass>
cinnamon, MATE, KDE or Xfce
SteveTheMare has quit [Client Quit]
<neomaking>
Cinnamon
<neomaking>
was going to search it :p
SteveTheMare has joined #ruby
sameerynho has joined #ruby
ascarter has joined #ruby
<jhass>
I think that's Gtk oriented? If so just use Gedit and a terminal until you get annoyed by that ;)
<neomaking>
BTW its a totally fresh one, I can change it if it would be easier for me
<jhass>
nah, it's fine
Kricir has joined #ruby
dx7_ has joined #ruby
<neomaking>
Gedit isnt using syntax highlight isnt it?
ruby539 has joined #ruby
Ellis has joined #ruby
<undeadaedra>
it has syntax highlighting
CustosL1m3n has joined #ruby
teddyp1cker has quit []
<neomaking>
Just discovered it
<neomaking>
nice
sgambino has quit [Remote host closed the connection]
<undeadaedra>
if you’re beginning, you may not even need RVM
<undeadaedra>
A recent Linux should ship a recent ruby
Aswebb_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
<undeadaedra>
try ruby -v in a terminal ?
<neomaking>
trying it
Aswebb_ has joined #ruby
beneggett has joined #ruby
A205B064 has joined #ruby
mleung has quit [Quit: mleung]
<ruby539>
Hi everyone! I'm new to these freenode chats
sevvie has joined #ruby
<neomaking>
seems to be a hold ruby
jheg has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
<ruby539>
Discovered them via a post on reddit
<undeadaedra>
neomaking: when, say what it is
A205B064 has quit [Read error: Connection reset by peer]
<undeadaedra>
ruby539: welcome
<neomaking>
1.9 ruby
lxsameer has quit [Ping timeout: 276 seconds]
<undeadaedra>
a bit old indeed
<undeadaedra>
I don’t remember if it’s still supported
A205B064 has joined #ruby
<undeadaedra>
is your Linux up to date ?
<neomaking>
But I already installed the last ruby :'(
decoponio has quit [Quit: Leaving...]
<neomaking>
yes,urs fresh install from 2 3 ho
<undeadaedra>
:/
dx7 has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
<neomaking>
fresrsh install from 2 3 hou
<jhass>
1.9 EOL'd in february
<neomaking>
Oh sorry
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<undeadaedra>
and Mint is the last version too ?
blackmesa has joined #ruby
<neomaking>
yep
<undeadaedra>
:/
<jhass>
neomaking: does mint have the apt-add-repository command?
A205B064 has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass>
(type it into a terminal and see if it says command not found or something else)
<FLHerne>
Mint is based on Ubuntu 14.04, backported security/bugfixes but no major version changes
<neomaking>
seems to have it
mleung has joined #ruby
krisquigley has joined #ruby
<ruby539>
That's interesting that Mint would possibly ship with 1.9
<FLHerne>
So it should be using whatever Ruby (major) version was around this time last year
ldnunes has quit [Quit: Leaving]
<jhass>
neomaking: okay, run sudo apt-add-repository ppa:brightbox/ruby-ng
<undeadaedra>
there are not a lot of distributions which ship this old versions
<jhass>
neomaking: then sudo apt-get update
reinaldob has quit []
<undeadaedra>
even FreeBSD updated their ruby to have recent versions, after staying at 1.8 for soooo long
<havenwood>
a venison, lettuce and tomato sandwich, where the venison is nice and lean and the tomatoes are ripe
<jhass>
heh, you're inside a Gnome shell 3 fork, you should use Gtk3 :P
<neomaking>
yep
<GaryOak_>
havenwood: oh god please stop I'm so hungry
shadoi has quit [Quit: Leaving.]
<FLHerne>
Why would anyone use gtk over qt for a new project? :-/
baroquebobcat has quit [Quit: baroquebobcat]
sohrab has joined #ruby
<undeadaedra>
FLHerne: because they know it and not the other one ?
<jhass>
because it integrates nicely into your DE
<undeadaedra>
Even if Qt is love.
<neomaking>
Actually I'm using Qt on windows with my Ruby project, I wanted more information about this, like a big doc
<undeadaedra>
And integrate into GTK better than GTK does into KDE.
cartothemax2 has quit [Remote host closed the connection]
<undeadaedra>
And into Windows.
<undeadaedra>
And into OS X.
reinaldob has joined #ruby
cr3 has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass>
you can let Gtk render into your browser though :P
lektrik has quit [Ping timeout: 255 seconds]
* undeadaedra
is having a seizure
<neomaking>
Maybe I'm bad, but i just discovered a stylesheet fonction with Qt, what's possible with that? Using every CSS3 args?
quimrstorres has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<neomaking>
or just some
<undeadaedra>
Look in Qt docs
<undeadaedra>
Qt’s CSS is a bit special
bim has joined #ruby
<undeadaedra>
If Qt is installed completely in your system with development tools, you should have Qt Assistant
baroquebobcat has joined #ruby
<FLHerne>
neomaking: They're fairly thin bindings, so Qt's C++ docs will be mostly the same for classes/functions/theming etc
bim has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
djbkd has joined #ruby
<ruby539>
oooooo. new resources!
<undeadaedra>
neomaking: Qt stylesheets are a nice and easy way to customize your Qt application style. However, if you want more control, reimplementing draw(), or creating a custom style allows you to control /everything/
djbkd has quit [Remote host closed the connection]
<undeadaedra>
But I digress
adriancb has quit [Remote host closed the connection]
<ruby539>
nick/dudemanbro
<undeadaedra>
?
djbkd has joined #ruby
<neomaking>
Well it's nice, I have a lot of works
<neomaking>
thanks for your help guys, love you!
AnxiousOnion has joined #ruby
<undeadaedra>
The first night?
<undeadaedra>
You go fast.
<neomaking>
?
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<jhass>
ruby539: close, it's /nick dudemanbro ;)
<undeadaedra>
Ignore me, I’m being silly.
longfeet has joined #ruby
<neomaking>
Maybe I should, or maybe I'm going to follow you
<eam>
interesting to specify an orientation but not a gender, how would that work ...
<undeadaedra>
Only if the bot’s gay then.
<ProteusX>
I have two questions about gem publishing: 1. When extending core classes with your own methods, is it standard practice to check for a method clash? 2. I am working on something that does natural language processing, and as such I need to store the irregularties. Is it unheard of for a gem to include its own database file?
kirun has quit [Remote host closed the connection]
<helpa>
Hi _cgcardona_. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
fryguy9 has quit [Quit: Leaving.]
neanderslob has joined #ruby
<neomaking>
Thanks, I'm going boring enough, have a good night, cya tomorrow!
<jhass>
!mute helpa
doodlehaus has quit [Remote host closed the connection]
<undeadaedra>
you have jhass method, or you can put a shabang on top of your file (#!/usr/bin/env ruby) and make it executable (chmod +x file), then calling it with ./file, neomaking
<undeadaedra>
helpa and ruboto, stop fighting
<eam>
_cgcardona_: you can manually invoke the ruby GC each loop
<eam>
GC.start
<jhass>
ProteusX: then I would recommend to let your users decide whether they want the patch
<_cgcardona_>
eam - awesome i’ll give it a try. thanks.
<neomaking>
Okay undeadaedra
<neomaking>
everything put in note, cya
<jhass>
ProteusX: don't patch on require "yourgem", patch on require "yourgem/core_ext" or something
Sawbones has quit [Remote host closed the connection]
mjuszcza_ has quit []
<mwlang>
undeadaedra: mostly useful for when you take on new clients that have a WordPress site presently, but want to start building more complicated sites.
fryguy9 has quit [Quit: Leaving.]
<jhass>
I'm a a bit surprised it was still free :P
Rollabunna has quit [Remote host closed the connection]
<mwlang>
jhass: hmmm…wordpress_engine?
xenokiller has joined #ruby
Rollabunna has joined #ruby
<mwlang>
or … word_press?
AlphaAtom has quit [Ping timeout: 276 seconds]
<mwlang>
I started to name it rails_acts_as_wordpress. :-o
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
well, renaming the gem might be a bit cumbersome, so Rails::Wordpress
chrishough has joined #ruby
Ellis has quit [Quit: Ellis]
sevvie has quit [Ping timeout: 252 seconds]
ki0 has quit [Remote host closed the connection]
steven43126 has joined #ruby
jerematic has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<jhass>
if we still had the blank plate I probably would have gone for rails_wordpress -> RailsWordpress
mikecmpbll has quit [Quit: ciao.]
Ellis has joined #ruby
ramfjord has joined #ruby
GnuYawk has quit [Ping timeout: 256 seconds]
Megtasti_ has joined #ruby
qhartman has joined #ruby
freerobby has joined #ruby
Aswebb_ has quit []
jerematic has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
Megtastique has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
momomomomo has joined #ruby
steven43126 has quit [Ping timeout: 248 seconds]
<mwlang>
jhass: I could “gem yank” and change it…but not sure it’s really worth it. The guidelines help you deduce better how to “require” the library in order to use…in this case, its a rails engine and no deduction necessary other than listing the gem in the Gemfile.
jenrzzz has quit [Ping timeout: 252 seconds]
<jhass>
bundler uses these rules to compute the require
Centrixx is now known as ChasedSpade
<jhass>
currently your gem needs to be added to a gemfile like this: gem "rails-wordpress", require "word_press"
<jhass>
* require:
jenrzzz has joined #ruby
opes has quit [Max SendQ exceeded]
opes has joined #ruby
opes has quit [Max SendQ exceeded]
opes has joined #ruby
<mwlang>
Ah, I see.
<jhass>
I'd just change the filenames and the namespace :)
<undeadaedra>
_cgcardona_: you looked for circular references ?
<mwlang>
hmmm…speaking of Rails….is there already a top-level Rails namespace? I wouldn’t want to be referencing Rails::WordPress::Post throughout my Rails app code, but I don’t mind WordPress::Post….
jenrzzz has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
ki0 has joined #ruby
opes has quit [Max SendQ exceeded]
<eam>
_cgcardona_: you can walk ObjectSpace to get a rough idea of what's being created
<undeadaedra>
iirc there is one, mwlang
<_cgcardona_>
ok, thanks again. i’ll check it out as well.
<undeadaedra>
ask #RubyOnRails though
opes has joined #ruby
tosbourn has joined #ruby
jconnoll1 has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<mwlang>
undeadaedra: good idea to ask there!
robustus has quit [Ping timeout: 255 seconds]
martin_work has joined #ruby
<undeadaedra>
(Can someone hl me?)
robustus|Off has joined #ruby
colorisco has quit [Ping timeout: 252 seconds]
robustus|Off is now known as robustus
sinkensabe has quit [Remote host closed the connection]
quimrsto_ has quit [Remote host closed the connection]
<jhass>
had it 13 years in school :/
<jhass>
but you're right
ghostmoth has joined #ruby
<shevy>
hey
musashi1 has joined #ruby
<jhass>
je ne parle pas francais
<shevy>
that is longer than you writing ruby code
fabrice31 has joined #ruby
<jhass>
yeah
sargas has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
<Beoran>
shevy, beurre
<Beoran>
butter is beurre in french
<shevy>
hehe
<centrx>
une rubé
snath has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
<shevy>
french is funny :)
bnobu has joined #ruby
<jhass>
ONU
<shevy>
UNO?
<jhass>
still can't get over that one
<jhass>
yeah
FrankD_ has quit [Changing host]
FrankD_ has joined #ruby
<Beoran>
that's due to L'Academie francaiçe, who standardize the French language quite rigidly and very puristically
CodyReichert has joined #ruby
<Beoran>
a byte is an "octet" in french, for example
<jhass>
yeah I know (about the academy)
sevvie has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
<jhass>
I think it's stupid, language is something people develop while speaking it
<jhass>
not something you define
gavinlaking has joined #ruby
reinaldob has quit [Remote host closed the connection]
<jhass>
we have these idiots in germany too, who try to make a fuss about every new word that doesn't sound like prehistoric german
Hijiri has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
<jhass>
luckily fewer people here give a shit about them
hobodave has joined #ruby
adriancb has joined #ruby
marr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
<Beoran>
yeah but in France they're harder to ignore since they're an institute of the state since the time of the kings
gavinlaking has quit [Client Quit]
ClosedGL has joined #ruby
jordsmi has joined #ruby
oddskill is now known as oddskill_away
mengu has quit [Remote host closed the connection]
<mwlang>
jhass: thanks for clueing me in. I’m changing the gem’s name per your suggestion. I didn’t even realize bundler was doing an auto-require based on the suggested naming rules.
<ClosedGL>
Hi folks, not sure if this is the right place to enquire, but is anyone else having problems with rubydocs (yard) not re-generating?
<Mon_Ouie>
Well, byte is byte in French too -- and octet is octet in English
<Mon_Ouie>
It's just the word people use in everyday speech in French is always octet, while in English people always use byte
<jhass>
mwlang: to clarify: bundler is not doing that by default, there's a call to Bundler.require in your config/boot.rb which does that (or was it application.rb? somewhere in the rails app)