-1
votes
0answers
18 views

Using FTP command how to fetch today's file [on hold]

"Fetching data from server by FTP command" is not a problem .But if I like to fetch the today's file from the server ,whose name is Like(BACKUP20141210) and if it presents in a folder with previous ...
11
votes
2answers
771 views

Algorithm to merge two sorted arrays with minimum number of comparisons

Given are two sorted arrays a, b of type T with size n and m. I am looking for an algorithm that merges the two arrays into a new array (of maximum size n+m). If you have a cheap comparison ...
-2
votes
0answers
9 views

Improve WinRT Apps Performance [on hold]

I have a WinRT application that contains a large amount of data. Each time i enter a page it took more than 5 seconds to load the data. My question is the next: is there any way to improve data ...
0
votes
0answers
26 views

Python - Flask controller structure

This is my first python application (I have some experience in Java/groovy-grails), and therefore I am not confident of the application structure I should be following. My application has two ...
0
votes
1answer
51 views

Object creation: when should I expose a factory vs wrapping class?

I am having some problems trying to figure out when to use a factory or to wrapper class. This question is slightly geared towards C# I guess, so I'm not sure if this is the correct place to ask. Say ...
-3
votes
0answers
33 views

UHD glare or non glare? [on hold]

i'm a programmer, and now I need a new notebook. What is the best choice to do? Choosing a laptop with UHD glare screen (3840x2160) or a FullHD screen no glare(1980x1020) I think that UHD one will ...
-2
votes
0answers
44 views

Python Gmail app password [on hold]

I offer this as a "hey look what I found" and not a question. I had my Gmail username and password in plaintext in a python script that sends me notifications. Fearing it could become compromised, i ...
-1
votes
0answers
21 views

How does a panoramic app work? [on hold]

I want to make a panoramic app(Android) but I'm not finding any tutorial on it. All I'm finding is a list of similar app available on Google Play. So can anyone explain me how it works in general. I ...
-1
votes
0answers
63 views

Remote development environment. Hacking development workflow

Cloud solutions grow fast. AWS EC2 and DigitalOcean become cheaper and cheaper every day. Recently I had my workstation broken, and during working on weak macbook air.. ..the couple of questions ...
-2
votes
0answers
41 views

String of zeros vs correct output [on hold]

int characterSum = 0; string numberString = to_string(number); int size = numberString.size(); double *decimalDigit = new double[size]; while (0 <= size - 1){ //acquire digits of number ...
0
votes
2answers
37 views

Workaround for unit testing Core Data in Swift

I am still pretty new to programming, but my first app was recently approved and is now for sale on the App Store. My app uses Core Data and is written in Swift. After some initial difficulties, I ...
-2
votes
0answers
32 views

What is the best way to process XMP metadata from pdf files using PHP? [on hold]

I want to extract all XMP metadata from pdf files using PHP. In terms of "extract" I mean, getting a text-based representation of the XMP metadata from the corresponding pdf file. What is the best way ...
4
votes
2answers
206 views

Is the rule of 5 a valid extension of the rule of 3, or does it imply premature optimization?

I'm familiar with the notion in c++ of the rule of 3, however since the release of C++11 I've seen some sources suggesting it should be extended to a "rule of 5", I.e. the move constructor and move ...
0
votes
1answer
39 views

Scala and exception handling

I am curious why exception handling is a topic often ignored in Scala. Is it the goal of the language (or the style) to not rely on exception handling except for external input/code? I was hoping ...
-1
votes
0answers
36 views

NuGet Package Restore vs Keeping Everything in a VCS [duplicate]

We're having a big argument here over whether to keep all project dependencies in a VCS (Mercurial, in our particular case) or rely on NuGet restoring them. I'm a strong believer in that everything ...
4
votes
4answers
201 views

What kind of user info is ok to be stored as plain text in SQL Database?

I'm practicing around building e-commerce asp.net applications that allows for users to register to the site and their user credentials are stored in a MySQL database. In my sample project the ...
-5
votes
0answers
30 views

PHP Form to Email [on hold]

Can someone help me make a php code that can send information from a formular to an email? This is the HTML code: http://pastebin.com/dRfL09vq Yes I know the code is messy and it's in another ...
-1
votes
1answer
84 views

Passing by argument vs keeping it as a member

I really cannot decide what option is the best, I see plenty of down/upsides to both approaches and right now I'm undecided. For example; class DX11GBuffer { public: DX11GBuffer(ID3D11DevicePtr ...
5
votes
3answers
133 views

Design solution for communicating between multiple layers

We are developing a framework that has several layers and would be deployed in a multi-threaded environment. Each layer may have its own input/output data type. The top layer takes the input, performs ...
-1
votes
1answer
47 views

excute Vs excuteOnExecutor

There are two ways to execute AsynTask, i.e., execute and executeOnExecutor. I already know that execute works serially and executeOnExecutor works in parallel. So my question is: Which one to use? ...
-2
votes
1answer
36 views

Multiplayer in Android [on hold]

I am developing an android game wherein four player will connect to each other, the player must be only be on the same LAN or Network. My problem is I really don't know where to start? Whenever I ...
2
votes
5answers
299 views

When I should add another non-static class?

How do you decide if you need a new non-static class (maybe when you are developing or after it)? The question is two part: Why another class? Why not an static class? New static classes and ...
0
votes
2answers
55 views

Design a Queuing Solution with Clustering and Multiple Consumers

It is a Design Problem which I am listing out here. I have different set of business operations that are carried out for different business entities. Operations: Operation A Operation B Operation ...
-1
votes
0answers
95 views

Can someone clarify strings for me in the C programming language [migrated]

Hey guys so I'll cut this short. A few weeks ago I started learning the programming language C. I have knowledge in web technologies like HMTL/CSS, Javscript, PHP, and basic server administration. ...
0
votes
0answers
5 views

Why is GLEE failing with glClearIuiEXT()? [migrated]

I'm trying to test using GLEE for the first time. I seem to be following the book fine. However, this condition passes, but the function does not set the clear value. At least, I get a black screen. ...
0
votes
2answers
50 views

JUnit3 and JUnit4 in the same project (but different module)?

I have an Android project with a Gradle build. We've decided to commit to writing a vanilla Java implementation of our business logic (since we took care to keep that divorced form the Android ...
-2
votes
1answer
87 views

What are the ways to make code more reversable?

Imagine user complains about some bug in UI and sends you a screenshot. Your application has UI language different from English. This part of application was developed before you joined your team. ...
2
votes
0answers
50 views

How do I create a modal service with AngularJS?

I'm trying to make a service that's polymorphic based upon what mode is specified in the URL. If the char param in the route is set to 'p', I want to use a PresentMode service. If the char param is ...
0
votes
0answers
31 views

How should I handle the Esc key in a “Press any key” screen? [migrated]

Simple question, but I'm on the fence as to the answer. If I design a "Press any key to X" screen, should I register the Esc key as one of those "any key"s, or as a cancellation control? Is there an ...
-5
votes
0answers
61 views

How JIT is faster than that of interpreter in JVM? [on hold]

Please describe above problem for the following given program. print a; print b; repeat the following 10 times by changing i values from 1 to 10; print a;
0
votes
1answer
192 views

The difference between *s.pd and s->pd

I was reading about copy constructors for structs and i found this example: #include <iostream> #include <string> using namespace std; struct SomeData { int * pd; string id; ...
0
votes
1answer
28 views

To cache or not to cach a ReadOnlyWrapper object?

I have a system with a structure like this: The ConcreteWriteable is caching the ReadOnlyWrapper. This is a similar system to what .Net's System.Array uses for its Array.AsReadOnly<T>(T[] ...
0
votes
1answer
77 views

Which design is better? [MainClass] -> [Class] OR [MainClass] -> [MiddleClass] -> [Class]

I have two designs which achieve the same result. -------Design A MainClass has a List and two methods. The methods create an autonomous object and is added to the list. The reason for the ...
1
vote
1answer
86 views

Does dynamically generating classes in python affect readability/performance?

I have a set of classes that represent different objects (tables in a database): class ObjA: # some class specific attributes and methods def refresh(self): # implementation ...
1
vote
2answers
62 views

many to many relation in database schema and oop class diagram

I have Student and Group entities. Student can have many groups and Group can have many students too. so in database I should have middle class and change many-to-many relation to one-to-many and ...
1
vote
2answers
100 views

Overriding methods by passing as argument the subclass object where the supertype is expected

I am just learning Java, and am not a practicing programmer. The book I am following says that when overriding a method, the argument types must be the same, but the return types can be ...
0
votes
1answer
45 views

Does a Form describing JSON “Standard” exist?

I joined a project were we sell services for different providers through web, iOS and android apps. I am working on iOS. I was ask to display a purchase form via a web view and react by what is ...
0
votes
1answer
39 views

Java Doc - Do fields also get documented?

This is a really simple question but oddly, I'm finding it difficult to get a definite answer.... What do you do with fields? Is this valid? /** * Keeps track of all usernames in the system. */ ...
2
votes
3answers
166 views

Is checking return values always required? [duplicate]

We know that checking return values prevent our software from unexpected states. (You can see CWE definition.) But, we are sometimes sure about the return value. For example: bool ...
0
votes
2answers
71 views

Pattern for caching DAOs: strategy or decorator?

I'm building a php system with the Services/DAOs/Domain Models pattern, and now is the time to implement a caching system for the DAOs. Would you use a decorator pattern, or maybe the strategy ...
0
votes
1answer
60 views

Block diagram scheme file format

Yesterday I wanted to show my colleague a work flow diagram representing my view on developing our next project. Today I want to display file structure of another my project with includes as a tree ...
0
votes
0answers
31 views

Best approach to save relationship mapping of country,state,city in orm

I am building a project in play framework java with jpa and I want set country,state,city dropdown fields in a form to be dynamic(from database).So only admin can increase or decrease the value of ...
-4
votes
0answers
36 views

Fresh graduate first job- Tester vs Programmer [on hold]

I'm just graduated from university with major in Software Engineering. I planned to get my first job as system tester for few years and then change to programmer. Is it a good choice to start my ...
0
votes
0answers
16 views

Best method to synchronize data from an eCommerce platform

I have been assigned to design a high level architecture for an plugin, aimed at fetching and syncing product data from an open source eCommerce platform. The eCommerce platform allows development of ...
1
vote
0answers
60 views

Reject pull request or accept incorrect code? [duplicate]

Very often I have to review pull requests of fellow programmers and I face the problem - what should I do when the code is not as good as I would expect? Should I reject the pull request or ...
-5
votes
0answers
35 views

iterate list in python like for loop in python [on hold]

How to loop a list in python. What I have tried is, l=[1,2,4,5] for i in l print i I know how to in C. for(i=0;i<=10;i++){ do something.. } How can I achieve this in python ?
0
votes
1answer
137 views

What'd be better? To add one more local variable, or to call a method twice in general case?

I have the method which returns java.util.Date inside the hibernate-entity class: package ua.com.winforce.loto_partner.commons.db.entity; @Entity @Table(schema = "pr", name = "publice") public class ...
3
votes
1answer
120 views

Functional programming for loop side effect

I am trying to get my head around as to why having a local variable or a for loop inside a function is not considered to be pure functional programming. Given this function: int as_int(char *str) { ...
-1
votes
1answer
44 views

Need an example of a real backlog task or how elaborate must it be?

I'd like to know whether a task must be self contained. Our tasks mostly contain a couple of sentences. To understand what you are to do you should: Read the requirements document for several ...
-1
votes
0answers
24 views

Questions about getting MCTS [on hold]

For work, I have to get some certificates. For now, I'm supposed to do MCTS exams for .NET 4. I know these exams are retired, but looking at the available options I have at work, this seems best to ...

15 30 50 per page