Categories
CMS Mastering Development

404 Error for assets where “Base URL” and “File system path” are different

I am new to Craft 3 and I have seen similar questions asked many but never answered. I want to store my images in a directory that is not public, yet I want them to be served correctly by Craft. The reason why I am doing this is that I work with shared disks for […]

Categories
Mastering Development

deploying ruby-rails + react-js on heroku error

I am having trouble deploying an app I made with ruby on rails and react.js on heroku. Has anyone ran into these errors while deploying? I am completely stuck and hopeless remote: Usage: npm <command> remote: remote: where <command> is one of: remote: access, adduser, audit, bin, bugs, c, cache, ci, cit, remote: clean-install, clean-install-test, […]

Categories
Mastering Development

docker can’t access container from localhost

I can’t access container app from my host. It is just a simple ExpressJS app I built for testing. I am running a Windows 10 Pro with Hyper-V. This is the result of docker version Client: Docker Engine – Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 […]

Categories
Mastering Development

Failed to get convolution algorithm. In Tensorflow Image Recognition

I’m trying to build an object detector that uses a tensorflow model for image recognition but I can’t get it to work due to this error. I’m new to GPUs so a detailed help would be highly appreciated. —-> 2 show_inference(detection_model, image_path) <ipython-input-15-e474e557b383> in show_inference(model, image_path) 4 image_np = np.array(Image.open(image_path)) 5 # Actual detection. —-> […]

Categories
CMS Development Magento

Magento2 mixin with custom component to extend checkout summary totals

I am not sure what I am missing here, I am trying to hide prices on my checkout totals using mixin with a custom component. view/frontend/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”content”> <block name=”hideprices” class=”Vendor\Module\Block\Js\MyComponent” template=”Vendor_Module::js/mycomponent.phtml”/> </referenceContainer> </body> </page> Block/Js/MyComponent.php <?php namespace Vendor\Module\Block\Js; use Magento\Framework\Json\Helper\Data as JsonHelper; class MyComponent extends \Magento\Framework\View\Element\Template { protected […]

Categories
Development

Multiple highstock charts on one page

I’m trying to make the page display a dynamic number of charts, I looked at this method from another library, but in view of the lack of knowledge js and html, I can’t convert to highcharts I want to get the following: https://www.chartjs.org/samples/latest/charts/line/point-styles.html <html> <div class=”container”></div> </html> <script> window.onload = function() { var container = […]

Categories
Development

VSCode: Is it possible to run “last” launch configuration with the same parameters? e.g. I don’t want to have a test focused to run it

coming from an intellij world, running a test by right click creates a dynamic run configuration. when you view a different file you can just keep running the debug with the same configuration, I notice that with vscode this is not the case, I have to be in the file in order to run the […]

Categories
Development

How can I install the feather format on Windows 10?

I have been trying to install the feather format for Python, but I keep getting the error message below in my command promopt, when I am typing “pip install feather-format”. Does anyone know how to proceed in order to get the feather file installed? I am using Windows 10, Anaconda3, and Python 3.8. Appreciate any […]

Categories
Development

add new postgres server in pgadmin on docker

i’m new to docker and postgres. i configured the postgres and pgadmin4 service containers and i want to create a new server in pgadmin. i get the ip of the postgres container by inspect instruction as 172.18.0.2 my postgres inspect result is as follows: [ { “Id”: “8a898f76c4ed5bc9e003c5d0be8ab67f7f7045fe1cc4c1cb82cc263136360c0a”, “Created”: “2020-02-11T22:54:11.018152083Z”, “Path”: “docker-entrypoint.sh”, “Args”: [ “postgres” […]

Categories
Development

Docker can’t access app in Host when port binding 8080

I have a docker image with a Java spring boot application which starts and run with no problem in a docker container at the port 8080 as you can see in a portion of the logs: 2020-02-24 02:09:07.906 INFO : Tomcat started on port(s): 8080 (http) with context path ‘/web-app’ 2020-02-24 02:09:07.909 INFO : Started […]