Can’t find the folder where these images are stored

Working on a demo website at https://mto2staging.mustangtraderonline.com and the theme has custom settings for social media links. I filled in a few of them but the icons don't show up as you can see in the header. When i try to 'inspect' the elements, i can't see what files are used for the icons or where they should be stored. What am i missing?

Huge syslog, syslog.1 and kern.log files stored in /var/log in Ubuntu 18.04

I recently upgraded Ubuntu 16.04 to 18.04 on my PC (with Nvidia GeForce GTX 1080 Ti GPU) and ever since my file system has been building up from these huge log-files. Every time I shut down my computer I get an endless number of pcieport-messages until some time the PC shuts itself down.

Yesterday I left my machine on for the night and when I came back to it there was a notification that disk space is all used up, that is /dev/sda1 was in 100% use. I managed to find this out via du-command and pinpointed the problem to log files in /var/log/-folder, which contained log-files of more than 350GB.

Currently, the log files are building up again and now they take up space approximately 150GB. The log files that are causing the problem are: syslog.1, syslog and kern.log

My question is: What is causing this problem and how to fix it?

I have listed below information about my system and few lines from the log files. I will remove them again, but endlessly removing them does not seem the best long term solution.

Distributor ID: Ubuntu Description:    Ubuntu 18.04.3 LTS Release:    18.04 Codename:   bionic  nvidia-smi Thu Aug 15 09:25:53 2019        +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.40       Driver Version: 430.40       CUDA Version: 10.1     | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. | |===============================+======================+======================| |   0  GeForce GTX 108...  Off  | 00000000:01:00.0  On |                  N/A | | 24%   58C    P0    67W / 250W |   1373MiB / 11177MiB |      1%      Default | +-------------------------------+----------------------+----------------------+  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0      1298      G   /usr/lib/xorg/Xorg                            89MiB | |    0      1337      G   /usr/bin/gnome-shell                          50MiB | |    0      2258      G   /usr/lib/xorg/Xorg                           726MiB | |    0      2465      G   /usr/bin/gnome-shell                         189MiB | |    0     14914      G   ...e --type=gpu-process --field-trial-hand   154MiB | |    0     18206      C   /usr/lib/libreoffice/program/soffice.bin     137MiB | +-----------------------------------------------------------------------------+ 

syslog.1

Aug 14 10:14:03 user kernel: [   10.680132] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   10.680135] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   10.680135] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   10.680136] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   10.680187] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   10.680190] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   10.680190] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   10.680191] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   10.680281] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   10.680284] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   10.680284] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   10.680285] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   10.680374] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   10.680378] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   10.680379] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   10.680380] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   10.680586] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   10.680590] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   10.680591] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   10.680591] pcieport 0000:00:1c.7:    [ 0] RxErr                  

syslog

Aug 15 09:04:23 user kernel: [  307.590656] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 15 09:04:23 user kernel: [  307.590836] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 15 09:04:23 user kernel: [  307.590841] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 15 09:04:23 user kernel: [  307.590843] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 15 09:04:23 user kernel: [  307.590844] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 15 09:04:23 user kernel: [  307.591125] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 15 09:04:23 user kernel: [  307.591134] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 15 09:04:23 user kernel: [  307.591135] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 15 09:04:23 user kernel: [  307.591136] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 15 09:04:23 user kernel: [  307.591414] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 15 09:04:23 user kernel: [  307.591419] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 15 09:04:23 user kernel: [  307.591420] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 15 09:04:23 user kernel: [  307.591422] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 15 09:04:23 user kernel: [  307.591607] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 15 09:04:23 user kernel: [  307.591614] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 15 09:04:23 user kernel: [  307.591616] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 15 09:04:23 user kernel: [  307.591617] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 15 09:04:23 user kernel: [  307.591896] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 15 09:04:23 user kernel: [  307.591901] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) 

kern.log

Aug 14 10:14:03 user kernel: [   11.219257] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   11.219259] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   11.219260] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   11.219260] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   11.219443] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   11.219448] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   11.219448] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   11.219449] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   11.219714] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   11.219717] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   11.219718] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   11.219718] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   11.219916] pcieport 0000:00:1c.7: AER: Multiple Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   11.219922] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   11.219923] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   11.219924] pcieport 0000:00:1c.7:    [ 0] RxErr                  Aug 14 10:14:03 user kernel: [   11.220101] pcieport 0000:00:1c.7: AER: Corrected error received: 0000:00:1c.7 Aug 14 10:14:03 user kernel: [   11.220104] pcieport 0000:00:1c.7: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID) Aug 14 10:14:03 user kernel: [   11.220105] pcieport 0000:00:1c.7:   device [8086:a297] error status/mask=00000001/00002000 Aug 14 10:14:03 user kernel: [   11.220105] pcieport 0000:00:1c.7:    [ 0] RxErr                  

How to Analyze and Document a SQL Server Stored Procedure

I have been handed a large SQL Server batch process containing <100 stored procedures and functions. There is no documentation, I cannot rely on comments.

High level, what are the best practices to efficiently document the logic and data flow?

Can anyone point me to documentation, tools or other guidance?

EG: One process is an ETL that imports text files to tables, massages the data then loads target tables. This ETL spans 2 dbs, about 20 procs/functions and 20 or so tables. Probably <5000 lines of code. (Its pretty gnarly)

I need to become SME on this bad boy. In the past it has been hunt and peck, walking the code chunk by chunk. There must be a better way.

ClearDB – Can’t create a TRIGGER from within another stored routine

Hola amigos estoy tratando de crear un trigger con un ClearDB que tengo de Heroku, hasta donde entiendo ClearDb es MySQL, he trabajado bien con él hasta ahora que quiero hacer un triiger insert after insert, estoy usando SQLPro como interfáz.

Este es mi query

    CREATE TRIGGER usercount AFTER INSERT    ON users_ FOR EACH ROW  BEGIN     DECLARE vUser varchar(50);     -- Find username of person performing the INSERT into table    SELECT USER() INTO Users_;     -- Insert record into audit table    INSERT INTO userscount_    ( contact_id)    VALUES    ( NEW.id_user     );  END;  

Y esto lo que me devuelve

MySQL said: Can’t create a TRIGGER from within another stored routine

Why is OS kernel stored into a virtual memory space

I have read that:

The Kernel Virtual Address Space (KVA) is the virtual memory area in which all Linux kernel threads reside

Why does an OS need to use virtual addressing for itself? Why doesn’t it use the physical memory directly?

Now the reason behind this question is because of my curiosity in accessing physical memory form Linux.

I know that the MMU is responsible for maintaining the virtual to physical address structure and it is enforced by the hardware itself, but surely the kernel itself has access to physical memory right?

I tried to write a “kernel module” to try and get access to physical memory but even the kernel itself is on a virtual space apparently.

Is there any way I can access physical memory beside writing my own kernel form scratch? There is no reason behind it, just trying to do it for fun and learning.

How to do versioning for stored procedure?

Is there any way to create versioning for stored procedures? I have created an api which fetches data from a database using store procedures. This api is being consumed from a mobile app. I released the v1.0 of api (www.example.com/api/v1.0/endpoints). Now I’ve to release the v2.0 of the api (www.example.com/api/v2.0/endpoints), and there are many changes both in the api and stored procedures. So how do I release the v2.0 without affecting the older api ? Because even if api is independent, stored procedures are the same for both. How is such kinds of situations supposed to be handled ?

Where is the actual money represented in an e-wallet stored?

Lately, I’ve been interested in digital wallets (e-wallets) and how they work in a deeper level. For the most part, I understand some of the core components that are needed to create an ideal e-wallet. But the thing that I haven’t confidently figured out is where does the actual money for the e-wallet go?

Say I was to create a hypothetical e-wallet , which uses stack coins (sc) such that 1 sc = $ 10, and a user sends $ 40 to the hypothetical e-wallet. The user the should have 4 sc.

So to the developers end, where is the $ 40 directed, should the developer have a bank somewhere that stores all user received money? Is it redirected another payment system with an API, like MasterCard? In your answers, please provide an example scenario.

Is throwing malicious strings in json_encode a good way to evade Stored XSS?

I’m aware that filtering strings doesn’t go this way, but when encoding xss payloads into json format in php and storing that information temporary in classes, the result in the browser, it will show all the strings that are before the javascript content, the payload in the middle won’t execute since i use json_encode for all the strings and all what is after the javascript content is not displayed in the browser. but can i use this in real world applications?


Here is the generated content after the submit

enter image description here

I use a picture to read with more comfortability

Problema na criação de uma stored procedure

Estou tentando criar uma stored procedure que sirva para verificar se minha tabela está vazia, e caso não esteja retornar o valor com o maior Id. Contudo não estou conseguindo.

CREATE PROCEDURE spConsulta @NameTable VARCHAR (50) AS BEGIN     SELECT Value     FROM @NameTable     WHERE Id = (SELECT MAX(Id) FROM @NameTable);      IF @@ROWCOUNT = 0         RETURN 0  END 

Errors.

Msg 1087, Nível 16, Estado 1, Procedimento spConsulta, Linha 6 [Linha de Início do Lote 0] É necessário declarar a variável de tabela “@NameTable”. Msg 1087, Nível 16, Estado 1, Procedimento spConsulta, Linha 7 [Linha de Início do Lote 0] É necessário declarar a variável de tabela “@NameTable”.

Alguém saberia como resolver este problema ? Pelo visto o problema esta no @NameTable, estou fazendo desta forma pois estou tentando utilizar esta stored procedure para todas as tabelas, pois todas as tabelas possuem a mesma estrutura, pelo visto não esta funcionando. Alguém saberia alguma forma alternativa de fazer isto ?