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…

 

如何高效利用google搜索 (一)

完美使用google搜索语法

在墙内,最怕的不是搜索到你不需要的结果,而是 This webpage is not available… 所以推荐大家用google加密搜索 https://www.ggssl.com 如果用其他地址搜索,概不负责
  • 把需要连接在一起的关键词用 “” 括起来,比如搜索关键词: google hacks,如果不用”” 那么结果中会包含 “Google Earth Hacks – Fun stuff for Google Earth” 而不是你想要的google hacks 这本书
  • 善于运用布尔逻辑 假定关键词 X,Y
    • OR |         X | Y == X OR Y  表示搜索到X或者Y  OR作为逻辑符号,必须要大写、
    • –              X -Y                    表示结果含有X但是一定包含Y
    • +             +X Y                    避免google忽略常用词, 搜索结果一定要包含X
    • ~            ~X                       不仅搜索X,还附带与X同意的词组
    • ..              X..Y                    表示从X~Y范围,这时候XY必须是数字,搜索最好加上单位, X..  表示>X
    • *              “X * Y”                 通配符,懂得正则的同学都应该知道 Continue reading

满心欢喜去拿快递,谁知…

昨天晚上9点半在amazon.cn上定了2本书,然后amazon的确认信说预计12月5日送到,得,又忽悠我吧?那次不要隔一天的…

今天吃饱喝足在装乖看书的时候收到短信,本来以为有时10000的宣传没搭理,后来申通不耐烦打电话说,有快递,速到荟园开水房来领取…

哇靠,人品爆发了?这么快???

当时已经12点了,还没开饭,激动的换了一身衣服蹦蹦跳跳去拿快递,路上一遍听歌一遍还想,哇塞,amazon在湖北换代理递换公司了?从“特能”换成“申通”就能快那么多??? Continue reading

没事,我也疼~

这几天电脑综合症又犯了: 颈椎病, 鼠标手, 肩部肌肉也痛… 前天, 昨天晚上腿竟然也痛, 痛到骨头里面疼醒了… 胡思乱想是不是骨癌…

一夜木有睡好的我, 一大早跑到校医院挂号, 再去门诊一看, 我的乖乖~ 看外科的从里排到外, 长凳子坐满了. 得~ 我省省, 去实验室换成左手拿鼠标干活先,下午再去拍片子…

谁知… 到了下午, 15:00 左右 外科门诊

Continue reading