鍍金池/ 問(wèn)答/ Linux問(wèn)答
笨尐豬 回答

感慨,一模一樣的錯(cuò)誤,排查后發(fā)現(xiàn)有兩個(gè)原因,一是node_modules中的node-sass是項(xiàng)目里面大神修改過(guò)源碼的,二是我錯(cuò)裝了32位node,希望對(duì)你有幫助,PS:3221225725簡(jiǎn)直是惡魔。

溫衫 回答

你可以試著新建一個(gè)Application來(lái)測(cè)試,照著PullToFresh文檔使用,如果還是有問(wèn)題,那么您應(yīng)該求助的是開(kāi)源的作者。
這種問(wèn)題,思否應(yīng)該很少有人會(huì)答,我答的也毫無(wú)營(yíng)養(yǎng),因?yàn)檫€要去研究使用下這個(gè)開(kāi)源,回答成本略微有點(diǎn)高。

莓森 回答

幫你把sh下下來(lái)了,你存下來(lái)試試看,我就估計(jì)你git clone的時(shí)候也會(huì)卡住。哈哈,到時(shí)候再找我吧。

main() {
  # Use colors, but only if connected to a terminal, and that terminal
  # supports them.
  if which tput >/dev/null 2>&1; then
      ncolors=$(tput colors)
  fi
  if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
    RED="$(tput setaf 1)"
    GREEN="$(tput setaf 2)"
    YELLOW="$(tput setaf 3)"
    BLUE="$(tput setaf 4)"
    BOLD="$(tput bold)"
    NORMAL="$(tput sgr0)"
  else
    RED=""
    GREEN=""
    YELLOW=""
    BLUE=""
    BOLD=""
    NORMAL=""
  fi

  # Only enable exit-on-error after the non-critical colorization stuff,
  # which may fail on systems lacking tput or terminfo
  set -e

  CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
  if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
    printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
    exit
  fi
  unset CHECK_ZSH_INSTALLED

  if [ ! -n "$ZSH" ]; then
    ZSH=~/.oh-my-zsh
  fi

  if [ -d "$ZSH" ]; then
    printf "${YELLOW}You already have Oh My Zsh installed.${NORMAL}\n"
    printf "You'll need to remove $ZSH if you want to re-install.\n"
    exit
  fi

  # Prevent the cloned repository from having insecure permissions. Failing to do
  # so causes compinit() calls to fail with "command not found: compdef" errors
  # for users with insecure umasks (e.g., "002", allowing group writability). Note
  # that this will be ignored under Cygwin by default, as Windows ACLs take
  # precedence over umasks except for filesystems mounted with option "noacl".
  umask g-w,o-w

  printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
  hash git >/dev/null 2>&1 || {
    echo "Error: git is not installed"
    exit 1
  }
  # The Windows (MSYS) Git is not compatible with normal use on cygwin
  if [ "$OSTYPE" = cygwin ]; then
    if git --version | grep msysgit > /dev/null; then
      echo "Error: Windows/MSYS Git is not supported on Cygwin"
      echo "Error: Make sure the Cygwin git package is installed and is first on the path"
      exit 1
    fi
  fi
  env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
    printf "Error: git clone of oh-my-zsh repo failed\n"
    exit 1
  }


  printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n"
  if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
    printf "${YELLOW}Found ~/.zshrc.${NORMAL} ${GREEN}Backing up to ~/.zshrc.pre-oh-my-zsh${NORMAL}\n";
    mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
  fi

  printf "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${NORMAL}\n"
  cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
  sed "/^export ZSH=/ c\\
  export ZSH=$ZSH
  " ~/.zshrc > ~/.zshrc-omztemp
  mv -f ~/.zshrc-omztemp ~/.zshrc

  # If this user's login shell is not already "zsh", attempt to switch.
  TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
  if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
    # If this platform provides a "chsh" command (not Cygwin), do it, man!
    if hash chsh >/dev/null 2>&1; then
      printf "${BLUE}Time to change your default shell to zsh!${NORMAL}\n"
      chsh -s $(grep /zsh$ /etc/shells | tail -1)
    # Else, suggest the user do so manually.
    else
      printf "I can't change your shell automatically because this system does not have chsh.\n"
      printf "${BLUE}Please manually change your default shell to zsh!${NORMAL}\n"
    fi
  fi

  printf "${GREEN}"
  echo '         __                                     __   '
  echo '  ____  / /_     ____ ___  __  __   ____  _____/ /_  '
  echo ' / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \ '
  echo '/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / / '
  echo '\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/  '
  echo '                        /____/                       ....is now installed!'
  echo ''
  echo ''
  echo 'Please look over the ~/.zshrc file to select plugins, themes, and options.'
  echo ''
  echo 'p.s. Follow us at https://twitter.com/ohmyzsh.'
  echo ''
  echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
  echo ''
  printf "${NORMAL}"
  env zsh
}

main
浪婳 回答

個(gè)人的一點(diǎn)點(diǎn)理解:
如果你的網(wǎng)站都是自己內(nèi)部的地址,那帶token應(yīng)該是沒(méi)什么問(wèn)題的。但是如果在一些論壇之類的地方,一個(gè)網(wǎng)站上可能有各種鏈接,那就有問(wèn)題了。
一個(gè)論壇網(wǎng)站W(wǎng):http://a.com,如果訪問(wèn)論壇里面某個(gè)鏈接的地址是article.html?id=&token=, 這時(shí)候有個(gè)危險(xiǎn)鏈接article.html?id=222&token=111,該頁(yè)面是用戶編輯的,里面掛了個(gè)誘惑性的地址http://d.com/danger.html, 在danger.html里面有個(gè)獲取Referer的方法,得到了一個(gè)token,還有一個(gè)圖<img src="http://a.com/modifyPwd?token=*">

  1. 用戶U登錄論壇W,授權(quán)成功
  2. 用戶點(diǎn)擊鏈接article.html?id=222&token=111,
  3. 用戶點(diǎn)擊了誘惑性的網(wǎng)址http://d.com/danger.html
  4. danger.html內(nèi)通過(guò)img發(fā)出了http://a.com/modifyPwd?token=*
  5. 跨域攻擊成功
使勁操 回答

一定要確認(rèn)你們新建的服務(wù)有沒(méi)有打開(kāi),在server文件夾下面,node index,開(kāi)啟服務(wù)器。

陌璃 回答

可以使用文本編輯器或記事本新建個(gè)文本文件,內(nèi)容為以下格式,然后修改擴(kuò)展名為.pem。

----- BEGIN CERTIFICATE -----
<你的密鑰>
-----END CERTIFICATE----- 
墨沫 回答

一樓的答案直接粗暴,老哥穩(wěn)。如果安裝慢的話,不如裝個(gè)cnpm(這就不會(huì)被qiang了)?

也可以參考這篇文章:Git 分支管理和沖突解決
https://www.cnblogs.com/mengd...

孤慣 回答

這樣寫是沒(méi)有問(wèn)題,只不過(guò)因?yàn)閍jax是異步的,所以你如果直接在fetch后面的代碼里拿text是拿不到的

賤人曾 回答

ubuntu?gnome桌面 ?使用gnom-tweak-tool這個(gè)工具換個(gè)主題吧
看題主完全linux桌面新手的樣子 你先搜索 gnome桌面美化 之類的關(guān)鍵詞 充充電
附我的筆記gnome桌面配置

朽鹿 回答

我也是遇到這個(gè)問(wèn)題。。。請(qǐng)問(wèn)樓主是怎么解決的呢?

撥弦 回答

先分析一下原始接口的header相關(guān)信息,模擬請(qǐng)求就要模擬的像一些,另外就是做好日記,有什么問(wèn)題也能很快發(fā)現(xiàn)

薔薇花 回答
  1. 建議你腳本前面加入 source /etc/profile 或 PATH=$PATH
  2. 可以執(zhí)行 /bin/bash -x xxxx.sh 可以清楚的看到腳本執(zhí)行步驟,便于分析。
青瓷 回答

這是parallel的約定用法/語(yǔ)法, :::前面是命令, 後面是參數(shù)(用來(lái)代替stdin)
援引個(gè)gun.org上的例子, 這些命令是等價(jià)的:

  (echo file1; echo file2) | parallel gzip
  parallel gzip ::: file1 file2
  parallel gzip {} ::: file1 file2
  parallel --arg-sep ,, gzip {} ,, file1 file2
  parallel --arg-sep ,, gzip ,, file1 file2
  parallel ::: "gzip file1" "gzip file2"

https://www.gnu.org/software/...

朽鹿 回答

如果語(yǔ)音是你自己版權(quán)的,你可以做URI固化
如果語(yǔ)音不是你自己的,你自己用無(wú)所謂,如果商業(yè)開(kāi)發(fā)應(yīng)用,可能會(huì)侵權(quán)而出現(xiàn)問(wèn)題。

遲月 回答

1、這是flask-socketio 的相關(guān)資料,希望你能夠喜歡 a:http://www.os373.cn/article/99,b:http://flask-socketio.readthedocs.io/en/latest/

2、 關(guān)于如何接受特定 IP 的信息,建議你的系統(tǒng)為 linux ,然后用 os 模塊直接調(diào)用 linux 系統(tǒng)的 socekt 通訊機(jī)制。
3、flask-socketio 本身就是集成在 flask 項(xiàng)目里,不需要再重新啟動(dòng)一個(gè)進(jìn)程。

膽怯 回答

去掉 rewrite ^.+api/?(.*)$ /$1 break;試試吧

我也遇到了這個(gè)問(wèn)題,請(qǐng)問(wèn)您解決了嗎?