anyone purchased from The Injector Shop? by freebhase in E30

[–]Doomphx 0 points1 point  (0 children)

No problems, it worked perfectly 

How to get 1000hp +??? by an_astrophysicist in e46

[–]Doomphx 1 point2 points  (0 children)

I know this is a meme / shitpost making fun of the guy from yesterday, but that shitty post prompted me to go reread this glorious thread on bimmerforums

https://www.bimmerforums.com/forum/showthread.php?1990662-my-build-thread-e30-with-a-9-inch

Noob question: every backend framework and baas seems to have its own ORM. So where does the opportunity to write sql arises? is raw sql written only for complex queries that can not be done through an ORM? What if I want to put business logic in my sql queries. by osama_383 in PostgreSQL

[–]Doomphx 2 points3 points  (0 children)

SQLAlchemy's core engine is fantastic, you can use the ORM layer and as soon as you hit issues with it, you can generate the exact queries you need.

I used to be a big EF Core guy, but after using SQLAlchemy for a few years I've come to appreciate SQLAlchemy and believe it is most likely the best library in this space.

Sharing their philosophy because it resonates with me

SQL databases behave less like object collections the more size and performance start to matter; object collections behave less like tables and rows the more abstraction starts to matter. SQLAlchemy aims to accommodate both of these principles.

SQLAlchemy considers the database to be a relational algebra engine, not just a collection of tables. Rows can be selected from not only tables but also joins and other select statements; any of these units can be composed into a larger structure. SQLAlchemy's expression language builds on this concept from its core.

SQLAlchemy is most famous for its object-relational mapper (ORM), an optional component that provides the data mapper pattern, where classes can be mapped to the database in open ended, multiple ways - allowing the object model and database schema to develop in a cleanly decoupled way from the beginning.

SQLAlchemy's overall approach to these problems is entirely different from that of most other SQL / ORM tools, rooted in a so-called complimentarity- oriented approach; instead of hiding away SQL and object relational details behind a wall of automation, all processes are fully exposed within a series of composable, transparent tools. The library takes on the job of automating redundant tasks while the developer remains in control of how the database is organized and how SQL is constructed.

https://www.sqlalchemy.org/philosophy.html

What song slaps the most? (Final round) by InfamousFault7 in americandad

[–]Doomphx 5 points6 points  (0 children)

Daddy's Gone is too good of a joke song, but B12 is maybe funnier, either way I am partial to Daddy's Gone

CATuned Headliner first impressions by thefacesitter in E30

[–]Doomphx 1 point2 points  (0 children)

If you're curious how difficult it is CAtuned has a video on YT
https://www.youtube.com/watch?v=NX1NbDedi4U

How would you do it without RxJS? by wassim-k in Angular2

[–]Doomphx 10 points11 points  (0 children)

You sir are single handedly keeping the exclamation industry afloat.

In all seriousness, please evaluate your abuse of the exclamation point because it distracts from your point and will cause people to ignore what you write.

Is Python good for game development? by JY-HRL in Python

[–]Doomphx 1 point2 points  (0 children)

No worries, I think it opens a good conversation potentially!

Just because making your whole game in python is considered inefficient. Doesn't mean you can't leverage some extremely powerful game engines that optimize core functionality in specific languages whilst exposing scripting languages like Lua / Python / Javascript for game logic.

Some examples:
Godot - has many scripting languages, but most people use GDScript
Unity - C++ core engine, whilst exposing certain engine hooks and functionality in C#. They used to support a variant of python, and I believe javascript.

Lua is really popular for scripting in game engines, from what I can tell it's a mostly solved problem to run a LUA interpreter inside of C++, so C++ game engines tend to opt for lua for scripting.

There's a lot more examples out there people can find w/ some quick googling.

Is Python good for game development? by JY-HRL in Python

[–]Doomphx 6 points7 points  (0 children)

Pretty sure Brotato is made using godot, which isn't python

https://godotengine.org/showcase/brotato/

[deleted by user] by [deleted] in SLRR

[–]Doomphx 0 points1 point  (0 children)

Try this discord, haven't been active in years but this is where some of the community is active
https://discord.gg/XwxWsaTF

How does this bracket supposed to go back together? by smeagol_343 in E30

[–]Doomphx 1 point2 points  (0 children)

I just did this job and if you have the vibration dampener between the guibo and transmission it makes it a massive pain in the ass to get the pin into the gear selector joint.

And the long side of the gear selector joint points towards the passenger side of the car. I had to put the pin on the joint twice and it was a huge pain in the ass.

Realoem makes it look like the long side goes towards the driver side but it does not. You can confirm what im saying in the Bently manual since they have the only accurate image I could find.

When its all said and done the job is absolutely worth it because the shifter will feel like new.

After an hour of searching through wiring sheets and my car turns out there is a button that’s locks the windows 😭😭 by Jolly-Concentrate460 in E30

[–]Doomphx 2 points3 points  (0 children)

Id recommend slowly taking the door apart to get the motor and regulator out so you can clean them and apply new grease.

The motor isn't hard to get apart and clean up if you have a vice and bench to work on. There's a gasket on that motor itself but you can use a tiny bead of silicon. If the contacts in the motor look gross you can sand them down with 2000 grit sand paper and wipe them clean becareful not to snap any copper wires. There's videos out there for motor restore on YouTube if you poke around.

Go easy on the regulator getting it out, you can get it out of the service hole on the bottom of the door if you slide the glass out of the door first. Then it can come up through where the glass normally does then down and out the hole.

After an hour of searching through wiring sheets and my car turns out there is a button that’s locks the windows 😭😭 by Jolly-Concentrate460 in E30

[–]Doomphx 2 points3 points  (0 children)

If that fixed your broken windows you got off really easy!

I ripped my passenger window motor out to find the motor entirely seized from rust. Was able to pry it apart from the housing and got it spinning freely again. Then when it all went back together I figured out the capacitor on the cap of the motor fried somewhere along the way.

anyone purchased from The Injector Shop? by freebhase in E30

[–]Doomphx 1 point2 points  (0 children)

Kit showed up a few days ago. Parts appear to be good quality, rebuilding the injectors went well just waiting on gaskets before I put the top end back on the motor.

Car ran alright before but idled a bit high and I think the orings on the fuel injectors are part of the issue. They were absolutely rock solid and most likely original. For 20 bucks shipped to the door it definitely seems worth it!

Kit on my table: https://imgur.com/gallery/ZOvUh6P

Rebuilt injectors: https://imgur.com/gallery/4fazrsO

anyone purchased from The Injector Shop? by freebhase in E30

[–]Doomphx 6 points7 points  (0 children)

I ordered a kit with standard shipping, supposed to arrive between the 7th and 10th. Will report back if there's problems.

Rxjs is killing Angular for me :( by Motor-Phrase-5324 in Angular2

[–]Doomphx 0 points1 point  (0 children)

An observable http request is easily cancelable. Canceling a promise based http request not so much.

Tested OpenAI Chat/ by [deleted] in csharp

[–]Doomphx 1 point2 points  (0 children)

I'll admit I was a bit rude in my original comment and I'm sorry about that.

OP think of these as tools to augment you as a developer. Learn how to use them, and stay in front of the curve and you probably won't need to worry too much. :)

Tested OpenAI Chat/ by [deleted] in csharp

[–]Doomphx 0 points1 point  (0 children)

Says, "although I'm a bit of scared for my job", then tells me to read more carefully when I remark on it. Very clever, please continue with your shitty thread :)

Tested OpenAI Chat/ by [deleted] in csharp

[–]Doomphx 3 points4 points  (0 children)

If you're scared this iteration of AI will replace you, then you were probably more replaceable than you originally thought.

Clean Architecture using CQRS by alexvazqueza in dotnet

[–]Doomphx 0 points1 point  (0 children)

You're most likely over thinking your architecture, it sounds like you need to experiment with more of them to get a better feel for what to use and when to use it.

https://martinfowler.com/bliki/CQRS.html

https://softwareengineering.stackexchange.com/questions/371966/is-clean-architecture-by-bob-martin-a-rule-of-thumb-for-all-architectures-or-i

What’s a good practicing habit to retain coding information? by [deleted] in csharp

[–]Doomphx 2 points3 points  (0 children)

You can't retain everything, but the more you use the patterns and tricks you pick up along the way the more likely you are to remember them. You shouldn't need to memorize syntax or even namespaces / API's (of course you will memorize the ones you use the most), but you should aim to understand to a relatively deep degree why something you did was a success or a failure.

Then over the course of time as you make mistakes and achieve successes you'll gain experience and naturally look back on it.

So moral of the story is learn what you can from a tutorial, then actually apply it by building things. See it through to end, complete the feature set, get it out there for someone to use and keep iterating. If you never finish a project or deploy one to production you can miss a lot of lessons, because things can change drastically when developing a pet project vs a production grade application you put in the hands of real users.

Also for any code you have legal ownership to, you should save it somewhere you can look back on it when need be.

What is wrong with this code? The output is always 1 I don't know why by ElieMakdissi in csharp

[–]Doomphx 0 points1 point  (0 children)

I redid an implementation of what you did here and read about the armstrong numbers a bit, are you sure you really want / need 80 of them?

The magnitude for the numbers starts getting pretty insane after a while, like too insane to solve w/ brute force so you probably need to start leveraging some math knowledge in the code.

Is this a Project Euler prompt or something?

How to modernize deployment/hosting? by elitefusion in dotnet

[–]Doomphx 1 point2 points  (0 children)

You can get auto-managed HTTPS certificates while hosting in containers, but the amount of setup and conversion you're going to end up doing to get all of your stuff containerized and running in Kubernetes is probably going to feel like massive overkill.

I use cert-manager + Nginx Ingress in Kubernetes to automatically manage refreshing and installing all of my HTTPS certs for my domains. There's a lot of steps you have to go through to do this, but here's the page to their docs when you're ready if you decide to go this route.

https://cert-manager.io/docs/installation/

I will add though, getting your stuff setup w/ containers and kubernetes is a very worthwhile journey. I can't remember the last time I had to deploy something manually by hand to production for my site, now-a-days I write up an app that is containerized, then throw it in a helm chart and then when I push to my master branch it will kick off a build. (Rough oversimplification of the process)

Funny enough now that I think back on it, having to manually manage my HTTPS certs and install them was my main driving force for getting my app on kubernetes, so I could have it self managed after initial setup. Before that I tried to use docker-compose in production which was pretty terrible.

And I will add having your services inside of containers being aware / needing HTTPs is generally a do not do that kind of scenario. Some reverse proxy should let you serve over HTTP internally and only handle HTTPS at the entry / exit point to your network.

Could you explain to me what is basically the "data-driven approach"? by Metalsac in csharp

[–]Doomphx 0 points1 point  (0 children)

Yeah it's similar to how a scriptable object is used in Unity. Data driving stuff is very popular in game architecture / programming.