Categories
Development System & Network

Deploying Postfix, how to setup DNS to point to server?

I’ve set up a postfix server, listening on port 25 on an Azure VM (Ubuntu). I’ve just used the default configuration but set the domain to my domain example.com In the DNS management, what does the MX record need to look like? is it simply just the IP of the server? # example.com mail aaa.bbb.ccc.ddd […]

Categories
Development System & Network

Redirect Rule in my htaccess file

Scanners are picking this line up as threat. I didn’t put it there and not sure what it means and google is not coming up with anything. RewriteRule ^(.*)–(conspecies)([0-9]+)-p([0-9]+)\/(.*)$ ?conspecies$3=$4&%

Categories
Development System & Network

Squid Proxy HTTPS mode

I am trying to make a squid proxy server that connects over port 443 and is a HTTPS proxy. For example I should be able to use the chrome extension ‘Proxy Switcher’ and put in the IP along with port 443 and select it as the HTTPS type. So far I’ve gotten to try the […]

Categories
Development

MongoDB project function

I get stuck at creating a MongoDB query. I have five collections that all have a relationship with each other. See the photo with the database structure below. MongoDB Version: 4.2.3 After a long thought, I came to this result with the query below. { “$lookup” : { “from” : “capcodes”, “localField” : “capcodes”, “foreignField” […]

Categories
Development

Splitting Column in Pandas using Regex

My first question… I have a Pandas data-frame with a column ‘Description’. The column has a reference and a name which I want to split into two columns. I have the ‘Names’ in a separate df: # Description # Names ————————————— ————— 0 A long walk by Miss D’Bus 0 Teresa Green 1 A day […]

Categories
Development

One terraform policy document for multiple queues

I have multiple queues with different names and one iam policy document that I want to use for all those queues. Is it possible to apply a single policy for all of them without having to list all queue names under resources section? queue example resource “aws_sqs_queue” “first_queue”{ name = “first_queue” policy = “${data.aws_iam_policy_document.sqs_all.json}” } […]

Categories
Development

Configure Secondary Azure Sql Database with lower DTU’s

I have an azure SQL database configured with 400 DTUs that is replicated to another SQL Server database in a different region for failover. I’d like to save some money (and live with a lag on failover) by lowering the DTU’s on the secondary database but I am worried that doing this could cause performance […]

Categories
Development

how can find RegAsm.exe in all windows platforms (win7, win8, win10 and windows Server 2008, windows server 2016 etc

I would like to search if exists RegAsm.exe especially .net 4 framework and i search in this path : %windir%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe Is this path correct for all windows (win7,win8,win10 and servers windows 2008, windows 2016 etc) ? It is better to use %SystemRoot%\ or is the same thing ? It is necessary to looking for 64 […]

Categories
Development

loop and subtraction help in Java

I have to create a loop that allows the user to input values for all meals and snacks, one at a time. Then the program should ask the user to enter a String to indicate if they have more data or they are done. On top of that, each time a meal or snack is […]

Categories
CMS Development Drupal

Unable to store value of an property or entity key in ConfigEntityType form

I have a propay_account_number in config entity type which I am unable to save using the below code. What is incorrect and how can I fix it to make it work ? src\Entity\PropayAccount.php namespace Drupal\propay_api\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; /** * Defines the Propay Account entity. * * @ConfigEntityType( * id = “propay_api_account_number”, * label = @Translation(“Propay”), […]