Difference between revisions of "User:ErsatzCulture"

From ISFDB
Jump to navigation Jump to search
(emacs setup)
(Split off dev notes into its own page; biographical info)
Line 1: Line 1:
I have a number of SF-related personal projects in various stages of completion or abandonment, many of which use a local copy of the ISFDB.
+
= Background =
  
Ones that actually got to a state that I felt brave enough to expose to the rest of the world can be found [https://sf.ersatzculture.com here].
+
I grew up in the north of England, but have spent most of the past 20+ years in London. As a kid, pretty much all of my SF-reading was courtesy of my local libraries, which meant that I read an awful lot of part-two-in-a-series books, and only recently have gotten round to reading their first installments.
  
Some bits and pieces from works-in-progress can be found in [https://twitter.com/ErsatzCulture my Twitter feed].
+
I dropped out of reading SF in the early/mid 1990s, due to a combination of finding other interests, and not being particularly enthralled by a lot of of the most heralded books and writers of that era. In the past 3 or 4 years, I've rediscovered written SF, and have been catching up on loads of stuff that I previously missed out on, as well as newer works.
  
Some of the code I use to interrogate the database can be found [https://github.com/JohnSmithDev/ISFDB-Tools on GitHub]. All of this has - as of time of writing - been written without looking at the proper ISFDB code, so doubtless there are lots of stupid errors and misconceptions as to how the database is designed. The code certainly isn't going to win any awards for quality, given that much of it is the result of blundering hacking around post midnight.
+
I don't generally engage in "real world" fandom, but I have SFnal presences on [https://twitter.com/ErsatzCulture Twitter], [https://old.reddit.com/user/_j_smith_/ Reddit], [https://en.wikipedia.org/wiki/Special:Contributions/ErsatzCulture Wikipedia] and [https://www.goodreads.com/user/show/58795260-ersatzculture Goodreads].
  
Most of my edits to ISFDB are minor data fixes or additions in order to support these personal projects.
+
= Me and ISFDB =
  
= Development notes =
 
  
== emacs setup ==
+
I have a number of SF-related personal projects in various stages of completion or abandonment, many of which use a local copy of the ISFDB.
  
My emacs setup is a long messy hackup assembled over decades, so it's not going to get shared publicly.  However, for the benefit of anyone else, here's an ISFDB-specific snippet I have to follow [[Development#Code_Format]] (I use 4-space indentation for all of my personal and work projects):
+
Ones that actually got to a state that I felt brave enough to expose to the rest of the world can be found [https://sf.ersatzculture.com here].
  
    (add-hook 'python-mode-hook
+
Some bits and pieces from works-in-progress can be found in [https://twitter.com/ErsatzCulture my Twitter feed].
          (lambda()
 
            (if (buffer-file-name)
 
                (when (or (string-prefix-p "/var/www/cgi-bin/" (buffer-file-name))
 
                          (string-prefix-p "/proj/3rdparty/isfdb-code-svn/" (buffer-file-name)))
 
                  ;; http://www.isfdb.org/wiki/index.php/Development#Coding_style
 
                  (setq tab-width 8)
 
                  (setq python-indent 8)
 
                  (setq default-tab-width 8)
 
                  (setq python-index-offset 8)
 
                  (setq python-indent-guess-indent-offset 8)
 
                  (message "Using ISFDB indentation standards")
 
                  )
 
              )
 
            )
 
          )
 
  
Obviously you'd need to switch the directory paths to wherever you've checked out the codeSetting all of those variables is almost certainly overkill, but after spending too long fighting elisp to do what I want, I haven't been inclined to reduce it down to just what is needed.
+
Some of the code I use to interrogate the database can be found [https://github.com/JohnSmithDev/ISFDB-Tools on GitHub]All of this has - as of time of writing - been written without looking at the proper ISFDB code, so doubtless there are lots of stupid errors and misconceptions as to how the database is designed.  The code certainly isn't going to win any awards for quality, given that much of it is the result of blundering hacking around post midnight.
  
Caveats:
+
Most of my edits to ISFDB are minor data fixes or additions in order to support these personal projects.
 
 
# Assumes you're using python-mode
 
# Doesn't (currently) honour the Coding style rule about honouring tabs on files that are currently tab-only, but there are actually relatively few of those - see [[Talk:Development#Code_style:_tabs_vs_spaces]]
 
 
 
I also have these lines:
 
  
    ;; and .cgi suffix (for ISFDB)
+
= My subpages on this Wiki =
    (add-to-list 'auto-mode-alist '("\\.cgi$" . python-mode))
 
  
Not sure how much they are needed, as (a) you probably shouldn't be editing the CGI versions, and (b) the shebang line might be enough to clue emacs that these are Python files without needing to match the suffix.
+
* [[User:ErsatzCulture/DevelopmentNotes]] - how I have my local developer environment set up, notes about the code/database/etc
 +
* [[User:ErsatzCulture/Tagging]] - some work-in-progress tools and reports about tagging in ISFDB

Revision as of 06:47, 4 October 2019

Background

I grew up in the north of England, but have spent most of the past 20+ years in London. As a kid, pretty much all of my SF-reading was courtesy of my local libraries, which meant that I read an awful lot of part-two-in-a-series books, and only recently have gotten round to reading their first installments.

I dropped out of reading SF in the early/mid 1990s, due to a combination of finding other interests, and not being particularly enthralled by a lot of of the most heralded books and writers of that era. In the past 3 or 4 years, I've rediscovered written SF, and have been catching up on loads of stuff that I previously missed out on, as well as newer works.

I don't generally engage in "real world" fandom, but I have SFnal presences on Twitter, Reddit, Wikipedia and Goodreads.

Me and ISFDB

I have a number of SF-related personal projects in various stages of completion or abandonment, many of which use a local copy of the ISFDB.

Ones that actually got to a state that I felt brave enough to expose to the rest of the world can be found here.

Some bits and pieces from works-in-progress can be found in my Twitter feed.

Some of the code I use to interrogate the database can be found on GitHub. All of this has - as of time of writing - been written without looking at the proper ISFDB code, so doubtless there are lots of stupid errors and misconceptions as to how the database is designed. The code certainly isn't going to win any awards for quality, given that much of it is the result of blundering hacking around post midnight.

Most of my edits to ISFDB are minor data fixes or additions in order to support these personal projects.

My subpages on this Wiki