« first day (2462 days earlier)      last day (1854 days later) » 

00:00
RELOAD! There are 6389 unanswered questions (90.0695% answered)
@SᴀᴍOnᴇᴌᴀ OK, after much discussion I think I'm back in there. I was somewhat irrated, I must admit.
00:58
TTQWAGH
01:15
Holy crap, in C++ even < 0 is ill defined for integer wraps even though they happen. In the end, just not using C++ is the better option.
2
01:29
I suspect this belongs in SE Code Review. — noslenkwah 11 secs ago
 
1 hour later…
02:54
0
Q: Simple navbar in pure HTML5 and CSS3

user217454With some effort I've managed to build a very simple (maybe too simple haha) navigation bar for a website. Is it possible to make a transition on the dropwdown list from height:0 to some suitable height? I've tried and it seems not to be possible. No javascript for now Any advice or extra twea...

03:34
0
Q: Python code snippet to generate a random point inside a circle

user3079275I came across this problem recently on a coding site. The question is to generate a point inside a circle uniformly at random. The class has attributes self.radius, self.x, self.y where the last two are the coordinates of the center of the circle. The solution below got rejected but I do not see ...

03:55
0
Q: Codewars: Prime Streaming (PG-13)

Tobi AlafinI'm timing out on Codewars' Prime Streaming kata. Below is my code: "use strict"; let _base = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71]; let _bufferSize = 1000 class Primes { static get base() { return _base; } static get bufferSize() { ...

04:55
Monking
05:23
Monking
Stack Overflow is for programming problems mostly; for reviews, speedups, and cleanups of your code, please post on codereview.stackexchange.com instead :) — alkasm 44 secs ago
06:19
0
Q: Designing Validator for validating the data

JavaBuilderI am trying to design validator which will validate the rules configured in config file and if any of the rules satisfied, we need to block that data. public class AllMatchDemo { public static void main(String[] args) { Map<String,Object> dataMap = new HashMap<>(); dataMap....

0
Q: Restrict input values only for decimal and numbers

ubmUsing the following regexp to validate numbers : $("input").on("keypress paste", function(e) { var c = this.selectionStart, v = $(this).val(); if (e.type == "keypress") var key = String.fromCharCode(!e.charCode ? e.which : e.charCode) else var key = e.originalEvent.clipboardData.getD...

1
Q: Trying to convert imperetive code to functional -Haskell

Node.JSI'm very new to Haskell and I was trying to implement a DFT which is very imperative into Haskell and I wanted to get a feedback. More specially how can I avoid so many helper functions and I avoid limiting to Double everywhere. Thank you. My DFT algorithm: void dft(double[] inreal , double[] ...

You can post your code on Code Review (another Stack Exchange site) — CoderCharmander 24 secs ago
 
2 hours later…
08:00
0
Q: Packing algorithm of 1-Bit monochrome image data to BYTE buffer

Tajuddin KhandakerI have 1-bit monochrome image which I have to put into a BYTE buffer. The monochrome image is kept to a dynamic memory of OLE_COLOR. I have to copy the color data to BYTE buffer. Before moving into trial and error, I would like to share if my algorithm is something that will do as I am expecting ...

08:31
That is a question more suited for codereview — mplungjan 37 secs ago
09:01
0
Q: How do i assign "ActiveCell.FormulaR1C1" to a String value of a cell instead of just a fixed String?

ChrisI am writing a code to display the properties of a Honda car when a macro button is pressed. However, i could only type fixed Strings like "Honda", "Motorized seats" etc. into the code which is not very flexible. I wish to replace "Honda" with the cell value so when i change the value of cell i...

0
Q: SELECT CASE OFFSET

FranckTMy purpose is to obtain the starting and ending dates for each season. rule: season starts on 1st of August and ends on 31st of July next year but sometimes breeding activity occurs beyond 31st of July. Hence, I need to adjust season date and here starts my question: How can I adjust the starti...

09:42
0
Q: Laravel declaring array clarification

VinceI have a code like this and its working well $project_id = \DB::table('project_list') ->select('projectId') ->get(); foreach($project_id as $res){ $request_time = Carbon::now()->format('YmdHis'); $token = 'dc7318...

0
Q: delete/create - postgresql table. print or catch the standard output

Gunasekaran Desaiyan1) The python used psycopg2 module to connect to postgresql database 2) prints the version and tells the connected established 3) deletes the existing table (dog) 4) creates the same table (dog). The below python code creates a table without problem. However it does not output that it created the...

09:53
@Mara, when you copy paste some code to have 7 times the (pretty) same code it's time to think of factorization. Maybe you should go to codereview.stackexchange.comOrace 58 secs ago
10:22
-1
Q: Counting hours from a valid date

user217478I have a small problem because I do not always understand how to use the lessons of the day, for example, I want the time from the list to have the day time recalculated from that date, but if I have a new time, that conversion counts from the new time. It works fine for me if I only have one tim...

0
Q: play paper-scissors-rock with the user

Marc-Antoine SÉGUII'm new here and also into programming, I've made this small paper-scissors-rock project, and I would like to get it reviewed and know, how can I may be: - simplified my code - make it performs better thanks using System; using System.Threading; namespace PaperScissorsStoneGame { class Pro...

10:43
@Orace, Code review is not from broken code. Only working code in on topic there. A link for "refactoring multiple if statement", "state pattern", "If switch case". Pointing to the right direction. — xdtTransform 19 secs ago
11:15
You can also use the HttpServletResponse which you have access to from the method, using HttpServletResponse::getWriter; but if I saw someone doing that in a code review, I'd ask them politely to not. — user2478398 40 secs ago
11:54
As I already mentioned use a rule like mentioned above otherwise that will take too long and will waste a lot of time...apart from that I recommend to make a code review of the code and of the test to check if an issue could already found by a human...and of course check if this test is a unit test or an integration test? — khmarbaise 54 secs ago
Sounds like an very challenging problem..I would focus on those which have failed and make a code review on tests...most of the times this shows already there are issues in the tests or more often within the code....BTW: Is there no CI solution running and showing the trend of tests failing over the time? — khmarbaise 47 secs ago
12:35
@martin It sounds like some refactoring is in order then perhaps. This is impossible to help you with in a concrete way though without seeing your actual code, obviously. Consider codereview.stackexchange.com. — deceze ♦ 30 secs ago
I think codereview.stackexchange.com is the right place for this question. — Keshu R. 21 secs ago
@KeshuR.: No, Code Review is for the review of code that “works correctly, to the best of the author's knowledge.” — Martin R 17 secs ago
13:20
possible answer invalidation by ruohola on question by ruohola: codereview.stackexchange.com/posts/227177/revisions
0
Q: Generic search service to filter entries in lists

PhilippeI'm in the process of implementing a fully generic service to filter out entries (of any type), which are contained in a ICollection. As it is generic, without any constraints, the properties must be accessed through reflection. I'm not fully happy with the performance, even though it respects th...

@Duga thats ok
13:38
You will get better answers at the code review stack exchange — Nathan 5 secs ago
14:06
You should ask these kind of questions on codereview.stackexchange.com And take the time to read their rules before. — Steve 27 secs ago
1. It's really hard to decipher what this code is trying to do, especially since variable names are Dutch. 2. These kind of questions are more suitable for codereview SE. — nbokmans 46 secs ago
This question belongs on code review instead of here. — FeRaaC 58 secs ago
14:26
0
Q: Improving code functionality

MaraI use a change of groupbox locations depending on the number of weeks in the month. Is there any possibility for me to improve the functionality of this code a little bit, is it slow to load on this part? Thank you all for your help. FormWindowState LastWindowState = FormWindowState.Minimized; ...

0
Q: Get data from pipedrive API and insert it into Snowflake

jmfI am a new python programmer. I have created the code put API data from pipedrive to Snowflake database. Here are the steps in my code. Delete the csv file if it exists. Make an API call put all the paginated data in a list. Create a csv file from the list. Truncate the table in Snowflake. Rem...

15:07
0
Q: Splits up two comma separated items, if they exist

Raldo TrompThis method splits up two comma separated items, if they exist, and increments the amount if the are already in the list; otherwise add the item to the list I want to know if this code can be optimized some more. Any suggestions? The method below works 100% fine but I feel like it is not neatly...

If this code works, and you wrote it yourself, and you are willing to get advice on all aspects of the code, you may be better off posting this on Code Review, but I suggest reading their help center regarding what's on-topic first. — Heretic Monkey 7 secs ago
Emma Bostian on January 30, 2020

In the first post in this series, we examined the basics of micro-interactions: what are they, why should you use them, how you build them. In the second post, we built two animated menus.

In this tutorial, we’ll build two fun animations: a modal and an image gallery.

Modal:

Image Gallery:

We’ll use react-spring’s useTransition to illustrate how you can mount and unmount a component, in our case a modal, from the DOM and mount photos to and from a photo gallery.

Embed Code Sandbox:

In the previous blog, we looked at the pieces of a micro-interaction. Let’s define the interaction trigger, state definition, and animation definition for our modal component. …

16:08
0
Q: Reduce repetition in Pandas DataFrame column assignments

Echhit Joshi____DateTime.____ | Steps 2017-10-25 00:00:00| 4 2017-10-25 00:01:00| 7 2017-10-25 00:02:00| 10 2017-10-25 00:03:00| 26 2017-10-25 00:04:00| 80 2017-10-25 00:05:00| 45 2017-10-25 00:06:00| 53 DataFrame: ResampledData day_segment = ['morning','afternoon','evening','night'] all_steps = ['su...

I strongly disagree with that code review. If your class has no methods, I would go with the interface. I think the constructor is less readable precisely if you have many properties since you don't know just by looking at the argument list which property you are passing in. Also the IDE helps with writing the property names. Also if you send receive this data from a server, using a class will only cause you headaches as you would have to map to the class otherwise the objects will not actually be instances of your class which will surprise people when using instanceof. — Titian Cernicova-Dragomir just now
16:28
Christian, you're not asking for help to a problem, but more of feedback as to what you've produced. This may be better placed in codereview.stackexchange.com. — Mechaflash 45 secs ago
16:50
codereview.stackexchange.com is great, but not for a whole project. — Mat 33 secs ago
17:00
Monking
0
Q: abstract base classes versus the curiously recurring template pattern

TaylorBackground Apologies for "burying the lead." The questions are in the next section. In my application, the purpose of inheritance is to abstract away complicated logic in the base class template, so that the writer of a derived class template doesn't need to worry about it. This logic, however,...

17:21
@CaptainObvious Seems too hypothetical.
0
Q: Parsing weather station XML on raspberry pi

BobeliciousbobThis if for a school project that is all about getting the most performance possible out of a relatively weak computer. For this project we have received a weather station report generator that generates 8000 weather measurements per second. These measurements are split into groups of 10 station...

17:44
For a code review You should use the codereview.stackexchange.comRobert Andrzejuk 51 secs ago
18:10
0
Q: Make my XML Parser in Java using WoodStox run faster and use less memory

John LexusI have an XML Parser in Java using WoodStox that I wrote. This parser is going to be parsing through extremely large files, could be 5+GB. The goal of the parser is to convert a nest XML file into a CSV. The XML file is going to be formatted in such a way where there will be a 'rowTag' that has t...

18:50
0
Q: Adds text to specific cells then bolds one column and copies it to target sheet removing bolded column. Makes last column red

StruneSheet 1 I am very new to coding and have received alot of help from stack overflow to complete this code. I wanna hear if it is possible to shorten the code and make it more effective? It does exactly what i need it to do now. Just takes a bit of time. Private Sub CommandButton1_Click() Dim ws...

19:20
I'd like to introduce yet another option: use an entry in res/dimens.xml. And there is a method getDimensionPixelSize(), so one doesn't have to do the conversion calculation. That being said, this is basically a code review question so I think it's off topic for Stack Overflow. — 0X0nosugar 22 secs ago
20:07
Do we have a Malbolge fizzbuzz yet?
It might be awfully hard to review :D
20:22
Code Review might be better suited for this kind of question — Wondercricket 56 secs ago
20:32
@Hosch250 No, but I think it's one of the few languages we don't really want on CR.
The only valid review on a Malbolge question is not to use Malbolge.
It's much, much, much more awful to work with than Brainfuck.
It's a really cryptic language.
As in, every time you execute an instruction, it gets modified. Except for jump instructions, in which the previous instruction to the one you jump to is modified.
@Hosch250 Are self-modifying languages even reviewable?
Yes, because the rules around modifying the language are defined.
I mean, self-correcting languages like Vigil are one thing, but this...
20:51
Code Review won't accept this question. — Robert Harvey 36 secs ago
in VBA Rubberducking, 5 mins ago, by Simon Forsberg
Huh, if you write [main] in chat, it becomes Code Review
Also, [meta] becomes Code Review Meta
@Duga For which reason?
21:14
@SimonForsberg Much boilerplate, little code (I guess).
Lot of general questions, focus on general design.
But meh.
@SimonForsberg Huh, is that new?
@Mast No clue
[codereview.se] still works.
Probably not new
What about Code Review Meta
Oh that's cool
[meta.codereview.se]
Good to know.
The amounts of time I'm going to use that this year? Less than 5, I'd say.
21:33
0
Q: Evaluating formulas greater than 255 characters

dwironyRecently I was receiving Error 2015 when trying to use Application.Evaluate, then I realized it was because my formula was greater than 255 characters. As a workaround, I came up with this UDF: Function AdvancedEvaluate(eformula As String) ThisWorkbook.Worksheets("Scripting Worksheet").Rang...

-1
Q: Exercise 1_2 multiple console outputs. I would like to reduce the number of console output statements

Megadon.cyberPlease could we examine the below code for anyway to put all console output in one statements? #include <iostream> using namespace std; int main( ) { //print("") in Python cout<<"Hello " "everybody!"<<endl; cout<<"My name is AK."<<endl; cout<<"Goodbye."<<endl; cout<<""<<endl; ...

21:57
^^ number of code review comments captured by @Duga per week
@Mast @DerKommissar @Peilonrayz @those-who-find-it-interesting
Anyway, this question isn't really appropriate for SO. It's a question about programming style, which is a matter of opinion. Software Engineering or Code Review might be more appropriate. — Barmar 54 secs ago
@SimonForsberg Nifty
Please go to code review forums. codereview.stackexchange.comlifeisshubh 24 secs ago
22:13
0
Q: Find and return the earliest occurring word from a string which contains the most repeating letters

DaveI'd like feedback on my solution to the outlined programming challenge (medium level). I've tried it fast in any way I know how to, but, what might be a more efficient and/or pythonic solution? [Letter Count II] Have the function LetterCount(str) take the str parameter being passed and re...

0
Q: Pokedex that displays flip cards

Adag89https://jsfiddle.net/0a7tcv2g/ I know I could locally store the data, write in es6, and all that, but I wanted to learn to work with APIs, and really understand JS through ES5, before brushing up my ES6+ skills. I haven't finished adding all the small details yet, but thats trivial at this poin...

22:30
@DerKommissar Splunk is awesome. Didn't even realize that I actually had all this data until just now.
@SimonForsberg Ooh, that's cool.
22:54
0
Q: Backend for chore management app

User319This is my first go at Django, so I'm looking first to learn how to make this more idiomatic. Also, is there a better way to set up my tests? To my HTTP status codes make sense? chores/tests.py import datetime import json from django.test import TestCase, Client from django.urls import reverse...

23:14
0
Q: Simple event broker / eventbus in C#

Dmitry AvtonomovBackground I was looking for a simple Event Broker or EventBus (whatever else keyword you can come up with) to use in a small(-ish) WinForms application. In Java I was using org.greenrobot.EventBus for a long time, but couldn't find a comparably established and simple solution. Rebus with in-memo...

23:34
0
Q: IndexDB (RxJs) - Angular Service

Avi KaminetzkyInspired by Wrapping IndexDB with RxJs. My use case is a simple, on-disk temporary cache. No errors are propagated, null values are returned instead. All errors are logged. import { Injectable } from '@angular/core'; import { Observable, Observer, ReplaySubject, Subject } from 'rxjs'; import {...


« first day (2462 days earlier)      last day (1854 days later) »