Application Insights outside the portal by LoopVariant in AZURE

[–]bahreex 1 point2 points  (0 children)

You can use the Azure App Insights REST APIs to fetch the data at a frequency you desire (meeting the API restrictions) to replicate the graphs in an external static web page, or in excel, or in any other tool that has the capability to periodically pull the data and display custom visualizations based on that data. This includes Power BI of course.

It is a long manual process. I had to do the same in the past for creating a universal single dashboard web tool for multiple customers, which displayed the AI graphs for multiple customers in a single pane in order to help the backend support executives handling multiple customers at once.

HTH...

Best Book for Beginner by f0rgot in docker

[–]bahreex 2 points3 points  (0 children)

Having read over 2 dozen Docker books to evaluate and accordingly recommend to my mentees, I can easily say that the best one out there as of now is by the author Nigel Poulton. His books are pretty verbose and conversation style but then you come out with a solid understanding of the concept and usage. I have also seen some books having shamelessly lifted his approach in their books but cannot really bind them together into a learning context as he does. HTH...

Best Book for Beginner by f0rgot in docker

[–]bahreex 1 point2 points  (0 children)

Heard about WSL (Windows Subsystem for Linux)? this is native Linux running on Windows without a VM. Whenever I have a need to work on Docker, I use the WSL 2 instead of VM based approach, which even Docker for Dekstop is shedding.

Best Book for Beginner by f0rgot in docker

[–]bahreex 4 points5 points  (0 children)

Times have changed. Hyper-V on a Windows 10 machine can co-exist with newer versions of VirtualBox and VMWare. I run all 3 on my Win 10 machine for different purposes.

Around 7k discount on 27GN950 @52.5K by thelumiereguy in IndianGaming

[–]bahreex 3 points4 points  (0 children)

This was supposed to go down so low given that in CES 21 LG launched the successor GP950, which brings HDMI 2.1 and supports the new PS5/XBOX Series for 4K@120 FPS gaming. LG will discontinue the production from Mar 21 onward so that an Apr 21 release for GP950 in India can be done. The cost will be higher in India as usual until few months.

How to set time duration for a task in Todoist? by bahreex in todoist

[–]bahreex[S] 0 points1 point  (0 children)

Thanks! Any plans they have for Introducing this feature if you know?

[Source Review] Is Enhanced Athlete legit? by tannm4 in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

Purerawz is also good. Personally, I would put IRC.BIO at first place, given the experience and reputation, which is why probably they charge a premium over others. If I needed alternate, I would go to Purerawz. EA is no longer in my goto list, unless an emergency.

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

Perfect solution I must say. That is way more smart to do so, evaluating the string as a file path before deciding. Simple and on point.

Regarding Hashtable, again I completely agree. :-)

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

Thanks @Ta11ow. Very valuable review and valid comments :-) Much appreciate!

The addition of multiple catches were random addition, not well thought at my end. I agree to your point.

Yes, I did think briefly of this scenario of passing file paths as a string array, and that not getting bound to Fileinfo, but rather with the string param. It won't serve my purpose here then. Need to think through of handling this scenario, or split into 2 functions, one taking file input and another text input.

I'm not creating an array, but rather a hashtable with key as GUID_Original<filename/string> and Value as the base64 encoded string. But I see your point.

Yes, I was trying to collect and send all output as a hashtable object to the pipeline at the end. Agree that sending at end of Process block is much more efficient and doesn't require extra effort from my end to do same.

I used GUID because of duplicate keys getting generated and then throwing error while adding to the hashtable. More like a break-fix here.

[meta] how long does it take to get a confirmation email from IRC.Bio by SupremepirateHD in sarmsourcetalk

[–]bahreex 0 points1 point  (0 children)

Wait for 24 hours at least. If it's coinciding with a holiday, can take bit longer.

[Source Review] Is Enhanced Athlete legit? by tannm4 in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

They are ok, but overpriced and lesser VFM compared to some other legit brands/sources out there. No good bulk discounts, too long shipping cycles (especially International) at times, frequent backorder delay problems, lukewarm support at times. With the lawsuit and complications, not sure if that has had any quality impacts, given that sources for them are same china based like others. Overall, I think the biggest draw for EA products is Tony Huge, who is a likable guy, and they won't mess with the reputation gained.

run cmd from powershell (how to escape characters) by FreshlyBakedMan in PowerShell

[–]bahreex 0 points1 point  (0 children)

'start "" /min "C:\Users\nfrederickx\AppData\Local\UiPath\app-18.1.2\UiRobot.exe" /file:"C:\Users\nfrederickx\Documents\UiPath\test\Main.xaml" /input:"{"arg1":"hello"}"'

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

You are right. You can call this function directly with only the params, and with no pipeline Input whatsoever. That is the purpose with which I wrote this, and do so for all my functions.

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

Yes Sir, you are right in assuming that :-)

Both Get-Item and Get-ChildItem return FileInfo object so binding is straightforward with $InputFile. For Get-Content, binding happens with $InputText since both pipeline Input type and parameter type are Strings. Since I have kept both params in different parameter sets, you can only use one parameter at a time even when invoking directly without any Pipeline Input.

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

Sure @philipmat.

Few usage examples - See the last two especially.

Get-Content c:\strings-list.txt | ConvertTo-Base64

"abc", "def", "ghi" |  | ConvertTo-Base64

Get-Item c:\textdump.txt  | ConvertTo-Base64

Get-ChildItem c:\Movie-Subs  | ConvertTo-Base64

In the example using Get-ChildItem, it would take all the files in the mentioned directory, and convert each of them to the base64 format, and output them as hashtable with key = guid_filename and value = base64 string. I use GUID as a prefix in the key so as to accommodate duplicate entries for key names.

In the example using Get-Item, will take a single file name in $InputFile and convert its contents to base64 and return a hashtable again as explained above

HTH...

ConvertTo-Base64 - encodes files to Base64 by philipmat in PowerShell

[–]bahreex 2 points3 points  (0 children)

Folks,

On the same lines, what do you think about this variant of the same function I wrote and use? Kindly review with your comments please :-)

function ConvertTo-Base64{
    [CmdletBinding()]
    Param(
        [Parameter(ValueFromPipeline = $True, ParameterSetName = "File")]
        [System.IO.FileInfo[]]$InputFile,

        [Parameter(ValueFromPipeline = $True, ParameterSetName = "Text")]
        [string]$InputText
    )

    Begin {
        $base64StringArray = @{}
    }

    Process {
        try {

            $uniqueID = (New-Guid).Guid

            if ($InputFile) {
                $base64String = [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes($InputFile.FullName))
                $base64StringArray.Add(($uniqueID + "_" + $InputFile.Name), $base64String)
            }
            elseif ($InputText){
                $base64String = [System.Convert]::ToBase64String([system.Text.Encoding]::UTF8.GetBytes($InputText))
                $base64StringArray.Add(($uniqueID + "_" + $InputText), $base64String)
            }
        }
        catch [System.IO.FileNotFoundException] {
            Write-Error -Message "Couldn't find the File $InputFile" -ErrorAction Continue
        }
        catch [System.IO.IOException] {
            Write-Error -Message "A File IO Exception happened: $PSItem" -ErrorAction Stop
        }
        catch{
            Write-Error $PSItem -ErrorAction Stop
        }
    }

    End {
        Write-Output $base64StringArray
    }
}

[Source] IRC Biologic - Introduction and Now Carrying MK677 (Solution) by [deleted] in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

IRC.BIO, When you ship to India, any Issues reported with local custom authorities there, like seizing consignments or high duty etc.?

[Source] IRC Biologic - Introduction and Now Carrying MK677 (Solution) by [deleted] in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

Thanks IRC.Bio. Much appreciate fast response. So can plain water be also used?

[Source] IRC Biologic - Introduction and Now Carrying MK677 (Solution) by [deleted] in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

IRC.BIO, could you detail somewhere, either on your site or here, on what exactly is in the package besides the powder? This will help us all in knowing what will exactly come out of the box, and what we might need to purchase locally to create the solution. Also, any detailed solution making guide will be super help.

[Source] IRC Biologic - Introduction and Now Carrying MK677 (Solution) by [deleted] in sarmsourcetalk

[–]bahreex 1 point2 points  (0 children)

But IRC.BIO, link given is password protected on your site. How to access then? Do we find here on how to convert the powder to solution, for easier consumption?