223 Matching Annotations
  1. Last 7 days
  2. Apr 2025
  3. Feb 2025
    1. Artemisia I of Caria (l. 480 BCE) was the queen of the Anatolian region of Caria (south of ancient Lydia, in modern-day Turkey). She is most famous for her role in the naval Battle of Salamis in 480 BCE in which she fought for the Persians.

      Just testing this out.

  4. Nov 2024
  5. Oct 2024
  6. Sep 2024
  7. Aug 2024
  8. Jul 2024
  9. Apr 2024
  10. Feb 2024
  11. Jan 2024
  12. Dec 2023
  13. Sep 2023
  14. Jul 2023
  15. Apr 2023
  16. Mar 2023
  17. Dec 2022
  18. Nov 2022
    1. Now I can take an article from almost anywhere on my phone (reading services like Pocket, my feed readers, or even articles within the browser themselves), click share, choose “URL Forwarder” from the top of the list, select “Hypothesize” and the piece I want to annotate magically opens up with Hypothes.is ready to go in my default browser. Huzzah!

      Useful how-to for setting up Hypothes.is for mobile use on Android. Confirmed that this works on Brave mobile browser

  19. Sep 2022
  20. Jul 2022
  21. Jun 2022
  22. Apr 2022
  23. Feb 2022
  24. Dec 2021
    1. What a smart object does is wrap your layer in a container so that you're never editing the layer directly; instead, you're editing the container. When you rescale the container, you're not changing the dimensions or anything else about the photo; instead, you're changing the container in which it's contained, ensuring that the photograph always retains its original high resolution.
  25. Nov 2021
  26. Oct 2021
  27. Sep 2021
    1. For SVG I recommend starting with this short but sweet SVG primer by Scott Murray. Play around with manually creating SVG elements and seeing how they work. Use a tool like BlockBuilder to quickly get started without setting up any kind of development environment. You may want to refer to the MDN reference site for SVG. Once you’ve mastered the basics, check out SVG beyond mere shapes by Nadieh Bremer.

      Getting started with SVG

  28. Jun 2021
  29. May 2021
  30. Apr 2021
  31. Mar 2021
  32. Feb 2021
    1. nix-channel --list #<output> nixpkgs https://nixos.org/channels/nixpkgs-unstable The command returns a name for each channel (e.g., nixpkgs) and an URL. Note When running nix-env with the parameter -A, one can select the channel to get the package from. Such a command looks like nix-env -iA channelname.packagename.

      Instead of #<output> it should have said channel-name instead at the top nix-channel example to keep it consistent.

    2. However, using channels is not fully reproducible, as a channel may evolve to incorporate updates.

      TODO: Find other sources about this topic. I remember this mentioned already (and it makes) sense, but need to learn more.

      TODO: What is a better alternative? An own repo? Flakes? Can cachix help?

      It says right below that pinning can help but keep looking.

      When package reproducibility become a major concern, as it is the case in this tutorial, it is preferable to refer to a pinned version of the nixpkgs repository instead — i.e, a specific commit of the repository or an immutable archived tarball. The ability to pin the version of nixpkgs is powerful, it will ensure that a package is always constructed from the same Nix source. As we go deeper in the tutorial we avoid using channels in favor of pinned environments.

  33. Nov 2020
  34. Oct 2020
  35. Sep 2020
  36. Aug 2020
  37. Jul 2020
  38. Jun 2020
  39. May 2020
  40. Apr 2020
  41. Mar 2020
  42. Feb 2020
  43. Jan 2020
  44. Dec 2019
  45. Nov 2019
    1. You do not need to be on-boarded to access the sandbox. For information on how to get access to ABN AMRO accounts in production see Overview.
      • No on-boarding section on that page.
      • What does on-boarding mean to the user?

      We need to describe the access to production in an important message.

  46. Oct 2019
  47. Sep 2019
  48. Aug 2019
  49. Jun 2019
  50. Mar 2019
  51. Feb 2019
  52. Jan 2019
  53. Oct 2018
    1. 可以使用内建函数 make 也可以使用 map 关键字来定义 Map:
      // 声明变量,默认 map 是 nil
      var map_variable map[key_data_type]value_data_type
      
      // 使用make 函数
      map_variable := make(map[key_data_type]value_data_type)
      
    1. /* 打印子切片从索引 0(包含) 到索引 2(不包含) */ number2 := numbers[:2] printSlice(number2) /* 打印子切片从索引 2(包含) 到索引 5(不包含) */ number3 := numbers[2:5] printSlice(number3)
      numbers := []int{0,1,2,3,4,5,6,7,8}
      

      len=2 cap=9 slice=[0 1]

      len=3 cap=7 slice=[2 3 4]

    1. /* 未定义长度的数组只能传给不限制数组长度的函数 */ setArray(array) /* 定义了长度的数组只能传给限制了相同数组长度的函数 */ var array2 = [5]int{1, 2, 3, 4, 5}
      func setArray(params []int) {
          fmt.Println("params array length of setArray is : ", len(params))
      }
      
      func setArray2(params [5]int) {
          fmt.Println("params array length of setArray2 is : ", len(params))
      }
      
    1. 注意:以上代码中倒数第二行的 } 必须要有逗号,因为最后一行的 } 不能单独一行,也可以写成这样:
      a = [3][4]int {
          {0, 1, 2, 3} ,
          {4, 5, 6, 7} ,
          {8, 9, 10, 11} ,    // 此处的逗号是必须要有的
      }
      

      上面代码也可以等价于

      a = [3][4]int {
          {0, 1, 2, 3} ,
          {4, 5, 6, 7} ,
          {8, 9, 10, 11}}
      
    1. func getSequence() func() int { i:=0 return func() int { i+=1 return i } }

      闭包,A函数 返回一个函数,假设返回的函数为B,那么函数B,可以使用A函数中的变量

      nextNumber := getSequence()

      nextNumber 是 返回函数B类型,func() int,i是函数A中的变量,初始值 i=0

      执行nextNumber(),i+=1, reuturn i ==> 1

      再执行nextNumber(),i+=1,return i ==> 2

      再执行nextNumber(),i+=1,return i ==> 3

    1. 以下描述了 select 语句的语法
      • 每个case都必须是一个通信
      • 所有channel表达式都会被求值
      • 所有被发送的表达式都会被求值
      • 如果任意某个通信可以进行,它就执行;其他被忽略。
      • 如果有多个case都可以运行,Select会随机公平地选出一个执行。其他不会执行。

      否则:

      1. 如果有default子句,则执行该语句。
      2. 如果没有default字句,**select将阻塞,直到某个通信可以运行**;Go不会重新对channel或值进行求值。
      
    1. iota 表示从 0 开始自动加 1,所以 i=1<<0, j=3<<1(<< 表示左移的意思),即:i=1, j=6,这没问题,关键在 k 和 l,从输出结果看 k=3<<2,l=3<<3。
      package main
      import "fmt"
      const (
          i=1<<iota
          j=3<<iota
          k
          l
      )
      func main() {
          fmt.Println("i=", i)
          fmt.Println("j=", j)
          fmt.Println("k=", k)
          fmt.Println("l=", l)
      }
      

      以上实例运行结果为:

      i=1
      j=6
      k=12
      l=24
      
    1. 以一个大写字母开头,如:Group1,那么使用这种形式的标识符的对象就可以被外部包的代码所使用(客户端程序需要先导入这个包),这被称为导出(像面向对象语言中的 public)
  54. Sep 2018
    1. The evidence strongly suggests that the Canadiens adopted a casual attitude toward the clergy, which could (and did) sometimes express itself as contempt

      I wonder if this contrasts with early settlers in the American colonies. and if there was some sort of historical reason why contemporary Canada is a more secular country, while the USA is still largely religious.

  55. Jul 2018
  56. Mar 2018
  57. Feb 2018
  58. Jul 2017
  59. Jun 2017