Tutorial by Examples: c

Be aware that Microsoft Excel 2013 (and higher) uses Single Document Interface (SDI) and that Excel 2010 (And below) uses Multiple Document Interfaces (MDI). This implies that for Excel 2013 (SDI), each workbook in a single instance of Excel contains its own ribbon UI: Conversely for Excel...
A function is a block of code that will be called several times during the execution. Instead of writing the same piece of code again and again, one can write this code inside a function and call that function whenever it is needed. A function : Must be declared in a class or a module Returns a...
Configuring your environment RabbitMQ looks for an set of environment variables in /etc/rabbitmq/rabbitmq-env.conf. If it does not exist, it assumes default values. All values in rabbitmq-env.conf get exported to the environment the RabbitMQ server runs in with a RABBITMQ_ prefix; this prefix is no...
From the documentation : In C#, arguments can be passed to parameters either by value or by reference. Passing by reference enables function members, methods, properties, indexers, operators, and constructors to change the value of the parameters and have that change persist in the calling e...
Oracle does not handle leap seconds. See My Oracle Support note 2019397.2 and 730795.1 for more details.
You can switch it On at the Module/Class Level by placing the directive at the top of the code file. Option Strict On You can switch it on at the project level via the menu in Visual Studio Project > [Project] Properties > Compile Tab > Option Strict > On You ...
Command line arguments parsing is Go is very similar to other languages. In you code you just access slice of arguments where first argument will be the name of program itself. Quick example: package main import ( "fmt" "os" ) func main() { progName := o...
Throughout the topics and examples here we'll see many declarations of variables, functions and so on. As well as their name, data objects may have attributes. Covered in this topic are declaration statements like integer, parameter :: single_kind = kind(1.) which gives the object single_kind...
Using the document-ready event can have small performance drawbacks, with delayed execution of up to ~300ms. Sometimes the same behavior can be achieved by execution of code just before the closing </body> tag: <body> <span id="greeting"></span> world! <sc...
You can create a task (Console Command) in Laravel using Artisan. From your command line: php artisan make:console MyTaskName This creates the file in app/Console/Commands/MyTaskName.php. It will look like this: <?php namespace App\Console\Commands; use Illuminate\Console\Command; c...
When your command is made available to your application, you can use Laravel to schedule it to run at pre-defined intervals, just like you would a CRON. In The app/Console/Kernel.php file you will find a schedule method that you can use to schedule your task. <?php namespace App\Console; ...
The scheduler can be run using the command: php artisan schedule:run The scheduler needs to be run every minute in order to work correctly. You can set this up by creating a cron job with the following line, which runs the scheduler every minute in the background. * * * * * php /path/to/artisan...
The easiest method to bypass cache is to change the URL. This is used as a best practice when the URL contains a version or a checksum of the resource, e.g. http://example.com/image.png?version=1 http://example.com/image.png?version=2 These two URLs will be cached separately, so even if …?versi...
tree = log --oneline --decorate --source --pretty=format:'"%Cblue %h %Cgreen %ar %Cblue %an %C(yellow) %d %Creset %s"' --all --graph example * 40554ac 3 months ago Alexander Zolotov Merge pull request #95 from gmandnepr/external_plugins |\ | * e509f61 3 months ago Ievg...
It is common for an AsyncTask to require a reference to the Activity that called it. If the AsyncTask is an inner class of the Activity, then you can reference it and any member variables/methods directly. If, however, the AsyncTask is not an inner class of the Activity, you will need to pass an A...
If your team is following a rebase-based workflow, it may be a advantageous to setup git so that each newly created branch will perform a rebase operation, instead of a merge operation, during a git pull. To setup every new branch to automatically rebase, add the following to your .gitconfig or .gi...
Copy foo.txt from /path/to/source/ to /path/to/target/folder/ cp /path/to/source/foo.txt /path/to/target/folder/ Copy foo.txt from /path/to/source/ to /path/to/target/folder/ into a file called bar.txt cp /path/to/source/foo.txt /path/to/target/folder/bar.txt
copy folder foo into folder bar cp -r /path/to/foo /path/to/bar if folder bar exists before issuing the command, then foo and its content will be copied into the folder bar. However, if bar does not exist before issuing the command, then the folder bar will be created and the content of foo wil...
head [1..10] -- 1 last [1..20] -- 20 tail [1..5] -- [2, 3, 4, 5] init [1..5] -- [1, 2, 3, 4] length [1 .. 10] -- 10 reverse [1 .. 10] -- [10, 9 .. 1] take 5 [1, 2 .. ] -- [1, 2, 3, 4, 5] drop 5 [1 .. 10] -- [6, 7, 8, 9, 10]...
To change the URL of the repository you want your remote to point to, you can use the set-url option, like so: git remote set-url <remote_name> <remote_repository_url> Example: git remote set-url heroku https://git.heroku.com/fictional-remote-repository.git

Page 336 of 826