26 มิ.ย. 2558

How to install Wine for Ubuntu 12.04

#sudo add-apt-repository ppa:ubuntu-wine/ppa 
#sudo apt-get update
#sudo apt-get install wine1.4
 
install dependencies
 #sudo winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1 vcrun2008 ie6 fontsmooth-rgb gecko  

How to install LibreOffice for Ubuntu 12.04

#sudo add-apt-repository ppa:libreoffice/ppa
#sudo apt-get update
#sudo apt-get install libreoffice

16 มิ.ย. 2558

To change the boot order of GRUB

Open /boot/grub/grub.cfg
Change set default=0

CONFIG ROUTE DUAL WAN LOAD BALANCING USING PCC WITH FAIL OVER

/ip route
# Adding static routes for Google/TW which will be used further below to test both WAN link connectivity
add dst-address=8.8.8.8 gateway=192.168.9.1 scope=10
add dst-address=8.8.4.4 gateway=202.29.216.30 scope=10

## Now we create route for PCC marked packets routing mark:
add distance=1 gateway=8.8.8.8 routing-mark=to_WAN1 check-gateway=ping

4 มิ.ย. 2558

แก้ไขปุ่ม menu smf

สมมุติว่าแก้ไข link ปุ่ม login

เปิดไฟล์ sources/subs.php

CTRL + F พิมคำว่า "login"

จะเจอ

'login' => array(
    'title' => $txt['login'],
    'href' => $scripturl . '?action=login',
    'show' => true,
    'sub_buttons' => array(

เพิ่มความยาวตัวอักษรของหัวข้อกระทู้ SMF 2.0

แก้ไขไฟล์ Post.template.php ที่อยู่ใน Themes/default/Post.template.php

// Now show the subject box for this post.
   echo '
      <dt>
         <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
      </dt>
      <dd>
         <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
      </dd>
      <dt class="clear_left">
         ', $txt['message_icon'], ':
      </dt>
      <dd>