所以我正在使用Cloud9 ide在Node.js项目上进行协作.我们正在使用Postgresql作为数据库,而Postgres的文档似乎使它变得非常简单.我可以sudo service postgresql start没有问题,但我不能sudo -u postgres psql没有它要求我的密码,我不知道,因为Cloud9为我设置了环境.任何修复或建议?
所以我在虚拟机中运行backtrack 5.我正在尝试更新metasploit.我从github下载了metasploit目录并删除了旧的svn目录,就像网络告诉我的那样(https://community.rapid7.com/community/metasploit/blog/2013/05/20/git-clone-metasploit-dont -svn-checkout).运行msfupdate时出现此错误:
root@bt:~/metasploit# ./msfupdate
[*]
[*] Attempting to update the Metasploit Framework...
[*]
[*] Checking for updates via git
[*] Note: Updating from bleeding edge
HEAD is now at a02e0ee Land #2682 - Kimai v0.9.2 'db_restore.php' SQL Injection
Already on 'master'
Already up-to-date.
[*] Updating gems...
./msfupdate:188:in `require': no such file to load -- bundler (LoadError)
from ./msfupdate:188:in `update_git!'
from ./msfupdate:137:in `block in run!'
from ./msfupdate:135:in `chdir'
from ./msfupdate:135:in `run!'
from ./msfupdate:292:in `<main>'
Run Code Online (Sandbox Code Playgroud)
我知道我可以运行bundle命令来"捆绑更新"和"捆绑安装".在旁注中,当您运行"捆绑更新"时,这也会导致错误:
Gem::InstallError: factory_girl requires …Run Code Online (Sandbox Code Playgroud) 如果用户以"00110101"等形式输入二进制数,我如何让Python将其视为二进制值?它必须是这种形式.用户不会在输入之前输入"0b".我最终想将它转换为ascii字符,但似乎没有关于这种特定转换的信息.只是以二进制形式读取它并将其转换为整数应该足以让我继续前进.