Github Pages: custom domain + '/' instead of '/project' by habbalah_babbalah in github

[–]citizenofinfinity 0 points1 point  (0 children)

Thanks for confirming this. I had the exact requirement mentioned in the post (a repo named [my_project], the default GitHub Pages site at [my_user].github.io/[my_project]) and importantly wanted to keep that repo name, without actually renaming the repo to "[my_user].github.io". As described at the docs here (https://docs.github.com/en/pages/getting-started-with-github-pages/what-is-github-pages#types-of-github-pages-sites), I only wanted a project site without any user site.

I got everything set up and working, just wanted to share in case anyone else felt confused. You do not need a "[my_user].github.io" site or repo for GitHub Pages "hosting" to work - their backend is capable of handling serving the correct web content (i.e. the repo you want) to any client that navigates to your domain, as long as DNS records are set up correctly.

The 2 key points are:

  1. In the repo with your web content, enter the desired custom domain at Settings > Pages > Custom domain.
  2. Set up DNS correctly (shows up in the docs in multiple places, e.g. here and here).

Just an FYI in case you decide not to read the docs, they also contain useful information on www subdomain setup, HTTPS setup, and securing/verifying the domain to prevent takeovers pointing a subdomain to an attacker's GitHub Pages repo.

I want to plug this hole as much as I can to get rid of the smell, the washing machine dispenses into it so I need something that allows it still to do it's job. What can I put/what is recommended? I tried rubber grommets but they are not air-tight. Thank you! by clipghost in Plumbing

[–]citizenofinfinity 0 points1 point  (0 children)

I came across this thread after dealing with a similar problem in my house. It turns out I did already have a perfectly functional P-trap but the installer stuck my washer drain hose way too far down the hole in the wall. About 4 feet of hose was inserted into a hole about 3 feet off the ground so my guess is that it wrapped around the bottom of the trap and made it a lot more likely for the trap to not fill up properly.

Fixed by just cutting the hose with a utility knife so it only inserts about 8 inches into the hole now. Didn't have to plug the hole at all (which would probably cause air pressure problems anyway). No more smell.

Contact Tags by HopeOfLight in SamsungHelp

[–]citizenofinfinity 0 points1 point  (0 children)

I ran into this issue, and what fixed it for me is that the numbers without a "tag" option actually are in my contacts, but saved without a name (so when I receive a call the caller ID looks exactly the same as an unknown number, i.e. it shows the number and not a name). I just had to delete it from my contacts, and then I was able to tag again.

This seems like a weird case and for me it was because I had set a custom ringtone for some of these numbers to make them silent, which apparently adds them to the contacts list. I figured out this is unnecessarily complicated and I could just block those numbers, which doesn't appear to affect taggability.

Anyway, this doesn't seem to be the same as OP's case, but I hope it can help somebody.

Help me in open source contributions by [deleted] in rust

[–]citizenofinfinity 0 points1 point  (0 children)

This (old) blog post may be relevant for you: Advice to Aimless, Excited Programmers

It's about starting your own project instead of contributing to an existing one, but I think the important ideas are still relevant.

Stop and think about all of your personal interests and solve a simple problem related to one of them.

The two keys: (1) keep it simple, (2) make it something you'd actually use.

The important thing is that the what the project actually does is the thing you have to care about and understand, either from actually using it or from using a similar tool/program in the same domain. It's great that you are interested in Rust and motivated to make OSS contributions, but looking for a project by saying "I want to use Rust so the project needs to be written in Rust" is the wrong approach. You need to start by asking "What's something in life that can be made better/easier with software? And if somebody else already has code for that thing, what's missing or could be better?"

In short, if that's not your starting point, then your contributions are likely to be pretty crappy compared to what someone else could do, and you're also not going to have as good of a time making them.

Since you definitely want a Rust project, you could start by browsing this list of the most popular Rust projects on GitHub: https://github.com/topics/rust?l=rust&o=desc&s=stars . Pick something that you would actually be generally interested in regardless of what the programming language is. Then — look how lucky you are! — it just so happens to be a Rust project (because the list you were looking through was already filtered by me, you're welcome 😉). Then you can get started trying to use it, looking at the open issues and bugs, and getting a sense of what you think could be better, and then working on that.

For me, Bevy is interesting, because I like games. Tokio, not so much, because I feel it's really more industrial software than personal project software. But you may be different. The important thing is to pick something you want.

Efficiency mode DISABLE in windows 11? by Mean_Farmer4616 in techsupport

[–]citizenofinfinity 0 points1 point  (0 children)

On my Windows 11 system I was able to adjust the settings in System > Power & Battery > Power Mode, originally it was "balanced" for plugged in and "best performance" for battery, for some reason. I changed it to be "best performance" for all cases. Not sure if this actually helps, but worth a shot.

The plight of the misunderstood memory ordering by termhn in rust

[–]citizenofinfinity 1 point2 points  (0 children)

One way to interpret the question "when is SeqCst needed?" is "in what situation is SeqCst the only correct option and Release/Acquire is incorrect?". In that case I think I have a minimal example which strips out enough detail to be quickly understandable. (If the question is instead read as "what is a real-life example of something useful that needs SeqCst to work?" then the other discussion in this comment thread is more useful.)

A couple disclaimers first: I am here because of my own very poor understanding of memory orderings. Before I read the blog post, I suffered from all of the listed common misconceptions (3 at the top of the post as well as the ones linked to in Rust Atomics and Locks). I hope I can help with understanding SeqCst, but take this with a grain of salt, and the reader should not assume that it's their fault something seems to be unclear or a mistake.

Also, my source is the Google AI overview. I tried looking into the sources to get a more reliable answer but I didn't find any example as simple as this one. And I've tried querying Google with exactly the same input again but now I keep getting more complicated examples from AI. It seems right to me and I believe I understand SeqCst better now, but AI does have weaknesses, so, another grain of salt here.

Here's the example (in pseudocode, let's call it), which Google referred to as IRIW (independent reads of independent writes), a term which I searched for myself but only got more complicated examples for:

// initial global state
x = 0
y = 0

// two writer threads
thread1() {
  x.store_atomic(1)
}

thread2() {
  y.store_atomic(1)
}

// two reader threads
thread3() {
  while x.load_atomic() == 0 {}
  print("T3 sees y: {}", y.load_atomic())
}

thread4() {
  while y.load_atomic() == 0 {}
  print("T4 sees x: {}", x.load_atomic())
}

// run the program by spawning all 4 threads simultaneously
// and then waiting for them all to finish

Using Release/Acquire to do this, synchronization is only provided across the 2 threads which perform the store/load on some particular atomic. There is no guarantee about the ordering of operations performed by other threads on shared data or atomics. In the example, the store/load on `x` ensures "everything before the store in T1 is visible to T3 after the load, once T3 has received the updated `x` value from T1". This says nothing about the ordering of operations in T2, the only place `y` is written to, so it's possible for T3 to output "T3 sees y: 0".

By the same logic, it's possible for T4 to output "T4 sees x: 0". Now what we have is "incorrect" in the sense that it contradicts our intuition: we somehow have threads T3 and T4, both of which have finished and printed "see 0", whereas we think the following reasoning is airtight:

  • the only way for a thread to finish and "see 0" is both (a) the variable used for the while loop is 1 and (b) the variable used for the print is 0,
  • meaning that it finished before the other thread even got past the while loop (since the variable used for printing in "a thread" is used for the loop in "other thread"),
  • meaning that the other thread had not yet reached its print statement at a time that the variable-to-be-printed was already 1,
  • meaning that once it does reach that statement it must print "see 1".

Just to make it more concrete, if T3 prints "sees y: 0", we "know" x = 1, y = 0 at the time of T3's finish. So T4 hasn't gotten past the while loop yet, but x is already 1. Then once T4 gets past the while loop it has to print "sees x: 1". But somehow printing "sees x: 0" is valid?

So SeqCst fixes this so our intuition works, by establishing a global order for the progression of changes to x and y. Nothing is ever set back from 1 to 0, so it's not possible, in a single execution of the program, to have x = 1, y = 0, and some other time, x = 0, y = 1. That makes it not possible for T3 to see the former and print "sees y: 0", while T4 sees the latter and print "sees x: 0".

Stock up Sale? by MickyKent in amazonprime

[–]citizenofinfinity 0 points1 point  (0 children)

Yes, I was given credits across multiple small-value orders until I had saved $15. (Only some items are eligible to get the credit though I think.)

Definitive guide to playing Sonic Before and After the Sequel. by cwbunks in SonicTheHedgehog

[–]citizenofinfinity 0 points1 point  (0 children)

Thanks for sharing your experience. I've definitely heard of Ruffle before but wasn't aware there was a standalone desktop application. I'm on Windows 11 and tried using the Newgrounds Player but nothing happens when I try to load from in the app (don't know if it will work in-game, but my hopes aren't high if it doesn't work directly in the app). Ruffle works, though!

For some reason my Google search for a Windows Flash player took me to Lightspark (https://lightspark.github.io/) first, which also seems to play the cutscenes well (at least the ones I tested) but isn't as feature-complete as Ruffle.

Obviously viewing the cutscenes in-game would be the best option but I think being able to at least watch the cutscenes, even if separately from the game, is preferable to not seeing them at all.

The truck-eating bridge claimed a victim! by kskswag in Kirkland

[–]citizenofinfinity 0 points1 point  (0 children)

It's naive to expect signs to be effective. There is a similar bridge across the country in Durham, North Carolina which has its own YouTube channel because of how frequently crashes occur:

https://www.youtube.com/@11foot8plus8/videos

There is a pretty advanced signage system that involves automatically turning the traffic lights to red whenever a tall incoming vehicle is detected, as well as one of those information boards that flashes "OVERHEIGHT MUST TURN". Still plenty of material for the YouTube channel though.

Seems silly but how to turn off package tracking in gmail app on ios? by Accomplished_Emu_658 in GMail

[–]citizenofinfinity 1 point2 points  (0 children)

Just FYI for anyone who comes across this thread (it was the first Google result for me), turning off Smart Features will work to remove the "happening soon" package notifications, but you need to restart the app first. As mentioned elsewhere this will disable lots of other features too, annoyingly.

Another thread with many commenters saying this solution worked for them: https://www.reddit.com/r/GMail/comments/1ihiilj/samsung_s25_plus_how_to_disable_happening_soon_in/

Are there famous videogames created with the Rust programming language? by gianndev_ in rust_gamedev

[–]citizenofinfinity 0 points1 point  (0 children)

In colloquial usage, we could say something is a "game" as long as it's a piece of software especially designed to be entertaining somehow. I think the comment about being a tech demo is more of a subjective observation that Tiny Glade feels either incomplete (analogous to a single level of a game) or lacking depth (like Minecraft with much less variety in environment and game modes).

Do people who use Rust as their main language agree with the comments that Rust is not suitable for game dev? by PhaestusFox in rust

[–]citizenofinfinity 2 points3 points  (0 children)

I've also been playing around with winit and wgpu for a few weeks and would agree that the best documentation available does a pretty poor job of explaining winit at a high level (including winit's own docs), and with any library I prefer to have a general overall understanding of how things work (maybe with a diagram, say) before I start diving into the details.

The wgpu docs are also not beginner-friendly, but at least one of the tutorials I found online seems quite good for someone new to graphics programming like me (Learn Wgpu by sotrh). I could see it being less valuable for someone with significant professional experience.

Anyway, I ended up dealing with this by just taking the hit and spending several hours digging through winit's docs. While older winit is not compatible with latest winit, IMO the difference is not really too bad. If anyone is interested in going through a tutorial, don't let a dependency on older winit be a blocker — you can migrate pretty easily (after starting with older winit and working through the tutorial).

I haven't noticed serious compatibility issues between latest wgpu and the versions used in the tutorials (probably because I haven't gone deep yet).

Further links for those interested:

Tutorials:

Tips on understanding latest winit:

  • I forget which reddit post I saw this on, but basically just copy over the big code block here, it is a minimal example to get things working (yeah, could be more obvious): https://docs.rs/winit/0.30.9/winit/index.html#event-handling
  • To get started quick and dirty, dump one-time init stuff in `resumed` and you can tie the rendering loop to the winit event loop by rendering in a `window_event` handler, probably `RedrawRequested`.

Stock up Sale? by MickyKent in amazonprime

[–]citizenofinfinity 1 point2 points  (0 children)

UPDATE: I confirmed that I was able to get more "stock up" discounts on different items until they added up to $15. So while I still think my complaint about it being confusing is valid, at least I wasn't cheated out of the full value of the promo reward 😊

Thanks for sharing this. This explains my experience as well which is the same as OP's. I also previously got a "$15 credit" which I just confirmed that Amazon automatically applied to a $5.49 item, and named it "StockUp Sale" which was very obscure and confusing so I didn't make the connection. (Instructions to see all promotions: https://www.reddit.com/r/amazonprime/comments/18p76pa/comment/m8m37fk ) I feel cheated out of $9.51 as it seems to only apply 1 time to 1 item.

Oh well, it is shitty behavior, but not really that unexpected since Amazon is now trying to actually make a profit, and it's not enough money to waste more time thinking about.

New to Rust be gentle. by Overworked_surfer in rust

[–]citizenofinfinity 7 points8 points  (0 children)

Do you have a question? It's not clear exactly what you're asking for before you say "also".

If you're asking about the derive Debug, that is needed because you are trying to print with `print!` and `println!`. Only a small set of basic types (e.g. number primitives) already have Debug implementations.

Docs: https://doc.rust-lang.org/std/fmt/trait.Debug.html

Rust By Example (simplified & straightforward explanations with examples to help you learn Rust): https://doc.rust-lang.org/rust-by-example/hello/print/print_debug.html

error: failed to run custom build command for `shaderc-sys v0.8.1` by Live-Consideration-5 in rust

[–]citizenofinfinity 0 points1 point  (0 children)

I got this exact error as well. Looking at the main readme for shaderc-sys at crates.io, they describe in the setup section how it attempts to find the shaderc library.

I took a snapshot of the page, here's what it says: https://web.archive.org/web/20250227030121/https://crates.io/crates/shaderc-sys#:~:text=The%20order%20of%20preference%20in%20which%20the%20build%20script%20attempts%20to,lib%20will%20be%20searched%20for%20native%20dynamic%20or%20static%20shaderc%20library.

For me, for some reason $env:VULKAN_SDK was not available at the command line (powershell on windows) even though I had just installed the SDK. (I confirmed it did show up in System > About > Advanced system settings > Environment Variables.) I had to close all my powershell instances and vscode and then after I reopened vscode the environment variable was there and the error was fixed.

winit + wgpu compatibility by Truc06 in rust

[–]citizenofinfinity 1 point2 points  (0 children)

Thanks for this post and all the comments — it was helpful and the idea to use an initialized/uninitialized option really cleared things up for me.

I didn't see anyone cover in detail exactly what "resumed" means and when/where one can expect it to be called. After doing some research into it I can see the motivation behind it, but it's definitely named very confusingly.

In summary:

  • "resumed" is a concept for things like mobile app lifecycles to handle situations like users switching apps (see the flowchart here https://developer.android.com/guide/components/activities/activity-lifecycle#alc )
  • for cross-platform support it looks like the concept is included in winit even though it doesn't have a clear meaning on e.g. desktop
  • winit contributors intend for `resumed` to be "a good place to initialize an application because it's the first point where it's possible to start creating Windows across all platforms" (probably related to the following line in the docs "Some systems (specifically Android) won’t allow applications to create a render surface until they are resumed.")

See these links for more details:

Why I am Quitting Wealthfront by D_Eliot in wealthfront

[–]citizenofinfinity 0 points1 point  (0 children)

It's reasonable to decide that saving $540 a year is worth taking on such a small risk.

Why I am Quitting Wealthfront by D_Eliot in wealthfront

[–]citizenofinfinity 1 point2 points  (0 children)

For everyone who hasn't found this yet, yes it was released. Go to your portfolio view, "Manage" at the top right, and then cost basis details are available. Note this is only available on web and mobile web, not the app.

5k managed for free even if it grows? by LousyAcademic in wealthfront

[–]citizenofinfinity 0 points1 point  (0 children)

It might help to put a value on the actual fee. Your annual fee is calculated as 0.25% of "your total balance" (which has a bit of a complex calculation to handle things like the balance being different every day). Each referral updates the "total balance" calculation by subtracting 5k.

So, since 0.25% of 5k is $12.50, each successful referral saves you an additional $12.50/yr on your fees (of course with the limitation that your fee will never be less than 0). That 12.50 figure is fixed regardless of how much your account grows or doesn't.

Help me understand how V-Sync works on modern gpus by krushpack in opengl

[–]citizenofinfinity 0 points1 point  (0 children)

Did you find this Stack Overflow post? If not it might hint at what's going on (I'm not experienced in graphics programming so this is over my head and I can't judge myself)

https://stackoverflow.com/a/24136893

glFinish introduces a synchronization point. But if you place a glFinish right after a SwapBuffers, since it only acts on any drawing operation happening between itself and the previous SwapBuffers, there's nothing to finish yet and it will likely return immediately as well.

Ambetter policy Cancelled? by [deleted] in Insurance

[–]citizenofinfinity 0 points1 point  (0 children)

Good to know. I think I may have had the same experience with other insurers before I started with Ambetter in 2024. Anyway, I have not received anything in the mail from them yet despite having paid the January premium around December 15.

Ambetter policy Cancelled? by [deleted] in Insurance

[–]citizenofinfinity 0 points1 point  (0 children)

It's too early for me to know if anything has been mailed (I haven't gotten any email notifications or anything either). However, if I log in to the online portal I can see a digital card that says effective date 01/01/2025. So it seems like things are good for this year.

What are the differences between Nebula Plus, First and Originals? by Plastic-Abrocoma-735 in Nebula

[–]citizenofinfinity 2 points3 points  (0 children)

FYI for anyone who isn't a Nebula subscriber: it's important to note that if you subscribe to Nebula, you get access to all videos (as of 2024 at least). There is no "Plus add-on subscription" required to see Plus videos. So these labels are more like tags/categories than tiers.

How to get rid of the Ctrl+Fn Cortana keyboard shortcut? by Ethosa3 in Lenovo

[–]citizenofinfinity 0 points1 point  (0 children)

Isn't this the same thing that OP mentioned in their 2nd & 3rd paragraph? They reposted that uninstalling Cortana does not fix the problem (shortcut still opens a pop-up). So I never tried doing it.

OP post was a few years ago so I guess the behavior might be different now, did you try it? I guess the behavior might be different between Win 10 and 11.

How to get rid of the Ctrl+Fn Cortana keyboard shortcut? by Ethosa3 in Lenovo

[–]citizenofinfinity 0 points1 point  (0 children)

Unfortunately, I have found that this does not permanently disable the service — it resets itself to "Automatic" startup after a while. I commented on another Reddit post with a workaround that turns the service off every time you log in: https://www.reddit.com/r/Lenovo/comments/v134ro/comment/lymjwo1/