Search found 1783 matches

by Rysto
Wed Jul 05, 2017 8:25 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1859: "Sports Knowledge"
Replies: 44
Views: 3627

Re: 1859: "Sports Knowledge"

This is either the most boring xkcd in years or else it's Randall trolling the sportsfans amongst us nerds. I fail to see the humor in being proud and vocal about one's lack of knowledge in any field. Yeah, it's less dangerous when the field is sports rather than, say being POTUS, but still. I don'...
by Rysto
Thu Mar 02, 2017 5:33 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 477188

Re: The "IT DOESN'T WORK!" thread

Argh... I'm trying to track down the source of a nasty bug that takes hours to reproduce, and we're just before the release. Last night I wrote up this logging script and let it run overnight along side the repro script. Today I see that it did repro overnight, and look at the output. It's completel...
by Rysto
Fri Jan 13, 2017 3:57 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1785: "Wifi"
Replies: 42
Views: 5083

Re: 1785: "Wifi"

A bit of a tangent but as a embedded software developer, I've literally never had a pleasant conversation that included the word "firmware".
by Rysto
Wed Oct 12, 2016 1:10 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1745: "Record Scratch"
Replies: 45
Views: 7442

Re: 1745: "Record Scratch"

HokieNerd wrote:
peteispo wrote:The "78 RPM era" might be close to your Civil War, but not ours...


Define "ours".


My money is on "English".
by Rysto
Fri Sep 30, 2016 10:58 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1740: "Rosetta"
Replies: 35
Views: 4970

Re: 1740: "Rosetta"

So it turns on that the Philae portion of the mission was sabotaged by a time traveller from the 23rd century, trying to prevent us from subtly changing the comets orbit enough that it crashes into the Earth in a couple of hundred years.
by Rysto
Sat Sep 24, 2016 7:15 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Naturally, the only things worth checking in a code-review are things that could be fixed by a pre-commit hook. In my experience if the only feedback you're getting on your code reviews is trivial style issues, the issue is usually with the code change as presented rather than the reviewers. Try to...
by Rysto
Sun May 15, 2016 5:23 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Today I discovered the horror of bug dependencies. No, not dependency bugs, those are normal. So there was a bug report for a bug. I couldn't reproduce, but the code looked like the bug should indeed occur. I digged further and discovered three related bugs, which I fixed. Now the bug from the repo...
by Rysto
Fri Feb 19, 2016 5:57 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Here's a lesson I really need to learn: if you're doing a quick one-off test, you are usually better off add 5 lines of code to the application rather than wasting hours trying to figure out how to configure it to do what you need.
by Rysto
Mon Feb 15, 2016 7:10 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1643: "Degrees"
Replies: 147
Views: 18583

Re: 1643: "Degrees"

Story wrote:As illustrated in the comic, Fahrenheit is a lot more useful for describing everyday weather.

You only say that because you're familiar with Fahrenheit and not Celsius. I feel the opposite, because I'm more familiar with Celsius. But they're both arbitrary scales.
by Rysto
Wed Feb 03, 2016 12:42 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1638: "Backslashes"
Replies: 62
Views: 9573

Re: 1638: "Backslashes"

Isn't this all irrelevant because he forgot the -E flag to grep?
by Rysto
Sat Dec 05, 2015 4:14 pm UTC
Forum: Coding
Topic: IDEs and the death of the command line interface
Replies: 25
Views: 7203

Re: IDEs and the death of the command line interface

I agree that point-and-click navigation is an essential feature. Another really nice feature that Java IDEs have is that they continuously compile your code as you type and point out all compiler errors. By having your error pointed out immediately it's way faster than coming back to the code 5 minu...
by Rysto
Tue Dec 01, 2015 12:55 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

I've written a large build infrastructure basically from the ground up with GNU Make, so I can enumerate it's limitations pretty well: 1) There is no way to specify that a single rule generates multiple files 2) There is no notion of namespacing or scoping. The only way to generate multiple scopes i...
by Rysto
Sun May 31, 2015 11:59 pm UTC
Forum: Coding
Topic: Useful applications of recursion?
Replies: 19
Views: 3757

Re: Useful applications of recursion?

If you're replacing recursion with a loop and a stack, all you've done is reinvented the call stack. There's no good reason to do this unless performance is absolutely essential. I'm having a lot of difficulty envisioning a scenario where allocating from the heap would ever be faster than allocatin...
by Rysto
Sat May 02, 2015 2:14 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

I was more getting at, is it a bad thing that I have so much crap in ~/tmp, some of which may be important, so I had to create ~/tmp/tmp to store temporary files?
by Rysto
Fri May 01, 2015 11:13 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Is it a bad sign when you home directory contains a subdirectory called tmp/tmp?
by Rysto
Mon Jan 05, 2015 1:30 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

The only thing worse than Fundamental Failure Mode is when the program implicitly depends on the system being in a failure mode in order to actually function correctly.
by Rysto
Sat Aug 30, 2014 11:57 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 477188

Re: The "IT DOESN'T WORK!" thread

I'm working on making our code base at work compile with a newer version of gcc and a new version of the OS. Of course this means that I get to find all of the moronic things that people have done in our code. I've just wasted an hour trying to track down the source of this: c++/4.9.0/bits/stl_multi...
by Rysto
Fri Aug 15, 2014 9:10 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Xeio wrote:It looks like they just wanted to be lazy, so rather than having to add a method and add it to a list *gaps*, they just have to add a public method with the right signature and "magic" happens.

They could have at least used an annotation...
by Rysto
Tue Aug 12, 2014 1:55 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Oh wow, that's impressive! Do you need every file in every build, though? Because I'd be very tempted to partition the rules up (in a similar way to how you'd do recursive make) and then only include the rules for the files you need. That could be based on the build target, static configuration or ...
by Rysto
Sun Aug 10, 2014 8:06 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

It's a very large project with 6000-7000 source files. The whole source tree is now built by a single make process instead of the traditional recursive make approach. That's why make is using 0.5 GB and 100% CPU: There are so many targets that make spends a significant amount of time trying to evalu...
by Rysto
Sat Aug 09, 2014 7:51 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

I worry sometimes that the new build infrastructure that I've written is abusing make's limits:

Code: Select all

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 6894 rysto     20   0  529m 526m  768 R 99.8  0.4   0:44.74 make
by Rysto
Sat Jul 19, 2014 2:23 pm UTC
Forum: Coding
Topic: Coding: Hacks and Snippets
Replies: 434
Views: 768646

Re: Coding: Hacks and Snippets

If you used FreeBSD, you could get a status update from from dd (and a number of other standard utilities) just by sending it a <Ctrl>-T (SIGINFO) signal. I don't know how you Linux users survive without SIGINFO.
by Rysto
Wed Jul 02, 2014 1:01 pm UTC
Forum: Coding
Topic: Object oriented programming is bullshit
Replies: 32
Views: 10272

Re: Object oriented programming is bullshit

Your boss sounds crazy to me. I think that I could count the number of times that I've had to use friend on one hand, and I certainly am not making all of my members public.
by Rysto
Mon Jun 30, 2014 7:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Another FT: git bisect is a useful utility to find regressions but I'm currently trying to find a bug where running the test case takes 30-120 minutes >_< git bisect can be automated. You give it a script to run that will build the code and test it. The script needs to return 0 for "git bisect...
by Rysto
Mon May 19, 2014 2:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

IMO they can be used effectively, but the way that the Java APIs use them is completely wrong. Declaring that you throw something generic like "IOException" is useless to the caller. What, exactly, is the programmer supposed to do with that? On the other hand, throwing "FileNotFoundEx...
by Rysto
Sat May 17, 2014 2:03 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 477188

Re: The "IT DOESN'T WORK!" thread

Argh... I started using somebody else's library for a new feature. It was very convenient and helped me solve some important problems easily, so that's good. Unfortunately, I'm using it in an environment where security is paramount, so I had to audit it for security problems. The pain never ends: 1)...
by Rysto
Fri Apr 18, 2014 5:12 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 477188

Re: The "IT DOESN'T WORK!" thread

Aghh every time I think I understand how C/C++ works, bam, it decides to prove me wrong. common.h: #ifndef COMMON_H #define COMMON_H //should only be included once #warning "FILE INCLUDED!" #endif f1.c: #include "common.h" int main(){return 0;} f2.c: #include "common.h"...
by Rysto
Wed Apr 09, 2014 3:49 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1353: "Heartbleed"
Replies: 99
Views: 26550

Re: 1353: "Heartbleed"

I like how the people that found it created not only a catchy name, but a matching logo. Not many people take the time to do that anymore... actually has anyone taken the time to do that before? I like how they created a catchy name and a logo, but apparently couldn't be bothered to notify major OS...
by Rysto
Thu Mar 27, 2014 11:11 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

Xanthir wrote:And of course, both of those fail if the limit is zero.

I don't see how mine fails on a zero-length list?
by Rysto
Thu Mar 27, 2014 10:58 pm UTC
Forum: Coding
Topic: Funniest/Most Annoying Code Comments
Replies: 662
Views: 124790

Re: Funniest/Most Annoying Code Comments

/* * Configure <something> value on <function> 0. page and * phy_register identifies the register that we write to. bits_start * and bits_end identify what bits in the register we should be changing * (inclusive). Bits out of this range will not be modified. */ //... /* * Configure <something> on <...
by Rysto
Thu Mar 27, 2014 10:24 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9742
Views: 1554152

Re: Coding: Fleeting Thoughts

My preferred method is:

Code: Select all

sep="";
for (int i = 0; i < 10; i++) {
    printf("%s%d", sep, i);
    sep=", ";
}
by Rysto
Wed Mar 19, 2014 11:13 pm UTC
Forum: Coding
Topic: Suggest an open-source C/C++ IDE
Replies: 22
Views: 6682

Re: Suggest an open-source C/C++ IDE

It's FreeBSD. I was nice to it and only told it to tag the kernel, too. I can only imagine how badly it would die if I made it tag the userland too.
by Rysto
Tue Mar 18, 2014 11:05 pm UTC
Forum: Coding
Topic: Suggest an open-source C/C++ IDE
Replies: 22
Views: 6682

Re: Suggest an open-source C/C++ IDE

lgw wrote:Wow, what kind of crazy system do you have here. Or does QT need more memory for the index than the entire codebase takes?

I suspect that it's the index, but it's difficult to be 100% sure.
by Rysto
Tue Mar 18, 2014 2:56 pm UTC
Forum: Coding
Topic: Suggest an open-source C/C++ IDE
Replies: 22
Views: 6682

Re: Suggest an open-source C/C++ IDE

So qtcreator consumes all 32G in the system while trying to parse the project and eventually gets killed when the OS runs out of swap. It didn't come close to finishing parsing, either. It didn't even make it 1/4 of the way. The winner so far is something called Codelite, which honestly could use mo...
by Rysto
Sun Mar 16, 2014 10:19 pm UTC
Forum: Coding
Topic: Suggest an open-source C/C++ IDE
Replies: 22
Views: 6682

Re: Suggest an open-source C/C++ IDE

korona wrote:Have you tried Eclipse?

It dies horribly on thousands of source files. It was completely unusable the last several times that I tried it.
by Rysto
Sun Mar 16, 2014 9:46 pm UTC
Forum: Coding
Topic: Suggest an open-source C/C++ IDE
Replies: 22
Views: 6682

Suggest an open-source C/C++ IDE

I'm getting sick of editing code in simple text editors (e.g. kate) because I find that it really hampers my productivity. At work I use a nice Windows-only IDE, but I need something more portable (and with a better price tag ;)) for my personal use. My requirements are: - It must run on Linux and F...
by Rysto
Sun Mar 16, 2014 9:17 pm UTC
Forum: Coding
Topic: Mild Scripting Rant (argument encapsulation)
Replies: 15
Views: 4809

Re: Mild Scripting Rant (argument encapsulation)

Bourne shell is simply not a language suitable to writing production-quality code. As you say, the language is full of land mines that can blow up in extremely subtle ways. It persists because: a) It's the only reasonable language that is guaranteed to be present on any Unix system. But many shell s...
by Rysto
Sun Mar 16, 2014 8:59 pm UTC
Forum: Coding
Topic: To use “else” or separate “if”s when each has a return?
Replies: 17
Views: 6146

Re: To use “else” or separate “if”s when each has a return?

The advantage of initializing to ERRCODE is if you somehow reach the final "return returnCode;" line without setting returnCode, you return ERRCODE (which signifies the error) instead of returning a default 0-initialized int (which generally counts as success). No, what you do is not init...
by Rysto
Mon May 27, 2013 9:56 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1217: "Cells"
Replies: 56
Views: 20810

Re: 1217: "Cells"

To be serious for a moment, I'd like to know if all of these "kills cancer cells in petri dishes" studies are using the substance(s) in question in concentrations that are reasonable to achieve inside a human body. It does very little good to cancer patients if the necessary quantity woul...
by Rysto
Wed Apr 03, 2013 1:31 am UTC
Forum: News & Articles
Topic: Cyprus Bailout: Wealth Tax, Bank Runs on the Horizon
Replies: 111
Views: 9836

Re: Cyprus Bailout: Wealth Tax, Bank Runs on the Horizon

- The bank's deposit at the reserve bank ("high-powered money") allows it to lend 9 times that money (10% of the money is "in reserve"). So theoretically a bank could raise $100M of capital, deposit it at the reserve bank and immediately turn around and lend out $900M, couldn't ...

Go to advanced search