3
votes
2answers
191 views

Why Do B+ Trees Have a Minimum Occupancy of 50%?

As far as I can tell, the basic operations (add, delete, search) on a B+ Tree would function the same if minimum occupancy was 1, or 1/3, or any other function on node size. All the sources available ...
-1
votes
0answers
3 views

convert string to integer does not work for nagative case C programming [migrated]

I have some homework in which the first step is converting the input string into an integer. Example when I input "1 2 3 4" then its output is : 1 2 3 4, or input is: a1b3c 4 then output is 1 3 4. ...
-3
votes
1answer
77 views

What license is this source code published under?

Could someone help me determine the license under this source code is published? And what obligations I have if I want to use the code. ...
-2
votes
0answers
64 views

I'm a vietnamese teen, how do I find friends who are programmers or gamedevs? [on hold]

I'm near 14 years old now. I learned HTML/js when I was 9. Now i know some programming language: Python, Ruby, Perl, C++, C#, Java ME, Android, Php, HTML5,... I can make RTS game by myself. But i ...
0
votes
0answers
8 views

Strange Behavior - Intellisense Stops Working, Keyboard Input Not Accepted [on hold]

I'm having some very strange issues lately with Visual Studio 2012. The Intellisense has been very finicky - sometimes it stops working altogether and I have to restart the program. Other times, my ...
0
votes
0answers
5 views

Complex Data Type in C Producing Trouble in Algorithm [migrated]

I'm trying to perform a calculation which involves the following C-function: long double complex* tridiag_thomas(long double complex *a, long double complex *b, long double complex *c, long double ...
-2
votes
0answers
67 views

How does artificial intelligence work? [on hold]

I am a first year IT student. I am very curious about artificial intelligence and how it works? Can someone tell me what the basics are for artificial intelligence that can learn itself to do ...
-5
votes
0answers
74 views

Is it worth investing time will it be easy to get a job [on hold]

so basicly im intrested in coding im only 16 at the moment and im really intrested in doing those things ,first of i think i will start with python and actually make a project that i wanted for a long ...
0
votes
1answer
60 views

What programmable system can provide persistent scheduling? [on hold]

I want to write an application that creates scheduled events at specific times. When the delay elapses the event notifies the application. The scheduled events must not be stored in the application's ...
-3
votes
0answers
53 views

Problems in a distributed C++ team [on hold]

While I've successfully cooperated with distributed web development teams, I'm having a hard time finding a remote job as a C++ software developer. What are the disadvantages of a distributed team ...
1
vote
2answers
95 views

Can I use US-ASCII and UTF-8 encoding interchangeably for an XML file without a XML root declaration?

My source XML does NOT contain the root declaration i.e. <?xml version="1.0" encoding="utf-8" ?> And when I run the file command on it, I get: ASCII text, with very long lines, with CRLF ...
-3
votes
0answers
56 views

Trusting Trust - down to the hardware [on hold]

Even beyond the source/binaries - couldn't this hack go further than the code down to the actual hardware. Perhaps not a full-on hardware hack, but hardware designed/incorporated into the system to ...
-1
votes
0answers
20 views

Information extraction script [on hold]

Can one write a computer script that will search in a place like Tripadvisor, Yelp, Facebook or Youtube for certain phrase-related entries, and extract this information? I know only Basic and html, to ...
-2
votes
0answers
15 views

encryption and decryption with python [migrated]

This is my code for encryption and decryption when the key = 'a'. I'm just a little confused on how to make it work when the key contains multiple characters, key = 'abc' for example. If anyone could ...
4
votes
1answer
132 views

Why is the use of JavaScript in HREF attributes discouraged?

Disclaimer: I came to Programmers.SE to ask this question because I understand this is the place to ask this type of question, and not necessarily stackoverflow. If I am wrong, please close the ...
-1
votes
0answers
81 views

Why are there few C++ remote works? [on hold]

I'm a C++ software engineer who, for personal reasons, would prefer to work remotely (telecommute). I can find a huge variety of telecommute and remote works for javascript, html, php, C#, java and ...
2
votes
0answers
38 views

String comparison equivalence between mysql database and php code

I wonder if it is possible to compare two strings using mysql and php and obtain the same results. In mysql I have a = b collate utf8_general_ci For PHP I found a promising way to do it with the ...
3
votes
1answer
47 views

Conveniently sorting and (binary?) searching an array of pairs of numbers?

So I have an array of distinct pairs of positive integers. That is, my array looks something like this (for instance): { (1,5) , (6,4), (5,3), (2,3), (2,4) } And my task is, for a given pair (a,b) ...
-2
votes
0answers
27 views

How do you write to a second console? (C++) [migrated]

I had the idea of using a second console in my programs for the purpose of logging programming activity. I looked around on msdn for related functions/examples and tried to put together a simple ...
2
votes
1answer
206 views

What is this pattern called? Run finally?

Is there a name for this pattern? I've written this kind of thing a few times in JavaScript and recently found myself writing it in C#. Thing is, I expect this has already been implemented in a ...
2
votes
2answers
112 views

Finding shortest path between nodes with a twist

Note: if you feel that I should include code, please tell me. I am solving a problem of finding shortest path between nodes. I am given the vertices between nodes, however they are one sided (ie you ...
5
votes
6answers
355 views

I'm confused about which is the correct way to work with TDD

I'm trying to grasp what's the idea behind TDD and how a team is supposed to work with it. I have the following test case with NUnit + Moq (just writing by memory, it is not assured the example ...
0
votes
2answers
148 views

Bad Practice using Auto Generated Classes for Data Access

I've seen this before but haven't found concrete reasons. When you add Entities to your EF model, EF auto generates classes for these entities. In terms of DataAccess, why is it preferred to not ...
3
votes
2answers
247 views

Should an object load itself?

although I'm programming in C++ for some time now, I'm always faced with design decisions (probably due to the language's flexibility). One such problem is deciding if a method should be part of the ...
-4
votes
1answer
77 views

how much does bs in computer science differ from ms in computer science? [on hold]

I'm currently a senior with a bs in cs, and contemplating on whether attaining a ms in computer science is worth it. Currently, I feel as though I only touched a surface of computer science, and ...
-1
votes
0answers
100 views

How to leave my first job? [on hold]

So I've decided to leave my job. There's a number of reasons, but I suppose the final straw was when I came back to my desk to overhear my manager trash talking about me to a co-worker. She was ...
-1
votes
0answers
37 views

What is the best project Architecture to a social network - ASP.NET MVC [on hold]

I'm very interested to know what is the best path to take when we started the structure of a social network design within an ASP.NET MVC application. We use a DAL layer (Data Access Layer)? We must ...
2
votes
7answers
572 views

Why are self-hosting compilers considered a rite of passage for new languages?

I've heard in a number of places now that people expect languages to use, or at least have, a self-hosting compiler in order to deserve respect. I'm curious as to why this is. A compiler seems like a ...
-1
votes
3answers
126 views

Objects in smalltalk and c++ [on hold]

I have a question based on SmallTalk and C++. In one of the programming languages books, there is a question like: "Does an object in Smalltalk require its own private stack? What about in C++?" ...
2
votes
2answers
53 views

Method for all objects for checking conditions which also includes method chaining and avoiding variables

(I am currently using groovy but it should apply to most OO languages so I also put the langauge-agnostic tag) I try to program in a function style which also includes method chaining and avoiding ...
0
votes
0answers
43 views

Find 'Connected Components' in undirected, unweighted graph coded as a 2d array

Given an undirected, unweighted graph coded as a 2d array, how can I find the number of different connected components? Example There is the following 2d array (I'm not putting any brackets to ...
-3
votes
0answers
41 views

Time Estimation for supporting application in IE 11 [on hold]

Our application works fine with IE 10 and below. Recently, we have a requirement to support IE 11. Our application is a .NET Application with more than 500 aspx pages. Current Problems Analyzed : ...
0
votes
0answers
50 views

Handle thousands of requests and reply after a fixed time with calculations using rails backend

I have a application which will get thousand of requests simultaneously and expect reply at the same time after a fixed period. I have decided to receive the requests and store the data in Redis and ...
-2
votes
0answers
48 views

best option to create desktop application with good UI in .NET [on hold]

I want to create Desktop Application with the better options in User Interface I've worked in VB.net and C# languages. And also have created small desktop application. And also let me know which ...
0
votes
2answers
94 views

Is seeing loads of merge messages in a git branch standard, or are we working incorrectly?

We're in the process of switching from SVN to git, and I've noticed that we're seeing a lot of these commit messages in git: Merge branch 'development' of [Url to Origin]. These are coming in where ...
-1
votes
0answers
75 views

What steps do you take to ensure that a bug fix doesn't break anything else [on hold]

What steps do you take as developers to avoid bug fixes affecting other parts of the app? I would like to be confident that my bug fixes haven't broken anything else in the app, before handing the ...
0
votes
1answer
65 views

What is the best and most optimized way to return a filestream from a .NET WCF SOAP service?

To give some background, i have a WCF SOAP service in .NET that needs to return pdf files. This service will be used by multiple application, many times in a day. The size of the files returned varies ...
0
votes
1answer
99 views

calculating the average of a value over a month

I am working on a project right now that is having me calculate monthly interest on a bank account. The way the interest is supposed to be calculated is as follows: Use the daily average to calculate ...
-1
votes
0answers
62 views

Where to find a programming marketplace to write specifications and gets bids for doing the work? [on hold]

I am on a project with a looming deadline and need some very specific tools work done which I do not have the time to do. I have been an engineer, software developer and technical writer since the ...
-5
votes
1answer
128 views

How many lines of code does the average programmer write in a day? [on hold]

I know this question is very broad, and knowing this community, it will probably be frowned upon. But how many lines of code does the average programmer write in a day? By day I mean an 8-hour work ...
0
votes
2answers
43 views

My class diagram needs to model a relationship with varying quantities

I am trying to design a restaurant ordering system in UML, which should also include the stock system. One of the classes is a Dish (i.e. a dish on the menu), and another is an Ingredient. My ...
0
votes
0answers
4 views

How can I make this custom dual nav responsive and fixed at the same time? [migrated]

I have a client that want's two custom nav menus stacked on top of one another and under a slider with their logo in the center. They also want the menus to be fixed upon scroll. I have executed this ...
-2
votes
0answers
74 views

Where do you code? [on hold]

I personally don't find much motivation to code sitting at home, so I go to strange places like the local mall and sit at a table and code. What about you? Where do you code and in what spaces ...
2
votes
1answer
92 views

Exceptions in ANSI C

Would it be possible to implement exception mechanism in pure ANSI C similar to the one used in popular OOP languages (with familiar try-catch-finally clauses)? If yes then how? I'm especially ...
22
votes
8answers
5k views

Function guaranteed to never return the same value twice

This is a question I was asked at a job interview, and I can't figure out the answer they were looking for, so I'm hoping someone here might have some ideas. The goal is to write a function that is ...
98
votes
6answers
7k views

How to break up a programming project into tasks for other developers? [on hold]

I have recently joined a development project and was suddenly given the job of lead developer. My primary responsibility is to break up the programming part of the project into tasks, give these tasks ...
2
votes
1answer
109 views

Who is responsible to challenge a product owner?

I am relatively new to Scrum and I am not clear on the boundaries of a product owner. The product owner that I am currently working with seems to behave more like a manager than someone who gives ...
1
vote
0answers
50 views

How do I set up a micro-services architecture that can take advantage of a common, centralized security service?

I've obviously heard a lot about the Micro-Services Architecture and think it makes a lot of sense (especially with the success stories of Netflix). I'd like to implement a small Grails application ...
-4
votes
0answers
40 views

Which library to display grid better in Conway Game of Life? [on hold]

I have implemented Conway's Game of Life in C++. I want to know which library shall i use to display the grid, as i am not satisfied with the output that i am getting on console. I need more control ...
-1
votes
0answers
32 views

Moving from .net to Android - what is the best way for two apps I am developing? [on hold]

I have been developing with C# for a few years. I would love to go the Xamarin route but management have decided against that (too many java developers in the company) and I have to start learning ...

15 30 50 per page