repo_name
stringlengths 4
116
| path
stringlengths 3
942
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
|---|---|---|---|---|
youbiteme/nexus-tools
|
uninstall.sh
|
1476
|
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
#!/bin/bash
ADB="/usr/bin/adb"
FASTBOOT="/usr/bin/fastboot"
UDEV="/etc/udev/rules.d/51-android.rules"
# get sudo
echo "[INFO] Nexus Tools 2.6.5"
echo "[INFO] Please enter sudo password for uninstall."
sudo echo "[ OK ] Sudo access granted." || { echo "[ERROR] No sudo access."; exit 1; }
# remove files
if [ -f $ADB ]; then
sudo rm $ADB
echo "[ OK ] ADB removed."
else
echo "[INFO] ADB not found in /usr/bin, skipping uninstall."
fi
if [ -f $FASTBOOT ]; then
sudo rm $FASTBOOT
echo "[ OK ] Fastboot removed."
else
echo "[INFO] Fastboot not found in /usr/bin, skipping uninstall."
fi
if [ -f $UDEV ]; then
sudo rm $UDEV
echo "[ OK ] Udev list removed."
else
echo "[INFO] Udev list not found in /etc/udev/rules.d/, skipping uninstall."
fi
echo "[ OK ] Done uninstalling."
echo " "
|
gpl-3.0
|
Donkyhotay/MoonPy
|
zope/app/dtmlpage/tests/test_dtmlpage.py
|
2514
|
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Basic tests for Page Templates used in content-space.
$Id: test_dtmlpage.py 67630 2006-04-27 00:54:03Z jim $
"""
import unittest
from zope.security.checker import NamesChecker, defineChecker
from zope.traversing.adapters import Traverser, DefaultTraversable
from zope.traversing.interfaces import ITraverser, ITraversable
from zope.app.testing.placelesssetup import PlacelessSetup
from zope.app.testing import ztapi
from zope.app.container.contained import contained
from zope.app.dtmlpage.dtmlpage import DTMLPage
class Data(object):
def __init__(self, **kw):
self.__dict__.update(kw)
def __getitem__(self, name):
return getattr(self, name)
class DTMLPageTests(PlacelessSetup, unittest.TestCase):
def setUp(self):
super(DTMLPageTests, self).setUp()
ztapi.provideAdapter(None, ITraverser, Traverser)
ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
defineChecker(Data, NamesChecker(['URL', 'name', '__getitem__']))
def test(self):
page = DTMLPage()
page.setSource(
u'<html>'
u'<head><title><dtml-var title></title></head>'
u'<body>'
u'<a href="<dtml-var "REQUEST.URL[\'1\']">">'
u'<dtml-var name>'
u'</a></body></html>'
)
page = contained(page, Data(name=u'zope'))
out = page.render(Data(URL={u'1': u'http://foo.com/'}),
title=u"Zope rules")
out = ' '.join(out.split())
self.assertEqual(
out,
u'<html><head><title>Zope rules</title></head><body>'
u'<a href="http://foo.com/">'
u'zope'
u'</a></body></html>'
)
def test_suite():
return unittest.makeSuite(DTMLPageTests)
if __name__=='__main__':
unittest.TextTestRunner().run(test_suite())
|
gpl-3.0
|
myapos/e-tuner
|
index.html
|
1844
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title> E-tuner - Myron Apostolakis</title>
<link rel="stylesheet" href="my.css"> </link>
<script type="text/javascript" src="my_YIN_implementation_e_tuner.js"></script>
<script src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jQueryRotate.js"></script>
<script type="text/javascript" src="my_javascript.js"></script>
</head>
<body>
<div id="big_wrapper">
<header id="top_header">
<h1> Welcome to my E-tuner web application!</h1>
</header>
<a href="#top"></a>
<nav id="top_menu">
<ul>
<li> <a href="./index.html">my E-tuner</a> </li>
<li> <a href="./manual.html">Manual</a> </li>
<li> <a href="./links.html">Links</a> </li>
<li> <a href="./terms_of_use.html">Terms of use</a> </li>
<li> <a href="./about.html">About me</a> </li>
</ul>
</nav>
<section id="main_section">
<div id="noteString"> </div>
<img src="final_images/my_protractor.png" alt="protractor" id="my_protractor">
<img src="final_images/my_arrow_hor.png" alt="my_arrow" id="my_arrow">
</section>
<footer id="the_footer">
<h2>Copyright 2014:<a href="mailto:myapos@yahoo.com">Myron Apostolakis </a>
<a href="https://github.com/myapos/e-tuner"> <img src="GitHub-Logos/GitHub_Logo.png" alt="GitHub"> </a>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="donate">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="PYREV74PXF9CA">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</h2>
</footer>
</div>
</body>
</html>
|
gpl-3.0
|
CatLabInteractive/dolumar-engine
|
src/Neuron/GameServer/scripts/image/minimap.php
|
6605
|
<?php
/**
* Dolumar engine, php/html MMORTS engine
* Copyright (C) 2009 Thijs Van der Schaeghe
* CatLab Interactive bvba, Gent, Belgium
* http://www.catlab.eu/
* http://www.dolumar.com/
*
* 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; either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
$width = isset ($_GET['width']) ? $_GET['width'] : 200;
$tilesToLoad = isset ($_GET['tiles']) ? $_GET['tiles'] : ceil ($width / 4);
$nocache = isset ($_GET['nocache']) ? true : false;
/*
Return the background image.
*/
function getBackgroundImage ($x, $y, $tilesToLoad, $usecache = true)
{
global $color_cache;
$cachename = 'i'.intval($_GET['x']).'p'.intval($_GET['y']).$tilesToLoad.'.png';
$cache = Neuron_Core_Cache::__getInstance ('minimapbg/');
if ($usecache && $cache->hasCache ($cachename, 0))
{
$img = $cache->getFileName ($cachename);
return imagecreatefrompng ($img);
}
else
{
$color_cache = array ();
// Build the new background image.
$tileSizeX = 8;
$tileSizeY = $tileSizeX / 2;
$halfTileX = floor ($tileSizeX / 2);
$halfTileY = floor ($tileSizeY / 2);
$im = imagecreate ($tileSizeX * $tilesToLoad, $tileSizeY * $tilesToLoad);
$background = imagecolorallocate ($im, 0, 0, 0);
$switchpoint = $tilesToLoad;
$loadExtra = 1;
$startX = ( $x + $y ) * $switchpoint;
$startY = ( $x - $y ) * $switchpoint;
for ($i = (0 - $loadExtra - 1); $i < ($switchpoint * 2) + $loadExtra + 1; $i ++)
{
if ($i > $switchpoint)
{
$offset = ($i - $switchpoint) * 2;
}
else {
$offset = 0;
}
$colStart = 0 - $i + $offset - $loadExtra;
$colEnd = $i - $offset + $loadExtra + 1;
//$output['sq'][$sQ]['tl'][$i] = array ();
$tx = $startX + $i;
$white = imagecolorallocate ($im, 255, 255, 255);
for ($j = $colStart - 1; $j < $colEnd + 1; $j ++)
{
$ty = $startY - $j;
$px = round (($i - $j) * floor ($tileSizeX / 2));
$py = round (($i + $j) * floor ($tileSizeY / 2));
// Check for building
/*
if (isset ($buildings[$tx]) && isset ($buildings[$tx][$ty]))
{
$color = color_cache ($im, $buildings[$tx][$ty][0]->getMapColor ());
}
else
{
*/
$location = Dolumar_Map_Location::getLocation ($tx, $ty);
$c = $location->getHeightIntencity ();
$col = $location->getMapColor ();
$col[0] = floor ($col[0] * $c);
$col[1] = floor ($col[1] * $c);
$col[2] = floor ($col[2] * $c);
$color = color_cache ($im, $col);
//}
$punten = array
(
// Startpunt
$px + $halfTileX, $py,
$px + $tileSizeX, $py + $halfTileY,
$px + $halfTileX, $py + $tileSizeY,
$px, $py + $halfTileY
);
imagefilledpolygon($im, $punten, 4, $color);
}
}
ob_start ();
imagepng ($im, null);
$cache->setCache ($cachename, ob_get_clean ());
return $im;
}
}
function color_cache ($im, $color)
{
global $color_cache;
if (!isset ($color_cache[$color[0].'_'.$color[1].'_'.$color[2]]))
{
$color_cache[$color[0].'_'.$color[1].'_'.$color[2]] = imagecolorallocate ($im, $color[0], $color[1], $color[2]);
}
return $color_cache[$color[0].'_'.$color[1].'_'.$color[2]];
}
if (isset ($_GET['x']) && isset ($_GET['y']))
{
$extension = 'png';
$cache = Neuron_Core_Cache::__getInstance ('minimap/');
// Fetch cache
$cachename = 'i'.intval($_GET['x']).'p'.intval($_GET['y']).$tilesToLoad.$extension;
$image = $cache->getCache ($cachename, 60 * 60 * 6);
//$image = false;
if ($image && !$nocache)
{
header("Content-type: image/".$extension);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 60*60*12) . " GMT");
echo $image;
}
else
{
//$cache->setCache ($cachename, 'locked');
$x = $_GET['x'];
$y = $_GET['y'];
$im = getBackgroundImage ($x, $y, $tilesToLoad);
$color_cache = array ();
// Build the new background image.
$tileSizeX = 8;
$tileSizeY = $tileSizeX / 2;
$halfTileX = floor ($tileSizeX / 2);
$halfTileY = floor ($tileSizeY / 2);
$switchpoint = $tilesToLoad;
$loadExtra = 1;
$startX = ( $x + $y ) * $switchpoint;
$startY = ( $x - $y ) * $switchpoint;
$db = Neuron_Core_Database::__getInstance ();
$locations = array
(
array
(
$startX + ($switchpoint/2),
$startY - ($switchpoint/2)
)
);
// Load buildings from SQL
$buildingSQL = Dolumar_Map_Map::getBuildingsFromLocations ($locations, $switchpoint + 25);
foreach ($buildingSQL as $buildingV)
{
$race = Dolumar_Races_Race::getRace ($buildingV['race']);
$b = Dolumar_Buildings_Building::getBuilding
(
$buildingV['buildingType'],
$race,
$buildingV['xas'], $buildingV['yas']
);
$b->setData ($buildingV['bid'], $buildingV);
//$buildings[floor ($buildingV['xas'])][floor ($buildingV['yas'])][] = $b;
$x = floor ($buildingV['xas']);
$y = floor ($buildingV['yas']);
$color = color_cache ($im, $b->getMapColor ());
$i = $x - $startX;
$j = $startY - $y;
$px = round (($i - $j) * floor ($tileSizeX / 2));
$py = round (($i + $j) * floor ($tileSizeY / 2));
$tileSizeX = 8;
$tileSizeY = $tileSizeX / 2;
$halfTileX = floor ($tileSizeX / 2);
$halfTileY = floor ($tileSizeY / 2);
$punten = array
(
// Startpunt
$px + $halfTileX, $py, // Boven
$px + $tileSizeX, $py + $halfTileY, // Rechts
$px + $halfTileX, $py + $tileSizeY, // Onder
$px, $py + $halfTileY // Links
);
imagefilledpolygon ($im, $punten, 4, $color);
}
// Start output buffering
ob_start ();
if ($extension == 'gif')
{
imagegif ($im);
}
else
{
imagepng ($im, null);
}
imagedestroy ($im);
// Fetch thze output & flush it down the toilet
header("Content-type: image/".$extension);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 60*60*12) . " GMT");
$output = ob_get_flush();
$cache->setCache ($cachename, $output);
}
}
|
gpl-3.0
|
nikolausfurian/HCDESLib
|
API/class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler-members.html
|
8795
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>My Project: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_general_health_care_elements.html">GeneralHealthCareElements</a></li><li class="navelem"><a class="el" href="namespace_general_health_care_elements_1_1_staff_handling.html">StaffHandling</a></li><li class="navelem"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">StaffPerPeriodHandler</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#ac94366c624e3b094edaa66c35f7d8a65">DaysPerWeekConfigs</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#ac0a52f1fe17fbbedaa8bc2ec383bc858">Doctors</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a94342109ecc8fe8c5c2b8b6430ca7e3f">GetNextStaffChangingEvent</a>(ControlUnitHealthCareDepartment parentControl, DateTime time, out DateTime timeToOccur)</td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a64f60080314c7f0e65e13ad75615c4c1">GetStartingStaff</a>(DateTime startTime)</td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a5831e4dde01957b4c474a4416b945b96">Nurses</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a5306c250e4dd755c8e618712ccb5e660">SortedChangeTimesPerDay</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a03a7e591510f8dbe271e0421b14950c9">StaffChangingPerDayAndTime</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a1e182d4bee555f86e6ca8e35ab6bc285">StaffPerPeriod</a></td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html#a9cffee916f15781a0beb24755190838d">StaffPerPeriodHandler</a>(Dictionary< DayOfWeek, DayTimeLineConfig > daysPerWeekConfigs)</td><td class="entry"><a class="el" href="class_general_health_care_elements_1_1_staff_handling_1_1_staff_per_period_handler.html">GeneralHealthCareElements.StaffHandling.StaffPerPeriodHandler</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
|
gpl-3.0
|
forio/julia-studio
|
src/plugins/qmljseditor/qmljsoutlinetreeview.h
|
1936
|
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
#ifndef QMLJSOUTLINETREEVIEW_H
#define QMLJSOUTLINETREEVIEW_H
#include <utils/navigationtreeview.h>
namespace QmlJSEditor {
namespace Internal {
class QmlJSOutlineTreeView : public Utils::NavigationTreeView
{
Q_OBJECT
public:
explicit QmlJSOutlineTreeView(QWidget *parent = 0);
void contextMenuEvent(QContextMenuEvent *event);
private slots:
void collapseAllExceptRoot();
};
} // namespace Internal
} // namespace QmlJSEditor
#endif // QMLJSOUTLINETREEVIEW_H
|
gpl-3.0
|
spatialfruitsalad/pomelo
|
test/2015-12-14_input_test/inputtest.lua
|
291
|
positionfile = "../test/2015-12-14_input_test/pos.txt"
readfile = "../test/2015-12-14_input_test/read.lua"
xmin = -5.0
ymin = -5.0
zmin = -5.0
xmax = 5.0
ymax = 5.0
zmax = 5.0
epsilon = 1e-6
boundary = "none"
postprocessing = true
savepoly = true
savereduced = true
savesurface = true
|
gpl-3.0
|
shunzh/aim5
|
src/main/java/aim4/map/destination/IdentityDestinationSelector.java
|
2542
|
/*
Copyright (c) 2011 Tsz-Chiu Au, Peter Stone
University of Texas at Austin
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.
3. Neither the name of the University of Texas at Austin nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
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 OWNER 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.
*/
package aim4.map.destination;
import java.util.List;
import aim4.config.Debug;
import aim4.map.Road;
import aim4.map.lane.Lane;
/**
* The IdentityDestinationSelector always chooses the Vehicle's current Road
* as the destination Road, unless it is not a legal destination Road, in
* which case it throws a RuntimeException.
*/
public class IdentityDestinationSelector implements DestinationSelector {
/////////////////////////////////
// CONSTRUCTORS
/////////////////////////////////
/**
* Create a new IdentityDestinationSelector from the given Layout.
*/
public IdentityDestinationSelector() {
}
/////////////////////////////////
// PUBLIC METHODS
/////////////////////////////////
/**
* {@inheritDoc}
*/
@Override
public Road selectDestination(Lane currentLane) {
return Debug.currentMap.getRoad(currentLane);
}
@Override
public List<Road> getPossibleDestination(Lane currentLane) {
// TODO Auto-generated method stub
return null;
}
}
|
gpl-3.0
|
tvesalainen/util
|
util/src/main/java/org/vesalainen/fx/ObjectPreference.java
|
1649
|
/*
* Copyright (C) 2020 Timo Vesalainen <timo.vesalainen@iki.fi>
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.vesalainen.fx;
import java.util.prefs.Preferences;
import javafx.util.StringConverter;
/**
*
* @author Timo Vesalainen <timo.vesalainen@iki.fi>
*/
public class ObjectPreference<T> extends PreferenceBase<T>
{
private final StringConverter<T> converter;
public ObjectPreference(Preferences preferences, String key, T def, StringConverter<T> converter)
{
super(preferences, key, def);
this.converter = converter;
}
@Override
public T getValue()
{
return converter.fromString(preferences.get(key, converter.toString(def)));
}
@Override
public void setValue(T def)
{
if (def != null)
{
preferences.put(key, converter.toString(def));
}
else
{
preferences.remove(key);
}
fireValueChangedEvent();
}
}
|
gpl-3.0
|
engineers-nightmare/engineers-nightmare
|
src/tools/remove_block.cc
|
1912
|
#include <epoxy/gl.h>
#include "../asset_manager.h"
#include "../common.h"
#include "../ship_space.h"
#include "../mesh.h"
#include "../player.h"
#include "tools.h"
extern GLuint overlay_shader;
extern GLuint simple_shader;
extern ship_space *ship;
extern asset_manager asset_man;
extern mesh_data const * mesh_for_block_type(block_type t);
extern glm::mat4 get_corner_matrix(block_type type, glm::ivec3 pos);
struct remove_block_tool : tool
{
raycast_info_block rc;
void pre_use(player *pl) override {
ship->raycast_block(pl->eye, pl->dir, MAX_REACH_DISTANCE, enter_exit_framing, &rc);
}
bool can_use() {
return rc.hit && !rc.inside;
}
void use() override
{
if (!can_use())
return;
ship->remove_block(rc.bl);
}
void preview(frame_data *frame) override
{
if (!can_use())
return;
block *bl = rc.block;
if (bl->type != block_empty && bl->type != block_untouched) {
auto mesh = mesh_for_block_type(bl->type);
auto mat = frame->alloc_aligned<mesh_instance>(1);
if (bl->type == block_frame) {
mat.ptr->world_matrix = mat_position(glm::vec3(rc.bl));
}
else {
mat.ptr->world_matrix = get_corner_matrix(bl->type, rc.bl);
}
mat.ptr->color = glm::vec4(1.f, 0.f, 0.f, 1.f);
mat.bind(1, frame);
glUseProgram(overlay_shader);
glEnable(GL_BLEND);
glEnable(GL_POLYGON_OFFSET_FILL);
draw_mesh(mesh->hw);
glDisable(GL_POLYGON_OFFSET_FILL);
glDisable(GL_BLEND);
glUseProgram(simple_shader);
}
}
void get_description(char *str) override
{
strcpy(str, "Remove Framing");
}
};
tool *tool::create_remove_block_tool() { return new remove_block_tool(); }
|
gpl-3.0
|
pdziepak/quarnos-old
|
kernel/include/random.h
|
802
|
/*
Quarn OS
Copyright (C) 2014 Paweł Dziepak
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, either version 3 of the License, or
(at your option) any later version.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _RANDOM_H
#define _RANDOM_H
#include <sys/types.h>
uint16_t random_get16(void);
uint32_t random_get32(void);
#endif
|
gpl-3.0
|
ptomato/gnome-inform7
|
AUTHORS.md
|
929
|
## Inform written by ##
- Graham Nelson
## Inform front-end written by ##
- Philip Chimento - @ptomato
## Contributions by ##
- Adam Thornton
- Alan De Smet
- Bart Massey - @BartMassey
- Daniel Nilsson
- David Leverton
- Evil Tabby Cat
- Eric Forgeot
- Jonathan Liu
- Leandro Ribeiro
- Matteo Settenvini
- Vincent Petry - @PVince81
- Zachary Amsden
In addition, the source code of Andrew Hunter's OS X version and David
Kinder's Windows version proved invaluable in writing the Gnome version.
## Translations by ##
- Ángel Eduardo García (Spanish)
- Jhames Bolumbero (Spanish)
- Stéphane Aulery (French) - @lkppo
## Packages built by ##
- Jonathan Liu - Arch Linux
- Kazuki Mishima - Ubuntu AMD64
- Leandro Ribeiro - OpenSUSE i586 (emeritus)
- Vincent Petry - OpenSUSE - @PVince81
## Chimara written by ##
- Philip Chimento - @ptomato
- Marijn van Vliet - @wmvanvliet
## Elastic Tabstops invented by ##
- Nick Gravgaard
|
gpl-3.0
|
jia1/addvise
|
resources/views/needAddvise_me.blade.php
|
2064
|
@extends('main')
@section('title', 'My Requests')
@section('stylesheets')
<link rel="stylesheet" href="/css/author.css">
@stop
@section('content')
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<div id="main">
<!-- Show All Advice -->
<section id="answer" class="main special">
<header class="major">
<h2>My Requests</h2>
</header>
@if (! json_decode($advice_requests, true))
<section class="box">
<div class="blog-summary">
<p>No request up yet! Why not write one now? (: Ask <a href="{{ url('ask') }}">here</a>.</p>
</div>
</section>
@else
@foreach(json_decode($advice_requests, true) as $post)
<section class="box">
<div class="blog-header">
<div class="blog-author--no-cover">
<h3>Me</h3>
</div>
</div>
<div class="blog-body">
<div class="blog-summary">
<p>{{ $post['message'] }}</p>
</div>
<div class="blog-tags">
<ul>
<li class="label">{{ $post['label'] }}</li>
<li>{{ $post['created_time'] }}</li>
<li>{{ $post['comment_count'] }} advice</li>
</ul>
</div>
</div>
<div class="blog-footer">
@foreach($post['comments'] as $comment)
<p class="comments">
<span style="color:gray;">
@if (! $comment['fb_user_id'])
Addvise:
@else
<span class="fb-user-id">{{ $comment['fb_user_id'] }}</span>:
@endif
</span>
<b> {{ $comment['message'] }}</b>
</p>
@endforeach
<ul>
<li class="give-advice"><a href="{{ url('https://facebook.com/' . $post['fb_post_id']) }}" target="_blank">View on Facebook</a></li>
</ul>
</div>
</section>
@endforeach
@endif
</section>
</div>
</div>
<script src="/js/translate.js"></script>
@stop
|
gpl-3.0
|
SpineML/SpineCreator
|
CL_classes.h
|
24097
|
/***************************************************************************
** **
** This file is part of SpineCreator, an easy to use GUI for **
** describing spiking neural network models. **
** Copyright (C) 2013-2014 Alex Cope, Paul Richmond, Seb James **
** **
** 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, either version 3 of the License, or **
** (at your option) any later version. **
** **
** This program 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 this program. If not, see http://www.gnu.org/licenses/. **
** **
****************************************************************************
** Author: Alex Cope, Paul Richmond **
** Website/Contact: http://bimpa.group.shef.ac.uk/ **
****************************************************************************/
#ifndef NINEML_STRUCTS_H
#define NINEML_STRUCTS_H
#include "globalHeader.h"
#include "NL_systemobject.h"
// This is the number of connections there has to be for the system to
// start writing these connections into a binary file. If there are
// fewer connections than this number, the connections will be written
// inline into the XML.
#define MIN_CONNS_TO_FORCE_BINARY 30
using namespace std;
typedef enum
{
AnalogSendPort,
AnalogRecvPort,
AnalogReducePort
} AnalogPortMode;
typedef enum
{
EventSendPort,
EventRecvPort
} EventPortMode;
typedef enum
{
ImpulseSendPort,
ImpulseRecvPort
} ImpulsePortMode;
typedef enum
{
ReduceOperationAddition,
ReduceOperationNone
} ReduceOperation;
typedef enum
{
NineMLComponentType,
NineMLLayoutType
} NineMLType;
typedef enum
{
ComponentTypeNeuronBody,
ComponentTypeSynapse,
ComponentTypePostsynapse,
ComponentTypeGeneral
} ComponentType;
typedef enum
{
PREFIX_NONE,
PREFIX_G,
PREFIX_M,
PREFIX_k,
PREFIX_c,
PREFIX_m,
PREFIX_u,
PREFIX_n,
PREFIX_p,
PREFIX_f
} Prefix;
typedef enum
{
UNIT_NONE,
UNIT_V,
UNIT_Ohm,
UNIT_g,
UNIT_m,
UNIT_S,
UNIT_A,
UNIT_cd,
UNIT_mol,
UNIT_degC,
UNIT_s,
UNIT_F,
UNIT_Hz
} Unit;
class dim
{
public:
dim(QString str);
~dim(){}
int m;
int l;
int t;
int I;
int Cd;
int mol;
int temp;
int scale;
QString toString();
void fromString(QString);
void setPrefix(QString p);
void setUnit(QString u);
QString getPrefixString();
QString getUnitString();
Prefix getPrefix();
Unit getUnit();
void reset();
friend bool operator==(dim &dim1, dim &dim2);
};
/**************************** Linked items *****************************/
class Regime;
class Component;
class StateVariable;
typedef enum
{
COMPONENT_PARAMETER,
COMPONENT_ANALOG_PORT,
COMPONENT_EVENT_PORT,
COMPONENT_IMPULSE_PORT,
COMPONENT_MATHINLINE,
COMPONENT_TRIGGER,
COMPONENT_STATE_VARIABLE,
COMPONENT_ALIAS,
COMPONENT_TIME_DERIVATIVE,
COMPONENT_STATE_ASSIGNMENT,
COMPONENT_EVENT_OUT,
COMPONENT_IMPULSE_OUT,
COMPONENT_ON_CONDITION,
COMPONENT_ON_EVENT,
COMPONENT_ON_IMPULSE,
COMPONENT_REGIME,
COMPONENT
} ComponentObjectType;
/*!
* \brief The ComponentObject class is the top level object which all component type objects inherit. The type can be
* querieid from the virtual Type function which will return a ComponentObjectType. This allows objects to be re-cast
* from ComponentObjects to the correct type.
*/
class ComponentModelObject
{
public:
ComponentModelObject(){}
~ComponentModelObject(){}
virtual ComponentObjectType Type() = 0;
/*!
* A user-provided annotation about the Component.
*/
QString annotation;
/*!
* A dictionary of SpineCreator annotation texts, which live
* inside the Annotation element. The key refers to the parameter
* or state variable to which the annotation refers, the value is
* the annotation text itself.
*/
QMap<QString, QString> annotationTexts;
};
/*!
* \brief The ComponentRootObject class represents a component layer object which used to be used to hold the location
* of the original compoenent model file. It is inhereted by the ComponentLayout as is mostly defunct now that projects
* are used.
*
* TODO: Candidiate for removal
*/
class ComponentRootObject
{
public:
ComponentRootObject(){path="temp"; filePath="";}
~ComponentRootObject(){}
QString path;
QString filePath;
};
/*!
* \brief The Parameter class represent a paramater model object in the compenent layer schema. Signals are availabel for
* when the name changes so that any visual objects (graphics item type objects) can detect changes and update their
* visual representation. Functions exist for reading and writing from component XML file.
*/
class Parameter: public QObject, public ComponentModelObject {
Q_OBJECT
public:
QString getName();
void setName(QString name);
QString name;
dim * dims;
Parameter(Parameter *data);
Parameter(){dims = new dim("?");}
virtual ~Parameter(){delete dims;}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_PARAMETER;}
/*!
* The file_name, if the data are saved as explicit binary data.
*/
QString filename;
signals:
void nameChanged();
};
/*!
* \brief The ParameterInstance class represents an instance of the data that is described by a parameter componenet.
* Put another way when the properties of a parameter are read from the network layer this is the data that is used to
* instanciate the instances which match the description of the underlying parameter object. Reading and writing functions
* are avilaable for XML and binary data formats.
*
*/
class ParameterInstance
{
public:
QString name;
dim * dims;
// value and indices might be better as a QMap
QVector < double > value;
QVector < int > indices;
ParameterType currType;
int seed;
/*!
* The file_name, if the data are saved as explicit binary data.
*/
QString filename;
ParameterInstance(Parameter *data);
ParameterInstance(ParameterInstance *data);
ParameterInstance(QString dimString){dims = new dim(dimString);}
~ParameterInstance(){delete dims;}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
/*!
* \brief writeExplicitListNodeData
* \param xmlOut
*
* Function called to write the data for the explicit list Parameters
* and State Variables, either as XML or as binary data
*/
void writeExplicitListNodeData(QXmlStreamWriter &xmlOut);
/*!
* \brief readExplicitListNodeData
* \param n
*
* Function called to read the data for explicit list Parameters
* and State Variables, either as XML lists or binary data
*/
void readExplicitListNodeData(QDomNode &n);
};
/*!
* \brief The Port class represent a port model object in the compenent layer schema. Signals are availabel for
* when the name changes so that any visual objects (graphics item type objects) can detect changes and update their
* visual representation. Functions exist for reading and writing from component XML file.
* TODO: This should probably be a virtual class as ports are either analogue, impule or event.
*/
class Port: public QObject, public ComponentModelObject
{
Q_OBJECT
public:
QString name;
dim * dims;
Port(Port *data);
QString getName();
void setName(QString name);
Port(){dims = new dim("?"); isPost = false;}
virtual ~Port(){delete dims;}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual bool isAnalog();
bool isPost;
signals:
void nameChanged();
};
/*!
* \brief The AnalogPort class represent an AnalogPort model object in the compenent layer schema.
*/
class AnalogPort: public Port
{
public:
AnalogPortMode mode;
ReduceOperation op;
StateVariable *variable;
AnalogPort(AnalogPort *data);
AnalogPort() : Port() {variable=NULL; op = ReduceOperationAddition; isPerConn = false;}
virtual ~AnalogPort(){}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
bool isAnalog();
virtual ComponentObjectType Type(){return COMPONENT_ANALOG_PORT;}
int validateAnalogPort(Component *component, QStringList *);
bool isPerConn;
};
/*!
* \brief The EventPort class represent an EventPort model object in the compenent layer schema.
*/
class EventPort: public Port
{
public:
EventPortMode mode;
EventPort(EventPort *data);
EventPort() : Port() {mode=EventSendPort;}
virtual ~EventPort(){}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
bool isAnalog();
virtual ComponentObjectType Type(){return COMPONENT_EVENT_PORT;}
};
/*!
* \brief The ImpulsePort class represent an ImpulsePort model object in the compenent layer schema.
*/
class ImpulsePort: public Port
{
public:
ImpulsePortMode mode;
Parameter *parameter;
ImpulsePort(ImpulsePort *data);
ImpulsePort() : Port() {parameter=NULL; mode=ImpulseSendPort;}
virtual ~ImpulsePort(){}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
bool isAnalog();
virtual ComponentObjectType Type(){return COMPONENT_IMPULSE_PORT;}
int validateImpulsePort(Component *component, QStringList *);
};
/*!
* \brief The MathInLine class is a mathematical expression using terms defined in the compenent layer. It is used to
* represent the mathematics in in model objects such as Alias, OnCondition, TimeDerivative, etc.
*/
class MathInLine: public ComponentModelObject
{
public:
QString equation;
MathInLine(MathInLine *data);
MathInLine(){}
virtual ~MathInLine(){}
QString getHTMLSafeEquation();
int validateMathInLine(Component *component, QStringList * errs);
int validateMathInLine(NineMLLayout * component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_MATHINLINE;}
private:
/*!
* Remove an approved list of operators from the testequation,
* then set up a function list of allowed functions. If what
* remains in testequation is only FuncList, then the testequation
* will validate.
*/
void validateMathSetup(QString& testequation, QStringList& FuncList);
};
/*!
* \brief The Trigger class is used by OnConditions to hold some mathematic expressesions which evauluate to a conditional.
*/
class Trigger: public ComponentModelObject
{
public:
MathInLine *maths;
Trigger(Trigger *data);
Trigger(){maths=new MathInLine;}
virtual ~Trigger();
int validateTrigger(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_TRIGGER;}
};
/*!
* \brief The StateVariable class represent a StateVariable model object in the compenent layer schema. It
* is a type of parameter and can be used as such in mathmatic expressions.
*/
class StateVariable: public Parameter
{
public:
StateVariable(StateVariable *data);
StateVariable() : Parameter() {}
virtual ~StateVariable();
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_STATE_VARIABLE;}
};
/*!
* \brief The StateVariableInstance class represents an instance of the data that is described by a StateVariable componenet.
* Put another way when the properties of a state variable are read from the network layer this is the data that is used to
* instanciate the instances which match the description of the underlying state variable object. Reading and writing functions
* are avilaable for XML and binary data formats.
*/
class StateVariableInstance: public ParameterInstance
{
public:
StateVariableInstance(StateVariable *data);
StateVariableInstance(StateVariableInstance *data);
//StateVariableData(){}
virtual ~StateVariableInstance(){}
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
};
/*!
* \brief The Alias class represents an mathmatic expression which can then be used a state variable in expressions.
*/
class Alias: public StateVariable
{
public:
//QString name;
//dim * dims;
MathInLine* maths;
Alias(Alias *data);
Alias(): StateVariable() {maths=new MathInLine();}
virtual ~Alias();
int validateAlias(Component *component, QStringList * errs);
int validateAlias(NineMLLayout *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_ALIAS;}
};
/*!
* \brief The TimeDerivative class is an object for holding data of a time derivative defined in the component layer schema.
* Usual component layer functiosn exist for file reading/writing.
*/
class TimeDerivative: public ComponentModelObject
{
public:
// temp name
QString variable_name;
StateVariable *variable;
MathInLine* maths;
TimeDerivative(TimeDerivative *data);
TimeDerivative(){variable=NULL; maths=new MathInLine;}
virtual ~TimeDerivative();
int validateTimeDerivative(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_TIME_DERIVATIVE;}
};
/*!
* \brief The StateAssignment class is an object for holding data of a state assignment defined in the component layer schema.
* Usual component layer functiosn exist for file reading/writing.
*/
class StateAssignment: public ComponentModelObject
{
public:
// temp name
QString name;
StateVariable *variable;
MathInLine *maths;
StateAssignment(StateAssignment *data);
StateAssignment(){variable=NULL; maths=new MathInLine;}
virtual ~StateAssignment();
int validateStateAssignment(Component *component, QStringList *);
int validateStateAssignment(NineMLLayout *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_STATE_ASSIGNMENT;}
};
/*!
* \brief The EventOut class is an object for holding data of a EventOutt defined in the component layer schema.
* Usual component layer functions exist for file reading/writing.
*/
class EventOut: public ComponentModelObject
{
public:
// temp name
QString port_name;
EventPort *port;
EventOut(EventOut *);
EventOut(){port=NULL;}
virtual ~EventOut(){}
int validateEventOut(Component *component, QStringList *);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_EVENT_OUT;}
};
/*!
* \brief The ImpulseOut class is an object for holding data of a ImpulseOut defined in the component layer schema.
* Usual component layer functions exist for file reading/writing.
*/
class ImpulseOut: public ComponentModelObject
{
public:
// temp name
QString port_name;
ImpulsePort *port;
ImpulseOut(ImpulseOut *);
ImpulseOut(){port=NULL;}
virtual ~ImpulseOut(){}
int validateImpulseOut(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_IMPULSE_OUT;}
};
/*!
* \brief The OnCondition class is an obect for holding data of a OnCondition defined in the component layer schema. I.e a
* transition between regimes. It therefore needs to have a target regime and will be owned by another regime.
* Usual component layer functions exist for file reading/writing.
*/
class OnCondition: public ComponentModelObject
{
public:
// temp name
QString target_regime_name;
Regime *target_regime;
QVector <StateAssignment*> StateAssignList;
Trigger *trigger;
QVector <EventOut*> eventOutList;
QVector <ImpulseOut*> impulseOutList;
OnCondition(OnCondition *data);
OnCondition(){target_regime=NULL; trigger=new Trigger;}
virtual ~OnCondition();
int validateOnCondition(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_ON_CONDITION;}
};
/*!
* \brief The OnEvent class is an object for holding data of a OnEvent defined in the component layer schema. I.e a
* transition between regimes. It therefore needs to have a target regime and will be owned by another regime.
* Usual component layer functions exist for file reading/writing.
*/
class OnEvent: public ComponentModelObject
{
public:
// temp name
QString target_regime_name;
QString src_port_name;
Regime *target_regime;
EventPort *src_port;
QVector <StateAssignment*> StateAssignList;
QVector <EventOut*> eventOutList;
QVector <ImpulseOut*> impulseOutList;
OnEvent(OnEvent *data);
OnEvent(){target_regime=NULL; src_port=NULL;}
virtual ~OnEvent();
int validateOnEvent(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_ON_EVENT;}
};
/*!
* \brief The OnImpulse class is an object for holding data of a OnImpulse defined in the component layer schema. I.e a
* transition between regimes. It therefore needs to have a target regime and will be owned by another regime.
* Usual component layer functions exist for file reading/writing.
*/
class OnImpulse: public ComponentModelObject
{
public:
// temp name
QString target_regime_name;
QString src_port_name;
Regime *target_regime;
ImpulsePort *src_port;
QVector <StateAssignment*> StateAssignList;
QVector <EventOut*> eventOutList;
QVector <ImpulseOut*> impulseOutList;
OnImpulse(OnImpulse *data);
OnImpulse(){target_regime=NULL; src_port=NULL;}
virtual ~OnImpulse();
int validateOnImpulse(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_ON_IMPULSE;}
};
/*!
* \brief The Regime class is an object for holding data of a Regime defined in the component layer schema.
*/
class Regime: public ComponentModelObject
{
public:
QString name;
QVector <TimeDerivative*> TimeDerivativeList;
QVector <OnCondition* > OnConditionList;
QVector <OnEvent*> OnEventList;
QVector <OnImpulse*> OnImpulseList;
Regime(Regime *data);
Regime(){}
virtual ~Regime();
int validateRegime(Component *component, QStringList * errs);
void readIn(QDomElement e);
void writeOut(QDomDocument *doc, QDomElement &parent);
virtual ComponentObjectType Type(){return COMPONENT_REGIME;}
};
/*!
* \brief The Component class is the data object which holds all data representing a component. I.e. all the regimes,
* ports, paramaters, state variables etc. It is the root holder of these objects and stores many of them in vectors.
* It is responsible for ownership.
*/
class Component: public ComponentModelObject, public ComponentRootObject
{
public:
//temp name
QString initial_regime_name;
QString name;
QString type;
bool islearning;
Regime *initial_regime;
QVector <Regime*> RegimeList;
QVector <StateVariable*> StateVariableList;
QVector <Parameter*> ParameterList;
QVector <Alias*> AliasList;
QVector <AnalogPort*> AnalogPortList;
QVector <EventPort*> EventPortList;
QVector <ImpulsePort*> ImpulsePortList;
Component(QSharedPointer<Component>data);
Component& operator=(const Component& data);
Component();
virtual ~Component();
void updateFrom(QSharedPointer<Component>data);
QStringList validateComponent();
void load(QDomDocument *doc);
void write(QDomDocument *doc);
virtual ComponentObjectType Type(){return COMPONENT;}
QUndoStack undoStack;
QSharedPointer<Component> editedVersion;
QString getXMLName();
};
/*!
* \brief The ComponentRootInstance class is a virtual class that represents an instance of the data that is described by a
* whole component or layout.
* Put another way when the properties of a whole component are read from the network layer this is the data that is used to
* instanciate the instances which match the description of the underlying parameter and state variable objects.
*
*/
class ComponentRootInstance
{
public:
NineMLType type;
QVector <StateVariableInstance*> StateVariableList;
QVector <ParameterInstance*> ParameterList;
void write_node_xml(QXmlStreamWriter &);
ComponentRootInstance(){}
virtual ~ComponentRootInstance(){}
/*!
* The annotation. Read with
* ComponentInstance::import_parameters_from_xml, which may be
* passed an option NOT to read annotation information.
*/
QString annotation;
};
/*!
* \brief The ComponentInstance class derives from the ComponentRootInstance class but is specific for SpineML Components and not Layouts.
*/
class ComponentInstance: public ComponentRootInstance
{
public:
QVector < QSharedPointer<genericInput> > inputs;
QVector < QSharedPointer<genericInput> > outputs;
QSharedPointer<Component> component;
ComponentInstance(QSharedPointer<Component>data);
ComponentInstance(QSharedPointer <ComponentInstance>data, bool copy_io = false);
void remapPointers(QMap <systemObject *, QSharedPointer <systemObject> > pointerMap);
void copyFrom(QSharedPointer <ComponentInstance>, QSharedPointer<Component>, QSharedPointer<ComponentInstance> thisSharedPointer);
ComponentInstance& operator=(const ComponentInstance& data);
ComponentInstance(){}
virtual ~ComponentInstance();
QString getXMLName();
int getSize();
void matchPorts();
QStringList getPortMatches(int index, bool isOutput);
void removeReferences();
QSharedPointer<systemObject> owner;
void import_parameters_from_xml(QDomNode &e);
void migrateComponent(QSharedPointer<Component> newComponent);
void addInput(QSharedPointer <ComponentInstance>, bool = false);
void copyParsFrom(QSharedPointer <ComponentInstance> data);
/*!
* This function first tests if this ComponentInstance is an
* instance of a LL:WeightUpdate or WeightUpdate component. If
* not, it returns a null pointer.
*
* If SO, then it then finds the Property "w" (or the first
* Property if there is none called "w") and returns its
* ParameterInstance*
*/
ParameterInstance* getWeightsParameter (void);
};
#endif // NINEML_STRUCTS_H
|
gpl-3.0
|
billhhh/whLBS
|
Framework/include/MyModule/mmodule.h
|
864
|
#ifndef MMODULE_H
#define MMODULE_H
#include <QWidget>
#include <QPixmap>
#include <QLabel>
#include "port.h"
#include <QHBoxLayout>
#include <QList>
class mmodule : public QWidget
{
Q_OBJECT
public:
mmodule(QWidget *parent = 0);
void mousePressEvent(QMouseEvent *);
QHBoxLayout *v ;
QWidget * left;
QWidget * mid;
QWidget * right;
QPixmap left1;
QPixmap mid1;
QPixmap right1;
QLabel* module_icon;
QList <port*> ports;
bool eventFilter(QObject *obj, QEvent *ev);
void addport();
void deleteport();
void leftmove();
void rightmove();
void changeporticon(QString iconpath);
port *p;
signals:
void currentportchanged(QString,QString,int,int);
public slots:
void changeportinfo();
};
#endif // MMODULE_H
|
gpl-3.0
|
immesys/smartgridstore
|
containers/simulator/Dockerfile
|
70
|
FROM ubuntu:xenial
ADD simulator /bin/
ENTRYPOINT ["/bin/simulator"]
|
gpl-3.0
|
xieguigang/Microsoft.VisualBasic.Windows.Forms
|
Microsoft.Windows.FeatureAPI/Sensors/Metadata/SensorState.vb
|
835
|
' Copyright (c) Microsoft Corporation. All rights reserved.
Namespace Sensors
''' <summary>
''' The state of the sensor
''' </summary>
Public Enum SensorState
''' <summary>
''' The device has been removed.
''' </summary>
Removed = -1
''' <summary>
''' The device is ready.
''' </summary>
Ready = 0
''' <summary>
''' The device is not available.
''' </summary>
NotAvailable = 1
''' <summary>
''' No data is available.
''' </summary>
NoData = 2
''' <summary>
''' The device is initializing.
''' </summary>
Initializing = 3
''' <summary>
''' No permissions exist to access the device.
''' </summary>
AccessDenied = 4
''' <summary>
''' The device has encountered an error.
''' </summary>
[Error] = 5
End Enum
End Namespace
|
gpl-3.0
|
wikistat/Apprentissage
|
BackPropagation/solutions/lr_class.py
|
1424
|
class LogisticRegression():
def __init__(self, input_size, output_size):
self.W = np.random.uniform(size=(input_size, output_size),
high=0.1, low=-0.1)
self.b = np.random.uniform(size=output_size,
high=0.1, low=-0.1)
self.output_size = output_size
def forward(self, X):
Z = np.dot(X, self.W) + self.b
sZ = softmax(Z)
return sZ
def predict(self, X):
if len(X.shape) == 1:
return np.argmax(self.forward(X))
else:
return np.argmax(self.forward(X), axis=1)
def grad_loss(self, x, y_true):
y_pred = self.forward(x)
dnll_output = y_pred - one_hot(self.output_size, y_true)
grad_W = np.outer(x, dnll_output)
grad_b = dnll_output
grads = {"W": grad_W, "b": grad_b}
return grads
def train(self, x, y, learning_rate):
# Traditional SGD update without momentum
grads = self.grad_loss(x, y)
self.W = self.W - learning_rate * grads["W"]
self.b = self.b - learning_rate * grads["b"]
def loss(self, x, y):
nll = NegLogLike(one_hot(self.output_size, y), self.forward(x))
return nll
def accuracy(self, X, y):
y_preds = np.argmax(self.forward(X), axis=1)
acc = np.mean(y_preds == y)
return acc
|
gpl-3.0
|
tupelo-shen/my_test
|
doc/linux/mips-architecture/loongson-datasheet/pmon/src/pmon-loongson3/zloader.ls2k/zlib_gzip.c
|
4065
|
/*
* GZIP Compression functions for kernel crash dumps.
*
* Created by: Matt Robinson (yakker@sourceforge.net)
* Copyright 2001 Matt D. Robinson. All rights reserved.
*
* This code is released under version 2 of the GNU GPL.
*/
#include <stdio.h>
#include <linux/zlib.h>
typedef unsigned int u32;
typedef unsigned char u8;
#define ENOMEM 12 /* Out of memory */
static void *deflate_workspace;
static void *inflate_workspace;
char *new;
int newsize;
static u32
compress_gzip(const u8 *old, u32 oldsize)
{
/* error code and dump stream */
int err;
char *buf;
int bufsize;
z_stream dump_stream;
buf=new=malloc(oldsize);
bufsize=oldsize;
dump_stream.workspace = deflate_workspace;
if ((err = zlib_deflateInit(&dump_stream,Z_BEST_COMPRESSION)) != Z_OK) {
printf("compress_gzip(): zlib_deflateInit() " "failed (%d)!\n", err);
return 0;
}
dump_stream.next_in = (u8 *) old;
dump_stream.avail_in = oldsize;
while(1)
{
dump_stream.next_out = buf;
dump_stream.avail_out = oldsize;
/* deflate the page -- check for error */
err = zlib_deflate(&dump_stream, Z_FINISH);
if(err==Z_STREAM_END)break;
if(err<0 && (err!=Z_BUF_ERROR)){
/* zero is return code here */
printf("compress_gzip(): zlib_deflate() failed (%d),total_out=%x,next_out=%x!\n",
err,dump_stream.total_out,dump_stream.next_out);
(void)zlib_deflateEnd(&dump_stream);
return 0;
}
new=realloc(new,bufsize+oldsize);
buf=new+dump_stream.total_out;
bufsize+=oldsize;
}
/* let's end the deflated compression stream */
if ((err = zlib_deflateEnd(&dump_stream)) != Z_OK) {
printf("compress_gzip(): zlib_deflateEnd() "
"failed (%d)!\n", err);
}
newsize=dump_stream.total_out;
return dump_stream.total_out;
}
#define MYDBG printf("debug:%s,%d\n",__FUNCTION__,__LINE__);
static u32
compress_gunzip(const u8 *old, u32 oldsize)
{
/* error code and dump stream */
int err;
char *buf;
int bufsize;
z_stream dump_stream;
buf=new=malloc(oldsize);
bufsize=oldsize;
dump_stream.workspace = inflate_workspace;
if ((err = zlib_inflateInit(&dump_stream)) != Z_OK) {
/* fall back to RLE compression */
printf("compress_gunzip(): zlib_inflateInit() "
"failed (%d)!\n", err);
return 0;
}
dump_stream.next_in = (u8 *) old;
dump_stream.avail_in = oldsize;
while(1){
dump_stream.next_out = buf;
dump_stream.avail_out = oldsize;
err = zlib_inflate(&dump_stream, Z_FINISH);
if(err==Z_STREAM_END)break;
else if(err<0 && (err!=Z_BUF_ERROR))
{
/* zero is return code here */
(void)zlib_inflateEnd(&dump_stream);
printf("compress_gunzip(): zlib_inflate() failed (%d)!\n",
err);
return 0;
}
new=realloc(new,bufsize+oldsize);
buf=new+dump_stream.total_out;
bufsize+=oldsize;
}
/* let's end the deflated compression stream */
if ((err = zlib_inflateEnd(&dump_stream)) != Z_OK) {
printf("compress_gunzip(): zlib_inflateEnd() "
"failed (%d)!\n", err);
}
newsize=dump_stream.total_out;
/* return the compressed byte total (if it's smaller) */
return dump_stream.total_out;
}
/* setup the gzip compression functionality */
int main(int argc,char **argv)
{
u32 fsize;
char *buf;
FILE *fin;
FILE *fout;
if(argc<3){printf("usage:gzip filein fileout [-d]\n");return -1;}
deflate_workspace = malloc(zlib_deflate_workspacesize());
if (!deflate_workspace) {
printf("compress_gzip_init(): Failed to "
"alloc %d bytes for deflate workspace\n",
zlib_deflate_workspacesize());
goto out;
}
inflate_workspace = malloc(zlib_inflate_workspacesize());
if (!inflate_workspace) {
printf("compress_gunzip_init(): Failed to "
"alloc %d bytes for deflate workspace\n",
zlib_inflate_workspacesize());
goto out;
}
fin=fopen(argv[1],"rb");
fseek(fin,0,SEEK_END);
fsize=ftell(fin);
fseek(fin,0,SEEK_SET);
buf=malloc(fsize);
fread(buf,fsize,1,fin);
fclose(fin);
if(argc>3)
compress_gunzip(buf,fsize);
else
compress_gzip(buf,fsize);
fout=fopen(argv[2],"wb");
fwrite(new,newsize,1,fout);
fclose(fout);
free(new);
free(buf);
out:
if(deflate_workspace)free(deflate_workspace);
if(inflate_workspace)free(inflate_workspace);
return 0;
}
|
gpl-3.0
|
Belbertn/Shoot
|
README.md
|
7
|
# Shoot
|
gpl-3.0
|
codento/barbados
|
barbados/barbadosdb/migrations/0008_club_users2.py
|
415
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-14 14:30
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('barbadosdb', '0007_club_users'),
]
operations = [
migrations.RenameField(
model_name='club',
old_name='user',
new_name='users',
),
]
|
gpl-3.0
|
chenglongcl/blog
|
Template/default/Home/index/category.html
|
1176
|
<!DOCTYPE html>
<html lang="en">
<!-- head头部分开始 -->
<head>
<include file="Public/public_head" title="{$category['cname']}-" keywords="{$category['keywords']}" description="{$category['description']}" />
</head>
<!-- head头部分结束 -->
<body>
<!-- 顶部导航开始 -->
<include file="Public/public_nav"/>
<!-- 顶部导航结束 -->
<div class="b-h-70"></div>
<!-- 主体部分开始 -->
<div id="b-content" class="container">
<div class="row">
<!-- 通用左侧列表开始 -->
<include file="Public/public_articles"/>
<!-- 通用左侧列表结束 -->
<!-- 通用右侧开始 -->
<include file="Public/public_right"/>
<!-- 通用右侧结束 -->
</div>
<div class="row">
<!-- 底部文件开始 -->
<include file="Public/public_foot"/>
<!-- 底部文件结束 -->
</div>
</div>
<!-- 主体部分结束 -->
<!-- 引入bootstrjs validationjs部分开始 -->
<bootstrapjs/>
<!-- 引入bootstrjs validationjs部分结束 -->
<!-- 登陆框开始 -->
<include file="Public/public_login"/>
<include file="Public/public_register"/>
<!-- 登陆框结束 -->
</body>
</html>
|
gpl-3.0
|
SpecialForce3331/sldap
|
web/views/auth.php
|
2551
|
<?php
/**
* Created by PhpStorm.
* User: sizov
* Date: 7/23/14
* Time: 7:49 PM
*/
include 'install/checkconf.php';
$ldap_server = $LdapIp;
$domain = $DomainPrefix;
function ldapAuth($ldap_server, $login, $password)
{
$ldapConn = ldap_connect( $ldap_server ) or die("can't connect to ldap server ".$ldap_server);
ldap_set_option( $ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3 );
ldap_set_option($ldapConn, LDAP_OPT_REFERRALS, 0);
if ( $ldapConn )
{
$ldapBind = ldap_bind( $ldapConn, $login, $password ) or die("can't auth with: ".$ldapConn." ".$login." ".$password);
if ( $ldapBind )
{
ldap_close($ldapConn);
return true;
}
}
return false;
}
//Работа с БД
//Данные для подключения к БД
$mysqlServer = $MysqlIp;
$mysqlUsername = $MysqlLogin;
$mysqlPassword = $MysqlPassword;
$mysqlDatabase = $MysqlDatabase;
$mysqli = new mysqli( $mysqlServer, $mysqlUsername, $mysqlPassword, $mysqlDatabase ); //Устанавливаем соединение в базой мускула
if ( $mysqli->connect_errno )
{
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; //Не удалось установить соединение с базой мускула.
}
else
{
$mysqli->set_charset("utf8"); //Устанавливаем принудительно кодировку в UTF-8!
}
if ( !empty( $_POST["login"] ) && !empty( $_POST["password"] ) )
{
$login = trim( $_POST["login"] );
$password = trim( $_POST["password"] );
$ip = trim($_POST["ip"], "/");
if ( ldapAuth($ldap_server, $login.$domain, $password) )
{
$query = "UPDATE `users` SET `ip` = INET_ATON('".$ip."') WHERE `login`='".$login."'";
$result = $mysqli->query( $query ) or die("insert ip error");
header('Location: /sldap/error_page.php?message=Теперь вы можете пользоваться интернетом.');
}
else
{
header('Location: /sldap/error_page.php?status=auth&ip='.$ip.'&message=Вы не верно ввели логин или пароль.');
}
}
else
{
header('Location: /sldap/error_page.php?status=auth&ip='.$ip.'&message=Вы не верно ввели логин или пароль.');
}
?>
|
gpl-3.0
|
FabioZumbi12/PixelVip
|
PixelVip-Spigot/src/main/java/br/net/fabiozumbi12/pixelvip/bukkit/PVUtil.java
|
6402
|
package br.net.fabiozumbi12.pixelvip.bukkit;
import br.net.fabiozumbi12.pixelvip.bukkit.bungee.SpigotText;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.security.SecureRandom;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.TimeUnit;
public class PVUtil {
private final PixelVip plugin;
public PVUtil(PixelVip plugin) {
this.plugin = plugin;
}
public String toColor(String str) {
return str.replaceAll("(&([Aa-fFkK-oOrR0-9]))", "\u00A7$2");
}
public String removeColor(String str) {
return str.replaceAll("(&([Aa-fFkK-oOrR0-9]))", "");
}
public long getNowMillis() {
Calendar cal = Calendar.getInstance();
return cal.getTimeInMillis();
}
public long dayToMillis(Long days) {
return TimeUnit.DAYS.toMillis(days);
}
public long millisToDay(String millis) {
return TimeUnit.MILLISECONDS.toDays(Long.parseLong(millis));
}
public long millisToDay(Long millis) {
return TimeUnit.MILLISECONDS.toDays(millis);
}
public void sendHoverKey(CommandSender sender, String key) {
try {
if (plugin.getPVConfig().getBoolean(true, "configs.spigot.clickKeySuggest") && sender instanceof Player) {
SpigotText text = new SpigotText();
text.setText(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeKey") + key + " " + plugin.getPVConfig().getLang("hoverKey")));
text.setHover(plugin.getUtil().toColor(plugin.getPVConfig().getLang("hoverKey")));
text.setClick(plugin.getPVConfig().getString("/usekey ", "configs.spigot.clickSuggest").replace("{key}", key));
text.sendMessage(sender);
} else {
sender.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeKey") + key));
}
} catch (NoSuchMethodError e) {
sender.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeKey") + key));
}
}
public String genKey(int length) {
char[] chartset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
Random random = new SecureRandom();
char[] result = new char[length];
for (int i = 0; i < result.length; i++) {
int randomCharIndex = random.nextInt(chartset.length);
result[i] = chartset[randomCharIndex];
}
return new String(result);
}
public void sendVipTime(CommandSender src, String UUID, String name) {
List<String[]> vips = plugin.getPVConfig().getVipInfo(UUID);
if (vips.size() > 0) {
src.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("_pluginTag", "vipInfoFor") + name + ":"));
src.sendMessage(plugin.getUtil().toColor("&b---------------------------------------------"));
vips.stream().filter(v -> v.length == 5).forEach((vipInfo) -> {
String time = plugin.getUtil().millisToMessage(Long.parseLong(vipInfo[0]));
if (plugin.getPVConfig().isVipActive(vipInfo[1], UUID)) {
time = plugin.getUtil().millisToMessage(Long.parseLong(vipInfo[0]) - plugin.getUtil().getNowMillis());
}
src.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeLeft") + time));
src.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeGroup") + plugin.getPVConfig().getVipTitle(vipInfo[1])));
src.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("timeActive") + plugin.getPVConfig().getLang(vipInfo[3])));
src.sendMessage(plugin.getUtil().toColor("&b---------------------------------------------"));
});
} else {
src.sendMessage(plugin.getUtil().toColor(plugin.getPVConfig().getLang("_pluginTag", "playerNotVip")));
}
}
public String millisToMessage(long millis) {
long days = TimeUnit.MILLISECONDS.toDays(millis);
long hour = TimeUnit.MILLISECONDS.toHours(millis - TimeUnit.DAYS.toMillis(days));
long min = TimeUnit.MILLISECONDS.toMinutes((millis - TimeUnit.DAYS.toMillis(days)) - TimeUnit.HOURS.toMillis(hour));
StringBuilder msg = new StringBuilder();
if (days > 0) {
msg.append("&6").append(days).append(plugin.getPVConfig().getLang("days")).append(", ");
}
if (hour > 0) {
msg.append("&6").append(hour).append(plugin.getPVConfig().getLang("hours")).append(", ");
}
if (min > 0) {
msg.append("&6").append(min).append(plugin.getPVConfig().getLang("minutes")).append(", ");
}
try {
msg.replace(msg.lastIndexOf(","), msg.lastIndexOf(",") + 1, ".").replace(msg.lastIndexOf(","), msg.lastIndexOf(",") + 1, plugin.getPVConfig().getLang("and"));
} catch (StringIndexOutOfBoundsException ex) {
return plugin.getPVConfig().getLang("lessThan");
}
return msg.toString();
}
public String expiresOn(Long millis) {
Date date = new Date(millis);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
return sdf.format(date);
}
public void ExecuteCmd(String cmd, Player player) {
if (cmd == null || cmd.isEmpty()) return;
if (player != null) cmd = cmd.replace("{p}", player.getName());
plugin.addLog("Running Command - \"" + cmd + "\"");
String finalCmd = cmd;
Bukkit.getScheduler().runTask(plugin, () -> plugin.serv.dispatchCommand(plugin.serv.getConsoleSender(), finalCmd));
}
public boolean paymentItems(HashMap<String, Integer> items, Player player, String payment, String transCode) {
int log = 0;
for (Map.Entry<String, Integer> item : items.entrySet()) {
int multipl = item.getValue();
String key = item.getKey();
for (int i = 0; i < multipl; i++) {
String cmd = "givepackage " + player.getName() + " " + key;
ExecuteCmd(cmd, null);
plugin.addLog("API:" + payment + " | " + player.getName() + " | Item Cmd:" + cmd + " | Transaction Code: " + transCode);
log++;
}
}
return log != 0;
}
}
|
gpl-3.0
|
Karplyak/avtomag.url.ph
|
axZm/plugins/ios6TimersFix.js
|
2999
|
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is free to use by anyone (MIT, blabla).
// Original Author: rkorving@wizcorp.jp
(function (window) {
var timeouts = {};
var intervals = {};
var orgSetTimeout = window.setTimeout;
var orgSetInterval = window.setInterval;
var orgClearTimeout = window.clearTimeout;
var orgClearInterval = window.clearInterval;
// To prevent errors if loaded on older IE.
if (!window.addEventListener) return false;
function axZmCreateTimer(set, map, args) {
var id, cb = args[0],
repeat = (set === orgSetInterval);
function callback() {
if (cb) {
cb.apply(window, arguments);
if (!repeat) {
delete map[id];
cb = null;
}
}
}
args[0] = callback;
id = set.apply(window, args);
map[id] = {
args: args,
created: Date.now(),
cb: cb,
id: id
};
return id;
}
function axZmResetTimer(set, clear, map, virtualId, correctInterval) {
var timer = map[virtualId];
if (!timer) {
return;
}
var repeat = (set === orgSetInterval);
// cleanup
clear(timer.id);
// reduce the interval (arg 1 in the args array)
if (!repeat) {
var interval = timer.args[1];
var reduction = Date.now() - timer.created;
if (reduction < 0) {
reduction = 0;
}
interval -= reduction;
if (interval < 0) {
interval = 0;
}
timer.args[1] = interval;
}
// recreate
function callback() {
if (timer.cb) {
timer.cb.apply(window, arguments);
if (!repeat) {
delete map[virtualId];
timer.cb = null;
}
}
}
timer.args[0] = callback;
timer.created = Date.now();
timer.id = set.apply(window, timer.args);
}
window.setTimeout = function () {
return axZmCreateTimer(orgSetTimeout, timeouts, arguments);
};
window.setInterval = function () {
return axZmCreateTimer(orgSetInterval, intervals, arguments);
};
window.clearTimeout = function (id) {
var timer = timeouts[id];
if (timer) {
delete timeouts[id];
orgClearTimeout(timer.id);
}
};
window.clearInterval = function (id) {
var timer = intervals[id];
if (timer) {
delete intervals[id];
orgClearInterval(timer.id);
}
};
//check and add listener on the top window if loaded on frameset/iframe
var win = window;
while (win.location != win.parent.location) {
win = win.parent;
}
win.addEventListener('scroll', function () {
// recreate the timers using adjusted intervals
// we cannot know how long the scroll-freeze lasted, so we cannot take that into account
var virtualId;
for (virtualId in timeouts) {
axZmResetTimer(orgSetTimeout, orgClearTimeout, timeouts, virtualId);
}
for (virtualId in intervals) {
axZmResetTimer(orgSetInterval, orgClearInterval, intervals, virtualId);
}
});
}(window));
|
gpl-3.0
|
attilawagner/qhebunel
|
pages/profileedit.php
|
5850
|
<?php
/**
* Qhebunel
* User profile (settings) page
* This page should be used instead of the WP admin dashboard for readers
* to change their settings.
*
* This page is displayed when a handler runs into an error.
*/
if (!defined('QHEBUNEL_REQUEST') || QHEBUNEL_REQUEST !== true) die;
global $section_params;
$user_id = (int)$section_params;
//Show message to users who aren't logged in
if (!is_user_logged_in()) {
echo('<div class="qheb-error-message">'.__('You must log in to edit your profile.', 'qhebunel').'</div>');
return;//stop page rendering, but create footer
}
if (!empty($user_id) && !QhebunelUser::is_moderator()) {
echo('<div class="qheb-error-message">'.__('You can only edit your own profile.', 'qhebunel').'</div>');
return;//stop page rendering, but create footer
}
//Select user
if (empty($user_id)) {
$user_id = $current_user->ID;
}
//Load data to display
$user_data = get_userdata($user_id);
$user_login = $user_data->user_login;
$first_name = get_user_meta($user_id, 'first_name', true);
$last_name = get_user_meta($user_id, 'last_name', true);
$nick_name = $user_data->display_name;
$email = $user_data->user_email;
$ext_data = $wpdb->get_row(
$wpdb->prepare(
'select * from `qheb_user_ext` where `uid`=%d',
$user_id
),
ARRAY_A
);
?>
<form method="post" action="<?=site_url('forum/')?>" enctype="multipart/form-data" onsubmit="return validate_profile_form();" id="profile_form">
<input type="hidden" name="action" value="profile" />
<input type="hidden" name="MAX_FILE_SIZE" value="<?=QHEBUNEL_AVATAR_MAX_FILESIZE?>" />
<input type="hidden" name="user-id" value="<?=$user_id?>" />
<h2><?php _e('Basic information', 'qhebunel'); ?></h2>
<table class="profile_settings">
<tfoot>
<tr><td colspan="2"><input name="update" type="submit" value="<?php _e('Save', 'qhebunel'); ?>" /></td></tr>
</tfoot>
<tbody>
<tr title="<?php _e('This is the name you use to log in. You cannot change it.', 'qhebunel'); ?>">
<th><label for="username"><?php _e('Login name', 'qhebunel'); ?></label></th>
<td><input name="username" id="username" type="text" readonly="readonly" value="<?=$user_login?>" /><span class="icon">🔒</span></td>
</tr>
<tr>
<th><label for="firstname"><?php _e('First name', 'qhebunel'); ?></label></th>
<td><input name="firstname" id="firstname" type="text" value="<?=$first_name?>" /></td>
</tr>
<tr>
<th><label for="lastname"><?php _e('Last name', 'qhebunel'); ?></label></th>
<td><input name="lastname" id="lastname" type="text" value="<?=$last_name?>" /></td>
</tr>
<tr title="<?php _e('This is the name visible next to your comments and forum posts.', 'qhebunel'); ?>">
<th><label for="nickname"><?php _e('Nickname', 'qhebunel'); ?></label></th>
<td><input name="nickname" id="nickname" type="text" required="required" value="<?=$nick_name?>" /></td>
</tr>
<tr title="<?php _e('Your email address is used to send you notifications you request and it\'s used in case you forgot your password.', 'qhebunel'); ?>">
<th><label for="email"><?php _e('Email', 'qhebunel'); ?></label></th>
<td><input name="email" id="email" type="email" required="required" value="<?=$email?>" /><span class="icon">✓</span></td>
</tr>
<?php if ($user_id == $current_user->ID) {?>
<tr title="<?php _e('Leave the password fields blank if you don\'t want to change your current password.', 'qhebunel'); ?>">
<th><label for="old-pass"><?php _e('Old password', 'qhebunel'); ?></label></th>
<td><input name="old-pass" id="old-pass" type="password" value="" /><span class="icon"></span></td>
</tr>
<?php } ?>
<tr title="<?php _e('Leave the password fields blank if you don\'t want to change your current password.', 'qhebunel'); ?>">
<th><label for="pass1"><?php _e('New password', 'qhebunel'); ?></label></th>
<td><input name="pass1" id="pass1" type="password" value="" /><span class="icon"></span></td>
</tr>
<tr title="<?php _e('Leave the password fields blank if you don\'t want to change your current password.', 'qhebunel'); ?>">
<th><label for="pass2"><?php _e('New password', 'qhebunel'); ?></label></th>
<td><input name="pass2" id="pass2" type="password" value="" /><span class="icon"></span></td>
</tr>
</tbody>
</table>
<h2><?php _e('Avatar and signature', 'qhebunel'); ?></h2>
<table class="profile_settings">
<tfoot>
<tr><td colspan="2"><input name="update" type="submit" value="<?php _e('Save', 'qhebunel'); ?>" /></td></tr>
</tfoot>
<tbody>
<tr>
<th><?php _e('Current avatar', 'qhebunel'); ?></th>
<td>
<?php
if (!empty($ext_data['avatar'])) {
echo('<img src="'.WP_CONTENT_URL.'/forum/avatars/'.$ext_data['avatar'].'" alt="" />');
echo('<br/><input name="delete_avatar" type="submit" value="'.__('Delete avatar', 'qhebunel').'" />');
} else {
_e('You don\'t have an avatar.', 'qhebunel');
}
?>
</td>
</tr>
<tr>
<th><?php _e('Upload new avatar', 'qhebunel'); ?></th>
<td>
<input type="file" name="avatar" accept="image/jpeg,image/png,image/gif" />
</td>
</tr>
<tr>
<th><?php _e('Current signature', 'qhebunel'); ?></th>
<td>
<?php
if (!empty($ext_data['signature'])) {
echo('<div class="user-signature">'.QhebunelUI::format_post($ext_data['signature']).'</div>');
} else {
_e('You don\'t have a signature.', 'qhebunel');
}
?>
</td>
</tr>
<tr>
<th><?php _e('Edit signature', 'qhebunel'); ?></th>
<td>
<textarea name="signature"><?=(empty($ext_data['signature']) ? '' : $ext_data['signature'])?></textarea>
</td>
</tr>
</tbody>
</table>
</form>
|
gpl-3.0
|
kdeividborges/mid7
|
blog/00/programacaojovem.html
|
9495
|
<html>
<head>
<title>MIDSEVEN PROGRAMACAO JOVEM</title>
</head>
<link rel="shortcut icon" href="../img/md0.png" type="image/x-icon">
<BODY bgcolor="black" background="../wallpapers/55.jpg" vlink="white" link="green" alink="orange" >
<div style="color: blue; text-align: center;"><font color="blue" size="1" ><B>
<span style="font-family: Nyala, sans-serif;"><b>
<tr bgcolor="WHITE">
<td align="center" bgcolor="black" >
<span style="font-family: Mistral, sans-serif;"><b>
<tr bgcolor="WHITE">
<td align="center" bgcolor="black" >
<div class="separator" style="background-color: black; clear: both; color: white; text-align: right;"><font color="white" size="3" ><B>
<div class="g-unit">
<div id="locale-switcher"> PROGRAMACAO JOVEM
<select onchange="var href=this[this.selectedIndex].value;if(href!=''){window.location.href=href};">
<option value="intruducao-index.html">
MENU
<option value="intruducao-index.html">
MENU 0
</option>
<option value="intruducao-1.html">
MENU 01
</option>
<option value="intruducao-2.html">
MENU 02
</option>
<option value="intruducao-3.html">
MENU 03
</option>
<option value="intruducao-4.html">
MENU 04
</option>
</select>
<select onchange="var href=this[this.selectedIndex].value;if(href!=''){window.location.href=href};">
<option value="pastas.html">
PASTA PESSOAL
</option>
<option value="pastas.html">
PASTA
</option>
<option value="bibliotecas.html">
BIBLIOTECAS
</option>
<option value="iphotos-index.html">
IMAGENS
</option>
<option value="idocs-index.html">
DOCUMENTOS
</option>
<option value="imusics-index.html">
MUSICAS
</option>
<option value="ivideos-index.html">
VIDEOS
</option>
<option value="inicio.html">
MENU INICIAR
</option>
<option value="media-index.html">
MIDIA REMOVIVEL
</option>
</select>
<select onchange="var href=this[this.selectedIndex].value;if(href!=''){window.location.href=href};">
<option value="intruducao-index.html">
CATEGORIAS
</option>
<option value="intruducao-index.html">
MENU
</option>
<option value="online-index.html">
ONLINE
</option>
<option value="MIDSEVEN.html">
MIDSEVEN
</option>
<option value="configure.html">
CONFIGURE
</option>
<option value="projetos.html">
PROJETOS
</option>
<option value="bibliotecas.html">
BIBLIOTECAS
</option>
<option value="igreja.html">
IGREJA
</option>
</select>
<select onchange="var href=this[this.selectedIndex].value;if(href!=''){window.location.href=href};">
<option value="../00/portal.html">
WALLPAPERS
</option>
<option value="../01/portal.html">
WALLPAPER 01
</option>
<option value="../02/portal.html">
WALLPAPER 02
</option>
<option value="../03/portal.html">
WALLPAPER 03
</option>
<option value="../04/portal.html">
WALLPAPER 04
</option>
<option value="../05/portal.html">
WALLPAPER 05
</option>
<option value="../06/portal.html">
WALLPAPER 06
</option>
<option value="../07/portal.html">
WALLPAPER 07
</option>
<option value="../08/portal.html">
WALLPAPER 08
</option>
<option value="../09/portal.html">
WALLPAPER 09
</option>
<option value="../10/portal.html">
WALLPAPER 10
</option>
<option value="../11/portal.html">
WALLPAPER 11
</option>
<option value="../12/portal.html">
WALLPAPER 12
</option>
<option value="../13/portal.html">
WALLPAPER 13
</option>
<option value="../14/portal.html">
WALLPAPER 14
</option>
<option value="../15/portal.html">
WALLPAPER 15
</option>
<option value="../16/portal.html">
WALLPAPER 16
</option>
<option value="../17/portal.html">
WALLPAPER 17
</option>
<option value="../18/portal.html">
WALLPAPER 18
</option>
<option value="../19/portal.html">
WALLPAPER 19
</option>
<option value="../20/portal.html">
WALLPAPER 20
</option>
<option value="../21/portal.html">
WALLPAPER 21
</option>
</select>
<font color="black" size="3" ><B>-----------------
<span style="font-size: medium;"><font color="gray" size="3" ><B>© <img src="../img/pja1.png" width="100" height="10" ><span style="color: white;"><span style="color: white;">
<span style="background-color: black;">© <script type='text/javascript'>var creditsyear = new Date();document.write(creditsyear.getFullYear());</script>
<span style="color: black;">---
<a href="minimizar.html" ><img alt="MINIMIZAR" title="MINIMIZAR" height="15" width="15" src="../img/icones/23.png" ></a>
<a href="#" ></a><img alt="RESTAURAR" title="RESTAURAR" height="15" width="15" src="../img/icones/18y.png" ></a>
<a href="fechar.html" ><img alt="FECHAR" title="FECHAR" height="15" width="15" src="../img/icones/30.png" ></a>
</div></div></td>
</tr>
<tr>
</a>
</div>
</div></div>
</div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="color: #f3f3f3; text-align: left;" trbidi="on">
<div style="background-color: black; color: #f3f3f3; font-family: Georgia,"Times New Roman",serif; text-align: center;">
<span style="background-color: black; color: #f3f3f3; font-size: x-large;"><span style="background-color: black; color: #f3f3f3;"></span></span></div>
<div style="color: #f3f3f3; font-family: Georgia,"Times New Roman",serif; text-align: center;">
</div>
<div style="color: blue; text-align: center;">
<div style='clear:both;'/>
<div class='widget-content'>
<div style='position:fixed; bottom: 14%; right: 96%;'>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: center;">
<tbody>
<tr><td style="text-align: center;">
<table border="1" align="center" size="1" >
<img height="30" width="55" src="../img/z.png" >
<tr>
<td align="center" bgcolor="black" ><a href="intruducao-index.html" ><img height="40" width="40" src="../img/icones/86.png" title="INICIO" ><br /><font color="white" size="2" ><b>MENU</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="online-index.html" ><img height="40" width="40" src="../img/icones/120.png" title="INTERNET - ONLINE" ><br /><font color="white" size="2" ><b>WEB</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="MIDSEVEN.html" ><img height="40" width="40" src="../img/icones/709.png" title="MIDSEVEN" ><br /><font color="white" size="2" ><b>MID</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="configure.html" ><img height="40" width="40" src="../img/icones/383.png" title="CONFIGURE" ><br /><font color="white" size="2" ><b>CONF</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="projetos.html" ><img height="40" width="40" src="../img/icones/312.png" title="PROJETOS" ><br /><font color="white" size="2" ><b>ACOES</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="bibliotecas.html" ><img height="40" width="40" src="../img/icones/343.png" title="BIBLIOTECAS" ><br /><font color="white" size="2" ><b>PASTA</a></td>
</tr>
<tr>
<td align="center" bgcolor="black" ><a href="igreja.html" ><img height="40" width="40" src="../img/icones/349.png" title="IGREJA" ><br /><font color="white" size="2" ><b>CASA</a></td>
</tr>
</tr>
</div>
</table>
<img height="30" width="55" src="../img/zz.png" >
</td></tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
</div> </div> </div> </div> </div><table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: left;">
<tr><td style="text-align: center;">
</td>
</tr>
<div style="color: transparent; text-align: center;"><center>
<iframe title='MIDSEVEN - MULTIMIDIA ADVENTISTA' src='../cultojovem.html' height='90%' width='90%'/></iframe>
</BODY>
</html>
|
gpl-3.0
|
dixidix/simulacion
|
extras/moodledata/lang/es/qtype_ddimageortext.php
|
1223
|
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 of the License, or
// (at your option) any later version.
//
// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qtype_ddimageortext', language 'es', branch 'MOODLE_26_STABLE'
*
* @package qtype_ddimageortext
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$string['pluginname'] = 'Arrastrar y soltar sobre una imagen';
$string['pluginnameadding'] = 'Añadir arrastrar y soltar sobre una imagen';
$string['pluginnameediting'] = 'Editar arrastrar y soltar sobre una imagen';
|
gpl-3.0
|
zdict/zdict
|
zdict/zdict.py
|
8711
|
from argparse import ArgumentParser, ArgumentTypeError
from locale import getdefaultlocale
from multiprocessing import Pool
from contextlib import redirect_stdout
from io import StringIO
from zdict import constants, utils, easter_eggs
from zdict.api import dump
from zdict.completer import DictCompleter
from zdict.loader import get_dictionary_map
from zdict.utils import readline, check_zdict_dir_and_db
def user_set_encoding_and_is_utf8():
# Check user's encoding settings
try:
(lang, enc) = getdefaultlocale()
except ValueError:
print("Didn't detect your LC_ALL environment variable.")
print("Please export LC_ALL with some UTF-8 encoding.")
print("For example: `export LC_ALL=en_US.UTF-8`")
return False
else:
if enc != "UTF-8":
print("zdict only works with encoding=UTF-8, ")
print("but your encoding is: {} {}".format(lang, enc))
print("Please export LC_ALL with some UTF-8 encoding.")
print("For example: `export LC_ALL=en_US.UTF-8`")
return False
return True
def get_args():
# parse args
parser = ArgumentParser(prog='zdict')
parser.add_argument(
'words',
metavar='word',
type=str,
nargs='*',
help='Words for searching its translation'
)
parser.add_argument(
"-v", "--version",
action="version",
version='%(prog)s-' + constants.VERSION
)
parser.add_argument(
"-d", "--disable-db-cache",
default=False,
action="store_true",
help="Temporarily not using the result from db cache.\
(still save the result into db)"
)
parser.add_argument(
"-t", "--query-timeout",
type=float,
default=5.0,
action="store",
help="Set timeout for every query. default is 5 seconds."
)
def positive_int_only(value):
ivalue = int(value)
if ivalue <= 0:
raise ArgumentTypeError(
"%s is an invalid positive int value" % value
)
return ivalue
parser.add_argument(
"-j", "--jobs",
type=positive_int_only,
nargs="?",
default=0, # 0: not using, None: auto, N (1, 2, ...): N jobs
action="store",
help="""
Allow N jobs at once.
Do not pass any argument to use the number of CPUs in the system.
"""
)
parser.add_argument(
"-sp", "--show-provider",
default=False,
action="store_true",
help="Show the dictionary provider of the queried word"
)
parser.add_argument(
"-su", "--show-url",
default=False,
action="store_true",
help="Show the url of the queried word"
)
available_dictionaries = list(dictionary_map.keys())
available_dictionaries.append('all')
parser.add_argument(
"-dt", "--dict",
default="yahoo",
action="store",
choices=available_dictionaries,
metavar=','.join(available_dictionaries),
help="""
Must be seperated by comma and no spaces after each comma.
Choose the dictionary you want. (default: yahoo)
Use 'all' for qureying all dictionaries.
If 'all' or more than 1 dictionaries been chosen,
--show-provider will be set to True in order to
provide more understandable output.
"""
)
parser.add_argument(
"-ld", "--list-dicts",
default=False,
action="store_true",
help="Show currently supported dictionaries."
)
parser.add_argument(
"-V", "--verbose",
default=False,
action="store_true",
help="Show more information for the queried word.\
(If the chosen dictionary have implemented verbose related functions)"
)
parser.add_argument(
"-c", "--force-color",
default=False,
action="store_true",
help="Force color printing (zdict automatically disable color printing \
when output is not a tty, use this option to force color printing)"
)
parser.add_argument(
'--dump', dest='pattern',
nargs='?',
default=None, const=r'^.*$',
help='Dump the querying history, can be filtered with regex'
)
parser.add_argument(
"-D", "--debug",
default=False,
action="store_true",
help="Print raw html prettified by BeautifulSoup for debugging."
)
return parser.parse_args()
def set_args(args):
if args.force_color:
utils.Color.set_force_color()
args.dict = args.dict.split(',')
if 'all' in args.dict:
args.dict = tuple(dictionary_map.keys())
else:
# Uniq and Filter the dict not in supported dictionary list then sort.
args.dict = sorted(set(d for d in args.dict if d in dictionary_map))
if len(args.dict) > 1:
args.show_provider = True
return args
def lookup_string_wrapper(dict_class, word, args):
import sys
if args.force_color:
utils.Color.set_force_color()
else:
utils.Color.set_force_color(sys.stdout.isatty())
dictionary = dict_class(args)
f = StringIO()
with redirect_stdout(f):
dictionary.lookup(word)
return f.getvalue()
def init_worker():
# When -j been used, make subprocesses ignore KeyboardInterrupt
# for not showing KeyboardInterrupt traceback error message.
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
def normal_mode(args):
if args.jobs == 0:
# user didn't use `-j`
for word in args.words:
for d in args.dict:
zdict = dictionary_map[d](args)
zdict.lookup(word)
else:
# user did use `-j`
# If processes is None, os.cpu_count() is used.
pool = Pool(args.jobs, init_worker)
for word in args.words:
futures = [
pool.apply_async(lookup_string_wrapper,
(dictionary_map[d], word, args))
for d in args.dict
]
results = [i.get() for i in futures]
print(''.join(results))
easter_eggs.lookup_pyjokes(word)
class MetaInteractivePrompt():
def __init__(self, args):
self.args = args
self.dicts = tuple(
dictionary_map[d](self.args) for d in self.args.dict
)
self.dict_classes = tuple(dictionary_map[d] for d in self.args.dict)
if self.args.jobs == 0:
# user didn't use `-j`
self.pool = None
else:
# user did use `-j`
# If processes is None, os.cpu_count() is used.
self.pool = Pool(self.args.jobs, init_worker)
def __del__(self):
del self.dicts
def prompt(self):
user_input = input('[zDict]: ').strip()
if user_input:
if self.pool:
futures = [
self.pool.apply_async(lookup_string_wrapper,
(d, user_input, self.args))
for d in self.dict_classes
]
results = [i.get() for i in futures]
print(''.join(results))
else:
for dictionary_instance in self.dicts:
dictionary_instance.lookup(user_input)
else:
return
def loop_prompt(self):
while True:
self.prompt()
def interactive_mode(args):
# configure readline and completer
readline.parse_and_bind("tab: complete")
readline.set_completer(DictCompleter().complete)
zdict = MetaInteractivePrompt(args)
zdict.loop_prompt()
def execute_zdict(args):
if args.list_dicts:
for provider in sorted(dictionary_map):
print(
'{}: {}\n{}\n'.format(
provider,
dictionary_map[provider](args).title,
dictionary_map[provider](args).HOMEPAGE_URL,
)
)
exit()
if args.pattern:
for word in dump(pattern=args.pattern):
print(word)
exit()
try:
if args.words:
normal_mode(args)
else:
interactive_mode(args)
except (KeyboardInterrupt, EOFError):
print()
return
def main():
if user_set_encoding_and_is_utf8():
check_zdict_dir_and_db()
global dictionary_map
dictionary_map = get_dictionary_map()
args = get_args()
args = set_args(args)
execute_zdict(args)
else:
exit()
|
gpl-3.0
|
fervillarrealm/CsCloud-Laravel
|
public/assets/css/jsvalidation.css
|
84
|
.help-block{margin:1px 0 1px 15px;color:#f56954!important;font-size:12px;float:left}
|
gpl-3.0
|
zenvisage/zenvisage
|
src/main/java/edu/uiuc/zenvisage/zqlcomplete/executor/ZColumn.java
|
1296
|
package edu.uiuc.zenvisage.zqlcomplete.executor;
import java.util.ArrayList;
import java.util.List;
public class ZColumn {
private String variable;
private String attribute; //put z here
private List<String> values;
private String expression;
private boolean aggregate;
// after executing expression, implement after set operation is implemented
// private List<String> parsedValues;
public ZColumn(String attribute) {
this.attribute = attribute;
}
public ZColumn() {
variable = "";
attribute = "";
values = new ArrayList<String>();
expression = "";
aggregate = false;
// parsedValues = new ArrayList<String>();
}
public String getVariable() {
return variable;
}
public void setVariable(String source) {
variable = source;
}
public String getExpression() {
return expression;
}
public void setExpression(String source) {
expression = source;
}
public String getAttribute() {
return attribute;
}
public void setAttribute(String source) {
attribute = source;
}
public List<String> getValues() {
return values;
}
public void setValues(List<String> source) {
values = source;
}
public boolean isAggregate() {
return aggregate;
}
public void setAggregate(boolean aggregate) {
this.aggregate = aggregate;
}
}
|
gpl-3.0
|
rdemorais/ecar-spa
|
pe-spa/src/js/modules/common/services/support.service.js
|
2683
|
/**=========================================================
* Module: SupportService.js
* Checks for features supports on browser
=========================================================*/
/*jshint -W069*/
(function() {
'use strict';
angular
.module('naut')
.service('support', service);
service.$inject = ['$document', '$window'];
function service($document, $window) {
/*jshint validthis:true*/
var support = this;
var doc = $document[0];
// Check for transition support
// -----------------------------------
support.transition = (function() {
function transitionEnd() {
var el = document.createElement('bootstrap');
var transEndEventNames = {
WebkitTransition : 'webkitTransitionEnd',
MozTransition : 'transitionend',
OTransition : 'oTransitionEnd otransitionend',
transition : 'transitionend'
};
for (var name in transEndEventNames) {
if (el.style[name] !== undefined) {
return { end: transEndEventNames[name] };
}
}
return false;
}
return transitionEnd();
})();
// Check for animation support
// -----------------------------------
support.animation = (function() {
var animationEnd = (function() {
var element = doc.body || doc.documentElement,
animEndEventNames = {
WebkitAnimation: 'webkitAnimationEnd',
MozAnimation: 'animationend',
OAnimation: 'oAnimationEnd oanimationend',
animation: 'animationend'
}, name;
for (name in animEndEventNames) {
if (element.style[name] !== undefined) return animEndEventNames[name];
}
}());
return animationEnd && { end: animationEnd };
})();
// Check touch device
// -----------------------------------
support.touch = (
('ontouchstart' in window && navigator.userAgent.toLowerCase().match(/mobile|tablet/)) ||
($window.DocumentTouch && document instanceof $window.DocumentTouch) ||
($window.navigator['msPointerEnabled'] && $window.navigator['msMaxTouchPoints'] > 0) || //IE 10
($window.navigator['pointerEnabled'] && $window.navigator['maxTouchPoints'] > 0) || //IE >=11
false
);
return support;
}
})();
|
gpl-3.0
|
domino14/Webolith
|
djAerolith/base/migrations/0010_auto_20190124_1902.py
|
488
|
# Generated by Django 2.0.9 on 2019-01-25 03:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0009_auto_20170824_0722'),
]
operations = [
migrations.AlterField(
model_name='alphagramtag',
name='tag',
field=models.CharField(choices=[('D5', 'Very Easy'), ('D4', 'Easy'), ('D3', 'Average'), ('D2', 'Hard'), ('D1', 'Very Hard')], max_length=2),
),
]
|
gpl-3.0
|
cluck/freeipa
|
ipatests/test_ipalib/test_crud.py
|
7084
|
# Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
"""
Test the `ipalib.crud` module.
"""
from ipatests.util import read_only, raises, get_api, ClassChecker
from ipalib import crud, frontend, plugable, config
from ipalib.parameters import Str
class CrudChecker(ClassChecker):
"""
Class for testing base classes in `ipalib.crud`.
"""
def get_api(self, args=tuple(), options=tuple()):
"""
Return a finalized `ipalib.plugable.API` instance.
"""
(api, home) = get_api()
class user(frontend.Object):
takes_params = (
'givenname',
Str('sn', flags='no_update'),
Str('uid', primary_key=True),
'initials',
Str('uidnumber', flags=['no_create', 'no_search'])
)
class user_verb(self.cls):
takes_args = args
takes_options = options
api.register(user)
api.register(user_verb)
api.finalize()
return api
class test_Create(CrudChecker):
"""
Test the `ipalib.crud.Create` class.
"""
_cls = crud.Create
def test_get_args(self):
"""
Test the `ipalib.crud.Create.get_args` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.args) == ['uid']
assert api.Method.user_verb.args.uid.required is True
def test_get_options(self):
"""
Test the `ipalib.crud.Create.get_options` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.options) == \
['givenname', 'sn', 'initials', 'all', 'raw', 'version']
for param in api.Method.user_verb.options():
if param.name != 'version':
assert param.required is True
api = self.get_api(options=(Str('extra?'),))
assert list(api.Method.user_verb.options) == \
['givenname', 'sn', 'initials', 'extra', 'all', 'raw', 'version']
assert api.Method.user_verb.options.extra.required is False
class test_Update(CrudChecker):
"""
Test the `ipalib.crud.Update` class.
"""
_cls = crud.Update
def test_get_args(self):
"""
Test the `ipalib.crud.Update.get_args` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.args) == ['uid']
assert api.Method.user_verb.args.uid.required is True
def test_get_options(self):
"""
Test the `ipalib.crud.Update.get_options` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.options) == \
['givenname', 'initials', 'uidnumber', 'all', 'raw', 'version']
for param in api.Method.user_verb.options():
if param.name in ['all', 'raw']:
assert param.required is True
else:
assert param.required is False
class test_Retrieve(CrudChecker):
"""
Test the `ipalib.crud.Retrieve` class.
"""
_cls = crud.Retrieve
def test_get_args(self):
"""
Test the `ipalib.crud.Retrieve.get_args` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.args) == ['uid']
assert api.Method.user_verb.args.uid.required is True
def test_get_options(self):
"""
Test the `ipalib.crud.Retrieve.get_options` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.options) == ['all', 'raw', 'version']
class test_Delete(CrudChecker):
"""
Test the `ipalib.crud.Delete` class.
"""
_cls = crud.Delete
def test_get_args(self):
"""
Test the `ipalib.crud.Delete.get_args` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.args) == ['uid']
assert api.Method.user_verb.args.uid.required is True
def test_get_options(self):
"""
Test the `ipalib.crud.Delete.get_options` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.options) == ['version']
assert len(api.Method.user_verb.options) == 1
class test_Search(CrudChecker):
"""
Test the `ipalib.crud.Search` class.
"""
_cls = crud.Search
def test_get_args(self):
"""
Test the `ipalib.crud.Search.get_args` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.args) == ['criteria']
assert api.Method.user_verb.args.criteria.required is False
def test_get_options(self):
"""
Test the `ipalib.crud.Search.get_options` method.
"""
api = self.get_api()
assert list(api.Method.user_verb.options) == \
['givenname', 'sn', 'uid', 'initials', 'all', 'raw', 'version']
for param in api.Method.user_verb.options():
if param.name in ['all', 'raw']:
assert param.required is True
else:
assert param.required is False
class test_CrudBackend(ClassChecker):
"""
Test the `ipalib.crud.CrudBackend` class.
"""
_cls = crud.CrudBackend
def get_subcls(self):
class ldap(self.cls):
pass
return ldap
def check_method(self, name, *args):
o = self.cls()
e = raises(NotImplementedError, getattr(o, name), *args)
assert str(e) == 'CrudBackend.%s()' % name
sub = self.subcls()
e = raises(NotImplementedError, getattr(sub, name), *args)
assert str(e) == 'ldap.%s()' % name
def test_create(self):
"""
Test the `ipalib.crud.CrudBackend.create` method.
"""
self.check_method('create')
def test_retrieve(self):
"""
Test the `ipalib.crud.CrudBackend.retrieve` method.
"""
self.check_method('retrieve', 'primary key', 'attribute')
def test_update(self):
"""
Test the `ipalib.crud.CrudBackend.update` method.
"""
self.check_method('update', 'primary key')
def test_delete(self):
"""
Test the `ipalib.crud.CrudBackend.delete` method.
"""
self.check_method('delete', 'primary key')
def test_search(self):
"""
Test the `ipalib.crud.CrudBackend.search` method.
"""
self.check_method('search')
|
gpl-3.0
|
Hazelwire/Hazelwire
|
src/GenerationFramework/doc/org/hazelwire/virtualmachine/InstallScriptGenerator.html
|
10217
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Wed Nov 02 18:30:53 CET 2011 -->
<TITLE>
InstallScriptGenerator
</TITLE>
<META NAME="date" CONTENT="2011-11-02">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="InstallScriptGenerator";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InstallScriptGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../org/hazelwire/virtualmachine/ProgressInterface.html" title="interface in org.hazelwire.virtualmachine"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/hazelwire/virtualmachine/InstallScriptGenerator.html" target="_top"><B>FRAMES</B></A>
<A HREF="InstallScriptGenerator.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.hazelwire.virtualmachine</FONT>
<BR>
Class InstallScriptGenerator</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.hazelwire.virtualmachine.InstallScriptGenerator</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>InstallScriptGenerator</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
This class will generate an install script that is to be executed inside of the virtualmachine. After all the modules are uploaded the execution
of the script will result in an automatic installation of all the modules.
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>Tim Strijdhorst</DD>
</DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/hazelwire/virtualmachine/InstallScriptGenerator.html#InstallScriptGenerator()">InstallScriptGenerator</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/hazelwire/virtualmachine/InstallScriptGenerator.html#saveScriptToDisk(java.lang.String)">saveScriptToDisk</A></B>(java.lang.String filePath)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="InstallScriptGenerator()"><!-- --></A><H3>
InstallScriptGenerator</H3>
<PRE>
public <B>InstallScriptGenerator</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="saveScriptToDisk(java.lang.String)"><!-- --></A><H3>
saveScriptToDisk</H3>
<PRE>
public static void <B>saveScriptToDisk</B>(java.lang.String filePath)
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InstallScriptGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../org/hazelwire/virtualmachine/ProgressInterface.html" title="interface in org.hazelwire.virtualmachine"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/hazelwire/virtualmachine/InstallScriptGenerator.html" target="_top"><B>FRAMES</B></A>
<A HREF="InstallScriptGenerator.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
|
gpl-3.0
|
martin-helmich/graphpizer-cli
|
src/Persistence/Op/MergeNode.php
|
2735
|
<?php
/*
* GraPHPizer source code analytics engine (cli component)
* Copyright (C) 2015 Martin Helmich <kontakt@martin-helmich.de>
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Helmich\Graphizer\Persistence\Op;
use Helmich\Graphizer\Persistence\Op\Builder\EdgeBuilder;
use Helmich\Graphizer\Persistence\Op\Builder\UpdateBuilder;
/**
* Creates a new node.
*
* @package Helmich\Graphizer
* @subpackage Persistence\Op
*/
class MergeNode extends AbstractOperation implements NodeMatcher {
use EdgeBuilder;
use UpdateBuilder;
use PropertyTrait;
private $id;
private $labels;
/**
* @param string $label
* @param array $properties
*/
public function __construct($label, array $properties = []) {
$this->id = 'node' . sha1(json_encode($properties));
$this->labels = [$label];
$this->properties = $this->filterProperties($properties);
}
/**
* @return string
*/
public function getId() {
return $this->id;
}
/**
* @return string
*/
public function getLabel() {
return $this->labels[0];
}
/**
* @param string $label
* @return void
*/
public function addLabel($label) {
$this->labels[] = $label;
}
/**
* @return string
*/
public function toCypher() {
$propValues = [];
foreach ($this->properties as $key => $value) {
$propValues[] = sprintf('%s: {prop_%s}.%s', $key, $this->id, $key);
}
return sprintf(
'CREATE (%s:%s {%s})',
$this->id,
implode(':', $this->labels),
implode(', ', $propValues)
);
}
/**
* @return array
*/
public function toJson() {
$properties = $this->properties;
$properties['__node_id'] = $this->id;
return [
'nodes' => [
[
'labels' => $this->labels,
'properties' => $properties,
'merge' => TRUE
]
]
];
}
/**
* @return string
*/
public function getArguments() {
$properties = $this->properties;
$properties['__node_id'] = $this->id;
return ['prop_' . $this->id => $properties];
}
/**
* @return NodeMatcher
*/
public function getMatcher() {
return new MatchNodeByIdProperty($this->id);
}
}
|
gpl-3.0
|
brandonccy/SmartNano
|
admincp/modules/pages/about-us/includes/action/editTestimonial.php
|
1979
|
<a href="?page=<?=$page?>&cate=<?=$cate?>">
<button type="button" class="btn btn-default" ><i class="fa fa-arrow-left"></i> Back to Testimonial List</button>
</a>
<br><br>
<header class="widget-header">
<a href="?page=<?=$page?>&cate=<?=$cate?>">
<button type="button" class="close">×</button>
</a>
<h4 class="widget-title">Edit Testimonial</h4>
</header><!-- .widget-header -->
<hr class="widget-separator">
<div class="widget-body">
<form action="#" class="form-horizontal" method="post" data-parsley-validate>
<input type="hidden" name="form" value="pages-about-us-editTestimonial">
<input type="hidden" name="token" value="<?=$Token?>">
<div class="form-group">
<label for="control-demo-1" class="col-sm-2">Name</label>
<div class="col-sm-10">
<input type="text" name="txtTitle" id="txtTitle" class="form-control" value="<?=getDataTable("db_testimonial", "testimonial_id", $id, "testimonial_name")?>" required="required">
</div>
</div><!-- .form-group -->
<div class="form-group">
<label for="control-demo-1" class="col-sm-2">Sub Name</label>
<div class="col-sm-10">
<input type="text" name="txtSubName" id="control-demo-1" class="form-control" value="<?=getDataTable("db_testimonial", "testimonial_id", $id, "testimonial_sub_name")?>" required="required">
</div>
</div><!-- .form-group -->
<div class="form-group">
<label for="control-demo-1" class="col-sm-2">Content</label>
<div class="col-sm-10">
<textarea name="txtContent" id="txtContent" class="form-control" cols="30" rows="5" required="required"><?=getDataTable("db_testimonial", "testimonial_id", $id, "testimonial_content")?></textarea>
</div>
</div><!-- .form-group -->
<div class="form-group">
<label for="control-demo-1" class="col-sm-3"><button type="submit" class="btn mw-md btn-primary">Save</button></label>
<div class="col-sm-4">
</div>
</div><!-- .form-group -->
</form>
</div><!-- .widget-body -->
</form>
|
gpl-3.0
|
ag-csw/aspect-owl-protege
|
src/main/java/de/fuberlin/csw/aspectowl/parser/ParseException.java
|
6190
|
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 5.0 */
/* JavaCCOptions:KEEP_LINE_COL=null */
package de.fuberlin.csw.aspectowl.parser;
/**
* This exception is thrown when parse errors are encountered.
* You can explicitly create objects of this exception type by
* calling the method generateParseException in the generated
* parser.
*
* You can modify this class to customize your error reporting
* mechanisms so long as you retain the public fields.
*/
public class ParseException extends Exception {
/**
* The version identifier for this Serializable class.
* Increment only if the <i>serialized</i> form of the
* class changes.
*/
private static final long serialVersionUID = 1L;
/**
* This constructor is used by the method "generateParseException"
* in the generated parser. Calling this constructor generates
* a new object of this type with the fields "currentToken",
* "expectedTokenSequences", and "tokenImage" set.
*/
public ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal
)
{
super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal));
currentToken = currentTokenVal;
expectedTokenSequences = expectedTokenSequencesVal;
tokenImage = tokenImageVal;
}
/**
* The following constructors are for use by you for whatever
* purpose you can think of. Constructing the exception in this
* manner makes the exception behave in the normal way - i.e., as
* documented in the class "Throwable". The fields "errorToken",
* "expectedTokenSequences", and "tokenImage" do not contain
* relevant information. The JavaCC generated code does not use
* these constructors.
*/
public ParseException() {
super();
}
/** Constructor with message. */
public ParseException(String message) {
super(message);
}
/**
* This is the last token that has been consumed successfully. If
* this object has been created due to a parse error, the token
* followng this token will (therefore) be the first error token.
*/
public Token currentToken;
/**
* Each entry in this array is an array of integers. Each array
* of integers represents a sequence of tokens (by their ordinal
* values) that is expected at this point of the parse.
*/
public int[][] expectedTokenSequences;
/**
* This is a reference to the "tokenImage" array of the generated
* parser within which the parse error occurred. This array is
* defined in the generated ...Constants interface.
*/
public String[] tokenImage;
/**
* It uses "currentToken" and "expectedTokenSequences" to generate a parse
* error message and returns it. If this object has been created
* due to a parse error, and you do not catch it (it gets thrown
* from the parser) the correct error message
* gets displayed.
*/
private static String initialise(Token currentToken,
int[][] expectedTokenSequences,
String[] tokenImage) {
String eol = System.getProperty("line.separator", "\n");
StringBuffer expected = new StringBuffer();
int maxSize = 0;
for (int i = 0; i < expectedTokenSequences.length; i++) {
if (maxSize < expectedTokenSequences[i].length) {
maxSize = expectedTokenSequences[i].length;
}
for (int j = 0; j < expectedTokenSequences[i].length; j++) {
expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
}
if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
expected.append("...");
}
expected.append(eol).append(" ");
}
String retval = "Encountered \"";
Token tok = currentToken.next;
for (int i = 0; i < maxSize; i++) {
if (i != 0) retval += " ";
if (tok.kind == 0) {
retval += tokenImage[0];
break;
}
retval += " " + tokenImage[tok.kind];
retval += " \"";
retval += add_escapes(tok.image);
retval += " \"";
tok = tok.next;
}
retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
retval += "." + eol;
if (expectedTokenSequences.length == 1) {
retval += "Was expecting:" + eol + " ";
} else {
retval += "Was expecting one of:" + eol + " ";
}
retval += expected.toString();
return retval;
}
/**
* The end of line string for this machine.
*/
protected String eol = System.getProperty("line.separator", "\n");
/**
* Used to convert raw characters to their escaped version
* when these raw version cannot be used as part of an ASCII
* string literal.
*/
static String add_escapes(String str) {
StringBuffer retval = new StringBuffer();
char ch;
for (int i = 0; i < str.length(); i++) {
switch (str.charAt(i))
{
case 0 :
continue;
case '\b':
retval.append("\\b");
continue;
case '\t':
retval.append("\\t");
continue;
case '\n':
retval.append("\\n");
continue;
case '\f':
retval.append("\\f");
continue;
case '\r':
retval.append("\\r");
continue;
case '\"':
retval.append("\\\"");
continue;
case '\'':
retval.append("\\\'");
continue;
case '\\':
retval.append("\\\\");
continue;
default:
if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
String s = "0000" + Integer.toString(ch, 16);
retval.append("\\u" + s.substring(s.length() - 4, s.length()));
} else {
retval.append(ch);
}
continue;
}
}
return retval.toString();
}
}
/* JavaCC - OriginalChecksum=6aec7c540a7de5b09f956eda7a0c9656 (do not edit this line) */
|
gpl-3.0
|
ubuntu/tutorial-deployment
|
codelab/testdata/codelabgenerated/markdown-with-images.md/example-snap-tutorial/index.html
|
1409
|
<google-codelab
id="codelabobj"
title="Example snap tutorial"
feedback-link="https://github.com/ubuntudesign/tutorials.ubuntu.com/issues">
<app-route
route="{{route}}"
tail="{{routeTail}}"></app-route>
<google-codelab-step label="First step images" duration="1">
<p>A local image</p>
<p><img src="CODELABURL/img/128451a661545188.png"></p>
<p>A remote image in jpg</p>
<p><img src="CODELABURL/img/9d4087c57696f1bc.png"></p>
<p>A remote image in jpg</p>
<p><img src="CODELABURL/img/38e08f189734d781.png"></p>
<p>A relative image, in upper directory</p>
<p><img src="CODELABURL/img/128451a661545188.png"></p>
<p>Extensions are kept</p>
<p><img src="CODELABURL/img/38e08f189734d781.jpg"></p>
</google-codelab-step>
<google-codelab-step label="Metadata page" duration="2">
<p>At the top, you saw some medata, here are additional notes to them:</p>
<ul>
<li>Id would be used for url (tutorial/)</li>
<li>Title is 5 years max</li>
<li>Status: either Published or Draft</li>
</ul>
<aside class="special"><p>This will appear in a positive info box.</p>
</aside>
<aside class="warning"><p>This will appear in a negative info box.</p>
</aside>
<p>category, corresponding to one of the area of the developer site</p>
</google-codelab-step>
<google-codelab-step label="Last step" duration="3">
<p>This is the last step</p>
</google-codelab-step>
</google-codelab>
|
gpl-3.0
|
transwarpio/rapidminer
|
rapidMiner/rapidminer-studio-core/src/main/java/com/rapidminer/operator/execution/UnitExecutor.java
|
1306
|
/**
* Copyright (C) 2001-2016 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* This program 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
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with this program.
* If not, see http://www.gnu.org/licenses/.
*/
package com.rapidminer.operator.execution;
import com.rapidminer.operator.ExecutionUnit;
import com.rapidminer.operator.OperatorException;
/**
* Executes an {@link ExecutionUnit}.
*
* @author Simon Fischer
* */
public interface UnitExecutor {
public boolean isRemote(ExecutionUnit unit);
public void execute(ExecutionUnit unit) throws OperatorException;
public boolean validate(ExecutionUnit unit, String mode) throws OperatorException;
}
|
gpl-3.0
|
forgodsake/TowerPlus
|
Android/src/com/fuav/android/view/checklist/row/ListRow_Note.java
|
1912
|
package com.fuav.android.view.checklist.row;
import com.fuav.android.R;
import com.fuav.android.view.checklist.CheckListItem;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.view.ViewGroup;
import android.widget.EditText;
public class ListRow_Note extends ListRow implements OnFocusChangeListener {
public ListRow_Note(LayoutInflater inflater, final CheckListItem checkListItem) {
super(inflater, checkListItem);
}
@Override
public View getView(View convertView) {
View view;
if (convertView == null) {
ViewGroup viewGroup = (ViewGroup) inflater.inflate(R.layout.list_note_item, null);
holder = new ViewHolder(viewGroup, checkListItem);
viewGroup.setTag(holder);
view = viewGroup;
} else {
view = convertView;
holder = (ViewHolder) convertView.getTag();
}
updateDisplay((ViewHolder) holder);
return view;
}
private void updateDisplay(ViewHolder holder) {
holder.editTextView.setOnFocusChangeListener(this);
holder.editTextView.setText(checkListItem.getValue());
updateCheckBox(checkListItem.isVerified());
}
@Override
public int getViewType() {
return ListRow_Type.NOTE_ROW.ordinal();
}
private static class ViewHolder extends BaseViewHolder {
private EditText editTextView;
private ViewHolder(ViewGroup viewGroup, CheckListItem checkListItem) {
super(viewGroup, checkListItem);
}
@Override
protected void setupViewItems(ViewGroup viewGroup, CheckListItem checkListItem) {
this.editTextView = (EditText) viewGroup.findViewById(R.id.lst_note);
}
}
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (!v.isFocused() && this.listener != null) {
checkListItem.setValue(((ViewHolder) this.holder).editTextView.getText().toString());
updateRowChanged();
}
}
}
|
gpl-3.0
|
InstantKhabar/_source
|
_source/news/30600-lucknow.html
|
6194
|
---
title: "सभी सीटों पर चुनाव लड़ेगी राष्ट्रीय समाजवादी पार्टी"
layout: item
category: lucknow
date: 2016-04-04T11:09:40.000Z
image: e317a127ac6d68da3f0130fa1b5679c2.jpg
---
<p style="text-align: justify;">लखनऊ। राष्ट्रीय समाजवादी पार्टी उत्तर प्रदेश के विधान सभा चुनाव में अकेल दम पर पूरे जोर-शोर के साथ मैदान में उतरेगी। राष्ट्रीय समाजवादी पार्टी के राष्ट्रीय अध्यक्ष एस.यू. चतुुर्वेदी ने आज अपने राजनैतिक दल की रणनीति का खुलासा करते हुए बताया कि उत्तर प्रदेश में सरकार बनने की दशा में उनका दल स्वास्थ्य, शिक्षा, सुरक्षा, पर्यावरण व भुखमरी के मामलों में विशेषतौर पर ध्यान देगा। आज एक प्रेस वार्ता में अपने दल के विभिन्न जिलों के प्रत्याशियों का ऐलान करते हुए राष्ट्रीय समाजवादी पार्टी के राष्ट्रीय अध्यक्ष ने बताया कि उनका दल प्रदेश की सभी विधान सभा सीटों पर अपने घोषणा पत्र के अनुसार चुनाव लड़ने जा रहा है। </p>
<p style="text-align: justify;">श्री चतुर्वेदी ने बताया कि उत्तर प्रदेश में स्वास्थ्य के मद्देनजर उनकी पार्टी की सरकार बनने पर सभी जिलों के उच्च तकनीकि से लैश आधुनिक अस्पताल बनाये जायेंगे। सभी जिलों में मोबाइल वैन गॉंव में जाकर लोगों का मुफ्त ईलाज करेगी, और सभी तरह की दवाइयॉं निशुल्क उपलब्ध करायेगी। श्री चतुर्वेदी ने बताया कि शिक्षा के नाम पर उत्तर प्रेदेश काफी पिछड़ा है। उनकी पार्टी के सत्ता में आने पर सभी बच्चों को किताब, कापी, डेªस व बस्ते आदि निशुल्क उपलब्ध कराये जायेगंे, और तीसरी कक्षा से ही कम्प्यूटर की शिक्षा दी जायेगी। सभी जिलों व कस्बों में 150 सीटों का उच्च स्तरीय कोचिंग संस्थान खोला जायेगा, जहॉं बच्चे इंजीनियरिंग व डाक्टरी की तैयारी कर सकेंगे। </p>
<p style="text-align: justify;">प्रेदेश में बढ़ी हुई बेरोजगारी को देखते हुए हर नागरिक को 220 दिन का बेकारी भत्ता दिया जायेगा। इसके साथ हर नागरिक को प्रतिमाह बीस-बीस किलो आटा व चावल सरकार की ओर से दिया जायेगा। प्रदेश के गॉंव-गॉंव तक सुरक्षा को मजबूत करने के लिए हर गॉंव से दस-दस लोगों की पुलिस में भर्ती की जायेगा। उत्तर प्रदेश की बिजली को दुरूस्त करने के लिए चार बड़े ताप बिजली घर व हर चार जिलों में एक-एक कर बीस गैस आधारित बिजली घर लगायेंगे। उत्तर प्रदेश की सभी बसों को पर्यावरण के नजरिये से सी.एन.जी. से चलाया जायेगा। सरकार बनते ही 365 दिनों में हर गॉंव में बिजली होगी, और सभी गॉंव जिलों से सड़क मार्ग से जुड़ेंगे।</p>
<p style="text-align: justify;">राष्ट्रीय समाजवादी पार्टी की सरकार बनने पर एक हेल्प लाइन की शुरूआत की जायेगी जिसे सभी गॉंवों से टेलीफोन के जरिये से जोड़ा जायेगा। किसी भी समस्या को हेल्प लाइन पर दर्ज कराने पर आठ घंटे के भीतर स्वयं मुख्यमंत्री मौके पर मौजूद होगा। श्री चतुर्वेदी ने बताया कि उनकी सरकार बनने पर कानपुर से गंगा नदी से एक बड़ी नहर निकाली जायेगी जो बुन्देखण्ड होते हुए नैपाल की सीमा तक जायेगी। इसी तरह की नहर यमुना नदी से भी निकाली जायेगी। </p>
|
gpl-3.0
|
darkmoon88/ms2013
|
README.md
|
22
|
ms2013
======
ms2013
|
gpl-3.0
|
gen0cide/laforge
|
ent/ginfilemiddleware_create.go
|
11377
|
// Code generated by entc, DO NOT EDIT.
package ent
import (
"context"
"errors"
"fmt"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/gen0cide/laforge/ent/ginfilemiddleware"
"github.com/gen0cide/laforge/ent/provisionedhost"
"github.com/gen0cide/laforge/ent/provisioningstep"
"github.com/google/uuid"
)
// GinFileMiddlewareCreate is the builder for creating a GinFileMiddleware entity.
type GinFileMiddlewareCreate struct {
config
mutation *GinFileMiddlewareMutation
hooks []Hook
}
// SetURLID sets the "url_id" field.
func (gfmc *GinFileMiddlewareCreate) SetURLID(s string) *GinFileMiddlewareCreate {
gfmc.mutation.SetURLID(s)
return gfmc
}
// SetFilePath sets the "file_path" field.
func (gfmc *GinFileMiddlewareCreate) SetFilePath(s string) *GinFileMiddlewareCreate {
gfmc.mutation.SetFilePath(s)
return gfmc
}
// SetAccessed sets the "accessed" field.
func (gfmc *GinFileMiddlewareCreate) SetAccessed(b bool) *GinFileMiddlewareCreate {
gfmc.mutation.SetAccessed(b)
return gfmc
}
// SetNillableAccessed sets the "accessed" field if the given value is not nil.
func (gfmc *GinFileMiddlewareCreate) SetNillableAccessed(b *bool) *GinFileMiddlewareCreate {
if b != nil {
gfmc.SetAccessed(*b)
}
return gfmc
}
// SetID sets the "id" field.
func (gfmc *GinFileMiddlewareCreate) SetID(u uuid.UUID) *GinFileMiddlewareCreate {
gfmc.mutation.SetID(u)
return gfmc
}
// SetGinFileMiddlewareToProvisionedHostID sets the "GinFileMiddlewareToProvisionedHost" edge to the ProvisionedHost entity by ID.
func (gfmc *GinFileMiddlewareCreate) SetGinFileMiddlewareToProvisionedHostID(id uuid.UUID) *GinFileMiddlewareCreate {
gfmc.mutation.SetGinFileMiddlewareToProvisionedHostID(id)
return gfmc
}
// SetNillableGinFileMiddlewareToProvisionedHostID sets the "GinFileMiddlewareToProvisionedHost" edge to the ProvisionedHost entity by ID if the given value is not nil.
func (gfmc *GinFileMiddlewareCreate) SetNillableGinFileMiddlewareToProvisionedHostID(id *uuid.UUID) *GinFileMiddlewareCreate {
if id != nil {
gfmc = gfmc.SetGinFileMiddlewareToProvisionedHostID(*id)
}
return gfmc
}
// SetGinFileMiddlewareToProvisionedHost sets the "GinFileMiddlewareToProvisionedHost" edge to the ProvisionedHost entity.
func (gfmc *GinFileMiddlewareCreate) SetGinFileMiddlewareToProvisionedHost(p *ProvisionedHost) *GinFileMiddlewareCreate {
return gfmc.SetGinFileMiddlewareToProvisionedHostID(p.ID)
}
// SetGinFileMiddlewareToProvisioningStepID sets the "GinFileMiddlewareToProvisioningStep" edge to the ProvisioningStep entity by ID.
func (gfmc *GinFileMiddlewareCreate) SetGinFileMiddlewareToProvisioningStepID(id uuid.UUID) *GinFileMiddlewareCreate {
gfmc.mutation.SetGinFileMiddlewareToProvisioningStepID(id)
return gfmc
}
// SetNillableGinFileMiddlewareToProvisioningStepID sets the "GinFileMiddlewareToProvisioningStep" edge to the ProvisioningStep entity by ID if the given value is not nil.
func (gfmc *GinFileMiddlewareCreate) SetNillableGinFileMiddlewareToProvisioningStepID(id *uuid.UUID) *GinFileMiddlewareCreate {
if id != nil {
gfmc = gfmc.SetGinFileMiddlewareToProvisioningStepID(*id)
}
return gfmc
}
// SetGinFileMiddlewareToProvisioningStep sets the "GinFileMiddlewareToProvisioningStep" edge to the ProvisioningStep entity.
func (gfmc *GinFileMiddlewareCreate) SetGinFileMiddlewareToProvisioningStep(p *ProvisioningStep) *GinFileMiddlewareCreate {
return gfmc.SetGinFileMiddlewareToProvisioningStepID(p.ID)
}
// Mutation returns the GinFileMiddlewareMutation object of the builder.
func (gfmc *GinFileMiddlewareCreate) Mutation() *GinFileMiddlewareMutation {
return gfmc.mutation
}
// Save creates the GinFileMiddleware in the database.
func (gfmc *GinFileMiddlewareCreate) Save(ctx context.Context) (*GinFileMiddleware, error) {
var (
err error
node *GinFileMiddleware
)
gfmc.defaults()
if len(gfmc.hooks) == 0 {
if err = gfmc.check(); err != nil {
return nil, err
}
node, err = gfmc.sqlSave(ctx)
} else {
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutation, ok := m.(*GinFileMiddlewareMutation)
if !ok {
return nil, fmt.Errorf("unexpected mutation type %T", m)
}
if err = gfmc.check(); err != nil {
return nil, err
}
gfmc.mutation = mutation
if node, err = gfmc.sqlSave(ctx); err != nil {
return nil, err
}
mutation.id = &node.ID
mutation.done = true
return node, err
})
for i := len(gfmc.hooks) - 1; i >= 0; i-- {
if gfmc.hooks[i] == nil {
return nil, fmt.Errorf("ent: uninitialized hook (forgotten import ent/runtime?)")
}
mut = gfmc.hooks[i](mut)
}
if _, err := mut.Mutate(ctx, gfmc.mutation); err != nil {
return nil, err
}
}
return node, err
}
// SaveX calls Save and panics if Save returns an error.
func (gfmc *GinFileMiddlewareCreate) SaveX(ctx context.Context) *GinFileMiddleware {
v, err := gfmc.Save(ctx)
if err != nil {
panic(err)
}
return v
}
// Exec executes the query.
func (gfmc *GinFileMiddlewareCreate) Exec(ctx context.Context) error {
_, err := gfmc.Save(ctx)
return err
}
// ExecX is like Exec, but panics if an error occurs.
func (gfmc *GinFileMiddlewareCreate) ExecX(ctx context.Context) {
if err := gfmc.Exec(ctx); err != nil {
panic(err)
}
}
// defaults sets the default values of the builder before save.
func (gfmc *GinFileMiddlewareCreate) defaults() {
if _, ok := gfmc.mutation.Accessed(); !ok {
v := ginfilemiddleware.DefaultAccessed
gfmc.mutation.SetAccessed(v)
}
if _, ok := gfmc.mutation.ID(); !ok {
v := ginfilemiddleware.DefaultID()
gfmc.mutation.SetID(v)
}
}
// check runs all checks and user-defined validators on the builder.
func (gfmc *GinFileMiddlewareCreate) check() error {
if _, ok := gfmc.mutation.URLID(); !ok {
return &ValidationError{Name: "url_id", err: errors.New(`ent: missing required field "url_id"`)}
}
if _, ok := gfmc.mutation.FilePath(); !ok {
return &ValidationError{Name: "file_path", err: errors.New(`ent: missing required field "file_path"`)}
}
if _, ok := gfmc.mutation.Accessed(); !ok {
return &ValidationError{Name: "accessed", err: errors.New(`ent: missing required field "accessed"`)}
}
return nil
}
func (gfmc *GinFileMiddlewareCreate) sqlSave(ctx context.Context) (*GinFileMiddleware, error) {
_node, _spec := gfmc.createSpec()
if err := sqlgraph.CreateNode(ctx, gfmc.driver, _spec); err != nil {
if sqlgraph.IsConstraintError(err) {
err = &ConstraintError{err.Error(), err}
}
return nil, err
}
if _spec.ID.Value != nil {
_node.ID = _spec.ID.Value.(uuid.UUID)
}
return _node, nil
}
func (gfmc *GinFileMiddlewareCreate) createSpec() (*GinFileMiddleware, *sqlgraph.CreateSpec) {
var (
_node = &GinFileMiddleware{config: gfmc.config}
_spec = &sqlgraph.CreateSpec{
Table: ginfilemiddleware.Table,
ID: &sqlgraph.FieldSpec{
Type: field.TypeUUID,
Column: ginfilemiddleware.FieldID,
},
}
)
if id, ok := gfmc.mutation.ID(); ok {
_node.ID = id
_spec.ID.Value = id
}
if value, ok := gfmc.mutation.URLID(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeString,
Value: value,
Column: ginfilemiddleware.FieldURLID,
})
_node.URLID = value
}
if value, ok := gfmc.mutation.FilePath(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeString,
Value: value,
Column: ginfilemiddleware.FieldFilePath,
})
_node.FilePath = value
}
if value, ok := gfmc.mutation.Accessed(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeBool,
Value: value,
Column: ginfilemiddleware.FieldAccessed,
})
_node.Accessed = value
}
if nodes := gfmc.mutation.GinFileMiddlewareToProvisionedHostIDs(); len(nodes) > 0 {
edge := &sqlgraph.EdgeSpec{
Rel: sqlgraph.O2O,
Inverse: false,
Table: ginfilemiddleware.GinFileMiddlewareToProvisionedHostTable,
Columns: []string{ginfilemiddleware.GinFileMiddlewareToProvisionedHostColumn},
Bidi: false,
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeUUID,
Column: provisionedhost.FieldID,
},
},
}
for _, k := range nodes {
edge.Target.Nodes = append(edge.Target.Nodes, k)
}
_spec.Edges = append(_spec.Edges, edge)
}
if nodes := gfmc.mutation.GinFileMiddlewareToProvisioningStepIDs(); len(nodes) > 0 {
edge := &sqlgraph.EdgeSpec{
Rel: sqlgraph.O2O,
Inverse: false,
Table: ginfilemiddleware.GinFileMiddlewareToProvisioningStepTable,
Columns: []string{ginfilemiddleware.GinFileMiddlewareToProvisioningStepColumn},
Bidi: false,
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeUUID,
Column: provisioningstep.FieldID,
},
},
}
for _, k := range nodes {
edge.Target.Nodes = append(edge.Target.Nodes, k)
}
_spec.Edges = append(_spec.Edges, edge)
}
return _node, _spec
}
// GinFileMiddlewareCreateBulk is the builder for creating many GinFileMiddleware entities in bulk.
type GinFileMiddlewareCreateBulk struct {
config
builders []*GinFileMiddlewareCreate
}
// Save creates the GinFileMiddleware entities in the database.
func (gfmcb *GinFileMiddlewareCreateBulk) Save(ctx context.Context) ([]*GinFileMiddleware, error) {
specs := make([]*sqlgraph.CreateSpec, len(gfmcb.builders))
nodes := make([]*GinFileMiddleware, len(gfmcb.builders))
mutators := make([]Mutator, len(gfmcb.builders))
for i := range gfmcb.builders {
func(i int, root context.Context) {
builder := gfmcb.builders[i]
builder.defaults()
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutation, ok := m.(*GinFileMiddlewareMutation)
if !ok {
return nil, fmt.Errorf("unexpected mutation type %T", m)
}
if err := builder.check(); err != nil {
return nil, err
}
builder.mutation = mutation
nodes[i], specs[i] = builder.createSpec()
var err error
if i < len(mutators)-1 {
_, err = mutators[i+1].Mutate(root, gfmcb.builders[i+1].mutation)
} else {
spec := &sqlgraph.BatchCreateSpec{Nodes: specs}
// Invoke the actual operation on the latest mutation in the chain.
if err = sqlgraph.BatchCreate(ctx, gfmcb.driver, spec); err != nil {
if sqlgraph.IsConstraintError(err) {
err = &ConstraintError{err.Error(), err}
}
}
}
if err != nil {
return nil, err
}
mutation.id = &nodes[i].ID
mutation.done = true
return nodes[i], nil
})
for i := len(builder.hooks) - 1; i >= 0; i-- {
mut = builder.hooks[i](mut)
}
mutators[i] = mut
}(i, ctx)
}
if len(mutators) > 0 {
if _, err := mutators[0].Mutate(ctx, gfmcb.builders[0].mutation); err != nil {
return nil, err
}
}
return nodes, nil
}
// SaveX is like Save, but panics if an error occurs.
func (gfmcb *GinFileMiddlewareCreateBulk) SaveX(ctx context.Context) []*GinFileMiddleware {
v, err := gfmcb.Save(ctx)
if err != nil {
panic(err)
}
return v
}
// Exec executes the query.
func (gfmcb *GinFileMiddlewareCreateBulk) Exec(ctx context.Context) error {
_, err := gfmcb.Save(ctx)
return err
}
// ExecX is like Exec, but panics if an error occurs.
func (gfmcb *GinFileMiddlewareCreateBulk) ExecX(ctx context.Context) {
if err := gfmcb.Exec(ctx); err != nil {
panic(err)
}
}
|
gpl-3.0
|
Tradeshift/junit-remote
|
src/main/java/com/tradeshift/test/remote/internal/RedirectingStream.java
|
1372
|
/**
* junit-remote
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see http://www.gnu.org/licenses/.
*
* @author Tradeshift - http://www.tradeshift.com
*/
package com.tradeshift.test.remote.internal;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class RedirectingStream extends OutputStream {
private final PrintStream delegate;
private OutputStream redirector;
public RedirectingStream(PrintStream delegate) {
this.delegate = delegate;
}
@Override
public void write(int b) throws IOException {
delegate.write(b);
if (redirector != null) {
redirector.write(b);
}
}
public void setRedirector(OutputStream redirector) {
this.redirector = redirector;
}
}
|
gpl-3.0
|
potty-dzmeia/db4o
|
src/db4oj.tests/src/com/db4o/db4ounit/common/assorted/TransientCloneTestCase.java
|
3796
|
/* This file is part of the db4o object database http://www.db4o.com
Copyright (C) 2004 - 2011 Versant Corporation http://www.versant.com
db4o is free software; you can redistribute it and/or modify it under
the terms of version 3 of the GNU General Public License as published
by the Free Software Foundation.
db4o 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 this program. If not, see http://www.gnu.org/licenses/. */
package com.db4o.db4ounit.common.assorted;
import java.util.*;
import com.db4o.ext.*;
import db4ounit.*;
import db4ounit.extensions.*;
@decaf.Remove(decaf.Platform.JDK11)
public class TransientCloneTestCase extends AbstractDb4oTestCase {
public static class Item {
public List list;
public Hashtable ht;
public String str;
public int myInt;
public Molecule[] molecules;
}
@Override
protected void store() throws Exception {
Item item = new Item();
item.list = new ArrayList();
item.list.add(new Atom("listAtom"));
item.list.add(item);
item.ht = new Hashtable();
item.ht.put("htc", new Molecule("htAtom"));
item.ht.put("recurse", item);
item.str = "str";
item.myInt = 100;
item.molecules = new Molecule[3];
for (int i = 0; i < item.molecules.length; i++) {
item.molecules[i] = new Molecule("arr" + i);
item.molecules[i].child = new Atom("arr" + i);
item.molecules[i].child.child = new Atom("arrc" + i);
}
store(item);
}
public void test() {
final Item item = retrieveOnlyInstance(Item.class);
db().activate(item, Integer.MAX_VALUE);
Item originalValues = peekPersisted(false);
cmp(item, originalValues);
db().deactivate(item, Integer.MAX_VALUE);
Item modified = peekPersisted(false);
cmp(originalValues, modified);
db().activate(item, Integer.MAX_VALUE);
modified.str = "changed";
modified.molecules[0].name = "changed";
item.str = "changed";
item.molecules[0].name = "changed";
db().store(item.molecules[0]);
db().store(item);
Item tc = peekPersisted(true);
cmp(originalValues, tc);
tc = peekPersisted(false);
cmp(modified, tc);
db().commit();
tc = peekPersisted(true);
cmp(modified, tc);
}
private void cmp(Item to, Item tc) {
Assert.isTrue(tc != to);
Assert.isTrue(tc.list != to);
Assert.isTrue(tc.list.size() == to.list.size());
Iterator i = tc.list.iterator();
Atom tca = next(i);
Iterator j = to.list.iterator();
Atom tct = next(j);
Assert.isTrue(tca != tct);
Assert.isTrue(tca.name.equals(tct.name));
Assert.areSame(next(i), tc);
Assert.areSame(next(j), to);
Assert.isTrue(tc.ht != to.ht);
Molecule tcm = (Molecule) tc.ht.get("htc");
Molecule tom = (Molecule) to.ht.get("htc");
Assert.isTrue(tcm != tom);
Assert.isTrue(tcm.name.equals(tom.name));
Assert.areSame(tc.ht.get("recurse"), tc);
Assert.areSame(to.ht.get("recurse"), to);
Assert.areEqual(to.str, tc.str);
Assert.isTrue(tc.str.equals(to.str));
Assert.isTrue(tc.myInt == to.myInt);
Assert.isTrue(tc.molecules.length == to.molecules.length);
Assert.isTrue(tc.molecules.length == to.molecules.length);
tcm = tc.molecules[0];
tom = to.molecules[0];
Assert.isTrue(tcm != tom);
Assert.isTrue(tcm.name.equals(tom.name));
Assert.isTrue(tcm.child != tom.child);
Assert.isTrue(tcm.child.name.equals(tom.child.name));
}
private <T> T next (Iterator i) {
Assert.isTrue(i.hasNext());
return (T)i.next();
}
private Item peekPersisted(boolean committed) {
ExtObjectContainer oc = db();
return oc.peekPersisted(retrieveOnlyInstance(Item.class), Integer.MAX_VALUE, committed);
}
}
|
gpl-3.0
|
reneederer/1920Parser
|
1920Parser/html/index.html
|
3422
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>1920Parser: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">1920Parser
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">1920Parser Documentation</div> </div>
</div><!--header-->
<div class="contents">
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
|
gpl-3.0
|
itachi1706/Applied-Energistics-2
|
src/main/java/appeng/server/subcommands/ChunkLogger.java
|
2932
|
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
package appeng.server.subcommands;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.ChunkEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import appeng.core.AEConfig;
import appeng.core.AELog;
import appeng.core.features.AEFeature;
import appeng.server.ISubCommand;
public class ChunkLogger implements ISubCommand
{
private boolean enabled = false;
@SubscribeEvent
public void onChunkLoadEvent( final ChunkEvent.Load event )
{
if( !event.world.isRemote )
{
AELog.info( "Chunk Loaded: " + event.getChunk().xPosition + ", " + event.getChunk().zPosition );
this.displayStack();
}
}
private void displayStack()
{
if( AEConfig.instance.isFeatureEnabled( AEFeature.ChunkLoggerTrace ) )
{
boolean output = false;
for( final StackTraceElement e : Thread.currentThread().getStackTrace() )
{
if( output )
{
AELog.info( " " + e.getClassName() + '.' + e.getMethodName() + " (" + e.getLineNumber() + ')' );
}
else
{
output = e.getClassName().contains( "EventBus" ) && e.getMethodName().contains( "post" );
}
}
}
}
@SubscribeEvent
public void onChunkUnloadEvent( final ChunkEvent.Unload unload )
{
if( !unload.world.isRemote )
{
AELog.info( "Chunk Unloaded: " + unload.getChunk().xPosition + ", " + unload.getChunk().zPosition );
this.displayStack();
}
}
@Override
public String getHelp( final MinecraftServer srv )
{
return "commands.ae2.ChunkLogger";
}
@Override
public void call( final MinecraftServer srv, final String[] data, final ICommandSender sender )
{
this.enabled = !this.enabled;
if( this.enabled )
{
MinecraftForge.EVENT_BUS.register( this );
sender.addChatMessage( new ChatComponentTranslation( "commands.ae2.ChunkLoggerOn" ) );
}
else
{
MinecraftForge.EVENT_BUS.unregister( this );
sender.addChatMessage( new ChatComponentTranslation( "commands.ae2.ChunkLoggerOff" ) );
}
}
}
|
gpl-3.0
|
campisano/pgmodeler
|
plugins/code_generator/src/code_generator_widget.cpp
|
2090
|
#include "code_generator_widget.h"
#include <iostream>
#include <fstream>
#include <map>
#include <string>
CodeGeneratorWidget::CodeGeneratorWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent,f)
{
setupUi(this);
code_hl=new SyntaxHighlighter(code_txt);
code_hl->loadConfiguration(GlobalAttributes::XML_HIGHLIGHT_CONF_PATH);
connect(close_btn, SIGNAL(clicked(void)), this, SLOT(close(void)));
connect(clear_btn, SIGNAL(clicked(void)), this, SLOT(doClearCode(void)));
connect(generate_btn, SIGNAL(clicked(void)), this, SLOT(doGenerateCode(void)));
this->generator = 0;
}
void CodeGeneratorWidget::setGenerator(BaseCodeGenerator *generator)
{
this->generator = generator;
}
void CodeGeneratorWidget::show(DatabaseModel *model, OperationList *op_list)
{
doClearCode();
this->setEnabled(model!=nullptr && op_list!=nullptr);
this->op_list = op_list;
this->model = model;
QDialog::show();
}
void CodeGeneratorWidget::doClearCode(void)
{
code_txt->setPlainText(QString("Ready.."));
}
void CodeGeneratorWidget::doGenerateCode(void)
{
std::map< std::string, std::string > files_to_generate;
std::map< std::string, std::string >::iterator it;
try
{
if(!op_list->isOperationChainStarted())
op_list->startOperationChain();
this->generator->generateCode(*model, *this, files_to_generate);
for(it = files_to_generate.begin(); it != files_to_generate.end(); ++it)
{
std::ofstream out_file("/tmp/" + it->first);
out_file << it->second;
out_file.close();
}
op_list->finishOperationChain();
}
catch(Exception &e)
{
if(op_list->isOperationChainStarted())
op_list->finishOperationChain();
op_list->undoOperation();
op_list->removeLastOperation();
throw Exception(e.getErrorMessage(), e.getErrorType(),__PRETTY_FUNCTION__,__FILE__,__LINE__, &e);
}
}
void CodeGeneratorWidget::log(std::string text)
{
code_txt->setPlainText(QString::fromStdString(text));
}
|
gpl-3.0
|
lbernau/smartVISU-deprecated
|
driver/io_smarthome.py.js
|
5820
|
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
/**
* Class for controlling all communication with a connected system. There are
* simple I/O functions, and complex functions for real-time values.
*/
var io = {
// the adress
adress: '',
// the port
port: '',
// -----------------------------------------------------------------------------
// P U B L I C F U N C T I O N S
// -----------------------------------------------------------------------------
/**
* Does a read-request and adds the result to the buffer
*
* @param the item
*/
read: function (item) {
},
/**
* Does a write-request with a value
*
* @param the item
* @param the value
*/
write: function (item, val) {
io.send({'cmd': 'item', 'id': item, 'val': val});
widget.update(item, val);
},
/**
* Trigger a logic
*
* @param the logic
* @param the value
*/
trigger: function (name, val) {
io.send({'cmd': 'logic', 'name': name, 'val': val});
},
/**
* Initializion of the driver
*
* @param the ip or url to the system (optional)
* @param the port on which the connection should be made (optional)
*/
init: function (address, port) {
io.address = address;
io.port = port;
io.open();
},
/**
* Lets the driver work
*/
run: function (realtime) {
// old items
widget.refresh();
// new items
io.monitor();
},
// -----------------------------------------------------------------------------
// C O M M U N I C A T I O N F U N C T I O N S
// -----------------------------------------------------------------------------
// The functions in this paragraph may be changed. They are all private and are
// only be called from the public functions above. You may add or delete some
// to fit your requirements and your connected system.
/**
* This driver version
*/
version: 3,
/**
* This driver uses a websocket
*/
socket: false,
/**
* Opens the connection and add some handlers
*/
open: function () {
io.socket = new WebSocket('ws://' + io.address + ':' + io.port + '/');
io.socket.onopen = function () {
io.send({'cmd': 'proto', 'ver': io.version});
io.monitor();
};
io.socket.onmessage = function (event) {
var item, val;
var data = JSON.parse(event.data);
// DEBUG:
console.log("[io.smarthome.py] receiving data: ", event.data);
switch (data.cmd) {
case 'item':
for (var i = 0; i < data.items.length; i++) {
item = data.items[i][0];
val = data.items[i][1];
/* not supported:
if (data.items[i].length > 2) {
data.p[i][2] options for visu
};
*/
// convert binary
if (val === false) {
val = 0;
}
if (val === true) {
val = 1;
}
widget.update(item, val);
}
break;
case 'series':
data.sid = data.sid.substr(0, data.sid.length);
widget.update(data.sid.replace(/\|/g, '\.'), data.series);
break;
case 'dialog':
notify.info(data.header, data.content);
break;
case 'log':
if (data.init) {
widget.update(data.name, data.log);
}
else {
var log = widget.get(data.name); // only a reference
for (var i = 0; i < data.log.length; i++) {
log.unshift(data.log[i]);
if (log.length >= 50) {
log.pop();
}
}
widget.update(data.name);
}
break;
case 'proto':
var proto = parseInt(data.ver);
if (proto != io.version) {
notify.warning('Driver: smarthome.py', 'Protocol mismatch<br />smartVISU driver is: v' + io.version + '<br />SmartHome.py is: v' + proto + '<br /><br /> Update the system!');
}
break;
case 'url':
$.mobile.changePage(data.url);
break;
}
};
io.socket.onerror = function (error) {
notify.error('Driver: smarthome.py', 'Could not connect to smarthome.py server!<br /> Websocket error ' + error.data + '.');
};
io.socket.onclose = function () {
notify.debug('Driver: smarthome.py', 'Connection closed to smarthome.py server!');
};
},
/**
* Sends data to the connected system
*/
send: function (data) {
if (io.socket.readyState == 1) {
io.socket.send(unescape(encodeURIComponent(JSON.stringify(data))));
// DEBUG:
console.log('[io.smarthome.py] sending data: ', JSON.stringify(data));
}
},
/**
* Monitors the items
*/
monitor: function () {
if (widget.listeners().length) {
// items
io.send({'cmd': 'monitor', 'items': widget.listeners()});
}
// plot (avg, min, max, on)
var unique = Array();
widget.plot().each(function (idx) {
var items = widget.explode($(this).attr('data-item'));
for (var i = 0; i < items.length; i++) {
var pt = items[i].split('.');
if (!unique[items[i]] && !widget.get(items[i]) && (pt instanceof Array) && widget.checkseries(items[i])) {
var item = items[i].substr(0, items[i].length - 4 - pt[pt.length - 4].length - pt[pt.length - 3].length - pt[pt.length - 2].length - pt[pt.length - 1].length);
io.send({'cmd': 'series', 'item': item, 'series': pt[pt.length - 4], 'start': pt[pt.length - 3], 'count': pt[pt.length - 1]});
unique[items[i]] = 1;
}
}
});
// log
widget.log().each(function (idx) {
io.send({'cmd': 'log', 'name': $(this).attr('data-item'), 'max': $(this).attr('data-count')});
});
},
/**
* Closes the connection
*/
close: function () {
console.log("[io.smarthome.py] close connection");
if (io.socket.readyState > 0) {
io.socket.close();
}
io.socket = null;
}
};
|
gpl-3.0
|
DJVUpp/Desktop
|
djuvpp-djvureader-_linux-f9cd57d25c2f/DjVuReader++/src/com/newgroup/tabs/event/TabAddedEvent.java
|
1427
|
/*
Copyright 2012 James Edwards
This file is part of Jhrome.
Jhrome is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jhrome 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Jhrome. If not, see <http://www.gnu.org/licenses/>.
*/
package com.newgroup.tabs.event;
import com.newgroup.tabs.Tab;
import javax.swing.JTabbedPane;
public class TabAddedEvent extends TabbedPaneEvent
{
public TabAddedEvent( JTabbedPane tabbedPane , long timestamp , Tab addedTab , int insertIndex )
{
super( tabbedPane , timestamp );
this.addedTab = addedTab;
this.insertIndex = insertIndex;
}
public final Tab addedTab;
public final int insertIndex;
public Tab getAddedTab( )
{
return addedTab;
}
public int getInsertIndex( )
{
return insertIndex;
}
@Override
public String toString( )
{
return String.format( "%s[tabbedPane: %s, timestamp: %d, addedTab: %s, insertIndex: %d]" , getClass( ).getName( ) , tabbedPane , timestamp , addedTab , insertIndex );
}
}
|
gpl-3.0
|
mydlp/mydlp
|
src/schema/diffs/2.0.48-1___mydlp___p001.sql
|
80
|
ALTER TABLE DocumentDatabase_DocumentDatabaseFileEntry DROP KEY fileEntries_id;
|
gpl-3.0
|
pasoev/darband
|
css/styles.css
|
335
|
body {
background-color: #000;
}
h1 {
color: gold;
}
.flip {
-moz-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);
display: inline-block;
color: #CCBF33;
}
#game {
width: 100%;
text-align: center;
}
canvas {
margin: 10px auto;
}
|
gpl-3.0
|
malept/gmusicprocurator
|
docs/conf.py
|
12282
|
# -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import json
import os
import re
import sys
THIS_DIR = os.path.abspath('.')
BASE_DIR = os.path.abspath('..')
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, BASE_DIR)
bower_metadata = json.load(open(os.path.join(BASE_DIR, 'bower.json')))
npm_metadata = json.load(open(os.path.join(BASE_DIR, 'package.json')))
def setup(app):
app.add_config_value('readthedocs', False, True)
readthedocs = os.environ.get('READTHEDOCS') == 'True'
if readthedocs:
os.environ['GMUSICPROCURATOR_SETTINGS'] = 'default_settings.py'
# -- General configuration ----------------------------------------------------
AUTHORS = u', '.join(bower_metadata['authors'])
TITLE = u'GMusicProcurator'
LONG_TITLE = u'{0} Documentation'.format(TITLE)
SUMMARY = bower_metadata['description']
SHORT_COPYRIGHT = u'2014, {0}. Some Rights Reserved.'.format(AUTHORS)
COPYRIGHT = u'''{0}
This work is licensed under a
Creative Commons Attribution-ShareAlike 4.0
International License'''.format(SHORT_COPYRIGHT)
# If your documentation needs a minimal Sphinx version, state it here.
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.ifconfig',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
'sphinxcontrib.autohttp.flask',
]
if not readthedocs:
extensions += [
'sphinxcontrib.coffeedomain',
]
try:
import rst2pdf
except ImportError:
rst2pdf = None
if rst2pdf:
extensions.append('rst2pdf.pdfbuilder')
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The encoding of source files.
# source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = TITLE
copyright = COPYRIGHT
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = re.match(r'\d+\.\d+', npm_metadata['version']).group(0)
# The full version, including alpha/beta/rc tags.
release = npm_metadata['version']
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
# today = ''
# Else, today_fmt is used as the format for a strftime call.
# today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
if readthedocs:
exclude_patterns += [
'coffeescript.rst',
]
# The reST default role (used for this markup: `text`) to use for all
# documents.
# default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = False
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
# add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
show_authors = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
# keep_warnings = False
# intersphinx extension
intersphinx_mapping = {
'py': ('http://docs.python.org/2.7/', None)
}
mdn_inv = os.path.join(THIS_DIR, 'mdn-js-objects.inv')
bb_inv = os.path.join(THIS_DIR, 'backbone.inv')
if not readthedocs:
if os.path.exists(mdn_inv):
mdn = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/'
intersphinx_mapping['js'] = (mdn, mdn_inv)
if os.path.exists(bb_inv):
intersphinx_mapping['backbone'] = ('http://backbonejs.org/', bb_inv)
# coffeedomain extension
coffee_src_dir = os.path.join(BASE_DIR, 'gmusicprocurator', 'static', 'cs')
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
# html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
# html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
# html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
# html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
# html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
# html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**': [
'localtoc.html',
'relations.html',
'sourcelink.html',
'searchbox.html',
'copyright_sidebar.html',
],
}
# Additional templates that should be rendered to pages, maps page names to
# template names.
# html_additional_pages = {}
# If false, no module index is generated.
# html_domain_indices = True
# If false, no index is generated.
# html_use_index = True
# If true, the index is split into individual pages for each letter.
# html_split_index = False
# If true, links to the reST sources are added to the pages.
# html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
# html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
# html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
# html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
# html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'GMusicProcuratordoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# 'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'GMusicProcurator.tex', LONG_TITLE, AUTHORS, 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
# latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
# latex_use_parts = False
# If true, show page references after internal links.
# latex_show_pagerefs = False
# If true, show URL addresses after external links.
# latex_show_urls = False
# Documents to append as an appendix to all manuals.
# latex_appendices = []
# If false, no module index is generated.
# latex_domain_indices = True
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'gmusicprocurator', LONG_TITLE, [AUTHORS], 1)
]
# If true, show URL addresses after external links.
# man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'GMusicProcurator', LONG_TITLE, AUTHORS,
'GMusicProcurator', SUMMARY, 'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
# texinfo_appendices = []
# If false, no module index is generated.
# texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
# texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
# texinfo_no_detailmenu = False
# -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info.
epub_title = TITLE
epub_author = AUTHORS
epub_publisher = AUTHORS
epub_copyright = COPYRIGHT
# The basename for the epub file. It defaults to the project name.
# epub_basename = TITLE
# The HTML theme for the epub output. Since the default themes are not
# optimized for small screen space, using the same theme for HTML and epub
# output is usually not wise. This defaults to 'epub', a theme designed to
# save visual space.
# epub_theme = 'epub'
# The language of the text. It defaults to the language option
# or en if the language is not set.
# epub_language = ''
# The scheme of the identifier. Typical schemes are ISBN or URL.
# epub_scheme = ''
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
# epub_identifier = ''
# A unique identification for the text.
# epub_uid = ''
# A tuple containing the cover image and cover page html template filenames.
# epub_cover = ()
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
# epub_guide = ()
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.
# epub_pre_files = []
# HTML files shat should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
# epub_post_files = []
# A list of files that should not be packed into the epub file.
# epub_exclude_files = []
# The depth of the table of contents in toc.ncx.
# epub_tocdepth = 3
# Allow duplicate toc entries.
# epub_tocdup = True
# Choose between 'default' and 'includehidden'.
# epub_tocscope = 'default'
# Fix unsupported image types using the PIL.
# epub_fix_images = False
# Scale large images.
# epub_max_image_width = 0
# How to display URL addresses: 'footnote', 'no', or 'inline'.
# epub_show_urls = 'inline'
# If false, no index is generated.
# epub_use_index = True
# -- Options for PDF output --------------------------------------------------
pdf_documents = [
('index', u'gmusicprocurator', TITLE, AUTHORS),
]
|
gpl-3.0
|
intelaligent/tctb
|
docs/pages/tut0/t0_1.md
|
561
|
---
title: "A Beginner's Guide to SUMO"
keywords: tutorial
sidebar: t0_sidebar
toc: false
simple_map: true
map_name: map_tut0
permalink: t0_1.html
folder: tut0
---
## Introduction to SUMO
- A short introduction to SUMO;
- Programme requirements;
- An introduction to necessary input files for model building in SUMO;
- Case study: a simple plain road model.
<script async class="speakerdeck-embed" data-id="aaa1ec96250a4a5ea0aa65e5cc525333" data-ratio="1.77777777777778" src="//speakerdeck.com/assets/embed.js"></script>
## Videos
*Videos will be added*
|
gpl-3.0
|
Aaahh/lakka-website
|
layouts/partials/menu.html
|
605
|
<div id="menubar">
<h1><a href="/"><img src="/images/lakka-logo.png" alt="Lakka's logo, represent a berry : the cloudberry" /></a></h1>
<nav>
<ul>
<li><%= link_to 'Get', '/get' %></li>
<li><%= link_to 'News', '/articles' %></li>
<li><%= link_to 'Forum', 'http://libretro.com/forums/forums/26-Lakka-TV-General' %></li>
<li><%= link_to 'FAQ', '/doc/FAQ' %></li>
<li><%= link_to 'Documentation', '/doc/Home' %></li>
<li><%= link_to 'About', '/about' %></li>
<li><%= link_to 'Contact', '/contact' %></li>
</ul>
</nav>
</div>
|
gpl-3.0
|
mu-editor/mu
|
make.py
|
12681
|
#!python3
import os
import sys
import fnmatch
import re
import shutil
import subprocess
PYTEST = "pytest"
FLAKE8 = "flake8"
BLACK = "black"
BLACK_FLAGS = ["-l", "79"]
PYGETTEXT = os.path.join(sys.base_prefix, "tools", "i18n", "pygettext.py")
INCLUDE_PATTERNS = {"*.py"}
EXCLUDE_PATTERNS = {
"build/*",
"docs/*",
"mu/contrib/*",
"mu/modes/api/*",
"utils/*",
}
_exported = {}
def _walk(
start_from=".", include_patterns=None, exclude_patterns=None, recurse=True
):
if include_patterns:
_include_patterns = set(os.path.normpath(p) for p in include_patterns)
else:
_include_patterns = set()
if exclude_patterns:
_exclude_patterns = set(os.path.normpath(p) for p in exclude_patterns)
else:
_exclude_patterns = set()
for dirpath, dirnames, filenames in os.walk(start_from):
for filename in filenames:
filepath = os.path.normpath(os.path.join(dirpath, filename))
if not any(
fnmatch.fnmatch(filepath, pattern)
for pattern in _include_patterns
):
continue
if any(
fnmatch.fnmatch(filepath, pattern)
for pattern in _exclude_patterns
):
continue
yield filepath
if not recurse:
break
def _rmtree(dirpath, cascade_errors=False):
try:
shutil.rmtree(dirpath)
except OSError:
if cascade_errors:
raise
def _rmfiles(start_from, pattern):
"""Remove files from a directory and its descendants
Starting from `start_from` directory and working downwards,
remove all files which match `pattern`, eg *.pyc
"""
for filepath in _walk(start_from, {pattern}):
os.remove(filepath)
def export(function):
"""Decorator to tag certain functions as exported, meaning
that they show up as a command, with arguments, when this
file is run.
"""
_exported[function.__name__] = function
return function
@export
def test(*pytest_args):
"""Run the test suite
Call py.test to run the test suite with additional args.
The subprocess runner will raise an exception if py.test exits
with a failure value. This forces things to stop if tests fail.
"""
print("\ntest")
os.environ["LANG"] = "en_GB.utf8"
return subprocess.run(
[sys.executable, "-m", PYTEST] + list(pytest_args)
).returncode
@export
def coverage():
"""View a report on test coverage
Call py.test with coverage turned on
"""
print("\ncoverage")
os.environ["LANG"] = "en_GB.utf8"
return subprocess.run(
[
sys.executable,
"-m",
PYTEST,
"-v",
"--cov-config",
".coveragerc",
"--cov-report",
"term-missing",
"--cov=mu",
"tests/",
]
).returncode
@export
def flake8(*flake8_args):
"""Run the flake8 code checker
Call flake8 on all files as specified by setup.cfg
"""
print("\nflake8")
os.environ["PYFLAKES_BUILTINS"] = "_"
return subprocess.run([sys.executable, "-m", FLAKE8]).returncode
@export
def tidy():
"""Tidy code with the 'black' formatter."""
clean()
print("\nTidy")
for target in [
"setup.py",
"make.py",
"mu",
"package",
"tests",
"utils",
]:
return_code = subprocess.run(
[sys.executable, "-m", BLACK, target] + BLACK_FLAGS
).returncode
if return_code != 0:
return return_code
return 0
@export
def black():
"""Check code with the 'black' formatter."""
clean()
print("\nblack")
# Black is no available in Python 3.5, in that case let the tests continue
try:
import black as black_ # noqa: F401
except ImportError as e:
python_version = sys.version_info
if python_version.major == 3 and python_version.minor == 5:
print("Black checks are not available in Python 3.5.")
return 0
else:
print(e)
return 1
for target in [
"setup.py",
"make.py",
"mu",
"package",
"tests",
"utils",
]:
return_code = subprocess.run(
[sys.executable, "-m", BLACK, target, "--check"] + BLACK_FLAGS
).returncode
if return_code != 0:
return return_code
return 0
@export
def check():
"""Run all the checkers and tests"""
print("\nCheck")
funcs = [clean, black, flake8, coverage]
for func in funcs:
return_code = func()
if return_code != 0:
return return_code
return 0
@export
def clean():
"""Reset the project and remove auto-generated assets"""
print("\nClean")
_rmtree("build")
_rmtree("dist")
_rmtree(".eggs")
_rmtree("docs/_build")
_rmtree(".pytest_cache")
_rmtree("lib")
_rmtree(".git/avatar/") # Created with `make video`
_rmtree("venv-pup") # Created wth `make macos/win64`
# TODO: recursive __pycache__ directories
_rmfiles(".", ".coverage")
_rmfiles(".", "*.egg-info")
_rmfiles(".", "*.mp4") # Created with `make video`
_rmfiles(".", "*.pyc")
_rmfiles("mu/locale", "*.pot")
_rmfiles("mu/wheels", "*.zip")
return 0
def _translate_lang(lang):
"""Returns `value` from `lang` expected to be like 'LANG=value'."""
match = re.search(r"^LANG=(.*)$", lang)
if not match:
raise RuntimeError("Need LANG=xx_XX argument.")
value = match.group(1)
if not value:
raise RuntimeError("Need LANG=xx_XX argument.")
return value
_MU_LOCALE_DIRNAME = os.path.join("mu", "locale")
_MESSAGES_POT_FILENAME = os.path.join(_MU_LOCALE_DIRNAME, "messages.pot")
@export
def translate_begin(lang=""):
"""Create/update a mu.po file for translation."""
lang = _translate_lang(lang)
result = _translate_extract()
if result != 0:
raise RuntimeError("Failed creating the messages catalog file.")
mu_po_filename = os.path.join(
_MU_LOCALE_DIRNAME,
lang,
"LC_MESSAGES",
"mu.po",
)
update = os.path.exists(mu_po_filename)
cmd = [
"pybabel",
"update" if update else "init",
"-i",
_MESSAGES_POT_FILENAME,
"-o",
mu_po_filename,
"--locale={locale}".format(locale=lang),
]
result = subprocess.run(cmd).returncode
print(
"{action} {mu_po_filename}.".format(
action="Updated" if update else "Created",
mu_po_filename=repr(mu_po_filename),
)
)
print(
"Review its translation strings "
"and finalize with 'make translate_done'."
)
return result
_TRANSLATE_IGNORE_DIRNAMES = {
os.path.join("mu", "modes", "api"),
os.path.join("mu", "contrib"),
}
def _translate_ignore(dirname):
"""Return True if `dirname` files should be excluded from translation."""
return any(dirname.startswith(dn) for dn in _TRANSLATE_IGNORE_DIRNAMES)
def _translate_filenames():
"""Returns a sorted list of filenames with translatable strings."""
py_filenames = []
for dirname, _, filenames in os.walk("mu"):
if _translate_ignore(dirname):
continue
py_filenames.extend(
os.path.join(dirname, fn) for fn in filenames if fn.endswith(".py")
)
return sorted(py_filenames)
def _translate_extract():
"""Creates the message catalog template messages.pot file."""
cmd = [
"pybabel",
"extract",
"-o",
_MESSAGES_POT_FILENAME,
*_translate_filenames(),
]
return subprocess.run(cmd).returncode
@export
def translate_done(lang=""):
"""Compile translation strings in mu.po to mu.mo file."""
lang = _translate_lang(lang)
lc_messages_dirname = os.path.join(
_MU_LOCALE_DIRNAME,
lang,
"LC_MESSAGES",
)
mu_po_filename = os.path.join(lc_messages_dirname, "mu.po")
mu_mo_filename = os.path.join(lc_messages_dirname, "mu.mo")
cmd = [
"pybabel",
"compile",
"-i",
mu_po_filename,
"-o",
mu_mo_filename,
"--locale={locale}".format(locale=lang),
]
return subprocess.run(cmd).returncode
@export
def translate_test(lang=""):
"""Run translate_done and lauch Mu in the given LANG."""
result = translate_done(lang)
if result != 0:
raise RuntimeError("Failed compiling the mu.po file.")
local_env = dict(os.environ)
local_env["LANG"] = _translate_lang(lang)
return subprocess.run(
[sys.executable, "-m", "mu"], env=local_env
).returncode
@export
def run():
"""Run Mu from within a virtual environment"""
clean()
if not os.environ.get("VIRTUAL_ENV"):
raise RuntimeError(
"Cannot run Mu;" "your Python virtualenv is not activated"
)
return subprocess.run([sys.executable, "-m", "mu"]).returncode
@export
def dist():
"""Generate a source distribution and a binary wheel"""
if check() != 0:
raise RuntimeError("Check failed")
print("Checks pass; good to package")
return subprocess.run(
[sys.executable, "setup.py", "sdist", "bdist_wheel"]
).returncode
@export
def publish_test():
"""Upload to a test PyPI"""
dist()
print("Packaging complete; upload to PyPI")
return subprocess.run(
[
sys.executable,
"-m",
"twine",
"upload",
"-r",
"test",
"--sign",
"dist/*",
]
).returncode
@export
def publish_live():
"""Upload to PyPI"""
dist()
print("Packaging complete; upload to PyPI")
return subprocess.run(
[sys.executable, "-m", "twine", "upload", "--sign", "dist/*"]
).returncode
_PUP_PBS_URLs = {
32: "https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.7.9-i686-pc-windows-msvc-shared-pgo-20200823T0159.tar.zst", # noqa: E501
64: None,
}
def _build_windows_msi(bitness=64):
"""Build Windows MSI installer"""
try:
pup_pbs_url = _PUP_PBS_URLs[bitness]
except KeyError:
raise ValueError("bitness") from None
if check() != 0:
raise RuntimeError("Check failed")
print("Fetching wheels")
subprocess.check_call([sys.executable, "-m", "mu.wheels"])
print("Building {}-bit Windows installer".format(bitness))
if pup_pbs_url:
os.environ["PUP_PBS_URL"] = pup_pbs_url
cmd_sequence = (
[sys.executable, "-m", "virtualenv", "venv-pup"],
["./venv-pup/Scripts/pip.exe", "install", "pup"],
[
"./venv-pup/Scripts/pup.exe",
"package",
"--launch-module=mu",
"--nice-name=Mu Editor",
"--icon-path=./package/icons/win_icon.ico",
"--license-path=./LICENSE",
".",
],
["cmd.exe", "/c", "dir", r".\dist"],
)
try:
for cmd in cmd_sequence:
print("Running:", " ".join(cmd))
subprocess.check_call(cmd)
finally:
shutil.rmtree("./venv-pup", ignore_errors=True)
@export
def win32():
"""Build 32-bit Windows installer"""
_build_windows_msi(bitness=32)
@export
def win64():
"""Build 64-bit Windows installer"""
_build_windows_msi(bitness=64)
@export
def docs():
"""Build the docs"""
cwd = os.getcwd()
os.chdir("docs")
if os.name == "nt":
cmds = ["cmd", "/c", "make.bat", "html"]
else:
cmds = ["make", "html"]
try:
return subprocess.run(cmds).returncode
except Exception:
return 1
finally:
os.chdir(cwd)
@export
def help():
"""Display all commands with their description in alphabetical order"""
module_doc = sys.modules["__main__"].__doc__ or "check"
print(module_doc + "\n" + "=" * len(module_doc) + "\n")
for command, function in sorted(_exported.items()):
doc = function.__doc__
if doc:
first_line = doc.splitlines()[0]
else:
first_line = ""
print("make {} - {}".format(command, first_line))
def main(command="help", *args):
"""Dispatch on command name, passing all remaining parameters to the
module-level function.
"""
try:
function = _exported[command]
except KeyError:
raise RuntimeError("No such command: %s" % command)
else:
return function(*args)
if __name__ == "__main__":
sys.exit(main(*sys.argv[1:]))
|
gpl-3.0
|
waitman/OpenDCP
|
cli/Makefile
|
1427
|
CC = clang
CFLAGS = -Wall -Wextra -O2 -I../include -I/usr/local/include -DLIBXML_STATIC -DLIBXSLT_STATIC -DXMLSEC \
-DXMLSEC_STATIC -D_FILE_OFFSET_BITS=64 -DNDEBUG
LIBS = -lz -lssl -lcrypto -lxml2 -lxmlsec1-openssl -lxmlsec1 -lxslt -lexpat -ltiff -lopenjpeg -lopendcp -lasdcp -lkumu
LDFLAGS = -L./../libopendcp -L/usr/cust/lib -L/usr/local/lib -L/usr/lib -L/lib -Wl,-rpath,/usr/local/lib
PREFIX = /usr/cust
OWNER = -o root -g wheel
PERMS = -m 755
INSTALL = install
all: opendcp_j2k opendcp_mxf opendcp_xml opendcp_xml_verify runj2k
opendcp_j2k:
${CC} ${CFLAGS} ${LDFLAGS} -o opendcp_j2k opendcp_cli.c opendcp_j2k_cmd.c ${LIBS}
opendcp_mxf:
${CC} ${CFLAGS} ${LDFLAGS} -o opendcp_mxf opendcp_cli.c opendcp_mxf_cmd.c ${LIBS}
opendcp_xml:
${CC} ${CFLAGS} ${LDFLAGS} -o opendcp_xml opendcp_cli.c opendcp_xml_cmd.c ${LIBS}
opendcp_xml_verify:
${CC} ${CFLAGS} ${LDFLAGS} -o opendcp_xml_verify opendcp_cli.c opendcp_xml_verify_cmd.c ${LIBS}
runj2k:
${CC} ${CFLAGS} ${LDFLAGS} -pthread -o runj2k runj2k.c
install:
${INSTALL} ${OWNER} ${PERMS} opendcp_j2k ${PREFIX}/bin
${INSTALL} ${OWNER} ${PERMS} opendcp_mxf ${PREFIX}/bin
${INSTALL} ${OWNER} ${PERMS} opendcp_xml ${PREFIX}/bin
${INSTALL} ${OWNER} ${PERMS} opendcp_xml_verify ${PREFIX}/bin
${INSTALL} ${OWNER} ${PERMS} runj2k ${PREFIX}/bin
clean:
rm -f *.o
rm -f opendcp_j2k
rm -f opendcp_mxf
rm -f opendcp_xml
rm -f opendcp_xml_verify
rm -f runj2k
|
gpl-3.0
|
illinois-dres-aitg/courses-presentations
|
presentations/2016-10-educause/slide10.html
|
2449
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML//EN">
<html lang="en">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Slide 10: Experience of Disability: History of Built-in Accessibility</title>
<link rel="stylesheet" type="text/css" href="../slides2/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../slides2/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="../slides2/css/bootstrap-accessibility.css">
<link rel="stylesheet" type="text/css" href="../slides2/css/xml-slides2.css">
<script type="text/javascript" src="../slides2/js/jquery-2.1.1.min.js"></script><script type="text/javascript" src="../slides2/js/bootstrap.min.js"></script><script type="text/javascript" src="../slides2/js/bootstrap-accessibility.min.js"></script><script type="text/javascript" src="../slides2/js/xml-slides.js"></script>
<style id="style" type="text/css"></style>
</head>
<body>
<nav id="nav" class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed navbar-left" data-toggle="collapse" data-target="#slide-nav"><span class="sr-only">
Toggle navigation
</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
</div>
<div id="slide-nav" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Index
</a>
</li>
<li>
<a href="slide1.html">First
</a>
</li>
<li>
<a href="slide9.html">Previous
</a>
</li>
<li>
<a href="slide11.html">Next
</a>
</li>
<li>
<a href="slide35.html">Last
</a>
</li>
</ul>
<div class="navbar-text pull-right">Slide 10 of 35</div>
</div>
</div>
</nav>
<main id="content" class="container">
<a name="main" id="main"></a>
<h1 id="h1_title" class="title">Experience of Disability: History of Built-in Accessibility</h1>
<ul>
<li>First introduced in the late 1980's as accessibility utlities, becomes standard part of MS-DOS, Windows and Apple OS</li>
<li>Windows 95 maintains requirement for full keyboard support (1995)</li>
<li>VoiceOver/Zoom integrated into OS X 10.4 (2011)</li>
</ul>
</main>
<footer class="container">
<div id="footer" class="well well-sm">
Copyright 2016 University of Illinois
</div>
</footer>
</body>
</html>
|
gpl-3.0
|
jpmilcent/depim
|
server/framework/Registre.php
|
2499
|
<?php
// declare(encoding='UTF-8');
/**
* Classe Registre, qui permet un accès à différentes variables et paramètres à travers les autres classes.
* C'est un remplaçant à la variable magique $_GLOBALS de Php.
* C'est un singleton.
* Si vous voulez paramètré votre application via un fichier de configuration, utilisez plutôt la classe @see Config.
*
* @category php 5.2
* @package Framework
* @author Jean-Pascal MILCENT <jmp@tela-botanica.org>
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
* @version $Id: Registre.php 301 2011-01-18 14:23:52Z jpm $
* @link /doc/framework/
*
*/
class Registre {
/** Tableau associatif stockant les variables. */
private static $stockage = array();
/**
* Ajoute un objet au tableau selon un intitulé donné.
* @param string l'intitulé sous lequel l'objet sera conservé
* @param mixed l'objet à conserver
*/
public static function set($intitule, $objet) {
if (is_array($objet) && isset(self::$stockage[$intitule])) {
self::$stockage[$intitule] = array_merge((array) self::$stockage[$intitule], (array) $objet);
$message = "Le tableau $intitule présent dans le registre a été fusionné avec un nouveau tableau de même intitulé !";
trigger_error($message, E_USER_WARNING);
} else {
self::$stockage[$intitule] = $objet;
}
}
/**
* Renvoie le contenu associé à l'intitulé donné en paramètre.
* @return mixed l'objet associé à l'intitulé ou null s'il n'est pas présent
*/
public static function get($intitule) {
$retour = (isset(self::$stockage[$intitule])) ? self::$stockage[$intitule] : null;
return $retour;
}
/**
* Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé.
* @param string l'intitulé de l'entrée du registre à détruire.
*/
public static function detruire($intitule) {
if (isset(self::$stockage[$intitule])) {
unset(self::$stockage[$intitule]);
}
}
/**
* Teste si le registre contient une donnée pour un intitulé d'entrée donné.
* @param string l'intitulé de l'entrée du registre à tester.
* @return boolean true si un objet associé à cet intitulé est présent, false sinon
*/
public static function existe($intitule) {
$retour = (isset(self::$stockage[$intitule])) ? true : false;
return $retour;
}
}
?>
|
gpl-3.0
|
irmpow/4rooms
|
js-href-gen-v2-01top.html
|
554
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function myGoTo() {
var str = document.getElementById("inp").value;
top.frames['bot01'].location = str;
}
</script>
</head>
<body style="padding:0;margin:0;">
<div style="background:#4c5863;" width="100%" >
<input style="background:#C0C0C0;margin-top:4px;margin-bottom:4px;margin-left:4px;" type="text" id="inp" size="50">
<input type="button" value=">>" onclick="myGoTo()">
</div>
</body>
</html>
|
gpl-3.0
|
enen92/xbmc-video-server
|
src/protected/messages/de/Misc.php
|
1489
|
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE, this file must be saved in UTF-8 encoding.
*/
return array (
'Free your library' => 'Free your library',
'Are you sure you want to flush the cache?' => 'Cache wirklich leeren?',
'Are you sure you want to update the backend\'s library?' => 'Backend wirklich updaten?',
'Are you sure?' => 'Bist du sicher?',
'Error' => 'Fehler',
'Error {code}' => 'Fehler {code}',
'Library update has been initiated' => 'Bibliothek wird aktualisiert',
'Not available' => 'Nicht verfügbar',
'Streaming of video files is not possible from XBMC 12 "Frodo" backends' => 'Streaming funktioniert nicht mit XBMX Version 12 "Frodo"',
'The cache has been flushed successfully' => 'Der Cache wurde erfolgreich geleert',
'You\'ll have to flush the API call cache to see any newly scanned content' => 'Um neue Inhalte zu finden, muss der API Cache geleert werden',
);
|
gpl-3.0
|
nikochan2k/projeqtor-ja
|
tool/i18n/nls/de/lang.js
|
84654
|
{
aboutMessage: "Über ProjecQtOr …",
aboutMessageLocale: "Lokal",
aboutMessageWebsite: "Webseite",
AccessProfile: "Zugriffsprofile",
accessProfileGlobalCreator: "Ersteller+",
accessProfileGlobalManager: "Manager+",
accessProfileGlobalReader: "Leser+",
accessProfileGlobalUpdater: "Änderer+",
accessProfileNoAccess: "Kein Zugriff",
accessProfileRestrictedCreator: "Ersteller",
accessProfileRestrictedManager: "Manager",
accessProfileRestrictedReader: "Leser",
accessProfileRestrictedUpdater: "Änderer",
accessReadOwnOnly: "Leser eigene",
accessScopeAll: "Alle Elemente aller Projekte",
accessScopeNo: "Kein Elemente",
accessScopeOwn: "Eigene Elemente",
accessScopeProject: "Elemente eigener Projekte",
accessScopeResp: "Elemente für die er verantwortlich ist",
Action: "Aktion",
ActionType: "Aktionstyp",
activeConnections: "Aktiver Status",
Activity: "Aktivität",
ActivityPrice: "Preis der Aktivität",
ActivityType: "Aktivitätstyp",
actualDueDate: "Berücksichtige anfängliches Endedatum",
actualDueDateTime: "Berücksichtige anfängliches Endedatum/-zeit",
addAffectation: "neue Zuordnung hinzufügen",
addApprover: "Genehmiger hinzufügen",
addAssignment: "Zuordnung hinzufügen",
addAttachement: "Anhang hinzufügen",
addDependency: "Abhängigkeit hinzufügen",
addDependencyPredecessor: "Vorgänger hinzufügen",
addDependencySuccessor: "Nachfolger hinzufügen",
addDocumentVersion: "neue Version hinzufügen",
addExpenseDetail: "Aufwandsdetail hinzufügen",
addFilterClause: "Filterkriterium hinzufügen",
addFilterClauseTitle: "Filterregel hinzufügen",
addHyperlink: "Hyperlink für Datei oder Web-Seite hinzufügen",
addLine: "Zeile hinzufügen",
addLink: "Elementverknüpfung hinzufügen",
addNote: "Notiz hinzufügen",
addOrigin: "Ursprung hinzufügen",
addPhoto: "Foto hinzufügen",
addResourceCost: "Ressourcekosten hinzufügen",
addTestCaseRun: "Testfall zu Testplan hinzufügen",
addVersionProject: "Verbindung zwischen Version und Projekt",
adminCronCheckDates: "Verzögerung für die Erzeugung von Alarmen = ${1} Sekunden",
adminCronCheckEmails: "Emails Eingang Verzögerung = ${1} Sekunden",
adminCronCheckImport: "Verzögerungen von automatischen Importen = ${1} Sekunden",
adminCronSleepTime: "Generelle Cron Ruhezeit = ${1} Sekunden",
advancedFilter: "Erweiterer Filter",
Affectation: "Ressourcenzuordnung",
affectTeamMembers: "Team zuweisen auf Projekt ",
after: "dahinter",
Alert: "Alarm",
ALERT: "Alarm",
alertChooseOneAtLeast: "Mindestens ein Element wählen",
alertCronStatus: "Alarm Erstellung",
alertInvalidForm: "Einige Felder enthalten ungültige Daten. <br/>Bitte erst korrigieren.",
alertNoNewAssignment: "Keine Zuordnung auf ungenutztes Element möglich.",
alertOngoingChange: "Aktuelle Änderungen nicht gesichert.<br/>Bitte vorher sichern oder abbrechen.",
alertOngoingQuery: "Abfrage läuft<br/>Bitte warten",
alertQuitOngoingChange: "Aktuelle Änderungen nicht gesichert.\nWollen Sie wirklich ProjecQtOr beenden?",
alertValue: "Alarm Wert",
all: "Alle",
allProjects: "Alle Projekte",
allUsers: "Alle Nutzer",
alsoDeleteAttachement: "ACHTUNG, diese Aktion wird auch die ${1} verbundene(n) Anhangdatei(en) löschen.",
always: "immer",
amongst: "über",
Anomaly: "Störung",
anyChange: "beliebige Änderung",
applicationStatus: "Status der Applikation ",
applicationStatusClosed: "geschlossen",
applicationStatusOpen: "offen",
applicationTitle: "ProjeQtOr",
approved: "genehmigt",
approveNow: "jetzt genehmigen",
approver: "Genehmiger",
Approver: "Genehmiger",
April: "April",
Assignment: "Zuordnung",
assignmentAdd: "Zuordnung hinzufügt",
assignmentChange: "Zuordnung geändert",
assignmentEditRight: "Zuweisungen bearbeiten",
assignmentViewRight: "Zuweisungen anzeigen",
Attachement: "Anhang",
attachmentAdd: "Anhänge hinzufügen",
attributeNotSelected: "Werte nicht gewählt",
Audit: "Verbindung",
August: "August",
before: "davor",
bigExportQuestion: "Der Export hat ${1} Zeilen. Weitermachen?",
Bill: "Rechnung",
billingTypeE: "gemäß Konditionen",
billingTypeM: "manuelle Rechnungsstellung",
billingTypeN: "nicht abgerechnet",
billingTypeP: "nach gedeckelter Produktionszeit",
billingTypeR: "nach erstellter Arbeit",
BillLine: "Rechnungszeilen",
BillType: "Rechnungstyp",
blocked: "gesperrt",
blockedTestCaseRun: "Testfall als gesperrt markieren",
Browser: "Navigator",
buttonBrowse: "Suchen …",
buttonCancel: "Abbruch",
buttonChangePassword: "Passwort ändern",
buttonClear: "Löschen",
buttonCollapse: "Zuklappen aller Gruppen",
buttonCopy: "Kopiere den aktuellen ${1}",
buttonDefault: "Standardwert",
buttonDelete: "Lösche den aktuellen ${1}",
buttonDeleteMultiple: "Lösche alle gewählten Elemente",
buttonExpand: "Aufklappen aller Gruppen",
buttonHideList: "Liste ausblenden",
buttonHideMenu: "Menü ausblenden",
buttonImportData: "Datenimport",
buttonMail: "Email Details von ${1}",
buttonMultiUpdate: "Mehrfachaktualisierung",
buttonNew: "Erstelle neu ${1}",
buttonNo: "Nein",
buttonOK: "OK",
buttonPlan: "Berechne geplante Aktivitäten",
buttonPrint: "Drucke den aktuellen ${1}",
buttonQuitMultiple: "Mehrfachaktualisierung verlassen",
buttonRedoItem: "Gehe vorwärts",
buttonRefresh: "Anzeige des aktuellen ${1} erneuern",
buttonRefreshList: "Liste aktualisieren",
buttonReset: "Rücksetzen",
buttonSave: "Sichern der Änderung des aktuellen ${1} ([CTRL]+S)",
buttonSaveImputation: "Sichern der Arbeitsauftrag ${1}",
buttonSaveMultiple: "Mehrfachaktualisierung sichern",
buttonSaveParameter: "Sichern der Parameter",
buttonSaveParameters: "Sichern Parameter",
buttonSelectAll: "Alle Elemente auswahlen",
buttonSelectFiles: "Wähle Dateien …",
buttonShowList: "Liste anzeigen",
buttonShowMenu: "Menü anzeigen",
buttonStandardMode: "Modus Standardanzeige",
buttonSwitchedMode: "Modus Umschaltanzeige",
buttonUndo: "Änderung rückgängig machen für aktuellen ${1}",
buttonUndoImputation: "Änderung rückgängig machen für Arbeitsauftrag ${1}",
buttonUndoItem: "Gehe zurück",
buttonUnselectAll: "Alle Auswahlen aufheben",
buttonYes: "Ja",
byte: "Byte",
byteLetter: "B",
Calendar: "Kalender",
CalendarDefinition: "Kalender",
cancelled: "abgebrochen",
cannotDeleteBilledTerm: "abgerechnete B",
cannotGoto: "Kann nicht zu diesem Element gehen<br/>Bitte wählen Sie erst aus der ersten Liste auswählen.",
changeActualDueDate: "Ändere geplantes Endedatum zu",
changeActualDueDateTime: "Ändere aktuelles Endedatum/ -zeit zu",
changeActualEndDate: "Ändere aktuelles Endedatum zu",
changeInitialDueDate: "Ändere ursprüngl. Endedatum zu",
changeInitialDueDateTime: "Ändere ursprüngl. Endedatum/ -zeit zu",
changeInitialEndDate: "Ändere ursprüngl. Endedatum zu",
changePlanningMode: "Ändere Planungsmodus zu",
changeValidatedEndDate: "Ändere bestätigtes Endedatum zu",
changeValidatedStartDate: "Ändere bestätigtes Startdatum zu",
checkAsList: "Wähle Spalten für Anzeige",
Checklist: "Checkliste",
checklistAccess: "Zugriff auf Checklisten",
ChecklistDefinition: "Checkliste",
ChecklistDefinitionLine: "Checklistenzeilen",
checkUncheckAll: "wählen / abwählen",
chooseColumnExport: "Wähle Spalten für Export",
chronological: "zeitlich",
Client: "Kunde",
ClientType: "Kundentyp",
close: "Schließen",
closeAlerts: "Schließe Alarme",
closed: "abgeschlossen",
closedMessage: "Meldung wenn Applikation im Wartungsmodus / Offline.",
closedSinceMore: "schließe bei mehr als",
closeEmails: "Schließe Mails",
codDesignation: "Bezeichnung",
colAccountable: "abrechenbar",
colActionnee: "Akteur",
colActualDueDate: "Zieldatum geplant",
colActualDueDateTime: "Zieldatum aktuell",
colActualEndDate: "Endedatum geplant",
colAdd: "Änderung",
colAddAmount: "Änderung Betrag",
colAdditionalInfo: "zusätzl. Info",
colAddNote: "(öffentliche) Notiz hinzufügen",
colAddPricePerDayAmount: "Änderung Preis/Tag",
colAddress: "Adresse",
colAddToDescription: "Beschreibung hinzufügen",
colAddToResult: "Ergebnis hinzufügen",
colAddWork: "Änderung Arbeit",
colAlert: "Alarm",
colAlertDateTime: "Erinnerungsdatum",
colAlertInitialDateTime: "Erstelle Datum",
colAlertReadDateTime: "Lesedatum",
colAlertReceiver: "Empfänger des Alarms",
colAllowDuplicate: "erlaube Duplikat",
colAllowDuplicateTestInSession: "erlaube Testfall Duplikat in Testplan",
colAmount: "Betrag",
colApiKey: "API Schlüssel",
colAssigned: "zugewiesen",
colAssignedCost: "zugewiesene Kosten",
colAssignedWork: "zugewiesene Arbeit",
colAttendees: "Anwesende",
colBank: "Bank",
colBillable: "abrechenbar",
colBillContact: "Rechnung Vertrag",
colBillId: "Rechnungsnummer",
colBillingType: "Rechnungstyp",
colBrowser: "Browser",
colBrowserVersion: "Browserversion",
colCancelled: "abgebrochen",
colCapacity: "Kapazität",
colCategory: "Kategorie",
colCause: "Ursache",
colChangeIssuer: "Ändere ${1} zu",
colChangeProject: "Ändere ${1} zu",
colChangeRequestor: "Ändere ${1} zu",
colChangeResponsible: "Ändere ${1} zu",
colChangeStatus: "Ändere Status zu",
colChangeTargetVersion: "Ändere Zielversion zu",
colChangeType: "Ändere Type zu",
colChoice: "Auswahlmöglichkeit",
colChoices: "Auswahlmöglichkeiten",
colCity: "Stadt",
colClient: "Kunde",
colClientCode: "Kundencode",
colClientName: "Kundenname",
colClosureDate: "Abschlussdatum",
colClosureDateTime: "Abschlussdatum/-zeit",
colCode: "Code",
colColor: "Farbe",
colColumn: "Daten",
colComment: "Kommentare",
colCommissionCost: "Auftrag",
colCompanyNumber: "Firmennummer",
colComplement: "Zubehör",
colConnection: "Erster Zugriff",
colContactName: "Kontaktname",
colContractCode: "Vertragscode",
colContractor: "Hauptlieferant",
colCost: "Kosten",
colCountBlocked: "gesperrt",
colCountFailed: "fehlgeschlagen",
colCountIssues: "Problem",
colCountLinked: "verbunden",
colCountPassed: "erfolgreich",
colCountPlanned: "geplant",
colCountry: "Land ",
colCountTests: "Anzahl Testfälle",
colCountTotal: "gesamt",
colCreationDate: "Erstellungsdatum",
colCreationDateTime: "Erstellungsdatum/-zeit",
colCriticality: "Kritikalität",
colCriticalityShort: "Krit.",
colCurrentDocumentVersion: "letzte Version",
colDate: "Datum",
colDecisionAccountable: "verantwortlich",
colDecisionDate: "Entscheidungsdatum",
colDefaultType: "Standardtyp",
colDependencyDelay: "Verzug (zu spät)",
colDependencyDelayComment: "Tage zwischen Start Vorgänger und Nachfolger",
colDescription: "Beschreibung",
colDesignation: "Bezeichnung",
colDetail: "Detail",
colDisplayName: "Name anzeigen",
colDocumentReference: "Dokumentenreferenz",
colDone: "erledigt",
colDoneDate: "Erledigungsdatum",
colDoneDateTime: "Erledigungsdatum/-zeit",
colDontReceiveTeamMails: "Kein Empfang von Team Mails",
colDueDate: "Zieldatum",
colDuplicateTicket: "Doppeltes Ticket",
colDuration: "Dauer",
colEisDate: "geplanter Produktivbetrieb",
colElement: "Element",
colEmail: "Mail-Adresse",
colEnd: "Ende",
colEndDate: "Endedatum",
colEndTime: "Endezeit",
colEstimatedEffort: "geschätzer Aufwand",
colEstimatedWork: "Arbeit geschätzt",
colExclusive: "nur Einzelauswahl zulassen",
colExclusiveShort: "Einzel.",
colExpected: "erwarteter Fortschritt",
colExpectedProgress: "erwarteter Fortschritt",
colExpectedResult: "erwartetes Ergebnis",
colExpense: "Aufwand",
colExpenseAssignedAmount: "Aufwände zuweisen",
colExpenseLeftAmount: "verbleibende Aufwände",
colExpensePlannedAmount: "Plan-Aufwände",
colExpenseRealAmount: "Ist-Aufwände",
colExpenseValidatedAmount: "genehmigte Aufwände",
colExternalReference: "Externe Referenz",
colFax: "FAX",
colFile: "Datei",
colFilter: "Filter",
colFirstDay: "Erster Tag",
colFixPlanning: "Feste Planung",
colFormat: "Skala",
colFullAmount: "Gesamtbetrag",
colHandled: "bearbeitet",
colHandledDate: "bearbeitet am",
colHandledDateTime: "bearbeitet um",
colHyperlink: "Hyperlink",
colIbanBban: "Kontonummer (BBAN)",
colIbanCountry: "Land (IBAN)",
colIbanKey: "Schlüssel (IBAN)",
colIcon: "Icon",
colId: "ID",
colIdAccessScopeCreate: "Berechtigung 'Erstellen'",
colIdAccessScopeDelete: "Berechtigung 'Löschen'",
colIdAccessScopeRead: "Berechtigung 'Lesen'",
colIdAccessScopeUpdate: "Berechtigung 'Ändern'",
colIdActionType: "Aktionstyp",
colIdActivityPlanningMode: "Planungstyp",
colIdActivityPrice: "Aktivitätspreis",
colIdActivityType: "Aktivitätstyp",
colIdAuthor: "Author",
colIdBill: "Rechnung",
colIdBillType: "Rechnungstyp",
colIdCalendarDefinition: "Kalender",
colIdClient: "Kunde",
colIdClientType: "Kundentyp",
colIdCommandType: "Auftragstyp",
colIdContact: "Kontakt",
colIdContext: "Kontext",
colIdContext1: "Umfeld",
colIdContext2: "Betriebssystem",
colIdContext3: "Navigator",
colIdContextType: "Kontexttyp",
colIdCriticality: "Kritikalität",
colIdDecisionType: "Entscheidungstyp",
colIdDocumentDirectory: "Verzeichnis",
colIdEfficiency: "Effizienz",
colIdFeasibility: "Machbarkeit",
colIdHealth: "Projektstatus",
colIdIndicator: "Indikator",
colIdle: "abgeschlossen",
colIdleDate: "geschlossen am",
colIdleDateTime: "geschlossen um",
colIdLikelihood: "Wahrscheinlichkeit",
colIdLocker: "gesperrt durch",
colIdMailable: "Element geändert",
colIdMeetingType: "Besprechungstyp",
colIdMessageType: "Meldungstyp",
colIdMilestonePlanningMode: "Planungstyp",
colIdMilestoneType: "Meilensteintyp",
colIdOverallProgress: "Gesamtfortschritt",
colIdPeriodicity: "Häufigkeit",
colIdPlanningMode: "Planungsmodus",
colIdPriority: "Priorität",
colIdPrivacy: "Datenschutz",
colIdProduct: "Produkt",
colIdProfile: "Profile",
colIdProject: "Projekt",
colIdQuality: "Qualitätslevel",
colIdQuestionType: "Fragentyp",
colIdQuotationType: "Angebotstyp",
colIdRecipient: "Empfänger",
colIdReferencable: "Element",
colIdRequirement: "Übergeordnete Anforderung",
colIdRequirementType: "Typ",
colIdResource: "Ressource",
colIdRole: "Funktion",
colIdSeverity: "Auswirkung",
colIdSponsor: "Sponsor",
colIdStatus: "Status",
colIdTeam: "Team",
colIdTerm: "Bedingung",
colIdTestCase: "Übergeordneter Testfall",
colIdTestCaseType: "Typ",
colIdTestSession: "Testlauf",
colIdTestSessionPlanningMode: "Planungsmodus",
colIdTestSessionType: "Typ",
colIdTicketType: "Tickettyp",
colIdTrend: "Trend",
colIdUrgency: "Dringlichkeit",
colIdUser: "Benutzer",
colIdVersion: "Version",
colIdVersioningType: "Versionstyp",
colIdWorkflow: "Workflow",
colImpact: "Auswirkung",
colImportElementType: "Elementtyp für Import",
colImportFileType: "Dateiformat für Import",
colInitial: "anfänglich",
colInitialAmount: "Initial Betrag",
colInitialDueDate: "Zieldatum anfängl.",
colInitialDueDateTime: "Zieldatum anfängl.",
colInitialDuration: "Dauer anfängl.",
colInitialEisDate: "Start des Produktivbetriebs",
colInitialEndDate: "Enddatum anfängl.",
colInitialPricePerDayAmount: "Initial Preis/Tag",
colInitials: "Initialen",
colInitialStartDate: "Startdatum anfängl.",
colInitialWork: "Arbeit anfängl.",
colIsBilled: "angekündigt",
colIsContact: "ist ein Kontakt",
colIsEis: "ist im Produktivbetrieb",
colIsLdap: "kommt von LDAP",
colIsOffDay: "Abwesenheitstag",
colIsPeriodic: "periodisch",
colIsRef: "Referenz",
colIsResource: "ist eine Ressource",
colIsSubProductOf: "Unterprojekt von",
colIsSubProject: "Teilprojekt von",
colIssuer: "Aussteller",
colIssuerShort: "Ausst.",
colIsUser: "ist ein Benutzer",
colLastAccess: "Letzter Zugriff",
colLate: "zu spät",
colLatitude: "Breitengrad",
colLeft: "verbleibend",
colLeftCost: "verbleibende Kosten",
colLeftWork: "verbleibende Arbeit",
colLikelihood: "Wahrscheinlichkeit",
colLikelihoodShort: "%",
colLineCount: "Anzahl Zeilen",
colLineNumber: "Position",
colLink: "Link",
colLinkActivity: "verbundene Aktivität",
colListShowMilestone: "Meilensteine anzeigen",
colLocation: "Standort",
colLockCancelled: "Sperre abgebrochen",
colLockDone: "Sperre 'erledigt'",
colLocked: "gesperrt",
colLockedDate: "gesperrt seit",
colLockHandled: "Sperre 'bearbeitet'",
colLockIdle: "Sperre 'abgeschlossen'",
colLockTags: "Sperre 'Prüfungen'",
colLongitude: "Längengrad",
colMailBody: "Text des Mails",
colMailDateTime: "gesendet am",
colMailMessage: "Nachricht",
colMailStatus: "Sendestatus",
colMailTitle: "Titel des Mails",
colMailTo: "Empfänger",
colMailToAssigned: "Zugewiesene Ressource",
colMailToContact: "Antragsteller",
colMailToLeader: "Projektleiter",
colMailToManager: "Projektmanager",
colMailToOther: "andere",
colMailToProject: "Projektteam",
colMailToResource: "Verantwortlich",
colMailToUser: "Aussteller",
colMainRole: "Hauptfunktion",
colManager: "Manager",
colMandatoryDescription: "Beschreibung",
colMandatoryResourceOnHandled: "verantwortlich",
colMandatoryResultOnDone: "Ergebnis",
colMeetingDate: "Besprechungsdatum",
colMeetingEndTime: "Endezeit",
colMeetingStartTime: "Startzeit",
colMessage: "Meldung",
colMinutes: "Protokoll",
colMobile: "Handy",
colName: "Name",
colNameClient: "Kunde",
colNewStatus: "neuer Status",
colNextDocumentVersion: "neue Version",
colNote: "Notiz",
colNotPlannedWork: "[not planned work]",
colNoWork: "Keine Arbeit",
colNumBank: "Bankleitzahl",
colNumCompte: "Kontonummer",
colNumOffice: "Postfachnummer",
colNumTax: "Steuernummer",
colOfferValidityEndDate: "Gültigkeit des Angebots",
colOperation: "Vorgang",
colOpportunityImprovement: "Verbesserung erwartet",
colOpportunityImprovementShort: "Verbessg.",
colOpportunitySource: "Chancenquelle",
colOrContact: "oder Kontakt",
colOrigin: "Ursprung",
colOriginalVersion: "Ursprungsversion",
colOriginId: "Ursprungs-ID",
colOriginType: "Ursprungstyp",
colOrLink: "oder Link",
colOrNotSet: "oder nicht gesetzt",
colOrOtherEvent: "oder anderes Ereignis",
colOrProduct: "oder Product",
colOrUser: "oder Benutzer",
colOtherAttendees: "Weitere Anwesende",
colOtherVersions: "Andere Versionen",
colParameters: "Parameter",
colParentActivity: "übergeordnete Aktivität",
colParentDirectory: "Oberverzeichnis",
colParentTestSession: "Ursprungs-Session",
colPassword: "Passwort",
colPaymentDelay: "Zahlungsziel (in Tagen)",
colPct: "%",
colPeriod: "Zyklus",
colPeriodicityEndDate: "Endedatum",
colPeriodicityOpenDays: "Nur offene Tage",
colPeriodicityStartDate: "Startdatum",
colPeriodicityTimes: "Wiederholungen",
colPeriodicOccurence: "Wiederholung",
colPhone: "Telefon",
colPhoto: "Foto",
colPlanned: "geplant",
colPlannedAmount: "Plan-Betrag",
colPlannedAmount2: "Plan-Betrag",
colPlannedCost: "Plan-Kosten",
colPlannedDate: "Plan-Datum",
colPlannedDate2: "Plan-Datum",
colPlannedDueDate: "Plan-Zieldatum",
colPlannedDuration: "Plan-Dauer",
colPlannedEis: "Plan-Datum für Produktivbetrieb",
colPlannedEisDate: "Plan-Datum für Produktivbetrieb",
colPlannedEnd: "Plan-Endedatum",
colPlannedEndDate: "Plan-Endedatum",
colPlannedStartDate: "Plan-Startdatum",
colPlannedWork: "Plan-Arbeit",
colPlanning: "Planung",
colPlanningActivity: "Zugewiesene Aktivität",
colPlatform: "Plattform",
colPredefinedNote: "vordefinierte Notiz",
colPrerequisite: "Voraussetzung",
colPreviousStartDate: "Vorheriges Startdatum",
colPrice: "Preis",
colPriceCost: "Preis der Aktivität",
colPricePerDay: "Preis/Tag",
colPriority: "Priorität",
colPriorityShort: "Prio",
colProductName: "Produktname",
colProductVersion: "Version",
colProfileCode: "Profilcode",
colProgress: "Fortschritt",
colProjectCode: "Projektcode",
colProjectName: "Projektname",
colProjectType: "Projekttyp",
colQuantity: "Menge",
colRate: "Anteil in %",
colReadFlag: "lesen",
colReal: "ist",
colRealAmount: "Ist-Betrag",
colRealCost: "Ist-Kosten",
colRealDate: "Ist-Datum",
colRealDuration: "Ist-Dauer",
colRealEis: "Ist-Datum für Produktivbetrieb",
colRealEisDate: "Ist-Datum für Produktivbetrieb",
colRealEnd: "Ist-Endedatum",
colRealEndDate: "Ist-Endedatum",
colRealName: "Tatsächl. Name",
colRealStartDate: "Ist-Startdatum",
colRealWork: "Ist-Arbeit",
colReceptionDateTime: "Übermittlungsdatum",
colRecipient: "Empfänger",
colReference: "Referenz",
colReferenceDocumentVersion: "Referenz Version",
colReffType: "Elementtyp",
colRefId: "Element ID",
colRefType: "Elementtyp",
colReplier: "Antwortender",
colReport: "Bericht",
colRequestDisconnection: "Abmeldung erbeten",
colRequested: "gefordert",
colRequestor: "Antragsteller",
colResource: "Ressourcen",
colResourceCost: "Resourcekosten",
colResourceName: "Ressourcenname",
colResponse: "Antwort",
colResponsible: "verantwortlich",
colResponsibleShort: "verantw.",
colResult: "Ergebnis",
colResultImport: "Importergebnis",
colRib: "Bank ID",
colSendDate: "Sendedatum",
colSender: "Sender",
colSendMail: "sende Mail an",
colSessionId: "Sitzungs ID",
colSetCancelledStatus: "abgebrochen Status",
colSetDoneStatus: "Status 'erledigt'",
colSetHandledStatus: "Status 'bearbeitet'",
colSetIdleStatus: "Status 'abgeschlossen'",
colSeverity: "Auswirkung",
colSeverityShort: "Schw.",
colShowDetail: "Zeige Detail",
colShowInFlash: "im Blitzbericht anzeigen",
colSize: "Größe",
colSortOrder: "Sortierung",
colSortOrderShort: "Sortierung",
colStart: "Start",
colStartDate: "Startdatum",
colStartTime: "Startzeit",
colState: "Land",
colStatusDateTime: "Datum",
colStreet: "Straße",
colSubcontractor: "outgesourced",
colSubcontractorCost: "Outsource Kosten",
colSubDirectory: "Verzeichnis",
colTargetVersion: "Zielversion",
colTask: "Aufgabe",
colTax: "Steuersatz (%)",
colTaxFree: "steuerfrei",
colTeam: "Team",
colTechnicalRisk: "Technisches Risko",
colTestCase: "Testfall",
colTestCases: "Testfälle",
colTestSession: "Testplan",
colTestSummary: "Teststatus",
colText: "Text",
colTicket: "Ticket",
colTicketWork: "Zusammenfassung Ticketaufwand",
colTime: "Zeit",
colTitle: "Titel",
colTotalAssignedCost: "Zugewiesene Gesamtkosten",
colTotalCost: "Gesamtkosten",
colTotalLeftCost: "verbleibende Gesamtkosten",
colTotalPlannedCost: "geplante Gesamtkosten",
colTotalRealCost: "Ist-Gesamtkosten",
colTotalValidatedCost: "genehmigte Gesamtkosten",
colType: "Typ",
columnSelector: "wähle Spalten für Anzeige",
colUnit: "Einheit",
colUntaxedAmount: "Nettobetrag",
colUrgency: "Dringlichkeit",
colUser: "Benutzer",
colUserAgent: "Benutzer Agent",
colUserName: "Benutzername",
colValidated: "bestätigt",
colValidatedAmount: "Gesamtbetrag",
colValidatedAmount2: "Betrag",
colValidatedAmount3: "Gesamtbetrag",
colValidatedCost: "bestätigte Kosten",
colValidatedDate: "bestätigtes Datum",
colValidatedDueDate: "Zieldatum bestätigt",
colValidatedDuration: "Dauer bestätigt",
colValidatedEnd: "Endedatum bestätigt",
colValidatedEndDate: "Endedatum bestätigt",
colValidatedPricePerDayAmount: "bestätigter Gesamtpreis/Tag",
colValidatedPricePerDayAmount2: "Preis/Tag",
colValidatedStartDate: "Startdatum bestätigt",
colValidatedWork: "Arbeit bestätigt",
colValidatedWork2: "Arbeit",
colValue: "Wert",
colValueAfter: "Wert neu",
colValueBefore: "Wert alt",
colValueCost: "Wert",
colValueUnit: "Wert / Einheit",
colVersion: "Version",
colVersionName: "Versionsname",
colWarning: "Erinnerung",
colWbs: "PSP",
colWbsSortable: "PSP sortierbarer",
colWeekday1: "Mo",
colWeekday2: "Di",
colWeekday3: "Mi",
colWeekday4: "Do",
colWeekday5: "Fr",
colWeekday6: "Sa",
colWeekday7: "So",
colWork: "Arbeit",
colWorkElementCount: "Nummer",
colWorkElementEstimatedWork: "geschätzer Aufwand für Tickets",
colWorkElementLeftWork: "verbleibender Aufwand für Tickets",
colWorkElementRealWork: "Ist-Aufwand für Tickets",
colWorkflowUpdate: "Workflow",
colZip: "Postleitzahl",
comboCloseButton: "Schließen",
comboDetailAccess: "Schalter anzeigen 'Detail-Kombinationen'",
comboNewButton: "Erstelle neues Element",
comboSaveButton: "Sichere Element",
comboSearchButton: "Suche ein Element",
comboSelectButton: "Wähle dieses Element",
Command: "Auftrag",
CommandType: "Auftragstyp",
commentDueDates: "Anf | Pln | Ist",
confirmChangeLoosing: "Aktuelle Änderung nicht gespeichert.<br/>Die Änderungen gehen verloren.<br/>Wollen Sie weitermachen?",
confirmControlDelete: "Folgende Abhängigkeiten werden gelöscht",
confirmControlSave: "Folgende Abhängigkeiten werden geschlossen",
confirmCopy: "Kopiere den ${1} #${2} ?",
confirmDelete: "Lösche den ${1} #${2} ?",
confirmDeleteAffectation: "Löschen der Zuordnung #${1} ?",
confirmDeleteApprover: "Lösche Genehmiger '${1}' ?",
confirmDeleteAssignment: "Zuordnung Ressource ${1} löschen?",
confirmDeleteDocumentVersion: "Lösche Version '${1}' ?",
confirmDeleteExpenseDetail: "Sollen Detailaufwand '${1}' gelöscht werden?",
confirmDeleteLink: "Verbindung mit Element ${1} #${2} löschen?",
confirmDeleteOrigin: "Lösche Ursprung ${1} #${2}?",
confirmDeleteOtherVersion: "Lösche ${2} '${1}' ?",
confirmDeleteResourceCost: "Ressourcekosten für Funktion ${1} löschen?",
confirmDeleteTestCaseRun: "Lösche Testfall #${1} von Testplan?",
confirmDeleteVersionProject: "Lösche Verbindung zwischen Version und Projekt?",
confirmDisconnectAll: "Bestätigung 'Abmelden aller Nutzer' (außer Ihres eigenen Nutzers)",
confirmDisconnection: "Wollen Sie sich abmelden?",
confirmLocaleChange: "Sie haben die Sprache geändert.<br/>Möchten Sie die Seite aktualisieren, um die Änderung zu sehen?",
confirmRemoveFilter: "Lösche Filter '${1}' ?",
confirmResetList: "Setzt die Anzeige auf Standardwert zurück - weitermachen?",
connectionsDurationPerDay: "Connections duration per day",
connectionsNumberPerDay: "Verbindungen pro Tag",
Console: "Konsolemeldungen",
consolidateAlways: "immer",
consolidateIfSet: "nur wenn gewählt (löscht nicht übergeordnete Aktivität)",
consolidateNever: "nie",
Contact: "Kontakt",
contactAdministrator: "Kontaktieren Sie Ihren Administrator.",
contacts: "Kontakte",
contains: "enthält",
Context: "Kontext",
ContextType: "Kontexttyp",
copiedFrom: "kopiert von",
copyAssignments: "Kopiere Zuweisungen zu Aktivitäten (incl. Arbeit)",
copyFromCalendar: "Importiere dieses Jahr zum Kalender",
copyProjectAffectations: "Kopiere Zuweisungen zum Projekt (incl. Unterprojekte)",
copyProjectStructure: "Kopieren der Projektstruktur (Aktivitäten & Meilensteine)",
copySubProjects: "Kopiere Unterprojekt",
copyToClass: "Kopiere als neu",
copyToLinkOrigin: "Verbinde aktuelles Element zur Kopie",
copyToName: "Kopiere Name",
copyToOrigin: "Aktuelles Element als Original des kopierten Elements hinzufügen",
copyToType: "Typ kopiertes Element",
copyToWithAttachments: "Anhänge mitkopieren",
copyToWithLinks: "Verknüpfungen mitkopieren",
copyToWithNotes: "Notizen mitkopieren",
copyWithStructure: "Kopieren gesamte Struktur (Unteraktivitäten & -Meilensteine)",
costAccess: "Kosten anzeigen",
count: "zähle",
created: "erstellt",
criteria: "Filter oder Sortierkriterien",
Criticality: "Kritikalität",
cronLogAsFile: "Protokollieren als Datei",
cronLogAsMail: "Protokollieren als Datei und Mail",
cronLogAsMailWithFile: "Protokollieren als Datei und Mail mit Protokoll",
cronStatus: "Cron Status",
cronTasks: "Hintergrundverarbeitung",
csvFile: "CSV Datei (Comma Separated Value)",
cumulated: "kumuliert",
day: "Tag",
days: "Tage",
dbMaintenance: "Wartung von Daten",
debugLevel0: "Keine Fehlerverfolgung",
debugLevel1: "Fehlerverfolgung",
debugLevel2: "Standard Fehlerverfolgung",
debugLevel3: "Fehler/Debug Stufe",
debugLevel4: "Funktionsverfolgung",
December: "Dezember",
Decision: "Entscheidung",
DecisionType: "Entscheidungstyp",
defaultFilterCleared: "Standard-Filter gelöscht",
defaultFilterError: "Standard-Filter kann nicht auf '$ {1}' gesetzt werden.",
defaultFilterSet: "Standard-Filter auf '$ {1}' gesetzt.",
defaultValue: "Standardwert",
deleteAlerts: "Lösche Alarme",
deleteAudit: "Lösche Verbindungs Logbuch",
deleteButton: "Löschen",
deleteEmails: "Lösche Mails",
Dependency: "Abhängigkeit",
descriptionChange: "Beschreibung geändert",
dialogAffectation: "Ressourcenzuordnung",
dialogAlert: "Alarm",
dialogApprover: "Wähle Genehmiger",
dialogAssignment: "Zuordnung",
dialogAttachement: "Anhang",
dialogBillLine: "Rechnungszeile",
dialogChecklist: "Checkliste",
dialogChecklistDefinitionLine: "Auswahlmöglichkeiten für die Checklistenzeile",
dialogConfirm: "Bestätigung",
dialogCopy: "Kopiere Element",
dialogCopyProject: "Kopiere Projekt",
dialogDependency: "Abhängigkeit hinzufügen",
dialogDependencyActivity: "Abhängigkeit zu Aktivität hinzufügen",
dialogDependencyEdit: "Abhängigkeit ändern",
dialogDependencyExtended: "Abhängigkeit zu Element ${1} #${2} hinzufügen",
dialogDependencyProject: "Verbindung zu Projekt hinzufügen ",
dialogDependencyRestricted: "Füge ${3} zu Element ${1} #${2} hinzu",
dialogDetailCombo: "Details Listenelement",
dialogDocumentVersion: "Dokumentversion",
dialogError: "Fehler",
dialogExpenseDetail: "Details Aufwand",
dialogExport: "Export",
dialogFilter: "Erweiterte Filterfunktion",
dialogInformation: "Information",
dialogLink: "Verbindung hinzufügen ",
dialogLinkAction: "Verbindung zu Aktion hinzufügen",
dialogLinkExtended: "Verbindung zu Element ${1} #${2} hinzufügen",
dialogLinkIssue: "Verbindung zu eine Problem hinzufügen",
dialogLinkRestricted: "Füge Verbindung zwischen Element ${1} #${2} und Element ${3} hinzu.",
dialogLinkRisk: "Verbindung zu Risiko hinzufügen",
dialogNote: "Notiz",
dialogOrigin: "Ursprungselement hinzufügen",
dialogOtherVersion: "Andere Versionen hinzufügen",
dialogPlan: "Kalkuliere Planung für Projekt",
dialogPlanSaveDates: "Speichere geplantes Datum in gefordertes und bestätigtes Datum",
dialogPrint: "Druckvoransicht",
dialogProjectSelectorParameters: "Projektauswahl Parameter",
dialogQuestion: "Frage",
dialogResourceCost: "Ressourcekosten",
dialogTestCaseRun: "Testfall-Durchlauf",
dialogTodayParameters: "Heute Parameter",
dialogVersionProject: "Verbindung Projekt zu Version",
dialogWorkflowParameter: "Wähle Status anzeigen / ausblenden",
Diary: "Terminkalender",
diaryAccess: "Zugriff auf Terminkalender",
disconnect: "Abmeldung",
disconnectAll: "Abmelden aller Nutzer",
disconnected: "Ihre Sitzung wurde vom Administrator beendet<br/>Bitte neu (später) anmelden.",
disconnectMessage: "Ende aktuelle Sitzung",
disconnectSession: "Erzwinge Abmeldung dieser Sitzung",
displayAlert: "Interner Alarm",
displayAlertAndMail: "Interner Alarm & Mail",
displayEndDate: "Anzeige bis",
displayMail: "Mail",
displayModeSelect: "Filterauswahl (mit Autovervollständigung)",
displayModeStandard: "Standard (entspricht WBS Struktur)",
displayNo: "Nein",
displayStartDate: "Anzeige von",
displayYes: "Ja",
displayYesClosed: "Ja (kompakte Ansicht)",
displayYesOpened: "Ja (ausführliche Ansicht)",
displayYesShowOnClick: "Ja (Anzeige bei Mouseclick)",
displayYesShowOnMouse: "Ja (Anzeige bei Mousebewegung)",
document: "Dokumente",
Document: "Dokument",
DocumentDirectory: "Dokumentverzeichnis",
documents: "Dokumente",
DocumentType: "Dokumenttyp",
documentUnlockRight: "Entsperre alle Dokumente",
DocumentVersion: "Dokumentversion",
documentVersionIsRef: "Diese Version ist die letzte Referenz für das Dokument (zuletzt geprüft)",
documentVersionUpdate: "Aktualisiere",
done: "erledigt",
doneoperationclose: "geschlossen",
doneoperationdelete: "gelöscht",
dragAndDrop: "Dateien hierher Ziehen und Ablegen",
duplicateAlreadyLinked: "Duplikat bereits verbunden mit anderem Duplikat",
duplicateIsSame: "Duplikat von sich selbst nicht möglich",
editAffectation: "Ressourcenzuordnung ändern",
editAssignment: "Zuordnung ändern",
editDependencyPredecessor: "Vorgänger ändern",
editDependencySuccessor: "Nachfolger ändern",
editDocumentVersion: "Bearbeite diese Version",
editExpenseDetail: "Aufwandsdetails ändern",
editLine: "Bearbeite diese Zeile",
editNote: "Notiz ändern",
editResourceCost: "Ressourcekosten ändern",
editTestCaseRun: "Testfall-Durchlauf ändern",
editVersionProject: "Verbindung Projekt und Version ändern",
Efficiency: "Effizienz",
elementHistoty: "Historie",
emailMandatory: "Mail muss erfasst sein",
end: "Ende",
Environment: "Stammdaten",
eolDefault: "Standard Format (\r\n)",
eolPostfix: "Spezifisches Format für Postfix < 2.1 (\n)",
ERROR: "Fehler",
errorAck: "Fehler bei Bestätigung",
errorConnection: "Verbindung abgebrochen. Bitte neu anmelden.",
errorConnectionCNX: "SQL FEHLER<BR//>Verbindungsproblem bei '${1}' Für Nutzer '${2}'.<BR/>Überprüfe 'Parameter' Datei.",
errorConnectionDB: "SQL FEHLER<BR/>Verbindungsproblem 'unbekannte Datenbank' '${1}'.<BR/>Überprüfe 'Parameter' Datei.",
errorControlClose: "Element kann nicht geschlossen werden - es bestehen noch nicht geschlossene, aber abhängige Elemente",
errorControlDelete: "Element kann nicht gelöscht werden, da es bestehende Abhängigkeiten gibt.",
errorCreateRights: "Sie haben nicht das Recht zum Erstellen",
errorDeleteCostStartDate: "Neuer Kostensatz kann nicht vor dem alten wirksam werden",
errorDeleteDefaultCalendar: "Standard Kalender kann nicht gelöscht werden.",
errorDeleteDoneBill: "Erledigte Rechnung kann nicht gelöscht werden.",
errorDeleteRights: "Sie haben nicht das Recht zum Löschen",
errorDependencyHierarchy: "Kann keine Abhängigkeit mit übergeordneten Element erstellen",
errorDependencyLoop: "Kann keine gegenseitigen Abhängigkeiten erstellen.",
errorDuplicateActivityPrice: "Ein Aktivitätspreis für das selbe Projekt und Typ bereits vorhanden",
errorDuplicateAffectation: "Dupliziere Zuordnung",
errorDuplicateApprover: "Genehmiger existiert bereits",
errorDuplicateChecklistDefinition: "Checklisten Definition bereits vorhanden (gleiches Element, gleicher Typ)",
errorDuplicateDependency: "Abhängigkeit besteht bereits",
errorDuplicateDocumentVersion: "Version '${1}' gibt es bereits für dieses Dokument",
errorDuplicateIndicator: "Doppelter Indikator",
errorDuplicateLink: "Diese Verbindung besteht bereits",
errorDuplicateStatusMail: "'Mail nach Statusänderung' für dieses Element in diesem Satus bereits definiert",
errorDuplicateTestCase: "Testfall bereits zu Testplan verbunden - 'erlaube Duplikat' ist nicht aktiviert",
errorDuplicateTicketDelay: "Definition 'Verzögerung' für diesen Type in dieser Dringlichkeit gibt es bereits",
errorDuplicateUser: "Mit diesem Namen gibt es schon einen Nutzer",
errorDuplicateVersionProject: "Zuordnung Projekt zu Version kann nur einmal erfolgen",
errorEmptyBill: "Die Rechnung darf nicht leer sein",
errorFinalizeMessage: "Fehler bei finalizeMessageDisplay('${1}') : <br/>Ziel ist kein Knoten und kein Steuerelement<br/>oder lastOperation oder lastOperationStatus ist kein Knoten<br/><br/>${2}",
errorHierarchicLoop: "Kann keine Hierarchie-Abhängigkeiten erstellen.",
errorIdleWithLeftWork: "Element mit offener Arbeit kann nicht geschlossen werden.",
errorImportFormat: "<b>FEHLER - Feldtyp und gewähltes Dateiformat stimmen nicht überein</b><br/>Import abgebrochen",
errorLoadContent: "Fehler bei loadContent('${1}', '${2}', '${3}', '${4}')<br/>Ziel '${5}' ist kein Knoten und kein Steuerelement",
errorLockedBill: "Rechnung gesperrt",
errorMagicQuotesGpc: "'magic_quotes_gpc' muss abgeschalten werden (Wert = false). <br/>Ändern Sie die Datei 'Php.ini'.",
errorMandatoryValidatedDuration: "Gültige Dauer erforderlich.",
errorMandatoryValidatedEndDate: "Gültiges Endedatum erforderlich.",
errorMandatoryValidatedStartDate: "Gültiges Startdatum erforderlich.",
errorMessage: "Fehler aufgetreten bei ${1} mit ${2}",
errorMessageCopy: "${1} Fehler während des Kopierens",
errorNoFile: "Keine Datei zum Hochladen vorhanden",
errorNotFoundFile: "Importdatei nicht gefunden",
errorObjectId: "Fehler mit Schalter NEU : objectId ist kein Knoten",
errorRegisterGlobals: "'register_globals' muss abgeschalten werden (Wert = false). <br/>Ändern Sie die Datei 'Php.ini'.",
errorStartEndDates: "${1}' darf nicht spätester als '${2}' sein.",
errorSubmitForm: "Fehler bei 'submitForm('${1}', '${2}', '${3}')' : <br/> Form '${3}' ist kein Steuerelement.",
errorTooBigFile: "Dateigröße übersteigt maximales Limit von ${1} Bytes (${2})",
errorUpdateRights: "Sie haben nicht das Recht zum Ändern",
errorUploadFile: "Fehler beim Hochladen der Datei. Fehler Kode = ${1}",
errorValueWithoutUnit: "Einheit erforderlich, wenn ein Wert vorhanden ist",
errorWorflow: "Dieser Status ist laut Workflow nicht zugelassen",
errorXhrPost: "Fehler xhrPost return für loadContent('${1}', '${2}', '${3}', '${4}') : <br/> ${5}",
estimated: "Arbeit geschätzt",
evolutive: "Entwicklung",
exceptionMessage: "Ein Ausnahmefall von ${1} bei ${2} ist aufgetreten",
existingDirectoryName: "Dieses Verzeichnis existiert bereits",
ExpenseDetail: "Aufwandsdetail",
ExpenseDetailType: "Aufwandsdetailtyp",
exportReferencesAs: "ID oder Name für Referenzen",
external: "benutzerdefiniert",
ExternalShortcuts: "Externe Abkürzungen",
failed: "nicht erfolgreich",
failedTestCaseRun: "Testfall als 'fehlgeschlagen' markieren",
Feasibility: "Machbarkeit",
February: "Februar",
filterName: "Filtername",
filterOnId: "Filter nach ID",
filterOnName: "Filter nach Name",
filterOnType: "Filter nach Typ",
flashReport: "Blitzbericht",
Friday: "Freitag",
from: "von",
Health: "Projektstatus",
help: "Online Handbuch",
helpAlertCheckTime: "Verzögerung in Sekunden vor neuer Prüfung, ob neuer Alarm vorhanden.",
helpBillNumSize: "Zahl der Stellen für Rechnungsnummer",
helpBillNumStart: "Startnummer für Rechnungen",
helpBillPrefix: "Präfix für Rechnungsnummern",
helpBillSuffix: "Anhang für Rechnungsnummern",
helpBrowserLocaleDateFormat: "Format zur Darstellung des Datums - DD für Tag - MM für Monat - YYYY für Jahr",
helpChangeReferenceOnTypeChange: "Ändere Referenz nach Typänderung",
helpConsolidateValidated: "konsolidiere bestätigte Arbeit & Kosten bei Top-Aktivitäten und -Projekten",
helpCronCheckDates: "Verzögerung für Erzeugung Alarme in Sekunden",
helpCronCheckEmails: "Verzögerung (in Sek.) für Prüfung Maileingang, Speichern von Antworten als Notizen",
helpCronCheckEmailsHost: "IMAP host Verbindungdaten zur Prüfung auf Maileingang, z. B. : {imap.gmail.com:993/imap/ssl}INBOX",
helpCronCheckEmailsPassword: "IMAP password Maileingang",
helpCronCheckEmailsUser: "IMAP Name Maileingang",
helpCronCheckImport: "Verzögerungen autom. Importe in Sek.",
helpCronDirectory: "Arbeitsverzeichnis für CRON Kennzeichen",
helpCronImportDirectory: "Verzeichnis Integration von neuen Dateien",
helpCronImportLogDestination: "Ort Ergebnisprotokoll der automatischen Integration",
helpCronImportMailList: "Mail-Verteiler Ergebnisprotokoll autom. Integration",
helpCronSleepTime: "Standard Cron Wartezeit in Sekunden",
helpCsvSeparator: "Zeichentrennung je Feld im CSV Format für Im-/Export",
helpCurrency: "Währungskennzeichen für Kostensicht",
helpCurrencyPosition: "Position Währungskennzeichen",
helpDayTime: "Anzahl Stunden für Arbeit pro Tag",
helpDefaultProfile: "Standardprofil für neue Nutzer",
helpDefaultProject: "Wähle das Standardprojekt für jede neue Anmeldung.",
helpDefaultTheme: "Standard Benutzeroberfläche, wenn Nutzer keine individuelle Einstellung wählt",
helpDisplayAttachement: "Anzeigemodus für Abschnitt Anhang",
helpDisplayHistory: "Zeige die Änderungshistorie je Element an.",
helpDisplayNote: "Anzeigemodus für Abschnitt Notiz",
helpDisplayOnlyHandled: "Nur Aufgaben 'in Bearbeitung' im 'Ist-Arbeit-Report' anzeigen",
helpDisplayResourcePlan: "Formatierungsoptionen für Ressourcen in Ganttplanung",
helpDocumentReferenceFormat: "Format Dokumentenreferenz",
helpDocumentRoot: "Wurzelverzeichnis für Dokumente",
helpDontReceiveTeamMails: "keine Mails, wenn Empfänger ist aus 'Team' (Resourcen, die dem Projekt zugeordnet sind)",
helpDownload: "Lade diese Datei herunter.",
helpDraftSeparator: "Trennzeichen für ENTWURF im Versionsnamen",
helpEndAM: "Endzeit der Standardarbeitszeit am Vormittag",
helpEndPM: "Endzeit der Standardarbeitszeit am Nachmittag",
helpFilenameCharset: "Zeichensatz für Dateien auf dem Server, um Nicht-ASCII-Zeichen zu berücksichtigen (z. B. ISO-8859-15)",
helpGanttPlanningPrintOldStyle: "Drucke Gantt im alten Format - sofern Fehler beim Druck auftraten - Sie verlieren zwar Besonderheiten im Layout, gewinnen aber Stabilität",
helpGetVersion: "Aktivitätstypen",
helpHideMenu: "Verdecke oder zeige linkes 'Baum'-Menü",
helpImport: "Anzeige der Feldnamen",
helpImputationUnit: "Einheit für Ist-Arbeit: Tage oder Stunden",
helpLang: "Wählen Sie ihre bevorzugte Sprache.",
helpLdapDefaultProfile: "Standard Profil für neue Nutzer, die durch LDAP hinzugefügt werden.",
helpLdapMsgOnUserCreation: "Nachrichtentyp oder Alarm an Adminstrator, bei neuen LDAP Nutzern",
helpLogFile: "Log Dateiname (kann den Parameter ${date} enhalten, um 1 Datei pro Tage zu haben)",
helpLogLevel: "Log Stufe",
helpMaxDaysToBookWork: "Erfassung von IST-Arbeit in die Zukunft über die festgelegte Anzahl von Tagen hinaus, führt zur Sicherheitsmeldung",
helpMaxProjectsToDisplay: "Maximale Anzahl von Projekten in der Datenbank ab der Projekte in der Planungssicht begrenzt werden",
helpnitializePassword: "Automatische Passwort-Initialisierung bei neuen Nutzern",
helpOtherEmail: "manuelle Eingabe Mail-Adresse",
helpParamAdminMail: "E-Mail des Administrators",
helpParamAttachementDirectory: "Verzeichnis für Anhänge",
helpParamAttachementMaxSize: "Maximale Größe für Anhänge in byte - muss kleiner oder gleich zum PHP Parameter : upload_max_filesize sein",
helpParamConfirmQuit: "Anzeige Abmelden-Bestätigung bei 'Schließen d. Tabs' oder 'Rücktaste'",
helpParamDbDisplayName: "Datenbankname der in der Fußleiste angezeigt wird",
helpParamDefaultLocale: "Standardsprache, wenn Nutzer keine individuelle Einstellung wählt",
helpParamDefaultPassword: "Standard Password bei Nutzeranlage",
helpParamDefaultTimezone: "Standard Zeitzone - liste siehe entsprechende Webseite",
helpParamFadeLoadingMode: "Neue Bildschirme in Überblendemodus anzeigen",
helpParamIconSize: "Größe der Icons in der Menübaumanzeige",
helpParamLdap_allow_login: "Erlaube Verbindung mit LDAP Nutzer",
helpParamLdap_base_dn: "LDAP Basis DN für ProjecQtOr Nutzer",
helpParamLdap_host: "LDAP Hostadresse oder IP",
helpParamLdap_port: "LDAP port - Standard ist 389",
helpParamLdap_search_pass: "LDAP Password für Hauptnutzer",
helpParamLdap_search_user: "LDAP Hauptnutzer für Verbindung und Suche in LDAP",
helpParamLdap_user_filter: "LDAP Filter zur Suche nach Nutzernamen - Ergebnis %USERNAME% gefunden",
helpParamLdap_version: "LDAP Protokollversion, um Kompatibilitätsprobleme zu lösen",
helpParamLockAfterWrongTries: "lock user after a given number of wrong connexions",
helpParamMailBodyApprover: "Text für Mails 'Genehmigung von Anforderungen'",
helpParamMailBodyUser: "Text für Login Informations Mails",
helpParamMailEol: "Zeilenende Format für Mails zur Problemlösung von Postfix < 2.1",
helpParamMailReplyTo: "Antworten an' Mail-Adresse",
helpParamMailReplyToName: "Name des Mail-Senders - auch für Antworten",
helpParamMailSender: "Absender' Mail-Adresse",
helpParamMailSendmailPath: "Pfad für 'sendmail' wenn nicht automatisch durch PHP identifiziert (im Zweifel leer lassen)",
helpParamMailSmtpPassword: "SMTP login password",
helpParamMailSmtpPort: "Port für email (smtp) server [Standardwert = 25]",
helpParamMailSmtpServer: "Smtp server [Standard = 'localhost']",
helpParamMailSmtpUsername: "SMTP login Name - notwendig für die Authentifizierung am Verbindungsserver",
helpParamMailTitleAnyChange: "Mailtitel bei Änderungen",
helpParamMailTitleApprover: "Titel für Mails 'Genehmigung von Anforderungen'",
helpParamMailTitleAssignment: "Mailtitel für hinzugefügte Zuweisung",
helpParamMailTitleAssignmentChange: "Mailtitel für geänderte Zuweisung",
helpParamMailTitleAttachment: "Mailtitel für hinzugefügte Anhänge",
helpParamMailTitleDescription: "Mailtitel für geänderte Beschreibungen",
helpParamMailTitleDirect: "Mailtitel, die manuell (Mail Schalter) versandt werden",
helpParamMailTitleNew: "Mailtitel für hinzugefügte Elemente",
helpParamMailTitleNote: "Mailtitel für hinzugefügte Notizen",
helpParamMailTitleNoteChange: "Mailtitel für geänderte Notizen",
helpParamMailTitleResponsible: "Mailtitel für geänderte Verantwortliche",
helpParamMailTitleResult: "Mailtitel für geänderte Ergebnisse",
helpParamMailTitleStatus: "Mailtitel für Statusänderungen",
helpParamMailTitleUser: "Titel für Login Informations Mail",
helpParamMemoryLimitForPDF: "Speicherlimit in MB für PDF-Erstellung - zu wenig Speicher führt zu PDF Problemen und zu viel Speicher bringt den Server zum Absturz",
helpParamPasswordMinLength: "Mindestzahl von Zeichen für das Password",
helpParamReportTempDirectory: "Temporäres Verzeichnis für Berichte - muss im Web Dokumentenstamm sein, um Images zu bekommen ",
helpParamTopIconSize: "Größe der Icons in der Top-Menü-Anzeige",
helpPasswordValidityDays: "Passwort Gültigkeit (in Tage) bis zur Änderung-Aufforderung - 0 für dauerhafte Gültigkeit",
helpPdfInNewWindow: "PDF Exporte in neuem Fenster (oder Tabulator) oder aktuellem Fenster voranzeigen",
helpPreserveUploadedFileName: "Soll die Datei nach Download mit dem Ursprungs-Dateinamen (Ja) oder gemäß Formatierung (Nein) benannt werden.",
helpPrintInNewWindow: "Voranzeige Druckausgabe in neuem Fenster (oder Tabulator) oder aktuellem Fenster",
helpRealWorkOnlyForResponsible: "Nur Verantwortlicher kann IST-Aufwände im Ticket erfassen",
helpReferenceFormatNumber: "Anzahl Stellen für Referenznummernzähler",
helpReferenceFormatPrefix: "Präfix Format für Referenznummer",
helpRefreshUpdates: "Aktualisiere Anzeige nach Änderungen.",
helpRememberMe: "Erinnerung' Funktion für Autoverbindung erlauben",
helpResetColor: "Farbe zurücksetzen - wird transparent",
helpResetPassword: "Passwort zurücksetzen - Bitte sichern nach dieser Aktion.",
helpSelectFile: "Wähle die Datei zum Hochladen.",
helpSetHandledOnRealWork: "Aufgabe erst auf 'begonnen' setzen, wenn Ist-Arbeit erfaßt wurde",
helpSetResponsibleIfNeeded: "Weise automatisch Verantwortlichen als Ressource zu, wenn eine Resource erforderlich ist.",
helpSetResponsibleIfSingle: "Weise automatisch Verantwortlichen als Ressource zu, wenn nur eine Resource dem Projekt zugewiesen ist.",
helpStartAM: "Start Standardarbeitszeit am Vormittag",
helpStartPage: "Anzeige nach Logon",
helpStartPM: "Start Standardarbeitszeit am Nachmittag",
helpSwitchedMode: "Legt Anzeige zwischen Listen- und Detailanzeige fest",
helpTheme: "Farbe für die Anzeige ändern",
helpTitle: "Titel für Tooltip",
helpVersionReferenceSuffix: "Anhang für Versions-Referenz",
helpWorkUnit: "Einheit für Arbeit",
hour: "Stunde",
hours: "Stunden",
iconSizeBig: "groß (32px)",
iconSizeMedium: "mittel (22px)",
iconSizeSmall: "klein (16px)",
ifEmpty: "wenn leer",
imputationAccess: "Zugriff auf Ressourcenzuordnung ",
indentDecreaseButton: "Einrückung verringern",
indentIncreaseButton: "Element unter Vorgänger einrücken",
IndicatorDefinition: "Indikator",
IndividualExpense: "Individueller Aufwand",
IndividualExpenseType: "Individueller Aufwandstyp",
INFO: "Information",
infoLocaleChange: "Sie änderten die bevorzugte Sprache.<br/>Bis zur nächsten Neuanmeldung werden nicht alle Informationen korrekt angezeigt.<br/>Deshalb bitte speichern Sie die Parameter und melden sich neu an.",
infoLocaleChangeShort: "Sie änderten die bevorzugte Sprache.",
infoMessage: "Besuchen Sie die 'ProjecQtOr web Site'.",
initialDueDate: "Berücksichtige anfängliches Startdatum",
initialDueDateTime: "Berücksichtige anfängliches Startdatum/-zeit",
initialEndDate: "Berücksichtige gewünschtes Endedatum",
initialStartDate: "Berücksichtige gewünschtes Startdatum",
invalidAccessAttempt: "Unzulässiger Zugriffsversuch",
invalidDirectoryName: "Ungültiger Verzeichnisname",
invalidGpsData: "Ungültige GPS Daten",
invalidLogDir: "Log-Buch-Verzeichnis '${1}' ist ungültig. Überprüfen Sie die 'Parameter' Datei.",
invalidLogin: "Ungültige Anmeldedaten.",
invalidPasswordChange: "Ungültiges neues Passwort<br> - es muss mindestens ${1} Zeichen lang sein.<br/> - es muss unterschiedlich vom Standard-/Start-Wert sein.",
Invoice: "Rechnung",
InvoiceType: "Rechnungtyp",
isEmpty: "ist leer",
isIssuerOf: "ist Ersteller von",
isNotEmpty: "ist nicht leer",
isResponsibleOf: "ist verantwortlich für",
Issue: "Probleme",
IssueType: "Problemtyp",
January: "Januar",
July: "Juli",
June: "Juni",
labelDisplayOnlyCurrentWeekMeetings: "Zeige nur Besprechungen der aktuellen Woche",
labelHideDone: "'nicht bearbeitete' Elemente ausblenden",
labelHideNotHandled: "'erledigte' Elemente ausblenden",
labelMultipleMode: "Mehrfach-Modus",
labelShowIdle: "Zeige abgeschlossene Elemente",
labelShowLeftWork: "Zeige verbleibende Arbeit",
labelShowMilestone: "Meilensteine anzeigen",
labelShowPlannedWork: "Zeige geplante Arbeit",
labelShowProjectLevel: "Zeige Projektebene",
labelShowResource: "Zeige Ressourcen",
labelShowWbs: "Zeige PSP",
langDe: "Deutsch",
langEl: "Griechisch",
langEn: "Englisch - English",
langEs: "Spanisch - Español",
langFa: "Farsi (Persian) - فارسی",
langFr: "Französisch - Français",
langJa: "Japanisch",
langNl: "Holländisch - Nederlands",
langPt: "Portugisisch - Português",
langPtBr: "Portuguese (Brazil) - Português (Brazil)",
langRu: "Russisch - Pусский",
langZh: "Chinese - 简体中文",
ldapError: "LDAP Fehler",
left: "Arbeit verbleibend",
Likelihood: "Wahrscheinlichkeit",
limitedDisplay: "Liste ist gekürzt auf die ${1} ersten Positionen",
Link: "Verbindung",
linkElement: "verbundenes Element",
linkType: "verbundener Elementtyp",
listTodayItems: "Anzuzeigende Elemente",
lockDocument: "Sperre dieses Dokument",
lockedLogDir: "Logbuch-Verzeichnis '${1}' ist gesperrt. Logbuch-Funktion nicht verfügbar.",
lockedUser: "Dieser Nutzer ist gesperrt.<br/>Bitte Kontakt mit Administrator aufnehmen.",
lockRequirement: "Sperre Anforderung",
login: "Anmeldung",
loginOK: "Anmeldung war erfolgreich",
Mail: "Mailausgang",
mailSent: "Mail versandt",
mailSentTo: "Mail versandt an '${1}'",
mainProject: "Hauptprojekt",
maintenanceDone: "${1} '${2}' ${3}",
manageConnections: "Verwalte Verbindungen",
mandatoryField: "erforderlich",
mandatoryOnDoneStatus: "erforderlich bei 'erledigt'-Status",
mandatoryOnHandledStatus: "erforderlich bei 'bearbeitet'-Status",
March: "März",
markAsRead: "Als gelesen markieren",
max: "max",
May: "Mai",
mean: "mean",
Meeting: "Besprechung",
MeetingType: "Besprechungstyp",
members: "Mitglieder",
menu: "Menü",
menuAccessProfile: "Zugriffsmodus",
menuAccessRight: "Zugriff auf Daten",
menuAction: "Aktionen",
menuActionType: "Aktionstypen",
menuActivity: "Aktivitäten",
menuActivityPrice: "Aktivitätenpreis",
menuActivityType: "Aktivitätstypen",
menuAdmin: "Verwaltung",
menuAffectation: "Ressourcenzuordnungen",
menuAlert: "Alarme",
menuAllAction: "Alle Aktionen",
menuAllActivity: "Alle Aktivitäten",
menuAllComponent: "Alle Komponenten",
menuAllIssue: "Alle Probleme",
menuAllMeeting: "Alle Besprechungen",
menuAllRisk: "Alle Risiken",
menuAnomaly: "Unregelmäßigkeiten",
menuAudit: "Prüfe Verbindungen",
menuAutomation: "Steuerung & Automatisierung",
menuBarMoveLeft: "Balken nach links verschieben",
menuBarMoveRight: "Balken nach rechts verschieben",
menuBill: "Rechnungen",
menuBillType: "Rechnungstypen",
menuCalendar: "Kalender",
menuCalendarDefinition: "Kalender",
menuChecklistDefinition: "Checklisten",
menuClient: "Kunden",
menuClientType: "Kundentypen",
menuCommand: "Aufträge",
menuCommandType: "Auftragstypen",
menuComponent: "Komponenten",
menuContact: "Kontakte",
menuContext: "Kontext",
menuContextType: "Kontextypen",
menuCriticality: "Kritikalitäten",
menuDecision: "Entscheidungen",
menuDecisionType: "Entscheidungstypen",
menuDiary: "Terminkalender",
menuDocument: "Dokumente",
menuDocumentDirectory: "Dokumentenverzeichnis",
menuDocumentType: "Dokumenttypen",
menuEfficiency: "Effizienzen",
menuEnvironment: "Stammdaten",
menuEnvironmentalParameter: "Stammdaten",
menuExpenseDetailType: "Aufwandsdetailtypen",
menuFeasibility: "Machbarkeiten",
menuFinancial: "Finanzen",
menuFollowup: "Planung & Berichte",
menuGlobalParameter: "Globale Parameter",
menuHabilitation: "Zugriff auf Formulare",
menuHabilitationOther: "Spezielle Zugriffe",
menuHabilitationParameter: "Zugriffsrechte",
menuHabilitationReport: "Zugriff auf Berichte",
menuHealth: "Projektstatus",
menuImportData: "Daten importieren",
menuImputation: "Ist-Arbeit-Report ",
menuIndicatorDefinition: "Indikatoren",
menuIndividualExpense: "Individuelle Aufwände",
menuIndividualExpenseType: "Individuelle Aufwandtypen",
menuInvoice: "Rechnung",
menuInvoiceType: "Rechnungstypen",
menuIssue: "Probleme",
menuIssueType: "Problemtypen",
menuLikelihood: "Wahrscheinlichkeit",
menuListOfValues: "Werte & Ausprägungen",
menuMail: "Mailausgang",
menuMeeting: "Besprechungen",
menuMeetingType: "Besprechungstypen",
menuMessage: "Meldungen",
menuMessageType: "Meldungstypen",
menuMilestone: "Meilensteine",
menuMilestoneType: "Meilensteintypen",
menuOpportunity: "Chancen",
menuOpportunityType: "Chancentypen",
menuOverallProgress: "Gesamt Fortschritt",
menuParameter: "Parameter",
menuPayment: "Zahlungen",
menuPaymentType: "Zahlungstypen",
menuPeriodicMeeting: "Regelmäßige Besprechungen",
menuPlanning: "Planung",
menuPortfolioPlanning: "Projekt Portfolio",
menuPredefinedNote: "vordefinierte Notizen",
menuPriority: "Prioritäten",
menuProduct: "Produkte",
menuProfile: "Profile",
menuProject: "Projekte",
menuProjectExpense: "Projektaufwände",
menuProjectExpenseType: "Projektaufwandstypen",
menuProjectLife: "Produkt-Lebenzyklus",
menuProjectParameter: "Projekt Parameter",
menuProjectType: "Projekttypen",
menuQuality: "Qualitätslevel",
menuQuestion: "Fragen",
menuQuestionType: "Fragentypen",
menuQuotation: "Angebote",
menuQuotationType: "Angebotstypen",
menuRecipient: "Empfänger",
menuReports: "Berichte",
menuRequestor: "Abfragegenerator",
menuRequirement: "Anforderungen",
menuRequirementTest: "Anforderungen & Tests",
menuRequirementType: "Anforderungstypen",
menuResource: "Ressourcen",
menuResourcePlanning: "Ressourcenplanung",
menuReview: "Protokolle / Logbücher",
menuRisk: "Risiken",
menuRiskLevel: "Risikoebenen",
menuRiskManagementPlan: "Risiko & Problem Management",
menuRiskType: "Risikotypen",
menuRole: "Funktionen",
menuSeverity: "Auswirkung",
menuStatus: "Status",
menuStatusMail: "Mails nach Statusänderungen",
menuTeam: "Teams",
menuTerm: "Konditionen",
menuTestCase: "Testfälle",
menuTestCaseType: "Testfalltypen",
menuTestSession: "Testpläne",
menuTestSessionType: "Testplantypen",
menuTicket: "Tickets",
menuTicketDelay: "Verzögerungen für Tickets",
menuTicketSimple: "Tickets (einfach)",
menuTicketType: "Tickettypen",
menuToday: "Heute",
menuTool: "Werkzeuge",
menuTrend: "Trends",
menuType: "Liste der Typen",
menuUrgency: "Dringlichkeiten",
menuUser: "Nutzer",
menuUserParameter: "Nutzerparameter",
menuVersion: "Versionen",
menuWork: "Arbeit",
menuWorkflow: "Workflow",
Message: "Meldung",
messageConfirmationNeeded: "Aktion erfordert Bestätigung",
messageDateMandatoryWithTime: "Das Feld '${1}' muss Datum mit Zeit enthalten",
messageError: "FEHLER",
messageImputationSaved: "Ist-Aufwände gesichert",
messageInvalidControls: "Ungültiges Steuerelement",
messageInvalidDate: "Das Datum muss einen gültigen Wert haben.",
messageInvalidDateNamed: "Das Feld '${1}' muss ein gültiges Datum haben.",
messageInvalidNumeric: "Wert von ${1} ist nicht numerisch",
messageInvalidTime: "Die Zeit muss einen gültigen Wert haben.",
messageInvalidTimeNamed: "Das Feld '${1}' muss einen gültigen Wert haben.",
messageItemDelete: "Element ${1} # ${2} wurde nicht in der Datenbank gefunden.",
messageMandatory: "Feld '${1}' ist erforderlich",
messageNoAccess: "Sie haben nicht die Zugriffsberechtigung für ${1}.",
messageNoChange: "Keine Änderung vorhanden.",
messageNoData: "Nr. ${1} ist ausgewählt.",
messageNoImputationChange: "Keine Änderung bei Ist-Arbeit vorhanden.",
messageParametersNoChangeSaved: "Keine Änderung bei Parametern vorhanden.",
messageParametersSaved: "Parameter sind gesichert.",
messagePreview: "Bereite Druckvorschau vor …",
messageSelectedNotAvailable: "Sie wählten '${1}'.<br/>Die Funktionalität ist nicht verfügbar in dieser Version von ProjecQtOr.<br/>Tut uns leid …",
messageTextTooLong: "Länge für ${1} überschreitet ${2} Zeichen",
MessageType: "Meldungstyp",
Milestone: "Meilenstein",
MilestoneType: "Meilensteintyp",
min: "min",
minute: "Minuten",
Monday: "Montag",
month: "Monat",
moveCancelled: "Verschiebung nicht möglich.",
moveDone: "Element erfolgreich verschoben",
msgCannotDeleteContact: "Kontakt kann nicht gelöscht werden, denn er ist auch ein Benutzer.",
msgCannotDeleteProfile: "Dieses Profil kann nicht gelöscht werden",
msgCannotDeleteProjectType: "Dieser Typ von Projekten kann nicht gelöscht werden",
msgCannotDeleteResource: "Ressource kann nicht gelöscht werden, denn sie ist auch ein Benutzer.",
msgCannotDeleteStatus: "Dieser Standardstatus kann nicht gelöscht werden",
msgEnterPlannedDA: "Geplantes Datum und Betrag müssen beide erfaßt werden.",
msgEnterRealDA: "Ist-Datum und -Betrag müssen beide erfaßt werden.",
msgEnterRPAmount: "Betrag (geplant oder ist) muss erfaßt werden.",
msgEnterRPDate: "Datum (geplant oder ist) muss erfaßt werden.",
msgIncorrectReceiver: "Empfänger kann für dieses Element nicht ausgewählt werden.",
msgNotGranted: "Sie haben nicht das Recht für diese Operation",
msgParentActivityInSameProject: "Übergeordnete Aktivität muss im selben Projekt vorhanden sein.",
msgParentRequirementInSameProjectProduct: "Übergeordnete Anforderung muss im selben Projekt vorhanden sein.",
msgParentTestCaseInSameProjectProduct: "Übergeordneter Testfall muss im selben Projekt vorhanden sein.",
msgPdfDosabled: "PDF export ist deaktiviert.",
msgPlanningActivityInSameProject: "Planungstyp muss im selben Projekt vorhanden sein.",
msgRealWorkInTheFuture: "Ihre IST-Aufwand-Meldung liegt über den zugelassenen ${1} Tagen in der Zukunft - Wollen Sie das?",
msgTranslatable: "Achtung - dieses Feld wird gemäß lokalen Einstellungen übersetzt.",
msgTranslation: "Übersetzung",
msgUnableToDeleteRealWork: "Kann nicht gelöscht werden, da Ist-Arbeit gebucht ist.",
never: "nie",
newLine: "<br/><br/>",
newParameters: "${1} neue Paramenter in Version ${2}",
newPassword: "Neues Passwort",
newUser: "Neuer Nutzer",
newUserMessage: "Nutzer '${1}' von LDAP erstellt",
newVersion: "Neue Version ${1} auf ProjecQtOr Webseite verfügbar",
nextDays: "Nächste Tage",
noChecklistDefined: "Keine Checkliste für dieses Element",
noDataToDisplay: "Keine Daten zur Anzeige verfügbar",
noFilterClause: "Keine Filterklausel",
noItemSelected: "Kein Element ausgewählt",
noMailSent: "Kann Mail nicht an '${1}'. ${2} senden.",
noStoredFilter: "Keine gespeicherten Filter",
notAbleToStopCron: "Cron Prozess kann nicht gestoppt werden. Bitte nochmals versuchen oder löschen Sie '/file/cron/RUNNING file'",
notAmongst: "nicht über",
notApproved: "nicht genehmigt",
notAssignedWork: "nicht zugewiesene Arbeit",
notContains: "enthält nicht",
Note: "Notiz",
noteAdd: "Notiz hinzugefügt",
noteChange: "Notiz geändert",
noteFromEmail: "Notiz als Mail erhalten",
notPlanned: "nicht geplant",
November: "November",
October: "Oktober",
openDays: "offene Tage",
openHours: "offene Stunden",
OperatingSystem: "OS",
operationDelete: "gelöscht",
operationInsert: "eingefügt",
operationUpdate: "aktualisiert",
operatorNotSelected: "Operator ist verpflichtend",
Opportunity: "Chance",
OpportunityType: "Chancentype",
Origin: "Ursprung",
originElement: "Ursprungselement",
originType: "Urspungstyp",
OtherVersion: "Andere Version",
otherVersionAdd: "Andere Version hinzufügen",
otherVersionDelete: "Andere Version löschen",
otherVersionSetMain: "Setze diese Version als Hauptversion",
OverallProgress: "Gesamt Fortschritt",
paramAlertCheckTime: "Verzögerung um Alarme prüfen in Sek.",
paramBillNumSize: "Zahl der Stellen für Rechnungsnummer",
paramBillNumStart: "Startnummer für Rechnungen",
paramBillPrefix: "Vorspann für Rechnungsnummern",
paramBillSuffix: "Anhang für Rechnungsnummern",
paramBrowserLocaleDateFormat: "Format zur Darstellung des Datums",
paramChangeReferenceOnTypeChange: "Ändere Referenz nach Typänderung",
paramConsolidateValidated: "konsolidiere bestätigte Arbeit & Kosten",
paramCronCheckDates: "Verzögerung Erzeugung Alarme in Sek.",
paramCronCheckEmails: "Verzögerung Maileingangprüfung in Sek.",
paramCronCheckEmailsHost: "IMAP host zur Prüfung auf Maileingang",
paramCronCheckEmailsPassword: "IMAP password Maileingang",
paramCronCheckEmailsUser: "IMAP Name Maileingang",
paramCronCheckImport: "Verzögerungen autom. Importe in Sek.",
paramCronDirectory: "CRON Arbeitsverzeichnis",
paramCronImportDirectory: "Verzeichnis automatisch integrierter Dateien",
paramCronImportLogDestination: "Ort für Protokolle",
paramCronImportMailList: "Mailverteiler für Protokolle",
paramCronSleepTime: "Generelle Cron Wartezeit in Sekunden",
paramCsvSeparator: "Trenner für CSV Dateien",
paramCurrency: "Währung",
paramCurrencyPosition: "Position Währungskennzeichens in Kostensicht",
paramDayTime: "Anzahl Stunden pro Tag",
paramDefaultProfile: "Standarprofil bei neuen Nutzern",
paramDefaultProject: "Standard Projekt",
paramDefaultTheme: "Standard Benutzeroberfläche",
paramDisplayAttachement: "Zeige Anhänge",
paramDisplayHistory: "Zeige Historie",
paramDisplayNote: "Zeige Notizen",
paramDisplayOnlyHandled: "Nur 'begonnen' Aufgaben anzeigen",
paramDisplayResourcePlan: "Anzeige Ressourcen im Gantt",
paramDocumentReferenceFormat: "Format Dokumentenreferenz",
paramDocumentRoot: "Wurzelverzeichnis für Dokumente",
paramDontReceiveTeamMails: "Kein Empfang von Team Mails",
paramDraftSeparator: "Trennzeichen für DRAFT im Versionsnamen",
paramEndAM: "Endezeit Vormittag",
paramEndPM: "Endezeit Nachmittag",
paramFilenameCharset: "Zeichensatz für Dateien auf dem Server",
paramGanttPlanningPrintOldStyle: "Drucke Gantt im alten Format",
paramGetVersion: "Prüfung, auf neue Version",
paramHideMenu: "Menü ausblenden",
paramImputationUnit: "Einheit für Ist-Arbeit",
paramInitializePassword: "Passwort-Initialisierung bei neuen Nutzern",
paramLang: "Sprache",
paramLdapDefaultProfile: "Standard-Profil für LDAP Nutzer",
paramLdapMsgOnUserCreation: "Nachricht bei neuen Nutzer durch LDAP",
paramLogFile: "Log Dateiname",
paramLogLevel: "Log Stufe",
paramMaxDaysToBookWork: "Max. Tage um IST-Aufwände zu buchen",
paramMaxItemsInTodayLists: "Maximale Positionen in 'Heute' Ansicht",
paramMaxProjectsToDisplay: "Maximal anzuzeigende Projekte",
paramNone: "keine",
paramParamAdminMail: "E-Mail des Administrators",
paramParamAttachementDirectory: "Verzeichnis für Anhänge",
paramParamAttachementMaxSize: "Maximale Größe für Anhänge",
paramParamConfirmQuit: "Bitte bestätigen Sie die Abmeldung",
paramParamDbDisplayName: "Name der Datenbank",
paramParamDefaultLocale: "Standardsprache",
paramParamDefaultPassword: "Standard Password",
paramParamDefaultTimezone: "Zeitzone",
paramParamFadeLoadingMode: "Anzeige im Überblendmodus",
paramParamIconSize: "Icon Größe im Menü",
paramParamLdap_allow_login: "Verbindung mit LDAP Nutzer",
paramParamLdap_base_dn: "LDAP Basis DN",
paramParamLdap_host: "LDAP Host",
paramParamLdap_port: "LDAP Port",
paramParamLdap_search_pass: "LDAP Password",
paramParamLdap_search_user: "LDAP Nutzer",
paramParamLdap_user_filter: "LDAP Nutzerfilter",
paramParamLdap_version: "LDAP Version",
paramParamLockAfterWrongTries: "lock user after wrong tries",
paramParamMailBodyApprover: "Text für Mails 'Genehmigung von Anforderungen'",
paramParamMailBodyUser: "Text für Mails an Nutzer",
paramParamMailEol: "Zeilenende Format für Mails",
paramParamMailReplyTo: "Antworten an' Mail-Adresse",
paramParamMailReplyToName: "Name Mail-Sender - auch für Antworten",
paramParamMailSender: "Absender' Mail-Adresse",
paramParamMailSendmailPath: "Pfad für 'sendmail'",
paramParamMailSmtpPassword: "SMTP login password",
paramParamMailSmtpPort: "smtp Port",
paramParamMailSmtpServer: "smtp Server",
paramParamMailSmtpUsername: "SMTP login Name",
paramParamMailTitleAnyChange: "Mailtitel für geänderte Zuweisung",
paramParamMailTitleApprover: "Titel für Mails 'Genehmigung von Anforderungen'",
paramParamMailTitleAssignment: "Mailtitel für geänderte Zuweisung",
paramParamMailTitleAssignmentChange: "Mailtitel für geänderte Zuweisung",
paramParamMailTitleAttachment: "Mailtitel für 'hinzugefügte Anhänge'",
paramParamMailTitleDescription: "Mailtitel für geänderte Beschreibungen",
paramParamMailTitleDirect: "Mailtitel, die manuell (Mail Schalter) versandt werden",
paramParamMailTitleNew: "Mailtitel für 'hinzugefügte Elemente'",
paramParamMailTitleNote: "Mailtitel für 'hinzugefügte Notizen'",
paramParamMailTitleNoteChange: "Mailtitel für geänderte Notizen",
paramParamMailTitleResponsible: "Mailtitel für 'geänderte Verantwortliche'",
paramParamMailTitleResult: "Mailtitel für geänderte Ergebnisse",
paramParamMailTitleStatus: "Mailtitel für 'Statusänderungen'",
paramParamMailTitleUser: "Mailtitel an Nutzer",
paramParamMemoryLimitForPDF: "Speicherlimit in MB für PDF-Erstellung",
paramParamPasswordMinLength: "Mindestzahl von Zeichen für das Password",
paramParamReportTempDirectory: "Temporäres Verzeichnis für Berichte",
paramParamTopIconSize: "Größe der Icons in der Top-Menü-Anzeige",
paramPasswordValidityDays: "Passwort Gültigkeit (in Tage)",
paramPdfInNewWindow: "PDF export in neuem Fenster",
paramPreserveUploadedFileName: "Original Dateinamen zusätzlich speichern",
paramPrintHistory: "Druck Historie",
paramPrintInNewWindow: "Druck in neuem Fenster",
paramProjectIndentChar: "Zeichen für Einrückung bei Projekten",
paramRealWorkOnlyForResponsible: "Nur Verantwortlicher arbeitet an Ticket",
paramReferenceFormatNumber: "Anzahl Stellen für Referenznummernzähler",
paramReferenceFormatPrefix: "Präfix Format für Referenz",
paramRefreshUpdates: "Wiederhole Aktualisierung",
paramRememberMe: "Erinnerung' Funktion erlauben",
paramSetHandledOnRealWork: "Aufgabe auf 'begonnen' setzen, wenn Ist-Arbeit erfaßt",
paramSetResponsibleIfNeeded: "Verantwortlichen automatisch setzen, wenn erforderlich",
paramSetResponsibleIfSingle: "Verantwortlichen automatisch setzen, wenn einzige Ressource",
paramStartAM: "Startzeit Vormittag",
paramStartPage: "erste Seite",
paramStartPM: "Startzeit Nachmittag",
paramSwitchedMode: "Umschaltmodus",
paramTheme: "Thema",
paramVersionReferenceSuffix: "Anhang für Versions-Referenz",
paramWorkUnit: "Einheit für Arbeit",
passed: "erfolgreich",
passedTestCaseRun: "Testfall als 'erfolgreich' markieren",
password: "Passwort",
passwordChanged: "Passwort geändert.",
passwordReset: "Passwort zurückgesetzt auf '${1}'.<br/>Bitte sichern, damit die Änderung wirksam wird.",
passwordResetMessage: "Passwort zurückgesetzt auf '${1}'.<br>Sie müssen es bei der ersten Anmeldung ändern.",
Payment: "Zahlung",
PaymentType: "Zahlungstyp",
percent: "%",
periodForTasks: "Zeitraum für Aufgabenauswahl",
periodicEvery: "alle",
periodicFor: "für",
periodicityDaily: "täglich",
periodicityMonthlyDay: "gleicher Tag in jeden Monat",
periodicityMonthlyWeek: "gleiche Woche in jeden Monat",
periodicityWeekly: "gleicher Tag in jeder Woche",
periodicityYearly: "gleicher Tag in jedem Jahr",
PeriodicMeeting: "Regelmäßige Besprechungen",
periodicMonths: "Monate",
periodicOn: "an",
periodicTh: "ste",
periodicTimes: "Wiederholungen",
periodicTo: "bis",
periodicUntil: "bis",
periodicWeeks: "Wochen",
periodScale: "Skala",
planDatesNotSaved: "kein geplantes Datum gespeichert",
planDatesSaved: "geplantes Datum gespeichert",
planDone: "Planung wird kalkuliert in ${1} Sekunden.",
planDoneWithLimits: "Folgende Aufgaben konnten nicht geplant werden, da die Resoucenzuordnung endet :",
planned: "geplant",
PlannedCostOverAssignedCost: "Vergleich geplante Kosten mit zugewiesenen Kosten",
PlannedCostOverValidatedCost: "Vergleich geplante Kosten mit bestätigten Kosten",
plannedEndDate: "Berücksichtige geplantes Endedatum",
plannedStartDate: "Berücksichtige geplantes Startdatum",
PlannedWorkOverAssignedWork: "Geplante Arbeit verglichen mit zugewiesener Arbeit",
PlannedWorkOverValidatedWork: "Geplante Arbeit verglichen mit bestätigter Arbeit",
PlanningModeALAP: "so spät wie möglich",
PlanningModeASAP: "so früh wie möglich",
PlanningModeFDUR: "Feste Dauer",
PlanningModeFIXED: "fester Meilenstein",
PlanningModeFLOAT: "flexibler Meilenstein",
PlanningModeFULL: "normal in ganzen Tagen",
PlanningModeGROUP: "zusammenarbeiten",
PlanningModeHALF: "normal in halben Tagen",
PlanningModeREGUL: "normal zwischen Datum",
planningRight: "Planung kalkulieren",
Predecessor: "Vorgänger",
PredefinedNote: "vordefinierte Notizen",
print: "Druck",
printList: "drucke die Liste",
printPlanning: "drucke die Planung",
Priority: "Priorität",
private: "privat",
Product: "Produkt",
Profile: "Profile",
profileAdministrator: "Administrator",
profileExternalProjectLeader: "Externer Projektleiter",
profileExternalTeamMember: "Externes Projektteammitglied",
profileGuest: "Gastzugang",
profileProjectLeader: "Projektleiter",
profileSupervisor: "Vorgesetzter",
profileTeamMember: "Projektteam",
progress: "Fortschritt",
Project: "Projekt",
ProjectExpense: "Projektaufwand",
ProjectExpenseType: "Projektaufwandstyp",
projectListDisplayMode: "Projektlisten Anzeigemodus",
projects: "Projekte",
projectSelector: "Projekt",
ProjectType: "Projekttyp",
public: "öffentlich",
Quality: "Qualitätslevel",
quarter: "Quartal",
Question: "Frage",
QuestionType: "Fragentyp",
quickSearch: "Suche",
Quotation: "Angebot",
QuotationType: "Angebotstyp",
real: "Ist-Arbeit",
RealWorkOverAssignedWork: "Vergleich Ist-Arbeit mit zugewiesener Arbeit",
RealWorkOverValidatedWork: "Vergleich Ist-Arbeit mit bestätigter Arbeit",
Recipient: "Empfänger",
refreshUpdatesNo: "Nein (nur manuelle Aktualisierung)",
refreshUpdatesYes: "Ja (automatische Aktualisierung)",
rememberMe: "Erinnerung",
rememberMETitle: "Erinnerungsfunktion nicht auf öffentlichen oder unsicheren Computern nutzen",
remind: "erinnern",
remindMeIn: "erinnere mich in",
removeAffectation: "lösche diese Ressourcenzuordnung",
removeAllFilters: "lösche alle Filterkriterien",
removeApprover: "Lösche Genehmiger",
removeAssignment: "lösche diese Zuordnung",
removeAttachement: "lösche Anhang",
removeDependency: "lösche diese Abhängigkeit",
removeDependencyPredecessor: "lösche diesen Vorgänger",
removeDependencySuccessor: "lösche diesen Nachfolger",
removeDocumentVersion: "Lösche diese Version",
removeExpenseDetail: "lösche Aufwandsdetail",
removeFilter: "lösche diese Filterkriterien",
removeLine: "Lösche diese Zeile",
removeLink: "lösche dieses verbundenene Element",
removeNote: "lösche diese Notiz",
removeOrigin: "lösche Ursprung",
removePhoto: "Foto löschen",
removeResourceCost: "lösche diese Ressourcekosten",
removeStoredFilter: "lösche diesen gespeicherten Filter",
removeTestCaseRun: "Testfall löschen",
removeVersionProject: "lösche Verbindung zwischen Version und Projekt",
reportAudit: "Verbindungsprüfung",
reportAvailabilityPlan: "Ressourcenverfügbarkeit - monatlich",
reportAvailabilitySynthesis: "verfügbare Übersichten",
reportBill: "Rechnungen",
reportCategoryBill: "Fakturierung",
reportCategoryCost: "Kosten",
reportCategoryHistory: "Historie",
reportCategoryMisc: "Verschiedenes",
reportCategoryPlan: "Planung",
reportCategoryRequirementTest: "Anforderungen & Tests",
reportCategoryStatus: "Aktueller Status",
reportCategoryTicket: "Tickets",
reportCategoryWork: "Arbeit",
reportCostDetail: "Kostenübersicht je Aktivität",
reportCostMonthly: "Monatliche Kosten",
reportExpenseCostTotal: "Gesamtaufwand und -kosten - monatlich",
reportExpenseProject: "Projektaufwand - monatlich",
reportExpenseResource: "Individueller Aufwand - monatlich",
reportExpenseTotal: "Gesamtaufwand - monatlich",
reportExportMSProject: "Export MS-Project XML Format",
reportFacture: "Rechnungen",
reportGlobalWorkPlanningMonthly: "Arbeitsplan - monatlich",
reportGlobalWorkPlanningWeekly: "Arbeitsplan - wöchentlich",
reportHistoryDetail: "Historie für ein Element",
reportHistoryDeteled: "Gelöschte Positionen",
reportNoData: "Keine Daten zur Anzeige verfügbar",
reportOpportunityPlan: "Chancen Plan",
reportPlanActivityMonthly: "Planung Projekten/Aktivitäten/Ressourcen - monatlich",
reportPlanColoredMonthly: "Ressourcenplanung - in Farbe - monatlich",
reportPlanDetail: "Aktivitätenplanung - detailliert - monatlich",
reportPlanGantt: "Gantt",
reportPlannedDates: "Sichere geplantes Datum in",
reportPlanProjectMonthly: "Projektplanung - detailliert - monatlich",
reportPlanResourceMonthly: "Ressourcenplanung - detailliert - monatlich",
reportPortfolioGantt: "Portfolio Ganttplanung",
reportPrint: "Drucke Bericht",
reportPrintCsv: "Export im CSV Format",
reportPrintPdf: "Export im PDF Format",
reportProductTest: "Test Produktabdeckung",
reportProductTestDetail: "Testfall Details",
reportProject: "Projekt Dashboard",
reportRequirementTest: "Test Anforderungsabdeckung",
reportRiskManagementPlan: "Risiko Management Plan",
Reports: "Berichte",
reportShow: "Bericht anzeigen",
reportStatusAll: "Status der gesamten Arbeit",
reportStatusOngoing: "Status der laufenden Arbeit",
reportTermMonthly: "Monatliche Konditionen",
reportTermTitle: "Setze Stichtage für Periode",
reportTermWeekly: "Wöchentliche Konditionen",
reportTestSession: "Testplan Zusammenfassung",
reportTicketGlobalCrossReport: "Tickets - je Qualifikation - gesamt",
reportTicketGlobalSynthesis: "Tickets - offen - gesamt",
reportTicketMonthlyCrossReport: "Tickets - je Qualifikation - monatlich",
reportTicketMonthlySynthesis: "Tickets - offen - monatlich",
reportTicketWeeklyCrossReport: "Tickets - je Qualifikation - wöchentlich",
reportTicketWeeklySynthesis: "Tickets - offen - wöchentlich",
reportTicketYearly: "Tickets - jährlich",
reportTicketYearlyByType: "Tickets - je Typ - jährlich",
reportTicketYearlyCrossReport: "Tickets - je Qualifikation - jährlich",
reportTicketYearlySynthesis: "Tickets - offen - jährlich",
reportVersionDetail: "Versionsdetails",
reportVersionStatus: "Versionsstatus",
reportWorkDetailMonthly: "Arbeit - detailliert - je Ressource - monatlich",
reportWorkDetailWeekly: "Arbeit - detailliert - je Ressource - wöchentlich",
reportWorkDetailYearly: "Arbeit - detailliert - je Ressource - jährlich",
reportWorkMonthly: "Arbeit - monatlich",
reportWorkPerActivity: "Arbeitsübersicht je Aktivität",
reportWorkPlan: "Arbeitsübersicht je Aktivität",
reportWorkWeekly: "Arbeit - wöchentlich",
reportWorkYearly: "Arbeit - jährlich",
Requirement: "Anforderung",
RequirementType: "Anforderungstyp",
requirementUnlockRight: "Entsperre alle Anforderungen",
resetColor: "zurücksetzen",
resetPassword: "Passwort zurücksetzen",
Resource: "Ressource",
ResourceCost: "Ressourcekosten",
resourcePlanningRight: "Zugriff auf Ressourcenplanung für andere",
resources: "Ressourcen",
responsibleChange: "Änderung des Verantwortlichen",
resultChange: "Ergebnis geändert",
resultClosed: "geschlossen",
resultCopied: "kopiert als",
resultDeleted: "gelöscht",
resultError: "Elemente mit Fehler",
resultInserted: "eingefügt",
resultOk: "Elemente geändert",
resultSave: "gesichert",
resultUpdated: "geändert",
resultWarning: "Elemente nicht geändert",
rightClickToCopy: "Rechts click und Kopierlink wählen oder click and [CTRL]+C um den Direktlink dieses Objektes zu kopieren",
Risk: "Risiko",
RiskLevel: "Risiko Ebene",
RiskType: "Risikotyp",
Role: "Funktion",
run: "Start",
running: "läuft",
Saturday: "Samstag",
saveDates: "sichere die Daten",
saveFilter: "Sichere diesen Filter",
savePlannedDates: "speichere geplantes Datum in gefordertes und bestätigtes Datum",
second: "Sekunde",
sectionAbacus: "Rechenhilfe",
sectionActiveFilter: "Aktiver Filter",
sectionAddress: "Adresses",
sectionAffectations: "Ressourcenzuordnungen",
sectionAlerts: "Alarm Verwaltung",
sectionAnswer: "Antwort",
sectionApprovers: "Genehmiger",
sectionAssignment: "Zuordnung",
sectionAssignmentManagement: "Zuweisungsmanagement",
sectionAttachements: "Anhänge",
sectionBehavior: "Verhalten",
sectionBilling: "Rechnungsstellung",
sectionBillLines: "Rechnungspositionen",
sectionButtons: "Schalter anzeigen",
sectionCalendar: "Kalendertage",
sectionChecklistLines: "Checklistenzeilen",
sectionComboDetail: "Schalter anzeigen 'Detail-Kombinationen'",
sectionConnectionStatus: "Verbindungsstatus",
sectionContacts: "Kontakte",
sectionCron: "Steuerung automatisierte Services (CRON)",
sectionDailyHours: "Tägliche Arbeitszeit",
sectionDates: "Datum",
sectionDebug: "Fehlersuche",
sectionDescription: "Beschreibung",
sectionDetail: "Detail",
sectionDisplay: "Anzeige",
sectionDisplayParameter: "Anzeige-Parameter",
sectionDocument: "Dokument",
sectionDocumentUnlock: "Dokument entsperren",
sectionFiles: "Dateien und Verzeichnisse",
sectionFunctionCost: "Funktion & Kosten",
sectionIBAN: "Internationale Bank-Konto-Nummer (IBAN)",
sectionIHM: "Standard-Bildschirmanzeige",
sectionImputation: "Ist-Arbeit-Buchung",
sectionImputationDiary: "Ist-Arbeit-Buchung und Terminkalender",
sectionInternalAlert: "Empfänger interner Alarme",
sectionLdap: "LDAP Verwaltung der Parameter",
sectionLink: "verbundenes Element",
sectionLinkAction: "verbundene Aktion",
sectionLinkDecision: "gefällte Entscheidungen",
sectionLinkIssue: "verbundene Probleme",
sectionLinkMeeting: "diskutiert in Besprechung",
sectionLinkQuestion: "neue oder gelöste Fragen",
sectionLinkRisk: "verbundene Risiken",
sectionLocalization: "Lokale Einstellung",
sectionLock: "Sperre",
sectionMail: "E-Mail-Versand",
sectionMailDescription: "Mailbeschreibung",
sectionMailItem: "betroffener Punkt",
sectionMailText: "Text des Mails",
sectionMailTitle: "Haupttitel",
sectionMembers: "Teammitglieder",
sectionMessage: "Meldung",
sectionMiscellaneous: "Verschiedenes",
sectionNotes: "Notizen",
sectionObjectDetail: "Details der Elemente",
sectionPassword: "Password",
sectionPeriodicity: "Wiederholung",
sectionPlanning: "Planung",
sectionPlanningRight: "Planungskalkulation",
sectionPredecessor: "Vorgänger Element",
sectionPrice: "Festpreis",
sectionPrintExport: "Druck & Export Parameter",
sectionProgress: "Fortschritt",
sectionProjects: "Projekte",
sectionReferenceFormat: "Format für Referenznummerierung",
sectionResponsible: "Verantwortliche",
sectionSendMail: "Mailadresse",
sectionStoredFilters: "Gespeicherte Filter",
sectionSubprojects: "Teilprojekte",
sectionSuccessor: "Nachfolger Element",
sectionTestCaseRun: "Testfall-Durchläufe",
sectionTreatment: "Behandlung",
sectionTrigger: "Auslöserelement für diese Kondition",
sectionUnlock: "Entsperre Positionen",
sectionUserAndPassword: "Nutzer und Passwort",
sectionValidation: "Überprüfung",
sectionVersion: "Versionen",
sectionVersionproject_projects: "verbundene Projekte",
sectionVersionproject_versions: "verbundenene Versionen",
sectionVersions: "Produkt Versionen",
sectionWorkCost: "Arbeit und Kosten anzeigen",
sectionWorkflowDiagram: "Workflow Diagramm",
sectionWorkflowStatus: "Vorgaben für Änderungen von einem zum anderen Status",
sectionWorkUnit: "Einheit für Arbeit",
sectionYear: "Jahr",
selectedItemsCount: "Anzahl gewählter Elemente",
selectProjectToPlan: "Sie müssen ein Projekt wählen",
selectStoredFilter: "Wähle diesen gespeicherten Filter",
send: "Senden",
sendAlert: "Sende einen internen Alarm",
sendInfoToApprovers: "Erinnerungs-Mail an Genehmiger schicken",
sendInfoToUser: "Sende Informationen zum Nutzer",
sendMailToAttendees: "E-Mail-Einladung",
sendToPrinter: "Sende Dokument zum Drucker",
sentAlertTo: "Alarm versandt an ${1} Nutzer",
sentSinceMore: "versandt vor mehr als",
September: "September",
sequential: "sequenziell",
setApplicationToClosed: "Schließe Applikation",
setApplicationToOpen: "Starte Applikation",
Severity: "Auswirkung",
shortDay: "T",
shortHour: "S",
shortMinute: "Mn",
shortMonth: "M",
shortQuarter: "Q",
shortSecond: "S",
shortWeek: "W",
shortYear: "J",
showDetail: "Suche / Anzeige",
showDirectAccess: "Gehe zu diesem Element",
showIdleElements: "Zeige inaktive Elemente",
showInToday: "Füge Report zu Heute-Übersicht",
showLeftWork: "Zeige offene Arbeit rechts des Ganttbalkens",
showPlannedWork: "Zeige geplante Arbeit",
showProjectLevel: "Zeige Projektebene über Aktivitäten",
showResources: "Zeige Ressourcen rechts vom Ganttbalken",
showWbs: "Zeige PSP mit Namen",
Software: "Software",
sortAsc: "aufsteigend",
sortDesc: "absteigend",
sortFilter: "sortieren",
sqlError: "SQL Fehler",
startWork: "Starte Arbeit",
Status: "Status",
StatusMail: "Mail nach Statusänderung",
statusMustChangeCancelled: "'abgebrochen' muss durch Statusänderung erfolgen",
statusMustChangeDone: "'erledigt' muss durch Statusänderung erfolgen",
statusMustChangeHandled: "'bearbeitet' muss durch Statusänderung erfolgen",
statusMustChangeIdle: "'abgeschlossen' muss durch Statusänderung erfolgen",
stop: "Stopp",
stopped: "gestoppt",
stopWork: "Stoppe Arbeit",
storedFilters: "Gespeicherte Filter",
submittedWorkPeriod: "abgegeben am <br/>${1}",
submitWorkPeriod: "Ist-Arbeit melden",
subProjects: "Teilprojekte",
Successor: "Nachfolger",
sum: "Summe",
Sunday: "Sonntag",
targetValue: "Zielwert",
Team: "Team",
team: "Team",
Term: "Kondition",
TestCase: "Testfall",
TestCaseRun: "Testfall-Durchlauf",
TestCaseType: "Testfalltyp",
TestSession: "Testplan",
TestSessionType: "Testplantyp",
themeBlue: "dunkelblau",
themeBlueContrast: "kontrastierendes blau",
themeBlueLight: "hellblau",
themeGreen: "dunkelgrün",
themeGreenContrast: "kontrastierendes grün",
themeGreenLight: "hellgrün",
themeGrey: "dunkelgrau",
themeGreyContrast: "kontrastierendes grau",
themeGreyLight: "hellgrau",
themeOrange: "dunkelorange",
themeOrangeContrast: "kontrastierendes orange",
themeOrangeLight: "hellorange",
themeProjectom: "Projectom",
themeProjectOrRIA: "ProjecQtOr",
themeProjectOrRIAContrasted: "ProjecQtOr kontrastierend",
themeProjectOrRIALight: "ProjecQtOr hell",
themeProjeQtOr: "ProjeQtOr",
themeProjeQtOrDark: "ProjeQtOr Dark",
themeProjeQtOrEarth: "ProjeQtOr Earth",
themeProjeQtOrFire: "ProjeQtOr Fire",
themeProjeQtOrForest: "ProjeQtOr Forest",
themeProjeQtOrLight: "ProjeQtOr Light",
themeProjeQtOrWater: "ProjeQtOr Water",
themeProjeQtOrWine: "ProjeQtOr Wine",
themeRandom: "zufällig",
themeRed: "dunkelrot",
themeRedContrast: "kontrastierendes rot",
themeRedLight: "hellrot",
themeWhite: "schwarz & weiß",
Thursday: "Donnerstag",
Ticket: "Ticket",
TicketDelay: "Verspätung für Tickets",
TicketSimple: "Ticket",
TicketType: "Tickettyp",
titleCountAll: "alle",
titleCountNotClosed: "nicht geschlossen",
titleCountScope: "Bereich gezählte Elemente:",
titleCountTodo: "zu erledigen",
titleNbAll: "gesamt",
titleNbClosed: "geschlossen",
titleNbDone: "erledigt",
titleNbTodo: "zu erledigen",
titleResetList: "Setze Anzeige auf Standard zurück",
to: "an",
today: "Heute",
Today: "Element von Heute-Übersicht",
todayAssignedTasks: "Aufgabe zugewiesen an",
todayIs: "Heute ist",
todayIssuerRequestorTasks: "Aussteller oder Anforderer der Arbeit",
todayProjects: "Projekte",
todayProjectsTasks: "Alle Projekt-Arbeiten zugewiesen an",
todayResponsibleTasks: "Verantwortlicher d. Arbeit",
Trend: "Trend",
Tuesday: "Dienstag",
undefinedValue: "nicht definiert",
unlockDocument: "Entsperre Dokument",
unlockRequirement: "Entsperre Anforderung",
unSubmitWorkPeriod: "Ist-Arbeit zurückziehen",
unValidateWorkPeriod: "Ist-Arbeit ablehnen",
updatedReference: "Referenz für Element '${1}' geändert",
updateInitialDates: "gefordertes Datum",
updateReference: "Ändere Referenz für",
updateValidatedDates: "bestätigtes Datum",
Urgency: "Dringlichkeit",
User: "Nutzer",
userMailMessage: "Ihre Anmeldung zu ProjecQtOr ist '${1}'.<br/>${2}<br/>Bei Problemen wenden Sie sich bitte an Ihren Administrator ${3}.",
userMailTitle: "[ProjecQtOr Meldung] Ihre Zugangsdaten",
validatedEndDate: "Berücksichtige bestätigtes Endedatum",
validatedStartDate: "Berücksichtige bestätigtes Startdatum",
validatedWorkPeriod: "geprüft durch ${2} am <br/>${1}",
validatePassword: "Überprüfen Sie Ihr Passwort",
validateWorkPeriod: "Arbeit gutheißen",
valueNotSelected: "Wert kann nicht leer sein",
Version: "Version",
versionDraftUpdate: "Entwurf",
versionMajorUpdate: "wesentlich",
versionMinorUpdate: "geringfügig",
versionNoUpdate: "kein",
VersionProject: "Verbindung Projekt-Version",
versions: "Versionen",
visibilityScopeAll: "Alle sichtbaren",
visibilityScopeNo: "Keine anzeigen",
visibilityScopeValid: "Nur bestätigte anzeigen",
WARNING: "Warnung",
warningValue: "Warnungswert",
Wednesday: "Mittwoch",
week: "Woche",
welcomeMessage: "Willkommen",
Work: "Arbeit",
workAccess: "Arbeit anzeigen",
Workflow: "Workflow",
workflowParameters: "Wähle Status anzeigen / ausblenden",
workStarted: "Arbeit gestartet",
workStartedAt: "gestartet um ${1}",
workStartedBy: "gestartet durch ${1}",
workStartedSince: "gestartet seit ${1} Tag(en)",
workStopped: "Arbeit gestoppt",
workValidate: "Ist-Arbeit gutheißen",
wrongMaintenanceUser: "Upgrade wird gerade durchgeführt.<br/>Nur der Administrator kann sich verbinden.",
xlsxFile: "xlsx Datei (Excel 2010)",
year: "Jahr",
currentLocaleOfFile: "de"
}
|
gpl-3.0
|
Great-Li-Xin/00864088
|
[书上的例题、练习与习题]/第02章/练习/练习2-18.c
|
253
|
#include <stdio.h>
#include <math.h>
int main(void){
int i,n;
double result;
printf("Enter n: ");
scanf("%d",&n);
for (i = 0; i <=n ; i++) {
result=pow(3,i);
printf("pow(3,%d)=%0.f\n",i,result);
}
return 0;
}
|
gpl-3.0
|
gottcode/kapow
|
icons/po/update-pot.sh
|
774
|
#!/bin/sh
echo -n 'Preparing files...'
cd ..
rm -f kapow.desktop.in
cp kapow.desktop kapow.desktop.in
sed -e '/^Name\[/ d' \
-e '/^GenericName\[/ d' \
-e '/^Comment\[/ d' \
-e '/^Icon/ d' \
-e '/^Keywords/ d' \
-i kapow.desktop.in
rm -f kapow.appdata.xml.in
cp kapow.appdata.xml kapow.appdata.xml.in
sed -e '/p xml:lang/ d' \
-e '/summary xml:lang/ d' \
-e '/name xml:lang/ d' \
-e '/<developer_name>/ d' \
-i kapow.appdata.xml.in
cd po
echo ' DONE'
echo -n 'Extracting messages...'
xgettext --from-code=UTF-8 --output=description.pot \
--package-name='Kapow' --copyright-holder='Graeme Gott' \
../*.in
sed 's/CHARSET/UTF-8/' -i description.pot
echo ' DONE'
echo -n 'Cleaning up...'
cd ..
rm -f kapow.desktop.in
rm -f kapow.appdata.xml.in
echo ' DONE'
|
gpl-3.0
|
MaharaProject/mahara
|
htdocs/lib/dwoo/mahara/Dwoo_Template_Mahara.php
|
4089
|
<?php
/**
*
* @package mahara
* @subpackage dwoo
* @author Catalyst IT Ltd
* @author Jordi Boggiano <j.boggiano@seld.be>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
*/
/**
* This class is a Dwoo ITemplate class. It acts as a pass-through to the standard
* Dwoo_Template_File class, which reads template files. What this class does is take
* a template specifier for a Mahara plugin's template file, like
* "blocktype:creativecommons:statement.tpl", and translate that into the relative path
* to the template (statement.tpl) and say which directories to search for this relative
* path in.
*
* The actual code that translates the Dwoo identifier into a relative filesystem path, is in the
* "get_theme_path()" method in the plugin type's class. Most plugin types will not need to customize
* this and can simply inherit the implementation from Plugin. If the plugin can also have template
* files that live outside of the {$plugintype}/{$pluginname} directory, then it will need to provide
* its own implementation of get_theme_path().
*/
namespace Mahara;
require __DIR__ . '/../vendor/autoload.php';
use Dwoo\Template\File as File;
class Dwoo_Template_Mahara extends File {
/**
* Convert a Mahara plugin template file path into a normal template file path with extra search paths.
*
* @param string $pluginfile The plugintype, name, and name of file, e.g. "blocktype:clippy:index.tpl"
* @param int $cacheTime Not used.
* @param int $cacheId Not used.
* @param int $compileId Not used.
* @param array $includePath The paths to look in.
* @throws MaharaException
*/
public function __construct($file, $cacheTime = null, $cacheId = null, $compileId = null, $includePath = null) {
global $THEME;
$parts = explode(':', $file, 3);
if (count($parts) !== 3) {
throw new SystemException("Invalid template path \"{$file}\"");
}
// Keep the original string for logging purposes
$dwooref = $file;
list($plugintype, $pluginname, $file) = $parts;
// Since we use $plugintype as part of a file path, we should whitelist it
$plugintype = strtolower($plugintype);
if (!in_array($plugintype, plugin_types())) {
throw new SystemException("Invalid plugintype in Dwoo template \"{$dwooref}\"");
}
// Get the relative path for this particular plugin
require_once(get_config('docroot') . $plugintype . '/lib.php');
$pluginpath = call_static_method(generate_class_name($plugintype), 'get_theme_path', $pluginname);
// Because this is a plugin template file, we don't want to include any accidental matches against
// core template files with the same name.
$includePath = array();
// First look for a local override.
$includePath[] = get_config('docroot') . "local/theme/plugintype/{$pluginpath}/templates";
// Then look for files in a custom theme
foreach ($THEME->inheritance as $theme) {
$includePath[] = get_config('docroot') . "theme/{$theme}/plugintype/{$pluginpath}/templates";
}
// Lastly look for files in the plugin itself
foreach ($THEME->inheritance as $theme) {
$includePath[] = get_config('docroot') . "{$pluginpath}/theme/{$theme}/templates";
// For legacy purposes also look for the template file loose under the theme directory.
$includePath[] = get_config('docroot') . "{$pluginpath}/theme/{$theme}";
}
// Now, we instantiate this as a standard Dwoo_Template_File class.
// We're passing in $file, which is the relative path to the file, and
// $includePath, which is an array of directories to search for $file in.
// We let Dwoo figure out which one actually has it.
parent::__construct($file, null, null, null, $includePath);
}
}
|
gpl-3.0
|
Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2
|
src/finiteArea/fields/faPatchFields/constraint/wedge/wedgeFaPatchField.C
|
5145
|
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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 of the License, or (at your
option) any later version.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "wedgeFaPatch.H"
#include "wedgeFaPatchField.H"
#include "transformField.H"
#include "symmTransform.H"
#include "diagTensor.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
wedgeFaPatchField<Type>::wedgeFaPatchField
(
const faPatch& p,
const DimensionedField<Type, areaMesh>& iF
)
:
transformFaPatchField<Type>(p, iF)
{}
template<class Type>
wedgeFaPatchField<Type>::wedgeFaPatchField
(
const wedgeFaPatchField<Type>& ptf,
const faPatch& p,
const DimensionedField<Type, areaMesh>& iF,
const faPatchFieldMapper& mapper
)
:
transformFaPatchField<Type>(ptf, p, iF, mapper)
{
if (!isType<wedgeFaPatch>(this->patch()))
{
FatalErrorIn
(
"wedgeFaPatchField<Type>::wedgeFaPatchField\n"
"(\n"
" const wedgeFaPatchField<Type>& ptf,\n"
" const faPatch& p,\n"
" const Field<Type>& iF,\n"
" const faPatchFieldMapper& mapper\n"
")\n"
) << "Field type does not correspond to patch type for patch "
<< this->patch().index() << "." << endl
<< "Field type: " << typeName << endl
<< "Patch type: " << this->patch().type()
<< exit(FatalError);
}
}
template<class Type>
wedgeFaPatchField<Type>::wedgeFaPatchField
(
const faPatch& p,
const DimensionedField<Type, areaMesh>& iF,
const dictionary& dict
)
:
transformFaPatchField<Type>(p, iF, dict)
{
if (!isType<wedgeFaPatch>(p))
{
FatalIOErrorIn
(
"wedgeFaPatchField<Type>::wedgeFaPatchField\n"
"(\n"
" const faPatch& p,\n"
" const Field<Type>& field,\n"
" dictionary& dict\n"
")\n",
dict
) << "patch " << this->patch().index() << " not wedge type. "
<< "Patch type = " << p.type()
<< exit(FatalIOError);
}
this->evaluate();
}
template<class Type>
wedgeFaPatchField<Type>::wedgeFaPatchField
(
const wedgeFaPatchField<Type>& ptf,
const DimensionedField<Type, areaMesh>& iF
)
:
transformFaPatchField<Type>(ptf, iF)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Return gradient at boundary
template<class Type>
tmp<Field<Type> > wedgeFaPatchField<Type>::snGrad() const
{
Field<Type> pif = this->patchInternalField();
return
(
transform(refCast<const wedgeFaPatch>(this->patch()).faceT(), pif)
- pif
)*(0.5*this->patch().deltaCoeffs());
}
// Evaluate the patch field
template<class Type>
void wedgeFaPatchField<Type>::evaluate(const Pstream::commsTypes)
{
if (!this->updated())
{
this->updateCoeffs();
}
faPatchField<Type>::operator==
(
transform
(
refCast<const wedgeFaPatch>(this->patch()).edgeT(),
this->patchInternalField()
)
);
}
// Return defining fields
template<class Type>
tmp<Field<Type> > wedgeFaPatchField<Type>::snGradTransformDiag() const
{
const diagTensor diagT =
0.5*diag(I - refCast<const wedgeFaPatch>(this->patch()).faceT());
const vector diagV(diagT.xx(), diagT.yy(), diagT.zz());
return tmp<Field<Type> >
(
new Field<Type>
(
this->size(),
transformMask<Type>
(
pow
(
diagV,
pTraits<typename powProduct<vector, pTraits<Type>::rank>
::type>::zero
)
)
)
);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //
|
gpl-3.0
|
TehFlaminTaco/RProgN-2
|
source/src/rprogn/callables/stack/CallablePush.java
|
641
|
package rprogn.callables.stack;
import rprogn.callables.Callable;
import rprogn.functions.Scope;
import rprogn.interpreter.Interpreter;
import rprogn.variable.Var;
import rprogn.variable.VarStack;
public class CallablePush implements Callable {
@Override
public void Call(Interpreter interpreter, Scope scope) {
Var a = interpreter.pop();
Var b = interpreter.pop();
if(!(a instanceof VarStack) && b instanceof VarStack){
Var c = a;
a = b;
b = c;
}
if(a instanceof VarStack){
VarStack stack = (VarStack) a;
stack.push(b);
}
}
@Override
public String describe() {
return "Push a value to a stack.";
}
}
|
gpl-3.0
|
Anisorf/ENCODE
|
encode/src/org/wandora/application/server/WebAppHelper.java
|
2691
|
/*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://wandora.org
*
* Copyright (C) 2004-2015 Wandora Team
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.wandora.application.server;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.wandora.application.Wandora;
import org.wandora.topicmap.Topic;
import org.wandora.topicmap.TopicMapException;
/**
*
* @author akivela
*/
public class WebAppHelper {
public static Topic getRequestTopic(WandoraWebAppServer server, String target, HttpServletRequest request, HttpServletResponse response) throws TopicMapException {
Wandora wandora=server.getWandora();
Topic topic=null;
String si=request.getParameter("topic");
if(si==null || si.length()==0) si=request.getParameter("si");
if(si==null || si.length()==0) {
String sl=request.getParameter("sl");
if(sl==null || sl.length()==0){
topic=wandora.getOpenTopic();
if(topic==null){
server.writeResponse(response,HttpServletResponse.SC_NOT_FOUND,"404 Not Found<br />Wandora application does not have any topic open and no topic is specified in http parameters.");
}
}
else{
topic=wandora.getTopicMap().getTopicBySubjectLocator(sl);
if(topic==null) {
server.writeResponse(response,HttpServletResponse.SC_NOT_FOUND,"404 Not Found<br />Topic with subject locator "+sl+" not found.");
}
}
}
else {
topic=wandora.getTopicMap().getTopic(si);
if(topic==null) {
topic = wandora.getTopicMap().getTopicWithBaseName(si);
}
if(topic==null) {
server.writeResponse(response,HttpServletResponse.SC_NOT_FOUND,"404 Not Found<br />Topic with subject identifier "+si+" not found.");
}
}
return topic;
}
}
|
gpl-3.0
|
Maracars/POPBL5
|
src/domain/dao/DAOSimulator.java
|
3764
|
package domain.dao;
import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.ParameterMode;
import javax.persistence.Query;
import javax.persistence.StoredProcedureQuery;
import org.hibernate.Session;
import hibernate.HibernateConnection;
/**
* The Class DAOSimulator.
*/
public class DAOSimulator {
/** The Constant STRING_PLANE_ID. */
private static final String STRING_PLANE_ID = "planeId";
/** The Constant STRING_AIRPORT_ID. */
private static final String STRING_AIRPORT_ID = "airportId";
/** The Constant STRING_CORRECT_DATE. */
private static final String STRING_CORRECT_DATE = "correctDate";
/** The Constant SECOND_TO_MIN. */
private static final int SECOND_TO_MIN = 60;
/** The Constant MILIS_TO_SECOND. */
private static final int MILIS_TO_SECOND = 1000;
/** The Constant MIN_TO_HOURS. */
private static final int MIN_TO_HOURS = 60;
/** The Constant HOURS_TO_DAY. */
private static final int HOURS_TO_DAY = 24;
/** The Constant WEEK_MARGIN. */
private static final int WEEK_MARGIN = 7 + 1;
/** The Constant MILIS_TO_DAYS. */
private static final int MILIS_TO_DAYS = MILIS_TO_SECOND * SECOND_TO_MIN * MIN_TO_HOURS * HOURS_TO_DAY;
/** The Constant PARAMETER_AIRPORT_ID. */
private static final String PARAMETER_AIRPORT_ID = STRING_AIRPORT_ID;
/** The Constant PARAMETER_MARGIN_WEEK. */
private static final String PARAMETER_MARGIN_WEEK = "marginWeek";
/** The Constant QUERY_COUNT_FLIGHTS_IN_WEEK. */
private static final String QUERY_COUNT_FLIGHTS_IN_WEEK = "select COUNT(f) from Flight as f "
+ "where (f.expectedDepartureDate BETWEEN current_date and :" + PARAMETER_MARGIN_WEEK
+ " and f.route.departureTerminal.airport.id = :" + PARAMETER_AIRPORT_ID + " ) "
+ "or (f.expectedArrivalDate BETWEEN current_date and :" + PARAMETER_MARGIN_WEEK
+ " and f.route.arrivalTerminal.airport.id = :" + PARAMETER_AIRPORT_ID + " )";
/** The session. */
private static Session session;
/**
* Gets the number of flights in A week from airport.
*
* @param airportId
* the airport id
* @return the number of flights in A week from airport
*/
public static Long getNumberOfFlightsInAWeekFromAirport(int airportId) {
Long numFlights = null;
Date soon = new Date();
try {
session = HibernateConnection.getSession();
Query query = session.createQuery(QUERY_COUNT_FLIGHTS_IN_WEEK);
query.setParameter(PARAMETER_AIRPORT_ID, airportId);
query.setParameter(PARAMETER_MARGIN_WEEK, new Date(soon.getTime() + (MILIS_TO_DAYS * WEEK_MARGIN)));
numFlights = (Long) query.getSingleResult();
} catch (Exception e) {
e.printStackTrace();
} finally {
HibernateConnection.closeSession(session);
}
return numFlights;
}
/**
* Gets the correct date from schedule.
*
* @param planeId
* the plane id
* @param airportId
* the airport id
* @return the correct date from schedule
*/
public static Date getCorrectDateFromSchedule(int planeId, int airportId) {
Date date = null;
try {
session = HibernateConnection.getSession();
StoredProcedureQuery query = session.createStoredProcedureQuery("selectDate")
.registerStoredProcedureParameter(STRING_PLANE_ID, Integer.class, ParameterMode.IN)
.registerStoredProcedureParameter(STRING_AIRPORT_ID, Integer.class, ParameterMode.IN)
.registerStoredProcedureParameter(STRING_CORRECT_DATE, Timestamp.class, ParameterMode.OUT)
.setParameter(STRING_PLANE_ID, planeId).setParameter(STRING_AIRPORT_ID, airportId);
query.execute();
date = (Timestamp) query.getOutputParameterValue(STRING_CORRECT_DATE);
} catch (Exception e) {
e.printStackTrace();
} finally {
HibernateConnection.closeSession(session);
}
return date;
}
}
|
gpl-3.0
|
angeloprudentino/QtNets
|
Doc/qtwidgets/qtwidgets-dialogs-extension-main-cpp.html
|
5428
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main.cpp Example File | Qt Widgets 5.7</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
window.onload = function(){document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");};
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td ><a href="../qtdoc/supported-platforms-and-configurations.html#qt-5-7">Qt 5.7</a></td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-dialogs-extension-example.html">Extension Example</a></td><td >main.cpp Example File</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.7.0 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">main.cpp Example File</h1>
<span class="subtitle">dialogs/extension/main.cpp</span>
<!-- $$$dialogs/extension/main.cpp-description -->
<div class="descr"> <a name="details"></a>
<pre class="cpp">
<span class="comment">/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * 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.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** 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
** OWNER 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."
**
** $QT_END_LICENSE$
**
****************************************************************************/</span>
<span class="preprocessor">#include <QApplication></span>
<span class="preprocessor">#include "finddialog.h"</span>
<span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span> <span class="operator">*</span>argv<span class="operator">[</span><span class="operator">]</span>)
{
<span class="type"><a href="qapplication.html">QApplication</a></span> app(argc<span class="operator">,</span> argv);
FindDialog dialog;
dialog<span class="operator">.</span>show();
<span class="keyword">return</span> app<span class="operator">.</span>exec();
}
</pre>
</div>
<!-- @@@dialogs/extension/main.cpp -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2016 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|
gpl-3.0
|
bitemyapp/Pijul
|
tests/zombie.sh
|
789
|
#! /usr/bin/env bash
set -x
set -e
testdir=$(mktemp -d -t pijul-test.XXXXXXXXXX)
test ! -z $testdir
cd $testdir
mkdir a
cd a
$pijul init
echo saluton > file
echo malbão >> file
echo probolon >> file
$pijul add file
$pijul record -a --author "Jean-Paul" --name "L'existentialisme"
cd ..
$pijul get a b
cd b
echo saluton > file
echo probolon >> file
$pijul record -a --author "Albert" --name "J'en ai fait quand j'étais jeune"
echo ynyyy | $pijul rollback --author "Albert" --name "J'en ai fait quand j'étais jeune"
cd ../a
echo saluton > file
echo probolon >> file
$pijul record -a --author "Jean-Paul" --name "Bof"
$pijul pull -a ../b
if test ! -z $pdf_out
then
$pijul debug
dot -Tpdf -o $pdf_out/test.pdf debug
fi
cd ..
$pijul get a c
cd c
cat file
rm -rf $testdir
|
gpl-3.0
|
evilksi/jeux-oriente-objet-2
|
Test/EIFGENs/coinplumber/F_code/C11/ch541.h
|
1025
|
#ifndef _C11_ch541_
#define _C11_ch541_
#ifdef __cplusplus
extern "C" {
#endif
extern EIF_INTEGER_8 F448_2708(EIF_REFERENCE, EIF_INTEGER_32);
extern EIF_REFERENCE F448_2711(EIF_REFERENCE);
extern void F448_2712(EIF_REFERENCE);
extern void F448_2714(EIF_REFERENCE, EIF_INTEGER_32);
extern void F448_2715(EIF_REFERENCE, EIF_INTEGER_32);
extern EIF_BOOLEAN F448_2716(EIF_REFERENCE, EIF_INTEGER_32);
extern EIF_BOOLEAN F448_2719(EIF_REFERENCE);
extern void EIF_Minit541(void);
extern void F595_4619(EIF_REFERENCE);
extern EIF_BOOLEAN F478_2781(EIF_REFERENCE);
extern EIF_INTEGER_32 F595_4607(EIF_REFERENCE);
extern EIF_INTEGER_8 F595_4590(EIF_REFERENCE);
extern void F595_4618(EIF_REFERENCE);
extern void F595_4621(EIF_REFERENCE, EIF_REFERENCE);
extern EIF_BOOLEAN F246_1979(EIF_REFERENCE);
extern EIF_REFERENCE F595_4596(EIF_REFERENCE);
extern void F440_2654(EIF_REFERENCE, EIF_INTEGER_32, EIF_INTEGER_32);
extern char *(*R1770[])();
extern char *(*R2168[])();
extern char *(*R2169[])();
#ifdef __cplusplus
}
#endif
#endif
|
gpl-3.0
|
lubosz/liblub
|
src/Procedural/Planets/TerrainPlain.h
|
352
|
/*
* Terrain.h
*
* Created on: May 5, 2011
* Author: bmonkey
*/
#ifndef TERRAINPLAIN_H_
#define TERRAINPLAIN_H_
#include "Scene/Node.h"
#include "PlanetElement.h"
class TerrainPlain : public PlanetElement{
public:
TerrainPlain(Planet * planet);
virtual ~TerrainPlain();
void init();
void draw();
};
#endif /* TERRAINPLAIN_H_ */
|
gpl-3.0
|
DreamIP/GPStudio
|
gui-tools/src/gpstudio_gui/viewer/viewerwidgets/pdfviewer.cpp
|
1292
|
/****************************************************************************
** Copyright (C) 2014-2017 Dream IP
**
** This file is part of GPStudio.
**
** GPStudio is a 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 of the License, or
** (at your option) any later version.
**
** This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
**
****************************************************************************/
#include "pdfviewer.h"
#include <QDebug>
#include <QUrl>
#include <QDesktopServices>
#include <QMessageBox>
#include <QFile>
void PdfViewer::showDocument(const QString &file)
{
if(!QFile::exists(file))
{
QMessageBox::warning(NULL, "Documentation file does not exist.", "Documentation file does not exist.");
return;
}
QUrl pdfUrl(file);
QDesktopServices::openUrl(pdfUrl);
}
|
gpl-3.0
|
denisjul/democratos
|
democratos/CreateYourLaws/migrations/0013_auto_20180226_2211.py
|
369
|
# Generated by Django 2.0 on 2018-02-26 22:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('CreateYourLaws', '0012_codeblock_is_cdp'),
]
operations = [
migrations.RenameField(
model_name='codeblock',
old_name='is_cdp',
new_name='is_cbp',
),
]
|
gpl-3.0
|
williamfdevine/PrettyLinux
|
drivers/message/fusion/mptspi.c
|
44646
|
/*
* linux/drivers/message/fusion/mptspi.c
* For use with LSI PCI chip/adapter(s)
* running LSI Fusion MPT (Message Passing Technology) firmware.
*
* Copyright (c) 1999-2008 LSI Corporation
* (mailto:DL-MPTFusionLinux@lsi.com)
*
*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*
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 of the License.
This program 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.
NO WARRANTY
THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
solely responsible for determining the appropriateness of using and
distributing the Program and assumes all risks associated with its
exercise of rights under this Agreement, including but not limited to
the risks and costs of program errors, damage to or loss of data,
programs or equipment, and unavailability or interruption of operations.
DISCLAIMER OF LIABILITY
NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), 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 OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kdev_t.h>
#include <linux/blkdev.h>
#include <linux/delay.h> /* for mdelay */
#include <linux/interrupt.h> /* needed for in_interrupt() proto */
#include <linux/reboot.h> /* notifier code */
#include <linux/workqueue.h>
#include <linux/raid_class.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_spi.h>
#include <scsi/scsi_dbg.h>
#include "mptbase.h"
#include "mptscsih.h"
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
#define my_NAME "Fusion MPT SPI Host driver"
#define my_VERSION MPT_LINUX_VERSION_COMMON
#define MYNAM "mptspi"
MODULE_AUTHOR(MODULEAUTHOR);
MODULE_DESCRIPTION(my_NAME);
MODULE_LICENSE("GPL");
MODULE_VERSION(my_VERSION);
/* Command line args */
static int mpt_saf_te = MPTSCSIH_SAF_TE;
module_param(mpt_saf_te, int, 0);
MODULE_PARM_DESC(mpt_saf_te, " Force enabling SEP Processor: enable=1 (default=MPTSCSIH_SAF_TE=0)");
static void mptspi_write_offset(struct scsi_target *, int);
static void mptspi_write_width(struct scsi_target *, int);
static int mptspi_write_spi_device_pg1(struct scsi_target *,
struct _CONFIG_PAGE_SCSI_DEVICE_1 *);
static struct scsi_transport_template *mptspi_transport_template = NULL;
static u8 mptspiDoneCtx = MPT_MAX_PROTOCOL_DRIVERS;
static u8 mptspiTaskCtx = MPT_MAX_PROTOCOL_DRIVERS;
static u8 mptspiInternalCtx = MPT_MAX_PROTOCOL_DRIVERS; /* Used only for internal commands */
/**
* mptspi_setTargetNegoParms - Update the target negotiation parameters
* @hd: Pointer to a SCSI Host Structure
* @target: per target private data
* @sdev: SCSI device
*
* Update the target negotiation parameters based on the the Inquiry
* data, adapter capabilities, and NVRAM settings.
**/
static void
mptspi_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target,
struct scsi_device *sdev)
{
MPT_ADAPTER *ioc = hd->ioc;
SpiCfgData *pspi_data = &ioc->spi_data;
int id = (int) target->id;
int nvram;
u8 width = MPT_NARROW;
u8 factor = MPT_ASYNC;
u8 offset = 0;
u8 nfactor;
u8 noQas = 1;
target->negoFlags = pspi_data->noQas;
if (sdev->scsi_level < SCSI_2)
{
width = 0;
factor = MPT_ULTRA2;
offset = pspi_data->maxSyncOffset;
target->tflags &= ~MPT_TARGET_FLAGS_Q_YES;
}
else
{
if (scsi_device_wide(sdev))
{
width = 1;
}
if (scsi_device_sync(sdev))
{
factor = pspi_data->minSyncFactor;
if (!scsi_device_dt(sdev))
{
factor = MPT_ULTRA2;
}
else
{
if (!scsi_device_ius(sdev) &&
!scsi_device_qas(sdev))
{
factor = MPT_ULTRA160;
}
else
{
factor = MPT_ULTRA320;
if (scsi_device_qas(sdev))
{
ddvprintk(ioc,
printk(MYIOC_s_DEBUG_FMT "Enabling QAS due to "
"byte56=%02x on id=%d!\n", ioc->name,
scsi_device_qas(sdev), id));
noQas = 0;
}
if (sdev->type == TYPE_TAPE &&
scsi_device_ius(sdev))
{
target->negoFlags |= MPT_TAPE_NEGO_IDP;
}
}
}
offset = pspi_data->maxSyncOffset;
/* If RAID, never disable QAS
* else if non RAID, do not disable
* QAS if bit 1 is set
* bit 1 QAS support, non-raid only
* bit 0 IU support
*/
if (target->raidVolume == 1)
{
noQas = 0;
}
}
else
{
factor = MPT_ASYNC;
offset = 0;
}
}
if (!sdev->tagged_supported)
{
target->tflags &= ~MPT_TARGET_FLAGS_Q_YES;
}
/* Update tflags based on NVRAM settings. (SCSI only)
*/
if (pspi_data->nvram && (pspi_data->nvram[id] != MPT_HOST_NVRAM_INVALID))
{
nvram = pspi_data->nvram[id];
nfactor = (nvram & MPT_NVRAM_SYNC_MASK) >> 8;
if (width)
{
width = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1;
}
if (offset > 0)
{
/* Ensure factor is set to the
* maximum of: adapter, nvram, inquiry
*/
if (nfactor)
{
if (nfactor < pspi_data->minSyncFactor )
{
nfactor = pspi_data->minSyncFactor;
}
factor = max(factor, nfactor);
if (factor == MPT_ASYNC)
{
offset = 0;
}
}
else
{
offset = 0;
factor = MPT_ASYNC;
}
}
else
{
factor = MPT_ASYNC;
}
}
/* Make sure data is consistent
*/
if ((!width) && (factor < MPT_ULTRA2))
{
factor = MPT_ULTRA2;
}
/* Save the data to the target structure.
*/
target->minSyncFactor = factor;
target->maxOffset = offset;
target->maxWidth = width;
spi_min_period(scsi_target(sdev)) = factor;
spi_max_offset(scsi_target(sdev)) = offset;
spi_max_width(scsi_target(sdev)) = width;
target->tflags |= MPT_TARGET_FLAGS_VALID_NEGO;
/* Disable unused features.
*/
if (!width)
{
target->negoFlags |= MPT_TARGET_NO_NEGO_WIDE;
}
if (!offset)
{
target->negoFlags |= MPT_TARGET_NO_NEGO_SYNC;
}
if ( factor > MPT_ULTRA320 )
{
noQas = 0;
}
if (noQas && (pspi_data->noQas == 0))
{
pspi_data->noQas |= MPT_TARGET_NO_NEGO_QAS;
target->negoFlags |= MPT_TARGET_NO_NEGO_QAS;
/* Disable QAS in a mixed configuration case
*/
ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"Disabling QAS due to noQas=%02x on id=%d!\n", ioc->name, noQas, id));
}
}
/**
* mptspi_writeIOCPage4 - write IOC Page 4
* @hd: Pointer to a SCSI Host Structure
* @channel: channel number
* @id: write IOC Page4 for this ID & Bus
*
* Return: -EAGAIN if unable to obtain a Message Frame
* or 0 if success.
*
* Remark: We do not wait for a return, write pages sequentially.
**/
static int
mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id)
{
MPT_ADAPTER *ioc = hd->ioc;
Config_t *pReq;
IOCPage4_t *IOCPage4Ptr;
MPT_FRAME_HDR *mf;
dma_addr_t dataDma;
u16 req_idx;
u32 frameOffset;
u32 flagsLength;
int ii;
/* Get a MF for this command.
*/
if ((mf = mpt_get_msg_frame(ioc->DoneCtx, ioc)) == NULL)
{
dfailprintk(ioc, printk(MYIOC_s_WARN_FMT
"writeIOCPage4 : no msg frames!\n", ioc->name));
return -EAGAIN;
}
/* Set the request and the data pointers.
* Place data at end of MF.
*/
pReq = (Config_t *)mf;
req_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx);
frameOffset = ioc->req_sz - sizeof(IOCPage4_t);
/* Complete the request frame (same for all requests).
*/
pReq->Action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT;
pReq->Reserved = 0;
pReq->ChainOffset = 0;
pReq->Function = MPI_FUNCTION_CONFIG;
pReq->ExtPageLength = 0;
pReq->ExtPageType = 0;
pReq->MsgFlags = 0;
for (ii = 0; ii < 8; ii++)
{
pReq->Reserved2[ii] = 0;
}
IOCPage4Ptr = ioc->spi_data.pIocPg4;
dataDma = ioc->spi_data.IocPg4_dma;
ii = IOCPage4Ptr->ActiveSEP++;
IOCPage4Ptr->SEP[ii].SEPTargetID = id;
IOCPage4Ptr->SEP[ii].SEPBus = channel;
pReq->Header = IOCPage4Ptr->Header;
pReq->PageAddress = cpu_to_le32(id | (channel << 8 ));
/* Add a SGE to the config request.
*/
flagsLength = MPT_SGE_FLAGS_SSIMPLE_WRITE |
(IOCPage4Ptr->Header.PageLength + ii) * 4;
ioc->add_sge((char *)&pReq->PageBufferSGE, flagsLength, dataDma);
ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"writeIOCPage4: MaxSEP=%d ActiveSEP=%d id=%d bus=%d\n",
ioc->name, IOCPage4Ptr->MaxSEP, IOCPage4Ptr->ActiveSEP, id, channel));
mpt_put_msg_frame(ioc->DoneCtx, ioc, mf);
return 0;
}
/**
* mptspi_initTarget - Target, LUN alloc/free functionality.
* @hd: Pointer to MPT_SCSI_HOST structure
* @vtarget: per target private data
* @sdev: SCSI device
*
* NOTE: It's only SAFE to call this routine if data points to
* sane & valid STANDARD INQUIRY data!
*
* Allocate and initialize memory for this target.
* Save inquiry data.
*
**/
static void
mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget,
struct scsi_device *sdev)
{
/* Is LUN supported? If so, upper 2 bits will be 0
* in first byte of inquiry data.
*/
if (sdev->inq_periph_qual != 0)
{
return;
}
if (vtarget == NULL)
{
return;
}
vtarget->type = sdev->type;
if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te))
{
/* Treat all Processors as SAF-TE if
* command line option is set */
vtarget->tflags |= MPT_TARGET_FLAGS_SAF_TE_ISSUED;
mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id);
}
else if ((sdev->type == TYPE_PROCESSOR) &&
!(vtarget->tflags & MPT_TARGET_FLAGS_SAF_TE_ISSUED ))
{
if (sdev->inquiry_len > 49 )
{
if (sdev->inquiry[44] == 'S' &&
sdev->inquiry[45] == 'A' &&
sdev->inquiry[46] == 'F' &&
sdev->inquiry[47] == '-' &&
sdev->inquiry[48] == 'T' &&
sdev->inquiry[49] == 'E' )
{
vtarget->tflags |= MPT_TARGET_FLAGS_SAF_TE_ISSUED;
mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id);
}
}
}
mptspi_setTargetNegoParms(hd, vtarget, sdev);
}
/**
* mptspi_is_raid - Determines whether target is belonging to volume
* @hd: Pointer to a SCSI HOST structure
* @id: target device id
*
* Return:
* non-zero = true
* zero = false
*
*/
static int
mptspi_is_raid(struct _MPT_SCSI_HOST *hd, u32 id)
{
int i, rc = 0;
MPT_ADAPTER *ioc = hd->ioc;
if (!ioc->raid_data.pIocPg2)
{
goto out;
}
if (!ioc->raid_data.pIocPg2->NumActiveVolumes)
{
goto out;
}
for (i = 0; i < ioc->raid_data.pIocPg2->NumActiveVolumes; i++)
{
if (ioc->raid_data.pIocPg2->RaidVolume[i].VolumeID == id)
{
rc = 1;
goto out;
}
}
out:
return rc;
}
static int mptspi_target_alloc(struct scsi_target *starget)
{
struct Scsi_Host *shost = dev_to_shost(&starget->dev);
struct _MPT_SCSI_HOST *hd = shost_priv(shost);
VirtTarget *vtarget;
MPT_ADAPTER *ioc;
if (hd == NULL)
{
return -ENODEV;
}
ioc = hd->ioc;
vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL);
if (!vtarget)
{
return -ENOMEM;
}
vtarget->ioc_id = ioc->id;
vtarget->tflags = MPT_TARGET_FLAGS_Q_YES;
vtarget->id = (u8)starget->id;
vtarget->channel = (u8)starget->channel;
vtarget->starget = starget;
starget->hostdata = vtarget;
if (starget->channel == 1)
{
if (mptscsih_is_phys_disk(ioc, 0, starget->id) == 0)
{
return 0;
}
vtarget->tflags |= MPT_TARGET_FLAGS_RAID_COMPONENT;
/* The real channel for this device is zero */
vtarget->channel = 0;
/* The actual physdisknum (for RAID passthrough) */
vtarget->id = mptscsih_raid_id_to_num(ioc, 0,
starget->id);
}
if (starget->channel == 0 &&
mptspi_is_raid(hd, starget->id))
{
vtarget->raidVolume = 1;
ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"RAID Volume @ channel=%d id=%d\n", ioc->name, starget->channel,
starget->id));
}
if (ioc->spi_data.nvram &&
ioc->spi_data.nvram[starget->id] != MPT_HOST_NVRAM_INVALID)
{
u32 nvram = ioc->spi_data.nvram[starget->id];
spi_min_period(starget) = (nvram & MPT_NVRAM_SYNC_MASK) >> MPT_NVRAM_SYNC_SHIFT;
spi_max_width(starget) = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1;
}
else
{
spi_min_period(starget) = ioc->spi_data.minSyncFactor;
spi_max_width(starget) = ioc->spi_data.maxBusWidth;
}
spi_max_offset(starget) = ioc->spi_data.maxSyncOffset;
spi_offset(starget) = 0;
spi_period(starget) = 0xFF;
mptspi_write_width(starget, 0);
return 0;
}
static void
mptspi_target_destroy(struct scsi_target *starget)
{
kfree(starget->hostdata);
starget->hostdata = NULL;
}
/**
* mptspi_print_write_nego - negotiation parameters debug info that is being sent
* @hd: Pointer to a SCSI HOST structure
* @starget: SCSI target
* @ii: negotiation parameters
*
*/
static void
mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii)
{
ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Requested = 0x%08x"
" ( %s factor = 0x%02x @ offset = 0x%02x %s%s%s%s%s%s%s%s)\n",
hd->ioc->name, starget->id, ii,
ii & MPI_SCSIDEVPAGE0_NP_WIDE ? "Wide " : "",
((ii >> 8) & 0xFF), ((ii >> 16) & 0xFF),
ii & MPI_SCSIDEVPAGE0_NP_IU ? "IU " : "",
ii & MPI_SCSIDEVPAGE0_NP_DT ? "DT " : "",
ii & MPI_SCSIDEVPAGE0_NP_QAS ? "QAS " : "",
ii & MPI_SCSIDEVPAGE0_NP_HOLD_MCS ? "HOLDMCS " : "",
ii & MPI_SCSIDEVPAGE0_NP_WR_FLOW ? "WRFLOW " : "",
ii & MPI_SCSIDEVPAGE0_NP_RD_STRM ? "RDSTRM " : "",
ii & MPI_SCSIDEVPAGE0_NP_RTI ? "RTI " : "",
ii & MPI_SCSIDEVPAGE0_NP_PCOMP_EN ? "PCOMP " : ""));
}
/**
* mptspi_print_read_nego - negotiation parameters debug info that is being read
* @hd: Pointer to a SCSI HOST structure
* @starget: SCSI target
* @ii: negotiation parameters
*
*/
static void
mptspi_print_read_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii)
{
ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Read = 0x%08x"
" ( %s factor = 0x%02x @ offset = 0x%02x %s%s%s%s%s%s%s%s)\n",
hd->ioc->name, starget->id, ii,
ii & MPI_SCSIDEVPAGE0_NP_WIDE ? "Wide " : "",
((ii >> 8) & 0xFF), ((ii >> 16) & 0xFF),
ii & MPI_SCSIDEVPAGE0_NP_IU ? "IU " : "",
ii & MPI_SCSIDEVPAGE0_NP_DT ? "DT " : "",
ii & MPI_SCSIDEVPAGE0_NP_QAS ? "QAS " : "",
ii & MPI_SCSIDEVPAGE0_NP_HOLD_MCS ? "HOLDMCS " : "",
ii & MPI_SCSIDEVPAGE0_NP_WR_FLOW ? "WRFLOW " : "",
ii & MPI_SCSIDEVPAGE0_NP_RD_STRM ? "RDSTRM " : "",
ii & MPI_SCSIDEVPAGE0_NP_RTI ? "RTI " : "",
ii & MPI_SCSIDEVPAGE0_NP_PCOMP_EN ? "PCOMP " : ""));
}
static int mptspi_read_spi_device_pg0(struct scsi_target *starget,
struct _CONFIG_PAGE_SCSI_DEVICE_0 *pass_pg0)
{
struct Scsi_Host *shost = dev_to_shost(&starget->dev);
struct _MPT_SCSI_HOST *hd = shost_priv(shost);
struct _MPT_ADAPTER *ioc = hd->ioc;
struct _CONFIG_PAGE_SCSI_DEVICE_0 *spi_dev_pg0;
dma_addr_t spi_dev_pg0_dma;
int size;
struct _x_config_parms cfg;
struct _CONFIG_PAGE_HEADER hdr;
int err = -EBUSY;
/* No SPI parameters for RAID devices */
if (starget->channel == 0 &&
mptspi_is_raid(hd, starget->id))
{
return -1;
}
size = ioc->spi_data.sdp0length * 4;
/*
if (ioc->spi_data.sdp0length & 1)
size += size + 4;
size += 2048;
*/
spi_dev_pg0 = dma_alloc_coherent(&ioc->pcidev->dev, size, &spi_dev_pg0_dma, GFP_KERNEL);
if (spi_dev_pg0 == NULL)
{
starget_printk(KERN_ERR, starget, MYIOC_s_FMT
"dma_alloc_coherent for parameters failed\n", ioc->name);
return -EINVAL;
}
memset(&hdr, 0, sizeof(hdr));
hdr.PageVersion = ioc->spi_data.sdp0version;
hdr.PageLength = ioc->spi_data.sdp0length;
hdr.PageNumber = 0;
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
memset(&cfg, 0, sizeof(cfg));
cfg.cfghdr.hdr = &hdr;
cfg.physAddr = spi_dev_pg0_dma;
cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT;
cfg.dir = 0;
cfg.pageAddr = starget->id;
cfg.timeout = 60;
if (mpt_config(ioc, &cfg))
{
starget_printk(KERN_ERR, starget, MYIOC_s_FMT "mpt_config failed\n", ioc->name);
goto out_free;
}
err = 0;
memcpy(pass_pg0, spi_dev_pg0, size);
mptspi_print_read_nego(hd, starget, le32_to_cpu(spi_dev_pg0->NegotiatedParameters));
out_free:
dma_free_coherent(&ioc->pcidev->dev, size, spi_dev_pg0, spi_dev_pg0_dma);
return err;
}
static u32 mptspi_getRP(struct scsi_target *starget)
{
u32 nego = 0;
nego |= spi_iu(starget) ? MPI_SCSIDEVPAGE1_RP_IU : 0;
nego |= spi_dt(starget) ? MPI_SCSIDEVPAGE1_RP_DT : 0;
nego |= spi_qas(starget) ? MPI_SCSIDEVPAGE1_RP_QAS : 0;
nego |= spi_hold_mcs(starget) ? MPI_SCSIDEVPAGE1_RP_HOLD_MCS : 0;
nego |= spi_wr_flow(starget) ? MPI_SCSIDEVPAGE1_RP_WR_FLOW : 0;
nego |= spi_rd_strm(starget) ? MPI_SCSIDEVPAGE1_RP_RD_STRM : 0;
nego |= spi_rti(starget) ? MPI_SCSIDEVPAGE1_RP_RTI : 0;
nego |= spi_pcomp_en(starget) ? MPI_SCSIDEVPAGE1_RP_PCOMP_EN : 0;
nego |= (spi_period(starget) << MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD) & MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK;
nego |= (spi_offset(starget) << MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET) & MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK;
nego |= spi_width(starget) ? MPI_SCSIDEVPAGE1_RP_WIDE : 0;
return nego;
}
static void mptspi_read_parameters(struct scsi_target *starget)
{
int nego;
struct _CONFIG_PAGE_SCSI_DEVICE_0 spi_dev_pg0;
mptspi_read_spi_device_pg0(starget, &spi_dev_pg0);
nego = le32_to_cpu(spi_dev_pg0.NegotiatedParameters);
spi_iu(starget) = (nego & MPI_SCSIDEVPAGE0_NP_IU) ? 1 : 0;
spi_dt(starget) = (nego & MPI_SCSIDEVPAGE0_NP_DT) ? 1 : 0;
spi_qas(starget) = (nego & MPI_SCSIDEVPAGE0_NP_QAS) ? 1 : 0;
spi_wr_flow(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WR_FLOW) ? 1 : 0;
spi_rd_strm(starget) = (nego & MPI_SCSIDEVPAGE0_NP_RD_STRM) ? 1 : 0;
spi_rti(starget) = (nego & MPI_SCSIDEVPAGE0_NP_RTI) ? 1 : 0;
spi_pcomp_en(starget) = (nego & MPI_SCSIDEVPAGE0_NP_PCOMP_EN) ? 1 : 0;
spi_hold_mcs(starget) = (nego & MPI_SCSIDEVPAGE0_NP_HOLD_MCS) ? 1 : 0;
spi_period(starget) = (nego & MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK) >> MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_PERIOD;
spi_offset(starget) = (nego & MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK) >> MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_OFFSET;
spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0;
}
static int
mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id)
{
MPT_ADAPTER *ioc = hd->ioc;
MpiRaidActionRequest_t *pReq;
MPT_FRAME_HDR *mf;
int ret;
unsigned long timeleft;
mutex_lock(&ioc->internal_cmds.mutex);
/* Get and Populate a free Frame
*/
if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL)
{
dfailprintk(hd->ioc, printk(MYIOC_s_WARN_FMT
"%s: no msg frames!\n", ioc->name, __func__));
ret = -EAGAIN;
goto out;
}
pReq = (MpiRaidActionRequest_t *)mf;
if (quiesce)
{
pReq->Action = MPI_RAID_ACTION_QUIESCE_PHYS_IO;
}
else
{
pReq->Action = MPI_RAID_ACTION_ENABLE_PHYS_IO;
}
pReq->Reserved1 = 0;
pReq->ChainOffset = 0;
pReq->Function = MPI_FUNCTION_RAID_ACTION;
pReq->VolumeID = id;
pReq->VolumeBus = channel;
pReq->PhysDiskNum = 0;
pReq->MsgFlags = 0;
pReq->Reserved2 = 0;
pReq->ActionDataWord = 0; /* Reserved for this action */
ioc->add_sge((char *)&pReq->ActionDataSGE,
MPT_SGE_FLAGS_SSIMPLE_READ | 0, (dma_addr_t) - 1);
ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT "RAID Volume action=%x channel=%d id=%d\n",
ioc->name, pReq->Action, channel, id));
INITIALIZE_MGMT_STATUS(ioc->internal_cmds.status)
mpt_put_msg_frame(ioc->InternalCtx, ioc, mf);
timeleft = wait_for_completion_timeout(&ioc->internal_cmds.done, 10 * HZ);
if (!(ioc->internal_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD))
{
ret = -ETIME;
dfailprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: TIMED OUT!\n",
ioc->name, __func__));
if (ioc->internal_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET)
{
goto out;
}
if (!timeleft)
{
printk(MYIOC_s_WARN_FMT "Issuing Reset from %s!!\n",
ioc->name, __func__);
mpt_HardResetHandler(ioc, CAN_SLEEP);
mpt_free_msg_frame(ioc, mf);
}
goto out;
}
ret = ioc->internal_cmds.completion_code;
out:
CLEAR_MGMT_STATUS(ioc->internal_cmds.status)
mutex_unlock(&ioc->internal_cmds.mutex);
return ret;
}
static void mptspi_dv_device(struct _MPT_SCSI_HOST *hd,
struct scsi_device *sdev)
{
VirtTarget *vtarget = scsi_target(sdev)->hostdata;
MPT_ADAPTER *ioc = hd->ioc;
/* no DV on RAID devices */
if (sdev->channel == 0 &&
mptspi_is_raid(hd, sdev->id))
{
return;
}
/* If this is a piece of a RAID, then quiesce first */
if (sdev->channel == 1 &&
mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0)
{
starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
"Integrated RAID quiesce failed\n", ioc->name);
return;
}
hd->spi_pending |= (1 << sdev->id);
spi_dv_device(sdev);
hd->spi_pending &= ~(1 << sdev->id);
if (sdev->channel == 1 &&
mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0)
starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
"Integrated RAID resume failed\n", ioc->name);
mptspi_read_parameters(sdev->sdev_target);
spi_display_xfer_agreement(sdev->sdev_target);
mptspi_read_parameters(sdev->sdev_target);
}
static int mptspi_slave_alloc(struct scsi_device *sdev)
{
MPT_SCSI_HOST *hd = shost_priv(sdev->host);
VirtTarget *vtarget;
VirtDevice *vdevice;
struct scsi_target *starget;
MPT_ADAPTER *ioc = hd->ioc;
if (sdev->channel == 1 &&
mptscsih_is_phys_disk(ioc, 0, sdev->id) == 0)
{
return -ENXIO;
}
vdevice = kzalloc(sizeof(VirtDevice), GFP_KERNEL);
if (!vdevice)
{
printk(MYIOC_s_ERR_FMT "slave_alloc kmalloc(%zd) FAILED!\n",
ioc->name, sizeof(VirtDevice));
return -ENOMEM;
}
vdevice->lun = sdev->lun;
sdev->hostdata = vdevice;
starget = scsi_target(sdev);
vtarget = starget->hostdata;
vdevice->vtarget = vtarget;
vtarget->num_luns++;
if (sdev->channel == 1)
{
sdev->no_uld_attach = 1;
}
return 0;
}
static int mptspi_slave_configure(struct scsi_device *sdev)
{
struct _MPT_SCSI_HOST *hd = shost_priv(sdev->host);
VirtTarget *vtarget = scsi_target(sdev)->hostdata;
int ret;
mptspi_initTarget(hd, vtarget, sdev);
ret = mptscsih_slave_configure(sdev);
if (ret)
{
return ret;
}
ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d min_period=0x%02x"
" max_offset=0x%02x max_width=%d\n", hd->ioc->name,
sdev->id, spi_min_period(scsi_target(sdev)),
spi_max_offset(scsi_target(sdev)),
spi_max_width(scsi_target(sdev))));
if ((sdev->channel == 1 ||
!(mptspi_is_raid(hd, sdev->id))) &&
!spi_initial_dv(sdev->sdev_target))
{
mptspi_dv_device(hd, sdev);
}
return 0;
}
static int
mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt)
{
struct _MPT_SCSI_HOST *hd = shost_priv(shost);
VirtDevice *vdevice = SCpnt->device->hostdata;
MPT_ADAPTER *ioc = hd->ioc;
if (!vdevice || !vdevice->vtarget)
{
SCpnt->result = DID_NO_CONNECT << 16;
SCpnt->scsi_done(SCpnt);
return 0;
}
if (SCpnt->device->channel == 1 &&
mptscsih_is_phys_disk(ioc, 0, SCpnt->device->id) == 0)
{
SCpnt->result = DID_NO_CONNECT << 16;
SCpnt->scsi_done(SCpnt);
return 0;
}
if (spi_dv_pending(scsi_target(SCpnt->device)))
{
ddvprintk(ioc, scsi_print_command(SCpnt));
}
return mptscsih_qcmd(SCpnt);
}
static void mptspi_slave_destroy(struct scsi_device *sdev)
{
struct scsi_target *starget = scsi_target(sdev);
VirtTarget *vtarget = starget->hostdata;
VirtDevice *vdevice = sdev->hostdata;
/* Will this be the last lun on a non-raid device? */
if (vtarget->num_luns == 1 && vdevice->configured_lun)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
/* Async Narrow */
pg1.RequestedParameters = 0;
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
mptscsih_slave_destroy(sdev);
}
static struct scsi_host_template mptspi_driver_template =
{
.module = THIS_MODULE,
.proc_name = "mptspi",
.show_info = mptscsih_show_info,
.name = "MPT SPI Host",
.info = mptscsih_info,
.queuecommand = mptspi_qcmd,
.target_alloc = mptspi_target_alloc,
.slave_alloc = mptspi_slave_alloc,
.slave_configure = mptspi_slave_configure,
.target_destroy = mptspi_target_destroy,
.slave_destroy = mptspi_slave_destroy,
.change_queue_depth = mptscsih_change_queue_depth,
.eh_abort_handler = mptscsih_abort,
.eh_device_reset_handler = mptscsih_dev_reset,
.eh_bus_reset_handler = mptscsih_bus_reset,
.eh_host_reset_handler = mptscsih_host_reset,
.bios_param = mptscsih_bios_param,
.can_queue = MPT_SCSI_CAN_QUEUE,
.this_id = -1,
.sg_tablesize = MPT_SCSI_SG_DEPTH,
.max_sectors = 8192,
.cmd_per_lun = 7,
.use_clustering = ENABLE_CLUSTERING,
.shost_attrs = mptscsih_host_attrs,
};
static int mptspi_write_spi_device_pg1(struct scsi_target *starget,
struct _CONFIG_PAGE_SCSI_DEVICE_1 *pass_pg1)
{
struct Scsi_Host *shost = dev_to_shost(&starget->dev);
struct _MPT_SCSI_HOST *hd = shost_priv(shost);
struct _MPT_ADAPTER *ioc = hd->ioc;
struct _CONFIG_PAGE_SCSI_DEVICE_1 *pg1;
dma_addr_t pg1_dma;
int size;
struct _x_config_parms cfg;
struct _CONFIG_PAGE_HEADER hdr;
int err = -EBUSY;
u32 nego_parms;
u32 period;
struct scsi_device *sdev;
int i;
/* don't allow updating nego parameters on RAID devices */
if (starget->channel == 0 &&
mptspi_is_raid(hd, starget->id))
{
return -1;
}
size = ioc->spi_data.sdp1length * 4;
pg1 = dma_alloc_coherent(&ioc->pcidev->dev, size, &pg1_dma, GFP_KERNEL);
if (pg1 == NULL)
{
starget_printk(KERN_ERR, starget, MYIOC_s_FMT
"dma_alloc_coherent for parameters failed\n", ioc->name);
return -EINVAL;
}
memset(&hdr, 0, sizeof(hdr));
hdr.PageVersion = ioc->spi_data.sdp1version;
hdr.PageLength = ioc->spi_data.sdp1length;
hdr.PageNumber = 1;
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
memset(&cfg, 0, sizeof(cfg));
cfg.cfghdr.hdr = &hdr;
cfg.physAddr = pg1_dma;
cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT;
cfg.dir = 1;
cfg.pageAddr = starget->id;
memcpy(pg1, pass_pg1, size);
pg1->Header.PageVersion = hdr.PageVersion;
pg1->Header.PageLength = hdr.PageLength;
pg1->Header.PageNumber = hdr.PageNumber;
pg1->Header.PageType = hdr.PageType;
nego_parms = le32_to_cpu(pg1->RequestedParameters);
period = (nego_parms & MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK) >>
MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD;
if (period == 8)
{
/* Turn on inline data padding for TAPE when running U320 */
for (i = 0 ; i < 16; i++)
{
sdev = scsi_device_lookup_by_target(starget, i);
if (sdev && sdev->type == TYPE_TAPE)
{
sdev_printk(KERN_DEBUG, sdev, MYIOC_s_FMT
"IDP:ON\n", ioc->name);
nego_parms |= MPI_SCSIDEVPAGE1_RP_IDP;
pg1->RequestedParameters =
cpu_to_le32(nego_parms);
break;
}
}
}
mptspi_print_write_nego(hd, starget, le32_to_cpu(pg1->RequestedParameters));
if (mpt_config(ioc, &cfg))
{
starget_printk(KERN_ERR, starget, MYIOC_s_FMT
"mpt_config failed\n", ioc->name);
goto out_free;
}
err = 0;
out_free:
dma_free_coherent(&ioc->pcidev->dev, size, pg1, pg1_dma);
return err;
}
static void mptspi_write_offset(struct scsi_target *starget, int offset)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
if (offset < 0)
{
offset = 0;
}
if (offset > 255)
{
offset = 255;
}
if (spi_offset(starget) == -1)
{
mptspi_read_parameters(starget);
}
spi_offset(starget) = offset;
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
static void mptspi_write_period(struct scsi_target *starget, int period)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
if (period < 8)
{
period = 8;
}
if (period > 255)
{
period = 255;
}
if (spi_period(starget) == -1)
{
mptspi_read_parameters(starget);
}
if (period == 8)
{
spi_iu(starget) = 1;
spi_dt(starget) = 1;
}
else if (period == 9)
{
spi_dt(starget) = 1;
}
spi_period(starget) = period;
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
static void mptspi_write_dt(struct scsi_target *starget, int dt)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
if (spi_period(starget) == -1)
{
mptspi_read_parameters(starget);
}
if (!dt && spi_period(starget) < 10)
{
spi_period(starget) = 10;
}
spi_dt(starget) = dt;
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
static void mptspi_write_iu(struct scsi_target *starget, int iu)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
if (spi_period(starget) == -1)
{
mptspi_read_parameters(starget);
}
if (!iu && spi_period(starget) < 9)
{
spi_period(starget) = 9;
}
spi_iu(starget) = iu;
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
#define MPTSPI_SIMPLE_TRANSPORT_PARM(parm) \
static void mptspi_write_##parm(struct scsi_target *starget, int parm)\
{ \
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1; \
u32 nego; \
\
spi_##parm(starget) = parm; \
\
nego = mptspi_getRP(starget); \
\
pg1.RequestedParameters = cpu_to_le32(nego); \
pg1.Reserved = 0; \
pg1.Configuration = 0; \
\
mptspi_write_spi_device_pg1(starget, &pg1); \
}
MPTSPI_SIMPLE_TRANSPORT_PARM(rd_strm)
MPTSPI_SIMPLE_TRANSPORT_PARM(wr_flow)
MPTSPI_SIMPLE_TRANSPORT_PARM(rti)
MPTSPI_SIMPLE_TRANSPORT_PARM(hold_mcs)
MPTSPI_SIMPLE_TRANSPORT_PARM(pcomp_en)
static void mptspi_write_qas(struct scsi_target *starget, int qas)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
struct Scsi_Host *shost = dev_to_shost(&starget->dev);
struct _MPT_SCSI_HOST *hd = shost_priv(shost);
VirtTarget *vtarget = starget->hostdata;
u32 nego;
if ((vtarget->negoFlags & MPT_TARGET_NO_NEGO_QAS) ||
hd->ioc->spi_data.noQas)
{
spi_qas(starget) = 0;
}
else
{
spi_qas(starget) = qas;
}
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
static void mptspi_write_width(struct scsi_target *starget, int width)
{
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
if (!width)
{
spi_dt(starget) = 0;
if (spi_period(starget) < 10)
{
spi_period(starget) = 10;
}
}
spi_width(starget) = width;
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
struct work_queue_wrapper
{
struct work_struct work;
struct _MPT_SCSI_HOST *hd;
int disk;
};
static void mpt_work_wrapper(struct work_struct *work)
{
struct work_queue_wrapper *wqw =
container_of(work, struct work_queue_wrapper, work);
struct _MPT_SCSI_HOST *hd = wqw->hd;
MPT_ADAPTER *ioc = hd->ioc;
struct Scsi_Host *shost = ioc->sh;
struct scsi_device *sdev;
int disk = wqw->disk;
struct _CONFIG_PAGE_IOC_3 *pg3;
kfree(wqw);
mpt_findImVolumes(ioc);
pg3 = ioc->raid_data.pIocPg3;
if (!pg3)
{
return;
}
shost_for_each_device(sdev, shost)
{
struct scsi_target *starget = scsi_target(sdev);
VirtTarget *vtarget = starget->hostdata;
/* only want to search RAID components */
if (sdev->channel != 1)
{
continue;
}
/* The id is the raid PhysDiskNum, even if
* starget->id is the actual target address */
if (vtarget->id != disk)
{
continue;
}
starget_printk(KERN_INFO, vtarget->starget, MYIOC_s_FMT
"Integrated RAID requests DV of new device\n", ioc->name);
mptspi_dv_device(hd, sdev);
}
shost_printk(KERN_INFO, shost, MYIOC_s_FMT
"Integrated RAID detects new device %d\n", ioc->name, disk);
scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, SCSI_SCAN_RESCAN);
}
static void mpt_dv_raid(struct _MPT_SCSI_HOST *hd, int disk)
{
struct work_queue_wrapper *wqw = kmalloc(sizeof(*wqw), GFP_ATOMIC);
MPT_ADAPTER *ioc = hd->ioc;
if (!wqw)
{
shost_printk(KERN_ERR, ioc->sh, MYIOC_s_FMT
"Failed to act on RAID event for physical disk %d\n",
ioc->name, disk);
return;
}
INIT_WORK(&wqw->work, mpt_work_wrapper);
wqw->hd = hd;
wqw->disk = disk;
schedule_work(&wqw->work);
}
static int
mptspi_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
{
u8 event = le32_to_cpu(pEvReply->Event) & 0xFF;
struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
if (ioc->bus_type != SPI)
{
return 0;
}
if (hd && event == MPI_EVENT_INTEGRATED_RAID)
{
int reason
= (le32_to_cpu(pEvReply->Data[0]) & 0x00FF0000) >> 16;
if (reason == MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED)
{
int disk = (le32_to_cpu(pEvReply->Data[0]) & 0xFF000000) >> 24;
mpt_dv_raid(hd, disk);
}
}
return mptscsih_event_process(ioc, pEvReply);
}
static int
mptspi_deny_binding(struct scsi_target *starget)
{
struct _MPT_SCSI_HOST *hd =
(struct _MPT_SCSI_HOST *)dev_to_shost(starget->dev.parent)->hostdata;
return ((mptspi_is_raid(hd, starget->id)) &&
starget->channel == 0) ? 1 : 0;
}
static struct spi_function_template mptspi_transport_functions =
{
.get_offset = mptspi_read_parameters,
.set_offset = mptspi_write_offset,
.show_offset = 1,
.get_period = mptspi_read_parameters,
.set_period = mptspi_write_period,
.show_period = 1,
.get_width = mptspi_read_parameters,
.set_width = mptspi_write_width,
.show_width = 1,
.get_iu = mptspi_read_parameters,
.set_iu = mptspi_write_iu,
.show_iu = 1,
.get_dt = mptspi_read_parameters,
.set_dt = mptspi_write_dt,
.show_dt = 1,
.get_qas = mptspi_read_parameters,
.set_qas = mptspi_write_qas,
.show_qas = 1,
.get_wr_flow = mptspi_read_parameters,
.set_wr_flow = mptspi_write_wr_flow,
.show_wr_flow = 1,
.get_rd_strm = mptspi_read_parameters,
.set_rd_strm = mptspi_write_rd_strm,
.show_rd_strm = 1,
.get_rti = mptspi_read_parameters,
.set_rti = mptspi_write_rti,
.show_rti = 1,
.get_pcomp_en = mptspi_read_parameters,
.set_pcomp_en = mptspi_write_pcomp_en,
.show_pcomp_en = 1,
.get_hold_mcs = mptspi_read_parameters,
.set_hold_mcs = mptspi_write_hold_mcs,
.show_hold_mcs = 1,
.deny_binding = mptspi_deny_binding,
};
/****************************************************************************
* Supported hardware
*/
static struct pci_device_id mptspi_pci_table[] =
{
{
PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_53C1030,
PCI_ANY_ID, PCI_ANY_ID
},
{
PCI_VENDOR_ID_ATTO, MPI_MANUFACTPAGE_DEVID_53C1030,
PCI_ANY_ID, PCI_ANY_ID
},
{
PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_53C1035,
PCI_ANY_ID, PCI_ANY_ID
},
{0} /* Terminating entry */
};
MODULE_DEVICE_TABLE(pci, mptspi_pci_table);
/*
* renegotiate for a given target
*/
static void
mptspi_dv_renegotiate_work(struct work_struct *work)
{
struct work_queue_wrapper *wqw =
container_of(work, struct work_queue_wrapper, work);
struct _MPT_SCSI_HOST *hd = wqw->hd;
struct scsi_device *sdev;
struct scsi_target *starget;
struct _CONFIG_PAGE_SCSI_DEVICE_1 pg1;
u32 nego;
MPT_ADAPTER *ioc = hd->ioc;
kfree(wqw);
if (hd->spi_pending)
{
shost_for_each_device(sdev, ioc->sh)
{
if (hd->spi_pending & (1 << sdev->id))
{
continue;
}
starget = scsi_target(sdev);
nego = mptspi_getRP(starget);
pg1.RequestedParameters = cpu_to_le32(nego);
pg1.Reserved = 0;
pg1.Configuration = 0;
mptspi_write_spi_device_pg1(starget, &pg1);
}
}
else
{
shost_for_each_device(sdev, ioc->sh)
mptspi_dv_device(hd, sdev);
}
}
static void
mptspi_dv_renegotiate(struct _MPT_SCSI_HOST *hd)
{
struct work_queue_wrapper *wqw = kmalloc(sizeof(*wqw), GFP_ATOMIC);
if (!wqw)
{
return;
}
INIT_WORK(&wqw->work, mptspi_dv_renegotiate_work);
wqw->hd = hd;
schedule_work(&wqw->work);
}
/*
* spi module reset handler
*/
static int
mptspi_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
{
int rc;
rc = mptscsih_ioc_reset(ioc, reset_phase);
if ((ioc->bus_type != SPI) || (!rc))
{
return rc;
}
/* only try to do a renegotiation if we're properly set up
* if we get an ioc fault on bringup, ioc->sh will be NULL */
if (reset_phase == MPT_IOC_POST_RESET &&
ioc->sh)
{
struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
mptspi_dv_renegotiate(hd);
}
return rc;
}
#ifdef CONFIG_PM
/*
* spi module resume handler
*/
static int
mptspi_resume(struct pci_dev *pdev)
{
MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
int rc;
rc = mptscsih_resume(pdev);
mptspi_dv_renegotiate(hd);
return rc;
}
#endif
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*
* mptspi_probe - Installs scsi devices per bus.
* @pdev: Pointer to pci_dev structure
*
* Returns 0 for success, non-zero for failure.
*
*/
static int
mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{
struct Scsi_Host *sh;
MPT_SCSI_HOST *hd;
MPT_ADAPTER *ioc;
unsigned long flags;
int ii;
int numSGE = 0;
int scale;
int ioc_cap;
int error = 0;
int r;
if ((r = mpt_attach(pdev, id)) != 0)
{
return r;
}
ioc = pci_get_drvdata(pdev);
ioc->DoneCtx = mptspiDoneCtx;
ioc->TaskCtx = mptspiTaskCtx;
ioc->InternalCtx = mptspiInternalCtx;
/* Added sanity check on readiness of the MPT adapter.
*/
if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL)
{
printk(MYIOC_s_WARN_FMT
"Skipping because it's not operational!\n",
ioc->name);
error = -ENODEV;
goto out_mptspi_probe;
}
if (!ioc->active)
{
printk(MYIOC_s_WARN_FMT "Skipping because it's disabled!\n",
ioc->name);
error = -ENODEV;
goto out_mptspi_probe;
}
/* Sanity check - ensure at least 1 port is INITIATOR capable
*/
ioc_cap = 0;
for (ii = 0; ii < ioc->facts.NumberOfPorts; ii++)
{
if (ioc->pfacts[ii].ProtocolFlags &
MPI_PORTFACTS_PROTOCOL_INITIATOR)
{
ioc_cap ++;
}
}
if (!ioc_cap)
{
printk(MYIOC_s_WARN_FMT
"Skipping ioc=%p because SCSI Initiator mode is NOT enabled!\n",
ioc->name, ioc);
return 0;
}
sh = scsi_host_alloc(&mptspi_driver_template, sizeof(MPT_SCSI_HOST));
if (!sh)
{
printk(MYIOC_s_WARN_FMT
"Unable to register controller with SCSI subsystem\n",
ioc->name);
error = -1;
goto out_mptspi_probe;
}
/* VMWare emulation doesn't properly implement WRITE_SAME
*/
if (pdev->subsystem_vendor == 0x15AD)
{
sh->no_write_same = 1;
}
spin_lock_irqsave(&ioc->FreeQlock, flags);
/* Attach the SCSI Host to the IOC structure
*/
ioc->sh = sh;
sh->io_port = 0;
sh->n_io_port = 0;
sh->irq = 0;
/* set 16 byte cdb's */
sh->max_cmd_len = 16;
/* Yikes! This is important!
* Otherwise, by default, linux
* only scans target IDs 0-7!
* pfactsN->MaxDevices unreliable
* (not supported in early
* versions of the FW).
* max_id = 1 + actual max id,
* max_lun = 1 + actual last lun,
* see hosts.h :o(
*/
sh->max_id = ioc->devices_per_bus;
sh->max_lun = MPT_LAST_LUN + 1;
/*
* If RAID Firmware Detected, setup virtual channel
*/
if (ioc->ir_firmware)
{
sh->max_channel = 1;
}
else
{
sh->max_channel = 0;
}
sh->this_id = ioc->pfacts[0].PortSCSIID;
/* Required entry.
*/
sh->unique_id = ioc->id;
/* Verify that we won't exceed the maximum
* number of chain buffers
* We can optimize: ZZ = req_sz/sizeof(SGE)
* For 32bit SGE's:
* numSGE = 1 + (ZZ-1)*(maxChain -1) + ZZ
* + (req_sz - 64)/sizeof(SGE)
* A slightly different algorithm is required for
* 64bit SGEs.
*/
scale = ioc->req_sz / ioc->SGE_size;
if (ioc->sg_addr_size == sizeof(u64))
{
numSGE = (scale - 1) *
(ioc->facts.MaxChainDepth - 1) + scale +
(ioc->req_sz - 60) / ioc->SGE_size;
}
else
{
numSGE = 1 + (scale - 1) *
(ioc->facts.MaxChainDepth - 1) + scale +
(ioc->req_sz - 64) / ioc->SGE_size;
}
if (numSGE < sh->sg_tablesize)
{
/* Reset this value */
dprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"Resetting sg_tablesize to %d from %d\n",
ioc->name, numSGE, sh->sg_tablesize));
sh->sg_tablesize = numSGE;
}
spin_unlock_irqrestore(&ioc->FreeQlock, flags);
hd = shost_priv(sh);
hd->ioc = ioc;
/* SCSI needs scsi_cmnd lookup table!
* (with size equal to req_depth*PtrSz!)
*/
ioc->ScsiLookup = kcalloc(ioc->req_depth, sizeof(void *), GFP_ATOMIC);
if (!ioc->ScsiLookup)
{
error = -ENOMEM;
goto out_mptspi_probe;
}
spin_lock_init(&ioc->scsi_lookup_lock);
dprintk(ioc, printk(MYIOC_s_DEBUG_FMT "ScsiLookup @ %p\n",
ioc->name, ioc->ScsiLookup));
ioc->spi_data.Saf_Te = mpt_saf_te;
ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"saf_te %x\n",
ioc->name,
mpt_saf_te));
ioc->spi_data.noQas = 0;
hd->last_queue_full = 0;
hd->spi_pending = 0;
/* Some versions of the firmware don't support page 0; without
* that we can't get the parameters */
if (ioc->spi_data.sdp0length != 0)
{
sh->transportt = mptspi_transport_template;
}
error = scsi_add_host (sh, &ioc->pcidev->dev);
if (error)
{
dprintk(ioc, printk(MYIOC_s_ERR_FMT
"scsi_add_host failed\n", ioc->name));
goto out_mptspi_probe;
}
/*
* issue internal bus reset
*/
if (ioc->spi_data.bus_reset)
mptscsih_IssueTaskMgmt(hd,
MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS,
0, 0, 0, 0, 5);
scsi_scan_host(sh);
return 0;
out_mptspi_probe:
mptscsih_remove(pdev);
return error;
}
static struct pci_driver mptspi_driver =
{
.name = "mptspi",
.id_table = mptspi_pci_table,
.probe = mptspi_probe,
.remove = mptscsih_remove,
.shutdown = mptscsih_shutdown,
#ifdef CONFIG_PM
.suspend = mptscsih_suspend,
.resume = mptspi_resume,
#endif
};
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/**
* mptspi_init - Register MPT adapter(s) as SCSI host(s) with SCSI mid-layer.
*
* Returns 0 for success, non-zero for failure.
*/
static int __init
mptspi_init(void)
{
int error;
show_mptmod_ver(my_NAME, my_VERSION);
mptspi_transport_template = spi_attach_transport(&mptspi_transport_functions);
if (!mptspi_transport_template)
{
return -ENODEV;
}
mptspiDoneCtx = mpt_register(mptscsih_io_done, MPTSPI_DRIVER,
"mptscsih_io_done");
mptspiTaskCtx = mpt_register(mptscsih_taskmgmt_complete, MPTSPI_DRIVER,
"mptscsih_taskmgmt_complete");
mptspiInternalCtx = mpt_register(mptscsih_scandv_complete,
MPTSPI_DRIVER, "mptscsih_scandv_complete");
mpt_event_register(mptspiDoneCtx, mptspi_event_process);
mpt_reset_register(mptspiDoneCtx, mptspi_ioc_reset);
error = pci_register_driver(&mptspi_driver);
if (error)
{
spi_release_transport(mptspi_transport_template);
}
return error;
}
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/**
* mptspi_exit - Unregisters MPT adapter(s)
*/
static void __exit
mptspi_exit(void)
{
pci_unregister_driver(&mptspi_driver);
mpt_reset_deregister(mptspiDoneCtx);
mpt_event_deregister(mptspiDoneCtx);
mpt_deregister(mptspiInternalCtx);
mpt_deregister(mptspiTaskCtx);
mpt_deregister(mptspiDoneCtx);
spi_release_transport(mptspi_transport_template);
}
module_init(mptspi_init);
module_exit(mptspi_exit);
|
gpl-3.0
|
firestarter/firestarter
|
redist/mirror-lib/mirror/pre_registered/default.hpp
|
1508
|
/**
* @file mirror/pre_registered/default.hpp
* @brief Pre-registration of the default set of namespace, types,
* classes, etc. with Mirror
*
* Copyright 2008-2010 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MIRROR_PRE_REGISTERED_DEFAULT_1012140609_HPP
#define MIRROR_PRE_REGISTERED_DEFAULT_1012140609_HPP
// namespaces
#include <mirror/pre_registered/namespace/std.hpp>
#include <mirror/pre_registered/namespace/boost.hpp>
#include <mirror/pre_registered/namespace/mirror.hpp>
// Native C/C++ types
#include <mirror/pre_registered/type/native.hpp>
// std::basic_string's
#include <mirror/pre_registered/type/std/string.hpp>
// std::pair template
#include <mirror/pre_registered/type/std/pair.hpp>
// std::tuple template
#include <mirror/pre_registered/type/std/tuple.hpp>
//
#include <mirror/pre_registered/type/std/initializer_list.hpp>
#include <mirror/pre_registered/type/std/allocator.hpp>
#include <mirror/pre_registered/type/std/memory.hpp>
#include <mirror/pre_registered/type/std/functional.hpp>
#include <mirror/pre_registered/type/std/vector.hpp>
#include <mirror/pre_registered/type/std/list.hpp>
#include <mirror/pre_registered/type/std/deque.hpp>
#include <mirror/pre_registered/type/std/map.hpp>
#include <mirror/pre_registered/type/std/set.hpp>
//
// std::tm structure
#include <mirror/pre_registered/class/std/tm.hpp>
#endif //include guard
|
gpl-3.0
|
danijelkavcic/sqlmake
|
src/SQLMakeTest/SQLPlusScannerDropStatementsTest.cs
|
26506
|
/*
Sqlmake http://code.google.com/p/sqlmake/
Copyright © 2010-2012 Mitja Golouh
This file is part of Sqlmake.
Sqlmake is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Sqlmake 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Sqlmake. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.IO;
using SQLMake;
namespace SQLMakeTest
{
[TestFixture]
class SQLPlusScannerDropStatementsTest
{
[Test]
public void DropClusterTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropCluster"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropCluster");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("CLUSTER", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("PERSONNEL", scanner.currCommand.objectName);
}
[Test]
public void DropContextTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropContext"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropContext");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("CONTEXT", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("HR_CONTEXT", scanner.currCommand.objectName);
}
[Test]
public void DropDatabaseTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropDatabase"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropDatabase");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("DATABASE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
}
[Test]
public void DropDatabaseLinkTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropDatabaseLink"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropDatabaseLink");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("DATABASE LINK", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("REMOTE", scanner.currCommand.objectName);
}
[Test]
public void DropPublicDatabaseLinkTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropPublicDatabaseLink"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropPublicDatabaseLink");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PUBLIC DATABASE LINK", scanner.currCommand.cmdName);
Assert.AreEqual("DATABASE LINK", scanner.currCommand.baseCmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("REMOTE", scanner.currCommand.objectName);
}
[Test]
public void DropDimensionTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropDimension"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropDimension");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("DIMENSION", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("CUSTOMERS_DIM", scanner.currCommand.objectName);
}
[Test]
public void DropDirectoryTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropDirectory"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropDirectory");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("DIRECTORY", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("BFILE_DIR", scanner.currCommand.objectName);
}
[Test]
public void DropDiskgroupTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropDiskgroup"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropDiskgroup");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("DISKGROUP", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("DGROUP_01", scanner.currCommand.objectName);
}
[Test]
public void DropEditionTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropEdition"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropEdition");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("EDITION", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("TEST", scanner.currCommand.objectName);
}
[Test]
public void DropFlashbackArchiveTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropFlashbackArchive"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropFlashbackArchive");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("FLASHBACK ARCHIVE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("TEST", scanner.currCommand.objectName);
}
[Test]
public void DropFunctionTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropFunction"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropFunction");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("FUNCTION", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("OE.SECONDMAX", scanner.currCommand.objectName);
}
[Test]
public void DropIndexTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropIndex"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropIndex");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("INDEX", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("ORD_CUSTOMER_IX_DEMO", scanner.currCommand.objectName);
}
[Test]
public void DropIndextypeTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropIndextype"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropIndextype");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("INDEXTYPE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("POSITION_INDEXTYPE", scanner.currCommand.objectName);
}
[Test]
public void DropJavaClassTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropJavaClass"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropJavaClass");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("JAVA CLASS", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("\"Agent\"", scanner.currCommand.objectName);
}
[Test]
public void DropJavaSourceTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropJavaSource"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropJavaSource");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("JAVA SOURCE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("\"Agent\"", scanner.currCommand.objectName);
}
[Test]
public void DropJavaResourceTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropJavaResource"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropJavaResource");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("JAVA RESOURCE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("\"Agent\"", scanner.currCommand.objectName);
}
[Test]
public void DropLibraryTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropLibrary"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropLibrary");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("LIBRARY", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EXT_LIB", scanner.currCommand.objectName);
}
[Test]
public void DropMaterializedViewTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropMaterializedView"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropMaterializedView");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("MATERIALIZED VIEW", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EMP_DATA", scanner.currCommand.objectName);
}
[Test]
public void DropMaterializedViewLogTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropMaterializedViewLog"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropMaterializedViewLog");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("MATERIALIZED VIEW LOG", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("OE.CUSTOMERS", scanner.currCommand.secondaryObjectName);
}
[Test]
public void DropOperatorTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropOperator"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropOperator");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("OPERATOR", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EQ_OP", scanner.currCommand.objectName);
}
[Test]
public void DropOutlineTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropOutline"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropOutline");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("OUTLINE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("SALARIES", scanner.currCommand.objectName);
}
[Test]
public void DropPackageTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropPackage"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropPackage");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PACKAGE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EMP_MGMT", scanner.currCommand.objectName);
}
[Test]
public void DropPackageBodyTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropPackageBody"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropPackageBody");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PACKAGE BODY", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EMP_MGMT", scanner.currCommand.objectName);
}
[Test]
public void DropProcedureTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropProcedure"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropProcedure");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PROCEDURE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("HR.REMOVE_EMP", scanner.currCommand.objectName);
}
[Test]
public void DropProfileTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropProfile"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropProfile");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PROFILE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("APP_USER", scanner.currCommand.objectName);
}
[Test]
public void DropRestorePointTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropRestorePoint"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropRestorePoint");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("RESTORE POINT", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("GOOD_DATA", scanner.currCommand.objectName);
}
[Test]
public void DropRoleTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropRole"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropRole");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("ROLE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("DW_MANAGER", scanner.currCommand.objectName);
}
[Test]
public void DropRollbackSegmentTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropRollbackSegment"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropRollbackSegment");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("ROLLBACK SEGMENT", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("RBS_ONE", scanner.currCommand.objectName);
}
[Test]
public void DropSequenceTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropSequence"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropSequence");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("SEQUENCE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("OE.CUSTOMERS_SEQ", scanner.currCommand.objectName);
}
[Test]
public void DropPublicSynonymTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropPublicSynonym"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropPublicSynonym");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("PUBLIC SYNONYM", scanner.currCommand.cmdName);
Assert.AreEqual("SYNONYM", scanner.currCommand.baseCmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("CUSTOMERS", scanner.currCommand.objectName);
}
[Test]
public void DropSynonymTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropSynonym"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropSynonym");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("SYNONYM", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("CUSTOMERS", scanner.currCommand.objectName);
}
[Test]
public void DropTableTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropTable"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropTable");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("TABLE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("LIST_CUSTOMERS", scanner.currCommand.objectName);
}
[Test]
public void DropTablespaceTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropTablespace"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropTablespace");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("TABLESPACE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("TBS_01", scanner.currCommand.objectName);
}
[Test]
public void DropTriggerTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropTrigger"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropTrigger");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("TRIGGER", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("HR.SALARY_CHECK", scanner.currCommand.objectName);
}
[Test]
public void DropTypeTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropType"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropType");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("TYPE", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("PERSON_T", scanner.currCommand.objectName);
}
[Test]
public void DropTypeBodyTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropTypeBody"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropTypeBody");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("TYPE BODY", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("DATA_TYP1", scanner.currCommand.objectName);
}
[Test]
public void DropUserTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropUser"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropUser");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("USER", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("BEZEL", scanner.currCommand.objectName);
}
[Test]
public void DropViewTest()
{
StringReader sr = new StringReader(ResourceHelper.GetResourceString("DropView"));
SQLMake.Util.Settings.loadSettings();
SQLPlusScanner scanner;
scanner = new SQLPlusScanner(sr, "DropView");
scanner.readNextBlock();
Assert.AreEqual(CommandTypes.Sql, scanner.currCommand.cmdType);
Assert.AreEqual("VIEW", scanner.currCommand.cmdName);
Assert.AreEqual("DROP", scanner.currCommand.action);
Assert.AreEqual("EMP_VIEW", scanner.currCommand.objectName);
}
}
}
|
gpl-3.0
|
anshumang/evqueue-core
|
evqueue.cpp
|
10552
|
/*
* This file is part of evQueue
*
* evQueue 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 of the License, or
* (at your option) any later version.
*
* evQueue 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 evQueue. If not, see <http://www.gnu.org/licenses/>.
*
* Author: Thibault Kummer <bob@coldsource.net>
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <syslog.h>
#include <errno.h>
#include <stdio.h>
#include <mysql/mysql.h>
#include <Logger.h>
#include <Queue.h>
#include <QueuePool.h>
#include <Workflows.h>
#include <WorkflowInstance.h>
#include <WorkflowInstances.h>
#include <ConfigurationReader.h>
#include <Exception.h>
#include <Retrier.h>
#include <WorkflowScheduler.h>
#include <WorkflowSchedule.h>
#include <global.h>
#include <ProcessManager.h>
#include <DB.h>
#include <Statistics.h>
#include <Tasks.h>
#include <RetrySchedules.h>
#include <GarbageCollector.h>
#include <SequenceGenerator.h>
#include <handle_connection.h>
#include <tools.h>
#include <xqilla/xqilla-dom3.hpp>
int listen_socket;
void signal_callback_handler(int signum)
{
if(signum==SIGINT || signum==SIGTERM)
{
// Shutdown requested
// Close main listen socket, this will release accept() loop
close(listen_socket);
}
else if(signum==SIGHUP)
{
Logger::Log(LOG_NOTICE,"Got SIGHUP, reloading scheduler configuration");
WorkflowScheduler *scheduler = WorkflowScheduler::GetInstance();
scheduler->Reload();
Tasks *tasks = Tasks::GetInstance();
tasks->Reload();
RetrySchedules *retry_schedules = RetrySchedules::GetInstance();
retry_schedules->Reload();
Workflows *workflows = Workflows::GetInstance();
workflows->Reload();
}
else if(signum==SIGUSR1)
{
Logger::Log(LOG_NOTICE,"Got SIGUSR1, flushing retrier");
Retrier *retrier = Retrier::GetInstance();
retrier->Flush();
}
}
int main(int argc,const char **argv)
{
// Check parameters
const char *config_filename = 0;
bool daemonize = false;
bool daemonized = false;
for(int i=1;i<argc;i++)
{
if(strcmp(argv[i],"--daemon")==0)
daemonize = true;
else if(strcmp(argv[i],"--config")==0 && i+1<argc)
{
config_filename = argv[i+1];
i++;
}
else if(strcmp(argv[i],"--ipcq-remove")==0)
return tools_queue_destroy();
else if(strcmp(argv[i],"--ipcq-stats")==0)
return tools_queue_stats();
else
{
fprintf(stderr,"Unknown option : %s\n",argv[i]);
tools_print_usage();
return -1;
}
}
if(config_filename==0)
{
tools_print_usage();
return -1;
}
// Initialize external libraries
mysql_library_init(0,0,0);
XQillaPlatformUtils::initialize();
openlog("evqueue",0,LOG_DAEMON);
struct sigaction sa;
sigset_t block_mask;
sigemptyset(&block_mask);
sigaddset(&block_mask, SIGINT);
sigaddset(&block_mask, SIGTERM);
sigaddset(&block_mask, SIGHUP);
sigaddset(&block_mask, SIGUSR1);
sa.sa_handler = signal_callback_handler;
sa.sa_mask = block_mask;
sa.sa_flags = 0;
sigaction(SIGHUP,&sa,0);
sigaction(SIGINT,&sa,0);
sigaction(SIGTERM,&sa,0);
sigaction(SIGUSR1,&sa,0);
try
{
// Read configuration
Configuration *config;
config = ConfigurationReader::Read(config_filename);
// Create logger as soon as possible
Logger *logger = new Logger();
// Open pid file before fork to eventually print errors
FILE *pidfile = fopen(config->Get("core.pidfile"),"w");
if(pidfile==0)
throw Exception("core","Unable to open pid file");
int gid = atoi(config->Get("core.gid"));
if(gid!=0 && setgid(gid)!=0)
throw Exception("core","Unable to set requested GID");
// Set uid/gid if requested
int uid = atoi(config->Get("core.uid"));
if(uid!=0 && setuid(uid)!=0)
throw Exception("core","Unable to set requested UID");
// Check database connection
DB db;
db.Ping();
if(daemonize)
{
daemon(1,0);
daemonized = true;
}
// Write pid after daemonization
fprintf(pidfile,"%d\n",getpid());
fclose(pidfile);
// Instanciate sequence generator, used for savepoint level 0 or 1
SequenceGenerator *seq = new SequenceGenerator();
// Create statistics counter
Statistics *stats = new Statistics();
// Start retrier
Retrier *retrier = new Retrier();
// Start scheduler
WorkflowScheduler *scheduler = new WorkflowScheduler();
// Create queue pool
QueuePool *pool = new QueuePool();
// Instanciate workflow instances map
WorkflowInstances *workflow_instances = new WorkflowInstances();
// Instanciate workflows list
Workflows *workflows = new Workflows();
// Instanciate tasks list
Tasks *tasks = new Tasks();
// Instanciate retry schedules list
RetrySchedules *retry_schedules = new RetrySchedules();
// Check if workflows are to resume (we have to resume them before starting ProcessManager)
db.Query("SELECT workflow_instance_id, workflow_schedule_id FROM t_workflow_instance WHERE workflow_instance_status='EXECUTING'");
while(db.FetchRow())
{
Logger::Log(LOG_NOTICE,"[WID %d] Resuming",db.GetFieldInt(0));
WorkflowInstance *workflow_instance = 0;
bool workflow_terminated;
try
{
workflow_instance = new WorkflowInstance(db.GetFieldInt(0));
workflow_instance->Resume(&workflow_terminated);
if(workflow_terminated)
delete workflow_instance;
}
catch(Exception &e)
{
Logger::Log(LOG_NOTICE,"[WID %d] Unexpected exception trying to resume : [ %s ] %s\n",db.GetFieldInt(0),e.context,e.error);
if(workflow_instance)
delete workflow_instance;
}
}
// On level 0 or 1, executing workflows are only stored during engine restart. Purge them since they are resumed
if(Configuration::GetInstance()->GetInt("workflowinstance.savepoint.level")<=1)
db.Query("DELETE FROM t_workflow_instance WHERE workflow_instance_status='EXECUTING'");
// Load workflow schedules
db.Query("SELECT ws.workflow_schedule_id, w.workflow_name, wi.workflow_instance_id FROM t_workflow_schedule ws LEFT JOIN t_workflow_instance wi ON(wi.workflow_schedule_id=ws.workflow_schedule_id AND wi.workflow_instance_status='EXECUTING') INNER JOIN t_workflow w ON(ws.workflow_id=w.workflow_id) WHERE ws.workflow_schedule_active=1");
while(db.FetchRow())
{
WorkflowSchedule *workflow_schedule = 0;
try
{
workflow_schedule = new WorkflowSchedule(db.GetFieldInt(0));
scheduler->ScheduleWorkflow(workflow_schedule, db.GetFieldInt(2));
}
catch(Exception &e)
{
Logger::Log(LOG_NOTICE,"[WSID %d] Unexpected exception trying initialize workflow schedule : [ %s ] %s\n",db.GetFieldInt(0),e.context,e.error);
if(workflow_schedule)
delete workflow_schedule;
}
}
// Start Process Manager (Forker & Gatherer)
ProcessManager *pm = new ProcessManager();
// Start garbage GarbageCollector
GarbageCollector *gc = new GarbageCollector();
Logger::Log(LOG_NOTICE,"evqueue core started");
int re,s,optval;
struct sockaddr_in local_addr,remote_addr;
socklen_t remote_addr_len;
// Create listen socket
listen_socket=socket(PF_INET,SOCK_STREAM,0);
// Configure socket
optval=1;
setsockopt(listen_socket,SOL_SOCKET,SO_REUSEADDR,&optval,sizeof(int));
// Bind socket
memset(&local_addr,0,sizeof(struct sockaddr_in));
local_addr.sin_family=AF_INET;
if(strcmp(config->Get("network.bind.ip"),"*")==0)
local_addr.sin_addr.s_addr=htonl(INADDR_ANY);
else
local_addr.sin_addr.s_addr=inet_addr(config->Get("network.bind.ip"));
local_addr.sin_port = htons(atoi(config->Get("network.bind.port")));
re=bind(listen_socket,(struct sockaddr *)&local_addr,sizeof(struct sockaddr_in));
if(re==-1)
throw Exception("core","Unable to bind listen socket");
// Listen on socket
re=listen(listen_socket,config->GetInt("network.listen.backlog"));
if(re==-1)
throw Exception("core","Unable to listen on socket");
Logger::Log(LOG_NOTICE,"Listen backlog set to %d",config->GetInt("network.listen.backlog"));
char *ptr,*parameters;
Logger::Log(LOG_NOTICE,"Accepting connection on port %s",config->Get("network.bind.port"));
// Loop for incoming connections
int len,*sp;
while(1)
{
remote_addr_len=sizeof(struct sockaddr);
s = accept(listen_socket,(struct sockaddr *)&remote_addr,&remote_addr_len);
if(s<0)
{
if(errno==EINTR)
continue; // Interrupted by signal, continue
// Shutdown requested
Logger::Log(LOG_NOTICE,"Shutting down...");
// Request shutdown on ProcessManager and wait
pm->Shutdown();
pm->WaitForShutdown();
// Request shutdown on scheduler and wait
scheduler->Shutdown();
scheduler->WaitForShutdown();
// Request shutdown on Retrier and wait
retrier->Shutdown();
retrier->WaitForShutdown();
// Save current state in database
workflow_instances->RecordSavepoint();
// Request shutdown on GarbageCollector and wait
gc->Shutdown();
gc->WaitForShutdown();
// All threads have exited, we can cleanly exit
delete stats;
delete retrier;
delete scheduler;
delete pool;
delete workflow_instances;
delete workflows;
delete tasks;
delete retry_schedules;
delete pm;
delete gc;
delete seq;
XQillaPlatformUtils::terminate();
mysql_library_end();
unlink(config->Get("core.pidfile"));
Logger::Log(LOG_NOTICE,"Clean exit");
delete logger;
return 0;
}
sp = new int;
*sp = s;
pthread_t thread;
pthread_attr_t thread_attr;
pthread_attr_init(&thread_attr);
pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
pthread_create(&thread, &thread_attr, handle_connection, sp);
}
}
catch(Exception &e)
{
// We have to use only syslog here because the logger might not be instanciated yet
syslog(LOG_CRIT,"Unexpected exception : [ %s ] %s\n",e.context,e.error);
if(!daemonized)
fprintf(stderr,"Unexpected exception : [ %s ] %s\n",e.context,e.error);
return -1;
}
return 0;
}
|
gpl-3.0
|
shippingsoon/Synesthesia-Symphony
|
system/session.ts
|
2736
|
/**
* @file Session class.
* @copyright 2014 Shipping Soon
* @license GPLv3
* @see {@link https://github.com/shippingsoon/Synesthesia-Symphony} for sourcecode
* @see {@link https://www.shippingsoon.com/synesthesia-symphony} for online demo
*/
import {IConfig, IGameData, ISession} from '../game/types';
import {injectable, unmanaged} from 'inversify';
/**
* @classdesc Session class. This was originally a singleton class but was refactored to use InversifyJs' singleton scope.
*/
@injectable()
export class Session implements ISession {
//Background music volume level.
private _bgmVolumeLevel: number = 127;
//Sound effects volume level.
private _sfxVolumeLevel: number = 127;
//Read only configuration data. This data is stored in a config.json file. See IConfig for more details.
private _config: IConfig;
//Game data used to initiate entities such as player, projectile, and items. This data is either loaded from a database or a JSON file.
private _data: IGameData;
public constructor() {}
//#region Mutator Region (Note: regions are collapsible with IntelliJ)
/**
* Gets the background music volume level.
* @return {number}
*/
public get bgmVolumeLevel(): number {return this._bgmVolumeLevel;}
/**
* Sets the background music volume level.
* @param bgmVolumeLevel - The background music volume level. Must be between 0-127.
* @throws {Error}
*/
public set bgmVolumeLevel(bgmVolumeLevel: number) {
if (bgmVolumeLevel < 0 || bgmVolumeLevel > 127) {
throw new Error('Background music volume level must be between 0 and 127');
}
this._bgmVolumeLevel = bgmVolumeLevel;
}
/**
* Gets the sound effects volume level.
* @return {number}
*/
public get sfxVolumeLevel(): number {return this._bgmVolumeLevel;}
/**
* Sets the sound effects volume level.
* @param {number} sfxVolumeLevel - The sound effects volume to set. Must be between 0-127.
* @throws {Error}
*/
public set sfxVolumeLevel(sfxVolumeLevel: number) {
if (sfxVolumeLevel < 0 || sfxVolumeLevel > 127) {
throw new Error('Sound effects volume level must be between 0 and 127');
}
this._bgmVolumeLevel = sfxVolumeLevel;
}
/**
* Gets the readonly configuration data. See config.json or IConfig for more details.
* @return {IConfig}
*/
public get config(): IConfig {return this._config;}
/**
* Gets the configuration data.
* @param config - The configuration data.
*/
public set config(config: IConfig) {this._config = config;}
/**
* Gets the game data.
* @return {IGameData}
*/
public get data(): IGameData {return this._data;}
/**
* Sets the game data.
* @param data - The game data.
*/
public set data(data: IGameData) {this._data = data;}
//#endregion
}
|
gpl-3.0
|
fabienric/geoservice-api
|
search.php
|
1709
|
<?
header('Content-Type: application/json; charset=utf-8');
require_once "MysqliDb.php";
$lat = $_GET['latitude']; // latitude of centre of bounding circle in degrees
$lon = $_GET['longitude']; // longitude of centre of bounding circle in degrees
$rad = $_GET['radius']; // radius of bounding circle in kilometers
if (!checkNumeric(array($lat, $lon, $rad))) {
http_response_code(400);
exit();
}
$db = new MysqliDb("host","user","password","database");
$max = intval($_GET['max']);
if($max == 0) {
$max = 20;
}
$R = 6371*1000; // earth's radius, km
// first-cut bounding box (in degrees)
$maxLat = $lat + rad2deg($rad/$R);
$minLat = $lat - rad2deg($rad/$R);
// compensate for degrees longitude getting smaller with increasing latitude
$maxLon = $lon + rad2deg($rad/$R/cos(deg2rad($lat)));
$minLon = $lon - rad2deg($rad/$R/cos(deg2rad($lat)));
// convert origin of filter circle to radians
$lat = deg2rad($lat);
$lon = deg2rad($lon);
$q="Select metadata, latitude, longitude,altitude, type,".
"acos(sin($lat)*sin(radians(latitude)) + cos($lat)*cos(radians(latitude))*cos(radians(longitude)-$lon))*$R As distance".
" From (".
"Select * ".
"From geopoint ".
"Where latitude > $minLat And latitude < $maxLat".
" And longitude > $minLon And longitude < $maxLon".
") As FirstCut ".
"Where acos(sin($lat)*sin(radians(latitude)) + cos($lat)*cos(radians(latitude))*cos(radians(longitude)-$lon))*$R < $rad".
" order by distance ASC limit $max";
$res=$db->rawQuery($q);
function checkNumeric($input) {
foreach($input as $f) {
if ($f == null || !is_numeric($f)) {
return false;
}
}
return true;
}
?>
{"results":<?=json_encode($res)?>}
|
gpl-3.0
|
randomrandomlol123/fewgewgewgewhg
|
sender.py
|
325
|
import json
import socket
import sys
attackSocket = socket.socket()
attackSocket.connect(('localhost', 8080))
attackSocket.send("{0}\r\n".format(
json.dumps(
{'membership': "full", 'channel': sys.argv[1], 'message': ' '.join(sys.argv[3:]), 'type': "start", 'which': sys.argv[2]}
)).encode('utf-8'))
attackSocket.close()
|
gpl-3.0
|
Sliim/sleemacs
|
php-manual/datetime.set-state.html
|
2638
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>The __set_state handler</title>
</head>
<body><div class="manualnavbar" style="text-align: center;">
<div class="prev" style="text-align: left; float: left;"><a href="datetime.modify.html">DateTime::modify</a></div>
<div class="next" style="text-align: right; float: right;"><a href="datetime.setdate.html">DateTime::setDate</a></div>
<div class="up"><a href="class.datetime.html">DateTime</a></div>
<div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetime.set-state" class="refentry">
<div class="refnamediv">
<h1 class="refname">DateTime::__set_state</h1>
<p class="verinfo">(PHP 5 >= 5.2.0)</p><p class="refpurpose"><span class="refname">DateTime::__set_state</span> — <span class="dc-title">The __set_state handler</span></p>
</div>
<div class="refsect1 description" id="refsect1-datetime.set-state-description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="modifier">static</span> <span class="type"><a href="class.datetime.html" class="type DateTime">DateTime</a></span> <span class="methodname"><strong>DateTime::__set_state</strong></span>
( <span class="methodparam"><span class="type">array</span> <code class="parameter">$array</code></span>
)</div>
<p class="para rdfs-comment">
The <a href="language.oop5.magic.html#object.set-state" class="link">__set_state()</a> handler.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-datetime.set-state-parameters">
<h3 class="title">Parameters</h3>
<dl>
<dt>
<span class="term"><em><code class="parameter">array</code></em></span>
<dd>
<p class="para">
Initialization array.
</p>
</dd>
</dt>
</dl>
</div>
<div class="refsect1 returnvalues" id="refsect1-datetime.set-state-returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns a new instance of a DateTime object.
</p>
</div>
</div><hr /><div class="manualnavbar" style="text-align: center;">
<div class="prev" style="text-align: left; float: left;"><a href="datetime.modify.html">DateTime::modify</a></div>
<div class="next" style="text-align: right; float: right;"><a href="datetime.setdate.html">DateTime::setDate</a></div>
<div class="up"><a href="class.datetime.html">DateTime</a></div>
<div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
|
gpl-3.0
|
Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2
|
src/thermophysicalModels/pdfs/RosinRammler/RosinRammler.H
|
2909
|
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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 of the License, or (at your
option) any later version.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::RosinRammler
Description
Rosin-Rammler pdf
@f[
pdf = ( x/d )^n \exp ( -( x/d )^n )
@f]
SourceFiles
RosinRammlerI.H
RosinRammler.C
RosinRammlerIO.C
\*---------------------------------------------------------------------------*/
#ifndef RosinRammler_H
#define RosinRammler_H
#include "pdf.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class RosinRammler Declaration
\*---------------------------------------------------------------------------*/
class RosinRammler
:
public pdf
{
// Private data
dictionary pdfDict_;
//- min and max values of the distribution
scalar minValue_;
scalar maxValue_;
List<scalar> d_;
List<scalar> n_;
List<scalar> ls_;
scalar range_;
public:
//- Runtime type information
TypeName("RosinRammler");
// Constructors
//- Construct from components
RosinRammler
(
const dictionary& dict,
Random& rndGen
);
//- Destructor
virtual ~RosinRammler();
// Member Functions
//- Sample the pdf
virtual scalar sample() const;
//- Return the minimum value
virtual scalar minValue() const;
//- Return the maximum value
virtual scalar maxValue() const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //
|
gpl-3.0
|
Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2
|
src/foam/algorithms/polygon/pointInPolygon/HormannAgathos.H
|
4042
|
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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 of the License, or (at your
option) any later version.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
Class
HormannAgathos
Description
Implements the point in polygon problem using the winding number technique
presented in the paper:
"The point in polygon problem for arbitrary polygons",
Kai Hormann, Alexander Agathos, 2001
Author
Martin Beaudoin, Hydro-Quebec, (2008)
SourceFiles
HormannAgathosI.H
HormannAgathos.C
HormannAgathosIO.C
\*---------------------------------------------------------------------------*/
#ifndef HormannAgathos_H
#define HormannAgathos_H
#include "List.H"
#include "point2D.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class HormannAgathos Declaration
\*---------------------------------------------------------------------------*/
class HormannAgathos
{
// Private data
//- 2D coordinate of polygon vertices
// We keep the same notation as in the paper
List<point2D> P_;
//- 2D distance tolerance factor for in/out tests
scalar distTol_;
//- 2D distance epsilon for in/out tests
scalar epsilon_;
// Private Member Functions
//- Compute 2D distance epsilon based on a tolerance factor
void evaluateEpsilon();
//- Comparison of two scalar within a tolerance
inline bool equalWithTol
(
const scalar& a,
const scalar& b
) const;
inline bool greaterWithTol
(
const scalar& a,
const scalar& b
) const;
inline bool smallerWithTol
(
const scalar& a,
const scalar& b
) const;
inline bool greaterOrEqualWithTol
(
const scalar& a,
const scalar& b
) const;
inline bool smallerOrEqualWithTol
(
const scalar& a,
const scalar& b
) const;
public:
// Public typedefs
enum inOutClassification
{
POINT_OUTSIDE,
POINT_INSIDE,
POINT_ON_VERTEX,
POINT_ON_EDGE
};
// Constructors
//- Construct from components
HormannAgathos
(
const List<point2D>& P,
const scalar& distTol
);
// Destructor - default
// Member Functions
//- Executa classification of points
inOutClassification evaluate(const point2D& R) const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "HormannAgathosI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //
|
gpl-3.0
|
themystic/php-demos
|
object-oriented-programming/passing-by-reference.php
|
2344
|
<?php
function concat_exclamation($str) {
$str .= "!";
print $str;
}
function concat_exclamation_to_each_value($arr) {
foreach ($arr as $key => $value) {
$arr[$key] = $value . "!";
}
print_r($arr);
}
function concat_exclamation_to_name($obj) {
$obj->newname .= "!";
print_r($obj);
}
?>
<!doctype html>
<html>
<head>
<title>Object Oriented Programming - Passing By Copy Vs. Passing By Reference</title>
</head>
<body>
<strong>String passed to function - passed by copy</strong>
<?php
$str = "And on earth peace to all people of good will";
?>
<ul>
<li>Original value: <?= $str ?></li>
<li>Modified value in function: <?php concat_exclamation($str)?></li>
<li>Value after function: <?= $str ?></li>
</ul>
<strong>Array passed to function - passed by copy</strong>
<?php
$arr = array(
"X" => "Andrew",
"Knife" => "Bartholomew",
"Staff" => "James the Younger",
"Shell" => "James the Great",
"Poisned Cup" => "John",
"Noose" => "Judas",
"Medallion" => "Jude",
"Bags of Money" => "Matthew",
"Battle Axe" => "Matthias",
"Sword" => "Paul",
"Keys" => "Peter",
"Loaves of Bread" => "Philip",
"Saw" => "Simon",
"Spear" => "Thomas"
);
?>
<ul>
<li>Original value: <pre><?php print_r($arr); ?></pre></li>
<li>Modified value in function: <pre><?php concat_exclamation_to_each_value($arr); ?></pre></li>
<li>Value after function: <pre><?php print_r($arr)?></pre></li>
</ul>
<strong>Array passed to function - passed by copy</strong>
<?php
class Renamed {
public $oldname;
public $newname;
}
$obj = new Renamed();
$obj->oldname = "Simon";
$obj->newname = "Peter";
?>
<ul>
<li>Original value: <pre><?php print_r($obj); ?></pre></li>
<li>Modified value in function: <pre><?php concat_exclamation_to_name($obj); ?></pre></li>
<li>Value after function: <pre><?php print_r($obj)?></pre></li>
</ul>
</body>
</html>
|
gpl-3.0
|
FH-Complete/FHC-AddOn-Bewerbung
|
cronjobs/neu_registriert_job.php
|
10904
|
<?php
/* Copyright (C) 2015 FH Technikum-Wien
*
* 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; either version 2 of the
* License, or (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Manfred kindl <manfred.kindl@technikum-wien.at>
*/
require_once('../../../config/global.config.inc.php');
require_once('../../../config/cis.config.inc.php');
require_once('../../../include/studiengang.class.php');
require_once('../../../include/mail.class.php');
require_once('../../../include/kontakt.class.php');
require_once('../include/functions.inc.php');
require_once('../bewerbung.config.inc.php');
// Wenn das Script ueber die Kommandozeile aufgerufen wird, erfolgt keine Authentifizierung
if (php_sapi_name() != 'cli')
{
$uid = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('admin'))
{
exit($rechte->errormsg);
}
}
// An der FHTW werden alle Bachelor-Studiengänge über das Infocenter abgewickelt
$qry = "
SELECT
person_id,
studiengang_kz,
tbl_prestudentstatus.orgform_kurzbz,
tbl_prestudent.insertamum,
vorname,
nachname,
gebdatum,
geschlecht,
studiensemester_kurzbz,
tbl_studienplan.bezeichnung AS studienplan
FROM
public.tbl_prestudent
JOIN
public.tbl_person USING (person_id)
JOIN
public.tbl_prestudentstatus USING (prestudent_id)
JOIN
lehre.tbl_studienplan USING (studienplan_id)
JOIN
public.tbl_studiengang USING (studiengang_kz)
WHERE
tbl_prestudent.insertvon='online'
AND (tbl_prestudent.insertamum >= (SELECT (CURRENT_DATE -1||' '||'03:00:00')::timestamp)
OR tbl_prestudentstatus.insertamum >= (SELECT (CURRENT_DATE -1||' '||'03:00:00')::timestamp))
AND tbl_prestudentstatus.status_kurzbz = 'Interessent'
AND tbl_prestudentstatus.bewerbung_abgeschicktamum IS NULL
AND tbl_studiengang.typ != 'b' AND tbl_studiengang.typ != 'm'
AND get_rolle_prestudent (tbl_prestudent.prestudent_id, studiensemester_kurzbz) != 'Abgewiesener'
ORDER BY studiengang_kz, studiensemester_kurzbz, orgform_kurzbz, nachname, vorname";
$db = new basis_db();
$studiengaenge = array();
$stg_kz = '';
$orgform = '';
$mailcontent = '';
$studiensemester = '';
$mail_alle = '';
// Prueft, ob das Logverzeichnis existiert.
// Wenn nicht, wird versucht, eines anzulegen.
// Falls dies fehl schlaegt, wird kein Logfile erstellt.
$write_log = true;
if(!is_dir(LOG_PATH.'bewerbungstool/neu_registriert/'))
{
if (mkdir(LOG_PATH.'bewerbungstool',0777,true))
{
if(!is_dir(LOG_PATH.'bewerbungstool/neu_registriert/'))
{
if (mkdir(LOG_PATH.'bewerbungstool/neu_registriert',0777,true))
$write_log = true;
else
$write_log = false;
}
}
else
$write_log = false;
}
// Aus Datenschutzgründen werden Logfiles älter als 3 Monate gelöscht
$dateLess3Months = date("Y_m", strtotime("-3 months"));
if (file_exists(LOG_PATH.'bewerbungstool/neu_registriert/'.$dateLess3Months.'_log.html'))
{
unlink(LOG_PATH.'bewerbungstool/neu_registriert/'.$dateLess3Months.'_log.html');
}
$logfile = LOG_PATH.'bewerbungstool/neu_registriert/'.date('Y_m').'_log.html';
$logcontent = '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h2 style="text-align: center">'.date('Y-m-d').'</h2><hr>';
$empf_array = array();
if(defined('BEWERBERTOOL_BEWERBUNG_EMPFAENGER'))
$empf_array = unserialize(BEWERBERTOOL_BEWERBUNG_EMPFAENGER);
$mailtext = '
<style type="text/css">
.table1
{
font-size: small;
cellpadding: 3px;
}
.table1 th
{
background: #DCE4EF;
border: 1px solid #FFF;
padding: 4px;
text-align: left;
}
.table1 td
{
background-color: #EEEEEE;
padding: 4px;
}
</style>
Folgende Personen haben sich gestern registriert, ihre Bewerbung aber noch nicht abgeschickt:<br><br>';
if($result = $db->db_query($qry))
{
if ($db->db_num_rows($result) > 0)
{
$mailcontent = $mailtext;
$anzahl = $db->db_num_rows($result);
while($row = $db->db_fetch_object($result))
{
if (($stg_kz != '' && $stg_kz != $row->studiengang_kz) || ($orgform != '' && $orgform != $row->orgform_kurzbz))
{
$mailcontent .= '</tbody></table>';
$mailcontent .= '<a href="mailto:?BCC='.$mail_alle.'">Mail an alle</a>';
$studiensemester = '';
$studiengang = new studiengang();
if(!$studiengang->load($stg_kz))
die($p->t('global/fehlerBeimLadenDesDatensatzes'));
$bezeichnung = strtoupper($studiengang->typ.$studiengang->kurzbz);
if(defined('BEWERBERTOOL_MAILEMPFANG') && BEWERBERTOOL_MAILEMPFANG!='')
$empfaenger = BEWERBERTOOL_MAILEMPFANG;
elseif(isset($empf_array[$stg_kz]))
$empfaenger = $empf_array[$stg_kz];
else
$empfaenger = $studiengang->email;
if ($empfaenger == '')
{
if (defined('MAIL_ADMIN') && MAIL_ADMIN != '')
{
$empfaenger = MAIL_ADMIN;
$mailcontentWithWarning = '<p style="color: red; font-weight: bold; padding: 10px 0">Kein Empfänger für diese Mail gefunden</p>';
$mailcontentWithWarning .= $mailcontent;
$mailcontent = $mailcontentWithWarning;
}
else
{
continue;
}
}
$mailcontent = wordwrap($mailcontent,70);
//Pfuschloesung fur BIF Dual
if (CAMPUS_NAME=='FH Technikum Wien' && $stg_kz == 257 && $orgform == 'DUA')
$empfaenger = 'info.bid@technikum-wien.at';
$mail = new mail($empfaenger, 'no-reply', 'Neu registriert '.$bezeichnung.' '.$orgform, 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Inhalt vollständig darzustellen.');
//$mail->setBCCRecievers('kindlm@technikum-wien.at');
$mail->setHTMLContent($mailcontent);
$mail->send();
if ($write_log)
{
$logcontent .= '<h3>Studiengang: '.$stg_kz.'</h3>';
$logcontent .= 'Empfänger: '.$empfaenger.'<br>';
$logcontent .= 'Betreff: Neu registriert '.$bezeichnung.' '.$orgform.'<br><br>';
$logcontent .= $mailcontent;
$logcontent .= '<hr>';
// Schreibt den Inhalt in die Datei
// unter Verwendung des Flags FILE_APPEND, um den Inhalt an das Ende der Datei anzufügen
// und das Flag LOCK_EX, um ein Schreiben in die selbe Datei zur gleichen Zeit zu verhindern
file_put_contents($logfile, $logcontent, FILE_APPEND | LOCK_EX);
$logcontent = '';
}
$mailcontent = $mailtext;
$mail_alle = '';
}
if ($row->studiensemester_kurzbz != '' && $studiensemester != $row->studiensemester_kurzbz)
{
if ($studiensemester != '')
{
$mailcontent .= '</tbody></table>';
$mailcontent .= '<a href="mailto:?BCC='.$mail_alle.'">Mail an alle</a>';
$mail_alle = '';
}
$mailcontent .= '<h3>'.$row->studiensemester_kurzbz.' '.$row->orgform_kurzbz.'</h3>';
$mailcontent .= '<table class="table1"><thead><tr>
<th>Studienplan</th>
<th>Anrede</th>
<th>Nachname</th>
<th>Vorname</th>
<th>Geburtsdatum</th>
<th>Mailadresse</th>
</thead><tbody>';
$studiensemester = $row->studiensemester_kurzbz;
}
$kontakt = new kontakt();
$kontakt->load_persKontakttyp($row->person_id, 'email', 'zustellung DESC, updateamum DESC, insertamum DESC NULLS LAST');
$mailadresse = isset($kontakt->result[0]->kontakt)?$kontakt->result[0]->kontakt:'';
$mailcontent .= '<tr>';
$mailcontent .= '<td>'.($row->studienplan != ''?$row->studienplan:'<span style="color: red">Es konnte kein passender Studienplan ermittelt werden</span>').'</td>';
$mailcontent .= '<td>'.($row->geschlecht=='m'?'Herr ':'Frau ').'</td>';
$mailcontent .= '<td>'.$row->nachname.'</td>';
$mailcontent .= '<td>'.$row->vorname.'</td>';
$mailcontent .= '<td>'.date('d.m.Y', strtotime($row->gebdatum)).'</td>';
$mailcontent .= '<td><a href="mailto:'.$mailadresse.'">'.$mailadresse.'</a></td>';
$mailcontent .= '</tr>';
$mail_alle .= $mailadresse.';';
$stg_kz = $row->studiengang_kz;
$orgform = $row->orgform_kurzbz;
}
$mailcontent .= '</tbody></table>';
$mailcontent .= '<a href="mailto:?BCC='.$mail_alle.'">Mail an alle</a>';
$studiengang = new studiengang();
if(!$studiengang->load($stg_kz))
die($p->t('global/fehlerBeimLadenDesDatensatzes'));
$bezeichnung = strtoupper($studiengang->typ.$studiengang->kurzbz);
if(defined('BEWERBERTOOL_MAILEMPFANG') && BEWERBERTOOL_MAILEMPFANG!='')
$empfaenger = BEWERBERTOOL_MAILEMPFANG;
elseif(isset($empf_array[$stg_kz]))
$empfaenger = $empf_array[$stg_kz];
else
$empfaenger = $studiengang->email;
if ($empfaenger == '')
{
if (defined('MAIL_ADMIN') && MAIL_ADMIN != '')
{
$empfaenger = MAIL_ADMIN;
$mailcontentWithWarning = '<p style="color: red; font-weight: bold; padding: 10px 0">Kein Empfänger für diese Mail gefunden</p>';
$mailcontentWithWarning .= $mailcontent;
$mailcontent = $mailcontentWithWarning;
}
else
{
exit();
}
}
$mailcontent = wordwrap($mailcontent,70);
//Pfuschloesung fur BIF Dual
if (CAMPUS_NAME=='FH Technikum Wien' && $stg_kz == 257 && $orgform == 'DUA')
$empfaenger = 'info.bid@technikum-wien.at';
$mail = new mail($empfaenger, 'no-reply', 'Neu registriert '.$bezeichnung.' '.$orgform, 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Inhalt vollständig darzustellen.');
//$mail->setBCCRecievers('kindlm@technikum-wien.at');
$mail->setHTMLContent($mailcontent);
$mail->send();
if ($write_log)
{
$logcontent .= '<h3>Studiengang: '.$stg_kz.'</h3>';
$logcontent .= 'Empfänger: '.$empfaenger.'<br>';
$logcontent .= 'Betreff: Neu registriert '.$bezeichnung.' '.$orgform.'<br><br>';
$logcontent .= $mailcontent;
$logcontent .= '<hr>';
// Schreibt den Inhalt in die Datei
// unter Verwendung des Flags FILE_APPEND, um den Inhalt an das Ende der Datei anzufügen
// und das Flag LOCK_EX, um ein Schreiben in die selbe Datei zur gleichen Zeit zu verhindern
file_put_contents($logfile, $logcontent, FILE_APPEND | LOCK_EX);
$logcontent = '';
}
}
}
else
{
$mailcontent = '<h3>Fehler in Cronjob "addons/bewerbung/cronjobs/neu_registriert_job.php"</h3><br><br><b>'.$db->errormsg.'</b>';
$mail = new mail(MAIL_ADMIN, 'no-reply', 'Fehler in Cronjob "addons/bewerbung/cronjobs/neu_registriert_job.php"', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Inhalt vollständig darzustellen.');
$mail->setHTMLContent($mailcontent);
$mail->send();
}
?>
|
gpl-3.0
|
max3903/SFLphone
|
daemon/libs/pjproject/pjsip/include/pjsip-simple/errno.h
|
4268
|
/* $Id: errno.h 2394 2008-12-23 17:27:53Z bennylp $ */
/*
* Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Teluu Inc. (http://www.teluu.com)
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifndef __PJSIP_SIMPLE_ERRNO_H__
#define __PJSIP_SIMPLE_ERRNO_H__
#include <pjsip/sip_errno.h>
PJ_BEGIN_DECL
/**
* Start of error code relative to PJ_ERRNO_START_USER.
*/
#define PJSIP_SIMPLE_ERRNO_START (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*2)
/************************************************************
* EVENT PACKAGE ERRORS
***********************************************************/
/**
* @hideinitializer
* No event package with the specified name.
*/
#define PJSIP_SIMPLE_ENOPKG (PJSIP_SIMPLE_ERRNO_START+1) /*270001*/
/**
* @hideinitializer
* Event package already exists.
*/
#define PJSIP_SIMPLE_EPKGEXISTS (PJSIP_SIMPLE_ERRNO_START+2) /*270002*/
/************************************************************
* PRESENCE ERROR
***********************************************************/
/**
* @hideinitializer
* Expecting SUBSCRIBE request
*/
#define PJSIP_SIMPLE_ENOTSUBSCRIBE (PJSIP_SIMPLE_ERRNO_START+20) /*270020*/
/**
* @hideinitializer
* No presence associated with subscription
*/
#define PJSIP_SIMPLE_ENOPRESENCE (PJSIP_SIMPLE_ERRNO_START+21) /*270021*/
/**
* @hideinitializer
* No presence info in server subscription
*/
#define PJSIP_SIMPLE_ENOPRESENCEINFO (PJSIP_SIMPLE_ERRNO_START+22) /*270022*/
/**
* @hideinitializer
* Bad Content-Type
*/
#define PJSIP_SIMPLE_EBADCONTENT (PJSIP_SIMPLE_ERRNO_START+23) /*270023*/
/**
* @hideinitializer
* Bad PIDF Message
*/
#define PJSIP_SIMPLE_EBADPIDF (PJSIP_SIMPLE_ERRNO_START+24) /*270024*/
/**
* @hideinitializer
* Bad XPIDF Message
*/
#define PJSIP_SIMPLE_EBADXPIDF (PJSIP_SIMPLE_ERRNO_START+25) /*270025*/
/**
* @hideinitializer
* Bad RPID Message
*/
#define PJSIP_SIMPLE_EBADRPID (PJSIP_SIMPLE_ERRNO_START+26) /*270026*/
/************************************************************
* ISCOMPOSING ERRORS
***********************************************************/
/**
* @hideinitializer
* Bad isComposing XML message.
*/
#define PJSIP_SIMPLE_EBADISCOMPOSE (PJSIP_SIMPLE_ERRNO_START+40) /*270040*/
/**
* Get error message for the specified error code. Note that this
* function is only able to decode PJSIP-SIMPLE specific error code.
* Application should use pj_strerror(), which should be able to
* decode all error codes belonging to all subsystems (e.g. pjlib,
* pjmedia, pjsip, etc).
*
* @param status The error code.
* @param buffer The buffer where to put the error message.
* @param bufsize Size of the buffer.
*
* @return The error message as NULL terminated string,
* wrapped with pj_str_t.
*/
PJ_DECL(pj_str_t) pjsipsimple_strerror(pj_status_t status,
char *buffer, pj_size_t bufsize);
PJ_END_DECL
#endif /* __PJSIP_SIMPLE_ERRNO_H__ */
|
gpl-3.0
|
WarmongeR1/QSopherim
|
src/core/link/urlconverter.h
|
1865
|
/***************************************************************************
openBibleViewer - Bible Study Tool
Copyright (C) 2009-2011 Paul Walger
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; either version 3 of the License, or (at your option)
any later version.
This program 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
this program; if not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef URLCONVERTER_H
#define URLCONVERTER_H
#include <QtCore/QString>
#include <QtCore/QStringList>
#include "src/module/modulemap.h"
#include "src/core/link/verseurl.h"
/**
* UrlConverter is an converter for urls. Sometimes you have a url from a biblequote module and need to pharse it.
*/
class UrlConverter
{
public:
enum UrlType {
None = 0,
InterfaceUrl = 1,
PersistentUrl = 2
};
UrlConverter();
UrlConverter(const UrlType &from, const UrlType &to, const VerseUrl &url);
void setFrom(const UrlType &urlType);
void setTo(const UrlType &urlType);
void setUrl(const VerseUrl &url);
VerseUrl convert();
void setModuleMap(ModuleMap *moduleMap);
void setSettings(Settings *settings);
void setV11n(QSharedPointer<Versification> v11n);
private:
UrlType m_from;
UrlType m_to;
ModuleMap *m_moduleMap;
Settings *m_settings;
VerseUrl m_bibleUrl;
bool m_setBookNames;
QSharedPointer<Versification> m_v11n;
};
#endif // URLCONVERTER_H
|
gpl-3.0
|
ihmc/nomads
|
externals/openssl/1.0.2h/include/opensslconf.h
|
7379
|
/* opensslconf.h */
/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
#ifdef __cplusplus
extern "C" {
#endif
/* OpenSSL was configured with the following options: */
#ifndef OPENSSL_DOING_MAKEDEPEND
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_EC_NISTP_64_GCC_128
#endif
#ifndef OPENSSL_NO_GMP
# define OPENSSL_NO_GMP
#endif
#ifndef OPENSSL_NO_JPAKE
# define OPENSSL_NO_JPAKE
#endif
#ifndef OPENSSL_NO_KRB5
# define OPENSSL_NO_KRB5
#endif
#ifndef OPENSSL_NO_LIBUNBOUND
# define OPENSSL_NO_LIBUNBOUND
#endif
#ifndef OPENSSL_NO_MD2
# define OPENSSL_NO_MD2
#endif
#ifndef OPENSSL_NO_RC5
# define OPENSSL_NO_RC5
#endif
#ifndef OPENSSL_NO_RFC3779
# define OPENSSL_NO_RFC3779
#endif
#ifndef OPENSSL_NO_SCTP
# define OPENSSL_NO_SCTP
#endif
#ifndef OPENSSL_NO_SSL_TRACE
# define OPENSSL_NO_SSL_TRACE
#endif
#ifndef OPENSSL_NO_SSL2
# define OPENSSL_NO_SSL2
#endif
#ifndef OPENSSL_NO_STORE
# define OPENSSL_NO_STORE
#endif
#ifndef OPENSSL_NO_UNIT_TEST
# define OPENSSL_NO_UNIT_TEST
#endif
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
# define OPENSSL_NO_WEAK_SSL_CIPHERS
#endif
#endif /* OPENSSL_DOING_MAKEDEPEND */
#ifndef OPENSSL_THREADS
# define OPENSSL_THREADS
#endif
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
# define OPENSSL_NO_DYNAMIC_ENGINE
#endif
/* The OPENSSL_NO_* macros are also defined as NO_* if the application
asks for it. This is a transient feature that is provided for those
who haven't had the time to do the appropriate changes in their
applications. */
#ifdef OPENSSL_ALGORITHM_DEFINES
# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
# define NO_EC_NISTP_64_GCC_128
# endif
# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
# define NO_GMP
# endif
# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
# define NO_JPAKE
# endif
# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
# define NO_KRB5
# endif
# if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
# define NO_LIBUNBOUND
# endif
# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
# define NO_MD2
# endif
# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
# define NO_RC5
# endif
# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
# define NO_RFC3779
# endif
# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
# define NO_SCTP
# endif
# if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
# define NO_SSL_TRACE
# endif
# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
# define NO_SSL2
# endif
# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
# define NO_STORE
# endif
# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
# define NO_UNIT_TEST
# endif
# if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)
# define NO_WEAK_SSL_CIPHERS
# endif
#endif
#define OPENSSL_CPUID_OBJ
/* crypto/opensslconf.h.in */
/* Generate 80386 code? */
#undef I386_ONLY
#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
#define ENGINESDIR "/home/nomads/IHMC/code/externals/openssl/1.0.2h/linux/lib/engines"
#define OPENSSLDIR "/home/nomads/IHMC/code/externals/openssl/1.0.2h/linux"
#endif
#endif
#undef OPENSSL_UNISTD
#define OPENSSL_UNISTD <unistd.h>
#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
#define IDEA_INT unsigned int
#endif
#if defined(HEADER_MD2_H) && !defined(MD2_INT)
#define MD2_INT unsigned int
#endif
#if defined(HEADER_RC2_H) && !defined(RC2_INT)
/* I need to put in a mod for the alpha - eay */
#define RC2_INT unsigned int
#endif
#if defined(HEADER_RC4_H)
#if !defined(RC4_INT)
/* using int types make the structure larger but make the code faster
* on most boxes I have tested - up to %20 faster. */
/*
* I don't know what does "most" mean, but declaring "int" is a must on:
* - Intel P6 because partial register stalls are very expensive;
* - elder Alpha because it lacks byte load/store instructions;
*/
#define RC4_INT unsigned int
#endif
#if !defined(RC4_CHUNK)
/*
* This enables code handling data aligned at natural CPU word
* boundary. See crypto/rc4/rc4_enc.c for further details.
*/
#define RC4_CHUNK unsigned long
#endif
#endif
#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
* %20 speed up (longs are 8 bytes, int's are 4). */
#ifndef DES_LONG
#define DES_LONG unsigned int
#endif
#endif
#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
#define CONFIG_HEADER_BN_H
#undef BN_LLONG
/* Should we define BN_DIV2W here? */
/* Only one for the following should be defined */
#define SIXTY_FOUR_BIT_LONG
#undef SIXTY_FOUR_BIT
#undef THIRTY_TWO_BIT
#endif
#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
#define CONFIG_HEADER_RC4_LOCL_H
/* if this is defined data[i] is used instead of *data, this is a %20
* speedup on x86 */
#undef RC4_INDEX
#endif
#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
#define CONFIG_HEADER_BF_LOCL_H
#undef BF_PTR
#endif /* HEADER_BF_LOCL_H */
#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
#define CONFIG_HEADER_DES_LOCL_H
#ifndef DES_DEFAULT_OPTIONS
/* the following is tweaked from a config script, that is why it is a
* protected undef/define */
#ifndef DES_PTR
#undef DES_PTR
#endif
/* This helps C compiler generate the correct code for multiple functional
* units. It reduces register dependancies at the expense of 2 more
* registers */
#ifndef DES_RISC1
#undef DES_RISC1
#endif
#ifndef DES_RISC2
#undef DES_RISC2
#endif
#if defined(DES_RISC1) && defined(DES_RISC2)
#error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
#endif
/* Unroll the inner loop, this sometimes helps, sometimes hinders.
* Very mucy CPU dependant */
#ifndef DES_UNROLL
#define DES_UNROLL
#endif
/* These default values were supplied by
* Peter Gutman <pgut001@cs.auckland.ac.nz>
* They are only used if nothing else has been defined */
#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
/* Special defines which change the way the code is built depending on the
CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
even newer MIPS CPU's, but at the moment one size fits all for
optimization options. Older Sparc's work better with only UNROLL, but
there's no way to tell at compile time what it is you're running on */
#if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
# define DES_PTR
# define DES_RISC1
# define DES_UNROLL
#elif defined( __ultrix ) /* Older MIPS */
# define DES_PTR
# define DES_RISC2
# define DES_UNROLL
#elif defined( __osf1__ ) /* Alpha */
# define DES_PTR
# define DES_RISC2
#elif defined ( _AIX ) /* RS6000 */
/* Unknown */
#elif defined( __hpux ) /* HP-PA */
/* Unknown */
#elif defined( __aux ) /* 68K */
/* Unknown */
#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
# define DES_UNROLL
#elif defined( __sgi ) /* Newer MIPS */
# define DES_PTR
# define DES_RISC2
# define DES_UNROLL
#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
# define DES_PTR
# define DES_RISC1
# define DES_UNROLL
#endif /* Systems-specific speed defines */
#endif
#endif /* DES_DEFAULT_OPTIONS */
#endif /* HEADER_DES_LOCL_H */
#ifdef __cplusplus
}
#endif
|
gpl-3.0
|
heartvalve/OpenFlipper
|
Plugin-Datacontrol/TreeModel.hh
|
7695
|
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper 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 Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#ifndef TREEMODEL_H
#define TREEMODEL_H
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
#include "TreeItem.hh"
class TreeModel : public QAbstractItemModel
{
Q_OBJECT
signals:
// the connected TreeView changed data
void dataChangedInside(int _id, int _column,const QVariant& _value);
// an object was moved via dragNdrop
void moveBaseObject(int _id, int _newParentId);
public:
/// Constructor
TreeModel(QObject *_parent = 0);
/// Destructor
~TreeModel();
//===========================================================================
/** @name inherited from QAbstractItemModel
* @{ */
//===========================================================================
public:
/// Get the data of the corresponding entry
QVariant data(const QModelIndex &_index,int _role) const;
/// return the types of the corresponding entry
Qt::ItemFlags flags(const QModelIndex &_index) const;
/// return the header data of the model
QVariant headerData(int _section,
Qt::Orientation _orientation,
int _role = Qt::DisplayRole) const;
/// Get the ModelIndex at given row,column
QModelIndex index(int _row, int _column,
const QModelIndex &_parent = QModelIndex()) const;
/// Get the parent ModelIndex
QModelIndex parent(const QModelIndex &_index) const;
/// get the number of rows
int rowCount(const QModelIndex &_parent = QModelIndex()) const;
/** \brief Return the number of columns
*
* @param _parent unused
* @return return always 4
*/
int columnCount(const QModelIndex &_parent = QModelIndex()) const;
/** \brief Set Data at 'index' to 'value'
*
* @param _index a ModelIndex defining the positin in the model
* @param _value the new value
* @param _role unused
* @return return if the data was set successfully
*/
bool setData(const QModelIndex &_index, const QVariant &_value , int _role);
/** @} */
//===========================================================================
/** @name Internal DataStructure (the TreeItem Tree)
* @{ */
//===========================================================================
public:
/// Return the ModelIndex corresponding to a given TreeItem and Column
QModelIndex getModelIndex(TreeItem* _object, int _column );
/// Check if the given item is the root item
bool isRoot(TreeItem* _item);
/// Get the name of a given object
bool getObjectName(TreeItem* _object , QString& _name);
/// Get the TreeItem corresponding to a given ModelIndex
TreeItem *getItem(const QModelIndex &_index) const;
/// Get the TreeItem corresponding to a given OpenFlipper ObjectID
TreeItem *getItem(const int _id) const;
/// Get the name of a TreeItem corresponding to a given ModelIndex
QString itemName(const QModelIndex &_index) const;
/// Get the id of a TreeItem corresponding to a given ModelIndex
int itemId(const QModelIndex &_index) const;
/// The object with the given id has been changed. Check if model also has to be changed
void objectChanged(int _id);
/// The object with the given id has been added. add it to the internal tree
void objectAdded(BaseObject* _object);
/// The object with the given id has been deleted. delete it from the internal tree
void objectDeleted(int _id);
/// move the item to a new parent
void moveItem(TreeItem* _item, TreeItem* _parent );
private:
/// Root item of the tree
TreeItem* rootItem_;
/** @} */
//===========================================================================
/** @name Drag and Drop
* @{ */
//===========================================================================
public:
/// supported drag & Drop actions
Qt::DropActions supportedDropActions() const;
/// stores the mimeType for Drag & Drop
QStringList mimeTypes() const;
/// get the mimeData for a given ModelIndex
QMimeData* mimeData(const QModelIndexList& indexes) const;
/** \brief This is called when mimeData is dropped
*
* @param data The dropped data
* @param action The definition of the dropAction which occurred
* @param row Unused
* @param column Unused
* @param parent Parent under which the drop occurred
* @return returns if the drop was successful
*/
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
/** @} */
};
#endif
|
gpl-3.0
|
zobe123/Plex-CS
|
data/interfaces/default/css/plexcs.css
|
60936
|
body {
font-family: 'Open Sans', sans-serif;
color: #fff;
margin-top: 50px;
overflow: hidden;
}
a {
color: #eee;
}
a:hover,
a:focus {
color: #f9aa03;
text-decoration: none;
outline: none;
}
select {
margin: 5px 0 5px 0;
border: 2px solid #444;
background: #333;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
color: #999;
outline: none;
}
select.input-sm {
margin: 5px 0 5px 0;
border: 2px solid #444;
background: #333;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
color: #999;
outline: none;
}
select[multiple] {
height: 125px;
margin: 5px 0 5px 0;
color: #fff;
border: 0px solid #444;
background: #555;
padding: 2px 2px;
background-color: #555;
border-radius: 3px;
transition: background-color .3s;
}
select[multiple]:focus {
outline: 0;
outline: thin dotted \9;
color: #555;
background-color: #fff;
transition: background-color .3s;
}
select[multiple]:focus::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,.15);
}
select[multiple] option {
padding: 6px 10px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
img {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.navbar {
background: #000;
-webkit-box-shadow: 0 0 0 3px rgba(0,0,0,.2);
-moz-box-shadow: 0 0 0 3px rgba(0,0,0,.2);
box-shadow: 0 0 0 3px rgba(0,0,0,.2);
}
.navbar-brand {
padding: 5px 5px;
}
.nav > li > a {
color: #999;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #282828;
color: #eee;
}
.nav > li.active > a,
.nav > li.active > a:hover,
.nav > li.active > a:focus {
color: #f9aa03;
background-color: #282828;
}
.navbar-toggle {
background-color: #282828;
}
.navbar-toggle:hover,
.navbar-toggle:focus {
background-color: #2f2f2f;
}
.icon-bar {
background-color: #999;
}
.padded-header {
margin: 25px 0 25px 0;
}
.padded-header h1,h2,h3,h4,h5,h6 {
color: #eee;
}
.padded-header h3 {
font-size: 20px;
}
.btn {
outline:0px !important;
-webkit-appearance:none;
}
.btn-dark {
color: #d7d7d7;
background-color: #3B3B3B;
border-color: transparent;
}
.btn-dark:focus,
.btn-dark.focus {
color: #d7d7d7;
background-color: #3B3B3B;
}
.btn-dark:hover {
color: #fff;
background-color: #333;
border-color: #444;
}
.btn-dark:active,
.btn-dark.active,
.open > .dropdown-toggle.btn-dark {
color: #fff;
background-color: #333;
border-color: #444;
}
.btn-dark:active:hover,
.btn-dark.active:hover,
.open > .dropdown-toggle.btn-dark:hover,
.btn-dark:active:focus,
.btn-dark.active:focus,
.open > .dropdown-toggle.btn-dark:focus,
.btn-dark:active.focus,
.btn-dark.active.focus,
.open > .dropdown-toggle.btn-dark.focus {
color: #fff;
background-color: #333;
}
.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.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: #333;
color: #aaa;
}
.btn-dark .badge {
color: #e5e5e5;
background-color: #3B3B3B;
}
.btn-bright {
color: #fff;
background-color: #eb8600;
border-color: transparent;
}
.btn-bright:focus,
.btn-bright.focus {
color: #fff;
background-color: #eb8600;
}
.btn-bright:hover {
color: #fff;
background-color: #E69400;
border-color: #f9aa03;
}
.btn-bright:active,
.btn-bright.active,
.open > .dropdown-toggle.btn-bright {
color: #fff;
background-color: #eb8600;
}
.btn-bright:active:hover,
.btn-bright.active:hover,
.open > .dropdown-toggle.btn-bright:hover,
.btn-bright:active:focus,
.btn-bright.active:focus,
.open > .dropdown-toggle.btn-bright:focus,
.btn-bright:active.focus,
.btn-bright.active.focus,
.open > .dropdown-toggle.btn-bright.focus {
color: #fff;
background-color: #eb8600;
}
.btn-bright:active,
.btn-bright.active,
.open > .dropdown-toggle.btn-bright {
background-image: none;
}
.btn-bright.disabled,
.btn-bright[disabled],
fieldset[disabled] .btn-bright,
.btn-bright.disabled:hover,
.btn-bright[disabled]:hover,
fieldset[disabled] .btn-bright:hover,
.btn-bright.disabled:focus,
.btn-bright[disabled]:focus,
fieldset[disabled] .btn-bright:focus,
.btn-bright.disabled.focus,
.btn-bright[disabled].focus,
fieldset[disabled] .btn-bright.focus,
.btn-bright.disabled:active,
.btn-bright[disabled]:active,
fieldset[disabled] .btn-bright:active,
.btn-bright.disabled.active,
.btn-bright[disabled].active,
fieldset[disabled] .btn-bright.active {
background-color: #5cb85c;
border-color: #4cae4c;
}
.btn-bright .badge {
color: #fff;
background-color: #eb8600;
}
.btn-danger.btn-edit {
color: #d7d7d7;
background-color: #3B3B3B;
border-color: transparent;
float: right;
margin-right: 5px;
}
.btn-danger.btn-edit:hover {
color: #fff;
background-color: #c9302c;
border-color: #ac2925;
}
.btn-danger.btn-edit.active {
color: #fff;
background-color: #c9302c;
border-color: #ac2925;
}
.btn-danger.btn-edit.active:hover {
color: #fff;
background-color: #ac2925;
border-color: #761c19;
}
.alert-edit {
display: none;
float: right;
margin-bottom: 0;
margin-right: 5px;
padding: 6px 15px;
}
.modal-header {
padding: 15px 20px;
background-color: #323232;
border-radius: 3px 3px 0 0;
border-bottom: 1px solid #1C1C1C;
}
.modal-body {
position: relative;
overflow-y: auto;
max-height: 600px;
padding: 15px;
background-color: #222222;
}
.modal-body table {
color: #fff;
}
.modal-body li {
margin-top: 7px;
margin-left: 4px;
color: #aaa;
}
.modal-body li strong {
color: #eee;
}
.modal-body i {
color: #F9AA03;
}
.modal-body i.fa {
color: #fff;
}
.modal-body td:hover a .fa,
.modal-body a:focus i.fa {
color: #f9aa03;
}
.modal-body strong {
color: #F9AA03;
}
.modal-footer {
padding: 15px 20px;
margin-top: 0;
background-color: #323232;
border-radius: 0 0 3px 3px;
border-top: 1px solid #1C1C1C;
}
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
margin: 5px 0 5px 0;
color: #fff;
border: 0px solid #444;
background: #555;
height: 32px;
padding: 6px 12px;
background-color: #555;
border-radius: 3px;
transition: background-color .3s;
}
textarea.form-control {
height: initial;
margin: 5px 0 5px 0;
color: #fff;
border: 0px solid #444;
background: #555;
padding: 6px 12px;
background-color: #555;
border-radius: 3px;
transition: background-color .3s;
resize: none;
}
textarea.form-control:focus {
outline: 0;
color: #555;
background-color: #fff;
transition: background-color .3s;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 6px 12px;
margin-left: -1px;
line-height: 1.42857143;
color: #fff;
text-decoration: none;
background-color: #262626;
border: 1px solid #444444;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
background-color: #F9AA03;
border: 1px solid #444444;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
z-index: 2;
color: #fff;
cursor: default;
background-color: #F9AA03;
border-color: #444444;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #444444;
cursor: not-allowed;
background-color: #262626;
border-color: #444444;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #fff;
background-color: #af6c17;
}
.nav-pills > li > a {
border-radius: 3px;
padding: 5px 10px;
margin: 0 0 20px 0;
}
.btn-form {
padding: 4px 12px;
margin: 5px 0 5px 0;
font-size: 14px;
font-weight: normal;
height: 32px;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
background-color: #3B3B3B;
color: #e5e5e5;
border: 1px solid transparent;
border-radius: 3px;
outline:0px !important;
-webkit-appearance:none;
}
.btn-form:hover {
color: #fff;
background-color: #333;
}
.btn-form:focus {
color: #fff;
}
.form-control-feedback {
position: absolute;
color: #F9AA03;
top: 0;
right: 0;
margin: 5px 10px 5px 0;
z-index: 2;
display: block;
width: 32px;
height: 32px;
line-height: 32px;
text-align: center;
pointer-events: none;
}
.poster {
position: relative;
height: 225px;
}
.poster-face {
background-position: center;
background-size: cover;
height: 225px;
width: 150px;
position: relative;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
}
.cover-face {
background-position: center;
background-size: cover;
height: 150px;
width: 150px;
position: absolute;
bottom: 0;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
.users-poster-face {
overflow: hidden;
float: left;
background-size: contain;
height: 40px;
width: 40px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
a .poster-face:hover,
a .cover-face:hover,
a .users-poster-face:hover {
webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
}
.users-name {
position: relative;
}
.platform {
padding-bottom: 0px;
margin-bottom: 0px;
margin-left: 5px;
float: left;
}
.dashboard-instance {
float: left;
position: relative;
height: 260px;
width: 350px;
margin-right: 20px;
margin-bottom: 20px;
}
.dashboard-activity-poster {
height: 200px;
width: 100%;
position: relative;
overflow: hidden;
}
a:hover .dashboard-activity-poster {
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 2px #e9a049;
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 2px #e9a049;
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 2px #e9a049;
}
.dashboard-activity-poster-face {
background-position: center;
background-size: cover;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
z-index: -3;
}
.dashboard-activity-cover-face-bg {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
filter: blur(5px);
opacity: 0.75;
z-index: -3;
}
.dashboard-activity-cover-face {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 100%;
width: 200px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
position: absolute;
top: 0;
left: calc(50% - 100px);
z-index: -3;
}
.dashboard-activity-clip-face-bg {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
filter: blur(5px);
opacity: 0.75;
z-index: -3;
}
.dashboard-activity-clip-face {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 100%;
width: 130px;
position: relative;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
position: absolute;
top: 0;
left: calc(50% - 65px);
z-index: -3;
}
.dashboard-activity-info-details-overlay {
text-align: left;
background-image: -webkit-gradient(linear,left 0,left 100%,from(rgba(0,0,0,.6)),to(rgba(0,0,0,.8)));
background-image: -webkit-linear-gradient(top,rgba(0,0,0,.6),0,rgba(0,0,0,.8),100%);
background-image: -moz-linear-gradient(top,rgba(0,0,0,.6) 0,rgba(0,0,0,.8) 100%);
background-image: linear-gradient(to bottom,rgba(0,0,0,.6) 0,rgba(0,0,0,.8) 100%);
background-repeat: repeat-x;
position: absolute;
top: 0;
width: 100%;
height: 100%;
display: none;
z-index: -1;
}
.dashboard-activity-button-info {
width: 50px;
height: 50px;
position: absolute;
top: 10px;
right: 10px;
z-index: 1;
}
.btn-activity-info,
.btn-activity-info:focus {
color: #999;
background-color: rgba(0,0,0,0.5);
}
.btn-activity-info:hover {
color: #fff;
}
.dashboard-activity-info-details-content {
height: 200px;
width: 100%;
line-height: 25px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: #aaa;
padding: 10px;
}
.dashboard-activity-info-details-content strong {
color: #fff;
font-weight: normal;
}
.dashboard-activity-info-platform {
width: 100%;
height: 50px;
margin-bottom: 10px;
}
.dashboard-activity-info-platform-box {
float: left;
background-position: center;
background-size: cover;
width: 50px;
height: 50px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
margin-right: 10px;
}
.dashboard-activity-poster-info-bar {
position:absolute;
width: 100%;
height: 100%;
background-image: -webkit-gradient(linear,left 30%,left 100%,from(rgba(0,0,0,0)),to(rgba(0,0,0,0.75)));
background-image: -webkit-linear-gradient(top,rgba(0,0,0,0),30%,rgba(0,0,0,0.75),100%);
background-image: -moz-linear-gradient(top,rgba(0,0,0,0) 30%,rgba(0,0,0,0.75) 100%);
background-image: linear-gradient(to bottom,rgba(0,0,0,0) 30%,rgba(0,0,0,0.75) 100%);
opacity: 0;
-webkit-transition: all .2s;
transition: all .2s;
z-index: -2;
}
.dashboard-activity-poster:hover .dashboard-activity-poster-info-bar {
opacity: 1;
}
.dashboard-activity-poster-info-text {
position: absolute;
bottom: 0;
left: 0;
float: left;
text-align: left;
padding: 5px 8px;
font-size: 12px;
color: #eee;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 150px;
}
.dashboard-activity-poster-info-ip-address {
position: absolute;
bottom: 5px;
left: 10px;
text-align: left;
font-size: 12px;
color: #eee;
}
.dashboard-activity-poster-info-time {
position: absolute;
bottom: 5px;
right: 10px;
text-align: right;
font-size: 12px;
color: #eee;
}
.dashboard-activity-progress {
width: 100%;
height: 5px;
margin-bottom: 5px;
}
.dashboard-activity-progress-bar {
overflow: hidden;
height: 5px;
background-color: #111;
width: 100%;
z-index: -1;
-webkit-transition: all 0s;
transition: all 0s;
}
.dashboard-activity-progress .bufferbar {
padding-top: 6px;
background-color: #444;
position: absolute;
height: 6px;
overflow: hidden;
}
.dashboard-activity-progress .bar {
padding-top: 6px;
background-color: #faa732;
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
background-image: -o-linear-gradient(top, #fbb450, #f89406);
background-image: linear-gradient(to bottom, #fbb450, #f89406);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
position: absolute;
height: 6px;
overflow: hidden;
}
.dashboard-activity-metadata-wrapper {
position: relative;
width: 100%;
height: 50px;
font-size: 13px;
padding: 0 3px;
}
.dashboard-activity-metadata-title {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: 14px;
line-height: 25px;
color: #fff;
max-width: 300px;
}
.dashboard-activity-metadata-subtitle {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: 14px;
line-height: 25px;
color: #999;
max-width: 172px;
float: left;
}
.dashboard-activity-metadata-user {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: 14px;
line-height: 25px;
color: #999;
text-align: right;
max-width: 122px;
float: right;
}
.dashboard-activity-metadata-user-thumb {
background-position: center;
background-size: cover;
margin-top: 5px;
margin-left: 10px;
height: 40px;
width: 40px;
position: relative;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
float: right;
}
a .dashboard-activity-metadata-user-thumb:hover {
-webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
}
.dashboard-activity-metadata-user a {
color: #999;
}
.dashboard-activity-metadata-user a:hover {
color: #F9AA03;
}
.dashboard-activity-metadata-title a:hover {
color: #F9AA03;
}
.dashboard-activity-metadata-progress-wrapper {
margin-bottom: 20px;
font-size: 12px;
font-weight: bold;
color: #F9AA03;
}
.dashboard-recent-media-row {
width: 100%;
margin:0 auto;
text-align: center;
position: relative;
z-index: 0;
}
.dashboard-recent-media {
width: 100%;
margin: auto;
list-style: none;
}
.dashboard-recent-media li {
float: left;
position: relative;
left: 0px;
margin-right: 25px;
margin-bottom: 25px;
}
.dashboard-recent-media-poster {
position: relative;
float: left;
}
.dashboard-recent-media-cover {
position: relative;
margin-top: 75px;
float: left;
}
a:hover .dashboard-recent-media-poster,
a:hover .dashboard-recent-media-cover {
webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
}
.dashboard-recent-media-poster-face {
background-position: center;
background-size: cover;
height: 225px;
width: 150px;
position: relative;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
z-index: -2;
}
.dashboard-recent-media-cover-face {
background-position: center;
background-size: cover;
height: 150px;
width: 150px;
position: relative;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
z-index: -2;
}
.dashboard-recent-media-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
text-align: left;
background: -moz-linear-gradient(top, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(30%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1)));
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: -o-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: -ms-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
height: 100%;
z-index: -1;
}
.dashboard-recent-media-overlay-text {
color: #aaa;
font-size: 12px;
float: left;
position: absolute;
left: 8px;
bottom: 5px;
}
.dashboard-recent-media-metacontainer {
width: 150px;
font-size: 13px;
clear: both;
}
.dashboard-recent-media-metacontainer h3 {
padding: 5px 3px 0 3px;
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
font-size: 13px;
margin: 0;
line-height: 15px;
font-weight: normal;
width: 150px;
white-space: nowrap;
text-align: left;
clear: both;
}
.dashboard-recent-media-metacontainer h3.text-muted {
color: #777;
}
.dashboard-recent-media-metacontainer .text-muted {
padding: 5px 3px 0 3px;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
white-space: nowrap;
text-align: left;
}
.art-face {
background-repeat: no-repeat;
background-position: center center;
background-attachment: scroll;
background-size: cover;
opacity: 0;
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.art-music-face {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 250px;
position: relative;
top: 0;
bottom: 0;
}
.summary-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow-x: hidden;
overflow-y: auto;
}
.summary-container .table-card-header,
.summary-container .table-card-back {
opacity: 0.90;
}
.summary-navbar {
background-color: rgba(255,255,255,.03);
height: 50px;
line-height: 50px;
max-height: 50px;
overflow: hidden;
}
.summary-navbar-list {
padding: 0 25px;
color: #999;
white-space: nowrap;
overflow: hidden;
}
.summary-navbar-list .breadcrumb {
padding: 0;
margin: 0;
background: none;
}
.summary-navbar-list .breadcrumb > li + li:before {
color: #444;
font-family: FontAwesome;
content: "\f054";
padding: 0 15px;
}
.summary-navbar-list .breadcrumb > .active {
color: #eee;
}
.summary-navbar-list .breadcrumb a {
color: #999;
}
.summary-navbar-list .breadcrumb a:hover {
color: #F9AA03;
}
.summary-content-title-wrapper {
height: 150px;
padding-top: 50px;
}
.summary-content-title {
overflow: hidden;
position: relative;
max-height: 100px;
}
.summary-content-title h1 {
margin-top: 0;
margin-bottom: 10px;
color: #F9AA03;
font-size: 28px;
line-height: 40px;
float: left;
clear: left;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
}
.summary-content-title h1 a {
color: #F9AA03;
}
.summary-content-title h1 a:hover {
color: #F9AA03;
text-decoration: underline;
}
.summary-content-title h2 {
margin-top: 0;
margin-bottom: 10px;
color: #fff;
font-size: 28px;
line-height: 40px;
float: left;
clear: left;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
}
.summary-content-title h3 {
margin-top: 0;
margin-bottom: 10px;
color: #999;
font-size: 28px;
line-height: 40px;
position: absolute;
bottom: 0;
right: 0;
}
.summary-content-title h3 a:hover {
text-decoration: underline;
}
.summary-content-title h3 a {
color: #999;
}
.summary-content-wrapper {
background-image: linear-gradient(rgba(0,0,0,.4),rgba(19,19,19,.4) 50%,rgba(26,26,26,.4));
background-clip: content-box;
min-height: calc(100% - 200px);
position: inherit;
width: 100%;
}
.summary-content-poster {
float: left;
width: 250px;
margin: 0 40px 0 25px;
height: 100px;
overflow: visible;
}
.summary-poster-face {
background-position: center;
background-size: cover;
height: 375px;
width: 250px;
position: relative;
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
z-index: 1;
}
.summary-poster-face-episode {
background-position: center;
background-size: cover;
height: 140px;
width: 250px;
position: relative;
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
z-index: 1;
}
.summary-poster-face-track {
background-position: center;
background-size: cover;
height: 250px;
width: 250px;
position: relative;
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
z-index: 1;
}
.summary-poster-face-overlay {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-image: -webkit-gradient(linear,left 0,left 100%,from(rgba(0,0,0,.7)),to(rgba(0,0,0,.9)));
background-image: -webkit-linear-gradient(top,rgba(0,0,0,.7),0,rgba(0,0,0,.9),100%);
background-image: -moz-linear-gradient(top,rgba(0,0,0,.7) 0,rgba(0,0,0,.9) 100%);
background-image: linear-gradient(to bottom,rgba(0,0,0,.7) 0,rgba(0,0,0,.9) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3000000', endColorstr='#e6000000', GradientType=0);
webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
opacity: 0;
transition: opacity .2s;
}
.summary-poster-face-overlay span {
display: block;
width: 100%;
height: 100%;
background-image: url(../images/plex-logo-light-small.png);
background-size: 100px;
background-repeat: no-repeat;
background-position: center;
opacity: 0;
transition: opacity .3s;
}
a:hover .summary-poster-face .summary-poster-face-overlay,
a:hover .summary-poster-face-episode .summary-poster-face-overlay,
a:hover .summary-poster-face-track .summary-poster-face-overlay,
a:hover .summary-poster-face .summary-poster-face-overlay span,
a:hover .summary-poster-face-episode .summary-poster-face-overlay span,
a:hover .summary-poster-face-track .summary-poster-face-overlay span {
opacity: 1;
}
.summary-content-padding {
float: left;
width: 250px;
height: 1px;
margin: 0 40px 20px 25px;
}
.summary-content {
position: relative;
color: #999;
overflow: hidden;
padding-right: 10px;
margin-bottom: 20px;
}
.summary-content-details-wrapper {
width: 100%;
padding: 10px 0 15px 0;
position: relative;
float: left;
}
.summary-content-details-tag {
float: left;
line-height: 24px;
}
.summary-content-details-tag strong {
color: #fff;
margin-left: 2px;
margin-right: 10px;
}
.summary-content-summary {
overflow: hidden;
color: #fff;
float: left;
position: relative;
clear: both;
height: auto;
max-height: 160px;
padding-bottom: 0px;
}
.summary-content-people-wrapper {
margin-right: 20px;
float: left;
}
.summary-content-people-wrapper hidden-phone hidden-tablet {
overflow: hidden;
height: auto;
min-height: 0px;
}
.summary-content-actors {
margin-top: 13px;
font-size: 12px;
line-height: 18px;
color: #999;
overflow: hidden;
}
.summary-content-actors ul {
padding-left:20px;
margin-bottom: 0;
}
.summary-content-actors li {
list-style: none;
list-style-image: none;
display: block;
font-size: 12px;
line-height: 18px;
color: #fff;
}
.summary-content-genres {
margin-top: 13px;
font-size: 12px;
line-height: 18px;
color: #999;
overflow: hidden;
}
.summary-content-genres ul {
padding-left:20px;
margin-bottom: 0;
}
.summary-content-genres li {
list-style: none;
list-style-image: none;
display: block;
font-size: 12px;
line-height: 18px;
color: #fff;
}
.summary-content-writers {
margin-top: 13px;
font-size: 12px;
line-height: 18px;
color: #999;
overflow: hidden;
}
.summary-content-writers ul {
padding-left: 20px;
margin-bottom: 0;
}
.summary-content-writers li {
list-style: none;
list-style-image: none;
display: block;
font-size: 12px;
line-height: 18px;
color: #fff;
}
.rateit {
display: -moz-inline-box;
display: inline-block;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
overflow: hidden;
white-space: nowrap;
float: right;
margin-top: 3px;
height: 21px;
}
.rateit .rateit-range {
background: url(../images/star-gray-32.png);
background-size: contain;
height: 16px;
}
.rateit .rateit-selected {
background: url(../images/star-32.png);
background-size: contain;
height: 16px;
}
#children-list, #search-results-list {
position: relative;
z-index: 0;
}
.item-children-wrapper {
}
.item-children-section-title {
position: relative;
padding: 10px;
background-color: #2c2c2c;
border-bottom: 1px solid #3d3d3d;
border-top: 1px solid #282828;
height: 50px;
line-height: 22px;
padding: 13px 20px;
margin: 20px 0;
}
.item-children-section-title h4 {
position: relative;
margin: 0;
line-height: 22px;
color: #fff;
font-size: 16px;
text-align: center;
text-transform: uppercase;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item-children-instance {
list-style: none;
margin: 0;
overflow: hidden;
}
.item-children-instance li {
float: left;
position: relative;
left: 0px;
margin-right: 25px;
margin-bottom: 25px;
}
.item-children-instance li.item-children-list-item {
width: 100%;
height: 35px;
margin-right: 0;
margin-bottom: 0;
}
.item-children-poster {
float: left;
position: relative;
left: 0px;
}
a:hover .item-children-poster {
webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
}
.item-children-poster-face {
background-position: center;
background-size: cover;
position: relative;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
z-index: -2;
}
.item-children-poster-face.season-poster {
width: 150px;
height: 225px;
}
.item-children-poster-face.episode-poster {
width: 250px;
height: 140px;
}
.item-children-poster-face.album-poster {
width: 150px;
height: 150px;
}
.item-children-card-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
text-align: left;
background: -moz-linear-gradient(top, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(30%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1)));
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: -o-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: -ms-linear-gradient(top, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 30%,rgba(0,0,0,1) 100%);
height: 100%;
z-index: -1;
}
.item-children-overlay-text {
color: #aaa;
font-size: 12px;
float: left;
position: absolute;
left: 8px;
bottom: 5px;
}
.item-children-instance-text-wrapper {
font-size: 13px;
margin-bottom: 20px;
clear: both;
}
.item-children-instance-text-wrapper.season-item {
width: 150px;
}
.item-children-instance-text-wrapper.episode-item {
width: 250px;
}
.item-children-instance-text-wrapper.album-item {
width: 150px;
}
.item-children-instance-text-wrapper h3 {
width: 100%;
padding: 5px 3px 0 3px;
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
font-size: 13px;
margin: 0;
line-height: 15px;
font-weight: normal;
white-space: nowrap;
text-align: left;
clear: both;
}
.item-children-instance-text-wrapper h3.text-muted {
color: #777;
}
.item-children-list-item-odd {
border-top: 0px solid #343434;
border-bottom: 0px solid #343434;
background-color: rgba(255,255,255,0.010);
height: 100%;
font-size: 13px;
padding-top: 10px;
}
.item-children-list-item-even {
border-top: 0px solid #343434;
border-bottom: 0px solid #343434;
background-color: rgba(255,255,255,0.035);
height: 100%;
font-size: 13px;
padding-top: 10px;
}
.item-children-list-item-odd:hover,
.item-children-list-item-even:hover {
background-color: rgba(255,255,255,0.075);
}
.item-children-list-item-index {
float: left;
color: #777;
text-align: right;
display: inline-block;
width: 35px;
margin-right: 10px;
}
.item-children-list-item-title {
display: inline-block;
width: calc(100% - 110px);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.item-children-list-item-duration {
float: right;
color: #777;
text-align: right;
display: inline-block;
width: 40px;
margin-right: 20px;
}
#new_title h3 {
color: #F9AA03;
font-size: 14px;
line-height: 1.42857143;
font-weight: bold;
margin: 0;
}
.settings-alert {
float: left;
padding: 0;
margin: 5px 0;
border: 0;
position: relative;
}
.settings-alert ul {
padding: 0;
}
.settings-alert ul li {
list-style: none;
padding: 5px 12px 5px 35px;
margin: 0;
border: 1px solid #ebccd1;
border-radius: 4px;
}
.settings-alert ul li:before {
content: "\f071";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
font-size: 18px;
position: absolute;
top: 5px;
left: 12px;
}
.user-info-wrapper {
height: 113px;
}
.user-info-poster-face {
float: left;
margin-top: 15px;
margin-right: 15px;
background-size: contain;
height: 80px;
width: 80px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
.user-info-username {
font-size: 24px;
color: #fff;
position: relative;
top: 27px;
}
.user-info-nav {
position: relative;
top: 15px;
left: -5px;
}
.user-info-nav > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
color: #F9AA03;
}
.user-info-nav a:hover {
text-decoration: none;
}
.user-info-nav ul {
list-style: none;
}
.user-info-nav li {
float: left;
margin-left: 10px;
margin-right: 10px;
}
.user-overview-stats-wrapper {
}
.user-overview-stats-wrapper ul {
list-style: none;
padding: 0;
margin: 0px 0px 0px 0px;
}
.user-overview-stats-instance {
float: left;
width: 400px;
height: 80px;
margin-bottom: 25px;
}
.user-overview-stats-instance-device_icon {
float: left;
padding-right: 15px;
}
.user-overview-stats-instance-device_icon img{
}
.user-overview-stats-instance li {
float: left;
list-style: none;
width: 100%;
height: 90px;
}
.user-overview-stats-instance-text {
position: relative;
top: 0px;
left: 0px;
}
.user-overview-stats-instance p {
color: #aaa;
font-size: 12px;
float: left;
position: relative;
top: 15px;
left: 0px;
}
.user-overview-stats-instance h3 strong{
color: #fff;
}
.user-overview-stats-instance h3 {
font-size: 30px;
font-weight: bold;
color: #F9AA03;
line-height: 22px;
position: relative;
top: 5px;
margin: 0 5px 0 10px;
float: left;
}
.user-overview-stats-instance h4 {
color: #fff;
margin-bottom: 25px;
}
.user-overview-stats-instance h1 {
font-size: 54px;
font-weight: normal;
float: left;
color: #333;
color: rgba(255,255,255,0.05);
text-shadow: none;
position: relative;
top: 3px;
left: 3px;
}
.user-player ul {
list-style: none;
margin: 0;
}
.user-player-instance {
float: left;
width: 240px;
height: 80px;
margin-bottom: 25px;
}
.user-player-instance li {
}
.user-player-instance-box {
float: left;
width: 75px;
border-radius: 3px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
background-size: contain;
position: relative;
height: 80px;
width: 80px;
}
.user-player-instance-name {
float: left;
padding-top: 14px;
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
font-size: 13px;
line-height: 15px;
font-weight: normal;
width: 140px;
margin-left: 10px;
}
.user-player-instance-playcount h3 {
font-size: 30px;
font-weight: bold;
color: #F9AA03;
line-height: 22px;
position: relative;
top: 5px;
margin: 0 5px 0 10px;
float: left;
}
.user-player-instance-playcount p {
color: #aaa;
font-size: 12px;
float: left;
position: relative;
top: 15px;
left: 0px;
}
.home-platforms {
}
.home-platforms ul {
list-style: none;
margin: 0;
}
.home-platforms-instance {
background-color: #282828;
position: relative;
float: left;
width: 330px;
padding: 10px;
margin-right: 20px;
margin-bottom: 20px;
-webkit-box-sizing: content-box;
box-sizing: content-box;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
white-space: nowrap;
}
.home-platforms-instance li {
position: relative;
}
.home-platforms-instance-info {
float: left;
position: relative;
padding-left: 80px;
width: 100%;
height: 120px;
}
.home-platforms-instance-name {
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
font-size: 13px;
line-height: 15px;
font-weight: bold;
width: 100%;
padding: 0 0 0 20px;
}
.home-platforms-instance-name h4 {
margin: 10px 0 4px 0;
}
.home-platforms-instance-playcount {
display: inline-block;
position: relative;
padding: 6px 0 0 20px;
max-width: 100%;
}
.home-platforms-instance-playcount h4 {
font-size: 14px;
line-height: 16px;
margin: 10px 0 10px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-platforms-instance-playcount h3 {
font-size: 30px;
font-weight: bold;
color: #F9AA03;
line-height: 22px;
position: relative;
top: 5px;
margin: 0 5px 0 0;
float: left;
}
.home-platforms-instance-playcount p {
color: #aaa;
font-size: 12px;
float: left;
position: relative;
top: 15px;
left: 0px;
margin-right: 5px;
}
.home-platforms-instance-last-user {
float: left;
position: relative;
padding: 6px 0 0 20px;
width: 100%;
}
.home-platforms-instance-last-user h4 {
font-size: 14px;
line-height: 16px;
margin: 10px 0 10px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-platforms-instance-last-user h5 {
font-size: 12px;
position: relative;
margin: 0 0 2px 0;
float: left;
}
.home-platforms-instance-last-user p {
color: #aaa;
font-size: 12px;
float: left;
clear: left;
position: relative;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-platforms-instance-poster {
margin-left: 0px;
position: absolute;
}
.home-platforms-instance-poster .home-platforms-poster-face {
background-position: center;
background-size: cover;
height: 120px;
width: 80px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
.home-platforms-instance-poster .home-platforms-library-thumb {
background-position: center;
background-size: cover;
height: 80px;
width: 80px;
margin-top: 20px;
}
.home-platforms-instance-box {
background-position: center;
background-size: cover;
margin: 20px 0 0 0px;
height: 80px;
width: 80px;
position: relative;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
}
.home-platforms-instance-oval {
background-position: center;
background-size: cover;
margin: 20px 0 0 0px;
height: 80px;
width: 80px;
position: relative;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
}
.home-platforms-instance-list {
float: left;
position: relative;
width: 100%;
padding: 0 10px 25px 10px;
}
.home-platforms-instance-list li {
margin-top: 25px;
position: relative;
height: 60px;
}
.home-platforms-instance-list-number {
background-color: #eb8600;
float: left;
position: absolute;
top: -10px;
left: 10px;
height: 20px;
width: 20px;
display: block;
text-align: center;
padding-top: 1px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
.home-platforms-instance-list-number h4 {
color: #000;
font-size: 15px;
font-weight: bold;
margin: 0;
}
.home-platforms-instance-list-info {
float: left;
position: relative;
padding-left: 75px;
width: 100%;
height: 60px;
}
.home-platforms-instance-list-name {
float: left;
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
font-size: 13px;
line-height: 15px;
font-weight: bold;
width: 100%;
padding: 2px 0 0 10px;
}
.home-platforms-instance-list-name h5 {
margin: 5px 0px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-platforms-instance-list-playcount {
float: left;
position: relative;
padding: 4px 0 0 10px;
width: 100%;
}
.home-platforms-instance-list-playcount h3 {
font-size: 20px;
font-weight: bold;
color: #F9AA03;
line-height: 22px;
position: relative;
margin: 0 5px 0 0;
float: left;
}
.home-platforms-instance-list-playcount p {
color: #aaa;
font-size: 12px;
float: left;
position: relative;
top: 5px;
left: 0px;
margin-right: 5px;
}
.home-platforms-instance-list-last-user {
float: left;
position: relative;
padding: 0 0 0 10px;
width: 100%;
}
.home-platforms-instance-list-last-user h5 {
font-size: 12px;
position: relative;
margin: 0 0 2px 0;
float: left;
}
.home-platforms-instance-list-last-user p {
color: #aaa;
font-size: 12px;
float: left;
clear: left;
position: relative;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-platforms-instance-list-poster {
position: absolute;
left: 20px;
}
.home-platforms-instance-list-poster .home-platforms-list-poster-face {
background-position: center;
background-size: cover;
height: 60px;
width: 40px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
}
.home-platforms-instance-list-box {
background-position: center;
background-size: cover;
margin: 10px 0 0 20px;
height: 40px;
width: 40px;
position: relative;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
}
.home-platforms-instance-list-oval {
background-position: center;
background-size: cover;
margin: 10px 0 0 20px;
height: 40px;
width: 40px;
position: relative;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
overflow: hidden;
}
.home-platforms-instance-list-chevron {
position: absolute;
top: 105px;
right: 0;
cursor: pointer;
}
.home-platforms-instance-list-chevron i {
color: #999;
font-size: 16px;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.home-platforms-instance-list-chevron i:hover {
color: #eb8600;
}
.home-platforms-instance-list-chevron.active i.fa-chevron-down{
color: #eb8600;
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
a .home-platforms-instance-box:hover,
a .home-platforms-instance-oval:hover,
a .home-platforms-instance-list-box:hover,
a .home-platforms-instance-list-oval:hover,
.home-platforms-poster-face:hover,
.home-platforms-list-poster-face:hover
{
-webkit-box-shadow: inset 0 0 0 2px #e9a049;
-moz-box-shadow: inset 0 0 0 2px #e9a049;
box-shadow: inset 0 0 0 2px #e9a049;
}
.home-platforms-instance .slider {
background-color: #2d2d2d;
width: calc(100% + 20px);
display: none;
position: absolute;
top: 128px;
left: -10px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
z-index: 1;
clip: rect(1px, 354px, 1000px, -2px);
}
.history-table-title {
text-overflow: ellipsis;
overflow: hidden;
max-width: 350px;
}
.graphs-instance {
height: 330px;
padding: 20px;
background-color: #333;
margin-bottom: 20px;
border-radius: 8px;
}
.watch-chart {
margin-top: 10px;
height: 300px;
width: 100%;
}
.graphs-load {
color: #999999;
text-align: center;
line-height: 300px;
}
.card-back {
padding: 16px;
background-color: #282828;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
width: 80%;
overflow: hidden;
}
.card-back-full {
padding: 20px;
background-color: #282828;
margin-top: 20px;
margin-bottom: 20px;
overflow: hidden;
}
.table-card-back {
padding: 16px 16px 16px 16px;
background-color: #282828;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
width: 90%;
overflow: hidden;
}
.table-card-header {
padding: 16px 16px 16px 16px;
background-color: #2c2c2c;
border-bottom: 1px solid #3d3d3d;
border-top: 1px solid #282828;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: -20px;
width: 90%;
overflow: hidden;
}
.table-card-back td {
font-size: 12px;
}
.header-bar {
float: left;
}
.header-bar span {
font-size: 22px;
line-height: 34px;
}
.button-bar {
float: right;
}
.colvis-button-bar,
.refresh-users-button {
float: right;
}
.nav-settings,
.nav-settings ul {
margin: 0px 0px 20px 0px;
}
.nav-settings > li {
list-style: none;
background-color: #282828;
width: 100%;
max-width: 340px;
min-width: 200px;
border-top: 1px solid #2d2d2d;
}
.nav-settings > li > a {
display: block;
padding: 15px 15px 15px 15px;
color: #999;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.nav-settings > li > a:hover,
.nav-settings > li > a:focus {
color: #eee;
background-color: #2f2f2f;
}
.nav-settings > .active > a,
.nav-settings > .active > a:hover,
.nav-settings > .active > a:focus {
color: #eb8600;
background-color: #2f2f2f;
}
.stacked-configs,
.stacked-configs ul {
margin: 0px 0px 20px 0px;
}
.stacked-configs > li {
list-style: none;
background-color: #282828;
width: 100%;
min-width: 320px;
max-width: 900px;
}
.stacked-configs > li > span {
display: block;
padding: 8px 20px 8px 15px;
color: #eee;
border-left: 2px solid #444;
border-top: 1px solid #2d2d2d;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.stacked-configs > li > span:hover,
.stacked-configs > li > span:focus {
color: #eee;
background-color: #2f2f2f;
}
.stacked-configs > li > span > a.toggle-right {
float: right;
color: #999;
padding-left: 10px;
}
.stacked-configs > li > span > a.toggle-left {
color: #444;
padding-right: 8px;
}
.stacked-configs > li > span > a:hover {
color: #eee;
}
.stacked-configs > li > span > a.active {
color: #eb8600;
}
.accordion {
width: 100%;
max-width: 900px;
margin: 0px 0px 20px 0px;
background: #282828;
list-style: none;
}
.accordion .link {
cursor: pointer;
display: block;
padding: 8px 20px 8px 30px;
color: #999;
border-bottom: 1px solid #2d2d2d;
position: relative;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.accordion li:last-child .link {
border-bottom: 0;
}
.accordion li i {
position: absolute;
top: 10px;
left: 10px;
color: #999;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.accordion li i.fa-chevron-down {
right: 12px;
left: auto;
font-size: 16px;
}
.accordion li .link:hover {
color: #FFF;
background: #2f2f2f;
}
.accordion li.open .link {
color: #eb8600;
}
.accordion li.open i {
color: #eb8600;
}
.accordion li.open i.fa-chevron-down {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
.submenu {
display: none;
background: #2d2d2d;
list-style: none;
margin: 0px;
padding: 20px;
}
.submenu li {
border-bottom: 1px solid #2f2f2f;
}
.submenu a {
display: block;
text-decoration: none;
color: #d9d9d9;
padding: 12px;
-webkit-transition: all 0.25s ease;
-o-transition: all 0.25s ease;
transition: all 0.25s ease;
}
.submenu a:hover {
background: #eb8600;
color: #FFF;
}
.ajaxMsg {
background-color: rgba(255,255,255,0.075);
color: #999999;
display: none;
font-size: 14px;
right: 10px;
padding: 10px 10px;
position: fixed;
text-align: center;
bottom: 10px;
min-height: 32px;
width: 250px;
z-index: 9999;
}
.ajaxMsg .msg {
line-height: normal;
padding-left: 20px;
}
.ajaxMsg .loader {
position: relative;
top: 2px;
}
.ajaxMsg .success {
text-align: left;
}
.ajaxMsg .error {
background-color: rgba(255,0,0,0.5);
font-size: 20px;
text-align: left;
}
.ajaxMsg .ui-icon {
display: inline-block;
margin-left: -20px;
top: 2px;
position: relative;
margin-right: 3px;
}
.dataTables_processing {
background-color: grey;
display: none;
font-size: 14px;
right: 10px;
padding: 10px 10px;
position: fixed;
text-align: center;
bottom: 10px;
min-height: 32px;
width: 250px;
z-index: 9999;
}
.tooltip.top .tooltip-arrow {
border-top-color: #fff;
}
.tooltip.right .tooltip-arrow {
border-right-color: #fff;
}
.tooltip.bottom .tooltip-arrow {
border-bottom-color: #fff;
}
.tooltip.left .tooltip-arrow {
border-left-color: #fff;
}
.tooltip-inner {
color: #000;
background: #fff;
border: 0;
font-weight: bold;
}
.history-title .popover.right {
margin-left: 12px;
z-index: 5;
}
.history-title .popover.right .popover-content {
padding: 5px 8px;
}
.history-thumbnail {
background-position: center;
background-size: cover;
width: 80px;
}
.edit-user-toggles {
padding-right: 10px;
}
.edit-user-toggles > input[type='checkbox'] {
display: none;
}
.edit-user-toggles > input[type='checkbox'] + label {
color: #444;
cursor: pointer;
}
.edit-user-toggles > input[type='checkbox']:checked + label {
color: #fff;
cursor: pointer;
}
.edit-user-name > input[type='text'] {
margin: 0;
}
.popover {
z-index: 2;
}
.popover .popover-content {
color: #000;
}
.noTransition
{
-moz-transition: none !important;
-webkit-transition: none !important;
-o-transition: none !important;
transition: none !important;
}
.settings-alert {
float: left;
padding: 0;
margin: 5px 0;
border: 0;
position: relative;
}
.settings-alert ul {
padding: 0;
}
.settings-alert ul li {
list-style: none;
padding: 5px 12px 5px 35px;
margin: 0;
border: 1px solid #ebccd1;
border-radius: 4px;
}
.settings-alert ul li:before {
content: "\f071";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
font-size: 18px;
position: absolute;
top: 5px;
left: 12px;
}
#users-to-delete > li,
#users-to-purge > li {
color: #e9a049;
}
#updatebar {
background-color: #444;
color: #999999;
display: none;
font-size: 14px;
right: 10px;
padding: 7px 10px;
position: fixed;
text-align: center;
bottom: 10px;
min-height: 22px;
width: 250px;
z-index: 9999;
display: block;
}
#updatebar .msg {
line-height: normal;
padding-left: 20px;
}
#updatebar .loader {
position: relative;
top: 2px;
}
#updatebar.success {
padding: 15px 10px;
text-align: left;
}
#updatebar.error {
padding: 15px 10px;
text-align: left;
}
#updatebar .ui-icon {
display: inline-block;
margin-left: -20px;
top: 2px;
position: relative;
margin-right: 3px;
}
#updatebar a:hover {
color: #F9AA03;
}
.body-container {
position: absolute;
top: 50px;
right: 0;
bottom: 0;
left: 0;
overflow-x: hidden;
overflow-y: auto;
}
::-webkit-scrollbar {
width: 15px;
}
::-webkit-scrollbar-track {
background-color: rgba(0,0,0,.2);
}
::-webkit-scrollbar-thumb {
min-height: 50px;
background-color: rgba(255,255,255,.15);
border: 3px solid transparent;
border-radius: 8px;
background-clip: padding-box;
}
@media only screen
and (min-device-width: 300px)
and (max-device-width: 400px) {
.home-platforms-instance {
width: calc(100% - 20px);
}
.dashboard-instance {
width: 100%;
}
}
table.display tr.shown + tr div.slider {
display: none;
}
table.display tr.shown + tr > td {
padding-top: 0;
padding-bottom: 0;
}
table.display tr.shown + tr:hover {
background-color: rgba(255,255,255,0);
}
table.display tr.shown + tr:hover a,
table.display tr.shown + tr td:hover a,
table.display tr.shown + tr .pagination > .active > a,
table.display tr.shown + tr .pagination > .active > a:hover {
color: #fff;
}
table.display tr.shown + tr table[id^='history_child'] td:hover a {
color: #F9AA03;
}
table.display tr.shown + tr .pagination > .disabled > a {
color: #444444;
}
table.display tr.shown + tr .pagination > li > a:hover {
color: #23527c;
}
table[id^='history_child'] {
margin-top: 0;
margin-left: -4px;
opacity: .6;
}
table[id^='history_child'] thead th {
line-height: 0;
height: 0 !important;
overflow: hidden;
}
#search_form {
width: 350px;
padding: 8px 15px;
}
#search_form span.input-textbox {
overflow: hidden;
width: 250px;
height: 34px;
display: inline-flex;
float: right;
}
#search_form #query {
width: 0;
height: 34px;
margin-top: 0;
float: right;
position: relative;
right: -250px;
border-radius: 3px 0 0 3px;
}
#search_form #query.active {
width: 250px;
right: 0px;
}
#search_form #search_button.btn-inactive {
background-color: #000;
border: 1px solid rgba(0,0,0,0);
-webkit-transition: background 0.3s;
-moz-transition: background 0.3s;
-ms-transition: background 0.3s;
-o-transition: background 0.3s;
transition: background 0.3s;
}
|
gpl-3.0
|
wakeupthecat/gastona
|
pc/src/javaj/widgets/zImage.java
|
9717
|
/*
package de.elxala.zWidgets
Copyright (C) 2005-2017 Alejandro Xalabarder Aulet
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; either version 3 of the License, or (at your option) any later
version.
This program 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
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package javaj.widgets;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
import de.elxala.langutil.*;
import de.elxala.Eva.*;
import de.elxala.mensaka.*;
import javaj.widgets.kits.dndFileTransHandler;
import javaj.widgets.basics.*;
import javaj.widgets.graphics.*;
/*
//(o) WelcomeGastona_source_javaj_widgets (m) zImage
========================================================================================
================ documentation for javajCatalog.gast ===================================
========================================================================================
#gastonaDoc#
<docType> javaj_widget
<name> zImage
<groupInfo> misc
<javaClass> javaj.widgets.zImage
<importance> 4
<desc> //An image (rapid prefix 'm')
<help>
//
// To show an image of format GIF, JPEG, or PNG from a file (see javax.swing.ImageIcon)
// The file path might be a file, a resource found in the current class path or an Url.
//
<prefix> m
<attributes>
name , in_out, possibleValues , desc
, in , file name , //File name of the image
visible , in , 0 / 1 , //Value 0 to make the widget not visible
enabled , in , 0 / 1 , //Value 0 to disable the widget
droppedFiles , out , (Eva table) , //Eva table (pathFile,fileName,extension,fullPath,date,size) containing all dropped files. Note that this attribute has to exist in order to enable drag & dropping files into this Component.
droppedDirs , out , (Eva table) , //Eva table (pathFile,fileName,extension,fullPath,date,size) containing all dropped directories. Note that this attribute has to exist in order to enable drag & dropping files into this Component.
<messages>
msg, in_out, desc
data! , in , update data
control! , in , update control
, out , Image has been clicked
droppedFiles, out , If files drag & drop enabled this message indicates that the user has dropped files (see attribute 'droppedFiles')
droppedDirs , out , If directories drag & drop is enabled this message indicates that the user has dropped directories (see attribute 'droppedDirs')
<examples>
gastSample
hello Image
image viewer
<hello Image>
//#javaj#
//
// <frames> F, Hello zImage
//
// <layout of F>
// PANEL, X
// mImage
//
//#data#
//
// <mImage> 'javaj/img/miDesto.png
//
<image viewer>
//#javaj#
//
// <frames> F, Sample Image viewer
//
// <layout of F>
// EVA, 10, 10, 6, 6
//
// ---, 300 , X
// , bDir , mImage
// X , aTree , +
//
//#data#
//
// <bDir> 'Image Directory
// <bDir DIALOG> DIR
//
//#listix#
//
// <main0>
// SET VAR, aTree separator, @<:sys file.separator>
//
// <-- bDir>
// SCAN, ADDFILES,, @<bDir chosen>, +, png, +, gif, +, jpeg, +, jpg
// -->, aTree data!, sqlSelect, //SELECT fullPath FROM scan_all;
//
// <-- aTree>
// -->, mImage data!,, @<aTree selectedPath>
//
#**FIN_EVA#
*/
/**
*/
public class zImage extends JPanel implements MouseListener, MensakaTarget
{
protected basicAparato helper = null;
protected dndFileTransHandler dndHandler = null;
protected Color backColor = Color.GRAY; //new JButton().getBackground (); // new JButton().getBackgroundColor ();
// own data
protected Icon theImage = null;
protected float alpha = 0.f;
public zImage ()
{
// default constructor to allow instantiation using <javaClass of...>
}
// ------
public zImage (String map_name)
{
init (map_name);
addMouseListener (this);
}
public void setName (String map_name)
{
init (map_name);
}
public void init (String map_name)
{
super.setName (map_name);
helper = new basicAparato ((MensakaTarget) this, new widgetEBS (map_name, null, null));
// ??
//setLayout (new BorderLayout());
setBackground(new JButton().getBackground ());
}
private void readAlpha ()
{
alpha = (float) stdlib.atof (helper.ebs ().getSimpleDataAttribute ("alpha", "1"));
if (alpha == 1.f)
alpha = (float) stdlib.atof (helper.ebs ().getSimpleDataAttribute ("opacity", "1"));
String backC = helper.ebs ().getSimpleDataAttribute ("backcolor");
if (backC != null)
{
uniColor uco = new uniColor ();
uco.parseColor (backC);
backColor = uco.getNativeColor ();
}
}
public boolean takePacket (int mappedID, EvaUnit euData, String [] pars)
{
switch (mappedID)
{
case widgetConsts.RX_UPDATE_DATA:
helper.ebs ().setDataControlAttributes (euData, null, pars);
theImage = javaLoad.getSomeHowImageIcon (helper.ebs ().getText ());
readAlpha ();
//paintImmediately (new Rectangle (0, 0, getSize().width, getSize().height));
paintImmediately (getVisibleRect());
// repaint ();
break;
case widgetConsts.RX_UPDATE_CONTROL:
helper.ebs ().setDataControlAttributes (null, euData, pars);
setEnabled (helper.ebs ().getEnabled ());
readAlpha ();
//(o) TODO_REVIEW visibility issue
// avoid setVisible (false) when the component is not visible (for the first time ?)
boolean visible = helper.ebs ().getVisible ();
if (visible && isShowing ())
setVisible (visible);
if (dndHandler == null)
{
if (helper.ebs ().isDroppable ())
{
// made it "dropable capable"
// drag & drop ability
//
/**
Make the zWidget to drag'n'drop of files or directories capable
Note that the zWidget is not subscribed to the drag'n'drop message itself ("%name% droppedFiles" or ..droppedDirs")
therefore it will not take any action on this event. It is a task of a controller to
examine, accept, process and insert into the widget the files if desired and convenient
Note that at this point the control for the zWidget (helper.ebs().getControl ())
is null and we have to update it into the handler when it chanhges
*/
dndHandler = new dndFileTransHandler (
helper.ebs().getControl (),
helper.ebs().evaName (""),
dndFileTransHandler.arrALL_FIELDS
);
setTransferHandler (dndHandler);
}
}
else
{
// every time the control changes set it to the drag&drop handler
dndHandler.setCommunicationLine (helper.ebs().getControl ());
}
break;
default:
return false;
}
return true;
}
public Dimension getPreferredSize ()
{
return (theImage != null) ?
new Dimension (theImage.getIconWidth(), theImage.getIconHeight()) :
new Dimension (10, 10);
}
public void mousePressed (MouseEvent e)
{
// helper.signalAction ();
}
public void mouseReleased (MouseEvent e)
{
// helper.signalAction ();
}
public void mouseClicked (MouseEvent e)
{
helper.signalAction ();
}
public void mouseEntered (MouseEvent e)
{
// helper.signalAction ();
}
public void mouseExited (MouseEvent e)
{
// helper.signalAction ();
}
public void paint(Graphics g)
{
Dimension d = getSize();
if (d.width <= 0 || d.height <= 0) return; // >>>> return
if (backColor != null)
{
g.setColor (backColor);
g.fillRect (0, 0, d.width, d.height);
}
else
g.clearRect (0, 0, d.width, d.height);
if (theImage == null) return; // No image yet!
int left = (d.width - theImage.getIconWidth()) / 2;
int right = (d.height - theImage.getIconHeight()) / 2;
if (alpha < 1.f)
{
Graphics2D g2d = (Graphics2D) g;
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, alpha));
theImage.paintIcon(this, g2d, left, right);
}
else
theImage.paintIcon(this, g, left, right);
}
}
|
gpl-3.0
|
SylvainLasnier/memcached
|
Dockerfile
|
313
|
FROM sylvainlasnier/ubuntu
MAINTAINER Sylvain Lasnier <sylvain.lasnier@gmail.com>
# Install packages
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install memcached
# memcached public variable
EXPOSE 11211
CMD ["/usr/bin/memcached", "-u", "memcache", "-v"]
|
gpl-3.0
|
xmjiao/octave-debian
|
doc/interpreter/octave.html/XREFlightdeletefcn.html
|
1942
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
<!-- This file redirects to the location of a node or anchor -->
<head>
<title>GNU Octave: XREFlightdeletefcn</title>
<meta name="description" content="GNU Octave: XREFlightdeletefcn">
<meta name="keywords" content="GNU Octave: XREFlightdeletefcn">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="octave.css">
<meta http-equiv="Refresh" content="0; url=Light-Properties.html#XREFlightdeletefcn">
</head>
<body lang="en">
<p>The node you are looking for is at <a href="Light-Properties.html#XREFlightdeletefcn">XREFlightdeletefcn</a>.</p>
</body>
|
gpl-3.0
|
jagodki/qzeb3d
|
ZebData/Rawdata/track.cpp
|
3636
|
/*
* qZeb3D - calculating 3D-point-clouds from Georawfiles/Georohdaten of german ZEB
* Copyright (C) 2016 Christoph Jung
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "track.h"
Track::Track(QObject *parent) : QObject(parent) {
this->zebAdmin = false;
this->parametres = false;
}
void Track::setDataMedium(QString medium) {
this->dataMedium = medium;
}
QString Track::getDataMedium() {
return this->dataMedium;
}
int Track::getYear() {
return year;
}
void Track::setYear(int value) {
year = value;
}
QString Track::getStreetClass() {
return streetClass;
}
void Track::setStreetClass(QString value) {
streetClass = value;
}
QString Track::getCountry() {
return country;
}
void Track::setCountry(QString value) {
country = value;
}
QVector<Camera *> Track::getCameras() {
return cameras;
}
void Track::addCamera(Camera *value) {
cameras.append(value);
}
QString Track::getReason()
{
return reason;
}
void Track::setReason(QString value)
{
reason = value;
}
QString Track::getSystem()
{
return system;
}
void Track::setSystem(QString value)
{
system = value;
}
QString Track::getVersion()
{
return version;
}
void Track::setVersion(QString value)
{
version = value;
}
QString Track::getDesignerCompany()
{
return designerCompany;
}
void Track::setDesignerCompany(QString value)
{
designerCompany = value;
}
QString Track::getOperatorCompany()
{
return operatorCompany;
}
void Track::setOperatorCompany(QString value)
{
operatorCompany = value;
}
QString Track::getPrinciple()
{
return principle;
}
void Track::setPrinciple(QString value)
{
principle = value;
}
QString Track::getDrivingPerson()
{
return drivingPerson;
}
void Track::setDrivingPerson(QString value)
{
drivingPerson = value;
}
QString Track::getOperatingPerson()
{
return operatingPerson;
}
void Track::setOperatingPerson(QString value)
{
operatingPerson = value;
}
QString Track::getPositionSystem()
{
return positionSystem;
}
void Track::setPositionSystem(QString value)
{
positionSystem = value;
}
bool Track::getZebAdmin()
{
return zebAdmin;
}
void Track::setZebAdmin(bool value)
{
zebAdmin = value;
}
bool Track::getParametres()
{
return parametres;
}
void Track::setParametres(bool value)
{
parametres = value;
}
Longitudinal *Track::getLongitudinalMeasurement()
{
return longitudinalMeasurement;
}
void Track::setLongitudinalMeasurement(Longitudinal *value)
{
longitudinalMeasurement = value;
}
Transverse *Track::getTransverseMeasurement()
{
return transverseMeasurement;
}
void Track::setTransverseMeasruement(Transverse *value)
{
transverseMeasurement = value;
}
Damage *Track::getDamageMeasurement()
{
return damageMeasurement;
}
void Track::setDamageMeasurement(Damage *value)
{
damageMeasurement = value;
}
QString Track::getNumberPlate()
{
return numberPlate;
}
void Track::setNumberPlate(QString value)
{
numberPlate = value;
}
|
gpl-3.0
|
jantman/tuxostat
|
fs_backup/home/tuxostat/devel/Phidgetlinux/phidget21/utils/avahi-common/malloc.h
|
3069
|
#ifndef foomallochfoo
#define foomallochfoo
/* $Id: malloc.h,v 1.1.1.1 2008/06/10 13:50:38 jantman Exp $ */
/***
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
avahi 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 Lesser General
Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with avahi; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
/** \file malloc.h Memory allocation */
#include <sys/types.h>
#include <stdarg.h>
#include <limits.h>
#include <assert.h>
#include <avahi-common/cdecl.h>
#include <avahi-common/gccmacro.h>
AVAHI_C_DECL_BEGIN
/** Allocate some memory, just like the libc malloc() */
void *avahi_malloc(size_t size);
/** Similar to avahi_malloc() but set the memory to zero */
void *avahi_malloc0(size_t size);
/** Free some memory */
void avahi_free(void *p);
/** Similar to libc's realloc() */
void *avahi_realloc(void *p, size_t size);
/** Internal helper for avahi_new() */
static inline void* avahi_new_internal(unsigned n, size_t k) {
assert(n < INT_MAX/k);
return avahi_malloc(n*k);
}
/** Allocate n new structures of the specified type. */
#define avahi_new(type, n) ((type*) avahi_new_internal((n), sizeof(type)))
/** Internal helper for avahi_new0() */
static inline void* avahi_new0_internal(unsigned n, size_t k) {
assert(n < INT_MAX/k);
return avahi_malloc0(n*k);
}
/** Same as avahi_new() but set the memory to zero */
#define avahi_new0(type, n) ((type*) avahi_new0_internal((n), sizeof(type)))
/** Just like libc's strdup() */
char *avahi_strdup(const char *s);
/** Just like libc's strndup() */
char *avahi_strndup(const char *s, size_t l);
/** Duplicate the given memory block into a new one allocated with avahi_malloc() */
void *avahi_memdup(const void *s, size_t l);
/** Wraps allocator functions */
typedef struct AvahiAllocator {
void* (*malloc)(size_t size);
void (*free)(void *p);
void* (*realloc)(void *p, size_t size);
void* (*calloc)(size_t nmemb, size_t size); /**< May be NULL */
} AvahiAllocator;
/** Change the allocator. May be NULL to return to default (libc)
* allocators. The structure is not copied! */
void avahi_set_allocator(const AvahiAllocator *a);
/** Like sprintf() but store the result in a freshly allocated buffer. Free this with avahi_free() */
char *avahi_strdup_printf(const char *fmt, ... ) AVAHI_GCC_PRINTF_ATTR12;
/** \cond fulldocs */
/** Same as avahi_strdup_printf() but take a va_list instead of varargs */
char *avahi_strdup_vprintf(const char *fmt, va_list ap);
/** \endcond */
AVAHI_C_DECL_END
#endif
|
gpl-3.0
|
InstantKhabar/_source
|
_source/news/2018-06-29-piyush-goyal.html
|
4564
|
---
title: "अगले साल तक पता चलेगा स्विस बैंक में किसका कितना पैसा: पीयूष गोयल"
layout: item
category: ["india"]
date: 2018-06-29T11:05:55.015Z
image: 1530290155012piyush-goyal.jpg
---
<p>नई दिल्ली: केंद्रीय मंत्री पीयूष गोयल ने कहा है कि अगले साल तक कालाधन का सारा डेटा भारत में वापस आ जाएगा. गोयल का यह बयान SNB के उस डेटा के तुरंत बाद आया है, जिसमें कहा गया है कि साल 2017 तक भारत के हिस्से का काला धन 50 फीसदी और बढ़कर 7,000 करोड़ हो गया.</p>
<p>वित्त मंत्रालय का प्रभार संभाल रहे पीयूष गोयल ने कहा कि भारत सभी द्विपक्षीय संधि के तहत सभी बैंक खातों की जानकारी लेना शुरू करेगा. उन्होंने इस पर भी आश्चर्य जताया कि कैसे स्विस बैंक में सभी जमा कालाधन मान लिया जाए. हालांकि उन्होंने कहा कि अगर कोई भी कुछ गलत करता पाया गया तो उसके खिलाफ कड़ी कार्रवाई की जाएगी.</p>
<p>तुलनात्मक रूप से, स्विस नेशनल बैंक (एसएनबी) द्वारा जारी आधिकारिक वार्षिक आंकड़ों के अनुसार, स्विस बैंकों के सभी विदेशी ग्राहकों द्वारा आयोजित कुल फंड लगभग 3 प्रतिशत बढ़कर 1.46 ट्रिलियन या 2017 में 100 लाख करोड़ रुपये हो गए.</p>
<p>स्विस बैंकों के साथ भारतीय धन में बढ़ोत्तरी आश्चर्यजनक है क्योंकि विदेशों में रखे काले धन पर भारत लगातार कठोर नीति अपना रहा है. 2016 में स्विस बैंकों में भारतीय धन में 45 प्रतिशत की गिरावट आई थी, जो अपने सबसे बड़े सालाना गिरावट के साथ 676 मिलियन (लगभग 4,500 करोड़ रुपये) तक पहुंच गई थी. स्विस बैंक ने डेटा साल 1987 से सार्वजनिक शुरू करना किया, उसके बाद यह सबसे बड़ी गिरावट थी.</p>
<p>एसएनबी आंकड़ों के मुताबिक, स्विस बैंकों के साथ सीधे भारतीयों द्वारा आयोजित कुल फंड 2017 में 99 9 मिलियन स्विस फ्रैंक (6,8 9 1 करोड़ रुपये) तक पहुंच गए, जबकि फिडूशीएरी या संपत्ति प्रबंधकों के माध्यम से 16.2 मिलियन (112 करोड़ रुपये) हो गए. साल 2016 के अंत में ये आंकड़े क्रमश: 664.8 मिलियन और 11 मिलियन थे. नवीनतम आंकड़ों के मुताबिक, साल 2017 के अंत में स्विस बैंकों में भारतीय धन में ग्राहक जमा के रूप में 464 मिलियन (3,200 करोड़ रुपये), अन्य बैंकों के माध्यम से 152 मिलियन (1,050 करोड़ रुपये) और 383 मिलियन (2,640 करोड़ रुपये) अन्य देनदारियों के रूप में शामिल थे.</p>
|
gpl-3.0
|
MailCleaner/MailCleaner
|
www/framework/Zend/Search/Lucene/Document/Exception.php
|
1162
|
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Search_Lucene
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php,v 1.1.2.3 2011-05-30 08:31:01 root Exp $
*/
/**
* Framework base exception
*/
require_once 'Zend/Search/Lucene/Exception.php';
/**
* @category Zend
* @package Zend_Search_Lucene
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Exception extends Zend_Search_Lucene_Exception
{}
|
gpl-3.0
|