Posts

Showing posts from January 20, 2019

Windows 10 Ubuntu WSL fails to display grep output filenames

Image
1 I am using grep -rnl "./" -e "search_string" to search a folder's file contents for a "search_string" but it doesn't display filenames. The "-H" option (force filename in output) doesn't change the output. The "-l" option (return only filenames in output) prints several blank lines proportional to the number of files that contain the "search_string" (I have a vague idea how many files contain it) i.e. grep appears to be returning the filenames but the WSL is failing to print them. ubuntu grep windows-10 windows-subsystem-for-linux share | improve this question asked Nov 24 '18 at

Is there a command to find coordinates of projection of a point on a plane?

Image
1 Let SABC be a tetrahedron, SA = c , AB = a , AC = b , SA perpendicular to AB , AB perpendicular to AC , and AC perpendicular to SA . I am trying to find the projection H of the point A on the plane SBC . I tried with two ways. Firt way. With some calculations, I found that H(({b^2*c^2*a/((b^2+c^2)*a^2+b^2*c^2)},{b*c^2*a^2/((b^2+c^2)*a^2+b^2*c^2)},{b^2*c*a^2/((b^2+c^2)*a^2+b^2*c^2)})) . Second way , We can prove that, H is orthocentre of triangle SBC , then I see at Is there a command to find coordinates of projection of a point on a line in 3D? documentclass[border=3mm,12pt,tikz]{standalone} usepackage{fouriernc} usepackage{tikz,tikz-3dplot} usepackage{tkz-euclide} usetkzobj{all} usetikzlibrary{intersections,calc,backgrounds} newcommandpgfmathsinandcos[3]{% pgfmathsetmacro#1{sin(#3)}%