Better HN
topnewbestaskshowjobs
Log inSign up

cefstat

220 karma · joined Dec 12, 2010 (15y ago) · 58 submissions

Submissions

comment 11y ago · link · parent

> Well, one of the big advantages of Ireland is that it's the coldest country in Europe [...]

Perhaps you are confusing Ireland with Iceland? (seems improbable since you work in Ireland) Even then, Finland is colder than either of them although its coldest parts are not so easily accessible.

comment 11y ago · link · parent

The main problem in reproducing the study is that it is very vague what counted as a formatting error. It would have been very reasonable to just upload the output from each participant so that the analysis of the results could be reproduced.

But the main problem of the study is not its reproducibility. The main problem is that it is designed in a completely wrong way and it cannot seriously claim to answer the questions it pretends that it answers.

comment 11y ago · link · parent

The following appears verbatim in the "Supporting Material":

> The study was conducted when most of the participants in the Word groups used Word Version 12. Only 3 participants used older versions of Microsoft Word. Newer Versions of Word include a new Equation editor that makes the software even more powerful and easier to use.

The authors of the article are, obviously, completely unbiased.

comment 11y ago · link · parent

About 9 years ago I had a small site where both page content and some large PDF files were stored in the same SQLite database. Nothing extravagant: about 20 pages and 10 PDF files, each PDF file averaging 2-3 MBs. The website was extremely and consistently slow: it would take several seconds to load any page. I eventually figured out that the problem was the binary blobs. After moving the PDF files from the database to the filesystem the load times went below 0.1s.

Since then I have not put large binary blobs in a database but I wonder if I would get reasonable performance by putting them in a _separate_ database instead of mixing them with other small-size rows.

comment 11y ago · link · parent

The page https://www.spacemonkey.com/tour mentions under Linux "Alpha access by request".

comment 12y ago · link · parent

Totally agree. Obscurity will not save you from a targeted attack but the main problem on the internet now is automated break-in attempts. Obscurity can be very helpful there. Of course I can't help noticing that this is the moral equivalent of having your group attacked by a bear and saving your life by out-running everybody else in the group.

37.

Scribbleton: the little personal wiki(scribbleton.com ↗)

4 points · by cefstat · 12y ago · discuss

comment 12y ago · link · parent

There is a patch that supposedly solves this problem. Homebrew applies this patch to Emacs and after I started using this I did not notice any more problems with distnoted. I am not sure if other Emacs builds also apply this patch.

comment 12y ago · link · parent

I agree that there is a lot of bias and ignorance from both sides.

But concerning the example you bring up, I remember having watched the video with the tank stopping and trying to go around the man several years ago (I believe in '89 but I can't be sure). In particular, I don't remember that there was even a period when I thought that the tank went over the man - the video of the tank's attempted maneuver is still very vivid in my memory. On the other hand, I never believed that the people pulling the man away were helping him. I have always assumed that they were arresting him. Of course I could be wrong.

comment 12y ago · link · parent

Moreover, the specific predictions turned out to be wrong: Swift has no garbage collection (ARC is not GC), and is not a completely clean slate but is using the ObjC runtime.

comment 12y ago · link · parent

I would guess that the code tries to get the value for keys that do not exist in the defaultdict. Well, if the key does not exist then it is being added with the default value 'NA'. So in this way you can end up with a huge dictionary where most of the values are just 'NA'.

comment 12y ago · link · parent

I have been bitten by #6 in a similar situation in the past. My solution was the analogue of the rather convoluted

    def create_multipliers():
      def multiplier(i):
        return lambda x: i*x
      return [multiplier(i) for i in range(5)]

    for multiplier in create_multipliers():
      print multiplier(2)
I would still prefer that Python doesn't do this.

comment 12y ago · link · parent

As someone who has moved between continents a little bit too much, a $40 digital no-DRM version would be an instant buy. A $20 dead-tree version is a no-sale.

comment 12y ago · link · parent

Well, it is only now that bitcoin is getting more widespread recognition and traction in traditional media.

comment 12y ago · link · parent

The keyboard looks great in the video. Is version 1.6.3 already on the AppStore? If not, (I only find v1.6.2) is there an ETA?

comment 13y ago · link · parent

Although I understand your motivation, when I see "clone of X in language Y" I think that this is something being hyped only because of the choice of language and not because of the project's actual merits.

In the case of GitBucket the most important advantage is its easy installation, especially when compared to the more well known GitLab (that I never dared install after reading through the installation instructions).

comment 13y ago · link · parent

It happens more and more often that a Google search for some problem sends me to a potentially useful Stsckoverflow question that has been closed for a ridiculous reason. At least, sometimes there are already answers or comments there that turn out being useful.

comment 14y ago · link · parent

I've read about Xeon Phi a few months ago and I really want to get my hands on one. My problems are in the embarrassingly parallelizable class (or almost). Having said that, does anybody know how each Xeon Phi core performs with respect to a modern Intel processor (i7 or Xeon) for standard numerical code (Linpack etc.)?

comment 14y ago · link · parent

One more vacuous story based on nothing but wild speculation.

comment 14y ago · link · parent

Let's rewrite the examples using regular expressions (Python but that's not extremely important):

  import re

  re.match(r"^/(?P<year>.+?)/(?P<month>.+?)/(?P<day>.+?)/(?P<title>.+?)\.html$",
           "/2012/08/12/test.html"
           ).groupdict()

  re.match(r"^(?P<name>.+?) <(?P<email>.+?)> \((?P<url>.+?)\)$",
           "John Doe <john@example.com> (http://example.com)"
           ).groupdict()

  re.match(r"^from (?P<from>.+?) to (?P<to>.+?)$",
           re.sub(r"\s+", " ", "from 4th October  to 10th  October")
           ).groupdict()

  re.match(r"^convert (?P<quantity>.+?) (?P<from_unit>.+?) to (?P<to_unit>.+?)$",
           "Convert 1500 Grams to Kilograms".lower()
           ).groupdict()
This didn't take long to write but even like this I would vastly prefer the proposed syntax of extract-values which I find much easier to remember and to write. So, yes, we can write regular expressions but why should we if for certain simple cases (and the rule is that most cases are simple) there is an easier way to do the same thing?

Think, for example, the built-in support for templates in Python (string.Template). Templates offer nothing that cannot not be done with the standard formatter but they are simpler to use. In a sense this proposal is the dual of templates, as it offers easy parsing for a restricted number of cases. And it definitely doesn't deserve all the negativity.

Having said that, I don't think I would use such facility unless it were part of the standard library. Writing a regular expression now and then is easier (at least for me) than having to keep around an extra library that, even with the help of pip and friends, I would have to re-install every time I change my environment (upgrade Python, setup a new machine etc.).

comment 14y ago · link · parent

Exactly! As Alan Kay said "The best way to predict the future is to invent it".

I don't find it is so important that people like Jobs, Gates, Brin, etc. have sometimes correctly predicted the future. What is important is that they executed, and turned these predictions to reality. Even more. They turned these predictions to everyday reality for most people, instead of a select few.

It annoys me when these people are compared to people who just throw a million ideas around and then, when one of these ideas becomes reality, they claim that they are so good at predicting the future.

comment 14y ago · link · parent

Apparently pre-10.8 the grep program that came with Mac OS X was GNU grep. 10.8 comes with BSD grep.

comment 14y ago · link · parent

Strange. The way I read his article was "Apple was between a rock and a hard place. They chose the hard place because that made more sense for them". He doesn't praise Maps. He describes why he thinks Apple chose to make a less than perfect Maps app, i.e., "made a compromise when ideal options weren't tenable".

comment 14y ago · link · parent

Just one more datapoint. I had an older MacBook with the T-Magsafe and I now have a MacBook Pro with the L-Magsafe. I love the L-Magsafe. With the T type the cable near the connector would fray every year and a half or so. I had it replaced once for free. The second time I had to buy a replacement. Never had a problem with the L type. For me the return to the T type is a regression but I read in this thread that people had fraying problems with the L type. Is it a huge technical challenge to make a laptop charger that will withstand normal wear and tear for at least 3 years?

55.

Open letter on the future of mathematics in UK(guardian.co.uk ↗)

2 points · by cefstat · 15y ago · 2 comments

comment 15y ago · link · parent

I'm the author of simplenote.el. Deft looks very interesting and I am happy that simplenote.el was of some use to Jason for writing Deft. As a sidenote, I am always pleasantly surprised when I hear that people are using simplenote.el; this was just a small personal project that I put on github on a whim.

You should not expect much more to happen with simplenote.el since I don't feel very motivated to work on it anymore. When I first wrote simplenote.el the Simplenote app and platform were perfect. Since then Simplenote has changed to a direction that I don't like (tags, different pay model) [1]. Furthermore, I have been lately traveling a lot to China and Appspot is blocked there. This limits the usefulness of Simplenote.

I do plan to rewrite simplenote.el for Simplenote's API2 and clean up the code but at the moment I don't plan to add any new features. In particular, I don't plan to add any support for tags. Of course everybody is welcome to fork simplenote.el and continue its development.

[1]: I understand that most Simplenote users are happy with these changes and actually Simperium has done a great job in adding features in an unobtrusive way.

comment 15y ago · link · parent

Would it be possible to mention some of these other solutions?

comment 15y ago · link · parent

From https://www.apple.com/macosx/whats-new/features.html#interne...

Internet Restore and Utilities

* Built into Lion: OS X Lion includes a built-in restore partition, allowing you to repair or reinstall OS X without the need for discs.

* Browse the web with Safari: Recovery mode now includes the Safari web browser, so you can check your email or browse the Apple Support site.

* Reinstall OS X: OS X can be reinstalled on your Mac from recovery mode.

* Restore from a Time Machine backup: Use recovery mode to restore your Mac from a Time Machine backup.

12