dhermes / bossylobster-blog Goto Github PK
View Code? Open in Web Editor NEWContent, Settings and Build for my Blog
License: Apache License 2.0
Content, Settings and Build for my Blog
License: Apache License 2.0
This is a sprout off of #16
Also, determine if attribute is needed / possible for hosted images linked to (but not shown).
https://gist.github.com/dhermes/d83fe28c1262e084356d
Could also use as an excuse to learn D3.js or something else to allow interactive animations
In 'get_katex`, store output that is repeated such as
{{ get_katex("n = d_0, d_1 d_2 d_3, d_4 d_5 d_6, d_7 d_8 d_9", blockquote=True) }}
This is the Weyl group of the exceptional root system F4
.
https://github.com/dhermes/berkeley_math/tree/master/finite_groups_lie_type (private repo)
See eb6a44f
Reason: Serving a single HTML page is much preferred to loading many PNGs (though they are all 4kb, so many not big deal).
Matrices: KaTeX/KaTeX#43
Align Environment: KaTeX/KaTeX#61
\equiv
: KaTeX/KaTeX#151
I also need to use it for \widetilde
.
It's possible to make them via
pstoedit -f plot-svg -dt -ssp 84.ps 84.svg
and to embed via
<img src="/path/to/file.svg" alt="SVG test">
My first attempt at this resulted in a non-transparent background, so the flags need some tweaking.
Some other possibilities
pdftocairo -svg latexdoc.pdf output.svg
pdf2svg file.pdf file.svg
For example, in 2014-07-29-bayes-law-primer.template
the line
{{ get_katex("\\text{Pr}(X) = \\text{Pr}(X \\text{ and } Y_1 \\text{ both occur}) + \\text{Pr}(X \\text{ and } Y_2 \\text{ both occur}) + \\text{Pr}(X \\text{ and } Y_3 \\text{ both occur}).", blockquote=True) }}
is too long for even a large laptop screen.
May want a strategy for preserving old comments or maybe just link to old
bossylobster.blogger.com (not under bossylobster.com domain)
if people care
Something in the generated index.html
causes the add to get prematurely cut off (at least on localhost):
(For future reference, the far left is /all_posts.html
, which is a non-article, the middle is an article and the far right is /
.)
Temporarily dealing with this by only having Ads on articles:
dhermes/pelican-octopress-theme@92afc8c
Want to make sure the custom fork does not lag behind the official version.
It may be necessary to use a different than after_success
hook to send an email.
Currently turned off in pelicanconf.py
This is automatic for the stored images used for get_latex_img
Round-off of 1 / q**4
confused me for days for q ~= 0
.
Roots in programming. Asking "why?" instead of just jumping into a nasty hack.
e.g. "Send more people to college" could be reformulated into "Fix the job market, send less to college, get better signals for employers"
Anonymous recommend the CSS changes:
.katex { font-size: 0.9em; } [the maths are too big]
blockquote { font-size: inherit; } [i.e., remove the 1.2em -- also too big]
h4 { font-size: 1.3em; } [not big enough to stand out as proper headers]
I.e. have
IMG1 | IMG2
instead of
IMG1
IMG2
Currently it is:
[About Bossy Lobster](https://profiles.google.com/114760865724135687241)
whereas the HTML was
<a href="https://profiles.google.com/114760865724135687241" rel="author" style="display: none;">About Bossy Lobster</a>
https://gist.github.com/dhermes/c79846c6074b938b2e10
Also
Maybe give a tiny refresher on IEEE:
import struct
def f(val):
return ''.join([bin(ord(c))[2:].zfill(8) for c in struct.pack('>d', val)])
def g(bits):
z = [bits[i:i + 8] for i in xrange(0, 64, 8)]
z = [int(c, 2) for c in z]
z = ''.join([chr(c) for c in z])
return struct.unpack('>d', z)[0]
def h(s, e, m):
return g(s + e + m)
h('0', '1' * 11, '1' + '0' * 51)
See ffacee2
In particular, just include PNG screen shots for expressions which require mathbb
.
Tracking on KaTeX/KaTeX#42
From within the dhermes.github.io
output repo:
$ git ls-files | grep 2.html$
2011/08/conways-topograph-part-2.html
2011/08/finding-fibonacci-golden-nuggets-part-2.html
page/2.html
tag/algebra2.html
tag/app-engine2.html
tag/google-app-engine2.html
tag/math2.html
tag/mathematics2.html
tag/number-theory2.html
tag/python2.html
$
$ git ls-files | grep 3.html$
2011/08/conways-topograph-part-3.html
page/3.html
tag/math3.html
tag/python3.html
$
$ git ls-files | grep 4.html$
404.html
page/4.html
I would like to be a single tag/math.html
, tag/python.html
, etc.
For example, pushing the output to the gh-pages
branch results in:
http://dhermes.github.io/bossylobster-blog/
Could make
https://github.com/dhermes/bossylobster-blog/blob/master/update_pages_repo.sh
include a check whether in master
and in a PR like:
https://github.com/GoogleCloudPlatform/gcloud-python/blob/53db759f5292024455f3c365f4691f2d367c8d0b/scripts/merge.sh#L22
It may be possible to just check
site:blog.bossylobster.com
For example a build which only added an apostrophe decided to re-build all the templates (this already fixed). This is not necessary.
A simple hack could be to use TRAVIS_COMMIT_RANGE
(it is not set if the parent commit is the last one built by Travis). This only works because we only build on non-PRs in master
.
Even more extreme is re-building for parts of the repo that don't change the blog content in any way.
Currently takes to
https://www.google.com/search?q=site%3Ablog.bossylobster.com&q={QUERY}
However, this immediately gets redirected to
https://www.google.com/search?q=site%3Ablog.bossylobster.com&q={QUERY}#q={QUERY}
which is equivalent to
https://www.google.com/search?q={QUERY}
Should instead be
https://www.google.com/search?q=site%3Ablog.bossylobster.com+{QUERY}
https://github.com/dhermes/bossylobster-blog/blob/master/drafts/2014-12-02-hard-work-does-not-exist.md
https://github.com/dhermes/bossylobster-blog/tree/add-hard-work-post
https://github.com/dhermes/bossylobster-blog/blob/master/drafts/2014-12-10-hard-work-does-not-exist.md
I'll use this thread as drop in ideas (before they are fully formed).
bossylobster.com is supposed to point to www
but currently gives a Google 404 (probably related to where App Engine is hosted):
It seems I probably made a CNAME alias instead of the redirect from bossylobster.com/{page}
to www.bossylobster.com/{page}
I was intending.
Also currently breaks bossylobster.com/teaching
for my students.
This is needed since the blogger dashboard will no longer be around
Beginning of an animation to explain how butterfly works.
https://gist.github.com/dhermes/c82a2f7d9233eb0fd6aa
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.