Git, Java, and Netbeans Useful Links

In preparation for my new job, I’ve started to explore Java and Netbeans. In the process, I figured I would revisit using Git to cross reference some example code on Java.net while trying to learn about CRUD operations. Below is a list of links I found quite helpful.

platform.netbeans.org/tutorials/nbm-crud.html

java.net/projects/nb-api-samples/sources/api-samples/show/versions/8.0/tutorials/DBManager

youtube.com/watch?v=Kp5BSBoOw8k

java.net/projects/help/pages/SourceControl

In Car Tablet Project

A android tablet mounted into the center dash of a Honda Accord.
Not the most elegant thing but functionally it adds a lot to my day to day driving experience.

Over Christmas 2015, I picked up a $45 Android tablet with the intentions of mounting it into my 2010 Honda Accord as a media device. For now, I’ve used some black Velcro to mount it but would eventually like to explore the 3d printer realm and create a custom mount for it. I disabled many of the pre-installed applications, installed Spotify (a music subscription service), and installed a neat application called Tasker.

I used Tasker in conjunction with AutoInput which essentially mirrors any programmed key-presses by searching for the internal UI shell command. All of this can be accomplished without rooting. I purchased a USB charger for the center console power port in addition to a thin USB cable and 1/8″ cable. Luckily, my car turns off the power port automatically when the car is off, unlike some other domestic models. After about an hour of tweaking, I had a working in car entertainment device that would:

  1. On power/charging detection, would turn on the screen, open the Spotify app, wait 6 seconds, and Play music from the last specified playlist.
  2. On power/charging off, would pause Spotify, wait 3 seconds, and dim the screen. By leaving the app open, it syncs with my Wifi network when I pull into the driveway nightly.
  3. From 7am to 5:30pm, would turn the screen brightness to max setting.
  4. From 5:31pm to 6:59am, would turn the screen brightness to min setting.

A helpful guide I followed for programming Tasker is here, with the exception of the input commands, as those were taken care of by the AutoInput application. The most important thing to note is the use of wait times in Tasker, so that the device is provided with enough time to execute each operation and not ignore overlapped operation requests.

The latest development with this project, is that under extreme cold temperatures, the tablet greatly misbehaves. I need to probably program the tablet to turn off based on a weather forecast. We had a 10F low and I found that it had factory reset itself after being left in the car all night, which means that I need to reprogram it entirely. Avoiding that scenario, I will probably look for a custom recovery which would allow me to take a full image backup to keep on the Micro SD card.

The tablet I purchased can be found here. (as of Jan 2016)

Installing SASS

cd c:/
cd RubyDevKit //folder where dev kit is installed
ruby dk.rb init
ruby dk.rb install
gem install json–platform=ruby
gem install sass
Then, install Scout App.

Just a quick note on installing SASS. I couldn’t find this anywhere.

The 1998 Frostburg Tornado

June 2, 1998 PA-MD-WV Tornado Outbreak

“As the days followed, debris from Frostburg was found up to 100 miles away. A jacket, bought by a woman on June 2 in Frostburg, was found with the bag and receipt near Levels, WV, 25 miles away. A 400 acre farm in Gorman, Maryland, just across the river from Paw Paw, WV (about 27 miles from Frostburg) had debris strewn across it. The farmer found shingles, pieces of siding and insulation. House debris was found in Paw Paw, WV and into the northern tip of Frederick County, VA. A JC Penny catalog belonging to the family whose house was wiped off its foundation was found in Winchester, VA, 60 miles away, along with a piece of a high school diploma from a school in Frostburg. Another part of a high school diploma was found north of Berryville about 80 miles away. A bill that had been in a basement file cabinet in the Frostburg house was found in Sterling, VA which is about 100 miles from Frostburg.” – NOAA

 

MEAN.js Stack

https://hackhands.com/how-to-get-started-on-the-mean-stack/
http://en.wikipedia.org/wiki/MEAN
https://github.com/alexramsey92/mean/blob/master/README.md
http://bower.io/#install-bower
http://gruntjs.com/getting-started
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
http://stackoverflow.com/questions/24599119/mongodb-not-working-error-dbpath-data-db-does-not-exist

Rabbit Hole of Research #1

Rabbit Hole of Research #1

https://www.benburwell.com/posts/your-website-is-not-special-dont-make-visitors-make-accounts/

http://codahale.com/how-to-safely-store-a-password

http://www.win.tue.nl/cccc/sha-1-challenge.html

http://en.wikipedia.org/wiki/Secure_Hash_Algorithm#SHA-0_and_SHA-1

http://en.wikipedia.org/wiki/Cryptographic_hash_function

http://en.wikipedia.org/wiki/Birthday_attack

http://www.digital-web.com/articles/jquery_crash_course