roam/20231229224724-org_roam_references.org

100 lines
6.1 KiB
Org Mode
Raw Normal View History

2023-12-30 04:42:58 +00:00
:PROPERTIES:
:ID: ec4304be-41d3-4004-8fa8-f00062725ed2
:ROAM_REFS: https://www.orgroam.com/manual.html#Refs
:END:
#+title: Org-roam references
2024-01-08 05:31:55 +00:00
* Capturing information about references in an [[id:0567a35c-3afb-4ed5-a9ec-47425c5d6f06][Org-roam]] document.
2023-12-30 04:42:58 +00:00
#+name: refs
#+begin_src emacs-lisp :results code
(org-roam-node-refs (org-roam-node-at-point))
#+end_src
#+RESULTS: refs
#+begin_src emacs-lisp
("//www.orgroam.com/manual.html#Refs")
#+end_src
#+name: refs-with-types
2024-01-08 05:31:55 +00:00
#+begin_src emacs-lisp
2023-12-30 04:42:58 +00:00
(org-roam-db-query [:select :distinct [refs:type refs:ref]
:from refs
2024-01-08 05:31:55 +00:00
:where (in refs:node-id
[$s1 ; URL
"04c424ec-b1fb-42f8-a8da-6ac9b7c2461d" ; cite:link
"6ce50155-471d-490a-baf0-865b75547611" ; @citation
])]
2023-12-30 04:42:58 +00:00
(org-roam-node-id (org-roam-node-at-point)))
#+end_src
#+RESULTS: refs-with-types
2024-01-08 05:31:55 +00:00
| cite | SusanStryker2021 |
| cite | WillKurt2718 |
| https | //www.orgroam.com/manual.html#Refs |
* Presenting reference data
#+begin_src emacs-lisp :var refs=refs-with-types :results code
refs
#+end_src
#+RESULTS:
2023-12-30 04:42:58 +00:00
#+begin_src emacs-lisp
2024-01-08 05:31:55 +00:00
(("cite" "SusanStryker2021")
("cite" "WillKurt2718")
("https" "//www.orgroam.com/manual.html#Refs"))
2023-12-30 04:42:58 +00:00
#+end_src
2024-01-08 05:31:55 +00:00
#+begin_src emacs-lisp :results code
(bibtex-completion-get-entry "BruceSterling3")
#+end_src
#+RESULTS:
#+begin_src emacs-lisp
(("=key=" . "BruceSterling3")
("=type=" . "book")
("title" . "The Hacker Crackdown: Law and Disorder on the Electronic Frontier")
("title_sort" . "Hacker Crackdown: Law and Disorder on the Electronic Frontier, The")
("author_sort" . "Sterling, Bruce")
("author" . "Bruce Sterling")
("note" . "\\#\\#\\# Amazon.com Review Bruce Sterling's classic work highlights the 1990 assault on hackers, when law-enforcement officials successfully arrested scores of suspected illicit hackers and other computer-based law-breakers. These raids became symbolic of the debate between fighting serious computer crime and protecting civil liberties. However, *The Hacker Crackdown* is about far more than a series of police sting operations. It's a lively tour of three cyberspace subcultures--the hacker underworld, the realm of the cybercops, and the idealistic culture of the cybercivil libertarians. Sterling begins his story at the birth of cyberspace: the invention of the telephone. We meet the first hackers--teenage boys hired as telephone operators--who used their technical mastery, low threshold for boredom, and love of pranks to wreak havoc across the phone lines. From phone-related hi-jinks, Sterling takes us into the broader world of hacking and introduces many of the culprits--some who are fighting for a cause, some who are in it for kicks, and some who are traditional criminals after a fast buck. Sterling then details the triumphs and frustrations of the people forced to deal with the illicit hackers and tells how they developed their own subculture as cybercops. Sterling raises the ethical and legal issues of online law enforcement by questioning what rights are given to suspects and to those who have private e-mail stored on suspects' computers. Additionally, Sterling shows how the online civil liberties movement rose from seemingly unlikely places, such as the counterculture surrounding the Grateful Dead. *The Hacker Crackdown* informs you of the issues surrounding computer crime and the people on all sides of those issues. \\#\\#\\# From Publishers Weekly Cyberpunk novelist Sterling (Involution Ocean) has produced by far the most stylish report from the computer outlaw culture since Steven Levy's Hackers. In jazzy New Journalism proE;e, sounding like Tom Wolfe reporting on a gunfight at the Cybernetic Corral, Sterling makes readers feel at home with the hackers, marshals, rebels and bureaucrats of the electronic frontier. He opens with a social history of the telephone in order to explain how the Jan. 15, 1990, crash of AT\\&T's long-distance switching system led to a crackdown on high-tech outlaws suspected of using their knowledge of eyberspace to invade the phone company's and other corporations' supposedly secure networks. After explaining the nature of eyberspace forms like electronic bulletin boards in detail, Sterling makes the hackers-who live in the ether between terminals under noms de nets such as VaxCat-as vivid as Wyatt Earp and Doe Holliday. His book goes a long way towards explaining the emerging digital world and its ethos. Copyright 1992 Reed Business Information, Inc. ")
("cover" . "~/Calibre Library/Bruce Sterling/The Hacker Crackdown\\_ Law and Disorder on the Electronic Frontier (3)/cover.jpg")
("formats" . "epub")
("file" . ":~/Calibre Library/Bruce Sterling/The Hacker Crackdown_ Law and Disorder on the Electronic Frontier (3)/The Hacker Crackdown_ Law and Disorder on the Electronic Frontier - Bruce Sterling.epub:EPUB")
("calibreid" . "3")
("isbn" . "978-05-5356-370-2")
("library_name" . "Calibre Library")
("year" . "1992")
("month" . "Jan")
("publisher" . "Bantam")
("rating" . "7")
("volume" . "1")
("size" . "301546 octets")
("tags" . "Non-Fiction, Computers, General, True Crime, Corrupt Practices, Telephone, United States, Computer Crimes, Computer Programming, Security, read")
("timestamp" . "2011-05-24")
("uuid" . "fcb75ddc-aebc-4613-b0e7-6ca02aa8eb2f")
("languages" . "eng")
("identifiers" . "goodreads:61182,google:4A8ONgAACAAJ,isbn:9780553563702,amazon:055356370X"))
#+end_src
#+begin_src emacs-lisp :var refs=refs-with-types
(mapconcat
(lambda (reference)
(let ((ref-type (car reference))
(ref-value (cadr reference)))
(cond
((string-equal ref-type "cite")
(when-let ((entry (bibtex-completion-get-entry ref-value)))
(concat "** " (cdr (assoc "title" entry)))))
(t (concat "** " ref-type ":" ref-value)))))
refs "\n\n")
#+end_src
#+RESULTS:
: ** Second Edition Transgender History: The Roots of Todays Revolution
:
: ** Get Programming with Haskell
:
: ** https://www.orgroam.com/manual.html#Refs