'AI Is Expected to Transform the Role of Controllers & Analysts ' Community Center by Johannes C. **AI will automize many routine tasks in accounting and the role of financial controllers and analysts will change, but not be replaced – say Manoj Kumar Vandanapu and Sandeep Kumar.** ![agi-talks-02.jpg](https://static.daniweb.com/attachments/4/b1fce5f78b7456fea7043a6d095ca2f0.jpg) In the latest AGI Talks, two renowned finance experts share … Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by usmanmalik57 The advent of large language models (LLM) has replaced complex scripts with natural language for automating various tasks. You can now use LLM to interact with your databases using natural language, which makes life easier for people who do not have sufficient SQL knowledge. In this article, you will learn how to retrieve information from SQL … '30% of Activities Performed by Humans Could Be Automated with AI' Community Center by Johannes C. **Alexander De Ridder, AI visionary and CTO of SmythOS, discusses the transformative power of specialized AI systems and the future of human-AI collaboration.** ![header-agi-talks-adr.jpg](https://static.daniweb.com/attachments/4/cf1ab716c18354710010dabb4e9e2a9a.jpg) In the newest interview of our AGI Talks series, **Alexander De Ridder** … Re: 'AI Is Expected to Transform the Role of Controllers & Analysts ' Community Center by Dani Which of the two actually answered the questions? Re: 'AI Is Expected to Transform the Role of Controllers & Analysts ' Community Center by Dani I think it’s much more authentic and useful to have direct quotes. Paraphrasing loses a lot in translation IMHO. Re: Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by aishamushtaq very helpful PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit Programming Computer Science by usmanmalik57 In my previous article, I explained [how to convert PDF image to CSV using Multimodal Google Gemini Pro](https://www.daniweb.com/programming/computer-science/tutorials/541365/converting-pdf-image-to-csv-using-multimodal-google-gemini-pro). To do so, I wrote a Python script that passes text command to [Google Gemino Pro](https://blog.google/… C++ programming error Programming by sammieb I am trying to enter a single string in C++ in which I give a URL citation. the entire line is as follows: cout << 'furey, edward "sphere calculator" at https://www.calculatorsoup.com/calculators/geometry-solids/sphere.php from calculatorsoup, https://www.calculatorsoup.com - online calculators' << endl; I am getting the… Re: ASUS Laptops - my experience Hardware and Software by toneewa Indeed, I recommend to anyone that has USB ports to use the magnetic plugs for mini and micro USB ports. I see you could have the Thunderbolt 4 USB-C, so I'm sure it did cost little more. That would check one of my boxes. 144hz+ would be another. I don't need bloodshot eyes from 60hz. If you are a DIY fixer, you can also [replace the TB4 ports](… Re: ASUS Laptops - my experience Hardware and Software by toneewa I wouldn't worry about not having any ASUS utilities. You can always download them later, [here](https://www.asus.com/support/download-center/). I consider them all bloatware. Having the partition as an MBR and then installing a Windows image as GPT, is like going to replace your spare tire and finding out it has a different lug nut bolt pattern… Re: C++ programming error Programming by rproffitt You'll want to escape those quote marks and maybe more. Read https://en.cppreference.com/w/cpp/language/escape Example follows: #include <iostream> using namespace std; int main() { cout << "furey, edward \"sphere calculator\" at https://www.calculatorsoup.com/calculators/geometry-solids/… Re: Postfix authentication problem Hardware and Software Linux and Unix by chickenbirds > I am trying to set-up Postfix on my Ubuntu local web development machine for send-only e-mails using Gmail so I can test e-mails sent by a web app I am developing. Even though this is an old post I wanted to reply as I found it while trying to setup my own postfix mailrelay on my private cloud server with Debian that hosts our small … preg replace bugs Programming Web Development by cwarn23 … are sending me crazy are as follows: [CODE=php]$textb=preg_replace("/([^)])( | | |\>| \>| \>| \>… was taken out from this spot. $textb=preg_replace("/(\'(.*)\')/is","<font color=#c…;'$2'</font>",$textb); $textb=preg_replace("/(\'([^'])\')/is","'</font>$2… Problem in Preg Replace Programming Web Development by jhbalaji …='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200);[/CODE] Since the variable $body contains…='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200); // Here the Output will be // <… Re: preg replace bugs Programming Web Development by ShawnCplus My biggest recommendation would be to use a prebuilt syntax highlighter and just add a syntax extension. [url=http://qbnz.com/highlighter/]GeSHi[/url] is one my my favorites. Re: preg replace bugs Programming Web Development by cwarn23 … the attachment in the first post. [CODE=php] $textb=preg_replace("/([^)])( | | |\>| \>| \>| \>…str_replace('> <','><',$textb); $textb=preg_replace("/(\'(.*)\')/is","<font color=#c#…','<b>globalvar</b>',$textb); $textb=preg_replace('/( | | |\>| \>| \>| \>)var… Re: Preg replace with callback to replace change parts of links ? Programming Web Development by pritaeas (?!https?://(www\.)?mysite\.com) Replace needs to use `$2` then, instead of `$1` Re: replace $v in a string with a random replacement Programming Web Development by tpickett $replace is the array. and it would be structured like this: $replace = array( 'racer', 'race car driver', 'racing', 'race team' );//array to replace $match with $search = "text"; //keyword to match n = "3"; //number of times to replace in artcle $str = '… Re: Replace eregi_replace expression with preg_replace Programming Web Development by cereal …;/font>'; echo eregi_replace($eregPattern, $replacement, $text); print PHP_EOL; echo preg_replace($pregPattern, $replacement, $text); print PHP_EOL; > I how do I… check preg_replace function is executed or not? From the [documentation:](http://php… Re: replace part of field with FIND IN SET Programming Web Development by pritaeas Replace `replace1` with `table1`, same for 2. replace $v in a string with a random replacement Programming Web Development by tpickett I am developing a script that takes an article, searches the article for a "keyword" and then randomly replaces that keyword with an anchor link. I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop through and insert at the random location. So the first … Re: replace $v in a string with a random replacement Programming Web Development by LastMitch **@tpickett** >$replace is the array. $replace = array('racer','race car driver','racing','race team'); //array to replace $match with $search = "text"; //keyword to match n = "3"; //number of times to replace in artcle $str = 'this is example text. it has text. wouldnt you like to replace … Re: replace $v in a string with a random replacement Programming Web Development by tpickett you are correct the code is functioning that way currently. What i would like to happen is the 3 matches that get replaced, be replaced with differen't values(chosen at random from the $replace array). It currently outputs only 1 value for all 3 matches. my original attempt is this part: $searchCount = count($replace); $arrayNum = … Re: replace $v in a string with a random replacement Programming Web Development by tpickett i figured it out by adding in this line: $replaceRand = $replace[array_rand($replace)]; into the foreach loop. Thanks for your help! Re: replace $v in a string with a random replacement Programming Web Development by LastMitch **@tpickett** >I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop through and insert at the random location. I don't understand what you are trying to do? You didn't show the array? Which of these are the array: `$str, $search, $replace, $n`? Re: replace $v in a string with a random replacement Programming Web Development by tpickett the $n makes sure that the function doesn't replace more that what was set to be replaced. So if I have a string with 6 matches of $search, and $n is set to 3, then the function only replaces 3 of those 6 matches at random. Replace custom tag with include Programming Web Development by utroda Hello, I'm trying to replace {include %filename.php%} with that file from the server. I can get this to work file if the file is plan html text using the function below. [CODE] $str = "This would be a paragraph of text. {include %news.php%}"; preg_replace_callback("/\{include %(.*?)\%}/", function($m) { return … Re: Replace custom tag with include Programming Web Development by utroda I want to get the text from the bodyRight in the database, if there is a tag in the text like {%filename%}, replace that tag with an include. Take a look at the function below. [CODE] // // Example // public function getContentRight($id){ global $mysqli; $sql = "SELECT bodyRight FROM pages WHERE id = '{$id}' LIMIT 1";… Re: Replace custom tag with include Programming Web Development by Stefano Mtangoo I gave you simplest way without including any file. Just Add that div in html template file, let say {%right_content%} with all necessary css/JS. Then add this line to replace with contents of the database [CODE]<?php $layout = new HTemplate("layout.tpl"); $layout->set("right_content", getContentRight($id));… Re: Problem in Preg Replace Programming Web Development by jhbalaji Any updates please :)