-2
votes
0answers
17 views

turn integers from row to column .txt

I have a huge .txt file with 5 million integers in it. Iwant though to change the integers from meing in many rows to be in all 5 millions in 1 column. I don't have programming experience but have ...
0
votes
1answer
11 views

Memory allocation while calling a sequence of functions in Java

A method getReminder takes two integers and returns r = (a^5)%m. This method relies in two BigInteger numbers BigInteger.valueOf(a).pow(5) and BigInteger.valueOf(m), but BigInteger was never declared....
1
vote
2answers
38 views

Should I document overloaded operators in C#?

So I have been working on a C# Matrix library. I've been documenting it really good so far. The thing is I don't know if I should document my overloaded operators, I mean, it is kind of obvious, isn'...
-1
votes
0answers
8 views

Connection Refused Error while trying to open Python Console in PyCharm

I am new to PyCharm/Python. Installed successfully PyCharm (Communities edition) on MAC ensured Python is installed and available (Version 2.7.11). Issue I am facing is when I am trying to open ...
1
vote
2answers
30 views

How to create an efficient implementation of a dictionary of synonyms?

How do I create a dictionary of synonyms that is efficient in terms of retrieving synonyms of a word? Basically, I want to use some sorts of data storage to store groups of words, and enable an end-...
-5
votes
0answers
30 views

Question about java arrays in eclipse [on hold]

how would i go about doing this question?? Given the following array declarations String[] friends = {"Mickey", "Minnie", "Donald", "Goofy", "Pluto", "Daisy", "Roadrunner"}; String[] birthdays = ...
-1
votes
1answer
60 views

Why does the development team of intellij idea store its dependencies as jars (e.g. junit) inside their cvs?

The very popular intellij idea has currently saved a lot of dependencies as actual files in their git repository e.g.junit, which i don't understand. Build tools like maven provide excellent ...
-3
votes
0answers
44 views

List of programming languages which compile to other [on hold]

As the title says I want list of programming languages which are compiling to other(or their target platform). Example is Haxe, which compiles to C++, Java, C#, Python, PHP, JavaScript, Lua and others....
-3
votes
0answers
42 views

Is it proper to hard fork or rather soft fork an abandoned repo on Github?

So I, along with a few other collaborators am attempting to fork an abandoned Github, but relatively popular repository on Github. The question being is whether or not we should "soft fork it", by ...
1
vote
3answers
94 views

Should I be doing checks on data that I'm supposed to be able to trust?

I am working on the frontend of a product, and it is now broken due to bad data from the backend. This can be caught internally before it gets anywhere close to production, but we end up fiddling ...
-3
votes
0answers
24 views

A JS linter/beautifier than enforces braces around single statement blocks?

I recently started using jshint to lint our javascript code before it is committed. However I found that I could still do this: if (condition) statement; I'm trying to find a linter that will ...
-2
votes
0answers
20 views

What's a good way to get introduced into TFS and MSBuild? [on hold]

I'm to the point where I need to make TFS do some custom stuff. That whole world is seeming to be pretty opaque. Between process XAMLs, .targets files everywhere, what's TFS and what's MSBuild, and ...
2
votes
0answers
32 views

Alternative for eval() in javascript for expression evaluation

I'm looking at the alternative that can substitute the use of eval() and new Function() javascript techniques. I'm developing a solution build with javascript and the platform on which it is built (...
-7
votes
1answer
81 views

In the scope of C, what is the significance of '->'? [on hold]

I'm looking at old command-line cdplayer software for linux. This software was written in 2006, but won't compile with the latest GCC. I've taken to weeding through the errors and trying to patch ...
0
votes
0answers
18 views

Design from API documentation to code

I have a full API documentation made of uris, request and response bodies ready to use. Uris are all externals, and I have to first visit an entry point that'll give me a token, and then use that ...
1
vote
1answer
71 views

Functional Programming in PHP

Modern PHP is mostly written Object Oriented. Other than the fact that there is inertia towards the Object Oriented in the PHP community, is there anything about the language itself that would make it ...
1
vote
1answer
23 views

How to generate random Boolean functions in Algebraic Normal Form in Python?

I am looking at A SAT-based Public Key Cryptography Scheme and got inspired to challenge myself to write an implementation of this Cryptography Scheme on Python. A part of the cipher encoding would ...
-1
votes
2answers
85 views

Is main() function better on top of all other functions? [on hold]

My college professor told me that main functions should be defined on top of other function definitions. We should use a forward declaration in order to accomplish this (we use C at that time). So yes,...
0
votes
0answers
27 views

Structure of RESTful Service with Java Spring for Beginner

I am relatively new in terms of Java web development skills. I have a project that I think would make a good candidate for a RESTful service from what little I understand about APIs. I'm trying to get ...
0
votes
1answer
20 views

Find whether or not current location is near other locations with given radii

tl;dr: "Am I, with any given location, inside of any number of circles with varying radii" Assume you have a database full of locations (coordinates) with arbitrary radii. Now the user enters and ...
-2
votes
0answers
27 views

Private chat window in PHP chat

I am currently building a chat as a personal project, and I have no idea how to solve this problem. I need the possibility to make a privat chat window, for private chats between users. However, ...
0
votes
0answers
13 views

Volley with AsyncTask

I'm developing an Android library so that other apps would use, which is a kind of an API 'driver', to be used with an external services API and contains also UI components. On most of the requests ...
-3
votes
0answers
20 views

Either overlaying or deleting button text after it is clicked [on hold]

For a game I'm making, I want the player to have a choice of two (or more) buttons, and when a button is clicked, a new screen appears. However, the button text still remains when it is clicked. I've ...
0
votes
2answers
95 views

Where/how to store program data?

This may be more of a software design question - but I've been working on my first "real, non-academic" Java project and have recently learned about good code practices (such as breaking down methods ...
0
votes
0answers
29 views

coming from java to nodejs whats the convention for error handling logging? e.message or e.stack?

I come from java, when I got an expected error I printed stack traces. I'm coming now to work on nodejs (never really worked on javascript). and in the nodejs project which I need to maintain (...
0
votes
0answers
15 views

How to track unread messages for a user in a multi-channel chat application

I'm building an multi room chat application similar to gitter/slack as a side-project. The database schema i have so far is: user table (userid,username) chatRoom table (roomname etc) user-chatroom (...
-1
votes
1answer
98 views

Are all boolean arguments flag arguments, and thus a code smell?

Martin Fowler describes the Flag Argument code smell as a "kind of function argument that tells the function to carry out a different operation depending on its value". Answers to Is it wrong to use ...
1
vote
1answer
28 views

Seperate codebase for responsive website and mobile apps?

I made a simple responsive single page web app (about 5 views) to replace our old jsf web application using angularjs+bootstrap. Now looking into frameworks like ionic, cordova and trigger.io. what I ...
-2
votes
0answers
28 views

Is it possible to know the names of functions that were called by a particular unit test in Javascript code coverage? [on hold]

I have a javascript project. I want to know the names of functions which were run by the unit tests. Is there a coverage tool that can provide this information? If no, how can I achieve this on my own?...
2
votes
3answers
72 views

MVVM Commands - one command for everything or multiple commands?

In my last company, on handling view commands, in the ViewModelBase there were one central command implemented, like public ICommand ToolCommand { get; set; } And in the ViewModelBase, it's been ...
2
votes
2answers
87 views

Idempotency and concurrency in a REST web service

Is concurrency and idempotency mutually exclusive for a REST web service or can it be done so a service can be both concurrent and idempotent? Using a optimistic lock methodology like using Version ...
-2
votes
2answers
22 views

ArrayList Dynamic remove and add for socker client

I have one ArrayList in Java and a save the socket and one unique id. When someone client is add in the ArrayList, the unique id i have is NOT the same with position in ArrayList. When someone ...
1
vote
2answers
42 views

Separating save logic from WinForm to make it reusable

I have a Windows Form for creating configs. It has around 50 fields of data, which represent a group of entities, that I need to capture when the user presses the save button. Currently, on the press ...
0
votes
0answers
23 views

Handling a forking/pull-request flow with a staging branch

I am currently in the middle of planning a new Git flow in my company and the new idea for it is to migrate over to forking and pull requests as well as add a staging branch for testing. The proposed ...
-4
votes
1answer
81 views

Is the followig code Compiler dependent or independent? [on hold]

Hi is the following C code snippet compiler dependent: int c = 11; int x = ++c + c++; or compiler independent?
-2
votes
0answers
25 views

XSLT-like alternative(not necessary XML, JSON etc) for data transformation/mapping? [on hold]

I need a declarative language/DSL to express data structures and data transformation/mapping. So far XSLT is the only I could find but unfortunately it seems too convoluted and complex for data ...
-2
votes
1answer
31 views

What should be the best approach to implement a popular product sorting in any e-commerce system?

I'm working on an e-commerce application and need to implement a sort by pannel like (Popularity, Price Low to High, Price High to Low, Discount and New Arrivals). But I'm confused with sort by ...
-3
votes
0answers
23 views

Transparent ListBox can't see items

I created new control then inherit listbox ... as follow: Public Class TransparentListBox Inherits ListBox Public Sub New() MyBase.New() Me.SetStyle(ControlStyles.UserPaint, ...

15 30 50 per page