»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Off Topic Community

Reply
 
LinkBack Thread Tools Display Modes
Old 02-21-2004, 06:59 PM   #1 (permalink)
Registered User
 
Bovon's Avatar
 
Join Date: Oct 2001
Location: Georgia
Posts: 2,233
Bovon is on a distinguished road
Programmers source code

Can any of the people here describe how software source code appears to the eye?.. I had thought up until now that a source code would be some kind of plain but scrambled text..or maybe dots-dashes similar to the old radio/telegraph Morse code.

Now that Microsoft has said the code that has been slipped to the internet has profanity embedded in it but is not detectable to people looking at it has my curiosity running wild.

I would like to see a source code..or some kind of replica. I understand that Linux has an open source code...would that be in a similar format such as what MS would use?..if so, does anybody know where the Linux source code can be viewed.

Also, how does a source code fit into writing software?...without a source code...software cannot be written?

Thanks!

Bovon is offline   Reply With Quote
Old 02-21-2004, 07:04 PM   #2 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
this is a part of the HTML source code of this page, before i posted:

Code:
</font>
</td></tr></form>
</table></td>
	<td align="right">
	<table cellpadding="0" cellspacing="0" border="0"><tr>
	<form action="search.php" method="post">
	<td><font face="verdana,arial,helvetica" size="1" ><b>Search this Forum:</b>
		<input type="hidden" name="s" value=""><input type="hidden" name="searchdate" value="-1">
		<input type="hidden" name="beforeafter" value="after"><input type="hidden" name="forumchoice" value="3">
		<input type="hidden" name="action" value="simplesearch"><br><input type="text" class="bginput" name="query"><!-- go button -->
<input type="image" src="images/go.gif" border="0" 
align="absbottom">
	</font></td>
	</form>
	</tr></table>

	</td>
</tr>
</table>

<!-- /forum jump and timezone -->
</td>
</tr>
</table>
<!-- /Rate this thread -->

<br>

<!-- forum rules and admin links -->
<table cellpadding="2" cellspacing="0" border="0" width="100%"  align="center">
<tr valign="bottom">
	<td><font face="verdana,arial,helvetica" size="1" ><b>Forum Rules:</b><table cellpadding="0" cellspacing="0" border="0" bgcolor="#5A7594"><tr><td>
<table cellpadding="4" cellspacing="1" border="0">
<tr>
	<td bgcolor="#FFFFFF"><font face="verdana,arial,helvetica" size="1" >
		You <b>may </b> post new threads<br>
		You <b>may </b> post replies<br>
		You <b>may </b> post attachments<br>
		You <b>may </b> edit your posts
	</font></td>
	<td bgcolor="#FFFFFF"><font face="verdana,arial,helvetica" size="1" >
		HTML code is <b>OFF</b><br>
		<a href="misc.php?s=&action=bbcode" target="_blank">vB code</a> is <b>ON</b><br>
		<a href="misc.php?s=&action=showsmilies" target="_blank">Smilies</a> are <b>ON</b><br>
		<a href="misc.php?s=&action=bbcode#imgcode" target="_blank">[IMG]</a> code is <b>ON</b>
	</font></td>
</tr>
</table>
</td></tr></table></font></td>
	<td align="right">
	<table cellpadding="0" cellspacing="0" border="0">
<form action="postings.php" method="get"><tr><td>
	<font face="verdana,arial,helvetica" size="1" >
	<input type="hidden" name="threadid" value="101055">
	<b>Admin Options:</b><br>
	<select name="action"
	onchange="window.location=('postings.php?action='+this.options[this.selectedIndex].value+'&threadid=101055')">
		<option value="editthread" selected>-- Thread Options --</option>
		<option value="openclosethread">Open / Close Thread</option>
		<option value="move">Move / Copy Thread</option>
		<option value="editthread">Edit Thread</option>
		<option value="deletethread">Delete Thread / Posts</option>
		<option value="merge">Merge Threads</option>
		<option value="split">Split Thread</option>
		<option value="stick">Stick / Unstick Thread</option>
	</select><!-- go button -->
<input type="image" src="http://images.techimo.com/timo_images/forum/images/go.gif" border="0" 
align="absbottom">
	</font>
</td></tr></form>
</table>
	</td>
</tr>
</table>
<!-- /forum rules and admin links -->

  </td>
</tr>
</table>
<!-- /content area table -->
</center> 
the only problem is you have to understand the language!
of course this is nothing against the microsoft source code, it would be very hard to understand the whole source code! and most of the time you have to compile the source code, so the PC (CPU) understands what to do (assambly AFAIK)

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 02-21-2004, 07:06 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
The "profanity" is a bit unprofessional but I guess since its propriatary they can do what they want *shrug*

The profanity would probably be more in comments of the code. Comments have zero funcationality to the actual program but only serve as to make comments on why a programmer did something in the manner they did.

It really depends on what language the programming language is in. If its in Assembly language the language is pretty cryptic and hard to read...
You have to remember there is possibly several hundred megs of text so finding the few bits of profanity would take quite some time unless you're looking for it specifically.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 02-21-2004, 07:09 PM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Aw come on Creatures... HTML doesn't count

Here is some C++ I found on the net (just did a search for kernel.cpp )

Code:
// Set the application to run
// XXX: Should have protection here
void Kernel::setApplication(App* newApp)
{
   vprDEBUG(vrjDBG_KERNEL,vprDBG_CONFIG_LVL) 
     << "vjKernel::setApplication: New application set\n"
     << vprDEBUG_FLUSH;
   mNewApp = newApp;
   mNewAppSet = true;
}

void Kernel::checkForReconfig()
{
   vprASSERT(vpr::Thread::self() == mControlThread);      
// ASSERT: We are being called from kernel thread


   // ---- RECONFIGURATION --- //
   jccl::ConfigManager* cfg_mgr = jccl::ConfigManager::instance();
   unsigned num_processed(0);

   do
   {
      num_processed = cfg_mgr->attemptReconfiguration();
   }
   while (num_processed > 0);

   // ---- APP SWITCH ---- //
   // Edited by Vass.. Insert Profanity HERE
   // check for a new applications
   if(mNewAppSet)
   {
      if((mNewApp == NULL) || (mNewApp->depSatisfied()) )   
// If app is NULL or dependencies satisfied
      {
         vprDEBUG(vrjDBG_KERNEL,vprDBG_CONFIG_STATUS_LVL) << "vjKernel: New application set, 
          dependencies: Satisfied.\n" << vprDEBUG_FLUSH;
         mNewAppSet = false;
         changeApplication(mNewApp);
Anywhere you see
// some text... these are comments

OR
/* These are comments in between slash asterisks */
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>

Last edited by vass0922; 02-21-2004 at 07:11 PM.
vass0922 is offline   Reply With Quote
Old 02-21-2004, 07:09 PM   #5 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
lol vass

mentioned Assembly:

Code:
;##### ---------- PROGRAM ----------#####        
        ;S1:     CJNE A,0EH,LED              ;SELECT SWITH1  JUMP TO = LED
                 ;JMP LED                   ;SHOW   LED 7SECMENT RUN
       ; S2:    CJNE A,0DH,UBON               ;SELECT SWITH2  JUMP TO = UBON
                ;JMP UBON                    ;SHOW   UBON
        ;S3:    CJNE A,#0BH,WELL               ;SELECT SWITH3 JUMP TO = WELL
                ;JMP WELL                   ;SHOW   WELLCOME
        ;S4:    CJNE A,#07H,ELEC               ;SELECT SWITH4 JUMP TO = ELEC
                ;JMP ELEC                   ;SHOW   ELEC
;#---------- SELECT SWITH 1 Show Ubon -----------#
   
       Ubon:  MOV DPTR,#0E04DH  
                   MOVX A,@DPTR   
                   ANL A,#0FH             
                  CJNE A,#0EH,L1     

 START1:   MOV B,#04H;
                    MOV R0,#00H;
                    MOV R1,#00H;
              BB1:    MOV A,R0;
                          MOV DPTR,#TABLE1;
                          MOVC A,@A+DPTR;
             MOV DPTR,#0E001H;
             MOVX @DPTR,A
                  MOV A,R1
                  MOV DPTR,#0E000H
                  MOVX @DPTR,A

 CALL DELAY
        INC R0                                   
        INC R1                                 
        DJNZ B,BB1                     
        JMP START1                  
 L1:
small part of an assembly program, i donnu what it does, or if it works

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 02-21-2004, 07:13 PM   #6 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
oh BTW common programming languages

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 02-21-2004, 07:13 PM   #7 (permalink)
Registered User
 
Join Date: Jan 2003
Location: Orange, Mass.
Posts: 490
Blazer06 is on a distinguished road
Send a message via AIM to Blazer06
ohh ohh.. heres some for a inventory programmy im writing for a contest:

Code:
'Code written on 2/15/04
'Author: Blaise J Barstow
'2003-2004 Business Professionals of America
'Franklin County Technical School, Massachusetts
'Software Engineering Team

Option Explicit

Private Sub Form_Load()
    Dim cnMySql As New rdoConnection                                    'Dims the connection
    Dim strInsert As String                                             'Dims the varible used for the SQL statement
    Dim strIP As String                                                 'Dims the varible used for the servers ip or friendly name
    Dim strDRV As String                                                'Dims the varible used to identifiy the OBDC driver
    
    Open App.Path + "/temp.dat" For Input As #1                         'Opens the temp file
        Line Input #1, strInsert                                        'Inputs the preconstructed SQL statement to be run
    Close #1                                                            'Closes the temp file
    Kill App.Path + "/temp.dat"                                         'Deletes the temp file
    
    Open App.Path + "/ip.dat" For Input As #1                           'Opens the IP address file, to input the server's IP or friendly name
        Input #1, strIP, strDRV                                         'Inputs the IP, and the OBDC driver sting
    Close #1                                                            'Closes the file
    
    cnMySql.CursorDriver = rdUseOdbc                                    'Sets the cursor driver to use the ODBC settings
    cnMySql.Connect = "uid=root;pwd=9662201;server=" + strIP + ";driver={" + strDRV + "};database=bdi;dsn='';" 'Connects to the database, using the ODBC driver
    cnMySql.EstablishConnection                                         'Establishes the connection
    
    cnMySql.Execute (strInsert)                                         'Sends the SQL statement to the database
    cnMySql.Close                                                       'Closes the connection
    Unload frmWrite                                                     'Closes this form
    
End Sub
basically that is visual basic 6.0, connecting to a mysql database
any text you see after the ' is a comment
AHHH all my tabbing and spacing is gone... usually its much neater thatn thta...

Blaze

Last edited by Blazer06; 02-21-2004 at 07:37 PM.
Blazer06 is offline   Reply With Quote
Old 02-21-2004, 07:19 PM   #8 (permalink)
Registered User
 
Bovon's Avatar
 
Join Date: Oct 2001
Location: Georgia
Posts: 2,233
Bovon is on a distinguished road
Okedoke... I do a little simple HTML..so I recognised what you pasted in the first reply Creatures....Vass..as I recall reading what some MS engineer had to say about the profanity was..it was added by who ever had it to put into the wild...the profanity was not a part of the original Win2K source code.

Thanks for the effort guys.. I appreciate it.
Bovon is offline   Reply With Quote
Old 02-21-2004, 07:26 PM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Portland, Or
Posts: 3,110
NeoStarO1 is on a distinguished road
Send a message via ICQ to NeoStarO1 Send a message via AIM to NeoStarO1 Send a message via Yahoo to NeoStarO1
Quote:
Originally posted by Blazer06
AHHH all my tabbing and spacing is gone... usually its much neater thatn thta...

Blaze
My dear blazies, that is why when we insert code in here the forums that we do NOT use the Quote tags. We use the Code tags.

Code tags leave your formating intact.

Quote:
I inserted space here but it won't show up.
Code:
                         oh what 
             fun                                      it is 

                          to                format                            however you                                wish!
NeoStarO1 is offline   Reply With Quote
Old 02-21-2004, 07:26 PM   #10 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Portland, Or
Posts: 3,110
NeoStarO1 is on a distinguished road
Send a message via ICQ to NeoStarO1 Send a message via AIM to NeoStarO1 Send a message via Yahoo to NeoStarO1
Using the code tags also can blow out the frames too.
NeoStarO1 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:13 PM.