Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: slobad23
  • Content: Threads
  • Order by date
  1. slobad23

    Windows authentication when using a DNS name rather than IP.

    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...
  2. slobad23

    Returning "this" when the function performs a setTimeout.

    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...
  3. slobad23

    SQL Query Optimization.

    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(...) ...
  4. slobad23

    New to this, with specific goals to achieve

    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...
  5. slobad23

    Provide column names as values to all null fields

    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...
  6. slobad23

    Subclass overriding Superclass constructors

    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...
  7. slobad23

    Dynamic Stored Procedures with Parent/Child/Grandchild tables

    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...
  8. slobad23

    Collection to loop through by a named reference

    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...
  9. slobad23

    Date difference to nearest half day counting only working hours. Yikes!

    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...
  10. slobad23

    Using the value of a property as the name for a method

    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...
  11. slobad23

    closures

    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...
  12. slobad23

    Chaining appendChild

    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...
  13. slobad23

    Difference between a module and an object

    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...
  14. slobad23

    Checking years and months

    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...
  15. slobad23

    return 1

    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...
  16. slobad23

    Geolocation API - getCurrentPosition

    The current script works: <code> window.onload = init; function init() { var onSuccess = function(position) { alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude + '\n' + 'Altitude: '...
  17. slobad23

    Remove characters and format the remaining string

    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!
  18. slobad23

    Look at DateOfBirth and see their CurrentBirthday

    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...
  19. slobad23

    Pull back a particular sub string from within a text cell

    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...
  20. slobad23

    Remove all strings within brackets (and the brackets themselves)

    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...

Part and Inventory Search

Back
Top