Categories
Mastering Development

cant fetch city and district data due to a irrelevant error

I have a database which contains city(sehir) and district(il) tables. In my registration form I want to fetch district data depending on city value. And there is a address table which has foreign keys to these tables. There is a column for postal code. First I made it integer value, when I tried it like […]

Categories
Mastering Development

read a file and perform operation through another program and save the output in a separate file using system calls

// This is my code for reading a file from command line arguments and storing in another file.// #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> //for system calls such as dup(),pipe(),etc… #include <sys/wait.h> #define COUNT_PROGRAM "b" #define CONVERT_PROGRAM "c" int main(int argc, char *argv[]) { if (argc != 3) { fprintf(stderr,"%s","ERROR : […]

Categories
Mastering Development

Window popup made with javascript is blank

I have javascript that injects into a page and makes a popup that lets you edit the html of the page. I was working on it for 3 days but the final code makes a blank popup. Can anyone help debug my code? Used in a bookmarklet like this: javascript:var d=document; var s=d.createElement(‘script’); s.src=’https://talhoid-coder.github.io/js/inspectinject.js’; d.head.appendChild(s);void(0); […]

Categories
Mastering Development

Regex remove newline only inside of string

I have the following string: txt = "string \n and another string |\n" Now I only want to remove \n the in the middle of the string. So keep the newline character at the end of each line. In this case I also have a | at the end of each line. I tried with […]

Categories
Mastering Development

File does not exist (ncjoes/office-converter, laravel)

i was using ncjoes/office-converter, trying to upload .docx and convert it to .pdf, but it occurred error when it converts to .pdf the error shows NcJoes\OfficeConverter\OfficeConverterException File does not exist –test.docx view <form action="/notes" method="POST" role="form" enctype="multipart/form-data"> @csrf @method(‘POST’) <div> <label for="title">title:</label> <input id="title" name="title"> </div> <div> <label for="topdf">upload:</label> <input type="file" id="topdf" name="topdf"> </div> <button […]

Categories
User Help Web Apps

Google Sheets – Checking values for specific criteria based on another cell’s value

I have some raw data and I’m looking to create a "dashboard" of sorts that would list out the learner and whether or not they’ve completed a learning plan based on their worksite. In the "inputs" tab I’ve noted which learning plan (and thus which courses) is required per site. So, for example, if a […]

Categories
Mastering Development System & Network

High Docker disk read utilization on startup

My Docker server is very slow to start up. It’s in Swarm mode, and each service restart (or just server reboot) it uses 100% of disk utilization, however it takes about an hour to start up. I tried determining what takes so much disk utilization via iotop, and tried stracing the offending processes. First, when […]

Categories
Mastering Development System & Network

High Docker disk read utilization on startup

My Docker server is very slow to start up. It’s in Swarm mode, and each service restart (or just server reboot) it uses 100% of disk utilization, however it takes about an hour to start up. I tried determining what takes so much disk utilization via iotop, and tried stracing the offending processes. First, when […]

Categories
User Help

Windows10 Autoit scripts

Autoit script i want to start a service when the computer is idle and stop when it’s used this work fine to start/stop but for idle and inactive anyone can help with script? RunWait(@ComSpec & " /c " & ‘net stop ServiceName’, "", @SW_HIDE) RunWait(@ComSpec & " /c " & ‘net start ServiceName’, "", @SW_HIDE)

Categories
Mastering Development

using System.Threading.Timer to alternate between Async tasks on Discord.net

Good morning all, I’m currently creating a new function for my Discord bot which alternates the Bots playing status. We have some Squad game servers and are pulling the data from Battlemetrics via web.load and using select single nodee from the XPath of the html response. Now, onto the issue. I have created an async […]