-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The following code throws System.UriFormatException:
var uri = new UriBuilder("ftp://user:pass#[email protected]:21/fu/bar.zip");
System.UriFormatException: Invalid URI: A port was expected because of there is a colon (':') present but the port could not be parsed.
Removing the # symbol from…
>>> More
-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
Recently I read good Russian post with many interesting extensions methods after then I remembered that I too have one good extension method “Safely type convert”. Idea of this method I got at last job.
We often write code like this:
int intValue;
if (obj == null || !int.TryParse(obj…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an XML structure that is 4 deep:
<?xml version="1.0" encoding="utf-8"?>
<EmailRuleList xmlns:xsd="EmailRules.xsd">
<TargetPST name="Tech Communities">
<Parse emailAsList="true" useJustDomain="false" fromAddress="false" toAddress="true">
<EmailRule address="@aspadvice…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
We have a small project we are working on part-time that runs on Nginx/MongoDB on Ubuntu 10.04 LTS Server. We'd like to be able to see reports on things like server load, requests/sec, response time, DB load, DB response time, etc. Is there an open source or free (as in beer) tool that can parse such…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I have a small website where some content is displayed within a HTML tag using AJAX. The content is simply taken from another page on the same web site. However, sometimes instead of loading the parsed PHP file, the browser displays a download box instead. I downloaded the file and this is what it…
>>> More