Similar Posts
How to make thunderbird not wrap lines automatically?
How to make thunderbird not wrap lines automatically? Check Making Thunderbird Not Wrap Lines Automatically: Setting mail.compose.wrap_to_window_width to true. Read more: Making Thunderbird Not Wrap Long Lines Automatically How to Wrap and NOT Wrap Lines in vim Making Evolution Not Wrap Lines in Composed Emails How to wrap long lines in a text file on…
Notes for Beginners of Software Development on Linux
Linux is a great platform for software development targeting servers or backends. In general, working on Linux is very productive. The problem that beginners on Linux face is the the learning curve is steep at the beginning. But believe me, after you get through the initial green steep learning step as in the figure below…
How to email admins automatically after a Linux server starts?
Managing a cluster of servers, I would like to notified when a server is started. How to make the Linux servers email me or other admins automatically after they are started? I did this by adding a crontab entry on each servers like @reboot date | mailx -S smtp=smtp://smtp.example.com -s “`hostname` started” -r zma@example.com zma@example.com…
Subversion: How to revert my changes in my local copy of the repository?
I made some changes in my local copy of the svn repository. I have not committed and updated the server yet. Now I want to discard my updates. How to revert my changes in my local copy of the repository? To discard current updates, run this in the root directory of the repository: svn revert…
How to run gitbook on a headless server (make Calibre run in headless server)?
When use gitbook to generate ebook, Calibre reports this: RuntimeError: X server required. If you are running on a headless machine, use xvfb After xvfb is installed, it does not work either. How to make gitbook/Calibre work on a headless server? You need to wrap the command ebook-convert with xvfb-run. However, in gitbook (lib/generate/ebook/index.js), ebook-convert…
scanf is dangerous, but what is the reason?
We all know scanf / fscanf / sscanf is dangerous. But why? what is the exact reason? I thought the ‘%s’ is a problem that causes buffer overflow and ‘fgets’ is a better solution. But is it the exact reason? I pased a discussion by AndreyT and his discussion helps me figure it out: Claiming…