Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 4th, 2005, 10:48 AM   #21
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,318
Rep Power: 5 grumpy will become famous soon enough
bl00dninja,

You and I will get on much better if you cut back on bad language. As a forum sponsor I assume you want this site to grow .... in my experience bad language is ineffective as a selling technique as it doesn't appeal to a lot of people.

If you must swear, do it in private. That's what most of us do
grumpy is offline   Reply With Quote
Old Jun 4th, 2005, 11:27 AM   #22
Komodo
Hobbyist Programmer
 
Komodo's Avatar
 
Join Date: May 2005
Location: Scranton, PA
Posts: 112
Rep Power: 0 Komodo is an unknown quantity at this point
Send a message via AIM to Komodo Send a message via MSN to Komodo
[php]
<?php
if($action==calculate){
///grabs the numbers that would be submitted in the form
$number1['number']=$_POST['number1'];
$num_sys_start['base']=$_POST['start'];
$num_sys_end=$_POST['end'];

///sets what the maximim value a digit can be
$num_sys_start['max']=$num_sys_start['base']-1;

////grabs the lenght of the number to be converted
$number1['length']=strlen($number1['number']);

/*in any number system, the first place always is one, the second is the 'modifier' times the place before it. In the base 10 number system, the first spot is 1, the second is 10(1*10), the third is 100(10*10), the fourth is 1000(100*10) and so on. this right here sets what each place is*/
$total=1;
$calculated=1;
while($calculated<=$number1['length']){
$num_calculate_values[$calculated]=$total;
$total=$total*$num_sys_start['base'];
$calculated++;
}

////after the last
$calculated--;
$int_start=0;
while($length1>=1){
$num_start_values[multiplied]=substr($number1['number'], $int_start, 1);
$calculated--;
$int_start++;
}

$calculated=1;
while($calculated<=$number1['length']){
$num_total_values['$calculated']=$num_start_values['$calculated']*$num_calculate_values['$calculated'];
$calculated++;
}

$calculated=1;
$result=0;
while($calculated<=$number1['length']){
$result=$result+$num_total_values['$calculated'];
$result++;
}
echo"$number1[number] has been converted from the base $start number system to the base $end number

system, and resulted in <span style=\"font-size: 14px; font-weight: strong;\">$result</span>.<br />";
}

echo"
<table>
<tr>
<td>
I want to take
</td>
<td>
<form method=\"post\" action=\"$PHP_SELF?action=calculate\">
<input type=\"text\" name=\"number1\" value=\"$number1[number]\" />
</td>
</tr>
<tr>
<td>
From the number system Base
</td>
<td>
<select name=\"start\">
<option value=\"2\">2</option>
<option value=\"3\">3</option>
<option value=\"4\">4</option>
<option value=\"5\">5</option>
<option value=\"6\">6</option>
<option value=\"7\">7</option>
<option value=\"8\">8</option>
<option value=\"9\">9</option>
</select>
</td>
</tr>
<tr>
<td>
To the number system Base
</td>
<td>
<select name=\"end\">
<option value=\"10\">10</option>
</select>
</td>
</tr>
<tr>
<td colspan=\"2\" align=\"center\">
<input type=\"submit\" value=\"Calculate!\" />
</td>
</tr>
</table
[/php]

Is it difficult to read?
Komodo is offline   Reply With Quote
Old Jun 4th, 2005, 12:00 PM   #23
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
Quote:
Originally Posted by grumpy
..You and I will get on much better...
I generally agree with grumpy on this. Quite unnecessary. Does this forum condone the use of fowl langwidge?
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty

Last edited by stevengs; Jun 4th, 2005 at 12:02 PM.
stevengs is offline   Reply With Quote
Old Jun 4th, 2005, 3:07 PM   #24
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
This forum places no restrictions on freedom of speech, and values it above freedom from being offended. Some may see that as a bad thing, some may not.
uman is offline   Reply With Quote
Old Jun 4th, 2005, 6:26 PM   #25
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
It matters little what one thinks of the concept of "free speech". The use of adjectives and other modifiers that don't really affect the meaning of the communication, other than for some perceived shock value, are generally the purlieu of the immature trying to make some kind of misguided impression.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 4th, 2005, 8:25 PM   #26
mitakeet
Programmer
 
mitakeet's Avatar
 
Join Date: Jun 2005
Location: Maryland, USA
Posts: 59
Rep Power: 4 mitakeet is on a distinguished road
I would also like to add that the excessive use of warez language also does little to impress beyond fellow warez d00dz and is seldom an effective form of communication. Forums like this are excellent locations to practice clear expression of thought and cogent argument, you won’t suffer in your career (we are all known here via aliases, no matter how easy it is to discover our ‘secret identities’) and your argument/persuasion skills can be honed by rubbing against more experienced people who often enjoy the honing experience. The combined experience of the recent additions from DevShed newbies is well in excess of a century and while you may cough up your sleeve comments like ‘suit’, it is suits that pay your bills and if you understand and empathize with them you will have a much less angst ridden and likely much more lucrative career. Many of us have been hiring managers in the past (and some will continue to be in the future) and when we point out things like this we are trying to give you advice on what will help advance your career. If this is a forum where you just like to spout off and trash talk, I suspect many of us will move on as most of us are motivated to disseminate our experience (technically and otherwise) because we like to help and generally only enjoy doing so in a civilized environment. Think about what is really valuable about being crude and what you expect it to get you. A couple of seconds of private amusement can come at the expense of a promising career (as can a few moments of anger expressed in an indelicate manner, but that is a different issue) and while no one expects anyone to be perfect all the time, decorum is often rewarded by decorum and civilized exchanges are more apt to pursued.

Just something to think about. As my friends and family will tell you, my veneer of civilization is quite thin and it takes very little to scratch through, something that has, on more than one occasion, had a negative impact on my career.
__________________

Free code: http://sol-biotech.com/code/.

It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
--Mitakeet

The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
--George Bernard Shaw
mitakeet is offline   Reply With Quote
Old Jun 4th, 2005, 8:57 PM   #27
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I post exactly the way I speak - so does bl00dninja, by the looks of things. My attitude to things such as this is as follows: if you don't like it, tough shit.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 4th, 2005, 9:11 PM   #28
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
I've been here since the very beginning pretty much, and throughout my stay here there have never been any restrictions on what can and can not be said aside from the restriction on the discussion of warez, hacking, and personal flames, as far as I can remember off of the top of my head. I'm pretty sure that's not changing any time soon.
__________________
&quot;Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children.&quot; - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Jun 4th, 2005, 9:26 PM   #29
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
As I said earlier, it is usually just indicative of a paucity of useful vocabulary and a pseudo-macho strut. With an entire lifetime behind me, including a stint as a swabbie, there's little, if anything, I haven't said -- in several languages. I'm not entirely beyond that, but it's as unimpressive as obfuscated code, fake ghetto, and other things of that ilk. I am not a censor. If you want my view on that, read the main page of my site at http://www.daweidesigns.com. Fluff and fake jargon, as well as euphemisms and other worthless expressions, merely make me step off into the grass and puke on my shoes.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 4th, 2005, 9:31 PM   #30
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
/me prays these guys never decide to start a debate with massive-war...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC