Custom Python App on EMR Serverless

Environment Reference I had to jump through a few hoops to get a PySpark application running on EMR Serverless. Below are the steps I followed, along with final functioning configuration, and at the bottom of this post is a few errors I encountered along the way. Steps 1. Setup Build Environment For a packaged application … Continue reading “Custom Python App on EMR Serverless”

ICellRendererAngularComp + ICellRendererParams: DOMException: Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is no longer a child of this node. Perhaps it was moved in a ‘blur’ event handler?

I recently encountered a collision between Angular and ag-grid, where multiple – i.e., two – attempts were being made to remove the same child node each time a cell renderer underwent a change, one attempt made by ag-grid and the second, failing attempt made by Angular change detection event that attempted a re-render via DefaultDomRenderer2. … Continue reading “ICellRendererAngularComp + ICellRendererParams: DOMException: Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is no longer a child of this node. Perhaps it was moved in a ‘blur’ event handler?”

Snowflake SDK Configuration: CertificateError

I had to wrestle with getting the Snowflake SDK working, kept encountering the error: 250001: Could not connect to Snowflake backend after 0 attempt(s).Aborting. The underlying error to which was: SSLError(CertificateError(“hostname ‘sk78217.us-east-2.snowflakecomputing.com’ doesn’t match either of ‘*.us-west-2.snowflakecomputing.com’, ‘*.us-west-2.aws.snowflakecomputing.com’, ‘*.global.snowflakecomputing.com’, ‘*.snowflakecomputing.com’, ‘*.prod1.us-west-2.aws.snowflakecomputing.com’, ‘*.prod2.us-west-2.aws.snowflakecomputing.com'”)) I read much on the tubes about how region needs to be set, … Continue reading “Snowflake SDK Configuration: CertificateError”

Pass HTTP Headers with Non Proxy Lambda Integration in AWS API Gateway

I set out to pass an HTTP header through API Gateway by mapping it in the method and integration request configurations (specifically using Serverless framework/template), based on various documentation I found online indicating I should do so. While troubleshooting, I at one point removed the mappings entirely and noticed that it *just worked*. I.e., with … Continue reading “Pass HTTP Headers with Non Proxy Lambda Integration in AWS API Gateway”

Default Argument Value Does Not Refresh Between Function Calls

Something struck me as unexpected today while working in Python. I had a function to take a datetime object and convert it into epoch milliseconds: import datetime import time this_tz = ‘US/Eastern’ def get_epch_ms(dttm=datetime.datetime.now(pytz.timezone(this_tz))): # Returns milliseconds since epoch for datetime object passed. # If no argument is passed, uses *now* as time basis. # … Continue reading “Default Argument Value Does Not Refresh Between Function Calls”

Web Browser Cookies Between Sessions (IE, Firefox, Chrome)

Was looking into this for a client, and I’ve come to the following conclusion based on various reading across the ‘tubes: How cookies are handled between browser instances varies between web browsers. Why do we care? Well various web applications are going to get wonky if you try opening multiple instances of them when those … Continue reading “Web Browser Cookies Between Sessions (IE, Firefox, Chrome)”

PDF: Windows vs Linux File Size

I’ve recently switched to Linux (Ubuntu 8.10) as my main operating system. I find it’s a more effective workspace for most of my tasks. Check it out if you haven’t already; Linux really is growing up. I do keep Windows around for a couple tasks, mainly gaming, but Linux is closing the gap on that, … Continue reading “PDF: Windows vs Linux File Size”

Windows Explorer Folder Shortcuts

I sometimes like to make shortcuts to various folders on my Windows machine. I am annoyed, though, that when executed, this shortcut brings up an explorer window without the folder tree on the left. I found the solution to this here: shortcut with folder tree In short, the command line in your shortcut should read %SystemRoot%\EXPLORER.EXE … Continue reading “Windows Explorer Folder Shortcuts”

Hyperlink to Specific Page of PDF

I was recently posed with the question of whether or not you could hyperlink (yeah, I’m using the term as a verb) to a specific page of a PDF. In looking around, I am under the impression this can be done if the PDF resides on a web server by adding “#page=2” to the hyperlink … Continue reading “Hyperlink to Specific Page of PDF”