Shineyrock web design & consultancy

Shineyrock

Searched for: "test" / 634 results

How to Work With JSON Data Using Python

…test.py", line 8, in <module> abderJson = json.dumps(abder) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 243, in dumps return _default_encoder.encode(obj) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 207, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 270, in iterencode return _iterencode(o, 0) File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 184, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError:…


Clone WordPress in Linux

…test WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!There's a lot of well-organized script here to begin with, but I wanted to make something which…


What Is HTML5?

…test standard for browsers to display and interact with web pages. Approved in 2014, it was the first update to HTML in 14 years. In this day and age, that's a lifetime between updates. The purpose of HTML5 is primarily to make it easier for web developers and browser creators…


Create a Custom Shipping Method in OpenCart: Part One

…test version of the OpenCart. In the second part, we'll explore the front-end counterpart, in which we'll see the front-end file setup and demo in the front-end.A Glance at the File Setup in the Back-EndLet's start with a list of the files required in the back-end. We'll use "custom" as…


Create a Custom Shipping Method in OpenCart: Part Two

…test version of OpenCart.A Glance at the File Setup in the Front-EndLet's start with a list of the files required in the front-end. catalog/language/english/shipping/custom.php: It's a language file in which we'll define the labels. catalog/model/shipping/custom.php: It's a model file, which is important as most of the shipping calculation logic goes…


Test-Driven Development With Laravel & Doctrine

…Test-Driven Development (TDD) technique to develop your software by writing tests. Typically, TDD will divide each task of the development into individual units. A test is then written to ensure that the unit behaves as expected. Every project that uses Test-Driven Development follows three simple steps repeatedly: Write a test…


Explore REST APIs in OpenCart 2.0: Part One

…test version of OpenCart as well, which is 2.0!Create API User CredentialsBefore we start using APIs, we'll need to set up the "API User" for that. Without that, you can't access it and you'll get a permission denied error. So, let's set that up. Navigate to System > Users >…


Validating Data With JSON-Schema, Part 1

…test JSON-Schema validator for JavaScript. I created it, so I am going to use it in this tutorial. Before we continue, let’s quickly deal with all the whys. Why Validate Data as a Separate Step? to fail fast to avoid data corruption to simplify processing code to use validation code…


Adding Social Sharing in a Node.js Single-Page Application

…test(ua)) { console.log(ua,' is a bot'); } next(); }); The regular expression above looks for “facebookexternalhit”, “Twitterbot” or “Pinterest” at the start of the UA string. If it exists, it will log the UA to the console. Here is the whole server: var express = require('express'), app = express(), server;…


Validating Data With JSON-Schema, Part 2

…test headlines", "url": "/home/latest", "navigation": { "level": 3, "parent_id": 11, "color": "white", "pages": [ { "page_id": 111, "short_name": "latest_all", "display_name": "All", "url": "/home/latest" }, ... ] } }, { "page_id": 12, "short_name": "events", "display_name": "Events", "url": "/home/events" } ] } }, ... ] } The navigation structure above is somewhat…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.