0
votes
0answers
57 views

How to use a href link just like a button? Which can perform some event? [on hold]

I need the help in web programming concept. I want to create a link which will perform a login redirection. I want a reader view which will display some information To perform login we have to open ...
-1
votes
0answers
15 views

Accessing sheet in workbook ,Excel 2010 [on hold]

I have a workbook1 and a sheet1 in it. In another workbook i need to create macro to access sheet1 of workbook1. How to access the same?
0
votes
3answers
92 views

Implementing a Generic List in Java

In an effort to understand Generics in Java (and how to use them), I am trying to implement a list structure using them but have hit a wall. Scenario: Suppose there is some classes (we'll call them ...
0
votes
0answers
13 views

complex jQuery Selector [migrated]

I'm creating a directive, and i'm having piece of code that cause me lot of issues, i recently think hey i fix it, but it's only when you are on root application... i have a custom tag, let name it ...
0
votes
2answers
136 views

Design Patterns: What design pattern should I use for the following? [duplicate]

I am trying to write an utility which traverses through a list of files and searches for a string in each file. On finding the string in a file, I will add it to a list and display the list. Which ...
-1
votes
0answers
19 views

Error in c++ code -Templates [on hold]

I get an error in this following code.where is the error in this following code.and please explain a bit. template<class T1,class T2> T1& MinMax(T1 t1,T2 t2) ...
0
votes
0answers
41 views

Only one case of base class function member executing on derived class object [migrated]

I have a derived class Circle of base class Shape, where each class has its own print, collide, merge, type, etc functions. I instantiate a bunch of Circle objects and put them into a container (its a ...
0
votes
0answers
20 views

Getting confused with some concepts of Racket programming language

I use Dr. Racket to learn SICP. After writing some Racket codes, I find that I am getting confused with some concepts from Racket documetation. What I have understood is (maybe it is wrong, so I hope ...
1
vote
1answer
69 views

How to handle design changes for auto_ptr deprecation in C++11?

We are testing a library under C++11 (i.e., -std=c++11). The library uses auto_ptr and this pattern: Foo* GetFoo() { autoptr<Foo> ptr(new Foo); // Initialize Foo ...
2
votes
2answers
108 views

How to avoid god controller classes and keep single responsibility principle?

The task is to make a migrator from Old DB to New DB using OOP Single Responsibility Principle. My problem is how can I make this without making the controller a God Class or breaking the single ...
7
votes
5answers
210 views

How to promote code review as an employee?

I have just graduated not long ago and started to work in a startup company for almost a year. I have introduced git to my current company and they are now happy to use it for version control. I feel ...
0
votes
0answers
15 views

Adding browser automation test into NUnit continuous integration [on hold]

My question is about browser automation tools. I would like to be able to create an automation for a bug, then take the generated script for this automation (maybe if i need to change some items ...
2
votes
1answer
125 views

Good Coding practice with respect to interface versus class versus super class

I am currently reading the following tutorial and have gotten up through here http://docs.oracle.com/javase/tutorial/java/concepts/interface.html Maybe I should not be thinking about this question ...
-3
votes
1answer
54 views

How to customize Chromium browser from source code [on hold]

Customizing Chromium includes fixing homepage, removing address bar, .etc. Is it possible to modify the source code or using some compiling options to achieve these goals?
3
votes
0answers
51 views

Which is the preferable design for my Gateway?

I'm writing a Gateway class that extracts information from a HTML document. One of the responsibilities of the class is to traverse a table in the document and extract data from its rows. I'm trying ...
1
vote
1answer
48 views

composer is self-described as inspired by npm, so why does it handle sub-dependencies differently? [on hold]

As I'm sure anyone reading this knows, the default behavior for npm is to install sub-dependencies within their respective sub-dependency directories themselves (in a new node_modules directory). The ...
2
votes
1answer
174 views

Is there a better algorithm to distribute integer to X integers minimizing their difference?

Is there a better algorithm to distribute values from one source to X destinations minimizing their difference? I have some source integer. I need to know how much of that value I need to distribute ...
-4
votes
0answers
36 views

Windows custom lockscreen program [on hold]

I'd like to create a windows application that locks my screen, I want the program to have the same functionality as this program but I want to add functionality to it so I can play custom sounds and ...
3
votes
1answer
69 views

Structuring a Python Project: Need some guidance

I currently am working on a project that involves several discrete components that have some common functionality, and I am in need of some advice. Right now I have a central component responsible ...
0
votes
0answers
37 views

Foreign currency processing

We are looking to expand our e-commerce store to allow customers in countries outside of the United States to shop and see prices specific to their region. The prices are not just straight markups ...
0
votes
0answers
77 views

Is it possible to miss a connection?

I'm writing a simple asynchronous tcp server & client program and I am curious if it's possible that the method "waitForConnections" misses a connection because it's still busy with accepting the ...
-4
votes
0answers
41 views

I have the BS in CIS degree (2002) but never worked in IT, is it too late to begin again and where should i start? [on hold]

I have the BS in CIS degree (2002) but never worked in IT, is it too late to begin again and where should i start? when i graduated to DotCom bubble had just burst and i had a family to support now i ...
-4
votes
0answers
76 views

Javascript entry-level interview [on hold]

I like to program and have been in pursuit of a developer career. I have some basic knowledge in most programming languages out there like C++, C#, Java, PHP, Python, etc. I also know HTML/CSS and ...
0
votes
1answer
25 views

Optional text qualifier in CSV file as input to SSIS package

I receive several CSV files each quarter to process through an SSIS package, and the formatting is inconsistent. This quarter, I encountered what I term optional text qualifiers--text qualifer of ...
0
votes
1answer
63 views

How should I re-license the scaffold code for my new application? (it is licensed under MIT)

If you notice the following scaffold starter kit source code is licensed under MIT throughout the code base. Even the configuration file contain a header of MIT licensed by the creator. Assuming, I ...
-1
votes
0answers
24 views

Live feed statistics to website [on hold]

I am trying to create a live display of all of my analytics accounts such as Twitter, Facebook, GPlus, Google Analyitics and a few others. The idea is to display all of these on a personal area of a ...
0
votes
1answer
90 views

Is service layer obligatory? [on hold]

I am going to implement not big web application and it seems that there are not (or almost not) any business logic in it. Only CRUD operations + some filters + security. So the question is -Is it ok ...
1
vote
1answer
30 views

Serial communications: how to verify that received message is a response to the last request sent?

Imagine the following situation. Two devices (master and slave) communicate with each other using any serial protocol like Modbus or HDLC or custom-made one. Master device sends a request to the ...
-1
votes
2answers
186 views

Why is it so difficult to read code? [on hold]

Give me a task, and I deliver. If you want an app that does this and that, I can fix that for you. But if someone else does the job, and shows me the code, I am often lost. It is very difficult for ...
-1
votes
0answers
19 views

How can I estimate the server load per user for a streaming application before I launch it? [on hold]

What methods exist for calculating / predicting server load per user before the application is launched publicly? I'm using a node.js back-end on an Amazon EC2 Linux server. I need to calculate ...
0
votes
0answers
43 views

Where's the architecture layer diagram for the .NET Framework 4.6? [on hold]

This diagram for .NET Core is very instructive (from Microsoft). Is there a parallel diagram for the .NET Framework 4.6?
2
votes
0answers
54 views

What's the right way to approach validations? [on hold]

I'm a rails developer, and have noticed that while defining validations I find myself confused about the scope I'm trying to cover. For example, I have basic cases where a field of data (ex: name, ...
0
votes
0answers
16 views

How to specify file type while saving the file by using “save as” menu item in netbeans [migrated]

How to specify file type while saving the file by using "save as" menu item in netbeans. I can see only "all files" for saving the files in an drive. But i need to include the file extension, while ...
2
votes
1answer
29 views

Transform Either types in Scala

I have an Either type e.g. Either[A, B] but I want an Either[X, Y] by using two functions A => X and B => Y. I can do that with fold: val myEither: Either[A, B] = ... myEither.fold( a => ...
1
vote
2answers
36 views

Which style to use for features that are not directly driven by humans when using BDD Gherkin language?

Should they be written same way as human workflows, first person "I have entered..." style language etc.? Is the user effectively a gender-less "AI"?
0
votes
1answer
53 views

Should I put the parameters in constructor or in method? (Python 3)

I have the following code: def __init__(self, vocable_file_path, xsd_file_path, word_list_file_path): self.vocable_file_path = vocable_file_path self.xsd_file_path = xsd_file_path ...
1
vote
2answers
95 views

Is there a better pattern than multiple inheritance here?

I'm working on a server implementation for a large game with many gametypes. There are several kinds of interactable entities: players, monsters, objects, vehicles. All entities share the same base ...
1
vote
0answers
32 views

Packing open source software alongside a commercial software

I'm creating a commercial web-app and to avoid compatibility issues between operating systems and browser I want to pack a portable chromium alongside my software and to use it to run the app. GPL2 ...
-5
votes
0answers
46 views

Auto Moving Objects using Java [on hold]

Hi guys i am new to this field, but i am willing to learn java. So i have chosen games to learn java i am developing a game called Shooter, which requires images to move in its own...... So someone ...
80
votes
14answers
11k views

How to stop thinking in terms of code? [on hold]

I am a C++ developer at a fairly large organization which has a huge codebase. During the last 6 months since I joined, my mentor has always told me this every time we met for design reviews or ...
0
votes
1answer
157 views

Why is 'continue' the keyword for skipping the rest of the loop iteration? [on hold]

Many programming languages contain a 'continue'-keyword, which is used to skip the rest of a loop body. I've always felt like this was a misnomer, since IMO the term 'continue' in real life refers to ...
0
votes
0answers
4 views

initializing 'CGFloat *' (aka 'float *') with an expression of type 'const CGFloat *' (aka 'const float *') discards qualifiers) [migrated]

when I try to get the components of CGColor with following code: CGFloat *components = CGColorGetComponents(customizedCGColor); I get the warning of "initializing 'CGFloat *' (aka 'float *') with ...
0
votes
1answer
30 views

When is background-image not wrapped in: url(); [on hold]

In CSS you declare a background-image by wrapping it inside a url('') ... is there an example when you don't need do this and if not why does it even exist? Even when you're using base64 you still ...
0
votes
1answer
32 views

Sending Form Data and Image? [on hold]

What is the way to send form data and image(s) to an http-server ? Should I go with Multipart/Form-Data or add the image content as a value to the json data with some key ? What are the ...
3
votes
4answers
131 views

Design strategy for wrapping exceptions

I'm implementing a type of Repository for a framework/library that has (roughly) the following: public interface FooRepository { boolean contains(String id); Foo fetch(String id); void ...
-1
votes
0answers
84 views

How to compare numbers in a file? [on hold]

What I would have to do to search a file (file.txt for example), and compare its values with the ones I'm asking the user to input. There will be numbers in the file already(production orders) and i ...
0
votes
1answer
112 views

How can I learn algorithms? [on hold]

I just took a coding challenge on a popular coding challenge site which gives you a problem and a fixed amount of time to solve it. I've been writing software for around 10 years, good software for ...
0
votes
0answers
49 views

A callback for when data is received?

So, my understanding is that the Kernel could receive TCP at any time, and that generally a C program asks the Kernel synchronously/asynchronously if it has data available. Would it be possible for a ...
0
votes
0answers
36 views

Nested website navigational menus [on hold]

So, I have created a website that has a navigational menu made up of nested unordered list elements. For example, <ul> <li>Home <ul> <li>About Us</li> ...
-1
votes
0answers
19 views

Rpy2 - install and configure it [on hold]

I dowloaded the zip file rpy2. I'd like to use some function of R statistic in python. How can we install and configure it, in order to import it in a file or module of python please? Thank you for ...

15 30 50 per page