Why Lambda?

Thankful Monster explains something I didn’t know. Very interesting.

Posted in Programming | Tagged , , , | Comments Off on Why Lambda?

New Stuff in Emacs 24.4

Xah Lee has a nice post on some of the smaller additions to Emacs 24.4. Unless you like reading through NEWS files, this is a quick and easy way to find some nifty new features.

I found a couple of things that significantly reduced my workload in working with the Irreal .htaccess file. I have a script that pulls down the connection log from the hosting provider and calculates how many times each IP has tried to post a comment. Any IP that tried more than 20 times a day gets added to the deny list in the .htaccess file.

Two operations in this process are made considerably easier with the new features in Emacs 24.4. Part of the pipeline that generates the report that gets mailed to me each day, calls uniq -c which generates lines like

132 192.168.1.1

where the 132 is the number of times the IP tried to post a comment. The first thing I need to do is cut the counts from the file so that only the IPs remain. With Emacs 24.4, we have rectangle-mark-mode, which is bound to 【Ctrl+x Space】 for easy use. With it, it’s easy to mark the counts and delete them.

The next thing I do is append the new IPs to the end of the .htaccess file and then use a keyboard macro to add a “Deny from” to the beginning of each IP. For technical reasons the calculations are based on the log from two days ago so the new IPs can already be in the list and I needed to remove duplicates. I handled this by sorting the list and then piping it to uniq with 【Ctrl+u Meta+|】. That worked well but with Emacs 24.4 I can simply call delete-duplicate-lines without bothering with the sorting or using an external process.

Take a look at Lee’s post. Like me, you’re apt to find something to makes your life a little bit easier.

Posted in General | Tagged | Comments Off on New Stuff in Emacs 24.4

EWW

Gabriel Chavez notes that EWW has, in a sense, completed Emacs:

Not everyone, though, is impressed:

Posted in General | Tagged | Comments Off on EWW

A Wish List for Emacs 25

Artur Malabarba has a nuanced list of things he’d like to see in Emacs 25. While most of us are still getting used to Emacs 24.4, Malabarba has thought carefully about what Emacs needs to move forward.

I’m sure most of us will be on board with his suggestions. He wants name spaces, concurrency, dynamic library loading, a better customization interface, and an enhanced package menu. He explains why each of these things is critical for Emacs and why they will help Emacs move ahead.

As his fans know, Malabarba mostly writes short posts that illustrate some point of Emacs arcana or provides a bit of Elisp to performs a useful function. This post is longer than normal and has a slightly different focus but it’s well worth taking a look at. As I said, I’m sure you’ll be in agreement with most if not all of his points.

Posted in General | Tagged | Comments Off on A Wish List for Emacs 25

The Two Programmer States

I know the feeling.

Posted in Programming | Tagged | Comments Off on The Two Programmer States

Keyboard Macros Video

I’ve written before about the excellent videos that Emacs NYC produces from their monthly meetings where one of the members gives a talk on some aspect of Emacs. This month, Jacob O’Donnell gives a nice talk on keyboard macros. It’s easiest to view it on YouTube.

As O’Donnell says, there’s not a lot to know about keyboard macros but there are some lessor known corners that can be very useful, such as editing, saving, or naming them. This talk is an excellent introduction that will tell you everything you will probably ever need to know.

Here at Irreal, we sometimes run EmacsGolf challenges and very often the best solutions make use of a keyboard macro. Tim Visher also used them in several of his EmacsGolf videos and I often use them for some repetitive one-off editing job that it’s not worth writing Elisp for. Keyboard macros should be in every Emacser’s toolkit. Usually all you need to remember are the【F3】 and【F4】 keys. For more complex tasks, help is just a【Ctrl+h i】away. I have the keyboard macro Info documentation bookmarked for easy access.

Posted in General | Tagged | Comments Off on Keyboard Macros Video

SBCL 1.2.5 is Available

When I set up my new machine, manfredII, I just copied the then current SBCL’s directory from my iMac, aineko, to manfredII and reinstalled the already built binary on the machine. This got me past not having a Lisp compiler available for the initial install.

SBCL 1.2.5 is the first version I’ve built completely on manfredII or under OS X Yosemite for that matters. As always it compiled and passed the tests without problem. I just wish that every software system was as easy to install and maintain.

This month, the development team added support for IPv6 and a module to help with handling Unicode. There was the usual bug fixes as well, although most of those bugs were not something you’d be apt to stumble across.

Let me repeat what I say every month: If you’re looking for a great Common Lisp system to learn from or to use for production, SBCL is an excellent choice.

Posted in Programming | Tagged , | Comments Off on SBCL 1.2.5 is Available

A Highbrow Explanation of Why MS Word is Terrible

Regular readers know that I have a profound dislike of word processors and especially of Word. I consider it the apotheosis of broken and user-hostile software. To me, Emacs and Org Mode are so far superior that Word would not bear consideration. Even for those situations where someone requires a Doc file, there are a couple of solutions for converting Org to Word (or at least ODT).

Lots of people feel that way, of course, but Edward Mendelson, a professor of humanities at Columbia explains it in a humanities scholar’s way. Word, he says, is a Platonic ideal. Beautiful in its consistency but completely superfluous in the real world. Read the article to see exactly what that means.

He compares Word to the older WordPerfect and finds that WordPerfect, despite not having the elegance of Word, is a much better tool for writing. Sadly, Mendelson, like many of us nerds, is forced to use Word because that’s what the journals demand.

This is a great article and very enjoyable to read. It may give you an understanding of what about Word is so annoying.

Posted in General | Tagged , | Comments Off on A Highbrow Explanation of Why MS Word is Terrible

Abusing the Patriot Act

Remember how I told you that law enforcement will always abuse surveillance powers? Here’s the latest proof. Despite the solemn promises, less than 1% of sneak-and-peek warrants are actually for terrorism investigations.

Posted in General | Tagged | Comments Off on Abusing the Patriot Act

New MELPA URL

If you’re a MELPA user you might have heard that the URL for the site has changed. It’s easy to miss the significance of that for your Emacs configuration though. You have to change the package-archives list to reflect the new URL. That is, you have to change

(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/"))

to

(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/"))

The old address is still working (it redirects to http://melpa.org) but you should change your configuration before it stops working.

Posted in General | Tagged | Comments Off on New MELPA URL