instruction stringlengths 34 19.9k |
|---|
I'm only passingly familiar with either, but it seems like most of what ZeroMQ offers is already built into Erlang, yet there's an Erlang-ZeroMQ binding that's fairly active according to its github page. What am I missing?
|
Recent QA testing has found some regression bugs in our code. My team lead blames recent refactoring efforts for the regressions.
My team lead's stance is "refactor, but don't break too many things", but wouldn't tell me how many is "too many". My stance is it's QA's job to find bugs that we can't find, and refactoring... |
I'm trying to remember a word, I think it's related to computational or database theory. The closest synonym is atomic but that's not exactly it. Basically it's a kind of computation that should produce the same result even when run multiple times in a row, meaning it doesn't create side effects for itself.
I specifica... |
We are developing a banking application. It's internal project of the bank. The application has to capture huge data to process.
So auto save is recommended approach to capture? How to perform validations in case of auto save?
And on jsp unload saving the data is correct approach?
Which is best way of saving form... |
I am working on creating a REST ws exposing few API's. A token is required for each API call. I am confused about the expiry time to be set for the token.
Security+Performance wise what is the ideal expiry time for token (if there is one)?
|
I am new to freelancing websites. The problem is I have zero rating and I can't get any projects even if I bid the lowest amount.
I tried bidding aggressively. I even tried bidding the lowest possible amount to get my first project but still people having higher ratings get the project. This in turn prevents me from ge... |
I've been playing around and learning javascript/KineticJS by making some simple games (think like board games).
I have the game model that is relatively logically simple. When a "move" is given to my game model, it updates the properties of all the pieces.
However, I would like to make the view have some nice-looking ... |
I am looking for a tool supporting me with estimations.
What I would like to do is to specify a higher level task and break it into several smaller tasks. When a task is small enough, I could assign the time it takes to finish it. The sum of these quantifiers should show up in the parent tasks.
One could use Project fo... |
I am currently maintaining/enhancing a project a bit old speaking of the 1990's. Atleast 15 developers would have worked over it.
Going through the code for understanding is bit difficult.
No coding standards being followed.
OOP concepts not clear.
Too many unnecessary methods and functions, also unused files.
Worst... |
I am developing enterprise iPad application which contained large amount of different bundle data in terms of group of images.
Is it worth to stored as a compressed file format or normal set of individual files?
I am not worrying about huge amount of data which is reside in the cloud.
My concern is that cloud computing... |
I can never do too many Haskell tutorials. There is always something to refine and learn. So, I am working through chapter 10 of Real World Haskell, and everything makes sense.
but
Why do
newtype Parse a = Parse { runParse :: ParseState -> Either String (a, ParseState) }
identity :: a -> Parse a
identity a = Parse (... |
Background
The Wikipedia page on Syntactic Sugar states:
In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language "sweeter" for humans to use: things can be expressed more clearly, more concisely, or in an alternati... |
We are embarking on a new project which will be using the ASP .NET MVC4 platform.
I have been informed that the design is being outsourced to a custom design firm and they will be supplying us with HTML pages and stylesheets.
How easy will it be to incorporate these css stylesheets and HTMl pages in our application?
... |
I ran across the CareerCup website which says they can help prepare you for programming interviews with various US based top tech companies. They don't "guarantee" anything, and the site appears to be backed by a well reviewed book*.
*The reviews are on Amazon
I have been an active member on StackOverflow so accordi... |
I'd like to improve my team's workflow and architecture.
Right now we have a LAMP dev server on which every member of the team has a subdirectory. We work directly in this directory via LAN. There is also a "release" directory for when we're ready to upload via FTP to the production server.
We use a github private repo... |
As images have EXIF data which provide info about where and how they are created, do any Text Editors append such kind of descriptive details to code files? For example I use Coda for my programming works. Does Coda sign any files created by itself? Is it possible to find out the author of two different projects by jus... |
I am interested in starting a career in artificial intelligence.
Can anyone suggest how I could prepare for this?
What languages should I study that would be best for this career choice?
|
I have this web application that is going to be all client-side technology (HTML, CSS, JavaScript/AngularJS, etc...). This web application is going to be interacting with REST API in order to access and modify data. Right now it is undecided on what type of authentication system the REST API is going to use.
From my ... |
I was wandering how can Object.Clone() access field fields that are actually defined in the subclasses, and not the actual implementation of this feature.
What is bothering me is that I cannot see the logic to allow base class (even if it is "special") to access the fields defined in the subclasses - doesn't this break... |
We're using MySQL with Sequelize.js as the ORM.
What we're wondering is whether a DOA layer of abstraction is worthwhile. Here are our options:
To use the Sequelize models throughout the application.
To abstract Sequelize by building a layer that converts Sequelize
models to Backbone models so that we're using Bac... |
I'm designing an XML response for a consuming application to take in, and I'm weighing two different designs. Currently I have a design as follows (where the Product element can repeat):
<Response>
<AccountType>
<ProductType>
<Products>
<Product>
<ProductID />
<ProductStatus />... |
What are the categories of cyclomatic complexity? For example:
1-5: easy to maintain
6-10: difficult
11-15: very difficult
20+: approaching impossible
For years now, I've gone with the assumption that 10 was the limit. And anything beyond that is bad. I'm analyzing a solution, and I'm trying to make a determination of ... |
I am trying to come up with a data schema/methodology for storing the data collected from various different user application forms.
All forms contain the basic info like name, address, etc but then they diverge in what they collect. Each application will have its own unique subset of questions they want to ask. Becau... |
I am planning on building a system where users "subscribe" to "records".
Records are updated on a schedule, several times a day.
When records are updated, the user should be notified that these records have been added/updated.
I don't want each user to have their own copy of the records due to storage space and the ove... |
I've been trying to grok the double-dispatch pattern and having a hard time. I finally attempted a sample program to help myself understand. Here's the gist. But then I decided to attempt it without Double dispatch and the solution didn't look any more terrible than usual. What am I doing wrong?
|
In my ASP.net MVC4 web application I use IEnumerables, trying to follow the mantra to program to the interface, not the implementation.
Return IEnumerable(Of Student)
vs
Return New List(Of Student)
People are telling me to use List and not IEnumerable, because lists force the query to be executed and IEumerable does ... |
Pretty simple setup: I've got a Cart and the cart has Items. I've got many varying types of "products" that can't really be boiled down into one thing or even a common ancestor, so I've instead decided to simply create a representation of the product as a CartItem, which contains all the information from the product ne... |
I work in a middle sized team which shares the same source code and while have a continues integration in place, but as all of us has to work in the same branch, the build is almost always broken.
As we also have a rule, which has been introduced recently to alleviate the broken builds, which states that no one is all... |
I have been looking at server side Javascript technologies like, Rhino and Node.js. What are the advantages of using server-side Javascript and where in the server-side to they fit in a stack?
|
I am trying to instantiate
LinkedList<?> op = new LinkedList<?>();
But I get error
Cannot instantiate the type LinkedList<?>
Why is it that this cannot be instantiated in Java?
|
I am confused a little as what should be my approach, Working on a design of shopping cart and i need to store shopping cart either in session or in database but not sure which approach would be best.here are the use case
User is not logged in and adding product to cart (Anonymous user)
User is logged in and adding pr... |
It seems most companies are practicing Agile methodologies these days for software development.
I'm curious to know if there are any downsides to using Agile, does it have shortcomings, is it always the right methodology to use?
Do you any of you have experiences of using Agile and it didn't really work, maybe it was... |
I have a desktop project I've been working on for a couple months that I want to run on Windows and Mac. When I started the project, I started writing it in Qt 4.8 in C++. Development has gone fine and the application runs fairly well on both Windows and Mac like I hoped. I would say it's about 40% complete at this poi... |
When looking at the ECMAScript 4th Edition specification here it mentions that
ES3 is a simple, highly dynamic, object-based language that takes its major ideas from the languages Self and Scheme.
I'm not familiar with these two languages and cannot seem to find any mention of what exactly is similar to these langua... |
In some pseudocode, I saw the following:
if w in [1..5,8,11]
Does it mean that if w is from 1 to 5 or 8 or 11? Or is it something else?
|
I recently implemented the Damerau-Levenshtein distance algorithm from the pseudocode on Wikipedia. I couldn't find any explanation of exactly how it works and the pseudocode uses completely uninformative variable names like DA, DB, i1, and j1 that left me scratching my head.
Here's my implementation in Python: https:/... |
Update: I've got a response from the FSF on this down in the answers
From the answer to Can I remove all-caps and shorten the disclaimer on my License?, it appears that the APP CAPS sections of a software license are largely to provide extra legal ammo and increase the weight of those sections.
On the flip side, ALL CA... |
I am developing a multipalyer web Application for Anti-Chess. It would be hosted on Google App Engine.
I have a few questions:
How do I get two different users who have opened the webapp on their browser to communicate moves with each other. P2P or through the server. If through the server, can I store some moves on i... |
If I was working on a web application designing and writing an API how does that differ from a general web application development?
What things would I need to consider and take into account? Are there any standard processes to follow when creating an API that could be used by thousands of clients?
|
I was reading some article on the internet as I was preparing for interview and I found out below statement-
Writing object oriented code, even in non-object oriented language?
Is this statement true??
Can anybody provide an example to justify the above statement if somebody asked me this question in the interview.
... |
I'm working on a MVC4 N-tier application and have a quick question about Service to Controller relation and using Domain/ViewModel.
public ActionResult Details(int id = 0)
{
TenantDomainModel tenant = _tenantService.GetById(id);
TenantViewModel tenantViewModel = Mapper.Map<TenantViewModel>(tenant... |
I am attempting to understand what a Package Management System. I grasp the main concept of it but I have some queries.
Does a package management system install features(compilers, libraries, virtual machines) necessary to run an application AND install an application or does it just install features necessary to run... |
I am attempting to understand what UML models/diagrams can be used to communicate a websites architecture.
The model or models' purpose is to communicate the architecture and functionality of a website to technical people (other software developers and engineers).
Website Features:
- The website is a recipe search engi... |
I am employed in a very brilliant company with a true intention of doing XP. Communication is good and management is open to constructive discussion but due to pressing time constraints, some certain things are considered too RUP to be discussed.
At the moment I'm a little troubled with the volume of change that become... |
JavaScript seems to calculate the array length property by the number of the last index in the array rather than counting the number of items in the array. Example:
var testArray = ['a', 'b', 'c'];
console.log(testArray.length); //3
testArray[8] = 'i';
console.log(testArray.length); //9
Normally I would use push() and... |
When Aiken devised the Mark I, why did he decided to separate data and instructions? It was not mentioned in Wikipedia (or in any other searches I've looked) on how or why Aiken separated data and instructions.
|
I have a table of user relationship which stores who follows whom, the table structure is as follows
-id
-follower
-following
when someone follows any other user, I add a record with follower user id and id of user he is following, now my question:
When user wants to un-follow that user, I have decided rather than del... |
I've seen many developers asking for "How to intercept in/out HTTP packets ", "How to modify them on the fly". The most "clean" answer I've seen is to make a kernel-mode-driver filter from the scratch (TDI for XP and earlier winx9 or NDIS for NT systems).
An other way, is to use a user-mode-driver like Windivert, also... |
Despite the best intentions of programmers; oftentimes, in the real world, software systems contain "accidental features" that are accepted as part of a working system.
For example, there may be some process that runs out of memory and crashes before the process exceeds its quota for calls to an external system (which... |
I was wondering about the origins of the "let" used in Lisp, Clojure, and Haskell. Does anyone know which language it appeared in first?
|
I was recently searching for the mathematical formula to find closest point of approach (CPA) between one ship and another ship. I need to apply the formula in my radar ship program and I can't find the correct way to calculates it.
Does anybody know what the correct formula (or pseudo-code) is instead of plotting it ... |
I have started to study design patterns using some course in pluralsight and the gang of four book.
While I feel I understand what I have studied so far, I think it would be very helpful if I would have some way of practicing them.
I know that I will get the chance in time but I feel I would get a better understanding ... |
I am looking for a language that
has First class functions
is dynamic
has prototypical inheritance
does not have too many features (i.e is easy to get into and write first program).
I have been programming in JavaScript for quite some time and have gotten quite fond of it. Are there any other languages that have simi... |
The other day I was reading a little about Unit Testing and I saw some examples where people create a repository interface (i.e. IExampleRepository) and then create the real repository (public class ExampleRepository : IExampleRepository) and a repository to be used for unit testing (FakeExampleRepository : IExampleRep... |
Heapsort is a sorting algorithm that has a time complexity of O(nlogn), and performs sorting using O(1) space complexity. However, I know that because it's unstable, it doesn't find many applications (f.e. compared to other sorting algorithms).
I know it's used for interval scheduling.
What are some practical applicat... |
For example, in case of GDB it is possible to debug itself by itself. I have not been able to find any JVM that can debug itself or even allows debugging on source level.
I was just wondering if someone can suggest on how the systems are made self debuggable. If you have references, please paste it here. I wanted to re... |
Right now we have our administrative features located at www.mysite.com/admin. It is locked down by UN/PW but it still seems like an insecure place to have it. Is there a better place to put it? Perhaps at another domain?
|
When developing on a long-running branch (here defined as living longer than one release), what's the most accepted practice(s) to keeping the branch current with its origin while keeping the history relatively clean prior to merging back?
As an example, consider the origin branch (m) and a (topic) branch (t) with the ... |
I am helping a friend with his rewrite of his .NET application, currently using WinForms + sockets, which is a client/server program that currently has on average ~120 concurrent users (sending messages, using the chat). The client will grow and eventually must be able to handle a several thousand concurrent users.
A t... |
This is a problem I've run into a few times. Imagine you have a record that you want to store into a database table. This table has a DateTime column called "date_created". This one particular record was created a long time ago, and you're not really sure about the exact date, but you know the year and month. Other rec... |
There is a class method (static method) in which I create and build some object. And for filling that object, I create it as mutable object.
My mutable object is a subclass of immutable object. So i can return it as super Class type.
That object is just created in class method and returns. It is not a part of object... |
I am coming from a php background with some python as well. I want to start working on a different language for both web and mobile development. I am also interested in real time apps dealing with games.
I am looking at node.js because I can use tools like titanium and/or phone gap to have my apps ported and compiled ... |
I know that integration testing means integrating unit tested moduls and testing for interface errors etc.
But in real world examples, I am kinda lost. Here is an example of our system:
Back end (Java).
Front end (Flex).
Back end is processind data heavily and we have a lot of tests for weekly automated regression. B... |
We have a very big application written in C++ using the MFC framework (millions of code lines). No need to say that it's a legacy system, but it's also heavily maintained and updated. This application lacks a lot of architecture. For example, we have a lot of classes that do queries directly to the database, which crea... |
Preparing myself for ISTQB, I found a bit odd many things in their textbooks. E.g. they call black box testing as functional testing when you are not concerned with structured but only observe the ouput based on inputs.
But later they say that functional testing is done at levels..well, how can I do unit testing withou... |
I know a lot about programming syntactically. What I am unsure is about how should I go to build a software from scratch. How should be the objects be designed and how should they interact with each other.
To learn how good softwares are written I have tried to read code of some good open source softwares but could no... |
In MIPS assembly, there is a register for the stack pointer, and another register for the frame pointer. What is the frame pointer and what is its purpose? How does it differ from the stack pointer?
|
Recently I read a lot about noSQL DBMSs. I understand CAP theorem, ACID rules, BASE rules and the basic theory. But didn't find any resources on why is noSQL scalable more easily than RDBMS (e.g. in case of a system that requires lots of DB servers)?
I guess that keeping constraints and foreign keys cost resources and ... |
I work on an ExtJS application with a Django backend, and we keep running into issues when we push new code. Our users seldom refresh their browsers, so after a code push we end up with users using the same (now outdated) version of our ExtJS application for days at a time instead of the new, updated version.
How do o... |
Concretely I am looking at this 2000 line file of what I will pretty arbitrarily call "mediocre" code.
It's not well-commented
variable names and function names seem consistently intelligent
functions are not well-documented
functions are good length
In short: its lines and small structures are readable, but it's im... |
I am wondering about how much time Google Summer of Code typically takes. I do have an internship lined up for this summer, but GSoC seems like quite an awesome experience. I also really want to get into Open Source development. It states in the FAQ that it's not a good idea to attempt both, but it doesn't give any ... |
Are constants always irrelevant even if they are large?
For example is
O(10^9 * N) == O(N) ?
|
I want to build most of my functionality on the client. However I'm not quite sure which server-side web development framework can provide me with a nice REST endpoint to handle resources, business logic, etc. I come from a JAVA EE world, where JSF is mostly stateful and component based (both have their pros and cons, ... |
How do I go about managing projects when there are two fundamental relationships that need to be maintained? The most obvious example that I can think of would be a firm doing some kind of location-based consulting.
I've been wracking my brain on how to explain this, in essence, this is the bullet point version:
Each... |
I have a project that will need to handle 1000s of requests a second with a decent amount of processing for each. For the most part, the processing will be done on a list of items, basically filtering it and returning a smaller list. This process can be done in parallel fairly easily and I should also say, speed is i... |
Currently we are using Source Safe and have started migration to Subversion.
All of our external SDK's(> 500 MB) are held in Source Safe right now, and I am looking for ways to move them from VSS to a repository.
We have C++ (mostly), C# (many), Java (few) projects. Hundreds of projects, all running on Windows.
I looke... |
In general, if I am using an API whose methods have side-effects that I only want to occur once, how can I guarantee that my own application only calls them once even if an error occurs before it can register a response?
For example, if I am calling a payment processing API once each month for a subscription service, h... |
I have a PHP MVC application and a file table. I need to implement the functionality: mark all as read. The best solution for the code I found so far was to put the actual implementation in a Model/Service/FileService.php
The problem is the class FileService will get bloated really fast with different functionality.
W... |
When I started studying C++ a couple of years ago, a lot of the books and texts I read did a very thorough job of explaining, how the code written would translate into concrete operations in the hardware (like dynamically memory allocation, pointer arithmetics etc.). I found those explanations extremely helpful in orde... |
I heard Silverlight will not be supported any more by Microsoft. It is true? If so, could anyone share with me Microsoft announcement? And if there are already application developed by Silverlight, what is the new technology to migration to?
thanks in advance,
Lin
|
An enum X : int (C#) or enum class X : int (C++11) is a type that has a hidden inner field of int that can hold any value. In addition, a number of predefined constants of X are defined on the enum. It is possible to cast the enum to its integer value and vice versa. This is all true in both C# and C++11.
In C# enums a... |
Some Agile job posts have a requirement "strong understanding of multiple lifecycles application development", what does it means ?
So my question would be: what's that field for, and what would I need to learn, knowing that I got Java EE experience and Agile more than 2 years.
Sorry if my question isn't constructed we... |
We have a site that allows users to generate their own content. If users generate illegal content, we'll be submitting a report to the authorities. In the event that we do have to report a user, we want as much info as possible on that user. With that said, I have two questions:
Is tracking the user's ip address enou... |
The problem: I am working on a freelance marketplace, and I decided to cancel project with one of my clients, because client is impossible to work with with limitless delays and lots of bugs in his backend. I want to give him a partial refund (partial because I worked for two months and there is 3k lines of code, thoug... |
I've been learning more about Big O Notation and how to calculate it based on how an algorithm is written. I came across an interesting set of "rules" for calculating an algorithms Big O notation and I wanted to see if I'm on the right track or way off.
Big O Notation: N
function(n) {
For(var a = 0; i <= n; i++) { ... |
Setup: Suppose you are teaching an introduction to Databases class, the students are CS students that have a working knowledge of tree structures, how they can speed up searches, and have probably implemented a few in their lifetime.
Question: How would you describe the way in which a database uses indexes to search a ... |
I'm in the process of learning the Android SDK and creating some projects to get a grasp on the system. The current project I'm working with works just fine but I'd like to get some advice about other ways I can go about designing it.
Here's what it needs to do.
When a text message is received from a specific number, ... |
I've worked in some projects where most of the business logic was implemented on the database (mostly through stored procedures). On the other side, I've heard from some fellow programmers that this is a bad practice ("Databases are there to store data. Applications are there to do the rest").
Which of these approaches... |
I believe that in an ideal team, members should have different but complementary abilities. But is that true about software development teams?
As an example we are a small team of 5. We almost have the same abilities and interests but with different levels of skills. Regarding such situation I think we don't cover our... |
Given sorted data, the search solution is obvious. Given unsorted data, sensible options are sort then search or just linear search.
This question is about what to do if the data is somewhat sorted, but cannot be re-organized (write operations require sector erase, and sectors won't fit in ram).
the details:
Data reco... |
As far as I know it is not possible to see the bits of an integer in Visual Studio, you can see variables in decimal or hexadecimal format in the Locals and Watch windows in the debugger.
Why is this limitation in place and are there any tools/addins to see integers as bits?
|
I should define a testing strategy and environments and I have encountered rather terminology issue (but might well be my fault) so I hope someone will correct me here.
We are using INT environment where the application is deployed at first and then SIT environment, where is the app passed if it is fine on INT. So, tes... |
I was wonder what people do in this situation.
You have an admin area of a system where you let users define a list of values they want to see in a dropdowns across the system.
What do you do in your application is a user wants to delete this option?
What do you do with data records which already use this value?
|
I'm looking for pseudocode suggestions for sorting my mp3 files in a way that avoids title and artist repetition. I listen to crooners - Frank Sinatra, Tony Bennett, Ella Fitzgerald etc. singing old standards. Each artist records many of the same songs - Fly Me To The Moon, The Way You Look Tonight, Stardust etc. My g... |
Suppose we have some long stack of numbers. There is another intermediate stack, and a destination stack to be returned in the end. The only two operations allowed is transferring the top of the old stack to the top element of the intermediate stack and transferring the top element of the intermediate stack onto the to... |
Given a number n, find a permutation of the numbers 1...n such that all adjacent entries sum up to primes. If such a permutation does not exist, throw an error.
Is there a purely-functional way to do this problem? The solution, which apparently uses backtracking, given uses C++, a language which I am not very familiar ... |
I started coding with php, mysql, html, and javascript back in 2002 and heck that is all you basically needed to create any type of website. Over the years I picked up other languages, but what turned me off were all of the frameworks and JQuery that was popping up every few months and clients (if freelancing) or emplo... |
I have realized that its possible to create algorithms that operate physically to solve problems much more efficiently than in a computer itself. Consider the following:
Finding the shortest path between 2 points in a connected graph. If one were to physically create the graph with the edge weights correspond to length... |
I'm writing Ruby code for a simple encryption exercise and have frequently run across this dilemma (the exercise is a solitaire cipher if you must know). It is a question of whether I should pad out my logic with descriptive variables and single step statements that make the function readable instead of a concise, eve... |
I've read in several sources including Mark Seemann's 'Ploeh' blog about how the appropriate placement of the composition root of an IoC container is as close as possible to the entry point of an application.
In the .NET world, these applications seem to be commonly thought of as Web projects, WPF projects, console app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.