Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-17-2013, 11:46 PM
|
#16
|
|
LQ Newbie
Registered: May 2009
Distribution: Debian, Ubuntu
Posts: 10
Rep:
|
Quote:
Originally Posted by curious95
Thank you, i've understood what to do  Sorry laho guess i thought binary addition would be 'harder' than that.
|
No prob. That's why computers use it because it's easy to do.
|
|
|
|
01-17-2013, 11:50 PM
|
#17
|
|
Member
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83
Original Poster
Rep: 
|
Good idea will check it out.
|
|
|
|
01-20-2013, 03:37 PM
|
#18
|
|
Senior Member
Registered: May 2005
Posts: 4,420
|
Quote:
Originally Posted by curious95
How do i add two four bit numbers, what are the steps required to do so?
|
Start from here: https://en.wikipedia.org/wiki/Positional_notation .
Modern world appears to be completely dumbed down - we were taught the above at school, before age of 17.
|
|
|
|
01-20-2013, 03:39 PM
|
#19
|
|
Senior Member
Registered: May 2005
Posts: 4,420
|
Quote:
Originally Posted by laho
No prob. That's why computers use it because it's easy to do.
|
No.
Computers don't care - they are not humans.
|
|
|
|
01-20-2013, 05:22 PM
|
#20
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 3,832
|
Quote:
Originally Posted by Sergei Steshenko
|
This is severely OT, but the description of number systems reminded me of former employer I worked for. The owner of that company was a genius, but also of a bit a nerd as happens so often with smart people. Our workstations were W 3.11, but for the servers etc he insisted on Solaris. This was 1992, so Linux was not really widespread.
He insisted on a standard file name convention, wich was FILENAME.YMD. 8.3 filenames only, remember? So to write YMD, we used that last digit of the year, the month in base-12, and the day in base-31. Base-31 is not difficult, just continue to use alphanumerics after F... After some practicing most of us could remember the ordinals of the characters by heart. I have been using this base-31 file extensions for many years after that, until the 8.3 filenames completely disappeared.
jlinkels
|
|
|
|
01-20-2013, 08:48 PM
|
#21
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,732
|
Quote:
Originally Posted by jlinkels
He insisted on a standard file name convention, wich was FILENAME.YMD. 8.3 filenames only, remember? So to write YMD, we used that last digit of the year
|
It is amazing how many programmers still use this incredibly short-sighted practice. Not just single digit years, 2 digit years are nearly as bad. In the next 40 years we are going to be facing a shitstorm of "if (2digityear < 50) then 4digityear=2digityear+2000 else 4digityear=2digityear+1900" breakdowns across the board. Even now, when file name and memory space restrictions are almost non-existent, I still see programmers using this practice all over the place.
It gets me all worked up...sorry about the tangent.
|
|
|
|
01-20-2013, 09:01 PM
|
#22
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 3,832
|
I think you are right about the laziness/shortsightedness of certain programmers, but with 8.3 filenames there was little other choice. Maybe 8.3 was not such a good idea.
jlinkels
|
|
|
|
01-22-2013, 01:37 PM
|
#23
|
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,321
|
Quote:
Originally Posted by sundialsvcs
It's exactly like base 10: 0 + 1 = 1 ... etc[/b] ... 1 + 1 = 1 carry 1.
It does take a bit of getting used two ... 
|
I think that should be 1 + 1 = 0 carry 1.
My inner pedant emerges again. Someone should have noticed that after the old "10 people...." thing came up.
While tempting to bash Microsoft for the whole 8.3 filename thing, I'm fairly sure it was a deliberate choice to be compatible with CP/M.
--- rod.
Last edited by theNbomr; 01-22-2013 at 01:42 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:47 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|