转: 走出迷茫的方法

「走出迷茫的方法」1.先处理心情,再处理事情;2.最困难的时候,就是最接近成功的时候;3.不为模糊不清的未来担忧,只为清清楚楚的现在努力;4.宽容他人对你的误解;5.不要无缘无故的妒忌;6.只为成功找方法,不为失败找借口;7.不要看失去什么,只看还拥有什么;8.用最放松的心态对待一切艰难!

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.