29 Matching Annotations
  1. Apr 2026
    1. Maine advances first statewide moratorium blocking data centers requiring over 20 megawatts

      令人惊讶的是:缅因州将成为美国第一个全范围禁止大型数据中心建设的州,这一政策针对的是超过20兆瓦的数据中心设施,这在科技发展迅速的今天显得格外独特和出人意料。

  2. Mar 2026
  3. Jul 2025
    1. One pattern that I love to use in my SvelteKit projects is returning writable stores from the layout’s load function. This makes it possible to fetch data from the server (for example the user object for the logged in user), and then you make this object available as a writable reactive store throughout the whole application. So when the user updates their username or avatar, you do the PUT request to the server and you get the updated user object back from the server as the response, you can simply update the $user writable store value and every place in your app where you show the user object gets updated immediately.
    1. But what if you want to update this user instance? For example on your website you have a form where the user can change their name, username, or avatar. When the form is submitted this gets stored on the server, but the site still shows the old user information, for example it still shows the old avatar of the user in the top menu. The user variable isn’t writable, so how do you overwrite this?
  4. Oct 2023
  5. Jan 2022
  6. Nov 2021
  7. Sep 2021
  8. Aug 2021
  9. Jul 2021
  10. Mar 2021
  11. Oct 2020
  12. Sep 2020
  13. Aug 2020
  14. Jul 2020
  15. May 2020
  16. Apr 2020