Software
$.connection undefined jquery
The reason this works is because of the order in which the javascript files are loaded. If you try and load jquery .signalR-.5.1.js before loading jquery , then you will face the $.connection undefined because for this to register the jquery should be loa...
$scope.$watch not working
I have a watch setup against the model of a ui-select2 dropdown (from ui-bootstrap). The watch fires on load but not on data changes and I can't figure out why. It isn't the usual problem of not $
.Net bitmask
One other really good reason to use a bitmask vs individual bools is as a web developer, when integrating one website to another, we frequently need to send parameters or flags in the querystring. As long as all of your flags are binary, it makes it much...
.Net Core model validation response
Model validation occurs after model binding and reports errors where data doesn't conform to business rules. For example, a 0 is entered in a field that expects a rating between 1 and 5. Both model binding and model validation occur before the execution o...
.Net garbage collection settings
This page contains information about garbage collector (GC) settings that can be changed at run time. If you're trying to achieve peak performance of a running app, consider using these settings . However, the defaults provide optimum performance for most...
.Net update UI from background thread
The first method (BeginInvoke) ensures that the UI update code executes on the same thread that created the control. The 2nd method does not. Having all UI updating code execute on the same thread avoids alot of threading issues and allows you to use cont...
@html.actionlink button
A simple way to do make your Html.ActionLink into a button (as long as you have BootStrap plugged in - which you probably have) is like this: @ Html.ActionLink (" Button text", "ActionName", "ControllerName", new { @class = "btn btn-primary" })
_SERVER('PATH_INFO)
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide oth...
10 minutes of silence mp3
Set of blank MP3 audio files. Contribute to anars/blank-audio development by creating an account on GitHub.
__file__
__ FILE __ is a preprocessor macro that expands to full path to the current file . __ FILE __ is useful when generating log statements, error messages intended for programmers, when throwing exceptions, or when writing debugging code.
0x80070005 IIS Cannot read configuration file due to insufficient permissions
The problem is with windows file permissions . This problems occurs because your application can not access and read web.config file . Make the file accessible to IIS_IUSRS group. Just right click web.config and click properties, under security tab, add I...
15 puzzle algorithm in C
Program to implement 15 Puzzle Problem in C - Analysis Of Algorithms
2 submit buttons on one form
To clarify @sfarbota's comment: The first solution shown in Parrot's answer is problematic, as it relies on testing the user-visible value. That is dubious - code that breaks when changing a user-visible word is considered "fragile". The second solution s...
2D array input in java
An array is one of the data types in java . Array is a group of homogeneous data items which has a common name. Array consists of data of any data type. 2-dimensional array structured as a matrix. Matrix is a combination of rows and columns.
3 div side by side
Three or more different div can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by-side format. float:left; This property is used for those elements ( div ) that will float o...
54321 pattern in c
Write a C program to print the given number pattern using loop. How to print the given number pattern using for loop in C programming. Logic to print the given number pattern using for loop in C program. Example Input Input N: 5 Output 54321 4321 321 21 1...