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 - jnesselr

Pages: 1 2 3 [4] 5 6 ... 165
46
Other Calculators / Re: State of the Calculator at Boot
« on: August 07, 2011, 10:33:08 pm »
edit: wait, why are there a couple of bytes missing in the jp 0 case?
Most likely because they couldn't be read at the time for some reason, but I'm curious as well.

Also, what is the reason that you need to pull the link lines low?

47
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 12:48:40 pm »
Instead of an array, try something else.  If you are kinda good with number systems, think of it this way.  You have a base 26 number.  If you have a function that converts that number into the correct string, then you just have to constantly increase the number by 1 each time.

48
Miscellaneous / Re: The Latest Ubuntu Installer Rocks
« on: July 26, 2011, 11:12:44 pm »
lol, my favorite line in omnomIRC "in the middle of the damn install".

That's awesome.  I have 10.10 or something like that, and it keeps popping up asking me if I want 11.04.  If it didn't kernel crash last time I did that, and be the worst pain ever getting my system back. Of course, I could click "never again" or whatever, but what if I changed my mind. Ah, the agony!

49
Other Calculators / Re: Spacky Emprise
« on: July 26, 2011, 11:08:53 pm »
great scott, you melted!

50
Official Contest / Re: ReadMe Fights
« on: July 26, 2011, 06:31:08 pm »
My readme was epic! Oh wait, I didn't have a contest entry... Must have got sent to /dev/null.

51
News / Re: Five new Coders of Tomorrow hired
« on: July 22, 2011, 12:43:55 am »
No.  It means you keep smoking Sircmpwns (slang names are comepown, Sir, coding knight, CPN, sweet stuff, Ginger, programmer, etc.) really nasty drug.
Whoa, whoa, whoa.  Wait a minute.  Sir's not a ginger.  I am.  Thus, your facts are incorrect and I'm insulted.

Okay, I'm not insulted, but Sir's not a ginger...
I always thought you were about on the soulless side... j/k, j/k

52
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: July 20, 2011, 11:59:32 am »
1792: You file bug reports with people's parents.
1792: You file bug reports with people's parents.
1793: you quote double posts before deleting them.
1794: You can delete other people's posts.
1795: You write inside other people's quotes.
1796: You notice right off the bat what's wrong.
1797 (ztrumpet): You write inside of others' posts so you don't have to write inside their quotes.

53
OmnomIRC Development / Re: Private Messages Cleared
« on: July 20, 2011, 12:10:06 am »
Wow, that's awesome.  I didn't know you could do that.  I hope the bug is fixed, though.

54
Other Calculators / Re: USB Devices with TI 83/84 + (SE)
« on: July 19, 2011, 03:30:00 pm »
For the record, I wouldn't strip the USB cable.  I just bought a mini-A to A female.  It was pretty cheep, IIRC.

55
Ew, chained if statements.  Case checking is better.  ;).  And in many cases, faster.
Not necessarily in this case, nor in all cases, is case checking better.

56
I want to enter another if (message.equalsIgnoreCase( outside of the checks for what user sent the message. Where can I put this?
Um... what?
Code: [Select]

import org.jibble.pircbot.*;

public class BryceBot extends PircBot {
public BryceBot() {
this.setName("BryceBot");
}
   
public void onMessage(String channel, String sender,
                       String login, String hostname, String message) {
if (message.equalsIgnoreCase("$time")) {
String time = new java.util.Date().toString();
sendMessage(channel, sender + ", The time is now " + time);
}
if (message.equalsIgnoreCase("$op")) {
if (sender.equalsIgnoreCase("KittyGirl")) {
op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
if (sender.equalsIgnoreCase("UbuntuGuy")) {
op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
if (sender.equalsIgnoreCase("Ti-PrgmR")) {
op(channel, sender);
sendMessage(channel, sender + ", you have been opped.");
}
}
}
}

Also, this bot isn't very secure, because I can simply log in as "KittyGirl", get Opped, and do a /nick to graphmastur.  But if you don't want to check the sender, then don't check the sender. 

57
Other Calculators / Re: USB Devices with TI 83/84 + (SE)
« on: July 19, 2011, 01:38:53 pm »
Oh, my, if it wasn't right before lunch, I would answer all those questions for you.  Since I am about to eat, I'm sorry, but I'll only answer these few.

There is no complete documentation for the calculator.  If you know z80 (And I mean really well) you can look at brandonw's svn (which I will not link to, nor should anyone link to anything of brandonw's.  PM me for a link) and learn from that code like I did/am doing.  This page isn't complete, but has quite a few resources with it.  Definitely be sure to go down to the very bottom under the "In other News" section.

EDIT: Also note, that even brandonw and I can't give you complete documentation.  I usually go to brandonw for questions, but I would definitely study his code. (again, I'm not putting a link here)

58
Axe / Re: Nibbles problem
« on: July 19, 2011, 11:42:59 am »
Is it supposed to be GDB1+Z*2? Because isn't that the same thing as (GDB1+Z)*2?

Also, to debug, try doing A050A05000000000 instead of F0F0F0F0.

59
Miscellaneous / Re: Post Your Cave
« on: July 19, 2011, 11:18:42 am »
<picture html removed>

I has more monitors than you do.
I has more envy then you do
I guess lobsters need more monitors...

EDIT: gah, why did you use html???

60
Alright, guys, I've used PircBot A LOT before. I've also used java without any PircBot.  You cannot declare multiple methods of the same name, and expect it to work.  There is only one onMessage to override.

So put all of your if statements inside that one onMessage method.  What I do, is I create another class called BotonMessage, and have a static method called onMessage.  I create one Bot class, in your case I'm assuming it's going to be called BryceBot, and I implement the onMessage method with a call to BotonMessage.onMessage(), but I use the same parameters.  This makes your code a lot easier to manage.

Pages: 1 2 3 [4] 5 6 ... 165