Browsed by
Category: Technical

About the best video on modern memory

About the best video on modern memory

Any CS/CEE program worth its salt uses the Computer Architecture book from Hennessy and Patterson. Besides the operating system chapter, the chapter on memory was one of my favorites. Enter Branch Education that created this really excellent video on how computer memory works.

Definitely worth the 35 minutes. It starts slow, but around section 8 it starts going fast and furiously through a lot of different concepts. Each builds on the previous, so you may need to pause and really make sure you grock what they said.

Scanning multiple pages into a single PDF

Scanning multiple pages into a single PDF

I have a Brother DCP-L2540DW combined scanner, copier, and laser printer unit. It’s been a great little unit I picked up for about $100 on a Black Friday sale that has cheap cartridges and loads of features for the occasional printing/copy job. On a side note, laser printers are a FAR better option than inkjet printers if you only occasionally print something. Now that good laser printers are below $100 and their toner is far more stable than inkjet printers that dry up and clog if not used regularly, they’re really the way to go for occasional everyday printing.

Recently I had to scan in about 100 pages of text and wanted to scan them in a single PDF document. Low and behold, the Brother toolkit provides a way to stack up all the documents in the feeding tray, scan the whole lot, and then automatically output a single paginated PDF document. Really awesome!

Instructions:

  1. Install and click on the Brother Utilities provided with the printer: Image
Image
  1. Click ControlCenter4 to open the Control Center 4 app.
Image
  1. On the Scan top menu, click the button for the type of scan that you would like to perform. For a multi-page PDF, you want to select File. A new dialog box will open:
  1. Be sure to change the File Type to PDF and then select the folder you want to save the document.
  2. Load the upper tray with the pages you want to scan. I’ve scanned up to 40 pages simultaneously this way without issue.
  3. Press the Scan button and the bottom and it will scan all the pages and combine them into a single PDF that is located in the folder set in the Scan Location directory you specified.

 If you have enabled the ‘Show settings dialog before scan’ option, then you will be prompted to choose your desired settings and then click Start Scanning.

 If you are using the Continuous Scanning option, you will need to load the subsequent pages either on the flatbed or in the Automatic Document Feeder (ADF) if available and then click Continue.  Once you have scanned all pages, click Finish.

Enhancing your stable diffusion game

Enhancing your stable diffusion game

AI generated art has caught fire. Learning how to generate the command line prompts to generate the art is still a work of trial and error. But some folks are helping you learn by giving some example prompts to help you learn what works and what doesn’t.

All the below items were 100% auto-generated and included on the page. It looks like people are exploring and sharing different prompts to generate different kinds of art.

  • Portrait Photography
  • Graphic Design
  • Architecture
  • Clothing design
  • 3D and game concept art
  • Graphic design

Links:

Installing Stable-diffusion 1.4

Installing Stable-diffusion 1.4

Time to play with some AI generated art!

Here’s some great instructions on how to install the older stable diffusion 1.4:
https://www.howtogeek.com/830179/how-to-run-stable-diffusion-on-your-pc-to-generate-ai-images/

8GB of VRAM or less

One of the first things you’ll run into is that you’re not going to be able to generate any images at 512×512 or larger if you have a graphics card with 8GB of VRAM or less. Even smaller if you only have 4GB of VRAM. The first/easiest method is to limit the output image size. There is also an option that splits the model into 4 parts and loads each separately (thought it will take longer), or using a more optimized/compressed set of trained model data.

So how do you do that if you have an older graphics card that only has 4GB or 8GB of VRAM? TingTingin has some tips at the end of his installation video if you are using a card with 8GB of VRAM (nVidia 3070’s for example).

Summary (at 15:45): Modify your txt2img.py and add the line ‘model.half()’ after model = instantiate_from_config(config.model) in the load_model_from_config() function.

cool windows tricks

cool windows tricks

Reset your graphics driver – Win + CTRL + SHIFT + B

Remembering a wifi password you entered forever ago:
c:\> netsh wlan show profile
< shows a list of wifi profiles you have connected to >
c:\> netsh wlan show profile <wifiProfileName> key=clear
< shows the wifi password you last entered >

Message every single windows system on the network
c:\> msg * <message>

Hackertyper – Hit F11 to fullscreen your browser and then look like a hacker.
https://hackertyper.net/

FakeUpdate – go to the website, get on your friend’s computer, load the update screen for that OS, hit F11 to go fullscreen, and then see how long they’ll sit there before resetting.
https://fakeupdate.net/

Next 10 years of AI

Next 10 years of AI

Andrew Ng is one of the biggest names in AI. He makes a few predictions, and I thought the article had some good observations.

His current big focus is using AI in manufacturing. Andrew Ng founded Landing AI in 2017. His focus was primarily consulting, but after working on many customer projects, Ng and Landing AI developed a new toolkit and playbook for making AI work in manufacturing and industrial automation. This led to Landing AI and the development of a data-centric approach to AI.

“In consumer software, you can build one monolithic AI system to serve a hundred million or a billion users, and truly get a lot of value in that way,” he said. “But in manufacturing, every plant makes something different. So every manufacturing plant needs a custom AI system that is trained on their data.”

The challenge that many companies in the AI world face is how to help 10,000 manufacturing plants build 10,000 customer systems. In short – scale.

In manufacturing, there is often no big data to go by. The data for manufacturing different products is unique. Their first observation was to see it makes more sense to keep the models relatively fixed while focusing on quality data to fine-tune the models rather than continuing to push for marginal improvements in the models.

This uniqueness of data also means there is almost never enough images of faults or cases to train models. The only way out of this dilemma is to build tools that empower customers to build their own models and let product experts engineer the data and express their domain knowledge. Ng and Landing AI do that through Landing Lens, which enables domain experts to express their knowledge with data labeling instead of constantly tweaking the models.

Worth a read.

GreaseWeazle

GreaseWeazle

Have you wanted to read and write data off your old 5.25″ floppy disks with a modern computer? Or how about reading/writing floppies for Apple II, Amiga, ST, or a host of other systems? Or maybe even hooking up a 8″ floppy? It is possible!

There are solutions out there, but they can easily run $100 or more. I, however, picked up the GreaseWeazle and read some of my old 5.25″ disks. Best yet, it only cost $31 Canadian and is one of the more capable solutions. You can supposedly even use your old DOS floppy drive to read/write images for other platforms.
If you’re interested in seeing it at work on some unusual formats, this fellow gives a walkthrough of using Greaseweazle to read 3″ Amstrad disks. Pretty darn cool.

Items you’ll need:

  • GreaseWeazle by Decromancer – the plug-in USB board that makes it all possible. Plug in 3.5″, 5.25″ and 8″ drives and read/write the flux data for hordes of different formats.
  • Floppy drive – any 5.25″, 3.5″ or 8″ floppy that uses the Shugart interface. This is almost all old PC drives. Even better, GreaseWeazle can use these older DOS drives to read and write Apple, Amiga, ST, and a host of other formats.
  • Floppy disk cable – CablesOnline (ebay store) has a universal floppy cable Item # FF-002 for $9.99
  • Power supply with Molex connectors for the floppy drive. Either using a PC power supply with a Molex connector, or a stand-alone power supply with Molex connector
  • USB A to B cable (commonly known as a “USB printer cable”) to connect the GreaseWeazle to your PC

Setup:

Your floppy drive won’t show up in a command prompt like they did back in the old DOS days or like modern USB plug-in 3.5″ drives. Instead, you have to load and write whole images to the drive in one go. This means you need to work with floppy disk images.

  1. Set up your physical floppy drive to be used with GreaseWeazle.
    1. Attach the power cable to a power supply
    2. Attach the data cable to the floppy drive and the GreaseWeazle
  2. Follow the instructions on GreaseWeazle setup and software setup guide.
  3. Plug in the GreaseWeazle to your computer’s USB port
  4. Install and run GreaseWeazle GUI to format a disk, read a disk image, write a disk image, etc. Again, this only works on whole disk images. You can’t browse at a command prompt or read/write individual files/directories.

Optional but helpful tools:

  1. WinImage is a great tool for creating and converting disk image formats.
  2. Use the HxCFloppyEmulator to examine and covert the raw disk images to anything you need.

Learn more:

Tech Tangents talks about how preservationists use tools like GreaseWeasle to back up disks.

Resource Links:

McBroken

McBroken

Why is the ice cream machine always broken at McDonalds? Isn’t there a way to find out if it’s broke before I go? Yes – rashiq came up with McBroken to tell you.

Dall-E results

Dall-E results

Michael Green did some experiments with Dall-E2 – and it’s pretty mind blowing what it can produce. He tests it out by asking it to reproduce various kinds of photographs in different artists styles.

These are just two of the images that are completely generated by AI:

https://twitter.com/triplux/status/1542529379485396995?s=20&t=CfkfkIvsM74LQgwpDvcrnA