text
stringlengths
1
22.8M
Zsombor Piros was the defending champion but lost in the second round to Henri Squire. Sumit Nagal won the title after defeating Dalibor Svrčina 6–4, 7–5 in the final. Seeds Draw Finals Top half Bottom half References External links Main draw Qualifying draw Tampere Open - 1 2023 Singles
```ruby # typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "plist" require "utils/user" require "cask/artifact/abstract_artifact" require "extend/hash/keys" module Cask module Artifact # Artifact corresponding to the `pkg` stanza. class Pkg < AbstractArtifact attr_reader :path, :stanza_options def self.from_args(cask, path, **stanza_options) stanza_options.assert_valid_keys(:allow_untrusted, :choices) new(cask, path, **stanza_options) end def initialize(cask, path, **stanza_options) super @path = cask.staged_path.join(path) @stanza_options = stanza_options end def summarize path.relative_path_from(cask.staged_path).to_s end def install_phase(**options) run_installer(**options) end private def run_installer(command: nil, verbose: false, **_options) ohai "Running installer for #{cask} with sudo; the password may be necessary." unless path.exist? pkg = path.relative_path_from(cask.staged_path) pkgs = Pathname.glob(cask.staged_path/"**"/"*.pkg").map { |path| path.relative_path_from(cask.staged_path) } message = "Could not find PKG source file '#{pkg}'" message += ", found #{pkgs.map { |path| "'#{path}'" }.to_sentence} instead" if pkgs.any? message += "." raise CaskError, message end args = [ "-pkg", path, "-target", "/" ] args << "-verboseR" if verbose args << "-allowUntrusted" if stanza_options.fetch(:allow_untrusted, false) with_choices_file do |choices_path| args << "-applyChoiceChangesXML" << choices_path if choices_path env = { "LOGNAME" => User.current, "USER" => User.current, "USERNAME" => User.current, } command.run!( "/usr/sbin/installer", sudo: true, sudo_as_root: true, args:, print_stdout: true, env:, ) end end def with_choices_file choices = stanza_options.fetch(:choices, {}) return yield nil if choices.empty? Tempfile.open(["choices", ".xml"]) do |file| file.write Plist::Emit.dump(choices) file.close yield file.path ensure file.unlink end end end end end ```
```python import asyncio import concurrent.futures.thread import functools import time from contextvars import copy_context from .run import FuncThread from .threads import TMP_THREADS, start_worker_thread # reference to named event loop instances EVENT_LOOPS = {} class DaemonAwareThreadPool(concurrent.futures.thread.ThreadPoolExecutor): """ This thread pool executor removes the threads it creates from the global ``_thread_queues`` of ``concurrent.futures.thread``, which joins all created threads at python exit and will block interpreter shutdown if any threads are still running, even if they are daemon threads. Threads created by the thread pool will be daemon threads by default if the thread owning the thread pool is also a deamon thread. """ def _adjust_thread_count(self) -> None: super()._adjust_thread_count() for t in self._threads: if not t.daemon: continue try: del concurrent.futures.thread._threads_queues[t] except KeyError: pass class AdaptiveThreadPool(DaemonAwareThreadPool): """Thread pool executor that maintains a maximum of 'core_size' reusable threads in the core pool, and creates new thread instances as needed (if the core pool is full).""" DEFAULT_CORE_POOL_SIZE = 30 def __init__(self, core_size=None): self.core_size = core_size or self.DEFAULT_CORE_POOL_SIZE super(AdaptiveThreadPool, self).__init__(max_workers=self.core_size) def submit(self, fn, *args, **kwargs): # if idle threads are available, don't spin new threads if self.has_idle_threads(): return super(AdaptiveThreadPool, self).submit(fn, *args, **kwargs) def _run(*tmpargs): return fn(*args, **kwargs) thread = start_worker_thread(_run) return thread.result_future def has_idle_threads(self): if hasattr(self, "_idle_semaphore"): return self._idle_semaphore.acquire(timeout=0) num_threads = len(self._threads) return num_threads < self._max_workers # Thread pool executor for running sync functions in async context. # Note: For certain APIs like DynamoDB, we need 3x threads for each parallel request, # as during request processing the API calls out to the DynamoDB API again (recursively). # (TODO: This could potentially be improved if we move entirely to asyncio functions.) THREAD_POOL = AdaptiveThreadPool() TMP_THREADS.append(THREAD_POOL) class AsyncThread(FuncThread): def __init__(self, async_func_gen=None, loop=None): """Pass a function that receives an event loop instance and a shutdown event, and returns an async function.""" FuncThread.__init__(self, self.run_func, None, name="asyncio-thread") self.async_func_gen = async_func_gen self.loop = loop self.shutdown_event = None def run_func(self, *args): loop = self.loop or ensure_event_loop() self.shutdown_event = asyncio.Event() if self.async_func_gen: self.async_func = async_func = self.async_func_gen(loop, self.shutdown_event) if async_func: loop.run_until_complete(async_func) loop.run_forever() def stop(self, quiet=None): if self.shutdown_event: self.shutdown_event.set() self.shutdown_event = None @classmethod def run_async(cls, func=None, loop=None): thread = cls(func, loop=loop) thread.start() TMP_THREADS.append(thread) return thread async def run_sync(func, *args, thread_pool=None, **kwargs): loop = asyncio.get_running_loop() thread_pool = thread_pool or THREAD_POOL func_wrapped = functools.partial(func, *args, **kwargs) return await loop.run_in_executor(thread_pool, copy_context().run, func_wrapped) def run_coroutine(coroutine, loop=None): """Run an async coroutine in a threadsafe way in the main event loop""" loop = loop or get_main_event_loop() future = asyncio.run_coroutine_threadsafe(coroutine, loop) return future.result() def ensure_event_loop(): """Ensure that an event loop is defined for the currently running thread""" try: return asyncio.get_event_loop() except Exception: loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop def get_main_event_loop(): return get_named_event_loop("_main_") def get_named_event_loop(name): result = EVENT_LOOPS.get(name) if result: return result def async_func_gen(loop, shutdown_event): EVENT_LOOPS[name] = loop AsyncThread.run_async(async_func_gen) time.sleep(1) return EVENT_LOOPS[name] async def receive_from_queue(queue): from localstack.runtime import events def get(): # run in a retry loop (instead of blocking forever) to allow for graceful shutdown while True: try: if events.infra_stopping.is_set(): return return queue.get(timeout=1) except Exception: pass msg = await run_sync(get) return msg ```
```objective-c // -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*- // (c) 2021 Leonardo Romor <leonardo.romor@gmail.com>, // Henner Zeller <h.zeller@acm.org> // // This program is free software; you can redistribute it and/or modify // the Free Software Foundation version 2. // // 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 // // along with this program. If not, see <path_to_url #ifndef OPENSLIDE_SOURCE_H_ #define OPENSLIDE_SOURCE_H_ #include <memory> #include "display-options.h" #include "image-source.h" #include "terminal-canvas.h" namespace timg { // Special case for JPEG decoding, as we can make use of decode+rough_scale // in one go. class OpenSlideSource final : public ImageSource { public: explicit OpenSlideSource(const std::string &filename) : ImageSource(filename) {} static const char *VersionInfo(); bool LoadAndScale(const DisplayOptions &options, int frame_offset, int frame_count) final; void SendFrames(const Duration &duration, int loops, const volatile sig_atomic_t &interrupt_received, const Renderer::WriteFramebufferFun &sink) final; std::string FormatTitle(const std::string &format_string) const final; private: int IndentationIfCentered(const timg::Framebuffer &image) const; DisplayOptions options_; int orig_width_, orig_height_; std::unique_ptr<timg::Framebuffer> image_; }; } // namespace timg #endif // OPENSLIDE_SOURCE_H_ ```
```php <?php /* * This file is part of OAuth 2.0 Laravel. * * (c) Luca Degasperi <packages@lucadegasperi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; /** * This is the create oauth auth codes table migration class. * * @author Luca Degasperi <packages@lucadegasperi.com> */ class CreateOauthAuthCodesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_auth_codes', function (Blueprint $table) { $table->string('id', 40)->primary(); $table->integer('session_id')->unsigned(); $table->string('redirect_uri'); $table->integer('expire_time'); $table->timestamps(); $table->index('session_id'); $table->foreign('session_id') ->references('id')->on('oauth_sessions') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('oauth_auth_codes', function (Blueprint $table) { $table->dropForeign('oauth_auth_codes_session_id_foreign'); }); Schema::drop('oauth_auth_codes'); } } ```
```php <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Zizaco\Entrust\Traits\EntrustUserTrait; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Laracasts\Presenter\PresentableTrait; use Venturecraft\Revisionable\RevisionableTrait; use Overtrue\LaravelFollow\FollowTrait; use App\Jobs\SendActivateMail; use Carbon\Carbon; use Cache; use Nicolaslopezj\Searchable\SearchableTrait; use Cmgmyr\Messenger\Traits\Messagable; class User extends Model implements AuthenticatableContract, AuthorizableContract { use Traits\UserRememberTokenHelper; use Traits\UserSocialiteHelper; use Traits\UserAvatarHelper; use Traits\UserActivityHelper; use Messagable; use PresentableTrait; public $presenter = 'Phphub\Presenters\UserPresenter'; use SearchableTrait; protected $searchable = [ 'columns' => [ 'users.name' => 10, 'users.real_name' => 10, 'users.introduction' => 10, ], ]; public function getAuthIdentifierName() { return 'id'; } // For admin log use RevisionableTrait; protected $keepRevisionOf = [ 'is_banned' ]; use EntrustUserTrait { restore as private restoreEntrust; EntrustUserTrait::can as may; } use SoftDeletes { restore as private restoreSoftDelete; } use FollowTrait; protected $dates = ['deleted_at']; protected $table = 'users'; protected $guarded = ['id', 'is_banned']; public static function boot() { parent::boot(); static::created(function ($user) { $driver = $user['github_id'] ? 'github' : 'wechat'; SiteStatus::newUser($driver); dispatch(new SendActivateMail($user)); }); static::deleted(function ($user) { \Artisan::call('phphub:clear-user-data', ['user_id' => $user->id]); }); } public function scopeIsRole($query, $role) { return $query->whereHas('roles', function ($query) use ($role) { $query->where('name', $role); } ); } public static function byRolesName($name) { $data = Cache::remember('phphub_roles_'.$name, 60, function () use ($name) { return User::isRole($name)->orderBy('last_actived_at', 'desc')->get(); }); return $data; } public function managedBlogs() { return $this->belongsToMany(Blog::class, 'blog_managers'); } /** * For EntrustUserTrait and SoftDeletes conflict */ public function restore() { $this->restoreEntrust(); $this->restoreSoftDelete(); } public function votedTopics() { return $this->morphedByMany(Topic::class, 'votable', 'votes')->withPivot('created_at'); } public function topics() { return $this->hasMany(Topic::class); } public function blogs() { return $this->hasMany(Blog::class); } public function replies() { return $this->hasMany(Reply::class); } public function subscribes() { return $this->belongsToMany(Blog::class, 'blog_subscribers'); } public function attentTopics() { return $this->belongsToMany(Topic::class, 'attentions')->withTimestamps(); } public function notifications() { return $this->hasMany(Notification::class)->recent()->with('topic', 'fromUser')->paginate(20); } public function revisions() { return $this->hasMany(Revision::class); } public function scopeRecent($query) { return $query->orderBy('created_at', 'desc'); } public function getIntroductionAttribute($value) { return str_limit($value, 68); } public function getPersonalWebsiteAttribute($value) { return str_replace(['path_to_url 'path_to_url '', $value); } public function isAttentedTopic(Topic $topic) { return Attention::isUserAttentedTopic($this, $topic); } public function subscribe(Blog $blog) { return $blog->subscribers()->where('user_id', $this->id)->count() > 0; } public function isAuthorOf($model) { return $this->id == $model->user_id; } /** * ---------------------------------------- * UserInterface * ---------------------------------------- */ public function getAuthIdentifier() { return $this->getKey(); } public function getAuthPassword() { return $this->password; } public function recordLastActivedAt() { $now = Carbon::now()->toDateTimeString(); $update_key = config('phphub.actived_time_for_update'); $update_data = Cache::get($update_key); $update_data[$this->id] = $now; Cache::forever($update_key, $update_data); $show_key = config('phphub.actived_time_data'); $show_data = Cache::get($show_key); $show_data[$this->id] = $now; Cache::forever($show_key, $show_data); } } ```
```javascript import { test } from '../../test'; export default test({ get props() { return { foo: 1 }; }, html: '1', async test({ assert, component, target }) { component.foo = 2; assert.htmlEqual(target.innerHTML, '2'); } }); ```
```ruby # frozen_string_literal: true class Mastodon::RackMiddleware def initialize(app) @app = app end def call(env) @app.call(env) ensure clean_up_sockets! end private def clean_up_sockets! clean_up_redis_socket! clean_up_statsd_socket! end def clean_up_redis_socket! RedisConfiguration.pool.checkin if Thread.current[:redis] Thread.current[:redis] = nil end def clean_up_statsd_socket! Thread.current[:statsd_socket]&.close Thread.current[:statsd_socket] = nil end end ```
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package client import ( "bytes" "encoding/json" "net/http" "net/url" "golang.org/x/net/context" ) type Role struct { Role string `json:"role"` Permissions Permissions `json:"permissions"` Grant *Permissions `json:"grant,omitempty"` Revoke *Permissions `json:"revoke,omitempty"` } type Permissions struct { KV rwPermission `json:"kv"` } type rwPermission struct { Read []string `json:"read"` Write []string `json:"write"` } type PermissionType int const ( ReadPermission PermissionType = iota WritePermission ReadWritePermission ) // NewAuthRoleAPI constructs a new AuthRoleAPI that uses HTTP to // interact with etcd's role creation and modification features. func NewAuthRoleAPI(c Client) AuthRoleAPI { return &httpAuthRoleAPI{ client: c, } } type AuthRoleAPI interface { // AddRole adds a role. AddRole(ctx context.Context, role string) error // RemoveRole removes a role. RemoveRole(ctx context.Context, role string) error // GetRole retrieves role details. GetRole(ctx context.Context, role string) (*Role, error) // GrantRoleKV grants a role some permission prefixes for the KV store. GrantRoleKV(ctx context.Context, role string, prefixes []string, permType PermissionType) (*Role, error) // RevokeRoleKV revokes some permission prefixes for a role on the KV store. RevokeRoleKV(ctx context.Context, role string, prefixes []string, permType PermissionType) (*Role, error) // ListRoles lists roles. ListRoles(ctx context.Context) ([]string, error) } type httpAuthRoleAPI struct { client httpClient } type authRoleAPIAction struct { verb string name string role *Role } type authRoleAPIList struct{} func (list *authRoleAPIList) HTTPRequest(ep url.URL) *http.Request { u := v2AuthURL(ep, "roles", "") req, _ := http.NewRequest("GET", u.String(), nil) req.Header.Set("Content-Type", "application/json") return req } func (l *authRoleAPIAction) HTTPRequest(ep url.URL) *http.Request { u := v2AuthURL(ep, "roles", l.name) if l.role == nil { req, _ := http.NewRequest(l.verb, u.String(), nil) return req } b, err := json.Marshal(l.role) if err != nil { panic(err) } body := bytes.NewReader(b) req, _ := http.NewRequest(l.verb, u.String(), body) req.Header.Set("Content-Type", "application/json") return req } func (r *httpAuthRoleAPI) ListRoles(ctx context.Context) ([]string, error) { resp, body, err := r.client.Do(ctx, &authRoleAPIList{}) if err != nil { return nil, err } if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { return nil, err } var roleList struct { Roles []Role `json:"roles"` } if err = json.Unmarshal(body, &roleList); err != nil { return nil, err } ret := make([]string, 0, len(roleList.Roles)) for _, r := range roleList.Roles { ret = append(ret, r.Role) } return ret, nil } func (r *httpAuthRoleAPI) AddRole(ctx context.Context, rolename string) error { role := &Role{ Role: rolename, } return r.addRemoveRole(ctx, &authRoleAPIAction{ verb: "PUT", name: rolename, role: role, }) } func (r *httpAuthRoleAPI) RemoveRole(ctx context.Context, rolename string) error { return r.addRemoveRole(ctx, &authRoleAPIAction{ verb: "DELETE", name: rolename, }) } func (r *httpAuthRoleAPI) addRemoveRole(ctx context.Context, req *authRoleAPIAction) error { resp, body, err := r.client.Do(ctx, req) if err != nil { return err } if err := assertStatusCode(resp.StatusCode, http.StatusOK, http.StatusCreated); err != nil { var sec authError err := json.Unmarshal(body, &sec) if err != nil { return err } return sec } return nil } func (r *httpAuthRoleAPI) GetRole(ctx context.Context, rolename string) (*Role, error) { return r.modRole(ctx, &authRoleAPIAction{ verb: "GET", name: rolename, }) } func buildRWPermission(prefixes []string, permType PermissionType) rwPermission { var out rwPermission switch permType { case ReadPermission: out.Read = prefixes case WritePermission: out.Write = prefixes case ReadWritePermission: out.Read = prefixes out.Write = prefixes } return out } func (r *httpAuthRoleAPI) GrantRoleKV(ctx context.Context, rolename string, prefixes []string, permType PermissionType) (*Role, error) { rwp := buildRWPermission(prefixes, permType) role := &Role{ Role: rolename, Grant: &Permissions{ KV: rwp, }, } return r.modRole(ctx, &authRoleAPIAction{ verb: "PUT", name: rolename, role: role, }) } func (r *httpAuthRoleAPI) RevokeRoleKV(ctx context.Context, rolename string, prefixes []string, permType PermissionType) (*Role, error) { rwp := buildRWPermission(prefixes, permType) role := &Role{ Role: rolename, Revoke: &Permissions{ KV: rwp, }, } return r.modRole(ctx, &authRoleAPIAction{ verb: "PUT", name: rolename, role: role, }) } func (r *httpAuthRoleAPI) modRole(ctx context.Context, req *authRoleAPIAction) (*Role, error) { resp, body, err := r.client.Do(ctx, req) if err != nil { return nil, err } if err = assertStatusCode(resp.StatusCode, http.StatusOK); err != nil { var sec authError err = json.Unmarshal(body, &sec) if err != nil { return nil, err } return nil, sec } var role Role if err = json.Unmarshal(body, &role); err != nil { return nil, err } return &role, nil } ```
Now That's What I Call Rock is a compilation album released on January 22, 2016, by the distributors of the popular Now That's What I Call Music series in the United States. The collection brings together a diverse group of artists from a range of styles such as "EDM textures, summer festival blues-rock chug, arena alternative, post-Tool hard rock, triumphant psych-pop and cosmopolitan retro experiments." Development Despite the popularity of the Now albums, rock compilations have been an area of neglect by record companies. To reach out to a broad audience, the first rock volume of Now features contemporary pop acts with rock roots and takes a "big-tent" approach to the genre. Cliff Chenfeld, co-owner of the Razor & Tie and a consultant for Now That’s What I Call Rock, feels "most music listeners are pretty open" and this release "is a means of introducing some of those bands to that broader audience who I think would embrace it." The compilers of the set wanted to avoid defining what rock music is in 2016, but instead tried to give what people think it is, "as opposed to using a term for rock that might have defined what rock" used to be. Track listing Reception James Christopher Monger of AllMusic notes the "wide range of rock subgenres" represented in this compilation. Chart performance References 2016 compilation albums Rock Rock compilation albums
Galgupha aterrima is a species of ebony bug in the family Thyreocoridae. It is found in North America. References Shield bugs Articles created by Qbugbot Insects described in 1919 Hemiptera of North America
Bronisława Wieniawa-Długoszowska (9 June 1886 – 26 August 1953) was a Polish wartime nurse of Russian Jewish origin. Her father Salomon (Simeon) Kliatchkin (Russian: Зельман Клячкин; 1858–1916) was the owner of the first credit bureau (credit reference agency) in the Russian Empire. Her mother was Helena Kliatchkin (née Bajenov; 1886–1953). She had nine siblings; one died in childhood, three in Joseph Stalin's purges, one survived in Russia and four survived in exile in France. The family's suffering under Stalin is recorded in a film shown on Russian television in 2008, История семьи как эпоха (The history of a family which was a witness to its epoch). In 1903 she graduated from a Gymnasium in Łódź. She studied medicine in Paris before 1914. At this time she was married to her first husband, , a lawyer. Berenson was the defender in the Tsarist courts of Felix Dzerzhinsky, who was to be the founder of the Cheka, the first Soviet secret police agency. At the outbreak of the First World War she volunteered to work as a nurse at the Hotel Continental in Paris, now the Westin Paris - Vendôme. She nursed Pierre Laurent (1892–1935), a young French officer, the son of Charles Laurent, a French senior civil servant. Pierre was sent to join the military mission of General Lavergne in Saint Petersburg, then called Petrograd. Lavergne had succeeded General Henri Niessel as head of the French military mission. There Pierre was responsible for obtaining information about the Russian army. Bronisława, back in Petrograd, helped him. After Vladimir Lenin arrived in his sealed train their priority was to prevent him leading Russia into an armistice with Germany. They were able to obtain telegrams to Lenin appearing to show that he was supported by German funds. They presented this information to the Provisional government headed by Prince Georgy Lvov on 24 June, but no action was taken at that meeting. However, Justice Minister Pereverzev investigated further and was able to obtain a fuller set of 66 telegrams (Lyandres). These proved the existence of an import business from Sweden run by the Bolsheviks, but it was the evidence of contact with known German agents which was damming. The July Days (3 – 7 July) were the Bolshevik's second attempt at a coup. On 4 July Pereverzev shared the information gained from the telegrams with General Peter Polovtsov, commander of the Petrograd garrison, some newspaper editors and other ministers. According to Sean McMeekin, revulsion among the soldiers at the knowledge that Lenin was in contact with the enemy brought them on the side of the provisional government and ended the coup attempt. The next day Pereverzev's men raided the Kschessinskaya mansion where the Bolsheviks were based. Many Bolsheviks were arrested and Lenin fled to Finland. According to McMeekin, recently opened Russian archives contain evidence, from the investigation triggered by the telegrams, that the import business was a front for laundering money being sent by the German government to the Bolsheviks. We can suppose, then, that Pierre and Bronia's activities, helped to postpone the Bolshevik revolution from July to the "October Revolution" some four months later. A year after the October Revolution, in October 1918, Bronisława escaped on a false French passport under the name of "Jeanne-Liliane Lalande". While in Petrograd she had met Bolesław Wieniawa-Długoszowski, a Polish officer. At considerable personal risk to herself she was able to persuade the Cheka to release him from Taganka Prison in Moscow to house arrest at her house. They both escaped to Poland, and he became her second husband. They were married in a Protestant ceremony on 2 October 1919. On the marriage register she used the details, including the name 'Lalande' from the false French passport. They had one daughter, Zuzanna, later Susanna Vernon (11 August 1920 – 3 August 2011). Susanna was the goddaughter of Józef Piłsudski, the main leader of Poland between the wars, who was a friend of her father. In the summer the family lived in the manor house of Bobowa. They famously had good, if distant, relations with the Hasidic Jews of Bobowa (Bobov) and the Bobov Rebbe Ben Zion Halberstam. The rest of the year they lived in their official residence; a hunting lodge in Łazienki Park in the center of Warsaw. When in 1938 General Bolesław Wieniawa-Długoszowski was sent to Rome as Polish ambassador to the government of Benito Mussolini, Bronisława accompanied him. When Italy joined the war with the other Axis powers in 1940 they fled together to New York. In 1942 he committed suicide. She and her daughter were looked after for some weeks by Arthur Szyk, the famous cartoonist and anti-Nazi activist. Tatiana Yacovleff du Plessix Liberman was another friend who, with her husband, Alexander Liberman, helped Zuzanna find work at Vogue magazine and, later, at the United Nations, where she became one of the first simultaneous interpreters. Bronisława returned to Europe after the war and died in Paris in August 1953 of the complications of a gall bladder operation. She is buried in the Montparnasse Cemetery, giving as her maiden name her assumed name "Jeanne-Liliane Lalande", in the Laurent family tomb. As explained in the Russian film mentioned above, after half a century without contact, twenty years after Bronisława's death, the Russian and French descendants of Salomon Kliatchkin were re-united. Bibliography Belonging and Betrayal, The life of Bronisława Wieniawa Długoszowska, Gervase Vernon, Amazon 2013 The Bolshevik's German Gold revisited, Semion Lyandres, The Carl Beck Papers number 1106 1995 The Russian Revolution, a new history, Sean McMeekin, Profile books 2017 Szuflada Generała Wieniawa, edited by Elżbieta Grabska and Marek Pitasz, Państwowy Instytut Wydawniczy, Warsaw 1998. p. 119 Wieniawa poeta, żolnierz, dyplomata, Dworzynski W. Wyd. 1 ed. Warszawa: Wydawnictwa Szkolne i Pedagogiczne; 1993.p. 364 Szabla i koń, Wittlin T. Londyn: Polska Fundacja Kulturalna; 1996. p. 321 Wieniawa - szwolezer na pegezie, Urbanek M. Wroclaw: Wydaw. Dolnośląskie; 1991. p. 261 Księga gości Jana Lechonia, Jan Lechon, ALGO 1999 Pierre Laurent, François Garnier, Paris, July 1998 Vanished Kingdoms, Norman Davies, Allen Lane, London 2011 (p. 473 for the relation between the Bobov Rebbe and Wieniawa) References External links http://www.unmultimedia.org/s/photo/detail/189/0189118.html (photo by Kari Berggrav of Susan Wieniawa as one of the first simultaneous interpreters at the UN, Lake Success 1946) Nurses from the Russian Empire 19th-century Jews from the Russian Empire Russian people of World War II Polish people of World War II Polish nurses Polish women in World War I Women in World War II Female wartime nurses Female nurses in World War I Russian women of World War I 1886 births 1953 deaths
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.rocketmq.common.constant; public class PermName { public static final int INDEX_PERM_PRIORITY = 3; public static final int INDEX_PERM_READ = 2; public static final int INDEX_PERM_WRITE = 1; public static final int INDEX_PERM_INHERIT = 0; public static final int PERM_PRIORITY = 0x1 << INDEX_PERM_PRIORITY; public static final int PERM_READ = 0x1 << INDEX_PERM_READ; public static final int PERM_WRITE = 0x1 << INDEX_PERM_WRITE; public static final int PERM_INHERIT = 0x1 << INDEX_PERM_INHERIT; public static String perm2String(final int perm) { final StringBuilder sb = new StringBuilder("---"); if (isReadable(perm)) { sb.replace(0, 1, "R"); } if (isWriteable(perm)) { sb.replace(1, 2, "W"); } if (isInherited(perm)) { sb.replace(2, 3, "X"); } return sb.toString(); } public static boolean isReadable(final int perm) { return (perm & PERM_READ) == PERM_READ; } public static boolean isWriteable(final int perm) { return (perm & PERM_WRITE) == PERM_WRITE; } public static boolean isInherited(final int perm) { return (perm & PERM_INHERIT) == PERM_INHERIT; } public static boolean isValid(final String perm) { return isValid(Integer.parseInt(perm)); } public static boolean isValid(final int perm) { return perm >= 0 && perm < PERM_PRIORITY; } public static boolean isPriority(final int perm) { return (perm & PERM_PRIORITY) == PERM_PRIORITY; } } ```
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.shardingsphere.sharding.rewrite.token.generator; import org.apache.shardingsphere.infra.binder.context.segment.select.pagination.PaginationContext; import org.apache.shardingsphere.infra.binder.context.statement.dml.InsertStatementContext; import org.apache.shardingsphere.infra.binder.context.statement.dml.SelectStatementContext; import org.apache.shardingsphere.sharding.rewrite.token.generator.impl.ShardingOffsetTokenGenerator; import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.pagination.NumberLiteralPaginationValueSegment; import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.pagination.PaginationValueSegment; import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.pagination.ParameterMarkerPaginationValueSegment; import org.junit.jupiter.api.Test; import java.util.Optional; import static org.hamcrest.CoreMatchers.is; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.RETURNS_DEEP_STUBS; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; class ShardingOffsetTokenGeneratorTest { @Test void assertIsGenerateSQLToken() { InsertStatementContext insertStatementContext = mock(InsertStatementContext.class); ShardingOffsetTokenGenerator shardingOffsetTokenGenerator = new ShardingOffsetTokenGenerator(); assertFalse(shardingOffsetTokenGenerator.isGenerateSQLToken(insertStatementContext)); SelectStatementContext selectStatementContext = mock(SelectStatementContext.class, RETURNS_DEEP_STUBS); when(selectStatementContext.getPaginationContext().getOffsetSegment().isPresent()).thenReturn(Boolean.FALSE); assertFalse(shardingOffsetTokenGenerator.isGenerateSQLToken(selectStatementContext)); when(selectStatementContext.getPaginationContext().getOffsetSegment().isPresent()).thenReturn(Boolean.TRUE); ParameterMarkerPaginationValueSegment parameterMarkerPaginationValueSegment = mock(ParameterMarkerPaginationValueSegment.class); when(selectStatementContext.getPaginationContext().getOffsetSegment().get()).thenReturn(parameterMarkerPaginationValueSegment); assertFalse(shardingOffsetTokenGenerator.isGenerateSQLToken(selectStatementContext)); NumberLiteralPaginationValueSegment numberLiteralPaginationValueSegment = mock(NumberLiteralPaginationValueSegment.class); when(selectStatementContext.getPaginationContext().getOffsetSegment().get()).thenReturn(numberLiteralPaginationValueSegment); assertTrue(shardingOffsetTokenGenerator.isGenerateSQLToken(selectStatementContext)); } @Test void assertGenerateSQLToken() { PaginationValueSegment paginationValueSegment = mock(PaginationValueSegment.class); final int testStartIndex = 1; when(paginationValueSegment.getStartIndex()).thenReturn(testStartIndex); final int testStopIndex = 3; when(paginationValueSegment.getStopIndex()).thenReturn(testStopIndex); PaginationContext paginationContext = mock(PaginationContext.class); when(paginationContext.getOffsetSegment()).thenReturn(Optional.of(paginationValueSegment)); final long testRevisedOffset = 2L; when(paginationContext.getRevisedOffset()).thenReturn(testRevisedOffset); SelectStatementContext selectStatementContext = mock(SelectStatementContext.class); when(selectStatementContext.getPaginationContext()).thenReturn(paginationContext); ShardingOffsetTokenGenerator shardingOffsetTokenGenerator = new ShardingOffsetTokenGenerator(); assertThat(shardingOffsetTokenGenerator.generateSQLToken(selectStatementContext).toString(), is(String.valueOf(testRevisedOffset))); } } ```
Placetas () is a city in the Villa Clara Province in the center of Cuba; before the change in the country's government in 1959 the province was called Las Villas. The town is also known as because of its wild laurel trees. Placetas is also a , one of 13 subdivisions of the Villa Clara Province. Cuba's geographical center, Guaracabulla, is located in this municipality. History Placetas was founded on September 9, 1861 mainly due to the sugar production industry. Nowadays, the main produce of the area is tobacco. The main contribution to its foundation came from Jose Martinez-Fortun y Erles, a Spanish Marques and former colonel in the Spanish Army. The town is located on the Carretera Central road, which cuts through the town. The town's position on this road has allowed it to serve as a stop for many travellers. Placetas has grown considerably over the years, being declared a town in 1881 and a city in 1925. In 1879 it was established as its own municipality. Placetas is also known by the great carnavals which take place in July and Christmas and New Year's Eve. Until the 1977 administrative reform, Placetas was divided into the following barrios: Cabecera (Placetas town proper), Guaracabulla (or Guaracabuya), Hernando, Nazareno, San Andres, Sitio Potrero and Tibisial. Annual celebrations displaying the local pride of each barrio used to take place until the 1990s, when the government stopped them. Geography Placetas lies southwest of its province, next to the borders with the one of Sancti Spíritus. Nearest towns include Zulueta (to the north), Remedios (to the northeast), Cabaiguán and Fomento (to the east), and Santa Clara and Camajuaní (to the west). The springs of Zaza River, that runs from the outskirts of Placets to the sea, are located near the town. The river Zaza is currently an environmental preservation area. The municipality borders with Manicaragua, Santa Clara, Camajuaní, Remedios, Cabaiguán and Fomento. Its territory includes the villages of Báez, Benito Juárez, Carbó Serviá, Falcón, Falero, Guaracabulla, Hermanos Ameijeiras, Manzanares, Máximo, Miller, Nazareno, Oliver and Suazo. Demographics In 2004, the municipality of Placetas had a population of 71,837. With a total area of , it has a population density of . The city proper has a population of 42,000. Economy The area is primarily a sugar producing region, with three "centrales" sugar producing factories. Placetas also has mayor railroad industries that operate from its area. Many Placetenos have emigrated to other countries and there are around 2300 people from Placetas residing in the United States, most of them in Miami. This contributes to the high amount of comunitarios that travel to Placetas every month from the United States. Nowadays the town also houses many aluminum factories and is known around Cuba as the capital of aluminum because of the export business. One of the main streets in Placetas is the Primera del Oeste street, because is the corner where Cuba's central road and the Parque Casallas meet and because it houses the popular Rumbos, one of the many touristic places recently opened. This street also houses the underground commerce and business of the town. It is referred to by Placetenos as La Calle 8 de Placetas, in reference to 8th St. in Miami.All sugar millas have closed down, there is no industry and the supermarkets are empty Architecture The central Catholic church in the town is called San Atanasio de Placetas, after the town's patron saint. As of 1996, it had one library, a central post office, three middle-high schools (13 de Marzo, Rodolfo Leon Perlacia and Julio Antonio Mella), one police station and many recreational areas. Most of the downtown structures were built before the 1959 dictatorship of Fidel Castro, and little of the town has been renovated. Notable people Miguel Díaz-Canel (b. 1960), President of Cuba since 2018. Pepin Garcia (b. 1950), Cuban-American businessman Emilio Mola (1887-1937), Spanish-born general and instigator of the Spanish Civil War La Chelito (1885–1959), Cuban-born Spanish cuplé singer from the early 20th-century Alberto Rojas Espinoza (1868-1912), colonel of Cuban Liberation Army during Cuba's 1895 War of Independence from Spain and major of the municipality in 1901 and 1912. See also Municipalities of Cuba List of cities in Cuba References External links Encyclopædia Britannica. Placetas Cities in Cuba Populated places in Villa Clara Province 1861 establishments in North America Populated places established in 1861 1861 establishments in the Spanish Empire
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * Contributors: * ohun@live.cn () */ package com.mpush.cache.redis.mq; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.mpush.api.MPushContext; import com.mpush.api.spi.common.ExecutorFactory; import com.mpush.api.spi.common.MQClient; import com.mpush.api.spi.common.MQMessageReceiver; import com.mpush.cache.redis.manager.RedisManager; import com.mpush.monitor.service.MonitorService; import com.mpush.monitor.service.ThreadPoolManager; import com.mpush.tools.log.Logs; import java.util.List; import java.util.Map; import java.util.concurrent.Executor; public final class ListenerDispatcher implements MQClient { private final Map<String, List<MQMessageReceiver>> subscribes = Maps.newTreeMap(); private final Subscriber subscriber; private Executor executor; @Override public void init(MPushContext context) { executor = ((MonitorService) context.getMonitor()).getThreadPoolManager().getRedisExecutor(); } public ListenerDispatcher() { this.subscriber = new Subscriber(this); } public void onMessage(String channel, String message) { List<MQMessageReceiver> listeners = subscribes.get(channel); if (listeners == null) { Logs.CACHE.info("cannot find listener:{}, {}", channel, message); return; } for (MQMessageReceiver listener : listeners) { executor.execute(() -> listener.receive(channel, message)); } } public void subscribe(String channel, MQMessageReceiver listener) { subscribes.computeIfAbsent(channel, k -> Lists.newArrayList()).add(listener); RedisManager.I.subscribe(subscriber, channel); } @Override public void publish(String topic, Object message) { RedisManager.I.publish(topic, message); } public Subscriber getSubscriber() { return subscriber; } } ```
Joey Kitson (born ) is a Canadian musician, best known as the lead singer of the Celtic rock band Rawlins Cross. Born in Charlottetown, Prince Edward Island, Kitson is also a stage performer, with notable performances in the Charlottetown Festival productions of Anne of Green Gables: The Musical and Canada Rocks! Kitson first performed in a high school production of Bye Bye Birdie on the Charlottetown Festival stage. Soon after, he and friends formed the Rock Island Blues Band, a popular band touring Prince Edward Island in the 1980s. Through touring and a stint with a regional tourism promotion, he met other members of Rawlins Cross and officially joined the band as their new lead singer in 1993. In 2006, Kitson starred alongside Matt Minglewood & Terry Hatty in the Charlottetown Festival's 2-year run of Canada Rocks at the Confederation Centre of the Arts. In 2007, he also starred in British Invasion at the Confederation Centre. In 2009 he starred in Stan Rogers – A Matter of Heart, a musical review of legendary Maritime folk musician Stan Rogers at the Mackenzie Theatre in Charlottetown. In support of the review, Kitson released STAN, an eclectic reinterpretation of songs written by Rogers on Warner Music's Ground Swell imprint. In 2015, Kitson ran as the Progressive Conservative Party of Prince Edward Island candidate in the provincial riding of Charlottetown-Victoria Park. He was defeated by Liberal incumbent Richard Brown. Joey's son, Julien, is also a musician, releasing his debut album Thirteen at the age of 13. The album earned a Music P.E.I. nomination for Acadian/Francophone Artist of the Year. Julien also performed in productions of Stan Rogers – A Matter of Heart in 2016 at The Guild in Charlottetown, and in 2017 at the Neptune Theatre in Halifax. References External links Joey Kitson Rawlins Cross Canadian rock singers Living people Musicians from Charlottetown 1969 births Progressive Conservative Party of Prince Edward Island politicians 20th-century Canadian male singers 21st-century Canadian male singers
```c++ // Aseprite // // This program is free software; you can redistribute it and/or modify // published by the Free Software Foundation. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "app/app.h" #include "app/commands/command.h" #include "app/commands/params.h" #include "app/context_access.h" #include "app/document_api.h" #include "app/find_widget.h" #include "app/load_widget.h" #include "app/modules/gui.h" #include "app/transaction.h" #include "app/ui/main_window.h" #include "app/ui/status_bar.h" #include "doc/layer.h" #include "doc/sprite.h" #include "ui/ui.h" #include <cstdio> #include <cstring> namespace app { using namespace ui; class NewLayerCommand : public Command { public: NewLayerCommand(); Command* clone() const override { return new NewLayerCommand(*this); } protected: void onLoadParams(const Params& params) override; bool onEnabled(Context* context) override; void onExecute(Context* context) override; private: bool m_ask; bool m_top; std::string m_name; }; static std::string get_unique_layer_name(Sprite* sprite); static int get_max_layer_num(Layer* layer); NewLayerCommand::NewLayerCommand() : Command("NewLayer", "New Layer", CmdRecordableFlag) { m_ask = false; m_top = false; m_name = ""; } void NewLayerCommand::onLoadParams(const Params& params) { m_ask = (params.get("ask") == "true"); m_top = (params.get("top") == "true"); m_name = params.get("name"); } bool NewLayerCommand::onEnabled(Context* context) { return context->checkFlags(ContextFlags::ActiveDocumentIsWritable | ContextFlags::HasActiveSprite); } void NewLayerCommand::onExecute(Context* context) { ContextWriter writer(context); Document* document(writer.document()); Sprite* sprite(writer.sprite()); std::string name; // Default name (m_name is a name specified in params) if (!m_name.empty()) name = m_name; else name = get_unique_layer_name(sprite); // If params specify to ask the user about the name... if (m_ask) { // We open the window to ask the name std::unique_ptr<Window> window(app::load_widget<Window>("new_layer.xml", "new_layer")); Widget* name_widget = app::find_widget<Widget>(window.get(), "name"); name_widget->setText(name.c_str()); name_widget->setMinSize(gfx::Size(128, 0)); window->openWindowInForeground(); if (window->closer() != window->findChild("ok")) return; name = window->findChild("name")->text(); } Layer* activeLayer = writer.layer(); Layer* layer; { Transaction transaction(writer.context(), "New Layer"); DocumentApi api = document->getApi(transaction); layer = api.newLayer(sprite, name); // If "top" parameter is false, create the layer above the active // one. if (activeLayer && !m_top) api.restackLayerAfter(layer, activeLayer); transaction.commit(); } update_screen_for_document(document); StatusBar::instance()->invalidate(); StatusBar::instance()->showTip(1000, "Layer `%s' created", name.c_str()); App::instance()->mainWindow()->popTimeline(); } static std::string get_unique_layer_name(Sprite* sprite) { char buf[1024]; std::snprintf(buf, sizeof(buf), "Layer %d", get_max_layer_num(sprite->folder())+1); return buf; } static int get_max_layer_num(Layer* layer) { int max = 0; if (std::strncmp(layer->name().c_str(), "Layer ", 6) == 0) max = std::strtol(layer->name().c_str()+6, NULL, 10); if (layer->isFolder()) { LayerIterator it = static_cast<LayerFolder*>(layer)->getLayerBegin(); LayerIterator end = static_cast<LayerFolder*>(layer)->getLayerEnd(); for (; it != end; ++it) { int tmp = get_max_layer_num(*it); max = MAX(tmp, max); } } return max; } Command* CommandFactory::createNewLayerCommand() { return new NewLayerCommand; } } // namespace app ```
```xml <?xml version="1.0" encoding="utf-8"?> <animated-vector xmlns:android="path_to_url" xmlns:aapt="path_to_url" android:drawable="@drawable/vd_pathmorph_digits_four"> <target android:name="iconPath"> <aapt:attr name="android:animation"> <objectAnimator android:propertyName="pathData" android:valueFrom="@string/path_four" android:valueTo="@string/path_three" android:valueType="pathType"/> </aapt:attr> </target> </animated-vector> ```
Freedom Akinmoladun (born February 11, 1996) is an American football defensive end for the St. Louis BattleHawks of the XFL. He was signed by the New York Giants as an undrafted free agent in 2019 following his college football career with the Nebraska Cornhuskers. Professional career New York Giants Akinmoladun signed with the New York Giants as an undrafted free agent following the 2019 NFL Draft on May 14, 2019. He was waived during final roster cuts on August 31, 2019, and signed to the team's practice squad the next day. He was released on November 12, 2019. Cincinnati Bengals Akinmoladun signed to the Cincinnati Bengals' practice squad on November 19, 2019. He was promoted to the active roster on December 14, 2019. Akinmoladun was waived during final roster cuts on September 5, 2020, and signed to the team's practice squad the next day. He was elevated to the team's active roster on September 17 for the team's week 2 game against the Cleveland Browns and reverted to the practice squad the next day. He was elevated again to the team's active roster on October 3 for the week 4 game against the Jacksonville Jaguars, and reverted to the practice squad after the game. He was placed on the practice squad/COVID-19 list by the team on November 18, 2020, and restored to the practice squad on December 2. He signed a reserve/future contract on January 4, 2021. He was waived on August 22, 2021. Tennessee Titans On August 24, 2021, Akinmoladun was claimed off waivers by the Tennessee Titans. He was waived on August 29, 2021. New York Jets On December 21, 2021, Akinmoladun was signed to the New York Jets practice squad. Philadelphia Stars Akinmoladun was selected with the sixth pick of the second round of the 2022 USFL draft by the Philadelphia Stars. St. Louis BattleHawks The St. Louis BattleHawks selected Akinmoladun in the first round of the 2023 XFL Supplemental Draft on January 1, 2023. Personal life Freedom's older brother, Olu'Kayode Akinmoladun, played college football at Nebraska–Kearney before going on to play professionally for various indoor football teams, including the Green Bay Blizzard, Texas Revolution, and Omaha Beef; additionally, Freedom's younger brother, Justice Akinmoladun, was playing college football at Washburn as of 2022. References External links Cincinnati Bengals bio 1996 births Living people People from Grandview, Missouri Players of American football from Missouri Sportspeople from the Kansas City metropolitan area American football defensive tackles Nebraska Cornhuskers football players New York Giants players Cincinnati Bengals players Tennessee Titans players New York Jets players Philadelphia Stars (2022) players St. Louis BattleHawks players
Contra El Viento (en: "Against the Wind") is the seventh track from WarCry album ¿Dónde Está La Luz?, and was also released as a music video created after a montage of scenes from a live concert given by the band. It is also featured on live album Directo A La Luz on both DVD and CD versions. Meaning The lyrics were written entirely by Víctor García, who explained them on the band's website as follows:I'm sure you all have seen pictures of children in a hospital with their heads shaved, suffering of various types of cancer, with that sad look but at the same time sweet, which tell us that rather than sick, they are just children. There are many other images that show adverse environments in which a human being tries to survive, many cases in which the calculation of possibilities is adverse, but many of them the human ended up victorious. This story talks about a terminal patient who notices that his time is about to come, and still grasps desperately to his life. It's common to hear expressions like: "If I have an accident and end up blind, I prefer to die", or "If I lose a leg I prefer to die"... Dying, is like total surrender. There might be a life after death, but one thing is totally clear, it won't be the same. The human being is a viscous substance that exists in our heads, everything else is replaceable and complementary. The loss of an organ, vision, or hearing is not a loss of identity, also, your family wouldn't leave you just because you're blind, or anything else, their support and affection will always be present. Imagine you the protagonist of this story, think of any way of survival, think that every second is vital, and that life is a disease with constant pain and thousands of barriers to whom you need to face. Escaping is not allowed, but only resistance, struggle ,and fights to solve problems. At the end of our years death will win, but no one can take away the pleasure of having fought every single day of our lives... against the wind. Personnel Víctor García - vocals Pablo García - guitars Fernando Mon - guitars Roberto García - bass Manuel Ramil - keyboards Alberto Ardines - drums External links WarCry's Official website Official MySpace Contra El Viento at YouTube Notes WarCry (band) songs 2005 songs
The Oklahoma Sheriffs' Association (OSA) is a non-profit professional association of the 77 elected County Sheriffs in Oklahoma. OSA represents the sheriffs to state officials and works to coordinate policies between the sheriffs through training and education and by providing technical and informational support. Objectives According to the OSA website, the objectives of the OSA are: Provide training and education information in the fields of law enforcement, crime prevention and detection, jail management, public safety and civil process to all Oklahoma Sheriffs. Support the development of laws and policies which focus on the primary responsibility of government - the public safety of its citizens. Provide information and technical assistance in support to the Sheriffs of Oklahoma to assist them in providing effective and quality law enforcement services to the citizens of Oklahoma. Encourage the involvement of each Sheriff to work towards promoting professionalism and high standards in county law enforcement. Promote positive interaction among all criminal justice agencies and associations in an effort to increase the effectiveness of law enforcement services to the citizens of Oklahoma and for the betterment of the law enforcement profession. Provide and objective analysis of planned activities for achieving targeted objectives and assuring proper expenditure of funding. Maintain and enhance the Office of the Sheriff in the State of Oklahoma. Executive Board The Executive Board is the governing body of the OSA. The Board is assisted in managing the OSA by an Executive Director and a Deputy Director, currently Ken McNair and Ray McNair respectively. The current Board members are: Sheriff Tim Turner of Haskell County, President of the OSA Sheriff John Whetsel of Oklahoma County, 1st Vice President of the OSA Sheriff Lewis Collins of Choctaw County, 2nd Vice President of the OSA Sheriff Frank Cantey of Mayes County, 3rd Vice President of the OSA Sheriff Jimmie Bruner of Stephens County, Secretary and Treasurer of the OSA Sheriff DeWayne Beggs of Cleveland County Sheriff Scott Jay of Beckham County Sheriff Bill Winchester of Garfield County Sheriff Don Hewett of McClain County Sheriff Joe Craig of Seminole County Sheriff Jerry Prather of Rodgers County Sheriff Gary McCool of Atoka County Undersheriff Brian Edwards of Tulsa County Standing Committees The Jail Committee reviews training needs, existing laws and administrative rules pertaining to the operation of county jails. Committee also makes recommendations on training and amendments to existing rules or laws as appropriate. The Legislative Committee recommends creation and or amendments of laws and administrative rules affecting the operations of the office of Sheriff and forwards those recommendations to the Board of Directors for consideration. The Membership Committee encourages members of their respective staff, all sworn law enforcement personnel, the business community, and citizens who support law enforcement to join the Association. The Budget Oversight Committee reviews the annual budget and submits it to the Board of Directors for approval. The committee reviews the monthly expenditures by ensuring that all monies received are recorded and deposited in a timely manner. The committee also reviews the annual audit and makes recommendations to the Board of Directors. The Historical Committee is responsible for receives memorabilia for presentation to the Association. The Association maintains the memorabilia until such time that it is deposited into the future Oklahoma Sheriffs Association Museum. The Chaplains Committee will be composed of as many ministers of recognized faiths as necessary to offer or make available spiritual guidance to the members of the Association, law enforcement and communities of the State. The Bylaws Committee is responsible for an annual review of the Oklahoma Sheriffs Association Bylaws. The committee makes any necessary changes and submit to the OSA Board for approval. The Training Committee is composed of one Sheriff from each of the five regions to assist with the selection, location and quantity of training made available to the sheriffs office throughout the year including at the annual conference. External links OSA official website Sheriff
```javascript Defining Tasks Deleting Files and Folders Only Passing Through Changed Files Server with Live-Reloading Sharing Streams with Stream Factories ```
Jing-Sheng Jeannette Song () is a management scientist specializing in operations management and supply chain management. She is the R. David Thomas Professor of Business Administration and Professor of Operations Management in the Fuqua School of Business of Duke University. Education and career Song earned a bachelor's degree in mathematics from Beijing Normal University in 1982, and a master's degree in operations research from the Institute of Applied Mathematics of the Chinese Academy of Sciences in 1984. After continuing to work at the Institute of Applied Mathematics until 1986, she went to Columbia University for doctoral study, and completed her Ph.D. in management science at Columbia Business School in 1991. She joined the Graduate School of Management at the University of California, Irvine in 1991. She took a leave from UC Irvine from 1996 to 1998 to become an assistant professor of industrial engineering and operations research at Columbia University, but returned to Irvine with tenure. In 2003 she moved to Duke University as the R. David Thomas Professor. In 2018 Duke University named her as a distinguished professor. Song was president of the Institute for Operations Research and the Management Sciences Manufacturing and Service Operations Management Society (INFORMS MSOM) for 2009–2010. Recognition Song was elected to the 2017 class of Fellows of the Institute for Operations Research and the Management Sciences (INFORMS) and separately, in the same year, as a fellow of the INFORMS Manufacturing and Service Operations Management Society. The Chinese Ministry of Education named Song as a Chang Jiang Chaired Professor in 2009. In 2015 she was a winner of the Chinese Thousand Talents Program. References External links Home page Year of birth missing (living people) Living people American business theorists American women academics Chinese business theorists Chinese women academics Management scientists Beijing Normal University alumni Columbia Business School alumni Duke University faculty Fellows of the Institute for Operations Research and the Management Sciences 21st-century American women
```smalltalk /**************************************************************************** * * path_to_url * path_to_url * path_to_url ****************************************************************************/ using System; using UnityEngine; namespace QFramework { #if UNITY_EDITOR [ClassAPI("00.FluentAPI.Unity", "UnityEngine.GameObject", 1)] [APIDescriptionCN(" UnityEngine.GameObject ")] [APIDescriptionEN("The chain extension provided by UnityEngine.Object.")] [APIExampleCode(@" var gameObject = new GameObject(); var transform = gameObject.transform; var selfScript = gameObject.AddComponent<MonoBehaviour>(); var boxCollider = gameObject.AddComponent<BoxCollider>(); // gameObject.Show(); // gameObject.SetActive(true) selfScript.Show(); // this.gameObject.SetActive(true) boxCollider.Show(); // boxCollider.gameObject.SetActive(true) gameObject.transform.Show(); // transform.gameObject.SetActive(true) // gameObject.Hide(); // gameObject.SetActive(false) selfScript.Hide(); // this.gameObject.SetActive(false) boxCollider.Hide(); // boxCollider.gameObject.SetActive(false) transform.Hide(); // transform.gameObject.SetActive(false) // selfScript.DestroyGameObj(); boxCollider.DestroyGameObj(); ]transform.DestroyGameObj(); // selfScript.DestroyGameObjGracefully(); boxCollider.DestroyGameObjGracefully(); transform.DestroyGameObjGracefully(); // selfScript.DestroyGameObjAfterDelay(1.0f); boxCollider.DestroyGameObjAfterDelay(1.0f); transform.DestroyGameObjAfterDelay(1.0f); // selfScript.DestroyGameObjAfterDelayGracefully(1.0f); boxCollider.DestroyGameObjAfterDelayGracefully(1.0f); transform.DestroyGameObjAfterDelayGracefully(1.0f); // gameObject.Layer(0); selfScript.Layer(0); boxCollider.Layer(0); transform.Layer(0); // gameObject.Layer(""Default""); selfScript.Layer(""Default""); boxCollider.Layer(""Default""); transform.Layer(""Default""); ")] #endif public static class UnityEngineGameObjectExtension { #if UNITY_EDITOR // v1 No.48 [MethodAPI] [APIDescriptionCN("gameObject.SetActive(true)")] [APIDescriptionEN("gameObject.SetActive(true)")] [APIExampleCode(@" new GameObject().Show(); ")] #endif public static GameObject Show(this GameObject selfObj) { selfObj.SetActive(true); return selfObj; } #if UNITY_EDITOR // v1 No.49 [MethodAPI] [APIDescriptionCN("script.gameObject.SetActive(true)")] [APIDescriptionEN("script.gameObject.SetActive(true)")] [APIExampleCode(@" GetComponent<MyScript>().Show(); ")] #endif public static T Show<T>(this T selfComponent) where T : Component { selfComponent.gameObject.Show(); return selfComponent; } #if UNITY_EDITOR // v1 No.50 [MethodAPI] [APIDescriptionCN("gameObject.SetActive(false)")] [APIDescriptionEN("gameObject.SetActive(false)")] [APIExampleCode(@" gameObject.Hide(); ")] #endif public static GameObject Hide(this GameObject selfObj) { selfObj.SetActive(false); return selfObj; } #if UNITY_EDITOR // v1 No.51 [MethodAPI] [APIDescriptionCN("myScript.gameObject.SetActive(false)")] [APIDescriptionEN("myScript.gameObject.SetActive(false)")] [APIExampleCode(@" GetComponent<MyScript>().Hide(); ")] #endif public static T Hide<T>(this T selfComponent) where T : Component { selfComponent.gameObject.Hide(); return selfComponent; } #if UNITY_EDITOR // v1 No.52 [MethodAPI] [APIDescriptionCN("Destroy(myScript.gameObject)")] [APIDescriptionEN("Destroy(myScript.gameObject)")] [APIExampleCode(@" myScript.DestroyGameObj(); ")] #endif public static void DestroyGameObj<T>(this T selfBehaviour) where T : Component { selfBehaviour.gameObject.DestroySelf(); } #if UNITY_EDITOR // v1 No.53 [MethodAPI] [APIDescriptionCN("if (myScript) Destroy(myScript.gameObject)")] [APIDescriptionEN("if (myScript) Destroy(myScript.gameObject)")] [APIExampleCode(@" myScript.DestroyGameObjGracefully(); ")] #endif public static void DestroyGameObjGracefully<T>(this T selfBehaviour) where T : Component { if (selfBehaviour && selfBehaviour.gameObject) { selfBehaviour.gameObject.DestroySelfGracefully(); } } #if UNITY_EDITOR // v1 No.54 [MethodAPI] [APIDescriptionCN("Object.Destroy(myScript.gameObject,delaySeconds)")] [APIDescriptionEN("Object.Destroy(myScript.gameObject,delaySeconds)")] [APIExampleCode(@" myScript.DestroyGameObjAfterDelay(5); ")] #endif public static T DestroyGameObjAfterDelay<T>(this T selfBehaviour, float delay) where T : Component { selfBehaviour.gameObject.DestroySelfAfterDelay(delay); return selfBehaviour; } #if UNITY_EDITOR // v1 No.55 [MethodAPI] [APIDescriptionCN("if (myScript && myScript.gameObject) Object.Destroy(myScript.gameObject,delaySeconds)")] [APIDescriptionEN("if (myScript && myScript.gameObject) Object.Destroy(myScript.gameObject,delaySeconds)")] [APIExampleCode(@" myScript.DestroyGameObjAfterDelayGracefully(5); ")] #endif public static T DestroyGameObjAfterDelayGracefully<T>(this T selfBehaviour, float delay) where T : Component { if (selfBehaviour && selfBehaviour.gameObject) { selfBehaviour.gameObject.DestroySelfAfterDelay(delay); } return selfBehaviour; } #if UNITY_EDITOR // v1 No.56 [MethodAPI] [APIDescriptionCN("gameObject.layer = layer")] [APIDescriptionEN("gameObject.layer = layer")] [APIExampleCode(@" new GameObject().Layer(0); ")] #endif public static GameObject Layer(this GameObject selfObj, int layer) { selfObj.layer = layer; return selfObj; } #if UNITY_EDITOR // v1 No.57 [MethodAPI] [APIDescriptionCN("component.gameObject.layer = layer")] [APIDescriptionEN("component.gameObject.layer = layer")] [APIExampleCode(@" rigidbody2D.Layer(0); ")] #endif public static T Layer<T>(this T selfComponent, int layer) where T : Component { selfComponent.gameObject.layer = layer; return selfComponent; } #if UNITY_EDITOR // v1 No.58 [MethodAPI] [APIDescriptionCN("gameObj.layer = LayerMask.NameToLayer(layerName)")] [APIDescriptionEN("gameObj.layer = LayerMask.NameToLayer(layerName)")] [APIExampleCode(@" new GameObject().Layer(""Default""); ")] #endif public static GameObject Layer(this GameObject selfObj, string layerName) { selfObj.layer = LayerMask.NameToLayer(layerName); return selfObj; } #if UNITY_EDITOR // v1 No.59 [MethodAPI] [APIDescriptionCN("component.gameObject.layer = LayerMask.NameToLayer(layerName)")] [APIDescriptionEN("component.gameObject.layer = LayerMask.NameToLayer(layerName)")] [APIExampleCode(@" spriteRenderer.Layer(""Default""); ")] #endif public static T Layer<T>(this T selfComponent, string layerName) where T : Component { selfComponent.gameObject.layer = LayerMask.NameToLayer(layerName); return selfComponent; } #if UNITY_EDITOR // v1 No.60 [MethodAPI] [APIDescriptionCN("layerMask gameObj ")] [APIDescriptionEN("Whether the layer in layerMask contains the same layer as gameObj")] [APIExampleCode(@" gameObj.IsInLayerMask(layerMask); ")] #endif public static bool IsInLayerMask(this GameObject selfObj, LayerMask layerMask) { return LayerMaskUtility.IsInLayerMask(selfObj, layerMask); } #if UNITY_EDITOR // v1 No.61 [MethodAPI] [APIDescriptionCN("layerMask component.gameObject ")] [APIDescriptionEN("Whether the layer in layerMask contains the same layer as component.gameObject")] [APIExampleCode(@" spriteRenderer.IsInLayerMask(layerMask); ")] #endif public static bool IsInLayerMask<T>(this T selfComponent, LayerMask layerMask) where T : Component { return LayerMaskUtility.IsInLayerMask(selfComponent.gameObject, layerMask); } #if UNITY_EDITOR // v1 No.62 [MethodAPI] [APIDescriptionCN("")] [APIDescriptionEN("Get component, add and return if not")] [APIExampleCode(@" gameObj.GetOrAddComponent<SpriteRenderer>(); ")] #endif public static T GetOrAddComponent<T>(this GameObject self) where T : Component { var comp = self.gameObject.GetComponent<T>(); return comp ? comp : self.gameObject.AddComponent<T>(); } #if UNITY_EDITOR // v1 No.63 [MethodAPI] [APIDescriptionCN("")] [APIDescriptionEN("Get component, add and return if not")] [APIExampleCode(@" component.GetOrAddComponent<SpriteRenderer>(); ")] #endif public static T GetOrAddComponent<T>(this Component component) where T : Component { return component.gameObject.GetOrAddComponent<T>(); } #if UNITY_EDITOR // v1 No.64 [MethodAPI] [APIDescriptionCN("")] [APIDescriptionEN("Get component, add and return if not")] [APIExampleCode(@" gameObj.GetOrAddComponent(typeof(SpriteRenderer)); ")] #endif public static Component GetOrAddComponent(this GameObject self, Type type) { var component = self.gameObject.GetComponent(type); return component ? component : self.gameObject.AddComponent(type); } } public static class LayerMaskUtility { public static bool IsInLayerMask(int layer, LayerMask layerMask) { var objLayerMask = 1 << layer; return (layerMask.value & objLayerMask) == objLayerMask; } public static bool IsInLayerMask(GameObject gameObj, LayerMask layerMask) { // LayerMask var objLayerMask = 1 << gameObj.layer; return (layerMask.value & objLayerMask) == objLayerMask; } } } ```
Ancillista is a genus of sea snails, marine gastropod mollusks in the family Ancillariidae. Species Species within the genus Ancillista include: Ancillista albicans Lee & Wu, 1997 Ancillista aureocallosa Kilburn & Jenner, 1977 Ancillista cingulata (G.B. Sowerby I, 1830) Ancillista depontesi Kilburn, 1998 Ancillista fernandesi Kilburn & Jenner, 1977 Ancillista hasta (von Martens, 1902) Ancillista muscae (Pilsbry, 1926) Ancillista ngampitchae Gra-Tes, 2002 Ancillista rosadoi Bozetti & Terzer, 2004 Ancillista velesiana Iredale, 1936 References External links Ancillariidae
```javascript import { MAX_CHARS_API } from '@proton/shared/lib/calendar/constants'; import { getFutureRecurrenceUID } from './createFutureRecurrence'; describe('create future recurrence', () => { it('should append a recurrence offset for short uids without previous offset', () => { expect( getFutureRecurrenceUID( '6pG/5UGJGWB9O88ykIOCYx75cjUb@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false ) ).toBe('6pG/5UGJGWB9O88ykIOCYx75cjUb_R20000101T010101@proton.me'); expect(getFutureRecurrenceUID('9O88ykIOCYx75cjUb', new Date(Date.UTC(1990, 8, 13, 13, 0, 15)), false)).toBe( '9O88ykIOCYx75cjUb_R19900813T130015' ); expect(getFutureRecurrenceUID('9O@8@8yk@google.com', new Date(Date.UTC(2000, 1, 1, 0, 0, 0)), true)).toBe( '9O@8@8yk_R20000101@google.com' ); }); it('should append a recurrence offset for long uids without previous offset', () => { const chars180 = your_sha256_hashyour_sha256_hash13tenchars14tenchars15tenchars16tenchars17tenchars18'; const domain = '@proton.me'; const expectedOffsetPartday = '_R20000101T010101'; const expectedOffsetAllday = '_R20000101'; expect(getFutureRecurrenceUID(`${chars180}${domain}`, new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false)).toBe( `${chars180.slice( chars180.length + expectedOffsetPartday.length + domain.length - MAX_CHARS_API.UID )}${expectedOffsetPartday}${domain}` ); expect(getFutureRecurrenceUID(`${chars180}${domain}`, new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), true)).toBe( `${chars180.slice( chars180.length + expectedOffsetAllday.length + domain.length - MAX_CHARS_API.UID )}${expectedOffsetAllday}${domain}` ); }); it('should replace recurrence offset(s) for short uids with previous offsets', () => { // part-day -> part-day; single offset expect( getFutureRecurrenceUID( '6pG/5UGJGWB9O88ykIOCYx75cjUb_R22220202T020202@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false ) ).toBe('6pG/5UGJGWB9O88ykIOCYx75cjUb_R20000101T010101@proton.me'); // part-day -> all-day; single offset expect( getFutureRecurrenceUID( '6pG/5UGJGWB9O88ykIOCYx75cjUb_R22220202T020202@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), true ) ).toBe('6pG/5UGJGWB9O88ykIOCYx75cjUb_R20000101@proton.me'); // all-day -> all-day; single offset expect( getFutureRecurrenceUID( '6pG/5UGJGWB9O88ykIOCYx75cjUb_R22220202@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), true ) ).toBe('6pG/5UGJGWB9O88ykIOCYx75cjUb_R20000101@proton.me'); // all-day -> part-day; single offset expect( getFutureRecurrenceUID( '6pG/5UGJGWB9O88ykIOCYx75cjUb_R22220202@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false ) ).toBe('6pG/5UGJGWB9O88ykIOCYx75cjUb_R20000101T010101@proton.me'); // multiple part-day offsets expect( getFutureRecurrenceUID( '9O88ykIOCYx75cjUb_R22220202T020202_R33330303T030303', new Date(Date.UTC(1990, 8, 13, 13, 0, 15)), false ) ).toBe('9O88ykIOCYx75cjUb_R19900813T130015'); // multiple all-day offsets expect( getFutureRecurrenceUID( '9O88ykIOCYx75cjUb_R22220202_R33330303', new Date(Date.UTC(1990, 8, 13, 13, 0, 15)), true ) ).toBe('9O88ykIOCYx75cjUb_R19900813'); // multiple mixed offsets expect( getFutureRecurrenceUID( '9O@8@8yk_R22220202T020202_R33330303@google.com', new Date(Date.UTC(2000, 1, 1, 0, 0, 0)), false ) ).toBe('9O@8@8yk_R20000101T000000@google.com'); expect( getFutureRecurrenceUID( '9O@8@8yk_R22220202T020202_R33330303_R44440404T040404@google.com', new Date(Date.UTC(2000, 1, 1, 0, 0, 0)), true ) ).toBe('9O@8@8yk_R20000101@google.com'); expect( getFutureRecurrenceUID( '9O@8@8yk_R11110101_R22220202T020202_R33330303_R44440404T040404@google.com', new Date(Date.UTC(2000, 1, 1, 0, 0, 0)), false ) ).toBe('9O@8@8yk_R20000101T000000@google.com'); // multiple badly mixed offsets expect( getFutureRecurrenceUID( '9O_R44440404T040404@8@8yk_R22220202_R33330303T030303@google.com', new Date(Date.UTC(2000, 1, 1, 0, 0, 0)) ) ).toBe('9O_R44440404T040404@8@8yk_R20000101T000000@google.com'); }); it('should replace recurrence offset(s) for long uids with previous offset', () => { const chars180 = your_sha256_hashyour_sha256_hash13tenchars14tenchars15tenchars16tenchars17tenchars18'; const domain = '@proton.me'; const expectedOffsetPartday = '_R20000101T010101'; const expectedOffsetAllday = '_R20000101'; expect( getFutureRecurrenceUID( `${chars180}_R22220202T020202_R33330303T030303${domain}`, new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false ) ).toBe( `${chars180.slice( chars180.length + expectedOffsetPartday.length + domain.length - MAX_CHARS_API.UID )}${expectedOffsetPartday}${domain}` ); expect( getFutureRecurrenceUID( `${chars180}_R22220202T020202_R33330303T030303${domain}`, new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), true ) ).toBe( `${chars180.slice( chars180.length + expectedOffsetAllday.length + domain.length - MAX_CHARS_API.UID )}${expectedOffsetAllday}${domain}` ); // real-life examples expect( getFutureRecurrenceUID( your_sha256_hashyour_sha256_hash00_R20210905T000000_R20210906T000000_R20210907T000000@proton.me', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), false ) ).toBe('pEZO1MmPI87KEexIjCGcHQVz4yP8_R20000101T010101@proton.me'); expect( getFutureRecurrenceUID( your_sha256_hash000000_R20200623T000000_R20200624T000000_R20200625T000000@google.com', new Date(Date.UTC(2000, 1, 1, 1, 1, 1)), true ) ).toBe('07e673fo4slrlb4tvaadrh0bjv_R20000101@google.com'); }); }); ```
```prolog # !!!!!!! DO NOT EDIT THIS FILE !!!!!!! # This file is machine-generated by lib/unicore/mktables from the Unicode # database, Version 15.0.0. Any changes made here will be lost! # !!!!!!! INTERNAL PERL USE ONLY !!!!!!! # This file is for internal use by core Perl only. The format and even the # name or existence of this file are subject to change without notice. Don't # use it directly. Use Unicode::UCD to access the Unicode character data # base. return <<'END'; V512 160 161 168 169 170 171 175 176 178 182 184 187 188 191 306 308 319 321 383 384 452 461 497 500 688 697 728 734 736 741 832 834 835 837 884 885 890 891 894 895 900 902 903 904 976 983 1008 1011 1012 1014 1017 1018 1415 1416 1653 1657 2392 2400 2524 2526 2527 2528 2611 2612 2614 2615 2649 2652 2654 2655 2908 2910 3635 3636 3763 3764 3804 3806 3852 3853 3907 3908 3917 3918 3922 3923 3927 3928 3932 3933 3945 3946 3955 3956 3957 3959 3960 3961 3969 3970 3987 3988 3997 3998 4002 4003 4007 4008 4012 4013 4025 4026 4348 4349 7468 7471 7472 7483 7484 7502 7503 7531 7544 7545 7579 7616 7834 7836 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8123 8124 8125 8130 8137 8138 8139 8140 8141 8144 8147 8148 8155 8156 8157 8160 8163 8164 8171 8172 8173 8176 8185 8186 8187 8188 8189 8191 8192 8203 8209 8210 8215 8216 8228 8231 8239 8240 8243 8245 8246 8248 8252 8253 8254 8255 8263 8266 8279 8280 8287 8288 8304 8306 8308 8335 8336 8349 8360 8361 8448 8452 8453 8456 8457 8468 8469 8471 8473 8478 8480 8483 8484 8485 8486 8487 8488 8489 8490 8494 8495 8498 8499 8506 8507 8513 8517 8522 8528 8576 8585 8586 8748 8750 8751 8753 9312 9451 10764 10765 10868 10871 10972 10973 11388 11390 11631 11632 11935 11936 12019 12020 12032 12246 12288 12289 12342 12343 12344 12347 12443 12445 12447 12448 12543 12544 12593 12644 12645 12687 12690 12704 12800 12831 12832 12872 12880 12927 12928 13312 42652 42654 42864 42865 42994 42997 43000 43002 43868 43872 43881 43882 63744 64014 64016 64017 64018 64019 64021 64031 64032 64033 64034 64035 64037 64039 64042 64110 64112 64218 64256 64263 64275 64280 64285 64286 64287 64311 64312 64317 64318 64319 64320 64322 64323 64325 64326 64434 64467 64830 64848 64912 64914 64968 65008 65021 65040 65050 65072 65093 65095 65107 65108 65127 65128 65132 65136 65139 65140 65141 65142 65277 65281 65440 65441 65471 65474 65480 65482 65488 65490 65496 65498 65501 65504 65511 65512 65519 67457 67462 67463 67505 67506 67515 119134 119141 119227 119233 119808 119893 119894 119965 119966 119968 119970 119971 119973 119975 119977 119981 119982 119994 119995 119996 119997 120004 120005 120070 120071 120075 120077 120085 120086 120093 120094 120122 120123 120127 120128 120133 120134 120135 120138 120145 120146 120486 120488 120780 120782 120832 122928 122990 126464 126468 126469 126496 126497 126499 126500 126501 126503 126504 126505 126515 126516 126520 126521 126522 126523 126524 126530 126531 126535 126536 126537 126538 126539 126540 126541 126544 126545 126547 126548 126549 126551 126552 126553 126554 126555 126556 126557 126558 126559 126560 126561 126563 126564 126565 126567 126571 126572 126579 126580 126584 126585 126589 126590 126591 126592 126602 126603 126620 126625 126628 126629 126634 126635 126652 127232 127243 127248 127279 127280 127312 127338 127341 127376 127377 127488 127491 127504 127548 127552 127561 127568 127570 130032 130042 194560 195102 END ```
Vasko Simoniti (born 23 March 1951) is a Slovenian historian and politician. Between 2004 and 2008, he served as the Minister of Culture of Slovenia, being reappointed in 2020. He is an active member of the Slovenian Democratic Party. Early life and academic career Simoniti was born in Ljubljana as the son of the renowned composer and choir leader Rado Simoniti who had moved to the Slovenian capital from the Goriška region in the 1930s in order to escape the violent policies of Fascist Italianization in the Julian March. Vasko attended the Classical Lyceum of Ljubljana. He studied at the University of Ljubljana, graduating with a degree in history in 1977. After a short period of work in the public administration of the Socialist Republic of Slovenia, he started teaching at the Ljubljana University in 1981. In 1989 he obtained his PhD at the same university and started teaching history, specializing in Slovenian history from the 16th to the 18th century. As a historian, he dedicated himself mostly to the history of Slovene Lands in the early modern period, especially the relations of the Slovene Lands and the Ottoman Empire. He has also written on problems of methodology and epistemology in historical sciences. In the late 1990s, he was the co-author, together with the writer and public intellectual Drago Jančar and journalist and historian Alenka Puhar, of the exhibition "The Dark Side of the Moon" () on the authoritarian and totalitarian elements of the Communist dictatorship in the former Yugoslavia, with an emphasis on Slovenia. Political activity He first became actively involved in politics in the parliamentary elections of 2000, when he ran unsuccessfully for the Slovenian National Assembly on the list of the Social Democratic Party of Slovenia (now known as the Slovenian Democratic Party). In the presidential elections of 2002, he served as the chief advisor of the centre-right candidate Barbara Brezigar who eventually lost against the centre-left candidate Janez Drnovšek. In 2004, he was among the co-founders of the liberal conservative civic platform Rally for the Republic (). Later in the same year, he became the Minister for Culture in the centre-right government led by prime minister Janez Janša. After the victory of the left-wing coalition in 2008, he was replaced by Majda Širca. In 2020, he was reappointed as Minister for Culture. Personal life He is married to the journalist and TV host Alenka Zor Simoniti. He is the brother of the diplomat Iztok Simoniti and cousin of the philologist and translator Primož Simoniti. Besides Slovene, he is fluent in English, German, French, Italian and Serbo-Croatian. Selected bibliography Turki so v deželi že: Turški vpadi na slovensko ozemlje v 15. in 16. stoletju ("The Turks are Already in the Land: Ottoman Incursions in the Slovene Territory in the 15th and 16th Century"; Celje, 1990); Vojaška organizacija v 16. stoletju na Slovenskem ("Military Organization in the Slovene Lands in the 16th Century; Ljubljana, 1991); Slovenska zgodovina do razsvetljenstva ("Slovenian History until the Enlightenment", with Peter Štih; Ljubljana & Klagenfurt, 1995); Fanfare nasilja. Razprave in eseji. ("Fanfare of Violence. Treatises and Essays"; Ljubljana, 2003); Slowenische Geschichte : Gesellschaft - Politik - Kultur ("Slovenian History: Society - Politics - Culture", with Peter Štih and Peter Vodopivec; Graz, 2008). See also List of Slovenian historians Politics of Slovenia References 20th-century Slovenian historians Historians of the Balkans Slovenian Democratic Party politicians Politicians from Ljubljana University of Ljubljana alumni Academic staff of the University of Ljubljana 1951 births Living people Culture ministers of Slovenia 21st-century Slovenian historians
Old Scott is an unincorporated community in Carter County, Oklahoma, United States. The community is north-northeast of Healdton, going north on Oklahoma State Highway 76, east on Oklahoma State Highway 53, then north on Samedan Road. References Unincorporated communities in Oklahoma
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var Boolean = require( '@stdlib/boolean/ctor' ); var addon = require( './../src/addon.node' ); // MAIN // /** * Tests if a finite double-precision floating-point number is an odd number. * * @private * @param {number} x - value to test * @returns {boolean} boolean indicating whether the number is odd * * @example * var bool = isOdd( 2.0 ); * // returns false * * @example * var bool = isOdd( 5.0 ); * // returns true */ function isOdd( x ) { return Boolean( addon( x ) ); } // EXPORTS // module.exports = isOdd; ```
The following is a list of association football stadiums in Mexico. Currently stadiums with a capacity of 10,000 or more are included. Existing stadiums Notes Tamaulipas: The halfway line of the pitch at Estadio Tamaulipas lies along the border of Tampico and Madero with the northern half of the pitch belonging to Tampico and the southern half to Madero. Future stadiums See also List of stadiums in Mexico List of indoor arenas in Mexico List of North American stadiums by capacity List of football stadiums by capacity List of stadiums References Mexico Football stadiums in Mexico
```javascript //! moment.js locale configuration //! locale : Indonesian [id] //! author : Mohammad Satrio Utomo : path_to_url //! reference: path_to_url ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; //! moment.js locale configuration var id = moment.defineLocale('id', { months: your_sha256_hashober_November_Desember'.split( '_' ), monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), longDateFormat: { LT: 'HH.mm', LTS: 'HH.mm.ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY [pukul] HH.mm', LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', }, meridiemParse: /pagi|siang|sore|malam/, meridiemHour: function (hour, meridiem) { if (hour === 12) { hour = 0; } if (meridiem === 'pagi') { return hour; } else if (meridiem === 'siang') { return hour >= 11 ? hour : hour + 12; } else if (meridiem === 'sore' || meridiem === 'malam') { return hour + 12; } }, meridiem: function (hours, minutes, isLower) { if (hours < 11) { return 'pagi'; } else if (hours < 15) { return 'siang'; } else if (hours < 19) { return 'sore'; } else { return 'malam'; } }, calendar: { sameDay: '[Hari ini pukul] LT', nextDay: '[Besok pukul] LT', nextWeek: 'dddd [pukul] LT', lastDay: '[Kemarin pukul] LT', lastWeek: 'dddd [lalu pukul] LT', sameElse: 'L', }, relativeTime: { future: 'dalam %s', past: '%s yang lalu', s: 'beberapa detik', ss: '%d detik', m: 'semenit', mm: '%d menit', h: 'sejam', hh: '%d jam', d: 'sehari', dd: '%d hari', M: 'sebulan', MM: '%d bulan', y: 'setahun', yy: '%d tahun', }, week: { dow: 0, // Sunday is the first day of the week. doy: 6, // The week that contains Jan 6th is the first week of the year. }, }); return id; }))); ```
```php <?php /** */ namespace OC\Preview; use OCP\Files\File; use OCP\IImage; use wapmorgan\Mp3Info\Mp3Info; use function OCP\Log\logger; class MP3 extends ProviderV2 { /** * {@inheritDoc} */ public function getMimeType(): string { return '/audio\/mpeg/'; } /** * {@inheritDoc} */ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage { $tmpPath = $this->getLocalFile($file); try { $audio = new Mp3Info($tmpPath, true); /** @var string|null|false $picture */ $picture = $audio->getCover(); } catch (\Throwable $e) { logger('core')->info('Error while getting cover from mp3 file: ' . $e->getMessage(), [ 'fileId' => $file->getId(), 'filePath' => $file->getPath(), ]); return null; } finally { $this->cleanTmpFiles(); } if (is_string($picture)) { $image = new \OCP\Image(); $image->loadFromData($picture); if ($image->valid()) { $image->scaleDownToFit($maxX, $maxY); return $image; } } return null; } } ```
The Orizonia Group (Orizonia Corporaciόn in Spanish) was a Spanish tour operator which was founded in 2006. The company was based on the Spanish island of Mallorca, in the Mediterranean Sea. It was the third largest tour operator in Spain. Background The Orizonia Group was born out of Grupo Iberostar, a Spanish tourism group split into three divisions: Iberostar Hotels and Resorts; Grupo Receptor; and Grupo Emisor. Iberostar Hotels and Resorts owned the accommodation service for the company while Grupo Receptor owned travel agencies and Grupo Emisor owned tour operators, a cruise line, retail travel agencies and airlines. In 2006 the owner of Grupo Iberostar, Miguel Fluxà, decided to sell Grupo Receptor and Grupo Emisor, while keeping Iberostar Hotels. The sale price was in excess of Euro 800 million=. In March 2006, Fluxá had 12 offers for Grupo Receptor and Emisor and in July a deal was confirmed. The Carlyle Group from the United Kingdom took 55%, Vista Capital from Spain bought 36% while ICG Equity Fund purchased 5% and ten managers of the company acquired the remaining 4%. In 2007, their first full year of trading, Orizonia reported a turnover of Euro 2.676 billion which was an increase of 11.4% over 2006 (Euro 2.402 billion). In February 2013, Orizonia applied for "Pre-concurso de acreedores", a type of bankruptcy to protect itself from creditors, and communicated to its workers that it was ceasing operations. With this type of ¨bankruptcy¨ more than 5000 workers were fired without paying settlements and salaries and more than Euro 900 million in debts to the suppliers. Companies The Orizonia Group took ownership of several travel agencies; tour operator Iberojet; retail travel agencies Viajes Iberia and Quo Viajes; two airlines called Orbest and Orbest Orizonia Airlines, the first one based in Portugal; among others. The company was a major stakeholder in Ibero Cruises, which owned in conjunction with Carnival Corporation & plc, and which replaced its own cruise line Iberojet Cruceros in 2007. References Travel and holiday companies of Spain
```objective-c /* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */ /* * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _ALPHA_FENV_H_ #define _ALPHA_FENV_H_ /* * Each symbol representing a floating point exception expands to an integer * constant expression with values, such that bitwise-inclusive ORs of _all * combinations_ of the constants result in distinct values. * * We use such values that allow direct bitwise operations on FPU registers. */ #define FE_INVALID 0x01 #define FE_DIVBYZERO 0x02 #define FE_OVERFLOW 0x04 #define FE_UNDERFLOW 0x08 #define FE_INEXACT 0x10 /* * The following symbol is simply the bitwise-inclusive OR of all floating-point * exception constants defined above. */ #define FE_ALL_EXCEPT (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | \ FE_UNDERFLOW) /* * Each symbol representing the rounding direction, expands to an integer * constant expression whose value is distinct non-negative value. * * We use such values that allow direct bitwise operations on FPU registers. */ #define FE_TOWARDZERO 0x0 #define FE_DOWNWARD 0x1 #define FE_TONEAREST 0x2 #define FE_UPWARD 0x3 /* * The following symbol is simply the bitwise-inclusive OR of all floating-point * rounding direction constants defined above. */ #define _ROUND_MASK (FE_TOWARDZERO | FE_DOWNWARD | FE_TONEAREST | \ FE_UPWARD) #define _ROUND_SHIFT 58 /* * fenv_t represents the entire floating-point environment. */ typedef struct { unsigned int __sticky; unsigned int __mask; unsigned int __round; } fenv_t; /* * The following constant represents the default floating-point environment * (that is, the one installed at program startup) and has type pointer to * const-qualified fenv_t. * * It can be used as an argument to the functions within the <fenv.h> header * that manage the floating-point environment, namely fesetenv() and * feupdateenv(). */ __BEGIN_DECLS extern fenv_t __fe_dfl_env; __END_DECLS #define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env) /* * fexcept_t represents the floating-point status flags collectively, including * any status the implementation associates with the flags. * * A floating-point status flag is a system variable whose value is set (but * never cleared) when a floating-point exception is raised, which occurs as a * side effect of exceptional floating-point arithmetic to provide auxiliary * information. * * A floating-point control mode is a system variable whose value may be set by * the user to affect the subsequent behavior of floating-point arithmetic. */ typedef unsigned int fexcept_t; #endif /* !_ALPHA_FENV_H_ */ ```
```scss @mixin menu-slide-motion($className, $keyframeName) { $name: #{$prefixCls}-#{$className}; @include make-motion($name, #{$prefixCls}-#{$keyframeName}); .#{$name}-enter, .#{$name}-appear { animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); } .#{$name}-leave { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); } } @include menu-slide-motion(menu-slide-up, menu-slide-up); @include menu-slide-motion(menu-slide-down, menu-slide-down); @keyframes #{$prefixCls}-menu-slide-up-in { 0% { transform: scaleY(0.8); transform-origin: 0% 0%; opacity: 0; } 100% { transform: scaleY(1); transform-origin: 0% 0%; opacity: 1; } } @keyframes #{$prefixCls}-menu-slide-up-out { 0% { transform: scaleY(1); transform-origin: 0% 0%; opacity: 1; } 100% { transform: scaleY(0.8); transform-origin: 0% 0%; opacity: 0; } } @keyframes #{$prefixCls}-menu-slide-down-in { 0% { transform: scaleY(0.8); transform-origin: 100% 100%; opacity: 0; } 100% { transform: scaleY(1); transform-origin: 100% 100%; opacity: 1; } } @keyframes #{$prefixCls}-menu-slide-down-out { 0% { transform: scaleY(1); transform-origin: 100% 100%; opacity: 1; } 100% { transform: scaleY(0.8); transform-origin: 100% 100%; opacity: 0; } } ```
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /** * Revives a JSON-serialized pseudorandom number generator. * * @param key - key * @param value - value * @returns value or PRNG * * @example * var parseJSON = require( '@stdlib/utils/parse-json' ); * var mt19937 = require( '@stdlib/random/base/mt19937' ); * * var str = JSON.stringify( mt19937 ); * var rand = parseJSON( str, reviveBasePRNG ); * // returns <Function> */ declare function reviveBasePRNG( key: string, value: any ): any; // EXPORTS // export = reviveBasePRNG; ```
Alec E. Wood (10 September 1933 - 23 March 2016) was a mycologist affiliated with the University of New South Wales in Sydney, Australia who published major studies, describing a large number of new species, in the genera Galerina and Amanita. With Tom May, he co-authored Fungi of Australia Volume 2A, Catalogue and Bibliography of Australian Macrofungi - Basidiomycota in 1997. He also authored popular identification books on Australian fungi. See also List of mycologists Fungi of Australia References External links CSIRO Publishing - Fungi of Australia Volume 2A Australian mycologists 2016 deaths 1933 births
No Trees in the Street is a 1959 British crime thriller directed by J. Lee Thompson and written by Ted Willis, from his 1948 stage play of the same name. The film is set in the slums of London. It depicts the life of impoverished teenager Tommy, who becomes a criminal in an attempt at social mobility. He starts with minor thefts and progresses to murder. A subplot involves the romantic involvements of Tommy's sister Hetty, first with a racketeer and then with a policeman. The film is another example of British kitchen sink realism, but is mainly noted for its naturalistic depiction of slum life. Plot Initially, the film's story is told by Frank (Ronald Howard) a local plainclothes policeman in love with Hetty (Sylvia Syms), to a young tearaway Kenny (David Hemmings). In the slums of London before World War II, Tommy (Melvyn Hayes) is an aimless teenager who tries to escape his squalid surroundings by entering a life of crime. He falls in with local racketeer Wilkie (Herbert Lom), who holds the rest of the slum citizens - including Tommy's own family - in a grip of fear. For a brief period, Hetty (Tommy's older sister) becomes Wilkie's girlfriend until he humiliates her in front of the other slum citizens simply to show his power over them, after which she will have nothing to do with Wilkie despite him repeatedly asking her to come back to him. The film chronicles Tommy's sordid progression from minor thefts to murder. At the end of the film, Hetty and Frank are seen to be married and living in a new council flat long after the slums have been demolished. Cast Sylvia Syms as Hetty Herbert Lom as Wilkie Melvyn Hayes as Tommy Ronald Howard as Frank Stanley Holloway as Kipper Joan Miller as Jess Liam Redmond as Bill David Hemmings as Kenny Carole Lesley as Lova Lily Kann as Mrs Jacobson Lloyd Lamble as Superintendent Campbell Singer as Inspector Marianne Stone as Mrs. Jokel Rita Webb as Mrs. Brown Lana Morris as Marje Production Ted Willis based his script on his 1948 play of the same name. Willis and J. Lee Thompson and Sylvia Syms had previously collaborated together on Woman in a Dressing Gown and Ice Cold in Alex. Filming began 10 March 1958. The film was revised after previews, with new scenes added at the opening, and at the end showing the detective married the sister. Critical reception TV Guide wrote "NO TREES suffers from artificiality of plot and dialog. Characterizations are reduced to mere stereotypes...There are some notable exceptions within the drama, however. Syms is surprisingly moving, giving a sensitive performance despite the film's constraints. Holloway's characterization of a bookie's tout is comical and charming...The camerawork attempts a realistic documentary look, which manages to succeed in capturing the details of slum life that make the setting seem surprisingly naturalistic. The finer points of the film, however, are overshadowed by its faults." Time Out wrote "released at a time when kitchen sink drama was all the rage, this is an unremarkable 'we had it tough' chronicle from another age." Variety wrote "Ted Willis is a writer with a sympathetic eye for problems of the middle and lower classes...Syms gives a moving performance as the gentle girl who refuses to marry the cheap racketeer just to escape. Lom, as the opportunist who dominates the street, is sufficiently suave and unpleasant." References External links No Trees in the Street at BFI No Trees in the Street at Letterbox DVD 1959 films 1950s crime thriller films British crime thriller films British black-and-white films British films based on plays Films shot at Associated British Studios Films directed by J. Lee Thompson Films scored by Laurie Johnson Films set in London Films set in the 1930s Films with screenplays by Ted Willis, Baron Willis Social realism in film Films produced by J. Lee Thompson 1950s English-language films 1950s British films
Silver Ridge is a locality in the Lockyer Valley Region, Queensland, Australia. Geography Rocky Knob is a mountain in the south of the locality (), rising to a peak of above sea level. The land use is predominantly grazing on native vegetation. Most of the residential land use is in the south-west of the locality along Flagstone Creek Road and Blanchview Road. History The locality was named on 11 May 1985 and bounded on 18 February 2000. In the , Silver Ridge had a population of 177 people. Education There are no schools in Silver Ridge. The nearest government primary school is Gabbinar State School in Centenary Heights, a suburb of Toowoomba, to the north-west. The nearest government secondary school is Centenary Heights State High School, also in Centenary Heights. References Lockyer Valley Region Localities in Queensland
John Loeffler (born June 3, 1951) is an American music industry executive and executive vice president, head of New York repertoire and marketing for BMG. In 2019, Loeffler's output included new releases from John Fogerty, The Allman Betts Band feat. Devon Allman and Duane Betts, Marc Cohn and Blind Boys of Alabama, Perry Farrell, Sophie Auster, Jesse Colin Young and Stephen Bishop. Under his leadership new music from Akon, Huey Lewis and the News, Rufus Wainwright, Cheap Trick, and The Allman Betts Band can be expected in 2020. Prior to being named EVP in January 2019 he served as executive director of global development for BMG and developed joint ventures with music and media companies beyond traditional music platforms. He also represented the label's interests to forge new relationships with iconic artists including Roger Waters, Kenny Loggins, Bad Company, John Fogerty and Earth Wind & Fire. In 2011, Loeffler launched FieldHouse Music in association with BMG Music Rights and Universal Distribution. The venture established to discover and market new talent through licensing in film, TV and commercials. FieldHouse Music continues as a talent incubator for new artists and songwriters looking to be developed and promoted by a passionate team of experienced professionals. As a songwriter, record producer and entrepreneur, Loeffler's creative output as CEO of Rave Music, a company which he founded in the mid-1980s, was responsible for producing music for commercials, television, film and other forms of media. Rave Music is perhaps best known for creating the theme music and score for the popular animated television series Pokémon as well as the numerous CDs, films and videos associated with the hit show. Loeffler co-produced most of the music for the English adaptation of the Pokémon anime series, most notably the "Pokémon Theme". Loeffler also produced an album for the series called Pokémon 2.B.A. Master. Additionally, the company produced soundtracks for networks including Country Music Television and HBO as well as music for commercials for Avon and Mitsubishi. More recently, he composed music for Genius Brands' web series SpacePOP. Before working on Pokémon, Loeffler composed music for various commercials and television shows including the sitcom Kate and Allie (which he also wrote, composed and sang the theme song), the music video show Friday Night Videos and the soap opera Another World as well writing songs for a few films including Backstreet Dreams and Night Visitor. Loeffler began his career serving as music director for Grey Advertising for over twenty years (1979–2000). Early life Attended Williams College, Bachelor of Arts (B.A.) Field Of study: political science (major), social psychology and studio art (minors), cum laude References External links Billboard's 2019 Indie Power Players Rufus Wainwright signs with BMG, Variety. John Fogerty Inks Deal with BMG, Music Row. Pokémon Composer John Loeffler, Mania. Fieldhouse Music 1951 births American male composers American male singer-songwriters American record producers Anime composers Living people Nintendo people
Yuchi Jiong (尉遲迥) (died 11 September 580), courtesy name Bojuluo (薄居羅), was a general of the Xianbei-led Western Wei and Northern Zhou dynasties of China. He first came to prominence while his uncle Yuwen Tai served as the paramount general of Western Wei, and subsequently served Northern Zhou after the Yuwen clan established the state after Yuwen Tai's death. In 580, believing that the regent Yang Jian had designs on the throne, Yuchi rose against Yang but was soon defeated. He committed suicide. Family Consort and issue Princess Jinming, of the Yuan Clan (元氏), daughter of Emperor Wen of Western Wei Lady Yuchi (尉迟氏), Lady of Luo (洛县君), first daughter Married Yi Tong of Northern Zhou (仪同) Married Tuoba Jing (拓跋兢) Lady Wei, of the Wei clan (王氏) Unknown Yuchi Yi (尉遲谊), Duke of Zizhong (资中郡公), first son Yuchi Kuan (尉遲宽), Duke of Zhangle (长乐郡公), second son Yuchi Shun (尉遲顺), Duke of Zuo (胙国公), third son Yuchi Dun (尉遲惇), Duke of Wei'an (魏安郡公), fourth son Yuchi You (尉遲祐), Duke of Xidu (西都郡公), fifth son Second Daughter Lady Yuchi (尉迟氏), third daughter During Western Wei It is not known when Yuchi Jiong was born. His ancestors were a branch of the Tuoba tribe, which founded Northern Wei, and their subtribe was referred to as the Yuchi—and therefore took the name of the subtribe as the surname. His father Yuchi Qidou (尉遲俟兜) married the sister of Northern Wei's branch successor state Western Wei's paramount general Yuwen Tai, and they had two sons together—Yuchi Jiong and his brother Yuchi Gang (尉遲綱). (Yuchi Jiong's mother was later known as Princess Changle during Northern Zhou.) Yuchi Qidou died fairly early. Yuchi Jiong, who was said to be handsome, intelligent, and ambitious in his youth, served under his uncle Yuwen Tai, and married the Princess Jinming, the daughter of Emperor Wen of Western Wei. He showed talent both in military matters and in governance, and Yuwen Tai gave him increasingly important positions. In 552, rival Liang Dynasty, in the aftermaths of the major rebellion by Hou Jing and Hou's death earlier that year, had two major claimants to its throne—Xiao Yi (Emperor Yuan of Liang), who controlled the central and eastern provinces, and Xiao Ji, who controlled the western provinces, both sons of the founding emperor Emperor Wu. Xiao Yi, under attack from Xiao Ji, requested aid from Western Wei—in the form of an attack to Xiao Ji's rear, against Xiao Ji's home province Yi Province (modern central Sichuan). Yuwen believed this to be a great opportunity for Western Wei to conquer the modern Sichuan and Chongqing region, but when he discussed the matters with the generals, most were in opposition. Yuchi, however, was supportive of the plan and advocated an immediate attack. Yuwen thus put him in command over six other generals to attack Xiao Ji's realm, and the attack was launched in spring 553. Yuchi quickly advanced to Xiao Ji's capital at Chengdu (成都, in modern Chengdu, Sichuan). Xiao Ji's army, which was then battling Xiao Yi near Xiao Yi's capital of Jiangling (江陵, in modern Jingzhou, Hubei), collapsed, and Xiao Ji was killed by Xiao Yi. After Yuchi had put Chengdu under siege for five months, Xiao Ji's cousin Xiao Hui (蕭撝) and son Xiao Yuansu (蕭圓肅), who were defending Chengdu, surrendered. The surrounding provinces also soon surrendered, and Western Wei had taken over Xiao Ji's domain. Yuwen made Yuchi the governor of Yi Province, in charge of 12 provinces centering Yi. In 554, six provinces were added to Yuchi's responsibility, for 18 provinces total. However, as Yuchi missed his mother deeply, and his mother was still at the capital Chang'an, Yuwen soon recalled him back to Chang'an. During Emperor Xiaomin's and Emperor Ming's reigns Yuwen Tai died in 557, and his nephew Yuwen Hu, serving as the guardian for Yuwen Tai's son Yuwen Jue, forced Emperor Gong of Western Wei to yield the throne to Yuwen Jue in spring 558, ending Western Wei and establishing Northern Zhou, with Yuwen Jue as emperor (but using the alternative title "Heavenly Prince" (Tian Wang) (as Emperor Xiaomin). Emperor Xiaomin created Yuchi Jiong the Duke of Shu, in commemoration of his victory (as the modern Sichuan region was known in ancient times as the region of Shu). Later in 558, when Emperor Xiaomin tried to seize power from Yuwen Hu, Yuwen Hu deposed and then killed him, making Emperor Xiaomin's older brother Yuwen Yu the Duke of Ningdu emperor instead (as Emperor Ming). Yuchi Jiong's stance in this power struggle is not known, but his brother Yuchi Gang sided with Yuwen Hu. Yuchi's activities during Emperor Ming's reign were not recorded in history. In 560, Emperor Ming was poisoned by Yuwen Hu. Emperor Ming's younger brother Yuwen Yong the Duke of Lu became emperor (as Emperor Wu). During Emperor Wu's reign In 562, Yuchi Jiong became the Minister of the Army—one of the six departments of government, under a system designed by Yuwen Tai—although his actual authority over the army is not clear, as Yuwen Hu, as prime minister, also oversaw the armed forces. His brother Yuchi Gang served as Minister of Agriculture. In winter 564, Yuwen Hu launched a major attack on rival Northern Qi, and Yuchi Jiong had the responsibility of attacking Luoyang along with Daxi Wu (達奚武) and Emperor Wu's brother Yuwen Xian the Duke of Qi, but the attack was ultimately unsuccessful and withdrawn. In 568, Yuchi took on the even more honorific title of Taibao (太保) -- one of the three senior advisors to the emperor—but with unclear authorities. In 572, Emperor Wu ambushed Yuwen Hu and killed him, taking over power personally. He made Yuchi Taishi (太師) -- one of the three senior advisors to him but slightly more honorific than Taibao. In 576, Emperor Wu launched a major attack on Northern Qi, destroying it in 577 and taking over its territory. Yuchi's involvement, if any, in the campaign is unclear. In 578, Emperor Wu died, and the crown prince Yuwen Yun became emperor (as Emperor Xuan). During Emperor Xuan's and Emperor Jing's reigns In spring 579, Emperor Xuan established four new senior advisor posts, and he made, as those four, his uncle Yuwen Sheng (宇文盛) the Prince of Yue, Yuchi Jiong, Li Mu (李穆) the Duke of Shen, and Yang Jian the Duke of Sui (and his father-in-law, as the father of his wife Yang Lihua). He also made Yuchi in charge of the region around Xiang Province (相州, roughly modern Handan, Hebei) -- effectively, the region north of the Yellow River. Later that year, Emperor Xuan passed the throne to his young son Yuwen Chan (Emperor Jing), becoming retired emperor—but with the highly unusual title of "Emperor Tianyuan" (天元皇帝, Tianyuan Huangdi). He proceeded to rule in an erratic and cruel manner, causing officials to become alienated. His acts included raping Yuchi Jiong's granddaughter Yuchi Chifan, who had married Emperor Xuan's cousin Yuwen Liang (宇文亮)'s son Yuwen Wen (宇文溫) the Duke of Xiyang, causing Yuwen Liang to plot rebellion. When Yuwen Liang's plot was discovered, Emperor Xuan killed him and Yuwen Wen, seizing Lady Yuchi as a concubine and then creating him one of his five empresses—contrary to the tradition of creating only one empress. (Another granddaughter of Yuchi Jiong's, Sima Lingji, was the young Emperor Jing's wife and empress.) In summer 580, Emperor Xuan died suddenly, and after Yang's friends and Emperor Xuan's associates Liu Fang (劉昉) and Zheng Yi (鄭譯) maneuvered behind the scenes by issuing an edict in Emperor Xuan's name, Yang became regent, and quickly took control of the political scene. As Yuchi had high reputation, Yang feared that Yuchi would oppose him, and therefore sent Yuchi's son Yuchi Dun (尉遲惇) the Duke of Wei'an to Xiang Province, summoning Yuchi back to the capital to attend Emperor Xuan's funeral and replacing him with the general Wei Xiaokuan. Yuchi, believing that Yang was intending to seize the throne, instead announced an uprising against Yang, declaring that he was intending to protect Northern Zhou's imperial lineage. He took the son of Emperor Xuan's uncle Yuwen Zhao (宇文招) the Prince of Zhao and declared him emperor. A number of important generals declared for him—the chief of whom were Sima Xiaonan (司馬消難), who controlled the southern provinces, and Wang Qian (王謙), who controlled the southwestern provinces—but he was unable to persuaded Li Mu, who controlled the modern Shanxi region, to join him. He was also unable to get Northern Zhou's vassal state Western Liang (ruled by Emperor Ming of Western Liang, a great-grandson of Liang Dynasty's Emperor Wu) to join him. Yuchi, despite his reputation, was by this point described as senile, entrusting most of his important matters to his secretary Cui Dana (崔達拏) and his second wife Lady Wang. Cui and Lady Wang's decisions were largely described as inappropriate ones, and the rebels made little advances. Soon, the central government forces, commanded by Wei, arrived at Yuchi's headquarters at Yecheng (鄴城, in modern Handan) and besieged it. When the city fell, just 68 days after Yuchi declared his rebellion, his son's father-in-law Cui Hongdu (崔弘度), who served under Wei, approached him, and gave him time to commit suicide. Yuchi did so, but only after hurling repeated insults at Yang Jian. His sons were killed. During the reign of Emperor Gaozu of Tang (618-626), Yuchi Jiong's grandnephew Yuchi Qifu (尉遲耆福) submitted a petition to have Yuchi Jiong given a proper burial. Emperor Gaozu, because Yuchi Jiong was faithful to Northern Zhou, agreed. Notes References Northern Wei generals Northern Zhou generals 580 deaths Northern Zhou government officials Year of birth unknown Suicides in Northern Zhou
Jaynagar Lok Sabha constituency is one of the 543 Parliamentary constituencies in India. The constituency centres on Jaynagar Majilpur in West Bengal. All the seven legislative assembly segments of No. 19 Jaynagar Lok Sabha constituency are in South 24 Parganas district. The seat is reserved for Scheduled Castes. Legislative Assembly Segments As per order of the Delimitation Commission in respect of the Delimitation of constituencies in the West Bengal, Jaynagar Lok Sabha constituency is composed of the following legislative assembly segments from 2009: Members of Parliament Election Results 2019 General Election 2014 General Election 2009 |- ! style="background-color:#E9E9E9;text-align:left;" width=225 |Party ! style="background-color:#E9E9E9;text-align:right;" |Seats won ! style="background-color:#E9E9E9;text-align:right;" |Seat change ! style="background-color:#E9E9E9;text-align:right;" |Vote percentage |- | style="text-align:left;" |Trinamool Congress | style="text-align:center;" | 19 | style="text-align:center;" | 18 | style="text-align:center;" | 31.8 |- | style="text-align:left;" |Indian National Congress | style="text-align:center;" | 6 | style="text-align:center;" | 0 | style="text-align:center;" | 13.45 |- | style="text-align:left;" |Socialist Unity Centre of India (Communist) | style="text-align:center;" | 1 | style="text-align:center;" | 1 | style="text-align:center;" | NA |- |- | style="text-align:left;" |Communist Party of India (Marxist) | style="text-align:center;" | 9 | style="text-align:center;" | 17 | style="text-align:center;" | 33.1 |- | style="text-align:left;" |Communist Party of India | style="text-align:center;" | 2 | style="text-align:center;" | 1 | style="text-align:center;" | 3.6 |- | style="text-align:left;" |Revolutionary Socialist Party | style="text-align:center;" | 2 | style="text-align:center;" | 1 | style="text-align:center;" | 3.56 |- | style="text-align:left;" |Forward bloc | style="text-align:center;" | 2 | style="text-align:center;" | 1 | style="text-align:center;" | 3.04 |- | style="text-align:left;" |Bharatiya Janata Party | style="text-align:center;" | 1 | style="text-align:center;" | 1 | style="text-align:center;" | 6.14 |- |} General Elections 1962-2004 Most of the contests were multi-cornered. However, only winners and runners-up are mentioned below: See also Jaynagar Majilpur List of constituencies of the Lok Sabha References External links Jaynagar lok sabha constituency election 2019 result details Lok Sabha constituencies in West Bengal Politics of South 24 Parganas district Politics of Jaynagar Majilpur
Ajay Singh may refer to: A. K. Singh (Ajay Kumar Singh, born 1953), Indian army officer and politician Ajay Singh (Karnataka politician) (born before 1992), Indian politician from the state of Karnataka Ajay Singh (diplomat) (1950–2020), high commissioner of India to Fiji Ajay Arjun Singh (active 2008), Indian politician from the state of the Madhya Pradesh Ajay Singh (footballer) (born 1989), Indian footballer Ajay Singh (weightlifter) (born 1997), Indian weightlifter Ajay Singh (entrepreneur) (active from 2005), owner of SpiceJet Ajay Singh Kilak, Indian minister co-operation in the Second Raje ministry Ajay Kumar Singh (disambiguation), various people Ajay Pratap Singh, Indian politician Ajay Raj Singh (born 1978), Indian sprinter
```xml <vector xmlns:android="path_to_url" android:width="16dp" android:height="16dp" android:viewportWidth="16" android:viewportHeight="16"> <path android:pathData="M5,2.25C4.034,2.25 3.25,3.033 3.25,4V12C3.25,12.967 4.034,13.75 5,13.75C5.966,13.75 6.75,12.967 6.75,12V4C6.75,3.033 5.966,2.25 5,2.25ZM4.75,4C4.75,3.862 4.862,3.75 5,3.75C5.138,3.75 5.25,3.862 5.25,4V12C5.25,12.138 5.138,12.25 5,12.25C4.862,12.25 4.75,12.138 4.75,12V4ZM11,2.25C10.033,2.25 9.25,3.033 9.25,4V12C9.25,12.967 10.033,13.75 11,13.75C11.967,13.75 12.75,12.967 12.75,12V4C12.75,3.033 11.967,2.25 11,2.25ZM10.75,4C10.75,3.862 10.862,3.75 11,3.75C11.138,3.75 11.25,3.862 11.25,4V12C11.25,12.138 11.138,12.25 11,12.25C10.862,12.25 10.75,12.138 10.75,12V4Z" android:fillColor="#04101E" android:fillType="evenOdd"/> </vector> ```
The 2021 Ladbrokes Masters was the ninth staging of the non-ranking Masters darts tournament, held by the Professional Darts Corporation (PDC). It was held from 29 to 31 January 2021, behind closed doors at the Marshall Arena in Milton Keynes, England. Peter Wright was the defending champion, after beating Michael Smith 11–10 in the 2020 final, but he lost 11–10 to Jonny Clayton in the semi-finals. In its first major change since its inception in 2013, the field was increased from 16 to 24 players, with the top 8 players entering at the second round. Jonny Clayton won his first individual televised title, beating Mervyn King 11–8 in the final, and by winning the tournament, he also secured his place in the 2021 Premier League, which he won. Clayton's winning run included a victory over Michael van Gerwen, which ended the so-called "van Gerwen curse", whereby any player who knocked out van Gerwen in a PDC major would subsequently lose in the next round. The final itself was notable, as if the usual format of 16 players had been maintained, neither of the two finalists would have qualified for the tournament. Qualifiers The Masters featured the top 24 players in the PDC Order of Merit after the 2021 PDC World Darts Championship, with the top 8 automatically qualifying for the second round. Dimitri Van den Bergh, Glen Durrant, Krzysztof Ratajski, José de Sousa, Jeffrey de Zwaan and Chris Dobey made their debuts in the event. The following 24 players took part in the tournament: Prize money The prize money was £220,000 in total, an increase of £20,000 from 2020 to incorporate the extra 8 players. Draw References Masters Masters (darts) Masters (darts) Masters (darts) Sport in Milton Keynes 2020s in Buckinghamshire
```objective-c #ifndef _RESOLV_H #define _RESOLV_H #include <stdint.h> #include <arpa/nameser.h> #include <netinet/in.h> #ifdef __cplusplus extern "C" { #endif #define MAXNS 3 #define MAXDFLSRCH 3 #define MAXDNSRCH 6 #define LOCALDOMAINPARTS 2 #define RES_TIMEOUT 5 #define MAXRESOLVSORT 10 #define RES_MAXNDOTS 15 #define RES_MAXRETRANS 30 #define RES_MAXRETRY 5 #define RES_DFLRETRY 2 #define RES_MAXTIME 65535 /* unused; purely for broken apps */ typedef struct __res_state { int retrans; int retry; unsigned long options; int nscount; struct sockaddr_in nsaddr_list[MAXNS]; # define nsaddr nsaddr_list[0] unsigned short id; char *dnsrch[MAXDNSRCH+1]; char defdname[256]; unsigned long pfcode; unsigned ndots:4; unsigned nsort:4; unsigned ipv6_unavail:1; unsigned unused:23; struct { struct in_addr addr; uint32_t mask; } sort_list[MAXRESOLVSORT]; void *qhook; void *rhook; int res_h_errno; int _vcsock; unsigned _flags; union { char pad[52]; struct { uint16_t nscount; uint16_t nsmap[MAXNS]; int nssocks[MAXNS]; uint16_t nscount6; uint16_t nsinit; struct sockaddr_in6 *nsaddrs[MAXNS]; unsigned int _initstamp[2]; } _ext; } _u; } *res_state; #define __RES 19960801 #ifndef _PATH_RESCONF #define _PATH_RESCONF "/etc/resolv.conf" #endif struct res_sym { int number; char *name; char *humanname; }; #define RES_F_VC 0x00000001 #define RES_F_CONN 0x00000002 #define RES_F_EDNS0ERR 0x00000004 #define RES_EXHAUSTIVE 0x00000001 #define RES_INIT 0x00000001 #define RES_DEBUG 0x00000002 #define RES_AAONLY 0x00000004 #define RES_USEVC 0x00000008 #define RES_PRIMARY 0x00000010 #define RES_IGNTC 0x00000020 #define RES_RECURSE 0x00000040 #define RES_DEFNAMES 0x00000080 #define RES_STAYOPEN 0x00000100 #define RES_DNSRCH 0x00000200 #define RES_INSECURE1 0x00000400 #define RES_INSECURE2 0x00000800 #define RES_NOALIASES 0x00001000 #define RES_USE_INET6 0x00002000 #define RES_ROTATE 0x00004000 #define RES_NOCHECKNAME 0x00008000 #define RES_KEEPTSIG 0x00010000 #define RES_BLAST 0x00020000 #define RES_USEBSTRING 0x00040000 #define RES_NOIP6DOTINT 0x00080000 #define RES_USE_EDNS0 0x00100000 #define RES_SNGLKUP 0x00200000 #define RES_SNGLKUPREOP 0x00400000 #define RES_USE_DNSSEC 0x00800000 #define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH|RES_NOIP6DOTINT) #define RES_PRF_STATS 0x00000001 #define RES_PRF_UPDATE 0x00000002 #define RES_PRF_CLASS 0x00000004 #define RES_PRF_CMD 0x00000008 #define RES_PRF_QUES 0x00000010 #define RES_PRF_ANS 0x00000020 #define RES_PRF_AUTH 0x00000040 #define RES_PRF_ADD 0x00000080 #define RES_PRF_HEAD1 0x00000100 #define RES_PRF_HEAD2 0x00000200 #define RES_PRF_TTLID 0x00000400 #define RES_PRF_HEADX 0x00000800 #define RES_PRF_QUERY 0x00001000 #define RES_PRF_REPLY 0x00002000 #define RES_PRF_INIT 0x00004000 struct __res_state *__res_state(void); #define _res (*__res_state()) int res_init(void); int res_query(const char *, int, int, unsigned char *, int); int res_querydomain(const char *, const char *, int, int, unsigned char *, int); int res_search(const char *, int, int, unsigned char *, int); int res_mkquery(int, const char *, int, int, const unsigned char *, int, const unsigned char*, unsigned char *, int); int res_send(const unsigned char *, int, unsigned char *, int); int dn_comp(const char *, unsigned char *, int, unsigned char **, unsigned char **); int dn_expand(const unsigned char *, const unsigned char *, const unsigned char *, char *, int); int dn_skipname(const unsigned char *, const unsigned char *); #ifdef __cplusplus } #endif #endif ```
SI is the International System of Units. SI, Si, or si may also refer to: Arts, entertainment, and media Literature Si (novel), a 2014 novel by Bob Ong Sí (Peruvian magazine), a magazine notable for its anti-corruption reporting Skeptical Inquirer, an American magazine covering topics on science and skepticism Sports Illustrated, an American sports magazine Music Sí (Julieta Venegas album), released in 2003 Sì (Andrea Bocelli album), released in 2018 "Sí" (Martin Jensen song), a 2015 song Si (musical note), the seventh note in the traditional fixed do solfège Sì (operetta), an operetta by the Italian composer Pietro Mascagni "Sì" (Gigliola Cinquetti song), the Italian entry to the Eurovision Song Contest 1974 Si (Zaz song), 2013 Sí, a 2013 Spanish album by Malú "Sì", a 1985 song released by Italian actress Carmen Russo Other uses in arts, entertainment, and media Si (film), original title of the 2010 South Korean film Poetry Enterprises and organisations Computing Swiss Informatics Society, a Swiss organization of computer science educators, researchers, and professionals The SI, a former name of the American defense contractor Vencore Education St. Ignatius College Preparatory, a Jesuit high school in San Francisco, California, US Silay Institute, a private college in the Philippines Government Si, a South Korean administrative unit Survey of India, an Indian government agency responsible for managing geographical information Swedish Institute (Svenska institutet), a Swedish government agency which promotes Sweden abroad Politics Sarekat Islam, a socio-political organization in Indonesia under Dutch colonial rule Catalan Solidarity for Independence, a Catalan political party Situationist International, an organization of social revolutionaries Socialist International, a worldwide organization of political parties Solidarity and Equality, an Argentine political party (Spanish: Solidaridad e Igualdad) Transportation Blue Islands (IATA airline code, SI) Skynet Airlines (IATA airline code SI, ceased operating 2004) Spokane International Railroad (reporting mark SI), a former railway in Washington, US Other enterprises and organizations Samahang Ilokano, a fraternity/sorority based in the Philippines SÍ Sørvágur, a Faroese sports association Society of Indexers, a professional society based in the UK Sports Interactive, a British computer games development company People with the name Si (surname), a Chinese surname Si (given name) Places Mount Si, a mountain in the U.S. state of Washington Province of Siena (postal code and vehicle registration plate code) Si County, Anhui, China Si River, in China Slovenia's ISO 3166-2 code Science and technology Biology and healthcare Sacroiliac, an anatomical abbreviation for the sacroiliac (joint) Self-injury, intentional, direct injuring Shock index, a measurement used to determine if a person is suffering shock Chemistry si, a chemical descriptor; See prochirality Silicon, symbol Si, a chemical element Disulfur diiodide, empirical formula SI Computing and Internet .si, the Internet country code top-level domain for Slovenia Shift In, an ASCII control character SI register, or source index, in X86 computer architecture Swarm intelligence, an artificial intelligence technique Synthetic intelligence, an alternate term for or a form of artificial intelligence Motor vehicles Honda Civic Si, an automobile Spark-ignition engine, a type of internal combustion engine Other uses in science and technology Signal integrity, electronic circuit tools and techniques that ensure electrical signals are of sufficient quality Sine integral, Si(x) Spectral interferometry, attosecond physics technique Titles and ranks Si, a Maghrebi Arabic variant of Sidi, a title of respect Si, a variant of the Thai honorific Sri Station inspector, a rank in the Singapore Police Force Sub-inspector, a rank in Indian Police forces Other uses Statutory instrument (UK), abbreviated SI, the principal form in which delegated legislation is made in Great Britain Sì (dessert), a Chinese dessert Sídhe or Si, Celtic mythological beings si, the Sinhala language ISO 639 alpha-2 code Supplemental instruction, an academic support program often used in higher education See also S1 (disambiguation)
Francis Edward Witts (1783–1854) was an English clergyman, diarist, and magistrate who was rector of Upper Slaughter in Gloucestershire. Early life and family Francis Witts was born in 1783. Career Witts was a clergyman, diarist, and magistrate. He was rector of Upper Slaughter in Gloucestershire. Death and legacy Witts died in 1854. His grandson was the civil engineer and archaeologist George Backhouse Witts. Selected publications The Diary of a Cotswold Parson References 1783 births 1854 deaths Clergy from Gloucestershire English justices of the peace English diarists
Maysville High School is a public high school in the Maysville Local School District which is located in the southern portion of Muskingum County, Ohio, just south of the city of Zanesville. The main campus, comprising , houses approximately 2,300 students in the elementary, middle and high school. In 2002, Maysville High School and Maysville Middle School moved to a nearly campus located on Panther Drive just off of State Route 22 (Maysville Pike) in Newton Township. The High School and Middle School are combined into a single building called the Maysville 6-12 building. Previously, Maysville High School was located on Pinkerton Road in Springfield Township, with Maysville Middle School (formerly Maysville Junior High School) in a neighboring separate building. Academics Elementary programs encompass all ability levels from gifted to those requiring additional intervention assistance. A variety of after school enrichment programs are also available to all elementary students throughout the year. In addition to academic excellence in the classroom the middle school programs strive to develop positive student character traits that aim to develop productive community members. Advanced Placement programs are implemented in the areas of Social Studies, Language Arts, Mathematics and the Sciences. The arts are a large part of the academic curriculum, from kindergarten through high school, and allow students to learn how the arts affect their everyday life. Programs are offered in music, business, family consumer science, foreign language, traditional and technology arts which are involved with the community, shows, contests and integrated into other content areas. The intervention programs at the elementary, middle and high schools are designed to serve students who are at risk of not reaching or maintaining academic success. The programs provide additional instructional resources, both during and after the school day, to help students obtain the necessary skills to achieve grade level expectations. Alternative educational settings are available at Maysville for students needing academic options. These include Post Secondary Options which are pursued by students who qualify to take college classes during the school day, Career Based Intervention (CBI) in which students attend regular classes during the morning and then are dismissed into a work release program in the afternoon, and Virtual Learning Academy (VLA) which is an off campus educational entity. All work is performed on the computer in core areas as well as elective classes. Upon completion students are able to receive a diploma from Maysville High School. Clubs Students at Maysville schools are active in a variety of clubs and extracurricular programs. Clubs range from curricular clubs such as A cappella, “Varsity M”, Spanish, French, and Drama to service-oriented organizations such as: Key Club, Leo Club and Student Government. To allow students to express their competitive sides Ski Club, and Quiz Team are offered, and Future Teachers, National Honor Society, SADD and U-Turn develop future skills. Maysville Schools offer a variety of athletic opportunities for students of every ability level. Opportunities range from club and biddy league teams for Elementary age children to organized interleague teams for Middle School students, as well as Varsity, Interleague and Club Teams at the High School Level. Since 1990 Maysville Local Schools have provided a latch-key program before and after school for students Pre-school through 6th grade. The program is also provided in the summer, snow days and professional in-service days. Besides supervision; field trips, homework help, crafts and snacks, and activities are provided. The school is also involves the community in various outreach programs such as Middle School service projects, Senior Service Learning, and Computer Generated Imaging Senior Multi Media Class services. Monthly community forums are hosted by the superintendent to inform and receive feedback from members of the community regarding school issues. The “Community Bulletin Board” has also become a popular method of communication with the community. The community is also involved with the school through organizations such as band boosters, athletic boosters and 21st century grant programming. Sports Maysville High School is part of the Muskingum Valley League Maysville High School has a band, the Maysville High School Marching Band. Maysville High School is also home to three National Archery in the Schools Program (NASP) archery teams. The Maysville High School and Middle School Archery teams won the title of state champion two years in a row in 2007 and 2008. The Maysville Elementary Archery team also brought home a state championship title in 2008. The high school archery team has also been National Runner-Up at the NASP National Tournament in 2007 and 2008. Ohio High School Athletic Association State Championships Girls Softball – 1985 References External links Maysville District Website High schools in Muskingum County, Ohio Public high schools in Ohio
```glsl varying highp vec2 textureCoordinate; uniform sampler2D inputImageTexture; uniform lowp float brightness; void main() { lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate); gl_FragColor = vec4((textureColor.rgb + vec3(brightness)), textureColor.w); } ```
```go package server_test import ( "context" "fmt" storagetypes "github.com/containers/storage" "github.com/golang/mock/gomock" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" types "k8s.io/cri-api/pkg/apis/runtime/v1" "github.com/cri-o/cri-o/internal/storage" "github.com/cri-o/cri-o/internal/storage/references" ) // The actual test suite. var _ = t.Describe("ImageRemove", func() { resolvedImageName, err := references.ParseRegistryImageReferenceFromOutOfProcessData("docker.io/library/image:latest") Expect(err).ToNot(HaveOccurred()) // Prepare the sut BeforeEach(func() { beforeEach() setupSUT() }) AfterEach(afterEach) t.Describe("ImageRemove", func() { It("should succeed", func() { // Given gomock.InOrder( imageServerMock.EXPECT().HeuristicallyTryResolvingStringAsIDPrefix("image"). Return(nil), imageServerMock.EXPECT().CandidatesForPotentiallyShortImageName( gomock.Any(), "image"). Return([]storage.RegistryImageReference{resolvedImageName}, nil), imageServerMock.EXPECT().ImageStatusByName(gomock.Any(), gomock.Any()). Return(&storage.ImageResult{}, nil), imageServerMock.EXPECT().UntagImage(gomock.Any(), resolvedImageName).Return(nil), ) // When _, err := sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: "image"}}) // Then Expect(err).ToNot(HaveOccurred()) }) // Given It("should succeed with a full image id", func() { const testSHA256 = your_sha256_hash parsedTestSHA256, err := storage.ParseStorageImageIDFromOutOfProcessData(testSHA256) Expect(err).ToNot(HaveOccurred()) gomock.InOrder( imageServerMock.EXPECT().HeuristicallyTryResolvingStringAsIDPrefix(testSHA256). Return(&parsedTestSHA256), imageServerMock.EXPECT().DeleteImage( gomock.Any(), parsedTestSHA256). Return(nil), ) // When _, err = sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: testSHA256}}) // Then Expect(err).ToNot(HaveOccurred()) }) It("should fail when image untag errors", func() { // Given gomock.InOrder( imageServerMock.EXPECT().HeuristicallyTryResolvingStringAsIDPrefix("image"). Return(nil), imageServerMock.EXPECT().CandidatesForPotentiallyShortImageName( gomock.Any(), "image"). Return([]storage.RegistryImageReference{resolvedImageName}, nil), imageServerMock.EXPECT().ImageStatusByName(gomock.Any(), gomock.Any()). Return(&storage.ImageResult{}, nil), imageServerMock.EXPECT().UntagImage(gomock.Any(), resolvedImageName).Return(t.TestError), ) // When _, err := sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: "image"}}) // Then Expect(err).To(HaveOccurred()) }) It("should fail when name resolving errors", func() { // Given gomock.InOrder( imageServerMock.EXPECT().HeuristicallyTryResolvingStringAsIDPrefix("image"). Return(nil), imageServerMock.EXPECT().CandidatesForPotentiallyShortImageName( gomock.Any(), "image"). Return(nil, t.TestError), ) // When _, err := sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: "image"}}) // Then Expect(err).To(HaveOccurred()) }) It("should fail without specified image", func() { // Given // When _, err := sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: ""}}) // Then Expect(err).To(HaveOccurred()) }) // path_to_url#L156-L157 It("should succeed if image is not found", func() { // Given const testSHA256 = your_sha256_hash parsedTestSHA256, err := storage.ParseStorageImageIDFromOutOfProcessData(testSHA256) Expect(err).ToNot(HaveOccurred()) gomock.InOrder( imageServerMock.EXPECT().HeuristicallyTryResolvingStringAsIDPrefix(testSHA256). Return(&parsedTestSHA256), imageServerMock.EXPECT().DeleteImage( gomock.Any(), parsedTestSHA256). Return(fmt.Errorf("invalid image: %w", storagetypes.ErrImageUnknown)), ) // When _, err = sut.RemoveImage(context.Background(), &types.RemoveImageRequest{Image: &types.ImageSpec{Image: testSHA256}}) // Then Expect(err).ToNot(HaveOccurred()) }) }) }) ```
The fifth season of Dexter premiered on September 26, 2010, and consisted of 12 episodes. The season focuses on how Dexter comes to terms with the aftermath of the Season 4 finale, helping a girl stop a group of serial rapists, and avoiding a corrupt cop who learns his deadly secret. Plot As the police arrive at Dexter's house, he is obviously in shock and, either because he feels guilty that his relationship with the Trinity Killer, Arthur Mitchell, caused Rita's death or because he is answering a question ("Sir, did you say that you called this in?") asked by one of the police officers, and admits "it was me". Joey Quinn is already suspicious about the circumstances surrounding Rita's death, considering it did not follow Trinity's modus operandi. He is also suspicious of Dexter's unemotional manner after the incident. Astor takes Rita's death particularly hard, and blames Dexter for it. Unable to reconcile, Astor decides that she wants to live with her grandparents in Orlando, Florida, and she and Cody leave Miami. Miami Metro begins investigating a severed head left in a Venezuelan neighborhood, and also find several related cases. The suspect is quickly nicknamed the Santa Muerte Killer. The FBI, unable to find Arthur Mitchell, follows its only other lead, Kyle Butler (Dexter's alias when interacting with the Mitchell family). Quinn recognizes the similarities between sketches of Kyle Butler and Dexter. Dexter finds a Department of Sanitation worker, Boyd Fowler, who is responsible for the deaths of several women. Dexter hires a nanny named Sonya to care for Harrison. Dexter eventually kills Fowler, but the crime is witnessed by Fowler's next victim Lumen Pierce whom he has in captivity. Dexter tries to care for Lumen, but she is understandably suspicious of his motives, asking Dexter if he is going to "sell her". Quinn tracks down the Mitchells, who are now in witness protection. He approaches Jonah Mitchell at a small convenience store and shows him a picture of Dexter, asking if it is Kyle Butler, but an undercover FBI agent interrupts before Jonah can answer. Quinn is suspended without pay by LaGuerta for disobeying her orders as she continues to defend Dexter. With Dexter's help, Deb closes in on the Santa Muerte killer. Debra lets him escape during a hostage standoff in order to save the hostage's life. Lumen tells Dexter that she was attacked by a group of men, not merely Fowler on his own. Lumen asks Dexter to help her seek revenge on these men, but he initially refuses. After Lumen continues on her own and mistakenly targets the wrong suspect, Dexter teaches her the importance of knowing a person is guilty. Dexter accompanies Lumen to the airport and believes she has left Miami. Instead, Lumen remains behind, hunts down and shoots one of her attackers, and out of desperation asks Dexter to help her clean up the crime scene. Dexter reluctantly agrees, and they finish moments before homicide police locate the crime scene. Lumen later reveals to Dexter that killing one of her attackers brought her a sense of peace. She tearfully recognizes that it will not last and that she will have to find (and kill) the others to experience that peace again. Dexter recognizes this as being her own Dark Passenger. He decides to help her, partly to atone for his earlier inability to save Rita. Meanwhile, LaGuerta and Angel Batista make their marriage public but are having marital issues, and Quinn and Debra become romantically involved. When Angel gets involved in a bar fight which gets him in trouble with the Internal Affairs Department (IAD), LaGuerta saves him by helping IAD set up a sting on another cop who is under suspicion, Stan Liddy. Liddy develops a friendship with Quinn, their common bond being they were both "betrayed" by LaGuerta, and Quinn pays Liddy to investigate Dexter. Debra remains unaware that Quinn suspects her brother is Kyle Butler. Dexter and Lumen hunt the other people responsible for torturing her, including their leader, motivational speaker Jordan Chase, and people associated with him. As Quinn's relationship with Deb deepens, he tries to stop Liddy's investigation, but by this point Liddy has taken pictures of Dexter and Lumen on Dexter's boat disposing of large plastic bags and video of them practicing for a kill, and is determined to continue. Having lost his job and convinced Dexter is a criminal, Liddy captures Dexter and calls Quinn to tell him to come to his location. A struggle ensues and Dexter kills Liddy and destroys Liddy's surveillance footage. Dexter learns Lumen has been kidnapped by Jordan Chase and is forced to leave the crime scene to try to find her. Quinn, having responded to a call from Liddy, finds Liddy's van locked and apparently empty; a drop of Liddy's blood falls on his shoe, unnoticed. Dexter returns home to collect his tools to attack Jordan. He is surprised to see Astor and Cody who want to have their baby brother Harrison's first birthday party in Miami and stay with him the coming summer. Before Dexter can confront Jordan, he is called away to Liddy's crime scene, where the police suspect Quinn's involvement in Liddy's death after noticing the blood drop that fell on his shoe earlier. Quinn initially complies but later refuses to answer questions. Later, Dexter learns of Jordan's (and Lumen's) whereabouts. The two briefly struggle. Dexter overpowers Jordan, and then allows Lumen to kill Jordan. After the kill, Deb discovers the two of them, though they are behind translucent plastic and she is not able to see their identities. Understanding that one of the two figures must be an escaped victim, Deb sympathizes and retreats so they can escape. After Jordan's death, Lumen no longer feels the need to kill and tearfully admits she needs to move on, leaving Dexter distraught. Quinn talks with Dexter at Harrison's birthday party, where Quinn thanks Dexter for exonerating him, as Dexter has faked a blood test to clear Quinn. Quinn and Deb appear to reconcile, as do Maria and Angel. Blowing out Harrison's birthday candle, Dexter wonders if there is hope for him — to have a genuine relationship, to be human — but he doubts it. Cast Main Michael C. Hall as Dexter Morgan Jennifer Carpenter as Debra Morgan Desmond Harrington as Joey Quinn C.S. Lee as Vince Masuka Lauren Vélez as María LaGuerta David Zayas as Angel Batista James Remar as Harry Morgan Recurring Peter Weller as Stan Liddy Maria Doyle Kennedy as Sonya April Lee Hernández as Cira Manzon Adam John Harrington as Ray Walker Christina Robinson as Astor Bennett Chris Vance as Cole Harmon Steve Eastin as Bill Bennett Preston Bailey as Cody Bennett Kathleen Noone as Maura Bennett Rick Peters as Elliot Raphael Sbarge as Jim McCourt Geoff Pierson as Tom Matthews Tasia Sherel as Francis Brando Eaton as Jonah Mitchell Special guest star Julia Stiles as Lumen Pierce Guest appearance Julie Benz as Rita Morgan Jonny Lee Miller as Jordan Chase Katherine Moennig as Michael Angelo Guest cast Angela Bettis as Emily Birch Shawn Hatosy as Boyd Fowler Sean O'Bryan as Dan Mendell Joseph Julian Soria as Carlos Fuentes Josue Aguirre as Marco Fuentes Chad Allen as Lance Robinson Tabitha Morella as Olivia Daniel Travis as Barry Kurt Michael Durrell as Stuart Frank Scott Grimes as Alex Tilden Crew Fourth season executive producers John Goldwyn, Sara Colleton, Scott Buck and Michael C. Hall all remained in their roles for the fifth season. Past executive producer and show runner Clyde Phillips remained part of the crew as a consultant for the fifth season. Following the conclusion of 24, Manny Coto and Chip Johannessen joined the crew as executive producers. Johannessen served as the show runner for the fifth season. Jim Leonard also joined the crew as a consulting producer. Fourth season supervising producers Timothy Schlattmann and Wendy West were promoted to co-executive producers for the fifth season. Fourth season producer Lauren Gussis was promoted to supervising producer. Robert Lloyd Lewis returned as the on set producer. Co-producers Gary Law and Chad Tomasoski also retained their roles. Fourth season story editor Scott Reynolds was promoted to executive story editor for the fifth . Episodes References External links 2010 American television seasons
A prone pilot lies on their stomach rather than seated in a normal upright or reclining position. During the 1930s, glider designer Reimar Horten began developing a prone position for his flying wing gliders. However it proved uncomfortable and he later settled on a semi-prone arrangement with the knees somewhat lowered. During World War II it was suggested that a pilot in the prone position might be more effective in some kinds of high-speed aircraft, because it would permit the pilot to withstand a greater g-force in the upward and downward direction with respect to the plane. The fuselage could also be made shallower and therefore have reduced weight and drag. Many speculative designs of the late-war and early postwar periods featured this arrangement, and several prototypes were built or converted to test the idea. However testing revealed difficulties in maintaining a head-up attitude to see forward and in operating some controls. These problems outweighed the advantages and the position was never adopted for high-speed flight. Many modern hang gliders, developed since the 1960s, typically offer a prone pilot position during flight, with the pilot lowering their legs and standing upright only when taking off or landing. List of aircraft with prone pilots Many hang gliders since the 1960s have allowed the pilot to lie prone in flight. These are not included here. |- | Akaflieg Berlin B9 || Germany || || || || || || |- | Akaflieg Stuttgart fs17 || Germany || || || || || || |- | Armstrong Whitworth AW.171 || UK || Supersonic || Experimental || 1957 || Project || 0 || Never ordered. |- | Beecraft Wee Bee || USA || Tractor || Private || 1948 || Prototype || 1 || |- | Blohm & Voss BV 40 || Germany|| || || || || || |- | DFS 228 || Germany || || || || || || |- | DFS Liege-Kranich || Germany || || || || || || |- | Farrar V-1 Flying Wing || USA || || || || || || |- | FMA I.Ae. 37 || Argentina || || || || || || |- | Gloster Meteor F8 "Prone Pilot" || UK || Jet || Experimental || 1954 || Prototype || 1 || Conversion of standard aircraft |- | Guerchais-Roche Émouchet || France || || || || || || |- | Henschel Hs 132 || Germany || || || || || || |- | Horten H.III || Germany || Glider || || || || || |- | Horten H.IV || Germany || Glider || || || || || |- | Horten H.VI || Germany || Glider || || || || || |- | Ikarus 232 Pionr || Yugoslavia || || || || || 1 || |- | Ikarus S-451 || Yugoslavia || Tractor || Experimental || 1952 || Prototype || 1 || Enlarged 232. First 451 built. |- | Lamson PL-1 Quark || USA || || || || || || |- | Northrop XP-79 || USA || Jet || Fighter || 1945 || Prototype || 1 || Flying wing |- | Reid and Sigrist R.S.3 Desford || UK || || || || || || |- | Savoia-Marchetti SM.93 || Italy || || || || || || |- | Ultra-Efficient Products Penetrater || USA || Pusher || Ultralight || 1985 || || || |- | Wright Flyer || USA || Pusher || Experimental || 1903 || Prototype || 1 || |- | Wright Flyer II || USA || Pusher || Experimental || 1904 || Prototype || 1 || |- | Wright Flyer III || USA || Pusher || Experimental || 1905 || Prototype || 1 || Photos also show the pilot sitting up. |} Bibliography Prizeman, R.; "Getting down to it", Flight, 1953, pp.584 ff. (First page: Internet Archive). Lists of aircraft by design configuration
The mixed doubles table tennis event at the 2023 European Games in Kraków was held at the Hutnik Arena from 23 to 26 June 2023. Seeds Seeding was based on the ITTF World Ranking lists published on 20 June 2023. (semifinals, bronze medalist) (semifinals, fourth place) (quarterfinals) (champion, gold medalist) (quarterfinals) (round of 16) (final, silver medalist) (quarterfinals) (round of 16) (round of 16) (quarterfinals) (round of 16) (round of 16) (round of 16) (round of 16) (round of 16) Results References Mixed doubles
Bakyobageesh (বাক্যবাগীশ) is the third solo album by Indian singer-songwriter Anupam Roy. Girona Entertainment released this album on Durga Puja and Eid of 2014 in Kolkata and Dhaka. Later on 2017, Anupam Roy re-released this album with Anupam Roy Creations label. Track listing All songs sung, composed and written by Anupam Roy. Personnel Music produced by The Anupam Roy Band Anupam Roy – Singer-songwriter Sandipan Parial – Drums Nabarun Bose – Keyboards and Backing Vocals Roheet Mukherjee – Bass Subhodip Banerjee – Guitar Shomi Chatterjee – Mixed and mastered Additional musicians: Sanjoy Das – Khamak (Babu Re) Rohan Roy – Violin (Ghawrkuno Ghash and Rajprasader Bondee) Joy Nandi – Tabla (Maatir Rawng) References 2014 albums
This is a list of mayors of the city of Marietta. Prior to the mayoral position the position of leadership was Chairman of the Town Meeting. References Marietta, Ohio Mayors
```java * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.activiti.engine.impl.jobexecutor; import java.util.LinkedList; import java.util.List; import org.activiti.engine.impl.persistence.entity.JobEntity; /** * @author Joram Barrez */ public class SingleJobExecutorContext implements JobExecutorContext { protected List<JobEntity> currentProcessorJobQueue = new LinkedList<>(); protected JobEntity currentJob; public List<JobEntity> getCurrentProcessorJobQueue() { return currentProcessorJobQueue; } @Override public boolean isExecutingExclusiveJob() { return currentJob == null ? false : currentJob.isExclusive(); } @Override public void setCurrentJob(JobEntity currentJob) { this.currentJob = currentJob; } @Override public JobEntity getCurrentJob() { return currentJob; } } ```
Pablo Gozzarelli (born December 3, 1985 in Santa Fe, Argentina) is an Argentine footballer currently playing for Deportivo Quevedo of the Serie B in Ecuador . Teams Temperley 2007 Estudiantes de Buenos Aires 2008 San Marcos de Arica 2009 Santa Fe FC 2010 Deportivo Quevedo 2011–present References Profile at BDFA 1985 births Living people Argentine men's footballers Argentine expatriate men's footballers Estudiantes de Buenos Aires footballers San Marcos de Arica footballers Primera B de Chile players Expatriate men's footballers in Chile Expatriate men's footballers in Ecuador Men's association football players not categorized by position Footballers from Santa Fe, Argentina
```kotlin package kotlinx.coroutines import kotlinx.coroutines.testing.* import kotlin.js.* import kotlin.test.* class PromiseTest : TestBase() { @Test fun testPromiseResolvedAsDeferred() = GlobalScope.promise { val promise = Promise<String> { resolve, _ -> resolve("OK") } val deferred = promise.asDeferred() assertEquals("OK", deferred.await()) } @Test fun testPromiseRejectedAsDeferred() = GlobalScope.promise { lateinit var promiseReject: (Throwable) -> Unit val promise = Promise<String> { _, reject -> promiseReject = reject } val deferred = promise.asDeferred() // reject after converting to deferred to avoid "Unhandled promise rejection" warnings promiseReject(TestException("Rejected")) try { deferred.await() expectUnreached() } catch (e: Throwable) { assertIs<TestException>(e) assertEquals("Rejected", e.message) } } @Test fun testCompletedDeferredAsPromise() = GlobalScope.promise { val deferred = async(start = CoroutineStart.UNDISPATCHED) { // completed right away "OK" } val promise = deferred.asPromise() assertEquals("OK", promise.await()) } @Test fun testWaitForDeferredAsPromise() = GlobalScope.promise { val deferred = async { // will complete later "OK" } val promise = deferred.asPromise() assertEquals("OK", promise.await()) // await yields main thread to deferred coroutine } @Test fun testCancellableAwaitPromise() = GlobalScope.promise { lateinit var r: (String) -> Unit val toAwait = Promise<String> { resolve, _ -> r = resolve } val job = launch(start = CoroutineStart.UNDISPATCHED) { toAwait.await() // suspends } job.cancel() // cancel the job r("fail") // too late, the waiting job was already cancelled } @Test fun testAsPromiseAsDeferred() = GlobalScope.promise { val deferred = async { "OK" } val promise = deferred.asPromise() val d2 = promise.asDeferred() assertSame(d2, deferred) assertEquals("OK", d2.await()) } @Test fun testLeverageTestResult(): TestResult { // Cannot use expect(..) here var seq = 0 val result = runTest { ++seq } return result.then { if (seq != 1) error("Unexpected result: $seq") } } } ```
```go // Package mythicbeasts provides a provider for managing zones in Mythic Beasts. // // This package uses the Primary DNS API v2, as described in path_to_url package mythicbeasts import ( "encoding/json" "fmt" "io" "net/http" "strings" "github.com/StackExchange/dnscontrol/v4/models" "github.com/StackExchange/dnscontrol/v4/pkg/diff2" "github.com/StackExchange/dnscontrol/v4/providers" "github.com/miekg/dns" ) // mythicBeastsDefaultNS lists the default nameservers, per path_to_url var mythicBeastsDefaultNS = []string{ "ns1.mythic-beasts.com", "ns2.mythic-beasts.com", } // mythicBeastsProvider is the handle for this provider. type mythicBeastsProvider struct { secret string keyID string client *http.Client } var features = providers.DocumentationNotes{ // The default for unlisted capabilities is 'Cannot'. // See providers/capabilities.go for the entire list of capabilities. providers.CanGetZones: providers.Can(), providers.CanConcur: providers.Cannot(), providers.CanUseAlias: providers.Cannot(), providers.CanUseCAA: providers.Can(), providers.CanUseLOC: providers.Cannot(), providers.CanUsePTR: providers.Can(), providers.CanUseSRV: providers.Can(), providers.CanUseSSHFP: providers.Can(), providers.CanUseTLSA: providers.Can(), providers.DocCreateDomains: providers.Cannot("Requires domain registered through Web UI"), providers.DocDualHost: providers.Can(), providers.DocOfficiallySupported: providers.Cannot(), } func init() { const providerName = "MYTHICBEASTS" const providerMaintainer = "@tomfitzhenry" fns := providers.DspFuncs{ Initializer: newDsp, RecordAuditor: AuditRecords, } providers.RegisterDomainServiceProviderType(providerName, fns, features) providers.RegisterMaintainer(providerName, providerMaintainer) } func newDsp(conf map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) { if conf["keyID"] == "" { return nil, fmt.Errorf("missing Mythic Beasts auth keyID") } if conf["secret"] == "" { return nil, fmt.Errorf("missing Mythic Beasts auth secret") } return &mythicBeastsProvider{ keyID: conf["keyID"], secret: conf["secret"], client: &http.Client{}, }, nil } func (n *mythicBeastsProvider) httpRequest(method, url string, body io.Reader) (*http.Response, error) { req, err := http.NewRequest(method, "path_to_url"+url, body) if err != nil { return nil, err } // path_to_url req.SetBasicAuth(n.keyID, n.secret) req.Header.Add("Content-Type", "text/dns") req.Header.Add("Accept", "text/dns") return n.client.Do(req) } // GetZoneRecords gets the records of a zone and returns them in RecordConfig format. func (n *mythicBeastsProvider) GetZoneRecords(domain string, meta map[string]string) (models.Records, error) { resp, err := n.httpRequest("GET", "/zones/"+domain+"/records", nil) if err != nil { return nil, err } if got, want := resp.StatusCode, 200; got != want { body, _ := io.ReadAll(resp.Body) return nil, fmt.Errorf("got HTTP %v, want %v: %v", got, want, string(body)) } return zoneFileToRecords(resp.Body, domain) } func zoneFileToRecords(r io.Reader, origin string) (models.Records, error) { zp := dns.NewZoneParser(r, origin, origin) var records []*models.RecordConfig for rr, ok := zp.Next(); ok; rr, ok = zp.Next() { rec, err := models.RRtoRC(rr, origin) if err != nil { return nil, err } records = append(records, &rec) } if err := zp.Err(); err != nil { return nil, fmt.Errorf("parsing zone for %v: %w", origin, err) } return records, nil } // GetZoneRecordsCorrections returns a list of corrections that will turn existing records into dc.Records. func (n *mythicBeastsProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, actual models.Records) ([]*models.Correction, error) { msgs, changes, err := diff2.ByZone(actual, dc, nil) if err != nil { return nil, err } var corrections []*models.Correction if changes { corrections = append(corrections, &models.Correction{ Msg: strings.Join(msgs, "\n"), F: func() error { var b strings.Builder for _, record := range dc.Records { switch rr := record.ToRR().(type) { case *dns.SSHFP: // "Hex strings [for SSHFP] must be in lower-case", per Mythic Beasts API docs. // miekg's DNS outputs uppercase: path_to_url#L988 fmt.Fprintf(&b, "%s %d %d %s\n", rr.Header().String(), rr.Algorithm, rr.Type, strings.ToLower(rr.FingerPrint)) default: fmt.Fprintf(&b, "%v\n", rr.String()) } } resp, err := n.httpRequest("PUT", "/zones/"+dc.Name+"/records", strings.NewReader(b.String())) if err != nil { return err } if got, want := resp.StatusCode, 200; got != want { body, _ := io.ReadAll(resp.Body) return fmt.Errorf("got HTTP %v, want %v: %v", got, want, string(body)) } return nil }, }) } return corrections, nil } // GetNameservers returns the nameservers for a domain. func (n *mythicBeastsProvider) GetNameservers(domainName string) ([]*models.Nameserver, error) { return models.ToNameservers(mythicBeastsDefaultNS) } ```
```php <?php use PhpOffice\PhpSpreadsheet\NamedRange; use PhpOffice\PhpSpreadsheet\Spreadsheet; require_once __DIR__ . '/../Header.php'; $spreadsheet = new Spreadsheet(); $worksheet = $spreadsheet->setActiveSheetIndex(0); $clients = [ 'Client #1 - Full Hourly Rate' => [ '2020-0-06' => 2.5, '2020-0-07' => 2.25, '2020-0-08' => 6.0, '2020-0-09' => 3.0, '2020-0-10' => 2.25, ], 'Client #2 - Full Hourly Rate' => [ '2020-0-06' => 1.5, '2020-0-07' => 2.75, '2020-0-08' => 0.0, '2020-0-09' => 4.5, '2020-0-10' => 3.5, ], 'Client #3 - Reduced Hourly Rate' => [ '2020-0-06' => 3.5, '2020-0-07' => 2.5, '2020-0-08' => 1.5, '2020-0-09' => 0.0, '2020-0-10' => 1.25, ], ]; foreach ($clients as $clientName => $workHours) { $worksheet = $spreadsheet->addSheet(new PhpOffice\PhpSpreadsheet\Worksheet\Worksheet($spreadsheet, $clientName)); // Set up some basic data for a timesheet $worksheet ->setCellValue('A1', 'Charge Rate/hour:') ->setCellValue('B1', '7.50') ->setCellValue('A3', 'Date') ->setCellValue('B3', 'Hours') ->setCellValue('C3', 'Charge'); // Define named ranges // CHARGE_RATE is an absolute cell reference that always points to cell B1 $spreadsheet->addNamedRange(new NamedRange('CHARGE_RATE', $worksheet, '=$B$1', true)); // HOURS_PER_DAY is a relative cell reference that always points to column B, but to a cell in the row where it is used $spreadsheet->addNamedRange(new NamedRange('HOURS_PER_DAY', $worksheet, '=$B1', true)); // Populate the Timesheet $startRow = 4; $row = $startRow; foreach ($workHours as $date => $hours) { $worksheet ->setCellValue("A{$row}", $date) ->setCellValue("B{$row}", $hours) ->setCellValue("C{$row}", '=HOURS_PER_DAY*CHARGE_RATE'); ++$row; } $endRow = $row - 1; // COLUMN_TOTAL is another relative cell reference that always points to the same range of rows but to cell in the column where it is used $spreadsheet->addNamedRange(new NamedRange('COLUMN_TOTAL', $worksheet, "=A\${$startRow}:A\${$endRow}", true)); ++$row; $worksheet ->setCellValue("B{$row}", '=SUM(COLUMN_TOTAL)') ->setCellValue("C{$row}", '=SUM(COLUMN_TOTAL)'); } $spreadsheet->removeSheetByIndex(0); // Set the reduced charge rate for our special client $worksheet ->setCellValue('B1', 4.5); foreach ($spreadsheet->getAllSheets() as $worksheet) { /** @var float */ $calc1 = $worksheet->getCell("B{$row}")->getCalculatedValue(); /** @var float */ $value = $worksheet->getCell('B1')->getValue(); /** @var float */ $calc2 = $worksheet->getCell("C{$row}")->getCalculatedValue(); $helper->log(sprintf( 'Worked %.2f hours for "%s" at a rate of %.2f - Charge to the client is %.2f', $calc1, $worksheet->getTitle(), $value, $calc2 )); } $worksheet = $spreadsheet->setActiveSheetIndex(0); $helper->write($spreadsheet, __FILE__, ['Xlsx']); ```
```c /* * Memory allocation handling. */ #include "duk_internal.h" /* * Allocate memory with garbage collection. */ /* Slow path: voluntary GC triggered, first alloc attempt failed, or zero size. */ DUK_LOCAL DUK_NOINLINE_PERF DUK_COLD void *duk__heap_mem_alloc_slowpath(duk_heap *heap, duk_size_t size) { void *res; duk_small_int_t i; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->alloc_func != NULL); DUK_ASSERT_DISABLE(size >= 0); if (size == 0) { DUK_D(DUK_DPRINT("zero size alloc in slow path, return NULL")); return NULL; } DUK_D(DUK_DPRINT("first alloc attempt failed or voluntary GC limit reached, attempt to gc and retry")); #if 0 /* * If GC is already running there is no point in attempting a GC * because it will be skipped. This could be checked for explicitly, * but it isn't actually needed: the loop below will eventually * fail resulting in a NULL. */ if (heap->ms_prevent_count != 0) { DUK_D(DUK_DPRINT("duk_heap_mem_alloc() failed, gc in progress (gc skipped), alloc size %ld", (long) size)); return NULL; } #endif /* * Retry with several GC attempts. Initial attempts are made without * emergency mode; later attempts use emergency mode which minimizes * memory allocations forcibly. */ for (i = 0; i < DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_LIMIT; i++) { duk_small_uint_t flags; flags = 0; if (i >= DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_EMERGENCY_LIMIT - 1) { flags |= DUK_MS_FLAG_EMERGENCY; } duk_heap_mark_and_sweep(heap, flags); DUK_ASSERT(size > 0); res = heap->alloc_func(heap->heap_udata, size); if (res != NULL) { DUK_D(DUK_DPRINT("duk_heap_mem_alloc() succeeded after gc (pass %ld), alloc size %ld", (long) (i + 1), (long) size)); return res; } } DUK_D(DUK_DPRINT("duk_heap_mem_alloc() failed even after gc, alloc size %ld", (long) size)); return NULL; } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_alloc(duk_heap *heap, duk_size_t size) { void *res; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->alloc_func != NULL); DUK_ASSERT_DISABLE(size >= 0); #if defined(DUK_USE_VOLUNTARY_GC) /* Voluntary periodic GC (if enabled). */ if (DUK_UNLIKELY(--(heap)->ms_trigger_counter < 0)) { goto slowpath; } #endif #if defined(DUK_USE_GC_TORTURE) /* Simulate alloc failure on every alloc, except when mark-and-sweep * is running. */ if (heap->ms_prevent_count == 0) { DUK_DDD(DUK_DDDPRINT("gc torture enabled, pretend that first alloc attempt fails")); res = NULL; DUK_UNREF(res); goto slowpath; } #endif /* Zero-size allocation should happen very rarely (if at all), so * don't check zero size on NULL; handle it in the slow path * instead. This reduces size of inlined code. */ res = heap->alloc_func(heap->heap_udata, size); if (DUK_LIKELY(res != NULL)) { return res; } slowpath: if (size == 0) { DUK_D(DUK_DPRINT("first alloc attempt returned NULL for zero size alloc, use slow path to deal with it")); } else { DUK_D(DUK_DPRINT("first alloc attempt failed, attempt to gc and retry")); } return duk__heap_mem_alloc_slowpath(heap, size); } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_alloc_zeroed(duk_heap *heap, duk_size_t size) { void *res; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->alloc_func != NULL); DUK_ASSERT_DISABLE(size >= 0); res = DUK_ALLOC(heap, size); if (DUK_LIKELY(res != NULL)) { duk_memzero(res, size); } return res; } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_alloc_checked(duk_hthread *thr, duk_size_t size) { void *res; DUK_ASSERT(thr != NULL); DUK_ASSERT(thr->heap != NULL); DUK_ASSERT(thr->heap->alloc_func != NULL); res = duk_heap_mem_alloc(thr->heap, size); if (DUK_LIKELY(res != NULL)) { return res; } else if (size == 0) { DUK_ASSERT(res == NULL); return res; } DUK_ERROR_ALLOC_FAILED(thr); DUK_WO_NORETURN(return NULL;); } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_alloc_checked_zeroed(duk_hthread *thr, duk_size_t size) { void *res; DUK_ASSERT(thr != NULL); DUK_ASSERT(thr->heap != NULL); DUK_ASSERT(thr->heap->alloc_func != NULL); res = duk_heap_mem_alloc(thr->heap, size); if (DUK_LIKELY(res != NULL)) { duk_memzero(res, size); return res; } else if (size == 0) { DUK_ASSERT(res == NULL); return res; } DUK_ERROR_ALLOC_FAILED(thr); DUK_WO_NORETURN(return NULL;); } /* * Reallocate memory with garbage collection. */ /* Slow path: voluntary GC triggered, first realloc attempt failed, or zero size. */ DUK_LOCAL DUK_NOINLINE_PERF DUK_COLD void *duk__heap_mem_realloc_slowpath(duk_heap *heap, void *ptr, duk_size_t newsize) { void *res; duk_small_int_t i; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->realloc_func != NULL); /* ptr may be NULL */ DUK_ASSERT_DISABLE(newsize >= 0); /* Unlike for malloc(), zero size NULL result check happens at the call site. */ DUK_D(DUK_DPRINT("first realloc attempt failed, attempt to gc and retry")); #if 0 /* * Avoid a GC if GC is already running. See duk_heap_mem_alloc(). */ if (heap->ms_prevent_count != 0) { DUK_D(DUK_DPRINT("duk_heap_mem_realloc() failed, gc in progress (gc skipped), alloc size %ld", (long) newsize)); return NULL; } #endif /* * Retry with several GC attempts. Initial attempts are made without * emergency mode; later attempts use emergency mode which minimizes * memory allocations forcibly. */ for (i = 0; i < DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_LIMIT; i++) { duk_small_uint_t flags; flags = 0; if (i >= DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_EMERGENCY_LIMIT - 1) { flags |= DUK_MS_FLAG_EMERGENCY; } duk_heap_mark_and_sweep(heap, flags); res = heap->realloc_func(heap->heap_udata, ptr, newsize); if (res != NULL || newsize == 0) { DUK_D(DUK_DPRINT("duk_heap_mem_realloc() succeeded after gc (pass %ld), alloc size %ld", (long) (i + 1), (long) newsize)); return res; } } DUK_D(DUK_DPRINT("duk_heap_mem_realloc() failed even after gc, alloc size %ld", (long) newsize)); return NULL; } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_realloc(duk_heap *heap, void *ptr, duk_size_t newsize) { void *res; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->realloc_func != NULL); /* ptr may be NULL */ DUK_ASSERT_DISABLE(newsize >= 0); #if defined(DUK_USE_VOLUNTARY_GC) /* Voluntary periodic GC (if enabled). */ if (DUK_UNLIKELY(--(heap)->ms_trigger_counter < 0)) { goto gc_retry; } #endif #if defined(DUK_USE_GC_TORTURE) /* Simulate alloc failure on every realloc, except when mark-and-sweep * is running. */ if (heap->ms_prevent_count == 0) { DUK_DDD(DUK_DDDPRINT("gc torture enabled, pretend that first realloc attempt fails")); res = NULL; DUK_UNREF(res); goto gc_retry; } #endif res = heap->realloc_func(heap->heap_udata, ptr, newsize); if (DUK_LIKELY(res != NULL) || newsize == 0) { if (res != NULL && newsize == 0) { DUK_DD(DUK_DDPRINT("first realloc attempt returned NULL for zero size realloc, accept and return NULL")); } return res; } else { goto gc_retry; } /* Never here. */ gc_retry: return duk__heap_mem_realloc_slowpath(heap, ptr, newsize); } /* * Reallocate memory with garbage collection, using a callback to provide * the current allocated pointer. This variant is used when a mark-and-sweep * (e.g. finalizers) might change the original pointer. */ /* Slow path: voluntary GC triggered, first realloc attempt failed, or zero size. */ DUK_LOCAL DUK_NOINLINE_PERF DUK_COLD void *duk__heap_mem_realloc_indirect_slowpath(duk_heap *heap, duk_mem_getptr cb, void *ud, duk_size_t newsize) { void *res; duk_small_int_t i; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->realloc_func != NULL); DUK_ASSERT_DISABLE(newsize >= 0); /* Unlike for malloc(), zero size NULL result check happens at the call site. */ DUK_D(DUK_DPRINT("first indirect realloc attempt failed, attempt to gc and retry")); #if 0 /* * Avoid a GC if GC is already running. See duk_heap_mem_alloc(). */ if (heap->ms_prevent_count != 0) { DUK_D(DUK_DPRINT("duk_heap_mem_realloc_indirect() failed, gc in progress (gc skipped), alloc size %ld", (long) newsize)); return NULL; } #endif /* * Retry with several GC attempts. Initial attempts are made without * emergency mode; later attempts use emergency mode which minimizes * memory allocations forcibly. */ for (i = 0; i < DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_LIMIT; i++) { duk_small_uint_t flags; #if defined(DUK_USE_DEBUG) void *ptr_pre; void *ptr_post; #endif #if defined(DUK_USE_DEBUG) ptr_pre = cb(heap, ud); #endif flags = 0; if (i >= DUK_HEAP_ALLOC_FAIL_MARKANDSWEEP_EMERGENCY_LIMIT - 1) { flags |= DUK_MS_FLAG_EMERGENCY; } duk_heap_mark_and_sweep(heap, flags); #if defined(DUK_USE_DEBUG) ptr_post = cb(heap, ud); if (ptr_pre != ptr_post) { DUK_DD(DUK_DDPRINT("realloc base pointer changed by mark-and-sweep: %p -> %p", (void *) ptr_pre, (void *) ptr_post)); } #endif /* Note: key issue here is to re-lookup the base pointer on every attempt. * The pointer being reallocated may change after every mark-and-sweep. */ res = heap->realloc_func(heap->heap_udata, cb(heap, ud), newsize); if (res != NULL || newsize == 0) { DUK_D(DUK_DPRINT("duk_heap_mem_realloc_indirect() succeeded after gc (pass %ld), alloc size %ld", (long) (i + 1), (long) newsize)); return res; } } DUK_D(DUK_DPRINT("duk_heap_mem_realloc_indirect() failed even after gc, alloc size %ld", (long) newsize)); return NULL; } DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void *duk_heap_mem_realloc_indirect(duk_heap *heap, duk_mem_getptr cb, void *ud, duk_size_t newsize) { void *res; DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->realloc_func != NULL); DUK_ASSERT_DISABLE(newsize >= 0); #if defined(DUK_USE_VOLUNTARY_GC) /* Voluntary periodic GC (if enabled). */ if (DUK_UNLIKELY(--(heap)->ms_trigger_counter < 0)) { goto gc_retry; } #endif #if defined(DUK_USE_GC_TORTURE) /* Simulate alloc failure on every realloc, except when mark-and-sweep * is running. */ if (heap->ms_prevent_count == 0) { DUK_DDD(DUK_DDDPRINT("gc torture enabled, pretend that first indirect realloc attempt fails")); res = NULL; DUK_UNREF(res); goto gc_retry; } #endif res = heap->realloc_func(heap->heap_udata, cb(heap, ud), newsize); if (DUK_LIKELY(res != NULL) || newsize == 0) { if (res != NULL && newsize == 0) { DUK_DD(DUK_DDPRINT( "first indirect realloc attempt returned NULL for zero size realloc, accept and return NULL")); } return res; } else { goto gc_retry; } /* Never here. */ gc_retry: return duk__heap_mem_realloc_indirect_slowpath(heap, cb, ud, newsize); } /* * Free memory */ DUK_INTERNAL DUK_INLINE_PERF DUK_HOT void duk_heap_mem_free(duk_heap *heap, void *ptr) { DUK_ASSERT(heap != NULL); DUK_ASSERT(heap->free_func != NULL); /* ptr may be NULL */ /* Must behave like a no-op with NULL and any pointer returned from * malloc/realloc with zero size. */ heap->free_func(heap->heap_udata, ptr); /* Never perform a GC (even voluntary) in a memory free, otherwise * all call sites doing frees would need to deal with the side effects. * No need to update voluntary GC counter either. */ } ```
Roberto Tenga (born 25 January 1990) is an Italian rugby union player. His usual position is as a Prop and he currently plays for Fiamme Oro in Top12. Tenga played for Zebre from 2017 to 2020. In 2016 and 2017, Tenga was named in the Emerging Italy squad for the 2016 World Rugby Nations Cup and 2017 World Rugby Nations Cup. References External links It's rugby France Profile Player Profile ESPN Profile 1990 births Living people Rugby union props Sportspeople from Benevento Italian rugby union players
```objective-c #pragma once #include "BaseMapper.h" #include "VrcIrq.h" class Waixing252 : public BaseMapper { private: uint8_t _chrRegs[8]; unique_ptr<VrcIrq> _irq; protected: uint16_t GetPRGPageSize() override { return 0x2000; } uint16_t GetCHRPageSize() override { return 0x400; } void InitMapper() override { _irq.reset(new VrcIrq(_console)); memset(_chrRegs, 0, sizeof(_chrRegs)); SelectPRGPage(2, -2); SelectPRGPage(3, -1); } void StreamState(bool saving) override { BaseMapper::StreamState(saving); SnapshotInfo irq{ _irq.get() }; ArrayInfo<uint8_t> chrRegs{ _chrRegs,8 }; Stream(chrRegs, irq); if(!saving) { UpdateState(); } } void ProcessCpuClock() override { _irq->ProcessCpuClock(); } void UpdateState() { for(int i = 0; i < 8; i++) { //CHR needs to be writeable (according to Nestopia's source, and this does remove visual glitches from the game) SetPpuMemoryMapping(0x400 * i, 0x400 * i + 0x3FF, _chrRegs[i], ChrMemoryType::Default, MemoryAccessType::ReadWrite); } } void WriteRegister(uint16_t addr, uint8_t value) override { if(addr <= 0x8FFF) { SelectPRGPage(0, value); } else if(addr >= 0xA000 && addr <= 0xAFFF) { SelectPRGPage(1, value); } else if(addr >= 0xB000 && addr <= 0xEFFF) { uint8_t shift = addr & 0x4; uint8_t bank = (((addr - 0xB000) >> 1 & 0x1800) | (addr << 7 & 0x0400)) / 0x400; _chrRegs[bank] = ((_chrRegs[bank] & (0xF0 >> shift)) | ((value & 0x0F) << shift)); UpdateState(); } else { switch(addr & 0xF00C) { case 0xF000: _irq->SetReloadValueNibble(value, false); break; case 0xF004: _irq->SetReloadValueNibble(value, true); break; case 0xF008: _irq->SetControlValue(value); break; case 0xF00C: _irq->AcknowledgeIrq(); break; } } } }; ```
Antonio del Giudice (1657–1733), duke of Giovinazzo, prince of Cellamare, was a Spanish nobleman and diplomat. Life Giudice was born at Naples. In 1715, he was made Spanish ambassador to France. An instrument in the hands of Giulio Alberoni's plots, he became involved in the Cellamare Conspiracy against Philippe d'Orléans begun in Paris in 1718 - its aim was to transfer the regency of France from Philippe to Philip V of Spain, but it was discovered and Giudice was forced to leave France. References to this conspiracy are to be found in the Mémoires de la Régence, Amsterdam, 1749, and l'Histoire de la conspiration de Cellamare by Jean Vatout, 1832. He died in Seville. Sources 1657 births 1733 deaths Spanish nobility Spanish diplomats Ambassadors of Spain to France
```python import json import os from botbuilder.core import ( CardFactory, MessageFactory, TurnContext, ) from botbuilder.schema import HeroCard, Attachment, CardAction from botbuilder.schema.teams import ( TaskModuleMessageResponse, TaskModuleRequest, TaskModuleResponse, TaskModuleTaskInfo, ) from botbuilder.core.teams import TeamsActivityHandler from config import DefaultConfig from models import ( UISettings, TaskModuleUIConstants, TaskModuleIds, TaskModuleResponseFactory, ) class TeamsTaskModuleBot(TeamsActivityHandler): def __init__(self, config: DefaultConfig): self.__base_url = config.BASE_URL async def on_message_activity(self, turn_context: TurnContext): """ This displays two cards: A HeroCard and an AdaptiveCard. Both have the same options. When any of the options are selected, `on_teams_task_module_fecth` is called. """ reply = MessageFactory.list( [ TeamsTaskModuleBot.__get_task_module_hero_card_options(), TeamsTaskModuleBot.__get_task_module_adaptive_card_options(), ] ) await turn_context.send_activity(reply) async def on_teams_task_module_fetch( self, turn_context: TurnContext, task_module_request: TaskModuleRequest ) -> TaskModuleResponse: """ Called when the user selects an options from the displayed HeroCard or AdaptiveCard. The result is the action to perform. """ card_task_fetch_value = task_module_request.data["data"] task_info = TaskModuleTaskInfo() if card_task_fetch_value == TaskModuleIds.YOUTUBE: # Display the YouTube.html page task_info.url = task_info.fallback_url = ( self.__base_url + "/" + TaskModuleIds.YOUTUBE + ".html" ) TeamsTaskModuleBot.__set_task_info(task_info, TaskModuleUIConstants.YOUTUBE) elif card_task_fetch_value == TaskModuleIds.CUSTOM_FORM: # Display the CustomForm.html page, and post the form data back via # on_teams_task_module_submit. task_info.url = task_info.fallback_url = ( self.__base_url + "/" + TaskModuleIds.CUSTOM_FORM + ".html" ) TeamsTaskModuleBot.__set_task_info( task_info, TaskModuleUIConstants.CUSTOM_FORM ) elif card_task_fetch_value == TaskModuleIds.ADAPTIVE_CARD: # Display an AdaptiveCard to prompt user for text, and post it back via # on_teams_task_module_submit. task_info.card = TeamsTaskModuleBot.__create_adaptive_card_attachment() TeamsTaskModuleBot.__set_task_info( task_info, TaskModuleUIConstants.ADAPTIVE_CARD ) return TaskModuleResponseFactory.to_task_module_response(task_info) async def on_teams_task_module_submit( self, turn_context: TurnContext, task_module_request: TaskModuleRequest ) -> TaskModuleResponse: """ Called when data is being returned from the selected option (see `on_teams_task_module_fetch'). """ # Echo the users input back. In a production bot, this is where you'd add behavior in # response to the input. await turn_context.send_activity( MessageFactory.text( f"on_teams_task_module_submit: {json.dumps(task_module_request.data)}" ) ) message_response = TaskModuleMessageResponse(value="Thanks!") return TaskModuleResponse(task=message_response) @staticmethod def __set_task_info(task_info: TaskModuleTaskInfo, ui_constants: UISettings): task_info.height = ui_constants.height task_info.width = ui_constants.width task_info.title = ui_constants.title @staticmethod def __get_task_module_hero_card_options() -> Attachment: buttons = [ CardAction( type="invoke", title=card_type.button_title, value=json.dumps({"type": "task/fetch", "data": card_type.id}), ) for card_type in [ TaskModuleUIConstants.ADAPTIVE_CARD, TaskModuleUIConstants.CUSTOM_FORM, TaskModuleUIConstants.YOUTUBE, ] ] card = HeroCard(title="Task Module Invocation from Hero Card", buttons=buttons,) return CardFactory.hero_card(card) @staticmethod def __get_task_module_adaptive_card_options() -> Attachment: adaptive_card = { "$schema": "path_to_url", "version": "1.0", "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Task Module Invocation from Adaptive Card", "weight": "bolder", "size": 3, }, ], "actions": [ { "type": "Action.Submit", "title": card_type.button_title, "data": {"msteams": {"type": "task/fetch"}, "data": card_type.id}, } for card_type in [ TaskModuleUIConstants.ADAPTIVE_CARD, TaskModuleUIConstants.CUSTOM_FORM, TaskModuleUIConstants.YOUTUBE, ] ], } return CardFactory.adaptive_card(adaptive_card) @staticmethod def __create_adaptive_card_attachment() -> Attachment: card_path = os.path.join(os.getcwd(), "resources/adaptiveCard.json") with open(card_path, "rb") as in_file: card_data = json.load(in_file) return CardFactory.adaptive_card(card_data) ```
Guwenhua Jie, Tianjin's Ancient Culture Street, is a pedestrian pathway complex dotted with temple gates and kiosks on the west bank of the Hai River in Tianjin, China. The Nankai District area is classified as a AAAAA scenic area by the China National Tourism Administration. Tianjin Ancient Culture Street was opened on New Year's Day in 1986. It preserves the architectural style of Qing dynasty, with its Niangniang Palace honoring the sea-goddess Mazu in the center. There are many tourist attractions along the street. Queen of Heaven Palace The Queen of Heaven, Tianhou, or Niangniang Palace is a temple to the Chinese sea-goddess Mazu, a medieval Fujianese who was later deified. It is in the middle of the Ancient Culture Street. Other names include "Niangniang" or "Tianhou Temple", the "Tianfei Palace", the "Xiaozhigu Tianfei Palace", and the "Western Temple". The Niangniang Palace was first constructed in 1326 under the Yuan; it has subsequently been repaired many times. The complex faces east with the Haihe River running in front. From east to west, the main buildings are the Opera Tower, the Flag Pole, the Temple Gate, the Memorial Archway, the Front Hall, the Main Hall, Canon-Storing Pavilion, the Qisheng Temple, the Bell-Drum Tower, the Side Hall, and the Zhangxian Pavilion. The Main Hall is constructed on a high and large platform, which is typical for wooden structures of the mid- to late-Ming Dynasty. The complex is one of the three major surviving Mazu temples in China and one of the oldest. The main function of the temple is to pray for safe navigation. The palace was a center of marine sacrifice in past dynasties and a venue for sailors to have happy get-togethers. Besides ceremonial rituals held to worship the Goddess of the Sea, performances are held to thank her. It is said that the 23rd day of the third month of the Chinese lunar calendar is Matsu's birthday and a folk flower fair is held here annually to commemorate her on the day. Yuhuangge Taoist Temple Yuhuangge Taoist Temple was once the most famous building group in Hai River Triple Junction. In 2007, an ancient government road in Ming Dynasty was found, however large-scale excavation was not made due to architectural and other reasons. A few days ago, many famous historians had special argumentation in respect of discovering historical and cultural resources of the Cultural Street, and improving the cultural landscape of Yuhuangge Taoist Temple. Around Yuhuangge Taoist Temple, there may be many historical relics and sites to be discovered. Experts advised the restoration of the museum held by historical Zhili Public Welfare Services in this Temple about one hundred years ago, forming the “Yuhuangge Historical Museum”. Yuhuangge was built in Hongwu Years of Ming Dynasty, 1368 AD, and is one of the oldest buildings remaining in Tianjin. References Tourist attractions in Tianjin AAAAA-rated tourist attractions
Horace Wayman Bivins (or Bivens or Bivans or Bevans) (May 8, 1862, Accomack County, Virginia1960, Billings, Montana) was a career soldier and member of the 10th Cavalry in the United States Army. The Indians in the West referred to the African-American unit as Buffalo Soldiers. Bivins gained the rank of sergeant and fought in the Indian Wars and in the Spanish–American War of 1898, receiving a Silver Star for his service in Cuba. In 1903, he received the first Army Distinguished Pistol Shot badge, retroactively for achievements recorded in 1894. He is also the first U.S. Army Double Distinguished Shooter. He retired in 1913 but returned for a period in the Army after the United States entered World War I, being commissioned as a captain. He retired to Billings, Montana where he resided with his wife until her death in 1943. He died December 4, 1960 at the age of 94 and is buried in Baltimore National Cemetery. Early life Bivins was born free on May 8, 1862, in Accomack County, Virginia; his parents Severn S. and Elizabeth Bivins were established as free people of color before the American Civil War and farmed on Virginia's Eastern Shore. Bivins grew up working with them, but decided to attend Hampton Institute in Virginia. In 1887 he joined the United States Army as a private. Military career Assigned to the 10th Cavalry, Bivins participated in the campaign against Geronimo in Arizona, known as part of the Indian Wars in the American West. He also fought with the 10th United States Cavalry Regiment against Spanish forces in Cuba in 1898 during the Spanish–American War. Bivins was commended for valor and awarded a Silver Star during the Battle of Santiago de Cuba, during which he suffered a head wound. In 1899, Bivins was one of the contributors to the book, Under the Fire with Tenth U.S. Cavalry, covering the experiences of the 10th Cavalry in the war. After serving at a number of posts, including the Philippines, Bivins retired from the army in 1913. He had "distinguished himself as a national revolver and carbine marksmanship champion, proudly wearing his many awards." During an examination of Army records at some point after the establishment of the Distinguished Pistol Program in 1903, Army personnel determined that then Corporal Horace Waymon Bivins then assigned to Troop B, 10th U.S. Cavalry Regiment had won at least three pistol marksmanship championship awards, accomplishing this in 1894. This qualified him for the newly established Distinguished Pistol badge. He was retroactively awarded the first Army Distinguished Pistol Shot badge for his distinction in marksmanship competition. Bivins is the only shooter to have been retroactively awarded the medal for accomplishments before 1903. In 1894 Corporal Bivins had also been awarded the United States Army Distinguished Rifle Badge, and in doing so became the first United States Army Double Distinguished Shooter, an extremely rare honor. Bivins briefly returned to active duty in 1918 upon the entry of the United States into World War I. Promoted to Captain, he served at Camp Dix, New Jersey for a six-month period. He retired again in 1919, moving to Billings, Montana where he lived with his wife Claudia Browning, who died in 1943 in Billings. In the late 1940s Captain Bivins moved to Philadelphia. He died December 4, 1960 at the age of 94. He is buried at Baltimore National Cemetery. References 1860s births 1937 deaths People from Accomack County, Virginia Hampton University alumni American military personnel of the Spanish–American War American male sport shooters United States Army officers Buffalo Soldiers Burials at Baltimore National Cemetery
This is a list of members of the Riksdag, the national parliament of Sweden. The Riksdag is a unicameral assembly with 349 members of parliament (), who at the time were elected on a proportional basis to serve fixed terms of three years. In the Riksdag, members are seated per constituency and not party. The following MPs were elected in the 1991 Swedish general election and served until the 1994 Swedish general election. Members of the social democratic Cabinet of Göran Persson, the ruling party during this term, are marked in bold, party leaders of the seven parties represented in the Riksdag in italic. Elected parliamentarians Notes 1991 in Sweden 1992 in Sweden 1993 in Sweden 1994 in Sweden 1991-1994 List
Lake Burrumbeet is a large but shallow eutrophic lake in central western Victoria, Australia. Located west of Ballarat and west of Melbourne, the lake has been progressively emptying since 1997 and was declared completely dry in 2004. It has however in recent years refilled because of good rainfalls, making water sports in the lake once again possible, with recreational jet skiing and boating taking place in the winter of 2010. The lake is a major wetland for the region because of its size and is utilised as a recreational area for boating, fishing and camping. Burrumbeet is the largest of four shallow lakes in the Ballarat region covering approximately . The lake reserve is of important historical significance as many Aboriginal camp sites and areas of geological interest are located around its foreshore. Physical features and hydrology The lake is a large open water body with a surface area of approximately . Burrumbeet Creek is the main input to the lake with some other catchment areas to the north and south. The flow of the creek is supplemented by a release of of treated waste water per year from the Ballarat North Treatment Plant. The lake outlet is situated in the south-west shore of the lake and flows into Baillie Creek, which is a tributary of Hopkins River. The outlet is controlled by a series of boards which are raised or lowered depending on water levels. The lake is characterised by a sand and mud bottom with rock outcrops. Surrounded by grazing land the lake has suffered from a rise in salinity levels due to abnormally dry conditions. This is reflected also by a fall in lake levels. High nutrient levels and algal blooms occur in the lake from time to time. The lake is often discoloured and has seasonal changes in turbidity levels. History Before European settlement the area around Lake Burrumbeet was inhabited and frequented by the Burrumbeet balug clan of the Wada wurrung people. The area would have provided a good source of food, particularly short-finned eel. The name Burrumbeet derives from the local aboriginal word burrumbidj meaning 'muddy or dirty water'. Some artifacts and tools have been found on the northern edge of the lake in the past. European settlement came in 1838 when Thomas Learmonth and his brother took up the Ercildoun squatting run to the north of the lake. William Bramwell Withers recounting in his "History of Ballarat" describes hot days and freezing cold nights, so much so, that the early pioneers camping place, near Burrumbeet, was named Mt Misery. In the next year, 1839, the bed of Lake Burrumbeet was quite dry, and it remained so for several succeeding summers when Mrs Andrew Scott drove across the dry lake bed in 1840. In 1944 it was reported that the lake had again completely dried up. On 21 October 1965, a Ballarat Aero Club Cessna plunged into the lake with a pilot and three passengers on board. Two people were killed when the plane crashed 1.5 km from shore. The bodies and most of the plane's wreckage were removed from the lake in the days following the crash. With the lake recently being dry the remaining wreckage was only discovered and is believed to have since been souvenired. Flora and fauna Burrumbeet is one of the most productive redfin perch waterways in Victoria, with fish to 2.5 kg and is very popular with anglers. Short-finned eel to , roach to , tench to , goldfish, flat-headed gudgeon, Australian smelt and European carp are found here. The lake is occasionally stocked with rainbow trout when conditions are suitable and at those times, it provides a very good trout fishery. The lake is also fished commercially for short-finned eel. Birdlife such as black swan are common. There is little vegetation remaining of value around the lake due to the intensive agricultural methods used since settlement. However, there are stands of river red gum near the mouth of Burrumbeet creek estimated to be over 500 years old. The current drought conditions has created an environment suitable for unwanted vegetation to grow on the lake bed, in particular, Agrostis Avenacea, commonly known as fairy grass or tumble weed. When dry, this type of grass produces a seed head that becomes wind blown and can become a nuisance value and a fire hazard due to it gathering in wind drifts. See also Lake Wendouree Drought in Australia References External links Glenelg-Hopkins Catchment Management Authority City of Ballarat Central Highlands Water Lakes of Victoria (state) Glenelg Hopkins catchment Rivers of Grampians (region) Ballarat
```javascript var statuses = require('statuses'); var inherits = require('inherits'); function toIdentifier(str) { return str.split(' ').map(function (token) { return token.slice(0, 1).toUpperCase() + token.slice(1) }).join('').replace(/[^ _0-9a-z]/gi, '') } exports = module.exports = function httpError() { // so much arity going on ~_~ var err; var msg; var status = 500; var props = {}; for (var i = 0; i < arguments.length; i++) { var arg = arguments[i]; if (arg instanceof Error) { err = arg; status = err.status || err.statusCode || status; continue; } switch (typeof arg) { case 'string': msg = arg; break; case 'number': status = arg; break; case 'object': props = arg; break; } } if (typeof status !== 'number' || !statuses[status]) { status = 500 } // constructor var HttpError = exports[status] if (!err) { // create error err = HttpError ? new HttpError(msg) : new Error(msg || statuses[status]) Error.captureStackTrace(err, httpError) } if (!HttpError || !(err instanceof HttpError)) { // add properties to generic error err.expose = status < 500 err.status = err.statusCode = status } for (var key in props) { if (key !== 'status' && key !== 'statusCode') { err[key] = props[key] } } return err; }; // create generic error objects var codes = statuses.codes.filter(function (num) { return num >= 400; }); codes.forEach(function (code) { var name = toIdentifier(statuses[code]) var className = name.match(/Error$/) ? name : name + 'Error' if (code >= 500) { var ServerError = function ServerError(msg) { var self = new Error(msg != null ? msg : statuses[code]) Error.captureStackTrace(self, ServerError) self.__proto__ = ServerError.prototype Object.defineProperty(self, 'name', { enumerable: false, configurable: true, value: className, writable: true }) return self } inherits(ServerError, Error); ServerError.prototype.status = ServerError.prototype.statusCode = code; ServerError.prototype.expose = false; exports[code] = exports[name] = ServerError return; } var ClientError = function ClientError(msg) { var self = new Error(msg != null ? msg : statuses[code]) Error.captureStackTrace(self, ClientError) self.__proto__ = ClientError.prototype Object.defineProperty(self, 'name', { enumerable: false, configurable: true, value: className, writable: true }) return self } inherits(ClientError, Error); ClientError.prototype.status = ClientError.prototype.statusCode = code; ClientError.prototype.expose = true; exports[code] = exports[name] = ClientError return; }); // backwards-compatibility exports["I'mateapot"] = exports.ImATeapot ```
```shell Quick `cd` tips Rapidly invoke an editor to write a long, complex, or tricky command Adding directories to your `$PATH` Keep useful commands in your shell history with tags ```
Konstantinos Staikos (; 1943 – 3 April 2023) was a Greek architect and book historian. He was born in Athens. He studied interior architecture and design in Paris, and has been practicing in that field since the 1960s. In the early 1970s he started to take a serious interest in the history of Greek books during the period of the Greek diaspora (from the Fall of Constantinople in 1453 to about 1830). In his professional capacity he was commissioned to redesign and reorganize two historic libraries of the Christian world: those of the Monastery of St John on Patmos (founded in 1089), completed in 1989, and of the Ecumenical Patriarchate in the Phanar, Constantinople (dating from 353, soon after the city's official inauguration as the capital of the Eastern Roman Empire), completed in 1993. Towards the end of the 1980s he embarked on a systematic study of the history of libraries in the countries of the Mediterranean Basin and the Near East, from earliest antiquity to the Renaissance (about 3000 BC to AD 1600). This took him to all the most important monastic and secular libraries in Europe, to gather material about their founders and their history, and necessitated a great deal of research to discover what could be learnt from ancient Greek and Latin and other early sources about the methods of book distribution, the book trade and book-collecting – from the papyrus roll to the codex and the printed book –, as well as the evolution of library architecture over those four and a half millennia. Among his publications are The Great Libraries (2000), the five volumes History of the Library in Western Civilization, Oak Knoll Press (2001-2013) and the Books and Ideas. The Library of Plato and of the Academy, Oak Knoll Press (2013). The Konstantinos Staikos' book collection was acquired by the Onassis Foundation in 2010 to be preserved as perpetual property of the Greek Nation, to make these books accessible to researchers, being gradually uploaded on the Internet so that they may be reached by as many people as possible. The Konstantinos Staikos' book collection was renamed to "Hellenic Library of the Onassis Foundation" and is housed in the neoclassical building at 56 Amalias Avenue Plaka, Athens, Greece. Staikos died in Athens on 3 April 2023, at the age of 80. Works The Great Libraries: From the Antiquities to the Renaissance, New Castle, Del.: Oak Knoll Press, 2000. The History of the Library in Western Civilization, translated by Timothy Cullen, New Castle, Del.: Oak Knoll Press, 2004-2013 (six volumes: 1. From Minos to Cleopatra; 2. From Cicero to Hadrian; 3. From Constantine the Great to cardinal Bessarion; 4. From Cassiodorus to Furnival: classical and Christian letters, schools and libraries in the monasteries and universities, Western book centres; 5. From Petrarch to Michelangelo: the revival of the study of the classics and the first humanistic libraries printing in the service of the world of books and monumental libraries; 6. Epilogue and General Index). Books and Ideas: The Library of Plato and the Academy, New Castle, Del.: Oak Knoll Press, 2013. Testimonies of Platonic Tradition. From the 4th BCE to the 16th Century, New Castle, Del.: Oak Knoll Press, 2015. Mouseion and the Library of the Ptolemies in Alexandria: Alexander the Great's Vision of a Universal Intellectual Centre, New Castle, Del.: Oak Knoll Press, 2021. References 1943 births 2023 deaths Architects from Athens 20th-century Greek historians 21st-century Greek historians
Quiateot is the name of a rain deity in the mythological traditions of the pre-Columbian and contact-era Nicarao people, an indigenous grouping on the periphery of the Mesoamerican cultural area, located in present-day Nicaragua. His father and mother are the supreme deities Omeyateite and Omeyatecigoat, respectively. References External links http://www.sacred-texts.com/astro/ml/ml14.htm Rain deities Mesoamerican deities
```python import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import urllib3 urllib3.disable_warnings() class Client(BaseClient): def __init__(self, server_url: str, verify_certificate: bool, proxy: bool, app_token=str): super().__init__(base_url=server_url, verify=verify_certificate, proxy=proxy) self._app_token = app_token def fetch_password(self, method, resource_id, account_id, reason, ticket_id): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts/{account_id}/password' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "REASON": reason, "TICKETID": ticket_id } } } params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, params=params) def create_resource( self, method, resource_name, account_name, resource_type, resource_url, password, notes, location, dnsname, department, resource_description, domain_name, resourcegroup_name, owner_name, resource_password_policy, account_password_policy ): URL_SUFFIX = '/restapi/json/v1/resources' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "RESOURCENAME": resource_name, "ACCOUNTNAME": account_name, "RESOURCETYPE": resource_type, "PASSWORD": password, "NOTES": notes, "LOCATION": location, "DNSNAME": dnsname, "DEPARTMENT": department, "RESOURCEDESCRIPTION": resource_description, "DOMAINNAME": domain_name, "RESOURCEGROUPNAME": resourcegroup_name, "OWNERNAME": owner_name, "RESOURCEURL": resource_url, "RESOURCEPASSWORDPOLICY": resource_password_policy, "ACCOUNTPASSWORDPOLICY": account_password_policy } } } params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, data=params) def create_account(self, method, resource_id, account_name, password, notes, account_password_policy): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "ACCOUNTLIST": [{ "ACCOUNTNAME": account_name, "PASSWORD": password, "NOTES": notes, "ACCOUNTPASSWORDPOLICY": account_password_policy }] } } } params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, data=params) def update_resource( self, method, resource_id, resource_name, resource_type, resource_url, resource_description, resource_password_policy, location, department, dnsname, owner_name ): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "RESOURCENAME": resource_name, "RESOURCETYPE": resource_type, "RESOURCEDESCRIPTION": resource_description, "RESOURCEURL": resource_url, "RESOURCEPASSWORDPOLICY": resource_password_policy, "LOCATION": location, "DEPARTMENT": department, "DNSNAME": dnsname, } } } if owner_name != "": query["operation"]["Details"]["OWNERNAME"] = owner_name params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, data=params) def update_account(self, method, resource_id, account_id, account_name, notes, owner_name, account_password_policy): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts/{account_id}' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "ACCOUNTNAME": account_name, "NOTES": notes, "ACCOUNTPASSWORDPOLICY": account_password_policy, } } } if owner_name != "": query["operation"]["Details"]["OWNERNAME"] = owner_name params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, data=params) def fetch_account_details(self, method, resource_id, account_id): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts/{account_id}' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } return self._http_request(method, URL_SUFFIX, headers=headers) def fetch_resources(self, method): URL_SUFFIX = '/restapi/json/v1/resources' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } return self._http_request(method, URL_SUFFIX, headers=headers) def fetch_accounts(self, method, resource_id): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } return self._http_request(method, URL_SUFFIX, headers=headers) def update_account_password(self, method, resource_id, account_id, new_password, reset_type, reason, ticket_id): URL_SUFFIX = f'/restapi/json/v1/resources/{resource_id}/accounts/{account_id}/password' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } query = { "operation": { "Details": { "NEWPASSWORD": new_password, "RESETTYPE": reset_type, "REASON": reason, "TICKETID": ticket_id } } } params = { 'INPUT_DATA': f'{query}' } return self._http_request(method, URL_SUFFIX, headers=headers, data=params) def fetch_resource_account_id(self, method, resource_name, account_name): URL_SUFFIX = f'/restapi/json/v1/resources/getResourceIdAccountId?RESOURCENAME={resource_name}&ACCOUNTNAME={account_name}' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } return self._http_request(method, URL_SUFFIX, headers=headers) def check_connection(self, method): URL_SUFFIX = '/restapi/json/v1/resources/resourcetypes' headers = { 'APP_AUTHTOKEN': self._app_token, 'APP_TYPE': '17' } return self._http_request(method, URL_SUFFIX, headers=headers) def test_module( client: Client, ): test_result = client.check_connection("GET") if not test_result.get('operation').get('Details'): return_results('Failed to connect to server') else: return_results('ok') def pam360_fetch_password( client: Client, resource_id: str = "", account_id: str = "", reason: str = "", ticket_id: str = "" ): creds_list = client.fetch_password("GET", resource_id, account_id, reason, ticket_id) readable_output = tableToMarkdown('Fetch Password', creds_list.get("operation")) results = CommandResults( outputs=creds_list, raw_response=creds_list, outputs_prefix='PAM360.Account', outputs_key_field='PASSWORD', readable_output=readable_output, ) return results def pam360_create_resource( client: Client, resource_name: str = "", account_name: str = "", resource_type: str = "", resource_url: str = "", password: str = "", notes: str = "", location: str = "", dnsname: str = "", department: str = "", resource_description: str = "", domain_name: str = "", resourcegroup_name: str = "", owner_name: str = "", resource_password_policy: str = "", account_password_policy: str = "" ): create_resource = client.create_resource("POST", resource_name, account_name, resource_type, resource_url, password, notes, location, dnsname, department, resource_description, domain_name, resourcegroup_name, owner_name, resource_password_policy, account_password_policy) readable_output = tableToMarkdown('Create Resource', create_resource.get("operation")) results = CommandResults( outputs=create_resource, raw_response=create_resource, outputs_prefix='PAM360.Resource', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_create_account( client: Client, resource_id: str = "", account_name: str = "", password: str = "", notes: str = "", account_password_policy: str = "" ): create_account = client.create_account("POST", resource_id, account_name, password, notes, account_password_policy) readable_output = tableToMarkdown('Create Account', create_account.get("operation")) results = CommandResults( outputs=create_account, raw_response=create_account, outputs_prefix='PAM360.Account', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_update_resource( client: Client, resource_id: str = "", resource_name: str = "", resource_type: str = "", resource_url: str = "", resource_description: str = "", resource_password_policy: str = "", location: str = "", department: str = "", dnsname: str = "", owner_name: str = "" ): update_resource = client.update_resource("PUT", resource_id, resource_name, resource_type, resource_url, resource_description, resource_password_policy, location, department, dnsname, owner_name) readable_output = tableToMarkdown('Update Resource', update_resource.get("operation")) results = CommandResults( outputs=update_resource, raw_response=update_resource, outputs_prefix='PAM360.Resource', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_update_account( client: Client, resource_id: str = "", account_id: str = "", account_name: str = "", notes: str = "", owner_name: str = "", account_password_policy: str = "" ): update_account = client.update_account("PUT", resource_id, account_id, account_name, notes, owner_name, account_password_policy) readable_output = tableToMarkdown('Update Account', update_account.get("operation")) results = CommandResults( outputs=update_account, raw_response=update_account, outputs_prefix='PAM360.Account', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_fetch_account_details( client: Client, resource_id: str = "", account_id: str = "" ): account_details = client.fetch_account_details("GET", resource_id, account_id) readable_output = tableToMarkdown('Fetch Account Details', account_details.get("operation")) results = CommandResults( outputs=account_details, raw_response=account_details, outputs_prefix='PAM360.Account', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_list_resources(client, **args): resource_list = client.fetch_resources("GET") readable_output = tableToMarkdown('List all Resources', resource_list.get("operation")) results = CommandResults( outputs=resource_list, raw_response=resource_list, outputs_prefix='PAM360.Resource', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_list_accounts( client: Client, resource_id: str = "" ): account_list = client.fetch_accounts("GET", resource_id) readable_output = tableToMarkdown('List all Accounts', account_list.get("operation")) results = CommandResults( outputs=account_list, raw_response=account_list, outputs_prefix='PAM360.Account', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_update_account_password( client: Client, resource_id: str = "", account_id: str = "", new_password: str = "", reset_type: str = "", reason: str = "", ticket_id: str = "" ): update_password = client.update_account_password("PUT", resource_id, account_id, new_password, reset_type, reason, ticket_id) readable_output = tableToMarkdown('Update Account Password', update_password.get("operation")) results = CommandResults( outputs=update_password, raw_response=update_password, outputs_prefix='PAM360.Account', outputs_key_field='message', readable_output=readable_output, ) return results def pam360_fetch_resource_account_id( client: Client, resource_name: str = "", account_name: str = "" ): fetch_id = client.fetch_resource_account_id("GET", resource_name, account_name) readable_output = tableToMarkdown('Fetch Resource Account ID', fetch_id.get("operation")) results = CommandResults( outputs=fetch_id, raw_response=fetch_id, outputs_prefix='PAM360.Resource', outputs_key_field='message', readable_output=readable_output, ) return results def main(): params = demisto.params() url = params.get('url') app_token = params.get('credentials').get('password') verify_certificate = not params.get('insecure') proxy = params.get('proxy') try: client = Client(server_url=url, verify_certificate=verify_certificate, proxy=proxy, app_token=app_token) command = demisto.command() demisto.debug(f'Command being called in ManageEngine PAM360 is: {command}') commands = { 'test-module': test_module, 'pam360-fetch-password': pam360_fetch_password, 'pam360-create-resource': pam360_create_resource, 'pam360-create-account': pam360_create_account, 'pam360-update-resource': pam360_update_resource, 'pam360-update-account': pam360_update_account, 'pam360-fetch-account-details': pam360_fetch_account_details, 'pam360-list-all-resources': pam360_list_resources, 'pam360-list-all-accounts': pam360_list_accounts, 'pam360-update-account-password': pam360_update_account_password, 'pam360-fetch-resource-account-id': pam360_fetch_resource_account_id, } if command in commands: return_results(commands[command](client, **demisto.args())) # type: ignore[operator] else: raise NotImplementedError(f'{command} is not an existing PAM360 command') except Exception as err: return_error(f'Unexpected error: {str(err)}', error=traceback.format_exc()) if __name__ in ['__main__', 'builtin', 'builtins']: main() ```
Vilmos Fraknói (27 February 1843 – 20 November 1924) was a Hungarian historian. He was an expert in Hungarian ecclesiastical history. Life Vilmos Fraknói (originally Vilmos Frankl) came from a Jewish family of Ürmény (today Mojmírovce, Slovakia). He studied Roman Catholic theology and philosophy, and was ordained a priest in 1865. He followed a successful ecclesial career: became canon of Nagyvárad in 1878, titular abbot of Szekszárd in 1879 and titular bishop of Arbe in 1892. Fraknói began studying Hungarian history at an early age. He published his first work in 1868, at the age of 25, about the life of Péter Pázmány – the greatest figure of Hungarian Counter-Reformation – in three volumes. He wrote about other famous Catholic personalities, like János Vitéz and Tamás Bakócz, the Renaissance archbishops of Esztergom, works written in 1879 and 1889. In 1875 Fraknói was appointed guardian of the Hungarian National Museum. He became the supervisor of all Hungarian museums and libraries in 1897. From 1870 onwards Fraknói was a member of the Hungarian Academy of Sciences, and held important positions in the Hungarian academic life. Fraknói established the Hungarian Historical Institute in Rome. Work As a historian, Fraknói was revered for his knowledge of the Hungarian-related documents in the main European archives, especially the archives of Rome, Vienne, Florence, Venice, Naples, Milan, Paris, Munich, Berlin, Kraków, The Hague and Copenhagen. He was a member of several international scientific societies. Fraknói was the editor of several important series: Értekezések a történettudományok köréből ("Historical Dissertations") Magyar Országgyűlési Emlékek ("Sources of Hungarian Parliamentary History") Monumenta Vaticana A facsimile edition of the Buda Chronica was published in 1900 by Gusztáv Ranschburg, an introductory study was provided by historian Bishop Vilmos Fraknói. His other famous works are about King Louis II of Hungary (1878), the age of the Hunyadis and Jagiellos (1896), István Werbőczy (1899) and Ignác Martinovics (1921). References 1843 births 1924 deaths Hungarian scientists Members of the Hungarian Academy of Sciences Hungarian Jews 19th-century Hungarian Roman Catholic priests Hungarian Roman Catholic theologians People from Nitra District 19th-century Hungarian historians
```c++ #include "levelsettingspopup.h" // Tnz6 includes #include "menubarcommandids.h" #include "tapp.h" #include "flipbook.h" #include "fileviewerpopup.h" #include "castselection.h" #include "fileselection.h" #include "columnselection.h" #include "levelcommand.h" // TnzQt includes #include "toonzqt/menubarcommand.h" #include "toonzqt/gutil.h" #include "toonzqt/infoviewer.h" #include "toonzqt/filefield.h" #include "toonzqt/doublefield.h" #include "toonzqt/intfield.h" #include "toonzqt/checkbox.h" #include "toonzqt/tselectionhandle.h" #include "toonzqt/icongenerator.h" #include "toonzqt/fxselection.h" // TnzLib includes #include "toonz/tscenehandle.h" #include "toonz/txsheethandle.h" #include "toonz/txshlevelhandle.h" #include "toonz/tcolumnhandle.h" #include "toonz/toonzscene.h" #include "toonz/txshleveltypes.h" #include "toonz/levelproperties.h" #include "toonz/tcamera.h" #include "toonz/levelset.h" #include "toonz/tpalettehandle.h" #include "toonz/preferences.h" #include "toonz/tstageobjecttree.h" #include "toonz/palettecontroller.h" #include "toonz/txshcell.h" #include "toonz/txsheet.h" #include "toonz/childstack.h" #include "toonz/tcolumnfx.h" #include "toonz/tframehandle.h" // TnzCore includes #include "tconvert.h" #include "tsystem.h" #include "tfiletype.h" #include "tlevel.h" #include "tstream.h" #include "tundo.h" // Qt includes #include <QHBoxLayout> #include <QComboBox> #include <QLabel> #include <QPushButton> #include <QMainWindow> #include <QGroupBox> using namespace DVGui; //your_sha256_hash------------- namespace { //your_sha256_hash------------- QString dpiToString(const TPointD &dpi) { if (dpi.x == 0.0 || dpi.y == 0.0) return QString("none"); else if (dpi.x < 0.0 || dpi.y < 0.0) return LevelSettingsPopup::tr("[Various]"); else if (areAlmostEqual(dpi.x, dpi.y, 0.01)) return QString::number(dpi.x); else return QString::number(dpi.x) + ", " + QString::number(dpi.y); } //your_sha256_hash------------- TPointD getCurrentCameraDpi() { TCamera *camera = TApp::instance()->getCurrentScene()->getScene()->getCurrentCamera(); TDimensionD size = camera->getSize(); TDimension res = camera->getRes(); return TPointD(res.lx / size.lx, res.ly / size.ly); } void uniteValue(QString &oldValue, QString &newValue, bool isFirst) { if (isFirst) oldValue = newValue; else if (oldValue != newValue && oldValue != LevelSettingsPopup::tr("[Various]")) oldValue = LevelSettingsPopup::tr("[Various]"); } void uniteValue(int &oldValue, int &newValue, bool isFirst) { if (isFirst) oldValue = newValue; else if (oldValue != -1 && oldValue != newValue) oldValue = -1; } void uniteValue(TPointD &oldValue, TPointD &newValue, bool isFirst) { if (isFirst) oldValue = newValue; else if (oldValue != TPointD(-1, -1) && oldValue != newValue) oldValue = TPointD(-1, -1); } void uniteValue(Qt::CheckState &oldValue, Qt::CheckState &newValue, bool isFirst) { if (isFirst) oldValue = newValue; else if (oldValue != Qt::PartiallyChecked && oldValue != newValue) oldValue = Qt::PartiallyChecked; } void uniteValue(double &oldValue, double &newValue, bool isFirst) { if (isFirst) oldValue = newValue; else if (oldValue != -1.0 && oldValue != newValue) oldValue = -1.0; } class LevelSettingsUndo final : public TUndo { public: enum Type { Name, Path, ScanPath, DpiType, Dpi, DoPremulti, WhiteTransp, Softness, Subsampling, LevelType, ColorSpaceGamma }; private: TXshLevelP m_xl; const Type m_type; const QVariant m_before; const QVariant m_after; void setName(const QString name) const { TLevelSet *levelSet = TApp::instance()->getCurrentScene()->getScene()->getLevelSet(); levelSet->renameLevel(m_xl.getPointer(), name.toStdWString()); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); TApp::instance()->getCurrentScene()->notifyCastChange(); } void setPath(const TFilePath path) const { TXshSoundLevelP sdl = m_xl->getSoundLevel(); if (sdl) { sdl->setPath(path); sdl->loadSoundTrack(); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); TApp::instance()->getCurrentXsheet()->notifyXsheetSoundChanged(); return; } TXshSimpleLevelP sl = m_xl->getSimpleLevel(); TXshPaletteLevelP pl = m_xl->getPaletteLevel(); if (!sl && !pl) return; if (sl) { sl->setPath(path); TApp::instance() ->getPaletteController() ->getCurrentLevelPalette() ->setPalette(sl->getPalette()); sl->invalidateFrames(); std::vector<TFrameId> frames; sl->getFids(frames); for (auto const &fid : frames) { IconGenerator::instance()->invalidate(sl.getPointer(), fid); } } else if (pl) { pl->setPath(path); TApp::instance() ->getPaletteController() ->getCurrentLevelPalette() ->setPalette(pl->getPalette()); pl->load(); } TApp::instance()->getCurrentLevel()->notifyLevelChange(); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); } void setScanPath(const TFilePath path) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() != TZP_XSHLEVEL) return; sl->setScannedPath(path); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); } void setDpiType(LevelProperties::DpiPolicy policy) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setDpiPolicy(policy); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setDpi(TPointD dpi) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setDpi(dpi); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setSubsampling(int subsampling) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setSubsampling(subsampling); sl->invalidateFrames(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance() ->getCurrentXsheet() ->getXsheet() ->getStageObjectTree() ->invalidateAll(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setDoPremulti(bool on) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setDoPremultiply(on); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setSoftness(int softness) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setDoAntialias(softness); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setWhiteTransp(bool on) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) return; sl->getProperties()->setWhiteTransp(on); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setColorSpaceGamma(double gamma) const { TXshSimpleLevelP sl = m_xl->getSimpleLevel(); if (!sl || sl->getType() != OVL_XSHLEVEL) return; sl->getProperties()->setColorSpaceGamma(gamma); sl->invalidateFrames(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance() ->getCurrentXsheet() ->getXsheet() ->getStageObjectTree() ->invalidateAll(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } void setValue(const QVariant value) const { switch (m_type) { case Name: setName(value.toString()); break; case Path: setPath(TFilePath(value.toString())); break; case ScanPath: setScanPath(TFilePath(value.toString())); break; case DpiType: setDpiType(LevelProperties::DpiPolicy(value.toInt())); break; case Dpi: { QPointF dpi = value.toPointF(); setDpi(TPointD(dpi.x(), dpi.y())); break; } case Subsampling: setSubsampling(value.toInt()); break; case DoPremulti: setDoPremulti(value.toBool()); break; case Softness: setSoftness(value.toInt()); break; case WhiteTransp: setWhiteTransp(value.toBool()); break; case ColorSpaceGamma: setColorSpaceGamma(value.toDouble()); break; default: break; } // This signal is for updating the level settings TApp::instance()->getCurrentScene()->notifySceneChanged(); } public: LevelSettingsUndo(TXshLevel *xl, Type type, const QVariant before, const QVariant after) : m_xl(xl), m_type(type), m_before(before), m_after(after) {} void undo() const override { setValue(m_before); } void redo() const override { setValue(m_after); } int getSize() const override { return sizeof *this; } QString getHistoryString() override { return QObject::tr("Edit Level Settings : %1") .arg(QString::fromStdWString(m_xl->getName())); } }; //your_sha256_hash------------- } // anonymous namespace //your_sha256_hash------------- //============================================================================= /*! \class LevelSettingsPopup \brief The LevelSettingsPopup class provides a dialog to show and change current level settings. Inherits \b Dialog. */ //your_sha256_hash------------- LevelSettingsPopup::LevelSettingsPopup() : Dialog(TApp::instance()->getMainWindow(), false, false, "LevelSettings") , m_whiteTransp(0) , m_scanPathFld(0) { setWindowTitle(tr("Level Settings")); m_nameFld = new LineEdit(); m_pathFld = new FileField(); // Path m_scanPathFld = new FileField(); // ScanPath QLabel *scanPathLabel = new QLabel(tr("Scan Path:"), this); m_typeLabel = new QLabel(); // Level Type // Type m_dpiTypeOm = new QComboBox(); // DPI QLabel *dpiLabel = new QLabel(tr("DPI:")); m_dpiFld = new DoubleLineEdit(); m_squarePixCB = new CheckBox(tr("Forced Squared Pixel")); QLabel *widthLabel = new QLabel(tr("Width:")); m_widthFld = new MeasuredDoubleLineEdit(); QLabel *heightLabel = new QLabel(tr("Height:")); m_heightFld = new MeasuredDoubleLineEdit(); // Use Camera Dpi m_useCameraDpiBtn = new QPushButton(tr("Use Camera DPI")); m_cameraDpiLabel = new QLabel(tr("")); m_imageDpiLabel = new QLabel(tr("")); m_imageResLabel = new QLabel(tr("")); QLabel *cameraDpiTitle = new QLabel(tr("Camera DPI:")); QLabel *imageDpiTitle = new QLabel(tr("Image DPI:")); QLabel *imageResTitle = new QLabel(tr("Resolution:")); // subsampling m_subsamplingLabel = new QLabel(tr("Subsampling:")); m_subsamplingFld = new DVGui::IntLineEdit(this, 1, 1); m_doPremultiply = new CheckBox(tr("Premultiply"), this); m_whiteTransp = new CheckBox(tr("White As Transparent"), this); m_doAntialias = new CheckBox(tr("Add Antialiasing"), this); m_softnessLabel = new QLabel(tr("Antialias Softness:"), this); m_antialiasSoftness = new DVGui::IntLineEdit(0, 10, 0, 100); m_colorSpaceGammaLabel = new QLabel(tr("Color Space Gamma:")); m_colorSpaceGammaFld = new DoubleLineEdit(); m_colorSpaceGammaFld->setRange(0.1, 10.); //---- m_pathFld->setFileMode(QFileDialog::AnyFile); m_scanPathFld->setFileMode(QFileDialog::AnyFile); m_dpiTypeOm->addItem(tr("Image DPI"), "Image DPI"); m_dpiTypeOm->addItem(tr("Custom DPI"), "Custom DPI"); m_squarePixCB->setCheckState(Qt::Checked); m_widthFld->setMeasure("camera.lx"); m_heightFld->setMeasure("camera.ly"); if (Preferences::instance()->getCameraUnits() == "pixel") { m_widthFld->setDecimals(0); m_heightFld->setDecimals(0); } m_doPremultiply->setTristate(); m_doPremultiply->setCheckState(Qt::Unchecked); m_doAntialias->setTristate(); m_doAntialias->setCheckState(Qt::Unchecked); m_antialiasSoftness->setEnabled(false); m_whiteTransp->setTristate(); m_whiteTransp->setCheckState(Qt::Unchecked); // register activation flags m_activateFlags[m_nameFld] = AllTypes; m_activateFlags[m_pathFld] = SimpleLevel | Palette | Sound; m_activateFlags[m_scanPathFld] = ToonzRaster; m_activateFlags[scanPathLabel] = ToonzRaster | MultiSelection; // m_activateFlags[m_typeLabel] = AllTypes | MultiSelection; unsigned int dpiWidgetsFlag = HasDPILevel | HideOnPixelMode | MultiSelection; m_activateFlags[m_dpiTypeOm] = dpiWidgetsFlag; m_activateFlags[dpiLabel] = dpiWidgetsFlag; m_activateFlags[m_dpiFld] = dpiWidgetsFlag; m_activateFlags[m_squarePixCB] = dpiWidgetsFlag; unsigned int rasterWidgetsFlag = ToonzRaster | Raster | MultiSelection; m_activateFlags[widthLabel] = rasterWidgetsFlag; m_activateFlags[m_widthFld] = rasterWidgetsFlag; m_activateFlags[heightLabel] = rasterWidgetsFlag; m_activateFlags[m_heightFld] = rasterWidgetsFlag; m_activateFlags[m_useCameraDpiBtn] = dpiWidgetsFlag; m_activateFlags[m_cameraDpiLabel] = AllTypes | HideOnPixelMode | MultiSelection; m_activateFlags[m_imageDpiLabel] = dpiWidgetsFlag; m_activateFlags[m_imageResLabel] = dpiWidgetsFlag; m_activateFlags[cameraDpiTitle] = AllTypes | HideOnPixelMode | MultiSelection; m_activateFlags[imageDpiTitle] = dpiWidgetsFlag; m_activateFlags[imageResTitle] = dpiWidgetsFlag; m_activateFlags[m_doPremultiply] = Raster | MultiSelection; m_activateFlags[m_whiteTransp] = Raster | MultiSelection; m_activateFlags[m_doAntialias] = rasterWidgetsFlag; m_activateFlags[m_softnessLabel] = rasterWidgetsFlag; m_activateFlags[m_antialiasSoftness] = rasterWidgetsFlag; m_activateFlags[m_subsamplingLabel] = rasterWidgetsFlag; m_activateFlags[m_subsamplingFld] = rasterWidgetsFlag; unsigned int linearFlag = LinearRaster | MultiSelection; m_activateFlags[m_colorSpaceGammaLabel] = linearFlag; m_activateFlags[m_colorSpaceGammaFld] = linearFlag; //----layout m_topLayout->setMargin(5); m_topLayout->setSpacing(5); { //--Name&Path QGroupBox *nameBox = new QGroupBox(tr("Name && Path"), this); QGridLayout *nameLayout = new QGridLayout(); nameLayout->setMargin(5); nameLayout->setSpacing(5); { nameLayout->addWidget(new QLabel(tr("Name:"), this), 0, 0, Qt::AlignRight | Qt::AlignVCenter); nameLayout->addWidget(m_nameFld, 0, 1); nameLayout->addWidget(new QLabel(tr("Path:"), this), 1, 0, Qt::AlignRight | Qt::AlignVCenter); nameLayout->addWidget(m_pathFld, 1, 1); nameLayout->addWidget(scanPathLabel, 2, 0, Qt::AlignRight | Qt::AlignVCenter); nameLayout->addWidget(m_scanPathFld, 2, 1); nameLayout->addWidget(m_typeLabel, 3, 1); } nameLayout->setColumnStretch(0, 0); nameLayout->setColumnStretch(1, 1); nameBox->setLayout(nameLayout); m_topLayout->addWidget(nameBox); //----DPI & Resolution QGroupBox *dpiBox; if (Preferences::instance()->getUnits() == "pixel") dpiBox = new QGroupBox(tr("Resolution"), this); else dpiBox = new QGroupBox(tr("DPI && Resolution"), this); QGridLayout *dpiLayout = new QGridLayout(); dpiLayout->setMargin(5); dpiLayout->setSpacing(5); { dpiLayout->addWidget(m_dpiTypeOm, 0, 1, 1, 3); dpiLayout->addWidget(dpiLabel, 1, 0, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_dpiFld, 1, 1); dpiLayout->addWidget(m_squarePixCB, 1, 2, 1, 2, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(widthLabel, 2, 0, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_widthFld, 2, 1); dpiLayout->addWidget(heightLabel, 2, 2, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_heightFld, 2, 3); dpiLayout->addWidget(m_useCameraDpiBtn, 3, 1, 1, 3); dpiLayout->addWidget(cameraDpiTitle, 4, 0, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_cameraDpiLabel, 4, 1, 1, 3); dpiLayout->addWidget(imageDpiTitle, 5, 0, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_imageDpiLabel, 5, 1, 1, 3); dpiLayout->addWidget(imageResTitle, 6, 0, Qt::AlignRight | Qt::AlignVCenter); dpiLayout->addWidget(m_imageResLabel, 6, 1, 1, 3); } dpiLayout->setColumnStretch(0, 0); dpiLayout->setColumnStretch(1, 1); dpiLayout->setColumnStretch(2, 0); dpiLayout->setColumnStretch(3, 1); dpiBox->setLayout(dpiLayout); m_topLayout->addWidget(dpiBox); m_topLayout->addWidget(m_doPremultiply); m_topLayout->addWidget(m_whiteTransp); m_topLayout->addWidget(m_doAntialias); //---subsampling QGridLayout *bottomLay = new QGridLayout(); bottomLay->setMargin(3); bottomLay->setSpacing(3); { bottomLay->addWidget(m_softnessLabel, 0, 0); bottomLay->addWidget(m_antialiasSoftness, 0, 1); bottomLay->addWidget(m_subsamplingLabel, 1, 0); bottomLay->addWidget(m_subsamplingFld, 1, 1); bottomLay->addWidget(m_colorSpaceGammaLabel, 2, 0); bottomLay->addWidget(m_colorSpaceGammaFld, 2, 1); } bottomLay->setColumnStretch(0, 0); bottomLay->setColumnStretch(1, 0); bottomLay->setColumnStretch(2, 1); m_topLayout->addLayout(bottomLay); m_topLayout->addStretch(); } //----signal/slot connections connect(m_nameFld, SIGNAL(editingFinished()), SLOT(onNameChanged())); connect(m_pathFld, SIGNAL(pathChanged()), SLOT(onPathChanged())); connect(m_dpiTypeOm, SIGNAL(activated(int)), SLOT(onDpiTypeChanged(int))); connect(m_dpiFld, SIGNAL(editingFinished()), SLOT(onDpiFieldChanged())); connect(m_squarePixCB, SIGNAL(stateChanged(int)), SLOT(onSquarePixelChanged(int))); connect(m_widthFld, SIGNAL(valueChanged()), SLOT(onWidthFieldChanged())); connect(m_heightFld, SIGNAL(valueChanged()), SLOT(onHeightFieldChanged())); connect(m_useCameraDpiBtn, SIGNAL(clicked()), SLOT(useCameraDpi())); connect(m_subsamplingFld, SIGNAL(editingFinished()), SLOT(onSubsamplingChanged())); /*--- ScanPath ---*/ connect(m_scanPathFld, SIGNAL(pathChanged()), SLOT(onScanPathChanged())); connect(m_doPremultiply, SIGNAL(clicked(bool)), SLOT(onDoPremultiplyClicked())); connect(m_doAntialias, SIGNAL(clicked(bool)), SLOT(onDoAntialiasClicked())); connect(m_antialiasSoftness, SIGNAL(editingFinished()), SLOT(onAntialiasSoftnessChanged())); connect(m_whiteTransp, SIGNAL(clicked(bool)), SLOT(onWhiteTranspClicked())); connect(m_colorSpaceGammaFld, SIGNAL(editingFinished()), SLOT(onColorSpaceGammaFieldChanged())); updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::showEvent(QShowEvent *e) { bool ret = connect(TApp::instance()->getCurrentSelection(), SIGNAL(selectionSwitched(TSelection *, TSelection *)), this, SLOT(onSelectionSwitched(TSelection *, TSelection *))); ret = ret && connect(TApp::instance()->getCurrentSelection(), SIGNAL(selectionChanged(TSelection *)), SLOT(updateLevelSettings())); CastSelection *castSelection = dynamic_cast<CastSelection *>( TApp::instance()->getCurrentSelection()->getSelection()); if (castSelection) ret = ret && connect(castSelection, SIGNAL(itemSelectionChanged()), this, SLOT(onCastSelectionChanged())); // update level settings after cleanup by this connection ret = ret && connect(TApp::instance()->getCurrentScene(), SIGNAL(sceneChanged()), SLOT(onSceneChanged())); ret = ret && connect(TApp::instance()->getCurrentScene(), SIGNAL(preferenceChanged(const QString &)), SLOT(onPreferenceChanged(const QString &))); assert(ret); updateLevelSettings(); onPreferenceChanged(""); } //your_sha256_hash------------- void LevelSettingsPopup::hideEvent(QHideEvent *e) { bool ret = disconnect(TApp::instance()->getCurrentSelection(), SIGNAL(selectionSwitched(TSelection *, TSelection *)), this, SLOT(onSelectionSwitched(TSelection *, TSelection *))); ret = ret && disconnect(TApp::instance()->getCurrentSelection(), SIGNAL(selectionChanged(TSelection *)), this, SLOT(updateLevelSettings())); CastSelection *castSelection = dynamic_cast<CastSelection *>( TApp::instance()->getCurrentSelection()->getSelection()); if (castSelection) ret = ret && disconnect(castSelection, SIGNAL(itemSelectionChanged()), this, SLOT(onCastSelectionChanged())); ret = ret && disconnect(TApp::instance()->getCurrentScene(), SIGNAL(sceneChanged()), this, SLOT(onSceneChanged())); ret = ret && disconnect(TApp::instance()->getCurrentScene(), SIGNAL(preferenceChanged(const QString &)), this, SLOT(onPreferenceChanged(const QString &))); assert(ret); Dialog::hideEvent(e); } //your_sha256_hash------------- void LevelSettingsPopup::onSceneChanged() { updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onPreferenceChanged(const QString &propertyName) { if (!propertyName.isEmpty() && propertyName != "pixelsOnly") return; bool pixelsMode = Preferences::instance()->getBoolValue(pixelsOnly); QMap<QWidget *, unsigned int>::iterator i = m_activateFlags.begin(); while (i != m_activateFlags.end()) { if (i.value() & HideOnPixelMode) i.key()->setHidden(pixelsMode); ++i; } int decimals = (pixelsMode) ? 0 : 4; m_widthFld->setDecimals(decimals); m_heightFld->setDecimals(decimals); adjustSize(); } //your_sha256_hash------------- void LevelSettingsPopup::onCastSelectionChanged() { updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onSelectionSwitched(TSelection *oldSelection, TSelection *newSelection) { CastSelection *castSelection = dynamic_cast<CastSelection *>(newSelection); if (!castSelection) { CastSelection *oldCastSelection = dynamic_cast<CastSelection *>(oldSelection); if (oldCastSelection) disconnect(oldCastSelection, SIGNAL(itemSelectionChanged()), this, SLOT(onCastSelectionChanged())); return; } connect(castSelection, SIGNAL(itemSelectionChanged()), this, SLOT(onCastSelectionChanged())); } SelectedLevelType LevelSettingsPopup::getType(TXshLevelP level_p) { if (!level_p) return None; switch (level_p->getType()) { case TZP_XSHLEVEL: return ToonzRaster; case OVL_XSHLEVEL: { if (level_p->getPath().getType() == "exr") return LinearRaster; else return NonLinearRaster; } case MESH_XSHLEVEL: return Mesh; case PLI_XSHLEVEL: return ToonzVector; case PLT_XSHLEVEL: return Palette; case CHILD_XSHLEVEL: return SubXsheet; case SND_XSHLEVEL: return Sound; default: // Other types are not supported return Others; } } LevelSettingsValues LevelSettingsPopup::getValues(TXshLevelP level) { LevelSettingsValues values; values.name = QString::fromStdWString(level->getName()); TXshSimpleLevelP sl = level->getSimpleLevel(); TXshPaletteLevelP pl = level->getPaletteLevel(); TXshChildLevelP cl = level->getChildLevel(); TXshSoundLevelP sdl = level->getSoundLevel(); SelectedLevelType levelType = getType(level); // path if (sl) { values.path = toQString(sl->getPath()); values.scanPath = toQString(sl->getScannedPath()); } else if (pl) values.path = toQString(pl->getPath()); else if (sdl) values.path = toQString(sdl->getPath()); // leveltype switch (levelType) { case ToonzRaster: values.typeStr = tr("Toonz Raster level"); break; case NonLinearRaster: case LinearRaster: values.typeStr = tr("Raster level"); break; case Mesh: values.typeStr = tr("Mesh level"); break; case ToonzVector: values.typeStr = tr("Toonz Vector level"); break; case Palette: values.typeStr = tr("Palette level"); break; case SubXsheet: values.typeStr = tr("SubXsheet Level"); break; case Sound: values.typeStr = tr("Sound Column"); break; default: values.typeStr = tr("Another Level Type"); break; } // dpi & res & resampling if (levelType & HasDPILevel) { LevelProperties::DpiPolicy dpiPolicy = sl->getProperties()->getDpiPolicy(); assert(dpiPolicy == LevelProperties::DP_ImageDpi || dpiPolicy == LevelProperties::DP_CustomDpi); values.dpiType = (dpiPolicy == LevelProperties::DP_ImageDpi) ? 0 : 1; // dpi field values.dpi = sl->getDpi(); // image dpi values.imageDpi = dpiToString(sl->getImageDpi()); if (levelType == ToonzRaster || levelType & Raster) { // size field TDimensionD size(0, 0); TDimension res = sl->getResolution(); if (res.lx > 0 && res.ly > 0 && values.dpi.x > 0 && values.dpi.y > 0) { size.lx = res.lx / values.dpi.x; size.ly = res.ly / values.dpi.y; values.width = tround(size.lx * 100.0) / 100.0; values.height = tround(size.ly * 100.0) / 100.0; } else { values.width = -1.0; values.height = -1.0; } // image res TDimension imgRes = sl->getResolution(); values.imageRes = QString::number(imgRes.lx) + "x" + QString::number(imgRes.ly); // subsampling values.subsampling = sl->getProperties()->getSubsampling(); values.doPremulti = (sl->getProperties()->doPremultiply()) ? Qt::Checked : Qt::Unchecked; values.whiteTransp = (sl->getProperties()->whiteTransp()) ? Qt::Checked : Qt::Unchecked; values.doAntialias = (sl->getProperties()->antialiasSoftness() > 0) ? Qt::Checked : Qt::Unchecked; values.softness = sl->getProperties()->antialiasSoftness(); if (levelType == LinearRaster) values.colorSpaceGamma = sl->getProperties()->colorSpaceGamma(); } } // gather dirty flags (subsampling is editable for only non-dirty levels) if (sl && sl->getProperties()->getDirtyFlag()) values.isDirty = Qt::Checked; return values; } //your_sha256_hash------------- /*! Update popup value. Take current level and act on level type set popup value. */ void LevelSettingsPopup::updateLevelSettings() { TApp *app = TApp::instance(); m_selectedLevels.clear(); CastSelection *castSelection = dynamic_cast<CastSelection *>(app->getCurrentSelection()->getSelection()); TCellSelection *cellSelection = dynamic_cast<TCellSelection *>( app->getCurrentSelection()->getSelection()); TColumnSelection *columnSelection = dynamic_cast<TColumnSelection *>( app->getCurrentSelection()->getSelection()); FxSelection *fxSelection = dynamic_cast<FxSelection *>(app->getCurrentSelection()->getSelection()); // - - - Cell Selection if (cellSelection) { TXsheet *currentXsheet = app->getCurrentXsheet()->getXsheet(); if (currentXsheet && !cellSelection->isEmpty()) { int r0, c0, r1, c1; cellSelection->getSelectedCells(r0, c0, r1, c1); for (int c = c0; c <= c1; c++) for (int r = r0; r <= r1; r++) if (TXshLevelP level = currentXsheet->getCell(r, c).m_level) m_selectedLevels.insert(level); } else m_selectedLevels.insert(app->getCurrentLevel()->getLevel()); } // - - - Column Selection else if (columnSelection) { TXsheet *currentXsheet = app->getCurrentXsheet()->getXsheet(); if (currentXsheet && !columnSelection->isEmpty()) { int sceneLength = currentXsheet->getFrameCount(); std::set<int> columnIndices = columnSelection->getIndices(); std::set<int>::iterator it; for (it = columnIndices.begin(); it != columnIndices.end(); ++it) { int columnIndex = *it; int r0, r1; currentXsheet->getCellRange(columnIndex, r0, r1); if (r1 < 0) continue; // skip empty column for (int r = r0; r <= r1; r++) if (TXshLevelP level = currentXsheet->getCell(r, columnIndex).m_level) m_selectedLevels.insert(level); } } else m_selectedLevels.insert(app->getCurrentLevel()->getLevel()); } // - - - Cast Selection else if (castSelection) { std::vector<TXshLevel *> levels; castSelection->getSelectedLevels(levels); for (TXshLevel *level : levels) m_selectedLevels.insert(level); } // - - - Schematic Nodes Selection else if (fxSelection) { TXsheet *currentXsheet = app->getCurrentXsheet()->getXsheet(); QList<TFxP> selectedFxs = fxSelection->getFxs(); if (currentXsheet && !selectedFxs.isEmpty()) { for (int f = 0; f < selectedFxs.size(); f++) { TLevelColumnFx *lcfx = dynamic_cast<TLevelColumnFx *>(selectedFxs.at(f).getPointer()); if (lcfx) { int r0, r1; int firstRow = lcfx->getXshColumn()->getCellColumn()->getRange(r0, r1); for (int r = r0; r <= r1; r++) if (TXshLevelP level = lcfx->getXshColumn()->getCellColumn()->getCell(r).m_level) m_selectedLevels.insert(level); } } if (m_selectedLevels.isEmpty()) m_selectedLevels.insert(app->getCurrentLevel()->getLevel()); } else m_selectedLevels.insert(app->getCurrentLevel()->getLevel()); } else m_selectedLevels.insert(app->getCurrentLevel()->getLevel()); // Unite flags, Remove unsupported items unsigned int levelTypeFlag = 0; QSet<TXshLevelP>::iterator lvl_itr = m_selectedLevels.begin(); while (lvl_itr != m_selectedLevels.end()) { SelectedLevelType type = getType(*lvl_itr); if (type == None || type == Others) lvl_itr = m_selectedLevels.erase(lvl_itr); else { levelTypeFlag |= type; ++lvl_itr; } } if (m_selectedLevels.count() >= 2) levelTypeFlag |= MultiSelection; else if (m_selectedLevels.isEmpty()) levelTypeFlag |= NoSelection; // Enable / Disable all widgets QMap<QWidget *, unsigned int>::iterator w_itr = m_activateFlags.begin(); while (w_itr != m_activateFlags.end()) { unsigned int activateFlag = w_itr.value(); w_itr.key()->setEnabled((levelTypeFlag & activateFlag) == levelTypeFlag); ++w_itr; } // Gather values LevelSettingsValues values; lvl_itr = m_selectedLevels.begin(); while (lvl_itr != m_selectedLevels.end()) { TXshLevelP level = *lvl_itr; bool isFirst = (lvl_itr == m_selectedLevels.begin()); LevelSettingsValues new_val = getValues(level); uniteValue(values.name, new_val.name, isFirst); uniteValue(values.path, new_val.path, isFirst); uniteValue(values.scanPath, new_val.scanPath, isFirst); uniteValue(values.typeStr, new_val.typeStr, isFirst); uniteValue(values.dpiType, new_val.dpiType, isFirst); uniteValue(values.dpi, new_val.dpi, isFirst); uniteValue(values.width, new_val.width, isFirst); uniteValue(values.height, new_val.height, isFirst); uniteValue(values.imageDpi, new_val.imageDpi, isFirst); uniteValue(values.imageRes, new_val.imageRes, isFirst); uniteValue(values.doPremulti, new_val.doPremulti, isFirst); uniteValue(values.whiteTransp, new_val.whiteTransp, isFirst); uniteValue(values.doAntialias, new_val.doAntialias, isFirst); uniteValue(values.softness, new_val.softness, isFirst); uniteValue(values.subsampling, new_val.subsampling, isFirst); uniteValue(values.colorSpaceGamma, new_val.colorSpaceGamma, isFirst); uniteValue(values.isDirty, new_val.isDirty, isFirst); ++lvl_itr; } m_nameFld->setText(values.name); m_pathFld->setPath(values.path); m_scanPathFld->setPath(values.scanPath); m_typeLabel->setText(values.typeStr); m_dpiTypeOm->setCurrentIndex(values.dpiType); m_dpiFld->setText(dpiToString(values.dpi)); if (values.width <= 0.0) { m_widthFld->setValue(0.0); m_widthFld->setText((values.width < 0.0) ? tr("[Various]") : tr("")); } else m_widthFld->setValue(values.width); if (values.height <= 0.0) { m_heightFld->setValue(0.0); m_heightFld->setText((values.height < 0.0) ? tr("[Various]") : tr("")); } else m_heightFld->setValue(values.height); m_cameraDpiLabel->setText(dpiToString(getCurrentCameraDpi())); m_imageDpiLabel->setText(values.imageDpi); m_imageResLabel->setText(values.imageRes); m_doPremultiply->setCheckState(values.doPremulti); m_whiteTransp->setCheckState(values.whiteTransp); m_doAntialias->setCheckState(values.doAntialias); if (values.softness < 0) m_antialiasSoftness->setText(""); else m_antialiasSoftness->setValue(values.softness); if (values.subsampling < 0) m_subsamplingFld->setText(""); else m_subsamplingFld->setValue(values.subsampling); if (values.colorSpaceGamma > 0) m_colorSpaceGammaFld->setValue(values.colorSpaceGamma); else if (m_colorSpaceGammaFld->isEnabled()) m_colorSpaceGammaFld->setText(tr("[Various]")); else m_colorSpaceGammaFld->setText(""); // disable the softness field when the antialias is not active if (m_doAntialias->checkState() != Qt::Checked) m_antialiasSoftness->setDisabled(true); // disable the subsampling field when dirty level is selected if (values.isDirty != Qt::Unchecked) { m_subsamplingFld->setDisabled(true); m_colorSpaceGammaFld->setDisabled(true); } } //your_sha256_hash------------- void LevelSettingsPopup::onNameChanged() { assert(m_selectedLevels.size() == 1); if (m_selectedLevels.size() != 1) return; QString text = m_nameFld->text(); if (text.length() == 0) { error("The name " + text + " you entered for the level is not valid.\n Please enter a different " "name."); m_nameFld->setFocus(); return; } TXshLevel *level = m_selectedLevels.begin()->getPointer(); if ((getType(level) & (SimpleLevel | SubXsheet)) == 0) return; // in case the level name is not changed QString oldName = QString::fromStdWString(level->getName()); if (oldName == text) return; TLevelSet *levelSet = TApp::instance()->getCurrentScene()->getScene()->getLevelSet(); TUndoManager::manager()->beginBlock(); // remove existing & unused level if (Preferences::instance()->isAutoRemoveUnusedLevelsEnabled()) { TXshLevel *existingLevel = levelSet->getLevel(text.toStdWString()); if (existingLevel && LevelCmd::removeLevelFromCast(existingLevel, nullptr, false)) DVGui::info(QObject::tr("Removed unused level %1 from the scene cast. " "(This behavior can be disabled in Preferences.)") .arg(text)); } if (!levelSet->renameLevel(level, text.toStdWString())) { error("The name " + text + " you entered for the level is already used.\nPlease enter a " "different name."); m_nameFld->setFocus(); TUndoManager::manager()->endBlock(); return; } TUndoManager::manager()->add( new LevelSettingsUndo(level, LevelSettingsUndo::Name, oldName, text)); TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); TApp::instance()->getCurrentScene()->notifyCastChange(); } //your_sha256_hash------------- void LevelSettingsPopup::onPathChanged() { assert(m_selectedLevels.size() == 1); if (m_selectedLevels.size() != 1) return; TXshLevelP levelP = *m_selectedLevels.begin(); if ((m_activateFlags[m_pathFld] & getType(levelP)) == 0) return; QString text = m_pathFld->getPath(); TFilePath newPath(text.toStdWString()); newPath = TApp::instance()->getCurrentScene()->getScene()->codeFilePath(newPath); m_pathFld->setPath(QString::fromStdWString(newPath.getWideString())); TXshSoundLevelP sdl = levelP->getSoundLevel(); if (sdl) { // old level is a sound level TFileType::Type levelType = TFileType::getInfo(newPath); if (levelType == TFileType::AUDIO_LEVEL) { TFilePath oldPath = sdl->getPath(); if (oldPath == newPath) return; sdl->setPath(newPath); sdl->loadSoundTrack(); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); TApp::instance()->getCurrentXsheet()->notifyXsheetSoundChanged(); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::Path, oldPath.getQString(), newPath.getQString())); } else { error(tr("The file %1 is not a sound level.") .arg(QString::fromStdWString(newPath.getLevelNameW()))); updateLevelSettings(); } return; } TXshSimpleLevelP sl = levelP->getSimpleLevel(); TXshPaletteLevelP pl = levelP->getPaletteLevel(); if (!sl && !pl) return; TFilePath oldPath = (sl) ? sl->getPath() : pl->getPath(); if (oldPath == newPath) return; TLevelSet *levelSet = TApp::instance()->getCurrentScene()->getScene()->getLevelSet(); TXshLevel *lvlWithSamePath = nullptr; for (int i = 0; i < levelSet->getLevelCount(); i++) { TXshLevel *tmpLvl = levelSet->getLevel(i); if (!tmpLvl) continue; if (tmpLvl == levelP.getPointer()) continue; TXshSimpleLevelP tmpSl = tmpLvl->getSimpleLevel(); TXshPaletteLevelP tmpPl = tmpLvl->getPaletteLevel(); if (!tmpSl && !tmpPl) continue; TFilePath tmpPath = (tmpSl) ? tmpSl->getPath() : tmpPl->getPath(); if (tmpPath == newPath) { lvlWithSamePath = tmpLvl; break; } } if (lvlWithSamePath) { QString question; question = "The path you entered for the level " + QString(::to_string(lvlWithSamePath->getName()).c_str()) + "is already used: this may generate some conflicts in the file " "management.\nAre you sure you want to assign the same path to " "two different levels?"; int ret = DVGui::MsgBox(question, QObject::tr("Yes"), QObject::tr("No")); if (ret == 0 || ret == 2) { m_pathFld->setPath(toQString(oldPath)); return; } } TFileType::Type oldType = TFileType::getInfo(oldPath); TFileType::Type newType = TFileType::getInfo(newPath); if (sl && sl->getType() == TZP_XSHLEVEL && sl->getScannedPath() != TFilePath()) { if (newPath == TFilePath() || newPath == sl->getScannedPath()) { newPath = sl->getScannedPath(); sl->setType(OVL_XSHLEVEL); sl->setScannedPath(TFilePath()); sl->setPath(newPath); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); TApp::instance()->getCurrentScene()->notifyCastChange(); updateLevelSettings(); sl->invalidateFrames(); std::vector<TFrameId> frames; sl->getFids(frames); for (auto const &fid : frames) { IconGenerator::instance()->invalidate(sl.getPointer(), fid); } TUndoManager::manager()->beginBlock(); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::Path, oldPath.getQString(), newPath.getQString())); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::ScanPath, newPath.getQString(), QString())); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::LevelType, TZP_XSHLEVEL, OVL_XSHLEVEL)); TUndoManager::manager()->endBlock(); return; } } if (oldType != newType || (sl && sl->getType() == TZP_XSHLEVEL && newPath.getType() != "tlv") || (sl && sl->getType() != TZP_XSHLEVEL && newPath.getType() == "tlv") || (pl && newPath.getType() != "tpl")) { error("Wrong path"); m_pathFld->setPath(toQString(oldPath)); return; } //-- update the path here if (sl) { sl->setPath(newPath); TApp::instance() ->getPaletteController() ->getCurrentLevelPalette() ->setPalette(sl->getPalette()); sl->invalidateFrames(); std::vector<TFrameId> frames; sl->getFids(frames); for (auto const &fid : frames) { IconGenerator::instance()->invalidate(sl.getPointer(), fid); } } else if (pl) { pl->setPath(newPath); TApp::instance() ->getPaletteController() ->getCurrentLevelPalette() ->setPalette(pl->getPalette()); pl->load(); } TApp::instance()->getCurrentLevel()->notifyLevelChange(); TApp::instance()->getCurrentScene()->notifySceneChanged(); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); updateLevelSettings(); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::Path, oldPath.getQString(), newPath.getQString())); } //your_sha256_hash------------- void LevelSettingsPopup::onScanPathChanged() { assert(m_selectedLevels.size() == 1); if (m_selectedLevels.size() != 1) return; TXshLevelP levelP = *m_selectedLevels.begin(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() != TZP_XSHLEVEL) return; QString text = m_scanPathFld->getPath(); TFilePath newScanPath(text.toStdWString()); // limit the available formats for now if (newScanPath.getType() != "tif" && newScanPath.getType() != "tiff" && newScanPath.getType() != "tzi") { m_scanPathFld->setPath(toQString(sl->getScannedPath())); return; } newScanPath = TApp::instance()->getCurrentScene()->getScene()->codeFilePath( newScanPath); m_scanPathFld->setPath(QString::fromStdWString(newScanPath.getWideString())); TFilePath oldScanPath = sl->getScannedPath(); if (oldScanPath == newScanPath) return; // check if the "Cleanup Settings > SaveIn" value is the same as the current // level TFilePath settingsPath = (newScanPath.getParentDir() + newScanPath.getName()).withType("cln"); settingsPath = TApp::instance()->getCurrentScene()->getScene()->decodeFilePath( settingsPath); if (TSystem::doesExistFileOrLevel(settingsPath)) { TIStream is(settingsPath); TFilePath cleanupLevelPath; std::string tagName; while (is.matchTag(tagName)) { if (tagName == "cleanupPalette" || tagName == "cleanupCamera" || tagName == "autoCenter" || tagName == "transform" || tagName == "lineProcessing" || tagName == "closestField" || tagName == "fdg") { is.skipCurrentTag(); } else if (tagName == "path") { is >> cleanupLevelPath; is.closeChild(); } else std::cout << "mismatch tag:" << tagName << std::endl; } if (cleanupLevelPath != TFilePath()) { TFilePath codedCleanupLevelPath = TApp::instance()->getCurrentScene()->getScene()->codeFilePath( cleanupLevelPath); if (sl->getPath().getParentDir() != cleanupLevelPath && sl->getPath().getParentDir() != codedCleanupLevelPath) DVGui::warning( "\"Save In\" path of the Cleanup Settings does not match."); } else DVGui::warning("Loading Cleanup Settings failed."); } else DVGui::warning(".cln file for the Scanned Level not found."); sl->setScannedPath(newScanPath); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); updateLevelSettings(); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::ScanPath, oldScanPath.getQString(), newScanPath.getQString())); } //your_sha256_hash------------- void LevelSettingsPopup::onDpiTypeChanged(int index) { TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; QString dpiPolicyStr = m_dpiTypeOm->itemData(index).toString(); assert(dpiPolicyStr == "Custom DPI" || dpiPolicyStr == "Image DPI"); LevelProperties *prop = sl->getProperties(); // dpiPolicyStr ==> dpiPolicy LevelProperties::DpiPolicy dpiPolicy = dpiPolicyStr == "Custom DPI" ? LevelProperties::DP_CustomDpi : LevelProperties::DP_ImageDpi; // se ImageDpi, ma l'immagine non ha dpi -> CustomDpi assert(dpiPolicy == LevelProperties::DP_CustomDpi || sl->getImageDpi().x > 0.0 && sl->getImageDpi().y > 0.0); if (prop->getDpiPolicy() == dpiPolicy) continue; LevelProperties::DpiPolicy oldPolicy = prop->getDpiPolicy(); prop->setDpiPolicy(dpiPolicy); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, dpiPolicy)); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onDpiFieldChanged() { QString w = m_dpiFld->text(); std::string s = w.toStdString(); TPointD dpi; int i = 0, len = s.length(); while (i < len && s[i] == ' ') i++; int j = i; while (j < len && '0' <= s[j] && s[j] <= '9') j++; if (j < len && s[j] == '.') { j++; while (j < len && '0' <= s[j] && s[j] <= '9') j++; } if (i < j) { dpi.x = std::stod(s.substr(i, j - i)); i = j; while (i < len && s[i] == ' ') i++; if (i < len && s[i] == ',') { i++; while (i < len && s[i] == ' ') i++; dpi.y = std::stod(s.substr(i)); } } if (dpi.x <= 0.0) { updateLevelSettings(); return; } if (dpi.y == 0.0) dpi.y = dpi.x; TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; TPointD oldDpi = sl->getProperties()->getDpi(); if (oldDpi == dpi) continue; LevelProperties::DpiPolicy oldPolicy = sl->getProperties()->getDpiPolicy(); sl->getProperties()->setDpiPolicy(LevelProperties::DP_CustomDpi); sl->getProperties()->setDpi(dpi); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, LevelProperties::DP_CustomDpi)); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Dpi, QPointF(oldDpi.x, oldDpi.y), QPointF(dpi.x, dpi.y))); } TUndoManager::manager()->endBlock(); updateLevelSettings(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- void LevelSettingsPopup::onSquarePixelChanged(int value) { if (!value) return; TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; TPointD oldDpi = sl->getDpi(); if (areAlmostEqual(oldDpi.x, oldDpi.y)) continue; TPointD dpi(oldDpi.x, oldDpi.x); LevelProperties::DpiPolicy oldPolicy = sl->getProperties()->getDpiPolicy(); sl->getProperties()->setDpiPolicy(LevelProperties::DP_CustomDpi); sl->getProperties()->setDpi(dpi); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, LevelProperties::DP_CustomDpi)); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Dpi, QPointF(oldDpi.x, oldDpi.y), QPointF(dpi.x, dpi.y))); } TUndoManager::manager()->endBlock(); updateLevelSettings(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- void LevelSettingsPopup::onWidthFieldChanged() { double lx = m_widthFld->getValue(); if (lx <= 0) { updateLevelSettings(); return; } TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; TPointD dpi = sl->getDpi(); if (dpi.x <= 0) continue; TDimension res = sl->getResolution(); if (res.lx <= 0) continue; dpi.x = res.lx / lx; if (m_squarePixCB->isChecked()) dpi.y = dpi.x; LevelProperties::DpiPolicy oldPolicy = sl->getProperties()->getDpiPolicy(); sl->getProperties()->setDpiPolicy(LevelProperties::DP_CustomDpi); TPointD oldDpi = sl->getProperties()->getDpi(); sl->getProperties()->setDpi(dpi); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, LevelProperties::DP_CustomDpi)); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Dpi, QPointF(oldDpi.x, oldDpi.y), QPointF(dpi.x, dpi.y))); } TUndoManager::manager()->endBlock(); updateLevelSettings(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- void LevelSettingsPopup::onHeightFieldChanged() { double ly = m_heightFld->getValue(); if (ly <= 0) { updateLevelSettings(); return; } TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; TPointD dpi = sl->getDpi(); if (dpi.y <= 0) continue; TDimension res = sl->getResolution(); if (res.ly <= 0) continue; dpi.y = res.ly / ly; if (m_squarePixCB->isChecked()) dpi.x = dpi.y; LevelProperties::DpiPolicy oldPolicy = sl->getProperties()->getDpiPolicy(); sl->getProperties()->setDpiPolicy(LevelProperties::DP_CustomDpi); TPointD oldDpi = sl->getProperties()->getDpi(); sl->getProperties()->setDpi(dpi); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, LevelProperties::DP_CustomDpi)); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Dpi, QPointF(oldDpi.x, oldDpi.y), QPointF(dpi.x, dpi.y))); } TUndoManager::manager()->endBlock(); updateLevelSettings(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- void LevelSettingsPopup::useCameraDpi() { TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl) continue; LevelProperties *prop = sl->getProperties(); LevelProperties::DpiPolicy oldPolicy = prop->getDpiPolicy(); prop->setDpiPolicy(LevelProperties::DP_CustomDpi); TPointD oldDpi = prop->getDpi(); TPointD dpi = getCurrentCameraDpi(); prop->setDpi(dpi); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::DpiType, oldPolicy, LevelProperties::DP_CustomDpi)); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Dpi, QPointF(oldDpi.x, oldDpi.y), QPointF(dpi.x, dpi.y))); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance()->getCurrentLevel()->notifyLevelChange(); updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onSubsamplingChanged() { int subsampling = (int)m_subsamplingFld->getValue(); if (subsampling <= 0) { updateLevelSettings(); return; } bool somethingChanged = false; TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; if (sl->getProperties()->getDirtyFlag()) continue; int oldSubsampling = sl->getProperties()->getSubsampling(); if (oldSubsampling == subsampling) continue; sl->getProperties()->setSubsampling(subsampling); sl->invalidateFrames(); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::Subsampling, oldSubsampling, subsampling)); somethingChanged = true; } TUndoManager::manager()->endBlock(); if (!somethingChanged) return; TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance() ->getCurrentXsheet() ->getXsheet() ->getStageObjectTree() ->invalidateAll(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- void LevelSettingsPopup::onDoPremultiplyClicked() { Qt::CheckState state = m_doPremultiply->checkState(); bool on = (state == Qt::Checked || state == Qt::PartiallyChecked); TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevel *sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; LevelProperties *prop = sl->getProperties(); if (on == prop->doPremultiply()) continue; if (on && prop->whiteTransp()) { prop->setWhiteTransp(false); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::WhiteTransp, true, false)); } prop->setDoPremultiply(on); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::DoPremulti, !on, on)); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onAntialiasSoftnessChanged() { int softness = m_antialiasSoftness->getValue(); TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevel *sl = levelP->getSimpleLevel(); if (!sl) continue; int oldSoftness = sl->getProperties()->antialiasSoftness(); sl->getProperties()->setDoAntialias(softness); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::Softness, oldSoftness, softness)); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //---------------------------- void LevelSettingsPopup::onDoAntialiasClicked() { Qt::CheckState state = m_doAntialias->checkState(); bool on = (state == Qt::Checked || state == Qt::PartiallyChecked); int softness = on ? m_antialiasSoftness->getValue() : 0; TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevel *sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; int oldSoftness = sl->getProperties()->antialiasSoftness(); sl->getProperties()->setDoAntialias(softness); TUndoManager::manager()->add( new LevelSettingsUndo(levelP.getPointer(), LevelSettingsUndo::Softness, oldSoftness, softness)); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); updateLevelSettings(); if (on) { m_doAntialias->setCheckState(Qt::Checked); m_antialiasSoftness->setEnabled(true); } } //your_sha256_hash------------- void LevelSettingsPopup::onWhiteTranspClicked() { Qt::CheckState state = m_whiteTransp->checkState(); bool on = (state == Qt::Checked || state == Qt::PartiallyChecked); TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevel *sl = levelP->getSimpleLevel(); if (!sl || sl->getType() == PLI_XSHLEVEL) continue; LevelProperties *prop = sl->getProperties(); if (on == prop->whiteTransp()) continue; if (on && prop->doPremultiply()) { prop->setDoPremultiply(false); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::DoPremulti, true, false)); } prop->setWhiteTransp(on); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::WhiteTransp, !on, on)); } TUndoManager::manager()->endBlock(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); updateLevelSettings(); } //your_sha256_hash------------- void LevelSettingsPopup::onColorSpaceGammaFieldChanged() { double colorSpaceGamma = m_colorSpaceGammaFld->getValue(); bool somethingChanged = false; TUndoManager::manager()->beginBlock(); QSetIterator<TXshLevelP> levelItr(m_selectedLevels); while (levelItr.hasNext()) { TXshLevelP levelP = levelItr.next(); TXshSimpleLevelP sl = levelP->getSimpleLevel(); if (!sl || sl->getType() != OVL_XSHLEVEL) continue; if (sl->getProperties()->getDirtyFlag()) continue; double oldGamma = sl->getProperties()->colorSpaceGamma(); if (areAlmostEqual(colorSpaceGamma, oldGamma)) continue; sl->getProperties()->setColorSpaceGamma(colorSpaceGamma); sl->invalidateFrames(); TUndoManager::manager()->add(new LevelSettingsUndo( levelP.getPointer(), LevelSettingsUndo::ColorSpaceGamma, oldGamma, colorSpaceGamma)); somethingChanged = true; } TUndoManager::manager()->endBlock(); if (!somethingChanged) return; TApp::instance()->getCurrentScene()->setDirtyFlag(true); TApp::instance() ->getCurrentXsheet() ->getXsheet() ->getStageObjectTree() ->invalidateAll(); TApp::instance()->getCurrentLevel()->notifyLevelChange(); } //your_sha256_hash------------- OpenPopupCommandHandler<LevelSettingsPopup> openLevelSettingsPopup( MI_LevelSettings); //your_sha256_hash------------- class ViewLevelFileInfoHandler final : public MenuItemHandler { public: ViewLevelFileInfoHandler(CommandId cmdId) : MenuItemHandler(cmdId) {} void execute() override { TSelection *selection = TApp::instance()->getCurrentSelection()->getSelection(); if (FileSelection *fileSelection = dynamic_cast<FileSelection *>(selection)) { fileSelection->viewFileInfo(); return; } std::vector<TXshLevel *> selectedLevels; /*-- CellContextMenuInfoLevel * --*/ TCellSelection *cellSelection = dynamic_cast<TCellSelection *>(selection); if (cellSelection && !cellSelection->isEmpty()) { TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet(); int r0, c0, r1, c1; cellSelection->getSelectedCells(r0, c0, r1, c1); for (int c = c0; c <= c1; c++) { for (int r = r0; r <= r1; r++) { TXshLevel *lv = xsh->getCell(r, c).m_level.getPointer(); if (!lv) continue; std::vector<TXshLevel *>::iterator lvIt = find(selectedLevels.begin(), selectedLevels.end(), lv); if (lvIt == selectedLevels.end()) selectedLevels.push_back(lv); } } } else if (CastSelection *castSelection = dynamic_cast<CastSelection *>(selection)) castSelection->getSelectedLevels(selectedLevels); else if (TXshLevel *level = TApp::instance()->getCurrentLevel()->getLevel()) selectedLevels.push_back(level); if (selectedLevels.empty()) return; for (int i = 0; i < selectedLevels.size(); ++i) { if (selectedLevels[i]->getSimpleLevel() || selectedLevels[i]->getSoundLevel()) { TFilePath path = selectedLevels[i]->getPath(); path = selectedLevels[i]->getScene()->decodeFilePath(path); if (TSystem::doesExistFileOrLevel(path)) { InfoViewer *infoViewer = 0; infoViewer = new InfoViewer(); infoViewer->setItem(0, 0, path); } } } } } viewLevelFileInfoHandler(MI_FileInfo); //your_sha256_hash------------- class ViewLevelHandler final : public MenuItemHandler { public: ViewLevelHandler(CommandId cmdId) : MenuItemHandler(cmdId) {} void execute() override { TSelection *selection = TApp::instance()->getCurrentSelection()->getSelection(); if (FileSelection *fileSelection = dynamic_cast<FileSelection *>(selection)) { fileSelection->viewFile(); return; } TXshSimpleLevel *sl = 0; int i = 0; std::vector<TXshSimpleLevel *> simpleLevels; /*-- ContextMenuView --*/ TXsheet *currentXsheet = TApp::instance()->getCurrentXsheet()->getXsheet(); TCellSelection *cellSelection = dynamic_cast<TCellSelection *>(selection); if (currentXsheet && cellSelection && !cellSelection->isEmpty()) { int r0, c0, r1, c1; cellSelection->getSelectedCells(r0, c0, r1, c1); for (int c = c0; c <= c1; c++) { for (int r = r0; r <= r1; r++) { TXshSimpleLevel *lv = currentXsheet->getCell(r, c).getSimpleLevel(); if (!lv) continue; std::vector<TXshSimpleLevel *>::iterator lvIt = find(simpleLevels.begin(), simpleLevels.end(), lv); if (lvIt == simpleLevels.end()) simpleLevels.push_back(lv); } } } else if (CastSelection *castSelection = dynamic_cast<CastSelection *>(selection)) { std::vector<TXshLevel *> selectedLevels; castSelection->getSelectedLevels(selectedLevels); for (i = 0; i < selectedLevels.size(); i++) simpleLevels.push_back(selectedLevels[i]->getSimpleLevel()); } else if (TApp::instance()->getCurrentLevel()->getSimpleLevel()) simpleLevels.push_back( TApp::instance()->getCurrentLevel()->getSimpleLevel()); if (!simpleLevels.size()) return; for (i = 0; i < simpleLevels.size(); i++) { if (!(simpleLevels[i]->getType() & LEVELCOLUMN_XSHLEVEL)) continue; TFilePath path = simpleLevels[i]->getPath(); path = simpleLevels[i]->getScene()->decodeFilePath(path); FlipBook *fb; if (TSystem::doesExistFileOrLevel(path)) fb = ::viewFile(path); else { fb = FlipBookPool::instance()->pop(); fb->setLevel(simpleLevels[i]); } if (fb) { FileBrowserPopup::setModalBrowserToParent(fb->parentWidget()); } } } } ViewLevelHandler(MI_ViewFile); ```
```less .light-menu { display: inline-block; position: relative; color: @font-level-2; } .light-menu .hint { cursor: pointer; font-size: 12px; } .light-menu .menu { position: absolute; z-index: @z-index-popover; right: 0; top: 100%; box-shadow: 0 1px 3px #a8a8a8; background-color: white; } .light-menu.is-reached-bottom .menu { bottom: 100%; top: auto; } .light-menu.is-reached-left .menu { left: 100%; right: auto; } .light-menu .menu .item { display: flex; justify-content: middle; line-height: 40px; cursor: pointer; padding: 0 15px; white-space: nowrap; color: @font-level-2; min-width: 96px; } .light-menu .menu .item:hover { background-color: #f7f7f7; color: @font-level-2; } ```
```java /** * This file is part of Skript. * * Skript is free software: you can redistribute it and/or modify * (at your option) any later version. * * Skript 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 * * along with Skript. If not, see <path_to_url * */ package ch.njol.skript.expressions; import ch.njol.skript.aliases.ItemType; import ch.njol.skript.doc.Description; import ch.njol.skript.doc.Examples; import ch.njol.skript.doc.Name; import ch.njol.skript.doc.Since; import ch.njol.skript.entity.EntityData; import ch.njol.skript.expressions.base.SimplePropertyExpression; import ch.njol.skript.lang.util.ConvertedExpression; import org.skriptlang.skript.lang.converter.Converters; import org.bukkit.block.data.BlockData; import org.bukkit.inventory.Inventory; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; import org.eclipse.jdt.annotation.Nullable; @Name("Type of") @Description({ "Type of a block, item, entity, inventory or potion effect.", "Types of items, blocks and block datas are item types similar to them but have amounts", "of one, no display names and, on Minecraft 1.13 and newer versions, are undamaged.", "Types of entities and inventories are entity types and inventory types known to Skript.", "Types of potion effects are potion effect types." }) @Examples({"on rightclick on an entity:", "\tmessage \"This is a %type of clicked entity%!\""}) @Since("1.4, 2.5.2 (potion effect), 2.7 (block datas)") public class ExprTypeOf extends SimplePropertyExpression<Object, Object> { static { register(ExprTypeOf.class, Object.class, "type", "entitydatas/itemtypes/inventories/potioneffects/blockdatas"); } @Override protected String getPropertyName() { return "type"; } @Override @Nullable public Object convert(Object o) { if (o instanceof EntityData) { return ((EntityData<?>) o).getSuperType(); } else if (o instanceof ItemType) { return ((ItemType) o).getBaseType(); } else if (o instanceof Inventory) { return ((Inventory) o).getType(); } else if (o instanceof PotionEffect) { return ((PotionEffect) o).getType(); } else if (o instanceof BlockData) { return new ItemType(((BlockData) o).getMaterial()); } assert false; return null; } @Override public Class<?> getReturnType() { Class<?> returnType = getExpr().getReturnType(); return EntityData.class.isAssignableFrom(returnType) ? EntityData.class : ItemType.class.isAssignableFrom(returnType) ? ItemType.class : PotionEffectType.class.isAssignableFrom(returnType) ? PotionEffectType.class : BlockData.class.isAssignableFrom(returnType) ? ItemType.class : Object.class; } @Override @Nullable protected <R> ConvertedExpression<Object, ? extends R> getConvertedExpr(final Class<R>... to) { if (!Converters.converterExists(EntityData.class, to) && !Converters.converterExists(ItemType.class, to)) return null; return super.getConvertedExpr(to); } } ```
```html <!--[--><div class="bar svelte-ievf05">bar</div><!----> <div class="foo svelte-sg04hs">foo</div><!--]--> ```
Sometimes depicted in writings and drawings from ancient classical, medieval, and modern times, the Zodiac Man (Homo Signorum or "Man of Signs") represents a roughly consistent correlation of zodiacal names with body parts. The Zodiac Man appeared most frequently in calendars, devotional Books of Hours, and treatises on philosophy, astrology, and medicine in the medieval era. Before the emergence of scientific empiricism in the 17th century, medieval physicians looked to the skies for guidance. Having observed that the overhead moon brought high tides, they theorized the dangers of letting blood from a body part whose zodiacal sign was occupied by the moon since a tide of blood might gush out uncontrollably. Table of correspondences The association of body parts with zodiac signs remained relatively consistent during antiquity and into the medieval period. The "primary" associations are both the oldest and the most common. Ancient origins The concept of the Zodiac Man dates to the Hellenistic era in which the earliest exposition appears in Manilius's Astronomica (II. 453–465; IV. 701–710). However, a cuneiform tablet of unknown date gives a nearly identical list of bodily divisions that possibly but not certainly could have been created before Manilius. A Greek text (περὶ μελῶν ζωδίων - On the limbs of the zodiacal sign) describing the subdivision of zodiac signs into dodecatemoria (signs within signs) suggests that Zodiac Man (or Zodiac Animal, modified slightly to suit each sign) could also be associated with the idea of this "micro-zodiac". Overall, the idea of Zodiac Man goes back thousands of years to Babylonia where the body was considered to work in tune with the heavenly bodies. The general system of zodiac signs relating to healing is thought to predate Manilius by several centuries and has been attributed to philosophers such as Pythagoras, Democritus, Aristotle, and Hermes. Astrological medicine The Zodiac Man was used in medieval medicine to determine the correct time for surgery, medication, bloodletting, and other procedures. The foremost rule was to avoid interfering with a body part when the moon could be found in its corresponding sign. This injunction was attributed to Claudius Ptolemy: "Membrum ferro ne percutito, cum Luna signum tenuerit, quod membro illi dominatur." Wherever the moon and stars are aligned with a certain astrological sign, they correlated with a body part, bodily system, or the four humors. The four humors separate the body into four parts just as there are four elements. The four humors of the human body are yellow bile, black bile, phlegm, and blood; it was believed that these all needed to be in balance in order to keep up with your health. These humors were used directly to treat illness alongside Zodiac Man and were also used to explain and simplify concepts to patients. Europe was, at the time, required by law to calculate the moon’s positioning before taking action on a patient or any kind of medical procedure. If the moon was not in its correct positioning, nothing was able to be performed because it was deemed unsafe. They used a volvelle, a rotating calendar, to calculate the moon’s position as well as multiple almanacs which described different phases of the moon. Most of the ways that illnesses were determined and diagnosed was through the four humors, especially through blood and yellow bile, better known as urine. This was one of the main ways people were diagnosed. Many pictures of Zodiac Man solely depict the main body parts correlating with the astrological signs, but others go more in depth to then match the signs with internal bodily systems. Over time leading into the Middle Ages, the belief of the Zodiac Man slowly faded out due to new scientific discoveries. While physicians, scientists, and doctors may have become wearier on the diagram and medical astrology, the people did not. The ordinary public stood by their belief of the signs the way they depicted the human body and its dependence on the moon. Religion The Zodiac Man is read and created off the skies and stars or most commonly labeled as the moving heavenly bodies. This suggests a clear pathway to a religious aspect in zodiacal readings. Astrology was united with Christianity during the medieval period and medicine also tended to work hand in hand with the prevailing Christian customs at the time. The signs of the zodiac are considered very spiritual but of course not only associated with Christianity, they are also associated with countless other religions as well including Islam and Judaism. Related Figures Besides Zodiac Man, other human figures and diagrams are also well known and were used in ancient time. There is the Vein Man, the Woman, Wound Man, Disease Man, and the Skeleton. These figures are all using different models and although it is difficult to say if there is any direct relationship between all of these, they are all focused on the human body, which is a large factor in the Zodiac Man’s history. There are other figures among them as well, but these are all most similar to the Zodiac Man. There are also several different Zodiac Man adaptations made such as Dutch, German, and Venetian. See also Adam Kadmon Astrology Babylonian astrology Vesalius References Sources Clark, Charles West. The Zodiac Man in Medieval Medical Astrology. PhD dissertation accepted at University of Colorado, 1979. External links Zodiac Man Example https://earlychurchhistory.org/medicine/the-zodiac-man/      Astrology History of anatomy
```html <!-- If you want to include any custom html just before </body>, put it in /layouts/partials/footer_custom.html Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/footer_custom.html doesn't exist. --> ```
```python # -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-27 20:19 from __future__ import unicode_literals import django.contrib.postgres.search from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0038_auto_20170728_1748'), ] operations = [ migrations.AddField( model_name='historicalreimbursement', name='search_vector', field=django.contrib.postgres.search.SearchVectorField(null=True), ), migrations.AddField( model_name='reimbursement', name='search_vector', field=django.contrib.postgres.search.SearchVectorField(null=True), ), ] ```
Wild Guitar is a 1962 American comedy-drama musical film directed by Ray Dennis Steckler and starring Arch Hall Jr., Arch Hall Sr. (credited as William Watters), Ray Dennis Steckler (credited as Cash Flagg), and Nancy Czar. The film was produced by Arch Hall Sr. The film was targeted towards the drive-in market, and is generally regarded as a B-movie, but has become infamous as part of a series of films made by Arch Hall Sr., which starred his son, Arch Hall Jr. Plot Bud Eagle (Arch Hall Jr.), a young singer-songwriter, arrives in Hollywood on a motorcycle. At Marge's Koffee Kup Cafe, he meets Vickie (Nancy Czar), an aspiring dancer, who quizzes him about his "gimmick" and promises to give him the "inside dope" on the music industry. He attends her performance at a television variety show later that night. When the scheduled saxophonist is unable to perform, Bud steps in with a ballad that earns him a standing ovation. Bud's performance also earns the notice of talent scout Mike McCauley (Arch Hall Sr.), who offers him a record deal. Bud accepts the McCauley's proposal. McCauley immediately installs Bud in a penthouse apartment, providing him with tailored suits, a Fender Jazzmaster, a mini tape recorder, and a new backing band ready to record his songs. Bud's music career takes off in spite of his mounting doubts about the unscrupulous McCauley, who pays high school students to promote his music at their schools. Bud attempts to leave McCauley more than once, but relents when McCauley reminds him of the money he's owed. Bud performs "Vickie" (also heard in the less contextually-appropriate Eegah) live on television, and Vickie sees the broadcast. She runs to the television studio where they joyfully reunite. They spend the night ice skating in Vickie's uncle's rink, Nancy Czar being a former figure skater. When Bud returns to his penthouse apartment, he is confronted by Don Proctor, McCauley's previous client. He warns Bud that McCauley is cheating him, and manipulating him. McCauley's henchman, Steak (Ray Dennis Steckler), arrives with a girl, Daisy, who begins to dance seductively, distracting Bud while Steak and Proctor go outside to fight. Steak throws Proctor down a staircase. As Daisy kisses Bud, Vickie walks in, and runs out again in tears. Bud chases after her but is kidnapped by a trio of comical bums from Marge's Koffee Kup Cafe. Eager to take advantage of McCauley, Bud helps the kidnappers to plan the crime, encouraging them to ask for more ransom money. They try to share the money with him, but he refuses. Steak breaks into the kidnappers' hideout, the group scatters, and Bud goes into hiding. He takes a job as a dishwasher at Marge's Koffee Kup Cafe, where he and Vickie reconcile, but are quickly apprehended by McCauley and Steak, who threaten violence if Bud does not return to them. After a climactic fist fight between Steak and Bud, Steak flees, and Bud demands that McCauley reform his dishonest business. McCauley refuses. Bud reveals that he has recorded the incriminating conversation using the mini tape recorder, and he threatens to make the recording public. McCauley relents, promising to manage Bud's career fairly from now on. The film closes with scenes of Vickie and Bud dancing together on the beach as Bud sings "Twist Fever." Cast Arch Hall Jr. as Bud Eagle Arch Hall Sr. as Mike McCauley (credited as William Watters) Nancy Czar as Vickie Wills Ray Dennis Steckler as Steak (credited as Cash Flagg) Marie Denn as Marge Carolyn Brandt as Dancer on Ramp (Uncredited) Virginia Broderick as Daisy Robert Crumb as Don Proctor Rick Dennis as Stage Manager Jonathan Karle as Kidnapper No. 3 William Lloyd as Weasel Al Scott as Ted Eagle Mike Treibor as Brains (Kidnapper #1) Paul Voorhees as Hal Kenton Production notes The screenplay was written by Arch Hall Sr. (under the name Nicholas Merriwether), Joe Thomas, and Bob Wehling, and the musical director was a high school friend of Arch Hall Jr., the young Alan O'Day, who went on to record a number 1 pop hit called "Undercover Angel" in the 1970s. Legacy In 2005, the film was featured in an episode of Deadly Cinema. Nicolas Winding Refn is a fan of the film as well to the point of restoring and featuring it on the Black Deer Film Festival in 2019. Notes External links Wild Guitar on byNWR 1962 films 1962 independent films 1960s musical drama films American musical drama films American black-and-white films Films set in Los Angeles Films shot in Los Angeles American independent films 1962 directorial debut films 1962 drama films 1960s English-language films 1960s American films
```xml import { ValidationPlugins } from "./../../../../src/models/ValidatorInterface"; import { expect } from "chai"; import validatorjs from "validatorjs"; import { Form } from "../../../../src"; import dvr from "../../../../src/validators/DVR"; const plugins: ValidationPlugins = { dvr: dvr({ package: validatorjs }), }; const fields = [ "club.name", "club.city", "members", "members[].firstname", "members[].lastname", "members[].hobbies", "members[].hobbies[]", ]; const rules = { email: [ "required", "regex:^[A-Za-z0-9](([_.-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([.-]?[a-zA-Z0-9]+)*).([A-Za-z]{2,})$", ], "club.name": "required|string", "club.city": "required|string", "members[].firstname": "required|string", "members[].lastname": "required|string", "members[].hobbies": "required|string", "members[].hobbies[]": "required|string", }; const values = { email: "s.jobs@apple.com", club: { name: "HELLO", city: "NY", }, members: [ { firstname: "Clint", lastname: "Eastwood", hobbies: ["Soccer", "Baseball"], }, { firstname: "Charlie", lastname: "Chaplin", hobbies: ["Golf", "Basket"], }, ], }; const checkFieldset = (fieldset) => describe("Nested Form onSuccess()", () => it('Fieldset should have "path" prop', () => expect(fieldset).to.have.property("path"))); const submit = { onSubmit(fieldset) { it('$R.submit() should call onSubmit callback', () => { expect(fieldset.submitted).to.equal(1); }) }, onSuccess(fieldset) { checkFieldset(fieldset); }, onError(fieldset) { checkFieldset(fieldset); }, }; const hooks = { club: submit, members: submit, "members[]": submit, }; export default new Form( { fields, rules, values, hooks, }, { name: "Nested-R", plugins, hooks: { onInit(form) { form.$('club').submit(); } } } ); ```
Mahmoud Mabsout (), also known by the character Fehmen () (1941 – 25 July 2011) was a Lebanese actor. Biography Mahmoud was born in 1941 in Tripoli, North Lebanon. He was not good at school, as he said in an interview. He failed first grade six times, and when he was 12 years old, the principal of his school told his father "your son is not good for school." Meanwhile, Mahmoud spent his time acting sketches that he invented with his friends. Mahmoud formed with his friends the "Drabzin Agha" troupe, and made some sketches that made it to festival of the «Ecole des Freres» (school). His father didn't want him to act, and was reported to beat Mahmoud in order to stop him from acting. The father locked his son to prohibit him from going out because acting was a «forbidden art» in his point of view. Mahmoud escaped using a rope tied to the balcony. At the age of sixteen, his father sent him to Africa to work with his brothers. He worked with them during the day, but spent nights playing the «Tarneeb» card game. During one of those games, he met a man named "Asmarani", who was influential in the Arab community in Ghana. "Asmarani" supported him as he formed a troupe with a group of amateurs which he met in nightclubs. They presented plays at homes of Lebanese people around the country. Mahmoud again was beaten, this time by his two brothers. They also imprisoned him at home, but the «Asmarani» intervened and asked and threatened them, not to block the rising artist's carrier. His brothers sent him back to Lebanon. In Lebanon, he joined the comedy troupe of "Abou Salim", led by Salah Tizani, who is also from Tripoli. The troupe worked at "Channel 7" of Tele Liban, performing "live" sketches, after only a few months from its opening, marking the golden era of Tele-Liban. In 1962, they created the "Abou Salim el Tabel" troupe on which Mahmoud assumed the recurring character of Fehmen. Filmography Beside his work in Tele-Liban, Mahmoud Starred in around 25 plays and 33 Films. He worked with many directors such as Muhammad Salman, Samir El Ghosayni, Ziad Doueiry, Atef Al Tayeb, Hani Tamba, Philip Aractanji, Samir Habchi, Borhane Alaouié. Quotes - Life's a joke. It's true it may be heavy sometimes, but still there is always a chance to rejoice with no cost. References Lebanese actors 1941 births 2011 deaths
Eye Cue is a Macedonian pop-rock duo consisting of vocalists Bojan Trajkovski (born 1983) and Marija Ivanovska (born 1997), formed in 2008. The group found chart success with "Magija" in 2008, and entered the MTV Adria Top 20 with the song "Not This Time" in 2010. In 2015 they won Skopje Fest with the song "Ubava". The duo represented Macedonia in the Eurovision Song Contest 2018 with their song "Lost and Found", held in Lisbon, Portugal. References Eurovision Song Contest entrants of 2018 Eurovision Song Contest entrants for North Macedonia
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var fromCodePoint = require( '@stdlib/string/from-code-point' ); var pkg = require( './../package.json' ).name; var reExtnamePosix = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { var out; var str; var i; b.tic(); for ( i = 0; i < b.iterations; i++ ) { str = '/foo/bar/beep/boop'+fromCodePoint( 97 + (i%26) )+'.js'; out = reExtnamePosix.REGEXP.exec( str ); if ( !out || !isString( out[ 1 ] ) ) { b.fail( 'should capture an extname' ); } } b.toc(); if ( !out || !isString( out[ 1 ] ) ) { b.fail( 'should capture an extname' ); } b.pass( 'benchmark finished' ); b.end(); }); ```
Mitch Short is an Australian rugby union player who plays for AS Béziers in the French Pro D2. Graduating from The Scots College, Sydney and representing Australian Schools in 2013, Mitch joined Randwick in 2014., Mitch has great speed off the mark and strong passing game, Mitch has great potential to make the step into rep rugby after he joined the Western Force during the 2017 season. Mitch signed with the NSW Waratahs in 2018 and made his run on debut for the club in Round 3 against the Sharks in Durban. His position of choice is scrum-half. References Australian rugby union players Living people 1995 births Rugby union scrum-halves New South Wales Country Eagles players Western Force players New South Wales Waratahs players Sydney (NRC team) players Racing 92 players Rugby union players from Sydney
```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>React Planner</title> <style> *{ box-sizing: border-box; } html, body, #app { width: 100%; height: 100%; padding: 0; margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; position: absolute; left: 0; top: 0; } </style> </head> <body> <div id="app"></div> <a href="path_to_url" target="_blank" style="display:block" > <img style="position: fixed;top: 0px; right: 0px; border: 0px; z-index: 9001" src="path_to_url" alt="Fork me on GitHub" data-canonical-src="path_to_url"/> </a> <script type="text/javascript" src="28112a5db78339d759b3.vendor.js"></script><script type="text/javascript" src="110d53ec745844ca89d7.app.js"></script></body> </html> ```
Oreodytes picturatus is a species of predaceous diving beetle in the family Dytiscidae. It is found in North America. References Further reading Dytiscidae Articles created by Qbugbot Beetles described in 1883
```c++ * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ #include "BaseErrorListener.h" #include "RecognitionException.h" using namespace antlr4; void BaseErrorListener::syntaxError(Recognizer* /*recognizer*/, Token* /*offendingSymbol*/, size_t /*line*/, size_t /*charPositionInLine*/, const std::string& /*msg*/, std::exception_ptr /*e*/) {} void BaseErrorListener::reportAmbiguity(Parser* /*recognizer*/, const dfa::DFA& /*dfa*/, size_t /*startIndex*/, size_t /*stopIndex*/, bool /*exact*/, const antlrcpp::BitSet& /*ambigAlts*/, atn::ATNConfigSet* /*configs*/) {} void BaseErrorListener::reportAttemptingFullContext( Parser* /*recognizer*/, const dfa::DFA& /*dfa*/, size_t /*startIndex*/, size_t /*stopIndex*/, const antlrcpp::BitSet& /*conflictingAlts*/, atn::ATNConfigSet* /*configs*/) {} void BaseErrorListener::reportContextSensitivity( Parser* /*recognizer*/, const dfa::DFA& /*dfa*/, size_t /*startIndex*/, size_t /*stopIndex*/, size_t /*prediction*/, atn::ATNConfigSet* /*configs*/) {} ```
```objective-c #ifndef QTREEWIDGETSTATECACHE_H #define QTREEWIDGETSTATECACHE_H #include <functional> #include <QSet> #include <QTreeWidget> #include <QTreeWidgetItem> namespace vnotex { template<class Key> class QTreeWidgetStateCache { public: typedef std::function<Key(const QTreeWidgetItem *, bool &)> ItemKeyFunc; explicit QTreeWidgetStateCache(const ItemKeyFunc &p_keyFunc) : m_keyFunc(p_keyFunc), m_currentItem(0) { } void save(QTreeWidget *p_tree, bool p_saveCurrentItem) { clear(); auto cnt = p_tree->topLevelItemCount(); for (int i = 0; i < cnt; ++i) { save(p_tree->topLevelItem(i)); } if (p_saveCurrentItem) { auto item = p_tree->currentItem(); bool ok; Key key = m_keyFunc(item, ok); if (ok) { m_currentItem = key; } } } bool contains(QTreeWidgetItem *p_item) const { bool ok; Key key = m_keyFunc(p_item, ok); if (ok) { return m_expansionCache.contains(key); } return false; } void clear() { m_expansionCache.clear(); m_currentItem = 0; } Key getCurrentItem() const { return m_currentItem; } private: void save(QTreeWidgetItem *p_item) { if (!p_item->isExpanded()) { return; } bool ok; Key key = m_keyFunc(p_item, ok); if (ok) { m_expansionCache.insert(key); } auto cnt = p_item->childCount(); for (int i = 0; i < cnt; ++i) { save(p_item->child(i)); } } QSet<Key> m_expansionCache; ItemKeyFunc m_keyFunc; Key m_currentItem; }; } // ns vnotex #endif // QTREEWIDGETSTATECACHE_H ```
```scss @import 'styles/variables'; .web-container { width: calc(100vw - 223px); float: right; padding-top: 70px; overflow-x: hidden; &.center { float: none; margin: 0 auto; text-align: left; overflow: hidden; } } .challenge-phase { margin-top: 2rem; } ::-webkit-calendar-picker-indicator:hover{ cursor:pointer; } @media only screen and (max-width: $med-screen) { .web-container { width: 100%; } } @import 'styles/variables'; .ev-challenge-card { min-height: 415px; } p { word-wrap: break-word; } @import 'styles/variables'; .challenge-create-flex { display: flex; flex-direction: column; min-height: 100vh; } .challenge-create-content { flex: 1; min-height: 100vh; } .web-container { width: calc(100% - 223px); float: right; padding-top: 70px; overflow-x: hidden; &.center { float: none; margin: 0 auto; text-align: left; overflow: hidden; } } .zip-file-title { margin-bottom: 20px; margin-left: 11px; } .syntax-wrn-msg { font-size: 1em; } .hr-line { line-height: 1em; position: relative; outline: 0; border: 0; color: black; text-align: center; height: 1.5em; opacity: 0.5; &:before { content: ''; background: linear-gradient(to right, transparent, #818078, transparent); position: absolute; left: 0; top: 50%; width: 100%; height: 1px; } &:after { content: ''; position: relative; display: inline-block; padding: 0 0.5em; line-height: 1.5em; color: #818078; background-color: #fcfcfa; } } /*media queries*/ @media only screen and (max-width: $med-screen) { .web-container { width: 100%; } } @import './variables.scss'; @import './mixins.scss'; .row .row-lr-margin { margin-bottom: 20px; } ```
The 64th District of the Iowa House of Representatives is an electoral district in northeastern portion of Iowa. Current elected officials Chad Ingels is the representative currently representing the district. Past representatives The district has previously been represented by: June Franklin, 1971–1973 John H. Connors, 1973–1983 Harold Van Maanen, 1983–1993 Gordon Burke, 1993–1995 Beverly Nelson, 1995–2001 Mark Smith, 2001–2003 Janet Petersen, 2003–2013 Bruce Bearinger, 2013–2021 Chad Ingels, 2021–present References 064
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package forwarder import ( "bytes" "context" "fmt" "net" "strings" "time" "github.com/gorilla/websocket" "istio.io/istio/pkg/test/echo" "istio.io/istio/pkg/test/echo/common" "istio.io/istio/pkg/test/echo/proto" ) var _ protocol = &websocketProtocol{} type websocketProtocol struct { e *executor } func newWebsocketProtocol(e *executor) protocol { return &websocketProtocol{e: e} } func (c *websocketProtocol) ForwardEcho(ctx context.Context, cfg *Config) (*proto.ForwardEchoResponse, error) { return doForward(ctx, cfg, c.e, c.makeRequest) } func (c *websocketProtocol) Close() error { return nil } func (c *websocketProtocol) makeRequest(ctx context.Context, cfg *Config, requestID int) (string, error) { req := cfg.Request var outBuffer bytes.Buffer echo.ForwarderURLField.WriteForRequest(&outBuffer, requestID, req.Url) // Set the special header to trigger the upgrade to WebSocket. wsReq := cfg.headers.Clone() if len(cfg.hostHeader) > 0 { echo.HostField.WriteForRequest(&outBuffer, requestID, hostHeader) } writeForwardedHeaders(&outBuffer, requestID, wsReq) common.SetWebSocketHeader(wsReq) if req.Message != "" { echo.ForwarderMessageField.WriteForRequest(&outBuffer, requestID, req.Message) } dialContext := func(network, addr string) (net.Conn, error) { return newDialer(cfg).Dial(network, addr) } if len(cfg.UDS) > 0 { dialContext = func(network, addr string) (net.Conn, error) { return newDialer(cfg).Dial("unix", cfg.UDS) } } dialer := &websocket.Dialer{ TLSClientConfig: cfg.tlsConfig, NetDial: dialContext, HandshakeTimeout: cfg.timeout, } conn, _, err := dialer.Dial(req.Url, wsReq) if err != nil { // timeout or bad handshake return outBuffer.String(), err } defer func() { _ = conn.Close() }() // Apply per-request timeout to calculate deadline for reads/writes. ctx, cancel := context.WithTimeout(ctx, cfg.timeout) defer cancel() // Apply the deadline to the connection. deadline, _ := ctx.Deadline() if err := conn.SetWriteDeadline(deadline); err != nil { return outBuffer.String(), err } if err := conn.SetReadDeadline(deadline); err != nil { return outBuffer.String(), err } start := time.Now() err = conn.WriteMessage(websocket.TextMessage, []byte(req.Message)) if err != nil { return outBuffer.String(), err } _, resp, err := conn.ReadMessage() if err != nil { return outBuffer.String(), err } echo.LatencyField.WriteForRequest(&outBuffer, requestID, fmt.Sprintf("%v", time.Since(start))) echo.ActiveRequestsField.WriteForRequest(&outBuffer, requestID, fmt.Sprintf("%d", c.e.ActiveRequests())) for _, line := range strings.Split(string(resp), "\n") { if line != "" { echo.WriteBodyLine(&outBuffer, requestID, line) } } return outBuffer.String(), nil } ```
Gana Abhiyan Orissa (Popular Campaign Odisha), also called Orissa Gana Abhiyan, was a political organization in the Indian state of Odisha. The organization was formed a splinter group of Socialist Unity Centre of India, when the local party leader Mayadhar Naik had been expelled from SUCI in the end of the 1990s. Naik claims that the expulsion was motivated by ideological differences, whereas SUCI claimed Naik was guilty of corruption. GAO has worked to a large extent with organizing adivasis and dalits. In the elections 1999 GAO did not launch any candidates of their own, but support 'left and democratic forces'. Ahead of the 2004 a cooperation with the Indian National Congress was discussed. The exact status of the organization today is unclear, it might be that Naik joined Congress. The word gao means 'village'. Political parties in Odisha Political parties established in the 1990s 1990s establishments in Orissa
```html <!DOCTYPE HTML> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>20190916 | Here. There.</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1"> <meta name="author" content=""> <meta name="description" content="~~"> <link rel="alternate" href="/atom.xml" title="Here. There." type="application/atom+xml"> <link rel="icon" href="/img/favicon.ico"> <link rel="apple-touch-icon" href="/img/pacman.jpg"> <link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg"> <link rel="stylesheet" href="/css/style.css"> <script type="text/javascript"> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?3d902de4a19cf2bf179534ffd2dd7b7f"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <meta name="generator" content="Hexo 6.3.0"></head> <body> <header> <div> <div id="imglogo"> <a href="/"><img src="/img/sun.png" alt="Here. There." title="Here. There."/></a> </div> <div id="textlogo"> <h1 class="site-name"><a href="/" title="Here. There.">Here. There.</a></h1> <h2 class="blog-motto">Love ice cream. Love sunshine. Love life. Love the world. Love myself. Love you.</h2> </div> <div class="navbar"><a class="navbutton navmobile" href="#" title=""> </a></div> <nav class="animated"> <ul> <li><a href="/"></a></li> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> <li><a href="/archives"></a></li> <li><a href="/categories"></a></li> <li><a href="path_to_url"></a></li> <li><a href="/about"></a></li> </ul> </nav> </div> </header> <div id="container"> <div id="main" class="post" itemscope itemprop="blogPost"> <article itemprop="articleBody"> <header class="article-info clearfix"> <h1 itemprop="name"> <a href="/2019/09/16/wxapp-latest-20190916/" title="20190916" itemprop="url">20190916</a> </h1> <p class="article-author">By <a href="path_to_url" title=""></a> </p> <p class="article-time"> <time datetime="2019-09-16T15:52:31.000Z" itemprop="datePublished">2019-09-16</time> :<time datetime="2019-09-22T12:24:09.355Z" itemprop="dateModified">2019-09-22</time> </p> </header> <div class="article-content"> <div id="toc" class="toc-article"> <strong class="toc-title"></strong> <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F-latest"><span class="toc-number">1.</span> <span class="toc-text"> latest</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%83%BD%E5%8A%9B"><span class="toc-number">1.1.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%8C%E5%BE%AE%E4%BF%A1%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E3%80%8D%E6%94%AF%E6%8C%81%E7%A7%BB%E5%8A%A8%E7%AB%AF%E6%90%9C%E7%B4%A2"><span class="toc-number">1.1.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%87%AA%E5%8A%A8%E5%8C%96%E6%A1%86%E6%9E%B6-Python-%E7%89%88-%E2%80%93-Minium-%E5%85%AC%E6%B5%8B"><span class="toc-number">1.1.2.</span> <span class="toc-text"> Python Minium </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%89%A9%E5%B1%95%E8%83%BD%E5%8A%9B%E6%9B%B4%E6%96%B0"><span class="toc-number">1.1.3.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%96%B0-Canvas-%E6%8E%A5%E5%8F%A3%E5%85%AC%E6%B5%8B"><span class="toc-number">1.1.4.</span> <span class="toc-text"> Canvas </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%96%B0%E5%A2%9E%E2%80%9C%E5%AE%9E%E6%97%B6%E6%97%A5%E5%BF%97%E2%80%9D%E5%8A%9F%E8%83%BD"><span class="toc-number">1.1.5.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%95%B0%E6%8D%AE%E5%91%A8%E6%9C%9F%E6%9B%B4%E6%96%B0%E5%8A%9F%E8%83%BD"><span class="toc-number">1.1.6.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97"><span class="toc-number">1.1.7.</span> <span class="toc-text"></span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91"><span class="toc-number">1.2.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91%E6%96%B0%E5%A2%9E%E5%AE%9E%E6%97%B6%E6%95%B0%E6%8D%AE%E6%8E%A8%E9%80%81%E8%83%BD%E5%8A%9B"><span class="toc-number">1.2.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%8C%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91%E3%80%8D%E8%B5%84%E6%BA%90%E9%85%8D%E9%A2%9D%E8%B0%83%E6%95%B4"><span class="toc-number">1.2.2.</span> <span class="toc-text"></span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7"><span class="toc-number">1.3.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9C%AC%E5%9C%B0%E7%BC%96%E8%AF%91%E6%97%B6%E8%BF%9B%E8%A1%8C%E5%90%88%E5%B9%B6%E7%BC%96%E8%AF%91"><span class="toc-number">1.3.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#PC-%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E7%89%88%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%87%AA%E5%8A%A8%E9%A2%84%E8%A7%88"><span class="toc-number">1.3.2.</span> <span class="toc-text">PC </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9B%B4%E5%A4%9A%E6%96%B0%E5%A2%9E%E8%83%BD%E5%8A%9B"><span class="toc-number">1.3.3.</span> <span class="toc-text"></span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%95%99%E7%A8%8B"><span class="toc-number">2.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A4%BE%E5%8C%BA%E7%B2%BE%E9%80%89%E6%96%87%E7%AB%A0"><span class="toc-number">2.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%80%E6%96%B0%E8%B8%A9%E5%9D%91-amp-amp-Tips"><span class="toc-number">2.2.</span> <span class="toc-text"> &amp;&amp; Tips</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%90%E5%BC%80%E5%8F%91Tips%E3%80%91-%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%8F%92%E4%BB%B6%E6%9C%80%E4%BD%8E%E5%8F%AF%E7%94%A8%E7%89%88%E6%9C%AC%E8%AE%BE%E7%BD%AE"><span class="toc-number">2.2.1.</span> <span class="toc-text">Tips-</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%90%E8%B8%A9%E5%9D%91%E4%BF%A1%E6%81%AF%E3%80%91-%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%85%AC%E4%BC%97%E5%8F%B7%E5%85%B3%E8%81%94%E7%AD%96%E7%95%A5"><span class="toc-number">2.2.2.</span> <span class="toc-text">- </span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BB%93%E6%9D%9F%E8%AF%AD"><span class="toc-number">2.3.</span> <span class="toc-text"></span></a></li></ol></li></ol> </div> <p>~~<br><span id="more"></span></p> <h1 id="-latest"><a href="#-latest" class="headerlink" title=" latest"></a> latest</h1><h2 id=""><a href="#" class="headerlink" title=""></a></h2><h3 id=""><a href="#" class="headerlink" title=""></a></h3><p></p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> <h3 id="-Python---Minium-"><a href="#-Python---Minium-" class="headerlink" title=" Python Minium "></a> Python Minium </h3><p>Minium / MiniTest /Minium IDEiOSAndroid </p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><ul> <li><p><strong>MobX </strong><br> MobX MobX </p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> </li> <li><p><strong>WeUI</strong><br>WeUI </p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> </li> </ul> <blockquote> <p>Tips: weui 38K</p> </blockquote> <h3 id="-Canvas-"><a href="#-Canvas-" class="headerlink" title=" Canvas "></a> Canvas </h3><p> Canvas v2.9.0 Canvas HTML Canvas 2D GPU Canvas Canvas </p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> <blockquote> <p> iOS v7.0.5 <a target="_blank" rel="noopener" href="path_to_url"></a><a target="_blank" rel="noopener" href="path_to_url"></a> canvas 3~5</p> </blockquote> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><p>--- OpenID </p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><p>12</p> <ul> <li><a target="_blank" rel="noopener" href="path_to_url"></a></li> </ul> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><ul> <li><a target="_blank" rel="noopener" href="path_to_url">08.26-08.30</a> </li> <li><a target="_blank" rel="noopener" href="path_to_url">8.19-8.23</a> </li> <li><a target="_blank" rel="noopener" href="path_to_url">8.12-8.16</a> </li> <li><a target="_blank" rel="noopener" href="path_to_url">8.05-8.09</a> </li> </ul> <h2 id=""><a href="#" class="headerlink" title=""></a></h2><h3 id=""><a href="#" class="headerlink" title=""></a></h3><p><br></p> <p></p> <ul> <li>/</li> <li></li> <li></li> <li><p></p> </li> <li><p><a target="_blank" rel="noopener" href="path_to_url"></a></p> </li> </ul> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><p></p> <ul> <li>20/5/</li> <li>1000201000<br> plus plusCDN plus plus</li> </ul> <h2 id=""><a href="#" class="headerlink" title=""></a></h2><h3 id=""><a href="#" class="headerlink" title=""></a></h3><p><br> - - </p> <h3 id="PC-"><a href="#PC-" class="headerlink" title="PC "></a>PC </h3><p><a target="_blank" rel="noopener" href="path_to_url">PC </a> - - PC PC </p> <h3 id=""><a href="#" class="headerlink" title=""></a></h3><p><a target="_blank" rel="noopener" href="path_to_url"> 1.02.1909051 RC </a></p> <ul> <li></li> <li></li> <li> worker </li> <li> url </li> <li></li> <li></li> <li></li> </ul> <p><a target="_blank" rel="noopener" href="path_to_url"> 1.02.1909111 RC </a></p> <ul> <li></li> <li></li> <li></li> <li></li> </ul> <h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id=""><a href="#" class="headerlink" title=""></a></h2><ul> <li><a target="_blank" rel="noopener" href="path_to_url"> ()</a></li> </ul> <p><a target="_blank" rel="noopener" href="path_to_url"></a></p> <blockquote> <p></p> </blockquote> <h2 id="-amp-amp-Tips"><a href="#-amp-amp-Tips" class="headerlink" title=" &amp;&amp; Tips"></a> &amp;&amp; Tips</h2><h3 id="Tips-"><a href="#Tips-" class="headerlink" title="Tips-"></a>Tips-</h3><p>----30<br>30<br></p> <h3 id="-"><a href="#-" class="headerlink" title="- "></a>- </h3><p>44<a target="_blank" rel="noopener" href="path_to_url"></a><br><br></p> <h2 id=""><a href="#" class="headerlink" title=""></a></h2><p><br><br><br></p> </div> <img src="path_to_url" width="200" height="200" style="display:block;margin: 0 auto;" /> <p style="text-align: center;margin-top: 10px;margin-bottom: 10px;">~</p> <p style="text-align: center;"><a target="_blank" rel="noopener" href="path_to_url">B: </a></p> <div class="article-content"> <p style="margin-top:50px;"> Github<a target="_blank" rel="noopener" href="path_to_url">path_to_url <br> <a href="path_to_url"></a> <br> <br> </p> </div> <div class="author-right"> <p></p> <p><a href="path_to_url">path_to_url <p></p> </div> <footer class="article-footer clearfix"> <div class="article-tags"> <span></span> <a href="/tags//"></a> </div> <div class="article-categories"> <span></span> <a class="article-category-link" href="/categories/%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%8F%8C%E7%9A%AE%E5%A5%B6/"></a> </div> <div class="article-share" id="share"> <!-- JiaThis Button BEGIN --> <div class="jiathis_style_24x24"> <a class="jiathis_button_qzone"></a> <a class="jiathis_button_tsina"></a> <a class="jiathis_button_tqq"></a> <a class="jiathis_button_weixin"></a> <a class="jiathis_button_renren"></a> <a href="path_to_url" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a> </div> <script type="text/javascript"> var jiathis_config = {data_track_clickback:'true'}; </script> <script type="text/javascript" src="path_to_url" charset="utf-8"></script> <!-- JiaThis Button END --> </div> </footer> </article> <nav class="article-nav clearfix"> <div class="prev" > <a href="/2019/10/13/about-front-end-3-growth/" title="--3."> <strong>PREVIOUS:</strong><br/> <span> --3.</span> </a> </div> <div class="next"> <a href="/2019/08/15/wxapp-latest-20190815/" title="20190815"> <strong>NEXT:</strong><br/> <span>20190815 </span> </a> </div> </nav> <!-- `comments: false` --> <!-- --> </div> <div class="openaside"><a class="navbutton" href="#" title=""></a></div> <div id="toc" class="toc-aside"> <strong class="toc-title"></strong> <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F-latest"><span class="toc-number">1.</span> <span class="toc-text"> latest</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%83%BD%E5%8A%9B"><span class="toc-number">1.1.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%8C%E5%BE%AE%E4%BF%A1%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E3%80%8D%E6%94%AF%E6%8C%81%E7%A7%BB%E5%8A%A8%E7%AB%AF%E6%90%9C%E7%B4%A2"><span class="toc-number">1.1.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%87%AA%E5%8A%A8%E5%8C%96%E6%A1%86%E6%9E%B6-Python-%E7%89%88-%E2%80%93-Minium-%E5%85%AC%E6%B5%8B"><span class="toc-number">1.1.2.</span> <span class="toc-text"> Python Minium </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%89%A9%E5%B1%95%E8%83%BD%E5%8A%9B%E6%9B%B4%E6%96%B0"><span class="toc-number">1.1.3.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%96%B0-Canvas-%E6%8E%A5%E5%8F%A3%E5%85%AC%E6%B5%8B"><span class="toc-number">1.1.4.</span> <span class="toc-text"> Canvas </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%96%B0%E5%A2%9E%E2%80%9C%E5%AE%9E%E6%97%B6%E6%97%A5%E5%BF%97%E2%80%9D%E5%8A%9F%E8%83%BD"><span class="toc-number">1.1.5.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%95%B0%E6%8D%AE%E5%91%A8%E6%9C%9F%E6%9B%B4%E6%96%B0%E5%8A%9F%E8%83%BD"><span class="toc-number">1.1.6.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97"><span class="toc-number">1.1.7.</span> <span class="toc-text"></span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91"><span class="toc-number">1.2.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91%E6%96%B0%E5%A2%9E%E5%AE%9E%E6%97%B6%E6%95%B0%E6%8D%AE%E6%8E%A8%E9%80%81%E8%83%BD%E5%8A%9B"><span class="toc-number">1.2.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%8C%E5%B0%8F%E7%A8%8B%E5%BA%8F%C2%B7%E4%BA%91%E5%BC%80%E5%8F%91%E3%80%8D%E8%B5%84%E6%BA%90%E9%85%8D%E9%A2%9D%E8%B0%83%E6%95%B4"><span class="toc-number">1.2.2.</span> <span class="toc-text"></span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7"><span class="toc-number">1.3.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9C%AC%E5%9C%B0%E7%BC%96%E8%AF%91%E6%97%B6%E8%BF%9B%E8%A1%8C%E5%90%88%E5%B9%B6%E7%BC%96%E8%AF%91"><span class="toc-number">1.3.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#PC-%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E7%89%88%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%87%AA%E5%8A%A8%E9%A2%84%E8%A7%88"><span class="toc-number">1.3.2.</span> <span class="toc-text">PC </span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9B%B4%E5%A4%9A%E6%96%B0%E5%A2%9E%E8%83%BD%E5%8A%9B"><span class="toc-number">1.3.3.</span> <span class="toc-text"></span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%95%99%E7%A8%8B"><span class="toc-number">2.</span> <span class="toc-text"></span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A4%BE%E5%8C%BA%E7%B2%BE%E9%80%89%E6%96%87%E7%AB%A0"><span class="toc-number">2.1.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%80%E6%96%B0%E8%B8%A9%E5%9D%91-amp-amp-Tips"><span class="toc-number">2.2.</span> <span class="toc-text"> &amp;&amp; Tips</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%90%E5%BC%80%E5%8F%91Tips%E3%80%91-%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%8F%92%E4%BB%B6%E6%9C%80%E4%BD%8E%E5%8F%AF%E7%94%A8%E7%89%88%E6%9C%AC%E8%AE%BE%E7%BD%AE"><span class="toc-number">2.2.1.</span> <span class="toc-text">Tips-</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E3%80%90%E8%B8%A9%E5%9D%91%E4%BF%A1%E6%81%AF%E3%80%91-%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%85%AC%E4%BC%97%E5%8F%B7%E5%85%B3%E8%81%94%E7%AD%96%E7%95%A5"><span class="toc-number">2.2.2.</span> <span class="toc-text">- </span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BB%93%E6%9D%9F%E8%AF%AD"><span class="toc-number">2.3.</span> <span class="toc-text"></span></a></li></ol></li></ol> </div> <div id="asidepart"> <div class="closeaside"><a class="closebutton" href="#" title=""></a></div> <aside class="clearfix"> <div class="archiveslist"> <p class="asidetitle"></p> <ul class="archive-list"> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/08/05/front-end-performance-task-schedule/" title="--">--...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/07/17/front-end-performance-r-tree/" title="--R ">--R ...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/06/04/front-end-performance-jank-heartbeat-monitor/" title="--">--...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/05/02/front-end-performance-jank-detect/" title="--">--...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/04/03/front-end-performance-long-task/" title=" 50 "> 50 ...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/03/17/front-end-performance-metric/" title="--">--...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/02/21/front-end-performance-about-performanceobserver/" title=" PerformanceObserver"> PerformanceObs...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2024/01/21/front-end-performance-no-response-solution/" title="--">--...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2023/12/25/learn-front-end-develop-from-interview/" title="">...</a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/2023/11/25/render-engine-element-and-event/" title="--8.">--8....</a> </li> </ul> </div> <div class="archiveslist"> <p class="asidetitle"><a href="/archives"></a></p> <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/08/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/07/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/06/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/04/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/03/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/02/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/01/"> 2024</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/12/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/11/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/10/"> 2023</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/09/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/08/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/07/"> 2023</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/06/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/05/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/04/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/03/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/01/"> 2023</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/12/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/11/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/10/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/09/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/08/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/07/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/06/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/05/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/04/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/03/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/02/"> 2022</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/01/"> 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/12/"> 2021</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/"> 2021</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/10/"> 2021</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/09/"> 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/08/"> 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/07/"> 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/06/"> 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/05/"> 2021</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/04/"> 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/03/"> 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/"> 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/"> 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/11/"> 2020</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/10/"> 2020</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/"> 2020</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/07/"> 2020</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/06/"> 2020</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/"> 2020</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/"> 2020</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/02/"> 2020</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/12/"> 2019</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/11/"> 2019</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/"> 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/09/"> 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/"> 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/07/"> 2019</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/"> 2019</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/"> 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/"> 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/"> 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/"> 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/01/"> 2019</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/"> 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/"> 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/"> 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/09/"> 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/08/"> 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/07/"> 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/"> 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/"> 2018</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/"> 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/03/"> 2018</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/"> 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/"> 2018</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/"> 2017</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/"> 2017</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/"> 2017</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/"> 2017</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/"> 2017</a><span class="archive-list-count">11</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/"> 2017</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/"> 2017</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/"> 2017</a><span class="archive-list-count">15</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/"> 2017</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/"> 2017</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/"> 2017</a><span class="archive-list-count">41</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/"> 2017</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/"> 2016</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/"> 2016</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/"> 2016</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/"> 2016</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/"> 2016</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/"> 2016</a><span class="archive-list-count">14</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/06/"> 2016</a><span class="archive-list-count">9</span></li></ul> </div> <div class="archiveslist"> <p class="asidetitle"><a href="/categories"></a></p> <ul class="archive-list"> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/Angular/" title="Angular">Angular<sup>16</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/CSS/" title="CSS">CSS<sup>3</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/D3/" title="D3">D3<sup>8</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/angular2/" title="angular2">angular2<sup>25</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/angular/" title="angular">angular<sup>33</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/box2djs/" title="box2djs">box2djs<sup>34</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/cyclejs/" title="cyclejs">cyclejs<sup>8</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/jQuery/" title="jQuery">jQuery<sup>3</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/js/" title="js">js<sup>27</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/react/" title="react">react<sup>16</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/three-js/" title="three.js">three.js<sup>5</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/vue/" title="vue">vue<sup>30</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/webpack/" title="webpack">webpack<sup>9</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories/web/" title="web">web<sup>2</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>6</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>8</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>38</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>2</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>33</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>27</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>2</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>8</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>1</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>1</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/categories//" title=""><sup>7</sup></a> </li> </ul> </div> <div class="archiveslist"> <p class="asidetitle"></p> <ul class="archive-list"> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>50</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>6</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>16</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>1</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>22</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>24</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>80</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>2</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>121</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>9</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>2</sup></a> </li> <li class="archive-list-item"> <a class="archive-list-link" href="/tags//" title=""><sup>19</sup></a> </li> </ul> </div> <div class="archiveslist"> <p class="asidetitle"><a href="/archives">about</a></p> <ul class="archive-list"> <li class="archive-list-item"> <a>wangbeishan@163.com</a> <a target="_blank" rel="noopener" href="path_to_url">github.com/godbasin</a> </li> </ul> </div> <div class="rsspart"> <a href="/atom.xml" target="_blank" title="rss">RSS </a> </div> </aside> </div> </div> <footer><div id="footer" > <section class="info"> <p> ^_^ </p> </section> <p class="copyright">Powered by <a href="path_to_url" target="_blank" title="hexo">hexo</a> and Theme by <a href="path_to_url" target="_blank" title="Pacman">Pacman</a> 2024 <a href="path_to_url" target="_blank" title=""></a> </p> </div> </footer> <script src="/js/jquery-2.1.0.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.navbar').click(function(){ $('header nav').toggleClass('shownav'); }); var myWidth = 0; function getSize(){ if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; } else if( document.documentElement && document.documentElement.clientWidth) { myWidth = document.documentElement.clientWidth; }; }; var m = $('#main'), a = $('#asidepart'), c = $('.closeaside'), o = $('.openaside'); $(window).resize(function(){ getSize(); if (myWidth >= 1024) { $('header nav').removeClass('shownav'); }else { m.removeClass('moveMain'); a.css('display', 'block').removeClass('fadeOut'); o.css('display', 'none'); $('#toc.toc-aside').css('display', 'none'); } }); c.click(function(){ a.addClass('fadeOut').css('display', 'none'); o.css('display', 'block').addClass('fadeIn'); m.addClass('moveMain'); }); o.click(function(){ o.css('display', 'none').removeClass('beforeFadeIn'); a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn'); m.removeClass('moveMain'); }); $(window).scroll(function(){ o.css("top",Math.max(80,260-$(this).scrollTop())); }); }); </script> <script type="text/javascript"> $(document).ready(function(){ var ai = $('.article-content>iframe'), ae = $('.article-content>embed'), t = $('#toc'), h = $('article h2') ah = $('article h2'), ta = $('#toc.toc-aside'), o = $('.openaside'), c = $('.closeaside'); if(ai.length>0){ ai.wrap('<div class="video-container" />'); }; if(ae.length>0){ ae.wrap('<div class="video-container" />'); }; if(ah.length==0){ t.css('display','none'); }else{ c.click(function(){ ta.css('display', 'block').addClass('fadeIn'); }); o.click(function(){ ta.css('display', 'none'); }); $(window).scroll(function(){ ta.css("top",Math.max(140,320-$(this).scrollTop())); }); }; }); </script> </body> </html> ```