« first day (730 days earlier)      last day (3304 days later) » 

4:00 PM
It does work!
 
So, now, ask yourself: why?
If you can click the window to shake it, then it already has focus, right?
 
I like Windows-Home better, but why in the world would I ever want to minimize all windows but one?
 
To clear the clutter.
But maybe I'm just messy when I work.
 
It's not exactly an unheard of use case
I sometimes minimize everything but the browser instances
 
Good blog article @nhgrif !
 
4:04 PM
I suppose not, but I've never needed to do it.
 
> Disassemble your problems so you can assemble your solutions.
 
Great one-liner to end this article
 
Yuck <grimace>!
Sugar on meat?
 
4:09 PM
Sure! Most marinades have sugar
 
@Hosch250 Sure! You've never had a honey ham?
 
@RubberDuck Nope.
 
Teriyaki beef/chicken/pork?
 
Nope.
 
You know what else sugar is good on? Fries.
 
4:09 PM
My condolances.
 
I typically don't even use extra salt/pepper - I like the meat taste.
I use salt when the meat is tough, sometimes.
 
So do I. The extra flavors are meant to accent and enhance.
 
Salt actually makes the meat tougher/dryer.
 
sugar on meat?
 
I don't even cook mine...
 
4:11 PM
1 min ago, by RubberDuck
@Hosch250 Sure! You've never had a honey ham?
 
Salt and pepper definitely, but sugar?
 
It was hard to kill--it should be hard to eat.
2
 
Idk. I like mine nearly raw anyway.
 
@sᴉɔuɐɹɥԀ Not much when you put it on the second before you eat it.
 
4:11 PM
True
 
Nothing like fresh venison cooked on a stick over the fire.
Just a touch of salt. nom.
 
YUM! ^^
-1
Q: Using really old RAM on a not quite as old (but still old) computer

AllanI have a couple RAM cards, 16Mx64 SDRAM PC133 and 128MB, SDR DIMM E. Newer Computer is and AMD Athlon 5000 dual core, 2200Mhz. Could I use either of these RAM cards in the computer?

"Could I?" Probably. "Should I?" No.
 
@nhgrif - for the record, Elephant tases good, at least it does, as biltong.
 
I wonder... if it tastes good the way the Pygmies would kill it.
Apparently, they would have one guy go cut a bull in the privates so it was in so much pain they could kill it easily.
I have a feeling those guys had a short life expectancy.
 
That meat would taste terrible, I'd wager. Stress before death makes the meat feel "tense" if that makes sense.
 
4:18 PM
@sᴉɔuɐɹɥԀ So I've heard.
 
@JeroenVannevel, btw, thanks for the bounty; it was just delivered. :)
 
Mon plaisir
Your answer helped me a lot
 
That's why you need to massage any meat you intend to eat...
... And the star wall still has not context...
3
 
With the meat grinder?
 
@Hosch250 Dear God.
 
4:23 PM
@cimmanon calm down a little, you're too harsh on the poor guy
 
That's a horrible image
 
@JeroenVannevel It is already dead by the time you are planning to eat it...
Unless you raise your own meat.
 
I did in fact raise my own meat
22.5 years and counting
 
I can't imagine cows enjoying a nice massage, though.
@JeroenVannevel I didn't mean that meat.
Anyway, a cow couldn't survive on our little mud lot.
And I can't eat chicken, something in it makes me, and most of my family, sick.
Ever tried bison?
 
What could be the difference between StringLiteralToken and StringLiteralExpression? Any ideas?
 
4:26 PM
@Hosch250 Is that true for other birds as well (e.g., turkey, duck, etc.), or just chicken in particular?
 
@sᴉɔuɐɹɥԀ Chicken is the worst, turkey does it too, and I've never had any other bird AFAIR.
 
I'm leaning towards the former being the as in new Person("frank") and the latter being var person = "frank"
 
@JeroenVannevel Not without more context.
 
That's all the context there is
 
Hmm.
 
4:28 PM
In an AST where tokens are named: what would be the difference between those two
 
A token is a single character and an expression is a mathematical statement, last I heard.
 
@JeroenVannevel a token is a single token, while an expression could be a variable representing that token??
Or a concatenation of tokens maybe.
 
A token in this context can be much more. Every part of the AST is a SyntaxToken
A MethodDeclarationSyntax is a SyntaxToken
 
"I'm" + " a " + "string."
 
But so is public
mm
 
4:31 PM
That's a broad use of the word "token"...
We're talking Roslyn I guess?
 
Si
Building the analyzer/refactoring which replaces "" with string.Empty
And I have to register it for a certain kind of node. When I look at the available options, I see SyntaxKind.StringLiteralToken and SyntaxKind.StringLiteralExpression
I've written a few tests that should catch a few scenarios, I'll see which one hits all of them.
 
If it makes any sense at all, it should probably be the token, but I really couldn't say for sure.
 
yeah, that's what I thought to
expression really seems like it refers to = "lala"
Token is just the "lala"
which is what I need
Well, none are hit using StringLiteralToken
I guess we're going with the expression
public override void Initialize(AnalysisContext context)
{
	context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.StringLiteralExpression);
}

private void AnalyzeNode(SyntaxNodeAnalysisContext context)
{
	var stringLiteral = context.Node as LiteralExpressionSyntax;
	if (stringLiteral == null)
	{
		return;
	}

	if (stringLiteral.Token.Text != string.Empty)
	{
		return;
	}

	context.ReportDiagnostic(Diagnostic.Create(Rule, stringLiteral.GetLocation()));
}
That's how easy it is to create a warning in Visual Studio
 
It appears the stringliteraltoken is the "this is a token, including the quotation marks" stuff.
 
That's what I thought but it doesn't make sense that it doesn't work by registering my analyzer on that
I have to register for expressions and then take the token from that
instead of just registering for the token
 
4:46 PM
I can't find any information about the expression.
 
5:00 PM
@Mat'sMug you see this? ^^^
 
nope
 
I don't know if it's someone from here but thank Santa! I'm now officially a 4k!
6
 
Congrats!
 
@JeroenVannevel if the won't that report some false positives though?
 
Congratulations! Welcome to 4K @Marc-Andre!
2
 
5:02 PM
Thanks @Mat'sMug :D
 
I don't see how it's determining whether it's string.Empty or ""
 
@RubberDuck Which ones do you have in mind? Right now I have these tests setup: gist.github.com/Vannevelj/5126a8259f6b0374c489
The "text" is a literal representation. It would say "string.Empty", not "" if it was string.Empty
 
@Mat'sMug Ih, no.... marc-Andre is 4K, time to graduate and make trusted 20K instead ;-0 ;-)
 
@JeroenVannevel Ohhhhhhh. I think I see now.
You could always do something like this to make me happy though.
 
@rolfl Ehehe by the time we will actually graduate I'll be 20k (It's a joke I'll probably not be 20k, but I plan to be at least 5k)
 
5:07 PM
       [TestMethod]
        public void ReplaceEmptyStringsWithStringDotEmpty_blahBlah_DoesNotInvokeWarning()
        {
            var original = @"
    using System;
    using System.Text;

    namespace ConsoleApplication1
    {
        class MyClass
        {
            void Method()
            {
                string s = string.Empty;
            }
        }
    }";
Tests don't just test the code, they document intent.
Make me literally LOL
 
Ah, I forgot that one. I already had it as Method(string.Empty) in another test
 
You're welcome. =)
 
5:22 PM
Ooh, three more points to bump someone.
 
5:38 PM
Issue 21 closed! You can now fix all "" occurrences into string.Empty (and it avoids it when used as a default parameter for a method)
 
Ideally it should once be detailed enough that I can just perform a CR by pulling someone's solution through it and list all the warnings.
 
If the code works as expected, and IF AND ONLY IF you are willing to provide a useful description of what your code does, then your dog would be happy to know that Stack Exchange has a peer review site: Code Review. — Mat's Mug 24 secs ago
 
If the code works as expected, and IF AND ONLY IF you are willing to provide a useful description of what your code does, then your dog would be happy to know that Stack Exchange has a peer review site: Code Review. — Mat's Mug 45 secs ago
 
5:43 PM
oh, hai @Duga!
2
 
@Mat'sMug It has been moderatored away
 
0
Q: Q.js worker pool

pgrahamBackground: I'm building a program to scrape data about hockey games in order to compile statistics. One of the run modes will process all of the games in a single season (1230). Processing a single game consists of scraping, parsing, calculating and persisting gathered data and needs to be perfo...

 
His dog is not happy.
 
I figured something like that from the screenshot.
 
@Mast at least user got the ping ;)
(and the message, hopefully)
 
5:52 PM
@Captain that's a kind of good question
@Mat'sMug You never know, it's the internet after all
Noob question incoming:
The star wall shows two of the messages with a hollow star.
Why is it hollow?
Who stole the inner star?
 
Hollow is a pinned post that you didn't star ;)
 
I starred one of them, which is why it's yellow and hollow
But how is it pinned? Pinned to what?
 
Pinned to the StarWallOfFame!
Mods & room owners can pin posts
They "stick" for 2 weeks IIRC
 
It happens when a mod or room owner stars it? Or do they have a seperate button for that?
 
I thought they stuck permanently.
No there is a second pin button.
It is in the drop-down menu.
 
5:57 PM
Cool
And so you learn something new every day
 
I'm relearning how hard it is to find good sources.
 
@Hosch250 Sources for what?
 
Last college essay of the semester.
 
Topic?
 
MIS systems.
 
5:59 PM
Oh
that's still broad
 
Yup.
Right now I'm looking for sources on CRM systems.
I have a couple.
 
@nhgrif Antarcticans are a race?
How difficult would it be to program Battleship in Brainfuck?
4
 
@Mast Probably pretty tricky.
 
@Mast @SimonAndréForsberg, you're up!
 
6:13 PM
@Mast How much Brainfuck have you coded in your life?
 
@SimonAndréForsberg Less than you.
 
@Caridorc: You're doing a good job with the title, but please don't prefix them with tags.
 
@Mast Probably extremely tricky, then.
 
Probably
 
For me it's just "extremely tricky". For you it is "extremely tricky"
3
 
6:16 PM
For me, it is a no brainer - just don't try it.
 
Probably
 
Unfortunately, FizzBuzz and Battleship doesn't have that much in common...
@Hosch250 that is really the optimal solution.
 
I think the multiplayer alone makes it a pain in the behind
 
The O(0) solution.
 
If I would have time, I would gladly try it in Brainfuck.
 
6:17 PM
Multiplayer? Uh-oh.
 
@Mast Multiplayer is impossible in Brainfuck.
 
Battleship is a multiplayer game @Hosch250
 
I could do a single-player AI one...
 
unless you mean local multiplayer
 
@SimonAndréForsberg Ofc
 
6:17 PM
Yes, local multiplayer or singleplayer AI.
 
sorry, I'm used to online multiplayer :)
 
technically the "challenge" is just to implement the logic that sinks a ship.. if you want to make a multiplayer game with a tournament mode and a fiendish AI, that's your specs!
 
I'll write an app for the Windows Store.
 
I'll make a server for it if I have time (which I think I will have)
 
I expect all of you do download and rate it for the working-implementation review as well as the code review(s).
JK
 
6:19 PM
I'm thinking about trying Unity again for a Battleship try
 
I'll do a Windows 10-style full WPF app - not the limited Win-RT version.
 
Or just build a server in Node.JS
 
First, though, I need to get my paper done.
 
About CRM right?
Which one?:
CRM may refer to: == Sales and marketing == Customer relationship management, processes implemented to manage a company's interactions with customers and prospects Cause-related marketing Courtesy reply mail, a type of business mail == Companies and institutions == Centre de Recherches Mathématiques, a Canadian mathematical research institute Centre de Recerca Matemàtica, a mathematics research institute in Barcelona Centre for Regenerative Medicine, at the Scottish Centre for Regenerative Medicine Comas Racing Management, a driver management firm of Érik Comas Commander Mexicana's ICAO code ...
 
Customer relationship management (CRM) is a system for managing a company’s interactions with current and future customers. It often involves using technology to organize, automate, and synchronize sales, marketing, customer service, and technical support. == CRM products == CRM products come with many features and tools and it is important for a company to choose a product based on their specific organizational needs. Most vendors will present information on their respective websites. Features These are what the product actually does and what value it can provide to an organization. Support Many...
I'm actually good there.
Right now, I'm working on Supply Chain Management, but I'm almost done there too.
 
6:22 PM
It often involves using technology to organize, automate, and synchronize sales, marketing, customer service, and technical support.
Oooooh, it uses technology!
 
Yeah, automation and all that.
It is really an enhanced database management sort of thing.
 
Automated 'will you please review your contact with our customer service' e-mails?
 
Yes, that is part of it.
When you open a support case, the CRM will store the information, it keeps information on what you have bought so the marketing team can target you with related products, the marketing team can use this information to target specific groups...
 
I'm working on some customer support code right now
 
cough cough.
 
6:28 PM
??
 
@rolfl Are you choking?
 
Code review? This way, please. — Tom 20 secs ago
 
Need me to thump you on the back, or hang your upside down by your heels, or do the Heimlich maneuver?
 
List<Integer> arr
#PirateNotation
 
Yeah..... got a tickle .... grabbed some water, I am OK.
 
6:31 PM
@Mat'sMug What did the pirate say on his 80'th birthday?
 
> arr
 
Aye, matey!
2
Cortana told me that one.
 
So, where are the Star Wars jokes?
I mean, I've seen JediCode, but afar from that
 
May the 4th be with you
 
You mean, Yoda comparison?
 
6:33 PM
@Mast I am not in to disney princess movies....
 
if (5 == num) // ...
@rolfl Try The Rescuers Down Under. No princesses in that one!
 
@Hosch250 Loved that moview... I remember when it was released... so cool.
 
> Crazy Yanks think they can do any fool thing... (said by Jake after Wilbur crash-lands on the too-short runway at Mugwump Tower)
 
I can remember the first time I watched the original too, those were heady days..... Watching films.... on film.
Stopping part way through to change reels.
 
So, guys, what are the similarities between ducttape and the Force?
 
6:37 PM
There's a light side, and a dark side, and it holds the world together?
 
Duct tape is real - the Force isn't.
 
Star trek is better.......
 
Oh, that isn't a similarity.
 
What do star-trek and toilet paper hav in common?
noone? OK, then.
 
Must be a boldly joke
 
6:39 PM
@Jamal I will remember avoiding tags at the start of titles, thanks for the callaboration in my cleaning up effort
 
Actually, that would be a twist, @Mast
 
Both dirty?
 
They both circle uranus seeking klingons.... yeah, old jokes.
 
lol
 
old, dirty jokes.
 
6:41 PM
If we go that way, what's a couple of Sith on a lightsaber?
 
Dead meat?
 
Sith kabob?
Oh well
 
lol.... yeah.
Perhaps going that way was not a great idea.
 
Oh well
I can't find @EthanBierlein his Python code he posted today...
 
I don't think the Jedi made a habit of skewering Sith like that, seeing they were supposed to be good...
 
6:44 PM
Jedi kill Sith...
 
-2
Q: typecasting from user defined to another user defined data type

nishantplease explain how the typecasting is working here. i mean in this statement: base *bp = (base*)dp; i guess the stm is converted from deri to base. i just want to know the flow of stm and how the loop is working. #include<iostream.h> class base { public : void out() { cout<<"base "; } }; class ...

 
@Hosch250 Well, since there are only 2 at a time, kabobbing them would solve the problem
Ah, this code
7
Q: JediScript - May the 4th be with you

Ethan BierleinIn honor of Star Wars day, I've put together this small Python program I'm calling JediScript. JediScript is essentially a scrapped-down version of BrainFuck without input or looping. Here are the commands in JediScript. SlashWithSaber: Move forward on the tape. ParryBladeWithSaber: Move backwa...

Although I think using ! as seperator would be more appropriate than ;.
StabWithSaber!StabWithSaber!StabWithSaber!
 
';' is traditional.
'!' is the traditional NOT.
 
just like JediScript ^^^ right?
 
stabby stabby
 
6:52 PM
1
Q: Increase performance on code with nested loops

Nilzone-My function is supposed to go through a given List<Integer> and find integers of same value, but only count them if the integers between them is <= the the integers that are equal: public static int findPairs(List<Integer> arr) { int total = 0; for(int i = 0; i < arr.size(); i++...

 
Mac Users are already Jedi
 
@nhgrif Well, that's what the marketing suggests.
 
We have the power to Force Quit our applications.
3
 
Windows users End Tasks.
 
Yes, you're a non-Force-user.
 
6:54 PM
What does Linux call it?
Well, the thing is, we end the job, Mac users just quit.
You'd think that the Force would help you finish, but it seems we can end jobs without the Force better.
Perhaps, the Force is really a liability, not an asset.
 
You don't get it... You end the job... A force user convinces the app to quit on its own. Haven't you see the "these are not the droids you are looking for" scene? Do you ever Force?
 
Nope, never seen Star Wars.
But, if anyone ever told me that, I'd get several times more suspicious and detain them on the spot.
 
0
Q: Re-using this piece of code for different objects

MoodyTo give a little context before showing the problem: I am creating a RESTful web application. A User can have multiple addresses, emails, phones and projects. Each of these is represented similar to the following object model, (Address in this case) public class Address { String type; //hom...

 
@Hosch250 has never seen Star Wars...
 
Poor me, right?
 
7:01 PM
That's a very nice idea! Let me try it out. I've already added DwmEnableBlurBehindWindow calls into Qt a long time ago... — peppe 58 secs ago
 
Lol, if I watched all the movies I haven't seen, I'd never get anything done.
OK, I'm going to take my dog on a walk, then work on my paper more.
Got to get it to the editor inside of a couple days because it is due next Sunday.
(My mom proof-reads my essays for me.)
 
@Hosch250 There are only a couple of Star Wars movies, you'll manage
My mom would have no idea what I penned down
So, why does Vader wear black?
 
1
Q: My reviews feel like a broken record

cimmanonI don't know how bad it is for other languages, but for CSS reviews, I feel like I keep pointing out the same mistakes every time: Lack of shorthand Failure to use more semantic HTML5 elements when they're appropriate (eg. section vs div) Unsemantic class names Some of these things I would ex...

 
@Hosch250 ...
 
You saw how emo Anakin was, and you ask why Vader wears black? Really?
 
7:09 PM
:P
Well, that, and they ran out of white plastice, building all those clone troopers
 
This might be a good question for the Code Review site (codereview.stackexchange.com), which is a good place to ask about code that technically works, but could probably be improved in some way. Just a thought! — Carson Moore 31 secs ago
 
Ummmm no. Just no. So many hours spent on discussions about code convention could have been avoided, if people stopped criticising the choice of convention.

No programming is wrong programming – A little guide to get your coding career started
c#, program, convention, php, code, css, programming, .net, coding, html
https://morphmantheclown.wordpress.com/2015/05/03/no-programming-is-wrong-programming-a-little-guide-to-get-your-coding-career-started/
 
Yeah, I don't agree
He takes as example building a two-page website and criticising people for thinking about whether it should have a solid backend for expansion
A few paragraphs later, he writes this:
> f the code needs expandability, it is probably best to use one of the expandable languages, preferably with some sort of framework to make it easier for future coders (or even future you, as a couple of hundreds of lines of code could be hard to remember a few months or years down the line). It’s also a common courtesy to use proper coding conventions in these cases, as it will help speed things up a bit.
So either you determine whether it needs to be extensible or not and the choice for a framework depends on that
If it's determined beforehand that it's not going to need expansion, well, who can argue against it
He does immediately argue the benefit of "proper coding convention"
And when other people read the code, he argues it should follow common coding conventions as well
 
I understand what he's trying to say, but he isn't bringing it strong indeed
 
Hammering on conventions when that isn't the issue at hand is hardly constructive indeed but that doesn't mean that conventions have no use (even outside his exceptions)
Imagine if that teacher didn't hammer on constants being uppercase and then he receives 20 assignments each with a different approach
 
7:21 PM
love your meta answer, @rolfl
 
@nhgrif :( I want to share your post on Facebook though... What about Google+?
 
user image
5
@Lyle'sMug You could just share the URL to the blog, you know?
 
in VBA, 2 mins ago, by sᴉɔuɐɹɥԀ
> Did I miss the star-fest?
 
@sᴉɔuɐɹɥԀ yeah, but if I open Facebook at work, I might get distracted....etc. etc. etc. you know what I am saying, if there is a button then I just share and facebook doesn't suck me in
 
@Lyle'sMug sure. and you don't get distracted with opening CR at work ;)
2
 
7:24 PM
@sᴉɔuɐɹɥԀ is cheating...
 
@Mat'sMug and the desktop notification for that ping hovered over the tab of facebook making it harder to close it.....
 
@Lyle'sMug Run away from the Facebook
 
@Mat'sMug I am a programmer, anything having to do with programming is work, right?
2
 
Discipline is the assertion of over more base desires, and is usually understood to be synonymous with self control. Self-discipline is to some extent a substitute for Motivation. When one uses reason to determine the best course of action that opposes one's desires, which is the opposite of Fun. Virtuous behavior can be described as when one's are aligned with one's aims: to do what one knows is best and to do it gladly. Continent behavior, on the other hand, is when one does what one knows is best, but must do it by opposing one's motivations. Moving from continent to virtuous behavior requires...
 
@Lyle'sMug That's what I tell my boss
 
7:26 PM
keep going I think I have about 10 stars left.....
 
@Lyle'sMug How many do we get each day?
 
I don't know, like 20 I think, for each chat room
 
@Lyle'sMug you don't know yet??
20 indeed
 
Do we get a badge for using all of them?
 
;-)
@Mast no but we should!
 
7:28 PM
Yea, we should
Needs moar badges
2
 
although...
 
@Mast There is a badge for being starred.
 
we're star-happy. other rooms on the network....
 
Outspoken
 
Yea, outspoken
Got that one
Not sure what the next level one is
Being starred a lot more, I think
 
7:29 PM
There isn't one.
 
Oh, outspoken is already the high level one
 
I suppose chatting about being a programmer isn't really programming is it?
 
2nd level of Talkative
@Lyle'sMug It's research
4
 
@Lyle'sMug Peer-research
 
7:34 PM
@rolfl You could make a post about that on Programmers and it would be HNQ in no-time
 
@Lyle'sMug probably got on his first day on CR chat, I bet.
 
We have only 4 people with the epic-badge...
 
Feedback wanted:
0
A: My reviews feel like a broken record

Simon André ForsbergNote: This is just an idea. A thought. I do like rolfl's answer First of all, is there anything essentially wrong with pointing out the same mistakes every time? Except the fact that it can get boring and is tedious to write enough text to explain the issue? I think that for as long as C++ comp...

 
0
Q: Python 3 asyncio - Simple client/server communication

sargasWhat am I implementing wrong on the client or server? The communication is not going on properly. Here are the order things run as of right now: Start the server Start the client Client executes up until the first response = yield from asyncio.wait_for(reader.read(), timeout=10.0) and times ou...

 
7:44 PM
It's not about burnout, at least for me its not. The css tag is not very busy (there's lucky to be 1 question per day) and I enjoy doing reviews of thoughtful questions. As programmers, we should always try to be DRY whenever it is reasonable to do so. I just feel like my reviews violate that principle. — cimmanon 5 mins ago
that comment ^^ suggests that I might be on to something...
 
Do votes on meta posts count towards the OP's reputation?
 
No
 
0
Q: Mixing Lens operations with "original" operations

ScarletAmaranthIs it reasonable to mix Control.Lens operations with the ones provided by the "standard library"? Consider the following fragment using qualified Data.Map as Map: getUniqueIdent :: String -> State (Map.Map String Int) (Maybe String) getUniqueIdent typeName = do indices <- StM.get ...

 
Seems like my review-helper idea is popular.
 
@SimonAndréForsberg Would you think it would work with IE11?
 
7:54 PM
@sᴉɔuɐɹɥԀ if you use IE to download Chrome, yes!
2
 
@sᴉɔuɐɹɥԀ Do I think anything works with IE11?
I have no clue about how to write userscripts for IE11
and would the computer at your job even allow userscripts?
 
FF all the way
 
Good points
Think it would work OK on Chrome for OS X then?
 
@sᴉɔuɐɹɥԀ yes. Chrome is Chrome. The operating system should not matter.
 
TTGTB, night all
 
7:58 PM
Night @Mast!
 

« first day (730 days earlier)      last day (3304 days later) »