-4
votes
0answers
70 views

Do you think it’s worth it to learn bash scripting in 2015? [closed]

I really am interested in getting a Linux job, so I started learning bash scripting on my own, but, I did a search recently, and found that a lot of people recommended using Perl or Python, because ...
0
votes
1answer
50 views

Comments for a class that isn't an entity

According to Java's commenting conventions, classes comments should describe a "thing", rather than "actions". It is easy when the class IS a thing (ex. a Clown), but what if it isn't? In this case, ...
2
votes
2answers
138 views

Sudoku hidden sets algorithm

I am writing a solver for the game sudoku. I am trying to implement the hidden set check in it and I can't figure out a way to do it well. I need to find out if there is a set of cells of size N in ...
-2
votes
0answers
27 views

about 2d game, side-scroller, in unity engine [closed]

after importing the character asset, when i press on the FPSinputcontroller in the inspector window, which should take me to the code sheet with colored lines , an error window appear, declaring an ...
-1
votes
0answers
21 views

What's a common approach to email notification digests (e.g. weekly summary of activity)

I'm trying to devise a process of sending daily, weekly and monthly emails. Here's what I'm thinking at this early stage: A database table "notifications" with columns: id (PK), type and data (type ...
-4
votes
0answers
20 views

not abot to get control under EditItemTemplate [closed]

I am working on .ascx control and I am calling _RowCommand Event but when I call it I am not getting the control those are inside the EditItemTemplate but I am able to get the control those are ...
-1
votes
0answers
20 views

Recommendations for PHP IOS push notifications library [closed]

What is the best library to use for iOS push notifications from a PHP server? So far I found two: https://code.google.com/p/apns-php/ https://github.com/adobkin/php-apn Any recommendations?
0
votes
1answer
96 views

Enum as singleton or fully functional class [duplicate]

Joshua Bloch claims that "a single-element enumeration type is the best way to implement a singleton" Why? I totally disagree with this statement because enumeration is data type with some ...
0
votes
0answers
21 views

GitFlow with TFS 2013, bumping versions

We have TFS 2013 only for version control, Team City for building, a Nuget server and Visual Studio 2013. Little late in the game but we haven't set guidelines for getting code from development into ...
-2
votes
0answers
27 views

Tool for diff between two projects with overall statistics [closed]

My project code is based on the one of the previous projects. I need to make statistics about: how many lines of code have changed between these two projects how many lines of code are deleted how ...
-3
votes
1answer
232 views

If-else in C++ Programming Language [closed]

I am a little bit confused about this code. Why does the else block get executed? Please explain it. int a=10,b=20; char x=1,y=0; if(a,b,x,y){ cout << "A" << endl; }else{ cout ...
2
votes
2answers
49 views

Exception messages and event logging - which tense to use?

Do you have best practices regarding to which tense to use in message when you're coding exception-throwing or message-logging code: "Could not acquire connection from DataSource" versus "Can not ...
6
votes
3answers
236 views

Designing a REST api by URI vs query string

Let's say I have three resources that are related like so: Grandparent (collection) -> Parent (collection) -> and Child (collection) The above depicts the relationship among these resources ...
4
votes
2answers
232 views

Why does Git have tags?

I've read Git branching and tagging best practices and git tagging comments - best practices, but I don't see a direct answer to something I've wondered for a long time: Why does Git have tags? ...
2
votes
1answer
68 views

How to make an interpreter for a stack of Free Monad Transformers

I like the idea of using Free monads to "purify" code and I've used it in some simple scenarios. However, I can't seem to figure out how to write an interpreter for a Free monad transformer. In ...
1
vote
2answers
55 views

Structuring data to represent a tree with squirrels

What I want to represent Let's assume I have several schemas of the following kind: It is a tree on which positions of squirrels are represented by a blue dot. The number of bifurcations differ ...
1
vote
1answer
42 views

torrent support in browser

i was thinking it would be cool to implement native torrent support in a web browser so that the following html would render an image on the page: <img ...
4
votes
1answer
50 views

Should I use exceptions to control the range of parameters in Python?

For example for the following method signature: def genClusters(n_clusters, n_nodes, cluster_distribution): n_clusters should be an integer of more than 1. n_nodes should be an integer of more ...
0
votes
0answers
2 views

Wordpress and Facebook php sdk 4.0 [migrated]

I have wordpress 4.1 with the following plugin installed: iThemes Security WordPress SEO I plugged in a function the facebook sdk. This is the code: //Footer add_action('wp_footer', ...
-3
votes
0answers
42 views

Even/Odd Positive/Negative Integer Determination in Turing [closed]

I'm writing a program for my comp. sci class where I have to determine if an inputted integer is even or odd, and if it is positive or negative. This is my code, var number_1: int loop put "Write a ...
48
votes
9answers
5k views

Throw exception or let code fail

I am wondering if there are any pros and cons against this style: private void LoadMaterial(string name) { if (_Materials.ContainsKey(name)) { throw new ArgumentException("The ...
3
votes
1answer
30 views

SASS placeholders to avoid repeated rules in CSS output

I've got a question for all the frontend guys here. First of all, this is not about placeholders vs mixins as I've already have an idea about, whether to use one or another. So the question is - do ...
1
vote
1answer
158 views

Using streams to connect programming languages

I'm trying to run a computation-heavy program that creates an image on a website. Is it possible to compute in C++ and have an output stream that connects to an input stream in Node.js to display an ...
0
votes
1answer
43 views

How can I program the script on my server to the receive a cname pointed to it?

I am in the final stages of creating a mobile responsive customer relations management platform. Presently it is written in php as a stand-alone self-installing script. I would like, however, to ...
0
votes
3answers
77 views

Heuristics on when should one subclass and when not [closed]

Are there any good tips, when one should subclass and when should not? It's clear that we should not subclass when we want to reuse a single method of some class we override all methods, changing ...
1
vote
0answers
43 views

Maximizing reuse out of a function primitive in CUDA

I'm working on the implementation of a few related algorithms in CUDA, all of which require a primitive that we'll call f(). The related algorithms can't simply call f though, as they require f to ...
0
votes
0answers
18 views

moving Data mining model from “lab” to production environment

I am designing the architecture of an analytics system . I have a data mining ensemble model developed in scikit learn . I want to move this to the production environment so the new incoming data can ...
0
votes
0answers
30 views

Login Tokens Remote DataServer for use in a Javascript/HTML-PHP environment

I've asked this question on stackoverflow, but i think this is a more appropriate place for it. I'm creating an app for iOS, Android and the Web. I created a separate Restful Data Service that is ...
-2
votes
0answers
41 views

What are the different ATA modes? [closed]

The OS Dev wiki has a page about ATA PIO Mode. But what are the other ATA modes? Where can I learn about them?
-2
votes
0answers
26 views

Plotting SQL Data on the web [closed]

I am working on a project where I need to plot data from an SQL server onto the web. I am a complete beginner when it comes to this, and was wondering if I could get some help or general advice. I ...
5
votes
1answer
109 views

How to use OO Design to Refactor a Library with Functions that are specific Product-aware

I have a class that acts as a library of functions for various products. To compute its data, the function currently needs to be aware of all product names. Depending on which product calls the ...
0
votes
0answers
38 views

What's the Difference with these Knockout Viewmodel constructors?

When creating a viewmodel for Knockout, what's the difference here? I see these different implementations and I've tried a few and some don't work the same. //the most common example. function ...
2
votes
1answer
108 views

Genetic Algorithm's Tournament Selection limit to be selected

I started working again on a Genetic Algorithm and i'm trying a lot of operators and ways of selection. When I made the Tournament Selection , I noticed that it gets really easy to always get the top ...
3
votes
3answers
231 views

Do I need use really INNER JOIN?

Imagine a coiffeur, with his services: +----+-----------------+--------+ | id | name | amount | +----+-----------------+--------+ | 1 | hair cut | 40 | | 2 | shampoo | ...
-2
votes
0answers
39 views

package management for C++ project [closed]

I am a programming student looking to apply my programming skills to develop a custom C++ project. My project is an educational software project that includes a main interface that allows the user to ...
1
vote
0answers
41 views

Downloading a LinkedIn Users CV using the LinkedIn REST Profile API [migrated]

I am wondering if it is possible to make a call to the LinkedIn API using PHP that will allow me to GET the users uploaded CV. Currently I'm working on some basic API calls that have enabled me to ...
4
votes
1answer
77 views

Mathematically correct A* heuristic / distance estimator for a latitude / longitude graph

I have a graph in which each node is a geographical point on the surface of the earth, defined by it's latitude / longitude coordinates. Correct ways to calculate the distance between two such points ...
-5
votes
1answer
48 views

how can i store data into a text or binary file from a html website [closed]

how can i store data into a text or binary file from a html website. I want to store information in my database .Can u ppl tell me how to do that ?? can you explain me how to use cloud servers for ...
-2
votes
0answers
37 views

Design pattern for Login Online and offline [closed]

I am new to Software Design patterns, I am developing an application in which user may liggedin offline or online depending on internet connectivity... so which design pattern will be best solution ...
0
votes
3answers
122 views

Understanding the concept of “arguments” and “parameters” in C language as explained in K&R The C Programming Language

In the third last paragraph at page number 26 of the ebook "The C Programming Language" the author(s) say, "We will generally use parameter for a variable named in the parenthesized list in a ...
0
votes
1answer
30 views

Where should I put (wrapper) scripts in my source tree?

I have this software package which installs itself to /usr/local/mypackge, with a bunch of subdirs. In bin/ I have linked code, as ELF executables, in /share/doc I have documents, etc. Now suppose ...
-3
votes
0answers
46 views

Dynamic report/data manipulation with pre-selected tables & columns using EF [closed]

Please consider this is my company's requirement. Our team is in the final stage of developing the company's enterprise web application as an Asp.Net MVC + EF5 Web application. They assigned me to ...
-1
votes
0answers
22 views

Managing a Server that host website [closed]

I am designing a software to manage some of my application that are available in amazon ec2, digital ocean. To design such a system, i have gone through different types of softwares and their ...
1
vote
2answers
79 views

Do web applications use HTTP as a transport layer, or do they count as an integral part of the HTTP server?

Given an HTTP server (e.g. Apache, IIS) and a web application (user code running in the server using PHP, ASP.NET and the likes), which of those can decide which HTTP status code to return for any ...
2
votes
1answer
83 views

What type of neural network is suitable for simulating brain of virtual organism? [closed]

A while ago I was experimenting with evolving virtual creatures using neural network + genetic algorithm, but that didnt go well (simulation speed was too slow, mainly because bad programming habbits ...
-3
votes
0answers
66 views

.NET in Windows 10 development [closed]

I would like to know much of .NET is involved in Windows 10 features development like Spartan, Cortana, Holographics, Office. Basically whether MS uses .NET for their own product development. If not ...
-2
votes
0answers
53 views

how do i use opengl with nodejs ps i only know javascript [closed]

I do know about web-gl but would like to know how i could use open-gl for desktops because this program will be an offline implementation of a game/graphics engine with the open-gl library i have ...
-2
votes
0answers
33 views

Reducing the text database for using in android apps [closed]

I have a text (UTF8) data that should be used in android (ebook like) app. How I should convert this text data (>20MB) to some other type of data that have minimum size on memory and can be used in ...
0
votes
0answers
35 views

how intelj internal and architecture differs from eclipse? [closed]

Hello as a new mobile developer for Android I will have to use Android Studio. If anyone can shed a light on how InteliJ is different from Eclipse in it's infrastructure and inner engine and intents I ...
0
votes
0answers
37 views

JSON or protocol buffer to replace the custom TCP message

Originally, We have two applications communication with TCP/IP, and both of them are implemented by C++. The messages between them are custom message type. Now the client program will be changed to ...

15 30 50 per page