0
votes
0answers
2 views

PHP USB serial port call from Windows to Linux

I have a piece of simple code that works on a Windows - WAMP environment, e.g. <?php `mode com3: BAUD=38400 PARITY=N data=8 stop=1 xon=off`; file_put_contents(com3, ...
-1
votes
0answers
14 views

Any tips for overcoming code quality obsession?

So I'm self employed developer who works on commissioned projects. One issue I've seemed to develop over the last year is that I stress too much over the quality of my code rather than the finished ...
1
vote
0answers
15 views

How do I prevent attackers from duplicating submissions?

I want to create a polling website. A client requests to answer the poll using POST, and the server responds with the candidates. The client then sends a POST with the candidate information and the ...
1
vote
0answers
13 views

Refactoring numerical code for TDD and encapsulation

I am coming to terms with TDD, and the fact that I need to re-factor some code that I'm (re)writing. I am having a problem that I think is a classic conflict---TDD vs. encapsulation of private ...
1
vote
1answer
34 views

Using bool/flags to govern C++ program flow

I find myself consistently creating flags within my C++ program, that are later checked to determine if I need to do something, and it honestly feels kind of "hack-y" despite being a simple solution. ...
-4
votes
0answers
18 views

How does Stripe implement the fly-in particle effect on their open source page?

https://stripe.com/open-source When the page loads, the title OPEN SOURCE has the particle flying in animation. Is this done programmatically or otherwise? If programmatically, can someone shed some ...
2
votes
1answer
34 views

Big-O for Immutable Trees

How would you calculate the time and space complexity for a tree algorithm that creates a copy of a tree, but reuses as much of the original tree as possible? For example, A /|\ B C G /|\ D ...
0
votes
1answer
22 views

Swift: Creating an empty array

The following: var emptyArray = [String](); What do I need the parentheses () for? [String] says, that the array accepts strings only. But why do I have to put the () there?
-4
votes
1answer
24 views

Hosting a website and an API on the same server [on hold]

I'm planning to write an API for my mobile app, and for that, I'd also probably need to move to a cloud hosting instead of shared hosting. I've never really researched cloud hosting and have a simple ...
2
votes
1answer
36 views

Methodology for exploring APIs in dynamic languages

As a regular user of Standard ML and, to a lesser extent, Haskell, the following pattern is deeply ingrained into my "instinctive" approach to navigating and learning new APIs: Understand the types. ...
9
votes
5answers
543 views

What's the use of .Any() in a C# List<>?

I've been discussing this with colleagues, and we couldn't figure out what the use is of .Any for any given List<>, in C#. You can check the validity of an element in the array like the ...
1
vote
1answer
28 views

Maintaining multiple versions of a library that all need maintenance and development

I'm writing an interface to a lexicon in Java. I just started this project, and the lexicon is on version 3.8. When a new version comes out, say version 4.0, database columns may be renamed, removed, ...
-4
votes
0answers
35 views

Should I learn about computer Viruses? [on hold]

I'm extremely interested in Computer viruses, but obviously they are somewhat of a taboo subject..Where can I learn simple virus creation? The online info is kinda scarce.. (Or I'm just a terrible ...
1
vote
1answer
45 views

Is there a software attribute (like reliability) that describes a bug free experience?

TL;DR Do non-crashing bugs always affect Functionality, despite possibly affecting other quality attributes as well? Or is there a more specific quality attribute that non-crashing bugs always ...
-2
votes
0answers
16 views

Coin Change Problem [migrated]

I am facing difficulty with Dynamic Programming. I was trying the trivial Coin Change problem- COIN CHANGE Problem UVa I am trying to use top-down approach with memorization but I am getting TLE. ...
0
votes
1answer
22 views

Dynamic gesture recognition with fingertip points

I have built a fairly robust program in c++ which tracks several points on a hand. It accurately quantifies the size of the palm, the center of the palm, and the fingertip locations among other hand ...
3
votes
0answers
23 views

How Should I Design JSON Serializable Data Classes To Respect Future @NonNull Fields

I have an app that uses Gson to serialize/deserialize data classes and persist data between runs. My code uses @NonNull annotations for many fields/parameters/method returns and one thing that was ...
-3
votes
0answers
12 views

Printing from Android tablet on HP LaserJet P1102w - Printing Framework vs PrinterShare processing time [on hold]

I currently have an app that sends a PDF to an HP LaserJet P1102w Wi-Fi printer, and I have noticed that there is a huge difference in the amount of time the printer takes to process the file between ...
-5
votes
0answers
21 views

Best cloud-tool approach today for a Feed app? [on hold]

When we most recently did a feed-based dotcom (a couple yrs back) we used Parse and then wrote the feed manually based on that. At that time it was only becoming trendy to use Parse + PubNub But ...
3
votes
1answer
44 views

Who is the Owner of Information? Memento vs. Originator

Imagine for a second that I'm implementing the Memento Pattern, using the following classes. Classes An Originator class that has public and private, properties and fields respectively A Memento ...
3
votes
4answers
65 views

Shell commands in bash or python? How much encapsulation is too much?

I'm thinking about how to decide whether it's better to encapsulate my work behind well-named function names, or to expose it - which will help developers understand what's going on more quickly? Is ...
-3
votes
1answer
38 views

Other than iOS - Are there other languages or frameworks where Tables are known as a single column of data? [on hold]

Why might Apple call a UITableView - which in their own words "[is a] view [that] displays a list of items in a single column." the way they did? This description sounds like a great way to display a ...
1
vote
0answers
18 views

How to properly manage “business” constants with AngularJS?

I'm working with AngularJS on a browser game and I have a bunch of "business" constants. These constants will be often updated during game testing (game balancing) and are used by different ...
-2
votes
0answers
34 views

Is R-Language programming worth the time to learn? [on hold]

I am an Accounting Major, I have been encouraged to take a Sabermetrics course which will incorporate the use of R Language. I was wondering if this course would be beneficial in a long-term way or if ...
-3
votes
0answers
26 views

How to css for internet explorer browser? [on hold]

I don't know how to change the CSS properties for IE 8 and above... can any one help me??? my desktop media query css is below /main menu/ .navbar-default{ margin-bottom: 0px; } ...
-2
votes
1answer
25 views

Swift: for-in with two values

I started learning C some weeks ago and today I started learning Swift. The code is the following: import Foundation let interestingNumbers = [ "Prime": [2, 3, 5, 7, 11, 13], ...
0
votes
2answers
71 views

What happens to lock's state and methods when a thread acquires a lock?

Assume I have following class class Student{ void method1(){ // Do Something } void method2(){ // Do Something } } And the object of this class is used as monitor in ...
-2
votes
0answers
11 views

Tortoise “out of date” commit error [migrated]

I have created a new folder and I did a "checkup" and I got all my files from the repository. After that, I put in trunk file a new file(file.R) and do an "update" . Everything seems to be fine but ...
0
votes
2answers
60 views

Best practices for testing deep objects?

I'm writing in javascript with 'should' library, but this doesn't matter. I should write test for method, which returns a quite big object with a lot of fields. How I should write my expected result? ...
6
votes
2answers
1k views

How is memory managed for non-declared entities in the C language?

For example: In the following code, how and where is the number '10' used for the comparison stored? #include<stdio.h> #include<conio.h> int main() { int x = 5; if (x > 10) ...
0
votes
0answers
24 views

Suitable workflow for multiple people with multiple skill levels

I've been reading up and trying out various workflows with Wordpress/git. There's a number of options available and I've got a few workflows roughly modelled but no matter which one I choose there's ...
1
vote
1answer
66 views

How do I refactor a loop that does aggregation while doing it's regular job ?

What am I suppose to do I am working on an API, where I get a list of objects from the output of an SQL query using an ORM. Now this API call needs to send following information down to the client. ...
0
votes
0answers
47 views

Efficient File Storage

I'm keeping a storage of a large number of files which grows indefinitely. Some of these files will be identical, but most will be unique. Over the last 5-6 days, the storage has grown to nearly ...
0
votes
0answers
5 views

iOS Best practice for handling model objects

There are different levels I'm asking this question at. Case 1: Let's think about the typical drill-down design. Say a table view controller has an array of custom objects, and tapping a cell will ...
0
votes
0answers
25 views

IBM PC XT 5162 even and odd BIOS

I am writing a whole new BIOS, from scratch, for the 5162. The already existing BIOS is on chips U34 and U35. Normally, exactly one byte (the odd byte) should be on U34, followed by exactly one even ...
-3
votes
2answers
70 views

Application Development Without SDK [on hold]

Is it possible To Develop Application for any particular platform without SDK (Software Development Kit)? Let's Take an Example of Android Development: can i develop for Android without SDK? If it ...
-2
votes
0answers
39 views

swapping address values of pointers [migrated]

Below is code and I want to ask, why I am not getting swapped number as a result, because instead of swapping numbers I tried to swap their addresses. int *swap(int *ptr1,int *ptr2){ int ...
-2
votes
0answers
9 views

get row number on macting perticuler value using PHPexcel lib [on hold]

phpexcel lib @version 1.8.0, 2014-03-02 $objPHPExcel->setActiveSheetIndex(0)->getrow() i want row number on matching particular cell value something like .. get_row_number("match_value")
-3
votes
1answer
22 views

Golang Testing Process

I am new to golang and RunC and now doing some research on it as a part of my intership. What kind of contents do the ' _test.go ' functions check during testing a program or a container with Golang ...
-3
votes
0answers
31 views

SAP ABAP and SAP Basis Consultant [on hold]

What is the difference between SAP ABAP and SAP Basis consultant the job roles what they do? How is it different from people who develop in python or java My understanding is SAP Basis consultant is ...
-1
votes
1answer
42 views

Are media queries really needed for software development on web side?

Do media queries need to be added to a site for all devices and screens? I see that it is necessary for making the min-width for better screen of media. But does a button actually end up in a another ...
0
votes
0answers
45 views

Architecture of an extendable application

I am developing an embedded application on an ARM platform. I want to use ArchLinux as the underlying operating system and then create my own GUI. I want the application to be extendable (have apps if ...
1
vote
2answers
76 views

Is recursive-descent parsing a panacea for DoS threats posed by 'Evil' regexes? Or does evilness stem from the grammar?

ReDos attacks exploit characteristics of some (otherwise useful) regular expressions ... essentially causing an explosion of possible paths through the graph defined by the NFA. So does using a ...
-6
votes
0answers
32 views

A login page example in AngularJS Material? [on hold]

Could anyone be so kind to give me an example of a login page in AngularJS Material Design, with the login "card" (their parlance) centered in the page and another page behind it, blurred and inactive ...
-4
votes
0answers
50 views

how does recursive backtracking work in this one? [on hold]

The question i encountered in this one :- Write a method countBinary that accepts an integer n as a parameter and that prints all binary numbers that have n digits in ascending order, printing each ...
-4
votes
2answers
54 views

Passing variable to static function, does it create hard copy or just reference? [on hold]

The code below will not make a hard copy of my dictionary and will not use extra memory right? public static void firstFuc() { Dictionary<string,double> myDic=new ...
0
votes
2answers
94 views

Why does presence of value evaluate as “Truthy” in Python? [e.i. Types evaluate True in conditionals]

Example: if float: print('float is true?') returns: Why do all objects other than ones explicitly defined as False or "False" evaluate truthfully?
0
votes
2answers
61 views

Alternatives to cron jobs or other ways of improving scheduled task performance

I'm working on a social networking website where users gain ratings after specific actions taken and proper conditions are met on the tables. The ratings are calculated depending on 'total hours ...
0
votes
2answers
53 views

Multiple Canvas in the Browser — How to Proceed?

Here's something I wrote ages ago as Java applet. I want to convert it into JavaScript and run in html5 canvas in the browser. From what I can see, canvas makes the most sense here. (SVG / DIV ...
-4
votes
0answers
25 views

how to solve error opening (../../modules/highgui/src/cap_ffmpeg_impl.hpp:545? [on hold]

I trying to connect visual studio 2010 and foscam IPcamera. After running the code it give me this error "warning: error opening (../../modules/highgui/src/cap_ffmpeg_impl.hpp:545". Opencv2.411. Any ...

15 30 50 per page