« first day (1349 days earlier)      last day (2684 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
RELOAD! There are 3289 unanswered questions (91.9462% answered)
 
12:16 AM
0
Q: Simple tapping game in SpriteKit

FluidityI wrote this as an answer for someone in SO. After writing it I realized it looked pretty good, and was wondering if anyone else thought so as well--or if there were any general improvements to readability / structure available that I'm missing. Thanks! import SpriteKit // Give us some functio...

0
Q: Passing a custom parameter through a logger

DanielGibbsI have a custom logger which logs all messages at WARNING level and above to a Slack channel. Certain error messages occur so frequently that they make it hard to see actual errors in the channel, so I would like to be able to disable Slack logging for a specific message, using something like log...

 
12:37 AM
Better visit CodeReview regarding that. — Allen Binuya 13 secs ago
 
1:24 AM
Pool checkers seems to be working.
I've had a sporadic crash when promoting to a king through a jump.
 
Good job ;)
 
1:40 AM
Now I have to clean my UI up.
And post my F# stuff for a review again.
 
2:12 AM
-1
Q: F# programming serious issue

K XI have to develop a program and I am confused. Can anyone help me?? Problem: Given an input file find all valid anagrams of the individual words within that le. All words provided as input should also count the amount of valid anagrams found for them and output this amount to the user. Finally th...

 
possible answer invalidation by rnso on question by rnso: codereview.stackexchange.com/posts/151749/revisions
 
2:25 AM
possible answer invalidation by rnso on question by rnso: codereview.stackexchange.com/posts/151749/revisions
 
@EBrown What do you think about this use of dynamic ? I haven't really used it all that much, so I wonder if I'm missing something.
 
2:53 AM
Anyone interesting in JS / ES6 I found a free/open source book on Github: Understanding ECMAScript 6
 
 
2 hours later…
4:43 AM
@denis Will look in an hour or so. At work right now.
 
I will probably go to bed in a few minutes but tag me on your comment and I will check it out tomorrow ! :)
 
@denis Wilco. I'll let you know. :)
 
I nailed down the elusive Pool Checkers crash.
I fixed it too.
 
0
Q: Kotlin Data Class Wildcard

CAD97I'm writing a small custom DSL and interpreter as an exercise in understanding how the language stack (lexer/parser/(interpreter/compiler)) works. Because I want to be able to report the location of semantic errors, the AST needs to retain information about where the elements were in the source. ...

 
Still got some ugly injection code to clean up.
I pity myself for my Senior Project class.
The only programming experience two of the 4 members have had is the website design class and the Intro to Programming (JAVA, where we never used more than one class at a time).
One of the members hasn't responded to the emails at all.
I think I'll stop playing checkers and start setting up the website.
Or maybe I should wait and see if they all agree to use C#.
 
5:01 AM
Night !
 
I'm out too. Sleep tight, and don't let the bed computer bugs bite.
 
0
Q: Local Json file parsing in android

SunnyI have a set of json files kept in sd-card which are downloaded from the server(around 40 json files). I have to parse it and insert it to the sqlite db. My concern is about using the method for parsing json files. The two methods in my mind are given below. Using built in JsonObject and JsonAr...

 
5:30 AM
0
Q: simple function gone wrong

user1919249Please critique to help me learn: int MyClass::getNextInt(int* number) { *number++; if (*number > 3)*number = 1; return *number; } I want a function that will increment an external number by one, when it goes over than 3, then reset it to 1. essentially when I repeatedly call this...

 
Monking
 
Monking
@DainIIIronfoot Sounds like 2/4 may not even know what C# is
Curious what kind of project/website you are needing to make
If there's not much need for server-side besides serving pages it may be simpler to just use HTML / CSS and what little JS you may need
 
5:47 AM
Since this is working code that you want a review of, you'll have better luck over at Code Review - However, please spend a little bit of time properly formatting your code and post before doing so. — Rob 28 secs ago
Yes, Code Review is a better place to ask. Make sure you include the code that calls the stored procedure, otherwise they will not be able to provide an answer (and the question might get closed). — Alexei 5 secs ago
 
@denis Can't look tonight. My f...ing power is out again. Worthless electric company.
 
6:00 AM
possible answer invalidation by 200_success on question by eLobato: codereview.stackexchange.com/posts/6537/revisions
I'm voting to close this question as off-topic because it belongs to Code Review stackexchange. — Tolga Evcimen 48 secs ago
 
6:27 AM
Well, power is back.
 
May the power be with you
 
Fortunately I have 0 data loss from it.
 
6:51 AM
Off-site servers ❤️
 
Monking
 
Monking
 
0
Q: Password generator in Django

digitaladdictionsI am a system admin not a developer so this might be pretty horrible code. This is a password generator. The point of the attempt was to become more familiar with Django at a lower level. I current host Django sites other developers write and sometimes it would help to have a better understandi...

 
its my source code review please — Muralikrishna Ch 23 secs ago
 
7:32 AM
0
Q: data structure for square, line and border

Lin MaWorking on below problem and major ideas from me is, Using a enum to represent if a cell in a square has left, right, top and bottom border, and initial square with 4 borders; For each horizontal line, the cell above the line has bottom border, and the cell under the line top border; For each v...

 
7:48 AM
@denis @Mat'sMug @DainIIIronfoot @t3chb0t I made magic.
 
@EBrown a real magician :-)
 
I made a numeric type that you can pass any type of number to. ;)
 
I didn't read the question at all, there was too much magic and I'm out of mana ;-]
 
The answer is pretty nifty, you might want to read that. :)
 
1
Q: Open and read a large number of files from folder

user128021Is this the fastest way to open a large number of files and read their contents? (The folder may contain lakhs of files.) using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Security; using System.Threading; using System.Threading.Tasks; using...

0
Q: Ruby hash performance

Viktor DanilovI saw one programmer was using such code (I will generalize): def some_method(data) result = {} data.map do |d| # some code result[d] = value end result end While I prefer to do this: def some_method(data) Hash.new {|hash, key| hash[key] = []} do |hash| data.map do |d|...

 
7:54 AM
@EBrown yep, I know the trick ;-) I use it for a color structure to save the ARGB values in a common variable with components as field-offsets
 
Yeah, I think it's a useful hack around the restraints of .NET.
I wish there were an INumber interface that all the numeric types implemented. It only needs +/-/*//.
 
this would be a real relief especially when using generics
 
Yep.
public class SomeGenericType<T>
    where T : INumeric
That has a lot of use-cases I'm sure.
 
Answering questions about I wrote a calculator would be so much easier
 
Yeah...lol
GAH
My nose is bleeding
Blech
 
7:59 AM
oh
did someone punch --> @EBrown ?
 
@t3chb0t No I messed it earlier today and it's randomly bleeding.
Two more answers for the silver badge!
0
Q: Consuming a generic notification service

EldhoThis is second part of a question Please read this for getting full info. Here i'm trying to consume a Notification service available in the previous question from a Asp.net web-Api. public class HomeController : Controller { INotificationService notifcaitonService; public HomeControl...

> @t3chb0t

Please help with your thoughts.
 
@EBrown should I charge him for this question?
lol
 
I mean that's up to you. Lol
 
he'll need to wait, I'm answering another one
 
I'll answer my last two for the badge later today when you and @Heslacher aren't on. ;)
 
8:05 AM
;-) I have work to do..so feel free to answer as much as you need/want
 
haha,
 
0
Q: Consuming a generic notification service

EldhoThis is second part of a question Please read this for getting full info. Here i'm trying to consume a Notification service available in the previous question from a Asp.net web-Api. public class HomeController : Controller { INotificationService notifcaitonService; public HomeControl...

 
I've just arrived at the office so I need to work on some questions first, @EBrown my bed time is in about 13h :-]
 
Hah, mine is right about now.
I go back to work in 13 hours...lmao
 
8:20 AM
Monking ^_^
 
8:40 AM
0
Q: Codewars Challenge Kata

Cesar PerezI was recently doing a challenge on Codewars and this is what challenge said: There are no explanations. You have to create the code that gives the following results: oneTwoThree(0) ---> ['0', '0'] oneTwoThree(1) ---> ['1', '1'] oneTwoThree(3) ---> ['3', '111'] oneTwoThree(19) ---> ['991', '111...

 
8:59 AM
@Dex'ter Monk*
 
@Phrancis 'zzup ?
 
@Dex'ter Not much, just using a timezone-friendly wildcard :)
 
Kaz
Monking @all
 
Oi
 
Kaz
@skiwi For the time being.
 
9:11 AM
This is largely personal but I would fail this in a code review: it's not necessary enough. But you do set this out well, plus one. — Bathsheba 57 secs ago
 
Kaz
There. Beautiful.
 
Where was I ? :(
3
 
> Is it wise to use GOTO in general?
No.
 
@Phrancis But there are some cases... When, for example, you have to GOTO the programmer who used it and stab him with a dabber in his throat ...
7
 
LOL
 
9:21 AM
Have you specify the path in the Code Review Check-in policy as I mentioned? Is it working for you? — Cece - MSFT 53 secs ago
 
9:45 AM
0
Q: Remove all nodes that satisfy a condition from a binary tree

jxhAssume a binary tree with a data structure like this: typedef struct binary_node BINARY_NODE; #define BINARY_NODE BINARY_NODE struct binary_node { BINARY_NODE *next[2]; /* 0 -> left */ }; Assume insertions maintain a relevant order, but there is no balancing criteria. removeBinaryNode() ...

 
if (tired) {
  print("TTGTB");
  goto bed;
}
bed:
  sleep();
  // TODO wake up
 
Kaz
I hadn't heard about this yet
471
Q: A Post-Mortem on the Recent Developer Story Information Leak

Tim Post We'd first like to take a moment to thank everyone for their patience while we put this together. Your restraint was a very big help in us handling this incident with the degree of diligence that all of you deserve; thank you for waiting so patiently as we worked to resolve it. tl;dr: On 20...

 
There is codereview.stackexchange.com for such a questions. Please, ask it there! — Serghey Bishyr 30 secs ago
 
0
Q: Use gulp-twig compiling in local preview

SqnkovI am migrating a large project to Gulp, since I was using Prepros in the beginning for no obvious reason. Everything was running smoothly until I turned to gulp-twig for local preview. I simply can't get it to work. As I followed this tutorial , I need it to compile my template files for preview...

 
10:05 AM
Although this an interesting question and code, it does not fit here, but rather belongs to codereview - codereview.stackexchange.comNikolas Rieble 13 secs ago
 
10:40 AM
0
Q: Configure UI according to input

Yakiv KovalskyCan be this snippet improved? @IBAction func inputTextFieldEditingChanged(sender: UITextField) { var isValidEmail = false var isValidPassword = false if let email = emailTextField.text where email.isValidEmail() { isValidEmail = true } if let password = passwordText...

 
@Kaz Neither had I.
 
Unfortunately, Stack Overflow is not a code review site where you ask what's wrong with your code, which makes your code off topic. You are supposed to debug your code yourself. — Your Common Sense 51 secs ago
 
1
Q: table for scattergories

Sela12Scattergories program This is a simple table, I wrote it with the purpos of scattergories. I would like to know how to make in more efficent because I'm sure it's really bulcky... Sorry for bad english. Code: #include<iostream> #include<string> using std::cout; using std::cin; using std::stri...

 
Kaz
I think I'll leave that up over the weekend.
 
11:23 AM
0
Q: Is this the best way to process large number of files in a folder

vikkI have a folder which contains lakhs of files.I need to write a c# code that will open and read and display the content of it.I have written the following code.Is this an efficient code or should something be channged.Please help.Thank you. using System; using System.Collections.Generic; usi...

 
11:35 AM
0
Q: Assignement on reading from stdin in C

DrTyrsaI am an experienced Python developer learning C. I solved this assignement: Write a program that reads a word and some sentences from stdin. The word is separated by space from a sentences. The sentences are separated by one of the following characters: .!?. Words in sentences are separated b...

 
@Kaz I didn't know about this either
Thinking about Riding my Motorcycle to work today
supposed to be like 65 (F) here
 
-2
Q: what's wrong with this code?

saeidi wrote a simple calculator program but every time i execute that i got wrong answer. everytime i run program i get this result: "oops!". i know there is a simple mistake in code but i can't find that because compiler give me no error. #include <iostream> // get a double value from user double...

 
Kaz
@Malachi We're supposed to get snow later. We never get snow down here.
 
12:00 PM
Monking
No, it's not time for the train yet
 
1
Q: Simple C++ object pool

amc176I am studying Computer Science and just for the sake of practise I thought of implementing an Object Pool. This is my first implementation, it is simple and works correctly, but I would love any thoughts on it. Currently the memory is allocated on the stack, but I am thinking of using Policy bas...

 
Monking
 
Kaz
Monking
 
Looking at the HNQ equals 10 tabs opened
 
Kaz
12:18 PM
@skiwi Maybe you should try implementing FIFO for a change ^^
 
0
Q: How to deal with explicit polynomial formula in C?

thank_youAbout half year ago, I derived a integral of a piecewise polynomial, which was a complex formula. Below is one of that formula: Obviously, the above formula has relationship with four varibles \$u_i,\cdots u_{i+3}\$. In the begining, I implement it in Wolfram Mathematica with the help of Comp...

0
Q: Entity Framework Lambda OrderBy Boolean query

Tim B JamesI have a bit of EF Lambda code which returns a list of data from the db table, then orders by a field called IsDefault At first, the code was var listOfData = Db .TableName .Where(u => u.UserId == userId) .OrderBy(u => u.IsDefault) .ToList(); Which when writing down, sounds co...

0
Q: Encounter problem in Abstraction program

ArpitCODE OF MAIN PROGRAM- //To make a program to demonstrate various string operations in java import java.util.Scanner; public class StringManipulation { Scanner in = new Scanner(System.in); String input,concat,output,input1; int i=0,c,a=0,jumbleme=0; char ch; public void accept() { System.out...

 
@Kaz I'm using a double-ended-queue
2
 
12:39 PM
@Kaz where do you live?
 
Hint: on Earth
 
I bet you he lives on the ISS
 
Kaz
Not-Quite-But-Still-Kinda-North-London
We're the first train stop outside of the oyster card zone.
 
1:09 PM
Monking
 
Kaz
Monking
 
1:29 PM
0
Q: Refactoring code to avoid breaking line because of 80 characters rule

Amanda Ferrari:) Currently i'm trying to redo this code to avoid the breaking line because of the 80 characters rule: def decompress_all(directory_path, remove_after): """ """ try: if 0 in [ decompress(file_path, remove_after) \ for file_path in files_within(directory_pa...

 
1:45 PM
This question should belong to here: codereview.stackexchange.comVeera Kannadiga 45 secs ago
 
it started raining lightly a little over 85% of the way to work...I got a little wet...
I got a Necromancer Badge for my Answer to this --> Parameterized Chutes & Ladders simulator using SQL stored procedure
 
0
Q: Scraping HTML via async controller & classes + HTML agility pack

WaragiI've developed a simple application to grab golfer index scores from a website that has no API. The application works but is very slow, with 6 users that require updating takes 60 seconds. I've tried to make my web requests asyncronous to offset some of this lag but it only resulted in a 15% incr...

 
I am not familiar with Dapper would someone please give me some feedback on my answer here --> codereview.stackexchange.com/q/152016/18427
 
2:00 PM
Sorry can't help on that one, I'm not familiar with Dapper either.
 
I just VTC'd for a Duplicate please take a look at the guts of the code they are exactly the same
1
Q: Processing a large number of files in a folder

vikkI have a folder which contains lots of files. I need to write a C# code that will open and read and display the content of it. I have written the following code. Is this an efficient code or should something be changed. using System; using System.Collections.Generic; using System.Diagnostics; u...

1
Q: Open and read a large number of files from folder

user128021Is this the fastest way to open a large number of files and read their contents? (The folder may contain lakhs of files.) using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Security; using System.Threading; using System.Threading.Tasks; using...

the last one is the one I VTC'd
 
@t3chb0t you can't close both of them
you close the duplicate, not the original
 
0
Q: Create .TXT file and process it

John PietrarI have a file watcher with its properties: EnableRaisingEvents = True; filter = ".TXT"; GenerateMember = True; IncludeSubdirectories = False; Modifiers = Private; NotifyFilter = LastWrite; path = D:\ict; And The Changed,Created and Deleted events added. My code is: private void fileSystemWat...

 
Kaz
Interesting that you can't VTC Dupe unless the dupe candidate already has an answer.
 
2:16 PM
@CaptainObvious broken
@CaptainObvious removed by author
 
@Kaz @t3chb0t did VTC Dupe the Original and the Duplicate does not have an answer yet
please stop Voting to close this as a duplicate, this is the Original — Malachi 1 min ago
 
Kaz
@Malachi Just out of curiosity, how is it the original when it was posted 4 hours after the other one?
 
Kaz
@Malachi Please explain it to me, because I'm not seeing it.
 
I am a bit diesel-axle dyslexic I think
I messed up
2
 
Kaz
2:25 PM
@Malachi Good to know I'm not going crazy ^^
 
this is interesting though, because the duplicate has an answer and the original does not
 
Kaz
@Malachi If we accept that these 2 users are probably the same user 4 hours apart. Would it be a better decision to merge accounts. delete the old question and leave the later one, with answer, as the new "original"?
 
@vikk is the other question yours? do these accounts need to be merged? — Malachi 22 secs ago
@Kaz that is what I was thinking lol
 
Kaz
@janos
 
I think we are in a Mod Transition time right now....but someone just showed up I see Flags being handled
 
Kaz
2:29 PM
I saw janos closed the older version as dupe just now. So I figured he'd be the one to get the attention of.
 
Hey guys, I closed the other question as duplicate, even though that was really the first, because this one has a well-received answer and the other had nothing. Also, it seems the user accounts need merging, that's being taken care of as well. Thanks for raising the issues. — janos ♦ 40 secs ago
 
Kaz
@Malachi Beat me by 3 seconds ^^
 
lol
I need to get some work done
 
possible answer invalidation by FunkySayu on question by FunkySayu: codereview.stackexchange.com/posts/134033/revisions
 
I was just looking for something to get me going this morning and give me another C# answer....I didn't get to give an answer....ugh
 
2:34 PM
@Duga thats ok
 
2:55 PM
Monking!
 
Kaz
Switching syntax from Python back to VBA is weird
I keep reflexively putting colons everywhere
 
I have the same problem by switching for C# to VB6 or VB.NET @Kaz. But a bigger problem there is using braces or declaring variables.
hey @Marc-Andre
 
remonking or sth...
 
0
Q: Could this method be a memory hog with huge files using Java Decryption with javax.crypto?

Brian T HannanI'm trying to determine if this code could be a memory hog with huge files. Can anyone tell me if there is anything I can do to make this more memory efficient, or is this how java.crypto works? private byte[] symmetricDecryptAttachment(byte[] encryptedAttachmentBytes, byte[] keyBytes) throws IO...

 
3:20 PM
0
Q: My selection sort implementation. Is it done efficiently?

Rahul Shivsharanplease review my code on selection sort algorithm, code as follow selectionSort(); function selectionSort(){ var numArray = [4,34,2,5,12]; var MIN = 0; var totalNum = numArray.length, temp = 0, next_position = 0 for(var i = 0; i < totalNum; i++){ MIN = ...

 
@Mat'sMug I saw your comment and I wonder if you can recommend any good tutorial/guide on how to build custom query provider.
 
@Phrancis "Static HTML/CSS doesn't count, nor do database CRUD operations."
@Kaz Time to contact my lawyer?
 
@denis gosh, I thought I had linked the MSDN article in one of these posts... can't find it :( ...I'll ping you with a link when I do :)
 
3:37 PM
Great, thanks a bunch!
 
I used and adapted this walkthrough
 
I'm voting to close this question as off-topic because it is requesting a code review. — Quentin 22 secs ago
 
-1
Q: Why am I getting Runtime error in UVA - 10684?

Md. Rezwanul HaqueHere is my submitted code in uva online judge. Please need help to find error , Thank You. import sys def kadane(array): maxL, maxR, maxSum = -1,-1,0 currL, currR, currSum = 0,0,0 for i,a in enumerate(array): if currSum < 0: currL, currR, currSum = i,i+1, a ...

 
Will take a look at it
 
possible answer invalidation by Siliproksi on question by Siliproksi: codereview.stackexchange.com/posts/151351/revisions
 
3:48 PM
@Duga rolled back. Invalidated JS1 answer
 
Monking
 
Monking
 
1
Q: Settings JAVA_HOME with Powershell

Marc-AndrePreviously in Settings JAVA_HOME with batch I had created a script in bash to change my JAVA_HOME env variable. Since then, I'm trying to use more and more PowerShell so I recreated the script with PowerShell. The script has several option that each does different things : e or echo : output t...

 
Monking
 
@CaptainObvious Are you posting every new question ? Because I always thought you were posting only question from new users.
 
3:51 PM
Greetings, Programs.
 
Always every new question.
 
Decided I'd play with Python 3 today
Made a script to do something with the LoL client
Made the LoL client segfault
I am not very good at Python
 
The point is that with some minor tweaks it would be suitable for code review. — Quentin 12 secs ago
 
Oh boy I really need to lurk/participate more again...
10
 
@Marc-Andre I'm using the star as a surrogate upvote here
 
3:53 PM
again more? or more again?
 
I never stopped participating, I always still review some things, vote sometimes etc, but I was not present here a lot or asking and answering questions! (And I'm not a native speaker so I don't really see the difference between again more vs more again)
 
@t3chb0t what do you mean by
> "We add the Async suffix to methods that are marked with the async keyword."
 
@Quentin I think you should one more time read the criteria by which a question is considered on-topic for Code Review. And, actually, my question would be quite as clear without any "code" (which it only has in amount of 1 HTML tag). — Mikhail Batcer 20 secs ago
 
@Malachi that's the naming convention. public async Task DoSomethingAsync() { }
public async Task DoSomething() would work, but doesn't follow the convention
@Marc-Andre stargreed!
 
@Mat'sMug there was just not an Example in his answer... I wasn't sure if he mixed up prefix with suffix or something... that makes sense
 
3:59 PM
this may be better suited for code review stackexchange. — jwsc 43 secs ago
 
@Marc-Andre I apologize, I was joking with you.
 
I'm posting Pool Checkers for a review.
 
@Malachi Ahaha no need to apologize :P I was trying to be more clear eheh :D
 
@Malachi @Malachi I see @Mat'sMug already explained the idea :)
 
I think that you were missing a comma (,)
 
4:00 PM
Gosh, Best of CR is almost over.
 
-1
Q: How can I avoid a big unit of work?

Ortho Home DefenseMy UOW is getting out of hand. I know this is a small piece of code but there is no point in typing out identical lines over and over. public interface IUnitOfWork { IGenericRepository<Activity> Activities { get; } //...60 more references here and they have to work together } I don't l...

 
@CaptainObvious make a small one
2
 
I've actually never seen a UoW in practice.
 
You need to post this there: codereview.stackexchange.comBoiethios 18 secs ago
 
@EBrown EF DbContext is one
people just like to complicate things
 
4:07 PM
Interesting.
I just got a really good looking phishing email.
4
It actually almost threw me for a loop.
But it has three major flaws:
The 'To' line is not what the automated email would have;
A valid email wouldn't have me download a '.htm' file;
A valid email would have the correct address on it.
 
I got a phishing text message on my phone this morning. scary, 'cause this time it was mentioning the bank I'm actually with. major flaw being, banks don't send you text messages for any reason whatsoever
 
@Mat'sMug This mentions my Auto loan company.
And it looks really good.
 
anyone up for a good laugh at my lack of skills?
 
did they address you by name?
 
makes you wonder where that "I agree to share this information with whoever you're selling it to" checkbox was..
 
4:11 PM
@t3chb0t No, I suppose that was a fourth fatal flaw.
 
some emails allow you to specify a +text before the @ symbol so that you can tell who was selling your email when they said they wouldn't
        var results = db.Users.ToList().ForEach(user => {
			user.Index = await Calculations.GrabIndexValue(user.GHID);
			db.Entry(user).State = EntityState.Modified;
		});
trying to change the code from codereview.stackexchange.com/q/152442/18427 into Linq
am I doing it right?
 
I never needed to tweak EntityState anywhere, for anything.
EF change tracker does a great job all by itself AFAICT
 
maybe you want to take a look at the question...? ;)
 
nope, I need to work
cheers!
 
lol me too
I am going to steal what you said though...
 
4:14 PM
true, manipulating the State might be unnecesary
but we don't know how the OP created the context, maybe with tracking disabled?
 
Kaz
Things VBA will coerce to 0:
Any un-initialised Numeric (including booleans)
empty
variant
Any un-declared variable (Specifically, Variant -> Empty -> 0)

But not ""
 
Ahhh, damn it
I worked out why I had a segfault
turns out that Python's subprocess.run env argument replaces all environment variables instead of appending them to existing ones
and that for some reason causes a segfault
 
@t3chb0t now you say that, after I posted
 
@Malachi I'd say it's fine, you wrote the OP may not need it and not that he doesn't need it since we don't know how the context was created
 
cool
 
4:22 PM
anyways, it's a good catch but I cannot give you another +1 :-]
 
Kevin Troy on January 12, 2017
We’re back for another edition of the Stack Overflow Developer Survey, the largest and most comprehensive survey of software developers on earth. Every year, we include questions about your favorite technologies, coding habits, and work preferences, as well as how you learn, share, and level up as a developer.
 
0
Q: Data Access Layer (object oriented)

morbidCodeI am using a global class (like a global model) that acts like a sql abstraction layer for my application. I am using it without problems now, but since the application I am creating is getting bigger, I would like this class to be reviewed if this is really a fine abstrraction layer. I cannot us...

 
hmm ... three levels deep where ...
I gotta be doing something stupidly wrong...
 
Try codereview.stackexchange.com for queries about improving working code. — jsheeran 16 secs ago
 
4:45 PM
possible answer invalidation by Loki Astari on question by saeid: codereview.stackexchange.com/posts/152429/revisions
 
0
Q: Determining if a relation is reflexive.

JosephA relation R on a set A is called reflexive if and only if < a, a > R for every element a of A. I want to know if there can be any improvements made on the function below to make it more efficient def reflexive(R): ''' @param R : set containing homogenous elements ''' result = [] a = [] y = [...

 
00:00 - 17:0017:00 - 00:00

« first day (1349 days earlier)      last day (2684 days later) »