-3
votes
0answers
51 views

Write pci access in kernel c? [closed]

Does anyone know how to access the pci and pci express cards in c for an operating system? I don't know how to access the pci cards, but does someone know what I have to do. I want to have an array of ...
8
votes
2answers
269 views

Working with more efficient but less functional ways of storing data

Since learning object oriented programming I've been confused about how to deal with multiple ways of storing data that have different levels of functionality and efficiency. I'm kind of new to this ...
-3
votes
0answers
36 views

HTTP GET with NodeJS and Lamda Alexa Skill [closed]

Ok so I have been working on this Alexa Skill most of which is built in Node. I can't seem to figure out how to return the http request in the callback. var handleRequest = function(intent, ...
1
vote
3answers
121 views

Decomposing into multiple of divisors

I have a number x. I know its prime factors and their multiplicity. Does anyone know an algorithm that decomposes it into all possible combination of its divisors (without respect to order)? E.g. x=...
0
votes
2answers
74 views

Building a personal C/Python library to replace Matlab [closed]

I am considering to switch from Matlab to Python/C++ for research work. The objective is to create an environment similar to Matlab for rapid prototyping. Python is slow even with numpy and schipy. ...
-1
votes
0answers
13 views

Application made in python and compiled with py2exe didn't work [migrated]

I made a python 2.7 program in PyCharm called Intelligent Timer. It is working and showing the stopwatch Changing time in both PyCharm and python IDLE. But when I converted it to .exe file using ...
2
votes
0answers
49 views

How to scale a slackbot app

I'm building an app for slack. While I've completed the POC, and everything works well for a single instance of the app, I'm having an issue of wrapping my mind around the scaling of it. The specific ...
-1
votes
1answer
43 views

Using a variable to define counter limits in a FOR…NEXT loop

I'm using Excel VBA to manipulate a one-dimensional array with approximately 100,000 numerical elements. I am seeing huge performance differences between the following 2 methods: method(1) k1 = 10 ...
-2
votes
0answers
41 views

Compile projects on vs2013 [closed]

I'm learning C++, so I apologize for my lack of skills. I'm trying to use open source projects but I got stuck when compiling them on Visual Studio 2013. I'm a little confusing because in some ...
-4
votes
0answers
25 views

Custom mobile template for Blogger

I used a non mobile friendly template in my Blogger blog, my template doesn't adapt to mobile devices at all but I don't want to change it now and I don't want to use Blogger's mobile templates either,...
0
votes
0answers
35 views

Using an online database for multiple users to store their data

I am considering changing my wpf application to use a online database instead of a local XML file. I have read some tutorials about binding data grids to Mysql database tables. But what I don't ...
4
votes
1answer
117 views

Is it considered bad practice to crawl through the mobile version of a site?

I am building a web spider to crawl through several different sites, but one of them uses javascript buttons instead of links for several functions. And while I could learn to follow them, it adds an ...
-4
votes
0answers
57 views

mergesort complexity O(nlogn) + O(n)?

When analyzing the time complexity of the merge sort, I know that since there are O(log(n)) levels and each level takes a O(n) operation, the entire time complexity should be O(nlog(n)). However, ...
0
votes
0answers
34 views

database architecture for ecommerce app

I’m creating an app that allows users to post, sell, and purchase items. Every item has a count integer attribute that is set by the initial user and which is reduced by n with each purchase. When ...
2
votes
2answers
162 views

Algorithm for ranking a list of items

Given a list of items, what's the most efficient way of ranking those items with the least number of comparisons? Is there a name for this type of algorithm (that way I can focus my search)? Also, is ...
4
votes
2answers
102 views

Updating multiple entities at once using the data mapper pattern

I have been studying software architecture and design patterns for the past weeks, and for a week now I can't stop thinking about the performance problems that come with the flexibility of the data ...
-2
votes
0answers
19 views

VBA accessing files [closed]

I want to be able to access workbooks that are contained inside a folder. If I have a number of workbooks inside a folder, is there a way to pull the data that exist inside the workbooks? My goal is ...
-4
votes
0answers
58 views

Extensible python project layout

I am developing a bot for a game I'm playing and i am having quite a debate as how should i structure my code. I designed my bot to be extensible, everyone can develop a module to farm something the ...
1
vote
6answers
201 views

Short circuit evaluation is C++? [duplicate]

I've been reading the C++ for dummies book and I'm loving it! I'm on the section where he is talking about short circuit evaluation. Here is my understanding of short circuit evaluation. Short ...
1
vote
1answer
71 views

What's polymorphic deployment

On pages 136 and 137 in The Clean Coder, Robert C. Martin describes how chips could be independently deployed thanks to a vtable: The solution was pretty simple. Each chip had to be decoupled from ...
-2
votes
0answers
36 views

TDD with Django where to start [closed]

I'd like to try TDD on django but I don't know where to start. I've attended some coding-dojos where we where doing TDD and I really liked the idea. Now I'd like to try it out in real project but I ...
2
votes
5answers
424 views

Why isn't byte | bit the only built in data type?

All languages I have seen so far have multiple builtin data types (int, double, float, char, long...). But if we look closely, they are just arbitrary arrays of bits, the only difference between them ...
7
votes
6answers
587 views

How is static typing really helpful in bigger projects?

While curiosing on the main page of a scripting programming language's site, I encountered this passage: When a system gets too big to keep in your head, you can add static types. This made me ...
1
vote
3answers
125 views

Unlike C++, why does uncaught exception in JavaScript not terminate the script?

As someone used to C++ and new to JavaScript, I find this behavior odd. Whether a program runs directly on the platform like C++ ones, or it runs at a higher (or deeper?) level like JavaScript ones, ...
0
votes
1answer
33 views

How to do error management in a web development team?

What are some good practices to do error management in a web application of about 30 people divided into 5 people team, where each team is responsible of a specific part of the application? I am ...
2
votes
5answers
68 views

How do I systematically evaluate the performance of my Python script?

How do I know if my code is running fast enough? Is there a measurable way to test the speed & performance of my code? For example, I have script that is reading CSV files and writing new CSV ...
-3
votes
1answer
94 views

Is SQL inefficient since it has to parse through everything?

As you know SQL doesn't have arrays. So if you make a table "article" and wish to have comments on your articles I presume you would make another table "comment". Inside "comment" table you have the ...
0
votes
2answers
106 views

How to mentally keep track of recursion

I have great trouble doing recursion, especially trying to visualize it. A great example is the aging wine problem described in the top answer of this link: https://www.quora.com/Are-there-any-good-...
0
votes
0answers
17 views

Library for finding rules (based upon correlations) between columns in a database

I have a database table with 100.000 rows. One column contains transaction texts from bank statements like: "Paid Google Adwords for July invoice 4343434" while another one contains a manual ...
5
votes
1answer
163 views

Why is it more unsafe to store your password in the URL of a git repo?

As a comment on a response to this question, someone says: It is not advisable to put the password in the URL for this file is saved on the .git/config . Is not safe, it is better to use ssh key ...
0
votes
0answers
18 views

Microsoft SQL server R Services GPL

R is licensed under GPL. How does Microsoft offer SQL R services without providing the source code for the SQL server. It does provide a the source for the R base packages. Does this mean that any ...
-3
votes
0answers
36 views

Sample embedded projects with unit tests written [closed]

I have a question related to the following post: best practice when unit testing for embedded development I am looking for some sample projects (may be on github) that have unit tests enabled. See ...
-2
votes
1answer
89 views

C++ Loop object “pairs” with one in common

I could not think of a better name. I have a class called MoveObjects which holds position and move info. Then I have two classes, Items and Attacks. Both have MoveObjects in common. What I am ...
-1
votes
3answers
134 views

What is the difference between this->data, and directly just data?

In C++ Is using this->data slower than data ?
0
votes
1answer
20 views

NSUserDefaults, Core Data or neither?

Everytime I press a certain button, it should remove a random index from a dictionary and then save that dictionary everytime its modified. I have done this using NSUserDefaults. I have found that ...
-2
votes
0answers
5 views

What license to use on a package containing MIT, Boostv1, and public domain? [migrated]

I have written an R package whose source code requires several libraries, whose source is therefore included in the package. These libraries are licensed Boostv1, MIT-style, and public domain. I am ...
1
vote
1answer
62 views

What is the connection between type inference and advanced type systems?

I don't understand the connection between type inference and advanced type systems. I don't see why Haskell or Standard ML or OCaml could not have existed without type inference. My only guess is that ...
-5
votes
0answers
29 views

Converting string to LPCSTR? [closed]

So I am using FindWindow, but instead of having to change the program each time, I oviously want it to be dynamic. But when I enter the string variable that cin gave me when I was testing, it said ...
1
vote
1answer
101 views

How would you test this class and is it integration test or unit test?

Consider this example class which in encrypting some data and sending it to some other service. Consider the test for redirect method. This is how you consume the class: <?php $safeLink = new ...
0
votes
1answer
24 views

A WebSocket API, reply message

I am writing a Web application for copying files between servers. I decided to write a WebSocket server which will receive and send relevant messages (that is communicate with a browser), start and ...
0
votes
1answer
44 views

Multiple complex parameters in a REST post call

This is a blindspot in my understanding of REST. I understand how to make get calls (and Post) if the call is simple, and requires maybe a few parameters. Example: https:\\randomAPI\get\coats\size:...
0
votes
0answers
39 views

Practising User story writing without access to the actual user - Validation required

Apologies for the lengthy query. I am newbie in writing user stories. I have got a high level requirement for an online portal with no access to the actual user : Subscriber can access a new ...
2
votes
2answers
57 views

Is it okay to simplify a Sequence Diagram (grouping lifelines)?

Is it okay to group several Components into a single lifeline for simplicity? For example, let's say I have a UML Component Diagram, and it's a layered architecture. There are 26 components, one on ...
4
votes
2answers
200 views

Why is using build number instead of x.x.x versioning in a web app a bad idea?

I have to start using versioning for my project which is a web app so compatibility isn't really a problem. I think using a Major.minor.revision.build is too cumbersome. I am almost convinced to ...
-2
votes
0answers
54 views

What is a good model for rewarding work on projects outside of contracted hours [migrated]

I work at a small company and we have a full schedule of work ahead of us. There are some internal tooling projects that would massively help some departments in the company but they never quite get ...
0
votes
1answer
67 views

Questions regarding my MVC application

I'm learning .net MVC while developing a simple word list - Eg. When you learn a new language and create a list of words related to a certain topic. I don't think I'm following the rules or good ...
-3
votes
0answers
27 views

Make webservice on python [closed]

I have written python code for document summarizer which automatically summarizes a document. I want to convert it into a webservice where i can upload a document and set all the configurables in a ...
-2
votes
0answers
22 views

Is it possible to install and run node Js via script?

I'm concern on how client's who purchases my app written in node Js would be able to install it on their server thus run it? Instead of offering them a service to install via npm, I would prefer if ...
1
vote
3answers
24 views

What is the difference between AUTOSAR and DDS?

I am wondering what is the difference between DDS and AUTOSAR. As I know, both of them are communication middlewares. AUTOSAR WAS originally proposed by a group of car manufacturer that's why I guess ...
0
votes
0answers
19 views

Using gerrit(-like) tool to ensure high bus-factor

A nice side-effect of using reviews is that it will ensure that other programmers have some knowledge of the code that is being merged to the project. The more that reviews changes to the project the ...

15 30 50 per page