I’m stucked quite a while when refresh a Galaxy Note II for friends, so I decide write something down:
When the hkp port blocked, so rvm suggested
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 always failed to running, here is how to resolve such problem.
Find a hkp port not block server, run export after import the key:
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
gpg --export --armor D39DC0E3
Go to hkp port blocked server, run:
gpg --import -
and copy and paste the step 1 server public key content and press
Another option you can try is using port 80, but it’s can not always work.
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 561F9B9CAC40B2F7
eventmachine didn’t release a new gems for a long time, so we have to manually compile if you decide using Ruby 2.1.3, it’s probably the most complex gems which can still successfully install on windows as far as I known, here is the steps for your interesting:
git clone https://github.com/eventmachine/eventmachine cd eventmachine && bundle install
Now you need using updated version of rake-compiler (v0.9.3) to continue, so change eventmachine.gemspec to that version and do the
bundle install again.
Now we can running
rake package and it should generate the updated 1.0.3 gem file you need, but before that you need another depend lzma package mentioned in Ruby Installer Google Group, I only tested x86 but the x64 should be same.
bsdtar --lzma -xf openssl-1.0.0m-x86-windows.tar.lzma
gem install ./eventmachine-1.0.3.gem --platform=ruby -- --with-opt-dir=C:/Temp
Now enjoy eventmachine on ruby 2.1.3 windows!
gem dependency parser --reverse-dependencies or -R in short only works in local, so if you want to get all gems from rubygems, can using:
The tip is coming from Faria DevTips.
Except simply install the ruby 2.1.3 from rubyinstaller and it’s DevKit, here is my log when I meet the problem during ruby 2.1.3 on a Windows 7 32bits machine.
gem install yajl-ruby -v 1.1.0 --platform ruby
gem install RedCloth --platform rubyand move the file
C:\Ruby21\lib\ruby\gems\2.1.0\gems\RedCloth-4.2.9\lib\redcloth_scan.soto new created folder
Install sqlite3 via:
bsdtar --lzma -xf sqlite-126.96.36.199-x86-windows.tar.lzma
gem install sqlite3 --platform=ruby -- --with-opt-dir=C:/Temp
Install bcrypt via
gem install bcrypt --platform ruby
Install win32console via
gem install win32console --platform ruby
Install ffi via
gem install ffi --platform ruby
Install pg via
gem install pg --platform ruby
Install mysql following stackoverflow via
gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:\mysql-connector"'
Install puma via
gem install puma -- --with-opt-dir=c:\temp
Setting global environment setting:
Also do not using ansicon in ruby 2.1.3 any more, seems not compatible.
After read the post in Ruby-China say how to use mechanize and curl to login Ruby-China, I decide to install curb, seems still a little tricky.
Extract to C:\ and install the curb via below command.
Finally, need copy all DLL and EXE file in
Just from the serverfault.
In the System event log, filter by event id 1074, this will show by which process and on behalf of which user a reboot was initiated.
After 30 minutes to solve invisible char cause Excel vlookup failed, I find below fomula is useful: