When should a game get its own tag?
Game tags are not 'meta' tags, they identify a core concept that will be present in the question. minesweeper tells us something about what the code does, not about the person writing the code, or the problems they may be experiencing. So, game tags are real t...
I have the following ajax call and if it errors, I have a default error message stored in a constant which I'll use if the response doesn't contain a custom message. When I look at this, I keep thinking it could be done better. Can anyone suggest how I can do it better?
function requestServic...
//we have a match, compare name and change if necessary
if (![item[@"title"] isEqualToString:userItem[@"title"]]) {
//set user's item title to default title
[userItem setValue:item[@"title"] forKey:@"title"];
}
This sort of code is a bit redundant, and also shows inconsistency betwe...
This question asks about Code Review's own community projects. I think it would be okay to make a tag for these, but I think not simply Code Review's community project.
Any open-source project should feel welcome to ask for reviews of their code, and even host official-to-them code reviews over...
Importantly, for my answer, I don't think a project should have to be "home grown" to earn its own tag... but on the flipside, I don't think that everyone who posts a question about any random open-source-project should immediately get a tag.
@rolfl That's true, but I think it's especially true for open-source-projects which are clearly going to be less well known than more ubiquitous libraries.
So for example, if we did cardshifter, that might be explicitly for questions directly regarding the open-source project.
But once if got to the point of mods and stuff, you guys might want the mods for Cardshifter to also be under that tag. Alternatively, it may feel too cluttered, and creating a cardshifter-api tag might be necessary.
//we have a match, compare name and change if necessary
if (![item[@"title"] isEqualToString:userItem[@"title"]]) {
//set user's item title to default title
[userItem setValue:item[@"title"] forKey:@"title"];
}
This sort of code is a bit redundant, and also shows inconsistency betwe...
My first test (randomUpperCaseLetter) checks if the returned random letter is an uppercase ASCII one. The second one (compareCharactersWithAsciiCodes) is just me trying to understand Java.
package com.company.letter;
import com.company.RandomLetter;
import org.junit.Test;
import static org.ju...
You can't earn the Populist badge over a low score answer. You have to earn the Populist badge over an answer with at least +11 score, like a Jon Skeet answer. — nhgrif1 min ago
Is it bad that I'm going to be spamming that link left and right?
As a Code Reviewer, I can see the appeal for creating a tag to link these questions together. It's a logical grouping and someone may want to follow this tag.
However, as one of the developers and a reviewer, I have a problem with creating a tag for code from the project. If a tag were to be cr...
I do see the appeal... But shouldn't the tag be for the library we're exposing?
I mean, I actually kind of dream about seeing that tag on SO someday, but CR is kind of different.
Maybe it makes sense, but we would almost need two tags if anyone else but me asks about code that uses RD.
Btw. I over reacted. I most likely wouldn't burn it.
But once if got to the point of mods and stuff, you guys might want the mods for Cardshifter to also be under that tag. Alternatively, it may feel too cluttered, and creating a cardshifter-api tag might be necessary.
If you scroll up to that point, you'll see I was suggesting (or trying to suggest), that those who are actually using/following the tag could/should decide how to use it.
If you want/need two tags to seperate the innards from the outards, that seems okay to me.
But I don't think anyone would claim that making a tag for the API would be a problem... we already have those.
How many questions would you say you'd tag with each, currently?
I mean, eventually if enough questions exist for both, then definitely yes.
The question is, do enough questions exist for both currently?
And if not, do enough questions exist for one or the other individually?
And if so, let's create that tag, and tag only the appropriate questions. Don't tag future might-be rubberduck-api questions as rubberduck, but tag all the questions about the innards as rubberduck
Part of me really hates sites like that that promote "programming is hacking, and hacking is bad" and another part of me really just loves freaking out my friends.
@rolfl I don't know when you grew up, but I'm assuming it was in the days of good-o'l hardware hacking, and not the days of malicious internet DDOSing and site-hacks.
@EthanBierlein Don't tll the cops, but there were times when I would drill a hole through 2-cent coins and tie fishing line to the coin, then drop it through the phone-box, make calls, and fish it out afterwards.
As an exercise to improve my coding ability in C, I have attempted to write a simple and safe file reader. I believe this should be portable as well to major platforms(correct me if I'm wrong). For simplicity's sake I assume the file will fit in memory which is mostly true for my usecase.(Note: I...
This is a verification code generator, which generates n-digit numeric strings. (code can be 0000, so I chose String as a return type rather than Int or Long.)
It'll be great if anyone review this code and suggest more elegant or scalaish solution.
import scala.util.Random
object VerificationC...
For now this is my code, I used AJAX to read the result of my query.
function e() {
$.ajax({
url: "tbl/",
dataType: "json",
beforeSend: function () {
$("#info_tbl").show().text("Getting data from server...Please wait.").addClass("getme")
},
...
if you want every type that needs an ISmurf to always receive the same instance of a Smurf, you configure your IoC container to bind ISmurf to Smurf, and add a lifestyle configuration such as .InSingletonScope() (well that's how Ninject has it), which instructs the IoC container to always inject the same instance.
Disclaimer: I own the Rubberduck project's GitHub repository.
Should we create a rubberduck-vba tag?
No. The project's name is "Rubberduck", so the tag should be rubberduck.
Okay then. Should we create a rubberduck tag?
I'm biased, but I'll say yes, and @rolfl's answer says pretty much ...
I apologize if this is a stupid question, but I am new to Javascript and Node.js really hurts my head because it is asynchronous.
My goal is to query for a JSON object from an API and be able to work with it. I have tried to look for questions and answers on what I should be doing but none of it...
> I'm biased, but I'll say yes, and @rolfl's answer says pretty much everything I'd have to say about why - I'll only add that having this tag will allow me to stop having to introduce and link to the project's website/repository every time. It seems to be community consensus that there's a place for this tag, and I'll happily create it with my next post, and author a detailed wiki for it.
My code currently does not work, it stalls and then returns an error in Terminal: {"status": {"message": "Service unavailable", "status_code": 503}} — user36423653 mins ago
I have two shared accounts at asphostportal. One uses IIS 6 and one uses IIS7. On both I have websites in Classic ASP.
On the IIS 6 account, when I make an error in code and upload it then try to access that page, I get an error message that looks like this:
=================
Microsoft VBScri...
The Code Explorer is a dockable toolwindow that displays a TreeView that shows all opened VBA projects and their respective modules, but unlike the "native" Project Explorer, Rubberduck's explorer also drills down to individual module members, and allows quickly navigating them:
While it looks...
This is a code using stacks to output a permutation of N numbers from 1 to N:
#include <stdio.h>
#include <stdlib.h>
#define N 3
int main(){
int start, move;
int nopts[N+2]; //array top of stacks
int option[N+2][N+2]; //array stacks of option
int i, candidate;
move = start =...
How come certain random strings produce various colors when entered as background colors in HTML? For example:
<body bgcolor="chucknorris"> test </body>
...produces a document with a red background across all browsers and platforms.
Interestingly, while chucknorri produces a red back...
For the below question picked from here:
Write make inverse dict(d) that returns a new dictionary with the ‘inverse’ mapping. The ‘inverse’ mapping of a dictionary d is a new dictionary that maps each of d’s values to all keys in d that mapped to it. For instance,
>>> d1 = {‘call’: 3, ‘me’:...
On WinForm there is TreeView control.
In AfterSelect event is private field selectedFolder updated.
For event OnKeyDown for Delete key is event handler implemented that interacts data access layer : selectedFolder is passed as parameter to method DeleteFolder. The selected node of TreeView is a...
I constantly get javascript void with particular sites I used to have access to . Can you tell me how I can get rid of this. I have updated everything and have tried opening it up in Chrome. But no luck.
During my first years in uni, we had to implement sorting algorithms ourselves. As a result, I had implemented a naive Quicksort. I thought that it would be easier to find it from my pseudosite, rather than my old projects (because as the number of projects I was writting increased, the more diff...
SO has a lot of idiots who thinks they are "the best" and if you shoot one meter above there head, they are deadly hurt in there ego. Here the ego is a lot smaller and people are more friendly.
I successfully redirect std I/O using the following functions:
Checks if input/ output file has correct format/extension:
bool isFileName(const string& file){
if (file.size()<4) return false;
static vector<string>fileExtensions;
fileExtensions.push_back(".txt");
fileExtens...
You can do this :
HashMap map = new HashMap<String, String>();
Boolean isManufacturing = true;
args.put("isManufacturingKey", isManufacturing);
map.put("isManufactringChecked",workflow.getEmergencyChange());
Executions.createComponents("/myZul.zul", null , map);
create this controller :
pu...
you have to read everything and look what's the accepted answer
You just have to use the sclass attribute so your css is applied with the default css.
<style>
.bold{
font-weight: bold;
}
</style>
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row>
<label value="${labels.personal.name}...
I've been working in C for a while and have decided to implement my own dynamically sized array as an exercise and to actually be used in a project.
I have also written Doxygen documentation for the library, which I have removed from the code here for readability. You can find the full code with...
A debate has been going on at work about using Convert.ChangeType.
A couple of fundamental assumptions to this discussion is delineated below:
1. The discussion is within the context of web applications.
2. The types to which I want to perform casts are primitive types.
Now, to the argument it...
@mast it's not about the 2 points. but 2 downvotes on questions in 3 days (while in all the time I never had one) on 2 different questions get's me a feeling that someone is targeting me, and play's it smart.