Quantcast
Channel: User Chris W. Rea - Stack Overflow
Browsing latest articles
Browse All 42 View Live
↧

Comment by Chris W. Rea on How do I serialize a mail message?

@Campinho The blog no longer exists.

View Article


Comment by Chris W. Rea on Why ICollection index does not work when...

@Inanikian There is no "best"; it depends on context. If you must use methods in IList<T>, say if you require indexing/ordering, then IList<T> may be the best interface type to require. If,...

View Article


Comment by Chris W. Rea on Spreadsheetgear run macro?

Hi Joe. I'm glad I found this answer, but it is almost five years old now. Is this still the case? I'm expecting nothing has changed based on the product history I found here, but I thought I'd check....

View Article

Comment by Chris W. Rea on Development Apple Push Notifications aren't...

I'm experiencing a similar issue. Known-good code (a tagged build from weeks ago) no longer receives a device token (nor the failure callback) when working vs. development/sandbox APNS. Production...

View Article

Comment by Chris W. Rea on didRegisterForRemoteNotificationsWithDeviceToken...

Hi Brett. +1. Was it, I wonder, 'experiencing problems' recently, e.g. today/yesterday? Because I'm experiencing a similar hair-pulling issue today, vs. sandbox APN (but prod APN is working fine, using...

View Article


Comment by Chris W. Rea on Could not get Device Token for Device running iOS...

I'm having the same issue today, too. Only development APN device token is failing; prod works fine. Our code isn't getting the failure callback invoked, either.

View Article

Comment by Chris W. Rea on Device token not generating iOS

@J.Lopes Are you able yourself to get a device token from sandbox APN today?

View Article

Comment by Chris W. Rea on EF.Core 2.0.1 Unsafe in Xamarin.Android

Switch back to using packages.config instead of PackageReference. I had to work around this issue as well. See my Feb. 23 posting at forums.xamarin.com/discussion/95916/…

View Article


Comment by Chris W. Rea on Visual Studio 2017 Xamarin Android compile warning...

Did you recently update to Visual Studio 15.6/15.6.1? I'm having this occur on one machine with 15.6.1 installed, but not on another with 15.5.7 installed. The project is the same in both cases.

View Article


Comment by Chris W. Rea on Xamarin UWP release mode Error - ILT005 returned...

Isn't .NET Native required in order to publish a UWP app? Guidance here shows enabling UseDotNetNativeToolchain.

View Article

Comment by Chris W. Rea on Xamarin UWP release mode Error - ILT005 returned...

Related: Internal compiler error when UseDotNetNativeToolchain is true ... the answer there suggests disabling optimizations for some assemblies.

View Article

Comment by Chris W. Rea on Assembly 'System.Memory' not found when using...

Just curious: Are you able to build with "Sdk Assemblies Only" linking enabled?

View Article

Comment by Chris W. Rea on Selecting all content of text input on focus...

Still an issue today in Edge/17.17134

View Article


Answer by Chris W. Rea for Binary search, from java to Actionscript

Here's a functional AS3 version: public static function find(keys:Array, target:String):int { var high:int = keys.length; var low:int = -1; while (high - low > 1) { var probe:int = (low + high) / 2;...

View Article

Moving from CodeRush to ReSharper (or vice-versa). Any resources/help for...

I've been using CodeRush with Refactor! Pro for a while, but I'm considering moving to ReSharper.Once I uninstalled CodeRush, I immediately began to miss some key features, including:navigating...

View Article


Image may be NSFW.
Clik here to view.

Answer by Chris W. Rea for Learning JavaScript... Should I skip straight to...

Starting with the basics of JavaScript is a good idea, IMHO.Read JavaScript: The Good Parts, by Douglas Crockford. Very, very good book.You should also check out Douglas Crockford's web site.I also had...

View Article

Answer by Chris W. Rea for Mass sending data to stored procedure

You can pass a text batch of statements to the database. It can be quite efficient.Instead of creating a SqlCommand of CommandType.StoredProcedure and taking a single stored procedure name and set of...

View Article


Answer by Chris W. Rea for process.start() arguments

To diagnose better, you can capture the standard output and standard error streams of the external program, in order to see what output was generated and why it might not be running as expected.Look...

View Article

How to get Flex 3 ComboBox width to adjust based on bound dataProvider...

In Flex 3, I've created a ComboBox within an MXML component similar to the following:<mx:ComboBox id="comboBox" dataProvider="{_choices}" /><mx:Script><![CDATA[ import...

View Article

Answer by Chris W. Rea for How to listener the keyboard type text in Javascript?

You can listen for the onkeypress event. However, instead of just examining either the event.keyCode (IE) or event.which (Mozilla) property which gives you the key code, you need to translate the key...

View Article

Answer by Chris W. Rea for Managing HTTPS server certificates from inside a...

Have a look at the System.Security.Cryptography.X509Certificates namespace.Notably, the X509Store class will do at least one of the things you're referring to: Importing an existing certificate into...

View Article


Answer by Chris W. Rea for ASPX pages fail due to FIPS 140 security policy

Refer to Microsoft's knowledge base article: KB 811833 - The effects of enabling the "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing...". Excerpt:Microsoft .NET...

View Article


Answer by Chris W. Rea for download a folder from an FTP server using flash

Check out Adobe AIR 1.5 * Updating AIR applications. It probably doesn't handle FTP-based sources (HTTP: yes), but it is supposed to address the general problem you're facing. Quote:[...]Using the...

View Article

Answer by Chris W. Rea for ASP.NET RangeValidator weirdness with MaximumValue

The MinimumValue and MaximumValue properties of the RangeValidator class return string.Empty as their default when not set.Next, it also happens that the Convert() protected method implemented by...

View Article

Answer by Chris W. Rea for Caching user data in asp.net application

Session may end up being stored out-of-process or in a database, which can make retrieving it expensive. You would likely be using a session database if your application is to be hosted in a server...

View Article


Answer by Chris W. Rea for How can you make a c# project ignore the version...

If you're referring to a problem at runtime after swapping versions of your assembly without performing a rebuild of the program referencing your newly built assembly, you'll want to use a...

View Article

How can I stop my Visual Studio from launching IE8 TWICE when I click "Start...

I use Visual Studio 2008 primarily for web development, and there's one annoying behaviour which seems to have occurred ever since I upgraded to IE8 on my work PC:When I set a start page for a web site...

View Article

How to set up working logic unit tests target in Xcode 4.5 "Command Line...

Having trouble getting unit tests set up for a specific scenario. Here's what I'm trying:In Xcode 4.5, I created a simple OSX "Command Line Tool" application project (Foundation).Note that Xcode does...

View Article

Answer by Chris W. Rea for How to set up working logic unit tests target in...

I've determined a workaround I find suitable and which doesn't appear to have significant drawbacks, other than an added target.In a nutshell: the solution involves adding a static library target to...

View Article



Answer by Chris W. Rea for Is iOS developer able to view file system?

When your iOS device is connected to your computer and correctly provisioned for development, you can use Xcode 4 to download files for your own projects, and not only the files in the Documents...

View Article

What is the purpose and function of Xcode's source control "Show Remote...

When working in Xcode on a project that's under git source control, I noticed the following menu item:File > Source Control > Show Remote Statusand, when toggling it, it changes to:File >...

View Article

Answer by Chris W. Rea for Jetty returning "HTTP/1.1 400 Bad Request" on...

Yes, having a space where you are putting it should result in a bad request.HTTP 1.1 is a protocol defined by a standard. By referencing the standard documentation, it is possible to determine what is...

View Article

Answer by Chris W. Rea for Xamarin ios - import library

@poupou's "maybe" was spot on, but I'll be pedantic and explain exactly.Look closely at this line I just quoted from your original question. I've marked it down using code (four spaces prefix per...

View Article


Answer by Chris W. Rea for Application Initialization Module for IIS 7.5 issue

(I know, stale question, but it's unanswered & came up in my own Google search on the subject.)Refer to the following article from Microsoft Support:Application Initialization module fails when web...

View Article

Answer by Chris W. Rea for #if DEBUG and return statements - Unreachable code...

If you are performing a build where the DEBUG symbol is defined, then the compiler is performing its static analysis of your code assuming that first return is in effect and not excluded. So your code...

View Article

Answer by Chris W. Rea for Is it possible to use Entity Framework Core in...

For some time I've also been interested in EF Core working on Xamarin.iOS, and have been monitoring the progress of the respective projects. There's good news now:Recently, a blocker bug was fixed...

View Article


Overriding Object.Equals() instance method in C#; now Code Analysis/FxCop...

I've got a complex class in my C# project on which I want to be able to do equality tests. It is not a trivial class; it contains a variety of scalar properties as well as references to other objects...

View Article


Answer by Chris W. Rea for How to read a single char from the console in Java...

What you want to do is put the console into "raw" mode (line editing bypassed and no enter key required) as opposed to "cooked" mode (line editing with enter key required.) On UNIX systems, the 'stty'...

View Article

Image may be NSFW.
Clik here to view.

Answer by Chris W. Rea for viewing c# console app arguments

The excellent and free Sysinternals Process Explorer will do what you want. Highlight the process, right-click, choose Properties, and on the dialog that opens you'll see a "Command line:" section that...

View Article

Is it necessary to create ASP.NET 4.0 SQL session state database, distinct...

Is the ASP.NET 4.0 SQL session state mechanism backward-compatible with the ASP.NET 2.0 schema for session state, or should/must we create a separate and distinct session state database for our ASP.NET...

View Article

Answer by Chris W. Rea for Is it necessary to create ASP.NET 4.0 SQL session...

There was no quick answer on this from anybody, so I did some digging. I generated an ASPState database using the aspnet_regsql.exe tool from .NET 2.0, and then I did the same thing using the same tool...

View Article


Answer by Chris W. Rea for What are the differences between .NET in 32 or 64...

Assuming safe code with no COM components, P/Invoke, etc. there should be no semantic difference, but performance may be impacted. Consider: More memory under 64-bit, but references are bigger. Win...

View Article
Browsing latest articles
Browse All 42 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>