所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)
- 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。
#{RUBY_HOME}/lib/ruby/1.9.1/webrick/config.rb の | |
:DoNotReverseLookup => nil | |
を | |
:DoNotReverseLookup => true | |
に修正する。 |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
class BaseUploader < CarrierWave::Uploader::Base | |
attr_reader :width, :height | |
before :cache, :capture_size | |
... | |
# for image size validation | |
# fetching dimensions in uploader, validating it in model | |
def capture_size(file) | |
if version_name.blank? # Only do this once, to the original version |
var eventify = function(arr, callback) { | |
arr.push = function(e) { | |
Array.prototype.push.call(arr, e); | |
callback(arr); | |
}; | |
}; | |
var array = [1,2,3]; | |
eventify(array, function(newArray) { |
以下転載:
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |