32 Matching Annotations
  1. Feb 2024
  2. Dec 2023
    1. Use HStack to lay out views in a horizontal line, VStack to position views in a vertical line, and ZStack to layer views on top of one another. Then, combine stack views to compose more complex layouts. These three kinds of stacks, along with their alignment and spacing properties, view modifiers, and Spacer views combine to allow extensive layout flexibility.
  3. Nov 2023
  4. Oct 2023
    1. Befides, asthe vileft Writer has his Readers, fothe greateft Liarbas his Believers ; and it often happens, that if aLie be believ'd only for an Hour, it has done itsWork, and there is no farther occafion for it. Falfhcod flies, and Truth comes limping after it ; fo thatwhen Men come to be undeceiv'd, it is too late, theJeft is over, and the Tale has had its Effect : Like aMan who has thought of a good Repay per ed . Oh,Repartee, when thelike a Phyfician who has found out an infallible Medicine, after the Patient is dead

      Falsehood flies, and Truth comes limping after it;<br /> —Jonathan Swift, “The Examiner, From Thursday Nov 2 to Thursday Nov 9, 1710.” In The Examiner [Afterw.] The Whig Examiner, edited by Joseph Addison and Jonathan Swift, Vol. 15. London: John Morphew, near Stationers Hall, 1710.


      found via https://quoteinvestigator.com/2014/07/13/truth/

      with variations on "A lie travels around the globe while the truth is putting on its shoes." attributed variously to Mark Twain, Jonathan Swift, Thomas Francklin, Fisher Ames, Thomas Jefferson, John Randolph, Charles Haddon Spurgeon, Winston Churchill, Terry Pratchett?

    2. Addison, Joseph, and Jonathan Swift. The Examiner [Afterw.] The Whig Examiner. London: John Morphew, near Stationers Hall, 1710.

  5. Apr 2023
    1. let saida = "valor total = \(quantidade*valor)"

      Esse código cria uma string na variável saida que contém a mensagem "valor total = " concatenada com o resultado da multiplicação entre as variáveis quantidade e valor.

      O símbolo "\(" é usado para inserir uma expressão dentro de uma string, permitindo que seu valor seja exibido na string final. No caso desse código, a expressão quantidade*valor é inserida dentro da string usando esse símbolo, e seu resultado é exibido na posição em que a expressão aparece na string.

  6. Mar 2023
    1. So why aren't more people using Nim? I don't know! It's the closest thing to a perfect language that I've used by far.

      Nim sounds as the most ideal language when comparing to Python, Rust, Julia, C#, Swift, C

  7. Jan 2023
  8. Nov 2022
    1. A commonplace book is what a provident poet cannot subsist without, for this proverbial, reason, that "great wits have short memories;" and whereas, on the other hand, poets, being liars by profession, ought to have good memories; to reconcile these, a book of this sort, is in the nature of a supplemental memory, or a record of what occurs remarkable in every day's reading or conversation. There you enter not only your own original thoughts, (which, a hundred to one, are few and insignificant) but such of other men, as you think fit to make your own, by entering them there. For, take this for a rule, when an author is in your books, you have the same demand upon him for his wit, as a merchant has for your money, when you are in his. By these few and easy prescriptions, (with the help of a good genius) it is possible you may, in a short time, arrive at the accomplishments of a poet, and shine in that character[3].

      "Nullum numen abest si sit prudentia, is unquestionably true, with regard to every thing except poetry; and I am very sure that any man of common understanding may, by proper culture, care, attention, and labour, make himself whatever he pleases, except a good poet." Chesterfield, Letter lxxxi.

      See also: https://en.m.wikisource.org/wiki/Page:The_Works_of_the_Rev._Jonathan_Swift,_Volume_5.djvu/261 as a source


      Swift, Jonathan. The Works of the Rev. Jonathan Swift. Edited by Thomas Sheridan and John Nichols. Vol. 5. 19 vols. London: H. Baldwin and Son, 1801.

  9. Oct 2022
    1. ‘What tho’ his head be empty, provided his common-place book be full?’ sneered Jonathan Swift.
    2. J.H. Plumb once showed me a set of Swift’s works given him by G.M. Trevelyan; it had originally belonged to Macaulay, who had drawn a line all the way down the margin of every page as he read it, no doubt committing the whole to memory.

      A line in the margin doesn't fit with any mnemotechniques I'm aware of, so it's more likely a method to indicate what he had read, and up to what point. Likely not an indicator of storage to memory.

  10. Jun 2022
    1. Ernest Hemingway was one of the most recognized and influentialnovelists of the twentieth century. He wrote in an economical,understated style that profoundly influenced a generation of writersand led to his winning the Nobel Prize in Literature in 1954.

      Forte is fairly good at contextualizing people and proving ethos for what he's about to present. Essentially saying, "these people are the smart, well-known geniuses, so let's imitate them".

      Humans are already good at imitating. Are they even better at it or more motivated if the subject of imitation is famous?

      See also his sections on Twyla Tharp and Taylor Swift...

      link to : - lone genius myth: how can there be a lone genius when the majority of human history is littered with imitation?

  11. May 2022
    1. put them where they fit and construct the bridge out of more linesthat come up within the last couple of years . . . ‘Blank Space’ wasthe culmination of all my best ones one after the other.”

      In an interview about how she wrote the smash hit “Blank Space,”3 Swift says, “I’ll be going about my daily life and I’ll think, ‘Wow, so we only have two real options in relationships—it’s going to be forever or it’s going to go down in flames,’ so I’ll jot that down in my notes . . . I’ll come up with a line that I think is clever like ‘Darling I’m a nightmare dressed like a daydream’ and I just pick them and

      NME, “Taylor Swift—How I Wrote My Massive Hit ‘Blank Space,’ ”NME.com, October 9, 2015, YouTube video, 3:58, https://www.youtube.com/watch?v=8bYUDY4lmls


      link to Eminem and "stacking ammo"

    2. .1

      I'd far rather have citations on note taking practice than citations on basic knowledge about Taylor Swift from Wikipedia. What the hell?!

  12. Mar 2022
  13. Jan 2022
    1. “The Hare and Many Friends”

      “The Hare and Many Friends” is the final poem in John Gay’s collection of fables written in 1727 for Prince William, Duke of Cumberland. This collection is commonly known as Fables, but it is also known as Fifty-one Fables in Verse or Fables of John Gay. Gay’s poem opens with: “Friendship, like love, is but a name,/Unless to one you stint the flame.” The poem concerns the inconstancy of friendship, as exemplified by a hare that lives on friendly terms with a group of farm animals. The hare is refused help by each of the animals as she begs them to help her escape an approaching hunter. Each of the animals gives her a different excuse of why they cannot help, eventually leaving the hare to her death at the hands of the hunter.

      “A hare, who, in a civil way, Complied with ev'ry thing, like Gay, Was known by all the bestial train, Who haunt the wood, or graze the plain: Her care was, never to offend,<br> And ev'ry creature was her friend.”

      The poem is intended to teach readers that one with many friends has no true friends, so it is better to be close friends with a few than friends with many. However, beyond the lesson of friendship, there is a darker moral lesson in the poem intended specifically for the young women reciting it. Gay creates a connection between friendship and romantic love that sets up the poem as a description of the fatality that awaits women (symbolized by the hare) if they associate with the wrong people and lose their reputations. This foreshadows the risks that readers will witness Catherine experience in her new environment when she journeys to Bath.

      Both at the time of publication and for some 150 years afterwards, the poem won widespread popularity. Despite this widespread popularity, Gay’s hopes of Court preferment were disappointed and the story was put about by his friends that the fable had a personal application. Jonathan Swift in particular wrote “Thus Gay, the Hare with many friends,/Twice seven long years at court attends;/Who, under tales conveying truth,/To virtue formed a princely youth;/Who paid his courtship with the crowd,/As far as modish pride allowed;/Rejects a servile usher’s place,/And leaves St. James’s in disgrace.” (Heneage Jesse 88). But after a prose version appeared in a collection of Aesop’s Fables, Gay’s original authorship gradually slipped from the public memory. Nevertheless, Gay’s Fables went through repeated editions, and “The Hare and Many Friends” stood out as a particular favorite. As Austen’s narrator notes, it was a common recitation piece for children and was frequently shown off as part of a young lady’s accomplishments.

      See this illustration by John Wootton of "The Hare and Many Friends."

  14. May 2021
    1. Examples of this sort of non-logical behaviour used to represent identity can be found in fiction in:

      • Dr. Seuss' The Butter Battle Book (Random House,1984) which is based on
      • the war between Lilliput and Blefuscu in Jonathan Swift's 1726 satire Gulliver's Travels, which was based on an argument over the correct end to crack an egg once soft-boiled.

      It almost seems related to creating identity politics as bike-shedding because the real issues are so complex that most people can't grasp all the nuances, so it's easier to choose sides based on some completely other heuristic. Changing sides later on causes too much cognitive dissonance, so once on a path, one must stick to it.

  15. Feb 2021
    1. In "A Letter of Advice to a Young Poet" from 1721, Jonathan Swift remarked that a commonplace book is something that “a provident poet cannot subsist without, for this proverbial reason, that great wits have short memories”.
    1. If you have large numbers, Swift lets you use underscores as thousands separators – they don’t change the number, but they do make it easier to read.

      Strange, but I guess this is to improve or help with readability yes?

  16. Nov 2020
    1. What’s a Stack? A stack is a collection of SwiftUI views that are grouped together. You can use 3 kinds of stacks with SwiftUI: VStack, a vertical stack, which shows views in a top-to-bottom list HStack, a horizontal stack, which shows views in a left-to-right list ZStack, a depth-based stack, which shows views in a back-to-front list Here’s a visual example: <img src="https://learnappmaking.com/wp-content/uploads/2020/08/swiftui-stacks-diagram.jpg" width="1125" height="450" alt="Diagram of HStack, VStack, ZStack in SwiftUI"> You can compare stacks in SwiftUI with UIStackView in UIKit. Stacks are static, so they’re different from List and table views, for example. Like other SwiftUI views, stacks can contain a maximum of 10 subviews. You can, of course, combine VStacks, HStacks and ZStacks to create complex User Interfaces.
  17. May 2020
  18. Dec 2019
    1. As such, the following two statements are equivalent:

      This is important to note when trying to wrap my head around how OAuth2 integrates with AlamoFire

    1. Executing AppleScript in a Mac app on macOS Mojave and dealing with AppleEvent sandboxing

      This is a useful article for applescript and MacOS applications

  19. Oct 2019
  20. Feb 2017
  21. Jun 2016
    1. And because it’s built to take full advantage of iPad, it’s a first-of-its-kind learning experience.

      Sure, we’ve heard that before. But there’s reason to be cautiously optimistic about this one.

  22. Jan 2016
    1. Some people are porting Apple's Swift programming language to the Raspberry Pi. At the time of this post in December 2015, they had the compiler running on RPi 2 with Ubuntu Linux. They did not yet have the Foundation libraries, the Swift Package Manager, or a version for RPi 1, and it was not certain whether it would run on Raspbian Linux.