|
2
|
DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers
|
on: June 25, 2012, 04:20:11 AM
|
|
This is my last reply to this thread, because it is utterly absurd the reactions I get. I always thought DonationCoder was a friendly forum, where people are able to discuss something rationally, but I guess I was wrong. I just want to point out once more, that I was only giving advice, I wasn´t claiming anything from authority, nor was I trying to be rude and I most certainly don´t think anything I said was uncalled for or directly aimed at a person or his/her skills.
@IainB: Throwing around some fancy words and Latin phrases makes you neither an authority, nor an intelligent person. On the contrary, your complete post is exactly all the things you accuse someone else of in it. Wanna-be-psychologist, much?
|
|
|
|
|
3
|
DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers
|
on: June 25, 2012, 01:16:24 AM
|
I´m not taking the wrong approach, I was explaining something that is useful for general practice in programming. Right off the bat I admitted I don´t know AHK and I wasn´t specifically criticizing AHK. Anyway, I don´t want or have to prove anything to anyone; I´ve been a senior programmer for over 15 years at the same multinational company and if you refuse to take good advice for what it is, then that´s your loss. No hard feelings, man. You´re taking this way too seriously. 
|
|
|
|
|
4
|
DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers
|
on: June 22, 2012, 02:30:50 AM
|
Like I said, I was just trying to give a tip on good practice in coding. Please explain to me how the code would work correctly, even if variable data types are allowed. What is the outcome of mySerial += myFactor when mySerial is something like "000001" (a string). I would be very surprised if you claimed it would equal 3 (integer). Anyway, I wasn´t trying to step on any one´s toes here. Keep up the bad practice if you like! 
|
|
|
|
|
5
|
DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers
|
on: June 22, 2012, 01:31:31 AM
|
No sarcasm intented. Just saying that when you use... Formatted for Autohotkey with the GeSHI Syntax Highlighter [ copy or print] mySerial := SubStr("000000" . mySerial , -5)
...you are trying to put a string into an integer variable. Even when using var in languages like C#, the moment you declared mySerial := 1 it is an integer. Even when AHK would allow this and store the string in mySerial , then the statement mySerial += myFactor would fail or give unexpected results.
|
|
|
|
|
6
|
Special User Sections / Older DC Contests and Challenges / Re: "Unconventional Encryption Challenge"
|
on: June 22, 2012, 01:18:24 AM
|
Although I´d love to have a go at it, I honestly don´t have the time for it, especially when it´s an obscure unknown method  I'm sorry, do I detect an irony machine?  Heh - nothing is secure forever, however I think I made my point : ) One more comment: put fancier, this whole thing started with a clash between "it can't be secure" (and it probably isn't) vs "Me, No, I don't have the energy to break it". So it gets into "just how far up the hacker chain DOES it take to break brand new codes?" I agree! Also, it depends on the reward for breaking it I guess. People generally are more willing to give a crack at a $100,000 challenge or something that contains information that has merit for them.
|
|
|
|
|
7
|
DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers
|
on: June 21, 2012, 05:18:03 AM
|
I still don't quite get what SubStr() is doing, but from a forum snippet I added the "6 digit" part [ copy or print] mySerial := 1 myFactor := 2 ^g:: ; Ctrl+G, change to whatever you want. { mySerial := SubStr("000000" . mySerial, -5) SendInput, % mySerial mySerial += myFactor } Return I don´t know AHK very well, but I can imagine SubStr() is Substitute String. Which brings me to the next point, that you are effectively converting your integer to a string. The proper way do it is converting the return value and leaving the integer alone: [ copy or print] mySerial := 1 myFactor := 2 ^g:: ; Ctrl+G, change to whatever you want. } SendInput, % SubStr("000000" . mySerial, -5) mySerial += myFactor } Return I don´t know if AHK cares about it, but it´s good practice in programming and other languages would not accept such an implicit conversion. 
|
|
|
|
|
9
|
Special User Sections / Older DC Contests and Challenges / Re: "Unconventional Encryption Challenge"
|
on: June 20, 2012, 06:32:34 AM
|
|
As a self-proclaimed expert on classical (pen-and-paper) cryptography, I just had to reply to this thread. If you want to challenge people to crack your self-made cipher, then it is common practice to post the exact method of encryption and decryption. Explain in detail how the cipher works and give some examples. Then you can post a challenge ciphertext, encrypted with unknown key(s). Be advised though, many "innovative" methods of encipherment boil down to one or another method that already has been in use for centuries.
|
|
|
|
|
10
|
DonationCoder.com Software / Argus / Re: Command line options?
|
on: February 19, 2010, 05:31:45 AM
|
|
Hi groston,
Currently the functionality you want is not readily available. Argus includes a command line version in the download (argusc.exe), which accepts the path to search in, so maybe you can work with that. I am however currently creating a second version of the program's core engine, which I had planned to release as part of the NANY 2010, but I unfortunately ran out of time.
This second version will not be a end-user application, but rather a DLL for application developers to use in their own implementations. It will of course be absolutely free to use, so if you're interested I can notify you when it's finished for testing. I will release it through DonationCoder.com when it's done, so you can also check this forum for updates.
Regards, Ruffnekk
|
|
|
|
|
15
|
Main Area and Open Discussion / Living Room / Super Mario AI Competition
|
on: September 11, 2009, 01:27:06 AM
|
Hi all, I want to let you know about a unique competition for Java programmers. It involves writing an AI controller to play randomly generated Super Mario Bros. levels. You will get a basic package of Java classes that you can use to test and play the game and write your controller around. You can enter the competition for free and win up to $500 if you can beat the other AI agents! More information about this competition can be found at http://julian.togelius.com/mariocompetition2009/. I'm not affiliated with the organisation of the competition in any way. It might be nice to set up a DC team and see what we can come up with...
|
|
|
|
|
16
|
Other Software / School Showcase / Re: Hangman - A Game by Ruffnekk from VB.net Assignment 1.10
|
on: September 11, 2009, 01:07:48 AM
|
where's a good place to get some word lists? including some default ones would be nice.  Basically, if you download any book from places like the Gutenberg Project, and you load that into the game, you will have more than plenty of words to play with. The game will filter out any duplicates. I never intended this to be made public, otherwise I would have paid some more attention to details like this 
|
|
|
|
|
17
|
Other Software / School Showcase / Re: Hangman - A Game by Ruffnekk from VB.net Assignment 1.10
|
on: September 10, 2009, 04:47:18 AM
|
A thing that kinda sucks, though, is that you can't drag the window around - having it forced to be centered is a bit annoying. It does look pretty nice, though  Yeah I know.. I was just playing it just now and it annoyed me too! *lol* Back then I think I primarily focused on the 'dot-matrix' GUI then anything else 
|
|
|
|
|
18
|
Other Software / School Showcase / Re: Hangman - A Game by Ruffnekk from VB.net Assignment 1.10
|
on: September 10, 2009, 02:39:03 AM
|
|
I should note that you have to have a text file with some words in it -- each word on a separate line. You can load this file in the game and it will use these words, keeping track of the words used before.
Also, you can change the "font" by editing Matrices.txt. Each character is a 5x5 matrix with an "X" indicating a filled point and a "_" (underscore) indicating an empty point.
|
|
|
|
|
21
|
DonationCoder.com Software / Argus / v1.1 released
|
on: April 26, 2007, 01:14:02 PM
|
Please visit the Argus Panoptes website to download the new 1.1 version, which includes support for drag-n-drop operations. You can now drag and drop one or more files and folders onto the included files list to add these automatically to your search scope. If you drop a folder, the currently selected Filter Template will be used to determine the files to include.
|
|
|
|
|
24
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: Count my jazz albums
|
on: April 13, 2007, 02:06:56 AM
|
Okay let me get it straight. He has a drive with a couple of folders, of which one is the folder containing his CDs. That folder has many subfolders by artist, and each artist has their albums. This last folder may or may not be subdivided depending on whether there is one or more CDs to the album (In some cases there are over 20 CDs to any given album). In some cases this last level may be broken down even further.
Does the tool need to count these subdivisions as well? Root |---CDs |---Artist |---Album1 |---CD1 |---SubCD1 |---SubCD2 |---CD2 |---CD3 |---Album2 |---CD1 |---Other stuff
So in this example, would he like to have CD1, CD2 and CD3 included in the count? And what about SubCD1, SubCD2? And the Album1, Album2 folders should not be counted if they have subfolders? Another question: is a count all he wants for output? I can write up something if I know that 
|
|
|
|
|
25
|
Other Software / Developer's Corner / Interesting String Manipulation Problem
|
on: April 13, 2007, 01:37:44 AM
|
|
A friend of mine asked me to code a little tool that can take any string of morse code and output all possible translations of it. At first glance this seemed easy enough, but it turns out to be rather tricky and I'm kind of stuck.
To clarify the problem, I will give an example. I use dots (.) and dashes (-) for morse code.
D O N A T I O N -.. --- -. .- - .. --- -.
Now, to parse this and get the word 'DONATION' is easy, but what if the spaces were left out?
-..----..--..----.
Taking into account that a morse code 'character' can consist of 1 to 7 dots or dashes (letters, digits and punctuation) the problem arises.
What I need is an (recursive) algorithm that can split the string without spaces into all possible groups of substrings, with a maximum length of 7 chars per substring. It will start at some point, for example 1 1 1 1 1 1 1 1... and iterate through all possible combinations. In the example given, the first morse code character can be - (T) or -. (N) or -.. (D) or -..- (X).
I realize the number of possibilities will grow very large, but that's not the issue.
EDIT: Please realize that the relative positions of the morse code characters do not change.
So does anybody have an idea? Any ideas are welcome, and sample code is appreciated in any language.
|
|
|
|
|