Imported some tumblr posts

Up to 2009-04-21 from 'Musings'
This commit is contained in:
JP Hastings-Spital 2023-05-22 22:23:05 +01:00
parent 1ec6441129
commit 29d6b988e7
12 changed files with 163 additions and 4 deletions

View file

@ -0,0 +1,12 @@
---
title: Low-cost sensing with LEDs
date: 2009-04-15
draft: false
emoji: 💡
tags:
- from-tumblr
---
[hackaday.com](https://hackaday.com/2006/02/21/low-cost-sensing-and-communication-with-an-led/)
Woah, you can use LEDs as ambient light sensors? I suppose it makes sense, why didnt I think of this before! :P This could come in very handy.

View file

@ -0,0 +1,19 @@
---
title: Native ruby RAR
date: 2009-03-29
draft: false
emoji: 🗜️
images:
tags:
- ruby
- code
- github
- rar
- from-tumblr
---
[github.com](https://github.com/jphastings/unrar/)
Ive started coding a native Ruby library for extracting RAR archives. Its in early stages, but Ive placed down the code for parsing the file structure, so it can extract unencrypted, store level archives.
The ultimate aim is to allow the streaming of files from archives and the progressive extraction of files from inside archives.

View file

@ -0,0 +1,16 @@
---
title: Fire poi
date: 2009-04-19
draft: false
emoji: 🔥
tags:
- time lapse
- stop-mo
- fire
- poi
- from-tumblr
---
{{< vimeo 4162724 >}}
A short one, while I figure out the best ways to deal with fire long exposures. Theres a longer one in the works at the moment.

View file

@ -0,0 +1,22 @@
---
title: Processing and Ruby
date: 2009-04-20
draft: false
emoji: 💎
tags:
- whereontheweb
- ruby
- processing
- code
- map
- geo
- from-tumblr
---
I got stuck into [processing](https://processing.org) this weekend - Ive been meaning to try it out for some time, but I also found a fantastic little project called [ruby-processing](https://github.com/jashkenas/ruby-processing/wiki). Yes, its exactly what it sounds like geeks, its the visual control of the processing language, in Ruby!
I instantly set about making a cool little toy, and Ive got something pretty nifty almost ready for a release. Using the [carnivore](https://wiki.github.com/jashkenas/ruby-processing/r-s-g.org/carnivore/) library to watch the internet traffic going through your computer, and the fabulous free [hostip.info](https://hostip.info), I plot the global locations of the other computers your computer is talking to, in real time!
Im sure Ill be tinkering with it for a while yet, but I thought Id whet your appetites :D Watch this space!
Massive credit to the creators of Processing and Carnivore, but particularly to _jashkenas_ for creating ruby-processing and being so prompt [helping me out](https://href.li/?http://r-s-g.org/carnivore/forum/YaBB.pl?action=dereferer;url=http://processing.org/discourse/yabb2/YaBB.pl?num=1240099712/0;anch=1) with my problems building this little ditty. You may be interested in his ruby-processing demo “[A Face for Stephen Hawking](https://href.li/?http://ashkenas.com/codework/a_face_for_stephen_hawking.html)” - and to put a topical spin on this, its good to see [Dr. Hawking is in better health now](https://news.bbc.co.uk/1/hi/uk/8008767.stm).

View file

@ -0,0 +1,12 @@
---
title: Timelapse video
date: 2009-03-31T23:00:00+00:00
draft: false
emoji: 📼
tags:
- from-tumblr
---
{{< vimeo 3938435 >}}
Not perfect, but a fine start Id say!

View file

@ -0,0 +1,18 @@
---
title: Trash files in Ruby
date: 2009-03-25
draft: false
emoji: 🗑️
images:
tags:
- ruby
- code
- github
- from-tumblr
---
[github.com](https://github.com/jphastings/trash)
Ive written a ruby `File` class extension - `File.trash( filename )` - which allows you to send files to the Trash or Recycle bin (depending on your OS).
Mac support is ready, Windows support is touch-and-go (read the [wiki](https://github.com/jphastings/trash/wiki) for more info) and its been so long since I used Linux (ahh, the [Arch](https://www.archlinux.org/) days) I cant remember how the bins work over there. Anyone want to help?

View file

@ -0,0 +1,14 @@
---
title: Video snippet ideas
date: 2009-03-31T22:00:00+00:00
draft: false
emoji: 🎥
tags:
- from-tumblr
---
Ive set about trying to come up with some interesting ideas for some video snippets - flickr style, short and (dare I use the phrase?) artistic type rather than YouTube style meme style stuff.
Why mention this now? Im standing on Castle Boulevards roundabout in Nottingham with my time lapser clicking regular shots of the midnight traffic. Now to do the maths to figure out how long I should leave it running…
Would be cool to get one of those TI calculators that do BASIC programming so I can record clips with varying wait periods.

View file

@ -0,0 +1,42 @@
---
title: Where on the Web
date: 2009-04-21
draft: false
emoji: 🌍
tags:
- code
- geo
- gist
- github
- map
- processing
- ruby
- whereontheweb
- from-tumblr
---
![A terrain map of the earth over the Atlantic, showing red dots moving between the UK and other places on earth](./where-on-the-web.jpg)
Where On The Web is aliiiiive!
I built it, and it appears to work averagely well. You can see the code in [the gist on github](https://gist.github.com/98878) and soon there will be a mini-video online showing you how it all works. In the meanwhile, just enjoy the pretty colours :D
Ive uploaded a snapshot[^1] of the whole window for you to ogle at too.
If you want to play with the code, get ruby installed and then just do:
```sh
gem install ruby-processing
```
or follow [the advice here](https://github.com/jashkenas/ruby-processing/wiki/getting-started).
Then download the code from [the gist](https://gist.github.com/98878), find an equirectangular map of the earth, call it `map.jpg` and then run:
```sh
rp5 run whereOnTheWeb.rb
```
(There are more details in the gist) - Enjoy!
[^1]: Import note: Sadly this image has been lost.

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

@ -292,7 +292,7 @@ figure {
}
}
em, i, strong {
em, strong {
// Default
color: $light-color-variant;
@ -536,3 +536,7 @@ hr {
.highlight {
margin: 30px auto;
}
sup[id^="fnref:"] a {
text-decoration: none;
}

View file

@ -16,7 +16,7 @@
{{ range .Pages }}
<li class="post-item">
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>Untitled post</i>{{ end }}</span>
<span class="post-day">
{{ if .Site.Params.dateformShort }}
{{ .Date.Format .Site.Params.dateformShort }}

View file

@ -12,7 +12,7 @@
<span class="button previous">
<a href="{{ .NextInSection.Permalink }}">
<span class="button__icon"></span>
<span class="button__text">{{ .NextInSection.Title }}</span>
<span class="button__text">{{ if .NextInSection.Title }}{{ .NextInSection.Title }}{{ else }}<i>Untitled post</i>{{ end }}</span>
</a>
</span>
{{ end }}
@ -20,7 +20,7 @@
{{ if .PrevInSection }}
<span class="button next">
<a href="{{ .PrevInSection.Permalink }}">
<span class="button__text">{{ .PrevInSection.Title }}</span>
<span class="button__text">{{ if .PrevInSection.Title }}{{ .PrevInSection.Title }}{{ else }}<i>Untitled post</i>{{ end }}</span>
<span class="button__icon"></span>
</a>
</span>