text:
Skydiver in action.
Many people ask themselves whether parachuting is a sport or part of a typically military task. The answer is simple - both, and even more ... However, let's start from the beginning.
André-Jacques Garnerin was the first man to parachute recorded in history. He accomplished this feat at the end of the 18th century. Garnerin built a balloon and a parachute, and then, after rising to a height of 700 m, cut the rope connecting both structures and began to fall. The landing was successful. It can therefore be said that André Garnerin was indeed the first parachutist to start the birth of a new sport.
Sometime after this event, parachuting became a very important element of military operations. In this way, the air force threw soldiers to the front line or to safe zones beyond the enemy line. Not only soldiers, but also military equipment was transported. What's more, the parachute also became a very important element of the pilot's equipment in cases where the aircraft could crash. It was thanks to it that the pilot was able to safely catapult and save his life.
In closer times, parachuting has gained another important application. Namely, it is used during rescue operations during major catastrophes and natural disasters, such as floods, earthquakes or forest fires.
It follows from the above that parachuting is a sport, part of military operations as well as broadly understood rescue operations.
Skydiving is an exciting and safe sport, provided you are well prepared. Every future skydiver must be healthy and physically fit. After many hours of theoretical learning, you can make the first tandem jump, i.e. with an instructor. The next jumps are made by yourself.
Tandem jump.
Jumping is performed from 2000 to 4600 meters. Free fall, depending on whether acrobatics are performed or not, lasts from 45 to 80 seconds. During free fall the jumper can reach speeds of up to 210 kilometers per hour. The most important thing is to open the parachute at the right time. Thanks to this, the encounter with the ground, i.e. landing, will be safe. It should be noted that every jumper, except the main parachute, has a spare one. All this to provide him with greater safety during falling and landing.
I have already mentioned the first skydiver so I cannot fail to mention the one who made the greatest achievement in this field. Felix Baumgartner, because we are talking about him here, was the only one so far to jump from a height of over 40 kilometers, and his flight lasted over 10 minutes.
Felix Baumgartner just before his record jump.
Photo: http://www.redbullstratos.com
Well, not every enthusiast of this sport will be able to boast of such an achievement, and I wish everyone long flights, only safe landings and the joy that accompanies it.
Author: MGD


Here are your FREE Kindle Book Downloads for Today from Amazon! Remember these books may not be FREE Tomorrow so grab them while you can!
You may also like: 100 Kindle Books for $3.99 or Less, just click HERE to see them all!


Anodized removable bottom pans Manufactured with seamless edges and straight sides in a variety of shapes and sizes. Bottom plate is anodized for safety and performance.
Round cheesecake pan removable bottom 8"x2"


text:
Q: Failed to run React-Native on Android I am getting this error after following an official guidelines of React Native here:
https://reactnative.dev/docs/environment-setup
I tried to open the simulator and run the command again but I am getting the same error.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 967 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
/bin/sh: adb: command not found
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081```

A: You should connect an android device ( Activate developer mode ) or open an emulator from
AVD manager of Android studio

A: Please run the following from terminal, inside the project folder
export ANDROID_HOME=/Users/{yourusername}/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH

Then npm run android

redpajama_set_name: RedPajamaStackExchange


From the Poets and Poetry of America by Rufus Griswold, 1842, pg. 385.
To which my heart congenial fondly clings.
Spring's budding beauties, pleasures which have been.
From the Knickerbocker, Volume 49, 1857, pg. 292.
Of the gentle summer rain.
Of the jovial autumn rain.
Of the noisy winter rain.


The PDF Rendering Extension of Telerik Reporting produces a version 1.6 PDF file. The file can be opened with Adobe Acrobat 7.0 or later. The file is compressed using the FlateDecode filter. The PDF rendering extension is a physical page renderer, thus has pagination behavior that differs from other rendering extensions such as HTML and Excel, which are not page oriented. PDF and Image Export Formats share the same high-level layout engine. Therefore all rules and design considerations that apply for the Image Rendering Extension apply for PDF as well.
The PDF rendering extension is based on the Image rendering extension, with some differences. For information common to the Image rendering extension and the PDF rendering extension, see Design Considerations for Image Rendering. This topic describes features that are specific to the PDF rendering extension.
Due to anti-aliasing which some PDF viewers apply, report item borders may not be displayed consistently at different zoom levels in the PDF viewer. Report item's solid type borders will be rendered with miter joints when two adjacent border segments have different color, or their color is transparent. Borders with miter joints will be anti-aliased in some PDF viewers. To make sure borders will be displayed consistently in a PDF viewer use a single color (e.g. black) for all borders of the report item.
The PDF rendering extension embeds fonts by default. This functionality is controlled by the FontEmbedding device information setting. Fonts that are used in a report must be installed on the machine where the application is running or privateFonts must be configured, so the PDF rendering can embed them. If you disable font embedding, the fonts used in the report must be installed on the client computers used to view the report. When the report engine generates a report in PDF format, it uses the information stored in the font to measure and create character mappings within the PDF file. If the referenced font is not available, the resulting PDF file might not contain the correct mappings and might not display correctly when viewed. Before deploying the report on a production server, you should test the PDF output on client computers to verify that the report renders correctly. Do not rely on the Designer Preview or rendering to HTML, because GDI font substitution in those formats behaves differently than PDF. If there are Unicode Glyphs missing on the server, you may see characters replaced with a question mark and if there is a font missing on the client, you may see characters replaced with boxes.
When designing a report that would be exported to PDF, you should make sure that the font you use in the report supports the characters that would be displayed. For example when you use a font that does not support non-Latin characters, but then non-Latin characters are added to the report and it is exported to PDF, they would be replaced by question mark character (?) as PDF doesn't automatically substitute fonts.
To view the list of fonts that are embedded in a PDF file, open the file in Adobe Acrobat and from the File menu, view Properties. The Fonts tab displays the list of fonts that are embedded in the file.
The PDF rendering extension supports three versions of the standard – PDF/A-1b (2005), PDF/A-2b (2011), PDF/A-3b (2013). The compliance level is defined with the rendering extension device info. For more information see: PDF Device Information Settings.
Font embeddeding of subset or full is required. The default option is subset.
Digital Signature functionality is not available due to the missing support for widgets without appearance.
The PDF rendering extension allows password protection with document content encryption. You can specify owner password and user password. The user password gives read only permissions. The passwords are defined with the rendering extension device info. For more information see: PDF Device Information Settings.
The digital signature feature enables you to sign and validate a PDF document. A signature confirms that the document content originated from the signer and has not been modified in any way.
In the PDF document model, the validation is performed per signature. A signed document is considered valid when it has not been changed after the signing and all of its certificates have a valid trusted root certificate.
To sign a PDF document a path to a X.509 certificate is specified in the rendering extension device info. For more information see: PDF Device Information Settings.
Creator If custom value is not specified with PDF Device Information Settings, the default value is Telerik Reporting product name and version.
Producer If custom value is not specified with PDF Device Information Settings, the default value is Telerik Reporting product name and version.
The PDF rendering extension supports Document Map interactive feature which is rendered as PDF Bookmarks. You can use the Bookmarks by opening the Bookmarks pane in Acrobat Reader to navigate inside the report.
URL actions on report items are rendered as hyperlinks in the PDF file. Hyperlinks are rendered as clickable links and when you click the hyperlink, the default Web browser opens and navigates to the specified URL.
Only Unicode fonts are supported.
PDF signing is not supported.
Underlining justified text will only underline the words and not the spaces between them.
Rendering reports with many items with justified text may be slower.


text:
Q: install video in local memory and play in there in android how can I install video from url in local memory and  play in there in android? Can you share example code about this? I tried like below but I get error "Sorr,this video cannot played" Video cannot played,but code is installing to video file .I can see it "File Explorer"
public class VideoSaveSDCARD extends Activity {

    private VideoView vView;

    private static final String TAG = "UpdaterService";
    File SDCardRoot;
    Handler asyncHandler = new Handler();
    String videoLink = "http://hurriyettv.cubecdn.net/2014/11/19/htv_99710_240p.mp4";
    String name = "blaa.mp4";
    private Updater updater;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
                .permitAll().build();
        StrictMode.setThreadPolicy(policy);
        SDCardRoot = new File(getFilesDir() + "/videos");

        File[] videos = SDCardRoot.listFiles();

        vView = (VideoView) findViewById(R.id.vview);

        try {

            String[] fileArray = new String[videos.length];
            for (int i = 1; i < 2; i++) {
                fileArray[i] = videos[i].getName();

                Log.i("@Tag:file[1]", "" + fileArray[i]);

                vView.requestFocus();

                vView.setVideoPath("" + fileArray[i]);

                vView.start();

                // MediaPlayer pl = new MediaPlayer();
                // pl.setDataSource(fi.getFD());
                // pl.prepare();
                // pl.start();
                //
            }
        } catch (Exception e) {
            // TODO: handle exception
        }

        /*
         * Log.i("fileeee", "" + videos[1]);
         *
         * vView = (VideoView) findViewById(R.id.vview);
         *
         * // use this to get touch events vView.requestFocus();
         *
         * // load video from SD card vView.setVideoPath(
         * "/data/data/com.example.downlaodvideo/files/videos/blaa.mp4");
         *
         * // enable this if you want to enable video controllers, such as pause
         * // and forward
         *
         * // plays the movie vView.start();
         */

        File SDCardRoot = new File(VideoSaveSDCARD.this.getFilesDir() + "/"
                + "videos");

        if (!SDCardRoot.exists()) {
            SDCardRoot.mkdir();
        }
        // deleteDirectory(SDCardRoot);

        updater = new Updater();
        updater.start();
    }

    class Updater extends Thread {

        @Override
        public void run() {
            super.run();
            downloadFiles(videoLink, name);
        }
    }

    synchronized boolean downloadFiles(String link, String videoName) {
        try {
            URL url = new URL(link); // you can write here any link

            long startTime = System.currentTimeMillis();
            Log.d("VideoManager", "download begining");
            Log.d("VideoManager", "download url:" + url);
            Log.d("VideoManager", "downloaded file name:" + videoName);
            /* Open a connection to that URL. */
            URLConnection ucon = url.openConnection();

            /*
             * Define InputStreams to read from the URLConnection.
             */
            InputStream is = ucon.getInputStream();
            BufferedInputStream bis = new BufferedInputStream(is);

            /*
             * Read bytes to the Buffer until there is nothing more to read(-1).
             */
            ByteArrayBuffer baf = new ByteArrayBuffer(50);
            int current = 0;
            while ((current = bis.read()) != -1) {
                baf.append((byte) current);
            }

            /* Convert the Bytes read to a String. */
            FileOutputStream fos = new FileOutputStream(new File(SDCardRoot,
                    videoName));
            fos.write(baf.toByteArray());
            fos.close();
            Log.d("VideoManager",
                    "download ready in"
                            + ((System.currentTimeMillis() - startTime) / 1000)
                            + " sec");
            return true;
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return false;
    }

    public String getDataFromPortal(String remoteUrl, String myString) {
        String data = null;
        DefaultHttpClient httpclient = new DefaultHttpClient();
        HttpGet httpGet = new HttpGet(remoteUrl + myString);

        try {
            HttpResponse response1 = httpclient.execute(httpGet);
            InputStream is = response1.getEntity().getContent();

            data = getStringFromInputStream(is);
            return data;
        } catch (ClientProtocolException e) {
            // TODO Auto-generated catch block
            Log.d(TAG, "................internet yok catch 1");
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            Log.d(TAG, "................internet yok catch 2");
            e.printStackTrace();
        }

        // The underlying HTTP connection is still held by the response
        // object
        // to allow the response content to be streamed directly from the
        // network socket.
        // In order to ensure correct deallocation of system resources
        // the user MUST either fully consume the response content or abort
        // request
        // execution by calling HttpGet#releaseConnection().
        return data;
    }

    private String getStringFromInputStream(InputStream is) {

        BufferedReader br = null;
        StringBuilder sb = new StringBuilder();

        String line;
        try {

            br = new BufferedReader(new InputStreamReader(is));
            while ((line = br.readLine()) != null) {
                sb.append(line);
            }

        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }

        return sb.toString();

    }

    public static boolean deleteDirectory(File path) {
        if (path.exists()) {
            File[] files = path.listFiles();
            if (files == null) {
                return true;
            }
            for (int i = 0; i < files.length; i++) {
                if (files[i].isDirectory()) {
                    deleteDirectory(files[i]);
                } else {
                    files[i].delete();
                }
            }
        }
        return (path.delete());
    }

}

A:     public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Log.d("on create","on create");
            setContentView(R.layout.activity_main);
            new Asyntask().execute();

            StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
                    .permitAll().build();
            StrictMode.setThreadPolicy(policy);
            SDCardRoot = new File("/sdcard/videos");
            Log.d("SDCARDGGHGHg",""+SDCardRoot);
            File[] videos = SDCardRoot.listFiles();
            //Log.d("Videos array   ",""+videos[0].getName());
            vView = (VideoView) findViewById(R.id.vview);
            Log.d("before try cathc","testing");
File SDCardRoot = new File("/sdcard/videos");
        Log.d("SDCardRoot",""+SDCardRoot);

        if (!SDCardRoot.exists()) {
            SDCardRoot.mkdir();
        }
}
class Asyntask extends AsyncTask<Void,Void,Void>
    {

        @Override
        protected Void doInBackground(Void... params) {
            // TODO Auto-generated method stub
            Log.d("In background","in background");
            URL url;
            try {
                url = new URL(videoLink);
                long startTime = System.currentTimeMillis();
                Log.d("VideoManager", "download begining");
                Log.d("VideoManager", "download url:" + url);
                Log.d("VideoManager", "downloaded file name:" + name);
                /* Open a connection to that URL. */
                URLConnection ucon = url.openConnection();
                InputStream is = ucon.getInputStream();
                BufferedInputStream bis = new BufferedInputStream(is);
                ByteArrayBuffer baf = new ByteArrayBuffer(50);
                int current = 0;
                while ((current = bis.read()) != -1) {
                    baf.append((byte) current);
                }
                FileOutputStream fos;

                    fos = new FileOutputStream(new File(SDCardRoot,
                            name));
                    fos.write(baf.toByteArray());
                    fos.close();

            } catch (MalformedURLException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
            catch (Exception e) {
                // TODO: handle exception
            }
            return null;

        }

        @Override
        protected void onPostExecute(Void result) {
            // TODO Auto-generated method stub
            Log.d("In post","in post");
            vView.setVideoPath(SDCardRoot+"/blaa.mp4");

            vView.start();
            Log.d("android","post execute");
            super.onPostExecute(result);
        }

    }

This will run your code.


text:
<?php
namespace Codeception\Module;

/**
 * Unit testing module
 *
 * ## Please don't use that anymore. Really. It's deprecated in [favor of common unit tests](http://codeception.com/03-18-2013/scenario-unit-deprecated.html).
 *
 * This is the heart of the CodeGuy testing framework.
 * By providing a unique set of features Unit, the module makes your tests cleaner, more readable, and easier to write.
 *
 * ## Status
 *
 * * Maintainer: **davert**
 * * Stability: **deprecated**
 * * Contact: codecept@davert.mail.ua
 *
 * ## Features
 * * Descriptive - simply write what you are testing and how you are testing.
 * * Execution limit - only 'execute* methods actually execute your code. It's easy to see where tested methods are invoked.
 * * Simple stub definition - create stubbed class with one call. All properties and methods can be passed as callable functions.
 * * Dynamic mocking - stubs can be automatically turned into mocks.
 *
 */

class Unit extends \Codeception\Module
{

    protected $stubs = array();
    protected $predictedExceptions = array();
    protected $thrownExceptions = array();

    protected $last_result;

    /**
     * @var \Codeception\TestCase
     */
    protected $test;

    protected $testedClass;
    protected $testedMethod;

    protected $testedStatic;

    public function _initialize()
    {

    }

    public function _before(\Codeception\TestCase $test)
    {
        $this->test = $test;
        $this->stubs = array();
    }

    public function _after(\Codeception\TestCase $test)
    {
        \Codeception\Util\Fixtures::cleanup();
    }

    public function _failed(\Codeception\TestCase $test, $fail)
    {
        if (count($this->stubs)) {
            $this->debug("Stubs were used:");
            foreach ($this->stubs as $stub) {
                if (isset($stub->__mocked)) $this->debug($stub->__mocked);
                $this->debug(json_encode($stub));
            }
        }
    }

    /**
     * Registers a class/method which will be tested.
     * When you run 'execute' this method will be invoked.
     * Please, note that it also updates the feature section of the scenario.
     *
     * For non-static methods:
     *
     * ``` php
     * <?php
     * $I->testMethod('ClassName.MethodName'); // I will need ClassName instance for this
     * ```
     *
     * For static methods:
     *
     * ``` php
     * <?php
     * $I->testMethod('ClassName::MethodName');
     * ```
     *
     * @param $signature
     * @deprecated
     */
    public function testMethod($signature)
    {
        if (strpos($signature, '.')) {
            // this is class method
            list($class, $method) = explode('.', $signature);
            $this->testedClass = $class;
            $this->testedMethod = $method;
            $this->testedStatic = false;
        } elseif (strpos($signature, '::')) {
            // we test static method
            list($class, $method) = explode('::', $signature);
            $this->testedClass = $class;
            $this->testedMethod = $method;
            $this->testedStatic = true;
        }
        $this->debug('Class: ' . $class);
        $this->debug('Method: ' . $method);
        if ($this->testedStatic) $this->debug('Static');
    }

    /**
     * Adds a stub to the internal registry.
     * Use this command if you need to convert this stub to a mock.
     * Without adding the stub to registry you can't trace it's method invocations.
     *
     * @param $instance
     * @deprecated
     */
    public function haveFakeClass($instance)
    {
        $this->stubs[] = $instance;
        $stubid = count($this->stubs) - 1;
        if (isset($instance->__mocked)) $this->debugSection('Registered stub', 'Stub_' . $stubid . ' {' . $instance->__mocked . '}');
    }

    /**
     * Alias for haveFakeClass
     *
     * @alias haveFakeClass
     * @param $instance
     */
    public function haveStub($instance)
    {
        $this->haveFakeClass($instance);
    }

    /**
     * Execute The tested method on an object (a stub can be passed).
     * First argument is an object, the rest are supposed to be parameters passed to method.
     *
     * Example:
     *
     * ``` php
     * <?php
     * $I->wantTo('authenticate user');
     * $I->testMethod('User.authenticate');
     * $user = new User();
     * $I->executeTestedMethodOn($user, 'Davert','qwerty');
     * // This line $user->authenticate('Davert','qwerty') was called.
     * $I->seeResultEquals(true);
     * ?>
     * ```
     *
     * For static methods use 'executeTestedMethodWith'.
     *
     * @param $object
     * @deprecated
     */
    public function executeTestedMethodOn($object)
    {
        $args = func_get_args();
        $obj = array_shift($args);

        $method = $this->testedMethod;
        $callable = function () use ($method, $obj, $args) {

            $reflectedObj = new \ReflectionClass($obj);
            $reflectedMethod = $reflectedObj->getMethod($method);
            if (!$reflectedMethod)
                throw new \Codeception\Exception\Module(__CLASS__,sprintf('Method %s can\'t be called in this object', $method));

            if (!$reflectedMethod->isPublic()) {
                $reflectedMethod->setAccessible(true);
            }
            return $reflectedMethod->invokeArgs($obj, $args);
        };

        $this->execute($callable);
        if (isset($obj->__mocked)) $this->debug('Received Stub');
        $this->debug("Method {$this->testedMethod} executed");
        $this->debug('With parameters: ' . json_encode($args));

    }

    /**
     * Executes the tested static method with parameters provided.
     *
     * ```
     * <?php
     * $I->testMethod('User::validateName');
     * $I->executeTestedMethodWith('davert',true);
     * // This line User::validate('davert', true); was called
     * ?>
     * ```
     * For a non-static method use 'executeTestedMethodOn'
     *
     * @param $params
     * @throws \Codeception\Exception\Module
     * @deprecated
     */
    public function executeTestedMethodWith($params)
    {
        $args = func_get_args();
        if (!method_exists($this->testedClass, $this->testedMethod))
            throw new \Codeception\Exception\Module(__CLASS__,sprintf('%s::%s is not valid callable', $this->testedClass, $this->testedMethod));

        $class = $this->testedClass;
        $method = $this->testedMethod;

        $callable = function () use ($args, $class, $method) {
            return call_user_func_array(array($class, $method), $args);
        };

        $this->execute($callable);

        $this->debug("Static method {$this->testedClass}::{$this->testedMethod} executed");
        $this->debug('With parameters: ' . json_encode($args));
    }

    /**
     * Executes the method which is being tested.
     * If the method is not static, the class instance should be provided.
     *
     * If a method is static 'executeTestedWith' will be called.
     * If a method is not static 'executeTestedOn' will be called.
     * See those methods for the full reference
     *
     * @throws \InvalidArgumentException
     * @deprecated
     */
    public function executeTestedMethod()
    {
        $args = func_get_args();
        if ($this->testedStatic) {
            call_user_func_array(array($this, 'executeTestedMethodWith'), $args);
        } else {
            call_user_func_array(array($this, 'executeTestedMethodOn'), $args);
        }
    }

    /**
     * Executes a code block. The result of execution will be stored.
     * Parameter should be a valid Closure. The returned value can be checked with seeResult actions.
     *
     * Example:
     *
     * ``` php
     * <?php
     * $user = new User();
     * $I->execute(function() use ($user) {
     *      $user->setName('Davert');
     *      return $user->getName();
     * });
     * $I->seeResultEquals('Davert');
     * ?>
     * ```
     *
     * You can use native PHPUnit asserts in the executed code.
     * These can be either static methods of the 'PHPUnit_Framework_assert' class,
     * or functions taken from 'PHPUnit/Framework/Assert/Functions.php'. They start with 'assert_' prefix.
     * You should manually include this file, as these functions may conflict with functions in your code.
     *
     * Example:
     *
     * ``` php
     * <?php
     * require_once 'PHPUnit/Framework/Assert/Functions.php';
     *
     * $user = new User();
     * $I->execute(function() use ($user) {
     *      $user->setName('Davert');
     *      assertEquals('Davert', $user->getName());
     * });
     * ```
     *
     * @param \Closure $code
     * @deprecated
     */
    public function execute(\Closure $code)
    {
        // cleanup mocks
//        foreach ($this->stubs as $mock) {
//            $mock->__phpunit_cleanup();
//        }

        $this->createMocks();
        $this->predictExceptions();
        $res = null;

        try {
            $res = $code->__invoke();
        } catch (\Exception $e) {
            $this->catchException($e);
        }

        $this->debug('Result: ' . json_encode($res));
        $this->last_result = $res;
    }

    /**
     * Executes a method of an object.
     * Additional parameters can be provided.
     *
     * Example:
     *
     * ``` php
     * <?php
     * // to execute $user->getName()
     * $I->executeMethod($user,'getName');
     *
     * // to execute $user->setName('davert');
     * $I->executeMethod($user,'setName', 'davert');
     *
     * // or more parameters
     * $I->executeMethod($user, 'setNameAndAge', 'davert', '30');
     *
     * ?>
     * ```
     *
     * @param $object
     * @param $method
     * @deprecated
     */
    public function executeMethod($object, $method) {
        $params = func_get_args();
        $object = array_shift($params);
        $method = array_shift($params);

        // cleanup mocks
//        foreach ($this->stubs as $mock) {
//            $mock->__phpunit_cleanup();
//        }

        $this->createMocks();
        $this->predictExceptions();
        $res = null;

        try {
            $res = call_user_func_array(array($object, $method), $params);
        } catch (\Exception $e) {
            $this->catchException($e);
        }

        $this->debug('Result: ' . json_encode($res));
        $this->last_result = $res;
    }

    /**
     * Updates multiple properties of the selected object.
     * Can update even private and protected properties.
     *
     * Properties to be updated and their values are passed in the second parameter as an array:
     * array('theProperty'     => 'some value',
     *      ('anotherProperty' => 'another value')
     *
     * @param $obj
     * @param array $values
     * @deprecated
     */

    public function changeProperties($obj, $values = array()) {
        //As for now, PHP cannot resolve properties of namespaced class if class instance passed to reflector
        //In our case we have mocked class with original full classname stored in __mocked property
        if(isset($obj->__mocked)) {
            $reflectedObj = new \ReflectionClass($obj->__mocked);
        } else {
            $reflectedObj = new \ReflectionClass($obj);
        }
        foreach ($values as $key => $val) {
            $property = $reflectedObj->getProperty($key);
            $property->setAccessible(true);
            $property->setValue($obj, $val);
        }

    }

    /**
     * Updates a single property of the selected object
     * Can update even private and protected properties.
     *
     * @param $obj
     * @param $property
     * @param $value
     * @deprecated
     */

    public function changeProperty($obj, $property, $value) {
        $this->changeProperties($obj, array($property => $value));
    }

    public function seeExceptionThrown($classname, $message = null) {

        \PHPUnit_Framework_Assert::assertNotEmpty($this->thrownExceptions, "No exception was thrown");

        foreach ($this->thrownExceptions as $e) {
            if ($e instanceof $classname) {
                \PHPUnit_Framework_Assert::assertInstanceOf($classname, $e);
                if ($message) \PHPUnit_Framework_Assert::assertContains($message, $e->getMessage());
                return;
            }
        }
    }

    protected function predictExceptions()
    {
        $this->thrownExceptions = array();
        $this->predictedExceptions = array();
        $scenario = $this->test->getScenario();
        $steps = $scenario->getSteps();
        for ($i = $scenario->getCurrentStep() + 1; $i < count($steps); $i++) {
            $step = $steps[$i];
            $action = $step->getAction();
            if ($action == 'executeTestedMethod') break;
            if ($action == 'executeTestedMethodOn') break;
            if ($action == 'executeTestedMethodWith') break;
            if ($action == 'execute') break;
            if ($action == 'executeMethod') break;
            if ($action != 'seeExceptionThrown') continue;

            $args = $step->getArguments(false);
            $this->predictedExceptions[] = $args[0];
        }
    }

    protected function catchException($e)
    {
        $this->thrownExceptions[] = $e;
        foreach ($this->predictedExceptions as $predicted) {
            if ($e instanceof $predicted) return;
        }
        throw $e;
    }

    /**
     * Very magical function that generates Mock methods for expected assertions
     * Allows the declaration of seeMethodInvoked, seeMethodNotInvoked, etc, AFTER the 'execute' command
     *
     */
    protected function createMocks()
    {
        $scenario = $this->test->getScenario();

        $steps = $scenario->getSteps();
        if (!isset($steps[$scenario->getCurrentStep()])) throw new \Exception("New steps were added to scenario in realtime. Can't proceed.\nRemove loops from your unit test to fix it");

        for ($i = $scenario->getCurrentStep()+1; $i < count($steps); $i++) {
            $step = $steps[$i];
            if (strpos($action = $step->getAction(), 'seeMethod') === 0) {
                $arguments = $step->getArguments(false);
                $mock = array_shift($arguments);
                $function = array_shift($arguments);
                $params = array_shift($arguments);

                foreach ($this->stubs as $stub) {
                    if (get_class($stub) == get_class($mock)) {
                        $mock = $stub;
                    }
                }

                $invoke = false;

                switch ($action) {
                    case 'seeMethodInvoked':
                    case 'seeMethodInvokedAtLeastOnce':
                        if (!$mock) throw new \InvalidArgumentException("Stub class not defined");
                        $invoke = new \PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce();
                        break;
                    case 'seeMethodInvokedOnce':
                        if (!$mock) throw new \InvalidArgumentException("Stub class not defined");
                        $invoke = new \PHPUnit_Framework_MockObject_Matcher_InvokedCount(1);
                        break;
                    case 'seeMethodNotInvoked':
                        if (!$mock) throw new \InvalidArgumentException("Stub class not defined");
                        $invoke = new \PHPUnit_Framework_MockObject_Matcher_InvokedCount(0);
                        break;
                    case 'seeMethodInvokedMultipleTimes':
                        if (!$mock) throw new \InvalidArgumentException("Stub class not defined");
                        $times = $params;
                        if (!is_int($times)) throw new \InvalidArgumentException("Invoked times count should be an integer");
                        $params = $arguments;
                        $invoke = new \PHPUnit_Framework_MockObject_Matcher_InvokedCount($times);
                        break;
                    default:
                }

                if ($invoke) {
                    $mockMethod = $mock->expects($invoke)->method($function);
                    $this->debug(get_class($invoke) . ' attached');
                    if ($params) {
                        call_user_func_array(array($mockMethod, 'with'), $params);
                        $this->debug('with ' . json_encode($params));
                    }
                }
            }

            if ($step->getAction() == 'executeTestedMethod') break;
            if ($step->getAction() == 'execute') break;
            if ($step->getAction() == 'executeTestedMethodOn') break;
            if ($step->getAction() == 'executeTestedMethodWith') break;
        }
    }

    /**
     * Checks that a method of a stub was invoked after the last execution.
     * Requires a stub as the first parameter, the method name as the second.
     * Optionally pass the arguments which are expected by the executed method.
     *
     * Example:
     *
     * ``` php
     * <?php
     * $I->testMethod('UserService.create');
     * $I->haveStub($user = Stub::make('Model\User'));*
     * $service = new UserService($user);
     * $I->executeTestedMethodOn($service);
     * // we expect $user->save was invoked.
     * $I->seeMethodInvoked($user, 'save');
     * ?>
     * ```
     *
     * This method dynamically creates a mock from a stub.
     *
     * @magic
     * @see createMocks
     * @param $mock
     * @param $method
     * @param array $params
     * @deprecated
     */
    public function seeMethodInvoked($mock, $method, array $params = array())
    {
        $this->verifyMock($mock);
    }

    /**
     * Checks that a method of a stub was invoked *only once* after the last execution.
     * Requires a stub as the first parameter, a method name as the second.
     * Optionally pass the arguments which are expected by the executed method.
     *
     * Look for 'seeMethodInvoked' to see the example.

     * @magic
     * @see createMocks
     * @param $mock
     * @param $method
     * @param array $params
     * @deprecated
     */
    public function seeMethodInvokedOnce($mock, $method, array $params = array())
    {
        $this->verifyMock($mock);
    }

    /**
     * Checks that a method of a stub *was not invoked* after the last execution.
     * Requires a stub as the first parameter, a method name as the second.
     * Optionally pass the arguments which are expected by the executed method.

     * @magic
     * @see createMocks
     * @param $mock
     * @param $method
     * @param array $params
     */
    public function seeMethodNotInvoked($mock, $method, array $params = array())
    {
        $this->verifyMock($mock);
    }

    /**
     * Checks that a method of a stub was invoked *multiple times* after the last execution.
     * Requires a stub as the first parameter, a method name as the second and the expected number of executions.
     * Optionally pass the arguments which are expected by the executed method.
     *
     * Look for 'seeMethodInvoked' to see the example.

     * @magic
     * @see createMocks
     * @param $mock
     * @param $method
     * @param $times
     * @param array $params
     * @deprecated
     */
    public function seeMethodInvokedMultipleTimes($mock, $method, $times, array $params = array())
    {
        $this->verifyMock($mock);
    }

    protected function verifyMock($mock)
    {
        if ($mock instanceof \Codeception\Maybe) $mock = $mock->__value();
        foreach ($this->stubs as $stubid => $stub) {
            if (spl_object_hash($stub) == spl_object_hash($mock)) {
                if (!$mock->__phpunit_hasMatchers()) {
                    continue;
//                    throw new \Exception("Probably Internal Error. There is no matchers for current mock");
                }
                if (isset($stub->__mocked)) {
                    $this->debugSection('Triggered Stub', 'Stub_' . $stubid . ' {' . $stub->__mocked . '}');
                }

                \PHPUnit_Framework_Assert::assertTrue(true); // hook to increment assertions counter
                try {
                    $mock->__phpunit_verify();
                } catch (\PHPUnit_Framework_ExpectationFailedException $e) {
                    \PHPUnit_Framework_Assert::fail("\n" . $e->getMessage()); // hook to increment assertions counter
                    throw $e;
                }
                return;
            }
        }
        throw new \Exception("Mock is not registered by 'haveStub' or 'haveFakeClass' methods");
    }

    /**
     * Asserts that the last result from the tested method is equal to value
     *
     * @param $value
     * @deprecated
     */
    public function seeResultEquals($value)
    {
        $this->assert(array('Equals', $value, $this->last_result,'in '.$this->last_result));
    }

    /**
     * @param $value
     * @deprecated
     */
    public function seeResultContains($value)
    {
        \PHPUnit_Framework_Assert::assertContains($value, $this->last_result);
    }

    /**
     * Checks that the result of the last execution doesn't contain a value.
     *
     * @param $value
     * @deprecated
     */
    public function dontSeeResultContains($value)
    {
        \PHPUnit_Framework_Assert::assertNotContains($value, $this->last_result);
    }

    /**
     * Checks that the result of the last execution is not equal to a value.
     *
     * @param $value
     * @deprecated
     */
    public function dontSeeResultEquals($value)
    {
        \PHPUnit_Framework_Assert::assertNotEquals($value, $this->last_result);
    }

    /**
     * Checks that the result of the last execution is empty.
     * @deprecated
     */
    public function seeEmptyResult()
    {
        \PHPUnit_Framework_Assert::assertEmpty($this->last_result);
    }

    /**
     * Checks that the result of the last execution is a specific type.
     * Either 'int', 'bool', 'string', 'array', 'float', 'null', 'resource', 'scalar' can be passed for simple types.
     * Otherwise the parameter must be a class and the result must be an instance of that class.
     *
     * Example:
     *
     * ``` php
     * <?php
     * $I->execute(function() { return new User });
     * $I->seeResultIs('User');
     * ?>
     * ```
     *
     * @param $type
     * @deprecated
     */
    public function seeResultIs($type)
    {
        if (in_array($type, array('int', 'bool', 'string', 'array', 'float', 'null', 'resource', 'scalar'))) {
            \PHPUnit_Framework_Assert::assertInternalType($type, $this->last_result);
            return;
        }
        \PHPUnit_Framework_Assert::assertInstanceOf($type, $this->last_result);
    }

    /**
     * Checks that the property of an object equals the value provided.
     * Can check even protected or private properties.
     *
     * Bear in mind that testing non-public properties is not a good practice.
     * Use it only if you have no other way to test it.
     *
     * @param $object
     * @param $property
     * @param $value
     * @deprecated
     */
    public function seePropertyEquals($object, $property, $value)
    {
        $current = $this->retrieveProperty($object, $property);
        $this->debug('Property value is: ' . $current);
        \PHPUnit_Framework_Assert::assertEquals($value, $current);
    }

    /**
     * Checks that the property is a passed type.
     * Either 'int', 'bool', 'string', 'array', 'float', 'null', 'resource', 'scalar' can be passed for simple types.
     * Otherwise the parameter must be a class and the property must be an instance of that class.
     *
     * Bear in mind that testing non-public properties is not a good practice.
     * Use it only if you have no other way to test it.
     *
     * @param $object
     * @param $property
     * @param $type
     * @deprecated
     */
    public function seePropertyIs($object, $property, $type) {
        $current = $this->retrieveProperty($object, $property);
        if (in_array($type, array('int', 'bool', 'string', 'array', 'float', 'null', 'resource', 'scalar'))) {
            \PHPUnit_Framework_Assert::assertInternalType($type, $current);
            return;
        }
        \PHPUnit_Framework_Assert::assertInstanceOf($type, $current);
    }

    /**
     * Executes a method and checks that the result is equal to a value.
     * Good for testing values taken from getters.
     *
     * Example:
     *
     * ``` php
     * $I->testMethod('User.setName');
     * $user = new User();
     * $I->executeTestedMethodOn($user, 'davert');
     * $I->seeMethodReturns($user,'getName','davert');
     *
     * ```
     *     *
     * @param $object
     * @param $method
     * @param $value
     * @param array $params
     * @deprecated
     */
    public function seeMethodReturns($object, $method, $value, $params = array())
    {
        $result = call_user_func_array(array($object, $method), $params);
        \PHPUnit_Framework_Assert::assertEquals($value, $result);
    }

    /**
     * Executes a method and checks that the result is NOT equal to a value.
     * Good for testing values taken from getters.
     *
     * Look for 'seeMethodReturns' for example.
     *
     * @param $object
     * @param $method
     * @param $value
     * @param array $params
     * @deprecated
     */
    public function seeMethodNotReturns($object, $method, $value, $params = array())
    {
        $result = call_user_func_array(array($object, $method), $params);
        \PHPUnit_Framework_Assert::assertNotEquals($value, $result);
    }

    protected function retrieveProperty($object, $property)
    {
        if (isset($object->__mocked)) $this->debug('Received STUB');
        $reflectionClass = new \ReflectionClass($object);
        $reflectionProperty = $reflectionClass->getProperty($property);
        $reflectionProperty->setAccessible(true);
        return $reflectionProperty->getValue($object);
    }

}

redpajama_set_name: RedPajamaGithub


text:
Snail Maze is a 1986 video game by Sega for the Master System. Instead of being released on a cartridge, it was built into the system's BIOS and could be played by starting the system without a game cartridge inserted and holding Up and buttons 1 and 2 simultaneously. Some later console models included a minimal BIOS because of memory constraints, and Snail Maze had to be removed. These systems instead included a built-in Alex Kidd in Miracle World or Sonic the Hedgehog. Snail Maze was never released in cartridge or card format.

Gameplay
A very simple game, Snail Maze involves navigating a small orange snail with a yellow shell through a blue maze. A goal area is clearly marked, which players must attempt to reach within a time limit. Despite its relative simplicity compared to other games of its era, Snail Maze could be quite challenging. Subsequent levels reduce the time available, giving a progressively lower margin for error.

Legacy
In 2004 an unofficial port of Snail Maze was made for the Japanese MSX computer platform with enhanced graphics and a new title screen. A version of Snail Maze was included on the Coleco Sonic handheld system, created in 2006. An unofficial port of Snail Maze was released in December 2015 for the TI-84 Plus CE graphing calculator, written in eZ80 assembly language. An emulated version of Snail Maze can be played on the in-game Master System in the 2021 game Lost Judgment by using the system without selecting a game.

References

External links
Master System screenshots

1986 video games
Master System games
Master System-only games
Maze games
MSX games
Sega video games
Video games developed in Japan
Single-player video games

redpajama_set_name: RedPajamaWikipedia


text:
const { Resource, Route, Permission } = require('../../lib/index');
const Example = require('./example.model');

const example = new Resource({ model: Example });

/**
 * Testing creation of endpoints *without* defining a route instance.
 */
example.add({
  id: 'smackTalk',
  path: '/smacktalk',
  method: 'get',
  open: true,
  handler: async () => ({
    talk: [
      'Yo mama!',
      'I eat robots like you for breakfast!',
      'Rap rap rap. Word.',
      'Get wrecked. Ship wrecked.',
      'Hello! You smell.',
    ][Math.floor(Math.random() * 5)],
  }),
});
example.get('smackTalk').after(({ data }) => Object.assign(data, { attach: 'hello' }));

/**
 * Testing creation of endpoints *with* defining a route instance.
 */
const niceTalk = new Route({
  id: 'niceTalk',
  path: '/:nice/talk',
  method: 'get',
  open: true,
  handler: async () => ({
    talk: [
      'You look nice today.',
      'Would you like some tea?',
      'I really respect you.',
      'Good work, fine sir!',
      'Hello! You smell nice.',
    ][Math.floor(Math.random() * 5)],
  }),
});
example.add(niceTalk);

/**
 * Testing creation of endpoints *with* defining a route instance.
 */
const orderSort = new Route({
  id: 'orderSort',
  path: '/order',
  method: 'get',
  open: true,
  handler: () => ({ hello: true }),
});
example.add(orderSort);

/**
 * Testing middleware works.
 */
example.get('find').middleware((req, res, next) => {
  // testing code here...
  next();
});

/**
 * Permissions
 */
example.get('find').access(Permission.isAnyone());
example.get('count').access(Permission.isAnyone());
example.get('findOne').access(Permission.isAnyone());
example.get('findById').access(Permission.isAnyone());
example.get('create').access(Permission.isAnyone());
example.get('update').access(Permission.isAnyone());
example.get('remove').access(Permission.isAnyone());

/**
 * Hooks
 */
example.get('find')
  .after(({ context }) => {
    if (context.messageOne !== 'Jack is awesome' || context.messageTwo !== 'Jack is cool') {
      throw new Error('This will not be called as my function is baller af.');
    }
  })
  .before(({ context }) => {
    Object.assign(context, { messageOne: 'Jack is awesome' });
  })
  .before(({ context }) => {
    Object.assign(context, { messageTwo: 'Jack is cool' });
  });

module.exports = example;


text:
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text.RegularExpressions;

using Microsoft.Recognizers.Text.DateTime.Utilities;
using Microsoft.Recognizers.Definitions.English;
using Microsoft.Recognizers.Text.Number;

namespace Microsoft.Recognizers.Text.DateTime.English
{
    public class EnglishDateParserConfiguration : BaseOptionsConfiguration, IDateParserConfiguration
    {
        public string DateTokenPrefix { get; }

        public IExtractor IntegerExtractor { get; }

        public IExtractor OrdinalExtractor { get; }

        public IExtractor CardinalExtractor { get; }

        public IParser NumberParser { get; }

        public IDateTimeExtractor DurationExtractor { get; }

        public IDateTimeExtractor DateExtractor { get; }

        public IDateTimeParser DurationParser { get; }

        public IEnumerable<Regex> DateRegexes { get; }

        public IImmutableDictionary<string, string> UnitMap { get; }

        public Regex OnRegex { get; }

        public Regex SpecialDayRegex { get; }

        public Regex SpecialDayWithNumRegex { get; }

        public Regex NextRegex { get; }

        public Regex ThisRegex { get; }

        public Regex LastRegex { get; }

        public Regex UnitRegex { get; }

        public Regex WeekDayRegex { get; }

        public Regex MonthRegex { get; }

        public Regex WeekDayOfMonthRegex { get; }

        public Regex ForTheRegex { get; }

        public Regex WeekDayAndDayOfMothRegex { get; }

        public Regex RelativeMonthRegex { get; }

        public Regex YearSuffix { get; }

        public Regex RelativeWeekDayRegex { get; }

        //The following three regexes only used in this configuration
        //They are not used in the base parser, therefore they are not extracted
        //If the spanish date parser need the same regexes, they should be extracted
        public static readonly Regex RelativeDayRegex= new Regex(
                DateTimeDefinitions.RelativeDayRegex,
                RegexOptions.IgnoreCase | RegexOptions.Singleline);

        public static readonly Regex NextPrefixRegex = new Regex(
                DateTimeDefinitions.NextPrefixRegex,
                RegexOptions.IgnoreCase | RegexOptions.Singleline);

        public static readonly Regex PastPrefixRegex = new Regex(
                DateTimeDefinitions.PastPrefixRegex,
                RegexOptions.IgnoreCase | RegexOptions.Singleline);

        public IImmutableDictionary<string, int> DayOfMonth { get; }

        public IImmutableDictionary<string, int> DayOfWeek { get; }

        public IImmutableDictionary<string, int> MonthOfYear { get; }

        public IImmutableDictionary<string, int> CardinalMap { get; }

        public IDateTimeUtilityConfiguration UtilityConfiguration { get; }

        public EnglishDateParserConfiguration(ICommonDateTimeParserConfiguration config) : base(config)
        {
            DateTokenPrefix = DateTimeDefinitions.DateTokenPrefix;
            IntegerExtractor = config.IntegerExtractor;
            OrdinalExtractor = config.OrdinalExtractor;
            CardinalExtractor = config.CardinalExtractor;
            NumberParser = config.NumberParser;
            DurationExtractor = config.DurationExtractor;
            DateExtractor = config.DateExtractor;
            DurationParser = config.DurationParser;
            DateRegexes = new EnglishDateExtractorConfiguration(this).DateRegexList;
            OnRegex = EnglishDateExtractorConfiguration.OnRegex;
            SpecialDayRegex = EnglishDateExtractorConfiguration.SpecialDayRegex;
            SpecialDayWithNumRegex = EnglishDateExtractorConfiguration.SpecialDayWithNumRegex;
            NextRegex = EnglishDateExtractorConfiguration.NextDateRegex;
            ThisRegex = EnglishDateExtractorConfiguration.ThisRegex;
            LastRegex = EnglishDateExtractorConfiguration.LastDateRegex;
            UnitRegex = EnglishDateExtractorConfiguration.DateUnitRegex;
            WeekDayRegex = EnglishDateExtractorConfiguration.WeekDayRegex;
            MonthRegex = EnglishDateExtractorConfiguration.MonthRegex;
            WeekDayOfMonthRegex = EnglishDateExtractorConfiguration.WeekDayOfMonthRegex;
            ForTheRegex = EnglishDateExtractorConfiguration.ForTheRegex;
            WeekDayAndDayOfMothRegex = EnglishDateExtractorConfiguration.WeekDayAndDayOfMothRegex;
            RelativeMonthRegex = EnglishDateExtractorConfiguration.RelativeMonthRegex;
            YearSuffix = EnglishDateExtractorConfiguration.YearSuffix;
            RelativeWeekDayRegex = EnglishDateExtractorConfiguration.RelativeWeekDayRegex;
            DayOfMonth = config.DayOfMonth;
            DayOfWeek = config.DayOfWeek;
            MonthOfYear = config.MonthOfYear;
            CardinalMap = config.CardinalMap;
            UnitMap = config.UnitMap;
            UtilityConfiguration = config.UtilityConfiguration;
        }

        public int GetSwiftDay(string text)
        {
            var trimedText = text.Trim().ToLowerInvariant();
            var swift = 0;

            var match = RelativeDayRegex.Match(text);

            if (trimedText.Equals("today"))
            {
                swift = 0;
            }
            else if (trimedText.Equals("tomorrow") || trimedText.Equals("tmr"))
            {
                swift = 1;
            }
            else if (trimedText.Equals("yesterday"))
            {
                swift = -1;
            }
            else if (trimedText.EndsWith("day after tomorrow") ||
                     trimedText.EndsWith("day after tmr"))
            {
                swift = 2;
            }
            else if (trimedText.EndsWith("day before yesterday"))
            {
                swift = -2;
            }
            else if (match.Success)
            {
                swift = GetSwift(text);
            }
            return swift;
        }

        public int GetSwiftMonth(string text)
        {
            return GetSwift(text);
        }

        public int GetSwift(string text)
        {
            var trimedText = text.Trim().ToLowerInvariant();
            var swift = 0;
            if (NextPrefixRegex.IsMatch(trimedText))
            {
                swift = 1;
            }
            else if (PastPrefixRegex.IsMatch(trimedText))
            {
                swift = -1;
            }
            return swift;
        }

        public bool IsCardinalLast(string text)
        {
            var trimedText = text.Trim().ToLowerInvariant();
            return trimedText.Equals("last");
        }
    }
}


When a third party (any individual other than you and your car) dies due to an accident involving your car.
When a third party suffers physical bodily injuries due to your car.
When your car damages third party property.
The premium is very low and it depends on the engine capacity of your car. It does not depend on the car's age and remains fixed.
For any third party injury or property damage, you get coverage for up to Rs.7.5 lakh. In case of death, however, there is no limit to the coverage.
If you suffer an accidental death or disablement you, usually, do not get any coverage. However, in some plans, there might be a personal accident cover of Rs.2 lakhs for the owner/driver of the car.
You don't get a discount if you don't make any claim in a policy year.
Add-on coverage features are not available in a third party policy.
Damages caused due to man-made calamities like fire, theft, collisions, etc.
Damages faced by the car due to natural calamities like earthquakes, lightning, flood, hurricane, etc.
Damages faced when your car is in transit by air, water or road, etc.
Personal Accident/Personal Injury Protection (PIP)-This add-on covers death and disablements which you might suffer when involved in an accident.
Medical expenses –Under this add-on, the medical expenses incurred on an ambulance and treatments are covered if you are involved in an accident.
Vehicle replacement –Through this add-on, the insurance company promises to replace your car with a new one of an equivalent value if your car is stolen or if it suffers a complete loss.
Rental reimbursement –When your car is at the workshop for repairs you might hire a rental car for your conveyance needs. This add-on covers the cost of such rental cars that you incur.
Zero depreciation –In case of damage, the claim is paid after deducting depreciation from the cost of the parts repaired or replaced. With this add-on, the complete cost of replacement is paid by the insurance company irrespective of the applicable depreciation.
NCB protect –When you don't make a claim you earn any claim discount. However, this discount is lost whenever a claim is made. This add-on ensures that even after you make a claim you don't lose your accumulated discount.
Engine protect-This add-on covers the cost incurred in replacing or repairing the engine of your car.
Roadside assistance –This add-on ensures round-the-clock assistance by the insurer if your car breaks down. The company provides you with on-site repair and rescue services with this add-on.


text:
Dispatches from Syria, Features, Imperialism, Syria
Dispatch from Syria – Election Day in Syria
by Ken Stone
Today, the members of the Second International Tour of Peace to Syria were offered the privilege of accompanying the Patriarch of the Melkite Greek Catholic Church as he went to vote in the Syrian parliamentary elections. Gregorious III, the spiritual head of millions of Catholics all over the world, told us, in an audience before he invited us to join his procession, that the Syrian elections today were very important. In fact, he declared they represented "a challenge to the world" to recognize that, despite the covert machinations of certain western and Arab countries against Syria, Syrians are united in the pursuit of peace. He offered a prayer for Syrians, using the motto, "One people, one country!" Furthermore, he indicated that today's elections, if successful, could be a model for other countries in the Arab world, similarly beset by foreign meddling.
The patriarchal procession left the 19th century Greek Melkite Catholic Church and wound its way through the narrow, cobblestone streets of Old Damascus to the Armenian Catholic Church, where it was met by priests of that church. Together in the chapel, after exchanging some ecumenical greetings, the whole procession then departed to the school next door where the polling station was located.
There was quite a crowd who came to vote and witness the voting, which was conducted in secret behind a white curtain. The patriarch posed a long time, poised with his ballot in hand, over the ballot box for many flash photographs. There was applause and a murmur of satisfaction when he finally dropped his ballot into the box.
Gregorious III was not the only person in a defiant mood about today's parliamentary elections. The Syrian government itself calls the elections "an exercise in national sovereignty." It called for these elections the same day that the agreement was signed between the US and Russia some weeks ago for a partial cessation of hostilities in Syria. At first, all the great powers opposed the Syrian government's initiative for parliamentary elections, because there was no mention in the Geneva l document of 2012 that elections could be held in Syria before the talks to establish a transitional government were completed. Just today, the US State department dismissed the Syrian parliamentary elections as "not representing the will of the Syrian people", even before the results were in (though where the US government derives its authority to pronounce of the validity of elections in other countries escapes me.)
At first, even the Russian government was not fully onside with the calling of parliamentary elections in Syria. However, just yesterday, in a meeting with Argentinian diplomats, Sergei Lavrov indicated that he did not want to see a "void" in government in Syria. So the Syrian government moved pre-emptively to fill that void, by holding elections, just as it fills the void by continuing the regular functions of government such as cleaning the streets and paying the salaries of civil servants.
So what does a Syrian parliamentary election look like? When we left the hotel this morning, there were small groups of young people in the streets wearing similarly-coloured clothing and handing out quarter-page flyers. These groups of uniformly handsome young men and attractive young women (no accident, I assume) were representing the various lists contesting the elections. They pressed the leaflets into the hands of anyone and everyone who would take them, even us foreigners. The flyers contained the names of all the candidates for election in Damascus from each slate. Sometimes, the flyers were only on behalf of a single candidate. It reminded me of trade union elections at national union conventions back in Canada.
On the walls of the buildings along the narrow streets were plastered hundreds upon hundreds of election posters. Over the streets were strung banners showing small and large groupings of well-dressed candidates representing each slate. Clearly, the 250 parliamentary seats were being hotly contested.
On every corner were uniformed soldiers armed with assault rifles. Now, if we had an election in Canada under the watchful eyes of the military like this, we would feel that we were close to fascism. Not so here. After five long years of war, the Syrian people welcome the presence of their army. After all, just several kilometres away, in neighbouring Ghouta, all kinds of terrorist mercenaries hold the population hostage and in terror. Until just three months ago, these foreign-backed terrorists had been lobbing mortar shells on Damascus virtually every single day for five years. They timed their attacks to coincide with rush hour in the mornings to achieve the maximum kill of working people and at 12:30 pm every day just as school children were coming out of school. Many were killed and wounded. However, after their leader, Zahran Alloush, was killed in a Syrian Army drone strike, the mortars fell silent.
So, the Syrian Arab Army soldiers were manning checkpoints and guarding public buildings precisely to give Damascenes the confidence that they could come out on the street without facing suicide bombers and car bombs. It worked! Not a single terrorist incident took place in Damascus today. And our guide informed us that tomorrow armed soldiers would be few and far between on the streets of Damascus.
Our tour guide led us past dozens of polling stations over the course of our tour of the historic sites of Old Damascus that day. In the Old City, the polling stations were never more than two blocks apart, which is far more frequent than in Canada.
We actually went inside five different polling stations, which were staffed mostly by women. And here's how those little quarter-page flyers work their magic:
When a voter (of eighteen years or older) enters the polling station, he or she must produce the government-issued ID card. His or her name is then dutifully entered into a register and the voter is given a ballot and an envelope. The ballot has spaces to enter the 29 names of candidates who are contesting the seats open for election in Damascus. The voter may go behind the white cloth screen and fill in as many as 29 names or as few as one. Or, he or she may take one of those little flyers containing the candidates' names of one particular slate, put it into the envelope, and then proceed to drop the envelope, containing the blank ballot and slate list, into the ballot box. Or, the voter can strike out any names on the flyer containing the slate's list that he or she doesn't like and put the envelope, with the blank ballot and the amended slate list, into the ballot box.
After casting the ballot, the polling clerk dips the index finger of the voter onto a pad of indelible ink so that he or she can't vote more than once.
Having worked on many Canadian elections, I can attest to the fact that Syrian elections are different from Canadian elections. But that doesn't mean they don't represent the national will, as claimed by US State Department. After all, with the Canadian first-past-the-post system, the representation of political parties in the House of Commons in Ottawa bears little resemblance to their share of the popular vote. And, in Canada, we have, in effect, a two party system. Only the big business-friendly Liberals and Conservatives have ever held power in our country in 150 years.
In Syria, the system works this way: out of 250 seats in the Syrian parliament, 170 are allocated to the ruling Ba'ath Party and its allies in the National Progressive Front. The reminder are open for grabs to anyone who holds only Syrian citizenship, is over 18, and has no security issues (is not actively fighting with one of the terrorist groups). In this election, there were an incredible number of 3000 candidates for all 250 positions. Why? Because there is a good salary and lots of perks for MP's in Syria (just as there are in Canada). There were so many candidates, in fact, that 7000 candidates became discouraged and dropped out of the running before today's election.
Visit the Facbook page for International Tours of Peace to Syria, where many photos and explanations from the Second Tour are posted.
Previous PostThe Children of Gaza Face the FutureNext PostDispatch from Syria – Meeting the Minister

redpajama_set_name: RedPajamaCommonCrawl


text:
Khamosh (1986)
I hate producing films - Vidhu Vinod Chopra
Filmicafe
Director-producer Vidhu Vinod Chopra says he hates producing films but does so to ensure that the idea that directors want to communicate is not lost under commercial pressure..I hate producing films. ...
Amitabh Bachchan says he was warned about Vidhu Vinod Chopra's bad temper
Eklavya - The Royal Guard was Amitabh Bachchan.s first film with Vidhu Vinod Chopra. The megastar says his actress wife Jaya had warned him that the director abuses on the sets, but on the contrary he ...
In conversation with Stars at PVR Cinemas
Bollyspice
First time in the history of Indian cinema, a director, a producer and a brilliant observer, Vinod Chopra is making people re-live the old moments by releasing all his fable films once again. ...
Filmmakers to moderate discussions on VVCs films
BollywoodHungama
Vinod Chopra Production is the first production house in India to celebrate a retrospective of their films made in last 30 years. Starting from Vinod Chopra's first film Khamosh to all the films made ...
Retrospective of Vidhu Vinod Chopra begins at PVR
DearCinema.com
Vidhu Vinod Chopra Vinod Chopra Films is celebrating 30 years of contribution to cinema by the banner. In association with PVR Cinemas, it is screening films like Parinda, 1942-a love Story, ...
Anil and Madhuri to walk the red carpet for Parinda
Madhuri Dixit and Anil Kapoor, who have shared sizzling chemistry in films like Beta, Khel, Ram Lakhan and Tezaab amongst others, will be walking the red carpet for the screening of their 1989 ...
PVR organizes retrospective of Vidhu Vinod Chopras films
For all of you who have loved and enjoyed films from Vidhu Vinod Chopra's banner such as 3 Idiots, Lage Raho Munnabhai, Munnabhai Mbbs, 1942 A Love Story, Parinda etc., there is good news. PVR ...
Vidhu Vinod Chopra: The Believer In Dreams
Vidhu Vinod Chopra has been pioneering the Indian Entertainment industry through an excellent array of films. Films produced in the Vinod Chopra camp are well noted for their brilliant and inspiring ...


text:
Q: HibernateException: hibernate.dialect not set, but I did set it in application.properties I am working on a Spring Boot application that uses a number of databases. I define datasources, I define entitymanagers, and I keep getting this error
org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:94)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)

This is the @Configuration file for one database:
@Configuration
public class CustomerDbConfig {

@Bean
public DataSource dataSource() {
    return DataSourceBuilder.create().build();
}

@Bean(name = "customerEntityManager")
@PersistenceContext(unitName = "customerEntityManager")
public LocalContainerEntityManagerFactoryBean customerEntityManagerFactory(
        EntityManagerFactoryBuilder builder, DataSource dataSource) {
    return builder.dataSource(dataSource).packages("com.example.report_service").build();
}

@Bean
public JpaTransactionManager transactionManager(EntityManagerFactory emf) {
    JpaTransactionManager jpaTransactionManager = new JpaTransactionManager();
    jpaTransactionManager.setEntityManagerFactory(emf);
    return jpaTransactionManager;
}

@Bean
public EntityManagerFactoryBuilder entityManagerFactoryBuilder() {
    return new EntityManagerFactoryBuilder(new HibernateJpaVendorAdapter(), new HashMap<>(), null);
}

}
and these are the application.properties
spring.datasource.url=jdbc:postgresql://dv1.example.com:5432/customer
spring.datasource.username=${DATABASECUSTOMERUSERNAME:customer}
spring.datasource.password=${DATABASECUSTOMERPASSWORD:customer}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.hikari.minimum-idle=2
spring.datasource.hikari.maximum-pool-size=${MAX_POOL_SIZE:20}
spring.datasource.tomcat.validation-query=SELECT 1
spring.datasource.tomcat.validation-query-timeout=5000
spring.datasource.tomcat.test-on-borrow=true
spring.datasource.tomcat.test-on-connect=true
spring.transaction.default-timeout=${TRANSACTION_TIMEOUT:3600}
spring.jpa.properties.hibernate.proc.param_null_passing=true
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation= true
spring.jpa.open-in-view=false
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.show_sql=false
spring.jpa.properties.hibernate.use_sql_comments=true
spring.jpa.properties.hibernate.type=trace
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration

When I explicitely set a persistenceUnit name in the entitymanager, the error changes, it complains about not finding a PU with the name I specified.
I limited my application to having only one database, trying to figure out what's happening. When I remove the configuration file there's no issues. What makes this application special is that it uses native queries only, it doesn't have @Entity classes because the database is updated by other applictions. When I remove the .packages(..) part from the code, it complaines like
No persistence units parsed from {classpath*:META-INF/persistence.xml}

I suspect the issue is related to the fact that we don't have classes that need to be scanned.
Edit:
Following M.Deinum's answer, I replaced the config by
@Configuration
@EnableTransactionManagement
public class CustomerDbConfig {

@ConfigurationProperties(prefix = "customer.datasource")
@Bean(name = "customer-datasource")
public DataSource dataSource() {
    return DataSourceBuilder.create().build();
}

@Bean(name = "customer-jdbcTemplate")
public JdbcTemplate primaryJdbcTemplate(@Qualifier("customer-datasource") DataSource dataSource) {
    return new JdbcTemplate(dataSource);
}

}
and I use the four templates in the daos. Works like a charm.

A: When using JPA you need entities. Using the JPA classes to just execute SQL queries is overkill. Just use a plain Jdbctemplate or NamedParameterJdbcTemplate for that.


Fighting harmful gambling through self-expression.
As part of the launch of the Choice not Chance brand we developed with the Health Promotion Agency, we developed a campaign to encourage New Zealanders who have been effected by harmful gambling to share their stories through poetry, story telling or lyrics. Legendary New Zealand artist Scribe has long been an advocate of speaking out against the dangers of harmful gambling, and became our spokesperson for the campaign. His mana and stories carried a huge amount of resonance with our Maori and Pacific Islander audience, as well as the wider NZ public, creating a campaign that exceeded all levels of expectation in regards to response and engagement. Adshels and street posters encouraged our audience to engage and enter through TXT or via the Choice not Chance web site.


Cody Simpson Premieres New Song "Flower"
Australian singer / songwriter Cody Simpson debuted his new song "Flower" today along with single artwork created by Miley Cyrus.
Cody is set to perform the track this Friday, February 6th on ABC's Good Morning America.
This marks Cody's first single as an independent artist and showcases what we can expect from his upcoming album titled Free out later this year that was co-produced by Cisco Adler.
This sense of freedom can be seen in "Flower" and its' hummable riffs and catchy hook. Fans can also download the track for free this Friday, February 6th – Tuesday, February 10th on iTunes.
Cody has enjoyed quite the impressive career. His 2013 album Surfer's Paradise featured collaborations with Ziggy Marley and Asher Roth and landed in the Top 10 of the Billboard Top 200. He toured Europe and the U.S. as direct support for Justin Bieber and released his official autobiography, Welcome To Paradise: My Journey, through Harper Collins.
Along the way, he performed on television programs including The Today Show, Live! with Kelly, and The Ellen DeGeneres Show and garnered the award for "Favorite Aussie Star" at the 2012 Kids Choice Awards as well as International Male Artist Award at the 2015 Huading Awards in China. In addition, Cody has generated 8M+ Facebook fans, 7.2M followers on Twitter, over 1M YouTube subscribers and 2.3M followers on Instagram.


Last night I watched Nik Wallenda walk across Niagara Falls on a tightrope. For every step of the way, he had his dad's voice in his ear guiding him with experience and encouraging every step. He knew his friends and family were waiting for him at the end ready to celebrate him whether he succeeded or failed. Trailing behind him was a safety tether that would prevent him from falling into the turbulent water should he slip and fall.
If that isn't a perfect picture of our lives, I don't know what is.
Life is a crazy walk. All around us is danger if we take the wrong step.
Our Father's voice is constantly in our hearts pointing out the dangers and warning us of a wrong step. Encouraging and loving us from the very beginning and to the last step.
The ones who love us are there with us. Watching us make the journey and ready to laugh when we laugh or cry when we cry.
Then we have the tether.
These two gals haven't been in my life the longest, but they are my tethers. I know that no matter what step I take, they will keep me from falling into turbulents alone.
It was the times in between the laughter at the restaurant, the goofiness of dressing up in boas with pirate hats and confiding our little secrets and pains; that I realized how much these two tether me. They are the ones who will take off their shoes when I get a blister in my rocking cool wedges and give me something more comfortable while they wear my blister inducing heels. They remember the significant dates and make sure I am not alone.
I have been blessed beyond measure with my tethers.
…and frankly…I couldn't dream of anything better.
You're durn skippy I'd jump with you…then on the way down, miraculously fashion a parachute out of our shirts!


I didn't want to high jack anyone's post so here is mine.
The game isn't working anymore on a Samsung S7.
Sorry for the second post only one image was allowed.
Appears updated to latest version.
Maybe try deleting the app and redownloading it?
It is installed and always has but it doesn't even shows up in my apps.
I can't even find it in the store so deleting it would probably cause more harm to my account which I apparently forgot to link to Google account. Which I found out trying to open the app on another device.
I'm currently using an S7 (bought from Tmobile) and its working for me still.
I had the same issue. I ended up using a 2nd device and exporting the apk file after install and installing manually on my s7.
The game seems to work fine still so I have no idea why the app store says the s7 is incompatible .
I'm saving that link for sure. Easier than downloading and exporting to Dropbox to redownload on the s7.
It's a right hassle but needs must lol.
Will it install next to the original app or do I have to uninstall the original and what about my save?
I uninstalled entirely. Then reinstalled from the new apk file. Played through the tutorial and relinked via Facebook sign in.
Keep the original and install the APK and it should update without any issues just the same had it been updated via the play store but make sure your account is linked to facebook so you can always recover it no matter what happens.
Im having the same issue. I have an s7 it doesnt show up in the play store. Its available on the samsung app store also. Thats how i got it to work. But theres issues for me with this update. Like there are no daily mission popups when i complete an objective.
Took the risk and uninstalled. Reinstalled using the "galaxy apps"
Update from galaxy apps gave errors.
Lucky enough now everything is fixed.
My S7 still has this issue… to get around it (google play is still telling me my device is not compatible btw)… you uninstall the game and redownload it with Samsung galaxy app store… problem solved.
Just wanted to add… if you use the galaxy store to reinstall the game then u cant use google to make purchases… i just uninstalled the game ans reinstalled with apkpure (an app that takes care pf the apk install thinking for you and tpu can searxh it like google play) … it now allows google play to take payments where as the Samsung galaxy app store would not. Hope that helps.


Who says you need a silent yoga retreat to unwind? Detox with this one-of-kind gel cleanser containing natural pink kaolin and French green clay. An ideal choice for absorbing excess oil, unclogging pores and balancing your chi. Dissolves makeup, oil and everyday gently without stripping skin, causing irritation or dryness. This cleanser is gentle enough for morning and evening use, leaving skin feeling purified, the way nature intended. Best for oily and combination skin.
Apply one to two pumps after cleansing skin avoiding eye area. Layer over serum and under cream. Can also be used under makeup in place of primer.
Use one to two pumps, add water to lather. Gently massage in an upward, circular motion. Splash face with water to rinse. For optimal results use AM and PM.
Kaolin Clay helps remove surface impurities without removing too much oil keeping the skins natural balance.
French Clay draw out impurities and toxins working well to prevent blackheads, and blemishes.


Specifically designed for more pulling and effective for supporting lifting with the same benefits as standard MatchPRO shorts! These shorts feature a double reinforced, pocketless side seams and a durable nylon taping all around the inside hem of the leg. A small inside pocket is included for a mouthguard. These shorts are rugged and are the most durable style in old school rugby shorts any where.