Tutorial by Examples: e

Above example helps us how to turn on SSH on Pi. This example is the prerequisite of above example. For Linux OS: Open the terminal and write down this ssh pi@your local IP address. Then you will need to provide the password. Note: Here pi: your raspberry pi username and your local IP address: th...
public class ExpandBarExample { private final Display display; private final Shell shell; public ExpandBarExample() { display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); // Create the ExpandBar on the Shell ...
public class ExpandBarDynamicContentExample { private final Display display; private final Shell shell; public ExpandBarDynamicContentExample() { display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); // Create...
UPDATE wp_options SET option_value = replace(option_value, 'OLD_SITE, 'NEW_SITE') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'OLD_SITE','NEW_SITE'); UPDATE wp_posts SET post_content = replace(post_content, 'OLD_SITE', 'NEW_SITE');
/** * Add meta box to post types. * * @since 1.0.0 */ function myplugin_add_meta_box() { // Set up the default post types/ $types = array( 'post', ); // Optional filter for adding the meta box to more types. Uncomment to use. // $types = apply_filters( 'mypl...
Imagine many users all running a web application that is trying to increment a counter in the database. Each user must read the current count, add one and write out the updated value. To make sure no one reads the counter while someone else is is adding one we use a transaction: ref.transaction(fun...
Publishers and subscribers don't need to know each other. They simply communicate with the help of message queues. (function () { var data; setTimeout(function () { data = 10; $(document).trigger("myCustomEvent"); }, 2000); ...
// Remove the auto-paragraph and auto-line-break from the content remove_filter( 'the_content', 'wpautop' ); // Remove the auto-paragraph and auto-line-break from the excerpt remove_filter( 'the_excerpt', 'wpautop' );
/** * Remove the automatic line breaks from content and excerpts. * * @since 1.0.0 */ function remove_content_auto_line_breaks() { // Remove the auto-paragraph and auto-line-break from the content remove_filter( 'the_content', 'wpautop' ); // Remove the auto-paragraph and a...
Every Heroku app runs in at least two environments: on Heroku (we’ll call that production) and on your local machine (development). If more than one person is working on the app, then you’ve got multiple development environments - one per machine, usually. Usually, each developer will also have a te...
Let's start using ExtJS to build a simple web application. We will create a simple web application which will have only one physical page (aspx/html). At a minimum, every ExtJS application will contain one HTML and one JavaScript file—usually index.html and app.js. The file index.html or your defa...
For a C-style function call, e.g. plus(a, b); // Parentheses surrounding only the arguments, comma separated Then the equivalent Haskell code will be (plus a b) -- Parentheses surrounding the function and the arguments, no commas In Haskell, parentheses are not explicitly required for functi...
In the previous example, we didn't end up needing the parentheses, because they did not affect the meaning of the statement. However, they are often necessary in more complex expression, like the one below. In C: plus(a, take(b, c)); In Haskell this becomes: (plus a (take b c)) -- or equivale...
Reagent is an interface between ClojureScript and react. It allows you to define efficient React components using nothing but plain ClojureScript functions and data, that describe your UI using a Hiccup-like syntax. Example:- (defn sample-component [] [:div [:p "I am a component!"...
DB backup Database backup is a must before starting any Dynamics CRM upgrade process. This is mandatory as to always have the option to rollback in case of any major roadblock. Wrong Estimation DO NOT underestimate the work involved in a CRM Upgrade process. Audit your current Microsoft Dynamics...
Now, here are some common pitfalls which might come along your way when upgrading your Dynamics CRM system. The organisation database selected for the import is a different version than the organisation database that is currently deployedCRM Organization Database To fix this issue, we need to in...
Go to File -> Project Structure -> Modules. Add new Hibernate module. Right click on the desired module -> Add -> Hibernate. Select the newly created Hibernate configuration option, and click the (+) sign in the right pane to create hibernate.cfg.xml file. Go to File -> Project ...
To use bokeh you need to launch a bokeh server and connect to it using a browser. We will use this example script (hello_world.py): from bokeh.models import ColumnDataSource from bokeh.plotting import figure from bokeh.io import curdoc def modify_doc(doc): """Add a plotted ...
Detailed instructions on getting tastypie set up or installed.
When declaring an annotation, meta-info can be included using the following meta-annotations: @Target: specifies the possible kinds of elements which can be annotated with the annotation (classes, functions, properties, expressions etc.) @Retention specifies whether the annotation is store...

Page 1074 of 1191