Tutorial by Examples: ee

Suppose that we have the following text file: jekyll_hyde.txt How do we convert it to a PDF that looks like this: Note the blue border that is added to the titles, and the page number at the bottom of each page. In iText 5, these elements are added using page events: class MyPageEvents extends ...
Suppose that you have the following text file: jekyll_hyde.txt How do we convert it to a PDF that looks like this: Note the page numbers at the bottom of each page. These are added using an IEventHandler implementation: protected class Footer implements IEventHandler { @Override pub...
Suppose that you have the following text file: jekyll_hyde.txt How do we convert it to a PDF that looks like this: Note that this is very similar to what we had before, but the border of the titles now has rounded corners. We created a custom ParagraphRenderer to achieve this, and we created a T...
Setting up deep-linking for your app is easy.You just need a small url using which you want to open your app. Follow the steps to set up deep-linking for your app. Lets create a project and name it DeepLinkPOC. Now select your project target. After selecting target,select the 'info' ...
Startup # Load library setwidth on start - to set the width automatically. .First <- function() { library(setwidth) # If 256 color terminal - use library colorout. if (Sys.getenv("TERM") %in% c("xterm-256color", "screen-256color")) { library("col...
If you can say “YAGNI” (You ain’t gonna need it) about a feature, you better not implement it. There can be a lot of development time saved through focussing onto simplicity. Implementing such features anyway can lead to problems: Problems Overengineering If a product is more complicated than it...
This returns the currently active spreadsheet, or null if there is none. var currentSheet = SpreadsheetApp.getActive(); var url = currentSheet.getUrl(); Logger.log( url );
You may want to re-seed your database without affecting your previously created seeds. For this purpose, you can use firstOrCreate in your seeder: EmployeeType::firstOrCreate([ 'type' => 'manager', ]); Then you can seed the database: php artisan db:seed Later, if you want to add a...
@IBAction func axisChange(sender: UISwitch) { UIView.animateWithDuration(1.0) { self.updateConstraintsForAxis() } } The updateConstraintForAxis function just sets the axis of the stack view containing the two image views: private func updateConstraintsForAxis() { if (axi...
This sample demonstrates how to import the worksheet Azure Excel file blob to DB on the Azure SQL Server and how to export it from DB to Azure Excel blob. Prerequisites: Microsoft Visual Studio 2015 version Open XML SDK 2.5 for Microsoft Office An Azure storage account Azure SQL Server Add...
Preemptive basic authentication is the practice of sending http basic authentication credentials (username and password) before a server replies with a 401 response asking for them. This can save a request round trip when consuming REST apis which are known to require basic authentication. As descr...
Instead of attribute Image and Ada.Text_IO.Put on enumeration literals we can only use the generic package Ada.Text_IO.Enumeration_IO to print out the literals. with Ada.Text_IO; use Ada.Text_IO; procedure Main is type Fruit is (Banana, Pear, Orange, Melon); package Fruit_IO is new Enume...
You can set the desired UI widget's stylesheet using any valid CSS. The example below will set a QLabel's text color a border around it. #include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Mai...
The whole ES6 spec is not yet implemented in its entirety so you will only be able to use some of the new features. You can see a list of the current supported ES6 features at http://node.green/ Since NodeJS v6 there has been pretty good support. So if you using NodeJS v6 or above you can enjoy usi...
The following picture illustrates how component communication should work. The picture comes from The Progressive Framework slides of Evan You (Developer of VueJS). Here is an example of how it works : DEMO HTML <script type="x-template" id="message-box"> <inp...
//Check if a value exists in settings already if (IsolatedStorageSettings.ApplicationSettings.Contains("Key")) { //perform logic }
This is a simple implementation of Binary Search Tree Insertion using Python. An example is shown below: Following the code snippet each image shows the execution visualization which makes it easier to visualize how this code works. class Node: def __init__(self, val): self.l_chil...
DirectiveDefaultContextDescriptionRewriteBaseNoneDirectory, .htaccessSets base URL for per directory rewriteRewriteEngineoffeverywhereEnable or disable runtime rewrite engine RewriteBase The directive specifies URL prefix to be used for substituting relative paths. RewriteEngine The directive, i...
//import Speech //import AVFoundation // create a text field to show speech output @IBOutlet weak var transcriptionTextField: UITextView! // we need this audio player to play audio var audioPlayer: AVAudioPlayer! override func viewDidLoad() { super.viewDidLoad() } // this functio...

Page 30 of 54