Search found 4887 matches

by EvanED
Tue Jan 05, 2016 12:52 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Are there xattrs that store more than a few bytes of data? Otherwise a key-value based interface seems pretty okay to me. First, it depends what you mean. Fixed size, no, but limited to a small size is common but not universal. Plenty of systems have arbitrary-length xattrs, including, on paper, Re...
by EvanED
Tue Jan 05, 2016 2:52 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

My knowledge of the history of XWindows is sketchy, but I get the impression it was initially intended to be somewhat system-independent (I know it was ported to VMS at the least.) That might explain its detachment from Unix standards (and now I've gone and written the phrase "Unix standards&q...
by EvanED
Tue Jan 05, 2016 1:32 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

> ls --help | wc -l 123 > man ls | wc -l 250 I'm actually surprised it's that small. If I copy and paste the ls section of the GNU coreutils manual into a text file and remove the navigation headers (initially keeping paragraphs all one line): evan@picard:~$ wc -l ls.txt 501 ls.txt evan@picard:~$ f...
by EvanED
Thu Dec 31, 2015 4:42 am UTC
Forum: Religious Wars
Topic: Best language for n00bs
Replies: 261
Views: 84061

Re: Best language for n00bs

My counterargument would be that sed/awk are extremely limited in what they can do. Text processing is only one tiny slice of what's possible. They're not even any good at a lot of realistic text processing; a lot of extraction and manipulation of semi-structured formats like XML/HTML or JSON really...
by EvanED
Tue Dec 22, 2015 5:07 am UTC
Forum: Coding
Topic: Evidence-Oriented Programming
Replies: 9
Views: 4655

Re: Evidence-Oriented Programming

Maybe something like the following would work: Text Action Concatenate(Text left, Text right) Concatenate = left + right End But I don't know how you would get a survey option of "Nothing" workable. I didn't watch the video, but I'll point out that "classic" Visual Basic (and pr...
by EvanED
Tue Dec 15, 2015 2:12 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Here's a question: would you accept decimal floating point for currency?

I'd still say "probably not", but it's much less objectionable than binary floating point...

Must... resist... opportunity to trash... you-know-what language...
by EvanED
Thu Dec 10, 2015 8:38 pm UTC
Forum: The Help Desk
Topic: Diagramming program
Replies: 2
Views: 4901

Re: Diagramming program

Perfect! Thanks!
by EvanED
Thu Dec 10, 2015 6:23 pm UTC
Forum: The Help Desk
Topic: Diagramming program
Replies: 2
Views: 4901

Diagramming program

This is a long shot, but does anyone know of a program that would be good for drawing diagrams like this? I would turn to Inkscape, but I don't know how to do it other than to draw a bunch of Bezier curves manually.

flows-anon.jpg
by EvanED
Tue Dec 08, 2015 11:45 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

DaveInsurgent wrote:Even that machine code is kinda an abstraction depending on target.

For example, Intel hates the x86 instruction set enough that they made a hardware compiler to a different ISA and execute those instructions instead. :-)

(OK, that's a bit unfair, but it's fun to make fun of x86.)
by EvanED
Sat Dec 05, 2015 11:33 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

So I've been thinking: In any given existing programming language, is there a way, possibly in another language, to express what a function should calculate without having to implement the function in the first place? What you're talking about is called program synthesis. There's active research in...
by EvanED
Sat Dec 05, 2015 3:54 am UTC
Forum: The Help Desk
Topic: Recommendations for online backup
Replies: 3
Views: 3457

Re: Recommendations for online backup

The bulk of the backup size-wise will be photos (I shoot RAW and don't like deleting things :-)) and rips of my CD collection. These are things that align well with the Glacier/Nearline philosophy pretty well. It'd also be nice to have more of a typical backup for documents and stuff, but that would...
by EvanED
Thu Dec 03, 2015 1:53 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

I think I am one of the people who will enjoy C. We'll see. :) As far as high-level languages go, I think that perl will cover that pretty nicely. You have a weird sense of "nicely" ;-) (OK, I'll try to do one post without any more snarky digs at various languages and tools. :-)) I'm inte...
by EvanED
Tue Dec 01, 2015 7:56 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Thanks; I actually hadn't realized that [K&R] is online for free. In that case I'll *definitely* be using it; I've heard it referenced all over the place. It's not AFAIK... or, well, it probably is, but only pirated. (Note that the link in the following post was to "Learn C the Hard Way&qu...
by EvanED
Tue Dec 01, 2015 1:56 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

4) It's not possible to override the default behaviour for checking whether a target is older than its dependencies. I have hit situations where timestamps are insufficient for this task, and the only thing that I can do in these situations is to shrug my shoulders and tell people to make clean I'v...
by EvanED
Tue Dec 01, 2015 12:20 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

What is bad about plain make? make is a beautiful program that often gets horribly abused by autotools. autotools are the real cancer. CMake, scons and friends may be easier to use but they are harder to customize. Implicit dependencies. The solutions for dealing with "this .c file depends on ...
by EvanED
Mon Nov 30, 2015 4:08 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Learn C the Hard Way , if you must. I hope that one's better than his Python book ... "Exercise 2: Make Is Your Python Now" I hate it already. :-) Plain make is a terrible build system for C/C++. Though maybe if you're willingly writing in plain C, you and make deserve each other. (Should...
by EvanED
Wed Nov 25, 2015 10:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

I didn't know make would make an executable with no makefile! That's handy. Is that a built-in thing with GCC languages, or does it use some sort of global config/makefile? It has builtin ("implicit") rules for many types of targets. If all it needs to know to build is those rules and to ...
by EvanED
Mon Nov 23, 2015 1:20 am UTC
Forum: The Help Desk
Topic: Recommendations for online backup
Replies: 3
Views: 3457

Recommendations for online backup

I have between 500 GB and 1 TB of stuff I'd like to back up. Any recommendations or anti-recommendations for services? Currently considering between Amazon Cloud Drive's "unlimited everything", Amazon Glacier, and Google Nearline Storage. Maybe Dropbox Pro. Edit and now CrashPlan. Being ab...
by EvanED
Thu Nov 19, 2015 3:58 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 515979

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

Thanks for the advice. I'm indeed using python 2, so this might potentially work. But how do I use absolute imports? The semantics of import foo changed from Python 2 to Python 3; from __future__ import absolute_import in Python 2 changes the semantics "early." So if you have the __future...
by EvanED
Thu Nov 19, 2015 1:46 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 515979

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

Ok so I'm having this problem in python that you'd think would be trivial. It's trivial in c, and python is supposed to be simpler. But I can't figure it out even with google. To be fair, that's because you're rejecting the solutions... But here are a couple thoughts. 1. If you're using Python 2, t...
by EvanED
Fri Nov 13, 2015 5:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

"Back when you first finished high school" -- that is a ridiculous level of understanding for programming documentation. You'd have to put this before every line: "// The following is a class. A class is ... 10 paragraphs of instructions about basic C++ concepts" I'm sure there ...
by EvanED
Wed Nov 11, 2015 12:05 am UTC
Forum: Religious Wars
Topic: Google Search vs Bing
Replies: 61
Views: 85534

Re: Google Search vs Bing

I stumbled across this thread a few minutes after I was looking for a parallel version of diff . Google had fallen flat on its face (searching for "parallel diff" brings up stuff about displaying diffs as side-by-side; "parallelized diff" brings up stuff about what's the differen...
by EvanED
Mon Oct 26, 2015 6:47 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 515979

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

Heh, I just now replied to your PM, but since you posted the question here too, I'll copy my reply as well for all to see: I guess that what's going wrong is that the filestream is closed before the json writer is finished flushing its output. (the destructor of the json archive guarantees that it ...
by EvanED
Mon Oct 26, 2015 6:38 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Frankly, the fact that a notice to that effect hasn't been edited into the CodingHorror blog post I think is dishonest. (Jeff Atwood may not be aware, though there's a reasonable chance he saw a post I made on another forum about this and in which I explicitly tagged him. I can't confirm he saw it ...
by EvanED
Mon Oct 26, 2015 4:52 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

There's a difference between "overly-ambitious conclusion borne out of wishful thinking" and "holy hell how did this thing even get published in this current state."
by EvanED
Mon Oct 26, 2015 4:16 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

This one? http://www.eis.mdx.ac.uk/research/PhDArea/saeed/paper1.pdf I believe it's for first year undergrads though, not middle-school students. (Linked to here: http://blog.codinghorror.com/separating-programming-sheep-from-non-programming-goats/) That paper has been retracted , which should be c...
by EvanED
Sun Oct 25, 2015 11:06 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 515979

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

Thank you for clearing all of that up, it's pretty overwhelming to try to read it in it's original format. :lol: I just searched my project, but the weird thing is I didn't find it? The only function that takes both fstream and a vector in as parameters is void fileWrite(ofstream &myFile, vecto...
by EvanED
Sat Oct 24, 2015 6:51 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 515979

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

"fileRead(std::__1::basic_fstream<char, std::__1::char_traits<char> >&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&...
by EvanED
Tue Sep 22, 2015 1:59 am UTC
Forum: The Help Desk
Topic: Frequent BSODs, except when I have video or audio playing(?)
Replies: 3
Views: 4042

Re: Frequent BSODs, except when I have video or audio playin

free-bee wrote:Random question: does Windows store a copy of a blue screen? I just got one myself (totally different reason) and I didn't have time to read any of it before my computer restarted. I just wanna know what it said.

Windows event viewer, if it is able.
by EvanED
Fri Sep 11, 2015 3:49 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

Pointers to different structures in C++ are incomparable, actually. (Such comparisons are undefined behavior). In many implementations this isn't true, admittedly, but it is still UB, and optimizers continue to be aggressive there. I... don't think I believe this. Are you really saying that Foo * p...
by EvanED
Tue Sep 01, 2015 5:02 am UTC
Forum: Religious Wars
Topic: What makes a good programming language?
Replies: 28
Views: 10646

Re: What makes a good programming language?

But I definitely think that the "default", "what you get if you don't ask for something different" int type should be a real integer; if I say 3 100 , the result should be 515,377,520,732,011,331,036,461,129,765,621,272,702,107,522,001. I guess it depends on what you are doing w...
by EvanED
Tue Sep 01, 2015 4:05 am UTC
Forum: Religious Wars
Topic: What makes a good programming language?
Replies: 28
Views: 10646

Re: What makes a good programming language?

There are a lot of cases where you want fixed-size integers. I have a couple responses. I'm not saying that arbitrary-precision is the only thing the language can have. Ideally, it would provide the building blocks for one to be able to create custom fixed-width types, and provide them in a library...
by EvanED
Sat Aug 29, 2015 7:55 am UTC
Forum: Religious Wars
Topic: What makes a good programming language?
Replies: 28
Views: 10646

Re: What makes a good programming language?

I think a true integer type is essential; e.g. I think the Javascript "everything is a double" is terrible. Two reasons: First, on a subjective note, I basically could not write the software I work on every day in that system because we have to be able to represent integers that can up to ...
by EvanED
Mon Aug 17, 2015 11:34 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1780868

Re: Coding: Fleeting Thoughts

How would you handle property access? Like any other language that wasn't defined by a madman? o[2] would return something differently from o["2"] . Likely you wouldn't be able to access o[2] another way, though I suspect that you actually could make o.2 unambiguous. How would you seriali...
by EvanED
Sat Aug 15, 2015 12:02 am UTC
Forum: Religious Wars
Topic: The One True Pronunciation of ".GIF"
Replies: 93
Views: 66023

Re: The One True Pronunciation of ".GIF"

...and it's hard G for graphics... This is why I pronounce "JPEG" as "jay-feg". Shouldn't that be "jay-fej"? Or else "jay-peej", either of those would Make Sense. Huh? No, you pronounce the letters as they sound in the words they are abbreviating. "Group...
by EvanED
Tue Aug 04, 2015 12:07 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 8531

Re: What phone should I get?

Thanks, everyone. I decided in the end to go WinMo, and got the Lumia 640. It was inexpensive enough that if I decide I hate it, I won't feel awful about getting a new one, and I can take more time to decide.
by EvanED
Sun Aug 02, 2015 3:59 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 8531

Re: What phone should I get?

Thanks; I think I'll make Cyanogenmod support a priority if I go Android. I'm also considering Windows Phone, actually. Anyone know what the update situation is with that? (I.e. suppose I trust MS to provide updates in a timely manner but don't trust the actual device manufacturer or AT&T to pas...
by EvanED
Sun Aug 02, 2015 1:55 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 8531

What phone should I get?

So I just dropped my N900 on the floor and the screen doesn't work any more. RIP. What should I replace it with? My wants are light -- I haven't made the full switch from grad student mode to realizing that I have money that can be exchanged for goods and services, so I haven't had a data plan and m...
by EvanED
Fri Jul 24, 2015 3:32 am UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 31200

Re: Firefox vs. Chrome: Is it time for me to throw in the to

phlip wrote:I looked into this a long time ago (when Chrome was pretty new) and maybe it's changed since then, but I haven't bothered to look.
You have been able to do this in Chrome for a while as well; right click on a field, pick "add as search engine", and fill in the keyword you want.
by EvanED
Fri Jul 24, 2015 2:26 am UTC
Forum: Coding
Topic: Avoiding duplicate code
Replies: 20
Views: 4745

Re: Avoiding duplicate code

EvanED: are you saying that, since the branches are testing the same const variables each time through the loop, the processor is quite likely to predict correctly almost every time? If your actual computations are small, I would think so. It’s probably worth mentioning that my program is multithre...

Go to advanced search