archive-org.com » ORG » I » IRREAL.ORG

Total: 496

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • January | 2015 | Irreal | Page 2
    Comments Listing File Sizes in dired Posted on January 20 2015 by jcs Like many Emacs users I do almost all my file manipulation rm mv cp etc in dired It s just a lot easier to have a listing of the directory in front of you and mark the files you want to Continue reading Posted in General Tagged Emacs Leave a comment A Cross Reference for the Figures in CLHS Posted on January 19 2015 by jcs Jean Philippe Paradis has added a cross reference to the figures in the Common Lisp HyperSpec to his Common Lisp Notes Tips Posted in Programming Tagged Common lisp Lisp Leave a comment Empty Your Cup Posted on January 19 2015 by jcs Some sage advice from Sacha It occurred to me that Empty your cup is good advice to give to people starting to learn Emacs pic twitter com j1OwCyBjC3 Sacha Chua sachac January 13 2015 Posted in General Tagged Emacs Leave a comment Sleepwalking into Tyranny Posted on January 18 2015 by jcs Nic Ferrier has a few words of his own on government snooping This time from a British point of view We appear to be sleep walking into a world where MI5 can constantly watch us If you don t think this Continue reading Posted in General Tagged Privacy Leave a comment Surprise Posted on January 18 2015 by jcs An internal CIA board has found that its officers had done nothing wrong by breaking into the computers of senate staffers who were investigating claims of CIA torture If you re surprised by this you haven t been paying attention The government Continue reading Posted in General Tagged Privacy Leave a comment January Quicklisp Posted on January 17 2015 by jcs The January Quicklisp distribution is out Upgrade

    Original URL path: http://irreal.org/blog/?m=201501&paged=2 (2016-04-25)
    Open archived version from archive


  • Running a Course Video | Irreal
    shows the system from both the students and instructor s point of view I love seeing how people leverage the Lisp Machine aspect of Emacs to solve problems having little to do with editing text If you like it too be sure to check out the video It s only six and a half minutes to you won t have to schedule time This entry was posted in General and tagged Emacs Org mode Bookmark the permalink A Nice Org Mode Tip Deanonymizing Metadata Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November

    Original URL path: http://irreal.org/blog/?p=3642 (2016-04-25)
    Open archived version from archive

  • A Nice Org Mode Tip | Irreal
    M h then C c C e h o export as HTML open in browser Robin Green fatlimey January 19 2015 This entry was posted in General and tagged Emacs Org mode Bookmark the permalink Refactoring Multiple Files Running a Course Video Grant Rettke org export dispatch is a gem of a function Import more libraries more features show right up Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013

    Original URL path: http://irreal.org/blog/?p=3640 (2016-04-25)
    Open archived version from archive

  • Refactoring Multiple Files | Irreal
    in every file in a directory There are multiple subdirectories How would you do this I can think of several ways mostly including dired and perhaps keyboard macros Abo abo has another approach His steps are Call rgrep to get a list of every occurrence of the function name Call wgrep so that you can edit the rgrep output and have the results reflected in the original files Call iedit to change every instance of the function name at once Quit iedit Quit wgrep writing the changes back to the files See abo abo s post for the details This is a really outstanding post and I encourage everyone to take a look I hadn t been using iedit or wgrep but installed them so that I could take advantage of abo abo s technique I ve long been a multple cursors user so I was interested in abo abo s use cases for iedit versus multiple cursors and queried him on it You can read his answer here One thing that struck me is that he described iedit as a drop in occur and query and replace You can see how that works with his refactoring process Most excellent This entry was posted in General and tagged Emacs Bookmark the permalink Rewriting and Squashing Git Commits with Magit A Nice Org Mode Tip Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters

    Original URL path: http://irreal.org/blog/?p=3638 (2016-04-25)
    Open archived version from archive

  • Rewriting and Squashing Git Commits with Magit | Irreal
    it As a result I m always on the lookout for Magit tutorials that help me get better at using it My latest find is a post by Shingo Fukuyama on using Magit to rewrite git commit messages Fukuyama has lots of screen shots to show you what you ll see as you follow the steps he lays out In the same vein Howard Abrams has a similar tutorial on using Magit to squash commits together The process is very much like the one that Fukuyama describes for rewriting commit messages I really like articles like these they help me extend my Magit knowledge in a relatively painless way This entry was posted in General and tagged Emacs Magit Bookmark the permalink Streams in Common Lisp Refactoring Multiple Files Adam Spiers Those are nice posts but both neglect to an incredibly useful feature of recent versions of magit when you press c for commit you can then press r to reword a commit or s to mark the commit for autosquashing into another commit on the next rebase or f for a similar approach using git s fixup trick Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015

    Original URL path: http://irreal.org/blog/?p=3636 (2016-04-25)
    Open archived version from archive

  • Magit | Irreal
    on Magit 2 x Posted on July 24 2015 by jcs Back before the latest big upgrade Mickey wrote a wonderful article on Magit that I covered here Now Mickey is back with What is new in Magit 2 x He covers the subject in more depth than Nathan Willis short summary Continue reading Posted in General Tagged Emacs Magit Leave a comment Magit 2 1 0 Summary Posted on July 15 2015 by jcs Over at LWN net Nathan Willis has a nice summary of the Magit 2 1 0 features Obviously he doesn t cover all the features or even all the new features but it s worth reading for getting an idea what s in the latest release Continue reading Posted in General Tagged Emacs Magit 2 Comments Magit 2 1 0 Posted on July 3 2015 by jcs I just installed the new version of magit 2 1 0 and even though I ve made only two commits so far I really like the new functionality One of the first things you ll notice is that when you commit a diff is Continue reading Posted in General Tagged Emacs Magit 1 Comment Reverting All Buffers to Branch State Posted on February 18 2015 by jcs Handy A neat way to get all of your buffers reverted to a branch s state is to go to magit and type g emacs Pericles Theodorou PericlesTheo January 30 2015 Posted in General Tagged Emacs Magit Leave a comment Rewriting and Squashing Git Commits with Magit Posted on January 29 2015 by jcs I use Magit all the time and really like it but I don t know how to do much more than stage and commit changes Sometimes I can even resolve a merge conflict but I always have

    Original URL path: http://irreal.org/blog/?tag=magit (2016-04-25)
    Open archived version from archive

  • Streams in Common Lisp | Irreal
    trivially modified to permit it The trouble with the stateful solution as Atabey tells us is that it s use once Even if we hold its head any use of the stream modifies its internal state so that further uses reflect what has already happened These examples are instructive but notice that we must build the list of Fibonacci numbers before we can start the calculations What if That s a pretty big list and will almost surely exceed the memory of most computers What we d like is a lazy list that calculates its elements on the fly That s what streams do Here s a Common Lisp implementation based on the Scheme from Section 3 5 of SICP The real implementation builds memoization into delay but we ignore that for simplicity See SICP s implementation or Atabey s memoization post for details The basic building blocks are given below defmacro delay expr lambda expr defun force delayed object funcall delayed object defmacro cons stream x y cons x delay y defun stream car s car s defun stream cdr s force cdr s The delay macro delays the evaluation of expr by wrapping it in a function The force function evaluates the delayed expression by calling the function that it got wrapped in The cons stream builds a cons from and but arranges to delay the evaluation of The last two functions are direct analogues of their list counterparts but operate on streams instead Notice that we can do without stream car since it merely calls car See SICP for further explanation Now we can build some infinite lists streams Suppose we want an infinite list of integers Here it is defun integers optional n 1 cons stream n integers 1 n The first time it s called integers returns 1 lambda integers 1 n where and is held in integers closure When stream cdr is called on this the call to integers will be evaluated and return 2 lambda integers 1 n with Thus the physical stream is just a single cons but it acts as an infinite list of integers Let s take the square root of the first integers First we define a function to take the square root of the first elements of a stream defun sq roots of stream n s when n 0 print sqrt stream car s sq roots of stream 1 n stream cdr s and then pass it a steam of integers sq roots of stream 10 integers 1 0 1 4142135 1 7320508 2 0 2 236068 2 4494898 2 6457512 2 828427 3 0 3 1622777 Notice that the list of integers is not calculated in advance Here s the solution to our original problem First a stream of Fibonacci numubers defun fibs optional a 0 b 1 cons stream a fibs b a b and then we reuse sq roots of stream to calculate the results sq roots of stream 10 fibs 0 0 1 0

    Original URL path: http://irreal.org/blog/?p=3632 (2016-04-25)
    Open archived version from archive

  • Scheme | Irreal
    Programming Tagged Lisp Scheme SICP Leave a comment Nanopass Compilers Posted on February 13 2014 by jcs For the 2013 Clojure Conj Andy Keep gave a great talk on nanopass compilers The idea is that rather than having the normal 2 3 or 4 passes in a compiler you have several passes each of which does one Continue reading Posted in Programming Tagged Lisp Scheme Leave a comment Why Python Replaced Scheme in MIT s Undergraduate CS Course Posted on December 7 2013 by jcs If you who have spent anytime at all on Irreal you know that I m a huge fan of SICP Structure and Interpretation of Computer Programs the seminal work by Gerry Sussman and Hal Abelson that was used for years in Continue reading Posted in General Tagged Lisp Scheme 2 Comments Interactive SICP Posted on September 4 2013 by jcs Longtime Irreal readers know that I consider Structure and Interpretation of Computer Programs SICP arguably the best computer science book ever written Therefore I was delighted when I discovered an online version of SICP with an embedded Scheme interpreter so Continue reading Posted in Programming Tagged Scheme SICP Leave a comment The Vivid Schemer Posted on February 23 2013 by jcs Recursion always seems to cause beginning CS students trouble One of the very best resources for learning and becoming comfortable with it is The Little Schemer Although the exercises are in Scheme they apply equally well to Common Lisp or Continue reading Posted in Programming Tagged Lisp Scheme Leave a comment Chibi Scheme Posted on October 13 2012 by jcs I just ran across an update announcement for Chibi Scheme a small Scheme intended to be used as an extension language for C programs It supports the small R7RS language and can be configured

    Original URL path: http://irreal.org/blog/?tag=scheme (2016-04-25)
    Open archived version from archive



  •