i am new in web design using reactjs, i have question about code that make image like this
<path fill="#06C755" d="M106.214,4.621h-7.829c-1.201,0-2.175,0.972-2.175,2.171v28.894l-22.288-30.1 c-0.052-0.077-0.11-0.15-0.172-0.219c-0.004-0.006-0.009-0.011-0.014-0.016c-0.041-0.045-0.083-0.09-0.127-0.133 c-0.014-0.013-0.028-0.024-0.041-0.036c-0.038-0.034-0.076-0.067-0.116-0.098c-0.018-0.015-0.038-0.029-0.057-0.043 c-0.036-0.027-0.075-0.053-0.112-0.078c-0.022-0.013-0.044-0.026-0.066-0.04C73.178,4.901,73.14,4.879,73.1,4.859 c-0.023-0.011-0.045-0.022-0.069-0.033c-0.041-0.019-0.082-0.037-0.125-0.053c-0.022-0.01-0.045-0.018-0.068-0.027 c-0.043-0.014-0.086-0.029-0.13-0.04c-0.024-0.008-0.05-0.014-0.075-0.02c-0.042-0.01-0.084-0.02-0.127-0.028 c-0.029-0.005-0.06-0.01-0.09-0.014c-0.039-0.005-0.078-0.01-0.116-0.013c-0.037-0.004-0.075-0.005-0.113-0.006 c-0.025-0.001-0.049-0.004-0.074-0.004h-7.828c-1.202,0-2.175,0.972-2.175,2.171v48.635c0,1.199,0.973,2.171,2.175,2.171h7.828 c1.202,0,2.176-0.972,2.176-2.171V26.542l22.316,30.137c0.153,0.217,0.34,0.396,0.549,0.537c0.008,0.006,0.017,0.011,0.026,0.017 c0.043,0.03,0.087,0.055,0.133,0.081c0.02,0.012,0.041,0.023,0.062,0.034c0.033,0.019,0.068,0.034,0.103,0.05 c0.035,0.016,0.069,0.032,0.105,0.045c0.023,0.009,0.045,0.017,0.067,0.025c0.048,0.017,0.097,0.032,0.147,0.047 c0.011,0.003,0.021,0.005,0.031,0.008c0.178,0.048,0.365,0.075,0.557,0.075h7.829c1.2,0,2.175-0.972,2.175-2.171V6.792 C108.389,5.593,107.414,4.621,106.214,4.621"></path>
and this
<polygon fill="#231F1F" points="207.065,113.178 207.065,90.966 211.022,90.966 211.022,102.62 216.199,96.901 220.425,96.901 214.127,103.869 221.216,113.178 216.685,113.178 211.022,105.787 211.022,113.178 "/>
this code that show image shaped letter.
and my question is what tools that they used?
I have 50 MPGW's, i want to export specific/individual gateway through soma script.I tried few scripta but didnt worked out. I tried domain export it is working but specific objecf export is not working.Please help me on it
It is fairly simple, really, you just need to point out the objects you want to export, e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:request xmlns:dp="http://www.datapower.com/schemas/management">
<dp:do-export format="ZIP" all-files="false">
<dp:user-comment>This is a SOMA Export...</dp:user-comment>
<dp:object class="MultiProtocolGateway" name="MPGW_1" ref-objects="true" ref-files="true"/>
<dp:object class="MultiProtocolGateway" name="MPGW_2" ref-objects="true" ref-files="true"/>
</dp:do-export>
</dp:request>
</env:Body>
</env:Envelope>
Thanks in advance.
I try to use the "dubbo" to invoke a method which is override.But the console tell me that "Caused by: com.caucho.hessian.io.HessianProtocolException: '' is an unknown code".
Search Engines told me that error may cased by "hessian" is not support override method default.So i try to set this property ,"isOverloadEnabled".But i can not find the way to set. I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.
That's xml content :
<dubbo:protocol name="hessian" port="30002" threads="200" />
<dubbo:service ref="ossServiceImpl" interface="com.fragment.dede.apis.OssService" protocol="hessian"/>
the hessian's version is 4.0.7 ,the dubbo's version is 2.5.3 ,JDK1.8 and SPRING4
You have to use HessianProxyFactory. Then call:
factory.setOverloadEnabled(true);
please say something useful
<dubbo:protocol name="hessian" port="${dubbo.protocols.hessian.port:20882}">
<dubbo:parameter key="timeout" value="10000000"/>
<dubbo:parameter key="hessian.overload.method" value="true"/>
</dubbo:protocol>
I am implementing an application on R and now I'm trying to use REST protocol to communicate with an external application interface. It allows the app because this interaction has indicated in its documentation. I'm using a library called RCurl. Specifically I am using the function httpPUT. I have no idea about I'm doing wrong, but there is no change in the parameter that I want to modify it. My function is:
httpput_power<-function(DF_DEVICE_IDE_value){
require(XML)
require(RCurl)
power<-""
host<-"http://localhost:3171/devices/"
id_devices<-DF_DEVICE_IDE_value[1,1]
reader<-"/reader/parameter/RF_READ_POWER"
half_url<-paste(host,id_devices,"")
full_url<-paste(half_url,reader,"")
url_reader<-gsub(" ","", full_url , fixed=TRUE)
request="14.5"
httpPUT(url_reader, request)
}
Does anyone know a library for REST in R?. I not sure if RCurl is the most suited to do this task.
then there is an example in the documentation for the application to do a PUT with REST:
PUT http://host_address:3161/devices/{device-id}/reader/parameter/
{PARAM_NAME}
The value of the parameter.
Example: 30.5
Example:
<result>
<class>
com.keonn.impl.protocol.DefaultISO18000_6CParameters$Filter
</class>
<noFilter>false</noFilter>
<active>false</active>
<truncate>UNSPECIFIED</truncate>
<mask>
<bank>EPC</bank>
<pointer>32</pointer>
<maskLength>2</maskLength>
<mask>FF00</mask>
</mask>
</result>
I'm sure the URL is generated correctly, and in my case the parameter is RF_READ_POWER
I used a program called Fritzing to draw some basic Arduino schematics, and then export the output as a SVG. This works just as expected, but then I noticed that the SVG output only looks okay in some browsers and only okay in some versions of Firefox.
Since Fritzing is a open source app I figured that I could look into the code (and maybe help out a little).
But now over to the question, what is a correct SVG supposed to look like? What verifier over at W3C can I use to check the file?
I tried to use the verifiers found on this page: http://validator.w3.org/dev/tests/
But they all complained a lot, especially about the SVG version. The verifiers seem to like version 1.0 and 1.1, but when I look at the top of this file seems to be using version 1.2?
This is the top three lines from the problematic file (reformatted for readability):
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!-- Created with Fritzing (http://www.fritzing.org/) -->
<svg width="3.50927in"
x="0in"
version="1.2"
y="0in"
xmlns="http://www.w3.org/2000/svg"
height="2.81713in"
viewBox="0 0 252.667 202.833"
baseProfile="tiny"
xmlns:svg="http://www.w3.org/2000/svg">
Is there a specific SVG 1.2 verifier I can use?
Or shall I try to verify the SVG as if it was a classical XML file?
(As a side note, Fritzing seems to use Qt, so if there some QTest I can use it may be useful.)
You can use e.g http://validator.nu. Since your file is standalone, select xml parsing, paste the RNG url in the schema textfield (the schema url you're looking can be found in the relevant specification, in this case SVG 1.2 Tiny: http://www.w3.org/TR/SVGTiny12/relaxng/Tiny-1.2.rng ).
Even your three line snippet isn't valid SVG 1.2 Tiny content (x and y attributes are not allowed on the <svg> element in Tiny). You should add a link to your file somewhere, otherwise it's hard to say what it should look like.
There is a python utility in terminal svgcheck, which claims to target version 1.2, as defined in draft-7996-bis. A promising utility, IMHO.
SVG Checking Procedure.
pip install svgcheck
svgcheck ~/path/to/mysvgfile.svg
The svg file with proper standards will give something like:
$ svgcheck alert-circle.svg
Parsing file alert-circle.svg
INFO: File conforms to SVG requirements.
Make sure you have pip installed and python configured properly
For the subset SVG Tiny 1.2 Portable/Secure (SVG P/S), used for example in Brand Indicators for Message Identification (BIMI), see Using the RNC Schema to Validate BIMI SVG Images. It shows how to perform Relax NG Compact (RNC) XML schema validation on the command line.
pip3 install jingtrang
wget 'https://bimigroup.org/resources/SVG_PS-latest.rnc.txt'
pyjing -c SVG_PS-latest.rnc.txt my-image.svg
For my use-case, a PNG logotype converted to SVG Tiny 1.2 using png2svg, this was the output.
my-image.svg:1:159: error: value of attribute "baseProfile" is invalid; must be equal to "tiny-ps"
my-image.svg:1:174: error: element "g" not allowed yet; missing required element "title"
Errors were easily fixed by editing the baseProfile value and adding <title>A very nice image title</title>.