« first day (2593 days earlier)      last day (1424 days later) » 

12:02 AM
RELOAD! There are 6722 unanswered questions (89.9189% answered)
 
0
Q: An unofficial API client for 1001tracklists.com

leandertothis is my first "serious" software project. I wanted to build a scaping-API for the website 1001tracklists.com. I realized that by writing classes for Tracklist and Track objects and some helpful functions: The full code can be found here: Github Here's a readme with some basic examples: Gith...

 
Huh, I forgot [chat] is a shortcut... stackoverflow.com/editing-help#comment-formatting
Test [help]
 
12:50 AM
1
Q: Looking for improvements on basic dice roll code (Python 3)

user13702699I've created a code based upon a dice roll where the number of rolls is decided by user input. I am new to this, so any and all feedback will be appreciated as I feel the code is quite clunky at best. number_of_times = int(input("How many times do you want to roll the dice?: ")) print(number_of_...

 
It appears you have working code and are mainly asking about a more efficient way to solve the same problem - that's not really a StackOverflow question, you should probably ask on codereview.stackexchange.com to get opinions or ideas on a different approach — Grismar 5 secs ago
 
1:08 AM
Like I suggested in my first comment - StackOverflow isn't really the place for that discussion, especially if you don't even have a working algorithm that doesn't perform at the big-Oh level you require - but even if you did, algorithm review is more of a CodeReview topic — Grismar 40 secs ago
 
1:36 AM
0
Q: How to test if a given rectangle intersects with a list of excluded areas?

0x90I have implemented SegmentBisect for 1D segments. Given a list of 1D segments, it constructs a data-structure that defines the excluded regions on the x-axis. I have some difficulty to extend/use SegmentBisect to create a class that can fast find if a rectangle in the x-y space intersects an ap...

 
 
1 hour later…
2:45 AM
0
Q: Split large log file like a dictionary

rogerwhiteI have a large log file in the following format. Do note that this is already sorted alphabetically. I wish to split it into smaller pieces, and with file names reflecting the content of the file (first three char of the row). I wish for the code to be efficient. Speed and simplicity is the key....

 
2:57 AM
Hello and welcome. You should check out: codereview.stackexchange.comWW. 1 min ago
 
 
1 hour later…
3:57 AM
@Peilonrayz Some acronyms are very context dependant, yes.
 
4:24 AM
Please read How to Ask and provide a minimal reproducible example. SO is not or code reviews, without a specific issue, debugging efforts, ... — Nic3500 23 secs ago
 
5:05 AM
0
Q: Delete queue immediately after getting processed in redis

DGSI am passing single image to redis server and once the process gets over immediately the image should be removed from the queue. Here base64_decode_image is a function to decode the bytes, tesseract is a function, and so on. My code db = redis.StrictRedis(host=settings.REDIS_HOST, port=sett...

 
5:30 AM
Monking
 
 
2 hours later…
7:24 AM
-1
Q: setTimeout with 0 timeout implements after long running code

J.J. Beam setTimeout(() => console.log(1),0); for(var i = 0; i<1000000;i++){/*long time code*/var j = 10; j++;} console.log(2); why the console first prints 2 ? It seems setTimeout use some kind of queue and start to polling only after the main ( single?) thread complete all the instructions?

0
Q: Generate random points on perimeter of ellipse

MaxFollowing the method suggested here, I've written a Python script that generates random points along the perimeter of an ellipse. I wanted to compare the "naive" method (which fails to produce an even distribution) with the correct method, which works like this: Numerically compute P, the perim...

 
7:47 AM
0
Q: Pythonic way to write nested functions

nonForgivingJesusI worte this code for finding, substituting and executing values in dictionary, much like $() bash operator works. I used nested functions for this, forming hierarchy and encapsulating their names. But now I'm concern, that this may be an overhead in reading ease and unit tesing now sucks, becau...

 
8:28 AM
0
Q: Creating an API in Go for fetching Commits from Github and displaying frequency based on date

Karan SinghI am fairly new to Golang and I was creating an API to fetch commits from any Github repository using their API. I was then creating a frequency count, based on the date and then sending it to the frontend. Currently, I only work in one main.go and I am not very aware of the programming pracice...

0
Q: Very simple semantic implementation of the structure of a web page with three elements: header, main, and footer, using Flexbox

Jacob Caba Grant PaI'm new to web development, and currently learning the basics of HTML and CSS. Many web pages follow the structural pattern of header, main, and footer; so I figured it'd be a good idea to try and implement this structure to see how things are carved. This is my attempt: body { display: f...

 
@CaptainObvious No.
 
8:49 AM
You have to post it to CodereviewLucas 44 secs ago
@Lucas No, the judge rejected the solution so it's not working yet. Code Review is only for code that works. — Mast 32 secs ago
 
 
1 hour later…
10:01 AM
0
Q: Test the hypothesis that the expected number of edges of a random connected graph is \$ O(n \log n) \$

user141240Motivation The most common model for a random graph is the Erdős–Rényi model. However, it does not guarantee the connectedness of the graph. Instead, let's consider the following algorithm (in python-style pseudocode) for generating a random connected graph with \$n\$ nodes: g = empty graph g.a...

0
Q: Remove mutable type from logic

Wojciech SzabowiczHi I have written simple logic that is connected to RabbitMq and process messages from it. There are four types of messages that creates some sort of handshake and handshake build structure in database. After handshake messages goes freely. Reason I used handshake is I have no certainty that tho...

 
10:45 AM
That is more of a question for codereview.stackexchange.com but syntactically it looks ok. You avoided a common pitfall of beginners when you used keyword arguments for your lambda. — Axe319 52 secs ago
 
0
Q: Unofficial API for 1001tracklists.com

leandertoI wanted to build a scaping-API for the website 1001tracklists.com by writing classes for Tracklist and Track objects and some helpful functions: Here's the full code (GitHub): import requests import re from fake_headers import Headers from bs4 import BeautifulSoup SOURCES = { "1": "beatpo...

 
If looking for a more elegant solution, go to codereview.stackexchange.comsimic0de 21 secs ago
Use Sonarqube or some code review tool. — soorapadman 40 secs ago
 
11:35 AM
 
this time it seems to include code...
Code Review is planned to migrate to Common Mark on July 10th keep an eye out for broken markdown coming from the migration
5
 
I think he means refactoring. This is a question for codereview, not StackOverflow — Cid 53 secs ago
 
@Vogel612 Wow, they be chewing through them :O
 
well, once the edge cases are cleaned out the remainder should be just running the script across their databases
 
I would have thought there'd be some edge cases that would have slowed it down. I guess it really is just that easy. (or well planned)
 
11:47 AM
probably the latter
they outlined pretty nicely which cases they already observed the migration to mess up before the first migration even happened
with such a huge change it's kinda necessary to plan even minute details
It's similar to how the SRE team prepares for SQL Server upgrades I presume
it's incredible how much time they need to sink into testing the setup before they can even attempt to write a plan for migrating
 
@Vogel612 Oh, I haven't seen that. That'll explain my ignorance :)
 
 
12:13 PM
You might want to check Code ReviewTomerikoo 9 secs ago
@Tomerikoo No, solutions that doesn't run as expected (including solutions that runs too slow) are not good for code review (iirc) — user202729 38 secs ago
 
12:51 PM
0
Q: Rock Paper Scissor with a CPU (console)

impopularGuyI tried my hands on Rock-Paper-Scissors. But the twist is that the game has a brain that aims to learns your behaviour. The brain is a simple counter that updates the player's current choice based on players previous choices. The level determines the number of previous choices cpu will remember....

 
1:13 PM
0
Q: Can this keyframes animation be simplified?

Daniel_KnightsIs there a way I could simplify this with Sass or JS? It works, but it's not what I'd call 'DRY' code. I've tried a Sass for loop but can't get it to work. h1 { margin-top: 10px; opacity: 1; color: black; font-size: 55px; -webkit-background-clip: text; text-shadow: 1px 1px 5px rg...

0
Q: openMP implementation of loop until predicate met

WalterI want to implement in openMP a loop that terminates when a certain condition holds. In serial code the function body would simply be for(; begin < end; ++begin) if(pred(begin)) return true; return false; The openMP version may differ in two respects: (1) concurrent function calls ...

-1
Q: Replacing ._1 and .head in Scala

user225810 def checkPeq[A,B](list1: List[(A, List[B])])( P: (A,B) => Boolean): List[Boolean] = { def helper[A,B](list2: List[(A, List[B])], list3: List[B], acc1: Boolean, acc2: List[Boolean])(leq:(A,B) => Boolean): List[Boolean] = { list2 match { case h1::t1 => { list3 match...

 
1:23 PM
Haven't even finished my first cup of coffee yet, but VTCed at least 3 questions. :::(
 
If you take the working code and include a main() with an example of how you call the function, you can submit the whole thing to codereview.stackexchange.com, if you want a general code review and suggestions of what to improve. Keep in mind that the Code Review site requires complete and working code though, a literal copy/paste of the working program. — Lundin 58 secs ago
 
I think I missed something, why are we going through old questions and trying to close them?
 
-1
Q: Create a basic function that returns True if the word 'dog' is contained in the input string

ujjwal tyagi> def dog(x): > for 'dog' in x.lower().split(): > return 'true' Why does this not work? I created a function. and for every letter of dog it should return true.

 
@Keith, I created codereview.stackexchange.com/q/243607/12849, feel free to comment there :) — sp00m 1 min ago
I think this question needs more focus for Stack Overflow, maybe it's something for Code Review? — Run_Script 43 secs ago
 
1:46 PM
I may be lurking today. ping me if you need me
 
1:57 PM
0
Q: SQL transaction management in Node.js with MySQL: use the existing transaction or create a new one if none exists

sp00mI'm trying to implement a SQL transaction management in Node.js, that would append queries to an existing transaction if available, or create a new one if none exists yet, thanks to an optional connection parameters. I'm using the mysql NPM package, and after having had a look to their (rather s...

 
Probably better suited for Code ReviewJan 21 secs ago
@Jan No, definitely not. Code review is explicitly only for reviewing actual code. — Konrad Rudolph 47 secs ago
 
@Malachi I've been wondering the same thing as well.
 
My opinion is that this is just the wrong design. You appear to be using inheritance for the purpose of configuration. You haven't really achieved anything in terms of enforcing the configuration (it's possible to call getBase().setFillHeight(true); on any CustomComponent instance, for example). This seems to be a classic example of "Consider static factory methods instead of constructors" (the very first item in "Effective Java"). Probably this question belongs on codereview.stackexchange.com though... — James_D just now
 
2:36 PM
This question belongs to codereviewZohir Salak 56 secs ago
@ZohirSalak I don't need a code review. I need a better architecture pattern for the above kind of use cases. — Sampath 13 secs ago
 
-1
Q: What is the major difference between random.SystemRandom and secrets.SystemRandom?

ajayrameshThere are two ways of generating random numbers. What is the difference between two, and best use cases? import random t = random.SystemRandom() print(t.randint(0, 10e4) import secrets k = secrets.SystemRandom() print(k.randint(0, 10e4)

 
3:04 PM
This kind of post usually belongs in codereview.stackexchange.com/ — xjcl 33 secs ago
possible answer invalidation by Daniel Segura on question by Daniel Segura: codereview.stackexchange.com/posts/243082/revisions
 
@Malachi What, just went through the queue and didn't see any. I also looked at the ones you reviewed and they're also not old, they've just been in the queue for a while.
 
I saw one from 3 years ago.
2017
and it was kicked into the queue within the last couple of weeks
 
I've not seen that, which is that one?
 
looking right now
1
Q: Async function to write products to file

TurtleI'm currently trying to learn how to use await/async functions. Could anyone offer any thoughts on how to improve this function which uses await inside a for loop? I think the task would run in parallel if I could figure out how to write each row asynchronously, but haven't been able to make it ...

you voted to leave it open
there were opens and closes in it's history
 
@Duga rolled back
 
3:18 PM
@Malachi Strange. It's asking me to review it. That's been in the queue for a while :O
 
-1
Q: lexicographically smallest string

sukeshI have a long string S. There are also given an empty string P and Q. Only two operations can be done on the given string S : 1. Remove the first letter from S and append it to P. 2. Remove the last element from P and append it to Q. we have to make Q to be the lexicographically smallest possibl...

0
Q: Simple C transpiler

Shipof123I wrote a simple transpiler (that may be a bit of a stretch) in perl to cut down on some boiler plate code. I'm very new to perl, this being maybe my third ever project in it. My main question would be to ask for feedback on my regular expressions and making it more open to expansion (adding erro...

 
@Peilonrayz asks me too. because I skipped it earlier
someone might have voted on it again....??
@SᴀᴍOnᴇᴌᴀ started it, probably didn't realize it was old. just trying to clean up unanswered questions
I gotta go back to working though
 
@Duga I was just wondering yesterday about that post.... wondering if the OP would come back to look, as I often do...
@Malachi it wasn't that old ... it was asked a couple weeks ago
 
3:40 PM
@Malachi Hmm, I think you may have got me and pacmaninbw mixed up. I've gone through 30 pages of history, (all the way to April 9) and me and that question don't appear anywhere.
 
@Peilonrayz apparently I VTC'd it on May 18 but not in a queue
I would have thought I would have done it in first posts or closes queue
 
@SᴀᴍOnᴇᴌᴀ Strange, no signs of a bump or anything in the history. But meh, it's one question. It's not as drastic as the original comment made out.
 
Monking
 
3:59 PM
This is probably better suited for Code Review although it looks like you answered your own question: Don't dump the memory — urdearboy 48 secs ago
 
Monking
 
0
Q: Program to convert number from any base to decimal

arshi have made a script to convert number from any base to decimal. I am trying to optimize the code because I think it is bloated and can be improved but if I change anything it affects error handling negatively. I tried removing the two while loops but then the user would need to enter their numbe...

-1
Q: Generating and sending huge ammount of text - how to zip, or generate it in better way?

ZorannThis might be one of weirdest questions out there... sorry. I'm trying to create a text-based web game with fight system. Let's imagine that the output of such battle looks like this: ROUND 1: AAA hit BBB for X ammount of damage. BBB hit AAA for Y ammount of damage. ROUND 2: AAA missed BBB. BBB...

 
4:15 PM
possible answer invalidation by danilabagroff on question by danilabagroff: codereview.stackexchange.com/posts/243574/revisions
 
@Malachi I voted on it back in May.
Haven't changed my vote.
@Peilonrayz ^^
 
-1
Q: How do I add questions in a loop so when it runs, it prints a different one each time?

ArsalanI am doing a trivia game in java and I was wondering that instead of using print command each time, how do I make my code shorter and have a for loop that prints a different question each time it runs. If you see, it is going to get really long as I am asking the user 8 questions. Is there a way...

 
4:53 PM
-1
Q: Is there a way to check if an HREF hyperlink to an external website returns an error in React.js?

SathwikBasically I am trying to use a conditional hyperlink. Some users have access to a website while others do not. <div> <a>href='www.example.com'</a> </div> I want to check if the external site returned an error e.g 404, site can't be reached, and if so, then the user should be routed to an a...

0
Q: Python main + module structure to answer, What should module function return?

xtianI've made several Automate the Boring Stuff (ABS? Should be a thing) CLI Python scripts using Click module. These have been my first complete design-code-deploy-maintain programming projects. The structure of the apps has changed organically from one Mother of All Files (MOAF) to a main file, plu...

 
@Duga Clearly, rolled back
 
All code needs to be posted here as text. Also, this site is primarily for fixing broken code. Code that's complete and works should be on Code Review instead. — Carcigenicate 41 secs ago
First of all don't post images of text. Copy-paste the text as text. Secondly, if the code works (a hard requirement) then this is more fit on the Code Review SE instead. — Some programmer dude 17 secs ago
 
5:33 PM
Voting to close this question, it belongs on Code Review not SO. SO is not a code checking site unlike code review which semi is. — Neko Musume 42 secs ago
 
0
Q: How do you define an inputted name in python?

EdoardoI want to input a name in a string and afterwards define it This is the code I started: a = input('') a1 = ['......', '...', .....] b = [' '] c = " ".join(a.split()) for word in b: d = c.replace(word, '_'[b.index(word)]) I would like that this code will generate a piece of code in another ...

 
Both beauty and simplicity are in the eye of the beholder, and therefore answers will not be objective. Please edit your question to limit the question to objectively measurable attributes. Or, if the code works, and you've written it yourself, you can get a review of all of the code at Code Review, but check their help center first. — Heretic Monkey 48 secs ago
 
6:00 PM
0
Q: How to "beautify"/"simplify" this code for handling arrow keys and tabIndex?

Fred HorsI'm wondering how to "beautify"/"simplify" the below code: function handleKeyDown (e) { if (e.key === 'Enter') { e.preventDefault() myCustomEvent(e) return } if (e.key === 'ArrowDown' || e.key === 'ArrowUp') { e.preventDefault() e.key === 'ArrowDown' ? document &&...

0
Q: Create padding tuples for python tkinter using a single expression rather than a large if statement

SImonI have this code that calculates where there needs to be padding to create lines of varying widths between cells in a sudoku grid like this for r, row in enumerate(self.cells): for c, cell in enumerate(row): if c % 3 == 0: px = (3,0) elif c == 8: px = ...

 
If this code works, you'll probably get better feedback on code review. — cigien 50 secs ago
 
 
1 hour later…
7:07 PM
0
Q: Improving performance of raycaster application

smuggledPancakesBitbucket link to repo Tutorial I have been following I decided to make a raycaster app and try to understand how it really works. So far so good, I have it up and running. If you download the source and execute make, it should pop out a test.exe. I am developing on Ubunutu using Windows Subsys...

 
7:24 PM
@Run_Script Code Review requires actual code from a project, the code hasn't been written yet so this is definitely off-topic there. — pacmaninbw just now
 
@CaptainObvious Another off-topic question sent to us by SO because they don't understan d what CR is about, and apparently can't handle complex questions.
 
Have you thought about posting this on codereview.stackexchange.com as that might give more feedback on code structure. — Nigel Ren 35 secs ago
do you have a real problem to solve? or is this codereview? — Lawrence Cherone 15 secs ago
@Run_Script It's getting closed on Code Review. Please, only refer good-quality questions to sites you're sure where they'll be accepted. — Mast 34 secs ago
 
7:51 PM
@pacmaninbw Just one of the reasons it's important to close off-topic questions and leave comments. It would only get worse if we didn't.
 
@Mast I don't think I was the first VTC, but I had to leave a comment.
 
Just did. Most any question I ever post there is downvoted. Codereview is not a part of the site I have ever visited again. — suchislife 43 secs ago
possible answer invalidation by Linu on question by Linu: codereview.stackexchange.com/posts/243552/revisions
 
@pacmaninbw Yes, I don't leave as many comments as I should.
@Duga Rolled back.
 
I’m voting to close this question because it's more suitable for codereview.stackexchange.com — New Dev 8 secs ago
@NewDev While this may be on-topic on CR in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like needs focus, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 43 secs ago
@NewDev Currently it's absolutely UNSUITABLE for Code Review. P.lease, only redirect quality questions. This question is at least lacking a goal. It's stated nowhere what the code is supposed to accomplish. — Mast 45 secs ago
 
8:13 PM
And that's how you fix a misconception.
 
-2
Q: How can I remove the nested if statement?

user225840I was told that it is bad horrible practice to have nested if statements like this, but I thought about it, and I am not sure how to simplify it in a way that will work. if (!ConfigFile) { if (CheckDir(GameDir, (void*)GetHomeDirectory)) { ConfigFile = fopen(ConfigPath, "w"); } el...

 
@CaptainObvious MRC.
@CaptainObvious 1 more VTC.
 
I threw my hat in 2 minutes ago (for vote #4)
 
Monking @Thomas
 
bleh. requires ungodly amounts of coffee
 
8:23 PM
@Mast, I think my intent (perhaps poorly phrased) was less of a "this is suitable for CR", and more of a "this isn't suitable for SO", with codereview being merely a suggestion for these type of questions. This isn't to say that the question in its current form is well posed for either site. — New Dev 48 secs ago
 
@ThomasWard yea, I basically just finished my afternoon coffee..
for some values of afternoon ...
 
I was somewhat surprised to see this question went hot with only one answer... perhaps it was also helped by activity like comments, edits, etc.
 
@Duga @Mast "Absolutely unsuitable" is a bit strong IMO. Off-topic yes, but easily fixed by one comment and a one sentence reply.
 
@Peilonrayz Always talking about the current version of the question. Anything can be polished, including turds. What it looks like after polishing depends on how hard you polish.
And how good you're at polishing.
@Vogel612 Unless you've moved timezones, it's not even close to afternoon.
 
@Mast I am looking at the current version.
 
8:35 PM
@Mast yea, it's a bit of a mess. I'm basically on the same time as Washington DC or even the midwest I think
 
It's suitable for our site, it just is missing a description.
 
@Peilonrayz The current version would be closed in a heartbeat, that makes it unsuitable.
 
which kinda means we don't have an active European mod, but it doesn't seem to be that much of an issue
 
In my experience, strong language works better on Stack Overflow than stating things diplomatically, unfortunately.
@Vogel612 You could always ask for an election if it gets too much.
 
perhaps we could have advised newDev to recommend the OP read the relevant help pages.... while ND hasn't had much activity on CR he/she created an account 5 years ago
 
8:36 PM
@Mast it's just a month to go, then my thesis is handed in and then I can fix my sleep schedule
or something along these lines
 
@Vogel612 Best of luck.
 
@Mast Sigh, no.
 
will have to take care of my parents' dog for some days in the meantime. That'll force my sleep schedule to be more normal, soo ...
 
@SᴀᴍOnᴇᴌᴀ Feel free to do so. Might even get them more active.
 
okay - maybe I will
 
8:38 PM
@Peilonrayz You know what? Next time you jump on it and we'll keep track of which approach worked best :-)
 
totally unrelatedly: did I mention I hate Angular?
 
lol
@Peilonrayz Blame the strategy all you want, but it bloody worked.
Makes sense 👍 @Mast — New Dev 3 mins ago
I don't like having to resort to such tactics either. But I stopped arguing with success.
If this is what it takes to stop the world from incinerating itself...
 
@NewDev as this answer on that post Mast linked to explains, it would be wise to recommend OPs read the relevant help center pages if they decide to post on another site - e.g. CR's How do I ask a good question?Sᴀᴍ Onᴇᴌᴀ 5 secs ago
 
It worked because you made it seem big. Not because it's "unsuitable".
 
yes, see that on programmers a lot. Something gets moved there from SO, then closed there as off topic with a note that it's better suited for SO. So they repost to SO and get their post closed as duplicate of their own prior post that was closed as off topic... People get ping-ponged between sites that way, often ending up discouraged. — jwenting Jun 16 '14 at 6:53
so the dumpster has been burning for years...
 
8:44 PM
@SᴀᴍOnᴇᴌᴀ IIRC programmers has Duga in their chat room too.
@Mast Sure? How do you want to measure it?
 
By "I was having some trouble", are you saying the current code is working now? Because if you're looking to improve working code, you should post on codereview instead. If your code doesn't work, describe exactly how it fails. — Chris G 36 secs ago
 
@SᴀᴍOnᴇᴌᴀ yea, but migrations are a niche feature and failed migrations are not common enough to warrant fixing the migration system even though it's been considered broken since its inception
 
I wasn't referring to migration - mostly just recommendations which lead to OPs cross-posting (and sometimes removing the original post)
 
all that recommending is a crutch for migrations being a dumpsterfire
but yea, I see what you're getting at :)
 
Aug 8 '18 at 15:56, by 202_accepted
@Vogel612 They make alcohol for that.
 
9:00 PM
0
Q: CSS preview generator

ccpizzaGiven a CSS file the script generates an HTML preview of all the CSS definitions by recursively drilling down the chain of nested classes, ids and tag names. Rules with position: absolute|fixed|sticky are wrapped into iframe elements in order to avoid overlap. The output goes to stdout since I ...

0
Q: StateMachine Driven Workflow Design Feedback

J. DoeCould you please critically review the design of my workflow? One way to measure is how many times you say wtf while looking at my design lol... In my opinion, some aspects of the design violate single responsibility principle, cohesion, and overall maintainability. Im self-taught by the way so s...

 
hurrah for procrastination. Now the close vote queue is a third of its original size
 
@CaptainObvious Not a dupe
 
9:52 PM
@Grismar this is not appropriate to codereview. I am sorry. — 0x90 48 secs ago
To complete the last statement: Code Review and Software Engineering may be better places to ask design questions. — Emmanuel Chebbi 30 secs ago
 
10:18 PM
problems I didn't think I'd have some day...
how do you translate "Map" to German?
 
10:30 PM
-1
Q: I want to switch the count and word in my output

ShumelSo my program is supposed to find all program ending in .tweet which contains lines of tweet from different sources. After which i have to call a function that finds the 3 most frequent mentions(words starting with @) in each file. I've managed to do that but my output shows the count first and w...

 
The above question can be split into two distinct entities. ① The above question as posted would be off-topic on Code Review as it doesn't include any code for us to review. ② The question 'am I following OOP?' is on-topic on Code Review. Again, only if Maksim provides their code in the body of the question. Future visitors, our guide to Code Review for Stack Overflow users should help explain whether posting on Code Review is right for your question. — Peilonrayz 57 secs ago
 
@Vogel612 not that I really would know since I didn't really study the language, but what sense of the word - verb, none? like a mapping of keys to values? or a literal map that may or may not have an X to indicate where treasure is...?
 
Just the datastrcuture. key to value-mapping
gonna think about it tomorrow... for now it's kinda time to go to bed...
 
gute nacht
 
10:53 PM
0
Q: Breadth First Search Python Implementation

SaurabhI have the below implementation of the BFS algorithm, in which I've used OrderedDict instead of a list or set to preserve the order of visited vertices. Is this an efficient implementation and any suggestions for improvements? import collections def bfs_iterative(graph, vertex): visited = c...

 
11:09 PM
@Duga @peilonrayz nice use of unicode circled numbers ♻🏆
 
@Vogel612 Map is short hand for "hash mapped table", where "mapped" is jargon. You may find luck in instead translating something like "hash ordered table" or just "hash table".
@SᴀᴍOnᴇᴌᴀ I accidentally found them in my terminal, I've been using them since. I find them so much nicer than "1." and they don't hide in the message :)
 
nice
a quick google search led me to this site which lists the various icons.... trophy wasn't where I would have expected it to be
oh I guess sport makes sense
 
Seeing the recycling symbol reminded me that my font is broken and shows emojis as lines rather than emojies. (Test: 😂😀😐😕😠😡 but 🙂 works fine...)
That's quite the cool site
 
11:30 PM
Sam, very nice job! I think you made it and also provided insights to more generic cases. I found another post [link] (codereview.stackexchange.com/questions/145757/…) is also inspiring using iterator, though it's not the same. — David 20 secs ago
 
Wow, I didn't know three different hieroglyphs are in Unicode now. A small sample; 𔑸, 𓃙, 𐦆
 
0
Q: Multithreaded console-based monster battle with earliest-deadline-first scheduler

EdwardIn working on this answer it occurred to me that it might be interesting to further expand the idea. The game This is an extremely simple (and boring!) text-based game that creates a few monsters which attack the player and which the player can attack. The goal is for player to defeats all of ...

 

« first day (2593 days earlier)      last day (1424 days later) »