I recently had to provide a list of files in a USB thumbdrive/stick and learned a sweet trick via CLI. This method provides a text, Word or Excel file that lists all the files and folders inside a specific directory within your computer.
dir lists all the files and folders contained in the folder
/s will list all the files in the subfolders as well
Output.doc is the document file containing the entire directory and the details. It may be in another format such as a simple .txt file which can be edited on Notepad.
Listing only certain types of files
The command will be:
dir/s\*.pdf>output_pdf.doc
(.pdf) is a wildcard function that will only select .pdf files.
List bare format (no heading, sizes or summary)
The switch /b will list file names, however when displaying subfolders with dir /b /s, the command will return a full pathname.
dir/b/s>output_pdf.doc
Using the tree command instead of dir
This command will produce a tree listing of the current directory
tree/f>output.txt
/f displays the names of the files within each directory listed.
/a may be used to specify alternative (ascii) characters to be used to draw the tree diagram so that it can be printed by printers that do not support the line and box drawing characters.
In a YUV data structure scheme, the ‘Y’ represents the luma value, and the ‘U’ & ‘V’ represents two chroma values. In contrast to RGB, the values represent the intensities of red, green and blue channels in the pixel.
Each unique ‘Y’, ‘U’ and ‘V’ value comprises of 8-bits (or one byte) of data.
Y value = Luminance value
Overall brightness of the pixel. It is a grayscale value.
U (CB) value = Chrominance value
Specifically the Blue
V (CR) value = Chrominance value
Specifically the Red
The U & V values are coordinates instead of brightness values with positive and negative values.
Why not stick to RGB?
Colour and brightness information and combined within the three channels in RGB. i.e. Increasing the R channel will increase both the colour and brightness value in tandem. In simpler terms, both properties are combined in the same value.
In a YUV system, the brightness information is completely separated from the colour information. In other words, more control is afforded.
Practical application
Backward compatibility - Black and White TVs can’t take RGB signals since the brightness value is baked into the colour values which it doesn’t understand. Whereas YUV has the Y value which can be processed by the television set, by ignoring the colour components.
Chroma sub-sampling - YUV allows the user to remove information specifically from the colour values without affecting the overall luminance of it. This is particularly useful during image compression and an effective means in processing images.
This post will be part of a series documenting the network setup of my new apartment. The apartment is over 20 years old hence a major overhaul is required and the renovation is a great opportunity to lay CAT6A in the house for the 1Gbps/10Gbps network 🤓.
My research began with this article on patnotebook.com detailing the conversion of telephone points to RJ45 data points in newer BTO (Build to Order) flats in Singapore. Newer flats in Singapore have CAT6 cables already nicely laid in the house, however many of the points are terminated with a telephone jack instead of RJ45. Based on the article, it seems that BTO flats only have one point terminated as RJ45, which is definitely not enough 😁.
Older resale flats like mine do not come with any data points hence I will have to lay my own cables and design my own network infrastructure from scratch. On top of patnotebook.com, I’ve relied on many youtube videos and blogs to learn basic networking concepts and the different components required to run a network.
I’ve devoured Evan McCann’s tech blog since I plan to purchase Ubiquti hardware for the network. There are many nice articles that explain networking jargon in simple terms and breaks down the Ubiquiti universe in sizeable chunks. He is extremely detailed in doing breakdowns and making comparisons on the many Ubiquiti products as well. I would recommend his site as essential reading for whoever is considering putting together a Ubiquiti system!
I plan to update my progress with subsequent posts, but for now I’ve made a simple diagram detailing the essential hardware required for the network setup.
The website is finally up and here is my first post!
I’ve been meaning to create a work site for awhile now and I’ve finally taken up the challenge after attending GA’s Intro to Coding: HTML & CSS Workshop. It was a short webinar that covered the fundamentals, which taught me enough to take the plunge.
So here it is!
I initially considered Wordpress for its wide usage but ultimately chose a static site generator like Jekyll for its quick deployment and little complexity. Static sites can be hosted directly on GitHub through GitHub pages. That means no hosting fees (!!!) and easy management of edits, thanks to versioning (which I’m still discovering).
Things I’ve learned and done so far
How to purchase a domain (namecheap) and point it to the host (GitHub)
Discovered GitHub Desktop
Better understand GitHub as a platform and its functions
Set-up and create a simple Jekyll site and host it on GitHub
How to host the site locally for testing
How to maintain the entire project on Atom
There were some issues along the way, so I wouldn’t say it was an easy ride. Fortunately, nothing is too difficult for Google & Stack Overflow. I’ve learned plenty so far but there is still much to do and learn. I’ll update this page as I go along.
Note:
Command to run Jekyll site locally
Passing the –livereload option to serve will automatically refresh the page with each change to the source file.