Questions tagged [gumbo]

Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools.

Goals & features:

  1. Fully conformant with the HTML5 spec.
  2. Robust and resilient to bad input.
  3. Simple API that can be easily wrapped by other languages.
  4. Support for source locations and pointers back to the original text.
  5. Support for fragment parsing.
  6. Relatively lightweight, with no outside dependencies.
  7. Passes all html5lib tests, including the template tag.
  8. Tested on over 2.5 billion pages from Google's index.
39 questions
1
vote
1 answer

Call C function in C++ class implementation

I have to use https://github.com/google/gumbo-parser library that is written in C. I have a HtmlParser class which is defined in HtmlParser.h and I implement it's methods in HtmlParser.cpp I include gumbo.h in HtmlParser.h and call it's functions in…
1
vote
0 answers

Installing Gumbo and its Python wrapper

I am trying to use Gumbo's python wrapper to parse HTML. My operating system is Ubuntu 14.04.3 LTS. I am using Python2.7 I have cloned the latest version of Gumbo from github. I followed the installation steps provided on Github. The installation of…
RandomGuyqwert
  • 425
  • 6
  • 18
1
vote
1 answer

Specific number of threads c++

I'm writing a crawler in c++, the function crawler downloads a website and extracts all the links from it. I wanted It to run the function crawler in multiple threads, each thread with different parameters and also I want to specify the amount of…
patrick1337
  • 57
  • 1
  • 2
  • 8
1
vote
2 answers

Convert Flex Builder 3 project to Flash Builder 4

I just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator"…
Jonathan Dumaine
  • 5,575
  • 3
  • 38
  • 50
1
vote
1 answer

FileReference and HttpService Browse Image Modify it then Upload it

I am trying to do an image uploader, user can: - browse local file with button.browse - select one and save it as a FileReference. - then we do FileReference.load() then bind the data to our image control. - after we make a rotation on it and change…
1
vote
1 answer

Adobe Air 1.5.2 and Flash Builder

Recently I'm working on some air stuff, and I am using Flash Builder and latest Nightly build SDK in order to compile my application ( I even used stable version before this stage ), but when ever I export the final air file from the Flash Builder,…
Farid
  • 751
  • 2
  • 8
  • 15
0
votes
0 answers

gcc how to compile program with gumbo

i have simple program writen in c++ i want to compile it with gcc but i get: /usr/bin/ld: /tmp/ccT7rfgP.o: warning: relocation against `kGumboDefaultOptions' in read-only section `.text' /usr/bin/ld: /tmp/ccT7rfgP.o: in function…
0
votes
0 answers

Flex 4.5: Using Move transition on Style?

In Flex 3 it was possible to use a Move transition effect on a style like "left", "right", "top" or "bottom". For example I had a HBox with 100% width and height on the Application and in this HBox I had three VBoxes. Let's say the left VBox had a…
BadmintonCat
  • 9,416
  • 14
  • 78
  • 129
0
votes
1 answer

Warning: Could not find Lua 5.3 in PATH - When Trying to Install Gumbo library with Luarocks

When writing luarocks install gumbo In the location/directory of my luarocks file in cmd, I am getting the following error Warning: Could not find Lua 5.3 in PATH. Modules may not install with the correct configurations. You may want to specify the…
Hope2Code
  • 89
  • 1
  • 2
  • 8
0
votes
0 answers

How to install gumbo in QT?

I just started to learn the QT recently, and I tried to parse a HTML while I found Gumbo could be a tool for this. But I don't know how to use it in my QT project. Can anyone help me here? Thanks.
Ecli
  • 1
0
votes
1 answer

flex 4 how do I change the flex theme dynamically at runtime, not at compile time?

flash builder 4 comes with a couple of cool spark themes, and there are tons of others out there on the web, I want to be able to change the theme at runtime, without recompiling. Is this possible? If it is, do you have any hint's on how this can be…
Gary Benade
  • 507
  • 4
  • 16
0
votes
1 answer

Setting default Index for a Drop Down List in flex 4

I have a drop down list that gets its data from a php web service method.This response is smthing like : array('id'=>integer,'name'=>'lin') When the page loads, I want to set the selected index to "lin" initially. How do I do this ?
Lin
  • 273
  • 4
  • 21
0
votes
2 answers

flex/flashbuilder 4 gumbo states are sometimes blank

Below is a very simple example, randomly, if I click the step2 button the state will change but the Step 2 panel will not be there. I suspect the children of the state are not getting created for some reason, which is why I set the…
Gary Benade
  • 507
  • 4
  • 16
0
votes
1 answer

how do I make a TileGroup layout that has the jaggy edge on top?

I have spark.components.TileGroup that contains buttons. I would like the buttons to appear like tabs on top of the ViewStack they serve At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in…
Gary Benade
  • 507
  • 4
  • 16
0
votes
1 answer

Can one keep both version of Flex builder simultaneously (verision 3 and version 4) on his/her machine

I have Flex builder 3 already installed on my machine. Now, I want to use Flex builder 4 also (officially Flash BUilder 4) on same machine. Can I directly start with Flex builder 4 and import my Flex BUilder 3 project there w/o any loss ? If not…
Ashine
  • 4,517
  • 3
  • 24
  • 26