Show What You're Working On

Associate
Joined
13 Aug 2013
Posts
60
Location
OcUK HQ
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
 
Soldato
Joined
23 Dec 2010
Posts
3,483
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!
 
Soldato
Joined
6 Jan 2005
Posts
3,633
Location
Cambridge
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:
Soldato
Joined
23 Dec 2010
Posts
3,483
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:
Associate
Joined
10 Feb 2009
Posts
1,893
Location
Leicester
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:
Associate
Joined
20 Sep 2003
Posts
2,361
Location
Scotland
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.
 
Associate
Joined
28 Feb 2013
Posts
2,468
Location
Birmingham
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.
 
Associate
Joined
16 Mar 2013
Posts
396
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.
 
Associate
Joined
20 Sep 2003
Posts
2,361
Location
Scotland
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?
 
Associate
Joined
16 Mar 2013
Posts
396
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.
 
Associate
Joined
2 Aug 2012
Posts
143
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!
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
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:
Associate
Joined
2 Aug 2012
Posts
143
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 :)
 
Associate
Joined
27 Jun 2008
Posts
1,538
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.
 
Soldato
Joined
6 May 2003
Posts
2,758
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