Ganesh Patekar

Saloon Keeper
+ Follow
since Jun 24, 2015
Ganesh likes ...
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
This soul began to dwell in this body named Ganesh Patekar since 31/07/1987 in Solapur, Maharashtra, India.
Being youngest child in the family had happy childhood but I was also an obstinate kid As days go by I became more amiable.
I had persuaded Bachelors of computer application( BCA, Batch 2007-10 ) from Sinhgad College of Science, Pune. I’m so greedy about learning so couldn’t stop there so persuaded Master of computer application ( MCA ) from Sinhgad Institute of Management, Pune. I used to act as emcee and compare in college events. Those were the best days of life.
I really adore to learn new things. I always eager to write a beautiful code I enjoy visiting natural places near by Pune on weekends.
I’m passionate about maintaining good physic so I do yoga, pranayama and workout regularly because I think, health is wealth.
Pune, Maharashtra, India.
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

Recent posts by Ganesh Patekar

Please don't create multiple threads for the same topic. Better continue here
6 days ago
Saw thread last night It was already 2 am(IST) and had mobile so wasn't in state to reply.

Couple of days ago I had same issue with Eclipse IDE. IDE used to run and give output of a previous program. I searched a lot the reason. I just found one thing that active editor program wasn't launching ensuing IDE launched previous program. I created a different work space and copied all the files. It worked but not solved as It's still there in my mind why that program wasn't launching. Same thing might have happened with Sean Stevens's NetBeans I guess. Good to know creating new file worked.
6 days ago
I'm creating a maven project using command
mvn archetype:generate
after downloading some plugins It's prompted to choose maven archetype.

This is what It shows on command line terminal
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1265:                     

and 1265 says:
1265: remote -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)

But when I created Maven project using Eclipse Java EE IDE for Web Developers. Version: Oxygen.1a Release (4.7.1a) It shows a window ( you can see the screenshot added below ) having a checkbox to create a simple project. I've seen in almost all video tutorial they have chosen create simple project.

Here is what 1266 says:
1266: remote -> org.apache.maven.archetypes:maven-archetype-simple (An archetype which contains a simple Maven project.)

What is the difference between sample Maven project (1265) and simple Maven project (1266)? which one am I suppose to choose for trying a simple Java project?

1 week ago

Ganesh Patekar wrote:but the POM file of core module showing an error "failed to read artifact descriptor for org.hamcrest:hamcrest-library.jar:1.3"

I solved this by creating a System variable named M2_HOME and Its value is the location of Maven folder i.e. on my system It's C:\Program Files\Apache Software Foundation\apache-maven-3.5.4  and then in System variables appended the path of maven bin folder to PATH variables value i.e. %M2_HOME%\bin;
1 week ago
1 week ago
This is the first time I read much admired OCAJP certification book written by Mala Gupta so was excited to peruse It. Note that you have to have basic knowledge of Java to understand the book.

At first glance you see an illustration of a lady on the book cover which made me curious to know more about It, which is gracefully revealed later in about the cover illustration section, was quite interesting to know about It.
As you commence reading the book, in about this book section you will find an explanation on how to use the book to get the most out of It.

Since author recommends a structured approach to preparing for this exam ensuing you get very detailed information about the exam in the form of a chapter based exam objective map, well organised in tables where we get the clear idea of exam objectives with relevant chapters.

FAQ section answers all the question that comes to the mind of aspirant who is preparing for the exam. Next section let us know the education and immense industrial experience of the author besides that It also states that the author is a firm believer in creativity, innovation and design which can be seen the way each concept is explained in the book with the help of pictorial representation, comic strips to help you retain read information longer, diagrams and images with highlighted line of code to draw your attention to that specific line of code which kept my interest alive till I encounter the appendix section of the book because I too adore drawing the diagram whenever necessary to understand the concepts. For an example Figure 2.15 named Assigning bigger value to a variable capable of storing a smaller value range, which shows a picture of a guy trying to fit himself in a smaller container, I find the figure funny as well as informative which you will never forget. Author also narrates her real time experience, how preparing for the certification helped her to debug a Java application.

In every chapter you will see callouts talking about objectives which are covered in each section, you will also be informed which points are not included in the exam which will make you clear which concepts to emphasize most on.
Author used UML diagrams whenever necessary to make us understand the concept more clearly. 

I’m quite impressed to see the Note section which talks about good programming practices in real-life project, what is not on the exam and much more, also the review notes which I too use in my documentation to highlight the important points of chapter Or any concept I read. At the end of each chapter you get the exam questions which follows real exam pattern to acquaint you with the real exam. Ultimately the book lived up to Its reputation as well as my expectation.

I give this book 10 out of 10 horseshoes.

Disclosure: I won a complimentary eBook of this book in the book promotion which frequently held at CodeRanch.

1 week ago
By the way I'm wondering how members of a project team communicate how many classes Or objects going to be there in the project?  I mean not just about objects Or classes but the flow of project, methods etc. not sure I'm able to convey what I meant. How they coordinate because everyone things differently?

As Pete already posted objects in this project here  I also drew UML class diagram on ruff page and object were almost same. I think there is Player class which will have sub classes Dealer and RegularPlayer ( You can suggest good meaning full name for this) but I couldn't find more common fields Or methods (at least by now) of Dealer and RegularPlayer to be declare Or defined in Player class so they will be inherited by both sub classes. Do you still think we suppose to create a Player class having Dealer and RegularPlayer as sub classes?

1 week ago
This is what I did

In Eclipse Git Repositories window:
cloned Git repository from our Github  link since I created a separate branch named Ganesh and have to make changes in that only so I just cloned that branch only but not the master, is that correct? Or have to clone master branch too? see in the screenshot.

After that imported project by right click on repository shown in another screenshot then imported two Maven projects Blackjack and Blackjack/core    hope did correct?
1 week ago

Stephan van Hulst wrote:You created your "cli" module inside of the "core" module. The "src" folder that you can't create new classes in is actually the source folder for the "core" module.

I think I created separate module cli correctly? but the POM file of core module showing an error "failed to read artifact descriptor for org.hamcrest:hamcrest-library.jar:1.3"
1 week ago
In screenshot cliModulePart you can see the red round which has .java files in packages where I can create new Java classes and edit them too and blue rounded part seems folder view of project? where I think we can't create new Java files because right clicking on It shows menu shown in menu screenshot but If you look at screenshot coreModulePart which has only folder view part why there is no such packages which we have rounded in red color in cliModulePart screenshot?
1 week ago

Stephan van Hulst wrote:The problem here is that you're not using Maven to build your project. Eclipse IDE for Java Developers comes with native Maven support.

Ah! I see, now got that

Delete the projects from your workspace and also delete the .settings/ folder and the .classpath and .project files. In the "File" menu of Eclipse, select "Open Projects from File System...". Eclipse will automatically detect that Blackjack and the core module are Maven projects.

Seems I did as you suggested.

Move your classes to the appropriate packages in the core/src/main/java folder. Instead of writing main() methods to test your code, write test cases inside the core/src/test/java folder. You can execute your test cases by running the "Coverage" action in Eclipse on the core module.

Now things are getting clear about Maven and JUnit ( not thoroughly but at least got what they are about ) writing simple classes using Maven and testing them using JUnit locally. Very soon will add a Player class in core/main... module, hopefully with test class of It as well in test/....

If you want to add a user interface, add a new module to the project. The "core" module is for the basic game logic of blackjack. I suggest you add a new module named "cli" where you can add classes for interacting with the console.

Added a module cli ( having core as parent ), appears added correctly.
1 week ago
Congratulations that's a great score and thank you for sharing your resources with us.
Welcome to CodeRanch and congratulations on new arrival 
Okay as mentioned in Contributing I created a personal test branch and added my whole project ( which looks weird since added unnecessary files too, It's easy in Git bash way to add those in .gitignore file than Eclipse ) which I posted above. I did this using Eclipse IDE.

I find It difficult to copy the structure of project you created. I learned most of Git commands using Git bash and documented them with examples too so took little more time sorry for that. I find It is much easier than using Eclipse may be I couldn't find a good tutorial on how to use Eclipse for Github?

So the class we have in our master branch Cards is nothing but a Deck class? which I have in my code hope I'm correct.  I want to add new classes Player and It's sub classes Dealer and RegularPlayer which may not be same as It's in above code for features/feature-name for features.

It is easier for me to create a file and write code in Eclipse and copy paste that file in C:\Users\GANESH\git\Blackjack\core\src\main\java\com\coderanch\blackjack   then use Git bash to add file to stage area then commit to local repo then push to remote repo ? what will you suggest? I'm feeling a bit awkward now cause of dearth of knowledge regarding Git and all.
1 week ago

emma roberts wrote:I get used to the structure  {

that's why I did not understand the

Niether It's mandatory for a case label to have break statement after It nor default to be at specific location. Go through the link CB mentioned.
Since this is your beginning to read the OCA book I guess?  you can note down assessment marks and  go ahead reading book chapter by chapter to discover such mysteries of Java. If you can't resist curiosity then go-to chapter 2, page no 72. Peruse the switch statement part If still confusion persist, no worries you are always welcome ...