0
votes
0answers
4 views

python - merge-sort algorithm or kind of

I tried to reproduce the merge-sort algorithm. It was tough as my understanding of list was less than stellar, a few days ago. I will be honest, I'm ashamed of what I did but I tried to finish it ...
0
votes
0answers
2 views

SQLite Databse inserting + Unit tests in Java

Genereal Introduction This is my first project which involves a Database which involves testing (especially unit testing) where the quality is really important for me. The long term aim is to ...
-3
votes
0answers
11 views

While calling with jquery I'm getting the following error "jquery.min.js:2 uncaught error: syntax error, unrecognized expression [on hold]

I'm doing drop down cascading and checking role of users and assigning same controls as per user but while running page jquery file showing error in "INSPECT ELEMENT" console part.. ERROR :- ...
0
votes
0answers
26 views

Invoke a class method inside a function [on hold]

It's correct to invoke a class method in an external function to the class ? If it is correct i can invoke in this way ? This is only an example: ...
2
votes
0answers
17 views

Password & Shadow File Mockup

I tried to implement something similar to linux shadow.txt file and I am not aware of concepts such as memory fingerprinting. Could someone please review this code : ...
0
votes
0answers
20 views

Connected components in an undirected graph in C#

My knowledge in graph theory is very limited. I have to look for elements in an (undirected) graph who are in the same connected component. The idea is simple. First, build the graph. Then, allocate ...
2
votes
0answers
21 views

Verification of Sudoku boards

A valid Sudoku board has the following properties The board must be square (n-by-n). Let m = sqrt(n) All rows must contain the numbers 1-n All columns must ...
0
votes
0answers
18 views

Form validation library

I am writing an open source library but its been to long since I have worked in JavaScript. Here is the initial working code fragment: ...
1
vote
1answer
17 views

PHP Login/cookie authentication

I have an authetication api for an intranet site but im a little worried that my design of the authentication is bad and unsafe. Below is the basic part of the authetication process and i hope i can ...
-3
votes
0answers
9 views

Form submit using Python lxml [on hold]

Can somebody help me with this? http://stackoverflow.com/questions/37962290/form-submit-using-python-lxml
-2
votes
1answer
30 views

array unique and merge value in multidimensional array [on hold]

I have one big array and I want to make it unique on doc_id and merge roleid ...
3
votes
1answer
34 views

Best Way TimeDiff

I'm using DateTime C#. I have an XML file with attribute HOUR, i.e: <MyXML> <LastTimeTaskRun>11:50</LastTimeTaskRun> </MyXML> And i ...
1
vote
1answer
40 views

Reading Input from file for sorting and rewriting

I am writing a program that reads a DAT file with names. The names are stored in an ArrayList of Type Name, the Name object can hold the first, middle and last name. Once the names are stored in the ...
0
votes
0answers
19 views

class Taboo<T> — sort passed in List<T> according to 'rules'

I know as a matter of fact that there are many areas upon which my code could be improved. I was wondering if anyone can provide me with suggestions on how Taboo ...
4
votes
1answer
28 views

Dice simulation and counting pairs

This is my first time putting a code together for Java based on my own so i was hoping if you someone would be kind enough to review and provide feedback or constructive criticism on this code. The ...
0
votes
0answers
8 views

Flipping True or False values to save typing and time

I have a few columns in a DBGrid that I want to hide and show at different times depending on what the user wants to view. Rather than writing the following code; ...
-3
votes
0answers
8 views

Pig is not able to find input file [on hold]

grunt> x_nodes = LOAD 'hdfs://localhost:50075/user/hduser/pig/planet.osm' USING org.apache.pig.piggybank.storage.XMLLoader('node') AS (node:chararray); grunt> p_nodes = FOREACH x_nodes GENERATE ...
0
votes
0answers
9 views

using session variables to overcome enctype=“multipart/form-data”

I was trying to design a page which will help me upload documents for each case, Page was supposed to upload documents as well as save form data that I submit. I then realized request.getParameter() ...
0
votes
3answers
47 views

Is it good to have a method accepting an array of keys to return it's values? Does it break OOP concepts?

Here is my ValueObject example class. I wrote this example for my OOP research. I know I could use ArrayAccess interface but I am curious abobut feedbacks about this class. Does it break OOP concepts? ...
3
votes
3answers
420 views

Making Permutations in Python faster

Can I make the following code faster with minor modifications? It times out on CodeWars website. ...
2
votes
0answers
14 views

A Makefile to make some Cheese

Excuse the pun in the title, the project this is for is called "Cheddar" (a type of cheese). <shameless self promotion>Github</shameless self promotion> I have recently been writing a ...
0
votes
0answers
4 views

Rails Grape API Endpoint optional params validation in update

I have the following rails grape api endpoint in the users resource: ...
2
votes
0answers
12 views

Scrabble Tile Counter

Introduction Inspired by this r/dailyprogrammer problem Implement a Scrabble tile counter that returns a Map of the tiles and their counts when a ...
2
votes
0answers
16 views

SOXXY: A Daemon Stated IRC Client Project

This script is basically a proxy service; except it doesn't require an active client connection. In fact it expects the client connection to connect before, and disconnect after every transaction. ...
1
vote
1answer
44 views

Reduce time using fast I/O methods in java

Problem Statement: Chotu's father is the owner of a Vada Pav shop. One Sunday, his father takes him to the shop. Father tells him that at the end of the day, Chotu has to give him a list ...
2
votes
0answers
11 views

X-up utility for EVE Online

I am learning Rust. I also play EVE Online – a video game about internet spaceships. I decided that it would be fun to practice Rust by writing a simple utility to help me x up. to x up (verb) ...
0
votes
1answer
25 views

A nonstandard “shared pointer” of sorts

In a few of my projects, I had sort of a common situation, where I wanted to share a pointer to some object, and I want the recipient to be able to check if it is still valid, but I don't want them to ...
0
votes
0answers
15 views

Loading an animation with an Ajax request

I am not sure if this is the correct way to make an Ajax request and do the typical loading/processing GIF/animation while processing is happening and displaying the response. HTML: ...
-1
votes
0answers
6 views

Differential Equations Solver [on hold]

this is my first time on this board so I apologize if I seem a little lost. I am also fairly new using JavaScript as well, so just keep that in mind. I am using Sublime Text if it helps. I want to ...
5
votes
0answers
30 views

Basic GUI library for an LCD built (nearly) from scratch

I am working with an LCD screen and an RPi. The library I use sends 1-bit images to the screen, so I wrote this library based on Pillow to help developing the on-screen GUI. I am playing with the ...
-3
votes
0answers
17 views

PHP mysql incorrect code? [on hold]

I have this script ...
0
votes
0answers
13 views

Linking and cross linking from SQL to MySQL speed performance

I have a nasty query. I'm hoping maybe there is a way to improve it's performance. As far as I am aware my hands are tied. We have a SQL Server we use, but our phone system databases are housed on ...
3
votes
0answers
22 views

Basic Nim game vs computer in JavaScript

This is my first time writing a basic program/game in any programming language. It is supposed to a be a Nim game vs computer with these basic parameters: Use ...
0
votes
0answers
26 views

Basic CRUD in Laravel 5.2.37

Controller class ...
2
votes
0answers
39 views

Find the number of possible infinite cycles that Bessie the Cow can get stuck in

Bessie the cow is in Farmer John's field. The field is of size 0..1,000,000,000 for x and y. Farmer John knows that there are N/2 wormholes at certain coordinates, but he does not know which ...
0
votes
2answers
16 views

Styling the font size in a nav bar

The font size scales up/down based on the size of the browser to fit the nav bar buttons (using @media). ...
2
votes
0answers
21 views

Error handling for cells.find

Revised and truncated version of my last question. I updated how I handle the error if a cost center is not found. I originally asked expecting improvements on the matching system so thoughts on that ...
2
votes
0answers
36 views

AutoDictionary for object with a key property v2

I think I get it right now. This time I've implemented it with the IDictionary and added a few convenience methods. There is however one issue that without ...
-1
votes
2answers
46 views

Fizzbuzz in C for console

I imagine I get a minuscule performance improvement by doing the %3 as a branch off the %5 rather than the other way round or as an if '%15'. Am I correct about that? (I know there is no practical ...
0
votes
1answer
35 views

Python editing lists and converting to a dictionary

After validation my errors list returns ...
0
votes
0answers
19 views

Identifying Types of Triangle in Scala

Below is my solution to this exercise. Write a program that can tell you if a triangle is equilateral, isosceles, or scalene. The program should raise an error if the triangle cannot exist. ...
3
votes
1answer
32 views

Extracting the first two initials of a person's name

I've come up with a hackish approach to get my XSL function to only return the first 2 initials of a person. I think there should be a more efficient way to do this though. The ...
4
votes
2answers
44 views

Rectangle-segment collision detection

I am working with C++ and SDL, hoping to create a game later. I am implementing the collisition detection between rectangles and segments. I found this (NateS user's solution) about line-rectangle ...
2
votes
0answers
27 views

Basic Nim game in Haskell

I am starting to learn Haskell, and following Dr. Erik Meijer lectures online, he suggests as an exercise to implement the game of Nim in Haskell, so I implemented a really basic game for two players ...

15 30 50 per page