Visual Studio 2010 shortcut to find classes and methods?
Is there any shortcut in Visual studio 2010 to find classes/interfaces? I was using Resharper few years back to do that. Here now, I don't have the Resharper and looking something similar in Visual s...
- Modified
- 13 Apr at 17:12
Control the dashed border stroke length and distance between strokes
Is it possible to control the length and distance between dashed border strokes in CSS? This example below displays differently between browsers: ``` div { border: dashed 4px #000; padding: 20px...
- Modified
- 9 Jul at 11:21
How do you loop in a Windows batch file?
What is the syntax for a FOR loop in a Windows batch file?
- Modified
- 4 Dec at 03:50
Sequence contains no elements?
I'm currently using a single query in two places to get a row from a database. ``` BlogPost post = (from p in dc.BlogPosts where p.BlogPostID == ID select p).Single(...
How to add a right button to a UINavigationController?
I am trying to add a refresh button to the top bar of a navigation controller with no success. Here is the header: ``` @interface PropertyViewController : UINavigationController { } ``` Here is h...
- Modified
- 23 Feb at 14:15
How can I scale an entire web page with CSS?
Using Firefox, you can enlarge an entire web page by simply pressing . What this does is proportionally enlarge the entire web page (fonts, images, etc). How can I replicate the same functionality u...
Just what is an IntPtr exactly?
Through using IntelliSense and looking at other people's code, I have come across this `IntPtr` type; every time it has needed to be used I have simply put `null` or `IntPtr.Zero` and found most funct...
What is the right way to check for a null string in Objective-C?
I was using this in my iPhone app ``` if (title == nil) { // do something } ``` but it throws some exception, and the console shows that the title is "(null)". So I'm using this now: ``` if (...
- Modified
- 25 Feb at 07:18
DataSet panel (Report Data) in SSRS designer is gone
In the layout screen of an SSRS designer e.g. Visual Studio, I have lost the report data panel. It has disappeared and I can't remember what it is called in order to get it back. This usually list...
- Modified
- 25 Sep at 04:37
Any reason to prefer getClass() over instanceof when generating .equals()?
I'm using Eclipse to generate `.equals()` and `.hashCode()`, and there is an option labeled "Use 'instanceof' to compare types". The default is for this option to be unchecked and use `.getClass()` t...
- Modified
- 27 Feb at 20:14
delegate keyword vs. lambda notation
Once it is compiled, is there a difference between: ``` delegate { x = 0; } ``` and ``` () => { x = 0 } ``` ?
- Modified
- 7 Oct at 12:18
Count work days between two dates
How can I calculate the number of work days between two dates in SQL Server? Monday to Friday and it must be T-SQL.
How can I pop-up a print dialog box using Javascript?
I have a page with a "Print" link that takes the user to a printer-friendly page. The client wants a print dialog box to appear automatically when the user arrives at the print-friendly page. How ca...
- Modified
- 28 Oct at 03:42
How to force uninstallation of windows service
I installed a windows service using installUtil.exe. After updating the code I used installUtil.exe again to install the service w/o uninstalling the original version first. When I now try to unins...
- Modified
- 25 Jun at 23:14
How to inherit constructors?
a base class with many constructors and a virtual method ``` public class Foo { ... public Foo() {...} public Foo(int i) {...} ... public virtual void SomethingElse() {...} ... } `...
- Modified
- 2 Nov at 12:16
Which is fastest? SELECT SQL_CALC_FOUND_ROWS FROM `table`, or SELECT COUNT(*)
When you limit the number of rows to be returned by a SQL query, usually used in paging, there are two methods to determine the total number of records: ### Method 1 Include the `SQL_CALC_FOUND_R...
- Modified
- 16 Mar at 14:39
jquery-ui-dialog - How to hook into dialog close event
I am using the [jquery-ui-dialog](https://jqueryui.com/dialog/) plugin I am looking for way to refresh the page when in some circumstances when the dialog is closed. Is there a way to capture a clos...
- Modified
- 28 Dec at 08:0
Dynamically load a JavaScript file
How can you reliably and dynamically load a JavaScript file? This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed JavaScript...
- Modified
- 11 Apr at 22:1
How do I bold (or format) a piece of text within a paragraph?
How can I have a line of text with different formatting? e.g.: Hello
How can I install Python's pip3 on my Mac?
I'm trying to install pip3, but I'm not having any luck. Also, I tried `sudo install` and it did not work. How could I install pip3 on my Mac? ``` sudo easy_install pip3 Password: Searching for pip3 R...
- Modified
- 6 Dec at 07:9
Detecting user leaving page with react-router
I want my ReactJS app to notify a user when navigating away from a specific page. Specifically a popup message that reminds him/her to do an action: > "Changes are saved, but not published yet. Do th...
- Modified
- 29 May at 06:26
Laravel csrf token mismatch for ajax POST Request
I am trying to delete data from database via ajax. ``` @foreach($a as $lis) //some code <a href="#" class="delteadd" id="{{$lis['id']}}">Delete</a> //click action perform on this link ...
PostgreSQL Foreign Key syntax
I have 2 tables as you will see in my PosgreSQL code below. The first table students has 2 columns, one for `student_name` and the other `student_id` which is the Primary Key. In my second table calle...
- Modified
- 15 Jun at 06:12
Remove title in Toolbar in appcompat-v7
The [documentation](https://developer.android.com/reference/android/support/v7/widget/Toolbar.html) of `Toolbar` says > If an app uses a logo image it should strongly consider omitting a title and su...
- Modified
- 19 May at 04:18
Adding asterisk to required fields in Bootstrap 3
My HTML has a class called `.required` that is assigned to required fields. Here is the HTML: ``` <form action="/accounts/register/" method="post" role="form" class="form-horizontal"> <input type=...
- Modified
- 20 Jun at 09:12