我想编译生成64位可执行文件的GCC和binutils.从GNU文档我发现它必须看起来像ia64 - * - hpux*.
对于ia64-hp-hpux11*,默认输出类型为32位:
% file ./a.out
./a.out: ELF-32 executable object file - IA64
Run Code Online (Sandbox Code Playgroud)
这就是我所拥有的:
% uname -s -r -v -m
HP-UX B.11.31 U ia64
Run Code Online (Sandbox Code Playgroud)
那么对于ia64-hpux来说,什么是64位目标三元组
我在身份验证后将用户权限标识符放在用户会话中.如何根据用户权限限制对站点某些部分的访问.现在我正在检查页面处理程序中的权限,但如何使其更好?
这样做有现成的模板吗?你举个例子吗?
Google App Engine说"必须首先进行身份验证".在尝试部署任何应用时:
me@myhost /opt/google_appengine $ python appcfg.py update ~/sda2/workspace/lyapapam/
Application: lyapapam; version: 1.
Server: appengine.google.com.
Scanning files on local disk.
Scanned 500 files.
Scanned 1000 files.
Initiating update.
Email: <email_here>@gmail.com
Password for <email_here>@gmail.com:
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
Run Code Online (Sandbox Code Playgroud)
我们收到此消息的任何应用程序和我们可用的任何开发人员帐户
这就是我们安装的:
Python - 2.5.5 App Engine SDK - 1.3.2
PIL - 1.1.7 ssl - 1.15
Run Code Online (Sandbox Code Playgroud)
我该如何解决?这是众所周知的问题吗?
更新:
在安装了Gentoo的同一台计算机上安装Windows后,我确实遇到了时间同步的问题,但我很快就通过在注册表中设置RealTimeIsUniversal并在两个系统中设置与europe.pool.ntp.org的同步来解决这个问题.(顺便说一句,我的时区是EEST)
在我解决了时间同步问题后的几天,appcfg.py在打印出来的每一行之后都要求我输入密码(这真的很奇怪)并且我使用了--passin和unix'yes'.
现在我遇到了"必须先验证"的问题.我花了很多时间在Windows和Linux上使用不同组合的--passin --insecure --no_cookies选项,但没有任何成功.
我搜索了SO和Django文档,似乎无法找到它.我正在扩展django.contrib.comments应用程序的基本功能,以使用我的webapp中的自定义权限系统.对于审核操作,我尝试使用基于类的视图来处理对注释和权限检查的基本查询. (在此上下文中的"EComment"是我的"增强评论",继承自基础django评论模型.)
我遇到的问题comment_id是从urls.py中的URL传入的kwarg.如何从基于类的视图中正确检索?
现在,Django正在抛出错误TypeError: ModRestore() takes exactly 1 argument (0 given).代码包括在下面.
urls.py
url(r'restore/(?P<comment_id>.+)/$', ModRestore(), name='ecomments_restore'),
Run Code Online (Sandbox Code Playgroud)
views.py
def ECommentModerationApiView(object):
def comment_action(self, request, comment):
"""
Called when the comment is present and the user is allowed to moderate.
"""
raise NotImplementedError
def __call__(self, request, comment_id):
c = get_object_or_404(EComment, id=comment_id)
if c.can_moderate(request.user):
comment_action(request, c)
return HttpResponse()
else:
raise PermissionDenied
def ModRestore(ECommentModerationApiView):
def comment_action(self, request, comment):
comment.is_removed = False
comment.save()
Run Code Online (Sandbox Code Playgroud)