text
stringlengths
3
1.04M
# # Makefile for CMT module # obj-$(CONFIG_CMT) += cmt.o
The jitterbug dance is a type of swing dance which has been a rage in the US parties since the 90s. In the early 20th century it became associated with swing dancers who danced without any knowledge or control. People could dance the way they wanted to, which made this dance to evolve through many stages. When people became addicted to jitterbug dancing, they were termed as "jitterbugged". The jitterbug dance steps are tons of fun if you think you have two left feet. If you want to start of with an easy dance style, then these dance steps are for you. Learning these steps is more fun if you take classes, or else read the steps mentioned below and train yourself. The basic dance steps are counted in six counts of music. For new comers let's start off with some basic and easy dance steps. 1-2: Step on the left side with the left foot with a slow step in two beats of music. 3-4: Step in place with the right foot with a slow step in two beats of music. 5: With the left footstep back of the right heel, perform this in a quick step in 1 beat of music. 6: Step in place with the right foot in a quick step with 1 beat of music. 1-2: Step on the right side with the right foot with a slow step in two beats of music. 3-4: Step in place with the left foot with a slow step in two beats of music. 5: Step back with right foot off the left heel, make it a quick step in one beat of music. 6: Step in place with the left foot, make it a quick step in one beat of music. After you have mastered the basic, let's learn the advanced dance steps. These steps can keep the fun part going on and make your body flexible and agile. In this step, the follower walks forward more than side to side, and the dancing partners often change positions. While the dance steps have to be open or closed, the cuddle step gives a lot of movement space and is a type of "sideways hug" in the middle of a step. Triple step basically means, that you take two triple steps instead of two initial steps. The outcome is that you take six small steps instead of two basic steps. Once you have enough practice of the dance moves, move on to some jitterbug turns. A practice of some turns can make your dance moves attractive and at the same time a lot of fun. Learning jitterbug dance steps is not at all difficult. You just need some regular practice and a little dash of confidence. A good option to join a class if you are really interested in mastering this dance form.
Use this search engine below to figure out the next step in your education as you continue on your journey to becoming a physician assistant! You can find programs to get the experience needed to satisfy requirements of PA programs. Just enter what you're looking for below to get personalized results.
These examples suppose that your friend has offered you a chance to give her empathy – by making a complaint! In each example your friend’s statement is followed by a number of less than empathic responses. counselling: “Are you scared of the conflict there might be if you asked him to be more tidy? reassuring: “Don’t worry, he’ll probably do it tomorrow”. sympathising: “Yeah, it’s crap isn’t it when someone behaves so unfairly”. advising: “If I were you, I’d start setting aside some money right now”. analysing: “What happened is that you never got back on top of things after you had the car repaired last month”. fixing: “It’s fine. I can lend you the money”. analysing: “I think the problem here is that you haven’t let them play outside today”. fixing: “It’s Ok, I can pick them up for you before I go”. reassuring: “Don’t worry, if they fall over they won’t really hurt themselves much”. diagnosing: “The problem is that you haven’t clearly defined what kind of a relationship you are having”. fixing: “I can talk to him if you like, he’s my mate after all”. reassuring: “Hang in there, things will get better once he feel secure in his new job”. note for my fellow NVC-word-nerds: There are many possible ways of categorising non-empathy! For this set of examples, I have separated analysis from diagnosis, but have included pitying with sympathising and consoling with reassuring.
<?php namespace TeaminmediasPluswerk\KeSearch\Domain\Repository; use Doctrine\DBAL\Driver\Statement; use PDO; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Query\QueryBuilder; use TYPO3\CMS\Core\Utility\GeneralUtility; /*************************************************************** * Copyright notice * (c) 2021 Christian Bülter * All rights reserved * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * @author Christian Bülter * @package TYPO3 * @subpackage ke_search */ class IndexRepository { /** * @var string */ protected $tableName = 'tx_kesearch_index'; /** * @param int $uid * @return mixed */ public function findByUid(int $uid) { /** @var QueryBuilder $queryBuilder */ $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) ->getQueryBuilderForTable($this->tableName); return $queryBuilder ->select('*') ->from($this->tableName) ->where( $queryBuilder->expr()->eq( 'uid', $queryBuilder->createNamedParameter($uid, PDO::PARAM_INT) ) ) ->execute() ->fetch(); } /** * @param integer $uid * @param array $updateFields * @return mixed */ public function update(int $uid, array $updateFields) { /** @var QueryBuilder $queryBuilder */ $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) ->getQueryBuilderForTable($this->tableName); $queryBuilder ->update($this->tableName) ->where( $queryBuilder->expr()->eq( 'uid', $queryBuilder->createNamedParameter($uid, PDO::PARAM_INT) ) ); foreach ($updateFields as $key => $value) { $queryBuilder->set($key, $value); } return $queryBuilder->execute(); } /** * returns number of records per type in an array * * @return array */ public function getNumberOfRecordsInIndexPerType(): array { /** @var QueryBuilder $queryBuilder */ $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) ->getQueryBuilderForTable($this->tableName); $typeCount = $queryBuilder ->select('type') ->addSelectLiteral( $queryBuilder->expr()->count('tx_kesearch_index.uid', 'count') ) ->from('tx_kesearch_index') ->groupBy('tx_kesearch_index.type') ->execute(); $resultsPerType = []; while ($row = $typeCount->fetch()) { $resultsPerType[$row['type']] = $row['count']; } return $resultsPerType; } /** * @param int $filterOptionUid * @return Statement|int */ public function deleteByUid(int $uid) { /** @var ConnectionPool $connectionPool */ $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); $queryBuilder = $connectionPool->getQueryBuilderForTable($this->tableName); return $queryBuilder ->delete($this->tableName) ->where( $queryBuilder->expr()->eq( 'uid', $queryBuilder->createNamedParameter($uid, PDO::PARAM_INT) ) ) ->execute(); } /** * Deletes records from the index which can be clearly identified by the properties $orig_uid, $pid, $type and $language. * Uses the same properties as IndexerRunner->checkIfRecordWasIndexed() * * @param int $origUid * @param int $pid * @param string $type * @param int $language * @return Statement|int */ public function deleteByUniqueProperties(int $origUid, int $pid, string $type, int $language) { /** @var ConnectionPool $connectionPool */ $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); $queryBuilder = $connectionPool->getQueryBuilderForTable($this->tableName); return $queryBuilder ->delete($this->tableName) ->where( $queryBuilder->expr()->eq('orig_uid', $queryBuilder->createNamedParameter($origUid, PDO::PARAM_INT)), $queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($pid, PDO::PARAM_INT)), $queryBuilder->expr()->eq('type', $queryBuilder->createNamedParameter($type)), $queryBuilder->expr()->eq('language', $queryBuilder->createNamedParameter($language, PDO::PARAM_INT)) ) ->execute(); } /** * Deletes the corresponding index records for a record which has been indexed. * * @param string $type type as stored in the index table, eg. "page", "news", "file", "tt_address" etc. * @param array $record array of the record rows * @param array $indexerConfig the indexerConfig for which the index record should be removed */ public function deleteCorrespondingIndexRecords(string $type, array $records, array $indexerConfig) { $count = 0; if (!empty($records)) { foreach ($records as $record) { if ($type == 'page') { $origUid = ($record['sys_language_uid'] > 0) ? $record['l10n_parent'] : $record['uid']; } else { $origUid = $record['uid']; } $this->deleteByUniqueProperties( $origUid, $indexerConfig['storagepid'], $type, $record['sys_language_uid'] ); $count++; } } return $count; } }
/* Copyright 1996-2008 Ariba, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. $Id: //ariba/platform/util/core/ariba/util/core/Crypto.java#8 $ */ package ariba.util.core; import java.util.Iterator; import java.util.List; import java.util.Map; import ariba.util.log.Log; /** Disclaimer. This is not production security! This is a weak attempt to thwart direct or accidental packet sniffing from obtaining cleartext passwords. Of course real encryption is the solution but at this moment is not achievable due to schedule constraints. @aribaapi private */ public class Crypto implements CryptoInterface { private CryptoChar cryptoChar; private boolean passThrough = false; public Crypto (Object key) { this.cryptoChar = new CryptoChar(key.hashCode()); } public Crypto (Object key, boolean enabled) { this.passThrough = !enabled; this.cryptoChar = new CryptoChar(key.hashCode()); } public Object encrypt (Object target) { if (this.passThrough) { return target; } // Log.runtime.debug("encrypt %s", target); if (target instanceof String) { return this.encrypt((String)target); } if (target instanceof Map) { return this.encrypt((Map)target); } if (target instanceof List) { return this.encrypt((List)target); } return target; } public char encrypt (char ch) { return this.cryptoChar.encrypt(ch); } public String encrypt (String string) { int strLen = string.length(); char [] charBuffer = new char[strLen]; string.getChars(0, strLen, charBuffer, 0); reverse(charBuffer, strLen); for (int idx = 0; idx < strLen; idx++) { charBuffer[idx] = this.encrypt(charBuffer[idx]); } return new String(charBuffer); } public static char [] reverse (char [] charBuffer, int charBufferLength) { int halfStrLen = charBufferLength/2; for (int idx = 0; idx < halfStrLen; idx++) { char temp = charBuffer[idx]; int revIdx = charBufferLength-idx-1; charBuffer[idx] = charBuffer[revIdx]; charBuffer[revIdx] = temp; } return charBuffer; } public Map encrypt (Map map) { int size = map.size(); // calling new Map with size zero is a no-no Map result = (size>0)?MapUtil.map(size):MapUtil.map(); Iterator e = map.keySet().iterator(); while (e.hasNext()) { Object key = e.next(); Object value = map.get(key); result.put(this.encrypt(key), this.encrypt(value)); } return result; } public List encrypt (List vector) { int size = vector.size(); // calling ListUtil.list with size zero is a no-no List result = (size>0)?ListUtil.list(size):ListUtil.list(); for (int idx = 0; idx < size; idx++) { Object value = vector.get(idx); result.add(this.encrypt(value)); } return result; } public Object decrypt (Object target) { if (this.passThrough) { return target; } // Log.runtime.debug("decrypt %s", target); if (target instanceof String) { return this.decrypt((String)target); } if (target instanceof Map) { return this.decrypt((Map)target); } if (target instanceof List) { return this.decrypt((List)target); } return target; } public char decrypt (char ch) { return this.cryptoChar.decrypt(ch); } public String decrypt (String string) { int strLen = string.length(); char [] charBuffer = new char[strLen]; string.getChars(0, strLen, charBuffer, 0); reverse(charBuffer, strLen); for (int idx = 0; idx < strLen; idx++) { charBuffer[idx] = this.decrypt(charBuffer[idx]); } return new String(charBuffer); } public Map decrypt (Map map) { int size = map.size(); // calling new Map with size zero is a no-no Map result = (size>0)?MapUtil.map(size):MapUtil.map(); Iterator e = map.keySet().iterator(); while (e.hasNext()) { Object key = e.next(); Object value = map.get(key); result.put(this.decrypt(key), this.decrypt(value)); } return result; } public List decrypt (List vector) { int size = vector.size(); // calling ListUtil.list with size zero is a no-no List result = (size>0)?ListUtil.list(size):ListUtil.list(); for (int idx = 0; idx < size; idx++) { Object value = vector.get(idx); result.add(this.decrypt(value)); } return result; } /* public static void main (String [] args) { test(0,(char)0xFFFF); test(0,'a'); for (int idx = 0; idx < 16; idx++) { bigtest(idx, args); } } public static void test (int key, char input) { PrintStream out = System.out; Random random = new Random(); out.println("input is " + input); Crypto captCrunch = new Crypto(key); char x = captCrunch.encrypt(input); out.println("crypted is " + x); char y = captCrunch.decrypt(x); out.println("decrypted is " + y); } public static String formatArray (String [] args) { String output = Constants.EmptyString; for (int idx = 0; idx < args.length; idx++) { output = output + " arg[" + idx + "] = " + args[idx]; } return output; } public static void bigtest (int key, String [] args) { PrintStream out = System.out; out.println("Crypting " + formatArray(args)); Crypto captCrunch = new Crypto(key); List vector = ListUtil.list(); for (int idx = 0; idx<args.length - 1; idx+=2) { vector.add(Constants.getInteger(idx)); Map map = new Map(); map.put(args[idx], args[idx+1]); vector.add(map); } out.println("List - precrypt: " + vector); vector = captCrunch.encrypt(vector); out.println("List - prostcrypt: " + vector); vector = (List) captCrunch.decrypt(vector); out.println("List - prostdecrypt: " + vector); } */ } class CryptoChar { static final int CharBitLength = 16; static final int MinShift = 5; int encryptLowerCharShiftCount; int encryptUpperCharShiftCount; char encryptLowerCharMask; char encryptUpperCharMask; char decryptLowerCharMask; char decryptUpperCharMask; int decryptLowerCharShiftCount; int decryptUpperCharShiftCount; public CryptoChar (int key) { this.encryptLowerCharShiftCount = Math.abs(key % (CharBitLength-MinShift)) + MinShift; Log.util.debug("CryptoChar - key: %s", this.encryptLowerCharShiftCount); this.init(); } private void init () { this.encryptUpperCharShiftCount = CharBitLength - this.encryptLowerCharShiftCount; this.encryptLowerCharMask = (char) (0xFFFF >>> this.encryptLowerCharShiftCount); this.encryptUpperCharMask = (char) (0xFFFF << this.encryptUpperCharShiftCount); this.decryptLowerCharMask = (char) (this.encryptUpperCharMask >>> this.encryptUpperCharShiftCount); this.decryptUpperCharMask = (char) (this.encryptLowerCharMask << this.encryptLowerCharShiftCount); this.decryptLowerCharShiftCount = this.encryptUpperCharShiftCount; this.decryptUpperCharShiftCount = this.encryptLowerCharShiftCount; } public char encrypt (char val) { char lowerShifted = (char) (val << this.encryptLowerCharShiftCount); char upperShifted = (char) ((val & this.encryptUpperCharMask) >>> this.encryptUpperCharShiftCount); char retVal = (char)(lowerShifted | upperShifted); return retVal; } /* public void dumpChar (char x) { PrintStream out = System.out; byte upper = (byte)(x << CharBitLength); byte lower = (byte)x; out.println(this.dumpByte(upper)+this.dumpByte(lower)); } public String dumpByte (byte x) { String output = Constants.EmptyString; for (int idx = 0; idx < 16; idx++) { boolean on = ((x & 0x80)==0); if (on) { output = output + "1"; } else { output = output + "0"; } x = (byte)(x << 1); } return output; } */ public char decrypt (char val) { char lowerShifted = (char) (val << this.decryptLowerCharShiftCount); char upperShifted = (char) ((val & this.decryptUpperCharMask) >>> this.decryptUpperCharShiftCount); char retVal = (char)(lowerShifted | upperShifted); return retVal; } }
AUSTRALIA - A project underway in northern New South Wales is helping dairy farmers become more energy and water efficient. According to ABC news, the Efficient Water Energy and Nutrient project identifies ways farmers can achieve this, and then gives them the technical and funding assistance to make it happen. EWEN co-ordinator Nick Bullock says farmers are busy milking cows and growing pasture, and don't have a lot of time to research new technologies. "So this is a project to bring together all that information and bring it together in a format that farmers can access, so that they can get to the point where they can say, 'Yes, that's a good idea, it's worth my while doing it, I can find my dollars to actually implement it and actually get it done'."
I am pleased to report that my new year mantra of ‘work smarter not harder’ has proved to be maintainable. I’m feeling in control, relatively zen and insatiably productive (no booze really does make you feel quite marvellous). 1. Push back – I am hell bent on filtering out the whirlwind of time stealer meetings, tasks, email requests (and even people) to ensure I only do something if I can wholly see where the work will impact the broader business/project/agency outcome. If I and it will add value then it’s all systems go. If it can be approached another way, delegated elsewhere, or rejected as a ‘to do’ then away it goes. Push back intelligently, intuitively and sensitively and watch delicious gaps appear in your calendar. 2. Embrace agile working – I am fortunate to work in an agency readily encouraging an outcome driven mentality. It’s not about tasks and presentee-ism but about driving business results in the most efficient and solution-centric way possible. If that working more productively, rapidly and innovatively happens to remove hours of commuting across a week then again watch output rise as more space appears in that beautifully managed calendar. There’s nothing more satisfying that immersing immediately into ‘thinking time’ the moment you wake (as opposed to adrenaline fuelled get ready, de-icing the car, freezing platform, train delays, tube sardines, and so on, wasting your most alert brain power – 8am is when we reach our peak of the day apparently). 3. Own a growth mindset with a meta-view - focus on strategic business goals by stepping out of the minutiae of daily deliverables and logically plan the week, who you’ll most usefully spend time with and where. Headline your core goals for the subsequent week on Friday before you shut the laptop (for your family, personal goal focused weekend) and map your meetings, objectives and where you intend to be the following Friday by 6pm. Ensure the raison d’etre of every meeting ladders up to the primary client/agency business goals and represents a path on your longer term growth roadmap. It all sounds so obvious really. Just takes a bit of mindful adoption. And unbroken resolution of course. Put it into practice for yourself and enjoy your transformation from corporate water tread-er to leader.
Your vehicle deserves only genuine OEM Subaru parts and accessories. To ensure reliability, purchase Subaru part # 17D5KH 115/70 15.0 SPARE TIRE T1. Our Subaru parts and accessories are expedited directly from authorized Subaru dealers strategically located all across the U.S. and are backed by the manufacturer's 12 month, 12,000 mile warranty. OEM Subaru parts are the best for restoring your vehicle to factory condition performance. Affordable, reliable and built to last, Subaru part # 17D5KH 115/70 15.0 SPARE TIRE T1 stands out as the smart option. Subaru Parts Deal is your prime online source with the biggest and best selection of genuine Subaru parts and accessories at giant discounted prices. We have the OEM Subaru parts and accessories you need at the lowest possible prices. Subaru Parts Deal has you covered no matter what type of Subaru vehicle you drive.
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Classes &mdash; qooxdoo 5.0 documentation</title> <link rel="stylesheet" href="../../_static/theme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../../_static/copies/reset.css" type="text/css" /> <link rel="stylesheet" href="../../_static/copies/base.css" type="text/css" /> <link rel="stylesheet" href="../../_static/copies/layout.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '5.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../_static/copies/html5shiv.js"></script> <script type="text/javascript" src="../../_static/copies/q.js"></script> <script type="text/javascript" src="../../_static/copies/q.placeholder.js"></script> <script type="text/javascript" src="../../_static/copies/q.sticky.js"></script> <script type="text/javascript" src="../../_static/copies/application.js"></script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <link rel="top" title="qooxdoo 5.0 documentation" href="../../index.html" /> <link rel="up" title="Core" href="../core.html" /> <link rel="next" title="Interfaces" href="interfaces.html" /> <link rel="prev" title="Features of Object Orientation" href="oo_feature_summary.html" /> <link rel="shortcut icon" href="http://resources.qooxdoo.org/images/qx-favicon.png" /> <script type="text/javascript"> // decorate jQuery.getQueryParameters to always process search words // as *lower case* due to a bug in sphinx (see qooxdoo BUG #7292) - // this ensures that for example "FILENAME" and "filename" produces // the same amount of results. var originalGetQueryParameters = jQuery.getQueryParameters; jQuery.getQueryParameters = function(s) { var result = originalGetQueryParameters(s); if (result.q) { result.q = [result.q[0].toLowerCase()]; } return result; }; </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-415440-1']); _gaq.push(['_setDomainName', 'qooxdoo.org']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body> <div id="main-wrapper" class="sphinx"> <div id="header-wrapper"> <section id="header"> <h1><a href="http://qooxdoo.org/">qooxdoo</a></h1> <nav> <ul> <!-- <li> <a class="" href="http://qooxdoo.org/">home</a> </li> --> <li> <a href="http://news.qooxdoo.org">blog</a> </li> <li> <a class="" href="http://qooxdoo.org/demos">demos</a> </li> <li> <a class="" href="http://qooxdoo.org/downloads">downloads</a> </li> <li> <a class="active" href="http://qooxdoo.org/docs">docs</a> </li> <li> <a class="" href="http://qooxdoo.org/community">community</a> </li> </ul> </nav> <script type="template" id="search-options-template"> <select> <option value="site">Site</option> <option value="manual">Manual</option> <option value="blog">Blog</option> <option value="bugs">Bugs</option> </select> </script> <script type="template" id="search-site-template"> <form action="http://qooxdoo.org/" id="search-form"> <input type="hidden" name="do" value="search"> <input type="search" name="id" placeholder="Search"></input> </form> </script> <script type="template" id="search-blog-template"> <form method="get" id="searchform" action="http://news.qooxdoo.org/" id="search-form"> <input type="search" class="field" name="s" id="s" placeholder="Search"> </form> </script> <script type="template" id="search-manual-template"> <form action="../../search.html" id="search-form"> <input type="search" name="q" placeholder="Search"></input> </form> </script> <script type="template" id="search-bugs-template"> <form action="http://bugs.qooxdoo.org/buglist.cgi" id="search-form"> <input type="search" name="quicksearch" placeholder="Search"></input> </form> </script> <div id="search"> </div> </section> <div class="decoration"></div> </div> <section id="main"> <section id="breadcrumb"> <a href="http://qooxdoo.org">Home</a> &raquo; <a href="../../index.html">Manual (v5.0)</a> &raquo; <a href="../core.html" accesskey="U">Core</a> &raquo; <a href="">Classes</a> </section> <section id="content"> <div class="body"> <div class="section" id="classes"> <span id="pages-classes-classes"></span><h1>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h1> <p>qooxdoo's class definition is a concise and compact way to define new classes. Due to its closed form the JavaScript code that handles the actual class definition already &quot;knows&quot; all parts of the class at definition time. This allows for many useful checks during development as well as clever optimizations during the build process.</p> <div class="section" id="declaration"> <span id="pages-classes-declaration"></span><h2>Declaration<a class="headerlink" href="#declaration" title="Permalink to this headline">¶</a></h2> <p>Here is the most basic definition of a regular, non-static class <tt class="docutils literal"><span class="pre">qx.test.Cat</span></tt>. It has a constructor so that instances can be created. It also needs to extend some existing class, here we take the root class of all qooxdoo classes:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">core</span><span class="p">.</span><span class="nb">Object</span><span class="p">,</span> <span class="nx">construct</span> <span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="cm">/* ... */</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> <p>As you can see, the <tt class="docutils literal"><span class="pre">define()</span></tt> method takes two arguments, the fully-qualified name of the new class, and a configuration map that contains a varying number of predefined keys and their values.</p> <p>An instance of this class is created and its constructor is called by the usual statement:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">kitty</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Cat</span><span class="p">;</span> </pre></div> </div> <div class="section" id="members"> <span id="pages-classes-members"></span><h3>Members<a class="headerlink" href="#members" title="Permalink to this headline">¶</a></h3> <p>Members of a class come in two flavors:</p> <ul class="simple"> <li>Class members (also called &quot;static&quot; members) are attached to the class itself, not to individual instances</li> <li>Instance members are attached to each individual instance of a class</li> </ul> </div> <div class="section" id="class-members"> <span id="pages-classes-class-members"></span><h3>Class Members<a class="headerlink" href="#class-members" title="Permalink to this headline">¶</a></h3> <p>A static member of a class can be one of the following:</p> <ul class="simple"> <li>Class Variable</li> <li>Class Method</li> </ul> <p>In the <tt class="docutils literal"><span class="pre">Cat</span></tt> class we may attach a class variable <tt class="docutils literal"><span class="pre">LEGS</span></tt> (where uppercase notation is a common coding convention) and a class method <tt class="docutils literal"><span class="pre">makeSound()</span></tt>, both in a <tt class="docutils literal"><span class="pre">statics</span></tt> section of the class declaration:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="cm">/* ... */</span> <span class="nx">statics</span> <span class="o">:</span> <span class="p">{</span> <span class="nx">LEGS</span><span class="o">:</span> <span class="mi">4</span><span class="p">,</span> <span class="nx">makeSound</span> <span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="cm">/* ... */</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> <p>Accessing those class members involves the fully-qualified class name:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">foo</span> <span class="o">=</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Cat</span><span class="p">.</span><span class="nx">LEGS</span><span class="p">;</span> <span class="nx">alert</span><span class="p">(</span><span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Cat</span><span class="p">.</span><span class="nx">makeSound</span><span class="p">());</span> </pre></div> </div> </div> <div class="section" id="instance-members"> <span id="pages-classes-instance-members"></span><h3>Instance Members<a class="headerlink" href="#instance-members" title="Permalink to this headline">¶</a></h3> <p>An instance member of a class can be one of the following:</p> <ul class="simple"> <li>Instance Variable</li> <li>Instance Method</li> </ul> <p>They may be defined in the <tt class="docutils literal"><span class="pre">members</span></tt> section of the class declaration:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="p">...</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">name</span> <span class="o">:</span> <span class="s2">&quot;Kitty&quot;</span><span class="p">,</span> <span class="nx">getName</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">name</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> <p>Accessing those members involves an instance of the class:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">kitty</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Cat</span><span class="p">;</span> <span class="nx">kitty</span><span class="p">.</span><span class="nx">name</span> <span class="o">=</span> <span class="s2">&quot;Sweetie&quot;</span><span class="p">;</span> <span class="nx">alert</span><span class="p">(</span><span class="nx">kitty</span><span class="p">.</span><span class="nx">getName</span><span class="p">());</span> </pre></div> </div> <div class="section" id="primitive-types-vs-reference-types"> <span id="pages-classes-primitive-types-vs-reference-types"></span><h4>Primitive Types vs. Reference Types<a class="headerlink" href="#primitive-types-vs-reference-types" title="Permalink to this headline">¶</a></h4> <p>There is a fundamental JavaScript language feature that could lead to problems, if not properly understood. It centers around the different behavior in the assignment of JavaScript's two data types (<em>primitive types</em> vs. <em>reference types</em>).</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Please make sure you understand the following explanation to avoid possible future coding errors.</p> </div> <p>Primitive types include <tt class="docutils literal"><span class="pre">Boolean</span></tt>, <tt class="docutils literal"><span class="pre">Number</span></tt>, <tt class="docutils literal"><span class="pre">String</span></tt>, <tt class="docutils literal"><span class="pre">null</span></tt> and the rather unusual <tt class="docutils literal"><span class="pre">undefined</span></tt>. If such a primitive type is assigned to an instance variable in the class declaration, it behaves as if each instance had a copy of that value. They are never shared among instances.</p> <p>Reference types include all other types, e.g. <tt class="docutils literal"><span class="pre">Array</span></tt>, <tt class="docutils literal"><span class="pre">Function</span></tt>, <tt class="docutils literal"><span class="pre">RegExp</span></tt> and the generic <tt class="docutils literal"><span class="pre">Object</span></tt>. As their name suggests, those reference types merely point to the corresponding data value, which is represented by a more complex data structure than the primitive types. If such a reference type is assigned to an instance variable in the class declaration, it behaves as if each instance just pointed to the complex data structure. All instances share the same value, unless the corresponding instance variable is assigned a different value.</p> <p><strong>Example</strong>: If an instance variable was assigned an array in the class declaration, any instance of the class could (knowingly or unknowingly) manipulate this array in such a way that each instance would be affected by the changes. Such a manipulation could be pushing a new item into the array or changing the value of a certain array item. All instances would share the array.</p> <p>You have to be careful when using complex data types in the class declaration, because they are shared by default:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">foo</span><span class="o">:</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">4</span><span class="p">]</span> <span class="c1">// all instances would start to share this data structure</span> <span class="p">}</span> </pre></div> </div> <p>If you do <em>not</em> want that instances share the same data, you should defer the actual initialization into the constructor:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">construct</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">foo</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">4</span><span class="p">];</span> <span class="c1">// each instance would get assigned its own data structure</span> <span class="p">},</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">foo</span><span class="o">:</span> <span class="kc">null</span> <span class="c1">// to be initialized in the constructor</span> <span class="p">}</span> </pre></div> </div> </div> </div> <div class="section" id="access"> <span id="pages-classes-access"></span><h3>Access<a class="headerlink" href="#access" title="Permalink to this headline">¶</a></h3> <p>In many object-oriented classes a concept exists that is referred to as &quot;access&quot; or &quot;visibility&quot; of members (well, or even classes, etc.). Based on the well-known access modifiers of Java, the following three types exist for qooxdoo members:</p> <ul class="simple"> <li><em>public</em>: To be accessed from any class/instance</li> <li><em>protected</em>: To be accessed only from derived classes or their instances</li> <li><em>private</em>: To be accessed only from the defining class/instance</li> </ul> <p>Unfortunately, JavaScript is very limited in <em>enforcing</em> those protection mechanisms. Therefore, the following coding convention is to be used to declare the access type of members:</p> <ul class="simple"> <li><em>public</em>: members may <em>not</em> start with an underscore</li> <li><em>protected</em>: members start with a single underscore <tt class="docutils literal"><span class="pre">_</span></tt></li> <li><em>private</em>: members start with a double underscore <tt class="docutils literal"><span class="pre">__</span></tt></li> </ul> <p>There are some possibilities to enforce or at least check the various degrees of accessibility:</p> <ul class="simple"> <li>automatic renaming of private members in the build version could trigger errors when testing the final app</li> <li>checking instance of <tt class="docutils literal"><span class="pre">this</span></tt> in protected methods</li> <li>...</li> </ul> </div> <div class="section" id="special-types-of-classes"> <span id="pages-classes-special-types-of-classes"></span><h3>Special Types of Classes<a class="headerlink" href="#special-types-of-classes" title="Permalink to this headline">¶</a></h3> <p>Besides a &quot;regular&quot; class there is built-in support for the following special types:</p> <div class="section" id="static-classes"> <span id="pages-classes-static-classes"></span><h4>Static Classes<a class="headerlink" href="#static-classes" title="Permalink to this headline">¶</a></h4> <p>A static class is not instantiated and only contains static members. Setting its type to <tt class="docutils literal"><span class="pre">static</span></tt> makes sure only such static members, no constructor and so on are given in the class definition. Otherwise error messages are presented to the developer:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span> <span class="o">:</span> <span class="s2">&quot;static&quot;</span> <span class="p">...</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="abstract-classes"> <span id="pages-classes-abstract-classes"></span><h4>Abstract Classes<a class="headerlink" href="#abstract-classes" title="Permalink to this headline">¶</a></h4> <p>An abstract class may not be instantiated. It merely serves as a superclass that needs to be derived from. Concrete classes (or concrete members of such derived classes) contain the actual implementation of the abstract members. If an abstract class is to be instantiated, an error message is presented to the developer.</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span> <span class="o">:</span> <span class="s2">&quot;abstract&quot;</span> <span class="p">...</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="singletons"> <span id="pages-classes-singletons"></span><h4>Singletons<a class="headerlink" href="#singletons" title="Permalink to this headline">¶</a></h4> <p>The singleton design pattern makes sure, only a single instance of a class may be created. Every time an instance is requested, either the already created instance is returned or, if no instance is available yet, a new one is created and returned. Requesting the instance of such a singleton class is done by using the <tt class="docutils literal"><span class="pre">getInstance()</span></tt> method.</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span> <span class="o">:</span> <span class="s2">&quot;singleton&quot;</span> <span class="p">...</span> <span class="p">});</span> </pre></div> </div> </div> </div> </div> <div class="section" id="inheritance"> <span id="pages-classes-inheritance"></span><h2>Inheritance<a class="headerlink" href="#inheritance" title="Permalink to this headline">¶</a></h2> <div class="section" id="single-inheritance"> <span id="pages-classes-single-inheritance"></span><h3>Single Inheritance<a class="headerlink" href="#single-inheritance" title="Permalink to this headline">¶</a></h3> <p>JavaScript supports the concept of single inheritance. It does not support (true) multiple inheritance like C++. Most people agree on the fact that such a concept tends to be very complex and error-prone. There are other ways to shoot you in the foot. qooxdoo only allows for single inheritance as well:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Animal</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="multiple-inheritance"> <span id="pages-classes-multiple-inheritance"></span><h3>Multiple Inheritance<a class="headerlink" href="#multiple-inheritance" title="Permalink to this headline">¶</a></h3> <p>Not supported. There are more practical and less error-prone solutions that allow for typical features of multiple inheritance: Interfaces and Mixins (see below).</p> </div> <div class="section" id="polymorphism-overriding"> <span id="pages-classes-polymorphism-overriding"></span><h3>Polymorphism (Overriding)<a class="headerlink" href="#polymorphism-overriding" title="Permalink to this headline">¶</a></h3> <p>qooxdoo does, of course, allow for polymorphism, that is most easily seen in the ability to override methods in derived classes.</p> <div class="section" id="calling-the-superclass-constructor"> <span id="pages-classes-calling-the-superclass-constructor"></span><h4>Calling the Superclass Constructor<a class="headerlink" href="#calling-the-superclass-constructor" title="Permalink to this headline">¶</a></h4> <p>It is hard to come up with an appealing syntax and efficient implementation for calling the superclass constructor from the constructor of a derived class. You simply cannot top Java's <tt class="docutils literal"><span class="pre">super()</span></tt> here. At least there is some generic way that does not involve to use the superclass name explicitly:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Animal</span><span class="p">,</span> <span class="nx">construct</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">base</span><span class="p">(</span><span class="nx">arguments</span><span class="p">,</span> <span class="nx">x</span><span class="p">);</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> <p>Unfortunately, to mimic a <tt class="docutils literal"><span class="pre">super()</span></tt> call the special variable <tt class="docutils literal"><span class="pre">arguments</span></tt> is needed, which in JavaScript allows a context-independent access to the actual function. Don't get confused by its name, you would list your own arguments just afterwards (like the <tt class="docutils literal"><span class="pre">x</span></tt> in the example above).</p> <p><tt class="docutils literal"><span class="pre">this.base(arguments,</span> <span class="pre">x)</span></tt> is internally mapped to <tt class="docutils literal"><span class="pre">arguments.callee.base.call(this,</span> <span class="pre">x)</span></tt> (The <em>.base</em> property is maintained for every method through qooxdoo's class system). The latter form can be handled by JavaScript natively, which means it is quite efficient. As an optimization during the build process such a rewrite is done automatically for your deployable application.</p> </div> <div class="section" id="calling-an-overridden-method"> <span id="pages-classes-calling-an-overridden-method"></span><h4>Calling an Overridden Method<a class="headerlink" href="#calling-an-overridden-method" title="Permalink to this headline">¶</a></h4> <p>Calling an overridden superclass method from within the overriding method (i.e. both methods have the same name) is similar to calling the superclass constructor:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Animal</span><span class="p">,</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">makeSound</span> <span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">base</span><span class="p">(</span><span class="nx">arguments</span><span class="p">);</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="calling-the-superclass-method-or-constructor-with-all-parameters"> <span id="pages-classes-calling-the-superclass-method-or-constructor-with-all-parameters"></span><h4>Calling the Superclass Method or Constructor with all parameters<a class="headerlink" href="#calling-the-superclass-method-or-constructor-with-all-parameters" title="Permalink to this headline">¶</a></h4> <p>This variant allows to pass all the parameters (unmodified):</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Animal&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">makeSound</span> <span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">howManyTimes</span><span class="p">)</span> <span class="p">{</span> <span class="p">....</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Animal</span><span class="p">,</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">makeSound</span> <span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">debug</span><span class="p">(</span><span class="s2">&quot;I&#39;m a cat&quot;</span><span class="p">);</span> <span class="cm">/* howManyTimes or any other parameter are passed. We don&#39;t need to know how many parameters are used. */</span> <span class="nx">arguments</span><span class="p">.</span><span class="nx">callee</span><span class="p">.</span><span class="nx">base</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">);</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="calling-another-static-method"> <span id="pages-classes-calling-another-static-method"></span><h4>Calling another Static Method<a class="headerlink" href="#calling-another-static-method" title="Permalink to this headline">¶</a></h4> <p>Here is an example for calling a static member without using a fully-qualified class name (compare to <tt class="docutils literal"><span class="pre">this.base(arguments)</span></tt> above):</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">extend</span><span class="o">:</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">Animal</span><span class="p">,</span> <span class="nx">statics</span> <span class="o">:</span> <span class="p">{</span> <span class="nx">someStaticMethod</span> <span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span> <span class="p">{</span> <span class="p">...</span> <span class="p">}</span> <span class="p">},</span> <span class="nx">members</span><span class="o">:</span> <span class="p">{</span> <span class="nx">makeSound</span> <span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">someStaticMethod</span><span class="p">(</span><span class="nx">x</span><span class="p">);</span> <span class="p">}</span> <span class="p">}</span> <span class="p">});</span> </pre></div> </div> <p>The syntax for accessing static variables simply is <tt class="docutils literal"><span class="pre">this.constructor.someStaticVar</span></tt>. Please note, for <tt class="docutils literal"><span class="pre">this.constructor</span></tt> to be available, the class must be a derived class of <tt class="docutils literal"><span class="pre">qx.core.Object</span></tt>, which is usually the case for regular, non-static classes.</p> <p>Instead of <tt class="docutils literal"><span class="pre">this.constructor</span></tt> you can also use the alternative syntax <tt class="docutils literal"><span class="pre">this.self(arguments)</span></tt>.</p> <p>In purely static classes for calling a static method from another static method, you can directly use the <tt class="docutils literal"><span class="pre">this</span></tt> keyword, e.g. <tt class="docutils literal"><span class="pre">this.someStaticMethod(x)</span></tt>.</p> </div> </div> </div> <div class="section" id="usage-of-interfaces-and-mixins"> <span id="pages-classes-usage-of-interfaces-and-mixins"></span><h2>Usage of Interfaces and Mixins<a class="headerlink" href="#usage-of-interfaces-and-mixins" title="Permalink to this headline">¶</a></h2> <div class="section" id="implementing-an-interface"> <h3>Implementing an Interface<a class="headerlink" href="#implementing-an-interface" title="Permalink to this headline">¶</a></h3> <p>The class system supports <a class="reference internal" href="interfaces.html"><em>Interfaces</em></a>. The implementation is based on the feature set of Java interfaces. Most relevant features of Java-like interfaces are supported. A class can define which interface or multiple interfaces it implements by using the <tt class="docutils literal"><span class="pre">implement</span></tt> key:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">implement</span> <span class="o">:</span> <span class="p">[</span><span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">IPet</span><span class="p">,</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">IFoo</span><span class="p">]</span> <span class="p">});</span> </pre></div> </div> </div> <div class="section" id="including-a-mixin"> <span id="pages-classes-mixins"></span><h3>Including a Mixin<a class="headerlink" href="#including-a-mixin" title="Permalink to this headline">¶</a></h3> <p>Unlike interfaces, <a class="reference internal" href="mixins.html"><em>Mixins</em></a> do contain concrete implementations of methods. They borrow some ideas from Ruby and similar scripting languages.</p> <p>Features:</p> <ul class="simple"> <li>Add mixins to the definition of a class: All members of the mixin are added to the class definition.</li> <li>Add a mixin to a class after the class is defined. Enhances the functionality but is not allowed to overwrite existing members.</li> <li>Patch existing classes. Change the implementation of existing methods. Should normally be avoided but, as some projects may need to patch qooxdoo, we better define a clean way to do so.</li> </ul> <p>The concrete implementations of mixins are used in a class through the key <tt class="docutils literal"><span class="pre">include</span></tt>:</p> <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">qx</span><span class="p">.</span><span class="nx">Class</span><span class="p">.</span><span class="nx">define</span><span class="p">(</span><span class="s2">&quot;qx.test.Cat&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">include</span> <span class="o">:</span> <span class="p">[</span><span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">MPet</span><span class="p">,</span> <span class="nx">qx</span><span class="p">.</span><span class="nx">test</span><span class="p">.</span><span class="nx">MSleep</span><span class="p">]</span> <span class="p">});</span> </pre></div> </div> </div> </div> <div class="section" id="summary"> <h2>Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2> <div class="section" id="configuration"> <h3>Configuration<a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h3> <table border="1" class="docutils"> <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Key</th> <th class="head">Type</th> <th class="head">Description</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td>type</td> <td>String</td> <td>Type of the class. Valid types are <tt class="docutils literal"><span class="pre">abstract</span></tt>, <tt class="docutils literal"><span class="pre">static</span></tt> and <tt class="docutils literal"><span class="pre">singleton</span></tt>. If unset it defaults to a regular non-static class.</td> </tr> <tr class="row-odd"><td>extend</td> <td>Class</td> <td>The super class the current class inherits from.</td> </tr> <tr class="row-even"><td>implement</td> <td>Interface | Interface[]</td> <td>Single interface or array of interfaces the class implements.</td> </tr> <tr class="row-odd"><td>include</td> <td>Mixin | Mixin[]</td> <td>Single mixin or array of mixins, which will be merged into the class.</td> </tr> <tr class="row-even"><td>construct</td> <td>Function</td> <td>The constructor of the class.</td> </tr> <tr class="row-odd"><td>statics</td> <td>Map</td> <td>Map of static members of the class.</td> </tr> <tr class="row-even"><td>properties</td> <td>Map</td> <td>Map of property definitions. For a description of the format of a property definition see <a class="reference external" href="http://demo.qooxdoo.org/5.0/apiviewer/#qx.core.Property">qx.core.Property</a>.</td> </tr> <tr class="row-odd"><td>members</td> <td>Map</td> <td>Map of instance members of the class.</td> </tr> <tr class="row-even"><td>environment</td> <td>Map</td> <td>Map of settings for this class. For a description of the format of a setting see <a class="reference external" href="http://demo.qooxdoo.org/5.0/apiviewer/#qx.core.Environment">qx.core.Environment</a>.</td> </tr> <tr class="row-odd"><td>events</td> <td>Map</td> <td>Map of events the class fires. The keys are the names of the events and the values are the corresponding event type class names.</td> </tr> <tr class="row-even"><td>defer</td> <td>Function</td> <td>Function that is called at the end of processing the class declaration. It allows access to the declared statics, members and properties.</td> </tr> <tr class="row-odd"><td>destruct</td> <td>Function</td> <td>The destructor of the class.</td> </tr> </tbody> </table> </div> <div class="section" id="references"> <h3>References<a class="headerlink" href="#references" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference internal" href="class_quickref.html"><em>Class Declaration Quick Ref</em></a> - a quick syntax overview</li> <li><a class="reference external" href="http://demo.qooxdoo.org/5.0/apiviewer/#qx.Class">API Documentation for Class</a></li> </ul> </div> </div> </div> </div> <div class="bottom-nav"> <a class="prev" href="oo_feature_summary.html" title="previous chapter">« Features of Object Orientation</a> <span class="separator">|</span> <a class="next" href="interfaces.html" title="next chapter">Interfaces »</a> </div> </section> <section id="sidebar"> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <ul> <li><a class="reference internal" href="#">Classes</a><ul> <li><a class="reference internal" href="#declaration">Declaration</a><ul> <li><a class="reference internal" href="#members">Members</a></li> <li><a class="reference internal" href="#class-members">Class Members</a></li> <li><a class="reference internal" href="#instance-members">Instance Members</a><ul> <li><a class="reference internal" href="#primitive-types-vs-reference-types">Primitive Types vs. Reference Types</a></li> </ul> </li> <li><a class="reference internal" href="#access">Access</a></li> <li><a class="reference internal" href="#special-types-of-classes">Special Types of Classes</a><ul> <li><a class="reference internal" href="#static-classes">Static Classes</a></li> <li><a class="reference internal" href="#abstract-classes">Abstract Classes</a></li> <li><a class="reference internal" href="#singletons">Singletons</a></li> </ul> </li> </ul> </li> <li><a class="reference internal" href="#inheritance">Inheritance</a><ul> <li><a class="reference internal" href="#single-inheritance">Single Inheritance</a></li> <li><a class="reference internal" href="#multiple-inheritance">Multiple Inheritance</a></li> <li><a class="reference internal" href="#polymorphism-overriding">Polymorphism (Overriding)</a><ul> <li><a class="reference internal" href="#calling-the-superclass-constructor">Calling the Superclass Constructor</a></li> <li><a class="reference internal" href="#calling-an-overridden-method">Calling an Overridden Method</a></li> <li><a class="reference internal" href="#calling-the-superclass-method-or-constructor-with-all-parameters">Calling the Superclass Method or Constructor with all parameters</a></li> <li><a class="reference internal" href="#calling-another-static-method">Calling another Static Method</a></li> </ul> </li> </ul> </li> <li><a class="reference internal" href="#usage-of-interfaces-and-mixins">Usage of Interfaces and Mixins</a><ul> <li><a class="reference internal" href="#implementing-an-interface">Implementing an Interface</a></li> <li><a class="reference internal" href="#including-a-mixin">Including a Mixin</a></li> </ul> </li> <li><a class="reference internal" href="#summary">Summary</a><ul> <li><a class="reference internal" href="#configuration">Configuration</a></li> <li><a class="reference internal" href="#references">References</a></li> </ul> </li> </ul> </li> </ul> <h4>» Next topic</h4> <p class="topless"><a href="interfaces.html" title="next chapter">Interfaces</a></p> <h4>« Previous topic</h4> <p class="topless"><a href="oo_feature_summary.html" title="previous chapter">Features of Object Orientation</a></p> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript"> // $('#searchbox').show(0); </script> </div> </div> </section> </section> </div> <div id="footer-wrapper"> <footer id="footer"> <div id="supported-by"> <a href="http://1and1.com"> <img src="http://resources.qooxdoo.org/images/1and1.png"> </a> <p class="claim"> Brought to you by <a href="http://1and1.com">1&amp;1</a>, one of the world's leading web hosts </p> <p class="legal"> © 1&amp;1 Internet AG<br> <a href="http://qooxdoo.org/legal">Legal notice</a> </a> </div> <div id="sitemap"> <div> <h3><a href="http://qooxdoo.org/">Home</a></h3> <ul> <li> <a href="http://qooxdoo.org/demos">Demos</a> </li> <li> <a href="http://qooxdoo.org/download">Download</a> </li> <li> <a href="http://news.qooxdoo.org">Blog</a> </li> <li> <a href="http://bugs.qooxdoo.org">Bugs</a> </li> <li> <a href="/project">Project</a> </li> <li> <a href="http://qooxdoo.org/license">License</a> </li> </ul> </div> <div> <h3><a href="http://qooxdoo.org/docs">Docs</a></h3> <ul> <li> <a href="http://manual.qooxdoo.org/5.0/pages/introduction/about.html">About</a> </li> <li> <a href="http://manual.qooxdoo.org/5.0/pages/getting_started.html">Getting Started</a> </li> <li> <a href="http://manual.qooxdoo.org/5.0/pages/website.html">Website</a> </li> <li> <a href="http://manual.qooxdoo.org/5.0/pages/mobile.html">Mobile</a> </li> <li> <a href="http://manual.qooxdoo.org/5.0/pages/desktop.html">Desktop</a> </li> <li> <a href="http://manual.qooxdoo.org/5.0/pages/server.html">Server</a> </li> </ul> </div> <div> <h3><a href="http://qooxdoo.org/community">Community</a></h3> <ul> <li> <a href="http://qooxdoo.org/community/contribution">Get Involved</a> </li> <li> <a href="http://qooxdoo.org/community/mailing_lists">Mailing List</a> </li> <li> <a href="http://qooxdoo.org/community/real_life_examples">Real Life Examples</a> </li> <li> <a href="http://qooxdoo.org/community/jobs_services">Jobs &amp; Services</a> </li> <li> <a href="http://qooxdoo.org/contrib">Contributions</a> </li> </ul> </div> </div> <div id="meta"> <div class="social"> <a href="http://twitter.com/qooxdoo"> <img src="http://resources.qooxdoo.org/images/twitter.png"> </a> <a href="https://www.facebook.com/pages/qooxdoo/187101324711780"> <img src="http://resources.qooxdoo.org/images/facebook.png"> </a> <a href="http://feeds.feedburner.com/qooxdoo/news/content"> <img src="http://resources.qooxdoo.org/images/feed.png"> </a> </div> <div class="notice"> <p class="source"> <strong> <a href="../../_sources/pages/core/classes.txt" rel="nofollow">Show Source</a> </strong> </p> <p class="page"> &copy; Copyright 2011-2015, 1&amp;1 Internet AG. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </p> </div> </div> </footer> </div> </body> </html>
var Build = Class.extend({ buildId: null, plugins: {}, observers: {}, buildData: {}, queries: {}, updateInterval: null, init: function(build) { var self = this; self.buildId = build; }, setupBuild: function (buildData, linkTemplate) { var self = this; self.buildData = buildData; self.fileLinkTemplate = linkTemplate; self.registerQuery('build-updated', 10); $(window).on('build-updated', function(data) { self.buildData = data.queryData; // If the build has finished, stop updating every 10 seconds: if (self.buildData.status > 1) { self.cancelQuery('build-updated'); $(window).trigger({type: 'build-complete'}); } $('.build-duration').data('duration', self.buildData.duration ? self.buildData.duration : ''); $('.build-started').data('date', self.buildData.started ? self.buildData.started : ''); $('.build-finished').data('date', self.buildData.finished ? self.buildData.finished : ''); $('#log pre').html(self.buildData.log); $('.errors-table tbody').append(self.buildData.error_html); if (self.buildData.errors == 0) { $('.errors-label').hide(); } else { $('.errors-label').text(self.buildData.errors); $('.errors-label').show(); } switch (self.buildData.status) { case 0: $('body').removeClass('skin-red skin-green skin-yellow'); $('body').addClass('skin-blue'); break; case 1: $('body').removeClass('skin-red skin-green skin-blue'); $('body').addClass('skin-yellow'); break; case 2: $('body').removeClass('skin-red skin-blue skin-yellow'); $('body').addClass('skin-green'); break; case 3: $('body').removeClass('skin-blue skin-green skin-yellow'); $('body').addClass('skin-red'); break; } PHPCI.uiUpdated(); }); }, registerQuery: function(name, seconds, query) { var self = this; var uri = 'build/meta/' + self.buildId; var query = query || {}; if (name == 'build-updated') { uri = 'build/data/' + self.buildId + '?since=' + self.buildData.since; } var cb = function() { $.ajax({ dataType: "json", url: window.PHPCI_URL + uri, data: query, success: function(data) { $(window).trigger({type: name, queryData: data}); }, error: handleFailedAjax }); }; if (seconds != -1) { self.queries[name] = setInterval(cb, seconds * 1000); } return cb; }, cancelQuery: function (name) { clearInterval(this.queries[name]); }, registerPlugin: function(plugin) { this.plugins[plugin.id] = plugin; plugin.register(); }, storePluginOrder: function () { var renderOrder = []; $('.ui-plugin > div').each(function() { renderOrder.push($(this).attr('id')); }); localStorage.setItem('phpci-plugin-order', JSON.stringify(renderOrder)); }, renderPlugins: function() { var self = this; var rendered = []; var renderOrder = localStorage.getItem('phpci-plugin-order'); if (renderOrder) { renderOrder = JSON.parse(renderOrder); } else { renderOrder = ['build-lines-chart', 'build-warnings-chart']; } for (var idx in renderOrder) { var key = renderOrder[idx]; // Plugins have changed, clear the order. if (typeof self.plugins[key] == 'undefined') { localStorage.setItem('phpci-plugin-order', []); } self.renderPlugin(self.plugins[key]); rendered.push(key); } for (var key in this.plugins) { if (rendered.indexOf(key) == -1) { self.renderPlugin(self.plugins[key]); } } $('#plugins').sortable({ handle: '.box-title', connectWith: '#plugins', update: self.storePluginOrder }); $(window).trigger({type: 'build-updated', queryData: self.buildData}); }, renderPlugin: function(plugin) { var output = plugin.render(); if (!plugin.box) { output = $('<div class="box-body"></div>').append(output); } var container = $('<div></div>').addClass('ui-plugin ' + plugin.css).attr('id', plugin.id); var content = $('<div></div>').append(output); content.addClass('box box-default'); if (plugin.title) { content.prepend('<div class="box-header"><h3 class="box-title">'+plugin.title+'</h3></div>'); } container.append(content); $('#plugins').append(container); }, UiPlugin: Class.extend({ id: null, css: 'col-lg-4 col-md-6 col-sm-12 col-xs-12', box: false, init: function(){ }, register: function() { var self = this; $(window).on('build-updated', function(data) { self.onUpdate(data); }); }, render: function () { return ''; }, onUpdate: function (build) { } }) });
328 Support Services Part Number 251174 in Stock. ASAP Fasteners provides you one click purchasing solutions for Aerospace fastenrs, aircraft bearing and mil-spec connector components. Please fill out below form with your desired quantity, your target price and the expected delivery dates for 328 Support Services part number 251174. All fields are necessary which marked by *. Our knowledgeable staff assist you within 15 Minutes for part number 251174 quote.
/* * Copyright © 1997 - 1999 IBM Corporation. * * Redistribution and use in source (source code) and binary (object code) * forms, with or without modification, are permitted provided that the * following conditions are met: * 1. Redistributed source code must retain the above copyright notice, this * list of conditions and the disclaimer below. * 2. Redistributed object code must reproduce the above copyright notice, * this list of conditions and the disclaimer below in the documentation * and/or other materials provided with the distribution. * 3. The name of IBM may not be used to endorse or promote products derived * from this software or in any other form without specific prior written * permission from IBM. * 4. Redistribution of any modified code must be labeled "Code derived from * the original OpenCard Framework". * * THIS SOFTWARE IS PROVIDED BY IBM "AS IS" FREE OF CHARGE. IBM SHALL NOT BE * LIABLE FOR INFRINGEMENTS OF THIRD PARTIES RIGHTS BASED ON THIS SOFTWARE. ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IBM DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THIS * SOFTWARE WILL MEET THE USER'S REQUIREMENTS OR THAT THE OPERATION OF IT WILL * BE UNINTERRUPTED OR ERROR-FREE. IN NO EVENT, UNLESS REQUIRED BY APPLICABLE * LAW, SHALL IBM BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ALSO, IBM IS UNDER NO OBLIGATION * TO MAINTAIN, CORRECT, UPDATE, CHANGE, MODIFY, OR OTHERWISE SUPPORT THIS * SOFTWARE. */ package opencard.core.service; /** * Exception thrown when a credential that was provided is invalid. * An application's credential may be invalid because it is not in a format * that can be interpreted by the service, or if it is not accepted by the * smartcard. * A smartcard's credential is invalid if it does not correspond with a * credential provided by the application. This may be detected if the * smartcard has to append a cryptographic MAC (message authentication code) * to it's response, and the verification of that MAC fails. Of course, this * may also happen if the smartcard's response was modified on it's way * to the service. * * @author Thomas Schaeck ([email protected]) * @author Roland Weber ([email protected]) * * @version $Id: CardServiceInvalidCredentialException.java,v 1.1.1.1 1999/10/05 15:34:31 damke Exp $ */ public class CardServiceInvalidCredentialException extends CardServiceUsageException { /** * Creates a new exception without detail message. */ public CardServiceInvalidCredentialException() { super(); } /** * Creates a new exception with the given detail message. * * @param msg a string indicating why this exception is thrown */ public CardServiceInvalidCredentialException(String msg) { super(msg); } } // class CardServiceInvalidCredentialException
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Actuate Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.birt.report.model.metadata; import java.util.regex.Pattern; import org.eclipse.birt.report.model.api.elements.structures.HideRule; import org.eclipse.birt.report.model.api.metadata.IPropertyDefn; import org.eclipse.birt.report.model.api.metadata.IStructureDefn; import org.eclipse.birt.report.model.api.metadata.PropertyValueException; import org.eclipse.birt.report.model.api.util.StringUtil; import org.eclipse.birt.report.model.core.DesignElement; import org.eclipse.birt.report.model.core.Module; import org.eclipse.birt.report.model.elements.interfaces.IStyleModel; import org.eclipse.birt.report.model.util.StyleUtil; /** * String property type. * <p> * All string values are valid. However, if the caller provides a type other * than a string, the value is converted to a string using default conversion * rules. * */ public class StringPropertyType extends TextualPropertyType { /** * Display name key. */ private static final String DISPLAY_NAME_KEY = "Property.string"; //$NON-NLS-1$ private static final String HIDE_RULE_FORMAT_PATTERN = "[$_a-zA-Z][\\.$_a-zA-Z0-9]*"; //$NON-NLS-1$ private static final Pattern hideRuleFormatPattern = Pattern.compile( HIDE_RULE_FORMAT_PATTERN, Pattern.CASE_INSENSITIVE ); /** * Constructor. */ public StringPropertyType( ) { super( DISPLAY_NAME_KEY ); } /* * (non-Javadoc) * * @see * org.eclipse.birt.report.model.metadata.PropertyType#validateValue(org * .eclipse.birt.report.model.core.Module, * org.eclipse.birt.report.model.core.DesignElement, * org.eclipse.birt.report.model.metadata.PropertyDefn, java.lang.Object) */ public Object validateValue( Module module, DesignElement element, PropertyDefn defn, Object value ) throws PropertyValueException { if ( value == null ) return null; String stringValue = trimString( value.toString( ), defn .getTrimOption( ) ); if ( IStyleModel.FONT_FAMILY_PROP.equals( defn.getName( ) ) ) { return StyleUtil.handleFontFamily( defn, stringValue ); } if ( HideRule.FORMAT_MEMBER.equals( defn.getName( ) ) ) { IStructureDefn hideRuleStruct = MetaDataDictionary.getInstance( ) .getStructure( HideRule.STRUCTURE_NAME ); IPropertyDefn formatProperty = null; if ( hideRuleStruct != null ) formatProperty = hideRuleStruct .getMember( HideRule.FORMAT_MEMBER ); if ( defn == formatProperty ) { return validateHideRuleFormat( stringValue ); } } return stringValue; } /** * * @param value * @return * @throws PropertyValueException */ private Object validateHideRuleFormat( String value ) throws PropertyValueException { if ( StringUtil.isBlank( value ) ) { return value; } if ( !hideRuleFormatPattern.matcher( value ).matches( ) ) throw new PropertyValueException( value, PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE, getTypeCode( ) ); return value; } /* * (non-Javadoc) * * @see * org.eclipse.birt.report.model.design.metadata.PropertyType#getTypeCode() */ public int getTypeCode( ) { return STRING_TYPE; } /* * (non-Javadoc) * * @see * org.eclipse.birt.report.model.design.metadata.PropertyType#getXmlName() */ public String getName( ) { return STRING_TYPE_NAME; } /** * Converts the string property value to a double, this method will always * return 0. */ public double toDouble( Module module, Object value ) { // Strings cannot be converted to doubles because the conversion // rules are locale-dependent. return 0; } /** * Converts the string property value to an integer. * * @return integer value of the string representation, return <code>0</code> * if <code>value</code> is null. */ public int toInteger( Module module, Object value ) { if ( value == null ) return 0; try { return Integer.decode( (String) value ).intValue( ); } catch ( NumberFormatException e ) { return 0; } } }
We are a Professional Healthcare IT Solutions Company specialized in delivering total health care solutions for Hospitals, Nursing Homes, Diagnostic Centres and Pharmacy Shops. Practicing Medical Professionals & Domain Experts with specialized I T team, who have successfully computerized a large number of hospitals since a decade; have formed the Healthcare division of our Company. To introduce state-of-the-art Computerized Film-less and Paperless Hospital management & Information System with Web enabled Clinical work Flow. To link progressively computerized network of Hospitals & then setup centralized Medical Information System at Corporate Hospital. P.O.Box: 45014, Bur Dubai, Dubai, UAE.
# Check for required meteor microservice container image name and port no if [ "$#" -lt 2 ]; then echo "Please specify the correct parameters for microservice name and port no" echo "Correct syntax: $0 <service name> <port no> [<docker host>]" exit 1 fi dimage="tradedepot/$1" dockerhost="http://localhost" if [ "$#" -gt 2 ]; then dockerhost="http://$3" fi # Set elasticurl and rabbiturl dynamically...docker-based for non-circle deployments elasticurl="http://localhost:9200" rabbiturl="http://localhost:5672" redishost="localhost" redisport="6379" if [ ! $CI ]; then if [ "$#" -gt 2 ]; then elasticurl="http://$3:9200" rabbiturl="amqp://localhost" redishost="$3" fi fi mongourl="mongodb://mongodb:27017" mailurl="" senderemail="[email protected]" mailsender="TradeDepot Notifications <[email protected]>" s3bucket="tdcdocuments" # Run the docker container. For this to work, ensure you have the mongo container running with runmongo.sh docker run -d \ -e ROOT_URL=$dockerhost:$2 \ -e MONGO_URL=$mongourl/tradedepot \ -e SEARCH_MONGO_URL=$mongourl/tradedepot \ -e SEARCH_ELASTIC_URL=$elasticurl \ -e RABBIT_URL=$rabbiturl \ -e REDIS_HOST=$redishost \ -e REDIS_PORT=$redisport \ -e MAIL_URL=$mailurl \ -e SENDER_EMAIL="$senderemail" \ -e MAIL_SENDER="$mailsender" \ -e AWS_S3_BUCKET=$s3bucket \ --name=$1 \ -p $2:80 \ $dimage
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef PluginProxy_h #define PluginProxy_h #if ENABLE(PLUGIN_PROCESS) #include "Connection.h" #include "Plugin.h" #include <WebCore/AffineTransform.h> #include <WebCore/IntRect.h> #if PLATFORM(MAC) #include <wtf/RetainPtr.h> OBJC_CLASS CALayer; #endif #if ENABLE(TIZEN_CANVAS_GRAPHICS_SURFACE) #include "GraphicsSurface.h" #endif namespace WebCore { class HTTPHeaderMap; class ProtectionSpace; } namespace WebKit { class ShareableBitmap; class NPVariantData; class PluginProcessConnection; class PluginProxy : public Plugin { public: static PassRefPtr<PluginProxy> create(const String& pluginPath); ~PluginProxy(); uint64_t pluginInstanceID() const { return m_pluginInstanceID; } void pluginProcessCrashed(); void didReceivePluginProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments); void didReceiveSyncPluginProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&); #if ENABLE(TIZEN_ACCELERATED_COMPOSITING_PLUGIN_LAYER_EFL) virtual int platformSurfaceID() { return m_platformSurfaceId; } virtual void setPlatformSurfaceID(int); virtual void updateContentBuffers(const WebCore::IntRect&); #if USE(GRAPHICS_SURFACE) || ENABLE(TIZEN_CANVAS_GRAPHICS_SURFACE) virtual uint32_t copyToGraphicsSurface(); virtual uint64_t graphicsSurfaceToken() const; #if ENABLE(TIZEN_WEBKIT2_TILED_AC) virtual int graphicsSurfaceFlags() const { return WebCore::GraphicsSurface::Is2D | WebCore::GraphicsSurface::Alpha; } #endif #endif #endif private: explicit PluginProxy(const String& pluginPath); // Plugin virtual bool initialize(const Parameters&); virtual void destroy(); virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& dirtyRect); virtual PassRefPtr<ShareableBitmap> snapshot(); #if PLATFORM(MAC) || ENABLE(TIZEN_ACCELERATED_COMPOSITING_PLUGIN_LAYER_EFL) virtual PlatformLayer* pluginLayer(); #endif virtual bool isTransparent(); virtual bool wantsWheelEvents() OVERRIDE; virtual void geometryDidChange(const WebCore::IntSize& pluginSize, const WebCore::IntRect& clipRect, const WebCore::AffineTransform& pluginToRootViewTransform); virtual void visibilityDidChange(); virtual void frameDidFinishLoading(uint64_t requestID); virtual void frameDidFail(uint64_t requestID, bool wasCancelled); virtual void didEvaluateJavaScript(uint64_t requestID, const String& result); virtual void streamDidReceiveResponse(uint64_t streamID, const WebCore::KURL& responseURL, uint32_t streamLength, uint32_t lastModifiedTime, const String& mimeType, const String& headers, const String& suggestedFileName); virtual void streamDidReceiveData(uint64_t streamID, const char* bytes, int length); virtual void streamDidFinishLoading(uint64_t streamID); virtual void streamDidFail(uint64_t streamID, bool wasCancelled); virtual void manualStreamDidReceiveResponse(const WebCore::KURL& responseURL, uint32_t streamLength, uint32_t lastModifiedTime, const WTF::String& mimeType, const WTF::String& headers, const String& suggestedFileName); virtual void manualStreamDidReceiveData(const char* bytes, int length); virtual void manualStreamDidFinishLoading(); virtual void manualStreamDidFail(bool wasCancelled); virtual bool handleMouseEvent(const WebMouseEvent&); virtual bool handleWheelEvent(const WebWheelEvent&); virtual bool handleMouseEnterEvent(const WebMouseEvent&); virtual bool handleMouseLeaveEvent(const WebMouseEvent&); virtual bool handleContextMenuEvent(const WebMouseEvent&); virtual bool handleKeyboardEvent(const WebKeyboardEvent&); #if ENABLE(TIZEN_PLUGIN_TOUCH_EVENT) virtual bool handleTouchEvent(const WebTouchEvent&); #endif #if ENABLE(TIZEN_PLUGIN_SUSPEND_RESUME) virtual void suspendPlugin(); virtual void resumePlugin(); #endif #if ENABLE(TIZEN_PLUGIN_CUSTOM_REQUEST) virtual void processPluginCustomRequest(const String& request, const String& msg); #endif virtual void setFocus(bool); virtual NPObject* pluginScriptableNPObject(); #if PLATFORM(MAC) virtual void windowFocusChanged(bool); virtual void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); virtual void windowVisibilityChanged(bool); virtual uint64_t pluginComplexTextInputIdentifier() const; virtual void sendComplexTextInput(const String& textInput); virtual void setLayerHostingMode(LayerHostingMode) OVERRIDE; #endif virtual void contentsScaleFactorChanged(float); virtual void privateBrowsingStateChanged(bool); virtual bool getFormValue(String& formValue); virtual bool handleScroll(WebCore::ScrollDirection, WebCore::ScrollGranularity); virtual WebCore::Scrollbar* horizontalScrollbar(); virtual WebCore::Scrollbar* verticalScrollbar(); float contentsScaleFactor(); bool needsBackingStore() const; bool updateBackingStore(); uint64_t windowNPObjectID(); WebCore::IntRect pluginBounds(); void geometryDidChange(); // Message handlers. void loadURL(uint64_t requestID, const String& method, const String& urlString, const String& target, const WebCore::HTTPHeaderMap& headerFields, const Vector<uint8_t>& httpBody, bool allowPopups); void update(const WebCore::IntRect& paintedRect); void proxiesForURL(const String& urlString, String& proxyString); void cookiesForURL(const String& urlString, String& cookieString); void setCookiesForURL(const String& urlString, const String& cookieString); void getAuthenticationInfo(const WebCore::ProtectionSpace&, bool& returnValue, String& username, String& password); void getPluginElementNPObject(uint64_t& pluginElementNPObjectID); void evaluate(const NPVariantData& npObjectAsVariantData, const String& scriptString, bool allowPopups, bool& returnValue, NPVariantData& resultData); void cancelStreamLoad(uint64_t streamID); void cancelManualStreamLoad(); void setStatusbarText(const String& statusbarText); #if PLATFORM(MAC) void pluginFocusOrWindowFocusChanged(bool); void setComplexTextInputState(uint64_t); void setLayerHostingContextID(uint32_t); #endif #if PLUGIN_ARCHITECTURE(X11) void createPluginContainer(uint64_t& windowID); void windowedPluginGeometryDidChange(const WebCore::IntRect& frameRect, const WebCore::IntRect& clipRect, uint64_t windowID); #endif String m_pluginPath; RefPtr<PluginProcessConnection> m_connection; uint64_t m_pluginInstanceID; WebCore::IntSize m_pluginSize; // The clip rect in plug-in coordinates. WebCore::IntRect m_clipRect; // A transform that can be used to convert from root view coordinates to plug-in coordinates. WebCore::AffineTransform m_pluginToRootViewTransform; // This is the backing store that we paint when we're told to paint. RefPtr<ShareableBitmap> m_backingStore; // This is the shared memory backing store that the plug-in paints into. When the plug-in tells us // that it's painted something in it, we'll blit from it to our own backing store. RefPtr<ShareableBitmap> m_pluginBackingStore; // Whether all of the plug-in backing store contains valid data. bool m_pluginBackingStoreContainsValidData; bool m_isStarted; // Whether we're called invalidate in response to an update call, and are now waiting for a paint call. bool m_waitingForPaintInResponseToUpdate; // Whether we should send wheel events to this plug-in or not. bool m_wantsWheelEvents; // The client ID for the CA layer in the plug-in process. Will be 0 if the plug-in is not a CA plug-in. uint32_t m_remoteLayerClientID; #if PLATFORM(MAC) RetainPtr<CALayer> m_pluginLayer; #endif #if ENABLE(TIZEN_ACCELERATED_COMPOSITING_PLUGIN_LAYER_EFL) int m_platformSurfaceId; #endif }; } // namespace WebKit #endif // ENABLE(PLUGIN_PROCESS) #endif // PluginProxy_h
# Version require "wire_transfer/version" # Resources require "wire_transfer/structured_communication" # Helpers require "wire_transfer/helper" # Errors require "wire_transfer/invalid_number_error" module WireTransfer def self.generate_structured_communication(number) StructuredCommunication.new(number) end def self.parse_structured_communication(string) StructuredCommunication.from_string(string) end end ActiveSupport.on_load(:action_view) do include WireTransfer::Helper end
/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.zxing.camera_wl; import android.graphics.Point; import android.hardware.Camera; import android.os.Handler; import android.os.Message; import android.util.Log; final class PreviewCallback implements Camera.PreviewCallback { private static final String TAG = PreviewCallback.class.getSimpleName(); private final CameraConfigurationManager configManager; private final boolean useOneShotPreviewCallback; private Handler previewHandler; private int previewMessage; PreviewCallback(CameraConfigurationManager configManager, boolean useOneShotPreviewCallback) { this.configManager = configManager; this.useOneShotPreviewCallback = useOneShotPreviewCallback; } void setHandler(Handler previewHandler, int previewMessage) { this.previewHandler = previewHandler; this.previewMessage = previewMessage; } public void onPreviewFrame(byte[] data, Camera camera) { Point cameraResolution = configManager.getCameraResolution(); if (!useOneShotPreviewCallback) { camera.setPreviewCallback(null); } if (previewHandler != null) { Message message = previewHandler.obtainMessage(previewMessage, cameraResolution.x, cameraResolution.y, data); message.sendToTarget(); previewHandler = null; } else { Log.d(TAG, "Got preview callback, but no handler for it"); } } }
A baron woodlands, devoid of colour and life. Yet, there is still something to be found. Something ancient lives here. Care for it as if it were your own, or watch it melt to ash and bone. Words that echoed in my mind as I edged my way through the forest. The trees were spread sparse, and lay bare. Their dark, silvery trunks clinging to the ground through exposed roots; roots that wove their way across the grim, grey dirt. I had to be careful not to trip as I walked, the entire forest floor was laden with them. The air was still. Not a sound floated through it, save the crunch of my boots on the dry, dead ground. And that’s what this place was, or at least seemed: dead. There was no colour, no life. The forest seemed empty, devoid of anything you might expect to see in a woodland. No animals, no water, no sunlight breaking its way through the canopy. The lack of leaves would have left the whole forest to bath in the warm glow of the sun, were it not hidden beneath perpetual cloud. I came to a steeply crested dirt mound. Either side were trees, jagged roots and felled decaying logs. It seemed to be my only way forward. In my attempts to scramble up, I lost my footing and fell forward. I wasn’t quite sure how, my foot felt planted one second, then as if the ground was gone the next, but it didn’t matter. I had made it over the rise but landed on my stomach in the dirt. Peeling upright as quickly as I could, I frantically checked my pocket. To my relief, there was no harm done. My prize was safe. Dusting myself off, I continued onwards, heading deeper into the forest. I flew around, a haunting voice catching me by surprise. My heart in my mouth, my breath caught in my lungs, I found myself peering down at a haggard old woman, head spun with dry and curling white hairs. She was sat against the base of a tree, wore a tattered old white dress down to her feet, no shoes and a crooked smile. “To be caught off-guard by a scary old woman in the middle of a forest” she continued, her smile broadening. I nodded frantically in agreement. “What brings you out here?” She pressed. “Alone”. Her expression was warm but her eyes were cold. They were like the forest around me. Lifeless and empty. “What are you doing out here?” I asked, trying to turn the conversation to her. We looked at each other, an eerie smile on her face, what I imagined to be nerves on mine. “I better head this way,” I said after a pause, edging away from her. I nodded awkwardly at her, scurrying away. Before I could move out of earshot, I heard her call. I turned back to answer, to lie or question her knowledge of what lay beneath the fabric of my clothes, but there was nobody to respond back to. The woman was gone. With every hair on my body stood on end, I carried on. I had to be there soon, or must at least be getting close. She was right, though, it was getting darker. It was impossible to know how high the sun was in the sky. Between myself and the clouds was a high floating mist that wafted through the treetops. It scattered what little light crept its way through the clouds, destroying all indication of the placement of the sun within the sky. All I knew was, I was losing light. I shuddered at the thought of being caught out here in the dark. Waking to a wrinkled old crone standing over me, fumbling at my pocket and scared me half to death. She’d already done that once, I suppose if she came back and did the other half she’d finish the job. I could feel the fear etching its way into my body. A strange sensation of heat on my skin, despite the cold. A feeling of movement in my stomach, without any food inside it. And a distortion behind my eyes; the world was the same as how I always knew it, but somehow looked different at the same time. Like I was seeing more detail, my unconscious mind looking for things it normally wouldn’t. Like creepy old ghost women. I didn’t want to be here anymore. The only way out was forward. I marched on, watching my footsteps carefully. I would seemingly trip every time I looked up, like the roots beneath me were tricking my eyes. Where I thought was clear was suddenly not. This forest was shapeless, aimless, it just kept going. But then, my heart sank, as I came to a familiar sight. A crested dirt mound, this time with scrapped boot marks down the rise. I approached it cautiously. To either side were trees, felled logs and jagged roots. There was no mistaking it. Carefully, I climbed, watching my feet as I went. With a hop I sprang over the ridge and immediately cast my eyes around the trees, turning back to check for old, haggard strangers. But there was nobody. I gasped as a jolt of shock struck me deep within my chest. Slowly, I turned back around. There she was, stood barefoot in the dirt. Hunched over, neck twisted, peering up at me through the spirals of hair falling down her face. “What’s going on?” I demanded, eyes darting around the forest for other potential surprises. The woman had not been there mear moments ago, and the trees were spread so far apart around us that there was no way she could have appeared from behind one of them. “I would like to see the treasure you carry”. She said softly, wearing the same broad smile. “It is not for you,” I said, trying to strike my tone with some form of confidence while carefully shielding my pocket with my hands. “Get away from me, crone!” I wailed, sprinting round her, my hands still covering my pockets. I ran deeper and deeper into the forest, zig-zagging between the gnarled roots as fast as I could. I kept the pace for as long as I could, constantly switching between tracking my movements across the floor — careful not to trip — and looking up for signs of repetition. Eventually, after a fairly lengthy, yet cautious run, I started to tire. I wasn’t the most physically fit of individuals. I came from wealth, I didn’t have to be. Panting, exhausted and pleading with my own head for signs of the creature that I sought, I came upon a particularly dangerous looking patch of roots, stretching on ahead of me into the far distance. They spun up in all directions, curved and twisted, some even looping twice over before burying themselves back into the ground. It seemed like they were fleeing the very earth itself. I looked around the desolate landscape. No sign of women, or crests or anything familiar; except a brutally grey and unappealing forest. I broke off my pace and opted for a slow walk through the entangled roots. Eyes firmly at my feet, I made steady progress for all of thirty seconds, then I glanced up. There is was. The crested dirt mound. Right before my eyes. How? What had happened to the swarming roots? There was no way I’d made my way through them. Shaking, but with anger and fear, I put my hand forward and climbed. Eyes darting about the place, I kept myself moving, circling as I went, looking for the old woman. I didn’t want to be surprised again. But she wasn’t here. I couldn’t see her anywhere. I stood for a good few minutes, in the dead silence of the forest. Waiting for her to appear. She didn’t come. I could feel my mind slipping away from me. I was becoming desperate. The sun didn’t appear to be moving. It was still fading, and had been for what seemed like hours. I couldn’t see a way out. How could I escape a forest that could change its shape at a moments notice? Nobody had warned me this forest played games with you. That a witch lived between its deathly edges and tangled roots. Slowly, I reached into my pocket and pulled out my prize. A mottled green egg, slightly larger than a chicken’s, lay in my palm. I held it out before me, gazing at its smooth shell. I felt a coldness behind me. Not a breeze, more like that cold feeling of placing your hand near frozen water. An aura. The woman appeared. Shuffling past my shoulder, she came to a kneel in front of me. She too gazed at the egg. Again she wore that same smile. Again her eyes, though wide and fixed upon the egg, were lifeless. “Leave it here, and I’ll let you go”. She whispered, eyes still fixed upon the striking little egg. “I know what happens if I let go of it.” I whimpered. I was afraid, but not more afraid than I was of dying, cold and alone in this forest. “Go on. Take it from me.” I said, a pleading note clear in my quivering voice. “Just put it on the ground.” The witch breathed with a gesture towards the floor. I watched her for a moment, wondering why she wouldn’t just take the egg. Then, cautiously, I reached out with one hand. As I slide my hand towards her skin, it floated away like mist. She really was a ghost; an apparition. But the wheels were turning in my mind. I was starting to piece it together. What was happening. Not how it was happening, mind, that part still eluded me, but what was causing my confusion, my lost sense of direction and inability to avoid the crested dirt mound. I could see the witch growing anxious, she twitched as she crouched before me, watching me intently. “You can only control what I cannot see,” I said finally, cracking a small smile. I rose quickly. I kept my eyes on the horizon and I walked onwards, straight through her. I did not let my vision waiver from the direction in which I walked. I stumbled, I tripped and fell. Cut, bled and bruised. But she couldn’t trap me if I didn’t take my eyes off the path. “No!” I called out, not turning my head even an inch. I had a newfound sense of confidence. I’d beaten her, I’d beaten her magic and her tricks. I felt a surge of energy within my body, my fear turning to determination. From behind a tree ahead of me, she came into view. She appeared to be sobbing, or at least, sad. I refused to look at her directly, my eyes were looking nowhere but dead ahead. As I walked past her, she started to scuttle along beside me. “This is my task. This is how I look after my family.” I replied firmly, shaking off her feeble attempts to sway my decision and pull me off course. “I cannot take it anymore. Please, don’t do thi-” But she was cut short. We’d arrived. I had been so close for so long. Before me was a clearing in the forest. Within it lay deep crater entrenched by roots and fallen trees; within the crater itself, was what I set out to find. The creature hummed softly. A low, baritone noise. It was an almost perfect half-sphere, about the size of a small cottage, sitting dead centre, in the heart of the crater. Its skin was a harsh pink mixed with tinges of brown, and all over its body were placed long, barbed spikes. It reminded me of a more jagged looking sea urchin; a delicacy we often treated ourselves back home. It had no face, eyes, nose or anything else you’d normally associate with an animal. I supposed they may be under its striking shell. A quick glance at the witch told me she was devastated by my find. She shrank down onto all fours, clutching the lip of the crater, looking down on the otherworldly beast in the pit below. I left the sobbing woman on the edge of the crater as I slid down its ridge, towards the animal. It made no movements towards me, nor did it react to my presence. The smell was horrific. Like rotting food and gone-off meat. As I reached its massive form, I placed the egg on the floor beside it. The egg shattered into a pile of ash, the small bones of the chick that had laid inside spilling out onto the ground. The creature seemed to sense this. With a rumble, it crept towards the pile of ash and bone, its swollen body contorting in and out as it went. Within moments, it had engulfed the remnants of the egg. All I heard next was some rather unpleasant sounds of sloshing and gurgling, presumably as it ingested the remains in a mouth that lay somewhere beneath its hulking shell. There wasn’t a lot about this journey that I had expected to happen, but I knew all about this bit. My family, those that had heard tales of trips made before, had told me in great detail. The creature started to glow, its pink skin hews turning a deeper red. Beneath the skin’s surface, a fiery orange seemed to be erupting, flowing its way around the beast’s body like lava. It glowed a vibrant glow in this dark, desolate place. Then, it seemed to latch itself to the floor, and the ground began to shake. Around me, I could see the roots of the trees twitching, starting to twist and turn even more so. They made their way further and further out of the ground. The trees that stood on the edge of the clearing began to crumble and fall helplessly into the crater, yet so weak and hollow, they didn’t roll or come crashing down the ridge, but instead gently slid, crumbling into smaller pieces as they went. The crater itself was growing in size, as the dirt ridge collapsed around us. I had to watch my balance, careful not to fall as the vibrations grew in intensity. In the frantic scene, I took a quick look around. A few minutes after it began, it all stopped. In that time, the crater had grown, the roots had leapt further from the earth and trees had fallen into the pit all around us. The creature itself was much larger as well. It’s vivid red and orange skin returned to its normal pink state. Again, it was humming softly. I stood, watching the animal. Waiting for what I knew must come next. It had to… it couldn’t not. It took some time, time enough for me to grow increasingly nervous, but eventually, the giant started to convulse in and out again, as it very slowly crept away from me. The patch left behind was drenched in a thick white mucus which billowed from the ground like steam, evaporating into the air. With no wind or breeze to speak of, it rose straight up into the mists above. And there it was, laying in the thick of the slimming mess, a gleaming blue stone. Clambering into the ooze, my shoes sticking to the ground as I went, I grabbed the mucus-encrusted stone and made my way swiftly out the crater, using fallen trees and roots to haul myself up to the edge. Sitting on the lip of the enormous pit, I wiped the slim off the gem with my clothes. It was a perfect circle, a glowing blue pearl. The size of my cupped hands, it shone without any light reflecting into it. I couldn’t have asked for anything so stunning. This gem was perhaps the most valuable single item anyone could get their hands on right now, and it would keep my family in great wealth for a century. I left the forest, nearly skipping, overjoyed. The gem was hidden beneath my clothes, I couldn’t let anyone know I had it. Not until it and I were safely home. Nobody but the inner circle of my family knew of this place. If anyone were to discover it, our fortune would be ripped from beneath us. Soon, I came to the crested mound, but this time I was facing the other way. “Everything must have an end”. I replied, matter of factly, now very much unafraid of the deathly figure before me. “It’s not enough.” she sobbed. “It’s all I can give you.” And with that, I left. I walked away from her. Hoping I would never to hear from her or see her again. Somebody else would have to come back here, of course, but I wasn’t going to be me. I’d be long dead.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>itree: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.13.2 / itree - 2.0.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> itree <small> 2.0.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-11-25 05:11:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-25 05:11:20 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.13.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-itree&quot; version: &quot;2.0.0&quot; maintainer: &quot;Li-yao Xia &lt;[email protected]&gt;&quot; synopsis: &quot;A Library for Representing Recursive and Impure Programs in Coq&quot; homepage: &quot;https://github.com/DeepSpec/InteractionTrees&quot; dev-repo: &quot;git+https://github.com/DeepSpec/InteractionTrees&quot; bug-reports: &quot;https://github.com/DeepSpec/InteractionTrees/issues&quot; license: &quot;MIT&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] run-test: [ make &quot;-j%{jobs}%&quot; &quot;all&quot; ] depends: [ &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.10~&quot;} &quot;coq-ext-lib&quot; {= &quot;0.10.2&quot;} &quot;coq-paco&quot; {&gt;= &quot;4.0.0&quot; &amp; &lt; &quot;4.1.0&quot;} &quot;ocamlbuild&quot; {with-test} ] authors: [ &quot;Li-yao Xia &lt;[email protected]&gt;&quot; &quot;Yannick Zakowski &lt;[email protected]&gt;&quot; &quot;Paul He &lt;[email protected]&gt;&quot; &quot;Chung-Kil Hur &lt;[email protected]&gt;&quot; &quot;Gregory Malecha &lt;[email protected]&gt;&quot; &quot;Steve Zdancewic &lt;[email protected]&gt;&quot; &quot;Benjamin C. Pierce &lt;[email protected]&gt;&quot; ] tags: &quot;org:deepspec&quot; url { http: &quot;https://github.com/DeepSpec/InteractionTrees/archive/2.0.0.tar.gz&quot; checksum: &quot;sha512=89183308b8344db0f6516d6049e9ac20571177beb11a4382e74612b8943938367f7b8d841c2f682606f40f8f5eab97eda189062f28e6ed79321f6f40c493e95f&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-itree.2.0.0 coq.8.13.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.2). The following dependencies couldn&#39;t be met: - coq-itree -&gt; coq &lt; 8.10~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-itree.2.0.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
• Total fee is $60. Pay with Cash, Credit, Debit or PayPal. • Picture ID is required for attendance. • A Certificate is issued upon successful completion of the program. • Register Online any time, or in person at ADAPT (5110 Wilkinson Dr. #108, Corpus Christi). • Office Hours: 9AM to 9PM weekdays; 9AM to 3PM weekends. Students younger than 16 years must have a parent or legal guardian present in order to register. Your registration does not “lock you in” to a particular date and is good for 6 months. on the first day of class, provided there are still seats available. Options available for Spanish-speaking students.
Portland SEO's Augusto Beato emphasized that e-commerce companies should not fret about giving free deliveries as the shipping cost is already built in the price of the goods. Beato was reacting to comment by Etsy President and CEO Josh Silverman that e-commerce companies are under pressure to offer free shipping from deal-chasing consumers, and those who don't may run the risk of falling behind their competitors. "In fact, this is why Etsy raised its commission from 3.5 percent to 5 percent--in order to cover shipping cost, among the many operational expenses," said Beato, who is the CEO of Portland SEO. Follow this link to learn more about Portland SEO. To contact Augusto Beato, please click here. "Free shipping is pretty much table stakes today," Silverman told CNBC's Jim Cramer in an exclusive interview. "About half of all the items on Etsy, buyers say, have shipping prices that are too high." Speaking after his handmade goods e-tailer reported better-than-expected earnings results and raised its full-year revenue guidance, Silverman said that sales were strong despite the shift in consumer preferences. "We grew at 20 percent last quarter, even with buyers' hesitation about shipping costs," Silverman said. Etsy's third-quarter results showed accelerating growth for the growing online marketplace, with a 41.3 percent boost in revenue year over year. The company, which helps connect buyers with over 50 million handmade items, also raised prices this quarter, taking its commission from 3.5 percent to 5 percent per order in an effort to deliver more value to its "makers."
Barthel J., Mryglod I. Editorial: Workshop "Modern Problems of Soft Matter Theory" (Lviv, 27-31 August, 2000). // Cond. Matt. Phys. - 2001.- V.4, , No 1(25).- P.3-4. Batsevych O., Mryglod I.., Rudavskii Yu., Tokarchuk M.V. Hydrodynamic excitation spectrum and time correlation functions for multicomponent mixtures of magnetic and non-magnetic particles. // Cond. Matt. Phys.- 2001.- V.4, No 2(26).- P.349-360. Batsevych O., Mryglod I., Rudavskii Yu., Tokarchuk M.V. Hydrodynamic collective modes and time-dependent correlation functions of a multicomponent ferromagnetic mixture. // J. Mol. Liquids. 2001, V.93, No 1-3, P.119-122. Batsevych O., Mryglod I., Rudavskii Yu., Tokarchuk M.V. Hydrodynamic collective modes and time-dependent correlation functions of a multicomponent ferromagnetic mixture. //Coll. Phys.Papers, 2001, vol.4, p.154-161 (in Ukrainian). Batsevych O., Mryglod I., Rudavskii Yu., Tokarchuk M.V. On the statistical hydrodynamics for a binary mixture of magnetic and non-magnetic particles. // Condens. Matt. Phys., 2001, V.4, No 3(27), P.499-521. Baumketner A., Chushak Ya., Hiwatari Y. A comparative study of the diffusion processes in liquid binary alloys with a tendency to aggregation and segregation, in Defect and Diffusion Forum, v. 188-190, p.143-152, Scitec Publications, 2001. Baumketner A., Hiwatari Y. Finite-size dependence of the bridge function extracted from molecular dynamics simulations. // Phys. Rev. E, 2001, v. 63, N 6, p.061201-1-061201-4. Baumketner A., Shimizu H., Hiwatari Y. Structural organization of a chain molecule with specific charge distribution. A molecular dynamics study. // Molecular Simulation, 2001. Baumketner A., Shimizu H., Isobe M., Hiwatari Y. Helix transition in di-block polyampholyte. // J. Phys.: Cond. Matt., 2001, v. 14. Ben-Amotz D. and Omelyan I.P. The influence of molecular shape on chemical reaction thermodynamics // J. Chem. Phys., 2001, vol. 115, No 18 . Bryk T., Mryglod I. Collective excitations in liquid bismuth: The origin of kinetic relaxing modes // J. Phys.: Cond. Matt.- 2001.- V.13, No 7.- P.1343-1352. Bryk T., Mryglod I. Collective dynamics in liquid lead: generalized propagating excitations. // Phys. Rev. E, 2001, v. 63, N 5, p.051202-1-13. Bryk T., Mryglod I. Collective dynamics in liquid lead. II. Mode contributions to time correlation functions. // Phys. Rev. E, 2001, v. 64, N 3, p.032202-1-4. Bryk T., Mryglod I. Generalized collective modes approach. Mode contributions to time correlation functions in liquid lead. // Cond. Matter Physics, 2001, v. 4, N 3, p.387-405. Bryk T., Mryglod I. Origin of kinetic collective modes in pure and binary liquids.// J. Mol. Liquids. 2001., V.92, No 1-2.- P.105-116. Derzhko O. Jordan-Wigner fermionization for spin-1/2 systems in two dimensions: A brief zeview. // Journ. Phys. Studies, 2001, vol.5, N 1, p.49-64. Derzhko O. Magnetization processes in quantum spin chains with regularly alternating intersite interactions. // Ukr. Journ. Phys., 2001, vol.46, N 7, p.762-767. Derzhko O., Krokhmalskii T. Incommensurate spin-Peierls phases in the one-dimensional quantum isotropic XY model // Ferroelectrics, 2001, 250, p.397-400. Derzhko O., Krokhmalskii T. Towards the dynamic properties of square-lattice quantum spin models. // Acta Physica Polonica B, 2001, vol.32, N 10, p.3421-3426. Derzhko O., Myhal V.M. Nucleation phenomena in a nonuniform atomic fluid in the electrical field. // J. Mol. Liq., 2001, vol.92, N 1-2, p.15-20. Derzhko O., Richter J., Verkholyak T.M. Jordan-Wigner fermions and the spin 1/2 anisotropic XY model on a square lattice. - Acta Phys. Pol. B, 2001, 32, 10, p.3427-3432. Duda Yu., L.L. Lee, Yu. Kalyuzhnyi, W. Chapman, and P.D. Ting. Structure and Bridge Functions of Dimeric Fused Spheres. // Chem. Phys. Lett., 2001, vol. 339, p. 89. Duda Yu., L.L. Lee, Yu. Kalyuzhnyi, W. Chapman, and P.D. Ting. Structures of Fused-Dimer Fluids: A New Closure Based on the Potential Distribution Theorems. // J. Chem.Phys., 2001, vol. 114, p. 8484. Duviryak A. The two-particle time-asymmetric relativistic model with confinement interaction and quantization. // Intern. Journ. Mod. Phys. A, 2001, v. 16, N 6, p.2771-2788. Duviryak A., Nazarenko A., Tretyak V. Classical relativistic system of N charges. Hamiltonian description, forms of dynamics, and partition function. // Conden. Matt. Phys., 2001, v. 4, N 1(25), p.5-14. Duviryak A. , Shpytko V. Relativistic two-particle mass spectra for time-asymmetric Fokker action. // Reports in Math. Phys., 2001, v. 48, N 1-2, p.219-226. Earl D.J., Ja.Ilnytskyi, M.R.Wilson, Computer simulation of soft repulsive spherocylinders, Mol. Phys. vol.99, No.20, pp.1719-1726, 2001. Gonzales-Melchor M., Trokhymchuk A., and Alejandre J. Surface Tension at the Vapor/Liquid Interface in an Attractive Hard-Core Yukawa Fluid. // J. Chem. Phys., 2001, vol. 115, No. 8, p. 3862-3872. Gurskii Z., Krawczyk J. Ab initio derivation of interatomic interactions in transition metals. // Condens. Matt. Phys., 2001, v. 4, N 1(25), p.37-44. Gurskii Z., Krawczyk J. On the role of atomic thermal vibrations in binary-alloy thermodynamics. // Physica B, 2001, v. 304, p.319-332. Gurskii Z., Krawczyk J. Spin-dependent interatomic potentials in transition metals. // Металлофизика и новейшие технологии, 2001, т. 23, № 2, с.135-145. Gurskii Z., Krawczyk J. Three- and four-particle interactions in metals. // Metal Phys. Adv. Tech., 2001, v. 19, p.423-431. Harano Y., T. Imai, A. Kovalenko, M. Kinoshita, and F. Hirata. Theoretical study for partial molar volume of amino acids and poly-peptides by the three-dimensional reference interaction site model. // J. Chem. Phys., 2001, vol. 114, p. 9506-9511. Henderson D., Wasan D., Trokhymchuk A.. Towards the interaction between large solutes in a fluid of small hard spheres.// Cond.Matt.Phys.-2001.-V.4.-p.1-5. Holovko M.F., V. Kapko, D. Henderson, D. Boda. On the influence of ionic association on the capacitance of an electrical double layer.// Chem. Phys. Lett.-2001.-V. 342.-p.363-368. Holovko M.F., Konrad S. Connection of Landau-Ginzburg models with continuous microscopic approach for self-assembling systems.// J.Mol.Liq.-2001.-V.1-2,-p.125-130. Holovko M.F., Sovyak E.M. Screen potentials of nonuniform system: ion-molecular mixture --- porous media // J. Phys. Studies, 2001, vol. 4, No. 3, p. 391--402 . Holovko M.F., Bryk T.M., Kalyuznyi Yu.V., Druchok M.Yu. Microscopic theory of cation hydrolysis in aqeuous solution of electrolytes. // Collect. Phys. Papers., 2001, vol. 4, p. 168 (in Ukrainian) . Ignatyuk V.V.,, Mryglod I.M., Tokarchuk M.V. Collective excitations of a semiquantum helium: Quasihydrodynamic region. // J. Mol. Liquids., - 2001.,- V.93, No 13, P.65-68. Ilnytskyi Ja., Wilson M.R., A domain decomposition molecular dynamics program for the simulation of flexible molecules with an arbitrary topology of Lennard-Jones and/or Gay-Berne sites, Comp. Phys. Comm, vol.134, pp.23-32, 2001. Ilnytskyi Ja., Wilson M.R., Molecular models in computer simulation of liquid crystals, J. Mol. Liq., vol. 92, No.1-2, pp.21-28, 2001. Imai T, Y. Harano, A. Kovalenko, and F. Hirata. Theoretical Study for Volume Changes Associated with the Helix-Coil Transition of Polypeptides.// Biopolymers.-V.59.-p.512-519. Kalyuzhnyi Yu.V. , V.Vlachy, K.Dill. Hydration of simple ions. Effects of the charge density.// Acta Chim. Slov.-2001.V.48.-p.309-316. Kalyuzhnyi Yu.V. , Cui S.T., Cochran H.D. Distribution functions of a simple fluid under shear. II. High shear rates - art. no. 011209. // Phys. Rev. E E 6301: (1) 1209-+ Part 1 JAN 2001. Kalyuzhnyi Yu.V. , Cummings P.T. Multicomponent mixture of charged hard-sphere chain molecules in the polymer mean-spherical approximation. // J. Chem. Phys. 115: (1) 540-551 JUL 1 2001. Kalyuzhnyi Yu.V. , Druchok M.Yu. Structure of a 3-component polyelectrolyte solution model with dimerizing counterions and coions. // J. Mol. Lquids 92: (1-2) 97-103 Sp. Iss. SI JUN 2001. Kalyuzhnyi Yu.V., Lin C.T., Stell G., et al. Structural and thermodynamic properties of a freely-jointed Yukawa hard-sphere chain fluid. // J. Mol. Lquids 92: (1-2) 85-96 Sp. Iss. SI JUN 2001. Kapko V.I., Holovko M.F.. Associative electrolyte solution near the charge hard wall. Density, charge, polarization and potential profiles.// Cond. Mat. Phys.-2001.-V. 4, No. 2(26).- p.201-208. Kapustianik V., Sveleba S., Stasyuk I., Velychko O., Czapla Z., Tchukvinskyi R. Dielectric and electrooptic properties of the DMAMeS (Me=Al,Ga) crystals in the region of low temperature phases. // Phys. Stat. Sol. (b), 2001, vol. 228, No. 3, p. 785-798. Kinoshita M., Imai T., Kovalenko A., Hirata F.. Improvement of the reference interaction site model theory for calculating the partial molar volume of amino acids and polypeptides.//Chem. Phys. Lett.-2001.-V.348.-p.337-342. Kobryn A.E., M.V.Tokarchuk, Y.A.Humenyuk, Investigation of transfer coefficients for many-component dense systems of neutral and charged hard spheres. // Journal of Molecular Liquids, 2001, vol. 93, No 1-3, p. 109-112. Korynevskii N.A.. On the Problem of the Functional Representation for Cluster Ferroelectric Systems. Ferroelectrics, 254, p.255-264, 2001. Kostrobii P.P., Markovych B.M., Rudavskii Yu.K., Tokarchuk M.V. Statistical theory of diffusion-reaction processes in the system “metal – adsorbate - gas”// Cond. Matt. Phys., 2001, Vol. 4, No 3(27), Р. 407-430. Kovalenko A. and F. Hirata. A replica reference interaction site model theory for a polar molecular liquid sorbed in a disordered microporous material with polar chemical groups.// J. Chem. Phys.-2001.-V.115.-p.8620-8633. Kovalenko and F. Hirata. Self-consistent, Kohn-Sham DFT and three-dimensional RISM description of a metal-molecular liquid interface. // J. Mol. Liquids, 2001, vol. 90/1-3, p. 215-224. Levitskii R.R., Lisnii B.M., Baran O.R. Thermodynamics and dielektric properties of KH2PO4, RbH2PO4, KH2AsO4, RbH2AsO4 ferroelectrics. // Condens. Matt. Phys., 2001, vol. 4, No. 3, p.523--552. Materials of the round table “Phase transitions and critical phenomena: past, present, and future”, prepared by M.Dudka, Yu.Holovatch, R.Melnyk, I.Mryglod, O.Patsahan, and T.Yavors'kii. // Cond. Matt. Phys. - 2001.- V.4, , No 1(25).- P.165-181. Mryglod I. Book Review: Physics of Complex Systems (Proceedings of the International School of Physics “Enrico Fermi”). // Cond. Matt. Phys., 2001, V.4, No 4(28) (submitted). Mryglod I., Folk R. Corrections to scaling in systems with thermodynamic constraints. // Physica A. 2001.- V.294, No 3-4.- P.351-361. Mryglod I.M., Omelyan I.P. and Folk R. Ferromagnetic phase transition in a Heisenberg fluid: Monte Carlo simulations and Fisher corrections to scaling // Phys. Rev. Lett., 2001, vol. 86, No 14 p. 3156-3159. Omelyan I.P. and Ben-Amotz D. Chemical potentials of chain solutes in hard body fluids // J. Mol. Liq., 2001, vol. 92, No 1/2 p. 3-14. Omelyan I.P. and Ben-Amotz D. Self-consistent corrections to the equation of state and chemical potentials of hard chain fluid mixtures // J. Chem. Phys., 2001, vol. 114, No 13 p. 5735-5744. Omelyan I.P., Mryglod I.M. and Folk R. Algorithm for molecular dynamics simulations of spin liquids // Phys. Rev. Lett., 2001, vol. 86, No 5, p. 898-901. Omelyan I.P., Mryglod I.M. and Folk R. Molecular dynamics simulations of spin and pure liquids with preservation of all the conservation laws // Phys. Rev. E, 2001, vol. 64, No/p 016105[1-10] . Patsagan T., Trokhymchuk A., and Holovko M.F. The Structure and Dynamical Properties of the Simple Fluids in Porous Media. // J. Mol. Liq., 2001, vol. 92, No. 1-2, p. 117-124. Patsahan O.V., Kozlovskii M.P., Melnyk R.S., Non-universal critical properties of a symmetrical binary fluid mixture, Condens.Matter Phys., 2001, vol. 4, p. 235-242. Patsahan O.V., Patsahan T.M., Determination of the order parameter in binary fluid mixtures, J. Stat. Phys. vol. 105, Nos. 1/2 (2001) 285-307. Pavlenko N.I., Stasyuk I.V. The effect of proton interactions on the conductivity behaviour in systems with superionic phases. // J. Chem. Phys., 2001, vol. 114, p. 4607-4617. Pylyuk I.V., Kozlovskii M.P. 3D Ising system in an external field. Recurrence relations for the asymmetric r 6 model // Cond. Matt. Phys. - 2001. - V. 4, ¹ 1(25). - P. 15-24. Shovgenyuk M. V., Krokhmalskii T. Ye., Kozlovskii M. P. Binary phase elements: optical and statistical properties/Ukranian Journal of Physical Optics, 2001, 2, No 1, p.1-20. Shovgenyuk M.V, Hlushak P.A., Kozlovskii Yu.M, E.A. Tikhonov, T.N. Smirnova, P.V. Ezhov. Phase relief study of holographic optical elements recorded on self developing photopolymers. // Ukrainian Journal of Physical Optics, 2001, vol. 2, No. 4. Shvaika A.M. An analytical strong coupling approach in dynamical mean-field theory. // Acta Physica Polonica B, 2001, vol. 32, No. 10, p. 3415-3420. Shvaika A.M. Dynamical susceptibilities in strong coupling approach: General scheme and Falikov-Kimball model. // J. Phys. Studies, 2001, vol. 5, No. 3. Shvaika A.M. Strong coupling Hartree-Fock approximation in the dynamical mean-field theory. // Cond. Matt. Phys., 2001, vol. 4, No. 1(25), p. 85-92. Sierra O., Yu.Duda. Fluid-fluid phase equilibria in disordered porous media. Nonadditive hard-sphere mixture.// Phys. Lett. A.-2001.-V. 280.-p.146-152. Stasyuk I.V. Models and phenomenology for the conventional and high-temperature superconductivity (book review). // Cond. Matt. Phys., 2001, vol. 4, No. 3(27), p. 591-594. Stasyuk I.V., Levitskii R.R., Moina A.P. and Lisnii B.M. Longitudinal Field Influence on Phase Transition and Physical Properties of the KH2PO4 Family Ferroelectrics. // Ferroelectrics, 2001, vol. 254, p. 213-227. Stasyuk I.V., Levitskii R.R., Zachek I.R., Duda A.S. Influence of s 1-s 2 stress on phase transition and physical properties of KD2PO4-type ferroelectrics. // Cond. Matt. Phys., 2001, vol. 4, No. 3(27), p. 553-578. Stasyuk I.V., Mysakovych T.S. Phase transitions in pseudospin-electron model at weak coupling // J. Phys. Studies, 2001, vol. 5, No. 3. Stasyuk I.V., Tabunshchyk K.V. Pseudospin-electron model in the self-consistent gaussian fluctuation approximation. // Cond. Matt. Phys., 2001, vol. 4, No. 1(25), p. 109. Stasyuk I.V.,Vorobyov O., Hilczer B. Influence of inter-chain correlations on proton ordering in MeHXO4 protonic conductors // Solid State Ionics, 2001, vol. 145, p. 211-216. Stasyuk I.V., Velychko O.V. Order-disorder model of phase transitions in the DMAGaS-DMAAlS family crystals. // Phase Transitions, 2001, vol. 73, No. 3, p. 483-501. Stasyuk I.V., Stetsiv R.Ya., Dulepa I.P. Study of hydrogen, nitrogenm, and hydroxyl group OH- adsorbtion on transition metals surfaces // Journ. Phys. Studies, 2001, vol. 5, N 4. Tokarchuk M.V., P. P. Kostrobii, Y. A. Humenyuk. Generalized transport equations of diffusion-reaction processes. The nonequilibrium statistical operator method // Journ. Phys. Studies, 2001, vol.5, N2, p.111-120. Trokhymchuk A., D.Henderson, A.Nikolov, D.Wasan. Depletion and structural forces between two macrosurfaces immersed in bidisperse colloidal suspension.// J. of Coll. And Interface Sci..-2001.-V.243.-p.116-127. Trokhymchuk A., Henderson D., Lee L. Analytical Methods and Computer Experiment in Soft Matter Theory (materials of the round table discussion). // Cond. Matt. Phys., 2001, vol. 4, No. 2(26), p. 375-382. Trokhymchuk A., Henderson D., Nikolov A. and Wasan D.T. A Simple Calculation of Structural and Depletion Forces for Fluids/Suspensions Confined in a Film. // Langmuir, 2001, vol. 17, No. 16, p. 4940-4947. Trokhymchuk A., Henderson D., Nikolov A. and Wasan D.T. Entropically Driven Ordering in a Binary Colloidal Suspension near a Planar Wall. // Phys. Rev. E, 2001, vol. 64, Issue 1, article 012401. Usatenko Z.E, Shpot M.A.and Chin-Kun Hu, Phys.Rev.E 63, 056102 (2001). Vakarin E.V., Badiali J.P., Levi M.D., Aurbach D.. Role of host distortion in the intrcalation process.// Phys.Rev.B.-2001.-V.63.-p.014804. Vakarin E.V., Badiali J.P.. Cation intercalation under a host restructuring. Application to cristalline LixWO3 and NaxWO3 compounds.// Electrochemica Acta.-2001.-V.46.-p.4151. Vakarin E.V., Holovko M.F., Badiali J.P.. Adsorbate induced distortion of solid surfaces. Application to HCl on ice at atratospheric conditions.// Cond.Matt.Phys.-2001.-V.4.-p.251. Wasan D.T, Nikolov A., Trokhymchuk A., Henderson D. Colloidal Suspensions Confined to a Film: Local Structure and Film Stubility. // Cond. Matt. Phys., 2001, vol. 4, No. 2(26), p. 361-374. Yukhnovskii I., Mryglod I. Depleted uranium weapons. Another warning to mankind.-In newspaper: Week's mirror.- 2001.- No 9 (333), 20021, March 3. - p.13.
/* Copyright 2015 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/kubernetes/pkg/apis/abac" ) const GroupName = "abac.authorization.kubernetes.io" // SchemeGroupVersion is the API group and version for abac v1beta1 var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} func init() { // TODO: delete this, abac should not have its own scheme. if err := addKnownTypes(abac.Scheme); err != nil { // Programmer error. panic(err) } if err := addConversionFuncs(abac.Scheme); err != nil { // Programmer error. panic(err) } } var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder localSchemeBuilder = &SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme ) func init() { // We only register manually written functions here. The registration of the // generated functions takes place in the generated files. The separation // makes the code compile even when the generated files are missing. localSchemeBuilder.Register(addKnownTypes, addConversionFuncs, RegisterDefaults) } func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Policy{}, ) return nil }
#!/usr/bin/env perl # Open a URL on my local Mac, not this VM. # Set the BROWSER environment variable to this script's path and # e.g. /usr/bin/sensible-browser will call it if you use # something like Browser::Open to open URLs in a platform-agnostic manner. use strict; use warnings; no warnings 'uninitialized'; my $mac_hostname = 'deceptive.local'; my $url = shift; my ($mac_ipaddress) = `avahi-resolve --name $mac_hostname -4` =~ m{ ( (?: \d{1,3}[.] ){3} \d{1,3} ) }x; exec(qq{ssh $mac_ipaddress 'open "$url"'});
/*D*********************************************************** * Modul: DBI - database delete * Kollektivtyp * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ /*R RCS Information: $Header: /yafra/cvsroot/mapo/source/dbi/xKOLTdelete.c,v 1.2 2008-11-02 19:55:39 mwn Exp $ Log Information: $Log: xKOLTdelete.c,v $ Revision 1.2 2008-11-02 19:55:39 mwn re branded code - tested with oracle instant client 11.1 under ubuntu linux - add deploy to main makefile Revision 1.1.1.1 2002-10-26 21:10:43 mwn inital release Revision 3.1 1997/04/02 07:00:34 mw NT 4.0 release und WWW Teil Revision 2.1 1994/04/05 21:36:08 mw update to new DB release 2.0 * Revision 1.4 94/02/16 18:20:28 18:20:28 mw (Administrator) * update headerfilenames for dos * * Revision 1.3 93/03/30 19:56:52 19:56:52 mw (Administrator) * "maintenance" * */ #include <mpmain.h> #include <mpprodbi.h> /* Prototypes f�r ANSI-C */ static char rcsid[]="$Header: /yafra/cvsroot/mapo/source/dbi/xKOLTdelete.c,v 1.2 2008-11-02 19:55:39 mwn Exp $"; #define MSG1 (int)167 #define MSG2 (int)20 #define MSG3 (int)128 #define MSG4 (int)130 int KOLTdelete(void) { extern KOLLEKTIV_TYP kolt; extern BEZEICHNUNG bez; extern int sprache; char message[RECLAENGE]; int status=(int)MPOK; if (kolt.k_typ_id == (int)_UNDEF) { (void)find_text_nr((int)MPE_IDXISUNDEF, message); xSqlMessage(message); return((int)MPERROR); } if (MPAPIid_count((int)_KOLLEKTIV_TYP, (int)_KOLLEKTIV, (char *)&kolt) != (int)EMPTY) { (void)find_text_nr((int)MSG1, message); xSqlMessage(message); return((int)MPERROR); } status=MPAPIdeleteEntry((int)_KOLLEKTIV_TYP, (char *)&kolt); if (status == (int)MPOK) { bez.s_id=(int)sprache; bez.typ=(int)_KOLLEKTIV_TYP; bez.bez_id=kolt.bez_id; if (MPAPIid_count((int)_BEZEICHNUNG,(int)_KOLLEKTIV_TYP, (char *)&bez) == (int)EMPTY) { if (MPAPIdeleteEntry((int)_BEZEICHNUNG, (char *)&bez) == (int)MPERROR) { (void)find_text_nr((int)MPE_NOBEZDEL, message); xSqlMessage(message); status=(int)MPERROR; } } } else { (void)find_text_nr((int)MPE_NODEL, message); xSqlMessage(message); status=(int)MPERROR; } return(status); }
San Pedro Police are investigating a suspected arson in the San Pablo Sub-division south of San Pedro Town following the questionable circumstances in which a Honda motorcycle was incinerated late on Sunday night, September 9th. The owner of the motorcycle, 21-year-old Trent Turley, reported that he left his bike parked outside his home and by early Monday, September 10th the motorcycle was discovered destroyed by fire. A golf cart parked nearby also resulted with minor damages, but it was clear that the main target was the motorcycle. Reports from eyewitnesses stated that unidentified men had been using a backhoe, digging up sand and then loading it onto trucks and transporting it away. The destination of those trucks loaded with sand could not be determined. Mayor Daniel Guerrero was able to get in touch with the owner of the property and ordered him to discontinue the practice and to spread out the sand that had been dug back in place. The property owner complied with the order, and by Friday, September 7th the sand had been returned to the beach. He tried to justify the actions as a normal method to get rid of the Sargassum that is affecting the entire coast of the island. He alleges that nearby residents are doing the same, digging a hole in the beach and then burying the seaweed. As we are at the height of the 2018 Atlantic Hurricane Season, meteorologists have been closely monitoring a very active season so far. One hurricane (Florence) and three tropical storms (Isaac, Helene, and Joyce) are threatening countries in the Atlantic. Meteorologists advise citizens to follow guidelines and be prepared during this active season. A hurricane preparedness plan entails knowing hurricane risks, knowing evacuation zones, assembling food supplies, preparing financially, strengthening your home and making an emergency plan. September Celebrations are in full swing across the Nation and on Friday, September 14, 2018, a children’s rally was held at the Rafael Angel Nunez Auditorium where hundreds of students from all across the island gathered in celebration. The San Pedro Roman Catholic School opened the event with a lovely rendition of Belize’s National Anthem followed by the National Prayer recited by New Horizons SDA School. Welcome address was delivered by San Pedro’s Children Advisory Board President, Ms. Karissa Vasquez which was followed by a re-enactment of the Battle of St. Geroge’s Caye and Independence Day skit by Ambergris Caye Elementary School. Fish Right Eat Right recognizes establishments that are, not only using the OurFish App to track their seafood purchases, but also promoting sustainable fishing by adhering to certain rules and regulations.Fishers will also be acknowledged for practicing sustainable fishing. Besides being in full legal compliance with the Fisheries Act of Belize, certified restaurants must also subscribe to certain best practices that promote sustainable fisheries in Belize. Your Rotary Club of Corozal gets much of its funding for projects, such as the scholarship program from Raffles and the Cheap Sale. When you support Rotary by purchasing tickets for our Raffle you are supporting your community. We will be at Art in the Park on the 15th. Please stop by our table. We plan to be near the Rotaracts and the popcorn. Saturday will be the 9th anniversary edition of Art in the Park...where has the time gone? I am so very delighted to have artist Alex Sanker (originally of San Antonio Village) displaying several pieces of his beautiful and sometimes controversial work! DJ Kelly will be out playing your favourite music. A very special thank you to this month's sponsor Belize Bank - Corozal Branch! Come on out for a night of art, music, food and family. BTL Park, Sunday the 16th at 2PM! The U.S. Embassy was on the road on Carnival Day! The Belize Trade and Investment Development Service (BELTRAIDE) is pleased to announce the appointment of Dr. Leroy Almendarez as the organization’s new Executive Director. Dr. Almendarez will officially assume this new role on September 17th, 2018. Dr. Almendarez joins BELTRAIDE after serving as an Assistant Professor at the University of Belize’s Faculty of Management and Social Sciences (FMSS), where he taught International Business, Socioeconomic Development, and Small Business Management. His background uniquely positions him to assume this post as BELTRAIDE’s Executive Director as he previously served as the Director General of Foreign Trade under the Ministry of Investment, Trade, and Commerce. Belize Sugar Industries Limited invites qualified and self -motivated individuals to submit applications for the position of Logistics & Sea Container Management Coordinator at its Belize City location. The Logistics & Sea Container Management Coordinator is responsible to supervise, coordinate & execute all processes related to truck & sea container logistics to process sales orders to customers and deliver on-time. The SISE Town Council is having their 3rd annual Independence Eve concert at the Sacred Heart College auditorium on Thursday. They have a great lineup, including Clayton Williams and Ernestine Carballo. The fun starts at 9:00pm...and ends at 4:00am. "3rd Annual September 20th Concert at Sacred Heart Auditorium. 6 Belizean Local Artists, all backed up by the most versatile band in the land: the ‘New Sensation Band’. Tickets available at the SISE town council, cayo welcome center during regular work hours or call 615 9843 or 614 8382." Congratulations to the Peace Corps Volunteers who were sworn in today! Thank you for your service and for making President John F. Kennedy’s vision of promoting peace and friendship a reality! Belmopan very own PANYAAD the " Year For Love" on Saturday, September 15 starting at 8:00 pm at the Isidoro Beaton Stadium. See you there! Deputy Prime Minister Patrick Faber hasn't been taking his three weeks as acting prime minister lightly at all. In fact, he's capitalizing on it. He has organized a countrywide tour to, as he put it, re-connect with the people. Today at another event, we asked him about this tour and if this round of visits may be a crafty tactic to garner support in the race for party leadership. Here's his response. Hon. Patrick Faber, Deputy Prime Minister: "In the time I have been acting prime minster, I decided to embark on a tour to just re-connect with people and it is not something for me alone. It is going to be recorded and documented so the entire government can have access to it as a way of reconnecting with what people want. Quite often when we are in our offices in Belmopan and making decisions in the cabinet and even in the national assembly we lose track of what it is people want us to do so I thought I give people an opportunity to put on the record the things that are important to them that the government needs to be working on. So I have now completed two districts the Toledo district and the Stann Creek district." What Can The Political Directorate Do About Corrupt Cops? We also asked Deputy Prime Minister Faber about the major drug plane bust up north. As we told you, 5 persons have been charged, including veteran cop Supt. David Chi. and a police constable, Norman Anthony. Faber discussed Belize's curse in being the prime transshipment point for narcotics in the region and also spoke on the involvement of cops in these drug plane landings. Hon. Patrick Faber, Deputy Prime Minister: "The reason why drug planes see Belize as a target is because we are a small nation, we don't have the ability to police the borders in the manner in which we want. It is evident that planes that land here and other transshipment that goes on passes Belize in an effort to get to the United States. If we were not geographically located here this kind of trouble would not exist for us." And while the detainees are being held at the prison - the drugs remain under lockdown. They have not yet been destroyed - even though Deputy Compol Williams had said he wanted to get rid of it by the end of this week. And because the 1,225 pounds of suspected cocaine is at the Queen Street Station - police are on highest alert. And a pair of Mexicans on Queen Street may have been innocently detained because of this. Around 4:00 yesterday, they were parked in this white pickup - and because of the plates and the fact that police didn't know their business, they were taken out of the truck and detained at the Queen Street police station. And, as we go into the weekend, some may be wondering what's going to happen with Tropical Storm Isaac. Well, at 3:00 this afternoon, the storm which had weakened to a Depression has become a minimal storm again with maximum winds of 40 miles per hour. But, there's not much prospect for development and the National Hurricane Center says the future of this system is unclear. It continues to move westward at 14 miles per hours, but a turn to the west-northwest is possible by late Sunday. The present forecast track seems to be taking it more towards the south of Jamaica by early next week. Since, the start of July, when the Elections and Boundaries Department started the re-registration exercise, we've been reporting on the weekly figures. The idea is to get as many persons as possible back on the voters' roll to keep our democracy robust, and to make sure next year's ICJ referendum has a broad representation of the population. The Elections and Boundaries Department and the UNDP, have compiled data which closely tracks the trends that occurred since the start of re-registration until the end of August. So far, just over 122 thousand Belizeans have re-registered, which only 59% of the total number that was on the previous voter's list. The Elections and Boundaries authorities had set a target of 70% of the old list, but as we've shown you, voters just haven't been showing up in that kind of numbers. Earlier on you heard the acting PM say he feels the State of of Emergency has done more good than harm. Well, the Chamber of Commerce weighed in today when it sent out a press release on the very polarizing public issue. The only thing is - their statement doesn't say too much about the state of emergency. Instead, the release gives a long analysis of crime trends, going back to 2002 when the murder rate first spiked to 33 per hundred thousand citizens, and has been going up ever since. And the man literally at the center of the operation is Deputy Commissioner Chester Williams. He has morphed from a kumbaya community cop to stormtrooper in chief - and he's also made a claim to virtual omniscience. In a quote heard around the country, last week Williams told the press that every shot that is fired on the southside, he knows "whodunnit." The words of a southside super cop if ever there was one - and DCP Williams has been pilloried and lampooned for this meme-worthy statement. And why? Because if he knew who fired every shot - well why didn't he just go ahead and put them in jail!? And that's why Williams says he's been taken out of context. And indeed, these are his full remarks - which emphasize the difference between sound knowledge and prosecutable evidence:.. Turning now to health - there could be relief in sight for long suffering patients with kidney failure. These persons depend on costly dialysis treatments to stay alive. Simply put, if they don't get dialysis at least twice weekly, they will die. It's a stark reality, and it is made more grim by that fact that two dialysis sessions- which is the bare minimum for survival - can cost close to five hundred dollars a week. That's almost twenty five thousand dollars a year - just to stay alive! That's why patients with end stage renal failure have been begging government to subsidize a private programme to make dialysis treatments more affordable. Today, the acting Prime Minister announced that Cabinet is on the verge of finalizing something:.. We also asked the Acting PM about two audits of public interest in his Ministry. That's one at the National Sports Council which points to some lack of accountability, and the well-known one at NICH. Faber gave us updates on both.:.. Hon. Patrick Faber, Deputy Prime Minister: "It is the ministry with responsibility for sports which I led that caused the audit to happen. So we are looking into things as a normal course of doing things and where there are irregularities that cannot be explained, then we will move to correct those. But the issue has been that internal audits - even audits sanctioned by the ministry itself are blown out of proportions before explanations for basic things can be given. That has to be out of place. The NICH audit as far as I know is going to be completed today and we are expecting an initial draft from the auditors today." Infotel is a call center in Belize City that has been in business for 12 years. And while Call Centers are everywhere and they are hardly news anymore, Infotel has been experiencing rapid growth - and today held a ceremony to announce it's re-branding. John Malic told us what he feels is their difference:... John Malic, Voyse (formerly Infotel): "If you look at the tagline of our new logo its Voyse - people and technology. For us the brand represents that connection between the customer and the client and using their voice to make that connection. That's how we arrive at the new brand "Voyse." But more importantly our strategic direction for the next 5 years, we needed a refresh brand. We needed something new for our organization and that how we wanted a brand new look for the company. When we opened our doors 11 years ago under the name InfoTel, it was with 30 employees. So just for like some perspective 30 employees 11 years ago and today we have 420 employees and we also wanted a new brand to go into the future because our growth rate is forecasted to be an additional 20% growth each year over the next 5 years which is a total of about 200-300 more employment jobs here in the company." 3 weeks ago, we told you about Dawn Parchue, a 23 year-old mother, who became the victim of a bizarre shooting on the night of Friday, August 25th. She survived multiple gunshot wounds to the body, and police say that they've arrested and charged the man who they think pulled the trigger. He's 24 year-old Wayne Welch, a resident of Belize City, and he is now facing charges of attempted murder, dangerous harm, and use of deadly means of harm. He is expected to be arraigned and remanded to prison at the earliest convenience. Wil Maheia and the Belize Territorial Volunteers had yet another confrontation with the Guatemalan Armed Forces today over Sarstoon Island, at the mouth of the Sarstoon River. As we've reported, the BTV continues to maintain a sort of citizen patrol of the island, and they go out there regularly, to sort of keep an eye on things. They went out there this morning to prepare for tomorrow's kayak race eco-challenge, and Maheia insisted that he would once again plant Belize's flag on the island. Today, well over 3,000 kids packed the Belize Civic Center for the annual children's rally. 31 schools from the Belize district were invited. We dropped by for the big celebration. Hon. Patrick Faber, Minister of Education: "Well it is always a fun event and I am happy they are able to return the children's rally to the civic this year you know that used to be a fixture in the September calendar and we have been displaced for a number of years now and it was very heartwarming to see the children today in the civic center enjoying the wonderful facilities here and demonstrating their patriotism which is always very very good for our country." And from the children's rally, to children in sports… Jardehl Muschamp is still trying to hold on to that dream of attending FC Barcelona's Youth Soccer Residency Academy in the U.S. We spoke to Jardehl and his dad, Hilberto Muschamp in late August when they came asking the public for financial assistance. They had to raise $83,000 Belize dollars. Well, they did get some assistance from the public : over $12,000 worth. But Muschamp had to come up with the remaining $71,000 Belize dollars. And he did, but now, the issue is Jardehl's visa. Muschamp told us today that Jardehl had been turned down twice. But Jardehl isn't the only Belizean athlete trying to advance their sporting careers. We asked Minister of Education and Sports Patrick Faber what and his ministry are doing to help these young athletes. Faber says they are doing all they can. Will Re-districting Impact Landlocked Constituencies? How Did Belize Fair Off in CSEC? At press time tonight, word to Amandala is that one person has been detained for questioning in the case of the over $800,000 robbery of a business in the Western Border Free Zone in Benque Viejo Del Carmen. Sometime between 1:00 and 2:30 on the early morning of Sunday, September 10, four masked thieves breached the chain link fence on the western side of the compound of the Western Border Free Zone in Benque and made their way to the Kortco Belize Company Ltd. building. The thieves used a portable oxy acetylene torch kit to first cut their way through the main door at the north end of the building. When the thieves got inside the building, they used their torch kit to cut through two steel doors, the second of which opened to a room which held an iron safe that reportedly contained a whopping sum of money, over BZ$800,000! Two men, Ernest “Dangalang” Thurton, Jr., 25, and Jasper Brannon, 28, were indicted for the October 25, 2012 double murder of Robert Young, 41, and Frank James, 35, which occurred at the dockyard on North Front Street, and at the conclusion of the trial today, Justice Adolph Lucas, who tried the case sitting without a jury, found Thurton guilty of the crimes. Justice Lucas has deferred sentencing to October 8, when the court will hear from prison officials, and from character witnesses, if Thurton decides to bring any to speak on his behalf. Since life in prison for murder has been ruled to be unconstitutional, a fixed-time sentence will be handed down to Thurton, who is the first person to be convicted of a double murder since the evolution of the law. Police’s investigation into the shooting death of Kendis Flowers, 27, a laborer of Mayflower Street, which occurred on the morning of Saturday, March 17, on Sibun Street, led to Kevin Bodden, 25, a laborer of Belize City, who fled the area when he received the information that he was a wanted man. A wanted poster was issued for Bodden’s arrest, but he could not be found. On Saturday, however, during the Carnival Road March, almost six months after a warrant to arrest him was issued, he was seen in the city watching the parade, and police arrested him and formally charged him for Flowers’ death. This morning, five men, including two police officers, were taken to the court of Senior Magistrate Aretha Ford in connection with the seizure by police of a small plane loaded with cocaine reportedly worth US$7 million that landed on a road in the Blue Creek area of the Orange Walk District early Sunday morning. After Senior Magistrate Ford entered the courtroom, the five accused men stood up, and the proceedings began with the court Spanish interpreter in place for two of the accused, who are Mexican nationals. The court prosecutor indicated to Magistrate Ford that he was instructed to inform the court that the matters would be tried on indictment; therefore, no plea was taken from the accused men. On the heels of last weekend’s capture of a plane that was loaded with an estimated US$7 million worth of cocaine which Belizean officials said originated in Venezuela, United States president Donald Trump today named Belize as a major drug transit point. Belize has been listed along with other major drug-producing or transit countries such as the Asian countries of Afghanistan, Pakistan, Myanmar, and the Southeast Asian nation of Laos. Closer to home, the list on the “presidential determination” includes Bahamas, Bolivia, Colombia, Costa Rica, Dominican Republic, Ecuador, El Salvador, Guatemala, Haiti, Honduras, Jamaica, Mexico, Nicaragua, Panama, Peru, and Venezuela. Gun violence snuffed out the life of another man over the weekend on the south side of Belize City. This latest homicide in the murderous streets took place not too far from one of the two areas which have been declared to be in a “state of public emergency,” as defined by a proclamation, signed by the Governor General, which came into effect early last Wednesday morning, when security forces raided the homes of suspected gang members and carried off 100 persons, most of whom will remain incarcerated for one month—just like that—under the emergency measure now in place in two areas of the southside. By now, if you have a proper understanding of the civil war that is taking place on the south side of Belize City, you will appreciate that there are too many guns in the hands of the wrong people and there is no program or government policy in place to arrest that situation. The Belize Sailing Association (BzSA) held its 8th Annual National Championship Regatta on September 8-9, 2018, hosted by the Caye Caulker Community Sailing Club (CCCSC) and supported by the Caye Caulker Village Council. Enthusiasts and onlookers were treated to two days of sailing from the Optimist and Laser Class Boats on the beautiful Caribbean Sea due east of the Palapa Gardens. The winds on both days were a fair 9 knots, veering between 100 and 110 degrees, with a small chop in the sea presenting a fine canvas for the event on the Olympic Trapezoid course. Up for grabs was the National Championship in Optimist and Laser classes. Additionally, a year round score of all four of our series ranking regattas for Optimist and Laser was completed, providing our annual top sailors for each class of boat. In the Concacaf Nations League qualifier at the Isidoro Beaton Stadium on Friday night, September 7, Belize lived up to our higher Concacaf ranking (#24 to Bahamas #31), as the Jaguars posted a 4-0 win, despite missing a penalty and a few good scoring opportunities. Belize finally got on the score card late in first half, with two goals coming in quick succession, after left midfield/wing Nahjib Guerra navigated near the goal line twice, on the first occasion setting the inlet for Deon McCaulay (40’), who converted from point blank range, and then seeing his pass again to Deon being deflected off a defender and into the net for the second Belize goal (a Bahamas auto goal) at the 44th minute. The bright light for the Jaguars would be the two second half goals from young Krisean Lopez (80’ & 90+5’), who came off the bench and displayed poise and clinical finishing on the big stage. onight, a new set of outstanding Belizeans, including legendary sports men and women, are being hailed as Belizean Patriots at the National Awards Ceremony taking place at the Bliss Center for the Performing Arts. But yesterday, a young Belizean, standing on the threshold of dreams, received a heart wrenching “strike two” call from the US Embassy of Belize, when, for the second consecutive week, after filing all required papers, paying all required fees, providing all requested endorsement letters from local authorities as well as from the inviting school/academy in the U.S., 16-year-old Jardehl Muschamp’s application for a Student F-1 visa was turned down by the US Embassy official on duty. Last week, it was a female Embassy official doing the task; this week, a male Embassy official gave Jardehl’s dad, Hilberto Muschamp, the disappointing verdict. Watching television footage this week of Southside black youth packed in a holding cell at the Queen Street Police Station (they had been packed like that for more than a week), and listening to a description of their condition inside the cell by the attorney Audrey Matura, we had a flashback of imagination to how it was for our slave ancestors crossing the Atlantic Ocean in the dark bellies of British slave ships. It was, of course, worse, much worse, for our slave ancestors during the months of the so-called Middle Passage. But, the bottom line here is that this week’s television footage was September of 2018, and yes, these were Belizean human beings who were being treated worse than animals. There were other Belizeans, in positions of power and authority, who had made the decisions which created the inhumane conditions, and these Belizeans have said that they believed that they were doing the right thing, that they had no choice but to impose last Tuesday’s state of emergency on the Southside of Belize City. A few years ago I was in a conversation with Senator Henry Gordon, and I said to him, well maybe it’s about time we had another black summit, to look at the real. Henry’s response was that the first black summit, held in September of 2003, had not accomplished anything. He stopped me in my tracks. Cold. There was a lot of work put into that first, and only, Belize Black Summit, you know. Several months of planning, involving leaders of the UBAD Educational Foundation (UEF) and Dr. Ted Aranda’s World Garifuna Organization (WGO) went into the summit. I guess, looking back, we must have ended up with some feel good moments, but not much more. Still, just putting together the summit was an accomplishment in itself, unprecedented. Some people say that if you don’t have anything encouraging to say, maybe you shouldn’t say anything at all. I don’t have anything encouraging to say right here, but it’s my job to tell it like it is. Twenty-five riders, comprised of 15 Elites and 10 Weekend Warriors (WW), took off at 5:40 a.m. today in what turned out to be a blistering pace, as the wind pushed us towards Hattieville. By the time we cleared Burdon Creek Bridge at Mile 6, some damage had already been done, as many riders had been dropped. By this time, there was a 2-man breakaway running up front, with the big name Elites chasing them furiously. As we turned around at Hattieville, the wind was now in our face, and hit us like a ton of bricks. This caused the peloton to slow down, while the 2 front runners, Byron Pope and Herman “Hijo” Requeña had excellent cohesion, and managed to stay away, taking 1st and 2nd place, respectively. Dear Editor, A worldwide, financial disaster occurred when investment bank Lehman Brothers filed for bankruptcy on September 15, 2008, becoming one of the largest fatalities in the 2008 financial crisis. It is the 10th. anniversary of this financial crisis. I am asking, is another eminent? Markets, despite their communal expertise, are apparently fated to repeat history as illogical enthusiasm is followed by an equally illogical despair. Episodic bouts of turmoil are the inevitable result. The last 40 of global financial crises verify the cyclical nature of the boom-and-bust cycle of the global economy and a general trend to disaster. Understand, it will happen to everyone if they live long enough. I don’t have a direct line to Claudia Cayetano, so I can’t ask her the pertinent questions. Kathy Esquivel has some knowledge of these things but I wouldn’t expect her to talk. In the land of the blind the man with one eye is king. In the absence of the experts, the least inexpert is a sage. From my observation, and a little research, no longer being at the top of one’s game can be caused by age-degenerative diseases, mental life traumas (aka stress), physical life traumas (blows to the head), and “sedentarism.” That last one, the doctors won’t call it out because there’s no money in it for them. The sedentary life just happens to be the worst enemy of all animal life. A couch potato is a rotten potato. I’m sure we all know that our beautiful Belize is about to celebrate its 37th year of Independence! We gained this status of independence peacefully, unlike any of our Central American neighbors, who have a history marred by full-blown civil wars and genocide. We gained it through strategic negotiations, acting in pursuance of our human right of self-determination and staunch nationalism, something the Father of The Nation, Rt. Hon. George Cadle Price, called the “peaceful and constructive revolution.” We, the people, have for a long time been asserting ourselves as an independent nation. I say this because we have been a full member of the CARICOM community since 1974, almost a decade before the country’s greatest, collective achievement in 1981. What is the Puebla Panama Plan? The Puebla Panama Plan (PPP) is defined as a sustainable and integral development project, created and proposed by Mexican president Vicente Fox. It is directed to the southern states of Mexico, (Campeche, Chiapas, Guerrero, Oaxaca, Puebla, Quintana Roo, Tabasco, Veracruz and Yucatán) and the Central American countries (Belize, Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua and Panama). It proposes to re-launch the Mexico-Central America cooperation, consolidating the commercial opening scheme, managing resources for infrastructure of common interest, strengthening and expanding the institutional mechanisms for policy coordination. On Monday of last week at about 10 p.m., Jeffrey Hernandez, 21, was cleaning the inside of a cement mixer at his worksite at AP Enterprise Cement Block Factory when the mixer was accidentally turned on, crushing him between the blade and the inside of the machine. His cries alerted his co-workers, who turned off the machine and found a critically wounded Hernandez inside. After about 2 hours, personnel from the National Fire Service and BERT were finally able to extract him from the machine, but the injuries to his midsection were too severe, and he died while being rushed to the hospital. On Friday, September 7, Premium Wines, a well-known store at 166 Newtown Barracks that specializes in the sale of fine wines and other liquors, was raided by robbers who looted the store of an assortment of items and cash which together totaled $57,785.25 in value. The robbery occurred during broad daylight, at around 10:30 a.m. When police arrived about 15 minutes later, the manager of Premium Wines, Maria Price, 49, told them that she was inside the store talking with her employees when three men entered the business. A prison sentence of 11 years was imposed today by Justice Francis Cumberbatch on Steven Gomez, 23, a resident of Unitedville, who was found not guilty of murder but guilty of manslaughter in the Belmopan Supreme Court on July 16. Justice Cumberbatch had actually sentenced Gomez to 15 years in prison, but he subtracted 4 years from the sentence, which was the time Gomez had spent on remand. The conviction and sentence are for the death of Victor Vargas, 37, aka “Mico”, a father of four who was fatally stabbed during a fight that occurred in Unitedville around 3 a.m. on August 16, 2014. Last week, Statutory Instrument (SI) no. 49 of 2018, which declared two gang neighborhoods on the southside of Belize City as public emergency areas, was signed and came into effect. SI 49 of 2018 gave security forces wider powers to arrest and detain persons in the declared areas: George Street and Banak Street. Last week, Deputy Police Commissioner, Chester Williams, told the media that by means of the emergency powers, persons can be detained for up to one week, before they are told the reason for their detention. Yesterday, Tuesday, while on our way to attend a Ministry of National Security press briefing, we passed near the holding cell area of the Queen Street Police Station, also known as “[#%!] House”, and those detained appealed to media workers to take up their cause. Police have arrested and charged Wayne Welch, 24 with Attempted Murder, Dangerous Harm and Use of Deadly Means of Harm upon Dawn Parchue, 23. Parchue was shot multiple times in the upper stomach and once on the right foot shortly before midnight on August 25, while riding a bicycle towards a relative’s house on Croton Lane, Lake Independence area in Belize City. A family from Orange Walk Town is worried about their loved one who went missing on September 9 without a trace. Julio Estuardo Choc, 35, reportedly left his house around 6:00 that morning enroute to Belmopan, where he is employed as a driver. He never arrived on the job as has not been seen since then. A youth finds himself facing possible jail time after a Police raid of a passenger bus Wednesday evening on the George Price Highway yielded over 12 pounds of marijuana and several rounds of ammunition. The discovery happened around 5:45pm during a check point set up at mile 64. Police say the weed, which weighed 12.7 pounds, and the seven .38 bullets were inside a kit bag that was on a seat beside the youth. YOU HAVE THE POWER ! By Nefretery-Marin. The Government of Belize faces very serious challenges -lawsuits, global competition in loan/grants and in trade; locally they are challenged by crime, the drug trade, political infighting, corruption and many other pervasive societal stresses. Our people are not satisfied with the level of progress, quality of life, healthcare, economic opportunities, safety and the blatant lack of leadership. Career writer, Adele Ramos, wins Zee Edgell Award! Steven Gomez guilty of manslaughter! The newest eatery in town has opened on back street (Angel Coral Street), and it is offering tasty seafood and other Belizean dishes. Proprietors are well known San Pedranos Giovanni and Maribel Marin, and they happily hosted friends and invited guests during the grand opening on Friday, September 7th. Following an official ribbon-cutting ceremony, Giovanni Marin welcomed attendees and thanked them for their support. A long time entrepreneur, Marin is a great lover of the sea and appreciates the contribution of fishermen to our island. Anglers certainly is unique, with an underwater theme depicting the marine world throughout the establishment. The floors feature different types of fish, and beautiful fish images airbrushed by Marin adorn the counter of the well-stocked bar. Anglers Restaurant and Bar counts with several flat screen TV’s throughout the restaurant for viewing pleasure. Seriously. I was taking a tour of the new Mirab’s Department Store. A gorgeous jaw droppingly gorgeous building on the Northern Highway. A few minute taxi ride from the municipal air port in Belize City. It was like pulling up to a Nordstorms in California. Complete with the immaculate landscaping and tall date palms. Three stories of bright modern chandeliers, mirrors and dense carpets, tufted upholstery, sparkling appliances, towering escalators and a huge bank of gleaming elevators. There is a MASSIVE toy section, a luxurious shoe department for both men and women (with a store room that is about the length of San Pedro’s Front Street). 1,500 year old Mayan altar discovered in a small archeological site in northern Guatemala is drawing comparisons to popular fantasy drama television series "Game of Thrones" for its descriptions of the Kaanul dynasty's political strategies aimed at bringing entire cities under its control. The altar, carved out of limestone and weighing around one ton was found at the La Corona archeological site in the jungle region close to the borders with Mexico and Belize, Tomas Barrientos, co-director of excavations and investigations at the site told journalists. Barrientos said the altar was found in a temple and showed King Chak Took Ich'aak, La Corona's ruler, "sitting and holding a scepter from which emerge two patron gods of the city." There is the potential for Isaac to strengthen to a tropical storm or hurricane while crossing the western Caribbean and entering the Gulf of Mexico next week. Isaac became a tropical rainstorm early Saturday morning, but just because it has lost its tropical storm status does not mean it should be ignored. "The key will be how much wind shear Isaac encounters along the way and if Isaac manages to avoid much interaction with large land areas such as Mexico's Yucatan Peninsula and Cuba," Kottlowski said. Wind shear is the increase in wind speed with altitude or over horizontal distance. Strong wind shear can prevent a tropic storm from forming and cause a hurricane to weaken. A small amount of wind shear can vent a tropical storm or hurricane and cause it to strengthen. "Some minor fluctuation in organization and strength is likely over the Caribbean into early next week, but it is from Tuesday on, as it nears and passes through the Yucatan Channel, that we really have to keep an eye on it," Kottlowski said. From the early days of modernismo with Rubén Darío to the revolutionary movement in El Salvador with Roque Dalton, Central America has a long legacy of poetry. However, like many other things across the isthmus, this rich history is not visibly seen by the public. Now, thanks to the internet and internal push for cultural representation, a new generation of Central American poets are drawing from multidisciplinary practices to expand the genre. Through self-publishing, teaching, community organizing, and international festivals, these poets – some up-and-coming, others more established – are changing the landscape of the craft across these seven countries. Adele Ramos is a woman of many talents. The Belize-based journalist, TV producer, painter, fashion designer, and poet has not only enriched her country with her own work, she’s also used her platform to boost the work of other poets. “Adele led the poetic renaissance in Belize (2005-2006) as the founding president of the Belizean Poets Society (renamed the Belizean Writers and Poets Society),” her website reads. Learn about her work here. Mexican and Central American scientists will evaluate fishery resources, fish distribution and biodiversity of the Caribbean and Pacific oceans, said the UN's Food and Agriculture Organization (FAO) on Friday. A team of 22 scientists will work on an investigation vessel, the Dr. Jorge Carranza Fraser, to set sail on Monday from the city of Puerto Progreso, Yucatan state in southeastern Mexico. The investigation will evaluate 7,500 nautical miles (some 13,890 kilometers) of the Caribbean and Pacific oceans surrounding Belize, Guatemala, Honduras, El Salvador, Nicaragua, Costa Rica and Panama. The team aims to gauge the health of fisheries against current fishery productivity, measure ocean temperatures, oxygen levels and salinity to check their results against satellite images. Last week, 16-year-old Mario Johnson got to enjoy the best of the two scenarios when the men's team played their first game of the CONCACAF League of Nations. In his starting role, the six-foot, 2-inch, 160-pound Johnson gave up two goals before he went down with an injury and the Bahamas eventually lost 4-0 to Belize. Johnson, an 11th grader at St Andrew's School, got started playing soccer about 10 years ago, but because he was considered "too fat," he was sent into the goal post. "I feel good because I know I work very hard," said Johnson about his progress in his transition. "After they pretty much forced me to play keeper, I just lived up to the role." "I don't think the score indicated how well we played. It was a different play, but I felt we were ready. The Garinagu – plural for Garifuna – have a rich history, reflected in many ways, particularly through food. The savory, multi-step – sometimes multi-day – creations echo the complex, yet beautiful background of a people who have survived being uprooted and exiled from St. Vincent to settle along Central America’s Caribbean coast. For Bronx native Catherine Ochún Soliz-Rey, preserving Garifuna traditions and culture is a passion. The women’s empowerment coach and influencer invests a large portion of her time expanding Wabafu Garifuna Dance Theater, a collective founded in 1992 by her mother, dancer Luz F. Soliz, that preserves the richness of the culture and history through dance, music, and storytelling. Panerrifix Steel Band invites you to PANYAAD Belmopan Edition (Year For Love), 22min. Julietta Burrowes - Director, Panerrfix Steel Band. Ian Courtenay - Manager Pantempters Steel Orchestra. Performers: Kieran Brannon, Ylani Arzu, Leojon Pott. Belize Tourism Industry Association - 1st Ever West Fest, 21min. Talia Tillett - BTIA Membership Officer, Michael Fuller - BTIA Cayo Chapter, Carolyn Wade - Sales Manager Karl H. Menzies. The conversation on the State of Emergency proclamation - Human Rights, 44min. The conversation on the State of Emergency proclamation continued today with Attorney and Human Rights Committee member, Audrey Matura. She compares the proclamation to preventative detention and explained how this move violates the human rights of persons detained and further compounds the strained relationship with these communities. Children rally primary school was in corozal town, 7min. All schools across corozal came to participate in the rally. The Belizean National Anthem as performed by the Policia Federal Band of Mexico, 3min. What a stunning rendition of our National Anthem!! Corozal Pre-School & Primary School Children's Parade 2018, 3min. Vehicles Going To Belize, 8min. Ever wonder what it would take to uproot and move to a boat-access-only off-grid property in Belize? Well, we have no clue. But we're going to figure it out!
Proceeds from The Navesink Challenge go to help the Middletown Youth Athletic Association (MYAA) and Monmouth Conservation Foundation (MCF). Your sponsorship will help us to ensure that this race continues to grow each year and support these and other local non-profit organizations. We offer many levels of sponsorship. Please view details here and contact us with any questions.
Walter Graham Turnbull SC and Richard Weinstein SC have been appointed as Judges of the District Court of New South Wales. A formal ceremony to honour this occasion will be held in the John Maddison Tower on Level 21, at 9:00am on Monday 11 February 2019. All members are invited to attend. The Hon Mark Speakman SC MP will speak on behalf of the NSW Bar. Barristers should wear wigs and gowns. Senior counsel should wear full-bottomed wigs.
#include <limits.h> #include "Function.h" #include "Random.h" #include "util.h" #include "Type.h" #include "ExprGen.h" Function::Function(string returnType, string functionName) { retType = returnType; name = functionName; } void Function::printBodyHeader() { coutLine(retType + " " + name + "() {"); return; } void Function::printBodyFooter() { coutLine("}"); return; } void Function::printPrototype() { // TODO return; } void Function::printBody() { // TODO: cleanup printBodyHeader(); g_exprGen.setVarStack(&localVars); g_currentTabCount++; coutLine("cout << \"Hello world!\" << '\\n';"); localScopes.push_back(Scope()); localVars.setScope(&localScopes.back()); for (unsigned i = 0; i < 10; i++) { SupportedType randType = getRandType(); coutLine(g_typeStrings[randType] + " " + localVars.newVar(randType) + " = " + getRandValue(randType) + ";"); } for (unsigned i = 0; i < 20; i++) { SupportedType randType = getRandType(); string arithmicExprStr = g_exprGen.genArithmeticExpr(randType); coutLine(g_typeStrings[randType] + " " + localVars.newVar(randType) + " = " + arithmicExprStr + ";"); } coutLine("return 0;"); g_currentTabCount--; printBodyFooter(); cleanupCurrScope(); } bool Function::cleanupCurrScope() { bool ret = localVars.popVars(); localScopes.pop_back(); if (localScopes.size()) { localVars.setScope(&localScopes.back()); } return ret; }
PRESS RELEASE – Belmopan, Belize; August 31, 2017 – The Caribbean Community Climate Change Centre (CCCCC), implementing organisation for the United States Agency for International Development Climate Change Adaptation Programme ((USAID CCAP), is hosting the inaugural Project Advisory Committee (PAC) meeting at the Coco Palm Hotel in St Lucia, August 31 to Sept 1. The PAC was set up to provide policy guidance on the implementation of the four-year US$25.6-million-dollar project which aims to reduce risks to human and the natural assets of the Eastern and Southern Caribbean resulting from Climate Change. USAID CCAP was designed to establish and strengthen a system for the implementation and financing of sustainable adaptation approaches in the Eastern and Southern Caribbean. The program targets the ten (10) countries included in USAID/ESC’s coverage area. It comprises representatives from the CCCCC, USAID-Eastern and Southern Caribbean Office, the Organisation of Eastern Caribbean States (OECS), the Caribbean Community (CARICOM) Secretariat, Caribbean Institute of Meteorology and Hydrology (CIMH), the Caribbean Development Bank (CDB), the University of the West Indies and the Caribbean Regional Fisheries Mechanism (CRFM) as well as representatives of regional participating governments. USAID CCAP is investing activities that build capacities at the regional, national, and local levels to generate and use climate data and information to influence decision-making; strengthen the regional capacity to assess the economic, social, and technical feasibility of climate change adaptation techniques and support the implementation of suitable projects. It also aims to build capacities within regional and national institutions to access funding from established global funding mechanisms that will aid the region in up scaling and replicating proven climate change adaptation strategies. USAID CCAP is being implemented in ten countries of the Eastern and Southern Caribbean namely Antigua and Barbuda, The Commonwealth of Dominica, Grenada, Guyana, St. Kitts and Nevis, Saint Lucia, St Vincent and the Grenadines, Suriname, and Trinidad and Tobago. By caribbeanclimate in News on August 31, 2017 .
<h6>Selaimesi on vanhentunut!</h6> <p>Lataa ajantasainen selain n&auml;hd&auml;ksesi t&auml;m&auml;n sivun oikein. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">P&auml;ivit&auml; selaimeni nyt </a></p> <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sulje">&times;</a></p>
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hedwig.admin.console; import jline.ConsoleReader; import jline.History; import jline.Terminal; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import org.apache.bookkeeper.util.MathUtils; import org.apache.commons.configuration.ConfigurationException; import org.apache.hedwig.admin.HedwigAdmin; import org.apache.hedwig.client.api.MessageHandler; import org.apache.hedwig.client.api.Publisher; import org.apache.hedwig.client.api.Subscriber; import org.apache.hedwig.client.conf.ClientConfiguration; import org.apache.hedwig.client.HedwigClient; import org.apache.hedwig.protocol.PubSubProtocol.LedgerRange; import org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges; import org.apache.hedwig.protocol.PubSubProtocol.Message; import org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId; import org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach; import org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData; import org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent; import org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions; import org.apache.hedwig.protoextensions.SubscriptionStateUtils; import org.apache.hedwig.server.common.ServerConfiguration; import org.apache.hedwig.server.topics.HubInfo; import org.apache.hedwig.util.Callback; import org.apache.hedwig.util.HedwigSocketAddress; import org.apache.hedwig.util.SubscriptionListener; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.protobuf.ByteString; import static com.google.common.base.Charsets.UTF_8; import static org.apache.hedwig.admin.console.HedwigCommands.*; import static org.apache.hedwig.admin.console.HedwigCommands.COMMAND.*; /** * Console Client to Hedwig */ public class HedwigConsole { private static final Logger LOG = LoggerFactory.getLogger(HedwigConsole.class); // NOTE: now it is fixed passwd in bookkeeper static byte[] passwd = "sillysecret".getBytes(UTF_8); // history file name static final String HW_HISTORY_FILE = ".hw_history"; static final char[] CONTINUE_OR_QUIT = new char[] { 'Q', 'q', '\n' }; protected MyCommandOptions cl = new MyCommandOptions(); protected HashMap<Integer, String> history = new LinkedHashMap<Integer, String>(); protected int commandCount = 0; protected boolean printWatches = true; protected Map<String, MyCommand> myCommands; protected boolean inConsole = true; protected ConsoleReader console = null; protected HedwigAdmin admin; protected HedwigClient hubClient; protected Publisher publisher; protected Subscriber subscriber; protected ConsoleMessageHandler consoleHandler = new ConsoleMessageHandler(); protected Terminal terminal; protected String myRegion; interface MyCommand { boolean runCmd(String[] args) throws Exception; } static class HelpCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { boolean printUsage = true; if (args.length >= 2) { String command = args[1]; COMMAND c = getHedwigCommands().get(command); if (c != null) { c.printUsage(); printUsage = false; } } if (printUsage) { usage(); } return true; } } class ExitCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { printMessage("Quitting ..."); hubClient.close(); admin.close(); Runtime.getRuntime().exit(0); return true; } } class RedoCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 2) { return false; } int index; if ("!".equals(args[1])) { index = commandCount - 1; } else { index = Integer.decode(args[1]); if (commandCount <= index) { System.err.println("Command index out of range"); return false; } } cl.parseCommand(history.get(index)); if (cl.getCommand().equals("redo")) { System.err.println("No redoing redos"); return false; } history.put(commandCount, history.get(index)); processCmd(cl); return true; } } class HistoryCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { for (int i=commandCount - 10; i<=commandCount; ++i) { if (i < 0) { continue; } System.out.println(i + " - " + history.get(i)); } return true; } } class SetCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 3 || !"printwatches".equals(args[1])) { return false; } else if (args.length == 2) { System.out.println("printwatches is " + (printWatches ? "on" : "off")); } else { printWatches = args[2].equals("on"); } return true; } } class PubCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 3) { return false; } ByteString topic = ByteString.copyFromUtf8(args[1]); StringBuilder sb = new StringBuilder(); for (int i=2; i<args.length; i++) { sb.append(args[i]); if (i != args.length - 1) { sb.append(' '); } } ByteString msgBody = ByteString.copyFromUtf8(sb.toString()); Message msg = Message.newBuilder().setBody(msgBody).build(); try { publisher.publish(topic, msg); System.out.println("PUB DONE"); } catch (Exception e) { System.err.println("PUB FAILED"); e.printStackTrace(); } return true; } } static class ConsoleMessageHandler implements MessageHandler { @Override public void deliver(ByteString topic, ByteString subscriberId, Message msg, Callback<Void> callback, Object context) { System.out.println("Received message from topic " + topic.toStringUtf8() + " for subscriber " + subscriberId.toStringUtf8() + " : " + msg.getBody().toStringUtf8()); callback.operationFinished(context, null); } } static class ConsoleSubscriptionListener implements SubscriptionListener { @Override public void processEvent(ByteString t, ByteString s, SubscriptionEvent event) { System.out.println("Subscription Channel for (topic:" + t.toStringUtf8() + ", subscriber:" + s.toStringUtf8() + ") received event : " + event); } } class SubCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { CreateOrAttach mode; boolean receive = true; if (args.length < 3) { return false; } else if (args.length == 3) { mode = CreateOrAttach.ATTACH; receive = true; } else { try { mode = CreateOrAttach.valueOf(Integer.parseInt(args[3])); } catch (Exception e) { System.err.println("Unknow mode : " + args[3]); return false; } if (args.length >= 5) { try { receive = Boolean.parseBoolean(args[4]); } catch (Exception e) { receive = false; } } } if (mode == null) { System.err.println("Unknow mode : " + args[3]); return false; } ByteString topic = ByteString.copyFromUtf8(args[1]); ByteString subId = ByteString.copyFromUtf8(args[2]); try { SubscriptionOptions options = SubscriptionOptions.newBuilder().setCreateOrAttach(mode) .setForceAttach(false).build(); subscriber.subscribe(topic, subId, options); if (receive) { subscriber.startDelivery(topic, subId, consoleHandler); System.out.println("SUB DONE AND RECEIVE"); } else { System.out.println("SUB DONE BUT NOT RECEIVE"); } } catch (Exception e) { System.err.println("SUB FAILED"); e.printStackTrace(); } return true; } } class UnsubCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 3) { return false; } ByteString topic = ByteString.copyFromUtf8(args[1]); ByteString subId = ByteString.copyFromUtf8(args[2]); try { subscriber.stopDelivery(topic, subId); subscriber.unsubscribe(topic, subId); System.out.println("UNSUB DONE"); } catch (Exception e) { System.err.println("UNSUB FAILED"); e.printStackTrace(); } return true; } } class RmsubCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 7) { return false; } String topicPrefix = args[1]; int startTopic = Integer.parseInt(args[2]); int endTopic = Integer.parseInt(args[3]); String subPrefix = args[4]; int startSub = Integer.parseInt(args[5]); int endSub = Integer.parseInt(args[6]); if (startTopic > endTopic || endSub < startSub) { return false; } for (int i=startTopic; i<=endTopic; i++) { ByteString topic = ByteString.copyFromUtf8(topicPrefix + i); try { for (int j=startSub; j<=endSub; j++) { ByteString sub = ByteString.copyFromUtf8(subPrefix + j); SubscriptionOptions opts = SubscriptionOptions.newBuilder() .setCreateOrAttach(CreateOrAttach.CREATE_OR_ATTACH).build(); subscriber.subscribe(topic, sub, opts); subscriber.unsubscribe(topic, sub); } System.out.println("RMSUB " + topic.toStringUtf8() + " DONE"); } catch (Exception e) { System.err.println("RMSUB " + topic.toStringUtf8() + " FAILED"); e.printStackTrace(); } } return true; } } class CloseSubscriptionCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 3) { return false; } ByteString topic = ByteString.copyFromUtf8(args[1]); ByteString sudId = ByteString.copyFromUtf8(args[2]); try { subscriber.stopDelivery(topic, sudId); subscriber.closeSubscription(topic, sudId); } catch (Exception e) { System.err.println("CLOSESUB FAILED"); } return true; } } class ConsumeToCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 4) { return false; } ByteString topic = ByteString.copyFromUtf8(args[1]); ByteString subId = ByteString.copyFromUtf8(args[2]); long msgId = Long.parseLong(args[3]); MessageSeqId consumeId = MessageSeqId.newBuilder().setLocalComponent(msgId).build(); try { subscriber.consume(topic, subId, consumeId); } catch (Exception e) { System.err.println("CONSUMETO FAILED"); } return true; } } class ConsumeCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 4) { return false; } long lastConsumedId = 0; SubscriptionData subData = admin.getSubscription(ByteString.copyFromUtf8(args[1]), ByteString.copyFromUtf8(args[2])); if (null == subData) { System.err.println("Failed to read subscription for topic: " + args[1] + " subscriber: " + args[2]); return true; } lastConsumedId = subData.getState().getMsgId().getLocalComponent(); long numMessagesToConsume = Long.parseLong(args[3]); long idToConsumed = lastConsumedId + numMessagesToConsume; System.out.println("Try to move subscriber(" + args[2] + ") consume ptr of topic(" + args[1] + ") from " + lastConsumedId + " to " + idToConsumed); MessageSeqId consumeId = MessageSeqId.newBuilder().setLocalComponent(idToConsumed).build(); ByteString topic = ByteString.copyFromUtf8(args[1]); ByteString subId = ByteString.copyFromUtf8(args[2]); try { subscriber.consume(topic, subId, consumeId); } catch (Exception e) { System.err.println("CONSUME FAILED"); } return true; } } class PubSubCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 5) { return false; } final long startTime = MathUtils.now(); final ByteString topic = ByteString.copyFromUtf8(args[1]); final ByteString subId = ByteString.copyFromUtf8(args[2] + "-" + startTime); int timeoutSecs = 60; try { timeoutSecs = Integer.parseInt(args[3]); } catch (NumberFormatException nfe) { } StringBuilder sb = new StringBuilder(); for (int i=4; i<args.length; i++) { sb.append(args[i]); if (i != args.length - 1) { sb.append(' '); } } // append a timestamp tag ByteString msgBody = ByteString.copyFromUtf8(sb.toString() + "-" + startTime); final Message msg = Message.newBuilder().setBody(msgBody).build(); boolean subscribed = false; boolean success = false; final CountDownLatch isDone = new CountDownLatch(1); long elapsedTime = 0L; System.out.println("Starting PUBSUB test ..."); try { // sub the topic SubscriptionOptions opts = SubscriptionOptions.newBuilder() .setCreateOrAttach(CreateOrAttach.CREATE_OR_ATTACH).build(); subscriber.subscribe(topic, subId, opts); subscribed = true; System.out.println("Sub topic " + topic.toStringUtf8() + ", subscriber id " + subId.toStringUtf8()); // pub topic publisher.publish(topic, msg); System.out.println("Pub topic " + topic.toStringUtf8() + " : " + msg.getBody().toStringUtf8()); // ensure subscriber first, publish next, then we start delivery to receive message // if start delivery first before publish, isDone may notify before wait subscriber.startDelivery(topic, subId, new MessageHandler() { @Override public void deliver(ByteString thisTopic, ByteString subscriberId, Message message, Callback<Void> callback, Object context) { if (thisTopic.equals(topic) && subscriberId.equals(subId) && msg.getBody().equals(message.getBody())) { System.out.println("Received message : " + message.getBody().toStringUtf8()); isDone.countDown(); } callback.operationFinished(context, null); } }); // wait for the message success = isDone.await(timeoutSecs, TimeUnit.SECONDS); elapsedTime = MathUtils.now() - startTime; } finally { try { if (subscribed) { subscriber.stopDelivery(topic, subId); subscriber.unsubscribe(topic, subId); } } finally { if (success) { System.out.println("PUBSUB SUCCESS. TIME: " + elapsedTime + " MS"); } else { System.out.println("PUBSUB FAILED. "); } return success; } } } } class ReadTopicCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 2) { return false; } ReadTopic rt; ByteString topic = ByteString.copyFromUtf8(args[1]); if (args.length == 2) { rt = new ReadTopic(admin, topic, inConsole); } else { rt = new ReadTopic(admin, topic, Long.parseLong(args[2]), inConsole); } rt.readTopic(); return true; } } class ShowCmd implements MyCommand { static final int MAX_TOPICS_PER_SHOW = 100; @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 2) { return false; } String errorMsg = null; try { if (HedwigCommands.SHOW_HUBS.equals(args[1])) { errorMsg = "Unable to fetch the list of hub servers"; showHubs(); } else if (HedwigCommands.SHOW_TOPICS.equals(args[1])) { errorMsg = "Unable to fetch the list of topics"; showTopics(); } else { System.err.println("ERROR: Unknown show command '" + args[1] + "'"); return false; } } catch (Exception e) { if (null != errorMsg) { System.err.println(errorMsg); } e.printStackTrace(); } return true; } protected void showHubs() throws Exception { Map<HedwigSocketAddress, HedwigAdmin.HubStats> hubs = admin.getAvailableHubs(); System.out.println("Available Hub Servers:"); for (Map.Entry<HedwigSocketAddress, HedwigAdmin.HubStats> entry : hubs.entrySet()) { System.out.println("\t" + entry.getKey() + " :\t" + entry.getValue()); } } protected void showTopics() throws Exception { List<String> topics = new ArrayList<String>(); Iterator<ByteString> iter = admin.getTopics(); System.out.println("Topic List:"); boolean stop = false; while (iter.hasNext()) { if (topics.size() >= MAX_TOPICS_PER_SHOW) { System.out.println(topics); topics.clear(); stop = !continueOrQuit(); if (stop) { break; } } ByteString t = iter.next(); topics.add(t.toStringUtf8()); } if (!stop) { System.out.println(topics); } } } class DescribeCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { if (args.length < 3) { return false; } if (HedwigCommands.DESCRIBE_TOPIC.equals(args[1])) { return describeTopic(args[2]); } else { return false; } } protected boolean describeTopic(String topic) throws Exception { ByteString btopic = ByteString.copyFromUtf8(topic); HubInfo owner = admin.getTopicOwner(btopic); List<LedgerRange> ranges = admin.getTopicLedgers(btopic); Map<ByteString, SubscriptionData> states = admin.getTopicSubscriptions(btopic); System.out.println("===== Topic Information : " + topic + " ====="); System.out.println(); System.out.println("Owner : " + (owner == null ? "NULL" : owner.toString().trim().replaceAll("\n", ", "))); System.out.println(); // print ledgers printTopicLedgers(ranges); // print subscriptions printTopicSubscriptions(states); return true; } private void printTopicLedgers(List<LedgerRange> ranges) { System.out.println(">>> Persistence Info <<<"); if (null == ranges) { System.out.println("N/A"); return; } if (ranges.isEmpty()) { System.out.println("No Ledger used."); return; } for (LedgerRange range : ranges) { System.out.println("Ledger " + range.getLedgerId() + " [ " + range.getStartSeqIdIncluded() + " ~ " + range.getEndSeqIdIncluded().getLocalComponent() + " ]"); } System.out.println(); } private void printTopicSubscriptions(Map<ByteString, SubscriptionData> states) { System.out.println(">>> Subscription Info <<<"); if (0 == states.size()) { System.out.println("No subscriber."); return; } for (Map.Entry<ByteString, SubscriptionData> entry : states.entrySet()) { System.out.println("Subscriber " + entry.getKey().toStringUtf8() + " : " + SubscriptionStateUtils.toString(entry.getValue())); } System.out.println(); } } class FormatCmd implements MyCommand { @Override public boolean runCmd(String[] args) throws Exception { boolean force = false; if (args.length >= 2 && "-force".equals(args[1])) { force = true; } boolean doFormat = true; System.out.println("You ask to format hedwig metadata stored in " + admin.getMetadataManagerFactory().getClass().getName() + "."); if (!force) { doFormat = continueOrQuit(); } if (doFormat) { admin.format(); System.out.println("Formatted hedwig metadata successfully."); } else { System.out.println("Given up formatting hedwig metadata."); } return true; } } protected Map<String, MyCommand> buildMyCommands() { Map<String, MyCommand> cmds = new HashMap<String, MyCommand>(); ExitCmd exitCmd = new ExitCmd(); cmds.put(EXIT, exitCmd); cmds.put(QUIT, exitCmd); cmds.put(HELP, new HelpCmd()); cmds.put(HISTORY, new HistoryCmd()); cmds.put(REDO, new RedoCmd()); cmds.put(SET, new SetCmd()); cmds.put(PUB, new PubCmd()); cmds.put(SUB, new SubCmd()); cmds.put(PUBSUB, new PubSubCmd()); cmds.put(CLOSESUB, new CloseSubscriptionCmd()); cmds.put(UNSUB, new UnsubCmd()); cmds.put(RMSUB, new RmsubCmd()); cmds.put(CONSUME, new ConsumeCmd()); cmds.put(CONSUMETO, new ConsumeToCmd()); cmds.put(SHOW, new ShowCmd()); cmds.put(DESCRIBE, new DescribeCmd()); cmds.put(READTOPIC, new ReadTopicCmd()); cmds.put(FORMAT, new FormatCmd()); return cmds; } static void usage() { System.err.println("HedwigConsole [options] [command] [args]"); System.err.println(); System.err.println("Avaiable commands:"); for (String cmd : getHedwigCommands().keySet()) { System.err.println("\t" + cmd); } System.err.println(); } /** * A storage class for both command line options and shell commands. */ static private class MyCommandOptions { private Map<String,String> options = new HashMap<String,String>(); private List<String> cmdArgs = null; private String command = null; public MyCommandOptions() { } public String getOption(String opt) { return options.get(opt); } public String getCommand( ) { return command; } public String getCmdArgument( int index ) { return cmdArgs.get(index); } public int getNumArguments( ) { return cmdArgs.size(); } public String[] getArgArray() { return cmdArgs.toArray(new String[0]); } /** * Parses a command line that may contain one or more flags * before an optional command string * @param args command line arguments * @return true if parsing succeeded, false otherwise. */ public boolean parseOptions(String[] args) { List<String> argList = Arrays.asList(args); Iterator<String> it = argList.iterator(); while (it.hasNext()) { String opt = it.next(); if (!opt.startsWith("-")) { command = opt; cmdArgs = new ArrayList<String>( ); cmdArgs.add( command ); while (it.hasNext()) { cmdArgs.add(it.next()); } return true; } else { try { options.put(opt.substring(1), it.next()); } catch (NoSuchElementException e) { System.err.println("Error: no argument found for option " + opt); return false; } } } return true; } /** * Breaks a string into command + arguments. * @param cmdstring string of form "cmd arg1 arg2..etc" * @return true if parsing succeeded. */ public boolean parseCommand( String cmdstring ) { String[] args = cmdstring.split(" "); if (args.length == 0){ return false; } command = args[0]; cmdArgs = Arrays.asList(args); return true; } } private class MyWatcher implements Watcher { public void process(WatchedEvent event) { if (getPrintWatches()) { printMessage("WATCHER::"); printMessage(event.toString()); } } } public void printMessage(String msg) { if (inConsole) { System.out.println("\n"+msg); } } /** * Hedwig Console * * @param args arguments * @throws IOException * @throws InterruptedException */ public HedwigConsole(String[] args) throws IOException, InterruptedException { // Setup Terminal terminal = Terminal.setupTerminal(); HedwigCommands.init(); cl.parseOptions(args); if (cl.getCommand() == null) { inConsole = true; } else { inConsole = false; } org.apache.bookkeeper.conf.ClientConfiguration bkClientConf = new org.apache.bookkeeper.conf.ClientConfiguration(); ServerConfiguration hubServerConf = new ServerConfiguration(); String serverCfgFile = cl.getOption("server-cfg"); if (serverCfgFile != null) { try { hubServerConf.loadConf(new File(serverCfgFile).toURI().toURL()); } catch (ConfigurationException e) { throw new IOException(e); } try { bkClientConf.loadConf(new File(serverCfgFile).toURI().toURL()); } catch (ConfigurationException e) { throw new IOException(e); } } ClientConfiguration hubClientCfg = new ClientConfiguration(); String clientCfgFile = cl.getOption("client-cfg"); if (clientCfgFile != null) { try { hubClientCfg.loadConf(new File(clientCfgFile).toURI().toURL()); } catch (ConfigurationException e) { throw new IOException(e); } } printMessage("Connecting to zookeeper/bookkeeper using HedwigAdmin"); try { admin = new HedwigAdmin(bkClientConf, hubServerConf); admin.getZkHandle().register(new MyWatcher()); } catch (Exception e) { throw new IOException(e); } printMessage("Connecting to default hub server " + hubClientCfg.getDefaultServerHost()); hubClient = new HedwigClient(hubClientCfg); publisher = hubClient.getPublisher(); subscriber = hubClient.getSubscriber(); subscriber.addSubscriptionListener(new ConsoleSubscriptionListener()); // other parameters myRegion = hubServerConf.getMyRegion(); } public boolean getPrintWatches() { return printWatches; } protected String getPrompt() { StringBuilder sb = new StringBuilder(); sb.append("[hedwig: (").append(myRegion).append(") ").append(commandCount).append("] "); return sb.toString(); } protected boolean continueOrQuit() throws IOException { System.out.println("Press <Return> to continue, or Q to cancel ..."); int ch; if (null != console) { ch = console.readCharacter(CONTINUE_OR_QUIT); } else { do { ch = terminal.readCharacter(System.in); } while (ch != 'q' && ch != 'Q' && ch != '\n'); } if (ch == 'q' || ch == 'Q') { return false; } return true; } protected void addToHistory(int i, String cmd) { history.put(i, cmd); } public void executeLine(String line) { if (!line.equals("")) { cl.parseCommand(line); addToHistory(commandCount, line); processCmd(cl); commandCount++; } } protected boolean processCmd(MyCommandOptions co) { String[] args = co.getArgArray(); String cmd = co.getCommand(); if (args.length < 1) { usage(); return false; } if (!getHedwigCommands().containsKey(cmd)) { usage(); return false; } LOG.debug("Processing {}", cmd); MyCommand myCommand = myCommands.get(cmd); if (myCommand == null) { System.err.println("No Command Processor found for command " + cmd); usage(); return false; } long startTime = MathUtils.now(); boolean success = false; try { success = myCommand.runCmd(args); } catch (Exception e) { e.printStackTrace(); success = false; } long elapsedTime = MathUtils.now() - startTime; if (inConsole) { if (success) { System.out.println("Finished " + ((double)elapsedTime / 1000) + " s."); } else { COMMAND c = getHedwigCommands().get(cmd); if (c != null) { c.printUsage(); } } } return success; } @SuppressWarnings("unchecked") void run() throws IOException { inConsole = true; myCommands = buildMyCommands(); if (cl.getCommand() == null) { System.out.println("Welcome to Hedwig!"); System.out.println("JLine support is enabled"); console = new ConsoleReader(); JLineHedwigCompletor completor = new JLineHedwigCompletor(admin); console.addCompletor(completor); // load history file History history = new History(); File file = new File(System.getProperty("hw.history", new File(System.getProperty("user.home"), HW_HISTORY_FILE).toString())); if (LOG.isDebugEnabled()) { LOG.debug("History file is " + file.toString()); } history.setHistoryFile(file); // set history to console reader console.setHistory(history); // load history from history file history.moveToFirstEntry(); while (history.next()) { String entry = history.current(); if (!entry.equals("")) { addToHistory(commandCount, entry); } commandCount++; } System.out.println("JLine history support is enabled"); String line; while ((line = console.readLine(getPrompt())) != null) { executeLine(line); history.addToHistory(line); } } inConsole = false; processCmd(cl); try { myCommands.get(EXIT).runCmd(new String[0]); } catch (Exception e) { } } public static void main(String[] args) throws IOException, InterruptedException { HedwigConsole console = new HedwigConsole(args); console.run(); } }
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta http-equiv="Content-ReprocessingType" content="text/html; charset=UTF-8"> <title>GNU Lesser General Public License v3.0 - GNU Project - Free Software Foundation (FSF)</title> <link rel="alternate" type="application/rdf+xml" href="http://www.gnu.org/licenses/lgpl-3.0.rdf"> </head> <body> <h3 style="text-align: center;">GNU LESSER GENERAL PUBLIC LICENSE</h3> <p style="text-align: center;">Version 3, 29 June 2007</p> <p>Copyright © 2007 Free Software Foundation, Inc. &lt;<a href="http://fsf.org/">http://fsf.org/</a>&gt;</p><p> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p> <p>This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.</p> <h4><a name="section0"></a>0. Additional Definitions.</h4> <p>As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL” refers to version 3 of the GNU General Public License.</p> <p>“The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.</p> <p>An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.</p> <p>A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the “Linked Version”.</p> <p>The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.</p> <p>The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.</p> <h4><a name="section1"></a>1. Exception to Section 3 of the GNU GPL.</h4> <p>You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.</p> <h4><a name="section2"></a>2. Conveying Modified Versions.</h4> <p>If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:</p> <ul> <li>a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or</li> <li>b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.</li> </ul> <h4><a name="section3"></a>3. Object Code Incorporating Material from Library Header Files.</h4> <p>The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:</p> <ul> <li>a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.</li> <li>b) Accompany the object code with a copy of the GNU GPL and this license document.</li> </ul> <h4><a name="section4"></a>4. Combined Works.</h4> <p>You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:</p> <ul> <li>a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.</li> <li>b) Accompany the Combined Work with a copy of the GNU GPL and this license document.</li> <li>c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.</li> <li>d) Do one of the following: <ul> <li>0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.</li> <li>1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.</li> </ul></li> <li>e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)</li> </ul> <h4><a name="section5"></a>5. Combined Libraries.</h4> <p>You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:</p> <ul> <li>a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.</li> <li>b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.</li> </ul> <h4><a name="section6"></a>6. Revised Versions of the GNU Lesser General Public License.</h4> <p>The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p> <p>Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.</p> <p>If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.</p> </body></html>
100 Cell Phones PLR Articles Pack Vol. 1 with unrestricted Private Label Rights. We sell high..
CRAZY FRANKS 2 locations in Readstown, WI and 1 location in Mineral Point WI feature over 250 vendors and they're open all year long! When you visit CRAZY FRANKS FLEA MARKET #2 READSTOWN you'll find bargains that you can't beat anywhere else. Here you are guaranteed to have a wide range of discounted and flea market merchandise ranging from Antique & Vintage Furniture, Home Decor, Collectables and Antiques, Arts & Crafts, Memorabilia, Glassware, Toys, Furniture, Tools, Sporting Goods, Discontinued and Closeout deals and many other second time around items. All 3 locations are indoor flea markets, they are all 12,000 sq. ft. or larger and have wide aisles for carts!
Josh Baugh April 21, 2016 Updated: April 21, 2016 7:55 p.m. Mayor Ivy Taylor plans to lay out her major initiatives for the coming year to Saen Editorial Board Friday December 4, 2015. Despite tepid support from business leaders and some members of the City Council, Mayor Ivy Taylor said she’s willing to spend the necessary political capital to build a proposed downtown baseball stadium for a new Triple-A team in 2019. Taylor had hinted at the plan in her annual State of the City address last month and then announced at a council meeting this month that David Elmore would move his Triple-A baseball club from Colorado Springs, Colorado, to San Antonio in 2019 to play in a new downtown stadium. His Double-A Missions club would simultaneously relocate, possibly to Amarillo. But details about the proposal were scant — there’s a confidential potential-site list, but no specific location has been selected. There are questions about how much the project would ultimately cost and how much taxpayers would have to contribute, and there’s concern about building a stadium for a for-profit sports ownership group. Taylor said in an interview that she expected some opposition and intends on using her power of the mayor’s pulpit to build support. Meanwhile, opinion makers and community leaders — with or without the necessary details — are staking out positions on the proposal. Several have called on the city to pursue Major League Baseball, despite the findings of a 2011 study jointly commissioned by the city and Bexar County that said San Antonio was best poised to pursue Triple-A baseball and Major League Soccer. Richard Perez, president and CEO of the San Antonio Chamber of Commerce, said there are a couple of reasons why there hasn’t been a groundswell of support from the business community. The chamber — and by extension, the business community — generally backs sports and downtown development, Perez said. But he touched on an element that has struck a chord among business leaders and sports radio hosts alike — the possibility that San Antonio could land an MLB team. Experts, though, are resolute that San Antonio should pursue Triple-A baseball. “We are still going by the study we paid for until there’s another study done to prove otherwise,” said Mike Sculley, Bexar County’s program director for community venues, who advises County Judge Nelson Wolff on professional sports and facilities. Mike Sawaya, San Antonio’s Convention & Sports Facilities director, also said the 2011 study remains the conventional wisdom for pro sports in San Antonio. Now that Elmore is on board to relocate his Double-A and Triple-A teams and Taylor is ready to push for a downtown stadium, city staff have to put together a proposal in short order to build support and bring on new advocates. Councilman Joe Krier, one of Taylor’s closest council allies, said he, too, is waiting to see the details of the proposal but is “absolutely open” to considering it — and city funding for it — once city staff flesh out a detailed proposal. A key element for some opponents has focused on public funding. Clearly, the city would have to pony up substantial money, but Taylor said it wouldn’t be San Antonio alone. Councilman Ron Nirenberg said that while he’d love to see baseball downtown, he’s not willing to commit funding that would otherwise address major infrastructure needs such as road improvement projects slated for a 2017 bond program. Taylor said she still prioritizes taxpayer priorities. Infrastructure, streets and drainage will consume the majority of resources in the bond program, she said. But investing in a downtown facility can spur further economic growth and underpin a blossoming downtown. Wolff, who has long sought to bring MLB to San Antonio, has backed away from the front lines of this baseball deal, noting that the Elmore Sports Group is the city’s tenant at the city-owned Double-A baseball stadium that bears his name. The talk at City Hall is that a new stadium could be built in the $60 million to $80 million range, not including the cost of land. The city could potentially cover about half of that, with the other half coming from a combination of sources, including the Elmore Sports Group, Bexar County and an entity that would purchase naming rights of the stadium. When the mayor talks about the potential of the deal, she’s not just focused on an incremental step in the level of professional baseball played here. With a background in urban planning and in her mayoral role, Taylor said the stadium would both bolster city investments already made downtown and be a catalyst for new development.
Tendenci’s Adorable New Video Ad: The Guinea Pig Appreciation Society! Tendenci Powers Websites for Organizations of All Sizes! Our latest video ad follows a particularly web savvy guinea pig (played by our own Tabby Kokoska‘s pet guinea pig Carl Sagan) as he, unbeknownst to his owner, endeavors out of his cage to make updates to his Tendenci website – The Guinea Pig Appreciation Society. Check out Carl’s adventures with Tendenci in the video spot below and on Tendenci’s YouTube channel! Big thanks to Chris Minor, Brian Potter, Tabby Kokoska, and Carl the multitalented guinea pig for your work and creativity to bring this video to life! Check back here for behind the scenes photos of the video shoot, coming soon! Next PostNext Behind the Scenes Photos of the Tendenci Guinea Pig Video Shoot!
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.openqa.selenium.remote.server.commandhandler; import com.google.common.base.Throwables; import com.google.common.collect.ImmutableList; import org.openqa.selenium.WebDriverException; import org.openqa.selenium.json.Json; import org.openqa.selenium.remote.ErrorCodes; import org.openqa.selenium.remote.http.HttpHandler; import org.openqa.selenium.remote.http.HttpRequest; import org.openqa.selenium.remote.http.HttpResponse; import java.io.UncheckedIOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ExecutionException; import java.util.stream.Stream; import static com.google.common.net.MediaType.JSON_UTF_8; import static java.net.HttpURLConnection.HTTP_INTERNAL_ERROR; import static java.nio.charset.StandardCharsets.UTF_8; import static org.openqa.selenium.remote.http.Contents.bytes; /** * Takes an exception and formats it for a local end that speaks either the OSS or W3C dialect of * the wire protocol. */ public class ExceptionHandler implements HttpHandler { private static final ErrorCodes ERRORS = new ErrorCodes(); private static final Json toJson = new Json(); private final Throwable exception; public ExceptionHandler(Throwable e) { if (e == null) { e = new WebDriverException("Unknown error"); } if (e instanceof ExecutionException && e.getCause() != null) { e = e.getCause(); } this.exception = e; } @Override public HttpResponse execute(HttpRequest req) throws UncheckedIOException { int code = ERRORS.toStatusCode(exception); String status = ERRORS.toState(code); Map<String, Object> toSerialise = new HashMap<>(); // W3C Map<String, Object> value = new HashMap<>(); value.put("message", exception.getMessage()); value.put("stacktrace", Throwables.getStackTraceAsString(exception)); value.put("error", status); // JSON Wire Protocol toSerialise.put("status", code); value.put( "stackTrace", Stream.of(exception.getStackTrace()) .map(ste -> { HashMap<String, Object> line = new HashMap<>(); line.put("fileName", ste.getFileName()); line.put("lineNumber", ste.getLineNumber()); line.put("className", ste.getClassName()); line.put("methodName", ste.getMethodName()); return line; }) .collect(ImmutableList.toImmutableList())); toSerialise.put("value", value); byte[] bytes = toJson.toJson(toSerialise).getBytes(UTF_8); return new HttpResponse() .setStatus(HTTP_INTERNAL_ERROR) .setHeader("Content-Type", JSON_UTF_8.toString()) .setContent(bytes(bytes)); } }
// ensure we test the helper implementation, // not built-in Reflect.get to which it defers delete Reflect; class Target { get receiver() { return this; } }; // check that the 1st argument (target) *is* used // in place of missing 3rd argument (receiver) expect(HELPER_GET(new Target, "receiver")).toBeInstanceOf(Target); // because the helper replaces itself upon invocation, // check it again with the same arguments expect(HELPER_GET(new Target, "receiver")).toBeInstanceOf(Target);
/* FreeRTOS V4.6.1 - Copyright (C) 2003-2006 Richard Barry. MCF5235 Port - Copyright (C) 2006 Christian Walter. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License** as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA A special exception to the GPL can be applied should you wish to distribute a combined work that includes FreeRTOS, without being obliged to provide the source code for any proprietary components. See the licensing section of http://www.FreeRTOS.org for full details of how and when the exception can be applied. *************************************************************************** *************************************************************************** * * * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation * * * * This is a concise, step by step, 'hands on' guide that describes both * * general multitasking concepts and FreeRTOS specifics. It presents and * * explains numerous examples that are written using the FreeRTOS API. * * Full source code for all the examples is provided in an accompanying * * .zip file. * * * *************************************************************************** *************************************************************************** Please ensure to read the configuration and relevant port sections of the online documentation. http://www.FreeRTOS.org - Documentation, latest information, license and contact details. http://www.SafeRTOS.com - A version that is certified for use in safety critical systems. http://www.OpenRTOS.com - Commercial support, development, porting, licensing and training services. */ #ifndef FREERTOS_CONFIG_H #define FREERTOS_CONFIG_H /*----------------------------------------------------------- * Application specific definitions. * * These definitions should be adjusted for your particular hardware and * application requirements. * * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. * * See http://www.freertos.org/a00110.html. *----------------------------------------------------------*/ #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 0 #define configCPU_CLOCK_HZ ( ( unsigned long ) 25000000 ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES ( 7 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 ) #define configMAX_TASK_NAME_LEN ( 16 ) #define configUSE_TRACE_FACILITY 1 #define configUSE_16_BIT_TICKS 0 #define configIDLE_SHOULD_YIELD 1 /* Co-routine definitions. */ #define configUSE_CO_ROUTINES 0 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) /* Set the following definitions to 1 to include the API function, or zero to exclude the API function. */ #define INCLUDE_vTaskPrioritySet 1 #define INCLUDE_uxTaskPriorityGet 1 #define INCLUDE_vTaskDelete 1 #define INCLUDE_vTaskCleanUpResources 0 #define INCLUDE_vTaskSuspend 1 #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 #define INCLUDE_xTaskGetCurrentTaskHandle 1 #endif /* FREERTOS_CONFIG_H */
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.index.mapper; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexableField; import org.elasticsearch.Version; import org.elasticsearch.common.Strings; import org.elasticsearch.common.collect.Tuple; import org.elasticsearch.common.joda.FormatDateTimeFormatter; import org.elasticsearch.common.xcontent.XContentHelper; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.index.IndexSettings; import org.elasticsearch.index.mapper.DynamicTemplate.XContentFieldType; import org.elasticsearch.index.mapper.KeywordFieldMapper.KeywordFieldType; import org.elasticsearch.index.mapper.TextFieldMapper.TextFieldType; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Objects; /** A parser for documents, given mappings from a DocumentMapper */ final class DocumentParser { private final IndexSettings indexSettings; private final DocumentMapperParser docMapperParser; private final DocumentMapper docMapper; DocumentParser(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper) { this.indexSettings = indexSettings; this.docMapperParser = docMapperParser; this.docMapper = docMapper; } ParsedDocument parseDocument(SourceToParse source) throws MapperParsingException { validateType(source); final Mapping mapping = docMapper.mapping(); final ParseContext.InternalParseContext context; final XContentType xContentType = source.getXContentType(); try (XContentParser parser = XContentHelper.createParser(docMapperParser.getXContentRegistry(), source.source(), xContentType)) { context = new ParseContext.InternalParseContext(indexSettings.getSettings(), docMapperParser, docMapper, source, parser); validateStart(parser); internalParseDocument(mapping, context, parser); validateEnd(parser); } catch (Exception e) { throw wrapInMapperParsingException(source, e); } String remainingPath = context.path().pathAsText(""); if (remainingPath.isEmpty() == false) { throw new IllegalStateException("found leftover path elements: " + remainingPath); } reverseOrder(context); return parsedDocument(source, context, createDynamicUpdate(mapping, docMapper, context.getDynamicMappers())); } private static void internalParseDocument(Mapping mapping, ParseContext.InternalParseContext context, XContentParser parser) throws IOException { final boolean emptyDoc = isEmptyDoc(mapping, parser); for (MetadataFieldMapper metadataMapper : mapping.metadataMappers) { metadataMapper.preParse(context); } if (mapping.root.isEnabled() == false) { // entire type is disabled parser.skipChildren(); } else if (emptyDoc == false) { parseObjectOrNested(context, mapping.root); } for (MetadataFieldMapper metadataMapper : mapping.metadataMappers) { metadataMapper.postParse(context); } } private void validateType(SourceToParse source) { if (docMapper.type().equals(MapperService.DEFAULT_MAPPING)) { throw new IllegalArgumentException("It is forbidden to index into the default mapping [" + MapperService.DEFAULT_MAPPING + "]"); } if (Objects.equals(source.type(), docMapper.type()) == false) { throw new MapperParsingException("Type mismatch, provide type [" + source.type() + "] but mapper is of type [" + docMapper.type() + "]"); } } private static void validateStart(XContentParser parser) throws IOException { // will result in START_OBJECT XContentParser.Token token = parser.nextToken(); if (token != XContentParser.Token.START_OBJECT) { throw new MapperParsingException("Malformed content, must start with an object"); } } private static void validateEnd(XContentParser parser) throws IOException { XContentParser.Token token;// only check for end of tokens if we created the parser here // try to parse the next token, this should be null if the object is ended properly // but will throw a JSON exception if the extra tokens is not valid JSON (this will be handled by the catch) token = parser.nextToken(); if (token != null) { throw new IllegalArgumentException("Malformed content, found extra data after parsing: " + token); } } private static boolean isEmptyDoc(Mapping mapping, XContentParser parser) throws IOException { if (mapping.root.isEnabled()) { final XContentParser.Token token = parser.nextToken(); if (token == XContentParser.Token.END_OBJECT) { // empty doc, we can handle it... return true; } else if (token != XContentParser.Token.FIELD_NAME) { throw new MapperParsingException("Malformed content, after first object, either the type field or the actual properties should exist"); } } return false; } private static void reverseOrder(ParseContext.InternalParseContext context) { // reverse the order of docs for nested docs support, parent should be last if (context.docs().size() > 1) { Collections.reverse(context.docs()); } } private static ParsedDocument parsedDocument(SourceToParse source, ParseContext.InternalParseContext context, Mapping update) { return new ParsedDocument( context.version(), context.seqID(), context.sourceToParse().id(), context.sourceToParse().type(), source.routing(), context.docs(), context.sourceToParse().source(), context.sourceToParse().getXContentType(), update ).parent(source.parent()); } private static MapperParsingException wrapInMapperParsingException(SourceToParse source, Exception e) { // if its already a mapper parsing exception, no need to wrap it... if (e instanceof MapperParsingException) { return (MapperParsingException) e; } // Throw a more meaningful message if the document is empty. if (source.source() != null && source.source().length() == 0) { return new MapperParsingException("failed to parse, document is empty"); } return new MapperParsingException("failed to parse", e); } private static String[] splitAndValidatePath(String fullFieldPath) { if (fullFieldPath.contains(".")) { String[] parts = fullFieldPath.split("\\."); for (String part : parts) { if (Strings.hasText(part) == false) { throw new IllegalArgumentException( "object field starting or ending with a [.] makes object resolution ambiguous: [" + fullFieldPath + "]"); } } return parts; } else { if (Strings.isEmpty(fullFieldPath)) { throw new IllegalArgumentException("field name cannot be an empty string"); } return new String[] {fullFieldPath}; } } /** Creates a Mapping containing any dynamically added fields, or returns null if there were no dynamic mappings. */ static Mapping createDynamicUpdate(Mapping mapping, DocumentMapper docMapper, List<Mapper> dynamicMappers) { if (dynamicMappers.isEmpty()) { return null; } // We build a mapping by first sorting the mappers, so that all mappers containing a common prefix // will be processed in a contiguous block. When the prefix is no longer seen, we pop the extra elements // off the stack, merging them upwards into the existing mappers. Collections.sort(dynamicMappers, (Mapper o1, Mapper o2) -> o1.name().compareTo(o2.name())); Iterator<Mapper> dynamicMapperItr = dynamicMappers.iterator(); List<ObjectMapper> parentMappers = new ArrayList<>(); Mapper firstUpdate = dynamicMapperItr.next(); parentMappers.add(createUpdate(mapping.root(), splitAndValidatePath(firstUpdate.name()), 0, firstUpdate)); Mapper previousMapper = null; while (dynamicMapperItr.hasNext()) { Mapper newMapper = dynamicMapperItr.next(); if (previousMapper != null && newMapper.name().equals(previousMapper.name())) { // We can see the same mapper more than once, for example, if we had foo.bar and foo.baz, where // foo did not yet exist. This will create 2 copies in dynamic mappings, which should be identical. // Here we just skip over the duplicates, but we merge them to ensure there are no conflicts. newMapper.merge(previousMapper, false); continue; } previousMapper = newMapper; String[] nameParts = splitAndValidatePath(newMapper.name()); // We first need the stack to only contain mappers in common with the previously processed mapper // For example, if the first mapper processed was a.b.c, and we now have a.d, the stack will contain // a.b, and we want to merge b back into the stack so it just contains a int i = removeUncommonMappers(parentMappers, nameParts); // Then we need to add back mappers that may already exist within the stack, but are not on it. // For example, if we processed a.b, followed by an object mapper a.c.d, and now are adding a.c.d.e // then the stack will only have a on it because we will have already merged a.c.d into the stack. // So we need to pull a.c, followed by a.c.d, onto the stack so e can be added to the end. i = expandCommonMappers(parentMappers, nameParts, i); // If there are still parents of the new mapper which are not on the stack, we need to pull them // from the existing mappings. In order to maintain the invariant that the stack only contains // fields which are updated, we cannot simply add the existing mappers to the stack, since they // may have other subfields which will not be updated. Instead, we pull the mapper from the existing // mappings, and build an update with only the new mapper and its parents. This then becomes our // "new mapper", and can be added to the stack. if (i < nameParts.length - 1) { newMapper = createExistingMapperUpdate(parentMappers, nameParts, i, docMapper, newMapper); } if (newMapper instanceof ObjectMapper) { parentMappers.add((ObjectMapper)newMapper); } else { addToLastMapper(parentMappers, newMapper, true); } } popMappers(parentMappers, 1, true); assert parentMappers.size() == 1; return mapping.mappingUpdate(parentMappers.get(0)); } private static void popMappers(List<ObjectMapper> parentMappers, int keepBefore, boolean merge) { assert keepBefore >= 1; // never remove the root mapper // pop off parent mappers not needed by the current mapper, // merging them backwards since they are immutable for (int i = parentMappers.size() - 1; i >= keepBefore; --i) { addToLastMapper(parentMappers, parentMappers.remove(i), merge); } } /** * Adds a mapper as an update into the last mapper. If merge is true, the new mapper * will be merged in with other child mappers of the last parent, otherwise it will be a new update. */ private static void addToLastMapper(List<ObjectMapper> parentMappers, Mapper mapper, boolean merge) { assert parentMappers.size() >= 1; int lastIndex = parentMappers.size() - 1; ObjectMapper withNewMapper = parentMappers.get(lastIndex).mappingUpdate(mapper); if (merge) { withNewMapper = parentMappers.get(lastIndex).merge(withNewMapper, false); } parentMappers.set(lastIndex, withNewMapper); } /** * Removes mappers that exist on the stack, but are not part of the path of the current nameParts, * Returns the next unprocessed index from nameParts. */ private static int removeUncommonMappers(List<ObjectMapper> parentMappers, String[] nameParts) { int keepBefore = 1; while (keepBefore < parentMappers.size() && parentMappers.get(keepBefore).simpleName().equals(nameParts[keepBefore - 1])) { ++keepBefore; } popMappers(parentMappers, keepBefore, true); return keepBefore - 1; } /** * Adds mappers from the end of the stack that exist as updates within those mappers. * Returns the next unprocessed index from nameParts. */ private static int expandCommonMappers(List<ObjectMapper> parentMappers, String[] nameParts, int i) { ObjectMapper last = parentMappers.get(parentMappers.size() - 1); while (i < nameParts.length - 1 && last.getMapper(nameParts[i]) != null) { Mapper newLast = last.getMapper(nameParts[i]); assert newLast instanceof ObjectMapper; last = (ObjectMapper) newLast; parentMappers.add(last); ++i; } return i; } /** Creates an update for intermediate object mappers that are not on the stack, but parents of newMapper. */ private static ObjectMapper createExistingMapperUpdate(List<ObjectMapper> parentMappers, String[] nameParts, int i, DocumentMapper docMapper, Mapper newMapper) { String updateParentName = nameParts[i]; final ObjectMapper lastParent = parentMappers.get(parentMappers.size() - 1); if (parentMappers.size() > 1) { // only prefix with parent mapper if the parent mapper isn't the root (which has a fake name) updateParentName = lastParent.name() + '.' + nameParts[i]; } ObjectMapper updateParent = docMapper.objectMappers().get(updateParentName); assert updateParent != null : updateParentName + " doesn't exist"; return createUpdate(updateParent, nameParts, i + 1, newMapper); } /** Build an update for the parent which will contain the given mapper and any intermediate fields. */ private static ObjectMapper createUpdate(ObjectMapper parent, String[] nameParts, int i, Mapper mapper) { List<ObjectMapper> parentMappers = new ArrayList<>(); ObjectMapper previousIntermediate = parent; for (; i < nameParts.length - 1; ++i) { Mapper intermediate = previousIntermediate.getMapper(nameParts[i]); assert intermediate != null : "Field " + previousIntermediate.name() + " does not have a subfield " + nameParts[i]; assert intermediate instanceof ObjectMapper; parentMappers.add((ObjectMapper)intermediate); previousIntermediate = (ObjectMapper)intermediate; } if (parentMappers.isEmpty() == false) { // add the new mapper to the stack, and pop down to the original parent level addToLastMapper(parentMappers, mapper, false); popMappers(parentMappers, 1, false); mapper = parentMappers.get(0); } return parent.mappingUpdate(mapper); } static void parseObjectOrNested(ParseContext context, ObjectMapper mapper) throws IOException { if (mapper.isEnabled() == false) { context.parser().skipChildren(); return; } XContentParser parser = context.parser(); XContentParser.Token token = parser.currentToken(); if (token == XContentParser.Token.VALUE_NULL) { // the object is null ("obj1" : null), simply bail return; } String currentFieldName = parser.currentName(); if (token.isValue()) { throw new MapperParsingException("object mapping for [" + mapper.name() + "] tried to parse field [" + currentFieldName + "] as object, but found a concrete value"); } ObjectMapper.Nested nested = mapper.nested(); if (nested.isNested()) { context = nestedContext(context, mapper); } // if we are at the end of the previous object, advance if (token == XContentParser.Token.END_OBJECT) { token = parser.nextToken(); } if (token == XContentParser.Token.START_OBJECT) { // if we are just starting an OBJECT, advance, this is the object we are parsing, we need the name first token = parser.nextToken(); } innerParseObject(context, mapper, parser, currentFieldName, token); // restore the enable path flag if (nested.isNested()) { nested(context, nested); } } private static void innerParseObject(ParseContext context, ObjectMapper mapper, XContentParser parser, String currentFieldName, XContentParser.Token token) throws IOException { while (token != XContentParser.Token.END_OBJECT) { if (token == XContentParser.Token.START_OBJECT) { parseObject(context, mapper, currentFieldName); } else if (token == XContentParser.Token.START_ARRAY) { parseArray(context, mapper, currentFieldName); } else if (token == XContentParser.Token.FIELD_NAME) { currentFieldName = parser.currentName(); if (MapperService.isMetadataField(context.path().pathAsText(currentFieldName))) { throw new MapperParsingException("Field [" + currentFieldName + "] is a metadata field and cannot be added inside a document. Use the index API request parameters."); } } else if (token == XContentParser.Token.VALUE_NULL) { parseNullValue(context, mapper, currentFieldName); } else if (token == null) { throw new MapperParsingException("object mapping for [" + mapper.name() + "] tried to parse field [" + currentFieldName + "] as object, but got EOF, has a concrete value been provided to it?"); } else if (token.isValue()) { parseValue(context, mapper, currentFieldName, token); } token = parser.nextToken(); } } private static void nested(ParseContext context, ObjectMapper.Nested nested) { ParseContext.Document nestedDoc = context.doc(); ParseContext.Document parentDoc = nestedDoc.getParent(); if (nested.isIncludeInParent()) { addFields(nestedDoc, parentDoc); } if (nested.isIncludeInRoot()) { ParseContext.Document rootDoc = context.rootDoc(); // don't add it twice, if its included in parent, and we are handling the master doc... if (!nested.isIncludeInParent() || parentDoc != rootDoc) { addFields(nestedDoc, rootDoc); } } } private static void addFields(ParseContext.Document nestedDoc, ParseContext.Document rootDoc) { for (IndexableField field : nestedDoc.getFields()) { if (!field.name().equals(UidFieldMapper.NAME) && !field.name().equals(TypeFieldMapper.NAME)) { rootDoc.add(field); } } } private static ParseContext nestedContext(ParseContext context, ObjectMapper mapper) { context = context.createNestedContext(mapper.fullPath()); ParseContext.Document nestedDoc = context.doc(); ParseContext.Document parentDoc = nestedDoc.getParent(); // We need to add the uid or id to this nested Lucene document too, // If we do not do this then when a document gets deleted only the root Lucene document gets deleted and // not the nested Lucene documents! Besides the fact that we would have zombie Lucene documents, the ordering of // documents inside the Lucene index (document blocks) will be incorrect, as nested documents of different root // documents are then aligned with other root documents. This will lead tothe nested query, sorting, aggregations // and inner hits to fail or yield incorrect results. if (context.mapperService().getIndexSettings().isSingleType()) { IndexableField idField = parentDoc.getField(IdFieldMapper.NAME); if (idField != null) { // We just need to store the id as indexed field, so that IndexWriter#deleteDocuments(term) can then // delete it when the root document is deleted too. if (idField.stringValue() != null) { // backward compat with 5.x // TODO: Remove on 7.0 nestedDoc.add(new Field(IdFieldMapper.NAME, idField.stringValue(), IdFieldMapper.Defaults.NESTED_FIELD_TYPE)); } else { nestedDoc.add(new Field(IdFieldMapper.NAME, idField.binaryValue(), IdFieldMapper.Defaults.NESTED_FIELD_TYPE)); } } else { throw new IllegalStateException("The root document of a nested document should have an id field"); } } else { IndexableField uidField = parentDoc.getField(UidFieldMapper.NAME); if (uidField != null) { /// We just need to store the uid as indexed field, so that IndexWriter#deleteDocuments(term) can then // delete it when the root document is deleted too. nestedDoc.add(new Field(UidFieldMapper.NAME, uidField.stringValue(), UidFieldMapper.Defaults.NESTED_FIELD_TYPE)); } else { throw new IllegalStateException("The root document of a nested document should have an uid field"); } } // the type of the nested doc starts with __, so we can identify that its a nested one in filters // note, we don't prefix it with the type of the doc since it allows us to execute a nested query // across types (for example, with similar nested objects) nestedDoc.add(new Field(TypeFieldMapper.NAME, mapper.nestedTypePathAsString(), TypeFieldMapper.Defaults.FIELD_TYPE)); return context; } private static void parseObjectOrField(ParseContext context, Mapper mapper) throws IOException { if (mapper instanceof ObjectMapper) { parseObjectOrNested(context, (ObjectMapper) mapper); } else { FieldMapper fieldMapper = (FieldMapper)mapper; Mapper update = fieldMapper.parse(context); if (update != null) { context.addDynamicMapper(update); } parseCopyFields(context, fieldMapper.copyTo().copyToFields()); } } private static void parseObject(final ParseContext context, ObjectMapper mapper, String currentFieldName) throws IOException { assert currentFieldName != null; final String[] paths = splitAndValidatePath(currentFieldName); Mapper objectMapper = getMapper(mapper, currentFieldName, paths); if (objectMapper != null) { context.path().add(currentFieldName); parseObjectOrField(context, objectMapper); context.path().remove(); } else { currentFieldName = paths[paths.length - 1]; Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, mapper); ObjectMapper parentMapper = parentMapperTuple.v2(); ObjectMapper.Dynamic dynamic = dynamicOrDefault(parentMapper, context); if (dynamic == ObjectMapper.Dynamic.STRICT) { throw new StrictDynamicMappingException(mapper.fullPath(), currentFieldName); } else if (dynamic == ObjectMapper.Dynamic.TRUE) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.OBJECT); if (builder == null) { builder = new ObjectMapper.Builder(currentFieldName).enabled(true); } Mapper.BuilderContext builderContext = new Mapper.BuilderContext(context.indexSettings(), context.path()); objectMapper = builder.build(builderContext); context.addDynamicMapper(objectMapper); context.path().add(currentFieldName); parseObjectOrField(context, objectMapper); context.path().remove(); } else { // not dynamic, read everything up to end object context.parser().skipChildren(); } for (int i = 0; i < parentMapperTuple.v1(); i++) { context.path().remove(); } } } private static void parseArray(ParseContext context, ObjectMapper parentMapper, String lastFieldName) throws IOException { String arrayFieldName = lastFieldName; final String[] paths = splitAndValidatePath(arrayFieldName); Mapper mapper = getMapper(parentMapper, lastFieldName, paths); if (mapper != null) { // There is a concrete mapper for this field already. Need to check if the mapper // expects an array, if so we pass the context straight to the mapper and if not // we serialize the array components if (mapper instanceof ArrayValueMapperParser) { parseObjectOrField(context, mapper); } else { parseNonDynamicArray(context, parentMapper, lastFieldName, arrayFieldName); } } else { arrayFieldName = paths[paths.length - 1]; lastFieldName = arrayFieldName; Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper); parentMapper = parentMapperTuple.v2(); ObjectMapper.Dynamic dynamic = dynamicOrDefault(parentMapper, context); if (dynamic == ObjectMapper.Dynamic.STRICT) { throw new StrictDynamicMappingException(parentMapper.fullPath(), arrayFieldName); } else if (dynamic == ObjectMapper.Dynamic.TRUE) { Mapper.Builder builder = context.root().findTemplateBuilder(context, arrayFieldName, XContentFieldType.OBJECT); if (builder == null) { parseNonDynamicArray(context, parentMapper, lastFieldName, arrayFieldName); } else { Mapper.BuilderContext builderContext = new Mapper.BuilderContext(context.indexSettings(), context.path()); mapper = builder.build(builderContext); assert mapper != null; if (mapper instanceof ArrayValueMapperParser) { context.addDynamicMapper(mapper); context.path().add(arrayFieldName); parseObjectOrField(context, mapper); context.path().remove(); } else { parseNonDynamicArray(context, parentMapper, lastFieldName, arrayFieldName); } } } else { // TODO: shouldn't this skip, not parse? parseNonDynamicArray(context, parentMapper, lastFieldName, arrayFieldName); } for (int i = 0; i < parentMapperTuple.v1(); i++) { context.path().remove(); } } } private static void parseNonDynamicArray(ParseContext context, ObjectMapper mapper, String lastFieldName, String arrayFieldName) throws IOException { XContentParser parser = context.parser(); XContentParser.Token token; while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) { if (token == XContentParser.Token.START_OBJECT) { parseObject(context, mapper, lastFieldName); } else if (token == XContentParser.Token.START_ARRAY) { parseArray(context, mapper, lastFieldName); } else if (token == XContentParser.Token.FIELD_NAME) { lastFieldName = parser.currentName(); } else if (token == XContentParser.Token.VALUE_NULL) { parseNullValue(context, mapper, lastFieldName); } else if (token == null) { throw new MapperParsingException("object mapping for [" + mapper.name() + "] with array for [" + arrayFieldName + "] tried to parse as array, but got EOF, is there a mismatch in types for the same field?"); } else { parseValue(context, mapper, lastFieldName, token); } } } private static void parseValue(final ParseContext context, ObjectMapper parentMapper, String currentFieldName, XContentParser.Token token) throws IOException { if (currentFieldName == null) { throw new MapperParsingException("object mapping [" + parentMapper.name() + "] trying to serialize a value with no field associated with it, current value [" + context.parser().textOrNull() + "]"); } final String[] paths = splitAndValidatePath(currentFieldName); Mapper mapper = getMapper(parentMapper, currentFieldName, paths); if (mapper != null) { parseObjectOrField(context, mapper); } else { currentFieldName = paths[paths.length - 1]; Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, parentMapper); parentMapper = parentMapperTuple.v2(); parseDynamicValue(context, parentMapper, currentFieldName, token); for (int i = 0; i < parentMapperTuple.v1(); i++) { context.path().remove(); } } } private static void parseNullValue(ParseContext context, ObjectMapper parentMapper, String lastFieldName) throws IOException { // we can only handle null values if we have mappings for them Mapper mapper = getMapper(parentMapper, lastFieldName, splitAndValidatePath(lastFieldName)); if (mapper != null) { // TODO: passing null to an object seems bogus? parseObjectOrField(context, mapper); } else if (parentMapper.dynamic() == ObjectMapper.Dynamic.STRICT) { throw new StrictDynamicMappingException(parentMapper.fullPath(), lastFieldName); } } private static Mapper.Builder<?,?> createBuilderFromFieldType(final ParseContext context, MappedFieldType fieldType, String currentFieldName) { Mapper.Builder builder = null; if (fieldType instanceof StringFieldType) { builder = context.root().findTemplateBuilder(context, currentFieldName, "string", XContentFieldType.STRING); } else if (fieldType instanceof TextFieldType) { builder = context.root().findTemplateBuilder(context, currentFieldName, "text", XContentFieldType.STRING); if (builder == null) { builder = new TextFieldMapper.Builder(currentFieldName) .addMultiField(new KeywordFieldMapper.Builder("keyword").ignoreAbove(256)); } } else if (fieldType instanceof KeywordFieldType) { builder = context.root().findTemplateBuilder(context, currentFieldName, "keyword", XContentFieldType.STRING); } else { switch (fieldType.typeName()) { case DateFieldMapper.CONTENT_TYPE: builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.DATE); break; case "long": builder = context.root().findTemplateBuilder(context, currentFieldName, "long", XContentFieldType.LONG); break; case "double": builder = context.root().findTemplateBuilder(context, currentFieldName, "double", XContentFieldType.DOUBLE); break; case "integer": builder = context.root().findTemplateBuilder(context, currentFieldName, "integer", XContentFieldType.LONG); break; case "float": builder = context.root().findTemplateBuilder(context, currentFieldName, "float", XContentFieldType.DOUBLE); break; case BooleanFieldMapper.CONTENT_TYPE: builder = context.root().findTemplateBuilder(context, currentFieldName, "boolean", XContentFieldType.BOOLEAN); break; default: break; } } if (builder == null) { Mapper.TypeParser.ParserContext parserContext = context.docMapperParser().parserContext(currentFieldName); Mapper.TypeParser typeParser = parserContext.typeParser(fieldType.typeName()); if (typeParser == null) { throw new MapperParsingException("Cannot generate dynamic mappings of type [" + fieldType.typeName() + "] for [" + currentFieldName + "]"); } builder = typeParser.parse(currentFieldName, new HashMap<>(), parserContext); } return builder; } private static Mapper.Builder<?, ?> newLongBuilder(String name, Version indexCreated) { return new NumberFieldMapper.Builder(name, NumberFieldMapper.NumberType.LONG); } private static Mapper.Builder<?, ?> newFloatBuilder(String name, Version indexCreated) { return new NumberFieldMapper.Builder(name, NumberFieldMapper.NumberType.FLOAT); } private static Mapper.Builder<?, ?> newDateBuilder(String name, FormatDateTimeFormatter dateTimeFormatter, Version indexCreated) { DateFieldMapper.Builder builder = new DateFieldMapper.Builder(name); if (dateTimeFormatter != null) { builder.dateTimeFormatter(dateTimeFormatter); } return builder; } private static Mapper.Builder<?,?> createBuilderFromDynamicValue(final ParseContext context, XContentParser.Token token, String currentFieldName) throws IOException { if (token == XContentParser.Token.VALUE_STRING) { String text = context.parser().text(); boolean parseableAsLong = false; try { Long.parseLong(text); parseableAsLong = true; } catch (NumberFormatException e) { // not a long number } boolean parseableAsDouble = false; try { Double.parseDouble(text); parseableAsDouble = true; } catch (NumberFormatException e) { // not a double number } if (parseableAsLong && context.root().numericDetection()) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.LONG); if (builder == null) { builder = newLongBuilder(currentFieldName, Version.indexCreated(context.indexSettings())); } return builder; } else if (parseableAsDouble && context.root().numericDetection()) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.DOUBLE); if (builder == null) { builder = newFloatBuilder(currentFieldName, Version.indexCreated(context.indexSettings())); } return builder; } else if (parseableAsLong == false && parseableAsDouble == false && context.root().dateDetection()) { // We refuse to match pure numbers, which are too likely to be // false positives with date formats that include eg. // `epoch_millis` or `YYYY` for (FormatDateTimeFormatter dateTimeFormatter : context.root().dynamicDateTimeFormatters()) { try { dateTimeFormatter.parser().parseMillis(text); } catch (IllegalArgumentException e) { // failure to parse this, continue continue; } Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.DATE); if (builder == null) { builder = newDateBuilder(currentFieldName, dateTimeFormatter, Version.indexCreated(context.indexSettings())); } if (builder instanceof DateFieldMapper.Builder) { DateFieldMapper.Builder dateBuilder = (DateFieldMapper.Builder) builder; if (dateBuilder.isDateTimeFormatterSet() == false) { dateBuilder.dateTimeFormatter(dateTimeFormatter); } } return builder; } } Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.STRING); if (builder == null) { builder = new TextFieldMapper.Builder(currentFieldName) .addMultiField(new KeywordFieldMapper.Builder("keyword").ignoreAbove(256)); } return builder; } else if (token == XContentParser.Token.VALUE_NUMBER) { XContentParser.NumberType numberType = context.parser().numberType(); if (numberType == XContentParser.NumberType.INT || numberType == XContentParser.NumberType.LONG) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.LONG); if (builder == null) { builder = newLongBuilder(currentFieldName, Version.indexCreated(context.indexSettings())); } return builder; } else if (numberType == XContentParser.NumberType.FLOAT || numberType == XContentParser.NumberType.DOUBLE) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.DOUBLE); if (builder == null) { // no templates are defined, we use float by default instead of double // since this is much more space-efficient and should be enough most of // the time builder = newFloatBuilder(currentFieldName, Version.indexCreated(context.indexSettings())); } return builder; } } else if (token == XContentParser.Token.VALUE_BOOLEAN) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.BOOLEAN); if (builder == null) { builder = new BooleanFieldMapper.Builder(currentFieldName); } return builder; } else if (token == XContentParser.Token.VALUE_EMBEDDED_OBJECT) { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.BINARY); if (builder == null) { builder = new BinaryFieldMapper.Builder(currentFieldName); } return builder; } else { Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, XContentFieldType.STRING); if (builder != null) { return builder; } } // TODO how do we identify dynamically that its a binary value? throw new IllegalStateException("Can't handle serializing a dynamic type with content token [" + token + "] and field name [" + currentFieldName + "]"); } private static void parseDynamicValue(final ParseContext context, ObjectMapper parentMapper, String currentFieldName, XContentParser.Token token) throws IOException { ObjectMapper.Dynamic dynamic = dynamicOrDefault(parentMapper, context); if (dynamic == ObjectMapper.Dynamic.STRICT) { throw new StrictDynamicMappingException(parentMapper.fullPath(), currentFieldName); } if (dynamic == ObjectMapper.Dynamic.FALSE) { return; } final String path = context.path().pathAsText(currentFieldName); final Mapper.BuilderContext builderContext = new Mapper.BuilderContext(context.indexSettings(), context.path()); final MappedFieldType existingFieldType = context.mapperService().fullName(path); final Mapper.Builder builder; if (existingFieldType != null) { // create a builder of the same type builder = createBuilderFromFieldType(context, existingFieldType, currentFieldName); } else { builder = createBuilderFromDynamicValue(context, token, currentFieldName); } Mapper mapper = builder.build(builderContext); if (existingFieldType != null) { // try to not introduce a conflict mapper = mapper.updateFieldType(Collections.singletonMap(path, existingFieldType)); } context.addDynamicMapper(mapper); parseObjectOrField(context, mapper); } /** Creates instances of the fields that the current field should be copied to */ private static void parseCopyFields(ParseContext context, List<String> copyToFields) throws IOException { if (!context.isWithinCopyTo() && copyToFields.isEmpty() == false) { context = context.createCopyToContext(); for (String field : copyToFields) { // In case of a hierarchy of nested documents, we need to figure out // which document the field should go to ParseContext.Document targetDoc = null; for (ParseContext.Document doc = context.doc(); doc != null; doc = doc.getParent()) { if (field.startsWith(doc.getPrefix())) { targetDoc = doc; break; } } assert targetDoc != null; final ParseContext copyToContext; if (targetDoc == context.doc()) { copyToContext = context; } else { copyToContext = context.switchDoc(targetDoc); } parseCopy(field, copyToContext); } } } /** Creates an copy of the current field with given field name and boost */ private static void parseCopy(String field, ParseContext context) throws IOException { FieldMapper fieldMapper = context.docMapper().mappers().getMapper(field); if (fieldMapper != null) { fieldMapper.parse(context); } else { // The path of the dest field might be completely different from the current one so we need to reset it context = context.overridePath(new ContentPath(0)); final String[] paths = splitAndValidatePath(field); final String fieldName = paths[paths.length-1]; Tuple<Integer, ObjectMapper> parentMapperTuple = getDynamicParentMapper(context, paths, null); ObjectMapper mapper = parentMapperTuple.v2(); parseDynamicValue(context, mapper, fieldName, context.parser().currentToken()); for (int i = 0; i < parentMapperTuple.v1(); i++) { context.path().remove(); } } } private static Tuple<Integer, ObjectMapper> getDynamicParentMapper(ParseContext context, final String[] paths, ObjectMapper currentParent) { ObjectMapper mapper = currentParent == null ? context.root() : currentParent; int pathsAdded = 0; ObjectMapper parent = mapper; for (int i = 0; i < paths.length-1; i++) { String currentPath = context.path().pathAsText(paths[i]); FieldMapper existingFieldMapper = context.docMapper().mappers().getMapper(currentPath); if (existingFieldMapper != null) { throw new MapperParsingException( "Could not dynamically add mapping for field [{}]. Existing mapping for [{}] must be of type object but found [{}].", null, String.join(".", paths), currentPath, existingFieldMapper.fieldType.typeName()); } mapper = context.docMapper().objectMappers().get(currentPath); if (mapper == null) { // One mapping is missing, check if we are allowed to create a dynamic one. ObjectMapper.Dynamic dynamic = dynamicOrDefault(parent, context); switch (dynamic) { case STRICT: throw new StrictDynamicMappingException(parent.fullPath(), paths[i]); case TRUE: Mapper.Builder builder = context.root().findTemplateBuilder(context, paths[i], XContentFieldType.OBJECT); if (builder == null) { builder = new ObjectMapper.Builder(paths[i]).enabled(true); } Mapper.BuilderContext builderContext = new Mapper.BuilderContext(context.indexSettings(), context.path()); mapper = (ObjectMapper) builder.build(builderContext); if (mapper.nested() != ObjectMapper.Nested.NO) { throw new MapperParsingException("It is forbidden to create dynamic nested objects ([" + context.path().pathAsText(paths[i]) + "]) through `copy_to` or dots in field names"); } context.addDynamicMapper(mapper); break; case FALSE: // Should not dynamically create any more mappers so return the last mapper return new Tuple<>(pathsAdded, parent); } } context.path().add(paths[i]); pathsAdded++; parent = mapper; } return new Tuple<>(pathsAdded, mapper); } // find what the dynamic setting is given the current parse context and parent private static ObjectMapper.Dynamic dynamicOrDefault(ObjectMapper parentMapper, ParseContext context) { ObjectMapper.Dynamic dynamic = parentMapper.dynamic(); while (dynamic == null) { int lastDotNdx = parentMapper.name().lastIndexOf('.'); if (lastDotNdx == -1) { // no dot means we the parent is the root, so just delegate to the default outside the loop break; } String parentName = parentMapper.name().substring(0, lastDotNdx); parentMapper = context.docMapper().objectMappers().get(parentName); if (parentMapper == null) { // If parentMapper is ever null, it means the parent of the current mapper was dynamically created. // But in order to be created dynamically, the dynamic setting of that parent was necessarily true return ObjectMapper.Dynamic.TRUE; } dynamic = parentMapper.dynamic(); } if (dynamic == null) { return context.root().dynamic() == null ? ObjectMapper.Dynamic.TRUE : context.root().dynamic(); } return dynamic; } // looks up a child mapper, but takes into account field names that expand to objects private static Mapper getMapper(ObjectMapper objectMapper, String fieldName, String[] subfields) { for (int i = 0; i < subfields.length - 1; ++i) { Mapper mapper = objectMapper.getMapper(subfields[i]); if (mapper == null || (mapper instanceof ObjectMapper) == false) { return null; } objectMapper = (ObjectMapper)mapper; if (objectMapper.nested().isNested()) { throw new MapperParsingException("Cannot add a value for field [" + fieldName + "] since one of the intermediate objects is mapped as a nested object: [" + mapper.name() + "]"); } } return objectMapper.getMapper(subfields[subfields.length - 1]); } }
We launched our initial project and our first product was created. We sold the rights entirely to a company that bought it with the intention to sell it. This time we started working on our own product which we considered selling ourselves. This is when we were faced with the issue of the freelancer payments. We designed the token and put forward the idea of a new payment system for our developers. In the process, the idea for dividends cropped up as well. The date planned date of the first ICO sale which will boost our business and get many new people involved. In early May, we shall make the first payments to our developers in ZAN Coins. We have another product in the pipeline and it would be out in July. Our intention is to convert the sales into ZAN coins and start distributing the profits accordingly. The first open, industry standard for sharing career histories!
Controversial film director Michael Moore now claims that Republicans who once strongly opposed his political point of view are warming up to him, even hugging him in public. “If you were to hang out with me here it won’t be five or 10 minutes before you see a Republican hug me. That is almost as entertaining as some of the films,” Moore told Reuters. The liberal activist and political lightning rod hasn’t changed his claim from his 2004 documentary “Fahrenheit 9/11” in which he alleges President Bush misled Americans about the reasons to send U.S. troops to Iraq. But he says more people are now viewing the situation like he does. “That’s the shift that I’m seeing in the past year or so in the country, and as it relates to me,” he said. Moore says some people in solidly Republican northern Michigan and elsewhere have re-evaluated their position, and now believe they made a “colossal mistake” in strongly supporting the war at its outset. The director, who has become accustomed to traveling with security and experiencing hostile encounters, says some Republicans are spontaneously embracing him these days. In 2003, Moore was booed and escorted from the Kodak Theater by security when he used his Academy Award acceptance speech for his “Bowling for Columbine” documentary to lash out at Bush.
This past weekend I had the opportunity to attend and speak at SXSW’s Interactive Festival for the first time. After hearing about SXSW for some many years, it was interesting to see what the conference was all about. I’m not sure I’ll attend SXSW again. Don’t get me wrong. I enjoyed the conference in many ways. I got to see friends that I haven’t seen in months. I met people that I’ve always wanted to meet. I had fun speaking with people about the iPad, and it was great to experience Mobile Monday in another city. Austin is an amazing city. I had a blast in the city, and I feel like I saw and experienced more of the city than I typically do at conferences. Unfortunately with a few notable exceptions, the conference itself was not terribly good. I’m not sure why this is. I have read others talking about how this conference was worse than previous ones. It saddens me to think that when I finally manage to attend the reknowned SXSW, that it has jumped the shark. But it appears that may be case. One of the main problems in my opinion is the dominance of panels at the conference. I find panels to be of lower quality overall than presentations by a solo presenter. I’m not sure why SXSW has so many panels, but I have a few generous and not so generous theories. The generous theory is that SXSW values the input of the community. It starts with allowing anyone to vote for session, continues with selection of panels, and is demonstrated by their core conversation sessions designed to foster discussion instead of presentations. The less generous theory is that people propose panels solely to get free passes for themselves and their friends. I was told essentially that on my return trip to the airport. I took a shuttle and bumped into a friend. He asked what I thought of the conference, and I lamented the fact that the sessions had been so poor. Two of the other passengers in the shuttle told me that my mistake was that I didn’t get a pass for the conference. They didn’t know that I was a speaker at the conference so they proceeded to tell me how I needed to get on a panel so that I could get a free pass. Then they laughed about how once you have a pass and are on a panel, you don’t have to prepare anything. You just roll into your panel, answer questions, and then use your pass to network and party. I was extremely offended. I couldn’t believe that they could have such disrespect for people’s time and money. Even though I only had four minutes to present during my panel, I started researching as soon as I knew I was going to be on the panel. I had several pages of notes in addition to my slides. I decided to hack the format to make the panel more interesting by treating my presentation like an Ignite talk which meant I had to practice extensively to get the timing right. I also set up a script to tweet background information during my presentation. And I wasn’t the only one. Everyone on our panel took it seriously. We prepared ahead of time. The audience response to our session was great. I know a lot of people don’t attend conferences for the sessions. My friend Aaron Hockley’s recap of SXSW is talks about how the value of conferences is not the sessions, but in the connections that are made. I agree with Aaron that tremendous value comes from the connections, but that’s no excuse for treating the people who attend your session poorly and wasting their time. The contrast between the attitude of the fellow passengers on my shuttle and the work that Jay Rosen and his fellow panelists put into their SXSW session couldn’t be starker. In fact, it seems completely inappropriate that those who treat SXSW panels so disrespectfully should be able to share the metaphorical stage with Rosen and others who take the conference seriously. The attitude that some have towards SXSW reflects poorly on those of us who take our roles as speakers and educators in the technology community seriously. I don’t know if this is a pervasive attitude of speakers at SXSW, but I can say that the quality of content way not what I expected. I expected to be inspired as Jeremy Keith was. That’s what I want from any conference. Perhaps I just picked sessions poorly, but instead of being inspired, my final and lasting impression was of a conference that didn’t deliver. SXSW this year did seem to have jumped the shark, it was far less inspiring than previously, far lower quality of sessions it seemed, and this is coming from another person who received a free pass (and prepared!). I’ll agree on the panels too, even during the panel picker process the SXSW team really discouraged submitting large panels because people respond so negatively to them, it was really disappointing that so many ended up in the schedule anyway. Wow. Your conversation on the airport shuttle sure explains some things. I attended two panels at SXSW that I thought featured well-prepared and well-selected speakers. One was the “Artist or Millionaire: Why not Both?” and the other was the iPad panel of which you were a member. Both of those sessions showed presenters which had obviously prepared and a moderator that kept things moving in a productive direction. Sadly, I also attended several very poorly-organized and moderated panels which could’ve been the result of folks like you encountered on your way to the airport. This was also my first SXSW. I didn’t see a conference that overall made it worth my time to buy a conference pass next year. There were some bright spots, but the overall lack of quality and consistency was very disappointing. I’ll likely be back in Austin next year to connect, but right now I predict I’ll be doing it without a badge. I’m saddened to hear that you won’t be coming back next year and even more saddened to hear about the DBs who are out there gaming the system just to “party”. I personally found your panel to be the most interesting of those I attended during the week as I have an aggressive interest in the next generation of storytelling and the implications the iPad will have on it. This was my first SXSW and the advice I was given by an old friend before attending turned out to be very close to perfect. Attend only a small handful of panels which cover the topics that you are achingly passionate about, then network every other minute of your day. The numerous high-level discussions on futurism, tech, mobile, etc. that I got into with random people in line for coffee, at the community lunch tables, the charging area, the blogger’s lounge and the parties were the highlight of my trip and the panels became a nice knowledge enhancement. Hopefully between now and next year’s conference you will not only change your mind about attending, but you will be hosting a panel that is even better than the one you put together this year. Thank you for your efforts, there are those of us who are grateful!!
Attend these coach and employer liaison-led sessions to share your thoughts and experiences with fellow job seekers, develop your job search skills and hear about current opportunities. 9:30 a.m. - 10:30 a.m. You must be a registered client to attend Job Club. To register, contact the Conestoga College Career Centre at 519-885-0300 ext. 5226.
Everton Football Club have enjoyed their most progressive summer in decades. Things are looking up for the blues, with new signings in and a new stadium on the horizon of the city’s world class waterfront. But bringing back Wayne Rooney? No matter what happens on the pitch, that’s a regressive step. By Alan O’Hare. Remember the name? I’ve never forgotten it. Wayne Rooney submitted a transfer request to Everton Football Club in August 2004 and walked straight into Manchester United folklore. The facts are unarguable: five Premier League titles, a Champions League triumph, an FA Cup winner’s medal, a Europa League victory and three league cup successes. Throw in becoming the all-time top scorer of United and England and we’re talking a statue outside of Old Trafford probably in his lifetime. These days, though, it’s not all about what happens on the pitch. During his time away from the blues, Rooney was forced to offer a formal apology in court to David Moyes following the publication of his autobiography; held United and Alex Ferguson to ransom whilst flirting with main rivals Manchester City; made his way to the front of the nation’s tabloids thanks to many allegations of infidelity; was sued by the Proactive agency for withholding millions after leaving the company with agent Paul Stretford (Proactive were eventually awarded £90,000 restitution) and… well, you get the picture. The point? Everton have lost more than they have gained in bringing Rooney back. Two more instances, in the weeks since his return, have also brought an unmistakable stench to Goodison Park: the snub given to England manager Gareth Southgate in waiting to be asked back to announce his retirement publicly and being arrested for driving over the prescribed alcohol limit. The latter, clearly, is unforgivable. EFC have a great reputation within and outside the football world for the way they conduct themselves in the wider community – the reason blues have become so attached to the ‘People’s Club’ and ‘born not manufactured’ folklore is that where the club come up short to their main rivals across the park and up the M62 in the honours’ lists, they leave the rest standing when it comes to giving back to the people and geography that remain the catalysts for their existence. Bringing Rooney back as a hero continues to threaten that. In a football sense, it’s an admission of second best and an acceptance of the status quo. Sure, he’s still a very good footballer, but who else was in for him above Everton in the league? Why were United prepared to let him go without a fight? Why didn’t Chelsea nip in for him to replace Diego Costa short-term? Because his best days are well behind him. And whilst he may arguably offer as much as Ross Barkley, he’s not in Romelu Lukaku’s league… and it’s goals Everton are currently crying out for. I’ve read all about the ‘experience’ and ‘wisdom’ he’ll bring to the youngsters, but surely his latest off-the-field activity puts paid to that nonsense. In football terms, signing Rooney was the least progressive move of Everton’s most forward-thinking summer in decades. Off the field? I don’t know where to start. Well, there is one place… the front page of The Sun newspaper. It was 2004 when Rooney made the decision to give The Sun the nod to publish exclusive extracts from his then-upcoming autobiography (there’s been about four, give or take the odd re-release, since). Fans now insist that the player was badly advised about HIS decision, but that’s naive at best and desperate at worst. Rooney also allowed himself to be used (and quoted) that week in the newspaper’s attempt to discredit rivals Trinity Mirror and gain acceptance for the pathetic apology it was then-peddling for the contemptible Hillsborough slurs they’d perpetuated since 1989 (read more from HJC at the time, here). It’s worth noting, too, that Wayne Rooney has never apologised for – or acknowledged – this whole debacle in public, either. Why? You can draw your own conclusions – about £250,000 of them, allegedly. Rooney has looked after number one and divided opinion in the dog-eat-dog world of football since he launched himself at Steve Vickers in late December 2002 and got himself his first red card. Some might say “good on him” and some might call him a selfish. Whatever… football is a game of opinions and not one fan or interested observer (aren’t they the same things these days, really?) can influence what he does on the pitch. But we can influence our football clubs – and the reaction of the majority of Evertonians to Rooney’s return has depressed me. I keep wanting to write something purely about football to offer an olive branch to those who are happy to see him back. But, you know what, it’s not important enough. The courage of your convictions (no pun intended) are what matters in this life and whilst Wayne Rooney shows plenty of courage on the pitch, he has shown none elsewhere throughout his career. The measure of the man? It’s marked in money. And I can’t ignore the colour of The Sun’s. Remember the name? I’ve never forgiven it. First of all, whilst I admire efc's work in the community, they are no more or less the 'peoples CLUB' than LFC or any other club, as for ROONEY, is anyone surprised? He'll never change, I feel for his wife and children, imagine the stick his boys will get in SCHOOL, as far as the football goes, he wouldn't get in the starting eleven at any of the clubs with title aspirations. not sure about progressive? Results so far don't show it! A very good article re Rooney but the person who should be blamed for all the 'BAGgage' that comes with Rooney is Koeman (sic). As soon as it was known lukaku was off he should have been looking for someone of the same I'lk, someone like (and thankfully not!) Mousa dembele. So you wouldn't have had to write this column, great though it is, but for terrible judgement from your manager!
Want to ask a question or make a comment in real time during the LIVE hangout? Use these hashtags #lafashionbloggers #liplacelattes or tweet us directly at @liplacelattes. You might get a special shout out for tuning in! Read and watch the behind the scenes video about the Summer Look Book Photo Shoot here. For more information about our collaboration with LA Fashion Bloggers and Google click here. UPDATE: Missed the Hangout?? Watch it below!
El Segundo. Northrop Grumman Corp. named Cynthia Curiel vice president for communications at its El Segundo-based Aerospace Systems sector. Curiel will report directly to Gary Ervin, corporate vice president and president of Aerospace Systems. Previously, Curiel served as deputy director of communications for Northrop’s former Integrated Systems sector. Torrance. Toyota Motor Sales USA, the Japanese carmaker’s U.S. sales and marketing headquarters, named John G. McCandless as national manager of field operations for communications. A longtime public relations professional on the automotive scene in Detroit, McCandless is now responsibile for corporate communications and community relations activities for Toyota’s seven regional public relations field offices . He will continue to be based in Detroit. Harbor Gateway. The board of directors of Torrance area coffee roaster Farmer Bros. Co. elected executives to two newly created positions. Heidi L. Modaro is now vice president of sales and operations for coffee and tea. Hortensia R. Gomez is now vice president and controller.
<h1><?php echo lang('index_heading');?></h1> <p><?php echo lang('index_subheading');?></p> <div id="infoMessage"><?php echo $message;?></div> <table cellpadding=0 cellspacing=10> <tr> <th><?php echo lang('index_fname_th');?></th> <th><?php echo lang('index_lname_th');?></th> <th><?php echo lang('index_email_th');?></th> <th><?php echo lang('index_groups_th');?></th> <th><?php echo lang('index_status_th');?></th> <th><?php echo lang('index_action_th');?></th> </tr> <?php foreach ($users as $user):?> <tr> <td><?php echo htmlspecialchars($user->first_name,ENT_QUOTES,'UTF-8');?></td> <td><?php echo htmlspecialchars($user->last_name,ENT_QUOTES,'UTF-8');?></td> <td><?php echo htmlspecialchars($user->email,ENT_QUOTES,'UTF-8');?></td> <td> <?php foreach ($user->groups as $group):?> <?php echo anchor("auth/edit_group/".$group->id, htmlspecialchars($group->name,ENT_QUOTES,'UTF-8')) ;?><br /> <?php endforeach?> </td> <td><?php echo ($user->active) ? anchor("auth/deactivate/".$user->id, lang('index_active_link')) : anchor("auth/activate/". $user->id, lang('index_inactive_link'));?></td> <td><?php echo anchor("auth/edit_user/".$user->id, 'Edit') ;?></td> </tr> <?php endforeach;?> </table> <p><?php echo anchor('auth/create_user', lang('index_create_user_link'))?> | <?php echo anchor('auth/create_group', lang('index_create_group_link'))?> | <?php echo anchor('auth/logout', "logout")?></p>
// { dg-options "-std=gnu++1y" } // { dg-do run } // Copyright (C) 2013-2014 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a moved_to of the GNU General Public License along // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. #include <experimental/optional> #include <testsuite_hooks.h> struct tracker { tracker(int value) : value(value) { ++count; } ~tracker() { --count; } tracker(tracker const& other) : value(other.value) { ++count; } tracker(tracker&& other) : value(other.value) { other.value = -1; ++count; } tracker& operator=(tracker const&) = default; tracker& operator=(tracker&&) = default; int value; static int count; }; int tracker::count = 0; struct exception { }; struct throwing_move { throwing_move() = default; throwing_move(throwing_move const&) { throw exception {}; } }; int main() { // [20.5.4.1] Constructors { std::experimental::optional<long> o; auto moved_to = std::move(o); VERIFY( !moved_to ); VERIFY( !o ); } { const long val = 0x1234ABCD; std::experimental::optional<long> o { std::experimental::in_place, val}; auto moved_to = std::move(o); VERIFY( moved_to ); VERIFY( *moved_to == val ); VERIFY( o && *o == val ); } { std::experimental::optional<tracker> o; auto moved_to = std::move(o); VERIFY( !moved_to ); VERIFY( tracker::count == 0 ); VERIFY( !o ); } { std::experimental::optional<tracker> o { std::experimental::in_place, 333 }; auto moved_to = std::move(o); VERIFY( moved_to ); VERIFY( moved_to->value == 333 ); VERIFY( tracker::count == 2 ); VERIFY( o && o->value == -1 ); } enum outcome { nothrow, caught, bad_catch }; { outcome result = nothrow; std::experimental::optional<throwing_move> o; try { auto moved_to = std::move(o); } catch(exception const&) { result = caught; } catch(...) { result = bad_catch; } VERIFY( result == nothrow ); } { outcome result = nothrow; std::experimental::optional<throwing_move> o { std::experimental::in_place }; try { auto moved_to = std::move(o); } catch(exception const&) { result = caught; } catch(...) { result = bad_catch; } VERIFY( result == caught ); } VERIFY( tracker::count == 0 ); }
Share and Download Nature Picture fo free from BDFjade. Huge selection of Nature Picture and images for Windows, Mac OS and Mobile gadgets. Wallpapers are under the CC0 license and absolutelly free.
require 'spec_helper' describe "the signin process", :type => :feature do it "signs me is reachable" do visit '/en/users/sign_in' assert true end it "signs me in", :js => true do user1 = FactoryGirl.create(:user) #, email: "[email protected]") # user2 = FactoryGirl.create(:user, email: user1.email) #user.save # puts (user.password) # puts (user.username) # puts (User.all.first.username) visit '/en/users/sign_in' within("#new_user") do fill_in "user_email", :with => user1.email fill_in "user_password", :with => user1.password end click_button "Sign in" assert true end end
It's an all-out war! With grilling season here, which type of burger should you be tossing on the barbecue? Ground turkey has a reputation for being a very lean meat, but that's only the case if you choose ground turkey breast. Unless otherwise specified, the dark turkey meat and skin gets mixed in with the light making it fattier than you may think. A 4-ounce cooked turkey burger (made from a combo of dark and light meat) has 193 calories, 11 grams of fat, 3 grams of saturated fat and 22 grams of protein. It's an excellent source of niacin and selenium and a good source of vitamin B6, phosphorus and zinc. Choosing ground turkey made from only breast will have 150 calories, 1.5 grams of fat, and 0 grams saturated fat. Since it's so lean, it can end up being too dry and not-so-tasty. Undercooked ground turkey has been associated with salmonella, so make sure your turkey burger is safe to eat by cooking it to 165 degrees Fahrenheit. Check that the proper temperature is reached by using a thermometer. You can definitely find lean cuts of ground beef on market shelves. Look for ground sirloin or ground beef that is 90% lean. For a 4-ounce cooked lean beef burger you'll take in around 225 calories, 12 grams of fat, 5 gram of saturated fat and 27 grams of protein. It's an excellent source of niacin, vitamin B12, zinc and selenium and a good source of vitamin B6, iron and phosphorus. Fattier ground beef is all over store shelves, so be sure to read labels carefully. Undercooked ground beef has been associated with the bacteria E. Coli, so make sure your beef burger is safe to eat by cooking it to 160 degrees Fahrenheit. This is a good time to choose a whole-grain bun to help meet the USDA's Dietary Guidelines to make half your daily grains whole. Choose a whole wheat bun, or if you're trying to cut calories go for half a bun, English muffin or wrap your burger in a lettuce leaf. Pile high the veggie toppings like lettuce, tomatoes, and onions or add some extra flavor by grilling onions and mushrooms in a teaspoon of oil. If you're a cheeseburger lover, stick with one slice of cheese or you'll send the calories and sodium through the roof. Also be mindful with condiments like catchup, mayo, and barbecue sauce because of the extra fat and sugar and keep portions to 1 tablespoon. Healthy Eats Winner: A cookout just wouldn't be the same without a good old beef burger. The calories between the two burgers aren't significantly different. Buying turkey can be tricky and if you aren't careful, it can actually have much higher fat and calories than you think. Whichever type of burger you choose, keep cooked patties at 4-ounces with modestly portioned toppings to make it healthy eats. Want to try the recipes in the photo on top? TELL US: Who gets your vote: turkey burger or beef burger? This week, we zone in on the classic summer burger — juicy, beefy and cooked on the grill. Who made it best: Aarti or Marc? Check out Food Network’s top five turkey burger recipes, each with a different tasty twist and all go-to main dishes for your weekend cookout spread. Food Network Magazine wants to know how America grills. Katie Cavuto Boyle teaches you the right way to cook fish on the grill and shares some healthy recipes for grilled fish.
I calculated the clearances according to 5.4.2.1 and got the highest value according to Procedure 1. Now I want to find the test voltage from Table 16. Can I use 5.4.2.3.2.5 for decreasing the required withstand voltage to get lower test voltage?
This year, the hotel also features the music of Brian Howe, former lead singer for Bad Company, on July 11. That show starts at 7 p.m. Tickets are $22 and are available at the hotel. "Every year our crowds grow and our acts become bigger and better," said Mark Blotz, manager of the hotel. "The Parrothead party has become a huge hit with locals -- almost like a celebration to the beginning of summer."
using System; using System.Linq; using OpenSage.Content; namespace OpenSage.Gui.ControlBar { public static class ControlBarSchemeExtensions { public static ControlBarScheme FindBySide(this ScopedAssetCollection<ControlBarScheme> assetCollection, string side) { // Based on a comment in PlayerTemplate.ini about how control bar schemes are chosen. return assetCollection.FirstOrDefault(x => x.Side == side) ?? assetCollection.FirstOrDefault(x => x.Side == "Observer") ?? throw new InvalidOperationException("No ControlBarScheme could be found for the specified side, and no ControlBarScheme for the Observer side could be found either."); } } }
/******************************************************************************* Intel PRO/1000 Linux driver Copyright(c) 1999 - 2011 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. The full GNU General Public License is included in this distribution in the file called "COPYING". Contact Information: Linux NICS <[email protected]> e1000-devel Mailing List <[email protected]> Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 *******************************************************************************/ #include "e1000.h" enum e1000_mng_mode { e1000_mng_mode_none = 0, e1000_mng_mode_asf, e1000_mng_mode_pt, e1000_mng_mode_ipmi, e1000_mng_mode_host_if_only }; #define E1000_FACTPS_MNGCG 0x20000000 /* Intel(R) Active Management Technology signature */ #define E1000_IAMT_SIGNATURE 0x544D4149 /** * e1000e_get_bus_info_pcie - Get PCIe bus information * @hw: pointer to the HW structure * * Determines and stores the system bus information for a particular * network interface. The following bus information is determined and stored: * bus speed, bus width, type (PCIe), and PCIe function. **/ s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; struct e1000_bus_info *bus = &hw->bus; struct e1000_adapter *adapter = hw->adapter; u16 pcie_link_status, cap_offset; cap_offset = adapter->pdev->pcie_cap; if (!cap_offset) { bus->width = e1000_bus_width_unknown; } else { pci_read_config_word(adapter->pdev, cap_offset + PCIE_LINK_STATUS, &pcie_link_status); bus->width = (enum e1000_bus_width)((pcie_link_status & PCIE_LINK_WIDTH_MASK) >> PCIE_LINK_WIDTH_SHIFT); } mac->ops.set_lan_id(hw); return 0; } /** * e1000_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices * * @hw: pointer to the HW structure * * Determines the LAN function id by reading memory-mapped registers * and swaps the port value if requested. **/ void e1000_set_lan_id_multi_port_pcie(struct e1000_hw *hw) { struct e1000_bus_info *bus = &hw->bus; u32 reg; /* * The status register reports the correct function number * for the device regardless of function swap state. */ reg = er32(STATUS); bus->func = (reg & E1000_STATUS_FUNC_MASK) >> E1000_STATUS_FUNC_SHIFT; } /** * e1000_set_lan_id_single_port - Set LAN id for a single port device * @hw: pointer to the HW structure * * Sets the LAN function id to zero for a single port device. **/ void e1000_set_lan_id_single_port(struct e1000_hw *hw) { struct e1000_bus_info *bus = &hw->bus; bus->func = 0; } /** * e1000_clear_vfta_generic - Clear VLAN filter table * @hw: pointer to the HW structure * * Clears the register array which contains the VLAN filter table by * setting all the values to 0. **/ void e1000_clear_vfta_generic(struct e1000_hw *hw) { u32 offset; for (offset = 0; offset < E1000_VLAN_FILTER_TBL_SIZE; offset++) { E1000_WRITE_REG_ARRAY(hw, E1000_VFTA, offset, 0); e1e_flush(); } } /** * e1000_write_vfta_generic - Write value to VLAN filter table * @hw: pointer to the HW structure * @offset: register offset in VLAN filter table * @value: register value written to VLAN filter table * * Writes value at the given offset in the register array which stores * the VLAN filter table. **/ void e1000_write_vfta_generic(struct e1000_hw *hw, u32 offset, u32 value) { E1000_WRITE_REG_ARRAY(hw, E1000_VFTA, offset, value); e1e_flush(); } /** * e1000e_init_rx_addrs - Initialize receive address's * @hw: pointer to the HW structure * @rar_count: receive address registers * * Setup the receive address registers by setting the base receive address * register to the devices MAC address and clearing all the other receive * address registers to 0. **/ void e1000e_init_rx_addrs(struct e1000_hw *hw, u16 rar_count) { u32 i; u8 mac_addr[ETH_ALEN] = {0}; /* Setup the receive address */ e_dbg("Programming MAC Address into RAR[0]\n"); e1000e_rar_set(hw, hw->mac.addr, 0); /* Zero out the other (rar_entry_count - 1) receive addresses */ e_dbg("Clearing RAR[1-%u]\n", rar_count-1); for (i = 1; i < rar_count; i++) e1000e_rar_set(hw, mac_addr, i); } /** * e1000_check_alt_mac_addr_generic - Check for alternate MAC addr * @hw: pointer to the HW structure * * Checks the nvm for an alternate MAC address. An alternate MAC address * can be setup by pre-boot software and must be treated like a permanent * address and must override the actual permanent MAC address. If an * alternate MAC address is found it is programmed into RAR0, replacing * the permanent address that was installed into RAR0 by the Si on reset. * This function will return SUCCESS unless it encounters an error while * reading the EEPROM. **/ s32 e1000_check_alt_mac_addr_generic(struct e1000_hw *hw) { u32 i; s32 ret_val = 0; u16 offset, nvm_alt_mac_addr_offset, nvm_data; u8 alt_mac_addr[ETH_ALEN]; ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); if (ret_val) goto out; /* Check for LOM (vs. NIC) or one of two valid mezzanine cards */ if (!((nvm_data & NVM_COMPAT_LOM) || (hw->adapter->pdev->device == E1000_DEV_ID_82571EB_SERDES_DUAL) || (hw->adapter->pdev->device == E1000_DEV_ID_82571EB_SERDES_QUAD) || (hw->adapter->pdev->device == E1000_DEV_ID_82571EB_SERDES))) goto out; ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, &nvm_alt_mac_addr_offset); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } if ((nvm_alt_mac_addr_offset == 0xFFFF) || (nvm_alt_mac_addr_offset == 0x0000)) /* There is no Alternate MAC Address */ goto out; if (hw->bus.func == E1000_FUNC_1) nvm_alt_mac_addr_offset += E1000_ALT_MAC_ADDRESS_OFFSET_LAN1; for (i = 0; i < ETH_ALEN; i += 2) { offset = nvm_alt_mac_addr_offset + (i >> 1); ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } alt_mac_addr[i] = (u8)(nvm_data & 0xFF); alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); } /* if multicast bit is set, the alternate address will not be used */ if (is_multicast_ether_addr(alt_mac_addr)) { e_dbg("Ignoring Alternate Mac Address with MC bit set\n"); goto out; } /* * We have a valid alternate MAC address, and we want to treat it the * same as the normal permanent MAC address stored by the HW into the * RAR. Do this by mapping this address into RAR0. */ e1000e_rar_set(hw, alt_mac_addr, 0); out: return ret_val; } /** * e1000e_rar_set - Set receive address register * @hw: pointer to the HW structure * @addr: pointer to the receive address * @index: receive address array register * * Sets the receive address array register at index to the address passed * in by addr. **/ void e1000e_rar_set(struct e1000_hw *hw, u8 *addr, u32 index) { u32 rar_low, rar_high; /* * HW expects these in little endian so we reverse the byte order * from network order (big endian) to little endian */ rar_low = ((u32) addr[0] | ((u32) addr[1] << 8) | ((u32) addr[2] << 16) | ((u32) addr[3] << 24)); rar_high = ((u32) addr[4] | ((u32) addr[5] << 8)); /* If MAC address zero, no need to set the AV bit */ if (rar_low || rar_high) rar_high |= E1000_RAH_AV; /* * Some bridges will combine consecutive 32-bit writes into * a single burst write, which will malfunction on some parts. * The flushes avoid this. */ ew32(RAL(index), rar_low); e1e_flush(); ew32(RAH(index), rar_high); e1e_flush(); } /** * e1000_hash_mc_addr - Generate a multicast hash value * @hw: pointer to the HW structure * @mc_addr: pointer to a multicast address * * Generates a multicast address hash value which is used to determine * the multicast filter table array address and new table value. See * e1000_mta_set_generic() **/ static u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr) { u32 hash_value, hash_mask; u8 bit_shift = 0; /* Register count multiplied by bits per register */ hash_mask = (hw->mac.mta_reg_count * 32) - 1; /* * For a mc_filter_type of 0, bit_shift is the number of left-shifts * where 0xFF would still fall within the hash mask. */ while (hash_mask >> bit_shift != 0xFF) bit_shift++; /* * The portion of the address that is used for the hash table * is determined by the mc_filter_type setting. * The algorithm is such that there is a total of 8 bits of shifting. * The bit_shift for a mc_filter_type of 0 represents the number of * left-shifts where the MSB of mc_addr[5] would still fall within * the hash_mask. Case 0 does this exactly. Since there are a total * of 8 bits of shifting, then mc_addr[4] will shift right the * remaining number of bits. Thus 8 - bit_shift. The rest of the * cases are a variation of this algorithm...essentially raising the * number of bits to shift mc_addr[5] left, while still keeping the * 8-bit shifting total. * * For example, given the following Destination MAC Address and an * mta register count of 128 (thus a 4096-bit vector and 0xFFF mask), * we can see that the bit_shift for case 0 is 4. These are the hash * values resulting from each mc_filter_type... * [0] [1] [2] [3] [4] [5] * 01 AA 00 12 34 56 * LSB MSB * * case 0: hash_value = ((0x34 >> 4) | (0x56 << 4)) & 0xFFF = 0x563 * case 1: hash_value = ((0x34 >> 3) | (0x56 << 5)) & 0xFFF = 0xAC6 * case 2: hash_value = ((0x34 >> 2) | (0x56 << 6)) & 0xFFF = 0x163 * case 3: hash_value = ((0x34 >> 0) | (0x56 << 8)) & 0xFFF = 0x634 */ switch (hw->mac.mc_filter_type) { default: case 0: break; case 1: bit_shift += 1; break; case 2: bit_shift += 2; break; case 3: bit_shift += 4; break; } hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | (((u16) mc_addr[5]) << bit_shift))); return hash_value; } /** * e1000e_update_mc_addr_list_generic - Update Multicast addresses * @hw: pointer to the HW structure * @mc_addr_list: array of multicast addresses to program * @mc_addr_count: number of multicast addresses to program * * Updates entire Multicast Table Array. * The caller must have a packed mc_addr_list of multicast addresses. **/ void e1000e_update_mc_addr_list_generic(struct e1000_hw *hw, u8 *mc_addr_list, u32 mc_addr_count) { u32 hash_value, hash_bit, hash_reg; int i; /* clear mta_shadow */ memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); /* update mta_shadow from mc_addr_list */ for (i = 0; (u32) i < mc_addr_count; i++) { hash_value = e1000_hash_mc_addr(hw, mc_addr_list); hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); hash_bit = hash_value & 0x1F; hw->mac.mta_shadow[hash_reg] |= (1 << hash_bit); mc_addr_list += (ETH_ALEN); } /* replace the entire MTA table */ for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, hw->mac.mta_shadow[i]); e1e_flush(); } /** * e1000e_clear_hw_cntrs_base - Clear base hardware counters * @hw: pointer to the HW structure * * Clears the base hardware counters by reading the counter registers. **/ void e1000e_clear_hw_cntrs_base(struct e1000_hw *hw) { er32(CRCERRS); er32(SYMERRS); er32(MPC); er32(SCC); er32(ECOL); er32(MCC); er32(LATECOL); er32(COLC); er32(DC); er32(SEC); er32(RLEC); er32(XONRXC); er32(XONTXC); er32(XOFFRXC); er32(XOFFTXC); er32(FCRUC); er32(GPRC); er32(BPRC); er32(MPRC); er32(GPTC); er32(GORCL); er32(GORCH); er32(GOTCL); er32(GOTCH); er32(RNBC); er32(RUC); er32(RFC); er32(ROC); er32(RJC); er32(TORL); er32(TORH); er32(TOTL); er32(TOTH); er32(TPR); er32(TPT); er32(MPTC); er32(BPTC); } /** * e1000e_check_for_copper_link - Check for link (Copper) * @hw: pointer to the HW structure * * Checks to see of the link status of the hardware has changed. If a * change in link status has been detected, then we read the PHY registers * to get the current speed/duplex if link exists. **/ s32 e1000e_check_for_copper_link(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; s32 ret_val; bool link; /* * We only want to go out to the PHY registers to see if Auto-Neg * has completed and/or if our link status has changed. The * get_link_status flag is set upon receiving a Link Status * Change or Rx Sequence Error interrupt. */ if (!mac->get_link_status) return 0; /* * First we want to see if the MII Status Register reports * link. If so, then we want to get the current speed/duplex * of the PHY. */ ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); if (ret_val) return ret_val; if (!link) return ret_val; /* No link detected */ mac->get_link_status = false; /* * Check if there was DownShift, must be checked * immediately after link-up */ e1000e_check_downshift(hw); /* * If we are forcing speed/duplex, then we simply return since * we have already determined whether we have link or not. */ if (!mac->autoneg) { ret_val = -E1000_ERR_CONFIG; return ret_val; } /* * Auto-Neg is enabled. Auto Speed Detection takes care * of MAC speed/duplex configuration. So we only need to * configure Collision Distance in the MAC. */ e1000e_config_collision_dist(hw); /* * Configure Flow Control now that Auto-Neg has completed. * First, we need to restore the desired flow control * settings because we may have had to re-autoneg with a * different link partner. */ ret_val = e1000e_config_fc_after_link_up(hw); if (ret_val) e_dbg("Error configuring flow control\n"); return ret_val; } /** * e1000e_check_for_fiber_link - Check for link (Fiber) * @hw: pointer to the HW structure * * Checks for link up on the hardware. If link is not up and we have * a signal, then we need to force link up. **/ s32 e1000e_check_for_fiber_link(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; u32 rxcw; u32 ctrl; u32 status; s32 ret_val; ctrl = er32(CTRL); status = er32(STATUS); rxcw = er32(RXCW); /* * If we don't have link (auto-negotiation failed or link partner * cannot auto-negotiate), the cable is plugged in (we have signal), * and our link partner is not trying to auto-negotiate with us (we * are receiving idles or data), we need to force link up. We also * need to give auto-negotiation time to complete, in case the cable * was just plugged in. The autoneg_failed flag does this. */ /* (ctrl & E1000_CTRL_SWDPIN1) == 1 == have signal */ if ((ctrl & E1000_CTRL_SWDPIN1) && (!(status & E1000_STATUS_LU)) && (!(rxcw & E1000_RXCW_C))) { if (mac->autoneg_failed == 0) { mac->autoneg_failed = 1; return 0; } e_dbg("NOT Rx'ing /C/, disable AutoNeg and force link.\n"); /* Disable auto-negotiation in the TXCW register */ ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE)); /* Force link-up and also force full-duplex. */ ctrl = er32(CTRL); ctrl |= (E1000_CTRL_SLU | E1000_CTRL_FD); ew32(CTRL, ctrl); /* Configure Flow Control after forcing link up. */ ret_val = e1000e_config_fc_after_link_up(hw); if (ret_val) { e_dbg("Error configuring flow control\n"); return ret_val; } } else if ((ctrl & E1000_CTRL_SLU) && (rxcw & E1000_RXCW_C)) { /* * If we are forcing link and we are receiving /C/ ordered * sets, re-enable auto-negotiation in the TXCW register * and disable forced link in the Device Control register * in an attempt to auto-negotiate with our link partner. */ e_dbg("Rx'ing /C/, enable AutoNeg and stop forcing link.\n"); ew32(TXCW, mac->txcw); ew32(CTRL, (ctrl & ~E1000_CTRL_SLU)); mac->serdes_has_link = true; } return 0; } /** * e1000e_check_for_serdes_link - Check for link (Serdes) * @hw: pointer to the HW structure * * Checks for link up on the hardware. If link is not up and we have * a signal, then we need to force link up. **/ s32 e1000e_check_for_serdes_link(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; u32 rxcw; u32 ctrl; u32 status; s32 ret_val; ctrl = er32(CTRL); status = er32(STATUS); rxcw = er32(RXCW); /* * If we don't have link (auto-negotiation failed or link partner * cannot auto-negotiate), and our link partner is not trying to * auto-negotiate with us (we are receiving idles or data), * we need to force link up. We also need to give auto-negotiation * time to complete. */ /* (ctrl & E1000_CTRL_SWDPIN1) == 1 == have signal */ if ((!(status & E1000_STATUS_LU)) && (!(rxcw & E1000_RXCW_C))) { if (mac->autoneg_failed == 0) { mac->autoneg_failed = 1; return 0; } e_dbg("NOT Rx'ing /C/, disable AutoNeg and force link.\n"); /* Disable auto-negotiation in the TXCW register */ ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE)); /* Force link-up and also force full-duplex. */ ctrl = er32(CTRL); ctrl |= (E1000_CTRL_SLU | E1000_CTRL_FD); ew32(CTRL, ctrl); /* Configure Flow Control after forcing link up. */ ret_val = e1000e_config_fc_after_link_up(hw); if (ret_val) { e_dbg("Error configuring flow control\n"); return ret_val; } } else if ((ctrl & E1000_CTRL_SLU) && (rxcw & E1000_RXCW_C)) { /* * If we are forcing link and we are receiving /C/ ordered * sets, re-enable auto-negotiation in the TXCW register * and disable forced link in the Device Control register * in an attempt to auto-negotiate with our link partner. */ e_dbg("Rx'ing /C/, enable AutoNeg and stop forcing link.\n"); ew32(TXCW, mac->txcw); ew32(CTRL, (ctrl & ~E1000_CTRL_SLU)); mac->serdes_has_link = true; } else if (!(E1000_TXCW_ANE & er32(TXCW))) { /* * If we force link for non-auto-negotiation switch, check * link status based on MAC synchronization for internal * serdes media type. */ /* SYNCH bit and IV bit are sticky. */ udelay(10); rxcw = er32(RXCW); if (rxcw & E1000_RXCW_SYNCH) { if (!(rxcw & E1000_RXCW_IV)) { mac->serdes_has_link = true; e_dbg("SERDES: Link up - forced.\n"); } } else { mac->serdes_has_link = false; e_dbg("SERDES: Link down - force failed.\n"); } } if (E1000_TXCW_ANE & er32(TXCW)) { status = er32(STATUS); if (status & E1000_STATUS_LU) { /* SYNCH bit and IV bit are sticky, so reread rxcw. */ udelay(10); rxcw = er32(RXCW); if (rxcw & E1000_RXCW_SYNCH) { if (!(rxcw & E1000_RXCW_IV)) { mac->serdes_has_link = true; e_dbg("SERDES: Link up - autoneg " "completed successfully.\n"); } else { mac->serdes_has_link = false; e_dbg("SERDES: Link down - invalid" "codewords detected in autoneg.\n"); } } else { mac->serdes_has_link = false; e_dbg("SERDES: Link down - no sync.\n"); } } else { mac->serdes_has_link = false; e_dbg("SERDES: Link down - autoneg failed\n"); } } return 0; } /** * e1000_set_default_fc_generic - Set flow control default values * @hw: pointer to the HW structure * * Read the EEPROM for the default values for flow control and store the * values. **/ static s32 e1000_set_default_fc_generic(struct e1000_hw *hw) { s32 ret_val; u16 nvm_data; /* * Read and store word 0x0F of the EEPROM. This word contains bits * that determine the hardware's default PAUSE (flow control) mode, * a bit that determines whether the HW defaults to enabling or * disabling auto-negotiation, and the direction of the * SW defined pins. If there is no SW over-ride of the flow * control setting, then the variable hw->fc will * be initialized based on a value in the EEPROM. */ ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error\n"); return ret_val; } if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == 0) hw->fc.requested_mode = e1000_fc_none; else if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == NVM_WORD0F_ASM_DIR) hw->fc.requested_mode = e1000_fc_tx_pause; else hw->fc.requested_mode = e1000_fc_full; return 0; } /** * e1000e_setup_link - Setup flow control and link settings * @hw: pointer to the HW structure * * Determines which flow control settings to use, then configures flow * control. Calls the appropriate media-specific link configuration * function. Assuming the adapter has a valid link partner, a valid link * should be established. Assumes the hardware has previously been reset * and the transmitter and receiver are not enabled. **/ s32 e1000e_setup_link(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; s32 ret_val; /* * In the case of the phy reset being blocked, we already have a link. * We do not need to set it up again. */ if (e1000_check_reset_block(hw)) return 0; /* * If requested flow control is set to default, set flow control * based on the EEPROM flow control settings. */ if (hw->fc.requested_mode == e1000_fc_default) { ret_val = e1000_set_default_fc_generic(hw); if (ret_val) return ret_val; } /* * Save off the requested flow control mode for use later. Depending * on the link partner's capabilities, we may or may not use this mode. */ hw->fc.current_mode = hw->fc.requested_mode; e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); /* Call the necessary media_type subroutine to configure the link. */ ret_val = mac->ops.setup_physical_interface(hw); if (ret_val) return ret_val; /* * Initialize the flow control address, type, and PAUSE timer * registers to their default values. This is done even if flow * control is disabled, because it does not hurt anything to * initialize these registers. */ e_dbg("Initializing the Flow Control address, type and timer regs\n"); ew32(FCT, FLOW_CONTROL_TYPE); ew32(FCAH, FLOW_CONTROL_ADDRESS_HIGH); ew32(FCAL, FLOW_CONTROL_ADDRESS_LOW); ew32(FCTTV, hw->fc.pause_time); return e1000e_set_fc_watermarks(hw); } /** * e1000_commit_fc_settings_generic - Configure flow control * @hw: pointer to the HW structure * * Write the flow control settings to the Transmit Config Word Register (TXCW) * base on the flow control settings in e1000_mac_info. **/ static s32 e1000_commit_fc_settings_generic(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; u32 txcw; /* * Check for a software override of the flow control settings, and * setup the device accordingly. If auto-negotiation is enabled, then * software will have to set the "PAUSE" bits to the correct value in * the Transmit Config Word Register (TXCW) and re-start auto- * negotiation. However, if auto-negotiation is disabled, then * software will have to manually configure the two flow control enable * bits in the CTRL register. * * The possible values of the "fc" parameter are: * 0: Flow control is completely disabled * 1: Rx flow control is enabled (we can receive pause frames, * but not send pause frames). * 2: Tx flow control is enabled (we can send pause frames but we * do not support receiving pause frames). * 3: Both Rx and Tx flow control (symmetric) are enabled. */ switch (hw->fc.current_mode) { case e1000_fc_none: /* Flow control completely disabled by a software over-ride. */ txcw = (E1000_TXCW_ANE | E1000_TXCW_FD); break; case e1000_fc_rx_pause: /* * Rx Flow control is enabled and Tx Flow control is disabled * by a software over-ride. Since there really isn't a way to * advertise that we are capable of Rx Pause ONLY, we will * advertise that we support both symmetric and asymmetric Rx * PAUSE. Later, we will disable the adapter's ability to send * PAUSE frames. */ txcw = (E1000_TXCW_ANE | E1000_TXCW_FD | E1000_TXCW_PAUSE_MASK); break; case e1000_fc_tx_pause: /* * Tx Flow control is enabled, and Rx Flow control is disabled, * by a software over-ride. */ txcw = (E1000_TXCW_ANE | E1000_TXCW_FD | E1000_TXCW_ASM_DIR); break; case e1000_fc_full: /* * Flow control (both Rx and Tx) is enabled by a software * over-ride. */ txcw = (E1000_TXCW_ANE | E1000_TXCW_FD | E1000_TXCW_PAUSE_MASK); break; default: e_dbg("Flow control param set incorrectly\n"); return -E1000_ERR_CONFIG; break; } ew32(TXCW, txcw); mac->txcw = txcw; return 0; } /** * e1000_poll_fiber_serdes_link_generic - Poll for link up * @hw: pointer to the HW structure * * Polls for link up by reading the status register, if link fails to come * up with auto-negotiation, then the link is forced if a signal is detected. **/ static s32 e1000_poll_fiber_serdes_link_generic(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; u32 i, status; s32 ret_val; /* * If we have a signal (the cable is plugged in, or assumed true for * serdes media) then poll for a "Link-Up" indication in the Device * Status Register. Time-out if a link isn't seen in 500 milliseconds * seconds (Auto-negotiation should complete in less than 500 * milliseconds even if the other end is doing it in SW). */ for (i = 0; i < FIBER_LINK_UP_LIMIT; i++) { usleep_range(10000, 20000); status = er32(STATUS); if (status & E1000_STATUS_LU) break; } if (i == FIBER_LINK_UP_LIMIT) { e_dbg("Never got a valid link from auto-neg!!!\n"); mac->autoneg_failed = 1; /* * AutoNeg failed to achieve a link, so we'll call * mac->check_for_link. This routine will force the * link up if we detect a signal. This will allow us to * communicate with non-autonegotiating link partners. */ ret_val = mac->ops.check_for_link(hw); if (ret_val) { e_dbg("Error while checking for link\n"); return ret_val; } mac->autoneg_failed = 0; } else { mac->autoneg_failed = 0; e_dbg("Valid Link Found\n"); } return 0; } /** * e1000e_setup_fiber_serdes_link - Setup link for fiber/serdes * @hw: pointer to the HW structure * * Configures collision distance and flow control for fiber and serdes * links. Upon successful setup, poll for link. **/ s32 e1000e_setup_fiber_serdes_link(struct e1000_hw *hw) { u32 ctrl; s32 ret_val; ctrl = er32(CTRL); /* Take the link out of reset */ ctrl &= ~E1000_CTRL_LRST; e1000e_config_collision_dist(hw); ret_val = e1000_commit_fc_settings_generic(hw); if (ret_val) return ret_val; /* * Since auto-negotiation is enabled, take the link out of reset (the * link will be in reset, because we previously reset the chip). This * will restart auto-negotiation. If auto-negotiation is successful * then the link-up status bit will be set and the flow control enable * bits (RFCE and TFCE) will be set according to their negotiated value. */ e_dbg("Auto-negotiation enabled\n"); ew32(CTRL, ctrl); e1e_flush(); usleep_range(1000, 2000); /* * For these adapters, the SW definable pin 1 is set when the optics * detect a signal. If we have a signal, then poll for a "Link-Up" * indication. */ if (hw->phy.media_type == e1000_media_type_internal_serdes || (er32(CTRL) & E1000_CTRL_SWDPIN1)) { ret_val = e1000_poll_fiber_serdes_link_generic(hw); } else { e_dbg("No signal detected\n"); } return 0; } /** * e1000e_config_collision_dist - Configure collision distance * @hw: pointer to the HW structure * * Configures the collision distance to the default value and is used * during link setup. Currently no func pointer exists and all * implementations are handled in the generic version of this function. **/ void e1000e_config_collision_dist(struct e1000_hw *hw) { u32 tctl; tctl = er32(TCTL); tctl &= ~E1000_TCTL_COLD; tctl |= E1000_COLLISION_DISTANCE << E1000_COLD_SHIFT; ew32(TCTL, tctl); e1e_flush(); } /** * e1000e_set_fc_watermarks - Set flow control high/low watermarks * @hw: pointer to the HW structure * * Sets the flow control high/low threshold (watermark) registers. If * flow control XON frame transmission is enabled, then set XON frame * transmission as well. **/ s32 e1000e_set_fc_watermarks(struct e1000_hw *hw) { u32 fcrtl = 0, fcrth = 0; /* * Set the flow control receive threshold registers. Normally, * these registers will be set to a default threshold that may be * adjusted later by the driver's runtime code. However, if the * ability to transmit pause frames is not enabled, then these * registers will be set to 0. */ if (hw->fc.current_mode & e1000_fc_tx_pause) { /* * We need to set up the Receive Threshold high and low water * marks as well as (optionally) enabling the transmission of * XON frames. */ fcrtl = hw->fc.low_water; fcrtl |= E1000_FCRTL_XONE; fcrth = hw->fc.high_water; } ew32(FCRTL, fcrtl); ew32(FCRTH, fcrth); return 0; } /** * e1000e_force_mac_fc - Force the MAC's flow control settings * @hw: pointer to the HW structure * * Force the MAC's flow control settings. Sets the TFCE and RFCE bits in the * device control register to reflect the adapter settings. TFCE and RFCE * need to be explicitly set by software when a copper PHY is used because * autonegotiation is managed by the PHY rather than the MAC. Software must * also configure these bits when link is forced on a fiber connection. **/ s32 e1000e_force_mac_fc(struct e1000_hw *hw) { u32 ctrl; ctrl = er32(CTRL); /* * Because we didn't get link via the internal auto-negotiation * mechanism (we either forced link or we got link via PHY * auto-neg), we have to manually enable/disable transmit an * receive flow control. * * The "Case" statement below enables/disable flow control * according to the "hw->fc.current_mode" parameter. * * The possible values of the "fc" parameter are: * 0: Flow control is completely disabled * 1: Rx flow control is enabled (we can receive pause * frames but not send pause frames). * 2: Tx flow control is enabled (we can send pause frames * frames but we do not receive pause frames). * 3: Both Rx and Tx flow control (symmetric) is enabled. * other: No other values should be possible at this point. */ e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); switch (hw->fc.current_mode) { case e1000_fc_none: ctrl &= (~(E1000_CTRL_TFCE | E1000_CTRL_RFCE)); break; case e1000_fc_rx_pause: ctrl &= (~E1000_CTRL_TFCE); ctrl |= E1000_CTRL_RFCE; break; case e1000_fc_tx_pause: ctrl &= (~E1000_CTRL_RFCE); ctrl |= E1000_CTRL_TFCE; break; case e1000_fc_full: ctrl |= (E1000_CTRL_TFCE | E1000_CTRL_RFCE); break; default: e_dbg("Flow control param set incorrectly\n"); return -E1000_ERR_CONFIG; } ew32(CTRL, ctrl); return 0; } /** * e1000e_config_fc_after_link_up - Configures flow control after link * @hw: pointer to the HW structure * * Checks the status of auto-negotiation after link up to ensure that the * speed and duplex were not forced. If the link needed to be forced, then * flow control needs to be forced also. If auto-negotiation is enabled * and did not fail, then we configure flow control based on our link * partner. **/ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; s32 ret_val = 0; u16 mii_status_reg, mii_nway_adv_reg, mii_nway_lp_ability_reg; u16 speed, duplex; /* * Check for the case where we have fiber media and auto-neg failed * so we had to force link. In this case, we need to force the * configuration of the MAC to match the "fc" parameter. */ if (mac->autoneg_failed) { if (hw->phy.media_type == e1000_media_type_fiber || hw->phy.media_type == e1000_media_type_internal_serdes) ret_val = e1000e_force_mac_fc(hw); } else { if (hw->phy.media_type == e1000_media_type_copper) ret_val = e1000e_force_mac_fc(hw); } if (ret_val) { e_dbg("Error forcing flow control settings\n"); return ret_val; } /* * Check for the case where we have copper media and auto-neg is * enabled. In this case, we need to check and see if Auto-Neg * has completed, and if so, how the PHY and link partner has * flow control configured. */ if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { /* * Read the MII Status Register and check to see if AutoNeg * has completed. We read this twice because this reg has * some "sticky" (latched) bits. */ ret_val = e1e_rphy(hw, PHY_STATUS, &mii_status_reg); if (ret_val) return ret_val; ret_val = e1e_rphy(hw, PHY_STATUS, &mii_status_reg); if (ret_val) return ret_val; if (!(mii_status_reg & MII_SR_AUTONEG_COMPLETE)) { e_dbg("Copper PHY and Auto Neg " "has not completed.\n"); return ret_val; } /* * The AutoNeg process has completed, so we now need to * read both the Auto Negotiation Advertisement * Register (Address 4) and the Auto_Negotiation Base * Page Ability Register (Address 5) to determine how * flow control was negotiated. */ ret_val = e1e_rphy(hw, PHY_AUTONEG_ADV, &mii_nway_adv_reg); if (ret_val) return ret_val; ret_val = e1e_rphy(hw, PHY_LP_ABILITY, &mii_nway_lp_ability_reg); if (ret_val) return ret_val; /* * Two bits in the Auto Negotiation Advertisement Register * (Address 4) and two bits in the Auto Negotiation Base * Page Ability Register (Address 5) determine flow control * for both the PHY and the link partner. The following * table, taken out of the IEEE 802.3ab/D6.0 dated March 25, * 1999, describes these PAUSE resolution bits and how flow * control is determined based upon these settings. * NOTE: DC = Don't Care * * LOCAL DEVICE | LINK PARTNER * PAUSE | ASM_DIR | PAUSE | ASM_DIR | NIC Resolution *-------|---------|-------|---------|-------------------- * 0 | 0 | DC | DC | e1000_fc_none * 0 | 1 | 0 | DC | e1000_fc_none * 0 | 1 | 1 | 0 | e1000_fc_none * 0 | 1 | 1 | 1 | e1000_fc_tx_pause * 1 | 0 | 0 | DC | e1000_fc_none * 1 | DC | 1 | DC | e1000_fc_full * 1 | 1 | 0 | 0 | e1000_fc_none * 1 | 1 | 0 | 1 | e1000_fc_rx_pause * * Are both PAUSE bits set to 1? If so, this implies * Symmetric Flow Control is enabled at both ends. The * ASM_DIR bits are irrelevant per the spec. * * For Symmetric Flow Control: * * LOCAL DEVICE | LINK PARTNER * PAUSE | ASM_DIR | PAUSE | ASM_DIR | Result *-------|---------|-------|---------|-------------------- * 1 | DC | 1 | DC | E1000_fc_full * */ if ((mii_nway_adv_reg & NWAY_AR_PAUSE) && (mii_nway_lp_ability_reg & NWAY_LPAR_PAUSE)) { /* * Now we need to check if the user selected Rx ONLY * of pause frames. In this case, we had to advertise * FULL flow control because we could not advertise Rx * ONLY. Hence, we must now check to see if we need to * turn OFF the TRANSMISSION of PAUSE frames. */ if (hw->fc.requested_mode == e1000_fc_full) { hw->fc.current_mode = e1000_fc_full; e_dbg("Flow Control = FULL.\r\n"); } else { hw->fc.current_mode = e1000_fc_rx_pause; e_dbg("Flow Control = " "Rx PAUSE frames only.\r\n"); } } /* * For receiving PAUSE frames ONLY. * * LOCAL DEVICE | LINK PARTNER * PAUSE | ASM_DIR | PAUSE | ASM_DIR | Result *-------|---------|-------|---------|-------------------- * 0 | 1 | 1 | 1 | e1000_fc_tx_pause */ else if (!(mii_nway_adv_reg & NWAY_AR_PAUSE) && (mii_nway_adv_reg & NWAY_AR_ASM_DIR) && (mii_nway_lp_ability_reg & NWAY_LPAR_PAUSE) && (mii_nway_lp_ability_reg & NWAY_LPAR_ASM_DIR)) { hw->fc.current_mode = e1000_fc_tx_pause; e_dbg("Flow Control = Tx PAUSE frames only.\r\n"); } /* * For transmitting PAUSE frames ONLY. * * LOCAL DEVICE | LINK PARTNER * PAUSE | ASM_DIR | PAUSE | ASM_DIR | Result *-------|---------|-------|---------|-------------------- * 1 | 1 | 0 | 1 | e1000_fc_rx_pause */ else if ((mii_nway_adv_reg & NWAY_AR_PAUSE) && (mii_nway_adv_reg & NWAY_AR_ASM_DIR) && !(mii_nway_lp_ability_reg & NWAY_LPAR_PAUSE) && (mii_nway_lp_ability_reg & NWAY_LPAR_ASM_DIR)) { hw->fc.current_mode = e1000_fc_rx_pause; e_dbg("Flow Control = Rx PAUSE frames only.\r\n"); } else { /* * Per the IEEE spec, at this point flow control * should be disabled. */ hw->fc.current_mode = e1000_fc_none; e_dbg("Flow Control = NONE.\r\n"); } /* * Now we need to do one last check... If we auto- * negotiated to HALF DUPLEX, flow control should not be * enabled per IEEE 802.3 spec. */ ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); if (ret_val) { e_dbg("Error getting link speed and duplex\n"); return ret_val; } if (duplex == HALF_DUPLEX) hw->fc.current_mode = e1000_fc_none; /* * Now we call a subroutine to actually force the MAC * controller to use the correct flow control settings. */ ret_val = e1000e_force_mac_fc(hw); if (ret_val) { e_dbg("Error forcing flow control settings\n"); return ret_val; } } return 0; } /** * e1000e_get_speed_and_duplex_copper - Retrieve current speed/duplex * @hw: pointer to the HW structure * @speed: stores the current speed * @duplex: stores the current duplex * * Read the status register for the current speed/duplex and store the current * speed and duplex for copper connections. **/ s32 e1000e_get_speed_and_duplex_copper(struct e1000_hw *hw, u16 *speed, u16 *duplex) { u32 status; status = er32(STATUS); if (status & E1000_STATUS_SPEED_1000) *speed = SPEED_1000; else if (status & E1000_STATUS_SPEED_100) *speed = SPEED_100; else *speed = SPEED_10; if (status & E1000_STATUS_FD) *duplex = FULL_DUPLEX; else *duplex = HALF_DUPLEX; e_dbg("%u Mbps, %s Duplex\n", *speed == SPEED_1000 ? 1000 : *speed == SPEED_100 ? 100 : 10, *duplex == FULL_DUPLEX ? "Full" : "Half"); return 0; } /** * e1000e_get_speed_and_duplex_fiber_serdes - Retrieve current speed/duplex * @hw: pointer to the HW structure * @speed: stores the current speed * @duplex: stores the current duplex * * Sets the speed and duplex to gigabit full duplex (the only possible option) * for fiber/serdes links. **/ s32 e1000e_get_speed_and_duplex_fiber_serdes(struct e1000_hw *hw, u16 *speed, u16 *duplex) { *speed = SPEED_1000; *duplex = FULL_DUPLEX; return 0; } /** * e1000e_get_hw_semaphore - Acquire hardware semaphore * @hw: pointer to the HW structure * * Acquire the HW semaphore to access the PHY or NVM **/ s32 e1000e_get_hw_semaphore(struct e1000_hw *hw) { u32 swsm; s32 timeout = hw->nvm.word_size + 1; s32 i = 0; /* Get the SW semaphore */ while (i < timeout) { swsm = er32(SWSM); if (!(swsm & E1000_SWSM_SMBI)) break; udelay(50); i++; } if (i == timeout) { e_dbg("Driver can't access device - SMBI bit is set.\n"); return -E1000_ERR_NVM; } /* Get the FW semaphore. */ for (i = 0; i < timeout; i++) { swsm = er32(SWSM); ew32(SWSM, swsm | E1000_SWSM_SWESMBI); /* Semaphore acquired if bit latched */ if (er32(SWSM) & E1000_SWSM_SWESMBI) break; udelay(50); } if (i == timeout) { /* Release semaphores */ e1000e_put_hw_semaphore(hw); e_dbg("Driver can't access the NVM\n"); return -E1000_ERR_NVM; } return 0; } /** * e1000e_put_hw_semaphore - Release hardware semaphore * @hw: pointer to the HW structure * * Release hardware semaphore used to access the PHY or NVM **/ void e1000e_put_hw_semaphore(struct e1000_hw *hw) { u32 swsm; swsm = er32(SWSM); swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); ew32(SWSM, swsm); } /** * e1000e_get_auto_rd_done - Check for auto read completion * @hw: pointer to the HW structure * * Check EEPROM for Auto Read done bit. **/ s32 e1000e_get_auto_rd_done(struct e1000_hw *hw) { s32 i = 0; while (i < AUTO_READ_DONE_TIMEOUT) { if (er32(EECD) & E1000_EECD_AUTO_RD) break; usleep_range(1000, 2000); i++; } if (i == AUTO_READ_DONE_TIMEOUT) { e_dbg("Auto read by HW from NVM has not completed.\n"); return -E1000_ERR_RESET; } return 0; } /** * e1000e_valid_led_default - Verify a valid default LED config * @hw: pointer to the HW structure * @data: pointer to the NVM (EEPROM) * * Read the EEPROM for the current default LED configuration. If the * LED configuration is not valid, set to a valid LED configuration. **/ s32 e1000e_valid_led_default(struct e1000_hw *hw, u16 *data) { s32 ret_val; ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); if (ret_val) { e_dbg("NVM Read Error\n"); return ret_val; } if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF) *data = ID_LED_DEFAULT; return 0; } /** * e1000e_id_led_init - * @hw: pointer to the HW structure * **/ s32 e1000e_id_led_init(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; s32 ret_val; const u32 ledctl_mask = 0x000000FF; const u32 ledctl_on = E1000_LEDCTL_MODE_LED_ON; const u32 ledctl_off = E1000_LEDCTL_MODE_LED_OFF; u16 data, i, temp; const u16 led_mask = 0x0F; ret_val = hw->nvm.ops.valid_led_default(hw, &data); if (ret_val) return ret_val; mac->ledctl_default = er32(LEDCTL); mac->ledctl_mode1 = mac->ledctl_default; mac->ledctl_mode2 = mac->ledctl_default; for (i = 0; i < 4; i++) { temp = (data >> (i << 2)) & led_mask; switch (temp) { case ID_LED_ON1_DEF2: case ID_LED_ON1_ON2: case ID_LED_ON1_OFF2: mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); mac->ledctl_mode1 |= ledctl_on << (i << 3); break; case ID_LED_OFF1_DEF2: case ID_LED_OFF1_ON2: case ID_LED_OFF1_OFF2: mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); mac->ledctl_mode1 |= ledctl_off << (i << 3); break; default: /* Do nothing */ break; } switch (temp) { case ID_LED_DEF1_ON2: case ID_LED_ON1_ON2: case ID_LED_OFF1_ON2: mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); mac->ledctl_mode2 |= ledctl_on << (i << 3); break; case ID_LED_DEF1_OFF2: case ID_LED_ON1_OFF2: case ID_LED_OFF1_OFF2: mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); mac->ledctl_mode2 |= ledctl_off << (i << 3); break; default: /* Do nothing */ break; } } return 0; } /** * e1000e_setup_led_generic - Configures SW controllable LED * @hw: pointer to the HW structure * * This prepares the SW controllable LED for use and saves the current state * of the LED so it can be later restored. **/ s32 e1000e_setup_led_generic(struct e1000_hw *hw) { u32 ledctl; if (hw->mac.ops.setup_led != e1000e_setup_led_generic) return -E1000_ERR_CONFIG; if (hw->phy.media_type == e1000_media_type_fiber) { ledctl = er32(LEDCTL); hw->mac.ledctl_default = ledctl; /* Turn off LED0 */ ledctl &= ~(E1000_LEDCTL_LED0_IVRT | E1000_LEDCTL_LED0_BLINK | E1000_LEDCTL_LED0_MODE_MASK); ledctl |= (E1000_LEDCTL_MODE_LED_OFF << E1000_LEDCTL_LED0_MODE_SHIFT); ew32(LEDCTL, ledctl); } else if (hw->phy.media_type == e1000_media_type_copper) { ew32(LEDCTL, hw->mac.ledctl_mode1); } return 0; } /** * e1000e_cleanup_led_generic - Set LED config to default operation * @hw: pointer to the HW structure * * Remove the current LED configuration and set the LED configuration * to the default value, saved from the EEPROM. **/ s32 e1000e_cleanup_led_generic(struct e1000_hw *hw) { ew32(LEDCTL, hw->mac.ledctl_default); return 0; } /** * e1000e_blink_led_generic - Blink LED * @hw: pointer to the HW structure * * Blink the LEDs which are set to be on. **/ s32 e1000e_blink_led_generic(struct e1000_hw *hw) { u32 ledctl_blink = 0; u32 i; if (hw->phy.media_type == e1000_media_type_fiber) { /* always blink LED0 for PCI-E fiber */ ledctl_blink = E1000_LEDCTL_LED0_BLINK | (E1000_LEDCTL_MODE_LED_ON << E1000_LEDCTL_LED0_MODE_SHIFT); } else { /* * set the blink bit for each LED that's "on" (0x0E) * in ledctl_mode2 */ ledctl_blink = hw->mac.ledctl_mode2; for (i = 0; i < 4; i++) if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) == E1000_LEDCTL_MODE_LED_ON) ledctl_blink |= (E1000_LEDCTL_LED0_BLINK << (i * 8)); } ew32(LEDCTL, ledctl_blink); return 0; } /** * e1000e_led_on_generic - Turn LED on * @hw: pointer to the HW structure * * Turn LED on. **/ s32 e1000e_led_on_generic(struct e1000_hw *hw) { u32 ctrl; switch (hw->phy.media_type) { case e1000_media_type_fiber: ctrl = er32(CTRL); ctrl &= ~E1000_CTRL_SWDPIN0; ctrl |= E1000_CTRL_SWDPIO0; ew32(CTRL, ctrl); break; case e1000_media_type_copper: ew32(LEDCTL, hw->mac.ledctl_mode2); break; default: break; } return 0; } /** * e1000e_led_off_generic - Turn LED off * @hw: pointer to the HW structure * * Turn LED off. **/ s32 e1000e_led_off_generic(struct e1000_hw *hw) { u32 ctrl; switch (hw->phy.media_type) { case e1000_media_type_fiber: ctrl = er32(CTRL); ctrl |= E1000_CTRL_SWDPIN0; ctrl |= E1000_CTRL_SWDPIO0; ew32(CTRL, ctrl); break; case e1000_media_type_copper: ew32(LEDCTL, hw->mac.ledctl_mode1); break; default: break; } return 0; } /** * e1000e_set_pcie_no_snoop - Set PCI-express capabilities * @hw: pointer to the HW structure * @no_snoop: bitmap of snoop events * * Set the PCI-express register to snoop for events enabled in 'no_snoop'. **/ void e1000e_set_pcie_no_snoop(struct e1000_hw *hw, u32 no_snoop) { u32 gcr; if (no_snoop) { gcr = er32(GCR); gcr &= ~(PCIE_NO_SNOOP_ALL); gcr |= no_snoop; ew32(GCR, gcr); } } /** * e1000e_disable_pcie_master - Disables PCI-express master access * @hw: pointer to the HW structure * * Returns 0 if successful, else returns -10 * (-E1000_ERR_MASTER_REQUESTS_PENDING) if master disable bit has not caused * the master requests to be disabled. * * Disables PCI-Express master access and verifies there are no pending * requests. **/ s32 e1000e_disable_pcie_master(struct e1000_hw *hw) { u32 ctrl; s32 timeout = MASTER_DISABLE_TIMEOUT; ctrl = er32(CTRL); ctrl |= E1000_CTRL_GIO_MASTER_DISABLE; ew32(CTRL, ctrl); while (timeout) { if (!(er32(STATUS) & E1000_STATUS_GIO_MASTER_ENABLE)) break; udelay(100); timeout--; } if (!timeout) { e_dbg("Master requests are pending.\n"); return -E1000_ERR_MASTER_REQUESTS_PENDING; } return 0; } /** * e1000e_reset_adaptive - Reset Adaptive Interframe Spacing * @hw: pointer to the HW structure * * Reset the Adaptive Interframe Spacing throttle to default values. **/ void e1000e_reset_adaptive(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; if (!mac->adaptive_ifs) { e_dbg("Not in Adaptive IFS mode!\n"); goto out; } mac->current_ifs_val = 0; mac->ifs_min_val = IFS_MIN; mac->ifs_max_val = IFS_MAX; mac->ifs_step_size = IFS_STEP; mac->ifs_ratio = IFS_RATIO; mac->in_ifs_mode = false; ew32(AIT, 0); out: return; } /** * e1000e_update_adaptive - Update Adaptive Interframe Spacing * @hw: pointer to the HW structure * * Update the Adaptive Interframe Spacing Throttle value based on the * time between transmitted packets and time between collisions. **/ void e1000e_update_adaptive(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; if (!mac->adaptive_ifs) { e_dbg("Not in Adaptive IFS mode!\n"); goto out; } if ((mac->collision_delta * mac->ifs_ratio) > mac->tx_packet_delta) { if (mac->tx_packet_delta > MIN_NUM_XMITS) { mac->in_ifs_mode = true; if (mac->current_ifs_val < mac->ifs_max_val) { if (!mac->current_ifs_val) mac->current_ifs_val = mac->ifs_min_val; else mac->current_ifs_val += mac->ifs_step_size; ew32(AIT, mac->current_ifs_val); } } } else { if (mac->in_ifs_mode && (mac->tx_packet_delta <= MIN_NUM_XMITS)) { mac->current_ifs_val = 0; mac->in_ifs_mode = false; ew32(AIT, 0); } } out: return; } /** * e1000_raise_eec_clk - Raise EEPROM clock * @hw: pointer to the HW structure * @eecd: pointer to the EEPROM * * Enable/Raise the EEPROM clock bit. **/ static void e1000_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) { *eecd = *eecd | E1000_EECD_SK; ew32(EECD, *eecd); e1e_flush(); udelay(hw->nvm.delay_usec); } /** * e1000_lower_eec_clk - Lower EEPROM clock * @hw: pointer to the HW structure * @eecd: pointer to the EEPROM * * Clear/Lower the EEPROM clock bit. **/ static void e1000_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) { *eecd = *eecd & ~E1000_EECD_SK; ew32(EECD, *eecd); e1e_flush(); udelay(hw->nvm.delay_usec); } /** * e1000_shift_out_eec_bits - Shift data bits our to the EEPROM * @hw: pointer to the HW structure * @data: data to send to the EEPROM * @count: number of bits to shift out * * We need to shift 'count' bits out to the EEPROM. So, the value in the * "data" parameter will be shifted out to the EEPROM one bit at a time. * In order to do this, "data" must be broken down into bits. **/ static void e1000_shift_out_eec_bits(struct e1000_hw *hw, u16 data, u16 count) { struct e1000_nvm_info *nvm = &hw->nvm; u32 eecd = er32(EECD); u32 mask; mask = 0x01 << (count - 1); if (nvm->type == e1000_nvm_eeprom_spi) eecd |= E1000_EECD_DO; do { eecd &= ~E1000_EECD_DI; if (data & mask) eecd |= E1000_EECD_DI; ew32(EECD, eecd); e1e_flush(); udelay(nvm->delay_usec); e1000_raise_eec_clk(hw, &eecd); e1000_lower_eec_clk(hw, &eecd); mask >>= 1; } while (mask); eecd &= ~E1000_EECD_DI; ew32(EECD, eecd); } /** * e1000_shift_in_eec_bits - Shift data bits in from the EEPROM * @hw: pointer to the HW structure * @count: number of bits to shift in * * In order to read a register from the EEPROM, we need to shift 'count' bits * in from the EEPROM. Bits are "shifted in" by raising the clock input to * the EEPROM (setting the SK bit), and then reading the value of the data out * "DO" bit. During this "shifting in" process the data in "DI" bit should * always be clear. **/ static u16 e1000_shift_in_eec_bits(struct e1000_hw *hw, u16 count) { u32 eecd; u32 i; u16 data; eecd = er32(EECD); eecd &= ~(E1000_EECD_DO | E1000_EECD_DI); data = 0; for (i = 0; i < count; i++) { data <<= 1; e1000_raise_eec_clk(hw, &eecd); eecd = er32(EECD); eecd &= ~E1000_EECD_DI; if (eecd & E1000_EECD_DO) data |= 1; e1000_lower_eec_clk(hw, &eecd); } return data; } /** * e1000e_poll_eerd_eewr_done - Poll for EEPROM read/write completion * @hw: pointer to the HW structure * @ee_reg: EEPROM flag for polling * * Polls the EEPROM status bit for either read or write completion based * upon the value of 'ee_reg'. **/ s32 e1000e_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg) { u32 attempts = 100000; u32 i, reg = 0; for (i = 0; i < attempts; i++) { if (ee_reg == E1000_NVM_POLL_READ) reg = er32(EERD); else reg = er32(EEWR); if (reg & E1000_NVM_RW_REG_DONE) return 0; udelay(5); } return -E1000_ERR_NVM; } /** * e1000e_acquire_nvm - Generic request for access to EEPROM * @hw: pointer to the HW structure * * Set the EEPROM access request bit and wait for EEPROM access grant bit. * Return successful if access grant bit set, else clear the request for * EEPROM access and return -E1000_ERR_NVM (-1). **/ s32 e1000e_acquire_nvm(struct e1000_hw *hw) { u32 eecd = er32(EECD); s32 timeout = E1000_NVM_GRANT_ATTEMPTS; ew32(EECD, eecd | E1000_EECD_REQ); eecd = er32(EECD); while (timeout) { if (eecd & E1000_EECD_GNT) break; udelay(5); eecd = er32(EECD); timeout--; } if (!timeout) { eecd &= ~E1000_EECD_REQ; ew32(EECD, eecd); e_dbg("Could not acquire NVM grant\n"); return -E1000_ERR_NVM; } return 0; } /** * e1000_standby_nvm - Return EEPROM to standby state * @hw: pointer to the HW structure * * Return the EEPROM to a standby state. **/ static void e1000_standby_nvm(struct e1000_hw *hw) { struct e1000_nvm_info *nvm = &hw->nvm; u32 eecd = er32(EECD); if (nvm->type == e1000_nvm_eeprom_spi) { /* Toggle CS to flush commands */ eecd |= E1000_EECD_CS; ew32(EECD, eecd); e1e_flush(); udelay(nvm->delay_usec); eecd &= ~E1000_EECD_CS; ew32(EECD, eecd); e1e_flush(); udelay(nvm->delay_usec); } } /** * e1000_stop_nvm - Terminate EEPROM command * @hw: pointer to the HW structure * * Terminates the current command by inverting the EEPROM's chip select pin. **/ static void e1000_stop_nvm(struct e1000_hw *hw) { u32 eecd; eecd = er32(EECD); if (hw->nvm.type == e1000_nvm_eeprom_spi) { /* Pull CS high */ eecd |= E1000_EECD_CS; e1000_lower_eec_clk(hw, &eecd); } } /** * e1000e_release_nvm - Release exclusive access to EEPROM * @hw: pointer to the HW structure * * Stop any current commands to the EEPROM and clear the EEPROM request bit. **/ void e1000e_release_nvm(struct e1000_hw *hw) { u32 eecd; e1000_stop_nvm(hw); eecd = er32(EECD); eecd &= ~E1000_EECD_REQ; ew32(EECD, eecd); } /** * e1000_ready_nvm_eeprom - Prepares EEPROM for read/write * @hw: pointer to the HW structure * * Setups the EEPROM for reading and writing. **/ static s32 e1000_ready_nvm_eeprom(struct e1000_hw *hw) { struct e1000_nvm_info *nvm = &hw->nvm; u32 eecd = er32(EECD); u8 spi_stat_reg; if (nvm->type == e1000_nvm_eeprom_spi) { u16 timeout = NVM_MAX_RETRY_SPI; /* Clear SK and CS */ eecd &= ~(E1000_EECD_CS | E1000_EECD_SK); ew32(EECD, eecd); e1e_flush(); udelay(1); /* * Read "Status Register" repeatedly until the LSB is cleared. * The EEPROM will signal that the command has been completed * by clearing bit 0 of the internal status register. If it's * not cleared within 'timeout', then error out. */ while (timeout) { e1000_shift_out_eec_bits(hw, NVM_RDSR_OPCODE_SPI, hw->nvm.opcode_bits); spi_stat_reg = (u8)e1000_shift_in_eec_bits(hw, 8); if (!(spi_stat_reg & NVM_STATUS_RDY_SPI)) break; udelay(5); e1000_standby_nvm(hw); timeout--; } if (!timeout) { e_dbg("SPI NVM Status error\n"); return -E1000_ERR_NVM; } } return 0; } /** * e1000e_read_nvm_eerd - Reads EEPROM using EERD register * @hw: pointer to the HW structure * @offset: offset of word in the EEPROM to read * @words: number of words to read * @data: word read from the EEPROM * * Reads a 16 bit word from the EEPROM using the EERD register. **/ s32 e1000e_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) { struct e1000_nvm_info *nvm = &hw->nvm; u32 i, eerd = 0; s32 ret_val = 0; /* * A check for invalid values: offset too large, too many words, * too many words for the offset, and not enough words. */ if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || (words == 0)) { e_dbg("nvm parameter(s) out of bounds\n"); return -E1000_ERR_NVM; } for (i = 0; i < words; i++) { eerd = ((offset+i) << E1000_NVM_RW_ADDR_SHIFT) + E1000_NVM_RW_REG_START; ew32(EERD, eerd); ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); if (ret_val) break; data[i] = (er32(EERD) >> E1000_NVM_RW_REG_DATA); } return ret_val; } /** * e1000e_write_nvm_spi - Write to EEPROM using SPI * @hw: pointer to the HW structure * @offset: offset within the EEPROM to be written to * @words: number of words to write * @data: 16 bit word(s) to be written to the EEPROM * * Writes data to EEPROM at offset using SPI interface. * * If e1000e_update_nvm_checksum is not called after this function , the * EEPROM will most likely contain an invalid checksum. **/ s32 e1000e_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) { struct e1000_nvm_info *nvm = &hw->nvm; s32 ret_val; u16 widx = 0; /* * A check for invalid values: offset too large, too many words, * and not enough words. */ if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || (words == 0)) { e_dbg("nvm parameter(s) out of bounds\n"); return -E1000_ERR_NVM; } ret_val = nvm->ops.acquire(hw); if (ret_val) return ret_val; while (widx < words) { u8 write_opcode = NVM_WRITE_OPCODE_SPI; ret_val = e1000_ready_nvm_eeprom(hw); if (ret_val) { nvm->ops.release(hw); return ret_val; } e1000_standby_nvm(hw); /* Send the WRITE ENABLE command (8 bit opcode) */ e1000_shift_out_eec_bits(hw, NVM_WREN_OPCODE_SPI, nvm->opcode_bits); e1000_standby_nvm(hw); /* * Some SPI eeproms use the 8th address bit embedded in the * opcode */ if ((nvm->address_bits == 8) && (offset >= 128)) write_opcode |= NVM_A8_OPCODE_SPI; /* Send the Write command (8-bit opcode + addr) */ e1000_shift_out_eec_bits(hw, write_opcode, nvm->opcode_bits); e1000_shift_out_eec_bits(hw, (u16)((offset + widx) * 2), nvm->address_bits); /* Loop to allow for up to whole page write of eeprom */ while (widx < words) { u16 word_out = data[widx]; word_out = (word_out >> 8) | (word_out << 8); e1000_shift_out_eec_bits(hw, word_out, 16); widx++; if ((((offset + widx) * 2) % nvm->page_size) == 0) { e1000_standby_nvm(hw); break; } } } usleep_range(10000, 20000); nvm->ops.release(hw); return 0; } /** * e1000_read_pba_string_generic - Read device part number * @hw: pointer to the HW structure * @pba_num: pointer to device part number * @pba_num_size: size of part number buffer * * Reads the product board assembly (PBA) number from the EEPROM and stores * the value in pba_num. **/ s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size) { s32 ret_val; u16 nvm_data; u16 pba_ptr; u16 offset; u16 length; if (pba_num == NULL) { e_dbg("PBA string buffer was null\n"); ret_val = E1000_ERR_INVALID_ARGUMENT; goto out; } ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_1, 1, &pba_ptr); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } /* * if nvm_data is not ptr guard the PBA must be in legacy format which * means pba_ptr is actually our second data word for the PBA number * and we can decode it into an ascii string */ if (nvm_data != NVM_PBA_PTR_GUARD) { e_dbg("NVM PBA number is not stored as string\n"); /* we will need 11 characters to store the PBA */ if (pba_num_size < 11) { e_dbg("PBA string buffer too small\n"); return E1000_ERR_NO_SPACE; } /* extract hex string from data and pba_ptr */ pba_num[0] = (nvm_data >> 12) & 0xF; pba_num[1] = (nvm_data >> 8) & 0xF; pba_num[2] = (nvm_data >> 4) & 0xF; pba_num[3] = nvm_data & 0xF; pba_num[4] = (pba_ptr >> 12) & 0xF; pba_num[5] = (pba_ptr >> 8) & 0xF; pba_num[6] = '-'; pba_num[7] = 0; pba_num[8] = (pba_ptr >> 4) & 0xF; pba_num[9] = pba_ptr & 0xF; /* put a null character on the end of our string */ pba_num[10] = '\0'; /* switch all the data but the '-' to hex char */ for (offset = 0; offset < 10; offset++) { if (pba_num[offset] < 0xA) pba_num[offset] += '0'; else if (pba_num[offset] < 0x10) pba_num[offset] += 'A' - 0xA; } goto out; } ret_val = e1000_read_nvm(hw, pba_ptr, 1, &length); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } if (length == 0xFFFF || length == 0) { e_dbg("NVM PBA number section invalid length\n"); ret_val = E1000_ERR_NVM_PBA_SECTION; goto out; } /* check if pba_num buffer is big enough */ if (pba_num_size < (((u32)length * 2) - 1)) { e_dbg("PBA string buffer too small\n"); ret_val = E1000_ERR_NO_SPACE; goto out; } /* trim pba length from start of string */ pba_ptr++; length--; for (offset = 0; offset < length; offset++) { ret_val = e1000_read_nvm(hw, pba_ptr + offset, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error\n"); goto out; } pba_num[offset * 2] = (u8)(nvm_data >> 8); pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); } pba_num[offset * 2] = '\0'; out: return ret_val; } /** * e1000_read_mac_addr_generic - Read device MAC address * @hw: pointer to the HW structure * * Reads the device MAC address from the EEPROM and stores the value. * Since devices with two ports use the same EEPROM, we increment the * last bit in the MAC address for the second port. **/ s32 e1000_read_mac_addr_generic(struct e1000_hw *hw) { u32 rar_high; u32 rar_low; u16 i; rar_high = er32(RAH(0)); rar_low = er32(RAL(0)); for (i = 0; i < E1000_RAL_MAC_ADDR_LEN; i++) hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8)); for (i = 0; i < E1000_RAH_MAC_ADDR_LEN; i++) hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8)); for (i = 0; i < ETH_ALEN; i++) hw->mac.addr[i] = hw->mac.perm_addr[i]; return 0; } /** * e1000e_validate_nvm_checksum_generic - Validate EEPROM checksum * @hw: pointer to the HW structure * * Calculates the EEPROM checksum by reading/adding each word of the EEPROM * and then verifies that the sum of the EEPROM is equal to 0xBABA. **/ s32 e1000e_validate_nvm_checksum_generic(struct e1000_hw *hw) { s32 ret_val; u16 checksum = 0; u16 i, nvm_data; for (i = 0; i < (NVM_CHECKSUM_REG + 1); i++) { ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error\n"); return ret_val; } checksum += nvm_data; } if (checksum != (u16) NVM_SUM) { e_dbg("NVM Checksum Invalid\n"); return -E1000_ERR_NVM; } return 0; } /** * e1000e_update_nvm_checksum_generic - Update EEPROM checksum * @hw: pointer to the HW structure * * Updates the EEPROM checksum by reading/adding each word of the EEPROM * up to the checksum. Then calculates the EEPROM checksum and writes the * value to the EEPROM. **/ s32 e1000e_update_nvm_checksum_generic(struct e1000_hw *hw) { s32 ret_val; u16 checksum = 0; u16 i, nvm_data; for (i = 0; i < NVM_CHECKSUM_REG; i++) { ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); if (ret_val) { e_dbg("NVM Read Error while updating checksum.\n"); return ret_val; } checksum += nvm_data; } checksum = (u16) NVM_SUM - checksum; ret_val = e1000_write_nvm(hw, NVM_CHECKSUM_REG, 1, &checksum); if (ret_val) e_dbg("NVM Write Error while updating checksum.\n"); return ret_val; } /** * e1000e_reload_nvm - Reloads EEPROM * @hw: pointer to the HW structure * * Reloads the EEPROM by setting the "Reinitialize from EEPROM" bit in the * extended control register. **/ void e1000e_reload_nvm(struct e1000_hw *hw) { u32 ctrl_ext; udelay(10); ctrl_ext = er32(CTRL_EXT); ctrl_ext |= E1000_CTRL_EXT_EE_RST; ew32(CTRL_EXT, ctrl_ext); e1e_flush(); } /** * e1000_calculate_checksum - Calculate checksum for buffer * @buffer: pointer to EEPROM * @length: size of EEPROM to calculate a checksum for * * Calculates the checksum for some buffer on a specified length. The * checksum calculated is returned. **/ static u8 e1000_calculate_checksum(u8 *buffer, u32 length) { u32 i; u8 sum = 0; if (!buffer) return 0; for (i = 0; i < length; i++) sum += buffer[i]; return (u8) (0 - sum); } /** * e1000_mng_enable_host_if - Checks host interface is enabled * @hw: pointer to the HW structure * * Returns E1000_success upon success, else E1000_ERR_HOST_INTERFACE_COMMAND * * This function checks whether the HOST IF is enabled for command operation * and also checks whether the previous command is completed. It busy waits * in case of previous command is not completed. **/ static s32 e1000_mng_enable_host_if(struct e1000_hw *hw) { u32 hicr; u8 i; if (!(hw->mac.arc_subsystem_valid)) { e_dbg("ARC subsystem not valid.\n"); return -E1000_ERR_HOST_INTERFACE_COMMAND; } /* Check that the host interface is enabled. */ hicr = er32(HICR); if ((hicr & E1000_HICR_EN) == 0) { e_dbg("E1000_HOST_EN bit disabled.\n"); return -E1000_ERR_HOST_INTERFACE_COMMAND; } /* check the previous command is completed */ for (i = 0; i < E1000_MNG_DHCP_COMMAND_TIMEOUT; i++) { hicr = er32(HICR); if (!(hicr & E1000_HICR_C)) break; mdelay(1); } if (i == E1000_MNG_DHCP_COMMAND_TIMEOUT) { e_dbg("Previous command timeout failed .\n"); return -E1000_ERR_HOST_INTERFACE_COMMAND; } return 0; } /** * e1000e_check_mng_mode_generic - check management mode * @hw: pointer to the HW structure * * Reads the firmware semaphore register and returns true (>0) if * manageability is enabled, else false (0). **/ bool e1000e_check_mng_mode_generic(struct e1000_hw *hw) { u32 fwsm = er32(FWSM); return (fwsm & E1000_FWSM_MODE_MASK) == (E1000_MNG_IAMT_MODE << E1000_FWSM_MODE_SHIFT); } /** * e1000e_enable_tx_pkt_filtering - Enable packet filtering on Tx * @hw: pointer to the HW structure * * Enables packet filtering on transmit packets if manageability is enabled * and host interface is enabled. **/ bool e1000e_enable_tx_pkt_filtering(struct e1000_hw *hw) { struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie; u32 *buffer = (u32 *)&hw->mng_cookie; u32 offset; s32 ret_val, hdr_csum, csum; u8 i, len; hw->mac.tx_pkt_filtering = true; /* No manageability, no filtering */ if (!e1000e_check_mng_mode(hw)) { hw->mac.tx_pkt_filtering = false; goto out; } /* * If we can't read from the host interface for whatever * reason, disable filtering. */ ret_val = e1000_mng_enable_host_if(hw); if (ret_val) { hw->mac.tx_pkt_filtering = false; goto out; } /* Read in the header. Length and offset are in dwords. */ len = E1000_MNG_DHCP_COOKIE_LENGTH >> 2; offset = E1000_MNG_DHCP_COOKIE_OFFSET >> 2; for (i = 0; i < len; i++) *(buffer + i) = E1000_READ_REG_ARRAY(hw, E1000_HOST_IF, offset + i); hdr_csum = hdr->checksum; hdr->checksum = 0; csum = e1000_calculate_checksum((u8 *)hdr, E1000_MNG_DHCP_COOKIE_LENGTH); /* * If either the checksums or signature don't match, then * the cookie area isn't considered valid, in which case we * take the safe route of assuming Tx filtering is enabled. */ if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { hw->mac.tx_pkt_filtering = true; goto out; } /* Cookie area is valid, make the final check for filtering. */ if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING)) { hw->mac.tx_pkt_filtering = false; goto out; } out: return hw->mac.tx_pkt_filtering; } /** * e1000_mng_write_cmd_header - Writes manageability command header * @hw: pointer to the HW structure * @hdr: pointer to the host interface command header * * Writes the command header after does the checksum calculation. **/ static s32 e1000_mng_write_cmd_header(struct e1000_hw *hw, struct e1000_host_mng_command_header *hdr) { u16 i, length = sizeof(struct e1000_host_mng_command_header); /* Write the whole command header structure with new checksum. */ hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length); length >>= 2; /* Write the relevant command block into the ram area. */ for (i = 0; i < length; i++) { E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, i, *((u32 *) hdr + i)); e1e_flush(); } return 0; } /** * e1000_mng_host_if_write - Write to the manageability host interface * @hw: pointer to the HW structure * @buffer: pointer to the host interface buffer * @length: size of the buffer * @offset: location in the buffer to write to * @sum: sum of the data (not checksum) * * This function writes the buffer content at the offset given on the host if. * It also does alignment considerations to do the writes in most efficient * way. Also fills up the sum of the buffer in *buffer parameter. **/ static s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length, u16 offset, u8 *sum) { u8 *tmp; u8 *bufptr = buffer; u32 data = 0; u16 remaining, i, j, prev_bytes; /* sum = only sum of the data and it is not checksum */ if (length == 0 || offset + length > E1000_HI_MAX_MNG_DATA_LENGTH) return -E1000_ERR_PARAM; tmp = (u8 *)&data; prev_bytes = offset & 0x3; offset >>= 2; if (prev_bytes) { data = E1000_READ_REG_ARRAY(hw, E1000_HOST_IF, offset); for (j = prev_bytes; j < sizeof(u32); j++) { *(tmp + j) = *bufptr++; *sum += *(tmp + j); } E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, offset, data); length -= j - prev_bytes; offset++; } remaining = length & 0x3; length -= remaining; /* Calculate length in DWORDs */ length >>= 2; /* * The device driver writes the relevant command block into the * ram area. */ for (i = 0; i < length; i++) { for (j = 0; j < sizeof(u32); j++) { *(tmp + j) = *bufptr++; *sum += *(tmp + j); } E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, offset + i, data); } if (remaining) { for (j = 0; j < sizeof(u32); j++) { if (j < remaining) *(tmp + j) = *bufptr++; else *(tmp + j) = 0; *sum += *(tmp + j); } E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, offset + i, data); } return 0; } /** * e1000e_mng_write_dhcp_info - Writes DHCP info to host interface * @hw: pointer to the HW structure * @buffer: pointer to the host interface * @length: size of the buffer * * Writes the DHCP information to the host interface. **/ s32 e1000e_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length) { struct e1000_host_mng_command_header hdr; s32 ret_val; u32 hicr; hdr.command_id = E1000_MNG_DHCP_TX_PAYLOAD_CMD; hdr.command_length = length; hdr.reserved1 = 0; hdr.reserved2 = 0; hdr.checksum = 0; /* Enable the host interface */ ret_val = e1000_mng_enable_host_if(hw); if (ret_val) return ret_val; /* Populate the host interface with the contents of "buffer". */ ret_val = e1000_mng_host_if_write(hw, buffer, length, sizeof(hdr), &(hdr.checksum)); if (ret_val) return ret_val; /* Write the manageability command header */ ret_val = e1000_mng_write_cmd_header(hw, &hdr); if (ret_val) return ret_val; /* Tell the ARC a new command is pending. */ hicr = er32(HICR); ew32(HICR, hicr | E1000_HICR_C); return 0; } /** * e1000e_enable_mng_pass_thru - Check if management passthrough is needed * @hw: pointer to the HW structure * * Verifies the hardware needs to leave interface enabled so that frames can * be directed to and from the management interface. **/ bool e1000e_enable_mng_pass_thru(struct e1000_hw *hw) { u32 manc; u32 fwsm, factps; bool ret_val = false; manc = er32(MANC); if (!(manc & E1000_MANC_RCV_TCO_EN)) goto out; if (hw->mac.has_fwsm) { fwsm = er32(FWSM); factps = er32(FACTPS); if (!(factps & E1000_FACTPS_MNGCG) && ((fwsm & E1000_FWSM_MODE_MASK) == (e1000_mng_mode_pt << E1000_FWSM_MODE_SHIFT))) { ret_val = true; goto out; } } else if ((hw->mac.type == e1000_82574) || (hw->mac.type == e1000_82583)) { u16 data; factps = er32(FACTPS); e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &data); if (!(factps & E1000_FACTPS_MNGCG) && ((data & E1000_NVM_INIT_CTRL2_MNGM) == (e1000_mng_mode_pt << 13))) { ret_val = true; goto out; } } else if ((manc & E1000_MANC_SMBUS_EN) && !(manc & E1000_MANC_ASF_EN)) { ret_val = true; goto out; } out: return ret_val; }
# Amaranthus sanguineus Vell. SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
The labor market is always changing and the recruiting strategies that worked in the past are not going to work forever. Luckily this shift in the labor force is happening at the same time as the advent of innovative tools for employers to find new talent and refine their recruitment strategies. These new tools will greatly affect one of the mainstays of recruiting, the career fair. Employers have an ever growing number of ways to make their recruiting operations at career fairs more effective and more efficient than ever before. Let’s look at the future of career fairs and see how employers will get the most from them. One of the pains of general career fairs is that you find a wide range of applicants, but only so many are actively seeking to join your organization or even your industry. For every motivated applicant, there are probably ten who filled out an application just because they’re casting their nets wide for resume builders. They might create some value for your company, but they’re unlikely to be the best talent you can find. More and more schools are offering specialized career fairs that cater to specific desired career paths of students. The attendees who come to you at a specialized career fair are more strongly attracted to what you do and what you can offer them. Technology firms will encounter budding programmers and engineers, media firms will reach aspiring journalists, nonprofits will find individuals that are passionate about a cause, and so on. Your applicants will be more motivated and more likely to have the skills you want. Why send a recruiter two states over when they can connect with plenty of potential candidates without leaving the office? By taking part in a virtual career fair, you can spread your message to a wide variety of candidates without many of the hassles of a physical career fair. A virtual career fair incorporates many of the features of a traditional fair with fewer physical limitations or personnel requirements. You can give an online presentation from anywhere and host a chat room to take potential applicants’ questions. If the potential candidates would like to know more about an organization, they can contact a recruiter for a one-on-one conversation over chat and easily find other resources. If the potential candidate decides to apply, it is easy to find an online application and send a resume. You can even hold video interviews with potential candidates. With virtual career fairs, you’ll be spending fewer resources and finding a better pool of talent for your organization. A number of schools are holding “reverse career fairs”, where you and your representatives come to the students instead of the other way around. Here, student organizations put together booths for employers to visit. This opportunity gives students an opportunity to show off their skills and qualifications and you a chance to develop relations on campus, find leaders, and network with a wider range of potential candidates. For a lot of young people, career fairs can be intimidating, especially if they’ve never been to one. Luckily for them, schools may set up employer in residence programs, where you can meet curious students in a one-on-one setting, outside the bustle and noise of the fair. For students, this is a great opportunity to learn about you and your industry more deeply. Beyond discussing your organization, employer representatives may give advice on breaking into the industry, critique resumes and cover letters, and even perform mock interviews. Furthermore, you can use this as an opportunity to not only help students on career paths but also look for people you’d like at your organization. One of the most annoying things about collecting resumes is sorting through them for ideal candidates. You only have so much time and manpower to devote to them, so you’re expending a lot of effort only to let great candidates slip through the cracks. Rakuna’s Campus Recruiting Solution is one way for employers to eliminate that hassle. You can gather candidate information without the trouble of sorting through piles of paper later. You can capture and process resumes without doing any manual data entry and use the captured data to sort candidates using specific criteria. You’ll be spending less time evaluating more candidates and making better hiring decisions. There’s a bright future for college recruiting technologies and practices. Schools are creating amazing opportunities for you to reach the people you want for your organization, and innovative technologies are making the recruiter’s job easier and easier. What do you see on the horizon?
# AUTOGENERATED FILE FROM balenalib/beaglebone-black-fedora:33-run RUN dnf -y update \ && dnf clean all \ && dnf -y install \ gzip \ java-1.8.0-openjdk \ java-1.8.0-openjdk-devel \ tar \ && dnf clean all # set JAVA_HOME ENV JAVA_HOME /usr/lib/jvm/java-openjdk CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Fedora 33 \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nOpenJDK v8-jre \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo $'#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && cp /bin/sh /bin/sh.real \ && mv /bin/sh-shim /bin/sh
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using System.Collections.Generic; using QuantConnect.Algorithm.Framework; using QuantConnect.Algorithm.Framework.Alphas; using QuantConnect.Data.Market; using QuantConnect.Indicators; using QuantConnect.Interfaces; namespace QuantConnect.Algorithm.CSharp { /// <summary> /// Demonstration algorithm showing how to easily convert an old algorithm into the framework. /// /// 1. Make class derive from QCAlgorithmFrameworkBridge instead of QCAlgorithm. /// 2. When making orders, also create insights for the correct direction (up/down), can also set insight prediction period/magnitude/direction /// 3. Profit :) /// </summary> /// <meta name="tag" content="indicators" /> /// <meta name="tag" content="indicator classes" /> /// <meta name="tag" content="plotting indicators" /> public class ConvertToFrameworkAlgorithm : QCAlgorithmFrameworkBridge, IRegressionAlgorithmDefinition // 1. Derive from QCAlgorithmFrameworkBridge { private MovingAverageConvergenceDivergence _macd; private readonly string _symbol = "SPY"; public readonly int FastEmaPeriod = 12; public readonly int SlowEmaPeriod = 26; /// <summary> /// Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized. /// </summary> public override void Initialize() { SetStartDate(2004, 01, 01); SetEndDate(2015, 01, 01); AddSecurity(SecurityType.Equity, _symbol, Resolution.Daily); // define our daily macd(12,26) with a 9 day signal _macd = MACD(_symbol, FastEmaPeriod, SlowEmaPeriod, 9, MovingAverageType.Exponential, Resolution.Daily); } /// <summary> /// OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here. /// </summary> /// <param name="data">TradeBars IDictionary object with your stock data</param> public void OnData(TradeBars data) { // wait for our indicator to be ready if (!_macd.IsReady) return; var holding = Portfolio[_symbol]; var signalDeltaPercent = (_macd - _macd.Signal) / _macd.Fast; var tolerance = 0.0025m; // if our macd is greater than our signal, then let's go long if (holding.Quantity <= 0 && signalDeltaPercent > tolerance) { // 2. Call EmitInsights with insights created in correct direction, here we're going long // The EmitInsights method can accept multiple insights separated by commas EmitInsights( // Creates an insight for our symbol, predicting that it will move up within the fast ema period number of days Insight.Price(_symbol, TimeSpan.FromDays(FastEmaPeriod), InsightDirection.Up) ); // longterm says buy as well SetHoldings(_symbol, 1.0); } // if our macd is less than our signal, then let's go short else if (holding.Quantity >= 0 && signalDeltaPercent < -tolerance) { // 2. Call EmitInsights with insights created in correct direction, here we're going short // The EmitInsights method can accept multiple insights separated by commas EmitInsights( // Creates an insight for our symbol, predicting that it will move down within the fast ema period number of days Insight.Price(_symbol, TimeSpan.FromDays(FastEmaPeriod), InsightDirection.Down) ); // shortterm says sell as well SetHoldings(_symbol, -1.0); } // plot both lines Plot("MACD", _macd, _macd.Signal); Plot(_symbol, "Open", data[_symbol].Open); Plot(_symbol, _macd.Fast, _macd.Slow); } /// <summary> /// This is used by the regression test system to indicate if the open source Lean repository has the required data to run this algorithm. /// </summary> public bool CanRunLocally { get; } = true; /// <summary> /// This is used by the regression test system to indicate which languages this algorithm is written in. /// </summary> public Language[] Languages { get; } = { Language.CSharp, Language.Python }; /// <summary> /// This is used by the regression test system to indicate what the expected statistics are from running the algorithm /// </summary> public Dictionary<string, string> ExpectedStatistics => new Dictionary<string, string> { {"Total Trades", "85"}, {"Average Win", "4.85%"}, {"Average Loss", "-4.21%"}, {"Compounding Annual Return", "-3.105%"}, {"Drawdown", "52.900%"}, {"Expectancy", "-0.053"}, {"Net Profit", "-29.335%"}, {"Sharpe Ratio", "-0.084"}, {"Loss Rate", "56%"}, {"Win Rate", "44%"}, {"Profit-Loss Ratio", "1.15"}, {"Alpha", "0.046"}, {"Beta", "-3.04"}, {"Annual Standard Deviation", "0.181"}, {"Annual Variance", "0.033"}, {"Information Ratio", "-0.194"}, {"Tracking Error", "0.181"}, {"Treynor Ratio", "0.005"}, {"Total Fees", "$755.20"}, {"Total Insights Generated", "85"}, {"Total Insights Closed", "85"}, {"Total Insights Analysis Completed", "85"}, {"Long Insight Count", "42"}, {"Short Insight Count", "43"}, {"Long/Short Ratio", "97.67%"}, {"Estimated Monthly Alpha Value", "$-607698.1"}, {"Total Accumulated Estimated Alpha Value", "$-81395260"}, {"Mean Population Estimated Insight Value", "$-957591.3"}, {"Mean Population Direction", "50.5882%"}, {"Mean Population Magnitude", "0%"}, {"Rolling Averaged Population Direction", "46.5677%"}, {"Rolling Averaged Population Magnitude", "0%"} }; } }
The 5-7 program provides a transition space between the single classroom environment of the primary classroom and the more specialised, secondary timetable. Students work in a variety of multi age groups to build breadth across a range of subjects which include; English, Mathematics, Humanities, Science, Physical Education & Health, Woodwork, Cooking, Music, Japanese, Visual Art and Performing Art. Within the House system, a core team of pastoral care teachers work closely with the students and their families to establish a strong working relationship. This consistency of learning environment produces excellent learning outcomes, as shown in the College's consistently above average NAPLAN results at year 7.
It is too horrible to think about, so why have I been doing it all day? All the parents hearing that their child has been killed. All the young people who will never grow up to have the lives they were to lead. Watch students react to shooting. Watch gunfire on the campus. Watch student describe surviving by playing dead. Is this reporting or sensationalizing a story that does not need “pumping up”? And don’t get me started on those sick fucks with perfect hair running around trying to get exclusives from shattered students and parents who won’t remember tomorrow what they say today. That’s not news. That’s journalism at the level of Jerry Springer. It is really terrible what has happened but I try not to watch the sensationalised TV reports – not that it is too bad here in Australia but I am guessing it is full on in the US. …and this is reason #8723 why I refuse to get my news from them. I turned on CNN this morning and it was a non-stop feed of them interviewing students, I just had to turn it off. There is no reason we need 500 24-hour news network channels. I saw some of CNN last night where Anderson Cooper was talking with a kid who apparently got convicted in another shooting. WTF does he have to do with it? They’re digging stuff up so they can have it on the air and it’s disgusting. I’m staying away from tv for exactly this reason. My love affair with old Katie Couric began to wane when she preyed upon the victims of Columbine. I just can’t do the circus again. I’m reading this as I’m watching Stone (my hair doesn’t move) Phillips interviewing a man who just lost his daughter. I don’t know if seeing the images makes people feel like they can make sense of it. I certainly hope not. The incident was senseless. No one should become immune to the images…and that’s what I think the over-exposure does. I’ve had to turn it off. I can’t take it. The constant coverage is nauseating, and totally unnecessary. I can’t handle it. My TV stays off for about three days after any terrible tragedy because of those disgusting vultures. I literally see them as carrion birds, circling their weakened victims. I’ve been fed up with all this media crap since Oklahoma City. I should have kept the TV off this afternoon. I was sucked in to CNN. The same interviews and footage over and over..No more for me. I watched the weather network last night to avoid watching the vultures. It’s gross. Yeah, I have been wondering about the coverage myself. Newscasts are covering every imaginable angle to this story — really, really reaching in some cases — and you know there are other news events we should be hearing about. It’s sad. The media is still a pack of bloodthirsty ticks. Shoving microphones and cameras in the face of any grieving student they can find. God help them if they ever tried that to me. There is a time to grieve and the media needs not be a part of that. Not initially.
Lauren LOVES King Arthur Flour and their cinnamon chips. Of course we love that they are Employee owned as well!! Lauren’s WF Bakery is committed to using free range eggs. Local and farm fresh when possible. If you ever wondered why Lauren’s goodies vary in color, you can usually find the answer in the eggs. Free roaming chickens are often higher in beta-carotine and can sport some pretty spectacular yolks. Have we told you lately, how much we love being a part of the San Marcos, Texas community? One of the real joys of being a part of this business community is the encouragement we receive from other local businesses. This is perhaps shown best every Saturday, all year round, at the San Marcos Farmer’s Market which happens on San Antonio St. between LBJ and Guadalupe Streets from 9am-1pm. Some of the Farmers Market vendors are Red Bud Roasters & Terracycle, follow their links below! Another favorite at Lauren’s Wildflour Bakery is the Austin, Texas radio station KUT on FM 90.5. Every Sunday morning we warm up a yummy scone, poor our coffee and listen to the “The Splendid Table”! The Splendid Table is hosted by Lynn Rossetto Kasper every Sunday morning as she enlightens her audience with great information about current food issues and policies. Long before eating local became a catchphrase and farmers’ markets became ubiquitous, The Splendid Table was talking about the changes needed in the food system and what was happening on the grassroots level. In fact, when The Splendid Table first went on the air, host Lynne had to make sure to define such terms as “organic” and “sustainable” for listeners. Today those terms have become part of the everyday lexicon, and people’s hunger for wholesome food and the rituals surrounding it has only increased. Audiences have continued to grow, and broadcasting peers have taken note as well: The Splendid Table has won two James Beard Foundation Awards (1998, 2008) for Best National Radio Show on Food, a Gracie Allen Award in 2000 for Best Syndicated Talk Show, and four Clarion Awards (2007, 2008, 2009 and 2010) from Women in Communication. Lynne is also included in the James Beard Foundation’s Who’s Who of Food and Beverage in America. From its first mealtime brainstorm to the award-winning weekly program it is today, The Splendid Table continues its celebration of food and the roles it plays in our lives. On KUT, support for The Splendid Table is provided by Wheatsville Co-op, Three Forks, Cantina Laredo and Cool River. San Marcos, A Texas Natural! Here at Lauren’s Wildflour Bakery, we feel priviledged to be able to bake in the city we love. San Marcos, Texas is a wonderful place to live, work and enjoy life! Our favorite part of San Marcos has to be the people and then the river!
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( $_EXTKEY, 'Pi1', 'AJAX Request Response EID Based' ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'AJAX Request Response EID Based');
The product itself comes in a clear plastic tube with a plastic doe foot disperser to get the product out so you can glide it on your lips. The product is quite thick so you have to squeeze the tube quite hard to get it out, but with this lipgloss, a little goes a long way and it is VERY highly pigmented - one of the most pigmented lipglosses I have ever tried. The colour itself is a classic blue based red - one of those fantastic red shades that, when you wear them, make your teeth look super white! However, it is a very thick lipgloss and it can feel quite heavy on your lips until you get used to it, and it is a sticky lipgloss which doesn't really go away - so if your not a fan of sticky lipglosses, stay clear of these (all of the Illamasqua intense lipglosses have this sticky quality to them). Because of the texture and stickiness of the product, it makes it quite difficult to apply and it takes some effort to drag out over your lip, which renders the plastic doe foot applicator which is meant to make it easier, useless. Also, because of the way the product comes out, you can't be very accurate with this product at all, so if you want accurate and pricise lines around your cupids bow then I would advise you to use a lip brush to apply it rather than apply directly from the tube.
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['RelativeDifference'] , ['PolyTrend'] , ['Seasonal_DayOfWeek'] , ['NoAR'] );
High school students are among one of the many populations that are in dire need of money. Not only do they need money for supplies for school, but they may also need to save money for college or any higher education they may wish to pursue later on in life. Some of them must also support their families, especially if they belong to a lower class or larger household. However, not all high school students have the time to have a part time job, as most of their time are spent on their academics and extracurriculars. Therefore, students should be allowed to sell food items on campus, since it can provide valuable experiences and help them reach their goals, just like how they are allowed to do so when they are selling for clubs. Currently, students are not allowed to sell food items and the reasons range from not having a license or school permission to sell and the school not knowing what could be in the food that they sell. While the latter reason is valid, as students’ health is important, the requirement of having a license is an obstacle in selling, as the students would need to be older than 18 or have their parents’ consent to do so. This may cause the students not be able to reach their financial goals and cause a lack of experience in entrepreneurship, which can be an essential skill to have later on in life. Some may argue that students could take advantage of being able to sell food and lie about needing the money, but since there are rules to such sales, many restrictions would be placed and eliminate such factors. If students are allowed to sell food, they are required to have a document or any other form of sign to show that what they are selling is for a legitimate cause and nothing dangerous. Since students would need a license to sell, but since they cannot get such license until 18 years old, there should be a new kind of license where it is specifically for them to sell items for money because of their financial status. Schools would also check the products before letting them sell them. They could also have a list banning certain products that they know for sure would be harmful to students to ensure their safety. With these safety precautions, schools would not have to worry as much about students selling illegal contrabands or anything harmful. Other students would also be reassured that the item they are buying is safe and legal. Many students from low income families struggle to find a means of earning money but if they were able to sell food on campus, they would be able to keep up with their studies as well as earning money. They would also have experiences of selling products that may prove useful later on in their lives. Overall, if controlled, allowing students to sell products on school can prove beneficial to the students.
The N/E corner of Queen and John as illustrated in 1851. Interesting because two of the buildings survive to this day. The W. H. Brayley dry goods store was the Beverly Tavern for years and if you look closely the small shop to the left (W.H. Smith), is still there and still selling books as a BMV outlet! I had a good look at the BMV today (including the basement) and realize that the building has at some point been rebuilt on top of the original rubble foundation. A little research shows that WH Smith did not enter the Canadian market until 1958. A view of the distinctive roof line from the 1840’s (or so) and the original St Patrick’s Market. St George the Martyr Church can be seen in the distance. The same building (now the famous Beverley Tavern) in the early 1980’s. Photo by Patrick Cummins. The distinctive roof line can still be identified under the modern facade. St. Patrick’s Market and the tower as seen in the first illustration. On the map below from 1858 the Market and the dry goods store are both evident.
The Surprising Story Of A Super Bowl Snack : The Salt From Cheetos to Doritos, fried corn snacks have become a fixture at Super Bowl parties. But the original American corn chip, the Frito, was first meant to be a healthy side dish and ingredient for cooking. Presented on a gourmet plate or eaten out of the bag the chips came in, Frito Pie is an American standard. This Super Bowl Sunday, millions of Americans will watch the game with bowls of corn-based snacks at their side. Whether you prefer Doritos, Cheetos, or even Funyuns, you owe the pleasure of that crunchy munchy to the humble corn curl that started it all: the Frito. This week, our friends at Smithsonian's Food & Think blog trace the origins of the Frito back to entrepreneur C.E. Doolin's encounter with a Mexican frita, or "small fried thing," made of cornmeal, water, and salt. It was 1932 in San Antonio, and the flavor so inspired Doolin that he found the man responsible for the chips, a Mexican immigrant named Gustavo Olquin, and bought his equipment, recipe, and business contacts for $100. Over the years, Doolin expanded the business, mechanized the chip-making process, and invented new flavors and products, like the Cheeto. The Fritos brand went on in 1961 to merge with the Lay potato chip company, another Depression-era family business. Doolin died in 1959, but had already paved the way for an explosion of corn-based snacks – from Cheetos, to Doritos, to Tostitos, and even Funyuns. And like the original Frito, each of those products is essentially just fried cornmeal with flavorings. Unlike Fritos, though, Funyuns and Cheetos are extruded: Their puffy texture comes from batter being mixed with hot water under pressure and exposed to air. You can see it and the rest of the Funyun-making process happen inside the factory in this recent video from National Geographic. The Fritos brand pulled in more than $1 billion last year — much of it from the winning combination of corn, fat and salt. It's a strange legacy for Doolin, who was actually something of a health nut, according to a 2007 story from NPR's Hidden Kitchens series. Although his wife created recipes like Frito Pie and Frito Jets (Fritos smothered in chili and dark chocolate, respectively), Doolin always imagined Fritos as a side dish for meals, something to eat by the handful – not by the party-size bag. Doolin's daughter Kaleta told NPR's Kitchen Sisters that she and her siblings "were raised vegetarian, and people made fun of me for eating yogurt and figs in my sack lunch." She said her father would even bring home bags of Fritos he'd taken off the manufacturing line before they'd been salted. The success of the less-healthy versions of his snacks doesn't seem to have bothered Doolin during his lifetime, though. Were he alive today, he might be happy to see that they've become a staple of Super Bowl parties nationwide. But I wonder how he'd feel about Vanilla-Caramel Corn FRITOS® Pie.
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Actuate Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.birt.report.model.api.metadata; /** * Represents the definition of argument. The argument definition includes the * data type, internal name, and display name. */ public interface IArgumentInfo { /** * Argument name for optional argument. The optional argument is used for * the method with variable argument. For example, concat( str1, ... ). The * argument is just an indication that it's optional, and takes information * from the previous one. Its display name is "...". */ final public static String OPTIONAL_ARGUMENT_NAME = "optionalArgument"; //$NON-NLS-1$ /** * Returns the internal name for the argument. * * @return the internal (non-localized) name for the argument */ public String getName( ); /** * Returns the display name for the property if the resource key of display * name is defined. Otherwise, return empty string. * * @return the user-visible, localized display name for the property */ public String getDisplayName( ); /** * Returns the resource key for the display name. * * @return The display name message ID. */ public String getDisplayNameKey( ); /** * Returns the argument type in string. * * @return the script type */ public String getType( ); /** * Returns the argument type in Class. * * @return the argument type */ public IClassInfo getClassType( ); }
You're able to trust Wall Mounted Air Conditioner Guys to present the best quality service regarding Wall Mounted Air Conditioners in Louise, TX. Our team of experienced experts will offer the professional services you will need with the most advanced technology available. We will work with high standard materials and money saving practices to be sure you are given the finest products and services at the best value. Contact us by dialing 888-248-0021 to get going. You have a budget to stick with, and you need to lower your expenses. Yet, conserving money shouldn't ever signify that you give up quality for Wall Mounted Air Conditioners in Louise, TX. You can expect the best quality even while still costing you less. Our intent is to guarantee that you get the right products and a job which lasts through the years. That is feasible because we understand how to save time and resources on materials and labor. Connect with Wall Mounted Air Conditioner Guys when you're needing the finest solutions at the cheapest price. You're able to reach our team at 888-248-0021 to begin. To come up with the ideal choices regarding Wall Mounted Air Conditioners in Louise, TX, you've got to be kept informed. We be sure you know exactly what to anticipate. You won't encounter any unexpected surprises whenever you deal with Wall Mounted Air Conditioner Guys. The first step is to contact us today at 888-248-0021 to begin your task. We're going to explore your questions and concerns once you contact us and get you organized with a meeting. We will work closely with you all through the whole process, and our crew is going to show up on time and well prepared. If you find yourself considering a job regarding Wall Mounted Air Conditioners in Louise, TX, you will find reasons to call Wall Mounted Air Conditioner Guys. We have the best customer support ratings, the highest quality materials, and the most helpful and successful money saving practices. We will be there to assist you with the greatest practical knowledge and competence around. When you require Wall Mounted Air Conditioners in Louise, contact Wall Mounted Air Conditioner Guys at 888-248-0021, and we are going to be glad to help you.
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Xml; /* * * Miroslav Murin * http://api.met.no/license_data.html * */ namespace CSharp_Weather { public class WeatherMET { public const int Kelvin = 1, Celsius = 0, Fahrenheit = 2; public WeatherInfo weatherinfo = new WeatherInfo(); /// <summary> /// Read weather data from The Norwegian Meteorological Institute /// </summary> /// <param name="latitude">Latitude of your place</param> /// <param name="longtitude">Longtitude of your place</</param> /// <returns>Returns true if successful</returns> public bool GetWeatherData(float latitude, float longtitude) { try { string xml = HelpClass.GETHtml("http://api.met.no/weatherapi/locationforecastlts/1.2/?lat=" + latitude + ";lon=" + longtitude); weatherinfo.CityLat = "" + latitude; weatherinfo.CityLon = "" + longtitude; if (ParseXML(xml)) return true; else return false; } catch (Exception ex) { Debug.WriteLine("" + ex); return false; } } /// <summary> /// Read weather data from The Norwegian Meteorological Institute /// </summary> /// <param name="latitude">Latitude of your place</param> /// <param name="longtitude">Longtitude of your place</</param> /// <returns>Returns true if successful</returns> public bool GetWeatherData(string latitude, string longtitude) { try { string xml = HelpClass.GETHtml("http://api.met.no/weatherapi/locationforecastlts/1.2/?lat=" + latitude + ";lon=" + longtitude); weatherinfo.CityLat = latitude; weatherinfo.CityLon = longtitude; if (ParseXML(xml)) return true; else return false; } catch (Exception ex) { Debug.WriteLine("" + ex); return false; } } /// <summary> /// Converts Celsius to Kelvin /// </summary> public float CelsiusToKelvin(float Celsius) { return Celsius + (float)273.15; } /// <summary> /// Converts Celsius to Fahrenheit /// </summary> public float CelsiusToFahrenheit(float Celsius) { return (Celsius * 9) / 5 + 32; } /// <summary> /// Returns temperature in specific units /// </summary> /// <param name="Unit">0 Celsius; 1 Kelvin; 2 Fahrenheit</param> public string GetTemperatureInUnits(int Unit) { if (Unit == 1) return CelsiusToKelvin(float.Parse(weatherinfo.Temperature.Replace('.', ','))) + " K"; else if (Unit == 2) return CelsiusToFahrenheit(float.Parse(weatherinfo.Temperature.Replace('.', ','))) + " °F"; else return weatherinfo.Temperature + " °C"; } private bool ParseXML(string XML) { try { if (!string.IsNullOrEmpty(XML)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(XML); XmlNode node = doc.DocumentElement.SelectNodes("/weatherdata/product/time")[0].SelectSingleNode("location"); XmlNode node2 = doc.DocumentElement.SelectNodes("/weatherdata/product/time")[1].SelectSingleNode("location"); weatherinfo.Temperature = node.SelectSingleNode("temperature").Attributes["value"].Value; weatherinfo.TemperatureUnit = node.SelectSingleNode("temperature").Attributes["unit"].Value; weatherinfo.Cloudiness = node.SelectSingleNode("cloudiness").Attributes["percent"].Value; weatherinfo.Humidity = node.SelectSingleNode("humidity").Attributes["value"].Value; weatherinfo.HumidityUnit = node.SelectSingleNode("humidity").Attributes["unit"].Value; weatherinfo.Pressure = node.SelectSingleNode("pressure").Attributes["value"].Value; weatherinfo.PressureUnit = node.SelectSingleNode("pressure").Attributes["unit"].Value; weatherinfo.WindDirection = node.SelectSingleNode("windDirection").Attributes["deg"].Value; weatherinfo.WindDirectionName = node.SelectSingleNode("windDirection").Attributes["name"].Value; weatherinfo.WindSpeed = node.SelectSingleNode("windSpeed").Attributes["mps"].Value; weatherinfo.Fog = node.SelectSingleNode("fog").Attributes["percent"].Value; weatherinfo.Precipitation = node2.SelectSingleNode("precipitation").Attributes["value"].Value; weatherinfo.Symbolnumber = node2.SelectSingleNode("symbol").Attributes["number"].Value; return true; } else { return false; } } catch (Exception ex) { Debug.WriteLine("" + ex); return false; } } /// <summary> /// Get current weather icon /// </summary> /// <param name="night">0 is day; 1 is night</param> /// <returns>Returns Image</returns> public Bitmap GetIcon(int night) { System.Net.WebRequest request = System.Net.WebRequest.Create("http://api.met.no/weatherapi/weathericon/1.1/?symbol=" + weatherinfo.Symbolnumber + ";is_night=" + night + ";content_type=image/png"); System.Net.WebResponse response = request.GetResponse(); System.IO.Stream responseStream = response.GetResponseStream(); return new Bitmap(responseStream); } } }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Dojo Tooltip Widget Test</title> <style type="text/css"> @import "../../dojo/resources/dojo.css"; @import "css/dijitTests.css"; </style> <script type="text/javascript" src="../../dojo/dojo.js" djConfig="parseOnLoad: true, isDebug: true"></script> <script type="text/javascript" src="_testCommon.js"></script> <script type="text/javascript"> dojo.require("dijit.Tooltip"); dojo.require("dojo.parser"); // find widgets dojo.addOnLoad(function(){ console.log("on load func"); var tt = new dijit.Tooltip({label:"programmatically created tooltip", connectId:["programmaticTest"]}); console.log("created", tt, tt.id); }); </script> </head> <body> <h1 class="testTitle">Tooltip test</h1> <p>Mouse-over or focus the items below to test tooltips.</p> <p> Change tooltip positioning search list: <button onclick="dijit.Tooltip.defaultPosition=['above', 'below'];">above, below</button> <button onclick="dijit.Tooltip.defaultPosition=['after', 'before'];">after, before (default)</button> </p> <div><span id="one" class="tt" tabindex="0"> focusable text </span> <span dojoType="dijit.Tooltip" connectId="one"> <b> <span style="color: blue;">rich formatting</span> <span style="color: red; font-size: x-large;"><i>!</i></span> </b> </span> </div> <span id="oneA" class="tt"> plain text (not focusable) </span> <span dojoType="dijit.Tooltip" connectId="oneA"> <span> keyboard users can not access this tooltip</span> </span> <a id="three" href="#bogus">anchor</a> <span dojoType="dijit.Tooltip" connectId="three">tooltip on a link </span> <p></p> <span id="programmaticTest">this text has a programmatically created tooltip</span> <br> <button id="four">button w/tooltip</button> <span id="btnTt" dojoType="dijit.Tooltip" connectId="four">tooltip on a button</span> <button onclick="dijit.byId('btnTt').destroy()">Remove</button> tooltip from "button w/tooltip". <span style="float: right"> Test tooltip on right aligned element. Tooltip should flow to the left --&gt; <select id="seven"> <option value="alpha">Alpha</option> <option value="beta">Beta</option> <option value="gamma">Gamma</option> <option value="delta">Delta</option> </select> <span dojoType="dijit.Tooltip" connectId="seven"> tooltip on a select<br> two line tooltip. </span> </span> <p></p> <form> <input type="input" id="id1" value="#1"><br> <input type="input" id="id2" value="#2"><br> <input type="input" id="id3" value="#3"><br> <input type="input" id="id4" value="#4"><br> <input type="input" id="id5" value="#5"><br> <input type="input" id="id6" value="#6"><br> </form> <br> <div style="overflow: auto; height: 100px; position: relative; border: solid blue 3px;"> <span id="s1">s1 text</span><br><br><br> <span id="s2">s2 text</span><br><br><br> <span id="s3">s3 text</span><br><br><br> <span id="s4">s4 text</span><br><br><br> <span id="s5">s5 text</span><br><br><br> </div> <span dojoType="dijit.Tooltip" connectId="id1"> tooltip for #1<br> long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;long&nbsp;text<br> make sure that this works properly with a really narrow window </span> <span dojoType="dijit.Tooltip" connectId="id2">tooltip for #2</span> <span dojoType="dijit.Tooltip" connectId="id3">tooltip for #3</span> <span dojoType="dijit.Tooltip" connectId="id4">tooltip for #4</span> <span dojoType="dijit.Tooltip" connectId="id5">tooltip for #5</span> <span dojoType="dijit.Tooltip" connectId="id6">tooltip for #6</span> <span dojoType="dijit.Tooltip" connectId="s1">s1 tooltip</span> <span dojoType="dijit.Tooltip" connectId="s2">s2 tooltip</span> <span dojoType="dijit.Tooltip" connectId="s3">s3 tooltip</span> <span dojoType="dijit.Tooltip" connectId="s4">s4 tooltip</span> <span dojoType="dijit.Tooltip" connectId="s5">s5 tooltip</span> <h3>One Tooltip for multiple connect nodes</h3> <span dojoType="dijit.Tooltip" connectId="multi1,multi2" style="display:none;">multi tooltip</span> <a id="multi1" href="#bogus">multi1</a><br><a id="multi2" href="#bogus">multi2</a> </body> </html>
<?php /* Unsafe sample input : Get a serialize string in POST and unserialize it sanitize : none construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.*/ $string = $_POST['UserData'] ; $tainted = unserialize($string); //no_sanitizing //flaw $var = require(sprintf("'%s'.php", $tainted)); ?>
Many international airlines operate business class flights from Kauai Island to Vadodara, one of the busiest routes for business travel. Search for the cheapest business class airline tickets for Vadodara flights from Kauai Island, US, at IndianEagle. IndianEagle is the only international travel agency to book discount business class flights with the best airlines in business travel from United States to India. Check our business class airfare deals for flights from LIH to BDQ at IndianEagle, according to your travel dates. Let us book your business travel to make you save big on business flight tickets from Kauai Island (LIH) to Vadodara (BDQ) India. Flying in business class from Kauai Island to Vadodara is a matter of comfort. Reputed international airlines like Air India, Cathay Pacific, Delta Air Lines, Qatar Airways, United Airlines, British Airways, Etihad Airways, Jet Airways, Emirates and other airlines operate cheap business class flights from Kauai Island to Vadodara offering world-class services on board. Some airlines pamper travelers with free wine and champagne from a selection of exclusive brands on Vadodara flights from Kauai Island in business class. Some airlines treat passengers to luxury at airport lounges before departure of business flights to Vadodara (BDQ). Travelers with business class tickets for LIH to BDQ flights can get access to the operating airlines? signature or partner lounges at Vadodara Airport. Travel with cheap business class flight tickets from Kauai Island to reach Vadodara comfortably and relaxed.
# Version of HDF5 nuclear data format HDF5_VERSION_MAJOR = 2 HDF5_VERSION_MINOR = 0 HDF5_VERSION = (HDF5_VERSION_MAJOR, HDF5_VERSION_MINOR) # Version of WMP nuclear data format WMP_VERSION_MAJOR = 1 WMP_VERSION_MINOR = 1 WMP_VERSION = (WMP_VERSION_MAJOR, WMP_VERSION_MINOR) from .data import * from .neutron import * from .photon import * from .decay import * from .reaction import * from . import ace from .angle_distribution import * from .function import * from . import endf from .energy_distribution import * from .product import * from .angle_energy import * from .uncorrelated import * from .correlated import * from .kalbach_mann import * from .nbody import * from .thermal import * from .urr import * from .library import * from .fission_energy import * from .resonance import * from .resonance_covariance import * from .multipole import * from .grid import *
.icon-spin { display: inline-block; -moz-animation: spin 2s infinite linear; -o-animation: spin 2s infinite linear; -webkit-animation: spin 2s infinite linear; animation: spin 2s infinite linear; } .no-border-radius { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .text-uppercase { text-transform: uppercase; } .text-justify { text-align: justify; } .text-line-through { text-decoration: line-through; } .box-heading { font-weight: bold; font-family: 'Oswald'; margin-bottom: 15px; } .input-group .form-control { z-index: 1; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); height: 100%; } body { font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 1.42857143; color: #999999; background-color: #f0f2f5; height: 100%; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #999999; text-decoration: none; } a:hover, a:focus { color: #488c6c; text-decoration: none; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #f0f2f5; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 18px; margin-bottom: 18px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .require { color: #ff0000; } #wrapper { width: 100%; min-height: 100%; background-color: #594857; } #page-wrapper { min-height: 100%; padding: 0 !important; background-color: #f0f2f5; transition: 0.3s all linear; } @media (min-width: 768px) { #page-wrapper { position: relative; margin: 0 0 0 250px; padding: 0; } } #topbar { background: #ffffff; width: 100%; height: 50px; } #topbar.navbar-default { border: 0; } #topbar .navbar-header { width: 250px; height: 100%; background: #534351; text-align: center; } #topbar .navbar-header #logo { font-size: 20px; line-height: 20px; color: #ffffff; height: 100%; width: 100%; } #topbar .navbar-header #logo span.fa { display: none; } #topbar .navbar-header #logo span.logo-text { display: block; font-weight: bold; font-family: 'Oswald', sans-serif; font-size: 30px; } #topbar .topbar-main { display: block; height: 100%; background: #4b3d49; } #topbar .topbar-main #menu-toggle { float: left; padding: 15px 20px; background-color: transparent; -webkit-transition: all 0.3s; transition: all 0.3s; height: 50px; border-radius: 0; color: #ffffff; } #topbar .topbar-main #menu-toggle:hover, #topbar .topbar-main #menu-toggle:focus { color: #488c6c; } #topbar .topbar-main #menu-toggle i { font-size: 18px; margin-top: 3px; } #topbar .topbar-main #theme-setting { background-color: rgba(0, 0, 0, 0.15); } #topbar .topbar-main ul.nav.navbar-nav { display: none; } #topbar .topbar-main ul.nav.navbar-nav.horizontal-menu { display: block; } #topbar .topbar-main ul.nav.navbar-nav li.active a, #topbar .topbar-main ul.nav.navbar-nav li:hover a, #topbar .topbar-main ul.nav.navbar-nav li.open a { background: #ffffff; color: #999999; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown { position: static; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown.mega-menu-full .dropdown-menu { left: 20px; right: 20px; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu { left: auto; width: auto; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content { padding: 10px; margin: 0; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu { *width: auto !important; padding: 0px 15px !important; margin: 0 !important; border-right: 1px solid #eeeeee; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu:last-child { border-right: 0; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu li { padding: 2px !important; margin: 0 !important; list-style: none; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu li h3 { color: #555555; margin-top: 10px; padding-left: 5px; font-size: 15px; font-weight: normal; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu li a { padding: 5px !important; margin: 0 !important; font-weight: normal; display: block; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .mega-menu-submenu li a:hover { background: #f0f0f0; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .document-demo .mega-menu-submenu { border-right: none; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .document-demo .mega-menu-submenu li a { text-align: center; padding: 30px 5px !important; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .document-demo .mega-menu-submenu li a:hover { background: transparent; } #topbar .topbar-main ul.nav.navbar-nav li.mega-menu-dropdown > .dropdown-menu .mega-menu-content .document-demo .mega-menu-submenu li a i { font-size: 50px; display: block; width: 100%; margin-bottom: 20px; } #topbar .topbar-main ul.nav.navbar-nav li a { color: #ffffff; } #topbar #topbar-search { display: inline-block; width: 50px; position: absolute; -webkit-transition: all 0.4s; transition: all 0.4s; z-index: 10; background-color: rgba(0, 0, 0, 0.15); } #topbar #topbar-search .input-group .form-control { height: 50px; border: 0; background: transparent !important; padding-left: 0; margin-left: 12px; text-indent: -999999px; color: #efefef; } #topbar #topbar-search .input-group .form-control:hover { cursor: pointer; } #topbar #topbar-search .input-group .input-group-btn { height: 50px; } #topbar #topbar-search .input-group .input-group-btn .btn.submit { margin-left: -24px; padding: 0; width: 50px; background: none; border: 0 !important; display: block; color: #ffffff; cursor: pointer; } #topbar #topbar-search .input-group .input-group-btn .btn.submit i { font-size: 16px; } #topbar #topbar-search.open { -webkit-transition: all 0.4s; transition: all 0.4s; width: 300px !important; background-color: rgba(255, 255, 255, 0.15); } #topbar #topbar-search.open .input-group .form-control { text-indent: 0; } #topbar #topbar-search.open .input-group .form-control:hover { cursor: text; } #topbar #topbar-search.open .input-group .form-control .input-group-btn .btn.submit { margin-left: 0; } #topbar #topbar-search input:-moz-placeholder { color: #efefef; } #topbar #topbar-search input::-webkit-input-placeholder { color: #efefef; } #topbar .navbar-top-links li { display: inline-block; } #topbar .navbar-top-links li:last-child { margin-right: 15px; } #topbar .navbar-top-links li.open > a { background: #594857 !important; color: #ffffff !important; } #topbar .navbar-top-links li.open > a:hover, #topbar .navbar-top-links li.open > a:focus { background: #594857 !important; } #topbar .navbar-top-links li.open > a i { color: #ffffff; } #topbar .navbar-top-links li > a { padding: 15px 20px; height: 100%; color: #ffffff; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } #topbar .navbar-top-links li > a:hover, #topbar .navbar-top-links li > a:focus { background: #594857 !important; } #topbar .navbar-top-links li > a i { font-size: 16px; color: #ffffff; } #topbar .navbar-top-links li > a span.badge { position: absolute; top: 5px; right: 30px; padding: 3px 6px; color: #ffffff; } #topbar .navbar-top-links li > a img { position: relative; width: 25px; height: 25px; display: inline-block; } #topbar .navbar-top-links li .dropdown-menu li { display: block; } #topbar .navbar-top-links li .dropdown-menu li:last-child { margin-right: 0; } #topbar .navbar-top-links li .dropdown-menu li a { padding: 3px 20px; min-height: 0; color: #999999; } #topbar .navbar-top-links li .dropdown-menu li a div { white-space: normal; } #topbar .navbar-top-links li .dropdown-menu li a.btn { color: #FFFFFF; } #topbar .navbar-top-links li.topbar-user a { padding: 12px 15px 11px; } #topbar .navbar-top-links li.topbar-user a img { margin-right: 5px; } #topbar .navbar-top-links li#theme-setting a { padding: 12px 15px 11px; } #topbar .navbar-top-links ul.dropdown-alerts { width: 250px; min-width: 0; } #topbar .navbar-top-links ul.dropdown-alerts li { float: left; width: 100%; } #topbar .navbar-top-links ul.dropdown-alerts li a:hover, #topbar .navbar-top-links ul.dropdown-alerts li a:focus { background: #f7f7f8 !important; } #topbar .navbar-top-links ul.dropdown-alerts li ul { padding: 0; margin: 0; } #topbar .navbar-top-links ul.dropdown-alerts li ul li a { padding: 15px; display: block; border-top: 1px solid #efefef; font-size: 12px; } #topbar .navbar-top-links ul.dropdown-alerts li ul li a span { margin-right: 10px; padding: 3px; } #topbar .navbar-top-links ul.dropdown-alerts li ul li a span i { font-size: 14px; color: #FFFFFF; } #topbar .navbar-top-links ul.dropdown-alerts li:first-child a { border-top: 0; } #topbar .navbar-top-links ul.dropdown-alerts li.last a { background: #f7f7f8; width: 100%; border-top: 0; padding: 10px 15px; text-align: right; font-size: 12px; } #topbar .navbar-top-links ul.dropdown-alerts li.last a:hover { text-decoration: underline; } #topbar .navbar-top-links ul.dropdown-alerts li p { padding: 10px 15px; margin-bottom: 0; background: #594857; color: #ffffff; } #topbar .navbar-top-links ul.dropdown-messages { width: 250px; min-width: 0; } #topbar .navbar-top-links ul.dropdown-messages li { float: left; width: 100%; } #topbar .navbar-top-links ul.dropdown-messages li a:hover, #topbar .navbar-top-links ul.dropdown-messages li a:focus { background: #f7f7f8 !important; } #topbar .navbar-top-links ul.dropdown-messages li ul { padding: 0; margin: 0; } #topbar .navbar-top-links ul.dropdown-messages li ul li a { padding: 15px; display: block; border-top: 1px solid #efefef; } #topbar .navbar-top-links ul.dropdown-messages li ul li a .avatar img { width: 40px; height: 40px; margin-top: 0; float: left; display: block; } #topbar .navbar-top-links ul.dropdown-messages li ul li a .info { margin-left: 50px; display: block; } #topbar .navbar-top-links ul.dropdown-messages li ul li a .info .name { font-size: 12px; font-weight: bold; display: block; } #topbar .navbar-top-links ul.dropdown-messages li ul li a .info .name .label { font-size: 10px; padding: 3px; } #topbar .navbar-top-links ul.dropdown-messages li ul li a .info .desc { font-size: 12px; } #topbar .navbar-top-links ul.dropdown-messages li:first-child a { border-top: 0; } #topbar .navbar-top-links ul.dropdown-messages li.last a { background: #f7f7f8; width: 100%; border-top: 0; padding: 10px 15px; text-align: right; font-size: 12px; } #topbar .navbar-top-links ul.dropdown-messages li.last a:hover { text-decoration: underline; } #topbar .navbar-top-links ul.dropdown-messages li p { padding: 10px 15px; margin-bottom: 0; background: #594857; color: #ffffff; } #topbar .navbar-top-links ul.dropdown-tasks { width: 250px; min-width: 0; margin-left: -59px; } #topbar .navbar-top-links ul.dropdown-tasks li { float: left; width: 100%; } #topbar .navbar-top-links ul.dropdown-tasks li a:hover, #topbar .navbar-top-links ul.dropdown-tasks li a:focus { background: #f7f7f8 !important; } #topbar .navbar-top-links ul.dropdown-tasks li ul { padding: 0; margin: 0; } #topbar .navbar-top-links ul.dropdown-tasks li ul li a { padding: 15px; display: block; border-top: 1px solid #efefef; font-size: 12px; } #topbar .navbar-top-links ul.dropdown-tasks li ul li a span { margin-right: 10px; } #topbar .navbar-top-links ul.dropdown-tasks li ul li a span i { font-size: 13px; color: #FFFFFF; padding: 3px; } #topbar .navbar-top-links ul.dropdown-tasks li ul li a .progress { margin-bottom: 5px; } #topbar .navbar-top-links ul.dropdown-tasks li:first-child a { border-top: 0; } #topbar .navbar-top-links ul.dropdown-tasks li.last a { background: #f7f7f8; width: 100%; border-top: 0; padding: 10px 15px; text-align: right; } #topbar .navbar-top-links ul.dropdown-tasks li.last a:hover { text-decoration: underline; } #topbar .navbar-top-links ul.dropdown-tasks li p { padding: 10px 15px; margin-bottom: 0; background: #594857; color: #ffffff; } #topbar .navbar-top-links .dropdown-user li a { padding: 10px !important; height: auto; } #topbar .navbar-top-links .dropdown-user li a:hover, #topbar .navbar-top-links .dropdown-user li a:focus { background: #f7f7f8 !important; } #topbar .navbar-top-links .dropdown-user li a i { margin-right: 5px; color: #999999; width: 14px; } #topbar .navbar-top-links .dropdown-user li a .badge { position: absolute; margin-top: 5px; right: 10px; display: inline; font-size: 11px; padding: 3px 6px 3px 6px; text-align: center; vertical-align: middle; } #topbar .navbar-top-links .dropdown-theme-setting { width: 250px; min-width: 0; background-color: #594857; } #topbar .navbar-top-links .dropdown-theme-setting li { padding: 10px !important; } #topbar .navbar-top-links .dropdown-theme-setting li h4 { color: #ffffff; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li { cursor: pointer; width: 35px; height: 35px; border: 5px solid transparent; margin: 0 5px; display: inline-block; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.green-dark { background: #594857; border-color: #488c6c; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.red-dark { background: #594857; border-color: #bf4346; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-dark { background: #594857; border-color: #bf3773; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.blue-dark { background: #594857; border-color: #0a819c; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.yellow-dark { background: #594857; border-color: #f2994b; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.green-grey { background: #4b5d67; border-color: #488c6c; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.red-grey { background: #4b5d67; border-color: #bf4346; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-grey { background: #4b5d67; border-color: #bf3773; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.blue-grey { background: #4b5d67; border-color: #0a819c; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.yellow-grey { background: #4b5d67; border-color: #f2994b; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.yellow-green { background: #007451; border-color: #CCA32F; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.orange-grey { background: #322F2B; border-color: #D94E37; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-blue { background: #40516F; border-color: #DC6767; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-violet { background: #554161; border-color: #E82A62; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.orange-violet { background: #554161; border-color: #FF422B; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-green { background: #456445; border-color: #FF5E70; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.pink-brown { background: #573F2F; border-color: #A21E46; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.orange-blue { background: #33485C; border-color: #E74C3C; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.yellow-blue { background: #417CB2; border-color: #FFC34C; } #topbar .navbar-top-links .dropdown-theme-setting li ul#list-color li.green-blue { background: #417CB2; border-color: #66B354; } @media (min-width: 768px) { .navbar-top-links .dropdown-messages, .navbar-top-links .dropdown-tasks, .navbar-top-links .dropdown-alerts { margin-left: auto; } } .page-title-breadcrumb { padding: 10px 20px; background: #ffffff; -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05); clear: both; } .page-title-breadcrumb .page-header { margin: 0; padding: 0; border-bottom: 0; } .page-title-breadcrumb .page-header .page-title { font-size: 25px; font-weight: 300; display: inline-block; } .page-title-breadcrumb .page-header .page-subtitle { font-size: 14px; font-weight: 300; color: #bcbcbc; display: inline-block; } .page-title-breadcrumb .breadcrumb { margin-bottom: 0; padding-left: 0; padding-right: 0; border-radius: 0; background: transparent; } .page-title-breadcrumb .breadcrumb li + li:before { content: ""; padding: 0; } .horizontal-menu-page #sidebar { display: none; } .horizontal-menu-page #page-wrapper { margin-left: 0; } .horizontal-menu-page #menu-toggle { display: none; } #chat-form { position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: #594857; z-index: 9999; display: none; } #chat-form.fixed { position: fixed; min-height: 0 !important; } #chat-form .user-status { display: inline-block; background: #575d67; margin-right: 5px; width: 8px; height: 8px; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 8 !important; -moz-border-radius: 8px !important; border-radius: 8px !important; } #chat-form .user-status.is-online { background-color: #06b53c; } #chat-form .user-status.is-busy { background-color: #ee4749; } #chat-form .user-status.is-idle { background-color: #f7d227; } #chat-form .user-status.is-offline { background-color: #666666; } #chat-form .chat-inner { overflow: auto; height: 100%; } #chat-form .chat-header { font-size: 16px; color: #ffffff; padding: 30px 35px; line-height: 1; margin: 0; border-bottom: 1px solid #755f73; position: relative; } #chat-form .chat-header .chat-form-close { color: #ededed; font-size: 13px; } #chat-form .chat-group { margin-top: 30px; } #chat-form .chat-group > strong { text-transform: uppercase; color: #ededed; display: block; padding: 6px 35px; font-size: 14px; } #chat-form .chat-group > a { display: block; padding: 6px 35px; position: relative; color: #eaeaea; text-decoration: none; } #chat-form .chat-group > a .badge { font-size: 9px; margin-left: 5px; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); -webkit-opacity: 1; -moz-opacity: 1; opacity: 1; } #chat-form .chat-group > a .badge.is-hidden { -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; } #chat-form .chat-group > a.active { background: #675365; } #chat-form .chat-group > a.active:before { content: ''; display: block; position: absolute; width: 0px; height: 0px; border-style: solid; border-width: 8px 0 8px 8px; border-color: transparent transparent transparent #4b3d49; left: 0; top: 50%; margin-top: -8px; } #chat-form .chat-group > a:hover { background: #675365; } #chat-form #chat-box { position: absolute; right: 280px; width: 340px; background: #4b3d49; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; display: none; } #chat-form #chat-box .chat-box-header { padding: 20px 24px; font-size: 14px; color: #fff; border-bottom: 1px solid #755f73; } #chat-form #chat-box .chat-box-header .chat-box-close { color: #ededed; font-size: 13px; } #chat-form #chat-box .chat-box-header small { color: #BBBBBB; font-size: 12px; padding-left: 8px; } #chat-form #chat-box .chat-content { height: 250px; } #chat-form #chat-box ul.chat-box-body { list-style: none; margin: 0; padding: 0; overflow: auto; height: 250px; } #chat-form #chat-box ul.chat-box-body > li { padding: 20px 24px; padding-bottom: 5px; padding-top: 0px; } #chat-form #chat-box ul.chat-box-body > li:before { content: " "; display: table; } #chat-form #chat-box ul.chat-box-body > li:after { clear: both; content: " "; display: table; } #chat-form #chat-box ul.chat-box-body > li.odd { background: #51414f; } #chat-form #chat-box ul.chat-box-body > li .avt { width: 30px; height: 30px; border-radius: 50%; margin: 5px 5px 0px 0px; vertical-align: -9px; } #chat-form #chat-box ul.chat-box-body > li .user { font-weight: bold; color: #fff; } #chat-form #chat-box ul.chat-box-body > li .user:after { content: ':'; } #chat-form #chat-box ul.chat-box-body > li .time { float: right; font-style: italic; color: #ededed; font-size: 11px; margin-top: 12px; } #chat-form #chat-box ul.chat-box-body > li p { margin: 10px 0 8.5px; color: #eaeaea; } #chat-form #chat-box .chat-textarea { padding: 20px 24px; position: relative; } #chat-form #chat-box .chat-textarea textarea { background: #614f5f; border: 1px solid #614f5f; color: #fff; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } #chat-form #chat-box .chat-textarea textarea::-webkit-input-placeholder { /* WebKit browsers */ color: #ededed; } #chat-form #chat-box .chat-textarea textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #ededed; } #chat-form #chat-box .chat-textarea textarea::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #ededed; } #chat-form #chat-box .chat-textarea textarea:-ms-input-placeholder { /* Internet Explorer 10+ */ color: #ededed; } .sidebar-fixed { position: fixed; } #sidebar { background: #594857; } .navbar-static-side { transition: 0.3s all linear; } .navbar-static-side ul li { border-bottom: 1px solid #5f4d5d; } .navbar-static-side ul li:first-child a { padding: 0; } .navbar-static-side ul li.active a { background: #488c6c; outline: none; } .navbar-static-side ul li a { color: #FFFFFF; padding: 15px; } .navbar-static-side ul li a span.menu-title { margin-left: 10px; } .navbar-static-side ul li a i { font-size: 16px; min-width: 14px; } .navbar-static-side ul li a i .icon-bg { display: none; } .navbar-static-side ul li a:hover, .navbar-static-side ul li a:focus { background: #488c6c; transition: 0.2s all ease-in-out; outline: none; } .navbar-static-side ul li a .badge, .navbar-static-side ul li a .label { float: right; margin-right: 10px; } .navbar-static-side ul li a.menu-title { margin-left: 10px; } .navbar-static-side ul li .nav-second-level li { border-bottom: 1px solid #534351; } .navbar-static-side ul li .nav-second-level li.active a, .navbar-static-side ul li .nav-second-level li:hover a, .navbar-static-side ul li .nav-second-level li:focus a { color: #488c6c; } .navbar-static-side ul li .nav-second-level li a { padding: 15px 15px 15px 40px; background: #4b3d49; color: #efefef; } .navbar-static-side ul li .nav-second-level li a span.submenu-title { margin-left: 10px; } .navbar-static-side ul li .nav-second-level li .nav-third-level li { border-bottom: 1px solid #4e3f4c; } .navbar-static-side ul li .nav-second-level li .nav-third-level li.active a, .navbar-static-side ul li .nav-second-level li .nav-third-level li:hover a, .navbar-static-side ul li .nav-second-level li .nav-third-level li:focus a { color: #488c6c; } .navbar-static-side ul li .nav-second-level li .nav-third-level li a { padding: 15px 15px 15px 40px; background: #423641; color: #efefef; } .navbar-static-side ul li .nav-second-level li .nav-third-level li a span.submenu-title { margin-left: 10px; } .navbar-static-side ul li.sidebar-heading { padding: 5px 15px; } .navbar-static-side ul li.sidebar-heading h4 { font-family: 'Oswald'; font-size: 18px; font-weight: bold; color: #488c6c; } .navbar-static-side ul li.user-panel { padding: 15px; } .navbar-static-side ul li.user-panel .thumb { float: left; border: 5px solid rgba(255, 255, 255, 0.1); border-radius: 50%; } .navbar-static-side ul li.user-panel .thumb img { width: 45px; height: 45px; } .navbar-static-side ul li.user-panel .info { float: left; padding: 5px 5px 5px 15px; color: #ffffff; } .navbar-static-side ul li.user-panel .info p { margin-bottom: 3px; font-size: 16px; } .navbar-static-side ul li.user-panel .info a { font-size: 10px; } .navbar-static-side ul li.user-panel .info a i { font-size: 14px; color: #999; } .navbar-static-side ul li.user-panel .info a:hover, .navbar-static-side ul li.user-panel .info a:focus { background-color: transparent; } .navbar-static-side ul li.user-panel .info a:hover i, .navbar-static-side ul li.user-panel .info a:focus i { color: #777; } .navbar-static-side ul li.user-panel ul li { border-bottom: 0; } .sidebar-user-info { padding: 15px; } .sidebar-user-info img { border: 5px solid #438264; width: 75px; height: 75px; display: inline-block; } .sidebar-user-info h4 { color: #FFFFFF; margin-bottom: 5px; } .sidebar-user-info ul { margin-bottom: 3px; } .sidebar-user-info ul li { border-bottom: 0 !important; } .sidebar-user-info ul li a { color: #cdcdcd; } .sidebar-user-info .user-status { width: 10px; height: 10px; border-radius: 50% !important; display: inline-block; background: transparent; margin-right: 5px; } .sidebar-user-info .user-status.is-online { background: #06B53C; } .sidebar-user-info .user-status.is-idle { background: #F7D227; } .sidebar-user-info .user-status.is-busy { background: #ee4749; } .sidebar-user-info .user-status.is-offline { background: #666666; } .sidebar-user-info span { color: #FFFFFF; } .sidebar-user-activity { padding: 15px; border-bottom: 0 !important; } .sidebar-user-activity h4 { color: #FFFFFF; } .sidebar-user-activity .note { padding: 3px 15px; margin-bottom: 5px; } .sidebar-user-activity .note small { color: #cdcdcd; } .sidebar-user-activity .note a:hover, .sidebar-user-activity .note a:focus { background: transparent; } .arrow { float: right; margin-top: 3px; } .fa.arrow:before { content: "\f104"; } .active > a > .fa.arrow:before { content: "\f107"; } @media (min-width: 768px) { .navbar-static-side { z-index: 1; position: absolute; width: 250px; } } .right-sidebar #topbar .navbar-header { float: right; border-right: 0; } .right-sidebar #sidebar { left: auto; right: 0; } .right-sidebar #page-wrapper { margin: 0 250px 0 0; } /* Begin Horizontal menu */ /* Begin Left Sidebar Collapsed */ .left-side-collapsed .navbar-static-side { width: 55px; } .left-side-collapsed .navbar-static-side ul#side-menu li.user-panel { display: none; } .left-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a { height: 50px; } .left-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a span.menu-title { display: block !important; } .left-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a span.submenu-title { display: block !important; margin-left: 0; } .left-side-collapsed .navbar-static-side ul#side-menu li.nav-hover ul.nav-second-level { display: block; position: absolute; top: 50px; left: 55px; width: 195px; } .left-side-collapsed .navbar-static-side ul#side-menu li.nav-hover ul.nav-second-level li a { padding: 15px; } .left-side-collapsed .navbar-static-side ul#side-menu li a span { display: none; } .left-side-collapsed .navbar-static-side ul#side-menu li a i.fa { font-size: 18px; } .left-side-collapsed .navbar-static-side ul#side-menu li a span.menu-title { position: absolute; top: 0; left: 55px; padding: 15px; margin-left: 0; background: #488c6c; color: #ffffff; width: 195px; height: 50px; } .left-side-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level { display: none; position: absolute; top: 50px; left: 55px; width: 195px; } .left-side-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level li a i { display: none; } .left-side-collapsed #page-wrapper { margin: 0 0 0 55px; } /* End Left Sidebar Collapsed */ /* Begin Right Sidebar Collapsed */ .right-side-collapsed .navbar-static-side { width: 55px; } .right-side-collapsed .navbar-static-side ul#side-menu li.user-panel { display: none; } .right-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a { height: 50px; } .right-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a span.menu-title { display: block !important; } .right-side-collapsed .navbar-static-side ul#side-menu li.nav-hover a span.submenu-title { display: block !important; margin-right: 0; } .right-side-collapsed .navbar-static-side ul#side-menu li.nav-hover ul.nav-second-level { display: block; position: absolute; top: 50px; right: 55px; width: 195px; } .right-side-collapsed .navbar-static-side ul#side-menu li.nav-hover ul.nav-second-level li a { padding: 15px 5px; } .right-side-collapsed .navbar-static-side ul#side-menu li a span { display: none; } .right-side-collapsed .navbar-static-side ul#side-menu li a i.fa { font-size: 18px; } .right-side-collapsed .navbar-static-side ul#side-menu li a span.menu-title { position: absolute; top: 0; right: 55px; padding: 15px; margin-right: 0; background: #488c6c; color: #ffffff; width: 195px; height: 50px; } .right-side-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level { display: none; position: absolute; top: 50px; right: 55px; width: 195px; } .right-side-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level li a i { display: none; } .right-side-collapsed #page-wrapper { margin: 0 55px 0 0; } /* End Left Sidebar Collapsed */ .page-content { padding: 20px 20px 50px 20px; min-height: 700px; } #footer { width: 100%; padding: 7px 20px; background-color: #4b3d49; color: #FFFFFF; font-size: 12px; text-align: right; } /*panel stat*/ #sum_box .db { -webkit-transition: all 0.3s ease 0s; transition: all 0.3s ease 0s; } #sum_box .icon { color: #999999; font-size: 55px; margin-bottom: 0px; float: right; } #sum_box h4 { text-align: left; margin-top: 0px; font-size: 30px; margin-bottom: 0px; padding-bottom: 0px; } #sum_box h4 span:last-child { font-size: 25px; } #sum_box p.description { margin-top: 0px; opacity: .6; } #sum_box .db:hover { background: #594857; color: #fff; } #sum_box .db:hover .icon { opacity: 1; color: #fff; } #sum_box .db:hover p.description { opacity: 1; } /*panel stat*/ /*user profile*/ .profile { display: inline-block; } .profile h2 { margin-top: 0; } .profile .divider { border-top: 1px solid rgba(0, 0, 0, 0.1); } figcaption.ratings { margin-top: 20px; } figcaption.ratings a { color: #f1c40f; font-size: 11px; } .emphasis { border-top: 4px solid transparent; padding-top: 15px; } .emphasis:hover { border-top: 4px solid #1abc9c; } .emphasis h2 { margin-bottom: 0; } /*user profile*/ /*to-do list*/ ul.todo-list { overflow: hidden; width: auto; height: 250px; padding: 0; } ul.todo-list li { background: #f3f3f3; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; position: relative; padding: 13px; margin-bottom: 5px; cursor: move; list-style: none; } ul.todo-list li span.drag-drop { height: 17px; display: block; float: left; width: 7px; position: relative; top: 2px; } ul.todo-list li span.drag-drop i { height: 2px; width: 2px; display: block; background: #ccc; box-shadow: 5px 0 0 0px #ccc,0px 5px 0 0px #ccc,5px 5px 0 0px #ccc,0px 10px 0 0px #ccc,5px 10px 0 0px #ccc,0px 15px 0 0px #ccc,5px 15px 0 0px #ccc; -webkit-box-shadow: 5px 0 0 0px #ccc,0px 5px 0 0px #ccc,5px 5px 0 0px #ccc,0px 10px 0 0px #ccc,5px 10px 0 0px #ccc,0px 15px 0 0px #ccc,5px 15px 0 0px #ccc; -moz-box-shadow: 5px 0 0 0px #ccc,0px 5px 0 0px #ccc,5px 5px 0 0px #ccc,0px 10px 0 0px #ccc,5px 10px 0 0px #ccc,0px 15px 0 0px #ccc,5px 15px 0 0px #ccc; } ul.todo-list li .todo-check { margin-left: 10px; margin-right: 10px; } ul.todo-list li .todo-title { margin-right: 90px; } ul.todo-list li .todo-actions { position: absolute; right: 15px; top: 13px; } ul.todo-list li .todo-actions a i { color: #999999; margin: 0 5px; } ul.todo-list li .todo-actions a:hover i, ul.todo-list li .todo-actions a:focus i { color: #555555; } /*to-do list*/ /*chat form*/ ul.chats { margin: 0; padding: 0; } ul.chats li { list-style: none; margin: 30px auto; font-size: 12px; } ul.chats li:first-child { margin-top: 0; } ul.chats li img.avatar { width: 50px; height: 50px; -webkit-border-radius: 50% !important; -moz-border-radius: 50% !important; border-radius: 50% !important; } ul.chats li .message { display: block; padding: 7px; position: relative; } ul.chats li .message .chat-datetime { font-style: italic; color: #888; font-size: 11px; } ul.chats li .message .chat-body { display: block; margin-top: 5px; } ul.chats li.in img.avatar { float: left; } ul.chats li.in .message { background: #fafbfc; margin-left: 65px; border-left: 3px solid #e5e5e5; border-radius: 4px; } .chats li.in .message .chat-arrow { display: block; position: absolute; top: 15px; left: -10px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid #e5e5e5; } ul.chats li.in .message a.chat-name { color: #488c6c; } ul.chats li.out img.avatar { float: right; } ul.chats li.out .message { background: #f3f3f3; margin-right: 65px; border-right: 3px solid #e5e5e5; text-align: right; border-radius: 4px; } ul.chats li.out .message .chat-arrow { display: block; position: absolute; top: 15px; right: -10px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid #e5e5e5; } ul.chats li.out .message a.chat-name { color: #488c6c; } ul.chats li.out .message a.chat-name, ul.chats li.out .message a.chat-datetime { text-align: right; } .chat-form { margin-top: 15px; padding: 10px; background-color: #f0f0f0; overflow: hidden; clear: both; } .chat-form #input-chat, .chat-form .input-group-btn .btn { border: 0; } .chat-form .input-group-btn:last-child > .btn, .chat-form .input-group-btn:last-child > .btn-group { margin-left: 0; } /*chat form*/ .row-icons { padding: 15px 0; margin: 0; } .row-icons [class*="col"] { margin-bottom: 20px; padding: 0; } .row-icons [class*="col"] a { line-height: 30px; display: inline-block; color: #999999; text-decoration: none; } .row-icons [class*="col"] a:hover i.fa:before { color: #5cab86; } .row-icons [class*="col"] a:hover i.glyphicon:before { color: #5cab86; } .row-icons [class*="col"] i.fa { vertical-align: middle; margin: 0 10px; width: 40px; } .row-icons [class*="col"] i:before { color: #488c6c; font-size: 30px; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .row-icons [class*="col"] span { padding-left: 20px; vertical-align: top; } .modal-full-width { width: 100%; } .modal-wide-width { width: 70%; } #error-page { background: #F0F2F5; text-align: center; position: relative; } #error-page #error-page-content { width: 480px; margin: 10% auto 0 auto; text-align: center; } #error-page #error-page-content h1 { font-family: 'oswald'; font-size: 150px; font-weight: bold; color: #488c6c; } #error-page #error-page-content p a { color: #488c6c; } #error-page #error-page-content p a:hover, #error-page #error-page-content p a:focus { text-decoration: underline; } #signin-page { background: url('http://swlabs.co/madmin/code/style2/images/bg/1.jpg') center center fixed; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-size: cover; } #signup-page { background: url('http://swlabs.co/madmin/code/style2/images/bg/2.jpg') center center fixed; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-size: cover; } #lock-screen-page { background: url('http://swlabs.co/madmin/code/style2/images/bg/3.jpg') center center fixed; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-size: cover; } #lock-screen-page .page-form { background-color: rgba(0, 0, 0, 0.2); color: #ffffff; } #lock-screen-page .page-form input { background-color: rgba(0, 0, 0, 0.3); border: 0; } .page-form { width: 400px; margin: 5% auto 0 auto; background: #eeeeee; border-radius: 4px; } .page-form .input-icon i { margin-top: 12px; } .page-form input[type='text'], .page-form input[type='password'], .page-form input[type='email'], .page-form select { height: 40px; border-color: #e5e5e5; -webkit-box-shadow: none !important; box-shadow: none !important; color: #999999; } .page-form .header-content { padding: 15px 20px; background: #e9e9e9; border-top-left-radius: 4px; border-top-right-radius: 4px; } .page-form .header-content h1 { font-family: 'oswald'; font-size: 30px; font-weight: bold; text-align: center; margin: 0; text-transform: uppercase; } .page-form .body-content { padding: 15px 20px; position: relative; } .page-form .body-content .btn-twitter { background: #5bc0de; margin-bottom: 10px; color: #ffffff; } .page-form .body-content .btn-twitter i { margin-right: 5px; } .page-form .body-content .btn-twitter:hover, .page-form .body-content .btn-twitter:focus { color: #ffffff; } .page-form .body-content .btn-facebook { background: #418bca; margin-bottom: 10px; color: #ffffff; } .page-form .body-content .btn-facebook i { margin-right: 5px; } .page-form .body-content .btn-facebook:hover, .page-form .body-content .btn-facebook:focus { color: #ffffff; } .page-form .body-content .btn-google-plus { background: #dd4c39; margin-bottom: 10px; color: #ffffff; } .page-form .body-content .btn-google-plus i { margin-right: 5px; } .page-form .body-content .btn-google-plus:hover, .page-form .body-content .btn-google-plus:focus { color: #ffffff; } .page-form .body-content p a { color: #488c6c; } .page-form .body-content p a:hover, .page-form .body-content p a:focus { color: #777777; text-decoration: none; } .page-form .body-content .forget-password h4 { text-transform: uppercase; font-size: 16px; } .page-form .body-content hr { border-color: #e0e0e0; } .page-form .state-error + em { display: block; margin-top: 6px; padding: 0 1px; font-style: normal; font-size: 11px; line-height: 15px; color: #d9534f; } .page-form .rating.state-error + em { margin-top: -4px; margin-bottom: 4px; } .page-form .state-success + em { display: block; margin-top: 6px; padding: 0 1px; font-style: normal; font-size: 11px; line-height: 15px; color: #d9534f; } .page-form .state-error input, .page-form .state-error select { background: #f2dede; } .page-form .state-success input, .page-form .state-success select { background: #dff0d8; } .page-form .note-success { color: #5cb85c; } .page-form label { font-weight: normal; margin-bottom: 0; } #lock-screen-page .page-form { margin-top: 15%; text-align: center; } #lock-screen-page .page-form h1 { margin: 0; font-family: 'Oswald'; } #lock-screen-avatar { top: -78px; left: 50%; margin-left: -74px; position: absolute; display: inline-block; } #lock-screen-avatar img { border: 10px solid #eeeeee; } #lock-screen-info { margin-top: 60px; } @media only screen and (max-width: 480px) { .page-form { width: 280px; } #lock-screen-page .page-form { margin-top: 35%; } } canvas { width: 100% !important; max-width: 800px; height: auto !important; } .timeline-centered { position: relative; margin-bottom: 30px; } .timeline-centered.timeline-sm .timeline-entry { margin-bottom: 20px !important; } .timeline-centered.timeline-sm .timeline-entry .timeline-entry-inner .timeline-label { padding: 1em; } .timeline-centered:before, .timeline-centered:after { content: " "; display: table; } .timeline-centered:after { clear: both; } .timeline-centered:before { content: ''; position: absolute; display: block; width: 7px; background: #ffffff; left: 50%; top: 20px; bottom: 20px; margin-left: -4px; } .timeline-centered .timeline-entry { position: relative; width: 50%; float: right; margin-bottom: 70px; clear: both; } .timeline-centered .timeline-entry:before, .timeline-centered .timeline-entry:after { content: " "; display: table; } .timeline-centered .timeline-entry:after { clear: both; } .timeline-centered .timeline-entry.begin { margin-bottom: 0; } .timeline-centered .timeline-entry.left-aligned { float: left; } .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner { margin-left: 0; margin-right: -28px; } .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-time { left: auto; right: -115px; text-align: left; } .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-icon { float: right; } .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-label { margin-left: 0; margin-right: 85px; } .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-label:after { left: auto; right: 0; margin-left: 0; margin-right: -9px; -moz-transform: rotate(180deg); -o-transform: rotate(180deg); -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } .timeline-centered .timeline-entry .timeline-entry-inner { position: relative; margin-left: -31px; } .timeline-centered .timeline-entry .timeline-entry-inner:before, .timeline-centered .timeline-entry .timeline-entry-inner:after { content: " "; display: table; } .timeline-centered .timeline-entry .timeline-entry-inner:after { clear: both; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-time { position: absolute; left: -115px; text-align: right; padding: 10px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-time > span { display: block; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-time > span:first-child { font-size: 18px; font-weight: bold; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-time > span:last-child { font-size: 12px; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon { background: #fff; color: #999999; display: block; width: 60px; height: 60px; -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; border-radius: 50%; text-align: center; border: 7px solid #ffffff; line-height: 45px; font-size: 15px; float: left; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-primary { background-color: #488c6c; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-success { background-color: #5cb85c; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-info { background-color: #5bc0de; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-warning { background-color: #f0ad4e; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-danger { background-color: #d9534f; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-red { background-color: #bf4346; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-green { background-color: #488c6c; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-blue { background-color: #0a819c; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-yellow { background-color: #f2994b; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-orange { background-color: #e9662c; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-pink { background-color: #bf3773; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-violet { background-color: #9351ad; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-grey { background-color: #4b5d67; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-dark { background-color: #594857; color: #fff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label { position: relative; background: #ffffff; padding: 1.7em; margin-left: 85px; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-red { background: #bf4346; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-red:after { border-color: transparent #bf4346 transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-red .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-red p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-green { background: #488c6c; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-green:after { border-color: transparent #488c6c transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-green .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-green p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-orange { background: #e9662c; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-orange:after { border-color: transparent #e9662c transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-orange .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-orange p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-yellow { background: #f2994b; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-yellow:after { border-color: transparent #f2994b transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-yellow .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-yellow p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-blue { background: #0a819c; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-blue:after { border-color: transparent #0a819c transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-blue .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-blue p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-pink { background: #bf3773; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-pink:after { border-color: transparent #bf3773 transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-pink .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-pink p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-violet { background: #9351ad; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-violet:after { border-color: transparent #9351ad transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-violet .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-violet p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-grey { background: #4b5d67; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-grey:after { border-color: transparent #4b5d67 transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-grey .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-grey p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-dark { background: #594857; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-dark:after { border-color: transparent #594857 transparent transparent; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-dark .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label.bg-dark p { color: #ffffff; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label:after { content: ''; display: block; position: absolute; width: 0; height: 0; border-style: solid; border-width: 9px 9px 9px 0; border-color: transparent #ffffff transparent transparent; left: 0; top: 20px; margin-left: -9px; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label .timeline-title, .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p { color: #999999; margin: 0; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p + p { margin-top: 15px; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label .timeline-title { margin-bottom: 10px; font-family: 'Oswald'; font-weight: bold; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label .timeline-title span { -webkit-opacity: .6; -moz-opacity: .6; opacity: .6; -ms-filter: alpha(opacity=60); filter: alpha(opacity=60); } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p .timeline-img { margin: 5px 10px 0 0; } .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p .timeline-img.pull-right { margin: 5px 0 0 10px; } .panel-group .panel .panel { margin-bottom: 15px; } .panel-group .panel .panel-title { font-size: 17px; font-weight: 400; } .panel-group .panel .panel-title .accordion-toggle { padding: 7px 0px; } .tab-content.tab-edit { background: transparent; border: 0px; } .nav-pills li.active a { border: 1px solid #488c6c; } ul.nav.nav-tabs.ul-edit { border-bottom: 5px solid #488c6c !important; } ul.nav.nav-tabs.ul-edit li a { border: 0px; background: none; padding: 10px 20px; } ul.nav.nav-tabs.ul-edit li.active a { background: #488c6c; color: #fff; border: 0px; } .timeline { list-style: none; padding: 20px 0 20px; position: relative; } .timeline:before { top: 0; bottom: 0; position: absolute; content: " "; width: 3px; background-color: #fff; left: 50%; margin-left: -1.5px; } .timeline > li { margin-bottom: 20px; position: relative; } .timeline > li:before, .timeline > li:after { content: " "; display: table; } .timeline > li:after { clear: both; } .timeline > li:before, .timeline > li:after { content: " "; display: table; } .timeline > li:after { clear: both; } .timeline > li > .timeline-panel { width: 44%; float: left; border: 1px solid #d4d4d4; border-radius: 2px; padding: 20px; position: relative; -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175); background: #fff; } .timeline > li > .timeline-panel.primary { background: #2e6da4; color: #fff; } .timeline > li > .timeline-panel.primary:after { border-left: 14px solid #2e6da4 ; border-right: 0 solid #2e6da4 ; } .timeline > li > .timeline-panel.success { background: #3f903f; color: #fff; } .timeline > li > .timeline-panel.success:after { border-left: 14px solid #3f903f ; border-right: 0 solid #3f903f ; } .timeline > li > .timeline-panel.warning { background: #f0ad4e; color: #fff; } .timeline > li > .timeline-panel.warning:after { border-left: 14px solid #f0ad4e ; border-right: 0 solid #f0ad4e ; } .timeline > li > .timeline-panel.danger { background: #d9534f; color: #fff; } .timeline > li > .timeline-panel.danger:after { border-left: 14px solid #d9534f ; border-right: 0 solid #d9534f ; } .timeline > li > .timeline-panel.info { background: #5bc0de; color: #fff; } .timeline > li > .timeline-panel.info:after { border-left: 14px solid #5bc0de ; border-right: 0 solid #5bc0de ; } .timeline > li > .timeline-panel:before { position: absolute; top: 26px; right: -15px; display: inline-block; border-top: 15px solid transparent; border-left: 15px solid #ccc; border-right: 0 solid #ccc; border-bottom: 15px solid transparent; content: " "; } .timeline > li > .timeline-panel:after { position: absolute; top: 27px; right: -14px; display: inline-block; border-top: 14px solid transparent; border-left: 14px solid #fff; border-right: 0 solid #fff; border-bottom: 14px solid transparent; content: " "; } .timeline > li > .timeline-badge { color: #fff; width: 50px; height: 50px; line-height: 35px; font-size: 1.4em; text-align: center; position: absolute; top: 16px; left: 50%; margin-left: -25px; background-color: #999999; z-index: 100; border-top-right-radius: 50%; border-top-left-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; border: 2px solid #fff; } .timeline > li > .timeline-badge i.glyphicon { top: 7px; } .timeline > li.timeline-inverted > .timeline-panel { float: right; } .timeline > li.timeline-inverted > .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; } .timeline > li.timeline-inverted > .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; } .timeline-badge.primary { background-color: #2e6da4 !important; } .timeline-badge.success { background-color: #3f903f !important; } .timeline-badge.warning { background-color: #f0ad4e !important; } .timeline-badge.danger { background-color: #d9534f !important; } .timeline-badge.info { background-color: #5bc0de !important; } .timeline-title { margin-top: 0; color: inherit; } .timeline-body > p, .timeline-body > ul { margin-bottom: 0; } .timeline-body > p + p { margin-top: 5px; } @media (max-width: 767px) { ul.timeline:before { left: 40px; } ul li:not(.timeline-inverted) .timeline-panel:after { border-left: 0px !important; } ul li:not(.timeline-inverted) .timeline-panel.primary:before { border-right: 15px solid #2e6da4; } ul li:not(.timeline-inverted) .timeline-panel.danger:before { border-right: 15px solid #d9534f; } ul.timeline > li > .timeline-panel { width: calc(80%); width: -moz-calc(80%); width: -webkit-calc(80%); } ul.timeline > li > .timeline-badge { left: 15px; margin-left: 0; top: 16px; } ul.timeline > li > .timeline-panel { float: right; } ul.timeline > li > .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; } ul.timeline > li > .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; } } #one-column .message-item { margin-bottom: 25px; margin-left: 40px; position: relative; } #one-column .message-item .message-inner { background: #fff; border: 1px solid #ddd; border-radius: 0px; padding: 10px; position: relative; } #one-column .message-item .message-inner:before { border-right: 10px solid #ddd; border-style: solid; border-width: 10px; color: rgba(0, 0, 0, 0); content: ""; display: block; height: 0; position: absolute; left: -20px; top: 6px; width: 0; } #one-column .message-item .message-inner:after { border-right: 10px solid #fff; border-style: solid; border-width: 10px; color: rgba(0, 0, 0, 0); content: ""; display: block; height: 0; position: absolute; left: -18px; top: 6px; width: 0; } #one-column .message-item:before { background: #fff; border-radius: 2px; bottom: -30px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); content: ""; height: 100%; left: -30px; position: absolute; width: 3px; } #one-column .message-item:after { background: #fff; border: 2px solid #ccc; border-radius: 0px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); content: ""; height: 15px; left: -36px; position: absolute; top: 10px; width: 15px; } #one-column .clearfix:before, #one-column .clearfix:after { content: " "; display: table; } #one-column .message-item .message-head { border-bottom: 1px solid #eee; margin-bottom: 8px; padding-bottom: 8px; } #one-column .message-item .message-head .avatar { margin-right: 20px; } #one-column .message-item .message-head .user-detail { overflow: hidden; } #one-column .message-item .message-head .user-detail h5 { font-size: 16px; font-weight: bold; margin: 0; } #one-column .message-item .message-head .post-meta { float: left; padding: 0 15px 0 0; } #one-column .message-item .message-head .post-meta > div { color: #333; font-weight: bold; text-align: right; } #one-column .post-meta > div { color: #777; font-size: 12px; line-height: 22px; } #one-column .message-item .message-head .post-meta > div { color: #333; font-weight: bold; text-align: right; } #one-column .post-meta > div { color: #777; font-size: 12px; line-height: 22px; } #one-column .avatar img { min-height: 40px; max-height: 40px; } #one-column .post-meta .qa-message-who-pad { margin-left: 10px; } #one-column .message-item.blue:after { background: #0a819c; } #one-column .message-item.blue .message-inner { border-color: #0a819c; } #one-column .message-item.blue .message-inner:before { border-right-color: #0a819c; } #one-column .message-item.red:after { background: #bf4346; } #one-column .message-item.red .message-inner { border-color: #bf4346; } #one-column .message-item.red .message-inner:before { border-right-color: #bf4346; } #one-column .message-item.green:after { background: #488c6c; } #one-column .message-item.green .message-inner { border-color: #488c6c; } #one-column .message-item.green .message-inner:before { border-right-color: #488c6c; } #one-column .message-item.orange:after { background: #e9662c; } #one-column .message-item.orange .message-inner { border-color: #e9662c; } #one-column .message-item.orange .message-inner:before { border-right-color: #e9662c; } #one-column .message-item.pink:after { background: #bf3773; } #one-column .message-item.pink .message-inner { border-color: #bf3773; } #one-column .message-item.pink .message-inner:before { border-right-color: #bf3773; } #one-column .message-item.violet:after { background: #9351ad; } #one-column .message-item.violet .message-inner { border-color: #9351ad; } #one-column .message-item.violet .message-inner:before { border-right-color: #9351ad; } .blog-page h1 { margin-bottom: 20px; } .blog-page .blog-articles { padding-bottom: 20px; } .blog-page .blog-articles .blog-img { margin-bottom: 10px; } .blog-page .blog-articles .blog-img img { margin-bottom: 12px; } .blog-page .blog-articles .blog-img ul { margin-bottom: 5px; margin-left: 0; } .blog-page .blog-articles .blog-img ul li { padding: 0; } .blog-page .blog-articles .blog-img ul li i { color: #488c6c; margin-right: 3px; } .blog-page .blog-articles .blog-img ul li a { margin-right: 8px; text-decoration: none; } .blog-page .blog-articles .blog-img ul.blog-date li i { color: #488c6c; margin-right: 3px; } .blog-page .blog-articles .blog-img ul.blog-date li a { color: #999999; } .blog-page .blog-articles .blog-article { padding-bottom: 20px; } .blog-page .blog-articles .blog-article h3 { margin-top: 0; } .blog-page .blog-articles ul.blog-tags { margin-bottom: 5px; margin-left: 0; } .blog-page .blog-articles ul.blog-tags li { padding: 0; } .blog-page .blog-articles ul.blog-tags li i { color: #488c6c; margin-right: 3px; } .blog-page .blog-articles ul.blog-tags li a { margin-right: 8px; text-decoration: none; } .blog-page .blog-articles ul.blog-date li i { color: #488c6c; margin-right: 3px; } .blog-page .blog-articles ul.blog-date li a { color: #999999; } .blog-page .blog-sidebar ul li a { color: #999999; } .blog-page .blog-sidebar .blog-images li a img { width: 50px; height: 50px; opacity: 0.6; margin: 0 2px 8px; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .blog-page .blog-sidebar .blog-images li a img:hover { opacity: 1; } .blog-page .blog-sidebar .sidebar-tags li { padding: 0; } .blog-page .blog-sidebar .sidebar-tags li a { color: #ffffff; margin: 0 2px 5px 0; display: inline-block; } .blog-page hr { margin-bottom: 40px; } .blog-page h4.media-heading span { font-size: 12px; } .blog-page .media .media-body hr { margin-bottom: 20px; } #external-events .external-event { display: inline-block; cursor: move; margin-bottom: 5px; margin-right: 5px; } .gallery-pages .list-filter { margin-top: 10px; margin-bottom: 20px; } .gallery-pages .list-filter li { cursor: pointer; padding: 6px 15px; margin-right: 5px; margin-bottom: 5px; background: #eee; display: inline-block; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .gallery-pages .list-filter li.active, .gallery-pages .list-filter li:hover, .gallery-pages .list-filter li:focus { background: #488c6c; color: #ffffff; } .gallery-pages .mix-grid .mix { display: none; position: relative; overflow: hidden; margin-bottom: 15px; } .gallery-pages .mix-grid .mix .hover-effect { position: relative; border: 0; width: 100%; height: 100%; box-shadow: none; overflow: hidden; } .gallery-pages .mix-grid .mix .hover-effect .img { -webkit-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); } .gallery-pages .mix-grid .mix .hover-effect .info { position: absolute; top: 0; bottom: 0; left: 0; right: 0; text-align: center; background: rgba(26, 74, 114, 0.6); visibility: hidden; opacity: 0; -webkit-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; -webkit-transform: translateY(100%); -moz-transform: translateY(100%); -ms-transform: translateY(100%); -o-transform: translateY(100%); transform: translateY(100%); } .gallery-pages .mix-grid .mix .hover-effect .info h3 { text-transform: uppercase; color: #fff; text-align: center; font-size: 16px; padding: 10px; background: #111111; margin: 30px 0 0 0; } .gallery-pages .mix-grid .mix .hover-effect .info p { font-style: italic; font-size: 12px; position: relative; color: #e0e0e0; padding: 20px 20px 20px; text-align: center; } .gallery-pages .mix-grid .mix .hover-effect .info a.mix-link { color: #fff; text-align: center; padding: 10px 15px; background: #488c6c; margin: 20px 10px 20px 0; display: inline-block; } .gallery-pages .mix-grid .mix .hover-effect .info a.mix-zoom { color: #fff; text-align: center; padding: 10px 15px; background: #488c6c; margin: 20px 10px 20px 0; display: inline-block; } .gallery-pages .mix-grid .mix .hover-effect:hover .img { -webkit-transform: scale(1.2); -moz-transform: scale(1.2); -ms-transform: scale(1.2); -o-transform: scale(1.2); transform: scale(1.2); } .gallery-pages .mix-grid .mix .hover-effect:hover .info { visibility: visible; opacity: 1; -webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); -o-transform: translateY(0); transform: translateY(0); } .frontend-pages .hover-effect { position: relative; border: 0; width: 100%; height: 100%; box-shadow: none; overflow: hidden; } .frontend-pages .hover-effect .img { -webkit-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); } .frontend-pages .hover-effect .info { position: absolute; top: 0; bottom: 0; left: 0; right: 0; text-align: center; background-color: rgba(0, 0, 0, 0.7); visibility: hidden; opacity: 0; -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; -webkit-transform: translateY(100%); -moz-transform: translateY(100%); -ms-transform: translateY(100%); -o-transform: translateY(100%); transform: translateY(100%); } .frontend-pages .hover-effect .info h3 { text-transform: uppercase; color: #fff; text-align: center; font-size: 20px; padding: 10px; background: #488c6c; margin: 25% 0 0 0; } .frontend-pages .hover-effect:hover .info { visibility: visible; opacity: 1; -webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); -o-transform: translateY(0); transform: translateY(0); } .mail-content { overflow-x: hidden; overflow-y: auto; height: 657px; } .mail-content .mail-sender { width: 100%; display: inline-block; margin: 0 0 20px 0; border-bottom: 1px solid #EFF2F7; padding: 10px 0; } .mail-content .mail-sender .date { line-height: 30px; margin-bottom: 0; text-align: right; } .mail-content .mail-view { margin-bottom: 25px; } .mail-content .mail-attachment ul { padding: 0; } .mail-content .mail-attachment ul li { float: left; width: 100px; margin-right: 15px; margin-top: 15px; list-style: none; } .mail-content .mail-attachment ul li:hover { background: #f7f8f9; } .mail-content .mail-attachment ul li a { color: #999999; } .mail-content .mail-attachment ul li .thumb-attach img { width: 100px; height: auto; margin-bottom: 10px; } .mail-content .mail-attachment ul li .link { color: #488c6c; } #invoice-page .panel { border-radius: 0; } #invoice-page .panel .panel-body { padding: 30px; } #invoice-page .panel .panel-body .invoice-title { float: right; text-align: right; } #invoice-page .panel .panel-body .invoice-title h2 { margin-top: 0; } #invoice-page .panel .panel-body .logo { font-family: 'Oswald'; font-weight: bold; margin-top: 0; } #invoice-page .panel .panel-body hr { margin: 30px 0; } .box-placeholder { margin-bottom: 15px; padding: 20px; border: 1px solid #e5e5e5; background: #ffffff; color: #444; } .state-error + em { display: block; margin-top: 6px; padding: 0 1px; font-style: normal; font-size: 11px; line-height: 15px; color: #d9534f; } .state-success + em { display: block; margin-top: 6px; padding: 0 1px; font-style: normal; font-size: 11px; line-height: 15px; color: #5cb85c; } .state-error input, .state-error select { background: #f2dede; } .state-success input, .state-success select { background: #dff0d8; } .note-success { color: #5cb85c; } .radio-inline, .checkbox-inline, .checkbox, .radio { padding-left: 0; margin: 0; } .checkbox label, .radio label { cursor: pointer; margin-right: 10px; margin-bottom: 0; } .checkbox label:first-child, .radio label:first-child { padding-left: 0; } .form-horizontal.form-bordered .radio, .form-horizontal.form-bordered .checkbox, .form-horizontal.form-bordered .radio-inline, .form-horizontal.form-bordered .checkbox-inline { padding-top: 0; } .social-icons li a { border: 1px solid #999999; border-radius: 50%; color: #999999; padding: 10px; } .social-icons li a:hover, .social-icons li a:focus { border-color: #488c6c; background: #488c6c; color: #ffffff; } .member-team { background-color: #f9f9f9; float: left; padding: 5px; margin-bottom: 10px; max-width: 100%; } .member-team h3 { margin-top: 10px; } .member-team h3 small { color: #ababab; display: block; margin-top: 5px; font-size: 13px; } #faq .panel-group .panel { margin-bottom: 10px; } #faq .panel-group .panel .panel-heading { font-size: 14px; padding-top: 0; padding-bottom: 0; } #faq .panel-group .panel .panel-heading a { color: #999999; } #faq .panel-group .panel .panel-heading a strong { margin-right: 10px; } #faq .panel-group .panel .panel-heading:hover, #faq .panel-group .panel .panel-heading:focus { background: #e5e5e5; } #faq .panel-group .panel .panel-body strong:first-child { margin-right: 10px; } .accordion-toggle { display: block; line-height: 22px; padding: 10px 0; position: relative; } .row .row-merge { margin: 0; } .row .row-merge [class*=col-] { padding: 0; } .row .row-merge [class*=col-] .pricing-widget { position: relative; border: 0; cursor: pointer; margin: 20px 0; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important; } .row .row-merge [class*=col-] .pricing-widget .pricing-head { background: #5cb85c; padding: 6px 20px; font-size: 18px; text-align: center; color: #ffffff; } .row .row-merge [class*=col-] .pricing-widget .pricing-body { background: #fff; } .row .row-merge [class*=col-] .pricing-widget .pricing-cost { background: #4cae4c; text-align: center; padding: 20px; border-bottom: 1px solid #efefef; transition: all .3s ease; -webkit-transition: all .3s ease; -moz-transition: all .3s ease; -ms-transition: all .3s ease; -o-transition: all .3s ease; font-size: 18px; color: #ffffff; min-height: 125px; } .row .row-merge [class*=col-] .pricing-widget .pricing-cost strong { font-size: 30px; } .row .row-merge [class*=col-] .pricing-widget .pricing-list { list-style: none; padding: 0; margin: 0; } .row .row-merge [class*=col-] .pricing-widget .pricing-list li { padding: 10px; border-bottom: 1px solid #efefef; } .row .row-merge [class*=col-] .pricing-widget .pricing-list li:last-child { min-height: 84px; padding-top: 30px; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; border-bottom: none; } .row .row-merge [class*=col-] .pricing-widget:not(.pricing-title).active, .row .row-merge [class*=col-] .pricing-widget:not(.pricing-title):hover { -webkit-box-shadow: 0 3px 25px -4px rgba(0, 0, 0, 0.9) !important; box-shadow: 0 3px 25px -4px rgba(0, 0, 0, 0.9) !important; } .row .row-merge [class*=col-] .pricing-widget.active { z-index: 2; } .ribbon-wrapper { position: absolute; width: 75px; height: 75px; overflow: hidden; top: -1px; right: 14px; } .ribbon-wrapper .ribbon-inner { display: block; position: relative; padding: 5px 0; color: #fff; background-color: #bf4346; font-size: 13px; line-height: 17px; text-align: center; width: 107px; top: 11px; left: -5px; text-shadow: 0 1px rgba(0, 0, 0, 0.25); -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.75) !important; box-shadow: 0 0 5px rgba(0, 0, 0, 0.75) !important; transform: rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); } .the-price { padding: 20px; margin: 0; } .the-price h1 { margin-bottom: 0; } .the-price .subscript { font-size: 14px; } #faq .panel { border: 0; } #totop { position: fixed; bottom: 40px; right: 1.5%; display: none; z-index: 9999; background: transparent; border: 3px solid #488c6c; border-radius: 50%; height: 50px; width: 50px; text-align: center; } #totop i { color: #488c6c; line-height: 43px; font-size: 33px; } #totop:hover { background: #488c6c; } #totop:hover i { color: #ffffff; } .option-demo { position: relative; } .demo-layout { background-color: #ffffff; padding: 5px 15px; position: absolute; top: -30px; left: 0; z-index: 9999; border: 1px solid #e5e5e5; cursor: pointer; } #sidebar-hover #topbar .navbar-header { width: 160px; } #sidebar-hover #wrapper #page-wrapper { margin-left: 160px; } #sidebar-hover #wrapper #sidebar { width: 160px; } #sidebar-hover #wrapper #sidebar ul.menu-hover { width: 160px; position: absolute; top: 50px; display: block; -webkit-box-shadow: none !important; box-shadow: none !important; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li.active a { opacity: 0.95; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li a { background-color: #594857; color: #FFFFFF; padding: 15px; position: relative; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li a span.menu-title { margin-left: 10px; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li a:after { content: ''; border: 0; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li a:hover { opacity: 0.95; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu { -webkit-box-shadow: none !important; box-shadow: none !important; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li:first-child > a:before { content: ''; display: block; position: absolute; width: 0px; height: 0px; border-style: solid; border-width: 8px 8px 8px 0; border-color: transparent #3a7157 transparent transparent; left: -8px; top: 50%; margin-top: -8px; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li a { background-color: #3a7157; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li a:hover { opacity: 0.95; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li ul.dropdown-menu { -webkit-box-shadow: none !important; box-shadow: none !important; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li ul.dropdown-menu > li:first-child > a:before { content: ''; display: block; position: absolute; width: 0px; height: 0px; border-style: solid; border-width: 8px 8px 8px 0; border-color: transparent #4b9371 transparent transparent; left: -8px; top: 50%; margin-top: -8px; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li ul.dropdown-menu > li a { background-color: #4b9371; } #sidebar-hover #wrapper #sidebar ul.menu-hover > li ul.dropdown-menu > li ul.dropdown-menu > li a:hover { opacity: 0.95; } #sidebar-hover .dropdown-submenu > .dropdown-menu { margin-left: 0; } .mail-box { margin-bottom: 0; } .mail-box .list-group-item:nth-child(odd) { background-color: #f8f8f8; } .mail-box .list-group-item { border: 0; } .mail-box .list-group-item:hover { color: #999999; } .mail-box .list-group-item .time-badge { float: right; font-style: italic; color: #999999; } .mail-box .list-group-item.active, .mail-box .list-group-item:hover, .mail-box .list-group-item:focus { background-color: #ffc !important; color: #999999 !important; } .bg-primary { background-color: #488c6c; color: #fff; } .bg-success { background-color: #5cb85c; color: #fff; } .bg-info { background-color: #5bc0de; color: #fff; } .bg-warning { background-color: #f0ad4e; color: #fff; } .bg-danger { background-color: #d9534f; color: #fff; } .bg-red { background-color: #bf4346; color: #fff; } .bg-green { background-color: #488c6c; color: #fff; } .bg-blue { background-color: #0a819c; color: #fff; } .bg-yellow { background-color: #f2994b; color: #fff; } .bg-orange { background-color: #e9662c; color: #fff; } .bg-pink { background-color: #bf3773; color: #fff; } .bg-violet { background-color: #9351ad; color: #fff; } .bg-grey { background-color: #4b5d67; color: #fff; } .bg-dark { background-color: #594857; color: #fff; } body.sidebar-colors #wrapper { background-color: #FFFFFF; } body.sidebar-colors #wrapper #sidebar { background-color: #FFFFFF; } body.sidebar-colors #wrapper #sidebar ul#side-menu li { border-bottom: 1px solid #e5e5e5; } body.sidebar-colors #wrapper #sidebar ul#side-menu li.active a, body.sidebar-colors #wrapper #sidebar ul#side-menu li:hover a { background-color: #f8f8f8; } body.sidebar-colors #wrapper #sidebar ul#side-menu li.active a i:before, body.sidebar-colors #wrapper #sidebar ul#side-menu li:hover a i:before { color: #FFFFFF; } body.sidebar-colors #wrapper #sidebar ul#side-menu li.active a i .icon-bg, body.sidebar-colors #wrapper #sidebar ul#side-menu li:hover a i .icon-bg { left: 0; } body.sidebar-colors #wrapper #sidebar ul#side-menu li.user-panel { display: none; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a { color: #999999; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a:hover, body.sidebar-colors #wrapper #sidebar ul#side-menu li a:focus { background-color: #FFFFFF; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a i { position: relative; display: block; float: left; width: 50px; height: 50px; line-height: 50px; border-right: 1px solid #e5e5e5; text-align: center; margin: -16px 10px -16px -15px; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a i:before { position: relative; z-index: 1; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a i .icon-bg { display: block; position: absolute; z-index: 12; z-index: 0; left: -47px; width: 100%; top: 0; bottom: 0; -webkit-transition: left 0.15s ease-in-out; transition: left 0.15s ease-in-out; } body.sidebar-colors #wrapper #sidebar ul#side-menu li a .arrow { display: none; } body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li:first-child, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li:first-child { border-top: 1px solid #e5e5e5; } body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li:last-child, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li:last-child { border-bottom: 0; } body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li.active > a, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li.active > a, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li:hover > a, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li:hover > a { background-color: #FFFFFF; } body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li > a, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li > a { padding: 15px; background-color: #f1f1f1; } body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-second-level li > a i:before, body.sidebar-colors #wrapper #sidebar ul#side-menu li ul.nav-third-level li > a i:before { color: #999999; } body.sidebar-colors #wrapper #page-wrapper { border-left: 2px solid #e5e5e5; } body.sidebar-icons #topbar .navbar-header { width: 105px; } body.sidebar-icons #topbar .navbar-header .logo-text { display: none !important; } body.sidebar-icons #topbar .navbar-header .logo-text-icon { display: block !important; font-weight: bold; font-family: 'Oswald', sans-serif; font-size: 30px; } body.sidebar-icons #wrapper #sidebar { width: 105px; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li.user-panel { display: none; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li:hover ul.nav-second-level { display: block; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li a { padding: 15px 10px; text-align: center; display: block; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li a:hover, body.sidebar-icons #wrapper #sidebar ul#side-menu > li a:focus { background-color: transparent; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li a span.menu-title { display: block; margin-top: 8px; margin-left: 0; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li a i.fa { font-size: 25px; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li a .arrow, body.sidebar-icons #wrapper #sidebar ul#side-menu > li a .label { display: none; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level { display: none; position: absolute; top: 0px; left: 105px; width: 195px; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level li a { text-align: left; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level li a:hover, body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level li a:focus { background-color: #488c6c; color: #FFFFFF; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level li a i { display: none; } body.sidebar-icons #wrapper #sidebar ul#side-menu > li ul.nav-second-level li:first-child:before { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 9px solid #4b3d49; content: ""; position: absolute; top: 50%; margin-top: -9px; left: -9px; z-index: 5; } body.sidebar-icons #wrapper #page-wrapper { margin-left: 105px; } body.sidebar-collapsed #topbar .navbar-header { width: 55px; } body.sidebar-collapsed #topbar .navbar-header .logo-text { display: none !important; } body.sidebar-collapsed #topbar .navbar-header .logo-text-icon { display: block !important; } body.sidebar-collapsed .navbar-static-side { width: 55px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li.user-panel { display: none; } body.sidebar-collapsed .navbar-static-side ul#side-menu li:hover a { height: 50px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li:hover a span.menu-title { display: block !important; } body.sidebar-collapsed .navbar-static-side ul#side-menu li:hover a span.submenu-title { display: block !important; margin-left: 0; } body.sidebar-collapsed .navbar-static-side ul#side-menu li:hover ul.nav-second-level { display: block; position: absolute; top: 50px; left: 55px; width: 195px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li:hover ul.nav-second-level li a { padding: 15px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li a span { display: none; } body.sidebar-collapsed .navbar-static-side ul#side-menu li a i.fa { font-size: 18px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li a span.menu-title { position: absolute; top: 0; left: 55px; padding: 15px; margin-left: 0; background: #488c6c; color: #ffffff; width: 195px; height: 50px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li a span.label { display: block; } body.sidebar-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level { display: none; position: absolute; top: 50px; left: 55px; width: 195px; } body.sidebar-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level li a i { display: none; } body.sidebar-collapsed .navbar-static-side ul#side-menu li ul.nav-second-level li a span.label { position: absolute; top: 15px; right: 10px; } body.sidebar-collapsed .navbar-static-side ul#side-menu > li > a span.label { display: block !important; position: absolute; right: -10px; top: 0px; padding: 2px 4px; } body.sidebar-collapsed #page-wrapper { margin: 0 0 0 55px; } body.sidebar-collapsed.right .page-header-topbar #topbar .navbar-header { float: right; } body.sidebar-collapsed.right #wrapper #sidebar { left: auto; right: 0; } body.sidebar-collapsed.right #wrapper #sidebar ul#side-menu li:hover a span.submenu-title { margin-right: 0; } body.sidebar-collapsed.right #wrapper #sidebar ul#side-menu li:hover ul.nav-second-level { right: 55px; left: auto; } body.sidebar-collapsed.right #wrapper #sidebar ul#side-menu li a span.menu-title { right: 55px; left: auto; margin-right: 0; } body.sidebar-collapsed.right #wrapper #sidebar ul#side-menu li ul.nav-second-level { right: 55px; left: auto; } body.sidebar-collapsed.right #wrapper #page-wrapper { margin: 0 55px 0 0; } body.header-fixed .page-header-topbar { position: fixed; top: 0; z-index: 9999; width: 100%; } body.header-fixed #wrapper { margin-top: 50px; } body.header-fixed #sidebar { position: fixed; } a.DTTT_button { padding: 7px 8px; -webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important; -webkit-box-shadow: none !important; box-shadow: none !important; } ul.user-last-logged-list { margin: 0; padding: 0; list-style: none; } ul.user-last-logged-list > li { margin-top: 0; position: relative; padding: 10px 0; border-top: 1px solid #e5e5e5; } ul.user-last-logged-list > li:first-child { border-top: none; } ul.user-last-logged-list > li .media-right { float: right; margin-left: 10px; } ul.user-last-logged-list > li .meta { margin: 0; padding: 0; list-style: none; } ul.user-last-logged-list > li .meta > li { font-size: 11px; line-height: 20px; color: #999999; } ul.user-last-logged-list > li .meta > li .user-list-ip { margin-left: 3px; } ul.user-last-logged-list > li .meta > li strong { color: #999999; margin-left: 5px; } ul.user-last-logged-list > li .media-body h4.media-heading { font-size: 16px; display: block; } ul.user-last-logged-list > li .media-body h4.media-heading small { font-size: 12px; margin-left: 5px; } ul.user-last-logged-list > li .media-body h4.media-heading small a { color: #999999; } ul.user-last-logged-list > li .media-body h4.media-heading .user-list-name { color: #488c6c; } ul.user-last-logged-list > li .media-body h4.media-heading .user-list-name:hover { color: #999999; } ul.user-last-logged-list > li .media-body h4.media-heading i.fa.fa-user { font-size: 18px; } #user-last-logged-table .media-thumb .img-shadow { position: relative; float: left; max-width: 100%; } #user-last-logged-table .media-thumb .img-shadow img { float: left; height: 35px; width: 35px; } #user-last-logged-table .media-thumb .data { margin: 0; padding: 0; list-style: none; font-size: 12px; } #user-last-logged-table .media-thumb .data li strong.user-list-ip { margin-left: 3px; } #user-last-logged-table .media-thumb .data li em { margin-right: 3px; } ul.thumb-large { margin: 0; padding: 0; list-style: none; } ul.thumb-large > li { margin-top: 0; position: relative; padding: 10px 0; border-top: 1px solid #e5e5e5; } ul.thumb-large > li:first-child { border-top: none; } ul.thumb-large > li .media-left { float: left; margin-right: 10px; } ul.thumb-large > li .media-thumb .img-shadow img { height: 55px; width: 55px; } ul.thumb-large > li .media-body { overflow: hidden; zoom: 1; } ul.thumb-large > li .media-body .menu-right { float: right; margin-left: 10px; } ul.thumb-large > li .media-body .quick-menu.menu-right { margin-left: 5px; margin-bottom: 5px; } ul.thumb-large > li .media-body .media-heading a { display: block; margin-bottom: 5px; color: #488c6c; } ul.thumb-large > li .media-body .media-heading small { font-size: 12px; } ul.thumb-large > li .media-body .media-heading small a { color: #999999; } ul.thumb-large > li .media-body .meta { font-size: 11px; line-height: 16px; color: #999999; } .user-list-footer { padding: 10px; background-color: #f9f9f9; } ul.thumb-small { margin: 0; padding: 0; list-style: none; } ul.thumb-small > li { margin-top: 0; position: relative; padding: 10px 0; border-top: 1px solid #e5e5e5; } ul.thumb-small > li:first-child { border-top: none; } ul.thumb-small > li .media-thumb .img-shadow { position: relative; float: left; max-width: 100%; } ul.thumb-small > li .media-thumb .img-shadow img { float: left; height: 35px; width: 35px; } ul.thumb-small > li .media-thumb.media-left { float: left; margin-right: 10px; } ul.thumb-small > li .media-body { overflow: hidden; zoom: 1; } ul.thumb-small > li .media-body .menu-right { float: right; margin-left: 10px; } ul.thumb-small > li .media-body .quick-menu-icon.menu-right i { font-size: 18px; color: #999999; } ul.thumb-small > li .media-body .media-heading a { display: block; margin-bottom: 5px; color: #488c6c; } ul.thumb-small > li .media-body .media-heading small { font-size: 12px; } ul.thumb-small > li .media-body .media-heading small a { color: #999999; } ul.thumb-xxlarge { margin: 0; padding: 0; list-style: none; } ul.thumb-xxlarge > li { margin-top: 0; position: relative; padding: 10px 0; border-top: 1px solid #e5e5e5; } ul.thumb-xxlarge > li:first-child { border-top: none; } ul.thumb-xxlarge > li .media-thumb .img-shadow { position: relative; float: left; max-width: 100%; } ul.thumb-xxlarge > li .media-thumb .img-shadow img { float: left; height: 96px; width: 96px; } ul.thumb-xxlarge > li .media-thumb.media-left { float: left; margin-right: 10px; } ul.thumb-xxlarge > li .media-body .menu-right { float: right; } ul.thumb-xxlarge > li .media-body .quick-menu.menu-right { margin-left: 5px; margin-bottom: 5px; } ul.thumb-xxlarge > li .media-body .media-heading { margin: 0 0 5px; } ul.thumb-xxlarge > li .media-body .media-heading a { margin-bottom: 5px; color: #488c6c; } ul.thumb-xxlarge > li .media-body .media-heading small { font-size: 12px; } ul.thumb-xxlarge > li .media-body .media-heading small a { color: #999999; } ul.thumb-xxlarge > li .media-body .data { margin: 0; padding: 0; list-style: none; font-size: 12px; z-index: 999; } .em { font-style: italic; } .media-overflow, .media-overflow .media, .media-overflow .media-body { overflow: visible; } .news-ticker { position: relative; width: 100%; padding: 5px 0; text-align: center; } .news-ticker #news-ticker-close { position: absolute; top: 5px; right: 20px; color: rgba(255, 255, 255, 0.4); } ul.list-icon { list-style: none; padding: 0 20px; } ul.list-icon li:before { content: "\f05d"; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; margin-right: 10px; } ul.list-icon li:hover { color: #488c6c; } .demo-btn > .btn { margin-bottom: 5px; margin-right: 5px; } .demo-btn-group > .btn-group { margin-bottom: 5px; margin-right: 5px; } .demo-btn-group > .btn-toolbar > .btn-group { margin-bottom: 5px; margin-right: 5px; } /***** Begin Page Loader *****/ #page-loader { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background-color: #ffffff; } #page-loader img { position: absolute; top: 50%; left: 50%; margin: -64px 0 0 -64px; width: 128px; height: 128px; } /***** End Page Loader *****/ /***** Begin Header Option Page *****/ .header-option-page { border-bottom: 1px solid #cccccc; padding-bottom: 15px; } /***** End Header Option Page *****/ .jstree-hovered, .jstree-wholerow-hovered { -webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important; background: #488c6c !important; color: #fff !important; transition: background-color 0s, box-shadow 0s !important; transition-property: background-color, box-shadow !important; transition-duration: 0s, 0s !important; transition-timing-function: initial, initial; transition-delay: initial, initial; } .jstree-clicked, .jstree-wholerow-clicked { background: #7ebc9f !important; color: #fff !important; } .jstree-anchor, .jstree-wholerow { -webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important; transition: background-color 0s, box-shadow 0s !important; transition-property: background-color, box-shadow !important; transition-duration: 0s, 0s !important; transition-timing-function: initial, initial; transition-delay: initial, initial; } .family-tree-horizontal li a:hover, .family-tree-horizontal li a:hover + ul li a, .family-tree-vertical li a:hover, .family-tree-vertical li a:hover + ul li a { background: #488c6c !important; color: #fff !important; } .header-option-page { border-bottom: 1px solid #cccccc; padding-bottom: 15px; } .quick-sidebar { position: fixed; right: 0; top: 50px; bottom: 0; width: 280px; background-color: #353535; z-index: 100; display: none; } .quick-sidebar .header-quick-sidebar ul.nav.nav-tabs.ul-edit > li.active > ul > li.active > a { background-color: #e5e5e5; color: #999999; } .quick-sidebar .header-quick-sidebar ul.nav.nav-tabs.ul-edit > li > a { padding: 10px 0; } .quick-sidebar .content-quick-sidebar.tab-content { background-color: transparent; border: 0; padding: 0px; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane h4 { padding: 15px; margin: 0; font-weight: bold; border-bottom: 1px solid #555; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-update > li { padding: 10px; border-bottom: 1px solid #414141; clear: both; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-update > li span.label:first-child { margin-right: 10px; padding: 8px; float: left; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-update > li div { margin-left: 25px; margin-bottom: 5px; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-update > li div ul.sub-list-update { padding-left: 25px; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-update > li div ul.sub-list-update li { padding: 3px 0; color: #777777; } .quick-sidebar .content-quick-sidebar.tab-content .tab-pane ul.list-features li { padding: 10px; border-bottom: 1px solid #414141; clear: both; } .quick-sidebar.quick-sidebar-hidden { display: block; } #page-user-profile .tab-content { border: 0; } #page-user-profile #tab-activity ul.list-activity > li { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #efefef; } #page-user-profile #tab-activity ul.list-activity > li:last-child { border-bottom: 0; } #page-user-profile #tab-activity ul.list-activity > li .avatar { float: left; margin-right: 10px; } #page-user-profile #tab-activity ul.list-activity > li .avatar img { width: 40px; display: inline-block; } #page-user-profile #tab-activity ul.list-activity > li .body { overflow: hidden; zoom: 1; } #page-user-profile #tab-activity ul.list-activity > li .body .desc small.text-muted { font-size: 10px; color: #BBBBBB; } #page-user-profile #tab-activity ul.list-activity > li .body .content { margin-top: 20px; } #page-user-profile #tab-activity ul.list-activity > li .body .content a { color: #428bca; } #page-user-profile #tab-activity ul.list-activity > li .body .content a:hover { text-decoration: underline; } #page-user-profile #tab-activity ul.list-activity > li .body .content .content-thumb { float: left; margin-right: 10px; } #page-user-profile #tab-activity ul.list-activity > li .body .content .content-thumb img { width: 100px; display: inline-block; } #page-user-profile #tab-activity ul.list-activity > li .body .content .content-thumb-large { float: left; } #page-user-profile #tab-activity ul.list-activity > li .body .content .content-thumb-large img { width: 180px; display: inline-block; margin-right: 10px; } #page-user-profile #tab-activity ul.list-activity > li .body .content .content-info { overflow: hidden; zoom: 1; } #page-user-profile #tab-edit .tab-content { background: #f8f8f8; } #page-user-profile #tab-edit .nav-pills li.active a { background-color: #5cb85c; border-color: #5cb85c; } #page-user-profile #tab-edit .nav-pills li.active a:hover { color: #FFFFFF !important; } #page-user-profile #tab-edit .nav-pills li a { background-color: #f8f8f8; } #page-user-profile #tab-edit .nav-pills li a:hover { color: #999999; } .news-ticker { position: relative; width: 100%; padding: 5px 0; text-align: center; } .news-ticker a { color: #fff; } .news-ticker #news-ticker-close { position: absolute; top: 5px; right: 20px; color: rgba(255, 255, 255, 0.4); } .last-col { overflow: hidden !important; } .pdn { padding: 0 !important; } .pdx { padding: 3px; } .pdm { padding: 10px; } .pdl { padding: 20px; } .pdxl { padding: 30px; } .pdxxl { padding: 40px; } .ptn, .pvn, .pan { padding-top: 0 !important; } .ptx, .pvx, .pax { padding-top: 3px !important; } .pts, .pvs, .pas { padding-top: 5px !important; } .ptm, .pvm, .pam { padding-top: 10px !important; } .ptl, .pvl, .pal { padding-top: 20px !important; } .ptxl, .pvxl, .paxl { padding-top: 30px !important; } .ptxxl, .pvxxl, .paxxl { padding-top: 40px !important; } .prn, .phn, .pan { padding-right: 0 !important; } .prx, .phx, .pax { padding-right: 3px !important; } .prs, .phs, .pas { padding-right: 5px !important; } .prm, .phm, .pam { padding-right: 10px !important; } .prl, .phl, .pal { padding-right: 20px !important; } .prxl, .phxl, .paxl { padding-right: 30px !important; } .prxxl, .phxxl, .paxxl { padding-right: 40px !important; } .pbn, .pvn, .pan { padding-bottom: 0 !important; } .pbx, .pvx, .pax { padding-bottom: 3px !important; } .pbs, .pvs, .pas { padding-bottom: 5px !important; } .pbm, .pvm, .pam { padding-bottom: 10px !important; } .pbl, .pvl, .pal { padding-bottom: 20px !important; } .pbxl, .pvxl, .paxl { padding-bottom: 30px !important; } .pbxxl, .pvxxl, .paxxl { padding-bottom: 40px !important; } .pln, .phn, .pan { padding-left: 0 !important; } .plx, .phx, .pax { padding-left: 3px !important; } .pls, .phs, .pas { padding-left: 5px !important; } .plm, .phm, .pam { padding-left: 10px !important; } .pll, .phl, .pal { padding-left: 20px !important; } .plxl, .phxl, .paxl { padding-left: 30px !important; } .plxxl, .phxxl, .paxxl { padding-left: 40px !important; } .mtn, .mvn, .man { margin-top: 0px !important; } .mtx, .mvx, .max { margin-top: 3px !important; } .mts, .mvs, .mas { margin-top: 5px !important; } .mtm, .mvm, .mam { margin-top: 10px !important; } .mtl, .mvl, .mal { margin-top: 20px !important; } .mtxl, .mvxl, .maxl { margin-top: 30px !important; } .mtxxl, .mvxxl, .maxxl { margin-top: 40px !important; } .mrn, .mhn, .man { margin-right: 0px !important; } .mrx, .mhx, .max { margin-right: 3px !important; } .mrs, .mhs, .mas { margin-right: 5px !important; } .mrm, .mhm, .mam { margin-right: 10px !important; } .mrl, .mhl, .mal { margin-right: 20px !important; } .mrxl, .mhxl, .maxl { margin-right: 30px !important; } .mrxxl, .mhxxl, .maxxl { margin-right: 40px !important; } .mbn, .mvn, .man { margin-bottom: 0px !important; } .mbx, .mvx, .max { margin-bottom: 3px !important; } .mbs, .mvs, .mas { margin-bottom: 5px !important; } .mbm, .mvm, .mam { margin-bottom: 10px !important; } .mbl, .mvl, .mal { margin-bottom: 20px !important; } .mbxl, .mvxl, .maxl { margin-bottom: 30px !important; } .mbxxl, .mvxxl, .maxxl { margin-bottom: 40px !important; } .mln, .mhn, .man { margin-left: 0px !important; } .mlx, .mhx, .max { margin-left: 3px !important; } .mls, .mhs, .mas { margin-left: 5px !important; } .mlm, .mhm, .mam { margin-left: 10px !important; } .mll, .mhl, .mal { margin-left: 20px !important; } .mlxl, .mhxl, .maxl { margin-left: 30px !important; } .mlxxl, .mhxxl, .maxxl { margin-left: 40px !important; } .alert-hide { display: none; } .alert { color: #bf4346; } #rootwizard-tabdetail2 .navbar-inner .nav-pills li { width: 20%; } #rootwizard-tabdetail2 .navbar-inner .nav-pills li a p.top { position: absolute; top: 10px; left: 0px; } #rootwizard-tabdetail2 .navbar-inner .nav-pills li a p.icon i.fa { width: 50px; height: 50px; border-radius: 25px !important; border: 3px solid #488c6c; background-color: transparent; position: absolute; top: 0px; left: 0px; } #rootwizard-tabdetail2 .navbar-inner .nav-pills li a p.bottom { position: absolute; top: -10px; left: 0px; } .pace .pace-progress { background-color: #488c6c; } .legendColorBox { padding: 3px 0; } .legendColorBox div { border-radius: 50%; margin-right: 5px; } .legendColorBox div div { margin-right: 0; } .ui-state-default { border: 0; background: #488c6c; color: #ffffff; } .ui-widget-content { background: #ffffff; border: 1px solid #e5e5e5; } .ui-widget-content .ui-state-default { border: 0; background: #488c6c; color: #ffffff; cursor: pointer; } .ui-widget-content .ui-state-default:hover, .ui-widget-content .ui-state-default:focus { background: #3f7b5f; } .ui-widget-header { background: #488c6c; } .ui-widget-header .ui-state-default { border: 0; background: #488c6c; color: #ffffff; } .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 2em; height: 2em; border-radius: 50%; border: 3px solid #fefefe; } .ui-slider.ui-slider-horizontal .ui-slider-handle { top: -0.9em; } .ui-slider.ui-slider-vertical .ui-slider-handle { left: -0.85em; } #slider-multi span { height: 120px; float: left; margin: 20px; } .ui-slider-horizontal { height: 0.45em; } .ui-slider-vertical { width: 0.45em; } .example-val:before { content: "Value: "; font-weight: bold; } .irs-line-mid, .irs-line-left, .irs-line-right, .irs-diapason, .irs-slider { background: #E5E5E5; } .irs-slider { width: 1.5em; height: 1.5em; top: 19px; border: 1px solid #fefefe; background: #777; border-radius: 50%; } .irs-diapason { background: #488c6c; } .irs { height: 40px; } .irs-with-grid { height: 60px; } .irs-line { height: 8px; top: 25px; } .irs-line-left { height: 8px; } .irs-line-mid { height: 8px; } .irs-line-right { height: 8px; } .irs-diapason { height: 8px; top: 25px; } .irs-min, .irs-max { color: #999; font-size: 10px; line-height: 1.333; text-shadow: none; top: 0; padding: 1px 3px; background: rgba(0, 0, 0, 0.1); } .lt-ie9 .irs-min, .lt-ie9 .irs-max { background: #ccc; } .irs-from, .irs-to, .irs-single { color: #fff; font-size: 10px; line-height: 1.333; text-shadow: none; padding: 1px 3px; background: rgba(0, 0, 0, 0.3); } .lt-ie9 .irs-from, .lt-ie9 .irs-to, .lt-ie9 .irs-single { background: #999; } .irs-grid-pol { background: #999999; } .irs-grid-text { color: #999999; } .jquery-notific8-message { font-size: 13px; } [class*="jquery-notific8"], [class*="jquery-notific8"]:after, [class*="jquery-notific8"]:before { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } .right .jquery-notific8-close-sticky span, .left .jquery-notific8-close-sticky span { font-size: 10px; } .jquery-notific8-heading { font-weight: 300; font-size: 16px; } .colors { clear: both; padding: 24px 0 9px; } .skin-line .colors { padding-top: 28px; } .colors strong { float: left; line-height: 20px; margin-right: 20px; } .colors li { position: relative; float: left; width: 16px; height: 16px; margin: 2px 1px 0 0; background: #000; cursor: pointer; filter: alpha(opacity=50); opacity: .5; -webkit-transition: opacity .2s; -moz-transition: opacity .2s; -ms-transition: opacity .2s; -o-transition: opacity .2s; transition: opacity .2s; } .colors li:hover { filter: alpha(opacity=100); opacity: 1; } .colors li.active { height: 20px; margin-top: 0; filter: alpha(opacity=75); opacity: 0.75; } .colors li.red { background: #d54e21; } .colors li.green { background: #78a300; } .colors li.blue { background: #0e76a8; } .colors li.aero { background: #9cc2cb; } .colors li.grey { background: #73716e; } .colors li.orange { background: #ff7700; } .colors li.yellow { background: #ffcc00; } .colors li.pink { background: #ff66b5; } .colors li.purple { background: #6a5a8c; } .sticky-header { z-index: 999; } .slimScrollDiv { float: left; } .slimScrollRail { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .table tbody tr.calendar-month-header:first-child th { border-top: 0; background: #488c6c; color: #ffffff; padding: 12px 0; } .table tbody tr.calendar-month-header:first-child th .calendar-month-navigation { padding-top: 0; } .table tbody tr.calendar-month-header:first-child th span { padding-bottom: 0; } .table tbody tr td { border-top: 1px solid #efefef; } .ticker-wrapper.has-js { margin: 0; padding: 0; float: left; background: transparent; font-size: 13px; } .ticker { display: block; position: relative; overflow: hidden; background: transparent; margin: 0; padding: 0; } .ticker-title { background-color: transparent; } .ticker-content { color: #ffffff; background: transparent; font-weight: normal; padding-top: 8px; } .ticker-content a { color: #999999; } .ticker-content a:hover, .ticker-content a:focus { color: #999999; text-decoration: none; } .ticker-swipe { width: 100%; height: 42px; background: #4b3d49; } .ticker-swipe span { margin-left: 1px; background-color: transparent; border-bottom: 3px solid #999999; height: 21px; width: 7px; display: block; } .news-update-box { float: left; padding: 9px 20px; line-height: 30px; } .introjs-helperLayer { background-color: rgba(255, 255, 255, 0.5); } .introjs-fixParent { z-index: auto !important; opacity: 1.0 !important; position: absolute !important; } .introjs-helperNumberLayer { line-height: 13px; } body.header-fixed .top .jquery-notific8-notification:first-child { margin-top: 50px; } .bootstrap-select.btn-group .dropdown-menu li.active:not(.disabled) > a small, .bootstrap-select.btn-group .dropdown-menu li:not(.disabled) > a:focus small, .bootstrap-select.btn-group .dropdown-menu li:not(.disabled) > a:hover small { color: #aaaaaa; } .counter.warning { color: #d9534f; } #rootwizard-custom-circle { margin-top: 50px; position: relative; } #rootwizard-custom-circle .navbar { margin-bottom: 35px; } #rootwizard-custom-circle:before { content: ""; height: 3px; width: 100%; background-color: #5CB85C; position: absolute; top: 30px; left: 0; } #rootwizard-custom-circle li { background-color: #fff; border: 3px solid #6ec06e; height: 40px; width: 40px; border-radius: 20px; -webkit-border-radius: 20px; margin-bottom: 20px; padding-top: 0px; padding-left: 0px; display: inline-block; float: left; list-style: none; margin-left: 17%; text-align: center; position: relative; } #rootwizard-custom-circle li:first-child { margin-left: 11%; } #rootwizard-custom-circle li a { font-size: 17px; line-height: 200%; } #rootwizard-custom-circle li a i { color: #6ec06e; top: 2px; } #rootwizard-custom-circle li a i.glyphicon-send { left: -3px; } #rootwizard-custom-circle li a p.anchor { position: absolute; top: -35px; left: -130px; width: 300px; font-family: 'oswald'; } #rootwizard-custom-circle li a p.description { font-size: 13px; position: absolute; left: -130px; width: 300px; } #rootwizard-custom-circle li.active { background-color: #fff; border: 3px solid #488c6c; } #rootwizard-custom-circle li.active a, #rootwizard-custom-circle li.active p, #rootwizard-custom-circle li.active i { color: #488c6c; } #rootwizard-custom-circle #bar { height: 14px; border-radius: 5px; } #rootwizard-custom-circle .tab-content { border-width: 0px; } #rootwizard-custom-circle .tab-content .action { padding: 15px 0px; border-top: 1px solid #E6E6E6; margin-top: 60px; } #rootwizard-custom-circle .tab-content .action button.btn { padding: 7px 21px; } .news-ticker { position: relative; width: 100%; padding: 5px 0; text-align: center; } .news-ticker a { color: #fff; } .news-ticker a:hover, .news-ticker a:focus { text-decoration: underline; } .news-ticker #news-ticker-close { position: absolute; top: 5px; right: 20px; color: rgba(255, 255, 255, 0.4); } textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus { border-color: #999999; box-shadow: none; outline: 0 none; } a:focus, .btn:focus { outline: 0 !important; } .img-circle { border-radius: 50% !important; } h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: 300; } .note { margin: 0 0 20px 0; padding: 15px 30px 15px 15px; border-left: 3px solid #e5e5e5; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .note h1, .note h2, .note h3, .note h4 { margin-top: 0; } .note p:last-child { margin-bottom: 0; } .note code, .note .highlight { background-color: #fff; } .note-success { border-color: #5cb85c; background: #dff0d8; } .note-success .box-heading { color: #5cb85c; } .note-warning { border-color: #f0ad4e; background: #fcf8e3; } .note-warning .box-heading { color: #f0ad4e; } .note-info { border-color: #5bc0de; background: #d9edf7; } .note-info .box-heading { color: #5bc0de; } .note-danger { border-color: #d9534f; background: #f2dede; } .note-danger .box-heading { color: #d9534f; } .pagination { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .pagination li a { border-color: #e5e5e5; } .pagination li span { border-right: #e5e5e5; } .pagination li.active a { border-color: #488c6c; } .pagination li.active span { border-color: #488c6c; } .pagination li:first-child a { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .pagination li:first-child span { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .pagination li:last-child a { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .pagination li:last-child span { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .badge { font-size: 11px !important; font-weight: 300; height: 18px; padding: 3px 6px 3px 6px; -webkit-border-radius: 12px !important; -moz-border-radius: 12px !important; border-radius: 12px !important; text-shadow: none !important; text-align: center; vertical-align: middle; background-color: #bcbcbc; } .label { font-size: 11px; font-weight: 300; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .badge-default, .label-default { background-color: #999 !important; } .badge-primary, .label-primary { background-color: #488c6c !important; } .badge-red, .label-red { background-color: #bf4346 !important; } .badge-orange, .label-orange { background-color: #e9662c !important; } .badge-green, .label-green { background-color: #488c6c !important; } .badge-yellow, .label-yellow { background-color: #f2994b !important; } .badge-blue, .label-blue { background-color: #0a819c !important; } .badge-violet, .label-violet { background-color: #9351ad !important; } .badge-pink, .label-pink { background-color: #bf3773 !important; } .badge-grey, .label-grey { background-color: #4b5d67 !important; } .badge-dark, .label-dark { background-color: #594857 !important; } .label-success, .badge-success { background-color: #5cb85c; background-image: none !important; } .label-warning, .badge-warning { background-color: #f0ad4e; background-image: none !important; } .label-danger, .badge-danger { background-color: #d9534f; background-image: none !important; } .label-info, .badge-info { background-color: #5bc0de; background-image: none !important; } .nav.nav-pills > li > a > .badge { margin-top: -2px; } .nav.nav-stacked > li > a > .badge { margin-top: 1px; margin-bottom: 0px; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #488c6c; } .pagination li.active a { color: #FFFFFF; background: #488c6c; z-index: 2; cursor: default; } .pagination li.active a:hover, .pagination li.active a:focus { color: #FFFFFF; background: #488c6c; z-index: 2; cursor: default; } .pagination li.active span { color: #FFFFFF; background: #488c6c; z-index: 2; cursor: default; } .pagination li.active span:hover, .pagination li.active span:focus { color: #FFFFFF; background: #488c6c; z-index: 2; cursor: default; } .pagination li a { color: #488c6c; } .panel { -webkit-box-shadow: none !important; box-shadow: none !important; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .panel > .panel-heading { font-size: 18px; padding: 7px 15px; border-top-right-radius: 0 !important; border-top-left-radius: 0 !important; border-color: #e5e5e5 !important; } .panel > .panel-heading .subtitle { font-size: 13px; margin-left: 10px; color: #BBBBBB; margin-bottom: 0; } .panel > .panel-heading .toolbars { float: right; } .panel > .panel-heading .toolbars a { color: #999999; } .panel > .panel-heading .toolbars a:hover, .panel > .panel-heading .toolbars a:focus { color: #488c6c; } .panel > .panel-heading .toolbars input { height: 30px; } .panel > .panel-heading .toolbars .input-icon i { margin-top: 8px; } .panel > .panel-heading .toolbars .btn-group a { margin-left: 10px; } .panel > .panel-footer { font-size: 18px; padding: 7px 15px; border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; } .panel.panel-primary { border-color: #488c6c; } .panel.panel-primary > .panel-heading { color: #FFFFFF; background: #488c6c; border-color: #488c6c !important; } .panel.panel-primary > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-primary > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-primary > .panel-heading .toolbars a:hover, .panel.panel-primary > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-primary > .panel-footer { color: #FFFFFF; background: #488c6c; border-color: #488c6c !important; } .panel.panel-red { border-color: #bf4346; } .panel.panel-red > .panel-heading { color: #FFFFFF; background: #bf4346; border-color: #bf4346 !important; } .panel.panel-red > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-red > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-red > .panel-heading .toolbars a:hover, .panel.panel-red > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-red > .panel-footer { color: #FFFFFF; background: #bf4346; border-color: #bf4346 !important; } .panel.panel-orange { border-color: #e9662c; } .panel.panel-orange > .panel-heading { color: #FFFFFF; background: #e9662c; border-color: #e9662c !important; } .panel.panel-orange > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-orange > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-orange > .panel-heading .toolbars a:hover, .panel.panel-orange > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-orange > .panel-footer { color: #FFFFFF; background: #e9662c; border-color: #e9662c !important; } .panel.panel-green { border-color: #488c6c; } .panel.panel-green > .panel-heading { color: #FFFFFF; background: #488c6c; border-color: #488c6c !important; } .panel.panel-green > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-green > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-green > .panel-heading .toolbars a:hover, .panel.panel-green > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-green > .panel-footer { color: #FFFFFF; background: #488c6c; border-color: #488c6c !important; } .panel.panel-yellow { border-color: #f2994b; } .panel.panel-yellow > .panel-heading { color: #FFFFFF; background: #f2994b; border-color: #f2994b !important; } .panel.panel-yellow > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-yellow > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-yellow > .panel-heading .toolbars a:hover, .panel.panel-yellow > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-yellow > .panel-footer { color: #FFFFFF; background: #f2994b; border-color: #f2994b !important; } .panel.panel-blue { border-color: #0a819c; } .panel.panel-blue > .panel-heading { color: #FFFFFF; background: #0a819c; border-color: #0a819c !important; } .panel.panel-blue > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-blue > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-blue > .panel-heading .toolbars a:hover, .panel.panel-blue > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-blue > .panel-footer { color: #FFFFFF; background: #0a819c; border-color: #0a819c !important; } .panel.panel-pink { border-color: #bf3773; } .panel.panel-pink > .panel-heading { color: #FFFFFF; background: #bf3773; border-color: #bf3773 !important; } .panel.panel-pink > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-pink > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-pink > .panel-heading .toolbars a:hover, .panel.panel-pink > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-pink > .panel-footer { color: #FFFFFF; background: #bf3773; border-color: #bf3773 !important; } .panel.panel-violet { border-color: #9351ad; } .panel.panel-violet > .panel-heading { color: #FFFFFF; background: #9351ad; border-color: #9351ad !important; } .panel.panel-violet > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-violet > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-violet > .panel-heading .toolbars a:hover, .panel.panel-violet > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-violet > .panel-footer { color: #FFFFFF; background: #9351ad; border-color: #9351ad !important; } .panel.panel-grey { border-color: #4b5d67; } .panel.panel-grey > .panel-heading { color: #FFFFFF; background: #4b5d67; border-color: #4b5d67 !important; } .panel.panel-grey > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-grey > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-grey > .panel-heading .toolbars a:hover, .panel.panel-grey > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-grey > .panel-footer { color: #FFFFFF; background: #4b5d67; border-color: #4b5d67 !important; } .panel.panel-dark { border-color: #594857; } .panel.panel-dark > .panel-heading { color: #FFFFFF; background: #594857; border-color: #594857 !important; } .panel.panel-dark > .panel-heading .subtitle { color: #FFFFFF; } .panel.panel-dark > .panel-heading .toolbars a { color: #FFFFFF; } .panel.panel-dark > .panel-heading .toolbars a:hover, .panel.panel-dark > .panel-heading .toolbars a:focus { color: #f9f9f9; } .panel.panel-dark > .panel-footer { color: #FFFFFF; background: #594857; border-color: #594857 !important; } .panel.panel-white { border-color: #efefef; } .panel.panel-white > .panel-heading { border-bottom: 1px solid #faf9fb; color: #999999; background: #FFFFFF; } .panel.panel-white > .panel-heading .subtitle { color: #BBBBBB; } .panel.panel-white > .panel-footer { border-top: 1px solid #faf9fb; color: #999999; background: #FFFFFF; } .btn { outline: none !important; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .btn.btn-square { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .btn-outlined { -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } .btn-outlined.btn-default { background: none; border: 1px solid #999999; color: #999999; } .btn-outlined.btn-primary { background: none; border: 1px solid #488c6c; color: #488c6c; } .btn-outlined.btn-success { background: none; border: 1px solid #5cb85c; color: #5cb85c; } .btn-outlined.btn-warning { background: none; border: 1px solid #f0ad4e; color: #f0ad4e; } .btn-outlined.btn-info { background: none; border: 1px solid #5bc0de; color: #5bc0de; } .btn-outlined.btn-danger { background: none; border: 1px solid #d9534f; color: #d9534f; } .btn-outlined.btn-red { background: none; border: 1px solid #bf4346; color: #bf4346; } .btn-outlined.btn-orange { background: none; border: 1px solid #e9662c; color: #e9662c; } .btn-outlined.btn-green { background: none; border: 1px solid #488c6c; color: #488c6c; } .btn-outlined.btn-yellow { background: none; border: 1px solid #f2994b; color: #f2994b; } .btn-outlined.btn-blue { background: none; border: 1px solid #0a819c; color: #0a819c; } .btn-outlined.btn-pink { background: none; border: 1px solid #bf3773; color: #bf3773; } .btn-outlined.btn-violet { background: none; border: 1px solid #9351ad; color: #9351ad; } .btn-outlined.btn-grey { background: none; border: 1px solid #4b5d67; color: #4b5d67; } .btn-outlined.btn-dark { background: none; border: 1px solid #594857; color: #594857; } .btn-default { color: #999999; background-color: #efefef; border-color: #e5e5e5; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #999999; background-color: #dbdbdb; border-color: #c6c6c6; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #efefef; border-color: #e5e5e5; } .btn-primary { color: #ffffff; background-color: #488c6c; border-color: #458567; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #3a7157; border-color: #305d48; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #488c6c; border-color: #458567; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #55b555; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #47a447; border-color: #3e8f3e; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #55b555; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #53bddc; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #28a4c9; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #53bddc; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #efa945; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ed9c28; border-color: #e38d13; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #efa945; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d74b47; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #d2322d; border-color: #b92c28; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d74b47; } .btn-red { color: #ffffff; background-color: #bf4346; border-color: #b93f42; } .btn-red:hover, .btn-red:focus, .btn-red:active, .btn-red.active, .open .dropdown-toggle.btn-red { color: #ffffff; background-color: #a2373a; border-color: #8b2f32; } .btn-red:active, .btn-red.active, .open .dropdown-toggle.btn-red { background-image: none; } .btn-red.disabled, .btn-red[disabled], fieldset[disabled] .btn-red, .btn-red.disabled:hover, .btn-red[disabled]:hover, fieldset[disabled] .btn-red:hover, .btn-red.disabled:focus, .btn-red[disabled]:focus, fieldset[disabled] .btn-red:focus, .btn-red.disabled:active, .btn-red[disabled]:active, fieldset[disabled] .btn-red:active, .btn-red.disabled.active, .btn-red[disabled].active, fieldset[disabled] .btn-red.active { background-color: #bf4346; border-color: #b93f42; } .btn-orange { color: #ffffff; background-color: #e9662c; border-color: #e85f23; } .btn-orange:hover, .btn-orange:focus, .btn-orange:active, .btn-orange.active, .open .dropdown-toggle.btn-orange { color: #ffffff; background-color: #d65116; border-color: #ba4713; } .btn-orange:active, .btn-orange.active, .open .dropdown-toggle.btn-orange { background-image: none; } .btn-orange.disabled, .btn-orange[disabled], fieldset[disabled] .btn-orange, .btn-orange.disabled:hover, .btn-orange[disabled]:hover, fieldset[disabled] .btn-orange:hover, .btn-orange.disabled:focus, .btn-orange[disabled]:focus, fieldset[disabled] .btn-orange:focus, .btn-orange.disabled:active, .btn-orange[disabled]:active, fieldset[disabled] .btn-orange:active, .btn-orange.disabled.active, .btn-orange[disabled].active, fieldset[disabled] .btn-orange.active { background-color: #e9662c; border-color: #e85f23; } .btn-green { color: #ffffff; background-color: #488c6c; border-color: #458567; } .btn-green:hover, .btn-green:focus, .btn-green:active, .btn-green.active, .open .dropdown-toggle.btn-green { color: #ffffff; background-color: #3a7157; border-color: #305d48; } .btn-green:active, .btn-green.active, .open .dropdown-toggle.btn-green { background-image: none; } .btn-green.disabled, .btn-green[disabled], fieldset[disabled] .btn-green, .btn-green.disabled:hover, .btn-green[disabled]:hover, fieldset[disabled] .btn-green:hover, .btn-green.disabled:focus, .btn-green[disabled]:focus, fieldset[disabled] .btn-green:focus, .btn-green.disabled:active, .btn-green[disabled]:active, fieldset[disabled] .btn-green:active, .btn-green.disabled.active, .btn-green[disabled].active, fieldset[disabled] .btn-green.active { background-color: #488c6c; border-color: #458567; } .btn-yellow { color: #ffffff; background-color: #f2994b; border-color: #f19441; } .btn-yellow:hover, .btn-yellow:focus, .btn-yellow:active, .btn-yellow.active, .open .dropdown-toggle.btn-yellow { color: #ffffff; background-color: #ef8325; border-color: #e57411; } .btn-yellow:active, .btn-yellow.active, .open .dropdown-toggle.btn-yellow { background-image: none; } .btn-yellow.disabled, .btn-yellow[disabled], fieldset[disabled] .btn-yellow, .btn-yellow.disabled:hover, .btn-yellow[disabled]:hover, fieldset[disabled] .btn-yellow:hover, .btn-yellow.disabled:focus, .btn-yellow[disabled]:focus, fieldset[disabled] .btn-yellow:focus, .btn-yellow.disabled:active, .btn-yellow[disabled]:active, fieldset[disabled] .btn-yellow:active, .btn-yellow.disabled.active, .btn-yellow[disabled].active, fieldset[disabled] .btn-yellow.active { background-color: #f2994b; border-color: #f19441; } .btn-blue { color: #ffffff; background-color: #0a819c; border-color: #097992; } .btn-blue:hover, .btn-blue:focus, .btn-blue:active, .btn-blue.active, .open .dropdown-toggle.btn-blue { color: #ffffff; background-color: #086176; border-color: #064a59; } .btn-blue:active, .btn-blue.active, .open .dropdown-toggle.btn-blue { background-image: none; } .btn-blue.disabled, .btn-blue[disabled], fieldset[disabled] .btn-blue, .btn-blue.disabled:hover, .btn-blue[disabled]:hover, fieldset[disabled] .btn-blue:hover, .btn-blue.disabled:focus, .btn-blue[disabled]:focus, fieldset[disabled] .btn-blue:focus, .btn-blue.disabled:active, .btn-blue[disabled]:active, fieldset[disabled] .btn-blue:active, .btn-blue.disabled.active, .btn-blue[disabled].active, fieldset[disabled] .btn-blue.active { background-color: #0a819c; border-color: #097992; } .btn-violet { color: #ffffff; background-color: #9351ad; border-color: #8d4ea6; } .btn-violet:hover, .btn-violet:focus, .btn-violet:active, .btn-violet.active, .open .dropdown-toggle.btn-violet { color: #ffffff; background-color: #7b4491; border-color: #6a3a7c; } .btn-violet:active, .btn-violet.active, .open .dropdown-toggle.btn-violet { background-image: none; } .btn-violet.disabled, .btn-violet[disabled], fieldset[disabled] .btn-violet, .btn-violet.disabled:hover, .btn-violet[disabled]:hover, fieldset[disabled] .btn-violet:hover, .btn-violet.disabled:focus, .btn-violet[disabled]:focus, fieldset[disabled] .btn-violet:focus, .btn-violet.disabled:active, .btn-violet[disabled]:active, fieldset[disabled] .btn-violet:active, .btn-violet.disabled.active, .btn-violet[disabled].active, fieldset[disabled] .btn-violet.active { background-color: #9351ad; border-color: #8d4ea6; } .btn-pink { color: #ffffff; background-color: #bf3773; border-color: #b7356e; } .btn-pink:hover, .btn-pink:focus, .btn-pink:active, .btn-pink.active, .open .dropdown-toggle.btn-pink { color: #ffffff; background-color: #9f2e60; border-color: #882752; } .btn-pink:active, .btn-pink.active, .open .dropdown-toggle.btn-pink { background-image: none; } .btn-pink.disabled, .btn-pink[disabled], fieldset[disabled] .btn-pink, .btn-pink.disabled:hover, .btn-pink[disabled]:hover, fieldset[disabled] .btn-pink:hover, .btn-pink.disabled:focus, .btn-pink[disabled]:focus, fieldset[disabled] .btn-pink:focus, .btn-pink.disabled:active, .btn-pink[disabled]:active, fieldset[disabled] .btn-pink:active, .btn-pink.disabled.active, .btn-pink[disabled].active, fieldset[disabled] .btn-pink.active { background-color: #bf3773; border-color: #b7356e; } .btn-grey { color: #ffffff; background-color: #4b5d67; border-color: #475861; } .btn-grey:hover, .btn-grey:focus, .btn-grey:active, .btn-grey.active, .open .dropdown-toggle.btn-grey { color: #ffffff; background-color: #3a484f; border-color: #2d383e; } .btn-grey:active, .btn-grey.active, .open .dropdown-toggle.btn-grey { background-image: none; } .btn-grey.disabled, .btn-grey[disabled], fieldset[disabled] .btn-grey, .btn-grey.disabled:hover, .btn-grey[disabled]:hover, fieldset[disabled] .btn-grey:hover, .btn-grey.disabled:focus, .btn-grey[disabled]:focus, fieldset[disabled] .btn-grey:focus, .btn-grey.disabled:active, .btn-grey[disabled]:active, fieldset[disabled] .btn-grey:active, .btn-grey.disabled.active, .btn-grey[disabled].active, fieldset[disabled] .btn-grey.active { background-color: #4b5d67; border-color: #475861; } .btn-dark { color: #ffffff; background-color: #594857; border-color: #534351; } .btn-dark:hover, .btn-dark:focus, .btn-dark:active, .btn-dark.active, .open .dropdown-toggle.btn-dark { color: #ffffff; background-color: #423641; border-color: #322830; } .btn-dark:active, .btn-dark.active, .open .dropdown-toggle.btn-dark { background-image: none; } .btn-dark.disabled, .btn-dark[disabled], fieldset[disabled] .btn-dark, .btn-dark.disabled:hover, .btn-dark[disabled]:hover, fieldset[disabled] .btn-dark:hover, .btn-dark.disabled:focus, .btn-dark[disabled]:focus, fieldset[disabled] .btn-dark:focus, .btn-dark.disabled:active, .btn-dark[disabled]:active, fieldset[disabled] .btn-dark:active, .btn-dark.disabled.active, .btn-dark[disabled].active, fieldset[disabled] .btn-dark.active { background-color: #594857; border-color: #534351; } .btn-white { color: #999999; background-color: #ffffff; border-color: #e5e5e5; } .btn-white:hover, .btn-white:focus, .btn-white:active, .btn-white.active, .open .dropdown-toggle.btn-white { color: #999999; background-color: #ebebeb; border-color: #c6c6c6; } .btn-white:active, .btn-white.active, .open .dropdown-toggle.btn-white { background-image: none; } .btn-white.disabled, .btn-white[disabled], fieldset[disabled] .btn-white, .btn-white.disabled:hover, .btn-white[disabled]:hover, fieldset[disabled] .btn-white:hover, .btn-white.disabled:focus, .btn-white[disabled]:focus, fieldset[disabled] .btn-white:focus, .btn-white.disabled:active, .btn-white[disabled]:active, fieldset[disabled] .btn-white:active, .btn-white.disabled.active, .btn-white[disabled].active, fieldset[disabled] .btn-white.active { background-color: #ffffff; border-color: #e5e5e5; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 0px !important; border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-bottom-left-radius: 0px !important; border-top-right-radius: 0 !important; border-top-left-radius: 0 !important; } .input-group .input-group-addon { color: #999999; border-color: #e5e5e5; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .input-group .input-group-btn .btn { border: 1px solid #e5e5e5 !important; -webkit-box-shadow: none !important; box-shadow: none !important; } .input-group .input-group-btn .btn.btn-primary { border-color: #3f7b5f !important; } .input-group .input-group-btn .btn.btn-success { border-color: #4cae4c !important; } .input-group .input-group-btn .btn.btn-warning { border-color: #eea236 !important; } .input-group .input-group-btn .btn.btn-info { border-color: #46b8da !important; } .input-group .input-group-btn .btn.btn-danger { border-color: #d43f3a !important; } .input-group .input-group-btn .btn.btn-red { border-color: #ad3b3e !important; } .input-group .input-group-btn .btn.btn-orange { border-color: #e45618 !important; } .input-group .input-group-btn .btn.btn-green { border-color: #3f7b5f !important; } .input-group .input-group-btn .btn.btn-yellow { border-color: #f08c33 !important; } .input-group .input-group-btn .btn.btn-blue { border-color: #086d84 !important; } .input-group .input-group-btn .btn.btn-pink { border-color: #ab3167 !important; } .input-group .input-group-btn .btn.btn-violet { border-color: #84499c !important; } .input-group .input-group-btn .btn.btn-grey { border-color: #405058 !important; } .input-group .input-group-btn .btn.btn-dark { border-color: #4b3d49 !important; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .dropdown-menu { margin: 0; padding: 0; border: 0; border-radius: 0; } .dropdown-menu li a { color: #999999; padding: 9px 10px; font-size: 13px; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 5px; left: 100%; margin-top: -6px; margin-left: -1px; } .dropdown-submenu > a:after { position: absolute; display: inline-block; right: 7px; top: 7px; font-family: FontAwesome; height: auto; content: "\f105"; font-weight: 300; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: 10px; } .dropup .dropdown-submenu > .dropdown-menu { top: auto; bottom: 0; margin-top: 0; margin-bottom: -2px; } .nav-pills li.active a { background: #488c6c; } .nav-pills li.active a:hover, .nav-pills li.active a:focus { background: #488c6c; } .nav-pills li a { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .list-group .list-group-item { border-color: #e5e5e5; color: #999999; } .list-group .list-group-item.active { background: #488c6c; border-color: #488c6c; color: #ffffff; } .list-group .list-group-item.active:hover, .list-group .list-group-item.active:focus { background: #488c6c; border-color: #488c6c; } .list-group .list-group-item:first-child { border-top-right-radius: 0 !important; border-top-left-radius: 0 !important; } .list-group .list-group-item:last-child { border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; } .nav-tabs { border-color: #e5e5e5 !important; } .nav-tabs li a { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .tab-content { background: #fff; padding: 20px 15px; margin-bottom: 20px; border: 1px solid; border-color: #e5e5e5 !important; border-top: 0; } .tabbable:before { display: table; line-height: 0; content: ""; } .tabbable:after { display: table; line-height: 0; content: ""; clear: both; } .tabbable.tabs-left .nav-tabs { float: left; display: inline-block; border-bottom: 0; } .tabbable.tabs-left .nav-tabs > li { float: none; } .tabbable.tabs-left .nav-tabs > li.active > a, .tabbable.tabs-left .nav-tabs > li:hover > a, .tabbable.tabs-left .nav-tabs > li:focus > a { border: 1px solid; border-color: #e5e5e5 !important; border-right: 0; } .tabbable.tabs-left .nav-tabs > li > a { border-right: 0; min-width: 74px; margin-bottom: 3px; margin-right: -1px; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .tabbable.tabs-left .tab-content { overflow: auto; border: 1px solid; border-color: #e5e5e5 !important; } .tabbable.tabs-right .nav-tabs { float: right; display: inline-block; border-bottom: 0; } .tabbable.tabs-right .nav-tabs > li { float: none; } .tabbable.tabs-right .nav-tabs > li.active > a, .tabbable.tabs-right .nav-tabs > li:hover > a, .tabbable.tabs-right .nav-tabs > li:focus > a { border: 1px solid; border-color: #e5e5e5 !important; border-left: 0; } .tabbable.tabs-right .nav-tabs > li > a { border-left: 0; min-width: 74px; margin-bottom: 3px; margin-left: -1px; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .tabbable.tabs-right .tab-content { overflow: auto; border: 1px solid; border-color: #e5e5e5 !important; } .tabbable.tabs-below .nav-tabs { margin-bottom: 20px !important; border: 0; } .tabbable.tabs-below .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabbable.tabs-below .nav-tabs > li.active > a { border: 1px solid; border-color: #e5e5e5 !important; border-top: 0; } .tabbable.tabs-below .nav-tabs > li > a { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .tabbable.tabs-below .tab-content { overflow: auto; margin-bottom: 0 !important; border: 1px solid; border-color: #e5e5e5 !important; } .progress { position: relative; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; } .progress.progress-xs { height: 5px; margin-top: 5px; } .progress.progress-sm { height: 11px; margin-top: 5px; } .progress.progress-lg { height: 25px; } .progress .progress-bar { -webkit-box-shadow: none !important; box-shadow: none !important; background-color: #488c6c; } .progress .progress-bar.progress-bar-success { background-color: #5cb85c !important; } .progress .progress-bar.progress-bar-warning { background-color: #f0ad4e !important; } .progress .progress-bar.progress-bar-info { background-color: #5bc0de !important; } .progress .progress-bar.progress-bar-danger { background-color: #d9534f !important; } .progress .progress-bar.progress-bar-red { background-color: #bf4346 !important; } .progress .progress-bar.progress-bar-orange { background-color: #e9662c !important; } .progress .progress-bar.progress-bar-green { background-color: #488c6c !important; } .progress .progress-bar.progress-bar-yellow { background-color: #f2994b !important; } .progress .progress-bar.progress-bar-blue { background-color: #0a819c !important; } .progress .progress-bar.progress-bar-violet { background-color: #9351ad !important; } .progress .progress-bar.progress-bar-pink { background-color: #bf3773 !important; } .progress .progress-bar.progress-bar-grey { background-color: #4b5d67 !important; } .progress .progress-bar.progress-bar-dark { background-color: #594857 !important; } .progress .progress-bar.progress-bar-white { background-color: #ffffff !important; } .progress .progress-bar.six-sec-ease-in-out { -webkit-transition: width 6s ease-in-out; -moz-transition: width 6s ease-in-out; -ms-transition: width 6s ease-in-out; -o-transition: width 6s ease-in-out; transition: width 6s ease-in-out; } .progress.wide { width: 60px; height: 150px; } .progress.vertical.progress-xs { width: 10px; margin-top: 0; } .progress.vertical.progress-sm { width: 20px; margin-top: 0; } .progress.vertical.progress-lg { width: 70px; } .form-actions { padding: 20px 0; background: #fafafa; border-bottom-right-radius: 4px !important; border-bottom-left-radius: 4px !important; } .form-actions:before, .form-actions:after { display: table; line-height: 0; content: ""; } .form-actions:after { clear: both; } .form-actions.top { border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; } .form-actions.none-bg { background: transparent; border-top: 1px dashed #f3f3f3; } .form-actions.none-bg.top { border-bottom: 1px dashed #f3f3f3; border-top: 0; } .state-success .form-control { border-color: #7edc7f !important; } .state-warning .form-control { border-color: #dcb359 !important; } .state-error .form-control { border-color: #db4c4a !important; } .state-success em { color: #7edc7f !important; margin-top: 5px; display: block; } .state-warning em { color: #dcb359 !important; margin-top: 5px; display: block; } .state-error em { color: #db4c4a !important; margin-top: 5px; display: block; } .state-success input, .state-success select, .state-success textarea { background: #dff0d8 !important; } .state-warning input, .state-warning select, .state-warning textarea { background: #fcf8e3 !important; } .state-error input, .state-error select, .state-error textarea { background: #f2dede !important; } .form-bordered .control-label { padding-top: 16px; } .form-bordered .form-group { margin: 0; border-bottom: 1px solid #f7f7f7; } .form-bordered .form-group > div { padding: 15px; border-left: 1px solid #f7f7f7; } .form-bordered .form-group:last-child { border-bottom: 0; } .form-bordered .help-block { margin-bottom: 0px; } .form-bordered.dashed .form-group { border-bottom: 1px dashed #f3f3f3; } .form-bordered.dashed .form-group > div { border-left: 1px dashed #f3f3f3; } .form-bordered.dashed .form-group:last-child { border-bottom: 0; } .form-seperated .control-label { padding-top: 16px; } .form-seperated .form-group { margin: 0; border-bottom: 1px solid #f7f7f7; } .form-seperated .form-group > div { padding: 15px; } .form-seperated .form-group:last-child { border-bottom: 0; } .form-seperated .help-block { margin-bottom: 0px; } .form-seperated.dashed .form-group { border-bottom: 1px dashed #f3f3f3; } .form-seperated.dashed .form-group:last-child { border-bottom: 0; } .form-horizontal.form-row-stripped .form-group:nth-child(odd) { background: #fcfcfc; } .form-horizontal.form-seperated .radio, .form-horizontal.form-seperated .checkbox, .form-horizontal.form-seperated .radio-inline, .form-horizontal.form-seperated .checkbox-inline { padding-top: 0; } .text-primary { color: #488c6c !important; } .text-red { color: #bf4346 !important; } .text-orange { color: #e9662c !important; } .text-green { color: #488c6c !important; } .text-yellow { color: #f2994b !important; } .text-blue { color: #0a819c !important; } .text-pink { color: #bf3773 !important; } .text-violet { color: #9351ad !important; } .text-grey { color: #4b5d67 !important; } .text-dark { color: #594857 !important; } .text-white { color: #ffffff !important; } .text-facebook { color: #418bca; } .text-twitter { color: #5bc0de; } .text-google-plus { color: #dd4c39; } .text-dribbble { color: #ec5d92; } .input-mini { width: 45px !important; } .input-xsmall { width: 80px !important; } .input-small { width: 120px !important; } .input-medium { width: 240px !important; } .input-large { width: 320px !important; } .input-xlarge { width: 480px !important; } .input-inline { display: inline-block; width: auto; vertical-align: middle; } .form-group .input-inline { margin-right: 5px; } .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: 'Open Sans', sans-serif; font-size: 13px; } .ui-spinner-input { height: 24px; } .modal .modal-dialog .modal-content { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .modal .modal-dialog .modal-content .modal-header.modal-header-primary { background: #488c6c; } .modal .modal-dialog .modal-content .modal-header.modal-header-primary .modal-title { color: #FFFFFF; } .modal .modal-dialog .modal-content .modal-footer.modal-footer-left { text-align: left !important; } .portlet { clear: both; margin-top: 0px; margin-bottom: 25px; padding: 0px; } .portlet { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .portlet.box > .portlet-header { margin-bottom: 0; padding: 8px 15px; border-top-right-radius: 0 !important; border-top-left-radius: 0 !important; } .portlet > .portlet-header { margin-bottom: 15px; background: #ffffff; border-bottom: 1px solid #e5e5e5; } .portlet > .portlet-header:before { content: ""; display: table; line-height: 0; } .portlet > .portlet-header:after { content: ""; display: table; line-height: 0; clear: both; } .portlet > .portlet-header .caption { float: left; display: inline-block; font-size: 18px; line-height: 18px; padding: 0; } .portlet > .portlet-header .caption i { float: left; margin-top: 4px; display: inline-block !important; font-size: 13px; margin-right: 5px; color: #999999; } .portlet > .portlet-header .actions { display: inline-block; padding: 0; margin: 0; margin-top: 6px; float: right; } .portlet > .portlet-header .actions > .btn { padding: 4px 10px; margin-top: -18px; } .portlet > .portlet-header .actions > .btn.btn-sm { padding: 3px 8px; margin-top: -13px; } .portlet > .portlet-header .actions > .btn.btn-xs { padding: 1px 5px; margin-top: -13px; } .portlet > .portlet-header .actions > .btn-group { margin-top: -12px; } .portlet > .portlet-header .actions > .btn-group > .btn { padding: 4px 10px; margin-top: -1px; } .portlet > .portlet-header .actions > .btn-group > .btn.btn-sm { padding: 3px 8px; margin-top: -1px; } .portlet > .portlet-header .actions > .btn-group > .btn.btn-xs { padding: 1px 5px; margin-top: -1px; } .portlet > .portlet-header .pagination.pagination-sm { float: right; display: inline-block; margin: 0px; } .portlet > .portlet-header .pagination.pagination-sm li a { padding: 3px 10px; } .portlet > .portlet-header .tools { display: inline-block; padding: 0; margin: 0; float: right; } .portlet > .portlet-header .tools i { margin-left: 5px; cursor: pointer; } .portlet .portlet-body { background: #FFFFFF; padding: 15px; clear: both; border-bottom-right-radius: 0 !important; border-bottom-left-radius: 0 !important; } .portlet .portlet-body.form { padding: 0 !important; } .portlet.portlet-default > .portlet-header { background: #FFFFFF; color: #999999; border-bottom: 1px solid #f0f2f6; } .portlet.portlet-default > .portlet-header i { color: #999999; } .portlet.portlet-default > .portlet-header .btn i { color: #999999; } .portlet.portlet-primary { border-color: #488c6c; } .portlet.portlet-primary > .portlet-header { background: #488c6c; color: #ffffff; } .portlet.portlet-red { border-color: #bf4346; } .portlet.portlet-red > .portlet-header { background: #bf4346; color: #ffffff; } .portlet.portlet-orange { border-color: #e9662c; } .portlet.portlet-orange > .portlet-header { background: #e9662c; color: #ffffff; } .portlet.portlet-green { border-color: #488c6c; } .portlet.portlet-green > .portlet-header { background: #488c6c; color: #ffffff; } .portlet.portlet-yellow { border-color: #f2994b; } .portlet.portlet-yellow > .portlet-header { background: #f2994b; color: #ffffff; } .portlet.portlet-blue { border-color: #0a819c; } .portlet.portlet-blue > .portlet-header { background: #0a819c; color: #ffffff; } .portlet.portlet-violet { border-color: #9351ad; } .portlet.portlet-violet > .portlet-header { background: #9351ad; color: #ffffff; } .portlet.portlet-pink { border-color: #bf3773; } .portlet.portlet-pink > .portlet-header { background: #bf3773; color: #ffffff; } .portlet.portlet-grey { border-color: #4b5d67; } .portlet.portlet-grey > .portlet-header { background: #4b5d67; color: #ffffff; } .portlet.portlet-dark { border-color: #594857; } .portlet.portlet-dark > .portlet-header { background: #594857; color: #ffffff; } .portlet { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .portlet.color { padding: 0; } .portlet.color .portlet-header { margin-bottom: 0; border: 0px; } .portlet.color .portlet-header .btn.btn-white i { color: #999999; } .portlet.color .portlet-body { background: transparent; } .portlet.color.portlet-default { background: #FFFFFF !important; } .portlet.color.portlet-default > .portlet-header { color: #999999; border: 0; } .portlet.color.portlet-default > .portlet-header > .caption i { color: #999999; border: 0; } .portlet.color.portlet-default > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-default > .portlet-body { color: #999999; border: 0; padding: 0; background: transparent; } .portlet.color.portlet-primary { background: #488c6c !important; } .portlet.color.portlet-primary > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-primary > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-primary > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-primary > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.brand-primary { background: #488c6c !important; } .portlet.color.portlet-red { background: #bf4346 !important; } .portlet.color.portlet-red > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-red > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-red > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-red > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-red { background: #bf4346 !important; } .portlet.color.portlet-orange { background: #e9662c !important; } .portlet.color.portlet-orange > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-orange > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-orange > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-orange > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-orange { background: #e9662c !important; } .portlet.color.portlet-green { background: #488c6c !important; } .portlet.color.portlet-green > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-green > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-green > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-green > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-green { background: #488c6c !important; } .portlet.color.portlet-yellow { background: #f2994b !important; } .portlet.color.portlet-yellow > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-yellow > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-yellow > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-yellow > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-yellow { background: #f2994b !important; } .portlet.color.portlet-blue { background: #0a819c !important; } .portlet.color.portlet-blue > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-blue > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-blue > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-blue > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-blue { background: #0a819c !important; } .portlet.color.portlet-violet { background: #9351ad !important; } .portlet.color.portlet-violet > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-violet > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-violet > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-violet > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-violet { background: #9351ad !important; } .portlet.color.portlet-pink { background: #bf3773 !important; } .portlet.color.portlet-pink > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-pink > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-pink > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-pink > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-pink { background: #bf3773 !important; } .portlet.color.portlet-grey { background: #4b5d67 !important; } .portlet.color.portlet-grey > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-grey > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-grey > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-grey > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-grey { background: #4b5d67 !important; } .portlet.color.portlet-dark { background: #594857 !important; } .portlet.color.portlet-dark > .portlet-header { color: #ffffff; border: 0; } .portlet.color.portlet-dark > .portlet-header > .caption i { color: #ffffff; border: 0; } .portlet.color.portlet-dark > .portlet-header > .tools { border: 0px; } .portlet.color.portlet-dark > .portlet-body { color: #ffffff; border: 0; } .portlet.color > .portlet-body.color-dark { background: #594857 !important; } .portlet-tabs > .nav-tabs { position: relative; top: -44px; margin-right: 15px; border-bottom: none; padding: 4px 0px; overflow: hidden; } .portlet-tabs > .nav-tabs > li { float: right; margin-left: 1px; } .portlet-tabs > .nav-tabs > li:last-child a { border-right: 0; } .portlet-tabs > .nav-tabs > li.active { color: #488c6c; border-top-color: transparent; } .portlet-tabs > .nav-tabs > li.active a { margin-bottom: 0px; border-bottom: 0; margin-left: 0px; margin-right: 0px; border-left: 0; border-right: 0; background-color: none !important; border-top-color: transparent !important; color: #999999; cursor: default; } .portlet-tabs > .nav-tabs > li.active a:hover { background-color: #fff !important; } .portlet-tabs > .nav-tabs > li a { color: #fff; padding-top: 8px; padding-bottom: 10px; line-height: 16px; margin-top: 6px; margin-left: 0px; margin-right: 0px; border-left: 0; border-right: 0; } .portlet-tabs > .nav-tabs > li a:hover { color: #999999; margin-bottom: 0; border-bottom-color: transparent; margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; background-color: none !important; border-top-color: transparent; } .portlet-tabs > .tab-content { padding: 15px !important; margin: 0px; margin-top: -50px !important; border: 0; } .portlet.tabbable .portlet-body { padding: 0px !important; } .sortable .portlet .portlet-header { cursor: move; } .sortable-placeholder { display: block; margin-top: 0px !important; margin-bottom: 25px !important; background-color: #f5f5f5; border: 1px dashed #488c6c; } .sortable-placeholder * { visibility: hidden; } .wait { position: relative; background: url("../../images/icons/loading.gif") center no-repeat !important; } .family-tree-vertical li { margin: 0px 0; list-style-type: none; position: relative; padding: 20px 5px 0px 5px; } .family-tree-vertical li:before { content: ''; position: absolute; top: 0; width: 1px; height: 100%; right: auto; left: -20px; border-left: 1px solid #ccc; bottom: 50px; } .family-tree-vertical li:after { content: ''; position: absolute; top: 30px; width: 25px; height: 20px; right: auto; left: -20px; border-top: 1px solid #ccc; } .family-tree-vertical li a { display: inline-block; border: 1px solid #ccc; padding: 5px 10px; text-decoration: none; color: #666; font-family: arial, verdana, tahoma; font-size: 11px; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .family-tree-vertical li a:hover, .family-tree-vertical li a:hover + ul li a { background: #c8e4f8; color: #000; border: 1px solid #94a0b4; } .family-tree-vertical li:last-child:before { height: 30px; } .family-tree-vertical > ul > li::before, .family-tree-vertical > ul > li::after { border: 0; } .family-tree-vertical li a:hover + ul li::after, .family-tree-vertical li a:hover + ul li::before, .family-tree-vertical li a:hover + ul::before, .family-tree-vertical li a:hover + ul ul::before { border-color: #94a0b4; } .family-tree-horizontal ul { padding-top: 20px; position: relative; transition: all 0.5s; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; } .family-tree-horizontal li { float: left; text-align: center; list-style-type: none; position: relative; padding: 20px 5px 0 5px; transition: all 0.5s; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; } .family-tree-horizontal li::before, .family-tree-horizontal li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 1px solid #ccc; width: 50%; height: 20px; } .family-tree-horizontal li::after { right: auto; left: 50%; border-left: 1px solid #ccc; } .family-tree-horizontal li:only-child::after, .family-tree-horizontal li:only-child::before { display: none; } .family-tree-horizontal li:only-child { padding-top: 0; } .family-tree-horizontal li:first-child::before, .family-tree-horizontal li:last-child::after { border: 0 none; } .family-tree-horizontal li:last-child::before { border-right: 1px solid #ccc; } .family-tree-horizontal ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 1px solid #ccc; width: 0; height: 20px; } .family-tree-horizontal li a { border: 1px solid #ccc; padding: 5px 10px; text-decoration: none; color: #666; font-family: arial, verdana, tahoma; font-size: 11px; display: inline-block; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; transition: all 0.5s; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; } .family-tree-horizontal li a:hover, .family-tree-horizontal li a:hover + ul li a { background: #c8e4f8; color: #000; border: 1px solid #94a0b4; } .family-tree-horizontal li a:hover + ul li::after, .family-tree-horizontal li a:hover + ul li::before, .family-tree-horizontal li a:hover + ul::before, .family-tree-horizontal li a:hover + ul ul::before { border-color: #94a0b4; } .input-icon { position: relative; } .input-icon input { padding-left: 33px !important; color: #999999; } .input-icon i { color: #999999; display: block; position: absolute; margin: 10px 2px 4px 10px; width: 16px; height: 16px; font-size: 16px; text-align: center; } .input-icon.right input { padding-left: 12px !important; padding-right: 33px !important; } .input-icon.right i { right: 8px; float: right; } .has-success .input-icon i { color: #5cb85c; } .has-warning .input-icon i { color: #f0ad4e; } .has-error .input-icon i { color: #d9534f; } .rating { margin-bottom: 4px; font-size: 15px; line-height: 27px; color: #999999; } .rating label { display: block; float: right; height: 17px; margin-top: 5px; padding: 0 2px; font-size: 17px; line-height: 17px; cursor: pointer; color: #ccc; -ms-transition: color 0.3s; -moz-transition: color 0.3s; -webkit-transition: color 0.3s; } .rating label .fa-star:before { content: "\f005"; } .table thead tr th, .table thead tr td { border-bottom: 0; } .table.table-sm { font-size: .875em; } .table.table-lg { font-size: 1.2em; } .table > input[type='text'] { font-weight: normal; height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; } .table select { font-weight: normal; height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; } .table.table-advanced thead tr th { border-bottom-width: 1px !important; background-color: #efefef; } .table.table-advanced thead.primary tr th { background: #488c6c; color: #FFFFFF; } .table.table-advanced thead.success tr th { background: #5cb85c; color: #FFFFFF; } .table.table-advanced thead.warning tr th { background: #f0ad4e; color: #FFFFFF; } .table.table-advanced thead.info tr th { background: #5bc0de; color: #FFFFFF; } .table.table-advanced thead.danger tr th { background: #d9534f; color: #FFFFFF; } .table.table-advanced thead.red tr th { background: #bf4346; color: #FFFFFF; } .table.table-advanced thead.orange tr th { background: #e9662c; color: #FFFFFF; } .table.table-advanced thead.green tr th { background: #488c6c; color: #FFFFFF; } .table.table-advanced thead.yellow tr th { background: #f2994b; color: #FFFFFF; } .table.table-advanced thead.blue tr th { background: #0a819c; color: #FFFFFF; } .table.table-advanced thead.pink tr th { background: #bf3773; color: #FFFFFF; } .table.table-advanced thead.violet tr th { background: #9351ad; color: #FFFFFF; } .table.table-advanced thead.grey tr th { background: #4b5d67; color: #FFFFFF; } .table.table-advanced thead.dark tr th { background: #594857; color: #FFFFFF; } .table.table-advanced thead.white tr th { background: #ffffff; color: #999999; } .table.table-advanced tfoot tr th { border-bottom: 0 !important; background: #efefef; } .table.table-advanced tfoot.primary tr th { background: #488c6c; color: #FFFFFF; } .table.table-advanced tfoot.success tr th { background: #5cb85c; color: #FFFFFF; } .table.table-advanced tfoot.warning tr th { background: #f0ad4e; color: #FFFFFF; } .table.table-advanced tfoot.info tr th { background: #5bc0de; color: #FFFFFF; } .table.table-advanced tfoot.danger tr th { background: #d9534f; color: #FFFFFF; } .table.table-advanced tfoot.red tr th { background: #bf4346; color: #FFFFFF; } .table.table-advanced tfoot.orange tr th { background: #e9662c; color: #FFFFFF; } .table.table-advanced tfoot.green tr th { background: #488c6c; color: #FFFFFF; } .table.table-advanced tfoot.yellow tr th { background: #f2994b; color: #FFFFFF; } .table.table-advanced tfoot.blue tr th { background: #0a819c; color: #FFFFFF; } .table.table-advanced tfoot.pink tr th { background: #bf3773; color: #FFFFFF; } .table.table-advanced tfoot.violet tr th { background: #9351ad; color: #FFFFFF; } .table.table-advanced tfoot.grey tr th { background: #4b5d67; color: #FFFFFF; } .table.table-advanced tfoot.dark tr th { background: #594857; color: #FFFFFF; } .table.table-advanced tfoot.white tr th { background: #ffffff; color: #999999; } .table.table-hover-color tbody tr:hover td:first-child { border-left: 4px solid #488c6c; } .table-actions { margin-bottom: 20px; } .table-actions.bottom { margin-bottom: 0; margin-top: 20px; } .table-actions .pagination { margin: 0; } .fixed-header { top: 0; position: fixed; width: auto; display: none; border: none; z-index: 999; } .page-header-breadcrumb { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .timeline-label { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .form-control { -webkit-box-shadow: none !important; box-shadow: none !important; border-color: #e5e5e5; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } label { font-weight: normal; } .alert { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .breadcrumb { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .navbar { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .thumbnail { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; border-color: #e5e5e5 !important; } .tooltip .tooltip-inner { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .popover { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; border-color: #e5e5e5 !important; } .popover.left .arrow { border-left-color: #e5e5e5; } .popover.right .arrow { border-right-color: #e5e5e5; } .popover.top .arrow { border-top-color: #e5e5e5; } .popover.bottom .arrow { border-bottom-color: #e5e5e5; top: -14px; } .well { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; border-color: #e5e5e5 !important; } ul.todo-list li { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } ul.chats li.in .message { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } ul.chats li.out .message { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .cke_chrome { -webkit-box-shadow: none !important; box-shadow: none !important; } .cke_chrome .cke_top { -webkit-box-shadow: none !important; box-shadow: none !important; background-image: none; } .cke_chrome .cke_bottom { -webkit-box-shadow: none !important; box-shadow: none !important; background-image: none; } .cke_chrome .cke_combo_button, .cke_chrome .cke_toolgroup { border-color: #e5e5e5; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; background-image: none; } .cke_chrome .cke_combo_button:hover, .cke_chrome .cke_toolgroup:hover, .cke_chrome .cke_combo_button:focus, .cke_chrome .cke_toolgroup:focus { background-image: none; } .cke_chrome a.cke_button_off:hover, .cke_chrome a.cke_button_off:focus, .cke_chrome a.cke_button_off:active, .cke_chrome a.cke_button_disabled:hover, .cke_chrome a.cke_button_disabled:focus, .cke_chrome a.cke_button_disabled:active, .cke_chrome .cke_combo_off a.cke_combo_button:hover, .cke_chrome .cke_combo_off a.cke_combo_button:focus { background-image: none; } .md-editor > textarea { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } #toast-container > :hover { -webkit-box-shadow: none !important; box-shadow: none !important; } #toast-container div { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; } .has-switch { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; border: 0; } .has-switch span.switch-left, .has-switch span.switch-right, .has-switch label { text-shadow: none; box-shadow: none; background-image: none; border: 0; } .has-switch span.switch-left.switch-primary, .has-switch span.switch-right.switch-primary, .has-switch label.switch-primary { text-shadow: none; box-shadow: none; background-image: none; background: #488c6c !important; } .has-switch .switch-left { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } .has-switch .switch-right { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .has-switch .switch-on label { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; background-color: #e5e5e5; } .has-switch .switch-off label { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; background-color: #e5e5e5; } .slimScrollBar { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .clockface .outer, .clockface .inner { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .clockface .inner.active, .clockface .inner.active:hover, .clockface .outer.active, .clockface .outer.active:hover { text-shadow: none; background-image: none; } .clockface .inner.active:hover, .clockface .inner.active:hover:hover, .clockface .inner.active:active, .clockface .inner.active:hover:active, .clockface .inner.active.active, .clockface .inner.active:hover.active, .clockface .inner.active.disabled, .clockface .inner.active:hover.disabled, .clockface .inner.active[disabled], .clockface .inner.active:hover[disabled] { background: #488c6c; } .clockface .outer.active:hover, .clockface .outer.active:hover:hover, .clockface .outer.active:active, .clockface .outer.active:hover:active, .clockface .outer.active.active, .clockface .outer.active:hover.active, .clockface .outer.active.disabled, .clockface .outer.active:hover.disabled, .clockface .outer.active[disabled], .clockface .outer.active:hover[disabled] { background: #5cb85c; } .bootstrap-datetimepicker-widget td span { height: auto; line-height: normal; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover { background-image: none; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .bootstrap-datetimepicker-widget td, .bootstrap-datetimepicker-widget th { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .datepicker td, .datepicker th { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .datepicker table tr td.selected, .datepicker table tr td.selected:hover, .datepicker table tr td.selected.disabled, .datepicker table tr td.selected.disabled:hover { background-image: none; text-shadow: none; } .datepicker table tr td span.active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover { background-image: none; text-shadow: none; } .datepicker table tr td span { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .datepicker { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .daterangepicker .ranges li { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; color: #999999; } .daterangepicker .ranges li.active, .daterangepicker .ranges li:hover { background: #488c6c; border: 1px solid #488c6c; } .daterangepicker .ranges .input-mini, .daterangepicker td, .daterangepicker th, .daterangepicker .calendar-date { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .fc-state-default { -webkit-box-shadow: none !important; box-shadow: none !important; background-image: none; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; border: 1px solid #e5e5e5; text-shadow: none; color: #999999; } .page-form { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .page-form .header-content { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .media img.media-object { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .dd .dd-list .dd-item .dd-handle, .dd .dd-list .dd-item .dd3-content { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; border-color: #e5e5e5 !important; } .dd .dd-list .dd-item .dd-handle.dd3-handle, .dd .dd-list .dd-item .dd3-content.dd3-handle { border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; } .jquery-notific8-notification { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .wizard > .steps a, .wizard > .steps a:hover, .wizard > .steps a:active { padding: 0.5em 1em; -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .wizard > .actions a, .wizard > .actions a:hover, .wizard > .actions a:active { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } #theme-setting .btn-theme-setting { border-bottom-left-radius: 0 !important; border-top-left-radius: 0 !important; } #theme-setting .content-theme-setting ul#list-color li { -webkit-border-radius: 0 !important; -moz-border-radius: 0 !important; border-radius: 0 !important; } .jplist-panel .jplist-pagination button { border: 1px solid #e5e5e5; } .jplist-panel .jplist-pagination button:hover { background: #e5e5e5; } .jplist-thumbs-view .list-item .block { bottom: 10px; } .jplist-panel .jplist-group { -webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important; border: 1px solid #e5e5e5; }
$(function () { var nb = $('#navbtn'); var n = $('#topnav nav'); $(window).on('resize', function () { if ($(this).width() < 570 && n.hasClass('keep-nav-closed')) { // if the nav menu and nav button are both visible, // then the responsive nav transitioned from open to non-responsive, then back again. // re-hide the nav menu and remove the hidden class $('#topnav nav').hide().removeAttr('class'); } if (nb.is(':hidden') && n.is(':hidden') && $(window).width() > 569) { // if the navigation menu and nav button are both hidden, // then the responsive nav is closed and the window resized larger than 560px. // just display the nav menu which will auto-hide at <560px width. $('#topnav nav').show().addClass('keep-nav-closed'); } }); $('#topnav nav a,#topnav h1 a,#btmnav nav a').on('click', function (e) { e.preventDefault(); // stop all hash(#) anchor links from loading }); $('#navbtn').on('click', function (e) { e.preventDefault(); $("#topnav nav").slideToggle(350); }); });
# Copyright 2010, 2011 Kevin Ryde # This file is part of Gtk2-Ex-ComboBoxBits. # # Gtk2-Ex-ComboBoxBits is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation; either version 3, or (at your option) any # later version. # # Gtk2-Ex-ComboBoxBits is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License along # with Gtk2-Ex-ComboBoxBits. If not, see <http://www.gnu.org/licenses/>. package Gtk2::Ex::ComboBox::Text; use 5.008; use strict; use warnings; use Carp; use Gtk2; use Scalar::Util; use Gtk2::Ex::ComboBoxBits 'set_active_text'; # uncomment this to run the ### lines #use Smart::Comments; our $VERSION = 32; use Glib::Object::Subclass 'Gtk2::ComboBox', signals => { notify => \&_do_notify }, properties => [ Glib::ParamSpec->string ('active-text', 'Active text', 'The selected text value.', (eval {Glib->VERSION(1.240);1} ? undef # default : ''), # no undef/NULL before Perl-Glib 1.240 Glib::G_PARAM_READWRITE), # these are not gettable, so the default doesn't matter, # but give undef # Glib::ParamSpec->string ('append-text', 'append-text', 'Append a text string.', (eval {Glib->VERSION(1.240);1} ? undef # default : ''), # no undef/NULL before Perl-Glib 1.240 ['writable']), Glib::ParamSpec->string ('prepend-text', 'prepend-text', 'Prepend a text string.', (eval {Glib->VERSION(1.240);1} ? undef # default : ''), # no undef/NULL before Perl-Glib 1.240 ['writable']), ]; # Gtk2::ComboBox::new_text creates a Gtk2::ComboBox, must override to get a # subclass Gtk2::Ex::ComboBoxBits # could think about offering this as a ComboBox::Subclass mix-in sub new_text { return shift->new(@_); } my $renderer = Gtk2::CellRendererText->new; sub INIT_INSTANCE { my ($self) = @_; # same as gtk_combo_box_new_text(), which alas it doesn't make available # for general use $self->set_model (Gtk2::ListStore->new ('Glib::String')); $self->pack_start ($renderer, 1); $self->set_attributes ($renderer, text => 0); } sub GET_PROPERTY { my ($self) = @_; ### Text GET_PROPERTY: $_[1]->get_name # my $pname = $pspec->get_name; # if ($pname eq 'active_text') { return $self->get_active_text; } sub SET_PROPERTY { my ($self, $pspec, $newval) = @_; ### Text SET_PROPERTY: $pspec->get_name, $newval my $pname = $pspec->get_name; if ($pname eq 'active_text') { $self->set_active_text ($newval); } else { # append_text or prepend_text $self->$pname ($newval); } } # 'notify' class closure sub _do_notify { my ($self, $pspec) = @_; ### ComboBox-Test _do_notify() shift->signal_chain_from_overridden (@_); if ($pspec->get_name eq 'active') { $self->notify ('active-text'); } } 1; __END__ =for stopwords Gtk2-Ex-ComboBoxBits ComboBoxBits combobox ComboBox Gtk BUILDABLE buildable Ryde =head1 NAME Gtk2::Ex::ComboBox::Text -- text combobox with "active-text" property =head1 SYNOPSIS use Gtk2::Ex::ComboBox::Text; my $combo = Gtk2::Ex::ComboBox::Text->new_text; $combo->append_text ('First Choice'); $combo->append_text ('Second Choice'); $combo->set (active_text => 'Second Choice'); =head1 WIDGET HIERARCHY C<Gtk2::Ex::ComboBox::Text> is a subclass of C<Gtk2::ComboBox>, Gtk2::Widget Gtk2::Container Gtk2::Bin Gtk2::ComboBox Gtk2::Ex::ComboBox::Text =head1 DESCRIPTION This is a "text" style convenience C<Gtk2::ComboBox> with the addition of an C<active-text> property, and a couple of pseudo-properties to help filling in the choices. +-----------+ | Text One | +-----------+ ... The C<active-text> property is the same as C<< $combo->get_active_text >> but as a property can be treated a bit more generally than a method call, for instance link it up to another widget with C<Glib::Ex::ConnectProperties>. =head1 FUNCTIONS =over 4 =item C<< $combobox = Gtk2::Ex::ComboBox::Text->new (key => value,...) >> =item C<< $combobox = Gtk2::Ex::ComboBox::Text->new_text (key => value,...) >> Create and return a new Text combobox object. C<new> and C<new_text> are the same thing, since a Text combobox is always text style. Optional key/value pairs set initial properties per C<< Glib::Object->new >>. my $combo = Gtk2::Ex::ComboBox::Text->new; =item C<< $combobox->set_active_text ($str) >> The choice C<$str> active, the same as setting the C<active-text> property. It's slightly unspecified as yet what happens if C<$str> is not available as a choice in C<$combobox>. =back =head1 PROPERTIES =over 4 =item C<active-text> (string or C<undef>, default C<undef>) The text of the selected item, or C<undef> if nothing selected. =item C<append-text> (string, write-only) =item C<prepend-text> (string, write-only) Write-only pseudo-properties which add text choices to the combobox as per the usual C<append_text> and C<prepend_text> methods. =back =head1 BUILDABLE C<Gtk2::Ex::ComboBox::Text> inherits the usual buildable support from C<Gtk2::ComboBox>, allowing C<Gtk2::Builder> (new in Gtk 2.12) to construct a Text combobox. The class name is C<Gtk2__Ex__ComboBox__Text> and properties and signal handlers can be set in the usual way. The C<append-text> property is a good way to add choices to the combobox from within the builder specification. Either C<active> or C<active-text> can set an initial selection. Here's a sample fragment, or see F<examples/text-builder.pl> in the ComboBoxBits sources for a complete program. <object class="Gtk2__Ex__ComboBox__Text" id="combo"> <property name="append-text">First Choice</property> <property name="append-text">Second Choice</property> <property name="active">0</property> </object> =head1 SEE ALSO L<Gtk2::ComboBox>, L<Gtk2::Ex::ComboBoxBits>, L<Gtk2::Ex::ComboBox::Enum> =head1 HOME PAGE L<http://user42.tuxfamily.org/gtk2-ex-comboboxbits/index.html> =head1 LICENSE Copyright 2010, 2011 Kevin Ryde Gtk2-Ex-ComboBoxBits is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. Gtk2-Ex-ComboBoxBits is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Gtk2-Ex-ComboBoxBits. If not, see L<http://www.gnu.org/licenses/>. =cut
This shirt will be white, short sleeve. It will have a pixel fabric "7" on front of the shirt. There will be a gray shark and the name "isaac" in all lowercase letters across the "7" in brown fabric. The fabric will be fused to reduce fraying and then machine sewn with a straight stitch for added durability.
The pastor general of the Worldwide Church of God, in a mailing that included a report on church income, surveyed church members last month about the Feast of Tabernacles, asking them what configuration of festival they would like to see in 1997. Joseph Tkach Jr., in a letter dated "September 1996" and received by members of the WCG in East Texas, asked members if they would prefer a "traditional eight-day fall festival" or a "weekends-only festival during fall dates." In a departure from new tradition and old doctrine, Mr. Tkach also asked if members would be interested in a festival during the summer months, with "dates to be selected" later. "How would you prefer to observe the other festivals . . .?" the survey form queried. The questionnaire, as options for the answer to this question, listed "Traditional dates," "Weekend nearest traditional date" and "I/We do not plan to attend any of the festivals in 1997." The survey noted that members would be charged a "$200-$250 fee for expenses" for a traditional eight-day configuration. Weekends only during the traditional fall dates would require a fee of $75 to $100. The fee for a summer Feast of Tabernacles would run $75 to $100. In the cover letter, Mr. Tkach noted that some members have asked, "Can't I go to a different Christian church and remain part of the body of Christ?" Yes, he said, but "why not stay here and be part of the miracle of grace our Savior is performing in our fellowship?" Mr. Tkach said daily income in July was $166,000 per day, but the daily income at the end of August was $90,000, with the average for the year at $163,000 per day.
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /// <reference path="../../_references.ts"/> module powerbi.data.utils { import inherit = Prototype.inherit; import inheritSingle = Prototype.inheritSingle; import ArrayExtensions = jsCommon.ArrayExtensions; export module DataViewMatrixUtils { /** * Invokes the specified callback once per leaf nodes (including root-level leaves and descendent leaves) of the * specified rootNodes, with an optional index parameter in the callback that is the 0-based index of the * particular leaf node in the context of this forEachLeafNode(...) invocation. * * If rootNodes is null or undefined or empty, the specified callback will not get invoked. * * The treePath parameter in the callback is an ordered set of nodes that form the path from the specified * rootNodes down to the leafNode argument itself. If callback leafNode is one of the specified rootNodes, * then treePath will be an array of length 1 containing that very node. * * IMPORTANT: The treePath array passed to the callback will be modified after the callback function returns! * If your callback needs to retain a copy of the treePath, please clone the array before returning. */ export function forEachLeafNode( rootNodes: DataViewMatrixNode | DataViewMatrixNode[], callback: (leafNode: DataViewMatrixNode, index?: number, treePath?: DataViewMatrixNode[]) => void): void { debug.assertAnyValue(rootNodes, 'rootNodes'); debug.assertValue(callback, 'callback'); // Note: Don't do "if (!_.isEmpty(rootNodes))" for checking whether rootNodes is an empty array DataViewMatrixNode[], // because rootNodes can also be an non-array DataViewMatrixNode, and an empty object can be a valid root node DataViewMatrixNode, // for the fact that all the properties on DataViewMatrixNode are optional... if (rootNodes) { if (isNodeArray(rootNodes)) { let index = 0; for (let rootNode of rootNodes) { if (rootNode) { index = forEachLeafNodeRecursive(rootNode, index, [], callback); } } } else { forEachLeafNodeRecursive(rootNodes, 0, [], callback); } } } function isNodeArray(nodeOrNodeArray: DataViewMatrixNode | DataViewMatrixNode[]): nodeOrNodeArray is DataViewMatrixNode[] { return ArrayExtensions.isArrayOrInheritedArray(nodeOrNodeArray); } /** * Recursively traverses to each leaf node of the specified matrixNode and invokes callback with each of them. * Returns the index for the next node after the last node that this function invokes callback with. * * @treePath an array that contains the path from the specified rootNodes in forEachLeafNode() down to the parent of the argument matrixNode (i.e. treePath does not contain the matrixNode argument yet). */ function forEachLeafNodeRecursive( matrixNode: DataViewMatrixNode, nextIndex: number, treePath: DataViewMatrixNode[], callback: (leafNode: DataViewMatrixNode, index?: number, treePath?: DataViewMatrixNode[]) => void): number { debug.assertValue(matrixNode, 'matrixNode'); debug.assertValue(treePath, 'treePath'); debug.assertValue(callback, 'callback'); // If treePath already contains matrixNode, then either one of the following errors has happened: // 1. the caller code mistakenly added matrixNode to treePath, or // 2. the callback modified treePath by adding a node to it, or // 3. the matrix hierarchy contains a cyclical node reference.'); debug.assert(!_.contains(treePath, matrixNode), 'pre-condition: treePath must not already contain matrixNode'); treePath.push(matrixNode); if (_.isEmpty(matrixNode.children)) { // if it is a leaf node callback(matrixNode, nextIndex, treePath); nextIndex++; } else { let children = matrixNode.children; for (let nextChild of children) { if (nextChild) { nextIndex = forEachLeafNodeRecursive(nextChild, nextIndex, treePath, callback); } } } debug.assert(_.last(treePath) === matrixNode, 'pre-condition: the callback given to forEachLeafNode() is not supposed to modify the treePath argument array.'); treePath.pop(); return nextIndex; } /** * Returned an object tree where each node and its children property are inherited from the specified node * hierarchy, from the root down to the nodes at the specified deepestLevelToInherit, inclusively. * * The inherited nodes at level === deepestLevelToInherit will NOT get an inherited version of children array * property, i.e. its children property is the same array object referenced in the input node's object tree. * * @param node The input node with the hierarchy object tree. * @param deepestLevelToInherit The highest level for a node to get inherited. See DataViewMatrixNode.level property. * @param useInheritSingle If true, then a node will get inherited in the returned object tree only if it is * not already an inherited object. Same goes for the node's children property. This is useful for creating * "visual DataView" objects from "query DataView" objects, as object inheritance is the mechanism for * "visual DataView" to override properties in "query DataView", and that "query DataView" never contains * inherited objects. */ export function inheritMatrixNodeHierarchy( node: DataViewMatrixNode, deepestLevelToInherit: number, useInheritSingle: boolean): DataViewMatrixNode { debug.assertValue(node, 'node'); debug.assert(deepestLevelToInherit >= 0, 'deepestLevelToInherit >= 0'); debug.assertValue(useInheritSingle, 'useInheritSingle'); let returnNode = node; // Note: The level property of DataViewMatrix.rows.root and DataViewMatrix.columns.root are always undefined. // Also, in a matrix with multiple column grouping fields and multiple value fields, the DataViewMatrixNode // for the Grand Total column in the column hierarchy will have children nodes where level > (parent.level + 1): // { // "level": 0, // "isSubtotal": true, // "children": [ // { "level": 2, "isSubtotal": true }, // { "level": 2, "levelSourceIndex": 1, "isSubtotal": true } // ] // } let isRootNode = _.isUndefined(node.level); let shouldInheritCurrentNode = isRootNode || (node.level <= deepestLevelToInherit); if (shouldInheritCurrentNode) { let inheritFunc = useInheritSingle ? inheritSingle : inherit; let inheritedNode: DataViewMatrixNode = inheritFunc(node); let shouldInheritChildNodes = isRootNode || (node.level < deepestLevelToInherit); if (shouldInheritChildNodes && !_.isEmpty(node.children)) { inheritedNode.children = inheritFunc(node.children); // first, make an inherited array for (let i = 0, ilen = inheritedNode.children.length; i < ilen; i++) { inheritedNode.children[i] = inheritMatrixNodeHierarchy(inheritedNode.children[i], deepestLevelToInherit, useInheritSingle); } } returnNode = inheritedNode; } return returnNode; } /** * Returns true if the specified matrixOrHierarchy contains any composite grouping, i.e. a grouping on multiple columns. * An example of composite grouping is one on [Year, Quarter, Month], where a particular group instance can have * Year === 2016, Quarter === 'Qtr 1', Month === 1. * * Returns false if the specified matrixOrHierarchy does not contain any composite group, * or if matrixOrHierarchy is null or undefined. */ export function containsCompositeGroup(matrixOrHierarchy: DataViewMatrix | DataViewHierarchy): boolean { debug.assertAnyValue(matrixOrHierarchy, 'matrixOrHierarchy'); let hasCompositeGroup = false; if (matrixOrHierarchy) { if (isMatrix(matrixOrHierarchy)) { hasCompositeGroup = containsCompositeGroup(matrixOrHierarchy.rows) || containsCompositeGroup(matrixOrHierarchy.columns); } else { let hierarchyLevels = matrixOrHierarchy.levels; if (!_.isEmpty(hierarchyLevels)) { for (var level of hierarchyLevels) { // it takes at least 2 columns at the same hierarchy level to form a composite group... if (level.sources && (level.sources.length >= 2)) { debug.assert(_.all(level.sources, sourceColumn => sourceColumn.isMeasure === level.sources[0].isMeasure), 'pre-condition: in a valid DataViewMatrix, the source columns in each of its hierarchy levels must either be all non-measure columns (i.e. a grouping level) or all measure columns (i.e. a measure headers level)'); // Measure headers are not group let isMeasureHeadersLevel = level.sources[0].isMeasure; if (!isMeasureHeadersLevel) { hasCompositeGroup = true; break; } } } } } } return hasCompositeGroup; } function isMatrix(matrixOrHierarchy: DataViewMatrix | DataViewHierarchy): matrixOrHierarchy is DataViewMatrix { return 'rows' in matrixOrHierarchy && 'columns' in matrixOrHierarchy && 'valueSources' in matrixOrHierarchy; } } }
Using MOOSE on Windows 10 is experimental and not fully supported. Peacock does not work correctly (artifacts during rendering: surface normals are flipped). Different flavors of Linux are available. - Be sure to choose an OS in which we support. While MOOSE will ultimately work on just about every flavor of Linux, this document assumes you have chosen Ubuntu. Begin by performing the following external sets of instructions. Remember to choose Ubuntu, unless you know what you are doing. Each time you reboot, or basically each time VcXsrv is not running, and you wish to use the graphical capabilities of MOOSE (Peacock), you should start VcXsrv before launching your WSL terminal. We have found better performance instructing VcXsrv to use software rendering over native OpenGL. When launching VcXsrv, search for the option: "Native opengl", and un-check it. All other options can remain the default. Launch WSL, and modify the /etc/hosts file to include the results of hostname to resolve to 127.0.0.1. This is necessary due to the way MPICH (a message passing interface) passes information among itself when running applications (like MOOSE) in parallel. Modify your bash profile to allow WSL to connect to VcXsrv. With the above complete, close the WSL terminal, and re-open it. Then proceed to our Ubuntu instructions.
#include "functions.h" #include <fftw3.h> #include <cassert> #include <cmath> #include <fstream> #include <random> #include "focss/definitions.h" #include "focss/field.h" namespace focss { void setup() { // fftw_init_threads(); // fftw_plan_with_nthreads(2); focss::reseed_global_urng(); } void reseed_global_urng() { static std::random_device rdev; global_urng().seed(rdev()); } std::default_random_engine& global_urng() { static std::default_random_engine urng; return urng; } double evm2_factor(const ComplexVector& tx, const ComplexVector& rx) { assert(tx.size() == rx.size()); double numerator = 0; double denominator = 0; for (int i = 0; i < tx.size(); ++i) { numerator += norm(tx[i] - rx[i]); denominator += norm(tx[i]); } return numerator / denominator; } double evm2_factor(const Field& tx, const Field& rx) { assert(tx.size() == rx.size()); double numerator = 0; double denominator = 0; for (int i = 0; i < tx.size(); ++i) { numerator += norm(tx[i] - rx[i]); denominator += norm(tx[i]); } return numerator / denominator; } double evm2_factor(const Field& tx, const Field& rx, const int& cut) { assert(tx.modes() == rx.modes()); assert(tx.samples() == rx.samples()); double numerator = 0; double denominator = 0; for (int mode = 0; mode < tx.modes(); ++mode) { for (int sample = cut; sample < tx.samples() - cut; ++sample) { numerator += norm(tx(mode, sample) - rx(mode, sample)); denominator += norm(tx(mode, sample)); } } return numerator / denominator; } double q2_factor(const ComplexVector& tx, const ComplexVector& rx) { return -10 * std::log10(evm2_factor(tx, rx)); } double q2_factor(const Field& tx, const Field& rx) { return -10 * std::log10(evm2_factor(tx, rx)); } double q2_factor(const Field& tx, const Field& rx, const int& cut) { return -10 * std::log10(evm2_factor(tx, rx, cut)); // return 3.0 / 8.0 * std::erfc(sqrt(0.1 / evm2_factor(tx, rx, cut))); } double db_to_linear(const double& db_value) { return std::pow(10, db_value / 10); } double dbm_to_watts(const double& dbm_power) { return 1e-3 * std::pow(10, dbm_power / 10); } double db_to_natural(const double& db_value) { return db_value * std::log(10) / 10; } double disp_to_beta2(const double& dispersion, const double& wavelength) { return -wavelength * wavelength * dispersion / (2 * math_pi * light_speed); } double sinc(const double& x) { if (x == 0) return 1; return std::sin(math_pi * x) / math_pi / x; } complex_t i_exp(const double& x) { return complex_t(std::cos(x), std::sin(x)); } // ---------------------------------------------------------------------- // -------------------- complex_t* fast fourier transform (fft) // ---------------------------------------------------------------------- void fft_inplace(const int& size, complex_t* input_output) { fftw_plan complex_inplace = fftw_plan_dft_1d(size, reinterpret_cast<fftw_complex*>(input_output), reinterpret_cast<fftw_complex*>(input_output), FFTW_FORWARD, FFTW_ESTIMATE); fftw_execute(complex_inplace); fftw_destroy_plan(complex_inplace); for (int i = 0; i < size; ++i) input_output[i] /= size; } void ifft_inplace(const int& size, complex_t* input_output) { fftw_plan complex_inplace = fftw_plan_dft_1d(size, reinterpret_cast<fftw_complex*>(input_output), reinterpret_cast<fftw_complex*>(input_output), FFTW_BACKWARD, FFTW_ESTIMATE); fftw_execute(complex_inplace); fftw_destroy_plan(complex_inplace); } void fft(const int& size, complex_t* input, complex_t* output) { fftw_plan complex_inplace = fftw_plan_dft_1d( size, reinterpret_cast<fftw_complex*>(input), reinterpret_cast<fftw_complex*>(output), FFTW_FORWARD, FFTW_ESTIMATE); fftw_execute(complex_inplace); fftw_destroy_plan(complex_inplace); for (int i = 0; i < size; ++i) output[i] /= size; } void ifft(const int& size, complex_t* input, complex_t* output) { fftw_plan complex_inplace = fftw_plan_dft_1d( size, reinterpret_cast<fftw_complex*>(input), reinterpret_cast<fftw_complex*>(output), FFTW_BACKWARD, FFTW_ESTIMATE); fftw_execute(complex_inplace); fftw_destroy_plan(complex_inplace); } // ---------------------------------------------------------------------- // -------------------- ComplexVector fast fourier transform (fft) // ---------------------------------------------------------------------- void fft_inplace(ComplexVector* data) { fft_inplace(data->size(), data->raw()); } void ifft_inplace(ComplexVector* data) { ifft_inplace(data->size(), data->raw()); } ComplexVector fft(const ComplexVector& data) { ComplexVector copy(data); fft_inplace(&copy); return copy; } ComplexVector ifft(const ComplexVector& data) { ComplexVector copy(data); ifft_inplace(&copy); return copy; } // ---------------------------------------------------------------------- // -------------------- File import/export of Field // ---------------------------------------------------------------------- void save_transmission(std::ostream& output, const Field& tx, const Field& rx) { assert(tx.modes() == rx.modes()); assert(tx.samples() == rx.samples()); for (int i = 0; i < tx.samples(); ++i) { for (int mode = 0; mode < tx.modes(); ++mode) output << tx(mode, i).real() << ',' << tx(mode, i).imag() << ','; for (int mode = 0; mode < rx.modes() - 1; ++mode) output << rx(mode, i).real() << ',' << rx(mode, i).imag() << ','; output << rx(rx.modes() - 1, i).real() << ','; output << rx(rx.modes() - 1, i).imag() << '\n'; } } void load_transmission(std::istream& input, Field* tx, Field* rx) { assert(tx->modes() == rx->modes()); assert(tx->samples() == rx->samples()); double re, im; char delimeter = ','; for (int i = 0; i < tx->samples(); ++i) { input >> re >> delimeter >> im; tx->operator()(0, i) = complex_t(re, im); for (int mode = 1; mode < tx->modes(); ++mode) { input >> delimeter >> re >> delimeter >> im; tx->operator()(mode, i) = complex_t(re, im); } for (int mode = 0; mode < tx->modes(); ++mode) { input >> delimeter >> re >> delimeter >> im; rx->operator()(mode, i) = complex_t(re, im); } } } void save_transmission(const std::string& filename, const Field& tx, const Field& rx) { std::ofstream file(filename); file.precision(15); save_transmission(file, tx, rx); file.close(); } void load_transmission(const std::string& filename, Field* tx, Field* rx) { std::ifstream file(filename); load_transmission(file, tx, rx); file.close(); } } // namespace focss
Manager: Association pour l’Animation des Gorges de l’Aveyron et des Causses. Sarl Agent of the town of Najac. Users of this site acknowledge having the skills and resources necessary to access and use this site. The user acknowledges having read this legal notice and agrees to comply. Total or partial reproduction of this website by any means whatsoever without the express permission of the owner of the website is prohibited and constitutes an infringement punishable by articles L 335-2 of the Code of intellectual property. The trademarks of the website owner and its partners, and the logos on this website are (semi-figurative or not) trademarks. Total or partial reproduction of these brands or these logos, made using parts of the site without the express permission of the website owner or his beneficiary is prohibited within the meaning of Article L713- 2 of the ICC. The hypertext links set up within the website leading to other resources on the Internet network, including its partners, have been the subject of prior authorization. Users Visitors to the website can not create a hyperlink to these sites without the express prior permission of the website owner.
// Copyright (c) 2013-2018 Anton Kozhevnikov, Ilia Sivkov, Mathieu Taillefumier, Thomas Schulthess // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the // following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions // and the following disclaimer in the documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A // PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /** \file non_local_functor.cpp * * \brief Common operation for forces and stress tensor. */ #include "k_point/k_point.hpp" #include "geometry/non_local_functor.hpp" namespace sirius { template<typename T> void Non_local_functor<T>::add_k_point_contribution(K_point& kpoint__, sddk::mdarray<double, 2>& collect_res__) { PROFILE("sirius::Non_local_functor::add_k_point"); auto& unit_cell = ctx_.unit_cell(); if (ctx_.unit_cell().mt_lo_basis_size() == 0) { return; } auto& bp = kpoint__.beta_projectors(); double main_two_factor{-2}; for (int icnk = 0; icnk < bp_base_.num_chunks(); icnk++) { bp.prepare(); /* generate chunk for inner product of beta */ bp.generate(icnk); /* store <beta|psi> for spin up and down */ matrix<T> beta_phi_chunks[2]; for (int ispn = 0; ispn < ctx_.num_spins(); ispn++) { int nbnd = kpoint__.num_occupied_bands(ispn); beta_phi_chunks[ispn] = bp.inner<T>(icnk, kpoint__.spinor_wave_functions(), ispn, 0, nbnd); } bp.dismiss(); bp_base_.prepare(); for (int x = 0; x < bp_base_.num_comp(); x++) { /* generate chunk for inner product of beta gradient */ bp_base_.generate(icnk, x); for (int ispn = 0; ispn < ctx_.num_spins(); ispn++) { int spin_factor = (ispn == 0 ? 1 : -1); int nbnd = kpoint__.num_occupied_bands(ispn); /* inner product of beta gradient and WF */ auto bp_base_phi_chunk = bp_base_.template inner<T>(icnk, kpoint__.spinor_wave_functions(), ispn, 0, nbnd); splindex<splindex_t::block> spl_nbnd(nbnd, kpoint__.comm().size(), kpoint__.comm().rank()); int nbnd_loc = spl_nbnd.local_size(); #pragma omp parallel for for (int ia_chunk = 0; ia_chunk < bp_base_.chunk(icnk).num_atoms_; ia_chunk++) { int ia = bp_base_.chunk(icnk).desc_(static_cast<int>(beta_desc_idx::ia), ia_chunk); int offs = bp_base_.chunk(icnk).desc_(static_cast<int>(beta_desc_idx::offset), ia_chunk); int nbf = bp_base_.chunk(icnk).desc_(static_cast<int>(beta_desc_idx::nbf), ia_chunk); int iat = unit_cell.atom(ia).type_id(); if (unit_cell.atom(ia).type().spin_orbit_coupling()) { TERMINATE("stress and forces with SO coupling are not upported"); } /* helper lambda to calculate for sum loop over bands for different beta_phi and dij combinations*/ auto for_bnd = [&](int ibf, int jbf, double_complex dij, double_complex qij, matrix<T> &beta_phi_chunk) { /* gather everything = - 2 Re[ occ(k,n) weight(k) beta_phi*(i,n) [Dij - E(n)Qij] beta_base_phi(j,n) ]*/ for (int ibnd_loc = 0; ibnd_loc < nbnd_loc; ibnd_loc++) { int ibnd = spl_nbnd[ibnd_loc]; double_complex scalar_part = main_two_factor * kpoint__.band_occupancy(ibnd, ispn) * kpoint__.weight() * std::conj(beta_phi_chunk(offs + jbf, ibnd)) * bp_base_phi_chunk(offs + ibf, ibnd) * (dij - kpoint__.band_energy(ibnd, ispn) * qij); /* get real part and add to the result array*/ collect_res__(x, ia) += scalar_part.real(); } }; for (int ibf = 0; ibf < nbf; ibf++) { int lm2 = unit_cell.atom(ia).type().indexb(ibf).lm; int idxrf2 = unit_cell.atom(ia).type().indexb(ibf).idxrf; for (int jbf = 0; jbf < nbf; jbf++) { int lm1 = unit_cell.atom(ia).type().indexb(jbf).lm; int idxrf1 = unit_cell.atom(ia).type().indexb(jbf).idxrf; /* Qij exists only in the case of ultrasoft/PAW */ double qij{0}; if (unit_cell.atom(ia).type().augment()) { qij = ctx_.augmentation_op(iat)->q_mtrx(ibf, jbf); } double_complex dij{0}; /* get non-magnetic or collinear spin parts of dij*/ switch (ctx_.num_spins()) { case 1: { dij = unit_cell.atom(ia).d_mtrx(ibf, jbf, 0); if (lm1 == lm2) { dij += unit_cell.atom(ia).type().d_mtrx_ion()(idxrf1, idxrf2); } break; } case 2: { /* Dij(00) = dij + dij_Z ; Dij(11) = dij - dij_Z*/ dij = (unit_cell.atom(ia).d_mtrx(ibf, jbf, 0) + spin_factor * unit_cell.atom(ia).d_mtrx(ibf, jbf, 1)); if (lm1 == lm2) { dij += unit_cell.atom(ia).type().d_mtrx_ion()(idxrf1, idxrf2); } break; } default: { TERMINATE("Error in non_local_functor, D_aug_mtrx. "); break; } } /* add non-magnetic or diagonal spin components (or collinear part) */ for_bnd(ibf, jbf, dij, double_complex(qij, 0.0), beta_phi_chunks[ispn]); /* for non-collinear case*/ if (ctx_.num_mag_dims() == 3) { /* Dij(10) = dij_X + i dij_Y ; Dij(01) = dij_X - i dij_Y */ dij = double_complex(unit_cell.atom(ia).d_mtrx(ibf, jbf, 2), spin_factor * unit_cell.atom(ia).d_mtrx(ibf, jbf, 3)); /* add non-diagonal spin components*/ for_bnd(ibf, jbf, dij, double_complex(0.0, 0.0), beta_phi_chunks[ispn + spin_factor]); } } // jbf } // ibf } // ia_chunk } // ispn } // x } bp_base_.dismiss(); } template void Non_local_functor<double>::add_k_point_contribution(K_point &kpoint__, sddk::mdarray<double, 2> &collect_res__); template void Non_local_functor<double_complex>::add_k_point_contribution(K_point &kpoint__, sddk::mdarray<double, 2> &collect_res__); }
/* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * Further, this software is distributed without any warranty that it is * free of the rightful claim of any third person regarding infringement * or the like. Any license provided herein, whether implied or * otherwise, applies only to this software file. Patent licenses, if * any, provided herein do not apply to combinations of this program with * other software, or any other product whatsoever. * * You should have received a copy of the GNU General Public License along * with this program; if not, write the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com * * For further information regarding this notice, see: * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * */ /* $Id: pathconf01.c,v 1.5 2009/11/02 13:57:17 subrata_modak Exp $ */ /********************************************************** * * OS Test - Silicon Graphics, Inc. * * TEST IDENTIFIER : pathconf01 * * EXECUTED BY : anyone * * TEST TITLE : Basic test for pathconf(2) * * PARENT DOCUMENT : usctpl01 * * TEST CASE TOTAL : 6 * * WALL CLOCK TIME : 1 * * CPU TYPES : ALL * * AUTHOR : William Roske * * CO-PILOT : Dave Fenner * * DATE STARTED : 03/30/92 * * INITIAL RELEASE : UNICOS 7.0 * * TEST CASES * * 1.) pathconf(2) returns...(See Description) * * INPUT SPECIFICATIONS * The standard options for system call tests are accepted. * (See the parse_opts(3) man page). * * OUTPUT SPECIFICATIONS * * DURATION * Terminates - with frequency and infinite modes. * * SIGNALS * Uses SIGUSR1 to pause before test if option set. * (See the parse_opts(3) man page). * * RESOURCES * None * * ENVIRONMENTAL NEEDS * No run-time environmental needs. * * SPECIAL PROCEDURAL REQUIREMENTS * None * * INTERCASE DEPENDENCIES * None * * DETAILED DESCRIPTION * This is a Phase I test for the pathconf(2) system call. It is intended * to provide a limited exposure of the system call, for now. It * should/will be extended when full functional tests are written for * pathconf(2). * * Setup: * Setup signal handling. * Pause for SIGUSR1 if option specified. * * Test: * Loop if the proper options are given. * Execute system call * Check return code, if system call failed (return=-1) * Log the errno and Issue a FAIL message. * Otherwise, Issue a PASS message. * * Cleanup: * Print errno log and/or timing stats if options given * * *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#**/ #include <unistd.h> #include <errno.h> #include <string.h> #include <signal.h> #include "test.h" #include "usctest.h" void setup(); void cleanup(); void help(); char *TCID = "pathconf01"; int TST_TOTAL; int exp_enos[] = { 0, 0 }; int i; struct pathconf_args { char *define_tag; int value; } args[] = { { "_PC_LINK_MAX", _PC_LINK_MAX}, { "_PC_NAME_MAX", _PC_NAME_MAX}, { "_PC_PATH_MAX", _PC_PATH_MAX}, { "_PC_PIPE_BUF", _PC_PIPE_BUF}, { "_PC_CHOWN_RESTRICTED", _PC_CHOWN_RESTRICTED}, { "_PC_NO_TRUNC", _PC_NO_TRUNC}, { NULL, 0} }; int lflag; char *path; option_t options[] = { {"l:", &lflag, &path}, /* -l <path to test> */ {NULL, NULL, NULL} }; int main(int ac, char **av) { int lc; const char *msg; TST_TOTAL = (sizeof(args) / sizeof(args[0])) - 1; /*************************************************************** * parse standard options ***************************************************************/ if ((msg = parse_opts(ac, av, options, &help)) != NULL) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); if (!lflag) { path = strdup("/tmp"); } /*************************************************************** * perform global setup for test ***************************************************************/ setup(); /* set the expected errnos... */ TEST_EXP_ENOS(exp_enos); /*************************************************************** * check looping state if -c option given ***************************************************************/ for (lc = 0; TEST_LOOPING(lc); lc++) { tst_count = 0; for (i = 0; i < TST_TOTAL; i++) { errno = -4; /* * Call pathconf(2) */ TEST(pathconf(path, args[i].value)); /* * A test case can only fail if -1 is returned and the errno * was set. If the errno remains unchanged, the * system call did not fail. */ if (TEST_RETURN == -1 && errno != -4) { tst_resm(TFAIL, "pathconf(%s, %s) Failed, errno=%d : %s", path, args[i].define_tag, TEST_ERRNO, strerror(TEST_ERRNO)); } else { tst_resm(TPASS, "pathconf(%s, %s) returned %ld", path, args[i].define_tag, TEST_RETURN); } } } /*************************************************************** * cleanup and exit ***************************************************************/ cleanup(); tst_exit(); } /*************************************************************** * setup() - performs all ONE TIME setup for this test. ***************************************************************/ void setup(void) { tst_sig(NOFORK, DEF_HANDLER, cleanup); TEST_PAUSE; } /*************************************************************** * cleanup() - performs all ONE TIME cleanup for this test at * completion or premature exit. ***************************************************************/ void cleanup(void) { /* * print timing stats if that option was specified. * print errno log if that option was specified. */ TEST_CLEANUP; } /*************************************************************** * help ***************************************************************/ void help(void) { printf(" -l path a path to test with pathconf(2) (def: /tmp)\n"); }
# Microxiphium pleomorphum D.R. Reynolds & G.S. Gilbert SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in Aust. Syst. Bot. 18(3): 278 (2005) #### Original name Microxiphium pleomorphum D.R. Reynolds & G.S. Gilbert ### Remarks null
Understand never seen data about Central Jefferson, Kentucky Home Insurance rates that can dramatically lower your costs. Replacement Value of your home in Central Jefferson, KY is the biggest driver of your coverage & home insurance. Your Central Jefferson, KY insurance agent (see examples below) can help with your claims. Here is a list of Central Jefferson, KY homeowners with differing backgrounds & their changing home insurance.
For more information, please call (914) 785-8326. Food Drives: one of the best ways you can help HVCS is to organize a food drive at your place of business, religious group, school, community center, etc. Or, talk to your local supermarket about tabling outside to ask their customers to donate a can of food! Hudson Valley AIDS Walk: Volunteers are needed in all aspects of facilitating this year’s event, from being Walk Team Leaders to helping set up. Dining Out for Life: We need volunteers to help plan our restaurant-based fundraiser, serve as ambassadors in restaurants, collect incentives and prizes, and assist with marketing and promotions. Harvest of Hope Charity Ball: Join the organizing committee to have direct input on our most elegant fundraising evening. Professional Services volunteers use their expertise to provide assistance in the fields of legal services, internet technology, professional coaching or staff development, graphic design, or website development! Resource Enhancement provides opportunities for volunteers to participate in such fundraising activites as the AIDS Walk, special fundraising dinners and other interesting events. From time to time other opportunities may present themselves, and volunteers are matched to those activities on an individual basis. Please share your expertise and commitment with us! If you would like to volunteer your time, or would like further information, please contact us at (914) 785-8326.
A block of rooms are available on a first-come, first-served basis for the Class of '89 30 Year Reunion. Make your reservations by calling the George Hotel or the Cavalry Court directly before August 23. If you will no longer be attending the first game against Texas State, BUT you are planning on attending the Reunion and game against Lamar, please call the The George to move your existing reservation to the new dates, Sept. 13-15. If you no longer wish to attend the first game against Texas State, are unable to attend the Reunion and game against Lamar, and will no longer be needing a room for either weekend, you must call The George to cancel your existing reservation. The George will be canceling all rooms on the weekend of Aug. 30-Sept. 1, unless you specifically request to keep the room for the first weekend. If you would like to keep your room, please contact Jessica Wells at The George.
Ariana Grande Break Up With Your Girlfriend Im Bored Free Mp3 Download on www.songsdl.co is free to download and play. Free Download Ariana Grande Break Up With Your Girlfriend Im Bored Mp3 - ariana grande break up with your girlfriend im bored Thu, 18 Apr 2019 20:31:36 +0530 Search and download your favorite songs in our MP3 database for best possible quality and it is completely free. Visit www.SongsDL.co to download latest mp3 songs anytime.
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * This is a small extension on top of boost::date_time, which handles * conversions between "local time labels" (e.g. "2am, March 10, 2013") and * POSIX UTC timestamps. * * Our library hides two sources of complexity: * * - Time zones. You can easily use the system time zone (pass a NULL * pointer), or provide a boost::time_zone_ptr (usually created via a * POSIX-like timezone format, or from the boost::date_time timezone DB). * * - The one-to-many relationship between time labels and UTC timestamps. * * UTC timestamps are effectively monotonic (aside from leap seconds, * which are ignored in POSIX time, and are irrelevant for Cron). * * Local time labels, on the other hand, can move forward or backward due * to daylight-savings changes. Thus, when the local clock rewinds due * to DST, some local time labels become ambiguous (is it 1:30am before * or after the DST rewind?). When the local time moves forward due to * DST, some local time labels are skipped (in the US Pacific timezone, * 2:30am never happened on March 10, 2013). * * As a consequence, timezoneLocalPTimeToUTCTimestamps() returns a struct * UTCTimestampsForLocalTime that can represent 0, 1, or 2 UTC timestamps. * * The ambiguity could be avoided by adding an 'is_dst' flag to the local * time label, but this is not useful for the purposes of Cron (and is * handled adequately in existing libraries). * * Going from UTC to a local time label is easy and unambiguous, see * utcPTimeToTimezoneLocalPTime(). * * CAVEAT: We use boost::posix_time::ptime to represent both UTC timestamps, * *and* local time labels. This is confusing -- it would be better if * local time labels should used a separate type. However, a ptime is very * convenient for the purpose, since it supports all the usual time * operations you might want to do. Patches are welcome. * * Our library thus accounts for the following deficiencies of * boost::date_time: * * - boost::date_time has almost no support for the system timezone (the only * related feature is the hacky "c_local_adjustor"). In contrast, our * library interprets a time_zone_ptr value of NULL as referring to the * system timezone, and then does the right thing. * * - boost::date_time has a rather annoying exception-based API for * determining whether a local time label is ambiguous, nonexistent, or * unique. Our struct is much more usable. */ #pragma once #include <boost/date_time/local_time/local_time_types.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> #include <ctime> #include <stdexcept> #include <utility> #include <folly/Format.h> namespace facebook { namespace bistro { namespace detail_cron { /** * How many seconds must be added to UTC in order to get the local time for * the given time point? */ time_t getUTCOffset(time_t utc_time, boost::local_time::time_zone_ptr tz); /** * Convert a UTC ptime into a timezone-local ptime. * * If tz is a null pointer, use the local timezone. * * This is a lossy transformation, since the UTC offset of a timezone * is not constant -- see timezoneLocalPTimeToUTCTimestamps() * for a detailed explanation. */ boost::posix_time::ptime utcPTimeToTimezoneLocalPTime( boost::posix_time::ptime utc_pt, boost::local_time::time_zone_ptr tz ); /** * A local time label can correspond to 0, 1, or 2 UTC timestamps due to * DST time shifts: * - If the clock went back and your label lands in the repeated interval, * you'll get both timestamps. * - If the clock went forward, and your label landed in the skipped time, * you get neither. * - For all other labels you get exactly one timestamp. * See also timezoneLocalPTimeToUTCTimestamps(). */ struct UTCTimestampsForLocalTime { static const time_t kNotATime = -1; // Might not portable, but easy. UTCTimestampsForLocalTime() : dst_time{kNotATime}, non_dst_time{kNotATime} {} bool isNotATime() const { return dst_time == kNotATime && non_dst_time == kNotATime; } bool isAmbiguous() const { return dst_time != kNotATime && non_dst_time != kNotATime; } time_t getUnique() const { if (isAmbiguous()) { throw std::logic_error(folly::format( "Local time maps to both {} and {}", dst_time, non_dst_time ).str()); } else if (dst_time != kNotATime) { return dst_time; } else if (non_dst_time != kNotATime) { return non_dst_time; } else { throw std::logic_error("This local time was skipped due to DST"); } } /** * For ambiguous local time labels, return the pair of (lesser UTC * timestamp, greater UTC timestamp). * * NOTE: This may not be strictly necessary, since DST is probably less * than non-DST in all real timezones, but it's better to be safe than * sorry. * * More specifically, the POSIX timezone specification (IEEE Std 1003.1) * allows DST to be either ahead or behind of the regular timezone, so the * local timezone could shift either way. The docs for * boost::local_time::posix_time_zone (which is not even a POSIX-compliant * implementation, see README) are ambiguous, but can be read as intending * to forbid DST that sets the clock backwards. */ std::pair<time_t, time_t> getBothInOrder() const { if (!isAmbiguous()) { throw std::logic_error(folly::format( "{} and {} is not ambiguous", dst_time, non_dst_time ).str()); } if (dst_time < non_dst_time) { return std::make_pair(dst_time, non_dst_time); } return std::make_pair(non_dst_time, dst_time); } time_t dst_time; time_t non_dst_time; }; /** * Convert a timezone-local ptime into UTC epoch timestamp(s). * * If tz is a null pointer, use the local timezone. * * WARNING 1: When DST sets back the clock, some local times become * ambiguous -- you cannot tell if the timestamp lies before or after the * DST change. For example, "November 3 01:30:00 2013" could be either PST * or PDT, with a difference of one hour. * * WARNING 2: You can inadvertently make a local time that does not exist * because a daylight savings change skips that time period. */ UTCTimestampsForLocalTime timezoneLocalPTimeToUTCTimestamps( boost::posix_time::ptime local_pt, boost::local_time::time_zone_ptr tz ); }}}
The fillers that were considered ultrafine just a few years ago are now standard products. The filler market may be large but it is also fiercely competitive. The requirements are therefore either fine fillers with a sharp top cut at low costs or custom-made particle size distributions. These specifications are not sufficient to enable selection of the optimum system, however – instead, it is necessary to consider the different products and their properties, e.g. the laminar structure of talc, the microcrystalline structure of chalk, etc. The maintenance costs, product change and space requirement, to name just a few aspects, must also be taken into consideration. Limestone (CaCO3) is one of the most important, versatile and – in terms of quantity – most frequently used minerals. It is common throughout the world and is used in the plastics, rubber, foodstuffs, chemical and pharmaceutical industries. Our solution for this application is a large S.O. 300/600 ball mill in circuit with a Turboplex classifier 630/4 ATP, paired with an efficient control unit with in-line particle size analysis to control the fineness. Although dolomite – similar to limestone and calcite – is also used for ultrafine fillers, the main customers are the glass, ceramics and steel industries, who demand medium-fine products or even steep particle size distributions. Fig.1 Super Orion Ball Mill S.O. This system combines the robustness of a ball mill with a high-efficiency ultrafine classifier. The direct pneumatic transfer of the feed material into the classifier saves on the necessity for susceptible conveying units and guarantees an extremely compact, inexpensive configuration. The modern control unit and the in-line particle size analysis unit make it possible to run the system for several shifts without personnel. This solution has enabled our customers to secure substantial market advantages for themselves. Hosokawa/Alpine ATR agitated ball mills are absolutely ideal for the dry production of superfine mineral powders of less than 10 µm in size. Fineness values to 95% < 2 µm with a high specific surface can be obtained. The ATR technology ensures optimum energy utilization at maximum system reliability. The combination of these process qualities guarantees extremely cost-effective operation. Table roller mills are robust and proven mills for medium-hard mineral raw materials and industrial bulk goods. They are characterized by their compact design, high throughput rates and low energy requirement. Typical for the employment of the AFG is the fineness range d97 = 5 to 20 µm and the requirement for contamination-free, i.e. iron-free, grinding. The AFG also has an extremely good delaminating function at optimum retention of the laminar structure, e.g. talc or mica. Compared with limestone, talc is a specialty within the filler market. Because there are numerous types of talc that vary widely dependent on the individual deposit, both the processing and the application of this raw material are extremely diverse. As a filler for polypropylene, to increase the rigidity and the dimensional stability special applications can be found in the cosmetics, pharmaceutical and ceramic industries. There are two things, which require special attention when processing talc: the high abrasiveness of the contaminants (quartz, dolomite, etc.) in the otherwise soft talc, as well as preservation of the laminar structure. Because of this, we mainly employ the AWM table roller mill, AFG fluidized bed opposed jet mill or the Zirkoplex classifier mill ZPS for grinding talc. Hosokawa/Alpine fluidized bed opposed jet mill AFG has become a standard the world over for ultrafine grinding. Employment of a multi-wheel classifier in the AFG jet mill allows high fineness values at high throughput rates to be achieved. This is the reason why our large jet mills (800/3 AFG and 1250/6 AFG) are in use by all market leaders on the talc sector. The new 1500/3 AFG – the world's largest jet mill – has made it possible to significantly extend the throughput. All machines are equipped with patented mega-jet nozzles and operate with hot compressed air to boost performance. Contraplex pin mills have been used for the surface treatment of mineral powders for many years. The most frequent application is the coating of fine, natural calcium carbonate powder by means of technical stearic acid. Other applications are the coating of talc and kaolin, whilst salines are mostly used for surface treatment. Such surface-treated minerals are able to create a firm bond between the mineral powder and a polymer. The resultant surface-treated fillers are used, for example, in plastic profiles, PVC pipes and in automotive parts not just as fillers but also because of the improved properties such as impact strength. Decisive for the quality when coating calcium carbonate is optimum temperature control throughout the entire process and the constant metering of the coating agent and mineral powder. Our newly developed melting unit for coating agents has been able to optimize the process even further. The melted coating agent is sprayed through a two-component nozzle and mixed with the mineral powder in a primary bin. Thanks to the intensive mixing in the Contraplex pin mill and the optimum temperature control, an excellent coating quality is achieved. The system is operated by means of a modern PLC unit with visualization. The long gap mill LGM has proved itself in service for coating the much finer precipitated calcium carbonate PCC. Both processes permit – in contrast to batch operation – continuous production operations at maximum product quality, i.e. no uncoated material, no lumps or agglomerates. Most fillers outside of the paper industry are used in dry form. It therefore makes sense to manufacture these products in a dry process. In the case of ultrafine fillers, however, one soon reaches the physical and above all economic limits. Limestone, the foremost raw material, can be dry-processed to a fineness of 2 µm (dependent on the microcrystalline structure, hardness, etc.). The dry agitated ball mill ATR in combination with the TTD Turbo Twin Double classifier is used for this task. Because of the high energy and grinding aid consumption, however, this is no longer an economic solution. It is much more effective to use an ANR wet mill for such requirements and to subsequently dry the product in an LGM long gap mill. The system schematic shows a system designed for the production of limestone slurry without a downstream long gap mill to dry the slurry. A dry preliminary crushing step with Hosokawa/Alpine AWM table roller mill can be configured upstream of the system.
Brent Porciau is nothing if not passionate. Brent took a catastrophic arm injury and a disastrous prognosis and turned it into an evolution of the training methodology that surrounds throwing a baseball. He used his own recovery, influenced by strength coach Kurt Hester, a lot of desperation, and a sprinkle of foolishness to stumble onto the most critically efficient and measurable system to train better throwing mechanics and create a healthier athlete. Brent is disrupting baseball so much that he has received death threats from the purists and is on the most wanted (to shut up) list of some of baseball’s biggest outfits. This was a fun interview to conduct because Brent has so much passion. Have a listen and form an opinion of your own.
Popular on TripAdvisor. I had the Cau Lao which was ok but the meat was a bit dry and tough. They serve the local "fresh beer" for 5,000d.
/* * Texas Instruments CPDMA Driver * * Copyright (C) 2010 Texas Instruments * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/device.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/dma-mapping.h> #include <linux/io.h> #include "davinci_cpdma.h" /* DMA Registers */ #define CPDMA_TXIDVER 0x00 #define CPDMA_TXCONTROL 0x04 #define CPDMA_TXTEARDOWN 0x08 #define CPDMA_RXIDVER 0x10 #define CPDMA_RXCONTROL 0x14 #define CPDMA_SOFTRESET 0x1c #define CPDMA_RXTEARDOWN 0x18 #define CPDMA_TXINTSTATRAW 0x80 #define CPDMA_TXINTSTATMASKED 0x84 #define CPDMA_TXINTMASKSET 0x88 #define CPDMA_TXINTMASKCLEAR 0x8c #define CPDMA_MACINVECTOR 0x90 #define CPDMA_MACEOIVECTOR 0x94 #define CPDMA_RXINTSTATRAW 0xa0 #define CPDMA_RXINTSTATMASKED 0xa4 #define CPDMA_RXINTMASKSET 0xa8 #define CPDMA_RXINTMASKCLEAR 0xac #define CPDMA_DMAINTSTATRAW 0xb0 #define CPDMA_DMAINTSTATMASKED 0xb4 #define CPDMA_DMAINTMASKSET 0xb8 #define CPDMA_DMAINTMASKCLEAR 0xbc #define CPDMA_DMAINT_HOSTERR BIT(1) /* the following exist only if has_ext_regs is set */ #define CPDMA_DMACONTROL 0x20 #define CPDMA_DMASTATUS 0x24 #define CPDMA_RXBUFFOFS 0x28 #define CPDMA_EM_CONTROL 0x2c /* Descriptor mode bits */ #define CPDMA_DESC_SOP BIT(31) #define CPDMA_DESC_EOP BIT(30) #define CPDMA_DESC_OWNER BIT(29) #define CPDMA_DESC_EOQ BIT(28) #define CPDMA_DESC_TD_COMPLETE BIT(27) #define CPDMA_DESC_PASS_CRC BIT(26) #define CPDMA_TEARDOWN_VALUE 0xfffffffc struct cpdma_desc { /* hardware fields */ u32 hw_next; u32 hw_buffer; u32 hw_len; u32 hw_mode; /* software fields */ void *sw_token; u32 sw_buffer; u32 sw_len; }; struct cpdma_desc_pool { u32 phys; u32 hw_addr; void __iomem *iomap; /* ioremap map */ void *cpumap; /* dma_alloc map */ int desc_size, mem_size; int num_desc, used_desc; unsigned long *bitmap; struct device *dev; spinlock_t lock; }; enum cpdma_state { CPDMA_STATE_IDLE, CPDMA_STATE_ACTIVE, CPDMA_STATE_TEARDOWN, }; const char *cpdma_state_str[] = { "idle", "active", "teardown" }; struct cpdma_ctlr { enum cpdma_state state; struct cpdma_params params; struct device *dev; struct cpdma_desc_pool *pool; spinlock_t lock; struct cpdma_chan *channels[2 * CPDMA_MAX_CHANNELS]; }; struct cpdma_chan { enum cpdma_state state; struct cpdma_ctlr *ctlr; int chan_num; spinlock_t lock; struct cpdma_desc __iomem *head, *tail; int count; void __iomem *hdp, *cp, *rxfree; u32 mask; cpdma_handler_fn handler; enum dma_data_direction dir; struct cpdma_chan_stats stats; /* offsets into dmaregs */ int int_set, int_clear, td; }; /* The following make access to common cpdma_ctlr params more readable */ #define dmaregs params.dmaregs #define num_chan params.num_chan /* various accessors */ #define dma_reg_read(ctlr, ofs) __raw_readl((ctlr)->dmaregs + (ofs)) #define chan_read(chan, fld) __raw_readl((chan)->fld) #define desc_read(desc, fld) __raw_readl(&(desc)->fld) #define dma_reg_write(ctlr, ofs, v) __raw_writel(v, (ctlr)->dmaregs + (ofs)) #define chan_write(chan, fld, v) __raw_writel(v, (chan)->fld) #define desc_write(desc, fld, v) __raw_writel((u32)(v), &(desc)->fld) /* * Utility constructs for a cpdma descriptor pool. Some devices (e.g. davinci * emac) have dedicated on-chip memory for these descriptors. Some other * devices (e.g. cpsw switches) use plain old memory. Descriptor pools * abstract out these details */ static struct cpdma_desc_pool * cpdma_desc_pool_create(struct device *dev, u32 phys, u32 hw_addr, int size, int align) { int bitmap_size; struct cpdma_desc_pool *pool; pool = kzalloc(sizeof(*pool), GFP_KERNEL); if (!pool) return NULL; spin_lock_init(&pool->lock); pool->dev = dev; pool->mem_size = size; pool->desc_size = ALIGN(sizeof(struct cpdma_desc), align); pool->num_desc = size / pool->desc_size; bitmap_size = (pool->num_desc / BITS_PER_LONG) * sizeof(long); pool->bitmap = kzalloc(bitmap_size, GFP_KERNEL); if (!pool->bitmap) goto fail; if (phys) { pool->phys = phys; pool->iomap = ioremap(phys, size); pool->hw_addr = hw_addr; } else { pool->cpumap = dma_alloc_coherent(dev, size, &pool->phys, GFP_KERNEL); pool->iomap = pool->cpumap; pool->hw_addr = pool->phys; } if (pool->iomap) return pool; fail: kfree(pool->bitmap); kfree(pool); return NULL; } static void cpdma_desc_pool_destroy(struct cpdma_desc_pool *pool) { unsigned long flags; if (!pool) return; spin_lock_irqsave(&pool->lock, flags); WARN_ON(pool->used_desc); kfree(pool->bitmap); if (pool->cpumap) { dma_free_coherent(pool->dev, pool->mem_size, pool->cpumap, pool->phys); } else { iounmap(pool->iomap); } spin_unlock_irqrestore(&pool->lock, flags); kfree(pool); } static inline dma_addr_t desc_phys(struct cpdma_desc_pool *pool, struct cpdma_desc __iomem *desc) { if (!desc) return 0; return pool->hw_addr + (__force dma_addr_t)desc - (__force dma_addr_t)pool->iomap; } static inline struct cpdma_desc __iomem * desc_from_phys(struct cpdma_desc_pool *pool, dma_addr_t dma) { return dma ? pool->iomap + dma - pool->hw_addr : NULL; } static struct cpdma_desc __iomem * cpdma_desc_alloc(struct cpdma_desc_pool *pool, int num_desc) { unsigned long flags; int index; struct cpdma_desc __iomem *desc = NULL; spin_lock_irqsave(&pool->lock, flags); index = bitmap_find_next_zero_area(pool->bitmap, pool->num_desc, 0, num_desc, 0); if (index < pool->num_desc) { bitmap_set(pool->bitmap, index, num_desc); desc = pool->iomap + pool->desc_size * index; pool->used_desc++; } spin_unlock_irqrestore(&pool->lock, flags); return desc; } static void cpdma_desc_free(struct cpdma_desc_pool *pool, struct cpdma_desc __iomem *desc, int num_desc) { unsigned long flags, index; index = ((unsigned long)desc - (unsigned long)pool->iomap) / pool->desc_size; spin_lock_irqsave(&pool->lock, flags); bitmap_clear(pool->bitmap, index, num_desc); pool->used_desc--; spin_unlock_irqrestore(&pool->lock, flags); } struct cpdma_ctlr *cpdma_ctlr_create(struct cpdma_params *params) { struct cpdma_ctlr *ctlr; ctlr = kzalloc(sizeof(*ctlr), GFP_KERNEL); if (!ctlr) return NULL; ctlr->state = CPDMA_STATE_IDLE; ctlr->params = *params; ctlr->dev = params->dev; spin_lock_init(&ctlr->lock); ctlr->pool = cpdma_desc_pool_create(ctlr->dev, ctlr->params.desc_mem_phys, ctlr->params.desc_hw_addr, ctlr->params.desc_mem_size, ctlr->params.desc_align); if (!ctlr->pool) { kfree(ctlr); return NULL; } if (WARN_ON(ctlr->num_chan > CPDMA_MAX_CHANNELS)) ctlr->num_chan = CPDMA_MAX_CHANNELS; return ctlr; } EXPORT_SYMBOL_GPL(cpdma_ctlr_create); int cpdma_ctlr_start(struct cpdma_ctlr *ctlr) { unsigned long flags; int i; spin_lock_irqsave(&ctlr->lock, flags); if (ctlr->state != CPDMA_STATE_IDLE) { spin_unlock_irqrestore(&ctlr->lock, flags); return -EBUSY; } if (ctlr->params.has_soft_reset) { unsigned long timeout = jiffies + HZ/10; dma_reg_write(ctlr, CPDMA_SOFTRESET, 1); while (time_before(jiffies, timeout)) { if (dma_reg_read(ctlr, CPDMA_SOFTRESET) == 0) break; } WARN_ON(!time_before(jiffies, timeout)); } for (i = 0; i < ctlr->num_chan; i++) { __raw_writel(0, ctlr->params.txhdp + 4 * i); __raw_writel(0, ctlr->params.rxhdp + 4 * i); __raw_writel(0, ctlr->params.txcp + 4 * i); __raw_writel(0, ctlr->params.rxcp + 4 * i); } dma_reg_write(ctlr, CPDMA_RXINTMASKCLEAR, 0xffffffff); dma_reg_write(ctlr, CPDMA_TXINTMASKCLEAR, 0xffffffff); dma_reg_write(ctlr, CPDMA_TXCONTROL, 1); dma_reg_write(ctlr, CPDMA_RXCONTROL, 1); ctlr->state = CPDMA_STATE_ACTIVE; for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) { if (ctlr->channels[i]) cpdma_chan_start(ctlr->channels[i]); } spin_unlock_irqrestore(&ctlr->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_ctlr_start); int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr) { unsigned long flags; int i; spin_lock_irqsave(&ctlr->lock, flags); if (ctlr->state != CPDMA_STATE_ACTIVE) { spin_unlock_irqrestore(&ctlr->lock, flags); return -EINVAL; } ctlr->state = CPDMA_STATE_TEARDOWN; for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) { if (ctlr->channels[i]) cpdma_chan_stop(ctlr->channels[i]); } dma_reg_write(ctlr, CPDMA_RXINTMASKCLEAR, 0xffffffff); dma_reg_write(ctlr, CPDMA_TXINTMASKCLEAR, 0xffffffff); dma_reg_write(ctlr, CPDMA_TXCONTROL, 0); dma_reg_write(ctlr, CPDMA_RXCONTROL, 0); ctlr->state = CPDMA_STATE_IDLE; spin_unlock_irqrestore(&ctlr->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_ctlr_stop); int cpdma_ctlr_dump(struct cpdma_ctlr *ctlr) { struct device *dev = ctlr->dev; unsigned long flags; int i; spin_lock_irqsave(&ctlr->lock, flags); dev_info(dev, "CPDMA: state: %s", cpdma_state_str[ctlr->state]); dev_info(dev, "CPDMA: txidver: %x", dma_reg_read(ctlr, CPDMA_TXIDVER)); dev_info(dev, "CPDMA: txcontrol: %x", dma_reg_read(ctlr, CPDMA_TXCONTROL)); dev_info(dev, "CPDMA: txteardown: %x", dma_reg_read(ctlr, CPDMA_TXTEARDOWN)); dev_info(dev, "CPDMA: rxidver: %x", dma_reg_read(ctlr, CPDMA_RXIDVER)); dev_info(dev, "CPDMA: rxcontrol: %x", dma_reg_read(ctlr, CPDMA_RXCONTROL)); dev_info(dev, "CPDMA: softreset: %x", dma_reg_read(ctlr, CPDMA_SOFTRESET)); dev_info(dev, "CPDMA: rxteardown: %x", dma_reg_read(ctlr, CPDMA_RXTEARDOWN)); dev_info(dev, "CPDMA: txintstatraw: %x", dma_reg_read(ctlr, CPDMA_TXINTSTATRAW)); dev_info(dev, "CPDMA: txintstatmasked: %x", dma_reg_read(ctlr, CPDMA_TXINTSTATMASKED)); dev_info(dev, "CPDMA: txintmaskset: %x", dma_reg_read(ctlr, CPDMA_TXINTMASKSET)); dev_info(dev, "CPDMA: txintmaskclear: %x", dma_reg_read(ctlr, CPDMA_TXINTMASKCLEAR)); dev_info(dev, "CPDMA: macinvector: %x", dma_reg_read(ctlr, CPDMA_MACINVECTOR)); dev_info(dev, "CPDMA: maceoivector: %x", dma_reg_read(ctlr, CPDMA_MACEOIVECTOR)); dev_info(dev, "CPDMA: rxintstatraw: %x", dma_reg_read(ctlr, CPDMA_RXINTSTATRAW)); dev_info(dev, "CPDMA: rxintstatmasked: %x", dma_reg_read(ctlr, CPDMA_RXINTSTATMASKED)); dev_info(dev, "CPDMA: rxintmaskset: %x", dma_reg_read(ctlr, CPDMA_RXINTMASKSET)); dev_info(dev, "CPDMA: rxintmaskclear: %x", dma_reg_read(ctlr, CPDMA_RXINTMASKCLEAR)); dev_info(dev, "CPDMA: dmaintstatraw: %x", dma_reg_read(ctlr, CPDMA_DMAINTSTATRAW)); dev_info(dev, "CPDMA: dmaintstatmasked: %x", dma_reg_read(ctlr, CPDMA_DMAINTSTATMASKED)); dev_info(dev, "CPDMA: dmaintmaskset: %x", dma_reg_read(ctlr, CPDMA_DMAINTMASKSET)); dev_info(dev, "CPDMA: dmaintmaskclear: %x", dma_reg_read(ctlr, CPDMA_DMAINTMASKCLEAR)); if (!ctlr->params.has_ext_regs) { dev_info(dev, "CPDMA: dmacontrol: %x", dma_reg_read(ctlr, CPDMA_DMACONTROL)); dev_info(dev, "CPDMA: dmastatus: %x", dma_reg_read(ctlr, CPDMA_DMASTATUS)); dev_info(dev, "CPDMA: rxbuffofs: %x", dma_reg_read(ctlr, CPDMA_RXBUFFOFS)); } for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) if (ctlr->channels[i]) cpdma_chan_dump(ctlr->channels[i]); spin_unlock_irqrestore(&ctlr->lock, flags); return 0; } int cpdma_ctlr_destroy(struct cpdma_ctlr *ctlr) { unsigned long flags; int ret = 0, i; if (!ctlr) return -EINVAL; spin_lock_irqsave(&ctlr->lock, flags); if (ctlr->state != CPDMA_STATE_IDLE) cpdma_ctlr_stop(ctlr); for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) { if (ctlr->channels[i]) cpdma_chan_destroy(ctlr->channels[i]); } cpdma_desc_pool_destroy(ctlr->pool); spin_unlock_irqrestore(&ctlr->lock, flags); kfree(ctlr); return ret; } EXPORT_SYMBOL_GPL(cpdma_ctlr_destroy); int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable) { unsigned long flags; int i, reg; spin_lock_irqsave(&ctlr->lock, flags); if (ctlr->state != CPDMA_STATE_ACTIVE) { spin_unlock_irqrestore(&ctlr->lock, flags); return -EINVAL; } reg = enable ? CPDMA_DMAINTMASKSET : CPDMA_DMAINTMASKCLEAR; dma_reg_write(ctlr, reg, CPDMA_DMAINT_HOSTERR); for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) { if (ctlr->channels[i]) cpdma_chan_int_ctrl(ctlr->channels[i], enable); } spin_unlock_irqrestore(&ctlr->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_ctlr_int_ctrl); void cpdma_ctlr_eoi(struct cpdma_ctlr *ctlr) { dma_reg_write(ctlr, CPDMA_MACEOIVECTOR, 0); dma_reg_write(ctlr, CPDMA_MACEOIVECTOR, 1); dma_reg_write(ctlr, CPDMA_MACEOIVECTOR, 2); } EXPORT_SYMBOL_GPL(cpdma_ctlr_eoi); struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, cpdma_handler_fn handler) { struct cpdma_chan *chan; int ret, offset = (chan_num % CPDMA_MAX_CHANNELS) * 4; unsigned long flags; if (__chan_linear(chan_num) >= ctlr->num_chan) return NULL; ret = -ENOMEM; chan = kzalloc(sizeof(*chan), GFP_KERNEL); if (!chan) goto err_chan_alloc; spin_lock_irqsave(&ctlr->lock, flags); ret = -EBUSY; if (ctlr->channels[chan_num]) goto err_chan_busy; chan->ctlr = ctlr; chan->state = CPDMA_STATE_IDLE; chan->chan_num = chan_num; chan->handler = handler; if (is_rx_chan(chan)) { chan->hdp = ctlr->params.rxhdp + offset; chan->cp = ctlr->params.rxcp + offset; chan->rxfree = ctlr->params.rxfree + offset; chan->int_set = CPDMA_RXINTMASKSET; chan->int_clear = CPDMA_RXINTMASKCLEAR; chan->td = CPDMA_RXTEARDOWN; chan->dir = DMA_FROM_DEVICE; } else { chan->hdp = ctlr->params.txhdp + offset; chan->cp = ctlr->params.txcp + offset; chan->int_set = CPDMA_TXINTMASKSET; chan->int_clear = CPDMA_TXINTMASKCLEAR; chan->td = CPDMA_TXTEARDOWN; chan->dir = DMA_TO_DEVICE; } chan->mask = BIT(chan_linear(chan)); spin_lock_init(&chan->lock); ctlr->channels[chan_num] = chan; spin_unlock_irqrestore(&ctlr->lock, flags); return chan; err_chan_busy: spin_unlock_irqrestore(&ctlr->lock, flags); kfree(chan); err_chan_alloc: return ERR_PTR(ret); } EXPORT_SYMBOL_GPL(cpdma_chan_create); int cpdma_chan_destroy(struct cpdma_chan *chan) { struct cpdma_ctlr *ctlr = chan->ctlr; unsigned long flags; if (!chan) return -EINVAL; spin_lock_irqsave(&ctlr->lock, flags); if (chan->state != CPDMA_STATE_IDLE) cpdma_chan_stop(chan); ctlr->channels[chan->chan_num] = NULL; spin_unlock_irqrestore(&ctlr->lock, flags); kfree(chan); return 0; } EXPORT_SYMBOL_GPL(cpdma_chan_destroy); int cpdma_chan_get_stats(struct cpdma_chan *chan, struct cpdma_chan_stats *stats) { unsigned long flags; if (!chan) return -EINVAL; spin_lock_irqsave(&chan->lock, flags); memcpy(stats, &chan->stats, sizeof(*stats)); spin_unlock_irqrestore(&chan->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_chan_get_stats); int cpdma_chan_dump(struct cpdma_chan *chan) { unsigned long flags; struct device *dev = chan->ctlr->dev; spin_lock_irqsave(&chan->lock, flags); dev_info(dev, "channel %d (%s %d) state %s", chan->chan_num, is_rx_chan(chan) ? "rx" : "tx", chan_linear(chan), cpdma_state_str[chan->state]); dev_info(dev, "\thdp: %x\n", chan_read(chan, hdp)); dev_info(dev, "\tcp: %x\n", chan_read(chan, cp)); if (chan->rxfree) { dev_info(dev, "\trxfree: %x\n", chan_read(chan, rxfree)); } dev_info(dev, "\tstats head_enqueue: %d\n", chan->stats.head_enqueue); dev_info(dev, "\tstats tail_enqueue: %d\n", chan->stats.tail_enqueue); dev_info(dev, "\tstats pad_enqueue: %d\n", chan->stats.pad_enqueue); dev_info(dev, "\tstats misqueued: %d\n", chan->stats.misqueued); dev_info(dev, "\tstats desc_alloc_fail: %d\n", chan->stats.desc_alloc_fail); dev_info(dev, "\tstats pad_alloc_fail: %d\n", chan->stats.pad_alloc_fail); dev_info(dev, "\tstats runt_receive_buff: %d\n", chan->stats.runt_receive_buff); dev_info(dev, "\tstats runt_transmit_buff: %d\n", chan->stats.runt_transmit_buff); dev_info(dev, "\tstats empty_dequeue: %d\n", chan->stats.empty_dequeue); dev_info(dev, "\tstats busy_dequeue: %d\n", chan->stats.busy_dequeue); dev_info(dev, "\tstats good_dequeue: %d\n", chan->stats.good_dequeue); dev_info(dev, "\tstats requeue: %d\n", chan->stats.requeue); dev_info(dev, "\tstats teardown_dequeue: %d\n", chan->stats.teardown_dequeue); spin_unlock_irqrestore(&chan->lock, flags); return 0; } static void __cpdma_chan_submit(struct cpdma_chan *chan, struct cpdma_desc __iomem *desc) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc __iomem *prev = chan->tail; struct cpdma_desc_pool *pool = ctlr->pool; dma_addr_t desc_dma; u32 mode; desc_dma = desc_phys(pool, desc); /* simple case - idle channel */ if (!chan->head) { chan->stats.head_enqueue++; chan->head = desc; chan->tail = desc; if (chan->state == CPDMA_STATE_ACTIVE) chan_write(chan, hdp, desc_dma); return; } /* first chain the descriptor at the tail of the list */ desc_write(prev, hw_next, desc_dma); chan->tail = desc; chan->stats.tail_enqueue++; /* next check if EOQ has been triggered already */ mode = desc_read(prev, hw_mode); if (((mode & (CPDMA_DESC_EOQ | CPDMA_DESC_OWNER)) == CPDMA_DESC_EOQ) && (chan->state == CPDMA_STATE_ACTIVE)) { desc_write(prev, hw_mode, mode & ~CPDMA_DESC_EOQ); chan_write(chan, hdp, desc_dma); chan->stats.misqueued++; } } int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data, int len, gfp_t gfp_mask) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc __iomem *desc; dma_addr_t buffer; unsigned long flags; u32 mode; int ret = 0; spin_lock_irqsave(&chan->lock, flags); if (chan->state == CPDMA_STATE_TEARDOWN) { ret = -EINVAL; goto unlock_ret; } desc = cpdma_desc_alloc(ctlr->pool, 1); if (!desc) { chan->stats.desc_alloc_fail++; ret = -ENOMEM; goto unlock_ret; } if (len < ctlr->params.min_packet_size) { len = ctlr->params.min_packet_size; chan->stats.runt_transmit_buff++; } buffer = dma_map_single(ctlr->dev, data, len, chan->dir); mode = CPDMA_DESC_OWNER | CPDMA_DESC_SOP | CPDMA_DESC_EOP; desc_write(desc, hw_next, 0); desc_write(desc, hw_buffer, buffer); desc_write(desc, hw_len, len); desc_write(desc, hw_mode, mode | len); desc_write(desc, sw_token, token); desc_write(desc, sw_buffer, buffer); desc_write(desc, sw_len, len); __cpdma_chan_submit(chan, desc); if (chan->state == CPDMA_STATE_ACTIVE && chan->rxfree) chan_write(chan, rxfree, 1); chan->count++; unlock_ret: spin_unlock_irqrestore(&chan->lock, flags); return ret; } EXPORT_SYMBOL_GPL(cpdma_chan_submit); static void __cpdma_chan_free(struct cpdma_chan *chan, struct cpdma_desc __iomem *desc, int outlen, int status) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc_pool *pool = ctlr->pool; dma_addr_t buff_dma; int origlen; void *token; token = (void *)desc_read(desc, sw_token); buff_dma = desc_read(desc, sw_buffer); origlen = desc_read(desc, sw_len); dma_unmap_single(ctlr->dev, buff_dma, origlen, chan->dir); cpdma_desc_free(pool, desc, 1); (*chan->handler)(token, outlen, status); } static int __cpdma_chan_process(struct cpdma_chan *chan) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc __iomem *desc; int status, outlen; struct cpdma_desc_pool *pool = ctlr->pool; dma_addr_t desc_dma; desc = chan->head; if (!desc) { chan->stats.empty_dequeue++; status = -ENOENT; goto unlock_ret; } desc_dma = desc_phys(pool, desc); status = __raw_readl(&desc->hw_mode); outlen = status & 0x7ff; if (status & CPDMA_DESC_OWNER) { chan->stats.busy_dequeue++; status = -EBUSY; goto unlock_ret; } status = status & (CPDMA_DESC_EOQ | CPDMA_DESC_TD_COMPLETE); chan->head = desc_from_phys(pool, desc_read(desc, hw_next)); chan_write(chan, cp, desc_dma); chan->count--; chan->stats.good_dequeue++; if (status & CPDMA_DESC_EOQ) { chan->stats.requeue++; chan_write(chan, hdp, desc_phys(pool, chan->head)); } __cpdma_chan_free(chan, desc, outlen, status); return status; unlock_ret: return status; } int cpdma_chan_process(struct cpdma_chan *chan, int quota) { int used = 0, ret = 0; if (chan->state != CPDMA_STATE_ACTIVE) return -EINVAL; while (used < quota) { ret = __cpdma_chan_process(chan); if (ret < 0) break; used++; } return used; } EXPORT_SYMBOL_GPL(cpdma_chan_process); int cpdma_chan_start(struct cpdma_chan *chan) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc_pool *pool = ctlr->pool; unsigned long flags; spin_lock_irqsave(&chan->lock, flags); if (chan->state != CPDMA_STATE_IDLE) { spin_unlock_irqrestore(&chan->lock, flags); return -EBUSY; } if (ctlr->state != CPDMA_STATE_ACTIVE) { spin_unlock_irqrestore(&chan->lock, flags); return -EINVAL; } dma_reg_write(ctlr, chan->int_set, chan->mask); chan->state = CPDMA_STATE_ACTIVE; if (chan->head) { chan_write(chan, hdp, desc_phys(pool, chan->head)); if (chan->rxfree) chan_write(chan, rxfree, chan->count); } spin_unlock_irqrestore(&chan->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_chan_start); int cpdma_chan_stop(struct cpdma_chan *chan) { struct cpdma_ctlr *ctlr = chan->ctlr; struct cpdma_desc_pool *pool = ctlr->pool; unsigned long flags; int ret; unsigned long timeout; spin_lock_irqsave(&chan->lock, flags); if (chan->state != CPDMA_STATE_ACTIVE) { spin_unlock_irqrestore(&chan->lock, flags); return -EINVAL; } chan->state = CPDMA_STATE_TEARDOWN; dma_reg_write(ctlr, chan->int_clear, chan->mask); /* trigger teardown */ dma_reg_write(ctlr, chan->td, chan->chan_num); /* wait for teardown complete */ timeout = jiffies + HZ/10; /* 100 msec */ while (time_before(jiffies, timeout)) { u32 cp = chan_read(chan, cp); if ((cp & CPDMA_TEARDOWN_VALUE) == CPDMA_TEARDOWN_VALUE) break; cpu_relax(); } WARN_ON(!time_before(jiffies, timeout)); chan_write(chan, cp, CPDMA_TEARDOWN_VALUE); /* handle completed packets */ do { ret = __cpdma_chan_process(chan); if (ret < 0) break; } while ((ret & CPDMA_DESC_TD_COMPLETE) == 0); /* remaining packets haven't been tx/rx'ed, clean them up */ while (chan->head) { struct cpdma_desc __iomem *desc = chan->head; dma_addr_t next_dma; next_dma = desc_read(desc, hw_next); chan->head = desc_from_phys(pool, next_dma); chan->stats.teardown_dequeue++; /* issue callback without locks held */ spin_unlock_irqrestore(&chan->lock, flags); __cpdma_chan_free(chan, desc, 0, -ENOSYS); spin_lock_irqsave(&chan->lock, flags); } chan->state = CPDMA_STATE_IDLE; spin_unlock_irqrestore(&chan->lock, flags); return 0; } EXPORT_SYMBOL_GPL(cpdma_chan_stop); int cpdma_chan_int_ctrl(struct cpdma_chan *chan, bool enable) { unsigned long flags; spin_lock_irqsave(&chan->lock, flags); if (chan->state != CPDMA_STATE_ACTIVE) { spin_unlock_irqrestore(&chan->lock, flags); return -EINVAL; } dma_reg_write(chan->ctlr, enable ? chan->int_set : chan->int_clear, chan->mask); spin_unlock_irqrestore(&chan->lock, flags); return 0; } struct cpdma_control_info { u32 reg; u32 shift, mask; int access; #define ACCESS_RO BIT(0) #define ACCESS_WO BIT(1) #define ACCESS_RW (ACCESS_RO | ACCESS_WO) }; struct cpdma_control_info controls[] = { [CPDMA_CMD_IDLE] = {CPDMA_DMACONTROL, 3, 1, ACCESS_WO}, [CPDMA_COPY_ERROR_FRAMES] = {CPDMA_DMACONTROL, 4, 1, ACCESS_RW}, [CPDMA_RX_OFF_LEN_UPDATE] = {CPDMA_DMACONTROL, 2, 1, ACCESS_RW}, [CPDMA_RX_OWNERSHIP_FLIP] = {CPDMA_DMACONTROL, 1, 1, ACCESS_RW}, [CPDMA_TX_PRIO_FIXED] = {CPDMA_DMACONTROL, 0, 1, ACCESS_RW}, [CPDMA_STAT_IDLE] = {CPDMA_DMASTATUS, 31, 1, ACCESS_RO}, [CPDMA_STAT_TX_ERR_CODE] = {CPDMA_DMASTATUS, 20, 0xf, ACCESS_RW}, [CPDMA_STAT_TX_ERR_CHAN] = {CPDMA_DMASTATUS, 16, 0x7, ACCESS_RW}, [CPDMA_STAT_RX_ERR_CODE] = {CPDMA_DMASTATUS, 12, 0xf, ACCESS_RW}, [CPDMA_STAT_RX_ERR_CHAN] = {CPDMA_DMASTATUS, 8, 0x7, ACCESS_RW}, [CPDMA_RX_BUFFER_OFFSET] = {CPDMA_RXBUFFOFS, 0, 0xffff, ACCESS_RW}, }; int cpdma_control_get(struct cpdma_ctlr *ctlr, int control) { unsigned long flags; struct cpdma_control_info *info = &controls[control]; int ret; spin_lock_irqsave(&ctlr->lock, flags); ret = -ENOTSUPP; if (!ctlr->params.has_ext_regs) goto unlock_ret; ret = -EINVAL; if (ctlr->state != CPDMA_STATE_ACTIVE) goto unlock_ret; ret = -ENOENT; if (control < 0 || control >= ARRAY_SIZE(controls)) goto unlock_ret; ret = -EPERM; if ((info->access & ACCESS_RO) != ACCESS_RO) goto unlock_ret; ret = (dma_reg_read(ctlr, info->reg) >> info->shift) & info->mask; unlock_ret: spin_unlock_irqrestore(&ctlr->lock, flags); return ret; } int cpdma_control_set(struct cpdma_ctlr *ctlr, int control, int value) { unsigned long flags; struct cpdma_control_info *info = &controls[control]; int ret; u32 val; spin_lock_irqsave(&ctlr->lock, flags); ret = -ENOTSUPP; if (!ctlr->params.has_ext_regs) goto unlock_ret; ret = -EINVAL; if (ctlr->state != CPDMA_STATE_ACTIVE) goto unlock_ret; ret = -ENOENT; if (control < 0 || control >= ARRAY_SIZE(controls)) goto unlock_ret; ret = -EPERM; if ((info->access & ACCESS_WO) != ACCESS_WO) goto unlock_ret; val = dma_reg_read(ctlr, info->reg); val &= ~(info->mask << info->shift); val |= (value & info->mask) << info->shift; dma_reg_write(ctlr, info->reg, val); ret = 0; unlock_ret: spin_unlock_irqrestore(&ctlr->lock, flags); return ret; } EXPORT_SYMBOL_GPL(cpdma_control_set);