code Find your IP Address Script Needed to find the outgoing true IP address for computer to provide for whitelisting to another proxy. Here I am using a third party website to get an IP result icanhazip.com Ideally I would create a client side call that is handled by the server and then queries the
code Enhancing the console.log Messing around with the console.log and in particular the %c stylized log and tried some experiments and you can enhance the log to render out images etc and in this case I am making a canvas element to hold text and styling it so that the log And here
code Detect PNG image header in data stream Byte check header for the PNG header in a data stream public static bool HasPngImageHeader(byte[] imageContents) { byte[] imageHeader = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A }; return imageContents.Take(8).SequenceEqual(imageHeader); }
Hapijs + MapBox + Glitch Example Built out a MapBox test page for use and decided to use glitch.com because it is easy to get something live to test with and then embed and here is the code. Had to get back into the nodejs frameset and working with hapijs after a few years rust,
code Hapijs + Glitch Example Built out a Open API test page for use and decided to use glitch.com because it is easy to get something live to test with and then embed and here is the code. Had to get back into the nodejs frameset and working with hapijs after a few years
code Fixing Elementor Popups with JavaScript Elementor is a free WordPress plugin that enhances your website to allow graphical drag and drop editing of websites and it's free. It is full of nice and helpful snippets with an especially powerful one being the ability add in Popups. This can give your website focus areas and direct
code JavaScript Onetime Script with Delay Needed to have some JavaScript to do a onetime execution process after content is in the Document Object Model (DOM) and created. Hook into the load event https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event Add an event listener to the window that is looking for the
code Chat GPT - ...Thoughts... I have some quick thoughts that about chat bots built on large language models. TLDR; They produce words in a reasonable pattern matched process, they do not understand or form any value or levels of truth to it and that is the stumbling block that is hitting people now and
code PHP cURL Request/Response JSON Debugging an integrators code that was written in PHP and came up with this test snippet. I'm using php cURL as it is the simplest to convert and compare with the command line interface of cURL 'https://', CURLOPT_
code Windows Features Open an administrator level PowerShell console Get-WindowsOptionalFeature -Online | where FeatureName -like 'IIS-*' | where State -eq "Enabled" Output FeatureName : IIS-WebServerRole State : Enabled FeatureName : IIS-WebServer State : Enabled FeatureName : IIS-CommonHttpFeatures State : Enabled FeatureName : IIS-HttpErrors State : Enabled FeatureName : IIS-ApplicationDevelopment State : Enabled FeatureName : IIS-Security State : Enabled FeatureName :
code Advent of Code - 2022 Can I complete Advent of Code 2022 in python this year? Last years entry and how far I got * 2022 - Python solutions I finished!! A little later than 25th, but I did catch Covid for the week of 18th - 25th.
personal Life and loss Thinking about life while on a run and thinking why can't I hit my previous running goals with the same effort. This is due to various factors, but the one that continuously hits me is injuries that show up that never did before and take extraordinarily (in my opinion) long
code Windows Subsystem for Linux 2 I am running manticore search and redis within my Ubuntu 22 on top of Windows Subsystem for Linux 2 (WSL2) this allows me to connect my Windows development environment (Internet Information Services - IIS) to use linuxy development tools that don't change and match the Amazon Web Services (AWS) cloud
code Insert With Common Table Expression - MySql In the case you have a MySql table filled with default Lookup ids for each user in your system to a messsage id. In this case you are looking to fill in the many to many relationships of bridging table from a User table to the Message table. For simplicity
code And this is what the Devil does - JavaScript JavaScript our Lord and master and it's broken as fuck math because of the desire to treat all numbers as floating point. I know exactly why Brendan Eich did this. It's easier to build a single number type at the instruction level because I took a compiler/architecture class so
personal Decoding political speech Driving by the highway and I saw a sign for the state board of education candidate which said Education not Indoctrination and that is obviously an inverted lie because the candidate Kathryn Monette is wanting to indoctrinate students with their insane religious views and eliminate any factual information or teaching.
code Improving Software: Automated Testing Building testing after the code is written and deployed is hard and expensive, so why? Feedback This is the goal of all testing to get direct results from inputs and does it match the expected outputs Reduce Change risk and remove problems Improve Understanding of internal code structure Team Effort
code Mobile Application Justification Native App - Flutter * Exposes current and new API for users * Validation of capabilities * Sample implementation (if open sourced) * Consistent experience for implementators * Enforces separation of responsibilities Benefits * Users get native application performance * Notifications are now prioritized * Background * Immediate Application * Grants API capabilities dictating form and consistency is kept * Native
personal The history of Web Financial Fraud Web 1.0: Identity When the web first started early 1990s - 2001 or so the anonymity offered by the newness of the platform and protocol allowed people to deceive others about their identity to conduct fraud i.e. email fraud, website fraud, payment fraud. This level was mostly at
code MySql - Delete all with foreign keys You want to delete a record in a MySql database but it has foreign keys and gives you the error code 1217 Generate all the applicable delete statements with the following query. Example I would like to delete the last record from the TheTable Statement SELECT Id From TheTable Order
code Stages of Rust Learning Rust stages * This is cool 🆒 * I am protected from mistakes 👑 * Why can't I do this borrow checker? 🤔 * Now there is a chain of fixes I must make 🧾 * Help please 😭 * Go back to Python and JavaScript 😸
personal Tacoma Screw When I lived in Seattle I would get pizza in the Georgetown neighborhood (Via Tribunali) and every time I drove back to my apartment in Capitol Hill I would pass a sign that said Tacoma Screw It made me laugh every time and the joke was this should be the
personal Jury Selection I was "summoned" to jury duty in my current county of residence Tarrant and this is an evaluation of the process, what the potential trial was, and my critical observations and statements. Setting the stage of the Summons Why am I being summoned to a in person jury trial during