trying to make a text console with 40 columns or characters

I am extending a MultiAutoCompleteTextView and I have the font set to this font Unicode font here is the xml where I declare it <jacs.apps.jacs.CustomViews.Console android:id=”@+id/auto” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:dropDownAnchor=”@id/content_frame” android:dropDownHeight=”100dp” android:layout_weight=”1″ android:gravity=”bottom” android:inputType=”textMultiLine|textNoSuggestions” android:fontFamily=”@font/unifont” android:imeOptions=”actionDone” android:scrollbars=”vertical” android:scrollHorizontally=”false” android:singleLine=”false” android:typeface=”monospace” /> and here is my class class Console : AppCompatMultiAutoCompleteTextView { private var mCharHeight = 0…

Details

Converting either a Decimal or Binary value to Binary signed 2’s complement in Python

I am having trouble in achieving either of the following in Python: Convert a Decimal value to Binary signed 2’s complement. Examples: 40975 = 00000000000000001010000000001111 275 = 0000000100010011 Convert a Binary value to Binary signed 2’s complement. Examples: 1010000000001111 = 00000000000000001010000000001111 100010011 = 0000000100010011 Does anyone know of the easiest way of achieving this in…

Details