Tutorial by Examples: o

Erlang on OpenBSD is currently broken on alpha, sparc and hppa architectures. Method 1 - Pre-built Binary Package OpenBSD let you choose desired version you want to install on your system: ###################################################################### # free-choice: ####################...
Consider the following partial example: import com.example.somelib.*; import com.acme.otherlib.*; public class Test { private Context x = new Context(); // from com.example.somelib ... } Suppose that when when you first developed the code against version 1.0 of somelib and versi...
$ sudo apt-get update $ sudo apt-get install -y build-essential git curl wget $ wget https://storage.googleapis.com/golang/go<versions>.gz You can find the version lists here. # To install go1.7 use $ wget https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz # Untar the ...
Detailed instructions on getting teradata set up or installed.
In this iText 5 example, we will create a Hello World example in different languages, using different fonts: public void createPdf(String dest) throws DocumentException, IOException { Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream(dest)); ...
In this iText 7 example, we will create a Hello World example in different languages, using different fonts: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); try (Document document = new Document(pdf)) { PdfFont fon...
You can setup your client browser to listen in incoming server events using the EventSource object. You will need to supply the constructor a string of the path to the server' API enpoint the will subscribe the client to the server events. Example: var eventSource = new EventSource("api/my-ev...
An event stream to the server can be closed using the EventSource.close() method var eventSource = new EventSource("api/my-events"); // do things ... eventSource.close(); // you will not receive anymore events from this object The .close() method does nothing is the stream is already...
In this iText 5 example, we need to switch between different styles in the same document: The best way to do this in iText 5, is to create a convenience method that creates a Chunk in the style that needs to be used frequently; see the createBgChunk() method: public Chunk createBgChunk(String s,...
In this iText 7 example, we need to switch between different styles in the same document: The best way to achieve this in iText 7, is to create a Style object, and to apply that Style to a Text object: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument...
There are many ways to communicate with servers using Unity as the client (some methodologies are better than others depending on your purpose). First, one must determine the need of the server to be able to effectively send operations to and from the server. For this example, we will send a few pie...
In this example, we'll create the following table using iText 5: We need the PdfPTable and PdfPCell class to achieve this: public void createPdf(String dest) throws IOException, DocumentException { Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream...
In this example, we'll create the following table using iText 7: We'll need the Table and Cell class to achieve this: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); try (Document document = new Document(pdf)) { T...
Requirements: PHP 5.6.0 or greater mbstring PHP extension (default works in WAMP/XAMPP, if not then enable it) intl PHP extension (Available in WAMP/XAMPP, you have to enable it from php.ini) CakePHP will run on a variety of web servers such as nginx, LightHTTPD, or Microsoft IIS. Befor...
There are two main platforms in VR, one is mobile platform, like Google Cardboard, Samsung GearVR, the other is PC platform, like HTC Vive, Oculus, PS VR... Unity officially supports the Oculus Rift, Google Carboard, Steam VR, Playstation VR, Gear VR, and the Microsoft Hololens. Most platforms hav...
Suppose that we have the following text file: jekyll_hyde.txt How do we convert it to a PDF that looks like this: When using iText 5, you'd need code like this: public void createPdf(String dest) throws DocumentException, IOException { Document document = new Document(); PdfWriter wr...
Suppose that you have the following text file: jekyll_hyde.txt How do we convert it to a PDF that looks like this: When using iText 7, you'd need code like this: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); Document do...
Detailed instructions on getting artificial-intelligence set up or installed.
Suppose that we want to create a simple Hello World document: In iText 5, this would be done like this: public void createPdf(String dest) throws DocumentException, IOException { Document document = new Document(); PdfWriter.getInstance( document, new FileOutputStream(des...
Suppose that we wanted to create a simple Hello World document: In iText 7, we could do that like this: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); Document document = new Document(pdf); document.add(new Paragraph...

Page 614 of 1038