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...
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...
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 ...
If you installed Node using the default directory, while in the global mode, NPM installs packages into /usr/local/lib/node_modules. If you type the following in the shell, NPM will search for, download, and install the latest version of the package named sax inside the directory /usr/local/lib/node...
When we refer the module in the code, node first looks up the node_module folder inside the referenced folder in required statement
If the module name is not relative and is not a core module, Node will try to find it inside the node_modules folder in the current directory.
For instance, if you do...
Steps to create "Hello, World!" application in Oracle Application Express:
Log in to your workspace.
Click Application Builder. Application Builder page opens.
Click Create. Page with 4 application types appears. Page contains short help text about each application type.
Click Deskto...
Introduction
C/C++ IDE for ARM development.
Atollic TrueSTUDIO® is tested and verified on the following Operating Systems:
Microsoft® Windows ®Vista (32-bit version)
Microsoft® Windows® Vista (64-bit version)
Microsoft® Windows® 7 (32-bit version)
Microsoft® Windows® 7 (64-bit version)
Micr...
This is a simple RMI example with five Java classes and two packages, server and client.
Server Package
PersonListInterface.java
public interface PersonListInterface extends Remote
{
/**
* This interface is used by both client and server
* @return List of Persons
* @throws...
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....
If you have a virtualenv and CherryPy is already installed in it, create a file hello.py:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import cherrypy
class HelloWorld(object):
@cherrypy.expose
def index(self):
return 'Hello World!'
@cherrypy.expose
def greet(...
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...