CCCPaste

Termux Netscan with NMAP and HTML output

#!/bin/bash
#created by Kris Occhipinti
#http://filmsbykris.com
#Copyright Jan 2019
#GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt

MaskedTextBox Select All Text on Enter

// https://social.msdn.microsoft.com/Forums/windows/en-US/68c30f52-bba3-48c9-bf59-84304b75068d/maskedtextbox-and-selectall

private void maskedTextBox1_Enter(object sender, EventArgs e)
{
this.BeginInvoke((MethodInvoker) delegate() {

UTF8 to ISO-8859-1

/* https://stackoverflow.com/questions/1922199/c-sharp-convert-string-from-utf-8-to-iso-8859-1-latin1-h */

Encoding iso = Encoding.GetEncoding("ISO-8859-1");
Encoding utf8 = Encoding.UTF8;
byte[] utfBytes = utf8.GetBytes(Message);

Mutt Notes

#Delete all message in mailbox
SHIFT-D
Delete messages matching: ~s .*

#move all matches to mailbox

Scilab, tp07 trace script

//trace
t=[0;1;2]
y=[1;3;7]
T=linspace(t(1),t($),1000)';
A=constrpoly(t)

Scilab, mcnorm function

function x = mcnorm(A, y)
x = (A' * A)\(A' * y)
endfunction

Scilab, tp07 trace2 script

t1 = [0; 1; 3; 4; 5.5; 6]
tau1 = t1
A1 = construct(t1, tau1)

tau2 = [0.5; 2; 2.5; 3.5; 4.5; 5.75]

Scilab, construct function

function [A]=construct(t,tau)
m = size(tau,1);
n = size(t,1);
A= zeros(m,n)
for i = 1:m

Scilab, mcqr function

function [z] = mcqr(A, y)
[m, n] = size(A);
[Q, R] = qr(A3);
e = Q' * y
Rt = R(1:n, :)

Scilab, constrpoly function

function [A] = constrpoly(T)
n = size(T,1)
A = zeros(n,3)
A(:,1) = ones(n,1)
A(:,2) = T