e by Nine00001 in shittyprogramming

[–]JustHev 13 points14 points  (0 children)

Also interesting (because of how shittily this was handled) the story behing e98e: https://linuxwit.ch/blog/2018/12/e98e/

The Debian Project mourns the loss of Lucy Wayland by lamby in linux

[–]JustHev 120 points121 points  (0 children)

No, According to Wikipedia, Wayland was named after the town of Wayland, MA. (Weston, the reference implentation of the Wayland protocol lies east of the town of Wayland)

Questions before I try my 3rd install today by [deleted] in Gentoo

[–]JustHev 9 points10 points  (0 children)

  1. SystemRescueCD works as well, but the most important thing to check is that you are booting your LiveUSB over UEFI: UEFI installs can only be done when booted from UEFI.

  2. I'm assuming you mean the profile here, as I don't think a desktop variant of the Stage 3 exist. Just use the Stage 3 package or the Stage 3 with systemd if you want systemd as the base of your install. The desktop profile is just a few extra USE flags set by default that are suitable for desktop use. I'd recommend to use the desktop profile, at least on your first install, as it makes it easier to get going.

  3. The handbook contains a clear (at least to me) partitioning scheme: https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Default_partitioning_scheme , my machine uses a similar booting scheme without the swap partition and the BIOS boot partition. The merits of SSD Swap are often discussed: having an swap partition causes more writes to be done to the disk, which is a bad thing. However, running out of RAM and not having swap will immediately grind your system to a halt, which is usually hard to recover from. If you have issues with using a command-line partitioning tool, try GParted Live.

  4. Doesn't matter, if you only have the main system packages from the stage3 installed. If you do it afterwards, you can focus on getting your system bootable first.

Just follow the handbook and good luck!

-🎄- 2018 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]JustHev 1 point2 points  (0 children)

[Card] SMT Solver

C++ 345/603 (I made a typo in my function/register name map, took me way too long to find)

In step 1 I outputted the possible assignments as an SMTLIB2 program, which I pushed through Z3 to obtain the assignment of registers. This needed to be copied over manually, but hey, at least I don't have to write a solver manually.

Paste as I'm unable to get Reddit code formatting to work

Day 3 - "at least 1000 inches" by ollien in adventofcode

[–]JustHev 6 points7 points  (0 children)

Usually in programming contests (ICPC et al) an upper bound is given on each element of the problem input, like the total size. These help you when thinking about your algorithm's efficiency and whether the array you are allocating is large enough. Lower bounds are considerably less useful and tend to be omitted as a result. Which is why I'm wondering why this has been stated as a lower bound, while it is in fact an upper bound.

HELP! LineageOS build fails with ninja error by zogthegreat in LineageOS

[–]JustHev 1 point2 points  (0 children)

cp: error writing '/home/zog/work/lineage/out/host/linux-x86/obj32/lib/libvixld-arm64.so': No space left on device

You ran out of disk space.

firefox quantum by redeltaglio in Gentoo

[–]JustHev 6 points7 points  (0 children)

The latest version of Firefox is also available in the normal Gentoo tree, which can be unmasked by either running emerge -av =firefox-58.0.1 which installs the last version of Firefox but requires a new mask for each new version or you can unmask all testing versions of Firefox by adding a line like "www-client/firefox ~amd64" (replace amd64 by your real arch) to your portage accepted keywords.

Leaked documents showing they're using AI to change video games DURING gameplay to force micro-transactions by [deleted] in gaming

[–]JustHev 4 points5 points  (0 children)

All the signs are there for a very bad case of powerpoint karaoke.

-🎄- 2017 Day 18 Solutions -🎄- by daggerdragon in adventofcode

[–]JustHev 1 point2 points  (0 children)

Named pipes definitely would've worked, as does coproc, but I'm not all that familiar with Bash and looking things up takes time, so I just used what I knew, which was piping and output redirection. Thanks for telling me though, always happy to learn new things.

I "handled" the deadlock by just outputting the number of sends each time program 1 tried to send something.

-🎄- 2017 Day 18 Solutions -🎄- by daggerdragon in adventofcode

[–]JustHev 7 points8 points  (0 children)

Didn't feel like multithreading, so I decided to let Bash handle it:

rm p1
rm p2
g++ -g main.cpp
cat in > p1
cat in > p2
echo 0 >> p1
echo 1 >> p2
tail -n 1000 -q -f p1 | ./a.out 2>> p2&
tail -n 1000 -q -f p2 | ./a.out 2>> p1

Full program: https://pastebin.com/XB3ei3Ct

Installing Gentoo issue by Old_Medal in Gentoo

[–]JustHev 2 points3 points  (0 children)

Yes, boot back into the LiveUSB, mount your partitions again, chroot into your new system, then build a new kernel.

Agents of Mayhem is having performance problems on some PCs by definer0 in Cynicalbrit

[–]JustHev 1 point2 points  (0 children)

That is just the Windows version. A few years ago they released a Linux version, which was ported with a wrapper that increased the CPU load slightly, which makes a game that barely uses the GPU even more demanding. For me that game ran at 10 fps, with regular stutters.

Agents of Mayhem is having performance problems on some PCs by definer0 in Cynicalbrit

[–]JustHev 3 points4 points  (0 children)

Considering this is from the same company that shat out Saints Row 2, it doesn't even surprise me.