-4
votes
0answers
5 views

Error 'null' in sockets connection , Android

What I was trying to do: I was trying to build a test app, for now, simply establishing connection between the app on Android phone (4.2.2)(as client) and a java application running on pc (windows ...
-1
votes
0answers
4 views

Is there any value in using a Promises library versus ES6 Promises?

I see a lot of NodeJS articles recommending the Bluebird library for promisifying your code and avoiding callback spaghetti. Is there any value in using such a library when using Node 4.2.4+ given ...
0
votes
1answer
8 views

Decoupling external dependencies

We have a simple REST webapp which is dependent on multiple external services, mostly Kafka messages. An attempt was made to isolate external dependencies by encapsulating all external interactions in ...
-3
votes
0answers
11 views

Can I change continue statement to other loop? [on hold]

I need some help with this loop statement I want to change continue to other loop and still work the same This is the code String searchMe ="Look fr a substring in me,"+"i have many subclasses of ...
-3
votes
0answers
13 views

In this json my category and subcategory are combine, how to set in pojo class, i wan't to set in expandable list view, please help [on hold]

{ "product_categories": [{ "id": 24, "name": "Air Cooled", "slug": "air-cooled", "parent": 67, "description": "", "display": "subcategories", "image": "", "count": 4 }, { "id": 33, "name": "Belt ...
0
votes
0answers
5 views

How to improve navigation on various Animators in an acitivity

I have various Animations going on simultaneously in my Android Activity, in MainActivity (like with Fragment pop-up, my Toolbar and some other views Animate Synchronously). How can I manage all such ...
-3
votes
0answers
10 views

Confirm box cancel function does the same thing as OK [on hold]

I would like someone to tell me why the cancel button redirects me to Youtube instead of cancelling out the operation. function link(){ var r = confirm("Are you leaving?"); if (r = true) { ...
-1
votes
1answer
35 views

What is the technical term for anything that can obtain a reference?

In programming, you have properties, methods, variables, constants, classes, interfaces, enums, attributes, etc. Properties and methods are considered class members, but not necessarily everything ...
2
votes
0answers
12 views

What was the first mechanical Turing-complete machine ever constructed?

I understand that Charles Babbage designed the first Turing-complete mechanical machine, the Analytical Engine, in the 1800s, but it was never actually built. I have also seen that at least one ...
0
votes
0answers
9 views

How to turn off third party app store and side loading except my app store

I want to prevent installing apps using third party app stores but except only one app store. This specific app store is in my control. I can change it's code to send a message to the mobile device ...
0
votes
0answers
13 views

Questions to ask Product Owner during Story time [on hold]

I'm a new Business Analyst, in an Agile project. Our team is developing the product in AngularJs- front end, SQL server backend. Using REST web services. We are trying to include a realtime reporting ...
-5
votes
0answers
55 views

XML Stuctured C [on hold]

Has a Programming Language been developed, which structures C code within XML like tags? (Y/N) If not please mention a place where I should submit this idea. (Sorry that this is a slightly open ended ...
1
vote
3answers
82 views

What's the point of hidden files?

What is the point of hidden files? In Microsoft Windows they exist, in Mac OS X they exist and in Linux they exist. It seems to me that it just makes detecting malware more difficult. The only upside ...
0
votes
1answer
32 views

Best way to flatten an XML document

Say you have a document like this: <names> <first>Joe</first> <last>Smoe</last> <phonenumbers> <phonenumber ...
0
votes
0answers
14 views

Azure Active Directory

I am developing a suite of applications that will be hosted in Azure. Some apps will be for customer use (not public tho, i.e. invited/paid up customers) and some for internal employees. For ...
-6
votes
0answers
10 views

When adding JCheckBoxes to JPanel, the JPanel resizes instead of using a JScrollPane [on hold]

So essentially I am adding JCheckBoxes to a JPanel dynamically. I've added a vertical scroll bar to try and keep the panel the same size no matter how many checkboxes it has, but alas, it makes the ...
7
votes
0answers
71 views

What is the origin of the C Preprocessor?

The C preprocessor is attached to C, but it has a completely different syntax from the main language: syntactically significant whitespace (end of line terminates a statement, gap after the macro ...
0
votes
0answers
35 views

Use the chance to return booleans after method calls for an optional layer of exception handling?

I would like to ask a follow-up to a question I just asked: Better to have 2 methods with clear meaning, or just 1 dual use method? I now understand why it is best to separate charge(float c); and ...
0
votes
1answer
15 views

Pull requests and work item linking in Visual Studio 2015 with non-TFS remote Git repo

We use TFS and Visual Studio 2015 at work but don't get full benefit from the ALM features as we have code in non-TFS Git repos. We would like to integrate these products in with all the TFS goodies ...
11
votes
5answers
914 views

Better to have 2 methods with clear meaning, or just 1 dual use method?

To simplify the interface, is it better to just not have the getBalance() method? Passing 0 to the charge(float c); will give the same result: public class Client { private float bal; float ...
0
votes
0answers
27 views

How to automate tasks performed on a web page

I apologize if this has been asked before, I don't know what this would be called and as such I don't know how to phrase the question. I work for a large company, and as such it has many people ...
-4
votes
1answer
59 views

C++ substitution cryptography

Is there a way to encrypt a text message by simple substitution? Ex: input +5 Hello World Output Mjqqt Btwqi Where +5 is the char incrementation for the substitution. I'm stuck splitting the ...
-2
votes
0answers
21 views

Which database to use for real time data update for trading and analysis? [on hold]

I am thinking about a website for trading and analytics. I am thinking which technologies can be used for this kind of website and so I have doubt with database. Which database is suitable for a ...
-3
votes
0answers
13 views

A Java program that will data KML data from a folder

I want to write a program that will take KML data from a folder and displace it on Google map and some other global map and continue update this data. I don't know what part of Java I need to use to ...
-5
votes
1answer
52 views

How to enable 'for-each' loop in my own linked list class? [on hold]

Please guide me on code additions that will allow someone to iterate over a custom linked list implementation using "for-each" loop, just like existing collection classes or arrays. All I know is that ...
-5
votes
0answers
18 views

How to make a project like Image Locker Pro in Codeblocks? [on hold]

I want to create an Image Organizer(similar to Image Locker Pro but adding some extra functionality) project in codeblocks (may be using wxWidgets). There will be two parts. In the main program we can ...
4
votes
2answers
62 views

Is Module Pattern in JavaScript is useful only for singleton creation?

Some articles (JavaScript Module Pattern In Depth, Mastering The Module Pattern) describe defining modules in JavaScript like in the snippet below (from Addy Osmani's "Learning JavaScript Design ...
4
votes
4answers
107 views

Avoiding Division by Zero Using Float Comparison

Source code analyzers (like SonarQube) complain about float (or double) equality comparisons because equality is a tricky thing with floats; the values compared can be the results of computations ...
0
votes
3answers
109 views

How far should I validate user input in my own created API?

I got something here that bogs my mind a bit. Let's say I write me this API (in TS), check out some of these properties: export class MyAPI{ ...
0
votes
0answers
12 views

Detailed Page for multiple hierarchy structure

I am planning to make an application that can read files and contains data in a hierarchy, e.g. Level1 elements, containing 0 or more Level2 elements etc. The GUI should look like: >Level1 item ...
-3
votes
0answers
18 views

Coverting iOS App For Web Use? [on hold]

I need to develop my app as a website. It is fully developed using Objective-C on iPhone and iPad already. I personally do not have the programming knowledge to develop a web version. Are there any ...
4
votes
2answers
76 views

Understanding the Single-Writer Principle

The article on the Single-Writer Principle of the Mechanical Sympathy blog explains how bad queues are (performance-wise), because they need to be able to receive messages from multiple produers, and ...
0
votes
0answers
32 views

OMG ASTM and weird languages (like Scheme, Ocaml, Haskell)

Abstract Syntax Tree Metamodel (ASTM) is an OMG standard to represent ASTs. In my very partial and limited understanding (I only spend an hour or two glancing into that spec), it is notably defining ...
1
vote
1answer
21 views

Side-by-side Functional and Acceptance Testing (SpecFlow)

This question is not about the differences between functional and acceptance tests! Almost all the info I could find on the web just explains the difference between them. I know that functional tests ...
3
votes
4answers
192 views

Interview question on accessing variable with pointers in c

Once I had a question in interview, it goes something like this. int main() { int a = 10; int b = 20; int *p = &a; // can i access b or can i get my pointer p to point to b. } ...
0
votes
0answers
27 views

Organizing effectively the project

One of our assignments is to write a website which should use a database. I would like to have some help organizing it. Here are characteristics of our work. The assignment is for a group of 5 ...
-5
votes
0answers
15 views

VB.net 2008 How to open tray icon's contextmenu with leftclick without show icon in taskbar [on hold]

I have a problem. My program is not shown in taskbar (project has only a form1 invisible and a trayicon with contextmenu) and when i click with right mouse button there is no problem. Anyway I've ...
0
votes
1answer
35 views

Database searching for string across different tables

Scenario: application will search in database almost all columns across about 8 tables/views for defined string and return all rows containing that string (will return collection of objects or JSON). ...
0
votes
0answers
19 views

Does variable type specification leads to any performance difference?

This question sits in my head for a long time now. Let's say I have a very long method which basically creates a responsive and resizable layout for a user interface by using a few fixed values, ...
2
votes
1answer
173 views

Open / Closed Principle

I found this code example explaining Open / Closed principle. Code before application of principle: public class Logger { public void Log(string message, LogType logType) { switch ...
-4
votes
0answers
18 views

Database Structure for Agents commission payouts generation with TDS deduction

Actually I am creating this for the first time to generate the commission payouts for agents for their sale. Commission need to be generated when the product is sold out and payout need to be done ...
0
votes
0answers
31 views

Configuring a microservice landscape, should the view be monolithic or be attached to core services?

I'm migrating my monolithic web application to a microservice based one. I'm going to use Spring cloud and I've got a discovery service where all the rest of the services are registered. A simplified ...
-4
votes
0answers
28 views

Working with large data sets on Php and Excel

I need to deal with larger datset in my upcoming project, so choosing a good tech for the same will be good. As we say "Right tool for right job" Project will be dealing with Large data sets, ...
0
votes
0answers
14 views

Implementing CMA-ES

I am attempting to implement the CMA-ES optimization algorithm in my favorite language (using the example code here as a guideline), but I need help solving a problem I am having. To test the ...
-1
votes
0answers
55 views

Any Real Disadvantage to Starting a New iOS Project in Objective-C in 2016? [on hold]

I may soon join a new iOS project in the following months. I have heard the project will be done in Objective-C, not Swift (for reasons I can't disclose). I've been coding in Objective-C since 2009 ...
-4
votes
0answers
27 views

How to certify/validate software for install on windows to prevent a warning message

I have written software for a daily print utility using windows task scheduler. When it is installed on a windows system it throws a warning. I know I can turn this off but a user installing my ...
-3
votes
0answers
72 views

What language(s) used to develop F-35 software?

I'm curious about what kind of technology used in the development of the F-35 fighter jet's software. I just read some news about how bug-ridden the system is, and would like to know what were used to ...
0
votes
1answer
26 views

How can I paint a custom circular JComponent without an “invisible box” around it?

I'm writing a JApplet that displays a diagram with numbers in circles and lines connecting the circles. I've created a class that extends JComponent to act as the circles. I overrode the ...
1
vote
0answers
36 views

Pattern to use (if any) to co-ordinate loosely coupled classes with strong interdependencies

I have a collection of cooperative classes whose behaviors are interdependent upon one another. But I wish to keep them loosely coupled, so I've created appropriate interfaces. I want to determine an ...
2
votes
1answer
110 views

Word game algorithm

Back in the days of 8-bit machines there existed an educational word game. I have no idea what it was actually called but for the sake of this question (since it involves pyramids) let's call it ...

15 30 50 per page