Search found 3086 matches

by Qaanol
Fri Jan 29, 2016 3:29 pm UTC
Forum: News & Articles
Topic: 2016 US Presidential Election
Replies: 8482
Views: 985168

Re: 2016 US Presidential Election

Healthcare Let’s be clear: the “Affordable Care Act” is better than what we had before, but not by much. It was a right-wing Heritage Foundation / Mitt Romney plan, and we can do much better. Yes, it ended the debacle of “pre-existing conditions”, but there are many serious problems that still rema...
by Qaanol
Fri Jan 29, 2016 4:42 am UTC
Forum: Religious Wars
Topic: 1/xy
Replies: 12
Views: 8271

Re: 1/xy

There is no situation—none—in which I would write (1/xy) to mean (y/x).
by Qaanol
Fri Jan 29, 2016 4:29 am UTC
Forum: News & Articles
Topic: 2016 US Presidential Election
Replies: 8482
Views: 985168

Re: 2016 US Presidential Election

Bernie Sanders is a moderate . Look at what he is pushing for . Look at the rest of the world. Bernie wants single-payer healthcare , which would eliminate insurance premiums, deductibles, and copays, while saving thousands of dollars per person every year, just like the rest of the first-world has...
by Qaanol
Tue Jan 19, 2016 6:37 am UTC
Forum: Coding
Topic: xkcd Phone: Application Programming Language
Replies: 21
Views: 7716

Re: xkcd Phone: Application Programming Language

Or better yet, reverse indentation. The innermost code is not indented at all, and each containing scope is indented one level more. Anytime you add an even-more-inner scope, you have to indent the entire rest of the file.
by Qaanol
Mon Jan 18, 2016 3:51 am UTC
Forum: Coding
Topic: xkcd Phone: Application Programming Language
Replies: 21
Views: 7716

Re: xkcd Phone: Application Programming Language

^ will be the exponentiation operator. The xor operator will be ⊗

Whitespace around operators will affect order of evaluation:
-3 ^ 2 is positive 9
-3^2 is negative 9
1+2 * 3+4 is 21
by Qaanol
Mon Jan 11, 2016 3:07 am UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

I don't get why the discussion here went on for so long, Qaanol had the provably optimal solution all the time, and there are older threads discussing the same topic with the same result as well. Turns out my solution is not completely optimal if you need to generate many random numbers—it discards...
by Qaanol
Fri Jan 01, 2016 9:01 pm UTC
Forum: Science
Topic: Data presentation (Graphical design guru needed!)
Replies: 8
Views: 3828

Re: Data presentation (Graphical design guru needed!)

What if you plotted rate/rate(0) instead of rate? Then series A goes from 1 down to about 0.25, a very shallow slope, while B & C rise from 1 to about 6 and 4 respectively, a vastly overshadowing change. Moreover, all notion of actual units and rates is lost from the chart. Your X axis seems ve...
by Qaanol
Fri Dec 25, 2015 1:11 am UTC
Forum: Science
Topic: Data presentation (Graphical design guru needed!)
Replies: 8
Views: 3828

Re: Data presentation (Graphical design guru needed!)

All right, here is my second draft with…

• All column charts
• Subdued color scheme
• Smaller scale for C
• Nicer units for rates

DataGraph 2.png


And just for fun, here’s the same thing except with series A as a curve:

DataGraph 3.png
by Qaanol
Tue Dec 22, 2015 2:35 am UTC
Forum: Science
Topic: Data presentation (Graphical design guru needed!)
Replies: 8
Views: 3828

Re: Data presentation (Graphical design guru needed!)

I get what you’re saying about the differing scales—however the goal here is to display all three results on a single chart and as you see they have very different orders of magnitude. Moreover, the specific values are not actually of particular interest, rather it is the trends and relationships be...
by Qaanol
Mon Dec 21, 2015 7:10 pm UTC
Forum: Science
Topic: Data presentation (Graphical design guru needed!)
Replies: 8
Views: 3828

Data presentation (Graphical design guru needed!)

I have a small data set, just 3 variables measured across each of 6 groups, and I’m trying to find the best way to display it. My first crack at plotting the results looks like this, where variable A is the curve and B & C are the columns: DataGraph1.png I’m looking for any and all advice on how...
by Qaanol
Wed Nov 25, 2015 1:52 am UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

you still throw away some entropy after producing a card. The minimal amount that can possibly still work for a card-by-card approach. The worst case for my method is when generating bits by drawing from three options. In that scenario, if you need more than one bit you’re better off generating the...
by Qaanol
Tue Nov 24, 2015 11:54 pm UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

Vytron wrote:
Qaanol wrote:Do you understand what my method does?

No

Would you like to?

It makes optimal use of the random digits, and is quite simple in operation. For example, it only ever needs to deal with small integers.
by Qaanol
Mon Nov 23, 2015 12:51 am UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

Do you understand what my method does?
by Qaanol
Sun Nov 22, 2015 5:56 pm UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

Here’s what I might do: “The greedy algorithm” const int RANDSIZE = 10;  // rand() returns a uniform int from 0-9// Draw uniformly from 0-(n-1)// Start with state 1, value 0int randUniform(int n, int *state, int *value) {  int s = *state;  // The number of options available  int v = *value;  // The ...
by Qaanol
Thu Nov 19, 2015 4:29 am UTC
Forum: Mathematics
Topic: Least numbers discarded when dealing cards
Replies: 30
Views: 5990

Re: Least numbers discarded when dealing cards

The greedy algorithm is optimal.
by Qaanol
Sat Nov 14, 2015 8:51 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1778888

Re: Coding: Fleeting Thoughts

Code: Select all

y =! x;
by Qaanol
Sat Nov 14, 2015 6:24 pm UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Re: Linear approximation of a sphere

I suppose I ought to explain the motivation here. We are generalizing the α ·max + β ·min algorithm to work in ℝ 3 as α ·max + β ·med + γ ·min, and looking for the optimal values of ( α , β , γ ) to best approximate the distance formula, using various measures of “best”. It should be straightforward...
by Qaanol
Fri Nov 13, 2015 3:19 pm UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Re: Linear approximation of a sphere

For the maximum absolute deviation, my suspicion is that b is in the direction normal to the plane through all three u i , but I'm not quite sure how to prove this. Wait I think you’re right after all, provided that the plane-normal falls within the spherical triangle. Otherwise, b must be orthogon...
by Qaanol
Fri Nov 13, 2015 1:04 am UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Re: Linear approximation of a sphere

If it makes things easier the specific case I’m looking at right now is: u 1 = (1, 0, 0) u 2 = (1, 1, 0) / √2 u 3 = (1, 1, 1) / √3 There are a few others I’ll be interested in, but this should be the simplest. If I’ve done my math right, the center of mass for this spherical triangle lies in the dir...
by Qaanol
Thu Nov 12, 2015 11:45 pm UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Re: Linear approximation of a sphere

For the integrated squared deviation, differentiating the expression with respect to b and solving gives us b = (∬ vv T dS ) -1 (∬ v dS ). Good call! So my hunch was right for that one. For the maximum absolute deviation, my suspicion is that b is in the direction normal to the plane through all th...
by Qaanol
Thu Nov 12, 2015 10:41 pm UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Re: Linear approximation of a sphere

My gut intuits that b should in all cases point in the direction of ∬vdS, namely the center of mass of the spherical triangle, but to calculate that integral evades me, nor have I reason beyond an inkling to suspect it.
by Qaanol
Thu Nov 12, 2015 1:26 pm UTC
Forum: Mathematics
Topic: Linear approximation of a sphere
Replies: 7
Views: 1792

Linear approximation of a sphere

Given three points on the unit sphere, say u 1 , u 2 , and u 3 , consider the (small) spherical triangle with the u i as vertices. For each point on that spherical triangle, call it v and calculate v·b for some constant vector b . What can we say about b if it is chosen to minimize (over the spheric...
by Qaanol
Fri Oct 16, 2015 2:53 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1778888

Re: Coding: Fleeting Thoughts

New to OOP - quick question. Say I have a bunch of unrelated classes, and they all have to be able to do foo(). As it turns out, the code (or at least the logic) for foo() is the same for all the classes. If I make a member function foo() for each class, and later change the way foo() foos, I have ...
by Qaanol
Mon Oct 12, 2015 5:15 pm UTC
Forum: Mathematics
Topic: Axioms and multiplication?
Replies: 18
Views: 3230

Re: Axioms and multiplication?

To clarify, the rational functions are an ordered non-Archimedean field. Its *completion* (with respect to Cauchy sequences) is a complete ordered non-Archimedean field. This is in chapter one of “Counterexamples in Analysis”.
by Qaanol
Tue Oct 06, 2015 4:31 pm UTC
Forum: Mathematics
Topic: Axioms and multiplication?
Replies: 18
Views: 3230

Re: Axioms and multiplication?

So what's your metric on the rational functions? ie what's a Cauchy sequence and what isn't. This is actually a more interesting question than might initially be apparent. The standard definition of “Cauchy” talks about the limit of distances between all elements in the tail of a sequence. But the ...
by Qaanol
Mon Oct 05, 2015 4:10 pm UTC
Forum: Mathematics
Topic: Axioms and multiplication?
Replies: 18
Views: 3230

Re: Axioms and multiplication?

Define completeness however you like. https://en.wikipedia.org/wiki/Completeness_of_the_real_numbers#Forms_of_completeness They're all equivalent. I dare you to describe a complete ordered field that isn't the reals using any of the definitions for complete appearing on that page. Cauchy completene...
by Qaanol
Mon Oct 05, 2015 2:16 am UTC
Forum: Mathematics
Topic: Axioms and multiplication?
Replies: 18
Views: 3230

Re: Axioms and multiplication?

To answer you first question, anything that is a complete ordered Archimedean field is isomorphic to the real numbers. Fixed that for you. As for the topic at hand…ehh, I’d say that multiplication by a natural number is exactly repeated addition. Multiplying a real by a natural? Just add the real t...
by Qaanol
Sat Oct 03, 2015 2:56 pm UTC
Forum: Hardware
Topic: Intel & Micron announce “3D XPoint” memory
Replies: 17
Views: 12036

Re: Intel & Micron announce “3D XPoint” memory

I just found this whitepaper (PDF) about the Cross-point Array technology on the old Unity Semiconductor website, via the Wayback Machine. I haven’t read the whole thing yet, but it appears to give some insight into the design of the crisscrossing array, much as the previously-linked PDF gave insigh...
by Qaanol
Thu Sep 17, 2015 7:42 pm UTC
Forum: Mathematics
Topic: Wanted: Elegant proof of sin(x)/x limit
Replies: 49
Views: 8110

Re: Wanted: Elegant proof of sin(x)/x limit

Consider the angle between the chord and the upright.

(Hint: bisect the sector.)
by Qaanol
Thu Sep 17, 2015 6:02 pm UTC
Forum: Science
Topic: Stationary ramjet
Replies: 45
Views: 7370

Re: Stationary ramjet

I still don’t understand why launches from the ground are done with rockets rather than, say, a train track that ends in a ramp, to send a large jet up which climbs and accelerates further before decoupling from the rocket at high altitude and velocity. The jet could even land on the ocean if it’s t...
by Qaanol
Thu Sep 17, 2015 5:47 pm UTC
Forum: Language/Linguistics
Topic: How would you punctuate these?
Replies: 9
Views: 4162

Re: How would you punctuate these?

Isn’t she the one who said, “When will we stand up and ask, ‘Who will pay for these crimes?’?”?
by Qaanol
Tue Sep 15, 2015 12:38 pm UTC
Forum: Coding
Topic: Best password improver
Replies: 62
Views: 10279

Re: Best password improver

Me. I am the best password improver. Send your passwords to me and I will improve them.
by Qaanol
Mon Aug 31, 2015 7:43 pm UTC
Forum: Serious Business
Topic: Proportional Approval IRV
Replies: 40
Views: 19976

Re: Proportional Approval IRV

Thinking about it more, the idea of comparing the bottom two candidates and eliminating the least-approved one is a brilliant innovation. That way the eliminations are always decided by “how many people support each option”. It also dramatically increases the value in voting for multiple candidates....
by Qaanol
Sun Aug 30, 2015 3:45 am UTC
Forum: Religious Wars
Topic: What makes a good programming language?
Replies: 28
Views: 10587

Re: What makes a good programming language?

What does everyone think of Swift 2?
by Qaanol
Fri Aug 28, 2015 2:06 am UTC
Forum: Serious Business
Topic: Proportional Approval IRV
Replies: 40
Views: 19976

Re: Proportional Approval IRV

A system very similar to this has been put in place for the Hugo award nominations (after a relatively small group coordinated under the old system to control the nominations this year). The new Hugo system tallies points the same way as in this thread (approval-style ballots weighted as 1/k), but t...
by Qaanol
Wed Aug 26, 2015 9:35 pm UTC
Forum: Logic Puzzles
Topic: Rethinking Blue Eyes - A Logic Puzzle
Replies: 97
Views: 13675

Re: Rethinking Blue Eyes - A Logic Puzzle

Whee! I’ll jump back into this for some fun times! I still like this explanation: Suppose there are actually 201 separate islands, named “island 0” through “island 200”, where each island N has N blue-eyed people on it. Of course, the people on the islands don’t know which island they are on. One da...
by Qaanol
Wed Aug 26, 2015 8:53 pm UTC
Forum: News & Articles
Topic: Police misbehavior thread
Replies: 6429
Views: 937894

Re: Police misbehavior thread

And now for some positive news. Earlier this month a Texas police officer responding to a call at a house was bitten by a dog, and didn’t kill the dog.
by Qaanol
Thu Aug 20, 2015 2:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1778888

Re: Coding: Fleeting Thoughts

Code: Select all

...
} else {
  // Because why not
  while(1) {
    fork()
    ping(127.0.0.1)
  }
}

Go to advanced search