76 Matching Annotations
1. Last 7 days
1. Emulating TypeScript functions

YEah, but you've also got to watch the source files to recomp0ile on changes....

"serve": "tsc -w | firebase emulators:start --only functions",


Modified and functionally watching my stuff

#### URL

1. I believe with teamwork, communication, and a clear path forward, anything is achievable in this world as long as we set our minds to it.

Knophy question: What does Aldo believe are achievable in this world?

2. I'm a person who enjoys learnin

you mean like this?

#### URL

4. Aug 2020
5. confluence.walmart.com confluence.walmart.com
1. <BranchName>: <Commit type>: <Message>

@srinivas - why would we put the branch name in the commit message?

#### URL

6. Apr 2020
7. gist.github.com gist.github.com
1. In System Report, click on "Graphics/Displays" and find out the exact model NVIDIA card you have:

https://i.imgur.com/Of4Kmuk.png

Chipset Model: AMD FirePro D300

2. NVIDIA's CUDA libraries

cuda has moved to homebrew-drivers [1] its name has alos changed to nvidia-cuda

To install:

brew tap homebrew/cask-drivers brew cask install nvidia-cuda

https://i.imgur.com/rmnoe6d.png

#### URL

8. www.jetbrains.com www.jetbrains.com
1. target server

2. Configure a remote Python interpreter via SSH credentials﻿

Setting up Webstorm to work with SSH

#### URL

9. simpletexting.com simpletexting.com

Create a hyperlink that will populate a text message

#### URL

10. zach.codes zach.codes
1. Roll your own ngrok in 15 minutes

#### URL

11. docs.python.org docs.python.org
1. # Add auto-completion and a stored history file of commands to your Python # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is # bound to the Esc key by default (you can change it - see readline docs). # # Store the file in ~/.pystartup, and set an environment variable to point # to it: "export PYTHONSTARTUP=~/.pystartup" in bash. import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(historyPath=historyPath): import readline readline.write_history_file(historyPath) if os.path.exists(historyPath): readline.read_history_file(historyPath) atexit.register(save_history) del os, atexit, readline, rlcompleter, save_history, historyPath

Enable history and sane keys in python shell

#### URL

12. Feb 2020
13. www.typescriptlang.org www.typescriptlang.org
1. Confusingly, the colon here does not indicate the type. The type, if you specify it, still needs to be written after the entire destructuring:

Destructuring an object in TypeScript with Types is very counterintituive.

#### URL

1. VTEncoderXPCService tied to QuickTime, they go hand in hand, no VTE = no recording

#### URL

15. discussions.apple.com discussions.apple.com
1. Feb 13, 2016 6:59 AM in response to DarbyW

#### URL

16. discussions.apple.com discussions.apple.com
1. sudo mv /System/Library/Frameworks/VideoToolbox.framework/Versions/A/XPCServices/VTDecoderXPCService.xpc ~/ sudo shutdown -r now

Trying this for VTEncoderService crashes QuickTime

#### URL

17. www.i4u.com www.i4u.com
1. Update 10/14/19: Proceed at your own risk. The upgrade works, but my iMac runs on high cpu on various services. I arleady disabled photoanalysisd, but now vtencoderxpcservice takes up a lot of CPU. If anywone found a solution, please post it in the comments below.

I have this same issue. It arises when attempting to do a screen recording...

#### URL

18. www.prisma.io www.prisma.io
1. import { prismaObjectType, makePrismaSchema } from 'nexus-prisma'

import {objectType} from "nexus";

as of "nexus-prisma": "^0.9.1"

2. docker-compose up -d

Error for me here...

#### URL

19. Jan 2020
20. quantum.country quantum.country
1. ​=(α∣0⟩+β∣1⟩)(γ∣0⟩+δ∣1⟩)=αγ∣00⟩+αδ∣01⟩+βγ∣10⟩+βδ∣11⟩.​

Might be the answer to an above inquiry.

2. we apply a Hadamard gate

What is the method to evaluate whether the output of a Hadamard gate should invert the bottom qubit or not?

is (0 + 1) / sqrt 2 high or low?

I'm missing something fundamental here.

3. equal

Frustrating wording here for me... Why is the word "equal" here at all. Doesn't seem to clarify anything.

4. ∣00⟩

Does this just look like

[ 1 1 0 0 ]

as in two |0> smooshed together?

5. The YYY gate is similar to the XXX gate, but instead of 111s on the off-diagonal, it has iii and −i-i−i, so it takes ∣0⟩|0\rangle∣0⟩ to i∣1⟩i|1\ranglei∣1⟩ and ∣1⟩|1\rangle∣1⟩ to −i∣0⟩-i|0\rangle−i∣0⟩:

Question for the creators: https://i.imgur.com/9XUDZPH.png

I thought the answer to this was "both" since 0 is obviously a real number.

Can you help me understand where my misunderstanding is?

Thanks so much for creating this tool. I've been having a blast learning!

6. ∥U∣ψ⟩∥2=jkl∑​Ujk∗​ψk∗​Ujl​ψl​

Lost me here...

7. quantum teleportation

I was thinking yesterday that "quantum" anything is both much more exciting and much less exciting than we've been led to believe by "Pop Science".

It seems to boil down so far to some fancy linear algebra. I'm sure time will prove me a fool for thinking this, but just want to jot my thoughts down here.

8. T

Transpose?

9. the

For Computer Scientists, Microsoft put together a primer to Quantum Computing for us here: https://www.youtube.com/watch?v=F_Riqjdh2oM

I could understand some of it (through 40m), but think this series of articles will help immensely and I'll return to it after.

10. What does it mean for a matrix UUU to be unitary? It’s easiest to answer this question algebraically, where it simply means that U†U=IU^\dagger U = IU†U=I, that is, the adjoint of UUU, denoted U†U^\daggerU†, times UUU, is equal to the identity matrix. That adjoint is, recall, the complex transpose of UUU:

Starting to get a little bit more into linear algebra / complex numbers. I'd like to see this happen more gradually as I haven't used any of this since college.

#### URL

21. en.wikipedia.org en.wikipedia.org
1. xor

⊕ is the symbol for xor

xor is true when one of the two inputs is exclusively 1.

ie:

1 ⊕ 0 = 1 0 ⊕ 1 = 1 1 ⊕ 1 = 0

#### URL

1. var socket = new WebSocket(wss://hypothes.is/ws?access_token=\${token})

Test: does this hit my WebScoket?

#### URL

1. asdfasdf | katie deykatiedey.bandcamp.com › album › asdfasdfCachedSimilarPaying

asdfasdf

#### URL

24. www.jetbrains.com www.jetbrains.com
1. Optimize imports﻿

Optimize imports on the fly in Webstorm with TypeScript

#### URL

25. overreacted.io overreacted.io
1. When we don’t feel confident in our code, it is tempting to attach our sense of self-worth and professional pride to something that can be measured.

Great code related quote by Dan Abramob

#### URL

26. Dec 2019
27. github.com github.com
1. For macOS, you can use either the loopback interface (where AppAuth will generate the redirect URI for you), or a custom scheme. To create a custom scheme redirect URI, reverse the client id to get the URI scheme, for example com.googleusercontent.apps.IDENTIFIER and, add your own path component. E.g. com.googleusercontent.apps.IDENTIFIER:/oauth2redirect/google. Note that there is only a single slash (/) after the scheme.

Vital info here for "allegedly" forming proper redirect URI with Google.

Trying it out shortly

#### URL

28. github.com github.com
1. SessionManager

#### URL

29. github.com github.com
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

#### URL

30. www.jessesquires.com www.jessesquires.com
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

#### URL

31. Nov 2019
32. medium.com medium.com
1. I would love to see voting apps that take advantage of the built-in voting tools.

What built in voting tools?

#### URL

33. Oct 2019
34. osxdaily.com osxdaily.com
1. Right-click (or Control+Click, or a Two-Finger click on trackpads) on the file or folder in the Mac Finder

This worked great MacOS 10.15.1 Beta 10/18/2019

#### URL

35. github.com github.com
1. Optimizing Swift build times

Will have to go over this sometime...

#### URL

36. stackoverflow.blog stackoverflow.blog
1. Robert Sedlack, my professor for Visual Communication Design I (who also happened to be my advisor and the driving reason why I decided to join the design program) banned two phrases during critiques in his class: “I like” and “I don’t like.”

#### URL

Nonsense.

2. I can't make an annotation on Google's documentation ( I think it's a Hypothesis bug ) but I've updated the linked code sample below to work as of 10/04/2019 with Python 3

https://gist.github.com/technoplato/4d28f4f308ea7c5fe20bd23e751e9e60

#### URL

38. opensource.com opensource.com
1. Have Homebrew manage Python 3

This was useful and worked for me.

Had to couple it with a couple source ~/.bashrc s though.

#### URL

39. github.com github.com
1. Alamofire is named after the Alamo Fire flower, a hybrid variant of the Bluebonnet, the official state flower of Texas.

I've been wondering this. I still think it's a stupid name, but at least it makes sense now.

#### URL

40. Sep 2019
41. appletoolbox.com appletoolbox.com
1. Select Options

This is what I needed in my program to automatically trigger the "onScreenshot" callback

#### URL

42. www.thomashanning.com www.thomashanning.com
1. One of the most useful features in Xcode is the Filename search. You can open it with the keyboard shortcut Shift + Command + O.

Found what I was looking for to jump to file in Xcode

#### URL

43. www.marxists.org www.marxists.org
1. 18Preface to the Third German Edition (1883)measure were quite natural for a book which had to take its factual proofs almost exclusively from British industrial relations. The last-named reason is decisiveeven to-day, especially because the corresponding relations in the world market have hardly changed and English weights and measures almost completely control precisely the key industries, iron and cotton.In conclusion a few words on Marx's art of quotation, which is so little understood. When they are pure statements of fact or descriptions, the quotations, from the English Blue books, for example, serve of course as sim

What is Marxist doctrine in a nutshell (imagine this was a good question!

#### URL

44. sviridovserg.com sviridovserg.com

Really cool, used this for the first time on my post here: https://dev.to/technoplato

#### URL

45. setapp.com setapp.com
1. Press Command+Shift+Dot

This is really cool.

I'm making a tutorial right now live and pulling my hair out due to prettier and not so much eslint.

#### URL

46. github.com github.com
1. # CocoaPods on iOS needs this extra step

I think I was missing this step, as it isn't included in the warning message from the CLI anywhere.

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.


#### URL

47. Aug 2019
48. github.com github.com
1. :ci

What in tarnation qualifies as "non-interactive"

First came across this command here: https://hyp.is/nVNK9MstEemjcsMfwFFSNQ/github.com/deltaepsilon/firebase-ssr-starter

#### URL

1. It is often useful to see the actual changes to query results between query snapshots, instead of simply using the entire query snapshot. For example, you may want to maintain a cache as individual documents are added, removed, and modified.

You can still listen for child added in Firestore

#### URL

50. Mar 2019
51. codewithhugo.com codewithhugo.com
1. const sinon = require('sinon'); const mockResponse = () => { const res = {}; res.status = sinon.stub().returns(res); res.json = sinon.stub().returns(res); return res; };

Incredibly helpful in conjunction with Chris Esplin's tutorials [0] and code [1] on TDD with Cloud Functions.

1. Steem

Test

#### URL

53. Feb 2019
54. www.gutenberg.org www.gutenberg.org
1. [First published in 1726–7.]

To: Philbert

Example question: When was Gulliver's Travels first published? a) 1776 b) 1726 c) 1830 d) 1945

#### URL

55. www.bookitprogram.com www.bookitprogram.com
1. BOOK IT! motivates children to read by rewarding their reading accomplishments with praise, recognition and pizza. The program is simple, flexible, fun and free to use in your classroom! BOOK IT! was created in 1984 and currently reaches more than 14 million students and 37,000 K-6 grade schools annually.

BOOK IT is a program by Pizza Hut.

This is how it worked when I was a kid:

Read a book. The harder, the more points you'd get from taking the quiz on the book after reading it. Cash those points in for a free pizza.

This is how knophy will work:

Read something Prove that you read something by taking a quiz. We will develop heuristics for determining the points quizzes earn in the fairest, most agreed upon way possible A user can either use those points for influence in the topic areas in which they were earned, or they can sell them for an [ERC like token OR BTC over the lightning network]

#### URL

56. outline.com outline.com
1. New

Test: where does outline mention hypothesis

#### URL

57. Jan 2019
58. nyassembly.gov nyassembly.gov
1. § 2599-bb. Abortion. 1. A health care practitioner licensed, certi- 43 fied, or authorized under title eight of the education law, acting with- 44 in his or her lawful scope of practice, may perform an abortion when, 45 according to the practitioner's reasonable and good faith professional 46 judgment based on the facts of the patient's case: the patient is within 47 twenty-four weeks from the commencement of pregnancy, or there is an 48 absence of fetal viability, or the abortion is necessary to protect the 49 patient's life or health.

This is an important detail that needs to be paid attention to.

#### URL

59. bitcoin.org bitcoin.org
1. We define an electronic coin as a chain of digital signatures.

knophy.com

Q) How does Satoshi define an electronic coin?

#### URL

60. medium.com medium.com
1. Essentially, the product we are selling is a bet that people will value earning attention, ESPECIALLY as the platform grows. As it grows, each one of those points is held onto more tightly and becomes both harder to buy (caused by one’s desire to earn attention) and easier to earn as the content base will grow exponentially. This perfect balance of the human’s desire for attention, their ability to easily create and share in a digital age, and their desire for money will form the first purposefully scarce unlimited supply of currency in the history of humanity. The key is simply not allowing money to have influence in the system.

The product knophy "sells"

#### URL

61. medium.com medium.com
1. Power Ups

More complex ways of using points in knophy

2. 7) You can use these points for site-wide influence after you’ve earned them from creating content, or you can sell them on the marketplace. On the marketplace, investors will have the opportunity to invest in knophy or in your page on knophy specifically. If your page grows in value (as determined by the market) but the value of knophy shrinks, you actually stand to beat the market by investing in your page alone. Other than a potential return on investment, the investor does not earn any privileges by investing in these points. You can think of the points kind of like stock in a company. Once the points have been sold off into the market, they will be traded on the market, and not introduced back into knophy. Users will never be able to get those points back for influence.

Here is one of the ways to use points in knophy

#### URL

62. torontosun.com torontosun.com
1. “The policy will not only protect free speech but ensure that hate speech, discrimination and other illegal forms of speech are not allowed on campus.”

#### URL

63. github.com github.com
1. however IDWpay will internally work with DAI

How does a USER acquire DAI without crypto knowledge?

I think you might address this below but figured I'd ask here as well.

#### URL

64. Dec 2018
65. www.npr.org www.npr.org
1. computer owned by Patrick Laroche of Ocala, Fla., discovered the number on Dec. 7,

Newest Mersenne Prime was discovered in Ocala, FL, very close to us.

Interesting tidbit :)

#### URL

66. www.newsweek.com www.newsweek.com
1. was exiting the room after one of the shortest press briefings of h

Annotating this to show you a demo

#### URL

67. en.wikiquote.org en.wikiquote.org
1. The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.

For Telos

Also, dude. You have to check out hypothesis annotation. It's amazing and going to really help Knophy in terms of providing evidence across the web for claims.

#### URL

1. To return data after an asynchronous operation, return a promise.

I just struggled for a few hours trying to resolve some errors about CORS and 500 INTERNAL errors.

This line is a bit misleading.

In trying to get things up and running, I was returning a simple JSON object rather than a Promise. According to what I found, even if you don't have any async work, you still need to return a Promise from your function.

#### URL

69. Nov 2018
70. patentpandas.org patentpandas.org
1. What about openly sharing work?

Interesting conundrum here...

#### URL

71. vue-hn.now.sh vue-hn.now.sh
1. I use Facebook Container is because it's an official Mozilla addon. I encouraged Mozilla to pursue a Google version, but it seems

asdf

#### URL

72. medium.com medium.com
1. Identity is formed by mimicry

Test from hypothesis annotations

#### URL

73. hypothes.is hypothes.is
1. NEW PAGENOTE

2. here are a few types of annotations that can be created with the application: Notes Create a note b

TEST