Jquery - 生涩的动画(Jquery - Jerky animation)
我有一个小动画在所有浏览器中运行有点不稳定。 有什么我做错了吗?
这是我的代码: http : //jsfiddle.net/iltdev/nN6cT/2/
I have a little animation that's running a bit jerky in all browsers. Is there something I'm doing wrong?
Here's my code: http://jsfiddle.net/iltdev/nN6cT/2/
原文:https://stackoverflow.com/questions/7978181
最满意答案
编辑 :关于你得到的错误
cannot find -lgw32c
,你只需要下载libgw32c ,这在你的分步指南的依赖列表中提到=>开发者版!! (不是二进制文件,也不是源文件)
我也试着用mingw32编译
D:\tmp\ssl-1.15> python setup.py build -c mingw32 running build running build_py running build_ext building 'ssl._ssl2' extension writing build\temp.win32-2.5\Release\ssl\_ssl2.def gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\ssl\_ssl2.o build\temp.win32-2.5\Release\ssl\_ssl2.def -LC:\Utils\GnuWin32\lib -LD:\Python25\libs -LD:\Python25\PCBuild -lssl -lcrypto -lwsock32 -lgdi32 -lgw32c -lole32 -luuid -lpython25 -lmsvcr71 -o build\lib.win32-2.5\ssl\_ssl2.pyd -static D:\tmp\ssl-1.15>
导入确定
D:\tmp\ssl-1.15\build\lib.win32-2.5> python Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> dir(ssl) ['CERT_NONE', 'CERT_OPTIONAL', 'CERT_REQUIRED', 'DER_cert_to_PEM_cert', 'PEM_FOOTER', 'PEM_HEADER', 'PEM_cert_to_DER_cert', 'PROTOCOL_NOSSLv2', 'PROTOCOL_SSLv2', 'PROTOCOL_SSLv23', 'PROTOCOL_SSLv3', 'PROTOCOL_TLSv1', 'RAND_add', 'RAND_egd', 'RAND_status', 'SSLError', 'SSLSocket', 'SSL_ERROR_EOF', 'SSL_ERROR_INVALID_ERROR_CODE', 'SSL_ERROR_SSL', 'SSL_ERROR_SYSCALL', 'SSL_ERROR_WANT_CONNECT', 'SSL_ERROR_WANT_READ', 'SSL_ERROR_WANT_WRITE', 'SSL_ERROR_WANT_X509_LOOKUP', 'SSL_ERROR_ZERO_RETURN', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_fileobject', '_getnameinfo', '_ssl2', 'base64', 'cert_time_to_seconds', 'get_protocol_name', 'get_server_certificate', 'os', 'select', 'socket', 'sslwrap_simple', 'sys', 'wrap_socket'] >>>
更新 :第二个问题
我的新问题是:当我在其他目录上运行'python'时,如何成功导入它?
在我的例子中,我只做了
python setup.py build -c mingw32
,你需要使用它来安装它python setup.py install
要么
只需将
ssl
文件夹从build\lib.win32-2.5
到D:\Python25\Lib\site-packages\
Edit: Regarding the error you got
cannot find -lgw32c
, you simply need to download libgw32c, which is mentioned in dependencies list on your step by step guide=> developper Version!! (Not binaries, nor source ones)
I tried to compile with mingw32 too
D:\tmp\ssl-1.15> python setup.py build -c mingw32 running build running build_py running build_ext building 'ssl._ssl2' extension writing build\temp.win32-2.5\Release\ssl\_ssl2.def gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\ssl\_ssl2.o build\temp.win32-2.5\Release\ssl\_ssl2.def -LC:\Utils\GnuWin32\lib -LD:\Python25\libs -LD:\Python25\PCBuild -lssl -lcrypto -lwsock32 -lgdi32 -lgw32c -lole32 -luuid -lpython25 -lmsvcr71 -o build\lib.win32-2.5\ssl\_ssl2.pyd -static D:\tmp\ssl-1.15>
Importing ok
D:\tmp\ssl-1.15\build\lib.win32-2.5> python Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> dir(ssl) ['CERT_NONE', 'CERT_OPTIONAL', 'CERT_REQUIRED', 'DER_cert_to_PEM_cert', 'PEM_FOOTER', 'PEM_HEADER', 'PEM_cert_to_DER_cert', 'PROTOCOL_NOSSLv2', 'PROTOCOL_SSLv2', 'PROTOCOL_SSLv23', 'PROTOCOL_SSLv3', 'PROTOCOL_TLSv1', 'RAND_add', 'RAND_egd', 'RAND_status', 'SSLError', 'SSLSocket', 'SSL_ERROR_EOF', 'SSL_ERROR_INVALID_ERROR_CODE', 'SSL_ERROR_SSL', 'SSL_ERROR_SYSCALL', 'SSL_ERROR_WANT_CONNECT', 'SSL_ERROR_WANT_READ', 'SSL_ERROR_WANT_WRITE', 'SSL_ERROR_WANT_X509_LOOKUP', 'SSL_ERROR_ZERO_RETURN', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_fileobject', '_getnameinfo', '_ssl2', 'base64', 'cert_time_to_seconds', 'get_protocol_name', 'get_server_certificate', 'os', 'select', 'socket', 'sslwrap_simple', 'sys', 'wrap_socket'] >>>
Update: for the second question
my new problem is : how to import it successful when i run 'python' on other dirs?
In my example, I only did
python setup.py build -c mingw32
, you need to install it by usingpython setup.py install
or
Just copy
ssl
folder frombuild\lib.win32-2.5
toD:\Python25\Lib\site-packages\
相关问答
更多-
app.yaml没有skip_files:部分意味着你会选择默认值。 默认设置忽略以其开头的文件和目录. 。 添加您自己的skip_files:将覆盖默认行为。 这在配置文档的skip_files部分进行了描述。 Not having a skip_files: section in app.yaml means that you'll pick up the defaults. The defaults ignore files and directories that start with .. Add ...
-
为了解决这个问题,我必须 openssl rsa -in mydomain.key -text > mydomain.key.pem 并执行此操作: App Engine:您选择的私钥似乎不是有效的 也就是说,删除-----BEGIN RSA PRIVATE KEY-----之上的文本-----BEGIN RSA PRIVATE KEY----- 然后GAE控制台接受未加密的PEM文件。 To fix this I had to openssl rsa -in mydomain.key -text > m ...
-
如何为google-app-engine设置ssl模块[关闭](How to setup SSL module for google-app-engine? [closed])[2024-02-23]
编辑 :关于你得到的错误cannot find -lgw32c ,你只需要下载libgw32c ,这在你的分步指南的依赖列表中提到 OpenSSL的 libgw32c =>开发者版!! (不是二进制文件,也不是源文件) 我也试着用mingw32编译 D:\tmp\ssl-1.15> python setup.py build -c mingw32 running build running build_py running build_ext building 'ssl._ssl2' extension w ... -
这可能是StringListProperty的好机会。 设置成员资格是ListProperty的优势。 您需要提供一种更新和封送列表的方法,但它可以满足您的需求。 db.StringListProperty has = ['401k:T', 'health_in:F', 'has_childcare:T'] GQL Where子句 "WHERE has = '401k:T' and has = 'health_in:F'" ListProperties需要一些努力来了解它们的优势和应用。 GAE数据存储 ...
-
App Engine导入ssl失败(App Engine import ssl Failed)[2023-07-06]
答案迟了,但这里是您如何导入SSL库 在你的app.yaml ,添加这个 libraries: - name: ssl version: latest 这对我有效。 So I found a solution for this. I am posting this for anyone else who might run into the problem. Google App Engine dosent support some python modules with relies on C ba ... -
是否可以为我的Google App Engine应用安装/访问SSL?(Is it possible to install/access SSL for my Google App Engine app?)[2023-04-09]
http://code.google.com/appengine/docs/java/config/webxml.html#Secure_URLs表示,true 可以在带有* .appspot.com子域的appengine-web.xml文件中设置。 谷歌在该页面的开头标签上有一个错字,仅供参考。 对于Google Apps,您根本无法使用HTTPS,但对于appspot您可以。 至于使用自己的证书,你不能! 对于appspot,Google的证 ... -
正如Wooble指出的那样,这仅适用于从开发环境发送电子邮件 - 所以选择最简单的选项。 如果您无法使用它们中的任何一个,则在开发服务器上发送的电子邮件仍将显示在日志中,因此您可以在其中进行调试。 As Wooble points out, this only applies to sending email from the development environment - so pick whichever option is easiest. If you can't get any of them ...
-
通过首先安装pycrypto,按照此处的说明并使用对此问题的答案的见解进行修复。 我用于最终构建的完整命令行是: CC='/usr/bin/gcc-4.0' python2.5 setup.py build Fixed by installing pycrypto first, following the instructions from here and using the insight from an answer to this question. The full command line I ...
-
在你的nginx.conf中你需要配置 lua_ssl_verify_depth 2; lua_ssl_trusted_certificate /pathto-ca-certs.pem; 在我的情况下,我的服务器只调用一个外部HTTPS端点。 因此,我使用完整链(通过Firefox中的borwser ceritificate导出)导出证书并导入到PEM文件中。 这是我上面提供的.pem文件。 我使用lua-resty-http来调用https,它运行正常。 您可以使用wireshark / fiddler ...
-
无法在google-app-engine开发服务器上导入ctypes(Unable to import ctypes on google-app-engine development server)[2022-11-13]
在执行以下操作时,您需要在本地系统上安装相应版本的1.6.1以匹配运行时支持的版本1.6.1: libraries: - name: numpy version: "1.6.1" 虽然app引擎灵活 ,但你可以运行你想要的任何版本的numpy;) You need a corresponding version of 1.6.1 installed on your local system to match the runtime-supported version 1.6.1 when doing: ...