Unanswered Questions
632 questions with no upvoted or accepted answers
6votes
0answers
134views
Showing a Wikipedia article's changes as Git commits
I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each ...
6votes
0answers
145views
Android component animatable on its height
I'd like to have a code review for a component which is supposed to be animatable on its height. It's supposed to be a transitioning element.I find it quite laggy on my phone....
6votes
0answers
827views
Pseudo-parallel depth-first search
I'm writing a small program that generates a file containing an adjancency matrix, it then reads from that file, constructs a graph and does something like a parallel depth-first search (dfs) on it....
6votes
0answers
2kviews
Implement two level caching using spring's cache abstraction Cache and CacheManager
Details about spring's caching framework are here. When I was reading this link, I thought the composite cache mentioned there was one that used levels of caching based on the order given to the ...
5votes
0answers
104views
Correct abstractions/organisation of a NodeJS GraphQL API
I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
5votes
0answers
115views
Dial's heap in Java for integer priority queues
(The entire project is here.)IntroI have this priority queue data structure for non-negative integer priority keys. I recall that it is called Dial's heap.CodeImplementation...
5votes
0answers
1kviews
Exception handling: using @JsonProperty value to make error message
If the validation inRestController fails, I need to handleMethodArgumentNotValidException and provide an errorMessage, that ...
5votes
0answers
71views
Fragment of code with Android MVP that checks login credentials via REST API
I'm learning MVP for Android and am wondering if that piece of code that I wrote is correct in terms of this pattern or maybe is completely messed up.I'm wondering if there can be return type other ...
5votes
0answers
135views
Dealing Synchronous Request in Asynchronous Code
ProblemI am trying to convert my synchronous code to an asynchronous implementation. Usingaiohttp I was able to almost get where I want. My problem is how to ...
5votes
0answers
1kviews
Mahjong hand completeness checking algorithm
As a summer project, I have been working on a small-scale, console-based version of Mahjong (the Rummy-like hand completion game, and not the solitaire version). While having prior knowledge of the ...
5votes
0answers
287views
Asynchronous Stripe API and aiohttp parameters formatting
I'm testing the Stripe payment API. I couldn't find a Python wrapper that provides asynchronous requests so I'm writing one. My first goal was to implement the async equivalent of ...
5votes
0answers
2kviews
Mouse wheel scrolling for nested scrollable Swing components
By default, mouse wheel scrolling in Java Swing behaves differently than in web browsers. In Swing, when you have an inner scrollable component and an outer scrollable component, the mouse wheel ...
5votes
0answers
2kviews
Android audio recording using AudioRecord and ByteBuffer
I'm developing an audio recorder app for android using AudioRecord class to have a low level access to audio samples....
5votes
0answers
395views
Optimizing Graph Algorithms for Floyd Warshall and Johnson Algorithm
I am trying to implement and compare Floyd Warshall and Johnson Algorithm(for Sparse Graphs). I have written the following code which produces correct output values for the all pair shortest paths. ...
5votes
0answers
152views
Writing service/network layer for mobile apps
I have an app that gets and posts blog posts to and from a server.Right now I have a network client object which is passed into a service object. The service object is created and called from an ...






