webdevRefinery Forum: Animated gif -> sheet? - webdevRefinery Forum

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 02:43 PM (#21)

Final CS-102 project:

Mac: http://dl.dropbox.co...Nyan%20Bank.dmg
Jar: http://dl.dropbox.co...46/NyanBank.jar
Reserved.
0


User is offline NeilHanlon 

  • Group: Members
  • Posts: 885
  • Joined: 08-July 10
  • LocationRowley, Massachusetts
  • Expertise:HTML,CSS,PHP,Java,Graphics

Posted 20 April 2012 - 03:29 PM (#22)

View PostThatRailsGuy, on 20 April 2012 - 02:43 PM, said:




Couple notes on it:

The frame is editable. By that, I mean, I can type in it.

Also, the nyan cat runs over the scrollbar of the jFrame.

=/

Better than I could do though! Well - I mean, I guess it depends on what the project was. :P Here's what I did for a buddy's college Java class when he didn't understand the assignment.

Spoiler


Yes, very unclean code. But, it was a couple of years ago. :P
Thanks,
兄ニール

Website | Blog | @NeilHanlon | About.Me | Facebook | LinkedIn
0


User is offline callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 20 April 2012 - 03:34 PM (#23)

Quote

        System.exit(
                0);


?!
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is offline alexdavey 

  • Bringing XKCD to a post near you
  • Group: Members
  • Posts: 848
  • Joined: 05-November 10
  • LocationLondon
  • Expertise:HTML,CSS,PHP,Javascript

Posted 20 April 2012 - 03:48 PM (#24)

Posted Image

EDIT: Why does a 100MB .dmg only contain a 650KB application? Am I missing something?
0


User is offline NeilHanlon 

  • Group: Members
  • Posts: 885
  • Joined: 08-July 10
  • LocationRowley, Massachusetts
  • Expertise:HTML,CSS,PHP,Java,Graphics

Posted 20 April 2012 - 03:59 PM (#25)

View Postcallumacrae, on 20 April 2012 - 03:34 PM, said:

?!


        System.exit( 0 );


Happy?
Thanks,
兄ニール

Website | Blog | @NeilHanlon | About.Me | Facebook | LinkedIn
0


User is offline iCyan 

  • Group: Members
  • Posts: 204
  • Joined: 15-May 11
  • Expertise:HTML,CSS,Graphics,Flash

Posted 20 April 2012 - 04:01 PM (#26)

HOLY FUCKING SHIT.
I had my speakers on full blast.
I was leaning backwards on my chair when I opened that program.
I fell over.

Nice program.
iCyan Allias
2


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 04:50 PM (#27)

View PostNeilHanlon, on 20 April 2012 - 03:29 PM, said:

Couple notes on it:

The frame is editable. By that, I mean, I can type in it.

Also, the nyan cat runs over the scrollbar of the jFrame.

=/

To make the GUI and the text output :P yeah I should set it to uneditable. Ah, did the position on a Mac. The Nyan Cat was just a little hack to spice it up.

View Postalexdavey, on 20 April 2012 - 03:48 PM, said:

Posted Image

EDIT: Why does a 100MB .dmg only contain a 650KB application? Am I missing something?

That's the MP3 player, I'll double check that it's working. Are you on Lion or prev?

View PostiCyan, on 20 April 2012 - 04:01 PM, said:

HOLY FUCKING SHIT.
I had my speakers on full blast.
I was leaning backwards on my chair when I opened that program.
I fell over.

Nice program.

I lol'd very hard.

Too much?
Posted Image
Reserved.
0


User is offline Qasim 

  • Group: Members
  • Posts: 520
  • Joined: 25-October 10
  • LocationOntario, Canada
  • Expertise:HTML,CSS,PHP,Java,Javascript,Graphics

Posted 20 April 2012 - 04:56 PM (#28)

When I scroll, the anaimated image doesn't behave properly and frames start appearing randomly on the right side of the JFrame.
Qasim Iqbal
[HTML] [CSS] [JS] [PHP] [JAVA]
[ANDROID DEVELOPER] [CHROME WEB STORE DEVELOPER]
[WEBSITE] [FACEBOOK] [FORRST]
1


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 05:06 PM (#29)

View PostQasim, on 20 April 2012 - 04:56 PM, said:

When I scroll, the anaimated image doesn't behave properly and frames start appearing randomly on the right side of the JFrame.

Yes, it takes a little bit for the textarea to render, then for the NyanThread to render. You see that because the NyanThread is updating every 100ms while the JTextFrame is updating about once per second. This was just a fun little hack, if I actually wanted it to work properly I would have implemented my own JTextFrame and rewrote the render method and disabled the Window system's rendering.

Also, AlexDavey, you can use the JAR (labeled as "non-Mac") if you want the experience :P I should probably update the JAR to the colorful text one too.
Reserved.
0


User is offline arronhunt 

  • I'm a httpster
  • Group: Moderators
  • Posts: 3398
  • Joined: 09-March 10
  • LocationLos Angeles, CA
  • Expertise:HTML,CSS,Javascript,Graphics,Flash

Posted 20 April 2012 - 05:12 PM (#30)

I'm on 10.7, getting same error as Alex.

Also did you notice your Nyan cat is running backwards? :P
DO NOT OPEN THIS

Spoiler
0


User is offline alexdavey 

  • Bringing XKCD to a post near you
  • Group: Members
  • Posts: 848
  • Joined: 05-November 10
  • LocationLondon
  • Expertise:HTML,CSS,PHP,Javascript

Posted 20 April 2012 - 05:19 PM (#31)

View Postarronhunt, on 20 April 2012 - 05:12 PM, said:

I'm on 10.7, getting same error as Alex.

Also did you notice your Nyan cat is running backwards? :P


The jar file works fine.

@empty: I have no idea what I just opened.... but you have a typo at the end, it should be "robberies". With typos like that, it's as if you aren't taking your finals project seriously ;)
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 05:21 PM (#32)

View Postarronhunt, on 20 April 2012 - 05:12 PM, said:

I'm on 10.7, getting same error as Alex.

Also did you notice your Nyan cat is running backwards? :P

Probably when I recompiled it then, no I didn't know that :( I'll change the way the frames work then.

View Postalexdavey, on 20 April 2012 - 05:19 PM, said:

The jar file works fine.

@empty: I have no idea what I just opened.... but you have a typo at the end, it should be "robberies". With typos like that, it's as if you aren't taking your finals project seriously ;)

Yeah Eclipse pointed that out to me too q.q
Reserved.
0


User is offline iCyan 

  • Group: Members
  • Posts: 204
  • Joined: 15-May 11
  • Expertise:HTML,CSS,Graphics,Flash

Posted 20 April 2012 - 05:23 PM (#33)

View Postarronhunt, on 20 April 2012 - 05:12 PM, said:

Also did you notice your Nyan cat is running backwards? :P

I was gonna point that out too :P
When Photoshop splits the .gif file, the layers appear in reverse order from top to bottom.
Thus, when you use the script to export it, it renders the frames backwards. I ran into the same problem when I used the nyan cat animation (looping frames) in my computer science project ;)
iCyan Allias
0


User is offline NeilHanlon 

  • Group: Members
  • Posts: 885
  • Joined: 08-July 10
  • LocationRowley, Massachusetts
  • Expertise:HTML,CSS,PHP,Java,Graphics

Posted 20 April 2012 - 08:37 PM (#34)

I just happened to stumble on this during my daily imgur regimine.

http://imgur.com/gallery/iWaY1

Spoiler


I understand the application now.
Thanks,
兄ニール

Website | Blog | @NeilHanlon | About.Me | Facebook | LinkedIn
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 09:19 PM (#35)

View PostNeilHanlon, on 20 April 2012 - 08:37 PM, said:

I just happened to stumble on this during my daily imgur regimine.

http://imgur.com/gallery/iWaY1

Spoiler


I understand the application now.

:D Yeah I put a link to it in the source so my professor can get it too. I also do that with memes sometimes, such as checking when the length is... OVER NINE THOUSAND!

Source:
Teller[] tellers = {new Teller("John Went")}; // http://imgur.com/gallery/iWaY1

Reserved.
0


User is offline NeilHanlon 

  • Group: Members
  • Posts: 885
  • Joined: 08-July 10
  • LocationRowley, Massachusetts
  • Expertise:HTML,CSS,PHP,Java,Graphics

Posted 20 April 2012 - 09:21 PM (#36)

I can totally see you handing in code like that.

//actual stuff....

if(someString.length > 9000){
System.err.println('IT\'S OVER 9000!!!!');
}

//actual stuff.....


Thanks,
兄ニール

Website | Blog | @NeilHanlon | About.Me | Facebook | LinkedIn
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 20 April 2012 - 09:33 PM (#37)

Here's the exact,
// Over 9,000 reference
if(line.toLowerCase().matches("over nine thousand") && line.length() <= 9000 ) {
	System.out.println("That's under nine thousand, learn how to count.");
} else if( line.length() > 9000 ) {
	System.out.println("IT'S OVER NINE THOUSAND characters.");
}


In work projects, my placeholder text is generally an aliteration or a pun :) Spicing up my realtionship with code :P
Reserved.
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 02 September 2012 - 09:13 PM (#38)

Just saying, but if I open it in preview, I get 12 frames: http://d.pr/i/sKAD
0


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services