Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Posts by Newbyte‭

6 posts
71%
+3 −0
Q&A How do I make Phosh consider my app "mobile friendly"?

I'm working on an app for Linux phone operating systems like postmarketOS and publishing it as a Flatpak on Flathub. What steps do I need to take to make it appear as a "mobile friendly" app in the...

1 answer  ·  posted 1mo ago by Newbyte‭  ·  last activity 1mo ago by Michael‭

Question linux
66%
+2 −0
Q&A Does GLib's "GTest" testing framework have any filesystem mocking functionality?

I'm writing tests for some code that interacts with the filesystem, and I want to assert that it writes the expected data to disk. My problem is that some of the code I want to test includes hardco...

1 answer  ·  posted 1y ago by Newbyte‭  ·  last activity 1y ago by Newbyte‭

Question unit-testing mocking testing glib
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I ended up implementing it like this: #define RGB_HEX_STRING_LENGTH 8 gchar * gdkrgba_to_rgb_hex_string (const GdkRGBA *const from) { guchar red = roundf (from->red * 255.0f); guchar...

posted 1y ago by Newbyte‭

Answer
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I have a program that reads a hexadecimal string representation from a configuration file, turns it into a GdkRGBA struct from Gdk, uses gtk_color_dialog_button_set_rgba () to set it as the default...

1 answer  ·  posted 1y ago by Newbyte‭  ·  last activity 1y ago by Newbyte‭

Question c
50%
+0 −0
Q&A Can I execute commands before the build system is invoked at all in a flatpak-builder module?

I'm creating a flatpak-builder manifest wherein I want to do some "pre-processing" steps of the source code in a given module before the build system is invoked. In particular, I want to "merge" th...

0 answers  ·  posted 4d ago by Newbyte‭

Question build
50%
+0 −0
Q&A Does GLib's "GTest" testing framework have any filesystem mocking functionality?

This won't work for every use-case, but for mine I was able to use the G_TEST_OPTION_ISOLATE_DIRS flag for g_test_init () like so: g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NU...

posted 1y ago by Newbyte‭

Answer