| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> There were more people registering civil partnerships than weddings, it seemed, when we booked the registry office <1> it's only recently legal here <2> i say ban all marriages. <2> leave that to the churches <1> or allow all marriages <2> ok then i'm marrying my dog so i can get the tax break <1> why should the state be involved in such stuff? <1> well, okay, it's economically quite important... <1> you wouldn't get a tax break <1> the dog has no tax status :) <2> gotta love politics :) <1> not really I don't :) <3> my webserver can take numerous requests at once, but only replies to one at a time.... can I somehow with threads or something make it reply to all requests at the same time, or is that not possible because I only have one line...????? <4> I want to convert a bmp to jpeg withouth using any api <4> any idea or hint would be appreciated <2> lol
<2> that's impossible dude <0> hmm: Write a JPEG decoded and a BMP encoder <4> why is that so sir? <0> hmm: Then write file access routines using JNI (although that's still an API...) <2> you're not going to use ANY java api? <0> hmm: You can't access files without going via some kind of API <4> I'm just trying to read a bmp <4> and the bits per pixel field is zero in every bmp :S <4> where I think it should be 1,2,4,8,24 so on <4> hmmZ` <3> ive created a thread and started it, but the program sort of pauses, lets the thread run, and then goes back to the rest of the program, the point is they should run at the same time...... <3> anyone have any ideas??? <1> how are you starting it? <3> thread.start(); <1> sounds like it's right <1> let's see the code. Stick it on a pastebin somewhere <3> what is a pastebin? <1> ~pastebin <1> gah <1> try www.pastebin.ca <1> it's a website where you can paste stuff so you don't have to flood IRC <1> anyway, I thought you said you subcl***es Thread? <1> try: new MyThreadSubcl***().start(); <3> http://pastebin.ca/63013 <1> or: Thread t=new MyThreadSubcl***(); t.start(); <3> it isnt a cl***, it is a method I want to run.... <1> do you have a run() method? <3> no.... <1> so you aren't a Runnable then? <3> no... <1> a Thread can only run a Runnable <3> ok <1> have a look at the Thread trail on java.sun.com <3> ok... ill try that <1> basically subcl*** Thread (or implement Runnable)...create a new instance and start it. That causes the run() method to be called <3> so if i have method I want to run.... i make the method implement runnable <3> ? <1> no <1> you want a *cl**** the implements Runnable <1> subcl***ing Thread is the way people generally do it <3> what is subcl***ing? <1> just subcl*** Thread and override run() <1> hmm, I suspect you need more basic help than I thought <3> :( <1> cl*** Foo extends Bar { /* body of Foo cl*** */ } <1> like that? <3> ok... <1> http://java.sun.com/docs/books/tutorial/essential/threads/ <1> that's the Threads trail <1> it looks like you need to look at some basics before that though... <3> I have read a lot on the net...but it is all about running two cl***es.... <3> I want to run a method..... <1> http://java.sun.com/docs/books/tutorial/index.html <1> start there maybe? <1> you can't <1> you have the run() method run the method for you <3> oh, ok, thanks, thats all I wanted to know.... <3> now i understand.... <2> http://findbugs.sourceforge.net/ <5> one quick question... newest java still uses jrmi, right? <5> is that mapped to a specific port or is that app-dependent?
<1> that looks nice <2> if you're referring to that link i just posted ...it's linked per application <5> as in general. <1> I've bookmarked it. I'll run some of my code through it later, see what it comes up with <5> settlers (game) java applet fails to load on this server. getting connection refused. just pondering if its a firewall issue <1> hmm, has an eclipse plugin even... <2> yeah it looks promising..a co-worker just showed it to me and it seems pretty helpful <6> when coding a function that returns error codes or success code (a single integer), are there customary values to use? for example to return "1" is success, and "-1", "-2", "-3" for different types of errors? Is there some standard normally used? <7> I tried to google this, but I was unable to find the answer, question: Does anyone know how to use regex to replace the '[' character? <1> \[ ? <2> Fwaggle: normally 0 is error and 1 is success but does not matter...try to use boolean <7> I'll try, but I have a feeling \n is an invalid escape character <1> Fwaggle: use Exceptions for errors, and booleans to denote success/failure (in general) <7> sorry, \[ <1> \n is a newline <7> typo <7> yeah \[ is an invalid escape character, as I thought. <7> any ideas beyond that? <2> how about \\[ <1> \[ is an escape character. You have to escape the \ if you are in a String, so \\[ <1> Backslashes within string literals in Java source code are interpreted as required by the Java Language Specification as either Unicode escapes or other character escapes. It is therefore necessary to double backslashes in string literals that represent regular expressions to protect them from interpretation ... <1> from the javadoc for Pattern <2> imagine that. <3> Wohoo! it is working! <7> yeah that works. Thanks. <1> http://pastebin.ca/63024 <1> approximately <7> yep works <2> javadoc rules :) <2> (nice way of saying rtfm) <8> how can you transform an integer into a string... is it by (String)(number) ? <7> I thought it was a challenging question. <7> String myInteger = "" + number <7> there is about 20 ways to do that master M <9> hi <9> does anyone know how to deal with java scripts? <2> Integer.valueOf(String s) <7> "deal with" ? what do you mean. <2> RTFM <7> sabre, easy on the language friend. <2> ok ****weed <9> i mean if you have worked with javascripts? <2> we don't deal with javascript here <2> completely different than java <7> people are always going to be at different skill levels, no need to be harmful. If it was not for alot of more experienced developers you would not be at your own level, whatever that might be. <2> yogiudo: i'm only here to help <2> check the manual before you ask silly questions <2> and that is how i learned so the second half of that is irrelevant <7> I read the Java docs on patterns, and I checked google but I was not able to "see" the information you or smsie was able to. Which is why I came onto mIRC <7> If you think you taught yourself everything then your a liar. <10> google is a big help these days. <10> And pattern + regexps and such bring you to the website of Roedie Green (one of my favorites) which has an extremely extensive section on this. <2> yogiudo: if you don't like the way you are given help then yeah...****in google it dude <1> yogiudo: you got your answer. What are you whining about? <7> I guess I would be "whining" about how nasty some people, particularly on IRC get when they are asked a question. <1> nobody got nasty <1> I pointed out what you needed, and then pointed out exactly where it was explained to give you an idea where to find it in future <11> what is the command to execute another program from java? just need to run a .exe file wth params <7> I am not talking about you smsie <10> and sabre (to speak on his behalf) told you to RTFM. Thats not rude either. <2> yogiudo: seperate irc from real life man...for real <1> seriously man. The only rudeness shown towards you was imagined on your part. We *can* be rude if that's what you want though :) <7> okay, lets move on. <11> lets move on to my question <11> sounds like a plan <2> another demanding help seeker...lovely <11> wow <11> what a **** <2> damn just as i was about to give you the solution <2> wow <11> solution or not.. your still a **** <11> you're <1> what a wonderful manner with which to get help
Return to
#java or Go to some related
logs:
habsij #linux #skype allem23
#linuxhelp enron embezelment #php valantis server #chatzone #linux
|
|