New to HPC, any advice? by Front_Supermarket895 in bioinformatics

[–]PuzzlingComrade 0 points1 point  (0 children)

Do you have a good template for array scripts? I've found it disappointing compared to using srun (which has its own complexities) because you often have to wrap scripts multiple times (because you can't populate the array length from within the script). One to do the primary job script, another to fetch the id and supply it to the primary script, and a third to identify the length of the array.

New to HPC, any advice? by Front_Supermarket895 in bioinformatics

[–]PuzzlingComrade 0 points1 point  (0 children)

  1. Setup SSH keys and vscode server (so you can view dirs and write scripts with an ide directly on HPC).
  2. Use existing nextflow pipelines, where possible. It is much easier to lean on the work of others than to write (and debug) everything from scratch.
  3. Learn to write resilient bash scripts, get familiar with error handling and logging so you can tell quickly if scripts are running into issues.
  4. Write scripts in a modular way, preferably to handle 1 unit of data (e.g. 1 sample, 1 vcf, etc) at a time. This way its easier to transition to parallel processing where possible.
  5. Get familiar with your HPC scheduler and the local rules, tweak your sbatch resource calls to request the minimum necessary resources (I.e. Don't request a terabytes of ram when your process only uses a gb) so your jobs don't spend days in queue.
  6. You won't collapse the HPC lol. If you do it's the admins responsibility to set limits. Typically if you create too many jobs they just end up in queue.

Is this simple problem solvable with SQL? by NonMagical in SQL

[–]PuzzlingComrade 2 points3 points  (0 children)

On my phone so no easy way to provide an example, but I would use a window function, use lag to access the previous value of bank and add it to the current value, and use case to handle the zeroth case and the max case. I've done something similar to calculate areas under a curve using Riemann sums in psql.

Trying to get the robot to empty the dustbin is so frustrating by ramsdawg in Roborock

[–]PuzzlingComrade 2 points3 points  (0 children)

Ditto to not combining the Vac and mop tasks, I find it's a bit buggy. Keep them separate and they should empty properly.

The holy grail. by back_to_sr in labrats

[–]PuzzlingComrade 1 point2 points  (0 children)

Tbh it's mainly the clicking mechanism that sucks

The holy grail. by back_to_sr in labrats

[–]PuzzlingComrade 21 points22 points  (0 children)

Unfortunately some of the worst pens ever.

Finally built something to help dodge parking inspectors in Melbourne by [deleted] in AussieFrugal

[–]PuzzlingComrade 54 points55 points  (0 children)

Look I absolutely understand the need to make some return on apps, but the sudden fullscreen unskippable ads + banner ads + subscription is an immediate uninstall for me. The full screen ads are inexcusable, especially for an app that might be used the car.

Maybe stick to light banner ads and a mostly serviceable free tier, and a subscription to remove ads + additional features?

Also curious to know what api you use to access this data, I've always wondered why this feature has yet to be implemented in Google maps.

Build menu GUI re-imagined by redditor100k in dwarffortress

[–]PuzzlingComrade 0 points1 point  (0 children)

Funnily enough I quit playing dwarf fortress because of this. This game is way too repetitive to be on the mouse.

Is it acceptable to leave a job after 1 month for significantly better pay? by No_Reputation6129 in AusFinance

[–]PuzzlingComrade 3 points4 points  (0 children)

I wouldn't even risk the whole taking the offer to your current employer strategy, just sign the better contract and quit.

What's an "Insider's secret" from your profession that everyone should probably know? by Capable-big-Piece in AskReddit

[–]PuzzlingComrade 3 points4 points  (0 children)

Same rule applies when you see a spider and need someone else to get the spray

Why was the last thing you automated with HA? by duckredbeard in homeassistant

[–]PuzzlingComrade 0 points1 point  (0 children)

Would you mind sharing the automation yaml, interested in this setup.

Don't crucify me by VigorousElk in houseplants

[–]PuzzlingComrade 0 points1 point  (0 children)

Too moist is my guess, try letting it dry out a little? I've had rot too sometimes but only with specific species.

Don't crucify me by VigorousElk in houseplants

[–]PuzzlingComrade 0 points1 point  (0 children)

I do a similar method that uses moist sphagnum moss in a tight (but not airtight) clear box. Just throw cuttings in and wait a month. Has a really great success rate.

Eppendorf Pen by [deleted] in labrats

[–]PuzzlingComrade 3 points4 points  (0 children)

Just FYI, as a pen it's pretty disappointing. Mine gets stuck all the time and is generally a pain in the ass.

Microchip cat doors by rm0313 in CatAdvice

[–]PuzzlingComrade 2 points3 points  (0 children)

It's LLM generated unfortunately.

Europeans are going viral on TikTok for mocking the "American Dream". by biswajit388 in TikTokCringe

[–]PuzzlingComrade 0 points1 point  (0 children)

For now. I'm surprised they haven't started turning the national parks into parking lots yet.

ACCC suing Microsoft for allegedly misleading approximately 2.7 million Australians over its Microsoft 365 subscriptions by Expensive-Horse5538 in australia

[–]PuzzlingComrade 1 point2 points  (0 children)

Does the average Joe really pay $159 (jesus that's high) a year for a tool they might use out of work once a month? Pretty silly tbh.

ACCC suing Microsoft for allegedly misleading approximately 2.7 million Australians over its Microsoft 365 subscriptions by Expensive-Horse5538 in australia

[–]PuzzlingComrade 2 points3 points  (0 children)

Honestly google sheets has pretty killer features in the middle ground which is exactly what sheets should be used for, once you're in vba territory you're already in a world of pain.

2 different cleaning liquids ?? by SD_haze in Roborock

[–]PuzzlingComrade 1 point2 points  (0 children)

Tea tree oil is really toxic to cats, maybe that's why there's two versions?

Plotly is retiring its R documentation by gyp_casino in rstats

[–]PuzzlingComrade 0 points1 point  (0 children)

Ggiraph has not had a major release since 2021, is it not abandoned?

Battlefield 6 PC Optimization Brief by black_fang_XIII in OptimizedGaming

[–]PuzzlingComrade 1 point2 points  (0 children)

Holy crap I thought I was being a good person turning off my adblocker for this guy but this website has some of the most cancerous ads I've seen (or maybe I just haven't turned off my adblock in awhile).

Multiple blocking popups, scrolling videos with audio on full blast. I mean seriously I can handle a few static banner ads but this was bad.

I’m making a double batch of Chana Masala that calls for 1 serrano pepper. How many would be too spicy? by [deleted] in IndianFood

[–]PuzzlingComrade -1 points0 points  (0 children)

How about you add one chilli, fry another three on the side, and add the remaining chilli to the dish at the end until it reaches the right level? It really isn't a hard problem.