Categories
Linux Mastering Development

Can’t filter file extensions when the list is in a variable [duplicate]

I guess this is a relative simple question, but I can’t find the way to access the variable content when doing a git diff, so it lists all the files with specific extension. // This works fine git diff –name-only –cached –diff-filter=d *.{sln,csproj,vbproj,vcxprojfilters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,json,json5,webmanifest,yml,yaml,md,htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue,cmd,bat,sh,Makefile,cs,csx,cake,vb,vbx,cs,csx,cake,cs,csx,cake,vb,vb} MyProyect/Service/App/AppGridService.cs // but this does not work // this is the variable […]

Categories
Mastering Development

Webpack – import const from .d.ts file not working – Can’t resolve ‘@nuvolo/servicenow-types/server/GlideRecord’

I’m doing this: import { GlideRecord } from "@nuvolo/servicenow-types/server/GlideRecord"; I have a file node_modules/@nuvolo/servicenow-types/server/GlideRecord.d.ts It contains: … type GlideRecordConstructor = { new <T>(table: string): GlideRecord<T> }; type GlideRecord<T> = GlideRecordBase<T> & T; declare const GlideRecord: GlideRecordConstructor; export { GlideRecord }; If I run tsc it works, no errors Webpack says: Module not found: Error: Can’t […]

Categories
Linux Mastering Development Ubuntu

can’t load plugin in neovim

Each time, I try to edit any file neovim gives error in plugins image I am using ubuntu 18.04 and neovim version 0.4.2. I am using plug plugin manager and my init.vim file looks like """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " __ _(_)_ __ ___ _ __ ___ " \ \ / / | ‘_ ` _ \| ‘__/ […]

Categories
Mastering Development

Video JS in Angular 9 – live video – ‘Can’t resolve videojs’ problem?

I am struggling to get the videojs to work in my angular 9 app. I have viewed all the exisitng stackoverflow posts, applied their solution, looked at different blog posts and github for issues with video js but I still have the ‘Can’t resolve videojs’ problem. I would like it to work in that an […]

Categories
CMS Drupal Mastering Development

Drupal 9 Upgrade Issue: doctrine/reflection conflicts with doctrine/common

My current Drupal version is 8.9.3 , updated from 8.9.2 (fresh install) using "compose update". PHP version is 7.3.20. I tried to upgrade to Drupal 9 used this https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-to-drupal-9-or-higher as guide. So in STEP 2, I ran composer require "drupal/core:9.0.0 as 8.9.3" –no-update && composer update instead of composer require drupal/core-recommended:^9.0.0 drupal/core-composer-scaffold:^9.0.0 drupal/core-project-message:^9.0.0 –update-with-dependencies –no-update […]

Categories
CMS Magento Mastering Development

Block > head.additional – What is the right way to implement

What is the right way to implement it via default.xml or via default_head_blocks.xml? As I can see, the structure is different for modules from different providers. As I understand it default_head_blocks should only be used for the pure header data (CSS, JS, Metatags – https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/xml-manage.html#layout_markup_meta) and not for referencing body data. Or are both ways […]

Categories
Mastering Development

Built ASP.NET Application in Visual Studio – How Move it to IIS Express?

Been scouring web, this seems like a very simple thing to do…I have done a lot of PHP deployments, but ASP.NET is killing me… I built ASP.NET app in Visual Studio. I can run it from the IIS Express button. Not sure what it does, sticks in on a new port. Anyway, I want to […]

Categories
Mastering Development

How do I include process.env.PORT in my script declarations string in my package.json file?

I’m trying to upload my file to Heroku and need to include the PORT specification. All my other projects have had an index.js file whereas this is just html, js, and css so I"m using "live-server" and my script looks like this "scripts": { "devserver": "live-server" }, but I want this "scripts": { "devserver": "live-server […]

Categories
Mastering Development System & Network

Nginx downloading specific PHP file instead of executing

I moved a small bundle of scripts from Apache to Nginx. This is a directory full of files, where specific extensions (php, txt, js, html) need to be shown through one script, other files need to be downloaded, and directories need to be browseable. To note, gallery.php is currently not being used. All of this […]

Categories
Mastering Development System & Network

Web files run when accessed with localhost but not with ip address

I recently moved a set of web files (php, js, html) over to a windows 2012 r2 server from my computer to host them as a website. When I try to call these files through localhost/path_to_file/file.php, it runs fine, but when I call them through <server_ip_address>/path_to_file/file.php it stops working. At first glance it seems that […]