A Step-by-step Introduction to JavaScript Sets

See the original posting on DZone Python

As mentioned previously, we have a new JavaScript standard commonly known as ECMAScript 6 (ES6). I’ve spent quite a bit of time recently reading around the new features outlined in the standard that are coming to, or have been recently implemented in, our browsers. One of my favorite additions is the new Set type. A set is somewhat like an array. It’s a place to store values: numbers, strings, objects, actual arrays, Booleans, other sets, etc. The most notable difference is that it will only store the same element once.

Creating and Adding Elements to a Set

It’s really easy to set-up a new, empty set:

Because GitHub Decided I Had to: Convert From Textile to Markdown

See the original posting on DZone Python

The announcement details a few things: Textile support is going to disappear, Markdown will only be implemented via Kramdown, and Pygments is disappearing and being replaced by the compatible (and faster) Rouge syntax highlighting.

Some of those changes have dates like “Starting May 1st, 2016, GitHub Pages will no longer support Textile.” Some things don’t have dates stated and are more aggressive: Starting immediately though, Pygments is not supported. If you use Github Pages, your next push will not deploy pages that use Pygments. The blog entry does not state explicitly that Rouge is not supported in Textile presently, so converting the Pygments sections to Rouge but staying in Textile is not going to leave you with polished pages—the Rouge sections will be unprocessed in the final HTML page. Again, that’s missing from the announcement.

Reactive Spring in the Works

See the original posting on DZone Python

At SpringOne2GX 2015, Juergen announced plans for Spring Framework 5 with a major focus on reactive architectures. Concrete efforts are already underway and a lot has happened since!

At the most basic level, reactive programming models allow for writing non-blocking services and applications. This requires a fundamental shift from writing imperative logic to async, non-blocking, functional-style code, in particular when interacting with external resources.

Introducing JavaScript’s Math Functions

See the original posting on DZone Python

As of June 2015, the world has a new JavaScript standard. Officially called ECMAScript 2015, but commonly known as ECMAScript 6 (ES6) and sometimes ECMAScript Harmony or ECMAScript.next, the specifications detail a broad range of new features you can expect to see being implemented in browsers in the coming months and years. This includes—but is not limited to—block-level scoped variables let and const, new class syntax, default parameters, modules, sets, and template strings. It also includes some useful additions to the Math object. Unlike most new features of ES6 at the time of writing, (almost in their entirety) these features have already been implemented in the desktop versions of Chrome, Firefox, Safari, and Opera, as well as Microsoft Edge (though not Internet Explorer). Support in mobile browsers is weaker.

None of these new additions are anything groundbreaking. In fact, it’s more about adding basic math functionality that is already present in most popular languages. I still think it’s worth taking a look at some of them as they will likely be overlooked in other guides to ES6. MDN has simple polyfills for all of them, so if you want to use them on your production site you can, even if you get significant mobile traffic.

Angular 2: Attribute @Directive() and Creating An Infinite Scroll Directive

See the original posting on DZone Python

In the recent article, I used the new “ng-repeat” in angular 2, “NgFor, and created component that consumes other custom component. In this article, I continue to show further development for Echoes Player with Angular 2, this time – making it more dynamic by adding an infinite scroll directive, what is known in Angular 2 as an attribute directive.

Angular 1.x Infinite Scroll

In the current production of Echoes Player, in order to add more videos to the result while scrolling, I used “ng-infinite-scroll“. It has a nice minimal directive api for triggering an infinite scroll — and the usage for Echoes Player is quite simple:

Secure Your SparkJava Webapp With pac4j

See the original posting on DZone Python

I’m proud to announce the release of spark-pac4j v1.1 (https://github.com/pac4j/spark-pac4j) based on pac4j v1.8 (https://github.com/pac4j/pac4j) for any SparkJava v2.3 web application. It’s a full security library, easy and powerful, which supports authentication and authorization, but also application logout and advanced features like CSRF protection.

It supports most authentication mechanisms: OAuth (Facebook, Twitter, Google, Yahoo…), CAS, HTTP (form, basic auth…), OpenID Connect, SAML, Google App Engine, JWT, LDAP, RDBMS, MongoDB, and Stormpath as well as most authorization checks (role/permission, CSRF token…)

A Guide to Building Your First Windows App

See the original posting on DZone Python

In case you missed our last blog post, we discussed some of the reasons why mobile developers are starting to deploy more and more apps on Windows. Since the Windows 10 launch, there are over 200 million reasons why it makes sense for developers to get excited about it. Fortunately, the barrier to enter is low, since Microsoft provides excellent support for building your apps in the traditional C#/XAML, but also with Javascript/HTML.

To show you just how easy it is, this tutorial will show you how to build a full Windows 10 app, using the widely-known Javascript/HTML languages. It will leverage WinJS, an open-source framework created by Microsoft that provides Windows UI components with Javascript bindings to help our app fit right in with the rest of the platform.

Create a Slack-ish Desktop Chat Application Using the CEAN Stack and Electron

See the original posting on DZone Python

So, you’re interested in creating a desktop chat application like Slack, but aren’t sure where to start. Slack was very open in saying that they used Github’s Electron platform for building the desktop version of their software. This means that Slack was developed using web technologies.

We’re going to see how to create a real-time chat desktop application that is nowhere near as feature rich as Slack, but it will give you perspective on how you could expand to that point.

How to Make Apps With Custom Keyboard Shortcuts

See the original posting on DZone Python

Check out the new video below to learn how to make apps with custom keyboard shortcuts using Alpha Anywhere, a rapid application development platform.

Within Alpha Anywhere, the TabbedUI component is a great way for navigating to the different components that make up an application. You can assign keyboard shortcuts to the different buttons in the TabbedUI that launch components.

Hello, Nodal? —? Building Node.js Servers for Everybody

See the original posting on DZone Python

Just under two weeks ago I announced the first big “soft-launch” of Nodal (http://www.nodaljs.com) with a Hacker News post. The response I have received so far has been tremendous, to say the least. With tens of thousands of views on the YouTube tutorials, plenty of interest on GitHub, and a very helpful team of early-adopting contributors, I’m extremely optimistic and excited about the future. (You’re welcome to join us on GitHub.)

To give a high-level overview, Nodal is a Node.js server platform and framework with a bunch of neat bells and whistles designed to make the developer’s life easier. It boasts all of the modern luxuries we’ve grown accustomed to from giants like Rails and Django; PostgreSQL integration, migrations, an ORM, routing, models, controllers, scheduled tasks, a CLI, automatic code-generation, and much more.

The Watson Tone Analyzer for WordPress

See the original posting on DZone Python

With the Watson Tone Analyzer service on IBM Bluemix you can discover, understand, and revise the language tones in text before you publish, send, or share it. Below is a little sample of how to invoke the service from WordPress via a simple Chrome extension.

In the WordPress dashboard, you can click the Watson icon in the Chrome toolbar. The triggered code of the extension injects some JavaScript in the page to read the content of the text area and sends it to the extension.

Multi Content Projection aka Multiple Transclusion

See the original posting on DZone Python

If you’re an Angular developer, I’m sure you’ve heard about transclusion. Sounds really weird and mysterious, at least that’s what I thought when I first heard it.

If you Google for it, you’ll probably land on one of Thoughtram’s articles (as you’ll do 90% of the time if you search for Angular articles). That one is about multiple transclusion and named slots which are available in Angular 1.5. They basically allow you to specify multiple regions within your component’s template, which can be provided by the component user. This is a huge improvement as previously you had to do a couple of hacks to arrive to the same result.

The MVVM Pattern – Services, Helpers, and Templates

See the original posting on DZone Python

In this last post of the series about MVVM we’re going to introduce some concepts and libraries that can make your life easier when you develop a Universal Windows app leveraging the MVVM pattern.

Services, Services, and Services

In one of the previous posts we created a sample app to display a list of news retrieved from an RSS feed. While developing the app, we introduced the concept of service: a class that takes care of performing some operations and passing the results to the ViewModel. Services can also be useful to reach another important goal of the MVVM pattern: avoiding writing platform specific code directly in the ViewModel to make it easier to share with other platforms or applications. As usual, I prefer to explain concepts with real examples, so let’s start with a new one.

Four Mistakes to Avoid With Local SEO — Hearsay Social

See the original posting on DZone Python

shutterstock_95646130When consumers seek financially-related information or a financial advisor, they often do so online. Usually this happens with a quick Google search. In order to show up in the search results, it’s important to have advisor websites that are optimized for local search. Why? Google has been prioritizing local-friendly websites for years and, as of last year, gives local, mobile-optimized sites higher priority

To help you increase your chances of search engine success, here are four local SEO mistakes to avoid:

Secure Your Vertx 3 App With Pac4j

See the original posting on DZone Python

I’m proud to announce the release of vertx-pac4j v2.0 (https://github.com/pac4j/vertx-pac4j) based on pac4j v1.8 (https://github.com/pac4j/pac4j) for any Vert.x 3 web application. It’s now a full security library, easy and powerful, which supports authentication and authorization, but also application logout and advanced features like CSRF protection.

It supports most authentication mechanisms: OAuth (Facebook, Twitter, Google, Yahoo…), CAS, HTTP (form, basic auth…), OpenID, SAML, Google App Engine, OpenID Connect, JWT, LDAP, RDBMS, MongoDB, and Stormpath and authorization checks (role/permission, CSRF token…)

1 71 72 73 74 75 108