Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!

Ron McLeod

+ Follow
since Feb 12, 2013
Ron likes ...
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
Richmond, BC, Canada
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt Green check
expand Greenhorn Scavenger Hunt

Recent posts by Ron McLeod

Does the HTTPS URI use a different port number?

Can you post the stack trace for the exception?  I would expect that it contains further information to indicate the reason for the failure.
13 hours ago
It is working, just not the way that you would like it to work:
1 day ago
Saw this in the supermarket .. didn't know fish had such meaty wings

5 days ago
Can you share an example of what the corruption looks like?
1 week ago

S Raman wrote:I am not able to download  and webscrap the quotes from NSEIndia

I don't know anything specifically about NDEIndia, but I would assume that they have a webservice API to programmatically access site data.  Have you looked at that?
Some sites may refuse to service your request if certain expected HTTP headers are missing.  User-Agent is probably the most common one - the site may use your browser/client type to tailor the response that it returns to you.

Here's some suggestions:
   - Add a User-Agent header to your request
   - Add a Accept header to your request

Also, use HttpsURLConnection rather than the more general URLConnection.

For example:
This line:should cause the URL to be rewritten from yoursite/path/faq.jsp to yoursite/path/faq.html, and the browser should then request the new page.  The replacement URL should be visibile in the browser's address bar.  If this redirection happens quickly, you may not see the Redirecting ... message.

Is that what you are seeing?
2 weeks ago

R Nordstrom wrote:Darned if I can find a correct place to download samplecacerts for this tutorial.

This page has a link to download the JSSE Sample Code (including samplecacerts):
Establishment of a Websocket connection uses client-server protocol (HTTP), so the purpose of establishing the connection, client and server endpoints need to behave differently.  The client-side endpoint initiates the connection establishment by sending a request to the server-side endpoint, and the server-side endpoint (which is listening for incoming requests) responds back to complete the connection establishment.

After that connection has been established, communications between the two endpoint are peer-to-peer (although the protocols layered on top of the bi-directional communications channel may use a client-server model).

After over a year's lapse, we decided to re-invent the Journal.  It is now an "editor's picks" format brought to you by the staff of JavaRanch.  Read what your favorite moderators think is hot!

  • September 2020 Journal
  • August 2020 Journal
  • July 2020 Journal
  • June 2020 Journal
  • April 2020 Journal
  • March 2020 Journal
  • February 2020 Journal

  • 2019
  • November 2019 Journal
  • October 2019 Journal
  • September 2019 Journal
  • August 2019 Journal
  • July 2019 Journal
  • June 2019 Journal
  • May 2019 Journal
  • April 2019 Journal
  • March 2019 Journal
  • February 2019 Journal
  • January 2019 Journal

  • 2018
  • December 2018 Journal
  • November 2018 Journal
  • October 2018 Journal
  • September 2018 Journal
  • August 2018 Journal
  • July 2018 Journal
  • June 2018 Journal
  • April 2018 Journal
  • March 2018 Journal
  • February 2018 Journal

  • 2017
  • December 2017 Journal
  • November 2017 Journal
  • October 2017 Journal
  • September 2017 Journal
  • August 2017 Journal
  • July 2017 Journal
  • June 2017 Journal
  • May 2017 Journal
  • April 2017 Journal
  • March 2017 Journal
  • February 2017 Journal
  • January 2017 Journal

  • 2016
  • November 2016 Journal
  • October 2016 Journal
  • September 2016 Journal
  • August 2016 Journal
  • July 2016 Journal
  • May 2016 Journal
  • April 2016 Journal
  • March 2016 Journal
  • February 2016 Journal
  • January 2016 Journal

  • 2015
  • October 2015 Journal
  • July 2015 Journal
  • May 2015 Journal
  • April 2015 Journal
  • February 2015 Journal
  • January 2015 Journal

  • 2014
  • December 2014 Journal
  • October 2014 Journal
  • July 2014 Journal
  • June 2014 Journal
  • May 2014 Journal
  • April 2014 Journal
  • March 2014 Journal
  • February 2014 Journal
  • January 2014 Journal

  • 2013
  • December 2013 Journal
  • October 2013 Journal
  • September 2013 Journal
  • August 2013 Journal
  • July 2013 Journal
  • January 2013 Journal

  • 2012
  • September 2012 Journal
  • August 2012 Journal
  • July 2012 Journal
  • June 2012 Journal
  • March 2012 Journal
  • February 2012 Journal
  • January 2012 Journal

  • 2011
  • October 2011 Journal
  • August 2011 Journal
  • July 2011 Journal
  • June 2011 Journal
  • May 2011 Journal
  • April 2011 Journal
  • March 2011 Journal
  • February 2011 Journal
  • January 2011 Journal

  • 2010
  • December 2010 Journal
  • November 2010 Journal
  • October 2010 Journal
  • September 2010 Journal
  • August 2010 Journal
  • July 2010 Journal
  • June 2010 Journal

  • 2009 and earlier Journals
    3 weeks ago

    T h e . C o d e R a n c h . J o u r n a l  -  S e p t e m b e r . 2 0 2 0 . E d i t i o n

    A big howdy from all the CodeRanch staff, and welcome to the September edition of the CodeRanch Journal.

    N e w . B a r t e n d e r s
    Congratulations to our new Bartender: Jj Roberts.  Thanks for your great contributions to CodeRanch.

    I n t e r e s t i n g . C o d e R a n c h . F o r u m . P o s t s
    Here's some threads from this month that are worth giving a read:
  • The "Java killers"
  • A challenge problem for the night
  • JLS Postfix Increment Operator ++ Question
  • What Are "void-compatible" Blocks And "value-compatible" Blocks
  • Test Driven Development - Is it just a money maker for its creators?

  • Thanks to Michael Yuan, Cay Horstmann, Frank Mi and Tom Joe for starting these topics and everyone else that joined in for the discussions.

    T h e . N e w . 1 Z 0 - 8 1 9 . E x a m
    Oracle has merged the 1Z0-815 and 1Z0-816 exams into a single exam: the 1Z0-819. While this was introduced a bit too suddenly for those who had taken the 815, it's good for those who haven't started taking the test. One exam == half price! All existing 815/816 study materials are good to use - just skip a few topics like assertions and CallableStatement. To discuss, see....  Read more in the following threads and join in the discussions in the Programmer Certification (OCPJP) forum:
  • 1Z0-819 exam info
  • Feedback on the new OCP Java 11 Developer 1Z0-819 exam
  • Don’t Panic: Oracle announces new Java OCP 11 Exam!

  • T h e . R o u n d - u p . G a m e
    The JavaRanch Rule Round-up Game has been updated with a new a web version.

    Navigate to and test your knowledge.

    B o o k . P r o m o t i o n s
    There's a book (or software) promotion just about every week at CodeRanch. Just ask a question in the appropriate forum and you're eligible to win a copy of the book (or license).  Check the book promotions schedule

    Upcoming promotions in October:
  • Machine Learning Bookcamp (October 6th)
  •       Alexey Grigorev
          In Machine Learning Bookcamp, you’ll create and deploy
          Python-based machine learning models for a variety of increasingly
          challenging projects. By the end of the bookcamp, you’ll have
          built a portfolio of business-relevant machine learning projects
          that hiring managers will be excited to see.

  • Deep Reinforcement Learning in Action (October 13th)
  •       Alexander Zai and Brandon Brown
          Deep Reinforcement Learning in Action teaches you the fundamental
          concepts and terminology of deep reinforcement learning, along
          with the practical skills and techniques you’ll need to implement
          it into your own projects.

  • Zero to AI (October 20th)
  •       Gianluca Mauro
          In Zero to AI, you’ll explore a variety of practical AI
          applications you can use to improve customer experiences, optimize
          marketing, help you cut costs, and more.

    This month's book promotion winners:
  • OCP Oracle Certified Professional Java SE 11 Developer Complete Study Guide
  •       Winners: Charles O'Leary, Adrian Pop, Seema Richard and Frank Mi
  • Modern JavaScript for the Impatient
  •       Winners: Greg Horie, Salil Wadnerkar, Mike Simmons and Frank Mi
  • Svelte and Sapper in Action
  •       Winners: Salil Wadnerkar, Claude Moore, Frank Mi and Liutauras Vilda

    And a big Congratulations to our past Winners

    T h e . M o o s e . i s . L o o s e . o n . S o c i a l . M e d i a
    The CodeRanch announces latest news/developments frequently on our social media outlets. You can find us at:

  • Follow / Like us so you don't miss a thing.

    O u r . S t a f f
    Thanks to all staff that volunteer their time and share their knowledge to make this site the friendliest place on the web to learn.  A special thanks this month to the following members ...
  • Marshals: Campbell Ritchie · Ron McLeod · Paul Clapham · Bear Bibeault · Junilu Lacar
  • Sheriffs: Jeanne Boyarsky · Tim Cooke · Henry Wong
  • Saloon Keepers: Tim Moores · Stephan van Hulst · Tim Holloway · salvin francis · Frits Walraven
  • Bartenders: Scott Selikoff · Piet Souris · Carey Brown

  • A b o u t . T h e . E d i t o r
    Ron McLeod has been a member of CodeRanch since 2013 and a Moderator since 2015.

    J o u r n a l . A r c h i v e
    Our previously published journals are available online at:

    We've lowered the cost of advertising at CodeRanch.  Visit for details.
    3 weeks ago
    Many of the projects that I am involved with start simple, and grow more complex over time.  When does it make sense to start thinking about a micro frontend architecture?  It seems like it would bring a lot of extra burden with little (or negative) gain if applied when project is small.