Thursday, February 01, 2024

AI isn't the problem — it's the solution?

 Andrew Ng: AI isn't the problem — it's the solution | TED Talk

People are growing anxious about AI, believing it's going to amplify our worst impulses, take our jobs or even wipe out humanity. But the doomsayers have it wrong, says AI visionary Andrew Ng. He debunks each concern, suggesting we need more AI, not less, if we're to solve the world's most pressing problems.

energy: Fusion Breakthrough?

 Fusion Breakthrough: US Experiment Hits Monumental 'Ignition' Milestone : ScienceAlert

For the first time, researchers created a nuclear fusion reaction that produced more energy than they put into it.

The experiment, conducted on December 5 at Lawrence Livermore National Laboratory in California, generated 3.15 megajoules of energy, more than the 2.05 megajoules put into creating it.

DataGrip with parametrized SQL queries

 User Parameters | DataGrip Documentation


Open settings by pressing Ctrl+Alt+S and navigate to Database | Query Execution | User Parameters.


Substitute inside SQL strings

Apply parameter patterns to string literals in the SQL code.

For example, consider the following code.

SELECT ${column_name}
FROM actor
WHERE actor_id='${actor_id}'


even this works

SELECT * FROM table WHERE column = :value

sql - How to run query with parameters in DataGrip? - Stack Overflow

Just run it via Ctrl+Enter!  (command+return on Mac keyboard)