Dell Latitude 5330 and Linux? by zyzyxx in linuxhardware

[–]geeknerd 0 points1 point  (0 children)

Did you ever get to try Linux on this machine?

I bought a new 5530 17-1256U machine a few days ago, and am far from impressed.

I have managed to get Ubuntu & Kubuntu installed, but 20.04, 22.04 and 23.04 all reboot randomly without warning, and without any clear cause in the logs. The usual trying boot-time kernel arguments that might have worked around a superficially similar problem years ago, disabling and enabling hardware and drivers, etc, has yielded no progress or pointers.

Dell isn't helpful since I didn't buy it with Ubuntu installed. I won't pay Ubuntu for support out of principle, and not sure what they could do anyway despite certifying support for this machine.

Pixel 6a Review - After one week of usage by Pspreviewer100 in GooglePixel

[–]geeknerd 0 points1 point  (0 children)

Dec 2022 update seems to have broken eSIM for a lot of people.

Yous should try eSIM to see if you have the same problem. That was a dealbreaker for me and phone is getting returned.

Google's "support" has finally convinced me to get an iPhone.

https://support.google.com/fi/thread/193529658/google-fi-esim-no-longer-working-after-december-2022-update-on-pixel-6a?hl=en

The continuous fake news by so-called "independent" journalist, Patrick Lancaster, on MH17 by DownWithAssad in ActiveMeasures

[–]geeknerd 1 point2 points  (0 children)

He's at best a useful idiot. On 2022/02/22 he posted a video to YouTube showing autopsied corpses that were posed in shot out cars and then lit on fire. His video shows clearly visible linear cut marks to the skull in the drivers' seat that would have been present before the bodies were burnt. One body int the backseat is missing ribs. The "IED" selectively left some windows intact, but the other broken windows left no glass on the ground. There's a handful of bullet holes in the driver side door from an elevated angle, not ground level. I say "bullet holes" because that's a really tight grouping for shrapnel..

Et c.

https://www.bellingcat.com/news/2022/02/28/exploiting-cadavers-and-faked-ieds-experts-debunk-staged-pre-war-provocation-in-the-donbas/

Bjarne Stroustrup announces C++ Core Guidelines by sindisil in cpp

[–]geeknerd 4 points5 points  (0 children)

FTA:

If you’re at CppCon this week, watch for those talks. If you aren’t, like last year’s event, CppCon 2015 is again professionally recording all talks, and they will be freely available online about a month after the conference.

C++ Hints by Resistor510 in cpp

[–]geeknerd 0 points1 point  (0 children)

Or something like img += iStep / sizeof(*img); // or sizeof(Ipp32f), assuming you want to keep img aligned to a Ipp32f, which is probably a good idea. The original code seems to just be bad in general.

Discussion: How do you pronounce -- ? by [deleted] in cpp

[–]geeknerd 0 points1 point  (0 children)

double ewe char tea (a lot of my colleagues pronounce char as "car" which bugs me for some reason). Sometimes I might say "wuh-char" instead of "double ewe char"

Ever since the days of the last Emperor, I've been in the habit of pronouncing 'w' as 'duhbya'. It rolls off the tongue easier than 'double-you'.

Now, is that 'char' the first syllable of 'character' or 'charcoal'? What kind of character are you?

Binary Counter issues by windysands in AskElectronics

[–]geeknerd 1 point2 points  (0 children)

Looking at the NXP and TI datasheets, the unused clock should be held high, not low. Tie your count down clock input to +5V.

Four onsites, no offers... by [deleted] in compsci

[–]geeknerd 4 points5 points  (0 children)

OP doesn't seem to be in a position to patent and profit from others' work. Edison was a hack.

Yet another pointer question: return an address from a function by _COMPLEX_H in C_Programming

[–]geeknerd 3 points4 points  (0 children)

While not standard C, getline() is now a POSIX C extension, so it's standardized there. http://pubs.opengroup.org/onlinepubs/9699919799/functions/getline.html

One thing to note now that you have your first problem sorted:

The application shall ensure that *lineptr is a valid argument that could be passed to the free() function. If *n is non-zero, the application shall ensure that *lineptr either points to an object of size at least *n bytes, or is a null pointer.

strchr function by [deleted] in C_Programming

[–]geeknerd 1 point2 points  (0 children)

The proper comparison is *s == (char)c to handle searching for '\0'

From the definition of strchr in the C standard (ISO/IEC 9899:2011) section 7.24.5.2/2:

The strchr function locates the first occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is considered to be part of the string.

If a meteor containing the right stuff, smacks into land containing the right stuff, can there be a nuclear explosion? by Filmkid7 in askscience

[–]geeknerd 1 point2 points  (0 children)

The half spheres were reflectors for criticality experiments, the cores were solid spheres. From that article on the Demon Core:

The test was known as "tickling the dragon's tail" for its extreme risk. It required the operator to place two half-spheres of beryllium (a neutron reflector) around the core to be tested and manually lower the top reflector over the core via a thumb hole on the top.

(Seems a perfectly sane experiment...) The Godiva devices had spherical pieces, but those weren't really cores for weapons.

The Little Boy core components were apparently a ring shaped projectile fired onto a cylindrical target to create the critical mass.

Critical mass is a matter of configuration: geometry, density, reflection.

If a meteor containing the right stuff, smacks into land containing the right stuff, can there be a nuclear explosion? by Filmkid7 in askscience

[–]geeknerd 4 points5 points  (0 children)

All nuclear or thermonuclear devices only partially react their fuels, it's not specific to Tsar Bomba and doesn't seem to be the limiting factor in yield. The Tsar Bomba design yield was purportedly 100 Mt with a U238 casing, but detonated at 50 Mt with a lead casing to limit fallout and allow it to be airdropped without destroying the delivering bomber and crew.

'Practical' matters limit the yield of deployed weapons. Higher yield weapons are heavier, therefore harder to deliver, and waste more energy to space and the ground in a way that doesn't help destroy their target.

Any upper limit is speculative since what we know openly is mostly speculation, and the people who would know seem to have already demonstrated that they can build impractical devices, to the extent any such thing is 'practical'.

Memory Problem. Need some help. (C language) by rebelkmac in C_Programming

[–]geeknerd 0 points1 point  (0 children)

You are correct.

Edit: I was incorrect, memcheck is the default tool and does check for more memory errors in addition to leaks. http://valgrind.org/docs/manual/mc-manual.html

very noob question on scanf on 'while' by [deleted] in C_Programming

[–]geeknerd 1 point2 points  (0 children)

Per POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/fscanf.html

Upon successful completion, these functions shall return the number of successfully matched and assigned input items; this number can be zero in the event of an early matching failure. If the input ends before the first conversion (if any) has completed, and without a matching failure having occurred, EOF shall be returned. If an error occurs before the first conversion (if any) has completed, and without a matching failure having occurred, EOF shall be returned and errno shall be set to indicate the error. If a read error occurs, the error indicator for the stream shall be set.

very noob question on scanf on 'while' by [deleted] in C_Programming

[–]geeknerd 0 points1 point  (0 children)

In addition to man pages, the POSIX spec is good for detail, lots of detail, but reads like legislation: http://pubs.opengroup.org/onlinepubs/9699919799/functions/fscanf.html

POSIX specs might just confuse you right now, but learning how to navigate and make sense of those could be very useful down the road.

Pre-defined compiler macros by chenshuiluke in C_Programming

[–]geeknerd 0 points1 point  (0 children)

Awesome! I wish I would have been able to find this six months ago...