View on GitHub

Quorten Blog 1

First blog for all Quorten's blog-like writings

Copy a disk image over the network

2019-04-04

Categories: unix  
Tags: unix  

Suppose you want to make a hard drive image of some particular computer and send that image over the network to another computer. How do you do this in GNU/Linux? Surely, the easiest way to make disk images is through the dd command, but the destination of a dd command must be a file, correct? Incorrect. Actually, the dd command in its default mode reads from standard input and writes to standard output. If you don’t specify an input or output file, the defaults will be used. So, you can rest assured that it is easy to route the output or input from dd to network streaming commands.

Matter of fact, perhaps the easiest way to use dd to send and receive disk images over the network is with this nifty trick involving netcat (a.k.a. nc). Insert some bzip2 commands into the chain to compress before sending across the network and you’ve got yourself a pretty good system.

First, on the receiver, type the following commands. You can set the output to either a file, a physical partition, or a physical drive. If you are storing the image to a file, you may want to skip decompression and start by just storing the compressed disk image.

# Before `netcat' version 1.84-10
nc -p 2222 -l | bzip2 -cd | dd bs=16M of=/dev/sdb
# `netcat' version 1.84-10 and later
nc -l 2222 | bzip2 -cd | dd bs=16M of=/dev/sdb

Read on →

Does ImageMagick have OpenCL GPU acceleration? If it’s not in the official version, surely there is a development branch with the feature out. Looks like there was a patch made and merged into the master version of the source code. The OpenCL GPU acceleration is only implemented on some operations, such as resize. That is one of the most important and essentials operations to accelerate for me, so that works out quite nicely for me.

Note that you have to verify if your particular build of ImageMagick includes the OpenCL acceleration. If not, you’ll need to rebuild your own ImageMagick with the feature enabled.

20190402/DuckDuckGo ImageMagick OpenCL GPU acceleration
20190402/DuckDuckGo raspberry pi command line gpu accelerated image manipulation
20190402/DuckDuckGo image magick gpu acceleration
20190402/DuckDuckGo imagemagick gpu acceleration at DuckDuckGo
20190402/DuckDuckGo imagemagick command line gpu image resize
20190402/DuckDuckGo raspberry pi command line gpu image resize
20190402/DuckDuckGo imagemagick gpu acceleration at DuckDuckGo
20190402/https://imagemagick.org/script/opencl.php
20190402/https://stackoverflow.com/questions/31582141/how-do-i-build-imagemagick-with-opencl

The world of computer color is a world that is all around us, now that all virtually media has gone digital. Yet, despite having been well-established on the mass market of mainstream society for over 24 years, there are still very few people in the world that have a correct understanding of the principles of light and color in computer graphics. This article starts out with an accurate reflection of that reality, works our way up to debunk the widespread myths of the vernacular science, and finally ends at the understanding that a reasonably informed citizen probably should have. Along the way, we also take note of other principles important to professional photographers.

In the beginning of engineering time came the pros. We’re talking 1920s and earlier. In the beginning of mass-market time came the amateurs. We’re talking 1980s and later. Obviously, strength in numbers is the clear bias here, so let’s start at the era of desktop computing and web, much of which was established in the 1990s and remains largely the same to the present, albeit at a much larger scale thanks to the introduction of smartphones and tablets.

The practical hands-on amateur’s viewpoint

When playing around in your favorite computer graphics drawing program, you’ve probably seen a color picker dialog that looks something like this.

Read on →

Ceramic repair with water glass?

2019-04-01

Categories: mat-sci  
Tags: mat-sci  

So, we know clearly that sodium silicate, a.k.a. water glass, can be used to join clay pottery pieces togeher during the clay modeling process. Then the craft is fired in a ceramic kiln and it all becomes permanent. But, what about joining ceramic together that has already been fired?

Oh yeah, right, you probably see the main motivation of this… repairing broken ceramic. Otherwise, it hardly makes sense anywhere else. Due to the stiffness of ceramic, if you want to join two arbitrary pieces together, you would need clay filler material to put in between.

The conventional wisdom from professional potters is that you cannot join back together a broken ceramic craft, put it back in the kiln, and make it whole again. Why is this? Ceramic undergoes permanent changes once it is put in the kiln. Moisture and permeability, the important aspects of clay that make it stick together and make it easy to stick other things to it, go away after the ceramic kiln firing process. Why does water glass work so well in the clay modeling process? Beyond being an excellent adhesive, the fact that it penetrates the permeable clay surfaces it sticks to also makes it tend to absorb into those surfaces to join the two into one. But, such cannot be the case with hardened ceramic, can it?

Read on →

So, I went looking around on Twitter and subsequent links from such websites, typically news websites, and I’ve gathered a few interesting things that I note here.

There are cliques on Twitter, and indeed clique-forming is touted as a fundamental part of human nature. It doesn’t end after high school.

20190329/https://mashable.com/article/twitter-cliques-high-school-human-nature/#4.tyXMzwvPOJ

This is an interesting article about an Uber employee involved in evaluating the Uber driver app and looking for ways to improve it. When meeting with actual Uber drivers, they find it reassuring that his test drive experience means he understands more of what are doing, rather than someone who is only looking at spreadsheets at high.

20190329/https://mashable.com/article/uber-driver-app/#Vm3Q2PaAkaqj

Now this is really interesting. Garfield phones washing up upon a shore in France for over 30 years? These were discovered to have come from a lost container that crashed upon the shore during a heavy storm. Although the container fragments have been found, the garbage pollution caused by it will keep washing up on short for several decades to come, as the phones are scattered throughout the waters and stuck upon miscellaneous rocks.

20190329/https://mashable.com/article/garfield-phones-france-coast-mystery/?utm_campaign=a-rr-culture&utm_source=internal&utm_medium=onsite#jgcGYiHdEsqo

Read on →

So, with all my progress in developing my own process for scanning books by photographing pages with a DSLR camera and low-cost cardboard armatures, surely someone else had done likewise. Let’s see what we have out on the Internet for information.

Oh, this is an interesting find. The main innovation here is that you don’t need a high-quality V-shaped stand to get good book scans. You can get by just fine by cutting a cardboard box at an angle. Also, you only need one half of the V. What you can do with this is approach book scanning by paging through twice and doing an even-odd scan.

Beyond that, being that this appears to be quite an older writing, there are other differences based of the trends of the times technological capabilities. For one, all of the resolutions involved are lower, of course. Also, all of the photos are being sourced as JPEG photos from a point-and-shoot camera, of course because that was the only thing that really made sense in the early 2000s. So, this means that all subsequent processing steps are lossy. But if you’‘re okay with that workflow, then ImageMagick is a great tool to use in it.

Also, another useful project was mentioned: ScanTailor. The project is still up and well, it’s GUI is written in Qt, which is good for long-term sustainability rather than GTK+, and apparently it has even been used by some libraries, submissions to Google Books, and submissions to the Internet Archive.

Read on →

Literate programming. Ah, yes, the venerable creation of Donald Knuth, a great idea in concept, just that it failed to become popular in the greater software profession. So, what does Wikipedia have to say about literate programming in this respect?

20190327/https://en.wikipedia.org/wiki/Literate_programming

Oh, now this is very interesting. So, although Wikipedia is not so punctual in stating this, literate programming does have a clear successor that lives on today. First of all, let us remind ourselves that Donald Knuth came from a largely academic background. If you look toward programming in the academic and research fields, you will find that the modern-day concept of electronic lab notebooks is the practical revitalization of literate programming. Mathematica, Sage notebook, Jupyter, you name it. If it’s a “notebook” interface that allows you to intersperse text, graphics, code, and visualizations, then you’ve got yourself the modern-day equivalent of literate programming.

Another prime example of modern-day literate programming is found outside of academia in the form of technical blogging. If you’re writing a blog article in Markdown, and you intersperse coding snippets throughout, with the expectation that you are creating a how-to programming walkthrough article, you’re also doing another modern-day form of literate programming. Matter of fact, there are some software tools to make this process easier for the sake of also automatically generating an executable program from the same source. It’s just that, well, you know, that technology hasn’t become very popular in practice. But, if you wanted to declare modern-day literate programming, that is where you would find it.

It’s important to understand that reference documentation generation from a single-source is not considered literate programming.

So, this is interesting that I haven’t noticed this. There are cue marks on movie films? Traditional movie film reels are 14 to 20 minutes in length, so a full feature-length film must be delivered on multiple reels of film. Inside a projectionist’s booth, there would be two movie projects set up side-by-side: one to display the actively running film, the other one to queue up the next reel in preparation for the switchover. The projectionist would watch the upper right hand corner of the running film for a first burnt out dot to flash. This would indicate to them that it is time to start the motor on the second projector, with the film running starting at 8 seconds of countdown. Then there would be a second burt out dot flash a 7 seconds later. One second later the projectionist would execute the switchover.

So, that says a lot about the old days of film and cinema. Yeah, it definitely wasn’t as easy to run a movie theater back then as it is today. In the last generation of film before the digital switchover, there was an alternate projector design that could run off of one really big long reel of film, thus not requiring switchovers through three or more separate reels of film to show a movie. Today’s digital cinema knows of none of the problems of running a cinema in time’s past. Heck, modern digital theaters don’t even need a human at all at the projector.

Read on →

PubMed Identifier (PMID)

2019-03-21

Categories: inven-sys  
Tags: inven-sys  

ISBN, DOI, what’s next? PMID. Yet another large and established information database for issuing unique identifiers for objects, in this case published articles related to the field of medicine.

20193020/https://en.wikipedia.org/wiki/PubMed_Identifier

More information on the impending recession that we are anticipating?

So, these articles have rather different commentary. On one hand is simple advice on how to develop your personal finances when a future recession is in anticipation. On another hand, one article poins out that today’s recessions are more determined by the credit cycle of federal policies than by business cycles of expansion and contraction. Finally, the last article comments on 10 signs to look for that a recession is coming or has arrived.

20190318/DuckDuckGo new york times booming economy signs of future recession
20190318/https://www.nytimes.com/2018/03/23/business/trump-recession-forecast.html
20190318/https://www.forbes.com/sites/nextavenue/2018/08/03/is-the-next-recession-on-its-way/#2516f4a34837
20190318/https://www.forbes.com/sites/johnmauldin/2018/05/15/the-credit-cycle-signals-that-recession-is-around-the-corner/#7174e4617519
20190318/https://www.thinkadvisor.com/2018/04/23/get-ready-for-the-next-recession-10-signs-to-watch/?slreturn=20190218172339