Monday, March 6, 2023

Linux Useful Tools

Network - GBD

apt install net-tools  dnsutils

看权威DNS解析:  dig +trace www.google.com


apt-get install tcpdump traceroute


tcpdump -D (list all available interface)

tcpdump -i eth0 -s0 -l port 443

[https://www.tecmint.com/12-tcpdump-commands-a-network-sniffer-tool/


nslookup www.google.com

traceroute -n www.google.com



GBD
r xxxx

info threads

bt

Tuesday, February 28, 2023

VEX VR IQ Online Challenge 2022-2023 Instruction

 Requirements:

https://challenges.robotevents.com/challenge/228/REC-Foundation-VR-Challenge


Code Online: 

https://codeiq.vex.com/


Ranking:

https://www.robotevents.com/robot-competitions/vex-iq-competition/virtualSkillsStandings


Winners:

https://challenges.robotevents.com/challenge/228/entry?filter=winners

VEX Robotics World Championship 2021-2022 Videos

Introduction and experience: 

https://www.youtube.com/watch?v=I1xfAxlaTgo

Thursday, February 23, 2023

CUDA vs cuDNN vs tiny-cuda-nn

 These terms usually confuse the beginners. Let's explain them in a simple and clear way.


CUDA vs cuDNN:

NVIDIA CUDA Deep Neural Network (cuDNN) is a GPU-accelerated library of primitives for deep neural networks.

The cuDNN library is a library optimized for CUDA containing GPU implementations. Think of cuDNN as a library for Deep Learning using CUDA and CUDA as a way to talk to the GPU.

In summary, CUDA provides the programming interface and runtime environment for general-purpose computing on a GPU, while cuDNN is a library that specifically optimizes deep learning operations on a GPU.


tiny-cuda-nn:

tiny-cuda-nn comes with a PyTorch extension that allows using the fast MLPs and input encodings from within a Python context. These bindings can be significantly faster than full Python implementations; in particular for the multi-resolution hash encoding.

Wednesday, February 22, 2023

2022 -2023 VEX Slapshot good design

Yellow dispenser: 

https://www.youtube.com/watch?v=hAXIjDPQzdg&t=10s

https://www.youtube.com/watch?v=vx8JFi54sfo&t=26321s


Saturday, April 16, 2016

Ploting simple plots by using GNUPlot and Scala

Does Scala have any frontend library to plot? ScalaPlot.

This article will demo how to plot a simple scatter chart.

1. Dependencies.

1.1 Install gnuplot.
>brew install pdflib-lite gnuplot

1.2 Download ScalaPlot.jar from here.

2. A simple scatter chart.

2.1 sbt config.
>libraryDependencies += "org.sameersingh.scalaplot" % "scalaplot" % "0.1"

2.2 SimpleApp code.
import org.sameersingh.scalaplot.Implicits._

val x = 0.0 until 2.0 * math.Pi by 0.1
output(PNG("/tmp/", "test"), xyChart(x ->(math.sin(_), math.cos(_))))

2.3 run.
scala -classpath "target/scala-2.11/simple-project_2.11-1.0.jar:scalaplot-0.1.jar" SimpleApp

Then, you will get result test.png: