15,891,529 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 Christiaan van Bergen (Top 54 by date)
Christiaan van Bergen
30-Aug-18 9:17am
View
Be aware that the ValidateProperty method might do some modifications on values before the are transferred to _selectedModel. You are executing your code on the 'value', are you sure you want to do that? Is it not that you want to execute your code on '_selectedModel' ?
And actually your code will execute everytime the value of SelectedModel will be set and not be null. This is somewhat different than it calling your code whenever the property is changed.
And yes, you might be better off creating a new handler responding to the PropertyChanged event.
Christiaan van Bergen
2-May-18 11:17am
View
Changing propertynames? NAFAIK. But, maybe if you tell us a bit more about why you would like to have this ability, we can help you find a suitable way to do just that.
Christiaan van Bergen
10-Apr-18 5:25am
View
That sounds like a complete new question. Please ask a new one and supply the necessary code and error message.
Christiaan van Bergen
5-Apr-18 5:41am
View
How long would you like an allocation to last? In other words: if user X sees the first 4 rows, but doesn't process them, how long before another user can see them and be able to process them?
Christiaan van Bergen
5-Apr-18 4:25am
View
You need to keep track of who read and who processed what. Show us your attempt in the stored procedure. What approach did you try?
Christiaan van Bergen
5-Apr-18 1:28am
View
Check out this article: https://stackoverflow.com/questions/18654157/how-to-make-sql-query-result-to-xml-file
Christiaan van Bergen
4-Apr-18 19:15pm
View
Wow, you want us to do your homework? Please tag it with 'Homework'.
Christiaan van Bergen
4-Apr-18 18:57pm
View
Are the CheckBoxes identifiable by Name or Text like "document" or "picture"? You now have a connection only in your code between the magic string "document" and a CheckBox11. Making it hard to not use this kind of elaborate coding.
Christiaan van Bergen
4-Apr-18 18:53pm
View
Yep, I missed that ) one too :-(
Christiaan van Bergen
4-Apr-18 18:23pm
View
;-)
Christiaan van Bergen
4-Apr-18 18:13pm
View
Yeah, but your mysqld is only listening to localhost:3306 . Compare that to the entry of your apache webserver. That one is listening to all ip addresses on port 80.
Christiaan van Bergen
4-Apr-18 18:05pm
View
So everything works, but remote. Any other firewall or netfilter running on the pi? Check the running processes. Run a check on the open ports and programs:
$ netstat --tcp --listening --programs --numeric
Christiaan van Bergen
4-Apr-18 17:51pm
View
Have you used the "flush privileges;" for the changes to take effect?
Christiaan van Bergen
4-Apr-18 17:13pm
View
No, that's right. Because you need to do something with the actual message you're getting. Again, look at the example. It says: var msg = mq.Receive();
So do something with the message.
Christiaan van Bergen
4-Apr-18 16:34pm
View
You are not implementing the code I showed you. In your OnStart method use mq.Receive(), I also explained why you should use that method. Try it, if it still doesn't work, we'll take it from there.
Christiaan van Bergen
4-Apr-18 16:04pm
View
Please do not repost a question you asked earlier..(https://www.codeproject.com/Questions/1235440/Windows-service-receiving-MSMQ-message-only-first)
Christiaan van Bergen
4-Apr-18 15:53pm
View
Have a while-loop around it, otherwise it will still not continue listening after the message has been processed.
Christiaan van Bergen
4-Apr-18 15:32pm
View
Please, show us some markup code in your question.
Christiaan van Bergen
4-Apr-18 14:51pm
View
Sorry, I cannot advise you on which one to use. Look at the marketplace (https://elements.heroku.com/addons/#data-stores). Ask a new question here on CP, what a good (beginners) alternative would be. Good luck.
Christiaan van Bergen
4-Apr-18 2:50am
View
Can you show us the stack trace? It appears you are running code on application exit.
Christiaan van Bergen
3-Apr-18 18:29pm
View
I don't think it has to do with WriteAllText. You have a config.txt file with only 5 lines. But you are trying to read lines 7 and 8. Really, I think that's your issue with this code. It is the line: var trimmedCD = lines[6].TrimStart(trimConfigDirectory.ToCharArray());
Christiaan van Bergen
3-Apr-18 16:06pm
View
The error: "System.IndexOutOfRangeException: Index was outside the bounds of the array" lets me believe that that are not sufficient lines in your config.txt file. Because, without checking the amount of lines, you are trying to access the lines in the array. Could you check that, or maybe even share the contents of that config.txt file?
Christiaan van Bergen
3-Apr-18 15:28pm
View
Thx, for the tip!
Christiaan van Bergen
3-Apr-18 14:50pm
View
Can you explain what kind of encryption you are using? What is behind the method encrypt(plain, K)? Can you show us some code?
Christiaan van Bergen
3-Apr-18 14:36pm
View
Yes, it appears so, but I was confused by the '-' (minus characters) in the sample and the two commas in the last line. So, I thought the OP might mean columns per character. But hey, your example should help <<thumbsup>>
Christiaan van Bergen
3-Apr-18 14:28pm
View
Please remove this question, it is an exact duplicate of your other question.
Christiaan van Bergen
3-Apr-18 14:04pm
View
That is of course when the text file is space delimited . Maybe splitting this one per character?
Christiaan van Bergen
3-Apr-18 13:30pm
View
Try to make a connection with that address and port via another way. Maybe telnet?
Christiaan van Bergen
3-Apr-18 12:18pm
View
Right, this number checks out. It IS 10 digits. Make it nine digits and it will fail....of course. Could it be that you have some spaces around your input? Try a .Trim() statement on your input.
Christiaan van Bergen
3-Apr-18 12:09pm
View
Show me the number you want to check.
Christiaan van Bergen
3-Apr-18 11:59am
View
I cannot really tell why, but I can imagine that the gets a moment without data and therefor resets to a smaller size, making the scrollbar jump back. Maybe if you define the dimensions of that div, it will stay.
Christiaan van Bergen
3-Apr-18 8:48am
View
The enddate is +1 month to the startdate (making it in this case 01 march). Because of this the while loop will work. The first check inside the while-loop is to see if the day-number is an odd number. We do this by calculating the modulo of 2 (the remainder of an odd number is always '1'). If it is odd, we display the date as you requested it. Last thing we do in the while-loop is increasing the $startdate with +1 day.
You can read up on modulo here: http://php.net/manual/en/internals2.opcodes.mod.php
Christiaan van Bergen
3-Apr-18 7:58am
View
Put the function in your code file, and change this line:
$salad = array_iunique(array_merge($veggies ,$fruits));
It is now using 'array_iunique' instead of 'array_unique'.
Christiaan van Bergen
3-Apr-18 7:50am
View
I updated my answer.
Christiaan van Bergen
3-Apr-18 5:56am
View
You're welcome
Christiaan van Bergen
3-Apr-18 5:43am
View
Blunt way would be to show the affected rows in a MessageBox. Change all your ExecuteNonQuery() statements into something like: MsgBox("query1 rows: " + query1.ExecuteNonQuery())
Or put the result of the ExecuteNonQuery() in a variable and watch it while debugging.
Christiaan van Bergen
3-Apr-18 5:15am
View
So no exceptions are thrown? Okay, you are working with update statements, if no records are updated, then there was nothing to update. Use the result from the query.ExecuteNonQuery() to determine how many rows were updated.
Christiaan van Bergen
3-Apr-18 4:25am
View
This could be because you have missed some Environment Variables. Could you please check your %ANDROID_HOME% variable and which Android paths you've got in your PATH setting?
Christiaan van Bergen
2-Apr-18 10:20am
View
Thx for the heads up, this is the trouble with writing code in textboxes and not in anything where you can check it. I just updated the answer and added a link to codepad.org where you can run the code.
Christiaan van Bergen
2-Apr-18 8:48am
View
Dude, really? http://lmgtfy.com/?q=count(1)+and+count(*)
Christiaan van Bergen
2-Apr-18 8:44am
View
There you go, I changed my answer. (Also I took the liberty to suggest another function name, you are no longer looking for a Value)
Christiaan van Bergen
2-Apr-18 8:35am
View
So I see that you changed the function call as well. So you want to remove all key-value elements with the key "first_name"? Regardless of the actual value?
Christiaan van Bergen
2-Apr-18 8:32am
View
What? Then why do you state your question as : "i want to delete the id from the all sub-array." ? This makes no sense.
Please improve your question!
Christiaan van Bergen
2-Apr-18 3:57am
View
Why is the Bootstrap Tooltip not working for you? Is it because of styling? Or is it because....?
Please elaborate on that. Specify what kind of tooltip you need.
Christiaan van Bergen
1-Apr-18 6:28am
View
Could you please tell us what exactly is not working? Please use the 'improve question' to add maybe some errors/exceptions you are getting.
Christiaan van Bergen
1-Apr-18 6:11am
View
Does any php file work on your apache server? If you haven't tried it yet, create a new file and enter some fool proof code into it (https://www.w3schools.com/php/showphp.asp?filename=demo_syntax) and see if that works. If not, check your apache setup.
Christiaan van Bergen
1-Apr-18 6:02am
View
See this answer : https://www.codeproject.com/Answers/1237416/How-to-display-user-entered-textbox-value-into-tex#answer1
Christiaan van Bergen
1-Apr-18 5:41am
View
Deleted
Okay, so you're giving me a php error while you're asking a question about javascript.
If it all works, as you say, when you remove the single quotes....then the solution must be: remove the single quotes :-|
But....the error states the solution, doesn't it. It says that 'mysqli_error()' expects a parameter. So maybe you should let Line 15 read something like:
mysqli_query($con,$ins_query) or die(mysqli_error($con));
Christiaan van Bergen
1-Apr-18 5:25am
View
You are talking about an error, tell us what error.
But I think it could originate from this piece of code: (form.id.value.length ? form.id.value : "not specified")
form.id.value.length itself is not a boolean.
You probably meant: form.id.value.length>0
Christiaan van Bergen
1-Apr-18 5:17am
View
You are talking about an error, tell us what error.
But I think it could originate from this piece of code: (form.id.value.length ? form.id.value : "not specified")
form.id.value.length itself is not a boolean.
You probably meant: form.id.value.length>0
Christiaan van Bergen
30-Mar-18 16:21pm
View
I think @Eric is right. The line :
images.Images.Add(row["picture"].ToString(), new Bitmap(image_stream));
will add the images in the collection with the same key, therefor only one ListItem will match with an image and display it.
It's quite unfortunate that the ImageList.ImageCollection.Add method does not throw a DuplicateKeyException, otherwise you would have found this one sooner.
Christiaan van Bergen
29-Mar-18 5:43am
View
Dude, how about some code formatting? Makes it that much more readable ;-)
Christiaan van Bergen
29-Mar-18 4:59am
View
You mean you want to iterate over some data rows to create a table in your PDF?
Could you expand your question with a sample/mockup of the desired output?
Christiaan van Bergen
22-Mar-17 8:57am
View
Hi, maybe replication can work for your scenario. Have a look at https://www.codeproject.com/articles/28951/sql-server-merge-replication-step-by-step-pro
Show More