All Questions
0
votes
0answers
6 views
Writing a Library to Control Relays
Problem Statement
I am going to write a library to control a whole bunch of relays, and I am just trying to think conceptually right now.
Here are my design constraints:
We have an exact number of ...
-3
votes
0answers
13 views
js full-stack framework vs php framework [on hold]
I am planning for a big project. I've been programming with PHP (Laravel). Several weeks ago, I told myself that I'm going to do the project with Laravel, but recently, I've come across some ...
-2
votes
0answers
19 views
What are some strategies to use when you cannot solve a problem? [on hold]
I'm a Jr Programmer at an internship and I am developing an internal tool alone.
I've been trying to solve a problem in ASP.Net and can't quite piece together the information I've been gathering. I ...
2
votes
0answers
11 views
Should I use a grammar to parse reserved words for a custom shell project?
If want to implement the POSIX reserved words for my own shell program ("Open Shell") and my program to evaluate shell scripts such as sh -c 'for i in $(seq 1 1000); do ...... " - should I do it with ...
0
votes
0answers
12 views
Swizzling of app Delegate method in Universal framework
I have created a universal framework in which i want to swizzle the App delegate's method so that i can get the device token directly in my framework
Here is the code
+ (void)load {
Method ...
-4
votes
0answers
26 views
Can someone go into more detail about how this music representation/classification system works? [on hold]
I was reading through the comments and stumbled upon this, by reddit user /u/gindc:
"I actually do a couple of steps. I read the first minute of music and make it a mono 22 kHz wav file (using ...
-1
votes
1answer
23 views
Javascript variable type issue? [on hold]
I have this Javascript situation, where a loop variable i is returned as ascii text? Also in this simple test. WHY?
for (i in values) { // does some stuff in a large array, length 69
if (i ...
4
votes
2answers
45 views
How to work with/around an API that does not return errors?
I am currently working on a project which requires data fetching from a 3rd party closed API (over SOAP).
Currently I'm in a situation where I have to do argument and data validation inside our ...
-1
votes
0answers
28 views
Can we swizzle methods of other frameworks?
Can we swizzle methods of other frameworks?
Can we swizzle UIApplicationDelegate methods in my custom framework(universal/static)
0
votes
1answer
55 views
Is that a right definition of an algorithm?
I am reading Think Python: How to Think Like a Computer Scientist, the author says that an algorithm is:
A general process for solving a category of problems.
But I don't know if that a right ...
-1
votes
0answers
8 views
Import Web Service Tech selection - Process the MS Access, PDF or MS Word File
I have a requirement to build a new Import kind of web service which can read or process different kinds of files such as MS Access, PDF or MS word. The service will need to read the data from ...
-1
votes
0answers
34 views
How can I create an easily readable and short (high level) but precise description of my new programming language?
More specifically, is there a way to completely describe a language as a bag of implementation decisions? I'm looking for terms like "high-level" and "functional", but much more precise.
-5
votes
0answers
17 views
When function return, it also include the false condition of mysql_fetch_assoc from while loop that I don't need [on hold]
When function return, it also include the false condition of mysql_fetch_assoc from while loop that I don't need. What should I do?
function schoose(){
$query = mysql_query("Select * from ...
-1
votes
0answers
34 views
arrays as matrices in C?
Since an array is a 1D matrix, can my matrix code handle arrays as well? Currently I have two separate functions but I think that the matrix code should be able to handle arrays as well or won't it?
...
1
vote
0answers
24 views
Choosing Between Ruby and Python for a FS Microservice Backend in Node App
I have been working on a application that up until now has been pure Node. However I am concerned about performance and overhead since the application performs a lot of file system operations (Copy ...
1
vote
0answers
36 views
Are there multiple Hamiltonian Paths on a Graph?
Can anyone suggest an algorithm for this problem.
Given an undirected unweighted cyclic graph, and a given start and end node in that graph, I'd like to determine if there is exactly one valid path ...
-3
votes
0answers
22 views
Keyboard input errors while running [migrated]
I'm having issues with a program that was originally written in Visual C++ 6.0. The program builds and runs fine, until I attempt to enter values into the command line. I believe that I have isolated ...
-3
votes
0answers
24 views
Python solitaire encryption code is not returning output [on hold]
I'm having issues running my program. The idea is to decipher a message using a sample deck of cards but the program itself is not returning a deciphered message. What is the issue with my functions?
...
0
votes
0answers
20 views
How can PhantomJS take a JavaScript file and use it to drive the WebKit?
I have read a lot of documents and wiki pages about PhantomJS but still don't understand, how can PhantomJS take the input JavaScript code to drive the WebKit?
Take the code from PhantomJS Quick ...
0
votes
0answers
3 views
Best Azure Solution for Complex Search Index
I need to perform quick searches against a combination of tags while including date ranges:
Example:
Users
who have requested notifications
who did not respond to a notification sent at least 3 ...
-2
votes
0answers
59 views
Create an OS X Executable from a Windows Machine? [migrated]
Okay so I made a small java game and packaged it into an .exe and it works just fine... for Windows users. My friends with Unix based systems can't launch the executable so I'm wondering how can I ...
0
votes
2answers
37 views
Should object enforce validation rules on read as well as write?
I have a class that enforces database-friendly formatting for some of its properties in the __construct() method.
This guarantees that if a new object is created and saved, it will be saved ...
-3
votes
1answer
63 views
How to create an algorithm for a raffle, where each raffle guarantees a winning ticket?
I am looking for an algorithm to create a raffle, where each participant is assigned a ticket with a random series of numbers.
Each raffle hast N participants, and there should exist same amount of ...
-6
votes
0answers
47 views
How should I quote for small software project? [on hold]
I am asked to provide a proposal and quote for a small software project. The project will be done in Java. The details are 100 questions grouped into 4 groups with 10-30 questions per group. The ...
30
votes
3answers
3k views
Does a `long` ban make sense?
In today's cross-platform C++ (or C) world we have:
Data model | short | int | long | long long | pointers/size_t | Sample operating systems
...
LLP64/IL32P64 16 32 32 64 ...
0
votes
0answers
9 views
SQL Server - Sum Until Threshold Reached [migrated]
I have a SQL Server database with shift worked information for each employee. The main table (called "shift_worked") is structured like the following:
id employee_id period day hours
1 ...
1
vote
3answers
59 views
Is it possible to call a function or a script with a REST API?
Let us say that I want to create a workout app and a website, the user enters his workout stats and the app display his stats with graphs percentage and such.
This is an example I don't want to ...
1
vote
1answer
53 views
How do google playstore and apple app store push updates?
Assuming I have not written a custom code in my app to force users to upgrade :
If I publish updates to my app will app store or playstore force users or give any kind of notification to users ...
0
votes
1answer
24 views
In NodeJS/ExpressJS, how should one decide between using request params and query strings?
While I am starting to get a hold of NodeJS programming, I am a bit confused by when to use request params and how their practical use differs from using query strings.
In particular, I can do ...
-3
votes
0answers
53 views
good C struct for representing another program? [on hold]
If I have a struct in C struct str_list *chunks = str_split(cmd, '|');and a function call cmd(chunks->size); then what should the function prototype look like?
Mat told me to create a struct
...
-2
votes
0answers
38 views
First Program - problems with merging multiple csv into one
This is my first attempt at php, or any programming for that matter. I am trying to merge all the files in a directory into a single text file, with an additional field noting the original file the ...
-1
votes
1answer
30 views
Python programming (lemmatizer algorithm) [on hold]
def lemma(word):
for prefix in ("dis", "re", "im", "in"):
if word.startswith(prefix):
return word[len(prefix):]
for suffix in ( "ful", "less", "ible", "s", "ied"):
...
-4
votes
0answers
59 views
Snake case, camel case and nr 3? [on hold]
Sometimes it appears code where the styles are mixed and you want programmers to use the same conventions i e either snake_case or CamelCase, doesn't really matter which you choose as long as you are ...
-4
votes
0answers
70 views
Is 'pirate version' standard jargon for unreleased builds in the computing industry? [on hold]
I work in a software development company based in Brazil for the last few years. Here I got to know this jargon: 'pirate version'. We use that when we send a nightly or even a ...
1
vote
0answers
46 views
Resource Allocation Algorithm
I have a question about assigning values to nodes laid out in a physical space:
There is a set of N fixed nodes spread out throughout a certain 2 dimensional region that need to be assigned a value ...
0
votes
0answers
28 views
Can I use some GitHub control/Framework with MIT / BSD / Apache Licence to distribute my iOS Enterprise App?
I develop iOS app with some GitHub controls and Framework as like FMDB,AFNetworking,OpenCV,RadioButton,CheckBoX etc... but now my worry is I want to distribute this app with Apple Enterprise account ...
5
votes
2answers
78 views
Always upgrade to latest stable release of every library , good or bad practice?
So we are writing medium size software,and it has two parts frontend is written in angularJS and backend in laravel. Laravel provides api and nothing else.
Now very often one of many dependencies ...
2
votes
3answers
152 views
Poker split / side pots
I am writing a poker application and trying to figure out how to deal with split pots and side pots
There are four rounds of betting and each round of betting can have multiple orbits
Can only ...
-2
votes
0answers
57 views
Where will object declared as local variable reside in stack or heap?
In java I have heard that object resides in heap memory and local variables reside in stack. Objects created and referenced in a function is local to function rite?
Where will that go to.
class ...
-2
votes
1answer
94 views
Is this unprofessional when “Wappalyzer” sees all my technology?
After I installed "Wappalyzer", extension wich display technology, wich site using. I checked many sites and in most of cool projects, like "Youtube", "Github","stackoverflow" etc, wappalyzer display ...
-1
votes
0answers
32 views
How to decompose strings into a list of its spelling in an efficent way?
I have the problem where I'm taking as input a string, for example "table python desk" and I wish to decompose the string in terms of its spelling. So I want to output "t ta tab tabl table p py pyt ...
-6
votes
0answers
21 views
Get large files to mobile from server and vice versa
Need to get large zip file from the server side and unzip it in the mobile device store it. We hope to use Web API and send it to mobile side, what kind of protocol do we have to use and are there are ...
-1
votes
0answers
67 views
Necessary thing for keyword “new” in c++ (oop) [on hold]
I am looking for the answer to a question which is as follows:
What is the necessary thing for the keyword "new" in c++ or oop c++?,and is there any difference between "new operator" and "new ...
-5
votes
1answer
45 views
how to drop tables in SQLite [on hold]
Designing an application in which I require to drop the tables present in my applications database when the user clicks a button and then again call the onCreate(); method to create new table in the ...
-5
votes
0answers
37 views
Android app written in Go lang [on hold]
Can someone help me to write a simple app in Go lang for Android to accept user input (anything) and display as a notification?
I do have knowledge about C,C++,Java and HTML. But a complete newbie ...
0
votes
0answers
20 views
How to benchmark different command-line interpreters
I've scripted a test that tests my command interpreter/parser. Now I want to run the same test against several different shells. I've installed bash, sash, dash, ksh and my own (./osh) and I want to ...
0
votes
1answer
20 views
DNS-SD implementation
I am trying to implement DNS-SD, and I understand how it works, but don't really understand the purpose, so I have a few questions about it.
Let us assume that we have two devices on local network, ...
0
votes
0answers
48 views
Find fastest connection to a certain point
What i'm trying to implement is a program that is searching for the fastest connection from one station to other at a given time of the day.
I have a number of stations n, and a number m of lines ...
-1
votes
1answer
52 views
Alert when size of continuous stream of events exceeds 1000
A friend of mine was recently asked this question in an interview.
Lets say there is a continuous stream of incoming events E1, E2 each with timestamp of entry associated with them. Write a java ...
-1
votes
0answers
23 views
What is the difference between those UML statecharts diagrams
If there difference when Final state located in composite state or out of composite state?