-1
votes
0answers
4 views

PHP Help with Call to a member function add() on a non-object

Question: What is the problem that I apparently cannot pass an object through to this method? Code: http://pastebin.com/fUbJdgXk Issue: Line 22 $this->business->add($specrep); returns Call to a ...
0
votes
0answers
8 views

Online SQL Browsing UI for non-tech-savvy

Right now, if I want to share a database table of something basic, like purchase orders, with non tech-savvy associate X, I would have to copy that data into an Excel Online spreadsheet (or google ...
-4
votes
0answers
20 views

I want to become an entrepreneur, which language suits my purpose? [on hold]

First and foremost, i would like to say that i am already learning HTML and css. I realize that these are not programming languages, but one of the first things i want to do this year is learn to ...
0
votes
1answer
23 views

I am new to programming, where do i start to learn? [on hold]

It was/is my dream to be a pro programmer and I am working hard to learn but i can't . I just wanted to ask from where should I start and which language. C/C++/C#/java or another ? Please help !!! ...
0
votes
0answers
7 views

Smallest maximum difference between adjacent members of an array

How can I calculate the minimum possible difference between adjacent integer elements of an array. For example: We have the array: 11 14 14 9 16 Adjacent elements are 11 and 14, 14 and 14 and ...
1
vote
0answers
11 views

GPL location in Python source

Besides the COPYING file, to also follow the how-to advice of GPL describing "adding two elements to each source file of your program" (copyright notice and permission), "right near the top of each ...
0
votes
0answers
5 views

Why can't we use std::fill() the same way for 1D and 2D arrays? [migrated]

I have seen that if we have a 1D array int A[10], then to fill it with an arbitrary value, say 0, we use std::fill(A, A+10, 0) For a 2D array B[10][10], we fill it with 0 as: ...
0
votes
2answers
20 views

Iterating a function with a static argument: Global functions + lambdas vs internal function?

I am never sure which of these is better form: Option A def a(x,y): def b(z): return z+y return map(b, x) print a([10,20], 5) Option B def b(z,y): return z+y def a(x,y): return ...
1
vote
0answers
14 views

How to inform WebStorm's autocomplete about WebGLRenderingContext

I'm working on a project involving WebGL, and using WebStorm to do the development. One issue with the development flow is that WebStorm isn't about to autocomplete things related to WebGL. In ...
-1
votes
0answers
17 views

How do I use connection string from app.config for datasets created with visual studio dataset wizard? [on hold]

I have created a new instance of SQL Server 2008r2 and exported my database to the new instance. Then I realized that the connection string for all of my datasets still point to the original database. ...
-5
votes
0answers
14 views

Working C code of Strassen's Algorithm [on hold]

hey can anyone provide me a proper implementation of Strassen's algorithm of solving product of two N*N matrices where N is a power of 2?? i have tried to implement it myself but its not working as ...
0
votes
0answers
11 views

Need to add websocket support to a single page that's running a wsgi service

Current setup. I have a legacy ERP system (Thoroughbred) and i then have several in house applications (CRM, WMS) and a website that interact with it via an xml server and straight ODBC connections. ...
1
vote
2answers
57 views

Software development - The industry & general trends / Bad practices [duplicate]

I am a Web Developer and part of a small team working on an abundance of projects. This is my first "actual" real company after graduating with a degree in computer Science and I have about 2 years ...
0
votes
3answers
81 views

Check a boolean before setting it in a loop, or just set it

I have a rather tight loop with the following check to see if balance had ever been positive: balance_null = True while (crazy_loop()): ... if 0.0 < balance: balance_null = False ...
-1
votes
0answers
46 views

How to learn Computer Programming [on hold]

This is probably broad question and potentialy not a question as I am looking for an advice rather than factual answer. I will delete it if somebody thinks it is stupid. I am a programmer and I like ...
-4
votes
1answer
47 views

Python doesn't write information correctly to a file [on hold]

My program should save the data of each student who takes a test to a file. There are 3 files for 3 different classes and when the quiz has been completed and python writes to the files the ...
1
vote
0answers
40 views

How to create a dynamic plugin system? [on hold]

TL;DR What are common patterns / architectural systems to create dynamic / decoupled plugins? I want to create a dynamic plugin system. Let me try to explain what I actually want to achieve. ...
0
votes
2answers
77 views

Would redrawing controls in c# give more performance?

Now I realize this is a kind of weird question but here it is: Let us assume I redraw all the controls by myself rather than using the default provided ones (Obviously I'm talking of winforms as WPF ...
6
votes
2answers
328 views

What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?

For instance, you let the user define the notorious path variable. How do you interpret apppath = C:\Program Files\App? This looks like a programming language adopted practice to ignore the white ...
0
votes
2answers
48 views

Controller in MVC

Alright so it is an essential part of OOP that one class should only do one thing, and it makes sense. In practice I've seen that classes which don't obey this rule get thick and cluttered. So I was ...
1
vote
2answers
43 views

Literal strings vs. object properties in JavaScript

JavaScript libraries in the same space (UI widgets) use two different approaches for instantiating components: Literal strings to specify types, and inlining as much as possible, for example: var ...
-3
votes
0answers
10 views

Managing database for maintaining user profile [on hold]

I am creating a Web directory with user personalization.I am keeping options for login and registering of user.How to maintain a database for these two when a user registers and login into the ...
1
vote
1answer
12 views

How to make scalable modules in a div element

I'm interested in creating web modules that are encapsulated by a div element in a manner that, by simply resizing the div, everything in that div scales to the dimensions of that div proportionately ...
-1
votes
1answer
38 views

How to handle authentication to web service from mobile?

I'm making a mobile application, and I use JSON Web Token Authentication (JWT Auth), but I have three questions about: Should I use refresh-tokens or non-expiring access tokens? In case I use ...
11
votes
3answers
472 views

Why would many duck-typed dynamic programming languages use a class-based approach instead of prototype-based OOP?

Since quite many dynamic programming languages have the feature of duck typing, and they can also open up and modify class or instance methods at anytime (like Ruby and Python), then… Question 1) ...
-1
votes
0answers
12 views

Symfony 2 Log out error [on hold]

I am trying this links from 7 days but still today I am getting errors may I know what the wrong with this login page? Why I am not getting log out after login? ...
0
votes
2answers
53 views

When are you violating a license like the GPL?

Specifically in the following scenarios where you're working on an open source library using an incompatible license like the MIT license. You copy & paste a method from a GPL library - ...
-1
votes
0answers
9 views

ORMLite on App-Server [on hold]

I am wondering if it is a good idea to use ORMLite as persistence layer in Java EE environments? I am also uncertain about the implementation of ORMLite in a JAX-RS Jersey environment in particular. ...
1
vote
1answer
74 views

Does ORM at any point become a “requirement” for RESTful API?

I've started building a RESTful API in PHP's Slim framework. The framework appealed to me because of its light-weight design and routing features. I am using PostgreSQL for the database. However, ...
0
votes
1answer
29 views

RESTful Backend - How coupled should my back end and front end be?

I'm creating a web application with a front end client written in angular as well as a back end that I'm writing in Django (there are reasons I picked the frameworks but they are irrelevant to my ...
-2
votes
0answers
7 views

Setting logging in GlassFish [on hold]

I use Server-sent events technology and GlassFish with standart java.util.logging. How can I disable logging event is sent to the log file?
-2
votes
0answers
27 views

Console-like interface GUI for browser or linux [on hold]

For a long time I'm in search for something like a good old terminal framework/tool to create user interfaces with just text and easy to develop. I want something like that used to build ...
0
votes
0answers
85 views

Why C++ STL vector does not go out of range [migrated]

I have this code and I am wondering how it works; Why does it allow me to access an element using a value larger than the size of the vector using the operator[]? But then when I use the at() ...
-3
votes
0answers
14 views

login to programme java using hsqldb? [on hold]

hi i need help in my programme i need to vérifier login from my database hsqldb to access to my programme in mysql everything is good bat in hsqldb is not wanting to work at all i using hsqldb is ...
-1
votes
1answer
39 views

Where should I create utility classes that are used by unit tests, integration tests and functional tests?

Say I have a project that's using the standard Maven/Gradle project directory structure, with the source file directory like this: src ├── functTest ├── integTest ├── main └── test What would be ...
-3
votes
0answers
16 views

Php Form Data to Text Problem [on hold]

Whenever i enter form data, the form action points to my php processing script but instead of writing it to a text file, it opens the code in the browser, what could be wrong? My form <form ...
0
votes
0answers
23 views

Measure and locate areas of similar value in an image

I saw this picture online and wanted to see if I could create an algorithm to give ordinary images an effect like this: http://justinlivi.net/wp-content/uploads/2011/01/Living_In_Digital.jpg My idea ...
-1
votes
0answers
34 views

Is there an optimal way to find the best division of an interval of some positive integers?

I am struggling with a conceptual problem. I have positive integers from an interval [1800, 1850]. For every integer from that interval, let's say (without loss of generality) 1820, I have about 3000 ...
0
votes
0answers
18 views

How to measure the quality of a web crawler algorithm

I developed a new web crawler algorithm as a part of my thesis using java. Now i should compare my work with previous developed crawler algorithms. Since every developed algorithm has its own web ...
-4
votes
0answers
14 views

insert photo in mysql database [on hold]

I am using mysql database.I am using mysql work bench for the user interface.I also connect libre base for the user interface.now my question is how to insert photo in the server.what are the ways to ...
-6
votes
0answers
28 views

Getting wrong answer on online judges [on hold]

I have written the following code for the http://www.spoj.com/problems/LASTDIG/, which I have tested thoroughly. I have tried running it on all the corner cases and also on some very typical inputs ...
-6
votes
0answers
15 views

software shows contact system administrator suddenly [on hold]

I am using point of sale software for my business. the software has been installed my system.the shortcut and some of the files has been implemented in my usb drive.i am using ms sql for ...
1
vote
1answer
31 views

What is really a resource?

I'm starting to study about web api's and REST and I'm having a hard time to understand what is really a resource. Basically the book I'm reading says that a resource is a conceptual mapping to one or ...
-2
votes
0answers
23 views

Using actionBar items within a method to navigate the app [on hold]

How can i use actionbar menu items from within a method. *Somthing like public boolean page2() { WebView webView1 = (webView) findViewById(R.Id.webview1); ...
1
vote
3answers
77 views

What does stubbing mean in programming?

I often hear the term stub, stub out somethings, stubs, ...etc. What does stubbing mean in programming, where the word come from? and in what contexts it can be used?(just examples)
0
votes
1answer
64 views

Statistics about the usage of programming paradigms [on hold]

I hear very often that the object-oriented programming paradigm is the most widespread. But are there any scientific statistics about how often other programming paradigms like procedural programming ...
2
votes
1answer
53 views

Transpose a matrix without a buffering one

How is it possible to transpose a MxN matrix without using a "buffering" matrix? In the latter case it's easy and quite the "classic" approach... Given a matrix[M][N], I would like to put it into a ...
0
votes
2answers
78 views

Finding a Pre-Written Software License

I've been researching licenses for a few days for a software project I've been working on that I'd like to apply a license to. I couldn't find anything on Stack Exchange, but I apologize if a very ...
-1
votes
1answer
43 views

Injecting a javascript code to all requested web pages by a desktop application

I work in a community school and I have been requested to censor some words in all requested web pages (page content-html level). If I could inject a javascript code I can do that with a simple ...
-1
votes
0answers
28 views

Where is the Elasticsearch topology/architecture diagram? [on hold]

Where's the Elasticsearch topology/architecture diagram? I've heard many good things about Elasticsearch and it seems to be widely used for some time now, but what boggles me is that there is no ...

15 30 50 per page