There is an issue that seems trivial but fascinating to me and I want to learn. I am developing software on Apache Maven and it contains a configuration file named pom.xml. Whenever I add an erroneous entry as such: < john>3.2.0 </ jack > .
It gives two errors. These are as such:
Non-parseable POM C:\Users\username\path\to\application\pom.xml: end
tag name </ jack > must match start tag name < john> from line 32
and
The element type "john" must be terminated by the matching end-tag
"". pom.xml /anket line 32 Language Servers
The point that I want to learn is which tool (eclipse, maven, whatsoever ) detect this anomaly and which technology or algorithm it uses to detect it? It is XML data, so I assume that neither JRE nor JDK can find out this anomaly. Assume that I want to write software that detects such anomalies, how can I do this?
Related
It is actually a credit to the strength of PyDev/ Eclipse that the debugger also steps through the corresponding parts of the imported numpy/pandas, at the places their functionalities are used by my script e.g. df = pandas.dataframe({...
But if I am confident that the imports work OK: Is there a way for the debugger to step only through my own 10 lines of script and not its imports? It would save a lot of inspection time.
(Eclipse for C/C++ on Windows 10 64bit)
Thank you!
There's actually such functionality available in the debugger, but it currently doesn't have an UI (still didn't have time to implement it).
Still, you can set an environment variable to use it.
I.e.: add an environment variable named PYDEVD_FILTERS (you can add it in the interpreter configuration or by editing your launch) and set it to be a list of paths which match the directories you want to ignore separated by ; (fnmatch style) -- those matches will be skipped by the debugger.
See: https://github.com/fabioz/PyDev.Debugger/blob/master/_pydevd_bundle/pydevd_utils.py#L191 as a reference for this (i.e.: pydevd_utils.is_ignored_by_filter).
My team has been using Notepad for translation purposes so far. Recently, we decided to use one of the CAT tools available on the Internet - OmegaT.
We've got source and manually translated files, and only values were ever touched.
Is it possible to import both to the same project, so that source phrases stay source, and our phrases become their translated counterparts?
Note: I don't know if it matters, but files are formatted as INI (key=value).
What you need is an alignment. It takes source and target files and creates a translation memory.
In your specific case (INI files), you can use OmegaT to do an automatic alignment with a command line:
http://omegat.sourceforge.net/manual-standard/en/chapter.installing.and.running.html#omegat.command.arguments
Sample command line:
java -jar OmegaT.jar "C:\OmegaTProject" --mode=console-align --alignDir="C:\OmegaTProject\align"
For more general purposes, and with a GUI, there's a prototype version of OmegaT with an aligner:
https://omegat.ci.cloudbees.com/job/omegat-prototype/26/
See the OmegaT development mailing list for information about this.
Didier
With currently Beta version of 4.* releases (currently 4.1.5), you can use nice visual aligner - https://www.proz.com/forum/omegat_support/306343-new_interactive_aligner_in_omegat.html
I've successfully configured automatic compilation of LESS on my project and it works ok, but I wanted to add line numbers to the output files and here is what I got:
NetBeans 8.0 > Options > Miscellaneous
Less path | input field |: /usr/bin/lessc
Both checkboxes under the LESS section are checked.
Project properties > CSS Preprocessors > LESS |tab|
Compile LESS Files on Save [checkbox]: checked
Input (path) Output (path): /less /css
Compiler Options | input field |: --clean-css --line-numbers=comments
But at the output I receive CSS like I'm compiling without any options.
It does compile and its Ok, but any option seems to be ignored.
But if I'm using manually, the same compiler from the command line with the same options it does what it should and compiles with line numbers and clean CSS.
So, actually the problem was next ... framework compiler was overwriting CSS when generating assets.
I'm using Symfony2. And there is already configured *.less compilation, what I completely forgot asking my question.
Netbeans compiles LESS on it's own and Symfony uses it's own compiler and filters to organize CSS for the project. Thus, the framework compiler should be configured in my case to get desired result.
Maybe this situation will help someone to figure out similar problem.
So I picked up learning the D language, and I use Eclipse. The following question may seem naive, and probably apply to others languages as well ... Let's say I'm a small-time developer. Anyway :
I made a few simple projects. One of them (P) contains a class (C) that I'd like to reuse in another project (P'). I could of course copypasta it in P', quick and dirty. Now let's say I wanna go clean and do some "maintain once, reuse many". I'm not even sure what the proper terminology would be, something along the lines of "linking" maybe ? I learned that in college in the last century, IDEs were sci-fi back then ...
Question : how do I tell Eclipse "Please compile project P' taking into account the source file C.d that is located in the folder for project P" ?
you may just be able to say this project depends on that other project in properties
otherwise you add the source folder of P (where the C.d is) to the include path of project P' and add the correct binary path and library in P to the libpath of P'
you then tell eclipse to compile a library from P which will get placed in the bin folder in P
Many of the methods in scalaz have symbolic unicode equivalents, such as forever and ∞ (of course, I have this the wrong way round, the symbolic methods really have ASCII equivalents).
The project contains a live templates XML file for IDEA so these can be auto-completed, I believe by using the forever+TAB shortcut (in the above instance).
I can't figure out how to import this live template into IDEA and actually use it, though. How can I do that?
Live Templates XML file should be placed under IDEA configuration directory, templates subdirectory.
IDEA configuration folder location would depend on your platform:
Windows: USERPROFILE\.IntelliJIdeaXX\config
Linux: ~/.IntelliJIdeaXX/config
Mac OS X: ~/Library/Preferences/IntelliJIdeaXX
Where XX is IDEA version (90 for IDEA 9.x).
Make sure to close IDEA before copying the XML into the templates directory.