3
votes
0answers
9 views

A dashboard for my university's commonly used resources

This is my first big JavaScript project and I wanted to know what I could improve in terms of coding practices and design. It is a Chrome extension made for Vanderbilt students (VandyTab) that takes ...
2
votes
2answers
15 views

Generation of Prime Numbers

I have created this prime number generator. I want it to be as fast as possible, but I am wondering if there is a faster way (there must be). ...
-3
votes
0answers
8 views

Implementing the Nelder Mead Algorithm in R

What is wrong with my function for implementing the Nelder-Mead Algorithm? The instructions specifically are: Implement the Nelder-Mead Algorithm for optimization in two dimensions. Optimize the ...
0
votes
2answers
36 views

Print the Twelve Days of Christmas without loops or conditionals

For my AP Computer Science class, I am required to write a program that prints the Twelve Days of Christmas without loops or conditionals using static methods. ...
-3
votes
0answers
10 views
1
vote
0answers
5 views

Multi-function clock GUI

I was sitting in my bedroom, looking at my Powers of 2 clock sitting next to my radio, under my analog clock on the wall, and wondered to myself: "Why have all these different clocks when I can have ...
-4
votes
0answers
12 views

MD5 implementation [on hold]

My pitiful attempt at coding Wikipedia's pseudocode MD5 algorithm has failed. The output generated does not match Wikipedia's sample output and I do not see what I am doing wrong: ...
3
votes
2answers
84 views

Metal King: A JavaScript Game

I started to learn programming just a few days ago. And I've written code for a simple original game for practice, using some knowledge of JavaScript that I have gained so far. Is the following code ...
2
votes
0answers
18 views

Social image sharing site with mobile-first, responsive layout

I am rebuilding the front-end for an application that I am building and have the content laid out the way I need. I would appreciate any suggestions on how to improve the structure, specifically the ...
2
votes
1answer
32 views

Scanning multiple huge files in Python (follow-up)

I'm trying to implement an algorithm able to search for multiple keys through ten huge files in Python (16 million of rows each one). I've got a sorted file with 62 million of keys, and I'm trying to ...
4
votes
2answers
65 views

Simple calculator which can operate on more than two numbers

All the calculator programs I have seen so far seem long, complicated and they can only operate on two numbers. Mine is simple, short, and it can operate on as many numbers as you want. Please tell me ...
-1
votes
0answers
20 views

Q learning with Flappy bird [on hold]

My final assignment Intro to AI is to take a pygame Flappy Bird and modify it to learn to fly itself. I'm having trouble with my implementation as it doesn't seem to be learning much at all. Without ...
2
votes
1answer
44 views

Using factory pattern to create email templates

Firstly I try to explain my model. I have 3 type of notifications which can have N types of email templates related to a specific status. ...
-4
votes
0answers
13 views

Weather android application [on hold]

I'm trying to study many subjects of programming by myself, and sometimes I find it difficult to know if I'm in the right direction in my understaning. I haven't found any rules on posting on this web ...
2
votes
1answer
25 views

Saving data in MVC

We have a lot of Controller ActionResults like this in our MVC project. The controllers get really cluttered up. This is a simple example, but we have much more ...
9
votes
2answers
514 views

Programming challenges: australian voting

I'm trying to solve the following problem: Australian ballots require that voters rank all the candidates in order of choice. Initially only the first choices are counted, and if one candidate ...
5
votes
1answer
141 views

Combining two clock tick vectors with NumPy

I have two long (7683200 length) 1D arrays corresponding to two clock cycles, that I wish to combine into single 1D array. The clock_ticks_fine cycles between ...
1
vote
0answers
8 views

String to Class: Conversion Class or Base Conversion Method?

I'm working on a project where I builded a structure composed by a basic class "TFuncao", two descendant classes "TSolicitacao", "TResposta" and as many as needed descendant classes, all of them are ...
-1
votes
0answers
19 views

What is a good way of setting up a retry system in an rpg game? [on hold]

So I made this program for a 1 on 1 battle between whatever named enemy I choose to let into the game which works fine for me, but my problem is that I don't want the program to end as soon as the ...
2
votes
1answer
34 views

Constructing a simple tree with ASCII in F#

This is just a basic HackerRank challenge I was working on to better understand F#. Its purpose is just to print a tree that has a straight 'trunk' of \$n\$, splits into 2 branches which diverge to ...
-1
votes
0answers
8 views

Error using Matlab HDL Coder [on hold]

I hope this is right forum to post my question. I am trying to convert below code to VHDL using Matlab HDL Coder but getting error. ...
-4
votes
0answers
19 views

Declaring an image field [on hold]

Is this the correct way to declare an image field for my user's table using SQLAlchemy and Flask? ...
-3
votes
0answers
6 views

Async in fragments android [on hold]

I am trying to show some data from the site in fragments in my android app. It seem like there is some problem in HTTP request. Target devices is SDK23. I am using HttpURLConnection. ...
1
vote
0answers
30 views

Model validation against database and extra business logic

The thing is that I asked this question on StackOverflow, but after some time thinking about it, I think it better go here first. MainView ...
4
votes
0answers
18 views

Custom sorting an Excel Data Table (+ visual formatting)

I'm (re)building a data table to track our clients that receive regular income payments. Specifically, I need to pull this data into other workbooks for other reports, and since I was here anyway I ...
11
votes
5answers
1k views

One program using three functions to compare two double-precision numbers

I am currently learning C++ though Bjarne Stroustrup book Programming Principles and Practices using C++. Going through the drills, I am trying to purposefully write efficient and readable code (good ...
-1
votes
1answer
35 views

Writing a long hash for a file converter [on hold]

I've created a hash for a file converter. The file gets loaded into the program, and from there the file goes to a hex editor and the user picks and chooses what they want to do to the file. During ...
0
votes
0answers
36 views

BufferAggregate

In the ongoing saga of me rewriting functions that can be easily composed from existing Rx functions, I present my latest progeny: a bastard combination of Scan and Aggregate. The aim is to aggregate ...
2
votes
1answer
25 views

Removing spam from a database using NodeJS

I've written the following in NodeJS as I am trying to learn a bit more about that toolset. It 'works' but is not very robust. I am not concerned with security at this stage and the code will not be ...
17
votes
2answers
3k views

Hooked on Windows

The code that was just added to Rubberduck will allow us to set up hotkeys for our features, so that next release, Ctrl+Shift+R brings up the refactor/rename dialog, for example. The requirements ...
6
votes
0answers
38 views

Editing Javascript and rendering HTML in one window v2

I wanted to revisit this site to post some recent work I put into this small project. I was able to add a console as suggested; but I thought I would ask here how my coding stying is before I work on ...
8
votes
3answers
2k views

Printing all primes < 1,000,000 to a text file

It takes a long time to execute and the CPU usage for the executable is about 25% while it is executing. Any ideas on how to make this faster? primes.c: ...
9
votes
1answer
358 views

Scanning multiple huge files in Python

I'm trying to implement an algorithm able to search for multiple keys through ten huge files in Python (16 million of rows each one). I've got a sorted file with 62 million of keys, and I'm trying to ...
1
vote
0answers
45 views

Non-curses pager in C (revision 2)

In this revision (follow-up of this post) I've fixed reading from stdin, and also tried to minimise the damage caused by typing additional characters. You might want to see my original post on this. ...
3
votes
1answer
41 views

Bracket Pair Validation

Validate that the following bracket pairs [], {}, () open and close successfully in a ...
7
votes
1answer
338 views

Non-curses pager in C

I have written a pager in C that is supposed to be used in systems where curses is not installed (or broken). It can also be used as a system-wide pager, it works ...
3
votes
2answers
27 views

Rails conditional sorting based on params

The following code sorts the current users bid model items based on a param condition :bid_status. It starts to get messy when checking if the project space (...
3
votes
0answers
18 views

A closable footer bar with a floating info box

I wrote this page with the goal in mind of having a footer that runs along the bottom of the page that can be closed, and has a floating info box that appears when the footer is hovered over. I'm just ...
5
votes
2answers
56 views

Multiplayer BlackJack using Vector

This is a small program I wrote for GCSE computing, it operates using Vectors and that's pretty much it, wondering if you could tell me if there is anything I could do better. BlackJackv2.cpp ...
2
votes
1answer
23 views

Making a grid of videos

In my single-work.php I have some code with slight variations that I feel could be more DRY. When there are only slight variations like this is it ok to repeat part ...
12
votes
4answers
644 views

Project Euler 6: Difference between sum of squares and square of sum

I've created a (very) simple solution for Project Euler problem 6: Project Euler Problem 6: Sum square difference The sum of the squares of the first ten natural numbers is, $$ 1^2 + 2^2 ...
4
votes
1answer
22 views

Selecting time metadata off a calendar table

I have a report on SSRS (that's SQL Server Reporting Services) that I need to be able to parameterize so that it can run for.. Yesterday (scheduled every morning) The week that just elapsed ...
3
votes
2answers
79 views

Check if divisible

Description My program checks the sum of 2 numbers to determine if it is divisible by a certain number (5 in this case). Divisible numbers are deemed usable (for another program I am running). Next it ...
0
votes
0answers
33 views

Funds transfer authorization

I have the working code but it is pretty dirty. The goal is to input a number in an application. If it satisfies the min/max logic then jump to the authorization part. Afterwards we can confirm it or ...
7
votes
2answers
65 views

What an Enigma! (Machine Simulator)

I've made this some time ago for an assignment and I was wondering how it could be improved both in terms of performance and best practices for C code. ...
4
votes
1answer
31 views

Processing text messages from a GSM module

I have a Tiva TM4C ARM processor connected to a GSM modem (SIM900). When the GSM modem receives a new text message it sends a UART string to the MCU, where an interrupt routine increments a new ...
4
votes
2answers
72 views

ASCII art minesweeper clone

I wanted to code a small ASCII art minesweeper clone, to see what it looked like and how much code it needed. The result is not so bad, under 80 new lines of code in total. It looks kinda readable to ...
0
votes
2answers
29 views

Command line google searching

I have a bash script that is meant to start a google search from the command line. I am also looking to implement a way of getting source code for the search page possibly through a subscript. This is ...

15 30 50 per page