Comment by zneak on What is the cross-platform way to pass a va_list by...
I posted what you're probably about to post a few minutes ago. :)
View ArticleComment by zneak on What is the cross-platform way to pass a va_list by...
@Schwern, if my comment rubbed you the wrong way, consider asking yourself why you feel that I am not justified to criticize your communications whereas you find yourself justified to criticize mine.
View ArticleComment by zneak on How can I get the logged-in user's profile picture?
@Willeke, macOS has the iCloud profile photo and the user account photo and they are separate. This gets you the iCloud profile photo. It’s not bad, I guess? I could arguably use either. One thing I...
View ArticleComment by zneak on O_PATH equivalent in MacOS?
Not that I know of. Despite a multi-user foundation, Darwin favors single (human) users and heavy isolation, so it's unusual to want to stat a file for which you don't have read access. Most files...
View ArticleComment by zneak on Casting from AnyObject to CGColor? without errors or...
This just makes the warning go away, it doesn't resolve the underlying problem. I'm myself looking for the correct answer so I don't know what it is, but I don't think that it's that.
View ArticleComment by zneak on Converting a Shell Script Into a *.app File
@Daniel, if I’m not mistaken, macOS uses Apple Events to tell your program to open a document. You won’t be able to receive those from a shell script. It might be possible from scripting languages that...
View ArticleComment by zneak on Is there something to replace the functions?
@BadZen, <ucontext.h> was removed from the Open Group Base Specification in revision 7 (2018) (you can find ucontext.h in rev 6, but it is absent from rev 7). Glibc still has it, but it's gone...
View ArticleComment by zneak on Why does leave do "mov esp,ebp" in x86 assembly?
@PeterCordes this is not intentional and news to me, will look into it this evening (PST).
View ArticleComment by zneak on macOS SwiftUI Table with more than 10 columns?
For anyone looking: this is correct and there is a Group extension that makes it conform to TableColumnContent, but type-checking is super finicky. You have to be explicit with the base type of your...
View ArticleAnswer by zneak for class has virtual functions and accessible non-virtual...
This happens because your base class A does not have a virtual destructor. For instance, if you had this code:int main(){ A* a = new B; delete a;}Then the delete a call would not be able to call B's...
View ArticleIn C++, why isn't the this keyword a reference? [duplicate]
Possible Duplicate:Why ‘this’ is a pointer and not a reference?Is there a good reason that this is a pointer instead of a reference in C++?
View ArticleAnswer by zneak for ucfirst() function for multibyte character encodings
There is no mb_ucfirst function, as you've already noticed. You can fake a mb_ucfirst with two mb_substr:function mb_ucfirst($string, $encoding){ $firstChar = mb_substr($string, 0, 1, $encoding); $then...
View ArticleHow can I disable all warnings for a single file with Clang 3.8?
I'm using Clang 3.8 to compile one file that comes from a different source in a project. This is a temporary crutch, as this file is an addition to a library that I also use, and the code it has will...
View ArticleCan rip be used with another register with RIP-relative addressing?
I'm familiar with memory references of this form:XXX ptr [base + index * size + displacement]where XXX is some size (byte/word/dword/etc), both base and index are registers, size is a small power of...
View ArticleAnswer by zneak for SetTimeout function still makes UI unresponsive until its...
Even though it's "asynchronous", setTimeout still dispatches its calls on the main event loop. Since the main event loop also receives clicks, keyboard input, and every single event a webpage might...
View ArticleApply a href-like attribute to non- elements
I've been working on a page where there are several entries contained in different <div>s. Each is only a title linked to a page, an image and a short description. However, the description may...
View ArticleAnswer by zneak for #if canImport(CoreImage) not working in swift package...
This is a linker bug that manifests for frameworks that have moved or changed names. For the specific case of CoreImage, you can resolve the problem by either setting the deployment target to macOS...
View ArticleAnswer by zneak for Debugging a Quick Look plugin
EDIT SIP prevents you from debugging protected processes. Because of that, it is currently (at least since SIP was introduced, through Mojave) impossible to debug QuickLook plugins without turning off...
View ArticleTinyMCE editor dislikes being moved around
On a page I have, I need to move TinyMCE editors in the DOM tree once in a while. However, for some reason, the editor doesn't like it: it clears itself completely and becomes unusable. As far as I can...
View ArticleChecking if two cubic Bézier curves intersect
For a personal project, I'd need to find out if two cubic Bézier curves intersect. I don't need to know where: I just need to know if they do. However, I'd need to do it fast.I've been scavenging the...
View Article
More Pages to Explore .....