1
vote
0answers
10 views

Nested website navigational menus

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> ...
2
votes
2answers
22 views

What are the most common - real world - applications of lambdas in Python?

Most tutorials on Python lambdas show examples like the one below. >>> sentence = 'It is raining cats and dogs' >>> words = sentence.split() >>> print words ['It', 'is', ...
0
votes
0answers
5 views

Rpy2 - install and configure it

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 ...
-1
votes
0answers
14 views

Intersection of two arrays

While solving problem abcdef on spoj i came across this code for intersection of two sorted arrays Here is the link to problem http://www.spoj.com/problems/ABCDEF/ The code sort(s1.begin(), ...
0
votes
0answers
5 views

dynamic api code generation in nodejs

We are using nodejs and cassandra for backend stuff. In past few months we wrote same CRUD code for different apps. I am thinking of some way to automatically generating CRUD code. I came across ...
0
votes
1answer
25 views

Extensions on Visual Studio 2015 Express [on hold]

I used to install some extensions on VS Express 2013. We were using it to create some internal tools, one of them was Web Essentials. I wanted to start using VS Express 2015 so I could use the new C# ...
-1
votes
0answers
15 views

Accessing large lists of words PHP Array or MySQL

I'm creating an application that grabs a list of words, and mashes them together. Example: Hello, World, Coding Output: Helld, ingdld, Codrld I want to have many lists of words. I originally was ...
-2
votes
0answers
12 views

Excel and Graph Labels [on hold]

Suppose I have the following data: Name: Height (cm) Number of Countries Visited John 155 12 Jason 162 9 Jack 153 5 Using Microsoft Excel 2013, ...
2
votes
1answer
76 views

What would be a reason not to embed JS in C?

I'm working on an opensource application that processes JSON in C, because I would like to make it easier for people to help me in the project and because JSON is so close to JS. I want to embed a JS ...
0
votes
0answers
16 views

Queries regarding getting a job as a software developer [on hold]

I'm Computer Science Fresher and is looking for a good job in software devlopment. I know topics like Core Java, C++, data structures, SQL etc. I have following queries - 1) Should I learn ...
-1
votes
0answers
12 views

GridLayout of colours [on hold]

I want to create a GridLayout 6 rows and 3 columns.Every element in grid is a different color. And I want to use wrap_content in the layout to show the rectangle coloured shapes. As I am using ...
0
votes
0answers
24 views

How do I update the news on a news site?

I'm trying to create a small news site as a project over the summer and I wondered how bigger news sites goes about updating the news stories without needing to access the code and add it manually. Is ...
1
vote
1answer
18 views

Behat/Mink: best practice for testing strings in a web application's GUI

I'm writing acceptance tests for a web application using Behat/Mink. I want to know best practice for testing strings in the GUI. For example: say I want to test that a link exists on the homepage ...
-3
votes
0answers
50 views

What must modern web sites have in order to be competitive? [on hold]

It's been more than ten years since I last programmed a commercial web site for anyone, having been focusing more on open source projects, web apps and intranets. But now I got a job where I must ...
-5
votes
0answers
15 views

Is there a tool to improve asp .net web forms automatically change control size [on hold]

I have some web form in asp .net .controls of webform had not size and arranged very well .Is a tool for optimizing size and position control Web forms automatically change there
-4
votes
0answers
51 views

Where can I find a compiler [on hold]

and tried looking for a c compiler. I have tried GCC which is now GNU I think now, but did not seem to work is there any advise people can give to some just looking to start out thanks Hayden
5
votes
2answers
112 views

Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?

In Haskell, I can use the type a -> Maybe b to model a function that either returns a value of type b, or returns nothing (it fails). If I have types a1, ..., a(n+1) and functions f1, ..., fn, ...
0
votes
0answers
17 views

Delete data using Flyout C# XAML [Windows Phone 8.1]

XAML : <Grid x:Name="cardgrid" Height="0" Width="486" VerticalAlignment="Bottom"> <StackPanel x:Name="card"> ...
-2
votes
0answers
13 views

java.util.ConcurrentModificationException while removing items from collection [migrated]

I am learning Java's Collection framework. I wrote this little program to check why we can't use For-each to remove elements. Code: import java.util.ArrayList; class intro{ public static void ...
0
votes
0answers
25 views

Is there an analytics tool that does not sample?

After learning to google analytics samples data, I'm looking to find a tool that does not present sampled data – and thus is viable for low usage volumes. Some web apps have low usage but high value. ...
0
votes
2answers
131 views

Java difference between String a = null and String a = new String()

It a pretty naive question to ask but I got this doubt while programming for android. I use to initialize my new strings like String a=null, so in my code there remains a probability to get ...
4
votes
1answer
86 views

How can I add properties to subclasses and access them without casting from a superclass?

I'm trying to model a multi-dimensional point class in C#. I have about eight different types of points, and there may be more in the future. Right now, I have a superclass (PointBase) that holds all ...
2
votes
1answer
29 views

How to handle a project in git with the same code but different templates?

I have a project where the only difference are the templates. The question is how should I manage this with git now? At the moment I have 3 different git Repos, but it's hard to maintain all 3 of ...
2
votes
0answers
30 views

Tricky RegEx Lookforward Problem For URLs

I have URLs I am trying to rewrite using apache's mod_rewrite so that authorizations work correctly. Thus I need to be able to use RegEx to match a specific pattern: ...
1
vote
0answers
35 views

Domain driven design with eventual consistency

My domain aggregate is struggling with simple business logic so I feel like I have modeled it incorrectly. The architecture I have right now uses domain driven design with event sourcing. The domain ...
1
vote
1answer
73 views

Web framework in pure SQL

I heard that SQL is Turing complete language (for example: http://stackoverflow.com/a/7580013/2604170) I am just curious if would be possible to create independent web framework like Ruby on rails or ...
0
votes
2answers
58 views

Testing Scenarios More than Once

Is there an industry standard in how many times a scenario is tested before it is considered passed? Is it common to test a given scenario using multiple different records? Here is the issue: A ...
4
votes
1answer
90 views

Dependency Management in the real world?

Most of the examples i've see when watching anything on dependency management hit what i consider to be the holy grail in that the only dependencies on classes are interfaces that the IOC container ...
0
votes
0answers
31 views

Why should I use a Dockerfile instead of a batch script?

I'm new to Docker and feeling my way around. My plan is to build a typical web app using Nginx+Rails+Postgress, all of which will be in the one container. I'm not (currently) doing anything complex ...
2
votes
0answers
55 views

How do I test with multiple input combinations?

I have a piece of code that I need to test, which is layered in three parts: Web API Controller Persistence/Logic Layer System calls for persistence It's the basic GET/POST/PUT/DELETE call system. ...
10
votes
6answers
2k views

Is throwing new RuntimeExceptions in unreachable code a bad style?

I was assigned to maintain an application written some time ago by more skilled developers. I came across this piece of code: public Configuration retrieveUserMailConfiguration(Long id) throws ...
5
votes
3answers
183 views

Does it make sense to use “ys” instead of “ies” in identifiers to ease find-and-replace functionality?

Although grammatically incorrect, when writing identifiers for functions, variables etc. does it make sense to simply append an "s" to plurals of words ending in Y? My reason for this would be that if ...
0
votes
0answers
16 views

SPA with RESTful backend

I'm building an app based on ng-seed which is angular setup with routing out of the box. I'm backing the app with a rest interface of which I aim for Richardson level 3 compliance. Often it seems ...
17
votes
6answers
3k views

How to work with programmer with different preference of indentation width? [duplicate]

I personally prefer 4 spaces for each indentation level, but there are colleagues that prefer 2 and even 5 spaces. We can of course use the same spaces level, but is there a way we can uses different ...
-5
votes
0answers
30 views

How else can I write the following code to generate C code and then the user submits a C file to the database? [on hold]

How else can I write the following code to generate C code and then the user submits a C file to the database? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
0
votes
0answers
20 views

What is prerequisite for Algorithm and Data Structure Analysis and Designing [on hold]

I want to learn Programming, So I want to start this learning program with studying of the Introduction to algorithms book. I'm familiar with C, C++ and ASM Language a little bit, but I can't write ...
1
vote
2answers
55 views

API with limits vs site crawling

I started working on a website,for tracking and rating watched anime/manga/etc. and recommendations, and it should also have an API, for providing the info about series and other things. On similar ...
0
votes
0answers
58 views

A Standard Coding Guideline [on hold]

I have been programming in C, C++ and a few other languages for more then 15 years and been switching companies over that time. I have faced one constant problem, that being the requirement for a ...
-4
votes
0answers
14 views

Ruby on Rails : create web GUI for backup program [on hold]

I'm learning Ruby on Rails these days. Recently I need to create a web application to monitor backup program on Debian Linux, I wonder if it's good idea to create a GUI for it using Ruby on Rails? I ...
0
votes
0answers
10 views

Controller technique with request data in session

I am trying to find out the best possible way to save the POST data in session and making it available in different page requests. For example at website's homepage I have a Search form with ...
12
votes
3answers
1k views

Class with members that are mutable during creation but immutable afterwards

I have an algorithm which creates a collection of objects. These objects are mutable during creation, since they start out with very little, but then they are populated with data in different places ...
0
votes
0answers
40 views

Pointers vs IDs for “context-specific” functions

I need to be able to load, use, and free resources from a single monolithic object. I have two requirements: 1. That the resource loaded is owned by the object that created it and 2. All objects in a ...
-5
votes
0answers
28 views

Object Oriented Programming help [on hold]

I have two classes A and B in android programming, class B extends from class A and implements view.onclicklistner, class A is my base class which is extends from Activity. Now i am trying to ...
3
votes
2answers
66 views

Shared domain model between different microservices

Imagine a scenario of two different microservices. One to handle Authentication within the service, the other one takes care of User Management. They both have a concept of a User, and will talk about ...
-3
votes
0answers
16 views

Please recommend an IDL/RPC framework that works with Java and Python [on hold]

I'm looking for a framework that supports RPC from Java to Python, where the message format can be defined via a simple IDL. My requirements are: Must be high performance Must support streaming ...
1
vote
2answers
52 views

Is it valid to expect/throw an exception using a custom caching system?

Imagine some code like the following: class Cache { private Map<String, String> values = new HashMap<String, String>(); public String getFromCache(String key) { if ...
5
votes
3answers
97 views

What is the most accepted transaction strategy for microservices

One of the major issues that I have seen occur in a system with microservices is the way transactions work when they span over different services. Within our own architecture, we have been using ...
2
votes
2answers
52 views

Incorporating functions into a Shunting-Yard algorithm implementation

tl;dr What would be a simple way of incorporating functions into a Shunting-Yard algorithm implementation? If only expressions like function(arg1, arg2, arg3) were allowed (where function is some ...
-3
votes
0answers
91 views

Can My Algorithm be Patented [on hold]

I developed an algorithm that runs about 1000 times faster than the standard version found in other platforms. I did this while I was doing some work for my company. Is this algorithm patentable? If ...
0
votes
1answer
47 views

Should HTML or CSS files count toward a “lines of code” metric? [on hold]

I was asked how many lines of code my web application contains. Is it appropriate to include presentation layer/template files such HTML and CSS files in this count? (Note that I am not able to have ...

15 30 50 per page