Tuesday, October 6, 2015

HTML Notes

[1] html_links from w3schools
[2] html tag (anchor point within a page) from w3schools
[3] Syntax Highlighter in Blog 
[4] pre tag from w3schools 
[4] div
[5] tt
[6] css_selectors via id(unique style), class(common style)



Ref [1] [3]
  • Create anchor via 'id' attribute in html tag
  • Add Link to anchor within web page '#tips'
  • Add Link to anchor from other page externally 'xxxx.htm#tips'

Useful Tips Section

Visit the Useful Tips Section Visit the Useful Tips Section


Ref [2]

The tag defines a hyperlink, which is used to link from one page to another.
In HTML 4.01, the tag could be either a hyperlink or an anchor. In HTML5, the tag is always a hyperlink, but if it has no href attribute, it is only a placeholder for a hyperlink.
HTML5 has some new attributes, and some HTML 4.01 attributes are no longer supported.


Show text in box
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey -cursor_name left_ptr
autocutsel -fork
lxsession -s Lubuntu -e LXDE

Saturday, October 3, 2015

Open Source Hardware -- BeagleBone


[1] https://github.com/millerap/AM335x_PRU_BeagleBone
[2] http://elinux.org/ECE497_BeagleBone_PRU
[3] http://boxysean.com/blog/2012/08/12/first-steps-with-the-beaglebone-pru/
[4] http://mythopoeic.org/bbb-pru-minimal/


PRU in BeagleBone
---------------------------------
Example of blinking LED via PWM through GPIO pin. It's using PRU to achieve this. [2] -> [3]

[4] mentioned in pru/README.



Key bindings

[1] https://help.ubuntu.com/community/Lubuntu/Keyboard
[2] http://cipricuslinux.blogspot.com.au/2012/11/edit-shortcuts-keybindings-in-lubuntu.html


Keybindings in Lubuntu   [1]
Modify keybindings in Lubuntu by changing its ~/.config/openbox/lubuntu-rc.xml [2]

What's key ring for?

[1] http://askubuntu.com/questions/32164/what-does-a-keyring-do
[2] http://askubuntu.com/questions/184266/what-is-unlock-keyring-and-how-do-i-get-rid-of-it
[3] how-to-recover-reset-forgotten-gnome-keyring-password/65294#65294

Installed seahorse and reset/change keyring password. [3]

The big idea here is that if someone else were to access your PC and did not know the master password to your keyring, they could not access your stored login information. The same principle is put to use by lastpass.com's addon for your browser. (only it's distributed, meaning I can use it on several instances of browsers across PC's)
In summary, I offer this snippet from the gnome-keyring page located here

GNOME Keyring is a collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications.
GNOME Keyring is integrated with the user's login, so that their secret storage can be unlocked when the user logins into their session.
GNOME Keyring is based around a standard called PKCS#11, which is a standard way for applications to manage certificates and keys on smart cards or secure storage.

System log in Linux

[1] https://ask.fedoraproject.org/en/question/9299/sticky-how-do-i-view-logs-on-fedora/




After fedora20, /var/log/messages no longer available.

$journalctl -n 100      show latest 100 lines of system log message

In debian/ubuntu it's in /var/log/syslog.