<nymous>
their macroses are strange mix of perl code and CFX definition langauge
<al2o3-cr>
nymous: you code ruby?
<nymous>
i made it fully perl with OO like objects with methods and stuff
<al2o3-cr>
nymous: yeah, but ruby right?
<nymous>
the black magic was in evaluation of perl code into CFX definitions via kernel hack
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nogic has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
* al2o3-cr
i'll speak that brick wall instead, i might get more sense out of it
<nymous>
i'm a sysadmin, i code many languages on demand
<nymous>
yes, i currently more in love with ruby
<al2o3-cr>
finally
<al2o3-cr>
i'm sure that's a keyword in python
<al2o3-cr>
nymous: may i ask why?
<nymous>
why what?
<al2o3-cr>
forget it :)
mim1k has joined #ruby
<nymous>
i'm in love with ruby you mean?
<al2o3-cr>
yes.
<nymous>
because of it's dynamical nature
<al2o3-cr>
perl's dynamic
DTZUZO has quit [Ping timeout: 240 seconds]
<nymous>
it's kind of perl on steroids
guille-moe has quit [Ping timeout: 272 seconds]
<nymous>
to me
<nymous>
perl is not OO, in ruby everything is OO
<al2o3-cr>
yeah, it's been to gym alright.
<nymous>
with reflections, monkey patching etc
<nymous>
and also the syntactic sugar
<al2o3-cr>
yeah refinements are a thing now.
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<nymous>
but unfortunately it's not that fast
<nymous>
in some cases perl is ten times faster
<al2o3-cr>
nymous: compared to what?
<nymous>
even in simple scripts
<nymous>
i mean without loads of gems
<nymous>
loads of CPAN modules makes perl suffer too
DmitryBochkarev has joined #ruby
<al2o3-cr>
nymous: what ruby version you using?
DTZUZO has joined #ruby
<nymous>
2.1+
uZiel has quit [Remote host closed the connection]
<al2o3-cr>
nymous: ok.
mim1k has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
<nymous>
something what we have in a base distro
<nymous>
2.1.5p273 on my servers
<al2o3-cr>
i'll pull a moony in front of the queen if perl is 10x faster hahaha
<nymous>
2.4.2p198 at my pc
<nymous>
perl is really fast in filtering text files, something near to grep or so
eblip has quit [Quit: WeeChat 1.9.1]
<al2o3-cr>
show me proof now
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nymous>
i've tried to write a ruby code for same task, it was 2-4x times slower
eb0t has joined #ruby
<al2o3-cr>
show me proof?
<nymous>
well, that's just my experience, i can't generate you a 70 GB text file on demand
<al2o3-cr>
course you can
DmitryBochkarev has quit [Client Quit]
DmitryBochkarev has joined #ruby
<nymous>
well, i can generate it up to 15 TB, but that's commercial stuff, i can't share it
ninjalurking has quit [Ping timeout: 265 seconds]
<al2o3-cr>
well generate 70gb then
<al2o3-cr>
ssd right?
<nymous>
it doesn't really matter though
<nymous>
but yes
bkxd has quit [Ping timeout: 265 seconds]
<al2o3-cr>
well prove perl is 10x faster then ruby
<al2o3-cr>
in a simple script with 70gb data
<al2o3-cr>
test on 2.1 if you want
bkxd has joined #ruby
mudstart has joined #ruby
milardov_ has quit [Remote host closed the connection]
mudstart has quit [Remote host closed the connection]
<nymous>
well, generating 70 gb file would take really long
<nymous>
i might try 5 gb or so
mudstart has joined #ruby
<al2o3-cr>
not that long on a decent ssd
bkxd_ has joined #ruby
<leitz>
Is there a way to capitalize the first character of each string that comes from an array.join() This isn't working: "Traits: #{character.traits.join(', ').capitalize}"
marr has quit [Ping timeout: 265 seconds]
<leitz>
Tried "each" in there as well. Each array item is a lower case string.
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<al2o3-cr>
leitz: what does character.traits return?
bkxd has quit [Ping timeout: 264 seconds]
jxv has quit [Quit: zzz…]
amatas has quit [Ping timeout: 256 seconds]
<leitz>
al2o3-cr, an array of two strings.
<al2o3-cr>
leitz: you probably wan character.traits.map(&:captitalize).join(', ')
alfiemax has joined #ruby
<al2o3-cr>
*want
<leitz>
al2o3-cr, that works, though I'm going to have to study it to understand it.
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
<havenwood>
just got back - and bad timing, since i wanted to show how to make that gist faster
milardovich has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
nymous: you want the first word of each line?
<havenwood>
nymous: will the lines always start with a non-whitespace char?
<nymous>
i'm not quite following
jdawgaz has joined #ruby
<nymous>
are you about json?
<havenwood>
nymous: I was asking about the smartctl command output you're parsing
<nymous>
ah, yes
steph_ has joined #ruby
<nymous>
it prints something like that /dev/sda -d sat # /dev/sda [SAT], ATA device
<havenwood>
nymous: for example, this would return an array of lines that started with non-whitespace chars: `sudo smartctl --scan-open`.scan /^\S+/
nopolitica has joined #ruby
<nymous>
yeah, nicer, thanks
<nymous>
*looks nicer
<havenwood>
just because of the Regexp I used it'd not match lines that started with whitespace
<havenwood>
but yeah, it's more concise and a lot faster and uses less memory
<havenwood>
nymous: #scan is handy
xco has quit [Quit: xco]
nopolitica has quit [Ping timeout: 272 seconds]
steph_ has quit [Remote host closed the connection]
eckhardt has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
alfiemax has joined #ruby
jdawgaz has joined #ruby
steph_ has joined #ruby
steph_ has quit [Remote host closed the connection]
steph_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
noobineer has joined #ruby
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
noobineer has quit [Max SendQ exceeded]
steph__ has joined #ruby
steph_ has quit [Ping timeout: 264 seconds]
kryptoz has joined #ruby
c0dy has quit [Quit: Leaving]
ShekharReddy has quit [Quit: Connection closed for inactivity]
shinnya has joined #ruby
uZiel has quit [Remote host closed the connection]
kryptoz has quit [Ping timeout: 256 seconds]
jxv has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 2.0]
vtx has quit [Quit: vtx]
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
jdawgaz has joined #ruby
roshanavand has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
d^sh has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
xco has joined #ruby
gizmore|2 has joined #ruby
d^sh has joined #ruby
mudstart has quit []
milardovich has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
gizmore has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 272 seconds]
Technodrome has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jxv has quit [Quit: string on the can snapped off]
ramfjord has joined #ruby
uZiel has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
trolltoll has joined #ruby
steph__ has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit []
bmurt has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 265 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
steph_ has joined #ruby
konsolebox has joined #ruby
jdawgaz has joined #ruby
meesles has joined #ruby
charliesome has joined #ruby
jameser has joined #ruby
steph_ has quit [Remote host closed the connection]
deadnull has quit [Quit: deadnull]
babblebre has left #ruby [#ruby]
uZiel has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
cdg has joined #ruby
nopolitica has joined #ruby
JJonah has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 265 seconds]
nopolitica has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
bmurt has joined #ruby
jdawgaz has joined #ruby
kryptoz has joined #ruby
bkxd_ has quit [Ping timeout: 272 seconds]
eckhardt has joined #ruby
bkxd has joined #ruby
faces has joined #ruby
priodev has quit [Ping timeout: 240 seconds]
priodev has joined #ruby
eb0t has quit [Quit: WeeChat 1.9.1]
alfiemax has quit [Remote host closed the connection]
herbmillerjr has quit [Quit: Konversation terminated!]
alfiemax has joined #ruby
kryptoz has quit [Ping timeout: 248 seconds]
gix has joined #ruby
gix- has quit [Ping timeout: 248 seconds]
kryptoz has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 265 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plexigras has quit [Ping timeout: 240 seconds]
cloaked1 has joined #ruby
bkxd has joined #ruby
troys_ is now known as troys
plexigras has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
twrk has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
LocaMocha has joined #ruby
mostlybadfly has joined #ruby
nopolitica has joined #ruby
LocaMocha has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
bkxd_ has quit [Client Quit]
nopolitica has quit [Ping timeout: 248 seconds]
houhoulis has quit [Remote host closed the connection]
ShekharReddy has joined #ruby
bkxd has joined #ruby
alfiemax has quit [Remote host closed the connection]
cschneid_ has joined #ruby
astronavt has joined #ruby
astronavt has quit [Remote host closed the connection]
alfiemax has joined #ruby
jamesaxl has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
eb0t has joined #ruby
milardovich has joined #ruby
pastorinni has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
cloaked1 has quit [Ping timeout: 256 seconds]
oncall-pokemon has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozzloy_ has joined #ruby
Kero_ has joined #ruby
char_var[buffer] has joined #ruby
[reed] has quit [Ping timeout: 252 seconds]
Kero has quit [Ping timeout: 252 seconds]
ozzloy has quit [Ping timeout: 252 seconds]
shady0wl_ has quit [Ping timeout: 264 seconds]
[reed] has joined #ruby
[reed] has joined #ruby
char_var[buffer] has quit [Max SendQ exceeded]
char_var[buffer] has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 272 seconds]
milardovich has quit []
shinnya has joined #ruby
twrk has quit [Remote host closed the connection]
bkxd has quit []
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
nopolitica has joined #ruby
gix has quit [Read error: Connection reset by peer]
gix has joined #ruby
bkxd has joined #ruby
bkxd has quit [Client Quit]
nathani1 has quit [Ping timeout: 240 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
spider-mario has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
kapil___ has joined #ruby
nathani1 has joined #ruby
ahrs has joined #ruby
bkxd has joined #ruby
spider-mario has joined #ruby
pastorinni has quit [Remote host closed the connection]
alfiemax has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
kryptoz has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 272 seconds]
bkxd has quit []
rippa has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
dionysus69 has joined #ruby
blindmoe has joined #ruby
kryptoz has joined #ruby
<blindmoe>
Spending time tonight upgrading rubocop on one of my apps and am running into an error where it says that this line should be delimited by `[` and `]`. I am not sure what it is asking for, anyone mind helping? %w(jpg jpeg gif png)
kryptoz has quit [Remote host closed the connection]
<blindmoe>
seems like it wants %w[jpg jpeg gif png] but I have never used %w[ before
<Nilium>
Stuff like %w, %r, etc. can be done with [, {, (, etc.
<Nilium>
rubocop likely wants you to only use []
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
enterprisey has joined #ruby
cdg has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
nopolitica has joined #ruby
aiguuu has joined #ruby
alfiemax has joined #ruby
troys has quit [Quit: Bye]
cdg has quit [Ping timeout: 265 seconds]
nopolitica has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
KeyJoo has joined #ruby
n13z has quit [Quit: leaving]
DmitryBochkarev has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has joined #ruby
RevanOne has quit [Ping timeout: 264 seconds]
dinfuehr has quit [Ping timeout: 256 seconds]
minimalism has joined #ruby
dinfuehr has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
_aeris_ has quit [Ping timeout: 248 seconds]
_aeris_ has joined #ruby
FiendKing04 has joined #ruby
n13z has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
n13z_ has joined #ruby
n13z has quit [Read error: Connection reset by peer]
n13z_ has quit [Read error: Connection reset by peer]
n13z has joined #ruby
peelz_ has joined #ruby
<craysiii>
https://gist.github.com/craysiii/2e73564cb46dee10195fc78f3e4bfb8f So i'm trying to integrate typheous into a gem of mine, and im on windows. when i run "gem install typheous" it installs just fine, but when i add it to my gemspec and run "bundle install" bundler says it could not find a compatible version. what am i missing here?
claudiuinberlin has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
peelz_ has left #ruby [#ruby]
alfiemax has quit [Remote host closed the connection]
theRealGent has joined #ruby
dviola has joined #ruby
theRealGent has quit [Ping timeout: 265 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blindmoe has quit [Ping timeout: 248 seconds]
exhiled has joined #ruby
blindmoe has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
Azure|dc has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Azure has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alfiemax has joined #ruby
eblip has joined #ruby
d^sh has quit [Ping timeout: 264 seconds]
blindmoe has quit [Ping timeout: 265 seconds]
nopolitica has joined #ruby
d^sh has joined #ruby
Burgestrand has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
nopolitica has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
clemens3 has quit [Ping timeout: 256 seconds]
Riddell has quit [Ping timeout: 265 seconds]
Riddell has joined #ruby
alfiemax has quit [Remote host closed the connection]
blindmoe has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
clemens3 has joined #ruby
Kero_ is now known as Kero
blindmoe has quit [Ping timeout: 240 seconds]
marr has joined #ruby
Burgestrand has quit [Quit: Closing time!]
tvw has joined #ruby
nopolitica has joined #ruby
alfiemax has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
nopolitica has quit [Ping timeout: 272 seconds]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
alfiemax has joined #ruby
blindmoe has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has quit [Ping timeout: 248 seconds]
enterprisey has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 248 seconds]
_aeris_ has joined #ruby
tvw has quit [Remote host closed the connection]
blindmoe has joined #ruby
blindmoe has joined #ruby
uZiel has joined #ruby
alfiemax has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 265 seconds]
enterprisey has joined #ruby
blindmoe has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
alfiemax has quit [Remote host closed the connection]
Puffball has quit [Quit: Puffball]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
al2o3-cr has quit [Quit: 你变得越安静,你就越能听到]
iamarun has joined #ruby
dviola has quit [Quit: WeeChat 2.0]
JaccoP has joined #ruby
TomyLobo has joined #ruby
n13z has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 264 seconds]
nopolitica has joined #ruby
al2o3-cr has joined #ruby
yeticry has joined #ruby
despai has joined #ruby
RougeT430 has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
bhaak has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
blindmoe has quit [Ping timeout: 240 seconds]
jnyw has joined #ruby
yeticry has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<elisaado>
apeiros: it works now!
<elisaado>
I'm using a database lol
hfp_work has quit [Quit: bye]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeT430 has quit [Ping timeout: 265 seconds]
RougeT430 has joined #ruby
hfp_work has joined #ruby
mikecmpb_ has quit [Ping timeout: 248 seconds]
ldepandis has joined #ruby
GodFather has joined #ruby
workmad3 has joined #ruby
jnyw has quit [Quit: WeeChat 2.0]
iamarun has quit [Remote host closed the connection]
nopolitica has joined #ruby
mikecmpbll has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
uZiel has quit [Remote host closed the connection]
Rr4sT has joined #ruby
blindmoe has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
uZiel has joined #ruby
d^sh has quit [Ping timeout: 256 seconds]
d^sh has joined #ruby
amatas has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
selim has quit [Ping timeout: 256 seconds]
sameerynho has joined #ruby
selim has joined #ruby
enterprisey has quit [Remote host closed the connection]
amatas has quit [Quit: amatas]
amatas has joined #ruby
alfiemax has joined #ruby
bkxd has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
beaorn has quit []
AJA4350 has joined #ruby
remix2000 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
Ishido has quit [Ping timeout: 265 seconds]
blindmoe has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
mikecmpb_ has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
Ishido has joined #ruby
VladGh has quit [Remote host closed the connection]
daemonwrangler_ has quit [Ping timeout: 255 seconds]
mikecmpb_ has quit [Ping timeout: 265 seconds]
VladGh has joined #ruby
bkxd_ has quit []
vichib has quit [Ping timeout: 248 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
blindmoe has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
moei has joined #ruby
vtx has joined #ruby
despai has quit [Quit: ...]
alex`` has quit [Ping timeout: 272 seconds]
zautomata has joined #ruby
jameser has joined #ruby
bmurt has joined #ruby
despai has joined #ruby
bmurt has quit [Client Quit]
jdawgaz has joined #ruby
jameser has quit [Ping timeout: 264 seconds]
DTZUZO has joined #ruby
uZiel has joined #ruby
vtx_ has joined #ruby
vtx has quit [Ping timeout: 256 seconds]
vtx_ is now known as vtx
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
vtx has quit [Quit: vtx]
leitz has joined #ruby
dinfuehr has joined #ruby
shaileshg has joined #ruby
vichib has joined #ruby
zanshin has joined #ruby
vichibit has joined #ruby
vichibit has quit [Max SendQ exceeded]
nadir has quit [Quit: Connection closed for inactivity]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
remix2000 has quit [Ping timeout: 264 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
herbmillerjr has joined #ruby
dinfuehr has joined #ruby
jerryskye has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
jerryskye has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
alex`` has joined #ruby
JaccoP has quit [Ping timeout: 265 seconds]
kapil___ has joined #ruby
charliesome has joined #ruby
JaccoP has joined #ruby
remix2000 has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
c0dy has joined #ruby
blindmoe has quit [Ping timeout: 248 seconds]
nopolitica has quit [Ping timeout: 256 seconds]
xco has quit [Ping timeout: 265 seconds]
blindmoe has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
ahrs has quit [Remote host closed the connection]
blindmoe has quit [Ping timeout: 240 seconds]
ahrs has joined #ruby
Guest76443 has joined #ruby
despai has quit [Quit: ...]
<Guest76443>
Hello Guys
zautomata has quit [Quit: WeeChat 1.7]
<al2o3-cr>
o/
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
oleo has quit [Quit: Leaving]
<Guest76443>
I'm looking for a regexp for the following string: "London, the 12.12.17". The result should be: "London 12.12.17". This regexp "^\w*" gives me "London" and "\d.{1,9}" gives me "12.12.17" How can I combine them together?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
You can also use gsub with magical \ things
<dminuoso>
Or actually.. gsub wont help you that much.
<dminuoso>
You can also use .delete depending on what you do
charliesome has joined #ruby
sameerynho has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
tokudan[m] has joined #ruby
JaccoP has quit [Remote host closed the connection]
<tokudan[m]>
hi, i got a problem with data validation in ruby where i need to verify that a value has a specific type. Problem is that the "case" is too intelligent and instead of comparing the values, tries to check if that variable has a specific class: https://gist.github.com/tokudan/a3b2ac29d195bdddf560004d2c252027
uZiel has quit [Ping timeout: 248 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
<tokudan[m]>
do I have to use a mapping of :string => String in a hash just to be able to use value.kind_of? or is there any way of making case or a similar construct work there?
uZiel has joined #ruby
alfiemax has quit [Remote host closed the connection]
<dminuoso>
tokudan[m]: case uses ===
<dminuoso>
tokudan[m]: case foo; when blah; ...; when quux; end first tests: `blah === foo`, then `quux === foo` until something matches.
blindmoe has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
<tokudan[m]>
ok, so how can I check if the class I've been given in the variable requirement is the class String?
<dminuoso>
tokudan[m]: you can use a different form of case (or if/elsif)
k0mpa has quit [Remote host closed the connection]
<tokudan[m]>
it works if i use case when required == String
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tokudan[m]>
However?
<dminuoso>
Err. I meant to use == sorry.
<dminuoso>
Too much JS recently.
<tokudan[m]>
ah :)
<tokudan[m]>
thanks for the help dminuoso :)
quobo has joined #ruby
<dminuoso>
tokudan[m]: That code you just showed me is a code smell.
<dminuoso>
You shouldn't want to do this.
shinnya has quit [Ping timeout: 240 seconds]
<tokudan[m]>
hmm... basically I'm digging into JSON there and just use it to ensure I've got some reasonable data back. e.g. a string where i expect a string. a float where i expect a float, etc.
blindmoe has quit [Ping timeout: 256 seconds]
<tokudan[m]>
and the function I'm writing is roughly "get me the data from that path and ensure it's a Float" and if it isn't, just give me back a default float
<tokudan[m]>
i don't have a better idea to write that
Barrt has quit [Quit: Leaving]
<dminuoso>
tokudan[m]: Fair enough. That's probably one of the few spots to be explicitly checking for classes. :)
<tokudan[m]>
hehe :)
<dminuoso>
tokudan[m]: Though you could just describe the layout as some sample data, and check that the type structure amtches
<tokudan[m]>
i tried that... it's a nightmare with this data source :(
<tokudan[m]>
besides i had one of the data node suddenly contain a string somewhere instead of an integer.
dreamthese has quit [Quit: WeeChat 1.4]
JaccoP has joined #ruby
nicesignal has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
xco has joined #ruby
despai has quit [Quit: ...]
goepsilongo has joined #ruby
mtkd has quit [Ping timeout: 272 seconds]
mtkd has joined #ruby
herbmillerjr has quit [Read error: Connection reset by peer]
despai has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl>
Anyone using Jenkins? May I ask for how you built your piple for ruby CI?
blindmoe has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
kapil___ has quit [Quit: Connection closed for inactivity]
<riceandbeans>
I look at it and hate the single file aspect and feel like I'd rather it broken into a file for each major section of the API, but also I want to do something similar but make it more generic
<riceandbeans>
I want to make something supporting multiple backends, but maybe single file for each of the entire backends is better, :\ I don't know
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<dminuoso>
that extend self is making me cry.
<dminuoso>
riceandbeans: Abstract that URL away...
<dminuoso>
riceandbeans: Do you know what `class << self` does ?
<riceandbeans>
dminuoso: and please don't take this as me shitting on someone else's code, because I know my code will look like shit to plenty of people, but I wanted a nice example to base something on, and I saw that and didn't like it
<riceandbeans>
some kind of horrifying inheritance?
<dminuoso>
Oh this is not your code?
<riceandbeans>
No, this is someone else's
amatas has joined #ruby
<riceandbeans>
I had this one gem to do something, it did like 75% of what I wanted, but the missing part irked me, and they stopped supporting it, so I was going to do my own thing with it, but I figured I'd make it generic and support various providers, and then I looked around for other rest clients in ruby that I'd used, so I looked at vultr because the gem works fine for my use and I looked at the code and it
<riceandbeans>
was exactly like the above
<riceandbeans>
I kind of wanted to probe the water and see if it was just me disliking the style used or if it was generally frowned upon, because I'd rather do best practice
<riceandbeans>
so, the one I thought looked a little better to model on is this
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vichib has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
trolltoll has joined #ruby
Ltem has joined #ruby
vichib has joined #ruby
vichib has quit [Max SendQ exceeded]
gnufied has joined #ruby
vichib has joined #ruby
troys is now known as troys_
yqt has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz>
Okay, figured it out.
<leitz>
Operator Error. :)
lytol_ has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
xco has quit [Ping timeout: 248 seconds]
apeiros has quit [Read error: Connection reset by peer]
steph_ has quit [Remote host closed the connection]
<leitz>
dminuoso, I won't disagree that there are great options for data storage. MongoDB solves a few problems for me: it has classes I can take for free and I like to learn. That pushes my brain to stay young while the rest of me ages.
<leitz>
It was potentially an unsupported project at work so I got to show my management that I'd pitch in as needed. I'm not really a DBA or a coder by title.
<leitz>
And, near to my heart is that it has a certification. Always good for large corp job searches.
apeiros_ has joined #ruby
tomphp has joined #ruby
jerryskye has joined #ruby
char_var[buffer] has quit [Remote host closed the connection]
miskatonic has joined #ruby
steph_ has joined #ruby
xavrix has quit [Ping timeout: 256 seconds]
xavrix has joined #ruby
guille-moe has joined #ruby
<craysiii>
what difference is there, if any, between doing "gem install <gem>" and placing that gem inside a gemspec and doing "bundle install" ?
mlkkk has quit []
<riceandbeans>
dminuoso: did you see the last code link I put up?
alfiemax has quit [Remote host closed the connection]
<havenwood>
craysiii: bundler just uses rubygems to install the gem in the same place it would be if you manually installed it
<craysiii>
okay, so riddle me this: i am trying to add a gem to my gem's dependencies. I can install it via "gem install typhoeus", but adding it to my gemspec and running bundle install results in an error, "Could not find gem 'typheous x64-mingw32'
<craysiii>
yes im on windows :(
<havenwood>
craysiii: windows 10?
<craysiii>
yup
<havenwood>
craysiii: have you considered using the Windows Subsystem for Linux (WSL)?
<craysiii>
i have considered it, didn't enjoy it much
<havenwood>
they keep patching it to make it more useable - maybe it'll end up nice
<craysiii>
i hope so, i just didnt want to introduce even more uncertainty between the platforms i use
troys_ is now known as troys
despai has joined #ruby
<havenwood>
craysiii: what version is your bundler?
guille-moe has quit [Ping timeout: 256 seconds]
<riceandbeans>
ruby on windows is weird, I used it before to muck with the registry
Guest76443 has quit []
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
steph_ has quit [Remote host closed the connection]
<RickHull>
craysiii: you may need to specify the "binary gem" in the Gemfile -- but I wouldn't expect rubygems to operate much differently in this regard
<RickHull>
or there may be a platform directive that could help
<craysiii>
sorry havenwood rickhull just had some people stop by for a moment, will answer soon :)
<RickHull>
almost anyone else is better than I am with bundler -- I'm just stabbing in a somewhat educated direction ;)
leitz is now known as leitz_nap
wopi has left #ruby ["WeeChat 1.3"]
alfiemax has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
ShekharReddy has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
JaccoP has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
astronavt has joined #ruby
astronavt has joined #ruby
astronavt has quit [Remote host closed the connection]
shaileshg has quit [Quit: Connection closed for inactivity]
tokudan[m] has left #ruby ["User left"]
bradleyprice has quit [Remote host closed the connection]
xco has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
SuperLag has quit [Quit: reboot]
steph_ has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
SuperLag has joined #ruby
linetrace has joined #ruby
<linetrace>
Suggestions on preferred OAuth gem(s) to use these days?
<linetrace>
Use case is auth for a JSON API, not being used w/Rails
uZiel has quit [Remote host closed the connection]
<linetrace>
(OAuth client, not server)
steph_ has quit [Ping timeout: 265 seconds]
c0ncealed has quit [Remote host closed the connection]
RickHull has joined #ruby
c0ncealed has joined #ruby
hanmac has joined #ruby
_sfiguser has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
steph_ has joined #ruby
bradleyprice has joined #ruby
steph_ has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 1.9.1]
alfiemax has joined #ruby
JaccoP has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
TinkerTyper has joined #ruby
Dimik has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
milardov_ has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardo__ has joined #ruby
rrutkowski has joined #ruby
milardovich has quit [Ping timeout: 272 seconds]
xco has quit [Quit: xco]
milardov_ has quit [Ping timeout: 272 seconds]
rrutkowski has quit [Remote host closed the connection]
uZiel has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
lytol_ has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
ur5us has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has joined #ruby
despai has quit [Quit: ...]
<RickHull>
craysiii: what's in the binance Gemfile / Gemfile.lock ?
isec has joined #ruby
<RickHull>
you can also try `gem install binance` to see what happens there
despai has joined #ruby
steph_ has joined #ruby
<craysiii>
rickhull ive updated the gist with the Gemfile
<RickHull>
ok -- is there any different behavior with `gem install binance` ?
<craysiii>
let me test
mostlybadfly has joined #ruby
steph_ has quit [Ping timeout: 240 seconds]
despai has quit [Client Quit]
quobo has joined #ruby
<craysiii>
wow i'm feeling some shame now... i had it misspelled in the gemspec. could have sworn i checked that over and over again
nfsnobody has quit [Ping timeout: 255 seconds]
milardo__ has quit []
<RickHull>
ha, I see -- it happens... mystery solved! xD
<RickHull>
ty-fo-ee-us
nfsnobody has joined #ruby
Ishido has quit [Ping timeout: 263 seconds]
mtkd has quit [Ping timeout: 264 seconds]
<RickHull>
they should call it typo-eus xD
<craysiii>
hahaha
mtkd has joined #ruby
chocoelho has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
ta__ has quit [Quit: Leaving...]
steph_ has joined #ruby
sammi`_ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
steph_ has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
orbyt_ has joined #ruby
despai has joined #ruby
sammi` has quit [Quit: Lost terminal]
bkxd_ has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
sameerynho has joined #ruby
rrutkowski has joined #ruby
cadillac_ has quit [Ping timeout: 265 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
rrutkowski has quit [Quit: rrutkowski]
cadillac_ has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
steph_ has joined #ruby
c0dy has quit [Quit: Leaving]
despai has quit [Quit: ...]
John____ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
steph_ has quit [Ping timeout: 255 seconds]
Azure has quit [Read error: Connection reset by peer]
steph_ has joined #ruby
Azure has joined #ruby
troys is now known as troys_
steph_ has quit [Ping timeout: 263 seconds]
GodFather has quit [Ping timeout: 248 seconds]
rrutkowski has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
<KrzaQ>
I have a question about my solution to yesterday's advent of code puzzle. With .lazy, it takes ~60 seconds on my computer to compute, without it's about 30% faster, but eats like 10 gigs of ram. Am I doing something horrendously wrong?
reber has quit [Remote host closed the connection]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
steph_ has quit [Ping timeout: 248 seconds]
Ltem has quit [Quit: bye]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
rrutkowski has quit [Ping timeout: 264 seconds]
bkxd_ has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
Technodrome has joined #ruby
eckhardt has joined #ruby
tomphp has joined #ruby
ur5us has joined #ruby
steph_ has joined #ruby
bkxd has quit []
ur5us has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has joined #ruby
steph_ has quit [Ping timeout: 265 seconds]
duderonomy has quit [Ping timeout: 260 seconds]
z3uS has quit [Quit: /dev/null]
<RickHull>
that sounds reasonable, depending on the problem. lazy computation usually means consuming less space, and there ideally is no time tradeoff
<RickHull>
but depending on the computation, there can be a time tradeoff
bkxd has joined #ruby
z3uS has joined #ruby
GodFather has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Client Quit]
GodFather has joined #ruby
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20171128-66897057 - https://znc.in]
TinkerTyper has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
Technodrome has joined #ruby
steph_ has joined #ruby
steph_ has quit [Ping timeout: 272 seconds]
Danishman has joined #ruby
RyanMcCoskrie has joined #ruby
eckhardt has joined #ruby
bkxd_ has joined #ruby
pastorinni has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
despai has quit [Quit: ...]
bkxd_ has quit []
ShekharReddy has quit [Quit: Connection closed for inactivity]
iszak has quit [Ping timeout: 272 seconds]
John____ has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
troys is now known as troys_
cloaked1 has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]