This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!

Les Morgan

Rancher
+ Follow
since Sep 29, 2015
Les likes ...
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
Cows and Likes
Cows
Total received
22
In last 30 days
0
Total given
1
Likes
Total received
154
Received in last 30 days
1
Total given
140
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 Les Morgan

Randy,

That is the question isn't it?  The model only knows what you teach it, so you have to set the right goals to start with and enough of them so you don't get a learned deviation from your resultant inputs.  I know that is still very vague, but that is the real problem.

Les
Dave,

indeed you can do that, but it is not the way I chose to do it.  IMO, I enjoy the inheritance models and the way it makes you think of what you are using.  Very true though, all an object has to do is implement <myInterface> and they are there 100% compliant with my list.

Les
6 days ago
Monica,

i use diverse objects in a non generic list and do not have any of he problems that are spoken of in a lot of the instances mentioned.  i use it to hold object that implement in interface that all have to have work done on that interface.  in my case, it is displayable objects, which in my code implements the interface displayable.  in doing so they are all guaranteed to have what is needed to be displayed on the screen as needed.

Les
1 week ago
don,

remember that your object you are moving around has real size on your screen.  You have a conditional where your location for x < 0, well, if your location is less than 0, then you are out of the border already, so you have to reset your x position to 0 as well as changing the direction of the x component of your velocity. Same as when you go to the right, but you have your (JPanel border)-(object witdh) as your right most.  The same is true for your y component and your top and bottom limits.

Les
1 week ago
you have an array input, or a comma-separated list, then use a printf on each item for a linefeed carriage return to get them on a single line.
1 week ago
Monica,

That is a big world... "Data Analytics", I work in data analytics support and i'm a senior DBA/Programmer for a major research team.  In the very wide picture of things data analytics is the analysis of data--trends, relations between sets, analysis and fitting together of everything to support a specific field of endeavor, or cross endeavor support from an engineered core sample--and all the tools and people and skills that go along with it.

Could you narrow your question down a bit, because, in reality, you are expecting an answer to what is an octopus, but asking what fish are?

Les
1 week ago
Glyndwr Bartlett,

the many people that have suggested storing your file in the file system and not the DB are quite correct: store the meta in the database and assemble that file when you read it into an actual XLM file and put it out on your network.  

I speak from experience there: we did an early image project and the trials we ran showed that the file system for the images and actual file data was much faster and less maintenance than when stored in the DB.  We pulled the name and the related reference links to supporting files and read directly from the network for the actual files.  The saved us huge time over manual lookup and the file system saved at least 30% per document that we had saved.  The project wasn't all that large around 1/4 million images and supporting documents.  It was a good solution and may still be in production today--some 25+ years later.

Les
Imamu,

Generally speaking the string reversal assignment is given when the teacher it talking about recursion.  It is a classic and very simple exercise to reverse a string using recursion.  If the instructor was taking about recursion when he/she gave the assignment, I strongly suggest you use recursion to complete the assignment.

Les
1 week ago
Fred,

Your quandary is very valid: maybe programming is not for you.  The thing about that though, only you can answer that question.

From my first programming assignment in college some 35+ years ago, I knew programming was for me.  Not everyone has the epiphany at the start.

As for your question--I have learned, workably, for school, pleasure, and my job roughly 25 to 30 languages including various dialects of C, Assembler (even machine code), Java, scripting, SQL, and a host of others that are too numerous to mention or for me to recall easily.  Please do not make the mistake of thinking that leaning a language is synonymous with learning to program, it is NOT.  All you do by leaning a language is put another tool into your collection to use to implement your designs--the algorithms you develop to make the desired into reality.  In each case that I learned a language I had to make sure that I knew what was covered in the chapter or the few paragraphs I just read, in doing so, I usually made a small program to illustrate and cement into my mind what I had just done.  In school that was easy, the teacher assigned everyone a problem and we all had to solve it, and grades were given.  In real life I have to come up with the ideas to program, and truthfully, they are a lot more difficult than the exercises in the book or that were assigned in college.

I know a person, we were good friends in college, he got a degree in computer programming, and yet, he could not get 5 lines of code to compile--EVER!!!  But he was a wiz at algorithm development and comprehending the problem and explaining it to others.  He could also translate his design into pseudo code for others to code up.  I know strange combination, but it worked for him, he actually got a job in programming where he doesn't actually have to code anything.  Coding is not for him, but he definitely is a programmer in my opinion--he has all the skills of a superb designer, just not the skill to implement any of it.

If you are reading a language book, no matter how good, and thinking that you know how to program in the end, I am sorry to inform you that your thinking is truly flawed.  Programming is what my friend was truly gifted at: understanding the problem, being able to explain it to others, then being able to break the problem down into manageable sized chunks and develop algorithms to bring that solution to life.  Once again though, he cannot code the answer for you.  So you read the book and didn't do the homework, the problems in the back of the book, what does that mean?  It's like you audited a class.  You were there, but you didn't do anything for credit, so it doesn't count on your transcript.  You're familiar with the information, but you cannot pull it out in any reasonable fashion to do anything with it.

Now here's the hard reality: are you will to go back and redo it?  Read it all over again and actually do the work, do extra work, if needed, to be sure to get the concepts cemented into your head? if not, then really consider seriously that programming is not for you.  If you are willing to do so, then actually buy a book that will teach you about programming and the theory behind development.  I literally read hundreds of articles, books, and howto's each year and i'm 30+ years into programming and actually recognized as being somewhat gifted in the field--expect to do the same.

Now another hard look at reality: when I started in general engineering there were approximately 850 kids that semester at the college I attended.  The semester I graduated, they graduated 20 people in EE, Comp Sci, and Comp Eng.  That's about 2% success rate.  The work is hard.  Many cannot do it, even more choose not to do it because it's hard. (BTW: 850 is the number of new incoming students each and every semester and 20 is about the number they graduate every semester--lest you think there was some anomaly where a huge number dropped out unexpectedly.)

You seem to be able to formulate a reasonable sentence, so you, quite probably, have enough brain matter to become a programmer, but the real question is: "Is it worth it to you?"

NOBODY CAN ANSWER THAT EXCEPT YOU!!!

Fred Masen wrote:I have an important question. I tried to learn Java and I failed miserably. Which means that after 8 months of studying Java I could not build any project on my own. However while I was following the book I did not take the time to solve any problems who was given after each Java lesson. The thing I did at that time was to copy the code of the lesson and modify it a little bit thinking that I was understanding the principle and I was comprehending the material. The exercises following the lessons seem to me too complicate so I never bothered trying to solve any of them. So my question is that : When you learn Java , C++ or anything other language as first language do you guys try to solve these exercises after each lesson? Sometimes I feel that programming is not for me so I stopped for a few months then I feel the urge to try again. Thanks for your answers.

2 months ago
It is very simple: the 2nd does not have any parameter list to match your arguments.  That is talked about in any article that discusses overloading.

Your problem probably comes in that in your example a is a char but you are trying to put it into a long or int parameter, in that case you need to look up auto boxing in Java and see what data types can be automatically converted to another.
2 months ago
Yani,
very simple... boolean b = false; then when you print what you want b=true binary flag is all it takes.


Yani Stan wrote:Hi guys,

I am currently writing a program that requires to store some strings in an array, but when I do that, only the first String inputs. What am i doing wrong?





I would like all of the Strings to output

Thank you very much for any help

2 months ago
If memory serves correct, and i'm not getting languages mixed up, then the try(r1) is a test block, using the try resource structure.

John Mercier wrote:Hello, in try-with-resources what is the code between () called?



In the section where r1 and r2 is initialized what is it called? Is it "initialization"? That wouldn't make sense since in java 11 we can now just declare the resource used.



I'm watching a video about try-with-resources and it keeps referring to the try-block but clearly everything in () is not the same as the try-block. So I want to know if there is an official name for it.

2 months ago
We always said: there are 10 kind of people... those that count in binary and those who don't, and then there are those who know better

Tim Holloway wrote:Well, you know what they say. There are 10 kinds of people. Those who count in binary and those who don't.

Incidentally, in my high school days we had a fad of playing with number systems that had negative bases. That was fun.

Patterns can come in in topology, graph theory, and, of course, topological graph theory.

Nothing is more fun to a Pure Mathematician than merging multiple math systems together. Now lets define some algebras and calculi on them!

3 months ago
Maybe. Kind of depends on your understanding of human anatomy and number systems doesn't it

Campbell Ritchie wrote:

Les Morgan wrote:. . . comprehend, visualize, and develop complex patterns . . .

A lot of people believe that visualising patterns counts as part of Maths. Even simple patterns, so planning anything more complicated than “Hello World” counts as mathematical reasoning. You said it yourself later:-

Modeling is Math.

take their shoes off to count past 11. . . .

Please confirm that is 11 in decimal.

3 months ago
Joe,
any time you get a reference to an object, you can store that reference in a list, in doing so, you have a reference to the object any time you need it.  You do have to be very careful when you do something like that though because you object will never be garbage collected while there is a reference to it in the local list.
Les

joe encalada wrote:Hi Les.

Thanks for your comments. However, in this line:

CountersPanel is a class which uses TablePanel class as an argument, so in this case there is not way of getting update data from this class(which is the argument)?

Sorry if my question sounds kind of silly.

3 months ago