-3
votes
0answers
5 views

Algorithms with natural language

I am building a web app where people can post their problems in 140 character length and the most common problem will be outputted in a list. To determent the most common problem, the app must match ...
0
votes
2answers
25 views

In javascript, should object properties be declared on top of the function?

I learned that it's good practice to declare variables before they are used. For example: function myFunction() { var i; var j; } Does the same thing go for object properties, and is there a ...
2
votes
1answer
21 views

Break big method into 2 methods, first containing a “for” loop and second a “break”

A method grew too big for its own good, and I need to break it up into two separate methods. def big_method(dct): # Initial code # ... for i in dct: # More code # ... ...
-6
votes
0answers
16 views

How to make Online shop with quest/mission? [on hold]

Sometimes I Bored, What can i do?,but Reality I just a beginner programer ~ Now I want make new conception online shop with quest/mission like a game online can master help me? :(
1
vote
0answers
12 views

How to illustrate the difference between forward and backward compatibility [duplicate]

Please correct me if I'm wrong, but a new version that can run old code is backwards-compatible and an old version that can run new code is forward-compatible (like an old B/W television can receive a ...
1
vote
2answers
19 views

const reference and const pointer. How do they work?

I read a post about how const storage works. How does const storage work? (Item 2, Scott Myers Effective C++) This says that each segment has separate section of write protected memory and const ...
0
votes
1answer
19 views

Is APL a Turing-complete language?

On the Wikipedia page for APL, I haven't been able to find any mention of the language being Turing-complete, although it does (to my incomplete understanding of TC) appear to be capable of performing ...
-2
votes
0answers
17 views

Lead-lag controller implementation on PIXHAWK [on hold]

I am trying to implement a lead lag control strategy for a quadrotor. I ma running into issues of writing the controller structure in a c++ format using difference equation. Any ideas and suggestions ...
0
votes
1answer
29 views

Changing coordinate systems in python

I am working on a visual python program that is meant to model the orbit of an electron around the core of a Hydrogen atom. In order to avoid the singularity at r = 0 in the equation for coulomb ...
1
vote
0answers
26 views

html/css/javascript for game ui's

I've been looking into game ui's recently. My conclusion is that html/css/javascript would be the perfect solution IF it was wrapped up in a nice C++ library that allowed for easy integration into ...
1
vote
1answer
28 views

Is hiding complexity from API clients by merging resources a correct practice?

So let's say we have three simple resources: Groups, Users, and GroupUsers. Groups - Represent interest groups which can be subscribed by users. { name: 'Colorado Mountain Biking Group' ...
0
votes
0answers
12 views

Synchronizing content between web-based app and game server

I have a MUD server, written in C, that I'm trying to move from file-based storage to MongoDB. Eventually, I'd like to offload administration of game content and settings to a web console, written in ...
-1
votes
0answers
18 views

How to implement password protection functionality to a windows driver?

Nowadays, I am working on programming a windows driver of my printer I want to implement a functionality that requires password after printing 100 pages . After every 100 prints it should ask for a ...
1
vote
2answers
45 views

DLL or web service for common functions?

We have a variety of basic functions (date utilities, email sending, internal math calculations, etc) that are currently in an old VB.NET project. We're going to move towards C# and I'm wondering if ...
1
vote
2answers
63 views

How much should I concern myself with hiding the IDs of my database in URLs?

I keep coming across questions and articles on the internet suggesting that it's not a good practice to have the IDs of your database records visible to the public. Yet I've never taken it seriously ...
0
votes
1answer
30 views

File validation rules

I have an application that can accept CSV files to run some operations. The files look like: CREATE USER:username,last_name,first_name,age user1,Smith,John,23 user2,Poppins,Mary,257 There are a ...
-4
votes
1answer
64 views

Does the company own my work? [on hold]

I started building out some code for my own company when I was approached by another company to come on board and build a similar product. I used what I had as a base but made some major ...
5
votes
2answers
56 views

How to incorporate a database into a branch-per-issue version control process?

We're hoping to move to a new branch-per-issue process with development. To prepare for this, a lot of research and experimenting has been happening in terms of version control, CI, and process of ...
0
votes
1answer
34 views

How is called the reciprocal operation of the join on two tables

Consider two tables in a relational database 1|A 2|B 1|X 1|Y 2|Z whose join on the first column is (if we drop the column used for the join) A|X A|Y B|Z How is called the converse operation ...
0
votes
0answers
19 views

Would it be good to have a readonly modifier for method level variables?

In C# you can use the readonly modifier for a class level field to indicate (to comipler and other DEVS) that once set it cannot be changed. I'd quite like for the ability to mark a variable declared ...
-2
votes
0answers
21 views

CE Machinery Standards for UI/Hard Buttons [migrated]

In Canada, working on a machine for the lumber industry. The machine needs to be CE certifiable. I'm working on icons right now, and I've searched the subject to death and read through what I think ...
-2
votes
0answers
19 views

R Twitter API - twitteR - Larger Radius Results in Less Tweets

I am trying to use the twitteR package to gather tweets from the Twitter API. However, it seems that the radius parameter for the geocode setting is behaving oddly. I would like to ultimately gather ...
-1
votes
0answers
29 views

Which patterns to apply for “User Manager” [on hold]

I developing a social application and I neeed to create a User Manager that is responsible for managing certain types of user. A user who enters in to the system will be a new user or an existing ...
2
votes
1answer
53 views

Decrypt data on any Windows computer by same user

I have a license system which currently locks licenses to a physical computer using CryptProtectData (with CRYPTPROTECT_LOCAL_MACHINE) and CryptUnprotectData. This is of course not the entire license ...
4
votes
2answers
140 views

C# obtain derived class from base

I am trying to build a dashboard that allows a variety of widgets to be displayed on the home screen. They are structured as follows: public abstract class Widget {} public abstract class ...
-3
votes
0answers
27 views

What should I call the toolset for testing?

According to wikipedia: .. test suite, less commonly known as a validation suite, is a collection of test cases .. At work however I see people use the term test-suite when they mean the ...
1
vote
0answers
16 views

Updating an entity via a service layer

What's the best way to update an entity using a service layer? Performing a single, atomic action I can understand like BlogService.Publish(blogID) but what about editing multiple values which map to ...
-2
votes
0answers
24 views

Unicode Support and future versions of PHP [on hold]

PHP 6 was planed to enhance Unicode Support. PHP 7 roadmap does not address this as well. What will be happen for PHP regarding multilingual support?
3
votes
2answers
96 views

Should points of tech debt be counted in a team's velocity?

Tech debt doesn't have a direct business value until the improvements are seen against other stories being delivered quicker. Achieving or failing sprints affects morale and delivery in the long run ...
0
votes
1answer
86 views

Resetting vs. re-sending forgotten passwords

When a user forgets their password, is it better practice to reset the password and email that to the user or just to email the current password to the user's email address.
0
votes
0answers
21 views

Getters with data conversion in Java VOs

I am working on a standard Spring application where DAO layer returns entities to service layer and service layer returns VOs to other services and controllers. In a certain scenario, we have a VO ...
3
votes
3answers
114 views

How to determine if set of ordered coordinates form a simple curve?

I hope it is the right place to ask this. I wasn't sure if it belongs to Stack Overflow or Computer Science. Eventually this seemed more suitable. Anyway, some background first: A closed curve, is ...
-1
votes
0answers
19 views

Hybrid Mobile Application or Web with native containers?

I want to build a taxi application that will run on both IOS and Android platforms. The enduser must be capable to: Order a taxi. Review his/her stats (how many orders has he/she done, money spent, ...
0
votes
2answers
63 views

How should an API or server respond when a device connects with a different account than it is bound to?

In my system we have users accounts and user devices. Rules: A user can have only one user account. Each user can have many devices. A device can be bound to only one user account. Upon initial ...
-4
votes
1answer
65 views

Should I remove logging statements on production? [on hold]

I have a bunch of console.log statements in my AngularJS app. Should those be removed for production? Are there potential issues from leaving them on?
-5
votes
0answers
19 views

Generate a dynamic dropdown and embed a php code [on hold]

I want to create a drop down dynamically and display a data in to drop down from database. and when click on product from drop down I want show two textbox.
-1
votes
0answers
19 views

Weird Override and implementation [migrated]

I am currently programming an android app, but I have a problem. I want to use GreenDroid for my project but while compiling the compliler give me an error : The return type is incompatible with ...
1
vote
0answers
54 views

How to store data that is recorded with different frequency?

I'm writing a metallurgical web application, that must store data (electrical parameters) recorded at different frequencies. For example: six parameters recorded with frequency of one measure per ...
2
votes
1answer
55 views

Call method in a disposable object at the beginning of a “using” statement

When we use the lock statement, it is essentially doing a Monitor.Enter at the beginning of the locking block and a Monitor.Exit at the end of the block. This process is automatically handled by the ...
2
votes
2answers
51 views

Domain object model: query by id vs object

Let assume I have two simple model classes: Product and Brand It is obvious I have a query method in Product class like this Product product = Product.findById(123); What if, I want to query ...
-2
votes
1answer
43 views

Copying desired bits from variables [on hold]

What's the best way to copy desired bits from char, int or any other variables? I want to see all possible and the most efficient techniques for this purpose. I have for example 16bit variable 0000 ...
0
votes
0answers
26 views

Why does my c++ code run fine on Windows 7 but crashes on Windows 8? [migrated]

Ok, I added the following code to a mod menu for a game and everything works fine for me in Windows 7. But when I send it to my friend on Windows 8, he tries to select a button (which calls the ...
2
votes
1answer
53 views

Making use of constant data

My team is working on an android app. A co-worker and I have different ideas on how to load constant data. To clarify, the data we are going to use are 100 × (n × 〈integer-integer pair〉) where 10 ...
-1
votes
0answers
24 views

algorithm to find lowest-weighted sub graph [on hold]

It's a question I read it in a book but I couldn't solve it. Give an algorithm to find the lowest-weighted sub graph that maybe its edge weights lower than zero. algorithm should be in O(E logV)
-1
votes
0answers
13 views

Defining build logic [on hold]

I have been tasked with switching a legacy multiple part project from Ant to Gradle. The overall project itself is not very complicated, just admin and client java projects with a common project with ...
1
vote
3answers
150 views

The coding monkey dilemma - any practical advice or strategies?

I saw this question on UXSE but thought it might be interesting to see what the response it on stackoverflow or programming SE: A quotation from an interview with a practitioner with a technical ...
-1
votes
0answers
21 views

Setting up Visual Studio for 2013 for Angular.js and Node.js development

I want to start development with Node.js for my server side logic and AngularJS for my client side logic. I want to develop in my favorite IDE: Visual Studio 2013. However, I can't find any ...
-1
votes
1answer
25 views

angularjs events for launching modals

I want to be able to launch modal windows from different parts of my angular application for viewing or editing content without changing states/url. My current approach is to create a module for each ...
-3
votes
0answers
23 views

How are server emulators for web games made? [on hold]

I hope this is the right place for this type of question. Anyway, I have an idea of how windows application games are emulated, but I'm more interested in how emulators for browser based MMOs are ...
2
votes
1answer
60 views

What's the correct commit message in a multi-project repository

Somewhere else there was a discussion on putting several projects in one large repository. My question is, how does a good commit message look in those type of repos? I usually prepend each commit ...

15 30 50 per page