YAML Jackson - Anchor keys of Array

I am trying to parse a YAML file into an object. Even though Online YAML Parser tells me that it is parsable the way I want, Jackson YAML parser refuses to give me what I want. Here is the YAML File : - nom: "service1" etats : &e1s1 - no...
more »

2017-10-11 15:10 (1) Answers

Parse url with arrays in javascript

I have input url from GET method in the following format rec_test.html?emotion=Happy&myInputs_1%5B%5D=things&myInputs_1%5B%5D=are&myInputs_1%5B%5D=working&myInputs_2%5B%5D=i&myInputs_2%5B%5D=hope&myInputs_3%5B%5D=so I am tr...
more »

2017-10-11 14:10 (3) Answers

Transform parse tree into XML

I have a compiled grammar and I want to use it to transform an input sequence into an XML. Please note that in my case I have a very large grammar with many rules and I would like to avoid overriding each grammar rule in my code. I will use an examp...
more »

2017-10-09 15:10 (3) Answers

Make a FileSet from a large codebase Golang

Im trying to write a tool to help find, parse, and extract note comments from sourcecode. I've looked at the documentation for the 'go/token', 'go/ast', and 'go/doc' packages, but it seems unclear, and i cant think of how i would load a complex, mult...
more »

2017-10-03 17:10 (1) Answers

Trouble parsing XML with VBA

I'm trying to clean geocode data using Google's Geocode API. Sometimes I can get the right result and sometimes my code comes back with zero results or invalid request. I'm using the following code: Function GetCoordinates(Address As String) As Stri...
more »

2017-10-02 16:10 (0) Answers

XML class not recognizing its attributes

Feel free to link me to something, I wasn't able to find another question like this but I'm sure I'm not framing the question correctly I have this XML code <?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0...
more »

2017-10-01 23:10 (1) Answers

How to parse docx file in php with images?

I have to parse whole docx file and have to read text as well images. For this i used the following function to read text public function readDocxFile($filename) { $content = ''; $zip = zip_open($filename); if (!$zip || is_numeric($zip)) ret...
more »

2017-09-19 09:09 (0) Answers

how to get sum in jtable colmn

I'm trying to build my app and I need to get the sum of my jtable 5th column value, I used this code: public int getsum(){ int sum = 0; for (int i=0; i<jTable2.getRowCount(); i++) { sum = sum + Integer.parseInt(jTable2.getV...
more »

2017-09-05 13:09 (1) Answers

find() with regex in C++

I am trying to parse a text file using C++ and check whether there a specific PATTERN exists or not. The PATTERN consists of ;<n_WhiteSpaces><MACRO>. In my code, these MACROs are already defined in a C++ Vector and we are using an itera...
more »

2017-09-04 21:09 (1) Answers

PHP - Parse large CSV file in a short time

I have been looking for how to find a value in one line and return the value of another column in a CSV file. This is my function and it works fine but in small files: function find_user($filename, $id) { $f = fopen($filename, "r"); $result...
more »

2017-08-28 05:08 (1) Answers

Parsing JSON using php jsonpath

I'm trying to parse a JSON in PHP using jsonpath .... My JSON is coming from this https://servizionline.sanita.fvg.it/tempiAttesaService/tempiAttesaPs (it's quite too long to cut/paste here but you can see it in a browser session ....) The JSON...
more »

2017-08-18 23:08 (2) Answers

Ruby best way to make this string an array?

What is the best way to make a string that looks like an array of hashes into a real array? The string looks something like this: [{name:"lol", age:12},{name:"lmao", age:66},{name: "roflcopter", age:99}] and I need to get exactly the same but as an ...
more »

2017-08-14 21:08 (2) Answers

separate first middle last name C#

Goal: parse name when user enters name, and have a message box display with first middle and last name. Right now it only works when you type in three names, if you try two it crashes, and I'm sure it's cause of my array but Im not sure where I'm wro...
more »

2017-07-29 07:07 (4) Answers

Jackson to parse complex objects

I want to parse json object using jackson. My object structure is something like: LiveShow.java: @JsonIgnoreProperties(ignoreUnknown = true) public class LiveShow implements Serializable{ @JsonProperty("showid") public String showid; @J...
more »

2017-07-21 09:07 (2) Answers