text:
SockJs-Wrap
===========
A simple SockJS wrapper for Node.

    * Client callbacks and custom data events.
    * Authentication of clients, and keeping track of them.
    * Send, broadcast and broadcastTo functionality.
    * The server and client are both made the Node way.
    * Using browser and server compatible Event module EventEmitter3

How to use
=========

To install `sockjs-wrap` run:

    npm install sockjs-wrap

Run the full example:
``` npm run example ```
Run mocha tests:
``` npm test ```

Simple example
==============
A simple example taken from the [SockJS-node](https://github.com/sockjs/sockjs-node) page with the new wrapper instead of handeling events directly.

```javascript
var http = require('http');
var sockjs = require('sockjs');
// Require the wrapper
var Connection = new (require('sockjs-wrap'))();

var echo = sockjs.createServer({ sockjs_url: 'http://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js' });
var server = http.createServer();
echo.installHandlers(server, {prefix:'/echo'});
server.listen(9876, '0.0.0.0');

// Attach the sockjs server to the wrapper
Connection.start(echo);

// Now you can listen to your own custom events
Connection.on('some_event_or_something_else', function(data, callback){
    console.log("Some data received : ", data);
	// And execute callbacks to the client
    callback({hello: "Hi"});
    // Send to all clients
    Connection.broadcast('some_event', {some: 'data'});
});
```
And the client
```javascript
// Require the client or make sure the client.js is in your html before this code runs
var  Connection  = new (require('sockjs-wrap/client'))();

// On successful connection
Connection.on('connect', function(){
    // Send any event you want, with an oject of data and an optional callback
    Connection.send('some_event_or_something_else', {data: "Hello there"}, function(data){
        console.log("The server called our callback: ", data);
    });
});

// Start the connection
// If the SockJS client is in your HTML before you start
Connection.start({
    port: 9876,
    sockjs_path: '/echo'
});

// Or if you require the SockJS client:
var SockJS = require('sockjs-client');
Connection.start(SockJS, {
    port: 9876,
    sockjs_path: '/echo'
});
```

Authentication example
======================
This is a simplified version of how the authentication process works.

```javascript
... Start the http servers and everything else ...

// Default authentication is off, so turn it on
Connection.start(Sockjs_echo, {authentication: true});
Connection.on('authenticate', function(data, callback){
    // Fetch your user from DB or memory on data.token
    var user = SomeClass.findUserByToken(data.token); // Dummy function
    if(user){
        // The wrapper added an authentication function to the data object if the client wants to authenticate
        // the user object must contain an id property
        if(data.authenticate(user)) {
            callback({result: true});
        }
    }
});

// Connection fires authenticated event when successful
Connection.on('authenticated', function(user){
    // Do anything you want
});
```
And the Client
```javascript
Connection.on('connect', function () {
    var my_client_token = "g75184g15438g517g";
    Connection.authenticate(my_client_token);
});

Connection.on('authenticated', function (data) {
    // data will be the data given to the callback function on the server
    // The user might have failed authentication here so be sure to check data for the result
});
```
* [Simple example](https://github.com/timhuijgen/sockjs-wrap/tree/master/examples/simple)
* [Full example](https://github.com/timhuijgen/sockjs-wrap/tree/master/examples/full)

Any messages send to the server by the client while not authenticated successfully will get an error back.
If you want to use authentication you can call
`
Connection.require_authentication = true;
`
before the connection is started, or give
`
{authentication: true}
`
as a second parameter to the start function.

Predefined events (both client and server):
* connect
* close
* authenticate
* authenticated

redpajama_set_name: RedPajamaGithub


text:
TV ReviewsThe Vampire DiariesSeason 5
The Vampire Diaries: "Rescue Me"
Carrie Raisler
The Vampire DiariesSeason 5
"Rescue Me"
Sometimes The Vampire Diaries is just a bunch of people doing stuff to mark time until they get to do the more interesting, important stuff. The show is a master at churning plot, but by establishing a series that basically runs on pure plot, sometimes an episode or two is all setup and very little payoff. "Rescue Me" feels like one of those episodes you could simply remove from the season completely without skipping too many beats. It's not bad; just a bit unnecessary.
That's not to say nothing happens at all here. The next big threat of the season is effectively teased, and it appears to be the leader of the Travelers, Marcos. The entire episode is basically the setup to get him to Mystic Falls, using the blood of the last two doppelgangers to do so. Before this can happen, however, Caroline and Enzo go on a hunt for the other living doppelganger, a normal dude named Tom (with disappointingly flat hair) who works as a paramedic in Atlanta. Watching Caroline and Enzo work opposing missions—Enzo wants to kill Tom; Caroline wants to keep him alive—is good fun; Candice Accola and Michael Malarkey have a fun chemistry, and Enzo's satisfaction with his murderous vampire nature is a breath of fresh air amongst all the "good" vampires on the show. But ultimately? We all knew this would end with Tom dead, because how else could the Travelers complete their evil plan and fulfill their destiny as the next big threat for the gang to overcome?
This storytelling cycle has been such a reliable go-to for the show, and the writers do it so well, but at times, it inevitably shows the strings guiding it along the way. Those strings are very apparent here as Liv—previously introduced as a random witch Bonnie picked up at Whitmore—takes center stage, alongside her brother, Luke. Their race to the forefront isn't the most graceful transition, especially because their mission is very ill-defined. Essentially, the Travelers are lesser witches up to something evil, and pure witches Liv and Luke are tasked to stop them. What doesn't quite make sense is why Liv was so insistent on sneaking into Elena's life, rather than roaring in and simply killing her to begin with. Why not explain to Bonnie exactly what was going on with the Travelers? Why not enlist everyone's help to defeat them? The answer, at least at this point, appears to be "because the plot demands it," which isn't very satisfying.
One relatively big development that does happen in this episode is that Jeremy finally declares his independence from Elena. Well, sort of: He up and moves out of the Salvatore mansion and in with Matt and Tyler, which is him declaring his independence. But the inciting incident that causes him to do this is because he wants to work with Liv to protect Elena without any interference. So really, his big moment of independence is still all in service of Elena Gilbert. As Liv says to Luke, "Turns out Elena's friends are right. The world actually does revolve around her." At times, it can't help but feel like The Vampire Diaries' insistence on sticking to this mantra is dragging down the show a bit. Does Elena really need both Damon and Jeremy to face off with each other about how they are going to protect her, while she's standing right there? Elena is a damn vampire. Can't she protect herself?
But protect Elena everyone must, I suppose, since the Travelers were able to execute their big plan to bring Marcos out of… wherever he was. The end sequence where the Travelers set themselves on fire in order to pass through Bonnie to the other side was effectively creepy and confusing, ending with someone—presumably Marcos—crossing back over through Bonnie somehow. It's an intriguing setup, but in the end that's all "Rescue Me" really was: setup. Now it's up to the show to start knocking these story beats down.
Elena and Damon broke up. Again. A mutual back-scratching relationship would have been far more interesting, but I suppose this is more emotionally healthy for them both in the long run.
It was so strange to see a completely carefree, relaxed version of Paul Wesley on this show. Even when he's "happy," Stefan is so controlled. Tom felt a little like an alien in contrast.
I don't know how to feel about the Stefan and Caroline scenes tonight. Tell me how to feel.
Stefanganger! Doppelbomb! Caroline has the best made-up words.
How long until we meet Enzo's precious Maggie? And will she be evil? Any plans the show has to increase Enzo's screen time works for me.
This week, in Matt Donovan Is The Best: "I'm only listening to you because I'm getting paid."
Recent from Carrie Raisler
iZombie wraps up an ambitious but frustrating season (mostly) in a bow
Witch hunts and benevolent kidnappings enliven a much-improved iZombie
iZombie takes a stylistic risk that doesn't pay off

redpajama_set_name: RedPajamaCommonCrawl


text:
Nick Spencer and Substack Have Teamed Up to Launch a Comics Imprint
by Jude Terror
Substack, the newsletter platform that allows writers to charge a subscription fee for a newsletter, is getting into the comics business. According to a report by Business Insider, Substack is looking to offer comic book creators a "new revenue model" based on the book publishing world, where creators would be offered an advance, plus a percentage of subscription fees (after the first year, where Substack recoups its advance), to hire a team and make a comic which would be published digitally on Substack. Creators would retain the rights to the intellectual property they create, according to the report.
The man who brought you this will now help usher in a new era for comics: the Substack Era.
Substack knows that comic book creators, a superstitious and cowardly lot, will be skeptical of this offer, largely because the comic book industry has a long history of sucking the marrow from the bones of its creators, extracting valuable intellectual property to make billion-dollar movie franchises, and leaving the creators to panhandle on social media to pay their medical expenses later in life. And there's rarely an already bad situation that is made better by the intervention of Silicon Valley. So substack has hired Nick Spencer as an ambassador to try to get other comic book creators to sign up.
"We see anything that shows promise as a priority, and fiction is starting to show promise," said Substack co-founder Hamish McKenzie in the article. The article implies that Substack is making deals specifically with writers, mentioning that the writers can use the money to hire artists. "With the Substack model, they get to own the IP, and because of Substack Pro they get the resources they need upfront," added McKenzie, who we're beginning to think may believe he's created the concept of creator-owned comics.
Nick Spencer has long been a pioneer of using internet technology in new and innovative ways to promote comics. For example, during the 2016 Democratic primary cycle, Spencer used his Twitter platform to make a never-ending stream of tweets, sometimes hundreds per day, lecturing followers on the virtues of nominating Hillary Clinton, who Spencer was certain was a surefire bet to beat Donald Trump, and denouncing Bernie Sanders and his supporters, the Bernie Bros, while simultaneously defending his decision to write a comic where Captain America is actually a Nazi. It's not clear how this helped promote Spencer's comics, but afterward, he became the writer of Amazing Spider-Man, and then Substack gave him a bunch of money, so it worked out well in the end for his career.
Posted in: Comics | Tagged: Comics, nick spencer, substack
About Jude Terror
A prophecy claims that in the comic book industry's darkest days, a hero would come to lead the people through a plague of overpriced floppies, incentive variant covers, #1 issue reboots, and super-mega-crossover events. Unfortunately, nobody can tell when the comics industry has reached its "darkest days" because it somehow keeps finding new lows to sink to. No matter! Jude Terror stands vigilant, bringing the snarkiest of comic book and pro wrestling clickbait to the undeserving readers of Bleeding Cool.
Latest by Jude Terror
Venom #4 Preview: Venom to the Rescue
The Venom symbiote is Dylan Brock's only hope for rescue in this preview of Venom #4, in stores Wednesday from Marvel.
Moon Knight #7 Preview: The Thing is Still Cool Though
Moon Knight reveals the pettiness of The Avengers who took him off their Hanukkah card list in this preview of Moon Knight #7.
Strange Academy #15 Preview: Student vs. Student?
The students of Strange Academy go head-to-head in this preview of Strange Academy #15... but it's not a crossover event. It's just combat training.
Star Wars: The High Republic #13 Preview: Should Be #420, Maaaan
If the High Republic isn't a stoner spinoff of Star Wars, then how do you explain all the green smoke in this preview of Star Wars: The High Republic #13?


1. A Team Event representing individual country.
2. Each Team consists of four (4) players (men).
3. Nationality from all ten ASEAN nations (Malaysia, Brunei Darulsalam, Cambodia, Indonesia, Lao PDR, Myanmar, the Philippines, Singapore, Thailand and Vietnam).
4. Each Country may send more than 1 team.
5. Women will play on individual event.
7. Green Fee for each golfer is US$63.00 (includes cart) will be collected at the Registration Desk.
11. Individual team with the lowest average score (of 4 players) will be a winner.
12. Women with the lowest score will be a winner.
Registration & Questions: ikram.ismail@gmail.com or Jroslan97@gmail.com .


Project Description: Construction of the 280 bed, 4 story addition to the existing Westchester County correctional facility presented the challenge of demolishing an existing building in the same footprint of the new building then constructing the new addition surrounded by a fully occupied and high security prison. Major building components include reinforced concrete superstructure with a brick exterior and detention grade curtainwall glazing system. Interior spaces included CMU and concrete cell spaces, day rooms, dining areas, holding areas, shower rooms, and isolation and supervisory spaces. Coordinating mechanical systems and power feeds to connect to existing building services required careful planning, as did timing of work crews to allow uninterrupted use of the existing facility.


text:
Looney Tunes 1951 The Wearing of the Grin
On his way to Dublin, Porky Pig is caught in a storm and must ask for the hospitality of the inhabitant of a nearby castle who calls himself "Seamus O'Toole." After being told there is no one inhabiting the place but leprechauns, Porky dimisses the information, but then accidentally gets hit on the head with a mace and loses consciousness. At that point, "O'Toole" is revealed to be a pair of leprechauns disguised as a human being. Pat, the first one, is very nervous and thinks Porky is after their pot of gold. Mike, the second leprechaun, convinces his partner that he knows how to deal with the Pig. When Porky wakes up, he is helped to a room by a "reunited" O'Toole who, during the short trip to the room, gets accidentally divided in two again. As Porky notices, he mentions to the top half of O'Toole that he has lost his lower half, and realizing that "O'Toole" is actually two leprachauns, is terrified and runs and hides in his bed, which happens to be a trap door leading to a shaft where Porky drops until he falls into the witness chair in a courtroom. There the Leprechauns find him guilty of trying to steal the pot of gold and sentence him to the wearing of the Green Shoes.
Originally Aired Wednesday, July 4, 1951
Last Updated By rynoc