Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author | user:1234 user:me (yours) |
| Score | score:3 (3+) score:0 (none) |
| Answers | answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections | title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status | closed:yes duplicate:no migrated:no wiki:no |
| Types | is:question is:answer |
| Exclude | -[tag] -apples |
| For more details on advanced search visit our help page | |
Results for this code
Search options questions only not deleted
2 votes
1 answer
172 views
Would this code cause memoryleaks?
Does this code cause memoryleaks? If so, where/how/why? …
0 votes
3 answers
235 views
Shorten This Code with... blocks?
I think this code cannot be shortened much, especially because I only consider two cases. But maybe there's a language construct that I don't know that would help. … Edit: The code could look like this, which helps. …
-2 votes
1 answer
86 views
How I can generalise this code [closed]
I have this code and I want to generalize it and make it efficient. Each time I generate a number of random variables and I put it in the m equation to generate m. … Can I get any help to simplify this code till m[20] ? …
5 votes
2 answers
1k views
Is this code thread-safe?
EDIT: The full source code in question can be found here. Is this code reasonably safe against dead/livelocks, and if not, how can I fix it? … I know processes are usually recommended over threads for operations like this, but processing's version of queue doesn't do what I need. …
1 vote
2 answers
711 views
Will this code block in node.js [closed]
Can anyone tell me if this code will block other users? I am using node with express.js and mongojs. I know I am saving passwords in plaintext.. This will be changed. …
-1 votes
1 answer
146 views
I need help to simplify this code [closed]
I have a code like this but the problem is that is very inefficient (2000 lines) and I don't know how to make it simple, I have this code too when the RacePosition variable is 1, 2, 19, 20. … of me EDIT: Now i managed to make classes of the drivers but what I need is to make this code simple if (App.RacePosition > 2 && App.RacePosition < 19) { if (App.VANPosition == App.RacePosition …
1 vote
3 answers
53 views
Is it possible to condense this code?
Is there a way to condense this code? It seems redundant to have three function calls which do the same thing except the value is different for each. …
3 votes
2 answers
169 views
Building a list - why is this code inefficient?
I'm attempting this code challenge. … I've played around with benchmarking and it looks like the slowest part of the code is this line: permutations.each {|p| result << p.sort.join} Can I speed this code up somehow? …
-4 votes
1 answer
583 views
Python - Performance of this code very slow [closed]
This is an excerpt of my html code <div class="row"> <div class="col-md-3"> <div class="left_menu"> <! … The code above takes about 8 minutes to extract the required data on my high-end laptop. How can I improve this code so that it can run faster? …
0 votes
1 answer
90 views
Optimize this code of adapter's overriden method getItemCount() [closed]
How can I optimize this code of adapter's overriden method getItemCount() into simpler form? @Override public int getItemCount() { return super.getItemCount() == 0 && data != null ? …
-2 votes
2 answers
311 views
Can I improve this code using delegates?
Sorry if the code is a mess. I'm a beginner and am still learning. For that reason, I need a little of help to improve this code. It's not finished. I'm creating a Math quiz system. …
-1 votes
1 answer
66 views
Is it possible to make easier this code? [closed]
This code works, but it is very difficult to maintain. What should be changed in order to make this easier? Thanks for answers! $adSpaceCorrect = ! …
0 votes
1 answer
62 views
How to make this code follow Solid Principle C# [closed]
Currently I have this code: private async Task<(List<SomeModel> data1, List<string> data2)> ProcessFileAsync(IEnumerable<FileInfo> filesInDirectory) { var data1 = new List<SomeModel … Is there a way to make this code Solid. …
2 votes
3 answers
470 views
What is the security issue in this code?
I was asked how this code has a security risk. Does anyone have any ideas what it is? I am new on the security topic and don't know what to look for. …
3 votes
3 answers
317 views
Pinging the user requested host - is this code insecure?
> This code is pinging the user requested host. Is this code insecure because I am using the passthru() function? … Is there way for the user to access my terminal with this? …