Some building are really tall, if you flush the toilet and the contents go into a pipe and straight down, there could be a lot of energy, potentially enough to cause harm to the sewer pipe at the end of the fall.
I know that in my home, the pipe goes straight down and then there is just a 90 deg...
@rolfl I am going to go and get a couple. we have 2 TVs that aren't used because there isn't any signal. (my kid's TVs, one of them has a DVD player though)
1. Turn off eager loading, 2. Use custom marshllers, 3. Don't use deep unless you really need it. You might have better luck posting this question on code review. Since the question isn't a "problem" but rather "how can I improve this". — Joshua Moore28 secs ago
Please don't flag for migration either. I don't think this is a good Code Review question. This feels more like "Design Review" than "Code Review". This would likely be closed on Code Review. — Simon André Forsberg1 min ago
@SimonAndréForsberg I thought that it was such that design review was acceptable. maybe I should read it again. I almost posted another comment or additional info on that question about the fact that I didn't think it had enough code for a good review
Questions can be on-topic on multiple sites. In which case, cross-posting is a decent option.
Questions that are off-topic on one site, but on-topic on another, if they are decent quality, are candidates for migration (closing them on the source site).
I have recently made some code, but it doesn't seam to work. Here is what I want to get: A program, that takes input number(a), gets all the prime factors of it, sums all the prime factors in one integer, gets factorial of the integer(factorial is the number you get like this: !11 = 1*2*3*4*5*6*7...
@rolfl so inform them that if they added what is need to make it on-topic they could migrate/post on CodeReview (after deleting the SO question in the case of Posting)
Seriosuly, if someone asks a question on Stack Overflow that would be a perfect question for Code Review, then flag it for migration. Anything else, keep it away from here.
By definition, a question perfect for here will be off-topic there... (where there needs to be something to fix).
After that, use the regular SO logic when dealing with SO questions: close off-topics, downvote crap, and for the love of all things holy, do not upvote anything - SO does not do upvotes for some reason ;)
all my upvotes at SO are the result of a google search which took me to a specific question, rather than simply browsing SO for the hell of it, which is in stark contrast to most other SE sites for me
You might find help at Stack Overflow, but you will have to state what the problem is, and post the minimal amount of code needed to duplicate the problem. — Hosch25025 secs ago
@Hosch250 - you will get a response in ..... 20 seconds: "But I am question banned on Stack Overflow"... ;-)
I have 2 long[24] arrays. Both of the contain values or each hour of a day. One of them has hit count and other queue times. Now queue times in ms are 5 digit numbers, counts are 2 digit numbers. I want to show them in one chart, because queue times are to some degree corresponding with hits, but...
I have no clue who downvoted you and why. I'm just suggesting a different way, which would definitely help your application. But in general, for Stack, posting your code and asking "can you optimize this" is not a valid question. I think there is another site on the StackExchange network better suited (maybe codereview)? — Patrice33 secs ago
This legendary C++ delegate article can be easily converted into C++11, without the need for fancy preprocessor magic in the original. I'd like to know if I got all the necessary C++11 nuances right. Suggestions?
#pragma once
#ifndef DELEGATE_HPP
# define DELEGATE_HPP
#include <cassert>
#include
What do you think of this code:
#include <utility>
namespace
{
template <typename F, int I, typename L, typename R, typename ...A>
F cify(L&& l, R (*)(A...))
{
static L const l_(::std::forward<L>(l));
struct S
{
static R f(A... args) noexcept(noexcept(l_(::std::forward<A>(args)...))...
I'm Pops, a Community Manager at Stack Exchange. Though it saddens me to say it, not just one but two of your existing moderators are stepping down for personal reasons. Over the past week and a half, I've been working on finding replacements, and I'm happy to announce that two avid Code Reviewer...
I'm trying to mimic the SFML library to be suitable for text-based games. The library called MSLIB in GitHub, here a link.
Here sample of the library implementation. it prints gray square in screen and it can be controlled by arrow keys to move it up, down, right and left.
How can I improve it....
Is there a way to edit binary files in some kind of hexadecimal mode?
For example if I have some binary data shown by xxd or hexdump -C like this:
$ hexdump -C a.bin | head -n 5
00000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00 |................|
00000010 12 00 00 00 40 05 00 00 85 ...
I was wanting some clarification on my code, as I am new to pointers in C. I am trying to return an array from a simple function just so I can understand exactly what it is that I'm doing.
Here is the code I have so far and, to me, it seems as if I haven't even used the pointers correctly.
#in...
static bool IsFull(int[] t)
{
int i;
bool notFull = false;
for(i = 0; i < t.Length -1; i++)
{
if(t[i] == null) notFull = true;
}
return notFull;
}
I want to check if a table is full or not, I know I cant do:
t[i] == null
Cuz...
I would really appreciate if someone could help me with the decryption part of this code.
BASE = ord('A')
msg = input("please enter a message:")
shift = BASE - int(input("please enter a number to shift by:"))
output = []
for letter in msg:
#this time check for spaces using isalpha (spaces are no...
I was wanting some clarification on my code, as I am new to pointers in C. I am trying to return an array from a simple function just so I can understand exactly what it is that I'm doing.
Here is the code I have so far and, to me, it seems as if I haven't even used the pointers correctly.
#in...
In C, I am trying to optimise my tokenizing of tab delimited strings (see code below).
static void split_line(string &line, input_record &rec)
{
int col = 0;
char *row = &line[0];
char *token = strtok(row, "\t");
while (token)
{
switch(++col):
{
ca...
I made a simple notepad webapp, called Notepad51. You can use it to make notes while browsing the web and don't want to open up a separate application or extension to put the notes down and don't want to store them on an external server. (more)
Please review the code:
/*!
* Notepad5 v1.04
* h...
I am attempting to create a stored procedure that looks at one table and imports changes in that table to another.
This stored procedure is going to be preformed on multiple source tables and will dump out into multiple log tables. The way the data in the log table is stored looks like this:
I...