topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 6:20 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ewemoa [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 ... 113next
26
Did some testing, though not with Powershell Core.  When launched from a Powershell terminal, the initial dialog wasn't behind any windows, but it didn't have focus.

The generated SENNHEISER ".csv" file I looked at didn't have an extra blank line between the header and the rest of the data.  IIRC, the original script puts a blank line between the header and the data.  Don't know if that makes any difference.

Other than that, it seemed pretty good to me.

Could avoid the GUI altogether and revert to a series of Read-Host prompt/answer inputs plus include the ability to run as a standard command if all parameters are fulfilled on the command line.

Would be the quickest way to make it portable.

I guess there could be a GUI wrapper around this -- in fact, there could be platform-specific wrappers.

W.r.t. filepaths, PowerShell (Core) is pretty agnostic when it comes to using / or \ - either will do, plus it sees multiple occurrences, (eg. ////), as just a single occurrence.

For example, the below are all the same path as far as PoSh (Core) is concerned:
D:\test\data\test.txt
d:test/data/test.txt
d:\\\\\\\\test///////data\\\\test.txt
d:\\\\\\\\test//\\\\data\/\/\/\/test.txt

It makes this aspect of PoSh scripts OS agnostic ... something they got exactly right :Thmbsup:


Nice.  I wouldn't be surprised if some cross-platform projects start using Powershell Core scripts instead of maintaining separate .bat and .sh files.  Perhaps some do already, though perhaps Powershell Core isn't yet installed on that many non-Windows systems...

27
I like the single UI approach.  Have been thinking whether the ability to load / save the fields at the top might make sense.  That might also make the functionality more easily packaged as a command line script for use with other tools.

Nice work with the new features and modularization.  The latter should make it easier to study and perhaps it will also facilitate work on Powershell Core compatibility. 

I guess one aspect to consider for multi-platform compatibility is file paths.  Possibly also line endings?  May be Avalonia or Powershell Core has paid some attention to these (and other) issues...

Hope to test it soon.

28
Living Room / Re: N.A.N.Y. and the Too Many Projects Phenomenon
« on: August 14, 2019, 02:19 AM »
When I'm working on a project and I am stuck, I start another one for the time being.

Have been trying this with varying degrees of success.

I usually choose a different toolset for each, so I'm not stuck in the same place in more than one project at a time.

Hadn't considered this.  Thanks for the idea :)

29
Interestingly, I always had one of its dialogs open behind other windows, (either the OpenFile or the final Retry/Cancel), until I added the above run check.

The Retry/Cancel dialog still opens behind other windows sometimes.

At least one of us can reproduce at least some of the time :)

The other problem, which I believe is related to the use of the Show-Command cmdlet, is that selecting Cancel still opens the OpenFile dialog.

Ah, I hadn't noticed this.

I might get a chance to look at it later and try and isolate the relevant routines, (still overseas on a low-powered laptop atm).

Do you think a Powershell Core implementation would make sense?

30
Below are some observations and notes.

I tried the script out on a Windows 10 Pro box, but didn't notice dialog boxes being behind things.  Script execution was tested both from Windows Explorer as well as from a Powershell window.  It might be helpful to be able to replicate the issue -- perhaps it's for particular versions of Windows?

For running a test, one of the files from the TestFilesFromRFexplorer directory was selected.  It appears that all files in that directory get wiped by the end of the script.  I wonder if that is desirable behavior.  Also noticed some error output, but I did find a .zip file that appeared to contain the original file along with 2 converted ones.

Regarding running on macos, I looked a bit into 4wd's Avalonia idea, and came across: https://github.com/i...nsoftware/psavalonia "Avalonia bindings for PowerShell".  The supported versions of Powershell there look like Powershell Core though, so I tried running the script via Powershell Core.  The result was a fair number of error messages so I stopped its execution.

I also tried creating a simple python script to open a file dialog and tried packaging and running this on Windows and macos using PyInstaller.  Interestingly enough, there was no problem with the dialog being behind things on Windows, but on macos there was.  It appears to be something that other folks have encountered and although I found multiple work-arounds, none of them worked for my particular environment (though apparently some of them do work for other folks).  (On a side note, my experience with macos (OS X, etc.) over the years has been that backward compatibility of certain types of things is not particularly a high priority, with adjustments sometimes being necessary when there are new OS releases, so even if something were found to work, it might be good to keep in mind that future OS releases might necessitate updates.  Perhaps it's misleading to single out Apple in this regard.)

Regarding "Convert .csv between existing manufacturer created scans", perhaps if this general conversion portion were implemented, the current script might benefit from being based on it.  If someone were to start on this though, may be it would be better to consider Powershell Core or something else more multi-platform friendly, rather than Windows Powershell.

31
Below are some possibly relevant thoughts, perhaps others will jump in with better suggestions / corrections.

If you're looking for something that doesn't involve additionally installing something and be multi-platform, I guess Powershell Core isn't going to do as that would also need to be installed.  Also, not everything written for the original Windows Powershell is going to run with Powershell Core -- this very much depends on the code in question though.

One general alternative path is a rewrite in something like Node.js (+ nexe), Nim, or something else which has the practical option of producing an executable for each platform you have an interest in deploying to.  Some of these options may result in a much larger download though -- unfortunately, it can often be the case that the ones that are easier to write the code for tend to produce larger files.

Depending on the details of what your code does, there may be another alternative that might work.  It's the idea of writing a web-based app (though it could be stored in local files, so you wouldn't need network access to run it) that runs in a web browser.

Without seeing and working with the code in question a bit though, it's not clear which alternative might be appropriate and how much work it might be to carry out.

Do you mind posting the code for others to examine?  Perhaps if the details can be studied, someone can give a better assessment about what might be involved.

33
Not sure how relevant it is, but Powershell Core is (somewhat?) multi-platform.  Perhaps it's possible that what you have is already (or close to being?) multi-platform?

34
General Software Discussion / Re: no VLC bookmarks
« on: July 29, 2019, 04:59 PM »
Don't know if this is currently relevant, but FWIW, there is this note:

note: loading bookmarks is broken thru version 1.0.5. The last working version I know of was in the 0.8 series.

at:

https://wiki.videola...owTo/Save_bookmarks/

May be someone else is more familiar with the current status?

35
Thanks!

36
portablefreeware.com - its my goto when I'm looking for something I can't get here. 

+1 (may be?)

Haven't used this recently, but this was one of my favorites for years -- some of the info like "How to extract" was really handy on occasion.

37
On a side note, is there an intent to record something like "when an assessment for a particular site was made" per site?

38
This quote from the page was interesting:

the paper also tells us that Occam’s Razor is wrong. Overfitting is possible with just one parameter and so models with fewer parameters are not necessarily preferable even if they fit the data as well or better than models with more parameters.

39
General Software Discussion / Re: Windows 10 Announced
« on: July 23, 2019, 09:13 PM »
How Microsoft made it harder to create Windows 10 local accounts

The article mentions two ways around making a Microsoft account:

During the Wi-Fi sign-in page, you can opt to skip it. That leads you to the page where Cortana soulfully begs you to reconsider, reminding you that just a single click can save you precious time later on. Standing firm and clicking No will lead you to the local account page—though there’s absolutely no helpful cue to inform you as such. This may not be as insidious as Microsoft’s 2016 “click the X” debacle, but it’s close.

and

If you manage to be ensnared, however, don’t despair—there’s a way to wriggle free. If you’re stuck on the “Sign in with Microsoft” account page, you’ll need to turn off your PC’s Internet connection: Unplug the ethernet cord, disconnect the router, or turn off your laptop’s WiFi using an “airplane mode” key on the keyboard (if it has one). What you’re trying to do is force Windows to be unable to connect to the Internet. What worked for me then was to then try once again to create a Windows account, knowing full well that it would fail.

40
Developer's Corner / Re: Anyone tried the Nim language yet?
« on: July 23, 2019, 08:14 AM »
Was testing someone's code recently and installed nim in the process.

In addition to the items advertised in the OP, it appears the resulting binaries appear to be on the small side, which seems nice.

On a side note, there appears to be ongoing work toward a functional REPL for it: https://github.com/n...lang/Nim/issues/8927

https://slides.com/o...hot_code_reloading#/

41
Sorry it's still around.

On the off-chance you haven't seen the following, this thread sounded awfully similar:

https://www.tenforum...tiple-computers.html

It appears there was some success for the original poster described on the second page of the thread, with the original suggestion (plus link to article) on the first page.

42
FWIW, according to the following article which discusses LockApp.exe, it can be disabled:

https://www.howtogee...p.exe-on-windows-10/

43
Thanks for sharing this.

Seems like an interesting person -- there appears to be a Wikipedia page: https://en.wikipedia...software_engineer%29 -- where there was a link to a relevant video with her: https://www.makers.com/margaret-hamilton

44
General Software Discussion / Re: Windows 10 Announced
« on: July 12, 2019, 11:18 PM »
For those already wanting this type of functionality (and then some): ExtraTerm (open source, works on Windows, Linux and Mac, supports cmd, PowerShell, WSL, tabs and 'terminal multiplexing').

Nice!  Thanks for mentioning this.

45
General Software Discussion / Re: Windows 10 Announced
« on: July 12, 2019, 11:03 PM »
Microsoft's new Windows Terminal is now available in the Store

Was cute that it was tabbed and one could choose from cmd.exe vs powershell flavors.  Definitely had rough edges though.  Not ready for general use IMHO.

46
We had a 2-person board game convention this week :)

Awesome!

When's the next one?

47
General Software Discussion / Re: Looking for AsciiDoc editor
« on: July 11, 2019, 07:08 PM »
Speaking of standards and specs...

https://asciidoctor....iidoc-spec-proposal/


48
General Software Discussion / Re: Looking for AsciiDoc editor
« on: July 10, 2019, 12:12 AM »
There are no real good AsciiDoc editors, unless you know the syntax by heart.

As an Asciidoc newbie, I surely don't.  Here's one thing I found tricky to figure out:

https://mrhaki.blogs...e-only-block-as.html

Do you happen to know of a list of 'gotchas' or other such not-so-obvious things?

Markdown has more mature editors,

Although there are so many varieties of "Markdown"...btw, do you think CommonMark will significantly improve this situation?

but it is cumbersome to create documentation in those and then do a conversion.

Indeed.

AsciiDocFX is currently the best of the bunch.

At the time I used VSCode v1.32 with the extension: AsciiDoc v2.7.6 from João Pinto (your first link). It is not bad, but the missing "link" between source section and the visualization section is a very big deal for me, as some pretty big documents need to be processed by me. Makes it way too easy to lose track of where you are and you'll start wasting time doing that instead of creating content/documentation.

Wow, double-clicking in the extension (seems to work better for me now) has some very odd behavior indeed.  It's nice that AsciidocFX seems to work appropriately in that regard.

The extension from your second link doesn't even appear in the extension tab of VSCode here in Paraguay (assuming there is some geo-policy present in the VSCode extension marketplace).

Doesn't seem like much of a loss, as, although it installed here, not much luck in getting it to work :(

Now I have made a batch script that helps me to automatize the conversion of all Word documents to AsciiDoc in any given folder (and its siblings). While that makes converting an existing document collection a whole lot easier, it isn't that fast and after conversion you still need to check if the converted documents have the same layout as the original and/or fix possible "glitches".

Perhaps someday something better will show up at:

https://asciidoctor....c-with-live-preview/

49
General Software Discussion / Re: Looking for AsciiDoc editor
« on: July 08, 2019, 08:00 PM »
There is also Visual Studio Code that has an AsciiDoc extension, but it isn't nice to use, because the preview and the text are not "linked". As in: click on the preview and the edit section doesn't "follow" to the location where you clicked in the preview and vice versa. Yet it is nicer to use than chopping up the Eclipse IDE (Java again) to turn it into an AsciiDoc editor.

Which extension did you try specifically?  I was also looking for something to write Asciidoc and I didn't have luck with the two I tried:

https://github.com/a...r/asciidoctor-vscode
https://github.com/b...r-asciidoctor-vscode

I also tried on the Atom editor where IIRC there is more than one, but no dice there either.

I'm stuck with AsciidocFx at the moment.

50
Living Room / Re: I'm getting married, wish me luck!
« on: July 03, 2019, 10:28 PM »
Congratulations!

Wishing you health, happiness, peace, and luck together :)

Pages: prev1 [2] 3 4 5 6 7 ... 113next