0
votes
0answers
5 views

Overall utility tool for a project that will create account lists for pulls

I'm creating a meta-utility tool for a project that I'm on that has a lot of repetitive tasks that can eat up a lot of time. My goal with this tool is to eventually be able to automate, or at least ...
-2
votes
0answers
7 views

Prevent SQL Injection [on hold]

I know that I can use prepared statement to prevent SQL injection. I can do it using MySQLi or PDO. But I have a developed a large CRM using PHP/ MySQL (mysql_query). If I have to change each and ...
1
vote
0answers
6 views

Custom dynamically generated slide show container

I've created a custom slide-show container to use with Jekyll. This platform is used by the Github pages and works by converting plain-text markdown to HTML. I wanted to be able to embed the ...
3
votes
0answers
15 views

Desktop notifications for queue items

I wasn't satisfied with Simon's alert on the orange alert. I wanted to know if even 1 review item was available, so I made some modifications to the userscript so that it runs on the Review page, and ...
1
vote
1answer
17 views

Unit tests for a simple decorator

I do a lot of unit testing(tdd) and would like some comments about my style. Here is a simple example from a decorator. Is there anything I could improve? ...
4
votes
2answers
49 views

Searching within multiple objects of the bucket

I have millions of files in the Google cloud storage's bucket. I want to search within files with a .index extension and retrieve the contents. This is currently what I am doing, but the time ...
-3
votes
0answers
7 views

App has stopped working after adding parse notification module [on hold]

here is the code,one of my activities.my app works fine but when i add parse module in app..its works fine but shows the error app has stopped working at background ..app works fine ..no error during ...
0
votes
0answers
10 views

Laravel Controller including sort and search

I am using this code on my own personal website (my personal administration site) so it doesn't need any security and so on. I am not into learning everything about that yet, and although I do know a ...
-2
votes
0answers
14 views

C++ - Overloading operator >> [on hold]

I'm implementing my string class. Here is code: ...
1
vote
0answers
4 views

Test web application

I am writing a test web application in Golang. Create post handler: ...
-2
votes
0answers
7 views

Java Home work Instructions and Code Below..what am I missing [on hold]

Write a Java application that prompts the user for pairs of inputs of a product number (1-5), and then an integer quantity of units sold (these are two separate prompts for input values). You must use ...
0
votes
0answers
16 views

Color structure with single field for multiple properties

I'll get right to it, this struct is used a lot throughout my programme. This struct is responsible for only things regarding colour, not anything else. I'm ...
0
votes
0answers
7 views

Turn array into ranges, then back to fixnums (for doc removal)

I'm essentially trying to do two things to create a little inverted index: If a document ID is added to an object, I want to return a new array of ranges. If a document ID is deleted from an object, ...
-3
votes
0answers
23 views

Double and Float equals in C# [on hold]

Can I rely on this code? ...
0
votes
0answers
17 views

HackerRank Regex Challenge: Detect HTML Tags

Problem Statement In this problem you will use regular expressions to help you detect the various Tags used in an HTML document. Here are a few examples of tags: The "p" tag for ...
1
vote
0answers
11 views

Using Grand Central Dispatch to fetch data from Parse.com and update UI asynchronously

This works, and the UI is snappy in the simulator, but since this is my first time really using GCD, I'd just like this code to be reviewed before I start using it everywhere. Note that this is ...
-1
votes
0answers
8 views

Collect filenames from directory

Comments in text. Code: ...
2
votes
1answer
15 views

Linked list implementation - follow-up

Follow-up to this question as recommended. Can this code be improved from an OOP paradigm perspective? ...
2
votes
0answers
19 views

Randomly learning a neuron to act as a signal counter

I have this small program for learning an artificial neuron to act as a simple signal counter: my cell has four input wires (also called dendrites) and a single output wire (also called axon). If at ...
-2
votes
0answers
11 views

Euclidean Distance For CSV file of 4 column [on hold]

I have an issue with calculating euclidean distance for csv file of 4 col, the algorithm should produce matrix but the bellow algorithm does not: ...
0
votes
1answer
28 views

Integration test good practice

I am using unit test for some time. But now I need to write integration test. I should save something to DB, and then check if saved data is ok. I can't find simple clean example of integration test. ...
3
votes
1answer
16 views

Container supporting PeekMax, PeekMin, Sum, and PeekNextToMax v2.0

This is another part of the update to this question. The interfaces are in this question. To summarize, the class is a generic container similar to MaxHeap, but only needs to support the following ...
5
votes
1answer
41 views

Winforms Mathematical Operator Label

I wrote a custom class which (atm) displays the +, -, =, x, and ÷ operators inside a circle. Apart from the issue of some symbols not appearing in the exact center (everything except + looks a bit ...
3
votes
4answers
116 views

Find the locally biggest or equal values including corners in an array

I am looking for a function, that will find in array of n integers highest or equal locally values including corners. My code is probably wrong, and I somehow think solution is in some library like ...
2
votes
0answers
22 views

NHibernate multiple select queries

I have a service called "Roles" allowing me to retrieve all 'items' on which I have permissions. I'm experiencing a interesting performance issue with NHibernate ...
0
votes
0answers
24 views
1
vote
0answers
33 views

Sending file through socket

I'm trying to get some confidence with rxjs and frp. The code below handle file sharing throw socket.io. ...
3
votes
1answer
46 views

Event-listener implementation

While writing a C++ GUI application more or less from scratch I needed some form of an event-listener system, preferably using lambdas. An event should be able to have multiple listeners and the user ...
3
votes
1answer
25 views

Constraints for auto layout

I am adding some constraints for my auto layout. My method calling the methods creating the constraints: ...
1
vote
0answers
16 views

Non-blocking Unix domain socket

I've developed quickly two kinds of socket use: the first with blocking mode and the second with non-blocking mode. The sockets are Unix domain sockets. My problem is that the kernel consume a huge ...
3
votes
1answer
202 views

Calculate pairs in a Set (“Sherlock and Pairs” HackerRank challenge)

I have started reading clean code and want to improve my coding practices. Here is my attempt at solving an online puzzle. Please review the code and let me know how could I have written it better in ...
4
votes
1answer
51 views

Reddit bot to check reposts

I am a moderator of /r/sweepstakes on Reddit, which lets users post their referral links to contests/sweepstakes. One main rule is that a user is not allowed to post their link to a contest, if ...
1
vote
1answer
38 views

OOP paradigm implementation of a linked list

Can this code be improved from an OOP paradigm perspective? ...
-2
votes
2answers
31 views

Is There any way to simplify this jquery code?

I am using this code to add a class on mouse hover to a link button and remove it on mouse leave. ...
5
votes
0answers
56 views

Matrix rotation algorithm

Problem Statement You are given a 2D matrix, a, of dimension \$MxN\$ and a positive integer \$R\$. You have to rotate the matrix R times and print the resultant matrix. Rotation should be in ...
-2
votes
0answers
11 views

How can I make it so the user can input different answers but display the same result? [Python 3.0] [on hold]

I'm wondering how I could display the same result if the user inputs two specific answers in the input command (ie 'end' and 'End'). Here's the code I have so far; everything is working except the ...
3
votes
1answer
27 views

Merge adjacent numeric intervals

Given a list of pairs of integers that represent closed numeric intervals, I need to output a list of intervals where the adjacent intervals are merged together. The code assumes that the intervals do ...
4
votes
1answer
52 views

Conference Scheduler

Problem You are planning a big programming conference and have received many proposals which have passed the initial screen process but you're having trouble fitting them into the time ...
1
vote
1answer
25 views

Interfaces & Factory for generic container supporting PeekMax, PeekMin, Sum, and PeekNextToMax

This is a partial update of this question. An implementation of these interfaces is in this question. To summarize, the class is a generic container similar to MaxHeap, but only needs to support the ...
-1
votes
0answers
8 views

Best Way to Create Table of Aggregate Values SQL [on hold]

Short question: Is there a simple way to get tables of aggregate values to display in neat rows and columns in raw sql? Ex. Total sales over select years, where the column names are the years and ...
3
votes
2answers
66 views

Checking if an element sastifying a condition in a list comes before another of a different condition

This is for Java 6 and uses Guava. It's a little ugly and I'm worried I missed some obvious way to do it a lot better. If there is more than one element satisfying either condition I am saying it's ...
0
votes
0answers
12 views

Mocking dependencies when unit testing AngularJS services with QUnit

I'm trying to unit test an AngularJS service that is dependent on another service, using QUnit as my testing framework. The first test I'm writing is one to verify that my service calls another ...
2
votes
0answers
29 views

Implementing TAP around WMI

I'm trying to improve my skills with the Task-based Asynchronous Pattern (TAP), by writing simple task-based wrappers around some WMI methods: ...
2
votes
0answers
24 views

Printing a binary tree in vertical strips

I'm trying to print a binary tree in vertical strips. For instance, a tree like this: 8 / \ 6 10 / \ / \ 4 7 9 12 / \ 3 5 ...
1
vote
1answer
24 views

Capture time spent viewing media

I've created some custom code that will capture how long a user spent viewing a picture. The timer will stop when the user clicks or escapes from the fancybox view. Is there an alternate way for me ...
2
votes
1answer
39 views

Array of complex numbers

A class Array which contains two data members: a pointer on array of complex numbers and the length of the array. Implement a function for reading the array. The ...
3
votes
0answers
19 views

Simple Echo Server

I wrote this echo server in Haskell as a way to introduced myself to programming with sockets in Haskell and generally practice Haskell. The echo server has a simple purpose: accept connections from a ...
2
votes
0answers
16 views

Chromatic aberration

surface is a pygame.surface object from the Pygame graphics library. It actually runs way faster than I thought it would for a ...
4
votes
2answers
31 views

Downloading stock information from Yahoo! Finance

The program downloads stock information from Yahoo! Finance and displays it in the spreadsheet. On my Mac the program takes 10 minutes to get data for approximately 4000 stocks and on the PC it takes ...

15 30 50 per page