跳至主要内容

博文

Ovftool is a must have for ESXi user

When download a sample VM image Today, to kick-start my cloudera learning journey, I finally downloaded a cloudera getting started image from cloudera official site. Well this image is not so huge, I still don’t have much space to store it on my local machine. As I have a ESX host siting several cubes away from my seat. I decide to upload the image to the host and run from there. Import a VM to ESX After play around the ESX client for some minutes, I find that I can only import an OVF or OVA image. Upload VM to ESX storage directly Alternatively, one have to upload the whole VM image by using the storage manager, then try to add the vmx file to inventory from there. As said, and sad, the image is a bit big, my VM image upload process end up successful, but the VM added from storage manager failed to start up. An error of “can not find vmdisk xxxx” with a mysterious vmdk filename showing up. Convert and then import, in one STEP The last solution for me to upload the image...

Generate markdown document from tableau project

Just survived from a multiple tableau integrated project, the project was not very well planned. So as a result, I have to provide some tableau project detail information document afterwards. Recorded every tableau projects’ data source connection, table relation and delivered location setting requires someone to open the project both on tableau desktop and tableau server. As tableau TDS file is actually just an XML file, to avoid the boring part, I came out following two simple XML style sheet for document generation. < xsl:stylesheet xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" version= "2.0" > < xsl:output method= "text" /> < xsl:strip-space elements= "*" /> < xsl:key name= "menu" match= "tableauwb" use= "@name" /> < xsl:template match= "/" > < xsl:text ># </ xsl:text > < xsl:value-of select= ...

Adobe Document Cloud not in Chinese UI

Recent days I’ve been reading Erlang related PDF, so I have a chance to write some private notes for later review. As it is a mobile century now, we never work on single device anymore. I would like to sync all my notes and my reading progress across different devices. With some time-consuming googling work finished, I find there’s two ready to be used solution that is able to fulfill my personal needs: Adobe Acrobat Reader DC + Acrobat Reader mobile + Document Cloud Foxit PDF reader + Foxit connected PDF service The result surprised me, because I’ve been using Acrobat Reader DC for about a year now, but never notice it is able to sync anything to Adobe managed cloud storage named Document Cloud. In fact, I’ve been wondering for years why Acrobat Reader renamed as Acrobat Reader DC in recent update and what does that ‘DC’ mean. Now comes to real life practice with the Document Cloud feature. It is wonderful, Acrobat Reader for android is able to manage PDF files in Docume...

Seven Languages in Seven Weeks

This morning, after 10 minutes struggle of do or do not follow the self study section. Just spend several hours of searching, coding and debugging, finally I got the following ruby script that is able to pass the self study excise. diff -r 9efeca9bd507 learning/ruby/acts_as_csv_module.rb --- a/learning/ruby/acts_as_csv_module.rb Tue Feb 07 15:13:11 2017 +0800 +++ b/learning/ruby/acts_as_csv_module.rb Tue Feb 07 15:13:49 2017 +0800 @@ -1,32 +1,90 @@ module ActsAsCsv + def self.included(base) base.extend ClassMethods end + module ClassMethods + def acts_as_csv include InstanceMethods end + + def acts_as_enumerable + include Enumerable + end end + module InstanceMethods + def read @csv_contents = [] filename = self.class.to_s.downcase + '.txt' file = File.new(filename) - @headers = file.gets.chomp.split(', ' ) + CsvRow.headers = file.gets.chomp.spl...

Joke or Joker?

It’s been for a long time no learning, or maybe not able to learn any new technical skills since I got the job with the industry. It feels like I am always busy working and have no time to sit down for learning. I’ve been always feel myself in rush mode and just can’t stop rushing and working. Just like a battery which recharged for its duty, and once discharge is begun it will not have a chance to be removed from its position for another round of recharging. Time to prove the thing is false feeling. In the meantime, let’s first finish The reading and practice of ‘seven languages in seven weeks’ The ‘real world Haskell’ which last for too long already. Set a small target to earn a million.

DSS 不能用啦!

ssh-dss key not in PubkeyAcceptedKeyTypes 忙里偷闲鼓捣自建基于 Jekyll 的blog,发现无论如何都不能在心爱的linux里面通过ssh clone新创建的 git repository。 提示如下: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 遂坠入无限ssh检查中无法自拔: ssh-add -l 显示 ssh-keyagent 内容无碍 ssh-keygen -l -f 显示各个key的finger print 看不出错误 进入windows通过 git bash clone 失败,遂发现 windows 中 plink 太久未用,已经生锈。不认识 github 的 host key。用 putty github.com 弹出的新host key 对话框确认了事。 windows下终于clone成功。 再次尝试将 windows 下的ppk导出为openssh格式,遂发现几年前曾经有一份导出的 key 躺在那里…… 各种折腾之后拷贝的key诺到了linux中,以为万事大吉,结果,结果,结果虽然 diff -u 显示新来的 key 是新的,但是 ssh-keygen -l -f 说他们两个是一样的…… 无奈出下下策 ssh -vvvv git@github.com ,一阵垃圾滚屏过后终于发现 debug1: Skipping ssh-dss key /home/fktpp/.ssh/fktpp.openssh - not in PubkeyAcceptedKeyTypes Google 说 (keyword: Skipping ssh-dss key not in PubkeyAcceptedKeyTypes) stackexchange: ssh keeps skipping my pubkey and asking for a password The new openssh version (7.0+) deprecat...