-
51 votes
-
What have you been eating, drinking, and cooking?
What food and drinks have you been enjoying (or not enjoying) recently? Have you cooked or created anything interesting? Tell us about it!
6 votes -
It's up to us to preserve video games
13 votes -
Quincy Jones mastered the art of arrangement, transforming simple tunes into epic soundscapes
16 votes -
‘Mild’ tofu, ‘mild’ carrots, ‘mild’ pine nuts: my five-year quest to understand German taste
30 votes -
The Mysterious Song has been found! It's called Subways Of Your Mind by FEX.
12 votes -
Blood Incantation - The Stargate (20min) (2024)
8 votes -
How to vote rationally + Intrinsic values survey
13 votes -
Braflix to shut down: pirate site throws in the towel citing legal pressure
11 votes -
Hackers leak 300,000 MIT Technology Review magazine user records
8 votes -
Invincible Fight Girl S1E1- "I Am"
3 votes -
Touchscreens are out, and tactile controls are back. Rachel Plotnick's "re-buttonization" expertise is in demand.
74 votes -
Striking New York Times tech workers ask people not to play Wordle or other NYT games
26 votes -
The case for left-handed representation in gaming
Hi and hello all and fellow southpaws, With the increasing option to pick from genders between characters (unless heavily tied into story and designed that way) it feels like the next option would...
Hi and hello all and fellow southpaws,
With the increasing option to pick from genders between characters (unless heavily tied into story and designed that way) it feels like the next option would be to have left-handedness become an option.
As a lefty I always felt a little "left" out (pardon the pun) in games as soon as I saw a gun or weapon being held in the "wrong" hand.I know CS2 makes the option available if you dig a little, which is a great start.
So my question is, do you know of any other games that deserve a call out for already having this? Games that might need this (character fantasy) or just a shout out in support of the idea, feel free to discuss below.
Cheers!
26 votes -
This spider scientist wants us to appreciate the world's eight-legged wonders
6 votes -
Special mud rubbed on all MLB baseballs has unique, 'magical' properties, study finds
9 votes -
Unpacking the intertwined histories of porn and video games
8 votes -
What is your favorite museum?
Inspired by a recent conversation I had with a fellow museum lover: what is your favorite museum or favorite museums? Why? Curious to learn about some really interesting and unique places that...
Inspired by a recent conversation I had with a fellow museum lover: what is your favorite museum or favorite museums? Why? Curious to learn about some really interesting and unique places that other users might have been to.
33 votes -
MLB's top twenty-five free agents for 2025
15 votes -
Golden State Warriors pull out overtime win in Houston
7 votes -
How do I know if a USB-C PCIe card supports 4k video output?
finally getting to be that time where I need a USB-C slot on my tower that I built back in 2017 so I started looking into expansion cards. One thing I can't tell is how to tell if a particular...
finally getting to be that time where I need a USB-C slot on my tower that I built back in 2017 so I started looking into expansion cards.
One thing I can't tell is how to tell if a particular expansion card supports the usb-c ports with DP-Alt mode for a 4k display if the need arises.
for exmple, had my eye on this one and I can't tell much if it does have that kind of support
9 votes -
USA: The nine dates that matter after election day
18 votes -
Club Penguin: gone but not forgotten
15 votes -
Nightwish manager Ewo Pohjola has been charged by authorities in Finland with assaulting two women at an industry event last year
12 votes -
Amtrak Wolverine (MI), Southwest Chief (AZ) services to see design advancements, right-of-way acquisition with $126 million in grants
12 votes -
What have you been watching / reading this week? (Anime/Manga)
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was...
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was cool, something that was bad, ask for recommendations, or anything else you can think of.
If you want to, feel free to find the thing you're talking about and link to its pages on Anilist, MAL, or any other database you use!
9 votes -
Sex | International trailer
4 votes -
S.T.A.L.K.E.R.: Shadow of the Zone
7 votes -
What games have you been playing, and what's your opinion on them?
What have you been playing lately? Discussion about video games and board games are both welcome. Please don't just make a list of titles, give some thoughts about the game(s) as well.
21 votes -
Gridlock: why it can take eleven years to connect solar farms to the UK network
8 votes -
joan meets the divine void
10 votes -
Once Linux’s biggest enemy: Darl McBride dies and nobody notices
21 votes -
Vegan recipe log
Hi all. I cook as often as I can and thought it might be fun to chat about any recipes you’ve tried or would like to try! I’m vegan so anything I post in this thread will be too. Maybe even share...
Hi all. I cook as often as I can and thought it might be fun to chat about any recipes you’ve tried or would like to try! I’m vegan so anything I post in this thread will be too. Maybe even share snacks or restaurants that are you’ve tried that you’ve liked!
To start is a simple sauce/stir fry recipe I make when I’m pretty tired after a long day:
Spicy salty sweet sauce:
1-2 tbsp gochugaru
1 tbsp white or black rice vinegar
1 tbsp mirin
1 tbsp soy sauce
1 tbsp agave or maple syrup
1 tsp corn starchI usually put all of the ingredients together except for the corn starch and then set aside as I do the rest of the prep.
The rest of the recipe is a bit more variable as I have certain ingredients but looks like this:
1 cup cooked white rice OR hand pulled noodles
Noodle recipe:
250g all purpose flour
125 ml water
1/4-1/2 tsp salt
Canola oilI add the flour, water, and salt to a bowl, mixing with my fingers. It starts to form pretty quickly into a mass. I knead the mass of dough into a ball until uniform. With the large, smooth dough ball I cut it into 8 pieces with a knife, roll them into a sort of prolate spheroid shape, and coat with canola oil. Put the oiled dough shapes into a bowl and cover with a damp towel. Let them rest for about an hour or so.
Heat a pot of water. Flatten the dough pieces into rectangles with a rolling pin. Use the rolling pin (if it’s a thin one, otherwise I use large chopsticks), to press the dough lengthways to create a sort of seam. Hold each end of the dough and slowly pull to stretch. Slap on counter as you pull a few times. Stretch it as long or short as you’d like. On the seam you made with the rolling pin, split the noodle apart so that the noodle is now a large loop. Put into the boiling water and wait roughly a minute /or until it’s floating. Can cook a few noodles at a time, though I usually do one or two and roll/pull while they boil.
With the noodles or rice done or going and the sauce almost ready, start to chop vegetables, maybe a cup or so of 2-3 types. I like Napa cabbage, squash, green onions, bell pepper, and carrots but really get whatever you’d like or have on hand at the time. Sauté the vegetables in a tbsp or so of oil (I use canola or olive), starting with onions/garlic and then adding others as you see fit. Once the vegetables are done to your liking, add the noodles or rice, then the sauce (adding in the corn starch to the sauce at this point) and stir.
Often I’ll actually fry a half block or block of tofu I’ve cubed before adding vegetables into the oil. I usually do this as the noodles (or if I’m doing a pot of rice, as it begins to cook) are about done resting, maybe with 15-20 mins to go, since frying tofu can take awhile.
I like to serve in bowls, topping with a dash of sesame oil, black sesame seeds, and fresh green onion.
I’ll post more recipes in the thread as I make them but this is probably the most frequent thing I make in a given week. Feel free to share your own!
28 votes -
Moving my game project from C to Odin language
15 votes -
Giant rats in tiny vests trained to sniff out illegally trafficked wildlife
21 votes -
Weekly US politics news and updates thread - week of October 28
This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate...
This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate topic, but almost all should be posted in here.
This is an inherently political thread; please try to avoid antagonistic arguments and bickering matches. Comment threads that devolve into unproductive arguments may be removed so that the overall topic is able to continue.
26 votes -
Solid-state batteries enter pilot production, costs expected to drastically drop
30 votes -
A pregnant teenager died after trying to get care in three visits to Texas emergency rooms
81 votes -
Calva Louise - Oportunista (2023)
2 votes -
Ennaria - Monstarrr (2024)
5 votes -
DebunkBot
10 votes -
San Francisco Giants’ Matt Chapman, Patrick Bailey win Gold Glove Awards
4 votes -
Explain one play: Steph Curry - JaVale McGee relay lob play by Brandin Podziemski and Trayce Jackson-Davis settles Golden State Warriors vs New Orleans Pelicans
5 votes -
The (new) Excel Turing machine
18 votes -
Cmake strategies or alternatives for building (different) code for different platforms
Okay, so this is getting really long, I'll put the ask up front: I have a strategy, I think it is reasonable. Now is a point where I can easily change things, and it won't be so easily later. So...
Okay, so this is getting really long, I'll put the ask up front: I have a strategy, I think it is reasonable. Now is a point where I can easily change things, and it won't be so easily later. So I'm looking to see if anyone has trod this road before and can recommend any of:
- a different build system that will be easier to manage for this use case
- a different strategy for using cmake that will be easier to manage
- any gotchas I should be aware of, even if you don't have better solutions.
Background
I have a project I'm working on where the ultimate deliverable will be a hardware device with 3-4 different microcontrollers coordinating with each other and interacting with a PC-ish platform. This is a clean rewrite of a C++ codebase. Due to the microcontroller (and some of the PC APIs) being C++, the language of choice for most of it is likely to remain C/C++.
I'm succeeded in setting up a build system for embedded code. The old code was arduino, so it relies a lot on those libraries, but I've managed to set up enough custom cmake to get off of the ardunio tools altogether, even if I am borrowing their libraries and some of the "smarts" built into the system about setting build flags, etc. So far, I have a dockerized toolchain (cmake + make + gcc-arm-none-eabi) that can successfully build ARM binaries for the target platform.
The thing that I'm up against now is that I'd like to have a robust off-target unit testing infrastructure. My ideal case is that everything in the embedded system will be broken down into libraries that have clear interfaces, then to use unit tests with mocks to get high coverage of test cases. I'll still need some HIL tests, but because those are harder to set up and run, I want to use those for integration and validation.
In terms of OSes available, we're mostly working on Windows systems using WSL for linux. I'd like things to be as linux-based as possible to support CI on github, etc.
Goals and Cmake limitations
I started out using cmake because I hate it least of the tools I've used, and I am at least pretty far up the learning curve with it. But a limitation I'm hitting is that you can't do a mixed compile with two different toolchains in one build. The reasons why cmake has this limitation seem reasonable to me, even if it is annoying. You can easily change the toolchain that your code is built with, but that seems to be largely targeted at cross-compiling the same binaries for different systems. What I want to do is:
- build my code libraries with embedded settings for linking to the embedded binaries and build those embedded binaries (the end product)
- build my code libraries with linux-ish tools and link them against unit tests to have a nice CI test process
- (eventually) also be able to build windows binaries for the PC components -- when I get to that point, I'd like to get away from the MSVC compilers, but will use them if I have to
Current strategy
My current plan is to configure a library build like this (pseudocode):
add_library(mylib sources) if (BUILD_TYPE STREQUAL BUILD_TYPE_EMBEDDED) <embedded config> elseif (BUILD_TYPE STREQUAL BUILD_TYPE_LINUX) <linux config, if any> endif() #unit tests are built for each library if (BUILD_TYPE STREQUAL BUILD_TYPE_LINUX) add_executable(mylib_test sources test_sources) target_link_libraries(mylib gtest etc.) endif()
For the rollup binaries, I make the whole target conditional
if (BUILD_TYPE STREQUAL BUILD_TYPE_EMBEDDED) add_executable(myembedap sources) target_link_libraries(mylib) endif()
Then the build script (outside cmake) is something like
cd build/embedded cmake <path to src> <set embedded toolchain> -DBUILD_TYPE=embedded make cd ../../build/linux cmake <path to src> -DBUILD_TYPE=linux make
Things I like about this strategy:
- It's relatively simple to do all the builds or just one of the builds (that control would go in the shell script)
- I have one source tree for the whole build
- It lets configuration be near code
- It lets tests be near code.
- I think it's extensible to cover the PC component builds in the future
Things that worry me:
- It feels like a hack
- Support for off-target tests feels like it should be solved problem and I'm worried I'm missing something
Thanks for reading. If you made it this far, you have my gratitude. Here's a video with funny out of office messages that I enjoyed.
6 votes -
Traceroute isn't real
47 votes -
best option for a bare-bones message board/forum?
hello tildes, i am searching for a bare-bones forum/message board. i'll describe what i need and perhaps someone can point me in the right direction: must have the ability to create an account...
hello tildes,
i am searching for a bare-bones forum/message board. i'll describe what i need and perhaps someone can point me in the right direction:
must have the ability to
- create an account
- create topics with the ability to reply
- fully customizable front-end (html/css) so i can make it match my website
- either self-host or use a custom domain on ext hosting
unimportant but nice to have
- display images in posts via external urls
- different boards (categories?) to post into (would be nice but not vital)
- nested replies (or some visual way to see what you're replying to)
free would be ideal (dreams are nice) but probably wouldn't want to spend more than $5/month as this is a supplement to a website where i don't expect much traffic at all due to the nature of the project. no images/video/audio will be hosted ideally.
i'm ok with "hacker news" or "reddit-like" software but my backend knowledge if very limited. for instance, i looked into self-hosting lemmy but i don't understand how to setup docker. options like phpbb would be fine if i could strip away everything aside from the above-mentioned features.
i want it to be extremely simplistic in appearance and for the end-user (tildes is a great example of the simplistic end-user experience). tildes could be a cool option but i think getting it setup is a bit out of my skill-range.
can anyone offer any suggestions/guidence?
edited to emphasize important aspects and clarify things that are not vital but would be nice to have.
15 votes -
The world's most feminist city – how Umeå in Sweden became an idyll for women
7 votes -
Z Berg - Better the Devil (From "Strange Darling") (2024)
1 vote -
Rebound effects make car sharing and second-hand phones not as green as they seem
15 votes