mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-08 17:15:56 +01:00
Imported some tumblr posts
Up to 2009-04-21 from 'Musings'
This commit is contained in:
parent
1ec6441129
commit
29d6b988e7
12 changed files with 163 additions and 4 deletions
12
content/posts/imported-posts/low-cost-sensing-with-leds.md
Normal file
12
content/posts/imported-posts/low-cost-sensing-with-leds.md
Normal 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 didn’t I think of this before! :P This could come in very handy.
|
|
@ -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/)
|
||||
|
||||
I’ve started coding a native Ruby library for extracting RAR archives. Its in early stages, but I’ve 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.
|
16
content/posts/imported-posts/poi.md
Normal file
16
content/posts/imported-posts/poi.md
Normal 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. There’s a longer one in the works at the moment.
|
22
content/posts/imported-posts/processing-and-ruby.md
Normal file
22
content/posts/imported-posts/processing-and-ruby.md
Normal 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 - I’ve 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 I’ve 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!
|
||||
|
||||
I’m sure I’ll be tinkering with it for a while yet, but I thought I’d 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).
|
12
content/posts/imported-posts/timelapse.md
Normal file
12
content/posts/imported-posts/timelapse.md
Normal 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 I’d say!
|
18
content/posts/imported-posts/trash-files-in-ruby.md
Normal file
18
content/posts/imported-posts/trash-files-in-ruby.md
Normal 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)
|
||||
|
||||
I’ve 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 can’t remember how the bins work over there. Anyone want to help?
|
14
content/posts/imported-posts/video-snippet-ideas.md
Normal file
14
content/posts/imported-posts/video-snippet-ideas.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
title: Video snippet ideas
|
||||
date: 2009-03-31T22:00:00+00:00
|
||||
draft: false
|
||||
emoji: 🎥
|
||||
tags:
|
||||
- from-tumblr
|
||||
---
|
||||
|
||||
I’ve 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? I’m standing on Castle Boulevard’s 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.
|
42
content/posts/imported-posts/where-on-the-web/index.md
Normal file
42
content/posts/imported-posts/where-on-the-web/index.md
Normal 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
|
||||
---
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||
I’ve 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.
|
BIN
content/posts/imported-posts/where-on-the-web/where-on-the-web.jpg
Executable file
BIN
content/posts/imported-posts/where-on-the-web/where-on-the-web.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
|
@ -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;
|
||||
}
|
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue