Categories
User Help Web Pro

How can I create a user that is not allowed to change its own password on mediawiki?

I am currently creating a mediawiki where there are administrators and writers, and everyone else in the project only needs read access. Our current approach is having all the read-only users share a same login for accessibility. How can I ensure that this user is not able to change its own password?

Categories
Ask Chemistry

What are the bad side effects of crystal meth? And what are the good ones?

a dealer is likely to mention only the high’s. A doctor only the bad ones. but addmitting that every drug has some good qualities about it, or else why else would anyone use it? what I want is a complete list of all the goods and bads without any of the propaganda because I really […]

Categories
Linux Mastering Development

linux capabilities to read environment variables?

I’d like to run a service as a non-privileged user, but it needs to bind to a system port number (i.e. less than 1024), so I give it setcap ‘cap_net_bind_service=+ep’ <path for service>, all good. Problem is, on startup, the service reads environment vars and for some reason it can’t do that when it has […]

Categories
Linux Mastering Development

Configure kmail for removing mails in gmail

I am trying to configure correctly my mail manager, kmail, and I am having some trouble removing emails. If I remove a message in the inbox using the gmail web client, the message is automatically removed from All Mail, but if I remove the message from the inbox using kmail, it simply removes the label, […]

Categories
Linux Mastering Development

gajim: status change from “Away” to “Available” does not work sometimes

I have set “Away after 5 minutes” in: Gajim -> Preferences -> Status This mostly works as expected: After 5 minutes of inactivity, my status automatically changes to “Away”. When I come back and move mouse, or type on keyboard, the status changes back to “Available”. But it only works 95% of the time. Sometimes, […]

Categories
Artificial Intelligence (AI) Mastering Development

Detect object in video and augment another video on top of it

I’m trying to detect an object in a video (with slight camera movement), and then augment another video on top of it. What is the simplest approach to do that? For instance, let’s assume I have this simple video of a couch [**HERE**][1]. Now I want to augment the right cusion with a human or […]

Categories
Mastering Development

DBeaver / PostgreSQL: “Error: database already exists”, but I can’t find it

I want to create database called “President” by rightclicking on PostgreSQL and selecting Create Database. However, I get the error in the screenprint below. I can create databases with other names like SomeOtherDatabase and SomeOtherDatabase2 (see screenprints). Any ideas how I can find and delete the database “President” that seems to exist already? UPDATE!! If […]

Categories
Mastering Development

How to have Express.js server file using router path as root?

I have a directory structure like this root private js css index.html app.js privateRouter.js … In my index.html I reference the js and css files using relative path like this: <link rel=”stylesheet” href=”css/index.css”/> <script src=”js/index.js”></script> On the server side I have a private router checks for authentication before serving these files: In app.js: app.use(“/private”, privateRouter); […]

Categories
Mastering Development

return the entire row with has the max value in numpy – python

val = np.array([[1, 3], [2, 5], [0, 6], [1, 2] ]) print(np.max(val)) 6 I also want to print the row [0,6]. with axis it returns all the value from other rows as well. argmax doesnt return the row index.

Categories
Mastering Development

Confused by javascript for loop behaviour

I’d like to preface this by saying I’m relatively new to javascript. I’m benchmarking some very simple webGL against native javascript for loops. I’m generating a random array, then performing some arbitrary mathematical operation on every item in the array. On my first test, I was astonished to see that the webGL code was outperformed […]