The Family Blog

Sunday, September 17 2017

JsTree with CSS Sprite Types as a Class

The key thing is the "!important" keyword to overload the CSS precedence.

Types Initialization:

                       'types' : { 
                           'FOLDER' : {
                               'icon' : 'folderIcon'
                           },
                           'ROOT' : {
                               'icon' : 'rootIcon'
                           },
                           'default' : {
                               'icon' : 'folderIcon'
                           }
                       },

CSS:

               .rootIcon {
                   background-image: url(../_img/icon-grid-clr-16x16.jpg) !important;
                   width:16px;
                   height:16px;
                   background-position: -8px -16px !important;
               }
               .folderIcon {
                   background-image: url(../_img/icon-grid-clr-16x16.jpg) !important;
                   width:16px;
                   height:16px;
                   background-position: -8px 0px !important;
               }

javascript:

               .on('load_node.jstree', function (e,data) {
                    data.instance.set_type("#"+data.node.id,'ROOT');
               })

Thursday, August 31 2017

Cheap Plastic Barrels in Oregon

http://oregonrains.com/product/food...

Wednesday, August 30 2017

Interesting War Story

http://gcaptain.com/held-hostage-ca...

Wednesday, August 16 2017

Lawn Darts

Yes, you can still buy them.

https://www.crowndarts.com/

make them. https://www.youtube.com/watch?v=-Gd...

What caused the restrictions. http://mentalfloss.com/article/3117...

Jeff Dunham demonstrating. http://www.youtube.com/watch?v=dBKJ...

Tuesday, August 15 2017

Tethering Tidbits

http://toolguyd.com/have-you-used-e...

Monday, August 14 2017

Upgrading Postgresql 9.4 to 9.5

Here's the command to upgrade it. Took me too long to figure it out, so I thought I'd share.

postgres@hostname:~$ /usr/lib/postgresql/9.5/bin/pg_upgrade -b /usr/lib/postgresql/9.4/bin -B /usr/lib/postgresql/9.5/bin -d /var/lib/postgresql/9.4/main/ -D /var/lib/postgresql/9.5/main/ -o "-c config_file=/etc/postgresql/9.4/main/postgresql.conf" -O "-c config_file=/etc/postgresql/9.5/main/postgresql.conf"

Sunday, August 13 2017

Wooden Blocks for a Vice

I never thought of embedding magnets into a wooden block so they'd stay put in a vice.

http://www.youtube.com/watch?v=X3Fi...

Friday, August 11 2017

Everything You Didn't Want to Know About Airline Scheduling

https://www.youtube.com/watch?v=dGX...

H/T: http://www.aei.org/publication/thur...

Thursday, August 10 2017

Stabilizing a Raft

I wish I'd thought of that as a kid, but I don't think the cheap raft I had would handle the weight.

http://www.youtube.com/watch?v=Cu0u...

Wednesday, August 9 2017

Third Ghostbusters Movie?

I was always curious why they didn't, apparently Bill Murray was the hold out.

http://www.nme.com/news/film/direct...

H/T to: http://www.youtube.com/watch?v=AHUV...

Tuesday, August 8 2017

Scrooge McDuck Tax

Yes it is from 2014, but still interesting.

H/T Film Theorist

http://www.dutchnews.nl/news/archiv...

http://www.youtube.com/watch?v=Y-hQ...

Monday, August 7 2017

Old Portable Military Computers

http://staff.salisbury.edu/~rafanti...

Friday, August 4 2017

Level 2 Versus Level 3 Holster

Never understood the appeal of plastic holsters and this explains the extra features.

https://www.youtube.com/watch?v=qIX...

Wednesday, August 2 2017

Awesome Handheld Printer

https://imgur.com/Ic312AZ

https://www.youtube.com/watch?v=Va3...

http://www.ebs-inkjet.com/english/

Monday, July 31 2017

$20 3d Printer

Either the price goes up or their is a weird catch.

http://www.ebay.com/itm/Anet-A8-DIY...

Sunday, July 30 2017

Gun Shopping

I love the TSA blog to see what weapons and inerts are popular. There is a flash bang grenade that holds hot sauce I want to buy.

https://www.tsa.gov/blog

Friday, July 28 2017

Minimum Meteor Size 25 Meters

For it to hit earth.

https://physics.stackexchange.com/q...

Tuesday, July 25 2017

Midichloria Now Published Fact

:-) https://wattsupwiththat.com/2017/07...

Friday, July 21 2017

Knife Trainer

This would be fun with my brothers. Practice stabbing each other.

https://www.knifecenter.com/item/VB...

Thursday, July 20 2017

I Want One

DIY Mini-dozer

http://www.minidozerbuild.com/

- page 1 of 28

Powered by