Showing posts with label note to self. Show all posts
Showing posts with label note to self. Show all posts

Tuesday, February 14, 2012

Handbrake GTK and Debian Squeeze

Handbrake isn't a stable package, you need to edit etc/apt/sources.list to allow testing packages temporarily...as in changing


  ###### Debian Main Repos
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free 
deb-src http://ftp.us.debian.org/debian/squeeze main contrib non-free


To


  ###### Debian Main Repos
deb http://ftp.us.debian.org/debian/ testing main contrib non-free 
deb-src http://ftp.us.debian.org/debian/testing main contrib non-free


Save, do a sudo apt-get update, followed by a sudo apt-get install handbrake-gtk, and watch those dependencies get met.

Remember, change back to the previous stable area when complete!

It will install a lot...or at least did for me.  But success is reached at the end.  

Saturday, August 27, 2011

Another Note to Self

In Android, to get things to center properly, use the android:gravity tag in the Layout surrounding it....


<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:gravity="center">
 
<Button   android:text="Add"
          android:id="@+id/button_dialog_set"
          android:textStyle="bold"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          >
</Button>
<Button   android:text="Cancel"
          android:id="@+id/button_dialog_cancel"
          android:textStyle="bold"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          >
</Button>
</LinearLayout>


Produces two buttons, centered, next to each other