0
votes
0answers
2 views

Refactor javascript code to make it more modular

The following code is complete and works perfectly. What I want to do to is make it more modular in a way where I can use the code again - similar to an api. I also hardly ever code in javascript, ...
0
votes
0answers
5 views

Hashmap in Java [on hold]

Im trying to use a HashMap to do a project where i read in a list of jumbled words and a file of actual dictionary words and use a HashMap to find all the words that match in the jumbled words file an ...
0
votes
0answers
6 views

Iterative tree traversal to turn tree into a dictionary and list

I am trying to iteratively turn a tree into a list. For example: c1 c11 c12 c111 c112 The tree above ...
2
votes
1answer
10 views

JPaint (Java painting app)

I have this painting app called JPaint in Java and I'm wondering if it could be improved. The variable declaration seems repetitive and long, and I think it might ...
-2
votes
0answers
8 views
1
vote
0answers
14 views

Minimal Map implementation with weak values

What follows is an implementation of the java.util.Map interface with weak values. This means that entries should be removed from the map when their values become ...
0
votes
0answers
7 views

Excel Laboratory Data Entry from Python 2.7

I've written a script to automate the entry of laboratory instrument data into an Excel spreadsheet using pandas and win32com. I've got the script functioning correctly, but it is painfully slow. In ...
0
votes
0answers
9 views

SecureString as SqlParameter value without GC concerns

The purpose here is to make it easy to use sensitive data that is already in the form of a SecureString (example) without converting it to a ...
0
votes
0answers
8 views

Travelling Salesmen Problem - Dynamic Programming

I wanted to review my TSP program for correctness in my approach, although I have not implemented one function subset which would be simple. ...
1
vote
0answers
12 views

Markle-Hellman Cyptosystem

I have converted this code from Java to C#, but I do not understand the entire code, especially the masking. Please tell me how I can make the Encryption and ...
0
votes
0answers
10 views

Throwing exceptions in a database wrapper

I hope the extension methods ThrowArgumentNullExceptionIfNullOrEmpty and ThrowNullReferenceExceptionIfNullOrEmpty are ...
1
vote
0answers
17 views

Starting multiple Bitcoin daemons [on hold]

I've written following bash script in order to start multiple instances of a programm daemon (bitcoind = Bitcoin daemon) starting upon multiple independent conf-files: ...
2
votes
0answers
11 views

Web API using Repository / UnitOfWork

I'm looking for feedback on a repository I set up based on a blog post I read here. I have just recently got more into .NET within the past year, so any feedback and/or best practices that can be ...
2
votes
1answer
25 views

Generating letter combinations

It's about two months since I posted this question on CodeReview. I've been working hard to improve the code posted there and came up with the following. ...
0
votes
0answers
15 views

Optimized board representation for the 4x4 sliding puzzle

Inspired by this question and my answer to it I told myself I could try an optimized version for a 4x4 puzzle. There are only \$16!\$ possible states, so the state fits into a single ...
2
votes
0answers
11 views

Backbone/requireJs and circular dependencies

I'm trying to have a main App view with references of all my views to manage and call transitions between theses views. But, I have circular dependencies. app.js ...
4
votes
1answer
34 views

Guess the Number Game in Python

I have been using Python to learn programming, but I am just recently beginning to utilize classes. I have a basic game below. Please review and let me know what I should improve on. ...
0
votes
0answers
12 views

DAO layer in Spring application [on hold]

Let's say I have a Java web application driven by Spring and Hibernate. Let's discuss only about DAO layer. So instead of writing DAO interface for each implementation class I decided to write one DAO ...
0
votes
0answers
16 views

LiveDate version 2

My LiveDate object is now pretty much finished, but before I considered it that I'd like to get a last full review of it. Also, what would be better to do; ...
0
votes
0answers
20 views

Creating a hexagonal grid [on hold]

The objective of this code is to create a hexagonal grid (honeycomb type). This code is written by a friend and it contains lots of junk that do not contribute towards the objective. ...
2
votes
0answers
15 views

1st questions with answers within X hours

I recently challenged @Hosch520 with writing a query as such: Find first questions with answers posted within 24 hours And he did great. I figured I would have a go at it too. Turns out I ...
1
vote
0answers
24 views

Simple, functional URL parsing library in Clojure

I recently wrote some code to handle parsing of URLs, even if those URLs might not be one hundred percent perfectly well-formed. (This constraint made using Java's ...
4
votes
2answers
91 views

Implementing a Singly Linked List

I am implementing, in my SinglyLinkedList class, an interface where I redefined linked list. I am trying to learn data structures. Please, let me know what I can ...
3
votes
1answer
52 views

WinForm Calculator

I'm looking to get this cleaned up. ...
0
votes
0answers
12 views

Natural mergesort

This is a problem from Robert Sedgwick's Algorithms book: Write a version of bot tom-up mergesort that takes advantage of order in the array by proceeding as follows each time it needs to find ...
-1
votes
0answers
21 views

Creating a game of Checkers in C# [on hold]

So I am having a tough time understanding how to get the program to read my inputs via button presses for each cell. It's a more of a primitive checker game, but I seem to be getting super confused ...
2
votes
2answers
36 views

MVC N-Tier Architecture

I am working on a new MVC web application, so the project is in early stages. I have created 4 projects. Let me explain what they do: Common --> contains all my DTOs, enums helpers, ViewModels ...
4
votes
0answers
15 views

Registering a plist to NSUserDefaults

I've been struggling with registering a plist into NSUserDefaults and I've finally got it working, though I'm not sure that its written properly. I'm hoping someone ...
1
vote
1answer
32 views

Filtering multiple large (>2gb) csv files with stock prices

I have a set of pretty large files (>2 GB, over 30m rows) containing intraday data in the following format: ...
0
votes
0answers
9 views

Send Ajax Request Function v2

I would like to get a full on review on my sendAjaxRequest function. Suggestions for any improvement are always welcome! sendAjaxRequest.js ...
3
votes
0answers
21 views

Merging multiple JSON files using Python

I have multiple (1000+) JSON files each of which contain a JSON array. I want to merge all these files into a single file. I came up with the following, which reads each of those files and creates a ...
0
votes
0answers
26 views

Building JSON array containing HTML

So, One of my companies developers wrote this. Not me. Alright, it was me. How can improve this puke? ...
2
votes
1answer
31 views

Project Euler #2: sum of even Fibonacci numbers, using generators

I am currently working on Project Euler problem #2 which requires you to print the sum of all even fibonacci numbers below 4 million. I just recently learned about generators and from my ...
3
votes
2answers
65 views

Processing buy and sell orders

My code is too slow, it does the desired, but not in \$O(\log n)\$ or faster. Explanation of the auction system: For simplicity we will assume that all orders are for a single unit of the traded ...
-2
votes
0answers
7 views

I am trying to pass some RSPEC Tests and not sure how [on hold]

I am new to Ruby and trying to pass some RSPEC tests to write a tic tac toe game. Can anyone help with this? Here are the following tests: ...
3
votes
1answer
27 views

Resistor Program Using Functional Decomposition

The purpose of this program is to write a code that will give a user a list or menu of choices that show colors and their values according to some data and prompt them to enter input to determine the ...
1
vote
1answer
24 views

Create an associative array with values as an array from an another associative array

I have a query that returns an array or associative arrays of ids and years. It looks like this: ...
0
votes
1answer
17 views

Word Counting from Array onto Output File [on hold]

For this problem, I have to have two text files: one for list of words that need to be found and other containing the document that needs to be search. The results would placed in a output "results" ...
0
votes
0answers
32 views

My Users Controller

I was hoping someone could take a look at my users controller and give their feedback based one their opinions of what they think of my user's controller. As well as maybe give some ideas if any for ...
0
votes
0answers
11 views

Sieve of Eratosthenes in Clojure

I am mainly interested in how to make the sieve lazy so that it will receive something like (iterate inc 2) and generate an infinite sequence of primes, but any ...
-1
votes
0answers
5 views

(newbie)Piping Design Guide [on hold]

So far I have not had any issues until trying to figure out spacing required between the centerline of one pipe, and the centerline of another pipe. In order to do this, the user needs to input the ...
0
votes
1answer
26 views

Efficient data migration

I'm trying to make a market depth chart with data from a exchange and a Google JS chart. The good news is I got it working, but the bad news is the code to prepare the data to be used by google ...
0
votes
0answers
22 views

JavaScript Dropdown Selector

I am just getting into front-end web development and to practice, I made a dropdown selector that allows for more styling than the regular <select> element. ...
0
votes
0answers
8 views

How to use writerow or append to print iterable to CSV column? [on hold]

I'm struggling with an easy question. I would like to be able to print 'value' to a column as many times as there are integers in 'count'. I can print the correct result, but not write to a list in a ...
-1
votes
0answers
15 views

implementation interface concept for making a simple calculator in c# [on hold]

how to implement interface concept for making a simple calculator in c#. ...
1
vote
1answer
15 views

Swift extension: Dictionary<String, AnyObject> to JSON string for URL parameter

Here's a quick extension for [String: AnyObject] dictionaries in Swift. The output needs to be in the following format (order and spacing don't matter): ...
1
vote
1answer
19 views

Extracts marks of all students in class from website

This code extracts marks of all students in class and stores the result in a file results.txt, using BeautifulSoup. I'm looking for code review and suggestions. ...
1
vote
2answers
88 views

Check for null/empty in dictionary

I am doing the following about 10 times with other strings, so the code is duplicated. How can I refactor this? queryWhere is a ...

15 30 50 per page