What is Code: Definition and 958 Discussions

In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communication channel or storage in a storage medium. An early example is an invention of language, which enabled a person, through speech, to communicate what they thought, saw, heard, or felt to others. But speech limits the range of communication to the distance a voice can carry and limits the audience to those present when the speech is uttered. The invention of writing, which converted spoken language into visual symbols, extended the range of communication across space and time.
The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands, such as English or/and Spanish.
One reason for coding is to enable communication in places where ordinary plain language, spoken or written, is difficult or impossible. For example, semaphore, where the configuration of flags held by a signaler or the arms of a semaphore tower encodes parts of the message, typically individual letters, and numbers. Another person standing a great distance away can interpret the flags and reproduce the words sent.

View More On Wikipedia.org
  1. D

    LaTeX Posting Latex Without Source Code

    Whenever I use latex in my posts, I get the source part of it too. I believe we can post without that part appearing in the post. How?
  2. wolram

    What is the proper start position for the Sted-E-Man walker to prevent damage?

    Please can anyone see an error. '############################################################################## 'Start Position: The Sted-E-Man needs a strat sequence to set the legs in the 'correct position. Unless the servo positions are known, the feet could clash 'on first start-up or...
  3. S

    .Creating a Forum or Wiki: Code Overview

    How do you code a forum or a wiki? Is there code available on the Internet to set up a forum or a wiki? Thank you
  4. siddharth

    New Dress Code: A Restriction of Student Freedom?

    Recently, a prominent university in my city, decided to implement a new dress code in 227 engineering colleges. The dress code states that students should not wear jeans, t-shirts, skirts or sleeveless and tight-fitting outfits and enjoins them to dress conservatively. This is because the...
  5. E

    Comp Sci C++ Code: Searching for a specific string

    umm, anyone who could help me write a code wherein, given an input file, it searches for a word inputed by the user, then outputs the result (how many times it appeared in the input file) in an output file. This program also uses 2 command line arguments. The first argument is the word to search...
  6. DaveC426913

    General best practices: commenting code

    When you're commenting your code (and I don't care what language you're writing in), do you comment *before* the subprocedure or *within* the subprocedure? What is the best practice? eg. Comment before: // loop through the following code for i=1 to 10 ---(some code) ---... ---//...
  7. F

    Request for help - math problem using binary code

    Hello I have math question that I am struggling with that apparently can be solved using code (or reasoning - I tried that and mine didn't work. GO figure :confused: ). Can anyone help me out? Here is the question: A coffee club with 8 membres meet every MOnday Wednesday and Friday...
  8. DaveC426913

    Compiling VB.NET Code with Interop_msxml.dll & Gacutil.exe

    If anyone has some experience with the following (even if you're not an expert), I would really appreciate talking to you (I am a novice): Visual Studio.Net Visual Basic.NET adding a reference interop_msxml.dll gacutil.exe Basically, I am trying to compile a bare-bones snippet of code...
  9. ranger

    Coding Differentiation: Need Math Program Help

    Does anyone know where to find or how to code a program that solves differtiation. Just differentiation and nothing esle. No computer algebra system. It doesn't even have to be a functional program, just some code extracts so I can see how the computer evaluates these problems. Langauge = C...
  10. K

    Learn Programming Through Source Code Examples: Tips and Tools

    I am new to programming( I done a quarter on C, but that s it). i had heard that the best way to learn about programming is by reading and understanding other peoples source-code( bill gate) . Are there any website i could go to do just that? Reading other peoples source-code? another...
  11. P

    MATLAB Writing Optimization Code in Matlab - Resource Guide

    OK, here is the situation. I am supposed to write optimization code in Matlab to determine which of two missions an airplane should perform. There are three total, but one of them has been decided on. So I need to determine which of the other two I should do. The problem is that I have...
  12. JamesU

    Be Cautious of 809 Area Code Calls

    We got this email. saying never to dial an (809) area code. it is fake and can scam you out on $2,500 Subject: DON'T EVER DIAL AREA CODE 809, 284 AND 876 THIS IS VERY IMPORTANT INFORMATION PROVIDED TO US BY AT&T. DON'T EVER DIAL AREA CODE 809 This one is being distributed all over...
  13. T

    Doublet Lattice FORTRAN code

    Hello everybody, I need a FORTRAN code (the source code) with the capability to calculate the generalized aerodynamic matrices given the modes of the structure. In particular, I need a code that is able to handle 3D structures made by assembling trapezoidal plate elements. Does anyone...
  14. E

    Have a look at this code snippet - aerodynamics

    Hello everybody This snippet works if you insert 0 as spin around the z -axis, i.e. the angular velocity around the z-axis perpendicular to the x,y-plane (or dot product to linear velocity of the ball). Unfortunately it all comes crashing down when I insert an angular velocity, which in...
  15. Y

    Can the digits of Pi be used to predict the future?

    almost everyone has heard of the Bible code. what about the pi code? predicting the future with the Pi code! infinite digits means all possible combinations, right? if you get bored one day, you can predict the future.
  16. L

    Fortran code for projecting a grid on to a surface

    Does anyone know the fortran code for projecting a grid (cartesian or not) onto a surface? Thnx
  17. C

    Convolution Code and Error Correcting Capability

    Anyone know how to calculate the error correcting capability for a convolution code? My boss basically is giving me pressure to come up some answer by the end of this week... I won't have time to read things deep... My first question is: For a particular convolution code with a rate k/n, is...
  18. A

    Inertia tensors (moment of inertia) code

    inertia tensors (moment of inertia) for a game Hello, physics gurus! I'm trying to write a little 2D game that uses physics for more dynamism. Part of this game involves shapes bouncing around and reacting to forces, each other, etc. Each shape that can interact is a set of one or more...
  19. F

    What is the corresponding UCS2 code?

    i was preparing for my compsci exam doing past papers and encountered a few questions i don't get can someone help me please? The following bytes are encountered in a UTF8 stream. What is the corresponding UCS2 code? (Express your answer in hexadecimal) 23 E8 96 BC C2 8B i don't know...
  20. E

    Reading open source software code

    Hi Ho! ^^v I know that open source software can be reworked by many people. Because of that, it grows rapidly. Frankly, I wonder how people can rework it if they don't have a good technique in reading the source code. When reading Emacs source code, I really confused from where I should...
  21. J

    Understanding the Genetic Code: What is Universality and Redundancy?

    I'm having problems with three terms that are used to describe the genetic code: universality redundancy non-overlapping reading frame 1) Universality: For the most part, I understand. I know that the universality of the code allows for the limited exchange of genetic information among...
  22. R

    MATLAB Solving a Wire Antenna Using Pocklington IE and MATLAB/Fortran Code

    hi all, can any one help me to solve a wire of antenna by method of moment by using pocklington integral equation and MATLAB or fortern code in need the code please help me because this is my graduation project thanxxxxxxxxxx sad rose
  23. L

    Preventing Program Closure with Code: Solutions & Tips

    I wrote my code and try to setup the program , desperately the program closes it so quickly return 0 or getch() commands doesn't work how can I prevent it with a code ?
  24. Z

    Need Source Code In c For 2-Bodies Gravitational Problem

    Need Source Code In "c" For 2-Bodies Gravitational Problem Hello, My name is Zaheer. I am working on N-bodies gravitational problem, i made n-bodies program in "c" but the behaviour of the bodies is not correct as it is not making a complete circle, insted it is making a semi circle and...
  25. N

    Codons aren't basic units of the genetic code right?

    codons aren't basic units of the genetic code right? my friend told me that it does but i remember in lecture that proff said it doesn't but maybe i misheard
  26. Math Is Hard

    C/C++ (simple)C++ questions about a piece of code

    I am looking at a piece of code from my teacher's program and I am just a little unsure of about how a couple of things work. A char array is declared, and an int array is declared. It looks like a character is read from the keyboard and stored in the char array, then the character is...
  27. H

    What could be causing my rocket to never land on the moon?

    Heya, could someone take a look at my code for me? I'm trying to do the second part of "Part 1" from the problem sheet: http://www.hoofbeat.tv/Page4%20Scan.jpg [apologies the image is small on the site - I don't have enough webspace to upload it any larger] However, my code never seems...
  28. H

    C-Programming: My Code & Problem Sheet

    Thanks to everyone who offered to take a look at my problem sheet and my relevant code. I have scanned in the 3 relevant pages of my problem sheet and they can be seen at: [PLAIN]www.hoofbeat.tv/tempcomp.htm[/URL] (the files are too large to upload onto here) Below is a copy of my...
  29. Astronuc

    Is Adware Becoming More Sophisticated and Virus-Like?

    My company uses McAfee ASAP (anti-virus) for security against viruses. It runs continuously and monitors all internet traffic. Since Friday, the anti-virus software was activated just after I entered a couple of websites. One seemed to be a 'legitimate' technical site, while the other was...
  30. F

    Translate Perl AI Script to C++ for 20 Questions: Expert Help Available

    I wrote an (small) AI script for twenty questions in perl, however i need the code translated into C++ (i ahve some knowledge of C++, but not enough to write this program). Thanx for the help: #!/usr/bin/perl use warnings; $ans = 0; $qnumber = 1; while (($ans == 0)&& ($qnumber <...
  31. N

    Exploring the Protein Code: A Look at an Outdated Source

    Hello! The following URL shows the protein code (from Codons) but it's quite old, so I don't know if it's still correct. http://img.photobucket.com/albums/v381/maxpayne_lhp/Maths%20and%20Other%20Sciences%20for%20the%20forums/0001.jpg
  32. J

    Read in the Da Vinci Code that phi = 1.68

    Hey.. .i just read in the Da Vinci Code that phi = 1.68 and that everythin in thie universal has the same proportion.. and that its called the DIVINE Proportion... For example, if you divide the length between your head to ur toe by the length between your waist and toe ur going to get the value...
  33. honestrosewater

    Why is the ISO-8859-1 character code not working properly for ö?

    In another thread, someone was trying to use the ISO-8859-1 character code for ö and forgot the semicolon. They wrote and when I quoted them to point out the omission, the character magically appeared. When input from the text box, &#246 appears in the html as (no space) as expected. But when...
  34. R

    C/C++ Code me the php explode function into c or c++

    can someone code me the php explode function into c or c++ that would work with original strings? thanks in advance
  35. E

    Analyzing Recurrence Relations: Help with Summations Code

    Hi everyone, I have the following recurrence to represent in terms of n: n-1 n j Sigma Sigma Sigma(c1) =... i =1 j = i+1 k=1 Basically, it is an analysis of following code: for(i = 1 to n -1) for(j = i+1 to n) for(k = 1 to j) something of O(1) So, I...
  36. W

    Mysterious Book Findings: Examining the Bar Code

    I have just bought a number of books, whilst waiting for the right moment to start on Penrose:The road to reality, I just noticed that the book appeared to be wishing me to open at a random page?..thus I did this just to see what page it open's at. The page I happened to open at contained a...
  37. U

    Morse Code IC Timer for Intercoms

    Is there such a thing as a morse code ic timer chip or is the only way cascading 555's or something complicated like that. Eproms and machine code is ok if that's what it takes if its cheap and easy for my pc. Only need maybe 3/4 pulses timed. EDIT: want to modify my intercom into a system...
  38. Juntao

    Handling User Input Errors in C: Looping and Checking for Numeric Range

    Hi, I am trying to write a loop that will check a users input to be between a certain numeric range in C. The thing is, I expect the person to enter a number, not a character. When the person enters a character, the loop becomes infinite. Thats the problem. If you look at example source...
  39. tandoorichicken

    Is this the correct basic code for a for-loop?

    Is this the correct basic code for a for-loop? for (n=1, n<=10, n++) { /* statements */ } If not what am I doing wrong?
  40. A

    Can You Crack This Word Substitution Code?

    hey guys i recently found a code in a spam e-mail sent to me, it apears to be a word substitution code and i haven't been able to break it (not sure if there is a way) anyway here's the portin of code i got, if you think you might need more examples e-mail me, i won't post them here becasue some...
  41. C

    Cracking Dr. Ray's Secret Code: Can You Figure it Out?

    Dr. Ray protects his computer system from those pesky university freshmen by incorporating a secret code that only he knows how to work out. Two numbers appear on his screen, and he can't log in until he types in a third number, related to the first two. However, certain freshman spies...
  42. Monique

    New computer source code true?

    Did anyone hear the story about the dutch inventor Jan Sloot from Nieuwegein who supposedly invented a new computer source code, but died by a heart-attack the day before he was going to place the patent at a lawyers office? The story aired on television a few days ago and is covered in a...
  43. C

    Finding the Physics Code of Ethics

    Can someone please tell me where I may find a page with the 'Code of Ethics' for Physics? In my Humanities class, we are required to bring in a copy of the code of ethics for our major...and mine is Physics; however, I have looked in a few places online with no avail. Any help, links, etc...
  44. D

    Compute Expected Code Length of 5 Nodes

    The question ask me to compute the expected code length of 5 nodes A B C D E each of frequency .1 .1 .2 .2 .4 respectively. I already did the tree and derive the huffman code. What does it mean by " compute the expected code length ?"
  45. A

    How Do Keyboard Scan Codes Work with Modified Keys like 'Alt' or 'Ctrl'?

    Hey guys; I was driving the other night, and I was thinking about some programs I used to write many years ago in Pascal (like ~ 11-12 years ago in TurboPascal 7.0, or was it 6.0?) in which I used to catch the keyboard scan codes. I realized that I neve caught a keyboard scan code for a...
  46. D

    Security code combinations

    i was wondering how to calculate the posibilities that a security code could be. For instance if a jet ski security code consists of 4 numbers. each digit can be any number 1 through 5. how many combinations can that make? p.s. - I am not trying to steal a jet ski; I am just wondering.
  47. T

    Understanding PriorityQueue: A Code Snippet Guide

    Can you give me a code snip clearifying some basic uses of PriorityQueue ? I read Bjarn but wasn't clear enough, could you please help me ? Thanks in advance,
  48. I

    LaTeX Installing LaTeX Code into a Forum: A Step-by-Step Guide

    Where'd you guys get it? How would you go about installing it into a forum?
  49. D

    Creating a Challenging Code with Simple Techniques

    my friend put up a code on his away message and it was easy to figure out just guessing what it would be. then i put one up and i gave every letter in the alphabet a number... a=1, b=2, etc and then used 4x^2 + 2x + 7 to make them into different larger numbers. one of my smarter friends...
  50. M

    MATLAB Optimization: Wots wrong with my MATLAB CODE

    Optimization: I am going insane here :cry: :cry: I've really run out of ideas... please help me.! %golden.m function [f,a]=golden(func,p,tol) func='dfunc'; p=[0 1] g=0.38; a=p(1); b=p(2); r=b-a tol=0.01; iter=0 while r>tol x=[a+g*r b-g*r] y=feval(func,x) if...
Back
Top