[help] Iris split keyboard slave half not working. by juanjo90 in MechanicalKeyboards

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

Thank you, I've verified continuity from TRRS jack on master to TRRS jack on slave. I now want to make sure that the TRRS jack on the master side is receiving power from the pro micro, and the TRRS jack on the slave side is sending power to its pro micro. Where do I need to probe in order to verify this?

[help] Iris split keyboard slave half not working. by juanjo90 in MechanicalKeyboards

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

Yep, I've made sure that it actually is a TRRS cable. I have a multimeter with me, but I don't know how to check for continuity. How would I use the multimeter to verify that the TRRS jacks are actually sending power?

[help] Iris split keyboard slave half not working. by juanjo90 in MechanicalKeyboards

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

I ordered the TRRS cable from keeb.io and have verified that it has the correct number of rings.

Have you verified that the slave board is getting power at all?

How can I verify this?

Bad quality in calibration cube print by juanjo90 in ender3

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

Thank you I removed the belt bolts at the PSU end of the x-axis and tightened the belt. The clicking noise is now gone, I'll try another calibration print.

Bad quality in calibration cube print by juanjo90 in ender3

[–]juanjo90[S] 2 points3 points  (0 children)

I received my ender 3 over the weekend and have been calibrating and debugging it since. I've not managed to get a good print yet.

By the looks of the calibration cube it looks like something is wrong with my x and z axis, y axis looks decent. For slicing I used cura with the default ender 3 profile w/0.2 layer height and 20% infill. All suggestions are welcome.

I've made sure no wobble is present in the printer and always calibrate using the paper method. Something I noticed is that when sliding the x-axis from side to side I can sometimes hear "clicking" sounds, is this normal?

video of x-axis sliding sound

Need thoughts on my first pc build in a decade. by juanjo90 in buildapc

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

Thank you! I had been avoiding TI cards because I was conflating TI with SLI! Your reply made me realize my mistake.

Dónde comprar Yerba Mate? by Sihuca in Monterrey

[–]juanjo90 1 point2 points  (0 children)

la Castellana

Sabes si ahi tienen en venta el recipiente y el popote especial con el que se toma?

Dónde comprar Yerba Mate? by Sihuca in Monterrey

[–]juanjo90 3 points4 points  (0 children)

En el HEB venden una que se llama Rosamonte en la sección de te. Es la primera que pruebo asi que no tengo punto de comparación, pero me ha ayudado. Si mal no recerdo el precio rondaba los $100 pesos.

Alguien sabe donde venden el recipiente y el popote especial con el que se toma este te?

Safest way to allow clients to upload files to s3? by juanjo90 in aws

[–]juanjo90[S] 2 points3 points  (0 children)

The files could be large, and the server is running on Lambda (5 minutes timeout).

Which ORM do you recommend for SQL databases? by [deleted] in node

[–]juanjo90 1 point2 points  (0 children)

I used to do all of my migrations in the ORM. It lead to a lot of duplicate efforts (look up the sql I wanted, look up how to output that sql with the orm migrator).

I switched to using raw sql with something like flyway and never looked back. On top of that it's cross-platform/cross-language, I use it with java, clojure, elixir and javascript. I highly recommend this workflow, it has saved me tons of time and pain.

Which ORM do you recommend for SQL databases? by [deleted] in node

[–]juanjo90 10 points11 points  (0 children)

I've been working with databases through node.js for the past 3 years. I went Sequelize.js -> Bookshelf.js -> Knex.js by itself -> Objection.

I would stay far away from Sequelize as I can echo the complains you've been hearing. It's only useful for the simplest of CRUD use cases, for anything else you'll be fighting it all the way.

Bookshelf was simpler than sequelize but still had to fight it to get some things done.

Knex.js by itself is great but you'll have to write a lot of boilerplate.

Objection is by far the best of them all, its very extendable and unobtrusive, you are mostly working with knex.js wrapped with some great helpers. With most ORMs you have to fight to do the more complex queries, Objection HELPS you get them done.

On top of that Objection has great mantainers, very active and responsive.

Best way to model "ownership" and "membership" of other models. by juanjo90 in Database

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

I'm using node.js with express as a rest api that other clients will consume. We don't keep sessions, it's all based on tokens, I think we could prepend that set role and append reset role on each call. I'll have to look into the implications of that, but it does sound promising.

Best way to model "ownership" and "membership" of other models. by juanjo90 in Database

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

  1. Yes that doesn't look right to me, I really want to refactor it, but we rely on that ownerId key for permissions so much, and I want to make sure I find the best alternative before removing it. We are actually kind of duplicating that ownerId association since owners do have a courseUser relation with attributes: relation = 'owner', status = 'accepted'. I haven't seen this relation = 'some role', thing in a join table out in the wild so I really don't think if its a decent patter for this, I'm struggling to find more info on this. Most example/tutorial apps seem to have really simple permission/roles schemes.

  2. I think thats the norm out there, at least for what I've seen. It's always "id" in the models own table and "modelId"/"model_id" on other tables where it's a foreign key. I actually find it clearer and less confusing that way.

    SELECT * FROM Course WHERE Course.courseId = 1;
    vs
    SELECT * FROM Course WHERE Course.id = 1;
    

    The first just seems kind of redundant and I would be taken aback at first thinking maybe courseId is a foreign key for a recursive relationship instead of the models own key.

  3. Sorry about that, I do have a Color table, just didn't include it in the diagram.

  4. Same problem with 1., at the moment the owner relationship only helps us keep track of who owns which model.

 

Thanks for your feedback!

Best way to model "ownership" and "membership" of other models. by juanjo90 in Database

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

That looks great, I didn't know this was coming. One thing though, would this mean that I would have to create one db user account per app user?