0
votes
0answers
8 views

Alternative way to design these classes

I've got a question about my project's design. I'm designing a piece of software but would rather not show the actual code, so I made some basic classes similar to what I'm doing. I'm new'ish to ...
0
votes
0answers
4 views

WPF DateTimePicker user control

I've created a UserControl that should act as a control inside a Window: XAML: ...
1
vote
0answers
9 views

Drawing a colored rectangle on-screen

I have made my first program that draws a colored rectangle on-screen. I want to know the best practices of making OpenGL and GLSL programs. ...
-1
votes
0answers
11 views

SMS-Gateway with Java(Android) or C# on mobile phone [on hold]

I got the task to program an app for android or windows phone which receives incoming SMS and creates a new email with the same content of the SMS and then sends this email to some specified ...
-2
votes
0answers
10 views

Flip card is not working properly in Safary [on hold]

I use Bootstrap flip card snipped taken from here with some customization. HTML ...
2
votes
0answers
10 views

Set properties on object or not

In order to perform form validation, I have created a custom object: ...
0
votes
1answer
16 views

Descriptor class with advanced (inspect/metaclass) functionality

Having answered this question over on Programmers.SE, I found myself wondering how much effort it would be to write a descriptor that can automatically figure out what the 'destination' attribute ...
1
vote
0answers
10 views

Subclass: reformulated

I have added the full code of my current Gmap component, which is a convenience object to abstract Google Maps functionality: ...
-4
votes
0answers
14 views

SMS-Gateway with Java or C# [on hold]

I got the task to program an app for android or windows phone which receives incoming SMS and creates a new email with the same content of the SMS and then sends this email to some specified ...
0
votes
1answer
15 views

Assembling an Interrupt Handler

- INTERRUPT HANDLER - ...
-2
votes
0answers
17 views

Is subclassing a trivial performance optimization for methods on the prototype (see details) [on hold]

Assume that: I have a function object that would take up to 40 methods on its prototype; In some circumstances I would require all the methods, in some circumstances I would only require a few, ...
1
vote
0answers
25 views

Calling Constructors twice - What a code smell

This is the code I wrote, I can't stand it myself, I am creating instance of same object to populate it's properties twice, I need to give this object to another developer who just don't need ...
2
votes
0answers
11 views

Benchmark a sorting method for fixed-size arrays

During the past few days, I have written a small C++14 library which mainly provides the cppsort::sort function. It is designed to efficiently sort small arrays ...
0
votes
0answers
26 views

“Better” descriptor/decorator pattern?

First things first, here's my project's GitHub page. So, normally you freeze a player using player.frozen = True, which causes overlapping between multiple mods. If ...
1
vote
1answer
10 views

Classifying lexemes in a given C program

Please review my code and tell where I can improve my program. ...
0
votes
0answers
32 views

Getting LinkedIn details

Each field is prone to throw an exception if not found. If one element not found, then the next should be checked. I have put each element in a separate try/catch. Is this a correct approach or can it ...
-1
votes
0answers
9 views

I'm designing a Javascript jquery plug-in to pick the year and month for an input [on hold]

It's a little ropey but purposefully verbose. I'm after a little feedback before to help me go though it and make it really swish. with animations ect. It's a drop-down month picker, that lets users ...
0
votes
0answers
13 views

Bruteforce XORing speed

I'm trying to learn more efficient coding so I'm doing some challenges. I have a challenge where I'm given some hex data. I know that hex data is XOR encoded with a four character long ASCII key. The ...
-1
votes
0answers
13 views

Prevent SQL INJECTION ZEND FREAMWORK 1.10 [on hold]

I am new to PHP and ZEND Freamwork 1.10. Actually the coding done three years back. Now my customer wants to secre application. So I need to to help how to prevent the sql injection the zend freamwork ...
6
votes
6answers
755 views

Sorting a list of first names from a text file

I applied for a job as a C#/.NET Junior Developer, and had a test to do:: Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, ...
4
votes
1answer
19 views

MVC Calculator Implementation with Java Swing

I know this might be a relatively large amount of code, but I'm just looking for any improvement, big or small, on my coding as I can. As part of my self-study in programming, I decided to make a ...
3
votes
0answers
52 views

Robot arm manipulation library

I have created a DLL library that controls an robotic arm. Could you tell me if my design is correct? The robot communicates over serial port. The code works but I would like to receive a feedback ...
-1
votes
0answers
15 views

Using annotations in delphi for stored procedures [on hold]

I've been trying to create a generic function in pascal that allows me to call stored procedures. i.e.: ...
5
votes
0answers
18 views

Assembling a Sequence

I've completed the "Sequence Counter" level of TIS-100, but this is horrendously inefficient. My cycle counts are at about twice the minimum possible according to the charts: I'm not really as ...
4
votes
0answers
19 views

Drilldown navigation menu by replacing divs

I made an attempt at a menu, that comprises of just replacing <div>s by showing and hiding. Kind of like a drill-down technique. I have the feeling that it is ...
5
votes
1answer
30 views

Toggling a CSS animation

I'm trying to toggle a dropdown box that will appear and disappear upon clicking the button. ...
3
votes
1answer
22 views

Finding the max error of a set of training data

I wrote a neural net, and a Trainer class that automates training the net using a training set; a set of input, and the expected output value. Originally, I was ...
5
votes
0answers
24 views

Implementing a (small) full-text search in Ruby

I'm trying to implement a small full-text search in Ruby. I feel like I've laid down the foundation but I've encountered a blocker that has gotten me thinking that something with the design is ...
3
votes
2answers
40 views

Versioning documents in Couchbase

I've just converted a class for versioning Couchbase documents from Java to C#, but I'm not 100% familiar with the Couchbase API so would like some feedback. The original class can be found here. ...
4
votes
1answer
42 views

UTF-8 encoding/decoding

I have two functions, a collection of possible error codes, and a unit-testing framework. The parsing of a character into its unary prefix and payload is handled by a few named functions and macros ...
0
votes
0answers
17 views

Wavefront-Reader (.obj) in Java - Part 2

I want to implement a Wavefront-Reader, and this is part II of the stuff. If you want to take a look at part I go here. Like in part I - I use: Spring for dependency-injection AutoValue classes ...
-2
votes
1answer
36 views

“Finding possible candy permutations” HackerEarth challenge

Problem Statement Shil, Aditya and Utkarsh go to a candy shop. There are N candies present in the shop, which are indexed from 1 to N. All three of them select one candy to eat. ...
3
votes
0answers
38 views

2048 Game Algorithm in Java

I created a 2048 game clone in Java. However, I am only writing the fundamental algorithm for the game such as the movement, the losing condition, and the algorithm to generate a new tile. This ...
-3
votes
0answers
9 views

Scramble the string on the basis of index obtained by reversing its digits in binary form [on hold]

I am trying to solve this practice problem on Codechef and I am passing all the test cases I can think of, but I am still getting the wrong answer. I really want to learn which test case I missed. ...
0
votes
1answer
13 views

Resize images in the background after upload

I have working code that uploads and resizes images. What im trying to figure out is how I can direct the browser to another page or view kind of the way facebook does, but still call the resize ...
2
votes
0answers
15 views

Tic Tac Toe dynamically changing board position and score board position

Here is my game logic: Tic Tac Toe - player Vs player Player A (first player to enter his name) is getting 'O' and is starting Players choose the desired spot to put their sign(X or O) using the ...
0
votes
1answer
27 views

Website registration

Can you please tell me how to improve this code? ...
2
votes
1answer
22 views

Rotating `n` random items in an array

Honestly, it should be an incredibly simplistic function, yet it has become the following atrocity: ...
0
votes
0answers
17 views

Number of Chocolates to Gluttonize in Clojure

I’ve been dabbling in Clojure by solving programming puzzles. This particular puzzle is from HackerRank, with the objective of figuring out how much chocolate one could eat given three parameters: ...
0
votes
1answer
34 views

How to achieve or ensure efficient and RAM kind Node.js code?

I'm sharing this REST API controller code in order to make it work better, also, to become a better developer. I'm having this issues with the application that API handles and I also need to improve ...
1
vote
1answer
22 views

Swap items of a linked list in pairs - revision 4

Here is the source of the question. The solution on GitHub. Revision 1. Revision 2. Revision 3. @200_success' suggestions from revision 3: The iterator's ...
0
votes
1answer
58 views

Offline Euler problem viewer (text only) [on hold]

I've created a single page web application (that should work offline, without a database, etc.) using bootstrap and JavaScript to act as an Euler question viewer (text only). It simply renders the ...
0
votes
0answers
10 views

BFS “Digit Jump” solution taking too long [on hold]

This code is for problem DIGJUMP. Tough it gives me correct output for all inputs, but still getting TLE. I checked the editorial and the same solution (concept-wise) gets accepted, but mine is ...
1
vote
0answers
13 views

Safely using android 'Context' inside threads

Oftentimes I find myself using context inside threads, multiple times. The problem is that I do not want to hold a long-lived strong reference of it in my threads to avoid leaking it. I keep a ...
-1
votes
4answers
78 views

Performing Operations on a List

Problem Statement (HackerRank) You have a list of integers, initially the list is empty. You have to process Q operations of three kinds: add s: Add integer s to your list, note ...
-6
votes
0answers
79 views

hackerrank CAMPERS: FINAL MATCH TO PLAY AS A COUNTER TERRORIST [on hold]

Problem Statement Time is running out. You have a final match to play as a counter terrorist. You have N players each having a distinct ID from 1 to N. You have to choose some players on your team ...
2
votes
2answers
65 views

Sharepoint Authentication Helpers

I'm working on a rather large SharePoint project that's going to contain helper classes for a variety of item levels (sites, webs, lists, items, etc'). When writing code I'm expecting that the same ...
1
vote
1answer
34 views

Implementing a linked list as practice for a coding interview

I am practicing LinkedList problems. How do I make it production level code as is mostly expected in a coding interview? Any other Suggestions? ...
3
votes
1answer
59 views

Implementation of a VertexBufferObject class

I have been working a simple 2D Game using C# language with OpenTK (OpenGL wrapper/binding for .NET). It uses a lot of sprites. Since it uses lot of sprites, I think it's important to make everything ...

15 30 50 per page