0
votes
5answers
480 views

Fastest way to determine if a value is in a list?

I'm aware there may not be a good solution to this problem. I'm looking for a fast algorithm that determines whether or not a value (let's say an integer) exists in a set of values, however I need the ...
-1
votes
0answers
21 views

sending data from device to remote server [migrated]

My application is passing two value from device to remote server but it work in when i tested in bluestack when I install in real device it show a message like "Unfortunately app has been stooped" so ...
4
votes
2answers
106 views

What do you get when you cross a multi-precision integer with a floating-point number?

I'm working on adding multi-precision integers to the suite of numeric types in my APL interpreter, but I'm not sure what to do about the odd type-combinations that now arise. I now have the following ...
2
votes
2answers
199 views

Where to put a common database connection for my classes

I have several classes (Repositories) which do the task of saving/retrieving some objects in/from database; all of them need to establish a connection to one database. I thought in order to avoid ...
-4
votes
0answers
39 views

How alika are the django and gae, wtforms and jinja2 stacks? [closed]

I was asked if I can program a django application. I have experience from google appengine with django, jinja2 and wtforms but the django project I was asked about uses django's builtin forms and ...
-1
votes
0answers
28 views

readFromFile reads file from reference in a function help! [closed]

Ok so first this is my first post on stack overflow! Second I need some help on my c++ project! Heres the problem I have a readFromFile function in a class that will accept one parameter (an input ...
-2
votes
0answers
84 views

How much developer efficiency would be lost switching from C# to C++ [closed]

If you switched from C# to C++ how much less developer efficiency would there be? There could be benefits in using c++ for cross platform portability as demonstrated by Herb Sutter ...
2
votes
3answers
174 views

fast, say O(log2(N)), sliding median algorithm

So I know how to do a fast O(log2(N)) sliding max or sliding min algorithm. Brookes: "Algorithms for Max and Min Filters with Improved Worst-Case Performance" IEEE TRANSACTIONS ON CIRCUITS AND ...
3
votes
3answers
92 views

Is it better to make database calls or external API calls first in the context of a single Web request?

Say you have a Web app that uses data from both a database and an external API, and for certain pieces of functionality, you need to call in to both in order to read/write the necessary data. Is it ...
0
votes
0answers
18 views

accelerometer code in class [migrated]

I'm writing an app that show accelerometer readings, I was able yesterday to write all the accelerometer code in the main activity and it works fine on emulator and my device. But today I was trying ...
0
votes
0answers
31 views

How to model dynamic table schema in .Net code

I am preparing to do an upgrade of a fairly large program that is currently written entirely in MS Access, both GUI and data (code and data in separate files). One of the key features of the product ...
-2
votes
0answers
22 views

generating best fit from 3d datapoints [closed]

given N datapoints of point(x,y,z) how should I go about generating the best fit line for this dataset? Accuracy is more important than speed as the collection of best fit lines will be precomputed ...
-3
votes
0answers
48 views

Where to store API Token, Passwords etc [closed]

So I have an webpage. That webpage accesses an API be it with basic auth, oAuth, Digest, whatever. I have to send over some sort of authentication to the API endpoint. Is storing those credentials in ...
-5
votes
0answers
30 views

How to convert binary files to text and store them in a mySQL database with vbscript(only)?binary file i have are 3d files such as .obj/.stl.ply etc [closed]

How to convert binary files to text and store them in a mySQL database in vbscript. I have researched and I think the best way to do it is to encode the files to text using base64 encoder? However I ...
-2
votes
0answers
31 views

What is the difference between concurrency and parallelism? [duplicate]

In C#, or a similar language my understanding is the concurrency is when more the one process is running on different threads, is this correct? What are examples of each?
-8
votes
0answers
37 views

Writing an application [closed]

I have done a lot of experimenting with all sorts of programming languages and am wanting to create a desktop application that can send and receive messages as well as notifications, etc from ...
4
votes
4answers
846 views

Is it always a good idea to divide large classes into smaller ones? [duplicate]

I've heard time and time again that in object-oriented programming, you should try to split objects that 'do too much' into multiple classes, to avoid the "God Object" problem. This seems like fine ...
0
votes
0answers
40 views

Testing if any two given objects are equal [closed]

As described in the title I want to write a code that can compare any given objects and check if they are equal. Here's a sample code: public static boolean equals(Object o1, Object o2) { if ...
1
vote
1answer
231 views

Why is it common to put an underscore before a method in JavaScript? [closed]

For example, I noticed that in the jQuery UI widget factory, methods like _init, _start, _on, ect.
-5
votes
0answers
20 views

Displaying tabular results(using kable/something else) in pdf/html(rpubs) in panels(mfrow=c(r,c)) [closed]

I have a data frame with numeric facts for INJURIES, FATALITIES, CROP DAMAGE and PROPERTY DAMAGE grouped by YEAR, STATE and EVENT. I am interested in displaying top 10 each one of the ...
1
vote
1answer
56 views

What to test for in a simple form where the value of one input field dictates other fields?

Note:- I have added android and iOS tags to this question but it is not necessarily restricted to those platforms. Consider a simple registration form where the the value of one field dictates what ...
-5
votes
0answers
37 views

how to update and Filter one record in Microsoft access using VB.Net [closed]

Help me Please this is my code: Private Sub btnupdate_Click(sender As Object, e As EventArgs) Handles btnupdate.Click Dim con As New OleDbConnection con.ConnectionString = ...
-4
votes
1answer
67 views

Compare each elements in a array using single loop [closed]

How we can compare elements in an array using one single loop. The time complexity should be O(n) and space complexity should be O(n). Can someone can help me to solve this problem ? As an example : ...
18
votes
4answers
2k views

How much refactoring is acceptable? [duplicate]

I am currently in a project where one of my developer colleagues constantly refactors stuff on every ticket he's doing. We are using agile methodologies. I know that refactoring is a good thing to do ...
-4
votes
0answers
22 views

How do you change the visibility of multiple front panel decorations programatically in LabVIEW? [closed]

I am trying to make a number of front panel decorations hidden in LabVIEW by the use of a boolean control. I have figured out how to do this with one object fine and have made it work with multiple ...
-1
votes
1answer
98 views

Formal justification for use of third-party libraries [duplicate]

My team and I develop and application which uses a number of third-party libraries to fulfill certain common functions. (It's a Java application and uses a number of Apache Commons libs, Log4j, etc.) ...
6
votes
2answers
198 views

Static console object or dependency injection?

For a current project I have created a Console class which wraps up C++'s usual cout, writes output to a file or uses Console::WriteLine depending on the environment. Currently I've setup my code base ...
9
votes
1answer
211 views

API key - in content or header

Working on an API at the moment and just wanted to gather opinions on where the best place to transmit the API key should be. I know that is shouldn't go in the URL, this leaves the request header or ...
-1
votes
0answers
40 views

Cygwin vs GOW feature comparison [closed]

Im a heavy windows user who is now starting to look more closely at linux and managing linux systems. I have both Cygwin and Gow installed as my first step, as I start to ssh to linux systems as well ...
-3
votes
0answers
25 views

How to use Multiple class in javascript function for testmonial? [closed]

I Have Two Div I want Use this Class For Testmonial Show Please Tellme How I use 2 class in one Function.
1
vote
1answer
161 views

Calculate Big-O for nested for loops

I found this nested loop to calculate the Big-O notation. for(i=0;i<n;i++) for(j=0;j<i*i;j++) for(k=0;k<j;k++) I got the time complexity for the algorithm with this polynomial ...
3
votes
1answer
68 views

JSON Web Token - why is the payload public?

I can't understand the reasoning for making the claims/payload of a JWT publicly visible after base64 decoding it. Why? It seems like it'd be much more useful to have it encrypted with the secret. ...
0
votes
0answers
42 views

How to detect marks on a custom form [closed]

I've created a custom form on paper that will be scanned. The form looks very similar to this lottery ticket form. I think there are several ways to do this. One of the things I've tried using is ...
1
vote
0answers
79 views

Android, PHP session and JSON object retrieval

I am working on an app in android studio.. it currently has a login and registration system that are linked to a database and both work perfectly. I am now trying to carry over the user id value ...
-3
votes
0answers
21 views

Programming for NodeJS on Android - what toolset and equipments to use? [closed]

I use a laptop to develop for NodeJS/browser environment (JavaScript apps and tooling, like gulp, for example), but I guess it's not too pratical or confortable to use it on the bus or the subway, so ...
1
vote
0answers
56 views

Simple REST API calls using Spring? [migrated]

Okay I'm having a simple REST API that is now running. I also got a mobile app (Android) that would be ready for some network communication. But here is the thing: I now got a fancy API created with ...
3
votes
1answer
124 views

Implementation of Asynchronous function call in C

I took it upon myself recently to work towards making a general-purpose Translator to automatically translate js programs into C, but I got stuck when thinking of asynchronous behaviour. Using ANSI / ...
5
votes
1answer
66 views

Whether to abstract small repeating code segments in HTML templates?

(The framework used in question is AngularJS so the question can be translated as "Whether to introduce Directives for small repeating code segments in Views") As a developer who focuses on Java ...
1
vote
1answer
119 views

Are there real world examples demonstrating reasonable performance improvement by using move semantics?

(I've asked a similar question on SO but unfortunately it might not be proper, so I also put here; please kindly point out if you think it's a duplicate.) I've heard many words about the move ...
4
votes
0answers
112 views

What is the maximum number of steps to find a bug using bisecting?

Assume that a node A in the commit tree of a codebase contains a bug but some ancestor B of A is clean from that very bug. Given the topology of the commit tree [B,A] leading from B to A, can we ...
0
votes
0answers
10 views

Computing theory: can a single node be a subgraph? [migrated]

Can a single node be considered a subgraph? For example, if I had this graph, G: X-----Y and I deleted Y, leaving me with the graph X is this a subgraph (induced) of G? What about the following ...
2
votes
0answers
30 views

Seeking opinions on using device tree for I/O definition

I've been working ELLCC, a clang/LLVM based development tool chain targeting ARM, Mips, Microblaze, PowerPC, and x86 targets. The tool chain is pretty complete and runs on Linux, Windows, and Mac OS ...
-4
votes
0answers
38 views

Why do we still have problems with foreign characters? [closed]

We want åäöÅÄÖ to work (for a custom cryptography) with Java. It seems that there is a problem whether åäöÅÄÖ are before Aa or after Zz. Which is it and which should it be? Am I mistaken that this has ...
0
votes
1answer
37 views

What are the components of a process? [closed]

What exactly is a process and what all things is a process comprised of? I have read the Wikipedia page and I found only abstract details over there. I want to know what details are stored by a ...
1
vote
0answers
36 views

Ruby create a class from a specification file [migrated]

I have a specification file Spec.txt like this title :Test attribute :fieldOne, String attribute :fieldTwo, Fixnum constraint :fieldOne, 'fieldOne != nil' constraint :fieldTwo, 'fieldTwo ...
1
vote
1answer
48 views

What does “Stateful” means in Stateful ViewModel in MVVM

I was reading about some XAML patterns, and there was the Stateful ViewModel, according to what I read it has nothing different than what we as just the "ViewModel". Here's a description for example ...
11
votes
5answers
346 views

Version controlling a database's contents

I'm working on a web project that involves user-editable content, and I'd like to be able to do version-tracking of the actual content, which lives in a database. Basically, I want to implement ...
4
votes
2answers
95 views

Is it considered good practice to declare base interfaces without mutators, supplying mutatators in a sub-interface

I asked a question on StackOverflow on how to properly implement an ImmutableMap that abides by the SOLID principles. Due to Java's Map interface containing put and putAll, it violates the interface ...
3
votes
1answer
170 views

Is there any reason not to make a webapp be client-side only?

I recently started writing a path-finding algorithm simulation application in python. It takes user inputs, randomly generates a 2d graph, and shows displays the simulation via GUI. Now, what I ...
3
votes
0answers
29 views

Partial Model Updates From View

I hope this is on-topic here since I'm a bit new to the whiteboard... I'm currently developing an application using ASP.NET MVC 5 (and WebAPI 2). One of my domain entities is huge, and is stored in ...

15 30 50 per page