Show What You're Working On

Thought i'd post what I've been working on for the past week, creating a high polygon 3D mech for personal portfolio.

9kxlhs.jpg
 
Well trying to get my assignment to work, luckily enough I've been given another week because I fell quite ill last week and wasn't able to work on it.

Basically it's a Sudoku Solver application, I've managed to implement a simple (yet effective) algorithm to do the solve - as shown below.

Code:
0 0 0 0 0 0 0 0 0 
0 3 1 8 0 0 7 0 0 
0 0 9 0 0 7 0 6 0 
0 4 0 0 0 5 0 0 1 
0 7 0 0 6 0 0 2 0 
5 0 0 1 0 0 0 4 0 
0 5 0 3 0 0 4 0 0 
0 0 2 0 0 6 3 8 0 
0 0 0 0 0 0 0 0 0 
Here is your completed Suduko Puzzle
7 2 5 6 3 1 8 9 4 
6 3 1 8 4 9 7 5 2 
4 8 9 2 5 7 1 6 3 
2 4 6 7 8 5 9 3 1 
1 7 3 9 6 4 5 2 8 
5 9 8 1 2 3 6 4 7 
8 5 7 3 9 2 4 1 6 
9 1 2 4 7 6 3 8 5 
3 6 4 5 1 8 2 7 9
However, I'm trying to get it to open a blank text file - example being.

Code:
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
And put it into an array like...

Code:
int[][] board = {
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},
       {1,2,3,4,5,6,7,8,9},       
        };

Just can't seem to do it, I've tried the JavaTokenizer but I Just get random input - example.

Code:
49 50 51 52 53 54 55 56 57 
10 49 50 51 52 53 54 55 56 
57 10 49 50 51 52 53 54 55 
56 57 10 49 50 51 52 53 54 
55 56 57 10 49 50 51 52 53 
54 55 56 57 10 49 50 51 52 
53 54 55 56 57 10 49 50 51 
52 53 54 55 56 57 10 49 50 
51 52 53 54 55 56 57 10 49

Here is my code.

Code:
int[][]board = new int[9][9];

        try {
            File file = new File("keiron.sud");
            FileReader fileReader = new FileReader(file);
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            StringBuffer stringBuffer = new StringBuffer();
            String line;
            while ((line = bufferedReader.readLine()) != null) {
                stringBuffer.append(line);
                stringBuffer.append("\n");
            }

            fileReader.close();
            String data = stringBuffer.toString();

            int numberIntegers = data.length();
            int counter = 0;

            for (int i = 0; i < 9; i++) {
                for (int j = 0; j < 9; j++) {
                    int integer = data.charAt(counter);
                    counter++;

                    board[i][j] = integer;
                }
            }
        } catch (FileNotFoundException e) {
            System.out.println("FileNotFound");
            e.printStackTrace();
            System.exit(0);
        } catch (IOException e) {
            System.out.println("IOException");
            e.printStackTrace();
        }

I just can't seem to friggen do it!
 
I don't know Java, but I would do it by splitting the string by "\n", which would indicate a new line. This would then make it possible to have different sized sodoku tables(They exist, right?).

Then I would split those lines into individual characters and put that into an array.

lines[] = String.Split(thefile, "\n");
counter = 0;
foreach x in lines[x] {
y[] = String.Split(lines[x], something which splits per character)
char[x, counter] = y[counter]; we need some loop here
counter++
}

char[] will be holding all the sweet info.

This may or may not make any sense, or be a worthwhile solution.
This code wont work, so it's not worth putting in code tags, it's just an example in no language in particular.
 
Last edited:
"y[] = String.Split(lines[x], something which splits per character)"

You could use toCharArray() to get a character array from the String object. Don't think you'd want split there. ;)
 
I'm getting other issues now.

Code:
   public static void main(String[]args) throws IOException {
       
        int[][] board = new int[9][9];
        
        
            File file = new File ("keiron.sud");
            FileReader fileReader = new FileReader(file);
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            StringBuffer stringBuffer = new StringBuffer();
            String newline;
            while ((newline = bufferedReader.readLine()) != null) {
                stringBuffer.append(newline);
                stringBuffer.append("\n");
            }
            fileReader.close();
            String data =  stringBuffer.toString();
            int counting = data.length();
            int counter = 0;
            
            int i,j;
            
            for(i = 0; i<9; i++) {
                for (j =0; j < 9; j++) {
                    int numbers = data.charAt(counter);
                    counter++;
                    
                board[i][j] = numbers;

                }

            }
            Print(board);

        }
Output.

Code:
49 50 51 52 53 54 55 56 57 
10 49 50 51 52 53 54 55 56 
57 10 49 50 51 52 53 54 55 
56 57 10 49 50 51 52 53 54 
55 56 57 10 49 50 51 52 53 
54 55 56 57 10 49 50 51 52 
53 54 55 56 57 10 49 50 51 
52 53 54 55 56 57 10 49 50 
51 52 53 54 55 56 57 10 49
Starting to rattle me a little bit.
 
Last edited:
Now working on this for a local cafe:

~~C&G Cafe Img~~

In browser if you prefer: http://cordialandgrace.jonesmillbank.com

Either I'm being dumb or that website is broke, I can't seem to click on anything on the link you posted? haha :p

and coming to the design thing, its quite is easy tbh.. you can create something that looks nice and simple to use, like the windows 8 'flat' look :) but when it comes to something a bit more flashy then I agree, it can be hard to put a design into code.
 
Last edited:
Working on a small taxis business website.

gordons_taxis.png


Just need to figure out the CSS to get the layout working in a browser. Still trying to get to grips with CSS so could be tricky, especially the overhang on the navbar and footer.
 
Currently coding a simple program in C++ (Visual Studio 2012) to calculate quantities in special relativity entered by the user (such as calculating length contraction, time dilation, relativistic momentum etc). I have some more plans for what to include in the full program, but it's early days yet and just something to do on the sidelines during university.
 
I'm just polishing this off at the moment http://delta.globotek.net.

Has got a tonne of cool coding in the background to handle data and automate the site as much as possible. Ripped WooCommerce apart to make the ecommerce functionality and the countdown timer on the homepage was fun. Deletes the event once the clock hits zero and loads up the next one.
 
I'm just polishing this off at the moment http://delta.globotek.net.

Has got a tonne of cool coding in the background to handle data and automate the site as much as possible. Ripped WooCommerce apart to make the ecommerce functionality and the countdown timer on the homepage was fun. Deletes the event once the clock hits zero and loads up the next one.

Really liking this mate, nice work!

What you using to achieve the image rotation on the front page?
 
Really liking this mate, nice work!

What you using to achieve the image rotation on the front page?

Thanks Dez. Been ironing out the bugs this week. Things like making sure the next available event is pulled in for the countdown and not the last available.

The slider on the homepage is layerslider. http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/1362246

It's pretty good value for what it does but, it can be a bit tempermental.

On this site, shameless plug coming up (http://ultimategamingparadise.com/) it caused weird behaviour like the page half loading and then crashing the tab, but only in Chrome and only if you'd spent 30 seconds or so on another page before navving back to the home page. Wasn't even across all users. When I upgraded to Windows 8, the problem went away. Bloody odd!

Always good to have a backup so my second choice is Nivo Slider, think that's the name. http://dev7studios.com/plugins/nivo-slider/

Both have awesome animations. Layerslider is just a template tag with slider ID as a parameter, can't remember how Nivo is implemented. Been a while since I used it.
 
there is some really amazing stuff in here, well done guys, particularly Rikki and russinating - love those website designs.

I dabbled with web design a few years ago mainly using dreamweaver. I got the basics of it down but didn't really like dreamweaver much. I then took the easy route of using wordpress themes... However I have recently started thinking about a new personal project and want to start getting to grips with web design again and want to eventually design a nice looking site myself (until i have the skill to do so i will use wordpress)

I was wondering if you guys could recommend some good books or websites/online courses for me to start getting to grips with HTML/CSS/Photoshop. Also what editor is a good one to start off with?

Thanks!
 
I then took the easy route of using wordpress themes... However I have recently started thinking about a new personal project and want to start getting to grips with web design again and want to eventually design a nice looking site myself (until i have the skill to do so i will use wordpress)

There's nothing wrong with using wordpress. It has a reputation as a bit of a nooby system but i think that's just because the sites you see which are obviously using wordpress are the ones that use the default theme built by people who dont know how to do much more. There are a lot of wordpress sites with custom built designs which you wouldnt notice were built in wordpress unless you look into the source code.

Wordpress is just a content management system like any other CMS, you can do whatever you want with the design.
The default themes make it easy to build a site quickly but once you know html/css you can build your own design entirely from scratch.
 
Last edited:
There's nothing wrong with using wordpress. It has a reputation as a bit of a nooby system but i think that's just because the sites you see which are obviously using wordpress are the ones that use the default theme built by people who dont know how to do much more. There are a lot of wordpress sites with custom built designs which you wouldnt notice were built in wordpress unless you look into the source code.

Wordpress is just a content management system like any other CMS, you can do whatever you want with the design.
The default themes make it easy to build a site quickly but once you know html/css you can build your own design entirely from scratch.

I know there is nothing wrong with wordpress, been using it for years - but I want to learn how to use HTML and CSS to make sites from scratch on my own :)
 
I have made... a Squirrel of all god dam things. I'm calling him Nutsack Nibbler. I rarely make organics so thought the pratice would help.

2uhydjk.jpg


Just boring viewport render. He has no texture yet and is blocky cause he's going into a game engine.
 
I'm converting a static site to Modx for the boss. I chose Modx over Wordpress as need to keep the look and feel - much easier to do with the templating features in Modx.

Original site is at http://www.conortravel.com, the WIP is at http://modx.artworkacademy.com

The WIP site still needs quite a lot of work and can be a bit sluggish as its on a fairly busy server with Bluehosts* - Don't know that I'd really recommend them for commercial sites due to heavy server load being the rule rather than the exception, but their one-click install service via Mojo is great for trying out stuff.

*I know, it's an affiliate link. Trust me, I need the money as an Adobe Creative Cloud subscriber.
 
Back
Top Bottom