Topics - mouser [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 770next
1
Just thought I'd share this little code snippet for a batch (zipcurdir.bat) file that I use quite frequently.
Requires 7-zip but could be adapted for any other zip tool.
Then just put this little .bat file in any directories where you want to be able to super quickly make a uniquely timestamped zip file of the contents of the directory, and then move the zip file out of the way to the parent directory.
I use this all the time when I'm working on a project and it's not under version control and I want to make sure I have quick backups before something goes wrong.

Add any exclusion patterns you want to the extraoptions line, and change 7-zip location if different; or maybe you want to change the destination folder..

for %%a in ("%cd%") do set "CurDir=%%~na"
set thedir=%CurDir%

set mydate=%date:~12,2%%date:~4,2%%date:~7,2%
set TIMEZERO=%TIME: =0%
set HOUR=%TIMEZERO:~0,2%
set MIN=%TIMEZERO:~3,2%
set mytime=%HOUR%%MIN%
set zformat=zip

set extraoptions=-xr!Temp -xr!Junk

set zcmd="c:\program files\7-zip\7z" a -t%zformat% -r %extraoptions%
set fname=%thedir%_%mydate%_%mytime%.%zformat%

echo %zcmd% ..\%fname% .\
%zcmd% ..\%fname% .\


As an example if I put this zipcurdir.bat file in my Documents\Arduino\ folder and run it, I get the file in the parent directory: "Arduino_220506_0615.zip"

The only thing neat about this batch file is the autonaming of the created file based on the current directory and the fact that you never have to modify the batch file no matter where you put it.

2
Living Room / Bought a color laser printer -- it's a game changer
« on: April 24, 2022, 04:01 AM »
I have always done a lot of printing on my (black+white) laser printer.  I love the speed of printing, long lasting ink, easy and fast duplexing, and the quality.  I frequently print papers to read, documentation, board game rules, etc.

And I have always had a color inkjet printer, upgraded through the years, but never a pleasure to use.  Too slow, ink is too EXPENSIVE, and dries out from infrequent use, slow startup times, waste of space.

I would only use the color inkjet on the rare occasions when I needed color -- most of the time if it was a document with just a little color or where I didn't care, I'd print on the laser in black and white.

---

But I finally bit the bullet and bought a color laser (HP Color LaserJet Pro M255dw for about $350).

It feels like a bresh of fresh air.  It has almost all the advantages of the black and white laser, but I now can print out documents with some color in them, and just have to deal with 1 printer.

Now if you need to print photos, then the color laser is not going to satisfy you; inkjets produce far better nice glossy color photos.

But for everything else it's been a joy and a relief to not have to mess with the inkjet.

I'll also say, I do think the black pure text printing from the color laser is *slightly* worse quality than my previous black+white laser, but especially with my eyes not being what they were, it's barely noticable and an easy trade off for me for the benefits of color printing.  I'm so glad to be done with inkjets.

3
Living Room / Opinions requested on my new YouTube Video Series
« on: February 14, 2022, 11:30 PM »
I've recorded a 5+ hour (16 part?) video series called "Micro-studio Boardgame Video Production":


First episode:


It covers most of what I've learned in the last year.

It's not live yet, I still have another 10 days or so before I make it live, and I'd love any feedback about things that I should fix before making it live!
Let me know your suggestions.

4
Other Software / OBS Scripts
« on: January 22, 2022, 02:12 AM »
I've created an open source directory for miscellaneous scripts and tools for OBS (Open Broadcasting Studio):
https://github.com/dcmouser/obsScripts

Browser based animated flip timer (used to show time until some date or a countdown of a specific duration):
example2.png

Sidebar dock for OBS that acts as a tally indicator of recording/streaming status, using Websockets:
jrTally.png

Also includes a youtube chat script that changes a browser source on a scene to show the current chat contents overlaid on a screen

And a fix for an existing lua timer that I no longer use.

ALL of these are just minor tweaks from me of code written by others.

5
Went looking for a straightforward tool to let me broadcast one of my pc screens to an android tablet during a recording -- with the additional need to be able to flip/mirror the screen in the process for a teleprompter effect.

Came across deskreen which seems to work well and is free (donations encouraged):

https://deskreen.com/

Screenshot - 1_19_2022 , 9_03_30 PM.png

Pages: [1] 2 3 4 5 6 ... 770next
Go to full version