Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 10-16-07   #21 (permalink)
Programmer
 
kdbolt70's Avatar
 
intel ati

Join Date: May 2007
Location: haslett, MI
Posts: 1,162

Rep: 128 kdbolt70 is acknowledged by manykdbolt70 is acknowledged by many
Unique Rep: 93
Folding Team Rank: 592
Trader Rating: 1
Default

I'm now in my third iteration of a spell checker. The first was only in C, using C strings, the second was in C++ but with out the <string> class, so we had to write our own, and our own ordered container. Now we get to use all of the standard library, but have tons of new features. Ugh... so much work. In DB class we're simulating a database using C++. And in my Java class I have some new project out but I didn't go to class so I have no idea what it is .

3 programming classes = getting owned. Off to the library to study for my DB exam tomorrow
__________________

~M Hail to the Victors M~

System: It's about time!
CPU
Q6600 G0 @3.3Ghz
Motherboard
Gigabyte EP45-UD3P
Memory
4Gb Gskill 1066Mhz PK's
Graphics Card
Sapphire 2900Pro Flashed to XT
Hard Drive
Seagate Barracuda 320Gb & WD Black 640Gb
Sound Card
Onboard
Power Supply
Corsair HX 620W
Case
CM 690
CPU cooling
Tuniq Tower 120
GPU cooling
stock
OS
Vista Business and VMWare Ubuntu
Monitor
Acer AL2223W 22"
kdbolt70 is offline I fold for Overclock.net   Reply With Quote
Old 01-08-08   #22 (permalink)
Intel Overclocker
 
intel ati

Join Date: Nov 2007
Posts: 105

Rep: 16 Admiral Doom Unknown
Unique Rep: 16
Trader Rating: 1
Default

Here's my response- its written for the Java Console. Put this into Eclipse or something, compile, and run...it'll do the job. You I know there's a more efficient way to manage the encoding key for decoding text, but i don't really have a lot of time right now (exams for high school).

import java.util.*;
public class Encode
{

static Scanner scan;
public static void main(String[] args)
{
final int tSize = 200;
scan = new Scanner(System.in);
System.out.println("Would you like to <1> Encode or <2> Decode a message?");
if(scan.nextInt()==1)
encode(tSize);
else
decode(tSize);
}
public static void encode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)0, (char)tableSize);
for(int i=1; i<tableSize-1; i++)
table.put((char)i, (char)(i+1));
String input="", output="";
System.out.println("Hey, input a string!");
scan = new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the encoded text: "+output);
}
public static void decode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)tableSize, (char)0);
for(int i=2; i<tableSize; i++)
table.put((char)i, (char)(i-1));
String input="", output="";
System.out.println("Hey, input an encoded string!");
scan=new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the decoded text: "+output);
}

}

Oh crap...the indents are screwed up. Lemme zip it up real quick
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this.

NVIDIA

System: 3 Mile Island
CPU
Q6600 @ 3.6
Motherboard
Asus Maximus Formula
Memory
4x2 gb Patriot Viper DDR2 800
Graphics Card
Powercolor 4870x2
Hard Drive
2x 320gB WD RAID 0
Sound Card
X-Fi Xtreme Gamer OEM (w/ TOSLINK)
Power Supply
PC P&C 750w Silencer
Case
Antec 900
CPU cooling
Xigmatek S-1283
OS
Vista x64
Monitor
24" BenQ 5ms 1900x1200

Last edited by Admiral Doom : 01-08-08 at 10:16 PM
Admiral Doom is offline   Reply With Quote
Old 01-08-08   #23 (permalink)
Intel Overclocker
 
intel ati

Join Date: Nov 2007
Posts: 105

Rep: 16 Admiral Doom Unknown
Unique Rep: 16
Trader Rating: 1
Default

Ok it should be here...unzip and open with Eclipse
Attached Files
File Type: zip Encode.zip (592 Bytes, 4 views)
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this.

NVIDIA

System: 3 Mile Island
CPU
Q6600 @ 3.6
Motherboard
Asus Maximus Formula
Memory
4x2 gb Patriot Viper DDR2 800
Graphics Card
Powercolor 4870x2
Hard Drive
2x 320gB WD RAID 0
Sound Card
X-Fi Xtreme Gamer OEM (w/ TOSLINK)
Power Supply
PC P&C 750w Silencer
Case
Antec 900
CPU cooling
Xigmatek S-1283
OS
Vista x64
Monitor
24" BenQ 5ms 1900x1200
Admiral Doom is offline   Reply With Quote
Old 01-17-08   #24 (permalink)
Case Modder
 
intel nvidia

Join Date: Jan 2008
Location: Nashville, TN
Posts: 384

Rep: 41 arjo_reich is acknowledged by some
Unique Rep: 38
Trader Rating: 0
Default

Quote:
Originally Posted by BFRD View Post
Ok. The encoder challenge is over. Stay tuned for the next installment. Thanks to everyone that participated.
Just stumbled into the thread, I'll look forward to the next installment. By the way, for anyone that was curious, the specific name of that type of cipher is called a "ceasar shift" ... because Julius Ceasar (supposedly) used a three character shift pattern as a means of communicating securely with his generals. :shrug:
__________________
System: My "Dev" box...
CPU
C2Q Q6600 G0 SLACR (lapped)
Motherboard
GIGABYTE GA-EP45-UD3P
Memory
(4) 2GB OCZ (OCZ2F8004GK)
Graphics Card
GIGABYTE 8800-GTX 768MB
Hard Drive
(2) WD Caviar WD7500AAKS 750GB
Power Supply
Ultra-X3 1000W ULT40064 SLi Ready
Case
SilverStone Temjin TJ09-SW
CPU cooling
ThermalRight Ultra-120 Extreme (lapped) w/ IFX-10
GPU cooling
ThermalRight HR-03 Plus w/ 92mm Scythe Karma PWM
OS
Windows Vista x64 SP1
Monitor
(2) Samsung 226BW "S" 2ms (GTG) 700:1(DC 3000:1)
arjo_reich is offline   Reply With Quote
Old 07-03-08   #25 (permalink)
Programmer
 
Butterbum's Avatar
 
intel nvidia

Join Date: Jun 2008
Location: London
Posts: 568

Rep: 32 Butterbum is acknowledged by some
Unique Rep: 32
Folding Team Rank: 1150
Trader Rating: 0
Default

When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?
__________________
System: UberRig
CPU
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB)
Motherboard
ASUS P5N-E SLI (650i)
Memory
OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB)
Graphics Card
EVGA 9600 GT (KO Edition)
Hard Drive
WD Caviar 250gb + 80gb
Sound Card
Soundblaster Live
Power Supply
Huntkey Green Star 500w
Case
Thermaltake Soprano
CPU cooling
Zalman 9500
GPU cooling
Reference Heatsink
OS
Vista x64/Mint x64
Monitor
Philips Brilliance (20" LCD)
Butterbum is offline I fold for Overclock.net   Reply With Quote
Old 07-08-08   #26 (permalink)
4.0ghz
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 2,105
Blog Entries: 3

Rep: 161 hometoast is acknowledged by manyhometoast is acknowledged by many
Unique Rep: 129
Folding Team Rank: 318
Hardware Reviews: 3
Trader Rating: 16
Default

Quote:
Originally Posted by Butterbum View Post
When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?

Yes yes!

System: foot warmer
CPU
Q9550
Motherboard
EP45-UD3P
Memory
OCZ 2x2Gb ddr2-1066
Graphics Card
GTX260 700/1509/1000
Hard Drive
WD 320 AAKS
Power Supply
PP&C 610W Silencer
Case
CM Cosmos 1000
CPU cooling
Xig Dark Knight
OS
Win7 7100
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-09-08   #27 (permalink)
Programmer
 
Butterbum's Avatar
 
intel nvidia

Join Date: Jun 2008
Location: London
Posts: 568

Rep: 32 Butterbum is acknowledged by some
Unique Rep: 32
Folding Team Rank: 1150
Trader Rating: 0
Default

Quote:
Originally Posted by hometoast View Post
Yes yes!
If you could pull enough people together for a 24h session i could moderate it and come up with a few challenges, ive done my fair share of them and know a few good ones
__________________
System: UberRig
CPU
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB)
Motherboard
ASUS P5N-E SLI (650i)
Memory
OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB)
Graphics Card
EVGA 9600 GT (KO Edition)
Hard Drive
WD Caviar 250gb + 80gb
Sound Card
Soundblaster Live
Power Supply
Huntkey Green Star 500w
Case
Thermaltake Soprano
CPU cooling
Zalman 9500
GPU cooling
Reference Heatsink
OS
Vista x64/Mint x64
Monitor
Philips Brilliance (20" LCD)
Butterbum is offline I fold for Overclock.net   Reply With Quote
Old 07-13-08   #28 (permalink)
Photography nut
 
dangerousHobo's Avatar
 
amd nvidia

Join Date: Dec 2005
Location: ~/
Posts: 3,485

Rep: 409 dangerousHobo is a proven memberdangerousHobo is a proven memberdangerousHobo is a proven memberdangerousHobo is a proven memberdangerousHobo is a proven member
Unique Rep: 215
FAQs Submitted: 7
Folding Team Rank: 867
Trader Rating: 0
Default

I'd love to start some more challenges. We'd need to have some that are fairly hard and some that can be easy as not everyone is at the same level here and we want to include as many people as possible. Post up some possible challenges and we can move forward from there. A 24 hour challenge sounds fun too.
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn

Try out the latest Programming Challenge
Quote:
Originally Posted by Melcar
Only one reasonable way to solve this... a dance off.

CPU-Z Validation
@ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15


Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More

System: Anomaly
CPU
Athlon 3700 SD(KACAE)0546 @3.02ghz
Motherboard
DFI UT nF4 Ultra-D
Memory
G.Skill 2x512 UTT(BH-5)
Graphics Card
evga 6800gs
Hard Drive
Maxtor 300GB + WD 250GB
Sound Card
onboard
Power Supply
Ultra 500w V-series
Case
one from Ultra
CPU cooling
Big Typhoon
GPU cooling
80mm fan mounted on
OS
Arch64 & Slackware 12.1
Monitor
Acer AL2216W 22" WS LCD
dangerousHobo is offline I fold for Overclock.net Overclocked Account dangerousHobo's Gallery   Reply With Quote
Old 07-13-08   #29 (permalink)
New to Overclock.net
 
amd ati

Join Date: Jun 2008
Location: Dallas,TX
Posts: 438

Rep: 71 heretic is acknowledged by some
Unique Rep: 62
Trader Rating: 1
Default

Why not use the ACM programming contest stuff? One of my profs has a bunch of the problem sets on his school web space, but you'd have to trust people not to cheat and look at the answers.
__________________
System: My System
CPU
3800x2
Motherboard
DFI NF4 SLI-D
Memory
2gb GSkill ZX
Graphics Card
HD4850
Hard Drive
6+TB of insanity
Sound Card
X-Fi XtremeMusic
Power Supply
Corsair 750TX
Case
Rocketfish
CPU cooling
TT Sonic Tower
OS
XP Pro
Monitor
L2410NM + DYLM24D6
heretic is offline   Reply With Quote
Old 07-13-08   #30 (permalink)
4.0ghz
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 2,105
Blog Entries: 3

Rep: 161 hometoast is acknowledged by manyhometoast is acknowledged by many
Unique Rep: 129
Folding Team Rank: 318
Hardware Reviews: 3
Trader Rating: 16
Default

OOoooRR! I could post some problems I have *cough* at work

I'm not lazy! I'm efficient!

System: foot warmer
CPU
Q9550
Motherboard
EP45-UD3P
Memory
OCZ 2x2Gb ddr2-1066
Graphics Card
GTX260 700/1509/1000
Hard Drive
WD 320 AAKS
Power Supply
PP&C 610W Silencer
Case
CM Cosmos 1000
CPU cooling
Xig Dark Knight
OS
Win7 7100
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Reply


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



All times are GMT -4. The time now is 02:17 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.16153 seconds with 9 queries