Henry Wong

author
+ Follow
since Sep 28, 2004
Henry likes ...
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
New York City
Cows and Likes
Cows
Total received
140
In last 30 days
0
Total given
665
Likes
Total received
2228
Received in last 30 days
0
Total given
328
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Henry Wong

Scheduled promotions:

Note: We can run more than one promo in a given week, so check for updates.

Starting DateCoverBookAuthor(s)PublisherCodeRanch Forum
April 23Serverless Applications with Node.jsSlobodan Stojanovic  & Aleksandar Simovic  ManningNode.js
April 30Natural Language Processing in ActionHobson Lane, Hannes Hapke & Cole HowardManningAI/ML
May 7  Available
May  14Building Ethereum DAppsRoberto InfanteManningCloud
May  21Grokking BitcoinKalle RosenbaumManningCloud
May  28Well Grounded RubyistDavid Black & Leo JosephManningRuby
June 4Classic Computer Science Problems with PythonDavid KopecManningPython
June 4The Joy of JavaScriptLuis AtencioManningJavaScript
June 11Programmers Guide to Apache ThriftRandy AbernethyManningOpen Source
June 11Raction Native in ActionNader DabitManningJavaScript
June 18  Available
June 25  Available
July 2  No Promo - US Holiday week
July 9  Available
July 16  Available
July 23  Available
July 30  Available




Go back to the main BookPromotions page.
23 hours ago
CodeRanch Book Promotions - This Year's Winners


A big Congratulations to all our winners!

See our BookPromotions2018Winners

DateCoverBookAuthor(s)PublisherWinnersStatus
January 8Electron in ActionSteve KinneyManningSalvin francis , Paul Anilprem , Tony Esposito , charles rossSent in winners (1/20/19)
January 15Hands-On Software Engineering with PythonBrian AllbeePacktPaul Nisset, Carl Byrd, Scott Mac Donald, Campbell RitchieSent in winners (1/20/19) (Carl Byrd received)
January 22Get Programming with Java (MEAP only)Peggy FisherManningtangara goh, Manos Marketos, Fred Kleinschmidt, Daniel AnderssonSent in winners (1/28/19)
January 29Java in a NutshellBen Evans & David FlanaganO'ReillyWill Myers , Vanessa Williamson, Dave Tolls , Cezar ApulchroWinner reported received (3/1/19)
February 12Java XML & JSONJeff FriesenApresspaul nisset, Carl Byrd, Jorge Ruiz-Aquino, ludoviko azuajeWinner reported received (2/25/19) (Carl Byrd received)
February 19Kotlin for Android App DevelopmentPeter SommerhoffAddison-Wesley ProfessionalSean Corfield, Dave MacLean, Terry Broman, paul nisset, Rania BradburyWinner reported received (4/9/19)
February 26Head First KotlinDawn & David GriffithsO'ReillyWill Myers, Celso Furtado, Al Hobbs, Ron McLeodWinner reported received (3/29/19) (Ron McLeod)
March 12Core Java, Volume II--Advanced FeatureCay HorstmannPrentice HallStephan van Hulst, Zulfi Khan, paul nisset, Tim HollowayWinner reported recieved (4/9/19)
March 19Python Continuous Integration and DeliveryMoritz LenzApresslRogerio Kioshi, Travis Risner, M Khalid, Carl ByrdWinner reported received (10/9/19)     (M Khalid Received)
March 26Head First GoJay McGavrenO'ReillyRyan Jumawan, Timur Radzhabov, Rob Spoor, Will MyersEmailed winners to publisher (4/9/19)
April 9Servless Programming CookbookHeartin KanikathottuPacktLanny Gilbert, Lucian Revnic, Liutauras Vilda, Billy TsaiWaiting on winners info
April 16Production Ready Serverless (Video)Yan CuiManningCarl Byrd, Timur Radzhabov, Divya Shiv  Waiting for winners info  


Note: All dates in mm/dd/yyyy format.

Go back to the main BookPromotions page.

For questions about this page or to schedule a promotion, contact: bookpromotion AT javaranch DOT com
23 hours ago

First, a big thanks to Yan Cui for being here to promote Production-Ready Serverless (Operational Best Practices). It's a shame that we didn't get many questions...

The winners are:

   Carl Byrd
   Timur Radzhabov
   Divya Shiv

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)


Also, please include the following as the subject of your Email.

Promo Winner -  Production-Ready Serverless (Operational Best Practices) - Tuesday, April 16th, 2019


Image from https://images.manning.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.
23 hours ago
This week, we're delighted to have Yan Cui helping to answer questions about the new Production-Ready Serverless (Operational Best Practices).


The promotion starts Tuesday, April 16th, 2019 and will end on Friday, April 19th, 2019

We'll be selecting four random posters in this forum to win a free copy of the electronic book/resource (video) provided by the publisher, Manning Publications.


Image from https://images.manning.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.

Ana Yo wrote:Sorry I meant to say why the array did not change at all.



Well, the array did change. It changed and changed back.

Basically, during the first iteration of the loop, it flipped the first and last elements. And during the last iteration of the loop, it flipped the last and first elements. Anyway, I will let you work out the other iterations of the loop.

Henry
3 weeks ago

rian bron wrote:
but here i do specify which constructor of the superclass to use , because there is only 1 constructor in the superclass in this case, why would it be by default then?
do i must to use the java word "super" to gain access to the superclass constructor?



Java follows the rules of its specification. And there isn't a rule that does what you want, and in the way that you want it -- meaning call the superclass constructor, using the parameters of the subclass constructor parameters, but in a different order. If you want that, you will have to do it yourself -- something like this...



Henry
3 weeks ago

rian bron wrote:
In the Apple class i have a compilation error. ( I uploaded the error with the file )

Why is that?



By default, if your subclass doesn't specify which constructor of the superclass to use, it will try to use the no-args constructor. In this case, your Food class doesn't have a no-args constructor.

Henry
3 weeks ago

First, a big thanks to Cay Horstmann for being here to promote the book Core Java, Volume II--Advanced Feature.

The winners are:

   Stephan van Hulst
   Zulfi Khan
   paul nisset
   Tim Holloway

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Core Java, Volume II--Advanced Feature - Tuesday, March 12th, 2019


Image from https://images-na.ssl-images-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.
1 month ago

This week, we're delighted to have Cay Horstmann helping to answer questions about the new book Core Java, Volume II--Advanced Feature.


The promotion starts Tuesday, March 12th, 2019 and will end on Friday, March 15th, 2019

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Prentice Hall .


Image from https://images-na.ssl-images-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.
1 month ago

First, a big thanks to Jeff Friesen for being here to promote the book Java XML & JSON.

The winners are:

   paul nisset
   Carl Byrd
   Jorge Ruiz-Aquino
   ludoviko azuaje

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Java XML & JSON - Tuesday, February 12th, 2019


Image from https://images-na.ssl-images-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.

Jim Venolia wrote:Re-reading my post a thought hit me.  Could Javascript be as popular as it is because when, it encounters an error, it just silently returns the wrong result?  No error, no problem.  Finding wrong results in a "working" program is a lot harder than fixing an error message.



Javascript is a weakly typed language -- in contrast to Java which is a strongly typed language.

Strongly typed languages seems to follow the 80/20 rule of development. I mean that it could take 80% of the work to get to prototype, and another 20% to get to production. Weakly typed languages seems to be the reverse. It could only take 20% of the work to get to prototype, and another 80% to get to production.

Startups tend to like weakly typed languages more -- as prototype means funding vs shutting down the company.

Henry
2 months ago

sam liya wrote:i need to know what happens queue getting millions of messages withing few seconds. Does mq capable of handling these kind of situation ?



ActiveMQ, as with many other  messaging environments, implements producer side flow control. It means that if your producer sends millions of message per second, then it should work. If it wouldn't work, then your producer will be prevented from sending that fast.

Henry
3 months ago
Yeah, definitely not getting that. I guess I need to look into it some more...

Henry
4 months ago

Tim Holloway wrote:I don't have one running in front of me right now, but the dashboard webapp has always supplied me with information about what's causing my problems.



Interesting. There is a dashboard...

Running "kubectl proxy" starts and gives access to the dashboard. However, going to the dashboard is just a JSON list of stuff. Is there something that I missed?

Henry
4 months ago