instruction stringlengths 34 19.9k |
|---|
I need to design a database that will contains information about personal disease of users.
What can be the approach in order to implement the columns of the DB's tables: encrypt the information, separate data within two differents DB, one for sensitive data and another for not sensitive data, or both or another approa... |
Let's assume you are convinced that the extra time spent unit testing has merit and improves production. Does that still hold up when everyone working on the same code doesn't use them? This question makes me wonder if fixing tests that everyone doesn't use is a waste of time. If you correct a test so the new code will... |
I am aware of the fact that TFS 2010 ultimate edition can create and validate architecture diagrams. For example, I can create a new modeling project > add Layer Diagram > Add Layer called View > Add BL Layer > Add DL layer.
Then I can validate this architecture as part of the build process when someone tries to check... |
I studied computer science near the end of 1980s, and wasn't taught OOP that formally.
With Pascal or C, when I understand the top-down design of functions, and the idea of black box, then everything just seem to make sense, as if there is a "oh I get it!" -- some kind of totally getting it and enlightenment feeling.
B... |
Our application uses database (mostly Oracle), and database is at the core. Each customer has its own database, with its own copy of application. Now with each new release of our product, we also need to update the database schema. These changes are adding new tables, removing columns, manipulating data etc. How do the... |
Just wondering whether dynamically built HTML layout is fine from SEO perspectives? So let's assume e-commerce engine and its most popular page - products catalog. So 90% of the page is built using AJAX and MVVM library knockoutjs which builds HTML on the fly on the client side. So how search bots would parse such cont... |
I've got a nice MVC set up going but my website requires some views that don't map directly to a model. Specifically I've got some generic Reports users need to run, and now I'm creating a utility for comparing some system configurations.
Right now the logic is crammed into a Reports Controller and I'm starting a Comp... |
It occurs to me that the ModelBinder mechanism in ASP MVC
public interface IModelBinder {
object BindModel(System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext);
}
Is insanely powerful. What are some cool uses of this mechanism that you've done/seen?
I guess since th... |
My team is getting up to speed with Scrum, but most of us are more familiar with non-agile or "pseudo-"agile methodologies. The part that is the biggest hurdle for us is running an efficient Sprint Planning meeting where we break our backlog items into tasks, and estimate hours. (I'm using the terminology from the VS2... |
Background
I was just asked in a tech interview to write an algorithm to traverse an "object" (notice the quotes) where A is equal to B and B is equal to C and A is equal to C.
That's it. That is all the information I was given.
I asked the interviewer what the goal was but apparently there wasn't one, just "traverse"... |
I am currently learning Javascript, and there is one element of the syntax that I can just not seem to nail down. That element is adding semicolons at the end of each line. I have learned Python and Ruby, and written a ton of both, so the lack of semicolons is stuck in my mind! Is there a way to drill that (or even any... |
I have been seeing opportunities go past me for just 1 reason: not having professional industry experience. I say to many employers that I'm capable of doing the job and show them the work I've done during the academics and also several personal projects which I took extra time and effort to teach myself the new indust... |
Any idea on how to build an application that provides unique keys each time it get called by another process.
Calling process isn't my problem here, my problem is how to sync between two(or more) processes and preventing it from providing the same key to both of them.
I'd really appreciate your help in this issue, ple... |
I have written a program that can rapidly (within 5 sec on a 2GB RAM desktop, 2.33 Ghz CPU) differentiate between structured text (e.g English text) and random alphanumeric strings. It can also provide a probability score for the prediction.
Are there any practical applications/uses of such a program? Note that the pro... |
I want to save the configuration of my project which includes
Screen size
Screen position
Folder paths
Users settings and so on.
The standard places where you can save these are configuration values are:
Registry
INI files
Personal files (like *.cfg)
How do you choose between these places? Also, are there any pros ... |
Am looking for a good resource on learning the concepts behind NoSql databases.
Most things I find are related to a specific technology (MongoDb, CouchDB etc) but I'm after all the concepts behind NoSql instead of focusing on a specific area (some are graph DBs, some key-value etc).
Can you share from your experience ... |
Background
I am a working software engineer who is in the midst of seeking out a new contract for the next year or so. In my search, I am enduring several absurd technical interviews as indicated by this popular question I asked earlier today.
Even if the questions I was being asked weren't almost always absurd, I wou... |
I see the term "enterprise" being thrown around software developers and programmers a lot and used loosely it seems.
en·ter·prise/ˈentərˌprīz/
Noun: A project or undertaking, typically one that is difficult or requires effort.
Initiative and resourcefulness.
Can someone please clarify what this term actually encompas... |
I have a simple form for the user to sign up to my site; with email, username and password fields. We are now trying to implement an ajax validation so the user doesn't have to post the form to find out if the username is already taken. I can do this either on keyup event or on text blur event. My question is, which of... |
What's the difference between these?
Recursion
Corecursion
On Wikipedia, there is little information and no clear code explaining these terms.
What are some very simple examples explaining these terms?
How is corecursion the dual of recursion?
Are there any classic corecusive algorithms?
|
One way of looking at type safety is that it adds automatic tests all over your code that stop some things breaking in some ways. One of the tools that helps this in .NET is generics.
However, both WinForms and WPF are generics-free. There is no ListBox<T> control, for example, which could only show items of the specif... |
I work with someone who insists that any good software engineer can develop in any software technology, and experience in a particular technology doesn't matter to building good software. His analogy was that you don't have to have knowledge of the product being built to know how to build an assembly line that manufact... |
One of the features in our project is to implement a comparison algorithm between two versions of text and provide a % change between the two versions. While I was researching, I came across google java-diff-utils project.
Has anyone used this for comparing text using java-diff-utils ? Using this utility, I can get a ... |
This isn't really Dapper-specific, actually, as it relates to any XML-serializeable object.. but it came up when I was storing an object using Dapper.
Anyways, say I have a user class.
Normally, I'd do something like this:
class User
{
public string SIN {get; private set;}
public string DisplayName {get;set;}
... |
I was wondering how computers do this.
The most logical way I can think is that they are iterating trough all elements of the list until they find one that matches the condition :)
For example if you call function_exists(), PHP should iterate trough all defined functions until it meets the one that matches the name you... |
Are there any prolog interpreters that can functionally decompose your 'programs' in order to improve efficiency?
I know there's been research on prolog interpreters that reach near-C speeds through parallelism (the kind that a typical C programmer can't "see"). Does anyone know more about this topic?
|
There is a provision for try-catch block in javascript. While in java or any other language it is mandatory to have error handling, I don't see anybody using them in javascript for greater extent. Isn't it a good practice or just we don't need them in javascript?
|
I implemented the publish subscribe pattern in a JavaScript module to be used by entirely client-side oriented JavaScript objects. This module has nothing to do with client-server communications in any way, shape or form.
My question is whether it's better for the publish method in such a module to be synchronous or as... |
I'm working on the backend of a java web application. We have a document repository (Fedora Commons specifically) where we house xml files. I want to abstract the API of the repository internally so that we aren't tightly coupled to one product. I'd also like to give the flexibility of connecting to to a repository via... |
I started a project (a Windows based timetable program that helps you stay organised with your subjects and assignments).
The problem is that I'm not sure how I should manage this project and what order to build things. I.e. Should I build all the different interface elements then write the code or should I make an in... |
I program primarily in ColdFusion but this is a general OOP question.
Is there any benefit to using:
getProp() {
return prop;
}
setProp(val) {
prop = val;
}
As opposed to simply
obj = new Obj();
obj.prop = "1";
|
I am looking to build a very loose authentication system that can track a user and link submitted data/comments to a specific user. The submissions are essentially anonymous, but a user may want to edit his submission/comment at a later date.
I want the experience to be as smooth as possible so do not want to ask user... |
I've been asked to audit a PHP application. No framework, no router, no model. Pure PHP. Few shared functions. HTML, CSS, and JS all mixed together. I've discovered numerous places where SQL injection would be easily possible. There are other problems with the application (XSS vulnerabilities, rampant inline CSS, code ... |
Possible Duplicate:
Learning to program without a computer
I have a bit of experience programming (6 Months) and am soon to go on a 2 month trip where I will be without a computer, but with lots of spare time. Is there a way I can keep programming (or learning to program) even without a computer? Should I read langu... |
Which of these two programmers is "better", from a managerial standpoint?
The first programmer is Albert. You tell Al to make a system that will pass you the salt at the dinner table. He does it in less than a day. It works fine.
The second programmer is Ben. Ben is told to make a program to pass the salt, and after tw... |
I need to build complex sql queries programatically, based on large filter conditions.
For example, below are few sample/hypothitical filter conditions, based on which i need to fetch users
Country: india
States: Andhra Pradesh(AP), Gujarat(GUJ), karnataka(KTK)
Districts: All districts in AP except 3 district, 5 any di... |
I have recently started using require.js (along with Backbone.js, jQuery, and a handful of other JavaScript libs) and I love the module pattern (here's a nice synopsis if you're unfamiliar: http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth). Something I'm running up against is best practices on i... |
I have a project. The server which based on a phone PCI-board is responsible for received phone calls from the customer and then redirect the phone calls to the operators.
I have decided to code the server using c++ programming language and qt framework because the PCI-board SDK's interface is c/c++ originated and fo... |
How can I measure the performance of my C++ programs using C++?
Specific metrics I want to measure are:
Memory used (space)
Duration taken (time)
|
A while ago I started to create a winform application and at that time it was small and I did not give any thought of how to structure the project.
Since then I added additional features as I needed and the project folder is getting bigger and bigger and now I think it is time to structure the project in some way, but ... |
Caveat: I am a political science student and I have tried my level best to understand the technicalities; if I still sound naive please overlook that.
In the Symantec report on Stuxnet, the authors say that once the worm infects the 32-bit Windows computer which has a WINCC setup on it, Stuxnet does many things and tha... |
I'm doing a research on formulating a requirements analysis model as a stage of requirements engineering for mobile-application development by considering the limitations and the needs of it ( agility and etc.. .), what I'm trying to figure out is that which parts of this process (requirements analysis for mobile deve... |
I was thinking about issue tracking software like Redmine, Trac or even the one that is in Fossil and something hit me:
Is there a reason why Redmine and Trac are not possible to be distributed?
Or maybe it's possible and I just don't know how it's possible?
If it's not possible, why?
By distributed I mean like Faceboo... |
For fun and by request I am updating this ImageGrid component, a kind of listbox for images that has a FileNames property of type TStrings.
For ease of writing, I have been misusing its FileNames.Objects property for bitmap storage. But since the TStrings type suggests that users of the component could or would want to... |
How can I explain C# interfaces and constructors to a 8 years old genius kid?
|
Dear All,
I am working for iOS application developement. Now am considering to go for certification in iOS application development. I am thinking about expertrating.com. Please guide me if you know any other certification in iOS development with more market value of the certification. Thanks in advance a... |
Background
I am recently in the process of enduring grueling tech interviews for positions that use the .NET stack, some of which include silly questions like this one, and some questions that are more valid. I recently came across an issue that may be valid but I want to check with the community here to be sure.
When... |
How should I comment a method?
What are the best practices on commenting code?
Example:
/* Checks if a color is allowed in a given point
* of the bitmapdata of the current floor
* @param value - color to be checked
* @return boolean - if color is allowed returns true, else, return false
*/
private function isAllowed(v... |
For example, ISerializable and the Serializable Attribute are both in the System.Runtime.Serialization namespace, but not the assembly of the same name. On the other hand, DataContract attributes are in the namespace/assembly System.Runtime.Serialization.
This causes confusion when a class can have using System.Runtime... |
Thanks all for your help before.
So, this is what I came up with so far,
the requirements are, application has two or more threads and each thread requires a unique session/transaction ID. is the below considered thread safe?
thread 1 will register itself with get_id by sending it's pid
thread 2 will do the same
then ... |
I hope this post isn't too "Fringe" - I'm sure someone will just kill it if it is :)
Three things made me want to reach out about this now:
Decoupling is so in the forefront of design.
TDD inspires the idea that it doesn't matter how a program comes to exist as long as it works.
Seeing how often the adapter pattern is... |
I had always thought that the "head" of a queue as the next element to be read, and never really questioned that usage. So a linked-list library I wrote, which is used for maintaining queues, codified that terminology: we have a list1_head macro that retrieves the first element; when using this library in a queue, this... |
Program slicing is one of those software technologies where there is much more activity in the research community than in the industry community. Does anybody outside of the research community using slicing tools on production code to help with debugging or other tasks? If so, what tools did you use?
|
I have been looking around on the internet and have not found a good answer yet. If anyone could be so kind and supply a code sample I would greatly appreciate it. I apologize for the simplicity of the question.
|
Given the standard North American phone number format: (Area Code) Exchange - Subscriber, the set of possible numbers is about 6 billion. However, efficiently breaking down the nodes into the sections listed above would yield less than 12000 distinct nodes that can be arranged in groupings to get all the possible numbe... |
I have a destination repo that is remote and I have a source repo
that is also remote. I would like my local machine to act as a proxy
to allow me to push to the destination from the source without ever
download the repo to my machine. Is this possible?
|
I have the following problem scenario:
I have a text file and I have to read it and split it into lines.
Some lines might need to be dropped (according to criteria that are not fixed).
The lines that are not dropped must be parsed into some predefined records.
Records that are not valid must be dropped.
Duplicate reco... |
I am currently publishing a paper on skin detection. However, I need to find the appropriate histogram bin size for each colorspace. I recently came upon a paper that published what it found to be the ideal bin size. The paper can be found at: http://www.inf.pucrs.br/~pinho/CG/Trabalhos/DetectaPele/Artigos/OPTIMUM%20CO... |
Is there a preferred/recommended Internet Media Type for RESTful POST requests?
For example, if I want to add a new user, should I send the data as a URL encoded string like:
name=Foo&otherData=Bar
or does REST recommend I send the data as whatever format the response is going to be sent as (e.g. JSON/XML)?
<user>
<... |
Why were frames removed in HTML5, but not iFrames? After all, there is almost no difference between the two. In many instances using either of them would give the same output (pardon me if I am wrong)?
|
I'm in the middle of a project and I was asked to write UML diagrams (use cases,class diagram,etc). The project isn't very complex.
I was wondering if this be a waste of my time? Should I just be doing other fun stuff like writing code? And when is it not ok to build something without going through all of the conceptu... |
I have a project that needs Hibernate jars.
I added them as dependencies in the pom.xml and Maven compiles my project well.
However, in the IDE, all annotations and calls to Hibernate API are marked as unresolved (red).
How could I get IntelliJ being able to resolve them ?
Is there a way to use Maven when I click on Bu... |
Just like the question asks, is there a need to add Debug.Assert into your code if you are writing unit tests (which has its own assertions)? I could see that this might make the code more obvious without having to go into the tests, however it just seems that you might end up with duplicated asserts. It seems to me th... |
Possible Duplicate:
How many developers before continuous integration becomes effective for us?
I'm new with continous integration though I have used it without know the term. So, I'm interested about the mechanism can be possible to implement and my question is: can a continuous integration server be useful for a t... |
I have a project A (a webapp), depending on project B (B.jar) and this one depending on project C (C.jar).
I would like to create a maven goal named "Rebuild War", that clean all compiled code for these 3 projects and rebuild the whole in order to obtain a fresh War file.
I tried mvn clean package on project A, but I n... |
Every one of us make errors leading to bugs. Once I wanted to start logging my errors for future analysis, probably mentioning project title, approximate time spent and the most important, the type of error. For example when I copy-pasted a fragment about 'x' and replaced every occurrence of 'x' with 'y' and forgot to ... |
I recently had to update an abstract base class on some OSS that I was using so that it was more testable by making them virtual (I could not use an interface as it combined two). This got me thinking whether I should mark all of the methods that I needed virtual, or if I should mark every public method/property virtua... |
In reference to broken windows, are there times when refactoring is best left for a future activity?
For example, if a project to add some new features to an existing internal system is assigned to a team that has not worked with the system until now, and is given a short timeline in which to work with - can it be ever... |
I have noticed something in my code in various projects that seems like code smell to me and something bad to do, but I can't deal with it.
While trying to write "clean code" I tend to over-use private methods in order to make my code easier to read. The problem is that the code is indeed cleaner but it's also more dif... |
I'm finding it very difficult to write complex SQL queries involving joins across many (at least 3-4) tables and involving several nested conditions. The queries I'm being asked to write are easily described by a few sentences, but can require a deceptive amount of code to complete. I'm finding myself often using tem... |
We are a company and we want to use 30% of the BSD opensource software to plug and play it with our source code, can we do that. Further this program will not be distributed and only will be accessed by our clients using our own software. Is it possible for us to do the above without any restrictions.
Kindly give me f... |
What's the best way to review a code before it's committed to the SVN trunk? One idea that I am thinking of is to having the developer to commit his code to a branch and then reviewing his code while merging the branch revisions into the trunk. Is this a good practice? If not, what else could be done to review a code b... |
I'd like to know, why would I want to have a special prefixes for a function arguments, like "p_name", "p_age", "p_sex"? On the one hand it helps to distinguish parameter from local variable or field further in the function body, but would it help? On the other hand, I didn't saw such naming recommendations anywhere in... |
Today I was asked this question during an interview:
What will happen if we do not override the hashcode method for our
class, then add it to HashTable and then try to get objects?
What could go wrong?
|
I've been under impression, that monkeypatching is more in quick and dirty hack category, rather than standard, good programming practice. While I'd used from time to time to fix minor issues with 3rd party libs, I considered it temporary fix and I'd submit proper patch to the 3rd party project.
However, I've seen th... |
I am developing apps on my sparetime. I am the sole developer, and two non-programmer friends of mine provide vision, content, algorithms and ideas. We always agree happily on all the features, todos and prioritizations. But naturally, coding it is the biggest part.
When selling, we agree on splitting profit equally, t... |
In many User Interface libraries, we have concept of views and subviews.
so according to MVC pattern every view should update the model as soon as it changes.
For that view should have a reference of its model. If we have a subview and it does some calculation, then should that model also be passed to the subview or p... |
I'm using CSS3 for the first time, but using specific styles with prefix for each browser looks strange. The need of using -moz-, -o-, -webkit- and another prefix turns the CSS bigger and harder to maintain.
I want to know if the browsers are implementing some standardization to avoid the usage of prefix for styles.
|
Would a competent asp .net C# developer be disregarding a lot of their skills in order to have more concern with configuration and server-side coding when moving their career into the sharepoint 2010 arena? Or is asp .net C# in fact just a good base to begin the study of sharepoint on?
|
In this Stackoverflow anwer I dimly recall being taught that it's better to use as "wide" a condition as possible to terminate a loop, rather than testing for an exact termination condition.
i.e. use:
while (x < 10)
rather than
while (x != 10)
however I cannot recall (or find) any formal basis or rationale for this.... |
I have some trouble getting a good folder structure in my project and i would like to know what other ways i could use to structure my files.
I'm currently working in an MVC sturctured folder.
www/
Controllers/
Models/
Views/
Nothing special so far. But i'm also using an ORM system. With it i can easily get an '... |
It seems to me that the list terminator in Lisp could be any arbitrary value. For example, the string terminator in C is the null pointer. Is there a philosophical reason why the empty list was chosen to terminate lists?
|
I have worked in software development for over 10 years now, and it's dawning on me that I rarely get to create anything "new". I realize that "new" is a vague term, but I would define it as anything from an obvious new large-scale project to a new large feature in an existing project (say something that would require... |
A little background. A developer I used to work with insisted on disabling Tempdata and using Session Flash for passing data in the return view.
Question is, is there any advantage to doing it this way? using a flash message is great for returning data to the user but I've had headaches with passing data from one... |
I'm working on a new programming language, which determines structure with indentation instead of braces in the manner of Python and CoffeeScript. Obviously placing lines indented with spaces next to lines indented with tabs will mess up that kind of syntax, so I'm disallowing that - any given source file must use one ... |
I'm nearing the end of a prototyping/proof of concept phase for a side project I'm working on, and trying to decide on some larger scale application design decisions. The app is a project management system tailored more towards the agile development process. One of the decisions I need to make is whether or not to go... |
I was reading about software inspection in Software Engineering by Ian Summerville and I came across the term Software inspection and I started reading about it on Wikipedia. I am unable to understand what is the difference between verification and software inspection?
|
I am developing desktop based GUI (single form) using wxPython and loads it using remote citrix access from client private network.
Suppose, the GUI has certain group of select and text boxes which are loaded together when application starts. The value of select boxes come from database and on the basis of selection of... |
I would like to organize my company's software releases by platform. I've looked at how Mozilla, Perforce, and Apache organize their releases, and it seems that I should partition by OS and processor architecture. I was thinking of something like this:
Linux (x86-32)
Linux (x86-64)
Neutrino (x86-32)
Windows (x86-32)
W... |
I'm coding in C++. I have a server that will have clients connect to it, and each client gets spun off into its own thread for communication. This server is hosting a game, so there is information that must be shared between all client threads, as well as any other threads I choose to spawn off. This data is like level... |
I would like to group a population based on two criteria. I will use an analogy to simplify my question.
Let's say I want n number of groups. I want to populate those groups based on person's age and weight, so that all groups contain about the same total age and are evenly distributed by weight (so that there are abou... |
I'm not asking from a business sense exactly, but for example, both reddit and Twitter are completely open source. It is my understanding that at least the large majority of their profit comes from advertising on their website. So what exactly is to prevent someone from copying their code and making their own website... |
I find whenever I work with GUI code, the code tends to bloat faster then other kinds of code. It also seems harder to refactor. Whereas in other kinds of code I can refactor pretty easily -- I find I can decompose a larger class into smaller pieces of functionality -- with most GUI frameworks I'm often bound to a fram... |
I have been reading about MapReduce for a while -- but what I can't understand is how someone would make a decision to use (or not use) MapReduce.
I mean, what are the problem patterns that signal that MapReduce could be used.
|
When I learned the C++ language for the first time I learned that besides int, float etc, smaller or bigger versions of these data types existed within the language. For example I could call a variable x
int x;
or
short int x;
The main difference being that short int takes 2 bytes of memory while int takes 4 bytes, a... |
We've been having constant requirement changes of having to choose which graphic rendering library to use for our project.
In a team of about 10 members, two of us are exploring the new graphic library. The team lead expects that we learn what's necessary within 2 days and introduce it to the rest of the team (wants ... |
Background
Recently, I have been fascinated about the possibilities of dataflow-based programming approaches - in particular, signal/event-based concepts as realized by functional reactive programming, Boost::Dataflow::Signals, and the like.
Sample scenario:
Consider a car that has four speed sensors, one at each of it... |
I have a ASP.NET web based application that allows the end user to export data to a flat file format. (essentially taking a point-in-time backup of their work)
At a later date they can re-upload (import) that data back into the web application.
The actual format of the backup is pretty trivial. An object graph is seria... |
I am working on a web application which operate with different types of objects such as user, profiles, pages etc. All objects have unique object_id.
When objects interact it may produce "activity", such as user posting on the page or profile. Activity may be related to multiple objects through their object_id.
Users m... |
A situation that has arisen several times in open source projects goes like this:
I notice a bug in our deployment, and figure out a quick hack patch. (For example, simply commenting out code that we don't actually need.)
I spend a little bit of extra effort to figure out the real bug, come up with a patch, and submit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.