Questions tagged [code]

A tag that includes questions about programming in general.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
70 views

Windows Error Code 0x80070643 [closed]

I get this error code when updating Windows 10. From that point on, the PC cannot be updated because every time I try, I get the same error. Any help?
Roberto Jimenez's user avatar
1 vote
1 answer
39 views

How do I change the default app for all programming-related files on MacOS

Recently switched over from Windows to Mac. First thing that I had to was some stats homework so I installed RStudio to finish that. After that, I installed VSCode for all my other programming-related ...
Keerthik M's user avatar
0 votes
0 answers
13 views

How do I refresh an page automatically every time an net::(ANY ERROR) is detected on the inspect console on Chrome?

So I have an question. The most annoying error I have in Chrome is the net::ERR_SSL_PROTOCOL_ERROR, which occurs for broken images. I used Codepal to help me make this script, but it does not work. I ...
Noah Walters's user avatar
0 votes
1 answer
206 views

sudo passwd for bash terminal

I am total newbie so excuse the lack of knowledge, but I recently created an Microsoft Azure account so it comes equipped with a bash terminal. I wanted to make sure it is up-to-date so I tried ...
AndromedaZdna's user avatar
-1 votes
1 answer
2k views

Fern Wifi Cracker dont work

I cant install the Wifi Cracker in Kali Linux. When I wanna start the Cracker this messages shows up: (Many people have the problem but none of the proposed solutions worked for me) └─$ sudo fern-wifi-...
LEO's user avatar
  • 1
1 vote
0 answers
52 views

Is it possible to separately run image magick commands on certain pages in a pdf documents, then combine it all into one pdf?

I'm a student and have exams coming up. I'm trying to remove solutions from some online resources I've found to study from. The solutions were all written in red text under Short Answer (SA) questions ...
Musa Khattak's user avatar
0 votes
0 answers
89 views

Remote Session + Remote Session from Inside first session = Smart SIzing not working

I've looked around a fair bit in search of an answer, but no luck so far. The issue I have, is that I have a work laptop and a personal desktop with 3 monitors. I remote into the work laptop from the ...
Jonathon Baker's user avatar
-1 votes
2 answers
741 views

TortoiseGit: How to show files with differences between branches before merging

Merging in TortoiseGit will automatically merge a file to the latest code if there are no conflicts. However, I'd like to choose some blocks to merge only (the files don't conflict). Is it possible to ...
Dan D.'s user avatar
  • 701
0 votes
0 answers
48 views

Why is Two-Level Variable Expansion Required When Using Bangs with Two Variables in a SET Command

For the following FOR loop, I can only get the statement set var%%a=%var!v!% to work if I add CALL and add 2 additional percent signs (one on each side) like so: CALL set var%%a=%%var!v!%% I ...
Mike Tompson's user avatar
0 votes
1 answer
152 views

What does this mean in this email that I found my husband sending messages like this in Outlook

Email header: X-Gm-Locker: AGMme3PcxTL2JFWN0Vdo0Xv8oI15-23s21Gn1_0qY-R0TsVZqqcXLTtuCL-OtNgO17MIv-dOn8XFhhWLYefojvu6G-XQwFOFstP4D-...
Vicky R.'s user avatar
0 votes
0 answers
14 views

VS19 Create Visual Jpeg of Code

I want to create a jpeg image of my code with black bg and white/color font as seen in dark mode. This is to get it printed and framed for my wall but I'm having such a hard time figuring it out. I ...
Stefs's user avatar
  • 1
1 vote
1 answer
136 views

Trying to Understand How Multiple Percent Symbols are Processed Around Variables

@echo off set var1=hello set var2=var1 set var3=var2 echo on echo 2. %%var3%% echo. echo 3. %%%var3%%% I have echo on so I can try to make better sense of the batch processing, though it really ...
Mike Tompson's user avatar
0 votes
1 answer
70 views

Assign a FOR variable to an Argument/Parameter

Is it not possible to use a FOR variable, like %%a, and assign it to an argument/parameter, like so: for /L %%a in (0,1,5) do ( echo Argument#(%%a) is %~%%a )
Mike Tompson's user avatar
0 votes
0 answers
82 views

Trying to Echo Array Values by Referencing the Array.Length Variable

I'm trying to output the contents of an array index # by referencing the index # using the A1.length value. But since I still don't fully understand the expansion of variables, the most I get for ...
Mike Tompson's user avatar
0 votes
1 answer
48 views

Not getting the right answer when dividing

echo off title Numbers Part 3 color a goto input :input echo what to divide? set /p by= cls echo %by%? ping localhost -n 2 >nul cls echo Well, %by% by what? set /p with= pause cls echo Great ping ...
DLAND GAMES's user avatar
0 votes
2 answers
265 views

Single vs Multi Line: Different results after setting variables, and Only if parameters are passed from command

Why do these two sets of code-blocks give different results when everything is the same, except for the structure of the IF Statement? Interestingly, the only time the result fails is when I pass the ...
Mike Tompson's user avatar
-1 votes
1 answer
101 views

how to use 'sed' in bash to delete a line from a specfic point on?

so i have these lines for example: name,lastname,[email protected] name2,lastname2,[email protected] i need to delete the '[email protected]' in every line essentially i want to make sed do "delete ...
imshad shadshad's user avatar
0 votes
1 answer
639 views

How can I add dummy bytes to a file? [duplicate]

I am on Windows 11 and I basically care about making the file (a .bin file) seem larger than it is without augmenting the file's function. I have a 524,288 byte-sized file and I want to make it 4,194,...
tcwub's user avatar
  • 9
0 votes
1 answer
266 views

short code to determine pdf page count and pdf page size for upload to woocommerce site

I am looking for short code or a woocommerce solution to determine the page size and page count of a pdf document for upload. Customers can upload pdf files to my woocommerce website, and I would like ...
AineM's user avatar
  • 1
0 votes
2 answers
68 views

Differentiating between two programs (windows)

Is there any specific manner/way in which Windows differentiates between two programs? For instance, why can't I run two of the same programs at once? Or is there a way in which I could do this by ...
merrick's user avatar
0 votes
1 answer
84 views

How to run a command line in different folders - loop

I am facing a problem trying to run the following command line : laszip *.laz That command is supposed to uncompress all the files which are in the folder I am in, from the cmd. I am supposed to run ...
Taborniau's user avatar
0 votes
0 answers
255 views

What does this hp led error code mean?

I have a HP ProBook 6450b that's been stuck in a boot loop with blinking LEDs going on/off. it sat outdoors, and may have gotten some soil dust inside, not sure, but booted up before that. Basically, ...
computeruser's user avatar
2 votes
1 answer
263 views

Gedit Code Tree (Code Structure)

I'm currently using Gedit for writing some code. Is it possible to show a code tree/structure in Gedit (like on the picture below)? The example on the picture is from CudaText editor.
ENIAC's user avatar
  • 123
0 votes
1 answer
102 views

Run shell script in code editor software like eclipse on windows but execute the written code on Linux VM?

I have windows 10 installed in my laptop and I have created a Linux VM inside Virtual Box. I always access my Linux VM via putty and from there I used to create and execute the bash scripts. It would ...
Karthik Ravi's user avatar
0 votes
2 answers
95 views

I need help deleting all text/characters between certain characters on Notepad++

Ok, so here is the text I've got: --[[lWjY]] --[[jAouQKe]]--[[SyXZxSmUQ]] --[[BC]]--[[jiynRfVxz]] --[[KhIysiNCC]]--[[ddmGYn]] --[[cYv]]--[[_y]] --[[q-tAXL]]--[[bNgAZ_aY]] --[[C]]--[[iY]] --[[LZIpK]]--[...
Dan's user avatar
  • 1
1 vote
1 answer
3k 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: ...
Ehab's user avatar
  • 113
0 votes
1 answer
346 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 ...
Dennis Wydra's user avatar
0 votes
2 answers
1k 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 ...
Mehdi Singer's user avatar
0 votes
0 answers
174 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 ...
ProprietaryCloudGaming's user avatar
0 votes
3 answers
773 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 ...
Jumar Juaton's user avatar
0 votes
1 answer
2k 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 ...
XXLMandalorian's user avatar
0 votes
1 answer
146 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&...
An H Pham's user avatar
0 votes
0 answers
48 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 ...
John Stoneman's user avatar
2 votes
2 answers
3k 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 ...
Roberto Parra's user avatar
0 votes
1 answer
434 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 ...
Poux3's user avatar
  • 1
2 votes
2 answers
6k 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 ...
Sarah's user avatar
  • 21
6 votes
2 answers
5k 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?
dmcgill50's user avatar
  • 1,130
0 votes
1 answer
331 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 ...
João Bôas's user avatar
3 votes
2 answers
317 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 ...
Rory's user avatar
  • 45
2 votes
1 answer
182 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 ...
Georgios's user avatar
0 votes
1 answer
298 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 ...
Nick Peretti's user avatar
2 votes
2 answers
446 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 ...
Sam's user avatar
  • 312
0 votes
1 answer
163 views

A keyboard with a 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 ...
Isaac Stewart-Silver's user avatar
0 votes
0 answers
80 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 -...
zaqquater's user avatar
0 votes
2 answers
290 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. ...
Daisy Muñiz's user avatar
0 votes
1 answer
116 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?
Dolyfin's user avatar
1 vote
2 answers
1k 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 ...
videogamingtown's user avatar
-2 votes
2 answers
1k 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 ...
Mastaxx's user avatar
  • 1,218
2 votes
2 answers
27k 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
Aknoks's user avatar
  • 31
0 votes
1 answer
149 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 ...
Bluebug's user avatar
  • 195