Categories
CMS Development Drupal

Symfony’s getQueryString method doesn’t return modified query parameters

Symfony’s getQueryString method doesn’t return modified query parameters. So how should someone go about getting a modified query parameter string? Example code: $request = \Drupal::request(); $parameter_bag = $request->query; $parameter_bag->remove(‘destination’); $query = \Drupal::request()->getQueryString(); $query_array_modified = $parameter_bag->all(); $query in this instance will return the destination query parameter even though it was removed from the ParameterBag. $query_array_modified in […]

Categories
CMS Development Magento

Product images not showing for some product – Magento 2.3

I am new to Magento, Facing some issue with product images : Total product count : around 550 1) On Product Detail page images are not showing for some product, showing error 500 in console. (/pub/media/catalog/product/cache – Cache url : Failed to load resource: the server responded with a status of 500 ()) 2) Does […]

Categories
Development Linux Ubuntu

Ubuntu on MacBook Pro 15,1 (2018) Grub error

How can I install it? What’s going on there? The ‘grub-efi-amd64-signed’ package failed to install into / target/. Without the GRUB boot loader, the installed system will not boot. [OK]

Categories
Development

Is there a way to use R to break chart axis and break linear regression line?

I’m trying to figure out how to modify a scatter-plot that contains two groups of data along a continuum separated by a large gap. The graph needs a break on the x-axis as well as on the regression line. This R code using the ggplot2 library accurately presents the data, but is unsightly due to […]

Categories
Development

Arrayformula to find next value for criteria in Google Sheets

I have Form Responses tab in my sheets where I collate information containing starting datetimestamp, number and name. I want to create an arrayformula that will fill last column with datetimestamp for the next name entry in the dataset. I want to avoid the need of submitting finish datetimestamp. I have tried =ARRAYFORMULA(if(A:A=””,””,vlookup(C:C,{C2:C20,A2:A20},2,false))) hoping that […]

Categories
Development

How to catch only timeout errors in PowerShell?

I am trying to capture only timeout errors in a script for PowerShell 5.1. The error prints out that the execution timed out, but when I print out the error name it comes back with [Microsoft.SqlServer.Management.PowerShell.SqlPowerShellSqlExecutionException]. This catches the timeout error, but also catches other errors. Is there a way to specify only timeout errors? […]

Categories
Development

parsing json key-value in snowflake with key having a dots in it

{ “deviceLocale”: “en_US”, “deviceSerialNumber”: “xxxxxxxxxx”, “eventSource”: “abc”, “ext.user.browser”: “Mobile Safari”, “ext.user.browser.version”: “1.0.4”, “ext.user.device.family”: “iPhone”, “ext.user.os”: “iOS”, “ext.user.os.version”: “1.3.0”, “Timestamp”: 158007896874 } This is the sample json that I have.. Parsing in snowflake “` select distinct eve_id, json_payload:ext.useragent.device.family::varchar as type, json_payload:ext.useragent.os::varchar as osname, json_payload:ext.useragent.os.version::varchar as os from XYZ table, lateral flatten (input => json_payload) “` But […]

Categories
Development

GitFlow is very slow

I am using now git flow in Windows 10, and when I try any command it takes lot of time. This is only the case in my office. At home Everything work fine as it should be. Is there any extra configuration has to be done?

Categories
Development

Order of action commands using subpass dependency?

From what I have read so far, commands in a single command buffer can be out of order without explicit synchronization. Here is what the vulkan spec says (https://vulkan.lunarg.com/doc/view/1.0.26.0/linux/vkspec.chunked/ch02s02.html#fundamentals-queueoperation-commandorder) “The work involved in performing action commands is often allowed to overlap or to be reordered, but doing so must not alter the state to be […]

Categories
Development

How can I make a Haskell parser from a list of words?

I’m a Haskell beginner, using Attoparsec to find some color expressions in a text. I want to be able to match, for example, “light blue-green” and “light blue green” in a text. But of course I need a generalized solution for any string like that. So I’ve been thinking that it would be something like […]