0
votes
0answers
6 views
-2
votes
0answers
6 views

Please help how to convert 7 bit to 8 bit register

You need to design a circuit that perform the expansion of a 7-bit simple signed floating point (FP) number into an 8-bit 2's-complement encoded binary number. Assume that the input number is stored ...
0
votes
0answers
3 views

MySQLi + php editable table

Im new in MySQLi and PHP. Can someone tell why does my code not update or add any data into MySQL table? i've spend a lot time to reading and writing it but have no idea why is my code does not work. ...
-2
votes
0answers
4 views

How can I use stack overflow in iOS?

usefully! I am is iOS coder! How can I use stack overflow in iOS?I use it firstly...so...
0
votes
0answers
4 views

A javascript equivalent for toDictionary (c#)

I made a function that should ease the making of new objects out of objects or arrays. I extended underscore so thats why the _. ...
-4
votes
0answers
9 views

I had two controllers performs two different functionalities. How to apply these two controllers on Same element

I am new to angular js.please suggest how to achive it. I am preparing charts using angular js and i am able to display chart with angular js below js plug-ins. ...
0
votes
0answers
7 views

Data-structure “Singly-Listed List” in JavaScript

The purpose of the data-structure is to manage person-objects. Persons can be added at any time. But the order can't be changed afterward. Only the deletion of a person is possible. Represents the ...
0
votes
0answers
9 views

Effective Python 2/3 two-dimensional array initialisation

Recently I noticed that the idiomatic python two-dimensional array initialisation is extremely slow. I am wondering, is there a good, proper way of doing this simple task fast? Also, are those two ...
0
votes
0answers
5 views

Sleep with count down display

I have a sleep function which displays the time remaining in sec, some feedback would be appreciated ...
2
votes
1answer
20 views

A small custom encryption / decryption script

I have made a small script for encrypting data. Now I'm wondering how efficient it is for normal users who aren't programmers and for people who are programmers. I mean if you don't have this script ...
1
vote
0answers
10 views

Expanding list on webpage

The below produces the output I want. Namely, it initially displays the first item on the list and the first expander link. When an expander link is clicked, it hides that link, unhides one more item ...
1
vote
0answers
11 views

Creating SwiftRechability Class in Swift 2.2

I am novice at creating independent classes for user. I have seen many Reachability library for Swift, but I need to create my own class for that. Here is my code: ...
0
votes
0answers
12 views

Checking convergence of 2-layer neural network in python

I am working with the following code: ...
3
votes
2answers
70 views

High execution time of LCS length program in Python2

I was trying to solve the Longest Common Subsequence problem on a HackerRank exercise. It's quite simple and straightforward, just print out the length of the LCS. I submitted this code: ...
-1
votes
0answers
15 views

scalable reliable application to be built. can this code handle multiple requests? [on hold]

I am building web services for mobile applications and I am using Hibernate + spring + maven structure. My Controller is like this : ...
1
vote
0answers
22 views

Login page code enhancement

I am starting to learn ASP.NET, and I am designing a page for an admin to login and do some stuff. I have the username and password for the admin stored in Web.config (Is that a good practice?). ...
1
vote
0answers
8 views

zp-Tree library to represent trees as nested arrays

For my project I have rewritten a small lib for a tree structure that was inspired by wangzuo's js-tree. The reason was largely because I prefer to work with an array structure rather than nested ...
0
votes
0answers
13 views

settings.py for Google App Engine webapp

I have a Google App Engine webapp and would like you to review my settings file. Isn't it better to keep secret keys and provider data in the datastore or in a properties file rather than the code? ...
-1
votes
0answers
30 views
2
votes
0answers
23 views

Final Java TicTacToe MVC Program

After my previous post, I decided to work on the project myself for a while (two weeks) to see how far I could get after reading a few of the really helpful answers to my previous posts. I read up on ...
6
votes
3answers
334 views

Storing hashed passwords

I'm a beginner and am self taught and was hoping I could get help from others more educated than me to show me what bad practices I might be forming before I go on further. P.S. This program is just ...
2
votes
0answers
13 views

Convert Roman Numeral to Arabic

I've been learning Haskell recently and I decided I needed to work on a (somewhat) realistic problem. What I'm most interested in getting feedback on is how well I've used the tools in Haskell to ...
2
votes
0answers
15 views

Octree creation for Barnes-Hut algorithm

I am trying to implement quadtree for my barnes-hut algorithm implementation. I am not sure that the code I've wrote so far is good implementation - it is dirty, and tend to be slow. Of course I am ...
-2
votes
0answers
12 views

Python Generate and Execute Statements [on hold]

I have a series of statements that needs to evaluated with every iteration Currently I'm able to print the statements but I'm unable to execute them ...
1
vote
1answer
13 views

Custom Kit Form Validation

I have an HTML form where I need to do the following when value of Select Box changes to initial "Not Selected" value (where values of the option is 0), I am to highlight the select box, when it's ...
2
votes
1answer
16 views

Swift solution to Leetcode “Longest Substring Without Repeating Characters”

From LeetCode medium 3. Longest Substring Without Repeating Characters: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", ...
1
vote
1answer
15 views

Refining an ASP.Net MVC VeiwModel for a Table to display worked hours

I am writing an ASP.Net MVC app which has a page that will display a standard table which will contain a person's hours for the week. The basic structure of the table would be a 7 column, muti-row ...
1
vote
0answers
23 views

Union Find implementation

I am trying to complete this challenge. The user should enter a sequence of instructions, = to link two numbers, and ? to query ...
2
votes
1answer
13 views

JavaScript idle managing structure

I am just getting into the world of javascript, coming from the world of classical inheritance. The following is a library I wrote to track when a webapp is idling and I wrote it like I write ...
0
votes
0answers
18 views

Generating social security numbers - take two

Original post here I took the advice I got to heart, and rewrote quite a few methods + changed the structure a little. Once again I would really appreciated input on the following: Code style ...
2
votes
1answer
33 views

PHP Custom $_GET checker function performance

I'm trying to follow the DRY programming philosophy and I am tired of running isset() and an if not empty statements for each ...
4
votes
2answers
45 views

Is this the right way to implement a simple hash table in C++?

Does this look like a proper implementation of a hash table in C++? Any errors anyone can find? Thanks in advance (: ...
1
vote
1answer
36 views

Mergesorting a stack in Java

I have this small program for sorting a stack using mergesort. Basically, the aim was to use as little aid from JDK library as possible. See what I have: StackMergesort.java: ...
1
vote
0answers
10 views

Return the best factors of a whole number

I've just finished writing my code to return the prime factors of a number and I feel the GetBestFactors function could be improved. The ...
0
votes
0answers
14 views

Save Custom Product Kit using Web Application

How far do I break down individual tasks within a typical scenario of "Web application reacts to user input"? For example, in the case below, say a scenario is "User submits a form, causing user data ...
1
vote
1answer
21 views

Handler for incoming network packages

I want to let you look through my NetHandler which is basically the component which gets notified when a full packet arrived (not like tcp-packet but my own type of ...
4
votes
1answer
60 views

A simple builder pattern implementation for building immutable objects

This is a Builder Pattern implementation to build Immutable Person objects. Person Class ...
1
vote
1answer
11 views

Excel VBA to create a visual timeline of events using an XY scatter chart

I have details of key decisions made by a business in a worksheet Decision Record, my data is laid out as follows: I have written some code to create a timeline ...
-4
votes
0answers
9 views

How do you create a knockout tournament on python 3 [on hold]

how would i program a knockout soccer tournament with 16 teams in it so that the winner of each round advances to the next round until there is a final winner. ie: 16 vs 1 (16 wins) and 8 vs 9 (8 ...
6
votes
1answer
58 views

Genetic algorithm to find the maximum binary number of a given length

I have written some codes in java implementing simplest genetic algorithm. The code finds (or rather tries to) the maximum value possible for a user-defined number of bits. For example, for 16 bit ...
3
votes
0answers
40 views

Intersections of two lists

Given two python lists a and b. These lists may intersect (It is possible that lists intersect more than once). An example: ...
0
votes
0answers
15 views

How do I calculate marks of Online exam in c#? [on hold]

On onclick event of the button , I’ve fetch the controls form the aspx page, and further I’ve used if statement in order to see which radio button is active and have store the corresponding value in ...
1
vote
1answer
35 views

Expanding pixels in an image

Custom class Image takes a 2-D array of 0's and 1's upon initialization. Method transform returns a modified array by modifying 0's adjacent to a 1, such that ...
1
vote
0answers
43 views

Updating many fields based on data from a web service

I have to receive data from a webservice and need to compare the received data with the data in our DB. Its easy like: get a streetname from the WS, if its not null and not equals the Db entry -> ...
3
votes
1answer
43 views

Basic MVC Framework

I want to improve my skills so i startet a very basic MVC framework. Its my first MVC based Framework. Index I rewrited all requests through index.php and the ...
1
vote
1answer
26 views

What is the best way to extract method?

The code snippet is what I want to do. Previously I use a different version of my code. But it is out of joint according to Python coding guidelines because I was assigned my lambda function to a ...
3
votes
1answer
28 views

Maximize points won by flipping coins

So, there is this king-of-the-hill challenge going on at PPCG SE to which I submitted my participation. I won't change it further in terms of behaviour, so I wanted to know what you think of the code. ...
4
votes
0answers
32 views

Variant class that I don't think is missing anything

My goal is to learn a bit more about Generic Programming in C++. So, one of the trickiest things I've heard you can do is creating a Variant class. This took me a while and I needed to read and study ...

15 30 50 per page