Using a regular expression, parse a record name that might be hierarchical. The expression looks for the final colon in the name. It returns what follows the colon, or the entire name if none:
regexp_substr( {name} , '[^:]*$' )
The example builds a string from the name of the parent record, the name of this record, and the memo of this record.
{createdfrom} || ' ' || {name} || ' ' || {memo}
In a string formula field, consider that some values might contain substrings which look to the browser like HTML. Unless this is intentional, it is important to protect the values from corruption. This is useful to avoid injection attacks: it prevents someone from entering HTML into a comment field...
In a saved search formula, the possible values of mainline are designed to be useful in an HTML context. When mainline is true, the value of {mainline} is the 1-character string * (asterisk). When mainline is false, the value of {mainline} is the 6-character string   (non-breaking space, HT...
If you haven't already lets simply start this file of with:
class HelloWorldLeftAndMain extends LeftAndMain {
}
Configure
The first thing you should do, is define the $url_segment that will be used to access the interface, and the title ($menu_title) that will appear in the side navigation m...
To add user, use following command
htpasswd /etc/subversion/passwd user_name
Specify user_name with the username you wish to add in above command. It will prompt to provide password for the user.
If you are creating very first user, you need to add –c switch in above command, which will create th...
Groups can be defined in /etc/subversion/svn_access_control file.
Create/edit the file using following command
nano /etc/subversion/svn_access_control
Use syntax specified as below to define groups and assign members.
[groups]
groupname = <list of users, comma separated>
e.g.
[groups]...
Registering a custom post type does not mean it gets added to the main RSS feed automatically.You need to use request filter to add custom post types to main RSS feed.
// Add 'books' custom post types on main RSS feed
function add_book_post_types_to_rss($qv) {
if (isset($qv['feed']) &&...
Variable declaration
@buttonColor: #FF0000;
/* Now you can use @buttonColor variable with css Functions. */
.product.into.detailed {
additional-attributes{
.lib-table-button(
background-color: @buttonColor;
);
}
}
Here function lib-tabgle-button used v...
Your typical jQuery object will contain references to any number of DOM elements, and that's why jQuery objects are often referred to as collections. If you want to do any manipulating with specific elements (e.g. getting a data attribute, calculating specific positions) then you need to use .each()...
You may want to do this if the remote repository is migrated. The command for changing the remote url is:
git remote set-url
It takes 2 arguments: an existing remote name (origin, upstream) and the url.
Check your current remote url:
git remote -v
origin https://bitbucket.com/develop/myrep...
A higher-order function, as opposed to a first-order function, can have one of three forms:
One or more of its parameters is a function, and it returns some value.
It returns a function, but none of its parameters is a function.
Both of the above: One or more of its parameters is a fu...
If we have a c++ project that uses a config.h configuration file with some custom paths or variables, we can generate it using CMake and a generic file config.h.in.
The config.h.in can be part of a git repository, while the generated file config.h will never be added, as it is generated from the cu...
Basic foreground images can be inserted into an email document just like they are for web pages:
<img src="http://www.yourserver.com/email/images/logo.png">
And they can be made links by wrapping them in an <a href> tag:
<a href="http://www.yourwebsite.com">...
To indent our outdent the current line in normal mode press the greater than > key or the less than < twice accordingly.
To do the same on multiple lines just add a number beforehand 6>>
CommandDescription>>indent current line<<outdent current line6>>indent next 6 lin...
Comparator cmp = [ compare:{ a, b -> a <=> b } ] as Comparator
def col = [ 'aa', 'aa', 'nn', '00' ]
SortedSet sorted = new TreeSet( cmp )
sorted.addAll col
assert '[00, aa, nn]' == sorted.toString()