Computer

Anything relating to computers, including operating systems (i.e. Linux), languages (i.e. C), and hardware

What makes a application executable in Linux?

Applications are collections of executable files, shared-object files (DLLs in Windows-speak) and data files. In Windows, the file name is the indication; if the filename ends with one of a number of character patterns (.COM, .EXE, .DLL, .SCR, etc.), the Windows kernel will load and execute the file.

What is my IP address?

I have had need, on occasion, to determine the IP address assigned to my PPP connection by my ISP, but have been reluctant to code the usually complex scripts nececssary to extract this information from the results of the 'ifconfig' command.

Linux Clue: What are "hard links" and "soft links"?

Q: Can someone give me a simple explanation of the difference between a soft link and a hard link? The documentation I've read mention these links but make no strong explanations of their meaning and how/when to use them. Thanks!

A: OK, I'll give it a try...

The Basics

Unix files consist of two parts: the data part and the filename part.

Finding the number of digits in N!

A quick bit of code to find the number of digits in N!

The number of digits in a number X = CEILING[log(X)]
and N! = (N * N-1 * N-2 ... * 1)
Thus, the number of digits in N! = CEILING[log(N!)]

Word counting using a binary tree dictionary

Introduction

In "The C Programming Language", the authors present an example program that counts unique words in a text. Such a program needs to maintain a list of every unique word encountered, and for each word, an associated count of the number of occurrences.