-2
votes
0answers
7 views

Unity post get check www requests with success callback and error callbacks

im just wondering if any one could help point me in the right direction please?? ive found this code on here and i cant seem to figure out how to call the post function passing through parameters for ...
0
votes
0answers
8 views

replace one-liner sed/awk by python

I have some files I want to process, and I know how to do in sed/awk (for each one): ...
1
vote
0answers
7 views

Deck shuffle and drawing cards. Can this code be better?

I developed a simple deck shuffle and drawing system, as a test on how to use collections and learn from it. However, I think my code is a bit wonky, and I think here is the best place to get new ...
0
votes
0answers
6 views

Semi-Reliable Communications Using UDP

I'm writing a communications library for a class. Part of the requirements is that semi-reliable communications, which leads me to this monstrosity: ...
1
vote
2answers
17 views
0
votes
0answers
11 views

Check Permutation in Scala

The problem is: Given two strings, write a method to decide if one is a permutation of the other. I wrote the following code in scala, may I know any other optimization one? ...
4
votes
0answers
19 views

Send multiple individualised emails via a limited number of SMTP clients

This is my first foray into multi-threading, and keen to know if I have fallen into any traps or room for optimisation/improvement. Example usage: ...
0
votes
0answers
8 views

Polyfill for a legacy system: Attach “labels” to their corresponding checkboxes

I had to do some maintenance programming on a legacy software recently. Most of the system's logic is done with Java and PL SQL. The Java creates some special kind of XML. These XML is then ...
-6
votes
0answers
14 views

SQL Select any other records if exist and select default if no others [on hold]

I wish to select any other multiple records if it exists (not including the value 9999) - if NO other records exist except one with the value 9999 then only must that one be returned. In other words, ...
-1
votes
0answers
27 views

Better way to concatenate string/HTML code [on hold]

Is there a difference (of any sort) if concatenation is done in this way: ...
0
votes
1answer
9 views

Functional test with PHPUnit / Symfony

I am trying to test my first functional tests. I would like to know if my functional test is well done, or if the structure of it is not optimal. Any advice will be useful to me. As I said, I just ...
-5
votes
0answers
15 views

Spliting the pricing values based on the website, quantity, lead time, availability [on hold]

i have excel worksheet which has 9 columns in it, like Date, Website, Website_code, Part Numbers, Part number returned, Quantity, Lead time and Availability. Same part numbers have different pricing ...
1
vote
0answers
19 views

Flask App to Handle Post and Get

Can I please get some reviews and suggestions. This is what this app does. I picks user login from Users table and compare it with the post in the login function. ...
0
votes
0answers
27 views

HackerRank woman codesprint: minimum cost

The minimum cost algorithm is implemented in C++ set, Java TreeSet, no timeout. But, C# code using SortedSort has a timeout issue. C# ...
-6
votes
0answers
12 views

Horse movments on chess board “with the return to starting point” [on hold]

I have a problem that it is: How we can move the horse on chess board so that it moves on all the points, but "it should move on each point just once"! And at last,it should return to first point(...
2
votes
1answer
21 views

Decoding 32-bit MIPS instructions

For a homework assignment I've been given the task of parsing out information from an 32-bit MIPS instruction. (For more information on the instruction formats, see here). The instructor has provided ...
-1
votes
0answers
14 views

Calculating the cell height [on hold]

In my cell model, there is a property lml_content: ...
2
votes
1answer
24 views

Trello list scraper with data visualization - Monthly food expenses

For the last couple of months I've been working on a python script that pulls data from a specific Trello list and sums up the numeric values by list (lists are split up into months). I've worked on ...
0
votes
1answer
36 views

Fast find exist in list or not

I want to determine whether or not the selected element exists in the list. This is the current procedure that I'm using for finding the element exist in a list or array. Is there any fast procedure ...
-4
votes
0answers
15 views

Prevent repetitive random numbers [on hold]

This is what I have so far and I am not sure how to prevent numbers from appearing again. ...
3
votes
2answers
38 views

Incrementing a sequence of letters by one

I'm creating a C# application that produces unique lines of data. The main purpose of the application is for me to learn C#. The secondary purpose is to have available lines of (dummy) data when ...
3
votes
1answer
16 views

Tant Fant Game in Python Revisited

Last time I posted my code of Tant Fant Game. I got some really good advice and I have implemented all the suggested changes to my code. I was wondering if there were any other revisions that would be ...
3
votes
1answer
35 views

Reading string from a text file and returning the number of occurrences of each substring of length k

This program takes a simple nucleotide sequence and finds the most common "k-mers" in the sequence, as determined by the supplied dataset (see below). The goal of the program is to find the origin of ...
-3
votes
0answers
15 views

How to prevent repetitive random numbers [on hold]

This is what I have so far and I am not sure how to prevent numbers from appearing again. ...
2
votes
0answers
15 views

JSON schema using Java objects

I have this JSON schema: ...
0
votes
0answers
15 views

Frontend code for company website, with popout navigation and some animation

I've always kind of modge-podged frontend code together and I would greatly appreciate any critiques. Before submitting, I tried to alphabetize my CSS code, use shorthand elements in my CSS, and ...
-2
votes
0answers
10 views

type compatibility with trigonometric SIMD intrinsics [on hold]

I thought that it's possible to apply SIMD variants to enhance the performance for a twiddle function, But, I 've got some errors that I did not quite understand, this is the code : ...
2
votes
1answer
26 views

Linked list to manage a class

I'm working on a linked list to save the information of students. I can insert anywhere on the list, delete and sort it. Now i'm reviewing the code to try to simplify it somehow. I don't know if the ....
-4
votes
0answers
13 views
0
votes
0answers
28 views

SetConstantBuffers wrapper

I've been structuring my low-level renderer for my little d3d11 framework. Here is how I plan on setting constantbuffers. Can you see if I am doing something wrong here? This is part of a stateless ...
2
votes
2answers
47 views

Only using randint, create a random list of unique numbers

There are many sorting algorithms, so how about unsorting algorithms? But how could one go about creating a random list of unique elements while not using shuffle, NumPy or any other ready made tools ...
4
votes
0answers
42 views

Pokemon battle simulator

I learned Python and Pygame and now have coded a few games. For the last few months I have been working on this "luck free" pokemon battle simulator. I feel my program runs well in the current state ...
0
votes
0answers
12 views

Python script to store nd array into images

I am trying to write a generic Python script that do the following types of tasks: Load .npy file (the .npy file is of shape (m_samples, channels, row, column), which corresponds to ...
1
vote
0answers
21 views

Groups/colors/removes cells

Based on the value of what is in column B (column A is hidden) it groups/colors/removes the corresponding node(s). "R - " values are nodes that need to be grouped. The rows are 6 cells apart before a ...
0
votes
0answers
20 views

Thread safe singleton class to connect to Cassandra

I am working with Cassandra and using the Datastax Java driver for it. Here is my singleton class where it makes a connection to Cassandra: ...
1
vote
1answer
31 views

Check if relations exists for a parent node before deleting it so that we don't have any orphan child node

Here I am trying to delete a parent node but only if it doesn't have any child node. Please review this code. PostController.php ...
-1
votes
0answers
9 views

Can Media Queries be placed internally in .html? [on hold]

I tried placing the media query above and below the main CSS but it won't take either way. I've used them before but am stuck here. The content should have a 10px margin when the screen is less than ...
-4
votes
0answers
10 views

Hospital managment system [on hold]

Need help in designing classes for my project. Hospital is composed of departments and wards. Department has staff. Person *-------------*Hospital ...
3
votes
1answer
15 views

Component that reacts on data changed from the store

I have a React/Flux web app and want to follow the architecture best practices: I will focus on one view for my question, the component used to insert/update an entity (a User in occurrence). ...
1
vote
0answers
11 views

PowerShell Export-CSV with Cultural Awareness

I recently had a requirement to export data to CSV in a different culture & hit an issue (see http://stackoverflow.com/a/40871162/361842). Here's my workaround: ...
0
votes
0answers
15 views

Dijkstra's Algorithm using Priority Queue Java [on hold]

I need to implement Dijkstra's Algorithm using priority queue in Java. Here is my code so far: ...
0
votes
0answers
22 views

Cache for slow API

I work with an API which answers really slowly. I created a module which constantly asks the API and update some cached value. The code is degraded for study purposes: ...
0
votes
1answer
45 views

WPF async ObservableTaskQueue class

I'm currently working on a WPF application, making calls to various web APIs. Thus, I'm looking after a special observable tasks queue: Progress value must be available Tasks (API calls)/seconds must ...
2
votes
0answers
39 views

Optimize shunting-yard algorithm

Following your suggestions, I updated my expression evaluator with a Shunting-Yard algorithm. I've created two classes, a Shunting-yard class and a RPNsolver class. The first I mentioned converts ...
8
votes
3answers
237 views

Plotting different parameterized polynoms

For a university assignment I had to plot different polynomial functions depending on one single parameter. That parameter gave the number of supporting points to interpolate a given function in the ...
0
votes
0answers
10 views

Insert Excel Graphs using Class to define parameters

I have a loop in my main sub routine which creates multiple graphs. This is run across a number of sheets, creating the same graphs for each sheet, but with different ranges and other variables. I ...
-1
votes
2answers
31 views

PHP script to generate hreflang tags

I'm currently working on a website which provides content to users based on their region. As a result the website has subdirectories for the appropriate regions. For example, a pricing page would look ...

15 30 50 per page