<< 29-August-2008 : bevinbot on ##java at freenode [download] [back] >>
 
 
time nick message

00:01

<Fanook>

reverend: pro tip, when doing a search on google for any javadocs, always include the version number, otherwise you'll always get the very old 1.4 docs

00:01

<Fanook>

alternatively, use the bot here

00:01

<r0bby>

reverend: ex) PrintJob java 6

00:01

<Fanook>

~javadoc PrinterJob

00:01

<javabot>

Fanook, please see java.awt.print.PrinterJob: http://java.sun.com/javase/6/docs/api/java/awt/print/PrinterJob.html

00:01

<r0bby>

er PrinterJob java 6

00:02

<reverend>

Fanook: that's the version that was linked from itext

00:02

<r0bby>

itext needs to update their shit

00:02

<reverend>

i figured finding the documentation at all was going above and beyond

00:02

<reverend>

i'm sure gocsp can motivate his lazy ass to find the docs for whatever version he's using

00:03

<gocsp>

:)

00:04

<schnippi>

~hibernate

00:04

<javabot>

schnippi, hibernate is a nice ORM [see orm] tool and can be found at http://www.hibernate.org/ and #hibernate

00:05

<schnippi>

~hibernate~

00:05

<javabot>

schnippi, I have no idea what hibernate~ is.

00:05

<juniowww>

i want make an app to send one form by gprs

00:07

<juniowww>

send user pass origem number and destination number.. and record in DB

00:14

<creepa>

whats the best book to learn java? or maybe there isnt a best since all are knowledgable. but what is good for a noob

00:14

<hunterp>

anyone use guice?

00:14

<Fanook>

~beginners bibles

00:14

<javabot>

Get these: 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial) 2) Bruce Eckel's "Thinking in Java" (http://www.mindview.net/Books/TIJ) (Get the 3rd edition, the 4th is only freely available up to chapter 7.)

00:14

<reverend>

creepa: just use java.sun.com/docs

00:16

<creepa>

ok ill check into them all

00:16

<creepa>

thank you

00:37

<Myoma>

by the way

00:38

<Myoma>

have you noticed that ^D actually doesn't quit a java program

00:38

<Myoma>

you have to use ^C

00:39

<Fanook>

you realize that ^D means end-of-file, right?

00:39

<cheeser>

heh

00:42

<TimothyA>

TimothyA has never seen anyone use ^D before to end a program ;>.>

00:42

<Myoma>

certainly not a java program

00:43

<TimothyA>

does that thing even have a function?

00:43

<TimothyA>

apart from signalling the end of a file.

00:43

<FauxFaux>

FauxFaux does it occasionally, but mostly with retarded gnutils (like sort).

00:43

<Fanook>

TimothyA: that depends entirely on the app

00:43

<ojacobson>

TimothyA: lots of things that read input from stdin (tr, sed, the python interpreter, whatever) can be quit with ^D.

00:44

<ojacobson>

FauxFaux: also, sort isn't retarded - it can't possibly do a sort until it knows it's read the entire input to be sort, and you're signalling "interrupt" rather than "end of input"

00:44

<Myoma>

there's a bug in my code :/

00:44

<FauxFaux>

ojacobson: Theoretically it could detect that it's recieving input from a tty and not be so bland, but I know. :)

00:45

<ojacobson>

FauxFaux: special cases are fragile. There's enough programs out there that make that distinction that act weirdly because of it that adding more seems kind of silly. :)

00:46

<FauxFaux>

Like ls? ¬_¬

00:47

<ojacobson>

and a lot of things that use readline

00:47

<ojacobson>

(gnu readline *can* be used correctly in situations where TTY and non-TTY input both need to be handled, but the calling program needs to be aware of a few edge cases.)

00:49

<Archon>

for the restriction for applets to only connect to the server that serves the applet, what would be considered the server? is it identified by DNS name or what?

00:54

<r0bby>

r0bby gives Myoma his dunce cap

00:55

<Myoma>

you can keep it

00:55

<r0bby>

no no i insist

00:55

<Myoma>

:p

00:59

<reverend>

stty kill ^D

00:59

<reverend>

problem solved

01:03

<sharperguy>

cool

01:03

<sharperguy>

so checkout that then

01:03

<sharperguy>

?

01:04

<sharperguy>

aaaaaaaah fail

01:04

<sharperguy>

forget i just said that people

01:18

<concernedcitizen>

hi guys, I'm trying to pass a form data from a jsp into a java class which will perform some logic before forwarding to another jsp page (either success or failure). what is the best way to do this? how can I pass form data to a java class?

01:20

<Agrajag->

g'day. i'm using SimpleDateFormat.format(new Date()); - and on some windows machines it's reporting the date in local time, others in UTC. what would account for this difference?

01:22

<Fanook>

what did you set your format pattern to?

01:22

<Agrajag->

"yyyy-MM-dd HH:mm:ss"

01:45

<Archon>

does a java applet's class have to be the in the same directory as the html page?

01:45

<joed>

Look at the topic...

01:47

<concernedcitizen>

anyone?

01:48

<joed>

concernedcitizen: Look at servlets.

01:48

<concernedcitizen>

what if I don't want to use servlets?

01:48

<r0bby>

~java ee tutorial

01:48

<javabot>

for a tutorial on java ee see http://java.sun.com/javaee/5/docs/tutorial/doc/

01:49

<r0bby>

concernedcitizen: you're supposed to.

01:49

<r0bby>

it's the proper way to do things. -- you POST your form data to the servlet

01:50

<reverend>

applets

01:50

<r0bby>

blow

01:51

<concernedcitizen>

alternatively, I can use pure jsp right?

01:51

<reverend>

yes, but ultimately, 'pure jsp' is just a servlet

01:51

<reverend>

and applets are a client side thing

01:51

<r0bby>

JSPs are ultimately compiled into a servlet

01:52

<concernedcitizen>

servlet mapping scares me

01:52

<concernedcitizen>

:(

01:52

<r0bby>

and embedding java code (scriptlets) into JSPs shows that you're clueless

01:52

<reverend>

'pure jsp', ultimately, are servlets

01:52

<reverend>

let's try a different arrangement

01:52

<reverend>

i wrote a scriptlet today.

01:52

<joed>

Hahaha

01:52

<reverend>

am i clueless? :)

01:53

<r0bby>

reverend: you fucktard!

01:53

<Algonquian>

I've just started in the ee tutorial's JSP chapter. It feels damn weird to write code in xml.

01:53

<Algonquian>

I guess it's something I'll get used to

01:53

<r0bby>

reverend: Sorry, I really really hate them, use either EL or a taglib

01:53

<reverend>

you don't have to use jsp.

01:53

<Algonquian>

I guess the job is to minimize that and keep all the logic in beans

01:53

<concernedcitizen>

what's a bean then?

01:54

<concernedcitizen>

I've seen <jsp:usebean> and all that sort of shabangs

01:54

<r0bby>

concernedcitizen: a Java class

01:54

<joed>

~first cup

01:54

<javabot>

A friendly web page to get you started with Java programming: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/

01:54

<reverend>

concernedcitizen: a convention for creating java classes.

01:54

<joed>

~getting started

01:54

<javabot>

joed, getstarted is http://java.sun.com/tutorial/getStarted

01:54

<r0bby>

~tell concernedcitizen about bean spec

01:54

<javabot>

concernedcitizen, beans spec is http://java.sun.com/products/javabeans/docs/spec.html

01:54

<joed>

concernedcitizen: Why don't you start with the JSP / Servlet tutorials? If you are not suicidal after that look at Spring MVC..

01:55

<reverend>

the beans spec is rarely followed to the letter in making backing beans for jsp

01:55

<reverend>

if ever

01:55

<concernedcitizen>

java :(

01:55

<joed>

If ever is a good way of putting that spec.

01:55

<concernedcitizen>

no offense intended, but personally I hate working with java for its complexity :-( only doing this for my college credits

01:56

<r0bby>

concernedcitizen: put simply a bean is a domain model class.

01:56

<joed>

Java is very simple.

01:56

<r0bby>

it's not hard...

01:56

<reverend>

yes, java is easy..

01:56

<r0bby>

nor is it complex

01:56

<joed>

the EE cruft may be overly engineered.

01:56

<reverend>

the libraries and specs that people have made with and for java are often not as easy to grasp though

01:57

<r0bby>

the EE stuff isn't too hard once you gte your feet wet

01:57

<reverend>

er, okay

01:57

<r0bby>

or maybe I just chose to refer to it as black magic and not care

01:57

<r0bby>

spring is black magic

01:58

<joed>

concernedcitizen: See it this way, a simple C like OO like language with strong typing, it has what you expect from an imperative language and some more, excellent tooling and documentation. Simple (compared to some) threading and netwroking

01:58

<joed>

Spring is simple as hell.

01:58

<reverend>

ee is vast and generally useless

01:58

<r0bby>

joed: but HOW it does it :P

01:58

<joed>

r0bby: ? Duh?

01:58

<r0bby>

I just never cared i guess

01:58

<joed>

r0bby: Proxies and very old paradigms.

01:59

<r0bby>

r0bby shrugs

01:59

<reverend>

reverend wets r0bby's feet with some jms, iiop and jca.

01:59

<joed>

joed slaps r0bby with an old trout

01:59

<r0bby>

r0bby throws the trout at reverend

01:59

<r0bby>

FOOD FIGHT!

02:00

<concernedcitizen>

i think the main thing is there's alot of confusion over EE, SE, ME etc.

02:00

<concernedcitizen>

the main difference between them in terms of syntax and operation

02:00

<joed>

concernedcitizen: Okay, what language would not confuse you if you looked at libs?

02:01

<joed>

EE --> Shit you don't need for a desktop app (somewhat), SE a desktop app, ME badly limited

02:01

<concernedcitizen>

i'm just saying for the normal guy on the street wouldn't know the difference between EE, SE and ME and its difference

02:02

<joed>

It is just 'names', does not really matter, most webpeople will use EE with SE to do servlets.

02:02

<tazle>

concernedcitizen: you know, you don't *have* to deal with the EE, servlets etc. just to do HTTP

02:02

<joed>

Quite true.

02:02

<joed>

And that is really simple.

02:02

<r0bby>

look at the java ee tutorial

02:02

<tazle>

r0bby: the one with about 1000 pages?

02:02

<r0bby>

it's big but not hard to follow

02:03

<r0bby>

tazle: just look at the tier you're interested in

02:03

<r0bby>

(Web tier is where he should look)

02:03

<joed>

Wich is about as nice as CGI.pm

02:03

<tazle>

r0bby: my next question would be "what are these tiers you speak of?"

02:04

<r0bby>

it's basically separation of concerns

02:04

<joed>

concernedcitizen: simply put, if you are starting, I'd not give a shit about existing stuff. Do something.

02:05

<r0bby>

they explain it pretty well

02:05

<joed>

concernedcitizen: Pretty much goes for anything / any language you are learning.

02:06

<r0bby>

But for form processing servlets are the way to go

02:06

<concernedcitizen>

I am.

02:06

<joed>

Having done it in its raw form is a good learning thing..

02:06

<concernedcitizen>

i'm currently doing up a facilities booking management system

02:07

<concernedcitizen>

I have my java entity classes done up, originally, I wanted to do a pure JSP setting (I have PHP background) but like you guys mentioned, I felt that it doesn't feel right to do logic on jsp (views)

02:07

<concernedcitizen>

hence my eariler question on trying to pass data to a non-jsp class/servlet :D

02:09

<reverend>

why are you obsessing about this?

02:09

<reverend>

you don't care

02:09

<reverend>

just php-style jsp it up

02:09

<gambler>

cybereal, All my code is working but Im plagued by key management issues, CA issues etc. What do you use for this?

02:09

<cybereal>

mmm I use portecle for straight up management of keystores if that's what you mean

02:09

<cybereal>

but we have some partial tools implemented in our products

02:09

<cybereal>

as far as CA's go that's just an irritation as part of the tech

02:09

<concernedcitizen>

reverend: why are you insinuating that I am trying to pick a fight here?

02:10

<gambler>

portecle cant do respond to CSRs

02:10

<concernedcitizen>

I don't understand the hostility.

02:10

<reverend>

concernedcitizen: i'm not?

02:10

<concernedcitizen>

[10:09] <reverend> you don't care

02:10

<gambler>

cybereal, realhans, if a client and server have a common parent (eg, both keys are signed by the same CA) does the server trust the client? (eg, as a verified peer?)

02:10

<concernedcitizen>

if I didn't care, I wouldn't be here in the first place.

02:10

<gambler>

s/realhans//

02:11

<reverend>

< concernedcitizen> no offense intended, but personally I hate working with java for its complexity :-( only doing this for my college credits

02:11

<joed>

Heh

02:11

<r0bby>

concernedcitizen: that does say you dont give a shit

02:11

<reverend>

i guess i construed that as 'not caring'

02:11

<reverend>

i'm not trying to pick a fight, i'm just wondering why you are bothering

02:11

<reverend>

just get the credit and get out

02:12

<joed>

concernedcitizen: reverend is a dissilusioned old firt that knows a hell of a lot more than you, irc is also a very direct medium.

02:12

<joed>

concernedcitizen: But you set the stage with that comment...

02:12

<concernedcitizen>

this isn't the way to evangelize a language. just because I'm doing this for my college credits, doesn't mean that I don't care?

02:12

<reverend>

i'm genuinely not being irritable

02:12

<concernedcitizen>

but thanks for the help anyway

02:13

<concernedcitizen>

a real pity.

02:13

<joed>

Damn, we are touchy.

02:13

<reverend>

haha, okay. take it easy, cupcake.

02:13

<r0bby>

concernedcitizen: Doing it "pure jsp" is bad style

02:13

<reverend>

nobody meant to hurt your delicate feelings.

02:13

<gambler>

cybereal, ??

02:13

<reverend>

pure jsp is the easiest, simplest way to solve this problem

02:13

<reverend>

does that sound better?

02:13

<joed>

r0bby: I think you just went offshore fishing in the dead sea.

02:13

<r0bby>

it's also the ugliest

02:14

<concernedcitizen>

r0bby: yeah I know.

02:14

<r0bby>

joed: ?!

02:14

<reverend>

i write apps in pure jsp all the time.

02:14

<reverend>

and they aren't ugly.

02:14

<r0bby>

reverend: form processing?

02:14

<joed>

"Prettier' or better does not help.

02:14

<cybereal>

gambler: the server trusts the client if they trust the CA that signed the client's cert, the other things you said would just be coincidence

02:14

<reverend>

r0bby: no, i just add '.jsp' to my html pages

02:14

<reverend>

of course, 'form processing'

02:14

<r0bby>

reverend: oh, i was referring to form processing

02:14

<joed>

concernedcitizen: If you know PHP, you can do pretty much the same things in JSP.

02:15

<reverend>

that was sarcasm, wtf

02:15

<r0bby>

reverend: i typed it before you said it :P

02:15

<svm_invictvs>

ugh

02:15

<reverend>

use jsp and jstl

02:15

<reverend>

easy, well documented

02:15

<joed>

concernedcitizen: There might be better ways of doing it, acheiving something usually in my book is better than fapping.

02:15

<reverend>

don't need to learn any framework apis

02:15

<reverend>

just set up your backing beans, pass them form data, profit

02:15

<joed>

Yup.

02:16

<r0bby>

hell i'd prefer to do everything via AJAX :)

02:16

<joed>

pchapman wrote a brilliant Xstream backed servlet for our last project, cut dev time into nothing.

02:16

<r0bby>

pchapman works w/ you?

02:17

<joed>

r0bby: Sometimes you scare me.

02:17

<joed>

r0bby: yes.

02:17

<r0bby>

I didn't know

02:17

<r0bby>

joed: how?

02:17

<r0bby>

my practices?

02:17

<joed>

ajax?

02:17

<r0bby>

r0bby <3s it

02:17

<joed>

joed moves on.

02:17

<r0bby>

im crazy, sue me

02:18

<joed>

concernedcitizen: So, you good? Nobody is picking on you, I don't really belive in evangelism (Although if you want to give me money that would be cool).

02:18

<pchapman>

it was a pretty simple servlet, too

02:19

<joed>

Still saved us a shitload of work.

02:19

<pchapman>

pchapman nods

02:19

<r0bby>

i love xstream.

02:19

<r0bby>

used it for persistence

02:19

<joed>

Huh?

02:19

<r0bby>

er wait

02:19

<pchapman>

i could see that

02:19

<r0bby>

that came out bad

02:19

<concernedcitizen>

i'm trying to read up on beans

02:19

<joed>

~be r0bby

02:19

<javabot>

FileNotFoundException is a subclass of IOException; Exception won't directly catch that.

02:19

<pchapman>

persisting settings?

02:20

<concernedcitizen>

it looks like <jsp:usebeans> can pass form data

02:20

<r0bby>

persisting state

02:20

<pchapman>

pchapman nods

02:20

<joed>

concernedcitizen: Yes, it can.

02:20

<reverend>

haha, that r0bby factoid rocks

02:20

<r0bby>

basically i decided to stay away from SQL dbs and use XML for persistence then chose Xstream to do it

02:20

<concernedcitizen>

still trying to understand how to use it.

02:20

<joed>

concernedcitizen: as reverend said, if you read the whole bean spec - you will kinda giggle after a while.

02:20

<reverend>

holy christ r0bby

02:21

<joed>

r0bby: Marshal/Unmarshal

02:21

<r0bby>

r0bby is...dumb?

02:21

<pchapman>

basically, he used xstream to serialize and deserialize state objects to filesystem

02:21

<Fanook>

r0bby: you're so sharp, you're dull

02:21

<pchapman>

for a very small project, i might do the same

02:21

<joed>

Yeah, that is brilliant..

02:21

<pchapman>

*very* small

02:21

<joed>

pchapman: Yeah, thumbs up.

02:22

<gambler>

cybereal, in my set of keystores that is not the case. I am getting path certification errors up the wazoo

02:22

<gambler>

on the client side

02:22

<r0bby>

I'm probably gonna rip out all the xstream stuff soonish

02:22

<Angel-SL>

Hello, is there a function in an ArrayList to remove duplicates?

02:22

<Angel-SL>

I

02:22

<joed>

Yeah, first key to refactoring... Rip out the working stuff.

02:22

<cybereal>

gambler: if you change out the truststore it won't have the default CA root certs in it anymore...

02:22

<Angel-SL>

I'm working on a ArrayList<Integer>

02:23

<pchapman>

Angel-SL, no. you might want to use a Set rather than a List if you don't want dups

02:23

<Fanook>

Angel-SL: toss the list contents into a set

02:23

<joed>

Angel-SL: look over the Collections and pick a

02:23

<joed>

Fanook: duh...

02:24

<gambler>

cybereal, I am doing that. The client has {ca-key,client-key,client-key-signed,server-key} in its trust store. If I remove server-key it falls apart.

02:25

<gambler>

er {ca-cert,client-key,client-cert-signed,server-cert}

02:25

<r0bby>

joed: I want to see if there's a better way to do it :S

02:26

<gambler>

server presently has {ca-cert,server-cert-signed,server-key,client-cert}

02:29

<nmatrix9>

damn I was without internet access for 9 datys

02:29

<Jubei>

I am trying to compile something very simple using the command prompt but I get garbled output from the compiler (Javac.exe). I am on windows vista x64

02:29

<reverend>

garbled?

02:30

<Jubei>

like.. hmm..:jubei.java:1: class?Ainterface?A?_?+?- enum ????F?_???B

02:30

<Jubei>

public Class Jubei

02:30

<Jubei>

compile errors but in gibberish, any ideas what could be wrong?

02:31

<reverend>

how did you write your code?

02:31

<Jubei>

does java compiler output localized error messages?

02:31

<Jubei>

reverend: using notepad

02:31

<strategy>

without syntax highighting? wow.

02:32

<Jubei>

i am only writing a basic test class to test my environment, i cant imagine why the output from javac.exe would be garbled like that

02:32

<reverend>

Jubei: what encoding did you save it in?

02:32

<hendrixski>

If I want to start listening to UDP on a DataGram socket all I need is to do is open it and loop socket.receive() right?

02:32

<cybereal>

Jubei: looks like you have an encoding or locale problem

02:33

<Angel-SL>

Erm, what type would I use to iterate thru a Map?

02:33

<Jubei>

reverend, cybereal: let me check.

02:33

<Angel-SL>

I mean for(... : ...)

02:33

<r0bby>

you can't foreach on a map itself

02:33

<Fanook>

Angel-SL: get one of the Sets and iterate through that. There are methods to get the keys, values, and pairs

02:33

<Jubei>

reverend: encoding is ANSI

02:34

<Fanook>

s/pairs/entries

02:35

<reverend>

hmm, odd

02:35

<Jubei>

reverend: here is the complete output from javac.exe http://pastie.org/262270

02:35

<reverend>

paste your source

02:36

<Jubei>

done, same pastie

02:36

<Fanook>

well, even without being able to read that, I can see your class name doesn't match the file name

02:36

<hendrixski>

I'm trying to listen in on a port on a server... I don't know if some firewall is blocking it on the server, if the router stops signals from getting to there... What do I even look for?

02:36

<Jubei>

Fanook, reverend: my problems are not the compiler errors, I know how to fix the errors, the problem is why the output is garbled?

02:36

<reverend>

right

02:37

<reverend>

no idea on that

02:37

<reverend>

that just looks odd in general

02:37

<Jubei>

java has localized error messages? i dont think so.

02:37

<strategy>

hendrixski, if you have a router that has NAT(e.g. every router made this decade), you need to forward your ports

02:37

<reverend>

Jubei: what locale are you set for?

02:38

<concernedcitizen>

oh hay! i did it

02:38

<concernedcitizen>

added ma servlets.

02:38

<strategy>

concernedcitizen, :D

02:38

<r0bby>

concernedcitizen: =)

02:38

<strategy>

grats

02:38

<r0bby>

good job :) (not condescending)

02:38

<strategy>

good job :) (condescending)

02:38

<strategy>

just kiddin :)

02:38

<Jubei>

reverend: English (united states)

02:39

<concernedcitizen>

weuweu

02:39

<reverend>

Jubei: then i've got nothing

02:39

<chessguy>

anybody used ECJ? interesting little library for evolutionary computation in java

02:39

<Jubei>

reverend: thanks anyway for trying.

02:39

<reverend>

that output is odd and includes things that shouldn't be in the error message at all

02:39

<reverend>

regardless of locale

02:40

<vinse>

ok i have some a bunch of BigDecimals that basically represent military time and only the decimals .15, .3 or .45 are allowed

02:40

<vinse>

they represent quarters of an hour

02:41

<vinse>

what's the smart way to find durations without using any time libraries

02:41

<vinse>

like, just with math

02:41

<vinse>

is there one?

02:41

<tazle>

~homework

02:41

<javabot>

Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!

02:41

<Fanook>

use integer types

02:41

<reverend>

wtf are you using BigIntegers for?

02:41

<vinse>

tazle: no, sorry, just phrased the question in an interesting way

02:41

<vinse>

i guess i apologize for that

02:42

<Fanook>

er. ignore that

02:42

<cybereal>

reverend: they are accurate unlike float/double

02:42

<reverend>

er.. i don't see any need for accuracy here

02:42

<reverend>

or at least, that amount of accuracy

02:42

<vinse>

reverend: came from a database and thats what i get

02:42

<cybereal>

vinse: what type of duration? just hours?

02:42

<Fanook>

vinse: define 'time libraries' Do you include java.util.Date/Calendar?

02:42

<cybereal>

or do you need to go to other units?

02:42

<vinse>

Fanook: yeah i wanted to avoid that

02:43

<reverend>

what are they stored as in the db?

02:43

<vinse>

cybereal: yeah just hours, they're all in the same day

02:43

<vinse>

reverend: it's irrelevant, but they're oracle Numbers

02:43

<vinse>

i think

02:43

<tazle>

vinse: scale to fit decimal system or write your own base-60 arithmetic

02:43

<Fanook>

i think you need to hurt the person who decided to store time as numbers

02:43

<vinse>

it's actually rows with a start and end column

02:43

<cybereal>

vinse: you seem to have received a rathe rannoying format for you rtime

02:44

<cybereal>

vinse: maybe you should just split on the period and call the right half minutes and the left hours and normalize the hours to minutes, add 'em all up and do whatever?

02:44

<vinse>

cybereal: yeah, like half one format and half another

02:44

<vinse>

cybereal: i'm thinking somethign like that is the nicest i can manage

02:44

<tazle>

vinse: if you convert .15 to .25, .3 to .5, do regular decimal arithmetic and convert back, you should the the results you want

02:45

<vinse>

tazle: yeah i suppose that's the answer, kinda messy

02:45

<vinse>

but it'll beat anything involving Calendar

02:46

<tazle>

vinse: not really messy at all - certainly beats writing mixed-base arithmetic

02:47

<strategy>

Can someone reccomend a simple syntax-highlighting notepad for me? (I'm moving from netbeans to a commandline)

02:47

<Fanook>

new SimpleDateFormat("HH.mm").parse(poorlyFormattedTimeAsString);

02:48

<Fanook>

strategy: Notepad++, JEdit, TextPad

02:48

<strategy>

thanks Fanook

02:48

<vinse>

vim, editeur if you're euro!

02:48

<reverend>

vim :)

02:48

<strategy>

i'm on windows ;(

02:49

<reverend>

vim works on windows just fine

02:49

<reverend>

gvim

02:49

<Fanook>

or use Cygwin then :)

02:49

<strategy>

:p

03:03

<hendrixski>

strategy: forwarding ports....

03:04

<strategy>

hendrixski, google is your friend

03:06

<joed>

hendrixski: you did read the networking tutorials?

03:06

<hendrixski>

strategy: thanks. I didn't know what to google for, now I know :-)

03:06

<hendrixski>

joed: like java networking tutorials?

03:07

<hendrixski>

I've done like basic Socket crap in college, but forgot all of it. And now i wish I hadn't. but we never had routers to worry about.

03:08

<hendrixski>

joed is there a specific one you would recommend I read?

03:08

<r0bby>

~networking

03:08

<javabot>

r0bby, networking is http://java.sun.com/tutorial/networking

03:08

<r0bby>

those

03:08

<joed>

hendrixski: yep.

03:09

<joed>

hendrixski: start there.

03:09

<hendrixski>

cool

03:09

<hendrixski>

I'll go through those then. Thanks :-)

03:13

<r0bby>

hendrixski and if your computer osm

03:14

<r0bby>

isn't public facing (not behind a router_ then you need to open the port on the router

03:14

<r0bby>

to forward to your system

03:17

<strategy>

hendrixski, your router is a central train station, and packets are the trains. You need to tell your router where to send which packets

03:17

<strategy>

hendrixski, portforwarding is saying "If any trains come in in port 3, send them to YourTrainStation"

03:19

<r0bby>

strategy: good explaination :P

03:19

<strategy>

ty r0bby

03:19

<joed>

Now do multicast!

03:19

<strategy>

OH NOES

03:19

<joed>

And ICMP!

03:19

<strategy>

my analogy was bad enough as it was.. :P

03:20

<joed>

Then explain why UDP and filesharing is funny.

03:20

<r0bby>

it's pretty decent, i was seeing your train come into my station :P

03:20

<joed>

Go on, I'm listening.

03:20

<r0bby>

that sounded wrong..

03:20

<joed>

Yeah, you always see that train and tunnel.

03:20

<r0bby>

choo choo.

03:25

<r0bby>

strategy: party pooper!@

03:26

<strategy>

oh got that sounded wrong

03:26

<strategy>

i was just outside looking as the massive storm

03:26

<r0bby>

no i wanted the explaination :P

03:27

<strategy>

joed, that was even wrongerererest..

03:28

<joed>

strategy: Indeed.

03:29

<strategy>

uh.... UDP the dudes at the train stations dont tell eachother about the trains, they just send em. and the trains go really fast and sometimes get derailed.....

03:29

<strategy>

...i guess

03:29

<joed>

joed laughs

03:30

<joed>

Yeah.

03:30

<strategy>

:P

03:30

<strategy>

i am <epic voice>ANALOGY MAN</epic voice>!!

03:35

<cybereal>

nah dude udp is more like lasers... pew! pew!

03:35

<r0bby>

cybereal: my eye!

03:35

<strategy>

yeah.

03:35

<strategy>

lasers, perfect..

03:35

<r0bby>

minime, stop humping the 'laser'

03:35

<strategy>

and sometimes you miss. (just had to add onto the whole train & tunnel thing)

03:36

<strategy>

MINE WAS BETTER!

03:36

<r0bby>

everytime i see that word, i think of that line

03:36

<strategy>

;p

03:36

<cybereal>

r0bby: a "" lay .. zer ""

03:36

<strategy>

lol!

03:36

<r0bby>

cybereal: pfft

03:37

<r0bby>

oh yeah austin powers was 100% innuendo :)

03:37

<cybereal>

I was just trying to put into text the way dr. evil says it is all

03:37

<r0bby>

and 100% not java

03:37

<r0bby>

cybereal: hehe

03:38

<strategy>

has anyone here used netbeans for a plain old java editor? (without project/etc stuff) (it's a tad offtopic, but less so than the whole austin powers thing)

03:38

<cybereal>

ummm no I think it would be a mistake to use netbeans for that

03:39

<strategy>

well i like the control i get with the commandline :p

03:39

<cybereal>

actually after using netbeans for a few months I think it would be a mistake to use it for nearly anything

03:39

<strategy>

xD

03:39

<cybereal>

that's fine

03:39

<cybereal>

use a better standalone editor

03:39

<cybereal>

I personally realy like TextMate as my standalone editor

03:39

<cybereal>

but I used to be a vim fan

03:39

<strategy>

i've been using Notepad++, it's nice but i'm so spoiled by netbeans indenting for me, having templates, adding close braces and such.. etc

03:39

<cybereal>

and there are a few java addons useful for vim I think

03:40

<cybereal>

mmm on windows hrm

03:40

<cybereal>

I always used gvim on windows

03:40

<cybereal>

oh hang on

03:40

<r0bby>

I'd use vim, emacs, etc

03:40

<joed>

Keep masturbating.

03:40

<cybereal>

you can't seriously say you like the command line on windows

03:40

<r0bby>

i used gvim to write assembly :)

03:40

<cybereal>

unless maybe you have ... PowerShell?

03:40

<strategy>

well..

03:40

<r0bby>

pfft powershell isn't there yet :)

03:41

<strategy>

sure the commandline is ass, but the args to java(c) are the same

03:41

<r0bby>

then again i looked at it for like not long :>

03:41

<r0bby>

strategy: vim/gedit/gvim/emacs etc

03:41

<r0bby>

jedit

03:41

<strategy>

i tried jedit.. couldnt find the code highlighting XD

03:41

<r0bby>

just use a standard text editor if you need to *JUST* do a one-file thing :)

03:42

<r0bby>

it worked out of the box for me :0

03:42

<strategy>

;D

03:42

<strategy>

on linux i use the best thing evar.... gEdit

03:42

<r0bby>

okay

03:42

<strategy>

but im on windblows :(

03:42

<r0bby>

then you got it :>

03:42

<strategy>

?

03:42

<r0bby>

dont use netbeans for that :P

03:42

<strategy>

:p

03:43

<cybereal>

strategy: tip: stop using javac and friends directly it's a big pain in the ass compared to a half decent ant script

03:43

<r0bby>

ant is amazing

03:43

<strategy>

hm

03:44

<cybereal>

is gEdit based on that one common editor toolkit? damn I forgot its anme, SCiTE uses it

03:44

<r0bby>

GTK+ i think

03:44

<cybereal>

no

03:44

<cybereal>

I said editor toolkit

03:44

<cybereal>

scintilla

03:44

<r0bby>

hrm

03:45

<cybereal>

because if it is, there are a few scintilla based editors for windows

03:45

<joed>

Sigh

03:45

<cybereal>

SciTE being one

03:45

<r0bby>

~interesting

03:45

<javabot>

this is all very interesting (not really) but please take it somewhere else.

03:45

<r0bby>

help save joed some keystrokes

03:45

<cybereal>

nonsense this is right on topic we're talking about useful tools on windows for java development

03:45

<strategy>

uh-huh.

03:45

<r0bby>

jedit, gvim, textpad

03:45

<cybereal>

alternatives to heavy IDE's as he suggested he only wanted to use it as the editor....

03:45

<r0bby>

~next

03:45

<javabot>

Another satisfied customer. Next!

03:45

<cybereal>

oh yeah jedit is decent

03:45

<joed>

joed smacks cybereal with a wet towel..

03:46

<r0bby>

notepad++

03:46

<cybereal>

well it's ugly but it works well

03:46

<commmmodo>

hey, im trying to write a class to update a dyndns account. I need to make 'raw http get request' (http://www.dyndns.com/developers/specs/syntax.html). how would u guys suggest i do this?

03:46

<r0bby>

I hate the author, but like it

03:46

<cybereal>

oh come on, r0bby, slava isn't even a participant in its development anymore

03:46

<cybereal>

if so, just a very minor one

03:46

<cybereal>

it's mostly community driven

03:47

<joed>

wtf,

03:47

<r0bby>

?

03:47

<commmmodo>

anyone have any ideas?

03:47

<r0bby>

commmmodo: send it out...

03:47

<r0bby>

GET ...

03:47

<cybereal>

commmmodo: it's very easy to make a get request

03:47

<r0bby>

~tell commmmodo about networking

03:47

<javabot>

commmmodo, networking is http://java.sun.com/tutorial/networking

03:47

<strategy>

commmmodo, myPrintWriter.println("GET http://dyndns.com/updatePage.jsp/ HTTP/1.1");

03:48

<cybereal>

how about you just use a URLConnection?

03:48

<r0bby>

joed: that wtf wasnt for me was it?

03:49

<commmmodo>

so i literally just send each line of text, 1 at a time? if thats the case a URLConnection would work

03:49

<cybereal>

just use a URLConnection and see if it works, it should be fine

03:49

<cybereal>

you just have to construct that url properly

03:50

<cybereal>

the first example with the auth in the url will probably work even

03:50

<commmmodo>

yeah, i was not sure which one to do cybereal

03:50

<cybereal>

hm now that you've pointed out how extremely trivial this is, I was actually needing to write a client for dyndns myself heheh

03:50

<cybereal>

cybereal will just do it with a bash script and CURL

03:50

<cybereal>

er curl

03:50

<commmmodo>

hahah, yeah, im limited to java for this one

03:51

<cybereal>

I have a router at work of my own to keep unnecessary traffic off my subnet of machines

03:51

<r0bby>

I'll take hw for 300 alex

03:51

<cybereal>

it gets a new ip all the time and never shows up in DNS/WINS

03:51

<cybereal>

so I was using dyndns to keep tabs on its internal ip (in vpn)

03:51

<commmmodo>

no r0bby

03:51

<cybereal>

but it stopped updating randomly

03:51

<commmmodo>

weird cybereal

03:51

<cybereal>

well not really it's a linksys product

03:51

<cybereal>

they are quite shit

03:52

<cybereal>

I wonder if there's a launchd compatible updater already

03:52

<commmmodo>

i'm working on a midi-over-internet program, and i want to make it so the user doesn't have to know the other person's ip... just their dyndns domain name

03:52

<commmmodo>

if r0bby is curious why it's not homework...

03:52

<cybereal>

the only thing is that I can't have it using the internet public IP, it has to use a specific hop's ip

03:52

<commmmodo>

ah, home network cybereal?

03:53

<cybereal>

no at home I have no issues, all apple hardware, and also a mobileMe subscriber so on my macs at work I have a magical hostname (Back To My Mac feature)

03:53

<cybereal>

but at work I have to VPN in first

03:53

<cybereal>

then the router's IP will be available in that private space

03:53

<cybereal>

but I have to know what it is :)

03:53

<commmmodo>

ah

03:54

<cybereal>

anyway its' just nice to know dyndns interface is so trivial, so if I need to write my own then it'll work fine

03:54

<commmmodo>

yeah, its so easy i can't figure it out.

03:54

<cybereal>

another alternative is to write it into my webdav storage whenever it changes

03:55

<commmmodo>

ur a mac guy cybereal?

03:55

<cybereal>

commmmodo: I was a linux fanatic for years but got sick of all the time sunk into just getting a half decent working machine or all the hacking to get new-ish hardware or heaven-forbid, devices, working on it.

03:56

<cybereal>

commmmodo: but I couldn't stomach the idea of Vista

03:56

<commmmodo>

cybereal: welcome to the club

03:56

<cybereal>