-1
votes
0answers
5 views

Removing a div while scrolling

What I'm trying to do is remove the <header> of a page while scrolling. I think I've got an almost perfect solution - jsFiddle. And here's the code: var scrollPoint = ...
-1
votes
0answers
5 views

Third Party web controls and tight coupling

Third Party controls are for productivity I have used Telerik asp.net controls, especially the RadGrid because it makes it easier to do CRUD. They have fantastic controls. I thought I would do the ...
0
votes
0answers
16 views

Best Class Design Practise, should foreign key “roomID” of a Table “Event” become an embedded Class “Room” in class Event?

Ok, in Db i have a Table Event & a table Room. Each room can has many Event. Room table roomID-roomName 1 - cafe102 ... Event table eventID- Time -type -roomID 1 - 11:20 - 1 - 1 ... ...
2
votes
0answers
91 views

Accuracy of “calculator algorithms”

I am building a library class that provides functionality for mathematical operations on BigDecimals (and a few on BigIntegers). Now, BigIntegers are quite easy to master and pleasant to use. ...
-2
votes
0answers
11 views

Code beuatifier converting const int -> int const and training return type [on hold]

Is there any beautifier that can do more than just indent and add braces? I would like to convert C++ code to use the Type const style rather than const Type use C++11 trailing return types ...
-1
votes
0answers
14 views

Optimize Array interleaving in PCM memory

Problem: PCM memory is phase change memory which read opertions are a little bit more costly than DRAM but writes are comparatively costlier than writes in DRAM. I need some possible directions to ...
1
vote
1answer
147 views

Is there a name to this coding practice shown in the example?

Take a timer in your hands, then have a look to the following code. What is it doing? foreach (var summaryOdd in odds) { var category = new PlacedCategory(); var eventId = ...
0
votes
0answers
57 views

C++ Chess board design and smart pointers

I wrote a Chess engine in Java and I am porting it over to C++. I am new to C++. The idea: I have a Board object which holds a 2-dimensionnal array of Piece objects. Queen, Rook, Bishop, etc are ...
-2
votes
1answer
26 views

Distributivity and Associativity for 32/64bit signed integers

I'm looking into 32/64bit signed integers and their algebraic properties. I am quiet sure that the the three operators +, - and * fulfill the distributive and associative property (integer division ...
0
votes
0answers
27 views

Functional dependencies diagram

I'm searching for the correct type of diagram in which I can see all dependencies between the functions, classes and files of my Python program (multiple files). It's for cleaning purposes. So my ...
1
vote
1answer
11 views

Patterns for creating adaptive web crawler throttling

Im running a service that crawls many websites daily. The crawlers are run as jobs processed by a bunch of independent background worker processes, that picks up the jobs as they get enqueued. Now ...
4
votes
1answer
44 views

Is there something like Creative Commons licenses for privacy policies?

I've recently read Reading the Privacy Policies You Encounter in a Year Would Take 76 Work Days and was pretty shocked that it was that bad. So I thought how this could be improved. Creative Commons ...
0
votes
0answers
16 views

How should I design an application using Ember.js to suit a given scenario?

I am going to develop an application in ember.js which is kind of a small CRM through which customer representatives can answer to queries of customers. The layout is pretty simple, I have a 3 column ...
-2
votes
0answers
15 views

How to design a self-host VS Extension system, like MS Test Framework/NUnit?

I want to write a VS Extension acting just like the built-in unit test platform, but very simple one. So that you have a custom window in which you choose an item (like a method) to run and debug. I'm ...
1
vote
9answers
583 views

Is it better to have separate functions or add more arguments to a function? [on hold]

Which is the better style to follow for say, changing the voltage on a 4 channel PSU: setChannelOneVoltage(voltage) setChannelTwoVoltage(voltage) setChannelThreeVoltage(voltage) ...
0
votes
0answers
14 views

Populate faked context for unit testing WPF ViewModels using entity framework

We're developing an entity framework based application which has about 20 different entities, with quite a lot of connections of various types (one-many, many-many etc) between them. Each entity also ...
0
votes
0answers
46 views

Why should i use a framwork to make a website if i can make it using a CMS? [duplicate]

Codeigniter it self is way lightweight compared to the wordpress. But with wordpress we are getting so much by default. We are having option to change theme, simple drag and drop from the admin panel ...
-4
votes
4answers
132 views

Why are for loops needed? [duplicate]

It seems to me that a while loop with the appropriate break statements can replace them entirely. I understand that a break statement may not feel as "smooth" as a for loop that does something a ...
-3
votes
0answers
26 views

c++ Need help with arithmetic operations [migrated]

I need to make a program that basically reads the 2 numbers that the user inputs and then displays each number by adding, diving, subtracting, and multiplying it all at the same time. This is what i ...
0
votes
1answer
37 views

Is JBPM the right tool for this?

We have a utility for monitoring directories and taking actions when files appear in those directories. It's in java and takes the form of a standalone jar which launches several threads when started: ...
-3
votes
1answer
41 views

Choosing a city to move to as a junior web developer [on hold]

I would imagine that SF and NYC are top destinations, but they are also really expensive if moving with savings that will only last for so long and your work experience amounts to only two years or ...
1
vote
1answer
28 views

Derive subset with sum between two values

I have a set of arbitrary size that contains values between 0.00 and 1.00 inclusively (there will be duplicates). From this set I need to find a subset of a specified length (N) that adheres to the ...
1
vote
1answer
33 views

How to effectively split jobs into groups for multiprocessing when the job sizes are unknown

With K processor cores, how to optimally split N jobs into groups, with each group to be processed sequentially by one processor core, when the time to process each job is unknown ahead of time and ...
-3
votes
0answers
47 views

Opinions on careers in mainframe systems? [on hold]

I'm still in school but I've had a chance to work with mainframes full time in a professional environment working with COBOL, JCL, Assembler (at school), mainframe extensions, all in all, I've been ...
3
votes
2answers
58 views

Do I have to include the license text when I GPL a web page?

I want to GPL some standalone web pages containing my Javascript/D3.js source code. How to use GNU licenses for your own software says that to distribute source code under the GPL, I should "include ...
0
votes
1answer
33 views

SaaS model, 1DB per client

The context we're building a web-based system and one of the design decisions (database related) was whether to have 1 main DB manage all client data VS having 1 DB per client. After reading a lot ...
0
votes
1answer
74 views

Progress in PHP web application design [on hold]

I have created an easy database-driven web application (with PHP+MySQL). It's written procedurally with a few controllers (index.php) in a few directories and a few template files and one stylesheet. ...
-4
votes
0answers
36 views

Development and workings of DLL Injection [on hold]

I was planning on doing a thesis on DLL Injection and the social, and ethical impacts along with the technological side of it (how it works, example of it working) and I have created multiple ...
2
votes
3answers
72 views

recalculation model for GUIs

I often come across this problem. Say to have a form with some controls: A B C = A + B D E = C * 2 ONLY IF D==TRUE F G = A - F The user fills A, then B. The system calculates C. The user fills D ...
-1
votes
0answers
36 views

should i use a framework(codeigniter) or a CMS(wordpress) in these situations? [on hold]

It is better to not build websites from scratch using native php. We should use something which is already there , used , tested by many people. For me i have only two options, for framework(MVC/HMVC) ...
0
votes
1answer
21 views

How do rails project know about rake tasks from other repositories

We have a rake task called db:sanity_check which exists in a 'core' repo. Other repositories that we have also show this rake task. But they do not define the rake task. It 'comes' from core' How ...
-2
votes
1answer
63 views

Base Class, with method that returns Derived Class. design flaw?

I'm writing a Math equation solver in python (for fun). The first design that came to my mind: Expression: base class for every item in an equation (maybe bad name). BinaryExpression extends ...
0
votes
3answers
125 views

Java Serialization for long-ish-term storage

I have an application that uses a database of about 15,000 Java objects, which I have to read every time the application starts. Originally I've been using JSON to store the data, but that has a few ...
-4
votes
0answers
41 views

How to make software gifts [on hold]

We will be at a very important international art & culture congress. The guys there are very high grade and very NON-geek. We want to give them as a gift our application (Windows, Android and, ...
0
votes
2answers
62 views

What is the normative (best) use of Javascript arguments object [on hold]

JS offers the 'arguments' object inside of functions to represent all passed arguments. Is there any broadly accepted concept for when/where this should be used? I've seen items like this in the ...
6
votes
4answers
464 views

Does internal state “leak” when it influences externally-visible behavior?

I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. ...
24
votes
8answers
3k views

Is creating subclasses for specific instances a bad practice?

Consider the following design public class Person { public virtual string Name { get; } public Person (string name) { this.Name = name; } } public class Karl : Person { ...
0
votes
1answer
94 views

Does this diagram give a good representation of the MVVM pattern?

I am having a really hard time understanding the basic structure of the Model, View, View Model pattern. I have honestly been pretty ignorant of design pattern conventions until recently. My formal ...
-3
votes
0answers
40 views

TypeScript with NodeJS or Go for easy development of a heavy I/O-bound application server [on hold]

I'm working on a new web application, which would mostly forward and route traffic towards databases and other servers, who would than do the heavy lifting with logic, ... Initial idea was to ...
1
vote
1answer
35 views

Converting from AppHarbor to Azure

I'm thinking of switching my cloud provider from AppHarbor to Azure. Main reason, I love the ability of being able to scale up the number of workers as traffic/cpu usage gets really high. My question ...
4
votes
3answers
197 views

How do I compile my software for all platforms from Ubuntu Linux 64 bit?

I write a lot of open source software that I make available on my website. How do I get my software compiled for all relevant platforms including: Windows OS X Linux 32 bit deb Linux 64 bit deb ...
0
votes
1answer
82 views

translating a list of words (word1, word2 and word3) [on hold]

We are trying to globalize an application and we have run into a situation where I'm not sure how (of if) we would go about formatting the string for globalization. It's a paragraph explaining ...
0
votes
1answer
144 views

Is class with callbacks a code smell in JavaScript?

When writing JavaScript (especially in node.js), I tend to use plain functions and callbacks. However, sometimes there's some context to share between some functions and I don't like to pass this ...
3
votes
3answers
257 views

Separating Code into Smaller Files in C

I am in the process of cleaning up my code and making it easier to maintain. I am doing this by turning my 5000+ line file into separate smaller files. I have successfully created separate source and ...
-7
votes
0answers
24 views

User applications and the kernel operate independently of each other [on hold]

User applications and the kernel operate independently of each other. Please name the applications that is not dependent on Kernel. Does it mean that,user applications run independently without ...
-6
votes
0answers
34 views

how to prompt a user to calculate numbers using different operators on one line, on console application [on hold]

i am creating a calculator but now i am struggling on to write a code that will calculate number like: 1+3*4/6-1 = ....., please help or just give me a hint i have tried this: private static void ...
0
votes
0answers
37 views

Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design

Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with it even though we try ...
-3
votes
0answers
38 views

Should i use visual studio 2013 if i am going to use WPF? [on hold]

I read that WPF is still in development and updated frequently so i want to use the most up to date version. Do i need to use VS 2013 or can i somehow update WPF on my 2010 to the latest version? If ...
2
votes
2answers
120 views

Decision making and maintenance

I'm trying to find an elegant way to implement a decision making algorithm that allow easy maintenance because the conditions for the decision making might change often. I'm going to try and be more ...
-3
votes
1answer
74 views

Illustrate Meaning of : gcc -g programName.c

To debug a C program using gdb effectively it is required to compile it first using the command: gcc -g programName.c otherwise on using simply gcc programName.c and running we are unable to ...

15 30 50 per page