Linux Mint Problem with MergeList

Problem with MergeList /var/lib/apt/lists/packages.linuxmint.com_dists_olivia_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.

Solution:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

Protect your SSD in Ubuntu

ref: https://sites.google.com/site/easylinuxtipsproject/ssd

sudo apt-get install leafpad

  • Change BIOS and UEFI: set it to AHCI instead of IDE (BIOS -> Advanced -> Integrated Peripherals)
  • Updated firmware.
  • Reserve 10 percent for overprovisioning (unused space)
  • Use EXT4
  • Automatic TRIM: by rc.local
    •  – In terminal, run sudo gedit /etc/rc.local
    •  – Above the line exit 0 in that file, add the TRIM command “fstrim -v” for every automatically mounted EXT4 partition.
    •  – for example: for trim root, add “fstrim -v /”. For trim seperate home partition, add “fstrim -v /home” and “fstrim -v /”
    •  – note: not for partitions that aren’t mounted by default. And also not for the swap partition.
    •  – save and reboot.
  • Limit Oracle Java the write actions of the Java plugin:
    • – launch the Java Control Panel – Tab General:
    • – Temporary Internet Files – Settings…
    • – Remove the tick for: Keep temporary files on my computer.
  • Do NOT enable hibernation

in a user control to reference the parent

If you are in
a user control you have to reference the parent in
RegisterStartupScript.

ScriptManager.RegisterStartupScript(this.Parent.Page,
this.GetType(), “foo”, “document.getElementById(‘” +
this.ad_display.ClientID + “‘).innerHTML = (‘” +
DateTime.Now.ToString(“yyyyMMddhhmmss”) + “‘);”, true);

tool tip popup Javascript

<script type=”text/javascript”>
$(function ($) {
$(“.tooltip_trigger”).hover(function () {
$(this).next(“.tooltip_table”).css(“display”, “inline”);
}, function () {
$(this).next(“.tooltip_table”).css(“display”, “none”);
});
});
</script>
<style type=”text/css”>
.tooltip_table {
position: absolute;
display: none;
top: -8px;
margin-left: 5px;
}

.tooltip_table td {
padding: 0;
}

.tooltip_content {
background-color: #F4F4F3;
vertical-align: middle;
}

.tooltip_r1_c1 {
background-image: url(“/images/tooltip_r1_c1.gif”);
height: 7px;
width: 11px;
}

.tooltip_r1_c2 {
background-image: url(“/images/tooltip_r1_c2.gif”);
background-repeat: repeat-x;
height: 7px;
}

.tooltip_r1_c4 {
background-image: url(“/images/tooltip_r1_c4.gif”);
height: 7px;
width: 8px;
}

.tooltip_r2_c1 {
background-image: url(“/images/tooltip_r2_c1.gif”);
background-repeat: repeat-y;
vertical-align: middle !important;
width: 11px;
}

.tooltip_r2_c4 {
background-image: url(“/images/tooltip_r2_c4.gif”);
background-repeat: repeat-y;
vertical-align: middle !important;
width: 8px;
}

.tooltip_r5_c1 {
background-image: url(“/images/tooltip_r5_c1.gif”);
height: 7px;
width: 11px;
}

.tooltip_r5_c2 {
background-image: url(“/images/tooltip_r5_c2.gif”);
background-repeat: repeat-x;
height: 7px;
}

.tooltip_r5_c4 {
background-image: url(“/images/tooltip_r5_c4.gif”);
height: 7px;
width: 8px;
}

.tooltip_trigger {
cursor: pointer;
display: inline;
/*float: left;*/
}
</style>

<div style=”position: relative;” id=”header5″>
<h2>Hover Link </h2>
<table cellspacing=”0″>
<tbody>
<tr>
<td><img alt=”” src=”/images/none.gif”></td>
<td><img alt=”” src=”/images/none.gif”></td>
<td><img alt=”” src=”/images/none.gif”></td>
</tr>
<tr>
<td>
<img src=”/images/tooltip_r3_c1.gif” alt=”” /></td>
<td><span id=”lblHelpText”>Click me</span></td>
<td></td>
</tr>
<tr>
<td><img alt=”” src=”/images/none.gif”></td>
<td><img alt=”” src=”/images/none.gif”></td>
<td><img alt=”” src=”/images/none.gif”></td>
</tr>
</tbody>
</table>
</div>

Images:

tooltip_r1_c4 tooltip_r2_c1 tooltip_r2_c4 tooltip_r3_c1 tooltip_r3_c4 tooltip_r5_c1 tooltip_r5_c2 tooltip_r5_c4 none tooltip_r1_c1 tooltip_r1_c2

Kobo Touch Glo displays Chinese

  1. Download simsun.tff from http://cooltext.com/Download-Font-%E6%96%B0%E5%AE%8B%E4%BD%93+Sim+Sun
  2. Download mingliu.ttf from http://cooltext.com/Download-Font-%E7%B4%B0%E6%98%8E%E9%AB%94+MingLiU
  3. Connect Kobo Glo to a PC/Mac.
  4. Navigate to Kobo Glo as usb drive.
  5. Create a new folder “fonts” in the root directory.
  6. Copy font file (tff) into the fonts folder.
  7. Eject KOBO from PC.
  8. Opne a Chinese ebook.
  9. Tap screen, and then tap the font icon.
  10. Choose the added fonts.

Nook Simple Touch Recovery

ref: http://www.keyourcars.com/2011/06/26/nook-simple-touch-recovery/

Since there was a bit of bad information out there about recovering Barnes and Nobles Simple Touch eReader I thought I’d share.

I rooted mine and wanted to recover it back to stock.  You can wipe the \data partition by doing 8 interupted starts.  To do that you power it off and then on (hold power and home buttons if it’s truly borked up) until it tries to start up.  As soon as you see the starting message, press the home and power buttons simultaneously and hold them down until it restarts again.  Lather, rinse, repeat 7 more times at which point it’ll wipe the data partition and your user data.  NOTE:  This does NOT restore to factory.

To do a full recovery, power it down and then power it up right after it starts coming up, press both the left and right lower buttons on the face of the nook touch, hold them down for several seconds during the start up and it’ll prompt you for a system wipe.  Press Home twice to confirm you truly want to do that.

Takes a minute or two and then you’ll have a clean nook.

 

links: http://nookdevs.com/Nook_Simple_Touch_restore_to_stock