instruction stringlengths 34 36.1k |
|---|
Can I (legally) use a program that is released under GPL from another program that I'm writing and not have to respect the GPL (for the program I'm writing)?
For example, I have a GUI that uses a program (which is under GPL), can I hide the code in the GUI and even sell it?
|
I am having a memory leak when running a test suite due to singleton objects are created and not cleared after each test case. And these singleton objects are holding references to heavy objects.
So I don't know if there is a better solution than clearing the singleton objects in the tearDown() methods in each test cla... |
What is the math to identify a gesture for the motion made by two fingers turning a knob (tracking two sets for xycoords)?
Is there a library/api anyone is familiar with that contains a good library of gestures for multitouch applications?
|
In a django project, if a situation comes that Django ORM is not able to execute some complex queries then there are 2 options:
Use Raw Sql queries
Use SqlAlchemy
I want to know if there are some rules like some pros and cons of both which can guide me to choose one of the above 2 options.
Or is it entirely depend... |
In asymptotic notation when it is stated that if the problem size is small enough (e.g. n<c for some constant c) the solution takes constant time and is writen as Theta(1).
Why we write 1 inside the Theta?
What does the 1 mean? Why not Theta(c)?
|
I seem to have a never ending stream of more-or-less original, more-or-less cool ideas for software/apps/stuff yet to be written on my mind. Sometimes, I decide to just start implementing my idea. Several hours later, I end up with a decent, more-or-less working prototype of what I'm trying to build. Then, my alarm clo... |
What licensing issues arise if I install and use Microsoft Office software (in this case Visio) as part of my web service backend?
My company's flagship piece of software can convert Microsoft Visio files for use in their environment, but of course requires a local install of Visio to decode the files. The system I'm t... |
Sometimes, a header file uses objects that are in declared in other header files. The user of this header file would have to include the dependency anyway and get the order correct too.
|
I have been interviewing candidates lately for a developer position requiring 10+ years experience and have come across a couple of CVs that I am not sure how to understand: I have interviewed a few of these people and so far have had no luck.
What are people's experience with developers with about 10 years experience,... |
During the sprint review the product owner may say that a particular story is incomplete or the team itself may not have completed some committed tasks.
In what situations do you leave the code in the build? If the code is left in the build, is this a conscious decision made during the review? In other words, do you ... |
Possible Duplicate:
Version control for independent developers?
I have a folder containing all my code (working code, experiment code). I'd like to back it up to a zip file on an external hard drive or whatever is best. How do you guys backup your code?
Do you setup your own source control server?
Do you use a scrip... |
Possible Duplicate:
Why programming open source?
I've seen a lot of, for example, where prospective employees put open source projects on their resumes. However, I don't really understand the practice of open source projects. If I have an idea, then however little value it has (being realistic here), that value belo... |
I'm writing an application and a set of many small plugins—where “many” means dozens and “small” means one or two sources. It's not necessarily going to be possible to divide the plugins into neat, non-overlapping categories. Which would be the best strategy for source control:
Many repositories, one for each plugin; ... |
Working as a freelancer, I often see strange requests from my customers, some of which can negatively affect my daily work¹, and others trying to set some sort of control. I usually encounter those things during preliminary negotiations, so it's easy enough at this stage to explain to the customer that I do care about ... |
What is the best way to annotate who authored a file and subsequent changes that were made?
I'm a contractor on a new project, one that's just starting, which is using Subversion. The other day I noticed a team member had updated a script written by an outside consultant, and he updated the header from "Written by X" t... |
I am looking for a software platform/programming framework which can do the following:
INPUT: a user inputs some text
PROCESS/REFERENCE DATA: the user is then asked to answer a list some questions regarding the INPUT and attribute the answers either to the whole INPUT or to some parts of the INPUT
OUTPUT: the list of ... |
While reading a book, I came across DI(dependency Injector) and the subsequent DI Container tool. Previously, I developed an application following a tutorial on asp.net website which never used such tool. So, my question can be summed-up in following two concerns :-
How often do you use DI Container ?
What requiremen... |
When developing for embedded devices and other odd worlds, it's very likely your build process will include multiple proprietary binaries, using very specific versions of them.
So the question is, are they part of your source control? My offices goes by the rule of "checking out from source control includes everything ... |
If I want to use the data on Twitter in my application, what are the restrictions? What user data should I avoid touching?
For example, if I want to collect information from certain type of tweets about users and use this information on my site as profiles for these users in my site, does this require permission from t... |
I have built a Ruby gem, which allows programmer (or whoever) to change wording on their Rails website.
When the edit mode is activated, every text on the website will have an edit icon. User can click on that edit icon and change the corresponding text immediately.
It works with text, attributes of any element, select... |
A developer on our team litters his code with debug outputs. He passes many parameters into methods that are only used for debugging.
Personally I find this clutters up the code. If I need to debug something I prefer to use breakpoints and the watch window instead of reading through all the debug output.
I am making ma... |
Our team is trying to understand and adapt Scrum and other agile practices, but we can not figure out how to deal with customer feedback when there is no customer. Every document about the subject emphasizes how important is having the customer involved in every sprint and how having early feedback helps correcting pro... |
I am doing some personal research on Byzantine Faults. I am trying out algorithms from various research papers which present algorithms for consensus in distributed systems like this one. For this i need a small scale simulation environment of a distributed system. How do i approach this problem ?
|
I want to distribute my software under license like Creative Commons Attribution - Non commercial - Share Alike license, i.e.
Redistribution of source code and binaries is freely.
Modified version of program have to be distributed under the same license. Attribution to original project should be supplied to.
Restrict ... |
I've been a programmer now for over 11 years, and am just starting to get into version control for real. The places I've worked at have never really used version control (one committed at the end of each day, the others simply haven't bothered).
I am not happy with the way that I've been taught to version control (pro... |
I am reading this post on Big-O
It says that the following code is O(n^2):
bool ContainsDuplicates(String[] strings)
{
for(int i = 0; i < strings.Length; i++)
{
for(int j = 0; j < strings.Length; j++)
{
if(i == j) // Don't compare with self
{
continue;
... |
A great lathe operator commands several times the wage of an average lathe operator, but a great writer of software code is worth 10,000 times the price of an average software writer. - Bill Gates
Say there's a "great" software engineer and an "average" software engineer on the same team. How can you account for one ... |
Sometimes Java outperforms C++ in benchmarks. Of course, sometimes C++ outperforms.
See the following links:
http://keithlea.com/javabench/
http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/
http://blog.cfelde.com/2010/06/c-vs-java-performance/
But how is this even p... |
I am reading the official Your first NHibernate based application.
While the tutorial is good and easy to follow, I am wondering why the Repository pattern is used.
In the various Add, Update, Remove methods in the ProductRepository implementation, the code is nearly identical - they are all using transactions, and the... |
Nowadays, the common phenomena is to develop a website for a browser and then corresponding apps for Android phones, iPhone, tablets and so on.
Since all the platforms come with a browser, why aren't companies using CSS to accommodate them? Surely we can detect from the request which browser was used and from which pl... |
Once in a while C++ code will not work when compiled with some level of optimization. It may be compiler doing optimization that breaks the code or it may be code containing undefined behavior which allows the compiler to do whatever it feels.
Suppose I have some piece of code that breaks when compiled with higher opti... |
I have been told, and have found for myself, that lots of developers are not good at UI design (I don't know how true is this) but it is true about me at least.
In web development good code development skills are not enough without great skills in UI design to go with them.
So for me, and many developers like me, th... |
I am starting working on a web project using django. While researching whether to use Sqlalchemy or raw sql when django orm is not sufficient which is also a question I asked here
Raw Sql vs SqlAlchemy when Django ORM is not enough
One question bugged me.
As the load on the website increases and we find out that sql q... |
This is a discussion myself and some of my colleagues are having and thought I'd come out here and see what if there's a general consensus on it.
It basically comes down to the following 2 opinions on database calls:
1. Make one large call to get everything that may be needed to reduce database the number of DB calls
... |
Possible Duplicate:
Defend zero-based arrays
I'm running code that loops through an array of HTML IDs.
With the HTML IDs named content1, content2, …, content12, my loop looks like:
for (var i = 1; i<13; i++) {
var contentFind = $('#content'+i)[0];
I know that the usual way to run loops is to start at i = 0. Is ... |
In ASP.NET Web Forms if you want to use jQuery and call a method directly, you should either implement a web service, or use Page Methods. Also you can use Generic Handlers (.ashx files).
However, in ASP.NET MVC, a controller action (a method in nature) can be called directly from jQuery.
What web services has to offer... |
So i've been trying to learn some Embedded/Assembly programming for a bit here lately, as well as going far as trying to learn the lowest level (gates and such).
One thing puzzles me though....is how do we "get" instruction sets. I understand somewhat how gates/TTL and such works, but I don't see how we get from that t... |
Can someone explain what this means?
Unicode defines a codespace of 1,114,112 code points in the range 0hex to 10FFFFhex.
http://en.wikipedia.org/wiki/Unicode
|
Ruby gems have LICENSE file with the license text in each gem. Cocoa[Touch] open source frameworks (say ShareKit, StackKit, etc.) have license at the very beginning of each file (.h and .m). I am not sure about .NET or other interpreted languages (except ruby), but I'm pretty sure there are own choices at hand. I am wo... |
I've mostly used the waterfall methodology on my projects, but now I'm expanding my horizons into agile methodologies. From what I've read so far, and maybe I've read the wrong things, agile means small waterfalls. Instead of a big waterfall spread over one or two years, you have small waterfalls that last weeks or may... |
I've been designing and developing with Wordpress for about two years (and I love it). Recently, a respectable designer told me that I could work for him. He works with Joomla! My job was to create a Joomla! template. I didn't feel myself comfortable using it. I don't like the back-end's UI, the way you add elements an... |
My company is investigating hiring a University Computer Science co-op student (BSc year 3) for a 4- or 8-month work term. (I'm not sure how internationally-recognized the term co-op is - it's essentially a paid internship, after which the student returns to their studies.) My team develops a web application in ASP.NET... |
My web server uses PHP as do 77.7% of web servers according to W3Techs, as of 14/03/2022.
The reason I use PHP is an inertia born out of seeing everyone else using it on web servers. What is it about PHP that would make it so ubiquitous on web servers?
(Note that this question is similar to the following question but t... |
A question asked here reminded me of a discussion I had with a fellow programmer. He argued that zero-based arrays should be replaced with one-based arrays since arrays being zero-based is an implementation detail that originates from the way arrays and pointers and computer hardware work, but these sort of stuff shoul... |
When I graduated, I thought getting into a web development job meant I get to work in a group of at least a handful of developers, and seniors can teach this young Padawan their tricks of the trade. In my experience, when I get hired as a junior web developer I'm usually have really limited contact and collaboration wi... |
I've been studying couple of books of how to exactly implement agile. I am confused about release planning.
Our application is a Insurance System consisting of different modules (Quoting, Policy Management, Claims management etc). During the first phase we are just planning to release Quoting and we are estimating app... |
I'm trying to wrap my head around the general workings and principles of event dispatching in event-driven (sub-)systems.
Although I have used it on quite a few occasions in for instance Javascript, Flash (Actionscript 2 and 3) and have even made a simple event dispatching system in PHP for myself at one time, I've nev... |
I have been using jQueryMobile for a bit now, and there are some things I like about it and others I do not.
First I will give a bit of background.
I have a light weight mobile application that has a few configurations and 6 pages. Ideally I Would like to load all pages into the DOM (they interact with each other quite... |
We release a number of small plug-ins that go along with our software. Each plug-in allows our software to talk to a single manufactuer's hardware. I would like to devise a system for keeping track of plug-in releases.
Example info that should be stored:
Hardware manufacturer name
32-bit? 64-bit? both?
What modes of... |
As I get more and more involved with the theory behind programming, I find myself fascinated and dumbfounded by seemingly simple things..
I realize that my understanding of the majority of fundamental processes is justified through circular logic
Q: How does this work?
A: Because it does!
I hate this realization! I lov... |
Following up on this question of mine, where I wanted to know the general principles of implementing an event dispatching system that allows for events to bubble (and capturing I've come to learn); does such an implementation make any sense for non-GUI related objects?
I'm asking, because I want to try and build a gene... |
I've recently come across Cyclomatic Complexity and I'd like to try to understand it better.
What are some practical coding examples of the different factors that go into calculating the complexity? Specifically, for the Wikipedia equation of M = E − N + 2P, I want to better understand what each of the following terms ... |
I was reading a book today called "Clean code" and I came across a paragraph were the author was talking about the levels of abstraction per a function, he classified some code as low/intermediate/high level of abstraction.
My question is what is the criteria for determining the level of abstraction?
I quote the paragr... |
When I first started programming Javascript after primarily dealing with OOP in context of class-based languages, I was left confused as to why prototype-based OOP would ever be preferred to class-based OOP.
What are the structural advantages to using prototype-based OOP, if any? (e.g. Would we expect it to be faster... |
I am at the moment messing around with clients and servers in C# winforms and I'm trying to implement it all asynchronously. However, I'm beginning to wonder, should I use asynchronous code for everything?
Here's a list of what I'm doing asynchronously at the moment:
TcpClient.BeginConnect with TcpClient.EndConnect
Ne... |
I hear a lot about this term "Graceful degradation".
For example ,
"An application server should gracefully degrage when it is under heavy load "
"Graceful degradation of user interfaces.... "
The term looks like an abstract thing to me. Any concrete example of what it means?
|
Recently it came to my attention that hierarchical inheritance may be a relic of thinking of classes as "structs with functions" rather than a product contract-driven mentality.
Consider, as a simple specimen the implementation of "Unmodifiable Iterator" from Guava. http://guava-libraries.googlecode.com/svn/trunk/javad... |
I suspect there're programs that instead of emitting machine code instead emit C++ code and then start a mainstream C++ compiler to compile it to machine code.
I can't find any notable examples except MIDL which emits some rather primitive code.
What are notable examples of such systems?
|
I like to draw a UML sequence diagram to display the sequence of actions and interactions of different parts of my system (I think they called actors).
However, I need to include if then else statements here. Do I do something wrong? Can I use conditional if statements in my UML sequence diagram? How?
|
My team (~10 devs) has recently migrated to Maven (multi-module project, ca. 50 modules) and we now use Jenkins for continuous integration. As the overall setup is running, we are planning to include code analysis and reporting tools (e.g., Checkstyle and Corbertura).
As far as I can see, we basically have two options ... |
I have programmed pretty much exclusively in compiled languages, particularly Java, for most of my career. One of my favourite things about Java is how productive you can be, and how little code you actually have to write, when using tools like Eclipse.
You can:
Easily and automatically refactor your methods and clas... |
we wrote and still maintain a large E-Commerce application. Our feature list resembles what you would expect from most shops. We'd like to improve some of our features, and now the search/suggestion list functionality (enter some letters, a JScripted suggestion list appears) has caught our eye.
Currently, we use http:/... |
When you track down and fix a regression—i.e. a bug that caused previously working code to stop working—version control makes it entirely possible to look up who committed the change that broke it.
Is it worth doing this? Is it constructive to point this out to the person that made the commit? Does the nature of the mi... |
As the title suggests I'm wondering whether bools or bits are faster than using integers (1 and 0)? Specifically I thinking about their speed in CASE statements, even more specifically in T-SQL (although it would be interesting to hear about experiences from other languages).
For some context, I have a pretty big SELE... |
This is the excerpt from the project's Github page.
Gremlin provides graph traversal related syntactic sugar to Groovy. Groovy provides dynamic language syntactic sugar to Java. Realize that anything you can do in Java or Groovy can be done in Gremlin.
The documentation keeps referring to Groovy & Java.
I need to lea... |
Assume one wants to create a simple .NET language, or slightly more difficult, a compiler for an existing .NET language. Do you absolutely need to be familiar with the CIL (Common Intermediate Language) to implement a compiler? And do you have to translate the syntax of your language to CIL by hand? Or is there another... |
I graduated from university about five months ago, and have been working in a local startup for past four months. While at university, I studied Haskell, F# etc on my own. We were taught Java at the university, but I was exposed to functional programming very soon, and have spent far more time with it than I did with i... |
While responding to this question, I began to wonder why so many developers believe a good design should not account for performance because doing so would affect readability and/or maintainability.
I believe that a good design also takes performance into consideration at the time it is written, and that a good develop... |
My company is developing software that has a lot of technical debt that has existed for more than 20 years. It's a mix of C++ and C and consists of about 2M LOC. I would like to make some suggestions how we can advance our project and get rid of technical debt while using modern design principles.
This application is h... |
I've been seeing a lot of code recently that looks like this:
public interface IFoo { int Bar(); }
public static class Foo
{
public static IFoo Create() { return new FooImpl(); }
private class FooImpl : IFoo
{
public int Bar () { ... }
}
}
Basically, there is a contract defined by an interfac... |
I was creating a class diagram for an application I was working on today and I didnt include the JPA entities since I had all the information I thought was important in my DAOs, for example, I just care about how to register a user regardless of what information does a User object contain, so I only included the UserDa... |
I'm attempting to develop a piece of functionality using a 3rd party map control in an application that automatically pans/zooms the map surface to the best possible view given points on map. The map should be centered and zoomed in as close as possible without cutting out any points on the map.
To determine the maps c... |
I've been learning how to use subversion and would just like someone to clarify whether or not my understanding is correct?
Create a master repository at a given location (be it on a webserver or local).
Add/import files into said repository
Checkout a copy of the repository to work on (or specific files) to a working... |
What differs between "writing a specific JRE for each platform" for Java developers and "writing a C++ compiler for each platform" for C++ ones?
|
I consider myself an intermediate Python programmer and have been offered an opportunity to be a trainer for a beginner Python programming class.
I was wondering if this would really widen my programming repertoire. Has somebody had an enlightening experience after they successfully trained a group of people?
Does it a... |
Clearly AJAX improves the user interface but does this also decrease server load? You would think it does because the entire page will not have to be served up each time, but maybe there are other variables I'm not considering.
|
Although I can code, I don't yet have any experience with working on large projects. What I did so far was either coding small programs that get compiled in matter of seconds (various c/c++ exercises like algorithms, programming principles, ideas, paradigms, or just trying out api's...) or working on some smaller proje... |
Currently we've got a directory structure that looks like this
+Inhouse App A
+Inhouse App B
+Core files for inhouse app B
+Inhouse App C
+Something that never came to fruition
+Forgotten Server Project A
+Forgotten Common Files A
+Authentication Server
+Update Server
+Main product Version 5.5
--+[DLL1]
--+[DLL2]
..... |
Some of my friends and I started a PHP project some weeks ago. In the beginning, I suggested we use a PHP framework such as CodeIgniter or Zend. But my friends wanted to start clean and without the overhead or extra complexity.
But as time has passed, the project has become more and more complex. At first, we wrote all... |
Suppose within the private portion of a class there is a value which is utilized by multiple private methods. Do people prefer having this defined as a member variable for the class or passing it as an argument to each of the methods - and why?
On one hand I could see an argument to be made that reducing state (ie mem... |
My project manager, when providing requirements for specific tasks, does not care about the implementation details. Although he has a programming background and has some knowledge of the MVC framework, he does not consider the perspective of the developer.
For example, I was given a task to create a simple form in ASP.... |
In an application that allows users to define their own tables and columns (details of that are not the focus of this question, but imagine a tool that lets users create their own forms and automatically handles storage, just to get the idea) is it better to store each table and column they create in a "table" table an... |
My question is similar to this one on Stack Overflow: What is the correct way to use Unit of Work/Repositories within the business layer?
Scenario:
.Net solution
IRepository used to retrieve objects from DB
IUnitOfWork used to allow transactions across multiple repositories
This makes sense to me and I have implement... |
I've been teaching myself how to write code with the help of a very talented friend, who unfortunately is talented enough that he has never free time. I've read and worked out of a couple books, but I feel more like I'm going through motions, rather than elegantly solving real world problems. What did you guys do to ge... |
I currently have a goal of creating a sort of chat website. I just finished trying with PHP and long polling, which hit a resource limit on my webhost's server. I was told that I should use Node.js and that it can be hosted with Heroku.
I honestly have very little understanding of what Node.js or Heroku are. From what... |
We are attempting to implement a development environment using virtualization for a small team of 4 developers within an enterprise organization. This would allow us to set up separate development, testing, and staging environments - as well as allowing access to new operating systems that are requirements for systems... |
Possible Duplicate:
Best Java book you have read so far
I want to learn java but, I have absolutely no coding experience.
what is the best website, book, or anything that is best at teaching java?
|
How would you test a developer that claims to have *nix shell experience (just to be clear, we don't want to test if someone can develop on *nix, only that they know their way around the command line).
I was thinking about making them solve a problem of getting information out of log files, which would involve some bas... |
Agile adoption can fail in some organizations, I even worked for a company where waterfall was the only (the true) way but only because they tried Agile on a project and failed.
When I asked the people who still remembered that (I was a junior) I was shut down hard, like I was reminding them a bad nightmare that really... |
Can software development be considered engineering? If no, what are the things that it lacks in order to be qualified as an engineering discipline? Related to this is this question on Stack Overflow about the difference between a programmer and a software engineer.
There is the Software Engineering Institute at Carnigi... |
I made multiple tools for extracting file formats that are found in (commercial) games. Where should I host the code? (e.g. Google Code, Sourceforge,....)
Normally it would be considered 'illegal' everywhere, but most of the time they are ignored. Where should I host it and what license should I choose for the project ... |
I am really looking forward on creating a chat application which features basic implementation of text chatting, as well as advanced features of audio/video chatting. I have clearly understood how to implement text chatting feature using push notification.
Now I am heading towards implementation of audio/video chatting... |
Consider this:
public MyClass
{
private Resource _myResource;
public Resource MyResource
{
get
{
if(_myResource == null)
{
_myResource = new Resource();
}
return _myResource;
}
}
public void UseResource()
... |
A previous Agile discussion here had good answers specifying what is critical to the success of implementing Agile methodology in software development. Most of the points were the typical organizational and management challenges, but one point worries me and it is that the client must be involved throughout the proces... |
A preview of the new "Visual Studio 11" was recently shown at Microsoft's BUILD conference.
Out of interest, what technology is being used to create it?
I assume it's not WinRT (which I've been led to believe is only for Metro style apps in the new Windows 8 touch-first environment)
Is it still using WPF (like 2010)?
I... |
Rather than asking a general question about WebForms vs MVC (such as in ASP.NET v/s ASP.NET MVC), I have a specific quesiton.
It appears the main differences between the two approaches are
WebForms is Event Driven and uses pre built components
MVC has a built in layer that WebForms does not: the Model
MVC has the Cont... |
The Background:
Me and my colleague are opening a new website design & development company.
We have designed and implemented a website on Microsoft Visual Studio 2010 using Web forms in .NET Framework 4.
Because I was new to asp.NET at the time, I wasn't sure what Database to use. Therefore I created a new "Microsoft S... |
My boss was looking down on me about learning Ruby because "It's just a PHP generator" which I can't find anything about it being so. Is this the case?
I understand that the Rails framework can be used to generate PHP code, but isn't Ruby in-and-of-itself its own programming language?
|
What is it called when you set properties on object initialization?
var customer = new Customer() {RequestID = request.ID, AddressID = 5};
Is it considered good practice?
|
Quines, which are programs that generate their own code as part or all of their output are a neat idea for a programming puzzle. However, do they have any use beyond that?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.