You should be reporting as one specific reason (even forgot which one) if your goal is that the user gets annihilated, and apparently it's not the spam flag that does that job
What makes something spam and when should I flag it?
A post should be marked as spam ONLY when it contains an unsolicited advertisement.
It should NOT be marked as spam when:
The answer contains no useful information, such as an answer that says "I don't care about your problem". Flag an answ...
This bs ^^
@Quill I don't agree with that, they should fix their ML instance and let the user choose the intuitive option
> It contains only gibberish, such as "fsdguejgkfdlk". Use the 'offensive' flag for these cases, or flag 'for moderator attention' with a custom explanation if it requires more detail.
I am aware this problem has been asked before but in java e.g Printing longest sequence of zeroes. This is a similar problem but in C#. A brief explanation of the problem is to find the longest sequence of zeroes in a binary representation of an Integer. For instance, the Integer 529 in binary g...
hi, this is my first CODE REVIEW post. just checking if it's alright. i'm just looking for a general review, advice, etc. http://codereview.stackexchange.com/q/128081/81072 esac # mppkg=MacPorts-${mpvers}-${osvers}-${osname} mpchk=MacPorts-${mpvers} echo $mppkg.pkg echo $mpchk.chk.txt curl $uridist/$mppkg.pkg -O curl $uridist/$mpchk.chk.txt -O sha256=$(shasum -a 256 ./$mppkg.pkg) # if grep $sha256 $mpchk.chk.txt;
I wrote this script to automatically install the relevant version of MacPorts.
It's supposed to be used in a fashion similar to the official installer for HomeBrew.
FYI: The real reason that I decided to write this script is; I'm not all that confident in every aspect of my bash scripting abili...
I have been experimenting with jQuery and HTML placeholder plugin for practice work.
I've used this jQuery plugin. I've checked it in IE8 in, it seems it works.
Could you please check and write is this implementation and integration is correct?
/*!
* jQuery Placeholder Plugin v2.3.1
* h...
I've created following code which works just fine:
GraphBar1.GetComponent<RectTransform> ().sizeDelta = new Vector2 (50, oScript.reactionTimeArray [0] * 1000);
GraphBar2.GetComponent<RectTransform> ().sizeDelta = new Vector2 (50, oScript.reactionTimeArray [1] * 1000);
GraphBar3.GetComponent<Rect...
@vascowhite: please keep your comments constructive. Note that Mast is very active user on Code Review, this is not just their personal opinion. — Martijn Pieters ♦58 secs ago
@skiwi yeah, i guess most people want their code reviewed if its not working properly and they want to learn why, and how to fix it, or how to write better code. thats the general vibe i got. also people here tend to share entire scripts. which StackExchange doesnt tend to have.
I have a user-editable dictionary of content used to fill in a string.Template and I wanted to allow the user to fill the same template with several values at once.
Using only values, itertools.product would be enough for my needs but I needed dictionaries to fill in a template. I also wanted us...
I wrote method which sorts an array of hashes by given hash keys. The method should put nil values at the end.
def sort(records, *attrs)
records.sort do |a,b|
result = 0
attrs.each do |attr|
unless a[attr] == b[attr]
result = if a[attr].nil?
1
...
I’m pretty new to programming and python in particular. This is a simple ICMP/TCP scanner that dumps output to a terminal and/or csv file. My goal was to make a daemon that could do simple scanning without requiring any special imports. It is my first attempt at writing something that would be us...
I am new to Java. I am developing a GUI using swingForms on Netbeans IDE. In my code I have 3 Buttons.
Add- which opens a Dialog to select only arxml files and return the path of file to JTextarea.
Delete- where I can select the added file paths to delete.( here am able to select the entire p...
I am doing a college project and I would like to write my jQuery code following best practices.
The project involves using the jQuery .getJSON method to retrieve information from a json file.
I have left out parts of the code so that it is more readable (however this is indicated in the comments...
I'm not perfectly sure this fits the stackoverflow meta, perhaps it is more appropriate at codereview? Besides, can you please share the html or at least the criteria followed that generates such a code? many pieces of code are repeated, but there are no clear patterns of the display div classes. — briosheje33 secs ago
Write a program that accept user input from the keyboard, the program should take a number and then test it for the following age ranges:
0-10
11-20
21-30
30 and over
Display the message in the output window in the following format
e.g. user age + ("is between 21-30")
I'm voting to close this question as off-topic because it’s about working code and not broken code, thus it belongs to codereview.stackexchange.com. — Xufox53 secs ago
The way I'm seeing it is that if you view the server and database as a coheisve unit (aka, microservice) and the db is opaque, you would not store the types in the DB (and thus you wouldn't have an AppointmentTypes table)
There's no problem with it, but then if you want to add an appointment type you have to modify two locations - the db AND the service
it's a big deal when you try and do continuous deployment
we have two web services on a live environment that point at the same DB (well, DB cluster)
There could be a scenario where one of those applications would error when trying to display "newer" appointments because a type was defined in the DB, but not in the c#
that said, that would happen regardless of approach, I guess..
basically, I have a model with 5-6 values on. each of these values are mapped to enums in C#
There's nothing "interesting" about each of those enums, as far as the DB is concerned (if they were their own tables they would just be an ID and MAYBE a description of each one)
just wondering how best to approach structuring that kind of db model
//Program to find the kth smallest element in the BST
public class KthSmallestElement {
static Node root;
//method to insert a key
Node insertRec(Node root, int key)
{
//if the tree is empty
if(root == null)
{
root = new Node(key);
return root;
}
//otherwise recu...
currently all of these enums are stored in one giant look up table which doesn't sit well with me, especially as someo f those enums should really be discrete resources in their own right
My main goal is to make it simple to add new values because the business will ask for new values to be added..
as for removing them, we could apply an attribute to the enum ([Obsolete]) that would then have those values filtered out when they are returned by a web service or similar.
fwiw, the current way of doing things like this is to store 2-3 character codes as a legacy holdover. I'd like to avoid doing that lol
you're over-thinking this. make a separate table, and get rid of the enum. it's something the business will want to change on a whim, sort and filter in ways you can't imagine at the moment, etc. - it's an entity of its own. an enum paints you in a corner
that's what I was thinking - but then you end up having to specify a resource for apponitment types, and the user would have t odo something similar to GET /appointment-types to determine what they may specify when POST /appointment
I thnk I'm just having conceptuallising it simply due to the vast amount of cognitive load, atm
appointment types is not just the only thing.. this entity also has 0..1 relationship with some far off system and 0..* relationship with another system and other supporting tables and....
you get the idea
And that is, btw, without factoring how any of this information is translated and displayed to an endu ser
imo the fact that other systems need it sounds like it's definitely a good idea to have it live in one single place - the database all these systems are playing with
Sub ProPlanner() - the fact that the method doesn't start with a verb that tells us exactly what it does, is an indication that it's doing too many things. Split things up, extract responsibilities into separate functions and procedures, each responsible for handling their own set of possible errors. I'd suggest you put your code up on Code Reviewonce it works as intended, if you would like peer review / feedback on all aspects of the code, and tips for making it cleaner, more fail-safe and generally easier to maintain. — Mat's Mug27 secs ago
select distinct top 10
convert(varchar(20), dateadd(minute, datediff(minute, 0, vcoh_updated), 0), 108) as lastRuns
from VENDOR_CLIENT_ORDER_HISTORY
where vcoh_detail like '%Called'
Problem:
Write a program that, given an age in seconds, calculates how old
someone is in terms of a given planet's solar years.
Earth: orbital period 365.25 Earth days, or 31557600 seconds
Mercury: orbital period 0.2408467 Earth years
Venus: orbital period 0.61519726 Earth years...
The main reason being that if other systems want to use the app they would either have to create their own enum or use magic values (if id == 5..)
as for translations, there's no way by having the translations on the client would there be a way to deploy a new "type" without having to update the client to translate it
there's no such thing as a free lunch ._.
3
other apis (i haven't looked at the SO one) tend to also use enums - Stripe, Riot, for example
for example, stripe uses well-defined string enums - so i'll just to go with the fact that adding a new value needs to be handled in a backwards compatible manner. f.e the client if it sees a value it doesn't recognise should ignore that value
also i'm rambling on so much i actually don't know wtf i am saying. im going to bed LOL
> I'm not asking on how to pick out the Time only but my question is how can i go about in accessing the getEmpResults variable results and do what i need to do which is pick out the time only .
@EᴀsᴛᴇʀʟʏIʀᴋ was blonde years ago, i dyed it black, now it won't go anything other than dark brown. i bleached the entire fringe (the bit that is blue) into white last night
I'm not actually going to sleep, though, fyi, it's 4pm, that would be a bad idea
> freelance COBOL
i do not want to be the person paying for that programmer
I've been working on an iOS IOT client app which uses MQTT.
After some reading I decided to go with CocoaMQTT.
I have only been programming in swift/iOS for about 2 weeks now, so I thought I should have my base code reviewed here before continuing any further.
The idea is to have most of the ...
Inspired by this question and therefore this one I decided that clearly the best way to solve this is with Regular Expressions.
A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N.
...
I'm working on building understanding of data structures in general, and specifically linked lists in this example. I'm also trying to increase my ability with templates.
In cross-referencing dozens of examples, I've blended what I've seen into the following node template "Node.h" file:
/*
11 ...
the complexity of correctly implementing IDisposable is due to unmanaged resources that could be trapped in a base class that's inherited, when you cannot know for a fact that Dispose isn't overridden; sealing classes kills the problem at the source.
we can go on dance practicing, I dont want to but my mother says you will need it even as programmer. They have balls also.
I disagree with it
So can some programmer and I mean actually programmer who works in some medium or greater firm tell me how it is with dancing ?
How you used it in your li...
I want to make a program c# in which user inputs 10 numbers and program have to print only even numbers, what should i do after this?
int[] n = new int[10];
n[1] = Convert.ToInt32(Console.ReadLine());
n[2] = Convert.ToInt32(Console.ReadLine());
n[3] = Convert.ToIn...
So I've created this encryption programme but for some reason I'm not able to get a working decryption programme... Can anyone create one for me out of my encryption?
for (int loop = 0; loop < password.length() - 1; loop++) {
if (passArr[loop] % 2 == 0) {
double ascii =...