topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday June 21, 2025, 1:51 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 21 22 23 24 25 [26] 27 28 29 30 31 ... 225next
626
Found Deals and Discounts / Re: Black Friday / Cyber Monday 2018
« Last post by 4wd on November 23, 2018, 12:38 AM »
Ledger Nano S hardware crypto wallet is 50% off, (matte black only), with free shipping.

2018-11-23 17_36_46-Ledger Nano S _ Ledger - Vivaldi.png
627
Living Room / Re: How to find the file of a saved Snapchat video?
« Last post by 4wd on November 22, 2018, 06:59 AM »
When you long press a photo in Snapchat you select Save to Camera Roll, video will probably be the same.

Then open Google's Photo app, switch to albums, and there should be one called Snapchat.

From memory, MIUI has no app drawer, everything is tossed onto the home screens ala iPhone. You just have to find the camera app since you can't delete it, being a system app.
If, however, the MIUI developers came to their senses and put apps in an app drawer like normal Android or you're using a launcher that has an app drawer, then look there.

Otherwise, install another camera app and use it instead.
628
Found Deals and Discounts / Black Friday / Cyber Monday 2018
« Last post by 4wd on November 21, 2018, 10:31 PM »
Early Black Friday deal over at StackSocial:

Windscribe Pro VPN:
$12.00  1 Year
$24.00  3 Years
$59.00  Lifetime

Apply code BFSAVE40 at checkout for 40% off the above which brings them down to:

$7.20    1 Year
$14.40  3 Years
$35.40  Lifetime

They have dedicated Windflix servers, (for accessing US/UK Netflix), keep no logs, and allow P2P on almost all the exit gateways.

Disclaimer: I have a Windscribe Pro account from an earlier deal more than a year ago, they have been great.  Can't comment on their Windflix servers, (for accessing US/UK Netflix), since I don't use Netflix.
629
Living Room / Re: Android and web app for unified inbox?
« Last post by 4wd on November 21, 2018, 10:23 AM »
I must be missing something, you want an Android email client to access multiple accounts and that also has a unified inbox?

And then the rest sounds like you want another email provider.

Which is it?

Fwiw, K-9 Mail for the app.
630
Picked up Mastering Docker earlier this month, was trying to get to understand Docker and how to use it, and this ebook has been really good.

Just need to reconfigure my system to use Hyper-V instead of VirtualBox now ... needed a reinstall anyway  :D
631
Non-Windows Software / Re: open IMDB Android app with search anyone?
« Last post by 4wd on November 20, 2018, 05:45 PM »
You know you've just made it more confusing, they're shutting Google+ down and the only mention I could find of a Cmd key in Android was a thread you started here asking what it was used for in reference to one particular device ;D
632
Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content]
« Last post by 4wd on November 20, 2018, 02:15 AM »
@Deozaan:
You could buy a cheap IP camera and let it mail you when motion has been detected.

Oddly enough I've just done this with a RasPi 2B running Kerberos, works really well.
633
Visual Studio Code + PowerShell Stack Overflow Search extension ... ebook has already paid for itself :P

Remember to turn off telemetry if you don't want it.
634
Microsoft Power BI Cookbook - current free deal for the next ~21 hours.

Won't bother posting a separate thread, just check the site every 24 hours for the next giveaway.
635
I used Puffin on my phone with no problems, throw-away gmail address, fake name.

Also worked a previous time using Vivaldi and Nada email address.

Just tried it now with another throw-away email, worked fine, (2 mins before deal expired).

What had to be allowed:
2018-11-19 10_58_56-Packt Publishing _ Technology Books, eBooks & Videos - Vivaldi.png

And TBH, didn't read any reviews, was more like: ooooo->Powershell->*FREE*->MINE!!!!

BTW, thinking about the sign up process, all three times I've done it I've had no ReCaptcha to play with:

Fill in details + Submit = access immediately (No ReCaptcha, no email verification, nothing)

And that's with uBlock Origin, uMatrix, Cookie AutoDelete, and a Hosts file that's ~500kB full of ad/analytics/malware/etc blocked domains.
636
Found Deals and Discounts / [FREE] Packt Book of the Day
« Last post by 4wd on November 18, 2018, 04:32 AM »
Free at Packt for the next ~15 hours as of this edit, you need to create an account - they also have other permanently free books, (eg. Python, R, etc).

cover - Copy_1.png

^ That's a link.

Might help someone find out what their other half has been up to ...  :P
637
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on November 17, 2018, 10:33 PM »
Fold the edge of the material over, sew it to form a "tube", run a thread/string through leaving both ends hanging out to use as a draw string.
638
Non-Windows Software / Re: open IMDB Android app with search anyone?
« Last post by 4wd on November 17, 2018, 06:50 PM »
Protect the IMDb app from being optimised and just switch to it when you want to search?
639
Living Room / Re: Has anybody stopped to think[...]
« Last post by 4wd on November 16, 2018, 02:24 PM »
Nope.

I try and get all the thinking out of the way before I start ... so I don't have to stop.
640
Living Room / Re: Is there a way to easily carry earphones for my mobile?
« Last post by 4wd on November 13, 2018, 08:46 PM »
Or get real wireless earphones ...

1.jpg


... and lose them ...
641
Living Room / Re: Is there a way to easily carry earphones for my mobile?
« Last post by 4wd on November 13, 2018, 06:21 PM »
Go buy some magnetic wireless earphones and wear them like a necklace.

Wear cargo pants so you'll never run out of pockets.
642
Since the ultimate point is to extract the contents of the archive I see no need to get the list of its contents before doing so, it adds unnecessary steps.

Only needed to find out if there was more than one object in the root of the archive.
If, after extraction, there was an already existing object of the same name then you can either rename, replace, or skip (and leave the extracted files in the temporary folder for comparison with the existing), which can be handled by a requester or a preset.

Like I said, there was no error checking in my script since it was just a sample of how easy it is to do.

Plus there was the reference to TC so the ultimate environment in which the script/program would be used was unknown.
643
Living Room / Re: Is there a way to easily carry earphones for my mobile?
« Last post by 4wd on November 13, 2018, 04:30 PM »
Go buy a smaller case.
644
If a teamproject is possible, i could offer the part where files get extracted (zip) without need to decompress to temp folder.

A temporary folder created in the destination folder is the easiest method:

1. Extract contents to new temporary folder using 7-Zip command, (or library routines)
2. Get contents of temporary folder
3. Determine types of contents, (don't even need to do that, just count the number of items)
4. Contents:
 - If a single file/folder move it to the parent folder and delete the temporary folder
 - If multiple files/folders rename temporary folder to archive name sans extension
5. Go make a cup of coffee

Pretty easy in Powershell but not really any provision for a hotkey so simpler in AHK, AutoIT, or some other language.

Proof of concept (no error checking at all):
Code: PowerShell [Select]
  1. <#
  2.   Uses 7Zip4Powershell module: https://www.powershellgallery.com/packages/7Zip4Powershell/1.9.0
  3.  
  4. .\ExArc.ps1 <archive> <destination>
  5.  
  6. <archive> = full path to archive with quotes if necessary
  7. <destination> = destination path with no trailing \
  8. #>
  9.  
  10.  
  11. Param (
  12.   [string]$archive,
  13.   [string]$dest
  14. )
  15.  
  16. $tempdest = $dest + '\temp7zip'
  17. Expand-7Zip -ArchiveFileName $archive -TargetPath $tempdest
  18.  
  19. $items = Get-ChildItem -Path $tempdest
  20.  
  21. switch ($items.Count) {
  22.   1 {
  23.       Move-Item $items[0].FullName $dest
  24.       Remove-Item $tempdest -Recurse -Force
  25.     }
  26.   0 {
  27.       Write-Host "Ain't nuffin' there!"
  28.     }
  29.   default {
  30.     Rename-Item $tempdest ($dest + '\' + ([io.path]::GetFileNameWithoutExtension($archive)))
  31.     }
  32. }

BTW, referring to the OP I'm assuming TC = Total Commander which is what he wants it to work with, correct?

Maybe Total Commander has a Powershell interface, (see here)?

So, in theory, TC can set a hotkey that passes the selected objects, (archives), to a Powershell script that does the above for each file.

DISCLAIMER: I don't use Total Commander.

Using the info at that link apparently %L is a temp text file containing a list of selected files.  This will probably need tweaking, (not to mention checking for existing files/folders), to stop/redirect output, etc but it should be a start:

Command: PowerShell -NoProfile -NoExit -ExecutionPolicy Bypass -File "%COMMANDER_PATH%\TOOLs\CMDs\ExArc-TC.ps1"
Parameters: '% L'
Start Path:
Icon File: Powershell
Tooltip: Extract each archive

Code: PowerShell [Select]
  1. <#
  2.   *** REQUIRES ***
  3.     7Zip4Powershell module: https://www.powershellgallery.com/packages/7Zip4Powershell/1.9.0
  4.  
  5. .\ExArc-TC.ps1 <textfile>
  6.  
  7. <textfile> = list of archives: full path, one per line
  8. #>
  9.  
  10.  
  11. Param (
  12.   [string]$selFiles
  13. )
  14.  
  15. $files = Get-Content $selFiles
  16. ForEach ($file in $files) {
  17.   $dest = [io.path]::GetDirectoryName($file)
  18.   $tempdest = $dest + '\temp7zip'
  19.   Expand-7Zip -ArchiveFileName $file -TargetPath $tempdest
  20.  
  21.   $items = Get-ChildItem -Path $tempdest
  22.  
  23.   switch ($items.Count) {
  24.     1 {
  25.         Move-Item $items[0].FullName $dest
  26.         Remove-Item $tempdest -Recurse -Force
  27.       }
  28.     0 {
  29.         Write-Host "Ain't nuffin' there!"
  30.       }
  31.     default {
  32.       Rename-Item $tempdest ($dest + '\' + ([io.path]::GetFileNameWithoutExtension($file)))
  33.       }
  34.   }
  35. }
645
Not really Curt, there's a couple of options:
1. Extract the archive to a temporary folder, check the contents, move to the final destination - probably the easiest since you're going to extract anyway.
2. Use 7-Zip, (library or command line version), to get a list of the contents, determine type, and then either create a destination folder or extract to the destination directly as necessary.
646
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« Last post by 4wd on November 08, 2018, 10:30 PM »
New version

Other things I might look at doing:
  • If Date Taken doesn't exist, default to Date Created, (usually happens with photos that are manipulated in the phone/camera, eg. panoramas).
  • For video files look for Media Created first before using Date Created, (one problem is Media Created uses UTC as defined by the camera setting, which can be different from Date Created).
  • Find some way of outputting Powershell errors, (the red ones), to a log file.
647
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« Last post by 4wd on November 07, 2018, 02:47 AM »
I'm updating the script a fair bit to display progress/errors, (and an error log), and make it easier to add support for other photo/video extensions.

EDIT: Whoops, I misinterpreted the Copy-Item/Move-Item cmdlets, they do overwrite by default - which is kind of dumb.

I'll put in a Test-Path in beforehand to check for file existence first.
648
Post New Requests Here / Re: IDEA: Drag Drop renamer
« Last post by 4wd on November 05, 2018, 04:38 PM »
Windows has a command line length limit.

Dropping too many files on it at once can exceed that limit.

But seems weird that it disallows then allows the same number.

Not sure whether Windows will break it into multiple commands.
649
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« Last post by 4wd on November 05, 2018, 07:55 AM »
Date/time on photos/videos is set by the camera, the operator sets the date/time on the camera.

The script just grabs the date/time in the file metadata: Date Taken for JPEG and DNG; Date Created for AVI, MP4, and MOV.

No date/time manipulation is done.
650
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« Last post by 4wd on November 05, 2018, 05:59 AM »
Pages: prev1 ... 21 22 23 24 25 [26] 27 28 29 30 31 ... 225next