黑客派自动签到脚本

本贴最后更新于 1916 天前,其中的信息可能已经时移世异

一个已知问题:脚本会长时间卡住(大概率).多次运行脚本仍无法继续.
问题原因:由于 Invoke-WebRequest 命令使用的是 IE 内核进行 DOM 解析,获取网页之后,会进行 DOM 解析,才能进一步使用 ParsedHtml 方法中的 getElementsByClassName 等网页方法,脚本就卡在了这个地方.
具体原因未知,可能是该站完全放弃了 IE,未进行兼容导致的.

*.ps1 文件

<#

.Synopsis
   自动签到的PowerShell脚本
.DESCRIPTION
   自动签到
.EXAMPLE
   自动签到程序.ps1 [-Task]
   自动签到程序.ps1 [-DelUser] <动态值>
.EXAMPLE
   自动签到程序.ps1 [-WebName] <动态值> [-UserName] <String> [-PassWord] <String>

.INPUTS
   到此 cmdlet 的输入(如果有)
.OUTPUTS
   来自此 cmdlet 的输出(如果有)
.NOTES
   一般注释
.COMPONENT
   此 cmdlet 所属的组件
.ROLE
   此 cmdlet 所属的角色
.FUNCTIONALITY
   最准确描述此 cmdlet 的功能
#>
# 该脚本声明必须在开头,其他函数及命令之前 
# 用于手动添加账号密码
[CmdletBinding(DefaultParameterSetName)] # 设置默认参数组为空
Param(

    [Parameter(ParameterSetName="adds",Position=1,Mandatory=$true)]
    [ValidateNotNullOrEmpty()]
    [string]$UserName,

    [Parameter(ParameterSetName="adds",Position=2,Mandatory=$true)]
    [ValidateNotNullOrEmpty()]
    [string]$PassWord,

    [Parameter(ParameterSetName="Task")]
    [switch]$Task,

    [Parameter(DontShow,ParameterSetName="None")]
    [switch]$None
)

#动态参数
DynamicParam
{
    
    $filepath="$($PSScriptRoot)\cookie.user"
    if (-not (Test-Path -Path $filepath))
    {
        New-Item -ItemType "file" -Path $filepath | Out-Null
    }
    #主
    $PD = New-Object -Type System.Management.Automation.RuntimeDefinedParameterDictionary
    $modName=(Get-ChildItem -Path $($PSScriptRoot) -Name -Include 签到-*.psm1) -replace '签到-','' -replace '.psm1',''
    #$modName=$mods 
    #当有模块时,动态添加模块列表
    if ($modName.Count){
        
        #容器
        $a = New-Object -TypeName System.Collections.ObjectModel.Collection[System.Attribute]
        #属性
        $b = New-Object System.Management.Automation.ParameterAttribute
        $b.Mandatory = $true
        $b.ParameterSetName='adds'
        $b.Position=0
        $b.HelpMessage='可选参数:'+$modName
        $a.Add($b)
        #参数值
        $c=New-Object System.Management.Automation.ValidateSetAttribute($modName)
        $a.Add($c)

        $d = New-Object -TypeName System.Management.Automation.RuntimeDefinedParameter('WebName',[string], $a)
        $PD.Add('WebName', $d)
    }
    #账号删除功能
    [PSObject].Assembly.GetType('System.Management.Automation.TypeAccelerators')::Add('SA', [System.Collections.ArrayList])
    $pp=(Get-Content $filepath) | Convertfrom-Json
    $ar = New-Object -TypeName SA
    foreach ($s in $pp)
    {

        $ar.Add($s.WebName+":"+$s.UserName)|Out-Null
    }
    if ($ar.Count) {

        #容器
        $a = New-Object -TypeName System.Collections.ObjectModel.Collection[System.Attribute]
        #属性
        $b = New-Object System.Management.Automation.ParameterAttribute
        $b.Mandatory = $true
        $b.ParameterSetName='Deleted'
        $a.Add($b)

        #参数值
        $c=New-Object System.Management.Automation.ValidateSetAttribute($ar)
        $a.Add($c)

        $d = New-Object -TypeName System.Management.Automation.RuntimeDefinedParameter('DelUser',[string], $a)
        $PD.Add('DelUser',$d)
    }
    return $PD
}

begin
{
    $T=1
    #cookie存储文件位置
    $filepath="$($PSScriptRoot)\cookie.user"
    if (-not (Test-Path -Path $filepath))
    {
        New-Item -ItemType "file" -Path $filepath | Out-Null
    }
    #签到结果记录路径文件位置
    $LogPath="{0}\Log\" -f $PSScriptRoot
    if (-not (Test-Path -Path $LogPath))
    {
        New-Item -ItemType "directory" -Path $LogPath | Out-Null
    }
    $global:Log="{0}{1:yyyyMMdd}.log" -f $LogPath,(get-date)
    #可用签到模板
    $modName=(Get-ChildItem -Path $($PSScriptRoot) -Name -Include 签到-*.psm1) -replace '签到-','' -replace '.psm1',''
    #所有用户信息
    [array]$pp=(Get-Content $filepath) | Convertfrom-Json
    #添加计划任务
    if ($task)
    {
        # 任务操作   程序 ,工作目录,参数
        $AA = New-ScheduledTaskAction -Execute "PowerShell"  -WorkingDirectory "$($PSScriptRoot)" -Argument "$($Script:MyInvocation.InvocationName)"
        #$BB = New-ScheduledTaskAction -Execute "PowerShell"  -WorkingDirectory "$($PSScriptRoot)" -Argument "-WindowStyle Hidden -Command `"& { Get-WinEvent -FilterHashtable @{LogName='论坛签到';StartTime=(Get-Date -Hour 0 -Minute 0 -Second 1)} | sort  TimeCreated -Descending| SELECT-Object TimeCreated,id,leveldisplayname,ProviderName,message | Out-GridView -Wait -Title 今日签到记录}`""
        $tem=Get-ScheduledTask -TaskName '论坛自动签到任务' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
        if ($tem)
        {
            if (($tem.Actions.Arguments -eq $AA.Arguments ) -and ($tem.Actions.WorkingDirectory -eq $AA.WorkingDirectory))
            {
                Write-Warning '该计划任务已存在'
            }
        }
        else
        {
            # 触发器    早上6点到晚上23点
            $T = New-ScheduledTaskTrigger -Daily -At 6:0:0  -RandomDelay 17:0:0          
            # 创建者  当前用户名
            $P = New-ScheduledTaskPrincipal "$env:userdomain\$env:username" 
            # 设置集   各种相关设置
            $S = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -WakeToRun -Priority 4 -DontStopIfGoingOnBatteries -DontStopOnIdleEnd -RunOnlyIfNetworkAvailable -MultipleInstances IgnoreNew -StartWhenAvailable -Compatibility win8  -ExecutionTimeLimit 0   -DisallowHardTerminate       
            # 新任务   最后是任务描述  DisallowStartIfOnBatteries
            $D = New-ScheduledTask -Action $AA -Principal $P -Trigger $T -Settings $S  -Description "论坛自动签到脚本"
            # 注册任务     
            Register-ScheduledTask -TaskName "论坛自动签到任务" -InputObject $D |Out-Null
            Write-Host '计划任务已经添加'
        }
        return
    }
    #删除账号
    if ($PSBoundParameters.DelUser)
    {
        $DU=$PSBoundParameters.DelUser -split ":"
        Remove-Item $filepath
        foreach ($s in $pp)
        {
            if (-not(($s.WebName -eq $DU[0]) -and ($s.UserName -eq $DU[1])))
            {
                ConvertTo-Json -Compress -InputObject $s |  Out-File -append $filepath
            }
        }
        return
    }
    "签到脚本开始运行"
    #设置UserAgent
    enum 浏览器
    {
        Chrome
        FireFox
        InternetExplorer
        Opera
        Safari
    }
    function Get-UA ([浏览器]$ua)
    {
        return [Microsoft.PowerShell.Commands.PSUserAgent]::[浏览器]$ua
    }
    $global:UserAgents=Get-UA('Chrome')

    #写入到文件
    function global:Write-file ($Account){
        ConvertTo-Json -Compress -InputObject $Account |  Out-File -append $filepath
    }

    #写入到日志文件
    function global:Write-Log ($Account){
        Out-File -append $Log -InputObject $Account.ToString()
    }

    function global:HttpRest ($S)
    {
        Start-Sleep -Seconds $T
        $b=try{
            Invoke-RestMethod  @s
        }catch{
            $_.Exception.Response
        }
        return $b
    }

    function global:HttpWeb ($S)
    {
        Start-Sleep -Seconds $T
        $b=try{
            Invoke-WebRequest  @s
        }catch{
            $_.Exception.Response
        }
        return $b
    }
    #进行url编码
    function global:UrlEncode ([string]$pa)
    {
        return [uri]::EscapeUriString($pa)
    }

    #添加cookie
    function global:AddCookie($Tok,$WebHost)
    {
        # 创建cookie 数据包
        $Loadion = New-Object Microsoft.PowerShell.Commands.WebRequestSession
        $y=($Tok| Get-Member -MemberType NoteProperty ).Name
        # 循环添加所有 cookie
        foreach ($tk in $y)
        {
            $cookie = New-Object System.Net.Cookie($tk,$Tok.$tk,"",$WebHost)
            $Loadion.Cookies.Add($cookie)
        }
        return $Loadion
    }
    #转换cookie为散列表
    function global:CookieToHashTable ([Microsoft.PowerShell.Commands.WebRequestSession]$cookie,$uri)
    {
        $d=@{}
        $i=$cookie.Cookies.GetCookieHeader($uri)
        $i -split '; '|%{
            $temp=$_ -split '='
            $d.Add($temp[0],$temp[1])
        }
        return $d
    }
    #计算MD5
    function global:MD5
    {
         param
        (
            [parameter(mandatory=$true)]
            [ValidateNotNullOrEmpty()]
            [String] $String
        )
        #希哈计算
        $StringBuilder = New-Object System.Text.StringBuilder
        [System.Security.Cryptography.HashAlgorithm]::Create("MD5").ComputeHash([System.Text.Encoding]::UTF8.GetBytes($String))|%{
            [Void]$StringBuilder.Append($_.ToString("x2"))
        }
        return $StringBuilder.ToString()
    }

    $color=@{
        ForegroundColor='Black'
        BackgroundColor='White'
        NoNewline=$true
    }

    Write-Host -NoNewline "当前可用签到模板: "
    foreach ($item in $modName)
    {
        Write-Host "$item" @color
        Write-Host " " -NoNewline
        import-module "$($PSScriptRoot)\签到-$($item).psm1" -Prefix $item -Force
    }
    Write-Host ''
    #$pp=(Get-Content $filepath) | Convertfrom-Json
    Write-Host -NoNewline "共有 "
    Write-Host -Object $pp.Count  @color
    Write-Host " 个账号`n"

    #通过命令行添加新账号
    if ($PSBoundParameters.Count -eq 3)
    {
        foreach ($item in $pp)
        { #通过遍历,如果输入的用户名已存在,且与网站都吻合,则提示该用户已存在
            if (($item.UserName -eq $PSBoundParameters.UserName) -and  ($item.WebName -eq $PSBoundParameters.WebName))        
            { 
                Write-Warning  "该用户已存在"
                return
            }
        }
        $NewA=&($PSBoundParameters.WebName+'Account')  $PSBoundParameters -news
        $NewA.LogIn()
        if ($NewA.Token)
        {
            "登陆成功"
        }elseif($NewA.Msg){
            $NewA.Msg
#|Format-Table -AutoSize
        }
        return
    }

    #-----------自动签到----------------
    "开始自动签到"
    foreach ($item in $pp)
    {
        #如果该账号缺少对应模块,则直接跳过
        if ($modName -notcontains $item.WebName) {continue}
        $Account=&($item.WebName+'Account') $item
        $Account.CheckIn()
        $Account.Result | Format-Table -AutoSize
        
    }
    Start-Sleep -Seconds 3;pause
}
<#
process
{
    
}
#>
end
{


"运行结束"
}

签到-黑客派.psm1

#网络地址

$WebName='黑客派'

[uri]$login_uri='https://hacpai.com/api/v2/login'
[uri]$login_OTH_uri='https://hacpai.com/api/v2/login/2fa'
[uri]$user_info_uri='https://hacpai.com/api/v2/user/{0}'
#[uri]$user_point_uri='https://hacpai.com/api/v2/notifications/point?p=1'
[uri]$user_checkin_uri='https://hacpai.com/activity/checkin'
$WebHost=$login_uri.Host

#网络连接的基类
class GetWeb:Hashtable
{
    [uri]$Uri
    [validateset("Get", "Post", "Head")]
    [string]$Method='Get'
    hidden [int] $TimeoutSec
    hidden [string] $UserAgent

    GetWeb ([uri]$uri) {
        [uri]$this.Uri=$uri
        $this.Method='Get'
        $this.TimeoutSec= 7
        $this.UserAgent=$global:UserAgents
    }
}

class Result
{
    [string]$WebName=$Script:WebName
    [string]$UserName=$UserName
    [int]$StatusCode=-1
    [string]$Status
    [int]$Sc=-1
    [string]$Msg
    [int]$Points=-1
    [int]$AllPoint=-1
    [int]$Now=-1
    [int]$Long=-1
    Result($UserName){}
    [string]ToString(){
        $g="时间: {0:HH:mm′ss″}`t网站: {1}`t用户: {2}`t积分: {3}({4})`t次数: {5}/{6}" -f (get-date),$this.WebName,$this.UserName,$this.AllPoint,$this.points,$this.now,$this.Long 
        return $g
    }
}

class WebSession:GetWeb
{
    $WebSession

    WebSession ([uri]$uri,$WebSession):base($uri){
        $this.WebSession=$WebSession
    }

}

class PostAndWebSession:WebSession
{
    $WebSession
    PostAndWebSession ([uri]$uri,$WebSession):base($uri,$WebSession){
        $this.Method='Post'
    }
}

#用于登录的body
class login_Body
{
    [string]$userName
    [string]$userPassword
    $captcha
    login_Body ([string]$userName,[string]$MD5) {
        $this.userName=$userName
        $this.userPassword=$MD5
        $this.captcha=$NULL
    }
}

class Head:Hashtable
{
    [string]$Referer
    Head(){
        $this.Referer=$Script:user_checkin_uri
    }
}

#post加body
class PostAndBody:GetWeb
{
    $Body
    PostAndBody ([uri]$uri,$body):base($uri){
        $this.Method='Post'
        $this.Body=$body
    }
}

#发送两步验证的请求参数
class PostAndBodyAndWebSession:PostAndBody
{
    $WebSession
    PostAndBodyAndWebSession ([uri]$uri,$body,$WebSession):base($uri,$body){
        $this.WebSession=$WebSession
    }
}

#建立以用户为主的类,其中包含登录,签到等网络操作的方法
 class 账户:Hashtable
 {
    [string]$WebName=$Script:WebName
    [ValidateNotNullOrEmpty()]
    [string]$UserName
    [ValidateNotNullOrEmpty()]    
    [string]$MD5
    [PSCustomObject]$Token
    #输入方式添加
    账户 ([string]$username,[string]$userPassword){
        $this.WebName=$Script:WebName
        $this.UserName=$username
        $this.MD5=MD5($userPassword)
        #$this.Result=[Result]::new($UserName)
    }
    #从文件读取
    账户 ([PSCustomObject]$Account){
        $this.WebName=$Script:WebName
        $this.UserName=$Account.UserName
        $this.MD5=$Account.MD5
        $this.Token=$Account.Token
        $this.Result=[Result]::new($Account.UserName)
    }
    #登录
    LogIn()
    {
        $body=[login_Body]::new($this.UserName,$this.MD5)
        $login=[PostAndBody]::new($Script:login_uri,$body)
        
        $b=HttpRest $login

        if ($b.sc -ne $NULL)
        {
            switch ($b.sc)
            {
                0 
                {
                    $this.Token=@{symphony=$b.token}
                    Write-file -Account $this
                    return
                }
                10 
                {#两步验证
                    $r = new-object psobject -Property @{symphony=$b.token}
                    $this.OTH($r)
                    return
                }
                Default 
                {
                    $this.Sc=$b.sc
                    $this.Msg=$b.msg
                }
            }
        }elseif($b.StatusCode.value__ -ne $NULL){
            $this.StatusCode=$b.StatusCode.value__
            $this.Status=$b.StatusCode
            switch ($b.StatusCode.value__)
            {
                401 
                {
                    $this.Status='需要登录'
                    return
                }
                403 
                {
                    $this.Status='权限不足'
                    return
                }
            }
        }
    }

    #两步验证
    hidden OTH ($r) 
    {
        $Loadion=AddCookie -Tok $r -WebHost $Script:WebHost
        $OTH = Read-Host '两步验证码'
        $body=@{twofactorAuthCode=$OTH}
        $TOTH=[PostAndBodyAndWebSession]::new($Script:login_OTH_uri,$body,$Loadion)
        $c=HttpRest $TOTH

        if ($c.sc -ne $NULL)
        {
            switch ($c.sc)
            {
                0
                {
                    $this.Token=@{symphony=$c.token}
                    Write-file -Account $this
                    return
                }
                Default 
                {
                    $this.Sc=$c.sc
                    $this.Msg=$c.msg
                }
            }
        }elseif($c.StatusCode.value__ -ne $NULL){
            $this.StatusCode=$c.StatusCode.value__
            $this.Status=$c.StatusCode
            switch ($c.StatusCode.value__)
            {
                401 
                {
                    $this.Msg='需要登录'
                    return
                }
                403 
                {
                    $this.Msg='权限不足'
                    return
                }
            }
        }
    }

    #主要的签到操作流程
    CheckIn()
    {
        $this.Loadion=AddCookie -Tok $this.Token -WebHost $Script:WebHost
        $this.get_check_uri()
        $this.get_info()
        Write-Log $this.Result
    }

    #获取积分信息
    hidden get_info()
    {
        $e=[WebSession]::new($Script:user_info_uri -f $this.UserName,$this.Loadion)
        $q=HttpRest $e
        if ($q.sc -ne $NULL)
        {
            $this.Result.Sc=$q.sc
            $this.Result.Msg=$q.msg
            if ($q.sc -eq 0)
            {
                $this.Result.Long=$q.data.user.userLongestCheckinStreak
                $this.Result.Now=$q.data.user.userCurrentCheckinStreak
                $this.Result.AllPoint=$q.data.user.userPoint
                return
            }
        }elseif($q.StatusCode.value__ -ne $NULL){
            $this.Result.StatusCode=$q.StatusCode.value__
            $this.Result.Status=$q.StatusCode
            switch ($q.StatusCode.value__)
            {
                401 
                {
                    $this.Result.Msg='需要登录'
                    return
                }
                403 
                {
                    $this.Result.Msg='权限不足'
                    return
                }
            }
        }
    }

    #获取签到地址
    hidden get_check_uri()
    {
        $e=[WebSession]::new($Script:user_checkin_uri,$this.Loadion)
        $e2=$e.Clone()
        $s=HttpWeb $e 

        $this.Result.StatusCode=$s.StatusCode
        $this.Result.Status=$s.StatusDescription
        :ss switch ($s.StatusCode)
        {
            200
            {
                $re=$s.ParsedHtml.body.getElementsByClassName('btn green')[0].href
                if ($re)
                {
                    $e.Uri=$re
                    $e.Headers=[head]::new()
                    Break :ss
                }
            }
            401 
            {
                $this.Result.Msg='需要登录'
                return
            }
            403 
            {
                $this.Result.Msg='权限不足'
                return
            }
        }

        $s=HttpWeb $e
        $this.Result.StatusCode=$s.StatusCode
        $this.Result.Status=$s.StatusDescription
        switch ($s.StatusCode)
        {
            200 
            {
                $re=$s.ParsedHtml.body.getElementsByTagName('code')[0].innerText
                if ($re)
                {
                    $this.Result.Points=$re
                    return
                }
            }
            401 
            {
                $this.Result.Msg='需要登录'
                return
            }
            403 
            {
                $this.Result.Msg='权限不足'
                return
            }
        }
    }
}

function Account ()
{
    param
    (
        $Account,
        [switch] $news
    )

    if ($news){
        $f=[账户]::new($Account.UserName,$Account.PassWord)
    }else{
        $f=[账户]::new($Account)
    }
    return $f
}

Export-ModuleMember -Function Account
  • 黑客派

    黑客派是 B3log 开源社区的线上论坛,这里主要汇聚了程序员和设计师。HacPai 分别取 Hacker / Painter 的头三个字母组成,源自《黑客与画家》。

    358 引用 • 4755 回帖 • 511 关注
  • 签到
    39 引用 • 389 回帖 • 10 关注
2 操作
YxxXlv0COaxl 在 2019-05-27 20:14:45 更新了该帖
YxxXlv0COaxl 在 2019-05-26 13:53:58 更新了该帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...

推荐标签 标签

  • Pipe

    Pipe 是一款小而美的开源博客平台。Pipe 有着非常活跃的社区,可将文章作为帖子推送到社区,来自社区的回帖将作为博客评论进行联动(具体细节请浏览 B3log 构思 - 分布式社区网络)。

    这是一种全新的网络社区体验,让热爱记录和分享的你不再感到孤单!

    131 引用 • 1114 回帖 • 136 关注
  • HHKB

    HHKB 是富士通的 Happy Hacking 系列电容键盘。电容键盘即无接点静电电容式键盘(Capacitive Keyboard)。

    5 引用 • 74 回帖 • 445 关注
  • iOS

    iOS 是由苹果公司开发的移动操作系统,最早于 2007 年 1 月 9 日的 Macworld 大会上公布这个系统,最初是设计给 iPhone 使用的,后来陆续套用到 iPod touch、iPad 以及 Apple TV 等产品上。iOS 与苹果的 Mac OS X 操作系统一样,属于类 Unix 的商业操作系统。

    84 引用 • 139 回帖 • 2 关注
  • 倾城之链
    23 引用 • 66 回帖 • 125 关注
  • Log4j

    Log4j 是 Apache 开源的一款使用广泛的 Java 日志组件。

    20 引用 • 18 回帖 • 26 关注
  • wolai

    我来 wolai:不仅仅是未来的云端笔记!

    2 引用 • 14 回帖 • 4 关注
  • 黑曜石

    黑曜石是一款强大的知识库工具,支持本地 Markdown 文件编辑,支持双向链接和关系图。

    A second brain, for you, forever.

    10 引用 • 88 回帖
  • 资讯

    资讯是用户因为及时地获得它并利用它而能够在相对短的时间内给自己带来价值的信息,资讯有时效性和地域性。

    54 引用 • 85 回帖
  • 开源中国

    开源中国是目前中国最大的开源技术社区。传播开源的理念,推广开源项目,为 IT 开发者提供了一个发现、使用、并交流开源技术的平台。目前开源中国社区已收录超过两万款开源软件。

    7 引用 • 86 回帖 • 1 关注
  • Jenkins

    Jenkins 是一套开源的持续集成工具。它提供了非常丰富的插件,让构建、部署、自动化集成项目变得简单易用。

    52 引用 • 37 回帖 • 2 关注
  • RabbitMQ

    RabbitMQ 是一个开源的 AMQP 实现,服务器端用 Erlang 语言编写,支持多种语言客户端,如:Python、Ruby、.NET、Java、C、PHP、ActionScript 等。用于在分布式系统中存储转发消息,在易用性、扩展性、高可用性等方面表现不俗。

    49 引用 • 60 回帖 • 387 关注
  • JSON

    JSON (JavaScript Object Notation)是一种轻量级的数据交换格式。易于人类阅读和编写。同时也易于机器解析和生成。

    52 引用 • 190 回帖 • 1 关注
  • Mobi.css

    Mobi.css is a lightweight, flexible CSS framework that focus on mobile.

    1 引用 • 6 回帖 • 721 关注
  • SOHO

    为成为自由职业者在家办公而努力吧!

    7 引用 • 55 回帖 • 48 关注
  • 电影

    这是一个不能说的秘密。

    120 引用 • 598 回帖
  • 以太坊

    以太坊(Ethereum)并不是一个机构,而是一款能够在区块链上实现智能合约、开源的底层系统。以太坊是一个平台和一种编程语言 Solidity,使开发人员能够建立和发布下一代去中心化应用。 以太坊可以用来编程、分散、担保和交易任何事物:投票、域名、金融交易所、众筹、公司管理、合同和知识产权等等。

    34 引用 • 367 回帖
  • SVN

    SVN 是 Subversion 的简称,是一个开放源代码的版本控制系统,相较于 RCS、CVS,它采用了分支管理系统,它的设计目标就是取代 CVS。

    29 引用 • 98 回帖 • 698 关注
  • Spark

    Spark 是 UC Berkeley AMP lab 所开源的类 Hadoop MapReduce 的通用并行框架。Spark 拥有 Hadoop MapReduce 所具有的优点;但不同于 MapReduce 的是 Job 中间输出结果可以保存在内存中,从而不再需要读写 HDFS,因此 Spark 能更好地适用于数据挖掘与机器学习等需要迭代的 MapReduce 的算法。

    74 引用 • 46 回帖 • 562 关注
  • Hadoop

    Hadoop 是由 Apache 基金会所开发的一个分布式系统基础架构。用户可以在不了解分布式底层细节的情况下,开发分布式程序。充分利用集群的威力进行高速运算和存储。

    86 引用 • 122 回帖 • 619 关注
  • 周末

    星期六到星期天晚,实行五天工作制后,指每周的最后两天。再过几年可能就是三天了。

    14 引用 • 297 回帖 • 1 关注
  • 服务

    提供一个服务绝不仅仅是简单的把硬件和软件累加在一起,它包括了服务的可靠性、服务的标准化、以及对服务的监控、维护、技术支持等。

    41 引用 • 24 回帖 • 1 关注
  • 小说

    小说是以刻画人物形象为中心,通过完整的故事情节和环境描写来反映社会生活的文学体裁。

    28 引用 • 108 回帖
  • 面试

    面试造航母,上班拧螺丝。多面试,少加班。

    324 引用 • 1395 回帖
  • CloudFoundry

    Cloud Foundry 是 VMware 推出的业界第一个开源 PaaS 云平台,它支持多种框架、语言、运行时环境、云平台及应用服务,使开发人员能够在几秒钟内进行应用程序的部署和扩展,无需担心任何基础架构的问题。

    5 引用 • 18 回帖 • 148 关注
  • Logseq

    Logseq 是一个隐私优先、开源的知识库工具。

    Logseq is a joyful, open-source outliner that works on top of local plain-text Markdown and Org-mode files. Use it to write, organize and share your thoughts, keep your to-do list, and build your own digital garden.

    5 引用 • 62 回帖 • 8 关注
  • WordPress

    WordPress 是一个使用 PHP 语言开发的博客平台,用户可以在支持 PHP 和 MySQL 数据库的服务器上架设自己的博客。也可以把 WordPress 当作一个内容管理系统(CMS)来使用。WordPress 是一个免费的开源项目,在 GNU 通用公共许可证(GPLv2)下授权发布。

    58 引用 • 113 回帖 • 273 关注
  • Facebook

    Facebook 是一个联系朋友的社交工具。大家可以通过它和朋友、同事、同学以及周围的人保持互动交流,分享无限上传的图片,发布链接和视频,更可以增进对朋友的了解。

    4 引用 • 15 回帖 • 460 关注