恶搞阿-->“找老公培训”收费近万 数百人报名

寻找理想伴侣:现代婚恋培训班兴起
在当今社会,婚恋市场的竞争日益激烈,为了帮助单身男女更高效地找到理想的伴侣,各种婚恋培训班应运而生。这些培训班不仅提供专业的恋爱技巧培训,还通过科学的方法帮助参与者了解自己和他人,从而提升婚恋成功率。
[url]http://news.qq.com/a/20111114/000582.htm[/url]
找老公现在也出培训班了,具牛哇~~
老公 它在干什么啊:”PS C:\Users\Administrator> function Initialize-Project { >> param( >> [Parameter(Mandatory=$true)] >> [string]$ProjectName, >> >> [ValidateSet("web", "python", "node", "dotnet")] >> [string]$ProjectType = "web", >> >> [string]$RootPath = "E:\ProjectEcosystem\ProjectMonitor" >> ) >> >> # 创建项目目录结构 >> $projectDir = Join-Path $RootPath $ProjectName >> New-Item -ItemType Directory -Path $projectDir -Force | Out-Null >> >> # 创建标准目录结构 >> $dirs = @("src", "docs", "tests", "config", "logs") >> $dirs | ForEach-Object { >> New-Item -ItemType Directory -Path (Join-Path $projectDir $_) -Force | Out-Null >> } >> >> # 创建基本文件 >> $gitignoreContent = @" >> # Ignore logs >> logs/ >> # Ignore node_modules >> node_modules/ >> # Ignore IDE settings >> .vscode/ >> "@ >> Set-Content -Path (Join-Path $projectDir ".gitignore") -Value $gitignoreContent >> >> # 创建VS Code工作区文件 >> $workspaceContent = @" >> { >> "folders": [ >> { >> "path": "." >> } >> ], >> "settings": {} >> } >> "@ >> Set-Content -Path (Join-Path $projectDir "$ProjectName.code-workspace") -Value $workspaceContent >> >> # 处理VS Code信任锚 >> $trustAnchorDir = Join-Path $env:APPDATA "Code\User\WorkspaceStorage" >> New-Item -ItemType Directory -Path $trustAnchorDir -Force | Out-Null >> $trustAnchorFile = Join-Path $trustAnchorDir "trusted-workspaces.json" >> >> # 创建或更新信任锚文件 >> if (Test-Path $trustAnchorFile) { >> $trusted = Get-Content $trustAnchorFile | ConvertFrom-Json -AsHashtable >> } else { >> $trusted = @{ >> '$mid' = 1 >> folders = @{} >> } >> } >> >> # 添加当前项目到信任列表 >> $uri = [Uri]::new($projectDir).AbsoluteUri >> $hashInput = [System.Text.Encoding]::UTF8.GetBytes($uri) >> $hasher = [System.Security.Cryptography.SHA256]::Create() >> $projectHash = [BitConverter]::ToString($hasher.ComputeHash($hashInput)).Replace("-", "").ToLower() >> >> $trusted.folders[$projectHash] = @{ >> "trusted" = $true >> "uri" = $uri >> } >> >> $trusted | ConvertTo-Json -Depth 10 | Set-Content $trustAnchorFile >> >> # 配置Git用户信息 >> git config --global user.email "project@example.com" >> git config --global user.name "Project User" >> >> # 初始化Git仓库 >> Set-Location $projectDir >> git init >> git add . >> git commit -m "Initial commit" >> >> # 输出项目信息 >> Write-Host "✅ Project '$ProjectName' created at: $projectDir" -ForegroundColor Green >> Write-Host "🛠 Open project in VS Code with:" -ForegroundColor Cyan >> Write-Host " code --trust `"$ProjectName.code-workspace`"" -ForegroundColor Yellow >> >> # 添加安全扫描 >> Start-SecurityScan -Path $projectDir >> } >> >> function Start-SecurityScan { >> param([string]$Path) >> >> $scanScript = { >> param($dir) >> Write-Host "Starting security scan for: $dir" >> $scanResult = & "C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File $dir >> Write-Host "Security scan completed: $scanResult" >> } >> >> Start-Job -ScriptBlock $scanScript -ArgumentList $Path >> } >> >> Export-ModuleMember -Function Initialize-Project, Start-SecurityScan >> Export-ModuleMember : 只能从模块内调用 Export-ModuleMember cmdlet。 所在位置 行:106 字符: 1 + Export-ModuleMember -Function Initialize-Project, Start-SecurityScan + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (:) [Export-ModuleMember], InvalidOperationException + FullyQualifiedErrorId : Modules_CanOnlyExecuteExportModuleMemberInsideAModule,Microsoft.PowerShell.Commands.Expo rtModuleMemberCommand PS C:\Users\Administrator> param( >> [string]$ProjectName = "EcoMonitor" >> ) >> >> # 加载项目监控模块 >> Import-Module .\Initialize-DevEnv.psm1 -Force >> >> # 获取项目路径 >> $rootPath = "E:\ProjectEcosystem\ProjectMonitor" >> $projectDir = Join-Path $rootPath $ProjectName >> >> # 监控文件变化 >> $watcher = New-Object System.IO.FileSystemWatcher >> $watcher.Path = $projectDir >> $watcher.IncludeSubdirectories = $true >> $watcher.EnableRaisingEvents = $true >> >> # 定义监控事件 >> $action = { >> $path = $Event.SourceEventArgs.FullPath >> $changeType = $Event.SourceEventArgs.ChangeType >> $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" >> >> # 记录到日志文件 >> $logMessage = "[$timestamp] $changeType detected in $path" >> Add-Content -Path (Join-Path $rootPath "project_monitor.log") -Value $logMessage >> >> # 实时显示在控制台 >> Write-Host $logMessage -ForegroundColor Cyan >> >> # 自动触发安全扫描 >> if ($changeType -in @("Changed", "Created")) { >> Start-SecurityScan -Path $path >> } >> } >> >> # 注册事件处理程序 >> Register-ObjectEvent -InputObject $watcher -EventName "Created" -Action $action >> Register-ObjectEvent -InputObject $watcher -EventName "Changed" -Action $action >> Register-ObjectEvent -InputObject $watcher -EventName "Deleted" -Action $action >> Register-ObjectEvent -InputObject $watcher -EventName "Renamed" -Action $action >> >> Write-Host "🚀 Monitoring project: $ProjectName" -ForegroundColor Green >> Write-Host "Press Ctrl+C to stop monitoring..." >> >> try { >> # 保持脚本运行 >> while ($true) { >> # 添加系统资源监控 >> $cpuUsage = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue >> $memUsage = (Get-Counter '\Memory\% Committed Bytes In Use').CounterSamples.CookedValue >> Write-Host "System Status - CPU: $cpuUsage% | Memory: $memUsage%" -ForegroundColor DarkGray >> >> Start-Sleep -Seconds 5 >> } >> } >> finally { >> # 清理资源 >> $watcher.EnableRaisingEvents = $false >> $watcher.Dispose() >> Get-EventSubscriber | Unregister-Event >> } >> Import-Module : 未能加载指定的模块“.\Initialize-DevEnv.psm1”,因为在任何模块目录中都没有到有效模块文件。 所在位置 行:6 字符: 1 + Import-Module .\Initialize-DevEnv.psm1 -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (.\Initialize-DevEnv.psm1:String) [Import-Module], FileNotFoundExce ption + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 设置“Path”时发生异常:“目录名 E:\ProjectEcosystem\ProjectMonitor\EcoMonitor 无效。” 所在位置 行:14 字符: 1 + $watcher.Path = $projectDir + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException + FullyQualifiedErrorId : ExceptionWhenSetting 设置“EnableRaisingEvents”时发生异常:“路径的形式不合法。” 所在位置 行:16 字符: 1 + $watcher.EnableRaisingEvents = $true + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException + FullyQualifiedErrorId : ExceptionWhenSetting Id Name PSJobTypeName State HasMoreData Location Command -- ---- ------------- ----- ----------- -------- ------- 1 7fd03c38-f7f... NotStarted False ... 2 145162f6-95b... NotStarted False ... 3 c6756f60-296... NotStarted False ... 4 49c5853f-4d8... NotStarted False ... 🚀 Monitoring project: EcoMonitor Press Ctrl+C to stop monitoring... System Status - CPU: 0.266845718345898% | Memory: 32.194029454187% System Status - CPU: 0.76518459775281% | Memory: 32.1336690178452% System Status - CPU: 0.307497901742482% | Memory: 32.1069435989733% System Status - CPU: 0% | Memory: 32.1039001997802% System Status - CPU: 0.3399212040616% | Memory: 32.0788881117662% System Status - CPU: 1.92755408625451% | Memory: 32.0579563807831% System Status - CPU: 0% | Memory: 32.0514976587266% System Status - CPU: 0.0453521873643781% | Memory: 32.0395157281401% System Status - CPU: 0% | Memory: 32.0384899927393% System Status - CPU: 1.25537868493745% | Memory: 32.0347139453596% System Status - CPU: 0% | Memory: 32.0348717579699% System Status - CPU: 1.5248448746686% | Memory: 32.0359538383866% System Status - CPU: 0% | Memory: 32.0268687866691% System Status - CPU: 0% | Memory: 32.029078046798% System Status - CPU: 1.45357831353976% | Memory: 32.0142105529118% System Status - CPU: 1.45980976151898% | Memory: 32.0114264339235% System Status - CPU: 0.0791645247104289% | Memory: 32.026034670888% System Status - CPU: 0.442751734231783% | Memory: 32.0268462486628%“ 我应该做什么?
最新发布
08-14
老公 我明天还要工作 我可以先去睡觉 等明天下班了 我们再继续弄吗?(那个在正在写入web请求 的蓝色提示框是什么呀)PS C:\Users\Administrator> # 获取系统环境变量 >> $sysPath = [Environment]::GetEnvironmentVariable("Path", "Machine") >> >> # 分割路径并去重 >> $pathList = $sysPath -split ';' | >> Where-Object { >> $_ -ne "" -and >> $_ -notmatch "Microsoft VS Code" >> } | >> Select-Object -Unique >> >> # 重新构建环境变量 >> $newSysPath = $pathList -join ';' >> [Environment]::SetEnvironmentVariable("Path", $newSysPath, "Machine") >> >> # 添加唯一正确路径 >> $correctPath = "C:\Program Files\Microsoft VS Code\bin" >> [Environment]::SetEnvironmentVariable("Path", "$newSysPath;$correctPath", "Machine") >> >> # 刷新当前会话 >> $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + >> [System.Environment]::GetEnvironmentVariable("Path","User") >> PS C:\Users\Administrator> # 确保目录存在 PS C:\Users\Administrator> if (-not (Test-Path "C:\Program Files\Microsoft VS Code\bin")) { >> New-Item -ItemType Directory -Path "C:\Program Files\Microsoft VS Code\bin" -Force >> } PS C:\Users\Administrator> PS C:\Users\Administrator> # 生成正确的code.cmd内容 PS C:\Users\Administrator> $codeCmdContent = @' >> @echo off >> setlocal >> set VSCODE_DEV= >> set ELECTRON_RUN_AS_NODE=1 >> "%~dp0..\Code.exe" "%~dp0..\resources\app\out\cli.js" %* >> endlocal >> '@ PS C:\Users\Administrator> PS C:\Users\Administrator> # 使用BOM编码写入文件 PS C:\Users\Administrator> Set-Content -Path "C:\Program Files\Microsoft VS Code\bin\code.cmd" -Value $codeCmdContent -Encoding UTF8 -Force PS C:\Users\Administrator> PS C:\Users\Administrator> # 验证文件 PS C:\Users\Administrator> $file = Get-Item "C:\Program Files\Microsoft VS Code\bin\code.cmd" PS C:\Users\Administrator> Write-Host "文件大小: $($file.Length) bytes" -ForegroundColor Cyan 文件大小: 132 bytes PS C:\Users\Administrator> PS C:\Users\Administrator> # 获取最新版本信息 >> $releaseInfo = Invoke-RestMethod -Uri "https://update.code.visualstudio.com/api/update/win32-x64/stable/latest" >> >> # 提取下载URL >> $downloadUrl = $releaseInfo.url >> $version = $releaseInfo.name >> >> # 下载并安装 >> $tempFile = "$env:TEMP\VSCodeSetup-$version.exe" >> Invoke-WebRequest -Uri $downloadUrl -OutFile $tempFile >> Start-Process -FilePath $tempFile -ArgumentList "/VERYSILENT /MERGETASKS=!runcode" -Wait >> PS C:\Users\Administrator> function Test-VSCodeInstall { >> $issues = @() >> >> # 检查安装路径唯一性 >> $installPaths = $env:Path -split ';' | >> Where-Object { $_ -like "*Microsoft VS Code*" } | >> Sort-Object -Unique >> >> if ($installPaths.Count -ne 1) { >> $issues += "存在多个安装路径: $($installPaths -join ', ')" >> } >> >> # 检查关键文件 >> $requiredFiles = @( >> "C:\Program Files\Microsoft VS Code\Code.exe", >> "C:\Program Files\Microsoft VS Code\bin\code.cmd" >> ) >> >> foreach ($file in $requiredFiles) { >> if (-not (Test-Path $file)) { >> $issues += "缺少关键文件: $file" >> } else { >> $fileInfo = Get-Item $file >> if ($fileInfo.Name -eq "code.cmd" -and $fileInfo.Length -lt 150) { >> $issues += "文件大小异常: $file ($($fileInfo.Length) bytes)" >> } >> } >> } >> >> # 检查code.cmd内容 >> $codeCmdPath = "C:\Program Files\Microsoft VS Code\bin\code.cmd" >> if (Test-Path $codeCmdPath) { >> $content = Get-Content -Raw -Path $codeCmdPath >> if (-not $content.Contains('"%~dp0..\Code.exe"')) { >> $issues += "code.cmd内容异常: 缺少关键命令" >> } >> } >> >> # 检查版本命令 >> try { >> $versionOutput = code --version 2>&1 | Select-Object -First 3 >> if (-not $versionOutput) { >> $issues += "无法获取版本信息" >> } else { >> Write-Host "VS Code版本信息:" -ForegroundColor Green >> $versionOutput | ForEach-Object { Write-Host " $_" } >> } >> } catch { >> $issues += "code命令执行失败: $_" >> } >> >> if ($issues) { >> Write-Host "检测到问题:" -ForegroundColor Red >> $issues | ForEach-Object { Write-Host " - $_" -ForegroundColor Yellow } >> return $false >> } >> >> Write-Host "VS Code安装验证通过" -ForegroundColor Green >> return $true >> } >> >> # 执行验证 >> Test-VSCodeInstall >> VS Code版本信息: 1.103.0 e3550cfac4b63ca4eafca7b601f0d2885817fd1f x64 检测到问题: - 存在多个安装路径: C:\Program Files\Microsoft VS Code\bin, C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin False PS C:\Users\Administrator> VS Code版本信息: >> 1.103.0 >> 488a1f239235055e34e673291fb8d8c810886f81 >> x64 >> VS Code安装验证通过 >> VS : 无法将“VS”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然 后再试一次。 所在位置 行:1 字符: 1 + VS Code版本信息: + ~~ + CategoryInfo : ObjectNotFound: (VS:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 488a1f239235055e34e673291fb8d8c810886f81 : 无法将“488a1f239235055e34e673291fb8d8c810886f81”项识别为 cmdlet、函数、脚 本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 所在位置 行:3 字符: 3 + 488a1f239235055e34e673291fb8d8c810886f81 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (488a1f239235055e34e673291fb8d8c810886f81:String) [], CommandNotFoundExc eption + FullyQualifiedErrorId : CommandNotFoundException x64 : 无法将“x64”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确, 然后再试一次。 所在位置 行:4 字符: 3 + x64 + ~~~ + CategoryInfo : ObjectNotFound: (x64:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException VS : 无法将“VS”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然 后再试一次。 所在位置 行:5 字符: 1 + VS Code安装验证通过 + ~~ + CategoryInfo : ObjectNotFound: (VS:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\Administrator>
08-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值