How Intel uses Node.js?

Monica Ene-Pietrosanu, a software engineering director in the Intel, share Intel's experience about using Node.js
Sergey Siminskiy's picture
Sergey Siminskiy
11 August

Monica Ene-Pietrosanu, a software engineering director in the Intel, leads a team of highly skilled performance engineers and compiler experts for optimizing runtimes for the most popular scripting languages used in the cloud, including Python, Node.js, and PHP. The Intel Software and Services Group works closely with developers to gain insight, enhance innovation and offer the best possible performance, uptime, and efficiency.

In this video, Monica shares that a primary focus area for her team is to understand the needs the market has for optimizing Intel’s multi-processors through these scripting languages. Monica and her team connect with customers who are using the languages and uncover their specific obstacles and the processes taken to overcome them. In this conversation, Monica describes the solid growth of Node.js as a tool in both the front and back end. She also explains how Node.js has helped companies increase their productivity and accelerate time to market.

The discussion also covers Intel’s overall investment in the open source industry and the organization’s specific contributions to Node.js, including those with V8, Node.js core, the Outreachy Mentor Program, and other diversity efforts.

How to set "check" to a checkbox in jQuery?

Small jQuery tutorial on common issue with code examples
Sergey Siminskiy's picture
Sergey Siminskiy
21 August

Let's consider three options for different versions of jQuery.

jQuery 1.6+

Use the new .prop() method:

$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);

jQuery 1.5.x and below

The .prop() method is not available, so you need to use .attr().

$('.myCheckbox').attr('checked', true);
$('.myCheckbox').attr('checked', false);

Note that this is the approach used by jQuery's unit tests prior to version 1.6 and is preferable to using

$('.myCheckbox').removeAttr('checked');

since the latter will, if the box was initially checked, change the behaviour of a call to .reset() on any form that contains it - a subtle but probably unwelcome behaviour change.

Any version of jQuery

If you're working with just one element, you can always just modify the HTMLInputElement's .checked property:

$('.myCheckbox')[0].checked = true;
$('.myCheckbox')[0].checked = false;

The benefit to using the .prop() and .attr() methods instead of this is that they will operate on all matched elements.