Posts

Showing posts from December, 2012

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 install this

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 | ||