0
votes
0answers
4 views

Modiyfing Browswer Fingerprints across multiple devices using the same extensions.

If i have multiple accounts across multiple devices each with separate IP address what further changes could be made to make the devices look unique. The devices would be used to visit the same ...
-1
votes
0answers
39 views

I'll be graduating with a degree in Communications and Technology but i don't feel like i know how to program

G'day i'm a student in Australia and i'm currently taking a bachelor course in Information and Communications technology. At the moment i'm in my second to last semester in my university and next ...
-3
votes
1answer
25 views

How to give not null constraint at table level?

I'm a rookie to SQL.Can I give not null constraint as given below in MySQL create table instructor ( ins_id int, ins_name varchar(100), salary int, not null(ins_id) ); ...
2
votes
1answer
53 views

How do I feel more productive after programming?

I really enjoy the actual programming part of programming, and actually writing the code, and figuring it out. But on this project i've been working on, most of my time has been spent on kind stupid ...
0
votes
0answers
41 views

Making an anti-tracking plug-in for browsers

I am pondering the idea of making a browser plug-in which would defeat tracking in a different way: instead of blocking trackers, such as Privacy Badger does, modify the ID and throw it back in the ...
-3
votes
0answers
31 views

Cadbury problem puzzel using c

The distribution procedure is as follows:- If bar is not square in shape, then the largest possible square piece of Cadbury is broken and given to the first child in queue. If bar is square in ...
-1
votes
0answers
37 views

How to add and use a database in a C# project in Visual Studio 2015?

I'm learning C# for about 7 months now, and currently I'm studying LINQ. I worked with local collections, but I'd like to use it with databases too, and learn how to use a database in a program. The ...
-2
votes
1answer
19 views

Python Assignment of a Variable By Looping through a Range

The first two if statements should be identical... The first one works, the second does not work. What is wrong with the second if statement? row=0 tsig=0 InTrade=[] for data_buy ...
-2
votes
0answers
18 views

How would you send formatted data from a web server to a browser?

I'm currently working on a project that uses an assortment of web APIs to collect time varying data (e.g. weather, sports scores, etc.) After I've collected this data, I'm trying to create a ...
-2
votes
1answer
54 views

Should I take a job debugging undocumented code? [on hold]

I've been programming in several languages for quite some time (these days mainly python although I have used C#, C, C++, Java etc. in the past), although I haven't done too much professional work, ...
-1
votes
0answers
16 views

Would you still pick JSF2 over REST based view technology today?

I'm having a significant difference of opinion with colleagues regarding what view technology to use for a web application today. There is currently an existing application in place written in ...
-2
votes
0answers
26 views

Ideas for Administrator control and view

I´m developing web Application with administrator. Admin can show simple things like count of clients per day, clients (general), count of categories, subcategories ad products. My models Category: ...
-3
votes
0answers
30 views

Hardcore Software Engineer and Master's in IT Governance [on hold]

Call me a programmer, developer, software engineer: I am really into technical details. I've reached a phase where I need to know more of project management. However, I found a Master's in IT ...
-1
votes
0answers
19 views

how does rewinding on dieharder work?

The manpage for Dieharder seems to say that if the sequence of random numbers that you give it is too short, it will "rewind" the list until it has enough numbers to test on. If I give it a 10000 ...
-1
votes
0answers
7 views

problem re-associating .py from Python26 to 27 on Windows 7

I needed to re-associate python .py file from Python26 to Python27 on Windows7. New association now works but at first when I ran test python script it failed. I had to re-run same script 3 or 4 times ...
-1
votes
0answers
20 views

Learning error -checking in C

I want to learn error-checking in C. I posted my code on code review and got the answer that I didn't have error-checking. AFAIK I can do error-checking in several ways: Assertions for preconditions ...
-2
votes
0answers
8 views

Drop - down menu composed of associate images

I would like to create such menu: First, a few images are displayed. Next, when the user clicks on any of them, a few other images scroll down out of the clicked one, so that the user might choose ...
1
vote
1answer
51 views

Standard way to call virtual method

So recently I was working on a project where I had a base class that provided some common functionality. It had several virtual (overridable in vb) functions. I noticed that some of these methods ...
1
vote
1answer
15 views

Spring - rest API - How to unit test a rest API which gets data from another service

I am new to rest API's as well as mocks. Please help me .. I have a set of rest API's for which I need to write unit tests. rest API in turn calls another service , gets the JSON response and sends ...
5
votes
4answers
114 views

How to combine strict TDD and DDD?

TDD is about designing code, guided by tests. Thus, typical layers aren't usually built upfront; they should slightly appear through refactoring steps. Domain-driven design involves a lot of ...
-3
votes
0answers
36 views

New methodology for compression: Non-universal tree, with pyramidic styling

The program below works efficiently. It can do the 'enwik8' test run in 13 minutes on a 2.6ghz 4gig, machine. It compresses to 10% of any original file over 50 bytes. There are no consequences to it ...
-1
votes
1answer
24 views

Choosing default size of application window

Suppose I'm developing an application with a simple graphical user interface, like a basic text editor. How do I choose a good default size of the application window? Should the height of the window ...
0
votes
0answers
35 views

Onion architecture vs 3 layered architecture

I see only benefits to the onion architecture over the 3 layered architecture where the BL had responsibility to call methods on DAL (or an interface of DAL) to do CRUD. The onion has better ...
0
votes
2answers
81 views

Is it bad practice to verify arguments passed to a function? [duplicate]

I find myself writing a lot of functions whereby the first few lines "verify" the arguments, that is, they typecast, check falseness, range, etc. before doing any work. The main reasoning for this is ...
3
votes
1answer
50 views

Should a command line tool print a usage statement in response to an incorrect call?

It seems increasingly common for command line tools to include code like: if( argc != X ) { usage(); exit( EXIT_FAILURE ); } or similar. What is the currently accepted state of the art? Is it ...
0
votes
0answers
9 views

Latency in creating configuration in apache commons configuration

I am planning to use Apache commons configuration (https://commons.apache.org/proper/commons-configuration/) to merge various configuration files. Since for me, the configuration file names are ...
-3
votes
0answers
46 views

Are there compilers that implement immunity-aware programming techniques? [on hold]

Are there compilers with flags or directives to implement immunity-aware programming techniques such as function token passing data integrity verification and/or correction function parameter ...
1
vote
0answers
14 views

How do you feed sets of connected data elements to an artificial neural network?

I'm currently working on a neural network to try to predict movements of electricity prices in a big city with multiple power companies to choose from. I know from a friend in the industry that power ...
0
votes
3answers
131 views

On a modern compiler, how do I intentionally code for 2s complement with wraparound?

I want to compare sequence numbers (given to this code from elsewhere) that may wrap around. Simply comparing two such values will not handle the case like 0x00000002 being greater than 0xfffffffd, ...
0
votes
0answers
12 views

License for header exposing functions in a BSD 3 clause licensed source

If I were to write a header exposing functions in a sample source file that was licensed under the BSD 3-Clause License, what would I put up in the header? Should I simply copy-paste the license ...
-1
votes
0answers
44 views

Python beginner advice [on hold]

About myself: I'm coming from a non programming background, nor mathematics; I was learning foreign foreign languages (still am) but I started doing some basic coding and I really like it, therefore ...
0
votes
0answers
17 views

Are there any JSON based notations for Access Control Lists? (Alternative to S-Expression)

I'm looking for a notation that is familiar to modern developers and can supersede s-Notation. (additional insight into Rivest's proposal of s-Expression is here) Is there any Swagger, JSON or other ...
-1
votes
0answers
21 views

What is Python Django and Flask? [on hold]

I understand the role of HTML, CSS and JavaScript in making Websites. One is for styling and the other makes it interactive... But what does Python Django and Flask do?
0
votes
0answers
15 views

Creating and passing new object in parameter

I have a wrapper class which contains a smart pointer (unique) which can point to objects which are subclasses of State. Each subclass of State receives a reference to the wrapper class so that the ...
-1
votes
0answers
35 views

Tools to help keep track of git repositories

How do developers keep track of various git repositories? Often there are interesting changes happening in some repositories that you will like be aware of, sometimes as a cursory note and for ...
1
vote
2answers
52 views

Should we try to be as technology agnostic as much as possible?

It is true that we cannot be 100% technology agnostic when we are using a framework or tool, we will be always at least 20% dependent on the tool or framework. The thing is that I feel better if I ...
0
votes
2answers
64 views

Can I find the remainder more efficiently?

Here : https://github.com/gnufinder/prime-factor I submitted a contribution with the goal to find a prime factor of the number 2222+3333. The number has 3,638,334,640,025 digits, so ECM will take ...
4
votes
1answer
110 views

Where to store SQLite Database file?

I'm writing an application for learning foreign words of exactly one language (english at the moment), which has currently an ineffective design. I use Java and SQLite-jdbc for saving the words. ...
-2
votes
0answers
17 views

What should I read/learn to get the data of an app/process?

I have some knowledge in various high-level languages, but none with hardware or low-level programming. I'm using BlueStacks (on Windows) for using various apps and games. I would like to create some ...
-2
votes
0answers
17 views

submitting a post request with an empty field does not update the previous value to an empty string

I have the following line, where the value may become outdated and need to be cleared. However, the database only updates when the value is changed to some non-empty string. <textarea ...
3
votes
2answers
177 views

Is it bad practice to use hyphens in JSON keys?

I see a lot of questions revolving around accessing JSON keys that use hyphens (kebab-case), but now I find myself wondering should I just stick to camelCase or snake_case in my keys. I know hyphens ...
4
votes
1answer
36 views

Master-Slave Cluster - How to make sure the master is really dead for the slave to take over?

I have a in-house messaging system, similar to a message broker. We have one master message broker and one slave message broker. A message broker just receives messages and sends them to all nodes. ...
-6
votes
0answers
47 views

I have problem with code [on hold]

I should do massiv and The input of information from a text file into an array of records ; The addition of new elements to the end of the array ; To see all the elements of the array ; The ...
0
votes
0answers
126 views

Any Special Practice On How To Read Code? [duplicate]

We know so much articles and best practice on how to write a better code. Class decoupling, reversible engineering decision, clear responsibility, etc. But how about best practice on how to read code? ...
-2
votes
1answer
43 views

How can I place an SQL Server query result into an array and then extract specific values from the array in PHP?

I have an SQL Server database which runs the following query: SELECT t_Addresses.Coord_X, t_Addresses.Coord_Y, t_Addresses.Cust_ID INTO #temptable --Hash prefix specifies a temporary table FROM ...
7
votes
1answer
118 views

What is the history for naming constants in all uppercase?

What is the history behind the convention of naming constants in all uppercase? My intuition is that it started with the C preprocessor, where people developed a practice to name preprocessor macros ...
1
vote
0answers
34 views

One producer and one consumer vs inconsistent shared resource state

I was reading about implementation of producer-consumer problem with one producer and one consumer. Looking at this paragraph I see the implementation where shared resource access is not synchronized ...
-4
votes
1answer
34 views

Website Development - W3 Layout [on hold]

I tried to download a free template from W3layout but the file is corrupted. So I tried to pick up the CSS, HTML and JS files by diving into the source code. I used this link to pick source files ...
1
vote
1answer
35 views

Parameter objects place holder?

If a method has too many parameters, the suggestion is to convert them into a parameter object. Where to place such parameter objects? in domain/entity classes package? or if I have a separate package ...
-1
votes
0answers
22 views

Text script to .net code [on hold]

I have a set of text files which contain the keywords. I need to generate C# code / C# classes by reading these files using C#. Each text file is meant for a class. The keywords map to methods in the ...

15 30 50 per page