Symbol not supported in jxBrowser? - jxbrowser

I have created a Symbol in jxBrowser. Although it works in a javascript script inside jxBrowser (chromium), if the symbol is returned to java, it does not come as a JSValue, but as a Java::ComTeamdevJxbrowserChromium::am:0x7f4701b1. Symbol is a new type in ES06 and I presume that it should be implemented as a JSValue.
Thanks

JxBrowser JavaScript Java Bridge API doesn't support Symbol type. The list of supported JavaScript types you can find at https://jxbrowser.support.teamdev.com/support/solutions/articles/9000013062-calling-java-from-javascript

Related

Method name "Media_Content_Taxonomy::mctf_register_media_content_taxonomy" is not in camel caps format

I am using PHPCS for the first time with standard=WordPress. While sniffing a class file I get the following error:
Method name "Media_Content_Taxonomy::mctf_register_media_content_taxonomy" is not in camel caps format.
I Googled but could not find an exact work around for this.
I tried by changing the method name to (may be wild guesses!)
Mctf_Register_Media_Content_Taxonomy
and
MctfRegisterMediaContentTaxonomy
but could not get rid of the error. I don't know how to fix this.
The WordPress Coding Standards use a naming convention of class names with underscores, so you appear to be running PHP_CodeSniffer without using the WordPress standard.
Try running phpcs -i to check it (and the sub-standards) is installed.

Does server.railo exist on a Lucee instance or not?

I have this code:
<cfdump eval=server>
And it outputs top-level keys for coldfusion, java, lucee, os, separator, servlet. Note that railo is not listed there.
However if I do this:
<cfdump eval=server.railo>
It then outputs the usual struct one might expect when running a Railo server (as opposed to a Lucee server).
What's up with that?
see: https://groups.google.com/d/msg/lucee/1asgCDwC_tE/-gtE06lkjuEJ
"server.railo" is supported as an alias for "server.lucee", we did this to make sure code like the following still work
if(server.railo.version>"4.0.0.000");
We saw this as an hidden feature for backward compatibility, because of that it is not shown with the dump or structKeyList, but structKeyExists should also return false, we will change this for the next patch release...
best use "server.coldfusion.productName" instead.

Visual FoxPro 9.0 report show unicode

I am using Visual Foxpro 9, I want to print Unicode chars in report (frx).
There are some ways to extend report listener to show unicode. I need the code to extend/show reportListner to show unicode.
I've never had to work with Unicode within VFP either, or spent any time working with Reports, but the Help for the Render method of the ReportListener does mention Unicode:
cContentsToBeRendered
Indicates the text to be rendered for Expression (Field) and Label layout elements.
For Picture layout elements sourced from a file, cContentsToBeRendered contains the filename.
When specifying a filename for an image, ReportListener provides cContentsToBeRendered
as a DBCS string, which is the standard format for strings in Visual FoxPro.
However, when indicating text to be rendered, ReportListener provides
cContentsToBeRendered as a Unicode string, appropriately translated to the correct
locale using any regional script information associated with this layout control in
its report definition file (frx) record.
If your derived class sends the text value through some additional processing, such as
storage in a table, you can use the STRCONV() function, and its optional regional
script parameter, to convert the string to DBCS first. For more information, see
STRCONV( ) Function.
Although I could be incorrect, but I believe VFP does NOT support UniCode and only works with the base ASCII character set. But then again, I've never needed to use Unicode either and have used FoxPro since the beginning of its lifetime.
I would imagine Rick Strahl's article Using Unicode in Visual FoxPro
Web and Desktop Applications would be fairly definitive on the topic.

Is unparsed content supported in nVelocity

When reading the VTL reference for Velocity 1.7 at the bottom of the doc there was a reference to Unparsed content.
Unparsed content is rendered at runtime, but is not parsed or interpreted.
Example:
#[[
This has invalid syntax that would normally need "poor man's escaping" like:
#define()
${blah
]]#
I'm simply wondering if this is supported in nVelocity but not documented.
It's not implemented. Which means that you get to do it :-)
Create an issue, then fork the repository and implement it, then send the team a pull request.
It is supported. But I guess not the multi-line statement.
For example, this below is supported:
#[[ #define() ${blah ]]#
This is not:
#[[
#define() ${blah
]]#

create Plist in .net from list of objects

I am working on an iPad app that is fed data via web service returning JSON. Watching some iTunes U episodes, it looks like sending back Plist would save me a ton of time and speed up my app quite a bit on the parsing side of things.
Does anyone know of a .net library that converts objects into this Plist to return instead?
EDIT (this is my very limited understanding of this topic):
An Plist is a Property List that iOS can use to easily encode and/or parse data. It is very similar to JSON except parsing takes a fraction of the time and can be done in 1 line of code. If your server uses WebObjects then encoding can also be done in 1 line of code, I am using IIS so I need a solution for this if one exists before I write my own.
You can see the videos here:
http://developer.apple.com/videos/wwdc/2010/
In particular watch Session 117 - Building a Server-Driven User Experience
You may checkout this project. Sample usage:
object value = ...
string plist = Plist.PlistDocument.CreateDocument(value);
The only requirement is to decorate your object with [Serializable] attribute.
If you're using WebObjects, the appserver from apple, there's a java mirror class of NSPropertyListSerialization that does all of this for you; you can pass it NSArray's, NSDictionaries, etc and it will just work. Not sure if that's what you're talking about; confused as to the WebObjects in your question. HTH's.

Resources