Questions tagged [code]

A tag that includes questions about programming in general.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Need help regarding rendering react js component [closed]

Hello i have made login page and dashboard. i have imported Navbar.js in Layout.js and layout.js is imported in App.js. The problem is navbar is not showing Product.js. i need guidance that how can i ...
secret world's user avatar
-1 votes
2 answers
45 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 ...
Dee's user avatar
  • 621
-1 votes
0 answers
9 views

How can I make sure the field changes or match up with its related field in access

I have made a query with licence plate number, service date and invoice number. grouped licence plate number to one each and service date to MAX so it is showing the most recent date but how can I ...
Hui's user avatar
  • 1
0 votes
0 answers
24 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
82 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
43 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
0 answers
64 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
62 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
28 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
1 answer
84 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
0 votes
1 answer
25 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,mail@gmail.com name2,lastname2,mail2@gmail.com i need to delete the 'mail@gmail.com' in every line essentially i want to make sed do "delete ...
imshad shadshad's user avatar
0 votes
1 answer
195 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
83 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
0 answers
240 views

On installation of MX Linux I get “Kernel Panic-not syncing:Attempted to kill init! exit code=0x00000009”

On installation of MX Linux I get “Kernel Panic-not syncing:Attempted to kill init! exit code=0x00000009” Machine, is an HPZ400 6DIMM Workstation. The code is the result of both attempting a USB flash ...
Wolfy's user avatar
  • 1
0 votes
2 answers
47 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
37 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
148 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
102 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
86 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
81 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
2k 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
185 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
840 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
122 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
430 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
991 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
71 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
32 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
2k 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
253 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
1 vote
1 answer
4k 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
  • 11
4 votes
1 answer
2k 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,100
0 votes
1 answer
181 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
137 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
113 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
225 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
334 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
  • 292
0 votes
1 answer
123 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 ...
Isaac Stewart-Silver's user avatar
0 votes
0 answers
69 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
168 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
95 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
0 votes
2 answers
858 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
730 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
  • 975
0 votes
2 answers
18k 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
  • 11
0 votes
1 answer
80 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
  • 165
3 votes
0 answers
746 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 ...
Cauder's user avatar
  • 595
0 votes
2 answers
60 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 ...
Jojobo47's user avatar
2 votes
1 answer
142 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:\...
Mastaxx's user avatar
  • 975
0 votes
3 answers
597 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 ...
Colm's user avatar
  • 25