instruction stringlengths 34 19.9k |
|---|
I was wondering what "profile" means in Wikipedia:
XML is a profile of an ISO standard SGML, and most of XML comes from
SGML unchanged.
According to
http://xml-tips.assistprogramming.com/sgml-xml-html-xhtml-all-together.html:
HTML is a subset of SGML.
XML is a highly functional subset of SGML.
XHTML extends and s... |
Yesterday, I rolled out a v1.0 release of a Web project I've spent about 6 weeks working on (on and off, that is). I haven't made any exact records of my time, but according to my experiences I would estimate that out of all the time I spent programming, half of it was spent debugging. I estimate that to be about a goo... |
Ever since I discovered programming five years ago, I've done a lot of things. I've learned numerous programming languages and technologies and tried out many interesting things. I've written games, both console and with graphics, console and windowed applications that run in the desktop, CRUD web applications, my own ... |
I read through a few discussions in SE about Cloud Computing . From them, I understand cloud as "computing / data-storage facility that is owned by a different entity; using hardware & software architecture that make it easily scalable on-demand, therefore support rentable-scalability models."
Also, "the owning entity... |
Is it possible to do the following in C# (or in any other language)?
I am fetching data from a database. At run time I can compute the number of columns and data types of the columns fetched.
Next I want to "generate" a class with these data types as fields. I also want to store all the records that I fetched in a col... |
Is there some kind of generalization to the effect called Heisenbug? Because I would like to describe in my documentation how instrumenting a program changes the execution no matter what.
In The New Hacker's Dictionary it is defined as following:
heisenbug /hi:'zen-buhg/ /n./ [from Heisenberg's Uncertainty Principle i... |
I have built many web sites and I would like put them in my portfolio.
But now when I am checking I see that most of them are changed as they switched to another company.
Now I am confused what should I do
Do I put old thumnail or screenshot of site or new one? (I have old screenshots)
If interviewer checks the site a... |
I have seen many times that if we build a website for a client then there is a possibility that this site gets changed over a period of time.
I was thinking that from now onwards whichever site I make I will host a copy of the site on a personal server. Like client1.myserver.com so that even if they change it I have th... |
I'm working on a flash player that needs to track how long a user plays a video for. In addition, I need to know the user. I can easily do that with a request to the server. What I've thought of so far is sending a request to the server when the user presses play and another when the player stops playing the video. The... |
I'm considering trying to sell a small desktop application (I would be considered a one-man mISV, I guess?) at a price of about $20-$30 USD. I would distribute to customers by download only. I get the sense the best and most intuitive way to do this is provide a download link from the application's website.
What are ... |
Let's say that my company was to develop a replica of MS Word (just as an example). What would be the bottleneck to the development process, assuming that one has infinite cash available and an organization like Microsoft? In other words, what are the most usual hindrances from developing such software fast? Let's assu... |
I want to briefly discuss managed or interpreted languages. It's said that they're worth developing in, because the CPU time is worth less than the programmer time required to develop in a faster language. I'm curious if the same thing could be said for the compiler. If I had some mythical compiler that took four times... |
Given that browsers (Chromium/Chrome thus far AFAIK) seem to be introducing embedded site translations and utilities such as Wibiya and given the amount of work that localizing a site can be (depending on framework, view re-writes, database-driven message localization, etc), does it make sense to put in work to localiz... |
I am working on Asp.net webform and it already provides me ready to user Ajax solution by using an update panel, so should I invest my time learning how Ajax really work ?
|
A colleague and I were discussing how to echo HTML inside of javascript code. Specifically, in a situation similar to this:
new Element('div', {
html: '{long string of HTML goes here!}'
}.inject($('content'));
Short snippets seem to work well in this situation, but what if we were echoing a large set of data? The ... |
I have some code where a good inheritance model has gone downhill and I am trying to understand why and how to fix it. Basically, imagine you have a Zoo hierarchy with:
class Animal
class Parrot : Animal
class Elephant : Animal
class Cow : Animal
etc.
You have your eat(), run(), etc methods and all is good. Then ... |
As a software development contractor I've worked on many projects with differing standards and conventions. Quite often these conventions go against the software best practices we know and 'love'.
The question is, when you're working on an established project with specific ways of doing things that you know aren't the ... |
I was given a small project to complete over the weekend for an interview. Not a very difficult project at all. Fortunately, I was able to spend all my time designing, developing, and testing the application rather than having to research something I wasn't familiar with.
After working out a couple of critical bugs, ... |
While Sun's Java code convention suggests to put line break before the operator, many other guidelines disagree with it. I do not see any obvious pros and cons. Are there advantages of using one of these styles over the other?
String longVarName = a + b + c + d +
e + f;
vs
String longVarName = a + b + c + d
... |
I wondered if anyone could advise on the best way of storing a users acceptance of the Terms and Conditions in the database. I am in the UK if this changes anything.
I have had the T&Cs drawn up by a UK Lawyer so don't need any advice on that part!
At the moment I am thinking at the time of signup having a checkbox say... |
I am a junior software developer and I have been researching some of the practices in the industry to make myself better. I have been looking at unit testing briefly and I cannot see how the extra time writing a ton of unit tests is going to make my code better.
To put things into perspective:
The projects I work on ... |
I'm a graduate in the electronic & telecommunication field, but working in a software company. I want to continue in this field and going for Masters in it. Can you recommend me some of the best books on software engineering, which cover almost all the topics in software engineering.
I am not looking for books about co... |
We're working on a kind of CMS, a fast, hosted, centralized website builder like Weebly. We also use Scrum development model. But there seems to be some problems here. Our sales manager always come to us, complaining about the design of the application, or UI elements, or stuff like that and hinder development process ... |
While implementing a flash game portal I decided to "component-ize" my views. The repeating elements were a no brainer and the templates for these were placed in elements. I pass through data from the controller to the element via the view using the Html helper.
This is all working fine, and except for a very minor... |
I have recently started working in a team where there is no version control. Most of the team members are not used to any kind of version control. I've been using mercurial privately to track my work. I would like to encourage others to adopt it, and at the very least start to version their code as they develop changes... |
Many of my Java books are 5 - 10 years old. Does it still help to read them, or should I use something within 2 years.
|
For distributed applications, emphasis mine:
Where classic software systems of the past century were mostly based
on Client–server models and Client-centric application development,
both ultimately run on one single computer, be it the client computer
or the server.
I understand what client-server models are, ... |
I am working on an application in C# and I am having some extreme difficulty solving this design issue.
Basically the application allows users to create cook books. A user can click "new book" and the application will create a book with a given name. Now the user is allowed to add "recipes" to that book. The user can s... |
I have two team members who come from backgrounds that differ from what they're currently being asked to do: how can we encourage them to step up, develop their skills, and learn the new ways?
|
When developing software, I often have a centralised 'core' library containing handy code that can be shared and referenced by different projects.
Examples:
a set of functions to manipulate strings
commonly used regular expressions
common deployment code
However some of my colleagues seem to be turning away from this... |
In software engineering, what's the name of a development process like the waterfall model, but with more cycles? Does something like this exist?
In my case, I developed the parts of my application separately and went through all the steps in the waterfall model (requirements, analysis, design, implementation, testing)... |
I'd like to know what experiences others have had telecommuting full time? What software tools and processes helped maintain cohesion and maximized collaboration & productivity?
|
I am working with ASP.NET Application. The application is great and works fine but it a few flaws. To give you an example,
Every control uses an absolute position layout. This makes working with code very difficult in design mode. Absolute position has been used more than 700 times in the code.
There are different men... |
OK, I was pondering this today, and I've come to ask for completely subjective and bias opinions on it. Paradoxically, despite this, I don't think it's flame-war fodder either. I think there is room for perfectly civilized conversation -- It's hardly Vim vs Emacs.
I've used a lot of concurrency abstractions, specifical... |
I go to a university where students are allowed to make their semester schedule based on the information about the subjects they are going to take, that is, the hours that the courses are available, the professors, and the remaining room for other people. Making these schedules by hand was a very difficult/boring task.... |
I always want to try some pair programming especially with the one who is more experienced programmer than I am. But how can it be done? Are there any websites where people can collaborate and find partners or something else?
|
I'm working at a software consultancy that a has a lot of volunteers available for about a month and a half at a time (when we're between projects and learning things) and we'd like to start contributing to open source projects that have a positive social impact. Any idea which projects we can look at?
The constraints... |
I would like to learn about reverse engineering, but I'm little bit confused with many different assemblies. So to say... Let me explain!
Everytime I start reading assembly tutorial it states it is for MC8600 or x86 or some other CPU. I found here explanation why there is so many assemblies. And I found here and here s... |
Possible Duplicate:
In plain English, what is recursion?
What is the best way to explain "Recursion" to 8 years old kid?
I tried with the Fibonacci Series but i failed.
|
what is a NPR syntax, from what i have gathered from internet, i have come to conclusion that NPR is a performance related database. Its based on NPR database
Given that what i have gathered is correct, how do i extract data from this Database, what language\Tools should i be using?
|
I work on a small team, around 10 devs. We have no coding standards at all. There are certain things that have become the norm but some ways of doing things are completely disparate. My big one is indentation. Some use tabs, some use spaces, some use a different number of spaces, which creates a huge problem. I often e... |
My company has grown seriously over the last years. Until a few years ago we could work with 1 agile team and everything went quite smooth. Now we have multiple teams, all working agile and things go less smoothly as we would hoped.
One of the main [psychological] problems is how to organize the working methods in th... |
I am asking in the context of the licenses on code that one sees all over the place. Typically, they say something along the lines of "if you release a product containing this in binary form, it must contain X, Y, and Z."
Does that mean that if I use the code in an app, the app has to have a screen somewhere that cont... |
I already have knowledge about basic algorithms. Now I plan to study more advance algorithms and I decide to go with Introduction to Algorithms.
I'm not sure, do I need to refresh my math's skill before read this book or not? (I forget almost math that I learn in high school and college) If this book need strong math k... |
I'm new to OOP, having been a procedural programmer for many years. I'm learning iOS development in Objective-C and could use some clarity on when and how objects and properties are used.
Say I have a view controller, MyViewController. Within that is a UIView, MyView, with a property, viewProperty.
How do I reference... |
I'm bashing around a few ideas for storing usage data (similar to google analytics) for some Javascript products that we are working on.
Unfortunately as yet we don't quite know 100% what data we want to store and only have a basic idea of the metrics we want to glean from it.
My thinking is that basically we want to s... |
I work on a pretty old application which was converted from DOS and flat files for storing information to Paradox tables using the BDE then to MySQL relational database.
The older devs say that the reason they have no idea how to properly create a table in 3nf is because their code predates relational databases and th... |
I must be missing something.
The cost of employing a programmer in my area is $50 to $100 an hour. A top end machine is only $3,000, so the cost of buying a truly great computer every three years comes to $0.50/hour. ($3000/(150 wks * 40 hours))
Do you need a top-end machine? No, the $3000 here is to represent the mo... |
I am wondering what should an algorithm documentation contain? Can't locate a proper guideline to follow. I have in mind to include
summary of the algorithm
description of the algorithm
flowcharts
pseudo codes
sample input data set(multiple)
output data
unit tests
experiments
The client requests such a documentatio... |
We've all done it, we've labelled some code (often stuff we've inherited) as "legacy"? But it's still used in the production systems - so is it really legacy? And what makes it legacy? Should we shy away from this unwarranted labelling of perfectly functioning code; where the labelling is a pure convinience which allow... |
Possible Duplicate:
TDD vs. Productivity
In most computer science books such as Clean Code we are told to write good Unit Tests in order to increase productivity when updating project or writing new modules (or refactoring). Most of my project are short and take about 2 months or less to develop and often they will ... |
Can someone help me understand the process one would have to go through to set up a website, like a job board, that allows users to deposit money into their account and then use it to buy/sell stuff? Is it possible to use Paypal as Escrow the same way Ebay does?
|
I am creating a set of syntax highlighters for an application. The languages include:
HTML (specifically HTML5)
JavaScript
PHP
CSS (specifically CSS3)
The problem lies in the way the classes need to be organized. Since this is a Qt application, each language has its own class which derives from QSyntaxHighlighter. Ea... |
Is there any way that a Silverlight out-of-browser app can communicate with another app (for example an Objective-C app) installed on a Mac?
Any help or suggestion will be highly appreciated.
|
So far I have been living of standard Android books and mainly blogs for Monodroid, but I'm trying to find a definitive resource about the topic and not having any luck.
Is there a book out there that's the de-facto standard for describing best practices, design methodologies, and other helpful information on Monodroid... |
I'm working with a few other people on projects, and today I ran into a situation I'm sure I'll see often. One of my co-workers and myself had split up some tasks to do on the same project and began working. He finished his tasks, and pushed his changes to our shared repository. I was still working on my changes, but I... |
I was assigned to extend (and eventually maintain) a legacy system (mostly procedural, semi-ball of mud) without MVC. Any tips or suggestions for me going forward? :S
|
How deep should an iOS developer review data structure & algorithm when preparing for iOS job interview position? I know most people would just say there's no harm in reviewing it, but would like to get some insights based on your experience interview what are the percentage of the questions are related to data structu... |
What is the best practice when it comes to writing classes that might have to know about the user interface. Wouldn't a class knowing how to draw itself break some best practices since it depends on what the user interface is (console, GUI, etc)?
In many programming books I've come across the "Shape" example that show... |
We have youtube kind of website where we calculate rating for every video. Based on rating we award cash. Our problem is no same user can rate a video more than once. We thought if we keep track of static IP, we will be able to achieve this but we found there are third party tools that can be used to manipulate the IP ... |
I have seen many times that if you want to look good on resumes you should have some project coded as open source on bit bucket and Git.
I want to do that , even though it may be small but at least i want to starts the steps which can make me a good programmer and it looks good on resume.
I knows these languages like ... |
I was working on neo4j graph database in java. To get the reference node of this db:
GraphDatabaseService graphDb=new EmbeddedGraphDatabase(DB_PATH);
Node Root=graphDb.getReferenceNode()
I always forget to prefix graphDb when calling getReferenceNode(). So what I did :
public Node getRootNode(){
return ... |
I have a difficult client. Every bill is argued and debated over, and each email is parsed with a lawyers eye (because he's a lawyer), looking for a way to avoid paying for something. No amount of generosity on my part is ever reciprocated.
The client currently has 60% of his bills unpaid (these are invoices he signe... |
What is the easiest way to insert copyright notice in lots of PHP files.
It's not possible to do it manually.
|
I have an app which acts like a TCP server and accepts multiple connections. Each connection is made by a distinct device, with a unique ID (the ID is reported by the device in two different messages according to its protocol, but that's less important).
Right now, whenever a connection is established, my app creates a... |
Often I hear PMs (Project Managers) talk about feature and function. And I'm just so puzzled to differentiate them. Sometimes I think of a feature to be equivalent to a user story. Something like "As a user, Bob should be able to see a list of his payments", and they call it a feature. Sometimes it gets as big as a sub... |
I have been designing a database where it is very important to provide users with a good search mechanism. So I was wondering what some of the best practices are for using keywords to search over multiple database tables and return the relevent records?
Some other things I am curious about:
The users location, if they... |
How come open software like OpenOffice.org and supports proprietary formats like Microsoft DOC and MP3? AFAIK, the DOC format is not open and implementing the feature in OO.org required serious amounts of reverse engineering. So why isn't Microsoft (or any such proprietary players) making an issue out of this? In the s... |
I want to know if Objective-C is an interpreted or a compiled language.
|
I'm working on a small webservices project (java, axis2..). There is a lot of existing code, the code is divided into many layers, from the first layer where the request in interpreted to a few layers down to the dao layer. In the dao layer I'm seeing some validation code interspersed in a few places. The project conta... |
There are developers out there that not only write code and solve problems, but aspire to one day be an entrepreneur and run their own company. They may participate in open source projects, go to various networking events/meetups, or even write code to help shape/start their own business outside of work.
And, for examp... |
I've been programming very lightly for a few years, and not making much progress. It's something that definitely interests me, but I just haven't gotten motivated. Then, I think I figured out what's killing me. All the books I've read, all screencasts I've watched, seem to have missed out on one important thing:
How do... |
I'm a tech lead for a small team. One of the major tasks on my plate is communicating with the client. One thing I find particularly difficult is dealing with deadlines because they are mandated by the client and I'm frequently not consulted.
Usually, the interaction follows the following pattern. The client comes up ... |
I'm currently working for small company that has few technically complicated products. I'm the one and only developer for one of them. About a year ago, I got the legacy version of the product and started "supporting" it.
Customer only talks about new feature, business value and others of that kind. The problem is, tho... |
I know Java, C#, C++. I have used Perl, and am picking up Python and Actionscript 3.
This is certainly a path others have trodden, so I am asking how do you keep all these languages straight in your head?
|
In programming what do you call a choice that is not Boolean?
ie. a Boolean condition is a true/false, either-or possibility.
What do you call a condition with one or more possibilities? And, is there any difference if the condition is zero or more versus one or more?
Thanks!
--EDIT--
To add some clarity:
Specifically... |
I have just accepted the second developer into an open source project. I'm not going to say which it is, for obvious reasons (read the rest of this question.)
The project is a C# / .NET projectl
A while ago I contacted JetBrains, authors of ReSharper, dotCover, and TeamCity.
Since I am the leader of the open source pro... |
What I mean is, do people print some kind of line item form? What data does it contain? What are the line items usually? Otherwise, do you just present a written document describing with a paragraph?
Do you show the number of hours or just a lump sum? Perhaps you only show dollars per hour and an estimate of the hours.... |
I have been working on freelance sites for a good 4 or 5 years, bending over backwards to build a decent portfolio and generate great ratings. I take huge pride in my work (web applications).
I'm completely lost because when I think what would happen if I suddenly lost my freelance account it isn't a pretty picture. I ... |
Some mobile applications leverage the fact that smart phones have motion sensitivity to provide a "shake" feature.
For example, I believe Urban Spoon has an app with which you can view a recommendation for a nearby restaurant; if you don't like the recommendation then you can shake your phone and it will immediately co... |
Put this image inside images folder. All JavaScript files should go inside a folder called js. Put templates inside a folder called site-templates and for each template, have three folders called layouts, looks, and pages.
We're all familiar with these file-system structures in which we try to logically and efficientl... |
There was a company developing software product. They had adopted SCRUM as agile method for entire development department incl. programmers, testers and analysts. It had been working grand for them in early months. However later things started to revert, enthusiasm cooled down and slowly people drifted back into their ... |
So, I watched as my colleague complained a bit about a project he has inherited from someone who is, shall we say, not very experienced as a programmer (intern left to his own devices on a project).
At one point there was duplicate code, about 7-8 lines of code duplicated (so 14-16 lines total) in a method of say 70-80... |
I'm starting a new game website. This is a project to help me learn additional technologies. My background is very much Microsoft and Apple technologies / languages / IDEs.
This project I would like to use some Google technologies. The game website will be a simple site; html5 game board; muliplayer; for the sake of... |
I am a newbie in terms of Design Patterns. I just started learning MVC when I am hearing a new buzz, MVVM.
I want to learn the insights of both of these by redesigning an old inventory and invoicing application I developed for a client. I want to write both a Windows based WPF application and a Web based version. I wan... |
I have seen the forum dba.StackExchange, but this question involves Visual Studio as well, therefore I wanted to post this question here.
One of my old application was built on VS-2008 and MySQL back-end. After three years, I don't have any major issues with it and the database performance is also good. I am scaling th... |
Recursion -- as we all know -- is one of those problems -- that wrapping your head around feels like achieving a "milestone" in your programming voyage.
But when it comes to actually using it in real world problems -- knowing the mechanics of recursion is NOT enough -- one must also understand the nature of the proble... |
The scenario is that I've got an expanding set of users, and as time goes by, users will cancel their accounts which we currently mark as 'deleted' (with a flag) in the same table.
If users with the same email address (that's how users log in) wish to create a new account, they can signup again, but a NEW account is cr... |
Which is the best protocol / format for SOA designs using REST. Here are some options but i can't decide...
XML
JSON
YAML
ProtoBuf
... anything else i might have missed
These are my requirements...
should be lightweight and less bandwidth guzzler
should have existing client libs in Python and PHP
should scale VERY W... |
Lets say a team member is on an annual leave. He won't be attending sprint planning but he will be back by mid of iteration/sprint. Lets say he has 50% capacity i.e. as he will be available for later half of the iteration, should we:
have a planning session with him after he is back.
have a planning session with him b... |
I decided to ask this question here instead of on stack overflow because it is rather subjective.
In C#, typically I see generic types with very poor names. Specifically, "T" is commonly used but is not a meaningful name by itself. For example:
class Fruit<T>
{
T fruit;
}
While this is the typical approach, would ... |
When creating a webservice/api that is intended to be used by javascript/flash/mobile clients, what is a good method for making sure that a paying client's credentials are not stolen and reused.
To clarify further, lets say I want to charge $1 for every 10,000 requests against my API. If someone wants to farm my data ... |
I'm running Coldfusion 8 and SQL server 2008.
I've been building serveral forms that insert data into the database from external users, we have a custom built security module built by the guy who I've taken his job.
1) How can we test our HTML forms to ensure that we're protected from SQL injection attacks?
2) How ... |
I understand an "idiom" to be a common operation or pattern that in a particular language is not simplified by core language syntax, such as integer increment:
i = i + 1;
In C++, this idiom is simplified by an operator:
++i;
However, when someone uses the term "idiomatic", I am not sure how to understand it. What mak... |
Recently a friend of mine bought an inventory application from a vendor, who used an statement like "built based on 10000 lines of codes" as a marketing slogan to increase its market share. I've also seen other software claiming to being built with a special language (C#, PHP, Java, etc.), or based on a special technol... |
For about 2 months I've been reading everything I can find for these 3 topics and I'm not yet sure I got it.
Dependency Inversion Principle. Means you should always only rely on interfaces and not on their implementations. If your class depends on any other class, that's bad, because it depends on that second class' d... |
I'm a C++ developer. I know how Windows works on the native level, but I'm not a big expert in C# and .NET. Now I need a C# developer in my team (all my developers are C++). How can I hire a great C# developer if I don't know C# at good level? How to ask questions, how to test whether answers are great or are with sill... |
I am building a web service (PHP+JSON) to sync with my iphone app. The main goals are:
Backup
Provide a web view for printing / sorting, manipulating.
allow a group sync up and down.
I am aware of the logic problems with all of these items, Ie. if one person deletes something, do you persist this change to other user... |
Possible Duplicate:
What is “the Cloud” and how does it relate to development?
First some context: I don't understand what people are asking when they ask "It it on the cloud?" Here is an example. I make a "website" with php that is two pages hosted on a dedicated linux box running apache. One has a form where y... |
I have seen a lot of people (first comment) hating die(); instead of exit;
As the follow-up comments on that post note, die and exit are the same - the attitude appears to be one of perception, with some feeling that one name is more appropriate in certain contexts than others.
But why does it matter? If they do the s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.