profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/whatacold/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Guangwang Huang whatacold China https://whatacold.io/about/ Clojure, Emacs and Python!

whatacold/babashka-tools 6

A collection of Babashka tools

whatacold/libae 1

The Redis network library

whatacold/ace-link 0

Quickly follow links in Emacs

whatacold/aframe-particleplayer-component 0

:sparkles: Play pre-simulated particle systems in A-Frame :boom:

whatacold/avy 0

Jump to things in Emacs tree-style

whatacold/Awesome-CV 0

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application

whatacold/awesome-pair 0

Auto parenthesis pairing with syntax table

whatacold/awesome-regex 0

A curated collection of awesome Regex libraries, tools, frameworks and software

whatacold/beautifulhugo 0

Theme for the Hugo static website generator

whatacold/blog-demo-code 0

Contains demo code of my blog, http://whatacold.com

issue closedhalogenica/beautifulhugo

Empty RSS href in posts

The RSS href in posts are empty with html:

<a href="" title="RSS">
              <span class="fa-stack fa-lg">
                <i class="fas fa-circle fa-stack-2x"></i>
                <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
              </span>
            </a>

For comparison,

  • take https://whatacold.io/blog/2019-11-25-start-a-new-urxvt-terminal-on-emacs/ as an example, the RSS link points to this post instead
  • but for the main page https://whatacold.io/blog/ , the link is ok, ending with rss.xml

But it's okay on the homepage and section pages.

closed time in 4 days

whatacold

issue commenthalogenica/beautifulhugo

Empty RSS href in posts

OK, the workaround I took was not to show RSS on posts.

whatacold

comment created time in 4 days

create barnchwhatacold/reagent-boot-template

branch : master

created branch time in 9 days

created repositorywhatacold/reagent-boot-template

A simple project to get started with Reagent and boot.

created time in 9 days

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha b7d9d4ffcc695da922343250cae21938ff544f02

new post

view details

push time in 10 days

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 9ac0028b2bdea87e6aa55d61bf8a0e54467c1077

New post

view details

push time in 10 days

push eventwhatacold/babashka-tools

Guangwang Huang

commit sha 82c697260f4de5351d61c9c831eb0f7a5892a513

Adjust function docstrings.

view details

Guangwang Huang

commit sha 1068c3ac0c241e553e34118d936333b325f7829a

illustrate.clj: support blank strings.

view details

Guangwang Huang

commit sha 8f6086f489e612a9f63de4cf21cd6d33aa3f7442

illustrate.clj: support to illustrate org-mode files.

view details

push time in 10 days

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 30887da2232096ec9c4ad15de8fd71d585d91a1e

New post.

view details

push time in 24 days

issue commentreagent-project/reagent-template

lein new reagent foo doesn't work

Just confirmed that the problem is caused by the mirrors. After removing mirrors from ~/.lein/profiles.clj, lein new reagent-frontend myproject works.

FYI, now ~/.m2/repository/reagent-frontend/lein-template/resolver-status.properties is as follows:

#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
#Sun Sep 05 10:28:09 CST 2021
maven-metadata-clojars.xml.lastUpdated=1630808889985
maven-metadata-central.xml.lastUpdated=1630808888850
maven-metadata-central.xml.error=
borkdude

comment created time in 24 days

issue commentreagent-project/reagent-template

lein new reagent foo doesn't work

Thanks.

After mv ~/.m2/repository/reagent-frontend/{,.bak}, it still doesn't work, and the error message is same.

But I notice that a new ~/.m2/repository/reagent-frontend/ is created:

# pwd is ~/.m2/repository
$ tree reagent-frontend/
reagent-frontend/
└── lein-template
    └── resolver-status.properties

$ cat reagent-frontend/lein-template/resolver-status.properties
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
#Tue Aug 31 00:36:44 CST 2021
maven-metadata-tsinghua.xml/@192.168.1.1\:12345>@default-tsinghua-https\://mirrors.tuna.tsinghua.edu.cn/clojars/.lastUpdated=1630341404261
maven-metadata-aliyun.xml.error=Could not transfer metadata reagent-frontend\:lein-template/maven-metadata.xml from/to aliyun (https\://maven.aliyun.com/repository/public/)\: Checksum validation failed, no checksums available
maven-metadata-aliyun.xml/@192.168.1.1\:12345>@default-aliyun-https\://maven.aliyun.com/repository/public/.lastUpdated=1630341404488
maven-metadata-tsinghua.xml.error=Could not transfer metadata reagent-frontend\:lein-template/maven-metadata.xml from/to tsinghua (https\://mirrors.tuna.tsinghua.edu.cn/clojars/)\: Checksum validation failed, expected f5a8f4da358ee257ead04c314c047dedefbe2962 but is 87caff4a2f9beaad6c80c4f015ac1db0435d27b3

In the properties file, 192.168.1.1:12345 is a http proxy, and tsinghua & aliyun are mirrors that I use.

Looks like a mirror problem?

borkdude

comment created time in a month

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 0cfa9598d9a2124bc3d70a90312a1a92c7a237f4

new zh-cn post about i3wm, emacs frames.

view details

push time in a month

issue commentreagent-project/reagent-template

lein new reagent foo doesn't work

Hi,

I also ran into this today when I was trying to play with reagent, but failed (lein version 2.9.6):

$ lein new reagent-frontend play-reagent-frontent
Failed to resolve version for reagent-frontend:lein-template:jar:RELEASE: Could not find metadata reagent-frontend:lein-template/maven-metadata.xml in local (/home/whatacold/.m2/repository)
Failed to read artifact descriptor for reagent-frontend:lein-template:jar:RELEASE
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template reagent-frontend on the classpath.

But lein new reagent foo works, what could be the problem?

borkdude

comment created time in a month

issue commentbabashka/babashka

Method getName on class java.lang.reflect.Method not allowed

Wow, thanks for the quick fix.

It adds about 10mb in the macOS native image when I add this class. I could try restrict access to the .getName method. Perhaps it's better to ask: why would it be important to have this in bb?

Sorry for the late reply.

I was not sure if this is an issue, but now I understand that bb has a consideration to limit its size. I found this error when I played around with Clojure and bb, so I can't say I must have getName, but it would be nice to explore Java methods in bb REPL if possible.

whatacold

comment created time in a month

issue openedbabashka/babashka

Method getName on class java.lang.reflect.Method not allowed

version

Babashka v0.5.1, downloaded from https://github.com/babashka/babashka/releases/download/v0.5.1/babashka-0.5.1-linux-amd64.tar.gz.

platform

Linux

problem

I'm not 100% sure if this is a bug, but it works on Clojure clj with the following code snippet:

(defn class-methods [x]
 (let [c (if (class? x) x (class x))]
  (-> (map #(.getName %1)
           (.getMethods c))
      ;; seq
      sort
      distinct)))

(class-methods \a)

It will return something like ("charCount" "charValue" ... "valueOf" "wait")

repro

Here is the evaluations of the code snippet in bb:

$ bb
Babashka v0.5.1 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (defn class-methods [x]
 (let [c (if (class? x) x (class x))]
  (-> (map #(.getName %1)
           (.getMethods c))
      ;; seq
      sort
      distinct)))
#'user/class-methods

user=> (class-methods \a)
Method getName on class java.lang.reflect.Method not allowed! [at <repl>]

expected behavior

Return the Java class methods as in clj.

created time in 2 months

issue commenthalogenica/beautifulhugo

Empty RSS href in posts

Thanks for the pointer, I also use this version.

I'm going to build your sites and see how it works, if I have the time.

whatacold

comment created time in 2 months

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 84e17b00aee2234a0f68812377c7db00b36f1d19

Post update.

view details

push time in 2 months

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 283538fe44acc3139f99186fb1e1f3486d924275

Post update.

view details

push time in 2 months

push eventwhatacold/whatacold.github.io

Guangwang Huang

commit sha 7991f61819a61f0df850c523317a3c0ae74e9e46

New posts.

view details

Guangwang Huang

commit sha cfd5b26323e8a586a610163f62c5e8ddca45e763

Add css.

view details

push time in 2 months

push eventwhatacold/babashka-tools

Guangwang Huang

commit sha 21470dc0ddeee1b1a6b8cd28d243f44e89ceabe0

Update docs.

view details

push time in 2 months

issue commenthalogenica/beautifulhugo

Empty RSS href in posts

Woops, this is a duplicate of #330 .

Give a try to Seems like this snippet is what it was before I worked-around it.

My understanding is that hugo doesn't assign {{ with .OutputFormats.Get "RSS" }} internally, so there is nothing beautifulhugo can do here. But I don't have the energy to investigate it further on the hugo code base.

BTW, which hugo version do you use?

whatacold

comment created time in 2 months

push eventwhatacold/babashka-tools

Guangwang Huang

commit sha ae8dd27325cef233a9ff2f9ff3dcfe4dd141f1af

Rwrite illustrate.clj using rewrite-clj.

view details

Guangwang Huang

commit sha 79dbf0ddb23e553b82d2bf9030ed241bf288c6be

better file suffix naming.

view details

push time in 2 months

issue commenthalogenica/beautifulhugo

Empty RSS href in posts

I don't get it, maybe I simply don't show it on post pages, by hacking that part of layouts/partials/footer.html to as follows:

          {{ if .Site.Params.rss }}
          {{ with .OutputFormats.Get "RSS" }}
          <li>
              <a href="{{ .RelPermalink }}" title="RSS">
                  <span class="fa-stack fa-lg">
                      <i class="fas fa-circle fa-stack-2x"></i>
                      <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
                  </span>
              </a>
          </li>
          {{ end }}
          {{ end }}
whatacold

comment created time in 2 months

issue commenthalogenica/beautifulhugo

Plan to upgrade bootstrap?

@rterakedis Thanks for you hark work!

Do you have a branch already, so that people wanting to test will set it up quickly?

whatacold

comment created time in 2 months

issue commenthalogenica/beautifulhugo

Empty RSS href in posts

Still not working after trying:

  1. using your beautifulhugo theme commit https://github.com/RoneoOrg/beautifulhugo/tree/74363aabe231e5d7d0a14f780ec8fc077f822f2c
  2. using the latest hugo version hugo v0.87.0-B0C541E4+extended

It looks like {{ with .OutputFormats.Get "RSS" }} is false for blog post, but I can't figure out why:(

whatacold

comment created time in 2 months

startedlread/test-doc-blocks

started time in 2 months

push eventwhatacold/babashka-tools

Guangwang Huang

commit sha 3f7e63979d999d0e6db03536db2a2c5206615be7

Update docs.

view details

push time in 2 months

push eventwhatacold/babashka-tools

Guangwang Huang

commit sha de839d0dadf15ea31e9cd43170d56231dab35e75

Add illustrate.clj.

view details

push time in 2 months

startedbabashka/book

started time in 2 months

issue commentabo-abo/swiper

counsel-imenu doesn't see leaf org-mode entries with which-func and pdf-tools

No worries, at least I can work-around it, so it's not a big problem :)

whatacold

comment created time in 2 months

issue commentabo-abo/swiper

counsel-imenu doesn't see leaf org-mode entries with which-func and pdf-tools

Haven't used M-x imenu directly before, but it seems it works :(

I made a gif to demonstrate this: t

whatacold

comment created time in 2 months