SQlite example Step by step Explanation
The steps below demonstrate how to include this component in a Xamarin.Forms Shared Project:
to add packages in (pcl,Andriod,Windows,Ios)
Add References Click on Manage Nuget packages ->click on Browse
to install SQLite.Net.Core-PCL , SQLite Net Ext...
Best way to connect amazon redshift using JDBC , Use proper driver as per version
http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html
Step-1: npm install jdbc
Step-2:
var JDBC = require('jdbc');
var jinst = require('jdbc/lib/jinst');
// isJvmCreated will be true afte...
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
/// <summary>
/// Factory for creating WebDriver for various browsers.
/// </summary>
public static class WebDriverFactory
{
/// <summary>
/// Initili...
The following code implements a simple YoutubePlayerFragment. The activity's layout is locked in portrait mode and when orientation changes or the user clicks full screen at the YoutubePlayer it turns to lansscape with the YoutubePlayer filling the screen.
The YoutubePlayerFragment does not need to...
To reverse a list, it isn't important what type the list elements are, only what order they're in. This is a perfect candidate for a generic function, so the same reverseal function can be used no matter what list is passed.
let rev list =
let rec loop acc = function
| [] -...
let map f list =
let rec loop acc = function
| [] -> List.rev acc
| head :: tail -> loop (f head :: acc) tail
loop [] list
The signature of this function is ('a -> 'b) -> 'a list -> 'b list, which is the most generic it can be. This does not p...
To run macros and maintain the security Office applications provide against malicious code, it is necessary to digitally sign the VBAProject.OTM from the VBA editor > Tools > Digital Signature.
Office comes with a utility to create a self-signed digital certificate that you can employ on th...
Let's say we have a text file and we want to read all words in that file, in order to do some requirements.
file.txt:
This is just
a test file
to be used by fscanf()
This is the main function:
#include <stdlib.h>
#include <stdio.h>
void printAllWords(FILE *);
int main(void...
Filetype plugins for foo filetype are sourced in that order:
1. $HOME/.vim/ftplugin/foo.vim. Be careful with what you put in that file as it may be overridden by $VIMRUNTIME/ftplugin/foo.vim -- under windows, it'll be instead $HOME/vimfiles/ftplugin/foo.vim
2. $VIMRUNTIME/ftplugin/foo.vim. Like ev...
Having culture-specific URLs can be beneficial in terms of SEO.
E.g. English version of the following page:
http://www.mydomain.com/insurance
Would translate into:
http://www.mydomain.nl/verzekering
Instead of:
http://www.mydomain.nl/nl-nl/insurance
There are more approaches of achievin...
For anything below 1.9
SpawnEgg egg = new SpawnEgg(EntityType.CREEPER);
ItemStack creeperEgg = egg.toItemStack(5);
For 1.9 and above
In versions 1.9 and higher, Spigot does not have an implementation for creating spawn eggs without using NMS. To accomplish this, you can use a small custom cl...
class Functor f where
fmap :: (a -> b) -> f a -> f b
One way of looking at it is that fmap lifts a function of values into a function of values in a context f.
A correct instance of Functor should satisfy the functor laws, though these are not enforced by the compiler:
fmap id = i...
The Data.Functor module contains two combinators, <$ and $>, which ignore all of the values contained in a functor, replacing them all with a single constant value.
infixl 4 <$, $>
<$ :: Functor f => a -> f b -> f a
(<$) = fmap . const
$> :: Functor f => f a ...
Introduction
System Workbench for STM32 is a free IDE on Windows, Linux and OS X. Description from ST Microelectronics:
The System Workbench toolchain, called SW4STM32, is a free multi-OS
software development environment based on Eclipse, which supports the
full range of STM32 microcontrollers...
Lists as arguments are just another variable:
def func(myList):
for item in myList:
print(item)
and can be passed in the function call itself:
func([1,2,3,5,7])
1
2
3
5
7
Or as a variable:
aList = ['a','b','c','d']
func(aList)
a
b
c
d
In addition to libraries defined in EcmaScript language specification and EcmaScript internationalization API specification, d8 also implements the following functions and objects.
print(args...): function. Print to stdout.
printErr(args...): function. Print to stderr.
write(args...): function....
This example consists of three parts:
server.py - CherryPy application that can receive and save a file.
webpage.html - Example how to upload a file to server.py from a webpage.
cli.py - Example how to upload a file to server.py from a command line tool.
Bonus - upload.txt - file that you will...