1
vote
0answers
7 views

SortedList implementation in Java

I've implemented a SortedList which takes in streams of floats and returns a median at any point. ...
0
votes
0answers
5 views

Finding Kth Permutation Sequence

I have written a program to display the kth permutation sequence of a string made up of letters 'O' and 'Z' . I tried optimizing it but my code have not passed test cases due to timeout issues.Looking ...
-2
votes
0answers
8 views

c# How to fetch data from database and display it on textbox AUTOMATICALLY [on hold]

So the code below works but I use a button, and I have to press the button everytime to fetch information. Does anyone have any advice on what should I do to automatically fetch information from ...
-4
votes
0answers
7 views

Draw Octagonal Grid [on hold]

I have developed a program to draw Octagonal Grid. How do i write pseudo code for the same OCTAGON.java ...
0
votes
1answer
19 views

How to get around Python's round() limitation

I'm trying to come up with a general way to correctly round floats with Python, given the known limitation of round(): Note: The behavior of ...
5
votes
1answer
21 views

Optimize speed of directory copy program

A little while ago, I had to write a little C# application to recover my HDD data (full context on this question) To answer my problem I developed a console application which job was to recursively ...
1
vote
0answers
6 views

Modify and import as numpy.ndarray a txt file in python

To import the data contained into the file my_file.txt that have the form: ...
1
vote
0answers
21 views

optimize memory usage of haskell program

following is one of my program that utilized memoization and array that is supposed to boost up performance and memory usage. the performance seems satisfying but the memory usage is ridiculous and i ...
1
vote
0answers
17 views

Guidence on the use of Ninject as IoC Container in a WinForms MVC Application

I am a relatively experienced WPF developer who has had good exposure to MVVM. I have been developing legacy WinForms applications for a while and have recently been asked to fully re-write a large ...
1
vote
0answers
22 views

Snake game in C++ (using SFML)

I haven't done any programming in a while, and I'm getting back into it. I made this Snake clone to refresh me a bit, and I would like to get some feedback in the "elegance" and "well-done"-ness of ...
-2
votes
0answers
21 views

Static classes / methods are getting bigger, is this a code smell? [on hold]

Recently I've observed that static classes/methods have been getting updated continuously to support more features (agree, already breaking Open-closed principle). Initially when it was started the ...
-4
votes
0answers
14 views

I NEED INSERT ID FROMATE 0001 >>? [on hold]

str2 = SqlHelper.ExecuteScalar(My.Settings.conn, CommandType.Text, "select isnull(max(serialNo)+1,1) FROM Serial Where type = '1'" )
-2
votes
0answers
30 views

Beta login api without passwords

In present day, people are asked more & more for new and more difficult passwords all over the web. To be honest, in my case, it is becoming a real struggle to remember all those passwords and I ...
2
votes
1answer
23 views

Autoloader class for PHP

I created a class that I plan on using to autoload my project classes (20-30 classes) maximum. I wonder if there is anything, anything at all, that I can improve on this class to improve it any ...
3
votes
0answers
7 views

Using arrays to read in file, append it with parsed program output and overwrite original

Yesterday a friend of mine asked on U&L: How to optimize 'grep'-and-save? I will summarise shortly. The output of the torque pbs queueing system tool qstat ...
1
vote
1answer
25 views

Python. Is it acceptable to use nested functions instead comments to show steps inside another function? [on hold]

Maybe I'm wrong, but I think sometimes code like this ...
4
votes
0answers
32 views

Fuzzy grep for fuzzy bears in pure Python

I am aware of the Python modules galore to do this, but this was partially a learning experience and partially all the functionality I need and no more. I'm writing a simple interpreter for a ...
4
votes
3answers
180 views

Using Enum to Handle String literals

I have a java component that was using a lot of string literals that I need to make comparisons on and return booleans based on these comparisons. In order to make the code more robust I externalized ...
-2
votes
0answers
7 views

Linux Mint - Cannot login or create databases in MySQL WorkBench and PHPmyAdmin [on hold]

I have tried a countless amount of times to manually adjust the MySQL server/workbench installation, and the PHPmyAdmin installation on my Linux Mint machine. At this point in time, I cannot access ...
-3
votes
0answers
12 views

Python audio import sounddevice as sd (ImportError: No module name sounddevice) [on hold]

I am trying to use a raspberry pi to receive microphone input and add an effect outputting a low pass audio filter effect on the microphone input in real time. I have python code that is running on ...
-1
votes
1answer
14 views

Managing game entity data [on hold]

I am making a 3D game and I'm focused on performance. I'm making a entity class. ...
2
votes
0answers
19 views

Sort Algorithms in Julia

Similar to this question here, I am trying to implement sort algorithms in Julia, as part of a package. The code for the implementation is as follows: ...
1
vote
1answer
27 views

Reading a CSV file containing a dataset of 8×8 images

I am trying to implement a machine learning algorithm (k-nn for example). But before I attempt to do that I was hoping for some feedback on my current Main class, which essentially builds 8×8-pixel ...
-4
votes
0answers
12 views

Python import sounddevice as sd (ImportError: No module name sounddevice) [on hold]

1 down vote favorite I have python code that is running on raspberry pi B++ that uses the sounddevice library that lets you play and record sounds with python. I have successfully installed the ...
1
vote
1answer
35 views

196-Algorithm Program

Attempting to see whether using 196 as a respectively in my program will have a result or not, I made a simple function to test it. Now the 196-Algorithm requires ...
0
votes
1answer
20 views

Array-based MinHeap implementation in Java

This is my implementation of MinHeap in Java. ...
2
votes
1answer
13 views

Resets Rows to default values if column A is missing a value

I have the below working Subroute that works, but I have recently started updating the sheet and adding new columns. I'm finding updating the current macro to be a bit of a chore. So my question is: ...
2
votes
2answers
164 views

JavaScript Iteration

In my current project I have objects of the following structure: CanvasBundle - Object Some elements... gridCanvas axesCanvas ...
1
vote
0answers
20 views

Student/Class App Java/MySQL

I posted a question about this code yesterday and have made several updates. I'd just like to know if there are any other major errors or spots for improvement. I have three MySQL tables: ...
4
votes
1answer
35 views

Large Integer Class - Stores Integer Data as Char Array

I am working on a LargeInteger class to store Integers beyond the size of long long as a dynamic character array. I have ...
2
votes
0answers
26 views

Uploading .dll files to a local computer

I have created a simple application that has grown a little bit. Though most likely it won't grow anymore, I have looked back and I realized that it has become a little monster in terms of how many ...
4
votes
0answers
25 views

Simple wrapper for the GitHub API with Promises

I'm only just starting to delve into the wondrous world of functional programming and Promises; to start with I've converted a bunch of procedural code in (what I believe to be) is a more readable ...
3
votes
0answers
25 views

MySQL connection using a static connection

I have been using a static class to connect and retrieve information from a MySQL database and also reading about how static works in php. I'm still not sure if the code is bad or not and why (besides ...
1
vote
0answers
21 views

Progressively split and map a large, line-based string

Goal I have a large string (~10MB in ~400k lines). I want to "efficiently" split it on a delimiter and map the resulting sets of lines. Efficiently is defined as something that is fast (wall time), ...
2
votes
1answer
37 views

Convert custom format to XML Template

I have just finished writing a simple Python3 program which converts a custom input file (or multiple files within the same folder) to an XML template. It works as it is, but I think that I somehow ...
4
votes
0answers
21 views

Reporting the status of the actions of a group of SKSpriteNodes

Working on a little Sprite Kit game, I had the problem that I wanted a couple of things to wait until a group of sprite nodes had stopped their animation. I decided to use a GCD dispatch group to ...
3
votes
0answers
15 views

Task Scheduler with Dependencies

I have need for a task scheduler determined by a directed graph. The tasks are held in a std::vector<task_type>, while the dependency graph is held in a ...
1
vote
1answer
12 views

Wordpress downloader and unpacker

Wrote a small bash-script today that downloads the latest swedish wordpress archive , extracts it and writes wp-config.php Would appreciate any feedback that could improve it / prettify it. The ...
0
votes
1answer
23 views

Find csv item index

I'm quite new to Python and I have been trying to find a way to search a csv for a test string and return the index of that item in the csv. I am using the code below but find it hard to believe that ...
-2
votes
0answers
20 views

Validating a database connection [on hold]

I need to validate database connections in a separate function. Why is SonarQube plugin for Jenkins complaining about the open statement if I close it in the finally block? ...
2
votes
0answers
12 views

Guidance on grouping equal sets of numbers, so each group has a similar average

Goal: I am trying to build teams of 5 people. Each person has an integer elo (rank). My goal is to make all the teams as equal/fair as possible, by having the average elo of each team be as close as ...
0
votes
0answers
16 views

Checking if a 3D point is outside of a trapezoid

I have recently written if a 3D point is within a specified trapezoid. It does it by checking 3 different planes of the trapezoid. I place the relevant 2 coordinates from the 3D point into the current ...
3
votes
1answer
19 views

Database trigger to monitor insert/update events and update another table

I am working on a MSSQL Database (for a program called Sage 200). There are many tables in the database, however, I want to be notified of changes (new record inserted or existing record updated) via ...
-1
votes
0answers
19 views
0
votes
0answers
12 views

A two-method program for running background jobs

I wanted to make a program for running background jobs (ruby scripts). The goal was to continuously run a background script on an interval of N seconds until a kill command was issued. See below for ...
-3
votes
0answers
28 views

Linq expression in F# and ElasticSearch [on hold]

I have rewritten some my C# code to F# and run into F# Expression linq madness, I believe I'm doing something wrong. ...
-4
votes
0answers
19 views

I want to get Source code vb.net convert video formats [on hold]

I want to get Source code vb.net convert video formats
2
votes
1answer
25 views

Processor that would process an Object (say a message you received)

Sorry for being a little abstract but I have attempted to concoct something simple but it seems to spiral out of control. So I was thinking maybe I am taking the wrong approach. Here's what I am ...
0
votes
1answer
39 views

Create Xml to string serializer

I don't want to serialize everything. I created a custom attribute DoNotSerializeAttribute. If some property in info contain ...

15 30 50 per page