Tutorial by Examples: a

The following example creates a Gui with a single button wich brings the SelectFile dialog box. Gui, Loader: New Gui, Loader: Add, Button, Default Center w220 vLOAD, LOAD Gui, Loader: Show, AutoSize Center, Loader return LoaderButtonLOAD: FileSelectFile, LoadedFile, , , , if ErrorLevel...
This examples creates a new empty Gui sensible to Drag n' Drop event: Gui, Dropper: New Gui, Dropper: Font, s10 w700 Gui, Dropper: Add, Text, y80 vText1, Drag the files here Gui, Dropper: Show, w200 h200 Center, Dropper return DropperGuiDropFiles: DroppedFile:=A_GuiEvent FileRead, ...
fuzzy translations Sometimes makemessages may think that the string it found for translation is somewhat similar to already existing translation. It will when mark it in the .po file with a special fuzzy comment like this: #: templates/randa/map.html:91 #, fuzzy msgid "Country" msgstr...
Cassandra uses two kinds of keys: the Partition Keys is responsible for data distribution across nodes the Clustering Key is responsible for data sorting within a partition A primary key is a combination of those to types. The vocabulary depends on the combination: simple primary key: only...
Declaring a key The table creation statement should contain a PRIMARY KEY expression. The way you declare it is very important. In a nutshell: PRIMARY KEY(partition key) PRIMARY KEY(partition key, clustering key) Additional parentheses group multiple fields into a composite partition key or de...
The partition key is the minimum specifier needed to perform a query using a where clause. If you declare a composite clustering key, the order matters. Say you have the following primary key: PRIMARY KEY((part_key1, part_key_2), (clust_key_1, clust_key_2, clust_key_3)) Then, the only valid qu...
First you disable your network card's automatic checksumming: sudo ethtool -K eth1 tx off Then send your packet, using a SOCK_RAW socket: #!/usr/bin/env python from socket import socket, AF_PACKET, SOCK_RAW s = socket(AF_PACKET, SOCK_RAW) s.bind(("eth1", 0)) # We're putting toge...
This is my FirebaseMessagingService public class MyFirebaseMessagingService extends FirebaseMessagingService { Bitmap bitmap; @Override public void onMessageReceived(RemoteMessage remoteMessage) { String message = remoteMessage.getData().get("message"); //imageUri will ...
Creates a directory, status is in OS-ERROR OS-CREATE-DIR directory Create a directory called /usr/local/appData OS-CREATE-DIR VALUE("/usr/local/appData").
Append one file to another. Status is checked in OS-ERROR OS-APPEND source target Appends targetfile.txt with sourcefile.txt: OS-APPEND VALUE("sourcefile.txt") VALUE("targetfile.txt").
Rename a file or directory. Status is in OS-ERROR. Can also be used to move files (or move and rename). OS-RENAME oldname newname Rename /tmp/old-name to /tmp/new-name: OS-RENAME VALUE("/tmp/old-name") VALUE("/tmp/new-name"). Move file c:\temp\old.txt to c:\new-dir\old....
Client metrics cover the traffic between the client and the Varnish cache. sess_conn - Cumulative number of connections. client_req - Cumulative number of client requests. sess_dropped - Dropped connections because of a full queue. Monitor sess_conn and client_req to keep track of traffic vo...
Perhaps the most important performance metric is the hitrate. Varnish routes it's incoming requests like this: Hash, a cacheable request. This might be either hit or miss depending on the state of the cache. Hitpass, a not cacheable request. A hash with a miss and a hitpass will be fetched f...
You monitor the cached objects to see how often they expire and if they are "nuked". n_expired - Number of expired objects. n_lru_nuked - Last recently used nuked objects. Number of objects nuked (removed) from the cache because of lack of space. varnishstat -1 | grep "n_expire...
You need to keep track of some threads metrics to watch your Varnish Cache. Is it running out of OS resources or is it functioning well. threads - Number of threads in all pools. threads_created - Number of created threads. threads_failed - Number of times Varnish failed to create a thread. th...
There are a number of metrics describing the communication between Varnish and it's backends. The most important metrics here might be these: backend_busy - Number of http 5xx statuses recieved by a backend. With VCL you can configure Varnish to try another backend if this happens. backend_fail...
TypeScript catches type errors early through static analysis: function double(x: number): number { return 2 * x; } double('2'); // ~~~ Argument of type '"2"' is not assignable to parameter of type 'number'.
TypeScript enables editors to provide contextual documentation: You'll never forget whether String.prototype.slice takes (start, stop) or (start, length) again!
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.Aeson main :: IO () main = do let example = Data.Aeson.object [ "key" .= (5 :: Integer), "somethingElse" .= (2 :: Integer) ] :: Value print . encode $ example
project('Vala Project') glib_dep = dependency('glib-2.0') gobject_dep = dependency('gobject-2.0') executable('foo', 'foo.vala', dependencies: [glib_dep, gobject_dep]) Note: both glib-2.0 and gobject-2.0 dependencies are required unless --nostdpkg is explicitly given.

Page 934 of 1099