I'm trying to read an ps.xml file using grImport library (http://cran.r-project.org/web/packages/grImport/vignettes/import.pdf)
Here is my code:
require("gridBase")
require("grImport")
require("plotrix")
petal <- readPicture("petal.ps.xml")
And this is the error I'm getting:
Error in if (x == 0) 1 else if (x == 1) 0 else x :
missing value where TRUE/FALSE needed
Here is my session information
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 22 (Twenty Two)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] plotrix_3.5-12 grImport_0.9-0 XML_3.98-1.3 gridBase_0.4-7
The same code works on a Linux F20 with the following session information
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 20 (Heisenbug)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] plotrix_3.4-8 grImport_0.8-4 XML_3.96-1.1 gridBase_0.4-6
I struggled with the same problem and eventually solved it by regenerating the xml with PostScriptTrace on the other platform. When comparing the files generated on the two platforms, I found that the failing image file was missing attributes in the path/context/style element. I was able to manually add the missing attributes lineend, linemitre, and linejoin and load the images.
I suspect that those missing elements are the source of the problem in some versions of grImport.
Related
I want to retrieve the column (field) names for a SharePoint list via the Graph API. According to the docs, I can do this with an expand query in the request:
GET https://graph.microsoft.com/v1.0/sites/xxx/lists/yyy?expand=columns
On testing this with a small auto-generated list in my site (and after dropping the columns with columnGroup == "_Hidden"), I get the following:
[1] "Title" "ComplianceAssetId"
[3] "wikiCanvasId" "wikiPageId"
[5] "wikiTitle" "wikiContent"
[7] "wikiUser" "wikiTimestamp"
[9] "wikiDeleted" "wikiSession"
[11] "wikiSpare1" "wikiSpare2"
[13] "wikiSpare3" "wikiConversationId"
[15] "wikiMetadata" "wikiOrder"
[17] "ID" "Modified"
[19] "Created" "Author"
[21] "Editor" "_UIVersionString"
[23] "Attachments" "Edit"
[25] "LinkTitleNoMenu" "LinkTitle"
[27] "DocIcon" "ItemChildCount"
[29] "FolderChildCount" "_ComplianceFlags"
[31] "_ComplianceTag" "_ComplianceTagWrittenTime"
[33] "_ComplianceTagUserId" "_IsRecord"
[35] "AppAuthor" "AppEditor"
I then get the actual items for this list, with the request
GET https://graph.microsoft.com/v1.0/sites/xxx/lists/yyy/items?expand=fields
And when I check the items, they have the following field names under fields:
[1] "#odata.etag" "Title"
[3] "wikiTitle" "wikiOrder"
[5] "id" "ContentType"
[7] "Modified" "Created"
[9] "AuthorLookupId" "EditorLookupId"
[11] "_UIVersionString" "Attachments"
[13] "Edit" "LinkTitleNoMenu"
[15] "LinkTitle" "ItemChildCount"
[17] "FolderChildCount" "_ComplianceFlags"
[19] "_ComplianceTag" "_ComplianceTagWrittenTime"
[21] "_ComplianceTagUserId" "AppAuthorLookupId"
[23] "AppEditorLookupId" "wikiCanvasId"
[25] "wikiUser" "wikiTimestamp"
[27] "wikiDeleted" "wikiMetadata"
[29] "wikiPageId"
Most of the column names match up, but some do not. Shouldn't they be identical?
The list in question is "Canvas items for channel {some-id}#thread.skype", if it matters.
List/columns will contain contenttype columns, items/fields may not contain.
FieldValueSet
ColumnDefinition
I was inspecting the full list of IANA top level domains and came across some uncommon ones, but also some very uncommon ones, particularly 153 top level domains starting with XN:
XN--11B4C3D
XN--1CK2E1B
XN--1QQW23A
XN--2SCRJ9C
XN--30RR7Y
XN--3BST00M
What are the domains starting with XN?
Note
Here's some R code to extract the full list of XN domains for exploration:
library(tidyverse)
library(rvest)
domains <- read_html("http://data.iana.org/TLD/tlds-alpha-by-domain.txt") %>%
html_nodes("body") %>%
html_text %>%
str_split("\n") %>%
unlist %>%
as.data.frame %>%
`colnames<-`("tld")
# Starts with XN
domains %>%
filter(substr(tld, 1, 2) == "XN")
# tld
# 1 XN--11B4C3D
# 2 XN--1CK2E1B
# 3 XN--1QQW23A
# 4 XN--2SCRJ9C
# 5 XN--30RR7Y
# 6 XN--3BST00M
# 7 XN--3DS443G
# 8 XN--3E0B707E
# 9 XN--3HCRJ9C
# 10 XN--3OQ18VL8PN36A
# 11 XN--3PXU8K
# 12 XN--42C2D9A
# 13 XN--45BR5CYL
# --- ---
# 146 XN--WGBL6A
# 147 XN--XHQ521B
# 148 XN--XKC2AL3HYE2A
# 149 XN--XKC2DL3A5EE0H
# 150 XN--Y9A3AQ
# 151 XN--YFRO4I67O
# 152 XN--YGBI2AMMX
# 153 XN--ZFR164B
Full set
XN--11B4C3D XN--1CK2E1B XN--1QQW23A XN--2SCRJ9C XN--30RR7Y XN--3BST00M XN--3DS443G XN--3E0B707E XN--3HCRJ9C XN--3OQ18VL8PN36A XN--3PXU8K XN--42C2D9A XN--45BR5CYL XN--45BRJ9C XN--45Q11C XN--4GBRIM XN--54B7FTA0CC XN--55QW42G XN--55QX5D XN--5SU34J936BGSG XN--5TZM5G XN--6FRZ82G XN--6QQ986B3XL XN--80ADXHKS XN--80AO21A XN--80AQECDR1A XN--80ASEHDB XN--80ASWG XN--8Y0A063A XN--90A3AC XN--90AE XN--90AIS XN--9DBQ2A XN--9ET52U XN--9KRT00A XN--B4W605FERD XN--BCK1B9A5DRE4C XN--C1AVG XN--C2BR7G XN--CCK2B3B XN--CCKWCXETD XN--CG4BKI XN--CLCHC0EA0B2G2A9GCD XN--CZR694B XN--CZRS0T XN--CZRU2D XN--D1ACJ3B XN--D1ALF XN--E1A4C XN--ECKVDTC9D XN--EFVY88H XN--FCT429K XN--FHBEI XN--FIQ228C5HS XN--FIQ64B XN--FIQS8S XN--FIQZ9S XN--FJQ720A XN--FLW351E XN--FPCRJ9C3D XN--FZC2C9E2C XN--FZYS8D69UVGM XN--G2XX48C XN--GCKR3F0F XN--GECRJ9C XN--GK3AT1E XN--H2BREG3EVE XN--H2BRJ9C XN--H2BRJ9C8C XN--HXT814E XN--I1B6B1A6A2E XN--IMR513N XN--IO0A7I XN--J1AEF XN--J1AMH XN--J6W193G XN--JLQ480N2RG XN--JLQ61U9W7B XN--JVR189M XN--KCRX77D1X4A XN--KPRW13D XN--KPRY57D XN--KPUT3I XN--L1ACC XN--LGBBAT1AD8J XN--MGB9AWBF XN--MGBA3A3EJT XN--MGBA3A4F16A XN--MGBA7C0BBN0A XN--MGBAAKC7DVF XN--MGBAAM7A8H XN--MGBAB2BD XN--MGBAH1A3HJKRD XN--MGBAI9AZGQP6J XN--MGBAYH7GPA XN--MGBBH1A XN--MGBBH1A71E XN--MGBC0A9AZCG XN--MGBCA7DZDO XN--MGBCPQ6GPA1A XN--MGBERP4A5D4AR XN--MGBGU82A XN--MGBI4ECEXP XN--MGBPL2FH XN--MGBT3DHD XN--MGBTX2B XN--MGBX4CD0AB XN--MIX891F XN--MK1BU44C XN--MXTQ1M XN--NGBC5AZD XN--NGBE9E0A XN--NGBRX XN--NODE XN--NQV7F XN--NQV7FS00EMA XN--NYQY26A XN--O3CW4H XN--OGBPF8FL XN--OTU796D XN--P1ACF XN--P1AI XN--PGBS0DH XN--PSSY2U XN--Q7CE6A XN--Q9JYB4C XN--QCKA1PMC XN--QXA6A XN--QXAM XN--RHQV96G XN--ROVU88B XN--RVC1E0AM3E XN--S9BRJ9C XN--SES554G XN--T60B56A XN--TCKWE XN--TIQ49XQYJ XN--UNUP4Y XN--VERMGENSBERATER-CTB XN--VERMGENSBERATUNG-PWB XN--VHQUV XN--VUQ861B XN--W4R85EL8FHU5DNRA XN--W4RS40L XN--WGBH1C XN--WGBL6A XN--XHQ521B XN--XKC2AL3HYE2A XN--XKC2DL3A5EE0H XN--Y9A3AQ XN--YFRO4I67O XN--YGBI2AMMX XN--ZFR164B
They're punycode versions of non-ASCII URLs, e.g., for example
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object
domain: ଭାରତ
domain-ace: XN--3HCRJ9C
The domains are punycode:
Punycode is a simple and efficient transfer encoding syntax designed for use with Internationalized Domain Names in Applications. It uniquely and reversibly transforms a Unicode string into an ASCII string. ASCII characters in the Unicode string are represented literally, and non-ASCII characters are represented by ASCII characters that are allowed in host name labels (letters, digits, and hyphens).
Here are all 153 punycode domains after decoding:
[1] "कॉम" "セール" "佛山"
[4] "ಭಾರತ" "慈善" "集团"
[7] "在线" "한국" "ଭାରତ"
[10] "点看" "คอม" "ভাৰত"
[13] "ভারত" "八卦" "ישראל"
[16] "موقع" "বাংলা" "公益"
[19] "公司" "香格里拉" "网站"
[22] "移动" "我爱你" "москва"
[25] "қаз" "католик" "онлайн"
[28] "сайт" "联通" "срб"
[31] "бг" "бел" "קום"
[34] "时尚" "微博" "淡马锡"
[37] "ファッション" "орг" "नेट"
[40] "ストア" "アマゾン" "삼성"
[43] "சிங்கப்பூர்" "商标" "商店"
[46] "商城" "дети" "мкд"
[49] "ею" "ポイント" "新闻"
[52] "家電" "كوم" "中文网"
[55] "中信" "中国" "中國"
[58] "娱乐" "谷歌" "భారత్"
[61] "ලංකා" "電訊盈科" "购物"
[64] "クラウド" "ભારત" "通販"
[67] "भारतम्" "भारत" "भारोत"
[70] "网店" "संगठन" "餐厅"
[73] "网络" "ком" "укр"
[76] "香港" "亚马逊" "诺基亚"
[79] "食品" "飞利浦" "台湾"
[82] "台灣" "手机" "мон"
[85] "الجزائر" "عمان" "ارامكو"
[88] "ایران" "العليان" "اتصالات"
[91] "امارات" "بازار" "موريتانيا"
[94] "پاکستان" "الاردن" "بارت"
[97] "بھارت" "المغرب" "ابوظبي"
[100] "البحرين" "السعودية" "ڀارت"
[103] "كاثوليك" "سودان" "همراه"
[106] "عراق" "مليسيا" "澳門"
[109] "닷컴" "政府" "شبكة"
[112] "بيتك" "عرب" "გე"
[115] "机构" "组织机构" "健康"
[118] "ไทย" "سورية" "招聘"
[121] "рус" "рф" "تونس"
[124] "大拿" "ລາວ" "みんな"
[127] "グーグル" "ευ" "ελ"
[130] "世界" "書籍" "ഭാരതം"
[133] "ਭਾਰਤ" "网址" "닷넷"
[136] "コム" "天主教" "游戏"
[139] "VERMöGENSBERATER" "VERMöGENSBERATUNG" "企业"
[142] "信息" "嘉里大酒店" "嘉里"
[145] "مصر" "قطر" "广东"
[148] "இலங்கை" "இந்தியா" "հայ"
[151] "新加坡" "فلسطين" "政务"
And here is the R code used to decode the domains (but you can also use a punycode converter:
library(tidyverse)
library(rvest)
domains <- read_html("http://data.iana.org/TLD/tlds-alpha-by-domain.txt") %>%
html_nodes("body") %>%
html_text %>%
str_split("\n") %>%
unlist %>%
as.data.frame %>%
`colnames<-`("tld")
punycode_domains <- domains %>%
filter(substr(tld, 1, 2) == "XN") %>%
pull(tld)
# devtools::install_github("hrbrmstr/punycode") # Run once to install
library(punycode)
puny_encode(punycode_domains)
Using a Pkg.dir() Path with the following String-representation:
"\\\\SUBDNxyz.companynet.ch\\Service\$\\Programme\\"
I get an error whenever I run Pkg.build():
ERROR: syntax: invalid interpolation syntax: "$\"
ERROR: Build process failed.
Stacktrace:
[1] build!(::Array{String,1}, ::Set{Any}, ::String) at .\pkg\entry.jl:629
[2] build!(::Array{String,1}, ::Dict{Any,Any}, ::Set{Any}) at .\pkg\entry.jl:637
[3] build(::Array{String,1}) at .\pkg\entry.jl:652
[4] (::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{String,1}}})() at .\pkg\dir.jl:33
[5] cd(::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{String,1}}}, ::String) at .\file.jl:59
[6] withenv(::Base.Pkg.Dir.##2#5{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{String,1}},String}, ::Pair{String,String}, ::Vararg{Pair{String,String},N} where N) at .\env.jl:157
[7] #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{String,1}, ::Vararg{Array{String,1},N} where N) at .\pkg\dir.jl:32
[8] build(::String, ::Vararg{String,N} where N) at .\pkg\pkg.jl:254
How can I go around this error? Is there a way to represent $ differently than with "\$"?
julia> versioninfo()
Julia Version 0.6.3
Commit d55cadc350* (2018-05-28 20:20 UTC)
DEBUG build
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Xeon(R) CPU E5-2687W v3 # 3.10GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
EDIT:
The problem does not occur for all Packages, e.g. Pkg.build("Missings") works fine. Packages as "PyCall" or "DataFrames" cause that error. In addition, the representation of the String doesn't matter. I also tried raw"\\SUBDNxyz.companynet.ch\Service$\Programme" etc.
Lotus Notes Client crashed for one of the user few days back. After that we had him install the Lotus Notes twice but the issue continues. PLease find the NSD below. It shows ntdll.EtwEventEnabled at the top of the stack trace and Access Violation as the error message but I am not able to find the resolution.
############################################################
### FATAL THREAD 1/6 [ NLNOTES:146c:17e0]
### FP=0x0012ef28, PC=0x774e224d, SP=0x0012eed8, stksize=80
### EAX=0x00000000, EBX=0xfffffffc, ECX=0x00000000, EDX=0x00000004
### ESI=0x01af05f8, EDI=0x01af05fc, CS=0x0000001b, SS=0x00000023
### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010213
Exception code: c0000005 (ACCESS_VIOLATION)
############################################################
[ 1] 0x774e224d ntdll.EtwEventEnabled+458 (0,0,1af05f8,1af0428)
[ 2] 0x774e215c ntdll.EtwEventEnabled+217 (1af05f8,3,0,3b88fa0)
#[ 3] 0x10010b6d nstclientu._STCRegisterForStatusNotifications#8+93 (1af0428,701ca,3b9c880,12efa4)
#[ 4] 0x61632beb nnotesws._DeskIMRegisterForStatusNotifications#8+75 (1af0428,701ca,12f624,3b9c880)
#[ 5] 0x61801fce nnotesws.CLineView::CheckForSametimeColumn+254 (4,61b5c808,3ba9a80,0)
#[ 6] 0x612a7734 nnotesws.CLineView::ProcessMessage+7124 (3b9c880,701ca,73d,0)
#[ 7] 0x6129ea41 nnotesws.CViewSubprogram::SubMessageProc+497 (3ba9a80,73d,0,0)
#[ 8] 0x611848f4 nnotesws._MainWndProc#16+6932 (701ca,73d,0,0)
[ 9] 0x7762c4e7 USER32.gapfnScSendMessage+463 (61182de0,701ca,73d,0)
[10] 0x7762c5e7 USER32.gapfnScSendMessage+719 (0,61182de0,701ca,73d)
[11] 0x7762cc19 USER32.gapfnScSendMessage+2305 (61182de0,0,12f7a8,61221998)
[12] 0x7762cc70 USER32.DispatchMessageW+15 (12f788,612216d0,61180000,1)
#[13] 0x61221998 nnotesws._NEMMainLoop#4+712 (401000,0,1f224c,0)
#[14] 0x0040156d NLNOTES._WinMain#16+1389 (400000,0,1f224c,1)
#[15] 0x00401dfa NLNOTES._WinMainCRTStartup+308 (7ffd3000,12ffd4,7751377b,7ffd3000)
[16] 0x75cded6c kernel32.BaseThreadInitThunk+18 (7ffd3000,77764db1,0,0)
[17] 0x7751377b ntdll.RtlInitializeExceptionChain+239 (401cc6,7ffd3000,0,0)
[18] 0x7751374e ntdll.RtlInitializeExceptionChain+194 (401cc6,7ffd3000,0,78746341)
Generated Messages:
INFO (0): Using PSAPI DLL
INFO (0): Found 2 Notes processes, matched 2
INFO (0): Starting Debugger
INFO (0): Walk mem for process NLNOTES (146c)
INFO (0): Walk mem for process ntaskldr (1040)
INFO (0): terminated process [ NLNOTES:146c]
INFO (0): terminated process [ntaskldr:1040]
INFO (0): Deleting pid.nbf
WARNING (3): can't get process 342622208 status
WARNING (0): Debugger still attached to 2 processes
ERROR (4): can't attach to process [ ?:0004] - (5) Access is denied.
ERROR (0): exception(0): thread aec got system exception: ACCESS_VIOLATION (3221225477)
Thanks in Advance,
Himanshu
Based on the stack and the version number it appears to match SPR EZEL6XZ5S3. This was where Notes 6.5.3 & 6.5.5 would crash on Vista (clicking the mail icon on the welcome page).
At the time of the creation of the SPR neither versions were supported by Vista (may have changed in a later fixpack).
It was never investigated further in R6 and moved to R7/R8 where it was found to be not reproducible.
Based on this I would recommend to install the latest fixpack for that release. However R6 is end of life, so if that does not resolve the issue then the only other solution is to upgrade to a later supported release.
I see no other reports of the stack.
I get this error while loading a lib with dlopen():
Cannot dlopen load module '/usr/lib/pa20_64/libpthread.1' because it contains thread specific data.
I looked this up on google and the following export fixed it.
export LD_PRELOAD=/usr/lib/hpux64/libpthread.so.1
Can anybody tell me what exactly LD_PRELOAD does and why I have to preload this lib? Why does the linker not load it?
Compiling with -lpthread does not help either.
ENV: HP-UX hhtenb1 B.11.31 U ia64 3881169896 unlimited-user license
I can't tell you all the details on HPUX, but try linking your program with -lpthread - that may solve your problem.
As is, the library you're dlopen()ing seems to be digging around at run-time to find a version of libpthread. LD_PRELOAD just loads the specified library as if you'd dlopened them, but it does it before the program has a chance to start running.
Not sure of details, but a vague guess: some library you're using has called the pthread static data functions before your dlopen triggers a load of libpthread (but why would it try to load pthread then if the first library had it as a dependency? - not sure / maybe that indicates the former library statically linked some pthread content?).
We had this error below on hpux-11.31 IA64 running DB2-10.1.2 and doing the
"export LD_PRELOAD=/usr/lib/hpux64/libpthread.so.1"
fixed it.
DATA #2 : String, 49 bytes
/home/db2inst1/sqllib/lib64/icc/libgsk8iccs_64.so
CALLSTCK: (Static functions may not be resolved correctly, as they are resolved to the nearest symbol)
[0] 0xC000000032488900 pdOSSeLoggingCallback + 0x980
[1] 0xC000000010CC5A00 ossLog + 0x4E0
[2] 0xC000000010CC5610 ossLog + 0xF0
[3] 0xC00000003255E100 _Z27cryptDynamicLoadGSKitCryptoPc + 0x5F0
[4] 0xC00000003255F460 cryptContextRealInit + 0x200
[5] 0xC000000032561950 cryptContextCheckAndInit + 0x130
[6] 0xC000000032561B70 cryptDHInit + 0x120
[7] 0xC00000003384FBD0 sqlexSlcServerEncryptAccsec + 0x170
[8] 0xC00000003384F7B0 _Z33sqlexSlcServerEncryptAuthenticateP14db2UCinterfacelPj + 0xF0
[9] 0xC0000000321FB7D0 _Z20sqlexAppAuthenticateP14db2UCinterface + 0x1A60
[10] 0xC0000000321F8920 _Z18sqljrDrdaArConnectP14db2UCinterface + 0x140
[11] 0xC0000000321E96F0 _Z16sqleUCdrdaARinitP14db2UCconHandle + 0x230
[12] 0xC000000032238CD0 sqleUCappConnect + 0x13C0
[13] 0xC000000032647B20 _Z14CLI_sqlConnectP15CLI_CONNECTINFOP5sqlcaP19CLI_ERRORHEADERINFO + 0x32A0
[14] 0xC0000000325D5710 _Z11SQLConnect2P15CLI_CONNECTINFOPhsS1_sS1_sS1_sh + 0xA10
[15] 0xC0000000325ADB90 _Z17SQLDriverConnect2P15CLI_CONNECTINFOPvPhsS2_sPsthhP19CLI_ERRORHEADERINFO + 0x26E0
[16] 0xC0000000325AAC00 _Z11SQLConnect1P15CLI_CONNECTINFOPhsS1_sS1_s + 0xB60
[17] 0xC0000000325A8E30 SQLConnect + 0xC10
[18] 0x4000000000001EA0 main + 0x620
[19] 0xC00000000006E9B0 _DYNAMIC + 0xC00000000006E993