Categories
Linux Mastering Development

LiveCD iso boot into VMWare Kernel Panic

I’m trying to boot theiso for hacking: the art of exploitation into VMWare Workstation and for whatever reason it’s not working. I know other people have had this problem as there’s a stack overflow post and reddit post regarding it. However, the stack overflow post didn’t seem to fix my problem and all the links […]

Categories
Mastering Development

R, how to change to interval in the y axis of a forest plot?

I’m preparing e a forest plot in R through the forestplot package. The possible values range from -1 to +1, and I would like that to be the range on my x axis. My values, however, range from 0 to 1, so R is depicting only that part on the x axis. See the image […]

Categories
Mastering Development

How to calculate RMS for dataframe column grouped by two column labels?

I have the following dataframe: Time Speed Magnitude Meters Type 0 393.644 -0.122 24.0 0.91 (m) jump 1 393.836 0.122 47.0 0.91 (m) jump 2 393.902 0.122 43.0 0.91 (m) jump 3 393.967 0.122 75.0 0.91 (m) jump 4 394.043 0.122 59.0 0.91 (m) jump .. … … … … … 731 2015.291 1.464 75.0 […]

Categories
Mastering Development

Checking if a sheet cells includes errors or not

I am using this script function to check if my cell functions in google sheet has any errors or not. Here is the code but it does not seems to be working. It keeps on saying no error when i have an error in a cell var ss = SpreadsheetApp.getActiveSpreadsheet(); var sourcename = “Sheet1”; var […]

Categories
Mastering Development

IHttpClientFactory and changing the base HttpClient.BaseAddress

What is the best practice for IHttpClientFactory and changing HttpClient.BaseAddress? When creating my Dependency Injection I am doing it like this: services.AddHttpClient(“MyApp”, c => { c.BaseAddress = new Uri(“https://myurl/”); c.DefaultRequestHeaders.Add(“Accept”, “application/json”); }).ConfigurePrimaryHttpMessageHandler(handler => new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.GZip }); Then when I need an HttpClient doing this: var client = clientFactory.CreateClient(“MyApp”); This works great, […]

Categories
Android User Help

App Switcher on Android 10 constantly crashes after minor update on Moto Z4

Motorola MotoZ4 was running Android 10 and it worked fine, then an update was forced, qdfs30.130-42-1-2, with constant daily prompts to restart stating that it would restart on its own if I did not do so voluntarily: https://www.verizon.com/support/motorola-moto-z4-update/ After this, when activating the App Switcher (box on bottom right),this message pops up if trying to […]

Categories
User Help

How to Indicate Overflowing Text Cell in Excel

In Excel, if I have a Date cell which doesn’t fit in a column, Excel with display the value as # until I resize the column properly. But with Text cells there is nothing to show the overflowing status. Why doesn’t Excel show an ellipsis (…) or something similar? Is there a way to alert […]

Categories
CMS Magento Mastering Development

Installing PHP Modules in Docker for 2.3.4 Upgrade

I’ve been working on upgrading my local environment from 2.2.10 to 2.3.4, but can’t figure out how to install the extra PHP modules for the new version (ie: sodium) using Docker. I was previously using PHP 7.1, but just rebuilt my containers with 7.3. They’re up and running with no problem, but how do I […]

Categories
User Help

Failed using scale_npp ffmpeg filter

I’m trying on Windows 10 (through MinGW64) to convert (mixing mode) from x265 file (by CPU) to x264 (by GPU – NVidia) resizing the output using scale_npp. What do the last five rows in this log mean? $ ffmpeg -i /i/_wip/xxxxxxxxxxxxxxx.MULTI.1080p.BDRip.x265.10bit.AAC.2.0.Subs.Fr.Eng.mkv -c:v h264_nvenc -an -vf “fade,hwupload_cuda,scale_npp=304:120” -pix_fmt yuv420p -preset fast /i/_wip/test1_output_h264.mp4 ffmpeg version N-98027-g89328022be-g6cd198860d+3 Copyright […]

Categories
Mastering Development System & Network

Debugging kmalloc-64 slab allocations / memory leak

I have two virtual servers that are configured very similarly: Debian bullseye (testing), 5.6.0 kernel, 512 MB RAM. They’re both running a similar workload: MySQL, PowerDNS, WireGuard, dnstools.ws worker, and Netdata for monitoring. On just one of the servers, the unreclaimable slab memory is growing linearly over time, until it hits a maximum (when the […]