When I started my formal education in computer science, I had to take a module on programming with the C language. I remember this was a module that caused many of my peers to re-think their decision to study computer engineering; the concept of pointers was so foreign to many of them that even the smart ones scored poorly.
Here’s the command this article is talking about:
openssl x509 -in proxy.cer -inform der -outform pem -out proxy.crt
This command basically converts a binary certificate into a base64-encoded one (i.e. text).
An article I recently read talks about how to hire the right people. The TL;DR of it is a list of 7 C’s (we all love lists right?):
As a Web developer, I sometimes find a need to download some huge JSON object into a text file.
Then highlight the output from the developer console and press Ctrl-C to copy. The trouble comes in when the object is huge - to the tune of thousands of properties.
When an object gets to that size, you will need to scroll to be able to select the complete output. Scrolling the console is itself a tiresome task with text that small. Moreover you run the risk of “over scrolling” such that you select two objects rather than one because you can’t tell the difference when they are simply chunks of text.
The best solution is to download the JSON as a text file and then use/manipulate the JSON from the file.
The way to do this is to create a function like this:
One of the problems with working on Linux and Windows OSes has to do with manipulating text files. Lines are separated by a carriage return and a line break character in text files on Windows, whereas on Linux, they separation is done through a single line break character.
When text files from Windows are opened in Linux, you often see
appearing at the end of lines like this:
Line 1^M Line 2^M
The easiest way to remove the carriage return characters
^M) is to use the
dos2unix command. This
lightweight program can be easily obtained on Debian-based systems
with the command:
sudo apt-get install dos2unix
Other than using the
dos2unix command, the fastest way to remove
the carriage return characters is the following command:
cat file1.txt | tr -d '\r' > file2.txt
I love programming. I really do. To me, writing a program is an act of creation akin to giving new life. In the right hands, lines and lines of code come together like magic that gives purpose to their existence. Part of the journey of writing programs involves learning new technologies (languages, frameworks, techniques, etc.). This usually involves a lot of reading Web articles, blogs, newsletter subscriptions, and tech magazines.
But as I step into another phase of life (goodbye bachelorhood (;_;) I find that I can spare less and less time doing all of these.