« first day (1264 days earlier)      last day (2736 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
RELOAD! There are 2888 unanswered questions (92.4956% answered)
 
12:18 AM
@Vogel612 That's not a bad idea at all, maybe bring it up on meta?
I have noticed as well that Cap'n has been responsible for a lot of "noise" lately
I do like being able to "reply" to posts here though, so we'd lose the ability to do that
 
12:45 AM
Code Review maybe. Way too many unknowns and options to be answerable @SO. — ivan_pozdeev 46 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comJohn3136 12 secs ago
 
1:10 AM
0
Q: How can I implement other methods/classes in my code?

user120597A little bit of background; I'm a high school student in my junior year and I attended a tech competition last year when I enrolled in my high school's CS I course. Below is what I submitted to the competition and even though I won in my category, I remember the judges telling me that I could do ...

 
1:28 AM
Beware... W3Schools is down...
 
2:16 AM
0
Q: How to speed up finding connected components in the application task?

PavelI have n indexed socks, each has one of k colors. Also I have a list says which two socks I must wear at each of m days. Of course I want always wear same color socks. But unfortunately I must follow the list. What I can do is to re-color some socks. The paint is expensive so I want to re-color ...

0
Q: assign Values to a multi-dimensional array in C++?

KelvinHaving a hard time getting the program to assign to the proper row. it seems to just assign to the same int matrix[x][y] regardless of what [x] is. Here is an example output: MATRIX: {1, 2, 3, 0, 1} {1, 2, 3, 0, 1} {1, 2, 3, 0, 1} {1, 2, 3, 0, 1} expected Output: 4 5 1 2 3 4 5 6 7 8 9 1 2 3 4...

 
3:02 AM
0
Q: string.find versus this function

ioospaI got bored and decided to write my own function to verify if a string contains another string. I was wondering if there's any major difference between these two function except the one I wrote being more complicated. bool Contains(string str, string find){ for (int i = 0; i < str.length() ...

0
Q: Python Checkers

Zachary BakerThis is a program I made to practice using turtle graphics. I am looking for pointers specifically on how I handle the game board. Currently it holds all of the grid objects in a nested list. Sorry if the documentation in the program is unconventional. This is one of my first projects and I'm exc...

 
TTQW!
 
 
1 hour later…
4:12 AM
 
4:27 AM
0
Q: Should the questions feed be made into a drop-down feed instead of one-boxing feed?

PhrancisTo quote @Vogel612 in chat today, with regards to CaptainObvious, the new questions feed in the main chat: so many bot posts... at this point I think we should consider turning CaptainObvious into a drop-down feed instead of a one-boxing screen-eating monster So here it is for everyone to d...

 
@StackExchange @Vogel612 ^^^^^
 
4:43 AM
0
Q: Trying to make a window bounce around

SlitherFangHi i have this code in c# which is a remake of the "You are an idiot" hoax trojan into a safe executable. I got the code from github but it doesn't bounce around like the real one so i added in code to move the window along the x axis. However for some reason it doesn't seem to do anything. Is th...

 
5:05 AM
Monking
 
Monking @Heslacher
 
hey @Phrancis
 
How's it going?
(btw, agreed on your comment)
 
Next step in our server move (setting up the new server and move all the applications) is happening. I now need to change all my little helper applications to target the new server and the switch from MySQL to MS SQL. Had two rough days getting the SQL server to run with the main crm solution and connect from old VB6 (ugly) applications.
 
Ouch, sounds like a lot of work
 
5:10 AM
It is, so I take it step by step.
 
I keep getting this from git when I make a commit, should I even bother doing anything about it?
> warning: CRLF will be replaced by LF in src/client/css/main.css.
The file will have its original line endings in your working directory.
(happens on all files)
 
473
Q: LF will be replaced by CRLF in git - What is that and is it important?

LearningRoR Possible Duplicate: git replacing LF with CRLF When I create a new rails application I'm seeing a warning in git about LF replacement. I do git init git add . and then boom! I see this pop up for almost all files. I usually just keep going and build my application and it disa...

 
5:26 AM
Oh excellent
 
0
Q: Opens a messagebox and acts on the result. Async/Await C#

Daniel ArmstrongI am just trying to show a message box in a simple way and do an action based on the result but the await/async bullshit is really screwing with me. This code seems to most times but not always and trying to debug it is a nightmare. There isn't anyway to not use async either, it seems like the o...

 
5:54 AM
Conversions may all fail. All of them. I'd suggest to post this on Code Review — Adriano Repetti 30 secs ago
 
@Duga left a comment.
 
@Duga Isn't necessarily broken if worded correctly.
 
0
Q: How to get a response from SOAP webservice in android in JSON format?

Anjali PatelAs i am fetching the respone always getting a XmlPullParserException:Unexpected token. When i am calling a call() method using HttpTransportSE object i.e ht ht.call(strSoapAction, envelope); always getting Null pointer exception. try { StringBuffer result; SoapSerializationEnve...

 
6:19 AM
1
Q: Calculating binary tree height as asked in the interview

CodeYogiInput: The first line contains the number of vertices 𝑛. The second line contains 𝑛 integer numbers from βˆ’1 to 𝑛 βˆ’ 1 β€” parents of vertices. If the 𝑖-th one of them (0 ≀ 𝑖 ≀ 𝑛 βˆ’ 1) is βˆ’1, vertex 𝑖 is the root, otherwise it’s 0-based index of the parent of 𝑖-th vertex. It is gua...

 
@CaptainObvious VTC Broken
 
6:57 AM
May be codereview.stackexchange.com is right place for this. — Rao 18 secs ago
This appears to be a request for a code review, which belongs over on Code ReviewMSalters 11 secs ago
I'm voting to close this question as off-topic because it belongs on Code ReviewMSalters 38 secs ago
 
SWEET, callback functions <3
const TextInputField = (props) => (
  <input
    type="text"
    placeholder={props.placeholder}
    value={props.text}
    onChange={props.onChange}
  />
)
class TextInputFieldContainer extends React.Component {
  constructor(props) {
    super(props)
    this.state = { text: "" }
    this.handleChange = this.handleChange.bind(this)
  }

  handleChange(event) {
    this.setState({ text: event.target.value })
  }

  render() {
    return (
      <TextInputField
        value={this.state.text}
        placeholder={this.props.placeholder}
Works like a charm to... render a functional HTML <input type="text"> component lol.
 
7:21 AM
Why do you want another solution ? It may be better to post it in the Code review part of SO — Weedoze 7 secs ago
 
7:57 AM
0
Q: Method to Retrieve Data from a MySQL Database

CBRI have a method that retrieves information relating to a Contact that was made between two Companies. I am looking to improve my code in any way and am intrigued in hearing any recommendations you may have on how this method can be improved. I use it throughout my program but modify it according ...

 
Tumbleweed candidate; zero score, no answers, no comments, and low views: libconfini (shared library)
 
Style; I haz it.
2
 
Kaz
Monking @all
 
Hey @Kaz
 
Kaz
8:45 AM
I wish people wouldn't change the underlying assumptions in my models without telling me.
(Or at least leaving a note)
 
8:57 AM
0
Q: Visitor that changes the structure of the objects it visits

Jonny(Sorry - there is a wall of text, I'm trying to walk the line between brevity and fully explaining everything, but it looks like this post same out quite wordy.) What I have: I have a class hierarchy that can be represented by the simplified classes below: Element is the abstract base class ...

 
Monking
 
Hey @DanPantry! Been having way too much fun making this little form - now it's TTGTB :(
 
0
Q: Iterator for void pointer ranges quirks and oddities or how not to shoot your self in the foot

101010In the old days when C was the predominated language under the hood and STL/templates were Alex Stepanov's dream, in order for programmers to achieve generality for functions and data-containers, the void* was used as input argument or underlying container type respectively. A typical example is ...

 
Kaz
@DanPantry Monking
 
9:21 AM
@Phrancis Glad to hear it :)
@Kaz hows it going?
 
Kaz
@DanPantry Busy. Makes a nice change.
Plus, our CEO's computer managed to irrevocably corrupt itself without provocation.
3
That was fun.
We ended up just replacing the whole thing and shipping it off to our IT people to extract what they can from the hard drive and try to fix it.
 
0
Q: Which way is better for undefined variable check and assign blank?

Rakesh SojitraWhich is better and why ? $variable = @$undefinedvariable; OR if(isset($undefinedvariable)){ $variable = $undefinedvariable; }else{ $variable = ''; }

1
Q: Implementation of UNIX `tee` in Rust

eightbitraptorI am currently reading Michael Kerrisk's book, The Linux Programming Interface. This is one of the exercises from the end of chapter 4 (I'm working in Rust, not C). A Rust implementation of the tee program on UNIX systems. According to it's man page The tee utility copies standard input to s...

0
Q: In Ruby, beginning to code, advantages and disadvantages of my solution

Matthew FarabaughI'm working through a course now, and was tasked with the following: "Write a function, no_repeats(year_start, year_end), which takes a range of years and outputs those years which do not have any repeated digits. You should probably write a helper function, no_repeat?(year) which returns tr...

 
9:48 AM
0
Q: Java concurrency - one producer and multiple consumers. Producer has to wait till all consumers finish before adding more data

AnjuGI am trying to solve the below scenario: Code in java where there is 1 producer and 5 consumers. The producer puts data to queue and waits till all consumers have finished before adding more data. Please review and let me know if there is room for improvement. import java.util.LinkedList; impor...

 
It's completely dependant on the computer hardware you are using. You could chose your sample size by timing exactly how long it takes to plot your whole set of data. If for example you plot 100000 data points in 5 minutes, divide the 1 minute you need by the 5 minutes it took (0.2) and times it by the amount of data that was plotted, in this example 0.2 * 100000 = 20000, this will roughly tell you the amount of data you can plot in 1 minute. You might also find help by posting your code as a question on Code Review. — Oliver Carr 53 secs ago
I'm searching for a solution for this problem for some hours now (I'm not very experienced with WPF so far). About 1 hour ago I thought about doing it exactly like you did but then decided to continue searching for a cleaner solution. Seems like there is none but now I'm feeling a little more confident. (Let's see if the code reviewer will accept it) — Woozar 9 secs ago
 
Monking
 
1
Q: Returning MIME types according to input filenames' extensions

LupilumI am coding on codingame.com, where one of the 'easy' challenges is to assign MIME type strings to input strings of file names based on their extensions. My code passes four out of five of the test cases, and the last one is an optimization test. A big data set is inputted, and my approach times...

 
10:03 AM
@Kaz wow
 
Kaz
@DanPantry Yeah. The last time I saw a computer fail that hard, I had tried to take it apart and put it back together.
 
10:21 AM
Finally a new MATLAB question I could answer... :) There are way too few :(
 
11:11 AM
Monking
@Phrancis Isn't this the time you wake up normally?
@Mat'sMug I stargree with your usage of stargreed.
2
Hmm, apparently everyone is already being productive at this time of the day.
 
actually I am following this code: codereview.stackexchange.com/questions/81865/… Here it can be seen that each node is connected with all others and there exist permutations but in road network many nodes are not connected directly with each other so the permutation set gets smaller. The permutation tuples are the possible paths: the first says that my path will start from node 1 and go to 2 - 3 - 4 and end at 5. But nodes 2 and 3 aren't directly connected in the network so this combination is illegal and should be deleted. — Achter 29 secs ago
 
The moment you think someone is saying something in chat, and it's just a bot :|
2
Q: How to avoid star-trails

BeginnerI have nikon d3300 and I want to do astro-photography .I have 50mm prime lens and by 500 Rule ,I can click only upto 6.6 seconds without having star-trails.Any idea how I can do it without buying any other lens.

I laughed at the title ^^
 
11:35 AM
possible answer invalidation by Stewie Griffin on question by Elessarr: codereview.stackexchange.com/posts/144519/revisions
Thanks, it also limit the modification I have to do in the codebase. :) As for the style, I ll see what my team have to say about it in code review, but since it is not hackish, and they too dislike importing a unique function with require, that solution is perfect. — DrakaSAN 31 secs ago
 
Kaz
My government today:
in The Nth Monitor, 5 mins ago, by Kaz
> UK government proposes issuing Britons with unique porn-viewing ID numbers
 
11:52 AM
You can always remove the heap from memory through the linker script, but that won't prevent malloc calls. The only safe way to make the code idiot-proof is probably to use a static analyser, like for example some MISRA checker. But seriously, why would you have any code using dynamic memory in your project? A minimum of code review would easily spot that. — Lundin 42 secs ago
 
Monking
 
Kaz
@Vogel612 Monking
 
12:43 PM
I wouldn't want to maintain it ;-)
 
cleaning it up seems like simple but tedious work ...
what they need is a basic tutorial for OOP
 
Write extensive test cases, verify they pass beforehand, throw code away, rewrite code, verify they still pass :D No cleanup involved
 
@skiwi waste of time.
 
start by asking one programming question on one part of your code, or if the code works and needs trimming, maybe post to codereview. — Jean-François Fabre 43 secs ago
 
especially considering that most functionality is manifested in calls to System.out.println
enabling test writing would already require a major refactoring
might as well do it right then and there
 
12:58 PM
@Kaz you're joking
you are joking
right?
 
as if the British gov didn't have enough stupid ideas already to make people doubt their sanity ...
 
On a more on topic note
I think I am killing my CPU
 
gratz?
 
I have git cloning 30 repositories and in a segment of code that should be completely asynchronous, it isnt
2
 
My CPU should be long dead then, with my tabs
 
1:16 PM
Assumption: Only test interface and not implementation detail?
i.e, should I test that a value is lazily initialised and memoised?
This is not part of the interface, but part of the implementation.
 
-1
Q: ora-14400 error is thrown while trying to insert data into a partitioned table

user120657I have defined a partitioned table as below CREATE TABLE p( stu_id varchar2(12), dept varchar2(15), date_to DATE ) PARTITION BY RANGE(date_to) SUBPARTITION BY LIST (dept) SUBPARTITION TEMPLATE( SUBPARTITION sp_1 VALUES ('CSE'), SUBPARTITION sp_2 VALUES ('ECE')) ( PARTITION P_1 VALUES LESS THAN (...

 
Free VTC ^^
 
Finally a MATLAB question... :) There are unfortunately too few, and they are too trivial :(
But beginners need help too, just like I do in Python and VBA :)
 
1:32 PM
That's the thing about VBA. There is no one who WANTS help. Only those who NEED help. :)
 
@xDaevax Yes and no ;)
Same question, different objective :)
@xDaevax But I admit, I have asked a one or two VBA-questions on SO that I'm not proud of :/
 
But setting the return value of a function by assigning that value to the function name is totally logical. ;)
Oh, and don't forget the Set keyword if it's an object
I have much bitterness towards some of the hacks I needed to implement in VBA over the years.
 
Haha :) I know about VBA and Spanish equally well!
una cerveza por favor...
^^ The grammar might be wrong, but there are syntax errors in my VBA code too... :)
2
 
monking!
 
I've got that "in the zone" feeling :D
 
1:56 PM
Greetings, Programs.
First day in new office.
 
You can clearly see the point at which my team goes for a team game every day lol
(that's a commit punchcard on my own repository)
 
#nolife
3
 
Kaz
@DanPantry I want to say 1pm, but that might just be lunch?
 
@Kaz 1pm is lunch + game
(So yes)
@Mat'sMug is that RD?
 
yeah
well there's like 2 years of history
 
2:08 PM
Yeah. this is like 2-3 weeks
 
Kaz
I'd offer up a punchcard but I don't have a git project, so...
 
Kaz
I think @DanPantry will appreciate that one
 
I don't get it
 
Kaz
@Mat'sMug shamelessly stolen emulated
 
2:10 PM
it's ok, tags are CC-BY-SA as well I think
 
They should be.
 
I thought they changed the licensing?
 
no they didn't
 
Some of the users made a very good case against it.
 
the bottom of every page on the network would say so if they did :)
 
2:11 PM
200 was one of them.
 
Code View may be a better choice for your request. Please read the help page carefully however, and make sure your post is on-topic. — leaf 55 secs ago
Seems like something which should go on Code Review: codereview.stackexchange.comJerry Dodge 57 secs ago
 
2:30 PM
-2
Q: Need help cracking the code..not sure where to start.

MatthewIt is supposed to result in a location but unfortunately I can't work it out. Any help? function freePhone (want FreePhone) { var phone = 'OnePlus 3, exclusively on O2'; if (want FreePhone === true) { var location = '...;) '; //var password = 'never settle'; var condition = 'First...

0
Q: Is it wrong to pass the concrete Model through the View to the Presenter with MVP 'Passive View'

Marthe VeldhuisI have tried to implement the Passive View MVP in my WinForms application as much as possible. The Presenter is the only one who uses the Model and the Presenter responds to events that are generated in the View. The View in fact is very 'dumb' as it only fires events and deals with the form cont...

 
@CaptainObvious What in the...?
 
@CaptainObvious lmfao, what
 
@CaptainObvious wat.
 
people still confuse here and SO >.>
 
That was not an appropriate question for any SE site.. I'm still not even sure what I was looking at.
 
2:35 PM
They also confuse the trashcan and SO
5
 
indeed.
there's also something called the Void. it's where diamond-powered people can send things. That post belongs in said Void. :P
 
For posterity once that post get's voided. imgur.com/3X3x8uk #wut
3
 
I'm voting to close this question as off-topic because code review is off topic on this site — David Heffernan 17 secs ago
 
@skiwi not hard to do :^)
 
@xDaevax Nice, I also saved a screenshot for myself haha
 
2:42 PM
@ThomasWard A magical place, helps keeping sites clean.
 
@Mast Indeed. Yet only a privileged few have the power to hurl things into that Void. Probably for safety reasons, we don't want people falling into it and never returning.
 
ok i understand, thank you anyway! :) — Matthew 1 min ago
 
Kaz
 
do you guys have a "delete" link on the post?
 
Kaz
@DanPantry beat you to it ^^
 
2:43 PM
You could try at codereview.stackexchange.com, however, I don't think at 1 day of work you have a "framework", you don't even have a defined plugin, you basically have a few very basic and far from production grade qml elements I doubt anyone would be interested in. You should really have something before rushing into promoting it, and take a lesson or two form existing projects... — ddriver 39 secs ago
 
That else was missing something, at least.
 
@Kaz I don't even have the link on this PC. RIP
 
@Mat'sMug I don't - not enough rep.
@Mat'sMug diamond-fueled people on the site do
 
@Mat'sMug 20k only IIRC.
 
2:43 PM
gah, wth, deleted
and you guys need more rep
3
 
@Mat'sMug that's why I said what I said about the diamond-powered people having Void flinging privs.
 
go on, kill some zombies
3
 
0
Q: Python dataframe

user1648545This takes around 20 sec to complete a dataset around 2000 records. def findRe(leaddatadf, keyAttributes, datadf): for combs in itertools.combinations(atrList, len(atrList)-1): v_by =(set(atrList) - set(combs)) # varrying grpdatapf=datadf.groupby(combs) for name, g...

 
            if(tmpgdf.shape[0]>1):

                tmpgdf['mprice']=tmpgdf['mprice'].astype(float)
                tmpgdf=tmpgdf.sort('mprice')

                tmpgdf['id'] = tmpgdf['id']
                tmpgdf['desc'] = tmpgdf['description']
                tmpgdf['related_id'] = tmpgdf['id'].shift(-1)
                tmpgdf['related_desc'] = tmpgdf['description'].shift(-1)
                tmpgdf['related_mprice'] = tmpgdf['mprice'].shift(-1)
Nononononono.
 
@Duga Sooooo, yeah. Today we're getting all kinds of fun questions on the SE network
 
2:45 PM
@Mat'sMug I just did this last night for six hours with a set of friends on L4D2... was fun.
 
Reinstalling Windows on my phone.
Question: which version of Windows is it?
 
@Mast That looks like Python. And very poor python at that.
 
@Hosch250 hard to tell these days, too many updates
 
I did the "factory reset", which is Windows 8. It almost looks like it is installing Windows 10...
 
they look similar at installers
trust me, i've done enough reformats on the helpdesk to know :p
 
2:46 PM
@ThomasWard Very.
 
OK.
 
@Mast want to raise hell and complain about their logic? :P
 
@Mast I don't know what he's doing, but it seems like a bad idea
3
 
tmpgdf['id'] = tmpgdf['id']
Hehe.
 
@skiwi Very.
 
2:48 PM
@Mast where'd you find this evil code?
I'm looking at that and cringing...
 
4 mins ago, by Captain Obvious
0
Q: Python dataframe

user1648545This takes around 20 sec to complete a dataset around 2000 records. def findRe(leaddatadf, keyAttributes, datadf): for combs in itertools.combinations(atrList, len(atrList)-1): v_by =(set(atrList) - set(combs)) # varrying grpdatapf=datadf.groupby(combs) for name, g...

 
tmpgdf['mprice']=tmpgdf['mprice'].astype(float)
I have no idea what the heck this is supposed to do, and what it really does:
 
you mean the code I proposed an edit for full code reformatting on and @jamal rejected
 
It looks like it changes the type of the variable...
 
I'd say it's pretty much foo = (float)foo;
 
2:49 PM
@ThomasWard You're not supposed to edit someone else's code :P
@Hosch250 Casting.
 
@Mast so code formatting the entire post so the headers get included in code format is bad? (Not changing the code, applying proper rendering formatting for the site rather than anything else)
i.e., hitting the format button on the edit window?
 
Yeah, I get the cast. But it then reassigns the cast back to the same variable?
That seems like very bad practice.
 
if foo didn't have a type in the first place... picture a VBA Variant
 
@Hosch250 Yup.
 
or a duck
 
2:50 PM
And yes, it's very bad practice.
I could spend an hour writing a review on that question and still have missed something.
I have no clue what his intentions are though, so it would be a superficial one.
I want more context.
#GimmeTehContext
@ThomasWard It gets worse after that.
 
shrugs and goes back to doing something worthwhile like trying to get his code into a post so he can get it reviewed
@Mast Makes no sense to me because the same revision plus additional edits were made by a diamond moderator, so...
 
@ThomasWard As a below-2k user, yes. After 2k you're only supposed to do it if you're absolutely certain it's a copy-paste error.
 
i see.
 
@ThomasWard The key point here being 'additional edits'.
 
@Mast sounds a tad counter-intuitive to me but OK
 
2:52 PM
You should've fixed the entire question or not have bothered.
 
@Mast not my fault the mobile interface is junk and wouldn't permit it kindly
 
It's not entirely fair, I know.
 
which reminds me, note to self, complain to MSE about that.
 
Don't worry about it :-)
 
Wow, just lost 20 minutes cus I didn't set content-type to application/json
 
2:54 PM
... i should probably be more concerned about what's trying to breach my server... notes fifty thousand SSH login attempts in the past three hours
3
 
0
Q: Simple ConfigManager

LiamLet me know how I can improve it, please. using Sahara.Core.Logging; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Sahara.Core.Config { class ConfigManager { private readonly string configFilePath; ...

 
@ThomasWard fail2ban
ThereIFixedIt
 
@ThomasWard Is taking it offline an option?
Gah, terrible internet connection.
Also, it installed Windows 10 mobile.
 
First app out of my phone: Facebook.
2
 
3:06 PM
stargreed
 
@Hosch250 no. Considering turning off the SSH temporarily - I can always console into it (VMware!)
 
I simple ask a better solution u are programmer? is not complicate to understand ... code review? I ask if i implement in correct way ... but as you want this site don' offer me one solution each time. Thanks alot ;) — Federico Pacini 40 secs ago
 
42 app updates available...
 
First of all, I am not sure this is good fit for Code Review either. In order to review code one must have clear idea what code should do - what is intended purpose. I am sorry, but I simply cannot make anything out of description you have provided. — Dalija Prasnikar 48 secs ago
This questions is better suited for Code ReviewMagnus Eriksson 33 secs ago
 
3:27 PM
0
Q: Order and organize objects in an array - Perfomance

GibboKI need to organize the following objects in a array applying the following rules: Group all object by source In each group order them by order property Rewrite each order property keeping their order staring from 0 I have draft a solution below, the final result is present in the code comment...

 
@CaptainObvious what's wrong with System.Configuration?
 
0
Q: Poker Bank application

Marco JakobFor playing a poker tournamen i wanted to create an application which should calculate the pot and the money of all players at every time. this is my PokerBank class public class PokerBank { /** * @param args the command line arguments */ public static void main(String[] args) { System...

 
3:44 PM
This seems like a good fit for CodeReview.SE — Matt 30 secs ago
 
0
Q: How do I efficiently sum 3 consecutive integers in a list to see if the sum matches a specified value

Dave AdlerI have a program where users can add integers to a list and then I want to check the list to see if any 3 consecutive integers in the list equal a specific value. The code below works but I need to make it run faster (more efficiently). As the code stands right now, I have been told that it is ta...

 
@CaptainObvious Can't get that much better in Big-O-complexity, can it? Having a rolling loop that adds and subtracts numbers from current total and then checks for equality would be easier though
Except we don't see ContainsSum3, do we?
 
4:01 PM
0
Q: Optimize powershell script to run faster

texnoobI created a script to import several CSV files from various sources and one CSV file with a list of systems in it. the script searches each CSV file to see if the system exist in the file and if it does then write the property information to a variable. The challenge that I have ran into is there...

 
ddriver. this isn't even pre-alpha. i worked for maybe 3 or 4 hours in this, and was looking for feedback. i am not a software engineer. i just started to experiment with code and music back in 2007 or 2008 with MaxMSP and PureData, and for the past few years i have been trying to push the boundaries with new tools. i am aware that this question might annoy a serious developer. so thanks for advice and for pointing me out codereview.stackexchange.com. i will try that in a couple of days. — tiago morais morgado 54 secs ago
 
Monking
 
7 more posts and the tag is badgeable
 
@Mat'sMug Do you know if it's possible to modify the default ASP.NET Templates?
 
I don't do enough ASP.NET to say, but I'm 99% sure the answer is yes
 
4:14 PM
0
Q: JSON.Net - Another polymorphic JSON string data retrieval

inquisitive_oneHere's what my JSON string looks like: { "?xml" : { "@version" : "1.0", "@encoding" : "UTF-8" }, "DataFeed" : { "@FeedName" : "content", "now" : "2016-10-17T14:11:38.00", "Content" : [{ "ContentData" : { "@st...

 
Cupcakes
 
Grah, I need to un-f... this template permanently.
 
41/42 updates installed.
42/42.
 
My lease just came through :)
welp
 
@DanPantry I thought that said something about a jeep.
 
4:26 PM
Originally said something about a leash.
2
Best typo.
 
4:39 PM
If you need help improving code that already works, try going to codereview.stackexchange.comHouseman 11 secs ago
 
Kaz
A typical serving size of cockroaches is not a sentence that I am ok with existing. — Steve V. 15 hours ago
 
I thought of another punny name. "Thyme Lorde".
 
Kaz
@Hosch250 If you don't mind, I'm absolutely stealing that for my next avatar
 
Go ahead.
Have you seen my other ones? Seth Lorde (Thyme's sibling, I guess) and Jed I. Knight.
I had a whole collection of them, but I forgot most of them.
 
Converting an old MS Access database for a company to an ASP.NET site.
So much work, but damn will I be glad to be rid of this database.
 
4:49 PM
I love this photo
 
lol
 
Oh well, hakuna matataMat's Mug 32 secs ago
 
@DanPantry Noice.
 
@DanPantry That "Made With Refreshing Filtered Water" sticker bugs me.
 
Kaz
@Hosch250 My brother's called Jed. He has a lot of fun with that pun.
 
4:53 PM
@EBrown Do you get a refund if you don't find it refreshing?
 
it's short for "we take refreshing filtered water and turn it into a sugar-rush filled with crap and carbon dioxyde that will give you diabetes before you're 30 if that's all you're drinking"
 
Kaz
Ooh, out of stars, I haven't done that in, like, a whole week ^^
 
You might be better off asking this question at codereview.stackexchange.com. I'm not sure this question is very well suited for Stackoverflow. It is too broad and there are too many possible anwers. — Steven 54 secs ago
 
> "Yes, the cow is sacred in India, but in America it tastes good with cheese."
2
 
@Mat'sMug Kakuna Rattata
 
Kaz
4:56 PM
@arda I desperatly want to star that.
 
RSA
 
Kaz
@Hosch250 I have a few I like to use. BlackHatGuy (from XKCD, and also because I have a black fedora) and Apocalypstic (for when I want a female avatar) are 2 of my favourites.
 
Those aren't really real names.
I do names that could be actual people.
I'm going to start a baby naming business when I'm older if I can think of enough and write them down.
 
In JS if you reference a variable name that's not been declared you get undefined right?
Or is it null?
 
Kaz
@Hosch250 I dunno, Thyme Lorde is not, exactly, a name I'd expect to see in the national census.
 
4:58 PM
@Hosch250 you would be surprised.... you know what Kayne West and what's-her-name called their kid?
North
North West
 
Thyme is a name...
 
The code is terrible, but it should work (except relative location in header() I think) - at least the part you've shown. Add error_reporting(E_ALL); at the beginning of the script - some messages should apear (update your question if they do). Better learn some more OOP before refactoring is still possible. You could show it on codereview.stackexchange.com - you'll get some hints. — shudder 12 secs ago
 
Kaz
@Mat'sMug You've got me there.
 
at least when he comes of age he'll be able to sue his parents for a few millions for that
 
Yes, that is sick. I never did like that family...
My parents know someone who has a relation that named their baby Majik, or something.
 
5:01 PM
0
Q: Penetration testing in an unsuitable environment

VISWESWARAN1998There are good penetration testing tools in the market in which we can perform various activities gather information from the hosts effectively. But those tools are not helpful always like if we are using some public computers we need administrative rights to install wireshark,social engineering ...

 
@Kaz lol, what?
 
Design question... say I have a CommentList and a CommentForm, both of which get rendered by the parent, CommentBox, does it seem like it would be CommentList's responsibility to update itself with the comment data, or should that be handled by its parent CommentBox? (assume that the CommentForm is used to add said comments to the data store)
 
Kaz
@Phrancis IMO, the list should now how to update itself with data that is passed to it, but it should be the box's job to organise the collection and dissemination of said data.
 
That makes sense
TTGTW
 
5:12 PM
0
Q: MVC error handling in Global.asax

Jonathan WoodI'm trying to implement reliable error handling in my MVC application. I've found a number of articles on this but they all seem to have a different approach, each with their own shortcomings. So I enabled custom errors in web.config, and added the following code in Global.asax.cs, which is appa...

0
Q: Remove dates from a list which have already past and add a buffer of x amount of days

colecmcIs there a more efficient/performant way to accomplish this with vanilla js (no libs please) as the looping is slow? Also, how can I make it more flexible, so the HTML option values can vary a little, if need be? I need to cover different option values in HTML but they mostly follow the same for...

 
5:25 PM
@Phrancis I'm going to edit answers on your meta question.
 
@Captain don't worry buddy, we got your back; you're not out of a job for a while.
 
@Mat'sMug Added a few points to the answers on the meta question: meta.codereview.stackexchange.com/questions/7048/…
 
possible answer invalidation by Dave Adler on question by Dave Adler: codereview.stackexchange.com/posts/144658/revisions
 
> I will tell you from bitter, personal experience that the creativity of some of the people I ran into in interpreting my words in a way that offended them was staggering, and that's putting it mildly.
 
@EBrown saw them already
 
5:30 PM
Ah, alright.
I think they make enough sense.
 
yeah. I think we have a consensus already though :)
 
I'd say so.
I hate the idea of the "Feed Dropdown"
 
I'm proud to say I was the first down vote on the dropdown feed answer.
 
Alright, I'm out for a bit. Going to go truck shopping.
 
@EBrown If I was an owner, I just might pin that.
 
5:52 PM
0
Q: Insertion in Binary Search Tree

VisnuGanthI am not able to insert a new element into the binary search tree with my program. The following is my insert function: public void insertBST(Node root, int elt) { if (root.getElement()<elt){ if(root.getrChild()!=null) insertBST(root.getrChild(),elt); ...

 
Agree with @Steven, put this on codereview site — MisterPositive 54 secs ago
Thanks. The code does work, so I will inquire at codereview section as well. Just looking to speed up the workbook. — zanzibar 51 secs ago
 
6:06 PM
Windows 10 team: "We'll call it Cortana!" *meanwhile, in another meeting* Halo 5 team: "Lets turn Cortana against humanity."
I think the Windows team beat them to it
 
0
Q: JavaScript calendar

4ellI see: Global variables with popular names Styles inside JS Not allowed attributes like cellpadding Please help me figure out other problems. I believe that this code is not ready for production, and it can lead to unpredictable behavior. Am I biased? // calendar.js var date = new Date(); va...

 
You might be better served posting a question like this to the Code Review site. codereview.stackexchange.comBradley Uffner 8 secs ago
 
6:25 PM
0
A: Why does Platform.runLater not check if it currently is on the JavaFX thread?

mike rodentI've seen people calling EventQueue.invokeLater from the EDT in Swing occasionally... it is, according to canon, a legitimate technique. So this is the same situation in JavaFX, unless I'm much mistaken. I personally have my doubts about this technique, however. See this question: the chosen a...

Old answer... and I have a hard time following it, anyone else have the same issue?
 
@skiwi umm ... question: Why would you expect Platform.runLater to check whether it's on the JavaFX thread?
It's kinda missing the point of your question
 
wild guess: because you probably don't want to be running whatever that is on the UI thread?
reads the post
 
@Vogel612 Because 2+ year old me was ignorant
2
 
on that note: I prefer rolfl's answer there ...
because it actually quotes the docs
well, whatever
o wait ... you were solving the completely wrong problem there, weren't you?
 
I was trying to short-circuit some functionality
I don't think it actually caused any issues, but it shouldn't be safe
 
6:39 PM
it's everywhere in every bit of code written in the past two years
 
@EBrown OK no problem. There's been a good bit of responses on it, haven't had a chance to look through them
 
@Mat'sMug I don't touch Java that often anymore, so no :p
 
@skiwi I understand. I wouldn't touch it with a stick either ;-)
 
If you're going to learn Java, just learn C#.
2
 
0
Q: Login and Registration using files in C

joshuaThis code is error free but it works only for one user. I would like to make it work for multiple user at registration. #include<conio.h> #include<stdio.h> #include<string.h> static int i=0; struct web { char name[30],pass[30]; }w[99]; int n; void login(void); void reg(void); int main() { clrscr...

 
00:00 - 19:0019:00 - 00:00

« first day (1264 days earlier)      last day (2736 days later) »