« first day (1093 days earlier)      last day (2907 days later) » 

12:00 AM
"I need you desperately!" she begged. "Come over now!" "Just turn it off and on again," he sighed. He hated these late night rebooty calls.
 
RELOAD! There are 2202 unanswered questions (93.4756% answered)
 
Good morning Duga
 
good monking to all, including Duga and Quill
 
12:24 AM
o/
 
1:13 AM
The posted code can be improved in many different places. It's hard to suggest any particular thing since you haven't asked a specific question. This site is not about generic code review. — R Sahu 46 secs ago
 
1:51 AM
0
Q: refactor for loop in C

Programmer 400I have a large unreadable function in C that I should refactor into smaller units that also are more readable. The code "works" so far that it doesn't crash and makes the correct output but needed serious refactoring to even be able to get a review. Now I succeed to break out one for loop as a fu...

0
Q: Finding all non-empty directories and their files on an SFTP server with Paramiko

Matthew MoisenThe purpose of the following function is to find all non-empty directories, and the files in those non-empty directories. It recursively checks each directory on an SFTP server to see if it has any files, and if it does, adds it to a default dict using the path as the key. The function uses param...

 
2:10 AM
I installed Windows 95 on my Apple Watch https://medium.com/tendigi-insights/i-installed-windows-95-on-my-apple-watch-589fda5e36d
3
 
possible answer invalidation by Jamal on question by dwjohnston: codereview.stackexchange.com/posts/127004/revisions
 
2:53 AM
0
Q: Pong Game for Pygame

V.SI've been working on a two player pong game for school, but collisions do not seem to be working well. Whenever the ball bounces off the paddles, it bounces twice around the same spot. Can anyone help me? Here is my ball code: class Ball(pygame.sprite.Sprite): def __init__(self,imag...

 
 
2 hours later…
4:40 AM
0
Q: Rewrite this little code from C# into Delphi / Lazarus / Object Pascal

burian.vlastimilI finally found a code possibly working Shannon Entropy calculation, but as I don't fully understand C#, could someone help me rewriting this into Delphi / Lazarus / Object Pascal? Many thanks! public static double ShannonEntropy(string s) { var map = new Dictionary<char, int>(); foreach...

 
4:50 AM
0
Q: refactoring C loops

Programmer 400I have refactored a for loop into a function. I'm still a beginner at using C:s utility functions such as strtok, strdup, malloc andstrcpy. I hope you can help. The program makes the correct output for another program (my program is a shell command language interpretor) showing that I have 1800 l...

 
5:22 AM
They say questions about working codes should go to Code Review Stack Exchange. — MikeCAT 35 secs ago
I'm voting to close this question as off-topic because it is asking for a code review and that is off-topic, belongs on codereview.stackexchange.comJarrod Roberson 27 secs ago
Even if you were to post this on Code Review, it would be closed or downvoted as an unclear question. We can't evaluate your code if you haven't even stated what you are trying to accomplish. — 200_success 22 secs ago
 
 
2 hours later…
7:15 AM
0
Q: Creating Menubar using Angularjs 1.5

devak23I've a sample code to create a simple menubar here which works, but I'm not sure if that's the best way to code it. Can somebody please validate if there is a better way to do the same? In short I've create a sample page with a directive called <menu-bar></menu-bar> The directive merely p...

0
Q: Is there a better way to append text to files dynamically?

AmorphousI'm working on parsing a large data set. I want to do the following: with open(read_file) as f: new_thread = False get_thread = False want = False for line in f: if 'thread">' in line.lower(): new_thread = True get_thread = False contin...

 
7:36 AM
0
Q: Gravity Calculator - Programming

MrNishashCreate a program that computes the distance of an object that will fall in Earth's gravity. Create a new class called GravityCalculator. It should be able to calculate the distance covered with a time frame using the formula given below: What is the output the program? Change the value of the...

0
Q: Find the contiguous subarray within an array (containing at least one number) which has the largest sum

Smart HomeInterview Q: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example: Given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] has the largest sum = 6. For this problem, return the maximum sum. My solution (pseud...

 
7:55 AM
Yesterday, we got 15 more accepted answers, 13 more questions were answered, 27 more answers were posted, 72 badges were earned, 109 comments were left, 21 more questions were asked, 8 more questions were unanswered, 13 users were removed, and 217 votes were created.
Our question answer accept rate went up by 0.0076%.
Our question answer rate went down by 0.0197%, and our answer accept rate went up by 0.0097%.
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: File read/write methods
 
Two bots at once
 
8:25 AM
0
Q: search or list unanswered questions by language

Programmer 400Is it possible to search for unanswered questions AND no other language than language L for example only unanswered Java questions? I would like to list all unanswered questions for a given tag.

 
8:42 AM
Accepted answer in <52 seconds wow
1 min 3 upvotes and accept wat
when was meta this fast?
 
I was writing an answer, but that's super fast
 
9:30 AM
0
Q: Gravity Calculator

MrNishashCreate a program that computes the distance of an object that will fall in Earth's gravity. Create a new class called GravityCalculator. It should be able to calculate the distance covered with a time frame using the formula given below: What is the output the program? Change the value of the...

 
10:00 AM
possible answer invalidation by Programmer 400 on question by Programmer 400: codereview.stackexchange.com/posts/127189/revisions
 
10:27 AM
What is it with Stack Exchange and Sundays that makes the activity drop so much?
 
0
Q: Simple python calculator

Blitz RaketeI'm very new to Python, and so I'm trying to learn it by doing simple programs, like a calculator. But I don't know if this is the "Pythonic" way to do it, or if I am making beginner errors. So could someone please tell if something is wrong with it, and how to improve it? Here is some sample ...

 
Well, good luck! We kinda opted for what's easy/possible in C#/.NET, and what we could effectively prevent with pull request code reviews. — Jimmy Bogard 1 min ago
 
11:25 AM
0
Q: Comparing Dictionary keys and getting their values

J. IvanovicI have two Dictionaries with around 65,000 KeyValuePairs each. I used foreach and if-else statements to compare them and get values, but it goes very slow. How could I optimize my code and gain more speed? private void bgwCompare_DoWork(object sender, DoWorkEventArgs e) { var i = 0; for...

 
11:45 AM
0
Q: FizzBuzz... with style (js, jquery, html, css)

AlessiaI discovered the FizzBuzz test while looking up something else on stackoverflow, so I decided to try it and see what I would come up with. I'm kind of new to jquery and js, so I'm looking for a critique on my code. What can I do better? Changes? Simplifications? My priorities on this were - ...

 
what if we want to shift it 50 times to the left but array length is 20!? your solution would have a bug then I'd say. — Mona Jalal 5 hours ago
Sometimes people just are wrong, and it's hard to tell them without sounding like a jerk..
 
@rolfl That sounds like a very big "what if"
Anyone remembers a video with a guy who was supposed to change light bulb in the refrigerator and ends up doing something completely different?
 
Heh, yeah, that's a fair analogy.....
 
12:00 PM
0
Q: Why is no output displayed?

Amber I started learning classes and objects programming today. There is code in the handbook that I must copy to run and save. I need to create a class(TLine) and use that class for instantiating an object. Problem : No output is displayed in my RichEdit component. I copied the code exactly from the ...

 
12:10 PM
0
Q: large shipping form

cyklop77I made a form for shipping calculator. I used backboneJS. as a result the user sees a modal window with the entered data https://jsfiddle.net/9t1cwfrv/7/ https://github.com/zlodiak/shippingCalculator1 html: Калькулятор доставки tpls: <script type="text/template" id="calculat...

 
@Zak What are you using to generate that flowchat image you have there?
@Zak Oh, so it doesn't read the game state of Factorio and generates one for you?
(Yes, I know that I am replying to very old messages)
@Zak How did you create that image?
 
12:26 PM
man, that fizzbuzz interview test question hit 10K views in, what, 3 days? /jealous
 
@Zak You might be interested in github.com/Zomis/FactorioMods
 
12:44 PM
-1
Q: I need Help in FingerPrint Based Atm system in java

Alok Singhhttp://nevonprojects.com/fingerprint-based-atm-system/ Login: - User will login to the system using his fingerprint. Add Pin Code: - User has to scan finger and add pin code in order to do transactions. Withdrawal of cash: - User can withdraw cash by entering the amount he want to withdraw. Tran...

0
Q: FIRST and FOLLOW sets calculator in Haskell

Tobia TesanI found myself wanting to brush up on some notions about parsers and grammars and, at the same time, to exercise my Haskell - I am a Haskell newbie; moreover, I haven't touched the language at all in a couple months. You can find the complete result here, and, separated by hrs and without the mo...

 
1:14 PM
0
Q: Python list "commander" (modify a list with user commands)

Blitz RaketeI made a program that can modify a list using commands that the user enters. The commands that are supported are (used from actual program): /add [value1] [value2] [valueN]... - Add a value to the list /rvalue [value] - Removes a value from the list /rindex [index] - Removes the value at the sp...

 
Hi @umar-farooq, 1) you should have put a MWE known as a minimal working example. There are too many lines of code. If you want a code review, codereview.stackexchange.come will help. 2) try to break your code into manageable pieces. Imagine trying to find a needle in a haystack. Cut down the haystack into manageable parts where you have a broad sense of where the issue lies. We help you but it is your job to narrow down the parts. ;) — Andy K 16 secs ago
 
2:02 PM
-1
Q: generating sales report and supply report in Supermarket system

Chase Liuall! I'm a newbie to Java. As a part of my assignment, I want to create functions that can generate sales report and supply report base on a certain amount of time, like 1 day, 7 days or even longer. As a starter, I'm really confused now and don't even know where to start with. and how to get i...

 
2:37 PM
0
Q: Password Entropy in Lazarus (Delphi-like)

burian.vlastimilLet me know, please, if you see any problem with this: function TPassword.GetEntropy: Extended; type TDictionary = specialize TFPGMap<Char, Integer>; var Dictionary: TDictionary; I: Integer; Chr: Char; PasswordLength: Integer; Frequency: Extended; begin // dictionary initializ...

 
2:56 PM
0
Q: AngularJS 2.0/Ionic 2 Code-Optimization

Emanuel Seiboldi've a question. Im currently developing an Ionic 2 App (Deployed on IOS/Android and hopefully in a Browser aswell as soon as phonegap-facebook4 supports Browser) but im not sure if i do it the proper way. I've the following scheme for my app. App.ts [Starting Point] pages/Page1, Page2, Page3, ...

0
Q: Testing a shell command interpretor

Programmer 400I've written tests that use bash for testing a custom shell. I think the tests works but I'm sure you know better because this is my first test I write this way. #!/bin/bash echo "-- Testing our implementation of OpenShell --" echo "" echo "- If you have any problem in passing a test read the c...

 
That's great! When you get a working solution but one that's still small, you may want to post over on Code Review as there's some less-idiomatic Rust code that could be cleaned up ;-). — Shepmaster 33 secs ago
 
3:12 PM
1
Q: Exchanging a for loop for a smarter query using peewee

Stupid.Fat.CatThe goal is to get all the transactions from a list of people. This is what I have: big_list = [] for person in people_list: big_list += map(some_transform_function, my_tbl.select().where(my_tbl.person==person).order_by(my_tbl.some_datetimefield.desc()).limit(20)) return big_list But what ...

 
 
1 hour later…
4:21 PM
0
Q: How can I control user input of Dictionary value entries?

refinneJI was told to come here from stack overflow. I'm trying my hand at an address book and the goal is for it to have a bit more of error prevention, for instance for the key "phone" to have 10 digits, and not allow alpha characters at section 4. I believe I have formatted this properly to the best o...

0
Q: How to shorten that elixir code?

Jeremie Ges def age_post(post) do birthday = Timex.date({post.birthday_year, post.birthday_month, post.birthday_day}) now = Date.now years = Timex.diff(now, birthday, :years) Integer.to_string(years) <> " ans" end I'm quite new with the elixir language, I'm pretty sure you can get t...

 
4:48 PM
0
Q: How do i make this script work for any input file

Etxi have this little script, it works my only problem is making it work for any input .csv file i throw at it. So far it only works if i specify exacly the file inside the function. import csv def read_csv(filename): with open(filename, 'r') as file: input_file = csv.DictReader(file, delim...

 
 
1 hour later…
6:00 PM
0
Q: Reader Writers prob. using Semaphores in Java

SollyAlthough this may be a sort of a repeat question, there is not ONE single correct implementation of Reader-Writers problems using on Semaphores in JAVA. I have tried to write my own version of the same and would like to gauge the correctness and quality of the code. Thanks. I have used the psuedo...

0
Q: Creating an indicator variable in a long format longitudinal dataset in r

user104352I have a dataset of longitudinal data in vertical format, which means basically that I have multiple observations for the same person. What I want to do is to create a variable (indicator) that indicates the observation in which a person reach for the first time a value of viral load (VLOAD) equa...

 
6:10 PM
possible answer invalidation by 200_success on question by Blitz Rakete: codereview.stackexchange.com/posts/127218/revisions
 
Took down a zombie from over a year old. Second opinions are welcome.
 
Cross-posted to Code Review. I suggest that you delete the question on Stack Overflow, since it is identical. — 200_success 53 secs ago
 
6:29 PM
I once got hired to reduce the size of a bloated code base. My productivity was measured in lines of code produced. — Simon Richter 2 days ago
 
@skiwi He's screwed.
 
6:45 PM
You could simply use a while loop, or this cool code from @MartinR. — nhgrif 42 secs ago
 
7:20 PM
If your code actually works and you want it reviewed, the right site is: codereview.stackexchange.comMat 53 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com — xaxxon 33 secs ago
 
@Mast Still playing any browser game or OGame?
 
0
Q: Parsing a String which is in particular format

user1950349I have a response String as shown below which I need to parse it and store it my class. Format is shown below: task name followed by this dotted line ------------- which is also fixed and then just below key:value pair. It can have many key value pair Below is the response string. abc------...

0
Q: Phone validation ecto model

Jeremie Gesdefmodule Baby.Post do use Baby.Web, :model schema "posts" do field :cover, :string field :email, :string field :firstname, :string field :lastname, :string field :birthday_day, :integer field :birthday_month, :integer field :birthday_year, :integer field :des...

 
8:00 PM
Naruto answer; accepted non-selfie answer with 0 score: Input form for MySQL database
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: An iterator returning all possible partitions of a list in Java
 
8:11 PM
You should get this code reviewed. codreview.stackexchange.comLoki Astari 9 secs ago
 
8:42 PM
@skiwi At the moment I'm quite swamped with work and personal stuff, so not much.
 
0
Q: Finding the biggest Positive number sequence in integer array

CyborgzI am preparing to coding interview and I got below questions - Find the biggest positive number sequence in the Integer Array. if Input is [1,2,5,6,-7,5,7,8,5,6,7,-6,7,0], Then output should be [5,7,8,5,6,7], which is the longest positive digit sequence. Below is my code for the above progr...

 
@Mast Ah okay, same here, at least not much text games, not so much swamped
 
9:00 PM
0
Q: C++ Loop/Algorithm Error (or File Read Error)

DJ TonedeafI'm trying to make a program that reads a text file, does some math, displays answers, then writes a text file. The program is only writing one line of text instead of the 5 I want. The input text file is formated as such: string double double string double double string ...

0
Q: Sparse table implementation

Ayaz SalikhovI wrote a C++ implementation of a sparse table (I wrote it for an arbitrary function) and I want so much to ask for a review. I'd like to know how I can make it better, especially the consistency of the code and the design. Explanation: For example, you want to solve the RMQ problem with a lot ...

0
Q: Segment Tree implementation (C++)

Ayaz SalikhovI wrote a C++ implementation of a segment tree (I wrote it for an arbitrary function, not "lazy" version) and I want so much to ask for a review. I'd like to know how I can make it better, especially the consistency of the code and the design. template<typename T_Type, typename Function, typenam...

 
Install on two random text-based games, get password mailed back in plain-text twice :| :|
:| smily looks weird in italic text
 
9:16 PM
@skiwi Yea, most of them do.
 
/s/Install/Register
 
0
Q: Lazy segment tree implementation

Ayaz SalikhovI wrote a C++ implementation of a segment tree (I wrote it for an arbitrary function, "lazy" version) and I want so much to ask for a review. I'd like to know how I can make it better, especially the consistency of the code and the design. template<typename T_Type, typename Function, typename Mu...

 
If it works, it's probably better suited for Code Reviewadeneo 1 min ago
 
9:46 PM
0
Q: Removing all duplicated pairs in python list

LoomI need a function to remove duplicated pairs from a list. The following is example list: a = [1, 1, 1, 2, 3, 5, 4, 4, 5, 2, 3, 3, 2, 3, 1, 6, 6, 6, 6] I need remove all pairs [a[i], a[i+1]] if a[i] == a[i+1] till all such pairs eliminated like followng: [1, 1, 1, 2, 3, 5, 4, 4, 5, 2, 3, 3, 2, ...

 
possible answer invalidation by kovareka on question by kovareka: codereview.stackexchange.com/posts/127111/revisions
 
10:38 PM
// We're ignoring the diagnostic that tells us we don't have a main method
// We're also ignoring the diagnostics that complain about not being able to find a type or namespace
if (systemDiags.Where(x => x.Id != "CS5001" && x.Id != "BC30420" && x.Id != "CS0246").Any(d => d.Severity == DiagnosticSeverity.Error))
I'm sorry, that should be in a different room.
 
It's okay; this room nearly froze ;p
 
Wrong room again. I should close this window.
 
lol
 
So, what's the scoop?
 
chrome extension for color inversion gives me eye-cancer in the text-input
either way... TTGTB maths lecture in 7 hours
 
10:53 PM
get the Dark Theme from Fredley, it looks fine instead of that
 
11:09 PM
My November 2014 answer got accepted
Really took their time
 
11:47 PM
0
Q: tool for composing functors

user1095108What do you think of this code: #ifndef COMPOSE_HPP # define COMPOSE_HPP # pragma once #include <utility> namespace { template <typename R, typename ...A> struct signature { }; template <typename R, typename ...A> constexpr auto extract_signature(R (*const)(A...)) noexcept { return signature<

 

« first day (1093 days earlier)      last day (2907 days later) »