__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has quit [Ping timeout: 240 seconds]
wnd has quit [Excess Flood]
herbmillerjr has joined #ruby
dviola has quit [Quit: WeeChat 1.7]
wnd has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
FrankD has quit [Ping timeout: 245 seconds]
noan has joined #ruby
yaewa has quit [Quit: Leaving...]
versigtig has quit [Quit: This computer has gone to sleep]
TheWhip has joined #ruby
<noan>
okay, can't seem to find this in the ruby doc... How does one get the header data of a request in sinatra? It might be the underlying rack objects.
<noan>
found it, headers method on the controller
versigtig has joined #ruby
[ohjn] has quit [Remote host closed the connection]
akkad has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
Cohedrin has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
versigtig has quit [Quit: This computer has gone to sleep]
milardovich has quit [Ping timeout: 240 seconds]
kies has quit [Read error: Connection reset by peer]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby
msg has joined #ruby
jdm_ has quit [Quit: Leaving]
msg is now known as Guest98842
edwinvdgraaf has joined #ruby
milardovich has joined #ruby
Guest98842 has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
versigtig has joined #ruby
__Yiota has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
padi_ has joined #ruby
madgoat has joined #ruby
cschneid_ has joined #ruby
d0nn1e has joined #ruby
madgoat has left #ruby [#ruby]
aspiers has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
JeanCarloMachado has joined #ruby
hahuang61 has joined #ruby
versigtig has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
br0d1n has quit [Quit: Leaving]
cschneid_ has quit [Remote host closed the connection]
ResidentBiscuit has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 240 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
braincrash has quit [Quit: bye bye]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
JeanCarloMachado has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
Rodya_ has joined #ruby
hahuang61 has joined #ruby
cschneid_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
Silthias1 has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 260 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
JeanCarloMachado has joined #ruby
Albiore has quit [Ping timeout: 268 seconds]
urbanmonk has joined #ruby
raul782 has joined #ruby
milardovich has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
urbanmonk has quit [Client Quit]
urbanmonk has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
ta has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dionysus69>
i do have admin priviledges on all those computers
workmad3 has joined #ruby
<dionysus69>
just disabling that ps1 executable protection is too much work. microsoft is stupid
Silthias has quit [Ping timeout: 240 seconds]
<Zarthus>
well yeah, that's why I use linux on my servers :P
<dionysus69>
if it were up to me, i would also
<Zarthus>
regardless, for something portable I tend to run with things installed on the system by default
<dionysus69>
do u know batch scripting :D ? i couldnt find a way to open file with just an extension
blackmes1 has joined #ruby
<Zarthus>
I know it well enough to not want to use it again :P
<dionysus69>
:D
<Zarthus>
most of my batch scripting is limited to @echo off\nruby -e " ... " :P
<dionysus69>
ye i am forced to use it just now and i am hesitant
Silthias1 has joined #ruby
RickHull has joined #ruby
<Zarthus>
windows probably has something that's installed on every system that doesn't suck
JeanCarloMachado has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 255 seconds]
yeticry has joined #ruby
<dionysus69>
nope
<dionysus69>
its just batch and powershell
<dionysus69>
batch is the only scripting language preinstalled on windows
<Zarthus>
what about running a precompiled .exe?
JeanCarloMachado has joined #ruby
<elomatreb>
There's also the Windows Javascript Host, but you asked for something that doesn't suck
<Zarthus>
lol
jsrn has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
<dionysus69>
ye but that means i would have to download whole exe creating env just to create a thiing that replaces a string in a file :D
<dionysus69>
sounds like hell
<Zarthus>
do you?
yeticry_ has quit [Ping timeout: 240 seconds]
<Zarthus>
i thought you could just compile a c# program to an .exe and it would wor
blackmes1 has quit [Ping timeout: 255 seconds]
harai_ has quit [Ping timeout: 240 seconds]
<dionysus69>
ye but that needs visual studio
<dionysus69>
which is billion gigabytes
<Zarthus>
in 2017 where trillions of gigabytes go for a few pounds, that's not too bad
<dionysus69>
anyways, i ll try do something with batch
msg has joined #ruby
msg is now known as Guest53532
eblip has joined #ruby
eb0t has quit [Ping timeout: 260 seconds]
ta has joined #ruby
teclator has joined #ruby
hutch34 has joined #ruby
Silthias has joined #ruby
Silthias2 has joined #ruby
nettoweb has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
Silthias1 has quit [Ping timeout: 260 seconds]
Blaze_Boy has joined #ruby
wald0 has quit [Quit: Lost terminal]
Silthias has quit [Ping timeout: 260 seconds]
<Silthias2>
Morning, I'm attempting to do a pure ruby check of a remote servers port being open, and have this currently: https://gist.github.com/anonymous/f5ed77ab667beacb00b74dadbaea1744, but it seems to always fall into the rescue. Maybe I'm taking teh wrong approach but wondering if anyone can offer a suggestion on how to resolve my issue/better way of implmenting it. (the port is up/open when testing via bash shell)
bruce_lee has joined #ruby
benlieb has quit [Quit: benlieb]
edwinvdgraaf has joined #ruby
workmad3 has quit [Quit: Lost terminal]
Rodya_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hinbody has quit [Ping timeout: 268 seconds]
<rob__>
Silthias2: did you require 'socket'?
ponga has joined #ruby
<rob__>
Silthias2: what happens if you run just the TCPSocket.new(...) part in irb/pry?
mim1k has joined #ruby
<rob__>
Silthias2: also, i think you want '.closed?' method
blackmes1 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 268 seconds]
ferr1 has joined #ruby
TomyWork has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
agit0 has quit [Ping timeout: 260 seconds]
bigkevmcd has joined #ruby
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaveTaboola has joined #ruby
workmad3 has joined #ruby
nhhc has joined #ruby
DaveTaboola has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
DaveTaboola has joined #ruby
Albiore has joined #ruby
dmitrysinina[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
ryantriangles[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
h42r62[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
Xi[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
kp666[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Kahraman has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Kahraman has joined #ruby
<Silthias2>
sorry, got sidetracked. Yes, Its required and I get the socket object create, just returns nil. will try with the correct mothod and see if that is my stupidity
toretore has joined #ruby
pandaant has joined #ruby
jaruga______ has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
jaruga______ is now known as jaruga_______
Blaze_Boy has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Blaze_Boy has joined #ruby
cibs has joined #ruby
psychicist__ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
<Silthias2>
rob_: seems it was my timeout that was causing issues, I dropped that bit and it came to life
JeanCarloMachado has joined #ruby
tvw has joined #ruby
hutch34 has joined #ruby
braunr has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
moei has joined #ruby
Blaze_Boy has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
Blaze_Boy has joined #ruby
Albiore has quit [Remote host closed the connection]
Albiore has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
braunr has left #ruby [#ruby]
JeanCarloMachado has joined #ruby
edwinvdgraaf has joined #ruby
jameser has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
dnewkerk has quit [Quit: dnewkerk]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
<GeorgesLeYeti>
I want to convert a HH:MM:SS in Seconds. I try to use strptime Date.strptime(Time.now.strftime("%H:%M:%S"), "%H:%M:%S")
<GeorgesLeYeti>
But it returns ArgumentError: invalid date
[ohjn] has joined #ruby
<GeorgesLeYeti>
With DateTime or Time it works but it return the date too
<GeorgesLeYeti>
so in secondes I got : 1487588216
Rodya_ has quit [Ping timeout: 240 seconds]
<apeiros>
Time represents a datetime, and dates are not durations
<apeiros>
you could see that from 1487588216 being far too large (there's only 86400 seconds in a day)
<apeiros>
split, map to_i, multiply with 3600 and 60, and sum the results.
<GeorgesLeYeti>
apeiros, Ok ty
<GeorgesLeYeti>
I'll try
Blaze_Boy has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 255 seconds]
James123 has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
nOwz has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
ifctj has joined #ruby
nettoweb1 has joined #ruby
Snowy has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
djbkd has quit []
AndChat-262656 has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
Blaze_Boy has joined #ruby
AndChat|262656 has quit [Ping timeout: 260 seconds]
Xentil has joined #ruby
AndChat-262656 has quit [Ping timeout: 255 seconds]
Blaze_Boy has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
goepsilongo has quit [Quit: leaving]
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 240 seconds]
DaveTaboola has joined #ruby
ldnunes has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
tvw has joined #ruby
nOwz has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eblip has quit [Quit: WeeChat 1.4]
hutch34 has quit [Ping timeout: 268 seconds]
gdonald has quit [Read error: Connection reset by peer]
tau has joined #ruby
gdonald has joined #ruby
Blaze_Boy has joined #ruby
agent_white has quit [Quit: agent_white]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
Blaze_Boy has quit [Ping timeout: 268 seconds]
Mortomes|Work has joined #ruby
nettoweb has joined #ruby
nettoweb1 has joined #ruby
JeanCarloMachado has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
eblip has joined #ruby
Guest53532 has quit [Remote host closed the connection]
nettoweb has joined #ruby
eb0t has quit [Ping timeout: 240 seconds]
msg has joined #ruby
Rodya_ has joined #ruby
ifctj has quit [Ping timeout: 240 seconds]
msg is now known as Guest83846
nettoweb1 has quit [Ping timeout: 240 seconds]
TheWhip has quit [Remote host closed the connection]
insanedreamer has quit [Quit: insanedreamer]
eblip has quit [Ping timeout: 240 seconds]
eblip has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
Blaze_Boy has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
Blaze_Boy has quit [Remote host closed the connection]
Blaze_Boy has joined #ruby
haraoka has quit [Ping timeout: 260 seconds]
Snowy has quit [Ping timeout: 255 seconds]
Snowy has joined #ruby
braincrash has joined #ruby
tau has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GeorgesLeYeti has quit [Quit: Leaving]
bruce_lee has quit [Remote host closed the connection]
Guest83846 has quit [Remote host closed the connection]
TheWhip has joined #ruby
saladus has joined #ruby
kiltzman has joined #ruby
saladus has quit [Client Quit]
schickung has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
hutch34 has quit [Ping timeout: 240 seconds]
Blaze_Boy has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
schickung has quit [Quit: schickung]
psychicist__ has joined #ruby
nertzy has joined #ruby
tyang has joined #ruby
rafadc has quit [Quit: Bye!]
lupine has quit [Ping timeout: 240 seconds]
Snowy has quit [Remote host closed the connection]
blackmes1 has joined #ruby
Snowy has joined #ruby
lele has quit [Ping timeout: 252 seconds]
stokachu has quit [Changing host]
stokachu has joined #ruby
lupine has joined #ruby
edwinvdgraaf has joined #ruby
blackmes1 has quit [Client Quit]
braincrash has quit [Ping timeout: 240 seconds]
lele has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
nertzy has quit [Ping timeout: 240 seconds]
Snowy has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
synthroid has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
synthroi_ has joined #ruby
davezd has joined #ruby
msg has joined #ruby
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
msg is now known as Guest16319
nadir has quit [Quit: Connection closed for inactivity]
DaveTaboola has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
nicoulaj has joined #ruby
Rodya_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 240 seconds]
Blaze_Boy has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
urbanmonk has joined #ruby
mikecmpb_ has joined #ruby
pandaant has quit [Remote host closed the connection]
eb0t has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
urbanmonk has quit [Client Quit]
bkxd has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
Guest16319 has quit [Remote host closed the connection]
harai_ has joined #ruby
mrgrieves has joined #ruby
synthroi_ has quit [Remote host closed the connection]
mradmacher has quit [Quit: WeeChat 1.4]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
synthroid has joined #ruby
harai_ has quit [Ping timeout: 240 seconds]
jose_leeto has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
squ has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
troulouliou_div2 has joined #ruby
hutch34 has joined #ruby
banisterfiend has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
harfangk has joined #ruby
msg has joined #ruby
msg is now known as Guest2521
edwinvdgraaf has joined #ruby
jameser has quit [Max SendQ exceeded]
senayar has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
last_staff has quit [Quit: last_staff]
jameser has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
rafadc has joined #ruby
RickHull has quit [Quit: Leaving]
Definity has joined #ruby
senayar has quit [Ping timeout: 260 seconds]
opt9 has quit [Quit: Bye bye]
gdonald has quit [Read error: Connection reset by peer]
quiqua has joined #ruby
gdonald has joined #ruby
padi_ has joined #ruby
opt9 has joined #ruby
mim1k has joined #ruby
Rodya_ has joined #ruby
padi_ has quit [Ping timeout: 260 seconds]
Guest2521 has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 255 seconds]
al2o3-cr has joined #ruby
aspiers has joined #ruby
houhoulis has joined #ruby
rafadc_ has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
tlaxkit has joined #ruby
opt9 has quit [Quit: Bye bye]
Mortomes|Train has joined #ruby
mim1k has joined #ruby
skweek has quit [Remote host closed the connection]
mikecmpb_ has quit [Ping timeout: 268 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
opt9 has joined #ruby
jameser has joined #ruby
shwouchk has joined #ruby
skweek has joined #ruby
__Yiota has joined #ruby
jhack has joined #ruby
ifctj has joined #ruby
opt9 has quit [Quit: Bye bye]
opt9 has joined #ruby
Pumukel has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davezd has quit [Quit: Leaving]
cibs has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
Rr4sT has joined #ruby
Alina-malina has joined #ruby
cibs has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
ifctj has quit [Ping timeout: 260 seconds]
DLSteve has joined #ruby
rafadc_ has quit [Ping timeout: 260 seconds]
Alina-malina_ has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
hutch34 has joined #ruby
nertzy has quit [Ping timeout: 260 seconds]
hinbody has joined #ruby
Alina-malina_ has quit [Changing host]
Alina-malina_ has joined #ruby
TheWhip has quit [Remote host closed the connection]
eblip has quit [Quit: WeeChat 1.4]
Derperperd has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ponga has quit [Quit: Connection closed for inactivity]
ltp_ has joined #ruby
rprimus has joined #ruby
danst__ has joined #ruby
milardovich has joined #ruby
rprimus is now known as Guest27061
Alina-malina_ is now known as Alina-malina
skweek has quit [Ping timeout: 260 seconds]
tabakhase__ has joined #ruby
mmasaki has quit [Ping timeout: 240 seconds]
noodle has quit [Ping timeout: 240 seconds]
DaveTaboola has quit [Ping timeout: 240 seconds]
phreakocious has quit [Ping timeout: 240 seconds]
netwoodle is now known as noodle
zenguy_pc has quit [Ping timeout: 240 seconds]
ionte has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
gf3 has quit [Ping timeout: 240 seconds]
ljarvis_ has quit [Ping timeout: 240 seconds]
hxegon_ has quit [Ping timeout: 240 seconds]
balo_ has quit [Ping timeout: 240 seconds]
papercod1 has quit [Ping timeout: 240 seconds]
tabakhase has quit [Ping timeout: 240 seconds]
IonutVan_ has quit [Ping timeout: 240 seconds]
mburns has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 240 seconds]
aufi has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
millerti has quit [Ping timeout: 240 seconds]
jsrn has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
andikr has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 240 seconds]
Guest64981 has quit [Ping timeout: 240 seconds]
djellemah has quit [Ping timeout: 240 seconds]
Immune has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 240 seconds]
KrzaQ has quit [Ping timeout: 240 seconds]
rprimus_ has quit [Ping timeout: 240 seconds]
ichthys has quit [Ping timeout: 240 seconds]
boshhead has quit [Ping timeout: 240 seconds]
danst_ has quit [Ping timeout: 240 seconds]
ltp has quit [Ping timeout: 240 seconds]
rwb1 is now known as rwb
KrzaQ- has joined #ruby
mmasaki has joined #ruby
zenguy_pc has joined #ruby
mburns has joined #ruby
Xeago has joined #ruby
djellemah has joined #ruby
aufi has joined #ruby
aupadhye has joined #ruby
jsrn has joined #ruby
ionte has joined #ruby
Immune has joined #ruby
[ohjn] has quit []
papercod1 has joined #ruby
dasher00 has joined #ruby
IonutVan_ has joined #ruby
xen0fon has joined #ruby
horst has joined #ruby
phreakocious has joined #ruby
<hillmonster>
i'm trying to google a chart of the concepts i will need to know to master ruby and i'm coming up short
KrzaQ- has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
<apeiros>
object orientation, functional programming, meta-programming come to mind
tlaxkit has quit [Quit: ¡Adiós!]
<hillmonster>
thank you
<hillmonster>
i wish there was a handy reference
<apeiros>
man ruby
<apeiros>
iirc it mentions a couple of concepts
<hillmonster>
something like a list or something... i can't install anything on this computer
<elomatreb>
The design considerations of Ruby could be interesting too, as they're what separates Ruby from other languages (e.g. principle of least surprise)
Guest64981 has joined #ruby
gf3 has joined #ruby
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
<hillmonster>
i'm coming from javascript and i like javascript but i don't like node
<apeiros>
I have to admit that I find principle of least surprise, hm, how to say? at least misleading, I guess?
<apeiros>
not a fan of it
midacts has joined #ruby
KrzaQ has joined #ruby
<elomatreb>
Why? I very much like the idea, I am a bit sad there are things in Ruby that don't adhere
<elomatreb>
E.g. Integer division
<hillmonster>
i hate how there are all these politics in programming
Rodya_ has joined #ruby
<apeiros>
elomatreb: see, that's why
<apeiros>
*you* are surprised
tabakhase__ has joined #ruby
tabakhase__ has quit [Changing host]
<apeiros>
I was not
<apeiros>
least surprise is very subjective
tabakhase__ is now known as tabakhase
<apeiros>
and in ruby, it's mostly *matz* least surprise ;-)
<apeiros>
it's good if your thought patterns align with matz', then you'll less often be surprised
<elomatreb>
True, although I generally understand/assume that it refers to people with no previous programming experience
<apeiros>
(there are certainly other places where I was surprised and you didn't find it surprising)
jsrn has quit [Quit: Leaving]
<hillmonster>
why not just expand thought patterns to eveyrone's
negatifze has joined #ruby
<hillmonster>
that's why i'm trying to learn ruby and ruby on rails because i don't like the thought pattern behind node
<elomatreb>
Thought pattern behind node?
<hillmonster>
callbacks and what not
<apeiros>
elomatreb: I understand. but it's rather difficult. when I was still working on my toy language, I made similar considerations. f.ex. the literal `1.23` was not a float in my lang, but the equivalent to BigDecimal
<hillmonster>
stack tracing in node is not nice
<hillmonster>
even with promises
Rodya_ has quit [Remote host closed the connection]
<apeiros>
but there was still enough things to be surprised even with that change
<Papierkorb>
elomatreb: "Every problem in programming can be solved by adding another layer of callbacks" ;)
<elomatreb>
I don't mean this in a bad way, my impression was that node development is very free, you design your own code structure
Rodya_ has joined #ruby
mark_66 has quit [Remote host closed the connection]
<hillmonster>
well i guess i'm not good enough
zzz has joined #ruby
Burgestrand has quit [Quit: Closing time!]
antgel has quit [Ping timeout: 240 seconds]
zzz is now known as Guest89468
krandi has quit [Remote host closed the connection]
<elomatreb>
apeiros: Well, understanding that there are multiple ways to represent fractions is something different than being told "computers are good at calculating" but seeing that 1 / 2 returns 0
<Silthias2>
I'm needing to provide a local gem repo for a system, and have a few gems I need to upload (using simply gem server not geminabox), whats the best way to get the gemspec files that seem to be required?
govg has joined #ruby
<apeiros>
elomatreb: integer domain is something I learned in elementary school :-/
<apeiros>
(ok, granted the rules for how domains work were in higher ed)
mtkd has quit [Ping timeout: 260 seconds]
<apeiros>
but I think we go OT :D
<elomatreb>
I know how it works yet it still trips me up sometimes when I forget to .to_f
<hillmonster>
can all of ruby be learned by the man page?
mtkd has joined #ruby
<hillmonster>
can all of ruby be learned from* the man page?
<apeiros>
elomatreb: .fdiv, .quo
<havenwood>
hillmonster: No, the manpage does not suffice.
<hillmonster>
=(
<havenwood>
Deprecate Float!
<hillmonster>
is there a language where the man page suffices?
<elomatreb>
The pickaxe book I mentioned is basically like a big manpage, it goes over almost everything
<hillmonster>
i'll be sure to check it out
Guest89468 has quit [Client Quit]
<hillmonster>
what doesn't it cover?
<elomatreb>
There's more to programming Ruby (any language really) than knowing the language
<elomatreb>
It mainly deals with the language itself and fairly low-level idioms
rwb1 has joined #ruby
Sammichmaker has joined #ruby
<hillmonster>
can you please elaborate on that?
<elomatreb>
It doesn't cover how you work with libraries for example, doesn't even mention gems
rwb has quit [Ping timeout: 240 seconds]
rwb1 is now known as rwb
<elomatreb>
Design Patterns (Buzzword!) are more important in Ruby than in most other languages since you're very free to do design your code, with that comes more room to do stupid stuff
milardovich has quit []
TomyWork has quit [Ping timeout: 240 seconds]
<elomatreb>
*free in how to design your code
Polarina has quit [Ping timeout: 252 seconds]
<hillmonster>
i like to have room to do stupid stuff because i like to get in petty arguments with other developers about things
<hillmonster>
i like being the naysayer
harai_ has joined #ruby
<hillmonster>
everyone benefits because it forces everyone to think about the question in hand and explores lots of possibilities
<hillmonster>
so that's nice to know about ruby
<hillmonster>
i love the syntax
<hillmonster>
i love how everything is an object
raspado has joined #ruby
jdm has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
harai_ has quit [Ping timeout: 240 seconds]
szulak has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
colegatron has quit [Ping timeout: 260 seconds]
montanonic has joined #ruby
horst has quit [Quit: horst]
User458764 has joined #ruby
nettoweb has joined #ruby
Polarina has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
heftig has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 268 seconds]
A124 has quit [Read error: No route to host]
Derperperd has quit [Ping timeout: 260 seconds]
Guest75214 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 240 seconds]
d0nn1e has quit [Ping timeout: 255 seconds]
d0nn1e has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
aufi has quit [Quit: Leaving]
msg has joined #ruby
msg is now known as Guest48331
opt9 has quit [Ping timeout: 260 seconds]
tyang__ has joined #ruby
Guest48331 has quit [Remote host closed the connection]
<orion>
Hi. Is "s.scan(/../).map { |x| x.hex.chr }.join" the most efficient way of converting a hex string to a byte string?
rakm has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
montanonic has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
raspado has quit [Quit: Leaving...]
mim1k has joined #ruby
<sparr>
what would cause print to not print anything? something seems to be suppressing console output from inside a library
renchan has quit [Quit: Leaving...]
<apeiros>
orion: probably not. pack/unpack is almost certainly more efficient.
<havenwood>
sparr: Does `$stdout == STDOUT`?
v1k1ng has joined #ruby
<sparr>
good question. how might I check, without being able to print?
padi_ has joined #ruby
v1k1ng has left #ruby [#ruby]
mim1k has quit [Ping timeout: 240 seconds]
<apeiros>
orion: also I think your code does the opposite of what you claim :)
<apeiros>
ah, no, sorry
<havenwood>
sparr: STDOUT.puts
br0d1n has joined #ruby
Lord_of_Life has quit [Excess Flood]
<sparr>
thanks
elifoster has joined #ruby
dionysus70 has joined #ruby
padi_ has quit [Ping timeout: 255 seconds]
aspiers has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
nchambers has quit [Quit: ZNC 1.6.3 - http://znc.in]
jonwiththewind^ has quit [Quit: Goodbye all]
Lord_of_Life has joined #ruby
shwouchk has quit [Quit: Connection closed for inactivity]
Silthias2 has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
jaruga_______ has quit [Quit: jaruga_______]
jottr has joined #ruby
<sparr>
also: stupid integer division
opt9 has joined #ruby
mim1k has joined #ruby
DTZUZU has joined #ruby
c0mrad3 has joined #ruby
opt9 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
<orion>
apeiros: Thanks
renchan has joined #ruby
anisha has joined #ruby
manjaro-kde5- has quit [Ping timeout: 255 seconds]
reverberations has joined #ruby
orion has left #ruby [#ruby]
Anonymoose2 has quit [Ping timeout: 240 seconds]
boombox_ has joined #ruby
Derperperd has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
FrankD_ has quit [Ping timeout: 268 seconds]
last_staff has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
manjaro-kde5- has joined #ruby
singalaut has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 260 seconds]
singalaut has joined #ruby
manjaroi3 has joined #ruby
manjaroi3 is now known as abelnor
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
case__ has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
jdm has joined #ruby
last_staff has joined #ruby
boombox_ has quit [Remote host closed the connection]
RickHull has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
harai_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
last_staff has quit [Ping timeout: 240 seconds]
OMGtechy has joined #ruby
manjaro-kde5- has quit [Ping timeout: 255 seconds]
br0d1n has quit [Quit: Leaving]
geekb4ck_ has joined #ruby
boshhead_ is now known as boshhead
msg has joined #ruby
msg is now known as Guest73959
last_staff has joined #ruby
ecuanaso has joined #ruby
<geekb4ck_>
hello. i have code that works when i step through it with byebug but won't work when i run it through my rails stack. is there some buffering i can disable or something else i'm missing? http://pastebin.ca/3770098
<geekb4ck_>
my code hangs when it writes to the socket. the data is never received at the other end.
abelnor has quit [Ping timeout: 260 seconds]
jtdoncas has joined #ruby
urbanmonk has joined #ruby
GGMethos has quit [Ping timeout: 252 seconds]
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
last_staff has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
opt9 has joined #ruby
scrooloose has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
radic has joined #ruby
last_staff has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
sjums_ has joined #ruby
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
rafadc has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BytesAndCoffee has left #ruby [#ruby]
geekb4ck_ has quit [Ping timeout: 260 seconds]
jottr has quit [Quit: WeeChat 1.7]
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
sjums_ is now known as sjums
Gasher has joined #ruby
edwinvdgraaf has joined #ruby
padi_ has joined #ruby
last_staff has quit [Remote host closed the connection]
duderonomy has joined #ruby
case__ has joined #ruby
last_staff has joined #ruby
JeanCarloMachado has joined #ruby
Derperperd has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
padi_ has quit [Ping timeout: 260 seconds]
padi_ has joined #ruby
szulak has joined #ruby
last_staff has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
montanonic has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
davezd has joined #ruby
last_staff has joined #ruby
synthroid has quit []
last_staff has quit [Client Quit]
padi_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elementaru has joined #ruby
boombox_ has joined #ruby
SirOliver has joined #ruby
SirOliver has quit [Client Quit]
User458764 has joined #ruby
mwlang has joined #ruby
opt9 has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
enterprisey has joined #ruby
geekb4ck_ has joined #ruby
lxsameer has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
jtdoncas has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
opt9 has joined #ruby
Cohedrin has joined #ruby
ifctj has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
aspiers has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
jhack has quit [Quit: jhack]
elifoster has quit [Quit: class]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
last_staff has joined #ruby
JoshS has quit [Quit: Leaving]
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warrior_venom has joined #ruby
warrior_venom has left #ruby [#ruby]
aspiers has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
chudi has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djellemah_ has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.5]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
bmurt has joined #ruby
millerti has joined #ruby
__Yiota has joined #ruby
montanonic has joined #ruby
houhoulis has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe has joined #ruby
User458764 has joined #ruby
edwinvdgraaf has joined #ruby
ecuanaso has joined #ruby
Burgestrand has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
mistym- has joined #ruby
FrankD has joined #ruby
Burgestrand has quit [Client Quit]
jtdoncas has joined #ruby
Burgestrand has joined #ruby
elifoster has joined #ruby
ldnunes has quit [Quit: Leaving]
gusrub has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
mwlang has quit [Quit: mwlang]
Cohedrin has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
FrankD has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renchan has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
rwb has quit [Ping timeout: 240 seconds]
zeroDi has quit [Quit: WeeChat 1.7]
stomar has quit [Quit: Konversation terminated!]
aspiers has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cisco has quit [Quit: Leaving.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cisco has joined #ruby
jhack has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Remote host closed the connection]
opt9 has quit [Ping timeout: 240 seconds]
matthewd has quit [Ping timeout: 260 seconds]
elementaru has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
gusrub has quit [Remote host closed the connection]
ifctj has quit [Ping timeout: 255 seconds]
matthewd has joined #ruby
geekb4ck_ has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
nowhereman has joined #ruby
gusrub has quit [Remote host closed the connection]
boombox_ has joined #ruby
kht has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
opt9 has joined #ruby
K1WIZ has joined #ruby
SteenJobs has joined #ruby
<K1WIZ>
Hi all, I'm having a bit of trouble with .ini files in ruby, I could use some help. basically the properties in my .ini file are: Option1=value when I use the inifile gem, it writes out the property as: Option1 = value (white spaces on both sides of = sign. How can I use the gem without inserting the spaces? my app wont work with the spaces.
boombox_ has quit [Remote host closed the connection]
ecuanaso has joined #ruby
workmad3 has joined #ruby
montanonic has joined #ruby
gloscombe_ has joined #ruby
wilbert has quit [Ping timeout: 268 seconds]
<apeiros>
K1WIZ: either it's configurable, or you need another gem, or you'll have to do it yourself. ini files aren't that complex, shouldn't be rocket science.
KCmetro has joined #ruby
tomphp has joined #ruby
<K1WIZ>
apeiros: I'm new to ruby, how would the inifile gem be configurable to not add whitespaces around the = sign?
<apeiros>
K1WIZ: it'd be mentioned somewhere in its docs. but I took a look, the inifile gem doesn't have any such config.
<K1WIZ>
apeiros: I'm not sure I understand what your proposing. Here's a paste detailing the issue with processing .ini files: http://pastebin.com/AHKw7kXW
<ruby[bot]>
K1WIZ: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros>
K1WIZ: I'm proposing you provide the author of the inifile gem with an improvement
<jef_>
apeiros: so in this case ^ is just used as delimiter
<apeiros>
this is done by cloning his repository, changing the relevant code (3 lines with the suggestion I made), pushed to your repository and then you can make a pull request on github, so the author can pull in your change
<apeiros>
jef_: correct
<jef_>
that's why I was confuse thank you ;)
<apeiros>
jef_: %Q accepts a lot of signs as delimiter, it also exists without the Q. I use %{} relatively often
<elifoster>
apeiros: Is there any reason to use %{} over ""? I can't remember because I've never used %{}.
K1WIZ has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
<apeiros>
ini file "standard" isn't that strong in that regard. it's definitively an ini file. but the parser of the program seems to be narrow in what it accepts.
john__ is now known as K1WIZ
<apeiros>
elifoster: sometimes less annoying wrt escaping
<ruby[bot]>
apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<elifoster>
ah i see
<apeiros>
hrmpf, eval.in seeming to error out more often lately
jef_ has quit [Quit: leaving]
<matthewd>
Hmm. Fair enough, though that sounds pretty descriptivist to me.
johnzorn has joined #ruby
<sparr>
I've written a few hundred lines of ruby code and I'd like to get someone to peek at it and point out places where I could be doing things more the-ruby-way, where I might have shoehorned in expectations and experience from other languages. Are there ruby communities/forums where that's appropriate to ask for?
<apeiros>
sparr: put it into a gist and ask here :)
<havenwood>
sparr: This is a good place to ask. Show us a link to your gist?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<K1WIZ>
apeiros: so you're recommending I make the lines look like this: "#{param}#{@param}#{escape_value val}"}
<apeiros>
K1WIZ: correct
<K1WIZ>
wicked!
SteenJobs has quit [Quit: SteenJobs]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<K1WIZ>
on a typical debian installation of ruby I installed the inifile gem, where would the inifile.rb be located *usually?
Slinky_Pete has joined #ruby
<matthewd>
K1WIZ: `gem contents inifile`
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
don't edit that, though
Rodya_ has quit [Remote host closed the connection]
SteenJobs has joined #ruby
User458764 has joined #ruby
<K1WIZ>
apeiros: found it in /var/lib/gems/1.9.1/gems/inifile-3.0.0/lib now why not edit?
<apeiros>
as said, the process is: 1. install git, 2. `cd /whatever/dir/you/want`, 3. `git clone https://github.com/TwP/inifile.git` 4. edit
<apeiros>
K1WIZ: why not edit that: it'll be gone whenever you update or reinstall
<apeiros>
K1WIZ: also you can't provide that to the original author
<K1WIZ>
I didn't install ruby via git. I used Debian's repo.
__Yiota has joined #ruby
<apeiros>
5. `gem build *.gemspec` 6. `gem install *.gem` -- now you have your edited gem installed
<apeiros>
that doesn't matter
__Yiota has quit [Client Quit]
<apeiros>
unless debian broke rubygems to the point of not being able to install local gems, the workflow above will just work
c0mrad3 has quit [Quit: Connection closed for inactivity]
<apeiros>
the steps after step 6 are providing the changes back to the author. 7. `git add -A`, `git commit -m 'Enable key/value to be separated without space.'`, `git push`.
<K1WIZ>
apeiros: I'll try what you're suggesting. I hope I don't screw it up.
<apeiros>
K1WIZ: you can't break anything
<apeiros>
oh, do you have a github account?
<K1WIZ>
i do not.
<K1WIZ>
like I said - I'm very new to programming, and ruby.
SteenJobs has quit [Client Quit]
<K1WIZ>
but I'm willing to learn best practices.
<apeiros>
ok. I think for a pull request on github, you'll need one. there are ways to provide the patch in other forms, but I don't know those.
<apeiros>
as you won't be able to push directly to TwP's repo
<K1WIZ>
I was able to pull it. Making the changes now.
war_pigs has joined #ruby
<apeiros>
you can do the github part any time later too. you'll have to add your clone on github as a remote repository to push there. nothing too complicated (albeit maybe a bit much if you're new to all that)
tvw has joined #ruby
SteenJobs has quit [Client Quit]
tvw has quit [Client Quit]
tvw has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<K1WIZ>
Ok, signed up on github
kht has quit [Ping timeout: 260 seconds]
mwlang has quit [Quit: mwlang]
<K1WIZ>
cd ..
<K1WIZ>
oops
<apeiros>
:D
bkxd has quit [Ping timeout: 255 seconds]
last_staff has quit [Quit: l8r]
kappy has quit [Remote host closed the connection]
<Slinky_Pete>
Best way to silence deprecations warnings?
Derperperd has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
<sparr>
so far I've been trying to honor rubocop style suggestions, although some of them drive me crazy
<matthewd>
Slinky_Pete: `$VERBOSE = nil`
LegenTeri has joined #ruby
SteenJobs has joined #ruby
nettoweb1 has joined #ruby
<apeiros>
sparr: hm, most of that is DSL code, hard to change that. some thoughts: $globals are bad, avoid them. You used Constants in other places, those are already better. the other part is that I'd try to write some classes. but I don't know squib. So no idea how that interacts.
<matthewd>
sparr: rubocop is a great tool. It's default configured rules, otoh... :| (IMO)
nettoweb has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
gusrub has joined #ruby
<apeiros>
heh, similar feelings towards rubocops defaults
<Radar>
thirded
<Radar>
I reckon though that I would have different opinions to apeiros and matthewd though wrt to which rubocop rules to enable/disable
<matthewd>
Radar: I'm sure we'd differ on a bunch of details... but I truly think there are a bunch of rules that we'd agree on, or at least accept with less eyebrow-raising than the current defaults
jtdoncas has quit [Ping timeout: 260 seconds]
<Radar>
matthewd: yup, absolutely :)
<matthewd>
The ones that bug me are far more often "but.. no-one actually does it that way" than "I personally prefer X"
<Radar>
For #1: there's been several times where I wanted to do something if the value of a variable was either there or nil. !! allows me to work with a true/false value rather than truthy/nil
<Radar>
For #2: I am an experienced Rubyist and I know that proc.(arg1, arg2) is the same as proc.call(arg1, arg2). Teaching other people that is not difficult.
jenrzzz has quit [Ping timeout: 268 seconds]
<apeiros>
re bangbang: in a control expression, I agree. but when returning values, I want true/false, not leak inner/private state
<Radar>
And that's all I can really find to talk about. I'm sure if you gave me an unconfigured Rubocop on a large codebase I could find more things to talk about ;)
<matthewd>
Yeah, that's a specific frustration I have with it -- blending real "no-one ever does this differently; you should always do exactly this" with "there's technically this slightly nicer way of spelling this thing"
SteenJobs has quit [Quit: SteenJobs]
Snickers has quit [Quit: Snickers]
cschneid_ has quit [Remote host closed the connection]
<Radar>
I think the proc.call vs proc.(args) is tainted by my (new) experience with the dry-rb set of gems which prefers that style.
<K1WIZ>
apeiros & Radar - thank you both for your help. I learned quite a bit today
<ruby[bot]>
al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<anotherpi>
al2o3-cr: did'nt know it was possible
<Radar>
anotherpi: enter is not space bar
jhack has quit [Quit: jhack]
Slinky_Pete has quit [Remote host closed the connection]
Kaycee has joined #ruby
<Kaycee>
hello?
<anotherpi>
`A = 1; def A; return 2; end;` A return 1 then A() return 2
<anotherpi>
crazy Ruby
<adam12>
Kaycee: o/
<Radar>
Kaycee: good morning
Qommand0r has quit [Quit: WeeChat 1.7]
<Kaycee>
good afternoon
<Kaycee>
<Radar>
kht has joined #ruby
<Kaycee>
This is my first time using an IRC
<al2o3-cr>
anotherpi: it's just a singleton method on Kernel/Object
<adam12>
Kaycee: Welcome.
SCHAAP137 has quit [Read error: Connection reset by peer]
<Kaycee>
Much appreciated <adam12>
cschneid_ has quit [Ping timeout: 240 seconds]
<adam12>
Kaycee: You can leave the brackets off. Just a nickname highlights for most.
<Kaycee>
adam12 ohh ok i gotcha
<adam12>
Kaycee: Bingo.
<Kaycee>
adam12 thanks!
<Kaycee>
is the list on the right side of the interface a list of the users logged on to this channel?
SCHAAP137 has joined #ruby
Guest73959 has quit [Remote host closed the connection]
<anotherpi>
al2o3-cr: yep, but it's tricky for me, it's playing with the parser :p
<anotherpi>
thank you for your answer
<al2o3-cr>
there's a few exceptions String, Hash, Array etc... where methods names are constant
<anotherpi>
it was my Ruby brainf*** of today
<anotherpi>
but if i do `A()`, i explicitly say "hey, it's a method bro."
<anotherpi>
if i do `A`, Ruby find a constant first
<anotherpi>
al2o3-cr: but it refer a class, not a method… ?
<anotherpi>
`String.class` #=> Class
jenrzzz_ has quit [Ping timeout: 240 seconds]
<al2o3-cr>
anotherpi: yes, but Kernel.String is a method
Qommand0r has joined #ruby
<anotherpi>
al2o3-cr: yes, but String is a constant who refer the class String, not a method
msg has joined #ruby
<al2o3-cr>
anotherpi: Kernel is included in Object
<anotherpi>
al2o3-cr: however, like Float, Kernel.String is a defined method
msg is now known as Guest92924
gusrub has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<anotherpi>
al2o3-cr: well, i understand now :p
<sparr>
apeiros: I used a $global because I needed a value in a function... I guess I could pass it in, or wrap it all in a class and make that function a method?
<sparr>
matthewd: got a saner ruleset to suggest for rubocop?
<adam12>
Kaycee: Normally, yes.
<sparr>
apeiros Radar ^
<anotherpi>
al2o3-cr: i just didn't know it was possible to name a method like an already defined constant name
<Kaycee>
adam12 ok thank you
aspiers has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
<al2o3-cr>
anotherpi: no worries
jamesaxl has quit [Quit: Leaving]
<anotherpi>
thank you, see you next time!
anotherpi has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
opt9 has joined #ruby
gusrub has quit [Remote host closed the connection]
<al2o3-cr>
eating jerk chicken while irc'ing is a messy business :p
gusrub has joined #ruby
Kaycee has quit [Quit: Going offline, see ya! (www.adiirc.com)]
heftig has joined #ruby
<Radar>
sparr: define "Saner" :P
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has quit [Ping timeout: 255 seconds]
SteenJobs has quit [Quit: SteenJobs]
<qmr>
so I started geminabox at command line, then ^z , bg, disown , but it stopped running later for some reason
<qmr>
how do I set it up as a system service and keep it online?
<Papierkorb>
qmr: didn't you SIGCONT it back then? Either way, recent systemd's kill lingering processes when the owning user logs out
jenrzzz has quit [Ping timeout: 260 seconds]
<qmr>
Papierkorb: bg continues in background
<qmr>
I ... why. so it's going to kill screen sessions and the like as well? wtf?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
centrx has quit []
<Papierkorb>
screen may have been patched, no idea
Channel6 has joined #ruby
<qmr>
how can I see if that's what happened?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<Papierkorb>
it's what happened if you're running a recent systemd and didn't change the defaults - well, on many distributions that is
<Papierkorb>
which is fine, considering that doing what you did isn't suitable for running services. You can write your own .service file easily though and put it into /etc/systemd/system/
kht has quit [Ping timeout: 260 seconds]
KC_ has joined #ruby
<Papierkorb>
The man pages are helpful, not as start but to look things up later. There are tons of examples out there, you can also study a .service file of other services: $ systemctl cat dbus
<qmr>
if I ever meet Lennart we're going to be in the news
<Papierkorb>
Or of postgresql or whatever service you have that is a network service. maybe even ssh.
jenrzzz has quit [Ping timeout: 260 seconds]
<Papierkorb>
I don't get it, writing systemd services is quite easy, much much easier than fiddling with sysvinit scripts ever was
<Papierkorb>
Give it a try, you'd be surprised how simple it is
jtdoncas has joined #ruby
Derperperd has joined #ruby
Slinky_Pete has joined #ruby
KC_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]