f-log

just another web log

14 Jul 2019:
github project page magic branching
Another very quick how-to setup your own Github project page

Create a new new branch in your existing repo

git checkout -b gh-pages
gh-pages is a special magic branch name for creating github pages

Now create an index.html and commit and push it.

git add index.html; git commit -m "index.html placeholder"
git push origin gh-pages


Note how I explicitly added index.html and not *? That was because I only want that single file on the pages site at the moment.

Wait a few moments and your new page will be ready at
https://username.github.io/projectname
e.g.
https://robgithub.github.io/AnagramSharkAttackJS-E/

Got all this from a handy guide at Thinkful

Now the one bit that Thinkful did not detail.

How to get back to my Master branch I was previously working on.
git checkout master
and you can use
git status
to check which branch you are currently on at anytime.
14 Jul 2019:
github user page how to magic repo
Very quick how-to setup your own Github user page

Create a new repo and name it

username.github.io
(obviously setting the username bit to be your username)

Also, do not get confused with the GitHub create repo page.
username/ [                    ]
you still need the username e.g.
username/ [username.github.io ]

Clone the new repo to your machine.
git clone https://github.com/username/username.github.io.git
(change both username instances)

Now create an index.html and commit and push it.

git add *; git commit -m "index.html placeholder"
git push -u origin master


Wait a few moments and your new page will be ready at
https://username.github.io/
e.g.
https://robgithub.github.io/

Got all this from a handy guide at Thinkful
14 Jul 2019:
ramming extra so dimm into hp blocked
Time for a rant;

I have a second hand, reconditioned HP Pavilion DV2000 laptop, that I use for Linux testing and it is slooooow.

Did not want to invest in an SSD, so I looked into upgrading the memory. HP's site reports this model comes as 1GB, upgradable to a maximum of 2GB.

In Ubuntu I run

free -g
and get back 1

Quick Amazon search and I have ordered a new 1GB(very specific model) Dimm(Direct Inline Memory Module) £7.88(INC. P&P and VAT). 24hrs later I have it in my hand.

Open up the laptop(has nice easy access to the Dimm bay) and ...

There are two Dimms ... maybe they are 512MB each?

Nope both are 1GB.

Boot into BIOS, 1024MB ????

Re-seat memory Boot into BIOS, 2048MB, phew!

Back into Ubuntu ...

free -g
and get back 1

uh oh

free -m
and get back 1984

erm, so it would have never shown 2GB?

exactly the same with sudo

Now I need to go on a crusade to find out why Linux is reporting 2GB RAM as 1984MB

is it GB, Gb, gb GiB ?

sudo lswh -c memory
clearly shows two slots each with 1GiB

free -h
shows 1.9G

So, I now have a spare 1G of RAM that may or may not be 1GB or 1GiB
Wikipedia explains GB GiB
02 Jul 2019:
the blood is in the water again
Many years ago I did some Silverlight games, apps and demos.

The Silverlight Eyes (SliBalls) has already been converted into html as HTML5Eyeball

Now I plan on resurrecting Anagram Shark Attack. I am creating everything from scratch, so it may take while.

Has it's own GitHub repo AnagramSharkAttackJS-E. Which is JavaScript-Edition.

"The blood is in the water, again"
02 Jul 2019:
spreading a little mustard on the ketchup pebble watch
My Pebble Time Watch broke. Not bad for four years of constant abuse.

I was worried that a replacement might be hard to come by, but it is a standard size and Amazon had a lot to choose from.

This is what I went for.
Pebble time watch with replacement archer strap, mustard yellow.
Bit mustardy, but I like it.
02 Jul 2019:
blender perspective camera under the microscope
I was interested in finding out how the settings for the Blender perspective camera work. So I created these nine videos looking at
sensor size at 16 varying the focal length
sensor size at 32 varying the focal length
sensor size at 64 varying the focal length
sensor size at 100 varying the focal length
focal length at 1 varying the sensor size
focal length at 35 varying the sensor size
focal length at 64 varying the sensor size
focal length at 150 varying the sensor size
focal length at 250 varying the sensor size

Which produces these interesting and quite varied zooming affects, reminiscent of early film making special effects.

I then had fun with ffmpeg to create the grid
fighting ffmpeg for a grid layout that does not suck
ffmpeg video 3x3 grid with scaling
loading results, please wait loading animateloading animateloading animate
[More tags]
rss feed

email

root

flog archives


Disclaimer: This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk In fact I'm not responsible for anything ever, so there!