Posts

Install JDEE in emac

Install JDEE in emacs Table of Contents 1 JDEE Introduction 2 Some Troubles Met during Instillation 3 I have a word to say 1 JDEE Introduction I want to configure my java develop an environment of my emacs. And It seems that JDEE is a recommended option. Some one even uses JDEE as full features of IDE for java, that's sounds exciting right. So I decide to use JDEE. According to emacs wiki's advise, I use the latest source code from svn repository, But I met some trouble in the installation. The following section will figure out the solution. 2 Some Troubles Met during Instillation compile JDEE      # Download JDEE from svn first # use the source code in the main trunk svn co https://jdee.svn.sourceforge.net/svnroot/jdee jdee Then use ant to compile the source code, I met the error prompted by:   ## Could not load definitions from resource net/sf/antcontrib/antlib.xml That's because of lack of ant-contrib package, So I i...

OpenSSL ToolKit Usage

Image
OpenSSL Toolkit Usage OpenSSL is a great project, which provide a excellent implement of SSL and TLS protocol, and also a great toolkit which can do many of kinds of job related with cryptography field. There is a Great tutorial of openssl command toolkit: openssl introduction . This article has also some extension based above introduction. And this article  collect some the uses of openssl command, which I already tested in linux environment. Table of Contents 1 Use openssl as a encryption and decryption tool 1.1 symmetric cipher algorithms 1.2 asymmetric cipher algorithm (public key algorithm) 2 Create a signature of a file 3 verify certificate authority (CA) by command line 4 How to retrieve some web site's certificate by command line? 5 openssl's system path to store CA. 6 build your own CA step by step 7 X509 PKCS#12 PKCS#8 1 Use openssl as a encryption and decryption tool There are some kinds of classification methods of encryption alg...

Network programming in elisp

  Network API in elisp Table of Contents 1 Introduction 2 A example 3 Http server implemented by elisp 1 Introduction Emacs is not just an editor, Yes, that's true. Emacs lisp can do network connection programming by its network API. But there is something difference with other kinds of programming language. First, elisp do not support multi-thread, pretty cool, huh!! Yeh, Multi-threads programming is a horrible venture for you, right! Second, There is no socket similarly conception in elisp, and elisp provide network programming ability as processes. Elisp can open a network connection by function – open-network-stream .  It can make network connection server listen a special port by function - make-network-process . Both of those function return a process object. Then you can communicate with the process by process's API. 2 A example I write a snippet code to figure out How to use it. ( require ' cl ) ( defvar my-network-client-b...

A magic trick to make cool email signature

Image
A magic trick to make cool email signature Table of Contents 1 where's the idea come from? 2 how to use it? 1 where's the idea come from? I hang out in the #emacs IRC channel in freenode one day, and some guy show some funny trick that can always make some fun: fortune | cowsay Every time I execute this command, the output always let me LOL. _______________________________________ / Atherton: "You set this up, whore! \ | After I bought and paid for you. I | | should have uglied you up so no one | | else would want you." | | | | Mal: "See how I'm not punching him? I | | think I've grown." | | | \ --Episode #4, "Shindig" / --------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ...

Literate programming in org-mode

Image
Table of Contents 1 Literate programming 2 org-babel 1 Literate programming Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. — Donald Knuth (author of the art of computer programming) This is a revolutionary opinion in software history, Knuth even has his own literate programming language named the web(not the same thing with internet web). He used cweb tools to write most of his source code which can be found on his webpage. Literate programming is actually a software development method, which combines documenting and programming process into one job. In that way, the document and source code are tangled. The source code developed by programmers is also the document for that. There are some examples of this programming style. Some technique books like C Interfaces and Implementations was write in this way, the source code of the examples in this ...

some tips for how to write a emacs lisp package -- elisp's loading mechanisms

1. elisp's loading mechanisms In order to learn how to write an elisp package, you must be familiar with some ways of how to load your package to emacs. That means developers need to master following functions. Some of them puzzled me at  the past. Functions: load-file, load, require, autoload Following hyperlinks webpage removes my confusion, and give a good explanation of elisp's loading  mechanisms. http://ergoemacs.org/emacs/elisp_library_system.html?1352689199 Function Name Purpose Tech Detail Comment load-file Load a file. Load one specific file. Use this if you have one very SPECIFIC file at one particular file path. load Load a file. Load a file by searching thru var “load-path”. Also, tries to load a compiled version (.elc) if exists. Use this if the path for the file is not known in advance, and you are using a file name without full paths, such as “undo” or “undo.el”, and you want to load the compiled version if it exists (undo.elc). require Load a...

auto-complete mode in emacs

Emacs as an IDE works well with all kinds of the environment (C lisp elisp slime java python). But his auto-complete plugins sucks. I use hippie-expand before I met auto-complete. Auto-complete was the best auto-complete package in the present moment. This package is so simple that can be a tutorial on how to write a minor-mode package. And the users also easy to configure or modify it according to their needs. after a search in google, I add a package to use auto-complete in slime environment to develop a common lisp. Also, add a package to Let it search ac-source from etags files. I upload modified package into google drive: https://docs.google.com/open?id=0B5yiz3j-W7mca3VtYUpWTTl1VDg Install tutorial: 1. copy *.el to a directory like (~/.emacs.d/auto-complete/) 2. copy dict directory to a directiory like (~/.emacs.d/auto-complete/dict) change symbol ac-dictionary-directories according dict directory (add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-com...