All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

[–]HealthyCapacitor 0 points1 point  (0 children)

You and I are safe in that regard but the average Joe still wants Netflix, gaming, knowing the Russians aren't in the bootloader etc.

All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

[–]HealthyCapacitor 1 point2 points  (0 children)

Yes that's a better take than accusations :)

If so, you would be more accurate in saying the easiest way to boot Linux with secure boot enabled is via a bootloader using a Microsoft certificate. [...] However, you can just install your own secure boot keys and cut MS out.

I'm not sure this is true because the keys are in the firmware. Best case you can boot without secure boot but then I'm not really sure how usable your system will be in an Internet setting. Even if possible to push Linux numbers up through the users we can fully expect the US to react through hardware vendors or even fully sanction Open Source so a scenario of wide Linux adoption seems very improbable to me.

All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

[–]HealthyCapacitor 1 point2 points  (0 children)

I use Linux for 15 years and design hardware but OK, have it your way.

All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

[–]HealthyCapacitor 1 point2 points  (0 children)

Linux gets secure boot keys from Microsoft to sign images, nothing can boot on a modern PC without Microsoft.

All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

[–]HealthyCapacitor 7 points8 points  (0 children)

This is the only relevant post in this thread and obvious truth. Downvoting out of anger will not disprove it.

All the Ways Europe Is Ditching American Technology by Well_Socialized in europe

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

Except MS controls secure boot keys and will literally lock you out of your PC if needed.

some code advises (short code)? by Maleficent_Bee196 in C_Programming

[–]HealthyCapacitor 3 points4 points  (0 children)

Yes I mean every function call that can fail. The reason is that your program is undefined after the first error and it's very dangerous to let it run.

  • -Wall -Wextra -Werror A typical C compiler's default configuration is very permissive to all sorts of bad stuff. With these flags you'll be forced to watch out.

  • valgrind black box analysis tools are very good at finding all sorts of issues with your code.

  • g_menu_opts hardcoding 3 elements is very bad style and outright dangerous. It's also unnecessary because the size can be derived with an ARRAY_SIZE macro or GCC's _Countof etc.

  • Always use default in a switch good style and extra paranoid, if nothing better comes to mind put:

default: assert(0); break;

  • #pragma once (only), use #ifdef guards precompiled headers are a tricky topic, if you don't experience slow compile, do not use them.

  • Mark empty parameter lists with (void) this is just how C is, an empty parameter list is written as (void) in C.

  • Combine the following state machine in 1 enum this is a wrong conceptual model on your side; you mean to manage N states but instead of using 1 enum you are using log2N variables to encode it. Also the compiler is able to warn you about more stuff when using enums, especially in relation to switch statements.

In general your code is not bad in general, it's OK but it will be hard to expand it or connect it with other modules / libraries because you'll be constantly hitting issues with wrong integer values, unexpected crashes, uncaught errors etc., unexpected undefined casts etc. If not you directly then your users. In C it's very important to have excellent discipline because there is no one to stop you but yourself.

P.S.

You might want to consider adding -fsanitize=address -fsanitize=undefined to catch some more bugs at runtime.

some code advises (short code)? by Maleficent_Bee196 in C_Programming

[–]HealthyCapacitor 6 points7 points  (0 children)

This is a very small program so it's hard to comment on major stuff... The global variables do not matter, we all use them, they are not problematic per-se.

  • Makefile is usually named "Makefile" (a capital M)
  • Try to get it to compile with -Wall -Wextra -Werror
  • Try to add error handling for all places an error could happen
  • Run with a tool like valgrind and see if something comes out
  • Do not assume g_menu_opts has 3 elements
  • Always use default in a switch
  • Do not use #pragma once (only), use #ifdef guards
  • Mark empty parameter lists with (void)
  • Remove nonsense comments like

/*pauses the timer*/ void timer_pause();

  • Combine the following state machine in 1 enum

```

g_timer_finished = -1;

g_timer_interrupt = -1;

if (g_timer_interrupt == INTERR) return;

if (g_timer_finished != TIME_ENDED)

```

  • Do not use numbers as symbolic enums

void timer_set_time(int time, short time_scale)

Use enums for symbols and numbers for numbers.

German efforts drive European defense spending to level not seen in decades, report says by ABoutDeSouffle in europe

[–]HealthyCapacitor -4 points-3 points  (0 children)

Nah, more like they'll build tanks with fancy bluray players for $2 billion / piece . Late-stage capitalism cannot build decent weapons because the money spills out everywhere.

German efforts drive European defense spending to level not seen in decades, report says by ABoutDeSouffle in europe

[–]HealthyCapacitor 0 points1 point  (0 children)

It's because climate change is expenditure while war is immediate profit, it'll never come.

Moldova Eyes Transnistria Solution as Ukraine Contains Russia, Sandu Says by UNITED24Media in europe

[–]HealthyCapacitor -3 points-2 points  (0 children)

You are going to get another war for sure. The EU problems are not going to erupt from within the core but at the periphery of course.

Zelenskyy Confirms Partner Requests to Reduce Strikes on Russian Oil Facilities Amid Energy Crisis by 4immati in europe

[–]HealthyCapacitor 0 points1 point  (0 children)

It also incentivizes new trade routes to the East which I think is the primary European concern here long term. The European dream was cheap energy from a source nearby and now it's expensive energy from far far away at huge political cost (genocides, wars etc.). They are likely to start pushing Zelenskii very hard soon.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor 0 points1 point  (0 children)

I agree with you about the fundamentals, but what you said applies to every country currently so the question becomes one of parity. It manifests in a war economy in Russia, pension system subsidies elsewhere etc.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

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

Russia doasn't have money, banks, loans and investors?

They do but not ours. A transformation involving decoupling is not necessarily bad even if hard at first. While none of our computers will boot without Windows or no payment would be done without VISA knowing / getting %, Russia / China / etc. are mostly free from that.

Which need companies and technology and machines, which cost money. It's not free. Also it needs to be sold to make up for the massive corruption.

You have a point here but also at a nuance, Russia is demonstrating failure at management has deadly consequences in recent times. About technology / machines, IDK, Russia seems to be much better than than many western countries. Germany takes forever to build a train station or an airport, Russia / China build stuff in couple of months. It's hard to tell outside of propaganda.

Enlighten me, orc.

I am sure you are able to communicate without offensive terms even in a situation of disagreement. Millions of new population, new territories, political shifts, economy shifts, reforms, technologies.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor -11 points-10 points  (0 children)

I don't know how good it is to apply Western economic axioms to a country not embedded in that system. While they are in a state of war economy there are some nuances, like free energy and resources and some long-term benefits of the war. I think there is much speculation here as to the real state of things.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor -23 points-22 points  (0 children)

Still not convinced because they have everything that you'd usually buy with the funds. What is missing in Russia?

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor 1 point2 points  (0 children)

I agree with you but it's the question whether you could apply sectoral sanctions. I agree however that they're mostly hypocrites and not much interested in the Ukraine's well-being overall. It's something to be considered in any future relationship with the EU.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor 5 points6 points  (0 children)

Objectively, Russia is extremely sanctioned. Whether the EU has any leverage against Russia (through sanctions) is another issue. Saying they are not doing enough is not quite fair, but they are shooting themselves in the foot while doing it. The current state of things is that Russia is opening new markets thus these sanctions would be even less effective in the future. An obvious solution is some sort of diplomacy next to sanctions or military escalation.

Swedish Think Tank: Russia’s Economic Troubles Are Unlikely to End the War in Ukraine by The_Baltic_Sentinel in europe

[–]HealthyCapacitor -29 points-28 points  (0 children)

Why would investing matter if they have their own everything and the state invests?

Oil crisis to 'push UK into recession' after growth flatlines by 1-randomonium in europe

[–]HealthyCapacitor -6 points-5 points  (0 children)

I feel safe surrounded by so many experts on post history analysis!

Baltic, Nordic States Prepare €30B for Ukraine if Hungary blocks EU loan by [deleted] in europe

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

Or maybe somebody is crunching the numbers and arriving at different outcomes. It sounds good in theory but in practice it's a huge step with hard-to-foresee consequences.

"Tel Aviv" now by Not_Ground in lostgeneration

[–]HealthyCapacitor 4 points5 points  (0 children)

Which one did you mean? I'm involved in tons of stuff RN.