Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Search Engine

Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.



Filter by Category

























































This search, performed through 3.59 MB (635 documents, 14093 words), completed in 0.0 seconds and yielded 30 results.

Angular Walkthrough — 6.2%

Overview This article walks through the steps to create a simple Angular-based web app. Walk-Through Initial Setup 1. Within Visual Studio, create a new app, selecting Web > ASP.NET MVC 4 Web Application. Specify the "Empty" template and the Razor view engine. 2. Add Angular via NuGet: Project > References > Right-Click > Manage NuGet packages > Online > Search for "angular" > Install "Angular JS" 3. Under the website root folder, create a /Scripts/MyAngularApp folder. 4. Within the /Scripts/MyAngularApp folder, create app.js [...]

Modal Dialogs - JavaScript — 4.8%

[...] (including these // comments) is used without any alteration function pageWidth() { return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth: document.body != null ? document.body.clientWidth:null;} function pageHeight() { return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight [...]

Angular Notes — 4.4%

[...] type="text/javascript" src="/Scripts/OtherScripts.js"></script> 2. Add JavaScript code to define your Angular app var MyApp = angular.module('MyAppName', ['ngResource']); 3. Add the data-ng-app attribute to "register" your app within the HTML code <html data-ng-app='MyAppName'> Angular Variables $compile — service $element $first — used with loops? $filter — provides access to filter defined in your Angular app $http [...]

Extend Functionality in SQL Server 2005 Management Studio with Add-ins — 3.5%

[...] explorer, use the assembly called objectexplorer . In order to display a stored procedure in a new Query Window, reference the following assemblies. Microsoft.sqlserver.sqltools.VSIntegration sqlWorkbench.Interfaces The assembly references will totally depend on your application. Implementing IDTExtensibility2 As mentioned earlier, the add-in creates a class that implements IDTExtensibility2 . Implement the following methods. OnConnection - Receives notification that the Add-in is being loaded. The parameters are: Application - The Root object of the host application [...]

Killing Stray Excel References - Excel Automation — 3.1%

[...] the Application.Quit line with the code below. This will kill any Excel process that doesn't have a window title. Thus, it will leave any legitimate user instances open. Dim excelProcesses() As Process = Process.GetProcessesByName("Excel") For Each p As Process In excelProcesses If p.MainWindowTitle.Length = 0 Then p.Kill() End If Next Code for a more precise way to kill the Excel instance follows. This code will kill ONLY the instance of Excel you created, but it will momentarily show the Excel window, so it's not the most [...]

Copying Websites Between Servers - IIS — 3.1%

[...] This article was adapted from http://www.microsoftpro.nl/2011/01/27/exporting-and-importing-sites-and-app-pools-from-iis-7-and-7-5/ Procedure Before running the appcmd command, change directory to the %windir%\system32\inetsrv folder. Copying App Pools 1. Export App Pools from the Source Server appcmd list apppool /config /xml > c:\AppPools.xml This will create the specified XML file. 2. Edit the AppPools.xml File Remove any app pools from the XML file that you don't need to copy [...]

Hiding Excel Sheets from a Script Task - SQL Server Integration Services — 2.6%

[...] Be sure to set Option Strict Off in the module where you use this code. Public Sub Main() Dim app As Object Try app = CreateComObjectFromProgId("Excel.Application") If app IsNot Nothing Then Dim wbk As Object = app.Workbooks.Open("C:\Data\ExcelTest.xls") If wbk IsNot Nothing Then Dim sheet As Object = wbk.Sheets("Sheet3") If sheet IsNot [...]

Index — 2.6%

[...] Server Git Quick Reference JSON Data in T-SQL - SQL Server LINQ Examples Quick Reference - JavaScript Quick Reference - jQuery Regular Expressions Quick Reference Schema Change Scripts - SQL Server Table Row Counts - SQL Server XSL Quick Reference (uncategorized) AuditableBase Class for Automaticatlly Tracking Data Changes - Entity Framework Code First Binding the Private Key to an SSL Certificate Changing a User's Password - SQL Server CIDR IP Address Range - SQL Server Configuration Settings in ASP.NET Core Configuring [...]

Home Page — 2.6%

[...] Reference Schema Change Scripts - SQL Server Table Row Counts - SQL Server XSL Quick Reference (uncategorized) AuditableBase Class for Automaticatlly Tracking Data Changes - Entity Framework Code First Binding the Private Key to an SSL Certificate Changing a User's Password - SQL Server CIDR IP Address Range - SQL Server Configuration Settings in ASP.NET Core Configuring Authentication and Users - Mongo DB DateRange Class - C# DB Tools Desktop Text App Determining Geolocation (Latitude and Longitude Coordinates) from Google Maps Displaying UTC [...]

Macro to Clear the Immediate Window - Visual Studio 2005 — 2.6%

In Visual Studio 2005, it can be useful to clear the Immediate Window at the start of a program execution. This can be accomplished by first implementing the following code into the code for your Visual Studio macros. Then, by setting a breakpoint on the first line of the program and specifying When Hit for the breakpoint to Run a macro > Macros.MyMacros.ImmediateWindow.ClearAndActivate , the Immediate Window will be cleared every time you start the program. Imports System Imports EnvDTE Imports EnvDTE80 Imports System.Diagnostics Public [...]

Freeing Disk Space — 2.2%

[...] select Properties from the context menu. 3. On the General tab, click the Disk Cleanup button. CCleaner [...]

Taking Down a Website for Maintenance - ASP.NET — 2.2%

Two things are required to take down an ASP.NET website for maintenance. A file named app_offline.htm must be in the root of the web application. Note that the file extension is .HTM — NOT .HTML ! The file must be at least 512 bytes long. Whenever anyone tries to access any page on the site under the above conditions, they are presented with the contents of the app_offline.htm file and the HTTP status code 503 (Service Unavailable). Sample APP_OFFLINE.HTM file <html> <head> </head> <body> This [...]

Target Attribute - HTML/JavaScript — 2.2%

HTML and JavaScript can specify where to open a linked document or window. In HTML, this is done by way of the target attribute on the <a> element. In JavaScript, this same set of values can be used as the second parameter to the window.open() method. Valid Values Value Description _blank Opens the linked document in a new window or tab _newtab Opens the linked document in a new tab _self Opens the linked document in the same frame as it was clicked (this is default) _parent Opens the linked [...]

Flyouts - JavaScript — 2.2%

[...] _scrollY = document.documentElement.scrollTop; } else { _scrollX = window.pageXOffset; _scrollY = window.pageYOffset; } } function ShowFlyout(flyoutId, url) { try { GetWindowScrollPosition(); var flyout = document.getElementById(flyoutId); flyout.style.left = event.clientX + _scrollX - 320; flyout.style.top = event.clientY + _scrollY; var html; html = "<table width='100%' height='100%'><tr>"; html = html + "<td align='center' [...]

AJAX Example - jQuery and JavaScript — 1.8%

[...] <html> <head> < script type="text/javascript"> function test() { var div; div = window.document.getElementById("myDiv"); div.innerText = "hello world"; } var xmlhttp function loadXmlDoc(url) { xmlhttp = null //-- Mozilla, etc. ---------------------------------------------------------------- [...]

Creating a WCF Self-Hosted Service — 1.8%

[...] to the project that implements the interface, again naming it with a " Service " suffix. 6. Add an app.config file to the project, mimicking the following settings. <configuration> <system.serviceModel> <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true--> <behaviors> <serviceBehaviors> <behavior name="behavior0"> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> [...]

ActiveX Objects and Controls - Visual Basic 6.0 — 1.8%

[...] Design-time no control events are triggered Host Design-time; Control Run-time closing the object design window for the ActiveX control enables its button on the VB Toolbox, and initializes the ActiveX control object. Opening the object design window again disables the VB Toolbox button, and terminates the ActiveX control object. Host Run-time; Control Run-Time Control Properties Property Description Project Name the name of the type library for the compiled OCX file Project Description the text the users will see when displaying [...]

Performance Optimization in MSMQ — 1.8%

[...] recoverable messages to disk when its queue manager can quickly confirm message delivery to the receiving app. The term "quickly" is defined by a short internal timeoue value, but I'm not sure if this timeout is even something that is configurable (i.e., whether it can be adjusted). Use efficient dequeuing techniques, such as asynchronous notifications. This will maximize the chance that queue depths stay close to zero. I speculate that this may also have an effect on the stability issues. In addition, performance can be improved by having a local receiving app [...]

Public URLs in Mockflow — 1.3%

[...] procedure. 1. When you select a wireframe to work with, a panel pops out from the right side of the window. Click the Menu button on this panel. MockFlow Pop-Out Panel 2. If you have greater than Editor access, the menu shown will have a "Public URL" selection. Method #2 1. Using the web interface (not the Windows Desktop app), open the wireframe of interest. 2. Make note of the projectid query string parameter. 3. The public URL will one of the following [...]

Useful Windows Registry Keys — 1.3%

[...] drives of unknown type 0xFF 255 (n/a) all kinds of drives MRU (Most-Recently Used) Lists App Description Key Values Visual Studio 2005 Projects and Solutions HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList File1, File2, ... Miscellaneous Item Key Description COM+ HKLM\Software\Microsoft\COM3 This hive has many entries for the COM+ catalog GetSetting and SaveSetting VB functions HKCU\Software\VB and VBA Program Settings this key has a subkey for each AppName submitted to the SaveSetting VBfunction Drive Mappings HKCU\Network [...]

Updating SSL Certificate on SSRS Server — 1.3%

[...] SSL certificate to the SSRS server Install the Certificate in the Certificate Store (1) In a Command Window, type the "MMC" command and press Enter. (2) Microsoft Management Console opens (3) Navigate to File menu > Add/Remove Snap-In (4) In the Add or Remove Snap-Ins dialog, select "Certificates" in the left list (5) Click the Add button (6) Specify the "Computer Account" option > Next (7) Specify "Local computer" > Finish (8) On the "Add or Remove Snap-in" dialog, click OK (9) Navigate to Console Root > Certificates (Local Computer) > Personal > Certificates (10) Right-click [...]

Azure Functions Version — 1.3%

Overview This article provides reusable code for building a Version API for an Azure Function App. Reusable Code The following code, when included in an Azure Function App, provides a "GET api/Version" API which returns the following. Deployment Timestamp Version Number, as specified in a "Version.txt" file. NOTE: The "Version.txt" file must have its Build Action property set to "Embedded resource". public static class Version { [FunctionName("Version")] public static async Task<HttpResponseMessage> [...]

GitIgnore Files — 1.3%

[...] line #packages/ # Windows Azure Build Output csx *.build.csdef # Windows Store app package directory AppPackages/ # Others sql/ *.Cache ClientBin/ [Ss]tyle[Cc]op.* ~$* *~ *.dbmdl *.[Pp]ublish.xml *.pfx *.publishsettings # RIA/Silverlight projects Generated_Code/ # Backup & report files from converting an old project file to a newer # Visual Studio version. Backup files are not needed, because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML UpgradeLog*.htm # [...]

Setting Up a PC for Android Development — 1.3%

[...] install the Android ADT bundle. This will install Eclispse on your machine 2. Within Eclipse, navigate to Window menu > Android SDK Manager . 3. Within Android SDK Manager window, select (place checkmarks next to) the following. (Depending on your Internet connection speed, this can take an hour or two.) Tools Every version of Android 4.0 or greater Installing Subclipse To install Subclipse, a Subversion client for Eclipse, execute the following procedure [...]

Marquee - Javascript — 1.3%

[...] (document.layers){ ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=parseInt(marqueewidth)+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } lefttime=setInterval("scrollmarquee()",20) } window.onload=populate function scrollmarquee(){ if (iedom){ if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px" else cross_marquee.style.left=parseInt(marqueewidth)+8+"px" } else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=parseInt(marqueewidth)+8 } } if [...]

Using Custom Sections in an App.Config File - .Net Framework — 1.3%

The following excerpt from an app.config file demonstrates how to add a custom [...]

Transforming External Configuration Files - Visual Studio 2010 — 1.3%

[...] transformations don't apply. This article describes a work-around. <connectionStrings configSource="App_Config\ConnectionStrings.config" /> Solution 1. Create ConnectionStrings. BuildConfigName .config for each build configuration 2. Add a post-build event using the following code. copy /y "$(ProjectDir)App_Config\ConnectionStrings.$(ConfigurationName).config" [...]

Chapter 03: Handling Events and Managing State - MCTS Exam 70-515 — 1.3%

[...] Query strings Application state Lesson 1: Understanding the ASP.NET Life Cycle and Handling Events App Life Cycle 1. User requests a page 2. Route the request to processing pipeline, which forwards it to ASP.NET runtime 3. Create the ApplicationManager object — which holds the .NET domain for the application, isolating it from other apps. 4. Create the HostingEnvironment object — which provides access to directory folders, etc. 5. Create the HttpContext , HttpRequest , and HttpResponse objects. 6. Create/reuse the HttpApplication object — which is [...]

Chapter 02: Using Master Pages, Themes, and Caching - MCTS Exam 70-515 — 1.3%

[...] — *.css files Images and other resources Creation Each theme has its own subfolder under the ~/App_Themes folder. The name of the theme matches the subfolder name. Application Page level — Done in the @Page directive Web.config level — Done via the <page Theme=" ThemeName " > or <page StyleSheetTheme=" ThemeName " > in the <system.web> section. Properties defined via StyleSheetTheme are applied before a page's control property set, and therefore can be overridden. By contrast, properties defined via Theme are applied after [...]

Dropping Emails onto a .NET Application — 1.3%

Overview There a a number of articles on the net about how to build a .NET app that will accept emails dropped from Outlook. This article walks through a simple (if kludgy) approach. Walkthrough 1. Create a new C# Windows Application in Visual Studio 2. Add a COM reference to Microsoft Outlook 10.0 Object Library . 3. Drop a textbox onto Form1 and set its AllowDrop property to True . 4. Add the following code to Form1 and you'll be able to mail items from Outlook onto your textbox. {copytext|div1} using System.Windows.Forms; namespace DragDropTest { [...]

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.