Learn how to use Python and the OpenAI API to perform data mining and systematically analyze your datasets for interesting information. Continue reading How to Perform Data Analysis in Python Using the OpenAI API on SitePoint.
Daily Archives: September 7, 2023
I get error when I open admin panel of Magento 2.4 BadRequest400Exception(code: 400): {"error":{"root_cause":[{"type":"query_shard_exception","reason":"No mapping found for [position_category_103] in order to sort on I tried bin/magento indexer:reindex and bin/magento indexer:reindex catalogsearch_fulltext but it doesn’t help
I see in my reservation table some products’ stocks have been compensated when it’s invoiced and some when it’s shipped. I ran the CLI commands below, and I don’t see any inconsistencies. php -d memory_limit=-1 bin/magento inventory:reservation:list-inconsistencies -r -c | xargs -L1 php -d memory_limit=-1 bin/magento inventory:reservation:create-compensations Why it’s happening? […]
I already try this : public function execute(Observer $observer) { $layout = '<referenceContainer name="main"> <block class="CMBlockModalOverlay" template="C_M::modal_overlay.phtml"/> </referenceContainer>'; $observer->getLayout()->getUpdate()->addUpdate($layout); $observer->generateXml(); }
For some reason on a new page I created on the admin, I can’t pass text to Body. Is there any way to suggest what I’m missing? My code: appcodeDevRestApietcadminhtmlmenu.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd"> <menu> <add id="Dev_RestApi::dev_module" title="Dev Module" module="Dev_RestApi" sortOrder="10" parent="Magento_Backend::content" resource="Dev_RestApi::dev_module"/> <add id="Dev_RestApi::dev_module_PriceInfo_Module" title="PriceInfo_Module" module="Dev_RestApi" sortOrder="10" […]
here is my Code public function checkCondition() { // $PrId = $this->_registry->registry(‘current_product’); // $prdId = $PrId->getId(); $categoryId = $this->getRequest()->getParam(‘id’); $ruleColl = $this->customConditionModel->create()->getCollection(); foreach ($ruleColl as $ruleKey => $ruleVal) { $prdData = $this->categoryFactory->create()->load($categoryId); $Data[] = $ruleVal->getConditions()->getName(); } $data = isset($Data); if($Data == false){ echo ''; }else{ return $Data; } // $data1 […]
I set up a server to self host and cannot ssh into it, and I’m having trouble debugging the issue. This is the error I get when I run ssh with verbose logging: OpenSSH_9.4p1, OpenSSL 3.1.2 1 Aug 2023 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 2: include /etc/ssh/ssh_config.d/*.conf […]
As an admin, I’m looking to see if there is a way for me to set limitations on the Linux devices we use for development. (i.e)- I want to give my users SUDO access / the ability to use sudo IF needed, But they can’t Start or Stop running background […]
This curl request returns empty square brackets []: curl "https://www.bathnes.gov.uk/NodeAPI/geoDataLookup/getGeoJSON/-2.8530120849609375/51.263633525637/-2.126541137695313/51.456574106519724/11" -X POST -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Accept-Language: en-GB,en;q=0.5" -H "Accept-Encoding: gzip, deflate, br" -H "Content-Type: application/json; charset=utf-8" -H "X-Requested-With: XMLHttpRequest" -H "Origin: https://www.bathnes.gov.uk" -H "DNT: 1" […]