2
votes
4answers
65 views

Similar multidimensional array detection

I'm looking for some sort of algorithm so I can quickly identify similar matrices, the matrices are not stored permanently so I'd need a way of mapping each matrix to an easily stored values, after ...
-3
votes
3answers
82 views

Save flags in an int32 [on hold]

Unity3d PlayerPrefs only allow saving certain types - string, float, and int32. Since int is composed of 32 bits, it should be able to store 32 flags or a bool[] of length 32. So far, I've thought ...
-4
votes
0answers
20 views

terminate called after throwing an instance of 'std::bad_alloc [on hold]

I am facing the current error since last one month and fighting with it to resolve the problem but all in vain. I am using Pythia8 and fastjet event generator together and running my very simple code ...
10
votes
8answers
3k views

Why can't there be any implicit conversions?

As I understand it, implicit conversions can cause errors. But that doesn't make sense -- shouldn't normal conversions also cause errors, then? Why not have len(100) work by the language ...
-2
votes
0answers
35 views

How to find signed images on the internet?

I know that some companies sell softwares to sign images using invisible watermark. They aim is to protect copyrights of the image. If another person use the image on his website without permission, ...
-4
votes
0answers
21 views

ffmpeg libraries that are not allowed to use in a free app with ads in it

I'm trying to make an editing app which I need to use FFmpeg libraries in it. I need to know Which libraries of FFmpeg are not allowed to use in a free app with ads in it? Because I should build a ...
-1
votes
0answers
68 views

How to show that I can program when applying for a job? [on hold]

I am a high school student and want to apply for a programmer job (german job title: "Ausbildung zum Fachinformatiker für Anwendungsentwicklung"; a kind of job where your employer is expected to train ...
0
votes
1answer
23 views

Multiplicities and ternary relations in UML and ER

With entity–relationship diagrams, there are two conventions of denoting multiplicities, (I) and (II): Say, a teacher T is giving ‹G› some lectures L. Then we can either write this as 1 ...
0
votes
0answers
61 views

Is there a name for the anti-pattern of over-using event busses for uncoupling?

While global event busses can certainly help to previously tightly coupled code, they come with a big cost when applied impetuously and oftentimes conflict with dependency injection. Let's assume we ...
-3
votes
0answers
28 views

Eager loading in ASP.NET MVC 5 correspondences to models [on hold]

I'm having a real struggle with this topic. I've watched some tutorials from MVA (microsoft virtual academy) and in one of them I saw that it is reccomended to have lazy loading disabled in web ...
1
vote
1answer
81 views

When the result set doesn't matter should Left Join or Inner Join be used

When you have a query where you're joining from a non-null foreign key to the foreign table it doesn't matter if you use LEFT JOIN or INNER JOIN from a result standpoint (since there won't be any ...
0
votes
1answer
105 views

Converting from List<Object> to Array with threads

I have a large (>500.000) list of Objects and I want to convert it a multidimensional array. Until now I am doing this using a for loop, but after some measurements I identified that this is a ...
1
vote
1answer
112 views

Why sequences are recommended as conventional interfaces?

From the reference of berkeley's version of sicp text, It is mentioned that: Expressing programs as sequence operations helps us design programs that are modular. That is, our designs are ...
0
votes
0answers
27 views

Web Authentication using machine or client certificates

We have an ASP.NET web app running in IIS, with about 200 users, some are inside our LAN and other ones are outside our LAN. Every user has a userid account and a password to logon into web app. Not ...
0
votes
2answers
49 views

What is the value of encoders with decoders currently present

Can you tell me the value of using PHP encoder (ioncube, phpshield) with currently present service like decry.pt (http://www.decry.pt/) that can easily decode source codes. I have tried decry.pt's ...
5
votes
3answers
128 views

Reusing a merged branch, good practice?

Currently, I used to create a new branch each time I have to add a new feature to my application. When my feature is finished and functional, I merge it with the master branch. But later, when I ...
-1
votes
2answers
69 views

How are softwares written in multiple languages linked together? [on hold]

When you have a software application written in multiple languges how is it all put together? To some extent I understand how it can be done very primitively but I am looking for a general principle ...
-2
votes
0answers
47 views

Does the user need to install CS script himself if i use it in my C# program? [on hold]

The current program i am making has come to the point where i need to include some kind of scripting. Looking at the avaliable stuff CS script seemed the best solution for my problem. Now the problem ...
0
votes
3answers
58 views

Microservices - should there be multiple instances of the same service?

I've been doing some research on microservices, and one question I've had that is not well addressed is whether there should be multiple instances of a microservice, and if so, how to deal with this? ...
-2
votes
1answer
30 views

What is Multipart Image upload? [on hold]

Can someone please explain what does Multi part image upload means and it's advantages. When should i use multipart image upload?
0
votes
1answer
64 views

Use GPL code in commercial android app by spawning a separate process [duplicate]

As I understand, GPL allows use of a GPL program along with a proprietary program as long as they are separate programs and communicate at arms length. In order to do this, if I spawn a process from ...
-3
votes
0answers
76 views

How to expand a 2D-graphics program to 3D? [on hold]

Seeing that the question is not well received (whyever), I will delete this question tomorrow, and post it on computerscience @ stackexchange. So I have a program in javascript that enables ...
28
votes
5answers
941 views

Amateur question about corrupt software [on hold]

I was hoping someone here could help a non-coder with just a few questions to give some realism to a no-budget film. I am currently writing a screenplay in which the main character's analytic ...
2
votes
2answers
80 views

Difference between Single Source Of Truth and Single Responsibility Principle?

So I just found out about the term single source of truth while watching video series about programming code interviews. From what I understood it meant that the single source of truth is an ...
3
votes
1answer
116 views

Where to store configurable, global settings

As an example, let us say that I have an application with multiple users and multiple administrators. I want the administrators to be able to configure sitewide session timeouts. The code would ...
-1
votes
0answers
22 views

ifort and gfortran compiler options for most powerful debugging for fortran code [on hold]

I have been using ifort and found -check all -traceback options are very powerful and convenient for debugging purposes. They can tell me what kind of problems and where it happens, which sometimes ...
-3
votes
0answers
17 views

Cuda code doesn't seem to Launch the Kernel [on hold]

I'm trying to compile the next CUDA code, everything goes well with the command: nvcc -o test.exe test.cu, but the problem is that when I execute the program doesn't seem to launch the kernel ( I ...
-4
votes
0answers
39 views

Good c++ books for a non-programmer? [on hold]

I need a book that teaches c++ programming for someone who has never programmed before(a friend of mine). I'm aware that choosing c++ as a first language is difficult, but this guy is already ...
-4
votes
0answers
16 views

Problematic RTL8188EE Wireless Network Adapter [on hold]

Good Day All, There are numerous results when searching google on this issue, however, none seem to have a solution. I am hoping to resolve this issue -- or at least have a decent workaround. It is a ...
1
vote
2answers
97 views

Are the Repository Pattern and Active Record pattern compatible?

Currently I am developing a webapp where I have defined models implementing the Active Record pattern. Each model also is defined by an interface that specifies the Entity properties and makes it easy ...
-3
votes
0answers
44 views

Examples of modern, well designed C++ projects that don't use object-orientation? [on hold]

Does anyone know of any open-source, well-designed and moderately modern C++ projects that do not use an Object-Oriented approach? It could be either done in a functional fashion, or in a more ...
-5
votes
1answer
32 views

Proving that each element in reservoir have equal probability of been selected in reservoir sampling? [on hold]

Here is the proof After the (i-1)th round, let us assume, the probability of a number being in the reservoir array is k/(i-1). Since the probability of the number being replaced in the ith round is ...
-6
votes
0answers
21 views

How to align a nucleotide sequence against a set of them in a database? [on hold]

How to align a nucleotide sequence against a set of them in a database? Need a sample Python , Java or Ruby code showing the alignment of an input 1000 bp sequence against a set of them. I could find ...
1
vote
1answer
80 views

Is it ever ok to remove the original license from a file

I have a library I maintain. It is a java library that I originally forked from someone else. They added a BSD license statement to the top of EVERY file. Including files that have no real logic.. ...
-5
votes
0answers
42 views

Computer science or Software Engineering [on hold]

I was wondering the difference between Computer Science and Software engineering. I met a person in stack that is a software engineer and he's knowledgable so I was leaning towards that but im not ...
-4
votes
0answers
38 views

C# console app which calculate a volume of a box [on hold]

I'm new in C# and I'm trying to make a program which calculate the volume in decimals of a box. I made something but is not working. I would like to know what is wrong and see a solution. I need to ...
-2
votes
1answer
51 views

Why isn't gettext parameterized?

Currently: translators are exposed to programming language detail text is programming language specific (%s) translators cannot change ordering of strings (for example: family name comes first in ...
1
vote
2answers
44 views

Expressing interface inheritance in natural language [duplicate]

In object-oriented programming, when you extend a class you establish an is-a relationship between a new subtype and its parent(s), i.e. B is an A (aka code inheritance). When you compose a class with ...
-1
votes
0answers
30 views

Detecting similar sets

I have a set S consisting of N sets, each containing 2 or more numbers. E.g.: S={{1,2,6},{6,3,4,2},{6,2},{1,9,12},{7,8,13}}. So, here N=5 The question is: Determine which sets should be grouped ...
0
votes
0answers
33 views

Is it realistic to expect to create a livestream platform from scratchish? Is there a better way?

I am intending to create a livestream based website tailored towards a specific purpose, preferably with an optional anonymous side to uploading. As far as I can see I have two options: Create my ...
20
votes
5answers
2k views

Can you implement “object-oriented” programming without the class keyword?

Say we want to provide an abstraction of an "account" in a bank. Here's one approach, using a function object in Python: def account(): """Return a dispatch dictionary representing a bank ...
-7
votes
1answer
40 views

Tools to develop software for a company [on hold]

I'm developing a software module for a company as part of a school project. I am a decent programmer but I have never built a software module in a professional context. Which tools do I have to know ...
-4
votes
0answers
8 views

How to add custom view to markers located on a map?

I have been working around with a store locator application built using JavaScript. I am able to locate the stores on the map but how to add a custom view to the markers of the stores so that when an ...
9
votes
4answers
277 views

Semantically more appropriate package name than `util` for the following things?

As a strawman consider the package java.util it is a dumping ground for various classes that in most cases do not share anything in common other than the person that put them there was lazy or ...
2
votes
1answer
55 views

How do hybrid interpreter-JIT compilers work?

Chrome's V8 compiler, the Java HotSpot compiler, and many more have multiple tiers of interpretation and compilation. A function starts off as interpreted in HotSpot and then, if it is run often ...
1
vote
2answers
118 views

Designing Message class in Java

I'm writing a class for Message. Message comes with Header and Payload. Header has following fields: Version Type For Type "XYZ", the following Payloads are allowed. Configuration Metafile ...
0
votes
1answer
75 views

Is Objective-C the only language with infix arguments?

One of the things I like about Objective-C is the use of infix arguments when calling a method. [myDictionary setObject:myObject forKey:@"key"]; where the method name is setObject:forKey:. Does any ...
5
votes
2answers
125 views

How do I deal with the following technical issue?

I am a Java Programmer and I am relatively new to Java(1 Year). I am working for a small startup company. My problem is a bit strange and I am facing it a bit difficult to deal with and explain also. ...
1
vote
3answers
53 views

Dijkstra function for navigation for disadvantaged

Is there a way we can write a function for Dijkstra to determine which node to enqueue and which to discard. This is for a navigation solution for people with disabilities where path to stairs may be ...
5
votes
1answer
62 views

Does needing the ability to extend a class at runtime imply poor design?

Aadit M Shah states in Benefits of prototypal inheritance over classical: One of the most important advantages of prototypal inheritance is that you can add new properties to prototypes after they ...

15 30 50 per page