Tutorial by Examples: ti

We can use the [] to create an empty Array in Julia. The simplest example would be: A = [] # 0-element Array{Any,1} Arrays of type Any will generally not perform as well as those with a specified type. Thus, for instance, we can use: B = Float64[] ## 0-element Array{Float64,1} C = Array{Flo...
In Julia, as in many other languages, it is possible to interpolate by inserting values defined by variables into strings. For a simple example: n = 2 julia> MyString = "there are $n ducks" "there are 2 ducks" We can use other types than numeric, e.g. Result = false j...
Detailed instructions on getting wso2is set up or installed.
There are a number of different methods that can be used to create the same type of expression. The expressions intro mentioned the :() syntax. Perhaps the best place to start, however is with strings. This helps to reveal some of the fundamental similarities between expressions and strings in Ju...
Creating Expressions mentions that expressions are closely related to strings. As such, the principles of interpolation within strings are also relevant for Expressions. For instance, in basic string interpolation, we can have something like: n = 2 julia> MyString = "there are $n ducks&q...
CREATE SCHEMA dvr AUTHORIZATION Owner CREATE TABLE sat_Sales (source int, cost int, partid int) GRANT SELECT ON SCHEMA :: dvr TO User1 DENY SELECT ON SCHEMA :: dvr to User 2 GO
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' ...
jmp a_label ;Jump to a_label jmp bx ;Jump to address in BX jmp WORD [aPointer] ;Jump to address in aPointer jmp 7c0h:0000h ;Jump to segment 7c0h and offset 0000h jmp FAR WORD [aFarPointer] ;Jump to segment:offset...
In order to use a conditional jump a condition must be tested. Testing a condition here refers only to the act of checking the flags, the actual jumping is described under Conditional jumps. x86 tests conditions by relying on the EFLAGS register, which holds a set of flags that each instruction ca...
Based on the state of the flags the CPU can either execute or ignore a jump. An instruction that performs a jump based on the flags falls under the generic name of Jcc - Jump on Condition Code1. Synonyms and terminology In order to improve the readability of the assembly code, Intel defined severa...
Unsigned integers Greater than cmp eax, ebx ja a_label Greater than or equal cmp eax, ebx jae a_label Less than cmp eax, ebx jb a_label Less than or equal cmp eax, ebx jbe a_label Equal cmp eax, ebx je a_label Not equal cmp eax, ebx jne a_label Signed inte...
SELECT DISTINCT o.name AS Object_Name,o.type_desc FROM sys.sql_modules m INNER JOIN sys.objects o ON m.object_id=o.object_id WHERE m.definition Like '%myField%' ORDER BY 2,1 Will find mentions of myField in SProcs, Views, etc.
To get the current date and time, use the now function: julia> now() 2016-09-04T00:16:58.122 This is the local time, which includes the machine's configured time zone. To get the time in the Coordinated Universal Time (UTC) time zone, use now(Dates.UTC): julia> now(Dates.UTC) 2016-09-04...
Listed in order of precedence: TokenName              Description^ExponentiationReturn the result of raising the left-hand operand to the power of the right-hand operand. Note that the value returned by exponentiation is always a Double, regardless of the value types being divided. Any coercion of...
VBA supports 2 different concatenation operators, + and & and both perform the exact same function when used with String types - the right-hand String is appended to the end of the left-hand String. If the & operator is used with a variable type other than a String, it is implicitly cast to...
Draper automatically matches up models with their decorators by convention. # app/decorators/user_decorator.rb class UserDecorator < Draper::Decorator def full_name "#{object.first_name} #{object.last_name}" end def created_at Time.use_zone(h.current_user.timezone...
Postscript is a dynamic-namespacing or LISP 1 language. But it provides the tools to implement local variables in procedures and other effects needed to implement algorithms. For local names in a procedure, make a new dictionary at the start and pop it at the end. /myproc { 10 dict begin ...
Detailed instructions on getting rails-activerecord set up or installed.
Using an AppCompat theme, the ProgressBar's color will be the colorAccent you have defined. 5.0 To change the ProgressBar color without changing the accent color you can use theandroid:theme attribute overriding the accent color: <ProgressBar android:theme="@style/MyProgress" ...
This example covers common errors with using the 'java' command. "Command not found" If you get an error message like: java: command not found when trying to run the java command, this means that there is no java command on your shell's command search path. The cause could be: yo...

Page 303 of 505