instruction stringlengths 34 19.9k |
|---|
I'm working on a view model for a view that presents a dialog with export options. The user selects options then clicks Export. When the view model completes the Export, the calling view model receives notification.
I'm curious which is the better practice for implementing the notification: a traditional event or an Ac... |
I am building a Java applet for a client. Yes, we have gone over all the options, and for the client's requirements and environment, this is the Right Choice.
I am a big believer in using Apache Commons whenever possible to simplify my code and avoid reinventing the wheel. One part of the functionality I need for this... |
Sometimes I find in the source code files comments have quotation marks like these ,notice the ` :
`help'
``help"
For example, these are comments from GNU cat source code file, cat.c:
/* Plain cat. Copies the file behind `input_desc' to STDOUT_FILENO. */
>
/* Select which version of `cat' to use. If any options... |
Correct me if I'm wrong but I've heard that communicating with a database in Windows 8 will more than likely be done with WCF when working with C#/XAML.
If this is true then will this also be the case when working with HTML5/JS?
|
I've seen this code referenced in two different places, yet I haven't seen anybody bring this up, but it seems that on line 00339 there is an empty if block and I just copied the code to compile try it out but it won't even compile cause of that.
if (frame_count >= STREAM_NB_FRAMES) {
/* no more frame to compress. Th... |
I would like to create a budget app for Android. Obviously, to be competitive, I would need to allow users to get data from their bank. For [huge] security reasons, this stuff is not just freely given to any would be developer, but I know it can be done. There are budget apps that connected to users banks.
My question ... |
Where can I find the x86 instructions execution time? How to find out which instruction is faster or smaller?
|
Almost every public CMS out there uses a .php configuration file for the database settings and so on. For example WordPress automatically creates a .php config file when you install it.
Why don't they just use a .ini file? PHP already has parse_ini_file() and I'm sure other languages have similar functions.
|
I always read that composition is to be preferred over inheritance. A blog post on unlike kinds, for example, advocates using composition over inheritance, but I can't see how polymorphism is achieved.
But I have a feeling that when people say prefer composition, they really mean prefer a combination of composition and... |
With a distributed cache, a subset of the cache is kept locally while the rest is held remotely.
In a get operation, if the entry is not available locally, the remote cache will be used and and the entry is added to local cache.
In a put operation, both the local cache and remote cache are updated. Other nodes in the ... |
I work as an analyst for a financial institution, which, due to data sensitivity, will not store any data in the cloud. However, I'm having some success getting my team to use Git for code management. I was wondering whether there was any way to implement Github-like pull requests in our own server. The specific featur... |
My workplace will soon be shifting to the concept of 'activity based working', which moves from the idea of IT teams, BA teams, PM teams, etc to project-based work where people from across all facets of IT and the business involved on a project sit and work together. As a result, you wouldn't be sitting with your norma... |
I'm working in a team where each member is working on an user story. How can we avoid creating duplicate or conflicting functionality?
For example, if my user story requires the creation of class A and my team member needs the same functionality and creates a similar class (maybe with a slightly different name), how sh... |
I have an issue with Roles.IsUserInRole function. It take hell amount of time to just check if the logged-in user is in particular role(typ 3-9 sec). I searched to find a solution and arrived on this but I am not sure If I have fully grasped it.
What I got from the above, A new derived class is created. Inside that cla... |
I have no idea what these are actually called, but I see them all the time. The Python implementation is something like:
x += 5 as a shorthand notation for x = x + 5.
But why is this considered good practice? I've run across it in nearly every book or programming tutorial I've read for Python, C, R so on and so forth. ... |
I have recently developed an application in C# which is supposed to run within the environment of the company i work for.
I could technically generate a Setup or use ClickOnce to handle the deployment of the application, but I am considering basically copying the EXE file into a public directory and have everybody exec... |
For a while I have been trying to learn to write unit tests for my code.
Initially I started out doing true TDD, where I wouldn't write any code until I'd written a failing test first.
However, I recently had a thorny problem to solve which involved a lot of code. After spending a good couple of weeks writing tests a... |
I've been tasked with improving the software development process through the implementation of process improvements, of which we will most likely be using CMMI for Development, Version 1.3 as a guideline and adopting the best practices in whole or in part. What is the best way to introduce standards and process improve... |
I am not so familiar with databases and now I am trying to understand the indexing mechanism.
From what I know, in a RDBMS, indexing on a column makes searching by that column faster. This is also true for the triple stores, only there indices assume you will search(for example) mostly by the subject, then by object an... |
Where previously there was only relational databases, the data store world is now rife with options like Key-Value, Document, and Graph datastores. Unfortunately, every datastore likes to show how it can be used for anything, but none of them really help people figure out when to use one model over another.
So, the que... |
I am currently creating an API and implemented a few basic REST actions such as get, update, search etc. Another program that collects data needs to synchronize these to this API. My current thought is: What would be good practice to synchronize this data?
A few informations:
The amount of data that needs to be synchro... |
I would like to know if it's a good practice or legal to use non-standard tags in an HTML page for certain custom purposes.
For example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam
consequat, felis sit amet suscipit laoreet, nisi arcu accumsan arcu,
vel pulvinar odio magna suscipit mi.
I want ... |
I'm looking at creating a site where a user could see our product and configure the options or look of it and see an image that represents that.
The way I'm doing it now is if you have Piece A selected and then you choose Texture X, I have an image on the filesystem that is A with X applied to it. I just swap out my de... |
With us moving continually closer to HTML5 in terms of adoption, is writing HTML for validity something the web is rejecting, allowing us to straddle standards as the web continues to be in a perpetual state of transition to the "next" thing?
Is validation important?
If so, what is the net gain?
If not, why not?
|
My top level state machine has some states and edges. I will call this the parent state machine.
A ----> B ----> C
Any state within the parent state machine can be a state machine too. I will call these children state machines.
___________
/ \
A ----> | B0->B1->B2 | ----> C
\_... |
I'm an academic guy, who is now venturing into the software engineering world, puzzled by the fact that many terms seem to overlap each other. I'm reading some books and cannot quite distinguish/correlate a software process model from software engineering methods.
For instance, in Software Engineering Ian Sommerville d... |
I'm looking for a programming judge system which supports putting contestants programs against each other in "matches". The format could be either for example a tournament style or chess ranking, but this isn't that important. A good example would be Google's AI challenge (http://aichallenge.org/)
The only systems I've... |
Alright people. Finally with the help of stackoverflow community i have gathered 20 commercial product selling websites product pages with the following features
Product URL
Product Price
Product Name
Product Category
Product Page Title
Product Page Description
Product Page Keywords
Now with using these features of th... |
My application needs to model of and perform operations on a network with 40 - 50 nodes and typically less than 6 edges per node. Both nodes and edges are objects with around 1K data each. During execution the mapping of the network is frequently changed - nodes added and deleted, edges added and deleted, in addition t... |
Is it a good practice to call the variable a method returns with a variable name result?
For instance:
public Zorglub calculate() {
Zorglub result = [...]
[...]
return result;
}
Or should I name it by its type?
public Zorglub calculate() {
Zorglub zorglub = [...]
[...]
return zorglub;
}
I have... |
I was trying to optimize my Linux server to handle 10,000 threads per process while it does just 382 right now. As per this article the following formula is used to find out total possible threads:
number of threads = total virtual memory / (stack size*1024*1024)
This means threads store all their data in virtual memo... |
Our application is having 2 parts a web app running ROR and a web service running Sinatra. The application communicates with the mobile device for which we use different constants depending on the message we need to the send to the device.
We are currently using integer constants saved up in a module. Eg:
SEND_HI="122... |
From what I know, the session information is usually saved on the server.
In Java the data is handled as a Map which I guess contains the a String identifier and an object reference which points to a memory zone from the server.
Considering that, is it safe to assume that storing a Properties file on the session will n... |
It's a generally considered a bad practice to use the Hungarian notation, but is common to find GUI controls named userNameTextBox and userNameLabel.
Do you put the control type in it's name? Isn't this a kind of Hungarian notation?
|
In an upcoming project I need to create a Twitter like web application where the basic idea is to read / write short messages and status updates (similar to tweets) and group these messages (just like hashtags)
Also users can have followers and can see their status updates.
I'm estimating between 10 - 50 million messa... |
We have a family of apps, all having the same base. Until now I've been developing this base, and the Git workflow was very simple:
Development is done in develop branch
New features are developed in name-of-the-feature branch
Releases are made in release-** branch
Until now, the code was the same for every app of th... |
I've been looking at a few lexers in various higher level langauges (Python, PHP, Javascript among others) and they all seem to use regular expressions in one form or another. While I'm sure regex's are probably the best way to do this, I was wondering if there was any way to achieve basic lexing without regular expres... |
Most of the C# programmers I know embrace one of the common coding standards. However being aware of the standards is one thing, telling the differences is another.
Browsing the common coding standards documents our there on C#, my first reaction was it's more of the same. Admittedly I didn't bother reading everything.... |
I am doing a research paper on programming, and I need to somehow explain assembly... I've never learned the language, but I understand what it is used for and kinda what it looks like...
MOV A,47
ADD A,B
HALT
And from what I understand, it is used for writing some compilers, small bits of code that need to be really... |
I have a web search interface that can compare products in a table. This data set changes a few times a week.
I have been storing a "DISTINCT" list (used for parametric selection) in a cache table. The query is computationally expensive because it involves table joins and thousands of records, hence the reason to cach... |
A manager recently announced that were were spending far too much time fixing bugs. I guess he thinks we should write perfect code all the time (whilst still hitting those impossible deadlines of course!) and it made me wonder what the industry average of time spent bug fixing v writing new code was.
So does anyone hav... |
We have a major problem where I work, and it's name is "customization". We have an old (10+ years) vendor software system that our IT and accounting departments previously loved to customize. Somewhere along the line this software started getting very buggy. Then, I was hired after the bulk of the customization.
Nearly... |
What is the best choice LINQ TO SQL (.DBML) or using ADO.NET with procedures for a database with 29 tables and about 30 concurrent users that will run the system that I am going to build?
I know that ADO.NET is faster than LINQ TO SQL but it is so much simpler to work with LINQ TO SQL. Will LINQ TO SQL handle all the c... |
What does the word domain mean regarding driven design/development?
Not in terms of semantics or a scholarly definition but in terms of how it modifies processes or philosophies?
I was reading a post: https://softwareengineering.stackexchange.com/questions/57828/your-software-problem-solution-approach
I came across t... |
I wont say what "community" because I want a non-biased explanation, but let's say you're building a reusable module and that module requires 3+ dependent modules and removing 1 of them causes a breaking error not only in your app as a whole which uses this module, but the module itself.
From my understanding (which mu... |
In most of the multi-tasking CRM applications I've seen, MdiWindow is used to allow users to open multiple windows at the same time.
But MdiWindow doesn't seem to be commonly used in WPF. Looking through Codeplex, I only found one abandoned MdiWindow project.
In some of the WPF-based CRM applications I've seen, they cr... |
Can someone provide me with a canonical answer on the differences between an Observer and a Mediator, and a summary of when you should use one pattern over the other?
I am unsure of what kind of situation would require an Observer and what kind would require a Mediator
|
This may sound silly or obvious but this is my case; I work at a company that recently implemented SAP and I was the responsible to generate/migrate the master data of the company which let me learn a lot from this system. SAP comes with its own language known as ABAP and since the system went live I've been learning a... |
I'm planning to setup an scalable architecture capable of providing web services on a REST interface where JSON will be sent as a result.
The web services will be quite simple for a CRUD web 2.0 app.
I think javascript (nodejs + mongodb) is a good choice for the following reasons:
Easy to find javascript developers
G... |
I think I understand the actual limitations of compile-time polymorphism and run-time polymorphism. But what are the conceptual differences between explicit interfaces (run-time polymorphism. ie virtual functions and pointers/references) and implicit interfaces (compile-time polymorphism. ie. templates).
My thoughts ar... |
I am working on a C++ project where I have a bunch of math functions that I initially wrote to use as part of a class. As I've been writing more code, though, I've realized I need these math functions everywhere.
Where is the best place to put them? Let's say I have this:
class A{
public:
int math_function1... |
There are a few new HTML5 features that have made it into recent browsers that allow sharing state among tabs, browser windows, same domain windows, etc. So it's probably gotten a little easier to write a web application that keeps a lot of state on the client and also manages state intelligently between tabs and/or wi... |
So we write:
Customer c = new Customer();
Why is the design not such that we write:
c = new Customer();
c.CreditLimit = 1000;
The compiler can work out c points to a Customer and allow Customer's members to be invoked on c?
I know we may want to write:
IPerson c = new Customer();
IPerson e = new Employee();
so as to... |
I know this is more of a lawyer question, however I figure someone here has probably done this and can give me a quick answer.
Lets take a moderately extreme case. I build an adapter for a website that translates the requests and markup into a more formal API. I then take this API I developed and build a mobile app on ... |
Is there any website, like SPOJ and Project Euler, with the test data files available for specific algorithms/data structures?
I know it's a fun challenge to solve those problems on your own, but I am looking for test data files where the algorithm/data structure to use are explicitly mentioned.
"Implement a linked l... |
I'm struggling with a client-server project where I have Java apps out on the Internet that store data to a backend server. The format of this data is well-defined, but the project is constantly evolving, so the definition keeps changing! To cope with the change I defined a simple REST interface on the server that offe... |
Sometimes I hear people say that because of the speed of processors and the amount of memory available, algorithm efficiency and runtime aren't, in practice, of major concern.
But I imagine there are still areas where such considerations do remain of paramount importance. Two that come to mind are in algorithmic tra... |
I just started a new job and I'm currently at the process of trying to introduce a DVCS (mercurial, but the actual DVCS is not really a matter of discussion at this point, it could also be git) to the company (big, multinational). So far I've gotten nothing but positive attention, even at managerial and directive level... |
Possible Duplicate:
How to get a job with no experience?
So I've worked on a desktop software coding Swing GUI for past 2 years.
I feel that even having a live website selling my java desktop software (customers buy it occassionally) is not enough experience, contrary to opinions from this site, very little of my ex... |
The question Where should I put functions that are not related to a class has sparked some debate over whether it makes sense in C++ to combine utility functions in a class or just have them exist as free functions in a namespace.
I come from a C# background where the latter option does not exist and thus naturally tre... |
I'm going to write a class library for .NET which provide an implementation of arbitrary precision arithmetic for integer, rational and maybe complex numbers. What best known approaches should I become familiar with?
I tried to start with Knuth's TAOCP Vol.2 (Seminumerical Algorithms, Chapter 4 – Arithmetic) but it's t... |
I'm doing a school project which requires us to create a computer application and then write documentation; therefore I have to write testing documentation, I already have a of test plan (Validate all input and test all features) but how do I present the testing results in my project (e.g. table etc.)?
|
Possible Duplicate:
Is it OK to put a link to Q&A sites in a program's comments?
I'm creating a powershell / C# host and want to add the following comment
// This method cannot be called multiple times on a given pipeline. The state of the
// pipeline must be NotStarted when Invoke is called. When this method is ca... |
I work with ASP.NET MVC (and other web-based MVC implementations) quite often, but this is something I've never been sure of: Should controller and view communicate?
Of course the controller should be choosing which view to use, but what I mean is should the controller be passing data to the view? In my opinion, if the... |
A client asked us to estimate effort when selecting PHP as the implementation language for his next web-based application. We spent about a week exploring PHP, prototyping, testing etc., We are quite new to this language - may have hacked around it in the past but, let's go with PHP-noobs but application development ex... |
I am an experienced Java Programmer. 1 year back I started android programming and published 3 Apps into the market. But these all are my personal projects. Now I want get into the android job market. As my android experience is not corporate experience does the companies consider this? How to add these android project... |
High performance mysql book suggests that for sharding a blog application, one may want to put comments data across 2 shards: first, on the shard of a person posting comment, and on the shard where the post is stored.
So this raises the question how to reliably duplicate this data. Which of the following data duplicat... |
Backstory
I have an Messaging Server Application that is responsible for brokering/proxying calls made from an Application Tier to numerous external services. The purpose of this application is to abstract the technicalities of invoking these services away from the main Application Tier.
This works well as the Applica... |
Unfortunately, there are not currently any books on the subject of 'Learn Android Development with Scala', which would be the ideal solution. I'm guessing that I'll need to pick up at least 3 books here, one for each topic. However, I have no idea what order to read them in, whether to read them simultaneously, what pa... |
As I understand, top-down design is by refining the abstract high level concept into smaller concrete and comprehensible parts, until the smallest building block is defined. On the other hand, bottom up defines low level parts, then gradually build up higher level blocks until the whole system is formed.
In practice, i... |
Im currently developing a ASP MVC site.
Is there any book out there for ASP MVC SEO or just SEO in general?
|
What factors do I need to consider when choosing names for identifiers such as variables? I am concerned about space issues, i.e. extra memory consumption when choosing longer names.
As an example, take these two variables:
bool noExp = true;
bool willNotExpireEver = true;
Each one will take up memory the size of bool... |
I have been programming for a year so far and I know 2 languages: C and C++. I've covered the basics, I've written functional windows programs, and I've written complicated bits of code. When I was using Turbo C for learning the C language I noticed a library called "Graphics.h". I've looked it up and I received amazin... |
Trying to design small project in right way and have a trouble in it:\
about task: need to realize multiplication of big numbers, using fft
First, i have classes
class LargeNumber{};
class Field{}; -- abstract (maybe interface would be better)
class C_C:public virtual Field{};
class Z_p:public virtual Field{};
So, Lar... |
Sometimes in projects we need to spend time on tasks such as:
exploring alternate frameworks and tools
learning the framework and tools selected for the project
setting up the servers and project infrastructure (version control, build environments, databases, etc)
If we are using User Stories, where should all this ... |
I've come across a situation where I need to shard a database (Oracle, but that doesn't particularly matter).
The gist of the problem is I have written a large-scale system in a fairly standard TDD-style, with repositories and services hidden behind interfaces. Dependency injection is used to implement particular versi... |
Which is the most permissive open-source license available?
"Permissive" would be defined as "the minimal requirements about how the software can be redistributed".
|
I'm a web developer with 10 years of experience in the Microsoft stack. I was brought to the US by my company, but my contract has ended.
I want to continue pursuing a career in the US, but it seems there's a focus on networking while still in college. Due to my foreign education, my networking occurred elsewhere. Howe... |
I solve many problems, mostly from Top Coder. I will get answers for many, but most times I end up with an inefficient solution.
In real-world implementations - does it really matter that a solution to the problem is efficient? If so how I can improve it?
|
I am trying to add a couple of tests to a legacy C project. The project basically consists of a command line tool that prints something to stdout every time an event happens. Now, since writing unit tests would be pretty hard given the fact that the modules are pretty tight coupled, I am trying to write some functional... |
I'm interested in developing GUI-based Windows applications in C++, but I'm not sure how it's done in professional or large-scale settings. It seems it would take a lot of development time to describe all the elements (e.g., dimensions and such) within code.
Presumably it's not all done visually, right? How is it norma... |
I have a background script that is responsible for getting and setting data to a localStorage database. My content scripts must communicate with the background script to send and receive data.
Right now I send a JSON object that contains the command and the data to a function. So if I'm trying to add an object to the ... |
I developed an app a few years back: while it's outdated and useless compared to what's available today, it was helpful for people when it was first released.
I recently searched for my own name on Google, and came across a website that made the claim my app was malware that couldn't be uninstalled normally, and provid... |
Concurrent programming in Python is very colorful (and confusing too). There's just too many options with each having it's pros and cons...
Thread based (threading module)
Process based ( multiprocessing module)
Co-routines (greenlet, gevent, eventlet)
Async (Twisted, Tornado)
Inter-process communication (subprocess m... |
Is there a Java IDE written in Java?
I just got my year 9 DET laptop today at school, and there are all sorts of restrictions set in place. Somewhat annoyingly, you cannot run any executable other than the ones already installed on the system (for some reason they haven't disabled the use of Command Prompt, PowerShell,... |
I frequently see Simulation and Emulation in computer science. These two terms seem synonymous. Is there any difference between Simulation and Emulation?
|
We have a product that has a few different editions. The differences are minor: different strings here and there, very little additional logic in one, very little difference in logic in the other. When the software is being developed, most changes need to be added to each edition; however, there are a few that don't an... |
I am developing an application written in ASP.NET (C#) which heavily use on Master Page and Session.
As there will be enhancement in the same web application, and will be done by my teammate.
is there any good approach that can enable we to work on the same solution, and delivery the change to UAT / PDN separately?
the... |
Java makes a clear distinction between class and interface. (I believe C# does also, but I have no experience with it). When writing C++ however there is no language enforced distinction between class and interface.
Consequently I've always viewed interface as a workaround for the lack of multiple inheritance in Java. ... |
I program a data-analysis framework for my company (20000LOCs by now). There are 2 programmers who help writing individual module for interfaces I have predefined. So far I haven't used much planning or tools. I basically think of new classes in my head and write them down in Python+Eclipse. As Python is good for proto... |
I'm looking for a license (for a C library) which basically says:
"Redistributions in binary form must be accompanied by the source code of Larger Work (My code + Your code)"
i.e., L = M + Y, with '+' here meaning, for example, static linking / dynamic linking.
And there must be no more restrictions other than this. I... |
The code should remains as open as possible, but I'm planning to sell it on Windows and Mac, and make free rmp/deb.
Does the licence even matter? It feels like I'm just selling the service of compiling and distributing the software here.
|
I'm lost in a mass of licences - GPL, LGPL, Creative Commons, BSD, Apache, etc, and looking for a beginners guide.
When using a component under a popular licence like these, what are the restrictions for using them without paying in a commercial product?
E.g.
do I have to redistribute the source?
do I have to credit t... |
My current project takes 8 seconds to build one C++ file. Is this common? Other files take 12-15 seconds but most at the moment are about 8 seconds. I use Visual Studio to tell me the time.
I have gone into the headers and removed things I didn't need and used forward declaration. It did save me about 2 seconds per fil... |
I've seen multiple configurations for persisting information to the database. Generally, three types of designs seem common in my corner of the world:
Controller manages the persistence
Model manages the persistence
Third party library manages the persistence, usually requiring some sort of annotations on the model.
... |
I'm teaching myself J2EE technologies using Glassfish as my webserver and EJB container. I'm very interested in learning REST as well, and developing an application that is adherent to the rules of REST.
My first project is to write a chat client. The user will go to a webpage, download a webpage with the javascript to... |
I have to measure execution time for a blocks of code. I had implemented simple StopWatch class like http://www.goldb.org/stopwatchjava.html. If I will invoke methods of StopWatch class directly between business logic then my source code became unreadable and unclean.
What design pattern can be useful in my situation t... |
I'm a programmer. I have always worked by myself.
I usually do only back-end, but now I have a webproject that I want to hand the "View" part to a designer to make
it beautiful.
What I'm looking for are suggestions, best practices, recommended literature to make it easy and separate (easy to merge) for both parts.
I go... |
I'm trying to build a site which user can add their websites which should be monitored and can view a detailed report and statistics of it. And also it should be able to monitor local webservices (mainly),
1) is there any popular java library to use for monitoring a website? (in sense to ping a website and load some ... |
I want to write an ASP.NET 4.0 application with IBM DB2 Express-C as its back-end. One thing that worries me, is hosting this application on a remote server. I don't know any hosting provider who provides ASP.NET DB2 hosting in the same price range as of SQL Server.
I also want to allow the customer to select the datab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.