« first day (2 days earlier)    last day (4008 days later) » 

7:35 AM
2
Q: Are questions about how to further golf a program on-topic here?

John BensinI 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...

2
Q: Character limit on Code Review

adaamI 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...

9
Q: Would it be on topic to request a review of a stackoverflow answer I gave?

mplungjanA 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...

2
Q: Move to SO or Programers

Loki AstariI 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.

2
Q: Is example code on-topic?

DaggFrom 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...

0
Q: Orginization of Code

ExikleSo 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, ...

1
Q: Using AJAX to look up MySQL value using two dropdown inputs

PhireI 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...

1
Q: JSON lookup by key

TomShredsI 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 ...

1
Q: Code review for simple freelock collection

artemI 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; ...

2
Q: Code Reiview for an PHP PDO Queries? is there a better way to do it?

Viscocentso this is my code for a equipping an item in my game dev't: try { $db = getConnection(); $db->beginTransaction(); $sql_chara_gold = $db->query("SELECT chara_gold FROM chara WHERE chara_id = $shop->chara_id"); $get_chara_gold = $sql_chara_gold->fetchColumn()...

 
 
4 hours later…
11:24 AM
1
Q: how to refactor this java [Android] code

MaKoI 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...

0
Q: Can I make a regex array to iterate through in C++?

Camil StapsI have to check a string to various regular expressions in C++. Up to now, I've done this using something similar to this: regex regex_a (".."); string rewrite_a = "($1/$2)"; regex regex_b (".."); string rewrite_b = "($1)"; regex regex_c (".."); string rewrite_c = "($2)"; if (regex_match(string...

 
12:03 PM
0
Q: HashTable - separate chaining collision in C++

user1849859guys! 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...

0
Q: Object map in Javascript

Tsuneo YoshiokaI want to make a map object that key is object. But, javascript only allows string as a hash key. (at least before ECMAScript6 comes?) So, I tried to write auxiliary functions to emulate, hash-ish (but actually linear search). Is there any suggestion to improve ? var tabInfo = {}; var tabInfoK...

 
 
2 hours later…
1:57 PM
0
Q: Attempt to port Free Applicative to scala

foloneI'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....

 
2:36 PM
0
Q: Improvements on tree index class

NatI 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...

 
 
1 hour later…
3:55 PM
0
Q: Advice for reviewing edits

William MorrisI 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...

0
Q: ASP.NET MVC 4 Shopping Cart - Cannot update shopping car items using JQuery , Ajax, jSON, jGrid

JBeansI have this code in a C# MVC 4 VS2012 project. I need to be able to update the shopping cart with jSON data using JQuery/AJAX, i'm using jqGrid to display the data and pulling the shopping cart items from SQL. I'm stuck, I've searched google / Stackoverflow and cannot find a straight forward an...

 
 
3 hours later…
7:05 PM
0
Q: Least amount of HTML and CSS to create a bottom border for every section?

JGallardoI 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> &ndash;<span class="person-name">...

 
 
1 hour later…
8:23 PM
0
Q: Adding events to multile markers in a google map

dgigI was looking over questions related to setting up markers on a google map, and though the following works perfectly fine for me, it was different from the other (and accepted) answers. I just wanted to see if I'm doing something incorrect, or just a different way. Mine: "this" references the m...

 
 
1 hour later…
9:41 PM
0
Q: Some feedback on first attempt to write Java MVC app

PhilippI'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)    last day (4008 days later) »