text:
package org.apache.jackrabbit.oak.plugins.blob.datastore;

import java.io.BufferedWriter;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;

import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.base.Stopwatch;
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import com.google.common.io.Files;
import org.apache.jackrabbit.core.data.DataRecord;
import org.apache.jackrabbit.oak.commons.FileIOUtils.FileLineDifferenceIterator;
import org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser;
import org.apache.jackrabbit.oak.plugins.blob.SharedDataStore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static com.google.common.base.Charsets.UTF_8;
import static com.google.common.base.Predicates.alwaysTrue;
import static com.google.common.collect.Iterables.transform;
import static com.google.common.collect.Lists.newArrayList;
import static com.google.common.io.Files.fileTreeTraverser;
import static com.google.common.io.Files.move;
import static com.google.common.io.Files.newWriter;
import static java.io.File.createTempFile;
import static java.lang.System.currentTimeMillis;
import static java.util.Collections.synchronizedList;
import static java.util.UUID.randomUUID;
import static java.util.concurrent.Executors.newSingleThreadScheduledExecutor;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.apache.commons.io.FileUtils.copyFile;
import static org.apache.commons.io.FileUtils.forceDelete;
import static org.apache.commons.io.FileUtils.forceMkdir;
import static org.apache.commons.io.FileUtils.lineIterator;
import static org.apache.commons.io.FilenameUtils.concat;
import static org.apache.commons.io.FilenameUtils.removeExtension;
import static org.apache.commons.io.IOUtils.closeQuietly;
import static org.apache.jackrabbit.oak.commons.FileIOUtils.BurnOnCloseFileIterator.wrap;
import static org.apache.jackrabbit.oak.commons.FileIOUtils.append;
import static org.apache.jackrabbit.oak.commons.FileIOUtils.copy;
import static org.apache.jackrabbit.oak.commons.FileIOUtils.sort;
import static org.apache.jackrabbit.oak.commons.FileIOUtils.writeStrings;
import static org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore.Type.GENERATION;
import static org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore.Type.IN_PROCESS;
import static org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore.Type.REFS;

/**
 * Tracks the blob ids available or added in the blob store using the {@link BlobIdStore} .
 *
 */
public class BlobIdTracker implements Closeable, BlobTracker {
    private static final Logger LOG = LoggerFactory.getLogger(BlobIdTracker.class);

    /**
     * System property to skip tracker. If set will skip:
     *  * Snapshots (No-op)
     *  * Retrieve (return empty)
     *  * Add (No-op)
     */
    private final boolean SKIP_TRACKER = Boolean.getBoolean("oak.datastore.skipTracker");

    private static final String datastoreMeta = "blobids";
    private static final String fileNamePrefix = "blob";
    private static final String mergedFileSuffix = ".refs";

    /* Local instance identifier */
    private final String instanceId = randomUUID().toString();

    private final SharedDataStore datastore;

    protected BlobIdStore store;

    private final ScheduledExecutorService scheduler;

    private String prefix;

    public BlobIdTracker(String path, String repositoryId,
        long snapshotIntervalSecs, SharedDataStore datastore) throws IOException {
        this(path, repositoryId, newSingleThreadScheduledExecutor(),
            snapshotIntervalSecs, snapshotIntervalSecs, datastore);
    }

    public BlobIdTracker(String path, String repositoryId, ScheduledExecutorService scheduler,
            long snapshotDelaySecs, long snapshotIntervalSecs, SharedDataStore datastore)
        throws IOException {
        String root = concat(path, datastoreMeta);
        File rootDir = new File(root);
        this.datastore = datastore;
        this.scheduler = scheduler;

        try {
            forceMkdir(rootDir);
            prefix = fileNamePrefix + "-" + repositoryId;
            this.store = new BlobIdStore(rootDir, prefix);
            scheduler.scheduleAtFixedRate(new SnapshotJob(),
                SECONDS.toMillis(snapshotDelaySecs),
                SECONDS.toMillis(snapshotIntervalSecs), MILLISECONDS);
        } catch (IOException e) {
            LOG.error("Error initializing blob tracker", e);
            close();
            throw e;
        }
    }

    @Override
    public void remove(File recs) throws IOException {
        store.removeRecords(recs);
    }

    @Override
    public void remove(Iterator<String> recs) throws IOException {
        store.removeRecords(recs);
    }

    @Override
    public void add(String id) throws IOException {
        if (!SKIP_TRACKER) {
            store.addRecord(id);
        }
    }

    @Override
    public void add(Iterator<String> recs) throws IOException {
        if (!SKIP_TRACKER) {
            store.addRecords(recs);
        }
    }

    @Override
    public void add(File recs) throws IOException {
        if (!SKIP_TRACKER) {
            store.addRecords(recs);
        }
    }

    /**
     * Retrieves all the reference files available in the DataStore and merges
     * them to the local store and then returns an iterator over it.
     * This way the ids returned are as recent as the snapshots taken on all
     * instances/repositories connected to the DataStore.
     *
     * The iterator returned ia a Closeable instance and should be closed by calling #close().
     *
     * @return iterator over all the blob ids available
     * @throws IOException
     */
    @Override
    public Iterator<String> get() throws IOException {
        try {
            if (!SKIP_TRACKER) {
                globalMerge();
                return store.getRecords();
            }
            return Iterators.emptyIterator();
        } catch (IOException e) {
            LOG.error("Error in retrieving blob records iterator", e);
            throw e;
        }
    }

    @Override
    public File get(String path) throws IOException {
        if (!SKIP_TRACKER) {
            globalMerge();
            return store.getRecords(path);
        }
        return new File(path);
    }

    /**
     * Retrieves and merges all the blob id records available in the DataStore from different
     * instances sharing the DataStore (cluster nodes/different repositories).
     *
     * @throws IOException
     */
    private void globalMerge() throws IOException {
        try {
            Stopwatch watch = Stopwatch.createStarted();
            LOG.trace("Retrieving all blob id files available form the DataStore");
            // Download all the blob reference records from the data store
            Iterable<DataRecord> refRecords = datastore.getAllMetadataRecords(fileNamePrefix);

            // Download all the corresponding files for the records
            List<File> refFiles = newArrayList(
                transform(refRecords,
                    new Function<DataRecord, File>() {
                        @Override
                        public File apply(DataRecord input) {
                            InputStream inputStream = null;
                            try {
                                inputStream = input.getStream();
                                return copy(inputStream);
                            } catch (Exception e) {
                                LOG.warn("Error copying data store file locally {}",
                                    input.getIdentifier(), e);
                            } finally {
                                closeQuietly(inputStream);
                            }
                            return null;
                        }
                    }));
            LOG.info("Retrieved all blob id files in [{}]", watch.elapsed(TimeUnit.MILLISECONDS));

            // Merge all the downloaded files in to the local store
            watch = Stopwatch.createStarted();
            store.merge(refFiles, true);
            LOG.info("Merged all retrieved blob id files in [{}]",
                watch.elapsed(TimeUnit.MILLISECONDS));

            // Remove all the data store records as they have been merged
            watch = Stopwatch.createStarted();
            for (DataRecord rec : refRecords) {
                datastore.deleteMetadataRecord(rec.getIdentifier().toString());
                LOG.debug("Deleted metadata record {}", rec.getIdentifier().toString());
            }
            LOG.info("Deleted all blob id metadata files in [{}]",
                watch.elapsed(TimeUnit.MILLISECONDS));
        } catch (IOException e) {
            LOG.error("Error in merging blob records iterator from the data store", e);
            throw e;
        }
    }

    /**
     * Takes a snapshot on the tracker.
     * to other cluster nodes/repositories connected to the DataStore.
     *
     * @throws IOException
     */
    private void snapshot() throws IOException {
        try {
            if (!SKIP_TRACKER) {
                Stopwatch watch = Stopwatch.createStarted();
                store.snapshot();
                LOG.debug("Completed snapshot in [{}]", watch.elapsed(TimeUnit.MILLISECONDS));

                watch = Stopwatch.createStarted();

                File recs = store.getBlobRecordsFile();
                datastore.addMetadataRecord(recs,
                    (prefix + instanceId + System.currentTimeMillis() + mergedFileSuffix));
                LOG.info("Added blob id metadata record in DataStore in [{}]",
                    watch.elapsed(TimeUnit.MILLISECONDS));

                try {
                    forceDelete(recs);
                    LOG.info("Deleted blob record file after snapshot and upload {}", recs);
                } catch (IOException e) {
                    LOG.debug("Failed to delete file {}", recs, e);
                }
            }
        } catch (Exception e) {
            LOG.error("Error taking snapshot", e);
            throw new IOException("Snapshot error", e);
        }
    }

    /**
     * Closes the tracker and the underlying store.
     *
     * @throws IOException
     */
    @Override
    public void close() throws IOException {
        store.close();
        new ExecutorCloser(scheduler).close();
    }

    /**
     * Local store for managing the blob reference
     */
    static class BlobIdStore implements Closeable {
        /* Suffix for a snapshot generation file */
        private static final String genFileNameSuffix = ".gen";

        /* Suffix for in process file */
        private static final String workingCopySuffix = ".process";

        /* The current writer where all blob ids are being appended */
        private BufferedWriter writer;

        /* In-process file */
        private File processFile;

        /* All available generations that need to be merged */
        private final List<File> generations;

        private final File rootDir;

        private final String prefix;

        /* Lock for operations on references file */
        private final ReentrantLock refLock;

        /* Lock for snapshot */
        private final ReentrantLock snapshotLock;

        BlobIdStore(File rootDir, String prefix) throws IOException {
            this.rootDir = rootDir;
            this.prefix = prefix;
            this.refLock = new ReentrantLock();
            this.snapshotLock = new ReentrantLock();

            // Retrieve the process file if it exists
            processFile =
                fileTreeTraverser().breadthFirstTraversal(rootDir).firstMatch(IN_PROCESS.filter())
                    .orNull();

            // Get the List of all generations available.
            generations = synchronizedList(newArrayList(
                fileTreeTraverser().breadthFirstTraversal(rootDir).filter(GENERATION.filter())));

            // Close/rename any existing in process
            nextGeneration();
        }

        /**
         * Add a blob id to the tracking file.
         *
         * @param id id to track
         * @throws IOException
         */
        protected synchronized void addRecord(String id) throws IOException {
            writer.append(id);
            writer.newLine();
            writer.flush();
            LOG.debug("Added record {}", id);
        }

        /**
         * Returns an iterator on the tracked blob ids.
         *
         * @return record iterator
         * @throws IOException
         */
        protected Iterator<String> getRecords() throws IOException {
            try {
                // Get a temp file path
                String path = createTempFile("temp", null).getAbsolutePath();
                return wrap(lineIterator(getRecords(path)), new File(path));
            } catch (IOException e) {
                LOG.error("Error in retrieving blob records iterator", e);
                throw e;
            }
        }

        /**
         * Returns a file with the tracked blob ids.
         *
         * @param path path of the file
         * @return File containing tracked file ids
         * @throws IOException
         */
        protected File getRecords(String path) throws IOException {
            refLock.lock();
            File copiedRecsFile = new File(path);
            try {
                copyFile(getBlobRecordsFile(), copiedRecsFile);
                return copiedRecsFile;
            } catch (IOException e) {
                LOG.error("Error in retrieving blob records file", e);
                throw e;
            } finally {
                refLock.unlock();
            }
        }

        /**
         * Returns the blob references file
         *
         * @return blob reference file
         * @throws IOException
         */
        protected File getBlobRecordsFile() throws IOException {
            File refs = new File(rootDir, prefix + REFS.getFileNameSuffix());
            if (!refs.exists()) {
                LOG.debug("File created {}", refs.createNewFile());
            }
            return refs;
        }

        /**
         * Merges the given files with the references file and deletes the files.
         *
         * @param refFiles files to merge
         * @param doSort whether to sort while merging
         * @throws IOException
         */
        protected void merge(List<File> refFiles, boolean doSort) throws IOException {
            refLock.lock();
            try {
                if (refFiles != null && !refFiles.isEmpty()) {
                    File merged = new File(rootDir, prefix + REFS.getFileNameSuffix());
                    append(refFiles, merged, true);
                    LOG.debug("Merged files into references {}", refFiles);
                    // Clear the references as not needed
                    refFiles.clear();
                }
                if (doSort) {
                    sort(getBlobRecordsFile());
                }
            } finally {
                refLock.unlock();
            }
        }

        /**
         * Removes ids obtained by the given iterator from the tracked references.
         * The iterator has to be closed by the caller.
         *
         * @param recs iterator over records to remove
         * @throws IOException
         */
        protected void removeRecords(Iterator<String> recs) throws IOException {
            // Spool the ids to be deleted into a file and sort
            File deleted = createTempFile("deleted", null);
            writeStrings(recs, deleted, false);
            removeRecords(deleted);
            LOG.trace("Removed records");
        }

        /**
         * Removes ids obtained by the given file from the tracked references.
         * File is deleted before returning.
         *
         * @param recs file of records to delete
         * @throws IOException
         */
        protected void removeRecords(File recs) throws IOException {
            // do a snapshot
            snapshot();

            refLock.lock();
            try {
                sort(getBlobRecordsFile());
                sort(recs);
                LOG.trace("Sorted files");

                // Remove and spool the remaining ids into a temp file
                File temp = createTempFile("sorted", null);
                FileLineDifferenceIterator iterator = null;
                try {
                    iterator = new FileLineDifferenceIterator(recs, getBlobRecordsFile(), null);
                    writeStrings(iterator, temp, false);
                } finally {
                    if (iterator != null) {
                        iterator.close();
                    }
                }

                File blobRecs = getBlobRecordsFile();
                move(temp, blobRecs);
                LOG.trace("removed records");
            } finally {
                refLock.unlock();
                try {
                    forceDelete(recs);
                } catch (IOException e) {
                    LOG.debug("Failed to delete file {}", recs, e);
                }
            }
        }

        /**
         * Opens a new generation file and a writer over it.
         *
         * @throws IOException
         */
        private synchronized void nextGeneration() throws IOException {
            close();

            processFile = new File(rootDir, prefix + IN_PROCESS.getFileNameSuffix());
            writer = newWriter(processFile, UTF_8);
            LOG.info("Created new process file and writer over {} ", processFile.getAbsolutePath());
        }

        /**
         * Adds all the ids backed by the iterator into the references.
         * Closing the iterator is the responsibility of the caller.
         *
         * @param recs iterator over records to add
         * @throws IOException
         */
        protected void addRecords(Iterator<String> recs) throws IOException {
            // Spool contents into a temp file
            File added = createTempFile("added", null);
            writeStrings(recs, added, false);
            // Merge the file with the references
            merge(Lists.newArrayList(added), false);
        }

        /**
         * Merges the contents of the file into the references file.
         *
         * @param recs File of records to add
         * @throws IOException
         */
        protected void addRecords(File recs) throws IOException {
            // Merge the file with the references
            merge(Lists.newArrayList(recs), false);
        }

        /**
         * Snapshots the local store, starts a new generation for writing
         * and merges all generations available.
         *
         * @throws IOException
         */
        protected void snapshot() throws IOException {
            snapshotLock.lock();
            try {
                nextGeneration();
                merge(generations, false);
            } finally {
                snapshotLock.unlock();
            }
        }

        @Override
        public synchronized void close() {
            closeQuietly(writer);
            LOG.info("Closed writer");

            // Convert the process file to a generational file
            if (processFile != null) {
                File renamed = new File(removeExtension(processFile.getAbsolutePath()));
                boolean success = processFile.renameTo(renamed);
                LOG.debug("File renamed {}", success);
                if (success) {
                    generations.add(renamed);
                    LOG.info("Process file renamed to {}", renamed.getAbsolutePath());
                } else {
                    LOG.trace("Trying a copy file operation");
                    try {
                        if (renamed.createNewFile()) {
                            Files.copy(processFile, renamed);
                            generations.add(renamed);
                            LOG.info("{} File copied to {}", processFile.getAbsolutePath(),
                                renamed.getAbsolutePath());
                        }
                    } catch (Exception e) {
                        LOG.warn("Unable to copy process file to corresponding gen file. Some"
                            + " elements may be missed", e);
                    }
                }
            }
        }

        /**
         * Different types of files
         */
        enum Type {
            IN_PROCESS {
                @Override String getFileNameSuffix() {
                    return "." + currentTimeMillis() + genFileNameSuffix + workingCopySuffix;
                }

                @Override Predicate<File> filter() {
                    return new Predicate<File>() {
                        @Override public boolean apply(File input) {
                            return input.getName().endsWith(workingCopySuffix) && input.getName().startsWith(fileNamePrefix);
                        }
                    };
                }
            },
            GENERATION {
                @Override String getFileNameSuffix() {
                    return "." + currentTimeMillis() + genFileNameSuffix;
                }

                @Override Predicate<File> filter() {
                    return new Predicate<File>() {
                        @Override public boolean apply(File input) {
                            return input.getName().startsWith(fileNamePrefix)
                                && input.getName().contains(genFileNameSuffix)
                                && !input.getName().endsWith(workingCopySuffix);
                        }
                    };
                }
            },
            REFS {
                @Override String getFileNameSuffix() {
                    return mergedFileSuffix;
                }

                @Override Predicate<File> filter() {
                    return new Predicate<File>() {
                        @Override public boolean apply(File input) {
                            return input.getName().endsWith(mergedFileSuffix)
                                && input.getName().startsWith(fileNamePrefix);
                        }
                    };
                }
            };

            /**
             * Returns the file name suffix according to the type.
             *
             * @return file name suffix
             */
            String getFileNameSuffix() {
                return "";
            }

            /**
             * Returns the predicate to filter files in the root directory according to the type.
             *
             * @return a predicate to select particular file types
             */
            Predicate<File> filter() {
                return alwaysTrue();
            }
        }
    }

    /**
     * Job which calls the snapshot on the tracker.
     */
    class SnapshotJob implements Runnable {
        @Override
        public void run() {
            try {
                snapshot();
                LOG.info("Finished taking snapshot");
            } catch (Exception e) {
                LOG.warn("Failure in taking snapshot", e);
            }
        }
    }

}

redpajama_set_name: RedPajamaGithub


text:
U.S. Code > Title 7 > Chapter 38 > Subchapter II
U.S. Code > Title 7 > Chapter 38 > Subchapter II – Livestock Mandatory Reporting
Part A Purpose; Definitions
Part B Cattle Reporting
Part C Swine Reporting
Part D Lamb Reporting
Part E Administration
Terms Used In U.S. Code > Title 7 > Chapter 38 > Subchapter II
alien: means any person not a citizen or national of the United States. See 8 USC 1101
Amendment: A proposal to alter the text of a pending bill or other measure by striking out some of it, by inserting new language, or both. Before an amendment becomes part of the measure, thelegislature must agree to it.
Appeal: A request made after a trial, asking another court (usually the court of appeals) to decide whether the trial was conducted properly. To make such a request is "to appeal" or "to take an appeal." One who appeals is called the appellant.
Appropriation: The provision of funds, through an annual appropriations act or a permanent law, for federal agencies to make payments out of the Treasury for specified purposes. The formal federal spending process consists of two sequential steps: authorization
Assets: (1) The property comprising the estate of a deceased person, or (2) the property in a trust account.
association: when used in reference to a corporation, shall be deemed to embrace the words "successors and assigns of such company or association" in like manner as if these last-named words, or words of similar import, were expressed. See 1 USC 5
Attorney General: means the Attorney General of the United States. See 8 USC 1101
basic agricultural commodity: means wheat, rye, flax, barley, cotton, field corn, grain sorghums, hogs, cattle, rice, potatoes, tobacco, sugar beets and sugarcane, peanuts, and milk and its products, and any regional or market classification, type, or grade thereof. See 7 USC 611
benefit: means the value of supplemental nutrition assistance provided to a household by means of--
(1) an electronic benefit transfer under section 2016(h) of this title. See 7 USC 2012
child: means an unmarried person under twenty-one years of age who is--
(A) a child born in wedlock. See 8 USC 1101
Complaint: A written statement by the plaintiff stating the wrongs allegedly committed by the defendant.
consular officer: means any consular, diplomatic, or other officer or employee of the United States designated under regulations prescribed under authority contained in this chapter, for the purpose of issuing immigrant or nonimmigrant visas or, when used in subchapter III, for the purpose of adjudicating nationality. See 8 USC 1101
Contract: A legal written agreement that becomes binding when signed.
Conviction: A judgement of guilt against a criminal defendant.
cotton: means (1) all upland cotton harvested in the United States, and, except as used in section 2106(e) of this title, includes cottonseed of such cotton and the products derived from such cotton and its seed and (2) imports of upland cotton including the upland cotton content of the products derived from upland cotton (other than industrial products as defined by the Secretary). See 7 USC 2116
cotton-producing State: includes --
(A) any combination of States described in paragraph (1). See 7 USC 2116
Counterclaim: A claim that a defendant makes against a plaintiff.
county: includes a parish, or any other equivalent subdivision of a State or Territory of the United States. See 1 USC 2
Damages: Money paid by defendants to successful plaintiffs in civil cases to compensate the plaintiffs for their injuries.
Defendant: In a civil suit, the person complained against; in a criminal case, the person accused of the crime.
Equitable: Pertaining to civil suits in "equity" rather than in "law." In English legal history, the courts of "law" could order the payment of damages and could afford no other remedy. See damages. A separate court of "equity" could order someone to do something or to cease to do something. See, e.g., injunction. In American jurisprudence, the federal courts have both legal and equitable power, but the distinction is still an important one. For example, a trial by jury is normally available in "law" cases but not in "equity" cases. Source: U.S. Courts
Escrow: Money given to a third party to be held for payment until certain conditions are met.
Evidence: Information presented in testimony or in documents that is used to persuade the fact finder (judge or jury) to decide the case for one side or the other.
Fiscal year: The fiscal year is the accounting period for the government. For the federal government, this begins on October 1 and ends on September 30. The fiscal year is designated by the calendar year in which it ends; for example, fiscal year 2006 begins on October 1, 2005 and ends on September 30, 2006.
Food: means (1) any food or food product for home consumption except alcoholic beverages, tobacco, hot foods or hot food products ready for immediate consumption other than those authorized pursuant to clauses (3), (4), (5), (7), (8), and (9) of this subsection, and any deposit fee in excess of the amount of the State fee reimbursement (if any) required to purchase any food or food product contained in a returnable bottle or can, regardless of whether the fee is included in the shelf price posted for the food or food product, (2) seeds and plants for use in gardens to produce food for the personal consumption of the eligible household, (3) in the case of those persons who are sixty years of age or over or who receive supplemental security income benefits or disability or blindness payments under title I, II, X, XIV, or XVI of the Social Security Act [42 U. See 7 USC 2012
Forgery: The fraudulent signing or alteration of another's name to an instrument such as a deed, mortgage, or check. The intent of the forgery is to deceive or defraud. Source: OCC
Fraud: Intentional deception resulting in injury to another.
handler: means any person who handles cotton or cottonseed or, for the purposes of sections 2102, 2105(c), and 2112 of this title, any person who imports cotton, including de minimis amounts of cotton described in subsection (c), in the manner specified in the order or in the rules and regulations issued thereunder. See 7 USC 2116
import: means any such entry. See 7 USC 2116
importer: means any person who enters, or withdraws from warehouse, cotton for consumption in the customs territory of the United States. See 7 USC 2116
Indemnification: In general, a collateral contract or assurance under which one person agrees to secure another person against either anticipated financial losses or potential adverse legal consequences. Source: FDIC
individual: shall include every infant member of the species homo sapiens who is born alive at any stage of development. See 1 USC 8
ineligible to citizenship: when used in reference to any individual, means, notwithstanding the provisions of any treaty relating to military service, an individual who is, or was at any time permanently debarred from becoming a citizen of the United States under section 3(a) of the Selective Training and Service Act of 1940, as amended (54 Stat. See 8 USC 1101
Injunction: An order of the court prohibiting (or compelling) the performance of a specific act to prevent irreparable damage or injury.
Jurisdiction: (1) The legal authority of a court to hear and decide a case. Concurrent jurisdiction exists when two courts have simultaneous responsibility for the same case. (2) The geographic area over which the court has authority to decide cases.
lawfully admitted for permanent residence: means the status of having been lawfully accorded the privilege of residing permanently in the United States as an immigrant in accordance with the immigration laws, such status not having changed. See 8 USC 1101
Lease: A contract transferring the use of property or occupancy of land, space, structures, or equipment in consideration of a payment (e.g., rent). Source: OCC
Lien: A claim against real or personal property in satisfaction of a debt.
marketing: includes the sale of cotton or the pledging of cotton to the Commodity Credit Corporation as collateral for a price support loan. See 7 USC 2116
marriage: means only a legal union between one man and one woman as husband and wife, and the word "spouse" refers only to a person of the opposite sex who is a husband or a wife. See 1 USC 7
naturalization: means the conferring of nationality of a state upon a person after birth, by any means whatsoever. See 8 USC 1101
oath: includes affirmation, and "sworn" includes affirmed. See 1 USC 1
Oath: A promise to tell the truth.
Obligation: An order placed, contract awarded, service received, or similar transaction during a given period that will require payments during the same or a future period.
officer: includes any person authorized by law to perform the duties of the office. See 1 USC 1
organization: means , but is not limited to, an organization, corporation, company, partnership, association, trust, foundation or fund. See 8 USC 1101
outlying possessions of the United States: means American Samoa and Swains Island. See 8 USC 1101
Oversight: Committee review of the activities of a Federal agency or program.
Partnership: A voluntary contract between two or more persons to pool some or all of their assets into a business, with the agreement that there will be a proportional sharing of profits and losses.
permanent: means a relationship of continuing or lasting nature, as distinguished from temporary, but a relationship may be permanent even though it is one that may be dissolved eventually at the instance either of the United States or of the individual, in accordance with law. See 8 USC 1101
person: means an individual or an organization. See 8 USC 1101
person: as used in this chapter includes an individual, partnership, corporation, association, and any other business unit. See 7 USC 608a
person: means any individual, partnership, corporation, association, or any other entity. See 7 USC 2116
potatoes: means all varieties of potatoes included in the species Solanum tuberosum. See 7 USC 611
processing: means the milling or other processing (except cleaning and drying) of wheat, rye, barley or corn for market, including custom milling for toll as well as commercial milling, but shall not include the grinding or cracking thereof not in the form of flour for feed purposes only. See 7 USC 609
Real property: Land, and all immovable fixtures erected on, growing on, or affixed to the land.
Remainder: An interest in property that takes effect in the future at a specified time or after the occurrence of some event, such as the death of a life tenant.
Remand: When an appellate court sends a case back to a lower court for further proceedings.
residence: means the place of general abode. See 8 USC 1101
Secretary: means the Secretary of Agriculture. See 7 USC 2012
Service: means the Immigration and Naturalization Service of the Department of Justice. See 8 USC 1101
Service of process: The service of writs or summonses to the appropriate party.
Settlement: Parties to a lawsuit resolve their difference without having a trial. Settlements often involve the payment of compensation by one party in satisfaction of the other party's claims.
State: when used in this chapter 1 shall include the Virgin Islands and Guam. See 7 USC 1626
State: includes the District of Columbia, Puerto Rico, Guam, the Virgin Islands of the United States, and the Commonwealth of the Northern Mariana Islands. See 8 USC 1101
State: means the fifty States, the District of Columbia, Guam, the Virgin Islands of the United States, and the reservations of an Indian tribe whose tribal organization meets the requirements of this chapter for participation as a State agency. See 7 USC 2012
State agency: means (1) the agency of State government, including the local offices thereof, which has the responsibility for the administration of the federally aided public assistance programs within such State, and in those States where such assistance programs are operated on a decentralized basis, the term shall include the counterpart local agencies administering such programs, and (2) the tribal organization of an Indian tribe determined by the Secretary to be capable of effectively administering a food distribution program under section 2013(b) of this title or a supplemental nutrition assistance program under section 2020(d) of this title. See 7 USC 2012
Statute: A law passed by a legislature.
sugar: means sugar in any form whatsoever, derived from sugar beets or sugarcane, whether raw sugar or direct-consumption sugar, including also edible molasses, sirups, and any mixture containing sugar (except blackstrap molasses and beet molasses). See 7 USC 609
Supplemental nutrition assistance program: means the program operated pursuant to this chapter. See 7 USC 2012
Testimony: Evidence presented orally by witnesses during trials or before grand juries.
United States: except as otherwise specifically herein provided, when used in a geographical sense, means the continental United States, Alaska, Hawaii, Puerto Rico, Guam, the Virgin Islands of the United States, and the Commonwealth of the Northern Mariana Islands. See 8 USC 1101
United States: means the 50 States of the United States of America. See 7 USC 2116
vehicle: includes every description of carriage or other artificial contrivance used, or capable of being used, as a means of transportation on land. See 1 USC 4
vessel: includes every description of watercraft or other artificial contrivance used, or capable of being used, as a means of transportation on water. See 1 USC 3
writing: includes printing and typewriting and reproductions of visual symbols by photographing, multigraphing, mimeographing, manifolding, or otherwise. See 1 USC 1
CFR > Title 9 > Chapter I > Subchapter G - Livestock Improvement
CFR > Title 9 > Chapter II > Part 203 - Statements of General Policy Under the Packers and Stockyards Act
U.S. Code > Title 7 > Chapter 38 > Subchapter II - Livestock Mandatory Reporting
U.S. Code > Title 7 > Chapter 48 - Humane Methods of Livestock Slaughter
U.S. Code > Title 7 > Chapter 9 - Packers and Stockyards
California Codes > Food and Agricultural Code > Division 7 > Chapter 4 - Livestock Drugs
Florida Regulations > Chapter 5C-5 - Livestock Markets; Diseased Animals
Florida Regulations > Chapter 5C-6 - Brucellosis
Florida Statutes > Chapter 534 - Livestock; Marks and Brands
Illinois Compiled Statutes > 510 ILCS 75 - Humane Slaughter of Livestock Act
Illinois Compiled Statutes > 510 ILCS 77 - Livestock Management Facilities Act
New York Laws > Agriculture and Markets > Article 5-A - Licensing of Slaughterhouses
New York Laws > Agriculture and Markets > Article 5-C - Licensing of Rendering Plants
Tennessee Code > Title 44 > Chapter 7 - Marks, Brands, Registration and Certification
Texas Agriculture Code > Title 6 > Subtitle B - Livestock

redpajama_set_name: RedPajamaCommonCrawl


Seniors Aaron Brown and Ashley Mull were crowned homecoming king and queen Oct. 15 during halftime of the men's soccer match against Barton College. The Fleet Men defeated the Barton Bulldogs, scoring two goals in the second half for a 2-0 win, while the Fleet Women fell to Barton earlier in the afternoon.
Brown, an athletic training major from Mount Pleasant, plays on the Men's Basketball Team and has served as president of the Fellowship of Christian Athletes (FCA) at Erskine. Last fall, he was named to Garnet Circle, which honors the 25 currently enrolled students who achieved the highest scholastic average during the previous academic year, and was profiled in FCA Magazine.
Mull, a biology major from Belmont, N.C., who was captain of the Women's Basketball Team last season, is currently a starting player on the Women's Soccer Team. She is president of the Class of 2017 and has served as vice president of the Athenian Literary Society. She has also been active in the biology honor society Beta Beta Beta, FCA, and Reformed University Fellowship.
Other members of the homecoming court included Grate Profit of Summerville and Alexis Lyda of Woodruff, freshman prince and princess; AJ Mealing of Graniteville and Rachel Berkey of Myrtle Beach, sophomore prince and princess; and Sammy Antonelli of Lexington, N.C. and Rebecca Reiter of Anderson, junior prince and princess. Runners-up for homecoming king and queen were Michael Byrd of Sullivans Island and Anna Raquel Robison of Isle of Palms.


This project involves the development of an equipment with the mechanical system similar to a bicycle that takes over the function of an exoskeleton, an ExoBike, to evaluate and promote the rehabilitation of individuals with bone injuries, as well as in recovery, training and early diagnosis of patients with neuro degenerative diseases. The ExoBike incorporates a set of sensors and actuators that enable therapeutics to implement an active/passive system which reacts dynamically to the needs of the disease under study. There will be a customized software for rehabilitation being able to monitor physiological and biomechanical parameters of participants while immersing them in a virtual reality simulation providing the user with visual, auditory and haptic feedback. A Brain-Computer Interface based on electroencephalography, biomedical signal processing, multimodal interfaces and assistive technology will be incorporated in that the acquired data may be fused with the system. This project, covering different scientific domains, starts with the engagement of the students supervised by teachers and the collaboration of the healthcare community, which ends with a final prototype to improve the quality of live.


Each student has their own unique learning potential. With that in mind, I provide one-on-one personal instruction for 30 minutes per lesson. My goal is to customize their learning experience based on their skill level and to expand the depth of their musical abilities, without fear of making mistakes.


Liberty Tax service® in Simi Valley is a full service tax and accounting office owned and operated by CPA and experienced staff. Our Tax services Include Tax Planning, Filing, Tax Resolution, Audit Representation and many other tax services for Individuals and Businesses. Accounting Services include bookkeeping, accounting, financial analysis, business planning and business entity creations and maintenance. We have more than 30 years of combined experience at your service. For your convenience, we are open year-round to serve you, (see our hours of operations.). We are looking forward to being at your service! Please call the Liberty Tax® Team in Simi Valley at 805-582-9540.


The Philippines is an archipelago of 7107 islands, which means you can never run out of cool, tropical places to explore. I have been living here for 30 years and I haven't even explored a quarter of the number of islands in my country. But among all the Filipino islands I've been to, the 5 listed below are my favorite of them all.
Coined as the Queen City of the South, Cebu has a lot to offer when it comes to waterfalls, beaches, and historical sites. If you're into trekking and canyoneering, head to the southern part of Cebu and there you'll find the adventure you've been looking for! If you're looking for an adrenaline rush, be sure to stop by Kawasan falls. The water is beautiful gatorade blue color, and the place is just absolutely breathtaking. Other points of interest are Tumalog falls, Aguinid falls, Mantayupan falls, Sumilon island, and Bantayan island.
Just like Cebu, Camiguin also has beautiful waterfalls and white sand beaches. But what sets this island apart is not only is it blessed with waterfalls, but it also has hotsprings! In the midst of Camiguin is a volcano named Mount Hibok-hibok. And thanks to this volcano, Camiguin has natural hotsprings where you can chill and relax. What I love about Camiguin is how laid-back it is. For a very affordable price of less than 500 php (almost 10 USD), you can rent a motorbike and tour the entire island for a day. This is also the place where I saw one of the most beautiful sunsets ever. Places to visit in Camiguin include White Island, Tuasan Falls, Sunken Cemetery, and Ardent hot springs.
Siargao is the surfing capital of the Philippines—so if you're into surfing, then this is the places to go! What's great about this island is that it hasn't been spoiled by urbanization or any big infrastructures. This means that visitors can enjoy the natural beauty of the place and get in touch with nature. And Siargao has more than just surfing sites to offer. Visitors can go island-hopping and explore the beautiful white sand beaches in the nearby small islands. One of the must-see places is the Magpupungko Tide Pool–a natural pool found in one of the beaches in Siargao, and it only appears during low tide!
Overwater villas at Bucas Grande Islands ☼ Would you stay here?
Home of one of the new seven wonders of nature, Palawan is blessed with so many beautiful natural spots. In Puerto Prinsesa, you'll find the world-renowned underground river that stretches up to 8.2 kilometers! In this mysterious subterranean river, you will find beautiful rock formations. Another gem in Palawan is El Nido. You should not miss exploring the beautiful islands of El Nido! The beaches are simply breathtaking and the view of the islands from above—oh man..it's unlike any other! And one more place to explore in Palawan is Coron, which is also blessed with islands that have amazing white sand beaches. If white sand beaches, places to snorkel, and a laid-back life is what you're looking for, Palawan is your go-to place!
1. Last but not least, in my number 1 spot is BOHOL!
Bohol is my beloved hometown. What can I say, I grew up on this small island, so of course it's my favorite! But for 30 years living here, I'm still discovering more and more places to see here! If you love white sand beaches, waterfalls, caves and cave pools, snorkeling, trekking, camping, diving, cycling, and island-hopping, then head on to Bohol because this island has it all! From the gorgeous mountains of Alicia, to the charming Chocolate hills, down to the mysterious cave pools in Anda, flowing to the rushing waterfalls of Camugao, and to the white sand beaches of Panglao—you will definitely enjoy every minute and every adventure you will experience in Bohol.


text:
Exploring the Whimsical Mr. Ed's Elephant Museum near Gettysburg
December 8, 2022 November 2, 2020 by Jim Cheney
I've visited many incredible spots in Pennsylvania, but few have been more whimsical than Mr. Ed's Elephant Museum.
Mr. Ed's Elephant Museum is located along Route 30 in western Adams County, PA, roughly halfway between Gettysburg and Chambersburg. It is part roadside oddity, part elephant figurine museum, and part candy store, which combine to make one of the strangest spots to visit in Pennsylvania.
Mr. Ed's Elephant Museum got its start as a general store a few miles away in 1975. The store, known then simply as Mr. Ed's, was started by Ed Gotwalt, whose image still adorns the store even though it is now owned by his granddaughter and her husband.
The exterior of Mr. Ed's Elephant Museum.
In 1983, Gotwalt changed the focus of the store to be an elephant museum and candy emporium, and the business continued to grow over the years in both physical size and popularity.
Unfortunately, in the summer of 2010, the business suffered a devastating fire that destroyed the entire business and nearly all of the elephant collection. However, thanks to help from the community, the store reopened less than a year later.
Outside of Mr. Ed's.
Today, Mr. Ed's Elephant Museum is a must-visit stop if you find yourself looking for things to do near Gettysburg or traveling the Lincoln Highway through the region.
Even before you step foot inside Mr. Ed's, you can tell that this is a very fun place for both kids and adults. That's because there are play areas for kids, giant metal elephants, and much more scattered around exterior the building.
A large elephant outside of Mr. Ed's.
As soon as you step inside, you'll feel like you're a kid in a candy shop (most likely because you are in a giant candy shop).
While Mr. Ed's sells a variety of knickknacks, local products, and gag gifts, the majority of the store is taken up by candy.
Here you can find everything from bulk candy bins to old-time candies that you might remember from your youth. There really are a ton of different candies here to find (over 700 according to their website), and you are sure to discover a least a few delicious treats no matter your taste.
Mr. Ed's is also a candy emporium with more than 700 varieties of candy.
In addition to selling packaged candies, Mr. Ed's Elephant Museum also makes some of their own treats including fudge and roasted peanuts. While I've never tried their peanuts, their fudge is incredibly delicious and is offered in a wide variety of flavors.
The Elephant Museum is actually a bit easy to miss but is located through a doorway near the main entrance to the store. While it only takes up a hallway and one small room, it's still a neat spot to check out.
There are more than 12,000 elephants on display in the small museum.
Despite nearly the entire collection being lost only 10 years ago, it is said that there are 12,000 elephants on display (with more in storage). The vast majority of these are quite small and range from kids' toys to artistic pieces.
There's even a large Dumbo that smaller kids can sit on to have their photo taken.
Inside Mr. Ed's Elephant Museum.
Unfortunately, very few of the items on display actually have any information about them, which would have been nice to have seen. However, there is signage that tells about real elephants.
Even without signage, it's still neat to browse through the thousands of elephants on display. There are definitely sure to be at least a few that interest every visitor. Given that it's a free museum, it's a lot of fun to check out for a few minutes.
Before leaving, make sure you don't miss the garden on the side of Mr. Ed's Elephant Museum.
There's a great garden adjacent to the building.
This is a nice space that features a winding path that passes whimsical scenes, elephant fountains, and places to sit and enjoy the area, as well as to enjoy treats from inside.
In the garden, you'll also find a small shed that is home to Miss Pat's Teapot Museum.
There are probably over 100 different teapots located inside this small building, including some that are very unique and fun. Unfortunately, like the elephant museum inside, this space lacks signage telling about the pieces. However, it is still interesting to see while visiting.
Mr. Ed's is well known for their homemade fudge and roasted peanuts.
Without a doubt, Mr. Ed's Elephant Museum is a bit kitschy, and describing it as a tourist trap wouldn't be entirely incorrect. However, it's also a ton of fun to visit and to explore the many candy varieties you can buy and the unique elephants on display.
Given that it's only a short distance west of downtown Gettysburg and not far off of I-81, this is a neat spot to check out if you find yourself traveling through southern Pennsylvania.
Looking for more places to visit nearby? Check out Caledonia Falls, the Appalachian Trail Museum, the covered bridges of Adams County, and the Gettysburg Battlefield.
Mr. Ed's Elephant Museum
Hours: Daily: 10am-6pm
Website: MisterEds.com
Address: 6019 Chambersburg Rd
Orrtanna, PA 17353
Great places to stay near Gettysburg
Gettysburg Hotel - A historic hotel in the center of town
Federal Pointe Inn - A beautifully-restored property near the battlefield
Best Western - The area's highest-rated hotel on Trip Advisor.
Brickhouse Inn B&B - A delightful B&B near town
7 Great Lancaster Breweries Worth Visiting
Exploring the Beautiful Underground Labyrinth of Crystal Cave
Visiting Midtown Scholar Bookstore: Harrisburg's Best Destination for Literary Lovers


Click for more product photos.
OTTAWA, January 22, 2013 – The Canadian Food Inspection Agency (CFIA) and the Newfoundland Chocolate Company are warning people with allergies to egg or wheat not to consume the Newfoundland Chocolate Company brand chocolates described below. The affected products contain egg and wheat which are not declared on the label.
These products have been distributed in the Atlantic provinces, Quebec, Ontario and Alberta, and may have been distributed nationally.
Consumption of these products may cause a serious or life-threatening reaction in persons with allergies to egg or wheat.
The manufacturer, Newfoundland Chocolate Company, St. John's, NL is voluntarily recalling the affected products from the marketplace. The CFIA is monitoring the effectiveness of the recall.
For more information, consumers and industry can call the CFIA at 1-800-442-2342 /TTY 1-800-465-7735 (8:00 a.m. to 8:00 p.m. Eastern time, Monday to Friday).


The fall protection certification offered by Trinity Safety meets all the training requirements set out by the Canadian Standards Association CSA and exceeds the requirements set out by Saskatchewan OH&S. The Trinity Safety Fall protection is recognized and accepted by all major Saskatchewan employers including the Co-Op Refinery, K+S, Mosaic, Husky Upgrader and Cameco. We also offer the OSSA (Oil Sands Safety Association) fall protection and the Enform two day rig worker fall protection.
The classroom setting for fall protection is very learner friendly, not a bad seat in the room. Each student is able to view an extensive display of fall protection gear during the class and the instructor is able to demonstrate use in person as well as on the big screen TV. The classroom has ample space for the practical portions of the course like equipment inspections and putting on the harness.
The fall protection equipment that students will use and see at Trinity Safety is current, relevant and functional. Participants will use equipment in class that they will see at work and will also see each one of those in a damaged or worn condition and be shown proper and improper connections of each.


text:
Categorical measurement caveats
Effects of categorical measurement
Decrease statistical power and increase sample size
Categorical variables are very prevalent in medicine. Measures like presence of comorbidities, mortality, and test results are categorical in nature. Here are some general caveats associated with categorical measurement and sample size:
1. Categorical outcomes will always DECREASE statistical power and INCREASE the needed sample size. This is due to the lack of precision and accuracy in categorical measurement.
2. The underlying algebra associated with calculating 95% confidence intervals of odds ratios and relative risk is 100% dependent upon the sample size. With smaller sample sizes, by default, wider and less precise 95% confidence intervals will be found. If one of the cells of a cross-tabulation table has fewer observations that the other cells, then the 95% confidence interval will be wider and potentially not truly interpretable. A 95% confidence interval will become narrower or more precise only with larger sample sizes.
3. When using categorical variables for diagnostic testing purposes, larger samples sizes will be needed to calculate precise measures of sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV). With smaller sample sizes in diagnostic studies, a change in one or two observations can have drastic effects on the diagnostic values.
This is especially true when there is a subjective rating used for purposes of diagnosing someone as "positive" or "negative" for a given disease state (radiologist reading an X-ray). Inter-rater reliability coefficients such as Kappa or ICC should be employed to ensure consistency and reliability among subsequent ratings and raters. Sensitivity, specificity, and PPV will be affected by inter-rater reliability. Receiver Operator Characteristic (ROC) curves can be used to find a given value where sensitivity and specificity of a test is maximized. ROC curves can also be used to compare the area under the curve (AUC) between several diagnostic tests at the same time so that the best can be chosen.
4. For each predictor categorical parameter (or variable) that you want to include in a multivariate model, you have to increase your sample size by at least 20-40 observations of the outcome. This due to the limited precision, accuracy, and statistical power associated with categorical measurement. Researchers HAVE to collect more observations in order to detect any potential significant multivariate associations.
In the case that a polychotomous variable is to be used in a model, create (a-1), where a is the number of categories, dichotomous variables with "0" as not being that category and "1" as being that category. For each level, 20-40 more observations of the outcome will be needed to have enough statistical power to detect differences amongst the multiple groups.
The Kappa statistic
Kappa is a measure of inter-rater reliability
Rating performance or constructs a dichotomous categorical level
The Kappa statistic is a measure of inter-rater reliability when the construct or behavior is being rated using a dichotomous categorical outcome. When a sequential series of steps must be completed to yield an end product, such as with performance assessment, then a "checklist" or series of "yes/no" responses are scored by independent raters. The Kappa statistic can be used to assess the level of agreement/consistency/reliability between raters on subsequent dichotomous responses.
It is important that raters have an operational definition of what constitutes a "yes" or "no" in regards to performance. The construct or behavior of interest must be standardized between raters so that unsystematic bias can be reduced. A lack of operationalization and standardization in performance assessment significantly DECREASES the chances of obtaining evidence of inter-rater reliability when using the Kappa statistic.
Kappa is not a "powerful" statistic because of the dichotomous categorical variables used in the analysis. Larger sample sizes are needed to achieve adequate statistical power when categorical outcomes are utilized. So, many observations of the performance of simulation may be needed to adequately assess BOTH inter-rater reliability and outcomes of interest. The chances of having adequate inter-rater reliability decreases with fewer observations of performance or simulation.
The role of correlations in psychometrics
Correlations are used to generate validity evidence
Concurrent, predictive, convergent, and divergent validity
Correlations play a central role in applied psychometrics.
The inter-correlations among survey instrument items play a role in calculating internal consistency reliability coefficients (Cronbach's alpha, split-half, KR-20), test-retest reliability (Spearman-Brown formula), and inter-rater reliability (Kappa, ICC). Correlation matrices also play a significant role in principal components analysis (eigenvalues, factor loadings).
Correlations are used to generate convergent, predictive, and concurrent validity evidence. Significant correlations with theoretically or conceptually similar constructs/survey instruments denotes evidence of validity. In social sciences, a validity coefficient (or correlation coefficient) of .3 is considered evidence of validity.
Pearson's r and Spearman's rho are the most prevalent correlation tests used to generate validity evidence. These correlations are used with survey instruments that generate ordinal or continuous outcomes.


text:
The world's top 10 spammers
The world's top 10 spamming countries account for 55 per cent of the total global spam volume, says Secure Computing, a public company that provides enterprise security solution, in its Internet Threats Report.
Spam is the unwanted e-mail messages that you find in your mail box. It is primarily electronic junk mail sent to your e-mail account or even your cellphone.
Spammers are continuing to use pop culture and current events (US elections, Olympics, etc) to entice end users into responding or clicking on links whose sole purpose is to download malware.
1. United States, 16.56%
The United States is the world's largest spammer and accounts for more than 16.5 per cent of global spam.
Spam is up 280% from last year (at this time). This year's peak on spam volume was March 27 at 185 billion spam messages. Since March we have seen spam steadily decrease.
2. Russia, 6.71%
Over 6.7 per cent of global spam emerges from Russia, making it the world's second largest spammer.
The Secure Research report says that there was a 45 per cent increase in the average number of porn sites found daily since January 2008.
50 pre cent of all Web sites' content is now in non-English languages, and this too is adding to the growing spam volume.
3. Turkey, 6.51%
Turkey ranks number 3 in the world when it comes to spamming. It accounts for per cent of global spam.
Among the types of spam, male enhancement, product replica, prescription drugs, gambling, pornography, debt job offer, phishing were the major contronutors.
4. Brazil, 5.29%
Brazil, with per cent of global spam, ranks 4th in the world.
Spammers continue to use pop culture and current events like the Olympics or US elections to lure users into responding or clicking on links whose sole purpose is to download malware.
5. Italy, 4.32%
Italy, the world's 5th largest spammer, accounts for per cent of global spam.
6. China, 3.49%
China ranks 6th among the The world's top 10 spammers and accounts for per cent of global spam.
7. Great Britain, 3.37%
Great Britain accounts for per cent of global spam and is ranked 7th largest spammer.
8. Colombia, 3.09%
Colombia takes the 8th spot amongst the world's biggest spammers and accounts for per cent of global spam.
9. India, 2.99%
India is one of the top 10 spammers in the world and it accounts for 2.99 per cent of global spam.
The country is the world's 9th largest spammer, and as its Internet infrastructure improves with rising prosperity the amount of spam or unsolicited e-mails emerging from India too is likely to multiply.
10. South Korea, 2.87%
South Korea sends slightly less spam than India, but with a contribution of 2.87 per cent to global spam it is the world's 10th largest spammer.
How to secure yourself from spam
Various methods to save yourself from incoming spam exist. These include:
Using spam-filtering software. Trend Micro, Symantec, Computer Associates, Sophos (Satcom), McAfee, Netscreen, Prime Infotec, GajShield Infotech and Websense provide specialised anti-spam solutions in the Indian market.
A spam filter is a piece of software that sorts incoming e-mail messages and blocks those that it thinks are spam. While filtering can be very useful, it's not perfect as sometimes filters fail to identify spam-and they mistakenly block a genuine, non-spam message. Adjusting the filter settings can help minimise these risks. To prevent this one can also choose to direct spam into a special folder set aside for reviewing all messages that the software filter tags as spam.
Upgrading your Internet security to ensure that spammers can't send spam via your computer.
Never reply to a spam message and never click on any links, especially 'unsubscribe' links in such messages because then you give yourself away as a real user and thus leave yourself open to be spammed even more.
Being aware of spam and of ways to secure yourself too helps curb the menace.
You should never buy anything through an unsolicited e-mail. By buying through such messages, you help keep such business economically viable.
Instantly delete unsolicited e-mails, for such messages can also harm your machine by spreading viruses or worms.
When you send e-mails to many people at the same time, use the BCC (blind copy) field so that the recipients are unable to see the other addresses. This also helps curb spamming.
The government too can help curb spam by enacting legislation that punishes offenders.
Don't give out your e-mail ID on instant messengers, chat rooms, et cetera.
This entry was posted on Friday, August 22nd, 2008 at 11:58 am and is filed under Keep updated.	You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


text:
Submarine Commander - Sears - Atari 2600
Submarine Commander by Sears
Sears TELE-GAMES
VIDEO ARCADE
SUBMARINE COMMANDER
FOR 1 OR 2
If you have the Video Arcade II, Model No. 49 7500, see your Owner's Manual for information on control panel switches and All-in-One-Controllers.
NOTE: Always turn the console POWER switch OFF when inserting or removing a Tele-Games Cartridge. This will protect the electronic components and prolong the life of your Sears Video Arcade.
(C) 1982, ATARI, INC. ALL RIGHTS RESERVED.
OBJECT OF THE GAME
USING THE CONTROLLERS
CONSOLE CONTROLS
GAME VARIATIONS
GAME SELECT MATRIX
Just imagine that you are the captain of a ship, and it's your job to protect your country. Your modern submarine is equipped with many new features to help you. The control panel includes a radar scope, a sonar depth charge detector, status indicators, a fuel readout, an engine temperature gauge, and of course, torpedoes.
Since you're the commander, you are at the helm. It's up to you to guide the submarine. You'll use your periscope to scan the ocean and detect enemy vessels. When you spot the enemy, launch a
torpedo. Destroy their ships before they destroy your submarine. Be on the the lookout for dangerous depth charge attacks. A depth charge hit could mean serious damage to your submarine.
Your submarine is equipped with limited supplies, especially fuel. Keep a constant watch on your fuel and energy levels. Every maneuver costs you fuel. When the fuel runs out, your mission is over.
We know you can handle the job, so good luck Commander!
2. OBJECT OF THE GAME
The object of the game is to sink as many enemy ships as possible. As you sink ships, you score points. Some of the ships can drop depth charges, which might damage your submarine (see GAME VARIATIONS, Section 5).
Depth charges are indicated on the depth charge detector gauge. The gauge alerts you to the closeness and the seriousness of a depth charge. Because your sub is equipped with sonar detection you can identify the location of enemy ships before they are sighted through the periscope. This allows you to shoot a torpedo before the enemy drops a depth charge.
Your sub also carries 3000 units of fuel and two torpedo launchers. The fuel level is proportional to the engine temperature. Watch the engine temperature gauge at the top center of the screen, as shown
in Figure 1. The more maneuvers you make, the hotter the engine gets. Every torpedo launched uses three units of fuel, but every depth charge hit costs 300-377 units of fuel. Some fuel is also used just to run the submarine engines. When all the fuel runs out, the temperature gauge turns black, and the game is over.
Each gauge on the control panel serves a specific function. With time and practice, you'll be able to use all of the gauges to your best advantage. (See HELPFUL HINTS, Section 7.)
The fuel gauge at the bottom, center of the screen starts with 3000 units of fuel and counts backwards until you run out of fuel.
TORPEDO STATUS GAUGE
Torpedo status gauges are located at the bottom of the screen, directly above the fuel gauge. The gauge is green when a torpedo is ready to launch. Press the fire button and a torpedo launches from the side with the green light. (See Figure I for torpedo status gauge.) If a torpedo tube is damaged by a depth charge, it becomes black and wilt not work for the rest of the game.
ENGINE TEMPERATURE GAUGE
Engine temperature is indicated at the top, center of the screen. As the engine gets hot, the gauge turns red. The hotter the engine, the more fuel it consumes. If the gauge turns yellow, the engine has been damaged and is running at half speed.
DIRECTIONAL GAUGE
This is the broken black line located below the engine temperature gauge. When you move the sub right or left, the lines move right or left, as though you are steering the submarine.
SONAR DETECTOR
The sonar detector, located at the bottom, left side of the screen, identifies the location of an enemy ship before it is visible on the screen. When this device turns red, it is indicating the depth and the location of any enemy ship. (See Figure 2 for sonar detection.)
DEPTH CHARGE DETECTOR
The depth charge detector is an arrow which appears at the lower right corner of the screen. It points to where a depth charge is located in the water (see Figure 2). If the arrow is white, it is not dangerously close and you can move your sub in the opposite direction to avoid a hit. If the arrow is red, look out! You're about to be hit unless you quickly move away in the opposite direction.
3. USING THE CONTROLLERS
Use your Joystick Controllers with this Tele-Games Cartridge. Be sure the Joystick Controller cables are firmly plugged into the CONTROLLER jacks at the back of your Video Arcade. For one-player games, use the Joystick Controller plugged into the LEFT CONTROLLER jack. Hold the Joystick with the red button to your upper left, toward the television screen. See your owner's manual for further details.
Use the Joystick to view the sea and to move your submarine right and left. What you see on the screen is your view through a periscope. Moving the Joystick up and down (forward and backward) allows you to see close up or far away to the horizon. (See Figure 3 for Joystick directions.) You can also use the Joystick to maneuver the sub right and left. This will help you catch up to an enemy ship or move away from a dangerous depth charge. The direction in which you move your sub is indicated by the broken black line, just below the temperature gauge. When you move the Joystick right,
the black lines move right indicating that the sub is moving right. When you move the Joystick left, the black lines move left and your sub is moving left. When your sub is moving right or left, any torpedoes launched will travel with a slight curve in the opposite direction.
To shoot a torpedo, press the red fire button. The torpedoes launch from the side where the torpedo status indicator (see Figure 1) is green. The torpedo launcher changes sides with every other launch. You will see the green light change sides each time you launch a torpedo.
4. CONSOLE CONTROLS
GAME SELECT SWITCH
Press down the GAME SELECT switch to choose a SUBMARINE COMMANDER game variation. (See the GAME SELECT MATRIX, Section 8 to choose the game you wish to play.) The game number appears at the top center of the screen, as shown in Figure 4.
GAME RESET SWITCH
When you have selected the game number you wish to play, press game RESET to start the action. (Pressing the red fire button on the Joystick also starts the game.) After game RESET is pressed, the game number disappears and the score appears at the top center of the screen, as shown in Figure 5.
PLAYER SKILL SWITCHES
SUBMARINE COMMANDER has two skill levels, A-EXPERT and B-NOVICE. The NOVICE level is for the beginning player. The EXPERT level is more challenging because every time your sub is hit by a depth charge, you incur damage which could cause the loss of one of your gauges.
For one-player games, use the LEFT PLAYER SKILL switch. For two-player games, the player using the left controller uses the LEFT PLAYER SKILL switch; the player using the right controller uses the RIGHT PLAYER SKILL switch. The left player starts the game in two-player games.
TV TYPE SWITCH
Set this switch to COLOR if your television set is color. Set it to B/W if you are playing the game in black and white.
5. GAME VARIATIONS
SUBMARINE COMMANDER includes 8 game variations (see GAME SELECT MATRIX, Section 8). All odd-numbered games are for one player; all even numbers are two-player games.
Games 1 and 2 are the easiest SUBMARINE COMMANDER games. In these two variations, the enemy ships do not shoot depth charges. All you have to do is shoot torpedoes to sink the enemy ships before you run out of fuel.
In Games 3 and 4, only the destroyers attack with depth charges.
In Games 5 and 6, you will have to avoid the depth charges of both destroyers and PT boats.
Games 7 and 8 are the toughest. You will be dodging depth charges from destroyers, PT boats, and tankers.
6. SCORING
You score points when you sink a ship. There are three types of enemy ships in SUBMARINE COMMANDER, and each scores a different point value, as shown below:
TANKER 20 POINTS
Two hits to go down
DESTROYER 15 POINTS
One hit to go down
PT BOAT 35 POINTS
If a ship is on the horizon, in which case it appears to be half its normal size, and you can see the blue sky in the background, the scoring is as follows:
The game ends when the fuel level reaches 0 (zero). In one-player games, try to beat your highest score. In two-player games, each player tries to beat the opponent's score. After a two-player game is over, the left player's score appears at the top, center of the screen; the right player's score appears at the bottom center of the screen (where the fuel amount was indicated during game play).
7. HELPFUL HINTS
Your submarine is equipped with many gauges, each of which is equally important. To learn to scan all of the gauges during game play, it is best to master one gauge at a time. When you learn one, add another gauge. With lots of practice, you will soon be using all of the gauges.
Learn to detect the sounds of the PT boats. If you listen, you can hear them coming just before you see them on the screen.
Try to sink as many PT boats as possible. They are worth the most points, and they only need one hit to go down.
The easiest position to shoot from is the lowest level on the screen. Pull the Joystick back (toward you). When you have mastered ail of the gauges, use the sonar detector and move up to the horizon (push the Joystick forward). Ships on the horizon are worth the most points, but you are more vulnerable to their depth charges.
8. GAME SELECT MATRIX
Game Number 1 2 3 4 5 6 7 8
One-Player
Two-Player
No Depth Charges
Destroyer Depth Charges
P.T. Boat Depth Charges
Tanker Depth Charges
CO18203-47 REV.1
(C)1982, ATARI, INC. ALL RIGHTS RESERVED
PRINTED IN U.S.A.
Converted to HTML by Albert Yarusso, ay@texas.net 2/6/99
http://ay.home.texas.net/Collecting.htm


Wool, wood, wire 29" x 19" x 11"
Wood, paper, photo, metal, found objects 14 x 14 x 2.5 The story of Amy Johnson, British aviator.
A room, used as a refuge, by whom? from whom?
Plaster, paint, paper, found objects. Influenced by Surrealism.
46" x 11" x 9"
Old organ wood and push buttons, collage skeleton diagrams, and found objects. This piece has several hidden features that can't be seen in this photo. Contact me for more photos.
Wire and paper mask on wood base Based on the famous sculpture, this version is very light because it is hollow.
Plaster carved painting with found objects. Where is your dark place?
Ellis, 1924 (mugshot series) 125.
Found mugshot of one cool dude in the 20s.
Wood, paper, encaustic wax, string 14" x 5" 3"
A piece that reflects what you see within it. And what do you make of those three tiny flies seen flittering around?
Plaster, paint, paper, and encaustic wax on a deep wall panel.
A collage dressing a lady of the 19th century in ads from a woman's magazine of her era. The background made from newspaper want ads of the 20th century and a beautiful verdigris piece of copper attached to a deep wood wall panel.
11" x 10" x 1.5"
Winter memories of snow, trees and forest animals.
Collaborative piece with artist Ken Berman.
Transparent, found object piece. Hang on the wall for an ethereal abstract that looks as if a hornet has created it, hang in light to transform it and show all the circular details. Found objects, tissue paper, glue, wood frame.
Commissioned piece made from purchaser's found box and family memorabilia. Contact Cat to create a personal family memory for you. kaufmancat@gmail.com. Pricing varies by scale.
15" x 14" x 1.5"
10" x 8" x 1.5". Where will life take her? Plaster, paint, images, encaustic wax.
Plaster on wood panel with paint and found objects.
A class of boys graduating from a private high school. They had no idea that their future included a world war. I've tried to capture their hopefulness while foretelling their future in this piece.
Found photos from the Phillips Exeter high school class of 1937. On painted board with encaustic wax.
Childhood is fleeting and as ethereal as the wispy pieces of netting that make up this piece.
If you look carefully, this cute little bird carries the memory of the baby blue lined paper we all used in school when learning our alphabet.
Do you ever feel that you are the prisoner of your circumstances? This wire, paper and string assemblage on a piece of chair shares that feeling that you can get tied to your own life. But you can choose to change that as well.
Supplicant Definition: Someone who asks with earnest prayer. Who is doing the asking? Who is hearing the prayer?
Remembering the great magician in his habitat.
13" x 11.5" x 3"
All metal. Would make a great hanging garden sculpture.
Assemblage. Just plug in the head and you are ready to go onstage!
The story of the Dalai Lama is fascinating. When one dies they search for the reincarnated soul in a toddler. He is taken to live and learn with the monks - so is he born to lead or taught to lead?
Violin case containing layers of paper with an old map of Antarctica below. The layers of paper reflect the glacial layers and the piece feels as though it was just found buried in the ice - a remnant of a long ago shipwreck.
52" x 33" x 4" 2012 Assemblage.
Using a found rusty wire coil baby mattress as the base, I hand tied strips of linen, some tea stained, around each coil and within each is a small baby mask made from wire and paper. Looking closely at the faces you will notice that each has its own personality and is in its own little nest of linen, some more cushy than others. Meaning resides in the concept that every person is born into different circumstances in life, some more loving and comforting than others - fate plays a role in our start in life, the rest is up to us.
36" x 14" x 3"
both are wrapped, as if in a dream.
Plaster encaustic with photo, wire, rusty metal, wood, paint.
I took this photo of the dead bird and its shadow. White represents death in many societies as it does here. The rusty piece of twisted metal that protrudes from the piece creates a marvelous wing-like shadow on the wall when light is directed at it on the wall.
Wire and paper hollow mask with a lot of personality.
22.5" x 10" x 2.5"
Plaster encaustic assemblage created in reverence to Adele by Gustov Klimt. The brown river flows from left to right across the piece, passing objects representing the history of the painting, from its creation, into war years, where it was stolen by the Nazis. Parts of the piece reflect symbols and colors in the Klimt painting.
Found pieces reflect their own histories and create a new one now that they are combined.
A woman from an earlier era reflects on modern issues while her eggs accumulate at her feet.
11" x 12" x 2.5"
10" x 8" x 3.5". Shown at an angle to see that the found metal circle protrudes from the piece. Plaster, paint, encaustic wax, found objects.
Commissioned mask. Wire, Paper, cloth, paint, plaster.
Assemblage with painted canvas backing and wood ruler, rusty pieces from beach on Kauai, Hawaii. Framed in metal with white feathers, image of woman and ceramic doll legs.
Wire and paper mask with paint on found metal.
The pull of love or infatuation struggles through all barriers.
This piece has a black wood frame that holds a large wood and metal pulley, rusty chain with stirrup. A metal framework and railroad spike suspends a mannikin hand as it reaches toward another hand at the bottom of the piece.
8.5 x 8 x 2" 95.
Found objects in silverware box with plaster buddha.
6" x 26.5" x 7"
Based on the story of Phineas Gage, the man who was injured by a spike through his head when it was dynamited in the 1800s. He is famous as a study for the area of psychology.
Represents the societal confinement of women in past centuries.
Wood, paper, wax, found objects Filled with things that are worshiped: money children, gods, etc.
Found Objects Representing the young vaudevillian actress who was killed in the 1906 earthquake in Santa Rosa, CA.


text:
Murder accused Pat Quirke 'knew of existence of tank where body was found' - 'love rival' trial hears
Pat Quirke. Photo: Collins
Evidence: Mary Lowry at the Central Criminal Court yesterday.
Bobby Ryan
Mary Glasheen, leaving court after giving evidence in the trial of Patrick Quirke. Patrick Quirke PIC: Collins Courts
Jimmy Lowry, a brother-in-law of Mary Lowry, leaving court PIC: Collins Courts
Michelle, Mary and Robert Ryan, Daughter, former wife and son of Bobby Ryan, leave the CCJ Photo: Tony Gavin
Robert Ryan (L) and Michelle Ryan, daughter of Bobby Ryan PIC: Collins Courts
Nicola Anderson and Eoin Reynolds
Murder accused Pat Quirke knew of the existence of the agricultural tank where the body of Bobby Ryan was found, two years after his disappearance, the court has heard.
https://www.independent.ie/irish-news/courts/murder-accused-pat-quirke-knew-of-existence-of-tank-where-body-was-found-love-rival-trial-hears-37785261.html
https://www.independent.ie/incoming/article37775119.ece/b247a/AUTOCROP/h342/rick%20Quirke90419667.jpg
Jimmy Lowry told the Central Criminal Court that he was the brother of the late Martin Lowry, who farmed at Fawnagowan, Co Tipperary.
He recalled how on the night of his daughter, Aoife's 18th birthday party, he heard that his sister-in-law Mary Lowry, Martin's widow, was involved in a new relationship.
He was happy for her, he said.
Pat Quirke (50) of Breanshamore, Co Tipperary, has pleaded not guilty to the murder of 52 year old Bobby Ryan, a DJ known as Mr Moonlight, on a date between June 3 2011 and April 2013.
Mr Lowry said he was 12 or 13 when the tank where Bobby Ryan's body was located, was constructed. He recalled his father 'inside in the tank' building it out of six inch blocks, he said.
Mary Lowry
Asked how Pat Quirke and Martin had got on, Mr Lowry replied: "Quite well." They would share machinery or do things together on the farm.
Asked who knew of the existence of the tank, he said: "As far as I know, myself, my brother, Johnny and Pat."
Johnny Lowry told the court that he had also heard the news about his sister-in-law's new relationship with Bobby Ryan at the 18th birthday party of his niece Aoife.
"I was happy for her. I wished her well," he said of Mary, explaining that he had rung her. Asked how she had responded, he replied: "good."
Questioned about how he felt in light of the fact that she had previously been married to his brother who had passed away, Mr Lowry said: "Yes, I was happy that she had met someone."
Mr Lowry subsequently met Bobby Ryan and found him "grand," but said he had only been talking to him for a few minutes.
Asked if he had a happy childhood growing up, Mr Lowry replied "Very."
They all helped out with the farm work - which was dairy farming, pigs and sheep. Of all the brothers, Martin was the one who was the most into farming, he said.
Mr Lowry recalled an extension being built onto the milking parlour in the mid 1980s. He also recalled the run-off tank being constructed in the late 1970s. It facilitated the overflow coming in from the dairy - which he explained would be 'washing up from the machine and washing the yard.'
The area around it was 'a little orchard,' Mr Lowry said.
Asked how his late brother, Martin, had got on with their brother-in-law Pat Quirke, Mr Lowry said "well", adding that they worked together and helped each other out.
Asked about the relationship between Mary Lowry and Pat Quirke after Martin's death, Mr Lowry said: "They seemed to be close. Closer than normal."
Asked if he was aware of anything going on, he replied: "No, but I had my suspicions."
Mary Glasheen told the court that she dated Bobby Ryan in 2008, they met at the Times Hotel and would go to dances there and at Pat Fox's in Cashel.
They went out for three months and remained friends afterwards.
When Mr Ryan met Mary Lowry she was happy for them. "They seemed happy," she said.
She told defence counsel Bernard Condon SC she had been in touch with Mr Ryan the day before he disappeared and texted him at about 10 o'clock that night. She didn't receive a reply and found this unusual.
The court heard from Eileen Barlow, a friend of Mary Lowry's for some '26 or 27 years.'
She recalled a night out they had in the Times hotel in August 2010.
They had a Chinese and then Mary suggested they go to hear some music, explaining that Mary has a great love of music.
They were sitting at the bar listening to the music when a man approached and asked her to dance. She believed it was Bobby Ryan.
"I was so happy for Mary because I witnessed both Bobby and Mary dancing - Mary was so alive on the dance floor - I was glad to see that," she said, adding that her friend had been through "a very distressing stage" because her husband had passed away having had cancer.
Ms Barlow said she stayed having her drink. Mary and Bobby were 'in great form. They seem to have really connected,' she said.
"They were very, very happy and seemed buzzing after the dancing together."
She told the court she had spoken to Bobby Ryan that night, telling him that after what Mary had been through, she wanted to make sure she was in safe hands. She asked Bobby "if his intentions were good" and if he would look after Mary because she "needed a refuge."
Some months after that, she accompanied Mary to Foxes where Bobby was doing DJing.
"I wanted to do it because Mary had been through so much," she said.
Some time after that, she said she met them by the Glasshouse Hotel on St Patrick's Day 2011. They seemed "very very happy together."
"Mary seemed very joyous and Bobby as well. They seemed very happy," she said.
Meanwhile Mary Ryan, the former wife of Bobby Ryan told the court that she married Bobby in 1986 and they had two children, Michelle and Bobby. After many years, differences arose and they grew apart, she said.
Eventually they separated. "It was a mutual decision we'd just grown apart, we were both doing different things," she explained.
"We were more like friends than husband and wife at that point," she said.
After they separated, they got on "fine", she said, adding that they were "friends."
"I'd call down to his house. We'd have tea and a chat."
She was aware of his relationship with Mary Lowry, saying: "I was happy for him, why wouldn't I be?
"I told him that I hope everything goes well for you. I had no problem with it."
There was no particular reason for their separation, she told the court.
Meanwhile Clare O'Grady, who lived locally and who travelled to work in Limerick every morning at 6.45am told the court how she saw a silver van parked into the side of the road near a marshy area. She had never met any vehicle on that road at that hour of the morning when leaving for work, she said, adding: "It's very early."
On learning of Bobby Ryan's disappearance and of the garda search for a silver van, she contacted them about the sighting.
The trial continues.
'Love rival' trial: Victim's daughter thought her father had split with Mary Lowry days before he died
The widow, her two lovers and a murder in a Tipperary townland
Mary Lowry's four days on the witness stand in the love rival murder trial: 'I have bared my soul here'
'Love rival' trial: Witness complained about 'missing' posters outside her home
Serial thief handed 'one last chance' as she walks free after 648th conviction Courts
Gardaí arrested three man 'hit team' 250 metres from home of Hutch 'target' - court Courts
'Missing payments is not immoral': ex-Miss Ireland Pamela Flood vows to stay in home Courts
'Mr Nobody' sentencing: Senior Kinahan 'fixer' jailed for 10 years Courts
NCH team sent a researcher to Australia on fact-finding mission Health
Finghin Collins: In praise of Iris Murdoch on centenary of Dublin-born author's birth Book News
Partial lunar eclipse will be visible from Ireland tonight
A partial lunar eclipse is set to be visible across parts of the UK on Tuesday, if clear...
A TAXI driver caught on the road without insurance had been banned at the time for...
A TD's son has pleaded not guilty to assaulting a garda,...
Jailed killer confesses to murdering Irish woman in her home
A "wicked" sex predator serving life for the brutal...
A young boy who allegedly stopped talking and would not...
'They're making example of him' - father accuses US authorities
The family of a Corkman who is facing deportation...
€7m tourism spend to draw in UK visitors
Tourism Ireland is spending €7m this year to reassure UK citizens that Ireland "is still...
Homecare limits add to numbers now stuck in hospital
The number of patients occupying hospital beds despite being fit for discharge has escalated...
Air-freshener firm sues Ryanair over 'use of trademark'
The company whose founder created the 'Little Trees' car air freshener claims...
'If he survives, we don't get paid,' criminal said
Two criminals contracted by the Kinahan cartel to kill Gary Hanley were secretly recorded...


Loved reading about your family! Much of what you wrote about Jacob totally applied to Carson as well. How funny. I'm so glad you guys moved into our ward. Yea! I'm excited for you guys to be in your house and settled. So awesome about Kevin's award and yea for you guys in your quest to be healthier. And that's awesome you are going back to school. You'll do terrific!
April 8th is my birthday so that is going to be one fantastic day all around! Can't wait for you guys to get settled. We're so excited to have you as neighbors.
I am so excited about your new house!! I can't wait to see it all come together!
I love your sweet family so much, Amy. You and Kevin are some of the best parents I know and it shows in your sweet children. Loved this update!
Sounds like things are going great! But I will tell you to get that patience or you will keep getting tested. I still am being tested and failing miserably! Now Ive noticed when Im impatient my left eye drips. Took me a long time to figure that one out. Tell Kevin Congrats! so proud of him!


text:
Rhode Island Personal Injury Attorney | Rhode Island Car Accident Attorney
Casino Accidents
RI Workers Compensation Law
Should I Call The Police
Providence Car Accident Lawyer2018-11-07T21:11:09-05:00
Providence Car Accident Lawyer
If you have recently been injured in a car accident that was caused by the negligence of someone else, you may be entitled to a financial settlement. But in order to receive compensation for your medial bills, lost wages, or diminished quality of life, you will need to build a personal injury case along with a Providence car accident lawyer. The steps you take immediately following the accident will have a big impact on the overall success or failure of your case. Any Rhode Island car accident lawyer will urge you to follow these three tips immediately after getting into any kind of collision:
Should I Call the Police Or a Providence Car Accident Lawyer After a Car Accident?
You should always notify the police after a car accident, even if no one appears to be hurt and the vehicles are relatively undamaged. The other driver may try to talk you out of notifying the authorities, but that is always a mistake. If you later decide to work with a car accident lawyer and pursue a financial settlement, you will want to have an official record of the car accident. Finding the right attorney is paramount to ensuring your health, financial future, and making sure you are properly covered after an accident.
Car Accident Lawyer Tip: Take Notes and Pictures
A police report after a car accident is important, but it only tells part of the story. In order to ensure that the truth comes out in court, write down everything you can remember from the times before, during, and after the accident. You will also want to take pictures to the accident site, the condition of both cars, and any injuries you or your passengers sustain. Time can make the memory of events fuzzy. And a Providence car accident lawyer will be able to build a much stronger case with a clear accounting of events.
Never Accept a Settlement: Consult A Providence Car Accident Attorney First !
Throughout the process of filing a personal injury claim, you can expect the other side to make you a number of offers. These always offer a settlement figure that is smaller than what you could earn in court. You should never accept an offer without first consulting with your car accident lawyer. You should also be leery of signing any kind of release or waiver. The defense is not above using manipulations and distortions to rob you of your rights. The sooner you contact a Providence car accident lawyer following a Rhode Island car accident or incident on the road, the stronger your claim will be as a result. Schedule a free consultation with The Law Offices of Michael F. Campopiano by calling 401-288-3888 at your earliest convenience.
Describe your case:
Law Offices of Michael Campopiano - Rhode Island Personal Injury Attorneys $
127 Dorrance St
Providence , RI 02903
Rhode Island Personal Injury Attorney
Rhode Island Car Accident Attorney
Providence Car Accident Attorney
Providence Personal Injury Attorney
© Copyright 2020 | Lawyer SEO by Full Contact SEO | All Rights Reserved | Sitemap | Privacy Policy
This website is designed for general information only. The information presented at this site should not be construed to be formal legal advice nor the formation of an attorney/client relationship.


text:
Q: How to get button if an item is selected in Jquery Grid I am trying to use jqGrid in a HTML table and works fine, but i want to get a button when an item is selected.
I tried with this:
    $(function () {
        tableToGrid(".mytable", {
            autowidth:true,
            pager: '#pager',
            rowNum: 20,
            viewrecords: true,
            loadui: true,
            rowList: [10,20,50],
            multiselect: true,
            caption: "Multi Select Example",

            onSelectAll : function(aSel,selected) {
                if(selected){
                    var value =0;
                    for(var i=0;i<aSel.length;i++){
                        var data = jQuery(".mytable").getRowData(aSel[i]);
                        value += parseFloat(data.total);
                    }
                    jQuery('#gbox_').before( $('<button class="button" type="button" value="Edit">Edit</button>') );
                } else {
                    jQuery(".button").remove();
                }
            },
            onSelectRow: function (id) {
                var selRows = $(this).jqGrid('getGridParam','selarrrow');
                if (selRows.length === 0) {
                    $(".button").remove();
                } else {
                    $('#gbox_').before( $('<button class="button" type="button" value="Edit">Edit</button>') );
                }

            }
        });
    });

When I click on an item i get the button, but for every selected item:

And when I select all I get no button. Why?
Any help is appreciated! Thank you and sorry for my bad english.

A: You'll want to listen to the onSelectAll event for that.

A: if I understand your question. To add the button to the clicked item, you have to use this code  :
$(function (e) {
            tableToGrid(".mytable", {
                autowidth:true,
                pager: '#pager',
                rowNum: 20,
                viewrecords: true,
                loadui: true,
                rowList: [10,20,50],
                multiselect: true,
                caption: "Multi Select Example",
                onSelectRow: function (id) {
                    var selRows = $(this).jqGrid('getGridParam','selarrrow');
                    if (selRows.length === 0) {
                        $(".button").remove();
                    } else {
                      $(e.target).before( $('<button class="button" type="button" value="Edit">Edit</button>') );
                    }

                }
            });
        });

redpajama_set_name: RedPajamaStackExchange


text:
Q: How to get total for each category for every user? Having trouble with this query:
I have a table that has an entry for each battle a user has entered.
user_id | name   | category | points
==================================
1       | user1  | battle1  | 4
54      | user2  | battle1  | 20
88      | user 8 | battle4  | 33
etc

There are 4 categories.
I hope I can explain this properly.
What I need to do is get the sum of each category for each user but also show the totals for that user from the other categories as well.
Right now I can query the sum of one category like this per user:
SELECT user_id, name, category,  SUM(points)
FROM battle_points
WHERE user_id = id
GROUP BY category

But I don't want it per user. So if I do that query without the WHERE clause it's all messed up.
I need to have the top 10 ranks for each category. So it could be like this:
name  | cat 1 | cat 2 | cat 3 | cat 4
=====================================
user1 | 33    | 0     | 49    | 5
user2 | 0     | 55    | 12    | 3
etc...

Any ideas?
Thanks.

A: You can use something like this: (I changed name of your table and for simplify my test I used CATEGORY as INT, but you can easily change it)
CREATE TABLE BAT_POI (USER_ID INTEGER, NAME VARCHAR(20), CATEGORY INT, POINTS INT);
INSERT INTO BAT_POI VALUES (1,'user1',1,4);
INSERT INTO BAT_POI  VALUES (54,'user2',1,20);
INSERT INTO BAT_POI  VALUES (88,'user8',4,33);
INSERT INTO BAT_POI  VALUES (1,'user1',3,49);

SELECT USER_ID, NAME
        , SUM( CASE WHEN CATEGORY=1 THEN POINTS ELSE 0 END ) AS CAT1
        , SUM( CASE WHEN CATEGORY=2 THEN POINTS ELSE 0 END ) AS CAT2
        , SUM( CASE WHEN CATEGORY=3 THEN POINTS ELSE 0 END ) AS CAT3
        , SUM( CASE WHEN CATEGORY=4 THEN POINTS ELSE 0 END ) AS CAT4
FROM BAT_POI
GROUP BY USER_ID, NAME;

Output:
USER_ID NAME    CAT1    CAT2    CAT3    CAT4
1       user1   4       0       49      0
54      user2   20      0       0       0
88      user8   0       0       0       33


Quiet landscapes, arcane woods and a new intensity of shapes and colours are to be found in the series: "Wald Sinfonie".
"Wald Sinfonie" (Forest Symphony) – The mystic of the german forests. Pictures that sound.