Virtual Environments for Collaborative Visualization and Experimentation.

Blogs

New environment for further development of app

Josh set up Solaris on Virtual Box on a computer that runs Windows so that I could continue to work on the bash commands methods without dealing with "sudo".  Updated Firefox to 3.6.6 in the new environment because I got a message that said Google Docs was not supported, but I still get that message.  Also can't view the Java SE 6 API in this environment because it uses frames, so I don't use Virtual Box for anything other than NetBeans and the terminal.  I'm beginning to think that getting the right test environment takes at least as much time as the actual development does.

"Useradd" and "userdel" commands are now adding to and removing from /etc/passwd and /etc/shadow but "cp" and "userdel" are not copying to or removing from the targeted files.  Am looking into "smuser". 

Squid - caching proxy

{s q u i d}Squid is a FOSS project that was started with an NSF grant and has continued with the support of volunteers, donors, and commercial support.  I am currently testing it on a small lab network to see if I can notice a difference in web surfing speed.  I learned of squid when I was reading an article in Communications of the ACM about a caching proxy called Varnish.  The author, a kernel developer on the FreeBSD project, claimed to have created a caching proxy that was ten times faster than the highest performing proxy caching servers. Squid is such a high performance caching proxy and his remarks were clearly a reference to squid.  

bash commands from GUI app

Started adding bash commands to the GUI.  Replaced the code I'd used earlier with something else because the first option wasn't working with "sudo" but now the new option isn't working with "sudo" either.  Have been trying to work around it (in sudoers) or disable sudo, but not really getting anywhere. 

I'd also like to combine the file-reading methods, but the code that differentiates them is all in try-catch blocks, and the methods are pretty small as is.  Don't know if it would really save anything, though it would be cleaner to read; that alone might make it worthwhile.

Preparing Ultra 20 & Ultra 40

Continued preparing the Ultra 20 and Ultra 40 to be cloned for classroom use - copied all Ultra 20 downloads to the Ultra 40 and installed Adobe Creative Suite 4 on both.  (Did not log many hours this week as I had an outside commitment on Tuesday and a final class assignment due Wednesday). 

Progress on GUI

Think I've figured out why default behaivor for JComboBox doesn't select the first item (is my face red!); I set the first item's text to "Select account to remove".  Also, once I attached the JComboBox to the original JButton, rather than to the JPopupMenu (the intermediate step - it appears when the JButton is pushed and causes the JComboBox to appear when one of its options is selected), the JButton showed underneath the JComboBox, so I had to set the JButton to invisible while the JComboBox is visible.  The list in the dropdown menu (the JComboBox) is alphabetical now; I didn't know the Vector class inherited the sort method - it isn't listed in the API as an inherited method.  I suppose I have to look at the Collections API to know the full functionality of a class or interface - I thought it was all included in the Overview.  Added a label and textfield for name to the popup menu which adds single new accounts.  Am now

Strong Passwords: A first defense against intrusion.

The Password.

A lock on your door or a safe at the bank are there for a good reason, they protect property from theives. The passwords on a system are there for the same reason. Using a weak password is the equivalent of having no password at all because anyone can download and use a variety of freely available tools to crack your password while simultaneously hiding their location. A system that uses a weak password is like a bank that keeps all thier cash on a pallet by the front door. (continued)

Progress on GUI

Finally fixed the JComboBox selection problem - automatic selection of the first item is default behavior (don't know why - it would be interesting to know).  Removing the ActionListener before populating the dropdown menu avoids the automatic selection of the first item; then I just add the listener back when the dropdown menu is invoked.  But I couldn't get it to select any item at all once I'd fixed that.  I tried writing an SSCCE so I could submit a question to one of the sites I'd been using for a resource, and found the problem while whittling down the original file - this is a powerful tool for debugging.  I had originally added the JCombo Box to the JPopupMenu that caused it to appear; when I added it to the JPanel that the JPopupMenu was on, everything worked.