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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Borvik

  1. Borvik

    Setting up a build environment

    Ok, just so anyone else who stumbles across this knows - I got my build working. Regarding the 3rd party dlls - I included them in the source control, and made the build process reference them - and it worked, the build completed, then it was on to the setup project. Because the Hosted build...
  2. Borvik

    Setting up a build environment

    Yeah, I know that's a difficulty. I am already using the Community edition - I just really want an option where I can fire off a build and it will build both 32 and 64 bit builds without having to manually specify a build type, build one version, change the build type and build the other. I...
  3. Borvik

    Setting up a build environment

    I'm not really sure where to post this - there doesn't really seem to be a forum for it, so as my project is C#, this is where I'll ask. I've never really had cause to setup a build environment before (being a solo developer releasing through click-once to coworkers only). I want to get more...
  4. Borvik

    How to print out an array

    As related as you think it might be, it should be a separate question (remember that for the future). Nothing is returning, because your "return $value" statement is within the switch block function switch_to_get_values($valuetype) { echo $valuetype; switch ($valuetype)...
  5. Borvik

    How to print out an array

    Let's look at this line by line: $file_contents = file($filename); // Grabs the contents of $filename and puts it into an array with each line of the file a different index $titles = $file_contents[0]; // Grabs the first line of the file as a string $title_array = explode(";", $titles); //...
  6. Borvik

    How to print out an array

    There are several ways to "print" out an array. As Vacunita pointed out you can echo or print echo $types['user']; print $types['user']; print($types['user']); You can also combine that with variables $key = 'user'; echo $types[$key]; print $types[$key]; print($types[$key]); You can...
  7. Borvik

    Reliable screen size detection

    There are plenty of websites that work across devices and are still readable. The need to pan, or scroll horizontally, isn't really ingrained into the habits of the user especially on devices other than the desktop. Sure touch panels allow you to swipe to scroll left/right (avoiding use of...
  8. Borvik

    Reliable screen size detection

    The typical means of targeting a size of device is the following: @media screen and (min-width: 300px){ } You could be using max-width, or even a combination of factors. Usually you would also build out from a default (usually starting with mobile, but could technically start on desktop...
  9. Borvik

    Security Checklist for PHP application

    NP. I can't say for certain your login issues are related to the split() - but if you were able to confirm that, glad I was able to help.
  10. Borvik

    Security Checklist for PHP application

    (9) Rather that mysqli, I would recommend PDO. Parameterized queries handle any escaping you might need, and are awesome. Another plus is if you decide to change databases, PDO can usually adapt (assuming the appropriate DB drivers/modules are install on the server). (10, 11) I would not use...
  11. Borvik

    Determine Percent Difference between two CASE Statements

    take a look at fredericofonseca's third example, sure Frederico (and I for that matter) used a subtraction but you can use whatever formula you want
  12. Borvik

    Cisco BE6K - new domain controllers

    We have a Cisco BE6K, and are in the process of replacing our domain controllers. I know the phone system is integrated with AD, and points to the domain controller - where are all the references I need to change?
  13. Borvik

    Determine Percent Difference between two CASE Statements

    Yes you can use aliases in a subquery. Essentially you are given those calculated fields column names when you give them an alias, and the outer query can then use those aliases to filter and do more calculations on.
  14. Borvik

    Determine Percent Difference between two CASE Statements

    Yeah, like johnherman said - subquery, if you are writing the full sql statement. Something like this: select [2016 Sales] , [YTD 2015 Sales] , [2016 Sales] - [YTD 2015 Sales] --or whatever your formula from (select case...end as [2016 Sales], case...end as [YTD 2015 Sales]...
  15. Borvik

    DHCP Server - Running, but not issuing

    Interesting thought to reboot the system with the service stopped (and presumably disabled so it could be manually started and reenabled). The professionals both did look at the logs, but I'm not certain what they saw. It's moot now though, the service is running on another system - and I've...

Part and Inventory Search

Back
Top