All Questions
0
votes
1answer
15 views
Synchronized access to network industrial equipment
I have an industrial equipment which is controlled by a software. The software connects to it using sockets, and keeps the connection all the time alive, while from time to time sending commands to ...
-2
votes
0answers
18 views
sell my software right to an exclusive customer [on hold]
I have been developed a few web based applications and recently i have developed a cargo software for few customers. I sold few of them and one customer approached me and asked if he could buy the ...
-1
votes
1answer
30 views
If I want to use a remote database which one has better performance? Entity Framework or setting up a dataset in dataset design or manually?
I am somehow confused about these two objects. As I searched I can have at least 3 ways to connect to database,
by setting up an dataset in dataset design and use it
by using Entity Framework
...
-4
votes
0answers
14 views
Change a Tag's Class with type submit through getElementsByTagName [on hold]
I have this code:
<input class="btn" type="submit">
<input class="btn" type="password">
<input class="btn" type="submit">
I want to change all input's class with type submit from ...
1
vote
1answer
44 views
Is MongoDB approprate for systems that will be likely to change?
I've been using MongoDb (mainly with Meteor) and for me, it has been a great way to mock up prototypes and proof of concepts quickly.
I'm just wondering, after building the initial product, if your ...
2
votes
3answers
501 views
Multithreading: am I doing it wrong?
I'm working on an application that plays music.
During playback, often things need to happen on separate threads because they need to happen simultaneously. For example, the notes of a chord need to ...
0
votes
1answer
61 views
What is the “best practice” for handling an external API's data structure?
When dealing with an external API (as in not on your server), what is the best way to handle the structure of the data that you receive or send? Should you design the app around the structure of the ...
0
votes
1answer
115 views
C# syntactic sugar for 'Dispose Pattern' - Are there any reasons why this couldn't or shouldn't be implemented?
I read this answer on SO, and it addressed how to properly free managed and unmanaged objects using the 'Dispose Pattern'. However, I feel that the C# language could greatly simplify this with the use ...
0
votes
1answer
60 views
How does stock brokers implement limit / trailing stop loss sell logic?
Let's take Fidelity for example, one can set to sell a stock with a trailing stop lost of 2% of last price, or even more simpler, one can set a limited sell order at any given price.
And it must have ...
0
votes
0answers
3 views
How can I set “no subprocess” for Python IDLE other than shortcut [migrated]
I have been able to get my favorite Python tool, Python iDLE, to work by starting it with a windows shortcut to IDLE.BAT with a -n (no subprocess) at the end of the TARGET string. Is there a ...
-2
votes
2answers
41 views
How to test and compare algoritms efficiency [on hold]
I have a few optimization algorithms (for finding function minimum) and I'd like to check how good they are. How should I test and compare them?
I thought about:
mean number of function evaluations ...
-2
votes
0answers
18 views
Capturing an uploaded file from the current request [on hold]
I would like to use F# to grab the file information received by a web api method. My web api is in a c# project, but I would like to call an F# function from within the web api method that will ...
0
votes
0answers
39 views
Ajax call or js to update a cart price
I am building a cart in Java and would like to give users the ability to update the quantity and see the new price instantly. I am using BigDecimal on the back-end for complete accuracy, but the ajax ...
0
votes
0answers
12 views
JavaScript Print Formatting [migrated]
I'm learning NodeJS and rewriting some code to see how it compares. For one script, I am trying to take dates in the form of strings and turn them into JavaScript Date objects to perform calculations ...
0
votes
0answers
25 views
Changelog in Comments Versus Source Control Log [duplicate]
Until recently, I have worked on a code base which kept change logs both as a table in the header section of each file and as comments in source control.
In practice, only the header comments were ...
1
vote
0answers
18 views
How to use ViewModels in a layered architecture?
I've got a Java application that is using a layered architecture, we have: presentation layer, business layer and data access layer.
Our business layer uses the models to process the "requests".
We ...
-3
votes
0answers
25 views
java programs with 3D navigation display [on hold]
Am a newbie java program, writing a program with java that has to do with map of a location that communicate with a GPS device, please i need to know how to go about it
-4
votes
0answers
17 views
how to make preg_match match entire number? [on hold]
This is my preg_match code:
preg_match("/(\d+)|(T)|(A)/", $link, $matches, PREG_OFFSET_CAPTURE, ($off-30)
It works and matches the number I want, except it only returns the first character in the ...
-1
votes
0answers
59 views
Can MVVM be implemented in PHP?
I read MVVM was started by Microsoft and has lately been adopted by some in the Javascript community. I cannot find any examples in PHP.
Can MVVM be done in PHP?
Can someone provide and example?
-3
votes
0answers
35 views
How to track internet usage? [on hold]
How do Desktop Applications such as KidLogger, RescueTime or Track4Win log website usage and how would I go about building something similar to them?
I am not sure where to start when it comes to ...
-2
votes
0answers
25 views
vb.net problem with sql update command [migrated]
I'm looking for some help trying to figure out why I'm seeing a SQL error on an update command within vb.net, noting that my SQL experience is very limited.
I'm in the midst of building a profile ...
11
votes
8answers
1k views
Is method overloading anything more than syntactic sugar?
Is method overloading a type of polymorphism? To me it seems like simply the differentiation of methods with the same name and different parameters. So stuff(Thing t) and stuff(Thing t, int n) are ...
1
vote
0answers
146 views
Why does the .NET framework have no concept of classes as first-class types?
It's well known to those familiar with the history that C# and the .NET framework started out as essentially "Delphi rewritten to feel like Java," architected by the chief developer behind Delphi, ...
0
votes
0answers
18 views
understanding evaluation function [on hold]
I am developing a chess program. And have made use of an alpha beta algorithm and a static evaluation function. I have successfully implemented both but I want to improve the evaluation function by ...
0
votes
1answer
23 views
The ViewController design in iOS vs MVC in tradiational web apps design
As I came from the background of webapps and move to iOS programming, I am wondering why we can't just apply the MVC design approach to native apps,
i.e. in iOS, the view and controller are tightly ...
-4
votes
1answer
86 views
Try and catch error trapping, why is it so significant? [duplicate]
I try to understand why should I "try" a method to catch errors.
It looks to me like the concept is: "letting a process run assuming its not properly
developed".
Should I always assume that a ...
-1
votes
0answers
20 views
Cross-platform mobile development: build for Windows first? [on hold]
I'm planning to build a cross-platform mobile game using Xamarin. How far would I be if I first developed a prototype version of it in Windows using C#/.NET and structuring the desktop application ...
0
votes
3answers
106 views
protect purchased games to be downloaded on other pc
I want to make a downloads managing system on my website, that when you purchase a download, you can always re-download it again for free. (i have read that Steam does something similar)
The problem ...
-1
votes
0answers
25 views
Preview hidden options on web sites
I want to have hidden options on my web site and be previewed only when the user chooses. I want to animate them from left and right (about 15%). At the moment I have them visible in my html but with ...
0
votes
0answers
26 views
How to remove CRUD operations from Entity Class
Trying to get my head around removing dataStore access from my entity classes.
Lets say I have an AccountsGroup entity class.
I put the all DBAccess into AccountsGroupRepository class.
Now should I ...
1
vote
2answers
121 views
How to know whether to create a general system or to hack a solution
I'm new to coding , learning it since last year actually.
One of my worst habits is the following:
Often I'm trying to create a solution that is too big , too complex and doesn't achieve what needs ...
-1
votes
0answers
5 views
Event notification for ::SCardListReaders() [migrated]
In the PC/SC (Personal Computer Smart Card) Appln, I have (MSCAPI USB CCID based)
1) Calling ::SCardListReaders() returns SCARD_E_NO_READERS_AVAILABLE (0x8010002E). This call is made after OS starts ...
-3
votes
0answers
28 views
designing of cows and bulls game [on hold]
I need to design cows and bulls game(offline game).server side of the program should be written in python and client side should be in c++.i should not use any database connections.i should use only ...
-2
votes
1answer
67 views
How to implement a genetic algorithm with distance, time, and cost
I want to make a solution to find the optimum route of school visit. For example, I want to visit 5 schools (A, B, C, D, E) in my city. Then I must find out what school I should visit first, then the ...
1
vote
0answers
64 views
Which programming idiom to choose for this open source library?
I have an interesting question about which programming idiom is easier to use for beginner developers writing concrete file parsing classes.
I'm developing an open source library, which one of the ...
2
votes
1answer
44 views
Security Pattern to store SSH Keys
I am writing a simple flask application to submit scientific tasks to remote HPC resources. My application in background talks to remote machines via SSH (because it is widely available on various HPC ...
-1
votes
0answers
37 views
Custom edit box - how to do it? [on hold]
I'd like to create a new text editor with some non-standard capabilities for the edit box where you would normally type your code (and do syntax highlighting). Since I'd like to have complete control ...
-8
votes
0answers
94 views
Need a solution to store images (1 billion, 1000,000,000) which users will upload to a website via php or javascript upload [on hold]
I need a solution to store images (1 billion) which users will upload to a website via PHP or Javascript upload (website will have 1 billion page views a month using Linux Debian distros) assuming 20 ...
-1
votes
1answer
82 views
Is it legal to reuse libraries of some one who develop a project for you
I am a freelancer web developer. I developed a project to some company and I used my own libraries to make it easier to retrieve data from the database. Is it legal for that company to reuse my own ...
-4
votes
0answers
28 views
What are the new advantages & benefits of PHP? [on hold]
I need your help to know about the benefits of PHP. If anyone have valuable source, share it here
Thanks,
Susanna
3
votes
3answers
183 views
How would you rewrite/refactor this ? [duplicate]
Old application that is used by 50-60.000 paying customers.
Company is several hundred people big.
Application has a lot of business critical code (30% of all code) written in classic asp.
Application ...
0
votes
4answers
81 views
Developing configuration syntax - best practise/rules/methods?
I am currently developing a small application, which checks if provided data meets certain requirements. The requirements are actually a long list, and might be changing, so I defined a syntax which ...
-4
votes
0answers
35 views
Can Associates Degree graduates in Software Development get jobs? [on hold]
I m a Software Development major in an Associates of Applied Science degree in Software Development and I ll have a 2nd Associates of Applied Science degree in Information Technology. I m 37 ill be ...
-1
votes
1answer
113 views
What technical test should I give to a job candidate [on hold]
I have three candidates coming in tomorrow. One has 15 years of experience in PHP, and the two others have about 1 year of experience in PHP/ frontend development.
For the last ones I was thinking ...
0
votes
1answer
77 views
Finding “spare time” in a day from within a list of events
I have a list of events which is always sorted chronologically. The start time is always followed by the end time. Times are strings formatted as 'HHmmss'.
// list of events
var events = [
...
-2
votes
0answers
38 views
When to to use which - Interface vs. Abstract Class? [duplicate]
This is a very common problem, when should I use Interface and when an abstract class. I know the theoretical differences between these two, but its still confusing for me to decide upon when should I ...
-1
votes
1answer
90 views
Clean MVC design when there is viewer latency
It isn't clear if this question has already been answered, so apologies in advance if this is a duplicate :
I am implementing a game and trying to design around a clean MVC pattern - so my Control ...
0
votes
0answers
4 views
redimension multidimensional arrays in Excel VBA [migrated]
Take a look at the following code. What my problem is is that I can't figure out how to redimension the n integer and the b integer. What I'm doing is the array sent1 is already working and it is ...
-1
votes
0answers
16 views
Trying to Integrate Five9 and Apptivio [on hold]
Five9 is a calling system application and Apptivio will be used to store client information for purchased products. Specifically what I need is an example code that will allow me to access Five9's CRM ...
-4
votes
0answers
28 views
scrapy cannot find div on this website [on hold]
I am very new at this and have been trying to get my head around my first selector can somebody help? i am trying to extract data from page ...