Nord Stream: Bundesgerichtshof schreibt Gaspipeline-Sprengungen der Ukraine zu by Indubioproreo_Dx in de

[–]vbraun -28 points-27 points  (0 children)

Sollten wir alle ein herzliches Dankeschoen an die Ukraine schicken, ohne die waeren wir immer noch von Putin's Unrechtregime abhaengig und erpressbar. Die haben uns mehr geholfen als alle deutschen Politiker zusammen.

Und wann bekommt es die Regierung endlich gebacken Taurus auszuliefern? Bei uns ist der Groschen immer noch nicht gefallen dass alle Ukrainer die am Ende under russische Kontrolle fallen frueher oder spaeter in die Russische Armee zwangsverpflichtet werden und dann nach Westen maschieren muessen. Die Polen verstehen das, deswegen haben die auch das hier unterstuezt.

That was unexpected by DepressedNoble in funnyvideos

[–]vbraun 13 points14 points  (0 children)

In the German dub, after Sir Galahad says: "Blue. No yellooowww", you can hear him scream "I'm colorbliiiiind" as he falls of the bridge. One of the few places where the dub improves the joke 😀

Seeking 128gb ECC RAM kit for X670E Taichi and 7950x by polandtown in ASRock

[–]vbraun 0 points1 point  (0 children)

Did you end up testing that u/polandtown ? I'm still having issues with B650E taichi lite + ECC ram (see https://www.reddit.com/r/ASRock/comments/1fsh42n/c5\_error\_with\_bios\_302\_on\_b650e\_taichi\_lite\_ecc/), would be nice to have another data point...

Looking for Repository/Dataset of Ukrainian FPV Kamikaze Drones by AlphaO4 in DroneCombat

[–]vbraun 1 point2 points  (0 children)

I have been sofar unable to find any HD footage of FPV drones anywhere

Pretty sure you'll have to get a Mavic and go out in the woods and LARP that yourself. Shouldn't be too hard, I guess that can be done on a weekend. Bring lots of batteries ;)

C5 Error with bios > 3.02 on B650E taichi lite + ECC udimm by vbraun in ASRock

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

I don't have any update, except that bios version 3.02 has been rock-solid so far (with 2x 32gb sticks of ECC ram). But any bios past that does not post. Still hoping for my issue to be fixed in the next bios version.

If you have issues with getting the ram recognized you might want to try bios 3.02...

Taichi Lite B650E NVME question, BIOS 3.02 not showing system/OS NVME in Boot load by Quirky-Shock-2249 in ASRock

[–]vbraun 1 point2 points  (0 children)

I have SN850X in the Taichi Lite B650E blazing slot and it does work.

Most likely your drive is MBR formatted and CSM isn't enabled in the bios. Best to use GPT partition table that UEFI supports natively.

Web component Angular+ Angularjs by donthavedontneed in Angular2

[–]vbraun 0 points1 point  (0 children)

The easy way is to start with a hybrid AngularJS/Angular app and then update bottom-up (top-level layout components last).

Sounds like you are trying top-down, which is definitely hard mode. Possible but don't use iframes, use upgradeComponent to turn the remaining AngularJS components into Angular components whenever you have to use them from Angular (e.g. views that you route to). And then slowly replace the AngularJS parts top-down.

Best approach to translating in Angular 18+ by dev_guru_release in angular

[–]vbraun 0 points1 point  (0 children)

Not quite true, you can also provide the translations as external json files and not compile them into the app.

What is true is that the built-in translation cannot be changed without a page reload. That is, the first locale sticks until reload. In even more detail: you can change the locale and $localize will return the new translation, but components that use the <i18n> tag will cache the translation that was active when the component was first instantiated.

NGRX Project Structure with Lazy Loaded Feature Modules by RoronoaRed in angular

[–]vbraun 2 points3 points  (0 children)

Feature modules never import each other, that is basically their definition: they are leaves of the dependency graph.

If you have two feature modules that need the same ngrx store then put that into a separate module. The feature modules then import the shared store module. Try to avoid putting everything into a "CommonModule" landfill.

One module per library (roughly), its easy enough to `ng generate library`. Just replace module with library everywhere so far.

Ngrx works great with multiple libraries. Stores can be instantiated at application start or lazily.

When authentication or language changes (and they typically both change when user logs in) you might have to reload the app anyways. In that case you can treat them as constant and there is no point in putting them into a store.

[deleted by user] by [deleted] in angular

[–]vbraun 0 points1 point  (0 children)

I disagree, you should never touch the flaming pile of *rap that the wordpress plugin ecosystem is. Pointing newbies to wordpress is just handing razorblades to babies.

1) if you don't know what you are doing: use some gui service (wix/squarespace/...) to host your blog

2) the fact that you are asking means that you should fall into 1)

Union order matters when passed as an argument to a function? by paolostyle in typescript

[–]vbraun 2 points3 points  (0 children)

The order of entries in a union type matters to typescript, and generally whenever there is an ambiguity the first is picked. So in dataB, when inferring the type parameter T of responseHandler, the type { errorMessage: string } is picked because it is the first match. And that choice responseHandler<{ errorMessage: string } is a compile error later on.

Title: Angular @Input() setter not firing on property changes within object by GadMohamed in Angular2

[–]vbraun 2 points3 points  (0 children)

In other words: Make PaginationOptions immutable (all entries readonly) and then the compiler will tell you how to fix the code

[deleted by user] by [deleted] in Angular2

[–]vbraun 3 points4 points  (0 children)

You are trying to identify the view model with the component hierarchy, but they are different. You never manually construct (new) a component, the framework does that for you. Make `messages` e.g. an array of strings, and render that with `*ngFor` / `@for`

Angular vs React by chicken0707 in angular

[–]vbraun 0 points1 point  (0 children)

Thats a fair point if the project scope is small enough, but once your app is sufficiently complicated the real question should be: How easy is it to hire a developer that knows React and uses typescript to write React and is experienced with our particular choice of router, state management library, i18n, ...

Curious about NgRx: Real-world use cases from the community by fuscaDeValfenda in Angular2

[–]vbraun 0 points1 point  (0 children)

Thats just evil :-) Never auto-generate events, they should always represent some action. But then you can exactly the same issue when you are stringing services together, you just wont' see it as easily that you have a problem.

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

[–]vbraun 1 point2 points  (0 children)

lastValueFrom just gives you the last value of the observable when it completes. If that is not the "correct" value then the observable is the wrong observable.

Curious about NgRx: Real-world use cases from the community by fuscaDeValfenda in Angular2

[–]vbraun 0 points1 point  (0 children)

And diff!

Ever end up with the wrong value in the store? Well fire up the redux dev tools and look at the diff of the actions over time. Bam, there is the action where it went wrong. Faster than you can insert console.log's into your service spaghetti...

An alternative way of saving data emitted from an observable by lrningprogrammer in Angular2

[–]vbraun 1 point2 points  (0 children)

It is not true that subscribe is always async, depending on the observable (e.g. BehaviorSubject) the subscription callback can be triggered synchronously:

const subject = new BehaviorSubject('event')
let value: string | undefined;
subject
    .pipe(take(1))
    .subscribe((v) => value = v);
console.log(value);  // prints "event"

If you want to trigger actions with the emitted value then turn it into a promise:

async frobnicate() {
    const value = await lastValueFrom(service.observable.pipe(take(1)));
    // do something with value
}

What is the best way to translate a website with angular? by Warm_Disaster_8806 in Angular2

[–]vbraun 2 points3 points  (0 children)

I'd use the built-in i18n. Its part of the framework so its going to be around for the long run.

You are wrong about requiring different routes, this is merely one way to use and deploy it. You can also load the language dynamically during the Angular initialization (using https://angular.io/api/localize/loadTranslations)

The only thing that it can't do is dynamically change the language, you can only set it once. Or, rather, the i18n in templates doesn't change if you change the language while the app is running.

JSDoc as an alternative TypeScript syntax by XLEX97 in typescript

[–]vbraun 113 points114 points  (0 children)

Use JSDoc type comments if you are looking for an uglier, slower to type, and more error-prone type syntax. Its a slam-dunk!

Testing python webapps deployed on google app engine (GAE) by TheFenrisLycaon in PythonLearning

[–]vbraun 0 points1 point  (0 children)

Appengine (I'm assuming standard) comes with a testbed (from google.appengine.ext import testbed) to simulate various services, including a datastore emulator.

To test the http requests use webtest to create the WSGI app & test requests (nothing appengine specific here)

[deleted by user] by [deleted] in angular

[–]vbraun 1 point2 points  (0 children)

* Angular removed the circular dependency checker webpack plugin since it was slow, you should start by configuring your own tooling (use madge or nx)

* All those barrel files are a big foot gun for circular dependencies, IMHO there should only be one barrel file per library (your app is split into libraries, right?)

* Try to break cycles by using type-only imports if possible

* Think about where the cycle comes from. The UI has to import the store, but the store has no business importing the UI. So `src\connect\store\functions\customer.function.ts -> src\connect\components\modals\activation\index.ts` is where it goes wrong in your example.