小编Dar*_*val的帖子

要求太大

我在我的页面上收到以下错误,我更新了IIS设置的发布限制,但是找不到如何增加工作缓冲区大小,对此的任何帮助都会很棒

Request Too Large
The "POST" request is too large for the internal work buffer:

    The internal work buffer size is 512 bytes.
    The "POST" request size is 2313 bytes. 

Return to last page
Run Code Online (Sandbox Code Playgroud)

来自firebug的官方状态错误:413请求实体太大

我使用IIS7.5来设置页面

该站点是通过.NET MVC4构建的

而且我无法减少帖子的大小,事实上在某些情况下它只会增加.

iis-7.5 asp.net-mvc-4

6
推荐指数
1
解决办法
2860
查看次数

线程"main"中的异常java.lang.NoClassDefFoundError:junit/textui/ResultPrinter更新到Yosemite之后

我最近将我的系统从Mavericks(OSX)更新为Yosemite.我用来能够右​​键单击测试并运行它.现在我得到了例外

/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7541 "-Didea.launcher.bin.path=/Applications/Android Studio.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/Android Studio.app/Contents/lib/idea_rt.jar:/Applications/Android Studio.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/michael.cameron/Code/Android/sdk/platforms/android-21/android.jar:/Users/michael.cameron/Code/Android/sdk/platforms/android-21/data/res:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/classes/debug:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.3/classes.jar:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.3/res:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/libs/ParseCrashReporting-1.8.0.jar:/Users/michael.cameron/Code/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/21.0.3/support-annotations-21.0.3.jar:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/res:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/classes.jar:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/libs/internal_impl-21.0.3.jar:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/libs/Parse-1.8.0.jar:/Users/michael.cameron/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-android/1.1.4/129874135e6081269ace2312092031558865de12/bolts-android-1.1.4.jar:/Users/michael.cameron/Code/Android/darxstudios/TheChefsCodex/app/libs/bolts-android-1.1.4.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 com.darxstudios.thechefscodex.ApplicationTest
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:191)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 3 more
Run Code Online (Sandbox Code Playgroud)

它也可能与我在我的Dock中点击打开的Android Studio图标时有关,我得到错误没有找到JVM,但我可以通过终端打开它没问题.

这与一个全新的android studio项目相同,默认的applicationTest试图运行.

java junit android android-studio

6
推荐指数
2
解决办法
1万
查看次数

未捕获的翻译SimException:dx.rop.cst.CstInterfaceMethodRef无法强制转换为com.android.dx.rop.cst.CstMethodRef(Proguard)

我的团队和我一直在努力解决我们在试用Proguard我们的Android应用程序之前获得的这个例外,然后再进入测试阶段.

我们得到的例外是:

Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstInterfaceMethodRef cannot be cast to com.android.dx.rop.cst.CstMethodRef
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins …
Run Code Online (Sandbox Code Playgroud)

android proguard

6
推荐指数
1
解决办法
2360
查看次数

卷曲,推特oauth问题

有没有人看到下面的Curl调用/如何构建Oauth请求有问题?
(我正在尝试获得正确的设置请求,以便我可以完成我的应用程序)

所以我调用以下CURL调用:

C:\>curl -v -k --data-urlencode "status=Testing2" -H "Authorization: OAuth realm='', oauth_nonce=1276107867blah, oauth_timestamp=1276107867, oauth_consumer_key=yJDLH7BDdVi1OKIINSV7Q, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=NWU4MDdlNjk0OGIxYWQ1YTkyNmU5YjU1NGYyOTczMmU5ZDg5
Run Code Online (Sandbox Code Playgroud)

YWNkNA ==,staus = Testing2" http://twitter.com/statuses/update.xml?status=Testing2

我接受了这个:

* About to connect() to twitter.com port 80 (#0)
*   Trying 168.143.162.68... connected
* Connected to twitter.com (168.143.162.68) port 80 (#0)
> POST /statuses/update.xml?status=Testing2 HTTP/1.1
> User-Agent: curl/7.20.1 (i386-pc-win32) libcurl/7.20.1 OpenSSL/0.9.8n zlib/1.2.5 libidn/1.18 libssh2/1.2.5
> Host: twitter.com
> Accept: */*
> Authorization: OAuth realm='', oauth_nonce=1276106370blah, oauth_timestamp=1276106370, oauth_consumer_key=yJDLH7BDdVi1OKIINSV7Q, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=MjQzNDA1MGU4NGRmMWVjMzUwZmQ4YzE5NzMzY2I1ZDJlOTRkNmQ2Zg==, staus=Testing2
> Content-Length: 15
> Content-Type: …
Run Code Online (Sandbox Code Playgroud)

twitter curl oauth

5
推荐指数
1
解决办法
3582
查看次数

什么角色没有编码?

所以我在C#中构建一个WebAPI,当我使用时编码我的字符串

Uri.EscapeDataString(字符串)

有些字符的编码不像!

我很好奇是否有一个列表,列出了所有那些没有被编码的​​字符,因为用户可以传递任何东西.所以我可以创建一个异常并自己手动编码.

提前致谢!

c# api encode web-services urlencode

4
推荐指数
1
解决办法
698
查看次数

试图为hmac-sha1找到一个好的javascript函数

所以我一直在网上搜索Hmac-sha1算法的javascript源代码.我看到了Crypto的但我似乎无法让它工作,主要是因为它不知道加密意味着什么.(我将.js脚本函数复制到我的脚本文件中)
http://code.google.com/p/crypto-js/
我已经有了base64编码功能.我从这里得到:
http://nerds-central.blogspot.com/2007/01/fast-scalable-javascript-and-vbscript.html


BTW这对于使用新的OAuth系统中的Twitter应用.

任何帮助或链接到我可以在这里找到任何东西将有所帮助
如果你需要我详细说明让我知道.谢谢!

html twitter hmacsha1

3
推荐指数
1
解决办法
5441
查看次数

二进制'*':找不到全局运算符,它接受类型'统计者'(或者没有可接受的转换)

我试图重载我的运算符它实际上只是一个包含算术函数和一系列数组变量的类.

但是当我重载我的(*)乘法运算符时,我得到这个错误:

     binary '*' : no global operator found which takes type 'statistician' 
(or there is no acceptable conversion)
Run Code Online (Sandbox Code Playgroud)

当我的代码尝试执行此操作时:s = 2*u;在main.cpp中

其中s和u是统计学家.

统计学家=我的班级

(statistician.h)

class statistician  
{
... other functions & variables...

const statistician statistician::operator*(const statistician &other) const;

..... more overloads...

};
Run Code Online (Sandbox Code Playgroud)

任何帮助都会很棒,谢谢!!

c++ operator-overloading

2
推荐指数
1
解决办法
2814
查看次数