0
votes
0answers
8 views

Executing ajax calls in setTimeout after set intervals?

We develop an application involving a lot of ajax. Such as showing users notifications, updating what they see via ajax while they are on the web page. This update is due to the actions of other users ...
0
votes
2answers
37 views

Does the pattern of passing in one object instead of many parameters to a constructor have a name?

If you have a constructor that takes a lot of parameters, like this: public OrgUnitsHalRepresentation(List<OrgUnitSummaryHalRepresentation> orgUnitSummaryHalRepresentationList, int count, ...
-3
votes
0answers
10 views

I want to upload multiple images into database [on hold]

I want to store multiple images in database in one column using php. I tried this code <html> <head> <title>more option in shop detail register form </title> </head> ...
1
vote
1answer
15 views

How does a stack VM manage with only one stack?

Lately I've been asking a lot of questions here about VMs. Here's another one: I understand that often stack based VMs use only one stack - the call stack - for everything. E.g. it is also used for ...
-4
votes
0answers
17 views

how to disable copy paste option in web page [on hold]

In a particular web site how to disable copy paste option in a particular textbox and body also not allow to access mouse right option?
0
votes
0answers
17 views

Open Source-Only license

I want to know if a license exists that is similar to GPL but allows only source distribution (that is no binary distribution). Why do I want this? The idea is that I want fellow programmers to be ...
-3
votes
1answer
37 views

How should I approach a project?

Often, when I start working on a project, I have to choose between two things: code the program and add a layout later first make a layout which does nothing yet and integrate the code with it For ...
0
votes
0answers
30 views

What is the legal status of WSDL files and the generated code from it?

I know this is more in the line of legal advice, but maybe somebody still has some insights. It comes actually down two two slightly different questions. The background is that I want to develop an ...
0
votes
0answers
29 views

Using Number() vs. parseInt() to do type conversion? Which should I use when?

For type conversion, when should one use the primitive wrapper Number() and when should one use parseInt()? I'm aware that parseInt() allows you to specify a radix, will truncate decimals so that ...
0
votes
0answers
14 views

How do I ensure my site will be crawled when articles are generated by the database?

I wasn't sure how to ask the question. But basically, it's a textbook scenario. I'm working on a site that's article based, but the article information is stored in a database. Then the page is ...
8
votes
2answers
610 views

Why Increment Pointers?

I just recently started learning C++, and as most people (according to what I have been reading) I'm struggling with pointers. Not in the traditional sense, I understand what they are, and why they ...
2
votes
1answer
53 views

Is fee-splitting/referral fees ethical in the software development industry?

I have a background in the medical field and I was taught to never engage in any fee-splitting (mostly when referring patients) because it would be a breach of fiduciary duty to my patients and ...
0
votes
1answer
45 views

Commercial Apps with an Open Source on github

I am going to be launching a small web service soon and was wondering if it's a good idea to upload the code to a public github repo. The code will not be licensed for commercial use but the public ...
0
votes
0answers
5 views

How can I rate or tag files that aren't images in Windows 7? [migrated]

In Windows 7 it is possible to rate images or tag Word-files. Since I'm reading a lot on my computer, I would like to mark pdf files I've already read. The image-rating-option would be great and so ...
0
votes
0answers
8 views

Problem with PHP login [migrated]

I'm trying to code a easy PHP login but I have a problem with the user/password checking. The code is: $host="localhost"; $username="root"; $password="pass"; $base_de_datos="usuarios"; ...
5
votes
3answers
185 views

What would the register-machine bytecode for this code look like?

I hope this kind of question isn't off-topic on this site. I'm finally getting the hang of what a stack based machine is, and how to compile code for it. For example, the following code: 2 * 5 + 1 ...
-3
votes
2answers
63 views

Java object oriented programming style

I've noticed that a lot of the code in this java book i'm reading uses methods to execute code instead of directly writing the code in the class. Is that what object oriented programming means or is ...
1
vote
2answers
79 views

How can I figure out if another project is mostly maintenance and bugs?

I started working in a relatively big company that unfortunately has its share of quite a lot of legacy code and I ended up spending an extra ordinary amount of time in maintainance and bug fixes. ...
1
vote
1answer
32 views

Passing Anonymous Type to a Bound Control

Generally speaking, I'm fairly opposed to the use of anonymous types in real-world code (except in LINQ and some other specific scenarios), but I'm looking right now at a situation where I need to ...
0
votes
0answers
15 views

Passing configuration to a handler

I'm building my own JET Parser and one of the things I am trying to do as per the JET specifications is to allow changing of the start and end tags from the default <% and %>. Right now I have ...
-1
votes
2answers
97 views

Keeping large class level objects out of memory

So far my program is taking 1.5 GB of RAM to run and I am afraid the hospital client that have old computers might get out of RAM issues or super slow performance. Well actually if it takes 3 hours to ...
0
votes
1answer
16 views

Long running task initiated in the web site

The plan is to develop generic solution for long running task initiated in web site by users such as: 1. upload large file and do some custom processing and then insert in the database. 2. export ...
0
votes
3answers
50 views

Structuring an application that reads from a .properties file

I have a Java app with three classes: Foo, Bar and Baz. All three depend on a bunch of what are currently constants defined in each class in order to determine how to run. On top of that, Baz ...
0
votes
1answer
55 views

What time should be recorded against story points in order to determine velocity and hours per point

We recently tried to correlate the hours spent on a sprint against the stories assigned to the project (to try and get an idea of velocity and hours per point). However our recording system only ...
3
votes
1answer
95 views

How should I recursively process a file in Haskell?

Basically I'm expanding a literate program in Haskell. There are two things I need to look for to expand. Here's an example file: program.c.lit: ============== Some comments in the source file that I ...
-5
votes
0answers
29 views

Arrays in Fortran [on hold]

I was trying to plot y=sin(x) but I made a mistake somewhere in my code and I can`t get any data for y. I get zeros both for y and x. Can you help me in identifying the mistake please? program ...
-5
votes
2answers
52 views

Why use database versus a data structure? [on hold]

Why is it better to use a database with web server instead of using a data structure on the actual web server for a web application.
0
votes
0answers
27 views

Architecture for a messaging app

I want to build a messaging app and I'm struggling with architecture here. What I want to achieve: Rest API for registrations/login Chat server itself, i.e. app which will allow clients to connect ...
0
votes
1answer
85 views

How to tell node.js which javascript code runs on server vs client?

I am trying to learn the theory of node.js but can't seem to figure out how node.js knows whether to pre process it on the server or send it to browser for execution.
2
votes
4answers
501 views

Why would the switch from C# to scala make sense in order to take advantage of scala's functional capabilities? [on hold]

What is the benefit of using functional program for large scale software projects? I have heard it is pretty performance equivalent to regular OOP. I also have heard that it is more "mathematically ...
0
votes
1answer
34 views

Permutation tests for large sequences

I would like to perform a permutation test on a particularly large data set, i.e. around 4 million entries. Basically, I need to get some number of random permutations of this data set. Usual way to ...
-6
votes
0answers
22 views

Why does Mandrill take longer when sending mails from my domain? [on hold]

I'm using the same api for sending mails from localhost and from my hosted domain. The mails are delivered much quicker when sending from localhost. Any reason why this might be so ?
-7
votes
0answers
22 views

How do I have my navigation bar scroll down too when users scroll down. Kind of like the navigation bar never moves, it just stays fixed [on hold]

How do I have my navigation bar scroll down too when users scroll down. Kind of like the navigation bar never moves, it just stays fixed. Here's the code in question: <DOCTYPE HTML PUBLIC> ...
1
vote
0answers
89 views

Frog crossing N lane road problem

Problem says that: There are N lanes, and the speed of each lane is given. There are many cars in all the lanes and the start position and the length of each car and its corresponding lane is ...
-4
votes
0answers
28 views

Python book with lots of examples and exercises [on hold]

I have done a course on fortran in college and I want to learn python. I would like a resource recommendation with lots of examples and exercises. More or less in the style of the C book Ritchie and ...
2
votes
3answers
51 views

How to maintain view-related information in MVVM and may I store this in the model?

I have an ongoing discussion with some colleagues on how to manage the views to our model. We've got a model which may be represented by many views. Let's say we've got some data that is stored in an ...
-3
votes
0answers
20 views

Remove portion of string TSQL [migrated]

I have a string of numbers that I need to trim a portion from using TSQL. The string of numbers will always start with a 101 then it will have a set of 0's and a set of random numbers. Example: ...
-2
votes
0answers
31 views

Programming advice with DFHack [on hold]

Me and a Friend are looking to develop a plugin for the DFHack console of the popular game Dwarf Fortess. Pretty much what we had planned out was a way to utilize multiple cursors, or a way to make ...
3
votes
4answers
306 views

When is an API considered to be an embedded DSL?

What is the difference between an API and an embedded Domain Specific Language (DSL)? Is it just syntax? Consider an API like OpenGL. How is that different from a graphics DSL? In other words, if ...
2
votes
1answer
58 views

How to define the motion path of one object on a surface of the other one?

I have an uncommon problem. There are 2 3D objects, which are represented by arrays of vertices and triangles (.stl files). Each of them contains a big enough amount of vertices: 1-10 mln ones. The ...
-5
votes
0answers
70 views

How to get back to Software programming after a 15 years break? [on hold]

i'm an old school developer comming from pascal and c/c++ in 1998 , but i'm looking for adviceon which programming language that has capabilities for this new technologies revolution
0
votes
1answer
87 views

Effective Repository in C# - Where to put methods?

I'm trying to build a new application using the Repository pattern for the first time and I'm a little confused about using a Repository. Suppose I have the following classes: public class Ticket { ...
0
votes
4answers
144 views

When copy/pasting private methods is it necessary to carry along the Javadoc?

So, unfortunately, I'm stuck with code where I'm doing this: @Override method A{ //calls private methods 1-8 } private method 1{ //copy/pasted } And so on for all of the private methods. ...
0
votes
1answer
104 views

Does lots of Instance Variables within my class suggest flawed Design?

Ok so I am setting out to consolidate some learning I have been doing. What I am going to do is create a small game relating to a game I enjoy called Persona. For reference a persona you can think of ...
2
votes
1answer
121 views

Programming by usage

Iv'e been programming for 15 years now and I often read online that it seems like a lot of people will plan out their objects and how they interact and the data they need and that seems to shape the ...
-3
votes
1answer
33 views

Considerations migrating from one platform to another [on hold]

I have a deal website running with about 50.000 transactions a year. The whole system is inherited from another deal site that I don't own, but have paid a monthly fee to use their system. This have ...
-3
votes
1answer
64 views

How to assign null to Datetime in C#? [on hold]

How to assign null to Datetime? DateTime dt = new DateTime(); Both are not working dt=null?? dt = (DateTime)null;??
-3
votes
1answer
35 views

Reverse a queue using an extra queue [on hold]

You are given 2 queues, Q1 and Q2. Q1 is already filled with n elements. Q2 is empty You have to reverse all the elements in Q1. You cannot use any other space apart from Q2. only operations ...
1
vote
1answer
297 views

Is object oriented programming ALWAYS a good way for large projects?

Is object oriented programming always the good way for all types of projects? Is this methodology the best suited for large projects like compilers, interpreters and other large systems? Most of the ...
6
votes
4answers
282 views

“Immutable” interfaces

I am confused about the notion of immutability. Consider the following structure of a simplistic calculator: Here are the interfaces: interface IOperationalInterface { int Sum(int a, int b); } ...

15 30 50 per page