16,004,505 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 .NET 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 Pete O'Hanlon (Top 200 by date)
Pete O'Hanlon
20hrs ago
View
Richard's a clever chap. I'd use his approach too.
Pete O'Hanlon
13-Sep-24 6:59am
View
If I could offer more than a 5, I would.
Pete O'Hanlon
7-Sep-24 10:30am
View
Deleted
I tested this against mysql 8 and it works fine. What version are you using?
Pete O'Hanlon
6-Sep-24 16:17pm
View
What version of MySQL are you using? I just tried a variant in MySQL 8 and it works fine.
Pete O'Hanlon
6-Sep-24 10:59am
View
I'm glad I can help.
Pete O'Hanlon
6-Sep-24 10:10am
View
Overriding operators has to be done inside the class.
Pete O'Hanlon
6-Sep-24 8:34am
View
First of all, it should be public class Person : IEquatable<person>. You're equating one person to another not a list of people. To override the == operator, just use something like this:
public static bool operator ==(Person lhs, Person rhs)
{
if (lhs is null)
{
if (rhs is null)
{
return true;
}
return false;
}
return lhs.Equals(rhs);
}
Pete O'Hanlon
4-Sep-24 7:08am
View
When you step through your code, which line breaks?
Pete O'Hanlon
4-Sep-24 7:07am
View
:D
Pete O'Hanlon
4-Sep-24 3:14am
View
Colour me surprised.
Pete O'Hanlon
29-Aug-24 3:18am
View
As Griff has said, the bugs/suggestions forum is the place to ask. On a separate note, you should never post your email addresses onto a public forum. That is just asking spammers to target you. I have updated your question, and changed the tag from C++ to CodeProject.
Pete O'Hanlon
27-Aug-24 4:40am
View
An alternate approach would be to play around with console.trace (there's also an Error.trace option if that doesn't work for you), which produces the stack trace. As long as you aren't mangling calls using something like webpack, you should be okay here.
Pete O'Hanlon
23-Aug-24 15:11pm
View
Congratulations.
Pete O'Hanlon
23-Aug-24 3:07am
View
Post your base images (without the text) on a picture sharing site and put the image link in your code pen. Unfortunately, I'm not looking for work.
Pete O'Hanlon
21-Aug-24 10:02am
View
Note: If you want to see what you've got installed as 32 bit, on a 64 bit machine, you can shell over to the 32 bit powershell using Start-Process -FilePath "$env:SystemRoot\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" and then rerun the command above.
I really like Powershell.
Pete O'Hanlon
21-Aug-24 9:47am
View
It's the version of the OS you are running on. So, if you run powershell on a 64 bit machine, and run that command, it's telling you what's installed for that architecture.
Pete O'Hanlon
21-Aug-24 8:35am
View
So, to be clear, you have a 64 bit machine, with the application compiled for 64 bit, and you have installed the 64 bit driver. One way to test this is to run this command in PowerShell:
(New-Object system.data.oledb.oledbenumerator).GetElements() | select SOURCES_NAME, SOURCES_DESCRIPTION
On my current machine, this gives me the following:
SOURCES_NAME SOURCES_DESCRIPTION
------------ -------------------
SQLOLEDB Microsoft OLE DB Provider for SQL Server
MSDataShape MSDataShape
Microsoft.ACE.OLEDB.12.0 Microsoft Office 12.0 Access Database Engine OLE DB Provider
Microsoft.ACE.OLEDB.16.0 Microsoft Office 16.0 Access Database Engine OLE DB Provider
ADsDSOObject OLE DB Provider for Microsoft Directory Services
Windows Search Data Source Microsoft OLE DB Provider for Search
MSDASQL Microsoft OLE DB Provider for ODBC Drivers
MSDASQL Enumerator Microsoft OLE DB Enumerator for ODBC Drivers
SQLOLEDB Enumerator Microsoft OLE DB Enumerator for SQL Server
MSDAOSP Microsoft OLE DB Simple Provider
From that, I can see the 64 bit driver is installed. What do you get when you run this check?
Pete O'Hanlon
21-Aug-24 7:32am
View
If your ListView is in your main form, then yes. And don't worry about your English, it was good enough to get the question across.
Pete O'Hanlon
21-Aug-24 3:24am
View
For a start, update your code sample so that it actually displays the images. You can't use local file paths because we can't see the images. When you have done that (i.e. showed the images on the online example), come back and let me know. I'll take a look then.
Pete O'Hanlon
16-Aug-24 3:51am
View
I was just typing up an answer where I questioned the installed Chrome dev tools part, then I noticed your comment. My answer is now removed because this comment summarises things perfectly.
Pete O'Hanlon
15-Aug-24 0:47am
View
I like this solution. Definitely worthy of a 5.
Pete O'Hanlon
14-Aug-24 5:25am
View
Excellent. I'm glad I could help.
Pete O'Hanlon
13-Aug-24 11:50am
View
It would help if you actually showed us what your tables look like, as well as what the data is. This post requires us to make a lot of assumptions, which you could easily resolve by providing more detail, especially as the total_count appears to be a count category entries rolled up to the top level. That really looks like you are mixing concerns there - getting the query to retrieve data in a format that looks tabular with summary information.
Pete O'Hanlon
12-Aug-24 3:58am
View
What you haven't addressed is how the connection is being established. I could make assumptions that you are using HTTP calls, but you might have decided to adopt something like protobuf. That's going to have a lot of bearing on the techniques you are using to keep the connection alive in the first place.
Pete O'Hanlon
7-Aug-24 3:18am
View
My example was just to give you an idea of what you would need to play around with. As I said, I didn't have your source image so I wasn't going to be able to lay it out exactly for you. By playing around with the transform and the left margin, you should be able to achieve what you want. It might be something like this:
.about-us-text {
position: absolute;
top: 50%;
left: 750px;
transform: translate(0, 50%);
text-align: left;
padding: 20px;
width: 30%;
}
Pete O'Hanlon
5-Aug-24 2:44am
View
When you are trying something that is new to you, it is generally better to start off with small changes. What I would try, if I were you, would be just writing the string Hello World to the paragraph directly. Ignore reading the bytes for the moment. Just start small and make sure that the Pdf document generates with fixed text first.
Pete O'Hanlon
30-Jul-24 8:02am
View
While you have opened up a PdfDocument, and created a Document, you haven't added a Paragraph to the document - write your text into the paragraph, and then add the Paragraph object to the document. Have a look at an example like this: https://www.tutorialspoint.com/itext/itext_adding_paragraph.htm
Pete O'Hanlon
30-Jul-24 0:01am
View
Unfortunately, there isn't. The server controls what is available for download.
Pete O'Hanlon
29-Jul-24 8:06am
View
That's why I said it doesn't have to be accepted.
Pete O'Hanlon
29-Jul-24 5:19am
View
Personally speaking, I'm fine with you posting the solution as an answer. You don't have to accept it, the simple fact that you've posted it should be enough.
Pete O'Hanlon
29-Jul-24 3:14am
View
Thank you.
Pete O'Hanlon
27-Jul-24 11:12am
View
Oh crap. I hadn't realised that. Thanks for the heads up.
Pete O'Hanlon
22-Jul-24 8:50am
View
You need to add the id for this to match.
Pete O'Hanlon
18-Jul-24 13:52pm
View
You are most welcome.
Pete O'Hanlon
16-Jul-24 3:37am
View
I'm glad you got it solved. It's definitely an odd one.
Pete O'Hanlon
15-Jul-24 8:44am
View
You are most welcome. Good luck.
Pete O'Hanlon
14-Jul-24 15:17pm
View
You are still trying to turn this into a number. It's not, so don't treat it as such. Remove the call to Number.
Pete O'Hanlon
13-Jul-24 6:56am
View
I'm glad I could help.
Pete O'Hanlon
11-Jul-24 2:25am
View
The Github page I linked to has practical examples of using the NuGet implementation. Simply import the package, and follow the documentation to craft the result you need.
Pete O'Hanlon
10-Jul-24 3:33am
View
There's no automatic way to do the update. You're going to have to fix this manually and run regression tests to make sure that it's behaving the way you would expect.
Pete O'Hanlon
9-Jul-24 6:39am
View
But have you tried profiling the application? What is the hotspot? Ultimately, you are going to reach a point where you aren't going to make the code any faster, but you have to look at the profiling first.
Pete O'Hanlon
9-Jul-24 2:12am
View
Are you trying to maximize it as in pressing F11 (Full Screen) maximize, or does Chrome start minimized?
Pete O'Hanlon
8-Jul-24 11:56am
View
Reduce the initial batch size for batches to 100 and try that.
Pete O'Hanlon
8-Jul-24 6:12am
View
I found an example for you here. https://developers.google.com/codelabs/building-a-web-app-with-angular-and-firebase#10
Pete O'Hanlon
2-Jul-24 15:40pm
View
It sounds like you're trying to pass this work off as your own. What legitimate reason could you have for doing this?
Pete O'Hanlon
30-Jun-24 9:42am
View
My pleasure. It's easy to miss.
Pete O'Hanlon
29-Jun-24 16:20pm
View
Thymeleaf still needs code. Check this article for an example. https://www.baeldung.com/spring-security-thymeleaf
Pete O'Hanlon
26-Jun-24 13:12pm
View
Well, that's some gnarly voodoo right there. A 5 for adding something else to my arsenal.
Pete O'Hanlon
24-Jun-24 15:37pm
View
What is hacm? We can't supply answers without context.
Pete O'Hanlon
24-Jun-24 8:32am
View
Without knowing what the data underneath looks like, I can't really help there. Bear in mind that's a different question to the one that you actually asked.
Pete O'Hanlon
22-Jun-24 14:26pm
View
Very nice. I'll load this into my repertoire now.
Pete O'Hanlon
18-Jun-24 3:44am
View
Break it down and try to solve one problem at a time. Concentrate on the first case, where a word changes by a single character. Try the example there first, and when you have fixed that, try another word; where a different letter changes (e.g. LEGO to LOGO). Take out the code that you think doesn't have any relevance to this, which will make your life easier. As you step over the code, look at the values of the variables to see if they match what you would expect them to.
Pete O'Hanlon
18-Jun-24 3:40am
View
Sounds like you want to also implement a VARIANT type of entity. https://learn.microsoft.com/en-us/windows/win32/winauto/variant-structure
Pete O'Hanlon
12-Jun-24 6:38am
View
My pleasure. I look forward to the article.
Pete O'Hanlon
11-Jun-24 3:48am
View
Excellent advice, and a timely warning that NuGet isn't always a clean playground.
Pete O'Hanlon
10-Jun-24 14:04pm
View
You are most welcome.
Pete O'Hanlon
10-Jun-24 10:42am
View
Thanks.
Pete O'Hanlon
10-Jun-24 9:26am
View
I noticed something about your controller - I have updated the answer to query why you aren't using SqlParameters in your call.
Pete O'Hanlon
10-Jun-24 8:30am
View
I've just gone back to another project I was working on. Username is correct if you're using EntityFramework; but it appears that you're trying to use EntityFramework and direct access here. If you are, why are you mixing these together? Here's an example of a context class that I use with an EF project:
using Microsoft.EntityFrameworkCore;
using Qip.Models;
namespace Qip.Server.EntityFramework;
public class QipContext(IConfiguration configuration) : DbContext
{
private readonly string connectionString =
configuration.GetConnectionString("Qip") ?? throw new ArgumentException("Connection String");
///
/// The release labels.
///
public DbSet<releaselabel>? Labels { get; set; }
public DbSet<project>? Projects { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseNpgsql(connectionString)
.UseSnakeCaseNamingConvention();
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
OnModelCreating<releaselabel>(modelBuilder);
OnModelCreating<project>(modelBuilder);
modelBuilder.Entity<releaselabel>().HasIndex(p => p.Label);
modelBuilder.UseIdentityByDefaultColumns();
}
private void OnModelCreating<t>(ModelBuilder modelBuilder) where T : ModelBase
{
modelBuilder.Entity<t>().Property(p => p.Id).ValueGeneratedOnAdd();
}
}
Using it (in a minimal API controller) is as simple as this:
labelsVersion1Api.MapPost("/label/{label}", async (QipContext context, string label) =>
{
ReleaseLabel releaseLabel = new ReleaseLabel { Label = label };
context.Labels!.Add(releaseLabel);
await context.SaveChangesAsync();
return TypedResults.Created("/labels", releaseLabel);
}).WithName("PostLabel").WithOpenApi();
Pete O'Hanlon
9-Jun-24 5:41am
View
Your error handling is attempting to check the result of closing the connection, not executing the insert.
Pete O'Hanlon
9-Jun-24 4:33am
View
You get error code 1062 back. Check the error immediately after you make the insert statement and you should be good to go. You need something like
if (mysqli_error() == 1062){ tell the user there was a duplicate }
Note, you should use define a constant rather than use the magic number of 1062.
Pete O'Hanlon
8-Jun-24 11:26am
View
If you're thinking of issues around metro and symlinks, this article show you what you need to do to resolve it https://runreactnative.dev/posts/pnpm-react-native
Pete O'Hanlon
7-Jun-24 8:18am
View
You answered me as I was adding - I really wouldn't be recommending COM; I would rather use something like Protobuf.
Pete O'Hanlon
7-Jun-24 3:23am
View
I must admit, I didn't even think of that. As always, you're correct, this could be a useful article.
Pete O'Hanlon
6-Jun-24 6:53am
View
I guess he wasn't :)
Pete O'Hanlon
6-Jun-24 6:35am
View
He already asked this question earlier this week.https://www.codeproject.com/Questions/5383289/Can-someone-suggest-me-some-nodejs-packages-or-wor
Pete O'Hanlon
6-Jun-24 6:35am
View
You already asked this question at https://www.codeproject.com/Questions/5383289/Can-someone-suggest-me-some-nodejs-packages-or-wor. Please don't open new questions when you have one already open.
Pete O'Hanlon
2-Jun-24 9:36am
View
Honestly, the admittedly sucking location you currently have, there's not a lot more you can do. You could combine the location with the genus to pick possible matches, but that's as close as you are likely to get.
Pete O'Hanlon
2-Jun-24 6:38am
View
I don't think you can solve this problem. Suppose my neighbour and I both have alpine herbs, and we grow them on opposite sides of a fence. How could you tell which was mine, and which my neighbours? Even image recognition isn't going to help you.
The best you could do is probably going to be a report image option, and that's assuming you have people ready to deal with the deduplication remediation effort.
Pete O'Hanlon
1-Jun-24 5:43am
View
Why have you hunted out a 9 year old question to answer?
Pete O'Hanlon
1-Jun-24 5:08am
View
Looking at the documentation, this is for portable devices only. Everything you need is under here. https://learn.microsoft.com/en-us/windows/win32/api/mswmdm/nn-mswmdm-iwmdmdevice
Pete O'Hanlon
1-Jun-24 3:55am
View
What error do you get back? Without knowing this, we can't really help.
Pete O'Hanlon
30-May-24 8:07am
View
My pleasure Mike.
Pete O'Hanlon
28-May-24 15:01pm
View
You are most welcome.
Pete O'Hanlon
27-May-24 14:11pm
View
Have you attached a debugger and attempted to run it yet? Have you read the full text of the error message to see if it gives you hints?
Pete O'Hanlon
23-May-24 9:22am
View
Dammit. I normally check. Thanks Richard.
Pete O'Hanlon
23-May-24 6:15am
View
You're welcome. I'm glad it's working for you now.
Pete O'Hanlon
21-May-24 16:37pm
View
What error did you get?
Pete O'Hanlon
21-May-24 2:02am
View
You are most welcome.
Pete O'Hanlon
17-May-24 2:52am
View
The Github repository that this code comes from has documented this code. https://github.com/Jazea/Onvif.Core
Pete O'Hanlon
16-May-24 12:18pm
View
Well spotted. This is what happens when you code in the Codeproject editor rather than an IDE.
Pete O'Hanlon
16-May-24 11:12am
View
You put a function call inside your main function. Move the function before main, and then call it from inside your main function.
Pete O'Hanlon
16-May-24 10:01am
View
So, what you are really asking for is:
Header: string
Body: Multiple lines.
Footer: number
Is that correct?
Pete O'Hanlon
15-May-24 5:21am
View
It wouldn't surprise me.
Pete O'Hanlon
14-May-24 15:34pm
View
You are, of course, correct. This is what happens when you answer a question from memory.
Pete O'Hanlon
14-May-24 8:24am
View
My apologies, the reason you aren't able to handle this here is because you are listening for the wrong thing. What you need to do is add an event handler for the offline event on the window.
Pete O'Hanlon
14-May-24 3:58am
View
I'm not a Visual Basic developer so this might not be 100% correct, but you should be able to get the idea.
Public Function FindAncestorByType(Of T As {DependencyObject, New})( _
ByVal dependencyObject As DependencyObject) As T
Dim parent As DependencyObject = VisualTreeHelper.GetParent(dependencyObject)
If parent Is Nothing Then
Return Nothing
End If
Dim convertedParent As T = TryCast(parent, T)
If convertedParent Is Nothing Then
Return FindAncestorByType(Of T)(parent)
End If
Return convertedParent
End Function
Public Function FindDescendantByType(Of T As {DependencyObject, New})( _
ByVal dependencyObject As DependencyObject) As T
Dim child As DependencyObject = VisualTreeHelper.GetChild(dependencyObject)
If child Is Nothing Then
Return Nothing
End If
Dim convertedChild As T = TryCast(child, T)
If convertedChild Is Nothing Then
Return FindDescendantByType(Of T)(child)
End If
Return convertedChild
End Function
Using these calls, you can find the first instance of a particular type using the relevant call. So, if you wanted to find the DataGridCell from a child, you would call GetAncestorByType. To find the Rectangle, from an element higher in the visual tree you would call GetDescendantByType.
Pete O'Hanlon
14-May-24 3:05am
View
It's not just the cell that sits in the visual tree, it's the rectangle as well. So, once you have the cell, you have to use the visual tree to find the rectangle. Something to remember - your hunt for elements may need to be recursive.
Pete O'Hanlon
12-May-24 5:50am
View
Your image isn't set to share, so we can't see it.
Pete O'Hanlon
10-May-24 6:13am
View
Good luck with that. It's always good to bounce ideas off others.
Pete O'Hanlon
10-May-24 6:12am
View
Thank you so much young sir.
Pete O'Hanlon
10-May-24 5:54am
View
Oh snap.
Pete O'Hanlon
10-May-24 2:57am
View
I'm glad you got this working. Nicely done Anthony.
Pete O'Hanlon
9-May-24 9:10am
View
This question was answered two years ago. Why did you feel the need to post this?
Pete O'Hanlon
9-May-24 3:30am
View
Good luck.
Pete O'Hanlon
8-May-24 16:11pm
View
I thank you kind sir.
Pete O'Hanlon
8-May-24 7:14am
View
That's excellent news. I'm glad it's working for you now.
Pete O'Hanlon
8-May-24 0:22am
View
You are disposing your memory stream before you leave the converter method. Unsurprisingly, this disposes the image information. Just after you call EndInit();, call Freeze(); on your image to freeze the underlying image. This makes your image immutable.
Pete O'Hanlon
7-May-24 11:23am
View
Damn it Griff, your sarcasm was much better than my answer. A 5 from me.
Pete O'Hanlon
6-May-24 11:47am
View
If it's a Nissan, they probably call it something like Sea Mist.
Pete O'Hanlon
3-May-24 9:01am
View
My pleasure. I take it that's sorted for you now.
Pete O'Hanlon
3-May-24 9:00am
View
We aren't going to write code for you. If you want code, pay someone to do it for you. You haven't actually addressed the questions I posed and that is going to lead you to an incorrect solution.
Pete O'Hanlon
3-May-24 8:23am
View
Thanks Richard. I was playing around with combinations of VLOOKUP and SUMIF's then realised this could be done with a lot less difficulty.
Pete O'Hanlon
3-May-24 1:02am
View
Congratulations. I'm pleased that you managed to get it working.
Pete O'Hanlon
2-May-24 1:29am
View
I have already told you that you need to use the index of the cell and the row index. You should be able to do this for yourself now.
Pete O'Hanlon
1-May-24 14:38pm
View
Print this out and frame it. We can close the Internet now for we have reached peak perfection with your reply.
Pete O'Hanlon
1-May-24 11:18am
View
That's happening because you are using the id field in your calculation of the cell and startBook_C for the row. You need to correct your logic to use the index of the cell, and the index of the row. You should be able to work this out for yourself - attaching the debugger and stepping through this logic would have told you that.
Pete O'Hanlon
1-May-24 10:55am
View
So, you corrected the error that you were seeing before and the code compiles and runs. I know you have shared a picture but that doesn't tell me what error you are seeing now.
Pete O'Hanlon
1-May-24 3:15am
View
That got my 5.
Pete O'Hanlon
30-Apr-24 1:40am
View
Again, use the network tab to check what you are passing over. The error is telling you that you didn't supply idunidad, so check to see what you actually did pass across.
Pete O'Hanlon
29-Apr-24 2:39am
View
The error tells you, right at the top, what is wrong. It is expecting a parameter called unitid (idunidad) to be supplied, and this is missing. The server side has an expectation that a none-null value will be passed in here. If you correct this, you might get the results you are expecting. I say might because you may have missed out other parameters.
Pete O'Hanlon
25-Apr-24 12:15pm
View
If you have a Selected property on each row of your grid, when new ones scroll into view (as long as you are still drawing your rectangle), don't set the Selected property to false. That's the easiest part of the whole thing.
Pete O'Hanlon
24-Apr-24 5:08am
View
It's a little bit unclear what you are asking for here. In your example, are Clear and Left methods that can be called? Are they classes? Please give us more context as to what it is that you are trying to accomplish.
Pete O'Hanlon
24-Apr-24 3:08am
View
In the same spirit of generosity of vote as you have shown to others, this deserves a 5.
Pete O'Hanlon
24-Apr-24 2:34am
View
Given that the poster has shown that they are already using iTextSharp, your answer contributes nothing.
Pete O'Hanlon
22-Apr-24 7:16am
View
I'm glad you got it working. Congratulations.
Pete O'Hanlon
22-Apr-24 6:21am
View
Yes. I just simplified the filtering for ease of example.
Pete O'Hanlon
22-Apr-24 6:20am
View
And the source: https://stackblitz.com/edit/primeng-card-demo-p7xb2r?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts
Pete O'Hanlon
22-Apr-24 6:20am
View
https://primeng-card-demo-p7xb2r.stackblitz.io/
Pete O'Hanlon
22-Apr-24 6:12am
View
I have forked your repo and corrected it. You can find the details in my answer.
Pete O'Hanlon
22-Apr-24 4:26am
View
I got that, but the code sample you have in Stackblitz doesn't work so we can't correct it for you.
Pete O'Hanlon
21-Apr-24 13:36pm
View
You set it to false in your code. It needs to be true.
Pete O'Hanlon
18-Apr-24 10:48am
View
So numpy has deprecated this. It's possible that will still work, just add the following:
import warnings
warnings.filterwarnings("ignore", category=np.VisibleDeprecationWarning)
Pete O'Hanlon
18-Apr-24 10:08am
View
It looks like you're expecting to use OData here, but the URL you are hitting looks like a plain URL with no filtering available. You need to check the documentation to see what endpoint you should be hitting and what parameters you need to pass to support filtering. We can't help you with that - only the documentation is going to do that for you.
Pete O'Hanlon
16-Apr-24 5:08am
View
Glad you got it working.
Pete O'Hanlon
16-Apr-24 5:06am
View
That's true - I didn't take as much care copying as I should. I'll correct this.
Pete O'Hanlon
15-Apr-24 16:35pm
View
You’re welcome
Pete O'Hanlon
15-Apr-24 9:27am
View
You can store a class in there, so you could put whatever information you need in that.
Pete O'Hanlon
15-Apr-24 5:19am
View
My 5 for your more elegant solution.
Pete O'Hanlon
14-Apr-24 6:11am
View
This is an environment variable. If you are using docker, it should go in as an entry in your docker-compose yaml file.
Pete O'Hanlon
13-Apr-24 2:55am
View
What error do you get?
Pete O'Hanlon
12-Apr-24 9:33am
View
If an answer is going to be marked as the accepted answer, it should be this one.
Pete O'Hanlon
12-Apr-24 9:32am
View
I know it's only a measly 5 from me, but I wish I could award this 50 on style points alone. Very elegant.
Pete O'Hanlon
12-Apr-24 8:26am
View
This is true and it's such a great reply, you should add it to the question so I can award it as many points as possible and recommend it as the accepted answer.
Pete O'Hanlon
11-Apr-24 2:06am
View
Thank you Maciej.
Pete O'Hanlon
10-Apr-24 4:34am
View
I really wish I could upvote a comment.
Pete O'Hanlon
9-Apr-24 11:26am
View
A simple thing to do is write a class to manage the brush like this:
#include <windows.h>
class BrushHandle {
public:
BrushHandle(HBRUSH brush = nullptr) : brush_(brush) {}
~BrushHandle() {
if (brush_) {
DeleteObject(brush_);
}
}
operator HBRUSH() const {
return brush_;
}
private:
HBRUSH brush_;
};
Then, you can use the brush like this to create the brush:
BrushHandle brush(CreateSolidBrush(RGB(240, 240, 240)));
Pete O'Hanlon
9-Apr-24 11:17am
View
You fix it by correcting the code that triggers this exception. That's as much help as we can offer right now because you haven't given us any code. Think of it this way - we aren't sitting behind you and we haven't hacked into your hardware so we have no idea what the code is.
Pete O'Hanlon
9-Apr-24 11:00am
View
Okay, don't repeatedly create brushes. Store them as members instead and don't forget to destroy the object in the PostNcDestroy method.
Pete O'Hanlon
8-Apr-24 16:59pm
View
Thank you.
Pete O'Hanlon
8-Apr-24 9:15am
View
Have you tried the steps here? https://uk.godaddy.com/help/send-email-using-systemnetmail-in-windows-hosting-19291
Pete O'Hanlon
8-Apr-24 5:47am
View
What versions of Spring Boot and Tomcat are you running here?
Pete O'Hanlon
8-Apr-24 4:13am
View
Thanks.
Pete O'Hanlon
8-Apr-24 4:11am
View
I have updated the answer based on your new requirements.
Pete O'Hanlon
6-Apr-24 15:05pm
View
Unblocked again.
Pete O'Hanlon
6-Apr-24 14:01pm
View
I have unblocked your question on that forum.
Pete O'Hanlon
6-Apr-24 6:39am
View
It looks like you're replying to Griff here. Unfortunately, as you have posted this as an answer to your question, he won't be notified of your response.
Pete O'Hanlon
4-Apr-24 16:12pm
View
What am I missing here? I don't see any database updates in there.
Pete O'Hanlon
4-Apr-24 8:29am
View
I'm pleased you found it.
Pete O'Hanlon
3-Apr-24 5:58am
View
You have to explicitly enable server side rendering in React. It's a client-side framework by default. Angular is also client-side, and requires a connection to external services.
Pete O'Hanlon
2-Apr-24 3:22am
View
If you are replying to Andre, he won't be notified that you are doing so because you haven't actually replied to his answer. Don't add answers of your own if they are meant to be replies.
Pete O'Hanlon
2-Apr-24 2:35am
View
I'm glad to see that you sorted the problem. Just a small note - as you didn't reply to my messages, I didn't receive any notifications. If you want to reply to someone, click Reply on their message, don't post a new one that isn't connected.
Pete O'Hanlon
1-Apr-24 6:49am
View
When you download the file, what file name do you see?
Pete O'Hanlon
1-Apr-24 3:16am
View
If you have a question for Griff, post it as a reply to his answer. He will get an email informing him of your question.
Pete O'Hanlon
31-Mar-24 5:03am
View
You are most welcome.
Pete O'Hanlon
28-Mar-24 10:42am
View
This is a truly beautiful answer.
Pete O'Hanlon
27-Mar-24 11:32am
View
I have simplified the string. I was getting too cocky with the input and miscounted the ' characters.
Pete O'Hanlon
27-Mar-24 11:05am
View
That was my mistake - I copied your original code in and left the space in '\ '. I've just updated the answer. Also, if you post what you're actually getting back, that would help.
Pete O'Hanlon
27-Mar-24 3:06am
View
Thank you.
Pete O'Hanlon
26-Mar-24 12:24pm
View
My pleasure.
Pete O'Hanlon
26-Mar-24 12:22pm
View
The only way to do this would be to open the file, and transmit the individual parts of the file.
Pete O'Hanlon
26-Mar-24 12:15pm
View
That's correct.
Pete O'Hanlon
26-Mar-24 11:43am
View
I see that you're uploading the file to the server. The code to change the value would have to be in the handling code at the server.
Pete O'Hanlon
26-Mar-24 7:02am
View
Have you checked that the service is still set to auto-start on the server? Setting the start type to Automatic only applies during the registration of the service. This doesn't override someone else changing the value once it has been installed.
Pete O'Hanlon
26-Mar-24 5:13am
View
What you're probably going to be looking for is OpenIDConnect (OIDC). This sits on top of OAuth, and gives you access to authenticate and gather profile information. See https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2 for further information.
Pete O'Hanlon
26-Mar-24 3:58am
View
Do you get any response back when you issue the fetch, does it return bad data, or does it just hang? Right now, there's a lot going on in that code and you're asking us to guess which part doesn't work.
Pete O'Hanlon
22-Mar-24 4:48am
View
I like it. Have yourself a 5.
Pete O'Hanlon
22-Mar-24 3:23am
View
If you are asking a question, don't hijack an old answer, add a new question.
Pete O'Hanlon
22-Mar-24 3:08am
View
Thank you.
Pete O'Hanlon
20-Mar-24 7:14am
View
I'm not sure what optimisations have been put in place in CArray since I last used it. This approach was one I have used since the mid 90s, going backwards when removing items to avoid *clever* compiler tricks.
Pete O'Hanlon
19-Mar-24 9:32am
View
That's a given.
Pete O'Hanlon
19-Mar-24 9:20am
View
Sounds like something that should be on a range of bumper stickers. "Warnings are for wimps". "Exceptions are for a**holes".
Pete O'Hanlon
19-Mar-24 9:05am
View
You are most welcome. I am a big fan of ETL tools.
Pete O'Hanlon
19-Mar-24 8:50am
View
I'm glad you got it sorted.
Pete O'Hanlon
18-Mar-24 10:04am
View
Thanks Richard. I hadn't noticed that this was a resurrected question.
Pete O'Hanlon
17-Mar-24 14:00pm
View
Thank you.
Pete O'Hanlon
17-Mar-24 13:56pm
View
You should raise it from each property. The key to using this event is knowing that, if you raise the event with the property name as an argument then the binding engine knows the name of the property that changed. If you leave the property name as an empty string, the binding engine thinks all properties have changed.
Pete O'Hanlon
17-Mar-24 6:43am
View
5 from me.
Pete O'Hanlon
15-Mar-24 4:55am
View
Are these services deployed as separate Spring services or is it all in one service?
Pete O'Hanlon
15-Mar-24 2:15am
View
This is all part of the WiX v3 toolset which you can find
here
. The documentation listing the tooling is
here
.
Pete O'Hanlon
14-Mar-24 15:29pm
View
A 5 from me.
Pete O'Hanlon
14-Mar-24 7:14am
View
This has already been solved. Why are you adding to this now?
Pete O'Hanlon
12-Mar-24 14:51pm
View
Thank you so much.
Pete O'Hanlon
12-Mar-24 7:52am
View
I was just coming here to answer this very thing. I'll not bother now because this you answered this with a version of the answer I would have given. A 5 from me.
Pete O'Hanlon
12-Mar-24 7:50am
View
Thank you kind sir.
Pete O'Hanlon
12-Mar-24 7:44am
View
You should post a version of this as the answer so it is removed from the unanswered questions list and, more importantly, so that I can vote for your answer.
Pete O'Hanlon
11-Mar-24 14:43pm
View
My apologies. As I said, I was doing this from memory. The API I was thinking of was this one. https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-systemtimetotzspecificlocaltimeex
Pete O'Hanlon
11-Mar-24 6:58am
View
That's great. Thanks for letting me know.
Pete O'Hanlon
11-Mar-24 1:32am
View
You don't show the code that actually opens the file here. What does that code look like?
Pete O'Hanlon
11-Mar-24 0:18am
View
Have you followed the link yet? This is a cad library that gives support in WPF for Autocad display.
Pete O'Hanlon
8-Mar-24 7:00am
View
Deleted
Which icon are you trying to get? That's the info icon; is that the one you want?
Pete O'Hanlon
7-Mar-24 6:49am
View
Which version of Go are you using?
Pete O'Hanlon
7-Mar-24 6:37am
View
It was my absolute pleasure.
Pete O'Hanlon
7-Mar-24 3:11am
View
You can use Dog without registering it - I was just demonstrating that you didn't need to create an interface just to register a concrete type in the container.
Pete O'Hanlon
5-Mar-24 13:07pm
View
Succinct. I like it.
Pete O'Hanlon
5-Mar-24 2:46am
View
Your question doesn't make sense to me. If you want to zip it up, you could do this yourself. What are you really asking for here?
Pete O'Hanlon
4-Mar-24 14:09pm
View
You are most welcome.
Pete O'Hanlon
27-Feb-24 5:10am
View
The stack trace clearly shows the line that the error occurs in PageNavigationService. What is happening on line 808 and line 815?
Pete O'Hanlon
27-Feb-24 3:14am
View
What does "can't seem to get working" mean? Are you not getting data back? Is one field populating, but not the other? We can't see your screen so we need additional information if we are to help.
Pete O'Hanlon
24-Feb-24 17:06pm
View
Don’t use void on async methods, they hide exceptions. Use Task as the return type.
Show More