Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cooliojazz

Pages: 1 ... 6 7 [8] 9 10 ... 41
106
Minecraft Discussion / Re: List of Minecraft servers
« on: April 09, 2012, 08:04:20 pm »
I fixed NomCraft, so my server's actually not lying when it says it's up, and DJ_O, mine's always up (unless it crashes, then its down till I notice and fix it =P)

107
Computer Programming / Re: Regex (regular expressions)
« on: April 05, 2012, 06:16:36 pm »
The character class is so it will capture \ characters, without it, it will return just \ if you say have '\a' instead of what it should, which is \a.  The problem is that you probably didn't re-escape everything... =P if you wanted to actually put it in a string it would need to be "\'([^\\\\]|\\\\.)\'". (Do you really need to escape single quotes in strings defined with double quotes?)
EDIT, also I'm curious, what does the @ do?

108
Computer Programming / Re: Regex (regular expressions)
« on: April 05, 2012, 04:47:05 pm »
How about /'([^\\]|\\.)'/ does that do what you want?

109
Minecraft Discussion / Re: List of Minecraft servers
« on: April 03, 2012, 08:27:40 pm »
unrealphantasies.tk:25565 non whitelisted, uses bukkit, and i wont install minequery, but if you want to parse it, http://unrealphantasies.tk/stats.txt
EDIT: It thinks it's up right now, but its really not, because my latest addition to nomcraft (map rendering) completely borked it and im still working on fixing it... XD

110
Web Programming and Design / Re: Javascript execution order
« on: April 02, 2012, 09:21:19 pm »
I'm a little confused about the question honestly.  Could you also paste this part from your code?  Then i might be able to help =)

111
Web Programming and Design / Re: PHP opendir() of an external page
« on: March 31, 2012, 08:45:52 am »
No, it is not.

112
Official Contest / Re: Omni SC2 tourney I: Jsj795 wins!
« on: March 31, 2012, 08:23:33 am »
DJ, the only problem with doing a BW tournament is that I want to stab myself in the face every time I play it now because after SCII, I can't stand how retarded things like the pathing system are =P  Also, naw, we were planning on doing the whole thing tomorrow.  Thats why it starts at noon.

113
Official Contest / Re: Omni SC2 tourney I: Jsj795 wins!
« on: March 31, 2012, 01:09:48 am »
I am, not for omnimaga, but for http://unrealphantasies.tk this weekend... (http://unrealphantasies.tk/?action=sctourney)

114
DJ, I was searching for a way to do something like that, but java's screen-capturing utility basically just captures the whole area including windows in your program, so to do something like that, I would have to make the program constantly minimize and un-minimize itself, or constantly toggle between full size and (0,0), or something like that every time i capture the screen, all which take far too long and/or render the program un-interactable (have fun trying to close it now... =P) So i figured just leaving it fixed in the corner would serve the purpose at least...

115
Sure
Code: [Select]
package screenrepeater;

import java.awt.*;
import java.awt.image.*;
import javax.swing.*;

public class ScreenRepeater extends JFrame {
   
    Image background = null;
    boolean bglock = false;

    public static void main(String[] args) {
        ScreenRepeater sr = new ScreenRepeater();
        sr.setSize(200, 200);
        sr.setAlwaysOnTop(true);
        sr.setVisible(true);
        sr.setDefaultCloseOperation(sr.EXIT_ON_CLOSE);
    }
   
    public ScreenRepeater() {
        Thread ssUpdater = new Thread() {
            public void run() {
                AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC, 0.2f);
                while (true) {
                    long time = System.currentTimeMillis();
                    try {
                        background = new Robot().createScreenCapture(new Rectangle(0, 0, getWidth(), getHeight()));
                        temp = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_4BYTE_ABGR);
                        Graphics2D g2 = (Graphics2D)temp.getGraphics();
                        g2.setComposite(ac);
                        g2.drawImage(background, 0, 0, null);
                        setTitle((1d / (double)(System.currentTimeMillis() - time) * 1000) + "");
                        sleep(1);
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    }
                }
            }
        };
        ssUpdater.start();
        Thread repainter = new Thread() {
            public void run() {
                while (true) {
                    try {
                        repaint();
                        sleep(10);
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    }
                }
            }
        };
        repainter.start();
    }

    BufferedImage temp;
   
    @Override
    public void paint(Graphics g) {
        g.drawImage(temp, 4, 25, null);
    }
}
Just probably don't try to learn good habits off of how I write code... =P

116
nxtboy, did you actually try the program i wrote?  it doesn't necessarily show EXACTLY 3 frames at EXACTLY 30% opacity every time, it more layers a crapload of them at closer to 40%, but it has a similar effect to what you want I think... since I don't have that emulator i obviously couldn't test the exact values to make it seem grayest...

117
To completely capture the whole screen sans-ss and then combine it with other ss, and then redisplay the combined ss fullscreen would take some sort of native hacks I feel like.  This was the closest i could get in java i think, good enough?

118
Miscellaneous / Re: MikuMikuDanceAdventures
« on: March 17, 2012, 02:05:08 am »
>Miku: OH MY GOSH THIS REQUIRES IMMEDIATE INVESTIGATION! GOGOGOGOGOGO! SEE WHAT IT IS!

119
Miscellaneous / Re: MikuMikuDanceAdventures
« on: March 15, 2012, 09:21:44 pm »
>Miku: Investigate those white lines.  They are probably string is my guess.  If they are, play with them like a cat!

120
Miscellaneous / Re: MikuMikuDanceAdventures
« on: March 15, 2012, 01:50:37 am »
>Miku: Dance slowly and poetically.  Maybe add some fancy spins or some shit!

Pages: 1 ... 6 7 [8] 9 10 ... 41