@marczellm Did you try running chkdsk?
Best posts made by Deadfast
-
RE: My laptop seems ill but it insists it's not
-
RE: 🔥 Australia. Now in Europe.
Czexit is coming
Haha, never gonna happen. Too many cushy EU jobs in Brussels for washed up politicians. Plus it would require the Czech prime minister to make a decision, something he is genetically incapable of.
-
RE: Skype doesn't know how to sort
Still not fixed, BTW.
Yes, they are too busy breaking the unread messages indicator.
-
RE: The week starts on...
@LaoC said in The week starts on...:
I fail to find fault with that
Really? How about what happens when I don't turn it on?
-
RE: The week starts on...
@coldandtired said in The week starts on...:
Does it always start on Tuesday or is it because today is Tuesday?
I'll check tomorrow. Either option is dumb though.
-
RE: 3 Reasons Windows 8.1 is better
No, really, it's not. The post-XP menu is a little rectangle that auto-sorts and requires scrolling, plus it scrolls automatically. By contrast, the screen is full of much larger, easier-to-hit icons that you can sort in your preferred order, arrange into groups, can be multiple sizes, and can even be those little live tile things.
The post-XP menu may be a little rectangle and require scrolling but at least it has the decency to be hierarchical.
The [s]Metro[/s] Start Screen is a massive rectangle that also requires scrolling. But at least the gazillions of readmes and other crap files I don't care about can be arranged in various fashions and are easy to hit should there ever be the occasion where I want to click on them (which would be [i]never[/i]) ;). -
RE: Reading stdout with WinAPI
@gÄ…ska said in Reading stdout with WinAPI:
Also, you have potential race condition when the child process writes to pipe just before it exits - if it happens after you checked pipe status but before you checked process status, you lose the final portion of data.
Good point. Any ideas on how to address that?
-
RE: Latest Firearm Topic
I see absolutely no problem with people being allowed to carry a firearm, as long as they are qualified to use it in a correct manner, much like with a motor vehicle. Now I'm pretty sure there will be a plenty of folks who disagree with the latter part...
-
RE: Reading stdout with WinAPI
@gÄ…ska said in Reading stdout with WinAPI:
Yes, the WinAPI docs are a mess. But it's still light years ahead of most other software.
Not compared to .NET which is what I normally try to use when doing stuff like this. Unfortunately this is a legacy application with code so terrible that even a busy wait is an improvement. Honestly, I consider the utter lack of any Unicode support a bigger issue.
I've ended up switching to checking the return value and:
- If error is
ERROR_BROKEN_PIPE
, we're done. - If error is
ERROR_MORE_DATA
, keep reading. - If error is anything else, error out.
I also removed that zero-out. It was just a quick and lazy way of ensuring the string was null terminated for appending to the stream which I don't use in the actual code.
Thanks everyone!
- If error is
-
RE: Preload Fallout 4.... or not
Upon trying to like your post:
Is Discourse secretly made by Bethesda?
-
RE: Preload Fallout 4.... or not
Reviewer implied that there was only one disc.
So maybe that's part of the problem? Maybe there should be multiple discs?
-
RE: Preload Fallout 4.... or not
1) Most Bethesda games are fine; only Gamebryo games ship buggy. (Dishonored: not Gamebryo, not buggy. Skyrim: Gamebryo, buggy.)
Dishonored wasn't made by Bethesda, it was published by Bethesda. So sorry, you're wrong. Incidentally all of the modern games made by Bethesda run on Gamebryo, ergo as you said yourself, all games made by Bethesda are buggy. Thanks for playing.
2) Even then they're usually pretty damned solid on consoles, it's just the Windows version with the problems. And usually because the Windows version has extra stuffs (modding support, higher res graphics), but is simultaneously less-QAed (fewer sales)
Yeah, except on the PS3 where, if your save gets too big, shit will break. But I know, PS3 isn't a real console, right?
-
RE: Linus does not care about you
Here in the US, you are allowed to fire people for any reason, except a specific list of protected reasons. If it ever goes to court, and the employer can't provide reasonable evidence that they had a reason not on the list, they are almost always assumed to have had one of the disallowed reasons. This actually makes it quite hard to game. A lot of people think a boss could simply hold the first minor rule infraction against the employee, but the employee only has to show that he was the only one fired for the infraction and everyone else was given a pass. The judge will usually see through the ruse and hold the employer accountable.
The problem is that to take something to court you need money. If you've just been fired from your job that may be an issue. This is why outside of the US (or even in US states which do not have at-will employment) there are laws that try to level the playing field.
Of course that doesn't mean that a smart asshole cannot abuse either system to screw over his employer but it is usually the other way around.
-
RE: Reading stdout with WinAPI
@cvi said in Reading stdout with WinAPI:
@gÄ…ska said in Reading stdout with WinAPI:
No, it will loop around one more time and read remaining input.
Sorry, you're right. I missed the
|| dataSize != 0
in the while condition. :-/Full disclosure: I edited that in a bit later when I realized that myself. You may have seen the original version.
-
RE: The minor rants thread.
So newsflash, Discourse is still on Android.
I was eating lunch and I figured I might as well check out some on my Nexus 5. By the time the index loaded I finished half of the plate...
-
RE: [C] `strtol(string, NULL, 16);`. Or you could do it the other way...
Incidentally, what's up with:
int go=1; while (go) { // ... go=0;
Why the hell not just use a break?
-
RE: Fuck you, Samsung
What is the platform that discourse works?
I heard reading the database directly offers the best results...
-
RE: The World's Slowest Logging Function
I just realized that in the process of anonymization/simplification I left out a check for some global exit variable that causes the loop to shut down. I updated the OP to include it. Using
GetMessage()
wouldn't work with it and as I just remembered that's why I didn't pursue it further - I didn't have the strength to try to figure out that global is and if it even needs to be there in the first place - Couldn't you just send an exit message? There's even a fucking custom one there! -
RE: Aviation Antipatterns Thread
@HardwareGeek said in Aviation Antipatterns Thread:
You remember that guy who crashed his plane in California, the one who just happened to be wearing a parachute (with a fire extinguisher strapped to his leg under his pants)
You forgot about his best friend's ashes in a ziplock sandwich bag, and a Ridge wallet.
-
RE: Oracle to purchase Dyn DNS
@Lorne-Kates said in Oracle to purchase Dyn DNS:
I give my ISP $2/month for a static IP, like ... wait. Okay, fuck whatever I'm posting, what in the glorious shit is this?
Seriously? WHAT THE FUCK?
Whose fucking fault is this? W10? Chrome? NodeBB? Combination? I'm fucking demanding answers here.
-
RE: 🔥 Doctor, my leg hurts when I stab it with this JavaScript!
Try explaining to your employer why it took twice as fucking long to do something. The explanation "Some nerds on thedailywtf.com forms won't like your website with JS disabled" won't cut it.
Christ, how long does it take you to add
```html
<noscript>This site requires JavaScript</noscript>?!
-
RE: 🔥 Doctor, my leg hurts when I stab it with this JavaScript!
How long does it take to realize that JS is basically a requirement these days, if we're asking about people's windmill-tilting?
Truly a sad world we live in.
-
RE: 🔥 Doctor, my leg hurts when I stab it with this JavaScript!
At that point, any page that comes up blank is telling you, passive-aggressively, you need JS enabled.
And such page should, active-aggressively, go fuck itself.
-
RE: RGB LED EVERYTHING!!
@loopback0 said in RGB LED EVERYTHING!!:
@Deadfast said in RGB LED EVERYTHING!!:
@levicki said in RGB LED EVERYTHING!!:
@Deadfast said in RGB LED EVERYTHING!!:
There, Nvidia'd it for you.
Eh?
How long until the website gets a mandatory login too?
-
RE: Lies, damned lies and Intel benchmarks
@dkf said in Lies, damned lies and Intel benchmarks:
@cvi said in Lies, damned lies and Intel benchmarks:
And as much as Apple is a bit of a special case, they've (again) demonstrated that switching architectures (or doing multiple) is kinda possible.
They've more experience with this than virtually anyone else in the industry.
With the notable exception of charging interfaces on their phones.
-
RE: Dates are hard... and may lead to tax fraud?
@kazitor said in Dates are hard... and may lead to tax fraud?:
Magpies are sweet and wholesome
[..]
a vicious stepmum who wouldn’t let the poor juveniles have anything as she was around, dive-bombing and pecking at their backs…@kazitor said in Dates are hard... and may lead to tax fraud?:
the only people who get tormented by them are those who are being dicks
A.k.a cyclists.