24 Matching Annotations
  1. Last 7 days
    1. I could add .json on the end, but that would mean hacking away at angularjs, which is doing the right thing. I would rather find a good solution and hack away at rails, which is doing the wrong thing :)
    2. In that case I would suggest to use .xml or .json format to eliminate accept header parsing issue.

      Avoid using a perfectly good feature (accept header negotiation) just because browsers screwed things up?

    3. Safari sends following order application/xml (q is 1) application/xhtml+xml (q is 1) image/png (q is 1) text/html (q is 0.9) text/plain (q is 0.8) \*/\* (q is 0.5) So you visit www.myappp.com in safari and if the app supports .xml then Rails should render .xml file. This is not what user wants to see. User wants to see .html page not .xml page.
  2. Jul 2020
    1. Creating and calling a default proc is a waste of time, and Cramming everything into one line using tortured constructs doesn't make the code more efficient--it just makes the code harder to understand.

      The nature of this "answer" is a comment in response to another answer. But because of the limitations SO puts on comments (very short length, no multi-line code snippets), comment feature could not actually be used, so this user resorted to "abusing" answer feature to post their comment instead.

      See

  3. May 2020
  4. Apr 2020
  5. Jan 2020
    1. ssh doesn't let you specify a command precisely, as you have done, as a series of arguments to be passed to execvp on the remote host. Instead it concatenates all the arguments into a string and runs them through a remote shell. This stands out as a major design flaw in ssh in my opinion... it's a well-behaved unix tool in most ways, but when it comes time to specify a command it chose to use a single monolithic string instead of an argv, like it was designed for MSDOS or something!
  6. Dec 2019
    1. While I wanted to do my best to not judge how I was spending my time during the experiment—to just track it as it is and analyze at the end—I did want to have a baseline to compare my results to. This wasn't a hypothesis of how I spend my time, but more of a vision for how I would like my time to be allocated.
    1. This problem can also come up when you use npm link or an equivalent. In that case, your bundler might “see” two Reacts — one in application folder and one in your library folder. Assuming myapp and mylib are sibling folders, one possible fix is to run npm link ../myapp/node_modules/react from mylib. This should make the library use the application’s React copy.
  7. Nov 2019
  8. Aug 2019
    1. I was so fed up of the mega amounts of boilerplate with Redux and the recommendation of keeping your data loading at view level. It seems to me that things like this, with components being responsible for their own data, is the way to go in the future.
  9. Feb 2019
  10. Jan 2017
    1. Howeverfrequenttheireuphoricflightsabouttheunlim-itedpowersandmalleabilityofman,theyknewthatrhetoricaleducation,inpractice,sawmanaslimited,notunlimited,livinginaworldofplay,notofidealforms.

      If I'm reading this correctly, this is saying that to live in a world of ideal forms would be the less limiting option here. However, I usually consider ideal forms to be quite limiting as I generally understand idealism to be so closely aligned with essentialism. For example, when students are introduced to an "ideal argument," their notions of argument become more and more restricted. While this can be good (because it provides models for those beginning), it limits the possibilities of all of the divergent notions of argument.

      In the next paragraph, when Lanham says "when rhetoric empowers literature, it is unredeemable. That is what rhetorical literature, I am tempted to say Western literature, is all about," I jump back up here, and then back down there, and then back up here. I wonder if Lanham is suggesting something here about the essentialist notions of humanity... In other words, as long as advocacy for rhetoric carries the baggage of essentialism (like literature as always being boiled down to saying something about the human condition), it will never get beyond the weak defense?

  11. May 2015
    1. cannot be entirely explained by the Ideal Gas Law (or variations thereof) when applied to the most likely game conditions and circumstances

      How about when introducing a needle that registers .3-.45 below accurate. Start the ideal gas law tests at 12.05.

  12. Feb 2014
    1. We will construct a p ortrait of the \ideal mathematician". By this we do not mean the p erfect mathematician, the mathematician without de- fect or limitation. Rather, we mean to describ e the most mathematician- like mathematician, as one might describ e the ideal thoroughbred grey- hound, or the ideal thirteenth-century monk.
  13. Nov 2013
    1. "I teach," he says, "that the orator cannot be perfect unless he is a good man. Con-sequently I demand from him not only outstand-ing skill in speaking but all the virtuous qualities of character." This is the type of orator that Quin-tilian constructs for us. Afterwards in the twelfth book, where he defines him in similar terms as a good man skilled in speaking well, he identifies those virtuous qualities of character as justice, courage, self-control, prudence, likewise knowl-edge of the whole of philosophy and of law, a thorough acquaintance with history, and many other attributes worthy of praise.
  14. Oct 2013
    1. Such an orator ought now surely to be formed, when so many more examples of eloquence exist than fell to the lot of those who have hitherto been considered the best orators, for to them will belong the praise, not only of surpassing those who preceded them, but of instructing those who followed.

      Ideal orator

    1. We see an antidote, for example, and other medicines to heal diseases and wounds, compounded of many and sometimes opposite ingredients, from the various qualities of which results that single compound, which resembles none of them, yet takes its peculiar virtues from them all.

      Analogy of what makes a perfect orator.

    2. Nature does not forbid the formation of a perfect orator, and it is disgraceful to despair of what is possible.

      Ideal orator is attainable

    1. pervert the judge by moving him to anger or envy or pity -- one might as well warp a carpenter's rule before using it.

      The judge is only human, though - sometimes it seems like the Greeks' concept of achieving the ideal got in the way sometimes.