Install Nvidia GTX 2080 driver on Ubuntu 16.04

  1. sudo vim /etc/default/grub # to change "quiet splash" to "quiet nosplash"
  2. sudo update-grub
  3. reboot
  4. (Press ESC)
  5. Select ubuntu recovery mode, enable networking, then root terminal.
  6. sudo add-apt-repository ppa:graphics-drivers (if you haven't already)
  7. sudo apt purge nvidia* (if you tried installing already)
  8. sudo apt install nvidia-418 (nvidia-430 doesn't work with lightdm yet)
  9. You may need to sudo systemctl stop lightdm
  10. nvidia-smi (check your version is correct)

3D Statue of Liberty

I take aerial lidar point cloud and turn it into a 3D object.
https://www.thingiverse.com/thing:3615141

With Meshmixer, there is a great option in "Edit" > "Make Solid" and it generated this for me. Well done! Exactly what I was looking for. Otherwise it prints as hollow.

Have to fill in holes here

After some sculpting...

The Meshmixer tools are way more intuitive to use than Blender or anything else for that matter!

I didn't notice but the bottom is not completely flat. As I printed this out. There was a power interruption when I used the pressure washer it jumped the breaker. Here's the result.

There are also too many polygons with the original. 83,172 Verticies and 166,308 Faces. Using MeshMixer I could reduce verticies to 21,141 and faces 42,282. This lower poly count object should print cleaner too. Notice the surface.

Obviously the wood print failed. But I am happy with the white result!

Converting PLY to STL in Meshlab

Meshlab can do this, if you don't have access to a linux machine and use

ctmconv red-rocks-smrf-only-delaunay.ply red-rocks-smrf-only-delaunay.ply

Meshlab seems great, may even be as useful as Blender.

On Windows 10, the default viewer.

I'm going to use the Creality Slicer (which is based off Cura). It doesn't quite fit.

This seems reasonable to print.

Will fire up the printer and see!

Converting Point Cloud to 3D Surface Map

Source Data

Looking at Red Rocks.

PDAL pipeline

# This is a hjson file, https://hjson.org/
# Linux bash
#GET=https://github.com/hjson/hjson-go/releases/download/v3.0.0/linux_amd64.tar.gz
# macOS bash
#GET=https://github.com/hjson/hjson-go/releases/download/v3.0.0/darwin_amd64.tar.gz
# Install
#curl -sSL $GET | sudo tar -xz -C /usr/local/bin
# Translate to Json
#hjson -j pipeline.hjson > pipeline.json
#pdal pipeline pipeline.json --verbose 8

{
  pipeline:
  [
# Input
    {
      # read from our ept server
      # up to 0.5m resolutions
      # type: readers.ept
      # bounds: ([802000, 802500], [2493000, 2493500])
      # filename: http://localhost:8080/ept.json
      filename: red-rocks.laz
      # filename: http://na.entwine.io/red-rocks/ept.json
      # resolution: 0.5
    }
#     {
#       # read from our las file
#       type: readers.las
#       filename: small500-no-outliers.laz
#     }


# Filters
    {
      # adds a classification value of 7 to the noise points
      type: filters.outlier
      # method: radius
      # radius: 1.0
      # min_k: 8 # min number of neighbors in radius

      method: statistical
      mean_k: 8
      multiplier: 3

    }

    {
      # voxel-based sampling filter
      # reduce the size of the pc
      # cell size of 0.2 meters in xyz
      type: filters.voxelcenternearestneighbor
      cell: 0.1
    }

    {
      # Need to assign point cloud dimension NumberOfReturns 1
      # Otherwise: "No returns to process."
        type:filters.assign
        assignment : NumberOfReturns[0:0]=1
    }

    {
      # Ground classification, ignore the noise points
      type: filters.smrf
      ignore:Classification[7:7]
    }

    {
      # only allow ground classified points
      type: filters.range
      limits: Classification[2:2]
    }

    {
      # OPTIONAL
      # turn this into a DEM 3D model
      # do not use multiple types
      # type: filters.delaunay
      type: filters.poisson
    }


# Output

# # OPTIONAL PLY IF DEM
    {
      # write to ply
      type:writers.ply
      filename: red-rocks-smrf-only-poisson.ply
      faces:true
      storage_mode: default
    }
# Output
    # {
    #   # write to laz
    #   type:writers.las
    #   filename: red-rocks-ground.laz
    # }
  ]
}

https://gist.github.com/sunapi386/9a9ece302d646ee80a72fc494423a633

Mesh Results

filters.delaunay
The mesh doesn't look right.

Greedy Projection

filters.greedyprojection
Issue seems to be the points are arranged in a sequential fashion

Poisson

Looks nicer with depth: 10 (default 8). The ply file is 84M.

To go a little more "detailed", I put depth to 12. The file went from 84M to 789M. And it is definitely overkill for 3D printing.

Grid Projection

Program failed to compute the grid projection.

 pdal pipeline dtm-gdal.json --verbose 8 
(PDAL Debug) Debugging...
(pdal pipeline Debug) Attempting to load plugin '/usr/local/lib/libpdal_plugin_filter_gridprojection.so'.
(pdal pipeline Debug) Loaded plugin '/usr/local/lib/libpdal_plugin_filter_gridprojection.so'.
(pdal pipeline Debug) Initialized plugin '/usr/local/lib/libpdal_plugin_filter_gridprojection.so'.
(pdal pipeline readers.las Debug) GDAL debug: OGRSpatialReference::Validate: No root pointer.
(pdal pipeline readers.las Debug) GDAL debug: OGRSpatialReference::Validate: No root pointer.
(pdal pipeline readers.las Debug) GDAL debug: OGRSpatialReference::Validate: No root pointer.
(pdal pipeline Debug) Executing pipeline in standard mode.
(pdal pipeline filters.gridprojection Debug) 		Process GridProjectionFilter...
[pcl::GridProjection::getBoundingBox] Size of Bounding Box is 1
[pcl::GridProjection::getBoundingBox] Lower left point is [-2.500000, -2.500000, -2.500000]
[pcl::GridProjection::getBoundingBox] Upper left point is 2
[pcl::GridProjection::getBoundingBox] Padding size: 3
[pcl::GridProjection::getBoundingBox] Leaf size: 0.500000
(pdal pipeline filters.gridprojection Debug) 		3141373 before, 180 after
(pdal pipeline filters.gridprojection Debug) 		180
double free or corruption (!prev)
fish: “pdal pipeline dtm-gdal.json --v…” terminated by signal SIGABRT (Abort)

Cura 3D Print Slice

Cura can take STL inputs. Converting the PLY into STL is simple.

sudo apt install openctm-tools

Then ctmconv red-rocks-smrf-only-delaunay.ply red-rocks-smrf-only-delaunay.stl can convert ply to stl


ctmviewer red-rocks-smrf-only-delaunay.ply visualizes the ply. Which is what I used above.

Poisson and Delauny surface models, side-by-side.

Looks like the Poisson is prettier.

I'll continue writing this latter, until I have something printed. 🙂

  1. 500000, 6.000000, 5.000000
  2. 000000, 3.500000, 2.500000

PDAL Voxel Center Nearest Neighbor

https://pdal.io/stages/filters.voxelcenternearestneighbor.html#filters-voxelcenternearestneighbor

The VoxelCenterNearestNeighbor filter is a voxel-based sampling filter. The input point cloud is divided into 3D voxels at the given cell size. For each populated voxel, the coordinates of the voxel center are used as the query point in a 3D nearest neighbor search. The nearest neighbor is then added to the output point cloud, along with any existing dimensions.

Notice the red dots are much more sparse than the gray intensity dots. Red dots are separated 1.0 meters and gray are 0.1 meters.

To generate this I did converted with PDAL and then used Potree to visualize.

pdal pipeline $HOME/voxcnn-1.0.json 

voxcnn-1.0.json
[
"801403-802580-2493384-2494335.laz",
{
"type":"filters.voxelcenternearestneighbor",
"cell":1.0
},
"801403-802580-2493384-2494335-voxelcenternearestneighbor-1.0.laz"
]

-rw-rw-r-- 1 jsun jsun 65M Apr 11 21:01 801403-802580-2493384-2494335-voxelcenternearestneighbor.laz
-rw-rw-r-- 1 jsun jsun 8.1M Apr 11 21:04 801403-802580-2493384-2494335-voxelcenternearestneighbor-1.0.laz

Airbnb Occupancy Tax Turbotax

Airbnb already pays occupancy taxes for you so you can deduct them as a rent expense.

https://ttlc.intuit.com/questions/4567464-i-run-an-airbnb-in-maine-and-they-send-occupancy-taxes-to-the-state-how-do-i-show-my-airbnb-income-as-exempt-since-the-tax-has-already-been-paid

I run an Airbnb in Maine and they send occupancy taxes to the state. How do I show my Airbnb income as exempt since the tax has already been paid?

Asked by jlouisecarl
TurboTax Premier
 2 months ago


Occupancy taxes for your Airbnb are a completely separate tax from your income tax that you are filing. Having paid the occupancy tax through Airbnb does not make your income exempt from income tax.  All of the rent collected must still be reported as income.  However, you will be able to claim a rental expense for the occupancy tax that has been paid on your behalf since it was taken out of your rental income.

TurboTaxAnnetteB , EA
 TurboTax TaxPro  2 months ago


Dual Networks Profiles Ubuntu 18.04

The setup

I have 2 network adapters, a 10G and a 1G network. In order to connect to both networks, you must have two profiles.

Two profiles: 10G and 1G profile, across 2 adapters.

If you have a single profile, then changing settings for one network adapter will also affect the other. In Ubuntu's Network UI, this is non-obvious.

Once setup correctly, you can verify by being able to ping both networks.

jsun@computer ~ [1]> ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.
64 bytes from 192.168.1.200: icmp_seq=1 ttl=128 time=0.338 ms
64 bytes from 192.168.1.200: icmp_seq=2 ttl=128 time=0.172 ms
^C
--- 192.168.1.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1028ms
rtt min/avg/max/mdev = 0.172/0.255/0.338/0.083 ms

jsun@computer ~> ping 10.10.50.1
PING 10.10.50.1 (10.10.50.1) 56(84) bytes of data.
64 bytes from 10.10.50.1: icmp_seq=1 ttl=64 time=0.585 ms
64 bytes from 10.10.50.1: icmp_seq=2 ttl=64 time=0.226 ms
^C
--- 10.10.50.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1022ms
rtt min/avg/max/mdev = 0.226/0.405/0.585/0.180 ms