Categories
Database Development

How to distribution count between rows SQL Server

Unequal division = distribution How to retrieve output with example : CREATE TABLE yourTable ( id varchar(55), code int, count1 int, count2 int ); INSERT INTO yourTable (id, code,count1,count2) VALUES (‘no-29’, 12345, 4, 1), (‘no-29’, 32346, 4, 1) always count1-count2 and results distribution between others rows with same id: example : 4-1 = 3 and […]

Categories
Mastering Development

TypeError: Cannot read property ‘getters’ of undefined when serving on Vuex 4 and Vue 3

I am new to Vuex and I have problem. I cannot serve my app properly using npm run serve. I can open the app on localhost but it display nothing, just html body with styled background color. Previously I do npm run build F:\Javascript\CodeHighlighter>npm run build > code-highlighter@0.1.0 build F:\Javascript\CodeHighlighter > vue-cli-service build – Building […]

Categories
CMS Mastering Development Wordpress

I want to show the codes written with the tag in color. How can I do that?

When I add code with the <pre> tag, the color of the codes is black. I saw it in color on some sites and realized that this can be done with the plugin. But I don’t want to use plugins. Is there a ready-made function, code, or anything else I can use for this? I […]

Categories
Mastering Development

Why does my urllib.request return a http error 403?

i am attempting to make a program that downloads a series of product pictures from a site using python. The site stores its images under a certain url format https://www.sitename.com/XYZabcde where XYZ are three letters that represent the brand of the product and abcde are a series of numbers in between 00000 and 30000. here […]

Categories
Mastering Development System & Network

What is this Nginx Log?? Can you explain this?

I am studying about web log. While studying, I found strange data. That is the FastCGI error log. Many error logs were found in a short period of time. The server is running WordPress with nginx. First example: 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:34,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain 2020-10-01 13:00:35,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain … 2020-10-01 13:15:58,sent,stderr:,stderror:,"""PHP",sent,,fastcgi://myip:9000,mydomain […]

Categories
CMS Magento Mastering Development

how to get attribute label in magento 2 rest api for child products

How to get attribute labels for child products by using configurable-products/:sku/children. Below code is working fine for products/:sku endpoint. public function getAdditional($sku, $editMode = false, $storeId = null, $forceReload = false) { $optionId=0; $cacheKey = $this->getCacheKey([$editMode, $storeId]); if (!isset($this->instances[$sku][$cacheKey]) || $forceReload) { $product = $this->productFactory->create(); $productId = $this->resourceModel->getIdBySku($sku); if (!$productId) { throw new NoSuchEntityException(__(‘Requested product […]

Categories
CMS Magento Mastering Development

how to get attribute label in magento 2 rest api for child products

How to get attribute labels for child products by using configurable-products/:sku/children. Below code is working fine for products/:sku endpoint. public function getAdditional($sku, $editMode = false, $storeId = null, $forceReload = false) { $optionId=0; $cacheKey = $this->getCacheKey([$editMode, $storeId]); if (!isset($this->instances[$sku][$cacheKey]) || $forceReload) { $product = $this->productFactory->create(); $productId = $this->resourceModel->getIdBySku($sku); if (!$productId) { throw new NoSuchEntityException(__(‘Requested product […]

Categories
CMS Magento Mastering Development

how to get attribute label in magento 2 rest api for child products

How to get attribute labels for child products by using configurable-products/:sku/children. Below code is working fine for products/:sku endpoint. public function getAdditional($sku, $editMode = false, $storeId = null, $forceReload = false) { $optionId=0; $cacheKey = $this->getCacheKey([$editMode, $storeId]); if (!isset($this->instances[$sku][$cacheKey]) || $forceReload) { $product = $this->productFactory->create(); $productId = $this->resourceModel->getIdBySku($sku); if (!$productId) { throw new NoSuchEntityException(__(‘Requested product […]

Categories
CMS Drupal Mastering Development

How can I build a complex table?

Do you now how I can build complex table in Drupal? I want to get something like this (in upload picture). I have nodes with these fields: nid, code, name, date, and sum.

Categories
CMS Drupal Mastering Development

How can I build a complex table?

Do you now how I can build complex table in Drupal? I want to get something like this (in upload picture). I have nodes with these fields: nid, code, name, date, and sum.