ecdown
ecdown
Untitled
9 posts
Don't wanna be here? Send us removal request.
ecdown · 9 months ago
Text
Python: Dealing with unknown fields in dataclass
I have been using dataclasses in my python data retrieval scripts but on the occasions when a field is added to the API return I needed a way to make the scripts continue to run. The added benefit of notifying the script user about any unknown fields helps too. The following code with a Warning message to show any fields that are not predefined in the dataclass. from dataclasses import…
0 notes
ecdown · 1 year ago
Text
Python: pip certificate failure
I recieved a new laptop and the Python certificates were failing for me. The quickest, but not necessarily the most secure method for fixing this is to either use the –trusted-host entry for each host that throws a certificate exception or to create a file in the ~/.config/pip/pip.conf file like the one below. This covers the main sites that pip uses to install packages. [global] trusted-host =…
View On WordPress
0 notes
ecdown · 1 year ago
Text
Laravel laravel-entrust specify multiple roles in web guard.
I was writing a Meeting tracking app in Laravel and using the shanmuga3/laravel-entrust module for roles and permissions. I created a new role for the application but needed to support some superadmin functionality within the site but was having issues with some of the routing. I found that padding the superadmin and admin with a pipe delimited list directly to the ‘role:’ entry…
View On WordPress
0 notes
ecdown · 2 years ago
Text
Zelda - Tears of the Kingdom - Teniten Shrine
Zelda – Tears of the Kingdom – Teniten Shrine Playthrough video
youtube
View On WordPress
0 notes
ecdown · 3 years ago
Text
Node: Fix line endings by platform
Node: Fix line endings by platform
Using a Node script to query a database to do corrections was working fine on my local Windows based system had been working fine until we tried to automate the process. We moved it to a Jenkins serverr which happened to be on a Linux system and the script stopped working. After some debugging it turned out that the way we were attempting to differentiate data returns from the queries depended on…
View On WordPress
0 notes
ecdown · 4 years ago
Text
Laravel on windows: Private key does not exist
Laravel on windows: Private key does not exist
I was setting up my Laravel development using the Homestead on a new laptop and my usual tool chain includes installing git and using git bash. When I tried the ‘vagrant up’ command I got the following error: Check your Homestead.yaml (or Homestead.json) file, the path to your private key does not exist. The default location for that file is the .ssh directory within your home directory. This…
View On WordPress
0 notes
ecdown · 4 years ago
Text
Java: Fix floating point math
Java: Fix floating point math
I was working on my Android app skills and was creating a simple calculator. It was very basic and worked great until I started to play with division. I thought, this will be easy. Just type, 3 / 2 = and I would be given the answer. We all know the answer is, of course, 1.49999998. Wait a minute! Why would this be the answer you ask? This has to do with the data type used and if you are doing…
View On WordPress
0 notes
ecdown · 4 years ago
Text
Freebitcoin.com Review
Bitcoin is booming and everyone wants a piece of the action. I have been using the Freebitcoin.com faucet site to get my piece of the action. The nice thing about the Freebitcoin.com site is that they are backed by mining that is creating value for their site and powering the faucet. There is also a multiplier game, Betting and contests that can gain you extra satoshi. The site has a faucet that…
View On WordPress
0 notes
ecdown · 4 years ago
Text
How to report Scam calls
How to report Scam calls
Having a phone number leaves you open to scam calls. To report these calls you can go to the following website and let them know about the call. https://reportfraud.ftc.gov/#/ On this site you can report if the caller asked for money, gave a name and when they called. Not sure what the full end result of calls can be but I feel it is my drop in the bucket to help combat these calls. Some scams…
View On WordPress
1 note · View note