Search This Blog

Sunday, September 25, 2022

Big Sky Big Dog Walk #513

Shot with iPhone, 195° fisheye - cleaned up some in Premier Pro.

Trying to get the camera rig set up properly.



Big Sky Big Dog

Big dog walk... 

Daily walk - five (5) Great Pyrenees and one (1) miniature King Cavalier.

We walk every day and have since the puppies (Red (grey lead attached to me though hard to tell in this video), Charity (black lead) and Hope (blue lead)) were old enough to go (April 2021).  This is the 512th walk (about) with the entire crew.  Cookie (yellow lead) and Cho (hand held grey lead)
are the parents and have been walking for years.

Playing with cameras and lenses on subsequent walks.  Probably going to make a camera rig to make this easier.

This video shot in one take, no cuts, on an iPhone.




Friday, September 23, 2022

Washington County Oregon Sues FOIA Requestor

Interesting story here: Oregon records dispute plays out against backdrop of election fraud ‘big lie’

Washington County is seeking a court order to block the release of a file related to the May 2021 election

BY: JULIA SHUMWAY - JUNE 14, 2022 5:45 AM

Tim Sipple, a libertarian, filed a FOIA (Freedom of Information) request with Washington County, Oregon for "...the SQL, or Structured Query Language file, a set of code used to create or modify the contents of a database, for the test of the May 2021 election..." (from the article).

Initially the county pushed back with Oregonian law that the article says "exempts records that include trade secrets, a computer program developed or purchased by an agency or that could identify security measures, weaknesses or potential weaknesses."

Undeterred Sipple, "... appealed the county’s decision to Washington County District Attorney Kevin Barton, who in February concluded the files were public and ordered the county to provide them."

That didn't sit well with the county so they sued Sipple to prevent his collecting the FIOA records.

This was in June 2022.

The trial was held recently and, according to Dr D G Frank, who provided testimony, here are his takeaways from the trial (available here on MeWe):

"Oregon Case Take-Aways"

It was a very productive week in Oregon at the trial in Washington County! I testified in the case where the SoS and County Officials were demanding that a local citizen not publicly share an election system file that was given to him by county election officials (the backup file for the 2020 General Election).

Here are my take-aways:

Oregon election officials are technically incompetent (County Clerk, AD, SoS). They have little understanding of the systems they manage, and little understanding of how vulnerable and porous their network security is.

The Oregon AG admitted in formal court documents that their election systems are accessible wirelessly even when they are not connected to local networks.

The Washington County clerk (retiring after 33 yrs) testified that she could turn on the modems on her election machines (the ones that are supposedly "air-gapped") with a few mouse clicks and without a password. (After all, they are just an off-the-shelf Dell laptop.)

Washington County election networks are using older, long-ago-hacked, security protocols.

Social 'sciences' use different mathematics than standard mathematics and statistical methods. (Math is racist, and counting ballots can only be performed by someone who has been trained as a political scientist.)

Oregon voters are using ballots that are not anonymous.

Oregon election officials are afraid to let the public inspect their systems, files, and procedures. Instead of making their election systems more transparent and auditable, Oregon election officials are trying to hide everything. (Of course, that increases the public trust in their processes.)

After careful inspection of election systems, results, and dozens of meetings with election officials in 43 states, I am sad to say that most of the above points apply to every state.

We need to "Vote Amish." All paper, no machines. Single day of voting on paper ballots with photo ID and paper poll books. Hand counting and reporting of tallies in traceable, transparent, and auditable ways.

So let's summarize this testimony:

A. These people don't know anything significant about the technology they use to secure your Constitutional right to have your vote accurately count.

B. These systems are vulnerable to external wireless access.

C. Passwords are not required.

D. These people are afraid you will find out the truth about what they do and how they do it.

E. They will resort to suing people to protect their incompetence.

F. Based on Frank's involvement in forty three (43) other states most of the above points apply to every state.

I suppose an actual trial transcript will eventually be available.

Please continue believing what is being provided here is not true and what Facebook, Twitter, etc. (again, known liars in cahoots with the US government) are telling you the truth that everything is "just fine."

Friday, September 16, 2022

Facebook Admitting Government Collusion to Censor Speech

Senator @HawleyMO Grills Facebook Executive And Gets Him To Admit That They Have Coordinated With The Biden Administration To Censor Constitutionally Protected Speech

https://twitter.com/ColumbiaBugle/status/1570477997836173312?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1570477997836173312%7Ctwgr%5Ec58383125d5f988946af0bf369f03787e51af56b%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fnotthebee.com%2Farticle%2Fjosh-hawley-got-a-facebook-exec-to-admit-they-censor-constitutionally-protected-speech-at-the-behest-of-the-biden-administration-and-nobody-cares

C++ Decays into Lisp (Chapter 1)

I have been using Mathematica since about version 3.0 (roughly 1996).  I also have extensive Lisp experience beginning in the 1980's. I ported Portable Standard Lisp (https://github.com/blakemcbride/PSL and https://en.wikipedia.org/wiki/Portable_Standard_Lisp) to VMS for use at LEXEME Corporation.  LEXEME initially used Lisp to build what I considered to be a successful computer-language to computer-language translation systems (more on this company in future posts).

Mathematica is a Lisp-ish offshoot in terms of its core Math Kernel functionality.  The UI is otherworldly in terms of power when compared to most IDEs - particularly in the area of complex mathematical and textual formatting as well as 2D and 3D graphics functionality.  I have routinely used Mathematica and it's UI over the last few decades to construct many complex applications and prototypes.  (There is also there "Workbench" which is an Eclipse-based Mathematica IDE - I have not played with that.)

So, more or less, forty some years of lisp and lisp-like language experience.

Key features of these languages: lambda's, rule processing, programs represented as data, and all the other lisp-ish features, and, most importantly, lack of speed.

All that said, I have also used C professionally since about 1976 and C++ since the mid 1990's as well as many python, Java, JavaScript, and many more.

The reason for this post is the disastrous direction "C++" has taken over the years.  Disastrous you say?  Why C++ is becoming the greatest thing in programming since sliced bread!  How can you say this!

As a for instance, let's take a look at this video:

The first part describes the explosion in "pages in the standard" from 500-ish to thousands over the years (I smell design by committee).  Not a good start.

From the video

The next chunk of video describes code of the form:

    main() {
        std::cout << f() << '\n';
        std::cout << f() << '\n';
        std::cout << f() << '\n';
        std::cout << f() << '\n';
    }

With a lengthy discussion of various ways (lambdas, generators, static variables) to configure the function f() to return sequential values.

   static int f_val = 0;
    int f() {
        return f_val++;
    }

In the olden days the above function f() would accomplish this task.

However, the video takes you through ever more complex forms of the same functionality: first lambdas and finally a really complex "generator".

All that said the important take away is this: why keep adding ever more complex features to the language when the language already has the necessary features to accomplish the task?

The "olden days" version generates code that looks like this on an Intel processor (using clang):

    push    rbp
    mov     rbp, rsp
    mov     eax, dword ptr [rip + f_val]
    mov     ecx, eax
    add     ecx, 1
    mov     dword ptr [rip + f_val], ecx

    pop     rbp
    ret

(Taken from compiler explorer at https://godbolt.org/)

We can use a lambda (one of many possible ways) to do the same thing:

    int f_val = 0;
    auto f = [&]() {
        return f_val++;
    };

which produces this code:

    push    rbp
    mov     rbp, rsp
    mov     qword ptr [rbp - 8], rdi
    mov     rax, qword ptr [rbp - 8]
    mov     rcx, qword ptr [rax]
    mov     eax, dword ptr [rcx]
    mov     edx, eax
    add     edx, 1
    mov     dword ptr [rcx], edx
    pop     rbp
    ret

Here we see seven instruction instead of four (75% increase) and our language has progressed in complexity as measured by the standard maybe 50% (at least to the C++11 features used here).

Why is this okay?

Well, for one thing processors today are insanely fast compared to the 1990's...  (A PDP-11/20 used in the early 1970s for Unix had an instruction cycle time of perhaps 800ns, current processors have a cycle time of perhaps 1ns as well as many advanced features like caches, and so forth.) 

So we can be less efficient in our generated instructions and our thinking.  Yes, our thinking...

All the muddled C++ "standard" expansion is basically tied to the idea that it's "too hard" for random Joe programmer to manage memory on his own - either will malloc/free or new/delete.  Really?  Try and figure out some old, giant code base stuffed with "auto" that takes months to adequately decode before you can really make a knowledgable fix.  How is this better?

So, to solve the problem, we turn a memory pointer language into one that tries to get the programmer to structure the code in such a way as to not need memory pointers.

The other sob story is that programmers need "efficiency" - python and friends are too slow (being interpreted or garbage collected) - so, rather than re-evaluate our programming situation, we need to move features of these other languages into C++.

But let's weigh this against the real cost of software: maintenance over lifetime.  Instead of one way, albeit tedious or using explicit memory allocation, we instead have created a generation of standards "expansion" so that either we have a mix of forty plus years of "coding standard" mixed into a single application or a continuous "rewrite" process that requires the code base to be constantly "reworked" to remove old "standard" code and replace it with new, less efficient "standard code".

Today C++ aspires to have all the things that are "wrong" with lisp: auto instead of explicit types, impossible to understand code (using auto, for example, to hide sins which only a compiler may know), explosive error messaging (same as losing a parend in lisp), a thousand ways to do simple things, and on and on.

And some things that are not related to Lisp: an entire interpreted Turning-complete template model.

Things like GPUs, graphics card standards such as OpenGL, Vulkan make writing "portable" code impossible because the libraries for these things are more complex than the base application.

Let's not forget WASM.  The new architecture to take your old, creaking C++ application into the modern operating system of a browser.

What's next in C++, piping like in shells, oh wait, it's already there!

Perhaps a C++ REPL?

I can't wait!

I mentioned Mathematica at the start because, of all things, it does the best of bringing everything you might want to do when developing complex applications into one place: code, graphical output, text formatting, documentation, handing complex math.  You can build prototypes quickly and with minimal effort.  They will run on any supported machine.

It's certainly no panacea but it's the most effective thing out there in many ways.

I think Mathematica needs a more Atom/Julia-like environment (though sadly Atom is to be shelved in place of VSCode) and a better interface to the volume of libraries out there (rather than just their own).

Things like VSCode are nice but they never quite work on large code bases.

No, instead of this ridiculous decades-long C++ "standards" effort how about a global effort to design a real development environment that we, as humanity, can be proud of.

A language that has a debugger that always works.

An IDE and language that is designed to handle new hardware: GPU, AI.

A development environment that can handle large, complex at-scale systems.

A language that allows control over efficiency.

A language that runs "everywhere" - hardware, GPU, browser.

I think that the focus on the language is really unimportant to a large degree (sure it needs to be readable).  What is important is a real development environment that is portable, easy to use, helpful, works across all platforms and is designed to handle the life cycle of real software.



Sunday, September 11, 2022

Unbreakable Crypto (Computational One Time Pad)

Alice and Bob with to exchange totally secure messages which cannot be decode by any third party.

They create a web service that broadcasts (using EventSource) non-deterministic random number generator (NDRNG) blocks - pulled from a hardware NDRNG - (1,024, 2,048, etc.) of 8-bit integers or perhaps choose from a commercial service.


(Initially they may require some external verification that the service they are using is in fact the same, i.e., not hacked in some way.  This could be accomplished, for example, with a public key signing of the blocks.)


Each NDRNG block has a sequence number and is transmitted on a short, prescribed, time-based standard, predictable interval.


Alice and Bob each poses a computer capable of subscribing to this EventStream to capture blocks.  The computer will also have the ability to capturing both arbitrary web data as well.


While Alice and Bob could agree to use the NDRNG EventStream blocks directly at specific times as a one-time cryptographic pad obviously anyone else who happened to capture the same block(s) would be able to trivially decode their messages.


To avoid this problem Alice and Bob agree to exchange a specific type of program as a ‘key’.  The program has specific, unique properties:


1) It is “synchronous” with respect to both Alice and Bob in time such that information on its state of computations (data, program counter, program memory, blocks, altered blocks, etc.) is the same for both Alice and Bob over time, i.e., both their computer compute identical values and have identical state at identical times.


2) It consumes and retains some set of block data from the EventStream.


3) It performs operations on blocks in a “closed” manner: operations must not introduce data derived from non-block sources.  For example, treating two sections of two blocks as 32-bit integers and replacing one section with the sum of the two integers is valid because only block data is used.  The addition could generate a carry which, again for example, could be used to shift another block.  This is valid as the carry is the result of a block-only operation.  But adding an epoch time to a block, for example, in this way would be invalid.


4) The order and selection of operations within the program may be controlled by block data or be coordinated using some data synchronously gathered by both Alice and Bob.  For example, the selection of which 32-bit integers to use within which block and the ordering of these additions could be controlled by bits fetched from some portion of a Bitcoin ledger selected by the program (obviously the program would fetch arbitrarily many external data sources so tracking web operations would not easily reveal what data was actually used).  Further, block data can be used to alter, modify or add to the program over time as well as exclude blocks or other previously computed data from future computations.

  

5) At various synchronous points of operation the program extracts an arbitrary set of data form its state to create a “one-time pad.”  Pad creation may, for example, be performed by an algorithm that ensures a uniform distribution of one’s and zeros in the pad.  Bob and Alice exchange messages using these one time pads: message exchanges are synchronized in time to the operation of the program.


The idea here is that the internal state of the programs memory is a set of altered blocks of NDRNG data.


It would be impossible to monitor all data received by Bob or Alice and attempt all possible permutations of all possible operations on that data in order to guess the program state.


Pads are continuously generated over time and the only connection between Alice and Bob is the state of this computation.


Notes: https://www.design-reuse.com/articles/27050/true-randomness-in-cryptography.html

Tuesday, September 6, 2022

And the Winter will be Big...

Эпический газовый тролль (Epic Gas Troll...)

And no, it's not your Game of Thrones "winter is coming..." nonsense.

А зима будет большая…
Вот, гляди-ка, за рекой
Осень тихо умирает,
Машет желтою рукой.
Плачут мокрые осины,
Плачет дедушка Арбат,
Плачет синяя Россия,
Превратившись в листопад.
И, сугробы сокрушая,
Солнце брызнет по весне…
А зима будет большая —
Только сумерки да снег.

And the winter will be big ...
Here, look, across the river
Autumn is slowly dying
Waving yellow hand.
Wet aspens are crying,
Crying grandfather Arbat,
Crying blue Russia
Turned into leaf fall.
And, crushing the snowdrifts,
The sun shines in spring...
And the winter will be big -
Only dusk and snow.

Gazprom shuts of EU gas...  

And trolls the west by posting this fascinating video.  

I wonder if the EU will simply and magically turn down everyone's thermostat remotely like they did in Colorado...  And save the day.

Probably not.