Giter Club home page Giter Club logo

pomax.github.io's Introduction

Pomax's blog on 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.

pomax.github.io's People

Contributors

nayuki avatar pomax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

a1ip

pomax.github.io's Issues

A pan for steaming the oven

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

Re: React is just JavaScript

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);

blog link not redirecting properly

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.

Using document.write

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? 😋

[draft] we are still terrible at photography

We are still terrible at digital photography

  • we should capture 3D (matched image sensor to LIDAR)
  • we should capture light functions, not accumulation (obviate HDRI)
  • we should capture better than rec.2020, becaues the world is green, and guess what we keep not capturing
  • we should capture light fields
  • we should capture the whole image, not "the optimal-for-film rectangle".

Should be illegal if missing:

  • USB-C for data as well as (fast) charging
  • using the camera while it's charging
  • full camera control over USB: the camera's firmware should have mirror-apps for win/linux/macos/android/ios with the exact same content, using the exact same menus, and sync those by wire or over the air
    • Not "suites", fuck that noise: dedicated applications specific to that camera that come with your camera on a USB drive, and are updated in lockstep with firmware updates.
  • data transfer of any data on the SD card, byte for byte over wire or air (NFC, WiFi, USB)

Some things really need to go:

  • top LED menus: nice bright touch screens have been a thing for years.
  • physical shutters: electronic shutters are superior in every way
  • mirrors: EVT show what the camera sees, and is just a video stream so you can add overlays, processing, etc. (heck, add a dedicated 'show pure' button, similar to ancient DSLR's DOF preview)

Can we finally ditch "film settings" and adopt "digital media settings"?

  • ISO values: leveling curve + LUTs
  • white balance options: curves/LUTs, again
  • E/V compensation: oh look, curves/LUTs, again
  • Filter presets: OH LOOK, CURVES/LUTs AGAIN!
  • all these things are different sides of the same die, and all of these can be zeroes out with built in color calibration: shoot XRite Color Passport or similar device and be done 99% of the time.

Can we also ditch these ridiculous "not even our fault~!" things:

  • video recording length limit: NO ONE CARES about the fact that your camera costs more if you have to pay the video camera tax. Fucking work it in.
  • custom batteries: USB-C fast charging is universal, battery banks are universal, there isn't even any math to do here: stop wasting money on proprietary batteries.

EasyPageComments

I like it very EasyPageComments, but I would like to know how the admin can cancel a comment. Thank you

test issue for github support

  • main entry

    • sub 1
    • sub 2
    • sub 3
  • main entry 2

    • sub 1
    • sub 2
    • sub 3

This uses:

- main entry
  - sub 1
  - sub 2
  - sub 3

- main entry 2
  - sub 1
  - sub 2
  - sub 3

Localization is hard.

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.

Knives Video

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!

Want to leave a comment? Read this!

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.

  • Pomax

Create a section on Stackoverflow posts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.