« first day (1117 days earlier)      last day (3198 days later) » 

20:00
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Stored Procedure code shortening and optimization
0
Q: Is there a better option to returning a byte array from a method?

m-ypublic abstract class Element { // Removed for verbosity ... protected abstract byte[] GetBytes(); } I'm attempting to create an engine that can create a document in a very specific format. The document itself is composed of various elements, and each element has a very specific bina...

20:19
> Of course, the answerwe expect to hear frommost rational people is “Why
in the world do I care about a game with two nerdy people and a bunch of
rocks?
20:31
Do you really want me to troll CR too?? — findwindow 50 secs ago
/recruiting
Well, gonna troll it by not creating CR account. Booyah. — findwindow 12 secs ago
/nevermind
@Mat'sMug In my opinion, the reaction you put on there could've been better.
May 12 at 20:30, by Mast
DON'T FEED THE TROLLS
eh, there's a bit of a history with this guy
lol
@findwindow FWIW, I'm not giving up. You'll end up reviewing VBA on Code Review one way or another. Answering lazy dupes on SO is one thing, reviewing working code where the OP put their best coding effort and says "is there anything I can improve?" is something else - and we're a fun bunch too. The 2nd Monitor is waiting for you =) — Mat's Mug 37 secs ago
yes, that question was a lazy dupe, asked 10000 times already.
CR is having an improportionate amount of vba questions.. could that be?
20:46
I suggest you send your package to the Buildroot mailing list for mainline inclusion. You'll get code review and probably a good answer to this question (it's a lot easier to understand the question if one can read the code). Instructions for sending patches are in the manual. Don't forget to keep me in copy. — Luca Ceresoli 23 secs ago
Turns out, apparently there's still a lot of people writing VBA for a living. It's good to see more of them want to make their code better =)
Monking!
monking!
Monking @Phrancis
did you get the enum thing to work?
Yeah, your trick worked
btw: regarding superiority:
enum Status
{
    Pending = 0,
    Processing = 1,
    Parsed = 2,
    Resolved = 3,
    ParseError = 60,
    ResolverError=80
}
^^ perfectly valid C#
would never ever compile in java
20:50
Huh, that looks simple
Can you put that anywhere, or does Status have to be a class of its own?
it has to be an enum
@Vogel612 Also valid C by the looks of it
@syb0rg I don't know about that. I didn't dabble to deeply into C
@Vogel612 I guess what I meant is, does C# allow adding an enum into a class, like a private enum type of thing, or does it have to be in its own class/file?
the first
20:52
Ah, very cool :)
note that java does the same
Right, I read about that, tried to do it once but couldn't get it working
but java requires the file to contain a public class with the same name as the filename
and only allows a single public class per file (because inner classes are different)
compare:
namespace Acme.App
{
    public class SomeClass { /* bla bla */ }
    public class SomeOtherClass { /*different stuff */}
}
^^ valid C#. Exposes two different classes in the same .cs file (which can have whatever name)
Is C# namespace the same basic concept as Java package?
package acme.app;

public class SomeClass { /* bla bla */ }
public class SomeOtherClass { /* different stuff */ }
^^ blows up, because java doesn't like it
20:56
lol, right
@Phrancis the concept is similar
but java packages are mirrored in the source-file directory structure (and source file names for classes)
that doesn't hold for C#
Gotcha
I'll get around to learning some C# at some point, now that I have a Windows PC
heya there @ScottCraner nice to see you drop by
hi @ScottCraner!
0
Q: How to upgrade this web image extraction script to run on any aspx website?

Shantanu Bedajnai am very new to programming i have made a PYTHON script that downloads images from a websites but what my friend wanted me to make is that extracts images from a static aspx page that that but my question is how can i upgrade this script that it runs on any aspx website ? i mean that i don't hav...

21:04
Lesson learned:
After spending 6 hours tracking down a bug caused by accessing an int?'s .Value without checking if it is null
DON'T WRITE CODE UNDER DURESS
3
21:19
@CaptainObvious I VTC because it appears to be asking for how to implement something other than what the code currently does
@DanPantry a better warning would be to understand nullable fields
Google is opening a Detroit office to poach auto talent http://gizmo.do/qDnveS4 https://t.co/z6sx9xjvWf
@Quill I completely understand nullable fields
but rushed me makes mistakes
@DanPantry You didn't console.log(Value)?
@Mast c#
21:35
Uhm, std::err << Value?
Something like that.
It was on a server, so
it's fixed now anyway
the correct answer is unit tests at any rate
they would have caught it instantly
> Imagine Alice (a computer scientist), Bob (a biologist), and a chessboard with a
lonely king in the lower right corner. Alice and Bob are bored one Sunday afternoon
so they play the following game. In each turn, a player may either move a king one
square to the left, one square up, or one square “north–west” along the diagonal.
Slowly but surely, the king moves toward the upper left corner and the player who
places the king to this square wins the game. Alice moves first.
Same bloody problem as I linked earlier!
@DanPantry Yup. Checking whether something is null is a basic unit test.
Phrased like it's a different problem, but it's the same tactic to win.
Same algorithm.
21:56
@skiwi You don't happen to know a good Algorithms 101 book, covering the basics of whatever they do in that field?
I've found some books, but no simple ones.
22:08
@Mast Eh... I do have an Algorithm book
You first kind of need to understand data structures before taking on algorithms, though that book should have both
I never looked into it as much as I should have... but people say there's useful stuff in there
@skiwi Hashes, dictionaries, linked lists, things like that?
That book is massive!
Must be the Art of Electronics of the Algorithm world.
@skiwi Thanks :-)
@Mast Setting breakpoints in C# is the way to go, but you're looking for Console.WriteLine
@Quill Ah, yes, that will do.
And yes, you usually set breakpoints, but that's sometimes problematic.
Especially with client-server constructs.
C# is the only language that I actually use breakpoints for
@Mast Yep
22:21
@Quill I used to do it for C++ when I started with OOP.
22:37
@DanPantry bet you like that tag
hoho
Jeroen is santa?
he tagged a medieval suit of armour's codpiece as "hoho"
lol
I think this question is more suitable for Programmers (or, for particular code, Code Review). In brief: just put it in an object. Works great. The common drawback ("It takes forever to type, so I just import the contents and then don't know what is what") doesn't apply to Scala because you can alias imports. So if you are using stuff from Smurf a ton then you import org.cartoon.{Smurf => Sm} and you're down to only three extra characters per identifier (Sm.Launch(foo)). — Rex Kerr 43 secs ago
22:56
@DanPantry so funny though
23:07
0
Q: What python code can I use to find all numbers between 1 and 50 000 that have exactly 11 divisors

Shrek is not DreckWhat python code can I use to find all numbers between 1 and 50 000 that have exactly 11 divisors someone pls help me XD

@CaptainObvious gtfo
@CaptainObvious please be ended
also, wtf is that username
probably a troll
23:44
my PHP assignment looks awesome, the flexbox is great, the design is nice... everything is nice.... except the logo....
I can't use Photoshop drawing tools very well :(
Welcome to Stack Overflow. Please take the time to familiarize yourself with the Stack Overflow help file, which will help you understand what kinds of questions are appropriate for this site. This site is intended to help you obtain answers to specific programming questions, as opposed to providing tutorial, design or code review assistance. — MarsAtomic 53 secs ago
0
Q: New to C Programming...Struggling to Create Program to Calculate Gross Pay and Net Pay

K. WattersI have literally spent all day trying to get my program to work--and I haven't gotten far. Background/Point of it: I need to create a program that will requests the user to enter hours worked in a week and the hourly wage. I also need to get the program to print the gross pay, the taxes, and the...


« first day (1117 days earlier)      last day (3198 days later) »