Home

Setting Up Cron Job

Created on: 10/15/19 Last update: 10/15/19 Specify editor Specify nano as editor: export VISUAL=nano; crontab -e Specify vim as editor: export VISUAL=vim; crontab -e Basic rules 0 3 * * * minute hour day_of_month month day_of_week The cron sc...

Read more

Loss and Accuracy Get Stuck in Keras

Created on: 9/30/19 Last update: 9/30/19 Problem Description When training a prediction model using Keras, the loss and accuracy sometimes get stuck. For example: Epoch 1/10 2499007/2499007 [==============================] - 2s - loss: 1.9112 - acc: 0.5325 Epoch 2/10 2499007/2499007 [==============================] - 0s - loss: 1.9105 - acc:...

Read more

Upgrading Apache HTTP Server to 2.4

Created on: 9/5/19 Last update: 9/9/19 Download Download: wget http://mirrors.gigenet.com/apache//httpd/httpd-2.4.41.tar.gz tar -xvf httpd-2.4.41.tar.gz cd httpd-2.4.41 Compile and install: ./configure --prefix=/usr/local/apache24 make make install Copy the old configure files to new location, then load following modules to save trouble...

Read more

Extracting value from raster image

Created on: 8/21/19 Last update: 8/21/19 Using Raster Calculator to extract specific value from raster image. For example, extracting corn and soybean from CDL: (“image” = 1)1 + (“image” = 5)5 + (“image” > 5)255 + ((“image” < 5) AND (“image” < 1))255 Reference Extract specific values from raster in QGIS

Read more

CKAN Datastore 500 Error Solution

Created on: 8/19/19 Last update: 8/19/19 Description The “Upload to DataStore” function in the dataset page does not work because of the 500 Server Error: Also, the http://127.0.0.1:8800 cannot be opened because of the 500 Server Error. Check the error log /var/log/apache2/datapusher.error.log: [Mon Aug 19 13:35:05.648265 2019] [wsgi:err...

Read more

Converting Latex to Word

Created on: 8/12/19 Last update: 8/12/19 Converting tex file to other editable text could be an annoying job. The format of output file would be messy most times. Here are some methods to avoid these issues. Converting manuscript from Latex to Word Pandoc Manuscript usually includes many references. It should be declared in the Pandoc comma...

Read more

U.S. State Fips

Created on: 8/10/19 Last update: 8/10/19 FIPS Abbreviation Name FIPS Abbreviation Name 1 AL ALABAMA 31 NE NEBRASKA 2 AK ALASKA 32 NV NEVADA 4 AZ ARIZONA 33 NH ...

Read more

CKAN Dataset Page 500 Error Solution

Created on: 8/10/19 Last update: 8/10/19 Check the CKAN error log: tail -f /var/log/apache2/ckan_default.error.log Find the error like: [Thu Jul 18 00:59:42.554478 2019] [wsgi:error] [pid 32569:tid 139839545399040] [remote 127.0.0.1:34041] Error - <class 'routes.util.GenerationException'>: url_for can only return a string, got unicode...

Read more