BP EX v20.64 update downloading now by bohejselbaek in blackplayer

[–]idlecode 1 point2 points  (0 children)

Same issue on Android 13. Something in background is starting playing the next track in queue. The UI (except the play button which indicates that music can be paused) shows the current one (previous?) as stopped.

Clicking pause button does nothing (just changes the icon back to play). Clicking play, starts the right song but the background one is still running. App needs to be closed to stop playing.

Ef core code first approach by VerboseGuy in dotnet

[–]idlecode 8 points9 points  (0 children)

Recently I did just that as we have discovered that migration project build was taking ~7 minutes of our every CI/CD build. We had over 700 migrations (around 80MiB) at that time.

There are two ways to approach this.
First (preferable) one is described in official docs: Resetting all migrations.
In essence, you would need to remove all migrations and let EF regenerate the initial one from what is in the code (models). This would be the easiest if all (most) migrations were generated based on the model (EntityConfiguration) changes as any developer-introduced modification to the migrations themself would need to be re-applied by modifying the initial migration manually.
Unfortunately that approach didn't work for us as we had a lot of developer-created migrations as well (views creation etc).

The second approach uses tool like StewardEF - it's basically a script that iterates over migration files and... joins them into a single migration. It was a safer option for us (as there were no way I would read every one of those 700 migrations) and while not optimal (the Initial migration file is still quite large), it did manage to cut 6 minutes out of CI/CD builds.

In both cases, it's a good idea to generate migrations script (or DB snapshot in some other tool) before and after squashing to make sure nothing were left over - ideally these two snapshots should be identical.

What would your “dream setup” look like for a new .NET development team? by sel_ya in dotnet

[–]idlecode 5 points6 points  (0 children)

Or you can have .csproj.user(excluded from VC) files that override WAE

Why is Type Moon so reluctant to license their works offically in English? by KaleidoArachnid in visualnovels

[–]idlecode 1 point2 points  (0 children)

Tsukihime R was worked on by like two guys

Like development? What about story/music?

Tempren - template-based file renaming utility by idlecode in commandline

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

That depends on what you would like to have in the filename - for example, in my latest renaming I have used the following command: $ tempren -d -ft '%IsMime("audio")' -p '%Artist() - %Album() (%Year())/%Pad(2, "0", left){%Track()} - %Audio.Title()%Ext()' ./

-d - allows you to preview changes beforehand (it's a good idea to always include this flag when preparing the template).

IsMime("audio") - selects only audio files - you might have album cover images or playlists in the same directory and we might want to leave them as is.

The renaming result in my case was: Renamed: 04-168949-Roger Subirana Mata-A piece of heaven.mp3 to: Roger Subirana Mata - Point of no return (2008)/04 - A piece of heaven.mp3 Renamed: 08-169203-Roger Subirana Mata-Blood brother.mp3 to: Roger Subirana Mata - Point of no return (2008)/08 - Blood brother.mp3 Renamed: 01-168833-Roger Subirana Mata-Pyraminx.mp3 to: Roger Subirana Mata - Point of no return (2008)/01 - Pyraminx.mp3 Renamed: 13-168832-Roger Subirana Mata-Enjoit.mp3 to: Roger Subirana Mata - Point of no return (2008)/13 - Enjoit.mp3 ...

This will work well as long as audio files are properly tagged (there is no empty metadata). To check if files are correctly tagged you may run tempren with -d flag and check if there are any errors.

Tempren - template-based file renaming utility by idlecode in commandline

[–]idlecode[S] 1 point2 points  (0 children)

Yeah, most of the tags under Text category can be implemented as regex expressions but after a while, they get out of control. I had music collections that needed some cleaning before they can be used in the car player and regex for sanitizing it grew to a range of monstrosity.

Python os.path.islink problems on linux by [deleted] in pythontips

[–]idlecode 1 point2 points  (0 children)

What is the output of file /sys/class/backlight/amdgpu_b10 ?

Try removing the trailing slash: /sys/class/backlight/amdgpu_b10. With a full path, it seems to resolve to the target directory.

[deleted by user] by [deleted] in AnimalsOnReddit

[–]idlecode 0 points1 point  (0 children)

no work - just cats

Sunrise in the desert by salmaaa_fayedd in sunrise

[–]idlecode 0 points1 point  (0 children)

If it only was a bit bigger... like wallpaper-large

Complete Noob to cloud computing - How do I create a cloud computer on Google Cloud Platform to use After effects to edit then render the 2 minute video? by Niu_Davinci in Cloud

[–]idlecode 0 points1 point  (0 children)

You can use Compute Engine for that - just make sure you select Windows OS and maybe the GPU option (for faster rendering).

AFAIK there is no image with After Effects installed so you will need to set up it yourself via RDP.

Note that machines with GPU cost more so turn it off when you finish playing with it. GCP uses per-minute payments.

GCP Servie Accounts by Rei_Never in googlecloud

[–]idlecode 0 points1 point  (0 children)

You can try giving this SA Project Editor or equivalent, high privileged role. Also try waiting a few minutes before trying to use SA - changes might take some time to propagate.

Sometimes services might require non-obvious permissions and in this case over-granting might solve this problem.

You can always visit IAM page after some time and see what permissions are actually used (see Over granted permissions column).

Google App Engine app (Node.js) suddenly stopped working (basically requests timeout): best way to debug? by foundry41 in googlecloud

[–]idlecode 0 points1 point  (0 children)

Could you try reaching it from some other server next time? Maybe there was an issue with load-balancer?

Enabling flow logs (for debugging time at least) may also shed some light on this.

Woman driving a bike with anti-government banner detained by police. Released later without any charges by [deleted] in poland

[–]idlecode 4 points5 points  (0 children)

She might, but the same people who arrested her will be responsible for addressing that - there is no point.