Introduction
Introduction Statistics Contact Development Disclaimer Help
tilde.team_bashblog.rss.xml - sfeed_tests - sfeed tests and RSS and Atom files
git clone git://git.codemadness.org/sfeed_tests
Log
Files
Refs
README
LICENSE
---
tilde.team_bashblog.rss.xml (10462B)
---
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="ht…
3 <channel><title>~evn/blog/</title><link>https://tilde.team/~evn/blog/ind…
4 <description>tilde-ing about</description><language>en</language>
5 <lastBuildDate>Sat, 20 Jul 2019 13:25:28 -0400</lastBuildDate>
6 <pubDate>Sat, 20 Jul 2019 13:25:28 -0400</pubDate>
7 <atom:link href="https://tilde.team/~evn/blog/feed.rss" rel="self" type=…
8 <item><title>
9 <a href="https://tilde.team/~evn/pumpnow/">Pumpnow</a>: A Simple Web Pag…
10 </title><description><![CDATA[
11
12 <p>My partner, Julia, and I have been learning to make pumpernickel (a
13 dense German style of rye bread). It doesn't require too much work,
14 but the baking process takes about three days from start to
15 finish. We've been using <a href="https://www.thebreadshebakes.com/2014/…
16 which is excellent, but as inexperienced bakers we found the
17 terminology sometimes confusing. </p>
18
19 <p>I wanted to re-write the recipe in terminology and units that were
20 convenient for us. I also wanted to make a tool that would make
21 scheduling the different parts of the process easier. Mostly I wanted
22 to tinker. I thought a simple web page would be just what I needed;
23 and since I'm not that familiar with the nuts and bolts of the web
24 (HTML and JavaScript) I could learn a few things along the way. </p>
25
26 <p>I typed out the recipe in my own words, wrapped it in some basic HTML
27 tags. I put placeholders into the HTML next to each of the recipe
28 steps where I wanted the time and day of the week to go. I wrote some
29 simple JavaScript to get the time that the web page was loaded, use
30 that as the start time, and replace the time and day placeholders in
31 the HTML with times offset from the page load time. This worked pretty
32 well. It answered the question "If I start baking now when will I have
33 to do the other steps in the recipe?" I found myself usually
34 following that question with an other one: "What if I start baking
35 tomorrow morning instead?" Also, the system was pretty fragile. I had
36 to leave a browser tab open during the whole three-day process to not
37 lose the timing of the steps. If I ever reloaded the page it would
38 regenerate all the times and days based on the page load time. At this
39 point Julia said I had just created a tool to talk myself out of baking
40 pumpernickel. She was probably right. I needed to get fancier, but
41 minimally fancier. </p>
42
43 <p>I decided to use <a href="https://html-online.com/articles/get-url-pa…
44 to specify the starting day of the week and time. If I were to start
45 baking at 11am on a Saturday he URL would look like this:
46 "pumpnow/?day=saturday&amp;time=11:00". This way I could specify a start
47 time, and then bookmark a page that would always load with the same
48 times for the steps. Implementing this required a lot of futzing
49 around with time and date string formatting and a little hating
50 JavaScript. (How is there no function to pad a string with a given
51 character in the standard library?). Once that was working I added
52 pull-down menus to the top of the page so I didn't need to manually
53 type days and times into the URL bar, and a button to go to the URL
54 set up by the pull-down menus. </p>
55
56 <p>With that my little project was complete. I got a little more familiar
57 with how the basics of web technologies work. I had some fun. Yes,
58 this is my idea of fun. Making new things is almost always a good
59 time. I didn't learn to love JavaScript, but because it's built in to
60 browsers it's a quick and easy way to add some logic to simple things
61 like recipes. Both bread baking and web page making can be simpler
62 than you think. Give them a try if you think they might be fun. Julia
63 and I still have some room for improvement in our pumpernickel baking,
64 but we're getting better. We might bake you a loaf one day if you like. …
65
66 <p>The source code for the pumpnow page is stored
67 <a href="https://git.sr.ht/~evn/pumpnow">here</a>. For the time being t…
68 pumpnow page itself is living on the tilde.team server
69 <a href="https://tilde.team/~evn/pumpnow/">here</a>. Thanks to Ben for r…
70 tilde.team and giving me an easy place for internet tinkering. </p>
71
72 <p>I went down a bit of a rabbit hole looking into the legality of
73 posting recipes copied from others. It seems like recipes (mostly) (I
74 think) can't be copyrighted. Nonetheless I emailed the person who
75 wrote the recipe and asked if she had any objections to me posting a
76 version of it. I haven't heard from her yet. </p>
77
78 <p>tags: <a href='tag_baking.html'>baking</a>, <a href='tag_web.html'>we…
79 <!-- text end -->
80 ]]></description><link>https://tilde.team/~evn/blog/a-hrefhttpstildeteam…
81 <guid>https://tilde.team/~evn/blog/./a-hrefhttpstildeteamevnpumpnowpumpn…
82 <dc:creator>~evn</dc:creator>
83 <pubDate>Sat, 20 Jul 2019 13:23:30 -0400</pubDate></item>
84 <item><title>
85 Canadian Weather Forecasts on my Tildepage
86 </title><description><![CDATA[
87
88 <p>I wrote a little script to parse Environment Canada's weather forecas…
89 Canada and publish a summary to my tilde.team site. </p>
90
91 <p><a href="https://tilde.team/~evn/squamish_forecast.html">Check it out…
92
93 <p>I wrote it in <a href="https://www.lua.org/">Lua</a> because I'd like…
94 it; and its reputation for being lighweight makes it seem like a good fi…
95 tildeverse projects. </p>
96
97 <p>Environment Canada publishes weather forecasts in RSS feeds. Links to…
98 be found on the forecast page for any Canadian city or town, under the "…
99 section. </p>
100
101 <p>The script parses out just a short text description of the current we…
102 and the forecasts for the next six days. It throws it all in a simple HT…
103 adds some little three-character ASCII icons representing the weather. F…
104 if the word 'snow' occurs in the forecast there will be a "<em>*</em>" n…
105 (The asterisks represent snowflakes.) </p>
106
107 <p>I wrote it in Lua 5.1. It requires the <a href="https://github.com/br…
108 library to retrieve documents from the web over HTTPS and
109 <a href="https://github.com/manoelcampos/xml2lua">xml2lua</a> to parse t…
110 of these can be installed using Luarocks. See the
111 <a href="https://tilde.team/wiki/?page=lua">tilde.team wiki</a> for deta…
112 tilde.team. </p>
113
114 <p>It uses the dracula.css stylesheet from tilde.team. </p>
115
116 <p>It should be really easy to adapt to different Canadian cities. Just …
117 "feedUrl" variable to the RSS feed for your local forecast and change th…
118 "outputPath" variable so that it spits the HTML output to somewhere in y…
119 public_html folder. </p>
120
121 <p>Adapting it to read forecast data from other sources would be a littl…
122 but still should be pretty easy. If you think this is cool hack away and…
123
124 <p>Here's the <a href="https://git.sr.ht/~evn/lua-weather-squamish/">sou…
125
126 <p>tags: <a href='tag_weather.html'>weather</a>, <a href='tag_forecast.h…
127 <!-- text end -->
128 ]]></description><link>https://tilde.team/~evn/blog/canadian-weather-for…
129 <guid>https://tilde.team/~evn/blog/./canadian-weather-forecasts-on-my-ti…
130 <dc:creator>~evn</dc:creator>
131 <pubDate>Sun, 13 Jan 2019 23:46:54 -0500</pubDate></item>
132 <item><title>
133 My First Brush With Tilde.Team
134 </title><description><![CDATA[
135
136 <p>tags: <a href='tag_tilde-team.html'>tilde-team</a>, <a href='tag_bb.h…
137 <p>The official documentation got me painlessly registered and loged int…
138 At login I was greeted with a slick login message, and a bar at the bott…
139 that weechat and a mail client were running in different tabs, but since…
140 with byobu or with tmux, I hadn't the faintest idea how to switch to the…
141 was not set up to send F-keys through SSH (I'm not even sure if that's p…
142 use byobu's F-key shortcuts.</p>
143
144 <p>In case anyone else finds themselves in a similar situation here's th…
145 switch tabs: <br />
146 '&lt; ctrl > a &lt; N >' <br />
147 where '&lt; N >' is the number of the tab you'd like to switch to.</p>
148
149 <p>Happy fiddling!</p>
150
151 <p>Update: The terminal emulator I was using was qterminal. I connected …
152 (Sakura)[https://launchpad.net/sakura] terminal emulator and the F keys …
153 sure there's something I could have configured in qterminal's settings t…
154
155 <!-- text end -->
156 ]]></description><link>https://tilde.team/~evn/blog/my-first-brush-with-…
157 <guid>https://tilde.team/~evn/blog/./my-first-brush-with-tildeteam11261.…
158 <dc:creator>~evn</dc:creator>
159 <pubDate>Wed, 02 Jan 2019 23:00:11 -0500</pubDate></item>
160 <item><title>
161 My First Brush With Tilde.Team
162 </title><description><![CDATA[
163
164 <p>tags: <a href='tag_tilde-team.html'>tilde-team</a>, <a href='tag_bb.h…
165 <p>The official documentation got me painlessly registered and loged int…
166 At login I was greeted with a slick login message, and a bar at the bott…
167 that weechat and a mail client were running in different tabs, but since…
168 with byobu or with tmux, I hadn't the faintest idea how to switch to the…
169 was not set up to send F-keys through SSH (I'm not even sure if that's p…
170 use byobu's F-key shortcuts.</p>
171
172 <p>In case anyone else finds themselves in a similar situation here's th…
173 switch tabs: <br />
174 '&lt; ctrl > a &lt; N >' <br />
175 where '&lt; N >' is the number of the tab you'd like to switch to.</p>
176
177 <p>Happy fiddling!</p>
178
179 <!-- text end -->
180 ]]></description><link>https://tilde.team/~evn/blog/my-first-brush-with-…
181 <guid>https://tilde.team/~evn/blog/./my-first-brush-with-tildeteam.html<…
182 <dc:creator>~evn</dc:creator>
183 <pubDate>Sat, 29 Dec 2018 01:21:04 -0500</pubDate></item>
184 </channel></rss>
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.