topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday November 10, 2025, 9:33 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 ... 16 17 18 19 20 [21] 22 23 24 25 26 ... 225next
501
Had a fool around with EBO for something to do.

2019-03-04 20_57_02-EBO.png
502
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on March 04, 2019, 03:42 AM »
suggestions?

You didn't mention an OS so I'll assume Windows.

FWIW, on my old 1.5GB Atom powered netbook I used to use either K-Meleon or the XP version of PaleMoon (archive link) which had optimisations for Atom CPUs.

There's a couple of PaleMoon derivatives based on current code but patched for XP: MyPal and Serpent/UXP, (see page 118 for current builds).

Would be tempted to install a lightweight Linux and try Firefox, etc (currently have Bodhi Linux installed on my Atom netbook).
503
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on March 03, 2019, 05:42 PM »
I recommend just pulling Frederic Meunier's build from here. Lynx only takes about 4mb of disk space.  ;)

Didn't work on my Windows 10 PC (64-bit).

Hm, works on my Win 10 64 bit, I am at 1809.

Works on 1803 also.
504
General Software Discussion / Re: UTP cable pin-outs confusion
« Last post by 4wd on March 03, 2019, 05:27 PM »
All the pairs are next to each other, instead of switching cables from different pairs as the 568 standards suggest.

If Wikipediaw can be believed it's not necessary for 1000Base-T or higher to follow 568A/B, (just finished wiring up IP cameras to 568B ... before I found that B is deprecated in favour of A and is preferred in Australia :-\ ... oh well, not critical for IP cams), because of the advent of Auto-MDI(X) and attendant technologies.

Gigabit and faster Ethernet links over twisted pair cable use all four cable pairs for simultaneous transmission in both directions. For this reason, there are no dedicated transmit and receive pairs, and consequently, crossover cables are never required for 1000BASE-T communication. The physical medium attachment sublayer (PMA) provides identification of each pair and usually continues to work even over cables where the pairs are unusually swapped or crossed.

I'd go with Ath's first option since it's a lot easier to terminate cables where the pairs are side-by-side than split a pair over the connector, (as the standard does), especially if you're using solid core wiring.

It'd be interesting to see if they worked when dropped into a 100Base-T environment, with or without Auto-MDI(X).
505
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on March 02, 2019, 05:49 PM »
(same people who program SlimJet but based on IE's engine).

If the reason why he wants to use a portable browser is for privacy & security, a portable IE based browser wouldn't be a good option, as they usually leave lots of tracks and stuff behind in the IE cache of the OS.

The only facts we have are he wants portable and 160MB is too big - given up trying to get more info from him.

It could be he wants portable because he's restricted from installing software ... who knows ...
506
General Software Discussion / Re: Recovering my space in the phone memory
« Last post by 4wd on March 02, 2019, 05:29 PM »
Files - Probably the safest with regards to finding what's taking space and giving you the control over what to archive/remove.

Files by Google is a file management app that helps you:
✨ Free up space with cleaning recommendations
🔍 Find files faster with search and simple browsing
↔️ Share files offline with others, fast and without data
☁️ Back up files to the cloud to save you space on device
507
Not a script but the file search tool Everything supports the syntax to find all folders that contain a specific number of files
Code: Text [Select]
  1. childfilecount:<count>
See https://www.voidtool...verything/searching/
You can combine that with restricting the search to some base folder and negate the syntax (to show only folders that contain not 1 file) and only list the matching folders in the results view.
Code: Text [Select]
  1. "C:\base folder\" !childfilecount:1 folder:

Now that is an excellent idea  :Thmbsup:

Wonder if you can 'and' in a not 0 file count also?
508
Wow... I write all my forms freehand- I never realized that you could do the same in PowerShell.

Wouldn't really call it "writing freehand" since I just move objects around the POSHGUI editor and then copy out the code - just do a little tweaking and add form options not available in the POSHGUI editor, (eg. the ListView view mode), afterwards.

Could probably have added a column sort routine but once it seemed to work I got lazy  :)
509
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 28, 2019, 11:36 PM »
I assume you meant market availability otherwise G7 and G7 plus will have versions with dual SIM

Motorola usually only offer the Dual SIM Moto G versions in EU, Asia Pacific, and India - for some reason the US seems to only get the single SIM version.  Like the rest of the world gets NFC but the USA get the Magnetometer instead - very strange decisions, (although it looks like the other regions might get the Magnetometer also with the G7).

Just wish they had kept the fingerprint reader on the front for the G7 where it's more convenient - something they probably could have done easily since they still have One Button Nav on the front, (like the G5(S) and G6), along with the space wasted with the Motorola printing.
510
Post New Requests Here / Re: Does any folder in tree have more than one file in it?
« Last post by 4wd on February 28, 2019, 08:11 PM »
Something simple in PowerShell because I wanted to see how to get things into a ListView - was pretty easy after I dumped trying to get it all into a multi-dimensional array first Woohoo! worked out how to create one  :D

2019-03-04 20_57_02-EBO.png

EBO.ps1
Code: PowerShell [Select]
  1. <# This form was created using POSHGUI.com  a free online gui designer for PowerShell
  2. .NAME
  3.     EBO.ps1
  4. #>
  5.  
  6. #region begin GUI{
  7. Add-Type -AssemblyName System.Windows.Forms
  8. [System.Windows.Forms.Application]::EnableVisualStyles()
  9.  
  10. $Form                            = New-Object system.Windows.Forms.Form
  11. $Form.ClientSize                 = '400,579'
  12. $Form.text                       = "EBO"
  13. $Form.BackColor                  = "#b8e986"
  14. $Form.TopMost                    = $false
  15.  
  16. $ListView1                       = New-Object system.Windows.Forms.ListView
  17. $ListView1.View                  = 'Details'
  18. $ListView1.MultiSelect           = $false
  19. $ListView1.GridLines             = $true
  20. $ListView1.width                 = 369
  21. $ListView1.height                = 442
  22. $ListView1.Anchor                = 'top,right,bottom,left'
  23. $ListView1.location              = New-Object System.Drawing.Point(15,100)
  24.  
  25. $TextBox1                        = New-Object system.Windows.Forms.TextBox
  26. $TextBox1.multiline              = $false
  27. $TextBox1.width                  = 268
  28. $TextBox1.height                 = 20
  29. $TextBox1.location               = New-Object System.Drawing.Point(15,27)
  30. $TextBox1.Font                   = 'Microsoft Sans Serif,10'
  31.  
  32. $Button1                         = New-Object system.Windows.Forms.Button
  33. $Button1.text                    = "..."
  34. $Button1.width                   = 28
  35. $Button1.height                  = 25
  36. $Button1.location                = New-Object System.Drawing.Point(291,26)
  37. $Button1.Font                    = 'Microsoft Sans Serif,10'
  38.  
  39. $Button2                         = New-Object system.Windows.Forms.Button
  40. $Button2.text                    = "Start"
  41. $Button2.width                   = 60
  42. $Button2.height                  = 25
  43. $Button2.location                = New-Object System.Drawing.Point(325,26)
  44. $Button2.Font                    = 'Microsoft Sans Serif,10'
  45.  
  46. $Button3                         = New-Object system.Windows.Forms.Button
  47. $Button3.text                    = "Death by File Size"
  48. $Button3.width                   = 140
  49. $Button3.height                  = 25
  50. $Button3.location                = New-Object System.Drawing.Point(15,63)
  51. $Button3.Font                    = 'Microsoft Sans Serif,10'
  52.  
  53. $Button4                         = New-Object system.Windows.Forms.Button
  54. $Button4.text                    = "Death by Bit Rate"
  55. $Button4.width                   = 140
  56. $Button4.height                  = 25
  57. $Button4.location                = New-Object System.Drawing.Point(244,63)
  58. $Button4.Font                    = 'Microsoft Sans Serif,10'
  59.  
  60. $Label1                          = New-Object system.Windows.Forms.Label
  61. $Label1.Text                     = 'Double-click folder to open'
  62. $Label1.AutoSize                 = $true
  63. $Label1.Width                    = 100
  64. $Label1.Height                   = 10
  65. $Label1.Anchor                   = 'bottom,left'
  66. $Label1.Location                 = New-Object System.Drawing.Point(120,552)
  67. $Label1.Font                     = 'Microsoft Sans Serif,10'
  68.  
  69. $ToolTip1                        = New-Object System.Windows.Forms.ToolTip
  70. $ToolTip1.AutomaticDelay         = 500
  71. $ToolTip1.IsBalloon              = $true
  72. $ToolTip1.SetToolTip($Button4, "Keep highest bit rate file")
  73. $Form.controls.AddRange(@($Button4))
  74.  
  75. $ToolTip2                        = New-Object System.Windows.Forms.ToolTip
  76. $ToolTip2.AutomaticDelay         = 500
  77. $ToolTip2.IsBalloon              = $true
  78. $ToolTip2.SetToolTip($Button3, "Keep largest file")
  79. $Form.controls.AddRange(@($Button3))
  80.  
  81. $ToolTip3                        = New-Object System.Windows.Forms.ToolTip
  82. $ToolTip3.AutomaticDelay         = 500
  83. $ToolTip3.IsBalloon              = $true
  84. $ToolTip3.SetToolTip($Button1, "Select folder")
  85. $Form.controls.AddRange(@($Button1))
  86.  
  87. $Form.controls.AddRange(@($ListView1,$TextBox1,$Button1,$Button2,$Button3,$Button4,$Label1))
  88.  
  89. #region gui events {
  90. $ListView1.Add_DoubleClick({
  91.   Start-Process ($ListView1.SelectedItems).Text
  92. })
  93.  
  94. $Button3.Add_Click({
  95.   Murder-Them Size
  96. })
  97.  
  98. $Button4.Add_Click({
  99.   Murder-Them BitRate
  100. })
  101.  
  102. $Button2.Add_Click({
  103.   $ListView1.Clear() | Out-Null
  104.   $ListView1.Columns.Add('Folder') | Out-Null
  105.   $ListView1.Columns.Add('Files') | Out-Null
  106.  
  107.   Get-Folders $TextBox1.Text
  108. })
  109.  
  110. $Button1.Add_Click({
  111.   $objForm = New-Object System.Windows.Forms.FolderBrowserDialog
  112.   $objForm.Description = "Select folder"
  113.   $objForm.SelectedPath = [System.Environment+SpecialFolder]'MyComputer'
  114.   $objForm.ShowNewFolderButton = $false
  115.   $result = $objForm.ShowDialog()
  116.   if ($result -eq "OK") {
  117.     $TextBox1.Text = $objForm.SelectedPath
  118.   } else {
  119.     $TextBox1.Text = ""
  120.   }
  121. })
  122.  
  123. #endregion events }
  124. #endregion GUI }
  125.  
  126. #Write your logic code here
  127. Add-Type -AssemblyName Microsoft.VisualBasic
  128.  
  129. Function Murder-Them {
  130.   param (
  131.     [string]$sort
  132.   )
  133.   Write-Host '---'
  134.   for ($i = 0; $i -lt $ListView1.Items.Count; $i++ ) {
  135.     $files = (Get-MetaData -path $ListView1.Items[$i].Text .mp3)
  136.     $temp = @()
  137.     for ($j = 0; $j -lt $files.Count; $j++) {
  138.       $temp += ,@( $files[$j].'Path', (((Get-Item $files[$j].'Path').Length).ToString()).PadLeft(20, '0') , ($files[$j].'Bit rate' -replace '.{4}$').PadLeft(4, '0') )
  139.     }
  140.  
  141.     if ($sort -eq 'Size') {
  142.       $temp = $temp | Sort-Object {$_[1]}
  143.     } else {
  144.       $temp = $temp | Sort-Object {$_[2]}
  145.     }
  146.  
  147.     for ($k = 0; $k -lt $temp.Count - 1; $k++) {
  148.       [Microsoft.VisualBasic.FileIO.FileSystem]::DeleteFile("$($temp[$k][0])",'OnlyErrorDialogs','SendToRecycleBin')
  149. #      Remove-Item -Path "$($temp[$k][0])"
  150.     }
  151.   }
  152. }
  153.  
  154. Function Get-MetaData {
  155.   PARAM (
  156.     [PARAMETER(Mandatory=$true)]
  157.     [string]$path = "",
  158.     [PARAMETER( Mandatory=$true, HelpMessage="extension eg. .mp3, .txt or .mov")]
  159.     [string]$type = "", # 'mp3'
  160.     [switch]$recurse
  161.   )
  162.   if ($recurse) {
  163.     $LPath = Get-ChildItem -Path $path -Directory -Recurse
  164.   } else {
  165.     $LPath = $path
  166.   }
  167.  
  168.   $DirectoryCount = 1
  169.   $RetrievedMetadata = $true
  170.   $OutputList = New-Object 'System.Collections.generic.List[psobject]'
  171.  
  172.   Foreach ($pa in $LPath) {
  173.     $shell = New-Object -ComObject shell.application
  174.  
  175.     if ($recurse) {
  176.       $objshell = $shell.NameSpace($pa.FullName)
  177.     } else {
  178.       $objshell = $shell.NameSpace($pa)
  179.     }
  180.     #Build data list
  181.     $count = 0
  182.  
  183.     #Filter on filetype
  184.     Measure-Command -Expression { $filter = $objshell.items() | where {$_.path -match $type} } | Out-File -FilePath K:\test.txt
  185.     foreach ($file in $filter) {
  186.       if ($RetrievedMetadata) {
  187.         # Build metanumbers
  188.         Write-Verbose "Building MetaIndex for filetype $type"
  189.         $Metanumbers = New-Object -TypeName 'System.Collections.Generic.List[int]'
  190.         for ($a = 0; $a -le 400; $a++) {
  191.           if ($objshell.GetDetailsOf($file, $a)) {
  192.             $Metanumbers.Add([int]$a)
  193.           }    
  194.         }
  195.         $RetrievedMetadata = $false
  196.         Write-Verbose "$($Metanumbers.Count) entries in MetaIndex for filetype $type"    
  197.       }
  198.  
  199.       $count++
  200.       $CurrentDirectory = Get-ChildItem -Path $file.path
  201.       try {
  202.         Write-Progress -Activity " Getting metadata from $DirectoryCount/$($LPath.count) $($CurrentDirectory[0].DirectoryName)" -Status "Working on $count/$($filter.count) - $($file.Name)" -PercentComplete (($count / $filter.count) * 100) -ErrorAction stop
  203.       } catch {}
  204.  
  205.       #Build Hashtable for each file
  206.       $Hash = @{}
  207.       foreach ($nr in $Metanumbers) {
  208.         $PropertyName = $($objshell.GetDetailsOf($objshell.Items, $nr))
  209.         $PropertyValue = $($objshell.GetDetailsOf($File, $nr))
  210.         $Hash[$PropertyName] = $PropertyValue
  211.       }
  212.            
  213.       $Hash.Remove("")
  214.       $FileMetaData = New-Object -TypeName PSobject -Property $hash
  215.       $OutputList.Add($FileMetaData)
  216.       $hash = $null
  217.     }
  218.     $DirectoryCount++        
  219.   }
  220.   Write-Verbose "MetaData for $($OutputList.count) files found"
  221.   return $OutputList
  222. }
  223.  
  224. Function Get-Folders {
  225.   param (
  226.     [string]$path
  227.   )
  228.   $a = Get-ChildItem $path -Recurse -Directory
  229.   for ($i = 0; $i -lt $a.Count; $i++) {
  230.     $b = (Get-ChildItem $a[$i].FullName -File | Measure-Object).Count
  231.     if ($b -gt 1) {
  232.       $ListView_Item = New-Object System.Windows.Forms.ListViewItem($a[$i].FullName)
  233.       $ListView_Item.SubItems.Add($b)
  234.       $ListView1.Items.AddRange(($ListView_Item))
  235.     }
  236.   }
  237.   $ListView1.AutoResizeColumn(1, 1)
  238.   $ListView1.AutoResizeColumn(0, 2)
  239. }
  240.  
  241. [void]$Form.ShowDialog()

1.png2.png

3.png4.png
The one marked VBR bit rate is actually 224kHz that's why it's remained.

Still no error checking :P

No progress indicator either  :-[

PS. Forgot to mention it deletes to the Recycle Bin.
511
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 27, 2019, 07:32 AM »
if he travels outside the EU, in this case a dual SIM phone comes in handy
That's one of the features of the Nokia 6.1 ... ;)

And the Moto G5(+), G5S(+), & G6(+) (EU/APAC versions) without sacrificing the microSD card.  ;)
512
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 26, 2019, 06:13 PM »
@tomos: Something you might want to consider also is if he travels outside the EU, in this case a dual SIM phone comes in handy - you can keep your normal SIM in for receiving calls/SMS and pick up a cheap local SIM for data and/or calls.

My data SIM changes every month or so as cheap deals come up, (normal SIM provider isn't as good for data but they have the best national/roaming coverage).
513
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on February 26, 2019, 04:44 PM »
While not quite as minimalist as Forkle, SlimBrowser is less than 10x the size and a lot more functional, (same people who program SlimJet but based on IE's engine).
514
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 26, 2019, 03:49 PM »
What are the top 3-5 cheapest mobiles with NFC and >5000mah?
Any idea?

Any suggestion for the best phone with longest battery and NFC?

Any updates on the above?

There probably has been, tell us what you found.

Or to put it another way:

Looking for a phone with:
  • NFC (objective)
  • Cheap (subjective)
  • Long battery life (subjective)

Search for phones that have a long battery life:
  • eliminate those that don't have a minimum that you're happy with when subjected to your usage pattern,
  • eliminate those that don't have NFC,
  • eliminate those that exceed your price limit,
  • take into account all the other factors of concern to yourself and deliberate on the remainder.
515
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 26, 2019, 03:46 PM »
@tomos: The MTK SoC would be enough to cross it off any list of phones I would be considering.

After having two phones with MTK SoC's both have major problems, (one of them a Xiaomi), I'd never consider them again.
By contrast I have almost 10 year old Qualcomm based Huawei phones that still work fine.

Not saying it might not be a bad phone for someone else but it isn't one I would consider.
516
Living Room / Re: Looking for smartphone
« Last post by 4wd on February 26, 2019, 03:09 PM »
I would check the specs on the Redmi, there are very few Xiaomi phones designed for countries other than China or India.

The ones that say "Global" usually just means they have English set as the default language and the Play Store available, no changes for the underlying hardware.

There's also the Moto G5S Plus if you don't mind the previous model and a reasonably vanilla Android:
https://www.amazon.d...prefix=moto+g5s+plus

517
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on February 26, 2019, 02:45 PM »
^ I was presuming low use of resources meant small size. Not logical...

I was presuming "space allowance" meant assigned disk quota or he can't find a portable drive with more space  ;D

Insufficient/vague information.
518
Living Room / Re: Is there any compact portable browser?
« Last post by 4wd on February 26, 2019, 12:46 AM »
http://kmeleonbrowser.org/download.php
not sure how it plays with windows 10

Don't think it's suitable, my K-Meleon portable is 208MB with the cache cleared.

However, my Basilisk portable is only 112MB.
519
Living Room / Re: Kill me if you want (buying good, cheap and pretty two hard disks)
« Last post by 4wd on February 26, 2019, 12:40 AM »
Somebody can tell me if the KingSpec 2.5 hdd SATA 3 SSD 2TB 2.5 hd Internal Solid State Drive For Laptop Computer can be used and installed in Asus X555LD ?
I am reading an article that says that SSD have the same size 2.5", but may vary in height.....

2.5" drives are either 7mm (SSD, some HDD) or 9.5mm high, (HDD, old SSD - usually what you find in laptops).

Some SSD manufacturers supply a plastic spacer with the SSD to make up the 9.5mm height if required, (to stop it rattling and possibly ensure the SATA connector is at the right height - use a bit of cardboard).

Some 2.5" HDDs are 12.5mm in height, (multi-platter), only really see these in high capacity portable external storage.
521
Post New Requests Here / Re: IDEA: Prevent windows stealing focus
« Last post by 4wd on February 18, 2019, 03:14 AM »
If someone ever finds the answer to this they should send it to Microsoft since even they can't get it to happen/work.
522
General Software Discussion / Re: Password manager apps for browser and android
« Last post by 4wd on February 17, 2019, 07:56 PM »
Computer: Keepass + chromeIPass (Chrome based browsers) or Kee (Mozilla based browsers)
Android: Keepass2Android with database loaded/cached from GDrive.

Synced through IDrive, (database is in sync folder), and GDrive, (synced every time there's a load/save on computer).
523
General Software Discussion / Re: my solution to Virus Totaluploader
« Last post by 4wd on February 17, 2019, 06:04 AM »
I run
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "e:\装机必备\VTC.ps1"
in PowerShell(admin) but it can't add shortcut to sendto, it just open the VT url.

You create a shortcut in the C:\Users\<user>\AppData\Roaming\Microsoft\Windows\SendTo folder with the above as the Target:

2019-02-17 23_01_53-VTC Properties.png

I've attached the shortcut.

Since you use TC you could just create a button to call it on the selected file:

powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "e:\装机必备\VTC.ps1" "%P%N"

Or however it does it, (I don't use TC).

Just asking, do you have to wrap quotes around Chinese characters?
524
Coding Snacks / Re: Automatically adding custom-folder music to iTunes 12.x +
« Last post by 4wd on February 16, 2019, 08:18 PM »
I thought about the balloon tip, but it would generate it for each change, which would be annoying IMO.

I would expect that something similar happens with the aforementioned iTunesFolderWatch but it's something that can be ameliorated by using RoboCopy's options, eg.
/MOT:10 = every 10 minutes
/MON:10 = every 10 matching file system changes

I was thinking more of parsing the stats that appear after an operation, this bit:

Code: Text [Select]
  1. .................Total    Copied   Skipped  Mismatch    FAILED    Extras
  2.     Dirs :         1         0         1         0         0         0
  3.    Files :        14        14         0         0         0         0
  4.    Bytes :  741.21 m  741.21 m         0         0         0         0
  5.    Times :   0:00:05   0:00:05                       0:00:00   0:00:00

Where you really only need the number of files copied, so it'd just say 'Added 14 files'.
525
General Software Discussion / Re: my solution to Virus Totaluploader
« Last post by 4wd on February 16, 2019, 07:08 PM »
2019-02-17 12_06_56-.png

VTC.ps1

Code: PowerShell [Select]
  1. <#
  2.   VTC (VirusTotalCheck)
  3.  
  4.   .\VTC.ps1 <file>
  5.  
  6. eg.
  7.   .\VTC.ps1 "Client Setup.exe"
  8. #>
  9.  
  10. Param (
  11.   [string]$infile
  12. )
  13. Start-Process "https://www.virustotal.com/#/file/$((Get-FileHash $infile).Hash)/detection"

Shortcut for SendTo:
Code: Text [Select]
  1. C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File C:\PoSh\VTC.ps1

Or just call it as:
Code: Text [Select]
  1. powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File C:\PoSh\VTC.ps1 "<file>"

Edit the path to wherever you put it.
Pages: prev1 ... 16 17 18 19 20 [21] 22 23 24 25 26 ... 225next