How can I test a Windows DLL file to determine if it is 32 bit or 64 bit?
I'd like to write a test script or program that asserts that all DLL files in a given directory are of a particular build type. I would use this as a sanity check at the end of a build process on an ...
- Modified
- 6 Jan at 23:9
Removing the remembered login and password list in SQL Server Management Studio
I've recently used our company's spare laptop (that has a general user set up) while mine was being repaired. I've checked the "Remember password" option in SQL Server Management Studio when logging i...
- Modified
- 24 Oct at 07:5
What's the hardest or most misunderstood aspect of LINQ?
Background: Over the next month, I'll be giving three talks about or at least including `LINQ` in the context of `C#`. I'd like to know which topics are worth giving a fair amount of attention to, bas...
Using property() on classmethods
I have a class with two class methods (using the `classmethod()` function) for getting and setting what is essentially a static variable. I tried to use the `property()` function with these, but it r...
Authentication: JWT usage vs session
What is the advantage of using JWTs over sessions in situations like authentication? Is it used as a standalone approach or is it used in the session?
- Modified
- 3 Dec at 18:32
Could not insert new outlet connection: Could not find any information for the class named
I got an error on Xcode saying that there was no information about the view controller. > Could not insert new outlet connection: Could not find any information for the class named Why is this happe...
- Modified
- 21 Sep at 10:55
npm install error - MSB3428: Could not load the Visual C++ component "VCBuild.exe"
I'm trying to use the ``` npm install steam ``` but I am getting an error saying [](https://i.stack.imgur.com/82p3A.png) I'm not sure how to fix this and I have gotten this on two different npm ...
- Modified
- 18 Jun at 17:9
Get DateTime.Now with milliseconds precision
How can I exactly construct a time stamp of actual time with milliseconds precision? I need something like 16.4.2013 9:48:00:123. Is this possible? I have an application, where I sample values 10 ti...
- Modified
- 16 Jul at 08:15
How to add custom validation to an AngularJS form?
I have a form with input fields and validation setup by adding the `required` attributes and such. But for some fields I need to do some extra validation. How would I "tap in" to the validation that `...
- Modified
- 24 Nov at 21:54
How can I echo or print an array in PHP?
I have this array ``` Array ( [data] => Array ( [0] => Array ( [page_id] => 204725966262837 [type] => WEBSITE ) [1] => Array ( ...
Using port number in Windows host file
After installing TeamViewer, I have changed the wampserver port to 8080, so the address is `http://localhost:8080.` For the host file located at C:\WINDOWS\system32\drivers\etc\, I have also made the...
- Modified
- 20 Aug at 15:11
How can I have grep not print out 'No such file or directory' errors?
I'm grepping through a large pile of code managed by git, and whenever I do a grep, I see piles and piles of messages of the form: ``` > grep pattern * -R -n whatever/.git/svn: No such file or direc...
- Modified
- 10 Aug at 08:35
Best way to specify whitespace in a String.Split operation
I am splitting a string based on whitespace as follows: ``` string myStr = "The quick brown fox jumps over the lazy dog"; char[] whitespace = new char[] { ' ', '\t' }; string[] ssizes = myStr.Split(...
Shorter syntax for casting from a List<X> to a List<Y>?
I know it's possible to cast a list of items from one type to another (given that your object has a public static explicit operator method to do the casting) one at a time as follows: ``` List<Y> List...
- Modified
- 23 Apr at 01:58
JSON and XML comparison
I want to know which is faster: XML and JSON? When to use which one ?
Git vs Team Foundation Server
I introduced Git to my dev team, and everyone hates it except me. They want to replace it with Team Foundation Server. I feel like this is a huge step backwards, although I am not very familiar with T...
Android Calling JavaScript functions in WebView
I am trying to call some javascript functions sitting in an html page running inside an android webview. Pretty simple what the code tries to do below - from the android app, call a javascript functi...
- Modified
- 12 Aug at 18:38
How to tell a Mockito mock object to return something different the next time it is called?
So, I'm creating a mock object as a static variable on the class level like so... In one test, I want `Foo.someMethod()` to return a certain value, while in another test, I want it to return a differ...
- Modified
- 18 Nov at 15:48
How do you delete all text above a certain line
How do you delete all text above a certain line. For deletion below a line I use "d shift g"
- Modified
- 12 Nov at 05:35
Unique constraint on multiple columns
``` CREATE TABLE [dbo].[user]( [userID] [int] IDENTITY(1,1) NOT NULL, [fcode] [int] NULL, [scode] [int] NULL, [dcode] [int] NULL, [name] [nvarchar](50) NULL, ...
- Modified
- 23 Aug at 21:26
How to set time zone of a java.util.Date?
I have parsed a `java.util.Date` from a `String` but it is setting the local time zone as the time zone of the `date` object. The time zone is not specified in the `String` from which `Date` is parse...
- Modified
- 30 Jun at 17:1
Catch a thread's exception in the caller thread?
I'm very new to Python and multithreaded programming in general. Basically, I have a script that will copy files to another location. I would like this to be placed in another thread so I can output...
- Modified
- 5 Jul at 13:41
Get a list of checked checkboxes in a div using jQuery
I want to get a list of names of checkboxes that are selected in a div with certain id. How would I do that using jQuery? E.g., for this div I want to get array ["c_n_0"; "c_n_3"] or a string "c_n_0;...
- Modified
- 2 Aug at 11:20
Getting hold of the outer class object from the inner class object
I have the following code. I want to get hold of the outer class object using which I created the inner class object `inner`. How can I do it? ``` public class OuterClass { public class InnerCla...
- Modified
- 29 Nov at 19:26