15,745,135 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Brian C Hart (Top 30 by date)
Brian C Hart
27-Mar-21 12:47pm
View
@Richard - actually I have found the issue. I am using
PostSharp
[
^
] v6.9.3 in my project. When I decorate the offending method with their
[Log(AttributeExclude = true)]
attribute, which suppresses weaving for this method, then the issue goes away.
However, I hate to have to think that it will be necessary to disable this for all my code's methods that early-return!
Brian C Hart
22-Feb-19 9:05am
View
Hi Gerry,
Thank you for the idea. However, I am unclear as to whether your proposed solution would meet my needs (sorry, I don't know WPF and I am not clear if I ever will program in it, I am a WinForms guy).
Did you have a chance to look at the picture in my question as to what I am specifically looking for?
I am just concerned that the code you supplied would put a little tiny blue doughnut on the screen in place of the "arrow" mouse cursor -- which I know how to do already -- however, I am specifically looking for those fun "dots" and that look exactly like the Winlogon screen's version.
I am convinced that it's gotta be buried in the OS somewhere as a control. But if I am wrong, I really do not have the foggiest as to how to replicate it.
So, I appreciate your help very much, however, it's not what I am looking for.
Brian C Hart
13-Aug-18 14:58pm
View
Ravi, what Richard means is, can you please copy and paste the specific error, exception message, or stack trace that you are getting. Then we can be more helpful.
Brian C Hart
26-Feb-18 11:42am
View
Don't patronize me, I am a fellow developer just like you and I have been using that funny little search site like Google etc. Just thought the Code Project community might have some suggestions. I am used to how it is like with Windows Forms, where you can use a drag and drop Designer in the IDE to put together your GUI and then you wire it up to code. I am not ignorant, just lazy :-)
Brian C Hart
28-Sep-16 15:16pm
View
Reason for my vote of 1 \n Totally useless content detailing something that is quite obvious how to do.
Also, written very unintelligibly, so it's hard to make out the communication. The pictures are a plus...probably the article's only saving grace.
Moreover, the article fails to go over any code examples or how to utilize the EntityFramework package once it's installed.
Brian C Hart
22-Jul-16 14:18pm
View
Can people stop bullying me? This question is so old, that I don't even give a crap about answers to this question any more.
Brian C Hart
2-Jun-16 11:13am
View
Hi Richard,
Thanks for reminding me. I've gone onto my server and opened up the permissions. The links to the images should now work.
Brian Hart
Brian C Hart
16-Sep-15 14:48pm
View
I am mystified as to how to get around this, since i see
GetData
as nothing more than a black box. Do you have any ideas as to how to test for the proper sequence?
Brian C Hart
16-Sep-15 14:38pm
View
I wrote the code below for the answer to this test, and the hiring manager said I was wrong because I was making assumptions:
‘ This code is assuming that GetData() always returns 512 until the very
‘ last data block is read; only then is 512 or less returned.
Sub Main()
Dim buffer As Char() = New Char(512) {}
Dim count As Integer = 0
While (InlineAssignHelper(count, GetData(buffer))) <> 0
PutData(buffer, count)
End While
End Sub
‘ This method is only here to ensure we can assign the result of
‘ GetData to count with each iteration of the while loop, while
‘ at the same time, detect whether zero bytes have been returned.
Private Function InlineAssignHelper(Of T)(ByRef target As T, ByVal value As T) As T
target = value
Return value
End Function
Brian C Hart
16-Sep-15 14:32pm
View
You are excatly right. This is a mindless "programming test" question. Don't you hate those? I am trying to use "phone a friend."
Brian C Hart
27-Oct-11 13:27pm
View
I sort of kind of suspected that, but I guess what I am still asking is, then, is there another property of "Request" that I can use to get the raw, un altered URL that the user has typed in the browser bar, without any alterations?
Brian C Hart
12-Sep-11 16:45pm
View
I would also do
list = list.ConvertAll<string>(x => x.EndsWith("LT") ? x.Replace("LT", "") : x);
however this is another process of O(n) complexity that replaces my list with a whole new list, identical to the old except for the changed items. digimanus's answer is close; i just was hoping that i wouldn't have to declare an
int i
outside the
ForEach
call. It's almost as gradeschool as the OP.
Brian C Hart
12-Sep-11 14:32pm
View
Deleted
I don't like this alternative because first of all it's a trivial duplication of the Sieve (i.e., it's what the Sieve does in the first place) and it's not optimized because it uses two lists of size N instead of just one. Not a big deal when N is a small number, but what if I put in something closesest to the largest int (65536)? Then I'm allocating initial storage for 130,000 items and I then prune the storage down. And then I have 130,000 iterations (two for loops of N iterations each -- it's really N-2 iterations but I'm talking in the large-N limit.
Brian C Hart
7-Sep-11 18:36pm
View
OK, I was not looking for a Ph.D. in Math doctoral dissertation though :) Also, the size formats are all specified by internationally-published standards and I cannot change the formats since the company is too large for me to foist them on the company. so I have to make do with the data as it comes. It comes out of a SQL server database table. The list of sizes is not able to be specified by me and I always know the entire contents of the list before I sit down and split it up.
And you are absolutely right in that the DB design is terrible. The entire size string is in just one DB column, it really should be broken up into three DB columns to begin with.
Brian C Hart
6-Sep-11 11:56am
View
You should try adjusting your browsers proxy, because it is coming up fine for me. I've set the images to display to anyone who clicks the links.
Brian C Hart
1-Sep-11 14:39pm
View
Try them now. I reenabled permissions so that everyone can view those images.
Brian C Hart
12-Jun-11 23:37pm
View
Just assign each box (i.e., color) a number and the do the swaps per the appropriate Numerical Recipes algo. As far as Win32 application, there is plenty of boilerplate living on the net.
It's called Google.
Brian C Hart
12-Jun-11 23:36pm
View
Whatever. I think the first part of what I said is true. This is such an elementary question it really smells of cheating attempt to me.
Brian C Hart
18-May-11 16:17pm
View
See my comment on the below post. For this particular project, I will know a priori if it's Base64. I've been told by the client the file is guaranteed to either be in Base64 or plaintext. I just needed to brainstorm about what the best method was to automate detecting which I have is.
Brian C Hart
18-May-11 16:16pm
View
Actually there is no theoretical about it...I've been told by the client that either the values will be in Base64 or they won't. So technically all I really need to do is an Int32.Parse and if it throws a FormatException then I "know" the value is really in Base64.
Brian C Hart
23-Apr-11 11:09am
View
@Orc_Orc_Orc and @Sandeep: yeah everything is set correctly.
I've checked the project Property Pages,
The .cs file everything and all names are matching. That's why I am so confused.
Brian C Hart
8-Apr-11 10:18am
View
lol
Brian C Hart
8-Apr-11 10:18am
View
Nope.
runat="server"
is not a required attribute for that tag
Brian C Hart
7-Apr-11 15:21pm
View
Typing something doesn't fire the event
Brian C Hart
7-Apr-11 15:03pm
View
And yes, the AutoEventWireup is set to TRUE
Brian C Hart
7-Apr-11 15:02pm
View
Yes it's a form
Brian C Hart
7-Apr-11 14:44pm
View
By the way, my Ph.D. is not in ASP.NET as you may have guessed so be nice :)
Brian C Hart
5-Apr-11 12:45pm
View
Here is a snippet of the ASP:
<div class="row">
<div class="column phone">
<label>
Phone Number</label><span id="rfvPhone" class="colorred" style="color:Red;display:none;">*</span>
<p>
<asp:TextBox runat="server" maxlength="15" id="txtPhone" /></p>
</div>
<div class="column zip">
<label>
Zip Code</label><span id="rfvZip" class="colorred" style="color:Red;display:none;">*</span>
<p>
<asp:TextBox runat="server" maxlength="10" id="txtZip" /></p>
</div>
<div class="column property">
<label style="margin-left: 10px;">
Property Type</label>
<p>
<asp:RadioButton runat="server" value="0" groupname="rbHB" id="rbHome" checked="true" /><label for="rbHome">Home</label><br />
<asp:RadioButton runat="server" value="1" groupname="rbHB" id="rbBusiness" /><label for="rbBusiness">Business</label>
</p>
</div>
</div>
Here is a snippet of my CSS:
form {
float:left;
width:317px;
height:400px;
padding:40px 20px 0;
background:url(../images/form-bg.gif) no-repeat;
margin-right:25px;
}
form {color:#fff;font-size:12px;}
form p {margin-bottom:10px;}
form label {display:inline;}
form .row {overflow:hidden;position:relative;clear:both;}
form .row p {margin-bottom:5px;}
form span {color:red;padding-left:3px;}
form input[type="text"] {width:300px;padding:5px;font-size:12px;}
form .customer p {float:left;margin-right:10px;}
form .column {float:left;margin-right:7px;}
form .column input {width:75px;}
form .state input {width:50px;}
form .zip {margin:0;}
form .zip input {width:60px;}
form .property {margin-left: 6px;}
form .phone input {width:100px;}
form .email {margin:0;}
form .email input {width:154px;}
form .submit input {float:right;position:relative;right:-3px;margin-top:7px;}
Brian C Hart
6-Jan-11 14:43pm
View
My hunch is that this sounds a lot like a homework assignment. In my view, it's nothing that the docs can't help you out with.
Brian C Hart
12-May-10 15:48pm
View
That's a good point, however I am using VS2008 Express Edition. Is there a way to turn off Overflow Checking with VS2008 Express?
Show More