Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Morning Stretches

I saw an image posted by Bonfire earlier that he got off of /g/. It got me thinking that the best way to learn is by doing so this thread is no available to assist programmers of a variety of skill levels with any task in the following graphic. I will be doing these tasks as well to keep my fingers busy today. Anyone else who feels confident in their ability is welcome to discuss these mini-projects and any of the more complex problems they are having.
Spoiler (Click to View)
However there are some ground rules:
1) You will receive help proportional to the effort you put in. If your current code is just a main() with no content I will probably not even reply.
2) You will NOT receive completed code and all code should be posted in spoiler tags to prevent ruining other's chance to learn for themselves.
3) Try to keep flaming of other programmers (even newbies) to a minimum as this thread is meant to be an encouraging environment.

Also I will substitute the graphic with a smaller one once I wake up a bit more.

If you are having trouble choosing one of them to start on try this link for a random number http://www.random.org/integers/?num=1&mi...=1&base=10
When did your name become !LiNuXCQGns?
(Jun 29, 2014 08:05 AM)-Base- Wrote:  When did your name become !LiNuXCQGns?

If you read the text above you would see I state that this isn't my image. I also left the created by statement intact as LiN made a pretty good list. I usually try to make is obvious when something isn't my work, but I always forget that people don't read text in posts under the tutorial tag. :D

00-04 Complete, Now for some breakfast.
I did 22-Sudoku solver a few years ago, if you want a slightly bigger challenge than that, create a killer sudoku solver :)

Good luck
(Jun 29, 2014 08:41 AM)Ben121 Wrote:  I did 22-Sudoku solver a few years ago, if you want a slightly bigger challenge than that, create a killer sudoku solver :)

Good luck

I've done more than a few of these at various points in my learning process. I am purposefully not reusing any code from my old projects though as that would cheapen the enjoyment of this :D
(Jun 29, 2014 08:42 AM)Psifour Wrote:  I've done more than a few of these at various points in my learning process. I am purposefully not reusing any code from my old projects though as that would cheapen the enjoyment of this :D

Most of them look like fairly fun mini-projects, some of them I think I recognise from project euler and other places.

The chip-8 emulator looks like it could be an interesting one, which reminds me did you look any more at the gamecube ROMs?
(Jun 29, 2014 08:56 AM)Ben121 Wrote:  Most of them look like fairly fun mini-projects, some of them I think I recognise from project euler and other places.

The chip-8 emulator looks like it could be an interesting one, which reminds me did you look any more at the gamecube ROMs?

Yes, I did look into them. They store a file list at an address indicated by the 0x424 byte (1060th byte). Parsing that was simple enough in games that were published directly through Nintendo as there is a certain amount of standardization. My app doesn't handle odd roms or non-US roms very well, but it worked more than well enough to rip the files from Final Fantasy: Crystal Chronicles (which was my main goal). The coding got really ugly towards the end and I will need to clean it up before I consider releasing it publicly.

On that project my current goal is to convert the model/texture files from FF:CC into a format that is readable by blender (preferably the rigging too as I hate rigging models). Once I have that I plan on doing some augmented reality backgrounds for my desktop using the female selkie ('wolfy' hair if any of you are familiar with the hair-styles from that game). I tend to find one or two characters I really love from each game and add them to my backgrounds folder, but there aren't that many good backgrounds featuring the selkie from FF:CC.

Also, I got to play more with the RandomAccessFile class while working on this and it is amazing. For working out of a 1.5GB file there was almost no loading delays. That combined with the ability to write to the file synchronously makes it really neat ("rwd"-mode). It could very easily become my goto method for interacting with files (baring special use cases where things like ObjectOutputStreams would behave better).
Looks good Psifour, I might do some of these challenges myself.
Best of luck to those participating!
Added a random number generator link to OP. Also got a 78 from it so guess I am doing the Chip-8 emulator next.
Hm. Definitely some stuff I haven't seen before, might do some of these. Definitely look interesting.

Gonna cheat a bit though and do these in Python. I have actual need of learning/getting better at Python rather than Java at the moment.
[Image: QmUOY2P.png]
Ended up just handling the byte-code for the Chip-8 as I don't feel like rendering it's 64x32 screen. :P
Overall it is a neat little system and resembles the early stages of Java. It was a nice stretch, but didn't allow me to really learn anything new (other than some specifics about chip-8). I would recommend it to anyone who wants practice working with bit-operators and doesn't know why signed v. unsigned can be a problem.
for the random name generator, do you just put a whole list of names in an array? or is there some way to import/call a dictionary of names?
(Jul 1, 2014 03:18 PM)dirtboy123 Wrote:  for the random name generator, do you just put a whole list of names in an array? or is there some way to import/call a dictionary of names?

My method was to take the top 100 most popular first, middle, and last names and then randomly choose between them. That gives you a million possible names which for most purposes can be considered random. A more complex approach would be to generate names from phonetic rules, but that starts to get into languages in ways I don't understand.

To be specific you can probably find a library that contains name lists, but it will be easier to just make arrays yourself.
(Jul 1, 2014 04:10 PM)Psifour Wrote:  My method was to take the top 100 most popular first, middle, and last names and then randomly choose between them. That gives you a million possible names which for most purposes can be considered random. A more complex approach would be to generate names from phonetic rules, but that starts to get into languages in ways I don't understand.

To be specific you can probably find a library that contains name lists, but it will be easier to just make arrays yourself.

Okay great! Thank you, and yeah i looked up that phonetic approach and looks a little complex lol

What exactly is number 2 wanting one to do. It says higher/lower | heads/tails. Sorry if it is a really stupid questions lol. I am guessing for the heads/tails part i will just take user input through a scanner and they guess if it will be heads or tails. But what is the higher/lower part mean? --- EDIT: Okay i got it, it is a guessing game :D
Did 52,35 a half year ago.

My question about 69 is: Is it possible to convert java-android to php?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by MortMyreJan 11, 2013 07:03 PM 2 83 Jan 11, 2013 07:03 PM
Last Post: log dot zip