Network Programming in .NET
748 FOLLOWERS
A blog about Visual Basic.NET.
Network Programming in .NET
1w ago
If, like me, you have an old Lambda function running Python 3.8, you may have got this email from AWS today;
We are contacting you as we have identified that your AWS Account currently has one or more AWS Lambda functions using the Python 3.8 runtime.
We are ending support for Python 3.8 in Lambda on October 14, 2024. This follows Python 3.8 End-Of-Life (EOL) which is scheduled for October, 2024 [1].
As described in the Lambda runtime support policy [2], end of support for language runtimes in Lambda happens in several stages. Starting on October 14, 2024, Lambda will no longer apply secur ..read more
Network Programming in .NET
1M ago
Introducing KennzeichenAPI:
Your Ultimate Swiss License Plate Lookup Tool
Whether you’re a curious car enthusiast, an insurance agent, or law enforcement personnel, having access to accurate and comprehensive vehicle information can be invaluable. Enter KennzeichenAPI, a groundbreaking new tool that brings clarity to the world of Swiss car registration plates.
Understanding Swiss License Plates
Switzerland boasts a unique system for car registration plates, each carrying a wealth of information about the vehicle it belongs to. From the make and model to technical specifications and even repre ..read more
Network Programming in .NET
2M ago
Unveiling the Oman Car Registration API: Unlocking Vehicle Details with a License Plate
Discovering the Secrets Behind Oman’s Vehicle Market
Oman, a country known for its rich cultural heritage and breathtaking landscapes, is also home to a diverse and vibrant automobile market. With a growing economy and an increasing number of vehicles on the roads, there arises a need for a reliable and efficient solution to retrieve essential information about these cars. Introducing the Oman Car Registration API, a groundbreaking tool designed to look up vehicle details based on license plate numbers, pr ..read more
Network Programming in .NET
3M ago
Using RapidAPI – on this page: https://rapidapi.com/fvetroo5ri/api/verify-emirates-id
There is a free API that returns the name / address / dob from an emirates ID (think UAE / Dubai / Abu Dhabi), sample code as follows:
https://rapidapi.com/fvetroo5ri/api/verify-emirates-id
curl --request GET \
--url 'https://verify-emirates-id.p.rapidapi.com/default/EmiratesID?eid=784197600000000' \
--header 'X-RapidAPI-Host: verify-emirates-id.p.rapidapi.com' \
--header 'X-RapidAPI-Key: KEY GOES HERE'and it returns data in the format;{
"FirstName": "Mohammed",
"LastName": "Fatah",
"DateO ..read more
Network Programming in .NET
7M ago
Ok, it’s a common task, you’re migrating from one server to another, but you have one website that responds to 100’s of bindings, and you have to move them. Of course you can copy and paste one by one, but here’s a script to do so. It also works with IDN domains.
First, on the source server, run this;
Import-Module WebAdministration
$siteName = "YOUR_SITE.COM"
$exportPath = "C:\TEMP\bindings.csv"
$bindings = Get-WebBinding -Name $siteName |
Where-Object { $_.protocol -eq 'http' } |
Select-Object protocol, bindingInformation
$bindings | Export-Csv -Path $exportPat ..read more
Network Programming in .NET
8M ago
The MySQL community edition, when installed using default settings is limited to 128MB of memory, which makes it unobtrusive, and won’t hog resources if misused, which is fine. But sometimes you need a blast of performance, to help run queries fast, even if it gets greedy with memory.
Everybody knows that memory is faster than disk, so if you find that MySQL is using 100% (or maxing out), disk usage, and only using 128MB of memory, then you will benefit from giving MySQL more access to available memory. Lets say your desktop machine is 16GB, you can easily give it 10GB (10G) of memory without ..read more
Network Programming in .NET
8M ago
When trying to connect via GIT to BitBucket from an older server, I got this error;
fatal: unable to access xxx : gnutls_handshake() failed: Handshake failed
After updating GIT, CA root certifiates, rebooting the server, nothing seemed to work.
Then I did;
Get the SSH public key as follows;
cat /home/ubuntu/.ssh/id_rsa.pub
Then log into bitbucket, and press the settings cog in the top right, then “Personal Bitbucket settings”, then SSH Keys,
then paste in the public key from the result above.
Once added, you can do;
git clone git@bitbucket.org:XXX/XXX
Hope this helps someone ..read more
Network Programming in .NET
9M ago
Transferring S3 bucket from one AWS account to another is a pretty common action, and the AWS documentation on this seems to be quite lacking.
At a high level, you need to give destination account READ access to the source account’s bucket, and give the source account WRITE access to the destination account’s bucket. In this way the destination does the reading, and the source does the writing. This means the whole operation can be performed by AWS S3 internally, without the data flowing to an intermediary service.
The approach below is not exactly “least privilige”, so I’m assuming you trust ..read more
Network Programming in .NET
10M ago
I use Azure Devops to host some of my code, and then to automate deployments, I use the Azure Devops API, which up to now has worked great. Today, suddenly I got the error;
?error=InvalidScope
Returned, appended to the callback URL after authorization. I hadn’t changed anything, so automatically presumed something must have changed on the Azure side.
I logged in, everything seemed fine, I made a minor (non-breaking) change to the app definition, and pressed “Save changes”, then I saw the above error “Scope is not vald, Cannot mix uri based and modern scopes ‘vso.loadtest’“
Granted, I didn’t a ..read more
Network Programming in .NET
11M ago
If you want to find all webpages that are hosted on a given domain, then you can use the Site: prefix in Google or Bing
However, let’s imagine you want a more extensive list, and perhaps, you want the result back in JSON format, such that you can use it in your own applications, here is where the WayBackMachine (Internet Archive) can be useful.
So, imagine that you want to see what pages are (or were) hosted on the domain webtropy.com; you’d use the url
https://web.archive.org/web/timemap/json?url=webtropy.com&fl=timestamp:4,original,urlkey&matchType=prefix&filter=statuscode:200&a ..read more