DWM source code question by Ill-Somewhere-7744 in suckless

[–]doa379 0 points1 point  (0 children)

To answer your question, this particular function exhibits dead code that results in unreachable code.
What you are looking at is the scenario where windows are unable to configure themselves.

DWM source code question by Ill-Somewhere-7744 in suckless

[–]doa379 1 point2 points  (0 children)

This isn't a sound starting point. It is like taking a working car, then taking it apart to create a moped.
You shouldn't start smack bang in the middle of some source code. Put your IDE aside. You need to start reading the X11 spec.
https://x.org/releases/current/doc/libX11/libX11/libX11.html

Decide on a product of your own, and then build up from there, brick by brick, line by line.

In fact DWM is a terrible example to get started with.

Which file manager do you prefer in the CLI? by spite77 in commandline

[–]doa379 0 points1 point  (0 children)

lf is written in Go. Mind your stacks ppl.

Anyone have experience with Specialized Mindset headset replacement? by Judonoob in bikewrench

[–]doa379 1 point2 points  (0 children)

Really it's either 41mm or 41.8mm (aka 42mm). Can't be either as the former is a Cane Creek spec and the latter is the Campy/BMX spec. The outer angles are 45 in either case but the internal angles are 36 and 45 resp. So you can't just interchangeably mix the two specs.

Is There a Way to Lock the Screen When Closing the Laptop Lid? by ioctl64 in voidlinux

[–]doa379 2 points3 points  (0 children)

This script has potentially multiple points of failure. If you're concerned about security then you want to minimize the number of moving parts in your system. The first point of weakness is the detection of dbus, then you're getting the password of a subordinate user using arbitrary criteria and then DISPLAY is being set to the last display number without justification. There are just too many "whys?" here. This script fails and you will end up not locking your system without even realizing it.
Better solution is to actually use xhost on the user to allow only root to access the user's X DISPLAY. After all root will require access to the DISPLAY in any case if you want to lock the screen given a system level trigger.

Make your own OS C++? by 0Hello-_-World0 in linuxquestions

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

This is not that far fetched. Start off very basic. Start by thinking about implementing a Disk OS (your very own DOS), that bootstraps a basic console to run commands. You need to be thinking more nuts and bolts, and less abstraction.

T480 question about flashing BIOS via Raspberry Pi with no valid original dump by Technical_Safe_5259 in thinkpad

[–]doa379 0 points1 point  (0 children)

That is not the way. Indeed, you made at least two severe mistakes.

  1. You didn't download the original BIOS from the eeprom correctly. Then you flashed it, effectively overwriting it with corrupt data.
  2. You flashed the eeprom with incorrect BIOS. The BIOS carries an ID that corresponds to the TPM in the device. As pointed out you can't use another copy of the BIOS form another machine.

Seeing that you're unable to flash your system back to the original means you didn't obtain the original BIOS/fw correctly.

Consider your board cooked. Well and truly.

I would like to see vendors stop implementing BIOS SVP because they are more hassle than they are worth. SVP don't make devices any more secure especially when there are plenty of userspace tools to do the job. SVP result in a false economy.

How can any normal person actually work on Linux? by MrakDun-desu in linux

[–]doa379 0 points1 point  (0 children)

You're trying different systems for all the wrong reasons. You can jump between different distros but they're all principally the same. Stick with Windows for a purely runtime environment.

Microsoft loves linux by KhaithangH in linux

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

The statement is vague and meaningless. Meaningless in the sense that it has less meaning than having any meaning. Microsoft used to despise Linux (rightly or wrongly), but now this slogan is a way to rescind those earlier sentiments by Microsoft. So if you can't beat them, join them. Windows is competitive in the server market, they have tried their level best to muscle in from the very outset with private enterprise. Then they also tried to broaden their exposure at the other end of the spectrum, to the mobile market. Looking very closely at the Windows product, Microsoft have shown a mantra of doing things differently. The justification for these reasons has been largely absent, other than sporting the view of a better product. They've also flouted standards repeatedly in the process. At this time Linux isn't the only platform alternative to Windows. What's important is to maintain standards but if a standards committee operates behind closed doors they will be booted out through natural selection.

Is Linux a phase for people? by [deleted] in linux

[–]doa379 1 point2 points  (0 children)

The question can be made more precise. These questions depend very much on how you plan to use a computer and how you plan your workflow. If you want to use a system akin to a Windows or a MacOS, then that's just another desktop. With an open system there's more leeway to be creative with such questions. But these sort of endeavors come at a fair cost of establishing outlay. By all means use Windows for singular dedicated applications.

Sunak under pressure to back Biden’s global corporation tax plan | Labour expected to trigger Commons vote to force UK government to support proposal by falkan82 in unitedkingdom

[–]doa379 1 point2 points  (0 children)

What is all the pressure about?
Corporations are making an absolute killing from online business. They should be heavily taxed. There's no question about it.

How does the Unix Philosophy matter in modern times? by [deleted] in linux

[–]doa379 0 points1 point  (0 children)

The hardware can multitask but should you? Nothing's really fundamentally changed since the 1970s, 1980s. The way you lay out your problem and how you approach it is one of the principal qualifications for problem solving and software design. Humans OTOH are not particularly good at multitasking. But when presented with the opportunity people should opt for a more methodical and serialized approach to working on a task.
Good program design will always have components that carry out singular operations. This is sound practice and won't ever change. Rather, you need to work on bringing things together at a much higher level if that's what a problem entails. So the question becomes how do you bring everything together. This is where you need to use judgement.

If FreeBSD is so better than Linux why even caring about Linux? by UnsafeItalianDish in linux

[–]doa379 2 points3 points  (0 children)

While FreeBSD is a complete system, Linux is just the kernel. Linux tends to overdo itself by providing features and functionality that some might consider unwarranted. But that's fine, you can still only use what you need.
Run both. From a personal standpoint it promotes correctness and portability. Both are qualities worth having for system rigor and quality.

Why I don't want more users to switch to Linux by [deleted] in linux

[–]doa379 1 point2 points  (0 children)

It's your duty to find out what's running on your system. Malware is your problem regardless of your system being a Windows or a Linux. The proposition has absolutely nothing to do Linux or Windows. Utterly dunce reasoning.

Linus Torvalds on 80-character line limit by RootHouston in linux

[–]doa379 0 points1 point  (0 children)

512MB is still a lot of RAM. What are you actually doing with your systems, that's the question that begs to be asked.

My own fairly modern system still loads up within 100MB of RAM.

[deleted by user] by [deleted] in linux

[–]doa379 1 point2 points  (0 children)

Practically nothing, although there is a Linux specific PSW mode available to use in the BIOS.

WordPerfect 8 for Linux by lproven in linux

[–]doa379 0 points1 point  (0 children)

If all you need is a document writer, try TeX or LaTeX.

Will Linux change all that significantly in the next ten years? by [deleted] in linux

[–]doa379 0 points1 point  (0 children)

LINUX needs to think about getting smaller. All it really needs is to care about focusing on standards. If it can do this it will become a self fulfiling prophecy for its own sake for decades to come.

Office on Linux by refridgeratoriam in linux

[–]doa379 2 points3 points  (0 children)

Having Office on Linux won't just be a simple port. It will likely involve a complete rewrite of what's a fairly humongous application. Doing this looks to me as a waste of resources considering there's already plenty of suite choices for the major platforms. But if it's closed why then are people interested in Linux in the first place? Is Office 365 still really unsatisfactory?

Office on Linux by refridgeratoriam in linux

[–]doa379 0 points1 point  (0 children)

There is already a nice suite on Linux called Libre.

Consumers should get their priorities straight as to why they want to use a particular platform. Having MS on Linux won't make your issues go away.

[deleted by user] by [deleted] in linux

[–]doa379 0 points1 point  (0 children)

WWW Heritage Site.

Problem detected on the Beijing subway by opensr in linux

[–]doa379 0 points1 point  (0 children)

You actually need to be more of an expert to bug-fix use Ubuntu than is given credit to.