Tagged Questions
-3
votes
0answers
28 views
How to access numbers from xml file parameters tag and use in java code [closed]
i want to convert numbers to word so i am making a macro for it and a want to access numbers from parameter tag in xml file to a java file. plz help me to modify it so it compile without error.
my ...
31
votes
2answers
647 views
Scala macros and the JVM's method size limit
I'm replacing some code generation components in a Java program with Scala macros, and am running into the Java Virtual Machine's limit on the size of the generated byte code for individual methods ...
0
votes
3answers
87 views
Does Java have something like “shims” in JavaScript, preprocessing in C, or “macros” in general?
In the JavaScript world it often happens that a user's browser does not implement a feature but it can be supported by adding some additional code as a work-around. This is often called a "shim" (or ...
5
votes
1answer
92 views
Starting points to morph regular Servlets coding to my DSL
Clojure offers a good Java interop. However, I really want to have this:
(servlet IndexServlet
(service[parmas] ....)
(do-post[params] ....)
(do-get [params] ....))
(servlet-filter ...
2
votes
1answer
58 views
Clojure macro Instantiation Exception
I have a macro which works in the repl, and it seems to work in my code outside the let and also inside the let as follows. However it also breaks and I have no idea why. The macro basically just ...
0
votes
0answers
125 views
Running a OpenOffice BASIC macro in Calc using Java
I have a BASIC Macro in OpenOffice 3.3 stored in "My Macros > Standard > Module 1". I want to run the BASIC macro with Java in my OpenSUSE Linux PC. I have referred this SO question and OpenOffice ...
0
votes
1answer
54 views
ImageJ Rotation Macro Call Slows Down By Each Call
I have been working on a project in which I am trying to rotate images by ImageJ macros, basically the related part looks like:
IJ.run(sourceImage, "Arbitrarily...", "angle=" + angle + " grid=1 ...
0
votes
0answers
43 views
Linking Applets and Excel by Macro
How do I write a macro in excel to feed in data and extract data to and from a java applet running on the internet explorer ? I have written a code to link it to normal websites but I am not able to ...
0
votes
0answers
49 views
How to access properties of an object with dynamic macros in Velocity templates
I have a velocity template defined as follows:
#macro(aMacro $par1)
$par1
$par1.id
#end
##dynamic macro call
====================
#set($macroName = "aMacro")
#set( $call = "#$macroName('$p1')" ...
0
votes
2answers
135 views
Create Java Annotation to replace a token with code
I'm doing a project which in essence is a way for a user to create macros for very long/repetitive code so they can then put these macros into a their code to increase readability and encourage ...
0
votes
1answer
211 views
How to copy data from xlsx file to a text file
How can I copy data from column A and B of an xlsx file to a text file using any of the following:
Excel Macro
PHP
Java
I am on ubuntu 12.04.1, using Libreoffice for xlsx.
Also the words in the ...
0
votes
2answers
324 views
How can I run Excel Macro from Java?
I've .txt files generated by Java (with databases queries). I need to generate an excel with that (with graphics and other kind of information, is not just a pure csv).
How can I call my excel macro ...
1
vote
2answers
88 views
Getting errors when using setText method
Here is my code:
public class NoteView extends FragmentActivity implements CustomDialogFragment.CustomDialogListener {
private Uri mUri;
private String[] projection = { ...
3
votes
4answers
98 views
Can a string be converted to an instruction?
This code in Java:
for (Integer x=1; x <= 3; x++) {
y = "array[" + Integer.toString(x) + "] = a" + Integer.toString(x) + ".getText();";
System.out.println(y);
}
prints out:
array[1] ...
0
votes
0answers
155 views
Is it possible to read and edit excel macro from java
I have an excel macro that i need to read from a java program.
Then process something on the macro extracted in the java code.
and update the new processed macro back into the excel.
I did a few ...