Set Password Not to Expire for a User
avatar

If you have your passwords set to expire automatically on your system for security reasons, there may be times when you want an account who’s password doesn’t expire (such as if you are using a cert or if you have a program or service connecting to a low access account).

You can set up just the one account not to expire by running the following command:

passwd -x -1 <user_name>

Posted in Guides, Linux | Tagged , , | Leave a comment

Linux / UNIX Automatically Log BASH / TCSH / SSH Users Out After a Period of Inactivity
avatar

This is great to make sure that people are not signing in and leaving their connection open.  Who knows who can come over and start using that already authenticated connection?

Linux / UNIX Automatically Log BASH / TCSH / SSH Users Out After a Period of Inactivity.

Posted in Guides, Linux, News | Tagged , , | Leave a comment

Linux: Force Users To Change Their Passwords Upon First Login
avatar

This is a great way to setup accounts so that you know that the password you provided will be sure to go.

chage -d 0 {user-name}
# chage -d 0 tom

Linux: Force Users To Change Their Passwords Upon First Login.

Posted in Linux, News | Tagged , | Leave a comment

Stop App from Restarting when Screen is Rotated
avatar

One interesting problem I have encountered in Android development is that the when you rotate the device it restarts the activity from the start.  This is very annoying espeical to the end user who can get the splash screen again or have to start to from the begining of the app.

With a few simple lines of code you will be able to prevent this screen rotation from taking place.

Step 1:  Edit your android manifest.xml file to add in the following line to where the activity is displayed:

android:configChanges=”keyboardHidden|orientation”

Step 2:  Add the following to your activity:

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}

Posted in Android, Development | Tagged , , | Leave a comment

Harptabs Mobile Android App
avatar

We have published an Android app which will allow you to use the mobile version of our website.  We plan to continue to improve both the app and the mobile website.

Harptabs.com Mobile App

Harptabs.com Mobile App

 Harptabs Mobile from the Android Marketplace

Posted in Android, Android Apps, Harptabs.com, Harptabs.com Mobile App, News, Our Apps | Leave a comment