LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs > Bits and Pixels
User Name
Password

Notices

Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
Uncategorized Entries with no category
Old

Two handy manual pages from the LPM

Posted 02-24-2012 at 04:46 PM by hydraMax (Bits and Pixels)
Updated 02-24-2012 at 04:47 PM by hydraMax

One of the downsides to living in the age of the search engine is that many of us do not know how to find documentation in the place it is supposed to be. Sometimes, we waste much time and bandwidth trying to find information that is available locally. Two such examples from my own experience are listed below:

1) OPERATOR(7). I can't count the number of times I have done a Google search trying to remember if a '&&' had higher precedence than a '||', or some similar question....
Member
Posted in Uncategorized
Views 222 Comments 0 hydraMax is offline
Old

First program in x86_64 assembly!

Posted 02-23-2012 at 12:38 PM by hydraMax (Bits and Pixels)

I wrote my first program in x86_64 assembly, learning from the AMD and GAS manuals. It is a text-based implementation of the old sliding puzzle game Fifteen:

https://frigidcode.com/code/fifteen/

Requires GCC to compile and a 64-bit OS to run.
Member
Posted in Uncategorized
Views 319 Comments 0 hydraMax is offline
Old

Thanks, Sonny Bono

Posted 02-07-2012 at 01:56 PM by hydraMax (Bits and Pixels)

Interestingly,the Copyright Term Extension Act of 1998 (also termed the "Mickey Mouse Protection Act") which extended copyright by 20 years, was named after Sonny Bono:

Sonny Bono Copyright Term Extension Act

He didn't actually get the bill passed, but it was named in memory of him. Reportedly, it was his opinion that copyright should last forever. But the CTEA bill compromised with a "mere" twenty year extension.

Sigh... just imagine...
Member
Posted in Uncategorized
Views 231 Comments 0 hydraMax is offline
Old

Keep a "secret" file open

Posted 02-05-2012 at 11:13 PM by hydraMax (Bits and Pixels)

There is an interesting thing about the way file deletion works in POSIX systems like Linux: When you call a command like "rm" on a file, ultimately you are calling the unlink() function on that file. the unlink() function does indeed remove the file name from the file system; however, the actual file itself is not removed from the file system until the last open file descriptor to that file is closed. (see UNLINK(2))

This means that, effectively, you can keep any file you...
Member
Posted in Uncategorized
Views 254 Comments 0 hydraMax is offline
Old

Interesting facts about ASCII

Posted 02-03-2012 at 04:59 AM by hydraMax (Bits and Pixels)

Some interesting about ASCII, when it is represented as bytes in a binary system: (taken from Art of Assembly Language):

1) All alphabetic characters in standard ASCII can be converted to lowercase or uppercase simply by toggling the fifth bit (the first bit is bit zero). E.g.:

Code:
E = 01000101
e = 01100101
2) you can obtain the numeric equivalent of any of the numeric characters by subtracting 0x30 from the ASCII value.

3) Bits five...
Member
Posted in Uncategorized
Views 471 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 06:50 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration