What I did until many slimes spawn on slime chunk

What I didWaiting place and not to spawn modsCreate Multi layersSprinkling is the most difficultAbout timing when slime spawnsOnce DespawnA sure wayBuild slime farm trap towerConclusion What I didFirst I found a slime chunk using Slime Finder.
This is the basic in the basics.Dig into Y=40 heights in the slime chunk found.From there continue to create a space of height 3 until it hit the ground.Fills a range of 128 squares from the slime chunk with torches.Wait at least 28 blocks and not more than 128 blocks from the slime chunk.The above is the basis of how to spawn slime.
But I did not spawn a lot of slime with just the above.
So I repeated a lot of trial and error.Waiting place and not to spawn modsOnce you have created a layer, you have to wait in the range from 28 to 128 blocks from there.
And mods must not to be spawned against X axis, Y axis Z axis within 128 blocks from this waiting place.
You must make the range of 128 blocks brighter with a torch etc.Create Multi layersNo…

How to set JAVA_HOME when installed OpenJDK with yum

Answerexport JAVA_HOME=$(readlink $(readlink $(which java)))First which java returned the below path./usr/bin/javaNext command readlink $(which java) returned the below path./etc/alternatives/javaLast command readlink $(readlink $(which java)) returned the below path./usr/lib/jvm/java-9-openjdk-amd64/bin/javaAnd you can be assigned this result to environment variable.

curl with proxy

curl --proxy-ntlm --proxy write it in ~/.curlrc as follows.proxy = ""

Connect wireless keyboard to RaspberryPi

You can do it easily by using bluetoothctl on Jessie.VersionsRaspberry Pi Type B Single Board Computer 512MBRaspbian 8.0 (Jessie)Kernel Version 4.1.10BlueZ 5.23-2+b1Start agent mode with bluetoothctl.
yy:... is the MAC address of the receiver, xx:... is the Mac address of the keyboard.pi@raspberrypi ~ $ sudo bluetoothctl -a [NEW] Controller yy:yy:yy:yy:yy:yy BlueZ 5.23 [default] Agent registered [bluetooth]#Scan interactively your keybaord.[bluetooth]# scanonDiscoverystarted[NEW]Devicexx:xx:xx:xx:xx:xxBSKBB24Connect your keyboard.[bluetooth]# connectxx:xx:xx:xx:xx:xxAttemptingtoconnecttoxx:xx:xx:xx:xx:xx[CHG]Devicexx:xx:xx:xx:xx:xxConnected: yesConnectionsuccessfulTrust your keyboard to connect auto.[bluetooth]# trustxx:xx:xx:xx:xx:xx[CHG]Devicexx:xx:xx:xx:xx:xxTrusted: yesChangingxx:xx:xx:xx:xx:xxtrustsucceeded

Detect Bluetooth LE Device with BlueZ on RaspberryPi

BlueZ is a project to control Bluetooth Device on Linux.
BlueZ is also required when controlling BLE with RaspberryPi.
In this article, how to install BlueZ and I tried to run a simple Python script sample with BlueZ.VersionsRaspberry Pi Type B Single Board Computer 512MBRaspbian 7.8Python 2.7BlueZ 5.32pybluez 0.22Boost 1.49Install BlueZ into RPisudo apt-get install libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libical-dev libreadline-dev libudev-dev libusb-dev makemkdir -p work/bluetoothcd work/bluetoothwget xvf bluez-5.32.tar.xzcd bluez-5.32./configure --disable-systemd --enable-librarymakesudo make installManually install commands that are not installed by make.sudo cp attrib/gatttool /usr/local/bin/sudo cp -ipr lib/ /usr/include/bluetooth.5.32cd /usr/includesudo mv bluetooth bluetooth.4.99sudo ln -s bluetooth.5.32/ bluetoothDetecting test with hcitool command.sudo hcitool lescanIf there are BLE devices nearby, hci…

Counting up Java source code lines on Eclipse

I use the open source Eclipse plugin called StepCounter.
Download the latest jar file from
Please download the latest jar fileIt will be placed in Eclipse’s plugins folder.
For example path:
/path/to/eclipse/plugins/jp.sf.amateras.stepcounter_3.0.3.201404150124.jarRestart Eclipse and complete install it.Let’s try it.
Right click on the project and select "Step Counter" -> "Count Step Number"A view named count result is displayed.
It also counts the number of blank lines and lines of comments.
It can not count the number of lines in class file or jar file.
You can also export to Excel.

How to set X-Forward-For on Apache httpd

I think you want to use X-Forwarded-For when you use a load balancer.
Because the IP address acquired by the web server becomes the IP address of the load balancer.
In this article I will show how to restrict IP using X-Forwarded-For and how to output X-Forwarded-For to the log.
Apache httpd introduced in this article is installed based on chef.X-Forwarded-For loggingRestrict IP with X-Forwarded-For X-Forwarded-For loggingvim /etc/httpd/conf/httpd.confCreate a custom log definition called "combined".LogFormat "%h%l%u%t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined↓LogFormat "%h%l%u%t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Forwarded-For}i\"" combinedvim /etc/httpd/sites-enabled/000-default000-default is the file setting VirtualHost.
Set to use combined.CustomLog /var/log/httpd/access_default.log combinedRestrict IP with X-Forwarded-ForThe following i…