Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
110 views

Windows 11 Power shell I'm trying to run the following IF statement in power shell - basically to check if a file exists on encrypted drive P, if it doesn't then create the encrypted drive. I get an ...
Cholokom's user avatar
3 votes
1 answer
114 views

I am an occasional casual programmer (for about 60 years now!). I wrote 2 functional SNMP PowerShell desktop shortcut scripts 4 years ago. Now I am writing two scripts for my old Windows 10 system: ...
Webtest's user avatar
  • 53
2 votes
3 answers
150 views

I have a tool for editing the VersionInfo portion of our executables so that we can tie all of the different components to one installer part number. The tool I am using is resourcehacker (https://www....
Somin's user avatar
  • 23
4 votes
2 answers
142 views

I know how to instantiate object in PowerShell but I am struggling to find out if its possible to instantiate an object and set one of its properties in the same command. The following commands work ...
Peter M.'s user avatar
  • 948
1 vote
2 answers
125 views

In order to view/edit Doxygen files, I am using (define-derived-mode dox-mode html-mode "dox" "Major mode for Doxygen." ) (add-to-list 'auto-mode-alist '("\\.dox\\'&...
emacs drives me nuts's user avatar
0 votes
1 answer
73 views

Very new to VBA for excel. I'm trying to put values from one sheet into another sheet. I've scoured the internet for solutions, and nothing has worked. Every time I get a 1004 Error: Application-...
SongBird's user avatar
4 votes
1 answer
87 views

Using Windows PowerShell terminal for running a PS script. I need to do (among the rest) some json file parsing. I ended up in a strange situation, here below posting a minimal example: Json file: { ...
Giacomo Pirinoli's user avatar
0 votes
1 answer
99 views

Could anyone explain this syntax of XAML? <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://...
tutuna faltu's user avatar
1 vote
1 answer
86 views

There's a sql batch script that mostly consists of truncate copy and insert instructions. Script is tended to be executed as psql -f ./script.sql After the tables being moved to specific schema trying ...
404's user avatar
  • 533
0 votes
0 answers
34 views

In Python, when we use split(), the syntax looks like this: list_result = string.split(separator) But when we use join(), it's written like this: string_result = separator.join(list_of_strings) Why is ...
Sarvani's user avatar
  • 19
4 votes
4 answers
199 views

I recently tried to use the <<- operator for heredocs in bash to keep indentation in my bash functions: cat <<- EOF Hello World EOF However it turns out this only strips literal tab ...
glades's user avatar
  • 5,356
1 vote
3 answers
140 views

Trying to figure out the syntax in a batch file subroutine so it could be reused with a passed parameter. Main portion of batch file... Set PC=THISISATEST Call :ToLowerCase Subroutine... :ToLowerCase ...
user3208239's user avatar
2 votes
1 answer
82 views

I saw this code snippet on the React dev page (https://react.dev/reference/react/memo#updating-a-memoized-component-using-state): export default function MyApp() { const [name, setName] = useState(''...
matronator's user avatar
-1 votes
1 answer
103 views

I have a function which takes a template template parameter, e.g.: template <template <typename K, typename V> typename Map> void foo(); I want to specify a default value for Map; namely, ...
einpoklum's user avatar
  • 137k
6 votes
2 answers
199 views

I have a user-defined class Person and I want to create a variable-sized array (size taken at runtime) of Person pointers. The following code works as expected. Person **arr = new Person* [size]; ...
Newton's in-law's user avatar
2 votes
2 answers
101 views

I am trying to create my own Powershell prompt in $profile. For now, i have the following : $ESC = [char]27 $RESET = "$ESC[0m" $pwd = $executionContext.SessionState.Path.CurrentLocation ...
Goulven's user avatar
  • 133
0 votes
0 answers
26 views

New to mips, so some of the text or formatting is from the professors instructions. Trying to translate the following C-Code into Mips Assembly language using Qtspim and Notepad a=0 for(i=0;i<10;i++...
unit5016's user avatar
1 vote
1 answer
97 views

I'm working on a UML diagram using PlantUML to represent a simple ordering system. I’ve written the code, but I’m not sure if it's fully accurate. What can I improve or correct? Diagram produced by ...
Chris Jhon Cobrador's user avatar
-4 votes
3 answers
117 views

I wonder why C++ is designed to insist on the iterator syntax? Why is it not possible to ommit the begin() iterator in some contexts? For example: std::copy(v.begin() + 1, v.begin() + 3, w.begin() + 6)...
Matyas's user avatar
  • 655
1 vote
1 answer
267 views

How can I add a new line on a string in ABAP on Eclipse? This is my code below and I just want to put a newline after the first line so my code will not be redundant: OUT->write( |Firstname: { ...
darth-coder's user avatar
2 votes
2 answers
101 views

I'm looking at writing a C++ syntax file, in which I hope to be able to highlight some blocks and constructs. One thing I want to highlight is an if block. I've figured out how to highlight the whole ...
centauri's user avatar
0 votes
1 answer
35 views

I'm writing a VSCode extension to add syntax highlighting to .gabc files. I would like to match GABC and NABC sections within the code (so I can apply different patterns for each section), as follows: ...
Laércio de Sousa's user avatar
-1 votes
2 answers
218 views

Here is the error in GCC (which i have already fixed): ISO C++ forbid taking the address of a bound member function to form a pointer to member function This is the error line of my code: threads[i] ...
stirner's user avatar
3 votes
1 answer
97 views

In Rust, is there difference between <Type>::method() and Type::method()? Any easy way to see the differences? For example, this rocket swagger code uses <String>::responses(...).
김종현's user avatar
0 votes
2 answers
59 views

Is auto a valid value for the HTML attributes height and width ? Please provide a reputable source. I was unable to find a reputable source saying yes or no (i.e. specifically settling this issue one ...
summerrain's user avatar

1
2 3 4 5
433