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

Memory Management C# ref and out keyword [closed]

I've been working on this performance method where I'm passing parameters, and I'm not sure if I'm using ref and out right..Something just doesn't feel clean about how I'm handling these references. ...
KamoEllen's user avatar
0 votes
1 answer
41 views

mySql error #2014 - SET FOREIGN_KEY_CHECKS = ON; - Commands out of sync; you can't run this command now

I have read many posts on stackoverflow regarding this error, but could not find my answer. I have created this procedure on MySQL 8.0 Standard via phpMyAdmin on a shared server : DELIMITER // CREATE ...
Dominique Delcourt's user avatar
0 votes
0 answers
25 views

Luacov is not generating the xml output for Sonar

I am using luacov to generate the code-coverage. I am able to see the coverage.out and using luacov-html I am able to get the index.html file as well. But when I tried to post the report to Sonar, it ...
Suchita's user avatar
  • 850
0 votes
1 answer
36 views

Add out_channel to pretrained model

I have trained a model fish.pth with 2 channels (fish and background). I want to add a layer so that I train a new model spine.pth which segments 3 classes fish, spine and background. Yes, I can do it ...
Erlend's user avatar
  • 1
0 votes
1 answer
53 views

How is the out keyword able to assign back to a pointer?

The original snippet is easy to understand: ref var l = ref Output22[0][i]; ref var r = ref Output22[1][i]; SpuReverb.Process(ref Reverb, l, r, out l, out r); However, this using & also works: ...
aybe's user avatar
  • 16.6k
0 votes
0 answers
16 views

Regexp_extract in Hive

I am trying to parse out the words within a string and trying to use regexp. I am open to using any functions or logic that will work. Example: in one of the columns i have: Variable1 =‘Y’ and ...
Vidya Tangudu's user avatar
0 votes
0 answers
73 views

How to zoom out on a mobile phone

I have a web page with a table and div that have fixed sizes. width="1200px" for example. The menu adapts well on mobile with the @media value css. Cordialy If I look at the page on a PC ...
Jerome Tortue's user avatar
0 votes
0 answers
110 views

Unity Built-in shader, cutout + transparent

Is it possible to have a shader which uses both, cutout and transparency? I need a classic built-in shader that uses cutout. But I also need the "full-opaque" parts to be transparently ...
WILEz's user avatar
  • 21
0 votes
3 answers
131 views

Evaluate the result of a method and get its value, if true, without calling it again

I'm using ZWCad APIs and .NET, C# I need to evaluate if two segments intersect. There is a method that does this and returns an array of points. So I'm evaluating if this method returns null. If it ...
solidWorking's user avatar
0 votes
0 answers
43 views

issue: Not able to generate grpc.pb.h and grpc.pb.cc files

tried below command: C:\UAproto\Source\OSS\grpc\tools>protoc -I=C:/UAproto/Source/Self/Auth/proto/ --grpc_out=C:/UAproto/Source/Self/Auth/Common/ --plugin=protoc-gen-grpc=`C:/UAproto/Source/OSS/...
Swati Sharma's user avatar
-2 votes
1 answer
63 views

Passing on an out parameter [duplicate]

Is there a way to pass on an out parameter? I want the out parameter to not be set in the function itself, but to be set in a function I call. I'm unsure if I just got the syntax wrong. Here is what I ...
Daniel Bauer's user avatar
0 votes
1 answer
916 views

Dynamic pages are not available in nextjs app when i build the app for server upload

i made an webpage using nextjs (version 13.4.19) app in which i used dynamic routing. It is working fine in local but when i build the app it is not creating dynamic pages. I am sharing folder ...
Nakeeb Raut's user avatar
1 vote
1 answer
74 views

Default values for out parameters

Take this function: public void GetOutlineDateAndMediaClassification(string talksdatabase, int talknumber, out DateTime date, out bool hasMedia) { date = new DateTime(1900, 1, 1); hasMedia = ...
Andrew Truckle's user avatar
3 votes
2 answers
83 views

Null-coalescing out parameter doesnt give error

This question describes a error related to using Null-coalescing, Null-conditional and out parameter: Null-coalescing out parameter gives unexpected warning The answer details the reasons for this ...
Eugene Pavlyuk's user avatar
0 votes
1 answer
989 views

How to setup method out parameter to return mock in c#

I have service mock, which calls method, where one of parameters is out parameter. How is it possible to out mocked object as this parameter, because I need to set up this mock further. var ...
Kirill Topchy's user avatar
0 votes
2 answers
541 views

Can Golang (Win11) send messages to a TinyGo USB HID device (Badger2040)

Note: The following may be impossible - I can't find whether or not in the USB spec. I am currently using a Badger2040 as a keyboard - using USB HID from TinyGo - which works fine. I can also (which I ...
AndyS's user avatar
  • 796
1 vote
1 answer
271 views

How can i edit a txt file without deleting the content in c++?

I want to create a database in a txt file and access it and edit certain parts of it using seekp(), but when I open the file to write in it , the program creates a new file deleting the previous one. ...
KraKen Wtf's user avatar
0 votes
1 answer
329 views

How can I update a reference returned from TryGetValue after its been inserted into a collection?

I have a dictionary inside a dictionary. I'd like to set a reference to the inner dictionary to a value after I'd added it to the outer dictionary as such: var mammalIdSubscribers = new Dictionary<...
Tea's user avatar
  • 190
0 votes
0 answers
21 views

In MongoDB how to query an embeded array which has same key name

{ '_id': 103, 'name': 'Fleta Duplantis', 'scores': [ {'score': 84.37799696030743, 'type': 'exam'}, {'score': 15.95792143439528, 'type': 'quiz'}, {'score': 77....
Venkatesh Kumar's user avatar
1 vote
1 answer
111 views

How to add string in front of every character?

I tried this but I can't. I want to add "pp" string in front of every character of input. x=str(input("give me the characters")) print("pp"+x[0]+"pp"+x[1]+"...
Nithin Monu's user avatar
4 votes
3 answers
974 views

Value tuples exist, so why use the "out" parameter modifier? [closed]

Microsoft's documentation for the out parameter modifier points out the following: Declaring a method with out arguments is a classic workaround to return multiple values. Consider value tuples for ...
J. Mini's user avatar
  • 1,590
0 votes
0 answers
192 views

Win32Exception: The wait operation timed out

When I make a backup using C# and SQL Server it gives this error System.Data.SqlClient.SqlException: 'Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or ...
mohammad esawe's user avatar
0 votes
0 answers
51 views

Check50 failing my recover code on time out while waiting for program to exit fault

I have been on this problem all day but I cannot seem to discover what is wrong with my code and why it won't pass on check 50. If I try to make changes I would get a segmentation fault and I cannot ...
Leonard Offor's user avatar
0 votes
2 answers
76 views

How to pass a variable into a function and return it modified?

I've been learning c# for about three weeks now so please bear with me. I got through some online courses with no problem but I've come upon what I think is a very basic, but very real barrier to my ...
cry_wifi's user avatar
0 votes
0 answers
64 views

How do I pass an "out int" parameter in BizTalk orchestration?

I have a method written in C#: public static void MyMethod(string myString, out int myInteger) ... In BizTalk orchestration I am declaring one variable as an int32 and setting it to "0". ...
navi's user avatar
  • 21
1 vote
1 answer
88 views

How does the out parameter work internally?

class fff { public static void jjj(out int j) { j = 88; } } //Main method int jfjf; fff.jjj(out jfjf); In my main method I declare the jfjf variable which is not initialized in the ...
Jason9789's user avatar
  • 285
0 votes
3 answers
108 views

Like Statement to exclude some in the sequence

I need to run a like statement for 300 criteria and it looks like this; how do i write a like statement excluding 112, 115, 116 ,117?
Bernard Sollano's user avatar
0 votes
1 answer
497 views

How to keep the changes made to a parameter?

I have a function that, under certain conditions, adds an object to a list. void Func(out List<Move> moves, Move move) { if (conditions) moves.Add(move); return; } I thought that ...
Elia Giaccardi Old's user avatar
-4 votes
1 answer
259 views

Reference type function argument does not retain changes after function try catch block [closed]

Code below. I completely understand reference vs value types. [correction, I do not completely understand reference vs value types.] Today I ran into something odd. I declare a datatable class var ...
ILoveSQL's user avatar
1 vote
2 answers
983 views

bash : cat commands output only if it success

I'm trying to redirect a command's output in a file only if the command has been successful because I don't want it to erase its content when it fails. (command is reading the file as input) I'm ...
Lommoez's user avatar
  • 13
0 votes
1 answer
294 views

C# difference between ref and complex object as parameter

I'm curious what happens if I do not use the ref declaration for a parameter, instead pass the object it self and manipulate it within the function. E.g: public void DoStuff(DataPackage context) { ...
Felix Arnold's user avatar
2 votes
1 answer
411 views

Subscript out of range with copy a range in one workbook to another workbook

I have a range of data in a workbook that I would like to copy to the active workbook. The code looks simple, but I am getting a subscript out of range error when I run the code. What am I doing ...
mfgriggs's user avatar
-1 votes
1 answer
64 views

How to get value in the current method from external void async method in C#? [closed]

I have method e.g. public async Task<int> AddUser() { //some logic await _externalClass.DoSomething(); //some logic } And I want to get value from method await _externalClass....
dimitri's user avatar
  • 139
-1 votes
1 answer
91 views

Filtering out by multiple criteria in R

I'm trying to create a separate df in R by filtering out observations based on specific criteria, but when using filter function from diplyr I only manage to create a df based on that criteria. Can ...
learnct's user avatar
  • 23
0 votes
3 answers
1k views

Why ref keyword needs to be initialized and out keyword needn't to be initialized before it is it passed?

Below are the MSDN reference links for the Out keyword and the Ref keyword. Out Keyword Ref Keyword Both Ref and Out keywords are pass by reference, then why it is required for one to be initialized ...
Nikhil's user avatar
  • 379
3 votes
1 answer
1k views

I don't understand why I'm getting the CS8347 error while trying to make an extension method

I was trying to create a simple extension method wrapper around CollectionsMarshal.GetValueRefOrAddDefault(..) and I ran into a problem I don't quite understand. This code works: public static ref ...
Petrusion's user avatar
  • 1,153
0 votes
1 answer
5k views

Selenium Python timed out receiving message from renderer error

I want to add the plugin called metamask to my browser and check the amount of etherium in my wallet. But when I add the plugin, sometimes I get this error and sometimes I don't: selenium.common....
Emrovsky Emrovsky's user avatar
0 votes
1 answer
154 views

changing value of variable on another scope with method in C#

I have came across strange method called "Recieve()" in .NET.Sockets .Recieve() method changes buff variable without using ref or out. Can somebody explain to me pls. Full Code: ...
Ceremony05's user avatar
-1 votes
3 answers
2k views

Getting an error "string index out of range" in python

I was creating a code to encode an input word.Letters in the input text is converted to a number and stored in a list.Here is the code I used, z=input("input the word:") x= z.strip() y= -1 g=...
user avatar
-2 votes
1 answer
400 views

keep getting 'list index out of range' while list is existing in python

I am trying to give the last element of at @2@ into <last_animal>, then use it to set the if condition. But it only brings me 'list out of index' message. Just in case, I tried to use a deep ...
user16115999's user avatar
0 votes
2 answers
3k views

Multiple return variables - which has best performance (out, tuple, class)?

A method that returns multiple doubles can be realized in various ways: Through out parameters: class MyClass { static double Add3(double x, out double xp1, out double xp2) { xp1 = x + ...
Amos Egel's user avatar
  • 1,186
0 votes
1 answer
153 views

C# Array of out params [duplicate]

I have tried to decrease the complexity of an customized ORM, therefore I'm trying to do something like this: Mi problem is that I need to implement an out params Model[] variable something like this, ...
Fabio Andrés's user avatar
1 vote
1 answer
101 views

How do I fix the "Index out of range" error in Python?

I am trying to create a record from a list of 6 items. The error tells me that rec[1] is out of range. pay = open("paymast.txt","r") sal = open("saltyp.txt","w")...
Thobekani Kubeka's user avatar
1 vote
4 answers
121 views

Using procedure class-wide out argument as function return value

type T is abstract tagged null record; type T1 is new T with null record; procedure Get_Value (Value : out T'Class) is T1_Value : T1 := (null record); begin Value := T'Class (...
user avatar
1 vote
1 answer
1k views

Saving output from "If statement" c#

I have a conditional as such: List<HWSRunSession> session = new List<HWSRunSession>(); foreach (var item in fileInfo) { if(_db.HWSRunSessions.Where((x) => x.TransferredZipName == ...
Mr.Gomer's user avatar
  • 641
0 votes
1 answer
3k views

If-else statement logic with function out parameter [closed]

I am working inside a loop to test if an external connection exists. If the connection does exist, then I want to operate on it, pulling back information. If it doesn't, then I want to open the ...
jam's user avatar
  • 33
3 votes
1 answer
2k views

Google Colab - Completed but still running?

I have a large dataset (that I am trying to run. The cell has not generated an output; however, it currently says 'completed at [time]'. The cell still appears to be running and the is a message ...
ConnXu's user avatar
  • 31
0 votes
3 answers
872 views

The out parameter does not work in C#. Why?

The out parameter does not work in C#. Why? Here is my code: using System; using System.Collections.Generic; public class Program { public static void Main() { var ...
some1 here's user avatar
  • 1,026
0 votes
0 answers
53 views

Assigning initial value when using the out key word c#

static void Main (string [] args) { int myNum; Double (out myNum); } static void Double (out int myInt) { myInt=10; //need to assign a initial value here myInt*=2; } In the above case I will ...
Jackie Ma's user avatar
0 votes
1 answer
576 views

How to do an out on multiple variables in a dictionary?

I would like to do an out on multiple variables from a dictionary as in the following example: string color; int number; float numval; Dictionary<string, (string, int, float)> Property = new ...
Nishijima Matsubara's user avatar

1
2 3 4 5
13