Shineyrock web design & consultancy

Shineyrock

Searched for: "undefined" / 43 results

Understanding the Magic of Bloom Filters With Node.js & Redis

…undefined') { //skip this route, go to the next one - will result in a 404 / not found next('route'); } else { filter.contains( req.query.username, // the username from the query string function(err, result) { if (err) { next(err); //if an error is encountered, send it to the client }…


Validating Data With JSON-Schema, Part 2

…undefined value (or if the path doesn’t exist in the object). So what is the string value in the “$data” reference? It looks similar to JSON-pointer but it is not exactly it. It is a relative JSON-pointer that is defined by this standard draft. It consists of an integer number…


An Introduction to Web MIDI

…undefined) { // Web MIDI is available. } else { // Web MIDI is not available. }If the requestMIDIAccess function exists then Web MIDI is available for us to use, and we can ask the browser for access to the user's MIDI devices.Requesting MIDI AccessDue to the nature of Web…


What Is jQuery?

…Undefined? 20 Useful jQuery Sliders Uncommon jQuery Selectors Create a Find and Replace Plugin in jQuery Conclusion Understanding what jQuery is (and what it isn't) and how it's related to JavaScript is important so that you know what's being done for you and what you can do when needing to…


Backbone Views and the DOM

…undefined, which does not * exist! */ aView.render().el; // Should throw an error // Try accessing the HTML console.log(aView.el); // Should be empty (but defined!) // add HTML to the DOM of 'aView' aView.render(); // Try accessing the HTML again console.log(aView.el) // Should contain the HTML Uhh, Nothing Is on…


Building a Store Finder With Node.js and Redis

…undefined) for the client. ... redis = require('redis'), client, ...After the variable declaration, we’ll need to create the connection to Redis. In our example, we’ll assume a localhost connection at the default port and with no authentication (in a production environment, make sure to protect your Redis server). client =…


Grokking Scope in JavaScript

…undefined. Step 1: Compilation// I can use first_name anywhere in this program var first_name = "Peleke"; function popup (first_name) { // I can only use last_name inside of this function var last_name = "Sengstacke"; alert(first_name + ' ' + last_name); } popup(first_name);Let's step through what the compiler does.First, it reads…


Programming With Yii2: Automated Testing With Codeception

…undefined function tests\codeception\unit\models\expect()&#039; I'll address unit testing again in our Startup series which does not use yii2-user but instead uses the Yii Advanced tree's built-in user integration.Let's look at a couple of examples from the Yii2-app-basic tree.Testing Contact Form EmailsThe hello/tests/codeception/unit/models/ContactFormTest.php tests sending an email through programmatic use of models:<?php…


Object-Oriented Autoloading in WordPress, Part 3

…In the last tutorial, we reviewed the original state of our autoloader and then went through a process of object-oriented analysis and design. The purpose of doing this is so that we can tie together everything that we've covered in this series and the introductory series. Secondly, the purpose of…


Building Your Startup: Ajax for Meeting Times and Places

…undefined && friend_id!='')) { displayAlert('participantMessage','participantMessageOnlyOne'); return false; } else if (new_email!='' && new_email!==undefined) { add_email = new_email; } else if (friend_id!='') { add_email = friend_email; } else { displayAlert('participantMessage','participantMessageNoEmail'); return false; } $.ajax({ url: $('#url_prefix').val()+'/participant/add', data: { id: id, add_email:add_email, }, success: function(data) { // see remove below // to…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.