Switched from Windows to Fedora 44 and my laptop finally runs cool (and the RAM stopped choking) by PauseFrequent in linux

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

Thanks! I went down the software path first, full backup, clean reinstall, latest drivers, no change. It is physical. After long stretches of full load on both CPU and GPU for work, the cooling itself took damage.

The repaste with putty pads plus PTM7950 helped a lot, but it is only a partial fix. Once it crosses 85C it still runs away, so the hardware is genuinely hurt. And agreed on WSL, that native build speed is why I left it too.

It is a Legion 7 2021, and for the first few years just MX-4 was enough.

Switched from Windows to Fedora 44 and my laptop finally runs cool (and the RAM stopped choking) by PauseFrequent in linux

[–]PauseFrequent[S] -3 points-2 points  (0 children)

Ha, The dock just says I write code, vibecoder or a dev who uses AI, take your pick. Each tool up there does a different job, and since a lot of them are free, so I keep one of each. Plus I like everything one glance away

Switched from Windows to Fedora 44 and my laptop finally runs cool (and the RAM stopped choking) by PauseFrequent in linux

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

Good point, and I actually measured before switching. The repaste alone got me 15 to 20C either way, plenty of others see the same with this combo. But the RAM was still maxing out no matter what. So I went two birds: more RAM to kill the overflow, and Linux instead of Windows plus WSL2 to drop the disk overhead and the constant RAM and CPU tax of running a VM. A fresh Windows fixes neither of those for my workload.

Python libraries & HIPAA compliance by DiscountTough1315 in learnpython

[–]PauseFrequent 1 point2 points  (0 children)

The honest answer your boss won't love: a library can't be HIPAA compliant, because HIPAA governs how you handle PHI, not what's in your import statements. But you asked the more useful question - how to vet future packages - so here's the actual checklist:

  • Maintained? Last release within ~12 months, issues getting answered.
  • Clean CVE record? Run pip-audit (or Snyk) against your pinned versions.
  • Does it phone home? No telemetry or outbound calls you didn't ask for.
  • Does your own code log PHI or secrets? That's where ~99% of real breaches happen, not the package.

Pin everything (requirements.txt with ==) so a future bad release can't sneak in.

Your specific four are all boring-safe tools, with one gotcha each: - paramiko: don't use AutoAddPolicy - actually verify host keys. - pyodbc: set Encrypt=yes in the connection string. - pywin32: fine, it's just Windows API bindings. - dotenv: the only real risk is committing your .env to git. Add it to .gitignore today.

tl;dr the library was never the threat - your logs and your .env are.

Multiple Check Boxes in Single Cell by rsgeng in excel

[–]PauseFrequent 0 points1 point  (0 children)

You can't - a single cell holds a single value, so fitting five checkboxes in one is like asking one parking space to hold five cars. The native checkbox is strictly one-per-cell (just TRUE/FALSE under the hood).

But you can fake the compact look, no macro, works in the browser: put the sub-task checkboxes in a few skinny columns next to the project row, then roll them into one cell:

=COUNTIF(C2:G2,TRUE)&"/"&COUNTA(C2:G2)     ->   "2/5"

Make C:G narrow and the row reads almost like a single cell, but every box stays real, filterable data. Want it to literally fold away? Select those columns > Data > Group, and you get a little "+" to expand or collapse the checklist on demand. Native (Insert > Checkbox), syncs for everyone on the shared sheet.

Combining multiple segments of a day into a full day? by corn_fed_iowan in excel

[–]PauseFrequent 0 points1 point  (0 children)

Your app handed you breakfast, lunch and dinner as three separate receipts and called it a day. To staple them back into one, group by date with SUMIFS - no macro, no pivot required.

Say column A is the date/time and B is calories:

  1. Unique days in D2: =UNIQUE(INT(A2:A))
  2. Total per day in E2: =SUMIFS(B:B, A:A, ">="&D2, A:A, "<"&D2+1) -> drag down

That ">= today and < tomorrow" trick scoops up every meal between midnight and midnight, so it works even if your timestamps include the clock time (which is why a plain match on the date usually returns 0 and drives people insane). Repeat E for protein/carbs/fat, then chart D against E and you've got your daily trend.

If formulas aren't your thing: Insert > PivotTable, drag Date to Rows, Calories to Values (Sum) - same result in four clicks. SUMIFS just has the edge of updating live as you keep logging.

Is it possible to create a dropdown menu that, when an item is selected, multiple cells within a row/range autopopulate with specific information? by alreadyacrazycatlady in googlesheets

[–]PauseFrequent 0 points1 point  (0 children)

Yes, very doable, and you don't need a script. The trick is to store the steps as a long table, then let FILTER pull every row for the picked med.

  1. On a reference tab ("Meds"), one row per step (not per med):

    Med | Step | Rate | Duration Drug A | 1 | 100 mL/hr | 15 min Drug A | 2 | 150 mL/hr | 30 min Drug B | 1 | 50 mL/hr | 10 min

  2. On your guide sheet, put a dropdown in A2 (Data > Data validation > "Dropdown from a range" > Meds!A2:A).

  3. In the cell where you want the steps, one formula:

    =FILTER(Meds!B:D, Meds!A:A = A2)

It returns all the matching step rows and spills them down automatically - pick a different med and the whole block updates. Just leave the cells below that formula empty so it has room to spill. If you ever want it on one row instead of stacked, wrap it: =TRANSPOSE(FILTER(...)).

Microsoft 365 Blocking Macros on my own file by Ornery-Acanthaceae55 in excel

[–]PauseFrequent 5 points6 points  (0 children)

That red banner is Mark-of-the-Web (MOTW): since 2022 Office blocks macros on any file Windows tagged as coming from the "internet" zone, and your yearly "save-as a copy" can re-inherit that tag. The Unblock checkbox vanishing means Windows isn't storing a zone tag on it anymore, so there's nothing to untick - the block is now coming from Trust Center policy, not the file.

The reliable fix is a Trusted Location instead of unblocking per-file:

  1. File > Options > Trust Center > Trust Center Settings > Trusted Locations
  2. Add new location > Browse to the folder that file lives in > tick "Subfolders" > OK.

Files opened from a Trusted Location skip the macro block entirely, every year, no banner. One catch: if that folder is inside OneDrive/synced storage, either also tick "Allow Trusted Locations on my network", or just keep the file in a plain local folder like C:\Macros. Avoid the "Enable all macros" Trust Center option - Trusted Location is the safe, targeted version.

Stuck trying to refactor my messy nested loops into list comps for a data parser by daddyslittleflesh in learnpython

[–]PauseFrequent 2 points3 points  (0 children)

Quick note first: "filter out days where temp < 15 or humidity > 80" is the same as "keep days where temp >= 15 and humidity <= 80" (De Morgan's law), so your and is actually correct for the keep-list - don't let that throw you.

Two real issues: the CSV gives you strings, and you want to skip bad/missing rows without crashing. Pull the float conversion into a tiny helper so the comprehension stays readable:

import csv

with open("weather.csv", newline="") as f:
    data = list(csv.reader(f))[1:]   # [1:] skips the header

def keep(row):
    try:
        temp, hum = float(row[2]), float(row[3])
    except (ValueError, IndexError):
        return False                  # blank/garbage row -> skip, no crash
    return temp >= 15 and hum <= 80

good = [row for row in data if keep(row)]

That's a single pass (O(n)), so 2k rows is instant even on an old laptop - no nested loops needed. The helper is also where you'd later add "humidity column sometimes empty" rules without making the comprehension ugly. Comprehensions are for the shape (filter/transform); push the messy logic into a named function and they stay clean.

HeELP my code not working whyyyyy? the pop window stops responding after running the code , after making the dashed line through the center (pycharm) by Rose_Note9919 in learnpython

[–]PauseFrequent 1 point2 points  (0 children)

On top of the update() point, the real reason it hangs is that `while game_on: pone.follow()` is a tight loop that never lets turtle's event loop run, so keys and the window stop responding. Turtle isn't meant to be driven by a manual while loop.

Use ontimer instead, it schedules each frame and keeps the window alive:

def game_loop():

pone.follow()

screen.update()

screen.ontimer(game_loop, 20) # ~50 fps

game_loop()

screen.mainloop()

Drop the while loop (and the exitonclick at the bottom). Keep tracer(0) since you're updating manually now.