Turning Gaza to Rubble / / No Comments This week the Gaza health ministry reported that 40,000 Palestinians have been killed in Gaza since Israel started attacking the territory in October. Over a third of those killed have been children. Much of Gaza itself has also been turned to rubble.According to Bloomberg Israeli air strikes on Gaza have created 42 million tonnes of debris in the Strip. That is “enough rubble to fill a line of Maps Mania… more → Posted in: Interactive Maps Tagged with: 'turning, Gaza, Rubble
Links For You (8/18/2024) / / No Comments Woot, welcome to football season! Ok, preseason, but I am beyond excited to watch my Saints play later today and, hopefully, look halfway decent. My wife and I are both big football fans and the start of the season is always a happy occasion. This past week I traveled to Atlanta to give a lab on Adobe’s Firefly Services APIs which went well, and I get to do it again next week in New York City. I hope your week goes well, and here are some interesting links for you to enjoy. Migrating from Netlify to Cloudflare In this post, Sia Karamalegos discusses how she migrated her site from Netlify to Cloudflare. This was done primarily due to Cloudflare releasing a new service to block AI crawlers,... more → Posted in: JavaScript Tagged with: 8/18/2024, links
Setting Dynamic Objects Keys in JavaScript / / No Comments It’s always a good day when you get pleasantly surprised by JavaScript, even more so when you find that it’s a feature that’s been around for a while (ES6, which according to Google was standardized in June of 2015). Earlier today I saw some syntax that didn’t look quite right to me. Here’s a simple example of it: let type = 'name';let person = { [type]:'Ray'} Specifically, the thing that surprised me was this portion: [type]:'Ray' If you console.log the code above, you get: { name: 'Ray' } And then it makes sense. This syntax allows you to set a dynamic key in an object literal, much like: person[type] = 'Ray'; Apparently, this has been around for nearly ten... more → Posted in: JavaScript Tagged with: dynamic, JavaScript, Keys, Objects, setting
Virtual Indian Independence Day / / No Comments Today is Indian Independence Day. On this day India celebrates its independence from the United Kingdom. On 15 August 1947 Jawaharlal Nehru, the first Prime Minister of India, raised the Indian flag above the Lahori Gate of the Red Fort in Delhi. Since then every year on Independence Day the incumbent Prime Minister repeats the ceremony by raising the flag over the Red Fort and by addressing Maps Mania… more → Posted in: Interactive Maps Tagged with: Independence, Indian, Virtual
A Quick Look at AI in Chrome / / No Comments Google announced a while back their intent to experiment with generative AI in the browser itself. Personally, I think this could be a really good idea, but I’m really unsure as to how many other vendors would support it. With Edge being a Chromium product, and Microsoft being pro-GenAI, it seems like a safe bet it would support it. Safari and Firefox… I honestly feel like they probably never would. That being said, initial support landed in Chrome Canary (the bleeding edge version of Chrome) and I thought I’d take a quick look. Here’s what I found. Setting it Up To test this new feature, you need either Chrome Canary or Dev. Enabling support requires tweaking two flags... more → Posted in: JavaScript Tagged with: Chrome, Look, Quick
Real-Time Radiation Maps / / No Comments Yesterday a fire broke out at the Zaporizhzhia nuclear power plant in Russian occupied southern Ukraine. On hearing the news of the fire I almost immediately rushed to the Real-Time Radiation World Map in search of any detected spikes in radiation in the area.The Real-Time Radiation World Map visualizes radioactivity levels from Geiger counters around the world. Luckily, as you can see from the Maps Mania… more → Posted in: Interactive Maps Tagged with: maps, Radiation, realtime
Next Code Break – August 6 / / No Comments Hey folks, earlier last month, I mentioned a tweak to my <Code><Br> schedule, and originally I was going to have one today, but that has been pushed out to August 6th. You can find out more here: Hacking Arduino Hardware as a Noob Pt. 2 My plan is to continue showing Arduino/web integration and I’ve got an interesting bug to share. (I love it when I make mistakes that are good lessons!) I hope to see you there! Raymond Camden… more → Posted in: JavaScript Tagged with: August, Break, code, Next
How to Add a Header to a curl Request / / No Comments curl is one of those great utilities that’s been around seemingly forever and has endless use cases. These days I find myself using curl to batch download files and test APIs. Sometimes my testing leads me to using different HTTP headers in my requests. To add a header to a curl request, use the -H flag: curl -X 'GET' \ 'https://nft.api.cx.metamask.io/collections?chainId=1' \ -H 'accept: application/json' \ -H 'Version: 1' You can add multiple headers with multiple -H uses. Header format is usually [key]: [value]. The post How to Add a Header to a curl Request appeared first on David Walsh Blog. David Walsh Blog… more → Posted in: JavaScript Tagged with: curl, Header, Request