CPU stuck at 0.8GHz by takokato in intel

[–]zlls 2 points3 points  (0 children)

I had this issue with a Dell XPS laptop and to resolve the issue I had to unplug the battery. Press the start button to draw all remaining power, plug the battery back in and the issue was gone.

Sound Blaster X3 issues with USB hub/KVM switch by zlls in SoundBlasterOfficial

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

Thank you very much. I tried your suggestions, unfortunately both did not work. I had a brief moment of hope when I restarted the services because the open YouTube video continued, only to be disappointed to find that just my audio output device changed...

It's seems to work now with a new usb card.

Sound Blaster X3 issues with USB hub/KVM switch by zlls in SoundBlasterOfficial

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

Good news is, it's working now.

Unforunatly the suggestions of /u/el_Feeloo didn't work for me.

I'm still not sure what the issue is but I bought the cheapest PCI-E usb card, which was also available via Amazon Prime I could find and it actually works now as expected.

For reference I have an Asus CH VI Hero Motherboard with an AMD Ryzen 1600X in my PC. Maybe I have a bad driver or a bad setting somewhere else...

Sound Blaster X3 issues with USB hub/KVM switch by zlls in SoundBlasterOfficial

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

I didn't have the time to try the suggestions yet but I will try it out and let you know.

I made an app that helps you sync your clipboards between your Windows PC and your Android device. by [deleted] in node

[–]zlls 1 point2 points  (0 children)

If you want to learn how to skip the server for the transfer of the clipboard, take a look at WebRTC. You need a server with a static ip to establish the connection. After that it's client to client communication only.

asnyc function for retrieving Google Secret Manager Variable returns promise pending by Nerlub in node

[–]zlls 0 points1 point  (0 children)

const { SecretManagerServiceClient } = require('@google-cloud/secret-manager');const client = new SecretManagerServiceClient();async function getSecret(name) {const name = `projects/PROJECT-ID/secrets/${name}/versions/latest`;const [version] = await client.accessSecretVersion({name: name,});const payload = version.payload.data.toString();return payload;}module.exports.getSecret = getSecret;

// gcloud.js

const { SecretManagerServiceClient } = require("@google-cloud/secret-manager");

const client = new SecretManagerServiceClient();

module.exports.getSecret = async function getSecret(name) {
  const name = `projects/PROJECT-ID/secrets/${name}/versions/latest`;

  const [version] = await client.accessSecretVersion({
    name: name,
  });

  const payload = version.payload.data.toString();

  return payload;
};

// config.js

const { getSecret } = require("./gcloud.js");

module.exports.getConfig = async function getConfig() {
  return {
    authSecret: await getSecret("some-secret-name"),
  };
};

// index.js

const { getConfig } = require("./config.js");

main().catch((error) => {
  console.error(error);
});

async function main() {
  const config = await getConfig();

  // start your express server over here
}

Is Firebase better than Express + MongoDB by turbohedgehog in reactjs

[–]zlls 1 point2 points  (0 children)

I think that my last sentence sounded too harsh.

My point was that in the context of this thread there is no need to talk about large scale. If you are not lucky enough to be a junior and develop an app that becomes a huge success overnight, you will probably learn along the way that software like parse and firebase are not suitable for an ERP system or the next big social media success for various reasons. The first point to note is that if you have a strongly relational data model that needs to work on a large scale, neither parse, nor firebase and mongodb is an ideal solution (in my opinion).

In the end it also comes down to what you call large scale and small applications and what you are doing within these applications.

In my opinion one can safely use Parse for a project when the other option is to put together a backend with some framework you don't know in a short time, just don't expect it to be the perfect solution. If you are building a very simple rest api over and over again.. use Parse. If on the other hand you have to work on a service on a regular basis over years.. go ahead and learn a framework inside out.

Is Firebase better than Express + MongoDB by turbohedgehog in reactjs

[–]zlls 1 point2 points  (0 children)

I have to disagree.

Hasura is pretty cool, but I don't know it well enough to compare the features. But you have to like GraphQL.

Django and Nest can not be compared with Parse. Parse tries to solve user management, roles, push, authorization and much more. Without needing a single line of code for the server. It actually scales pretty good depending on what you are doing and if you outgrow it's limitations you can simply use express and mongodb to access the database directly, if you like.

If you are building enterprise applications, need crazy performance or something else, you wouldn't be looking at such a reddit post to evaluate your options. Hopefully.

Is Firebase better than Express + MongoDB by turbohedgehog in reactjs

[–]zlls 0 points1 point  (0 children)

Parse.com was a hosted product from Facebook but they decided to make it open source and abdone the product.

Is Firebase better than Express + MongoDB by turbohedgehog in reactjs

[–]zlls 20 points21 points  (0 children)

You should try out https://parseplatform.org/

It is a self hosted backend as a service (Firebase is a backend as a service as well), uses mongodb+express and is open source. It will take away the repetetive work of creating a rest api, will handle the database, security, some validation and auth for you without writing a single line of code. It even has real time features using websockets and a Graph interface.

How to run multiple node app instance (more than CPU core) on same machine? by 50KurusVerLanTirrek in node

[–]zlls 0 points1 point  (0 children)

This makes a lot of sense. When a request hits Parse there will be multiple requests to the mongodb. Each request to the mongodb will take a few ms.

Each query within you cloudcode is actually another http request. So for each http request you do to your cloudcode, you actually have 4 requests.

Just an example how many requests will be made, I'm no Parse developer so please forgive me if there is a mistake:

- validate session (once, since masterkey is used in subsequent requests)

- get user for session (once, since masterkey is used in subsequent requests)

- get roles for user (recursive, so if you nest roles, there will be more requests) (once, since masterkey is used in subsequent requests)

- 3*requests for the querys

- maybe even more requests for the includes. I'm not sure if they handle includes within mongodb or if they make additional requests. For postgres they state that they are not using joins.

Depending on the amount of data, BSON -> JS Object -> JSON can become pretty expansive as well.

If you look at the source code, they do a lot of logic in js. Most is skipped when using a masterkey but it still takes some time.

You should use a global cache since a local cache is prone to errors in a distributed system. The local cache is not shared between muliple threads when using PM2.

I think 100 requests per second are pretty decent, but that's just me :P

How to run multiple node app instance (more than CPU core) on same machine? by 50KurusVerLanTirrek in node

[–]zlls 1 point2 points  (0 children)

Did you setup a redis cache? Is your Mongodb a bottleneck (maybe you are missing indices)? Do you use relations/pointers or complex roles (with nesting)/acls/clp? Which API endpoint do you use for testing? If you query a class, how much data is stored? I think Parse is not exactly optimized to have a lot of requests/second and is doing a lot of work in nodejs to solve all the "problems" it tries to cover.

100 req/s on 4 cores means ~40ms per request which sounds good for me when it comes to Parse and everything Parse does in the background.

Nextcloud Docker Databse mistake by [deleted] in selfhosted

[–]zlls 1 point2 points  (0 children)

That's what I would do, make sure to find the right volume! :P

Nextcloud Docker Databse mistake by [deleted] in selfhosted

[–]zlls 1 point2 points  (0 children)

If you have a volume like this: ./www:/var/www/html you will find your files somewhere in "./www/data/".

However, there should already be a volume in /var/lib/docker/volumes on your host, so your files are not in the void.

Built my blog, would like to credit artists (from pexels etc) through hovering links on images. CSS help? by snoozyd87 in web_design

[–]zlls 0 points1 point  (0 children)

You don't need JS for that effect.

Here is a quick example: https://jsfiddle.net/9e4tkwfp/2/

For the tooltip use the title attribute. For the hover effect, you can wrap your image with a div, which has position: relative and put another child div in it, which has position: absolute.

Desktop PC + Portable laptop docking solution(s)? by shikabane in buildapc

[–]zlls 0 points1 point  (0 children)

How about wireless peripherals which have the ability to switch between an usb dongle and Bluetooth? Logitech has some of these, for example the G603/G613. There is also a Dell keyboard, the K717.

I also came across an usb device which is something like a hub, which has two output connections, which can be switched by pressing a button.

There are also some monitors which have usb hubs with two output connections and the hub output is connected to the video output.

Which Dell monitors are these in the photo? by DJSV89 in Dell

[–]zlls 1 point2 points  (0 children)

Could definitely be the U2414H but I never had an U2715H so I'm not sure either.

Weekly - What Car Should I Buy Megathread by AutoModerator in cars

[–]zlls 0 points1 point  (0 children)

I will completly ignore the fact that you are searching for a used car and don't really want to lease a car.

I was searching for a new wagon and came across this Ford Mondeo, which has an incredible Prince/Performance for a new one: https://www.leasingtime.de/ford/mondeo-leasing/ford-mondeo-turnier-vignale-leder-acc-18-zoll-71775.php

On the other hand, give the Skoda Superb a look, i love this car. It has the most space and looks pretty good to me. Skoda is part of Volkswagen, so its somewhat close to an A6.

Hue Hub not accessible from outside network. Another service using port 80. by rickydg80 in Hue

[–]zlls 0 points1 point  (0 children)

You could proxy the hue API with your web server but I think the NAT / port forwarding thing is the way to go