Similar Posts
Generating a Pair of RSA Private and Public Keys in Linux using OpenSSL
ByQ ARSA (Rivest–Shamir–Adleman) is a widely used public-key cryptosystem that is used for secure communication over the internet. In this post, we will explore how to generate a pair of RSA private and public keys in Linux using the OpenSSL library. Generating a pair of RSA private and public keys in Linux using OpenSSL is a…
MFC中屏蔽ESC和回车关闭对话框
ByEric Ma解决方法是在CDialog::PreTranslateMessage() 的重载函数中将ESC和回车按键的消息处理掉. 直接上代码: BOOL CResultCollectorDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_KEYDOWN) { switch(pMsg->wParam) { case VK_RETURN: //回车 return TRUE; case VK_ESCAPE: //ESC return TRUE; } } return CDialog::PreTranslateMessage(pMsg); } Read more: MFC程序使用系统风格界面 Send Messages to Other Windows Using Win32 API 禁止对话框关闭按钮和Alt+F4 使用MFC在一对话框中嵌入另一对话框 一个非常优秀的MFC Grid控件 Win32 Programming: Operation on Files Parameterised AngularJS Routing in Asp.net MVC using…
How to use the xargs argument twice in the command on Linux?
ByEric Ma`xargs` passes the argument once to the utility command specified. For example, xargs cat will cat every line passed to xargs. But how to use the xargs argument twice in the command on Linux? For example, to rename file to file.bak where file is from the stdin. One solution is to write a small script like…
How to detach a docker container to be a running daemon?
ByQ AIf I quite a docker instanced (invoking /bin/bash) by Ctrl+d, the docker container is closed. How to detach a docker container to be a running daemon without closing it? Docker has a detach sequence, which, by default, is Ctrl-p + Ctrl-q. If the docker detach sequence is overridden by the –detach-keys=”<sequence>” flag, you need to…
How to change the default text editor on Linux
ByEric MaOn Linux, a default editor is used for text editing such as crontab -e or git commit. How to change it to the editor of my own choice? The default editor is indicated by the EDITOR environment variable. You can set this environment variable to set the default editor. For example, set it to emacs…
How To Debug Linux Kernel With Less Efforts
Introduction In general, if we want to debug Linux Kernel, there are lots of tools such as Linux Perf, Kprobe, BCC, Ktap, etc, and we can also write kernel modules, proc subsystems or system calls for some specific debugging aims. However, if we have to instrument kernel to achieve our goals, usually we would not…
