What single book is the best introduction to your field (or specialization within your field) for laypeople?
http://ask.metafilter.com/71101/What-single-book-is-the-best...
409 karma · joined March 21, 2011
[ my public key: https://keybase.io/asim; my proof: https://keybase.io/asim/sigs/ghOttQMhTUWDaeBj1z7Ebq-7KDe5wAATYO8RQ1QGUBs ]
What single book is the best introduction to your field (or specialization within your field) for laypeople?
http://ask.metafilter.com/71101/What-single-book-is-the-best...
"Finalizers are unpredictable, often dangerous, and generally unnecessary.
Their use can cause erratic behavior, poor performance, and portability
problems. Finalizers have a few valid uses, which we'll cover later in this
item, but as a rule of thumb, you should avoid finalizers...
One of the shortcomings of finalizers is that there is no guarantee they'll
be executed promptly. It can take an arbitrarily long time between
the time that an object becomes unreachable and the time that its finalizer
is executed. This means that you should never do anything time-critical in a
finalizers. For example, it is a grave error to depend on a finalizer to
close files, because open file descriptors are a limited resource...
Not only does the language specification provide no guarantee that finalizers
will get executed promptly; it provides no guarantee that they'll get
executed at all. It is entirely possible, even likely, that a program
terminates without executing finalizers on some objects that are no longers
reachable. As a consequence, you should never depend on a finalizer to update
critical persistent state...
Oh, and one more thing: there is a severe performance penalty for using
finalizers."
Why would anyone ever consider using a finalizer?There are three main reasons for using the Builder Pattern:
1) Allows for "constructor-like" calls to functions that don't necessarily share the name of the class.
2) Allows for complex, multi-parameter "constructor-like" calls without needing to make one massive function call.
3) Allows intermediate argument checking on particular constructor arguments, and allows sane optional constructor arguments.
(I find this pattern very useful).
See:
http://rwhansen.blogspot.com/2007/07/theres-builder-pattern-...
http://stackoverflow.com/questions/5007355/builder-pattern-i...
https://manuelselva.wordpress.com/2010/04/09/effective-java-...
The fact that Mnesia isn't mentioned once indicates the author is insufficiently knowledgeable about Erlang to write an informed article. This isn't an ad hominem attack because he didn't even mention Mnesia, hence this is an attack on the content of the article rather than his credentials.
(This rather anal mention of ad hominem is relevant because the author brings it up in the comments).
To those that follow, you'll learn more reading:
Erlang - mnesia (Erlang documentation) http://www.erlang.org/doc/man/mnesia.html
CAP theorem https://secure.wikimedia.org/wikipedia/en/wiki/CAP_theorem
And, of course, if you want to use something that someone has "just done", you would simply use Riak, which uses Erlang to implement an Amazon Dynamo type distributed key-value store:
Not that difficult. A few Google's and you're set.
EDIT: On reading my post I realise that Mnesia is an OTP application, rather than an Erlang built-in, and that Riak is an Erlang-based 3rd party library. However, using canonical libraries is part-and-parcel with learning about a language, IMO.
https://secure.wikimedia.org/wikipedia/en/wiki/Diehard_tests
As may be expected Diehard isn't the be-all-and-end-all of random generator testing; NIST have their own standards. Dieharder is an attempt to consolidate Diehard, NIST, and various other randomness tests.
http://www.phy.duke.edu/~rgb/General/dieharder.php
This is a severe, severe case of "Not Invented Here"; please do research before reinventing the wheel.
Let's assume the supposed best-case: every single method and class is commented using a language-specific documentation system (I'm thinking of EDoc for Erlang, Javadoc for Java, etc). Who cares? Congratulations: I now know how all your functions work. But what is the system architecture? How do object instances of the different classes hang together to support the functional specifications? What is the sequence of events for various successful and failed transactions?
I suppose what I'm complaining about is the rationale that code commenting can necessarily substitute a solid set of functional specification and design documents. Then again, noone here made this suggestion, so maybe I'm just whining into a black hole. The only open-source project that comes to mind when I think of an astoundingly high quality of documentation is SQLite in the form of "Inside SQLite (2007)" (O'Reilly); unfortunately it's not free.
But ultimately, Happes and Oettingen believe that positive fantasies are
likely to scupper your [chances] of obtaining your goals. "Instead of promoting
achievement, positive fantasies will sap job-seekers of the energy to pound
the pavement, and drain the lovelorn of the energy to approach the one they
like," they write. "Fantasies that are less positive - that question whether
an ideal future can be achieved, and that depict obstacles, problems and
setbacks - should be more beneficial for mustering the energy needed to obtain
success."I'm the sole technical force behind the project. Front-end is on Android Honeycomb tablets, back-end uses Erlang for the web server and middle-ware and PostgreSQL for the database. I also work full-time so progress is a bit slow.
"their [thair; unstressed ther] 2. (used after an indefinite singular antecedent in place of the definite masculine form his or the definite feminine form her ): Someone left their book on the table. Did everyone bring their lunch?"
Wikipedia:
https://secure.wikimedia.org/wikipedia/en/wiki/Singular_they
"Singular they is the use of the pronoun they (or its inflected forms) when plurality is not required by the context. Singular they indicates indeterminacy:
either in regard to number — "Anyone who thinks they have been affected should contact their doctor";
or, controversially, regarding gender — "One student failed their exam."
I accept the usage of their as singular is a bit odd. But I'm unwilling to accept that anyone considers the usage of "his" to be gender-neutral. Maybe "her", but most certainly not "his".In conjunction with:
Inside the Erlang VM with focus on SMP http://www.erlang.org/euc/08/euc_smp.pdf
"Measurements from a real telecom product showed a 1.7 speed improvement between a single and a dual core system.
It should be noted that it took only about a week to port the telecom system to a new OTP release with SMP support, to a new Linux distribution and to a new incompatible CPU architecture, the Erlang code was not even recompiled.
It took a little longer to get the telecom system in product status, a few minor changeswas needed in the Erlang code because Erlang processes now can run truly parallel which changes the timing and ordering of events which the old application code did not count for."
Besides the awful grammar, QED. I rest my case: Erlang, and not just Erlang OTP, is concurrent (think of it this way: spawn_link() isn't restricted to OTP). I think it's quite clear Erlang is also a functional language. Please refute with references.
FTFY.
Why do sites require Javascript to show any content at all? What's the web coming to?
http://www.androidpolice.com/2011/01/27/android-team-acknowl...
Android tablets are only going on sale on Amazon.co.uk start of June. Want to know why I'm unable to make tablet apps? This.
Ask yourself a question - how did a unusable emulator manage to make it past the Android team's QA process? If that's how incompetent they are...well, I'm shaking my head.
At some point obscurity stops being cool. I think I reached this point just before I left high school.
It still surprises me that so many sites fail to clearly articulate a) what they do, and b) why I should be interesting in what they do. IMO it smacks of egocentrism and arrogance.
I use Google Reader, through which I have 222 subscriptions and have read 11,321 items in 30 days; I mostly skim through most summaries and articles and read maybe 1 in 20-50. I bookmark particularly interesting articles in my Delicious account and then try to re-read them within a week to see if I a) still find them interesting, and b) whether new perspectives and thoughts crop up about the themes of the article.
If you're curious you can get the OPML export of my Google Reader subscriptions here: https://gist.github.com/970230
My daily reading routine is:
- Guardian's international articles (guardian.co.uk/world)
- International Herald Tribune (iht.com)
- Techmeme (techmeme.com)
- Skim the first page of HN
- Skim the newest articles on Metafilter and AskMefi.
- Flick through all my Google Reader items throughout the day.
You don't explcitly mention this but I also voraciously read books, at a rate of about two every month. Right now I'm going through a serious counterinsurgency phase.
I look forward to seeing it when it's up!
To me, cracking implies breaking through a barrier intended to be opaque. Hence, Ross Anderson's paper on an attack on the hardware security modules in ATM machines to brute force a PIN for a given account in less than the full PIN space is, truly, an example of cracking:
However, the real issue is whether your phone can share such information _without your explicit permission_. This is _not possible on the Android_.
http://stackoverflow.com/questions/2322234/how-to-find-seria...
You need to have android.permission.READ_PHONE_STATE permissions in order to get the unique identifier, hence users, before installing an application, will be able to determine whether their particular application is capable of doing so.
However, some aspects of the recipe book should be task oriented:
- Web server hosting static files using the standard inets server, and 3rd party libraries like webmachine, nitrogen, and yaws. - How to log - How to enable tracing
etc.
http://ask.metafilter.com/71101/What-single-book-is-the-best...
http://ask.metafilter.com/52701/Philosophy-readings
http://ask.metafilter.com/26408/crash-course-in-modern-philo...
Overwhelmingly, with my approval, many suggest reading "The Problems of Philosophy" by Bertrand Russell. It's one of the most accessible and thought provoking books on philosophy I've read. This has already been suggested by someone in this thread with a link to the book (http://www.ditext.com/russell/russell.html).
Everyone loves a cheeky API.
What's a shame is that right now there isn't a web-based GUI for this service yet, and the boto Python module's IAM support is currently undocumented, but at least the code is there. A bit of code reading to get it up and running.
https://secure.wikimedia.org/wikipedia/en/wiki/START_I
"365 B-52Gs were flown to the Aerospace Maintenance and Regeneration Center at Davis-Monthan Air Force Base in Arizona. The bombers were stripped of all usable parts, then chopped into five pieces by a 13,000-pound steel blade dropped from a crane. The guillotine sliced four times on each plane, severing the wings and leaving the fuselage in three pieces. The ruined B-52s remained in place for three months so that Russian satellites could confirm that the bombers had been destroyed, after which they were sold for scrap."
http://gcc.gnu.org/onlinedocs/libstdc++/manual/profile_mode....
The work is published under an application called "Perflint". Here's a link to the PDF for the paper:
http://0-portal.acm.org.millennium.lib.cyut.edu.tw/ft_gatewa...
"Abstract—We present perflint, a new industrial strength open source analysis tool that identifies suboptimal use patterns of the C++ standard library. Simply by recompiling and running on a representative input set, programmers receive context sensitive performance advice on their use of standard library data structures and algorithms. Our solution consists of collecting traces of relevant library operations and state during program execution, and then recognizing patterns for which there is a faster alternative, based on a model made of performance guarantees in the C++ language standard and machine knowledge. perflint has already found hundreds of suboptimal patterns in a set of large C++ benchmarks. In one case, following the advice and changing one line of code resulted in 17% program run time reduction."
Yes, multi-region availability on AWS is hideously expensive. However, some organisations value an availability of greater than 99.95% enough to warrant such a multi-region deployment. Clearly reddit, and many, many other AWS users, do not. This isn't a value call on my part; I definitely couldn't afford the inter-region data transfer costs, all I know is that AWS offers you the tools to deploy high availability web services.