instruction stringlengths 34 36.1k |
|---|
Small shop, few production servers, no test or development servers, all Win2k3 WEB based.
There is a need to keep versioned files on one of the machines. Is TortoiseSVN safe against exploitability, does it need extra hardening? Any known license problems, incompatibilities?
|
Problem
I have X, a positive integer, of some resource, R.
There are N potential targets.
I want to distribute all of R to the N targets in some "interesting" way.
"Interesting" means:
Some targets may not get any R.
It should rarely be near even (with a majority of target getting near X/N of the resource).
There shou... |
In Joel's blog on evidence based scheduling he suggests making estimates based on the smallest unit of work and logging extra work back to the original task.
The problem I'm now experiencing is that I'll have create object A with subtask method A which creates object B and test all of the above.
I create tasks for each... |
It seems to me that, for everyday use, more primitive data structures like arrays get the job done just as well as a binary tree would. My question is how common is to use these structures when writing code for projects at work or projects that you pursue in your free time?
I understand the better insertion time/delet... |
I'm trying to do the following: take a single IA32 instruction in the Intel syntax (such as ADD EAX, EBX) and produce the corresponding machine code for this instruction. Is there some small library, preferably open source, that can do this for me?
|
My application is building a hierarchical structure like this:
root = {
'id': 'root',
'children': [ {
'name': 'root_foo',
'children': []
}, {
'id': 'root_foo2',
'children': [ {
'id': 'root_foo2_bar',
'children': []
} ]
} ]
}
in other words, it's a tree of nodes, where each no... |
I just found the following code in our code base:
public String identifyArchitectureName(String platformName, String input) ...
In my opinion input is one of the most meaningless names for a variable that can be. Is it just me? I can just quietly change it, but should I address the fellow programmer that has done it?
|
Possible Duplicate:
Is Model-View-Presenter (MVP) scheme useful for Android?
I've started coding for Android and I'm having difficulty trying to properly partition my code. I always end up with a very tight coupling between my UI logic and the actual controls I use to represent them.
I have background in both WPF MV... |
I am reading PHP Objects, Patterns, and Practice. The author is trying to model a lesson in a college. The goal is to output the lesson type (lecture or seminar), and the charges for the lesson depending on whether it is an hourly or fixed price lesson. So the output should be
Lesson charge 20. Charge type: hourly rate... |
My question may seems very scientific but I think it's a common problem and seasoned developers and programmers hopefully will have some advice to avoid the problem I mention in title. Btw., what I describe bellow is a real problem I am trying to proactively solve in my iOS project, I want to avoid it at all cost.
By ... |
I've been doing some work in Parsec recently, and for my toy language I wanted multi-based fractional numbers to be expressible. After digging around in Parsec's source a bit, I found their implementation of a floating-point number parser, and copied it to make the needed modifications.
So I understand what this cod... |
I have developed a few quantitative libraries in C# where it is important to understand not only the classic information that goes with the XMLDoc comments (which contains basic information with the method signature) but also the mathematical formulas being use within the methods.
Hence I would like to be able to inclu... |
I've recently started work with an organisation that is rapidly expanding and is recruiting or growing several development teams (including two web-based products and a data warehouse/BI team). They are basically working to agile methodologies but haven't formalised a standard way of working yet.
Despite the fact that ... |
I have a very difficult time focusing on what I'm doing (programming-wise) when something (compilation, startup time, etc.) takes more than just a few seconds. Anecdotally it seems that threshold is about 10 seconds (and I recall reading about study that said the same thing, though I can't find it now). So what typic... |
In the C++ project I am working on, we have an application consisting of
several processes deployed on different machines. This network of
processes is dynamic since processes (clients or background services)
can be started and terminated during the application's lifetime.
We have already a module that allows to transp... |
I am a newbie to OOP, and I learn best by example.
You could say this question is similar to Which Scala open source projects should I study to learn best coding practices - but in PHP.
I have heard-tell that Symfony has the best 'architecture' (I will not pretend I know what that exactly means), as well as Doctrine OR... |
I've seen this in a lot of IDEs (even in the most popular and heavily used ones, like Visual Studio): if you want to watch a variable's value, you have to manually type its name in the Watches section of the debugger. Why can't there just be a list of all of them with checkboxes next to them ?
The developer can then j... |
I have my first real job as programmer, but I can't solve any problems because of the coding style used. The code here:
Does not have comments
Does not have functions (50, 100, 200, 300 or more lines executed in sequence)
Uses a lot of if statements with a lot of paths
Has variables that make no sense (eg.: cf_cfop, C... |
I am developing a web app and I have currently written the entire website in html/js/css and on the backend I have servlets that host some RESTFUL services. All the presentation logic is done through getting json objects and modifying the view through javascript.
The application is essentially a search engine, but it w... |
I've been talking to some people at work who believe some versions of a database store their data in discrete tables. That is to say you might open up a folder and see one file for each table in the database then several other supporting files. They do not have a lot of experience with databases but I have only been wo... |
I work at a large healthcare organization as a mid-level software developer. I have over 10 years experience in the IT industry using Microsoft technologies (ASP.NET & SQL Server).
When I go to conferences, code camps, .net user group meetings, I hear of all kinds of new tools and technologies: MVC, LINQ, Entity Framew... |
I've noticed when dealing with Expressions or Expression Trees I'm using reflection a lot to set and get values in properties and what have you. It has occurred to me that the use of reflection seems to be getting more and more common. Things like DataAnotations for validation, Attribute heavy ORMs, etc. Have me wonder... |
I am not seeking or in need of legal advice, but an interesting though experiment came to my mind.
Imagine the following situtation (I cannot really think about a concrete example and I am unsure if a real manifestation even exists): there is a free (libre) api A licensed under some permissive license or even LGPL. Non... |
I have heard such thing as Script Binding - binding Javascript or lua with API's from C++ or Objective-C.
I want to know more about it- however Google has strangely proven unuseful for this.
How is it done? - it OK if I get pointed to other sources, but, just how?
I never knew a Scripts jitter could interact with co... |
For instance if I had a program with a bunch of methods.
public class Dog{
public boolean ishappy{..}
public int weight{...}
public static void main{
Dog Max = new Dog
Max.ishappy}}
Is it best to use the main portion of the code to test, or write a completel... |
I'm presenting on Concurrency in ColdFusion at CFObjective this year, and I'd like to hear how you're using CFThread in your ColdFusion applications.
In addition, what problems have you had while using it, and how (if at all) have you solved them?
What do you dislike about CFThread?
Have you run into significant weakne... |
The term "Lisp" (or "Lisp-like") is an umbrella for lots of different languages, such as Common Lisp, Scheme, and Arc. There is similar fragmentation in other language communities, like in ML.
However, Ruby and Python have both managed to avoid this fate, where innovation occurred more on the implementation (like PyPy ... |
There has been much debate over whether or not merely linking to a piece of code makes it a derivative work. I know FSF says "yes", so according to them I can't dynamically link a non-GPL compatible program to a GPL library and distribute the whole. But I could do that for private use, as long as no code is released to... |
So a situation I run into reasonably often is one where my models start to either:
Grow into monsters with tons and tons of methods
OR
Allow you to pass pieces of SQL to them, so that they are flexible enough to not require a million different methods
For example, say we have a "widget" model. We start with some ba... |
I intend to sell a software solution. I have already registered a domain but I don't have a registered company. Can I use my website/domain name (eg:myproduct.com) for the licensor field in the EULA rather than using my name?
I will renew my domain yearly if there is a problem with this. Do you know any software compan... |
After reading http://clojure.org/rationale and other performance comparisons between Clojure and many languages, I started to think that, apart from ease of use, I shouldn't be coding in Python anymore, but in Clojure instead. Actually, I began to feel irresponsible for not learning Clojure, seeing it's benefits.
Does ... |
I was wondering if there were any resources that explain concepts/theory behind GUI development. I don't mean a resource that explains how to use a GUI library, but rather how to create your own widgets. For example a resource that explains different methods on how to implement scrollable listboxes.
I ask because I hav... |
My nice employer allowed me to visit a software conference in June (International PHP Conference, for those who care).
Wanting to make the most of it, I would ask the more experienced conference goers in here to give me some tips on what I could do to maximize my learning experience on the conference, and to reduce be... |
I am in need of some advice/references. I am currently trying to develop a legal document interface. There are certain fields in which I need to query out of my sql db and have those fields output into a document that can be printed. I am trying to develop a user interface where people can enter fields that will output... |
I've been reading some literature on security, specifically password security/encryption, and there's been one thing that I've been wondering: is the 3-strike rule a perfect solution to password security? That is, if the number of password attempts is limited to some small number, after which all authentication request... |
My work is mostly in embedded systems programming in C, and the proper class structure to pull this off eludes me. Currently we communicate via C# and Visual Basic with a large collection of servos, pumps, and sensors via a USB-to-CAN hid device.
Right now, it is quite cumbersome to communicate with the devices.
To rea... |
So, there's this idea, which you already know: Define the layout of your UI by creating a tree of panels. The leaf nodes on the tree are what we used to call 'controls' way back in the day-- the things that the user interacts with, radio buttons and listboxes and such. The internal nodes are mostly concerned with layou... |
Simple example:
(def ticks 0)
(defn run-iteration []
(def ticks (inc ticks)))
Though the usual case involves things that don't change more than once every several hundred ms.
How to do this idiomatically?
Edit: and why is the idiomatic way idiomatic, and why is it good?
|
I want to do some hobby game development, but I have some unfortunate handicaps that have me stuck in indecision; I have no artistic talent, and I also have no experience with 3D graphics. But this is just a hobby project that might not go anywhere, so I want to develop the stuff I care about; if the game shows good p... |
Imagine if for a realtime strategy game, for reaserch and some fun a tool has been made which monitors the minimap of the game and warns the user if the enemy movement is being detected.
Does selling and/or distributing such stuff have legal issues, against the game creators ToS or such (Considering its usage in multi... |
also: defs, java fields, agents
The clojure website has documentation for these concepts:
Vars
Atoms
Refs
Agents
I understand the words, but I don't conceptually get the purpose / meaning of these. When should I / how can I know when to use them?
|
I know CGI spawns a new process for every HTTP request that it serves, while servlets use one Java process to serve many requests. What do other technologies (rails, WSGI/django, mod_php, asp.net etc.) do so that web servers do not have to spawn a new process new HTTP request?
|
Does C++ have an "official" language specification document, similar to the Sun/Oracle:
http://docs.oracle.com/javase/specs/#6.6.1
|
I am new in C# programming and in OOP. I need to dive into web applications for my company, and I need to do it fast and correct.
So even that I know ASP.NET MVC is the way to go, I want to start with some simple applications with ASP.NET Webforms and then advance to MVC logic.
Also regarding my db classes: I plan to c... |
I have lots of code like this in my constructors:-
function __construct($params) {
$this->property = isset($params['property']) ? $params['property'] : default_val;
}
Is it better to do this rather than specify the default value in the property definition? i.e. public $property = default_val? Sometimes there is ... |
Possible Duplicate:
Best books on the theory and practice of software architecture?
In life it doesnt matter if you do one thing for 15 years. You will end up waking one day and asking stuff that are equal to "how do i walk?" :)
My specific question is that as a new entrant to C# and OOP i am stepping into many lit... |
I have another one of those "is it done in XML" questions (my last one about xml comments hasn't been answered if anyone has a good explanation)
I was just wondering if anyone, anywhere would:
Use multiple root elements in an XML document
Put text content outside of a root element
W3C discourages these practices, Jav... |
I always wanted to use randomly generated strings for my resources' IDs, so I could have shorter URLs like this: /user/4jz0k1
But I never did, because I was worried about the random string generation creating actual words, eg: /user/f*cker. This brings two problems: it might be confusing or even offensive for users, an... |
I'm starting symfony and interested in learning where symfony is coming from. In terms of it's architectural challenges.
What are the architectural or philosophical differences between symfony 2 and 1?
What changes make it so different from the other point version?
|
Here is my situation: a company has x number of employees and x number of machines.
When someone is sick, the program have to give the best possible solution of people on the machines. But the employees can't work on every machine. I need a code for making little groups of possible solutions.
this is a static example... |
I'm writing a data gathering and reporting application that takes XML files as input, which will then be read, processed, and stored in a strongly-typed database. For example, an XML file for a "Job" might look like this:
<Data type="Job">
<ID>12345</ID>
<JobName>MyJob</JobName>
<StartDate>04/07/2012 10:45:... |
I have services on 10 machines that stores data in database on these machines.
And I have main server that needs to pull that data from these ten machines.
What is better for this. Implement some rpc or use replication?
|
Let me give you an example of how I name my classes alphabetically:
Car
CarHonda (subclass of Car)
CarHondaAccord (subclass of CarHonda)
There are two reasons why I put the type of the class earlier in its name:
When browsing your files alphabetically in a file explorer, related items appear grouped together and par... |
I'm beginning Javascript development and as a beginner in JavaScript I make a lot of mistakes. The way I'm developing is very counter-productive because every mistake I fix I have to shutdown Glassfish, re-build the app and re-deploy it. My app is a Java back-end with REST services and the Html, JavaScript, CSS for the... |
I've never attempted anything like this before but what I want to do is code a browser for Windows.
I know that I can use the web-browser control that Microsoft has released, but I'm interested in seeing how the problem is solved from a lower level. So I want to know what layout engine I should be looking at? Or is a ... |
Most of simple "group chat" systems are based on local file storage logs (e.g. log.txt ).
I'm developing a simple group chat (under 20 users simultaneity ) with jQuery/AJAX.
So basically, client-side code loads log from server every second. It needs to be fast.
In database system (PHP/MySQL) that would mean MySQL query... |
I have a free software web application that using other free software scripts for appearance. I have trouble to decide whether should I copy source code of used scripts to my project main repository or list them as dependencies and ask user (who installs application to his server) to install them himself?
Since some of... |
I am joining a software company very soon as a fresher. But I am afraid that no one knows me and also every one there will be professional.
So I want to know, what precautions should be taken in communication, behavior and other things?
|
I have a shape that will be defined by:
char s_type;
char color;
double height;
double width;
These variables are scanned in from a request string sent to my server and passed into my printing function, which then prints out the shape. Currently they are just local variables sitting in my main(); however, I was wonder... |
I've been reading a bit about OOP in relation to Composition, Components and Composites. I believe I understand the fundamental principle (not sure).
Can someone please provide a code example of a person or car (both have many properties) using Composition, Components and Composites? I think seeing it in code would cl... |
What does 'automating a use case 'means and how does the tools that automate helps with that?
whats makes automation good to do and does it holds any significance for web developement.
|
I keep reading this sentence:
Linux is a Unix-like system, but it is not Unix.
I don't know what's the real difference between the two. I know Linux got a lot of ideas from Unix and the licenses of the two are different. Apart from that, as I am not an expert in either one of them, I want to know whether there are ba... |
Language like Haskell have concept of purity. In pure function, I can't mutate any state globally. Anyway Haskell fully abstracts memory management, so memory allocation is not a problem here.
But if languages can handle memory directly like C++, it's very ambiguous to me. In these languages, memory allocation makes vi... |
I am Localizing my php application. I have a dilemma on choosing best method to accomplish the same.
Method 1: Currently am storing words to be localized in an array in a php file
<?php
$values = array (
'welcome' => 'bienvenida'
);
?>
I am using a function to extract and ret... |
Usually I achieve low coupling by creating classes that exchange lists, sets, and maps between them. Now I am developing a Java batch application and I can't put all the data inside a data structure because there isn't enough memory. I have to read and process one chunk of data and then going to the next one. So havin... |
I would like to ask on method parameters design consideration. I am usually deciding between using individual variables as parameters versus grouping them to a class or dictionary as one parameter.
Is there such a rule when you should use individual parameter against using a class or a dictionary to group the parameter... |
I was thinking about ways to improving my commit practices.
Is there any co-relation between no. of source code lines and no. of commits?
In a recent project that I was involved in, I was going at 30 commits per 1000 lines.
One typical file from the project has these stats
language: JavaScript
total commits that includ... |
I am planning to create a web solution for the desktop, I would be dividing my task into three steps
Design
Coding
Automated use case
I am wondering if in the future I have to port my web solution as mobile phone native application. How would I do that? Will I go back again to the design phase to redesign or will I j... |
I have the need to phase out an obsolete method. I am aware of the [Obsolete] attribute. Does Microsoft have a recommended best practice guide for doing this?
Here's my current plan:
A. I do not want to create a new assembly because developers would have to add a new reference to their projects and I expect to get... |
I understand the idea of a callback, where I pass a function into another function and that function then uses the supplied function at will.
I am struggling to understand deferred callbacks, even after googling it.
Could someone provide a simple explanation please? I program in Ruby, but also know C/C++ a bit, but mos... |
Possible Duplicate:
Extracting user requirements from a person who does not know how to express himself
As a hobby freelancer I'm new to this. I've never had a non-technical client before explain to me what his future website is supposed to do.
A person wants me to make a website for him and he basically explained t... |
I've got an SVN repository of a PHP site and the last programmer didn't use source control properly. As a result, only code since I started working here is in the Repo.
I have a bunch of old copies of the full code base saved in files as "backups" but they're not in source control. I don't know why most of the copies ... |
I am trying to set-up a simple SVN workflow at home. I am new to subversion (and programming) so I have been reading the official PDF documentations but still not sure about how to set-up my repository.
I am working mainly with python, bash and rsl (Renderman Shading Language)
So I already have a /dev structure on my d... |
I've been wanting to find a solid answer to the question of whether or not to have runtime checks to validate input for the purposes of ensuring a client has stuck to their end of the agreement in design by contract. For example, consider a simple class constructor:
class Foo
{
public:
Foo( BarHandle bar )
{
Fo... |
C is a language written between '69 and '73 according to WIkipedia. I imagine it made programming a whole lot easier and opened the gate for other programming languages.
My question, however, is what programming language dominated the market before C appeared? I'm tempted to say fortran and/or BASIC but I wasn't even a... |
I've noticed more and more mentions (both in posts here and in actual job descriptions) of programmers' "portfolios" - typically their public profiles on sites such as this, GitHub, etc.
How important is this, and would companies (startups in particular) reject (or immediately discard without even interviewing) otherwi... |
In my new web app I'm going to allow social login through Twitter (maybe), Facebook and Google and I'm in search of the best way to do it.
Actually I'm using Rails with Devise + Omniauth and this is the problem:
Should I ask the user to choose a password so that he can login without a social network?
Or maybe the user... |
Can my MIT/BSD licensed, open source project, or a closed source project I build and sell, execute a command, where the command is a program released under the GPL?
I would not be distributing any version of the GPL'd program, either source code or binary. I would be telling the customer/end user that they need to have... |
I'm a young upstart programmer and I've never actually seen a database. But computers in large part come in boxes, not in cylinders so I was wondering why they are always represented as a cylinder when people show their architecture drawings.
Is there a reason why or is it just tradition to draw them like that?
|
If this is not the right place to ask this question please inform where it would belong, to change it...
I have a doubt for the correct word or concept in english language [not my native], about the relationship of
language to framework
for example i work with
objective C, with the cocoa touch frame work || python... |
CoffeeScript is a language that transpiles to JavaScript, with a clean syntax, inspired by Ruby. Is there a similar language that transpiles to C, allowing for more readable code without compromising on performance? If nothing like that exists, is there a good reason for not creating it?
|
On HTML5 Boilerplate they use this code for jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-...
What's more readable:
if (!window.jQuery) document.write(...);
or
window.jQuery || document.write(...);
|
Is catching an error with try ... catch a better practice than catching an error with proper analysis/error check? For instance, removing from an empty list: Does surround with a try catch clause considered as a more efficient way than testing if the list is empty beforehand?Or is it the same? Thanks.
P.S: If a similar... |
I've got a site with ~500 registered members, 300 of which are what you'd call "active". Site data is kept in a MySQL dbase.
I'd like to add a myBB forum to the site, but this question applies to any forum really.
What I very much want to avoid is requiring my users to register both on the site and on the forum because... |
Why do we need private variables in classes?
Every book on programming I've read says this is a private variable, this is how you define it but stops there.
The wording of these explanations always seemed to me like we really have a crisis of trust in our profession. The explanations always sounded like other programm... |
In Document based NoSQL to create tables (AFAIK) I need:
Create such many as many rows in table documents with same ID field (that will be table id) and each time need to set the columns (for each document).
Then you first search documents by id (table) and next search what you need in the selection.
Please correct if ... |
I work for a software development company where the development work has been off shored to us. The on shore team handle the support and talk directly to the clients. We never talk to the clients directly we just talk people from the on shore team, who talk directly to the clients.
When requirements come, the on shore ... |
Private variables are a way to hide complexity and implementation details to the user of a class. This is a rather nice feature. But I do not understand why in c++ we need to put them in the header of a class. I see two annoying downsides to this:
It clutters the header from the user
It force recompilation of all clie... |
I am considering to sponsor a development of some particular features in some Open Source tools. I would like the results of the work to be available publicly, and if possible, to be included in the main product line. The features are usually something which is of general use, but not very critical, and no one has curr... |
I will be adding a feature to the software and have to update or modify some of public API of the present open source software.
What are steps which could be taken to ensure the compatibility of the software.
what are the testing methods which are used in open source world to test the newly added features??
Open Sourc... |
This is really two questions. Im doing a project for the university for storing baseball players statitics, but from baseball data I have to calculate the score by year for the player who is beign displayed. The background is, lets say 10, 000 users hit the player "Alex Rodriguez", the application have to calculate 10,... |
A quick introduction
My college semesters include a 8 week project working for an actual company with a software need in order to get some much needed practical experience. I have just started such a project with 5 other students. We're required to spend roughly 40 hours a week per student on this project. We're workin... |
There are many ways to expose a Java web application to the consumer: application container (JBoss etc), servlet container (Tomcat etc), OSGi (Knopflerfish etc), self-executable WAR (Winstone etc) and so on. Are there any clear considerations where one approach should be favoured over another?
As an example, could a c... |
I have mostly worked on simple java programs and compiled and run them with Eclipse on Windows. So, I have no experience of using command prompt for compiling Java projects and do not have much info about what actually happens beneath the play button in Eclipse.
Now I have to submit a Java application which will have b... |
I have seen many organizations looking for developers who have good command over Facebook, Google and other API's. Now I am a bit confused about it. I have developed Facebook fanpages, embedded facebook buttons to websites and used google maps API too but the thing is that these API's are very large to completely maste... |
The downsides of Mainframes is well trodden ground; expensive, legacy, dwindling community, etc.
I'm not particularly interested in the downsides, but I am curious if there are any benefits to mainframe hardware/software over the current Intel/AMD & Linux/Windows environment.
I've been told that MFs are particularly g... |
Recently I've noticed myself implementing pattern similar to the one described below. Starting with interface:
public interface IUserProvider
{
User GetUser(UserData data);
}
GetUser method's pure job is to somehow return user (that would be an operation speaking in composite terms). There might be many implementa... |
I recently found out about strong typing in VB.Net (naturally it was on here, thanks!) and am deciding I should take another step toward being a better programmer. I went from vba macros -> VB.Net, because I needed a program that I could automate and I never read anything about strong typing, so I kind of fell into the... |
I'm wondering if there is a good extant pattern (language here is Python/Django but also interested on the more abstract level) for creating a business logic layer that can be created without coding.
For example, suppose that a house rental should only be available during a specific time. A coder might create the follo... |
I have been working on a website containing 3d maps, virtual 3d tours, etc. All of the content is large like images and video.
The problem is the site performs well under normal speed connections but it take more time to load if network is busy or the internet connection is slow. How can I describe this to the custome... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.