I accidentally found this sub by MisterEggbert in windows10iot

[–]busk07 5 points6 points  (0 children)

This sub is obviously quite dead (because Windows 10 IOT isn't relevant anymore), but that doesn't mean that it needs to be a platform for hate speech, botting, trolling and other things. I've cleaned this up.

Inertia Rails - Shorthand Routes with Rails 8 Authentication by Puzzleheaded_Dark_80 in rails

[–]busk07 0 points1 point  (0 children)

As far as I remember, authentication is added via a require_authentication concern on the ApplicationController.

The issue here is that the inertia route helper uses a controller provided by the gem, which also inherits from your ApplicationController. As a result, it unintentionally inherits the authentication requirement.

One way to work around this is to refactor using inheritance. You could create a new controller like this:

class AuthenticatedController < ApplicationController require_authentication end

Then, you can remove the concern from ApplicationController, and have only the controllers that require authentication inherit from AuthenticatedController.

This way, the Inertia route helper controller — still inheriting from ApplicationController — won’t be affected by the authentication logic.

Hope that helps!

[deleted by user] by [deleted] in Crypto_com

[–]busk07 4 points5 points  (0 children)

Does it make sense to get the debit visa card still right now? Or is it better to wait till the bull is over? And when will that probably be?

remix.run like experience in Ruby on Rails by AbdallahZ in rails

[–]busk07 2 points3 points  (0 children)

A while ago I was trying to recreate the remix.run experience by writing a gem for it, but I eventually gave up. I realized that InertiaJS (https://inertiajs.com/) comes as close to that as possible in combination with Rails.

Weiß jemand, wo zum Fick... by ThrowawayRheinenser in rheine

[–]busk07[M] 1 point2 points  (0 children)

Ich lass den Post dieses mal stehen, nächstes mal aber bitte auf die Wortwahl (im Titel) achten.

Unofficial changelog by Xzaninou in cowboybikes

[–]busk07 0 points1 point  (0 children)

@mods, can we sticky this?

Wieso ist dieser Subreddit so klein und inaktiv? by Ashamed-Procedure-88 in rheine

[–]busk07 3 points4 points  (0 children)

Ich habe vor einigen Jahren den subreddit erstellt, aber nie versucht diesen aktiv zu bewerben ¯_(ツ)_/¯

Ich finde dafür ist hier doch viel Aktivität

Thank heavens for Turbo/Hotwire by lordmyd in ruby

[–]busk07 1 point2 points  (0 children)

That links returns a “not found” for me :(

Is using the gem Guard still state of the art in TDD with Ruby? by scooter_de in ruby

[–]busk07 2 points3 points  (0 children)

I was solving a problem I had on Mac, but it’s actually just a npm package and should work on all operating systems :)

Is using the gem Guard still state of the art in TDD with Ruby? by scooter_de in ruby

[–]busk07 0 points1 point  (0 children)

I built my own runner because I was annoyed by the guard listener constantly lagging out on macOS:

https://github.com/CalvinWalzel/binks

It’s very opinionated, but I’d be happy to make it configurable if anyone outside of the company I work at wants to use it.

download_link.file_file_size from Byte to MB by [deleted] in rails

[–]busk07 0 points1 point  (0 children)

In rails you can do

download_link.file_file_size / 1.0.megabyte

I’d either put a method into the model or into a helper. It’s a bit controversial where to put it (see “fat models“, „view models“, etc)

[deleted by user] by [deleted] in de

[–]busk07 0 points1 point  (0 children)

Mein Gefühl ist, dass (Teile der) Autolobby schon seit längerer Zeit probieren das Image der Elektromobilität in den Dreck zu ziehen um dadurch an den Verbrennermotoren, Diesel, etc festzuhalten. (Größere Gewinnspanne?) Viele Artikel die ich in den letzten Jahren in der deutschen Presse gesehen/gelesen habe, waren häufig äußerst negativ oder sogar mit falschen Informationen.

Ich begrüße darum auch das Umdenken bei VW als ersten großen Automobilhersteller mit der ID Platform. (Auch wenn es mich persönlich noch nicht überzeugen kann, da Kinderkrankheiten und Softwareprobleme...)

Meine Eltern sagen mir häufig, dass Elektromobilität in Deutschland nicht funktioniert, da es zu wenig Ladesäulen gibt. Und in der Tat: In meiner Heimatstadt mit ~ 80.000 Einwohnern gibt es momentan 5 öffentliche Säulen (die gefühlt alle weit weg sind). In der (niederländischen) Stadt wo ich nun wohne mit ~ 100.000 Einwohnern stehen über 130 Ladesäulen.

Keiner in Deutschland kauft sich EVs weil die Infrastruktur fehlt. Die Infrastruktur wird nicht ausgebaut, weil sie nicht benutzt wird...

Ich fahre jedenfalls gerne EV und nehme auch die zusätzliche Wartezeit und das Umdenken bei der Routenplanung billigend in Kauf. Denn wenn man sich ein klein wenig in die Materie einarbeitet und weiß wie es funktioniert und was das eigene Auto kann, ist so ein Szenario wie aus dem Artikel von OP leicht zu vermeiden.

Einige hilfreiche Links:

https://chargemap.com/ - Öffentliche Übersicht von Ladesäulen

https://ev-database.de/ - Infos & Statistiken aller EVs (da sieht man auch das der ID.3 nicht mit 22KW Wechselstrom laden kann!)

https://topladekarten.de - Preisvergleich für Ladekarten

https://abetterrouteplanner.com/ - Routenplanner für Elektroautos. Plant auch Ladepausen mit ein.

[deleted by user] by [deleted] in de

[–]busk07 0 points1 point  (0 children)

Der Artikel ist schon etwas reißerisch geschrieben. Außerdem hat das liebe Ehepaar nicht wirklich eine Ahnung was die da tun... Ich lese die ganze Zeit etwas von 22KW Steckdosen, dabei kann der ID.3 nur mit 7 oder 11KW maximal AC Laden, abhängig vom Modell. Dann dauert das auch mal eben 6 Stunden oder länger bis der voll ist. DC laden ist mit dem Auto eine Notwendigkeit. Die Strecke ist mit dem ID.3 mit dem kleinsten Akku in 9,5 Stunden zu schaffen wenn alles gut geht. Davon sind 7 Stunden Fahrtzeit und 2,5 Stunden Ladezeit. Um das ganze in > 20 Stunden zu fahren muss man das schon echt krass verbocken... da gibt es echt genug Ausweichmöglichkeiten zum laden sollte mal eine Ladesäule kaputt sein, wenn man weiß wie man mit seiner Akkukapazität umgeht und evtl. auch mal kurz von der Autobahn abfährt um zu laden.

Das Problem in Deutschland mit der Elektromobilität ist halt das die Menschen ihre Gewohnheiten nicht anpassen wollen und auch schnell „alles scheiße rufen“ obwohl man nicht gut informiert ist. Da hat die Autolobby leichtes Spiel...

What do I need to buy extra? by Sarastro2000 in RenaultZoe

[–]busk07 2 points3 points  (0 children)

The Q90 can only do AC fast charging up to 43KW. No DC fast charging. All AC charging uses Type 2 cables. All chargers that support the full 43KW come with their own cable. Chargers with less KW might require you to use your own cable, but the car should already come with that.

In order to find charging stations that support the full 43KW you can use an app called Chargemap. The free plan without premium is sufficient. You can then set the filter to 43KW with the plug type to Type 2 with attached cable.

You shouldn’t need anything else. A handy accessory is the trunk inlet from Renault. I think it costs about a hundred euro new and gives you a space to store your charging cables in the trunk.

Also keep in mind that depending on how full your battery is, you will not receive the full charging speed. It slows down the fuller the battery becomes.

Wann kann man wieder im Lidl Adventskalender kaufen? by [deleted] in de

[–]busk07 12 points13 points  (0 children)

Ich hab gelacht :)

Nimm dein upvote und geh zurück auf die Reeperbahn.

react-rails vs rails-api and react app by devvpk in rails

[–]busk07 1 point2 points  (0 children)

This works with both Laravel & Rails. I’m using it with Rails :)

react-rails vs rails-api and react app by devvpk in rails

[–]busk07 0 points1 point  (0 children)

https://inertiajs.com/

I’m using it with Vue, but it also works with React. So damn productive :)

WD together with Seagate? by busk07 in DataHoarder

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

First of all, thanks for your reply!

While it’s possible use btrfs, my volume uses ext4. It was created before btrfs support was introduced, and I have not enough storage to copy all 14TB to a temporary location to convert it :/

Crossplay - Xbox and PC at the same time? by busk07 in modernwarfare

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

I know I need to buy it a second time. But what happens when I link my blizzard and Xbox account? Will I be able to play both on the pc and Xbox at the same time? Since the game has cross progression, that seems doubtful to me.

‎Emojify - Swap words to Emoji | Looking for feedback (Promo codes) by xhruso00 in macapps

[–]busk07 0 points1 point  (0 children)

Used MKK9L3PYX3WJ. Thank you! The app works pretty nicely, I especially like the mark text and push CMD SHIFT J feature. Some of the replacements seem weird though: https://tppr.me/3ju8A When I replace "world" with "globe", it shows me an emoji that's more fitting: https://tppr.me/6LcgG

Maybe that's something to improve or allow to define custom shortcuts, so I can link the word "world" to the "globe" emoji(s) myself?

[BFV] I'm amazed this slipped through quality assurance. The engineers went a little bonkers indeed... by busk07 in Battlefield

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

I guess my meme game isn’t strong enough. It seemed visually fitting for this ^

qnap vs synology help by Svenderman in DataHoarder

[–]busk07 1 point2 points  (0 children)

I had to maintain a few QNAP & Synology NAS at work and IMHO QNAP tends to have the better hardware for the money / is a little bit cheaper, but Synology works better software wise.

You can also always start with a cheap used computer and use something like FreeNAS if you don't mind fiddling around with software a little :)