This is my blog! You can read it over at https://pomax.github.io
And if you find any problems, feel free to file an issue and I'll have a look at it.
My blog, hosted via github
This is my blog! You can read it over at https://pomax.github.io
And if you find any problems, feel free to file an issue and I'll have a look at it.
Hi,
The article on making French baguettes is great, thank you very much. I'll be using it as a reference material in my more advanced kitchen experiments.
There was a note about using a pan at the base of the oven for steaming. Rather than using an actual pan, one could potentially utilise an improvised container made from a sheet of aluminium foil.
Thanks and have a nice day.
Petteri
You likely already know this, but I figure it's important to mention, the reason a lot of React devs try to do everything the "React" way and send data back "up" to some injected global store is because it makes it easier to mock and test React applications this way, because everything remains contained within React and can easily be mocked using props or Providers, and the entire application state can quickly be replicated (including the status bar info without having to dispatch an event).
Your post does remind me of Mithril.js which has global state redraws by default, so having state defined outside your application is very natural, and the resulting app ends up looking very vanilla.
import m from 'mithril';
// global state in scope; tuck this in state.js and import wherever
const state = { num: 0 };
const actions = {
increment() {
state.num += 1;
}
};
function App() {
// local state via vanilla closures since the outer function only executes on mount
let localVar = 'cool';
return {
view: () => (
<div>
<p>{state.num}</p>
<button onclick={actions.increment}>increment</button>
<p>{localVar}</p>
<input type="text" oninput={({ target }) => localVar = target.value} />
</div>
)
};
}
m.mount(document.body, App);
There's a link in your blog entry "Localization is hard" that isn't working correctly. The pseudo-link "background in Japanese" about 80% of the way down the page should redirect to https://pomax.github.com/NRGrammar but instead returns a 'Post redirection' notification that says the redirect will fail if JavaScript is disabled. JavaScript isn't disabled on my machine however. I've tried both Chrome and Safari (MacOS).
FWIW I see you're on Vancouver Island, a nice place to live. I'm not that far across the water from you on the Sunshine Coast.
This is a comment to http://pomax.github.io/1473270609919/if-you-use-use-document-write-you-suck-at-javascript
I have this HTML code at the bottom of my site:
<script src="/js/ext/jquery.min.js"></script>
<script>
window.Promise || document.write('<script src="/js/ext/promise.min.js"><\x3C/script>')
</script>
<script src="/js/ext/picker.min.js"></script>
<script src="/js/ext/marked.min.js"></script>
<script src="/js/site-client.min.js"></script>
So, I use document.write
to synchronously insert a Promises polyfill only when the browser doesn’t support them natively (IE, etc.). What do you think of this pattern? Is it legit? 😋
I like it very EasyPageComments, but I would like to know how the admin can cancel a comment. Thank you
main entry
main entry 2
This uses:
- main entry
- sub 1
- sub 2
- sub 3
- main entry 2
- sub 1
- sub 2
- sub 3
Hi Pomax,
I just found your Primer on Bézier and It has help me a lot, Thanks you for such a useful resource.
I was reading about the problems you faced to localize the content, and in the last section you say you still have a problem with the text in the interactive graphics.
Maybe I'm missing something but if I'm reading the content in say japanese, don't I have the font to display text in japanese?, and for the alignment problem maybe you can replace the canvas text with html, if you use an inline element the browser will give you the text dimension.
you can style the element to looks like it is a text drawn in the canvas and maybe a max-width/max-height.
P.S.: sorry about my english.
Hi Pomax,
I really liked your blog post about the Kitchen knives. I saw your other blog post - about the Youtube channel that you had started. It would be very helpful, if you can also make a video about how to use these knives in a video. Since we (I'm originally from India), never used so many different knives, I'm not able to relate to when/how to use these various knives. Thank you!
No reason to do this manually when github actions are a thing.
https://github.com/Wholemy/PathSource
Wholemy.BezTest.zip
If you need video: https://t.me/wholemy
Thank you for your code, I was able to improve my curve rendering at the expense of your code and achieve high performance when thickening curves) But you should think about it to improve your algorithm) I have attached the source code of the test application on the basis of which I was trying to improve the drawing of curves) It is written in C# in Visual Studio 2022)
Leaving a comment on github is pretty easy. Yes, you need to log in, but if you really care about that comment you wanted to leave, that shouldn't be much of a problem (and if signing up for an account is a step too far, then you know exactly how much you cared).
I decided to go with github issues because if you just want to post a throwaway comment, then you can always Tweet to me about it and we can both count on that interaction losing traction and being forgotten by everyone in about a day. That's fine, we should be able to have those interactions, but those kind of interactions don't need to be intrinsically tied to the blog posts themselves.
If you want to leave a real comment, one that requires meaningful and direct interaction between you and me (say you a found glaring problem with one of my posts, or you have information that you think would help me update a post or write a new one, or you have real questions after reading a post and need additional information), then this is a much better place to have a conversation that can guide real change to my posts.
Get an account if you don't have one (it's free), and then file a new isssue about what you want to talk about - I'll typically respond the same day, because if you care enough to comment, I certainly care enough to engage with you.
Some SO posts are worth pointing to as educational material I've written.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.