Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
habibur
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
habibur
3y ago
In my case : - I prefer functions over classes. - no mangling of exported names, the binary is re-usable as API. - in the long term, the C source code is more re-usable in other projects than C++ ones. and more like this.
92.
▲
by
habibur
3y ago
#include <stdio.h> #include <stdlib.h> int main(){ int same=0; int moved=0; char* temp=malloc(16); for(int i=0; i<10000; i++){ char* temp2=realloc(temp,(i+2)*16); if(temp!=temp2
93.
▲
by
habibur
3y ago
> Or am I wrong? How large is your initial alloc? Zero. Most of the time. When I don't know the exact requirement before hand. > Reason is that I would expect the allocator to, normally, allocate blocks tight together and most re
94.
▲
by
habibur
3y ago
And if you are not using arena -- realloc() is your best bet. And no, it won't move your memory around into larger areas every time you call it. Most of the time it will simply bump up the allocation end point. This happens more freque
95.
▲
by
habibur
3y ago
There was a recent research paper shared here where it was claimed using keystroke timing and some AI, researchers could predict the password with significant accuracy.
96.
▲
by
habibur
3y ago
Before you waste your time, this is a commercial product and you need to pay $30 to buy their model to run it.
97.
▲
by
habibur
3y ago
As bad as it is in Myanmar -- replace s/Meta/The Internet/g and then check if that makes any difference. Control your population, not the tools they use. Stop the use of one, they will find an alternative that serves the same
98.
▲
by
habibur
3y ago
Adding that when many linux distributions face OOM, a killer daemon steps in and might kill your service even if you were handling the situation properly.
99.
▲
by
habibur
3y ago
> My take from the first book was that he has an extremly black and white view of the world. Things change over age. He might be no longer such.
100.
▲
by
habibur
3y ago
Don't. Less dependency is better.
101.
▲
by
habibur
3y ago
That was the first thing I checked and surprisingly it's JS/node. That kills it for me. Terminal apps in Python or JS works but are significantly slower, and you can feel it. Talking in general. Not this one. I haven't tried
102.
▲
by
habibur
3y ago
This market is currently dominated by IM group chats. In fact, most of the old social media has now moved over to chat groups.
103.
▲
by
habibur
3y ago
New version of VB was VB.net. People still used VB.net primarily as they were familiar with VB. But the new projects gradually took over C#.net, as it sounded more cool. VB.net died after a while.
104.
▲
by
habibur
3y ago
I see the flip happening when MIT switched from Lisp to Python for its introductory courses. That happened in the 00s. They had to choose between Java and some other langues and then choose Python. Gradually everyone else followed. New grad
105.
▲
by
habibur
3y ago
use struct { enum type; union { int; double; long; void\*}; } and you don't need to box anything. no extra allocation for primary data types. no de-referencing of pointers unless the data is larger than the uni
106.
▲
by
habibur
3y ago
Back then, maybe two decades back, Google was seen as evil as it declined to acknowledge that it will delete user data after the user has closed its account. Time changes.
107.
▲
by
habibur
3y ago
Anyone remembers VRML?
108.
▲
by
habibur
3y ago
I scroll to 70% and by then the secret is given out.
109.
▲
by
habibur
3y ago
Also those hidden costs. You don't know about those until you are charged for it, and was written in their terms which you never bothered to read.
110.
▲
by
habibur
3y ago
First check if that can be done with a port forwarder or socks proxy.
111.
▲
by
habibur
3y ago
Adding that anything I wrote in C++/MFC at that time is now obsolete. Everything I wrote in C/Win32 is as much fresh as it had been 30 years back.
112.
▲
by
habibur
3y ago
> What could possibly go wrong with emailing executable scripts? Server side malware filters will strip the attachment.
113.
▲
Toyota says solid-state battery breakthrough can halve cost and size
(ft.com)
30 points
by
habibur
3y ago
|
3 comments
114.
▲
by
habibur
3y ago
More purity fight even before that. Remember, when pre-compiled kernels started to get popular, it was seen as bad thing, as everyone was supposed to compile their own kernel which took into consideration of their hardware configuration for
115.
▲
by
habibur
3y ago
I need to give it two more years to see how stable the supply really is, before planing to extend on it. Right now it's basically supporting the old systems to keep those at least running.
116.
▲
by
habibur
3y ago
1998 analytics used Apache log files as the only source. Wondering if Apache log files are GDPR complient or not.
117.
▲
by
habibur
3y ago
If you are doing it alone then you don't need any of these. Go for simple HTML, JS, CSS and PHP server side. The popular solutions you find online are for Enterprise. Where different teams maintain the same site and no one "owns&q
118.
▲
by
habibur
3y ago
Tried it. Didn't really work for me much. Taking a slower approach using Youtube worked better.
119.
▲
by
habibur
3y ago
OpenAI blocks all VPNs. Some get through regardless, those seem to be the exception.
120.
▲
TurboTax customers to receive checks for $141M settlement
(apnews.com)
5 points
by
habibur
3y ago
|
0 comments
More ›