Questions tagged [code]
A tag that includes questions about programming in general.
168
questions
-1
votes
0
answers
8
views
What Open-source SAST Static code analysis good for Security [closed]
I am trying to find an open-source security static code analysis, to check the security flaws and vulnerabilities in a source code.
code language is dotnet C#
I found many options like SonarQube.
but ...
0
votes
0
answers
23
views
How to copy SRT subtitles and all subtitles using “-map 0:s -c copy” in FFmpeg?
Will -map 0:s -c copy, copy the forced SRT subtitles and all the subtitles? Or will (-c:s copy) do the job?
All I’m doing is taking the video from making an MKV and copying the video, changing the ...
0
votes
1
answer
127
views
Copying text from PDF file doesn't keep indentation or formatting
I get a problem whenever I try to copy/paste code snippets from a PDF file, the pasted code doesn't keep the indentation which is a big problem in Python.
This is the source:
Here's what gets pasted:
...
0
votes
1
answer
31
views
Dot Matrix Printer Source Code Syntax Highlighting
I am using an OKI Microline 3390 to print out things from my linux box. I am using it as a text-only printer. No graphics, no PDF, no ghostscript ... A text file, say, is sent to the printer as a ...
0
votes
0
answers
32
views
Android Studio: how can I switch "code and split" buttons on?
Please help me with this:
Android Studio: how can I switch "design, code and split" buttons on?
0
votes
0
answers
57
views
DD image with no empty space of the volume
I want to create a DD image of a Volume of OSX from mac with none of the empty space, only the used space with data on it , to reduce the size of he img/dmg/raw file.
I've tries multiple software but ...
0
votes
0
answers
22
views
Thunderbird code to repair currently selected folder
I have discovered that individually right click repairing and compacting a folder will cause missing messages to show in global search, where bulk delete of all msf files, global-messages-db.sqlite ...
0
votes
0
answers
24
views
How to automate log-off after process ends?
My process is Playnite.DesktopApp.exe. I have set it up as my custom shell, so upon logging into my guest account in windows 10, this is the only process that boots up, nothing else.
After the process ...
0
votes
3
answers
98
views
How can I make a float left and right text in one line using ASCII?
I'm trying to put a text in one line in an aligned left and right on both ends. Please see example image of what I meant:
Does anyone know the ascii code to do this?
All I know is this is the ascii ...
0
votes
1
answer
132
views
PowerShell Recycling bin size Get-ChildItem issues
Im a bit lost. Been working on a script to check the size of the C and if less then 20 Gig, notify me and get usual suspect folder sizes. Been using Get-ChildItem for Deskp, Docs, Music, etc. but ...
0
votes
1
answer
21
views
Referring to multiple files of the same name that have a space in it in Command Prompt
A project asks me to move files that start with "Econ Project" to another location on the directory.
I have tried
move "Econ Project*.*\" ECON\Projects
move *"Econ Project&...
0
votes
0
answers
81
views
How can I stop People from getting to my files but still allow a program to read the files inside of it?
I creating a program that plays games and I don't want people to go into a certain folder How can I stop People from getting into a folder but still allow a program to read the files inside of it?
you ...
0
votes
0
answers
28
views
How can I find all if-statements without an else?
I've got quite a lot of code in which sometimes if-statements have been written, without a matching else-statement. In some places, this is an issue, because when something fails, the failure is not ...
0
votes
0
answers
110
views
Windows UAC username and password auto fill
Is there perhaps a command (script) to automatically fill in the admin credential in UAC?
I have admin credentials with me.
The idea is, when the UAC window opens, I start that little script, which ...
2
votes
2
answers
1k
views
In Excel, how can I round or display numbers to 2 significant figures (the two leading non-zero digits of a decimal number)?
In Excel 2016 I need to show zeros out to the leading non-zero digits and then just the two digits after that. For example:
0.00002423 should read 0.000024,
0.242 should read 0.24,
0.0032255 ...
0
votes
1
answer
70
views
Need help processing opened images in ImageJ
I've created a macro (based on different ones I've seen) that analyses particles areas in my picture, automatically copies the Area column in the results window to my clipboard and displays a window ...
1
vote
1
answer
2k
views
Security Onion 2.3 The IP being routed by Linux is not the IP address assigned to the management interface?
I have just installed Security Onion 2.3 and I faced some issue with network configuration, first of all I have 2 interface
1- Host Only for Management
2- Nat with internet connection
but I receive ...
2
votes
1
answer
707
views
How do I create a Code Snippet in MS Teams using a Keyboard Shortcut
In MS Teams, it is common to need to share code snippets quickly. Is there a keyboard shortcut that displays the code snippet editor?
0
votes
1
answer
48
views
Change this code to send attachment as XLSX
I need to change this code to send a certain area as an xlsx attached in outlook and not as a pdf.
Sub EnviarEmailPeloExcelAnexoPDF()
Dim sPara As String
Dim sMsg As String
Dim ...
3
votes
2
answers
84
views
MS Excel - Combine tables using M code
I have a file with 3 different tables on individual sheets. The tables all have a different number of columns and rows but they all have 1 column in common.
I previously asked a simplified version of ...
2
votes
1
answer
44
views
BCEDIT not work in delete at remove UNETBOOTIN at error in install Ubuntu in Windows 10
BCDEDIT/DELETE {ed691510-03ba-11eb-b17b-c0e434ee9b0c}
BCDEDIT/DELETE : The term 'BCDEDIT/DELETE' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the ...
0
votes
1
answer
145
views
Two-Way Sync or Dynamic Leak Between 2 cell ranges
Below is code on a Dynamic Link or 2-Way Sync between two separate sheets and fields. However, I would like to change this to do a range of fields such as A4:A12 and B7:B15. Please help. Updated for a ...
2
votes
2
answers
146
views
How to move an entire collapsed level to another place in Notepad++?
Given a document in Notepad++ with the following content:
For the sake of overview all elements are collapsed, like so:
When I want to move an entire <element1>...</element1 around, I first ...
0
votes
1
answer
69
views
Keyboard with mind of it own (linux related?; Chromebook)?
I activated linux (beta) on my Chromebook (Google Chrome OS 85), and entered some text before installing Visual Studio Code and entering a very small amount of text. A day later, my keyboard is acting ...
0
votes
0
answers
52
views
Run Script Terminal Commands Orderly
how do i run the script below orderly ? (execute task after 1 task is done)
Code 1
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -...
0
votes
2
answers
122
views
How to conditionally concatenate a range with VBA?
In my work, every end of the month I have to review data saved in spreadsheets like the image. The only data that interests me is to check the value of L column and obtain the data in the BS column. ...
0
votes
1
answer
39
views
Start a program(exe) when idle for set amount of time and then end program when no longer idle. Windows10
Tried to do this with task scheduler but it was a complete mess and never worked properly. Is there another way to do this?
0
votes
2
answers
464
views
How to add text to the end of every url in notepad++?
I have a big text file that contains urls that all begin with the same domain name but vary in the rest of the url. Is there any way to search for the line beginning with http://test.domain and insert ...
-2
votes
2
answers
419
views
Why does this New-Item command work within powershell but not within a ps1 script?
Totally stuck here and have no idea what to do: I've got a multiple choice interactive Powershell script I'm putting together for the ops so they shave off a few minutes whenever they want to perform ...
0
votes
1
answer
12k
views
How to recover unsaved file (Visual Studio Code)?
my VSC crash without saving how to get back the code ?
already tested appdata\roaming\code\backup i dont found the file
0
votes
1
answer
58
views
How to record screen for showing code or design?
I'm looking to be able to make a video/gif like this https://dribbble.com/shots/4920325-Social-share-button
I created some similar design with css. But now I don't how to get a video like that. I ...
2
votes
0
answers
421
views
How do I enable scrolling in the integrated terminal in Visual Studio Code?
I'm trying to scroll with the integrated terminal and I'm getting a series of weird text that's showing up, like ^[[<64;57;24M]] and it's not scrolling.
I'm on the most up to date mac with the most ...
0
votes
2
answers
58
views
In what way can I still use an old, still functioning laptop since I bought a new one? [closed]
I recently purchased a new laptop and am not using the old one. I feel it is a waste for the old one to just be put away on my shelf collecting dust. It is an ASUS laptop with Intel Celeron 3060 with ...
2
votes
1
answer
99
views
How do I get this randomised copy/paste/rename to work in my Win10 batch script?
I'm trying to force Windows 10 to change the logon/lockscreen pictures every so often with our own company ones (corporate branding).
The following directory contains the Microsoft stock images:
C:\...
0
votes
3
answers
374
views
Powershell test-path issues
I am trying to use test-path to find if a path or path/file is valid.
For example I can do:
test-path -literalpath "c:\MyFolder\Study Setup.csv"
This returns true when it is and false when ...
1
vote
1
answer
218
views
remove local hosts from terminal on mac
I'm trying to instal adobe cloud, but it doesn't work because I believe some of it's servers are blocked in my terminal.
How do I remove them? I know how to open terminal, but that's it. I'm not the ...
0
votes
2
answers
32
views
Excel If Function with too many arguments
IT tells me that there are too many arguments, but I don't know how to make it less arguments for it to work
cant seem to make this one work,
=IF(ToFind<MyNumber,"Too low", IF(ToFind>MyNumber,...
1
vote
0
answers
227
views
How to find the Position of Objects detected in a video on YOLO? [closed]
Hi First of all I'm a real noob to coding and all. I found this YOLO and wanted to do something with it.
After downloading YOLO and running it by typing
./darknet detector demo cfg/coco.data cfg/...
0
votes
1
answer
50
views
MatLab showing different plots on different zoom level
I ran this code on MatLab:
function main
fimplicit (@(x,y)f(x,y),[2 5])
end
function fun = f(x,y)
nc=1.45; %cladding
nf=1.5;
ns=1.4; %substrate
h=5; %width of waveguide
kappa=sqrt(x^2*nf^2-y.^...
0
votes
0
answers
45
views
VBA code to make a cell mandatory on save if previous cell says Fail
I'm currently creating a document that would allow supervisors to audit their people.
I'm looking for a way to prevent saving if cells I and J are not completed if the person failed the previous ...
1
vote
2
answers
606
views
Move Files Into Correct Folder Batch File
I have a file directory called "Parts". Within that folder I have files that I need to run a batch file on to move to their correct folders. Example
12345 test.pdf
12345 test.jpg
12346 test.pdf
...
2
votes
0
answers
231
views
Is there a VSCode extension for auto-validating brackets?
I'm looking for an extension for VScode that can auto-validate brackets in code or highlight mismatched or invalid bracket arrangements. I've seen extensions that colorize brackets, which is helpful, ...
0
votes
0
answers
38
views
Visual Studio Code - navigation bar path
enter image description hereHow to set up this kind of navigation bar - where u can click on catalogs like in windows systems. Tis video and "GPS" icon on the top left:
https://www.youtube.com/watch?...
0
votes
1
answer
29
views
code in VBA excel
I need help with macro. The goal is to find specific text inside each sheet. If this text is found, macro continues with next codes. If the text is not found, macro skips to the next sheet and do the ...
0
votes
0
answers
27
views
Is there any open technology for encryption all the code like an encrypt container?
Is there any open technology for encryption all the code ?
You see the black frame, I want there is a technology like it to avoid source code come to light.
0
votes
0
answers
45
views
Randomly selecting data from different columns into one column without duplicates
I have four columns of students. There is 1000 students in each column. The same students are in each of the four columns. I need to randomly select one student from each column to make groups of four....
0
votes
1
answer
192
views
AutoHotKey: How do I set the starting value of the current loop iteration?
I've made a basic AHK script that adds unique metadata to each file on a system I use every day. The idea is to add _01 to the first file followed by _02 to the second file and going up forever until ...
1
vote
1
answer
37
views
Problems using USB-ASP
I am trying to upload some code to my MCU ATMega 32a using an USB-ASP programmer and extreme burner software.
I am just using some dummy code, but everytime I try to burn it, the extreme burner shows ...
0
votes
1
answer
101
views
Create a batch project with game
I have a batch file for installing a game and changing the language.
ISO file
ISO [virtual drive mounted] (can be any letter D:\ E:\ F:\ etc...)
AutoRun.inf (this run the .bat and .ico)
Run.bat (...
0
votes
1
answer
163
views
how to Achive this in visual studio (from visual vode extension)
so i want this feature(code)
to get to here(visual studio)
so i was wondering you can see in the first picture the first char of for if while(etc) has slight caligraphy in it? do anyone know how to ...