Tutorial by Examples

To illustrate this, here is a function that has 3 different "wrong" behaviors the parameter is completely stupid: we use a user-defined expression the parameter has a typo: we use Oracle standard NO_DATA_FOUND error another, but not handled case Feel free to adapt it to your standa...
Each standard Oracle error is associated with an error number. It's important to anticipate what could go wrong in your code. Here for a connection to another database, it can be: -28000 account is locked -28001 password expired -28002 grace period -1017 wrong user / password Here is a way ...
Vim is (like GNU Nano or GNU emacs) lightweight. It does not need any kind of graphical interface (like x11, wayland &co). This makes vim to a system maintainers best friend. You can use it using ssh and, this is really important, on really small devices that do not have some kind of graphical ...
In order to display a gif, you need to show it frame by frame sort of like an animation. An animated gif consists of a number of frames in a single file. Tk loads the first frame but you can specify different frames by passing an index parameter when creating the image. For example: frame2 = Photo...
Tasks in configuration All attributes of grunt.initConfig are valid tasks, so if your Gruntfile looks like this: module.exports = function(grunt) { grunt.initConfig({ jshint: { files: ['Gruntfile.js'], } }); grunt.loadNpmTasks('grunt-contrib-jshint...
When you add entries to an xml or copy from other sources, there often tends to be uneven tabs and spaces around the entries. When you press Ctrl + Shift + F, you easily align the entire document and remove the extra tabs as well. Thus the text gets formatted and eventually becomes readable.
Dim lo as ListObject Dim MyRange as Range Set lo = Sheet1.ListObjects(1) 'or Set lo = Sheet1.ListObjects("Table1") 'or Set lo = MyRange.ListObject
Dim lo as ListObject Dim lr as ListRow Dim lc as ListColumn Set lr = lo.ListRows.Add Set lr = lo.ListRows(5) For Each lr in lo.ListRows lr.Range.ClearContents lr.Range(1, lo.ListColumns("Some Column").Index).Value = 8 Next Set lc = lo.ListColumns.Add Set lc = lo.Lis...
Dim lo as ListObject Set lo = Sheet1.ListObjects("Table1") lo.Unlist
You can un-register individual events, entire listener classes or all events registered by your plugin or even by other plugins! Un-register specific event Each event class has the getHandlerList() static method, call that and then you can use .unregister() method. PlayerInteractEvent.getHandlerL...
This example is a quick setup of Angular and how to generate a quick example project. Prerequisites: Node.js 6.9.0 or greater. npm v3 or greater or yarn. Typings v1 or greater. Open a terminal and run the commands one by one: npm install -g typings or yarn global add typings npm install -...
This example shows how to set Click EventHandlers in a Xamarin.Android RecyclerView. In Android Java, the way to set up a listener for a Click is using a onClickListener for the view that will be clicked, like this: ImageView picture = findViewById(R.id.item_picture); picture.setOnClickListener(n...
The idea behind the AdhocWorkspace is to create a workspace on the fly. var workspace = new AdhocWorkspace(); string projectName = "HelloWorldProject"; ProjectId projectId = ProjectId.CreateNewId(); VersionStamp versionStamp = VersionStamp.Create(); ProjectInfo helloWorldProject = P...
The MSBuildWorspace is built around the concept of handling MSBuild solutions (.sln files) and their respective projects (.csproj, .vbproj). Adding new projects and documents to this workspace is not supported. string solutionPath = @"C:\Path\To\Solution\Sample.sln"; MSBuildWorkspace ...
In contrast to the other types of workspaces, the VisualStudioWorkspace, cannot be created manually. It can be accessed when building a Visual Studio extension. When inside your extension package project, go to [YourVSPackage]Package.cs file. There you can acquire the workspace in two ways: protec...
We're good to go so, we run, again from console: mkdir our_project cd our_project Now we're in the place where our code will live. To create the main archive of our project you can run Ok, but how we create the express skeleton project? It's simple: npm install -g express express-generator ...
This example shows how to submit the WFFM form in code. var controlResults = new List<ControlResult>(); controlResults.Add(new ControlResult(Pdf_Request_Form.Name.ItemID.ToString(), "Name", name, string.Empty)); controlResults.Add(new ControlResult(Pdf_Request_Form.Email.ItemID.To...
Swift: centralManager.scanForPeripherals(withServices: nil, options: nil) Objective C: [centralManager scanForPeripheralsWithServices:nil options:nil];
Swift: let services = [CBUUID(string: SERVICE1_UUID), CBUUID(string: SERVICE2_UUID)] centralManager.scanForPeripherals(withServices: services, options: nil) Objective C: NSArray *services = @[[CBUUID UUIDWithString:SERVICE1_UUID], [CBUUID UUIDWithString:SERVICE2_UUID]]; [centralManager scanFo...
Swift: var centralManager:CBCentralManager! centralManager = CBCentralManager(delegate: self, queue: nil) Objective C: @property (nonatomic, strong) CBCentralManager *centralManager; centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];

Page 1224 of 1336