Sonny

Sonny

Joined
Apr 22, 2010
Occupation
Programmer
Location
Ohio

Activity Stream

Sonny   -  May 02, 2012

Wonderful new layout.

Sonny created a Page  -  Nov 08, 2011
241 

The $abc identifier will just return the corresponding position or letter of the English alphabet. Example: $abc(g) ;returns 7 $abc(24) ;returns x $abc(0) ;returns 26 (total letters in alphabet)

Sonny commented on a Page, AutoOper v1.0  -  Oct 27, 2011

Which is why I made sure that it's a valid url. It's nothing dynamic, so there's no need to do a check at all lol.

 Respond  
Sonny commented on a Page, AutoOper v1.0  -  Oct 27, 2011

They're essentially the same when used with links lol. /run will just open the default program, unless it's already open and your browser supports tabs, then it'll open in a tab.

 Respond  
Sonny created a Page  -  Oct 26, 2011
1 370 

Check the About and How to Use in the script. Use the Help menu to get there.

Sonny commented on a Page, gettok function  -  Jul 26, 2011

It's used in python scripts to get a specific token within a string. It can be modified to get a specific token in any specific type, or multiple types. It can also be used to get the amount of tokens in the string, or if modified, the specific type.

 Respond  
Sonny commented on a Page, gettok function  -  Jul 26, 2011

Thanks, Aha2Y.

 Respond  
Sonny commented on a Page, gettok function  -  Jul 26, 2011

Why dots?

 Respond  
Sonny created a Page  -  Jul 21, 2011
265 
Sonny commented on a Page, Exceedingly Simple Away Script  -  May 17, 2010

lol @ napa.

 Respond  
Sonny commented on a Page, Hangman  -  May 16, 2010

hm.. never got that error. ;/ still not getting it. i'll look into it more, though. thank you for reporting it. and i did intend on having it use an external file to get words, but i kept getting an error. which i will fix once i can figure it out.

 Respond  
Sonny created a Page  -  May 16, 2010

A hangman game based around references, also uses a base class as the body of the game, and nested classes for parts of the game. there are a few bugs, but they aren't annoyingly noticeable. i'll fix whatever you can find.

  3 Threads   C++  
Sonny commented on a Page, Blackjack simplified  -  May 14, 2010

thanks for the feedback, i'll update it with a fix when i can.

 Respond  
Sonny created a Page  -  May 14, 2010
477 
Sonny created a Page  -  May 13, 2010

A simplified blackjack game played in a console window. This project is from a Mike Dawson book, so the source code is not 100% original. But with a few personal tweaks and some tidy-ups, the program is quite fun when you're bored. Very very basic AI, which tells the computer when it's a good idea to hit, and when it's a good idea to decide if an Ace is valued as 1 or 11.

  3 Threads   C++  
Sonny commented on a Page, Simple Tic Tac Toe using pointers  -  May 12, 2010

lol. it's pretty easy to win. since the ai is flawed, as it follows a pattern. but thanks for trying it, and commenting.

 Respond  
Sonny created a Page  -  May 12, 2010

A simple tic tac toe game using pointers. Just a simple example of how you can use pointers. Simple AI, as well. This was just a project i had to do when i first learned pointers.

  4 Threads   C++  
Sonny commented on a Page, TicTacToe  -  May 12, 2010

I think it's pretty good, man. Sure, you could change some things here and there, but all in all, it's good.

 Respond  
Sonny commented on a Page, Simple Away Script (dialog and logs)  -  May 01, 2010

rofl.

 Respond  
Sonny created a Page  -  Apr 25, 2010
93 

Just a basic example of a sorttok() function using the STL algorithm sort() and vectors.. It sorts in the order of symbol, number, letter. Just an example, I don't plan to add onto it.

 Respond   C++  
Sonny commented on a Page, Guess My Number  -  Apr 25, 2010

Yeah, it looks good. I'm looking into it. Thanks. Qt is good as well, and that's what I've actually started in. So in some time, I'll expand onto bigger games, as well. Plus the language bindings are great, especially with Python. So, we'll see.

 Respond  
Sonny commented on a Page, Guess My Number  -  Apr 25, 2010

Yeah, it'll be cross platform. And, I don't even code on windows. One thing I learned is not to code platform specific unless necessary.

 Respond  
Sonny commented on a Page, Guess My Number  -  Apr 24, 2010

I might redo it with a nice, simple gui and a more advanced rand generator, as well as the ability to have the computer guess the number, instead of you.

 Respond  
Sonny commented on a Page, Multiplication Table  -  Apr 24, 2010

Fixed. The problem was I defined s as a const, when in fact I needed to increment it in the "rows" for loop.

 Respond  
Sonny commented on a Page, Guess My Number  -  Apr 24, 2010

I might addon to it, since now I'm doing intermediate visual apps.

 Respond  
Sonny created a Page  -  Apr 24, 2010
1,561 

A very basic gettok() function i made from scratch for a contest.It's not to be used with loops, since it uses substr. Hasn't been fully tested, but works as needed in my experience. Post bugs, if you find any. I'll probably finish all the other tokens, if and when I have time.

 Respond   C++  
Sonny created a Page  -  Apr 24, 2010
1,735 

A very basic multiplication table former. It asks you to enter a number, then displays a 5x5 grid-like multiplication table with the base number you entered. It starts from 1. Useful for teaching younger kids their times tables, or people who aren't so good with multiplication. You can use it from the command line, I would recommend maximizing your screen when using big numbers. Command line usage: Windows:..

  3 Threads   C++  
Sonny created a Page  -  Apr 24, 2010
1 926 

old game I wrote. This was probably the first or second game I wrote using random numbers and enumerated types. The computer picks a number, and you try to guess it. Very basic and simple, but it was a beginner project. Now, looking back, I could think of a million ways to rewrite this game, with 100 more features and far more memory efficient. This is just an example code, all in all. So, if you..

  8 Threads   C++  
Sonny commented on a Page, Prime Number checker  -  Apr 22, 2010

@jsg55 While I'm not a beginner to the language, I am still "learning". But, stronger codes that I do implement, like encryption key generators (in which I do use this function), I don't post. As I do not want it to be public code. I will post small/medium sized codes that will aide people in developing diverse and somewhat simliar codes. A lot of people just don't understand the use of prime numbers, or even more simplistic mathematical factions.

 Respond  
Sonny commented on a Page, Prime Number checker  -  Apr 22, 2010

@bielle It's useful if you're using it inline. It's not meant to return the prime number.
@ssimar If you're going to reply with a blatant, and disrespectful comment, don't bother leaving one.

A very useful resource in finding prime numbers is stronger encryption. As there are only so many factors when multiiplying them. When multiplying two prime numbers together instead of any two ordinary numbers, there are only four factors, making the encryption key stronger, which makes it harder to crack.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.