A few notes (overall very good for a beginner):
There is a maximum amount of characters you can input on a line according to the C standards
ยง5.2.4.1 Translation limits
The implementation shall be able to translate and execute at least one program that
contains at least one instance ...
I'm trying to write a simple python script that acts like the nc program (netcat).
I've got it working on osx (the client that is) by testing against a netcat server, but I'm unsure about the way I've implemented it.
I'd appreciate it if anyone could give me some advice and/or let me know how y...
I created a Caesar Cipher Program in Tkinter, to help me learn the Model-View-Controller concepts and Tkinter in general. The code works, but it is a mess, and I want some help on cleaning it up, reducing junk, and just making it better.
import string
import tkinter as tk
from tkinter import ttk...
A user can have many subscriptions, and a subscription belongs to one plan. The plans table tells us a subscription's cost. Is the query below the correct one for figuring out the number of subscriptions purchased by a user with an "ongoing" status and the total revenue brought in each day bet...
This may be an "acceptable" question on Code Review, but in its current form it would not fare very well. Reference How do I ask a good question?. If OP can write a title and plain English description saying what their code is about (not just that they would like to improve it) then it should be OK. — Phrancis55 secs ago
> `breathe` - takes a breath, able to say another 7 commands. `inhale` - take a deep breath! Able to say 14 commands! However, doing so thrice in a row will raise a `HyperventilationError`.
This post is the result of reading through and following the LOLCODE Specification 1.2 ("smoking the manual", right?), and writing and executing my code on compileonline.com.
My "hello world" was going to be a fizzbuzz. I like it because it nicely illustrates the basics of a language - variables...
I know nothing of whitespace, but your code strikes me as something like this:
...
Console.Write("+");
Console.Write("~");
Console.Write("+");
Console.Write("+");
Console.Write("~");
Console.Write("+");
Console.Write("+");
Console.Write("~");
Console.Write("+");
Console.Write("+");
...
You hav...
So I want to do this:
Write a function with two inputs \$X\$ and \$Y\$ that can tell you whether the sum of \$X^3\$ and \$Y^3\$ is a cube number so long as that sum is under 500 000 000.
My code is as follows:
> my.function <- function(X,Y) {
+ b <- round((X^(3)+Y^(3))^(1/3),digits=6)
+ if (b%...
So I want to do this:
Write a function with two inputs $X$ and $Y$ that can tell you whether the sum of $X^3$ and $Y^3$ is a cube number so long as that sum is under 500 000 000.
This is actually the special case of Fermat's Last Theorem where n=3. We know that there are no integers for which ...
In order to improve my c# (which is fairly basic at best) I decided to try to serialize a simple mesh to a file using the JSON.net library.
Simple mesh in this case means an array of vertices and a number of arrays of triangles constructed from 3 vertices each. No materials or animations or anyt...
If your code is working, StackOverflow isn't the right place for your question. If you are asking for improvements on your code, you might find Code Review more helpful. — zondo53 secs ago
it works to some extent but past this point it won't. Like I have reached the limit of what I can do with this type of code so im just trying to figure out how to fix my mess. I'll try code review though thanks. — Elkman1231 min ago
@Elkman123 if your code doesn't work (at least what you posted), consider posting one of the parts that does work to Code Review. Just keep in mind that broken/malfunctioning code is off-topic there, but on the other hand if you cannot narrow it down to a more specific problem, Stack Overflow might not be able to help that great either... — Phrancis18 secs ago
ok so my code is basically a character sheet. I run the module and basically type whatever I want to see. Like this:
def main()
print ""
print "What would you like to know?"
print ""
option = raw_input("--> ")
if option == 'name':
name()
elif option == 'money':
money()
elif option == 'in...
For just starting out I'd recommend getting a working version locally then worrying about deploying to Heroku. Anyway, your question is kind of a hard one to answer succinctly as there are a lot of different ways to do background jobs. Gems like background_job, resque, or sidekiq. I just recently decided to face this challenge and I ended up making my own little system. See codereview.stackexchange.com/questions/122159/… — max pleaner46 secs ago
Im using the following code,
jQuery.each(aDataSel, function(index, oData) {
oPushedObject = {};
aSelectedDataSet.push(fnCreateEnt(aProp, oData, oPushedObject));
});
This is aSelectedDataSet values
and this is the values of OData
What I need is that before I do the ...
If this code has problems you know of, you may want to post them here. If this code works and you are looking for a review, you might be better off over at Code Review. — nvoigt50 secs ago
Please I'm looking for a proper matlab code for
Split and Merge Algorithm
Split
โข Obtain the line passing by the two extreme points
โข Find the most distant point to the line
โข If distance > threshold, split and repeat with the left and right point sets
Merge
โข If two consecutive segment...
It's not a code review. The question is how to prevent CSRF when two application are hosted separately and interact through a HTTP POST. I've provided and example. — c1212 secs ago
close incident with reason, "unable to recreate the issue with the data provided. Please be more detailed with steps to reproduce this issue if issue still present."
It's still nice and you ask for more details next time they make a report
so if this doesn't help keep closing them like that. You are covered because you can point out that you ask for better reports
Since Matlab implementation of HOG+SVM object detection algorithm was too slow, I decided to make use of the speed of C++ and re-implemented the algorithm in it. However, I'm more or less unfamiliar with this powerful programming language. Anyway, at the first stage I'm going to extract the featu...
So I closed the issue, which sent an email to the person who raised the issue.. which hit an auto-reply because they were out of the office. The auto reply was sent back to the issue system which reopened the ticket because it received a reply.
On a whim, I came up with this program to act as a helper class for base changing, if I require it in the future. It was made to support fixed-point and negative inputs, but they are basically a hack. I used conventional mathematics for the algorithm, and I welcome any appreciation or criticism t...
Over in Tavern on the Meta, our spam detector, SmokeDetector has been the topic of an ongoing argument between those who believe SmokeDetector fills the chatroom, and those who believe his service is payment enough.
While you can ignore users, you can't exactly ignore specific replies to Smokey ...
@Mast Like I said,some features are supported by quite a few browsers. Once Edge has a larger market share, there won't be much reason to use transpilers unless you want to support IE11. IE is really the one lagging behind here.
const, let are both already supported by most browsers (in strict mode)
Over in Tavern on the Meta, our spam detector, SmokeDetector has been the topic of an ongoing argument between those who believe SmokeDetector fills the chatroom, and those who believe his service is payment enough.
While you can ignore users, you can't exactly ignore specific replies to Smokey ...
I am trying to sort a list on basis of C before .
Is there better way to do this?
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
public class MainClass {
public static void main(String args[]) {
List<String> activeLoadList = new LinkedList<String>();
...
public partial class Game : Form
{
private ReadFromFile readFromFile;
private Random random;
private string word;
private int wrongGuesses;
private int amountOfLettersRevealed;
private bool wordRevealed;
private const int MAX_WRONG_GUESSES = 9;
public Game()
{...
Very impressed with your formatting and spacing. Top notch to see that in practice. I see a couple areas that could be improved and I see at least 2 problems.
Variable Expansion in Strings
Variables will expand in double quotes easy. However you need to be using subexpressions in order to get ...
I'm creating a console application that takes as input starting column and starting row, also the ending column and the ending row and it's going to output all the possible way's to get to that point and also highlight the best turn/s. It's all working however I'm not satisfied with the time it t...
@DanPantry If you're in doubt whether something is supported that's quite nice, yea, but I'm not going to ask for every darn function I encounter whether it's supported or not. I won't remember the outcome once they're with too many anyway.
@Donald.McLean @rolfl sad news that Season 5 will be the end of POI, but I guess that was quite expected. Good news that we finally have a starting date for season 5 though!
> JavaScript remains the most popular programming language in the world. React is the fastest growing technology on Stack Overflow. Swift is exploding too,
I want to sum the number of my published publications model in a given interval and return a time series. (related SO)
The main challenge is that I want the code to respect the time zone passed to it. This seems to be only relevant when it comes down to aggregate the publications over days as di...
public class JobInfoRecord
{
...
/// <summary>
/// Gets or sets the XML serialized background job info
/// </summary>
public string SerializedBackgroundJobInfo { get; set; }
}
public void Execute()
{
var mongoClient = new MongoClient(connectionStringBuilder.ToMongoUrl())...
I wrote the following code to read the config/property files. I will be exposing my api as jar to multiple application teams.
Functionality:
Reads the property files and returns the resource bundle object. I am returning the resource bundle object as, there can be multiple config files in the ...
A zero-indexed array A consisting of N integers is given. The
dominator of array A is the value that occurs in more than half of the
elements of A.
For example, consider array A such that
A[0] = 3 A[1] = 4 A[2] = 3 A[3] = 2 A[4] = 3 A[5] =
-1 A[6] = 3 A[7]...
I need your help for complete the part of implementation with language java in the theme of my graduation "Rigidity Test Using the Pebble Game: A centralized Implementation" please
In information theory and computer science, the Levenshtein distance is a string metric for measuring the difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (i.e. insertions, deletions or substitutions) required to change one word into the other. It is named after Vladimir Levenshtein, who considered this distance in 1965.
Levenshtein distance may also be referred to as edit distance, although that may also denote a larger family of distance metrics. It is closely related to pairwise string alignments.
=...