need to customize feed import page in Drupal 7 feed module

I import content types with Feed and Feed Ex modules. Now I want to adjust the data.

I've tried its API hooks here https://www.drupal.org/docs/7/modules/feeds/the-developers-guide-to-feeds/the-developers-guide-to-feeds, but it only has Can anyone make adjustments to the import page in the page panes for importing feed module settings?here attached pictures where I have to adapt instructions

Thank you in advance.

Attempting to use the AngularFire module for cloud messaging will result in configuration values ​​for missing apps

I use Firebase Cloud Messaging in my Angular app with AngularFire2 to receive and send notifications. However, if an attempt is made to retrieve the user's current token, the app returns an error.

I've already created the firebase-messaging-sw.js and manifest.json files to register the service rep and added everything correctly, but to no avail.

The component where I subscribe to the observable.

export class HomeComponent implements OnInit {
  constructor(
    private afMessaging: AngularFireMessaging,
    private afStore: AngularFirestore,
    private afAuth: AngularFireAuth,
  ) {}

  ngOnInit() {
    this.afAuth.user.pipe(
      exhaustMap(
        user => {
          return this.afMessaging.getToken.pipe(
            tap(
              token => {
                console.log(token);
                this.afStore.collection('users').doc(user.uid).update({
                  fcmToken: token
                });
              }
            )
          );
        }
      )
    ).subscribe();
    this.afMessaging.messages
      .subscribe((message) => { console.log(message); });
  }
}

The service employee:

  // Give the service worker access to Firebase Messaging.
  // Note that you can only use Firebase Messaging here, other Firebase libraries
// are not available in the service worker.
importScripts("https://www.gstatic.com/firebasejs/6.3.4/firebase-app.js");
importScripts("https://www.gstatic.com/firebasejs/6.3.4/firebase-messaging.js");

// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
  messagingSenderId: "231973795174"
});

// Retrieve an instance of Firebase Messaging so that it can handle background
// messages.
const messaging = firebase.messaging();

messaging.setBackgroundMessageHandler(function(payload) {
  console.log(
    "(firebase-messaging-sw.js) Received background message ",
    payload
  );
  // Customize notification here
  const notificationTitle = "Background Message Title";
  const notificationOptions = {
    body: "Background Message body.",
    icon: "/firebase-logo.png"
  };

  return self.registration.showNotification(
    notificationTitle,
    notificationOptions
  );
});

The manifesto

{
  "name": "App",
  "gcm_sender_id": "103953800507"
}

The Angular.json

"assets": (
    "src/favicon.ico",
    "src/assets",
    "src/firebase-messaging-sw.js",
    "src/manifest.json"
 ),

The error I get in detail is this:

Uninhibited (Promise): FirebaseError: Installations: Missing app configuration values. (installations / missing-app-config-values).
FirebaseError: Installations: Missing app configuration values. (installations / missing-app-config-values).
at extractAppConfig (index.esm.js: 89)
Object.factoryMethod (as installations) (index.esm.js: 1110)
at FirebaseAppImpl.push ../ node_modules/@firebase/app/dist/index.cjs.js.FirebaseAppImpl._getService (index.cjs.js: 191)
at FirebaseAppImpl.firebaseAppImpl. (as installations) (index.cjs.js: 458)
at index.esm.js: 415
at step (tslib.es6.js: 99)
at Object.next (tslib.es6.js: 80)
at tslib.es6.js: 73
new ZoneAwarePromise (zone-evergreen.js: 876)
at __awaiter (tslib.es6.js: 69)
at resolvePromise (zone-evergreen.js: 797)
at zone-evergreen.js: 707
at zone-evergreen.js: 723
at ZoneDelegate.invoke (zone-evergreen.js: 359)
Object.onInvoke (core.js: 39698)
at ZoneDelegate.invoke (zone-evergreen.js: 358)
at Zone.run (zone-evergreen.js: 124)
at zone-evergreen.js: 855
at ZoneDelegate.invokeTask (zone-evergreen.js: 391)
Object.onInvokeTask (core.js: 39679)

angle – Is the name of a module generally confusing because I already have a shared and a core module?

According to the Angular Style Guide I have a shared module and a core module in my application. I also have 2 functional modules for 2 separate parts of my application. Let's say it's an order module and a forum module. Now I'm wondering where general components should go, things that are common to the application, like account settings, headers and footers (which are not reusable components).

I do not think it should work in Core, because components are not recommended in Core and it is not used in Shared because it does not contain elements that are reused in other modules. So I have two options: Use the AppModule, which I do not recommend, or create a new module. What I do not like about a general module is that it can be confusing because there is also a shared module and a core module and it's not necessarily clear where to go. Is there a better name for a universal module?

magento2.3 – Cache and module status in admin and shell not identical – Magento 2.3.2

I'm new to the Magento 2 platform and work on migrating our Magento 1 store. I am working on a test migration and have successfully migrated data and products from M1 to M2 (version 2.3.2).

But I am facing a really confusing problem. When installing extensions, the Magento backend does not recognize the extensions as enabled. When I check app / etc / config.php, the extension has the status 1, enabled, and when I'm running / magento module: status, the extension has enabled the status, but not in Magento admin. The extension is also not visible in Stores-> Configuration. I have tried several extensions and the problem is the same. When I try to activate the extension in Magento Admin, I get the dependency error "Can not find module name." And in the module manager list the field "module name" is empty.

To make it even more confusing, the cache state in the shell is not the same as in admin. If I disable the cache in the shell, the cache is still enabled in Admin, but if I disable the cache in Admin, it is also disabled in the shell.

It appears that the Magento administrator is not reading any changes made in the shell. Can someone help?

scoping – Problem solving a Trancedental equation embedded in the module

I've written a small program for calculating the resonant frequency for which I solve a transcendental equation that comes from the determinant of the matrix Rarz, The matrix is ​​constructed by minimizing Lg That's the Lagrange of the whole system. But I am wrong The solution set contains a full-dimensional component; use Reduce for complete solution information., How to overcome this and reach the desired roots.

Y = 2*^11;
ρ = 7850;
aa = 0.1*0.1;
Iyy = 0.1^4/12;
L1 = 4;
z(1) = 1.5;
z(2) = 3;

v1 = 833333. (4.05871 c(1)^2 - 3.78041 c(1) c(2) + 15.6649 c(2)^2 + 
     2.40944 c(1) c(3) - 31.1201 c(2) c(3) + 17.3741 c(3)^2 + 
     1.49046 c(1) c(4) + 5.57631 c(2) c(4) + 6.49524 c(3) c(4) + 
     26.2414 c(4)^2 - 6.93889*10^-15 c(1) c(5) - 34.5037 c(2) c(5) + 
     36.0273 c(3) c(5) - 5.71687 c(4) c(5) + 20.5472 c(5)^2 - 
     6.2727*10^-12 c(1) c(6) - 1.77359*10^-10 c(2) c(6) - 
     16.1834 c(3) c(6) - 76.3793 c(4) c(6) + 
     7.57401*10^-11 c(5) c(6) + 64.9394 c(6)^2 + 2.65403 c(1) c(7) + 
     11.0488 c(2) c(7) + 4.813*10^-10 c(3) c(7) + 54.4986 c(4) c(7) - 
     13.7664 c(5) c(7) - 80.9352 c(6) c(7) + 29.6808 c(7)^2 - 
     1.97407 c(1) c(8) + 0.857837 c(2) c(8) + 7.05203 c(3) c(8) - 
     0.02407 c(4) c(8) + 9.08301 c(5) c(8) + 37.0375 c(6) c(8) - 
     13.361 c(7) c(8) + 66.6515 c(8)^2);
t1 = 39.25 ω^2 (0.666667 c(1)^2 - 0.620954 c(1) c(2) + 
     0.656721 c(2)^2 + 0.395765 c(1) c(3) - 1.06372 c(2) c(3) + 
     0.643704 c(3)^2 + 0.245338 c(1) c(4) + 0.233928 c(2) c(4) + 
     0.24039 c(3) c(4) + 0.486999 c(4)^2 - 2.28333*10^-15 c(1) c(5) - 
     1.11949 c(2) c(5) + 1.16893 c(3) c(5) - 0.185756 c(4) c(5) + 
     0.666667 c(5)^2 + 6.18657*10^-13 c(1) c(6) - 
     5.15522*10^-12 c(2) c(6) - 0.166138 c(3) c(6) - 
     0.78423 c(4) c(6) + 2.89399*10^-13 c(5) c(6) + 0.666667 c(6)^2 + 
     0.43594 c(1) c(7) + 0.30259 c(2) c(7) - 
     3.87273*10^-12 c(3) c(7) + 0.931506 c(4) c(7) - 
     0.446659 c(5) c(7) - 0.830879 c(6) c(7) + 0.507267 c(7)^2 - 
     0.324153 c(1) c(8) + 0.0360136 c(2) c(8) + 0.261246 c(3) c(8) - 
     0.000415737 c(4) c(8) + 0.29466 c(5) c(8) + 0.380217 c(6) c(8) - 
     0.228325 c(7) c(8) + 0.416657 c(8)^2);

var1 = Table(c(i), {i, 1, 8});

(*first bar*)
sd1 = Subdivide(0.001, 0.5, 300);
sd2 = Subdivide(0.55, 2, 300);
sd3 = Subdivide(2.2, 100, 300);
sd = Flatten({sd1, sd2, sd3});

γ = L1*sd;
fixedfree1 = 
  Table(Sin(((2*0 + 1)*π*x2)/(2*γ((i)))), {i, 1, 
    Length(γ)});
fixedfree2 = 
  Table(Sin(((2*1 + 1)*π*x2)/(2*γ((i)))), {i, 1, 
    Length(γ)});

U1 = Table((Subscript(d, 1)(1)*fixedfree1((i)) + 
     Subscript(d, 1)(2)*fixedfree1((i))), {i, 1, Length(γ)});
U1x = Table(D((U1((i))), {x2, 1}), {i, 1, Length(U1)});

in3 = Table(Expand((U1x((i)))^2), {i, 1, Length(U1x)});
in4 = Table(Expand((U1((i)))^2), {i, 1, Length(U1x)});

var2 = {Subscript(d, 1)(1), Subscript(d, 1)(2)};
v2 = Table(
   0.5*Y*aa*(Integrate(in3((i)), {x2, 0, γ((i))})), {i, 1, 
    Length(γ)});
t2 = Table(
   0.5*ρ*
    aa*ω^2*(Integrate(in4((i)), {x2, 0, γ((i))})), {i, 
    1, Length(γ)});

(*second bar*)
U2 = U1 /. {Subscript(d, 1) -> Subscript(d, 2), x2 -> x3};
v3 = v2 /. Subscript(d, 1) -> Subscript(d, 2);
t3 = t2 /. Subscript(d, 1) -> Subscript(d, 2);
var3 = var2 /. Subscript(d, 1) -> Subscript(d, 2);

(*total energy*)
T = Table(Simplify(t1 + t2((i)) + t3((i))), {i, 1, Length(t2)});
V = Table(Simplify(v1 + v2((i)) + v3((i))), {i, 1, Length(v2)});

(*defining lagrangian*)
Lg = Table(((T((i)) - 
       V((i))) + λ1*((0.408248 c(1) + 0.118904 c(2) - 
          1.01315*10^-11 c(3) - 2.95423*10^-11 c(4) - 0.220942 c(5) + 
          0.57735 c(6) - 2.7989*10^-11 c(7) - 
          2.05928*10^-11 c(8)) - (U1((i)) /. 
          x2 -> γ((i)))) + λ2*((-0.57735 c(1) - 
          9.55289*10^-12 c(2) + 0.300783 c(3) - 1.07327*10^-11 c(4) + 
          0.408248 c(5) - 2.12681*10^-15 c(6) - 0.20051 c(7) - 
          5.77511*10^-11 c(8)) - (U2((i)) /. 
          x3 -> γ((i))))), {i, 1, Length(γ)});

variables = Flatten({var1, var2, var3, λ1, λ2});

(* upto here every thing works,  from sol(j_) some problem is 
occuring*)

(*minimizing lagrangian and solving the determinant for roots*)
sol(j_) := 
  Module({root}, 
   equations = 
    Table(D(Lg((j)), {variables((i)), 1}), {i, 1, Length(variables)});
    Rarz = Normal@CoefficientArrays(equations, variables)((2)); 
   P = Chop(Det(Rarz)); s1 = NSolve(P == 0 && 0 < ω < 5000); 
   s2 = ω /. s1; s3 = Surd((ρ*aa*s2^2*L1^4)/(Y*Iyy), 4); 
   s4 = s2/(2 π); root = s3; Return(root));

nonbeta = Table(sol(i), {i, 1, Length(γ)});
nonbeta1 = nonbeta((All, 2))

data1 = Transpose({sd, nonbeta1});
p(1) = ListLogLinearPlot(data1, Joined -> True, PlotRange -> All, 
  PlotStyle -> {Red, Thickness(0.006)})

linux – Replace one string with another and update the file with the ansible replace module?

I have a file desc.cmd this has content below:

set_poc 204 6
send_data_file goldy_proc.init 4e8ee8946f7a89d2eb501a752c5e3ee6ea266e5b
set_poc 204 7
send_data_file goldy_proc.init 4e8ee8946f7a89d2eb501a752c5e3ee6ea266e5b
set_poc 204 8
send_data_file goldy_proc.init 4e8ee8946f7a89d2eb501a752c5e3ee6ea266e5b
set_poc 204 9
send_data_file goldy_proc.init 4e8ee8946f7a89d2eb501a752c5e3ee6ea266e5b

This number 4e8ee8946f7a89d2eb501a752c5e3ee6ea266e5b is a checksum. I have to replace this number with another number and update the file. So whether new checksum is e32313118e53b60140d2024dfa7578c3fd89b346 mine desc.cmd File will look like this:

set_poc 204 6
send_data_file goldy_proc.init e32313118e53b60140d2024dfa7578c3fd89b346
set_poc 204 7
send_data_file goldy_proc.init e32313118e53b60140d2024dfa7578c3fd89b346
set_poc 204 8
send_data_file goldy_proc.init e32313118e53b60140d2024dfa7578c3fd89b346
set_poc 204 9
send_data_file goldy_proc.init e32313118e53b60140d2024dfa7578c3fd89b346

I tried to use the replacement module, but for some reason it does not replace anything in the file, and no error is displayed. Is anything wrong, what am I doing below? Replace module?

- name: Get sha1sum of file
  stat:
    path: /data/test_proc.init
    checksum_algorithm: sha1
    get_checksum: yes
  register: sha

  - name: Replace string
    replace:
      path: /data/desc.cmd
      after: 'goldy_proc.init (*)'
      regexp: '^(.+)$'
      replace: 'sha.stat.checksum'

I also tried it below and still it did not work:

  - name: Replace string
    replace:
      path: /data/desc.cmd
      regexp: 'goldy_proc.init:s(A-Za-z0-9 )*'
      replace: 'goldy_proc.init: {{ sha.stat.checksum }}'

magento2 – Custom Module API gets CDATA error

I have this error on localhost / rest / V1 / hello / name / Jim.

This XML file does not appear to have any style information associated with it. The document tree is shown below.




500

resolveFullyQualifiedClassName(Object(ZendCodeReflectionClassReflection), NULL) #1 /var/www/html/m2/vendor/magento/framework/Reflection/MethodsMap.php(139): MagentoFrameworkReflectionTypeProcessor->getParamType(Object(ZendCodeReflectionParameterReflection)) #2 /var/www/html/m2/vendor/magento/framework/Webapi/ServiceInputProcessor.php(156): MagentoFrameworkReflectionMethodsMap->getMethodParams('VENDOR\New...', 'name') #3 /var/www/html/m2/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(101): MagentoFram' in '/var/www/html/m2/vendor/magento/framework/Reflection/TypeProcessor.php' on line 640
))>








etc / webapi.xml



    
        
        
            
        
    

etc / di.xml


    

api / NewsInterface.php

Model / NewsManagement.php

How can I fix it?