Chrome cannot play youtube

This problem has not been solved for a long time. When I need to watch videos I just switch to firefox.

Many solutions have been given on google chrome forum such as “upgrade your system”, “upgrade your chrome”, “disable flash plugin in chrome”. However none of them worked on fedora 24.

As my case is neither lead by system nor chrome itself. I am using the stable version both for fedora and chrome. (I have not been adventurous when I started pursuing PhD degree) I guess some internal settings would affect the video playing.

Maybe:
1. Settings
* cache and history
* javascrips
* hardware acceleration
2. Extensions
3. Plugins
* flash inside google chrome: /opt/google/chrome/PepperFlash/libpepflashplayer.so

For my case shut down “hardware acceleration” save youtube.

The value of md5sum for the same file would be different after Gziped

I got a latest dataset from the collaborator yesterday, some files were already included in the previous version. However I failed in “md5sum -c md5sum.text”, that really tossed  me greatly. When I did the further check and  I found there was not any differences between the decompressed files, so only the compression step changed the MD5!!!

An email from Ray reminded me. I found the following lines on wiki page of gzip and I could have a sweet dream tonight~

“gzip” is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a timestamp
  • optional extra headers, such as the original file name,
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

Setup Share Folder on Fedora for Synology NAS

NAS is used to backup data in our lab. We always generate new data and we have to sysc them to the server. However, even you have moved data to the ‘shared fold’ already, you still could not find them on the NAS remote fold. That’s because you forgot to tell Samba server to add new folders or files to your shared.  Please remind keeping flash privilleges after you update

 chcon -R -t samba_share_t /your/path

Configuration for Synology NAS 1812+

The first thing I want to complain is that synology assistant suit of linux is totally useless!  No matter I use it under CentOS or Fedora even Ubuntu(the most pop linux version among us), none of them could find DiskStation via the local network.

If you find NAS under Mac or Windows luckily, please just  hold on, you would find that you are being misleaded by an error message “An error occurred during
installation. The telnet service of the DiskStation is turned on for the error determination. Please configure your router to forward port 23 to
the DiskStation and contact Synology online support.” Normally, we might check our firewall, antivirus and reset router forwarding under such objectionable situation…

Finally, you wake up from disorderly and unsystematic errors and poor manual

OK, solution:

  1. ===How to conduct a direct Ethernet Connection with the Synology system===Remove all Ethernet connection on computer
    Disable Wireless Connections
    For Windows users, from Windows Command Prompt, type “ipconfig /renew”
    [Optional: set the IP Address/Subnet Address to 169.254.1.1/255.255.0.0 on the hardware LAN card]
  2. ==Synology system prep==
    Have the system on in the ready state
    Disconnect the LAN cord from the Synology system for 30 seconds
  3. ==Connecting between the computer and Synology system==
    Use a Straight Ethernet cord to connect the Synology system directly towards the Ethernet port of the computer
    Wait upwards for five minutes for the computer to detect and assign an IP address to the Synology system
    Use the Synology Assistant to detect the Synology system, and reconfigure the IP addressReady to use? Of course not! Synoloy Assistant is worth to be a good trouble making assistant, exp: Only CIFS protocal would be used in remote sync. As a problem be solved, a new comes.===========================================================

    Tips:

    If you create new directories to share them you should mark them as
    samba_share_t.
    Use: chcon -R -t samba_share_t /your/path

    Keep flash privilleges after you update ftpd
    Use: SELinux  ftp_home_dir -> on

Fedora 字体问题

Fedora下的字体少的可怜,不说别的,我喜欢用的Comic San MS都没有…

记得最简单的解决方法就是cp  */windows/fonts/*.ttf   /usr/share/fonts/  【后来发现 手贱啊手贱啊】,但是问题没有解决,libreoffice里面的这些字体依旧没有。。。迫不得已,yum装了easylife中的truetype,瞬间解决了libreoffice的字体问题(其他的比如chrome下的字体,也就是系统字体,还是没有解决),但重启后发现所有的中文都变成了方块。。。

这下死了,看不到别人发来的消息,自己也用不了中文。。。 立刻看了fonts下的文件,没问题! 又去 jre/lib/fonts 下看libfontconfig,还是没问题。。。 这才想起自己cp的windows字体。 rm 之 一切解决了 o(∩∩)o…

 

Svn: LC CTYPE warning fixed

If you experience the following error while doing subversion check outs:

[nomel@lemon]$ svn
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
Type 'svn help' for usage.

That means your LANG exported in your ~/.barshrc is not supported in your system.

[nomel@lemon]$ localte -a

#that commands will list all LANG supported on your system and then take one add to your bashrc file.

Or try this to remedy the situation:

echo "export LC_ALL=C" >> /etc/profile
export LC_ALL=C


当Zotero牵起了webdav的手

Zotero是火狐浏览器(Firefox)的一个文献管理插件,其实它不仅仅是个插件,Zotero 你值得拥有![哦,看了视频才知道,原来是这么读的,被人嘲笑…]

中文教程 站在别人的肩膀上就是看的远…

搭建Webdav

关于webdav

CentOS 配置webdav

如果是系统默认配置的LAMP,太简单,看看就好,

如果是自己搭建的,但愿你不要像我一样在apxs broken之后重新编译apache Help

Continue reading