« first day (1106 days earlier)      last day (2914 days later) » 

12:00 AM
RELOAD! There are 2299 unanswered questions (93.2671% answered)
 
I must have perfect code
5
Q: Connect four applet

Smarticles101I am making a connect four type of game in java. I want to make sure that all the code seems nice before I decide to add more stuff... This is what the applet game looks like... Player input: Victory screen: I have three classes: Make4: import java.util.Arrays; import java.awt.*; im...

No one has commented/answered on how I can improve my code, so therefore the code is already perfect
 
12:32 AM
@CaptainObvious Close enough that I've closed it as a duplicate.
 
 
4 hours later…
4:31 AM
-1
Q: A website for my personal use

user105416I'm trying to reference a piece of JavaScript in my website but ever since I changed my CSS to being an external document it no longer loads my JavaScrippt file. Any clues why? www.blackpepperfries.com

 
5:08 AM
0
Q: Apps for a server and a client

andyADDI have two Android apps, a server and a client. It seems to work, and by work I mean the handshake is successful. I am able to send data back and forth, but I feel like it's a fluke and something is not right. Server: String[] enabledCipherSuites = { "SSL_DH_anon_WITH_RC4_128_MD5" }; ...

 
5:22 AM
Since you're looking for a review on your working piece of code, you might want to post your question on the Code Review site instead. — Pang 41 secs ago
I'm voting to close this question as off-topic question might be posted on the Code Review site instead. — Bhavin 57 secs ago
 
0
Q: Convert tri-gram of type wchar_t to an integer type

Andreas W. WylachAs the topic says, I am trying to convert a tri-gram containing 3 characters of type wchar_t to an integer type (an uint64_t at the present time). It's been quiet a while I've been working with shifting and squeezing bytes. Below code is what I've come up with so far and it - at least the few t...

0
Q: Thread-safe LRU Cache for C++

Mark WatermanI'm working on a simple LRU cache for C++. There's nothing spectacular or unusual about it, but I would like it to be thread safe. (I'm going to be using this for instructional/benchmarking/entertainment purposes in a blog post, not in production, so mostly I just want to avoid embarrassing mys...

 
5:38 AM
Well, apparently my younger sister (17) got in a car accident while her boyfriend was driving her car.
Great going to my night.
Yesterday, we got 17 more accepted answers, 27 more questions were answered, 37 more answers were posted, 158 badges were earned, 152 comments were left, 33 more questions were asked, 6 more questions were unanswered, 95 users were created, and 284 votes were created.
Our question answer accept rate went down by 0.0073%.
Our question answer rate went down by 0.0111%, and our answer accept rate went up by 0.007%.
 
6:21 AM
@Mast ^^ SO's graph for the same data: top is actual values, bottom is averages. Blue: TotalQuestionsChange; Red: TotalAnswersChange; Green: QuestionAnswerRateChange; Teal: AnswerAcceptRateChange.
 
6:42 AM
0
Q: Detecting 2 classnames using jQuery

AlexI'm using a plugin that will automatically add on a classname whenever that page is active For instance, <div class="page1 active"></div> <div class="page2"></div> <div class="page3"></div> If the user goes to page2, it will be <div class="page1"></div> <div class="page2 active"></div> <div ...

 
6:52 AM
0
Q: Adding a Slider into Wordpress Blog

BehishtaI downloaded a plugin for Slider from wordpress plugins and i dont know how to use it. I want to put my slider in fron page (Home page) of my wordpress projet.

0
Q: Haskell, Converting Images to greyscale using JuicyPixel

user668074I would like to use Haskell to do some image processing so I have been writing small programs to test performance. I wrote a program to convert an PNG image from color to greyscale, the code is below. I compared the performance of this program with a python script using PIL. I found when compile ...

 
7:33 AM
0
Q: Importing libraries for Java game running

BegCoderSo I have this code for a Tic Tac Toe game and I want to run it but I can't do it eventhough I have imported a library. package import org.newdawn.slick.*; public class TicTacToe { public static void main(String[]args){ } private char[][] board; private char currentPlayerMark; public TicTa...

 
7:45 AM
0
Q: Three functions to make a JSON array

AdamCurrently I'm using these three functions, that in the end produces a JSON array. I went this way so that I could fetch data from a specific table. But now it just seems bloated and poorly written, mixed with stdClass and arrays. public static function getFraga($quiz_id = false) { $database ...

 
If your program is in a working state you could post it on Code Review. You can't ask how to do stuff there but you might get feedback to be able to work it out for yourself. — James Fenwick 23 secs ago
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: An asynchronous service to produce a results cache for a list of items
 
8:16 AM
-1
Q: How else is this code susceptible to buffer overflow exploit?

GiovanrichI have read about buffer overflow exploits and gotten to the example below. i read about buffer overflow and got a clue but cannot pin it on this program as I am not versed in C programming. Can someone explain to me how is it possible in this code and then recommendation to avoid it? #include ...

 
Monking all
522 errors on meta, this is going to be fun.
 
9:13 AM
@Smarticles101 Give it time.
 
9:28 AM
0
Q: Tips on login function

MarcoI would like to ask your advice on my simple code to login and registration sessions. In the User class, login function: public function login($username, $password){ $this->db->query("SELECT * FROM users WHERE username = :username AND status = :status LIMIT 1"); $this->db->bind(':use...

 
9:38 AM
1
Q: C# Program that checks on the status of the Capslock with each character insert

AvestronThe following is my first successful running C# program. The lessons that I personally learnt through this include: The value of asking for help after having tried several times The advantages of being adaptable about one's methods of reaching an end The (a?) proper placement of functions in r...

 
9:48 AM
0
Q: Haw i can Ask the user to enter maths function in matlab?

C.HICHAMHello I have a probleme in haw i can ask the user enter maths function and my programme know that is maths function , i went t creat it a smal programme in matlab and calcul it the integral of a function and now i have a probleme with haw my programm know the function enter it by user thank you

 
@CodeMoose: I don't think this is better suited for Code Review at all. The OP seems to be asking someone to validate his approach, rather than the code itself. — Matt ♦ 29 secs ago
 
10:22 AM
0
Q: Python assigning attributes to a class from the use of functions

user1741339Recently I came across some code like the class Demo where assignment to self was happening within functions and there would be another function using these assignments. There would be often some complicated logic determined to set first_name and last_name and to keep the example simple as possib...

 
11:17 AM
0
Q: Rock Paper Scissor C++ OOP Enum

Vivek PhullI am trying to mame a RPS game using classes, and enums. Cant figure out how to take user input into enum. Am stuck halfway. This is incomplete code. Will appreciate tips. Thanks.! #include <iostream> #include<ctime> #include<cstdlib> #include<string> #include <limits> using namespace std;...

 
12:01 PM
This is off-topic for SO and belongs either on Code Review or on CSTheory. — Kerrek SB 21 secs ago
 
12:22 PM
0
Q: How should I modify the code so that it will print the result we would expect to see?

Skyp89I have a piece of code that I wrote in two very similar ways. The only difference between them is the fact that in the second attempt I used the floor function instead of the int(). I think that there are no problems regarding what I wrote and that it works properly, but the result that is printe...

 
1:06 PM
:D time for a morning coding session
 
This kind of question should be typical for codereview.stackexchange.com and somehow offtopic on SO — Quasimodo's clone 36 secs ago
 
 
1 hour later…
2:13 PM
0
Q: jQuery plugin that creates quizzes

YalgieNote: This is my first post here so i'm not sure if it's okay to do posts like this. I've been working with jQuery for a while at work now and have constantly taken from the code community so I wanted to make something to give back. I created a quiz plugin that's pretty simple. It supports a fe...

 
possible answer invalidation by user668074 on question by user668074: codereview.stackexchange.com/posts/128335/revisions
 
2:35 PM
0
Q: function fetching data from database

AdamMy DB function uses (ATTR_DEFAULT_FETCH_MODE) FETCH_OBJ to fetch the data from database. So for that reson, I prefer objects instead of assoc arrays and I'm not that comfortable reading or coding assoc. I have this function, that is both coded object style and assoc style(?). How would it look ...

 
3:11 PM
I'm voting to close this question as off-topic because this question belongs on codereview.stackoverflow.com — Johan just now
 
3:40 PM
1
Q: Palindromes that are sum of consecutive squares

N3buchadnezzarI have been working on a project Euler problem 125, which took me ages to solve. The problem and source are cited below The palindromic number 595 is interesting because it can be written as the sum of consecutive squares: 6^2 + 7^2 + 8^2 + 9^2 + 10^2 + 11^2 + 12^2. There are exactly...

 
3:52 PM
@Johan Why do you believe that this question belongs on Code Review? And more importantly, what rule in the help center does it break such that it is off-topic for Stack Overflow? — 200_success 6 secs ago
 
4:14 PM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com. — Jim G. 51 secs ago
 
0
Q: TDD - Kata - String Calculator

JBondThis is my first TDD Kata I've done and I'd appreciate it if someone could review it. String Calculator Create a simple String calculator with a method int Add(string numbers) The method can take 0, 1 or 2 numbers, and will return their sum (for an empty string it will ret...

 
@JimG., it isn't a code review. I included the code b/c coders want to see / think in terms of code instead of using their imaginations. The crucial part of the question isn't the code; it's the question about the approach, however it's coded. — toddmo 15 secs ago
 
4:30 PM
0
Q: DOS batch script to open file explorer

Alex JanzikI wrote a script that you can use to open the file explorer from command line like e db --> opens my Dropbox folder e bin --> opens my script folder (I’m not very happy with the way I define the relationship mnemonic <--> folder.) Remarks, anyone? @ECHO OFF SET "target=%~1" if "%target%" EQU...

 
Zak
4:41 PM
Monking @all
 
5:01 PM
0
Q: Multithreading pipeline synchronization with queues

CIVI89I've a problem in synchronizing some threads with queues, there is some deadlock that after some iteration block the entire program, without errors. My thread safe Queue is like a buffer, so is not like an infinite queue. All the program consist in pushing and popping indexes in 3 queue in a way...

 
5:22 PM
0
Q: A variadic tree class that supports multiple types

prestokeysI'll define template <typename...> class VariadicTree with the following example: VariadicTree<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O> is a binary tree whose type for insertion, removal, searching, etc... is A. But it will also accept insertions, removals, searches, etc... of objects of type B,C,D,E,F,G...

 
5:36 PM
I'm voting to close this question as off-topic because it's about code refactoring (try codereview.stackexchange.com). — Oliver Charlesworth 43 secs ago
 
0
Q: Python - excessive indentation

Marc AdlerI've written a script that recursively goes through a directory tree and looks for folders containing folders with NOT INVOICED in the folder name. If it finds one it prints the name of the containing folder and the names of any folders inside it with NOT INVOICED in the folder name. The output...

0
Q: Using fgets to get multiple strings in C(one time pad encryption)

user105453I am new to C programming. Please i need your help with the following: after compiling & running the code i wrote(one time pad encryption) on devc++ it doesn't get the two strings:it takes one string , then it shows the program is not responding. I was asked to use the fgets function, not scan...

 
5:56 PM
0
Q: Efficiently using Apache HttpClient in multithreaded environment?

user1950349I have a library which is being used by customer and they are passing DataRequest object which has userid, various timeouts and some other fields in it. Now I use this DataRequest object to make a URL and then I make an HTTP call using Apache HttpClient and my service returns back a JSON response...

 
1
Q: Structured, No Heap FizzBuzz

brian_oHere was my first, simple C fizzbuzz: #include <stdio.h> void main() { for (int n = 1; n <= 100; ++n) { if (n % 3 == 0) printf("%s", "fizz"); if (n % 5 == 0) printf("%s", "buzz"); if ((n % 3 != 0) && (n % 5 != 0)) printf("%d", n); printf("\n"); } } I was messing around, try...

 
6:46 PM
is dead in here
 
@Quick: If your code is working and you want to know how to make it better (i.e. you don't have a problem you can't solve but want suggestions on how to improve your code) you could post it to Code Review Stack Exchange. — siegi 7 secs ago
 
hows it going @Duga?
you seem lonely
 
Zak
7:01 PM
@DanPantry hey
 
Waiting on the Captain.
Hi, everyone.
Duck Review is faster than the Captain.
 
0
Q: Code Explorer Commands

Hosch250Rubberduck's Code Explorer was recently redesigned from scratch: Anything from modern features, such as virtual folders (limitation of the VBE--it doesn't support real folders), to ancient features in the original VBE, such as printing. Here are some of the commands I wrote that I'd like to g...

 
Zak
Getting to grips with SQL Server anything is hard when you jump in the deep end
 
7:22 PM
monking
 
7:36 PM
-1
Q: Runtime Error and Time Limit Exceeded

Quick Need help improving my code. Some suggestions I got were array of pointers and dynamic arrays, but I don't know how to do it. Any help appreciated. PS: It's in portuguese, but I think is understandble. Some doubt, tell me. /* ----------------------INICIO DO PROGRAMA---------------------------*/ ...

 
Zak
8:00 PM
Can I just say, it is so much nicer working in the office when the only ambient sound is the quiet hum of the server stack.
7
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Image downloader class
 
8:17 PM
I'm voting to close this question as off-topic because it appears more of a work request or a code review than a stackoverflow question. — Hovercraft Full Of Eels 26 secs ago
 
Zak
8:45 PM
Just wrote my first question ^^
 
0
Q: Adding dynamic column names to a table

ZakI'm using Microsoft SQL Server 2014 Express. I found myself wanting to add the Columns CompanyNameChangeDate(1 through 10) and CompanyNameChangePreviousName(1 through 10) to a table in my database. I wrote the following query to do it: declare @i int set @i = 0 Declare @nameChangeDatePrefix a...

 
9:06 PM
 
Zak
9:23 PM
I thought was a tag relatively devoid of upvotes, and then I looked at
Also a great opportunity for anyone wanting to kill a zombie horde. 22 atm.
 
9:44 PM
Crystals turn to gold, and better cannonballs #gamedev #indiedev #indiegame #gaming #retrogaming #libgdx https://t.co/dCGYy0ud9M
Man bazola's making some awesome games lately
 
If you want a codereview, check out codereview.stackexchange.com, but read their guidelines first. — Baum mit Augen 18 secs ago
 
Too bad he hasn't dropped by in a while
 
@Quill He was in Cardshifter TCG not long ago.
 
Ah, okay
 
9:51 PM
@DanPantry s/dead/Saturday
 
First, for code review you have codereview. Second and most importantly, if you describe your problem (which consists of 70 lines) with just three lines that are pretty much summed up in "hey guys do my homework", you're not going to get any help. — dabadaba 17 secs ago
@dabadaba This is broken code. There's no reason whatsoever to even mention Code Review here. — Mast 18 secs ago
[janosgyerik/gh-scripts] janosgyerik created repository
 
10:36 PM
0
Q: Django: A Better Way to Validate Email Addresses

VertigoRayTypically, when you want to validate an e-mail address, you store a activation key and expiration date in the user profile table. So you can validate it one time. Then what? Just keep storing it forever? Clear it out and have the empty columns? Write handlers so this data doesn't show up the use...

 
10:46 PM
0
Q: Idiomatic django conditional filter queryset

user1152226I am sharing a viewset between two types of routes in django. One is a nested route (/users/:id/comments/:id/), and a regular route (/comments/:id/). So, the query set returned is either filtered by the user_pk or its not. What is the more idiomatic way of writing the following? if(user_pk): ...

 
 
1 hour later…
11:49 PM
0
Q: My Obstacle Spawning and Movement Scripts

Stephen GeorgeNothing difficult here! I have these scripts I made that work absolutely perfectly as I need them to, hence why I came here and not to stack overflow. I just have on question and hopefully someone who is wiser and is better at c# can help me: Is there any improvements that can be done to these sc...

 
I'm sorry, but that's not clear enough. (1) "Is my simulation correct" is too broad (there is a Code Review stack exchange site - Stack Overflow is intended for specific programming question. (2) I'm not sure what you mean. If optim() and nlmin() didn't have stopping criteria, wouldn't your code run forever? Presumably you've tried your code and it doesn't run forever ...? (3) Can you be more specific? (4) As it stands, this is really just a code dump. Lots of code is OK if it's relevant to the question, but the question has to be primary ... — Ben Bolker 27 secs ago
 

« first day (1106 days earlier)      last day (2914 days later) »