Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Would you people stop playing these stupid games?!?!?!!!!


programming / comp.lang.java.programmer / latest

Re: Handle delimiter in read message (thread)

comp.lang.java.programmer

Posted: 1 Day 21 Hours ago by: Arne_Vajhøj

This seems to work: import java.util.regex.Matcher; import java.util.regex.Pattern; public class EndTest { private static final Pattern re Pattern.compile("^#\\d+\\v+(.*)##\\v+$", Pattern.MULTILINE + Pattern.DOTALL); public static vo

Re: Handle delimiter in read message (thread)

comp.lang.java.programmer

Posted: 1 Day 22 Hours ago by: Eric Sosman

Also (if I recall correctly), various Internet RFC's require CR-LF line terminators, regardless of the system sending the lines. I don't know whether mike's messages follow such a protocol, but many do. His best bet may be to

Re: Handle delimiter in read message (thread)

comp.lang.java.programmer

Posted: 2 Days 1 Hour ago by: mike

I found out I can do: String endofMsg = sb.toString().substring(sb.toString().length() - 6); return endofMsg.matches("\\r\\n##\\r\\n|.*\\n##\\n$"); I had to use the last 6 characters since newline is different for each platf

Re: Handle delimiter in read message (thread)

comp.lang.java.programmer

Posted: 2 Days 3 Hours ago by: mike

Even tried this to make sure I have only four last characters of my string.. String endofMsg = sb.toString().substring(sb.toString().length() - 4); return endofMsg.matches("^\\r\\n|[\\n]##\\r\\n|[\\n]$");

Re: Handle delimiter in read message (thread)

comp.lang.java.programmer

Posted: 2 Days 3 Hours ago by: mike

I even checked the ASCII in my buffer. ASCII numbers is: 10 LF 35 # 35 # 10 LF I changed my regexp: sb.toString().matches("(?s).*\\r\\n|\\n##\\r\\n|\\n$") but it still evaluates to false. I suspect it is DOT ALL that gives me the he

Handle delimiter in read message

comp.lang.java.programmer

Posted: 2 Days 7 Hours ago by: mike

Hi, We receive a message called "chunked message" in NETCONF. Example: final String MSG_REPLY = "#877\r\n" + "<rpc-reply message-id=\"1\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><data xmlns=\"ur

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 11 Hours ago by: Knute Johnson

T92 Mason, Texas. I think there is an active club near Boerne, Texas about 60 miles south of here. I don't know if he has a rating or not. I have a glider CFI but it has been a lot of years since I instructed in gliders. The only tim

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 13 Hours ago by: Arne_Vajhøj

Java is not a difficult language to learn with a few rare exceptions. For the language itself just buy any normal Java beginners book and read it very fast. Then to go a bit deeper into the finer aspects of Java look for books like: Ef

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 16 Hours ago by: Martin Gregorie

Where is your local airport? Where would he go to get his glider rating? From the comments in rec.aviation.soaring that can be a real issue in some parts. I'm well-off here as there are at least two gliding clubs within reasonable gli

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 17 Hours ago by: e.d.pro...@gmail.com

This app sounds familiar. Anything you can't figure out from the free Oracle guide, I've found answered on stackoverflow if you know the search terms and enough to identify the answer that actually applies to solve your specific issue, or t

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 17 Hours ago by: Knute Johnson

They are pricey. Java and Swing are my favorite. As the other fellow mentioned, the Oracle Java Tutorials are pretty good and they do update them every couple of years. They work as a pretty good reference for some methods. https://

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 18 Hours ago by: Martin Gregorie

Not enough: weather and trailer lighting are ongoing issues :-( However I did have fun 'flying' the club's simulator for launch failure checks followed by doing them, together with stalling and spinning exercises for done real from th

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 19 Hours ago by: e.d.pro...@gmail.com

I haven't tried to learn coding from a book since college in the early 90s. I recommend going to the source and learning online. It's free and I found it pretty easy to follow. https://docs.oracle.com/javase/tutorial/index.html

Re: Are there any recommended Java books? (thread)

comp.lang.java.programmer

Posted: 5 Days 19 Hours ago by: Knute Johnson

Hey Martin, how are you doing? Get any gliding in? I don't actually own these books but the Oracle list that sends me stuff sent a review of Cay Horstmann's latest iteration of the Core Java books. I think folks think these two are so

Are there any recommended Java books?

comp.lang.java.programmer

Posted: 5 Days 22 Hours ago by: Martin Gregorie

When I taught myself C I used the excellent Kernighan & Richie's "The C Programming Language" - this was a few years after I started to program, so already knew Algol 60, COBOL and a couple of assemblers (ICL 1900's PLAN and MC6800). A

(100% REMOTE OPPORTUNITY) Full Stack Developer

comp.lang.java.programmer

Posted: 27 Days 23 Hours ago by: Nandu Reddy

Hi Hope you are doing great, This is Anand K from Network Objects we have immediate requirement for Full Stack Developer at Remote is Job description, once check and let me know your Interest, Job Title: Full Stack Developer Location: Rem

16 recent articles found.

rocksolid light 0.7.2
clearneti2ptor