This lesson will show you how to install Git on your machine, create a basic GitHub repository, and configure our server to connect to GitHub with SSH. This will allow us to transfer files to and from the repository securely.
Archives For Anthony James
The grep command allows searching the contents of a file from the
command line. It’s a very useful tool to find a particular line in,
say, a log file or a conf file. And because it’s a command line
program, you can combine it with other commands in various ways to
produce powerful results. In this tutorial, you will learn both the
basics and some more advanced applications of grep.
This is a collection of some of the basic VI commands and shortcuts for newbies. You’ll find yourself needing this if you are coding or scripting inside of the unix/linux command line using VI.
Command Mode: Accepts commands, which are usually in the form of individual letters. Example, a and i.
You can use h, j, k and I to navigate in similar ways as the up and down arrow. Not needed if you have an up and down arrow on your keyboard.
Yank – Term used to copy files. Use YY to yank text. Navigate to the line you wish to yank and type yy make sure you are in command mode.
2yy will yank 2 lines, 4yy will yank 4 lines. Precede the YY command with the number of lines you would like to yank.
If you’re familiar with Amazon Web Services, then you know that it is supposed to have enough redundancy at Amazon’s data centers to protect against such an issue. Still it’s possible, as we’ve seen, for Amazon Web Services to have an unavoidable outage. Here’s a few simple methods to hedge against these outages.
Most of you will be happy with starting out making 2D games, others would want to jump right in to 3D. How about both!? Unlike many tutorials involving SDL out there, we’re going to go directly into drawing textured quads on the screen. You won’t actually need to know 3D graphics quite yet to do this, but we will technically be working in 3 dimensions. Modern 2D engines are simply textured quads with shader effects here and there, the old idea of “blitting” or bitmap image transfer is obsolete. Interfaces such as DirectDraw are relics of the past, everything has been generalized into simply DirectX/OpenGL. Don’t worry, OpenGL is extremly easy to use when compared to DirectX and OpenGL is the thing for Linux games.
This article tells about FLAC: what is it, why use it and how to use it?
Note: in this article, you will encounter both FLAC and flac. The uppercase version is used to refer to the format, the lowercase version is used to refer to a flac file and the flac command.
As you might have guessed from the title of this article, FLAC is an abbreviation of Free Lossless Audio Codec. The first word (“free”) should be pretty clear (it’s an open-source project), but what is a “lossless audio codec”? Well, the well-known MP3 format is an audio codec. It is used to compress raw audio data. MP3 is a so-called “lossy” codec, meaning that, for example, if you would convert a wav file to an mp3, and then convert the mp3 file back to wav, you won’t end up with the same audio data. MP3 reduces the quality of the audio while encoding. On the other hand, FLAC is “lossless”. If you would convert a wav file to a flac, and then convert the flac file back to wav, you will end up with exactly the same wav file. Nevertheless, a flac file is a lot smaller than a wav file.
I recently discovered a very useful tool: xrandr. This command allows you to reset your screen resolution, which comes in very handy when some buggy app changes you screen resolution and doesn’t set it back. It saves logging out and in again or even having to use Ctrl + Alt + Backspace!
The commands diff and patch form a powerful combination. They are widely used to get differences between original files and updated files in such a way that other people who only have the original files can turn them into the updated files with just a single patch file that contains only the differences. This tutorial explains the basics of how to use these great commands.
Difficulty: Medium Continue Reading…
A quick note about Linux: I love it, and I find it very easy to use. However, it isn’t for everyone, and an unfortunately large number of Linux users aren’t the best ambassadors for the OS. Just ignore the holy wars about … um … well, everything, and don’t engage someone who wants to scream about how you can recompile modules yourself and you’re stupid if you don’t. Yeah, it’s awesome that you can modify your installation however you want … but the vast majority of users don’t want to do that, or care about it. They just want something that works, and I can tell you that — unlike when I started with Linux in the 90s — these days it Just Works. And it is awesome.