Can I use the cross function ( https://github.com/OpenRefine/OpenRefine/wiki/GREL-Other-Functions#crosscell-c-string-projectname-string-columnname ) with jython language in openrefine (googlerefine 2.5)
if you download the new version (2.6), you can do it directly by GUI (in column menu --> edit column --> add column(s) from other projects)
Related
I have got a document that is going to show double column document. In HTML I am using value attribute of the li element in an ordered list (ol) to control the value counter of. In a two-column document the right column will follow the counter of the left column. It works in HTML, but when converting to word using docx4j, it is not respecting the overridden value attribute.
Looks like you'll need to enhance at https://github.com/plutext/docx4j-ImportXHTML/blob/master/src/main/java/org/docx4j/convert/in/xhtml/ListHelper.java#L603
There is no support for this in docx4j. There is a pull request for this. When the pull request is merged, then this answer will be updated accordingly.
Meanwhile, in order to use this feature, use the maven repository https://jitpack.io and declare the dependency ( in gradle):
implementation("com.github.naimdjon:docx4j-ImportXHTML:8.2.1-li-SNAPSHOT")
in maven:
<dependency>
<groupId>com.github.naimdjon</groupId>
<artifactId>docx4j-ImportXHTML</artifactId>
<version>8.2.1-li-SNAPSHOT</version>
</dependency>
Is there any shortcut/setting/plugin available in intellij where I can create test data structure with some default values ?
e.g.
Map<String,String> stringMap = new HashMap();
stringMap.put("1","A")
stringMap.put("2","B")
stringMap.put("3","C")
I dont want to type all of the above as I want to test very quick with any values.
You can use the 'Live Templates' functionality, for instance. A guide on how to create such a template can be found here.
Use live templates to insert common constructs into your code, such as
loops, conditions, various declarations, or print statements.
To expand a code snippet, type the corresponding template abbreviation
and press Tab
In the screenshot below, I created a custom template called smap in the 'other' template group, added your code to it and selected the language (Java) that this template can be applied to.
Once in the editor, I can type smap and a pop-up will appear suggesting me to use the existing template to replace the abbreviation with code. Hitting Tab or Enter will perform the replacement.
I am attempting to create a link in an APEX (Oracle) chart which will open an interactive report page by using the "Link Builder -Target" wizard.
Link Builder -Target Dialog]1
Unfortunately the link is passing the column name (bob) rather than it's value:
https://xxxxxxxxx.xxxx.xxx:xxxx/ords/f?p=100:51:19910173095277::NO:RP,51:P51_TARGET_FIELD:#BOB#
If I substitute a value for #BOB#, the interactive page opens properly.
How do I get APEX to pass the column value rather than the column name to the linked page?
Is BOB a chart column?
If not in the Link Builder, use the selector on 'Value' to select the corresponding column from the chart, such as #NAME#.
Regards,
David
Page Designer vs Legacy Component View
Apex 5.0 still using anychart charts, but using Page Designer the query of the chart is not validate. If you change to Legacy Component View you must see a error on save the chart with this query.
The selects in anychart charts need a query following these terms:
*BOB column is not valid to use on Link Builder Target
Try to put the value of the BOB column in the LINK column, like:
SELECT
bob AS LINK,
or use APEX_UTIL.PREPARE_URL, in this case it's not necessary to use Link Builder Target.
...
The query needs only three columns called LINK, LABEL and VALUE. Use alias to make this.
SELECT
APEX_UTIL.PREPARE_URL
('f?p=&APP_ID.:14:&APP_SESSION.::::P14_RECIEVER,P14_VALUE:' || bob || ',' || quantity) AS LINK,
month AS LABEL,
quantity AS VALUE
FROM mytable
https://apex.oracle.com/pls/apex/f?p=4550
Workspace: STACKQUESTIONS
User: test
Password: test
Issue page: https://apex.oracle.com/pls/apex/f?p=145797:10
id like to start using Julia for computing instead of Python. But so far I miss very important tool - View-like function. There is View() function in R that displays whole dataframe. This is very handfull tool, I cant even imagime use Julia withouth this. Is just too early to use Julia?
So far I tried print(df).
I use Juno in the Atom IDE.
Print screen from R looks like this, I want to open my dataframe in another window, not i console.
Not entirely sure what you need because I've not used R, but maybe you're looking for the printtable() method.
printtable(df::AbstractDataFrame; header::Bool = true,
separator::Char = ',',
quotemark::Char = '"',
nastring::AbstractString = "NA")
please note, oddly, that it only accepts named arguments
hope this helps fam
Not available so far.
Although, as commented in the issue discussion, this is available for Jupyter notebooks (by calling stringmime("text/html", mydataframe) underneath).
What's currently missing is for Atom to pick up the generated table html. A quick search didn't throw any info on whether Atom can/is displaying tables.
EDIT:
Another alternative is using ElectronDisplay.jl, which does a pretty-display, although outside the Juno (or Atom) ecosystem:
using ElectronDisplay
using DataFrames
df = DataFrame(A = 1:4, B = ["M", "F", "F", "M"])
electrondisplay(df)
Tested with Julia 1.3: TableView: it allows browsing, sorting and filtering.
In Juno it display the table/DataFrame on the Plot Panel:
I am using Selenium RC API .NET 2.44. I know that i can click on the link with the following localtors:
XPath: //a[contains(#class, 'handpoint')] or //a[(#class, 'handpoint')]
CSS: css=a.handpoint
But why I have the opportunity to click on the link with
selenium.click("class=handpoint");
Is this a shorthand of XPath?
I didn't work with this API, but I used a similar API.
You can get a specified element in 3 different ways:
Using XPath
Using CSS
Using some HTML attributes ( E.g.: id, name, class ) or tag names
In JavaScript you have some similar methods ( E.g.: getElementById, getElementsByTagName ).
So, you are in the 3rd case. This is a different situation, not a short form of XPath.