15,896,726 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 LiQuick (Top 9 by date)
LiQuick
13-Jan-22 19:04pm
View
When i do "var adapters = await WiFiAdapter.FindAllAdaptersAsync();" multiple times I get the following error: "An attempt was made to establish a session to a network server, but there are already too many sessions established to that server. (Exception from HRESULT: 0x800704C4)". Any idea how i can avoid this error? I need to scan multiple times (making a wifi heatmapper application).
LiQuick
19-Feb-19 4:04am
View
PS. Today at work (yesterday I was at home) a part of the data that was different between direct request and proxy request are the same. This makes me more stressed.
LiQuick
19-Feb-19 3:24am
View
Hi Derek,
Thx for your suggestions. When I visit my proxy, Chrome wil send the below (I have removed a few to be brief) headers. So yes the browser will send multiple possible content types it can handle.
Request Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Request Accept-Encoding : gzip, deflate, br
Request Accept-Language : nl-NL,nl;q=0.9,en;q=0.8,en-US;q=0.7
Request User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
I have copied these headers into the HttpRequestMessage so it will mimic the browser request:
System.Net.Http.HttpRequestMessage
Version : 1.1
Content : NULL
Method : GET
RequestUri : https://services.odata.org/V4/Northwind/Northwind.svc/Customers
Headers : Connection: Keep-Alive
Accept: text/html, application/xhtml+xml, application/xml; q=0.9, image/webp, image/apng, */*; q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: nl-NL, nl; q=0.9, en; q=0.8, en-US; q=0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Upgrade-Insecure-Requests: 1
So in my point of view their should be no difference between a direct request to the OData service and through my HttpClient. I'll try to sniff out, as you recommended the difference between my proxy and the webbrowser.
Thx
LiQuick
10-Sep-15 18:02pm
View
I have "solved" the problem, I forgot to Transform the startpoint of the figure and only transformed the segments. I have put the full transform code above in the question. Many many thx for your help Dan. Hope I'll be able to return the favor in the future.
LiQuick
10-Sep-15 3:02am
View
Dear Dan,
Thanks for your code I have learned a lot of new things from your code (yield, using extension with the 'this' keyword in the method arguments) I wished you were seated next to me I could learn so much from you!
I have tried to implement your code and I have booked some success but I'm still working on one problem with PolyBezierSegments as you can see in the below screenshots:
https://www.dropbox.com/s/6ocb17cg3pr5r2m/WPFTransform-1.png?dl=0
https://www.dropbox.com/s/b4r5go6s0fd9enz/WPFTransform-2.png?dl=0
Best regards,
Rémy
PS. Avatar is a test program I've build to make a vector drawing program.... Yes your sublime code is used in a simple drawing program.
LiQuick
31-Aug-15 14:31pm
View
Wow many thanks for your time and effort in answering my question Dan! I'll try to figure out your code as soon as possible.
LiQuick
31-Aug-15 2:59am
View
Can you elaborate on this? How can I "transform the path points as you read them using the Transform method of the Transform"?
LiQuick
30-Aug-15 5:14am
View
The GeometryDrawing doesn't have a Transform definition (Edit: have found that the Geometry does have a transform!). What I want to do is translate, scale, rotate, etc. and be able to read the new pathpoints. So if I have a rectangle with points 0,0 50,0 50,50 0,50 and I rescale it with a 200% scale transform that the geometrydrawing has points 0,0 100,0 100,100, 0,100 (not only visually but also really has those points).
Edit: Furthermore how can I make this transform effective? I can have only one transform on the Geometry, can I apply the transform so I can "add" a new transform to it. Example of above rectangle when I put an transform on it of 200% (2) I get the right size but adding another scale transform I lose the first one and it only takes the last transform.
LiQuick
9-May-14 3:04am
View
No. I should get for example 10 different entries but I get 10 (correct amount of entries) entries but all entries are a duplicate of the last entry. When I access the oData service with Chrome I get the correct results.
Show More