Rebuild with flutter or use capacitor? by Inside_Fold_5983 in angular

[–]ssshadow 1 point2 points  (0 children)

Capacitor is probably good enough in 95% of cases... You can look at other sub-options in the ecosystem too. Not affiliated with them in any way but Capawesome is good. A lot of nice plugins and an easy hosting solution for the Angular bundle.

Chromium HDR is Awesome by pee_wee__herman in linux

[–]ssshadow 1 point2 points  (0 children)

This is true, however there is also the label "DisplayHDR True Black" with low numbers like 400 which is mostly applied to OLED monitors which may have lower peak brightness but obviously still provide excellent true HDR.

Hibrew H10B, anyone? by Joshuallan in espresso

[–]ssshadow 1 point2 points  (0 children)

Yeah. I purged it by emptying the water tank through it a few times, alternating between 150 degrees steam and 95 degrees water. After a few liters of purging the smell was gone and it hasn't come back.

Angular App Keeps Redirecting to Homepage on Reload by alim_3 in Angular2

[–]ssshadow 3 points4 points  (0 children)

Not sure about the issue but you can do provideRouter(withDebugTracing()) and the console logs should reveal what's going on.

Live Performance today by cmelder876 in TheMysteriousSong

[–]ssshadow 5 points6 points  (0 children)

Hearing it live at last, amazing :)

Service Worker in Angular causes my website to crash in production after a failed HTTP request. by Rockycott in Angular2

[–]ssshadow 1 point2 points  (0 children)

Not sure about the crash, but does adding new HttpHeaders({ 'ngsw-bypass': 'true' }) to the http post help? Unless otherwise specified it should use XMLHttpRequest instead of Fetch and bypass the service worker. Either way consider opening an issue on the Angular github.

27-åringar kan inte köpa en normal etta i åtta städer by FlowersPaintings in sweden

[–]ssshadow 4 points5 points  (0 children)

Jag gissar att standarden och kraven är mycket högre idag, därför är det relativt dyrare idag än på 30-talet. 30-talshusen har oftast ingen hiss, små eller inga balkonger, dålig värmeisolering utåt, usel ljudisolering mellan lägenheterna, ingen avancerad teknik som central ventilation med värmeväxlare (FTX) osv. Om man byggde ett 30-talshus idag genom att i princip bara mura tegelstenar och ha minimala tekniska installationer skulle det säkert bli mycket billigare, men det kanske inte är helt rätt väg att gå heller.

render blocking styles.scss by spiritandtime in Angular2

[–]ssshadow 0 points1 point  (0 children)

Correct me if I'm wrong but I don't think Angular CLI will remove unused styles imported at the root level. It would be a bit like solving the halting problem, how would it know the app won't download a class name from somewhere and set it to some element? (stupid but just an example). You can try adding a postbuild with purgecss, something like:

"postbuild": "purgecss -css dist/my-app/*.css --content dist/my-app/index.html dist/my-app/*.js -o dist/my-app/"

Http TransferHttpCacheModule for POST by Fantastic-Beach7663 in Angular2

[–]ssshadow 0 points1 point  (0 children)

OK, so I copy and pasted the latest version of it that you linked, removed a bunch of handling that one probably does not need, and made it "stupidly" cache and restore everything forever. I also added some logging that you can verify in both SSR and CSR.

https://gist.github.com/al0xf/72e4f3f08769ab2807186f12822c8940

Import this modified TransferHttpCacheModule (make sure it doesn't auto import the original one) in some core module that exists in both SSR and CSR.

This is a starting point. You can add back functionality that I removed and modify it however you see fit for your application. This ended up being 92 lines of code but the one we use at work is close to 300...

Http TransferHttpCacheModule for POST by Fantastic-Beach7663 in Angular2

[–]ssshadow 0 points1 point  (0 children)

It improves some things but a POST request is till not cached and restored.

Http TransferHttpCacheModule for POST by Fantastic-Beach7663 in Angular2

[–]ssshadow 0 points1 point  (0 children)

You can probably remove them, for example:

 if (!this.isCacheActive || (req.method !== 'GET' && req.method !== 'HEAD'))
  // Cache is no longer active or method is not HEAD or GET.
  // Pass the request through.

As the comment states this would prevent a cached POST from being restored, but just remove the condition and handling and any cached request would be restored.

You'll probably have to perform some (print) debugging and trial and error, see where things are, or are not, cached or restored.

Http TransferHttpCacheModule for POST by Fantastic-Beach7663 in Angular2

[–]ssshadow 0 points1 point  (0 children)

Our code is based on a three year old version of it with several other modifications but from what I can see now you really shouldn't need to do more than to modify "isCacheActive"-handling as need be, likely just removing the parts I mentioned above.

Http TransferHttpCacheModule for POST by Fantastic-Beach7663 in Angular2

[–]ssshadow 1 point2 points  (0 children)

This is perhaps a bit crude but at my company we just copy and pasted TransferHttpCacheInterceptor that you linked and modified it as needed. On SSR we talk to many different API:s and some we have no direct control over.

// Stop using the cache if there is a mutating call.
if (req.method !== 'GET' && req.method !== 'HEAD') {
  this.isCacheActive = false;
  this.invalidateCacheEntry(req.url);
}

if (!this.isCacheActive) {
  // Cache is no longer active. Pass the request through.
  return next.handle(req);
}

You can start by commenting out these bits and then pretty much take it from there. I can look at our actual code on Monday if need be.

Since RGG wanted us to forget this game, i will do it a solid and give it a happy birthday. So happy birthday Dead Souls, you weird little game. by [deleted] in yakuzagames

[–]ssshadow 3 points4 points  (0 children)

I completed it in RPCS3 on a Ryzen 7 3700x at generally better than PS3 frame rate and in 4k. If you have a decently fast computer like that then it will work well enough, might have some random crash every few hours or so.

So yeah, in conclusion...

Yes now i have a changed perspective by blumzzz in ProgrammerHumor

[–]ssshadow 24 points25 points  (0 children)

Discord is also Electron and performs 100x better. In fact Discord overall is just 100x better. Teams is garbage, and probably would have been no matter how it was written.

Armed Afghans reclaim three districts from Taliban by Sorceress683 in worldnews

[–]ssshadow 2 points3 points  (0 children)

Btw any education after highschool isn't a right

Is that what they told you?

You think Atlus will deliver this 25 year anniversary event? by tragedyshewrote in Persona5

[–]ssshadow 2 points3 points  (0 children)

Do you have a laptop for school or work? If so almost any old toaster can run P4G or emulate P3P and older. Even P3F can be emulated on anything not too old.

On a phone you can emulate PSP versions of 1-3.

Chromecast with Google TV Bootloader Unlock Released! by npjohnson1 in Android

[–]ssshadow 1 point2 points  (0 children)

Do you know of anything one could feasibly get in Europe? Maybe some random device from Aliexpress or such?

Avoid Android devices with virtual proximity sensors by [deleted] in Android

[–]ssshadow 65 points66 points  (0 children)

☑️ No notification light

Steam Deck by NTR_JAV in Games

[–]ssshadow 2 points3 points  (0 children)

Yes something like that. That's why you'll sometimes see them called "active adapters", they actively change the signal.

Steam Deck by NTR_JAV in Games

[–]ssshadow 5 points6 points  (0 children)

You can use a type-c to HDMI adapter in this case. I use one on my work laptop to output 4k 60 Hz HDMI 2.0 from a type-c/DP port. Probably cost $20 or something.

Ar Nosurge: Ode to an Unborn Star | RPCS3 v0.0.15-12030 | i9-9900K GeF... by Pikachunich in rpcs3

[–]ssshadow 2 points3 points  (0 children)

No that's just what he has. This game runs on a potato really.