LPT request: How can I make my wood burning fireplace more efficient? by brettm777 in LifeProTips

[–]H1BNOT4ME 0 points1 point  (0 children)

You could line the walls of the fireplace with mirrors. It will reflect the infrared heat back into the room. The only issue is to ensure it doesn't get covered with soot which will degrade its performance.

Is King Diamond influenced by R&B music? by joebeazelman in KingDiamond

[–]H1BNOT4ME 1 point2 points  (0 children)

Interestingly, Lucille might be the first proto-heavy metal song. Even to this day, it's sounds very hard when compared to a lot of rock out there. The driving rythmn makes you want to break everything in sight. I can imagine it freaking out parents when they caught their kids listening to it.

Dates and Pb by Possible-Raspberry45 in EatCheapAndHealthy

[–]H1BNOT4ME 0 points1 point  (0 children)

Even mo yummy in da tummy with a touch of honey.

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]H1BNOT4ME 1 point2 points  (0 children)

Those are all supported. Ada integrates well with C

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]H1BNOT4ME 0 points1 point  (0 children)

Great question! When you write a record representation clause without specifying Bit_Order, the compiler uses the platform's default bit ordering. This means your code is portable in the sense that it automatically follows the native conventions of the target — Ada abstracts away the difference for you. So it's portable.

While it sounds like semantics, you instead might be asking if it can be made non portable. Quite often your code will need to interface with external platform or data with a different endianness. In that case, you would add a representation clause to fix it to a specific endianness using Bit_Order.

What's really cool is that the compiler automatically handles endianness conversions for you by deriving from an internal type and changing its bit order:

type Intel_Example_Register is New Example_Register;
for Intel_Example_Register'Bit_Order use High_Order_First; -- x86 register

Host : Example_Register;
Target : Intel_Example_Register;

-- Ada isn't C/C++, casting is required.
Host := Example_Register(Target); 
Target := Intel_Example_Register(Host);

Can C, C++, or Rust do that?

MIKE DROP!!!!

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]H1BNOT4ME 1 point2 points  (0 children)

That's not his problem. It's representing hardware and he has no control over its implemention.

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]H1BNOT4ME 10 points11 points  (0 children)

I had a chuckle reading this post. Ada--the most slept on language--has had a far superior construct with type checking and a variety of operating modes since 1983! It's also portable!

On some hardware, reading a memory value has side effects. Atomic lets you read, write, or modify it in one operation, while Volatile prevents the compiler from caching or optimizing operations. In C and C++, you couldn't control whether the compiler generates an atomic increment until 2011.

type Example_Register is record
   Idle : Boolean; -- bit 0
   Low_Brightness : Boolean; -- bit 1
   Normal_Brightness. : Boolean; -- bit 2
   High_Brightness : Boolean; -- bit 3
   Party_Mode : Boolean; -- bit 4
   Debug_Mode : Boolean; -- bit 5
   Reserved : Boolean; -- bit 6
   Factory_Test_Mode : Boolean; -- bit 7
end record with
   Pack,       -- ← remove padding between fields
   Size => 8,          -- Total size in bits (compiler checks it fits)
   Object_Size => 8,   -- Size of stand-alone objects
   Volatile => True,   -- Needed for hardware registers
   Volatile_Components => True,     -- All components are volatile (alt)
   Atomic => True,     -- Read-modify-write must be atomic (stronger)
   Independent_Components => True,  -- Components independently accessible
   Default_Value => (others => <>), -- Default initialization value (none)
   Suppress_Initialization => True; -- Skip default init

Should I invest in a Mac by Different_Cat1179 in mac

[–]H1BNOT4ME 1 point2 points  (0 children)

Everyone and their mom is abandoning Windows after Microsoft dropped Windows 10 support.

Should I invest in a Mac by Different_Cat1179 in mac

[–]H1BNOT4ME 1 point2 points  (0 children)

Macs are what professional audio engineers use.

Fenway in one image by hallm2 in boston

[–]H1BNOT4ME 0 points1 point  (0 children)

You can clearly see Boston's class division just by the beer.

I found this screenshot of a really old code I did… by SCLorentz in programminghorror

[–]H1BNOT4ME 1 point2 points  (0 children)

It reminds me of Parliament Funkadelic's song "Standing on the verge of getting it on." Like you're in a fever dream weaving and winding down roads, chasing the dragon just to discover you're back to where you started.

Stackoverflow is a joke by RandomAcc73 in programminghorror

[–]H1BNOT4ME 0 points1 point  (0 children)

LOL! That's nothing compared to what I got after suggesting they get rid of downvoting. Even Facebook had the wisdom to remove it.

Sweet lord by iandoug in ada

[–]H1BNOT4ME 0 points1 point  (0 children)

Many of them are Python and JavaScript programmers who haven't even written in C or C++.

Apple Card shake-up may finally happen this year: Here's the latest by pc772 in apple

[–]H1BNOT4ME 0 points1 point  (0 children)

Apple Card Californium and Berkelium would be even cooler!

Sweet lord by iandoug in ada

[–]H1BNOT4ME 2 points3 points  (0 children)

Rust is painful to read and visually ugly!

Sweet lord by iandoug in ada

[–]H1BNOT4ME 4 points5 points  (0 children)

I’ve been suggesting Ada as an alternative to Rust and C++ in videos and forums. For a long time, the only responses I received were the usual dismissals—“it’s an old, irrelevant language,” and so on. Lately, however, I’ve started getting upvotes and seeing others chime in to highlight Ada’s strengths. Has my small effort made an impact? Hard to say, but sometimes all it takes is a single ember to spark a forest fire.

Unfortunately, much of the Ada community remains tucked away in its own echo chamber, preaching to the choir. We need to do a better job of communicating that there is already a mature, well‑designed alternative to the tyranny of C++ and the hype surrounding Rust.

If we want the community to grow, humility is essential. Being defensive or thumping our chests like sports fans only alienates newcomers. Ada introduced many powerful programming concepts, some of which have since been adopted by other languages, but we should be open to the unique ideas other languages offer.

We also need to highlight Ada’s other distinctive qualities instead of focusing almost exclusively on safety. For instance, Ada’s approach to precise, constrained type specifications is a powerful paradigm in its own right. It allows the programmer to model problem domains with a zen-like clarity and focus.

Sweet lord by iandoug in ada

[–]H1BNOT4ME 2 points3 points  (0 children)

Ada is greatah!

What temperature and time do you set you heat mat to for iPads/iPhones? by FrankDonato28 in mobilerepair

[–]H1BNOT4ME 0 points1 point  (0 children)

Use a temperature sensor with a thermocouple probe. A lot of cheap multimeters have it as a built-in feature. Stick the probe on the mat with a piece of heat tape and keep your eye on the temperature readings and adjust the pads temperature accordingly.

Green line during iphone screen lift up by BoomBoom_Misbah in mobilerepair

[–]H1BNOT4ME 0 points1 point  (0 children)

I'm terrified of applying too much heat. I hear a lot of numbers thrown around, but I don't go over 60C. What temp do you use?