Hello all,
IIS7
Windows Server 2008
Internet Explorer 8
.Net 4
Using IIS 7 on a windows 2008 server, I have a site set up to server a page named "Test.html". When I browse to this page from a client machine in IE8, I can view the page without any issues (security setting is anonymous).
I...
I have a function that was taken from Nicholas Zakas named "Chunk". When it does it take an array, a function to invoke on each item of the array and a callback to run when complete.
//array: the array of items on which to iterate.
//process: a function which takes a single item (from the...
If I was to perform this query, which would you expect to be faster in SQL Server 2008 with a table containing 100_000 records:
First version (with #temp table):
SELECT one
, two
, ...
, n
INTO #results
FROM table AS temp
SELECT convert(...one)
, convert(...two)
, convert(...)
...
Hello all,
I haven't used Sharepoint before and have undertaken the task of setting up a call logging system within the site. This does not have to be complicated. Here are my goals with it:
- Log who has the case.
- Log start date and resolution date.
- Log issue details.
- Log...
Hello all,
Once again I seek the advice of the genius collective from Tek-Tips.
The requirement I have is to test a number of stored procedures and views against tables that contain little to no data. In order to sanity check the results (and make sure my mappings are all correct) it would...
Hello,
I am reading a book on Java at the moment and there is a section that has me very confused and I can't seem to find an answer online (and writing code to try and explain it to myself doesn't work - which may be because I don't understand it).
"If one class is inherited from another...
Here is what I am trying to achieve:
I want a report to run to get generic information from [PARENTTABLE] and then all information from other selected [CHILDTABLE] and [GRANDCHILDTABLE] tables.
I am doing this at the moment with a dataset that contains the child/grandchild information and...
What I currently have is a list of strings like this:
string first = string.Empty;
string second = string.Empty;
//Do something with first
//Do something with second
What I really want to be able to do is loop through a whole set of these strings, carrying out the same operation on each...
Scenario:
Start DateTime = 01/01/2012 09:00
End DateTime = 02/01/2012 13:00
Working hours are 9-5 so this is closest to 1.5 days.
Start DateTime = 01/01/2012 09:00
End DateTime = 01/01/2012 17:00
This shows 1 day.
Start DateTime = 01/01/2012 09:00
End DateTime = 02/01/2012 16:00
This...
I am lead to believe by a book I am reading:
"It's easy to get confused between -> and => as well as when you need a $ and when you don't.
The class construction uses a dash with the greater than sign, and constructions working with associative arrays use the equal sign with the greater than...
can someone please explain the following to me:
//It's important to understand that the inner function has access to the actual
//variables of the outer functions and not copies in order to acoid the
//following problem
//BAD EXAMPLE...
Is there something special I have to do in order to get a statement like this to work:
//assuming that all newDiv's have been created (proven as it worked for one append child at a time...
Could someone please explain the difference between these two:
//module
<code>
var a_module = (function() {
var private_variable = "some value";
function private_function() {
//some code
}
return {
public_property: "something"
//etc
}
}());
</code>
Could I not achieve...
I have 2 fields in a report that allows me to script fields with VB. The fields come from SQL which are calulated like this:
Years:
DATEDIFF(MONTH,EFFECTIVEDATE, ISNULL(ENDDATE,GETDATE())) / 12
Months:
DATEDIFF(MONTH,EFFECTIVEDATE,ISNULL(ENDDATE,GETDATE())) % 12
What I am getting in the...
I have got this example of a recursive function:
<code>
function power(base, exponent) {
if (exponent == 0) {
return 1;
}
else
{
return base * power(base, exponent - 1);
}
}
alert(power(2, 10));
</code>
I would have thought that the result (which equates to 1024) would...
I am using MS SQL server 2008. I want to create a calculated field which would change one value to another:
IMPORT
6.745,00 €
CALC
6,745.00
Is there any way I could perform this kind of calculation on the IMPORT field and be provided with the CALC value as a result?
Thanks in advance!
I am using MSSQL Server 2005.
I have this calculation for a field called "CurrentBirthday".
As an example, I have 2 employees
Name:John, DOB:15-09-1988
Name:Bill, DOB:15-09-1989
CurrentBirthday for John shows 15-09-2011
CurrentBirthday for Bill shows 15-09-2012
I can see that this is...
I am using Excel 2007.
I have a list of cells which may contain an IP address or a web address - What I need to do is reference that column and within a new column, pull back only either of (or both of) those values.
For example
These two cells:
A1:
lorem ipsum lorem ipsum 127.0.0.1 lorem...
I have various fields that are coming back in a report I am running and have the option of running vbscript against them.
What I want to do is if there is anything contained within brackets, I want it to remove it for me.
Could someone please help me with this.
Example
"Telephone number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.