Finally, the patch 2583 was approved!
martes, 28 de abril de 2015
First patch approved!
After some comments about each modification, as you can see here.
Finally, the patch 2583 was approved!
Finally, the patch 2583 was approved!
Clear terminal on ANSI way.
After searching for a way of clearing the terminal (or console, as you prefer), I found this post “Language Agnostic Clearing of Console Screen: Without clear() or cls()“. It’s a pretty good option, easy and without complicated tricks to do this.
On Java:
On Java:
public class ansiclrscr {
public static void main(String[] argv) {
System.out.print("foo\nbar\nbaz\nquux");
System.out.print("33[2J33[;H");
System.out.print("I am at cursor position 0,0 on a clean screen");
}
}
Finding names on a raw text
Sometimes is difficult to find out names on a text. Maybe the most naïve way is to get all the words that starts with a capital letter and that’s it! But, it you check on this paragraph you could find names like “Maybe” or “But” (???) So, fortunately, there’re more brilliant ideas like this, on which is used regex with some particular rules, like:
- A name is composed by two word (minimum) that starts with a capital letter each one.
- Maybe can be composed by more than two words, like “James Van de Putte” or something similar.
- Multiple words separated by whitespace.
- … and so.
This is the final regex string used to parse names (namely, composed names) from a text.
[A-Z]([a-z]+|\.)(?:\s+[A-Z]([a-z]+|\.))*(?:\s+[a-z][a-z\-]+){0,2}\s+[A-Z]([a-z]+|\.)
Crawling and Parsing with Java
Yes, another java crawler/parser! But, it offers something different that others: it imitates the DOM with OO, in order to parse content.
And of course, you could do it “on-line” or by using a raw file.
So, make some soup and hands on JSoup!
And of course, you could do it “on-line” or by using a raw file.
So, make some soup and hands on JSoup!
Rank operator is at PIG! :’)
Some good news after 2 months and a half of hard work, guided by Gianmarco De Francisci Morales, I don’t have words to thank him for his time and advices along this process.
Now, it’s time for formal documentation (working on, hopefully this week I’ll finish it! hurra!) and use it!
My pleasure: https://issues.apache.org/jira/browse/PIG-2353
Suscribirse a:
Comentarios (Atom)