15,912,504 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 C++ questions
View Javascript questions
View Visual Basic questions
View Python 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 Rod Kemp (Top 57 by date)
Rod Kemp
26-Feb-11 8:20am
View
Also have you looked into how JIT compliers work and the difference between how programs that use byte code (.net, Java) work versus native programs?
Rod Kemp
26-Feb-11 8:15am
View
The processor is irrelevant, as part of your R&D have you mapped out the classes/methods/properties that make up the .net compact framework and how these can map to the underlying OS or how Java maps to the underlying OS and how it compares to the .net compact framework as both are frameworks that sit on top of an underlying OS.
Rod Kemp
26-Feb-11 7:45am
View
That was my point, look at the work that has gone into the mono project and then look at your question and ask yourself is this a simple question or will it require some real R&D on your part.
Rod Kemp
26-Feb-11 7:30am
View
What is the EXACT error message you are getting?
Rod Kemp
21-Feb-11 0:54am
View
Interop.CAMSERVERLib.dll is a wrapper that is created so that you can access a COM component you do NOT register it.
What you need to register is CAMSERVERLib.dll with regsrv32, notice how there is no Interop at the start of the filename, this is the COM component that the Interop wrapper accesses.
Rod Kemp
19-Feb-11 8:18am
View
Ah Griff, the OP is trying to register the interop wrapper for a COM dll regasm is going to be of no use what so ever.
Rod Kemp
19-Feb-11 5:56am
View
What are the errors you are getting?
Rod Kemp
14-Feb-11 7:17am
View
Deleted
I have to question your testing methodology and conclusion as with your own test page it is possible to get the opposite result depending on which algorithm you run first and in what order you run subsequent tests.
I carried out tests on the algorithms using a WinForm app, using your test strings, and found that the first one run always gave the worst result but subsequent tests without restarting the app gave next to no difference either way.
Rod Kemp
5-Feb-11 12:26pm
View
Well being able to give career advice to some people is a skill in itself at times. :)
Rod Kemp
5-Feb-11 10:04am
View
Would you like fries with that? LOL
Rod Kemp
23-Jan-11 22:59pm
View
Thankfully the basics don't change, unfortunately it seems that some people don't know the basics.
Rod Kemp
28-Dec-10 22:42pm
View
You need edit your question to supply more information such as from what, a windows app or using the upload control in a web app, to where a web site or web service or FTP server.
Lastly what have you tried?
Rod Kemp
1-Dec-10 1:34am
View
You need to look at a few things first.
1. Is the bottle neck the database calls. Put logging into your code to find out what is holding things up.
2. If it is the database, is it the network slowing things or is it the database server or the database design.
Use Sql Profiler to find out.
3. Depending on the number of form configurations you may want to look into caching the data locally.
4. It may be worth looking into XML with xslt like; http://www.codeproject.com/KB/XML/xmlxsltransformer.aspx
All in all it depends on where the bottle neck is.
Rod Kemp
30-Nov-10 5:49am
View
Moved your table and stored procedure info from the "answer" to the question.
If you need to add information that people request add it to your original question by clicking on "Improve Question" don't add an answer.
Rod Kemp
30-Nov-10 5:43am
View
GetTempPath() returns a string there is no need to call ToString() on it.
Rod Kemp
26-Nov-10 7:51am
View
If you need further information on the MySql Connector look at http://www.mysql.com/products/connector/
Rod Kemp
26-Nov-10 7:47am
View
SqlConnection is only used for SQL Server connections NOT MySql for MySql connections refer to the link I provided.
Rod Kemp
25-Nov-10 19:01pm
View
Sure it would be simpler to put a call to Sorting(0, input.Length - 1); in the qs method, why it was done like it is can only be explained by your instructor.
Rod Kemp
23-Nov-10 22:59pm
View
Supplying some code showing the relevant section would be helpful otherwise people are just going to be guessing.
Rod Kemp
19-Nov-10 0:50am
View
It can be achieved using a proxy, Squid Web Proxy allows the use of an external database so that whenever someone tries to access the internet a dialog box pops up asking for a username and password before access is allowed and so long as the proxy is also acting as the gateway it can't be bypassed where as a program on a local computer can be bypassed simply by shutting it down from task manager e.g. killing the process.
Quite simply you are trying to replicate the features found in a properly configured network domain utilising a proxy server as the network gateway to the internet in such a way as to make it a simple matter to bypass.
You need to talk to a system administrator who knows what they are talking about, if you do talk to one who says it is not possible they are a moron who doesn't know what they are talking about.
Rod Kemp
18-Nov-10 23:37pm
View
What you are wanting to do is what a proxy server is designed to do, which is block or allow internet access from an intranet by user and computer.
What you need to do is find a competent system admin and put your requirements to him/her as everything your trying to do can be achieved by proper network configuration including the use of a proxy server.
Rod Kemp
15-Nov-10 20:22pm
View
That's odd, I tested it and the file was always copied across even if I just hit F5.
You can always try putting the XCOPY option into a pre-build event as this should always be run.
Rod Kemp
15-Nov-10 5:46am
View
Try Build Action = Content this should copy the file to the output directory before the app runs where as Build Action = None seems to copy the file after the app starts.
I think you are always going to have an issue with timing, as sometimes the app may start before the copy has finished.
As I originally said though if you click build and no code has changed then it will still copy the file even if the build for the project doesn't happen.
Rod Kemp
11-Nov-10 4:07am
View
All images are binary, so a dicom image is binary and a jpg image is binary.
A better question which you can even Google is "how to convert jpeg image to dicom image format", substitute the image type you want to convert from.
Rod Kemp
10-Nov-10 5:23am
View
It is not a default document problem, even if the page to display is specifically mentioned like "http://www.techniche.co.in/default.aspx" it still displays a 500 error. Hell you can put any page name into the URL and it will give a 500 error even when it should give a 404.
Rod Kemp
10-Nov-10 5:19am
View
It is not a default document problem, even if the page to display is specifically mentioned like "http://www.techniche.co.in/default.aspx" it still displays a 500 error.
Rod Kemp
10-Nov-10 3:49am
View
Don't add a new answer as a response, click on the Add Comment link under the answer you want to respond to. This way the person who provided the answer will be notified.
What is the actual URL, so I can check. Add your response to my original answer.
Rod Kemp
9-Nov-10 4:59am
View
1. If you want to select index=0 put domainUpDown1.SelectedIndex = 0; in your form constructor, you can't highlight after the text, but again when the control loses focus the highlighting will be lost, you can't change this.
2. I can't get the DomainUpDown control to loop back to the first item, so I don't know what it is your doing here.
Rod Kemp
9-Nov-10 4:09am
View
1. This doesn't make sense.
2. You can only select the text, unless you make your own control and override the paint event.
3. Focus only stays with the currently selected item, if you click or select another item focus goes to it this is how things work.
This is the best answer I can give as your question really isn't that clear.
Rod Kemp
7-Nov-10 6:59am
View
Sorry I didn't realise you had responded, if you want to respond to an answer add a comment to the answer don't post an answer as a response.
Anyway the windows task scheduler can trigger a task down to 5minute intervals, that setting is in the advanced settings section.
For the start method look at the one that takes 2 strings in the constructor, the first string is the path and name of the program to run and the second string has the arguments to pass to the program. To have a file create triggered action you would use a FileSystemWatcher. Have a look at this article - http://www.codeproject.com/KB/files/FileSystemWatcherChaos1.aspx
Rod Kemp
6-Nov-10 8:53am
View
You need to look closer at the WebRequest and WebResponse classes, these have no bearing on the Request and Response objects used within an ASP.Net website. If you would also look at the OP question it mentions that the OP is GETTING the pages using the specified code this puts it in the realm of client side code. As a final point it is possible to get responses from a web server using the .Net framework without using a browser, so I may have miss spoke and should have said "think a C# app in place of a browser". Maybe you need to look beyond the classic browser/web server relationship. Good luck! ;-)
Rod Kemp
5-Nov-10 11:35am
View
You will probably find it is device specific, or is an OS setting, and has a hook into the hardware which would disable one or more parts of the radio hardware that is not available to programmers as it is a phone wide setting.
Rod Kemp
5-Nov-10 11:00am
View
Your answer makes no sense, the question is showing CLIENT side code, think browser, your answer is using SERVER side response.
Rod Kemp
3-Nov-10 6:11am
View
Do a search for "two-way databinding" and the use of TemplateFields.
Rod Kemp
3-Nov-10 3:24am
View
What sort of grid are you using? If it is a GridView you can set BoundField columns and for the one that has the DateTime value assigned to it specify DataFormatString="{0:h:mm tt}" this will cause the column to only show the time and ignore the date portion.
Rod Kemp
3-Nov-10 3:17am
View
If you have a datetime field in a database you can't make the date portion null, the only way to store only the time is to store either the number of Ticks that make up the time portion as I outlined or store it as a string by calling ToString() on TimeOfDay instead of Ticks.
Rod Kemp
3-Nov-10 2:44am
View
You can't have the date portion as null, you can just ignore it.
Rod Kemp
3-Nov-10 2:40am
View
This will error, using DateTime.Parse without a date portion will result in a FormatException error what should be used is DateTime.ParseExact with the time format specified.
Rod Kemp
28-Oct-10 20:37pm
View
If going down the road of a windows service doesn't work have a look at http://msdn.microsoft.com/en-us/library/system.web.ui.pageasynctask.aspx
Rod Kemp
28-Oct-10 20:36pm
View
In the case of a shared server it is up to the people that manage the server so you would need to talk to them.
As for what is required have a look at BugTracker.Net http://sourceforge.net/projects/btnet/ the service this has receives email but you can change that to send email instead. The installation requirements are under in the documentation under "Receiving email using btnet_service.exe" http://www.ifdefined.com/doc_bug_tracker_pop3.html also look at the code in the btnet_service.cs file.
Rod Kemp
28-Oct-10 8:21am
View
Post what you have tried and someone may help from there.
Rod Kemp
28-Oct-10 8:06am
View
This is really bad form, for example I have a 24" monitor and there is nothing more annoying than opening a web site to find some programmer has decided that is must be opened full screen even though it only takes up maybe half the width of my monitor. Design your site for a minimum width but allow the user do decide on if the browser needs resizing.
Rod Kemp
27-Oct-10 7:33am
View
This is just a bad idea, you would be deleting order items also are the primary keys to the order items tables used anywhere and so on.
Normal solution for this sort of thing is to set a "deleted" flag.
Rod Kemp
26-Oct-10 2:52am
View
No, currentFileName has the name of the file that the scanning is currently up to, what you have done is overwrite that value.
What you need to do is loop through the entries in you virus list text file and compare each one to the value that is in currentFileName then if it finds a match do something with the file.
Rod Kemp
25-Oct-10 23:30pm
View
In the RepeatFiles method is where you need to check the files that it is scanning through against your text file.
Really any where after "currentPath.Text = fl.FullName", so long as it stays in the IF block, is where you would check the file name against your text file, if you use "fl.Name" you will get just the name of the file without the path.
Rod Kemp
25-Oct-10 20:34pm
View
The only way that error could occur is if the "MouseEventArgs e" parameter of the function is changed to simply "EventArgs e".
Rod Kemp
25-Oct-10 18:09pm
View
What is the error it gives as this code works without any errors for me?
Rod Kemp
25-Oct-10 7:45am
View
Removing the ContentType has no effect because browsers can display jpg files internally so the first thing a browser sees is a jpg file header and the assumption is made that all data that follows is image data, if you were trying to push a zip or a pdf file out with BinaryWrite and no ContentType you would normally see something very different.
Rod Kemp
25-Oct-10 7:24am
View
To Richard: Have done.
To Tarun: Yep it sure is, I just changed it a little to work in a WinForm app with some additional changes to suit my preferences and to skip directories that a user doesn't have access to.
Rod Kemp
25-Oct-10 6:28am
View
Actually it's my adaptation of the original authors code http://www.codeproject.com/Questions/121074/Calling-a-module-assigning-a-valid-path.aspx
I put that comment in so he would know where to put the path he wanted to check, which obviously didn't work.
Rod Kemp
23-Oct-10 11:01am
View
Ah, that makes sense. I think I have spent WAY to long concentrating on the .Net framework I forget some of the other things I once did, like some ASM code I looked at the other day, I wrote it about 8 years ago but was having a hard time remembering the what/why/how.
Rod Kemp
23-Oct-10 10:23am
View
Wow, most places would stop at making sure it worked with the framework service packs but to go to the extent of checking against VS service packs...
Rod Kemp
23-Oct-10 10:11am
View
Are you asking people to guess, because without some code to show what you are doing regarding receiving of data, and possibly sending of data, that is about all that you will get.
Rod Kemp
23-Oct-10 10:06am
View
Nish, not to nit pick but VS 2008 SP1 is just service pack 1 for VS2008 there is no side by side installation here. :)
SQL 2005 and SQL 2008 would be a problem with no side by side installation allowed.
I do agree to install SQL 2005 first though.
Rod Kemp
23-Oct-10 9:49am
View
Deleted
Reason for my vote of 3
Interesting exercise in T-SQL programming, but if your waiting until this point to check the validity of a CC number then it is really a bit late IMHO it should have been checked much earlier in your program code.
Rod Kemp
23-Oct-10 9:28am
View
Do not ask for people to convert code from one language to another, the people on this site help out, out of their own free time and to just post a block of code with a "convert this" is just plain rude.
Rod Kemp
23-Oct-10 9:19am
View
What exactly is the problem. List any error messages you may be receiving.
Show More