I have a simple algorithm that I'm using for code golf, and I'm hoping to find ways to golf it further. The algorithm is somewhat golfed in Python already, and works flawlessly. I asked on meta.codegolf.SE if a question about it would be on topic there, and per the discussion, the community think...
I understand why a character limit is imposed on question lengths on most Stack Exchange websites, but I take issue with the fact that there is a 30,000 character limit on the Code Review website. Surely the character limit for questions on the Code Review website should be raised due the fact t...
A stackoverflow answer I gave prompted a downvote from the very beginning plus snide remarks about my skills and so forth. The downvote I can handle, the snide remarks are unfair in my opinion, but it is really one-on-one there. I do not have Spring skills but my intuition and the fact that the...
I can find it with a quick search; But: But there must already be a question here on meta about moving off-topic posts to SO or Programmers.stackexchange.com ore automatic. Like: Off-Topic move to SO Off-Topic move to Programmers Off-Topic Incorrect Move put back to original site.
From the FAQ: I'm confused! What questions are on-topic for this site? Simply ask yourself the following questions. To be on-topic the answer must be yes to all questions: ... 3. Is it actual code from a project rather than pseudo-code or example code? So, I flagged this ques...
So I'm writing an app for android and I'm trying to figure out how to write it more efficiently. If I was writing it in Java, I would have had seperated the code into methods and classes but I'm so confused by android. I generally learn by example but I'm not asking you to write the code for me, ...
I have a list of cities, and a set of "travel time" between any given two cities. The "travel time" is fixed and not necessarily dependent on absolute distance between the two cities, and it currently exists in an Excel doc that's manually maintained. I wanted users to be able to specify two cit...
I always did my lookup in json collection like that: var data = [ { "Key": "1111-1111-1111", "Email": "test@test.com" } ]; function getByKey(key) { var found = null; for (var i = 0; i < data.length; i++) { var element = data[i]; if (element.Key ...
I wrote simple lock-free collection class for saving items from multithreading code. I did it just for fun and experience. Can you check my code for potentially problems please? PS: Sorry for my bad English. public class InputBox<T> { private BoxItem<T> _current; ...
I have this code to generate some tables in my PDF document for my android app. It works fine, I just think I need to refactor it, as basically is the same structure repeated 3 times. //tables! public static PdfPTable createTableA() { //empty space Paragraph paragraph = new Para...
guys! This is my first time here, and the first time I'm trying to implement a HashTable. In fact, I want a HashSet with Persons that have a name and a phoneNumber, both string. I understood the theory with collisions and everything but I don't know how to really implement something. This is what...
I'm trying to port Edward Kmett's free package (in particular, Free Applicative) to scala. I was able to get this far. I'm particularly having problem with implementing the ap function for the Ap constructor here. Specifically, I'm having problems with the fact that B parameter of Ap gets erased....
I developed a QuickIndex class which serves to index arrays of stringafiable objects using a tree structure. The purpose is to then primarily to allow for fast index or include? method calls directed to the quick_index object as a proxy for the original array, as the index tree can be traversed m...
I just became eligible to approve pending edits and would like some advice. At the time of writing, this post has a pending edit: Best practices in PHP The edit changes the code posted in an answer - in a cooperative way, I'm not implying any bad intentions. But is this the best way to procee...
I am doing a redesign and have some previously existing content in HTML that is similar to <p class="testimonial-text">Bacon ipsum dolor sit amet aliquip est tail occaecat bacon ad qui short loin exercitation.Strip steak sint dolore et ut, elit kielbasa quis.</p> –<span class="person-name">...
I'm writing my first Java MVC application which should be a desktop student administration application with a swing gui. DAO is already implemented: Need some feedback - student administration application. The application should provide a login form. After successful login there should be a diff...
« first day (2 days earlier) next day → last day (4008 days later) »