Author Topic: XConsole  (Read 35772 times)

0 Members and 2 Guests are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #15 on: December 24, 2010, 01:56:29 pm »
UPDATES: check my first post and re-download the JAR. It should also work with java 5
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: XConsole
« Reply #16 on: December 24, 2010, 02:10:56 pm »
Okay, using the source from earlier, I found that using PATHEXT is an environment variable only for windows. It will not work on mac, and will return null. Make sure you check null on ever little thing you do, unless you know it will never ever return null.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: XConsole
« Reply #17 on: December 24, 2010, 02:11:49 pm »
UPDATES: check my first post and re-download the JAR. It should also work with java 5

It's the only update? (working both in Java5 and Java 6?)
« Last Edit: December 24, 2010, 02:11:59 pm by ScoutDavid »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: XConsole
« Reply #18 on: December 24, 2010, 02:12:49 pm »
UPDATES: check my first post and re-download the JAR. It should also work with java 5

It's the only update? (working both in Java5 and Java 6?)
Yeah, and I do believe it will work with Java 5 now. Although the version still shows 1.6.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #19 on: December 24, 2010, 03:51:01 pm »
No, there are some other updates as well. Also, Graph, what environment var should be used for Mac?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: XConsole
« Reply #20 on: December 24, 2010, 04:20:07 pm »
If you still need the tokenizer thing... you could use regex ;)
Code: ("Java!") [Select]
Pattern Splitter = Pattern.compile("(\"[^\"]*\"|[^\"][\\S]*)\\S?");
Matcher m;
int end = -1;
int x = 0;
String[] args = new String[100]; //Or whatever you think the max amount of arguments might be
while (end + 1 < msg.length()) {
    (m = Splitter.matcher(msg)).find(end + 1);
    end = m.end();
    args[x] = m.group();
    x++;
}
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: XConsole
« Reply #21 on: December 24, 2010, 04:31:16 pm »
No, there are some other updates as well. Also, Graph, what environment var should be used for Mac?
Actually, for mac a executable file doesn't necessarily have an extension. To have it run in a mac terminal, you would do "./<program name here>" or just the program name if you have it set up correctly.
« Last Edit: December 24, 2010, 11:13:57 pm by graphmastur »

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: XConsole
« Reply #22 on: December 24, 2010, 04:48:19 pm »
If you still need the tokenizer thing... you could use regex ;)
Code: ("Java!") [Select]
Pattern Splitter = Pattern.compile("(\"[^\"]*\"|[^\"][\\S]*)\\S?");
Matcher m;
int end = -1;
int x = 0;
String[] args = new String[100]; //Or whatever you think the max amount of arguments might be
while (end + 1 < msg.length()) {
    (m = Splitter.matcher(msg)).find(end + 1);
    end = m.end();
    args[x] = m.group();
    x++;
}


or you could use the split() method, or a StringTokenizer object if you don't need as much power as regular expressions provide.


Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #23 on: December 24, 2010, 11:11:27 pm »
Thanks for all your ideas. Graphmastur, could you tell me what environment var I should substitute on Mac for the PATH var?
Thx.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: XConsole
« Reply #24 on: December 24, 2010, 11:13:41 pm »
Thanks for all your ideas. Graphmastur, could you tell me what environment var I should substitute on Mac for the PATH var?
Thx.
PATH. The environment variable should be defined to /usr/local/bin and a few other places. note that they are ":" separated.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #25 on: December 24, 2010, 11:21:43 pm »
Thanks. Updated source attached.
EDIT: to get it to compile remove the part that initializes cdir.
« Last Edit: December 24, 2010, 11:31:45 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #26 on: December 25, 2010, 12:05:00 am »
A few more updates. the current directory is now correctly found. It's all working, but javac oddly crashes it...
Any ideas?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #27 on: December 25, 2010, 10:21:36 am »
Yay! +4 Respect! More updates. The end process thing in the menu now correctly ends javac as well.

I apologize for double-posting.
« Last Edit: December 25, 2010, 10:22:28 am by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Ashbad

  • Guest
Re: XConsole
« Reply #28 on: December 25, 2010, 10:23:06 am »
eh, more like triple posting, but it's fine, since you have updates for XConsole ;)

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: XConsole
« Reply #29 on: December 25, 2010, 10:28:15 am »
Cool. Also, anyone want to make the help menu?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results: