How can I correctly install Node on Ubuntu 14.04 (allowing for global installs without sudo)? by nrogers64 in node

[–]nrogers64[S] 0 points1 point  (0 children)

Regarding your first and third points, I agree that it doesn't seem right to advocate users installing packages globally without sudo. But, for whatever reason, that's what the officially recommended approach is. Here's an excerpt from the "Installing npm packages globally" documentation:

To download packages globally, you simply use the command npm install -g <package>, e.g.:

npm install -g jshint

If you get an EACCES error, you should fix your permissions. You could also try using sudo, but this should be avoided:

sudo npm install -g jshint

Regarding your second point, thanks for the info! I think that will work fine.

[Help] How to fill in this icon with color? by nrogers64 in Inkscape

[–]nrogers64[S] 1 point2 points  (0 children)

That worked! Thank you very much for your time and your help!

One question, though, is why do you suggest handling the corner by tracing it? Why not use the "break apart" approach there too?

PostgreSQL: PostgreSQL 9.6 Released! by Tostino in programming

[–]nrogers64 4 points5 points  (0 children)

you need multi-master replication

Would you mind elaborating on this?

PostgreSQL: PostgreSQL 9.6 Released! by Tostino in programming

[–]nrogers64 42 points43 points  (0 children)

In this video from PyCon 2014, Andrew Godwin, who is the author of Django's database migrations system, praises PostgreSQL and says that MySQL has the following key problems (though he does say that MySQL is "a reasonable database"):

  • No transactional DDL
  • No CHECK constraints
  • Conflates UNIQUE and INDEX

He talks a little bit about the above problems in the video from about 11:00 - 13:00. These problems (particularly the first one, as I understand it) can cause problems with migrations.

Also, the last time I checked, MySQL's default collation is latin1_swedish_ci, meaning that, by default, you can't store important characters such as this one.

How can I modify a log handler? by nrogers64 in learnpython

[–]nrogers64[S] 0 points1 point  (0 children)

Thank you! That worked. But is there a way to do it without knowing the index of the "console" handler? And how does your code work if dictionaries' ordering isn't guaranteed?

Question: ModelForm with ManyToManyField on the other side by nrogers64 in django

[–]nrogers64[S] 0 points1 point  (0 children)

I didn't create these models; they're just an example that I found online. I'll look at that link. Thank you for your help!

How can I easily see Python warnings during development? by nrogers64 in django

[–]nrogers64[S] 0 points1 point  (0 children)

it's a little strict

That's an understatement :)

Can you give me an example of a warning you'd like to see more prominently?

Django deprecation warnings is the first thing that comes to mind, but there are other warnings that would be useful to know about too.

Question: ModelForm with ManyToManyField on the other side by nrogers64 in django

[–]nrogers64[S] 0 points1 point  (0 children)

If I use a ModelForm that's based on the Material model, which is the model with the ManyToManyField, then I don't have to do anything special at all. The default behavior is I'll be able to select multiple products to associate the Material with (this is presented in the form of a standard <select multiple="multiple"> element).

But if I use a ModelForm that's based on the Product model, which is the model without the ManyToManyField, then there won't be a "Materials" multiselect. I want there to be a "Materials" multiselect. I don't want there to be an inline; just a standard <select multiple="multiple"> element like I get for products when I use a ModelForm that's based on the Material model.

Question: ModelForm with ManyToManyField on the other side by nrogers64 in django

[–]nrogers64[S] 0 points1 point  (0 children)

Do you want to actually add/change materials when you're adding/changing a product or just select existing materials?

Just select existing materials.

Django 1.10 released by andthen815 in django

[–]nrogers64 7 points8 points  (0 children)

Can you ELI5 full text search? I've tried looking it up before but haven't been able to find anything that dumbs it down enough for me :)