9,885,179 members (48,917 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
Search within:
Articles
Quick Answers
Messages
Product Catalog
Comments by Keith Barrow (Top 200 by date)
Keith Barrow
-
1 May '13 - 9:39
View
Better ask the site owner. The classes in VB and C# are the same, just the syntax differs so you should be able to follow what is happening.
Keith Barrow
-
1 May '13 - 9:38
View
Not really. You should be able to make pretty much anything rational fit.
Keith Barrow
-
1 May '13 - 8:43
View
Which matrimonial websites?
Keith Barrow
-
1 May '13 - 8:09
View
You can extend the provider base classes to fully implement you own functionality (including custom SQL) video here: http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-a-custom-membership-provider
Keith Barrow
-
1 May '13 - 6:35
View
This. I've never needed to know the difference between those two. Might matter in other languages (hard to see how), but in c# never.
Keith Barrow
-
1 May '13 - 6:15
View
Can you add the stacktrace to your question? You don't normally get this error with sql commands, it could be something in the transport layer that the connection sits on, or be some other semaphore timing out.
Keith Barrow
-
1 May '13 - 6:09
View
My vote of 1: Please read the guidance about asking a question. Your question is very broad, how do you want to use googe api with MVC4? What have you tried - the fact you ask for source code is normally indicative of nothing? My guess is you haven't even tried Googling (protip, Google has lots of answers), which you should before you post here, we're all unpaid volunteers (barring a very few staffers who answer questions from time to time).
Keith Barrow
-
30 Apr '13 - 16:29
View
No Worries
Keith Barrow
-
30 Apr '13 - 16:00
View
Its all a question of balance I suppose. I was watching a web-api course last night (my sum experience with it), and he claimed blocking the thread like this was a bad plan. Not sure if the threading model is different, or I misunderstood :/
Keith Barrow
-
30 Apr '13 - 15:24
View
From what I can determine from your code, you are writing a speech-synthesised voice to file. At the very least the file write is relatively long lived and will block the return until it has done its work. For a web API this isn't good as it blocks server resources.
Keith Barrow
-
30 Apr '13 - 15:07
View
The Dispose isn't the problem it works OK with a StreamWriter. Your code inside the using block is blocking the return operation (which was my first thought and asking about the using block). Something inside the using block is taking too much time. The best thing to do is to put a breakpoint on ss.Rate= 2; and step through each step to see what is taking the time. More than likely the using block this should be done on a separate thread/asynchonously anyway.
Keith Barrow
-
30 Apr '13 - 14:56
View
Can't check this right now, but I *think* you are getting an error with ss.Dispose(); which is redundant. The using block disposes the object for you.
Keith Barrow
-
30 Apr '13 - 14:49
View
Got to check the easy stuff first! I assume it works if the using block is commented?
Keith Barrow
-
30 Apr '13 - 14:44
View
Have you examined the response in Fiddler or a similar tool?
Keith Barrow
-
29 Apr '13 - 10:58
View
I've no certifications in .net, never had any complaints nor any problem finding work. You might want to find out what prospective employers are looking for, or decide what you are interested in.
Keith Barrow
-
29 Apr '13 - 7:46
View
Should have been able to work that one out. Monday mornings bah! Matej Hlatky's reply basically contains everything I was going to say....
Keith Barrow
-
29 Apr '13 - 6:01
View
Can you let us know which line is throwing the error? Also "Select template from usertbl where username='" + registration.txtusername.Text + "'" is bad. You might want to look up "SQL Injection attack." for the reasons why. Parameterise your query and all will be well.
Keith Barrow
-
28 Apr '13 - 13:49
View
My Vote of 1: Not a question. This sort of thing is easily googled if you want an opern source one. If this an University/College assignment you should be writing this yourself
Keith Barrow
-
26 Apr '13 - 10:58
View
Plenty of examples on Google.
Keith Barrow
-
26 Apr '13 - 9:41
View
Hi, Not an answer more a piece of advice. Use the built in provider model if you can, it isn't as simple as just re-directing and a lot can go wrong. It is also fantastically easy to introduce security flaws. I've been a dev for years and I wouldn't risk it without expert advice or a well establised framework. The provider model will also save you a lot of work (it even has a DB Schema built-in) and doesn't need to be re-rolled each time you start a project. There is an excellent set of tutorials at http://weblogs.asp.net/scottgu/archive/2006/05/07/ASP.NET-2.0-Membership-and-Roles-Tutorial-Series.aspx
Keith Barrow
-
26 Apr '13 - 6:51
View
As Manfred said, this is not a solution please delete it. People will assume you have answered your own questions. You can update your original question, but what you have added doesn't make much sense either I'm afraid.
Keith Barrow
-
26 Apr '13 - 4:46
View
Can you re-write your question please? I can't understand it.
Keith Barrow
-
24 Apr '13 - 12:24
View
+5.
Keith Barrow
-
24 Apr '13 - 8:14
View
You might want to actually ask a question, please read the site guidance about this. I will delete this as you will continue to garner 1-votes.
Keith Barrow
-
23 Apr '13 - 12:31
View
I'm with Sergey on this, if you think putting the text into resources is too much effort, you should try not doing that. Then you'll have the effort of replacing MS's work AND creating something equivalent to the resx files. Resx files are the way to go.
Keith Barrow
-
23 Apr '13 - 9:17
View
Why without resource files? They will make the task *much* easier.
Keith Barrow
-
5 Apr '13 - 6:12
View
Just compiled it on my machine, it should work. I'd try a clean and re-built as Nicholas Marty suggests (or even restart VS - this has fixed things for me in the past). Despite my deleted reply, both the property and the nested class have the same visibility (public) so you shouldn't be getting this error.
Keith Barrow
-
5 Apr '13 - 5:48
View
That will cause problems to anything that relies upon INotifyPropertyChanged, but won't cause the bug described
Keith Barrow
-
4 Apr '13 - 8:08
View
No problem
Keith Barrow
-
28 Mar '13 - 8:49
View
As the PhantomUpvoted said, please re-tag your question this is a UML question, not a ASP.NET/c# one (even if the site is an asp one). I also suggest you look at the site guidance about asking a question, no one is going to do this work for you, they aren't getting paid. I will delete this question also.
Keith Barrow
-
28 Mar '13 - 8:46
View
My vote of 1: Not helpful, instead of trying to be clever it would be better to explain to the user what he is doing wrong.
Keith Barrow
-
28 Mar '13 - 8:44
View
Hi, I'm going to delete this question, you have already asked it. If I leave it up people will downvote you.
Keith Barrow
-
21 Mar '13 - 10:40
View
I don't see what the problem is. If you have Telerik-specific problems then the Telerik forums are more likely to help. If they require the license and your company has it then you need to get in touch with the person in your company and get the key to get help. If your company doesn't have a license (even a trial one) and you are trying to use the controls then you are committing an act of software piracy. They aren't going to help you if you try and pirate their software.
Keith Barrow
-
15 Mar '13 - 7:30
View
I'm going to delete this. Please don't repost.
Keith Barrow
-
13 Mar '13 - 10:23
View
Can't answer that for you, depends what you want to do.
Keith Barrow
-
13 Mar '13 - 9:34
View
No problem.
Keith Barrow
-
13 Mar '13 - 8:12
View
Hi, please see my solution. You shouldn't need any code at all - the .net framework has a built-in tooling to handle this stuff.
Keith Barrow
-
13 Mar '13 - 7:56
View
Seeing as you never instantiate A or B, none.
Keith Barrow
-
11 Mar '13 - 9:27
View
I really can't help much more, as I said I've not done this sort of thing before. See Original Griff's reply. Th activeX solution only works in IE, and even then only if activeX is turned on. Personally, I think what you are doing has a "bad smell" about it (i.e. why would you want to list these port in a website, it feels like there is probably something wrong with the design if you are trying to do this) and is probably more suited to a full desktop application
Keith Barrow
-
11 Mar '13 - 9:13
View
It will: the code is running on the server so it gets the ports on the server. You will need to investigate how to do this on the client side. I Googled "Javascript list serial ports" and got several promising results (this isn't something I've ever had to do- and why I haven't added an answer). It looks like JavaScript won't do this out of the box (a good thing in my view, it seems a bit of a security risk), but there is activeX that seems to do what you want. It seems a pretty unusual thing to want to do however.
Keith Barrow
-
8 Mar '13 - 10:35
View
No worries.
Keith Barrow
-
19 Feb '13 - 12:10
View
I think it still is this way. Just because standards have dropped, doesn't mean the requirements or programming have got easier. I'm appalled at the level of some of the questions. Even so I interviewed someone who was on the same course as me. As part of the dev test we asked him to parse a text file and count the number of each instance of a word. The code produced didn't make sense or even have a hope of compiling. He copied and pasted various bits of code for each logical part of the task (we checked the browser history, he copied all of the code). He couldn't integrate it all. He finished uni 5 years earlier (he didn't graduate) and was working as a senior dev at a Building Society.
Keith Barrow
-
8 Feb '13 - 4:28
View
Int is also a good way to go, that is what we do where I work.
Keith Barrow
-
7 Feb '13 - 15:04
View
I am indeed, born & bred. I almost went to Northumbria Uni (hasn't been a Poly since my undergrad days in the mid 90s) to read my MSc, but the course at Newcastle suited my needs better as it had less emphasis on DB work. Glad to be of help!
Keith Barrow
-
7 Feb '13 - 12:04
View
Please edit your question. A "browse button" makes no sense, by itself it won't do anything even if it did. A "sth" makes even less sense. Please explain what you are trying to do.
Keith Barrow
-
7 Feb '13 - 6:27
View
What have you tried? Please post the code and/or explain what you are having problems with.
Keith Barrow
-
5 Feb '13 - 7:00
View
Your activities on this site (answering anything you can find with links to your site) have been spotted & reported.
Keith Barrow
-
5 Feb '13 - 6:55
View
This isn't relevant, *database* normalization isn't the same as a normalization *factor* (and there are other types of normalization). The link you provide is far from useful as a description: it only goes up to 3rd normal form and doesn't even describe those fully, despite these things being well defined elsewhere. Oh wait- you are plugging your own stuff. If you are going to do this, you should at least make it look as if you understand what is happening.
Deleted
Keith Barrow
-
11 Jan '13 - 15:06
View
If you take a look at my answer, you'll see what they mean.
Keith Barrow
-
11 Jan '13 - 10:02
View
You have to do extra configuration work on the server to force the client to do this. Just remove the config that does this. Unless I've missed something of course.
Keith Barrow
-
7 Jan '13 - 8:35
View
Why do you think this is a good idea? You must have reasons. Personally I'd have thought updating one database from the other directly through SQL would have been quickest, next quickest would be an app that connects to two databases, pretty much the slowest way to do this would be via a web service such as WCF, even on named pipes. I'm also unsure why you need to do this row by row, this will be slower than updating many records at once. It might be better to explain what you are trying to do, and what constraints you have (e.g. the DBs can't communicate directly).
Keith Barrow
-
4 Jan '13 - 4:48
View
Not sure why you got down-voted, I countered this.
Keith Barrow
-
3 Jan '13 - 9:22
View
My vote of 1: a) Don't mark your question as urgent, the only person it is urgent to is you and possibly your boss/supervisor. We are all volunteers. b) Asking for code isn't going to win support. c) You've asked a very general question, even if someone were prepared to write you code for you they'd need to know the table schema, sql requirements etc d) The question you've asked is easily googled, try googling "android database example"
Keith Barrow
-
3 Jan '13 - 9:13
View
On topic: Crystal reports can be made to do this. I've not used them like this, but generating bitmaps seem more likely to encounter maintainability problems. Crystal Reports isn't available in later version of the framework and isn't so future-proof, so you might consider MS Reporting services (which is available for in to SQL server 2000 onwards) which is equivalent-ish to Crystal Reports. If you are using a non-web app, there are other options available too.
Keith Barrow
-
3 Jan '13 - 9:06
View
Off topic: I removed the formatting from your question, it was making it harder to read. More importantly, I removed your e-mail address from the question. *Never* put your e-mail onto an open forum like this. There are dedicated robots that scan web-pages for e-mail addresses, which are then sent tonnes of spam.
Keith Barrow
-
28 Dec '12 - 4:42
View
What sort of help do you need? Have you tried Google?
Keith Barrow
-
24 Dec '12 - 7:59
View
Hi, I suggest you create a new question for this, more people will see it so you'll be more likely to get an answer.
Keith Barrow
-
23 Dec '12 - 16:03
View
No problem.
Keith Barrow
-
21 Dec '12 - 17:41
View
Apologies, I totally misread your question. Richard's answer answers the question you actually asked.
Keith Barrow
-
21 Dec '12 - 12:30
View
Performance is pretty hard to optimise without the code, please can you add it? Given the what you have described, it shouldn't be taking that long, but without the code it is hard to tell. Despite common belief, EF performs fairly well, but you need to know what you are doing, like all technologies I suppose. The first thing I'd check is that you aren't creating a DataContext for every update, this would slow things down immediately.
Keith Barrow
-
21 Dec '12 - 9:51
View
You've missed the link...
Keith Barrow
-
21 Dec '12 - 9:04
View
You've already decided on a technology. I'd use a database as well, and probably the Entity Framework. As for a tutorial, you'd have to google it.
Keith Barrow
-
21 Dec '12 - 9:03
View
Library catalogue systems make me dewey-eyed.
Keith Barrow
-
21 Dec '12 - 5:57
View
We are not here to do your project for you, we are all volunteers. Making comments like this will *reduce* your chance of getting any answer. The correct answer is to study your problem and break it down into manageable smaller tasks. In your case you are going to need to work out a database structure to store you data, which mechanism you are going to use to get info in/out and then how you are going to allow the user interact with the database (and eachother). This should be within the reach of a university student. Your university may allow you to include other people's code to do this, if so there are plenty of frameworks out there to achieve what you want.
Keith Barrow
-
20 Dec '12 - 7:01
View
As Sk Tajbir suggests, the relevant bit of the HTML would help. As and aside, there is also a slide toggle you might find useful http://api.jquery.com/slideToggle/
Keith Barrow
-
20 Dec '12 - 6:58
View
I'm going to delete your question. It isn't at all clear, coding a bee colony doesn't make *any* sense. If you want to model a bee colony, just asking for code isn't going to get you anywhere here, please read the guidance about asking questions.
Keith Barrow
-
4 Dec '12 - 4:50
View
I doubt, given that Albert actually gave you the root of the problem, and your subsequent attitude, that many people are going to be willing to help you. This is your homework, not ours.
Keith Barrow
-
19 Nov '12 - 6:18
View
My Vote of 1: Please read the Site FAQs about asking for code. Please be specific about what it is you are having problems with, or if you are having problems getting started, state this. We are overwhelmingly unpaid volunteers here, and are not here to supply you with fully-formed code.
Keith Barrow
-
14 Nov '12 - 10:38
View
This doesn't answer your question (this is why I haven't added a solution), but you can make significant improvements to the checking algorithm: 1. Instead of iterating over all numbers and rejecting if divisible by 2, only iterate over the odd ones (and add two to it in each loop). This halves the number of numbewrs you check. 2. Keep a list of primes you have found. You should check that the prime is not evenly divisible by numbers in this primes list, rather than looping though all divisors. This is related to the sieve of Eratosthenes if you want to Google it. You semi-implemented the first part of this with (a % 2 == 0 || a % 3 == 0 || a % 5 == 0 || a % 7 == 0)! 3. You only need to check divisors from the prime numbers list up to the square root of the number you are checking, e.g. if you are checking to see if 9 is prime, you only need to perform division checks using the primes up to 3. These will significantly improve the performance of app. Also it will clean up the check_prime method, which has a few things wrong with it.
Keith Barrow
-
14 Nov '12 - 9:12
View
That's quite a cough you've developed there Richard.
Keith Barrow
-
14 Nov '12 - 9:11
View
Sorry, which tracking system? You don't seem to have asked a question, just described the un-named tracking system. Can you please clarify the question?
Keith Barrow
-
13 Nov '12 - 5:57
View
How? If I knew that, I'd set up a Plagarism-checking website :).
Keith Barrow
-
13 Nov '12 - 5:01
View
IMO you should try and find a simpler problem if this is a University project. Sites like Turnitin will have teams of specialised developers running complex algorithms, and they still won't be 100% accurate. I *really* dislike discouraging developers like this, but it is important to screen the problems first to see if your goals feasible . In my view, a plagarism checker is going to be too hard. Even my suggestions is only the very tip of the iceberg, it only brings down the scale of the challenge, whilst increasing the probability of losing plagiarised articles in the process.
Keith Barrow
-
12 Nov '12 - 14:12
View
If you read my text, I'm basically telling him brute force is effectively impossible, and anything else he is likely to acheive inaccurate results. At no point did I say this was going to produce reliable result. I expect a lone dev, however talented l, is unlikely solve this poblem.
Keith Barrow
-
9 Nov '12 - 7:03
View
You can stop replying to your own pre-prepared questions now. It's been noticed and reported. I'm going to delete all that I find. If you persist, I suspect your account will be banned.
Keith Barrow
-
6 Nov '12 - 6:00
View
I'm deleting this. We don't provide exam papers here.
Keith Barrow
-
2 Nov '12 - 9:57
View
Glad to be of help!
Keith Barrow
-
2 Nov '12 - 9:56
View
The this keyword code is just a suggestion, which is why I added it second, it will perform faster as long as you are acting on the control being passed. As for the masterpage, this is only partially relevant to the client ID (if I understand what you mean) as it might still be different even if there is not a master page in user. See: http://msdn.microsoft.com/en-us/library/system.web.ui.clientidmode.aspx for an explanation of how the client side ID is built up, and the options you to select how the server id becomes the client id.
Keith Barrow
-
2 Nov '12 - 5:22
View
Hi, I've updated my answer.
Keith Barrow
-
1 Nov '12 - 13:16
View
Hi, I've edited your question and put you code in it, with formatting. That way everyone looking at the question will see it and the formatting makes it more readable. What I'd do in this situation is to edit the original question (as I have done) and reply to the comment saying I've done this.
Keith Barrow
-
1 Nov '12 - 9:23
View
I'm going to delete this question. Please read the site guidance about asking a question. We don't do other people's work here, we are all volunteers.
Keith Barrow
-
1 Nov '12 - 9:15
View
I'm going to delete this question: you are going to get a lot of down-votes for it otherwise. Read the instructions about how to ask a question. We won't do your work for you here, we aren't getting paid for it, nor are you paying for it. Oh and saying the code is urgent isn't going to help your case: it is only urgent to you and your boss/lecturer.
Keith Barrow
-
26 Oct '12 - 12:00
View
The query string comes in via the URL, it is stored in the Request.Url Request.Url is used to copy the URL of the current page into the Uri.Builder object, this includes the query string part. Because the Open ID wants the shortest form of the web's URL, the query string needs to be stripped, line 3 of your code sample does this. The rest you'll have to work out for yourself.
Keith Barrow
-
26 Oct '12 - 10:16
View
By clearing the query string I mean this in your code { Query = "" }; The Query string taken from the incoming URL, it follows a ? at the end of the address of the page in the URL, See http://en.wikipedia.org/wiki/Query_string
Keith Barrow
-
26 Oct '12 - 9:45
View
Hi, I've updated my answer. You need to remove the query string for the open ID request, see my answer for the reasons.
Keith Barrow
-
25 Oct '12 - 11:09
View
Sorry but that is just plain rude.
Keith Barrow
-
25 Oct '12 - 10:25
View
ldc.i4.s 10 --> Pushes the *constant* (ldc = LoaD Constant? :/) value 10 onto the stack. The constant value is taken from the IL code itself, this line is where the value actually goes from the IL into the executing program itself. I hope this helps!
Keith Barrow
-
25 Oct '12 - 8:19
View
Please read the site guidance about how to ask a question. Just asking for code isn't going to get you anywhere: we are all volunteers and asking code *looks* very like getting us to do your job/coursework *even if* you've spent hours on the problem. Please let us know what you have tried (with code where appropiate), what is failing, or what you don't understand so we can help you better.
Keith Barrow
-
25 Oct '12 - 8:16
View
do you want to covert the number into a new format e.g. 3.13 to 3 - 14. If so you can use digitsOnly.Replace(".", " - ")
Keith Barrow
-
25 Oct '12 - 7:07
View
Hi, I added code tags to your code: it makes it much more readable, and will improve the likelihood of your getting an answer.
Keith Barrow
-
24 Oct '12 - 5:35
View
Can you add the code-behind please, the ASP doesn't really tell us what is happening before render.
Keith Barrow
-
21 Oct '12 - 5:17
View
Without seeing the rest of your code, it is hard to say. My guess is that whoever wrote this code wants to copy all the information from the request url, but needs to strip the query part out for some reason. This was probably done for a reason, so my guess is that the assignment is needed. The best thing to do is for you to trace through the code yourself and see what effect removing the assignment has
Keith Barrow
-
19 Oct '12 - 11:05
View
No, I really can't. There isn't an ideal solution, it totally depends on what you need. It's a bit like saying which vehicle should I choose, a Land Rover, a Ferrari or a Minibus without specifying how many people you are going to carry, whether you are going off-road or just want to blast round a track.
Keith Barrow
-
19 Oct '12 - 10:55
View
I suggest you ask this in the one of the forums, this is a topic for discussion rather than a quick answer as much depends on you needs rather than a blanket answer.
Keith Barrow
-
19 Oct '12 - 10:46
View
No, I don't understand it either. Unless there is something subtle and c++y going on (I'm a c# dev with a little c++ experience about 10 years ago) I doubt the code above is well written. Might be worth trawling through the code and seeing where it is used to see what it is intended for.
Keith Barrow
-
5 Oct '12 - 7:25
View
Is there any reason you are not binding controls - this is much easier and one of the great benefits of WPF over win-forms.
Keith Barrow
-
20 Sep '12 - 8:03
View
Please read the guidance about asking a question. This might be urgent to you, but not to anyone else here. Also, the question as posted seems to imply that you just want a solution given to you, there is no evidence of any effort on you part.
Deleted
Keith Barrow
-
20 Sep '12 - 7:59
View
That's a bit unfair: this is far more likely to be a homework question.
Keith Barrow
-
7 Sep '12 - 17:16
View
I'm going to delete this, the Code Project is not your personal storage. I suggest you try Dropbox, or one of the excellent alternatives.
Keith Barrow
-
16 Aug '12 - 8:15
View
Hi, Please update you question with either: 1. The compile time error message you are getting 2. The runtime error message you are getting 3. The information you are putting in, your expected results and your actual results. People aren't likely to help unless you give this information as we don't know what the error is.
Keith Barrow
-
16 Aug '12 - 8:13
View
I'm going to delete this: it has been duplicated somehow.
Keith Barrow
-
16 Aug '12 - 8:06
View
1. Please format you code, I have done this for you so you can see what I mean 2. You are going to have to be more specific: saying "its not working" isn't likely to get you an answer. Please be more specific: it you are getting a compile or runtime error, please say what it is. If the maths isn't working out, please tell us what you put in to test and what you expect to get out.
Keith Barrow
-
10 Aug '12 - 6:44
View
It's an an anagram of "in to mar mure" which is what griefers do when they destroy curtain walls of people's castles. Other than that, anyone's guess.
Keith Barrow
-
1 Aug '12 - 5:07
View
I'm going to delete this: Put the question into google and you'll get many answers, including stuff you can just download and use. Please read the guidance on how to ask a question, it specifically states that you should not just ask for source code.
Keith Barrow
-
1 Aug '12 - 5:03
View
Please give the code you are using, otherwise we are working blind. Also, you don't ask a question, is this what you want to do or what you have done?
Keith Barrow
-
4 Jul '12 - 8:29
View
Are you the original poster, your name/account is different but you seem to know about the problem? Categorised or not, a web application is unsuitable for timed jobs such as these. You can get it to work but the solution is harder, less maintainable and makes less sense than either the a Windows service, or a scheduled console app.
Keith Barrow
-
29 May '12 - 9:26
View
Well, the original question in the interview was bad. The most optimal sort depends on a few factors otherwise we'd all know and use the one "optimised" algorithm. Factors include how well ordered the list is, the size of the list in relation to the memory you have to play with. You may have even more esoteric requirements, like needing to know how long a sort is going to take for a real time system for example. The standard answer when there are no given requirements is Quicksort, it is generally considered fastest *on average*. My comment was prompted by the fact that bubblesort is never the most optimised, it can always be replaced by a cocktail sort which is faster on average than bubble sort, especially if the algorithm keeps track of where the last swap happened reducing the number of comparisons needed. It does this without requiring more memory, but is still slow compared to quicksort. You should look up "Sorting Alogrithm" in wikipedia, it's very instructive
Keith Barrow
-
28 May '12 - 10:39
View
A bubble sort is never the most optimised solution to sort, even allowing for the fact that optimisation depends on the type of data you start off with.
Keith Barrow
-
28 May '12 - 10:33
View
I wish I could 5 this comment!
Keith Barrow
-
28 May '12 - 8:56
View
Guids are Fixed length. They are this long to make it massively unlikely that two will be the same, reducing the length reduces their effectiveness. Can you explain what it is you are trying to acheive (rather than what it is you are doing), sending a guid to the user is probably wrong especially if (I assume) you want to make it shorter and easier for them to read.
Keith Barrow
-
28 May '12 - 8:23
View
Well that doesn't make any sense, you said "Note I make my date timepicker as custom control" so you must at least have the code for your date timepicker. As for your functionality, I think it will be unsuable (though it isn't exactly clear what you want), lets say a user types 2011, how are you going to tell if they mean the year, or [accidently] type 20 (a day), and then correct it to 11. It's technically possible, but I doubt it will be usuable. Please can you clarify your question, and let us know what you have done so far. Just asking for something without showing effort on your part isn't going to get you very far.
Keith Barrow
-
28 May '12 - 7:44
View
The error would be useful.
Keith Barrow
-
28 May '12 - 7:41
View
Here is the first help you need: Read the guidance about how to ask a question, its under the button you used to submit. Item 2 is the one you are having trouble with here: "Be specific! Don't ask "I need to write a booking application". Specify exactly what it is you need help with. " Please let us know what it is specifically you are having problems with.
Deleted
Keith Barrow
-
28 May '12 - 7:41
View
Here is the first help you need: Read the guidance about how to ask a question, its under the button you used to submit. Item 2 is the one you are having trouble with here: "Be specific! Don't ask "I need to write a booking application". Specify exactly what it is you need help with. " Please let us know what it is specifically you are having problems with.
Deleted
Keith Barrow
-
28 May '12 - 7:41
View
Here is the first help you need: Read the guidance about how to ask a question, its under the button you used to submit. Item 2 is the one you are having trouble with here: "Be specific! Don't ask "I need to write a booking application". Specify exactly what it is you need help with. " Please let us know what it is specifically you are having problems with.
Keith Barrow
-
27 May '12 - 10:06
View
Just a thought: have you made sure the response is correctly encoded, the conversion could be happening there.
Keith Barrow
-
27 May '12 - 9:38
View
So it's a question for a job interview?
Keith Barrow
-
27 May '12 - 9:26
View
You could create a macro or a project template to do part of the work, but you'd still need to supply the macro/template with a database to generate from first. It is this last point that takes up most of the time. Why do you need to automate this so heavily- it might help me understand your problem better.
Keith Barrow
-
24 May '12 - 8:42
View
I dunno, Aesceal asking himself if he has a friend he can grab and work through scenarios with has a certain surreal charm about it :)
Keith Barrow
-
15 May '12 - 8:42
View
I've already answered there a few times, and you replied LOL!
Deleted
Keith Barrow
-
7 May '12 - 5:21
View
Why is the UpdatePanel Necessary - do you need to post back information to prepare the html file? From your description is seems like you can just use a link, as suggested by Dhanamanikandan. Please can you clarify
Keith Barrow
-
7 May '12 - 3:50
View
"mouse event handle by windows and always response to screen" Actually, this isn't strictly true, but you need to go down to the OS level rather than the application level. All interaction with the GUI works by queuing messages through the Windows Message Queue.As long as you have the address pointer to the thing you want to interact with and the message code, you can interact with it. This works even if the target is hidden. If you think about it this is logical: otherwise Windows would not be able to un-minimise a minimised window. Please look at my answers, they give the instructions to do this. I tested this code on Windows 7, but have used the method in the 1st answer under XP. I have not voted on your answer BTW
Keith Barrow
-
6 May '12 - 14:13
View
I'm going to delete this: please do not repost it is bad manners on a site such as this.
Keith Barrow
-
6 May '12 - 8:39
View
This is a really broad question, a full reply would be huge. If you can't ask something a bit more specific I suggest you do some research. Google is a good place to start.
Keith Barrow
-
6 May '12 - 8:37
View
Is IE9 running in Quirks Mode?
Keith Barrow
-
6 May '12 - 8:36
View
Have you tried googling SaaS? There is tons there. It is also a worry that you have decided on the archtecture first, rather than letting the requirements drive this (unless of course the whole point it to learn Sofware As A Service).
Keith Barrow
-
2 May '12 - 8:08
View
What do you mean by you didn't get the master page exactly? Is the page giving an error? Is the page unstyled (i.e. you get a login page but it is not formatted)? If this is the case you are getting the masterpage, but the stylesheet is probably not being downloaded as it is in the secured area of the site.
Keith Barrow
-
1 May '12 - 9:07
View
Not really a question. UK cheque numbers can't be validated: they are sequential, with the account number and a code to identify the branch. You'll need to find out what constitutes a valid check number for the durisdiction you are writing the system for.
Keith Barrow
-
26 Apr '12 - 9:06
View
Can you post some code please and describe what you are doing. It is unlikely that the formatter is at fault: whilst there are upper limits to the number of items in a list and [I think] an absolute upper message size, neither are large enough to cause the OutOfMemoryException. It is more likely that the code has an infinite loop somewhere, or you are getting too much data.
Keith Barrow
-
26 Apr '12 - 8:05
View
But accurate.
Keith Barrow
-
25 Apr '12 - 3:34
View
I reported this as abusive/spam, I can't undo this. This was an *accident*, I am sorry![Edit]I have asked the admins to remove the report - hopefully they will do this. [Edit 2] They fixed the report, no harm done in the end, except the embarassment to me!
Keith Barrow
-
23 Apr '12 - 14:46
View
Actually, now I have read your response it is clearer what the OP was after. To be fair I answered v1 of the question, which was pretty hard to read at best. The OP didn't respond, so I assumed this was correct and it isn't. I'll delete my response.
Keith Barrow
-
17 Apr '12 - 15:21
View
If you want to store the value between request/responses and don't want to use a DB (at least directly) then use the Session variable. I will update my answer with a link.
Keith Barrow
-
17 Apr '12 - 9:02
View
Again, what do you mean by "Get it back when I need"? 1) Within the same session (i.e. not saving on a long term basis) across requests 2) Saving long term, such as storing in a database?
Keith Barrow
-
17 Apr '12 - 8:39
View
Don't Repost: http://www.codeproject.com/Questions/367734/Split-the-textbox-values-in-location-search http://www.codeproject.com/Questions/367591/Split-the-location-search I will delete this question.
Keith Barrow
-
17 Apr '12 - 6:01
View
I suggest you google for an API for this, it is complicated. Some Webcams have face-detecting software built in, but this may not be sufficient for your needs. You could also look at Microsoft Kinect, if you are not tied to a webcam.
Keith Barrow
-
17 Apr '12 - 5:54
View
Please read the guidance about asking a question. This is more a statement of intent. Briefly: What have you tried (with relevant code) and what isn't working?
Keith Barrow
-
17 Apr '12 - 5:50
View
Please add some code. Obviously you are recursing so often that the memory is used up. Whether this should happen, and what can be done about it largely depends on what you are doing.
Keith Barrow
-
15 Apr '12 - 8:35
View
I've updated your question slightly. Please avoid using ALL CAPS - it is considered as shouting and therefore rude. This common to all online forums, not just this one. See http://networketiquette.net/ for some guidelines
Keith Barrow
-
12 Apr '12 - 10:27
View
If the OP can't work out how to pass the int/datetime, then he/she has bigger problems, my guess is that he/she can. As you say we don't know the exact situation, but it is obvious that it is the formatting of the date and integer the OP is having problems with not what to pass in. You said "iCount will increment one by one", but in your code it won't. I assumed you wanted to increment it in your code, otherwise your solution is *identical* to mine for all practical purposes.
Keith Barrow
-
12 Apr '12 - 10:18
View
This is only demo code, not the full thing. The ToString(...) stuff is what is important here. At some point the int does need to be initialised, I just added it here so to help the code clarity (same goes for the date time initialisation), the above should run in a console app so the OP can see what is happening.
Keith Barrow
-
12 Apr '12 - 9:14
View
I think you missed a ++: string whatever = date.ToString("yyyyMMdd") + ++iCount.ToString("d5");
Keith Barrow
-
12 Apr '12 - 9:11
View
StringBuilder, despite the conventional wisdom, isn't *always* efficient. It is particularly bad for short string concatenations (i.e. where only a few items are being concatenated), and concatenations where the number of elements to be added is known at compile-time (both these conditions are met here). This is because it takes time to instantiate the StringBuilder object and it allocates a reasonable chunk of memory when it initializes. Take a look at http://www.yoda.arachsys.com/csharp/stringbuilder.html
Keith Barrow
-
9 Apr '12 - 7:34
View
Did you have a question, if so please state it!
Keith Barrow
-
30 Mar '12 - 14:24
View
I don't think that this is what the op needs, but it isn't 100% clear what he does need. My understanding is that he needs to encrypt a password (eg for the database itself) in web.config
Keith Barrow
-
29 Mar '12 - 6:46
View
it looks OK, given a quick glance. You can test it using a .net client: if it works for .net it *should* work for any JSON based call, ignoring so odd edge cases it doesn't look like you have
Keith Barrow
-
29 Mar '12 - 6:38
View
If you don't ask a proper question you don't get answer. If are rude you won't get an answer. Please read the guidance about asking a question. You know what you want, we don't. The only way to get help is to tell us what you need as we can't just guess.
Keith Barrow
-
29 Mar '12 - 6:35
View
My vote of 1: Please ask a question. This is just a code dump. Please state what it is you are trying to do, and what isn't working. Also use the "Improve Question" button to do this.
Keith Barrow
-
29 Mar '12 - 6:33
View
How did you encrypt the password? If you did it using asp.net's IIS registration tool (Aspnet_regiis.exe) you shouldn't have to do any other work.
Keith Barrow
-
21 Mar '12 - 15:12
View
The first step in getting an answer is always asking he correct question. None of this was in your original question and we would never have guessed it. I suggest you update your question (The green Improve Question) link, stating specifically what you want.
Keith Barrow
-
21 Mar '12 - 4:45
View
Sorry, this makes zero sense. What are you trying to do?
Keith Barrow
-
21 Mar '12 - 3:43
View
In that case, my answer below tells you what the code does. Hope it helps!
Keith Barrow
-
18 Mar '12 - 9:57
View
Can you let us know what the problem is? We can't help unless you narrow your problem down.
Keith Barrow
-
14 Mar '12 - 8:52
View
You need to tell us where this is happening. My guess is something is trying to access the root node's parent (which is null) and causing your error, but without more information I for one can't tell.
Keith Barrow
-
14 Mar '12 - 7:04
View
Can you confirm: The code you have posted looks like c#, you said the question was in c++ before I edited it and you have commented that you are using Java. Which language are you using? Are you tranferring from one language to another?
Keith Barrow
-
14 Mar '12 - 6:51
View
please click the reply button to reply to a comment, not answer, the person will then get a notification that you have replied and the answers section only contains answers. I will do this for you this time. and delete this answer
Keith Barrow
-
14 Mar '12 - 6:51
View
[Transferred from OP - not my reply] Yes because it relates to codes of classes created such as CardPile and Solitaire built on Eclipse Java
Keith Barrow
-
14 Mar '12 - 6:49
View
Please use the "improve question" button rather than the "answer" button. That way everyone can read the full question without having to check the answers. I will delete this answer as I have moved this for you.
Keith Barrow
-
14 Mar '12 - 6:46
View
I have formatted your code: please do this in future as it makes the question easier to read and an answer more likely!
Keith Barrow
-
11 Mar '12 - 6:18
View
I suggest you re-phrase this otherwise you are likely to ge 1-votes. Please read the site guidance about asking a question, but especially: a) You need to tell us what you have tried (otherwise we will assume you have tried nothing)
Keith Barrow
-
6 Mar '12 - 5:01
View
You have just "answered" your own question again: Do not click the "Answer" button (which is what I meant), when trying to contact a member who has answered.Use the "Submit Comment" instead, that way they will get an e-mail telling them you have commented. If you "answer" like this we don't, which is why I'm now replying a week later."Answering" like this also makes things hard to read. I cannot make the answer any clearer: I have put the exact code you need in my original answer, as well as a link to stuff you can download. If you can't work out how this works I suggest you take a course or get help from someone locally because this really is as easy as it gets.
Keith Barrow
-
4 Mar '12 - 6:22
View
5'd.
Keith Barrow
-
4 Mar '12 - 6:14
View
Please can you clarify your question? Why do you want to "detect" the link is clicked/What do you want to happen if the link is clicked? The appropiate answer to your question depends on what you need to happen.
Keith Barrow
-
4 Mar '12 - 5:58
View
That doesn't mean it isn't an exam question :)
Keith Barrow
-
4 Mar '12 - 5:08
View
Two things: 1) Please tell us which line is throwing the error, the compiler tells you and will make spotting the problem easier 2) I have formatted your code- please do this in the future as it makes questions *much* easier to read.
Keith Barrow
-
4 Mar '12 - 5:03
View
Is this an exam question by any chance?
Keith Barrow
-
29 Feb '12 - 3:32
View
Actually, there are copyright free books out there, see http://www.gutenberg.org/ all their eBooks are free. The ones the OP wants probably aren't legal though
Keith Barrow
-
28 Feb '12 - 8:44
View
Which eBooks?
Keith Barrow
-
28 Feb '12 - 8:37
View
Beaten to the punch!
Keith Barrow
-
28 Feb '12 - 3:44
View
Two people doing the same homework?
Keith Barrow
-
26 Feb '12 - 10:58
View
My vote of 1: Just asking for code makes most people assume you want to be given an answer. As we are all unpaid volunteers, it is unlikely you will get any real help until you show some effort. Please re-phrase your question so that we know what you have tried and specifically what you are having problems with
Keith Barrow
-
26 Feb '12 - 10:56
View
My vote of 1: Just asking for code makes most people assume you want to be given an answer. As we are all unpaid volunteers, it is unlikely you will get any real help until you show some effort. Please re-phrase your question so that we know what you have tried and specifically what you are having problems with. You should also tell us why upyou need OpenCV, as SAKryukov states, this is a just a matter of subtracting pixel-by-pixel.
Keith Barrow
-
22 Feb '12 - 6:08
View
Second: Please see my updated answer, I have downloaded the code for you and put it here, you should have been able to do this for yourself. If you are unable to understand what I have posted, please consider working through the free tutorials at http://www.w3schools.com/ , which are the best basic introduction to html/css I have yet come accross.
Keith Barrow
-
22 Feb '12 - 6:05
View
First: please do not answer your own questions, unless you have arrived at an answer yourself and want to share it. It is confusing for readers. If you click the "Have a Question or Comment?" button, to the person you want to ask a question to this is much better: they will get an e-mail and you will get a quicker response probably. If you are updating or adding a information to your own question, please click "Improve Question", this means people can see the whole information about the question without looking at the answers.
Keith Barrow
-
20 Feb '12 - 10:12
View
There isn't: W3C admits it should never have been there in the first place as it mixes up the HTML document definition with the layout. See my reply: the thing to do is have a div with its left/right margins set to auto. You can download the html from the link I added to my first answer
Keith Barrow
-
20 Feb '12 - 3:47
View
My advice was *not* to use tables: they break the meaning of the markup, and have several other disadvantages (and some advantages) mentioned in the link I added. There are two schools of thought: use tables for design; don't use tables for design and use divs in with css instead. I follow the second one, as does the W3C, but you need to make your own call on this.
Keith Barrow
-
20 Feb '12 - 3:42
View
The center tag is depricated. Most browsers still support it, but thie does not mean that future browsers will.
Keith Barrow
-
20 Feb '12 - 3:42
View
Please see my comment on Ahmad's Answer, this is explains what the W3C mean.
Keith Barrow
-
19 Feb '12 - 15:21
View
At the risk of starting an internecine war, using tables for formatting breaks the semantic meaning of the page. This isn't just theory: accessibility tools (such as screen readers for the blind) use the semantics. Tables are for tabular data. I've found this link http://www.redefinedwebdesign.com/table-vs-css-layout/ it is less one sided than many pages, but is not as in-depth either. Google "div vs table" layout and you'll see the division (pun intended!) that these two strategies cause.
Keith Barrow
-
19 Feb '12 - 8:03
View
Do not repost your question, this is considered rude. It could be a matter of life or death to you, but not to us. Everyone here is a volunteer and doing this will make it less likely you will get an answer now and in the future.
Keith Barrow
-
19 Feb '12 - 8:00
View
I suggest you re-phrase this otherwise you are likely to ge 1-votes. Please read the site guidance about asking a question, but especially: a) You need to tell us what you have tried (otherwise we will assume you have tried nothing)
Keith Barrow
-
19 Feb '12 - 7:58
View
I suggest you re-phrase this otherwise you are likely to ge 1-votes. Please read the site guidance about asking a question, but especially: a) You need to tell us what you have tried (otherwise we will assume you have tried nothing)
Keith Barrow
-
19 Feb '12 - 7:42
View
Please let us know what your question is, so far it is a statement of requirements.
Keith Barrow
-
19 Feb '12 - 3:42
View
I am going to delete your question. You should ask the author of the article, not the general Q&A. Not only that, your question doesn't give nearly enough information to help. Either there is a missing referenced dll, or for some reasone the project is being built but the result cannot be written to disk (this happens if the bin folder is readonly).
Keith Barrow
-
19 Feb '12 - 3:40
View
Giving us the error will help: the current question is pretty much "I hava a website that does X but on IIS I get an error". The error could be anyting from a faulty IIS instance through to a problem with web.config: we just don't know.If more than just the site you have deployed is effected, you have a problem with the server level rather than the app (so your preamble about the app isn't needed). Knowing how to ask a question is important, people will help if they can but you must first help us to help you.
Keith Barrow
-
15 Feb '12 - 3:48
View
The actual error message would be a start. What you have done is like taking a car to a mechanic and saying "There is something wrong with my car" and walking off. Of course the mechanic would be happy, you've just given him an excuse to spend [paid] *hours* looking for the problem. Here we are all unpaid volunteers (except for a few staff members) so we aren't going to do this.
Keith Barrow
-
15 Feb '12 - 3:44
View
I'm going to delete this, you will get multiple one votes. Please read the guidance about asking a question: a) You need to tell us what you have tried (otherwise we will assume you have tried nothing) Finally, the only Lightbox I know about is used to present images, I'd question whether you'd want to use it to create a header or footer. b) Do not ask for source code, especially in the context of point a, we will assume you just want your work done, and we are all volunteers.
Keith Barrow
-
14 Feb '12 - 8:03
View
This is not just a stored procdure question, please tag the UI technology you are using because each will require a different answer.
Keith Barrow
-
13 Feb '12 - 15:01
View
Please edit this question and tell us which UI technology you are using (see SAKryukov's Comment for the options). You can achieve what you want in each of these, but the implementation details are [mostly] different.
Keith Barrow
-
13 Feb '12 - 14:55
View
I just want to say I ageee 100% with Christian Graus's answer, I think Rahul Dhoble may be confusion DAL with assembly or dll. In any case I disagree with Rahul.
Keith Barrow
-
13 Feb '12 - 14:49
View
My Vote of 2: The code supplied by the OP is 100% Data Access Layer (DAL) type code. Any layers (Object Model or Presentation Layers etc). You seem to be confusing dll with DAL. See Christian's response.
Keith Barrow
-
13 Feb '12 - 7:57
View
Please tell us clearly what you want the the web.config *is* an XML file. It cannot load an XML file itself, you'd need code to do that. Do you mean referencing an partial config file (see http://www.devx.com/vb2themax/Tip/18880)?
Keith Barrow
-
13 Feb '12 - 7:52
View
I think you should rephrase your question: Getting 100% coverage is a matter for the developer. I think what you are looking for are test frameworks, with something to provide metrics such as code coverage. If you were using c# I'd be able to help, but I haven't used anything like this in c++, though I'm pretty certain such things do exist.
Keith Barrow
-
8 Feb '12 - 9:18
View
Please clarify what you mean by "send" (is this an event driven thing for exampl) and "page"( are you using Winforms/Asp.net/something else)? No one can answer until enough information is given!
Keith Barrow
-
5 Feb '12 - 8:13
View
I've updated your question. I've also formatted your code: you should do this in future as it makes things much more readable, improving your chances of getting an answer! I was going to answer, but I see Christian has beaten me to the punch....
Keith Barrow
-
5 Feb '12 - 5:40
View
Can you rephrase your question please, I really can't understand it. What do you mean by "i followed allot of the code on here" is this a question about an article on The Code Project?
Keith Barrow
-
5 Feb '12 - 4:24
View
I've formatted your code for you, you should do this when posting a question. To do this, highlight the code block, and click the "Code" button.
Keith Barrow
-
5 Feb '12 - 4:20
View
First, I have improved your question, please make sure thie is what you meant.\ Second, Do not ask for code, we don't give it here (see the guidance about asking a question). People will assume you have tried nothing. Third, do you want this to happen on postback or on the client?
Keith Barrow
-
3 Feb '12 - 16:28
View
My 5 too, don't let the comments of others put you off.
Keith Barrow
-
2 Feb '12 - 17:29
View
It isn't pre-primary grammar. This is a perfectly reasonable question, I only wish I could help! I can suggest that you check the DOB property raises the PropertyChanged event (and its container class implements INotifyPropertyChanged), otherwise the UI won't know how to update. If you could supply us with the class that you bind to, that would be helpful.
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130516.1 | Last Updated 1 Jan 1900
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid