« first day (837 days earlier)      last day (3196 days later) » 

4:05 PM
in TCG Creation, 16 hours ago, by Duga
Mat's Mug vs. Simon André Forsberg: 1281 diff. Year: +2171. Quarter: +667. Month: +945. Week: +218. Day: +135.
 
no sweat
I like how that little "competition" has been dragging since ~16K
 
@Mat'sMug And now you made it both to moderator ^^
 
lol yeah
 
I don't really want to comme back to that question, but...
3
Q: Binary Search Implementation

user81527I was just wondering is there a better way to implement a binary search than I am in my code? My function is taking 2 two lists - first_booth_voters and second_booth_voters with second_booth_voters being sorted and first_booth_voters not sorted. I feel like I am making an unnecessary amount of co...

The obvious indentation is fixed, but the code is still broken :(
 
4:09 PM
> After fixing the indentation there doesn't seem to be anything obviously wrong with the code. I think it should be reopened. – Jaime 1 hour ago
not obviously though
 
It is trying to find elements from the sorted array by performing a binary search on the non-sorted one. It should be the other way around.
 
and OP isn't asking for help fixing anything.. how is it broken?
@Morwenn it's just inefficient then, no?
 
@Mat'sMug Will a binary search always work on a non-sorted array? Good question.
 
I think you have review material, bud
 
No, it won't actually. So...
 
4:11 PM
@EBrown seen worse :)
 
@Mat'sMug It's all I could come up with considering the little code he has.
 
@Morwenn you might want to comment / ask for clarifications
 
@Morwenn is it as easy as replacing one variable with another?
 
1
Q: Getting all public constants from the main and nested classes

ChuckI wrote this recursive function to get all constants from a class and its subclasses. Can it be simplified? private static IEnumerable<FieldInfo> GetPublicConstants(Type type) { var subtypes = type.GetNestedTypes(BindingFlags.Public); foreach (var subtype in subtypes) { fore...

 
Apparently the OP liked it, though.
 
4:12 PM
@SimonAndréForsberg Even if we do so, there's still a bug at one place which makes it non-working.
 
> with second_booth_voters being sorted and first_booth_voters not sorted
could be that the OP mixed up the pure english description?
 
on SO OP edited these two...
 
Oh, and the indentation is still broken by the way.
 
and inverted the references
 
Yeah, the one on SO only has the indentation problem and the small bug I noted in the comments.
 
4:15 PM
Are you sure your algorithm works ? According to what you said - second booth voters being sorted and first booth voters not sorted , you seem to be using opposite , first booth voters as sorted . — Anand S Kumar 7 hours ago
ahh crap I've copied and pasted the wrong version. Cheers — Mikey 7 hours ago
 
@SimonAndréForsberg can we set one of those up for me and @Heslacher?
 
Come on guys, more answers on this one:
4
A: Translating the Rubberduck - Übersetzen der Gummiente - Part 1: Modelling

MastYour naming seems inconsistent. public interface OverviewView { void register(OverviewPresenter p); void initialize(); void show(); void rebuildWith(List<Translation> translations); void showError(String title, String errorMessage); } You have both a show() and a showError(...

Otherwise I'll be running with the bounty with a tiny answer...
 
@Mast Working on one, though I'm having issues traversing the code.
 
@Mast it's not eligible for auto-half-bounty
 
So, what do I do? Even if I actually edit to fix the indentation and switch to the corrected SO version, there's still a bug.
 
4:17 PM
@Malachi "we"?
 
@Morwenn looks like I shouldn't have stepped in on reopening that one. If there's no working version anywhere, it should be closed.
 
@SimonAndréForsberg I wasn't sure if you had a way to input requests to Duga or not. probably not because you run it on a PC?
 
@Mat'sMug I must have missed something in the rule-book.
 
answers must have been posted after the bounty was started
feel free to post another :)
 
@EthanBierlein Greetings
 
4:19 PM
@Mat'sMug Or delete and re-post his existing one. ;)
 
@EBrown That would be gaming the system.
 
0
Q: Continuation-Aware Web Server Concept in C#

mellamokbI've been fascinated about the concept of a web server that allows you to write the interaction in imperative style, instead of a collection of disjointed pages, events and callbacks. So I thought by clever use of asynchronous processing or continuations in C# it should be possible to approximat...

 
We are aware of the brief read-only banner and are looking into the trigger now.
 
@EBrown on a moderator-offered bounty? yeah, right ;-)
 
@Vogel612 Should you be modifying elements in the Iterator while it's iterating?
That seems like a bad idea.
I refer to:
    while (it.hasNext()) {
        Element el = it.next();
        String key = el.getAttribute(KEY_NAME).getValue();
        if (!originalLocale.containsKey(key)) {
            // LIVE COLLECTION!!
            it.remove();
            continue;
        }
        passedKeys.add(key);
    }
 
4:23 PM
@EBrown sounds like Eminem getting shocked at the hospital by the doctor when he's not cooperating when he's rocking the table while he's operating
 
@EBrown Yes, that's why you use an iterator
You can't use a normal loop or it will throw a ConcurrentModificationException
 
@JeroenVannevel Yes, but that still doesn't seem like a good idea.
 
490
Q: Iterating through a list, avoiding ConcurrentModificationException when removing in loop

ClaudiuWe all know you can't do this: for (Object i : l) { if (condition(i)) l.remove(i); } ConcurrentModificationException etc... this apparently works sometimes, but not always. Here's some specific code: public static void main(String[] args) { Collection<Integer> l = new ArrayList<...

It is
It's either that or copying it to a new collection and then iterating one while removing from the other
which is mimicking the behaviour of using the iterator
 
In this case, I would iterate it, add the ones you wish to remove to a new collection, then go through that collection and remove them from the original.
 
So much WTF..... so much.
 
4:26 PM
oh, the iterator
 
It's like this guy just copy pasted everything always.
 
interesting
 
Sorry to interupt.
 
Anyone here knows Java?
 
But, if Java allows for the Iterator bit, and that's recommended, then I'll not comment on it.
 
4:26 PM
@RubberDuck what's that about?
 
@IsmaelMiguel no, but I know JAVA.
2
 
@RubberDuck Damn, I only know Java. (Albeit not much.)
 
@RubberDuck But that's not Java.
 
@Mat'sMug Work mate. My predecessor... the guy was addicted to copy/paste programming.
 
for some values of "Java"
2
 
4:27 PM
Is there a standard way to open .mo files in Java?
 
@RubberDuck If it works, don't fix it. ;)
 
Google shows nothing
 
@IsmaelMiguel what's a .mo file anyway?
 
@EBrown it doesn't work, it functions.
There's a difference.
 
@RubberDuck it doesn't function, it procedurally executes
3
 
4:29 PM
@Mat'sMug A Machine Object File, usually used with GNU gettext() functions. It's used by tons of programs to translate programs. If Java had a way to open those, you don't have to be making up such a mess to translate Rubberduck
 
well RD is written in C#, it uses .resx files
 
15
Q: Translating the Rubberduck - Übersetzen der Gummiente - Part 1: Modelling

Vogel612So I have committed to making a German translation for the guys over at Rubberduck, which is localized via .resx files. Now these files are basically XML-Files with a certain, rather simple document structure: <root> <!-- Snip --> <data name="Resource_Key"> <value>Resource Value</value

 
yes, that's a .resx editor, written in Java
 
@EthanBierlein did you just try to close --> codereview.stackexchange.com/q/101344/18427
 
Oh, it is a .resx editor...
Well, I can translate it to Portuguese (pt-PT, I refuse to do pt-BR)
 
4:35 PM
which reminds me, I need to actually support that distinction.
 
Exactly
 
still it's an implementation detail - feel free to translate to pt-PT anytime :)
so far we have English, French, Swedish, German, and Japanese translations
 
Nice!
In a very few hours, I will give you an email.
You can upload a file to some temporary online service
Then I download the file and we arrange a way for you to retrieve the files
Or they are on your Github?
 
everything is on GitHub
 
Looking at the recent questions, am I the only one who implemented the StackSTV Election challenge?
 
4:40 PM
looks like it
 
@SimonAndréForsberg I think so
@Mat'sMug Nice, I must check it then
 
@SimonAndréForsberg @rolfl was working on it.
 
After I buy the egg-thingy with a timer to avoid burning pizzas
2
 
@IsmaelMiguel Hey, I've got one too. You'll have to try them both.
 
@Hosch250 Sorry, my brain tangled now :/ Can you explain a bit deeper what you meant?
 
4:42 PM
Next community challenge: everybody writes a VSDiagnostics analyzer
 
I wrote a resx editor too.
 
I remember someone saying that
Is a .resx file simply a plaintext file?
 
@EBrown modifying: no. Removing: yes. Thats the whole point of the normalization
 
4:45 PM
@Vogel612 Alright. Also, your large lambda's bother me.
 
@IsmaelMiguel .resx is XML based... if you use my editor, you'll need to change DEFAULT_TARGET_LOCALE to pt
 
@Malachi no
 
@Vogel612 Is it already compiled to a windows binary? If not, I use Notepad++ to edit it
 
@EthanBierlein I wonder who did, @Mat'sMug and I reopened it not to long ago, because a commenter said that the indentation fixed the brokenness of the code.
 
@IsmaelMiguel the tools by @Vogel612 and @Hosch250 let you compare translations side-by-side, and not be bothered with the XML fluff
 
4:48 PM
@Mat'sMug But if they aren't already compiled, I most likely lack the tools
 
Nice!
I must check at home
 
@IsmaelMiguel mine needs compilation and packaging, but I got gradlewrapper so that's a single command
 
@Vogel612 I don't think I'm going to post this review, there's not a lot of substance to it.
 
Commuting right now though...
 
4:51 PM
@EBrown Go for it
 
0
Q: n number of x on the y

MastEveryone knows "99 bottles of beer on the wall". Mat's Mug made a comment about mugs on the wall in The 2nd Monitor and I realized I never wrote a "beer on the wall" program. But that seemed way too easy, so I made it a "n number of x on the y" instead. It also seemed like a good excuse to use t...

 
Mine you just load the files you want.
No need to change any code.
 
I could make one is Javascript as well
 
5:07 PM
@Mast I know nothing of Python, but should the usage be putting "wall" in quotes too?
python script.py 99 "mugs of beer" "wall"
 
@Mat'sMug No.
 
@Mat'sMug that's unrelated to Python, that's related to the console you use to start python
 
ok
 
That's only necessary if you use something with spaces.
 
ah
 
5:08 PM
same thing happen if it would be java -jar script.jar 99 "mugs of beer" "wall"
 
Now you can put whatever you want on the wall ^^
 
I don't know what to add to my sorting library. I'm sad.
 
@Morwenn sort sorting algorithms?
 
@Mat'sMug What? x)
 
Shell expansion comes to mind if you're talking about reading from consoles ;)
 
5:18 PM
13
Q: Design-Independent Graduation is on for early September!

AnaThis is a follow-up to an earlier discussion Feedback Requested: Design-Independent Graduation. Like the title implies, design-independent graduation will go into effect and become a regular practice the second week of September! This means all sites which are cleared for graduation going forwa...

 
@Malachi we opted out
 
@Mat'sMug that was for this last monday
it was beta
 
goes to mod room
 
they might still do this to us @Mat'sMug
 
the test of that link suggests they're going to do it to all sites pending graduation
 
5:34 PM
> we're rolling out design-independent graduation with higher privilege levels linked to site design
 
they don't bump the privilege levels till phase 2, where we get a design (is how I read it)
 
@DanLyons I didn't read far enough
 
Actually I think I don't care about the rest, I just want a design. Even a design with "Code Review beta" would be cool enough.
 
since it's a review site, why not simply change it to "Code Review beta"
:)
 
Beta.SE
 
5:38 PM
Meanwhile, one user decided to create three new tags for a question. Then again, he was only four rep from 300 (the elevated privilege level for tag creation).
 
0
Q: How to avoid multiple promises in angular `$resource`

3gwebtrainIn my angular controller, I am using 3 different functions to get the data. it works fine. but is there a way to simplify this? here is my code : "use strict"; angular.module("tcpApp") .controller("projectSummaryController", ['$scope', '$routeParams', '$location', 'server', 'modalService...

0
Q: How to combine these 2 processes into one (beginnier)

greenshelli'm extremely new and learning via self taught method. essentially forcing myself to use python / powershell when capable. This creates a new file but omits any line that contains text i specify in remove_words I'd like to try to also replace text in that process but I'm not sure how to tie th...

 
0
A: Design-Independent Graduation is on for early September!

MalachiThere are plenty of users on StackExchange that wouldn't mind helping out with site designs So I ask Why is there only one person working on site designs? in response to We have one designer working on site designs these days at any given time. Ana's comment

wow
guessing that wasn't a good question?
 
@Malachi apparently not, especially considering it's an answer.
 
0
Q: There are plenty of users on StackExchange that wouldn't mind helping out with site designs

MalachiDirectly related to Design-Independent Graduation is on for early September! So I ask Why is there only one person working on site designs? in response to We have one designer working on site designs these days at any given time. Ana's comment

the downvotes are starting already.... I thought it was a good question
 
@Malachi it's something that has been iterated over and over and over and over on MSE and here and everywhere
and the consensus is: Let the professionals do it.
 
5:46 PM
how long have they given us this company line?
@HDE226868 There's no list at this point, simply because we haven't made one yet (not because it's some big secret). We'll make announcements on site metas when they enter the process. — abby hairboat ♦ 38 mins ago
 
It's like asking a question ranting about "ohmigawd downvotes suck let's remove them" at this point
 
@Vogel612 and what defines "professional"?
 
professional designers, preferrably working for SE since that allows them to keep their css and the mod tools closed to outsiders
anyways I'm already writing up an answer...
 
@Malachi you really don't like having MSE rep do ya?
2
 
@Vogel612 to my question or Ana's?
 
5:55 PM
to ana's
 
@Mat'sMug not much of a point to it from what I have seen...
 
http://www.commitstrip.com/en/2015/08/19/password-memories/
CommitStrip - Blog relating the daily life of web agencies developers
Password Memories
CommitStrip
1440006302
 
@Malachi seeing +/- vote counts is interesting :)
 
@Mat'sMug I can't see them
Abby just commented on my deleted answer to delete one or the other
@Mat'sMug what is the count on my question?
 
+4/-10
 
6:05 PM
lol
 
0
Q: Functional programing in Javascript

SilvaI write a little code in Javascript, that takes array of objects and doing some sorting stuff and than output in HTML page. I set a goal to do it without any frameworks and in functional style in purpose to learning vanilla JS. It would be nice if someone said that if there is some bad code of ba...

 
ah, whatever.
@Hosch250 there is a first post waiting for you in the queue
I have only lost 4 rep so far
 
Thanks, @Malachi.
 
@Malachi How did you lose any rep? Shouldn't +4 equate to +20 rep, and -10 equate to -20 rep?
 
6:18 PM
@Vogel612 Hmm, interesting approach
 
Interestingly this seems to have been up for consideration in the SE team, too
21
A: Can we do something about the "graduated" label?

Robert CartainoI think we should consider doing away with the label entirely. The whole concept of waiting for "graduation" to get the features you need is too restrictive… no matter what you call it. Instead, we should be looking at unbundling all the features that communities can really use when they have su...

 
Though you should (and hopefully do) realize that implementation loose coupling does not mean the process will have loose coupling too
 
'course not, but complaining about the process not being customizable and flexible is bananas when you have decoupled components
okay 200 rep to go for vote-counts
 
@EBrown the votes are moving around quite quickly
 
0
Q: grabbing hashed password from database

Nicholas RobertsI have just discovered the beauty of prepared statements in PHP and how they protect against SQL injection. In my first time using them, I am attempting to grab a hashed password from a database and seeing if it matches up against the password the user inputted into the login form. Is this the m...

 
6:21 PM
I am now at -1 for the day
 
@Vogel612 I'm not sure if I can agree on that, but the process should be a hell lot easier to change when the components are not coupled
 
@Vogel612 brilliant
 
@animuson, seems like some sites get preference over others --> CR Meta Tracking Graduation seems Biology and Network Engineering were able to be fast tracked past us in the waiting line. why is that? their announcement came after ours and yet they are full graduated now, and Code Review isn't. — Malachi 5 mins ago
 
Huh, how is @Vogel612's answer the only one? Did lots of them delete themselves?
 
malachi had one before that and the question isn't up that long
 
6:25 PM
@Malachi Life is unfair and life will always be unfair. — Simon André Forsberg 12 secs ago
 
Maybe people are too busy writing comments in order to write an answer :P
 
+4 now
 
@Malachi what Simon said says, but thanks for bringing that up nonetheless!
 
@Mat'sMug right?
 
Somebody know why the featured question isn't showing up in the MSE sidebar?
 
@Mat'sMug I read that as "shouldiblamecaching.corn" for some reason.
 
Not sure why the m went rn on me.
 
This question seems like a better fit for codereview.stackexchange.com, as you don't seem to have a problem. You want to improve the quality of your code. — sstan just now
 
@Vogel612 ^^
 
6:30 PM
Hey, I know how to improve my sorting library. I still have to work on the design to make the thing elegant though.
 
@EBrown yea but that's here and not on MSE
 
@Vogel612 Shows up properly on SO too, perhaps Meta.SE isn't supposed to show Meta.SE featured questions?
 
hmm yes...
 
@Malachi Wow.
 
@Mat'sMug C# question...
 
6:32 PM
yeah
 
Downvoting questions is fun. You don't lose any rep.
 
@Mat'sMug Is this: private set { if (_Position != value) { var oldPosition = _Position; _Position = value; OnPositionChanged(new PositionChangedEventArgs(oldPosition, _Position)); } } proper?
 
@SimonAndréForsberg Glad mine was only .com to .corn then. :)
 
6:33 PM
@EBrown except _Position should be _position ;-)
 
In one online book, the typer changed a bunch of 'm's to 'rn's, and 'rn's to 'm'.
 
@Mat'sMug Believe it or not that's on my list of things.
I use _PascalCase for private things everywhere.
Need to _camelCase it someday.
 
you could change the OnPositionChanged call to only happen when the value actually changes.
 
@Mat'sMug That's what it should be doing.
That's what if (_Position != value) is for.
I thought.
 
oh right, sorry.. lol it's hard to read all in one line
 
6:35 PM
@EBrown you could give github.com/dotnet/codeformatter a whirl (caveat: I haven't tried it myself)
I noticed it one day when perusing projects from the Roslyn team
 
@DanLyons new pic?
 
lol
 
I finally associated my gravatar with my SE account :P
 
@DanLyons There's so little here I can probably just refactor it by hand. :P
 
3 comments about being fair, and then simon says "life is unfair" lol
 
I found it amusing that people actually need a warning label to tell them it's a bad idea to tip a half-ton machine, so I've used it for a while
 
Made an issue for it to remind myself.
 
0
Q: Userscript hiding boxes on linkedin

DannnnoWhen looking at people you may know on LinkedIn (requires you to be logged in) there are sometimes some annoying boxes that are for people who are email contacts but not on LinkedIn. I don't want to see these. If I wanted to connect with them and invite them to LinkedIn, I would have. So I wro...

 
@DanLyons I probably shouldn't do that, mine is still the Dolan Duck.
 
current score: +13 | -0
I sure do hope it's not only you guys who upvoted it, else I'm probably in for a rough ride now
 
6:41 PM
@Vogel612 Briliantly written. I couldn't have said it better myself.
4
 
@EBrown VSDiagnostics contains a fix for that.
 
And probably better that it comes from you and not from me.
 
@Hosch250 I'd rather do it manually, gives me something easy to do. :)
 
You can fix it across your entire solution with a single click.
@EBrown :(
Document, project, or solution.
It updates references too, so you build doesn't break.
 
@Hosch250 So does CTRL + R, R. :)
 
6:44 PM
No it doesn't. That only fixes one bad name at a time.
 
@Hosch250 Right, but it still updates references. :P
 
So, it does update references, but it doesn't fix all the names.
 
Nah, but I figure this gives me a good reason to go look at each and every file and make sure there are no other glaring issues.
Plus CTRL + R, R let's me rename them in comments and strings as well.
 
which may have unintended consequences
 
True.
 
6:48 PM
Potentially, which is why I don't usually use it.
And, not to be rude (it may sound that way) but I don't trust that VS Diagnostics won't apply other rules I really don't want applied.
 
@Vogel612 but you get a previous box to review changes
 
which is unnecessary if you just rename the AST node
 
@Mat'sMug Until you do a double-tap on Enter.
 
@Vogel612 I predict a +50 answer there
@EBrown there's always Ctrl+Z ;-)
 
@Mat'sMug And Git's revert command.
 
6:53 PM
@Vogel612 comments, string literals and XML comments cref are in the AST?
 
@Mat'sMug Regular comments and string literals are not, IIRC.
XML cref's are, though.
 
how should I know, I'd dig into roslyn to find out
 
That I know for fact.
Oh crap.
Should protected fields be _camelCase, _PascalCase, or PascalCase?
 
2 upvotes on MSE until my first real repcap ever
 
@Vogel612 You're on 18 with that answer now
Seems doable.
 
7:01 PM
@Mat'sMug Any thoughts on "should protected fields be _camelCase, _PascalCase, or PascalCase"?
 
@EBrown Depends on the language and on the coding guidelines you follow.
 
protected is just like public as far as the type is concerned, so PascalCase
@Morwenn C#
 
@Morwenn C#, and I'm trying to follow best-accepted.
 
Oh, ok.
 
7:03 PM
How do I close a GitHub issue?
Found it.
Nevermind.
So that's one issue solved. :)
 
Hey folks. I stumbled upon this meta post and saw that GD's info was missing. Here's the first public graduation announcement if anyone wants to update those posts
 
done
 
@EBrown Do you know that you can close an issue directly from a commit?
git commit mystuff -m "Some modifications. Fixes #4"
 
@Vogel612 Thanks! Also the weeks column should be 34, if my understanding is correct
you rock
 
@Morwenn Does including "Fixes #n" do that automagically?
 
7:13 PM
yep
 
Nifty.
 
I like JIRA's Kanban board more though to change the state of issues
I don't think it's free for Github though
 
@EBrown Close #n works too.
 
Fits better on codereview? — vidstige 35 secs ago
 
@Hosch250 That's good to know.
I had hoped there would be something like that.
 
7:18 PM
 
well done!
huh, -1?!
"Yes, I am proposing to remove the whole graduation thing." -> I agree. I think that's probably in the works down the road. Like Ana said: this is the first step. We haven't made any changes to this process in 5 years, and we're finally re-examining it now. It used to be one step. Now it's two steps (phases). We'll keep working on it, and it will be more steps soon. — abby hairboat ♦ 1 min ago
 
yes, one.. against 21 upvotes
 
They handed out a new employee reference sheet at work...I know at least two people who's names won't be on it.
@Vogel612 Have a minute, to chat quick about your question?
 
sure, let's drop into a separate room
 
Alright, set one up and invite me. :)
 
7:30 PM
since you guys are still talking about it (@Vogel612 and @Mat'sMug)
not posted yet..... what do you think?
 
> It seems like some sites have gotten preference because it's partially true. I'm not familiar with all of the factors that go into determining the order of site designs, but there have been a few times I remember where CMs have asked for individual sites to get priority.
 
@Malachi meh
 
I know.....
 
I think we need to let the dust settle a bit now
I don't see anything that needed to be said, that hasn't been said.
 
7:32 PM
agreed
time to fight our way to the top of SO
lol jk
 
0
Q: Refactor to_csv method to a few lines

Antarr ByrdI have a method the returns a Model as csv. Its there a way I can reduce this method to a few lines? def to_csv CSV.generate do |csv| csv << ['id', 'published', 'update', 'title', 'number of views', 'number of favori...

 
0
Q: Find checked-in code without review-board requests

blackdustIt has been alleged that I have some checked-in code without review-board requests. I dont think that this is true, definitely not intentional. We use git for version control and review-board for well, reviews. Is it possible to clear my name and reputation from this incident?

 
Do we have a StackOverflow bot? o_o
 
Oh, that's new to me.
 
7:49 PM
0
Q: Project Euler Problem 50 in Haskell

Ben The prime 41, can be written as the sum of six consecutive primes: 41 = 2 + 3 + 5 + 7 + 11 + 13 This is the longest sum of consecutive primes that adds to a prime below one-hundred. The longest sum of consecutive primes below one-thousand that adds to a prime, contains 21 terms, an...

 
@Mat'sMug Just so you can see it too: codereview.stackexchange.com/questions/95004/…
 
@EBrown you know you get a ping for every answer on a question you put a bounty on? ;-)
 
@Mat'sMug How am I supposed to know that? I've never bountied anything...lol :)
 
8:04 PM
13
A: Design-Independent Graduation is on for early September!

abby hairboatSome clarification: This is only one step in a very long process of figuring out what it means to be what kind of site on the SE network. We had the concept of a strict graduation for many years. You were a beta site until something mysterious happened and we descended from on high to tell you...

3
 
0
Q: console.log() style %s/d/i/f/o placeholders replacement function

ᔕᖺᘎᕊAs part of a larger project I'm working on, I've made a function that aims to replicate, as best as I can, the placeholder part of the console.log() function usable in most browsers (also printf, AFAIK). It replaces %s, %d , %i , %f and ,%o. It works by having 'unlimited' parameters (the replace...

 
@CaptainObvious Wouldn't that be called "string formatting"?
 
8:36 PM
247 questions.
 
@Hosch250 there is another in the queue
 
0
Q: Why is this Excel VBA loop not working right?

MatthewTo start, I have two columns in my sheet. The first column is a date and the second column is price. I want the prices separated into columns by their corresponding year. To do this I am cutting and paste selections in a loop, however my selection is being pasted in the wrong places. I'm not sur...

 
@200_success sounds good to me
 
@Malachi Close him.
 
@Hosch250 gone already
you using the cool userscript for Firefox or Chrome yet?
 
8:40 PM
Since your code works you this might be a better fit on Code Review (codereview.stackexchange.com) Stack Exchange which is a question and answer site for seeking peer review of your code. We're working together to improve the skills of programmers worldwide by taking working code and making it better. — scrappedcola 31 secs ago
 
No.
 
4
Q: Review Queue Desktop Notification Script

MalachiThis Script will make it so that you are notified on the Desktop whenever new reviews are available, as long as you have a review tab open. How to use Install Greasemonkey (Firefox) or Tampermonkey (Chrome). These are userscript managers and allow the script to make use of GM_* functions Insta...

 
I know.
 
:)
 
It'll be alright.
 
8:42 PM
I am thinking about making it tell you which queue has reviews in it
@200_success you want to do it? or...
 
Should it be or just ?
 
routing is going to be more generic
 
@200_success url-routing is better, routing could also include actually cool things like routing traffic ...
or routing code for a self-built router
 
Let's go for the unambiguous. . Go ahead and start introducing it.
 
go forth and flood the frontpage
 
8:45 PM
wow
@SimonAndréForsberg I added a note onto that post. what do you think?
 
@Malachi Thanks.
 
@SimonAndréForsberg you are welcome, I should have done that in the first place
 
The best place to write this question in Stack Exchange would be Code Review (I believe) — David G 11 secs ago
 
0
Q: Which design pattern is suitable for three classes

FaisalI have a scenario. User will create a package and add tasks to that the package. For each task multiple users can be added as well. That's how I am trying to implement it. public class Package { public string Name {get;set;} public List<Task> TaskList {get;set;} } public class Task { ...

1
Q: Bootstrap alert plugin JS

sandraquI'm now venturing into the world of function writing. I have pieced this code together getting a head start from Dynamically create bootstrap alerts box through javascript. I have added animation on show and an automatic hide, but you'll see I'm repeating the call to the animation. Challenges ...

 
@Malachi This is perfectly valid C#: var v = new[] {1, 2, 3,};
 
8:59 PM
???
 
Yup.
 

« first day (837 days earlier)      last day (3196 days later) »