ISTQB, Wikipedia or other sources classify verification acitivities (reviews etc.) as a static testing, yet other do not. If we can say that peer reviews and inspections are actually a kind of a testing, then a lot of standards do not make sense (consider e.g. ISO which say that validation is done by testing, while verification by checking of work products) - it should at least say dynamic testing for validation, shouldn't it?
I am completing master thesis dealing with QA and I must admit that I have never seen worse and more ambiguous and contradicting literature than in this field :/
Do you think (and if so, why) that static testing is a good and justifiable term or should we stick to testing and static checks/analysis?
From Scott Guthrie’s blog:
Last month I blogged about our ASP.NET MVC Roadmap. Two weeks ago we shipped the ASP.NET Preview 2 Release. Phil Haack from the ASP.NET team published a good blog post about the release here. Scott Hanselman has created a bunch of great ASP.NET MVC tutorial videos [...]
Here's a pretty simple idea, in this pastebin I've posted some pair of numbers. These represent Nodes of a unidirected connected graph.
The input to stdin will be of the form, (they'll be numbers, i'll be using an example here)
c d
q r
a b
d e
p q
so x y means x is connected to y (not viceversa)
There are 2 paths in that example. a->b->c->d->e and p->q->r.
You need to print all the unique paths from that graph
The output should be of the format
a->b->c->d->e
p->q->r
Notes
You can assume the numbers are chosen such that one path doesn't intersect the other (one node belongs to one path)
The pairs are in random order.
They are more than 1 paths, they can be of different lengths.
All numbers are less than 1000.
If you need more details, please leave a comment. I'll amend as required.
Shameless-Plug
For those who enjoy Codegolf, please Commit at Area51 for its very own site:) (for those who don't enjoy it, please support it as well, so we'll stay out of your way...)
I'm behind a proxy at work, and Google Chrome insists on downloading Google search results pages instead of displaying them.
Whether I try to search from the address bar, from google.com, or from a third-party site that has a Google search form, what ends up happening is that the search results page ends up as a downloaded file called "search" in my downloads directory.
I haven't seen this happen with any other search pages. Yahoo! Search, for example, works fine.
Has anyone run into this before and/or has any ideas on how to fix it or what might be causing it?
I'd try the Chrome support pages, but they're blocked by the proxy...
I'm having problems getting the code-completion for the Ext 3.2 plugin to work, when working with .php files. I've also installed the php plugin for Aptana, and the same thing applies for php - I cannot access php code-completion when working with a html-file, so it seems like a general issue...
It's also not possible to write Ext in .js files, which is weird...
The latter case does make sense of course. But I should be able to write both php and Ext in .php files!
Is this possible in any way?
I have of course tested the code-completion for php in a .php file, which works. The same applies for Ext code in .html documents!
This question already has an answer here:
Hosting multiple distinct folders for distinct domains
1 answer
I bought a VPS Host that gave me only 1 IP Address which I used on my first domain name and it works without any problems.
Now my second domain name I can't use the same ip address as it points to the first domain name.
So I figured my only option was to use a GoDaddy hosted iframe redirection which redirects to a sub folder on my first domain which worked so far.
Now I'm trying to load paypal from <?php headers() ?> and I get a permission error because of that iframe
Refused to display 'https://www.paypal.com/cgi-bin/webscr?notify_url=&cmd=_cart&upload=1&business=removed&address_override=1' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
How do I avoid the Iframe solution for my second domain while not messing up my first domain?
Somebody I forgot once told me it doesn't matter if you have 1 IP Address you could host multiple websites on it? how it that possible the DNS doesn't seem to work off ports afaik, yes I could host multiple websites on different folders but that's not what I call hosting a real website it has to be pointed by a domain name, so this iframe issue doesn't happen
My server configuration is httpd (apache) that comes with CentOS 6 (Linux) operating system
As a personal project, I'm creating a single page, asp.net web application using Nancy to provide RESTful services to the single page. Due to the complexity of the single page, particularly the JavaScripts used, I've think creating a dedicated project for the client side of web development and another for service side will organize and simplify the development.
solution
|
+-- web / client side (single html page, js, css)
| - contains asp.net project, and nancy library
| to host the modules in application project folder
|
+-- application / service (nancy modules, bootstrap for other layer)
|
.
.
. and other layers (three tier, domain driven, etc)
.
Is this a good way of organizing a complex single page application? Am I over-engineering the web app, incurring too much complexity?
Hello
I have a working Kerberos authentication on my Apache. My AuthGroupFile directive points to a file where there is one group called rnd (rnd: [email protected]).
This works just fine, but I don't know how to grant access to all the users in the domain my.domain.com. Do you know how to do this?
I kind of ran into this when messing around with FlashPunk, and I'm going to use it as an example.
Essentially the main sprite class is pretty much class Entity. Entity's constructor has four parameters, each with a default value. One of them is graphic, whose default value is null.
Entity is designed to be inherited from, with many such subclasses providing their own graphic within their own internal workings. Normally these subclasses would not have graphic in their constructor's parameter lists, but would simply pick something internally and go with it.
However I was looking into possibly still adhering to the Liskov Substitution Principal. Which led me to the following example:
package com.blank.graphics
{
import net.flashpunk.*;
import net.flashpunk.graphics.Image;
public class SpaceGraphic extends Entity
{
[Embed(source = "../../../../../../assets/spaces/blank.png")]
private const BLANK_SPACE:Class;
public function SpaceGraphic(x:Number = 0, y:Number = 0, graphic:Graphic = null,
mask:Mask = null)
{
super(x, y, graphic, mask);
if (!graphic)
{
this.graphic = new Image(BLANK_SPACE);
}
}
}
}
Alright, so now there's a parameter list in the constructor that perfectly matches the one in the super class's constructor. But if the default value for graphic is used, it'll exhibit two different behaviors, depending on whether you're using the subclass or the superclass. In the superclass, there won't be a graphic, but in the subclass, it'll choose the default graphic.
Is this a violation of the Liskov Substitution Principal? Does the fact that subclasses are almost intended to use different parameter lists have any bearing on this? Would minimizing the parameter list violate it in a case like this? Thanks.
This article shows how we can develop the platform-independent software with Mono usage...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Trying to view a javascript file on my home server I get the following error:
Forbidden
You don't have permission to access /jquery-1.8.2.js on this server.
Apache/2.2.22 (Fedora) Server at 192.168.1.3 Port 80
I have given all users access to the file like this:
sudo chmod -R 777 /var/www/html/jquery-1.8.2.js
I have even gone as far as changing the user & group properties in the httpd.conf file.
As a developer, can you tell your project manager that an application is unworkable? Or, if you're a project manager, how would you need this presented to you in order to be compelled? This isn't about "how to work on a poor project", it's assuming you cannot.
I can provide an example of the situation if anyone thinks it's important, but I'm trying to avoid proposed solutions to "plodding through".
The original NerdDinner Sample was very simple. Two samples, simple, in fact. Perhaps it's the new Northwind, as it's a good way to start working with ASP.NET MVC. However, it's not a perfect sample or an idealized example on how to do many Read More......(read more)
Good day folks.
I am very confused in this situation. I need to implement system which will be based on HP open view service desk 4.5 api. But this system are reached the end of supporting period. On oficial site no information available
I am looking an information about this API(articles, samples etc). Now i have only web-api.jar and javadoc. Methods in javadoc is bad documented.
If you have any info, please share it with me. Thanks.
Second question: there are methods for api(with huge amount of methods) understanding if it not documented or information is not available?
PS:If it question is not belong here i will delete it.
Hi programmers!
Today come out a little problem.
I have an array of coordinates (latitude and longitude) maded in this way:
[0] = "45.01234,9.12345"
[1] = "46.11111,9.12345"
[2] = "47.22222,9.98765"
[...] etc
In a loop, convert these coordinates in meters (UTM northing / UTM easting) and after that i convert these coords in pixel (X / Y) on screen (the output device is an iphone) to draw a route line on a custom map.
[0] = "512335.00000,502333.666666"
[...] etc
The returning pixel are passed to a method that draw a line on screen (simulating a route calculation).
[0] = "20,30"
[1] = "21,31"
[2] = "25,40"
[...] etc
As coordinate (lat/lon) are too many, i need to truncate lat/lon array eliminating the values that doesn't fill in the map bound (the visible part of map on screen).
Map bounds are 2 couple of coords lat/lon, upper left and lower right.
Now, what is the best way to loop on this array (NOT SORTED) and check if a value is or not in bound and after remove the value that is outside?
To return a clean array that contains only the coords visible on screen?
Note: the coords array is a very big array. 4000/5000 couple of items.
This is a method that should be looped every drag or zoom.
Anyone have an idea to optimize search and controls in this array?
many thanks,
A
NetBeans has a word wrap feature now - but if the font changes width when bold then it gets all jumpy and sometimes hard to work with.
Edit: It turns out that even with Courier New that NetBeans word wrap still jumps up and down lines at a time at random. I guess that this question no longer cares for an answer. However,, it seems that there is no answer. (at least nobody has brought one up yet)
I am currently using Comic Sans MS which gets wider when bold.
I used to analyse performance of programmers in my team by looking at the issues they have closed. Many of the issues are of course bugs. And here another important performance aspect comes - who introduced the bugs. I am wondering, if creating a custom field in the issue tracking system "Blamed" for reporting the person who generated the problem, is a good practice.
One one hand it seems ok to me to promote personal responsibility for quality and this could reduce the additional work we have due to careless programming. On the other hand this is negative, things are sometimes vague and sometimes there is a reason such us "this thing had to be done very quickly due to a client's...".
What to you think?
I'm pretty bad with naming things.
The only name I can every generically come up with is 'helper'. Say, if I have a header file that contains helping functions for manipulating paths, I tend to put it inside my "helper" directory and call it "path-helper.hpp" or something like that.
Obviouslly, that's a bad naming convention. :)
I want to have a consistent naming scheme for my folder (and namespace) which I can use to always refer to my own headers and libraries, but I have trouble finding names that are easy to type or remember (like boost)... so I end up calling some of them "helper" or "stdext" or whatnot, which isn't a great idea.
How do you find names for your libraries that are easy to remember and easy to type, and which aren't too generic (like "helper" or "std" or "stdext" or the like)?
Any suggestions on how to go about doing this?
It's been generally accepted in the OO community that one should "favor composition over inheritance". On the other hand, inheritance does provide both polymorphism and a straightforward, terse way of delegating everything to a base class unless explicitly overridden and is therefore extremely convenient and useful. Delegation can often (though not always) be verbose and brittle.
The most obvious and IMHO surest sign of inheritance abuse is violation of the Liskov Substitution Principle. What are some other signs that inheritance is The Wrong Tool for the Job even if it seems convenient?
Is it right or more beautiful to name the functions with an prefix, like in Qt? Or using "many" namespaces, but 'normal' names for functions?
For example,
slOpenFile(); //"sl" means "some lib"
vs
some_lib::file_functions::openFile();
UPD: I've read somewhere that the first variant(using some prefix) is better, because the API users can perform 'fast' search among the documentation and in the Internet. E.g. by typing the magic prefix search engine starts to advice the exact functions. Is it enough to use the first variant?
I want to fix so my only the last click gets the cookie, here is my script:
<script type="text/javascript">
document.write('<scr' + 'ipt type="text/javascript" src="' + document.location.protocol + '//sc.tradetracker.net/public/tradetracker/tracking/?e=dedupe&t=js"></scr' + 'ipt>');
</script>
<script type="text/javascript">
// The pixels.
var _oPixels = {
tradetracker: '<img id="tt" />',
tradedoubler: '<img id="td" />',
zanox: '<img id="zx" />',
awin: '<img id="aw" />'
};
// Run the dedupe.
_ttDedupe(
'conversion',
'network'
);
</script>
<noscript>
<img id="tt" />
<img id="td" />
<img id="zx" />
<img id="aw" />
</noscript>
How can I get this right? Thanks!
I am validating data, in this case I want one of three ints. I am asking this question, as it is the fundamental principle I'm interested in. This is a basic example, but I am developing best practices now, so when things become more complicated later, I am better equipped to manage them.
Is it preferable to have the try and catch followed by the condition:
public static int getProcType()
{
try
{
procType = getIntInput("Enter procedure type -\n"
+ " 1 for Exploratory,\n"
+ " 2 for Reconstructive, \n"
+ "3 for Follow up: \n");
}
catch (NumberFormatException ex)
{
System.out.println("Error! Enter a valid option!");
getProcType();
}
if (procType == 1 || procType == 2 || procType == 3)
{
hrlyRate = hrlyRate(procType);
procedure = procedure(procType);
}
else
{
System.out.println("Error! Enter a valid option!");
getProcType();
}
return procType;
}
Or is it better to put the if within the try and catch?
public static int getProcType()
{
try
{
procType = getIntInput("Enter procedure type -\n"
+ " 1 for Exploratory,\n"
+ " 2 for Reconstructive, \n"
+ "3 for Follow up: \n");
if (procType == 1 || procType == 2 || procType == 3)
{
hrlyRate = hrlyRate(procType);
procedure = procedure(procType);
}
else
{
System.out.println("Error! Enter a valid option!");
getProcType();
}
}
catch (NumberFormatException ex)
{
System.out.println("Error! Enter a valid option!");
getProcType();
}
return procType;
}
I am thinking the if within the try, may be quicker, but also may be clumsy. Which would be better, as my programming becomes more advanced?