Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vortico
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
83 ms
·
751.
▲
by
vortico
8y ago
Okay, then can you put me in contact with an Apple developer to discuss their software, or Apple to discuss a business deal, or a cable rep to negotiate a price? No, they're all too large for me to be worth their time, so I spend 98% o
752.
▲
by
vortico
8y ago
This would be completely avoided if the service they used had good support. This is most important considering when choosing a service: Can non-standard issues be fixed quickly? Can I build a professional relationship with the company so I
753.
▲
by
vortico
8y ago
I also stopped using Firefox for that reason. I now use https://www.qutebrowser.org/ . Other fantastic browsers include https://luakit.github.io/ https://fanglingsu.github.io/vimb/
754.
▲
by
vortico
8y ago
The vim-like browsers that use a Qt-WebKit or WebKit backend are great! https://www.qutebrowser.org/ https://luakit.github.io/ https://fanglingsu.github.io/vimb/ There are other projec
755.
▲
by
vortico
8y ago
We need to standardize cson ( https://github.com/bevry/cson ) and build a compliant C parser. The format is simpler with fewer surprises as YAML, yet able to handle more types of syntaxes in a straightforward form.
756.
▲
by
vortico
8y ago
What's three amigos? Never heard that term in programming.
757.
▲
by
vortico
8y ago
Confidence in what? The accuracy of the article?
758.
▲
by
vortico
8y ago
I don't want to feel like an advertisement, but here are some "expensive" services that make me feel that I'm using their product instead of being their product. The following are some services I'm proud to pay thei
759.
▲
by
vortico
8y ago
A rule of thumb is that the more you pay for online services, the more pleasant, more privacy-respecting, and better support you have in the services you use. I use email hosts, file hosts, git hosts, and video hosts that are quite expensiv
760.
▲
by
vortico
8y ago
Remember that if you have access to run a shell command, you have access to rm -rf /*.
761.
▲
by
vortico
8y ago
I think for icons, lack of IE support is acceptable because the fallback is simply not displaying icons.
762.
▲
by
vortico
8y ago
That works too, good idea.
763.
▲
by
vortico
8y ago
Here's my advice from building a couple websites with tons of icons (almost overuse, because I really like using icons on everything ). Just use img tags with Noun Project icons. Use a scripting language of your choice to change the f
764.
▲
by
vortico
8y ago
It would of course require human interaction for each icon, but it could be done efficiently with custom software for dividing and selecting components for the "emphasis" color. Most icons involve multiple unioned paths, and some
765.
▲
by
vortico
8y ago
It's nice to see an hour old project pop up on HN. So essentially this project is: - Collection of two-color SVG icons - JS library to allow changing one of the colors programmatically What about splitting these two features into dif
766.
▲
by
vortico
8y ago
Even then, it seems weird to prefer a big flat state rather than a state made of heirarchical sub-structures and arrays.
767.
▲
by
vortico
8y ago
Most things here are reasonable, but I don't see a point about having only one struct. If your state is better organized in lots of hierarchical structs, within lists, within other structs, your data will be easier to move around, copy
768.
▲
by
vortico
8y ago
I think this is for local deployments of web apps like a localhost site or Electron app. I could be wrong though.
769.
▲
by
vortico
8y ago
If only this existed in the C standard... You can call snprintf twice , the first time with a NULL buffer and zero-sized length, and the second with a newly allocated buffer with the size equal to the return value of the first snprintf cal
770.
▲
by
vortico
8y ago
In practice, all modern C++ compilers and standard libraries just set a null character to the c_str()[len] position and reallocate the string if the capacity of the string buffer cannot contain the extra byte. It is never a linear operation
771.
▲
by
vortico
8y ago
Yes, it is easy to go back and forth between std::string and char* using the std::string constructor and ::c_str(). The "nightmare" part is that when interacting with C from C++, you can never work with the internal std::string da
772.
▲
by
vortico
8y ago
No, char* is definitely a string type. By having another one, that would be two. Believe me, working with C and C++ code and converting back and forth between std::string and char* is a nightmare. Let's not design that into the langu
773.
▲
by
vortico
8y ago
Well, then you have two string types. The language will instantly become complicated as we indecisively choose between two different string types each function in our APIs. I see no harm in adding more functions around the string type we al
774.
▲
by
vortico
8y ago
There are many object oriented string types for C in various independent GitHub repositories, but they're not really interesting for C programmers because they enjoy the simplicity of null-terminated strings and moving data around with
775.
▲
by
vortico
8y ago
Right, don't use `buf` as an input and output with `snprintf`. A lot of people use `str(n)cat` and `str(n)cpy` together like char *a; char *b; char *c; strcpy(c, a); strcat(c, b); and I meant that `snprintf` ca
776.
▲
by
vortico
8y ago
Don't use `strncpy()` and `strncat()` at all, use snprintf(buffer, buffer_len, "%s Stuff %s", str1, str2); It's safe (C99, C++11) and easily extendible. Format strings are fun! Not the fastest, but if the bottle
777.
▲
by
vortico
8y ago
I saw that at the bottom of https://phacility.com/phabricator/ and actually laughed out loud. Good to see a sense of humor and self-criticism.
778.
▲
by
vortico
8y ago
Exactly, cooling is expensive but not as much as human resources. With a sinkable data center, you could put it next to any coastal or riverside city.
779.
▲
by
vortico
8y ago
Germany and France are not necessarily the cause of something like CC0, because even if all countries honored public domain as an alternative to copyright law, it's a concept that lives in a different legal dimension. Declaring that
780.
▲
by
vortico
8y ago
Absolutely true, but the reason someone licenses their software under an open source license at all is because they want it to be open source. Some developers may erraneously think this is a good open source license, when in fact it might n
More ›