Claude Moore

+ Follow
since Jun 24, 2005
Claude likes ...
IBM DB2 Netbeans IDE Spring Java
Merit badge: grant badges
Forum Moderator
Claude Moore currently moderates these forums:
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
expand Greenhorn Scavenger Hunt

Recent posts by Claude Moore

My two cents: at the current state of the art of AI, it's really unlikely that we'll manage to create a General Artificial Intelligence. You asked about replacing programmers: well, write a program means to understand a goal, create an algorithm to achieve that goal, and evaluate consequences ( I mean: consequences in terms of business logic) of the algorithm programmer's willing to write. It's pretty similar to have a GAI, because a GAI is supposed to be able to plan its own actions (and a lot more else).
What I think we'll be able to see sooner or later, and in my opinion sooner than later, is a  specific AI integrated in IDE to help programmer to write better and better code, hinting possibly inefficient code and so on . An enhanced intellisense, I mean. In some IDE is already available, by the way.

Al Hobbs wrote:Usually the built in git ui is pretty good in IDEs.  What are you using for programming?

Most of times, Eclipse and VsCode.  I don't mean to say they lack of support, but honestly they're far from user experience provided by Sourcetree
Yes, I use most of the fundamentals command line git commands, but at the very end I still prefer to use a GUI.
On Windows, I'm used to use Sourcetree as excellent tool for working with Git. It's a pity that a Linux-compatible version isn't available.
Does anyone have a Git GUI tool to suggest ?
Thanks Campbell for pointing that out. If I'm not wrong, there's no an 'official' replacement for any private, internal API classes (like the classes in sun.*  packages) , just because those are intended as 'implementation details' of a vendor-specific (Sun, Oracle) implementation, right ?
Ok, if that's the case, I'll need to make my own way to replace unsupported code with public api.
Hope to find someone's else solution over the web.
2 months ago
I've been assigned the job to porting a large 1.6 Java desktop application to  java 8/11. Here and there, the code uses internal api, like, for example, sun.awt.causedfocusevent .
Is there any documentation about which public API replaced an internal API targeted to be removed ? I  know that not for each internal api that has been misused I'll able to find an equivalent public API, but at least I need
to know a point to start from.
Thanks in advance !
2 months ago

Stephan van Hulst wrote:
I'm more concerned about what you mean by validating the token. Who signs the token? You? A third party? Is the party that signs the token also the holder of the protected resource?
In case you neither do the signing nor hold the protected resource, then why are you validating the token at all? Just pass it on to the holder of the protected resource.

I think that OP means with "validation", the process to verify if the caller may or not access a given resource, i.e at the very end, extract claims and reconstruct roles. Anyway  your concern is really a good point...
In my own experience, I used to use an external Identity and Access Management  (IAM) system, like KeyCloack, to handle the authentication mechanism and to generate JWT tokens. Depending upon the security level you want
to achive, you can rely on it for validating JWT, signing tokens, handling revocation, and so on. But for simple scenarios, this architecture may be overkill. If you are the token issuer, you may store the tokens you have issued somewhere - on a DBMS, on simply in memory : at every API call, just verify if the token is in your registry or not, and accept or reject is accordingly.

2 months ago
Most of time, you are going to use Authentication Bearer approach, despite the fact you could also manage the whole thing by yourself.
If you use Spring / Spring boot, you're provided with a number of facilities / libraries to deal with JWT token, for both supporting API security and handling JWT via code.
For example, have a look at this tutorial which explains the underlying concepts pretty well.
2 months ago
The company I work for is willing to extend capabilities of custom e-commerce sites we develop with some AI-powered features. Of course, AI / machine learning could provide a number of features, like fraud detection, customers profiling, orders forecasts and so on.
Do you have any suggestions about tools / libraries / platform I can start to investigate for evaluating their adoption ?
Thanks Tim for your reply. What I meant to say is that, AFAIK, more or less deep learning ( or machine learning in broader sense) excels in task like classification - you mentioned for example IBM's AI able to help physicians to diagnose diseases - or perception problems like automatically generate subtitles, detecting objects in pictures and so on. But programming seems to me to be more related to a kind of reasoning - I've a task, and I need to find an automatic way to solve it.  Deep learning has a generic framework to deal with 'learning to perform task ' - reinforcement learning, but my guess is that programming is far advanced than using Bellman's equation and optimizing a score function.
I think you got the point about the exaggerated sensationalism about 'sending human programmers to retirement'. No, personally I'm not afraid of being walked to the door by my boss because a bot can manage more or less my job: programming is only a task in the wider job of IT - you're right when talking about all task involving business analysis.
And yeah, of course we're not talking about an AI that wills , i.e is able to go beyond pure managing of a task !
Thanks again.
I've recently read about an official statement from Deep mind about a newly developed AI that has been able to program a challenging algorithm in python,starting from a specification written in English. Besides the usual, excessive hype about such an exciting news - some websites already marked all human programmers as doomed to extinction, I wonder if this achievement could be considered a first, clear step in the direction of a general AI. It's not clear if this AI really showed reasoning capabilities or if it's another, more advanced, case of finding a solution in an (huge) tensorial space.
What is your opinion about, guys?
Thank you guys for your quick response.  In a nuthsell, what I need to achive is the following:
- an user, via a web interface, chooses to print some generated documents (for example: invoices, customers' orders confirmations, and so on).
- via Jasper (or similar) a PDF is produced by backend layer (essentially a Spring application);
- backend layer looks up for the printer associated with the user that requested the action;
- i need a way to spool the PDF to the printer.

Historically, the workflow we used to use has been:
- the layer responsible to generate the PDF dumps any produced PDF as a Blob on a MySql table;
- a stand-alone application, on client side, reads the BLOB and via Adobe reader prints out the PDFs on the given printers.

The whole thing works, but it smells too much of an handmade solution... using cups seems interesting; is there any wrapper build around it  one can use ?
1 year ago
Scenario: I'm developing a web application that will produce a number of PDF, that need to be printed to a phisical device. For the nature of my business process, I can't simply put produced PDFs in a shared folder and let the users browse for them.  The process requires PDFs to be printed to different printers - the choice of the actual printer depends  upon a bunch of parameters - without user's intervention; the whole process must be fulfilled
with no user interaction.  So, I'm searching for a third-party product (better if open, of course) to centralize the printing process. In an ideal scenario, I should be able to submit a PDF to this software via API
(or something similar), and let it handle the printing process.

Could you suggest me a solution to adopt ?
1 year ago
I'm afraid there's no much hope for getting specs. The data are exported 'as are', from a legacy API.

D. Wizard Mutansan wrote:

Campbell Ritchie wrote:Adding you to our jobs forum.

More to the point, what do you know about machine learning? How do you think you could learn more?

I nearly know nothing yet.  All I have done is I spent few hours and learned some basic concepts like data mining, supervised learning, linear regression, gradient descent. That's it.  Even that was at concept and math level.  I was able to understand it sine my math is ok.  Other than that I don't know anything.

Dealing with gradient descent, linear regression and so on it's something that modern ML frameworks do for you automatically. Don't misunderstand me: I think that knowing what's going under the hood in ML is a MUST, if you want really achive knowledge of the theorical aspects of the matter.
If you're not aiming to work at a research facility, it's unlikely that you will develop a ML framework from scratch.
This said, ML is an HUGE field. Which sector of ML (if it could be named so) would you like to work in ? As a data scientist ? Big Data ? Artificial vision ?