-1
votes
1answer
32 views

How do you code communication between a windows app and storing data in SQL server? [on hold]

For context I am fairly new to programming so keep that in mind. For one of my first decent sized projects I am trying to develop a small windows app that will have an interface that will allow me to ...
-1
votes
1answer
40 views

I am new to asp.net and I have some questions [on hold]

I am actually new to web development but I have 2 years and half experience in developing windows desktop applications using c#. I already learned asp.net,html,css,javascript and jqurey but I would ...
1
vote
3answers
84 views

Should I create thumbnail for uploaded images?

I am working on a Website and trying to decide if I should create separate thumbnail image for each image user uploads. Or just set a smaller width/height when displaying thumbnails. I am planning to ...
-4
votes
2answers
149 views

Is it possible to learn C++ on the fly? [on hold]

I am reading books and doing the examples that the book has to offer. Often times, I find myself getting bored b/c t.b.h it's basically stuff that doesn't really interest me much. Don't get me wrong, ...
1
vote
2answers
221 views

Best approach for a server configuration data collection and reporting solution from a legacy script?

I have a project which involves collecting config data from windows servers in our (very large) server estate. My manager wants me to collect over 150 data items across all configuration areas ...
90
votes
25answers
11k views

How do programmers quit a job? [closed]

I'm thinking about leaving my current employer and wondering how one goes about that process in the programming world. We have a lot of projects on the go at the moment and I'm the only developer. We ...
0
votes
3answers
146 views

What exactly is copyrighted, the text of the code itself, or the design? [on hold]

I am both the sole developer for a relatively small company and someone who enjoys programming as a hobby. Recently, for one of my personal projects, I started making a framework for a RESTful API and ...
6
votes
4answers
703 views

Who de-duplicates bug tickets?

One of my team mates and I just grabbed separate bug tickets, assigned them separately to ourselves, but the tickets were duplicates! What is the best way to resolve duplicate tickets? Is this ...
0
votes
1answer
44 views

Optimizing instant notifications

Scenario To deliver instant notifications to the client, I'm sending an AJAX request to a PHP page that checks if there are new notifications: if there are, it outputs them, otherwise it sleeps for ...
3
votes
0answers
26 views

Best practice for defining and keeping related stateless methods together in Objective-C

I have a few methods which are stateless: loginWithEmail: password: completion: signUpWithEmail: password: completion: resetPasswordForUsername: completion: Currently what I do is I create a class ...
1
vote
1answer
36 views

Is it appropriate to pass in a derivative to calculate the error of a Neural Net?

I'm reading a guide for back-propagation of a neural net, and it gives the error function as: Next work out the error for neuron B. The error is What you want – What you actually get, in other ...
3
votes
2answers
67 views

why regex, when using global search and {0,} quantifier, match the end of the string?

I have asked a question here about js, regex, quantifiers and global search. I've understood finally how this works, but, let's take a concrete example and then I`ll write my question. Based on the ...
-2
votes
0answers
36 views

Entity framework vs hibernate? [on hold]

New to .net. can some one please explain, what to use when, Entity framework vs. Hibernate or any other ORM?
2
votes
4answers
83 views

How to share data between web applications?

I have two web applications, say Application_1 and Application_2. Application_2 has a database table named table_2, which changes infrequently, and needs to be accessed by Application_1. Does it ...
0
votes
1answer
94 views

Data serialization architecture, injection on construction vs. on function call

I am creating a data serialization/deserialization mechanism for essentially a persistent storage object. Due to the variety of systems this mechanism could run on, there needs to be a a variable ...
-3
votes
0answers
11 views

Catching stderr and stdout into a string in ruby?

Is there a way to catch stderr/stdout into a string or array into ruby? I have tried orig_stderr = $stderr.clone orig_stdout = $stdout.clone $stderr.reopen File.new('tmp/unwanted/stdout_output', ...
-5
votes
0answers
41 views

Does google.com use php [on hold]

builtwith.com is a well known website used for discovering what was used to create a website. It says at http://builtwith.com/google.com that google.com uses PHP. Is this in any way true, and if not, ...
0
votes
1answer
124 views

DB modeling for staffing demand and supply

TL;DR - I'm looking for guidance with my database design. I am concerned that my existing design is inefficient and won't be able to handle large numbers of employees. This is going to be long, so ...
0
votes
0answers
33 views

Better Approach for retrieving multiple RESTful calls

I have an Android application that associates bluetooth beacons with data that is retrieved from a server via RESTful calls. Once the app is launched, we have a page with a table that is being filled ...
19
votes
4answers
4k views

How do I handle setters on immutable fields?

I have a class with two readonly int fields. They are exposed as properties: public class Thing { private readonly int _foo, _bar; /// <summary> I AM IMMUTABLE. </summary> ...
1
vote
0answers
49 views

Separate GUI for clients

I am writing a game in which I have a Java server/client system set up. Everything is working great, but I reached a slight problem. I have set up a basic health system, and a GUI to go with it (for ...
2
votes
4answers
1k views

Is it possible to efficiently store all possible phone numbers in memory?

Given the standard North American phone number format: (Area Code) Exchange - Subscriber, the set of possible numbers is about 6 billion. However, efficiently breaking down the nodes into the sections ...
-4
votes
1answer
94 views

Visual Studio 2013 on Windows 10

I got a laptop running w8.1 and the w10 update is ready to be installed. I'm working on a ASP MVC 4 (visual studio 2013 w/sql server 2012). I really really want to try out Windows 10 but I don't know ...
-5
votes
0answers
40 views

How can I make a website that auto updates itself when a new youtube video is uploaded [on hold]

As the question above says, is it possible so that when I upload a new youtube video to my channel, the website updates with that video and keeps a track of the videos uploaded so that the user can ...
0
votes
1answer
293 views

C# Real time HMI (Human Machine Interface)

I came across a discussion of real time programing on this site which seemed to have some good insights. I would like to get your thoughts on my next project. I plan to write a C# HMI for a machine ...
-1
votes
1answer
99 views

Carriage return not working properly in eclipse [on hold]

Carriage return is not working when i execute the program it produces the n number of characters after "\r" in a newline class NewClass{ public static void main(String args[]){ String str = "Hey ...
-2
votes
0answers
12 views

Problem with C# File IO in Winforms [migrated]

I'm having issues with a C# Winforms file IO. The code complies just fine, but then it returns errors on execution. The output code is here: private void saveData() { string fullPath = ...
1
vote
1answer
44 views

How “close” should a IO class/logic be to a form or thread that controls the IO device?

I am having a difficult time determining where my IO logic should reside within my application. In this application there are multiple IO devices both USB and serial. I currently have the idea to ...
0
votes
0answers
14 views

Using the readahead syscall in C in the linux environment

I am interested in using the readahead syscall in a c program. Currently I have opened a file for reading with a call to open(). Once I find a character, say the letter 'b', I want to test whether the ...
7
votes
3answers
2k views

Dependency injection: At what point am I allowed to create a new object?

I am refactoring a PHP application, and I am trying to do has much dependency injection (DI) as possible. I feel like I've got a good grasp of how it works, and I can certainly see my classes ...
2
votes
2answers
80 views

When should I instantiate a variable rather than grabbing it through a method?

This may be tedious, but I would love to know which is a more efficient way of programming. The result may only be slightly better or slightly worse, but I am still interested in which is 'better'. ...
1
vote
1answer
26 views

How to represent alternative and sequential tasks?

I am experimenting with hierarchical task planning (in python) and I would like to have functions which return lists of tasks. I need to differentiate between alternative paths and sequential tasks. ...
1
vote
0answers
65 views

The same objects are staying in memory across multiple executions

I was testing a neural net I created, and noticed something odd. The net uses a hashed adjacency list (roughly) to maintain its links. The vertices of the list are the nodes of the net. I chose to ...
2
votes
2answers
140 views

Why dynamic memory allocation functions in C returns void*?

Consider the prototypes of C's dynamic allocation functions malloc - void* malloc(size_t size); calloc - void* calloc(size_t n,size); realloc - void* realloc(void* ptr,size_t newsize); Now a ...
2
votes
3answers
178 views

How does Chrome V8 work? And why was JavaScript not JIT-Compiled in the first place?

I have been researching Interpreters/Compilers, then I stumbled across JIT-Compilation - specifically Google Chrome's V8 Javascript Engine. My questions are - How can it be faster than standard ...
1
vote
2answers
67 views

What is a good way to organize service layer classes?

I had a Service layer in my app and, for a while, there's just one class for API calls Current Scenario MyAPI Class authenticateApp() authenticateUser() Looking in the future, that class will be ...
2
votes
6answers
631 views

Replacing C with JavaScript as an introductory programming language [on hold]

I am a new teacher at polytechnic where we teach web development and basic software programming. For years, the institution where I teach have taught C as their introductory programming language to ...
20
votes
4answers
4k views

Why is it so bad to read data from a database “owned” by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ ...
-4
votes
0answers
31 views

How do I learn free Microsoft courses for certifications? [on hold]

I cannot found the free certifications of Microsoft. So which site contain the free microsoft certifications.
-2
votes
1answer
42 views

(New Programmer Alert) As I'm learning Javascript and Jquery What Else Should I learn? [on hold]

I'm a new programmer and kind of over whelmed by all the other awesome stuff there is to learn. I've gotten HTML and CSS down and now want to make my websites more interactive. I know with Javascript ...
3
votes
4answers
147 views

Design: Lisp (or other scripting language) as an interactive interface for C++?

I'm working on a medium size C++ project (will probably end up around 50k lines) and I have to provide an interactive terminal interface. The program produces scientific data as an output and the ...
0
votes
1answer
63 views

A secondary “type system” for references?

I'm designing a language and was wondering how to incorporate C++-like references with regards to their place in the type system. I think they're useful for operations like indexing and dereferencing ...
3
votes
3answers
91 views

Is this a valid situation for returning rather than throwing an exception?

This is not something I would ever normally do, but I have a situation where some existing legacy code is being reused in a new application. The code is shared and needs to be used by both the legacy ...
14
votes
22answers
2k views

How to make people new to programming stop asking me questions and distracting me? [on hold]

I am at secondary school right now and I'm the only one in my class who is experienced with programming. Because of that, people are constantly distracting me while I'm writing code to ask me to solve ...
-3
votes
0answers
16 views

How to pass input text box value from previous page to input text box in the new page with Javascript? [on hold]

Any help appreciated.. I have been stuck on this for a while.. Right now once it gets the searchVal from the old input text box, it redirects to new page and then stops doing any javascript after ...
6
votes
9answers
1k views

How to teach computer science? [closed]

I am just starting to teach computer science. It's just the basic level. I'm finding that I sometimes don't know how to approach topics in a way that lets students easily understand. I've found that ...
0
votes
3answers
93 views

Is unwanted behavior, while work is in progress, declarable as a “bug”?

This might be only a question of definition, but maybe there's a consensus? Given the situation, software Foobar Plus is under construction, we're not working on an update, but on the first release ...
2
votes
1answer
36 views

Status transitions with extra information in RESTful interfaces

How would you design a REST interface that triggers a status change of an object, but requires additional properties in that moment? For example, the deliverer of a package needs to change the status ...
-1
votes
0answers
17 views

upload a file to sql server and download it from sql server in asp.net mvc web api using knockout js [on hold]

I'm very new in asp.net mvc web api (APIController)and knockout js but i want to upload a file to sql server and download it from sql server in asp.net mvc web api using knockout js , i'm looking for ...
23
votes
17answers
6k views

What are some good assignments for an introductory course, to reach today's students? [closed]

I periodically teach an introduction to programming course using Java. I want to give my students some exciting assignments that they can relate to or find interesting. At the very least, I want ...

15 30 50 per page