topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday November 11, 2025, 10:36 am
  • 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 ... 24 25 26 27 28 [29] 30 31 32 33 34 ... 225next
701
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on September 18, 2018, 09:06 AM »
What's the difference?

You either have 3 lines that say:

3  Product1
1  Product2
1  Product3

Or three files that contain lines that say:

File "Product1.txt"
Product1
Product1
Product1

File "Product2.txt"
Product2

File "Product3.txt"
Product3

Either way all you're getting is a count of how many times a match appears.
702
Living Room / Re: EU to Stop Summer (or is it Winter) Time
« Last post by 4wd on September 16, 2018, 08:02 AM »
The plan also raises the prospect of neighboring countries ending up an hour apart.

That's actually funny, wonder what would happen if they visited here.

We have one town that's 30 minutes different to the rest of the state it's a part of, another small area that has its own time zone, and only 5 of the 8 states/territories observe DST.

Probably cause their heads to implode.

They should go visit a country with more than one time zone, they might learn something.
703
Living Room / Re: Do Not Buy a Smartwatch Right Now
« Last post by 4wd on September 16, 2018, 07:41 AM »
Some info on the SnapDragon Wear 3100 courtesy of XDA Developers:

https://www.xda-deve...-wear-os-smartwatch/
https://www.xda-deve...napdragon-wear-3100/
704
Living Room / Re: EU to Stop Summer (or is it Winter) Time
« Last post by 4wd on September 16, 2018, 06:41 AM »
and they the entire EU should be unified on the exact same time "to make trade easier"

I dont believe this is the goal here Stephen -- they are not scrapping time zones.

No, they are making them a joke ... what's the point in a time zone if they're not going to use them?

Personally think the need for DST has long since past.
705
Living Room / Re: Do Not Buy a Smartwatch Right Now
« Last post by 4wd on September 14, 2018, 02:26 AM »
I have the Apple watch series 3 and have used it in the pool here at my complex and at the beach without any issues.

From a purely technical point of view, comparing apples and oranges:
  • Amazfit BIP: IP68, rated for total immersion below 1m.
  • Apple Watch 3: Water Resistant to 5ATM under ISO 22810.

There's no such thing as a waterproof watch as defined by ISO standards, water resistant is the best you'll get because at some point water will get in.

ISO 22810w, (we'll have to rely on Wiki here since you have to buy ISO standards):
Water Resistant 5 atm or 50 m: Suitable for everyday use. Splash/rain resistant. Not suitable for showering, bathing, swimming, snorkeling, water related work, fishing, and diving.

So you're comparing an electronic device IP rated for total immersion against a watch ISO rated as being splash/rain resistant - that kind of turned the argument on its head, didn't it ;)
706
Living Room / Re: Do Not Buy a Smartwatch Right Now
« Last post by 4wd on September 13, 2018, 03:20 AM »
"IP68 rating - resistant to dust, rain and splashing"

Saying it's "resistant to dust, rain, and splashing" is understating the IP68 rating a little.

IP68 = Dust proof (no ingress), immersion to a depth > 1m, (generally tested at 3m).

The only IP rating higher is IP69K which involves using high temperature water jets.
707
General Software Discussion / Re: Et Tu, CCleaner!
« Last post by 4wd on September 12, 2018, 05:57 AM »
And if you pony up the cash, it also comes in portable format, the free version only comes as an installer.

Install, copy folder elsewhere, uninstall = portable

It keeps its config file in its folder and appears to create nothing in %APPDATA% or the registry, (other than MS creating entries about it being run, compatibility, etc).
708
Living Room / Re: Movies you've seen lately
« Last post by 4wd on September 08, 2018, 08:31 PM »
Stephanie

Stephanie.jpg

After a mysterious global crisis, a young girl is left alone to hide from a malevolent power that stalks her home. Her parents eventually return and the struggle begins to save their daughter.

Like one of the reviewers on IMDB says, "Don't read reviews before watching the film."
709
General Software Discussion / Re: Et Tu, CCleaner!
« Last post by 4wd on September 08, 2018, 07:58 PM »
Hasn't been mentioned but CCleaner 5.46 goes a little way towards ameliorating the indiscretions of v5.45.

Privacy Settings
  • The Monitoring feature and reporting of anonymous usage data can now be controlled separately (previously both were controlled by the ‘Active Monitoring’ checkbox)
  • Added a separate control for the reporting of anonymous usage data
  • Added a link to a Data Factsheet, which explains the data reported from CCleaner, why it’s reported, and what it’s used for (in summary, CCleaner only reports anonymous, statistical data for the purposes of maintaining and improving the app, and it does not report any personal information)

Smart Cleaning
  • Renamed the ‘Monitoring’ feature to ‘Smart Cleaning’, to better describe its purpose (intelligent cleaning alerts) and underline the fact that it does not report usage data
  • Reworded the ‘System Monitoring’ checkbox to ‘Tell me when there are junk files to clean’
  • Reworded the ‘Browser Monitoring’ checkbox to ‘Enable automatic browser cleaning’
  • Reworded the ‘Active Monitoring’ checkbox to ‘Enable Smart Cleaning’
  • If Smart Cleaning is disabled, CCleaner’s background process will close and the feature will not run on startup (same behavior as in v5.44)

The above is just the relevant part of the change log, there's also various fixes, etc.

They tell you exactly what is reported in their Data Factsheet.
710
General Software Discussion / Re: Registry of phone calls android-pc
« Last post by 4wd on August 29, 2018, 12:02 AM »
Call History Manager - Can export call history to Excel file then just transfer to computer via Bluetooth, email, etc.
711
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 25, 2018, 11:28 PM »
Code: PowerShell [Select]
  1. Get-Help about_*

Thanks, didn't know there was so many  ;D
712
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 24, 2018, 03:32 PM »
Thanks Wraith.

Regarding the script above:
  • There's enough information within it to discern what the two missing operators are.
  • The first RegEx has been given within this thread.
  • The second RegEx will require a little lateral thinking, searching, and experimentation - just like the third did.
713
Living Room / Re: WhatsApp Backups in Google Drive - Curious
« Last post by 4wd on August 24, 2018, 07:07 AM »
Same thing applies to Viber - backups to Google Drive are not encrypted.

I think it's so they can be restored to another device in the event the device that made the backup dies, (if the encryption uses device specific information).
714
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 24, 2018, 06:58 AM »
Maybe we should just shut this down as it's getting a bit heated, and I think that everyone is done.
Agree. Moderator, please move this thread to underground.

Nah, just remove posts 94-97, 100-104 and then lock the thread - there is useful information in the various posts which won't be seen if moved to the Underground.
715
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 24, 2018, 06:37 AM »
Code: PowerShell [Select]
  1. Clear-Host
  2. $products = (Get-Content "test.xml" -Raw) -xxxxx '(....)^.*?(..........................)'
  3. for ($i = 1; $i -lt $products.Count; $i += 2) {
  4.   $products[$i] -xxxxx '(.........)(...)(...)' | Foreach { Write-Host ($Matches[0] + (((($products[$i] -replace '(<[^>]+>|\s)', '; ' ) -replace '`r', '') -replace '`n', '') -replace '(;\s)(;\s)+', '$1').TrimEnd('; ')) }
  5. }

Output
prod1; PRD; PRD_XE; 10004; 2018-07-23; REPAIRS; REP_XE; ED
prod2; PRD2; PRD_XE2; 10005; 2018-12-23; REPAIRS2; REP_XE2; ED2
prod3; PRD3; PRD_XE3; 10014; 2013-07-23; REPAIRS3; REP_XE3; ED3
prod4; PRD4; PRD_XE4; 10567; 2010-07-23; REPAIRS4; REP_XE4; ED4
prod5; PRD5; PRD_XE5; 10004890; 2015-05-15; REPAIRS5; REP_XE5; ED5


-xxxxx = An operator

'(....)^.*?(..........................)' = A RegEx, number of dots represents number of characters in it.

'(.........)(...)(...)' = A RegEx, number of dots represents number of characters in it.


Mental exercise complete ...

Single Line Version
Code: PowerShell [Select]
  1. gci *.xml | % {(gc $_ -Raw) -xxxxx '(....)^.*?(............................)' | % { if ($_ -xxxxx '(.........)(...)(...)') { ($matches[0] + (((($_ -replace '(<[^>]+>|\s)', '; ' ) -replace '`r', '') -replace '`n', '') -replace '(;\s)(;\s)+', '$1').TrimEnd('; ')) } }}

716
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 22, 2018, 06:30 AM »
Thanks, but it needs me to run it as admin, which I cannot.

And it's taken 4 pages to find that out - something that should have been stated earlier.

Any idea why the below does not work?

(gc *.xml) -match '(?s)<\?xml\ version="1\.0"\ encoding="UTF-8"\?>.+?</dbts:PmryObj>'

Sure.

Q: Whats's the input data?
A: We don't know.

Q: What's the command output?
A: We don't know.

Q: What version of Powershell are you using?
A: We don't know.

Q: What OS are you using, (including architecture)?
A: We don't know.

Q: What's the statistics of the input file, (eg. size)?
A: We don't know.

Q: Why the hell are you trying to process all files at once instead of one at a time?
A: We don't know.

etc, etc, etc, etc ... for 4 pages.

Idea: We don't know.
Why: See point 1 here.
717
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 22, 2018, 04:44 AM »
But I need ad-hoc answers, it's not about a specific thing I try to achieve, but mostly to learn

And yet every answer given here can be found on Google ... if you're going to learn anything, learn to ask the right questions.

Input
<?xml version="1.0" encoding="ISO8859-1" ?>
<html:products>
    <html:prod id="prod1">
      <html:referenceData>
        <html:product>
          <html:classificationType>PRD</html:classificationType>
          <html:productType>PRD_XE</html:productType>
          <html:productId>10004</html:productId>
          <html:assignedDate>2018-07-23</html:assignedDate>
        </html:product>
        <html:book>
          <html:name>REPAIRS</html:name>
          <html:Entity>REP_XE</html:legalEntity>
          <html:location>ED</html:location>
        </html:book>
      </html:referenceData>
   </html:prod>
    <html:prod id="prod2">
      <html:referenceData>
        <html:product>
          <html:classificationType>PRD2</html:classificationType>
          <html:productType>PRD_XE2</html:productType>
          <html:productId>10005</html:productId>
          <html:assignedDate>2018-12-23</html:assignedDate>
        </html:product>
        <html:book>
          <html:name>REPAIRS2</html:name>
          <html:Entity>REP_XE2</html:legalEntity>
          <html:location>ED2</html:location>
        </html:book>
      </html:referenceData>
   </html:prod>
    <html:prod id="prod3">
      <html:referenceData>
        <html:product>
          <html:classificationType>PRD3</html:classificationType>
          <html:productType>PRD_XE3</html:productType>
          <html:productId>10014</html:productId>
          <html:assignedDate>2013-07-23</html:assignedDate>
        </html:product>
        <html:book>
          <html:name>REPAIRS3</html:name>
          <html:Entity>REP_XE3</html:legalEntity>
          <html:location>ED3</html:location>
        </html:book>
      </html:referenceData>
   </html:prod>
    <html:prod id="prod4">
      <html:referenceData>
        <html:product>
          <html:classificationType>PRD4</html:classificationType>
          <html:productType>PRD_XE4</html:productType>
          <html:productId>10567</html:productId>
          <html:assignedDate>2010-07-23</html:assignedDate>
        </html:product>
        <html:book>
          <html:name>REPAIRS4</html:name>
          <html:Entity>REP_XE4</html:legalEntity>
          <html:location>ED4</html:location>
        </html:book>
      </html:referenceData>
   </html:prod>
    <html:prod id="prod5">
      <html:referenceData>
        <html:product>
          <html:classificationType>PRD5</html:classificationType>
          <html:productType>PRD_XE5</html:productType>
          <html:productId>10004890</html:productId>
          <html:assignedDate>2015-05-15</html:assignedDate>
        </html:product>
        <html:book>
          <html:name>REPAIRS5</html:name>
          <html:Entity>REP_XE5</html:legalEntity>
          <html:location>ED5</html:location>
        </html:book>
      </html:referenceData>
   </html:prod>
</html:products>


Code: PowerShell [Select]
  1. gc "test.xml" -Raw | sls '(?smi)(<html:prod\s.+?/html:prod>)' -AllMatches | % {$_.Matches} | % { ((((($_.Value) -replace '(<[^>]+>|\s)', '; ') -replace '`r', '') -replace '`n', '') -replace '(;\s)(;\s)+', '$1').Trim('; ') }

Output
PRD; PRD_XE; 10004; 2018-07-23; REPAIRS; REP_XE; ED
PRD2; PRD_XE2; 10005; 2018-12-23; REPAIRS2; REP_XE2; ED2
PRD3; PRD_XE3; 10014; 2013-07-23; REPAIRS3; REP_XE3; ED3
PRD4; PRD_XE4; 10567; 2010-07-23; REPAIRS4; REP_XE4; ED4
PRD5; PRD_XE5; 10004890; 2015-05-15; REPAIRS5; REP_XE5; ED5


  • Stop trying to put it all on one line, (just because I do doesn't mean you should).
  • Stop using Powershell shortcuts until you to understand what they are because they make the source harder to read, (and yes, I used them for a reason).
  • No, the output is not exactly what you wanted - not my problem since getting any coherent information is like extracting a 3 course meal from a lump of granite and takes just as long.
  • If it doesn't work on the files you have - again, not my problem - see above reason.

Your homework to increase your knowledge: Render the above one line into a multi-line Powershell script with no command shortcuts.
Non-optional extra: Tell us what the RegEx is doing.
Optional extra: Fix it so you get the prod value from the input data at the start of the output lines.
Optional extra: Make it process multiple files without using gc *.xml anywhere in it.

If it doesn't work on your data, you tell us why, don't ask us, we're not mind readers.

I'm done.
718
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 21, 2018, 07:49 AM »
but I cannot see in the list of operators the OR  :tellme:

Code: PowerShell [Select]
  1. Get-Help about_Logical_Operators
719
General Software Discussion / Re: Extract REGEX matches from multiple text files
« Last post by 4wd on August 20, 2018, 07:15 PM »
Also, I still have not figured out how to make Powershell match . any character including newline... Any hint?

Learn to use Powershell's built-in help system:
Code: PowerShell [Select]
  1. Get-Help about_comparison_operators

Learn to use Google:
http://lmgtfy.com/?q...er+including+newline
http://lmgtfy.com/?q...egex+match+multiline
http://bfy.tw/JV48
720
Post New Requests Here / Re: Any program required to move files to my NAS.
« Last post by 4wd on August 17, 2018, 06:11 PM »
I think it would, creating RegEx rules to cater for them is easy.

Trying to programmatically create them from the directory names is a little more of a challenge.

Kind of getting there in  PowerShell but i don't have a lot of time available at the moment.
721
Post New Requests Here / Re: Any program required to move files to my NAS.
« Last post by 4wd on August 16, 2018, 08:05 PM »
@Craig381: Does the NAS require log on credentials or are they already stored/saved in Windows?

ie. Can you just access the share through Explorer without entering user/password?

Also, define "special characters", is this anything other than what Windows defines as forbidden filename characters, (ie. <>: "/\ |?*) ?

ADDENDUM: Also, you could ask skwire to enhance his File Punter program to accept UNC destinations, it should be able to do what you want after you create the RegEx rules.
722
Living Room / Re: Do Not Buy a Smartwatch Right Now
« Last post by 4wd on August 14, 2018, 11:15 PM »
How's the interface?

The watch or the phone app?

The watch face can be changed, see here for a load of user created versions: Amazfit BIP.
Watch interface is locked until you push the button, then you can swipe left/right through the screens: Status, Activity, Weather, Alarm, Timer, Compass, Settings
Tap on the one you want then you can swipe up/down/left or tap to get further into the respective areas. Swiping right goes back up the menu system, it's actually pretty good.

A long press on the button switches it to activity tracking, (you can set default activity: walking, running, etc or go through the menu to select something else), and it will show a screen saying it's getting a GPS lock, (takes about 2 mins), then you tap OK when it vibrates indicating it has lock - you can skip it if you don't want a track log.
Another long press will pause activity tracking and you can choose to continue or end the tracking.

I can't say much about the attendant apps, Mi Fit and the ones from Amazfit.  Huami fall under the Xiaomi unbrella, hence under the Mi ecosystem, that's why the Mi Fit app.

I use a third party app called Notify & Fitness for Amazfit which provides a lot more functionality.

I guess it all comes down to what your main use is, mine was time, notifications, with the added bonus of being able to log a GPS route when I went walking plus it had/has the best battery life available - I did not want to charge it every 1-7 days.

IMG_20180815_135428483.jpgScreenshot_20180815-140415.jpg

In the screen above, the down arrow in the bottom right indicates there's more info available, eg. step count, step distance, calories, time taken, etc.  (In the case of the Weather screen, it's a 7 day forecast pulled from Weather.com,I think, could be AccuWeather, for your location, requires your phone naturally).

The interface I currently have, will probably change it as the steps, calories, and heart rate are all available under the Status screen.

IMG_20180815_141149031.jpg

It shows 46% on the battery, the app tells me it was charged on July 31, with an expected discharge date of August 28 - depends a lot on notifications, (I get quite a few through emails, SMS, Viber, etc), using vibration shortens the battery life.
When I first got it and hadn't set up any notifications, I got 35 days from 100%->9% before I decided I couldn't be bothered waiting to see how long it was going to take to go flat.

Addendum: Couple more things I just discovered with the BIP, (by accident, I should read the instructions one day), if you swipe up it'll display the last notification, swipe down and you have access to DND which you can turn on/off or to Auto.
723
Speaking of Windscribe, one year deal on BdJ today

Windscribe VPN Unlimited Pro
Safeguard All of Your Online Activity
79% Off
$90 ----> $19
http://www.bitsdujou...in=todays-deals-home

I don't have big time VPN experience but from what I see Windscribe is not the fastest, overall very good though

It's a standard deal they have on StackSocial, 1 year @ $19, they also have lifetime @ $69.

I picked up the lifetime version for ~US$39, (early StackSocial deal), about 18 months ago and it's been great.  They have the same deal every so often, last one was in March this year I think.
724
Living Room / Re: Do Not Buy a Smartwatch Right Now
« Last post by 4wd on August 14, 2018, 10:16 PM »
I now have a AmazFit BIP - GPS, barometer, compass, accelerometer, notifications, heart rate, steps, transflective display, etc ... and a 30+ day battery life.

For ~US$60 I paid, I don't think there's anything comparable with the same features especially the battery life.
725
Recently got FastestVPN 3 Year Plan in just $20 wow its an amazing offer
You can have it from here: https://fastestvpn.com/3years

No, just no.
Pages: prev1 ... 24 25 26 27 28 [29] 30 31 32 33 34 ... 225next