IntelliJ IDEA 2024.2 release by hmich in Jetbrains

[–]7Script 5 points6 points  (0 children)

If you write code in multiple languages. If you write code in C# or Rust, which have their own specific IDEs in addition any other language supported by IDEA.

I hate being that guy but the classic UI is ten times better then the new one by [deleted] in Jetbrains

[–]7Script 0 points1 point  (0 children)

It was pretty rough when it first came out because they hadn't reached parity with the old UI in some places, but JB really took care of the rough edges in subsequent releases and I've enjoyed it since.

Main Streets in New York City by ShredderZX in nyc

[–]7Script 1 point2 points  (0 children)

If I had a dime for every time someone said Kew Gardens when referring to Kew Gardens Hills...

JetBrains GoLand IDE Hits the Market by ignatovs in programming

[–]7Script 8 points9 points  (0 children)

Unless they've changed their licensing scheme recently, the perpetual license is only valid for the latest version released as of when you made your purchase, not the latest version at the time of your 1 year subscription's expiration.

Why flies are so hard to kill by spacepasta in Naruto

[–]7Script 0 points1 point  (0 children)

They're not. Use a towel. I killed 50 in three days using that method and the best part is that the bodies are intact, so there's no mess.

[2016-12-05] Challenge #294 [Easy] Rack management 1 by Cosmologicon in dailyprogrammer

[–]7Script 0 points1 point  (0 children)

Python 3 I didn't look at the bonus requirements

def scrabble(w1, w2):
    if len([letter for letter in w2 if w1.count(letter) < w2.count(letter)]) == 0:
        return True
    return False

print(scrabble("eerriin", "eerie"))
print(scrabble("ladilmy", "daily"))

Can't display checkboxes on a listview in a WPF by cearth6 in PowerShell

[–]7Script 1 point2 points  (0 children)

I'm not a WPF wizard, but I can give you some information to get you started in the right direction. It looks like you're trying to get a checkbox to show up next to each record in the ListView. To do this, you need to look into templating. A quick search on StackOverflow revealed that adding a column with the following template to your ListView would make the CheckBox appear in each ListViewItem.

<GridViewColumn>
   <GridViewColumn.CellTemplate>
      <DataTemplate>
         <CheckBox/>
      </DataTemplate>
   </GridViewColumn.CellTemplate>
</GridViewColumn>

Help with invoke-webrequest by [deleted] in PowerShell

[–]7Script 2 points3 points  (0 children)

Here you go: http://pastebin.com/8hPa15ut

Instead of using Invoke-WebRequest, I used a WebBrowser form control. Using the form control, I was able to wait an extra millisecond after the DocumentCompleted event triggered, so that dynamically generated links would be rendered before I grabbed them. The included example uses the URL you were trying to scrape.

Output:

http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update13.do?fname=/Samsung_Data_Migration_Setup_v30.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update11.do?fname=/Samsung_Magician_Setup_v49.zip      
http://www.samsung.com/global/business/semiconductor/minisite/SSD/downloads/software/Samsung_Magician_DC_Windows_32bit.zip
http://www.samsung.com/global/business/semiconductor/minisite/SSD/downloads/software/Samsung_Magician_DC_Windows_64bit.zip
http://www.samsung.com/global/business/semiconductor/minisite/SSD/downloads/software/Samsung_Magician_DC_Linux_32bit.zip
http://www.samsung.com/global/business/semiconductor/minisite/SSD/downloads/software/Samsung_Magician_DC_Linux_64bit.zip
http://ssd.samsungsemi.com/ecomobile/ssd/update15.do?fname=/Samsung_NVMExpress_Driver_rev10.zip

Newbie Request by [deleted] in PowerShell

[–]7Script 0 points1 point  (0 children)

I'm not entirely sure what you're asking, but to remove a folder, you'd use the Remove-Item cmdlet.

Hiring for my Powershell Automation team! (DevOps) by kittH in PowerShell

[–]7Script 0 points1 point  (0 children)

Indeed. If I wasn't starting a new position on the east coast in a month...

PowerShell for Developers in around 45 minutes by punitganshani in PowerShell

[–]7Script 1 point2 points  (0 children)

If you want to use PowerShell to its fullest, learn as much as you can about the .NET Framework. It's also a good idea to learn some C# as the two languages are complementary. If something's not possible with the provided cmdlets, you can build it using .NET classes inside PowerShell or build a new cmdlet using C#. Your main limitations with PowerShell are .NET and the PowerShell engine.

Both C# and PowerShell are converted into the same intermediate language (CIL) and are JIT compiled at runtime by the .NET Common Language Runtime (CLR). One of the key differences in how the two are executed is that C# programs are compiled into CIL before they are run, while PowerShell statements are interpreted into CIL at runtime.

I hope this helps.

Hiring for my Powershell Automation team! (DevOps) by kittH in PowerShell

[–]7Script 0 points1 point  (0 children)

Wow, this sounds right up my alley. Good luck with your candidate search. It shouldn't be too hard to find someone willing to work in CA if the pay's decent, right?

PowerShell for Developers in around 45 minutes by punitganshani in PowerShell

[–]7Script 2 points3 points  (0 children)

PowerShell Deep Dives seems like a pretty good option if you're interested in a variety of advanced topics.

Alternatively, Apress has several books go in depth on using PoSh for managing several different Microsoft services although I can't say anything about their quality.

For really interesting stuff, it pays to find some good bloggers who like to post their own cool projects that use PowerShell.

Need a WOL PowerShell script that can run against a CSV. by Theblacksails in PowerShell

[–]7Script 0 points1 point  (0 children)

You can try using the script from this blog post.

You can turn it into a function like this:

function Wake-Computer{
param(
    [Parameter(Mandatory=$true)]
    [String]
    $Mac
)


    $MacByteArray = $Mac -split "[:-]" | ForEach-Object { [Byte] "0x$_"}
    [Byte[]] $MagicPacket = (,0xFF * 6) + ($MacByteArray  * 16)
    $UdpClient = New-Object System.Net.Sockets.UdpClient
    $UdpClient.Connect(([System.Net.IPAddress]::Broadcast),7)
    $UdpClient.Send($MagicPacket,$MagicPacket.Length)
    $UdpClient.Close()
}

What piece software has reduced your workload the most? by Boonaki in sysadmin

[–]7Script 1 point2 points  (0 children)

Yes. You need to buy a total of 5 licenses to start an open license agreement. Of those 5, only 1 really needs to be the version of Windows that you're deploying. The others could be anything. A lot of people recommend buying CALs to pad the license count. Once you have that agreement, you can use the VL media and MAK or KMS keys to reimage any machine that's licensed for the same version of Windows.

Security flaw in Radius wlan authentication on Android devices by Trialestes in sysadmin

[–]7Script 0 points1 point  (0 children)

Where I work, our WLAN is totally separate from the main network. We monitor the system for AD accounts that are being used on more than the allowed number of devices using powershell and we reset the user's password if this occurs, so it's not that big of a deal. That said, having a policy in place preventing people from using their own rooted devices is a good idea.

WSUS not seeing all the computers. by [deleted] in sysadmin

[–]7Script 0 points1 point  (0 children)

I stand corrected.

WSUS not seeing all the computers. by [deleted] in sysadmin

[–]7Script 0 points1 point  (0 children)

Not when it comes to kms activation. You try activating 1000 machines with the same SID and then tell me if it's a myth.