_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
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
<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?
<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]
<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
<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
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]
<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?
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.
<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
<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]
<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