Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code]

A tag that includes questions about programming in general.

0
votes
1answer
7 views

Visual Studio Code - working with two sub-windows but making them not effecting one another?

Visual Studio Code (VSCODE to all you coming here from search engines) allows splitting the current working window into two windows: When I type text in one, it appears in the other. I desire that ...
-2
votes
0answers
15 views

capture key event c++ implementation [closed]

I want to write a simple C++ code: TO achieve: (for example) when press up/down arrows, it will bring up the previous/next command. (same as what the Linux do). When user input UP arrow key, it ...
1
vote
1answer
33 views

How do I associate a filetype to open with a self developed application?

In .NET/WinForms/C# I wrote a small program for "viewing" PDF files. It just opens a real PDF viewer and does some more things (not important for the following problem). However, under Windows 10 I ...
0
votes
0answers
27 views

How do I get this simple ffmpeg command to work in Automator?

I'm having trouble getting a simple Automator shell script to work. I'm trying to get an ffmpeg command line to run a task on a file that is dropped onto the appliaction icon. This is what i've done: ...
0
votes
2answers
53 views

How to move partial text from one cell to another

I have a dilemma I am hoping someone might be able to help me with! I have exported a PDF file into excel that has a lot of information that populates into one cell. I need to split this information ...
0
votes
1answer
43 views

AutoHotKey: How do i get the 'Date Modified' of my current working directory into the clipboard?

I have a script that logs basic folder name and file count from media directories on our server into a spreadsheet. However, I also need to add a line of code that retrieves the 'Date Modified' of the ...
0
votes
1answer
50 views

Track changes in MS Word through PowerShell script

Could someone please help me modify the script below, so that it can also track changes in MS Word? I need to be able to see where a change was made in order to ensure the sentence that resulted will ...
0
votes
1answer
108 views

AutoHotKey: How to make my script run only within a specific program?

I have made an AHK script that adds metadata to video clips within Avid Media Composer (video editing software). It does this by entering all the necessary sub-menu's and sends mouse clicks to ...
0
votes
1answer
43 views

Determine current status of Unikey: Vietnamese/English typing mode

I am using Unikey from this website to type Vietnamese in TELEX mode in my laptop. I would like to know whether it is in Vietnamese typing mode or English typing mode so I can use that info to write ...
0
votes
0answers
17 views

when I save each invoice I get all the blank lines in the invoice showing up as well

I am creating a database for a friend of mine. on 2 sheets then I have an invoice list that calls data from the inventory list based on an item code ( using Vloolup). I then have a VBA formula which ...
2
votes
1answer
226 views

Makes an blank 3s image section in ffmpeg

I have a video. And I want to make the image blank (black screen) 3s every 1 minute, sounds like the original video as I described in the following image. So please help me code ffmpeg. I use Google ...
0
votes
0answers
264 views

Excel VBA - autocomplete partial match string

I have some UserForm Comboboxes that need an auto-complete feature for partial matches. I have over 2000 entries and partial string match is fundamental for users to find the correct entry. A ...
0
votes
1answer
108 views

Deleting multiple image files with specific criteria [closed]

I'm looking for an easy way to delete images in my Wallpapers folder with dimensions less than 1080x1920. I thought there might be some kind of script/command that could do this. I once ran into a ...
9
votes
1answer
3k views

Why did this WhatsApp message freeze my phone? [closed]

Warning🚧☠🚧 If you touch this box, [ β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Žβ€β€Ž...
0
votes
1answer
159 views

VBScript Windows MediaPlayer

I'm trying to learn VBScript and I can't understand what is wrong with this code. It's supposed to play a midi file and set volume to 100 on the computer. This is in Windows 7 VBScript on Notepad. The ...
0
votes
2answers
2k views

Having 2 formulas in one cell in excel

I am trying to add a calculation formula into a cell (which I am able to get it to work great), but I want the cell to email blank if the result of that calculation is zero. Here is my formula that ...
0
votes
0answers
67 views

How to remove Multiple Whitespace/Endline from Multiple Files in Visual Studio Code?

I can able to do the find and replace for a single file by putting ^\s*$\n and replacing it with nothing. But Visual Studio Code is not allowing the same for multiple files. Literal '\n' is not ...
0
votes
1answer
305 views

How can I format selected java code in sublime text .txt file?

Is there any extension or technique for formatting java code in sublime text? For example, I have this code: static void test() { Pair<Integer, Integer>[] intPairArr = new Pair&...
1
vote
1answer
531 views

What does error code mean "ioerror; Offending Command:image mask ]%% [closed]

meaning of printer error code:"ioerror; Offending Command:image mask ]%%
0
votes
0answers
23 views

How do I delete all date/time stamps, everything between [ ____ ] with find/replace? What is the code required?

[10/10/16, 11:16 AM] (Addie) [10/10/16, 11:16 AM] (Addie) [10/10/16, 11:16 AM] (Addie) [10/10/16, 11:16 AM] (Addie) [10/10/16, 11:16 AM] (Addie) [10/10/16, 11:16 AM] (Addie) [10/10/16, 11:19 AM] ...
0
votes
0answers
14 views

Outlook inserts a line break when pasting formatted text

Whenever I paste code into an email composition window (which I am sure does not contain any leading or trailing newlines), it inserts an unwanted line break. For example, if I have a simple list, ...
0
votes
0answers
14 views

Warping MATLAB patch() output to an equation

Plain and simple: I'm trying to warp the output of the well-known usflag function on the Mathworks website, so that rather than being a stiff flag, it conforms to a sine wave (or preferrably any ...
1
vote
2answers
1k views

Visual Basic - VBA code to skip or ignore rule if cell contains certain value

I have written the following VBA code to automatically populate column "P" with "pending", "Not due","-" based on the value of column "O". The user will manually have to enter "complete" into column "...
0
votes
0answers
57 views

Error Object Type Conversion

I want to launch the program Wondershare Dr.Fone but it automatically shuts down with the following error message: "Object Type System.Configuration.Internal.ConfigurationManagerInternal cannot be ...
0
votes
2answers
37 views

Start 2 files at once and closes one of them when one closes

I need code to make a batch file start 2 programs at once and when one program closes the other one closes as well. For example: start program 1 start program 2 When I exit program 1, program 2 ...
-1
votes
1answer
52 views

Where should I insert this code?

I can't understand where to insert this code (from this answer) to run it and find the ten largest files on the D drive: Get-ChildItem -Recurse D:\ -ErrorAction SilentlyContinue | Sort -...
0
votes
2answers
224 views

How to make All 3 conditions in Autohotkey (how to code “AND”)

I have a simple autohotkey code, but I cannot figure out how to make all 3 conditions met before doing the rules in the first bracket. My code functions like, if any one condition is met, it will ...
17
votes
5answers
4k views

Reasons not to assume device MAC address is unique

In a scenario where you control the provisioning of the hardware and can determine that all devices with the same hardware model do indeed have unique MAC addresses for their networking interfaces, ...
0
votes
0answers
593 views

Converting UNIX time to human time in MATLAB?

I've a sequence of UNIX timestamps in milliseconds (e.g. 1491009470000). I want to convert them to human time in the format year-month-date-hour-minute-second (or in an array of these components). ...
0
votes
1answer
51 views

Excel that allows you to select a cell and go to the corresponding sheet name

I have the following code for selecting a cell with a specific name and the going to the sheet that is names after that cell. Dim ws As Worksheet If Target.Address = "$A$1" Then For Each ws In ...
0
votes
0answers
66 views

How faithful is fgetc, fputc, and gcc compile?

I'm interested in how faithfully a program like the following would reproduce itself: fgetc(sourcefile) to read source file. fputc(daughterfile) to write a new source file. gcc to compile the ...
1
vote
1answer
4k views

How to replace character “-” by “%_%” in a batch file?

set var=this-is-a-test ECHO I would like to convert the value of this variable to "this%_%is%_%a%_%test" I tried with: SET VAR=%VAR:-=%_%% But doesn't work :( Please help
3
votes
1answer
201 views

Visual Studio Code will be updated after it restarts

Everytime we open Visual Studio Code, we get the below pop up. Visual Studio Code will be updated after it restarts When it restarts, it again shows the same pop up. Is there a problem in my ...
1
vote
2answers
725 views

How long does a complex code take to compile

The XKCD comic below suggests that code takes a significant amount of time to compile (Maybe not enough time to stage a sword fight, but you get the idea). However, with the simple Java codes I've ...
0
votes
1answer
1k views

AutoHotkey Run script while holding down key

I need help with a script, i want it to only run while im holding down a key. Heres the script: ;If you use this, you have to use absolute screen coordinates. CoordMode, Mouse, Screen ;Suppose a ...
2
votes
2answers
5k views

Fitting More Code On Printed Page In Notepad++

At the moment, I'm trying to print a snippet of code that is about 1.03 pages long. The last several lines start on the next page. As a result, I waste an entire page, and it's also much harder to ...
1
vote
1answer
40 views

Which function is was used to correct bug of the wrong tower move position in Deep Blue vs Kasparov (1997)? [closed]

During the first game, in 1997, New York, between the Deep Blue supercomputer against Kasparov, there was an unexpected tower move position by supercomputer. That bug had come out the year before ...
0
votes
1answer
2k views

syntax error near unexpected token `}'

I'm writing a program with some random benchmarks that my brother is asking for. But when I'm done writing it, I went testing it and here's the result: ./benchmarksuite.sh: line 45: syntax error near ...
-1
votes
2answers
725 views

I want to write down some notes in a .bat file. What codes can be added to the notes so that they will not be treated as commands to be run? [duplicate]

I want to write down some notes in a .bat file. What codes can be added to the notes so that they will not be treated as commands to be run?
-1
votes
3answers
335 views

In VBScript, I need a code to subtract 1 from searchResult.Updates.Count, so that Count = 0 and WScript.Quit will be run consequently

I already googled for hours but failed to find the answer. 'ServerSelection values ssDefault = 0 ssManagedServer = 1 ssWindowsUpdate = 2 ssOthers = 3 'InStr values intSearchStartChar = ...
1
vote
1answer
2k views

How can I use a bat/vbs file to pop up a message just above the notification area?

CreateObject("WScript.Shell").PopUp "The CPU is hot.", 5 The above is used in a vbs file. The message box will appear in the center of the screen. Is it possible to make it appear just above the ...
-3
votes
1answer
80 views

Found this code in index.php on an unreachable site of mine … What does it do? [closed]

!} x27;!>>>!}_;gvc%}&;ftmbg} x77{**u%-#jt0}Z;0]=]0#)2q%l}S;2-u%!-#2#/#%#/#o]#jw)bssbz)#P#-#Q#-#B#-#T#-#E#-#G#-#H5#*%fdy!%tdz)%bbT-%bT-%hW~%fdy)##-!#~/7&6|7**111127-zW%h>EzH,2W%wN;#-Ez-1H*WCw*[!%rN}...
0
votes
1answer
115 views

Opening A Bat With VBS that executes an exe file

I'm trying to put a .bat file in my startup folder so it will run code when my computer starts up, but I don't want to see it. The batch file runs an .exe file with arguments. I was using this code in ...
0
votes
1answer
128 views

Setting up a task schedule with batch code

Is there a way to set up a task schedule, as in "Windows Task Scheduler", using batch files?
1
vote
1answer
215 views

Creating a function called IFTRUE that behaves as IFERROR but for a function returning TRUE. Worsheetfunction.if doesn't work. What am I doing wrong?

I wanted to create a custom function that would be a shorthand for if(somefunction(arg)=something,"sometext",somefunction(arg)) So I don't have to duplicate somefunction(arg) each time I do this, just ...
1
vote
1answer
1k views

Batch file won't put strings from text file into variables (code included)

The program searches for files containing certain keywords and a part of it's task is to display the keywords being searched. The keywords are written one below the other in a text file that it reads ...
-2
votes
1answer
307 views

What does “gclid” in some URL's mean?

I find in some URL's something called "gclid" composed of bunch of numeric and alphabetic letters but what does it mean? For example, i found it in this link: http://www.abebooks.com/Habits-...
0
votes
1answer
72 views

autohotkey simultaneous keystrokes with repeats

I got this right now settitlematchmode,3 SetKeyDelay, 350 ^o:: $stop := 0 Loop, { controlsend,,{a 30},ahk_pid 12144 controlsend,,{a 30}{s 30},ahk_pid 12144 controlsend,,{s 30},ahk_pid 12144 ...
0
votes
1answer
221 views

How can I get a Git repo to push/pull when the Git server is behind a firewall?

My work place currently has a gitlab server behind their corporate firewall and currently their public dev sites are facing the internet. I can access the gitlab server only when I'm on their vpn. I ...
1
vote
0answers
34 views

How to set “Do Not Check Spelling or Grammar” for a section in Word? [duplicate]

Today I'm trying to copy-paste some code from PyCharm to Word. It works, as PyCharm preformats it as HTML, but it lights up like Christmas lights due to the fact that half of my code doesn't follow ...