techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > General Software

Reply
 
Thread Tools
Old Apr 25, 2012, 06:22 PM   #1
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

Pick Random Line

Takes input either from a file (drag and drop on the executable supported) or from typing with one "item" per line. Click on "Pick One" and it will select a random line and place it in the result textbox where it can be copied/manipulated. This is great for having a computer make up your mind when you can't.

Requires .NET Framework 4.0 (Client Profile).



Weighted Lines


Version history:
-1.2.0: Fixed bug where last line wouldn't be picked if not using weights. Added drag and drop for files on the file name box and text on the main text box.
-1.1.0: Added the ability to weight lines. See the above "spoiler" for details.
-1.0.0: First release.
Attached Files
File Type: zip pick_random_line_1_2.zip (44.8 KB, 16 views)
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }

Last edited by FordGT90Concept; Aug 22, 2012 at 07:59 PM.
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
The Following 5 Users Say Thank You to FordGT90Concept For This Useful Post:
Old Aug 9, 2012, 09:20 PM   #2
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

Uploaded 1.1.0. It nows supports weighting lines. Details of how to use that feature are in the "Weighted Lines" spoiler. If you don't use that feature, it is functionally identical to 1.0.0.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
Old Aug 9, 2012, 09:45 PM   #3
TheMailMan78
Banstick Dummy
 
TheMailMan78's Avatar
 
Join Date: Jun 2007
Location: Crystal River, FL
Posts: 15,109 (6.93/day)
Thanks: 1,337
Thanked 6,829 Times in 3,739 Posts

System Specs

Just get married. You will never have to make up your mind again. She will do it for you and you don't even need to install .NET Framework 4.0
TheMailMan78 is offline  
Reply With Quote
The Following 5 Users Say Thank You to TheMailMan78 For This Useful Post:
Old Aug 9, 2012, 09:51 PM   #4
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

So Ford this would be good for picking a winner for the next game giveaway? I'm all for it if so!
manofthem is online now  
Crunching for Team TPU
Reply With Quote
Old Aug 9, 2012, 09:58 PM   #5
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

Yeah, that's what it was originally created for. The weighting was added to make it easier to decide what game to play (lower weights for games we've already beat/started).
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
The Following User Says Thank You to FordGT90Concept For This Useful Post:
Old Aug 9, 2012, 10:00 PM   #6
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

Very cool, I'll try it out this weekend! Thanks
manofthem is online now  
Crunching for Team TPU
Reply With Quote
Old Aug 22, 2012, 06:08 PM   #7
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

Hey Ford, beer me a minute of your time (haha, Office reference). Can you look to see if you get the same thing that i'm getting... If i input say 10 numbers/names, it seems to never choose the last one. I tried with 4, 10, and 11 entries. These are just normal, nonweighted entries. Maybe it's user error, but i'd appreciate the insight.
__________________


My Heatware

"P.S. Why buy from Newegg...when you can buy from Sneeky!" -LiNKiN
manofthem is online now  
Crunching for Team TPU
Reply With Quote
The Following 2 Users Say Thank You to manofthem For This Useful Post:
Old Aug 22, 2012, 06:29 PM   #8
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

You're right. I'm sure I checked for that but must have some how broke it. I'll see about fixing it.

Also, I wanted to add drag n drop support so I might as well do that too while I'm at it.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
The Following User Says Thank You to FordGT90Concept For This Useful Post:
Old Aug 22, 2012, 06:35 PM   #9
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
You're right. I'm sure I checked for that but must have some how broke it. I'll see about fixing it.

Also, I wanted to add drag n drop support so I might as well do that too while I'm at it.
That would be terrific. I tried to drag and drop something earlier, just not thinking, but that would be pretty awesome.

With the other issue, the temporary workaround is to just add another line, anything I suppose, and it'll suite me just fine. Thanks for looking into, and thanks for the great utility, really good for giveaways lol!
__________________


My Heatware

"P.S. Why buy from Newegg...when you can buy from Sneeky!" -LiNKiN
manofthem is online now  
Crunching for Team TPU
Reply With Quote
Old Aug 22, 2012, 06:58 PM   #10
Jizzler
2000 Posts
 
Jizzler's Avatar
 
Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.42/day)
Thanks: 567
Thanked 606 Times in 487 Posts

System Specs

Bug confirmed.



It just won't pick that last line
Attached Thumbnails
Click image for larger version

Name:	random-line-bug.png
Views:	159
Size:	3.3 KB
ID:	48201  
Jizzler is offline  
Reply With Quote
The Following User Says Thank You to Jizzler For This Useful Post:
Old Aug 22, 2012, 07:01 PM   #11
qubit
Overclocked quantum bit
 
qubit's Avatar
 
Join Date: Dec 2007
Location: Quantumville UK
Posts: 8,648 (4.34/day)
Thanks: 4,178
Thanked 3,303 Times in 1,943 Posts

System Specs

Typical little utility to write for when you have too much time on your hands. I like it.

@mailman: it sounds like you need to move on to Wife 2.0.
__________________
Siggie in the post.
qubit is offline  
Reply With Quote
Old Aug 22, 2012, 07:05 PM   #12
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

Quote:
Originally Posted by Jizzler View Post
Bug confirmed.

http://www.techpowerup.com/forums/at...1&d=1345661849

It just won't pick that last line
Maybe it knows better jk
__________________


My Heatware

"P.S. Why buy from Newegg...when you can buy from Sneeky!" -LiNKiN
manofthem is online now  
Crunching for Team TPU
Reply With Quote
Old Aug 22, 2012, 08:00 PM   #13
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

1.2 uploaded which fixes that bug and adds drag and drop support.

Edit: Also fixed the bug where it would show an empty line in the result box.



Quote:
Originally Posted by Jizzler View Post
Bug confirmed.

http://www.techpowerup.com/forums/at...1&d=1345661849

It just won't pick that last line
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
The Following 2 Users Say Thank You to FordGT90Concept For This Useful Post:
Old Aug 22, 2012, 08:19 PM   #14
manofthem
2000 Posts
 
manofthem's Avatar
 
Join Date: Jan 2011
Location: WPB, FL
Posts: 3,338 (3.86/day)
Thanks: 2,088
Thanked 2,514 Times in 1,276 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
1.2 uploaded which fixes that bug and adds drag and drop support.

Edit: Also fixed the bug where it would show an empty line in the result box.




http://nooooooooooooooo.com/vader.jpg
Thank you kind sir, that was quick!
__________________


My Heatware

"P.S. Why buy from Newegg...when you can buy from Sneeky!" -LiNKiN
manofthem is online now  
Crunching for Team TPU
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me pick!!! ebolamonkey3 Motherboards & Memory 8 Jul 28, 2010 01:59 PM
Motherboard pick SK-1 Motherboards & Memory 41 Jul 22, 2008 04:48 PM
Help me pick a mobo... jpierce55 Motherboards & Memory 0 Apr 8, 2007 05:41 PM
7900 gt random freeze and random crash psychomage343 Graphics Cards 0 Apr 7, 2007 11:55 PM


All times are GMT. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts