我刚刚在另一台远程服务器上克隆了一个存储库并遇到了一个试图这样做的问题:
git clone git@codebasehq.com:blah/blah/docs.git
Cloning into docs...
remote: Counting objects: 343, done.
remote: error: unable to find 14f87a739828e4d489b0310a51e057b30333926e
remote: Compressing objects: 100% (325/325), done.
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: fatal: unable to read 14f87a739828e4d489b0310a51e057b30333926e
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)
我做了一点研究并发现了git fsck,这是输出:
$ git fsck --full
error: sha1 mismatch 14f87a739828e4d489b0310a51e057b30333926e
error: …Run Code Online (Sandbox Code Playgroud) 我有一个客户端,我们的应用程序的.msi安装程序有问题.WiX用于创建此安装程序.该应用程序已安装在许多其他机器上,但在他的机器上显示消息:
无法打开此安装包.请与应用程序供应商联系,以验证这是否是有效的Windows Installer程序包.
我的猜测是,这是以下两种可能性之一:
什么是最可能的可能性,还是有其他可能性我不知道?
我想我已经重新创建了用户的问题.如果,从命令shell,我运行MyFile.msi,然后它成功加载,然后我在日志文件中得到这个:
=== Verbose logging started: 2/12/2009 10:34:38 Build type: SHIP UNICODE 4.00.6001.00 Calling process: C:\Windows\System32\msiexec.exe ===
MSI (c) (F4:04) [10:34:38:795]: Resetting cached policy values
MSI (c) (F4:04) [10:34:38:795]: Machine policy value 'Debug' is 0
MSI (c) (F4:04) [10:34:38:795]: ******* RunEngine:
******* Product: C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi
******* Action:
******* CommandLine: **********
MSI (c) (F4:04) [10:34:38:802]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (F4:04) [10:34:38:830]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2
MSI …Run Code Online (Sandbox Code Playgroud) 好吧,我有一些由python(2.6)zlib.compress()函数压缩的数据流.当我尝试解压缩它们时,其中一些不会解压缩(zlib错误-5,这似乎是一个"缓冲区错误",不知道该怎么做).起初,我以为我已经完成了,但我意识到所有无法解压缩的都是从0x78DA开始的(工作的是0x789C),我环顾四周,似乎是一种不同的zlib压缩 - 幻数根据使用的压缩而变化.我可以用什么来解压缩文件?我洗了吗?
我遇到了一个杀死我所有头发的maven问题.
所以在开始时我所有的maven项目都运行良好.然后当我今天切换到新计算机并尝试编译它们时.
我从Eclipse看到的第一个错误是从本地maven存储库读取jar文件的IO错误.然后我用谷歌搜索,有人建议这是一些损坏的文件,只需删除它们,让maven重建存储库.
这解决了一段时间的问题.然后它一次又一次地弹出.
我累了,删除了整个本地存储库,并重新做了一切.然后我发现了原因:
maven远程存储库是坏的.
所以这是控制台消息的一部分.
[INFO] Unable to find resource 'org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8' in repository eclipse-repo (http://repo1.maven.org/eclipse) Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache. ws.commons.axiom/jars/axiom-dom-1.2.8.jar 373b downloaded (axiom-dom-1.2.8.jar) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '2c6102c2c3 70e0b993e897e981618ed448651147'; remote = 'The file contains an http redirect.
301 Moved PermanentlyMoved Permanently
The document has moved here.
Apache Server at maven-repository.dev.java.net Port 443
我被卡住了.我怎样才能得到真正的依赖罐?我该如何告诉maven避免这种情况?这真的很烦人.
我设法写了一个有限的视频播放器,能够从互联网上查看.3gp文件.视频将以全屏显示,保持视频宽高比.此外,旋转不会中断视频,从而保持播放没有问题.
一切似乎都很好,但是......当你旋转回到肖像时,我的HTC图例中,视频已损坏,而不是显示全屏,它以原始像素大小显示.但再次旋转到景观作品,并完美展现.有什么想法吗?不幸的是,我没有更多的硬件来测试它,我已经用尽了测试的想法.
您可以从https://github.com/gradha/Android-video-stream-rotation获取完整的示例源代码.以下是我打开应用程序,旋转到横向,触摸屏幕以显示视频控件,然后旋转回到肖像以查看损坏的屏幕截图.



我的手机(android,fwiw)拍摄的图片已损坏.我不确定为什么或如何做到这一点,但它似乎阻止我将照片上传到某些服务.如果我将照片移动到我的电脑并在GIMP中打开它,我会看到一条警告信息:
Corrupt JPEG data: 1130 extraneous bytes before marker 0xd9
Run Code Online (Sandbox Code Playgroud)
该错误并不妨碍我查看或编辑照片,但我想知道是否有某种方法可以设置批处理来解决这个问题?
我最近阅读了Bernard Chazelle的论文"The Soft Heap,Bernard Chazelle提出的具有最佳错误率的近似优先级队列"(http://www.link.cs.cmu.edu/15859-f07/papers/chazelle-soft-heap. pdf)
该文件谈到了很多关于"腐败"的内容.什么是腐败,元素如何被破坏,它如何帮助你?
我花了很多时间阅读论文和谷歌搜索,这仍然没有意义.
我刚刚在我的网站上部署新的更新时遇到了一个非常烦人的问题.我有两个单独的网站,而其中一个是开发版本.现在,当我想将我的更改应用于生产时,由于错误消息,它将无法工作:
在get_response
request.path_info中输入文件"/usr/lib/python2.6/dist-packages/django/core/handlers/base.py",第99行文件"/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py",第249行,以解决self.url_patterns中的模式:
文件"/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py",第278行,在_get_url_patterns
patterns = getattr(self.urlconf_module,"urlpatterns",self.urlconf_module)文件"/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py",第273行,在_get_urlconf_module中自我
._urlconf_module = import_module(self.urlconf_name)在import_module
import(name)中输入文件"/usr/lib/python2.6/dist-packages/django/utils/importlib.py",第35行文件"/srv/websites/spelutveckla_se/urls.py",第21行,在
(r'^ account/login/$',LoginView.as_view())中,NameError:未定义名称"LoginView"
如果我删除该应用程序,视图,类或模块并不重要,因为它会抱怨其他模块.LoginView是在import语句中定义的.这些文件只是在另一个子域上运行的开发文件的新副本(除了settings.py)没有任何问题.我已经多次检查settings.py并确保设置了正确的设置(因几个目录路径而异).我还检查过apache2 www-data用户是否有权访问这些文件.我也重新启动了几次apache并重复复制文件,但没有任何作用.
我很绝望,不知道问题可能是什么......?
这是我的urls.py在顶部的样子:
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic import DetailView, ListView, TemplateView
from django.contrib import admin
from project.models import Project
from project.views import Detail, EditView as EditProject, CreateProjectView, EditProjectLinksView, EditProjectFeedsView, EditProjectTagsView, EditMultimediaView, PostForumTopic, AudioFormset
from frontpage.views import FrontpageView
from userprofile.views import UserRegistrationView, UserRegistrationActivationView, LogoutView, UserProfileView, LoginView, EditProfileView, CreateUserProfileView
from registration.views import activate as …Run Code Online (Sandbox Code Playgroud) heap corruption detected运行此代码后,我收到此消息:
uli& uli::operator =(char* n)
{
char* buffer = new char[strlen(n)];
char* p;
int op;
int coef;
strcpy(buffer, n);
while(*buffer)
{
op = strlen(buffer) - 5;
p = (op >= 0) ? op+buffer : buffer;
coef = atoi(p);
if(coef > 65535)
coef = atoi(++p);
push(head, coef);
*p = '\0';
}
delete buffer; // <- heap corruption detected
return *this;
}
Run Code Online (Sandbox Code Playgroud)
这就是我调用方法的方法:
uli x;
x = "9876123";
Run Code Online (Sandbox Code Playgroud)
"检测到堆损坏"是什么意思?
还有一个类似的问题,
android.database.sqlite.SQLiteException:无法更改db的语言环境引起:android.database.sqlite.SQLiteDatabaseCorruptException:数据库磁盘映像格式错误(代码11)
无法将db'/data/data/my.easymedi.controller/databases/EasyMediInfo.db'的语言环境更改为'en_US'
但是我的数据库是由android通过SQLiteOpenHelper创建的.它出现在一些设备中.我想知道是什么原因导致这个问题,因为我甚至无法重现它.我怎么解决这个问题?非常感谢!
android.database.sqlite.SQLiteException: Failed to change locale for db '/data/data/com.android.settings/databases/myDB.db' to 'zh_CN'.
at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:386)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:833)
at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:221)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:224)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
at com.example.optimizecenter.packages.e.mO(PackagesManager.java:150)
at com.example.optimizecenter.packages.PackageSyncService.onHandleIntent(PackageSyncService.java:24)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed (code 11)
at android.database.sqlite.SQLiteConnection.nativeExecuteForString(Native Method)
at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:634)
at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:367)
... 18 more
Run Code Online (Sandbox Code Playgroud)
这是我的助手班.
public class PackageDataBaseHelper extends SQLiteOpenHelper {
public …Run Code Online (Sandbox Code Playgroud)