From c75ad74398c38d7924dcbe4a1634561d0cbadb7b Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Tue, 13 Dec 2022 23:33:08 -0500 Subject: [PATCH] Changed primary email --- config.toml | 6 +++--- content/blog/2015-11-15-fractions-js.md | 2 +- .../2015-11-30-limiting-cache-service-workers-revisited3.md | 2 +- content/blog/2015-12-22-playing-with-qr-codes.md | 2 +- content/blog/2015-12-27-creating-vcards-from-h-cards.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.toml b/config.toml index a28423b..2f8ba3a 100644 --- a/config.toml +++ b/config.toml @@ -16,10 +16,10 @@ enableGitInfo = true avatar = "avatar.jpg" favicon = "favicon.ico" description = "PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast." - email = "hello@brandonrozek.com" + email = "brozek@brandonrozek.com" identities = [ "https://github.com/brandon-rozek", - "mailto:hello@brandonrozek.com", + "mailto:brozek@brandonrozek.com", "https://fosstodon.org/@brozek" ] @@ -126,5 +126,5 @@ enableGitInfo = true identifier = "email" name = "Email" pre = "" - url = "mailto:hello@brandonrozek.com" + url = "mailto:brozek@brandonrozek.com" weight = 95 diff --git a/content/blog/2015-11-15-fractions-js.md b/content/blog/2015-11-15-fractions-js.md index ff030a9..c44313b 100644 --- a/content/blog/2015-11-15-fractions-js.md +++ b/content/blog/2015-11-15-fractions-js.md @@ -126,4 +126,4 @@ In the code, the add prototype calls the Fraction.add function within it to avoi ## Conclusion {#conclusion} -After I coded this up, I looked online for different implementations and found [fraction.js](https://github.com/ekg/fraction.js) by [Erik Garrison](http://hypervolu.me/~erik/). Itโ€™s important to look at different implementations and see which matches your needs better. This post isnโ€™t meant to go fully into detail of the library. To know what else the library can do, visit the [readme page](https://github.com/brandonrozek/Fractions.js/blob/master/README.md). If youโ€™re curious in how itโ€™s implemented, check out the [code](https://github.com/brandonrozek/Fractions.js/blob/master/Fraction.js). [Email me](mailto:hello@brandonrozek.com) if you have any questions/criticisms ๐Ÿ™‚ \ No newline at end of file +After I coded this up, I looked online for different implementations and found [fraction.js](https://github.com/ekg/fraction.js) by [Erik Garrison](http://hypervolu.me/~erik/). Itโ€™s important to look at different implementations and see which matches your needs better. This post isnโ€™t meant to go fully into detail of the library. To know what else the library can do, visit the [readme page](https://github.com/brandonrozek/Fractions.js/blob/master/README.md). If youโ€™re curious in how itโ€™s implemented, check out the [code](https://github.com/brandonrozek/Fractions.js/blob/master/Fraction.js). [Email me](mailto:brozek@brandonrozek.com) if you have any questions/criticisms ๐Ÿ™‚ \ No newline at end of file diff --git a/content/blog/2015-11-30-limiting-cache-service-workers-revisited3.md b/content/blog/2015-11-30-limiting-cache-service-workers-revisited3.md index 89ec3f1..104007f 100644 --- a/content/blog/2015-11-30-limiting-cache-service-workers-revisited3.md +++ b/content/blog/2015-11-30-limiting-cache-service-workers-revisited3.md @@ -97,7 +97,7 @@ Once it receives the command, it goes on to trim all of the caches. ### Conclusion -So whenever you download a bunch of files, make sure to run `navigator.serviceWorker.controller.postMessage({"command":"trimCache"});` on the main javascript file to trim the cache. A downside to this method is that since Service Workers don’t take control during the first page load, the cache isn’t trimmed until the second page load. If you can find a way to make it so that this event happens in the first page load [tell me](mailto:hello@brandonrozek.com) about it/write a blog post. ๐Ÿ™‚ **Update:** To get the service worker to take control of the page immediately call [self.skipWaiting()](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) after the install event and [self.clients.claim()](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim) after the activate event. Current code for our humble service worker: +So whenever you download a bunch of files, make sure to run `navigator.serviceWorker.controller.postMessage({"command":"trimCache"});` on the main javascript file to trim the cache. A downside to this method is that since Service Workers don’t take control during the first page load, the cache isn’t trimmed until the second page load. If you can find a way to make it so that this event happens in the first page load [tell me](mailto:brozek@brandonrozek.com) about it/write a blog post. ๐Ÿ™‚ **Update:** To get the service worker to take control of the page immediately call [self.skipWaiting()](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) after the install event and [self.clients.claim()](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim) after the activate event. Current code for our humble service worker: ```javascript var version = 'v2.0.24:'; diff --git a/content/blog/2015-12-22-playing-with-qr-codes.md b/content/blog/2015-12-22-playing-with-qr-codes.md index 3f81e4e..18473e6 100644 --- a/content/blog/2015-12-22-playing-with-qr-codes.md +++ b/content/blog/2015-12-22-playing-with-qr-codes.md @@ -47,4 +47,4 @@ QR Codes aren’t prevalent in the United States of America. In fact, they&# ### Setting up the QR Code -First, you need a picture. I used a picture of myself. Then for the QArt Coder site to work correctly, the image needs to be in high-contrast. Meaning, it needs to be mostly black and white. To accomplish this, fire up [Gimp](https://www.gimp.org/) (or your image editor of choice), and hit Color -> Threshold. That will give you a black and white version of the picture where you can then play around with the slider to get it just how you want it. After that, open up [QArt Coder](http://research.swtch.com/qr/draw) and upload the image onto the site. Once that’s accomplished, you might need to play with the QR Size, Image Size, Rotation, and other options. After that, hit “Save this QR Code” and viola! You got yourself three different sizes of QR codes to use. What should you do with the QR Code after you get it? First, brag to your friends about how cool it looks. Then maybe put it on your [business card](https://www.webdesignerdepot.com/2011/07/30-creative-qr-code-business-cards/). If you can think of any other excuses uses of QR Codes [contact me](mailto:hello@brandonrozek.com) ๐Ÿ™‚ \ No newline at end of file +First, you need a picture. I used a picture of myself. Then for the QArt Coder site to work correctly, the image needs to be in high-contrast. Meaning, it needs to be mostly black and white. To accomplish this, fire up [Gimp](https://www.gimp.org/) (or your image editor of choice), and hit Color -> Threshold. That will give you a black and white version of the picture where you can then play around with the slider to get it just how you want it. After that, open up [QArt Coder](http://research.swtch.com/qr/draw) and upload the image onto the site. Once that’s accomplished, you might need to play with the QR Size, Image Size, Rotation, and other options. After that, hit “Save this QR Code” and viola! You got yourself three different sizes of QR codes to use. What should you do with the QR Code after you get it? First, brag to your friends about how cool it looks. Then maybe put it on your [business card](https://www.webdesignerdepot.com/2011/07/30-creative-qr-code-business-cards/). If you can think of any other excuses uses of QR Codes [contact me](mailto:brozek@brandonrozek.com) ๐Ÿ™‚ \ No newline at end of file diff --git a/content/blog/2015-12-27-creating-vcards-from-h-cards.md b/content/blog/2015-12-27-creating-vcards-from-h-cards.md index 8a00a53..cb352f6 100644 --- a/content/blog/2015-12-27-creating-vcards-from-h-cards.md +++ b/content/blog/2015-12-27-creating-vcards-from-h-cards.md @@ -322,6 +322,6 @@ Fire up your favorite userscript handling tool and add the [script](https://gist I ran into a small problem loading a contact onto my Android 5.0.2 phone. Apparently, they don’t support vCard 4.0 yet so I had to go into the file and change the line that says “VERSION 4.0” to “VERSION 3.0” which then allowed me to import the file into my contacts. -As with all the code I write, feel free to comment/criticize. I love hearing feedback so if you spot anything, [contact me](mailto:hello@brandonrozek.com) ๐Ÿ™‚ +As with all the code I write, feel free to comment/criticize. I love hearing feedback so if you spot anything, [contact me](mailto:brozek@brandonrozek.com) ๐Ÿ™‚ Also posted on [IndieNews](http://news.indiewebcamp.com/en){.u-syndication} \ No newline at end of file