Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 5th, 2006, 12:40 AM   #41
ChrisX.KP
Newbie
 
ChrisX.KP's Avatar
 
Join Date: May 2006
Posts: 7
Rep Power: 0 ChrisX.KP is on a distinguished road
Send a message via AIM to ChrisX.KP
If you need help with web design then theres something wrong. web design is one of the easiest things to do, heres what you do, go download a free 30-day trial for Macromedia Dreamweaver MX, whatever year, preferably newest. Then you just crack it, not that hard and it makes web design unbelivably easier than it already is.
__________________
Sig Removed by Admin.
Signatures:
Maximum length - The maximum length of a forum signature is 4 to 5 lines.
ChrisX.KP is offline   Reply With Quote
Old May 5th, 2006, 12:43 AM   #42
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
Quote:
Originally Posted by mrynit
find the standar deviation of the number of spaces for every 150 characters. if some one enters a string that is an outlier or how ever you want to determin than reject it
mrynit, I am aware of the way I'd solve the problem server-side. The reason I haven't so far is because of reluctance, not lack of means or knowledge.
Writlaus is offline   Reply With Quote
Old May 5th, 2006, 12:58 AM   #43
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
START
avgSpc = 10

counter = 0
spcCount = 0

while(inChar != endOfString)
{
  
 if strIndex[counter] != ' ' //thats a space
      counter++
   else
       spcCount++
       counter++
}

if  spcCount >= avgSpc
  printOnSite

else
  regect string

END

turn that into what ever language you want for the server side
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old May 5th, 2006, 6:21 AM   #44
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
There's an essential fact here that is escaping attention. Controlling the width as a set number of pixels is (if you succeed) subverting the client's wishes in many cases. Clients use different screen resolutions, different window sizes within their resolution, and dink with other free choices such as text size and icon size. Even in a page with no real problems, using ems for MOST (not all) measurements is preferable. Using relative font-size changes is also almost always a Good Thang. My guess is you'll chase away fewer viewers with a messed up table (particularly if you constrain the damage on the server side) then you will by attempting to override their viewing preferences.

@ChrisX: Your posts are duly impressive. We elect you as fiance' for Chelsea.
__________________
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 May 5th, 2006, 10:31 PM   #45
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
yeah. well good luck and i dont think you have to worry about it.
__________________
i dont know much about programming but i try to help
mrynit 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 8:43 PM.

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