转自: http://stackoverflow.com/questions/754488/invalid-arithmetic-operator Your error message seems to indicate pollution of your data with CRs. ")syntax error: invalid arithmetic operator (error token is " Notice how the stuff that's supposed to come after the current end of your line is at the beginning. That's most likely because your error token is in fact a CR (which is a carriage return character - a character that instructs the terminal to put the cursor on the beginning of the line). These characters are almost only used by Windows machines where they are part of line endings. I will assume that you're working on a windows machine and that your "date" command gave the output followed by a "windows" newline, which is actually a \r\n (carriage return, newline). The $() always strips trailing newlines, which leaves the \r at the end causing parsing problems in your script. Here, the following command produces your error on UNIX: $ foo = $ '5\r' ; echo $ (( 5 + foo )) ")syntax error: invalid arithmetic operator (error token is " To resolve the issue, you need to get rid of the \r in your data. You can use parameter expansion for this, or tr(1). $ foo = $ '5\r' ; echo $ (( 5 + $ { foo // $ '\r' })) 10 $ $ foo = $ '5\r' ; echo $ (( 5 + $ ( tr - d '\r' "$foo" ))) 10
前一段时间,遇到了一个很诡异的问题,有个同事的ClearCase中的一个文件总是checkin不了,提示的错误信息: Error checking in '文件路径及名字'. noname:Warning: Cannot find a group named “域名\cc管理组名” Type manager “z_whole_copy”failed create_version operation. 但是,拿到我的机器上就可以顺利的checkin。 后来,是什么原因呢? 360捣的鬼,在checkin的时候,把360关闭就可以了。 还有,在win7安装的时候也是要先安装clearcase然后再装360,如果顺序颠倒,cleacase就会安装失败。 我们用的是clearcase 4.1,是不是有点老? 其实,够用就好了。
Step-Size-Related ErrorsA typical step-size-related error message may state that thesystem is unable to reduce the step size without violating the minimumstep size for a certain number of consecutive times. This error messageindicates numerical difficulties in solving the Differential AlgebraicEquations (DAEs) for the model. This might be caused by dependentdynamic states (higher-index DAEs) or by the high stiffness of thesystem. You can try the following: Tighten the solver tolerance (decrease the RelativeTolerance parameter value in the Configuration Parametersdialog box) Specify a value, other than auto,for the Absolute Tolerance parameter in the ConfigurationParameters dialog box. Experiment with this parameter value. Tighten the residual tolerance (decrease the ConstraintResidual Tolerance parameter value in the Solver Configurationblock) Increase the value of the Number of consecutivemin step size violations allowed parameter in the ConfigurationParameters dialog box (set it to a value greater than the number ofconsecutive step size violations given in the error message) Review the model configuration and try to simplifythe circuit, or add small parasitic terms to your circuit to avoiddependent dynamic states. For more information, see Numerical Simulation Issues.
工程上的Failure, Error和Fault三者之间区别与联系? (IEC 61508和ISO 26262) Fault的定义 : 可能导致 系统或功能 失效 的异常条件( Abnormal condition that can cause an element or an item to fail . ), 可译为 “故障” 。 Error的定义 : 计算、观察或测量 值或条件 ,与真实、规定或理论上正确的 值或条件 之间的差异( Discrepancy between a computed, observed or measured value or condition and the true, specified, or theoretically correct value or condition. ),可译为 “错误” 。Error是能够导致系统出现Failure的 系统内部状态 。 Failure的定义 :当一个系统不能 执行所要求的功能时,即为Failure, 可译为 “失效” 。( Termination of the ability of an element or an item to perform a function as required. ) 三者关系分析 : 由于人类试图通过上述3个基本术语来覆盖所有现实中的失效场景,所以就有 “ Fault - Error - Failure” 。即, 故障发生了,会导致错误,错误有可能造成系统功能的减弱或丧失 。 当Fault是另外一个组件/系统的失效时,则有Failure (Fault) - Error - Failure ;当将Fault说成是某组件状态Error时,则有Error (Fault) - Error - Failure 。 事实上,这是一种递归循环的关系,递归关系要成立必须有一个明确的结束条件,这个条件就是要找出Root Cause,否则将无法完成一个失效分析。
There are some teminologies which are worthy of being discussed and distinguished. They are error tolerance, error resilience, error recovery, error concealment, error control, etc. First, have a look at some explanations about them from Vanguard Software Solutions: ------------------------------------------------------------------------------------------------------------------------------ http://www.vsofts.com/technology/error-resilience.html Streaming compressed video over communication channels that introduce errors, losses and excessive delay requires countermeasures to preserve the quality of the viewing experience. We refer to the ability of the system to minimize and to quickly recover from the damage as its robustness. VSofts achieves robustness through two separate and complementary techniques: error resilience and error concealment. Error resilience refers to mechanisms in the encoder that enhance the ability of the compressed bitstream to resist channel errors. Error resilience functionality in the encoder produces a bitstream that supports error recovery at the decoder. The following methods are used in VSofts encoders: Selective intra coding (including intra macroblocks update based on motion tracking, row based distribution, random distribution) Frame segmentation into slices Constrained texture prediction Flexible Macroblock Order (FMO) Error concealment refers to the actions taken by the decoder to analyze losses and conceal them in the displayed video by minimizing the visual artifacts. The concealment schemes can be spatial, temporal or combined. In spatial interpolation, the values of missing pixels are estimated from the surrounding pixels of the same frame, without using the temporal information. Temporal interpolation is based on the corresponding regions of the reference frames. If a motion vector is missing, it can be estimated based on the motion vectors of the surrounding regions. Combination schemes use an adaptive mechanism to choose the best concealment method for each lost macroblock. VSofts decoders use the following methods: Spatial texture interpolation Motion compensation Severe loss compensation ------------------------------------------------------------------------------------------------------------------------------ As far as I am concerned, these words have internal relations with each other. Error tolerance means the ability to tolerate errors, e.g., a circuit or HW/SW system inherently has the power of tolerating some errors that don't bring in too much degradation. Error resilience may have the meaning of error tolerance but it emphasizes somewhat ability to recover the error, i.e., the error recovery capacity. Error concealment means the actions to conceal errors. Error control refers to the countermeasures to help control or relieve the propagation/accumulation of errors. In sum, error control, error recovery and error concealment are some measures to make error tolerance and error resilience possible. I give the relations among them as follows(maybe not complete and not accurate): Error Rsilience = Error Tolerance + Error Recovery, Error Recovery = Error Control + Error Concealment. Error Rate, Error Significance and Error Accumulation are some general metrics that depict the severity of errors. SNR, PSNR and SSIM , etc., are some metrics used in signal/image/video quality evaluation.
Server Error in '/' Application. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Source Error: Line 192: break; Line 193: case 1: Line 194: rptBlogArticle.DataSource = DataAccess.Blog.Article.SearchArticleInContentByPage(sKey, PageSize, ref PageNo, out iTotalCount); Line 195: break; Line 196: case 2: Source File: d:\51xuewen.com\wwwroot\s.aspx.cs Line: 194 Stack Trace: System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392 System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33 System.Data.SqlClient.SqlDataReader.get_MetaData() +83 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable commandParameters) in F:\xuewen\Common\Data\SQLHelper.cs:604 Common.Data.SqlHelper.ExecuteDataset(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) in F:\xuewen\Common\Data\SQLHelper.cs:516 DataAccess.Blog.Article.SearchArticleInContentByPage(String sKey, Int32 PageSize, Int32 PageNo, Int32 TotalCount) +512 s.SearchBlogArticle(Int32 SubType, String sKey, Int32 PageNo) in d:\51xuewen.com\wwwroot\s.aspx.cs:194 s.Search(Int32 iSearchType, Int32 SubType, String sKey, Int32 PageNo) in d:\51xuewen.com\wwwroot\s.aspx.cs:77 s.Page_Load(Object sender, EventArgs e) in d:\51xuewen.com\wwwroot\s.aspx.cs:56 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
今天装ArcSWAT时,出现如下的错误: 网上找了一下,发现有所谓的解决方法: ========================================== 我把同一个*.msi文件copy到我的xp机器上就可以正常安装,看来这个错误和安装无关而是vista的问题乐。想到传说中的UAC,于是决定换个角色执行这个msi文件。可是在*.msi上点击右键菜单里居然没有Run as administrator一项,晕倒。 解决办法,新建一个批处理文件,setup.bat,编辑这个bat文件,写上如下命令: msiexec /i C:\VSA2Setup\Setup.msi 保存文件,然后再setup.bat上点击右键,就有Run as administrator项目了。 结果果然是UAC权限问题! ============================================== 按这个办法实验,但发现并没有解决问题,读软件的Readme,有如下信息: ====================== README for ArcSWAT 2.1.4 In order to install ArcSWAT for ArcGIS 9.2, you MUST have: 1.) Microsoft Windows XP or Windows 2000 2.) ArcGIS 9.2 with SP5 (build 1450) 3.) ArcGIS Spatial Analyst 9.2 4.) ArcGIS Dot Net support (usually found in: C:\ProgramFiles\ArcGIS\DotNet) 5.) Microsoft .Net Framework 2.0 6.) Adobe Acrobat Reader Version 8 or higher. Acrobat Reader may be downloaded for free from: http://www.adobe.com/products/acrobat/readstep2.html To install ArcSWAT: 1.) Uninstall any previous versions of ArcSWAT using Add or Remove Programs and choosing to Remove ArcSWAT. 2.) Add double-click on the setup.exe program. This will launch the ArcSWAT install program The ArcSWAT documentation and help files will be installed in the ArcSWAT\ArcSWATHelp\ folder in the install directory (e.g., C:\Program Files\ArcSWAT\). Refer to the ArcSWAT_Documentation.pdf document for important information on how to get started with ArcSWAT. Failure to have the above system configuration may result in failure to install ArcSWAT or errors in the ArcSWAT interface. =================================================== 关键是,我的系统是VISTA,上面的软件支持并不支持VISTA,晕,不知道这个版板的ArcSWAT如何破解?有待解决。