Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 In previous articles, I explained how to use natural language to interact with [PDF documents](https://www.daniweb.com/programming/computer-science/tutorials/541732/paris-olympics-ticket-information-chatbot-with-memory-using-langchain) and [SQL databases](https://www.daniweb.com/programming/computer-science/tutorials/541771/using-natural-language-… Paris Olympics Ticket Information Chatbot with Memory Using LangChain Programming Computer Science by usmanmalik57 In my previous article, I explained how I developed a simple chatbot using LangChain and Chat-GPT that can answer queries related to Paris Olympics ticket prices. However, one major drawback with that chatbot is that it can only generate a single response based on user queries. It can not answer follow-up questions. In short, the chatbot has no … How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the OpenStack Object Storage container It works great if I upload a file that ends with the extension .gz however, I’m getting an error regarding the ‘TarFile’ object having no attribute ‘read’ after running my … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 Good day, Salem. My apologies for taking so long to reply to your suggestion. I refactored my code to read the contents of the tar.bz2 file and then pass them as a file-like object to the 'put_object' and also to change the content type for the file transfer to "application/octet-stream". The first was sent through to object storage … Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani > After code changed, not only will still not send email but screen turns blank white. That's a PHP fatal error. It could be a syntax error, or it could also be that PHPMailer is not in the location you're telling PHP to look. Do you have any way of accessing the error log? Without access to the server, perhaps through a web-based control … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message? Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book I have made a change to my website from `non-www` to `www` since i saw many google owned websites use `www` in front of the domains.. so i though why not me too. But after making the change i did a google search on the same topic and came up to many different answers from the communities. I also ask BARD and ChatGPT about the same topic and they… Mariadb10.11.6 Glarea single failed node startup stuck failure Programming Databases by mx_983 Basic background information Mariadb Ver 15.1 District 10.11.6 MariaDB Glarea cluster, one with three nodes: Node1:192.168.18.78 Node2: 192.168.18.79 Node3: 192.168.18.80 Among them, Node1 node was restarted after a power outage of 1 hour, and after executing the system ctl start mariadb, it was stuck for a long time (running for 6 hours) … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner More problems. I incorporated the coding Biiim provided. Before any changes, after submission, would display the correct (yellow) screen. After code changed, not only will still not send email but screen turns blank white. URL provider, IONOS, told me that the Host is smtp.ionos.com and the Username and password are for an email address associated … Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim Hi David, > More problems. I incorporated the coding Biiim provided. Before any changes, after submission, would display the correct (yellow) screen. After code changed, not only will still not send email but screen turns blank white. URL provider, IONOS, told me that the Host is smtp.ionos.com and the Username and password are for an email… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani As someone who has been in the SEO industry for over two decades, it doesn't really matter if you use www or non-www. All that is important is that, whichever you choose, you stick to it. That means that all links on the web (social media, etc.) point to the same version of your domain. All internal links on your website point to the same version … Re: Improve HAVING BY performance Programming Databases by Biiim I realise this has been marked as solved, but I wanted to make it known that the HAVING clause runs on the returned result set of your query, which as you say has no indexes on it as it is just a temporarily created result set - but has the benefit of allowing you do do some simple post-processing on the result set. (This is for MariaDB at least)… Re: ASUS Laptops - my experience Hardware and Software by Reverend Jim >I consider them all bloatware Something I may try on this laptop (old ASUS K53E) once I get my other one back is a fresh install from USB but selecting "World" as my region. I read somewhere a while back that if you select any specific region, bloatware for that region gets installed, but if you pick World then no bloatware. You … Re: ASUS Laptops - my experience Hardware and Software by toneewa > Ever had to install Windows from 39 floppy disks? It was not fun, especially when disk 39 frequently had a read error. Not that many, I still have them. Highest was 6 for booting, so I could read a CD. I wrote on them, "BAD" if ever had that problem. > I actually tried this as well, running diskpart.exe. It couldn't see … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem First, let's prepare two tar files using different compression schemes for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar files, two compressed and one uncompressed for reference $ tar -j -c -f foo.tar.bz2 foo_1.txt foo_2.txt… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner Ran into some new issues. Here goes. In order to download PHPMailer, must download Composer. In order to install Composer, need a Command Line PHP.exe file. I do not have one of these. I have been using PHP services from URL provider, 1 & 1/Ionos since 2011. They said in order to get a Command Line PHP.exe file, requires SSH to 'Connect to … Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim You don't need composer or access to the php.exe. just locate the PHPmailer Directory into your web root, to keep it simple and the require links should point to where it is located. mine is `require 'includes/PHPMailer/src/PHPMailer.php';` cause I put it in a folder called includes, this should be relative to the file that is using it.… Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani To clarify, I am suggesting: [...] //make your email body to send here $survey = "RadiantNewHorizonHomes.com General Inquiries" . "\r\n" . "\r\n" . "Name: " . $_POST['Name'] . "\r\n" . "E-mail Address: " . $_POST['Email'] . "\r\n&… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book I was about to ask next about the `Google Search Console` whether i should make new property with `www` or not. So now i made the new property, should i delete the old one, or just leave it like it is? Google wont get confused on which property should crawl? I will also make a dynamic sitemap that is generated with PHP with the `www` in the … Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani Google won’t get confused as long as you implement 301 redirects from non-www to www. The benefit of keeping both search console accounts is you can keep track and see that Google is stopping/slowing down crawling the old one and no longer indexing it. If Google search console is still showing you indexed pages for the non-www property, then … Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book > Google won’t get confused as long as you implement 301 redirects from non-www to www. I have code in `.htaccess` file ` # Redirect non-www to www RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] ` Is this good enough? I also have another question related to seo. I … Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani I don't have personal experience with multilingual websites or non-English websites to be able to advise you on what's best. However, I would advise you that while it's appropriate to use multiple fonts, you want to ensure the entire website has a consistent look and feel, navigational structure, and design language. Otherwise it will be very … Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book Alright, got it! So Google is smart enough to realize that `pametno-indukcisko-resho` and `паметно-индукционо-решо` mean the same in my language. Thank you so much for the help Dani! Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book Just as an update to this thread. I noticed weird link structure getting indexed on google after i created the new property with `www` version. Take a look how my links are getting indexed https://www.kupisi.mk/product/index.php?mainCategory=за-дома&productName=елегантен-кујнски-мијалник-од-нерѓосувачки-челик&product_id=44… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani Make sure that every page has the correct link rel=canonical html tag set to tell Google what the one and only URL to the page is. Ensure there are no internal links anywhere in your site that use this wrong version of the URL. Remember, Google is finding this wrong URL somewhere! It’s not making it up :) Ideally, implement 301 redirects… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book > Make sure that every page has the correct link rel=canonical Where should i place this tag ? > Ensure there are no internal links anywhere in your site that use this wrong version of the URL. I ensured and updated the search.php file which was redirecting to `non-www` version, now is fine. > Ideally, implement 301 … Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book I just updated the canonical url structure format into Cyrillic characters. $canonical_product_url = "https://" . $_SERVER['HTTP_HOST'] . "/product/$mainCategory/$productName/$productID"; $product_url = "https://" . $_SERVER['HTTP_HOST'] . "/product/" . urlencode($mainCategory) . "/"… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani Is that what you want your preferred URLs to look like? Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Dani You are correctly implementing 301 redirects in an .htaccess file. Ensure that the redirects point to the exact same URL as you have in the canonical. Additionally, ensure that all internal links throughout your site point to that same URL as well. Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by bijutoha I've noticed this: We can locate the solution when I submit my website to GSC. ![www-non-www-bijutoha.png](https://static.daniweb.com/attachments/4/0a9e8f11115e2ecf94e9000eeffef05e.png)