Categories
Development System & Network

htaccess rewrite for generated links

Hi, In the picture shows my htaccess rules, it blocks all requests not coming from this referer. But the application installed sends a confirmation email after booking with a URL ending like this: https://website.com/index.php/appointments/index/4a501c802f0a25283ca7a when I try to access the link from the email it blocks me because I’m not coming from the referer, I’m […]

Categories
CMS Development Magento

Magento 2.3 is it possible to detect visitors country and automatically set shipping country?

Is it possible to automatically detect a visitors country and set the “default shipping country” accordingly? So a customer in France for example doesn’t have to change from the default, which is Germany.

Categories
Development User Help

If it’s worth to buy SLC SSD for low-end CPU and SATA II in terms of performance?

I have Dell Optiplex 330 and I wonder if on this PC SLC SSD would have any difference from other cheaper types of SSD.

Categories
Ask Games RPG Games

How to handle rolls for in-game DND game

My group is playing a scenario set in the modern everyday world (late 20th century) and we have got into a position where the characters must play a DND game. The outcome of this game is important because of a bet that will determine which player receives a certain wagered item. How do I deal […]

Categories
Development

Displaying json response in a grid Ext js

I am trying to display the following json response in grid columns. {“day”:8,”month”:7,”changehistory”:8,”expire”:”120″} I have designed my model as below … extend: ‘Ext.data.Model’, fields: [{ name: ‘day’, type: ‘int’ }, { name: ‘month’, type: ‘int’ }, { name: ‘changehistory’, type:’string’ }, { name: ‘expire’, type:’int’ }] … I have a store that uses this model […]

Categories
Development

How can I iterate over xpath subsets without a very slow for loop?

I’m trying to parse a local 14 mb html file. My file looks like this (it’s inconvenient because it’s not nested in a useful way): <html > <head>Title</head> <body> <p class=”SECMAIN”> <span class=”ePub-B”>\xc2\xa7 720 ILCS 5/10-8.1.</span> </p> <p class=”INDENT-1”>(a) text</p> <p class=”INDENT-1”>(b) text</p> <p class=”INDENT-2”>(1) text</p> <p class=”INDENT-2”>(2) text</p> <p class=”SOURCE”>(Source)</p> <p class=”SECMAIN”> <span class=”ePub-B”>\xc2\xa7 […]

Categories
Development

partitionBy & overwrite strategy in an Azure DataLake using PySpark

I have a simple ETL process in an Azure enviroment blob storage > datafactory > datalake raw > databricks > datalake curated > datwarehouse(main ETL). the datasets for this project are not very big (~1 million rows 20 columns give or take) however I would like to keep them partitioned properly in my datalake as […]

Categories
Development Linux Ubuntu

Need help with my partitions to move my Ubuntu from HDD to SSD

Ok so, on my laptop I dual boot windows and Ubuntu. When installing ubuntu I screwed up somewhere and the 50gb I partitioned for data is now unallocated and my Ubuntu only has 18 gbs. Didnt matter for a while cuz 18gb was ok. Now I started doing some computer heavy coding and my ubuntu […]

Categories
Development Linux

SSH not working after reboot

I was looking on Google for a way to reboot my Debain server, I found the following source and I typed: systemctl reboot After doing this, I can’t SSH anymore to my Debian server. How can I enable SSH again? When I try to SSH I get the following: ssh: connect to host example.com port […]

Categories
Development System & Network

Entered a new subdomain in NameCheap but navigating to it does not work

I added a subdomain on NameCheap by adding a record specifically: A Record – @ – 11.22.33.44 A Record – subdhere – 55.66.77.88 Which I hoped would redirect subdhere.host.com to 55.66.77.88. However navigating to subdhere.host.com in a browser returns “subdhere.host.com’s server IP address could not be found.”. The TTL is set to 5 minutes and […]