1
vote
1answer
44 views

Name for a Chainable ForEach

Linq has a method Select, which takes a Func<TIn, TOut> and maps it over an iterable. I'm trying to come up with a good name for a method that takes an Action <TIn>, transforms it to ...
0
votes
1answer
16 views

Adding copyright information in a new file added to a GPL project

Continuing from Author has inserted copyright into code with gnu public license notice - implications?, can I add my author name to a new file (with original code) that I added to a project that comes ...
-1
votes
1answer
27 views

Refactoring my unit test for optimistic locking using factory girl

Okay, so I have a unit test where I testing the optimistic locking behavior needed for one of my services. The first code example is the working code (I believe) and the latter is the refactor I am ...
1
vote
3answers
45 views

How can you separate a monolith into domain-driven libraries without duplicating interfaces and still keep dependencies simple?

I'm working on a project with web services, and I've been structuring things where: The web service contains the business logic layer A library which handles the data access layer I've recently ...
-2
votes
0answers
43 views

What area of programming has the biggest sociological impact? [on hold]

If I want to maximize the sociological impact of the programming I do in what areas do I want to code? Is it the Linux kernel, MediaWiki that powers Wikipedia or anything else? I don't care about ...
-2
votes
1answer
47 views

Is there any situation where there is a good reason to use an anchor <a> element without a href attribute?

I recently came across a website that contained an anchor element without a href attribute. I immediately thought that was stupid, but, could there be an actual situation where having an anchor ...
0
votes
1answer
36 views

Why many programs do not start if pidfile exists but no process is found?

I see a lot of programs that does write a pidfile, and check at boot its existence. And this is good. But many application does not start even if they check that the pidfile exists, yes, but no ...
0
votes
1answer
21 views

Most elegant way to execute a AWS lambda function with preloaded parameters on a specific time

I am looking for the following workflow: Add an entry to a table of my Postgres database with a end_date and state (with the following values: active or done) columns. Execute a lambda at the exact ...
-5
votes
0answers
63 views

Can I make money from a winform app? [on hold]

I am a high school student on a long vacation so I have little experience of c# but I wanna know if I am able to make money from a winform app created on visual studio.
1
vote
0answers
12 views

Good practice to share resources in MVC web projects

If we are working on multiple ASP.NET MVC projects that share a lot of common stuff like CSS, Scripts, or even utility C# methods, etc... what is a good way to keep them in one place ? Currently I ...
-2
votes
0answers
19 views

How can I append a date to exact place to txt file in python?

How can I append a date to exact place to txt file? I have a text file, where I have names and ID numbers, if input is one ID I want to append for this ID a date. dochadzka = ...
1
vote
1answer
78 views

Should I actually be using encapsulation here?

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 ...
-4
votes
0answers
23 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
23 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
24 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 ...
-5
votes
0answers
32 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 ...
-4
votes
1answer
39 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 == ...
5
votes
2answers
84 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
37 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)
1
vote
5answers
140 views

Is “a general process for solving a category of problems” the 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
10 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 ...
-2
votes
0answers
42 views

How can I create an easily readable and short (high level) but precise description of my new programming language? [on hold]

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 ...
-2
votes
0answers
38 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
33 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
46 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
25 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
26 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
44 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 ...
-2
votes
3answers
93 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
49 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 ...
41
votes
3answers
4k 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 ...
2
votes
3answers
73 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 ...
2
votes
1answer
60 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
39 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
49 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
30 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
83 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
153 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
58 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
95 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 ...

15 30 50 per page