0
votes
0answers
6 views

Dealing with NPM and Bower registry entries when moving a GitHub repository to an organization

I have a couple of related projects on GitHub that I want to group under a new organization. However, these projects are already registered on both NPM and Bower. How can I prevent/minimize ...
0
votes
2answers
38 views

Why are objects instantiated this way?

Some times I see an object instantiated this way. ICustomer oCustomer = new Customer Obvious but the Customer class is implementing ICustomer interface in this example. Are there any advantages of ...
-5
votes
0answers
11 views

Problem with Excel VBA database query using FOR XML PATH

I try to query a MS SQL Database with the following VBA Script Sub DatabaseQuery() Dim Servername As String Dim Databasename As String Dim UserID As String Dim Password As String Dim Query As String ...
1
vote
1answer
31 views

How do sites like SquareSpace and Wix support multiple design templates?

How do these guys do it? I've worked on a couple multi-tenant sites and I have a hard time wrapping my head around how you would go about having each page of your site support many designs. Sure you ...
0
votes
2answers
29 views

Is there a common reason a more technical/traditional web developer should use a CMS for his/her own purposes?

The Concept of a CMS The basic idea behind a CMS is to combine web development, artistry, journalism, and so on into a single, user-friendly* aggregate, by which an organization can not only develop ...
-1
votes
0answers
14 views

How to identify the USB Port (Linux Mint 17.1 Rebecca) [on hold]

I have to write-up a program in C++ for read the USB stick of a device (ZSTAR3 from Freescale). How do I identify the serial port of the USB? What kind of libraries do I use in C++? What could be ...
-3
votes
0answers
11 views

New contacts form/app

When I meet new people, I want it to be easy for me to get them into my contacs (use Google contacts not apple adress book or outlook). Open the app/form on my android phone and hand the phone to ...
-2
votes
0answers
24 views

Build farm management program [on hold]

I have some people in my family that have a farm and they're doing things a bit oldschool by recording everything with pen and paper. So i'am learning C++ at the moment and i'am thinking it would be ...
0
votes
0answers
23 views

Can I have more than one describe per test spec?

I started to writing tests a few time ago and faced a non-mature question: can I have more than one describe per unit test file? If so, in what circumstances this will happen? Because so far, I'm ...
4
votes
3answers
118 views

Rethrow the same exception to provide more info

It's a good practice to rethrow the same exception to provide more specific information? For example: var sitemap = "a string containing an XML document"; try { // throw InvalidXmlException if the ...
1
vote
1answer
95 views

What is a good algorithm to teach time complexity?

I am trying to teach my friend (who has a web development background) about algorithms. Is there a good problem that you think teaches the concept of time complexity well? It should be intuitive to ...
0
votes
1answer
16 views

Measuring new capabilities in a software project and comparing vs incremental capability improvement

Given two software projects X and Y relating to some Product A - Project X offers some new capabilities. Project Y offers incremental capabilities. Y's features can be measured: we know its ...
-4
votes
0answers
22 views

What is wrong ? - Python 3 [on hold]

Following is a code in Python 3 import sys n = int(input("Enter n ")) k = int(input("Enter k ")) nlist = [input("Enter element ") for _ in range(0,n)] mini = sys.maxsize f = 0 l = f+k temp = [] ...
-5
votes
0answers
23 views

Validate form with PHP and JavaScript [on hold]

I have here a register HTML form with some elements. I need to validate the elements on server side and client side and I will explain why. For example, in HTML form I have: <form ...
-3
votes
0answers
23 views

isit risky on php requires Chained [on hold]

let say i have 3 php file and i do this and is all about requires. index.php require "logout.php"; //i want to echo the password here , the file have no problem but will i have any error or risk if ...
3
votes
3answers
664 views

Best way to define, start and stop threads in C#

I am making a little program, which have few Threads, constantly running. At some point, I may want to stop one of them, and then, after random period of time, to start it again. So first, what is the ...
-2
votes
1answer
49 views

Concepts for a programming language similar to environment and environment variables in shell language? [on hold]

In general programming language theory (i.e. theory and concepts that can apply to other programming languages), what concepts generalizes (or are similar to) environment and environment variables in ...
0
votes
2answers
105 views

What's an elegant way for one loop iteration to affect another?

I needed to process a config file just now. Because of the way it was generated, it contains lines like this: ---(more 15%)--- The first step is to strip these unwanted lines out. As a slight ...
0
votes
1answer
21 views

Unix way of filtering/mapping/mapcatting records via the pipeline?

At home I use Linux and have for more than a decade. At work we use Windows and so I find PowerShell more familiar. I am a Linux/Unix fanboy at heart, but I've had greater success grokking the ...
3
votes
1answer
98 views

Should I always throw the most specific or should I try to generalize exception types?

Say you normally have FooException. /** * @throw FooException If Foo is invalid for searching. */ public bool exists(Foo a) But at some point you need to have two more specific exceptions for ...
1
vote
1answer
54 views

Second Mainline Branch to Abandon Source Control Misuse?

I just learned about Source Control this week and came to the realization that my team uses it plain wrong. One mainline to commit code to live. No other branches; that's it. Branching features ...
-3
votes
0answers
20 views

Which knowledges are require before creating any android apps [on hold]

Now I am studying java.but I don't think I can make android apps after completing java.so I think I need to learn more things.so pls give me some suggestions.thank you😊
-1
votes
0answers
16 views

Jenkins does not show some builds log and failed builds in history [migrated]

We have updated our Jenkins CI tool to updated version number is: 1.596.1. The problem is, for some projects, we cannot see the build console log. When we try to see the log, Jenkins responds with 404 ...
1
vote
1answer
50 views

GNU Simulated Annealing

I'm working from the template program given here: https://www.gnu.org/software/gsl/manual/html_node/Trivial-example.html The program as they give it compiles and runs perfectly, which is nice. What ...
-5
votes
0answers
30 views

How to convert 32 bit dlls to 64 bit [on hold]

I want to know how the 32 bit dlls generated in Visual Studio 2003, .NET framework 1.1 can be converted to 64 bit.
-3
votes
0answers
14 views

How to use Spring AOP for do-methods of Java servlets [on hold]

I have a web application where I want to call some additional code before and after the do-methods of several servlets. I already read about configuring Spring AOP for services. But how do I ...
-3
votes
0answers
14 views

Selenium Web Driver logger work [on hold]

I am using selenium web driver for Chrome and want to log steps of script but it always overwrite previous logs. I'm using the following code for logging: ...
0
votes
1answer
47 views

Making a database and related operators using files and JSON in java

I'm trying to write a program that reads operations from a file. these operators look like below : CREATE TABLE student(id:integer, gpa:decimal, name:string, family:string,isMale:Boolean) INSERT ...
1
vote
1answer
26 views

Forking a GitHub repo and including code from pull requests within a LGPL license?

There is a project hosted at GitHub which is no longer maintained, of which I wanted to use for my project. However it contains some bugfixes that are contained within pull requests from other users ...
-4
votes
0answers
34 views

I wrote a Java program to load and play an audio file, can anyone point out what the problem in the code is? [on hold]

package rico; import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Rico extends JApplet { private AudioClip sound1, sound2, currentSound; private ...
-3
votes
0answers
25 views

how to create android applications from visual studio vb.net project? [on hold]

I want to take my vb.net windows application and make it into an android application. The vb.net application is an interface with flash files. I have looked into phonegap, visualgdb as well as adobe ...
-3
votes
0answers
17 views

compatibility issues for datacenter migration [on hold]

We have a datacenter migration from 32 bit windows 2003 server to 64 bit windows 2012 server. The source code is written in .net framework 1.1 What are the compatibility issues we can face. Can ...
3
votes
3answers
205 views

Why does CI stipulate that we should be able to rollback to any version of a software?

I was reading the book "Continuous delivery, reliable software deployments through build, tests and deployment automation ". And the author mentions that one should be able to rollback to any version ...
3
votes
1answer
74 views

Enforcing open source software license

How can one enforce open source licensing terms on the usage of its derivative works? For example, if a software is GPL licensed, and I use that software to develop some closed-source application of ...
-3
votes
0answers
37 views

React Native Vs Native Script [on hold]

Both React native and Native script libraries are enabling developers to build Native apps. But,What are the major difference between Facebook React native and Telrik Native script. How to pick one ...
0
votes
2answers
55 views

Server and Client apps that will send files and other info to each other

I am trying to do a Server and Client programs, that will communicate with each other, but I can't figure out the best way to do it, so let me explain what I need: The Server app should be able to ...
2
votes
2answers
64 views

What kind of base for Decorator: interface, abstract class, non-abstract

What should be at the top of inheritance tree of Decorator design pattern? I mean the base for both components and decorators non-abstract class: has data fields, implements methods abstract class: ...
0
votes
1answer
27 views

PHP Composer vendors licensing

I'm using a composer as a dependency manager for my PHP project. Composer operates as a library, which uses packagist as a software repository to fetch third-party dependencies. I'm interested, ...
0
votes
0answers
14 views

MVC: Creare sub folders under View

I am working on a small ERP Application and using MVC5 for it. I have several Modules in the application and each module contain several web pages (Views, you can say). i.e: for School application I ...
-3
votes
0answers
15 views

How to prefill a dropdown using scala template and play framework [on hold]

I am using scala template and Play 2.0 framework for my project. Let's say I have a user form with fields like name (textfield), age (dropdown). While creating the user I filled name as dave and ...
-3
votes
1answer
57 views

How to reverse the nibbles in long long int variable in C?

I need the help to resolve the below in C code. I have a long long int k=0x0000888804eaad0e and i need the reverse of this (nibble wise) in other long long int variable. that is i want the result to ...
-2
votes
0answers
37 views

What are some methods to finding freelance programming work? [on hold]

I currently work at a company full time doing C++ programming. I would like to become a freelance software developer one day. What are some ways that I can start finding some clients to do freelance ...
1
vote
1answer
52 views

Is it possible to implement a robust 2 node P2P protocol?

I am thinking about how to implement a P2P protocol with only two nodes. At first I read about different DHT implementations in the hope that this scenario would be feasible. Turns out most ...
-2
votes
0answers
13 views

How to integrate cPanel/WHM API with third party billing system? [on hold]

I want to install new cPanel/WHM by integrate and manage e.g create, delete and update customer information/packages from my currently Billing system that have been developed by Extend JS. Base on ...
1
vote
3answers
139 views

Pass the whole object to a method or just parts?

I have an object that has about 50 properties, but one of my methods only uses about 3 of these properties. Is it still better to pass the whole object or parts. A scenario would be were I am using ...
-1
votes
1answer
41 views

Small engineering firm in need of document and file organization - best approach? [on hold]

I have recently become involved with a small engineering firm that has only used Microsoft Office Word & Excel with AutoCAD .dwg files all saved to a shared drive in systematically numbered ...
0
votes
1answer
63 views

Creating algorithms [on hold]

I am a relatively new programmer. I can pick up languages and learn syntax at a speed that I consider good, but I can't figure out how to solve problems logically using algorithms very well. I know ...
1
vote
0answers
17 views

DB migration and Azure deployment slots

I'm planning to push a new web application to an Azure Web Service (former Azure Website). I'd like to make use of the deployment slots to be able to test my deployment before pushing it to ...
3
votes
1answer
114 views

Etymology of “class” keyword

I've long taken the word "class" in programming for granted. But I can't seem to reconcile the use of the word "class" for defining a blueprint for object creation. Do we know where/when this started ...
-2
votes
0answers
15 views

How do I go about building an iOS and Android app that can cache a simple website for offline use? [on hold]

I would like to build a simple iOS and Android app that when connected to wifi downloads a simple website and stores it, so that when the user is offline the information is still available. Can it be ...

15 30 50 per page