-
19 votes
-
Have you ever compiled a custom Linux kernel?
I was stubbornly determined to get my new Yubikeys working for FIDO2 SSH on WSL, which led me down the road to compiling my own custom Linux kernel for WSL with HIDDEV and HIDRAW enabled. This was...
I was stubbornly determined to get my new Yubikeys working for FIDO2 SSH on WSL, which led me down the road to compiling my own custom Linux kernel for WSL with
HIDDEV
andHIDRAW
enabled.This was my first time ever trying anything like this, and by the end of it I realized that it's not actually so scary to compile your own custom Linux kernel!
Have you ever compiled a custom kernel before? What was the sequence of events that led you to do it?
20 votes -
Hey, Computer, Make Me a Font
18 votes -
Announcing TypeScript 5.3 Beta
12 votes -
Lowering the cost of anonymization
10 votes -
A sane, batteries-included starter template for running NixOS on WSL
9 votes -
Recent DAKboard issue
I have been running a DAKBoard on a Raspberry Pi 4 for almost 4 years now without any problems until recently following this guide IIRC. About 2 weeks ago, DAKBoard started logging itself out and...
I have been running a DAKBoard on a Raspberry Pi 4 for almost 4 years now without any problems until recently following this guide IIRC.
About 2 weeks ago, DAKBoard started logging itself out and only shows a black screen with the time on it and the DAK logo in the lower right corner. If I go into the settings it will bring up the DAK page that shows I am not logged in. When I log in again it seems to work randomly for about 24-36 hours.
I'm running it in a kiosk mode browser on Raspberry Pi OS. I am using the free tier of DAKBoard.
Before I wipe the SD card and start over from scratch I was wondering if there were any suggestions? To be completely honest, it has been "set and forget" for the past number of years so I would like to make sure I'm not overlooking something pretty basic/easy.
On a side note: Has anyone had any experiense using the DAKBoard OS on a Pi? I don't remember it being an option when I set it up originally.
Thank you for any assistance and if you have any spare hardware laying around I'd highly recommend setting one up, my family finds it incredibly useful for the calendar function and a conversation piece when they notice different photos rotating in and out.
3 votes -
What are your favorite ~comp-type forums?
I personally really like Lobsters, and various Reddit forums having to do with Linux/Unix, free/open source software, programming, etc. (though I'm not a big fan of Reddit).
4 votes -
How do you use your YubiKeys?
I'm a little late on this, admittedly. $dayjob is requiring us all to set up a pair of YubiKeys, and I'm using them for the first time and my mind is a little blown. I was seeing articles about...
I'm a little late on this, admittedly. $dayjob is requiring us all to set up a pair of YubiKeys, and I'm using them for the first time and my mind is a little blown.
I was seeing articles about "passkeys" all summer, not really grokking what they were talking about, clinging to my usernames and passwords and 2FA codes coming out of 1Password, etc.
I just set it up on a few accounts today, initially as an additional 2FA source, but when I set them on GitHub, I saw for the first time how exactly they are used instead of the username and password and 2FA combo to log in, and it seems incredible to me!
For long-time YubiKey users: what are some cool things in the ecosystem that you would recommend looking at?
21 votes -
One week of bugs
7 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
9 votes -
Text editing on mobile isn’t ok. It’s actually much worse than you think, an invisible problem no one appreciates.
120 votes -
Insomnia 8 forces users to login and use cloud storage
29 votes -
Optimizing for Taste
3 votes -
Working Through Crafting Interpreters (Java) in Rust
9 votes -
Is this backup solution fine?
I decided to set up automatic backup of my files from my phone and laptop to Backblaze B2. I didn't find a good solution to sync photos from my phone directly to Backblaze, so I decided to do the...
I decided to set up automatic backup of my files from my phone and laptop to Backblaze B2. I didn't find a good solution to sync photos from my phone directly to Backblaze, so I decided to do the following:
- Sync photos from my phone to my laptop using Syncthing
- Back up those photos as well as other files from the laptop to Backblaze using Restic
Is this backup solution fine, or are there any issues with it?
Also, most of the stuff I need to back up, even on my laptop, are photos/videos. Is there a point in using Restic with it's deduplication and incremental backups for this use case, or should I just use Rclone directly? I'd assume deduplication won't save me much storage because photos generally don't have similar byte chunks, although I may be wrong.
12 votes -
Critical 0day in WebP: Google assigns a CVE for libwebp and gives it a 10.0 base score.
28 votes -
What is your cloud backup service of choice?
I have been going over services for which I pay monthly in my business. I have 17 clients where I do unattended cloud backups as well as doing a backup that I hold onto myself. Overall I backup...
I have been going over services for which I pay monthly in my business. I have 17 clients where I do unattended cloud backups as well as doing a backup that I hold onto myself. Overall I backup around 4TB of data. I'm looking at possibly changing cloud services as the one I currently use has progressively increased their fees. I understand the need to pay for a good, reliable service as it reflects upon myself , my business and the service I provide but feel there are more competitive companies out there.
None of this is for personal use and many cloud services are just that, personal use. These are all server (Windows and Linux) use cases.
24 votes -
CVE-2020-19909 is everything that is wrong with CVEs (false bug report for curl)
25 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
7 votes -
In need of a side-by-side image viewer that runs through directories
I've taken on the monumental task of scanning my family photo albums in and saving them to a NAS (plus cloud, of course). 1000+ photos in, and I had the great idea of also banging through the...
I've taken on the monumental task of scanning my family photo albums in and saving them to a NAS (plus cloud, of course). 1000+ photos in, and I had the great idea of also banging through the images with AI to clean them. Anyone who plays with AI knows it can be a little hit-and-miss. The tool of choice was GFPGAN and in some images it cleaned them lovely, others, not so much.
To help sort this out I'm looking for a side-by-side image viewer, similar to something simple like Gwenview, that allows me to look at the files and simply pick the better image. I'm not sure this software even exists after the exhaustive time I've been looking for it. I'm on Linux, so that may be the hindrance here. Brownie points if I can pick the better image, and it copies the file to a new folder to allow building out a mixed bunch of files from the two source folders.
Absolute worst case, I'm willing to put some money in a pot for someone to develop this very needed tool. Best case, if the software doesn't exist and they build it for timasomo.
Note: Tried XNView but it won't compare across folders.
6 votes -
Linux terminal emulators have the potential of being much faster
17 votes -
XML is better than YAML. Hear me out...
40 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
12 votes -
Intel's next-gen Meteor Lake CPUs: A game-changing 40-year architectural shift to rival Apple
33 votes -
When using the wrong shell causes weird bug reports
26 votes -
Linux gives up on 6-year LTS kernels, says they’re too much work. This maybe fine for PCs but could be bad for android.
26 votes -
Pineapple ONE: RISC-V CPU built out of discrete components
12 votes -
Just got an Nvidia 4090 GPU, looking for local LLM + general generative AI software recommendations
I was fortunate enough to grab a discounted 4090 while on my travels and just got everything installed. Already having a lot of fun pumping all my games to max settings, but I'm also interested in...
I was fortunate enough to grab a discounted 4090 while on my travels and just got everything installed. Already having a lot of fun pumping all my games to max settings, but I'm also interested in running generative AI stuff locally to really take advantage of all that VRAM.
Do you have any newbie-friendly Windows 11 software to recommend for getting started? Thanks!
20 votes -
Stack Overflow 2023 Developer Survey Results
19 votes -
Veilid — a peer-to-peer network and application framework by Cult of the Dead Cow
26 votes -
An oral history of Bank Python
15 votes -
Intel confirms Thunderbolt 5 name, 120Gbps tech arrives in 2024
15 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
10 votes -
Investigating how a git repository stores the old versions of files
21 votes -
Introducing RustRover: a standalone Rust IDE by Jetbrains
18 votes -
Performance Improvements in .NET 8
7 votes -
Password-stealing Linux malware served for 3 years and no one noticed
29 votes -
Percival is a datalog-powered, interactive, in-browser notebook
8 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
2 votes -
Is there an updated NixOS guide for first timers?
I want to finally try NixOS and build a desktop OS from the ground up with sway, iwd, waybar, foot terminal, cmus, etc. I'm not a developer, but I'm a seasoned Linux user. Used Gentoo for years,...
I want to finally try NixOS and build a desktop OS from the ground up with sway, iwd, waybar, foot terminal, cmus, etc.
I'm not a developer, but I'm a seasoned Linux user. Used Gentoo for years, Void Linux and now I'm on OpenSUSE TW.
I'm finding all sorts of guides and it seems confusing. In the past there wasn't any mention of home-manager and flakes, now it seems there are these things. Those are all things I need to care about? Is it all configured in one file?
9 votes -
Dell Precision 420 with Red Hat Linux (Personal Computer World • September 2000)
4 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
13 votes -
Scaling gopls for the growing Go ecosystem
7 votes -
With Focus you can search the web you want
21 votes -
Help with finding out more about an obsure c++ graphics library
I recently started classes again a little over a week ago. One of the classes I am taking is Computer science 2. One of the things it includes is openGL based graphics programming. They have us...
I recently started classes again a little over a week ago. One of the classes I am taking is Computer science 2. One of the things it includes is openGL based graphics programming. They have us using glut, which is not bad in it self. However what they do is provide us a wrapper library for glut. In the form of a header named "graph1.h" and a precompiled library. Which goes by various names, such as "graphLib1.lib", "graphLib2010.lib", "graphLib2022.lib", "graphicLib2015.lib", etc. It's provided in the form of Windows flavored x86, Macos flavored x86_64 and arm. However, no forms for Linux. While I have been using Windows and VS Studio for classes so far, I strongly prefer my current Linux based tool chain. (text editor, build system, debugger). I have tried cross compiling with mingw-w64, but it fails when I try to link it. I would very much like to use it natively. To do this I would need either the library or the sources to compile it myself. That is what I would really like to find.
Here is more about the library it self. It is based off of BMPLoader, a small library for loading bitmaps as openGL textures. It also inherits its license from BMPLoader too, because it is a derivative of BMPLoader. (GPLv2; and has been distributed). When you unpack the library there are 3 object files, BMPLoader.o, loadPNG.o, and example2.o. (.o/.obj) I have found traces of it online, however they all link back to my University, University of Central Arkansas. I have also found evidence of it being used at GSU too, but it is from one of the professors that is now here at UCA. (They even provided a pdf on using it, I hashed them and they were the same). Here is a copy of the header graph1.h.
graph1.h
/*BMPLoader - loads Microsoft .bmp format Copyright (C) 2006 Chris Backhouse This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. cjbackhouse@hotmail.com www.backhouse.tk I would appreciate it if anyone using this in something cool would tell me so I can see where it ends up. Takes a filename, returns an array of RGB pixel data Loads: 24bit bitmaps 256 colour bitmaps 16 colour bitmaps 2 colour bitmaps (Thanks to Charles Rabier) This code is designed for use in openGL programs, so bitmaps not correctly padded will not load properly, I believe this only applies to: 256cols if width is not a multiple of 4 16cols if width is not a multiple of 8 2cols if width is not a multiple of 32 Sample code: BMPClass bmp; BMPLoad(fname,bmp); glTexImage2D(GL_TEXTURE_2D,0,3,bmp.width,bmp.height,0,GL_RGB,GL_UNSIGNED_BYTE,bmp.bytes); */ #include <windows.h> #include <gl/glut.h> #include <iostream> #include <cstring> #include <string> #define endg "_endg_" #ifndef BMPLOADER_H #define BMPLOADER_H #include <iostream> #include <cstring> using namespace std; typedef unsigned char BYTE; class BMPClass { public: BMPClass(); ~BMPClass(); BYTE& pixel(int x,int y,int c); void allocateMem(); int width,height; BYTE* bytes; //OpenGL formatted pixels }; #define BMPError char #define BMPNOTABITMAP 'b' //Possible error flags #define BMPNOOPEN 'o' #define BMPFILEERROR 'f' #define BMPBADINT 'i' #define BMPNOERROR '\0' #define BMPUNKNOWNFORMAT 'u' //Loads the bmp in fname, and puts the data in bmp BMPError BMPLoad(string fname,BMPClass& bmp); //Translates my error codes into English std::string TranslateBMPError(BMPError err); //Load and select in OpenGL BMPError BMPLoadGL(string fname); struct Precision { int precision; bool precisionFlag; }; struct GraphColor { int r; int g; int b; }; class Gout { private: int x; int y; int r; int g; int b; int precision; bool precisionFlag; public: Gout() { r= 0; g=255; b= 0; precisionFlag = false; }; void setX(int x) { this->x = x;} void setY(int y) { this->y = y;} int getX() { return x;} int getY() { return y;} void setR(int r) {this->r = r;} void setG(int g) {this->g = g;} void setB(int b) {this->b = b;} int getR() {return r;} int getG() { return g;} int getB() {return b;} void setPrecisionFlag(bool flag) { precisionFlag = flag;} bool getPrecisionFlag() {return precisionFlag;} void setPrecision(int precision) {this->precision = precision;} int getPrecision() {return precision;} friend Gout& operator<<(Gout& g, int int_val); friend Gout& operator<<(Gout& g, double int_val); friend Gout& operator<<(Gout& g, char* char_val); friend Gout& operator<<(Gout& g, string string_val); }; extern Gout gout; struct Point { int x; int y; }; struct GraphObject { char* str; int id; int no_points; Point* points; double* colors; int radius; int no_objects; BMPClass* bmp; int remove; int width; int height; int del; BYTE* bytes; //PNG BYTES }; void reshape(int w, int h); void display(void); void init(char* title); int drawPoint(int x, int y); int drawCircle(int radius, int x, int y); void drawMyCircle( int Radius, int numPoints, int x, int y ); int drawLine(int x1, int y1, int x2, int y2, int width); int drawRect(int x1, int y1, int width, int height); void displayGraphics(); int displayBMP(char* fn,int x, int y); int displayBMP(string fn, int x, int y); int displayPNG(string fn, int x, int y); int displayPNG(char* fn, int x, int y); int displayText(char* str, int x, int y, int r, int g, int b); void clearGraphics(); void setColor(int obj_no, int r, int g, int b); GraphColor setColor(int r, int g, int b); void timerColor(int value); void moveObject(int obj_no, int x, int y); void processSpecialKeys(int key, int x, int y); DWORD WINAPI display1(LPVOID lpParam); void processMouse(int button, int state, int x, int y); void removeObject(int id); void clearText(); void GRAPH_SS(); bool up(); bool down(); bool left(); bool right(); bool leftMouse(int&x, int&y); bool rightMouse(int&x, int&y); bool middleMouse(int&x, int&y); Gout& operator<<(Gout& g, int int_val); Gout& operator<<(Gout& g, double int_val); Gout& operator<<(Gout& g, char* char_val); Gout& operator<<(Gout& g, char char_val); Gout& operator<<(Gout& g, Gout&(*pt2Func)(int x, int y)); Gout& operator<<(Gout& g, Gout&(*pt2Func)(int r, int g, int b)); Gout& operator<<(Gout& g, Point a); Gout& operator<<(Gout& g, GraphColor gc); Gout& operator<<(Gout& g, Precision p); Gout& operator<<(Gout& g, Gout&(*pt2Func)(int precision)); Precision setPrecision(int precision); Point setPos(int x, int y); void getPos(int obj_no, Point points[], int& no_points); bool mouseDragged(int& x, int& y); void processMouseDragged(int x, int y); void replaceObject(int orig_obj, int new_obj); void closeGraphics(); #endif
Right now I am of the opinion that it is a in-house "hackjob". That is how it feels with the GPLed BMPLoader glued together with other graphics functions. In an attempt to not have to use new literature or new style libraries with the new ".net 2008" style ide, as they were likely transitioning out of a codewarrior environment, and before that a borland environment.
So far, I have asked our computer science club about it. The main thing I was told was that the professor just wants us to use windows. That I can understand, but I still want to see how far I can go. I have also tried sending an email about it to the professor, but all I got sent was a link to the glut downloads. I did reply back asking about the graphlib sources too, but I haven't heard anything back yet. I don't want to push too hard, I still have a whole semester ahead of me. So now I am asking here on tildes. I understand if nothing can be found, but at least information and experiences can be collected.
11 votes -
GitHub slated to mandate 2FA
48 votes -
An Internet of PHP
15 votes -
Real-time trumpet simulation
15 votes -
[SOLVED] Help needed with a uBlock Origin filter rule
Hi With this LITE site ---> https://lite.duckduckgo.com/lite/ There isn't the Dark Theme that's available for original duckduckgo site. I found a "My filters" rule on the web. Add these two lines...
Hi
With this LITE site ---> https://lite.duckduckgo.com/lite/
There isn't the Dark Theme that's available for original duckduckgo site.I found a "My filters" rule on the web.
Add these two lines to My filters
lite.duckduckgo.com##html:style(color: rgb(141, 141, 141) !important; background: none repeat scroll 0 0 rgb(48, 48, 48) !important; font-family: 'Helvetica Neue','Segoe UI', Arial, sans-serif;)
lite.duckduckgo.com##a:style(color: rgb(201, 201, 201) !important;)
When the rule is used the search homepage looks reasonable.
And the search results...
The black background is not very black, not as black as Tildes black theme.
I can live with that.But the red text under each result is very muddy.
Can that be improved?
Make it brighter Crimson or even Orange would look better.11 votes