Categories
Mastering Development

PHP E-mail reply to sender issue

I have two issues with my codes. I have a code of contact form in localhost and it sends the message and other details very well. (which means there is not a problem with php.ini file.) But (first issue) when I try to reply, it doesn’t work. I have tried so much different methods and […]

Categories
Mastering Development

PHP E-mail reply to sender issue

I have two issues with my codes. I have a code of contact form in localhost and it sends the message and other details very well. (which means there is not a problem with php.ini file.) But (first issue) when I try to reply, it doesn’t work. I have tried so much different methods and […]

Categories
Mastering Development System & Network

Nginx and Docker Work Fine on Port 3001:80 but Not Anything Else (e.g. 3002:80)

gitlab-ci.yml cache: key: "$CI_COMMIT_REF_NAME node:14.4.0-alpine" paths: – node_modules/ stages: – release – deploy variables: TAGGED_IMAGE: "$CI_REGISTRY_IMAGE:latest" .release: stage: release image: docker:19.03.12 services: – docker:dind variables: DOCKER_DRIVER: overlay2 DOCKER_BUILDKIT: 1 before_script: – docker version – docker info – echo "$CI_JOB_TOKEN" | docker login –username $CI_REGISTRY_USER –password-stdin $CI_REGISTRY script: – printf "REACT_APP_XXX_BACKEND_URI=$REACT_APP_XXX_BACKEND_URI" > .env – docker build […]

Categories
Linux Mastering Development Ubuntu

Modifying keyboard layout in ubuntu 20

My hp notebook has a german keyboard that seems to be a relabled version of a us keyboard. Because of this it lacks the <>| key that is usually located right of l-shift on german keyboards. This is obviously very annoying and so far I haven’t been able to find an alternative key kombination that […]

Categories
Mastering Development

Getting value of property of object inside an array inside another array

I’m developing a blog using Strapi and React and the articles in the blog have multiple categories, I get a GraphQL query from Strapi like this (blogpostObject){ "categories": [ { "name": "Category 1" }, { "name": "Category 2" }, ], } I want to access the "name" value of each category and display them separated […]

Categories
Mastering Development

How to count only certain colours in an image

I learning javascript and I thought it would be interesting to make an app that counts tree rings. So I am trying to make a javascript app that counts tree rings to give you an estimate of the age of the tree. I can count how many colours there are between two points on the […]

Categories
Mastering Development

How to show different listviews from pressing the item of a diffrent listview in the same screen in Flutter?

Suppose, I have a list List1 = [A,E,M,X] which I can show using listview.builder horizontally. I have some other lists such as List2 = [a,b,c,d], List3 = [e,f,g,h] etc which I can show under the listview of List1 on a similar way. What I want is whenever a user presses A from List1, the below […]

Categories
Database Development

FORMAT ‘G17’ vs ‘G’

I have a question about this fiddle: DECLARE @TestVal AS float = 8.88; SELECT flt = @TestVal , xml = (SELECT Value = @TestVal FOR XML PATH(”), TYPE) , fmt17 = FORMAT(@TestVal, ‘G17’) , fmt = FORMAT(@TestVal, ‘G’) , cst = CAST(@TestVal AS nvarchar(50)) , fmt17_roundtrip = CAST(FORMAT(@TestVal, ‘G17’) AS float) , fmt_roundtrip = CAST(FORMAT(@TestVal, […]

Categories
Linux Mastering Development Ubuntu

function which take string input and convert to list and string returns string but result is printed as list

This code must takes input like [‘isogram’, ‘ISo-gram’, ‘is og ram’, ‘ju-pyter’], converts and returns as [‘isogram’, ‘isogram’, ‘isogram’, ‘jupyter’] But it is printed as [‘i’, ‘s’, ‘o’, ‘g’, ‘r’, ‘a’, ‘m’] instead of ‘isogram’. why result = str(result) code doesn’t take effect? code: def preprocess(user_input): result = user_input.lower() result = [ch for ch in […]

Categories
Mastering Development

How to get words matches with it’s count using pandas

i have 2 Dataframes like set1 = [‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’i’,’j’] set2 = [‘a’,’b’,’b’,’c’,’c’,’f’,’h’,’j’,’k’] df1 = pd.DataFrame(set1, columns=[‘name’]) df2 = pd.DataFrame(set2, columns=[‘name’]) i want to compare these 2 Dataframes without forloop and get a output like df3 = [‘a=1′,’b=2′,’c=2′,’f=1′,’h=1′,’j=1’] which way i can use for getting this output any examples .?? here i want only the items from […]