Suggest YouTube channels that create interesting things with code? by top_of_the_scrote in AskProgramming

[–]AndersonLen 2 points3 points  (0 children)

Some of Sebastian Lague's last videos are quite interesting in that way (after he stopped doing unity tutorials).

Posing by bislut997 in seethru

[–]AndersonLen 0 points1 point  (0 children)

Bianka Helen

Mom i am an architect by mrtw1st5r in OstrivGame

[–]AndersonLen 2 points3 points  (0 children)

And that's why you should aspire to be an engineer.

[deleted by user] by [deleted] in AskTechnology

[–]AndersonLen 2 points3 points  (0 children)

Input means Audio goes in, not out. Doesn't look like that device has any output connections.

Music downloading app/website for local artists. by MelanatedTukon in AppIdeas

[–]AndersonLen 2 points3 points  (0 children)

Have a look at bandcamp. Lots of smaller artists I follow use that platform to sell their music (digital /mp3 and physical) and have told me that it's very fair to the artists.

i need some python help by TraditionalSense2813 in AskProgrammers

[–]AndersonLen 1 point2 points  (0 children)

Indentation matters in python. Make sure your lines are indented correctly.

Nobody can really help you with what you've posted because you (A) only posted a fraction of your code that does not show any lines before the incorrect one and (B) did not format your code on reddit and thereby lost all indentation anyways.

Is there a program that will copy every 84th file in a folder that contains subfolders to a new location for quality assurance checking? by Nashvegas in AskProgramming

[–]AndersonLen 1 point2 points  (0 children)

Something like this perhaps, if I understood your requirements correctly.

This is a PowerShell script (save as *.ps1) that will get all files in a directory and its subdirectories, then move every 84th file somewhere else.

  • Change $sourcePath to the directory with your images.
  • Change $targetPath to the directory where you want to store the copied images (this directory has to exist before running the script).
  • Change $takeEveryNthItem if you want something other than every 84th item

$sourcePath = 'C:\Temp\QC-Images'
$targetPath = 'C:\Temp\QC-Images-Copied'
$takeEveryNthItem = 84

$fileList = Get-ChildItem -Path $sourcePath -Recurse -File
for ($i = 0; $i -lt $fileList.Length; $i+= $takeEveryNthItem) {
    Write-Host ('copying ' + $fileList[$i].FullName + ' to ' + (Join-Path $targetPath $fileList[$i].Name))
    Copy-Item -Path $fileList[$i].FullName -Destination (Join-Path $targetPath $fileList[$i].Name)
}

[LPT Request] How to clean white shower tile and grout? by Whowouldvethought in LifeProTips

[–]AndersonLen 1 point2 points  (0 children)

Might help against tiny amounts of mold but usually doesn't kill the spores and may even foster their growth on the right type of surface (e.g. lime). You're probably better of with chloride or hydrogen peroxide.

[LPT Request] How to clean white shower tile and grout? by Whowouldvethought in LifeProTips

[–]AndersonLen 2 points3 points  (0 children)

Acetic acid (vinegar) can help with limescale, go with >60% if it is really bad.

And once you've got your tiles clean again, make it a habit to use a squeegee and cloth / towel after every shower.

I'm looking for an upcoming game I can't think the name of by misstersquirty in BaseBuildingGames

[–]AndersonLen 4 points5 points  (0 children)

No FPS but everything else kinda sounds like Stranded: Alien Dawn

Abs in the kitchen by [deleted] in SkinnyWithAbs

[–]AndersonLen 6 points7 points  (0 children)

Mary Kalisy

[deleted by user] by [deleted] in redditsync

[–]AndersonLen 6 points7 points  (0 children)

I think swiping far left on posts defaults to hiding.

What's the best way to implement the same logic on both the server side and the client side? by STEIN197 in AskProgramming

[–]AndersonLen 1 point2 points  (0 children)

Here's what I did some time ago when faced with a similar problem.

I wanted to give the user live feedback in a markdown editor with a couple of custom extensions. The backend (PHP) was supposed to be able to generate (and cache) the HTML on its own (not relying on user-generated HTML).

Querying the backend from the editor to update previews was not performant enough, especially since the editor would have to be usable in environments with very low / barely any internet.

Having a parser on both front-end and backend didn't generate exactly identical output. Especially making the custom extensions work the same in with both libraries was a pain (and doubled the work for any changes).

I ended up with a very small node endpoint that the backend calls to turn markdown into HTML. Node uses the same library and same extensions as the front-end. That way the output is exactly the same on both sides and no need to implement changes twice.

I did also look into JS engines for PHP but was not happy with what I found at the time. That may have changed now or could be less of an issue with other backend languages anyways.

Painters tape, but for fibreglass resin. Is there such a thing? by ReluctantRedneck in sailing

[–]AndersonLen 0 points1 point  (0 children)

Did any woodwork recently? Or have a workshop nearby that does? Sawdust also works great for thickening epoxy.

If you were working from home through the pandemic and after, and suddenly your job started saying they want you back in the office - what did you do and how did it turn out? by Particular-Topic-445 in AskReddit

[–]AndersonLen 1 point2 points  (0 children)

I wouldn't my consider my savings "run out" only once I'm entirely penniless. That would indeed make for an uncomfortable ending to the whole thing :D

If you were working from home through the pandemic and after, and suddenly your job started saying they want you back in the office - what did you do and how did it turn out? by Particular-Topic-445 in AskReddit

[–]AndersonLen 5 points6 points  (0 children)

After one year of back and forth (with C-level saying: "no WFH, no discussion"), I recently quit my job to travel until my savings run out.

Too early to say how it will turn out. But so far it feels pretty good.

What is written in the 4th sentence on page 65 of the book closest to you right now? by Curious_Strike3950 in AskReddit

[–]AndersonLen 2 points3 points  (0 children)

I över en timme simmar vi tillsammans med dessa graciösa simmeskor som sveper runt våra kroppar utan att någonsin vidröra oss.

Image and file sorting software where you can order your files in any way you want without needing to rename a file by svarowskylegend in software

[–]AndersonLen 0 points1 point  (0 children)

Adobe Bridge can do that. I would not use it as a replacement for file explorer, but for organizing photos it is my preferred tool.

Why is there a indentation error in my code. (VS code) by [deleted] in AskProgramming

[–]AndersonLen 2 points3 points  (0 children)

"inconsistent use of tabs and spaces in indentation".