0
votes
0answers
2 views

Can I use QtCreator with pyqt5?

I am using PyQt5.3.2. Recently I installed QtCreator 3.3.0 to develop qml applications. But the problem is when I start a QtQuick application project and try to run the application, it gives me this ...
1
vote
1answer
11 views

How to convert the following node evaluation procedure to a non recursive solution?

I have the following recursive method. It evaluates a node (that represent a logical expression), using deep first search traversal : EvaluateNode(Node node) { bool result; switch(node.Type) ...
-3
votes
0answers
17 views

code blocks not opening new Console. Why is this happening? [on hold]

I am unable to start a project in Code Blocks :/ always getting this error
-1
votes
0answers
17 views

“Client direct access to database” vs. “SOA”

I've got a manager who I feel is stuck in ten-years-ago mode... I'm looking for a few pointers regarding two possible architectures for a re-write of our current system. Some requirements; It's ...
-1
votes
0answers
14 views

GIT hangs when pushing [migrated]

When i try to push my code to git it just hang, no error messages just standing still. Counting objects: 10, done. Delta compression using up to 4 threads. Compressing objects: 100% (7/7), done. ...
0
votes
0answers
11 views

Sorting on documents within an array

I've tried very hard to read the documentation on finding and sorting but haven't had luck. I can change my document structure if it's not suitable for the operation I want to do but I'd prefer my ...
1
vote
3answers
43 views

How to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class

I want to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class. This is the case: I have four unit tested classes: ...
0
votes
0answers
40 views

Difficulty finding a recursive starting point for an algorithm

I am a student at university taking an analysis of algorithms class, and this dynamic programming problem has me stumped. I can't figure out how exactly I should define my recursive algorithm. The ...
-1
votes
1answer
31 views

Unexpected compilation error [on hold]

I wrote this. doesn't matter what am I supposed to do with it. It just doesn't complie! Using G++ 4.9 In the line which I insert data into the set I get error! commenting out that line will solve the ...
-3
votes
0answers
36 views

I want to build a software with C++, book list is needed [on hold]

Can you tell me where i can start from, I have already learned c++. I want to build a software with C++, book list is needed.
-1
votes
0answers
26 views

How to learn backend development?

I have been trying to learn web development for a while but I can't seem to get anywhere with backend. I've learnt all languages(HTML CSS JS JQuery Ruby PHP) provided on codeacademy and have been ...
2
votes
1answer
34 views

Structure of stack of a function call

I've been reading Aleph One's paper on Smashing the Stack for Fun and Profit. I wrote down example1.c from his paper, modified it a bit to see what the stack looks like on my system. I'm running ...
-2
votes
0answers
11 views

Installment of Python 2.7.9 and 3.4.2 & Recommended Learning Source

I am an undergraduate (sophomore) with double majors in microbiology and mathematics. I just started a research project on the computational biology that uses both Python and MATLAB; I see that most ...
-1
votes
1answer
29 views

Is it reliable to use and download libraries needed from GitHub and copy-pasting codes in order to increase productivity?

I'm just wondering. Is it okay or true that some of the best programmers once taught that to become an effective programmer is through being a lazy programmer rather than spend time memorizing lots of ...
3
votes
5answers
347 views

What's the best way to avoid catastrophe caused by negligence?

I have been a programmer for almost 1 year. As an ADHD adult, naturally I don't have the same strength of attention on ordinary stuffs as my colleagues do. And I find the catastrophe made by me are ...
2
votes
1answer
26 views

Should I rename package after Android app name change?

I have an Android app. I have changed the app's name from appname1 to appname2. I would like to know if I should also change my package name from com.myname.appname1 to com.myname.appname2 to reflect ...
0
votes
1answer
18 views

Is there a way to document required properties in traits (PHP)?

I'm fairly new to using traits in PHP and am wondering if there is a way to ensure that a class including a trait has particular properties. I know that you can use something like the following to ...
-1
votes
0answers
24 views

Best way to implement in app purchases [on hold]

Whats the best way implement in app purchases? It's not just any kind of in app purchases. For that I can follow this tutorial. I'm trying to make something like what uber has. Someone posts ...
-3
votes
0answers
14 views

PHP Ajax error, get 404 when type first char [on hold]

I see error in my console it says: showHint is not defined, while I defined it already, also this live search doesnt return anything when I type it. It assume should work like this. gethint.php ...
1
vote
1answer
105 views

Using “Return” over “Break” or a combination

When using the Switch statement, is using return instead of break or a combination of the two considered bad form? while (true) { var operation = Randomness.Next(0, 3); switch (operation) ...
0
votes
2answers
49 views

Empty except block vs. huge except block

Which of these is easier to read? An empty except block: try: foo = do_foo() except FooError: pass # see below else: return do_bar(foo) # Recover from the FooError (long, complicated) ...
0
votes
1answer
34 views

Software previously licensed under GPL now APL2, can I use it in a commercial application?

A software I would like to use in a commercial project switched from GPL to APL2. The news cites: Please note that the new code that is currently developed as part of the 2.0 code base is licensed ...
-3
votes
0answers
26 views

How to get started with jQuery plugin boilerplate? [on hold]

I've strong knowledge in jQuery but not in JavaScript (skill level like jQuery). And I want to learn writing a plugin and so I've visited a lot of websites for the tutorials and the great start is ...
-1
votes
0answers
18 views

How should I order software contributors in a citation? [on hold]

I've been involved in a couple of software projects (academic and industrial), and occasionally there's a need to cite the software (e.g. in a scientific publication). It might come up in a job ...
2
votes
1answer
120 views

Derive from a base class but not include a condition in the base class's method

The current code looks like this: public class Details { Public void Populate() { WriteChapterDetails(); } public void WriteChapterDetails() { if ( ...
4
votes
1answer
188 views

When to fix something that is “wrong” but works fine

Short version: I wrote some code that is not done "the right way" because, when I wrote it, I didn't know how to do it. Now that I know how to do it "the right way", how do I decide how to fix it? ...
-2
votes
0answers
36 views

Best Local PHP database for beginners [on hold]

What is the best local PHP database that beginners can use, I don't have internet at home and I would like to learn how to use PHP and run a database locally, Is there any application that has the ...
0
votes
1answer
14 views

Image uploads - preoptimize with CDN or host on same machine?

I'm working on a personal blog that will be used for reviewing various goods/services and as a dev journal. I'm writing this in Angularjs and Nodejs as a learning experience, but I plan on using it ...
-7
votes
0answers
23 views

how to resolve unwanted image tag [on hold]

can somebody please help me how can i remove this link to get featured when ever some body shares the web link on fb then this smiley image get featured what can i do to remove this image to get ...
1
vote
0answers
47 views

Does snapshot change tracking break DDD principles?

I'm building a website with MVC 5 and Entity Framework 6, implementing the Unit of Work & Repository patterns, and - for flexibility and performance - would like to utilize Entity Framework's ...
0
votes
0answers
40 views

Use of this pattern in C [on hold]

I was reviewing a C codebase and encountered this programming pattern frequently but am not sure of the utility: int afun(float a, int b) { int avar; float bvar; { /* why is this block needed? ...
0
votes
2answers
55 views

How to store users' info in network app?

I'm currently working on a school project that aims at creating a P2P chat client for users on the same network. For now, it will only be used by users on the same LAN network. But hopefully,I will to ...
3
votes
2answers
169 views

Is it a good practice to burn business logic into Enums?

Let's have a simplified business logic like this: public enum BusinessLogic { STAGE_ONE(true, false, false), STAGE_TWO(true, true, false), STAGE_THREE(false, false, true); private final ...
1
vote
1answer
38 views

Trying to Move Logic to DB - Reservation System

So I'm planning a basic resource reservation system. Basically I'm going to have a room (resource) that has X number of open spots per 30 minute increment. When someone reserves a resource I would ...
0
votes
0answers
49 views

Abstracted better? Data driven string creation

I am trying to post this question neutral of programming language so it helps the widest audience. But for those who must know, I am using Objective-C and iOS frameworks. The background: I have a ...
1
vote
0answers
28 views

How to normalize a table that contains a CK not included in the PK? [migrated]

I have the following table. The PK is model_ID. Assuming that the modelName field is unique(that is, no two brands can have an identical modelName), there is a transitive dependency between modelName ...
-3
votes
0answers
17 views

Listing all possible binary search trees [on hold]

I'm stuck trying to write a program that lists all possible binary search trees that has n values from 1 to n. I tried to solve it by recursively listing all subtrees, but have trouble implementing ...
0
votes
3answers
93 views

Should abstract classes be used to prevent instantiation

Is preventing the instantiation of a class a valid reason to make it abstract? For example, if I have a class called Gauge which has subclasses HeadingIndicator and AirSpeedIndicator, is it a good ...
-3
votes
0answers
27 views

How to evaluate Flow Chart process

I am looking into one problem. Please refer following : Problem : I am not able to start its execution. Can some one let me know how i can assume value in starting ? I am trying to put x in box 5 ...
-1
votes
0answers
23 views

Best practices for conditional content restriction

Best practices for conditional content restriction I've spent a while coming up empty after several search attempts for best practices regarding, something I can only describe as conditional content ...
0
votes
1answer
15 views

Merging user activities into one stream with a common representation

My social network website currently has forum threads and posts gallery pictures albums on the users' profiles group discussions classifieds I would like to create one "stream" of activity. It ...
0
votes
1answer
61 views

Algorithm for merging multiple rows of data

I need an algorithm to merge multiple rows for data, where one column is the index column and if one or more rows have the same index value merge the column values into a single row, and lastly sort ...
72
votes
13answers
6k views

Leaving intentional bugs in code for testers to find

We don't do this at our firm, but one of my friends says that his project manager asked every dev to add intentional bugs just before the product goes to QA. This is how it works: Just before the ...
-6
votes
0answers
38 views

How to compute days between two date choosers [on hold]

How to compute days between two date choosers and show it inside the textfield; is this correct and what is the code should i input inside the settext Date date1 = this.dcStart.getDate(); Date date2 ...
0
votes
1answer
56 views

What is the correct answer of given problem?

Consider a system having m resources of same type and 3 process A,B and C have peak demands of 3,4 and 6 respectiveley. What should be the value of m such that the deadlock will not occur ? My ...
0
votes
1answer
23 views

Bundling style and script files in asp MVC layout page

How to bundle style and script files using layout in asp MVC? Here is an example. Layout1 uses style and script file for header and footer functionality. Sections are declared. View1 uses Layout1 . ...
-2
votes
1answer
18 views

SystemUnderTest versus other nomenclatures [on hold]

this is a minor issue but we are a worldwide company trying to unify some criteria and we are using systemUnderTest to name the variables used in our unit tests while others are using other ...
1
vote
1answer
89 views

How to politely decline a pull request?

There was a pull request made on one my repos adding explanations on the README file. Unfortunately, it's hardly understandable and I doubt will be helpful. What ways can I do to politely decline ...
2
votes
1answer
79 views

Creating variables in methods/functions

In how far do we create variables in our methods or functions? Do we only create one when we're using the result of the variable more then one time like this? function someFunction(SomeClass ...
6
votes
2answers
187 views

Should I keep email addresses as plaintext in database?

It's clear to everyone (I hope) that storing passwords without at least salting/hashing them is a terrible idea. What about emails? Let's say you keep the subscription email address, if you encrypt ...

15 30 50 per page