This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

William Ng

Ranch Hand
+ Follow
since Jul 11, 2015
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
4
Received in last 30 days
0
Total given
18
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by William Ng

Campbell Ritchie wrote:Where I am sitting, FA means something else and you wouldn&apost find it to work. Please avoid such abbreviations.


Hey Cambell Ritchie,
I did mention it unabbreviated, but to save you then need to find it, it stands for 'finite automaton'. I went ahead and created a basic one. You can see it below. And it has been unit tested and works and best as the unit tests says it should.



Here all the tests:

What do you think?
2 months ago

Jeanne Boyarsky wrote:Here's a link to the AWS Developer cert objectives.

I think it is too early to decide. You need to learn the basics about developing web apps and services for either path you mention.

Yes, you can do both.

Also, remember that for an entry level position, you don't need a specialty.



Yeah, i'm going to accumulate more experience with pure web apps before I just choose to specialize in a specific technology. 
2 months ago
Ok, that clarifies a lot. And it does make sense that if one desired to be a halfway decent at DevOps, they would first need to know what the heck they are managing. It would be like a system administrator who didn't know much about computers.
2 months ago

Tim Cooke wrote:The two are not directly comparable in the way I think you expect they are. JEE is a programming language and library, where AWS is a server environment. Your question is akin to asking "should I specialise in Software Engineering or Systems Engineering?" two very different career paths.

Perhaps I misinterpreted your question? Please correct me if I have.



No, just slightly. When I seay JEE, I am refere to JEE AND everything else involved with building JEE applications. As for AWS, I am only somewhat acquainted from perusing the site and knowing that it identifies as a cloud computing platform. I am aware that it has certifications for AWS 'Developer' so assumed that one would be in a development role. So, i don't know if AWS would be system engineering rather than a different developer specialization. That is what I want to know. I personally believe that, based on the tool it offers, to support devop as well as development tasks. So would it be safe to aspire to specialize as JEE developer working on AWS?
3 months ago
I'm planning on getting my Java OCAP and OCP certifications then i'm not sure whether I should specialize in AWS or JEE. Which would you recommend. Can I do both?
3 months ago
Software development is software development. There are all kinds of development, and while they have there differences, the underlying concepts and processes are equal if not similar. Wheather your a mobile developer or web app developer, they will consider it within software development experience. But you'll probably have to prove that you know mobile dev and not just whatever your transitioning from.
3 months ago
I'll give those suggestions a try, and can you give me your thoughts on using the FA? I think it is the next simplest approach, and probably more efficient also.
3 months ago

Rob Spoor wrote:Side note: since $ matches the end of the string, $[.]+ will never match anything.


I know that. That is why I use [tt]$[\\.]+[tt].
3 months ago

Campbell Ritchie wrote:
You can pass the entire line to a Scanner object, then you can get a Stream of matches from a regex. Look at this method. (Java9 only.) Use its return result's group() method to get a String, and the last line simply calls System.out.println():-


Thank you for reminding of the quote. I've heard it before, and I there is all truth in that saying.
Yes, I have tried to verify that it finds full stops. And it does not.
I have decided to abandon this method, and chose to write my own finite automaton to handle the splitting.
The goal of the FA is to find words in ill formed text. For example

abab'a, baba baba babbab. "a abab baba baba"     baba-abababa aabab...., ababab???

Should produce the following words

abab'a
baba
baba
babbab
a
abab
baba
baba  
baba-abababa
aabab
ababab

I have already come up with an FA diagram that I will implement soon.

3 months ago
I have posted the original, before I made the changes in attempt to fix it.
3 months ago

Campbell Ritchie wrote:There must be easier ways to do that, even with a regex. Have you come across the predefined character class \w?


I don't doubt that there is. But this is the most simple way that I have come up with, and I have tested its correctess at regexpal.com. But when I use it in replaceAll, it does nothing.
3 months ago

Paul Clapham wrote:Well, in line 11 of that code you apply replaceAll to the input string (variable name w) and assign the result to a new variable named wnew.

Then at line 12 you apply replaceAll to the input string again, only with a different regex, and assign that result to the variable named wnew. This has the effect of discarding the result of line 11.

Anyway, with regex there's all kinds of unexpected things which can happen if you get it a bit wrong. So it would help if you showed us an example of an input string and the result of line 12. Also it would help if you told us what you expected instead.



Sorry, I forgot I made those changes. The 'wnew' is supposed to be a w. I did that to so if that would solve the problem. It's the same regardless of whether i create a new variable or not.
An example of I/O would be the following

Input: "This a test...."
Output:
w before replacement: This
w after: This
w before replacement: a
w after: a
w before replacement: test....
w after: test....

The last line should be
w after: test



3 months ago
I am trying to tokenize a string. Given a string I want this method to return the output as words. The words have to be words that do not contain superfluous or redundant punctuation that do not add meaning to the word, excluding syle and sacasm. This string may not be well formed, and so, may include edge cases like "awesome!!!", "what??", or "Bye.". To deal with this, i'm trying to see if regular expression will do the job. My problem, here, is that the replaceAll method puzzles me to death. It absolutely does not seem to have an affect on the output. Can you help? Thanks.

3 months ago

Campbell Ritchie wrote:Don't know. Please give us some more details about the code in question.



Here I seek to provide you more information about my problem.

This is a link to the method in question
https://developers.google.com/resources/api-libraries/documentation/youtube/v3/java/latest/com/google/api/services/youtube/model/CommentThread.html#getReplies()
link

I tested it on this video: https://www.youtube.com/watch?v=m4Jtj2lCMAA

Initially, I could not get all the comments, but as, Rob Spoor, stated it returned them in pages, and I soon figured that out. However, on one of the top level comments who replies were copious, it become apparent what the term "limited", stated by the documentation meant. No easy solution as revealed itself to me. I'm wondering what reason they have to limit the replies. Maybe its storage, but then again they are Google, so should have no problem with that!
Why does getReplies() in CommentThread return only a limited number of replies? At first i didn't really understand, but having tested it, it doesn't return all the replies, and I guess that what it meant. Is there anyway to get all the replies?