« first day (857 days earlier)      last day (3145 days later) » 

8:01 AM
0
Q: Does my Angular code look ugly?

Alex ShmatkoI'm new to Angular so I'm not completely sure whether my code looks good or not? var app = angular.module('Todolist', ['ngResource', 'xeditable']); app.run(function(editableOptions) { editableOptions.theme = 'bs3'; }); app.controller('TasksCtrl', [ '$scope', 'Task', function($scope, Task) ...

 
Monking
 
8:20 AM
I am wondering how differently the first two answers to this question were treated:
5
Q: Shift positive integers in C

Michael ChavI would like to write a function in C that turns all negative values into zeros then shifts the positive numbers to the beginning of the array, maintaining the order of the positive integers in the array. void shift_positives(int values[], int num_values) { int i; int last_zero = 0; ...

Both suggest an alternative solution. (Unless I am mistaken, that are actually the same algorithms, so that could be a valid criticism for the one posted later.)
Both explain their approach, and neither of them really reviews the code posted in the question. But one of them got 6 upvotes, whereas the other is flagged "You have presented an alternative solution, but haven't reviewed the code. Don't just give a one-line answer; ...", plus some similar comments.
 
Weird, I've never seen that flag on an answer, how does it work?
 
I don't know.
 
Zak
8:33 AM
The flag is there for gimme teh codez answers
Just taking a quick look, I don't think I agree with flagging that answer
 
But I do you know how it's added and stuff?
Is it just a thing mods can do if they want to.
 
Zak
Don't know. I assume it's under one of the flag options, but I'm not about to flag a random answer just to find out
 
What's the consensus on people editing code in an answer?
 
Zak
what do you mean?
 
Zak
8:40 AM
Not to be done. At all.
 
Someone made some changes to the actual code in that answer, they have a minor effect on the script but are mostly stylistic. I know questions should almost never get code edited
 
Zak
IT's okay to change formatting
 
Ah, so just like that answers ought not to be touched
 
Zak
But the code IS the question
yes
for instance, an answr could legitimately point out the lack of whitespace in a piece of code
so how the code is written is as much a part of the question as what is written
IF it's a simple syntactic mistake, best practice to point it out in a comment and let the OP fix it
 
Just to be clear, you know I'm talking about an edit to an answer, right not a question?
 
Zak
8:42 AM
oh, didn't see that :)
If it's not their answer, I'd say don't edit the code
unless it's literally like changing a comma to a colon
or something syntactical like that
 
@syb0rg Not that much. I like not having to deal with it.
 
Zak
In this case, I'd definitely reject it
 
Greetings
 
Zak
morning
 
How's it going?
 
8:44 AM
Howdy.
 
Yeah I just noticed they even modified it to add a return value to denote success, which really shouldn't be there without any explanation for what it is.
Hello
 
Reject the edit?
It makes the answer a lot better
 
Zak
Yeah, I'd say any edit that changes what code does is disallowed, unless it's done by whoever wrote it in the first place
I'd say reject it, and ask them to re-edit with only the text changes
unless you can selectively approve parts of edits?
 
You can't
 
Zak
then reject it and send them a message explaining about editing code
 
8:48 AM
You could approve and roll back edits or reject and edit back in part of their edit but both are awkward approaches.
What's the best way to message them though? I can't comment on it.
 
No idea
 
@Zak I reject every code edit not done by OP flatout.
Indentation can also be reviewed and should be left alone.
 
(just to be clear again) We're discussing answers, not questions
 
In that case, indentation may be a grey area and the rest should be left alone.
@Zak You can't, but you can reject and improve. Simply editing the 'good' parts of the original edit while leaving the bad parts out will solve that specific situation.
 
0
Q: How can i write a program that will ask the user to select either ADD NEW JOB or REMOVE JOB

Jhon Alulod, In adding should have enough space but before removing, check the ETL before deleting and updating the contents of the "MEMORY" after each action I HOPE YOU CAN HELP US!

 
8:58 AM
@CaptainObvious HAMMER IT!!! QUICK!!! This is requesting us to write code.
 
I keep getting asked if I'm a robot. Does this always happen when you write the question elsewhere and pastedump it into the answer box?
 
" I HOPE YOU CAN HELP US!" --> Us?
Yes, it does
 
@IsmaelMiguel Stay calm, it's gone.
 
@SuperBiasedMan Not sure, never asks me unless I'm on a new PC or not logged in.
 
9:01 AM
@Mast It happens when I almost immediately press post after pasting stuff in (when I can quickly glance and tell the formatting is fine). It probably is partly cause I'm relatively new/low rep
 
@Mast That was quick
 
@IsmaelMiguel The obvious ones usually go quick.
 
I can start to see that pattern
 
@MartinR The difference is that rolfl says "There is a much more efficient way to do this" and "This performs the operation in O(n) time". That explains why the proposed solution is better than the original. In contrast, Vladimir Lenin just says "The algorithm I would use would be …", which is not a review.
 
@IsmaelMiguel Deleted, RBA.
 
9:14 AM
Self-deleted
 
Yea, just noticed. Not sure why I didn't notice the white 'in-your-face bar' the first time.
Oh well.
Some problems are easily solved as you see :)
 
I have no idea what bar you're talking about
 
2
Q: Read and replace URL From PDF File - JAVA

TeioThis is a code I wrote to find all URL within a PDF file and replace the one that matches the ID that I passed as a parameter. It works as intended, but as I am a beginner on Java, I am sure there are some best practices that I am not following. I am using the PDFBox library. Here's the code: ...

 
@CaptainObvious JAVA? Never heard that language
2
 
 
9:15 AM
That's yellow
 
Zak
This is a weird feeling. Now that I'm done with my recent project, I've more or less ran out of stuff to work on.
 
@IsmaelMiguel Shenanigans.
@Zak Excel stopped crashing on you for good?
 
@Zak You can work on the Next Excel Crash-test (tm)
@Mast No idea what that is
 
TTG rob a bank
3
 
Nice!
Need help?
 
9:24 AM
@200_success Well, I agree about the "This performs the operation in O(n) time" part, but "There is a much more efficient way to do this" doesn't seem so much different from "The algorithm I would use would be …" to me. – But how does the yellow warning box apply to the second answer? It is not a one-liner, and it provides some explanations. It that set by moderators?
 
It is canned text common to all SE sites.
Mainly implemented for the benefit of Skeptics.SE, is what I have been told.
 
Zak
@IsmaelMiguel tbf that only tends to happen when dealing with the financial records of every company in the whole damn country
you know, nothing too big :)
ooh, now I remember. XML.
That's something to be working on
 
Yeah, nothing too big
 
@MartinR I've added the justification to the answer.
Still, it was posted 2 hours after rolfl's answer, and the solution is nearly identical.
 
9:47 AM
1
Q: Stamp PDF file with name and company

TeioThis is a code I wrote to put stamps on all pages of a PDF file with the name and company passed as parameter. It works as intended, but as I am a beginner on Java, I am sure there are some best practices that I am not following. I am using the iText library. Here's the code: Main.java: publ...

 
Huh, I can't retag this question to Java 8, does anyone know why that might happen?
5
Q: Read and replace URL from PDF file

TeioThis is a code I wrote to find all URL within a PDF file and replace the one that matches the ID that I passed as a parameter. It works as intended, but as I am a beginner on Java, I am sure there are some best practices that I am not following. I am using the PDFBox library. Here's the code: ...

I mean to add java 8, not to remove java itself.
 
Does the tag exist?
 
Yeah, it has 8 questions on it.
 
Then that's weird...
 
Oh, it's because it's a tag synonym anyway, adding does nothing regardless.
 
10:00 AM
Well, that explains it
 
1
Q: Loop at specific folder in outlook to look for specific title

PopI created a C# console program to loop specific folder in outlook to look for specific email subject. When I am running it on my computer(multi cores CPU), it didn't use up 100% CPU resource. But when I test it on the server(single code CPU), it use up 100% CPU resource. What can I do to optim...

 
@Caridorc 3
more
 
@Mast that question is so low quality, he did not even bother skimming the site rules
 
I'm tempted to ask "Have you tried to hire a programmer?"
 
10:13 AM
@IsmaelMiguel If you do, I'll flag it as non constructive
 
I know
 
The post is even half in Italian :O
 
That's why I haven't said it
@CaptainObvious Hammered by Simon
 
-3
Q: How to extract with regex two fields from an existing field?

Skender Kollcaku(in Splunk) what I need is to extract two fields - class - category from the existing field which has the following value: class = 'Servizio Fornitura Varie' AND category = 'Materiale informatico' AND ( ticket_type = 'Change Request' and ticket_impact_code = '2' ) AND ( ticket_type = 'Change Req...

 
@CaptainObvious LOL! Too slow! (This one was the hammered down)
 
10:25 AM
Monking
 
Monking
 
Greetings
 
Monking
 
Monking
 
Greetings
 
10:28 AM
@rolfl didn't you still want to write me a review?
whaa that maybe came off wrong...
 
Did not come off as wrong.
Right, looking now, here's the plan. Look through it once, get breakfast, stew on it, perhaps write something up later ;-)
 
target confirmed
 
monking
 
Greetings
 
@Vogel612 Few small things, nothing serious, will post something later.
really ;-)
 
10:46 AM
I'm voting to close this question as off-topic because it probably belongs on Code Review. codereview.stackexchange.comLuke 19 secs ago
 
@Duga Deleted question
 
Since you already have working code, CodeReview could also be an option for you. — cel 12 secs ago
 
0
Q: Objective-C my own method for sorting numbers in array

StefanI've written some method for sorting asc and desc numbers in array. All I want to know is this good logic, and is there is space for improve this code? -(NSArray *)sortHanded:(NSArray *)inputArray ascending:(BOOL)ascending { NSMutableArray *inputMutableArray = [inputArray mutableCopy]; N...

 
Zak
11:01 AM
Hi guys. I'm trying to get to grips with XMl parsing. I've got (I think) a reasonable idea of how node heirarchy works, but I'm having difficulty working out how these documents are structured, and how to define the elements I want to extract. Can anyone spare 10 minutes to help me figure all this out?
 
what are you using?
and... want a separate room?
 
Zak
yes, that's a good idea
how do we do that?
 
Maybe Objective C is just really weird but... this is weird code
for (NSNumber *temp in inputMutableArray) {
    if (min == nil) {
        min = temp;
    }
    if (min > temp) {
        min = temp;
    }
}
 
@Zak you create a new room, and invite me there, or we hijack an existing room
 
Zak
there we go
 
11:32 AM
1
Q: How can I get the best performance for my Bayesian inference problem (LDA) with Julia?

AdhamI have implemented Latent Dirichlet Allocation in Julia and here is my code: https://gist.github.com/odinay/3e49d50ba580a9bff8e3 I shall say Julia implementation is almost 100 times faster than Python(NumPy). For instance for a simulated dataset from 5 clusters with 1000 observations each contai...

 
11:50 AM
Next interview question: Perform a code review on the following destroyallsoftware.com/talks/watLix 16 secs ago
 
@EthanBierlein Over 800 points for this:
84
A: Default visibility of class methods in PHP

Jansen PriceDefault is public. Class methods may be defined as public, private, or protected. Methods declared without any explicit visibility keyword are defined as public. http://www.php.net/manual/en/language.oop5.visibility.php

 
Oh wow.
He's the god.
 
I'm for lunch, later.
 
Zak
12:08 PM
later
 
@SimonForsberg I am sorry I was not aware of that. Even I was not aware of this community. Someone mentioned here no stackoverflow. I edited the post. — Adham 1 min ago
I am tempted to say "No you didn't"
or am I blind?
 
Zak
I don't see an edit either.
Oh wait, I voted to reopen that. I don't know why.
 
There's no edit here
 
@Zak robo-reviewing?
 
12:19 PM
@SimonForsberg There's only one edit, made 4 min ago
 
thanks thanks, then I am not blind
 
How do we feel about e-mail addresses in comments?
 
why??
 
#=
LDA.jl

Adham Beyki, odinay@gmail.com
=#
 
maybe you want to drop a note, but lots of code-conventions with mandatory headers also mandate emails in these headers
so you can write angry mail at the people responsible
 
12:23 PM
For code review there is another site. As for adding more $EndDate etc you kinda have to explain what you want to do. — Sami Kuhmonen 9 secs ago
 
Never seen such a convention.
 
oh it's from back in the days mostly
 
0
Q: multiple ajax call that are executed based on a initial ajax call. each call resides in a separate file

Dan CostinelI have the following page: Initially, when the page is loaded (index.php), only the top names alongside the glyphicon-user icon are present (behind the scene, every name has a number associated with it, number which comes from db). When I click on the name of any user, a new ajax call is made...

 
where VCS was a dream of the future or royally painful
 
Ah, the post-your-code-on-usenet and other servers days.
 
12:26 PM
@CaptainObvious borken
yea, or even before that
 
protected the question...
 
good call
 
@SuperBiasedMan Why do you find that weird?
 
3
Q: Objective-C my own method for sorting numbers in array

StefanI've written some method for sorting asc and desc numbers in array. All I want to know is this good logic, and is there a space for improving this code? -(NSArray *)sortHanded:(NSArray *)inputArray ascending:(BOOL)ascending { NSMutableArray *inputMutableArray = [inputArray mutableCopy]; ...

I'd make a case for this question being closed. But either way, it certainly doesn't need this pile of upvotes.
It doesn't even work, as Martin's answer points out.
 
@nhgrif According to mikeash.com/pyblog/…, on a 64-bit architecture NSNumber uses tagged pointers for all integers up to 58 bits. So unless you test your code with really huge numbers, it is easy to not notice the problem.
 
I'd make the case that it's wrong to even expect you to always get NSNumber objects. But also, is this for all NSNumber instances, or only the ones which the compiler knows ahead of time what its value will be?
 
does this fit a codereview by any chance ? — Agawa001 20 secs ago
 
0
Q: Given a set of points and pairs of lines. Count the number of points that are between the pairs of lines

FelipeThis is a contest problem. The entire description is here. In resume: The question gives a point simulating a light explosion that always has a negative x coordinate, a set of pairs line segments on the y axis are given simulating walls and a set of points with positive x coordinate representin...

 
@Duga No.
 
1:01 PM
@nhgrif The question is titled "Objective-C my own method for sorting numbers in array", therefore expecting that an array of numbers is passed to the method seems OK to me. It might be used in a context where this is guaranteed. – The exact details of tagged pointers are (as far as I know) undocumented and an implementation detail.
 
@Agawa001 No it absolutely does not. Code that is not working is completely off-topic on Code Review. — Simon Forsberg 40 secs ago
I'm voting to close this question as off-topic because the author has posted it to codereview.stackexachange.com. — Matt B. 59 secs ago
 
Aftermoonking all
@MartinR It's 8 lines to find the smallest number in a set, seems so laborious. (although it seems like one ifmight've been a redundant extra check that the OP could've left out)
 
Morning!
 
@rolfl I was going through the Review queue, trying to set up another Machine that I am going to be using from my hotel room for the next couple of days. link?
Nevermind
I have a link
 
1:17 PM
 
I see your point
I have gotten into the habit of leaving comments on things, especially when they come through a review queue. but I see what you are saying.... and I didn't see your answer until just now either
 
Is there a reason why there's no tag on the racetrack but there are on the other challenges? I'd really like to follow the answers but I'm not sure how to filter..
 
On a semi related note, is there any reason there's no October challenge post on meta yet?
 
@SuperBiasedMan maybe people can't keep up with them. There are still a lot of challenges that I would like to post code for review about, but haven't had the time to do so.
3
there's so few posts about it that I don't think a tag would be useful.
 
@SimonForsberg I'll just use the search bar then! Thanks. I find it to be a very interesting challenge, but I don't have much time to get at it, so it's interesting to take a look at answers
 
1:32 PM
@SimonForsberg That makes sense, I was just making sure I didn't miss the post or something. This is the first time I'm taking part
 
@SimonForsberg I've heard that from a couple of people, which is the reason I didn't put one up. I guess the rest feels the same.
 
I've mainly heard myself saying it.
 
Perhaps your voice carried so hard it sounded like multiple.
IDK. Anyway, there seems to be consensus.
 
People don't have a problem with questions posted for old challenges, do they? I think I saw someone do that once before.
 
@Anyone feel free to write a question for one of the old questions.
4
@SuperBiasedMan No, we even add tags to questions if the problem they're describing happens to have been the challenge one day without OP knowing it was.
 
1:35 PM
Come to think of it I think that's what I saw happen before. That's great, thanks!
 
At first, in the end of 2013, we had challenges every week, which was tiring, and we ran out of good ideas etc. then we did a reboot which lasted for two challenges (UTTT, a Trading Card Game), then we did the Stack Snippets challenge, and then Simon Says, and this year we have had six monthly challenges, from April to September. (Source: Wikipedia Meta)
@SuperBiasedMan No problems at all. Ultimate Tic-Tac-Toe is gathering new questions every now and then. I think that's definitely our most popular challenge.
Also, it will be interesting to see how many submissions there will be for this month's challenge:
13
A: September 2015 Community Challenge

CarlAn Elevator Management System A building has \$x\$ amount of floors and \$y\$ amount of elevators. People create up/down requests to your system, and when they are inside an elevator, command it to go to a floor. Your job is to get them to the floor they want. If this interests people, we can...

 
I have one in the works at the moment, not sure how deep is too deep to dive in.
 
Still building mine, may have bitten of more than I could chew (again)
It's what you get for trying languages you're not proficient in. Makes simple challenges hard.
 
1:52 PM
 
Yeah I just stuck with Python for mine because I haven't done a lot of OOP stuff in general, let alone Python, so I'm hoping to get feedback mainly on that.
 
Greetings, Programs.
 
Greetings @Donald.McLean.
 
Hey Donald.
 
Greetings, Mr. Scala and Mr. Monkey.
 
2:03 PM
@Mast Sometimes the Scala is above my skill level. I'm still just an egg.
 
A big egg.... an ostrich egg..... an egg-head.
 
So I went to a Lynyrd Skynyrd concert on Sunday...now I can no longer hear.
 
@SuperBiasedMan That is one of the (many) points which are nicely solved in Swift, which has a (type-safe) minElement() method. In Objective-C you can do it as a one-liner with Key-Value coding, I have added option to my answer.
 
@IsmaelMiguel try "multidimensional array c#"
object[,] is nothing other than a 2d array. Object[][] in Java.
i.e. basically an array of arrays.
 
Is object[,] guaranteed to be rectangular?
(in Java, it is not....).
 
2:11 PM
If you define it as such
new int[10, 10] -> rectangular
 
IIRC object[,] is rectangular, but object[][] is not.
 
new int[10, 9] -> not rectangular
 
@JeroenVannevel That's still rectangular...
 
Zak
blergh. My head hurts.
 
Oh. That kind of rectangular.
4
Square? Square is what I was thinking of.
 
2:12 PM
Yeah.
He meant any type of rectangular.
 
Yeah, then [,] is rectangular always
 
But object[][] is not.
 
@rolfl yes
 
It can be, but doesn't have to be.
The difference is multi-dimensional vs. jagged.
 
Error 502 Bad gateway
wohoo!
@StackStatus...?
Error 523 Origin is unreachable
btw, context:
@SimonForsberg Could you please link me to a page about object[,]? I can't seem to Google it, since [,] is simply ignored. — Ismael Miguel 15 mins ago
 
2:20 PM
@SimonForsberg And what's the difference between what I have?
 
you have a list of an array. not the same thing.
 
I know
 
@SimonForsberg Search for "multidimensional array".
 
You can use .toArray()
 
That found my results right quick.
 
2:21 PM
And I specified that on the answer
 
204
Q: What are the differences between a multidimensional array and an array of arrays in C#?

ecleelWhat are the differences between multidimensional arrays double[,] and array-of-arrays double[][] in C#? If there is a difference, what is the best use for each one?

 
@IsmaelMiguel why would you first create a list just to then create an array from it? That sounds like bad advice to me.
2
the size is known from the start, no need to make a list.
 
The size is a magic number
Smells like an arbitrary limit
 
but it is a fixed number
 
But
for (int i = 0; i < data.Data.Tables[0].Rows.Count; i++)
The loop goes until whatever there is
Either 1 or 100000000000000000
Is it still bad advice?
I should have specified that on the answer instead of simply scrapping it out
 
2:23 PM
but if the loop would go too far then the whole thing would crash with an exception, which I assume that it doesn't.
 
@IsmaelMiguel That's not quite possible in C#. The .NET runtime would not allow it.
 
We don't know, and I won't speculate
 
object[,] arr = new object[52784, 21]; and then arr[i, j] = data.Data.Tables[0].Rows[i][j]; is, despite the lack of context of the rest of the question, pretty clear.
@IsmaelMiguel Unless stated otherwise, I assume that the code is working.
 
It is clear that the O.P. wants up to 52784 rows
 
What question/answer is this, for context?
 
2:25 PM
1
Q: Copying data from a table into a two-dimensional array

Ankit GoelIs it possible to remove the inner loop by assigning data.Data.Tables[0].Rows[i].ItemArray directly? object[,] arr = new object[52784, 21]; for (int i = 0; i < data.Data.Tables[0].Rows.Count; i++) { for (int j = 0; j < data.Data.Tables[0].Columns.Count; j++) { arr[i, j] = data.D...

 
@IsmaelMiguel so you think that you might save space by adding to the list one by one? How about you initialize the array as data.Data.Tables[0].Rows.Count instead? Problem solved.
 
That could do it
The idea is really to do not have some random number there
I've analised the number and it has a weird binary pattern
1100111000110000 is 52784 in binary, according to Javascript
 
@IsmaelMiguel It's probably not a random number.
 
It looks random to me
Well, not entirelly random
It starts with 1100
Then 1 digit is added on each side: 111000
 
Who cares about the binary pattern of the number?
data.Data.Tables[0].Rows[i] is a DataRow and not a object[]Simon Forsberg ♦ 40 secs ago
 
2:30 PM
And then the 1 closer to the 0 is turned to 0 as well
 
@EBrown I was at an ACDC concert last week, I've been deft for a day ahah
 
@TopinFrassi Mine was Sunday and I still can't hear.
@SimonForsberg No kidding.
 
@IsmaelMiguel my god man
 
@JeroenVannevel I know, this just baffles me. What does it matter the binary pattern of a number.
 
2:32 PM
I have no words for it anymore
 
It's not to matter
It's just to try to find a pattern to see if it is just some picked random number or not
 
@IsmaelMiguel That has nothing to do with it being a picked number or not.
 
Did we rename to Comedy Casino?
 
I can pick a random number right now that has a lovely binary pattern.
32768 (Or 1000 0000 0000 0000 in binary)
 
*facepalm*
And here starts my silence
 
2:33 PM
Does that make it any more/less of a magic number?
No.
 
@IsmaelMiguel That reminds me one time I tried to pick patterns in hashed values. It was a very pointless exercise.
4
 
@Phrancis I find it fun
 
I would be willing to wager that he ran that code once, found that the number of rows returned was 52784, and decided that was how big to make the array.
And he also probably found that the number of columns was 21.
So said, "ok, I need a multidimensional array of [52784, 21]".
 
The best way to find out the meaning of 52784 and 21 would be to add a comment and ask him, not trying to detect a pattern in the binary representation of the number.
 
^^
 
2:36 PM
There, the answer is deleted until I edit it
 
21 column would be a pretty typical data table, and 52K or more rows is a pretty trivial number of records. I'm not sure what's so perplexing about these numbers.
 
@Phrancis Well you-know-who has to try to find a pattern in them because ______.
 
@EBrown ...because it's fun
 
In fact, I'm looking right now (before this even started) at a table with 18 columns, and 75624 rows
 
@Phrancis Those are really weird numbers.
 
2:40 PM
IKR :)
 
Better add some records until the binary representation of them is a good pattern.
 
Could you please stop with that?
Thank you
 
XY problem, this is the sentence that seems more interesting IMO:
> The reason why I need this code is because, I want to write to data of this dataTable to Excel using Interop which requires a 2-D array as input.
 
There's also XYZ problems
 
@skiwi IIRC rolfl had one of those not long ago.
 
2:44 PM
What?? We have a lifehacks SE!
 
Yeah...
You didn't knew?
 
Nope
 
What is this Interop thing? I tried Google but not many useful results that I can tell
 
Ah ok thanks
 
2:47 PM
@skiwi There's all sorts of SE sites. Christianity, Space Exploring, WorldBuilding and a ton more.
 
Also, I still think that question is off-topic.
 
There's a meta for it
 
0
A: Copying data from a table into a two-dimensional array

WindRavenIf you need an object[,] your code is as good as i can see it being since a data table is an object[][] at its base (After digging through several different data structures that make up the DataTable. DataTable has DataRow[] which has DataColumn[] leading to an object[][] after boxing and pullin...

Here's a nice answer, i.e., "No, you can't really. Here's why: ... Now you could do this other thing, but it wouldn't really benefit anything"
 
@rolfl Stranger in a Strange Land reference.
 
0
Q: OAuth MVC5 app fails in subdirectory

JackMy MVC5 OAuth2 project is fully functioning in a root application directory but fails to function when I move the App to a sub directory on IIS. I understand it is a context issue, but I cannot figure out how to change it. Code is as follows: // POST: /Account/ExternalLogin [HttpPost] ...

 
2:51 PM
0
A: Rewriting specific parts of the code

EBrownI think the question is still off-topic, because the OP hasn't included the actual code-of-issue: Is it possible to remove the inner loop by assigning data.Data.Tables[0].Rows[i].ItemArray directly? ... The reason why I need this code is because, I want to write to data of this data...

 
0
A: Copying data from a table into a two-dimensional array

Simon ForsbergSeeing that data.Data.Tables[0].Rows[i] is a DataRow, which has a ItemArray attribute, I think it should be possible to do this: object[,] arr = new object[52784, 21]; for (int i = 0; i < data.Data.Tables[0].Rows.Count; i++) { arr[i] = data.Data.Tables[0].Rows[i].ItemArray; } Note however...

 
@SimonForsberg I was thinking about a way to write something like that
 

« first day (857 days earlier)      last day (3145 days later) »