« first day (838 days earlier)      last day (3194 days later) » 

6:04 PM
@SimonAndréForsberg LOL I just upgraded my phone a couple of months ago from my old Trusty DroidX2 LOL
 
@Duga Oh no
Bad question incoming?
 
Maybe, maybe not. Place your bets!
 
0
Q: Parsing a list of form number,number-number, etc

ProbablyAStupidQuestionI have input I can assume is valid of a string containing a single number i.e. 3 or a range 1-5. Sample input is "1-5,3,15-16" and sample output for that input is 1,2,3,4,5,15,16 1,2,3,4,5,15,16. Output need not be sorted. I built something to parse this but, my god, did it get ugly. Where did t...

It's not a bad question
 
@Hosch250 did you get the new Review Queue Notifier?
 
6:10 PM
No.
Is it on StackApps?
 
installation link ▲▲▲▲▲▲▲▲▲▲▲▲
 
@Malachi Chrome gives me a warning about user scripts that can't be added from that link. normal?
 
do you have TamperMonkey?
it should work for chrome as well
 
so should these messages
 
@Mat'sMug Mine moved out.
 
6:16 PM
 
4
Q: Parsing a list of form number,number-number, etc

ProbablyAStupidQuestionI have input I can assume is valid of a string containing a single number, i.e. 3 or a range 1-5. Sample input is "1-5,3,15-16", and sample output for that input is 1,2,3,4,5,15,16 1,2,3,4,5,15,16. Output need not be sorted. I built something to parse this but it got ugly. Where did things go wr...

 
6:29 PM
@Mat'sMug Suspicious.
 
0
A: Parsing a list of form number,number-number, etc

Ismael Miguel Disclaimer: I'm not a Python programmer! Your code isn't that bad. It's readable enough for me to understand it. B+ for readability! Currently, you have this function: def giveRange(numString:str): z=numString.split("-") if(len(z)==1): return [int(z[0])] elif(len(z)...

Any Python guru want to take a look?
 
7:01 PM
 
7:12 PM
If you want a Code Review on code that you wrote, there's a dedicated StackExchange website for that: codereview.stackexchange.com. Only post there if you have actually written the code and would like feedback. — rayryeng 8 secs ago
We're not going to write the code for you. If you attempt it, and have problems, if you attempt it and want help making it more efficient once it's working, then you can post the code on [link](codereview.stackexchange.com) — James Zafar 28 secs ago
 
So, can anyone think of a good reason to ever call SqlConnection.ClearPool?
 
Maybe when a fatal error happens?
I've no idea about it either way.
 
Maybe... but never in the normal course of getting sending data to the server, right?
 
7:27 PM
0
Q: HackerRank - Candies

JeromeHere is the solution I've written for Hacker Rank Candies challenge. It uses dynamic programming (memoization in a boxed array). I'm interested on what could be done to improve this code in term of style and performance (although it passes all the testcases of the challenge) For example, I wonder...

 
I don't know - I don't even really know what it does.
 
@RubberDuck I've never used it in any of my applications.
 
7:59 PM
Greetings
 
I'm voting to close this question as off-topic because it's more appropriate to codereview.stackexchange.com — Claudiu 9 secs ago
 
@Duga He's right...
 
0
Q: Populate Select Dropdown using Knockout from Data Model

Andrew KonkenPopulating simple dropdown list with items from the data model using Knockout.js <select name="selectCourseArea" class="form-control" data-bind="value: typeid"></select> At this point I am just attempting to get anything from the database into the dropdown without success. I am not the origina...

0
Q: Breadth First Search Heuristics to find solution to Water JugProblem

Namit SinhaI started learning AI recently, In AI searches should be avoided and everything in AI is a search problem. One of the easiest problem where we could use general AI search techniques is the water jug problem which states “You are given two jugs, a 4-gallon one and a 3-gallon one. Neither has any...

1
Q: Login to bank site and get balance and other details

adele dazimI use this piece of JS code to login to my bank and get the balance. This code snippet works. But I wanted to know if I could make this code smaller, faster or if I could anything differently to improve it. casper.start(url, function() { console.log("Checking login status @ " + url); t...

 
8:22 PM
@CaptainObvious Sounds like a very, very bad idea.
 
8:46 PM
I don't like answers like these:
0
A: Login to bank site and get balance and other details

Solrac RagnarockradioYou can always compress vars and use ternary operators: casper.start(a,function(){console.log("Checking login status @ "+a),this.waitForSelector("form[name='SignonForm']",function(){this.fill("form#login",{SignonAccountNumber:username,SignonPassword:password},!0)})}),casper.then(function(){/YES/...

 
especially when the thing scrolls horizontally across 5km. post notice added.
 
10 first posts today, and not a notification warning for a single one.
 
1527 characters in a single line of code?? Are you serious? — RubberDuck 14 secs ago
Couldn't help myself.
 
0
A: ostream wrapper for network logging device

Loki AstariYou should not do this: class device_ostream : public std::ostream { public: device_ostream() : std::ostream(new device_buffer) {} ~device_ostream() { delete rdbuf(); } }; You do not know if the user of the class has reset the buffer while you were not watching. device_ostream da...

 
9:04 PM
0
Q: Loop trough a column cells and compare value with a Collection in VBA

Artyom2033I have a Collection of 166 elements: Dim MyCollection As New Collection MyCollection.Add ("%") MyCollection.Add ("%O") MyCollection.Add ("D") MyCollection.Add ("CMS") ... I want to compare them to the value of the cells in a column. If the value of a cell is not in MyCollection, I change the b...

 
I think this belongs in Code Review. There's no "correct" answer. — Marc 32 secs ago
 
@Mat'sMug Opera 1 was better
Opera 12.17 is still better
 
except no one uses it o.O
TTQW
 
StackExchange Code Review? — Dave Voyles - MSFT 6 secs ago
 
@Mat'sMug oh wow, the memories
 
I'm voting to close this question as off-topic because it is more appropriate for codereview.stackexchange.com — Claudiu 47 secs ago
 
9:43 PM
 
:|
 
Execute is a keyword
Not a function
You can, however, edit the variablke directly on the SQL string
"select * from #test into @sql2"
Or similar
 
YAY!!
 
@Hosch250 looks like you have been using the cool UserScript huh? how is it working for you?
 
0
Q: Trying to complete equals method

AnthonyCould someone help me with this question please? I've tried looking up other examples of this to find what I need to do and keep running into something called and EqualsBuilder, is that what I need to use? Do I need to have it call on equals again if it satisfies neither of the IFs? Question 4 T...

 
LOL
 
10:28 PM
0
Q: A possibly-terrible alternative to conditionals full of null checks

moarboilerplateI am always super annoyed when I have to write a bunch of if statements whenever I have to traverse an object graph of possibly null objects. As there is not yet a ?. operator I resorted to creating this wonderful piece of work. Please tear it apart. Written for LINQPad. void Main() { List<...

-1
Q: JS variable not being updated

ambitious_roi I've an issue with calling out JS variable in my HTML. It's simply not getting updated. The following code is palced in the header: <script type="text/javascript"> var sum = 0; function pushmybutton(id,value){ sum += value; document.getElementById(id).disabled = true; }; </script> There ...

 
10:42 PM
@CaptainObvious possibly off-topic
@SimonAndréForsberg It can't be, the last line says 'I don't like Code Reviews' and if we didn't, we wouldn't be here :P
 
10:55 PM
0
Q: How should I list my SE moderator position on my resume?

JamalI understand that SE moderators are considered volunteers, so it would make sense to list this position under such a section on a resume. Since I have no prior work experience, I'm not sure how I should list this on my resume, as it could be something attractive to an employer. A Career Service...

 
Just broke 1900 rep. :)
 
11:19 PM
May 18 at 15:41, by Simon André Forsberg
@Lyle'sMug Was that really necessary? What bad things has 17K ever done to you?
 
@SimonAndréForsberg Correction: "Just exceeded 1900 rep. :)"
 
much better!
 
11:53 PM
You should post to code review. Also, this isn't valid MATLAB code. — dpmcmlxxvi 57 secs ago
 
0
Q: Slick Lags when drawing 800+ circles

BlueI am making a space-themed shooter game, and I need to render many "lasers" at the same time. I am using the library Slick2D, a wrapper around lwjgl. Unfortunately, when there are a lot of these "lasers" on the screen at one time, the game drops from it's usual 60fps to around 30 or even 20. Her...

0
Q: Random number generation seeding in C++

Coffee ConverterI wrote a small function to return a random in a given range: int random_in_range(int min, int max) { std::random_device rd; std::mt19937 rng(rd()); std::uniform_int_distribution<int> uni(min, max); return uni(rng); } But I read somewhere that you should only seed a random numb...

 

« first day (838 days earlier)      last day (3194 days later) »