-6
votes
0answers
34 views

Spoj Trie Problem [on hold]

Recently I've tried to solve a problem of SPOj. After submitting the solution it is giving me WA. :( I've tried with some cases and every input is giving me correct answer. But as the online judge ...
23
votes
5answers
1k views

Method extraction vs underlying assumptions

When I split big methods (or procedures, or functions — this question is not specific to OOP, but since I work in OOP languages 99% of the time, it's the terminology that I'm most comfortable with) ...
0
votes
2answers
110 views

Getting to know my way around a database with hundreds of tables [duplicate]

I'm new to a small company that's pretty much run by one guy. He knows all the ins and outs of the system which is quite large. We have a database with about 300 different tables. I'm struggling to ...
1
vote
2answers
65 views

Is it a good idea to contextually name predefined functional interfaces?

I am currently working with Java 8 and using functional interfaces a lot. I often find myself writing code like this: public interface MessageHandler extends Consumer<String> { } Is this a ...
-2
votes
0answers
17 views

Where can I find the contents of FibreConnList? [migrated]

Given a block of code, if (messageType == typeof(FibreConnectorClass)) { FibreConnectorClass fibreconnect = (FibreConnectorClass)payload; fiberConnectorComboBox.Items.Clear(); foreach ...
-2
votes
0answers
19 views

How do I access, and encrypt, the RTP stream created by SIP on Android? [migrated]

I am using SIP and an Asterix SIP server to create a p2p RTP connection between two devices. The RTP connection is created automatically when I create a call as described in Android developer guide: ...
0
votes
2answers
89 views

Add file paths to database

I am scanning a directory of files and want to add them to a database. I have two variants: for file in walk(basedir): files.append(file) for file in files: add_to_database(file) versus ...
2
votes
1answer
127 views

Are web sockets a browser feature or supplied by a specific OS version?

Are web sockets a web browser feature, developed and evolving as the browser developers want, or this feature dependent on the OS version? For example, can I use this feature in JavaScript in IE and ...
0
votes
0answers
26 views

Securing a WCF Service [on hold]

We have been researching using message level security for our WCF Services, but have run into a lot of issues dealing with client certificates and getting them to work correctly. My concern is that we ...
1
vote
1answer
115 views

how can i make a program written in c++ with qt to text and graphic mode?

I have seen in many programs, almost only on linux, that when you run the program with a graphical manager(Clicking the executable) the program runs in a graphical window and when you run it from the ...
-2
votes
0answers
23 views

SyntaxError: Unexpected token case [closed]

I am having trouble finding my Syntax error in this code. It says it has to do with the case, but I can not see what I did wrong. Sorry I couldn't narrow the code down, I tried and it just gives me ...
-3
votes
0answers
22 views

How Layered Voice Analisis Works? [on hold]

This voice analysis technology has lots of applications, but the available versions are expensive and are oriented to security and businesses. I am interested in developing an open source version of a ...
0
votes
1answer
43 views

Printing an geomterical object/structure and determining the mid point of the two lines passing through it

I am very basic in C programming, may be printing a variable or so. Can any one of you can help me to give me a example code or guide me how to construct an object and determine its mid point? Or to ...
2
votes
2answers
94 views

For a concrete SQL Repository, should I encapsulate the SQL logic inside or outside the repository methods?

If I have a concrete repository based on SQL data access, should I pass in SQL to the repository methods or encapsulate them within the methods. I feel if I pass them in, then I am coupling my ...
-2
votes
2answers
59 views

What should I call my repository methods? [on hold]

In my database, I have 2 tables (ColorHeader and ColorDetail) and I have two views, one for each table (ColorHeaderView and ColorDetailView). I insert/update/delete into my tables and read from my ...
3
votes
0answers
47 views

Are Secure Desktop and separate process enough for hiding sensitive information in RAM?

In my program, I have an encrypted database on the file system with a password. It is decrypted in RAM, and the sensitive data get spread out too much in RAM for mistake to be auditable easily enough. ...
1
vote
3answers
310 views

How are basic functions implemented in a programming language if they are not built in? [on hold]

The lowest levels of a programming language's library functions are always obscure and often have no code that looks like it even remotely does anything. Some languages have these functions like ...
0
votes
0answers
14 views

Refreshing locally downloaded files

Have been creating a Ruby gem that provides the functionality to automate deployment against a proprietary system developed by a vendor. The management interface exposed by the vendor uses SOAP ...
2
votes
1answer
27 views

Queue rescheduling naming convention (Command pattern)

For my project I'm creating a queueing mechanism based on the Command Pattern, which can execute one of a number of jobs. Jobs can add other jobs to the queue or can be added by a human. Most of the ...
6
votes
1answer
152 views

Should I build undo stack in model or its wrapper?

I am building an application (Python/PyQt). The first-order item will be a tree view/model with many helper functions to add new items, move them around in the tree, etc.. Then I will have a main ...
0
votes
1answer
32 views

Will simply adding a 'Allow Cross Origin Requests' to my node app work?

I'm trying to make a 'frontend web scraper'. I had the idea of setting up a node app that had a dynamic route that used Request (the NPM package) to scrape pages and displayed them as it's own. Then ...
-2
votes
1answer
70 views

How can I add more classes in C# Windows Forms project? [closed]

When you program in Java, you have a package, and in that package you put class files, where you write your logic, you have one main file, and you spread your code in the rest of the classes, for ...
1
vote
1answer
61 views

Is it okay to expose implementation components in a library?

I'm writing a library for general consumption (It's free software and open source). Is it okay to have a visible namespace (e.g. Library.Implementation) for implementation-only components that remain ...
6
votes
2answers
158 views

Is higher-rank parametric polymorphism useful?

I'm sorry if anyone has noticed a recent pattern with my questions. I've developed an interest in type systems. I'm pretty sure everyone is familiar with generic methods of the form: T ...
-3
votes
0answers
69 views

How to prepare myself to be a software engineer? [closed]

I have been a sport programmer using C++ for 4 years, and I can say I'm confident in my algorithm and data structure skills. Recently I decided to try something else, so for the past few months, I ...
-1
votes
0answers
14 views

Difference between (int*) calloc and just calloc? [migrated]

What is the difference between: int *array; array = (int*) calloc(5, sizeof(int)); and int *array; array = calloc(5, sizeof(int)); I don't get it. Both samples work. At the university the ...
1
vote
3answers
95 views

What is the best way to store and use an application level runtime parameter? [on hold]

I have to design a java console application which accepts a runtime parameter as an argument to the main method. The application will be eventually used by multiple scripts. I would prefer to avoid ...
2
votes
2answers
57 views

How hidden classes allows faster access to properties in google's V8?

As Lars Bak and Jay Conrod described in several videos and papers, the main idea of hidden classes in V8 is to store concrete offset or transition to another hidden class which probably contains this ...
0
votes
2answers
45 views

Ideal way of updating app's views when data changes [on hold]

Okay this is not platform specific question. But any answer related to iOS,Android or Windows Phone will help. So I am building a chat application (yes another one) but I am really confused about how ...
0
votes
0answers
26 views

Is RTC suitable for broadcast, possibly through WebRTC [closed]

When looking in to what technologies are available for real time video and audio broadcast streaming, I found a lot of things that seem to be really inelegant. Flash is, well, Flash. Http streaming ...
-3
votes
0answers
30 views

It possible that iOS app could add music to iTunes (on the same device)? [closed]

Is it possible that iOS application (on iPhone, without jailbreak) could add music to iTunes (also on same iPhone). Like for example, download music from internet or other device via wifi and ...
4
votes
3answers
131 views

Algorithm that generates a group of men and women who are each interested in everyone from the other gender

In my dating app, I need to compile lists of men and women where all of the men in the list are potentially interested in all of the women in the list, and vice versa. That is, in a list of 10 men ...
2
votes
2answers
79 views

Function naming design in a C Library

I'm writing a C (c99) library that operates on strings. I'm having a design problem writing functions that will perform in different modes. For example; the Find function can search for: the ...
-3
votes
0answers
20 views

and or operator not working properly in mysql [closed]

this is my select query i want to fetch records who have status like "P" or "I" but it not shows me records what is wrong if me give or condition in status SELECT ...
-4
votes
1answer
49 views

What are the most popular methods for pricing options? [closed]

I am taking a college finance course and was interested in methods that price options. If anyone knows any, I would appreciate a link or description. Thanks!
-3
votes
0answers
22 views

Problem extracting Processing [closed]

the software Processing does not extract when I try so using WinRar. The file ant.jar just stops and does not extract. Neither does it copy if I try to do so. What may be wrong?
10
votes
2answers
194 views

How do you handle shared concepts in a microservice architecture?

I am researching architectural patterns for an application I'm developing and a microservice approach seems like it would be a good choice but I am not sure how to handle interactions between the ...
-1
votes
1answer
31 views

JavaFX client side application [closed]

I am thinking of developing a JavaFX client application to connect to my backend database server for retrieval of data etc and display in my client app. For this, i would also need an ...
-3
votes
0answers
18 views

How to update more tables using ajax post with dynamic accept friends buttons? [closed]

i have a php file to accepting friends request. <?php session_start(); include 'db.php'; error_reporting(0); $username= $_SESSION['username']; $i=1; $sql = "SELECT * FROM friends WHERE ...
-3
votes
0answers
37 views

Compiling in C with Nopepad++ [closed]

I am a beginner learning C. I am using notepad++ and I am having trouble compiling because my program won't run. I added the variable paths but hopefully I did it right. I have Mingw and Nppexec. Can ...
-4
votes
0answers
39 views

How can I create a program which records how much internet data is used by each website visited? [closed]

I don't believe this is even possible but it's worth asking, I would like to create a batch file that when run, it will record all IP addresses or URL's visited during an internet session. It won't ...
-2
votes
1answer
41 views

Recursion and dynamic programming for maximization function [closed]

Player A and player B are given an array of size n. Each cell contains a positive integer, or 0. A and B take turns as given: Player A keeps either the first or the last cell, then player B keeps the ...
0
votes
1answer
25 views

Tags DB structure - tags table using one join and GROUP BY, or pivot (join) table using two joins?

I'm implementing tags into my question and answer application. Users will be limited to the tags available by the app, so they can't choose their own. So maybe only 30-50 tags will be available. This ...
0
votes
1answer
97 views

How much to encapsulate when objects being dealt with are pretty similar

As I have been answering questions related to object-oriented design and how to go about reducing the amount of classes to make sure that there is not a lot of "class clutter" and code repetition I ...
2
votes
1answer
83 views

Is it bad to use POST only on an API?

I'm about to develop a new API for our website. Part of the design I've considered to use the POST and GET methods but after reading some security stuff I realise that GET is a bit less secure(i.e. ...
1
vote
1answer
148 views

What is better repository design?

I have tables that I insert, delete and update, but I read from views. At times, I may read from the tables as well. What is a better generic interface for a Repository: public interface ...
-3
votes
4answers
157 views

Open source License that doesn't require credit [on hold]

Is there a known open-source license where the user who reuses or redistributes the code is not required to give credit to the author? This is actually the same as just assuming copyright to the ...
0
votes
0answers
53 views

Choosing a javascript framework for a massively multi-player game : React vs Ember 2 vs other better option

I'd like to add to my Ruby on Rails app a javascript front end using basically Rails a json api sending data to the front end. The question for me is: React or Ember 2 (or maybe another viable ...
-5
votes
0answers
29 views

best language for rpg making [closed]

unlike most people who ask this question i have quite a good programing background mainly in python HTML CSS and Java but i raily made gui games i would like to learn a new language that is both ...
1
vote
1answer
77 views

Where and when does firmware of a device run?

Does firmware of a device run in the device or the device's controller? When does firmware of a device run? Does it run if and only if the cpu sends commands and/or data to the device's controller? ...

15 30 50 per page