« first day (173 days earlier)      last day (3830 days later) » 

11:40 PM
Anna Lear has undeleted this room.
3
Q: Recursive branch and bound for knapsack problem

LooftI've got the imperative styled solution working perfectly. What I'm wondering is how to make a recursive branch and bound. This is my code below, Evaluate function returns the optimistic estimate, the largest possible value for the set of items which fit into the knapsack(linear relaxation). Fo...

1
Q: script- loop through files and directories

SureshI have written the script, which unzips a zip file (passed as argument to the bash), loops through directory and files, then perform different actions based on directory or file. It is working fine. However I would like to know some things: Is it possible to do this without the unzip command? ...

1
Q: Readable Ruby Gem

AndrewSo the main purpose of Ruby is to be readable. I hope I did a good job with this gem I made. If there's any kind of suggestion of how to make this better, then please tell me. class Trigger # event is the Proc, Method, Trigger, Symbol, or String that gets called before the callbacks # event_...

2
Q: Neighbors of a matrix element

JavaDeveloperI would like a code review to make this code better, clear, and concise. Please read the comment which explains the problem a bit more numerically than verbally. Also, is the complexity O(n4)? Please correct me if I'm wrong. /** * Given a matrix, print circumference of each of the item. * eg:...

2
Q: DAL Efficiency Help

o7th Web DesignI am attempting my first try at some c#. So far I love it, (not more than vb tho ;)) however, I am wondering if I can make these classes a bit more efficient. Please note ###Test is my attempts at making it more asyncronous in the hopes that it would make it more efficient. Test Results Singl...

1
Q: Background image loader AsyncTask

FelixUsually, AsyncTasks are meant to be one-shot, i.e. you start it, it fetches some data, displays the result and dies. However, I'm now using a long-running AsyncTask to load images as the need arises. So far it's working great, but I'd just like to know if this is good practice & if there's any th...

2
Q: Producer/Consumer in C#

csharperIs the following implementation correct? private int _count = 1000; private Queue<string> _myQueue = new Queue<string>(); private static object _door = new object(); public void AddItem(string someItem) { lock (_door) { while (_myQueue.Count == _count) { Moni...

1
Q: Template parameter pack of parameter packs

Patrick FrombergThis is for C++11, but d-developers and others are welcome to answer in their language. The question is how to best extend typname...T1, typename...T2 to an arbitrary amount of packs. The first thing that comes into mind is of course typename ... ...T. Can the standard be extended to do just th...

3
Q: Function that builds dictionary based on lambda params

Ronnie OverbyI've written a method in c# that allows me to do create a dictionary from a passed in object and N lambda expressions that reference that objects properties and methods. It's working the way I want it and seems to perform well, but I'm looking for criticism and seeking to improve the code. Here'...

2
Q: Maze - code review

JavaDeveloperMaze puzzle, a 1 in input matrix means "allowed" 0 means "blocked". Given such a matrix find route from 1st quadrant to the last (n-1, n-1). I would like to get some feedback to optimize and make this code cleaner. Also let me know if O(n!) is the complexity where n is the dimension of maze. fin...

-2
Q: How to configure apache tomcat for eclipse when already its used by netbeans

Abinesh DharmaHow to configure Apache tomcat for eclipse when already it's used by net beans. Should i change the server port number if so how should i change it. Please provide me the answer on how to configure tomcat for both net beans and eclipse in a same system. I have tried it but its not working if s...

2
Q: Making my program OOP

KieranI have created a program that allows the user to view/add/delete employees and also view employee payslip either weekly employee or monthly employee and this is all done in the console. My programme runs fine and does as asked but it is not OOP I feel. Can anyone suggest any changes to make it mo...

1
Q: Is my code portraying the diagram correctly?

KarenHere's the image: What my function does, is it takes the values of the profit (function declared as fieldProfit) and the field score (function declared as fieldScore); and if both are above 10, then you earn a badge, hence, innerbadge = 1. BUT, there's also another condition that must be met, t...

2
Q: Help improve this Ruby roman numeral converter

ahuthFor a Project Euler problem, I made a Ruby roman numeral converter: def romanize(num) digits = { 1000 => "M", 900 => "CM", 500 => "D", 400 => "CD", 100 => "C", 90 => "XC", 50 => "L", 40 => "XL", 10 => "X", 9 => "IX", 5 => "V", 4 => "IV", 1 => "I...

-2
Q: Interactive map using javascript

DenisIm trying to learn HTML and javascript. But i cant find any information about how to create interactive map using javascript. Ex. I take a map where is a part of my town and write some information about like few buildings there, so after i put my mouse over those buildings the information will b...

1
Q: Refactoring Into Generic Methods

markThis might be a loaded question, but here goes. I have some code that is very similar between all the methods. I am trying to find a way to accomplish all methods with a generic method/function. I'm not sure if I should be using delegates, and if so how to implement in this specific situation, ...

1
Q: Optimize Boolean Statement in Specific Code

meewoKI have the following code and am wondering if this can be further optimized using boolean algebra: if( ( subType = entry.getSubType() ) ==null || !(subType.equals("typeA") || subType.equals("typeB")) || ( version>=5 && (subType.equals("typeA") || subType.equals("typeB")) ) ...

1
Q: Munkres algorithm in Python: calculating maximum profit

Nikolay DerkachI'm using Munkres library from https://github.com/bmc/munkres/ to calculate maximum profit (reversed problem). What do you think about this coding style? def get_no_of_vowels(str): return sum(str.lower().count(c) for c in "aeiuoy") def get_no_of_consonants(str): return sum(str.lower()....

0
Q: How can I write this array more effectively?

Aldren TeranteHere is the JSON: [{"OneYear":4.99,"ShareClass":{"Class":"","Currency":"TWD","DividendType":"No Dividend","HistoricalDividends":null,"IsDefault":true,"IsHedged":null,"IsSelected":false,"LatestDividend":null,"LipperName":"聯博大利證券投資信託基金","MutualFund":{"AssetType":"Equity","Disclaimer":"","FundDetai...

0
Q: Book program, output turn out weird, need help.(ArrayList)

Bopeng LiuIm doing this Book program, which suppose to print out the name of the book and authors, but the output turn out to be very weird, can someone help me fine where my mistakes are? and help me complete this program pls. import java.util.ArrayList; public class Book implements Comparable<Book> { p...

1
Q: Split File Algorithm

Hai VuI have been looking for an algorithm for splitting a file into smaller pieces, which satisfy the following requirement: The first line in the original file is a header, this header must be carried over to the resulting files The ability to specify the approximate size to split off, for example,...

1
Q: Improving jQuery slider

M03GProblem: Make a slider, located at the bottom of the page. The slider should be dynamically loaded only when an becomes visible on the screen. Images do not have to load all at once. Load the first two images, then load the third when we switched to the second, and so on. I would like other user...

2
Q: Stack implementation using linked list

hrnrgvThis is a working stack implementation using a linked list. I'm just curious to know if this is a good way of doing it. Any suggestions are welcome. Can we keep track of the number of elements in the stack using a count variable as used in the code? #include <cstdlib> #include<iostream> using ...

0
Q: Conditional assignment in XSLT?

Rice Flour CookiesI've written some XSLT where I want to assign values to some variables. Depending on whether or not a condition is met, I want the variable to be populated with a computed value and I want it to have a default value otherwise. I've written the following code that appears to work, but I think th...

9
Q: Should a post with no specific question(s) imply a general review?

JamalI've started thinking about this more after seeing this question. I'm sometimes tempted to vote such questions as not clear what you're asking, but I also feel that it's not quite needed for this site. This is different from SO, where it's just impossible to help if no request is given with the...

0
Q: Are comments asking the applications purpose really relevant?

MyCodeSucksI've asked for a review on the way that I'm populating some comboboxes in a datagrid. One commenter asked what the purpose of the application was. Are those comments really relevant to a code review? In my particular case, I'm asking if my method is effective, or if there is a better way. The pur...

0
Q: Specific Questions about design

Aseem BansalI have some confusion whether specific question which are asking about design off-topic or on-topic? Specifically these 2 questions are confusing me Are private extension methods a bad thing to use? How to design DAOs that handle composite objects? I flagged for both to be migrated to program...

13
Q: 1000 days in beta: let's make CR t-shirts

retailcoderAs of 2013-09-05, Area 51 stats for CodeReview are as follows: Days in beta: 960. Questions per day: 19.4. Healthy at 15, need work at 5. Check. Answered Questions: 89%. Healthy at 90%. So we're anywhere between 88.5% and 89.4%: I'd love to see the actual decimals. I'm sure we can bring this m...

7
Q: What's the proper way to ask for database review?

mikeTheLiarI'm currently designing a database that I wanted to get some input on. It's entirely theoretical at this point, I haven't written a single line of SQL. Would it be acceptable to just post the database diagrams that I've made, pointing out the specific areas that I'm unsure about? If not, what oth...

1
Q: Guidelines for editing tag wiki excerpts

retailcoderJust went on a little tag-wiki edit-spree, and then realized that pretty much half my edits, despite being useful (the tags had no wiki whatsoever), were mostly defining what the tag is about. Is this the right thing to do?

4
Q: Burninate the CSharp tag!

retailcoderTag csharp has 0 questions asked here. Let's burninate it before its existence becomes widely known... ...or make it a synonym of c#.

8
Q: What to do with good code?

tomdemuytThere are 'Unanswered Questions' that contain good code and do not get closed, because saying 'looks good' is really a comment, not an answer. Example: how-can-this-simple-handler-in-nodejs-be-improved * There should be a mechanism to mark the question as answered.

0
Q: Add notice to FAQ for (new) users

Elias Van OotegemAs requested by one of the mods, this is the first of 3 suggestions/requests made here I've copy pasted it with some edits, during my lunch break, so if this suggestion doesn't make too much sense on its own, please refer to the original post. I'll edit this post further once I find the time... ...

13
Q: Should code block(s) as answers always require an explanation?

JamalHere is a great example of this. Granted, that was that user's first post, but this is still common. UPDATE: That example has since been updated, so consult the original version. This type of answer isn't always favored on SO, either. Even if such answers may benefit the OP, it may not benefi...

3
Q: Create Serial-Port tag

DanteTheEgregoreI currently work quite a bit with Serial Ports in C# and have asked a question pertaining to them. I don't know if the usage would be there to warrant it, but it would be nice to have a Serial-Port tag for future questions. I don't have the rep, could someone else create the tag? For reference, ...

5
Q: Merge math and mathematics tags

200_successThe math tag currently has 9 questions; mathematics has 3. I recommend merging math into mathematics, keeping the long form rather than vice versa, since Americans like to say "math" and British users prefer "maths".

3
Q: Can pseudo code be used be used as a clarification to the problem in addition to the code you want reviewed?

Old Badman GreySo I believe in not submitting pseudo code to be reviewed or as an answer and it is clearly decided against here. I had a question about code where I knew of an alternative approach to solve the problem but it was not the code I wished to have reviewed so I added the pseudo for the alternative me...

7
Q: Is a question on topic if its asking to improve code, but not for a code review?

Winston EwertThere is some blurryness to the definition of on-topic here that has existed for as long as I've been around. However, deciding where that line is has become a recurring problem as a moderator. So I want to get community input. If somebody asks a specific question rather than asking for a review...

11
Q: Is the Q&A format optimal for code review?

michaelavilaI'm new here, but it seems to me that the Q&A format isn't necessarily the best option for code review. It's been my experience when asking for code review that I don't know exactly what I am asking for. That's why I am here asking for the code review in the first place. I am not looking for on...

3
Q: Number list formatting followed by Code Formatting issue

MalachiOn this Question in Code Review Object Oriented Javascript optimization I found that when I tried to edit the question and add a numbered list format that it sucked in the Code Formatting that followed, so I had to add Code: after the list to show the numbered list that I wanted to close it, thi...

8
Q: Burn the books of [learning]?

JamalI've come across learning, which is only tagged with 15 questions right now. It seems unneeded because it doesn't add anything important to the question. We already have beginner, which sort of already implies that the OP is currently learning. If the OP were indeed posting some code for learn...

6
Q: Tags for optimization, performance, speed

200_successThere is currently a suggestion to make performance a synonym for optimization. I don't think that's right, for two reasons: You can optimize code for several criteria, such as maximum execution speed, minimum code size, minimum memory usage. Optimization is not always about performance. (Si...

4
Q: Some more answer badges to encourage participation

retailcoderI have posted this as a part of an answer of mine on meta question "Approaching 1000 days on beta", but it's burried in the question and actually deserves its own post. I posted it on Meta.StackOverflow but I only got [negative] feedback from people that aren't even active on CR, so I'm posting i...

6
Q: What about Algorithm Help

Loki AstariI have code that solves the "Traveling Salesman" problem using "Kruskal's algorithm" for a code competition site. The code run and generates the correct result. But has O(n^3) complexity. I am not sure my code implements "Kruskal's algorithm" correctly. Is it OK to ask question about algorithms...

3
Q: Is anything wrong with this question?

retailcoderI know the voting is a little shy on CR, but I'd have thought this post would have generated more views/votes... at least a couple comments... but almost 60 views now, and still nothing. "Type-safe" list implementation for VB6/VBA Is there anything wrong with this question? If I were to review ...

1
Q: vb Comments Taking up more than one line unless comment is terminated

Malachiin this Question, Encapsulation with a dbParameter Class there are comments in the code, other code that was tried before, and the comment showed over multiple lines unless the comment was terminated with another apostrophe, which isn't needed in VB. Not a really big deal but figured it was so...

4
Q: Prompt for more meaningful question titles

200_successI'd like to make a feature request to elicit more meaningful question titles, because I'm tired of editing generic titles. Right now, when you ask a question, the title field contains the hint what's your code review request about? Be specific. I propose changing the hint to say: State...

1
Q: Bulk-tagging: matrix

200_successI'd like to propose a matrix tag, because they constitute a class of problems that have much in common with each other. There are currently 125 relevant questions. Is there a way to tag them in bulk? Also, can they be tagged without swamping the front page with matrix-related questions?

2
Q: Synonym request: [backbone] -> [backbone.js]

JamalNot a huge request, but still something. backbone is currently tagged with 9 questions, and backbone.js is currently tagged with 24 questions. These two tags are mapped together on Stack Overflow, so I think the same thing should be done here as well.

1
Q: Winston Ewert is no longer a moderator?

JamalI've just now noticed the missing diamond on his profile, along with this: There's no announcement on Meta, and this just seems like an abrupt change. I'm not sure how long ago this was, either. But I probably should've suspected something when it seemed to take a tad longer for my recent mo...

 
@winstonewert No obligation, but you might want to drop by meta to shed some light on your departure from the mod team. :)
 

« first day (173 days earlier)      last day (3830 days later) »