Categories
Development System & Network

Serve static content, but with a 503 response code

We’re currently fronting our application cluster with a reverse proxy, and each upstream block has a fallback host that does nothing but serve a static maintenance page. So if all the backends fail it returns this page with a 200 OK, which is not the ideal return code for a number of reasons. If my […]

Categories
Development System & Network

How can I tell which version of CIFs is in the kernel if CIFs module isn’t loaded?

I need to determine the CIFs version that exists in my kernel, but the CIFs module isn’t loaded. my-user@ip-XX-XX-XX-XX:~$ modinfo kernel/fs/cifs.ko modinfo: ERROR: Module kernel/fs/cifs.ko not found. When I run find /lib/modules/$(uname -r) -type f -name ‘*.ko*’ in the list of results I see /lib/modules/4.15.0-1058-aws/kernel/fs/cifs/cifs.ko How can I find out what version of cifs.ko exists, […]

Categories
Development System & Network

PHP Warning: Module compiled with module API=X, {but} PHP compiled with module API=Y, These options need to match, in Unknown on line 0

My hosting company (BlueHost) supports a range of PHP versions, from 5.6 up to 7.3. Somehow I’m getting a nonfunctional mix of 5.2 and 7.3 — both attempting to run at the same time. Whenever I try having no PHP version specified in the .htaccess in the /public_html folder, PHP version 5.2.17 is shown as […]

Categories
Development System & Network

Unattended rsync and remote command

I am trying to write a script that compiles an executable, runs rsync to copy it to a remote server, and then opens an ssh session into the server and dispatches the executable to the grid engine. In other words, I want a script that does the following: 1. (locally) compile 2. rsync local to […]

Categories
Development System & Network

Create a Google Load Balancer with fixed IP to Istio Ingress Gateway in GKE

I Have a Google GKE with 2 nodes and Istio installed. It created automatically 2 load balancers with ephemeral IPs. I use one of them in CloudDNS (HTTPS) to redirect DNS to one of the ingress-gateways. When I need to recreate the cluster there will be another Istio with another ips. Then, I have to […]

Categories
CMS Development Magento

Salable quantity empty

I just recently migrated our database from Magento 1.6.1 to Magento 2.3.3 now everything seems OK but after testing all functionality I found out that whenever I add a product in the cart it says that the product is not available eventhough I know that there are quantities for this product below is how my […]

Categories
CMS Development Joomla

Using JRoute to generate component SEF URL without a menu item id

Currently JRoute generates URLs for my component which look like this https://mysite.com/component/mycomponent/xxx, where I’m handling xxx in my component’s router. Instead I’d like JRoute to generate a URL for the same location with https://mysite.com/myseflocation/xxx. I’ve found four ways of achieving what I want, but I don’t find any of them particularly satisfactory. All of my […]

Categories
Development Linux

Slow transfer/write speed to USB 3 flash. What are all possible solutions?

Please see the following screenshot of transferring to a USB 3 sandisk flash drive: This has been asked before but the answers didn’t help. They always suggest changing this: echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes but this time, it does nothing for me. The xfer starts out somewhat fast and then slows to […]

Categories
Development Linux

Compare 2 files based on the first column and print the not matched

File# 1: test1,1 test2,2 test3 File# 2: test2 test1 test4 Desired Output: test4

Categories
Development Linux Ubuntu

Stykz: problem with shortcut After While Installed

The stykz package has been installed to changed moved from desktop windows 7. L Make Help Me From Stykz Installed Error Ouccred. Looking Like Error Installed Stykz Stykz Installed Hmm….. When Can’t Open This Shortcut Right Now For Need Turning OFF Anit-virus. L Seem Stykz Might Moved…. Right Now