月別アーカイブ: 2015年1月

Post order

<?php
$args = array(
‘post_type’ => ‘kyoto_courses’,
‘taxonomy’ => ‘courses_kyoto’,
‘term’ => ‘kobe-standard-tours’,
‘orderby’=>’title’,
‘order’=> ‘ASC’    ); ?>
<!–<?php query_posts( $args ); ?>–>
<?php get_posts( $args ); ?>
————————————————-

Note that default is:  ‘order’=> ‘DSC

( Also default: ‘orderby’=>’date”)

Failed to remove theme of WP

Plugin was blocking. Deactivating (dkoated-cta-buttons) soved the problem.

This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

png 圧縮 by tinypng

@homepage:jjapantourguide.lolipop.jp;

圧縮@tinypng.com

Compression of logo.png and murakoshi.png improved speed performance analyzed by developers.google.com/speed

mobile 53% → 60%

PC   73#→ 84%

さらに visual2.jpg 圧縮

mobile  66%

さらに size変更をすれば mobile改善葉見込めるが、PC画像は劣化するだろうから不可。

なお、

mobile user experience: 87% 修正必要ではあるが、green labelで結果が表示されており、goodと考えていいだろう。

 

 

 

 

fsck on mounted disk Never!

http://www.computerhope.com/unix/fsck.htm

Warning! Do not run fsck on a mounted filesystem! If you run fsck on a filesystem that is currently mounted, you will (at best) receive an error message, and (at worst) corrupt your filesystem data. If you’re going to check your filesystem with fsck, drop into single-user mode and make sure the filesystem is unmounted before you proceed.

Dropping Into Single-User Mode

These instructions should help you bring your Linux system into single-user mode and unmount any filesystems you’d like to check with fsck.

First, initiate runlevel 1 (single-user mode) with the init command:

sudo init 1

Now unmount the filesystem using umount. For instance, if /home is mounted on /dev/sda2, you could run:

umount /home

…or:

umount /dev/sda2

Make sure to run umount for any filesystem you want to check with fsck.

Checking Filesystems

fsck /dev/sda2

This command will attempt to check /dev/sda2, and report any errors it finds.

fsck -y /dev/sda2

Check /dev/sda2, and attempt to automatically fix any errors found.

fsck -A

Check all configured filesystems. fsck will process the file /etc/fstab and check all file systems listed there. Systems will be checked in order of their <pass> value, as listed in the fstab file. Systems with a pass value of 0will be skipped; the system with a pass value of 1 will be listed first, and remaining systems will be checked in ascending order of their pass value.

cat /etc/fstab

View all configured filesystems. Output will resemble the following:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=c3a6839b-00f1-4cf4-8b00-e61fbcdba6c0 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=afceabb6-a3f4-41c2-9ae6-0393d85c7c70 /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=c6ca8b8f-0b46-4c06-a934-a9dd3525faa7 none            swap    sw              0       0
#/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0
ls /sbin/fsck.*

View all filesystems that can be checked with fsck. Filesystems will appear as extensions to the fsck.* files; for example:

fsck.cramfs  fsck.ext3  fsck.ext4dev  fsck.minix  fsck.nfs      fsck.reiserfs  fsck.xfs
fsck.ext2    fsck.ext4  fsck.jfs      fsck.msdos  fsck.reiser4  fsck.vfat
fsck -n /dev/sda2

Check /dev/sda2 for errors, but do not attempt to repair them; instead, print any errors to standard output.

fsck -f /dev/sda2

Normally, fsck will skip parts of the filesystem marked as “clean” — meaning all pending writes were successfully made. The -f (“force”) option specifies that fsck should check parts of the filesystem even if they are not “dirty”. The result is a less efficient, but a more thorough check.

fsck -t ext2 /dev/fd0

This command will check the ext2 filesystem on the floppy diskette device /dev/fd0.

Related commands

mkfs — Build a Linux file system, usually a hard disk partition.