I have a problem when running a project on XE2 it sends me a "Session disconnected" error, this happens when I try to run the project on 64 bit. Does anyone know how to fix it?
Running the project without debugging runs it normally, but running with debugging is when it shows the error
Tried to install the IDE, update the IDE and it does not work
Error Message
[20372E20]{dbkdebugide160.bpl} Debug.TDebugKernel.msgBox (Line 5902, "Debug.pas" + 30) + $0
[04216EB3]{bordbk160.dll} Unknown function at DllUnregisterServer + $5037
[0428B8A8]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $619D0
[0428B927]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $61A4F
[0428C36D]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $62495
[0428C5BD]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $626E5
[042BC3E3]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $9250B
[04229D72]{bordbk160.dll} Unknown function at DllUnregisterServer + $17EF6
[042BCEE2]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $9300A
[042BCBFB]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $92D23
[042BCAD6]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $92BFE
[042CF92B]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $A5A53
[042BC19A]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $922C2
[0428C7FC]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $62924
[0428CCCE]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $62DF6
[042ADA44]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $83B6C
[04235E88]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $BFB0
[042CF92B]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $A5A53
[042C215A]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $98282
[042C2AB4]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $98BDC
[042C2043]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $9816B
[042C19A9]{bordbk160.dll} Unknown function at #isDbkLoggingOn$qv + $97AD1
[04217CAE]{bordbk160.dll} Unknown function at DllUnregisterServer + $5E32
[20371B1B]{dbkdebugide160.bpl} Debug.TDebugKernel.CreateProcess (Line 5427, "Debug.pas" + 17) + $63
[2037F6AD]{dbkdebugide160.bpl} Debug.TDebugger.DoCreateProcess (Line 11628, "Debug.pas" + 74) + $3C
[2037F820]{dbkdebugide160.bpl} Debug.TDebugger.CreateProcess (Line 11655, "Debug.pas" + 6) + $2F
[20380373]{dbkdebugide160.bpl} Debug.TDebugger.Run (Line 12064, "Debug.pas" + 23) + $33
[20380DEA]{dbkdebugide160.bpl} Debug.TDebugger.Run (Line 12389, "Debug.pas" + 129) + $43
[2037AFE6]{dbkdebugide160.bpl} Debug.TDebugger.Run (Line 10045, "Debug.pas" + 0) + $2
[2078C66D]{coreide160.bpl} DebuggerMgr.TDebuggerMgr.Run (Line 1913, "DebuggerMgr.pas" + 3) + $B
[500B5B9B]{rtl160.bpl } System.Classes.TBasicAction.Execute (Line 13372, "System.Classes.pas" + 3) + $7
[5031B86D]{vcl160.bpl } Vcl.ActnList.TContainedAction.Execute (Line 448, "Vcl.ActnList.pas" + 8) + $2C
[5031C658]{vcl160.bpl } Vcl.ActnList.TCustomAction.Execute (Line 1094, "Vcl.ActnList.pas" + 7) + $8
[500B5A5F]{rtl160.bpl } System.Classes.TBasicActionLink.Execute (Line 13301, "System.Classes.pas" + 2) + $7
[21714E79]{vclactnband160.bpl} Vcl.ActnMenus.TCustomActionMenuBar.ExecAction (Line 1076, "Vcl.ActnMenus.pas" + 6) + $D
[217166F0]{vclactnband160.bpl} Vcl.ActnMenus.TCustomActionMenuBar.TrackMenu (Line 1842, "Vcl.ActnMenus.pas" + 19) + $15
[2171A062]{vclactnband160.bpl} Vcl.ActnMenus.TCustomActionMainMenuBar.TrackMenu (Line 3636, "Vcl.ActnMenus.pas" + 5) + $3
[21714A39]{vclactnband160.bpl} Vcl.ActnMenus.TCustomActionMenuBar.CMItemClicked (Line 955, "Vcl.ActnMenus.pas" + 3) + $4
[50332995]{vcl160.bpl } Vcl.Controls.TControl.WndProc (Line 7204, "Vcl.Controls.pas" + 91) + $6
[503372F3]{vcl160.bpl } Vcl.Controls.TWinControl.WndProc (Line 9976, "Vcl.Controls.pas" + 152) + $6
[21716806]{vclactnband160.bpl} Vcl.ActnMenus.TCustomActionMenuBar.WndProc (Line 1881, "Vcl.ActnMenus.pas" + 25) + $4
[50336948]{vcl160.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 9689, "Vcl.Controls.pas" + 3) + $6
[500B6890]{rtl160.bpl } System.Classes.StdWndProc (Line 13878, "System.Classes.pas" + 8) + $0
[50453213]{vcl160.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 10164, "Vcl.Forms.pas" + 23) + $1
[50453256]{vcl160.bpl } Vcl.Forms.TApplication.HandleMessage (Line 10194, "Vcl.Forms.pas" + 1) + $4
[50453595]{vcl160.bpl } Vcl.Forms.TApplication.Run (Line 10332, "Vcl.Forms.pas" + 26) + $3
Related
the error is:
Compilation error. Line 13: 'range' cannot be used as a variable or
function name.
//#version=5
indicator('My Script')
// 计算振幅
range = high - low
// 定义信息框显示的内容
info = "开盘价: " + tostring(open) + "\n"
+ "最高价: " + tostring(high) + "\n"
+ "最低价: " + tostring(low) + "\n"
+ "振幅: " + tostring(range) + "\n"
+ "成交量: " + tostring(volume)
// 定义当鼠标悬停在当前k线时显示信息框
bgcolor(not nz(bgcolor[1]) and barstate.ishovered, color.new(color.red, 50))
// 当鼠标悬停在当前k线时,显示信息框
label.new(bar_index, high, text=info, xloc=xloc.bar_time, yloc=yloc.abovebar
Your code is full of error.
For the range problem, just change :
range = high - low
To :
myrange = high - low
I'm trying to find a fit with a custom equation, but I keep getting errors and don't know why. The custom equation is really big. I'm using what I found here.
This is the code (sorry about the length of the custom equation):
myfittype = fittype('a + (b*2*y) + (c*2*x+dsqrt(6)(2*xy)) + (esqrt(3)*(2*x^2+2*y^2-1)) + (fsqrt(6)(x^2-y^2)) + (gsqrt(8)(3*x^2*y-y^3)) + (hsqrt(8)(3*x^2*y+3*y^3-2*y)) + (ipsqrt(8)(x^3+3*x*y^2-2*x)) + (jpsqrt(8)(x^3-3*xy^2)) + (ksqrt(10)*(4*x^3*y-4*xy^3)+lsqrt(10)*(8*x^3*y+8*x*y^3-6*xy)) + (msqrt(5)*(6*x^4+12*x^2*y^2+6*y^4-6*x^2-6*y^2+1)) + (nsqrt(10)(4*x^4+4*x^2*y^2-3*x^2-4*x^2*y^2-4*y^4+3*y^2)) + (osqrt(10)(x^4-6*x^2*y^2+y^4)) + (psqrt(12)(5*x^4*y-10*x^2*y^3+y^5)) + (qsqrt(12)(15*x^4*y-12*x^2*y-5*y^5+4*y^3+10*x^2*y^3)) + (rsqrt(12)(10*x^4*y+20*x^2*y^3+10*y^5-12*x^2*y-12*y^3+3*y)) + (ssqrt(12)(10*x^5+20*x^3*y^2+10*x*y^4-12*x^3-12*x*y^2+3*x)) + (tsqrt(12)(5*x^5-10*x^3*y^2-4*x^3-15*x*y^4+12*xy^2)) + (usqrt(12)*(x^5-10*x^3*y^2+5*x*y^4))',... 'independent',{'x'},'dependent',{'y'},...
'coefficients',{'a','b','c','d','e','f','g','h','ip','jp','k','l','m','n','o','p','q','r','s','t','u'})
Here is the code formatted with line breaks (...) so that you can read it:
myfittype = fittype('a + (b*2*y) + (c*2*x+d*sqrt(6)*(2*x*y)) + ...
(e*sqrt(3)*(2*x^2+2*y^2-1)) + (f*sqrt(6)*(x^2-y^2)) + ...
(g*sqrt(8)*(3*x^2*y-y^3)) + (h*sqrt(8)*(3*x^2*y+3*y^3-2*y)) + ...
(ip*sqrt(8)*(x^3+3*x*y^2-2*x)) + (jp*sqrt(8)*(x^3-3*x*y^2)) + ...
(k*sqrt(10)*(4*x^3*y-4*x*y^3)+l*sqrt(10)*(8*x^3*y+8*x*y^3-6*x*y)) + ...
(m*sqrt(5)*(6*x^4+12*x^2*y^2+6*y^4-6*x^2-6*y^2+1)) + ...
(n*sqrt(10)*(4*x^4+4*x^2*y^2-3*x^2-4*x^2*y^2-4*y^4+3*y^2)) + ...
(o*sqrt(10)*(x^4-6*x^2*y^2+y^4)) + (p*sqrt(12)*(5*x^4*y-10*x^2*y^3+y^5)) + ...
(q*sqrt(12)*(15*x^4*y-12*x^2*y-5*y^5+4*y^3+10*x^2*y^3)) + ...
(r*sqrt(12)*(10*x^4*y+20*x^2*y^3+10*y^5-12*x^2*y-12*y^3+3*y)) + ...
(s*sqrt(12)*(10*x^5+20*x^3*y^2+10*x*y^4-12*x^3-12*x*y^2+3*x)) + ...
(t*sqrt(12)*(5*x^5-10*x^3*y^2-4*x^3-15*x*y^4+12*x*y^2)) + ...
(u*sqrt(12)*(x^5-10*x^3*y^2+5*x*y^4))', ...
'independent',{'x'},'dependent',{'y'}, ...
'coefficients', ...
{'a','b','c','d','e','f','g','h','ip','jp','k','l','m','n','o','p','q','r','s','t','u'})
The error says this expression is not a valid matlab expression
Hope you can help me, thanks.
I run your code :
The problem of your code is that
Coefficient d does not appear in the equation expression.
I am trying to get 25 rows for each key like this:
import spark.implicits._
val record = file.map(rec=>{
var row = rec.date + "," + rec.registrar + "," + rec.agency + "," + rec.state + "," +
rec.district + "," + rec.subDistrict + "," + rec.pinCode + "," + rec.gender + "," +
rec.age + "," + rec.aadharGenerated + "," + rec.rejected + "," + rec.mobileNo + "," +
rec.email
(rec.state,row)
}).groupByKey(_._2).mapGroups((a,b)=>(a,b.toSet.take(25))).collect()
record.foreach(println)
I have tried the other solution but those solutions are not working.
Error stack trace:
Exception in thread "main" java.lang.UnsupportedOperationException: No Encoder found for scala.collection.immutable.Set[(String, String)]
- field (class: "scala.collection.immutable.Set", name: "_2")
- root class: "scala.Tuple2"
at org.apache.spark.sql.catalyst.ScalaReflection$.org$apache$spark$sql$catalyst$ScalaReflection$$serializerFor(ScalaReflection.scala:598)
at org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$9.apply(ScalaReflection.scala:592)
at org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$9.apply(ScalaReflection.scala:583)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at scala.collection.immutable.List.flatMap(List.scala:355)
at org.apache.spark.sql.catalyst.ScalaReflection$.org$apache$spark$sql$catalyst$ScalaReflection$$serializerFor(ScalaReflection.scala:583)
at org.apache.spark.sql.catalyst.ScalaReflection$.serializerFor(ScalaReflection.scala:425)
at org.apache.spark.sql.catalyst.encoders.ExpressionEncoder$.apply(ExpressionEncoder.scala:61)
at org.apache.spark.sql.Encoders$.product(Encoders.scala:274)
at org.apache.spark.sql.SQLImplicits.newProductEncoder(SQLImplicits.scala:47)
at KPI1.Top25$.main(Top25.scala:20)
at KPI1.Top25.main(Top25.scala)
I have integrated SQLite.swift framework in one of my swift project and everything was working fine until i added the below query. After adding the below query project is taking too long to build. I waited for 30 mins but still project is n't complied.
do
{
let stmt = try DB!.prepare ("SELECT e." + ENDPOINT_ID + " as _id, lk." + HUB_ID + ", e." + X_ENDPOINT_ID + ", e." + ENDPOINT_DESC + ", e." + ENDPOINT_TYPE_ID +", et." + ENDPOINT_STATUS_MIN + ", et." + ENDPOINT_STATUS_MAX + ", e." + ENDPOINT_STATUS + " FROM " + TABLE_ENDPOINT + " as e INNER JOIN " + TABLE_ENDPOINT_TYPE + " as et " +
" ON e." + ENDPOINT_TYPE_ID + " = et." + ENDPOINT_TYPE_ID +
" INNER JOIN " + TABLE_LINKING + " as lk " +
" ON e." + ENDPOINT_ID + " = lk." + ENDPOINT_ID +
" INNER JOIN " + TABLE_NODE + " as n " +
" ON lk." + NODE_ID + " = n." + NODE_ID +
" INNER JOIN " + TABLE_NODE_TYPE + " as nt " +
" ON n." + NODE_TYPE_ID + " = nt." + NODE_TYPE_ID +
" WHERE lk." + SECTION_ID + "=" + section_Id +
" AND nt." + NODE_CATEGORY + " = "S" " +
" ORDER BY e." + ENDPOINT_ID + " ASC")
let arr = Array(try stmt.run)
print("\(arr)")
return arr
} catch {
print("failed: \(error)")
return []
}
If i comment the above code and try to run the project it takes hardly a minute to run the project but after adding this code, it's taking hell lot of time. I have waited for almost 30 mins but still the project is not compiled nor it's throwing any error.
Thanks in advance for help
The Swift compiler has difficulties to deal with big string literals. See also this question for further hints.
I would recommend to split up the sql and to build a string variable in small steps:
var sql = "SELECT e." + ENDPOINT_ID
sql = sql + HUB_ID + ", e."
sql = sql + X_ENDPOINT_ID + ", e."
...
let stmt = try DB!.prepare(sql)
let query = (TABLE_ENDPOINT.select(TABLE_ENDPOINT[ENDPOINT_ID], TABLE_LINKING[HUB_ID], TABLE_ENDPOINT[ETCT_ENDPOINT_ID], TABLE_ENDPOINT[ENDPOINT_DESC], TABLE_ENDPOINT[ENDPOINT_TYPE_ID], TABLE_ENDPOINT_TYPE[ENDPOINT_STATUS_MIN], TABLE_ENDPOINT_TYPE[ENDPOINT_STATUS_MAX], TABLE_ENDPOINT[ENDPOINT_STATUS]).join(TABLE_ENDPOINT_TYPE, on: TABLE_ENDPOINT[ENDPOINT_TYPE_ID] == TABLE_ENDPOINT_TYPE[ENDPOINT_TYPE_ID]).join(TABLE_LINKING, on: TABLE_ENDPOINT[ENDPOINT_ID] == TABLE_LINKING[ENDPOINT_ID]).join(TABLE_NODE, on: TABLE_LINKING[NODE_ID] == TABLE_NODE[NODE_ID]).join(TABLE_NODE_TYPE, on: TABLE_NODE[NODE_TYPE_ID] == TABLE_NODE_TYPE[NODE_TYPE_ID])
.filter(TABLE_LINKING[SECTION_ID] == section_Id && TABLE_NODE_TYPE[NODE_CATEGORY] == "S")
.order(TABLE_ENDPOINT[ENDPOINT_ID].asc))
let arr = Array(try DB!.prepare(query))
I have already asked the same question in the Matlab user community.
I have the following symbolic expression:
(3*s11)/2 + (3*s12)/2 + (3*s13)/2 + (3*s14)/2 + (3*s15)/2 + (s11*s12)/2 + (s11*s13)/2 + (s11*s14)/2 + (s12*s13)/2 + (s11*s15)/2 + (s12*s14)/2 + (s12*s15)/2 + (s13*s14)/2 + (s13*s15)/2 + (s14*s15)/2 + s11^2/4 + s12^2/4 + s13^2/4 + s14^2/4 + s15^2/4 + 9/4
It is stored as a symbolic expression variable. I would like to enforce the rule sij^2 = 1 i.e. the variables can be either -1 or +1. If I enforce the rule in the expression mentioned above, the expression will be as follows.
(3*s11)/2 + (3*s12)/2 + (3*s13)/2 + (3*s14)/2 + (3*s15)/2 + (s11*s12)/2 + (s11*s13)/2 + (s11*s14)/2 + (s12*s13)/2 + (s11*s15)/2 + (s12*s14)/2 + (s12*s15)/2 + (s13*s14)/2 + (s13*s15)/2 + (s14*s15)/2 + 1/4 + 1/4 + 1/4 + 1/4 + 1/4 + 9/4
How can I do this in Matlab?
Set assumptions e.g. assume(s14^2==1), then use simplify.