@jaykul@fosstodon.org

jaykul

@jaykul@fosstodon.org

I ❤️ OpenSource, Scripting, PowerShell, Python, dotnet, VSCode. I'm a Principal DevOps Engineer, and a 14x Microsoft MVP for PowerShell.

I also care about fairness and justice, which has combined with my career to lead to my interest in open source, open culture, encryption and federation.

Call me he/him, and think of me as a Luke 18:27 believer: a Jesus follower who cares about social justice, urban renewal, and open culture.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

khalidabuhakmeh, to webassembly
@khalidabuhakmeh@mastodon.social avatar

Spicy take, but I think will save .

jaykul,

@damselfly @khalidabuhakmeh except in the WASI space, nobody cares about your hot reload ;)

bradwilson, to github
@bradwilson@mastodon.social avatar

There is something wrong with this that I can't quite understand how to fix, but the problem is this:

Almost 100% of the time when I'm writing a response in a discussion, I want it to be in response to an existing thread, not as a new post. But this UI just screams "new post please!" and relegates the "reply" functionality to visual second class.

jaykul,

@bradwilson Yeah, it's the same problem Microsoft had with Teams when they first introduced threading.

jaykul, to Kubernetes

As I spend more time helping people apps on , I've been collecting that have good sets of troubleshooting tools baked in.

I'm still learning the tools in nicolaka/netshoot, but also need some specific things.

I stumbled on the lightrun-platform/koolkits package for node, and I wish they had a image -- anyone using anything better than the dotnet-monitor container?

jaykul, to Powershell

What that you wrote do you actually use most regularly, like, on a basis?

I'm going to have to say my prompt stuff, since not a day goes by where I'm not staring at the output 😉

But also ... Get-Parameter, which I use so often that I sometimes forget it's not built-in.

https://github.com/Jaykul/TerminalBlocks

https://github.com/Jaykul/PowerLine

https://www.powershellgallery.com/packages/Get-Parameter

jaykul,

@cjerrington sweet! I gave up on manually creating them and get by with zLocation -- but I think the best approach depends on how many different paths you spend time in.

jaykul,

@cjerrington Yeah, the completion suggestions from history are default but optional, and they don't want to try to exclude failed commands from history, so ...

https://github.com/PowerShell/PSReadLine/issues/2653

kohelet, to Powershell
@kohelet@mstdn.social avatar

Why in powershell backtick (`) is the escaping character, and not backslash () like in most languages?
anyone knows?

jaykul,

@vixalientoots @kohelet Yep, PowerShell was a Windows shell first, scripting language second, and on Windows the default Directory separator is backslash -- which was even more important in PowerShell, since they brought the idea of everything being a "provider" -- so you need that directory separator to access the Registry, Certificate management, WsMan, IIS, etc.

With PowerShell you can use forward slash too, but backslash was the OS default on the only OS they supported at first.

jaykul, to car

We've given corporations too much personhood. This line from @pluralistic rings true. Why else does a company need "intellectual" property?

When a business says it has "IP," it means that it has arranged its legal affairs to allow it to invoke the power of the state to control its customers, critics and competitors.

https://pluralistic.net/2024/03/12/market-failure/#car-wars

jaykul, to random

Mermaid for the revolution

Agile --> DevOps
DevOps --> CI/CD
Agile --> CI/CD
CI/CD --> GitOps
DevOps --> GitOps
Agile --> GitOps

It's not that is the best solution to deploying and maintaining software, it's just the best we can do right now.

jaykul, to random

Ad from McD's: It's season!

Me: Go home, clowns, you're drunk.

Superbowl was literally yesterday — nobody is ready for your stinking shamrock shakes.

georgetakei, to random

If you have to keep taking cognitive tests, you might be cognitively impaired. https://secondnexus.com/cnn-doctor-trump-early-dementia?utm_source=mastodon&utm_medium=infeed&utm_campaign=linkprogram

jaykul,

@georgetakei

Many people I know that suffer from dementia support .

The first 2 or 3 times that we had my mom tested for dementia, she "passed" despite frequent confusion and not remembering when she had last been tested. Her dementia robs her of recent memories only.

My dad continued to pass for years after he stopped being able to recall stories from my childhood. His dementia allows him great short-term recall.

https://secondnexus.com/cnn-doctor-trump-early-dementia

cjerrington, to Powershell
@cjerrington@mstdn.social avatar

Today I learned: I can SSH from to my machines effortlessly. This is a game changer!

jaykul,

@cjerrington and vice-versa ;-)

matty, to Powershell

I like this wallchart thing for Linux commands...but it occurs to me that for , nearly all of the most-used commands would just come under letters g, s, t, and n

You'd have a 'G to T of Powershell Commands'

jaykul,

Parse your history to find ALL the commands 😉

https://gist.github.com/Jaykul/dd1c341da90e47396f6f523031000221

using namespace Microsoft.PowerShell
using namespace System.Management.Automation.Language

foreach ($history in [PSConsoleReadLine]::GetHistoryItems()) {
$null = [Parser]::ParseInput($history.CommandLine, [ref]$Tokens, [ref]$null)
$Tokens.Where{ $_.TokenFlags -eq "CommandName" }.Text
}

I use Convert* as well as Where and Write commands.
I also have cmd, conda, dotnet, wsl, and flux in my recent top 100

brucecaron, to random

When your “subscription” gets enshittified…. I “subscribe to the NYT newspaper”, you know, the digital version of the printed paper, only now they say I only subscribe to “the news” and need to upgrade to see the rest… Hmmmm. @pluralistic

jaykul,

@llewelly @brucecaron @pluralistic hey, don't give them ideas, tiers of flamebait headlines is a moneymaker.

robert_p_king, to azure
@robert_p_king@mastodon.nz avatar

deleted_by_author

  • Loading...
  • jaykul,

    @robert_p_king oh come now, you've forgotten about those times when you needed to figure out whether to use $(foo) or ${{ variable.foo }} or $[ variable['foo'] ] or ... wait, did we move that output to a different job? $(step.foo) or was it $[ dependencies.job.step.foo ] ...

    def, to Powershell

    TIL that parameters are positional by default. This, combined with confusing argument naming and improper parameter passing, can lead to some unpleasant surprises.

    Example, simplified: function Process-VM.ps1 with two bool parameters. If you don't pass it any parameters, it just gets VM info. If you set Delete to $true, it deletes a VM.

    From the command line, with autocompletion suggesting parameters, I have accidentally called:
    ./Process-VM.ps1 -Debug $true

    Which deleted the VM.

    jaykul,

    @def you should never write a boolean parameter in . Never.

    Use [switch]

    P.S. Corollary: command-line tools should never have boolean parameters. It defies norms and expectations, and confuses users.

    Use switches.

    If I designed it, I think [bool] would behave the same as [switch] 😞

    jaykul, to Powershell
    jaykul, to random

    Does anyone have a recommendation for a loss prevention device for my elder's phone?

    I'm looking at Prox PRD, but I'm wondering if anyone has used it, or something like it - or if there are any similar devices that deliberately weaken the Bluetooth connection so they go off sooner (for something like this, I'd rather 15 feet or 5 meters than 100ft or 30 meters).

    AAKL, to microsoft
    @AAKL@noc.social avatar

    deleted_by_author

  • Loading...
  • jaykul,

    @AAKL @darkreading @jaivijayan
    This story has been going around for ages. Do you think these are really problems?

    I agree that the owner (the non-falsifiable uploader account) should be more prominent, but I'm not sure the author even understands what "unlisted" means or what typo-squatting is (the only place where they got that right is when they copy-pasted from the npm nlog).

    Microsoft said way back in 2022 that they do, in fact, scan for typo-squatting https://github.com/PowerShell/PowerShellGallery/issues/206#issuecomment-1289427247

    image/png

    jaykul, to ai

    Please don't forget, when you're dealing with AI startups, that when they make ludicrous claims about privacy ... they might just be flat-out lying to you.

    The main HARPA website has this text:

    PRIVACY BY DESIGN: HARPA runs locally in browser and does not send your data away.

    Except we know this can't be true, because it's a ChatGPT service. Their actual privacy policy is a mess --but still fails to mention that you're also subject to OpenAI's terms!

    Text from https://harpa.ai/privacy#retention-of-data and https://harpa.ai/privacy#transfer-of-data and https://harpa.ai/privacy#disclosure-of-data
    Text from https://harpa.ai/privacy#types-of-data-collected
    Text from https://harpa.ai/privacy#use-of-data

    box464, to infosec
    @box464@mastodon.social avatar

    App idea sure to get all the folks riled up. A community driven collection of publicly available Wi-Fi passwords so us don’t have to ask someone at the cafe or restaurant. 😅

    jaykul,

    @box464 not only does that exist, there's an app with offline maps ...

    Oh, and a digital currency, because, you know.

    https://www.wifimap.io/

    jaykul,

    @box464 paying? You can search on their website...

    bazcurtis, to Powershell
    @bazcurtis@mastodon.social avatar

    I am looking for PowerShell IDE advice. I am not a very good PowerShell coder, but as long a Google is up I have half a chance 😀

    I prefer to code in Python and use PyCharm. I find it much easier to learn by writing code and using break points to see what my variables are returning etc.

    Which is the best PowerShell IDE? I am not writing applications. They are mostly scripts to return API data and write them out to a file.

    jaykul,

    @bazcurtis I'm just going to pile on with everyone else.

    VS Code is a very good editor...

    It also has very good support for PowerShell, and it's the only editor where the PowerShell integration is managed by the PowerShell team.

    On top of that, it has (obviously) a pretty good community of users who are willing to help others find their way.

    It's also the only editor with it's own channel in the PowerShell discord 😉

    https://discord.com/invite/powershell

    noah, to microsoft
    @noah@twit.social avatar

    Did fire the intern that made the ISE application? It looks like they wrote it for Vista and never changed it. If they want people to use PowerShell maybe make a better editor?

    jaykul,

    @noah I doubt there's much written in public. You'd have to track down Dmitry Sotnikov or Kirk Munro or Tobias Weltner and buy them a beer 😉

    Those folks were working full time on commercial 3rd-party tools prior to ISE coming out.

    They didn't vent much in public at the time, but…

    and and all did freeware releases after ISE was released and were later abandoned.

    Idera and Quest (bought by Dell) got out of development after that. DevFarm is gone.

    jaykul,

    @cjerrington @noah @shanselman yep. is awesome, but it's hard to think of it as a "replacement" for ISE considering ISE still ships in the box, but we have to install Code (and the extension) separately.

    And of course, Microsoft now understand why having an editor in the box killed the competitors.

    Even today, people are still using ISE because it's on the server already. Complaining about it, but using it instead of even Microsoft's new preferred editor.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • GTA5RPClips
  • rosin
  • mdbf
  • Youngstown
  • love
  • slotface
  • khanakhh
  • ngwrru68w68
  • kavyap
  • osvaldo12
  • thenastyranch
  • DreamBathrooms
  • magazineikmin
  • megavids
  • ethstaker
  • tacticalgear
  • modclub
  • InstantRegret
  • Durango
  • normalnudes
  • everett
  • cisconetworking
  • cubers
  • Leos
  • anitta
  • tester
  • JUstTest
  • All magazines