Categories
CMS Mastering Development

Headless mode/ElementAPI: how to set the frontend’s baseUrl in the backend endpoint?

I am having an ongoing confusion in headless mode. Imagine a site with 2 servers: Backend (Craft with element API) on https://backend.site Frontend (vue.js) on https://frontend.site Editors pick internal links in the craft cp. In the source of redactor field, they are saved as something like {entry:xxx@1:url}. In the Backend’s endpoint, they are rendered out […]

Categories
Android User Help

Is it possible to use the phone’s hardware through Asterisk?

I would like to convert my android phone into a personal pcbx (being able to perform basic automated answering based on speech and who is calling and performs hang up). Something requiring the power of Asterisk (unless you know an alternative designed for android of course). There are a lot of tutorials on how to […]

Categories
Android User Help

Is it possible to use the phone hardware through Asterisk?

I would like to convert my android phone into a personal pcbx (being able to perform basic automated answering based on speech and who is calling and performs hang up). Something requiring the power of Asterisk. There are a lot of tutorials on how to this through sip on rooted devices, but in my case, […]

Categories
Mastering Development

Why my Android ROM builds takes so much time? [closed]

I’m new on building Android custom ROMs, I’m trying to make my second build. I read about average time for building a ROM, most of people say that in their PCs it takes 2-4Hrs to compile a custom ROM, but in my case, I takes 13Hrs!! How is it possible? :O There are my PC […]

Categories
Linux Mastering Development Ubuntu

Dedicated home partition and disk allocation

I have read numerous arguments – both for and against – a dedicated home partition, but in my case, I feel that the pros outweigh the cons. I have a 512 GB SSD in my machine running 18.4.4 LTS. What is the right balance to ensure that I have suitable storage for the root file […]

Categories
Linux Mastering Development Ubuntu

Dedicated home partition and disk allocation

I have read numerous arguments – both for and against – a dedicated home partition, but in my case, I feel that the pros outweigh the cons. I have a 512 GB SSD in my machine running 18.4.4 LTS. What is the right balance to ensure that I have suitable storage for the root file […]

Categories
CMS Development Drupal

Commerce default customer profiles re-added on order edit, even without address field present

My site uses 2 custom profile types for a particular set of customers. For these, I have the default billing and shipping profile panes completely removed on the order edit screen via Customer Profile Type UI, yet any edit to an order (manual or programmatic) still re-adds them to the profile on save (resulting in […]

Categories
Development

How To get State data when reusing same route in Angular

I have recently stared Angular and while learning on how we can navigate using Routes I had an issue on how to send Objects (not just strings) over routes, then I’ve came across NavigationExtras.state. I’m trying to send a query parameter as key-value pair and it was working fine. I was passing the query to […]

Categories
Development

Check if month or day or year is in range of two dates in string format

I originally asked this question here with a different use case but now I realize I could have more cases for this problem. I have a filter that is a String and can only accept 3 date-formats – YYYY, YYYY-MM, YYYY-MM-DD. I want to check if the requested String is in the range of two […]

Categories
Development

C#: How to add xml element at specific position in multiple records of xml file

I have large xml file which has multiple tables. I want to add one element at a specific position. I tried, but in my case, the element is getting added at last, which is not desirable for my scenario. My tables are in xml. TickerBroker , Broker, BrokerTab and TickerBrokerDateFormatMap I have multiple Broker element, […]