baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
n0m4d1c has joined #ruby
fullstack_ has quit [Ping timeout: 260 seconds]
fullstack_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
n0m4d1c has joined #ruby
mlkkk has quit [Remote host closed the connection]
amar has joined #ruby
karapetyan has quit [Remote host closed the connection]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
amar has quit [Ping timeout: 248 seconds]
tolerablyjake has joined #ruby
claw has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
tolerablyjake has quit [Client Quit]
regedit has quit [Quit: Connection closed for inactivity]
claw has joined #ruby
tdy has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nitric_ has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
claw has quit [Read error: Connection reset by peer]
bga57 has quit [Ping timeout: 276 seconds]
dc1 has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
jameser has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 256 seconds]
ciscam has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
claw has joined #ruby
ciscam has joined #ruby
bga57 has joined #ruby
shinnya has joined #ruby
cagomez has quit [Ping timeout: 265 seconds]
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
dc1 has quit [Ping timeout: 265 seconds]
jenrzzz_ has quit [Ping timeout: 256 seconds]
fyrril has joined #ruby
amar has joined #ruby
white_lilies has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
elphe has joined #ruby
amar has quit [Ping timeout: 248 seconds]
dc1 has joined #ruby
<hays> random_number doesn't seem to be documented
noobineer has joined #ruby
<hays> SecureRandom.random_number(10)
minimalism has joined #ruby
dviola has joined #ruby
<Radar> patches welcome
noobineer has quit [Ping timeout: 256 seconds]
<Radar> I guess you'd use that over rand because it's more... secure?
<hays> its really weird. I don't actually see it in the source code
<hays> but there is a test for it
<Radar> Seems like it comes from Random::Formatter
<Radar> >> require 'securerandom'; SecureRandom.method(:random_number).owner
<ruby[bot]> Radar: # => Random::Formatter (https://eval.in/1006208)
alfiemax has joined #ruby
orbyt_ has joined #ruby
<hays> yeah, can't figure out how that works
<hays> there's a random.c
<Radar> I'm pulling down the latest Ruby source but my internet is... well, I'm in AU. Kangaroos are delivering my packets.
<hays> heh, yeah im using git web interface
<hays> might save you some bandwidth
<Radar> line 1392 in random.c is where I think it comes from.
alfiemax has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 255 seconds]
<hays> i see SecureRandom.extend(Random::Formatter)
<Radar> and then at the bottom of lib/SecureRandom.rb ... yeah, that
<Radar> So I guess that's why you don't see it documented inside `SecureRandom`.
cyberg has quit [Quit: Leaving]
orbyt_ has quit [Client Quit]
<hays> so... it seems like its not using the secure prng
sanscoeur has quit [Ping timeout: 248 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
dinfuehr has joined #ruby
<hays> do you know how Random::Formatter ends up tying to that function in random.c?
<Radar> hays: random.c, line 1672-1677
GodFather has joined #ruby
arashb has joined #ruby
caleBOT_ has quit [Ping timeout: 248 seconds]
caleBOT has quit [Ping timeout: 248 seconds]
<hays> yeah, i see it. still not sure if I can figure out whether that means the bindings inherit from securerandom
<hays> rand_random_number calls rand_random
ramfjord has quit [Ping timeout: 256 seconds]
<hays> so I think that means it bypasses anything in SecureRandom and goes straight to the underlying implementation of the random.c prng
<hays> reluctant to file a bug about it because i might be full of ___ :)
<hays> eek, I think .alphanumeric may also be insecure if this is the case
<hays> it uses random_number
dc1 has quit [Ping timeout: 256 seconds]
dc1 has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<baweaver> Looks like the tetris op got some serious love
<baweaver> JSON.:parse == JSON.method(:parse)
<baweaver> and composition seems to have gotten traction
_antares_ has joined #ruby
<hays> I might use this instead (SecureRandom.bytes(1).ord/256.0*i).to_i
_antares_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nowhere_man has quit [Ping timeout: 256 seconds]
_antares_ has joined #ruby
leah2 has quit [Ping timeout: 255 seconds]
leah2 has joined #ruby
kmurphy4_ has joined #ruby
orbyt_ has joined #ruby
karapetyan has joined #ruby
herbmillerjr has joined #ruby
caleBOT_ has joined #ruby
caleBOT__ has joined #ruby
n0m4d1c_ has joined #ruby
caleBOT_ has quit [Read error: Connection reset by peer]
caleBOT__ has quit [Write error: Connection reset by peer]
n0m4d1c_ has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 248 seconds]
caleBOT__ has joined #ruby
caleBOT_ has joined #ruby
n0m4d1c has quit [Ping timeout: 240 seconds]
kevinburke has quit [Quit: Connection closed for inactivity]
<hays> huh. i was thinking ruby-build would download the source tree
<hays> but I don't see the .c files
nadir has quit [Quit: Connection closed for inactivity]
kmurphy4_ has quit [Quit: kmurphy4_]
RougeT430 has quit [Ping timeout: 268 seconds]
arashb has quit [Ping timeout: 260 seconds]
<hays> heh, this is fun. figuring out how to patch ruby source code :)
<hays> git is so cool
pilne has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
alfiemax has joined #ruby
<hays> well damn. just proved that yes SecureRandom.alphanumeric does not use a secure RNG
_antares_ has quit [Remote host closed the connection]
ryzokuken has quit [Remote host closed the connection]
duderonomy has joined #ruby
dc1 has quit [Ping timeout: 256 seconds]
govg has joined #ruby
cadillac_ has joined #ruby
<hays> hopefully i have deduced correctly
_antares_ has joined #ruby
_antares_ has quit [Remote host closed the connection]
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
laska has quit [Ping timeout: 260 seconds]
caleBOT_ has quit [Remote host closed the connection]
caleBOT__ has quit [Read error: Connection reset by peer]
darkhanb has joined #ruby
_antares_ has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
pabs_ has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
alex`` has joined #ruby
arashb has joined #ruby
n0m4d1c has joined #ruby
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
pabs has joined #ruby
arashb has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
_antares_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
karapetyan has joined #ruby
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
bmurt has joined #ruby
claw has quit [Ping timeout: 240 seconds]
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT has quit [Ping timeout: 264 seconds]
caleBO___ has quit [Ping timeout: 248 seconds]
caleBOT__ has quit [Ping timeout: 248 seconds]
dc1 has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 2.1]
claw has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
arashb has joined #ruby
karapetyan has quit [Ping timeout: 248 seconds]
arashb has quit [Ping timeout: 264 seconds]
dc1 has quit [Ping timeout: 240 seconds]
arashb has joined #ruby
caleBOT__ has joined #ruby
caleBOT_ has joined #ruby
arashb has quit [Ping timeout: 260 seconds]
caleBOT__ has quit [Ping timeout: 260 seconds]
caleBOT_ has quit [Ping timeout: 260 seconds]
elphe has quit [Ping timeout: 248 seconds]
_antares_ has joined #ruby
AJA4350 has joined #ruby
alfiemax has joined #ruby
gix has joined #ruby
gix- has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
caleBOT_ has joined #ruby
caleBOT has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
guacamole has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
ur5us has quit [Ping timeout: 256 seconds]
jsrtr has quit [Ping timeout: 260 seconds]
sidx64 has joined #ruby
jsrtr has joined #ruby
amar has joined #ruby
sidx64 has quit [Client Quit]
yosafbridge has quit [Quit: Leaving]
haraoka has joined #ruby
eckhardt has joined #ruby
amar has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
sidx64 has joined #ruby
caleBOT_ has joined #ruby
caleBOT has joined #ruby
elphe has joined #ruby
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
yosafbridge has joined #ruby
anisha has joined #ruby
_antares_ has quit [Remote host closed the connection]
duderonomy has joined #ruby
howdoi has joined #ruby
apeiros has joined #ruby
venmx has quit [Ping timeout: 255 seconds]
white_lilies has quit [Ping timeout: 256 seconds]
mohsen_1 has joined #ruby
Dabo has joined #ruby
_antares_ has joined #ruby
venmx has joined #ruby
<Dabo> Has anyone installed ruby with tcl/tk support on Ubuntu before? "gem install tk" after installing libtcl-dev and libtk-dev system packages still fails - it can't find tcl.h
<Dabo> I'm trying to install it on a rvm-built ruby version
<Dabo> phew, ok, got it working with tons of --with* options to specify where stuff is
<Dabo> thanks
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
sauvin has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
sagax has quit [Quit: Konversation terminated!]
_antares_ has quit [Remote host closed the connection]
mtkd has joined #ruby
_antares_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
oleo has quit [Quit: Leaving]
<dminuoso> baweaver: That's the price for admitting methods that have no arguments.
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT has quit [Ping timeout: 264 seconds]
<dminuoso> But it's cool they discussed Proc#*
<baweaver> shhhhhh
<baweaver> let people enjoy things
<dminuoso> Im just saying that .: is annoying noise, which it shouldn't have been if we lacked either methods without arguments or optional parens.
<dminuoso> But it's fine, Ill get by
<dminuoso> Function composition will still be a real PITA to use in Ruby sadly.
<dminuoso> My experience with rambda heavy JS code and Q heavy Ruby code shows it's super frustrating
sidx64 has joined #ruby
amelliaa has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
venmx has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
aufi has joined #ruby
reber has joined #ruby
laska has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dc1 has joined #ruby
laska has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
jeen has joined #ruby
andikr has joined #ruby
conta has joined #ruby
schneider has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robertothais has joined #ruby
dionysus69 has joined #ruby
pskosinski has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
ramfjord has joined #ruby
elphe has quit [Quit: leaving]
elphe has joined #ruby
robertothais has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
ryzokuken has joined #ruby
sidx64 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
sidx64_ has joined #ruby
jeen has quit [Quit: Leaving]
DoubleMalt has joined #ruby
sidx64 has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
ropeney has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
duderono_ has joined #ruby
sidx64_ has quit [Client Quit]
sidx64 has joined #ruby
vondruch has quit [Quit: vondruch]
Burgestrand has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
schneider has joined #ruby
KeyJoo has joined #ruby
ciscam has quit [Ping timeout: 265 seconds]
ciscam has joined #ruby
schleppel has joined #ruby
_antares_ has quit [Remote host closed the connection]
conta has quit [Quit: conta]
conta has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
n0m4d1c_ has joined #ruby
sysvalve has joined #ruby
chocoelho_ has quit [Remote host closed the connection]
sidx64 has joined #ruby
chocoelho_ has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
elphe has quit [Quit: leaving]
elphe has joined #ruby
sidx64_ has joined #ruby
za1b1tsu has joined #ruby
sidx64 has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
TomyWork has joined #ruby
sidx64_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
elphe has quit [Quit: leaving]
elphe has joined #ruby
_antares_ has joined #ruby
sidx64 has quit [Max SendQ exceeded]
alfiemax_ has quit [Remote host closed the connection]
elphe has quit [Client Quit]
aufi has quit [Ping timeout: 248 seconds]
elphe has joined #ruby
sidx64 has joined #ruby
alfiemax has joined #ruby
_antares_ has quit [Remote host closed the connection]
elphe has quit [Client Quit]
elphe has joined #ruby
suukim has joined #ruby
clemens3 has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
elphe has quit [Client Quit]
paul_ has joined #ruby
yohji has joined #ruby
elphe has joined #ruby
_antares_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_antares_ has quit [Ping timeout: 264 seconds]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
bambanx has quit [Quit: Leaving]
alfiemax_ has joined #ruby
elphe has quit [Quit: leaving]
marr has joined #ruby
sidx64 has joined #ruby
<paul_> Good morning everyone :) Rails screnario: I have a User that can be identified by either an ID or a slug (String). I want to create a post by that user and pass the string into the mass assignment (user_id). Does anyone know of some library that already solved this problem of "polymorphic primary keys"?
alfiemax has quit [Ping timeout: 265 seconds]
elphe has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
sidx64 has quit [Client Quit]
<paul_> Of course I could just "case" over the parameter manually but I think there could be a more general solution. Think https://github.com/norman/friendly_id but for creation.
Xiti` has joined #ruby
mikecmpbll has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
Exagone313 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
venmx has joined #ruby
mikecmpbll has joined #ruby
Nussi has joined #ruby
<dminuoso> paul_: Put some {id: ..., slug: ...} hidden behind a smart constructor.
<dminuoso> And then set either `id` or `slug`
<dminuoso> In mass assignment set both. The smart constructor will prevent setting both
lunarkitty7 has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
Burgestrand has quit [Quit: Closing time!]
amar has joined #ruby
<dminuoso> paul_: e.g.: ident = Class.new do; attr_reader :unIdent; def initialize(o); unless [:slug, :id].include? o.keys; @unIdent = { slug: o[:slug], id: o[:id] } end; end
<dminuoso> And then create them: [ident.new id: 1, ident.new slug: "foo"]
Beams has joined #ruby
<paul_> dminuoso: That sounds like a good idea thank you. The most general way to do this would to make a class like `ident` and turn it into a general CreationOrUpdate command object that just wraps around the active-record
<paul_> Ident.create_or_update(Post, attributes) #=> Post
<paul_> And with some delegation magic one could Post.friendly_create (if thats more readable)
<dminuoso> paul_: Where do you get that user id or slug from?
vivsoni has joined #ruby
<vivsoni> ERROR: While executing gem ... (ArgumentError)
<vivsoni> marshal data too short
<vivsoni> while install gem
amar has quit [Ping timeout: 265 seconds]
_antares_ has joined #ruby
amar has joined #ruby
Burgestrand has joined #ruby
_antares_ has quit [Ping timeout: 255 seconds]
elphe has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
amar has quit [Ping timeout: 256 seconds]
_antares_ has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EnderMB has joined #ruby
EnderMB has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 260 seconds]
sauvin has quit [Remote host closed the connection]
sauvin has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
sauvin has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 248 seconds]
sauvin has joined #ruby
nima_m has joined #ruby
sauvin has quit [Remote host closed the connection]
<paul_> dminuoso: We decided to have these global slugs as identifiers for every resource. So we hide the id (dont ask me why i forgot). The frontend then sends us these slugs back
sauvin has joined #ruby
caleBOT_ has quit [Ping timeout: 256 seconds]
caleBOT has quit [Ping timeout: 256 seconds]
sauvin has quit [Remote host closed the connection]
<paul_> And im not interested in making an exception for things that could be sent back
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
sidx64 has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
<paul_> vivsoni: which gem were you installing? Or rubygems itself?
<vivsoni> paul_: mechanize
nickjj_ has joined #ruby
<paul_> vivsoni: http://secret-garden.hatenablog.com/entry/2015/10/01/000000 seems to be the same error, but I can't speak japanese. If anyone here could get an answer from that thread it would be very helpful :)
mlkkk has joined #ruby
<vivsoni> paul_: cheking..
nickjj has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
<vivsoni> paul_: he deleted ~/.gem/
<paul_> vivsoni: And I guess you didn't do something similar, right?
<vivsoni> paul_: just after reading i did :(
<vivsoni> now reinstalling the ruby
<paul_> vivsoni: Oh that was the solution not the problem. My bad xD I thought he got that error because he accidentally deleted ~/.gem
<vivsoni> now i deleted that "~/.gem"
Beams has quit [Quit: .]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
Beams has joined #ruby
n0m4d1c has joined #ruby
n0m4d1c_ has quit [Ping timeout: 240 seconds]
nickjj_ is now known as nickjj
alex`` has quit [Quit: WeeChat 2.1]
nowhere_man has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
Axy has quit [Ping timeout: 256 seconds]
Axy has joined #ruby
Mia has quit [Ping timeout: 248 seconds]
nima_m has quit [Quit: nima_m]
amar has joined #ruby
KeyJoo has joined #ruby
nima_m has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
amar has quit [Ping timeout: 276 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc1 has quit [Ping timeout: 276 seconds]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
schneider has quit [Quit: WeeChat 2.0.1]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
sidx64 has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
marr has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
Burgestrand has quit [Quit: Closing time!]
ryzokuken has quit [Remote host closed the connection]
nima_m_ has joined #ruby
NL3limin4t0r has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
_antares_ has quit [Remote host closed the connection]
sidx64 has joined #ruby
conta has quit [Quit: conta]
Beams has joined #ruby
conta has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
robertothais has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
robertothais has quit [Ping timeout: 268 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_antares_ has joined #ruby
conta has quit [Ping timeout: 240 seconds]
nima_m has quit [Quit: nima_m]
nima_m_ is now known as nima_m
nima_m_ has joined #ruby
_antares_ has quit [Ping timeout: 268 seconds]
nima_m_ has quit [Client Quit]
nima_m_ has joined #ruby
laska has joined #ruby
chris349 has quit [Ping timeout: 256 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
XB23 has joined #ruby
ramfjord has joined #ruby
mikecmpbll has joined #ruby
dc1 has joined #ruby
marr has joined #ruby
AJA4350 has joined #ruby
nima_m_ has quit [Quit: nima_m_]
nima_m_ has joined #ruby
dc1 has quit [Ping timeout: 256 seconds]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
jamesaxl has joined #ruby
vivsoni_ has joined #ruby
vivsoni has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
nima_m_ has quit [Quit: nima_m_]
conta has joined #ruby
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT has quit [Ping timeout: 264 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
sidx64 has joined #ruby
minimalism has quit [Quit: minimalism]
contradictioned has quit [Ping timeout: 256 seconds]
ciscam has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 265 seconds]
ciscam has joined #ruby
contradictioned has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
conta has joined #ruby
contradictioned has quit [Read error: Connection reset by peer]
contradictioned has joined #ruby
plexigras has quit [Ping timeout: 268 seconds]
contradictioned has quit [Remote host closed the connection]
contradictioned has joined #ruby
alfiemax_ has joined #ruby
andikr has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
_antares_ has joined #ruby
bmurt has joined #ruby
Beams has quit [Quit: .]
contradictioned has quit [Ping timeout: 255 seconds]
cadillac_ has quit [Ping timeout: 256 seconds]
contradictioned has joined #ruby
cadillac_ has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
laska has quit [Quit: leaving]
plexigras has joined #ruby
mtkd has quit []
mtkd has joined #ruby
qnaal has joined #ruby
chmuri has quit [Ping timeout: 256 seconds]
_antares_ has quit [Remote host closed the connection]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
Beams has joined #ruby
vondruch has joined #ruby
_antares_ has joined #ruby
houhoulis has joined #ruby
QCF has joined #ruby
chocoelho_ has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
anisha_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
alfiemax_ has quit [Remote host closed the connection]
QCF has quit [Read error: Connection reset by peer]
aufi has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
<z64> is there a convention in ruby for distinguishing if i want to provide blocking/nonblocking options for the same behavior? should i accept a boolean arg or maybe provide `foo` and `foo!`?
soniya29 has joined #ruby
soniya29_ has joined #ruby
za1b1tsu has joined #ruby
ldnunes has joined #ruby
Cavallari has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
dc1 has joined #ruby
<dminuoso> z64: make them different methods
<dminuoso> z64: the interface and usage is way too different.
<z64> yeah for sure. do you think `foo!` ("bang for blocking") is too implicit? maybe `foo_sync`..
RougeT430 has joined #ruby
anisha has joined #ruby
dc1 has quit [Ping timeout: 256 seconds]
elphe has quit [Ping timeout: 256 seconds]
rouget430__ has joined #ruby
Burgestrand has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
RougeT430 has quit [Ping timeout: 276 seconds]
nfsnobody has quit [Ping timeout: 276 seconds]
jcalla has joined #ruby
nfsnobody has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
nima_m has quit [Quit: Connection closed for inactivity]
nowhere_man has quit [Ping timeout: 240 seconds]
chocoelho has joined #ruby
caleBOT_ has quit [Ping timeout: 265 seconds]
caleBOT has quit [Ping timeout: 265 seconds]
rouget430__ has quit [Quit: Leaving]
Beams has quit [Quit: .]
Zaab1t has joined #ruby
RougeR has joined #ruby
Beams has joined #ruby
_antares_ has quit [Remote host closed the connection]
qnaal has quit [Ping timeout: 276 seconds]
nit3rid3 has joined #ruby
houhoulis has quit [Remote host closed the connection]
roamingdog has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 240 seconds]
_antares_ has joined #ruby
sidx64 has joined #ruby
_antares_ has quit [Remote host closed the connection]
amar has joined #ruby
vondruch has joined #ruby
roamingdog has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
laska has joined #ruby
shinnya has joined #ruby
laska has quit [Client Quit]
alfiemax has joined #ruby
amar has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
soniya29 has quit [Ping timeout: 255 seconds]
soniya29_ has quit [Ping timeout: 260 seconds]
_antares_ has joined #ruby
cagomez has joined #ruby
contradictioned has quit [Ping timeout: 256 seconds]
oleo has joined #ruby
Cavallari1 has joined #ruby
contradictioned has joined #ruby
Cavallari has quit [Ping timeout: 268 seconds]
Cavallari1 is now known as Cavallari
cagomez has quit [Ping timeout: 240 seconds]
amar has joined #ruby
_antares_ has quit [Remote host closed the connection]
paul_ has quit [Ping timeout: 265 seconds]
Beams has quit [Quit: .]
amar has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
alfiemax has quit [Remote host closed the connection]
k0mpa has joined #ruby
elphe has joined #ruby
alfiemax has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
Beams has quit [Quit: .]
_antares_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has joined #ruby
marr has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber__ has joined #ruby
mtkd has joined #ruby
reber has quit [Read error: Connection reset by peer]
conta has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
conta has joined #ruby
mtkd has quit [Client Quit]
mtkd has joined #ruby
anjen has joined #ruby
Silthias has joined #ruby
vondruch has quit [Quit: vondruch]
Beams has quit [Quit: .]
vondruch has joined #ruby
Beams has joined #ruby
anjen has quit [Client Quit]
rippa has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
govg has quit [Ping timeout: 256 seconds]
govg has joined #ruby
Mike11 has joined #ruby
karapetyan has quit [Remote host closed the connection]
mtkd has quit []
karapetyan has joined #ruby
caleBOT__ has joined #ruby
caleBOT_ has joined #ruby
dc1 has joined #ruby
joro_ has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
mtkd has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
Asher has quit [Ping timeout: 256 seconds]
feal has joined #ruby
marr has joined #ruby
CrazyEddy has joined #ruby
Mike11 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Mike11 has joined #ruby
Mike11 has quit [Max SendQ exceeded]
dc1 has quit [Ping timeout: 276 seconds]
gnufied has joined #ruby
Asher has joined #ruby
mlkkk has quit [Remote host closed the connection]
Rapture has joined #ruby
Mike11 has joined #ruby
Mike11 has quit [Max SendQ exceeded]
dc1 has joined #ruby
kmurphy4_ has joined #ruby
kmurphy4_ has quit [Client Quit]
feal has quit [Quit: Leaving]
Mike11 has joined #ruby
Mike11 has quit [Max SendQ exceeded]
Axy has quit [Ping timeout: 248 seconds]
coderphive has joined #ruby
_antares_ has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
Burgestrand has quit [Quit: Closing time!]
dc1 has quit [Ping timeout: 265 seconds]
pastorinni has joined #ruby
kmurphy4 has joined #ruby
_antares_ has joined #ruby
joro_ has quit [Remote host closed the connection]
XB23 has quit [Quit: Leaving]
Beams has quit [Quit: .]
Beams has joined #ruby
amar has joined #ruby
dc1 has joined #ruby
memo1 has joined #ruby
gil_ has quit [Ping timeout: 248 seconds]
jamiejackson has joined #ruby
grilix_ has joined #ruby
ramfjord has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
gil_ has joined #ruby
gil_ has quit [Changing host]
gil_ has joined #ruby
ciscam has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
chouhoulis has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
_antares_ has quit [Remote host closed the connection]
chmurifree has joined #ruby
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
jrich523 has joined #ruby
millerti has joined #ruby
<jrich523> hey guys, are there any good getting started guides for programmers? most of the tutorials and such i have found are painfully slow if you know other langs
Defenestrate has quit [Client Quit]
<dminuoso> jrich523: What other languages do you know?
<dminuoso> And how would you qualify your experience with them?
<jrich523> hmm well, lets just say i have a solid understanding of OOP, I'm "expert" level with Powershell (not of much use here) and have worked with python (decent) C# (core language wise solid).. javascript/node is great until you get in to trying to sort through what frameworks to use.. basically i've been programming on and off for like 20 years
<dminuoso> jrich523: Eloquent Ruby might be to your liking.
<jrich523> awesome, thank you :)
AJA4350 has quit [Quit: AJA4350]
conta has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
guille-moe1 has joined #ruby
Cavallari has quit [Quit: Cavallari]
guille-moe has quit [Ping timeout: 256 seconds]
guille-moe1 is now known as guille-moe
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
mlkkk has joined #ruby
cschneid_ has joined #ruby
argoneus has quit [Quit: No Ping reply in 180 seconds.]
troulouliou_div2 has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
GodFather has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Remote host closed the connection]
argoneus has joined #ruby
chouhoulis has joined #ruby
nowhere_man has joined #ruby
dc1 has quit [Ping timeout: 255 seconds]
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
regedit has joined #ruby
synthroid has quit [Remote host closed the connection]
amar has quit [Remote host closed the connection]
amar has joined #ruby
ramfjord has joined #ruby
orbyt_ has joined #ruby
ericx2x has joined #ruby
<ericx2x> I have a rails project I'm trying to move from one server to another. What's the best/easiest way to copy over the DB?
<ericx2x> I pulled the project via github. I'm wondering if github had my db data on there and I can recreate my db with some kind of rake command or something?
<ericx2x> Or do I need to export the DB with pgsql and import it onto the new server?
cagomez has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
amar has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
kevinburke has joined #ruby
modin has quit [Ping timeout: 260 seconds]
Asher has quit [Ping timeout: 268 seconds]
synthroid has joined #ruby
kapil___ has quit [Ping timeout: 240 seconds]
guille-moe has quit [Quit: guille-moe]
tolerablyjake has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
modin has joined #ruby
kapil___ has joined #ruby
<z64> yes, you need to export/transer/import. you apps (at least non-static) data should not be on github
cagomez has quit [Remote host closed the connection]
aufi has quit [Remote host closed the connection]
<z64> *transfer
cagomez has joined #ruby
modin has quit [Ping timeout: 265 seconds]
amar has joined #ruby
modin has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has quit [Ping timeout: 240 seconds]
jcarl43 has joined #ruby
guacamole has joined #ruby
Asher has joined #ruby
duderonomy has joined #ruby
cyberg has joined #ruby
nima_m has joined #ruby
<cagomez> if I get `comparison of NilClass with String failed` with `foo.sort != bar.sort`, does this mean that `foo` is nil? or is `bar` nil?
RougeT430 has joined #ruby
ramfjord has joined #ruby
<apeiros> no, it means one of the values in either foo or bar is nil
<apeiros> since something responding to .sort obviously is not a string.
rouget430__ has joined #ruby
<cagomez> ah I see, so would the solution be to `.compact` both arrays before comparing?
<apeiros> the solution would be to figure out why you have nils in your collections to begin with
RougeR has quit [Read error: Connection reset by peer]
<apeiros> and since you obviously don't expect them there, figure out how to avoid them making it into your collections.
<cagomez> true
<apeiros> but of course, you can always hack your way around and slap a .compact on to it
<cagomez> ok nice, thank you
ramfjord has quit [Ping timeout: 240 seconds]
RougeT430 has quit [Ping timeout: 260 seconds]
sysvalve has quit [Quit: Leaving]
mtkd has quit [Ping timeout: 260 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
mtkd has joined #ruby
cthulchu has joined #ruby
sanscoeur has joined #ruby
woodruffw has quit [Quit: And then he took off.]
caleBOT has joined #ruby
caleBO___ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc1 has joined #ruby
mlkkk has quit [Remote host closed the connection]
caleBOT__ has quit [Ping timeout: 260 seconds]
caleBOT_ has quit [Ping timeout: 260 seconds]
_antares_ has joined #ruby
amar has quit [Remote host closed the connection]
darkhanb has joined #ruby
Raboo has quit [Ping timeout: 240 seconds]
amar_ has joined #ruby
coderphive has quit [Quit: coderphive]
physicist__ has joined #ruby
idontknowanythin has joined #ruby
<idontknowanythin> hi
amar_ has quit [Ping timeout: 248 seconds]
<idontknowanythin> hi there i have an issue
<ruby[bot]> idontknowanythin: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<idontknowanythin> whats a pastebin alternative
caleBOT_ has joined #ruby
caleBOT__ has joined #ruby
<idontknowanythin> hi this ruby script is giving me this error
dionysus69 has joined #ruby
caleBO___ has quit [Ping timeout: 248 seconds]
caleBOT has quit [Ping timeout: 248 seconds]
Raboo has joined #ruby
orbyt_ has joined #ruby
<idontknowanythin> i know you googled that and gave the first link lol
apeiros has quit [Ping timeout: 268 seconds]
<z64> and? it explains exactly what the error means
jamiejackson has quit [Ping timeout: 255 seconds]
<z64> it means this line: `JSON.parse(`sudo /usr/local/openvpn_as/scripts/sacli VPNSummary`)`, JSON.parse is being passed an empty string
<idontknowanythin> whys it an empty string
<idontknowanythin> i have zero programming knowledge
<idontknowanythin> this is just a plugin im using for solarwinds pingdom server monitor
<z64> i have no idea what it is, so i can't tell you why its returning an empty string
<idontknowanythin> i think its supposed to check a directory for openvpn licenses
shinnya has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
<idontknowanythin> help pls
<havenwood> idontknowanythin: See what this command does?: sudo /usr/local/openvpn_as/scripts/sacli VPNSummary
<havenwood> idontknowanythin: The Ruby part is working as intended. Is sacli written in Ruby? Look at it.
<havenwood> idontknowanythin: Look at: /usr/local/openvpn_as/scripts/sacli
<havenwood> idontknowanythin: file /usr/local/openvpn_as/scripts/sacli
<idontknowanythin> lemme see
<havenwood> idontknowanythin: /usr/local/openvpn_as/scripts/sacli --help
yohji has quit [Remote host closed the connection]
<idontknowanythin> ill post the sacli
<havenwood> idontknowanythin: First, check: head -n1 /usr/local/openvpn_as/scripts/sacli | grep -q ruby && echo "Ask in #ruby." || echo "Offtopic for #ruby."
<havenwood> ;-P
<havenwood> So it's a bash script that runs a python script.
<idontknowanythin> yup..
<jrich523> lol @ havenwood
Beams has quit [Quit: .]
dc1 has quit [Read error: Connection reset by peer]
dc1 has joined #ruby
<havenwood> idontknowanythin: The first line, `#!/usr/bin/env bash`, is informally called a "shebang." You can allow a file to be executed with `chmod +x FILENAME`, then point the shebang at what executable should be used to execute the file.
mohsen_1 has quit [Quit: Connection closed for inactivity]
<havenwood> idontknowanythin: The `/usr/bin/env` command is idiomatic to use in a shebang. It'll find the right executable for you so you don't have to hardcode the path. See: man 2 execve
<idontknowanythin> thanks ill take a look
conta has joined #ruby
<havenwood> idontknowanythin: So this line is saying, run this file with bash: https://gist.github.com/mikesavtechnology/4e406918a8fab6fcaff943eb582425ea#file-gistfile1-txt-L1
_antares_ has quit [Remote host closed the connection]
<havenwood> idontknowanythin: The square braces in bash are an alias to the `test` utility. See: man test
<havenwood> idontknowanythin: The -z flag checks if the variable string length is zero.
_antares_ has joined #ruby
<havenwood> idontknowanythin: This is bash. So you can ask about it in #bash.
<havenwood> idontknowanythin: They then export some variables, so those env vars can be seen by the python script.
<idontknowanythin> so whys json no problem
<idontknowanythin> its really strange it works on one server
<idontknowanythin> but not another
<havenwood> idontknowanythin: And then the final line, a python script is invoked with the -c flag, so the argument is the script being run.
troulouliou_div2 has quit [Remote host closed the connection]
<havenwood> idontknowanythin: Does one have OPENVPN_AS_NOEXPORT exported and the other doesn't?
<havenwood> idontknowanythin: printenv OPENVPN_AS_NOEXPORT"
<idontknowanythin> lemme see
nitric has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
amar has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
mohsen_1 has joined #ruby
cek has joined #ruby
mtkd has quit []
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
rouget430__ has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
cek has left #ruby [#ruby]
apeiros has joined #ruby
shinnya has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
mlkkk has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9.1]
ramfjord has joined #ruby
vivsoni_ has quit [Read error: Connection reset by peer]
vivsoni__ has joined #ruby
dc1 has quit [Ping timeout: 255 seconds]
memo1 has quit [Ping timeout: 256 seconds]
grilix has joined #ruby
AgentVenom has joined #ruby
mtkd has quit []
venmx has joined #ruby
grilix_ has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
nickjj has joined #ruby
bogdan has joined #ruby
weird_error has joined #ruby
coderphive has joined #ruby
bogdan has quit [Client Quit]
nitric_ has joined #ruby
nebben has joined #ruby
chris349 has joined #ruby
_antares_ has quit [Remote host closed the connection]
za1b1tsu has quit [Quit: WeeChat 2.1]
nitric has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 255 seconds]
chris349 has quit [Client Quit]
conta has quit [Ping timeout: 256 seconds]
caleBOT_ has quit [Remote host closed the connection]
caleBOT__ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
ramfjord has joined #ruby
apeiros has joined #ruby
dc1 has joined #ruby
reber__ has quit [Ping timeout: 268 seconds]
soniya29_ has joined #ruby
soniya29 has joined #ruby
<idontknowanythin> im back
reber__ has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
nima_m has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 256 seconds]
dc1 has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
nima_m has joined #ruby
<idontknowanythin> still need halp pls
<Eiam> what is this code...
<Eiam> why are you calling json.parse on a backtickd command?
<Eiam> you have no failure cases managed at all
nima_m has quit [Client Quit]
<idontknowanythin> this code is a ruby script used on solarwinds pingdom to monitor openvpn licenses
<Eiam> idontknowanythin: wrap your execs in a simple struct to handle failure and pass success onto future objects
nima_m has joined #ruby
<idontknowanythin> sorry i dont know any programming at all
<Eiam> directly accessing the supposed result back in line 4
<Eiam> yeah, yikes
halt- has joined #ruby
Dbugger has joined #ruby
grilix has quit [Read error: Connection reset by peer]
<Eiam> idontknowanythin: you are getting that error because your line 3 isn't getting what it expects.
grilix has joined #ruby
<Eiam> even if it was, line 4, line 8 can also blow up
<Eiam> probably line 9 as well
<Eiam> idontknowanythin: whats sudo /usr/local/openvpn_as/scripts/sacli VPNSummary output
<idontknowanythin> a bash script
<Eiam> lol, i hope it doesn't output a bash script
<Eiam> when you run it, what is the result
<Eiam> no no, RUN it
nima_m has quit [Quit: nima_m]
<Eiam> "sudo /usr/local/openvpn_as/scripts/sacli VPNSummary"
ldepandis has joined #ruby
nima_m has joined #ruby
<idontknowanythin> { "n_clients": 16 }
<z64> thats not printing to STDERR is it? `foo` will only capture things flushed to STDOUT
c0ncealed1 has quit [Remote host closed the connection]
<idontknowanythin> why is it giving a json error
<idontknowanythin> octect
c0ncealed1 has joined #ruby
<z64> do this: go to your terminal and run "irb", then run your sudo command
<Eiam> ^
<Eiam> its failing because its not getting the right input =)
nima_m has quit [Client Quit]
<Eiam> user_output = `sudo /usr/local/openvpn_as/scripts/sacli VPNSummary`; puts user_output
nima_m has joined #ruby
<idontknowanythin> not following..
<idontknowanythin> sorry
pastorinni has quit [Ping timeout: 240 seconds]
nima_m has quit [Quit: nima_m]
alfiemax has quit [Remote host closed the connection]
nima_m has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
jrafanie has joined #ruby
dc1 has joined #ruby
lytol has joined #ruby
dyyylan has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
<z64> idontknowanythin: at your terminal, type irb. you should get a prompt. right?
alfiemax has quit [Ping timeout: 260 seconds]
dc1 has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
mlkkk has quit [Remote host closed the connection]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
ramfjord has joined #ruby
Quentinius has joined #ruby
caleBOT_ has joined #ruby
caleBOT has joined #ruby
TomyWork has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
nima_m has quit [Quit: nima_m]
caleBOT_ has quit [Ping timeout: 256 seconds]
caleBOT has quit [Ping timeout: 256 seconds]
nima_m has joined #ruby
samosaphile has joined #ruby
bzb has joined #ruby
alfiemax has joined #ruby
Quentinius has quit [Quit: Mutter: www.mutterirc.com]
alfiemax has quit [Ping timeout: 276 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<audy> 3
<audy> hams will certainly kill him
n0m4d1c_ has joined #ruby
conta has joined #ruby
n0m4d1c has quit [Ping timeout: 260 seconds]
za1b1tsu has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
dc1 has joined #ruby
conta has quit [Ping timeout: 260 seconds]
nima_m_ has joined #ruby
conta has joined #ruby
dc1 has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
karapetyan has quit [Remote host closed the connection]
nima_m has quit [Ping timeout: 256 seconds]
nima_m_ is now known as nima_m
sameerynho has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
conta has quit [Ping timeout: 256 seconds]
armyriad has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
armyriad has joined #ruby
chat_ has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
apeiros has quit [Remote host closed the connection]
soniya29_ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
mohsen_1 has quit []
mohsen_1 has joined #ruby
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
_aeris_ has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
_aeris_ has joined #ruby
elphe has joined #ruby
za1b1tsu has joined #ruby
nima_m has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
tolerablyjake has joined #ruby
nythocrox has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
nythocrox has quit [Client Quit]
nythocrox has joined #ruby
<nythocrox> hey ladies and gents! I have a problem in ruby: i need to be able to input a number and it return that line number from a text file. inside a loop do'd script
synthroid has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 240 seconds]
<idontknowanythin> yea i do get a prompt
mtkd has quit []
duderonomy has joined #ruby
sanscoeur has quit [Remote host closed the connection]
dc1 has joined #ruby
SeepingN has joined #ruby
Cyrum has joined #ruby
joro_ has joined #ruby
<nythocrox> where do i input the filename?
elphe has joined #ruby
icarus has quit [Quit: Lost terminal]
dc1 has quit [Ping timeout: 240 seconds]
caleBOT__ has joined #ruby
caleBOT_ has joined #ruby
<z64> idontknowanythin: you enter ruby code at that prompt. enter your sudo command in backticks (`) exactly as you had it in your script
cadillac_ has quit [Ping timeout: 260 seconds]
tvw has quit [Remote host closed the connection]
<z64> it will show you that its getting an empty string back
<nythocrox> i want it to run from a script as input gets.chomp
elphe has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
nolanv has quit [Quit: WeeChat 2.0.1]
schleppel has quit [Read error: Connection reset by peer]
nythocrox has quit [Quit: REALITY.SYS Corrupted: Re-boot universe? (Y/N/Q)]
Cyrum has quit [Remote host closed the connection]
Cyrum has joined #ruby
sidx64 has joined #ruby
nythocrox has joined #ruby
mozzarella has quit [Quit: WeeChat 2.0.1]
rikkipitt has joined #ruby
schleppel has joined #ruby
caleBOT has joined #ruby
caleBO___ has joined #ruby
elphe has joined #ruby
ur5us has joined #ruby
plexigras has quit [Ping timeout: 276 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
caleBOT__ has quit [Ping timeout: 256 seconds]
caleBOT_ has quit [Ping timeout: 256 seconds]
venmx has quit [Ping timeout: 256 seconds]
Sembei has joined #ruby
duderonomy has quit [Client Quit]
venmx has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
elphe has quit [Ping timeout: 276 seconds]
Scriptonaut has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
<Scriptonaut> hey, I'm wondering which is more conventional, passing a file object or a filename to a method (initializer)
duderonomy has quit [Client Quit]
<Scriptonaut> should I open the file then pass the file object as an argument? Or just pass the absolute path? (that's what I'm doing right now)
<Scriptonaut> it will only be opened once during the whole run of the program
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
alfiemax has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
memo1 has joined #ruby
duderonomy has joined #ruby
synthroid has joined #ruby
duderonomy has quit [Client Quit]
venmx has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
dc1 has joined #ruby
pastorinni has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
venmx has joined #ruby
dc1 has quit [Ping timeout: 255 seconds]
memo1 has quit [Ping timeout: 260 seconds]
elphe has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ramfjord has quit [Ping timeout: 260 seconds]
elphe has quit [Ping timeout: 248 seconds]
_zach has left #ruby [#ruby]
ramfjord has joined #ruby
shinnya has joined #ruby
elphe has joined #ruby
za1b1tsu has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Quit: Leaving...]
elphe has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
sidx64 has quit [Ping timeout: 268 seconds]
synthroid has quit []
oleo has quit [Quit: Leaving]
mtkd has joined #ruby
alfiemax has joined #ruby
memo1 has joined #ruby
yokel has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jenrzzz has joined #ruby
yokel has joined #ruby
sphenxes has quit [Quit: Leaving]
minimalism has joined #ruby
grilix has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
elphe has joined #ruby
oleo has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
reber__ has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
biberu has quit []
ldnunes has quit [Quit: Leaving]
sameerynho has quit [Ping timeout: 268 seconds]
<idontknowanythin> @z64 hey
<idontknowanythin> so when you told me to do irb
<idontknowanythin> what are you trying to get out of that?
kevinburke has quit [Quit: Connection closed for inactivity]
n0m4d1c_ has quit [Remote host closed the connection]
samosaphile has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
<idontknowanythin> im not a dev and im not able to learn anything related to languages. even if you try to teach me all these things i dont understand it
<idontknowanythin> i didnt write this script im just troubleshooting this on a linux box
mlkkk has joined #ruby
memo1 has joined #ruby
za1b1tsu has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
elphe has joined #ruby
jrafanie has quit [Client Quit]
Inside has joined #ruby
apeiros has joined #ruby
<Inside> Hi guys. I'm trying to install sciruby, but uhhh it needs libzmq3-dev libczmq-dev
<Inside> wait. this is a centos question
elphe has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
ur5us has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
venmx has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
kmurphy4_ has joined #ruby
mikecmpbll has joined #ruby
karapetyan has joined #ruby
za1b1tsu_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
<jrich523> i have a question, perhaps a tad strange (new to ruby, forgive me).. Im looking over someones code and in this file (just a class definition) there is a refernce to a variable (i assume?), that looks something like: client.nic.new attr how on earth do i go about figuring out what client is?
za1b1tsu_ has quit [Ping timeout: 264 seconds]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
ldepandis has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
k0mpa has quit [Ping timeout: 255 seconds]
elphe has joined #ruby
robertothais has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
ruby[bot] has joined #ruby
<idontknowanythin> help me out yo
elphe has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Remote host closed the connection]
<Zarthus> we're not really a channel to spoonfeed answers right into your mouth.
nythocrox has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
<Zarthus> if you don't want to learn and just answers, you should hire a guy to do it for you.
<jrich523> i thought someone walked you through like 90% of it
n0m4d1c has joined #ruby
<jrich523> and you needed to check the bash/python script?
<idontknowanythin> the script is fine
<jrich523> JSON::ParserError: A JSON text must at least contain two octets!
<havenwood> jrich523: I'd say check `client.class` and `client.method(:nic).source_location` for starters.
<jrich523> im pretty sure its telling you the same thing from before
<jrich523> you dont have the data you think you have
<jrich523> thanks havenwood
elphe has joined #ruby
kmurphy4_ has quit [Quit: kmurphy4_]
<havenwood> idontknowanythin: If you had a Ruby question we could answer it for you. As several folk have told you, you're shelling out and the data the bash/python script is returning can't be parsed as JSON because it's an empty string.
chouhoulis has quit [Ping timeout: 240 seconds]
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
<idontknowanythin> sorry i dont know wtf an empty string means
<jrich523> ""
<idontknowanythin> in layman terms
paraxial has joined #ruby
<jrich523> if i asked what your name was
<jrich523> and you just looked at me blankly
<havenwood> idontknowanythin: https://ruby-doc.org/core/String.html
<idontknowanythin> so empty aprostrophes
<havenwood> idontknowanythin: An empty string literal is: ""
<idontknowanythin> well if i remove it
<jrich523> well you're missing the point
ramfjord has quit [Ping timeout: 248 seconds]
<havenwood> idontknowanythin: You should hire someone to help you code if you don't want to learn to code.
<havenwood> idontknowanythin: This channel is for Ruby questions or people learning Ruby.
eckhardt has joined #ruby
ramfjord has joined #ruby
<havenwood> idontknowanythin: You could try the #python or #bash channels, since the part going wrong is the bash/python script return value.
<idontknowanythin> oh
<tobiasvl> or #learnprogramming even
Cthulu201 has quit [Ping timeout: 268 seconds]
<idontknowanythin> do u remember which line is the empty string
<jrich523> hell, run the bash/python script and take the output and paste it here, https://jsonlint.com/
elphe has quit [Ping timeout: 265 seconds]
<havenwood> !kick idontknowanythin "Come back if you decide you want to learn Ruby!"
idontknowanythin was kicked from #ruby by ruby[bot] ["Come back if you decide you want to learn Ruby!"]
coderphive has quit [Quit: coderphive]
clemens3 has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
elphe has joined #ruby
cthulchu_ has joined #ruby
SCHAAP137 has joined #ruby
SCHAPiE has quit [Ping timeout: 260 seconds]
SCHAAP137 is now known as SCHAPiE
ta_ has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
mohsen_1 has quit [Quit: Connection closed for inactivity]
cthulchu has quit [Ping timeout: 260 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
apeiros has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
white_lilies has joined #ruby
ryzokuken has joined #ruby
alfiemax has joined #ruby
sytherax has joined #ruby
<sytherax> hi
<sytherax> i am wondering if rails if still worth learning?
<sytherax> I wonder that my rails knowledge can be forwarded to other server side languages?
<sytherax> in the future if the need arises
<sytherax> I want to develop a product, so need to prototype quickly
ramfjord has joined #ruby
bzb has quit [Quit: Leaving]
<apeiros> sytherax: yes, it is. yes, you can. there, did that help you?
elphe has quit [Ping timeout: 264 seconds]
<havenwood> sytherax: Yes, learn Rails. Many languages have Rails-clone frameworks. Much of the Rails learning is generalizable.
<sytherax> do you mean that with facepalm/sarcasm, or honestly :P
<havenwood> sytherax: There's a #rubyonrails channel that's specific for Rails, btw.
<apeiros> I mean that honestly.
<sytherax> ah ok,
<havenwood> sytherax: Ruby is a great language. Rails is a framework that's worth learning.
<sytherax> tried #rails was invalid but ty
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Zarthus> keep in mind that asking a question in a rails/ror related channel about "should i do this thing" will almost always be positive. *shrug*
<havenwood> sytherax: If you register your nick, you can talk in #rubyonrails.
<Zarthus> you should do your own research wether or not you think it's beneficial for you to dedicate your time to it.
<havenwood> sytherax: Alternatively you could learn Hanami or Roda. ;-)
<Zarthus> if you're never gonna do webdev and don't aim to be employed as a webdev, it's maybe not worth your time.
<havenwood> sytherax: http://hanamirb.org/
<sytherax> hmm what are those?
<sytherax> alternative to rails?
<jrich523> why do you want to learn it?
<havenwood> sytherax: Yes. Hanami is closer to Rails but is also very nicely done. Roda is closer to Sinatra, but I love it for APIs.
<sytherax> I work as software engineer, but not much on the web side, as it seemed fugly
<sytherax> before
<sytherax> lol
<jrich523> it is lol
<havenwood> sytherax: Here's a writeup on Hanami: https://ryanbigg.com/2018/03/my-thoughts-on-hanami
<jrich523> ive been trying to get up to speed with node stuff for like 2 years now
<sytherax> but slowly, I have come to realize, its the only tried and tested method, for cross platform gui/apps,etc
<sytherax> nobody has come up with a better alternative yet.
<jrich523> ?!?!
<sytherax> or failed to get traction i suppose
<jrich523> cross platform... rails?!
<jrich523> i wish
<sytherax> no, i mean web dev in general
chocoelho has quit [Ping timeout: 265 seconds]
<jrich523> oh, yeah thats the goal of Node etc and why everyone loves it
<sytherax> i was referring to client side.
<jrich523> thats a horrible hot mess
nythocrox has joined #ruby
<sytherax> I don't really like node
<jrich523> and even speaking of rails in that sense
<jrich523> im forced to do some work with Foreman, which is why im working in ruby at all
<sytherax> I think the client side shouldn't be tied to js. Hopefully wasm will solve that
<jrich523> its rails.. but... the front end is react.. so they've got webpack in there as well
<sytherax> Lol, I feel your pain
caleBO___ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
<jrich523> lol meh, whats being asked of me right now is sort of a tad crazy.. but i'll put my best foot forward lol
<sytherax> doing stuff for others which appears mumbled jumbled.
nythocrox has quit [Quit: Not that there is anything wrong with that]
<sytherax> *hacked to work
<jrich523> i kinda suspect thats how this problem will get "fixed"
<sytherax> you appear to be the guy who gets to fix bug
cschneid_ has quit [Remote host closed the connection]
<jrich523> yeah, im just "that guy", jsut fill in gaps
<sytherax> I am confused if I should start with Hanami, roda or rails
cschneid_ has joined #ruby
<Inside> Do I need to uninstall nginx and then reinstall everything from scratch or can I Just install the 5.3.1 gem and point nginx to it?
<Inside> oopsss
<jrich523> ive got good broad knowledge and an ability to learn... *shrugs*
<Inside> silly irrsi
<sytherax> I am looking for plenty of community support,
<jrich523> honestly, i wouldnt look at rails
<sytherax> Not really looking to make a well designed app from the start
nythocrox has joined #ruby
<jrich523> shhh dont tell anyone but i think ruby is a horrible and cryptic lang that needs to die
<sytherax> i want to prototype quickly
<jrich523> but maybe some time here will change my mind :)
<jrich523> what i do like (after dealing with javascript) is real classes... good lord..
<sytherax> jrich523: wat would you choose?
<sytherax> for quick web prototype
<jrich523> hmm
<jrich523> well if you just want quick and dirty, node for sure
<sytherax> rails seems really popular, hence I think i can tackle future issues quickly with community support
<jrich523> pick a whole package.. (MEAN for example)
Cthulu201 has joined #ruby
<Scriptonaut> I actually hated the "class" thing they added to es6
<jrich523> lol cuz its not classes
<Scriptonaut> it's just hiding how javascript actually works, it's not a classical OOP language
<jrich523> its a keyword to wrap up the BS
<jrich523> yup
mtkd has quit []
<Scriptonaut> I like the prototypal inheritance model
<jrich523> i mean it kinda sorta works... but.. not really
<Scriptonaut> a lot of people just can't seem to wrap their head around it so I get why they did it
cschneid_ has quit [Ping timeout: 248 seconds]
<jrich523> it just seems like a lot of extra work to do stuff that pretty much every other lang has
elphe has joined #ruby
<Scriptonaut> also I'm surprised you think ruby is cryptic, it reads more like english to me than any other language
<jrich523> really?!?!
<Scriptonaut> and it was designed with that in mind
<jrich523> whole lot of symbols
<Scriptonaut> symbols? Like :some_symbol or you mean like random operators?
<jrich523> i do a lot of powershell, and people get mad if i use % or ? for foreach-object and where-object
<jrich523> no generic symbols... but the Symbol is kinda odd too, but i see its value
<sytherax> I don't really hear of MEAN these days as I use too in like 2013-16
<sytherax> its fad seems to have died down?
<jrich523> yeah was just the first one that came to mind, cuz i forgot the REACT one
<jrich523> not at all
<jrich523> but to your point, its only good for prototyping
<jrich523> because, well, Mongo blows
<jrich523> mongo is great for prototyping
<sytherax> i am looking to use Couchbase rather.
<jrich523> so from a real use case, those full frameworks are worthless
<sytherax> I feel I need a query language
karapetyan has joined #ruby
<jrich523> agreed, my top choice for nosql
<sytherax> so I can leverage N1QL
<jrich523> i started to really like Graphql
Azure|dc has joined #ruby
mlkkk has quit [Remote host closed the connection]
<jrich523> and there is a new version out too that i havent had a chance to look at but sounds neat
Azure has quit [Read error: Connection reset by peer]
<jrich523> but if you're looking to prototype, those full stacks are pretty decent
nythocrox has quit [Ping timeout: 248 seconds]
<jrich523> you just have to accept whatever tool they want you to use... and if you start to google, you'll probably find something better to replace X with.. and then its a horrible rabbit hole..
elphe has quit [Ping timeout: 240 seconds]
<jrich523> i guess the advantage of rails would actually be less choices
<Scriptonaut> when I was first using rails I was annoyed how it so heavily relies on convention, but you start to appreciate it over time
<Scriptonaut> like in rails, there *is* a right way to do things
<Scriptonaut> and wrong ways
<Scriptonaut> whereas with other frameworks/languages it's like "does it work? Cool"
alfiemax has quit [Ping timeout: 240 seconds]
<jrich523> lol yup
<jrich523> the node world is just overloaded with opinionated stuff... which is fine if you're on top of the tech.. but.. for people who want to get started doing full stack... its about impossible
<sytherax> I might also give a shot at python django or flask
<jrich523> flask is pretty neat
karapetyan has quit [Ping timeout: 260 seconds]
<Scriptonaut> I haven't worked in django since like 2011, is it still widely used?
<jrich523> but i'd say that is only good internally (wouldnt trust it at any scale)
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jrich523> its more widely used than it should be i guess is how i feel lol
<Scriptonaut> ah
<Scriptonaut> kinda like PHP
<jrich523> i mean, to be fair, the market is still like 60% php
<Scriptonaut> lol ya
<jrich523> lol
<jrich523> lol so there is your answer, go learn PHP :D
<Zarthus> 40% of it is probably worpress
<Scriptonaut> I haven't worked in PHP since like 2009 and I have no desire to
<Zarthus> so learn wordpress instead
<Scriptonaut> I always hated PHP
<Scriptonaut> I'm actually mostly sick with webdev
<Scriptonaut> though there is some really cool stuff nowadays
<sytherax> this is making me doubt my rails choice and ruby in general
<sytherax> lol
white_lilies has quit [Ping timeout: 260 seconds]
<jrich523> i host like 4 wordpress sites :-/
elphe has joined #ruby
<Scriptonaut> in terms of getting a job, rails is still very common
<havenwood> sytherax: Ignore HN.
<apeiros> HN, the 4chan for developers…
<jrich523> lol
<Zarthus> jrich523: you're part of the problem then :P
<jrich523> lol meh, i didnt want to dev something for them
<Zarthus> although you're probably a more competent host than most of the wordpress hosts.
<apeiros> sorry, I meant *hackers*, of course.
<jrich523> it was the fastest way to get a site up and working
Zaab1t has quit [Quit: Zaab1t]
<jrich523> and my wife can easily manage the content
<Zarthus> you're not wrong.
<Scriptonaut> when I need to host shit really damn fast I use a ruby oneliner hehe
<jrich523> themes were the issue
<jrich523> i didnt want to style it
<Scriptonaut> ruby -run -e httpd . -p 9090
<jrich523> wordpress has a LOT of options, and with the new layouts, you can make it look less like wordpress
<Zarthus> I think I could probably get my mother to write Markdown
<Zarthus> and get her to use jekyll/Hugo instead
<jrich523> i was screwing with a thor cli-template the other day and it put the detailed help in md files and i was like aww thats super cool
Inside has left #ruby [#ruby]
<jrich523> until you go to view it
nit3rid3 has quit [Quit: Leaving]
<Zarthus> oh?
elphe has quit [Ping timeout: 265 seconds]
<jrich523> yeah, i mean, i guess deep down i knew it wasnt going to be as pretty as i hoped... but still a let down
<Zarthus> having played with ruby, I actually really like clap
<Zarthus> er, with rust.
<jrich523> the only reason i leaned towards thor was the cli-template, it had tab complete (not sure it actually works tho)
<Zarthus> https://i.imgur.com/SQRu4eu.png (not markdown, but it sitll looks good)
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jrich523> well this was more so the details of a command, not the flags
<jrich523> the flag stuff (all high level help) looked basically just like that
<Zarthus> i guess i never needed extensive descriptions beyond manpages
<jrich523> cant really say that i do either... it was just there, and i guess i just had unrealistly high expectations.. and i dont know why lol
<Zarthus> i can see in the thor docs it has a long_desc argument, which is nice.
<Zarthus> but i wouldn't see the point in rendering it in markdwn
cschneid_ has joined #ruby
<jrich523> which, oddly has nothing to do with the MD files (its all mildly weird to me)
elphe has joined #ruby
Echo6 has quit [Quit: Leaving]
<jrich523> mostly i liked that it gave me a decent project structure to get going with.. and it said it had tab complete (im not sure i believe them yet, havent tested)
<sytherax> I am really looking forward to web dev with rust
<Zarthus> sytherax: you already can do it, but it's missing some features
KeyJoo has quit [Read error: Connection reset by peer]
<sytherax> what features?
<havenwood> ^ Rust native extensions in Ruby
alfiemax has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
elphe has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
<Zarthus> sytherax: the biggest problem is probably that all(?) of them require the nightly version of rust, and none of them are stable (>1.0.0). I don't see something super obvious missing at quick glance though, I just remember people complaining :P
alfiemax has quit [Ping timeout: 260 seconds]
<sytherax> what I like about rust is, it seemed to have gather people from pure computer science theorists, web dev, C++ programmers :P
<sytherax> the community.
<sytherax> i like the Option/Result type as oppose to null reference checks. Just avoids a whole heap of headaches.
<sytherax> later
elphe has joined #ruby
<sytherax> I managed to write a unix shell-sh like without ever have to go through a debugger. :D
caleBOT has joined #ruby
caleBOT_ has joined #ruby
robertothais has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jcalla has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
noobineer has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
ramfjord has joined #ruby
noobineer has quit [Ping timeout: 264 seconds]
noobineer has joined #ruby
za1b1tsu_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
nythocrox has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
elphe has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
alfiemax has joined #ruby
pastorinni has quit []
Scriptonaut has left #ruby [#ruby]
Asher has joined #ruby
robertothais has joined #ruby
mikecmpbll has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
robertothais has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
sytherax has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 256 seconds]
nitric_ has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
tuelz has quit [Ping timeout: 256 seconds]