From 451cd8d7705c7f5fbf655764382320ddf2a29ea3 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Sat, 8 Jul 2017 21:12:20 +0100 Subject: Import all the new test cases --- test/test-pages/001/source.html | 2 +- test/test-pages/ars-1/source.html | 12 +- test/test-pages/bbc-1/source.html | 22 +- test/test-pages/blogger/expected-metadata.json | 7 + test/test-pages/blogger/expected.html | 127 + test/test-pages/blogger/source.html | 2064 + test/test-pages/breitbart/expected-metadata.json | 7 + test/test-pages/breitbart/expected.html | 26 + test/test-pages/breitbart/source.html | 19848 +++++++++ test/test-pages/bug-1255978/expected-metadata.json | 7 + test/test-pages/bug-1255978/expected.html | 70 + test/test-pages/bug-1255978/source.html | 40907 +++++++++++++++++++ test/test-pages/buzzfeed-1/source.html | 66 +- test/test-pages/clean-links/source.html | 2 +- test/test-pages/cnet/expected-metadata.json | 7 + test/test-pages/cnet/expected.html | 25 + test/test-pages/cnet/source.html | 19356 +++++++++ test/test-pages/cnn/expected-metadata.json | 7 + test/test-pages/cnn/expected.html | 56 + test/test-pages/cnn/source.html | 4190 ++ test/test-pages/ehow-1/expected-metadata.json | 6 + test/test-pages/ehow-1/expected.html | 121 + test/test-pages/ehow-1/source.html | 934 + test/test-pages/ehow-2/expected-metadata.json | 6 + test/test-pages/ehow-2/expected.html | 164 + test/test-pages/ehow-2/source.html | 1621 + test/test-pages/gmw/expected-metadata.json | 7 + test/test-pages/gmw/expected.html | 54 + test/test-pages/gmw/source.html | 2103 + test/test-pages/herald-sun-1/source.html | 3 +- test/test-pages/lemonde-1/source.html | 6 +- test/test-pages/liberation-1/source.html | 38 +- .../links-in-tables/expected-metadata.json | 7 + test/test-pages/links-in-tables/expected.html | 155 + test/test-pages/links-in-tables/source.html | 3165 ++ test/test-pages/medium-3/expected-metadata.json | 7 + test/test-pages/medium-3/expected.html | 245 + test/test-pages/medium-3/source.html | 4815 +++ test/test-pages/msn/expected-metadata.json | 6 + test/test-pages/msn/expected.html | 23 + test/test-pages/msn/source.html | 13010 ++++++ .../needs-entity-normalization/source.html | 218 +- .../normalize-spaces/expected-metadata.json | 6 + test/test-pages/normalize-spaces/expected.html | 7 + test/test-pages/normalize-spaces/source.html | 35 + test/test-pages/nytimes-1/expected-metadata.json | 7 + test/test-pages/nytimes-1/expected.html | 38 + test/test-pages/nytimes-1/source.html | 5530 +++ test/test-pages/nytimes-2/expected-metadata.json | 7 + test/test-pages/nytimes-2/expected.html | 45 + test/test-pages/nytimes-2/source.html | 5236 +++ test/test-pages/pixnet/expected-metadata.json | 7 + test/test-pages/pixnet/expected.html | 190 + test/test-pages/pixnet/source.html | 4372 ++ test/test-pages/qq/expected-metadata.json | 6 + test/test-pages/qq/expected.html | 32 + test/test-pages/qq/source.html | 7280 ++++ test/test-pages/rtl-1/expected-metadata.json | 7 + test/test-pages/rtl-1/expected.html | 15 + test/test-pages/rtl-1/source.html | 26 + test/test-pages/rtl-2/expected-metadata.json | 7 + test/test-pages/rtl-2/expected.html | 15 + test/test-pages/rtl-2/source.html | 26 + test/test-pages/rtl-3/expected-metadata.json | 7 + test/test-pages/rtl-3/expected.html | 15 + test/test-pages/rtl-3/source.html | 26 + test/test-pages/rtl-4/expected-metadata.json | 7 + test/test-pages/rtl-4/expected.html | 15 + test/test-pages/rtl-4/source.html | 26 + test/test-pages/salon-1/source.html | 2 +- test/test-pages/tmz-1/source.html | 4 +- test/test-pages/tumblr/expected-metadata.json | 7 + test/test-pages/tumblr/expected.html | 11 + test/test-pages/tumblr/source.html | 793 + test/test-pages/wapo-1/source.html | 8 +- test/test-pages/wapo-2/source.html | 4 +- test/test-pages/webmd-1/expected-metadata.json | 6 + test/test-pages/webmd-1/expected.html | 16 + test/test-pages/webmd-1/source.html | 2411 ++ test/test-pages/webmd-2/source.html | 18 +- test/test-pages/wikia/expected-metadata.json | 7 + test/test-pages/wikia/expected.html | 28 + test/test-pages/wikia/source.html | 19998 +++++++++ test/test-pages/wikipedia/expected-metadata.json | 7 + test/test-pages/wikipedia/expected.html | 418 + test/test-pages/wikipedia/source.html | 1652 + test/test-pages/wordpress/expected-metadata.json | 7 + test/test-pages/wordpress/expected.html | 26 + test/test-pages/wordpress/source.html | 2228 + test/test-pages/yahoo-1/expected-metadata.json | 7 + test/test-pages/yahoo-1/expected.html | 53 + test/test-pages/yahoo-1/source.html | 14670 +++++++ test/test-pages/yahoo-2/expected-metadata.json | 6 + test/test-pages/yahoo-2/expected.html | 33 + test/test-pages/yahoo-2/source.html | 20539 ++++++++++ test/test-pages/yahoo-3/expected-metadata.json | 7 + test/test-pages/yahoo-3/expected.html | 44 + test/test-pages/yahoo-3/source.html | 14949 +++++++ test/test-pages/yahoo-4/expected-metadata.json | 7 + test/test-pages/yahoo-4/expected.html | 18 + test/test-pages/yahoo-4/source.html | 1234 + test/test-pages/youth/expected-metadata.json | 7 + test/test-pages/youth/expected.html | 38 + test/test-pages/youth/source.html | 10982 +++++ 104 files changed, 226587 insertions(+), 170 deletions(-) create mode 100644 test/test-pages/blogger/expected-metadata.json create mode 100644 test/test-pages/blogger/expected.html create mode 100644 test/test-pages/blogger/source.html create mode 100644 test/test-pages/breitbart/expected-metadata.json create mode 100644 test/test-pages/breitbart/expected.html create mode 100644 test/test-pages/breitbart/source.html create mode 100644 test/test-pages/bug-1255978/expected-metadata.json create mode 100644 test/test-pages/bug-1255978/expected.html create mode 100644 test/test-pages/bug-1255978/source.html create mode 100644 test/test-pages/cnet/expected-metadata.json create mode 100644 test/test-pages/cnet/expected.html create mode 100644 test/test-pages/cnet/source.html create mode 100644 test/test-pages/cnn/expected-metadata.json create mode 100644 test/test-pages/cnn/expected.html create mode 100644 test/test-pages/cnn/source.html create mode 100644 test/test-pages/ehow-1/expected-metadata.json create mode 100644 test/test-pages/ehow-1/expected.html create mode 100644 test/test-pages/ehow-1/source.html create mode 100644 test/test-pages/ehow-2/expected-metadata.json create mode 100644 test/test-pages/ehow-2/expected.html create mode 100644 test/test-pages/ehow-2/source.html create mode 100644 test/test-pages/gmw/expected-metadata.json create mode 100644 test/test-pages/gmw/expected.html create mode 100644 test/test-pages/gmw/source.html create mode 100644 test/test-pages/links-in-tables/expected-metadata.json create mode 100644 test/test-pages/links-in-tables/expected.html create mode 100644 test/test-pages/links-in-tables/source.html create mode 100644 test/test-pages/medium-3/expected-metadata.json create mode 100644 test/test-pages/medium-3/expected.html create mode 100644 test/test-pages/medium-3/source.html create mode 100644 test/test-pages/msn/expected-metadata.json create mode 100644 test/test-pages/msn/expected.html create mode 100644 test/test-pages/msn/source.html mode change 100644 => 100755 test/test-pages/needs-entity-normalization/source.html create mode 100644 test/test-pages/normalize-spaces/expected-metadata.json create mode 100644 test/test-pages/normalize-spaces/expected.html create mode 100644 test/test-pages/normalize-spaces/source.html create mode 100644 test/test-pages/nytimes-1/expected-metadata.json create mode 100644 test/test-pages/nytimes-1/expected.html create mode 100644 test/test-pages/nytimes-1/source.html create mode 100644 test/test-pages/nytimes-2/expected-metadata.json create mode 100644 test/test-pages/nytimes-2/expected.html create mode 100644 test/test-pages/nytimes-2/source.html create mode 100644 test/test-pages/pixnet/expected-metadata.json create mode 100644 test/test-pages/pixnet/expected.html create mode 100644 test/test-pages/pixnet/source.html create mode 100644 test/test-pages/qq/expected-metadata.json create mode 100644 test/test-pages/qq/expected.html create mode 100644 test/test-pages/qq/source.html create mode 100644 test/test-pages/rtl-1/expected-metadata.json create mode 100644 test/test-pages/rtl-1/expected.html create mode 100644 test/test-pages/rtl-1/source.html create mode 100644 test/test-pages/rtl-2/expected-metadata.json create mode 100644 test/test-pages/rtl-2/expected.html create mode 100644 test/test-pages/rtl-2/source.html create mode 100644 test/test-pages/rtl-3/expected-metadata.json create mode 100644 test/test-pages/rtl-3/expected.html create mode 100644 test/test-pages/rtl-3/source.html create mode 100644 test/test-pages/rtl-4/expected-metadata.json create mode 100644 test/test-pages/rtl-4/expected.html create mode 100644 test/test-pages/rtl-4/source.html create mode 100644 test/test-pages/tumblr/expected-metadata.json create mode 100644 test/test-pages/tumblr/expected.html create mode 100644 test/test-pages/tumblr/source.html create mode 100644 test/test-pages/webmd-1/expected-metadata.json create mode 100644 test/test-pages/webmd-1/expected.html create mode 100644 test/test-pages/webmd-1/source.html create mode 100644 test/test-pages/wikia/expected-metadata.json create mode 100644 test/test-pages/wikia/expected.html create mode 100644 test/test-pages/wikia/source.html create mode 100644 test/test-pages/wikipedia/expected-metadata.json create mode 100644 test/test-pages/wikipedia/expected.html create mode 100644 test/test-pages/wikipedia/source.html create mode 100644 test/test-pages/wordpress/expected-metadata.json create mode 100644 test/test-pages/wordpress/expected.html create mode 100644 test/test-pages/wordpress/source.html create mode 100644 test/test-pages/yahoo-1/expected-metadata.json create mode 100644 test/test-pages/yahoo-1/expected.html create mode 100644 test/test-pages/yahoo-1/source.html create mode 100644 test/test-pages/yahoo-2/expected-metadata.json create mode 100644 test/test-pages/yahoo-2/expected.html create mode 100644 test/test-pages/yahoo-2/source.html create mode 100644 test/test-pages/yahoo-3/expected-metadata.json create mode 100644 test/test-pages/yahoo-3/expected.html create mode 100644 test/test-pages/yahoo-3/source.html create mode 100644 test/test-pages/yahoo-4/expected-metadata.json create mode 100644 test/test-pages/yahoo-4/expected.html create mode 100644 test/test-pages/yahoo-4/source.html create mode 100644 test/test-pages/youth/expected-metadata.json create mode 100644 test/test-pages/youth/expected.html create mode 100644 test/test-pages/youth/source.html diff --git a/test/test-pages/001/source.html b/test/test-pages/001/source.html index 0de9860..951e874 100644 --- a/test/test-pages/001/source.html +++ b/test/test-pages/001/source.html @@ -223,7 +223,7 @@ sessions diff --git a/test/test-pages/ars-1/source.html b/test/test-pages/ars-1/source.html index 6721ed2..cd6aed1 100644 --- a/test/test-pages/ars-1/source.html +++ b/test/test-pages/ars-1/source.html @@ -655,7 +655,7 @@ } }); CN.dart.getCommon()["domDelay"]["defaultVal"] = 100; - for (var i = 0; i < ars.AD.queue.length; i++) { + for (var i = 0; i < ars.AD.queue.length; i++) { var ad = ars.AD.queue[i], id = ad[0], args = ad[1]; @@ -678,10 +678,10 @@ function program1(depth0, data) { var buffer = "", stack1; - buffer += "\n \n \n \n "; + buffer += "\n <span style=\"width:50px; height:50px; overflow:hidden; display:inline-block; float:left; margin:2px 10px 5px 0\">\n <img src=\"" + escapeExpression(((stack1 = ((stack1 = depth0.image), stack1 == null || stack1 === false ? stack1 : stack1.href)), typeof stack1 === functionType ? stack1.apply(depth0) : stack1)) + "\" style=\"float:none; margin:0; height:50px; width:auto;\" />\n </span>\n "; return buffer; } - buffer += "
  • \n \n

    Sponsored by: " + escapeExpression(((stack1 = ((stack1 = depth0.sponsor), stack1 == null || stack1 === false ? stack1 : stack1.name)), typeof stack1 === functionType ? stack1.apply(depth0) : stack1)) + "

    \n "; + buffer += escapeExpression(stack1) + "\">\n <h2 style=\"color:#00A3D3;\">Sponsored by: <span style=\"text-transform:none;\">" + escapeExpression(((stack1 = ((stack1 = depth0.sponsor), stack1 == null || stack1 === false ? stack1 : stack1.name)), typeof stack1 === functionType ? stack1.apply(depth0) : stack1)) + "</span></h2>\n "; stack2 = helpers['if'].call(depth0, ((stack1 = depth0.image), stack1 == null || stack1 === false ? stack1 : stack1.href), { hash: {}, inverse: self.noop, @@ -701,7 +701,7 @@ if (stack2 || stack2 === 0) { buffer += stack2; } - buffer += "\n

    "; + buffer += "\n <h1 class=\"heading\">"; if (stack2 = helpers.title) { stack2 = stack2.call(depth0, { hash: {}, @@ -711,7 +711,7 @@ stack2 = depth0.title; stack2 = typeof stack2 === functionType ? stack2.apply(depth0) : stack2; } - buffer += escapeExpression(stack2) + "

    \n
    \n
  • "; + buffer += escapeExpression(stack2) + "</h1>\n </a>\n</li>"; return buffer; }; diff --git a/test/test-pages/bbc-1/source.html b/test/test-pages/bbc-1/source.html index 7004155..876c893 100644 --- a/test/test-pages/bbc-1/source.html +++ b/test/test-pages/bbc-1/source.html @@ -111,8 +111,8 @@ })(); - + @@ -122,7 +122,7 @@ - +
    +
    @@ -578,7 +578,7 @@ if ( eligible[country_code] ) {
    - +
    @@ -2301,7 +2301,7 @@ body .OUTBRAIN .AR_8 .ob-unit.ob-rec-text { -
    + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    + +

    Sunday, May 8, 2016

    + +
    + +
    +
    + + + + +

    + Open Verilog flow for Silego GreenPak4 programmable logic devices +

    +
    +
    +
    +
    + I've written a couple of posts in the past few months but they were all for the blog at work so I figured I'm long overdue for one on Silicon Exposed.
    +
    +

    + So what's a GreenPak?

    +
    Silego Technology is a fabless semiconductor company located in the SF Bay area, which makes (among other things) a line of programmable logic devices known as GreenPak. Their 5th generation parts were just announced, but I started this project before that happened so I'm still targeting the 4th generation.
    +
    GreenPak devices are kind of like itty bitty PSoCs - they have a mixed signal fabric with an ADC, DACs, comparators, voltage references, plus a digital LUT/FF fabric and some typical digital MCU peripherals like counters and oscillators (but no CPU).
    +
    It's actually an interesting architecture - FPGAs (including some devices marketed as CPLDs) are a 2D array of LUTs connected via wires to adjacent cells, and true (product term) CPLDs are a star topology of AND-OR arrays connected by a crossbar. GreenPak, on the other hand, is a star topology of LUTs, flipflops, and analog/digital hard IP connected to a crossbar.
    +
    Without further ado, here's a block diagram showing all the cool stuff you get in the SLG46620V:
    +
    + + + + + + + + + +
    + +
    SLG46620V block diagram (from device datasheet)
    + They're also tiny (the SLG46620V is a 20-pin 0.4mm pitch STQFN measuring 2x3 mm, and the lower gate count SLG46140V is a mere 1.6x2 mm) and probably the cheapest programmable logic device on the market - $0.50 in low volume and less than $0.40 in larger quantities.
    +
    The Vdd range of GreenPak4 is huge, more like what you'd expect from an MCU than an FPGA! It can run on anything from 1.8 to 5V, although performance is only specified at 1.8, 3.3, and 5V nominal voltages. There's also a dual-rail version that trades one of the GPIO pins for a second power supply pin, allowing you to interface to logic at two different voltage levels.
    +
    To support low-cost/space-constrained applications, they even have the configuration memory on die. It's one-time programmable and needs external Vpp to program (presumably Silego didn't want to waste die area on charge pumps that would only be used once) but has a SRAM programming mode for prototyping.
    +
    The best part is that the development software (GreenPak Designer) is free of charge and provided for all major operating systems including Linux! Unfortunately, the only supported design entry method is schematic entry and there's no way to write your design in a HDL.
    +
    While schematics may be fine for quick tinkering on really simple designs, they quickly get unwieldy. The nightmare of a circuit shown below is just a bunch of counters hooked up to LEDs that blink at various rates.
    +
    + + + + + + + + + +
    + +
    Schematic from hell!
    + As if this wasn't enough of a problem, the largest GreenPak4 device (the SLG46620V) is split into two halves with limited routing between them, and the GUI doesn't help the user manage this complexity at all - you have to draw your schematic in two halves and add "cross connections" between them.
    +
    The icing on the cake is that schematics are a pain to diff and collaborate on. Although GreenPak schematics are XML based, which is a touch better than binary, who wants to read a giant XML diff and try to figure out what's going on in the circuit?
    +
    This isn't going to be a post on the quirks of Silego's software, though - that would be boring. As it turns out, there's one more exciting feature of these chips that I didn't mention earlier: the configuration bitstream is 100% documented in the device datasheet! This is unheard of in the programmable logic world. As Nick of Arachnid Labs says, the chip is "just dying for someone to write a VHDL or Verilog compiler for it". As you can probably guess by from the title of this post, I've been busy doing exactly that.
    +
    +

    + Great! How does it work?

    +
    Rather than wasting time writing a synthesizer, I decided to write a GreenPak technology library for Clifford Wolf's excellent open source synthesis tool, Yosys, and then make a place-and-route tool to turn that into a final netlist. The post-PAR netlist can then be loaded into GreenPak Designer in order to program the device.
    +
    The first step of the process is to run the "synth_greenpak4" Yosys flow on the Verilog source. This runs a generic RTL synthesis pass, then some coarse-grained extraction passes to infer shift register and counter cells from behavioral logic, and finally maps the remaining logic to LUT/FF cells and outputs a JSON-formatted netlist.
    +
    Once the design has been synthesized, my tool (named, surprisingly, gp4par) is then launched on the netlist. It begins by parsing the JSON and constructing a directed graph of cell objects in memory. A second graph, containing all of the primitives in the device and the legal connections between them, is then created based on the device specified on the command line. (As of now only the SLG46620V is supported; the SLG46621V can be added fairly easily but the SLG46140V has a slightly different microarchitecture which will require a bit more work to support.)
    +
    After the graphs are generated, each node in the netlist graph is assigned a numeric label identifying the type of cell and each node in the device graph is assigned a list of legal labels: for example, an I/O buffer site is legal for an input buffer, output buffer, or bidirectional buffer.
    +
    + + + + + + + + + +
    + +
    Example labeling for a subset of the netlist and device graphs
    + The labeled nodes now need to be placed. The initial placement uses a simple greedy algorithm to create a valid (although not necessarily optimal or even routable) placement:
    +
      +
    1. Loop over the cells in the netlist. If any cell has a LOC constraint, which locks the cell to a specific physical site, attempt to assign the node to the specified site. If the specified node is the wrong type, doesn't exist, or is already used by another constrained node, the constraint is invalid so fail with an error.
    2. +
    3. Loop over all of the unconstrained cells in the netlist and assign them to the first unused site with the right label. If none are available, the design is too big for the device so fail with an error.
    4. +
    + Once the design is placed, the placement optimizer then loops over the design and attempts to improve it. A simulated annealing algorithm is used, where changes to the design are accepted unconditionally if they make the placement better, and with a random, gradually decreasing probability if they make it worse. The optimizer terminates when the design receives a perfect score (indicating an optimal placement) or if it stops making progress for several iterations. Each iteration does the following:
    +
      +
    1. Compute a score for the current design based on the number of unroutable nets, the amount of routing congestion (number of nets crossing between halves of the device), and static timing analysis (not yet implemented, always zero).
    2. +
    3. Make a list of nodes that contributed to this score in some way (having some attached nets unroutable, crossing to the other half of the device, or failing timing).
    4. +
    5. Remove nodes from the list that are LOC'd to a specific location since we're not allowed to move them.
    6. +
    7. Remove nodes from the list that have only one legal placement in the device (for example, oscillator hard IP) since there's nowhere else for them to go.
    8. +
    9. Pick a node from the remainder of the list at random. Call this our pivot.
    10. +
    11. Find a list of candidate placements for the pivot:
    12. +
        +
      1. Consider all routable placements in the other half of the device.
      2. +
      3. If none were found, consider all routable placements anywhere in the device.
      4. +
      5. If none were found, consider all placements anywhere in the device even if they're not routable.
      6. +
      +
    13. Pick one of the candidates at random and move the pivot to that location. If another cell in the netlist is already there, put it in the vacant site left by the pivot.
    14. +
    15. Re-compute the score for the design. If it's better, accept this change and start the next iteration.
    16. +
    17. If the score is worse, accept it with a random probability which decreases as the iteration number goes up. If the change is not accepted, restore the previous placement.
    18. +
    + After optimization, the design is checked for routability. If any edges in the netlist graph don't correspond to edges in the device graph, the user probably asked for something impossible (for example, trying to hook a flipflop's output to a comparator's reference voltage input) so fail with an error.
    +
    The design is then routed. This is quite simple due to the crossbar structure of the device. For each edge in the netlist:
    +
      +
    1. If dedicated (non-fabric) routing is used for this path, configure the destination's input mux appropriately and stop.
    2. +
    3. If the source and destination are in the same half of the device, configure the destination's input mux appropriately and stop.
    4. +
    5. A cross-connection must be used. Check if we already used one to bring the source signal to the other half of the device. If found, configure the destination to route from that cross-connection and stop.
    6. +
    7. Check if we have any cross-connections left going in this direction. If they're all used, the design is unroutable due to congestion so fail with an error.
    8. +
    9. Pick the next unused cross-connection and configure it to route from the source. Configure the destination to route from the cross-connection and stop.
    10. +
    + Once routing is finished, run a series of post-PAR design rule checks. These currently include the following:
    +
      +
    • If any node has no loads, generate a warning
    • +
    • If an I/O buffer is connected to analog hard IP, fail with an error if it's not configured in analog mode.
    • +
    • Some signals (such as comparator inputs and oscillator power-down controls) are generated by a shared mux and fed to many loads. If different loads require conflicting settings for the shared mux, fail with an error.
    • +
    + If DRC passes with no errors, configure all of the individual cells in the netlist based on the HDL parameters. Fail with an error if an invalid configuration was requested.
    +
    Finally, generate the bitstream from all of the per-cell configuration and write it to a file.
    +
    +

    + Great, let's get started!

    + If you don't already have one, you'll need to buy a GreenPak4 development kit. The kit includes samples of the SLG46620V (among other devices) and a programmer/emulation board. While you're waiting for it to arrive, install GreenPak Designer.
    +
    Download and install Yosys. Although Clifford is pretty good at merging my pull requests, only my fork on Github is guaranteed to have the most up-to-date support for GreenPak devices so don't be surprised if you can't use a bleeding-edge feature with mainline Yosys.
    +
    Download and install gp4par. You can get it from the Github repository.
    +
    Write your HDL, compile with Yosys, P&R with gp4par, and import the bitstream into GreenPak Designer to program the target device. The most current gp4par manual is included in LaTeX source form in the source tree and is automatically built as part of the compile process. If you're just browsing, there's a relatively recent PDF version on my web server.
    +
    If you'd like to see the Verilog that produced the nightmare of a schematic I showed above, here it is.
    +
    Be advised that this project is still very much a work in progress and there are still a number of SLG46620V features I don't support (see the manual for exact details).
    +
    +

    + I love it / it segfaulted / there's a problem in the manual!

    + Hop in our IRC channel (##openfpga on Freenode) and let me know. Feedback is great, pull requests are even better,
    +
    +

    + You're competing with Silego's IDE. Have they found out and sued you yet?

    + Nope. They're fully aware of what I'm doing and are rolling out the red carpet for me. They love the idea of a HDL flow as an alternative to schematic entry and are pretty amazed at how fast it's coming together.
    +
    After I reported a few bugs in their datasheets they decided to skip the middleman and give me direct access to the engineer who writes their documentation so that I can get faster responses. The last time I found a problem (two different parts of the datasheet contradicted each other) an updated datasheet was in my inbox and on their website by the next day. I only wish Xilinx gave me that kind of treatment!
    +
    They've even offered me free hardware to help me add support for their latest product family, although I plan to get GreenPak4 support to a more stable state before taking them up on the offer.
    +
    +

    + So what's next?

    +
    Better testing, for starters. I have to verify functionality by hand with a DMM and oscilloscope, which is time consuming.
    +
    My contact at Silego says they're going to be giving me documentation on the SRAM emulation interface soon, so I'm going to make a hardware-in-loop test platform that connects to my desktop and the Silego ZIF socket, and lets me load new bitstreams via a scriptable interface. It'll have FPGA-based digital I/O as well as an ADC and DAC on every device pin, plus an adjustable voltage regulator for power, so I can feed in arbitrary mixed-signal test waveforms and write PC-based unit tests to verify correct behavior.
    +
    Other than that, I want to finish support for the SLG46620V in the next month or two. The SLG46621V will be an easy addition since only one pin and the relevant configuration bits have changed from the 46620 (I suspect they're the same die, just bonded out differently).
    +
    Once that's done I'll have to do some more extensive work to add the SLG46140V since the architecture is a bit different (a lot of the combinatorial logic is merged into multi-function blocks). Luckily, the 46140 has a lot in common architecturally with the GreenPak5 family, so once that's done GreenPak5 will probably be a lot easier to add support for.
    +
    My thanks go out to Clifford Wolf, whitequark, the IRC users in ##openfpga, and everyone at Silego I've worked with to help make this possible. I hope that one day this project will become mature enough that Silego will ship it as an officially supported extension to GreenPak Designer, making history by becoming the first modern programmable logic vendor to ship a fully open source synthesis and P&R suite. +
    +
    + +
    +
    + +

    No comments:

    +
    +
    +
    +
    +
    + +

    Post a Comment

    +

    +

    + + + + +
    +

    + +
    +
    + +
    +
    + +
    +
    + +Older Post + + Home +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + diff --git a/test/test-pages/breitbart/expected-metadata.json b/test/test-pages/breitbart/expected-metadata.json new file mode 100644 index 0000000..c5a2d02 --- /dev/null +++ b/test/test-pages/breitbart/expected-metadata.json @@ -0,0 +1,7 @@ +{ + "title": "'Neutral' Snopes Fact-Checker David Emery: 'Are There Any Un-Angry Trump Supporters?'", + "byline": "by Lucas Nolan22 Dec 2016651", + "dir": null, + "excerpt": "Snopes fact checker and staff writer David Emery posted to Twitter asking if there were “any un-angry Trump supporters?”", + "readerable": true +} diff --git a/test/test-pages/breitbart/expected.html b/test/test-pages/breitbart/expected.html new file mode 100644 index 0000000..7f4a8ff --- /dev/null +++ b/test/test-pages/breitbart/expected.html @@ -0,0 +1,26 @@ +
    +
    +
    + +
    + + +
    +
    +
    +

    SIGN UP FOR OUR NEWSLETTER

    +
    +

    Snopes fact checker and staff writer David Emery posted to Twitter asking if there were “any un-angry Trump supporters?”

    +

    Emery, a writer for partisan “fact-checking” website Snopes.com which soon will be in charge of labelling “fake news” alongside ABC News and Politifact, retweeted an article by Vulture magazine relating to the protests of the Hamilton musical following the decision by the cast of the show to make a public announcement to Vice-president elect Mike Pence while he watched the performance with his family.

    +
    +

    SIGN UP FOR OUR NEWSLETTER

    +
    +

    The tweet from Vulture magazine reads, “#Hamilton Chicago show interrupted by angry Trump supporter.” Emery retweeted the story, saying, “Are there un-angry Trump supporters?”

    +

    This isn’t the first time the Snopes.com writer has expressed anti-Trump sentiment on his Twitter page. In another tweet in which Emery links to an article that falsely attributes a quote to President-elect Trump, Emery states, “Incredibly, some people actually think they have to put words in Trump’s mouth to make him look bad.”

    +

    Emery also retweeted an article by New York magazine that claimed President-elect Trump relied on lies to win during his campaign and that we now lived in a “post-truth” society. “Before long we’ll all have forgotten what it was like to live in the same universe; or maybe we already have,” Emery tweeted.

    +

    Facebook believe that Emery, along with other Snopes writers, ABC News, and Politifact are impartial enough to label and silence what they believe to be “fake news” on social media.

    +

    Lucas Nolan is a reporter for Breitbart Tech covering issues of free speech and online censorship. Follow him on Twitter @LucasNolan_ or email him at lnolan@breitbart.com

    +
    +
    diff --git a/test/test-pages/breitbart/source.html b/test/test-pages/breitbart/source.html new file mode 100644 index 0000000..61ae0aa --- /dev/null +++ b/test/test-pages/breitbart/source.html @@ -0,0 +1,19848 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 'Neutral' Snopes Fact-Checker David Emery: 'Are There Any Un-Angry Trump Supporters?' - Breitbart + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + +
    + + Skip to content +
    +
    +
    +
    report this ad
    + +
    +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    + + + + +
    +
    +
    + + +
    +
    +
    + +
    + SHOP NOW > + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    'Neutral' Snopes Fact-Checker David Emery: 'Are There Any Un-Angry Trump Supporters?'

    +
    +
    + +
    + +
    +
    +
    +
    + +
    + +
    + + +
    +
    +
    + +
    +

    SIGN UP FOR OUR NEWSLETTER

    +
    + +
    +
    +
      +
    • +
    +
    +
    +
    +
    +

    Snopes fact checker and staff writer David Emery posted to Twitter asking if there were “any un-angry Trump supporters?”

    +

    Emery, a writer for partisan “fact-checking” website Snopes.com which soon will be in charge of labelling “fake news” alongside ABC News and Politifact, retweeted an article by Vulture magazine relating to the protests of the Hamilton musical following the decision by the cast of the show to make a public announcement to Vice-president elect Mike Pence while he watched the performance with his family.

    +
    +

    SIGN UP FOR OUR NEWSLETTER

    +
    + +
    +
    +
      +
    • +
    +
    +
    +
    +
    +

    The tweet from Vulture magazine reads, “#Hamilton Chicago show interrupted by angry Trump supporter.” Emery retweeted the story, saying, “Are there un-angry Trump supporters?”

    + +

    + +

    + +
    +
    +
    + + +

    This isn’t the first time the Snopes.com writer has expressed anti-Trump sentiment on his Twitter page. In another tweet in which Emery links to an article that falsely attributes a quote to President-elect Trump, Emery states, “Incredibly, some people actually think they have to put words in Trump’s mouth to make him look bad.”

    + +

    + +

    +

    Emery also retweeted an article by New York magazine that claimed President-elect Trump relied on lies to win during his campaign and that we now lived in a “post-truth” society. “Before long we’ll all have forgotten what it was like to live in the same universe; or maybe we already have,” Emery tweeted.

    + +
    +
    +
    + + + +

    + +

    +

    Facebook believe that Emery, along with other Snopes writers, ABC News, and Politifact are impartial enough to label and silence what they believe to be “fake news” on social media.

    +

    Lucas Nolan is a reporter for Breitbart Tech covering issues of free speech and online censorship. Follow him on Twitter @LucasNolan_ or email him at lnolan@breitbart.com

    + +
    +
    +
    + + +
    + +
    + +
    report this ad
    + +
    + +
    Trending Articles
    +
    + + +
    +

    Gloria Steinem: Woman Felt ‘Sexually Assaulted’ by Trump’s…

    +

    Monday on MSNBC’s “All In,” discussing Saturday’s women’s march on Washington, feminist and…

    + +
    +
    +
    +
    + + + + +
    +
    +
    + + + +
    +
    + +
    +
    + +
    + +
    +
    Around The Web Powered By ZergNet
    + +
    + +
    + + +
    +


    Comment count on this article reflects comments made on Breitbart.com and Facebook. Visit Breitbart's Facebook Page.

    +
    + +
    + + + + +
    + + +
    +
    + +
    + + +
    + + + + + + + + + + + +
    + +
    + + + + + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + +
    +
    AddThis Sharing
    +
    +
    ­ + + + diff --git a/test/test-pages/bug-1255978/expected-metadata.json b/test/test-pages/bug-1255978/expected-metadata.json new file mode 100644 index 0000000..7df5a41 --- /dev/null +++ b/test/test-pages/bug-1255978/expected-metadata.json @@ -0,0 +1,7 @@ +{ + "title": "The seven secrets that hotel owners don't want you to know", + "byline": "Hazel Sheffield", + "dir": null, + "excerpt": "Most people go to hotels for the pleasure of sleeping in a giant bed with clean white sheets and waking up to fresh towels in the morning. But those towels and sheets might not be as clean as they look, according to the hotel bosses that responded to an online thread about the things hotel owners don’t want you to know.", + "readerable": true +} diff --git a/test/test-pages/bug-1255978/expected.html b/test/test-pages/bug-1255978/expected.html new file mode 100644 index 0000000..7edba81 --- /dev/null +++ b/test/test-pages/bug-1255978/expected.html @@ -0,0 +1,70 @@ +
    +
    +

    Most people go to hotels for the pleasure of sleeping in a giant bed with clean white sheets and waking up to fresh towels in the morning.

    +

    But those towels and sheets might not be as clean as they look, according to the hotel bosses that responded to an online thread about the things hotel owners don’t want you to know.

    +

    Zeev Sharon and Michael Forrest Jones both run hotel start-ups in the US. Forrest Jones runs the start-up Beechmont Hotels Corporation, a hotel operating company that consults with hotel owners on how they can improve their business. Sharon is the CEO of Hotelied, a start-up that allows people to sign up for discounts at luxury hotels.

    +

    But even luxury hotels aren’t always cleaned as often as they should be.

    +

    Here are some of the secrets that the receptionist will never tell you when you check in, according to answers posted on Quora.

    +
    +
    +
    bandb2.jpg
    +
    +

    Even posh hotels might not wash a blanket in between stays

    +
    +

    1. Take any blankets or duvets off the bed

    +

    Forrest Jones said that anything that comes into contact with any of the previous guest’s skin should be taken out and washed every time the room is made, but that even the fanciest hotels don’t always do so. "Hotels are getting away from comforters. Blankets are here to stay, however. But some hotels are still hesitant about washing them every day if they think they can get out of it," he said.

    +
    +

    Video shows bed bug infestation at New York hotel

    +
    +
    +
    +
    hotel-door-getty.jpg
    +
    +

    Forrest Jones advised stuffing the peep hole with a strip of rolled up notepaper when not in use.

    +
    +

    2. Check the peep hole has not been tampered with

    +

    This is not common, but can happen, Forrest Jones said. He advised stuffing the peep hole with a strip of rolled up notepaper when not in use. When someone knocks on the door, the paper can be removed to check who is there. If no one is visible, he recommends calling the front desk immediately. “I look forward to the day when I can tell you to choose only hotels where every employee who has access to guestroom keys is subjected to a complete public records background check, prior to hire, and every year or two thereafter. But for now, I can't,” he said.

    +
    +
    +
    luggage-3.jpg
    +
    +

    Put luggage on the floor

    +
    +

    3. Don’t use a wooden luggage rack

    +

    Bedbugs love wood. Even though a wooden luggage rack might look nicer and more expensive than a metal one, it’s a breeding ground for bugs. Forrest Jones says guests should put the items they plan to take from bags on other pieces of furniture and leave the bag on the floor.

    +
    +
    +
    Lifestyle-hotels.jpg
    +
    +

    The old rule of thumb is that for every 00 invested in a room, the hotel should charge in average daily rate

    +
    +

    4. Hotel rooms are priced according to how expensive they were to build

    +

    Zeev Sharon said that the old rule of thumb is that for every $1000 invested in a room, the hotel should charge $1 in average daily rate. So a room that cost $300,000 to build, should sell on average for $300/night.

    +

    5. Beware the wall-mounted hairdryer

    +

    It contains the most germs of anything in the room. Other studies have said the TV remote and bedside lamp switches are the most unhygienic. “Perhaps because it's something that's easy for the housekeepers to forget to check or to squirt down with disinfectant,” Forrest Jones said.

    + +

    6. Mini bars almost always lose money

    +

    Despite the snacks in the minibar seeming like the most overpriced food you have ever seen, hotel owners are still struggling to make a profit from those snacks. "Minibars almost always lose money, even when they charge $10 for a Diet Coke,” Sharon said.

    +
    +
    +
    agenda7.jpg
    +
    +

    Towels should always be cleaned between stays

    +
    +

    7. Always made sure the hand towels are clean when you arrive

    +

    Forrest Jones made a discovery when he was helping out with the housekeepers. “You know where you almost always find a hand towel in any recently-vacated hotel room that was occupied by a guy? On the floor, next to the bed, about halfway down, maybe a little toward the foot of the bed. Same spot in the floor, next to almost every bed occupied by a man, in every room. I'll leave the rest to your imagination,” he said.

    + + + +
    +
    \ No newline at end of file diff --git a/test/test-pages/bug-1255978/source.html b/test/test-pages/bug-1255978/source.html new file mode 100644 index 0000000..08840dc --- /dev/null +++ b/test/test-pages/bug-1255978/source.html @@ -0,0 +1,40907 @@ + + + + + + + + + The seven secrets that hotel owners don't want you to know | The Independent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
      + +
    • + +
    • +
      + +
    + +
      + +
    1. + + +
    2. + +
    3. + +
    4. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    + + +
    + +
    + + + +
    + + + +
    + + +

    The seven secrets that hotel owners don't want you to know

    + + +
    +

    Hotel bosses spill the beans on cost cutting and horrible hygiene

    +
    + +
    +
    + + + + + + + + + + +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    + + + + + + + +
    +
    + + + + + + + + +
    +
    +
    + +
    +
    +
    +
    +
    +
    + + + + + + + +
    +
    +
    +

    Most people go to hotels for the pleasure of sleeping in a giant bed with clean white sheets and waking up to fresh towels in the morning.

    + +

    But those towels and sheets might not be as clean as they look, according to the hotel bosses that responded to an online thread about the things hotel owners don’t want you to know.

    + +

    Zeev Sharon and Michael Forrest Jones both run hotel start-ups in the US. Forrest Jones runs the start-up Beechmont Hotels Corporation, a hotel operating company that consults with hotel owners on how they can improve their business. Sharon is the CEO of Hotelied, a start-up that allows people to sign up for discounts at luxury hotels.

    + +

    But even luxury hotels aren’t always cleaned as often as they should be.

    + +

    Here are some of the secrets that the receptionist will never tell you when you check in, according to answers posted on Quora.

    + +

    + +
    +
    + +
    bandb2.jpg
    + +
    +
    + Even posh hotels might not wash a blanket in between stays + +
    +
    + +

    1. Take any blankets or duvets off the bed

    + +

    Forrest Jones said that anything that comes into contact with any of the previous guest’s skin should be taken out and washed every time the room is made, but that even the fanciest hotels don’t always do so. "Hotels are getting away from comforters. Blankets are here to stay, however. But some hotels are still hesitant about washing them every day if they think they can get out of it," he said.

    + +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    Play Video
    +
    +
    Play
    +
    +
    +
    +
    +
    +
    +
    +
    Mute
    +
    +
    Current Time 0:00
    +
    +
    +
    /
    +
    +
    +
    Duration Time 0:00
    +
    +
    +
    +
    Loaded: 0% +
    +
    +
    Progress: 0% +
    +
    +
    +
    +
    Stream TypeLIVE
    +
    +
    +
    Remaining Time -0:00
    +
    +
    +
    Share
    + + + + + + +
    Fullscreen
    +
    + +
    +
    +
    +
    + + + + + +
    + +
    + + + + + +
    + +
    + + + + + +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    +
    +
    + + +
    +
    + + +
    + +
    + +
    + +
    +
    Video shows bed bug infestation at New York hotel
    +
    + +

    + +
    +
    + +
    hotel-door-getty.jpg
    + +
    +
    + Forrest Jones advised stuffing the peep hole with a strip of rolled up notepaper when not in use. + +
    +
    + +

    2. Check the peep hole has not been tampered with

    + +

    This is not common, but can happen, Forrest Jones said. He advised stuffing the peep hole with a strip of rolled up notepaper when not in use. When someone knocks on the door, the paper can be removed to check who is there. If no one is visible, he recommends calling the front desk immediately. “I look forward to the day when I can tell you to choose only hotels where every employee who has access to guestroom keys is subjected to a complete public records background check, prior to hire, and every year or two thereafter. But for now, I can't,” he said.

    + +

    + +
    +
    + +
    luggage-3.jpg
    + +
    +
    + Put luggage on the floor + +
    +
    + +

    3. Don’t use a wooden luggage rack

    + +

    Bedbugs love wood. Even though a wooden luggage rack might look nicer and more expensive than a metal one, it’s a breeding ground for bugs. Forrest Jones says guests should put the items they plan to take from bags on other pieces of furniture and leave the bag on the floor.

    + +

    + +
    +
    + +
    Lifestyle-hotels.jpg
    + +
    +
    + The old rule of thumb is that for every 00 invested in a room, the hotel should charge in average daily rate + +
    +
    + +

    4. Hotel rooms are priced according to how expensive they were to build

    + +

    Zeev Sharon said that the old rule of thumb is that for every $1000 invested in a room, the hotel should charge $1 in average daily rate. So a room that cost $300,000 to build, should sell on average for $300/night.

    + + + +

    5. Beware the wall-mounted hairdryer

    + +

    It contains the most germs of anything in the room. Other studies have said the TV remote and bedside lamp switches are the most unhygienic. “Perhaps because it's something that's easy for the housekeepers to forget to check or to squirt down with disinfectant,” Forrest Jones said.

    + +

    + + + +

    6. Mini bars almost always lose money

    + +

    Despite the snacks in the minibar seeming like the most overpriced food you have ever seen, hotel owners are still struggling to make a profit from those snacks. "Minibars almost always lose money, even when they charge $10 for a Diet Coke,” Sharon said.

    + +

    + +
    +
    + +
    agenda7.jpg
    + +
    +
    + Towels should always be cleaned between stays + +
    +
    + +

    7. Always made sure the hand towels are clean when you arrive

    + +

    Forrest Jones made a discovery when he was helping out with the housekeepers. “You know where you almost always find a hand towel in any recently-vacated hotel room that was occupied by a guy? On the floor, next to the bed, about halfway down, maybe a little toward the foot of the bed. Same spot in the floor, next to almost every bed occupied by a man, in every room. I'll leave the rest to your imagination,” he said.

    + + +
    +
    + + + + + + + + + + +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    +
    + + + + + + + +
    +
    + + + + + + + + +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +

    Comments

    +
    +
    +
    +
    + +
    + +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
      +
      +

      +
      +
      + +
      +
      +
      +
      +
      0 Comments
      +
      + +
      +
      +
      + +
      +
      + +
      + +
      + +
      + +
      + +
      +
      + +
      +
      + + + +
      +
      + +
      +
      + +
      +
      + +
      + + + + +
      + + + + + + + + + +
      + + + + + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      +
      +
      + + + +
      +
      +
      +
      +
      + + diff --git a/test/test-pages/buzzfeed-1/source.html b/test/test-pages/buzzfeed-1/source.html index bc099b5..f51556a 100644 --- a/test/test-pages/buzzfeed-1/source.html +++ b/test/test-pages/buzzfeed-1/source.html @@ -264,9 +264,9 @@ - if (AB_RND_VAL >= 0 && AB_RND_VAL < 33) { + if (AB_RND_VAL >= 0 && AB_RND_VAL < 33) { AD_SIDEWIDE_BSU_REDESIGN = 'bsu_a'; - } else if (AB_RND_VAL > 33 && AB_RND_VAL <= 66) { + } else if (AB_RND_VAL > 33 && AB_RND_VAL <= 66) { AD_SIDEWIDE_BSU_REDESIGN = 'bsu_b'; } else { AD_SIDEWIDE_BSU_REDESIGN = 'bsu_c' @@ -281,7 +281,7 @@ var AD_DESIGN, AD_THUMBNAIL; AD_THUMBNAIL = 'thumbnailcontrol'; - if (AB_RND_VAL >= 0 && AB_RND_VAL < 0) { + if (AB_RND_VAL >= 0 && AB_RND_VAL < 0) { AD_DESIGN = 'script'; } else { AD_DESIGN = 'gpt'; @@ -527,9 +527,9 @@ }; var cookieBarVerticalBpageMessage = { - 'fr': "Vous connaissez BuzzFeed France? C'est par ici!", - 'es': "Ya viste BuzzFeed en Español? ¡Pasa a darle una mirada!", - 'pt': "Já viu BuzzFeed Brasil? Venha conferir!" + 'fr': "Vous connaissez BuzzFeed France? <a href='" + homePageLink['fr'] + "'>C'est par ici!</a>", + 'es': "Ya viste BuzzFeed en Español? <a href='" + homePageLink['es'] + "'>¡Pasa a darle una mirada!</a>", + 'pt': "Já viu BuzzFeed Brasil? <a href='" + homePageLink['pt'] + "'>Venha conferir!</a>" }; @@ -905,7 +905,7 @@ QuantcastCounter = 0; function QuantPageLoad() { - if (typeof(_qevents) == 'undefined' && QuantcastCounter < 20) { + if (typeof(_qevents) == 'undefined' && QuantcastCounter < 20) { QuantcastCounter++; setTimeout("QuantPageLoad()", 250); return false; @@ -3272,7 +3272,7 @@ }) } else { if (!BF_STATIC.bf_test_mode || document.cookie.match('sel2_ad') !== null) { - document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); + document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); } else { console.info('disable DFP (dfp_tags.tt)'); } @@ -3843,7 +3843,7 @@ }) } else { if (!BF_STATIC.bf_test_mode || document.cookie.match('sel2_ad') !== null) { - document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); + document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); } else { console.info('disable DFP (dfp_tags.tt)'); } @@ -4083,7 +4083,7 @@ }) } else { if (!BF_STATIC.bf_test_mode || document.cookie.match('sel2_ad') !== null) { - document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); + document.write('<' + 'scr' + 'ipt type="text/javascr' + 'ipt" src="' + ad_tag + '"><\/scr' + 'ipt' + '>'); } else { console.info('disable DFP (dfp_tags.tt)'); } @@ -4336,7 +4336,7 @@ "active": "1", "original_image_height": "578", "height": "83", - "description": "In my secular life, I'm a marathoner and stand-up comic. In the eyes of the church, I'm a charity case.", + "description": "<b>In my secular life, I'm a marathoner and stand-up comic.</b> In the eyes of the church, I'm a charity case.", "image": "/static/2015-04/27/9/campaign_images/webdr02/mormon-childless-and-constantly-condescended-to-2-8804-1430140118-12.jpg", "old": "0", "promotion_medium_id": "1", @@ -4387,7 +4387,7 @@ "active": "1", "original_image_height": "578", "height": "83", - "description": "In my secular life, I'm a marathoner and stand-up comic. In the eyes of the church, I'm a charity case.", + "description": "<b>In my secular life, I'm a marathoner and stand-up comic.</b> In the eyes of the church, I'm a charity case.", "image": "/static/2015-04/27/9/campaign_images/webdr02/mormon-childless-and-constantly-condescended-to-2-8804-1430140118-12.jpg", "old": "0", "promotion_medium_id": "1", @@ -4438,7 +4438,7 @@ "active": "1", "original_image_height": "578", "height": "83", - "description": "In my secular life, I'm a marathoner and stand-up comic. In the eyes of the church, I'm a charity case.", + "description": "<b>In my secular life, I'm a marathoner and stand-up comic.</b> In the eyes of the church, I'm a charity case.", "image": "/static/2015-04/27/9/campaign_images/webdr02/mormon-childless-and-constantly-condescended-to-2-8804-1430140118-12.jpg", "old": "0", "promotion_medium_id": "1", @@ -4489,7 +4489,7 @@ "active": "1", "original_image_height": "578", "height": "83", - "description": "In my secular life, I'm a marathoner and stand-up comic. In the eyes of the church, I'm a charity case.", + "description": "<b>In my secular life, I'm a marathoner and stand-up comic.</b> In the eyes of the church, I'm a charity case.", "image": "/static/2015-04/27/9/campaign_images/webdr02/mormon-childless-and-constantly-condescended-to-2-8804-1430140122-14.jpg", "old": "0", "promotion_medium_id": "1", @@ -4499,8 +4499,8 @@ "original_image": "/static/2015-04/25/20/enhanced/webdr13/original-25550-1430009073-11.jpg" }]; var opts = []; - for (var i = 0; i < promotions.length; i++) - for (var j = 0; j < (promotions[i].probability * 100); j++) opts.push(promotions[i]); + for (var i = 0; i < promotions.length; i++) + for (var j = 0; j < (promotions[i].probability * 100); j++) opts.push(promotions[i]); var sel_promo = opts[Math.floor(Math.random() * opts.length)]; imp_attr_3762507_13.FLEX_PRO_IMP = sel_promo.id; click_attr_3762507_13.FLEX_PRO_CLICK = sel_promo.id; @@ -4508,16 +4508,16 @@