Category Archives: How to Fix

ABAP edit screen click layout to dump

Yesterday, when I was developing an OO ALV, I found the customer’s system. After creating the screen, I click layout to edit the screen.

SAP dumps directly, as shown in the figure

 
After consulting the data, the solutions are as follows:  
SM59–> TCP/IP CONNECTIONS–> EU_ SCRP_ WN32

After entering, click Edit — “logo & amp; security–> Add call function

 
  The code is as follows

RS_SCRP_GF_PROCESS_640	RFC_GET_FUNCTION_INTERFACE
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_PROCESS_640RFC_GET
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RBUILDINFO
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RDDICFIELDS
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RELEMTABLE
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RICONS
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RKEYS
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RKEYTEXTS
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RMESSAGES
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RPROPTABLE
RS_SCRP_GF_PROCESS_640	RS_SCRP_GF_RSTATUS_40
RS_SCRP_GF_PROCESS_640 RS_SCRP_GF_RTEXTS

  Just save it

nginx: [emerg] unknown directive “proxy_pass“

Just add this module, because it is not recognized.

[rpauser@node-zwf ~]$ openssl version
OpenSSL 1.0.2k-fips  26 Jan 2017
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ pwd
/home/rpauser
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ ll
total 1352
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Desktop
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Documents
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Downloads
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Music
drwxrwxr-x. 11 rpauser rpauser    4096 Jun 27 06:30 nginx
drwxr-xr-x.  9 rpauser rpauser    4096 Jun 27 05:57 nginx-1.18.0
-rwxrw-rw-.  1 rpauser rpauser 1039530 Jun 25 05:10 nginx-1.18.0.tar.gz
drwxrwxr-x.  5 rpauser rpauser    4096 Dec 22  2020 ngx_http_proxy_connect_module
-rwxrw-rw-.  1 rpauser rpauser   48986 Jun 25 02:14 ngx_http_proxy_connect_module-master.zip
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Pictures
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Public
-rwxrw-rw-.  1 rpauser rpauser    1638 Jun 27 04:02 readme.txt
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Templates
drwxrwxr-x.  3 rpauser rpauser      18 Jun 27 06:00 usr
drwxr-xr-x.  2 rpauser rpauser       6 Jun 27 04:08 Videos
-rwxrw-rw-.  1 rpauser rpauser  276792 Jun 27 03:49 zip-3.0-23.el8.x86_64.rpm
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ ps -ef|grep nginx
rpauser    9285   9161  0 09:26 pts/0    00:00:00 grep --color=auto nginx
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ 
[rpauser@node-zwf ~]$ cd /nginx/sbin
bash: cd: /nginx/sbin: No such file or directory
[rpauser@node-zwf ~]$ cd nginx
[rpauser@node-zwf nginx]$ 
[rpauser@node-zwf nginx]$ cd sbin
[rpauser@node-zwf sbin]$ ll
total 3764
-rwxrwxr-x. 1 rpauser rpauser 3851672 Jun 27 06:08 nginx
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ ./nginx -p /home/rpauser/nginx
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ ps -ef|grep nginx
rpauser    9357      1  0 09:27 ?       00:00:00 nginx: master process ./nginx -p /home/rpauser/nginx
rpauser    9361   9357  0 09:27 ?       00:00:00 nginx: worker process
rpauser    9378   9161  0 09:27 pts/0    00:00:00 grep --color=auto nginx
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ 
[rpauser@node-zwf sbin]$ 

SSH Remote ulimit does not work

SSH Remote ulimit does not work

Problem description

The contents of the operating system/etc/security/limits.conf file are as follows:


* soft memlock unlimited

* hard memlock unlimited

Use the remote connection tool MoBa to connect to the server, and use ulimit - a to view ulimit value, which is consistent with /etc/security/limits. Conf file configuration.

When using SSH command line remote connection, use ulimit - a to view ulimit value, which is the default value, which is inconsistent with /etc/security/limits. Conf file configuration.

When the operation and maintenance program starts the system remotely, it uses the SSH connection to execute in the past, and the ulimit value in the SSH connection does not take effect. As a result, the system cannot use RDMA because the default configuration of memlock is too small.

Investigation

After a series of investigation, we found that the SSH version of the customer environment (openssh)_ 4p1) and the default SSH version of the operating system (openssh)_ 7.4p1). It is suspected that the client’s recompiled version will cause the limit value of remote SSH login not to take effect
at the same time/etc/SSH/sshd_ The usepam value of the config file is No. when this item is configured to yes, restart the sshd server and view the system log. The error is as follows:

It is suspected that upgrading and compiling SSH to add – with PAM (this module is not compiled by default) will cause this problem.

solve

It is recommended that customers recompile the openssh version with the – with PAM parameter. Problem solving after customer operation.

Suggestions

The – with PAM parameter is required for the subsequent upgrade and compilation of openssh.

Expansion

Introduction of PAM module

Linux PAM (i.e. Linux pluggable authentication module) is a set of shared libraries, which enables local system administrators to choose the authentication mode of programs at will. In other words, you can change the authentication mechanism without recompiling an application with PAM function. In this way, even if you upgrade the local authentication mechanism, you don’t need to modify the program.

PAM uses the configuration file under/etc/pam.d/ to manage the authentication mode of the program. The application program calls the corresponding configuration file to call the local authentication module. The module is placed under/lib/security to load the dynamic library. For example, when we use the Su command, the system will prompt you to enter the password of the root user. This is what the Su command realizes by calling the PAM module.

SSH login will also refer to the modification module, and the configuration file is/etc/pam.d/sshd

#%PAM-1.0
auth       required     pam_sepermit.so
auth       substack     password-auth
auth       include      postlogin
# Used with polkit to reauthorize users in remote sessions
-auth      optional     pam_reauthorize.so prepare
account    required     pam_nologin.so
account    include      password-auth
password   include      password-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open env_params
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth
session    include      postlogin
# Used with polkit to reauthorize users in remote sessions
-session   optional     pam_reauthorize.so prepare

The session section will include the password auth configuration, and the/etc/pam.d/password-auth-ac file is as follows:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        required      pam_faildelay.so delay=2000000
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 1000 quiet_success
auth        required      pam_deny.so
account     required      pam_unix.so
account     sufficient    pam_localuser.so
account     sufficient    pam_succeed_if.so uid < 1000 quiet
account     required      pam_permit.so
password    requisite     pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password    sufficient    pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password    required      pam_deny.so
session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
-session     optional      pam_systemd.so
session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session     required      pam_unix.so

PAM_ Limits.so is the so module that will be called when creating an SSH connection, that is, the core so that the/etc/security/limits.conf file takes effect.

Reference documents

https://www.cnblogs.com/kevingrace/p/8671964.html

How to Solve Int Data overflow error

int type maximum ten digits 2147483647
int m=1;
int n=1345;
for(m=1;m<=1000000000;m*=10)
{ int d=n/m%10; printf(“%d\n “,d); } will report an error overflow, because the maximum m is, and then execute 1000000000*10 to overflow

 

Improve

int m=1;
int n=1345;
for(m=1000000000;m>
=1;m/=10)
{ int d=n/m%10; printf(“%d\n”,d); } this Hour output from high output 1 3 4 5

IDEA: How to Add @Data plug-in

In the code, there is @data annotation in the bean class. Normally, a series of template methods such as getter/setter/tostring() will be automatically added to the compiled class. However, in practice, after the subclass inherits the bean class, the getter/setter method cannot be used by default.

Why? This is because plug-in support needs to be added to IDEA.

Settings—> Plugins, click marketplace, input Lombok, install and restart idea.


</ div>

Idea pop-up window out of memory, modify the parameters and start the no response solution

Today, in the process of development, suddenly idea pop-up prompt out of memory, I changed the parameters on the pop-up, click shutdown, and then I couldn’t start it.

I see that many people on the Internet say that they want to delete the idea folder under the user, but once this is deleted, all the settings of the idea may have to be redone.

Finally, it is found that the changed parameters are in Disk C/user /. Idea (different versions have different folder names)/idea.exe.vmoptions. Just replace this file with idea installation directory/bin/idea.exe.vmoptions.

If you start with idea64.exe, this configuration file is called idea64.exe.vmoptions. This file may be in Disk C/user /. Idea, or Disk C/user /. Idea/config. You can replace it with a file of the same name in the installation directory/bin.

C language problem: 0xc0000005: access conflict occurred when writing to location 0xffffcc.

Recently, I began to learn C language systematically and use scanf in vs2019_ An error occurred when s assigned a value to a string. The error is as follows:
the exception raised at the location of 0x7837ef8c (ucrtbased. DLL) (located in project2.exe): 0xc0000005: an access conflict occurred when writing to the location of 0x01342000
*
after querying some data, we find that this problem should be solved because scanf is encouraged in vs2019 compiler_ S function to prevent the original scanf function array out of bounds( Using scanf function in vs2019 will report an error (compilation failed)

#define WORD_SIZE 26
char name[WORD_SIZE];
scanf_s("%s",name);

If so, an error will be reported.

If we provide the array name and length, we can compile it.

#define WORD_SIZE 26
char name[WORD_SIZE];
scanf_s("%s",name,WORD_SIZE);

40125,“errmsg“: “invalid appsecret, view more at http://t.cn/RAEkdV

Uniapp development of small programs, access to user information, request back to the background

{
	40125,"errmsg": "invalid appsecret, 
	view more at http://t.cn/RAEkdV
}

WeChat official account platform

After logging in, find the development management

and get appid in the development management

and then you can get the user information and request the background

Qt development, using ODBC interface, query mysql, appear qsqlquery:: Value: not positioned on a valid record

Qt development, using ODBC interface, query mysql, appear qsqlquery:: Value: not positioned on a valid record

Question: in the library management system developed by QT craetor integrated development environment, the newly created database class is used to operate the database. It inherits from QObject and uses the interface provided by ODBC to connect with the database. The database is mysql5.7, When using the following query statement, we report an error:

error information: qsqlquery:: Value: not positioned on a valid record

we query the relevant information:
the solutions we have found
try according to the solutions provided in the article, the problems still exist.

Later, some information was printed in various locations, and it was found that qdebug & lt& lt; condition<& lt; content<& lt;“ The variables condition and content in “on” can be printed normally, but “on” printed out is “?”
when I thought of creating a window before, the window title set in Chinese would be garbled. The solution I found at that time was to add the following code to the. Cpp file of the corresponding class:
?Pragma execution_ character_ set("utf-8")

Solution:
add the code block as shown above to the database.cpp file:

edit test information:

test output successful:

end! Scatter flowers! Record it!