Dark Launch

This is a Dark Launch.

Firefox open with application preferences; Content Type; Always ask; Use application; Ubuntu whereis

How to set the default application for Firefox downloads:
In Firefox go to Edit > Preferences (OR Tools > Preferences).
In the new window, select Applications at the top.
Find the Content Type. For example PY file (a python script).
On right right, select "Use other..." from the drop down and browse for your application and click open; I will associate PY with geany.
Then close the Firefox Preferences window.
Now anytime a file where Content-Type=text/x-python comes up, geany will be the associated application in Firefox.
NOTE:
If you don't know the location of your application, open a terminal and type:
Code
 
whereis myapplication
 

That is:
Code
 
whereis geany
>>> geany: /usr/bin/geany /usr/lib/geany /usr/lib64/geany /usr/include/geany /usr/share/geany /usr/share/man/man1/geany.1.gz
 

Now we know the location of geany is "/usr/bin/geany".

Base36 Encode and Decode using PHP with example; base36_encode(), base36_decode()

Base 36 is the most compact case-insensitive alphanumeric numeral system using ASCII characters.

PHP
 
<?php
function base36_encode($base10){
return base_convert($base10,10,36);
}
 
function base36_decode($base36){
return base_convert($base36,36,10);
}

PHP
 
<?php
header('Content-Type: text/plain');
$array =
array(
// base10 => base36
'1' => '1',
'10' => 'A',
'100' => '2S',
'1000' => 'RS',
'10000' => '7PS',
'100000' => '255S',
'1000000' => 'LFLS',
'1000000000' => 'GJDGXS',
'1000000000000' => 'CRE66I9S',
);
foreach($array as $base10 => $base36){
echo 'base36_encode(\'',$base10,'\') => ',base36_encode($base10),"\n";
}
echo "\n";
foreach($array as $base10 => $base36){
echo 'base36_decode(\'',$base36,'\') => ',base36_decode($base36),"\n";
}
echo "\n";
foreach($array as $base10 => $base36){
echo 'base36_decode(\'',strtolower($base36),'\') => ',base36_decode(strtolower($base36)),"\n";
}

Code
 
base36_encode('1') => 1
base36_encode('10') => a
base36_encode('100') => 2s
base36_encode('1000') => rs
base36_encode('10000') => 7ps
base36_encode('100000') => 255s
base36_encode('1000000') => lfls
base36_encode('1000000000') => gjdgxs
base36_encode('1000000000000') => cre66i9s
 
base36_decode('1') => 1
base36_decode('A') => 10
base36_decode('2S') => 100
base36_decode('RS') => 1000
base36_decode('7PS') => 10000
base36_decode('255S') => 100000
base36_decode('LFLS') => 1000000
base36_decode('GJDGXS') => 1000000000
base36_decode('CRE66I9S') => 1000000000000
 
base36_decode('1') => 1
base36_decode('a') => 10
base36_decode('2s') => 100
base36_decode('rs') => 1000
base36_decode('7ps') => 10000
base36_decode('255s') => 100000
base36_decode('lfls') => 1000000
base36_decode('gjdgxs') => 1000000000
base36_decode('cre66i9s') => 1000000000000
 

How to bypass "This add-on is for older versions of Firefox"; Firefox Add-ons direct link

UPDATE: Also, to ignore extension compatibility, install Nightly Tester Tools https://addons.mozilla.org/en-US/firefox/addon/6543
Then restart Firefox and click "Override all compatibility" option under your Tools > Addons window.
---
To bypass or skip "This add-on is for older versions of Firefox":
Page is:
https://addons.mozilla.org/en-US/firefox/addon/5369
Go to:
https://addons.mozilla.org/en-US/firefox/downloads/latest/5369
NOTE: redirect

Use BlockSite with Firefox 3.5; Ubuntu

1. Open the file "/home/user/.mozilla/firefox/YOURPROFILE/extensions/{dd3d7613-0246-469d-bc65-2a3cc1668adc}/install.rdf"
2. Edit the file to update the maxVersion to "4.0.*":
Code
 
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>2.0</em:minVersion>
<em:maxVersion>4.0.*</em:maxVersion>
</Description>
</em:targetApplication>
 

The file previously read:
Code
 
<em:maxVersion>3.0.*</em:maxVersion>
 

NOTE: You may need to delete the extension's folder ("/{dd3d7613-0246-469d-bc65-2a3cc1668adc}/"), run Firefox so BlockSite is missing from Add-ons and then close the browser. Lastly, restore the deleted folder from trash so the browser can detect the changes and restart Firefox.

Firefox 3.5 install flash player; Ubuntu

I installed Firefox 3.5 to "/home/user/apps/firefox/" and Flash was missing. To install it manually, do the following:
1. Download the RPM: http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.22.87-release.i386.rpm OR select the latest rpm at http://get.adobe.com/flashplayer/
2. Open the .rpm file and copy /flash-plugin-10.0.22.87-release.i386.rpm/./usr/lib/flash-plugin/libflashplayer.so to "/home/user/apps/firefox/plugins". The file should be located at "/home/user/apps/firefox/plugins/libflashplayer.so"
3. Restart Firefox.

termed frequency analysis

termed frequency analysis - studying the number of times that a particular letter occurs in a message (cryptology)