Tutorial by Examples: 4

You can use the following instructions to install Theano and configure the GPU (assume a freshly installed Ubuntu 14.04): # Install Theano sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git sudo pip install Theano # Install Nvidia drivers, ...
// this is the static platform browser, the usual counterpart is @angular/platform-browser-dynamic. import { platformBrowser } from '@angular/platform-browser'; // this is generated by the angular compiler import { AppModuleNgFactory } from './ngfactory/app/app.module.ngfactory'; // note the...
Installations Download and install: Java 8 - download the relevant installation from Oracle site. Activator - download zip from www.playframework.com/download and extract files to the target Play folder, for example to: c:\Play-2.4.2\activator-dist-1.3.5 sbt - download from www.sc...
The x64 architecture is the evolution of the older x86 architecture, it kept compatibility with its predecessor (x86 registers are still available) but it also introduced new features: Registers have now a capacity of 64 bits; There are 8 more general-purpose registers; Segment registers are fo...
image: jangrewe/gitlab-ci-android before_script: - apt-get --quiet update --yes - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 openjdk-8-jdk - echo y | ${ANDROID_HOME}/tools/android --silent update sdk --no-ui --all --filter android-24 - echo y | ${ANDROID_HOME}/too...
It is important to read the error response that is returned by the Google Analytics API server. In a lot of cases they can tell you exactly what is wrong. 400 invalidParameter { "error": { "errors": [ { "domain": "global", "reason&...
Below is a configuration file for log4j. Log4j2 can use the same syntax, but there are different appender classes: log4j.rootLogger=INFO, FOO ## ConsoleAppender log4j.appender.CA=org.apache.log4j.ConsoleAppender log4j.appender.CA.layout=org.apache.log4j.PatternLayout log4j.appender.CA.layout....
Dim exStr : exStr = " <Head>data</Head> " Dim res res = Ucase(Replace(Mid(exStr, instr(exStr, ">")+1,4), "ata", "ark")) 'res now equals DARK 'instr(exStr, ">") returns 7 'Mid(" <Head>data</Head> ", 7+1,...
Dim mddArray() ReDim mddArray(0) Dim ti, testinc: testinc = "test": ti = 1 For i = 0 To 4 Dim tmpArray(): ReDim tmpArray(0) For j = 0 To 3 tmpArray(UBound(tmpArray)) = testinc & ti ti = ti + 1 ReDim Preserve tmpArray(UBound(tmpArray) + 1) Ne...
PS4 is displayes when bash is in debugging mode. #!/usr/bin/env bash # switch on debugging set -x # define a stupid_func stupid_func(){ echo I am line 1 of stupid_func echo I am line 2 of stupid_func } # setting the PS4 "DEBUG" prompt export PS4='\nDEBUG level:$SHLVL ...
(Note: There are many IDE, toolchain and library which are ready-to-use with STM32. The following setup requires minimal effort to get it work, but it is only one of the many. Feel free to explore others, it is not the purpose of this example to force anyone to use the tools that will be used here.)...
First open the Command prompt and "Run as Administrator". Once the command prompt is open navigate to the PSTools directory. From the command prompt we need to run git-bash using PSExec or PSExec64 as the Local Service, which Jenkins is running on the build server as by default. We wi...
For this demonstration we will use service broker construction created in another part of this documentation. Mentioned part is named 3. Create basic service broker construction on database (single database communication). USE [MyDatabase] DECLARE @ch uniqueidentifier = NEWID() DECLARE @msg XML...
This example is how to turn an image into a Base64 string (i.e. a string you can use directly in a src attribute of an img tag). This example specifically uses the Imagick library (there are others available, such as GD as well). <?php /** * This loads in the file, image.jpg for manipulation....
NOTES: We are going to install Magento 2 on fresh Ubuntu Server 16.04 LTS with PHP 7.0, MySQL 5.6 and Apache 2.4. 1. Setup Requirements Apache 2.2 or 2.4 with mod_rewrite module (or) Nginx >= 1.8. PHP 5.5 or later version. PHP 7.0 also supported. Required PHP-Modules – PDO/MySQL, mbstring, ...
Introduction System Workbench for STM32 is a free IDE on Windows, Linux and OS X. Description from ST Microelectronics: The System Workbench toolchain, called SW4STM32, is a free multi-OS software development environment based on Eclipse, which supports the full range of STM32 microcontrollers...
These functions will hash either String or Data input with one of eight cryptographic hash algorithms. The name parameter specifies the hash function name as a String Supported functions are MD2, MD4, MD5, SHA1, SHA224, SHA256, SHA384 and SHA512 This example requires Common Crypto It is nece...
These functions will hash either String or Data input with one of eight cryptographic hash algorithms. The name parameter specifies the hash function name as a String Supported functions are MD5, SHA1, SHA224, SHA256, SHA384 and SHA512 This example requires Common Crypto It is necessary to h...
The following example is tested on Windows 8 pro 64-bit operating system with python 2.7 and scrapy v 1.2. Let assume that we have already installed the scrapy framework. MySQL database that we will use in the following tutorial CREATE TABLE IF NOT EXISTS `scrapy_items` ( `id` bigint(20) UNSIGN...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hello, world!</title> </head> <body> message:"rendered view with ejs" </body> </html>

Page 5 of 8